File size: 3,215 Bytes
c14a7ae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
license: other
---
# Functions-656K

six hundred fifty six thousand samples of code, annotated with input and output types as well as any dependencies or libraries required for their use. completely anonymized variables. i anonymized all the variables to sort of low-pass a bunch of high frequency features, a model of the space should be smoother to navigate. 

1105k files from the stack -> 1376k cleanly typed functions w/ dependencies -> variable names anonymized -> 656k de-duplicated w minhash+lsh<br>
licenses: check https://hf.co/datasets/bigcode/the-stack
<details>
<summary>filtering libraries:</summary>
  use the following: <code>dataset.filter(lambda x: False not in [label in allowed_set for label in x['lib_used']])</code><br>
  where <code>allowed_set</code> is a subset of this list, which is the master list of allowed libraries in the dataset:
<pre><code>
    "math", "cmath", "random", "statistics", "fractions", "decimal", "numbers",
    "itertools", "functools", "operator",
    "collections", "array", "bisect", "heapq", "weakref", "enum", "typing",
    "string", "re", "textwrap", "pprint", "reprlib", "difflib",
    "hashlib", "hmac", "secrets", "base64", "binascii", "quopri", "uu",
    "copy", "contextlib", "abc", "dataclasses", "warnings", "gc",
    "datetime", "calendar",
    "inspect", "traceback", "ast", "tokenize", "keyword", "dis", "sys",
    "json", "csv", "marshal",
    "uuid",
    "numpy", "scipy", "sympy", "sklearn", "statsmodels", "xgboost", "tqdm",
    "shapely", "PyWavelets", "z3", "cvxpy",<br>
    "os", "io", "pathlib", "glob", "fnmatch", "linecache", "tempfile", "shutil",
    "fileinput", "stat",
    "pickle", "shelve", "dbm", "sqlite3",
    "zipfile", "tarfile", "gzip", "bz2", "lzma", "zlib",
    "configparser", "argparse", "getopt", "optparse", "logging", "getpass",
    "profile", "cProfile", "pstats", "timeit", "tracemalloc", "faulthandler", "pdb",
    "curses", "termios", "tty", "pty", "platform",
    "plistlib", "netrc", "xdrlib", "mailbox", "mimetypes", "wave", "aifc",
    "sndhdr", "imghdr", "colorsys", "chunk",
    "sysconfig", "site", "resource",
    "pandas", "matplotlib", "seaborn", "plotly", "torch", "tensorflow", "keras",
    "gensim", "skimage", "PIL", "cv2", "nltk", "spacy", "dask", "polars",
    "vaex", "h5py", "netCDF4", "xarray",
    "Bio", "scikit-bio", "PyCogent",
    "geopandas", "rasterio",
    "rdkit", "openbabel", "pymatgen",
    "astropy", "sunpy", "healpy",
    "librosa",
    "MDAnalysis", "OpenMM", "cartopy",<br>
    "subprocess", "shlex",
    "socket", "ssl", "select", "selectors", "asyncio", "socketserver",
    "http", "urllib", "ftplib", "poplib", "imaplib", "smtplib", "telnetlib",
    "xmlrpc", "webbrowser", "cgi", "cgitb", "wsgiref", "http.server",
    "threading", "multiprocessing", "concurrent", "queue", "sched",
    "contextvars", "signal", "mmap",
    "importlib", "runpy", "code", "codeop",
    "ctypes", "cffi", "msvcrt", "winreg", "winsound", "posix", "pwd", "spwd",
    "grp", "crypt", "fcntl", "syslog", "pipes",
    "email",
    "ossaudiodev", "audioop",
    "bdb", "trace",
    "transformers", "datasets", "requests", "beautifulsoup4", "selenium",
    "folium", "qiskit"
</code></pre>
</details>