hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
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
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
24a9de62a34b58dfc19d30bea2ba3cdb517e09ee
944
py
Python
data_structures/Stack/stack/Python/stack.py
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
data_structures/Stack/stack/Python/stack.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
data_structures/Stack/stack/Python/stack.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
'''This code is written MTH Junaidi github: Miranjunaidi on 26th Oct 2019 at 7:15 PM IST''' #POP function removes the last element of the list #push function adds a new number num to the list at the end. #print function prints all the element of the stack sequestially #This is where the main funtions start print("\n...
29.5
98
0.635593
24aa08a1924956fa17aa4dbec0f66deb43113a38
1,390
py
Python
core/utils.py
kasittig/advent_of_code
e536bfbe0a9a05cbee2b9c241bc2fea78db4ee27
[ "MIT" ]
null
null
null
core/utils.py
kasittig/advent_of_code
e536bfbe0a9a05cbee2b9c241bc2fea78db4ee27
[ "MIT" ]
1
2021-12-18T03:11:27.000Z
2021-12-18T03:11:27.000Z
core/utils.py
kasittig/advent_of_code
e536bfbe0a9a05cbee2b9c241bc2fea78db4ee27
[ "MIT" ]
null
null
null
import os from collections import defaultdict from typing import Any, Dict, Iterable, List, Set, Union
27.8
75
0.67554
24aa1693d704342ab69d496de49e45c690120868
426
py
Python
apps/lotus_auth/urls.py
sunmoon11/apilotus_django
115e9d0800751018f41ae8b9d85331d861126fd2
[ "Apache-2.0" ]
null
null
null
apps/lotus_auth/urls.py
sunmoon11/apilotus_django
115e9d0800751018f41ae8b9d85331d861126fd2
[ "Apache-2.0" ]
3
2019-12-04T22:21:46.000Z
2020-05-09T18:57:24.000Z
apps/lotus_auth/urls.py
zaza316614/apilotus_django
115e9d0800751018f41ae8b9d85331d861126fd2
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from lotus_auth import forms from django.contrib.auth import views as django_auth_views from lotus_auth import views as lotus_auth_views urlpatterns = [ # MWC Custom Auth Views url(r'^login/$', lotus_auth_views.login, { 'template_name': 'lotus_auth/login.ht...
28.4
64
0.706573
24aa16e48945bcc9cda497360276a9d7973aafa9
5,165
py
Python
server.py
Protozzzer/works
2e4ee1443ff8289eabde3c85024037cefba47ea2
[ "Unlicense" ]
null
null
null
server.py
Protozzzer/works
2e4ee1443ff8289eabde3c85024037cefba47ea2
[ "Unlicense" ]
null
null
null
server.py
Protozzzer/works
2e4ee1443ff8289eabde3c85024037cefba47ea2
[ "Unlicense" ]
null
null
null
# -*- coding: cp1251 -* import socket import time import sys from PyQt5 import QtWidgets from threading import Thread from PyQt5 import QtCore from PyQt5.QtWidgets import (QVBoxLayout, QSplitter, QTextEdit, QWidget) from PyQt5.QtGui import QTextCursor import MySQLdb if __name__ == '__main__': app = QtWidgets.Q...
38.544776
128
0.548112
24aa7d31a941bbe6faa5d7383cec1739d90b532d
2,147
py
Python
lib/ansibledocgen/cli.py
Ymil/ansible-docgen
a69dc8b067861b5a365d6086526d49f3cebfcfc0
[ "MIT" ]
null
null
null
lib/ansibledocgen/cli.py
Ymil/ansible-docgen
a69dc8b067861b5a365d6086526d49f3cebfcfc0
[ "MIT" ]
null
null
null
lib/ansibledocgen/cli.py
Ymil/ansible-docgen
a69dc8b067861b5a365d6086526d49f3cebfcfc0
[ "MIT" ]
null
null
null
""" Command Line Interface Module """ import optparse import sys import os from ansibledocgen.parser.dir import DirParser from ansibledocgen.formatter.markup import MarkupFormatter
37.666667
85
0.552399
24acf2037e2804da3c6e1f82c0c898b338afaf0e
4,067
py
Python
reclass/storage/tests/test_memcache_proxy.py
scivisum/reclass
71608ae3999a549d5e1efd4520cd2ad6a3b2b554
[ "Artistic-2.0" ]
54
2017-09-18T12:38:11.000Z
2022-03-06T03:53:52.000Z
reclass/storage/tests/test_memcache_proxy.py
scivisum/reclass
71608ae3999a549d5e1efd4520cd2ad6a3b2b554
[ "Artistic-2.0" ]
47
2017-09-13T07:45:46.000Z
2020-12-03T10:00:25.000Z
reclass/storage/tests/test_memcache_proxy.py
scivisum/reclass
71608ae3999a549d5e1efd4520cd2ad6a3b2b554
[ "Artistic-2.0" ]
24
2017-08-17T10:11:34.000Z
2021-06-28T09:57:45.000Z
# # -*- coding: utf-8 -*- # # This file is part of reclass (http://github.com/madduck/reclass) # # Copyright 200714 martin f. krafft <madduck@madduck.net> # Released under the terms of the Artistic Licence 2.0 # from __future__ import absolute_import from __future__ import division from __future__ import print_functio...
43.265957
105
0.69191
24ad6804391b45a64a697c4d8ac8b9f9ab067809
780
py
Python
reports-service/app/main.py
ethru/northwind_psql
837c5137e753deb2ee5483a10a51f8c2b66377d1
[ "MS-PL" ]
null
null
null
reports-service/app/main.py
ethru/northwind_psql
837c5137e753deb2ee5483a10a51f8c2b66377d1
[ "MS-PL" ]
null
null
null
reports-service/app/main.py
ethru/northwind_psql
837c5137e753deb2ee5483a10a51f8c2b66377d1
[ "MS-PL" ]
null
null
null
from fastapi import FastAPI from elasticapm.contrib.starlette import ElasticAPM from starlette_exporter import PrometheusMiddleware, handle_metrics from app.api import database, engine, metadata from app.api.auth import session from app.api.reports import reports, apm metadata.create_all(engine) app = FastAPI(openap...
26
84
0.785897
24aed837d0532b684b7fafa445f36bb47a201801
1,904
py
Python
missing_strat/inference/decomposition.py
tritas/missing_strat
79abbcadfc8d2074f05f7e72de4f7d454a847a9c
[ "BSD-3-Clause" ]
null
null
null
missing_strat/inference/decomposition.py
tritas/missing_strat
79abbcadfc8d2074f05f7e72de4f7d454a847a9c
[ "BSD-3-Clause" ]
null
null
null
missing_strat/inference/decomposition.py
tritas/missing_strat
79abbcadfc8d2074f05f7e72de4f7d454a847a9c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 15 16:20:49 2016 @author: Philippe """ import numpy as np from scipy.sparse.linalg import svds from functools import partial def em_svd(Y, k=None, tol=1e-3, maxiter=None): """ Approximate SVD on data with missing values via expectation-maximization Paramet...
27.2
76
0.601366
24b03fa844ab8c0271326cc441a68fa308092476
862
py
Python
picraftzero/providers/motor/piconzero.py
WayneKeenan/picraftzero
68ebf94ae2bea04e8bfb06e333ddaa21783fd6c8
[ "MIT" ]
19
2017-06-14T09:44:17.000Z
2022-01-13T10:46:39.000Z
picraftzero/providers/motor/piconzero.py
WayneKeenan/picraftzero
68ebf94ae2bea04e8bfb06e333ddaa21783fd6c8
[ "MIT" ]
63
2017-06-01T12:10:10.000Z
2018-09-10T15:39:06.000Z
picraftzero/providers/motor/piconzero.py
WayneKeenan/picraftzero
68ebf94ae2bea04e8bfb06e333ddaa21783fd6c8
[ "MIT" ]
5
2017-06-20T17:27:14.000Z
2021-03-25T15:36:32.000Z
from picraftzero.log import logger from picraftzero.interfaces.hardware.providers import MotorProvider from picraftzero.utils import constrain from picraftzero.utils import dedupe from picraftzero.thirdparty import piconzero as pz
21.55
67
0.646172
24b05ec839f0838d72624fea140291ea0a77d8e1
500
py
Python
Resources/books/deep_learning_time_series_forecasting/code/chapter_11/02_average_forecast.py
gdepalma93/bright-athlete-academy
54ba0cc6633637c1bd6d90120153e04b981244bf
[ "MIT" ]
null
null
null
Resources/books/deep_learning_time_series_forecasting/code/chapter_11/02_average_forecast.py
gdepalma93/bright-athlete-academy
54ba0cc6633637c1bd6d90120153e04b981244bf
[ "MIT" ]
null
null
null
Resources/books/deep_learning_time_series_forecasting/code/chapter_11/02_average_forecast.py
gdepalma93/bright-athlete-academy
54ba0cc6633637c1bd6d90120153e04b981244bf
[ "MIT" ]
null
null
null
# example of an average forecast from numpy import mean from numpy import median # one-step average forecast # define dataset data = [10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 90.0, 100.0] print(data) # test naive forecast for i in range(1, len(data)+1): print(average_forecast(data, (i, 'mean')))
26.315789
68
0.698
24b13fa559addca55ce38ea69c4da466906d7ac6
477
py
Python
composer/algorithms/cutout/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
2
2022-03-17T04:48:04.000Z
2022-03-20T09:06:19.000Z
composer/algorithms/cutout/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
null
null
null
composer/algorithms/cutout/__init__.py
jacobfulano/composer
4ad81df2d2ca6e5f0b4922bb2db750cd76ba34e8
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 MosaicML. All Rights Reserved. from composer.algorithms.cutout.cutout import CutOut as CutOut from composer.algorithms.cutout.cutout import CutOutHparams as CutOutHparams from composer.algorithms.cutout.cutout import cutout as cutout _name = 'CutOut' _class_name = 'CutOut' _functional = 'cutout' _tld...
34.071429
76
0.78826
24b371766deb53493ed64d08185d0fc630fffb96
1,191
py
Python
genius/word.py
duanhongyi/genius
1bb8a8facd786c59405eb1df982a2f86d7934d61
[ "BSD-2-Clause" ]
204
2015-01-03T14:00:24.000Z
2022-01-14T13:25:16.000Z
genius/word.py
Liweiyanm/genius
1bb8a8facd786c59405eb1df982a2f86d7934d61
[ "BSD-2-Clause" ]
5
2017-08-18T03:08:48.000Z
2018-12-27T07:51:56.000Z
genius/word.py
Liweiyanm/genius
1bb8a8facd786c59405eb1df982a2f86d7934d61
[ "BSD-2-Clause" ]
63
2015-04-08T17:25:24.000Z
2022-02-10T08:18:32.000Z
#encoding:utf-8 import six from genius.tools import StringHelper
25.891304
61
0.555835
24b56efa9d500dcf0b06602f9619ff3fe9fa427e
1,462
py
Python
stations/heathen/models.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/models.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
stations/heathen/models.py
boyombo/django-stations
93a70be7eb8268f9d48f6e3cf9a532bcb27ff895
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models
27.074074
68
0.683311
24b9c10a0c8dd0aa24e9fa4c47c3053ceaf8be37
3,610
py
Python
sumo/tests/netedit/additionalElements/chargingstation/create/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/netedit/additionalElements/chargingstation/create/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
null
null
null
sumo/tests/netedit/additionalElements/chargingstation/create/test.sikuli/test.py
iltempe/osmosi
c0f54ecdbb7c7b5602d587768617d0dc50f1d75d
[ "MIT" ]
2
2017-12-14T16:41:59.000Z
2020-10-16T17:51:27.000Z
#!/usr/bin/env python """ @file test.py @author Pablo Alvarez Lopez @date 2016-11-25 @version $Id$ python script used by sikulix for testing netedit SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/ Copyright (C) 2009-2017 DLR/TS, Germany This file is part of SUMO. SUMO is free software; you can red...
26.940299
76
0.789474
24babe270e3cb016bf9a05e1484aec6a6bfc25c7
360
py
Python
nlputils/subset.py
shaun-russell/nlp
5d6a80ce146b4904dc8bc49d8353da85957b74eb
[ "MIT" ]
1
2018-11-19T00:19:11.000Z
2018-11-19T00:19:11.000Z
nlputils/subset.py
shaun-russell/nlp
5d6a80ce146b4904dc8bc49d8353da85957b74eb
[ "MIT" ]
null
null
null
nlputils/subset.py
shaun-russell/nlp
5d6a80ce146b4904dc8bc49d8353da85957b74eb
[ "MIT" ]
null
null
null
''' Extract a subset of lines from a file. ''' import random
24
69
0.713889
24bdbfaa7f1f765ba8654015611f4aa1bebb433a
2,005
py
Python
SLClassifier/RepLoader.py
zhangrenyuuchicago/AdvReg4Intpltn
e6ce5a4db8213f0b6e7ba30f3f82375044c8dab0
[ "MIT" ]
null
null
null
SLClassifier/RepLoader.py
zhangrenyuuchicago/AdvReg4Intpltn
e6ce5a4db8213f0b6e7ba30f3f82375044c8dab0
[ "MIT" ]
null
null
null
SLClassifier/RepLoader.py
zhangrenyuuchicago/AdvReg4Intpltn
e6ce5a4db8213f0b6e7ba30f3f82375044c8dab0
[ "MIT" ]
null
null
null
import torch import torch.utils.data import numpy as np import csv import random import scvi import scanpy as sc import json from collections import Counter import json import os
26.733333
60
0.558105
24bddb341b044ae3fa62fcdfa2048a65f4b08738
1,091
py
Python
MatplotlibView.py
thekoc/ginkgo-sql-gui
f5f2523df42d505ffdc06b3a1b80dba4181c7b83
[ "Apache-2.0" ]
null
null
null
MatplotlibView.py
thekoc/ginkgo-sql-gui
f5f2523df42d505ffdc06b3a1b80dba4181c7b83
[ "Apache-2.0" ]
null
null
null
MatplotlibView.py
thekoc/ginkgo-sql-gui
f5f2523df42d505ffdc06b3a1b80dba4181c7b83
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -* import wx import matplotlib matplotlib.use("WxAgg") from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wx import NavigationToolbar2Wx from matplotlib.figure import Figure if __name__ == '__main__': app = wx.App() frame = wx.F...
30.305556
79
0.670027
24be2797fcd66e9b0985981bbaefcaaccc754cde
3,608
py
Python
examples/export_create_tables.py
danicarrion/carto-python
631b018f065960baa35473e2087ce598560b9e17
[ "BSD-3-Clause" ]
85
2016-08-07T16:46:58.000Z
2022-03-23T01:44:02.000Z
examples/export_create_tables.py
danicarrion/carto-python
631b018f065960baa35473e2087ce598560b9e17
[ "BSD-3-Clause" ]
109
2016-08-02T18:40:04.000Z
2021-08-23T08:08:02.000Z
examples/export_create_tables.py
danicarrion/carto-python
631b018f065960baa35473e2087ce598560b9e17
[ "BSD-3-Clause" ]
29
2016-11-29T03:42:47.000Z
2022-01-23T17:37:11.000Z
import argparse import os import re import warnings from carto.auth import APIKeyAuthClient from carto.datasets import DatasetManager from carto.sql import SQLClient warnings.filterwarnings('ignore') # set input arguments parser = argparse.ArgumentParser( description='Exports the CREATE TABLE scripts of all the ...
33.719626
97
0.624169
24be8697b54674c0e0b86a367e1a14ca3ae70fb3
669
py
Python
peer.py
hmccreanor/voip
c37ae98f53700c5d17bd8af83dbece1702f0bd10
[ "MIT" ]
null
null
null
peer.py
hmccreanor/voip
c37ae98f53700c5d17bd8af83dbece1702f0bd10
[ "MIT" ]
null
null
null
peer.py
hmccreanor/voip
c37ae98f53700c5d17bd8af83dbece1702f0bd10
[ "MIT" ]
null
null
null
import socket import sys import threading import time import pyaudio recipient = sys.argv[1] inPort = int(sys.argv[2]) outPort = int(sys.argv[3]) inSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) outSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) host = socket.gethostname() inSock.bind((host, inPort...
19.114286
61
0.675635
24bf2e20956de8f312c50f5e50f0efe1c031e2db
10,450
py
Python
CorrNet/main.py
hcji/CorrNet
373c425a3c17ce29ace1e9d9403d8300b3e5d93b
[ "MIT" ]
2
2019-11-28T14:04:19.000Z
2020-09-01T08:59:25.000Z
CorrNet/main.py
hcji/CorrNet
373c425a3c17ce29ace1e9d9403d8300b3e5d93b
[ "MIT" ]
null
null
null
CorrNet/main.py
hcji/CorrNet
373c425a3c17ce29ace1e9d9403d8300b3e5d93b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 13 09:14:27 2019 @author: hcji """ import os os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # cpugpu import numpy as np import keras.backend as K from keras.models import Model from keras.layers import Input, Dense, Add, concatenate, Conv1D, MaxPooling1D, Flatten from keras...
33.928571
101
0.598852
24bf65ebd5def1edf26cf1f3544da9ded8c43a2f
164
py
Python
Python_Exercise/py_exercise.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
Python_Exercise/py_exercise.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
Python_Exercise/py_exercise.py
kindyluv/My_Personal_Python_Exercises
5192ee6ab57c537f0231ee004f06879f14ba2138
[ "MIT" ]
null
null
null
has_high_income = True has_good_credit = True if has_high_income and has_good_credit: print("Eligible for loan") else: print("Ineligible for loan")
20.5
40
0.72561
24c2c16a4acb45ab5b7484cfae6c99888157396c
454
py
Python
monitor/views.py
scsich/phagescan
3394b6a80e62c175b1e10477f58f7b609c399085
[ "Apache-2.0" ]
21
2015-02-03T18:41:23.000Z
2022-03-18T20:16:13.000Z
monitor/views.py
scsich/phagescan
3394b6a80e62c175b1e10477f58f7b609c399085
[ "Apache-2.0" ]
null
null
null
monitor/views.py
scsich/phagescan
3394b6a80e62c175b1e10477f58f7b609c399085
[ "Apache-2.0" ]
6
2015-03-03T11:22:21.000Z
2021-07-18T10:59:15.000Z
from djcelery.models import WorkerState from django.views.generic import ListView import datetime
25.222222
118
0.781938
24c3a238ceec7c76992abc6bdae457799345c1bc
974
py
Python
kaznet/apps/main/serializers/__init__.py
onaio/kaznet-web
53da428d5e62e40c5d38d84c3f3ee06071dd779b
[ "Apache-2.0" ]
1
2019-10-03T12:18:15.000Z
2019-10-03T12:18:15.000Z
kaznet/apps/main/serializers/__init__.py
onaio/kaznet-web
53da428d5e62e40c5d38d84c3f3ee06071dd779b
[ "Apache-2.0" ]
63
2018-10-31T12:57:36.000Z
2020-04-27T20:18:22.000Z
kaznet/apps/main/serializers/__init__.py
onaio/kaznet-web
53da428d5e62e40c5d38d84c3f3ee06071dd779b
[ "Apache-2.0" ]
3
2019-08-05T09:10:03.000Z
2020-01-05T21:24:49.000Z
""" Init module for main serializers """ from kaznet.apps.main.serializers.bounty import BountySerializer # noqa from kaznet.apps.main.serializers.client import ClientSerializer # noqa from kaznet.apps.main.serializers.contenttype import KaznetContentTypeSerializer # noqa from kaznet.apps.main.serializers.locations ...
64.933333
93
0.750513
24c4ffc155dd53d094b28e7625d2fdd8fac1b525
16,095
py
Python
exp2.py
miguelamendez/SignalPerceptron
0e50f1b8e1c7f35675ccd2687f000d6534f70364
[ "MIT" ]
null
null
null
exp2.py
miguelamendez/SignalPerceptron
0e50f1b8e1c7f35675ccd2687f000d6534f70364
[ "MIT" ]
null
null
null
exp2.py
miguelamendez/SignalPerceptron
0e50f1b8e1c7f35675ccd2687f000d6534f70364
[ "MIT" ]
null
null
null
import torch import torchvision.models as models from torch.profiler import profile, record_function, ProfilerActivity from torch.utils.data import DataLoader from torchvision import datasets from torchvision.transforms import ToTensor, Lambda, Compose import matplotlib.pyplot as plt from signal_perceptron import * fro...
42.023499
134
0.555079
24c61967065b81daa7a84b34568d13d782ce537d
418
py
Python
filter_meter_data/xlclass/globals.py
phizzl3/FilterMeterReadData
a057c494a37f613c0d76c18d7349351771b63e08
[ "MIT" ]
1
2021-01-19T16:56:24.000Z
2021-01-19T16:56:24.000Z
filter_meter_data/xlclass/globals.py
phizzl3/FilterMeterReadData
a057c494a37f613c0d76c18d7349351771b63e08
[ "MIT" ]
6
2021-02-28T14:31:57.000Z
2021-03-15T20:23:52.000Z
xlclass/globals.py
phizzl3/xlclass
09859d38e4953608ea0013fcc92b1e4c669bcaf6
[ "MIT" ]
null
null
null
from openpyxl.styles import PatternFill # Color dict for background fill COLORS = {'red': PatternFill(fgColor='FF0000', fill_type='solid'), 'green': PatternFill(fgColor='00b050', fill_type='solid'), 'orange': PatternFill(fgColor='FFC000', fill_type='solid'), 'yellow': PatternFill(fgColor=...
46.444444
69
0.672249
24c8220e8ee9158d4486cc7075172e26d11d35e1
3,847
py
Python
discordSuperUtils/Ban.py
adam757521/discordSuperUtils-splitted
7221cd0461be5311e4c51e93e332bdfaa92ae2b2
[ "MIT" ]
2
2021-09-09T02:56:38.000Z
2021-09-09T03:55:49.000Z
discordSuperUtils/Ban.py
Z1R343L/discord-super-utils
c3b8c224ebe59a5acba1b9069c52cce029fdf9c4
[ "MIT" ]
null
null
null
discordSuperUtils/Ban.py
Z1R343L/discord-super-utils
c3b8c224ebe59a5acba1b9069c52cce029fdf9c4
[ "MIT" ]
null
null
null
from __future__ import annotations import asyncio from datetime import datetime from typing import ( TYPE_CHECKING, Union, Optional ) import discord from .Base import DatabaseChecker from .Punishments import Punisher if TYPE_CHECKING: from .Punishments import Punishment from discord.ext import c...
34.348214
119
0.597089
24c8d1c38168585d44647b43e92ca82459971f90
1,198
py
Python
pages/choices.py
periclescy/research-qre
7fafbc7120235fe6cb75a2f5477922d813c31066
[ "OLDAP-2.3" ]
null
null
null
pages/choices.py
periclescy/research-qre
7fafbc7120235fe6cb75a2f5477922d813c31066
[ "OLDAP-2.3" ]
null
null
null
pages/choices.py
periclescy/research-qre
7fafbc7120235fe6cb75a2f5477922d813c31066
[ "OLDAP-2.3" ]
null
null
null
# languages = [ # ("EL", "EL"), # ("EN", "EN"), # ] # gender = [ # ("", "---"), # ("M", " / Male"), # ("F", " / Female"), # ] # # age = [ # ("", "---"), # ("u17", "-17"), # ("18-25", "18-25"), # ("26-35", "26-35"), # ("36-45", "36-45"), # ("46-54", "46-54"), # ("55-64", ...
22.185185
52
0.413189
24c94333f1c59b0fa2a2847c041b962bdb757ab4
2,393
py
Python
mogp_emulator/demos/kdr_demos.py
EXAUQ/mogp-emulator
9d5772135498bdf5b95b44b4afb065c2c266f899
[ "MIT" ]
21
2021-01-20T07:02:12.000Z
2022-03-30T21:09:04.000Z
mogp_emulator/demos/kdr_demos.py
EXAUQ/mogp-emulator
9d5772135498bdf5b95b44b4afb065c2c266f899
[ "MIT" ]
114
2019-04-25T14:53:11.000Z
2021-01-06T17:07:41.000Z
mogp_emulator/demos/kdr_demos.py
EXAUQ/mogp-emulator
9d5772135498bdf5b95b44b4afb065c2c266f899
[ "MIT" ]
8
2021-02-02T08:56:12.000Z
2022-02-15T10:03:15.000Z
import mogp_emulator import numpy as np # simple Dimension Reduction examples # simulator function -- returns a single "important" dimension from # at least 4 inputs # Experimental design -- create a design with 5 input parameters # all uniformly distributed over [0,1]. ed = mogp_emulator.LatinHypercubeDesign(5) #...
29.182927
83
0.654409
24cca9f21eb5116206ddd39d59a3fddcfc62889a
2,909
py
Python
app.py
JFEscobarM/Proyecto_final
a3d822f44c367d28f2910f1300ff5fddb4712bdb
[ "MIT" ]
null
null
null
app.py
JFEscobarM/Proyecto_final
a3d822f44c367d28f2910f1300ff5fddb4712bdb
[ "MIT" ]
null
null
null
app.py
JFEscobarM/Proyecto_final
a3d822f44c367d28f2910f1300ff5fddb4712bdb
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, session from flask_mysqldb import MySQL,MySQLdb from os import path from notifypy import Notify app = Flask(__name__) app.config['MYSQL_HOST'] = 'localhost' app.config['MYSQL_USER'] = 'root' app.config['MYSQL_PASSWORD'] = '' app.config['MYSQL_D...
30.946809
127
0.603644
24ccdeca70d2927d3661847354b85295b67ae60e
1,751
py
Python
model/table2tsv.py
liziwl/Bugine
7787a45c33bc061f4cbdb07ddaaf369f3b3934fc
[ "Apache-2.0" ]
2
2020-03-20T07:53:08.000Z
2020-07-06T03:41:23.000Z
model/table2tsv.py
liziwl/Bugine
7787a45c33bc061f4cbdb07ddaaf369f3b3934fc
[ "Apache-2.0" ]
null
null
null
model/table2tsv.py
liziwl/Bugine
7787a45c33bc061f4cbdb07ddaaf369f3b3934fc
[ "Apache-2.0" ]
1
2020-04-16T07:51:27.000Z
2020-04-16T07:51:27.000Z
from model import issuedb as idb import os from model import util, work_path __GENERATE__ = False if __GENERATE__: SRC_DIR = 'tsv/' TEST_DIR = 'tsv_test/' TSV_FILE = work_path.in_project('./model/conf/tab_url.tsv') __data_tsv = util.read_tsv(TSV_FILE) if __name__ == '__main__': # generate_lookup_tabl...
27.359375
102
0.631068
24ccf2defe0ea32cf2296c83948d69249f022e2d
318
py
Python
app/main/views.py
team-jinhong-kim/jake-cc-assignment
71c5b0bfe52cbdc947a7bdf7af005b767664b488
[ "MIT" ]
null
null
null
app/main/views.py
team-jinhong-kim/jake-cc-assignment
71c5b0bfe52cbdc947a7bdf7af005b767664b488
[ "MIT" ]
null
null
null
app/main/views.py
team-jinhong-kim/jake-cc-assignment
71c5b0bfe52cbdc947a7bdf7af005b767664b488
[ "MIT" ]
null
null
null
from flask import redirect, render_template, request from . import main
24.461538
62
0.704403
24ce5f9fcb194a70d3a391932da2b7673b304ad3
3,969
py
Python
2_vae_denoiser_data_gen.py
Ladvien/denoising_vae
c61433a41ba69ca305ab1a7b526f8560a70bad4e
[ "MIT" ]
null
null
null
2_vae_denoiser_data_gen.py
Ladvien/denoising_vae
c61433a41ba69ca305ab1a7b526f8560a70bad4e
[ "MIT" ]
null
null
null
2_vae_denoiser_data_gen.py
Ladvien/denoising_vae
c61433a41ba69ca305ab1a7b526f8560a70bad4e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Nov 11 17:27:59 2020 @author: ladvien """ import sys import os import cv2 import numpy as np from random import randint import matplotlib.pyplot as plt image_tools_path = "/home/ladvien/deep_arcane/" sys.path.append(image_tools_path) from image_ut...
26.111842
106
0.581759
24ce86290dd9ae95c3b2fcc0924528d2a8404299
2,462
py
Python
.circleci/txt2md.py
pamd/cimr-d-test
dd7005b40e7a1298d004d293de4f30b2c7b58caa
[ "CC-BY-4.0" ]
null
null
null
.circleci/txt2md.py
pamd/cimr-d-test
dd7005b40e7a1298d004d293de4f30b2c7b58caa
[ "CC-BY-4.0" ]
null
null
null
.circleci/txt2md.py
pamd/cimr-d-test
dd7005b40e7a1298d004d293de4f30b2c7b58caa
[ "CC-BY-4.0" ]
1
2019-02-18T13:10:03.000Z
2019-02-18T13:10:03.000Z
"""This script generates README.md based on s3_list.txt. If an S3 object's parent folder(s) doesn't exist, this script will be smart enough to create the parent folder(s) as separate items in output MD file. """ TXT_FILENAME = "processed/s3_list.txt" MD_FILENAME = "processed/README.md" def get_md_name(s3_name): "...
35.681159
78
0.616166
24d0811f8a1918258a94d40c8fda26282de53c17
1,644
py
Python
_app/cantiin/filters.py
OmarThinks/cantiin_django
3c80ba0aa1b6a92d232b1147e217a0d6ac8fc834
[ "MIT" ]
1
2021-08-17T21:27:32.000Z
2021-08-17T21:27:32.000Z
_app/cantiin/filters.py
OmarThinks/cantiin_django
3c80ba0aa1b6a92d232b1147e217a0d6ac8fc834
[ "MIT" ]
null
null
null
_app/cantiin/filters.py
OmarThinks/cantiin_django
3c80ba0aa1b6a92d232b1147e217a0d6ac8fc834
[ "MIT" ]
null
null
null
from django_filters import rest_framework as filters from accounts.models import (User) from cantiin.models import (Product, Order, Comment) from my_functions.filters_mixins import (DateTimeFilter, IdFilter) from accounts.models import (User) from django.db.models import Q # https://stackoverflow.com/a/57270647/148...
26.95082
71
0.765207
24d39243e750a7c57ab69e5cfb997c5cb9428072
1,547
py
Python
src/point_cloud_merger.py
kmtz-project/robot-simulator
8725ebf26aa5e456083fe641194f433c1a16566e
[ "MIT" ]
null
null
null
src/point_cloud_merger.py
kmtz-project/robot-simulator
8725ebf26aa5e456083fe641194f433c1a16566e
[ "MIT" ]
null
null
null
src/point_cloud_merger.py
kmtz-project/robot-simulator
8725ebf26aa5e456083fe641194f433c1a16566e
[ "MIT" ]
null
null
null
import numpy as np
34.377778
76
0.571429
24d41b9984794f90bfe975ad6ef0215df1d22709
226
py
Python
day4.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day4.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
day4.py
impractical101/LeetCode-30--June
5420685a151e5561f54e7f1a0b699015050f75c2
[ "MIT" ]
null
null
null
#Submitted by thr3sh0ld #Logic: Swap half the length of string with the other half
37.666667
58
0.606195
24d83a8fcd0daec9678d67335df10e1f6785c922
2,659
py
Python
Seven/script.py
tbjoern/adventofcode
3fb8b4e18f03825c448d8935ab39b8bf08202d90
[ "MIT" ]
null
null
null
Seven/script.py
tbjoern/adventofcode
3fb8b4e18f03825c448d8935ab39b8bf08202d90
[ "MIT" ]
null
null
null
Seven/script.py
tbjoern/adventofcode
3fb8b4e18f03825c448d8935ab39b8bf08202d90
[ "MIT" ]
null
null
null
TLS = TLSParser() SSL = SSLParser() output = 0 with open("input.txt", "r") as f: for line in f: for c in line: TLS.addChar(c) SSL.addChar(c) if SSL.endSequence(): output += 1 print output
19.992481
155
0.579541
24d907fd34d41b9eae0d2f44c555b225bcd543cc
907
py
Python
p004_test.py
pbgnz/project-euler
8ab4549101f7a3ac2a478eb6193b2b67920c8102
[ "MIT" ]
null
null
null
p004_test.py
pbgnz/project-euler
8ab4549101f7a3ac2a478eb6193b2b67920c8102
[ "MIT" ]
1
2021-04-13T12:47:07.000Z
2021-04-14T20:27:04.000Z
p004_test.py
escobot/project-euler
8ab4549101f7a3ac2a478eb6193b2b67920c8102
[ "MIT" ]
null
null
null
import unittest from p004 import solution, is_palindrome if __name__ == '__main__': unittest.main()
25.914286
55
0.713341
24db619b9ab62e0704e7b2bae615ad627530f3d6
1,097
py
Python
findost/foundation/log.py
BongOST/FindOST
bef3c8991b7494ad08c06ed1c9fb0bc41996ec8b
[ "Apache-2.0" ]
1
2017-11-12T03:10:25.000Z
2017-11-12T03:10:25.000Z
findost/foundation/log.py
BongOST/FindOST
bef3c8991b7494ad08c06ed1c9fb0bc41996ec8b
[ "Apache-2.0" ]
null
null
null
findost/foundation/log.py
BongOST/FindOST
bef3c8991b7494ad08c06ed1c9fb0bc41996ec8b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding:utf-8 -*- __author__ = 'LexusLee' """ threading.Thread """ import logging.config import os import yaml from foundation import const BASE_DIR = os.path.dirname(__file__) if const.env == "development": log_config_path = os.path.abspath(os.path.join(BASE_DIR, os.pardir, 'confi...
36.566667
118
0.759344
24dd3da7f5133aac9176f92bd1db427450396bd2
1,509
py
Python
sweat/io/generic.py
GoldenCheetah/sweatpy
eed6b34ff75c16fcbad878caded8ee4d18dea589
[ "MIT" ]
58
2018-03-10T08:26:10.000Z
2022-03-20T11:23:50.000Z
sweat/io/generic.py
GoldenCheetah/sweatpy
eed6b34ff75c16fcbad878caded8ee4d18dea589
[ "MIT" ]
19
2018-03-10T13:09:49.000Z
2022-03-18T10:31:19.000Z
sweat/io/generic.py
GoldenCheetah/sweatpy
eed6b34ff75c16fcbad878caded8ee4d18dea589
[ "MIT" ]
20
2018-03-09T19:16:15.000Z
2022-03-08T00:21:38.000Z
from pathlib import Path from typing import Generator, Union import pandas as pd from .fit import read_fit from .gpx import read_gpx from .tcx import read_tcx def read_file(fpath: Union[str, Path], *args, **kwargs) -> pd.DataFrame: """This method tries to recognize the file type of the fpath argument by reading...
26.946429
122
0.656064
24de9ab8b2a618abe1a2446b71c946a46ce2cf44
5,542
py
Python
python/import_gnomad_vep.py
mkanai/slalom-paper
3d96b1778bdb3d91ac7bf70667460a88c2db530a
[ "MIT" ]
null
null
null
python/import_gnomad_vep.py
mkanai/slalom-paper
3d96b1778bdb3d91ac7bf70667460a88c2db530a
[ "MIT" ]
null
null
null
python/import_gnomad_vep.py
mkanai/slalom-paper
3d96b1778bdb3d91ac7bf70667460a88c2db530a
[ "MIT" ]
null
null
null
import argparse import hail as hl from gnomad.utils.vep import ( process_consequences, filter_vep_to_canonical_transcripts, get_most_severe_consequence_for_summary, CSQ_CODING_HIGH_IMPACT, CSQ_CODING_MEDIUM_IMPACT, CSQ_CODING_LOW_IMPACT, CSQ_NON_CODING, ) from hail.genetics import reference...
41.358209
136
0.690184
24df5f944ef32039cea2fd9aa8fbbb72111acef6
96
py
Python
django/AIST_survey/apps.py
aistairc/voteclustering_aist
f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c
[ "MIT" ]
null
null
null
django/AIST_survey/apps.py
aistairc/voteclustering_aist
f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c
[ "MIT" ]
null
null
null
django/AIST_survey/apps.py
aistairc/voteclustering_aist
f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c
[ "MIT" ]
null
null
null
from django.apps import AppConfig
16
34
0.770833
24dfeb32f732cda7cc1bd5475ac2eba78563c4bb
1,196
py
Python
tests/tools.py
tkonopka/crossmap
237e4319a77281490c4e037918977230fea43d7e
[ "MIT" ]
1
2021-08-12T11:40:10.000Z
2021-08-12T11:40:10.000Z
tests/tools.py
tkonopka/crossmap
237e4319a77281490c4e037918977230fea43d7e
[ "MIT" ]
null
null
null
tests/tools.py
tkonopka/crossmap
237e4319a77281490c4e037918977230fea43d7e
[ "MIT" ]
null
null
null
""" Helper functions used within the test suite """ import glob from contextlib import suppress from os import environ, remove, rmdir from os.path import join, exists from pymongo import MongoClient def remove_file(files): """remove a single file if it exists.""" for f in files: if exists(f): ...
27.813953
78
0.686455
24e0d8bb228a1463b6f322f96fa9e6a037f16d36
1,464
py
Python
test/proxy_AccountPWD.py
bianQ/similarweb
3df31af1267a285d0bc6adf720409ceb43eb56cb
[ "MIT" ]
null
null
null
test/proxy_AccountPWD.py
bianQ/similarweb
3df31af1267a285d0bc6adf720409ceb43eb56cb
[ "MIT" ]
null
null
null
test/proxy_AccountPWD.py
bianQ/similarweb
3df31af1267a285d0bc6adf720409ceb43eb56cb
[ "MIT" ]
null
null
null
import _thread import time import requests headers = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_3 like Mac OS X) AppleWebKit/603.3.8 (KHTML, like Gecko) Mobile/14G60 MicroMessenger/6.5.19 NetType/4...
24.4
178
0.592213
24e0f61f5197a6897882718461de8c1a5db52307
2,150
py
Python
IPython/core/tests/test_application.py
ivanov/ipython
62cc379d3b454923cb48e94663f385f54ec806cc
[ "BSD-3-Clause-Clear" ]
2
2015-04-21T12:12:43.000Z
2015-04-21T12:12:54.000Z
IPython/core/tests/test_application.py
ivanov/ipython
62cc379d3b454923cb48e94663f385f54ec806cc
[ "BSD-3-Clause-Clear" ]
1
2015-07-16T22:26:53.000Z
2015-07-16T22:26:53.000Z
IPython/core/tests/test_application.py
ivanov/ipython
62cc379d3b454923cb48e94663f385f54ec806cc
[ "BSD-3-Clause-Clear" ]
null
null
null
# coding: utf-8 """Tests for IPython.core.application""" import os import tempfile from IPython.core.application import Application def test_unicode_cwd(): """Check that IPython starts with non-ascii characters in the path.""" wd = tempfile.mkdtemp(suffix=u"") old_wd = os.getcwdu() os.chdir(wd) ...
31.15942
77
0.648372
24e2ecbea1b137afbbe27a88d7fa408842091b46
1,131
py
Python
examples/scripts/flatten.py
bcdev/nc2zarr
4ba4829d78c4bda593515685729d32baa83cabc2
[ "MIT" ]
5
2021-01-08T14:16:31.000Z
2021-09-13T04:56:40.000Z
examples/scripts/flatten.py
bcdev/nc2zarr
4ba4829d78c4bda593515685729d32baa83cabc2
[ "MIT" ]
42
2021-01-06T11:01:12.000Z
2022-03-04T15:46:15.000Z
examples/scripts/flatten.py
bcdev/nc2zarr
4ba4829d78c4bda593515685729d32baa83cabc2
[ "MIT" ]
2
2020-12-28T08:51:27.000Z
2021-08-13T12:46:04.000Z
#!/usr/bin/env python3 """Rechunk a Zarr with chunks of size 1 in time, full size in lat/lon. If s3fs is installed, "s3://..." arguments can be used and credentials will be read from standard environment variables or files (see s3fs docs). The output dataset will have the same data as the input dataset, rechunked so...
29.763158
74
0.709991
24e3a042ebeec94e8e97f8bffee6f4425ba30587
1,056
py
Python
alttprbot_discord/cogs/smvaria.py
compiling/sahasrahbot
24cd1373b4a4e456562750397573f522d0326e13
[ "MIT" ]
null
null
null
alttprbot_discord/cogs/smvaria.py
compiling/sahasrahbot
24cd1373b4a4e456562750397573f522d0326e13
[ "MIT" ]
null
null
null
alttprbot_discord/cogs/smvaria.py
compiling/sahasrahbot
24cd1373b4a4e456562750397573f522d0326e13
[ "MIT" ]
null
null
null
from discord.ext import commands from alttprbot.exceptions import SahasrahBotException from alttprbot.alttprgen.smvaria import generate_preset
27.789474
89
0.63447
24e403742d04ac820900a705be239f8e41ce14fb
4,724
py
Python
algorythmic_heights/scc/scc.py
localmonkey/rosalind
dceab11d4938c1325075988be091abd3a5d25824
[ "MIT" ]
null
null
null
algorythmic_heights/scc/scc.py
localmonkey/rosalind
dceab11d4938c1325075988be091abd3a5d25824
[ "MIT" ]
null
null
null
algorythmic_heights/scc/scc.py
localmonkey/rosalind
dceab11d4938c1325075988be091abd3a5d25824
[ "MIT" ]
null
null
null
#import numpy as np if __name__ == "__main__": with open("rosalind_scc.txt", "r") as f: vertex_quant, edges_quant = map(int, f.readline().strip().split()) grph = MyGrph(vertex_quant, edges_quant) grph.build_graph(f) rslt = grph.scc() print(rslt) with open("scc_answer.txt",...
34.481752
103
0.491956
24e941de480f9fd93454090b5da0fb71dc8afdca
1,193
py
Python
allgemein/test_tastatur.py
kanopus1958/Python
795d0e7c3479032a71e1c1246391772619e1e6ef
[ "MIT" ]
null
null
null
allgemein/test_tastatur.py
kanopus1958/Python
795d0e7c3479032a71e1c1246391772619e1e6ef
[ "MIT" ]
null
null
null
allgemein/test_tastatur.py
kanopus1958/Python
795d0e7c3479032a71e1c1246391772619e1e6ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Programm : test_tastatur.py # Version : 1.01 # SW-Stand : 17.02.2022 # Autor : Kanopus1958 # Beschreibung : Tastur Beispiel in Python from rwm_steuerung import color as c from rwm_mod01 import show_header import platform import sys G_OS = ('Raspbian', 'Debian') G_HEADER_1...
24.854167
71
0.61777
24ed9a457f7b83e0a213c03d5495eef7ad64ec9f
54
py
Python
Flask-todolist-Sqlite3-master/venv/lib/python3.6/sre_constants.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
null
null
null
Flask-todolist-Sqlite3-master/venv/lib/python3.6/sre_constants.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
null
null
null
Flask-todolist-Sqlite3-master/venv/lib/python3.6/sre_constants.py
IncredibleDraco/MyScholar
272aafa33f7227d1bc0d937d046788cbabede453
[ "Apache-2.0" ]
1
2019-11-25T10:25:21.000Z
2019-11-25T10:25:21.000Z
/home/sheldon/anaconda3/lib/python3.6/sre_constants.py
54
54
0.851852
24f0c6c494f81e8ebac822ae3156cf6a71fdea70
197
py
Python
update_ip/services/__init__.py
vishnuprasadnta/update-ip
22992b6ec272ebd4f684392cad11254e463e619c
[ "BSD-3-Clause" ]
null
null
null
update_ip/services/__init__.py
vishnuprasadnta/update-ip
22992b6ec272ebd4f684392cad11254e463e619c
[ "BSD-3-Clause" ]
null
null
null
update_ip/services/__init__.py
vishnuprasadnta/update-ip
22992b6ec272ebd4f684392cad11254e463e619c
[ "BSD-3-Clause" ]
null
null
null
from nfsn import NearlyFreeSpeechService from webfaction import WebFactionService services= [WebFactionService, NearlyFreeSpeechService] services_by_name= dict(((s.__name__,s) for s in services))
32.833333
58
0.84264
24f143f9ddcea556b1cba8c4e100e24aa5b6a03a
2,267
py
Python
minimal/knn/train.py
drstarry/minimal
8c3eac110505d68dabde4d014cd0968392b640f9
[ "MIT" ]
2
2015-09-22T00:57:17.000Z
2016-12-07T02:18:33.000Z
minimal/knn/train.py
drstarry/minimal
8c3eac110505d68dabde4d014cd0968392b640f9
[ "MIT" ]
null
null
null
minimal/knn/train.py
drstarry/minimal
8c3eac110505d68dabde4d014cd0968392b640f9
[ "MIT" ]
null
null
null
# coding: utf-8 import math from const import CUR_FOLDER, FILE_FOLDER, FILE_TRAIN, FEATURE_NUM, K, FOLD, VALUES if __name__ == '__main__': crossvalidation()
29.064103
84
0.584914
24f18b66c7006add174b6858a066253782ef852a
941
py
Python
service.py
DropB1t/ClickerPy
a5142e1afcc27d6e557627dbbf75d8f224213431
[ "MIT" ]
1
2020-09-14T09:35:21.000Z
2020-09-14T09:35:21.000Z
service.py
DropB1t/ClickerPy
a5142e1afcc27d6e557627dbbf75d8f224213431
[ "MIT" ]
null
null
null
service.py
DropB1t/ClickerPy
a5142e1afcc27d6e557627dbbf75d8f224213431
[ "MIT" ]
null
null
null
import socket import struct # Funzione send_names chiede al utente tramite l'input il suo nome da inviare al server
28.515152
87
0.669501
24f20d156732daf62fc69467ac140f84f352da1e
3,586
py
Python
backend/otpvalidation/views.py
beehyv/workforcehealthtracker
ab0f921938e1ee50158c9d2c72a66c534d435eee
[ "Apache-2.0" ]
2
2020-05-10T05:20:04.000Z
2020-05-21T15:29:55.000Z
backend/otpvalidation/views.py
beehyv/workforcehealthtracker
ab0f921938e1ee50158c9d2c72a66c534d435eee
[ "Apache-2.0" ]
null
null
null
backend/otpvalidation/views.py
beehyv/workforcehealthtracker
ab0f921938e1ee50158c9d2c72a66c534d435eee
[ "Apache-2.0" ]
2
2020-05-13T18:21:37.000Z
2020-05-21T15:29:58.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); y...
37.747368
93
0.706637
24f22fdaa93b5ce8be07b713b821e2b5f86f6a5c
12,386
py
Python
tagnet.py
dbxinj/ynet
01dcf26246f673ee0168b8143596ef7994c24418
[ "Apache-2.0" ]
null
null
null
tagnet.py
dbxinj/ynet
01dcf26246f673ee0168b8143596ef7994c24418
[ "Apache-2.0" ]
null
null
null
tagnet.py
dbxinj/ynet
01dcf26246f673ee0168b8143596ef7994c24418
[ "Apache-2.0" ]
null
null
null
import ynet from util import * from singa.layer import Conv2D, Activation, MaxPooling2D, AvgPooling2D, Flatten, Slice, LRN from singa import initializer from singa import layer from singa import loss from singa import tensor import cPickle as pickle import logging import os import numpy as np from numpy.core.umath_te...
43.612676
182
0.631842
24f4cbec86839888431c70ef1f6650f036a88daa
3,691
py
Python
modules/verse.py
Dans-labs/shebanq
e7efffc84bcedcc8c8a21638991fb765b95713df
[ "MIT" ]
null
null
null
modules/verse.py
Dans-labs/shebanq
e7efffc84bcedcc8c8a21638991fb765b95713df
[ "MIT" ]
null
null
null
modules/verse.py
Dans-labs/shebanq
e7efffc84bcedcc8c8a21638991fb765b95713df
[ "MIT" ]
null
null
null
from textwrap import dedent import json from gluon import current from constants import ONE_HOUR from versecontent import VERSECONTENT
29.528
84
0.455161
24f4d24d6c7cdad4b11c864d9e2589522d2bfd09
53,063
py
Python
python/deccheck2.py
faradaynetworks/cdecimal
4be4045f99d13301882b80534d7523374d6eb5ac
[ "BSD-2-Clause" ]
null
null
null
python/deccheck2.py
faradaynetworks/cdecimal
4be4045f99d13301882b80534d7523374d6eb5ac
[ "BSD-2-Clause" ]
null
null
null
python/deccheck2.py
faradaynetworks/cdecimal
4be4045f99d13301882b80534d7523374d6eb5ac
[ "BSD-2-Clause" ]
1
2019-09-26T18:34:24.000Z
2019-09-26T18:34:24.000Z
#!/usr/bin/env python # # Copyright (c) 2008-2010 Stefan Krah. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, t...
33.164375
96
0.585417
24f51f706d59ef12ae7c9778bb46f43394712322
1,362
py
Python
server/api/processing/models/dim_reduction/umap.py
JBris/dolphin_segmentation
b1d22293720c15038d9c521aed8e7b258d8409aa
[ "MIT" ]
1
2021-05-09T05:40:53.000Z
2021-05-09T05:40:53.000Z
server/api/processing/models/dim_reduction/umap.py
JBris/dolphin_segmentation
b1d22293720c15038d9c521aed8e7b258d8409aa
[ "MIT" ]
null
null
null
server/api/processing/models/dim_reduction/umap.py
JBris/dolphin_segmentation
b1d22293720c15038d9c521aed8e7b258d8409aa
[ "MIT" ]
null
null
null
import cv2 import numpy as np from joblib import load as model_load from api.services.file_select import FileTask
33.219512
94
0.687225
24f660253a038a05146b9855744f65f5a06fa0cb
6,099
py
Python
SupportVectorMachine/support_vector_machine.py
DragonYong/Sep-Dragon
674df34a992b449669116c5322596ffc19a21030
[ "MIT" ]
null
null
null
SupportVectorMachine/support_vector_machine.py
DragonYong/Sep-Dragon
674df34a992b449669116c5322596ffc19a21030
[ "MIT" ]
1
2020-09-10T04:05:06.000Z
2020-09-10T04:05:06.000Z
SupportVectorMachine/support_vector_machine.py
DragonYong/Sep-Dragon
674df34a992b449669116c5322596ffc19a21030
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2020/9/9-22:50 # @Author : TuringEmmy # @Email : yonglonggeng@163.com # @WeChat : csy_lgy # @File : support_vector_machine.py # @Project : Sep-Dragon # ************************************************* import numpy as np import pandas as pd from sklearn.datasets import ...
30.959391
110
0.490572
24f6f3452f96ca5836016613b2d46de60f6bab90
2,668
py
Python
plaidml2/exec/__init__.py
winnerineast/plaidml
7a7191507f04f0853fed34cfd471ef76aa6d489f
[ "Apache-2.0" ]
1
2019-09-23T05:50:50.000Z
2019-09-23T05:50:50.000Z
plaidml2/exec/__init__.py
kounkounsito/plaidml
615cfce9dac7a5786a8895feadfd2aa13680d6de
[ "Apache-2.0" ]
null
null
null
plaidml2/exec/__init__.py
kounkounsito/plaidml
615cfce9dac7a5786a8895feadfd2aa13680d6de
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Intel Corporation. import numpy as np import plaidml2 as plaidml import plaidml2.settings as plaidml_settings from plaidml2.ffi import ForeignObject, decode_str, ffi, ffi_call, lib ffi.init_once(__init, 'plaidml_exec_init')
33.772152
92
0.662294
24f6fd0967e1c029cb8eacd64a5cb40e6175ef0b
13,553
py
Python
afs/tests/lla/VolServerLLATest.py
chanke/afspy
525e7b3b53e58be515f11b83cc59ddb0765ef8e5
[ "BSD-2-Clause" ]
null
null
null
afs/tests/lla/VolServerLLATest.py
chanke/afspy
525e7b3b53e58be515f11b83cc59ddb0765ef8e5
[ "BSD-2-Clause" ]
null
null
null
afs/tests/lla/VolServerLLATest.py
chanke/afspy
525e7b3b53e58be515f11b83cc59ddb0765ef8e5
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python """ Unittest for the LLA module VolumeLLA """ from ConfigParser import ConfigParser import datetime import os import sys import time import unittest from afs.tests.BaseTest import parse_commandline import afs.lla.VolServerLLA import afs.lla.VLDBLLA import afs if __name__ == '__main__' : ...
40.822289
98
0.675422
24f6fd157b03fbd91d14ca3cfddf6f92d4bba3b6
548
py
Python
code/sf2.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
16
2019-04-18T13:35:42.000Z
2021-09-05T21:01:06.000Z
code/sf2.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
1
2021-02-15T16:26:00.000Z
2021-02-15T16:26:00.000Z
code/sf2.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
17
2018-09-30T07:35:00.000Z
2021-08-28T19:15:09.000Z
from math import pi, sin if __name__ == '__main__': test()
26.095238
93
0.421533
24f791043bd9796713489db2bdf00e09dbb2fd36
3,831
py
Python
luna_transformer/model.py
sooftware/luna-transformer
fc06b453478dcfd9b7979b70af1b4f4507597891
[ "MIT" ]
26
2021-07-29T18:05:39.000Z
2022-02-04T20:03:13.000Z
luna_transformer/model.py
sooftware/luna-transformer
fc06b453478dcfd9b7979b70af1b4f4507597891
[ "MIT" ]
null
null
null
luna_transformer/model.py
sooftware/luna-transformer
fc06b453478dcfd9b7979b70af1b4f4507597891
[ "MIT" ]
1
2021-07-31T07:30:02.000Z
2021-07-31T07:30:02.000Z
# MIT License # # Copyright (c) 2021 Soohwan Kim # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
40.755319
113
0.708431
24f8fbec9bbb99a029907adb70cb243de5f2d665
28,356
py
Python
sdk/python/pulumi_aws_native/eks/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/eks/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws_native/eks/_inputs.py
AaronFriel/pulumi-aws-native
5621690373ac44accdbd20b11bae3be1baf022d1
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
45.661836
586
0.678481
24f9bb21ea848732645dd95fdfaf8ef61a4a7e4b
6,726
py
Python
nfbackend/testboard_utils.py
neuralfoo/neuralfoo
d40388cd506d612ceee9ae10d92985c794249c65
[ "MIT" ]
2
2022-01-06T08:18:29.000Z
2022-01-06T08:19:09.000Z
nfbackend/testboard_utils.py
neuralfoo/neuralfoo
d40388cd506d612ceee9ae10d92985c794249c65
[ "MIT" ]
null
null
null
nfbackend/testboard_utils.py
neuralfoo/neuralfoo
d40388cd506d612ceee9ae10d92985c794249c65
[ "MIT" ]
null
null
null
import dbops from loguru import logger import traceback from bson.objectid import ObjectId import utils import global_vars as g import fs_utils
26.376471
113
0.610616
24fc99522f8cef361d5310abdeb64520bc477f16
1,308
py
Python
e-threader/mail.py
GammaGames/e-threader
60c028a1e823ecc5ed4d20d15881d73db75e3630
[ "MIT" ]
null
null
null
e-threader/mail.py
GammaGames/e-threader
60c028a1e823ecc5ed4d20d15881d73db75e3630
[ "MIT" ]
null
null
null
e-threader/mail.py
GammaGames/e-threader
60c028a1e823ecc5ed4d20d15881d73db75e3630
[ "MIT" ]
null
null
null
import smtplib import os from os.path import basename from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.utils import COMMASPACE, formatdate GMAIL_USERNAME = client_secret=os.getenv("GMAIL_USERNAME") GMAIL_PASSWORD = client...
29.727273
75
0.674312
24ff234f920bab09fe239546c8831800ee8f0daa
3,968
py
Python
sphinx_lesson/directives.py
robertodr/sphinx-lesson
311a51cd42d85cafad26b76366d7147c326c1759
[ "MIT" ]
null
null
null
sphinx_lesson/directives.py
robertodr/sphinx-lesson
311a51cd42d85cafad26b76366d7147c326c1759
[ "MIT" ]
null
null
null
sphinx_lesson/directives.py
robertodr/sphinx-lesson
311a51cd42d85cafad26b76366d7147c326c1759
[ "MIT" ]
null
null
null
"""Add some sphinx-docutils directives related to lessons. """ # pylint: disable=E701 import os from docutils import nodes from docutils.parsers.rst.directives.admonitions \ import Admonition as AdmonitionDirective from sphinx.util.docutils import SphinxDirective from sphinx.util.logging import getLogger from . im...
34.206897
130
0.681956
24ffa281701166331532a6d684f818550c073997
4,696
py
Python
language/serene/text_matcher.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
1,199
2018-10-16T01:30:18.000Z
2022-03-31T21:05:24.000Z
language/serene/text_matcher.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
116
2018-10-18T03:31:46.000Z
2022-03-24T13:40:50.000Z
language/serene/text_matcher.py
Xtuden-com/language
70c0328968d5ffa1201c6fdecde45bbc4fec19fc
[ "Apache-2.0" ]
303
2018-10-22T12:35:12.000Z
2022-03-27T17:38:17.000Z
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
32.611111
106
0.688671
70000a0effbae8943e38a948112d24880ec73970
1,099
py
Python
setup.py
hulusibaysal/EksiGundem
6b0130a89c0c42b365dea847027ff3e13c4c4240
[ "MIT" ]
null
null
null
setup.py
hulusibaysal/EksiGundem
6b0130a89c0c42b365dea847027ff3e13c4c4240
[ "MIT" ]
null
null
null
setup.py
hulusibaysal/EksiGundem
6b0130a89c0c42b365dea847027ff3e13c4c4240
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from pathlib import Path from setuptools import setup CURRENT_DIR = Path(__file__).parent setup( name="eksi", version="0.0.1", description="Komut satrnda Ekiszlk!", long_description=get_long_description(), long_description_content_type="text/markdo...
26.804878
67
0.658781
70031ea92c28e396deb633661ccd21348ccd84ec
795
py
Python
paths.py
ShuaiW/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
182
2016-03-15T01:51:29.000Z
2021-04-21T09:49:05.000Z
paths.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
1
2018-06-22T16:46:12.000Z
2018-06-22T21:08:09.000Z
paths.py
weidezhang/kaggle-heart
022997f27add953c74af2b371c67d9d86cbdccc3
[ "MIT" ]
61
2016-03-15T00:58:28.000Z
2020-03-06T22:00:41.000Z
"""Module for reading the SETTINGS.json file. """ import json import os with open(os.path.dirname(os.path.realpath(__file__)) + '/SETTINGS.json') as data_file: PATHS = json.load(data_file) TRAIN_DATA_PATH = PATHS["TRAIN_DATA_PATH"] TEST_DATA_PATH = PATHS["VALIDATE_DATA_PATH"] PKL_TRAIN_DATA_PATH = PATHS["PKL_TRA...
34.565217
87
0.8
700529f087345e2c10ecc73eaeb6cb41b5f20690
433
py
Python
debug/debug08.py
adamlukomski/pykron
5e4c4b840af2cf574dab8417a97b7f0fc4080878
[ "BSD-2-Clause" ]
null
null
null
debug/debug08.py
adamlukomski/pykron
5e4c4b840af2cf574dab8417a97b7f0fc4080878
[ "BSD-2-Clause" ]
null
null
null
debug/debug08.py
adamlukomski/pykron
5e4c4b840af2cf574dab8417a97b7f0fc4080878
[ "BSD-2-Clause" ]
null
null
null
# what not to do - use empty function # race conditions may cause it not to finish right away # but the timeout will catch it # UPDATE: solved in d9c4fad import sys sys.path.append('..') from pykron.core import Pykron, PykronLogger import time app = Pykron() logger = PykronLogger.getInstance() result = fun4().w...
16.037037
55
0.727483
7005d5f528431853e55b70e8b2c13f2e752e74a6
8,563
py
Python
(sandbox,tobemerged)/pythongis/vector/(old)/geom_safe.py
karimbahgat/pythongis
1042ea14de4e2aafd55de4e01d86b7d379d55999
[ "MIT" ]
4
2015-12-05T14:31:55.000Z
2018-02-09T05:54:36.000Z
(sandbox,tobemerged)/pythongis/vector/(old)/geom_safe.py
karimbahgat/pythongis
1042ea14de4e2aafd55de4e01d86b7d379d55999
[ "MIT" ]
null
null
null
(sandbox,tobemerged)/pythongis/vector/(old)/geom_safe.py
karimbahgat/pythongis
1042ea14de4e2aafd55de4e01d86b7d379d55999
[ "MIT" ]
1
2018-10-24T01:08:11.000Z
2018-10-24T01:08:11.000Z
import sys, os, itertools, operator import datetime import shapely from shapely.geometry import asShape as geoj2geom from shapely.geometry import mapping as geom2geoj import rtree from . import loader def intersecting(self, bbox): results = self.spindex.intersection(bbox) return ...
30.045614
185
0.564288
70069527a46c915cd2978c2c7d78d1acde10b272
1,970
py
Python
2021/five/day10.py
BenningtonComputing/adventofcode
f162163862e122ac15495e14d138601379fab382
[ "MIT" ]
null
null
null
2021/five/day10.py
BenningtonComputing/adventofcode
f162163862e122ac15495e14d138601379fab382
[ "MIT" ]
null
null
null
2021/five/day10.py
BenningtonComputing/adventofcode
f162163862e122ac15495e14d138601379fab382
[ "MIT" ]
1
2021-12-27T09:31:30.000Z
2021-12-27T09:31:30.000Z
#!/usr/bin/env python3 """ day10-2021.py - my solution to day 10 of advent of code 2021. the link to the problem is: https://adventofcode.com/2021/day/10 use by running `./aoc-day10-2021.py [input]` this code was originally posted here: ...
21.648352
81
0.57868
7006ed71317775974197d8422ff224edfdfa01ac
9,264
py
Python
nxsdk_modules_ncl/epl/src/computeResults.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
54
2020-03-04T17:37:17.000Z
2022-02-22T13:16:10.000Z
nxsdk_modules_ncl/epl/src/computeResults.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
9
2020-08-26T13:17:54.000Z
2021-11-09T09:02:00.000Z
nxsdk_modules_ncl/epl/src/computeResults.py
biagiom/models
79489a3c429b3027dd420840bbccfee5e8c9a879
[ "BSD-3-Clause" ]
26
2020-03-18T17:09:34.000Z
2021-11-22T16:23:14.000Z
# Copyright(c) 2019-2020 Intel Corporation All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of condition...
35.358779
95
0.619603
7007c14a0f8dc8efb9e61a001c85b2fc1dedea08
315
py
Python
main.py
EliseevEgor/Simple-Parser
ab0df998cf777fc04c221cd34a1cb4ecf83cb10a
[ "MIT" ]
null
null
null
main.py
EliseevEgor/Simple-Parser
ab0df998cf777fc04c221cd34a1cb4ecf83cb10a
[ "MIT" ]
null
null
null
main.py
EliseevEgor/Simple-Parser
ab0df998cf777fc04c221cd34a1cb4ecf83cb10a
[ "MIT" ]
null
null
null
import os import uvicorn as uvicorn import telegram_bot import fastAPI_server.start_fast_api as fAPI if __name__ == '__main__': telegram_bot.__init__() ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) fAPI.init_elems(ROOT_DIR) uvicorn.run(fAPI.app, host='0.0.0.0', port=8000, lifespan="on")
24.230769
67
0.739683
70093c19345ca7b163a2cb4f6904b25e16e97891
983
py
Python
Spider.py
yxg995995/yxg
7865cb8bd6fca4d59278365afdb96529a7757386
[ "MIT" ]
null
null
null
Spider.py
yxg995995/yxg
7865cb8bd6fca4d59278365afdb96529a7757386
[ "MIT" ]
null
null
null
Spider.py
yxg995995/yxg
7865cb8bd6fca4d59278365afdb96529a7757386
[ "MIT" ]
null
null
null
import requests import json from DataBase import * #9301500 #9:30, if __name__=='__main__': getmindata()
39.32
102
0.641913
7009af1b31e60c7a799c07d75cb72a9357e77d47
2,135
py
Python
src/pyexpressions/concrete/PyAnnAssign.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
src/pyexpressions/concrete/PyAnnAssign.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
9
2022-02-23T10:32:44.000Z
2022-03-27T17:55:43.000Z
src/pyexpressions/concrete/PyAnnAssign.py
Xiddoc/ComPy
7d26f95209d0615d7eb188fa02470ddae5311fca
[ "MIT" ]
null
null
null
""" Assign an annotation (and possibly a value) to a variable. """ from _ast import AnnAssign, Name from typing import Optional from src.compiler.Util import Util from src.pyexpressions.abstract.PyExpression import PyExpression from src.pyexpressions.concrete.PyName import PyName from src.pyexpressions.highlevel.PyIde...
35
110
0.671194
700adc4ff1b09523fb554fd02562d6b99ea12187
3,941
py
Python
testLogReader/testingUtils.py
simcesplatform/LogReader
eadeb7061df6fccdd0c7845284ab1a85df1bc20c
[ "MIT" ]
null
null
null
testLogReader/testingUtils.py
simcesplatform/LogReader
eadeb7061df6fccdd0c7845284ab1a85df1bc20c
[ "MIT" ]
null
null
null
testLogReader/testingUtils.py
simcesplatform/LogReader
eadeb7061df6fccdd0c7845284ab1a85df1bc20c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2021 Tampere University and VTT Technical Research Centre of Finland # This software was developed as a part of the ProCemPlus project: https://www.senecc.fi/projects/procemplus # This source code is licensed under the MIT license. See LICENSE in the repository root directory. # Auth...
41.484211
119
0.689165
700c2f0c5f5d02e18dff51805b19cfdc82f63425
4,111
py
Python
sqlparse/__init__.py
Yelp/sqlparse
a29c8c1fb827863c6b57d8811ed3b69e982a3877
[ "BSD-3-Clause" ]
4
2015-03-16T17:08:44.000Z
2017-02-21T22:33:18.000Z
sqlparse/__init__.py
Yelp/sqlparse
a29c8c1fb827863c6b57d8811ed3b69e982a3877
[ "BSD-3-Clause" ]
3
2015-09-30T23:53:08.000Z
2016-05-27T18:37:02.000Z
sqlparse/__init__.py
Yelp/sqlparse
a29c8c1fb827863c6b57d8811ed3b69e982a3877
[ "BSD-3-Clause" ]
7
2015-03-16T20:55:44.000Z
2020-06-18T18:17:51.000Z
# Copyright (C) 2008 Andi Albrecht, albrecht.andi@gmail.com # # This module is part of python-sqlparse and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php. """Parse SQL statements.""" __version__ = '0.1.14' # Setup namespace from sqlparse import engine from sqlparse import f...
31.868217
78
0.711992
700f946fb5baca6452e61d3f1e007eb88ce90d87
1,543
py
Python
ghost/urls.py
Microcore/Quantic
727234a5e9e58217eb8235b6d0f27fe1b95f5f83
[ "MIT" ]
null
null
null
ghost/urls.py
Microcore/Quantic
727234a5e9e58217eb8235b6d0f27fe1b95f5f83
[ "MIT" ]
7
2015-04-25T05:04:46.000Z
2015-04-26T08:24:36.000Z
ghost/urls.py
Microcore/Quantic
727234a5e9e58217eb8235b6d0f27fe1b95f5f83
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Login view url(r'^$', 'ghost.views.index_view'), url(r'^login/$', 'ghost.views.lo...
37.634146
65
0.62022
700ff1e444ff7f1930953d197f9dc705fff91e95
2,094
py
Python
train_val_split.py
chintak/face_detection
8370977f084fd66a9ddcc549a1b4ea8b030d23ac
[ "Apache-2.0" ]
4
2016-05-04T11:27:24.000Z
2018-10-20T15:50:57.000Z
train_val_split.py
chintak/face_detection
8370977f084fd66a9ddcc549a1b4ea8b030d23ac
[ "Apache-2.0" ]
null
null
null
train_val_split.py
chintak/face_detection
8370977f084fd66a9ddcc549a1b4ea8b030d23ac
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd from pandas import read_csv import glob from joblib import Parallel, delayed import numpy as np import argparse if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('train_folder', help='Train folder root path') parser.add_argument('actor_label_...
38.777778
100
0.688634
701176938ee12ffb5b5372fd1b648cf68178d256
508
py
Python
Ignatov_Mikhail_dz_9/exercise_2.py
HellFrozenRain/GB_Homework_Python_1
b0baea6b7efecc6bd649618d0aeba93be57a389a
[ "MIT" ]
null
null
null
Ignatov_Mikhail_dz_9/exercise_2.py
HellFrozenRain/GB_Homework_Python_1
b0baea6b7efecc6bd649618d0aeba93be57a389a
[ "MIT" ]
null
null
null
Ignatov_Mikhail_dz_9/exercise_2.py
HellFrozenRain/GB_Homework_Python_1
b0baea6b7efecc6bd649618d0aeba93be57a389a
[ "MIT" ]
null
null
null
example = Road(5000, 20) print(example.calculatiion(5))
33.866667
91
0.612205
7011b2ae0614609670b4e97d7fc81ec2fb09c3bb
455
py
Python
tests/test_numpy.py
python-pipe/hellp
51fd7c9143ee8ce6392b9b877036ad4347ad29a5
[ "MIT" ]
123
2018-07-31T19:17:27.000Z
2022-03-18T15:29:07.000Z
tests/test_numpy.py
python-pipe/hellp
51fd7c9143ee8ce6392b9b877036ad4347ad29a5
[ "MIT" ]
11
2019-05-01T18:01:59.000Z
2022-01-01T06:43:36.000Z
tests/test_numpy.py
python-pipe/hellp
51fd7c9143ee8ce6392b9b877036ad4347ad29a5
[ "MIT" ]
4
2019-06-07T12:03:53.000Z
2021-05-10T20:29:44.000Z
from sspipe import p, px import numpy as np
16.851852
62
0.558242
70172a8d868fb43d2b1244f1bbe19248e7fbd7f5
3,866
py
Python
src/sane_fin_site/fin_storage/migrations/0001_initial.py
StanleySane/sane-fin-site
4e7341aa3bc17d12f6cf3741ed2fec4bf554b9f9
[ "BSD-3-Clause" ]
null
null
null
src/sane_fin_site/fin_storage/migrations/0001_initial.py
StanleySane/sane-fin-site
4e7341aa3bc17d12f6cf3741ed2fec4bf554b9f9
[ "BSD-3-Clause" ]
null
null
null
src/sane_fin_site/fin_storage/migrations/0001_initial.py
StanleySane/sane-fin-site
4e7341aa3bc17d12f6cf3741ed2fec4bf554b9f9
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 4.0.3 on 2022-03-18 15:22 from django.db import migrations, models import django.db.models.deletion
44.436782
149
0.592602
70175e2bdb8d47ee92c2a767d8aea7a4295bf422
935
py
Python
pytoolbox/utility/logger.py
knutanha/python-toolbox
16505101d9375b8ab5e085492223dfb606868872
[ "MIT" ]
null
null
null
pytoolbox/utility/logger.py
knutanha/python-toolbox
16505101d9375b8ab5e085492223dfb606868872
[ "MIT" ]
null
null
null
pytoolbox/utility/logger.py
knutanha/python-toolbox
16505101d9375b8ab5e085492223dfb606868872
[ "MIT" ]
null
null
null
import datetime import enum
31.166667
136
0.627807
70181f30e72e0f68764f53dfd0b38a713dacd8ea
651
py
Python
chapter 4 - quicksort/binary-search-recursive.py
kingisaac95/grokking-algorithms
32cca84f8b6577deb83fa77e1d9dec754b59b776
[ "Apache-2.0" ]
null
null
null
chapter 4 - quicksort/binary-search-recursive.py
kingisaac95/grokking-algorithms
32cca84f8b6577deb83fa77e1d9dec754b59b776
[ "Apache-2.0" ]
null
null
null
chapter 4 - quicksort/binary-search-recursive.py
kingisaac95/grokking-algorithms
32cca84f8b6577deb83fa77e1d9dec754b59b776
[ "Apache-2.0" ]
null
null
null
# find position of `target` in subarray nums[leftright] my_list = [1, 3, 5, 7, 9] right = len(my_list) - 1 left = 0 print(binary_search(my_list, left, right, 3)) print(binary_search(my_list, left, right, -1))
26.04
58
0.623656
70190c25c52cf54777c3b3dbdf96f6a2c2775501
4,206
py
Python
scripts/roberta_experiment/roberta_classification_simple.py
sarnthil/emotion-classification-roles
1fdd3a8cbdac5ab2ad9598a101b763882df78280
[ "MIT" ]
1
2022-02-17T14:16:20.000Z
2022-02-17T14:16:20.000Z
scripts/roberta_experiment/roberta_classification_simple.py
sarnthil/emotion-classification-roles
1fdd3a8cbdac5ab2ad9598a101b763882df78280
[ "MIT" ]
null
null
null
scripts/roberta_experiment/roberta_classification_simple.py
sarnthil/emotion-classification-roles
1fdd3a8cbdac5ab2ad9598a101b763882df78280
[ "MIT" ]
null
null
null
import logging import random from pathlib import Path from datetime import datetime, timezone import click import datasets as nlp import torch import numpy as np import pandas as pd from simpletransformers.classification import ClassificationModel from sklearn.metrics import f1_score, accuracy_score, recall_score, pre...
31.62406
194
0.697813
7019f22f9c05c70055ec9fdf171e0251420fb7a8
1,090
py
Python
chapter_3/testargv.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_3/testargv.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
chapter_3/testargv.py
bimri/programming_python
ba52ccd18b9b4e6c5387bf4032f381ae816b5e77
[ "MIT" ]
null
null
null
"Command-Line Arguments" ''' The sys module is also where Python makes available the words typed on the command that is used to start a Python script. These words are usually referred to as commandline arguments and show up in sys.argv, a built-in list of strings. ''' import sys print(sys.argv) ''' C:\...\PP4E\S...
32.058824
89
0.718349
701cc13b80e73e6036a93390352d580fb8410617
2,552
py
Python
libraries/numbers.py
yoratoni/Euler-Python
8272eed12162a9bdc33302554bb1af30e56a3e8b
[ "MIT" ]
null
null
null
libraries/numbers.py
yoratoni/Euler-Python
8272eed12162a9bdc33302554bb1af30e56a3e8b
[ "MIT" ]
null
null
null
libraries/numbers.py
yoratoni/Euler-Python
8272eed12162a9bdc33302554bb1af30e56a3e8b
[ "MIT" ]
null
null
null
from math import floor, ceil, sqrt, log2 from libraries import Digits
23.412844
99
0.487461
701f2a15136d5b62583702284b584bce2f46610e
7,131
py
Python
s4/clarity/utils/artifact_ancestry.py
AvroNelson/s4-clarity-lib
af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4
[ "MIT" ]
11
2019-04-11T16:29:36.000Z
2022-01-31T18:32:27.000Z
s4/clarity/utils/artifact_ancestry.py
AvroNelson/s4-clarity-lib
af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4
[ "MIT" ]
9
2019-04-13T17:08:39.000Z
2021-12-07T23:31:01.000Z
s4/clarity/utils/artifact_ancestry.py
AvroNelson/s4-clarity-lib
af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4
[ "MIT" ]
10
2019-04-13T14:29:43.000Z
2021-04-01T01:35:51.000Z
# Copyright 2017 Semaphore Solutions, Inc. # --------------------------------------------------------------------------- from collections import defaultdict def get_parent_artifacts(lims, artifacts): """ Helper method to get the parent artifacts keyed to the supplied artifacts :param LIMS lims: :par...
47.225166
130
0.715468
701f6cd529e5e7fa4f16f7edc5345178425ab490
6,829
py
Python
App/softwares_env/softwares/houdini_wizard/plugin.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/softwares_env/softwares/houdini_wizard/plugin.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
App/softwares_env/softwares/houdini_wizard/plugin.py
Wizard-collab/wizard
c2ec623fe011626716493c232b895fb0513f68ff
[ "MIT" ]
null
null
null
import hou from wizard.prefs.main import prefs from wizard.vars import defaults from wizard.tools import log from wizard.asset import main as asset_core from softwares.houdini_wizard.tools import * from wizard.tools import utility as utils import os import traceback import shutil from wizard.project import wall from wi...
37.729282
126
0.634793
70219ccc098c06dd4bf333f450b426259e4c5b79
999
py
Python
src/timers.py
julianviso/GW2FractalDailies
02314c3d3c440b5359d11b3b38d986568105ef79
[ "MIT" ]
3
2018-04-21T05:14:49.000Z
2018-06-13T11:05:32.000Z
src/timers.py
julianviso/GW2FractalDailies
02314c3d3c440b5359d11b3b38d986568105ef79
[ "MIT" ]
18
2018-03-01T22:48:35.000Z
2018-03-15T22:55:07.000Z
src/timers.py
julianviso/GW2FractalDailies
02314c3d3c440b5359d11b3b38d986568105ef79
[ "MIT" ]
null
null
null
import discord from discord.ext import commands #Helper Libraries from datetime import datetime import feedparser import json #Utils import strings #IRI: changed 'Server' to 'timers'
30.272727
94
0.686687
7022affd5d60868600ba08f00c4b7658c014b223
3,749
py
Python
experiments/overalltests/report.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
19
2018-04-20T06:51:42.000Z
2022-02-24T02:12:00.000Z
experiments/overalltests/report.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
2
2018-04-20T09:53:37.000Z
2018-04-27T19:01:16.000Z
experiments/overalltests/report.py
WojciechMula/parsing-int-series
f0a45c8b1251018e52dac9ebf1d98e8dfb705755
[ "BSD-2-Clause" ]
3
2019-02-25T19:26:51.000Z
2020-11-04T00:50:42.000Z
import sys import os.path if __name__ == '__main__' and __package__ is None: sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from table import Table from loader import load from utils import groupby from report_writer import RestWriter from prettyprint import * if __name__ == ...
27.566176
106
0.523873
7022f0ca1aa21cce0352584f798c251857a2f29c
1,110
py
Python
guniflask/web/__init__.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
12
2018-09-06T06:14:59.000Z
2021-04-18T06:30:44.000Z
guniflask/web/__init__.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
null
null
null
guniflask/web/__init__.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
2
2019-09-08T22:01:26.000Z
2020-08-03T07:23:29.000Z
from .bind_annotation import blueprint from .bind_annotation import delete_route from .bind_annotation import get_route from .bind_annotation import head_route from .bind_annotation import patch_route from .bind_annotation import post_route from .bind_annotation import put_route from .bind_annotation import route from ...
41.111111
49
0.882883
7024b9fb216d801eb9ede1d16916c23d924df7a0
508
py
Python
modules/versioning.py
jpolgesek/superdeploytool
b3bd7e3f409b110b8beab49d80f59b5c6cd28411
[ "BSD-3-Clause" ]
3
2019-07-04T05:00:36.000Z
2020-02-09T14:20:35.000Z
modules/versioning.py
jpolgesek/superdeploytool
b3bd7e3f409b110b8beab49d80f59b5c6cd28411
[ "BSD-3-Clause" ]
null
null
null
modules/versioning.py
jpolgesek/superdeploytool
b3bd7e3f409b110b8beab49d80f59b5c6cd28411
[ "BSD-3-Clause" ]
null
null
null
#coding: utf-8 import os import time
17.517241
59
0.653543
70257036b3b2cfab8988c675cf019d292c546a3e
110
py
Python
application/utils/utils.py
campos537/deep-fashion-system
1de31dd6260cc967e1832cff63ae7e537a3a4e9d
[ "Unlicense" ]
1
2021-04-06T00:43:26.000Z
2021-04-06T00:43:26.000Z
application/utils/utils.py
campos537/deep-fashion-system
1de31dd6260cc967e1832cff63ae7e537a3a4e9d
[ "Unlicense" ]
null
null
null
application/utils/utils.py
campos537/deep-fashion-system
1de31dd6260cc967e1832cff63ae7e537a3a4e9d
[ "Unlicense" ]
null
null
null
import base64
18.333333
39
0.709091
7026d3905231076109cce84e7fcd5feb02e48371
5,376
py
Python
sr/robot3/astoria.py
srobo/sr-robot3
af88d44d681c4f730c2196eaab8c7cbaf4e39d98
[ "MIT" ]
4
2020-08-31T15:33:09.000Z
2022-01-22T18:50:20.000Z
sr/robot3/astoria.py
srobo/sr-robot3
af88d44d681c4f730c2196eaab8c7cbaf4e39d98
[ "MIT" ]
22
2020-07-02T20:59:09.000Z
2022-02-23T20:47:17.000Z
sr/robot3/astoria.py
srobo/sr-robot3
af88d44d681c4f730c2196eaab8c7cbaf4e39d98
[ "MIT" ]
null
null
null
"""Integration with Astoria.""" import asyncio import logging from json import JSONDecodeError, loads from pathlib import Path from typing import Match, NamedTuple, Optional from astoria.common.broadcast_event import StartButtonBroadcastEvent from astoria.common.consumer import StateConsumer from astoria.common.messa...
35.84
89
0.638393
70271af1935553bf3f9705882222dbc48f6d6a66
224
py
Python
tests/test_day_16_puzzle_1.py
LuckyJosh/advent-of-code-2017
17498d385857dee4bb44ded5668d56c758b0a601
[ "MIT" ]
null
null
null
tests/test_day_16_puzzle_1.py
LuckyJosh/advent-of-code-2017
17498d385857dee4bb44ded5668d56c758b0a601
[ "MIT" ]
null
null
null
tests/test_day_16_puzzle_1.py
LuckyJosh/advent-of-code-2017
17498d385857dee4bb44ded5668d56c758b0a601
[ "MIT" ]
null
null
null
#! /usr/bin/env python # encoding: utf-8 from aoc2017.day_16 import permutations_1
20.363636
59
0.705357
7027a4d1caf0562a27d727b8404b172b031ef778
70,409
py
Python
bmModerator.py
Dokument/BM-Moderator
5e42e7470d7bb8557b685c7bf340952552ff34b6
[ "MIT" ]
4
2015-09-19T16:02:23.000Z
2021-12-02T09:40:26.000Z
bmModerator.py
Dokument/BM-Moderator
5e42e7470d7bb8557b685c7bf340952552ff34b6
[ "MIT" ]
null
null
null
bmModerator.py
Dokument/BM-Moderator
5e42e7470d7bb8557b685c7bf340952552ff34b6
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Created by Adam Melton (.dok) referenceing https://bitmessage.org/wiki/API_Reference for API documentation # Distributed under the MIT/X11 software license. See the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import time import sys import os import json i...
42.906155
238
0.596898
702856a844bc02746010db0b224ea515479a1f56
428
py
Python
geocontrib/migrations/0014_featuretype_title_optional.py
neogeo-technologies/collab
d205efd0a05b98c8c1781a777c0512b042580b73
[ "Apache-2.0" ]
3
2019-09-10T09:03:02.000Z
2019-10-24T08:23:21.000Z
geocontrib/migrations/0014_featuretype_title_optional.py
neogeo-technologies/geocontrib
868bbcdbb575cf8ff0ab2bb6782e64fd1ac0ee6f
[ "Apache-2.0" ]
14
2020-01-27T09:49:33.000Z
2021-06-14T08:04:10.000Z
geocontrib/migrations/0014_featuretype_title_optional.py
neogeo-technologies/geocontrib
868bbcdbb575cf8ff0ab2bb6782e64fd1ac0ee6f
[ "Apache-2.0" ]
9
2020-01-16T12:37:39.000Z
2021-04-22T09:57:59.000Z
# Generated by Django 2.2.24 on 2021-09-21 10:21 from django.db import migrations, models
22.526316
85
0.623832