fudanselab / codegen4libs Goto Github PK
View Code? Open in Web Editor NEWrepo for the paper titled “CodeGen4Libs: A Two-Stage Approach for Library-Oriented Code Generation”
repo for the paper titled “CodeGen4Libs: A Two-Stage Approach for Library-Oriented Code Generation”
There are some bugs in the project, for example
“from project.dataset.process import DataProcessUtil
from project.metric.computer import MetricComputer
from project.util.path_util import PathUtil
from project.util.logs_util import LogsUtil”
Here the “project”, can not be found in the file directory, whether there is complete code to learn.
i noticed that "Benchmark has been meticulously structured and saved in the DatasetDict format", so i use the code below to load
from datasets import load_dataset dataset = load_dataset("***/github-code-java-libs")
but i met error:
ValueError: Couldn't cast _data_files: list<item: struct<filename: string>> child 0, item: struct<filename: string> child 0, filename: string _fingerprint: string _format_columns: null _format_kwargs: struct<> _format_type: null _indexes: struct<> _output_all_columns: bool _split: null to {'citation': Value(dtype='string', id=None), 'description': Value(dtype='string', id=None), 'features': {'method': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'clean_method': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'doc': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'comment': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'method_name': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'extra': {'license': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'path': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'repo_name': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'size': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}}, 'imports': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'imports_info': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'cluster_imports_info': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'libraries': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'libraries_info': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'id': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'input_ids': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'attention_mask': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'input_str': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'tokenized_input_str': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'input_token_length': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'labels_token_length': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'labels': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'tokenized_labels_str': {'feature': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, '_type': Value(dtype='string', id=None)}, 'retrieved_code': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'generated_imports_info': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}, 'retrieved_imports_info': {'dtype': Value(dtype='string', id=None), '_type': Value(dtype='string', id=None)}}, 'homepage': Value(dtype='string', id=None), 'license': Value(dtype='string', id=None)} because column names don't match
If convenient, can I obtain your code for reading dataset.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.