CodeContests is a competitive programming dataset for machine-learning

Overview

CodeContests

CodeContests is a competitive programming dataset for machine-learning. This dataset was used when training AlphaCode.

It consists of programming problems, from a variety of sources:

Site URL Source
Aizu https://judge.u-aizu.ac.jp CodeNet
AtCoder https://atcoder.jp CodeNet
CodeChef https://www.codechef.com description2code
Codeforces https://codeforces.com description2code and Codeforces
HackerEarth https://www.hackerearth.com description2code

Problems include test cases in the form of paired inputs and outputs, as well as both correct and incorrect human solutions in a variety of languages.

Usage

Install the Cloud SDK, which provides the gsutil utility. You can then download the full data (~3GiB) with, e.g:

gsutil -m cp -r gs://dm-code_contests /tmp

The data consists of ContestProblem protocol buffers in Riegeli format. See contest_problem.proto for the protocol buffer definition and documentation of its fields.

The dataset contains three splits:

Split Filename
Training code_contests_train.riegeli-*-of-00128
Validation code_contests_valid.riegeli
Test code_contests_test.riegeli

There is example code for iterating over the dataset in C++ (in print_names.cc) and Python (in print_names_and_sources.py). For example, you can print the source and name of each problem in the validation data by installing bazel and then running:

bazel run -c opt \
  :print_names_and_sources /tmp/dm-code_contests/code_contests_valid.riegeli

Or do the same for the training data with the following command (which will print around 13000 lines of output):

bazel run -c opt \
  :print_names_and_sources /tmp/dm-code_contests/code_contests_train.riegeli*

Planned updates

We plan to update this repository with code for executing and evaluating potential solutions.

Citing this work

If you use this dataset or code, please cite this paper:

@misc{alphacode,
    title={Competition-Level Code Generation with AlphaCode},
    author={Li, Yujia and Choi, David and Chung, Junyoung and Kushman, Nate and
    Schrittwieser, Julian and Leblond, Rémi and Eccles, Tom and
    Keeling, James and Gimeno, Felix and Dal Lago, Agustin and
    Hubert, Thomas and Choy, Peter and de Masson d'Autume, Cyprien and
    Babuschkin, Igor and Chen, Xinyun and Huang, Po-Sen and Welbl, Johannes and
    Gowal, Sven and Cherepanov, Alexey and Molloy, James and
    Mankowitz, Daniel and Sutherland Robson, Esme and Kohli, Pushmeet and
    de Freitas, Nando and Kavukcuoglu, Koray and Vinyals, Oriol},
    year={2022},
    month={Feb}}

License

The code is licensed under the Apache 2.0 License.

All non-code materials provided are made available under the terms of the CC BY 4.0 license (Creative Commons Attribution 4.0 International license).

We gratefully acknowledge the contributions of the following:

Use of the third-party software, libraries code or data may be governed by separate terms and conditions or license provisions. Your use of the third-party software, libraries or code may be subject to any such terms. We make no representations here with respect to rights or abilities to use any such materials.

Disclaimer

This is not an official Google product.

