279f325950bf48582cd9fc499ade89155db5a5f0,allennlp/tests/data/dataset_readers/atis_test.py,TestAtisReader,test_atis_read_from_file,#TestAtisReader#,8
Before Change
// as the strings in the world.
valid_strs = set()
for action in instance.fields["actions"].field_list:
if action.rule.startswith("string"):
valid_strs.add(action.rule)
world = instance.fields["world"].metadata
assert valid_strs == set(world.valid_actions["string"])
assert world.valid_actions["string"] == \
After Change
def test_atis_read_from_file(self):
data_path = AllenNlpTestCase.FIXTURES_ROOT / "data" / "atis" / "sample.json"
database_directory = AllenNlpTestCase.FIXTURES_ROOT / "data" / "atis" / "atis.db"
reader = AtisDatasetReader(database_directory=str(database_directory) )
instances = list(reader.read(str(data_path)))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: allenai/allennlp
Commit Name: 279f325950bf48582cd9fc499ade89155db5a5f0
Time: 2018-08-27
Author: kl2806@columbia.edu
File Name: allennlp/tests/data/dataset_readers/atis_test.py
Class Name: TestAtisReader
Method Name: test_atis_read_from_file
Project Name: pantsbuild/pants
Commit Name: dee363930f4d4f37438695128e082a1266253d26
Time: 2021-01-05
Author: 14852634+Eric-Arellano@users.noreply.github.com
File Name: src/python/pants/backend/python/macros/python_requirements.py
Class Name: PythonRequirements
Method Name: __call__
Project Name: thenetcircle/dino
Commit Name: dfae0dae92e64b05a2dd129a4ad46ab53b7aa0fa
Time: 2016-10-27
Author: oscar.eriks@gmail.com
File Name: dino/utils/__init__.py
Class Name:
Method Name: ban_duration_to_timestamp
Project Name: dask/distributed
Commit Name: 50dd21f71d763edd10146da4144a55f0ad48ca23
Time: 2019-04-02
Author: mrocklin@gmail.com
File Name: distributed/deploy/local.py
Class Name: LocalCluster
Method Name: _start