Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
id
int64
0
10.8M
vector
sequencelengths
1.54k
1.54k
ast_depth
int64
3
164
ast_data
stringlengths
297
510k
full_path
stringlengths
0
319
code
stringlengths
60
56.5k
1
[ -0.0035781562328338623, 0.011347530409693718, -0.030228640884160995, -0.03506239503622055, -0.022754007950425148, 0.012485230341553688, -0.002542141592130065, 0.024192344397306442, 0.02605510875582695, 0.01118247490376234, 0.00028037242009304464, -0.043786730617284775, 0.019393960013985634, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "parser", "annotation": null, "type_comment": null}}], "kwarg": nu...
def add_arguments(self, parser): parser.add_argument( "-D", "--debug", action="store_true", help="print detailed information about exceptions" ) parser.add_argument( "-u", "--username", metavar="USER", default=os.getenv("INSTAPAPER_USERNAME"), ...
2
[ 0.028776070103049278, -0.0032603151630610228, 0.05966208502650261, -0.04884300008416176, 0.001533358241431415, 0.015465454198420048, 0.006038036663085222, -0.03479165956377983, -0.01439925841987133, 0.03678937628865242, -0.009371302090585232, -0.008546402677893639, 0.045835208147764206, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "List", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": [{"_type": "Tuple", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": [{"_type": "Call", "_fields": {"arg...
class PerfTestFactory(object): _pattern_map = [ (re.compile(r'^Dromaeo/'), SingleProcessPerfTest), (re.compile(r'(.+)\.replay$'), ReplayPerfTest), ] @classmethod def create_perf_test(cls, port, test_name, path, test_runner_count=DEFAULT_TEST_RUNNER_COUNT): for (pattern, test_cl...
3
[ 0.007252497132867575, -0.012211017310619354, -0.05698474869132042, 0.009605294093489647, 0.04599718376994133, -0.03058636374771595, 0.018681209534406662, 0.05034985765814781, -0.005743766203522682, -0.03766828402876854, -0.010993444360792637, -0.022728020325303078, 0.0003904172917827964, 0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "username", "annotation": null, "type_comment": null}}], "kwarg": ...
def get_user(self, username): try: self.user = User.objects.get(username=username) except User.DoesNotExist: raise CommandError(f"{username} is not a valid memoro user") # Ensure the user has an associated instapaper account if not hasattr(self.user, "instapaper_...
4
[ -0.0021477025002241135, -0.033104341477155685, -0.013533147983253002, -0.028838077560067177, 0.05357308313250542, -0.03760373592376709, 0.006282831076532602, 0.02191414125263691, -0.0005398397333920002, -0.03664790466427803, 0.021925797685980797, -0.030353417620062828, -0.020025795325636864,...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "options", "annotation": null, "type_comment": null}}, "...
def handle(self, *args, **options): # Get the user associated with the account self.get_user(options["user"]) if options["associate"]: self.associate() return if options["article_count"]: self.article_count() return with http_err...
5
[0.02496105246245861,-0.0019249198958277702,-0.005350145045667887,-0.01911080628633499,-0.0017975354(...TRUNCATED)
13
"{\"_type\": \"Module\", \"_fields\": {\"body\": [{\"_type\": \"FunctionDef\", \"_fields\": {\"args\(...TRUNCATED)
"def associate(self):\n # Go through all articles in any folder that don't have a memo to ass(...TRUNCATED)
6
[0.006481069140136242,-0.020582862198352814,-0.007804911118000746,-0.012743416242301464,0.0295389406(...TRUNCATED)
9
"{\"_type\": \"Module\", \"_fields\": {\"body\": [{\"_type\": \"FunctionDef\", \"_fields\": {\"args\(...TRUNCATED)
"def make_instapaper_client(self, **options):\n # Get cached access credentials if they exist(...TRUNCATED)
7
[0.010137351229786873,-0.027261752635240555,-0.04714420065283775,-0.01630311645567417,0.063104093074(...TRUNCATED)
9
"{\"_type\": \"Module\", \"_fields\": {\"body\": [{\"_type\": \"FunctionDef\", \"_fields\": {\"args\(...TRUNCATED)
"def __exit__(self, etype, value, traceback):\n if value is None:\n return True\n\(...TRUNCATED)
8
[-0.009408784098923206,-0.018505191430449486,-0.03905957564711571,0.011895302683115005,0.04925554618(...TRUNCATED)
10
"{\"_type\": \"Module\", \"_fields\": {\"body\": [{\"_type\": \"ClassDef\", \"_fields\": {\"body\": (...TRUNCATED)
"class http_error(object):\n\n def __init__(self, debug):\n self.debug = debug\n\n def (...TRUNCATED)
9
[0.033640071749687195,-0.032957714051008224,0.027385154739022255,-0.01714983955025673,-0.01428395137(...TRUNCATED)
8
"{\"_type\": \"Module\", \"_fields\": {\"body\": [{\"_type\": \"ClassDef\", \"_fields\": {\"body\": (...TRUNCATED)
"class Note(FieldSet):\n static_size = 8*4\n def createFields(self):\n yield Bits(self,(...TRUNCATED)
10
[0.05360013246536255,-0.011898213997483253,-0.007302859332412481,-0.006557237822562456,0.00925416592(...TRUNCATED)
9
"{\"_type\": \"Module\", \"_fields\": {\"body\": [{\"_type\": \"ClassDef\", \"_fields\": {\"body\": (...TRUNCATED)
"class Row(FieldSet):\n def __init__(self, parent, name, channels, desc=None):\n FieldSet.(...TRUNCATED)
End of preview. Expand in Data Studio

github-embedded

A bunch of python code, gotten from Github, along with a json dump of their ast's and a vector embedding of the code using openai's text-embedding-3-small.

Downloads last month
176