Comments
  • no such attribute 'env' in 'py_binary' rule

    no such attribute 'env' in 'py_binary' rule

    I followed instructions detailed in a kaggle kernal. However, I encountered the titled error.

    Bazel output:

    Extracting Bazel installation...
    Starting local Bazel server and connecting to it...
    Loading: 
    Loading: 0 packages loaded
    Loading: 0 packages loaded
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it 4s
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it 5s
    Loading: 0 packages loaded
        Fetching @com_github_grpc_grpc; Recording actual commit 5s
    DEBUG: Rule 'com_github_grpc_grpc' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "96b73272eadc01afb5fb45b92b408c47e4387274", shallow_since = "1624063996 -0700" and dropping ["tag"]
    Loading: 0 packages loaded
    DEBUG: Repository com_github_grpc_grpc instantiated at:
      /kaggle/working/code_contests/WORKSPACE:4:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Loading: 0 packages loaded
    Loading: 0 packages loaded
    Loading: 0 packages loaded
        currently loading: 
        Fetching @rules_proto; fetching
    Loading: 0 packages loaded
        currently loading: 
        Fetching @rules_proto; fetching
        Fetching https://mirror.bazel.build/...595af3900dd85cb3a29ad28cc313.tar.gz
    Analyzing: target //:print_names_and_sources (1 packages loaded)
    Analyzing: target //:print_names_and_sources (1 packages loaded, 0 targets con\
    figured)
    Analyzing: target //:print_names_and_sources (2 packages loaded, 1 target conf\
    igured)
        currently loading: @bazel_tools//tools/cpp
        Fetching @rules_cc; fetching
    Analyzing: target //:print_names_and_sources (6 packages loaded, 2 targets con\
    figured)
    Analyzing: target //:print_names_and_sources (9 packages loaded, 14 targets co\
    nfigured)
        currently loading: @bazel_tools//tools/sh
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
        Fetching https://github.com/...7921700a58f53fbd2b47fcf9c6dc38477a32.tar.gz
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
        Fetching https://github.com/...f53fbd2b47fcf9c6dc38477a32.tar.gz; 154,274B
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
        Fetching ...iegeli; Extracting /root/.cache/bazel/_bazel_root/3be79ad75151\
    b6763eed16d084c75f7d/external/com_google_riegeli/temp11287151664443332764/587c\
    7921700a58f53fbd2b47fcf9c6dc38477a32.tar.gz
    Analyzing: target //:print_names_and_sources (13 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
    Analyzing: target //:print_names_and_sources (19 packages loaded, 57 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 77 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching @com_google_protobuf; Recording actual commit
    DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97", shallow_since = "1641866895 -0800" and dropping ["tag"]
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
    DEBUG: Repository com_google_protobuf instantiated at:
      /kaggle/working/code_contests/WORKSPACE:22:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
        Fetching ...python; Cloning tags/0.5.0 of [https://github.com/bazelbuild/ru\](https://github.com/bazelbuild/ru/)
    les_python.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
        Fetching ...python; Cloning tags/0.5.0 of [https://github.com/bazelbuild/ru\](https://github.com/bazelbuild/ru/)
    les_python.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
        Fetching @rules_python; Recording actual commit
    DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "76ef44fdb8aaa8d5c607721ffe1b1cbf1e8f08dd", shallow_since = "1635214215 -0700" and dropping ["tag"]
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
    DEBUG: Repository rules_python instantiated at:
      /kaggle/working/code_contests/WORKSPACE:14:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
    Analyzing: target //:print_names_and_sources (25 packages loaded, 89 targets c\
    onfigured)
        currently loading: @com_google_protobuf//
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
        Fetching @local_config_python; fetching
    Analyzing: target //:print_names_and_sources (26 packages loaded, 101 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
    Analyzing: target //:print_names_and_sources (28 packages loaded, 279 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
        Fetching @zlib; fetching
    Analyzing: target //:print_names_and_sources (28 packages loaded, 279 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
        Fetching @zlib; fetching
        Fetching http://zlib.net/fossils/zlib-1.2.11.tar.gz
    Analyzing: target //:print_names_and_sources (29 packages loaded, 400 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
    DEBUG: Rule 'com_google_absl' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "215105818dfde3174fe799600bb0f3cae233d0bf", shallow_since = "1635953174 -0400" and dropping ["tag"]
    Analyzing: target //:print_names_and_sources (29 packages loaded, 633 targets \
    configured)
    DEBUG: Repository com_google_absl instantiated at:
      /kaggle/working/code_contests/WORKSPACE:28:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Analyzing: target //:print_names_and_sources (29 packages loaded, 633 targets \
    configured)
    Analyzing: target //:print_names_and_sources (35 packages loaded, 646 targets \
    configured)
        currently loading: @rules_python//python ... (2 packages)
    ERROR: /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/rules_python/python/BUILD:144:25: @rules_python//python:requirements.update: no such attribute 'env' in 'py_binary' rule
    Analyzing: target //:print_names_and_sources (37 packages loaded, 646 targets \
    configured)
    ERROR: /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/rules_python/python/BUILD:144:25: @rules_python//python:requirements_test: no such attribute 'env' in 'py_test' rule
    Analyzing: target //:print_names_and_sources (37 packages loaded, 646 targets \
    configured)
    Analyzing: target //:print_names_and_sources (43 packages loaded, 773 targets \
    configured)
        currently loading: @com_google_absl//absl/container
    ERROR: /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/local_config_python/BUILD:16:15: Target '@rules_python//python:python_version' contains an error and its package is in error and referenced by '@local_config_python//:python3'
    Analyzing: target //:print_names_and_sources (52 packages loaded, 915 targets \
    configured)
        Fetching @highwayhash; fetching
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
        Fetching @highwayhash; fetching
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
        Fetching @highwayhash; fetching
        Fetching https://github.com/...76dd7b4b6d330e4734b756e97ccfb1b69cc2e12.zip
    INFO: Repository highwayhash instantiated at:
      /kaggle/working/code_contests/WORKSPACE:86:13: in <toplevel>
    Repository rule http_archive defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
        Fetching @highwayhash; fetching
    ERROR: While resolving configuration keys for @local_config_python//:python_headers: Analysis failed
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    ERROR: Analysis of target '//:print_names_and_sources' failed; build aborted: Analysis failed
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    INFO: Elapsed time: 25.967s
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    INFO: 0 processes.
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    FAILED: Build did NOT complete successfully (52 packages loaded, 916 targets c\
    onfigured)
    ERROR: Build failed. Not running target
    FAILED: Build did NOT complete successfully (52 packages loaded, 916 targets c\
    onfigured)Extracting Bazel installation...
    Starting local Bazel server and connecting to it...
    Loading: 
    Loading: 0 packages loaded
    Loading: 0 packages loaded
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it 4s
    Loading: 0 packages loaded
        Fetching ...c_grpc; Cloning tags/v1.38.1 of [https://github.com/grpc/grpc.g\](https://github.com/grpc/grpc.g/)
    it 5s
    Loading: 0 packages loaded
        Fetching @com_github_grpc_grpc; Recording actual commit 5s
    DEBUG: Rule 'com_github_grpc_grpc' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "96b73272eadc01afb5fb45b92b408c47e4387274", shallow_since = "1624063996 -0700" and dropping ["tag"]
    Loading: 0 packages loaded
    DEBUG: Repository com_github_grpc_grpc instantiated at:
      /kaggle/working/code_contests/WORKSPACE:4:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Loading: 0 packages loaded
    Loading: 0 packages loaded
    Loading: 0 packages loaded
        currently loading: 
        Fetching @rules_proto; fetching
    Loading: 0 packages loaded
        currently loading: 
        Fetching @rules_proto; fetching
        Fetching https://mirror.bazel.build/...595af3900dd85cb3a29ad28cc313.tar.gz
    Analyzing: target //:print_names_and_sources (1 packages loaded)
    Analyzing: target //:print_names_and_sources (1 packages loaded, 0 targets con\
    figured)
    Analyzing: target //:print_names_and_sources (2 packages loaded, 1 target conf\
    igured)
        currently loading: @bazel_tools//tools/cpp
        Fetching @rules_cc; fetching
    Analyzing: target //:print_names_and_sources (6 packages loaded, 2 targets con\
    figured)
    Analyzing: target //:print_names_and_sources (9 packages loaded, 14 targets co\
    nfigured)
        currently loading: @bazel_tools//tools/sh
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
        Fetching https://github.com/...7921700a58f53fbd2b47fcf9c6dc38477a32.tar.gz
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
        Fetching https://github.com/...f53fbd2b47fcf9c6dc38477a32.tar.gz; 154,274B
    Analyzing: target //:print_names_and_sources (12 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
        Fetching @com_google_riegeli; fetching
        Fetching ...iegeli; Extracting /root/.cache/bazel/_bazel_root/3be79ad75151\
    b6763eed16d084c75f7d/external/com_google_riegeli/temp11287151664443332764/587c\
    7921700a58f53fbd2b47fcf9c6dc38477a32.tar.gz
    Analyzing: target //:print_names_and_sources (13 packages loaded, 18 targets c\
    onfigured)
        Fetching @local_config_cc; fetching
    Analyzing: target //:print_names_and_sources (19 packages loaded, 57 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 77 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching ...otobuf; Cloning tags/v3.19.3 of [https://github.com/protocolbuf\](https://github.com/protocolbuf/)
    fers/protobuf.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
        Fetching @com_google_protobuf; Recording actual commit
    DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97", shallow_since = "1641866895 -0800" and dropping ["tag"]
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
    DEBUG: Repository com_google_protobuf instantiated at:
      /kaggle/working/code_contests/WORKSPACE:22:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
        Fetching ...python; Cloning tags/0.5.0 of [https://github.com/bazelbuild/ru\](https://github.com/bazelbuild/ru/)
    les_python.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
        Fetching ...python; Cloning tags/0.5.0 of [https://github.com/bazelbuild/ru\](https://github.com/bazelbuild/ru/)
    les_python.git
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
        Fetching @rules_python; Recording actual commit
    DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "76ef44fdb8aaa8d5c607721ffe1b1cbf1e8f08dd", shallow_since = "1635214215 -0700" and dropping ["tag"]
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
    DEBUG: Repository rules_python instantiated at:
      /kaggle/working/code_contests/WORKSPACE:14:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Analyzing: target //:print_names_and_sources (20 packages loaded, 83 targets c\
    onfigured)
        currently loading: @com_google_riegeli//python/riegeli/records ... (2 pack\
    ages)
    Analyzing: target //:print_names_and_sources (25 packages loaded, 89 targets c\
    onfigured)
        currently loading: @com_google_protobuf//
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
        Fetching @local_config_python; fetching
    Analyzing: target //:print_names_and_sources (26 packages loaded, 101 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
    Analyzing: target //:print_names_and_sources (28 packages loaded, 279 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
        Fetching @zlib; fetching
    Analyzing: target //:print_names_and_sources (28 packages loaded, 279 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
        Fetching @zlib; fetching
        Fetching http://zlib.net/fossils/zlib-1.2.11.tar.gz
    Analyzing: target //:print_names_and_sources (29 packages loaded, 400 targets \
    configured)
        Fetching ...e_absl; Cloning tags/20211102.0 of [https://github.com/abseil/a\](https://github.com/abseil/a/)
    bseil-cpp.git
    DEBUG: Rule 'com_google_absl' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "215105818dfde3174fe799600bb0f3cae233d0bf", shallow_since = "1635953174 -0400" and dropping ["tag"]
    Analyzing: target //:print_names_and_sources (29 packages loaded, 633 targets \
    configured)
    DEBUG: Repository com_google_absl instantiated at:
      /kaggle/working/code_contests/WORKSPACE:28:15: in <toplevel>
    Repository rule git_repository defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in <toplevel>
    Analyzing: target //:print_names_and_sources (29 packages loaded, 633 targets \
    configured)
    Analyzing: target //:print_names_and_sources (35 packages loaded, 646 targets \
    configured)
        currently loading: @rules_python//python ... (2 packages)
    ERROR: /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/rules_python/python/BUILD:144:25: @rules_python//python:requirements.update: no such attribute 'env' in 'py_binary' rule
    Analyzing: target //:print_names_and_sources (37 packages loaded, 646 targets \
    configured)
    ERROR: /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/rules_python/python/BUILD:144:25: @rules_python//python:requirements_test: no such attribute 'env' in 'py_test' rule
    Analyzing: target //:print_names_and_sources (37 packages loaded, 646 targets \
    configured)
    Analyzing: target //:print_names_and_sources (43 packages loaded, 773 targets \
    configured)
        currently loading: @com_google_absl//absl/container
    ERROR: /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/local_config_python/BUILD:16:15: Target '@rules_python//python:python_version' contains an error and its package is in error and referenced by '@local_config_python//:python3'
    Analyzing: target //:print_names_and_sources (52 packages loaded, 915 targets \
    configured)
        Fetching @highwayhash; fetching
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
        Fetching @highwayhash; fetching
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
        Fetching @highwayhash; fetching
        Fetching https://github.com/...76dd7b4b6d330e4734b756e97ccfb1b69cc2e12.zip
    INFO: Repository highwayhash instantiated at:
      /kaggle/working/code_contests/WORKSPACE:86:13: in <toplevel>
    Repository rule http_archive defined at:
      /root/.cache/bazel/_bazel_root/3be79ad75151b6763eed16d084c75f7d/external/bazel_tools/tools/build_defs/repo/http.bzl:336:31: in <toplevel>
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
        Fetching @highwayhash; fetching
    ERROR: While resolving configuration keys for @local_config_python//:python_headers: Analysis failed
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    ERROR: Analysis of target '//:print_names_and_sources' failed; build aborted: Analysis failed
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    INFO: Elapsed time: 25.967s
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    INFO: 0 processes.
    Analyzing: target //:print_names_and_sources (52 packages loaded, 916 targets \
    configured)
    FAILED: Build did NOT complete successfully (52 packages loaded, 916 targets c\
    onfigured)
    ERROR: Build failed. Not running target
    FAILED: Build did NOT complete successfully (52 packages loaded, 916 targets c\
    onfigured)
    
    opened by uSaiPrashanth 8
  • solve_example SolveGregorAndCryptography compilation fails for all examples

    solve_example SolveGregorAndCryptography compilation fails for all examples

    When attempting to run the solve_example script using the second given command with the python2 and 3 paths specified on a Ubuntu 20 system, the build completes successfully however the compilation fails for all three given examples for the SolveGregorAndCryptography function. The full stack trace is shown below:

    $ bazel run -c opt execution:solve_example -- --valid_path=/mnt/c/Users/DELL/Documents/UoE/MLP/cw4/CodeContest/dm-code_contests/code_contests_valid.riegeli --python3_path=/home/allen/anaconda3/bin/python --python3_library_paths=/home/allen/anaconda3/lib/python --python2_path=/usr/bin/python2 --python2_library_paths=/usr/lib/python2
    Starting local Bazel server and connecting to it...
    INFO: Analyzed target //execution:solve_example (88 packages loaded, 2108 targets configured).
    INFO: Found 1 target...
    INFO: From Compiling sandboxed_api/tools/filewrapper/filewrapper.cc [for host]:
    In file included from external/com_google_sandboxed_api/sandboxed_api/tools/filewrapper/filewrapper.cc:29:
    external/com_google_sandboxed_api/sandboxed_api/util/fileops.h:24:15: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
    namespace sapi::file_util::fileops {
                  ^~~~~~~~~~~~~~~~~~~~
                   { namespace file_util { namespace fileops
    In file included from external/com_google_sandboxed_api/sandboxed_api/tools/filewrapper/filewrapper.cc:30:
    external/com_google_sandboxed_api/sandboxed_api/util/raw_logging.h:134:15: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
    namespace sapi::raw_logging_internal {
                  ^~~~~~~~~~~~~~~~~~~~~~
                   { namespace raw_logging_internal
    2 warnings generated.
    INFO: From Compiling sandboxed_api/util/raw_logging.cc [for host]:
    In file included from external/com_google_sandboxed_api/sandboxed_api/util/raw_logging.cc:15:
    external/com_google_sandboxed_api/sandboxed_api/util/raw_logging.h:134:15: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
    namespace sapi::raw_logging_internal {
                  ^~~~~~~~~~~~~~~~~~~~~~
                   { namespace raw_logging_internal
    external/com_google_sandboxed_api/sandboxed_api/util/raw_logging.cc:107:15: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
    namespace sapi::raw_logging_internal {
                  ^~~~~~~~~~~~~~~~~~~~~~
                   { namespace raw_logging_internal
    2 warnings generated.
    INFO: From Compiling sandboxed_api/util/fileops.cc [for host]:
    In file included from external/com_google_sandboxed_api/sandboxed_api/util/fileops.cc:15:
    external/com_google_sandboxed_api/sandboxed_api/util/fileops.h:24:15: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
    namespace sapi::file_util::fileops {
                  ^~~~~~~~~~~~~~~~~~~~
                   { namespace file_util { namespace fileops
    external/com_google_sandboxed_api/sandboxed_api/util/fileops.cc:29:15: warning: nested namespace definition is a C++17 extension; define each namespace separately [-Wc++17-extensions]
    namespace sapi::file_util::fileops {
                  ^~~~~~~~~~~~~~~~~~~~
                   { namespace file_util { namespace fileops
    2 warnings generated.
    Target //execution:solve_example up-to-date:
      bazel-bin/execution/solve_example
    INFO: Elapsed time: 90.415s, Critical Path: 28.07s
    INFO: 685 processes: 5 internal, 680 linux-sandbox.
    INFO: Build completed successfully, 685 total actions
    INFO: Running command line: bazel-bin/execution/solve_example '--valid_path=/mnt/c/Users/DELL/Documents/UoE/MLP/cw4/CodeINFO: Build completed successfully, 685 total actions
    We will try to solve "Gregor and Cryptography":
    https://codeforces.com/problemset/problem/1549/A
    
    We will run:
      1. A program that does not compile.
      2. A program that runs successfully, but gives the wrong answer sometimes.
      3. A correct solution.
    
    --------------------------------------------------------------------------------
    An invalid program is reported as not compiling:
    
    [global_forkclient.cc : 122] RAW: Starting global forkserver
    WARNING: Logging before InitGoogleLogging() is written to STDERR
    E20220322 11:50:05.226009  2539 monitor.cc:842] SANDBOX VIOLATION : PID: 2544, PROG: 'python3.9' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffe3e622a60) IP: 0x7f79db5c0be5, STACK: 0x7ffe3e622a10
    I20220322 11:50:05.226202  2539 monitor.cc:386] Stack traces have been disabled
    Compilation failed
    
    --------------------------------------------------------------------------------
    The bad solution passes a few tests but then fails.
    Because we set stop_on_first_failure to True, we stop once we see a failure.
    We are running on 4 threads, so it's possible that more than one failure occurs
    before all threads stop.
    
    E20220322 11:50:05.231288  2545 monitor.cc:842] SANDBOX VIOLATION : PID: 2548, PROG: 'python3.9' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffefd9ac980) IP: 0x7f6e16896be5, STACK: 0x7ffefd9ac930
    I20220322 11:50:05.231374  2545 monitor.cc:386] Stack traces have been disabled
    Compilation failed
    
    --------------------------------------------------------------------------------
    The good solution passes all tests.
    
    E20220322 11:50:05.235946  2549 monitor.cc:842] SANDBOX VIOLATION : PID: 2552, PROG: 'python3.9' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffe11fd4d30) IP: 0x7f0925a06be5, STACK: 0x7ffe11fd4ce0
    I20220322 11:50:05.236099  2549 monitor.cc:386] Stack traces have been disabled
    Compilation failed
    

    clang --version:

    clang version 10.0.0-4ubuntu1
    Target: x86_64-pc-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    
    opened by KareemAlaa2001 4
  • Print other features for each problem

    Print other features for each problem

    Hi, Thank you for this great dataset. I have two questions:

    1. How can we print the description of the problems and solutions (including correct, wrong, etc) and test cases? do you have any list of features that can help us to fetch other attributes?
    2. for example "CODEFORCES 1569_A" as a source, means the problem is fetched from codeforces but what is 1569_A or_B? It seems more than an index to me.

    Thank you :)

    opened by arghavanmo 3
  • SANDBOX VIOLATION

    SANDBOX VIOLATION

    UPDATE was able to resolve the by following responses after this post:

    https://github.com/deepmind/code_contests/issues/12#issuecomment-1075331768


    I had this working at one point, but now when I try to run the solve, it omits the actual code solution that was previously outputted to log. I'm guessing this is due to "Stack traces have been disabled":

    ` bazel run -c opt execution:solve_example -- --valid_path=//root/tmp/dm-code_contests/code_contests_valid.riegeli --python3_path=/usr/bin/python3.10 --python3_library_paths=/usr/lib/python3.10 DEBUG: Rule 'com_github_grpc_grpc' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "96b73272eadc01afb5fb45b92b408c47e4387274", shallow_since = "1624063996 -0700" and dropping ["tag"] DEBUG: Repository com_github_grpc_grpc instantiated at: /root/WORKSPACE:4:15: in Repository rule git_repository defined at: /root/.cache/bazel/_bazel_root/887904812217cca9bc2b9adb875daf42/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in DEBUG: Rule 'com_google_sandboxed_api' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1645093884 -0800" DEBUG: Repository com_google_sandboxed_api instantiated at: /root/WORKSPACE:109:6: in /root/.cache/bazel/_bazel_root/887904812217cca9bc2b9adb875daf42/external/bazel_tools/tools/build_defs/repo/utils.bzl:233:18: in maybe Repository rule git_repository defined at: /root/.cache/bazel/_bazel_root/887904812217cca9bc2b9adb875daf42/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in DEBUG: Rule 'com_google_protobuf' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "cc7b1b53234cd7a8f50d90ac3933b240dcf4cd97", shallow_since = "1641866895 -0800" and dropping ["tag"] DEBUG: Repository com_google_protobuf instantiated at: /root/WORKSPACE:22:15: in Repository rule git_repository defined at: /root/.cache/bazel/_bazel_root/887904812217cca9bc2b9adb875daf42/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in DEBUG: Rule 'com_google_absl' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "215105818dfde3174fe799600bb0f3cae233d0bf", shallow_since = "1635953174 -0400" and dropping ["tag"] DEBUG: Repository com_google_absl instantiated at: /root/WORKSPACE:28:15: in Repository rule git_repository defined at: /root/.cache/bazel/_bazel_root/887904812217cca9bc2b9adb875daf42/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in DEBUG: Rule 'rules_python' indicated that a canonical reproducible form can be obtained by modifying arguments commit = "76ef44fdb8aaa8d5c607721ffe1b1cbf1e8f08dd", shallow_since = "1635214215 -0700" and dropping ["tag"] DEBUG: Repository rules_python instantiated at: /root/WORKSPACE:14:15: in Repository rule git_repository defined at: /root/.cache/bazel/_bazel_root/887904812217cca9bc2b9adb875daf42/external/bazel_tools/tools/build_defs/repo/git.bzl:199:33: in INFO: Analyzed target //execution:solve_example (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //execution:solve_example up-to-date: bazel-bin/execution/solve_example INFO: Elapsed time: 0.319s, Critical Path: 0.00s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action INFO: Running command line: bazel-bin/execution/solve_example '--valid_path=//root/tmp/dm-code_contests/code_contests_valid.riegeli' '--python3_path=/usr/bin/python3.10' '--python3_librarINFO: Build completed successfully, 1 total action We will try to solve "Gregor and Cryptography": https://codeforces.com/problemset/problem/1549/A

    We will run:

    1. A program that does not compile.
    2. A program that runs successfully, but gives the wrong answer sometimes.
    3. A correct solution.

    An invalid program is reported as not compiling:

    [global_forkclient.cc : 122] RAW: Starting global forkserver WARNING: Logging before InitGoogleLogging() is written to STDERR E20220922 03:16:46.685678 473369 monitor.cc:842] SANDBOX VIOLATION : PID: 473374, PROG: 'python3.10' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffe03026890) IP: 0x7fb5e9583bf5, STACK: 0x7ffe03026840 I20220922 03:16:46.685863 473369 monitor.cc:386] Stack traces have been disabled Compilation failed


    The bad solution passes a few tests but then fails. Because we set stop_on_first_failure to True, we stop once we see a failure. We are running on 4 threads, so it's possible that more than one failure occurs before all threads stop.

    E20220922 03:16:46.965130 473376 monitor.cc:842] SANDBOX VIOLATION : PID: 473379, PROG: 'python3.10' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffd0c9893d0) IP: 0x7f4a0ad42bf5, STACK: 0x7ffd0c989380 I20220922 03:16:46.965252 473376 monitor.cc:386] Stack traces have been disabled Compilation failed


    The good solution passes all tests.

    E20220922 03:16:47.242813 473384 monitor.cc:842] SANDBOX VIOLATION : PID: 473387, PROG: 'python3.10' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffe72cfa5f0) IP: 0x7f8b25f09bf5, STACK: 0x7ffe72cfa5a0 I20220922 03:16:47.242944 473384 monitor.cc:386] Stack traces have been disabled Compilation failed`

    opened by wvaughn409 2
  • Is there any plan to release C++ test sandbox?

    Is there any plan to release C++ test sandbox?

    As @davidhchoi mentioned here, C++ sandbox is complicated to release, but as we can see C++ code is take up a large percentage of code labels. Is there any plan to release C++ test sandbox from DeepMind AlphaCode Team?

    opened by PhungVanDuy 2
  • Bazel run error on Ubuntu16.04

    Bazel run error on Ubuntu16.04

    python 3.6 gcc 9.4 bazel 5.0 ERROR:/root/.cache/bazel/_bazel_root/6675997dee4e0376c54aabebada3b948/external/com_google_absl/absl/types/BUILD.bazel:153:11: Compiling absl/types/bad_optional_access.cc failed: (Exit 1): clang-11 failed: error executing command I followed the instruction of the readme, and run the command "bazel run -c opt :print_names_and_sources ../dm-code_contestscode_contests_valid.riegeli --verbose_failures". The details is in the following picture error-gcc-9

    Actually, I have changed the gcc version from gcc-7 to gcc-9, as it occurred the "ERROR: /root/.cache/bazel/_bazel_root/51fbc34d3ea9958886586d668dbcdf68/external/snappy/BUILD.bazel:5:11: Compiling snappy-stubs-internal.cc failed: (Exit 1): gcc failed: error executing command" when executing the "bazel run...". error-gcc7

    And my first tries on the Windows system, it also cannot run sucessfully. (Windows 10, Python 3.6, Microsoft Visual Studio Community 2019, Bazel 6.0.0 and msys) Here is the error. error-windows

    I hope that someone could help me. I have try many times. Is there any way to run successfully?

    opened by Leah-LJX 2
  • Error downloading com_google_riegeli

    Error downloading com_google_riegeli

    Hi, it seems to be a network error since I am behind a system level proxy, should and how can I configure bazel to work with a proxy?

    ERROR: An error occurred during the fetch of repository 'com_google_riegeli':
    
    Error in download_and_extract: java.io.IOException: Error downloading [https://github.com/google/riegeli/archive/587c7921700a58f53fbd2b47fcf9c6dc38477a32.tar.gz]
    
    opened by Symbolk 2
  • Error running: Bazel run

    Error running: Bazel run

    I followed the steps in the readme, clone the repo, download the data and tried to use bazel run command to check the training data. It ran into this error:

    ERROR: /private/var/tmp/_bazel_jeremy.zhang/a44e22cefef79c0c35685895270fd665/external/org_brotli/BUILD:113:11: Compiling c/dec/bit_reader.c failed: (Aborted): wrapped_clang failed: error executing command external/local_config_cc/wrapped_clang '-D_FORTIFY_SOURCE=1' -fstack-protector -fcolor-diagnostics -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG '-DNS_BLOCK_ASSERTIONS=1' ... (remaining 40 arguments skipped)
    
    Use --sandbox_debug to see verbose messages from the sandbox
    error: unknown warning option '-Wno-vla-parameter'; did you mean '-Wno-unused-parameter'? [-Werror,-Wunknown-warning-option]
    Error in child process '/usr/bin/xcrun'. 1
    Target //:print_names_and_sources failed to build
    Use --verbose_failures to see the command lines of failed build steps.
    INFO: Elapsed time: 10.118s, Critical Path: 9.73s
    INFO: 91 processes: 26 internal, 65 darwin-sandbox.
    FAILED: Build did NOT complete successfully
    FAILED: Build did NOT complete successfully
    

    I installed bazel using homebrew

    bazel 5.0.0-homebrew
    

    Laptop: Mac

    python:

    3.7.9
    
    opened by MJeremy2017 2
  • Failed: Gregor and Cryptography problem not found. Did you pass the validation dataset?

    Failed: Gregor and Cryptography problem not found. Did you pass the validation dataset?

    ***UPDATE: I see now that the first command in the section "Executing and evaluating solutions" seems to be expected to fail, because running the subsequent command:

    bazel run -c opt execution:solve_example -- \ --valid_path=/tmp/dm-code_contests/code_contests_valid.riegeli \ --python3_path=/usr/bin/python3.10 --python3_library_paths=/usr/lib/python3.10

    ...which specifies the Python version does attempt to solve the "Gregor and Cryptography" problem. It would have been very helpful if the instructions would have called out this expectation of an initial failure like "...demonstrates this functionality, and can be run with e.g., but this is expected to fail because of the need to specify a particular python version for certain problems. i.e. you should see 'Failed: Gregor and Cryptography problem not found. Did you pass the validation dataset?' "

    That could have been explained better. Additionally, I had to jump through a few more hoops to get Python 3.10 installed on Ubuntu before that second command would work. I followed some instructions on this page https://computingforgeeks.com/how-to-install-python-on-ubuntu-linux-system/ ...but had some errors with that which required updating certificates using: sudo apt-get install --reinstall ca-certificates ...and even after that had to try several times the last step on that page^^ because kept getting gpg key errors. finally worked and i was able to run the line that performs the solving of "Gregor and Cryptography"

    bazel run -c opt execution:solve_example -- \ --valid_path=/tmp/dm-code_contests/code_contests_valid.riegeli \ --python3_path=/usr/bin/python3.10 --python3_library_paths=/usr/lib/python3.10

    ...successfully. Now will someone please explain how to use this at work so I can just write a program that does my job for me and just keep an eye on my laptop while I sit on a beach this summer? ;)


    I thought initially that this problem was native to LaudemPax's Docker image, which I was using on Windows 11 environment to try this out, but I switched over to Ubuntu and got so far as to get a good output from this command:

    bazel run -c opt :print_names_and_sources /tmp/dm-code_contests/code_contests_valid.riegeli

    ...which returns a long list of code problems after compiling (see further down this post), but when I then execute the first example command under "Executing and evaluating solutions"...

    bazel run -c opt execution:solve_example -- \ /tmp/dm-code_contests/code_contests_valid.riegeli

    ...I get the following error:

    Failed: Gregor and Cryptography problem not found. Did you pass the validation dataset? Please advise.

    CODEFORCES 1548_C. The Three Little Pigs CODEFORCES 1548_D1. Gregor and the Odd Cows (Easy) CODEFORCES 1548_D2. Gregor and the Odd Cows (Hard) CODEFORCES 1548_E. Gregor and the Two Painters CODEFORCES 1549_A. Gregor and Cryptography CODEFORCES 1549_B. Gregor and the Pawn Game CODEFORCES 1549_C. Web of Lies CODEFORCES 1549_D. Integers Have Friends CODEFORCES 1551_A. Polycarp and Coins CODEFORCES 1551_B1. Wonderful Coloring - 1 CODEFORCES 1551_B2. Wonderful Coloring - 2 CODEFORCES 1551_C. Interesting Story CODEFORCES 1551_D1. Domino (easy version) CODEFORCES 1551_D2. Domino (hard version) CODEFORCES 1551_E. Fixed Points CODEFORCES 1551_F. Equidistant Vertices CODEFORCES 1552_A. Subsequence Permutation CODEFORCES 1552_B. Running for Gold CODEFORCES 1552_C. Maximize the Intersections CODEFORCES 1552_D. Array Differentiation CODEFORCES 1552_E. Colors and Intervals CODEFORCES 1552_F. Telepanting CODEFORCES 1552_G. A Serious Referee CODEFORCES 1552_I. Organizing a Music Festival CODEFORCES 1553_A. Digits Sum CODEFORCES 1553_B. Reverse String CODEFORCES 1553_C. Penalty CODEFORCES 1553_D. Backspace CODEFORCES 1553_E. Permutation Shift CODEFORCES 1553_F. Pairwise Modulo CODEFORCES 1553_G. Common Divisor Graph CODEFORCES 1553_H. XOR and Distance CODEFORCES 1553_I. Stairs CODEFORCES 1554_A. Cherry CODEFORCES 1554_B. Cobb CODEFORCES 1554_C. Mikasa CODEFORCES 1554_D. Diane CODEFORCES 1554_E. You CODEFORCES 1555_A. PizzaForces CODEFORCES 1555_B. Two Tables CODEFORCES 1555_C. Coin Rows CODEFORCES 1555_D. Say No to Palindromes CODEFORCES 1555_E. Boring Segments CODEFORCES 1555_F. Good Graph CODEFORCES 1556_A. A Variety of Operations CODEFORCES 1556_B. Take Your Places! CODEFORCES 1556_C. Compressed Bracket Sequence CODEFORCES 1556_D. Take a Guess CODEFORCES 1556_E. Equilibrium CODEFORCES 1556_F. Sports Betting CODEFORCES 1556_G. Gates to Another World CODEFORCES 1556_H. DIY Tree CODEFORCES 1557_A. Ezzat and Two Subsequences CODEFORCES 1557_B. Moamen and k-subarrays CODEFORCES 1557_C. Moamen and XOR CODEFORCES 1557_D. Ezzat and Grid CODEFORCES 1557_E. Assiut Chess CODEFORCES 1558_C. Bottom-Tier Reversals CODEFORCES 1558_D. Top-Notch Insertions CODEFORCES 1558_E. Down Below CODEFORCES 1559_A. Mocha and Math CODEFORCES 1559_B. Mocha and Red and Blue CODEFORCES 1559_C. Mocha and Hiking CODEFORCES 1559_D1. Mocha and Diana (Easy Version) CODEFORCES 1559_D2. Mocha and Diana (Hard Version) CODEFORCES 1559_E. Mocha and Stars CODEFORCES 1560_A. Dislike of Threes CODEFORCES 1560_B. Who's Opposite? CODEFORCES 1560_C. Infinity Table CODEFORCES 1560_D. Make a Power of Two CODEFORCES 1560_E. Polycarp and String Transformation CODEFORCES 1560_F1. Nearest Beautiful Number (easy version) CODEFORCES 1560_F2. Nearest Beautiful Number (hard version) CODEFORCES 1561_A. Simply Strange Sort CODEFORCES 1561_B. Charmed by the Game CODEFORCES 1561_C. Deep Down Below CODEFORCES 1561_D1. Up the Strip (simplified version) CODEFORCES 1561_D2. Up the Strip CODEFORCES 1562_A. The Miracle and the Sleeper CODEFORCES 1562_B. Scenes From a Memory CODEFORCES 1562_C. Rings CODEFORCES 1562_D1. Two Hundred Twenty One (easy version) CODEFORCES 1562_D2. Two Hundred Twenty One (hard version) CODEFORCES 1562_E. Rescue Niwen! CODEFORCES 1566_A. Median Maximization CODEFORCES 1566_B. MIN-MEX Cut CODEFORCES 1566_C. MAX-MEX Cut CODEFORCES 1566_D1. Seating Arrangements (easy version) CODEFORCES 1566_D2. Seating Arrangements (hard version) CODEFORCES 1566_E. Buds Re-hanging CODEFORCES 1566_F. Points Movement CODEFORCES 1566_G. Four Vertices CODEFORCES 1566_H. Xor-quiz CODEFORCES 1567_B. MEXor Mixup CODEFORCES 1567_C. Carrying Conundrum CODEFORCES 1567_D. Expression Evaluation Error CODEFORCES 1567_E. Non-Decreasing Dilemma CODEFORCES 1567_F. One-Four Overload CODEFORCES 1569_A. Balanced Substring CODEFORCES 1569_B. Chess Tournament CODEFORCES 1569_C. Jury Meeting CODEFORCES 1569_D. Inconvenient Pairs CODEFORCES 1569_E. Playoff Restoration CODEFORCES 1569_F. Palindromic Hamiltonian Path CODEFORCES 1572_B. Xor of 3 CODEFORCES 1572_C. Paint CODEFORCES 1572_D. Bridge Club CODEFORCES 1572_E. Polygon CODEFORCES 1572_F. Stations CODEFORCES 1573_A. Countdown CODEFORCES 1573_C. Book CODEFORCES 1574_A. Regular Bracket Sequences CODEFORCES 1574_B. Combinatorics Homework CODEFORCES 1574_C. Slay the Dragon CODEFORCES 1574_D. The Strongest Build CODEFORCES 1574_E. Coloring CODEFORCES 1574_F. Occurrences

    opened by wvaughn409 1
  • SANDBOX VIOLATION

    SANDBOX VIOLATION

    I have written a file similar to solve_example.cc to run all solutions to problems in a files. However, I get the following output:

    1548_C. The Three Little Pigs [global_forkclient.cc : 122] RAW: Starting global forkserver WARNING: Logging before InitGoogleLogging() is written to STDERR E20220420 15:38:49.259812 589011 monitor.cc:842] SANDBOX VIOLATION : PID: 589016, PROG: 'python3.9' : [X86-64] arch_prctl [158](0x3001 [12289], 0x7ffc9bfbd5b0) IP: 0x7f936cdefbe5, STACK: 0x7ffc9bfbd560 I20220420 15:38:49.259986 589011 monitor.cc:386] Stack traces have been disabled Compilation failed

    I tried to only run it on one thread, but I still get the same result. Below is my code:

    #include <iostream>
    #include <tuple>
    #include <vector>
    
    #include "absl/strings/string_view.h"
    #include "absl/types/span.h"
    #include "contest_problem.pb.h"
    #include "riegeli/bytes/fd_reader.h"
    #include "riegeli/records/record_reader.h"
    
    #include <fcntl.h>
    
    #include <functional>
    #include <iostream>
    #include <string>
    #include <tuple>
    #include <vector>
    
    #include "absl/flags/parse.h"
    #include "absl/flags/flag.h"
    #include "absl/status/status.h"
    #include "absl/status/statusor.h"
    #include "absl/strings/string_view.h"
    #include "absl/types/span.h"
    #include "contest_problem.pb.h"
    #include "execution/py_locations.h"
    #include "execution/py_tester_sandboxer.h"
    #include "execution/status_macros.h"
    #include "execution/tester_sandboxer.h"
    #include "riegeli/bytes/fd_reader.h"
    #include "riegeli/records/record_reader.h"
    
    ABSL_FLAG(std::string, valid_path, "", "Path to validation dataset.");
    
    namespace deepmind::code_contests {
    namespace {
    
    std::vector<absl::string_view> GetInputs(const ContestProblem& problem,
                                             int max_size) {
      std::vector<absl::string_view> inputs;
      for (const auto& test : problem.public_tests()) {
        inputs.push_back(test.input());
      }
      for (const auto& test : problem.private_tests()) {
        inputs.push_back(test.input());
      }
      for (const auto& test : problem.generated_tests()) {
        inputs.push_back(test.input());
      }
      inputs.resize(max_size);
      return inputs;
    }
    
    std::vector<absl::string_view> GetOutputs(const ContestProblem& problem,
                                              int max_size) {
      std::vector<absl::string_view> outputs;
      for (const auto& test : problem.public_tests()) {
        outputs.push_back(test.output());
      }
      for (const auto& test : problem.private_tests()) {
        outputs.push_back(test.output());
      }
      for (const auto& test : problem.generated_tests()) {
        outputs.push_back(test.output());
      }
      outputs.resize(max_size);
      return outputs;
    }
    
    void ReportResults(const MultiTestResult& multi_result) {
      std::cout << "Compilation "
                << (multi_result.compilation_result.program_status ==
                            ProgramStatus::kSuccess
                        ? "succeeded"
                        : "failed")
                << "\n";
      int i = 0;
      for (const auto& test_result : multi_result.test_results) {
        if (!test_result.passed.has_value()) {
          std::cout << "Test " << i << " did not run.\n";
        } else if (*test_result.passed) {
          std::cout << "Test " << i << " passed.\n";
        } else {
          std::cout << "Test " << i << " failed.\n";
        }
        ++i;
      }
    }
    
    absl::Status SolveProblem(
        const absl::string_view valid_filename, ContestProblem problem) {
      const std::vector<absl::string_view> inputs =
          GetInputs(problem,
                    /*max_size=*/10);
      const std::vector<absl::string_view> outputs =
          GetOutputs(problem,
                     /*max_size=*/10);
    
      Py3TesterSandboxer tester(Py3InterpreterPath(), Py3LibraryPaths());
      TestOptions options;
      options.num_threads = 4;
      options.stop_on_first_failure = false;
    
      for (int i = 0; i < problem.incorrect_solutions_size(); i++)
      {
        const absl::string_view code = problem.incorrect_solutions(i).solution();
        
        ASSIGN_OR_RETURN(MultiTestResult bad_result,
                       tester.Test(code, inputs, options, outputs));
        ReportResults(bad_result);
      }
    
      for (int i = 0; i < problem.solutions_size(); i++)
      {
        const absl::string_view code = problem.solutions(i).solution();
        ASSIGN_OR_RETURN(MultiTestResult good_result,
                        tester.Test(code, inputs, options, outputs));
        ReportResults(good_result);
      }
    
      return absl::OkStatus();
    }
    
    }  // namespace
    }  // namespace deepmind::code_contests
    
    
    namespace {
    
    using ::deepmind::code_contests::ContestProblem;
    
    void PrintNames(const absl::Span<const absl::string_view> filenames) {
      for (const absl::string_view filename : filenames) {
        riegeli::RecordReader<riegeli::FdReader<>> reader(
            std::forward_as_tuple(filename));
        ContestProblem problem;
        while (reader.ReadRecord(problem)) {
          std::cout << problem.name() << '\n';
          ::deepmind::code_contests::SolveProblem(filename, problem);
        }
        reader.Close();
      }
    }
    
    }  // namespace
    
    int main(int argc, char* argv[]) {
      std::vector<absl::string_view> filenames;
      filenames.reserve(argc - 1);
      for (int i = 1; i < argc; ++i) {
        filenames.push_back(argv[i]);
      }
      PrintNames(filenames);
    }
    
    opened by AryazE 1
  • Availability of AlphaCode

    Availability of AlphaCode

    Hi, I am fascinated by the results from your paper and I was wondering whether there is a way for us to test AlphaCode ourselves. Is AlphaCode available to the public for testing?

    Thank you.

    opened by jstan15 1
  • Error when Running Bazel

    Error when Running Bazel

    Python: 3.6.15 Bazel 5.0.0

    I followed the readme (bazel run -c opt :print_names_and_sources C:\tmp\dm-code_contests\dm-code_contests/code_contests_valid.riegeli), but met following errors. Both gcc-7/gcc-9 does not work.

    ` ERROR: /root/.cache/bazel/_bazel_root/4c0c9775f3bba9ff6053ea6ee19afc7d/external/com_google_riegeli/riegeli/base/BUILD:85:11: Compiling riegeli/base/buffer.cc failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 25 arguments skipped)

    Use --sandbox_debug to see verbose messages from the sandbox In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/base.h:313:10: error: 'std::enable_if_t' has not been declared 313 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:313:21: error: expected '>' before '<' token 313 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^ external/com_google_riegeli/riegeli/base/base.h:322:16: error: 'std::enable_if_t' has not been declared 322 | std::enable_if_t< | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:322:27: error: expected '>' before '<' token 322 | std::enable_if_t< | ^ external/com_google_riegeli/riegeli/base/base.h:324:10: error: redefinition of 'template<class A, class B, > A riegeli::IntCast(B)' 324 | inline A IntCast(B value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:315:10: note: 'template<class A, class B, > A riegeli::IntCast(B)' previously declared here 315 | inline A IntCast(B value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:333:16: error: 'std::enable_if_t' has not been declared 333 | std::enable_if_t< | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:333:27: error: expected '>' before '<' token 333 | std::enable_if_t< | ^ external/com_google_riegeli/riegeli/base/base.h:335:10: error: redefinition of 'template<class A, class B, > A riegeli::IntCast(B)' 335 | inline A IntCast(B value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:315:10: note: 'template<class A, class B, > A riegeli::IntCast(B)' previously declared here 315 | inline A IntCast(B value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:343:16: error: 'std::enable_if_t' has not been declared 343 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:343:27: error: expected '>' before '<' token 343 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^ external/com_google_riegeli/riegeli/base/base.h:345:10: error: redefinition of 'template<class A, class B, > A riegeli::IntCast(B)' 345 | inline A IntCast(B value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:315:10: note: 'template<class A, class B, > A riegeli::IntCast(B)' previously declared here 315 | inline A IntCast(B value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:358:10: error: 'std::enable_if_t' has not been declared 358 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:358:21: error: expected '>' before '<' token 358 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^ external/com_google_riegeli/riegeli/base/base.h:368:16: error: 'std::enable_if_t' has not been declared 368 | std::enable_if_t< | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:368:27: error: expected '>' before '<' token 368 | std::enable_if_t< | ^ external/com_google_riegeli/riegeli/base/base.h:370:10: error: redefinition of 'template<class A, class B, > A riegeli::SaturatingIntCast(B)' 370 | inline A SaturatingIntCast(B value) { | ^~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:360:10: note: 'template<class A, class B, > A riegeli::SaturatingIntCast(B)' previously declared here 360 | inline A SaturatingIntCast(B value) { | ^~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:380:16: error: 'std::enable_if_t' has not been declared 380 | std::enable_if_t< | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:380:27: error: expected '>' before '<' token 380 | std::enable_if_t< | ^ external/com_google_riegeli/riegeli/base/base.h:382:10: error: redefinition of 'template<class A, class B, > A riegeli::SaturatingIntCast(B)' 382 | inline A SaturatingIntCast(B value) { | ^~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:360:10: note: 'template<class A, class B, > A riegeli::SaturatingIntCast(B)' previously declared here 360 | inline A SaturatingIntCast(B value) { | ^~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:391:16: error: 'std::enable_if_t' has not been declared 391 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:391:27: error: expected '>' before '<' token 391 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^ external/com_google_riegeli/riegeli/base/base.h:393:10: error: redefinition of 'template<class A, class B, > A riegeli::SaturatingIntCast(B)' 393 | inline A SaturatingIntCast(B value) { | ^~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:360:10: note: 'template<class A, class B, > A riegeli::SaturatingIntCast(B)' previously declared here 360 | inline A SaturatingIntCast(B value) { | ^~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:415:28: error: 'std::enable_if_t' has not been declared 415 | template <typename A, std::enable_if_t<std::is_signed::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:415:39: error: expected '>' before '<' token 415 | template <typename A, std::enable_if_t<std::is_signed::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:421:16: error: 'std::enable_if_t' has not been declared 421 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:421:27: error: expected '>' before '<' token 421 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^ external/com_google_riegeli/riegeli/base/base.h:423:16: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 423 | constexpr std::common_type_t<A, B> SignedMin(A a, B b) { | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:429:10: error: 'std::enable_if_t' has not been declared 429 | std::enable_if_t<(sizeof...(Rest) > 0 && | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:429:21: error: expected '>' before '<' token 429 | std::enable_if_t<(sizeof...(Rest) > 0 && | ^ external/com_google_riegeli/riegeli/base/base.h:433:16: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 433 | constexpr std::common_type_t<A, B, Rest...> SignedMin(A a, B b, Rest... rest) { | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:440:28: error: 'std::enable_if_t' has not been declared 440 | template <typename A, std::enable_if_t<std::is_signed::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:440:39: error: expected '>' before '<' token 440 | template <typename A, std::enable_if_t<std::is_signed::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:446:16: error: 'std::enable_if_t' has not been declared 446 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:446:27: error: expected '>' before '<' token 446 | std::enable_if_t<std::is_signed::value && std::is_signed::value, | ^ external/com_google_riegeli/riegeli/base/base.h:448:16: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 448 | constexpr std::common_type_t<A, B> SignedMax(A a, B b) { | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:454:10: error: 'std::enable_if_t' has not been declared 454 | std::enable_if_t<(sizeof...(Rest) > 0 && | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:454:21: error: expected '>' before '<' token 454 | std::enable_if_t<(sizeof...(Rest) > 0 && | ^ external/com_google_riegeli/riegeli/base/base.h:458:16: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 458 | constexpr std::common_type_t<A, B, Rest...> SignedMax(A a, B b, Rest... rest) { | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:500:49: error: 'common_type_t' is not a member of 'std'; did you mean 'common_type'? 500 | : internal::IntersectionTypeImpl<A, B, std::common_type_t<A, B>> {}; | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:500:49: error: 'common_type_t' is not a member of 'std'; did you mean 'common_type'? 500 | : internal::IntersectionTypeImpl<A, B, std::common_type_t<A, B>> {}; | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:500:66: error: wrong number of template arguments (4, should be 3) 500 | : internal::IntersectionTypeImpl<A, B, std::common_type_t<A, B>> {}; | ^ external/com_google_riegeli/riegeli/base/base.h:468:8: note: provided for 'template<class A, class B, class Common> struct riegeli::internal::IntersectionTypeImpl' 468 | struct IntersectionTypeImpl; | ^~~~~~~~~~~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:500:67: error: expected '{' before '>' token 500 | : internal::IntersectionTypeImpl<A, B, std::common_type_t<A, B>> {}; | ^~ external/com_google_riegeli/riegeli/base/base.h:506:28: error: 'std::enable_if_t' has not been declared 506 | template <typename A, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:506:39: error: expected '>' before '<' token 506 | template <typename A, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:513:10: error: 'std::enable_if_t' has not been declared 513 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:513:21: error: expected '>' before '<' token 513 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^ external/com_google_riegeli/riegeli/base/base.h:520:16: error: 'std::enable_if_t' has not been declared 520 | std::enable_if_t< | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:520:27: error: expected '>' before '<' token 520 | std::enable_if_t< | ^ external/com_google_riegeli/riegeli/base/base.h:532:28: error: 'std::enable_if_t' has not been declared 532 | template <typename A, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:532:39: error: expected '>' before '<' token 532 | template <typename A, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:539:10: error: 'std::enable_if_t' has not been declared 539 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:539:21: error: expected '>' before '<' token 539 | std::enable_if_t<std::is_unsigned::value && std::is_unsigned::value, | ^ external/com_google_riegeli/riegeli/base/base.h:541:16: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 541 | constexpr std::common_type_t<A, B> UnsignedMax(A a, B b) { | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:546:16: error: 'std::enable_if_t' has not been declared 546 | std::enable_if_t< | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:546:27: error: expected '>' before '<' token 546 | std::enable_if_t< | ^ external/com_google_riegeli/riegeli/base/base.h:551:16: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 551 | constexpr std::common_type_t<A, B, Rest...> UnsignedMax(A a, B b, | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:559:28: error: 'std::enable_if_t' has not been declared 559 | template <typename T, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:559:39: error: expected '>' before '<' token 559 | template <typename T, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:564:28: error: 'std::enable_if_t' has not been declared 564 | template <typename T, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:564:39: error: expected '>' before '<' token 564 | template <typename T, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:571:10: error: 'std::enable_if_t' has not been declared 571 | std::enable_if_t<(sizeof...(Rest) > 0 && | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:571:21: error: expected '>' before '<' token 571 | std::enable_if_t<(sizeof...(Rest) > 0 && | ^ external/com_google_riegeli/riegeli/base/base.h:581:28: error: 'std::enable_if_t' has not been declared 581 | template <typename T, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:581:39: error: expected '>' before '<' token 581 | template <typename T, std::enable_if_t<std::is_unsigned::value, int> = 0> | ^ external/com_google_riegeli/riegeli/base/base.h:589:16: error: 'std::enable_if_t' has not been declared 589 | std::enable_if_t<std::is_unsigned::value && alignment != 0 && | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:589:27: error: expected '>' before '<' token 589 | std::enable_if_t<std::is_unsigned::value && alignment != 0 && | ^ external/com_google_riegeli/riegeli/base/base.h:599:16: error: 'std::enable_if_t' has not been declared 599 | std::enable_if_t<std::is_unsigned::value && alignment != 0 && | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:599:27: error: expected '>' before '<' token 599 | std::enable_if_t<std::is_unsigned::value && alignment != 0 && | ^ external/com_google_riegeli/riegeli/base/base.h:611:10: error: 'common_type_t' in namespace 'std' does not name a template type; did you mean 'common_type'? 611 | std::common_type_t<size_t, std::make_unsigned_tstd::streamoff, uint64_t>; | ^~~~~~~~~~~~~ | common_type external/com_google_riegeli/riegeli/base/base.h:673:47: error: 'Position' has not been declared 673 | inline size_t BufferLength(size_t min_length, Position recommended_length, | ^~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:674:47: error: 'Position' has not been declared 674 | size_t max_length, Position size_hint, | ^~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:675:28: error: 'Position' has not been declared 675 | Position current_size) { | ^~~~~~~~ external/com_google_riegeli/riegeli/base/base.h: In function 'size_t riegeli::BufferLength(size_t, int, size_t, int, int)': external/com_google_riegeli/riegeli/base/base.h:677:64: error: no matching function for call to 'UnsignedMin(int&, size_t&)' 677 | return UnsignedMax(UnsignedMin(recommended_length, max_length), min_length); | ^ external/com_google_riegeli/riegeli/base/base.h:507:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMin(A)' 507 | constexpr A UnsignedMin(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:507:13: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:677:64: note: candidate expects 1 argument, 2 provided 677 | return UnsignedMax(UnsignedMin(recommended_length, max_length), min_length); | ^ external/com_google_riegeli/riegeli/base/base.h:515:35: note: candidate: 'template<class A, class B, > constexpr riegeli::IntersectionTypeT<A, B> riegeli::UnsignedMin(A, B)' 515 | constexpr IntersectionTypeT<A, B> UnsignedMin(A a, B b) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:515:35: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:677:64: note: couldn't deduce template parameter '' 677 | return UnsignedMax(UnsignedMin(recommended_length, max_length), min_length); | ^ external/com_google_riegeli/riegeli/base/base.h:525:44: note: candidate: 'template<class A, class B, class ... Rest, > constexpr riegeli::IntersectionTypeT<A, B, Rest ...> riegeli::UnsignedMin(A, B, Rest ...)' 525 | constexpr IntersectionTypeT<A, B, Rest...> UnsignedMin(A a, B b, Rest... rest) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:525:44: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:677:64: note: couldn't deduce template parameter '' 677 | return UnsignedMax(UnsignedMin(recommended_length, max_length), min_length); | ^ external/com_google_riegeli/riegeli/base/base.h: At global scope: external/com_google_riegeli/riegeli/base/base.h:682:28: error: 'Position' has not been declared 682 | Position size_hint, Position current_size) { | ^~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:682:48: error: 'Position' has not been declared 682 | Position size_hint, Position current_size) { | ^~~~~~~~ external/com_google_riegeli/riegeli/base/base.h: In function 'size_t riegeli::BufferLength(size_t, size_t, int, int)': external/com_google_riegeli/riegeli/base/base.h:684:66: error: no matching function for call to 'UnsignedMin(int, size_t&)' 684 | max_length = UnsignedMin(size_hint - current_size, max_length); | ^ external/com_google_riegeli/riegeli/base/base.h:507:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMin(A)' 507 | constexpr A UnsignedMin(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:507:13: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:684:66: note: candidate expects 1 argument, 2 provided 684 | max_length = UnsignedMin(size_hint - current_size, max_length); | ^ external/com_google_riegeli/riegeli/base/base.h:515:35: note: candidate: 'template<class A, class B, > constexpr riegeli::IntersectionTypeT<A, B> riegeli::UnsignedMin(A, B)' 515 | constexpr IntersectionTypeT<A, B> UnsignedMin(A a, B b) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:515:35: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:684:66: note: couldn't deduce template parameter '' 684 | max_length = UnsignedMin(size_hint - current_size, max_length); | ^ external/com_google_riegeli/riegeli/base/base.h:525:44: note: candidate: 'template<class A, class B, class ... Rest, > constexpr riegeli::IntersectionTypeT<A, B, Rest ...> riegeli::UnsignedMin(A, B, Rest ...)' 525 | constexpr IntersectionTypeT<A, B, Rest...> UnsignedMin(A a, B b, Rest... rest) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:525:44: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:684:66: note: couldn't deduce template parameter '' 684 | max_length = UnsignedMin(size_hint - current_size, max_length); | ^ external/com_google_riegeli/riegeli/base/base.h:686:44: error: no matching function for call to 'UnsignedMax(size_t&, size_t&)' 686 | return UnsignedMax(max_length, min_length); | ^ external/com_google_riegeli/riegeli/base/base.h:533:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMax(A)' 533 | constexpr A UnsignedMax(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:533:13: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:686:44: note: candidate expects 1 argument, 2 provided 686 | return UnsignedMax(max_length, min_length); | ^ external/com_google_riegeli/riegeli/base/base.h: In function 'bool riegeli::Wasteful(size_t, size_t)': external/com_google_riegeli/riegeli/base/base.h:691:57: error: no matching function for call to 'UnsignedMax(size_t&, riegeli::internal::type_identity_t&)' 691 | return total - used > UnsignedMax(used, kMinBufferSize); | ^ external/com_google_riegeli/riegeli/base/base.h:533:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMax(A)' 533 | constexpr A UnsignedMax(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:533:13: note: template argument deduction/substitution failed: external/com_google_riegeli/riegeli/base/base.h:691:57: note: candidate expects 1 argument, 2 provided 691 | return total - used > UnsignedMax(used, kMinBufferSize); | ^ In file included from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/memory.h: In function 'size_t riegeli::EstimatedAllocatedSize(size_t)': external/com_google_riegeli/riegeli/base/memory.h:66:52: error: no matching function for call to 'RoundUp<(sizeof (size_t) * 2)>(size_t&)' 66 | return RoundUp<sizeof(size_t) * 2>(requested_size); | ^ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/base.h:602:13: note: candidate: 'template<long unsigned int alignment, class T, > constexpr T riegeli::RoundUp(T)' 602 | constexpr T RoundUp(T value) { | ^~~~~~~ external/com_google_riegeli/riegeli/base/base.h:602:13: note: template argument deduction/substitution failed: In file included from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/memory.h:66:52: note: couldn't deduce template parameter '' 66 | return RoundUp<sizeof(size_t) * 2>(requested_size); | ^ external/com_google_riegeli/riegeli/base/memory.h: In function 'T* riegeli::NewAligned(size_t, Args&& ...)': external/com_google_riegeli/riegeli/base/memory.h:91:47: error: no matching function for call to 'UnsignedMax(size_t&, long unsigned int)' 91 | num_bytes = UnsignedMax(num_bytes, sizeof(T)); | ^ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/base.h:533:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMax(A)' 533 | constexpr A UnsignedMax(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:533:13: note: template argument deduction/substitution failed: In file included from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/memory.h:91:47: note: candidate expects 1 argument, 2 provided 91 | num_bytes = UnsignedMax(num_bytes, sizeof(T)); | ^ external/com_google_riegeli/riegeli/base/memory.h: In function 'void riegeli::DeleteAligned(T*, size_t)': external/com_google_riegeli/riegeli/base/memory.h:129:47: error: no matching function for call to 'UnsignedMax(size_t&, long unsigned int)' 129 | num_bytes = UnsignedMax(num_bytes, sizeof(T)); | ^ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/base.h:533:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMax(A)' 533 | constexpr A UnsignedMax(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:533:13: note: template argument deduction/substitution failed: In file included from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/memory.h:129:47: note: candidate expects 1 argument, 2 provided 129 | num_bytes = UnsignedMax(num_bytes, sizeof(T)); | ^ external/com_google_riegeli/riegeli/base/memory.h: In function 'T* riegeli::SizeReturningNewAligned(size_t, size_t*, Args&& ...)': external/com_google_riegeli/riegeli/base/memory.h:192:55: error: no matching function for call to 'UnsignedMax(size_t&, long unsigned int)' 192 | min_num_bytes = UnsignedMax(min_num_bytes, sizeof(T)); | ^ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/base.h:533:13: note: candidate: 'template<class A, > constexpr A riegeli::UnsignedMax(A)' 533 | constexpr A UnsignedMax(A a) { | ^~~~~~~~~~~ external/com_google_riegeli/riegeli/base/base.h:533:13: note: template argument deduction/substitution failed: In file included from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/memory.h:192:55: note: candidate expects 1 argument, 2 provided 192 | min_num_bytes = UnsignedMax(min_num_bytes, sizeof(T)); | ^ In file included from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.h: In constructor 'riegeli::Buffer::Buffer(riegeli::Buffer&&)': external/com_google_riegeli/riegeli/base/buffer.h:89:18: error: 'exchange' is not a member of 'std'; did you mean 'absl::lts_20211102::exchange'? 89 | : data_(std::exchange(that.data_, nullptr)), | ^~~~~~~~ In file included from external/com_google_absl/absl/container/internal/compressed_tuple.h:40, from external/com_google_absl/absl/container/internal/inlined_vector.h:30, from external/com_google_absl/absl/container/inlined_vector.h:54, from external/com_google_absl/absl/strings/cord.h:78, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_absl/absl/utility/utility.h:314:3: note: 'absl::lts_20211102::exchange' declared here 314 | T exchange(T& obj, U&& new_value) { | ^~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.h:90:22: error: 'exchange' is not a member of 'std'; did you mean 'absl::lts_20211102::exchange'? 90 | capacity_(std::exchange(that.capacity_, 0)) {} | ^~~~~~~~ In file included from external/com_google_absl/absl/container/internal/compressed_tuple.h:40, from external/com_google_absl/absl/container/internal/inlined_vector.h:30, from external/com_google_absl/absl/container/inlined_vector.h:54, from external/com_google_absl/absl/strings/cord.h:78, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_absl/absl/utility/utility.h:314:3: note: 'absl::lts_20211102::exchange' declared here 314 | T exchange(T& obj, U&& new_value) { | ^~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.h: In member function 'riegeli::Buffer& riegeli::Buffer::operator=(riegeli::Buffer&&)': external/com_google_riegeli/riegeli/base/buffer.h:94:27: error: 'exchange' is not a member of 'std'; did you mean 'absl::lts_20211102::exchange'? 94 | char* const data = std::exchange(that.data_, nullptr); | ^~~~~~~~ In file included from external/com_google_absl/absl/container/internal/compressed_tuple.h:40, from external/com_google_absl/absl/container/internal/inlined_vector.h:30, from external/com_google_absl/absl/container/inlined_vector.h:54, from external/com_google_absl/absl/strings/cord.h:78, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_absl/absl/utility/utility.h:314:3: note: 'absl::lts_20211102::exchange' declared here 314 | T exchange(T& obj, U&& new_value) { | ^~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.h:97:20: error: 'exchange' is not a member of 'std'; did you mean 'absl::lts_20211102::exchange'? 97 | capacity_ = std::exchange(that.capacity_, 0); | ^~~~~~~~ In file included from external/com_google_absl/absl/container/internal/compressed_tuple.h:40, from external/com_google_absl/absl/container/internal/inlined_vector.h:30, from external/com_google_absl/absl/container/inlined_vector.h:54, from external/com_google_absl/absl/strings/cord.h:78, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_absl/absl/utility/utility.h:314:3: note: 'absl::lts_20211102::exchange' declared here 314 | T exchange(T& obj, U&& new_value) { | ^~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.h: In member function 'char* riegeli::Buffer::Release()': external/com_google_riegeli/riegeli/base/buffer.h:125:15: error: 'exchange' is not a member of 'std'; did you mean 'absl::lts_20211102::exchange'? 125 | return std::exchange(data_, nullptr); | ^~~~~~~~ In file included from external/com_google_absl/absl/container/internal/compressed_tuple.h:40, from external/com_google_absl/absl/container/internal/inlined_vector.h:30, from external/com_google_absl/absl/container/inlined_vector.h:54, from external/com_google_absl/absl/strings/cord.h:78, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_absl/absl/utility/utility.h:314:3: note: 'absl::lts_20211102::exchange' declared here 314 | T exchange(T& obj, U&& new_value) { | ^~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.cc: In member function 'absl::lts_20211102::Cord riegeli::Buffer::ToCord(absl::lts_20211102::string_view) &&': external/com_google_riegeli/riegeli/base/buffer.cc:39:37: error: wrong number of template arguments (0, should be 1) 39 | RIEGELI_ASSERT(std::greater_equal<>()(substr.data(), data())) | ^ external/com_google_riegeli/riegeli/base/base.h:247:21: note: in definition of macro 'RIEGELI_ASSERT' 247 | while (false && !(expr)) ::riegeli::internal::UnreachableStream() | ^~~~ In file included from /usr/include/c++/9/string:48, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from external/com_google_absl/absl/strings/cord.h:69, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: /usr/include/c++/9/bits/stl_function.h:391:12: note: provided for 'template struct std::greater_equal' 391 | struct greater_equal : public binary_function<_Tp, _Tp, bool> | ^~~~~~~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.cc:43:23: error: wrong number of template arguments (0, should be 1) 43 | std::less_equal<>()(substr.data() + substr.size(), data() + capacity())) | ^ external/com_google_riegeli/riegeli/base/base.h:247:21: note: in definition of macro 'RIEGELI_ASSERT' 247 | while (false && !(expr)) ::riegeli::internal::UnreachableStream() | ^~~~ In file included from /usr/include/c++/9/string:48, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from external/com_google_absl/absl/strings/cord.h:69, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: /usr/include/c++/9/bits/stl_function.h:401:12: note: provided for 'template struct std::less_equal' 401 | struct less_equal : public binary_function<_Tp, _Tp, bool> | ^~~~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.cc: In member function 'void riegeli::Buffer::AppendSubstrTo(absl::lts_20211102::string_view, absl::lts_20211102::Cord&) &&': external/com_google_riegeli/riegeli/base/buffer.cc:55:37: error: wrong number of template arguments (0, should be 1) 55 | RIEGELI_ASSERT(std::greater_equal<>()(substr.data(), data())) | ^ external/com_google_riegeli/riegeli/base/base.h:247:21: note: in definition of macro 'RIEGELI_ASSERT' 247 | while (false && !(expr)) ::riegeli::internal::UnreachableStream() | ^~~~ In file included from /usr/include/c++/9/string:48, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from external/com_google_absl/absl/strings/cord.h:69, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: /usr/include/c++/9/bits/stl_function.h:391:12: note: provided for 'template struct std::greater_equal' 391 | struct greater_equal : public binary_function<_Tp, _Tp, bool> | ^~~~~~~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.cc:59:23: error: wrong number of template arguments (0, should be 1) 59 | std::less_equal<>()(substr.data() + substr.size(), data() + capacity())) | ^ external/com_google_riegeli/riegeli/base/base.h:247:21: note: in definition of macro 'RIEGELI_ASSERT' 247 | while (false && !(expr)) ::riegeli::internal::UnreachableStream() | ^~~~ In file included from /usr/include/c++/9/string:48, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from external/com_google_absl/absl/strings/cord.h:69, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: /usr/include/c++/9/bits/stl_function.h:401:12: note: provided for 'template struct std::less_equal' 401 | struct less_equal : public binary_function<_Tp, _Tp, bool> | ^~~~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.cc: In member function 'void riegeli::Buffer::PrependSubstrTo(absl::lts_20211102::string_view, absl::lts_20211102::Cord&) &&': external/com_google_riegeli/riegeli/base/buffer.cc:71:37: error: wrong number of template arguments (0, should be 1) 71 | RIEGELI_ASSERT(std::greater_equal<>()(substr.data(), data())) | ^ external/com_google_riegeli/riegeli/base/base.h:247:21: note: in definition of macro 'RIEGELI_ASSERT' 247 | while (false && !(expr)) ::riegeli::internal::UnreachableStream() | ^~~~ In file included from /usr/include/c++/9/string:48, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from external/com_google_absl/absl/strings/cord.h:69, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: /usr/include/c++/9/bits/stl_function.h:391:12: note: provided for 'template struct std::greater_equal' 391 | struct greater_equal : public binary_function<_Tp, _Tp, bool> | ^~~~~~~~~~~~~ In file included from external/com_google_riegeli/riegeli/base/memory.h:26, from external/com_google_riegeli/riegeli/base/buffer.h:24, from external/com_google_riegeli/riegeli/base/buffer.cc:15: external/com_google_riegeli/riegeli/base/buffer.cc:75:23: error: wrong number of template arguments (0, should be 1) 75 | std::less_equal<>()(substr.data() + substr.size(), data() + capacity())) | ^ external/com_google_riegeli/riegeli/base/base.h:247:21: note: in definition of macro 'RIEGELI_ASSERT' 247 | while (false && !(expr)) ::riegeli::internal::UnreachableStream() | ^~~~ In file included from /usr/include/c++/9/string:48, from /usr/include/c++/9/bits/locale_classes.h:40, from /usr/include/c++/9/bits/ios_base.h:41, from /usr/include/c++/9/ios:42, from /usr/include/c++/9/ostream:38, from /usr/include/c++/9/iterator:64, from external/com_google_absl/absl/strings/cord.h:69, from external/com_google_riegeli/riegeli/base/buffer.h:22, from external/com_google_riegeli/riegeli/base/buffer.cc:15: /usr/include/c++/9/bits/stl_function.h:401:12: note: provided for 'template struct std::less_equal' 401 | struct less_equal : public binary_function<_Tp, _Tp, bool> | ^~~~~~~~~~ Target //:print_names_and_sources failed to build Use --verbose_failures to see the command lines of failed build steps. INFO: Elapsed time: 31.576s, Critical Path: 12.47s INFO: 203 processes: 17 internal, 186 processwrapper-sandbox. FAILED: Build did NOT complete successfully FAILED: Build did NOT complete successfully `

    Is there any other way to use this dataset?

    opened by wangdeze18 0
  • Compilation error: gcc/clang verion?

    Compilation error: gcc/clang verion?

    When I was trying to run the given command: bazel run -c opt :print_names_and_sources /tmp/dm-code_contests/code_contests_valid.riegeli, I got this compilation error.

    image error: cannot cast private base class 'std::__detail::__variant::_Variant_storage<false, std::shared_futureriegeli::ChunkHeader, riegeli::records_internal::FutureChunkBegin::PadToBlockBoundary>' to 'std::variant<std::shared_futureriegeli::ChunkHeader, riegeli::records_internal::FutureChunkBegin::PadToBlockBoundary>'

    This seems to be related to GCC.

    I tried gcc-7 and I got an error saying <filesystem.h> is not found.

    Then I tried gcc-9/10/11 and they all resulted in the error above. How can I fix this? Thanks.

    opened by jiang719 0
  • Problem getting python include path for /usr/bin/python3

    Problem getting python include path for /usr/bin/python3

    When running the first command, I'm getting the following errors:

    `root@[COMPUTER NAME]:/tmp/dm-code_contests# bazel run -c opt \

    :print_names_and_sources /tmp/dm-code_contests/code_contests_valid.riegeli INFO: Build option --compilation_mode has changed, discarding analysis cache. INFO: Repository local_config_python instantiated at: /tmp/dm-code_contests/WORKSPACE:12:10: in /root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/bazel/grpc_deps.bzl:414:21: in grpc_deps /root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/bazel/grpc_python_deps.bzl:43:21: in grpc_python_deps Repository rule python_configure defined at: /root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl:365:35: in ERROR: An error occurred during the fetch of repository 'local_config_python': Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 355, column 35, in _python_autoconf_impl _create_single_version_package( File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 304, column 45, in _create_single_version_package python_include = _get_python_include(repository_ctx, python_bin) File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 236, column 22, in _get_python_include result = _execute( File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 62, column 14, in _execute _fail("\n".join([ File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 35, column 9, in _fail fail("%sPython Configuration Error:%s %s\n" % (red, no_color, msg)) Error in fail: Python Configuration Error: Problem getting python include path for /usr/bin/python3. :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Is the Python binary path set up right? (See ./configure or /usr/bin/python3.) Is distutils installed? Are Python headers installed? Try installing python-dev or python3-dev on Debian-based systems. Try python-devel or python3-devel on Redhat-based systems. ERROR: /tmp/dm-code_contests/WORKSPACE:12:10: fetching python_configure rule //external:local_config_python: Traceback (most recent call last): File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 355, column 35, in _python_autoconf_impl _create_single_version_package( File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 304, column 45, in _create_single_version_package python_include = _get_python_include(repository_ctx, python_bin) File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 236, column 22, in _get_python_include result = _execute( File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 62, column 14, in _execute _fail("\n".join([ File "/root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_github_grpc_grpc/third_party/py/python_configure.bzl", line 35, column 9, in _fail fail("%sPython Configuration Error:%s %s\n" % (red, no_color, msg)) Error in fail: Python Configuration Error: Problem getting python include path for /usr/bin/python3. :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Is the Python binary path set up right? (See ./configure or /usr/bin/python3.) Is distutils installed? Are Python headers installed? Try installing python-dev or python3-dev on Debian-based systems. Try python-devel or python3-devel on Redhat-based systems. ERROR: /root/.cache/bazel/_bazel_root/f815f9c148e5d06107d4dc9766d21406/external/com_google_riegeli/python/riegeli/records/BUILD:27:13: @com_google_riegeli//python/riegeli/records:record_reader_cc depends on @local_config_python//:python_headers in repository @local_config_python which failed to fetch. no such package '@local_config_python//': Python Configuration Error: Problem getting python include path for /usr/bin/python3. :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Is the Python binary path set up right? (See ./configure or /usr/bin/python3.) Is distutils installed? Are Python headers installed? Try installing python-dev or python3-dev on Debian-based systems. Try python-devel or python3-devel on Redhat-based systems. ERROR: Analysis of target '//:print_names_and_sources' failed; build aborted: INFO: Elapsed time: 1.800s INFO: 0 processes. FAILED: Build did NOT complete successfully (1 packages loaded, 218 targets configured) FAILED: Build did NOT complete successfully (1 packages loaded, 218 targets configured)`

    opened by TenaciousTechnologistExtraordinaire 1
  • FEAT: convert riegeli files to JSON

    FEAT: convert riegeli files to JSON

    Added a python script that iterates through the riegeli files and then converts them to JSON. Although the data files go from 3GB to 20GB in size, JSON is an easier starting place for training other models.

    opened by ianormy 1
  • Some test solutions do not return outputs in sandbox running, while they output successfully on CLI.

    Some test solutions do not return outputs in sandbox running, while they output successfully on CLI.

    • Environment: Dockerhub from https://github.com/deepmind/code_contests/issues/9#issuecomment-1144285297 (Thanks to @LaudemPax)
    • Successfully ran solve_example.cc
    • Tested on both Python3.8.10 and Python3.10.4

    I built a custom code based on solve_example.cc to evaluate an arbitrary test problem.

    However, l found that some of the test solutions passed yet some did not.

    After a round of debugging, l confirmed that some of the test solutions do not return any output through stdout.

    My conjecture is that, for some reason, the sandbox fails to bind stdout of the running code time to time.

    Here is one of the test solution code for 1580_A. Portal (test problem index=20, solution index=105):

    import sys;input=sys.stdin.readline
    T, = map(int, input().split())
    for _ in range(T):
        N, M = map(int, input().split())
        X = [[0]*(M+1)]
        for _ in range(N):
            X.append([0]+[int(c) for c in input().strip()])
        Y = [[0]*(M+1) for _ in range(N+1)]
        for i in range(N+1):
            for j in range(M+1):
                Y[i][j] = X[i][j]
        for i in range(1, N+1):
            for j in range(1, M+1):
                X[i][j] += - X[i-1][j-1] + X[i][j-1] + X[i-1][j]
        R = 10**18
        L = []
        for i in range(5, N+1):
            for j in range(4, M+1):
                x = i-4
                y = j-3
                r = X[i-1][j-1]-X[x][j-1]-X[i-1][y]+X[x][y]
                rrr = (X[i-1][j]+X[i][j-1]-X[i-1][j-1]-r-(X[x-1][j]+X[i][y-1]-X[x-1][y-1]))
                r2 = rrr-Y[x][j]-Y[i][y]-Y[x][y]
                rr = r+(2*(i-x+1-2)+2*(j-y+1-2))-r2
                L.append((rr, x, y))
        L.sort(key=lambda x:x[0])
        for i in range(min(len(L), 23)):
            _, x, y = L[i]
    #        print(x, y)
            for i in range(x+4, N+1):
                for j in range(y+3, M+1):
                    r = X[i-1][j-1]-X[x][j-1]-X[i-1][y]+X[x][y]
                    rrr = (X[i-1][j]+X[i][j-1]-X[i-1][j-1]-r-(X[x-1][j]+X[i][y-1]-X[x-1][y-1]))
                    r2 = rrr-Y[x][j]-Y[i][y]-Y[x][y]
                    rr = r+(2*(i-x+1-2)+2*(j-y+1-2))-r2
                    if R > rr:
                        R = rr
        print(R)
    

    I inserted std::cout in between #L404 and #405, for logging test_result->stdout and test_result->stderr.

    Here is the log for running the sandbox:

    test_result->stdout: test_result->stderr: test_result->stdout: test_result->stderr: test_result->stdout: test_result->stderr: test_result->stdout: test_result->stderr: Compilation succeeded Test 0 failed. Test 1 failed. Test 2 failed. Test 3 failed. Test 4 did not run. Test 5 did not run. Test 6 did not run. Test 7 did not run. Test 8 did not run. Test 9 did not run.

    When I run this solution directly on my CLI, it successfully returns the output. (Input: '1\n9 9\n001010001\n101110100\n000010011\n100000001\n101010101\n110001111\n000001111\n111100000\n000110000\n'; Ouput: '5\n') (Note that I used the same Python path for both sandbox running and CLI running.)

    $ python code.py 1 9 9 001010001 101110100 000010011 100000001 101010101 110001111 000001111 111100000 000110000 5 $

    For comparison, I also share a passed solution for 1579_G. Minimal Coverage (test problem index=19, solution index=9):

    import sys
    input = sys.stdin.readline
    
    for _ in range(int(input())):
        n = int(input())
        a = list(map(int, input().split()))
        dp = [[2100]*2100 for _ in range(n)]
        dp[0][a[0]] = a[0]
        
        for i in range(1, n):
            for j in range(2100):
                nj = max(j-a[i], 0)
                dp[i][nj] = min(dp[i][nj], dp[i-1][j]+max(a[i]-j, 0))
                
                if j+a[i]<2100:
                    dp[i][j+a[i]] = min(dp[i][j+a[i]], dp[i-1][j]+max(a[i]-(dp[i-1][j]-j), 0))
        
        print(min(dp[-1]))
    

    test_result->stdout: 3 3 9 9 7 8

    test_result->stderr: test_result->stdout: 3 3 14 9 7 8

    test_result->stderr: test_result->stdout: 3 3 9 9 7 8

    test_result->stderr: test_result->stdout: 3 6 9 9 7 8

    test_result->stderr: test_result->stdout: 3 3 9 9 7 7

    test_result->stderr: test_result->stdout: 3 6 9 12 7 8

    test_result->stderr: test_result->stdout: 3 2 9 9 7 7

    test_result->stderr: test_result->stdout: 3 3 23 9 7 8

    test_result->stderr: test_result->stdout: 4 3 14 9 7 8

    test_result->stderr: test_result->stdout: 3 6 9 12 12 8

    test_result->stderr: Compilation succeeded Test 0 passed. Test 1 passed. Test 2 passed. Test 3 passed. Test 4 passed. Test 5 passed. Test 6 passed. Test 7 passed. Test 8 passed. Test 9 passed.

    This solution successfully run on CLI as well (Input: '6\n2\n1 3\n3\n1 2 3\n4\n6 2 3 9\n4\n6 8 4 5\n7\n1 2 4 6 7 7 3\n8\n8 6 5 1 2 2 3 6\n'; Expected ouput: '3\n3\n9\n9\n7\n8\n').

    $ python code.py 6 2 1 3 3 1 2 3 4 6 2 3 9 4 6 8 4 5 7 1 2 4 6 7 7 3 8 8 6 5 1 2 2 3 6 3 3 9 9 7 8 $

    I checked stdin with the same way (insert std::cout in between of #L313 and #L314) I did for stdout, but it seems ok as both failed and passed solutions print inputs.

    I tried to find the distinctions between failed solutions and passed solutions (e.g., the way they take inputs/outputs), but it was hard to point out the differences.

    I leave the test problem indices for the passed and the failed solutions as follows: (Remaining indices do not have Python solution.) [Failed]

    0, 3, 9, 14, 16, 17, 18, 20, 30, 31, 36, 37, 38, 39, 40, 41, 52, 54, 56, 60, 62, 63, 74, 75, 77, 79, 92, 95, 101, 103, 104, 105, 107, 108, 113, 116, 117, 122, 123, 128, 129, 131, 134, 135, 137, 138, 143, 144, 145, 146, 149, 157, 159, 160, 161, 162, 163, 164

    [Passed]

    8, 10, 11, 13, 15, 19, 26, 27, 28, 29, 33, 34, 44, 45, 46, 47, 48, 50, 51, 53, 55, 57, 58, 59, 61, 65, 67, 76, 78, 87, 88, 89, 90, 93, 94, 96, 98, 99, 100, 102, 106, 109, 114, 115, 119, 120, 121, 127, 132, 133, 136, 139, 140, 141, 142, 147, 148, 150, 151, 152, 154, 155, 156, 158

    Throughout the Python solutions, I used the first ones, e.g., I got the index of the failed solution above as testset[20]['solutions']['language'].index(3).

    P.S. As there is a possibility of sandbox discrepancy issue mentioned in https://github.com/deepmind/code_contests/issues/14#issuecomment-1106409714, I checked that:

    • All the CodeContests test problems are from Codeforces, where Codeforces do not allow any external library (See https://codeforces.com/blog/entry/44806 and https://codeforces.com/blog/entry/70890).
    • There was no compilation failed nor SANDBOX VIOLATION.

    Thus it seems that this issue is independent from the sandbox discrepancy issue, as all the test solutions are implemented by internal libraries only and all solutions got no violation.

    Thank you in advance.

    opened by stovecat 0
Owner
DeepMind
DeepMind
Machine Learning From Scratch. Bare bones NumPy implementations of machine learning models and algorithms with a focus on accessibility. Aims to cover everything from linear regression to deep learning.

Machine Learning From Scratch About Python implementations of some of the fundamental Machine Learning models and algorithms from scratch. The purpose

Erik Linder-Norén 21.8k Jan 9, 2023
Vowpal Wabbit is a machine learning system which pushes the frontier of machine learning with techniques such as online, hashing, allreduce, reductions, learning2search, active, and interactive learning.

This is the Vowpal Wabbit fast online learning code. Why Vowpal Wabbit? Vowpal Wabbit is a machine learning system which pushes the frontier of machin

Vowpal Wabbit 8.1k Jan 6, 2023
Scripts of Machine Learning Algorithms from Scratch. Implementations of machine learning models and algorithms using nothing but NumPy with a focus on accessibility. Aims to cover everything from basic to advance.

Algo-ScriptML Python implementations of some of the fundamental Machine Learning models and algorithms from scratch. The goal of this project is not t

Algo Phantoms 81 Nov 26, 2022
This is a Machine Learning Based Hand Detector Project, It Uses Machine Learning Models and Modules Like Mediapipe, Developed By Google!

Machine Learning Hand Detector This is a Machine Learning Based Hand Detector Project, It Uses Machine Learning Models and Modules Like Mediapipe, Dev

Popstar Idhant 3 Feb 25, 2022
Reference implementation of code generation projects from Facebook AI Research. General toolkit to apply machine learning to code, from dataset creation to model training and evaluation. Comes with pretrained models.

This repository is a toolkit to do machine learning for programming languages. It implements tokenization, dataset preprocessing, model training and m

Facebook Research 408 Jan 1, 2023
Simple API for UCI Machine Learning Dataset Repository (search, download, analyze)

A simple API for working with University of California, Irvine (UCI) Machine Learning (ML) repository Table of Contents Introduction About Page of the

Tirthajyoti Sarkar 223 Dec 5, 2022
Official Implementation and Dataset of "PPR10K: A Large-Scale Portrait Photo Retouching Dataset with Human-Region Mask and Group-Level Consistency", CVPR 2021

Portrait Photo Retouching with PPR10K Paper | Supplementary Material PPR10K: A Large-Scale Portrait Photo Retouching Dataset with Human-Region Mask an

null 184 Dec 11, 2022
This is the dataset and code release of the OpenRooms Dataset.

This is the dataset and code release of the OpenRooms Dataset.

Visual Intelligence Lab of UCSD 95 Jan 8, 2023
A large dataset of 100k Google Satellite and matching Map images, resembling pix2pix's Google Maps dataset.

Larger Google Sat2Map dataset This dataset extends the aerial ⟷ Maps dataset used in pix2pix (Isola et al., CVPR17). The provide script download_sat2m

null 34 Dec 28, 2022
Dataset used in "PlantDoc: A Dataset for Visual Plant Disease Detection" accepted in CODS-COMAD 2020

PlantDoc: A Dataset for Visual Plant Disease Detection This repository contains the Cropped-PlantDoc dataset used for benchmarking classification mode

Pratik Kayal 109 Dec 29, 2022
EMNLP 2021: Single-dataset Experts for Multi-dataset Question-Answering

MADE (Multi-Adapter Dataset Experts) This repository contains the implementation of MADE (Multi-adapter dataset experts), which is described in the pa

Princeton Natural Language Processing 68 Jul 18, 2022
EMNLP 2021: Single-dataset Experts for Multi-dataset Question-Answering

MADE (Multi-Adapter Dataset Experts) This repository contains the implementation of MADE (Multi-adapter dataset experts), which is described in the pa

Princeton Natural Language Processing 39 Oct 5, 2021
LoveDA: A Remote Sensing Land-Cover Dataset for Domain Adaptive Semantic Segmentation (NeurIPS2021 Benchmark and Dataset Track)

LoveDA: A Remote Sensing Land-Cover Dataset for Domain Adaptive Semantic Segmentation by Junjue Wang, Zhuo Zheng, Ailong Ma, Xiaoyan Lu, and Yanfei Zh

Kingdrone 174 Dec 22, 2022
This is the official source code for SLATE. We provide the code for the model, the training code, and a dataset loader for the 3D Shapes dataset. This code is implemented in Pytorch.

SLATE This is the official source code for SLATE. We provide the code for the model, the training code and a dataset loader for the 3D Shapes dataset.

Gautam Singh 66 Dec 26, 2022
The Habitat-Matterport 3D Research Dataset - the largest-ever dataset of 3D indoor spaces.

Habitat-Matterport 3D Dataset (HM3D) The Habitat-Matterport 3D Research Dataset is the largest-ever dataset of 3D indoor spaces. It consists of 1,000

Meta Research 62 Dec 27, 2022
Use deep learning, genetic programming and other methods to predict stock and market movements

StockPredictions Use classic tricks, neural networks, deep learning, genetic programming and other methods to predict stock and market movements. Both

Linda MacPhee-Cobb 386 Jan 3, 2023
Source code for the Paper: CombOptNet: Fit the Right NP-Hard Problem by Learning Integer Programming Constraints}

CombOptNet: Fit the Right NP-Hard Problem by Learning Integer Programming Constraints Installation Run pipenv install (at your own risk with --skip-lo

Autonomous Learning Group 65 Dec 27, 2022