a651b0632f8f9ac9dbcff6c041d29e886ce54bd1,scripts/restruct.py,,main,#Any#,32
Before Change
parser.add_argument("--graph_out", nargs="?", type=str, default="",
help="HTML graphical output filename.")
// parser.add_argument("--abduction", action="store_true", default=False)
parser.add_argument("--abduction", nargs="?", type=str, default="no",
choices=["no", "naive", "spsa"],
help="Activate on-demand axiom injection (default: no axiom injection).")
parser.add_argument("--gold_trees", action="store_true", default=False)
args = parser.parse_args()
logging.basicConfig(level=logging.WARNING)
After Change
labels = []
if args.doc_labels != "":
if os.path.exists(args.doc_labels):
with codecs.open(args.doc_labels, "r", "utf-8") as fin:
for line in fin:
try:
l = json.loads(line.strip())
except ValueError:
l = {"label" : line.strip()}
labels.append(l)
else:
print("File does not exist: {0}. Not using labels.".format(
args.doc_labels), file=sys.stderr)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: mynlp/ccg2lambda
Commit Name: a651b0632f8f9ac9dbcff6c041d29e886ce54bd1
Time: 2017-05-30
Author: pascual@nii.ac.jp
File Name: scripts/restruct.py
Class Name:
Method Name: main
Project Name: dhlab-epfl/dhSegment
Commit Name: 54adb846aa2eba1f2d2294cee247163c0b5a57c3
Time: 2018-04-03
Author: sofia.oliveiraares@epfl.ch
File Name: demo.py
Class Name:
Method Name:
Project Name: uber/petastorm
Commit Name: 100f6cbd2f03bbd90d7b6a41cc81f711ed466491
Time: 2018-08-13
Author: robbieg@uber.com
File Name: petastorm/etl/metadata_index_run.py
Class Name:
Method Name: