repo_name stringlengths 5 100 | path stringlengths 4 254 | copies stringlengths 1 5 | size stringlengths 4 7 | content stringlengths 733 1M | license stringclasses 15
values | hash int64 -9,223,351,895,964,839,000 9,223,354,783B | line_mean float64 3.5 100 | line_max int64 15 1k | alpha_frac float64 0.25 0.96 | autogenerated bool 1
class | ratio float64 1.5 8.15 | config_test bool 2
classes | has_no_keywords bool 2
classes | few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ahmedbodi/AutobahnPython | examples/asyncio/websocket/echo/client_coroutines.py | 13 | 2044 | ###############################################################################
##
## Copyright (C) 2013-2014 Tavendo GmbH
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## h... | apache-2.0 | 7,822,061,744,094,950,000 | 31.444444 | 79 | 0.623288 | false | 4.214433 | false | false | false |
ifduyue/django | django/core/checks/registry.py | 13 | 3108 | from itertools import chain
from django.utils.itercompat import is_iterable
class Tags:
"""
Built-in tags for internal checks.
"""
admin = 'admin'
caches = 'caches'
compatibility = 'compatibility'
database = 'database'
models = 'models'
security = 'security'
signals = 'signals... | bsd-3-clause | -2,035,686,896,372,967,700 | 30.714286 | 91 | 0.602317 | false | 4.433666 | false | false | false |
kmike/scikit-learn | sklearn/utils/__init__.py | 3 | 10094 | """
The :mod:`sklearn.utils` module includes various utilites.
"""
from collections import Sequence
import numpy as np
from scipy.sparse import issparse
import warnings
from .murmurhash import murmurhash3_32
from .validation import (as_float_array, check_arrays, safe_asarray,
assert_all_fini... | bsd-3-clause | 2,334,709,577,611,160,600 | 26.883978 | 79 | 0.56806 | false | 3.874856 | false | false | false |
houlixin/BBB-TISDK | linux-devkit/sysroots/i686-arago-linux/usr/lib/python2.7/encodings/cp1250.py | 593 | 13942 | """ Python Character Mapping Codec cp1250 generated from 'MAPPINGS/VENDORS/MICSFT/WINDOWS/CP1250.TXT' with gencodec.py.
"""#"
import codecs
### Codec APIs
class Codec(codecs.Codec):
def encode(self,input,errors='strict'):
return codecs.charmap_encode(input,errors,encoding_table)
def decode(self,in... | gpl-2.0 | -6,356,832,018,515,183,000 | 44.413681 | 119 | 0.550351 | false | 3.023639 | false | false | false |
dataxu/ansible | lib/ansible/modules/system/kernel_blacklist.py | 125 | 4009 | #!/usr/bin/python
# encoding: utf-8 -*-
# Copyright: (c) 2013, Matthias Vogelgesang <matthias.vogelgesang@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'... | gpl-3.0 | 8,498,771,084,445,727,000 | 24.864516 | 92 | 0.575206 | false | 4.017034 | false | false | false |
163gal/Time-Line | libs_arm/wx/_controls.py | 2 | 332374 | "# This file was created automatically by SWIG 1.3.29.\n# Don't modify this file, modify the SWIG in(...TRUNCATED) | gpl-3.0 | -3,839,353,247,363,315,700 | 41.465057 | 151 | 0.65503 | false | 3.857592 | false | false | false |
blackbliss/callme | flask/lib/python2.7/site-packages/werkzeug/contrib/cache.py | 306 | 23519 | "# -*- coding: utf-8 -*-\n\"\"\"\n werkzeug.contrib.cache\n ~~~~~~~~~~~~~~~~~~~~~~\n\n The (...TRUNCATED) | mit | -7,111,811,701,270,589,000 | 33.637703 | 86 | 0.579106 | false | 4.281631 | false | false | false |
pipet/pipet | pipet/sources/zendesk/tasks.py | 2 | 1544 | "from contextlib import contextmanager\nfrom datetime import datetime\nfrom inspect import isclass\n(...TRUNCATED) | apache-2.0 | 156,606,072,465,059,940 | 28.692308 | 96 | 0.645725 | false | 4.084656 | false | false | false |
prutseltje/ansible | test/units/modules/network/f5/test_bigip_gtm_datacenter.py | 23 | 6819 | "# -*- coding: utf-8 -*-\n#\n# Copyright (c) 2017 F5 Networks Inc.\n# GNU General Public License v3.(...TRUNCATED) | gpl-3.0 | 1,435,203,684,349,960,200 | 30.716279 | 91 | 0.628685 | false | 4.235404 | true | false | false |
antb/TPT----My-old-mod | src/python/stdlib/ctypes/test/test_errno.py | 115 | 2330 | "import unittest, os, errno\nfrom ctypes import *\nfrom ctypes.util import find_library\nfrom test i(...TRUNCATED) | gpl-2.0 | 785,952,512,028,991,400 | 28.125 | 69 | 0.554077 | false | 3.782468 | true | false | false |
End of preview. Expand in Data Studio
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
CodeParrot 🦜 Dataset Cleaned and filtered (train)
Dataset Description
A dataset of Python files from Github. It is a more filtered version of the train split codeparrot-clean-train of codeparrot-clean. The additional filters aim at detecting configuration and test files, as well as outlier files that are unlikely to help the model learn code. The first three filters are applied with a probability of 0.7:
- files with a mention of "test file" or "configuration file" or similar in the first 5 lines
- files with high occurence of the keywords "test " or "config"
- files without a mention of the keywords
def,for,whileandclass - files that use the assignment operator
=less than 5 times - files with ratio between number of characters and number of tokens after tokenization < 1.5
- Downloads last month
- 247