Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyu Yang committed Mar 13, 2024
1 parent 9d4e09a commit b904402
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions generator/datamodule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data module for the tactic generator."""

import os
import json
import pickle
Expand Down
1 change: 1 addition & 0 deletions generator/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for training the tactic generator."""

import os
from loguru import logger
from pytorch_lightning.cli import LightningCLI
Expand Down
1 change: 1 addition & 0 deletions generator/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Lightning module for the tactic generator."""

import torch
import openai
import pickle
Expand Down
1 change: 1 addition & 0 deletions prover/evaluate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Script for evaluating the prover on theorems extracted by LeanDojo.
"""

import os
import uuid
import json
Expand Down
1 change: 1 addition & 0 deletions prover/proof_search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Proof search using best-first search.
"""

import os
import sys
import ray
Expand Down
1 change: 1 addition & 0 deletions prover/search_tree.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Definitions of the search tree used by the prover.
"""

import math
from enum import Enum
from lean_dojo import (
Expand Down
1 change: 1 addition & 0 deletions retrieval/bm25/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for training the BM25 premise retriever."""

import os
import ray
import json
Expand Down
1 change: 1 addition & 0 deletions retrieval/datamodule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Datamodule for the premise retrieval."""

import os
import json
import torch
Expand Down
1 change: 1 addition & 0 deletions retrieval/evaluate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script for evaluating the premise retriever."""

import os
import json
import pickle
Expand Down
1 change: 1 addition & 0 deletions retrieval/index.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Script for indexing the corpus using the retriever.
"""

import torch
import pickle
import argparse
Expand Down
1 change: 1 addition & 0 deletions retrieval/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Script for training the premise retriever.
"""

import os
from loguru import logger
from pytorch_lightning.cli import LightningCLI
Expand Down
1 change: 1 addition & 0 deletions retrieval/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Ligihtning module for the premise retriever."""

import os
import math
import torch
Expand Down
1 change: 1 addition & 0 deletions scripts/data_stats.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Scripts for computing some simple statistics about the data."""

import json
import argparse
import numpy as np
Expand Down
5 changes: 3 additions & 2 deletions scripts/download_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Script to download LeanDojo Benchmark and LeanDojo Benchmark 4 into `./data`."""

import os
import argparse
from hashlib import md5
Expand All @@ -9,11 +10,11 @@
"https://zenodo.org/records/10114157/files/leandojo_benchmark_v5.tar.gz"
)
LEANDOJO_BENCHMARK_4_URL = (
"https://zenodo.org/records/10114185/files/leandojo_benchmark_4_v5.tar.gz"
"https://zenodo.org/records/10811294/files/leandojo_benchmark_4_v7.tar.gz"
)
DOWNLOADS = {
LEANDOJO_BENCHMARK_URL: "4b256200618d4668b12a9cfe8c4df4d3",
LEANDOJO_BENCHMARK_4_URL: "5c1bb0ce1fd1572e8c3d0c3a642e356f",
LEANDOJO_BENCHMARK_4_URL: "cfb5ac28847b5a7c7856d7b28eefdc1b",
}


Expand Down

0 comments on commit b904402

Please sign in to comment.