hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
699f409bdd5d561bb93770f28b38f939f53fc421
5,483
py
Python
3_dataset_create.py
shivanirmishra/musicgenre
954214b6f7756c05de1253702811fd69dd99b0e2
[ "MIT" ]
null
null
null
3_dataset_create.py
shivanirmishra/musicgenre
954214b6f7756c05de1253702811fd69dd99b0e2
[ "MIT" ]
null
null
null
3_dataset_create.py
shivanirmishra/musicgenre
954214b6f7756c05de1253702811fd69dd99b0e2
[ "MIT" ]
null
null
null
from google.colab import drive drive.mount('/content/drive') import librosa import os import pandas as pd from numpy import mean import warnings; warnings.filterwarnings('ignore'); folders_5s = { 'pop_5s':'/content/drive/My Drive/ML_Project/New_Data/pop_test_5s', 'rnb_5s':'/content/drive/...
28.857895
89
0.666423
from google.colab import drive drive.mount('/content/drive') import librosa import os import pandas as pd from numpy import mean import warnings; warnings.filterwarnings('ignore'); folders_5s = { 'pop_5s':'/content/drive/My Drive/ML_Project/New_Data/pop_test_5s', 'rnb_5s':'/content/drive/...
0
0
0
0
0
0
0
0
0
412a8b42be8c6054311e076c95465833bdd45355
1,206
py
Python
data/train_test_split.py
ttaoREtw/A-Pytorch-Implementation-of-Tacotron-End-to-end-Text-to-speech-Deep-Learning-Model
6b0f615cafb0530370631a880aac5736fe9a2c64
[ "MIT" ]
105
2018-09-13T02:45:10.000Z
2021-06-24T03:31:15.000Z
data/train_test_split.py
henryhenrychen/Tacotron-pytorch
4a4d1ea0d83fd88a50464999f5d55fe012c86687
[ "MIT" ]
9
2018-12-11T02:37:58.000Z
2021-03-18T02:42:40.000Z
data/train_test_split.py
henryhenrychen/Tacotron-pytorch
4a4d1ea0d83fd88a50464999f5d55fe012c86687
[ "MIT" ]
31
2018-09-15T14:51:31.000Z
2021-01-19T07:37:14.000Z
import argparse if __name__ == '__main__': parser = argparse.ArgumentParser(description='Split the data') parser.add_argument('--meta-all', type=str, help='The meta file generated by preprocess.py', required=True) parser.add_argument('--ratio-test', default=0.1, type=float, help='ratio of testing example...
31.736842
114
0.662521
import os import argparse import random def split_and_save(args): meta_all_path = args.meta_all meta_dir = os.path.dirname(os.path.realpath(meta_all_path)) meta_tr_path = os.path.join(meta_dir, 'meta_train.txt') meta_te_path = os.path.join(meta_dir, 'meta_test.txt') with open(meta_all_path) as f: ...
0
0
0
0
0
762
0
-20
67
4d36c18720eb25777d76206398891b1da5c803d3
10,711
py
Python
item_sets.py
jay-maity/RecommendPCY
040eda27be46d241406d3cb8ce6605dde492fef9
[ "MIT" ]
null
null
null
item_sets.py
jay-maity/RecommendPCY
040eda27be46d241406d3cb8ce6605dde492fef9
[ "MIT" ]
null
null
null
item_sets.py
jay-maity/RecommendPCY
040eda27be46d241406d3cb8ce6605dde492fef9
[ "MIT" ]
null
null
null
""" Frequent item discovery by PCY algorithm""" import sys cluster = None session = None def main(): """ Handles parameters for the file to run :return: """ input_path = sys.argv[1] output_path = sys.argv[2] support_thresold = int(sys.argv[3]) broadcast = 1 if len(sys.argv) > 4...
34.220447
98
0.527588
""" Frequent item discovery by PCY algorithm""" import operator import json import sys from pyspark import SparkContext, SparkConf import pyspark_cassandra from cassandra.cluster import Cluster cluster = None session = None class PCYFrequentItems: """ Find Frequent item list using PCY algorithm """ ...
0
3,197
0
6,742
0
0
0
25
134
67a731ca62e5cbd2844ce988950efc73fd0d3ec6
5,201
pyw
Python
pncShell.pyw
BobBaylor/pnc
11b5a08a1fce5c605a203c4e46c9d9599024ad3c
[ "MIT" ]
null
null
null
pncShell.pyw
BobBaylor/pnc
11b5a08a1fce5c605a203c4e46c9d9599024ad3c
[ "MIT" ]
null
null
null
pncShell.pyw
BobBaylor/pnc
11b5a08a1fce5c605a203c4e46c9d9599024ad3c
[ "MIT" ]
null
null
null
""" A wrapper around my pnc.py module """ # app = MyApp(redirect=True) app = MyApp() #pylint: disable=invalid-name app.MainLoop()
38.242647
153
0.586233
""" A wrapper around my pnc.py module """ import os.path import wx import wx.lib.filebrowsebutton as filebrowse import pnc class MyFrame(wx.Frame): """ This is MyFrame. It just shows a few controls on a wxPanel, and has a simple menu. Use this file inFileBtn Write this root name TextEntry ...
0
0
0
4,927
0
0
0
-7
137
f7357be79ed5cf787004c67c6e35b3966042133a
659
py
Python
ouch_server.py
jahinzee/theouchteam
870767cae81ad37b4191ded64c3e83eb48be982a
[ "MIT" ]
3
2022-01-09T02:40:31.000Z
2022-02-01T03:57:40.000Z
ouch_server.py
jahinzee/theouchteam
870767cae81ad37b4191ded64c3e83eb48be982a
[ "MIT" ]
null
null
null
ouch_server.py
jahinzee/theouchteam
870767cae81ad37b4191ded64c3e83eb48be982a
[ "MIT" ]
1
2022-01-21T08:05:27.000Z
2022-01-21T08:05:27.000Z
import sys from src.Exchange import Exchange if __name__ == "__main__": exchange = None if len(sys.argv) == 2: if sys.argv[1] == "debug": # Exchange outputs using debug mode. exchange = Exchange(debug="dump") elif sys.argv[1] == "none": # Exchange won't outp...
32.95
86
0.608498
import sys from src.Exchange import Exchange if __name__ == "__main__": exchange = None if len(sys.argv) == 2: if sys.argv[1] == "debug": # Exchange outputs using debug mode. exchange = Exchange(debug="dump") elif sys.argv[1] == "none": # Exchange won't outp...
0
0
0
0
0
0
0
0
0
a3dcdb967f844c2c93436cc07445e0c92c4d3a7d
99
py
Python
server_prod.py
techx/evolution-chamber
dea9b7d563df6f06d270078f5c512e3f7e367a92
[ "MIT" ]
4
2015-06-22T15:44:57.000Z
2015-06-22T15:57:03.000Z
server_prod.py
techx/evolution-chamber
dea9b7d563df6f06d270078f5c512e3f7e367a92
[ "MIT" ]
null
null
null
server_prod.py
techx/evolution-chamber
dea9b7d563df6f06d270078f5c512e3f7e367a92
[ "MIT" ]
2
2015-07-09T15:21:37.000Z
2016-02-02T15:59:09.000Z
import server if __name__ == "__main__": server.app.run(host='0.0.0.0',port=5000,debug=False)
19.8
56
0.686869
import server if __name__ == "__main__": server.app.run(host='0.0.0.0',port=5000,debug=False)
0
0
0
0
0
0
0
0
0
da72584d02e46192004671f6611a889c0dd3c753
2,533
py
Python
datahub/email_ingestion/emails.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/email_ingestion/emails.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/email_ingestion/emails.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
from logging import getLogger import mailparser from datahub.documents import utils as documents from datahub.interaction.email_processors.processors import CalendarInteractionEmailProcessor logger = getLogger(__name__) BUCKET_ID = 'mailbox' def process_ingestion_emails(): """ Gets all new mail documents...
33.773333
95
0.649428
import tempfile from logging import getLogger import mailparser from django.conf import settings from django.core.exceptions import ImproperlyConfigured from datahub.documents import utils as documents from datahub.interaction.email_processors.processors import CalendarInteractionEmailProcessor logger = getLogger(__...
0
0
0
0
1,053
0
0
39
89
0af7288a9052da637b85d240b67185965f20ec48
1,105
py
Python
classes/rooms.py
Loekring/Neversoft
a9e600131585741652b62b2dbbaa2febc1656843
[ "MIT" ]
1
2018-01-21T21:15:52.000Z
2018-01-21T21:15:52.000Z
classes/rooms.py
Loekring/Neversoft
a9e600131585741652b62b2dbbaa2febc1656843
[ "MIT" ]
null
null
null
classes/rooms.py
Loekring/Neversoft
a9e600131585741652b62b2dbbaa2febc1656843
[ "MIT" ]
null
null
null
offBoundsMsgs = ["Der er ikkje noko i den retninga.", "Du mtte ein vegg.", "Du kjem deg ikkje vidare i den retninga."] roomSizeX, roomSizeY = 2, 1
31.571429
119
0.6181
import random as r offBoundsMsgs = ["Der er ikkje noko i den retninga.", "Du møtte ein vegg.", "Du kjem deg ikkje vidare i den retninga."] roomSizeX, roomSizeY = 2, 1 class Rooms: # Dette er baseklassa til allle romma def __init__(self, name, smell, feel, taste, look, sound, jump): self.name = name...
4
0
0
910
0
0
0
-3
45
9c6cb2f62249c9249426fed5a021326cf26ae2cd
3,970
py
Python
pymatflow/vasp/scripts/vasp-dfpt.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
6
2020-03-06T16:13:08.000Z
2022-03-09T07:53:34.000Z
pymatflow/vasp/scripts/vasp-dfpt.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-10-02T02:23:08.000Z
2021-11-08T13:29:37.000Z
pymatflow/vasp/scripts/vasp-dfpt.py
DeqiTang/pymatflow
bd8776feb40ecef0e6704ee898d9f42ded3b0186
[ "MIT" ]
1
2021-07-10T16:28:14.000Z
2021-07-10T16:28:14.000Z
#!/usr/bin/env python # _*_ coding: utf-8 _*_ import argparse from pymatflow.vasp.dfpt import dfpt_run """ usage: """ params = {} if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-d", "--directory", type=str, default="tmp-vasp-static", hel...
36.090909
251
0.522418
#!/usr/bin/env python # _*_ coding: utf-8 _*_ import os import argparse from pymatflow.vasp.dfpt import dfpt_run """ usage: """ params = {} if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("-d", "--directory", type=str, default="tmp-vasp-static", ...
0
0
0
0
0
0
0
-12
25
9d62cac37a74dba044cd1a53d16dc1255a546ab1
260
py
Python
python5.py
audstanley/nodePythonProcessWatcher
cf3b707af81c837b99c5b2d955cf0d718e286e81
[ "MIT" ]
null
null
null
python5.py
audstanley/nodePythonProcessWatcher
cf3b707af81c837b99c5b2d955cf0d718e286e81
[ "MIT" ]
null
null
null
python5.py
audstanley/nodePythonProcessWatcher
cf3b707af81c837b99c5b2d955cf0d718e286e81
[ "MIT" ]
null
null
null
from python5_unixSocket import interComs myInterComs = interComs() myInterComs.run() import sys from time import sleep while True: print("MESSAGES FROM PYTHON 5") sys.stdout.flush() myInterComs.send( {"wordDawg": "from python5"} ) sleep(0.500)
23.636364
52
0.726923
from python5_unixSocket import interComs myInterComs = interComs() myInterComs.run() import sys from time import sleep while True: print("MESSAGES FROM PYTHON 5") sys.stdout.flush() myInterComs.send( {"wordDawg": "from python5"} ) sleep(0.500)
0
0
0
0
0
0
0
0
0
2c4146e35515d5d11823006c020a481717320a31
1,909
py
Python
Revitron.tab/RPM.panel/Setup.pulldown/ProjectSetup.pushbutton/ProjectSetup_script.py
jmcouffin/revitron-ui
f67739488b504cdb0cabe36e088a40fe3cd2b282
[ "MIT" ]
null
null
null
Revitron.tab/RPM.panel/Setup.pulldown/ProjectSetup.pushbutton/ProjectSetup_script.py
jmcouffin/revitron-ui
f67739488b504cdb0cabe36e088a40fe3cd2b282
[ "MIT" ]
null
null
null
Revitron.tab/RPM.panel/Setup.pulldown/ProjectSetup.pushbutton/ProjectSetup_script.py
jmcouffin/revitron-ui
f67739488b504cdb0cabe36e088a40fe3cd2b282
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Define extensions to be used with this Revit model. Defined extensions can be installed by using the "Install Extensions" button. """ import revitron import System.Windows from rpw.ui.forms import FlexForm, TextBox, Button, Label if not revitron.Document().isFamily(): config = revitron.D...
37.431373
130
0.707177
# -*- coding: utf-8 -*- """ Define extensions to be used with this Revit model. Defined extensions can be installed by using the "Install Extensions" button. """ import revitron import System.Windows from pyrevit import script from rpw.ui.forms import FlexForm, TextBox, Button, Label def openHelp(sender, e): script....
0
0
0
0
0
83
0
5
45
d570100b492c0df602a33bf7fd31f800015b364c
3,653
py
Python
src/features/spectrum.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
1
2019-07-27T00:32:02.000Z
2019-07-27T00:32:02.000Z
src/features/spectrum.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
null
null
null
src/features/spectrum.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
1
2019-07-27T00:32:06.000Z
2019-07-27T00:32:06.000Z
#!/usr/bin/env python import logging logger = logging.getLogger(__name__)
30.957627
79
0.595401
#!/usr/bin/env python import logging import numpy as np import librosa import scipy from random import randint from src.utils.math_utils import nextpow2 logger = logging.getLogger(__name__) class Spectrum(object): def __init__(self, hparams): self.sample_freq = hparams.sample_freq self.duration ...
0
0
0
3,437
0
0
0
6
133
01fd056ce41c1c67b73640a90525a86f7223ab98
51,070
py
Python
backend/grafit/migrations/0003_load_data.py
fossabot/grafit
c7328cc7ed4d37d36fc735944aa8763fad090d97
[ "MIT" ]
16
2018-10-12T16:33:52.000Z
2020-06-23T20:11:34.000Z
backend/grafit/migrations/0003_load_data.py
fossabot/grafit
c7328cc7ed4d37d36fc735944aa8763fad090d97
[ "MIT" ]
41
2018-10-14T21:28:38.000Z
2021-06-10T22:01:45.000Z
backend/grafit/migrations/0003_load_data.py
fossabot/grafit
c7328cc7ed4d37d36fc735944aa8763fad090d97
[ "MIT" ]
4
2018-10-28T10:47:26.000Z
2020-07-20T04:17:04.000Z
# Generated by Django 2.1.2 on 2018-10-25 09:36 import django.contrib.auth.models import django.contrib.auth.validators
100.928854
1,002
0.739495
# Generated by Django 2.1.2 on 2018-10-25 09:36 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone import uuid class Migration(migrations.Migration): dependencies = [ ('grafit', '0002_article'), ] operati...
159
0
0
50,790
0
0
0
16
89
ddfea5bd5d0e0cf8608cb0a07599e5e6b06f933e
494
py
Python
Python Script Tools/18.0 Create Dataframe And Store It In a CSV.py
juan1305/0.11-incremento_descremento
954ddb32180c3197e5b01cf95d20f5325ada8a29
[ "MIT" ]
1
2020-04-13T00:16:16.000Z
2020-04-13T00:16:16.000Z
Python Script Tools/18.0 Create Dataframe And Store It In a CSV.py
juan1305/0.11-incremento_descremento
954ddb32180c3197e5b01cf95d20f5325ada8a29
[ "MIT" ]
null
null
null
Python Script Tools/18.0 Create Dataframe And Store It In a CSV.py
juan1305/0.11-incremento_descremento
954ddb32180c3197e5b01cf95d20f5325ada8a29
[ "MIT" ]
null
null
null
import pandas as pd # Crear diccionario donde key sera columna a crear # y su valuela informacion de cada columna data = {'paises': ['Mexico', 'Espaa', 'Estados Unidos'], 'Ciudades': ['Monterrey,' 'Madrid', 'Nueva York'], 'Casos': [4291, 3829, 10283]} # Crear un DataFrame pasando el diccioario y # sealizar la...
27.444444
64
0.700405
import pandas as pd # Crear diccionario donde key sera columna a crear # y su valuela informacion de cada columna data = {'paises': ['Mexico', 'España', 'Estados Unidos'], 'Ciudades': ['Monterrey,' 'Madrid', 'Nueva York'], 'Casos': [4291, 3829, 10283]} # Crear un DataFrame pasando el diccioario y # señalizar ...
4
0
0
0
0
0
0
0
0
d3b313c3dd0ec4a73ea6c33bd5b776e0285a4fc6
30,581
py
Python
pxr/usd/usdLux/testenv/testUsdLuxLight.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
1
2021-09-25T12:49:37.000Z
2021-09-25T12:49:37.000Z
pxr/usd/usdLux/testenv/testUsdLuxLight.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
null
null
null
pxr/usd/usdLux/testenv/testUsdLuxLight.py
yurivict/USD
3b097e3ba8fabf1777a1256e241ea15df83f3065
[ "Apache-2.0" ]
1
2018-10-03T19:08:33.000Z
2018-10-03T19:08:33.000Z
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
48.083333
82
0.632059
#!/pxrpythonsubst # # Copyright 2017 Pixar # # Licensed under the Apache License, Version 2.0 (the "Apache License") # with the following modification; you may not use this file except in # compliance with the Apache License and the following modification to it: # Section 6. Trademarks. is deleted and replaced with: # ...
0
0
0
29,301
0
0
0
55
46
0e80c9e7dca15d7cd5266e3c0a1290507d1a7a09
3,801
py
Python
scripts/fix_rttm.py
sehgal-simran/RPNSD
5ec70d11e3d177fb87a8499b63cd1c5ba60549b6
[ "MIT" ]
59
2020-02-19T11:23:14.000Z
2022-02-06T09:31:32.000Z
scripts/fix_rttm.py
yuzhms/RPNSD
031377388cb498c0dee080a76bd588a9ee8b39e0
[ "MIT" ]
11
2020-03-05T10:23:43.000Z
2021-10-11T02:15:28.000Z
scripts/fix_rttm.py
yuzhms/RPNSD
031377388cb498c0dee080a76bd588a9ee8b39e0
[ "MIT" ]
13
2020-02-19T02:30:43.000Z
2021-01-13T03:06:42.000Z
#!/usr/bin/env python3 # This script fixes some problems the RTTM file # including invalid time boundaries and others if __name__ == "__main__": main()
36.548077
146
0.594843
#!/usr/bin/env python3 # This script fixes some problems the RTTM file # including invalid time boundaries and others import os import sys import numpy as np import argparse def get_args(): parser = argparse.ArgumentParser( description="Fix RTTM file") parser.add_argument("rttm_file", type=str, ...
0
0
0
0
0
3,448
0
-32
228
78c5929686706d7b4c5c6bb30eecae092b7caa4b
997
py
Python
polymorphism/polymorphism_demos.py
Minkov/python-oop
db9651eef374c0e74c32cb6f2bf07c734cc1d051
[ "MIT" ]
3
2021-11-16T04:52:53.000Z
2022-02-07T20:28:41.000Z
polymorphism/polymorphism_demos.py
Minkov/python-oop
db9651eef374c0e74c32cb6f2bf07c734cc1d051
[ "MIT" ]
null
null
null
polymorphism/polymorphism_demos.py
Minkov/python-oop
db9651eef374c0e74c32cb6f2bf07c734cc1d051
[ "MIT" ]
1
2021-12-07T07:04:38.000Z
2021-12-07T07:04:38.000Z
r = Rect(2, 5) c = Circle(3) shapes: list[Shape] = [ r, c, ] [print_area(s) for s in shapes] print(isinstance(r, Rect)) print(isinstance(r, Circle)) print(isinstance(r, Shape)) # print_area(2) print(Rect.mro()) Person().say_hello()
16.616667
50
0.608826
import math class Shape: def area(self): pass class Rect(Shape): def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height class Circle(Shape): def __init__(self, radius): self.radius = radius...
0
0
0
404
0
215
0
-10
137