Dataset Viewer
Auto-converted to Parquet Duplicate
blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
aff1a9263e183610f403a4d6a7f27b45eacb7ff2
98501cf7fb6bbdb25af273b5125127bb722cc289
/lesson5/problem 4/problem4.py
720676501fd9dbed1f3850e6015915521e29638b
[]
no_license
valentinasil/lesson5
c267ae58810597987fd4decd116d1785db592c14
076ec7c02c0100632af6f124b3d7e49b2af2aab0
refs/heads/master
2020-04-09T14:23:21.171000
2018-12-14T14:40:39
2018-12-14T14:40:39
160,396,019
0
0
null
null
null
null
UTF-8
Python
false
false
35
py
problem4.py
name='valentina ' print(name*1000)
eabf06481509962652812af67ad59da5cfe30fae
dea01fe9c0af2cf9625219ce9e87a07d1f887990
/mupub/__init__.py
d50d0a12b75c872c58657cde423596ed35d55e98
[ "MIT" ]
permissive
MutopiaProject/mupub
8a69e357ea672deee2177499ac15ad66fd3d88de
8c59ae15ea13af14139570fcccfef850e1363548
refs/heads/master
2020-04-19T08:56:38.500000
2018-12-05T22:23:57
2018-12-05T22:23:57
66,814,838
0
0
MIT
2018-10-02T16:40:42
2016-08-29T05:44:25
Python
UTF-8
Python
false
false
1,496
py
__init__.py
""" mupub module. """ __all__ = ( '__title__', '__summary__', '__version__', '__author__', '__license__', '__copyright__', ) __title__ = 'mupub' __summary__ = 'Musical score publishing utility for the Mutopia Project' """Versioning: This utility follows a MAJOR . MINOR . EDIT format. Upon a major release, t...
54f0ed5f705d5ada28721301f297b2b0058773ad
ce942d4d85dd87aa5876bb6d221f88445ab9fe71
/bot.py
29a8695c9d7b587cf8bab99f9c55cb010b026742
[]
no_license
escramer/minecraft-bot
e258d0eee50ad28e04ade3d0cfeab83e1c2f01b5
6c7212aff62276ee955f0bbf5d73dce6e50fc4db
refs/heads/master
2020-12-24T21:22:46.668000
2016-05-08T22:37:05
2016-05-08T22:37:05
57,427,144
0
0
null
null
null
null
UTF-8
Python
false
false
19,446
py
bot.py
"""Module for the bot""" from copy import deepcopy from time import sleep import mcpi.minecraft as minecraft from mcpi.vec3 import Vec3 import mcpi.block as block from search import SearchProblem, astar, bfs from singleton import singleton _AIR = block.AIR.id _WATER = block.WATER.id _LAVA = block.LAVA.id _BEDROCK =...
45969b346d6d5cbdef2f5d2f74270cf12024072d
f52997ac7e1b41f34018c3a0028ced8638072b2b
/src/search/migrations/0004_searchsettings.py
8f890b6d97b020548bb031342abc147cca085222
[ "MIT" ]
permissive
uktrade/digital-workspace-v2
49fae1fca819b625c6f6949fb5ce51b89fbcab96
7e328d0d55c9aa73be61f476823a743d96e792d0
refs/heads/main
2023-09-03T12:03:47.016000
2023-09-01T12:07:55
2023-09-01T12:07:55
232,302,840
6
0
MIT
2023-09-13T15:50:24
2020-01-07T10:41:18
Python
UTF-8
Python
false
false
964
py
0004_searchsettings.py
# Generated by Django 4.1.9 on 2023-06-29 16:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("search", "0003_auto_20230209_1441"), ] operations = [ migrations.CreateModel( name="SearchSettings", fields=[ ...
3fbf1768a2fe78df591c49490dfce5fb374e7fc2
2dba401baefbb8fe63900ad079ece9f04069bbe0
/readthedocs/doc_builder/base.py
51682f64963640ccc80c2b51f19c9c8d312d2a76
[ "MIT", "LicenseRef-scancode-free-unknown" ]
permissive
thomaspurchas/readthedocs.org
a4181efe11fa306d8dd5de4009986abae24735c0
9f66756768a1950bf10f654a0abd4b6ea33d2556
refs/heads/master
2023-01-08T03:56:21.710000
2011-12-22T17:30:03
2011-12-22T17:30:03
2,247,704
0
1
MIT
2022-12-23T21:37:09
2011-08-22T09:48:15
Python
UTF-8
Python
false
false
2,231
py
base.py
from functools import wraps import os def restoring_chdir(fn): #XXX:dc: This would be better off in a neutral module @wraps(fn) def decorator(*args, **kw): try: path = os.getcwd() return fn(*args, **kw) finally: os.chdir(path) return decorator clas...
67b967b688aeac1270eee836e0f6e6b3555b933e
b38c838c67c7ac2ab666f59afb836b0f3346fba3
/pidcmes_bbu.py
275aa403b6f6cf3f0678bf66651611497724a622
[ "MIT" ]
permissive
josmet52/amod
e815493963ed08a40045c6240c2e7e08a18a7665
6fa438e3d392ce2e3cc0cb83e3ebd9b7d51b0071
refs/heads/master
2023-02-19T02:38:40.134000
2021-01-12T10:09:46
2021-01-12T10:09:46
317,339,517
0
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
pidcmes_bbu.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This program is run at regular intervals to check the battery charge status of the uninterruptible power supply. In our case, it is a LiPo battery with a nominal voltage of 3.7 volts. By setting the voltage for the Raspberry PI shutdown procedure at 3.7 V,we ensure th...
c59707ba07c1659d94684c54cdd7bb2658cba935
2d12912b799cb0d61232d1978752383f67daf2ab
/skutil/h2o/split.py
306d9909057c86a518b4cd863fa6bbb2af09348a
[ "BSD-3-Clause" ]
permissive
vedraiyani/skutil
eb932487414236fce030fbeb98c39d20cd1ddf25
672e353a721036791e1e32250879c3276961e05a
refs/heads/master
2020-03-23T19:46:36.146000
2018-04-19T14:42:20
2018-04-19T14:42:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
23,674
py
split.py
from __future__ import division, print_function, absolute_import import numbers import warnings from abc import ABCMeta, abstractmethod import numpy as np from .base import check_frame from skutil.base import overrides from sklearn.externals import six from sklearn.base import _pprint from sklearn.utils.fixes import si...
41cfd558824b6561114a48a694b1e6e6a7cb8c05
47bf64c2bc00586e39f1af5bda6f9379957f29b3
/pages/register.py
bddc375ea1da737d2d216ccb69dfe63e8e45f0e8
[]
no_license
antat2003/streamlit_multipage
713023d874e947618d3d45ba23a51eaf535292ae
5f8333de62538cec39b4ec4d9cfb4b34defcbe01
refs/heads/main
2023-09-01T14:57:27.226000
2021-11-03T05:42:05
2021-11-03T05:42:05
401,871,601
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
register.py
import streamlit as st from streamlit.components.v1 import components from streamlit.report_thread import get_report_ctx from util.session import * from multipage import MultiPage from pages import register def app(page): if not login_status(): title_container = st.empty() remail_input_container = ...
f2bb44600f011a205c71985ad94c18f7e058634f
5a1049eda025b75fd67a430c2eb0a0aa5c4203d2
/data/retrieval.py
677012473e7c1695ad7d73b5ff86a92eaa841555
[ "MIT" ]
permissive
brennanmcfarland/arc23
5750ff2d82258e43b2ffb6cb4a729d1072432bd7
ea2d73c30f6c1de4d7c6c3d7c5e0df6ebc6c54d0
refs/heads/master
2023-01-24T18:03:08.537000
2020-12-08T00:11:11
2020-12-08T00:11:11
233,967,880
0
0
null
null
null
null
UTF-8
Python
false
false
2,481
py
retrieval.py
import os import requests from PIL import Image from io import BytesIO import csv from typing import Iterable, List, Tuple, Dict, Callable, Union, Collection # pull the image from the api endpoint and save it if we don't have it, else load it from disk def get_img_from_file_or_url(img_format: str = 'JPEG') -> Callabl...
302605d8bb45b1529742bf9441d476f0276085b9
4847b1fd81483ad8cf31e0e444adb5e459cdcfd4
/UIPack/MainFrame.py
ab107593a2b3dd2692c8c63463ee03d547a06d42
[]
no_license
SizeLee/Graduation
1460272e6af44b026c3f41c7ccbf252eb8d6a88d
ee541d21ec182a6c11bc8196cfaf51ad3f99e29d
refs/heads/master
2021-01-22T03:48:58.948000
2017-08-17T16:33:11
2017-08-17T16:33:11
81,462,838
0
0
null
null
null
null
UTF-8
Python
false
false
25,939
py
MainFrame.py
import sys from PyQt5.QtWidgets import (QMainWindow, QWidget, QHBoxLayout, QVBoxLayout, QFrame, QSplitter, QStyleFactory, QApplication, QPushButton, QTextEdit, QLabel, QFileDialog, QMessageBox) from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont, QColor import myLoadData from UIPack import setLossParameterDia...
3e6135a87b1f2824d56438a9538df7c6a206fc7c
377bf89b212a75076ed533c9e030d029170eb885
/build/catkin_generated/order_packages.py
081af394b1dd57f83706bfa8f1970b0db3fb680d
[]
no_license
rezwanshubh/rez2-robtech
b6552d84ed9066f708dd8f58530bb18daeef97b2
1bcf5a9192c5b6332e215bafcbe4db95f7a6750f
refs/heads/master
2021-01-20T14:47:16.569000
2017-05-11T18:48:51
2017-05-11T18:48:51
90,658,845
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
order_packages.py
# generated from catkin/cmake/template/order_packages.context.py.in source_root_dir = "/home/rostest/rez2-robtech/src" whitelisted_packages = "".split(';') if "" != "" else [] blacklisted_packages = "".split(';') if "" != "" else [] underlay_workspaces = "/home/rostest/rez2-robtech/devel;/opt/ros/indigo".split(';') if ...
ec010fefb6df033e2c107f6298dce6f4827e4fae
cb80241b8525dcc48eecc2be43b11ed9d5e610b8
/Aulas/Disicionarios.py
af39d55c2ac1bbfac32a046b5a576fbe8765a705
[]
no_license
LucasXS/Mundo3Python
1b5ad7863faa938faa5771cc64f9d89fb38aaffa
b5ae6807bd9674e4f0129bee489f2aa1198f8d2f
refs/heads/main
2023-06-02T06:54:23.744000
2021-06-16T22:19:32
2021-06-16T22:19:32
352,486,216
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
Disicionarios.py
pessoas = {'Nome': 'Lucas', 'Sexo': 'M', 'Idade': 25} print(pessoas['Nome']) # Usar as aspas duplas print(f'O {pessoas["Nome"]} tem {pessoas["Idade"]} anos') """ print(pessoas.keys()) print(pessoas.values()) print(pessoas.items()) del pessoas['Sexo'] pessoas['Nome'] = 'Leandro' pessoas['Peso'] = '98.2' print('=-'*1...
4912d1854f278bf5977c84e70020536f8d349b93
5f2b9f4debad9cc904d607000b1ae98de1eda9e9
/lib/python/treadmill/sproc/cellsync.py
0fed597aa711939b6025bc1037560ec5e68dd86c
[ "Apache-2.0" ]
permissive
bretttegart/treadmill
42ccb6123ce136292217d528fee37c8b1657ea0b
812109e31c503a6eddaee2d3f2e1faf2833b6aaf
refs/heads/master
2021-05-05T17:38:22.611000
2018-04-09T17:30:31
2018-04-09T17:30:31
103,435,056
2
0
Apache-2.0
2018-04-09T14:51:10
2017-09-13T18:18:10
Python
UTF-8
Python
false
false
1,932
py
cellsync.py
"""Syncronizes cell Zookeeper with LDAP data. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import time import click from treadmill import cli from treadmill import context from treadmill import...
bc1dc6f0eb433ea6ef69e4f6f201a04a0e277be9
1bc12ae216524006129812f64584672d06ff2edd
/QUANTAXIS/QAStrategy/QA_Strategy_Loader.py
903c5cb03baf6a7e0e521aaa4331e419155ad791
[ "MIT" ]
permissive
Bourton/QUANTAXIS
874c965ef5ea0c1bc56d680aa15c16b8aa36a936
080e82bbc2c2e8f53445b741ee45304d8f4f0d31
refs/heads/0.4.0-beta
2021-01-18T16:49:17.203000
2017-08-16T05:51:08
2017-08-16T05:51:08
100,469,414
2
0
null
2017-08-16T08:58:25
2017-08-16T08:58:25
null
UTF-8
Python
false
false
964
py
QA_Strategy_Loader.py
# coding:utf-8 # strategy warpper class QA_Strategy(): def __init__(self): self.strategy_list = {} def before_strategy_exec(self): print('before') pass def after_strategy_exec(self): print('after') pass @classmethod def strategy_init(clcs, func, *arg, ...
eb0f7716f8b2a4ce81cb4cfb9bdee66a9a8e3021
01ed43604812e421793b7a70325eae14cb480e71
/PA0/task5/test.py
a57e5374493d62145b394796743738364f15a734
[]
no_license
KadeR-jpg/csci-460-fall2020
cc6a2c6b19563c841fb07982ded60879c0e8b575
fc250b24dbb2e2ab779694a863f08ad5fedb296b
refs/heads/master
2022-12-27T14:18:59.401000
2020-10-16T23:05:49
2020-10-16T23:05:49
291,146,689
0
0
null
null
null
null
UTF-8
Python
false
false
949
py
test.py
import sys import random punc = ('.', '!') count = 0 new_word = "" inFile = ("dressed.txt") with open(inFile, 'r') as shuf: for line in shuf.readlines(): for word in line.split(): if len(word) > 2: if word.endswith(punc): word1 = word[1:-2] ...
cd8891af3cb3005812b542518e54895355810426
7d45f6a2b59ada3cb1bba14ea26bc1b0740f8d8e
/stopwords_lists/views.py
06d93be04712e8511ddf980c1c2442bb9bced1dc
[]
no_license
sgs-nlp/persian-natural-language-processing
c3a37eac46fe01f44d38fdbb9f78cc0ad515f40a
857fa88d8850dd7054f310468c4d7ae04a149133
refs/heads/master
2023-08-11T10:52:19.402000
2021-09-25T10:17:29
2021-09-25T10:17:29
410,188,499
0
0
null
null
null
null
UTF-8
Python
false
false
116
py
views.py
from django.shortcuts import render from django.http import HttpRequest def index(request: HttpRequest): pass
a15e67ec1b3a19a52bcb85c16fcd4ad3c7f297d5
785248ef71ca54feaf93524299385719ec203959
/crypto/Lab0x02/COM/solve.py
487f61412b013ba0e9282b37aa3c8e56e02d8430
[]
no_license
mhsuab/ComputerSecurity2020
14336fb2c7d8865aedf059cbee0e6f2c5845a011
48c02fddf4561d5e543c700e9ec143dafde20cd9
refs/heads/master
2023-02-27T13:32:00.084000
2021-01-27T09:50:38
2021-01-27T09:50:38
297,151,353
0
0
null
null
null
null
UTF-8
Python
false
false
1,406
py
solve.py
# Common Factor Attack # n1, n2 generate from same p but different q # find the greatest common divisor(gcd) of n1, n2 to get p # then n1, n2, can be easily interger factorize from Crypto.Util.number import long_to_bytes, GCD, inverse # from output.txt n1 = 7668727925779864094785897542480563253013632380554930603470643...
c4b596ec3ebea18391dce42cda46514983599ac5
5e962ced9a0f52bf0f6106b8ebf96e1431b17cf4
/web.py
7d95ef2bd1f356c34d63bb37027fbcc7ef6b689f
[]
no_license
Anton-Cao/Charcoal
1e1a78263de1abc004611df4c9ea17c5d88a0d5f
1618ff4648ee6345f2d496a5bc28b2129f4ae0b9
refs/heads/master
2022-12-09T07:42:50.883000
2018-01-30T23:13:36
2018-01-30T23:13:36
119,257,769
0
0
null
2022-12-08T00:53:25
2018-01-28T12:50:03
Python
UTF-8
Python
false
false
942
py
web.py
import os from flask import Flask, render_template, request, jsonify, send_from_directory from predict import predict_next_chars as pnc from predict import generate_story as gs app = Flask(__name__) @app.route('/') def main(): return render_template('index.html') @app.route('/favicon.ico') def favicon(): retu...
b0e838d2cc31aa476a89b1c2d35f197ad4b478e9
4ae7cdc9292009398a292bdf6bee61428559fdfd
/SourceCodeTools/code/experiments/Experiments.py
8518ea7335ea6abda5a88887276df7b339afb011
[]
no_license
VitalyRomanov/method-embedding
52a4e6e7bf726b4db0872902a0eaf1d8cb82b4a8
1c8f0fc04eb1f495555272d9747fd2fea68525e1
refs/heads/master
2023-08-31T17:39:04.051000
2023-01-08T05:02:52
2023-01-08T05:02:52
219,153,628
5
7
null
2023-07-22T20:27:20
2019-11-02T12:54:12
Python
UTF-8
Python
false
false
34,874
py
Experiments.py
# %% import json from typing import Iterable import pandas from os.path import join from sklearn.model_selection import train_test_split import numpy as np # from graphtools import Embedder from SourceCodeTools.code.data.dataset.Dataset import filter_dst_by_freq from SourceCodeTools.code.data.file_utils import unper...
4440148fe947ef7f67b0481d36493bee3d0545ae
edf47b8132b211303644b3e5f63ccd7e0ae90ecb
/master_ui/workFile/session_form.py
e34349dc3e6a976bf7e80d60d7b959c5a0c9d770
[ "MIT" ]
permissive
mmallmann/masterreload
d302faffe678630a82ecadb58858f7d1daa4c0c6
4c00474c472be8b57f4a87f449f0906721bd9d50
refs/heads/master
2021-01-17T22:34:50.247000
2014-10-06T06:45:25
2014-10-06T06:45:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,113
py
session_form.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'sessionUi.ui' # # Created: Mon Sep 22 19:59:31 2014 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_session_form(object): def setup...
798c0aaa3cf478bf7ec0037de0dcb39dd6ce2cc8
ca504a1c4a6f0d42ff671a489b79de97fef41d38
/CleanRawData.py
5d516507f2a2924d09aab642f19f757d97fbfadd
[]
no_license
prateekvishnu/SemanticMovieQAonMovieData
e076d60b68b6f8a72c78a50e3aeed39464f65e27
207053b2f539b0a79bc88ba4810fa6a876c94a93
refs/heads/master
2020-03-18T01:53:44.854000
2018-05-20T16:00:37
2018-05-20T16:00:37
134,164,770
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
CleanRawData.py
import os import re files = os.listdir("Data/RawPlots") for file in files: f = open('Data/RawPlots/' + file, 'r', encoding='utf8') text = f.read() text = re.sub('<[^<]+?>', '', text) text = re.sub('\n', '', text) text = re.sub('\.', '. ', text) text = re.sub('\"', '', text) text = re.sub(',...
a4e342a8a2706a34a00e122a69487fccc930853e
367eec65f36145d9d442692559fd65f66d8c5b64
/LearnPython/test/function3.py
0b0d5ae21e326e65233a20b2acacd5c6aa5bf1f1
[]
no_license
goocci/Learn_Python
1c58f1f4b7f0695f385e0dbacc44f7369b7d86f9
f2ae8ec11bc37872d13ee688645c1d7c275895b0
refs/heads/master
2021-06-11T14:25:24.109000
2017-02-26T15:17:44
2017-02-26T15:17:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,354
py
function3.py
''' 사용자 정의 함수 def 함수명(인수): <실행할 명령1> <실행할 명령2> ... *인수(매개변수, 파라미터) ''' def show_max(a, b) : if a > b : print("최댓값", a) elif a == b : print(a,"와",b,"는 같다") else : print("최댓값",b) show_max(10, 6) i = 5 j = 5 show_max(i,j) i = 10 j = 100 show_max(i,j) def sum(a,b) : ...
14a02bc9742503af43c0e72b6be89d6b18712655
f43c1909611d336a91fc8bca756803d868037a0c
/config.py
e77fca8c91e561cfcad65eddbb8224b4f8e1df7d
[]
no_license
hialstkd/python-api-challenge
b2af17964f4f3c218a4f24491a38b7a597088e51
ce18f6ef8d1e7d9482fce1f6e0b3b0844e2c0058
refs/heads/master
2022-11-15T16:56:45.388000
2020-07-14T05:34:12
2020-07-14T05:34:12
279,234,139
0
0
null
null
null
null
UTF-8
Python
false
false
71
py
config.py
apikey = "Your OpenWeather Map API HERE!" g_key = "Your Gmap Api HERE!"
a9ae4b86de6afdc2040e73f213d371c61dade05b
e961244aabd189a880b0670a94c29b85b95916b6
/圓周與面積.py
193b133fcf5ed3d0af4fafe0060f4bebb7a667b2
[]
no_license
changray1201/AE402-Python
62f9290d4c5889d21877486a2039a748cfd5723f
88a12a07aa8638d6082cd85ebec3a1c2e2721ba5
refs/heads/main
2023-03-01T17:20:03.266000
2021-02-04T08:46:44
2021-02-04T08:46:44
334,811,198
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
圓周與面積.py
r = input("請輸入圓的半徑") r = float(r) square= r ** 2 * 3.14159265358979323846264 l = 2 * r * 3.14159265358979323846264 print("圓周長是:" , l) print("圓面積是:" , square)
19e1a13766914ff9ff50a59dd9c89ab6db4cc0e1
4055630059b5e8b25aebd51eef8a1e30e65078ae
/server/user/migrations/0005_auto_20181212_1506.py
37325fef91dc32fd68efbb22590253be1b50ec6b
[]
no_license
Arthur264/music-new
11834f90b6fcd0678f27703546619466fc5c661c
e87c87e69b35d17c765ac421c47a12e2270f3710
refs/heads/master
2021-07-06T02:13:12.468000
2019-03-04T22:23:24
2019-03-04T22:23:24
140,053,339
1
0
null
null
null
null
UTF-8
Python
false
false
968
py
0005_auto_20181212_1506.py
# Generated by Django 2.0.8 on 2018-12-12 15:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0004_auto_20181211_1547'), ] operations = [ migrations.CreateModel( name='SocialNetwork', fields=[ ...
c199060360c836e8c9a4633d7875e58bd231ba79
6d44b45ad9263ecd76df7494849b3eb8e64ba1bb
/knn.py
fcce61815d4ee38993c113ffb79debf543f40d61
[]
no_license
Hepic/Data-Mining-2
404a7868138e361d40fa6e33d41e0788c0da9ce8
286140bf167352d9d8c03748dce6f693ba8f819d
refs/heads/master
2020-03-17T03:07:20.639000
2018-06-02T14:21:17
2018-06-02T14:21:17
133,220,936
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
knn.py
from collections import Counter from sklearn.base import BaseEstimator class KNN(BaseEstimator): def __init__(self, K, distFunc): self.data = [] self.K = K self.distFunc = distFunc def fit(self, data, ids): self.data = [] self.data.extend(zip(data, ids)) ...
f7db03139ad00acdad17a10863ef1ae580209f27
e43ff8f429a6938a4f16edc4b2c94976acbff157
/ABC/ABC 205/d.py
a30e4863d53cfeaa20aa200cbd31bc23e1a702e3
[]
no_license
Soule50431/AtCoder
4fcd6ab6b771d55c90dc62aedd75eb81fd067466
118ac5d03630ce143fb50153402eee38e988ae0c
refs/heads/master
2023-06-18T13:07:13.843000
2021-07-14T01:56:20
2021-07-14T01:56:20
357,827,698
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
d.py
from bisect import bisect_left n, q = map(int, input().split()) a = list(map(int, input().split())) num_list = [(a[i]-1) - i for i in range(n)] # print(num_list) for i in range(q): k = int(input()) print(bisect_left(num_list, k) + k)
bd1f15c73d5341516ecca51adb2149ecaf2883d4
549fb8ccabefe4bdb1084793a753567dd118103c
/ProcessedPolygonsDirClass.py
24c6fe9b45c12d21b312836fc7a3fa73835f5e09
[]
no_license
jpps2408/ProjetoCMLisboa
db7226d2a8f1cd652b84f6ee3d6f93ea8a6a7895
98125355fcefb6c8c47b7ba1559115b2cecbdffe
refs/heads/master
2022-09-16T20:00:50.016000
2020-05-28T17:21:09
2020-05-28T17:21:09
251,608,640
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
ProcessedPolygonsDirClass.py
import os from DictionaryInstantiator import * from ShiftDirClass import * import functools #processedpolygons class ProcessedPolygonsDir(object): def __init__(self, processedpolygonsdirectory, *args, **kwargs): self.processedpolygonsdirectory = os.path.abspath(processedpolygonsdirectory) se...
c8771fdfcf2ef20e3fe574311ffce79e048d9c89
62226afe584a0d7f8d52fc38ca416b19ffafcb7a
/hwtLib/mem/cam_test.py
2404cf1e23c092ccfc9f9272fd7f92d39db2b19c
[ "MIT" ]
permissive
Nic30/hwtLib
d08a08bdd0bf764971c4aa319ff03d4df8778395
4c1d54c7b15929032ad2ba984bf48b45f3549c49
refs/heads/master
2023-05-25T16:57:25.232000
2023-05-12T20:39:01
2023-05-12T20:39:01
63,018,738
36
8
MIT
2021-04-06T17:56:14
2016-07-10T21:13:00
Python
UTF-8
Python
false
false
1,089
py
cam_test.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from hwt.hdl.constants import NOP from hwt.simulator.simTestCase import SimTestCase from hwtLib.mem.cam import Cam from hwtSimApi.constants import CLK_PERIOD class CamTC(SimTestCase): @classmethod def setUpClass(cls): cls.u = Cam() ...
e463e1faf2d6596f7c697d7c6096504b9ba365c4
d0a8b4de782410e93ff5eda6ff95bab4da4a3ee4
/thenewboston_node/business_logic/tests/factories.py
5074a752c466b78fc42242c216d95c3b9a5b06b1
[ "MIT" ]
permissive
Devcentralized/thenewboston-node
4a8a0ee56e35d3bbd1fbdb088e2642dbee1355a9
3fbd0fc36c4f0eabaa8267f2a0be2fd717f133d1
refs/heads/master
2023-05-27T20:06:16.701000
2021-06-14T13:07:06
2021-06-14T13:07:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,279
py
factories.py
from datetime import datetime from thenewboston_node.business_logic.models import ( CoinTransferSignedChangeRequest, CoinTransferSignedChangeRequestMessage, CoinTransferTransaction ) from thenewboston_node.business_logic.models.account_state import AccountState from thenewboston_node.business_logic.models.block im...
a9745f513461927e416f915592ec78858be63441
bae75bf1de75fb1b76e19b0d32c778e566de570a
/smodels-database/13TeV/CMS/CMS-SUS-17-006/validation/T5HH_2EqMassAx_EqMassBx-50_EqMassC1.0.py
3d370f34017fe99e6c10323dfaf8f609ee99067f
[]
no_license
andlessa/RDM
78ae5cbadda1875c24e1bb726096b05c61627249
ac6b242871894fee492e089d378806c2c2e7aad8
refs/heads/master
2023-08-16T00:47:14.415000
2021-09-21T20:54:25
2021-09-21T20:54:25
228,639,778
0
0
null
null
null
null
UTF-8
Python
false
false
15,822
py
T5HH_2EqMassAx_EqMassBx-50_EqMassC1.0.py
validationData = [{'slhafile': 'T5HH_1000_950_1_1000_950_1.slha', 'axes': {'x': 1000.0}, 't': 0.2079949780796351, 'signal': 331.336054, 'UL': 3.1944999999999997, 'condition': 0.0, 'dataset': None, 'eUL': 3.3365, 'kfactor': 1.0}, {'slhafile': 'T5HH_1025_975_1_1025_975_1.slha', 'axes': {'x': 1025.0}, 't': 0.2079949780796...
4758d590b5d959681de62b518ecdfccd432b2ae5
ef7eabdd5f9573050ef11d8c68055ab6cdb5da44
/topCoder/srms/500s/srm528/div2/min_cost_palindrome.py
aa993eb5ec354648f8668cba20047bcdbbb19d78
[ "WTFPL" ]
permissive
gauravsingh58/algo
cdbf68e28019ba7c3e4832e373d32c71902c9c0d
397859a53429e7a585e5f6964ad24146c6261326
refs/heads/master
2022-12-28T01:08:32.333000
2020-09-30T19:37:53
2020-09-30T19:37:53
300,037,652
1
1
WTFPL
2020-10-15T09:26:32
2020-09-30T19:29:29
Java
UTF-8
Python
false
false
435
py
min_cost_palindrome.py
class MinCostPalindrome: def getMinimum(self, s, oCost, xCost): c = 0 for i in xrange(len(s)/2): e = ''.join(sorted(s[i] + s[-i-1])) print e if e == '?o': c += oCost elif e == '?x': c += xCost elif e == '??':...
65ea498288a3ae98860a5afa52d72ef4cce52295
8353ae38d193aa6e33486df29474990346f36c69
/gleam_scripts/phase1/queue/clean_array_casa.template
0a53b76c89fdfc1580f73a9851c4a09eb8f0b35b
[]
no_license
lao19881213/mwa_gleam_scripts
2e8176d5258c740f30b4b440e70773a3774efccd
c90138823bb310418471f859baf9a0d4ed9125eb
refs/heads/master
2020-04-11T01:26:31.890000
2018-08-21T07:12:18
2018-08-21T07:12:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,372
template
clean_array_casa.template
#!/usr/bin/python # CASA template to clean the data # Exports with PV keywords # Also adds the delays to the fits file import re, os, pyfits from math import * from subprocess import call from casa_fixhdr import casa_fixhdr from add_delays import add_delays from add_weighting import add_weighting vis='OBSNUM.ms' root...
End of preview. Expand in Data Studio

The Stack v2 Python Subset with File Contents

ahmed-farhanur-rashid/the-stack-v2-dedup-python-subset

Dataset Summary

This dataset is a Python-only, self-contained subset of bigcode/the-stack-v2-dedup, part of the BigCode Project. It was derived from Cyrile/dataset-the-stack-v2-dedup-sub by keeping only the Python files (🐍) and removing the C, C++, Java and JavaScript subsets.

Unlike the original dataset, which only includes metadata and Software Heritage IDs, this subset includes the actual file contents, enabling out-of-the-box training and analysis of code models, without requiring SWH downloads or AWS credentials.

  • Files: 18,065,153
  • Uncompressed size: ~83.4 GB
  • Download size: ~34.5 GB

Use Cases

This dataset is intended for:

  • Pretraining or fine-tuning Code LLMs on high-quality and permissively licensed Python code
  • Python-specific evaluation or benchmarking
  • Research on code representation, generation, or completion for Python

How to Use

from datasets import load_dataset
ds = load_dataset(
    "ahmed-farhanur-rashid/the-stack-v2-dedup-python-subset",
    name="Python",
    split="train",
    streaming=True
)

Dataset Structure

Each example in the dataset contains the following fields (inherited from the original Stack v2):

  • content (string): The full file content, decoded in UTF-8
  • language (string): Programming language of the file (detected by go-enry / linguist)
  • path (string): File path within the repository
  • repo_name (string): Repository name on GitHub
  • detected_licenses (list of strings): SPDX license identifiers
  • license_type (string): License type: permissive or no_license
  • is_vendor (bool): Whether the file is from a dependency
  • is_generated (bool): Whether the file is detected as generated
  • length_bytes (int): File size in bytes
  • Plus other metadata like:
    • blob_id, directory_id, revision_id, snapshot_id, visit_date, committer_date
    • GitHub metadata: github_id, gha_language, gha_license_id, etc.

Source Dataset

This dataset is derived from:

👉 bigcode/the-stack-v2-dedup

via the intermediate multi-language subset Cyrile/dataset-the-stack-v2-dedup-sub.

The full Stack v2 dataset is built from the Software Heritage archive and GitHub Archive metadata, and spans 600+ programming languages. This subset narrows the focus to Python while retaining full file content.


Curation Rationale

Python is one of the most widely used languages in open-source projects and code LLM research. By focusing on Python alone, we reduce dataset size, eliminate irrelevant files, and speed up experimentation for Python-focused models.


License and Legal Considerations

  • Only permissively licensed files (or those with no license) are included.
  • Licensing information is provided at file level.
  • The dataset may contain personal information (e.g., emails, keys) present in public repositories. Sensitive data has been reduced via deduplication but may still exist.
  • Usage must comply with the original license of each file.

To request the removal of your code, refer to the BigCode opt-out process.


Citation

If you use this dataset, please cite the original Stack v2 paper:

@misc{lozhkov2024starcoder,
  title={StarCoder 2 and The Stack v2: The Next Generation},
  author={Anton Lozhkov and Raymond Li and Loubna Ben Allal and others},
  year={2024},
  eprint={2402.19173},
  archivePrefix={arXiv},
  primaryClass={cs.SE}
}
Downloads last month
-

Paper for ahmed-farhanur-rashid/the-stack-v2-dedup-python-subset