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
272f0cf0754b945f03c4fe2b4a5977930d84644b
1,752
py
Python
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
7_kyu/grow_of_population.py
dimishpatriot/way_on_the_highway
4865db946632b7bd3d74509a20a307841c02169d
[ "MIT" ]
null
null
null
"""In a small town the population is p0 = 1000 at the beginning of a year. The population regularly increases by 2 percent per year and moreover 50 new inhabitants per year come to live in the town. How many years does the town need to see its population greater or equal to p = 1200 inhabitants? 1) At the end of the f...
30.736842
97
0.673516
273038458cb6e72fc3b79b5c6ab692951f85b0c3
4,144
py
Python
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Multithreaded_Long_Task_Simple.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import threading import time import PySimpleGUI as sg """ DESIGN PATTERN - Multithreaded Long Tasks GUI using shared global variables Presents one method for running long-running operations in a PySimpleGUI environment. The PySimpleGUI code, and thus the underlying GUI framework, ru...
41.029703
138
0.625483
27315ae22ee7a238a46f0e67142e8517f30c8852
1,838
py
Python
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
3
2020-09-07T12:14:31.000Z
2021-11-11T11:46:43.000Z
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
sidekick/tests/test_import_members.py
cybera/netbox-sidekick
ec5e2080513d088e2604d8755f34b1d2592b95dd
[ "Apache-2.0" ]
null
null
null
from io import StringIO from django.core.management import call_command import os from . import utils
48.368421
114
0.699129
27315e1db1e7700a9d36cef574e1deed8416f995
1,385
py
Python
uselessAI.py
Arihant25/beginner-python-projects
43c6489b6973522246073f2187a682487f1684c1
[ "Unlicense" ]
1
2020-06-11T06:10:08.000Z
2020-06-11T06:10:08.000Z
uselessAI.py
Arihant25/beginner-python-projects
43c6489b6973522246073f2187a682487f1684c1
[ "Unlicense" ]
1
2021-07-16T03:50:09.000Z
2021-07-16T04:00:35.000Z
uselessAI.py
Arihant25/beginner-python-projects
43c6489b6973522246073f2187a682487f1684c1
[ "Unlicense" ]
1
2021-07-16T03:28:39.000Z
2021-07-16T03:28:39.000Z
greet('UselessAI', '2020') remind_name() guess_age() count() test() end()
23.083333
83
0.581949
2732112e3d71d0c3a2a906460b62d43c48b4fb95
241
py
Python
pineboolib/fllegacy/aqsobjects/aqsmtpclient.py
juanjosepablos/pineboo
f6ce515aec6e0139821bb9c1d62536d9fb50dae4
[ "MIT" ]
2
2015-09-19T16:54:49.000Z
2016-09-12T08:06:29.000Z
pineboolib/fllegacy/aqsobjects/aqsmtpclient.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
36
2017-11-05T21:13:47.000Z
2020-08-26T15:56:15.000Z
pineboolib/fllegacy/aqsobjects/aqsmtpclient.py
deavid/pineboo
acc96ab6d5b8bb182990af6dea4bf0986af15549
[ "MIT" ]
9
2015-01-15T18:15:42.000Z
2019-05-05T18:53:00.000Z
# -*- coding: utf-8 -*- """ AQSmtpClient Module. This class provides utilities to use a Smtp client. """ from pineboolib.fllegacy.flsmtpclient import FLSmtpClient
16.066667
57
0.713693
2732966b89290e6982d4e90149bce48ffa294e63
871
py
Python
assistant/core/views.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/core/views.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/core/views.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
from typing import List from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic import TemplateView from assistant.orders.models import Order from assistant.products.models import Product
26.393939
62
0.69116
27346ed4d6dc889abd1e3fa083354a32e52ae98a
2,024
py
Python
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
3
2021-06-29T00:23:47.000Z
2021-09-17T18:29:05.000Z
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
null
null
null
chmap/examples/defunct/EUV_map_query_options.py
predsci/CHD
35f29d1b62861f4ffed57b38d18689b282664bcf
[ "Apache-2.0" ]
1
2021-12-08T06:26:18.000Z
2021-12-08T06:26:18.000Z
import os import datetime import pandas as pd from chmap.settings.app import App from chmap.database.db_classes import * from chmap.database.deprecated.db_funs import init_db_conn from sqlalchemy.orm import joinedload # Assume that we are using images from the 'reference_data' setup supplied with repo # manually s...
37.481481
125
0.76334
27376a84a1f1ba1faffcc4132873b55e2e8ca9cd
308
py
Python
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
1
2020-01-02T21:53:22.000Z
2020-01-02T21:53:22.000Z
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
null
null
null
hasensor/sensors/announcer.py
eblanton/hasensor
4421bf939f0904fc85ecbdfbd404dabe33c1c443
[ "BSD-2-Clause" ]
null
null
null
from ..sensor import ArgDict, Sensor
19.25
52
0.594156
2738f4224e35bab74695218b88d121cd720f88b1
85,669
py
Python
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_11.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_11.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/ma100MeV_L1pt8-2pt4TeV_deta2pt6/Output/Histos/MadAnalysis5job_0/selection_11.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
# Running! if __name__ == '__main__': selection_11()
392.977064
6,435
0.760824
27397a994d354b44efa7e09c80fd506b9289236b
1,286
py
Python
app/routers/users.py
Austinstevesk/fast-api-crud-and-user-authentication
17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e
[ "Apache-2.0" ]
null
null
null
app/routers/users.py
Austinstevesk/fast-api-crud-and-user-authentication
17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e
[ "Apache-2.0" ]
null
null
null
app/routers/users.py
Austinstevesk/fast-api-crud-and-user-authentication
17e01e5fcaea2a0c3fa3dd65edfaee8414ff831e
[ "Apache-2.0" ]
null
null
null
from fastapi import FastAPI, status, HTTPException, Response, APIRouter, Depends from sqlalchemy.orm import Session from typing import List from .. import schemas, models, utils #You can move up 2 steps using .. from ..database import get_db router = APIRouter( prefix="/users", tags=['users'] )
29.906977
100
0.709953
273b0739f92587e2927e090ad5eb2c6345702f86
7,295
py
Python
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
src/news/collector.py
aibazhang/multitrue-bot
189c5163010269eec57ae48f8e9d08d22ed5fcb8
[ "MIT" ]
null
null
null
import os import requests import json import pathlib from abc import ABCMeta, abstractmethod from .news import News, print_format_markdown, print_format_telebot KEY_PATH = pathlib.Path(os.path.dirname(__file__), "../..")
29.534413
110
0.580123
273c7d9230855a61bacc38d30734d8a53bab556c
982,074
pyt
Python
models/mnist_FNN_1.pyt
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
models/mnist_FNN_1.pyt
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
models/mnist_FNN_1.pyt
CAS-LRJ/DeepPAC
75059572c23474d32a762aca5640f4d799fd992a
[ "Apache-2.0" ]
null
null
null
Normalize mean=[0.1307] std=[0.3081] ReLU [[-0.02289694733917713, -0.0015768347075209022, -0.007779418025165796, -0.018946761265397072, 0.009356001392006874, -0.01212845928966999, -0.019499225541949272, 0.014134012162685394, -0.022251857444643974, 0.03429203853011131, 0.007956764660775661, 0.01797821931540966, 0.0398...
70,148.142857
860,281
0.8397
273c940a6cfe38710caeba8144fda95ba8e580c5
9,282
py
Python
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
1
2020-03-10T14:35:32.000Z
2020-03-10T14:35:32.000Z
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
null
null
null
scheduler/generation.py
richplane/PyREmatcher
93df987478849e5905f0ee5c9ee79801479acb1e
[ "Apache-2.0" ]
null
null
null
# Renewable generation at Findhorn from windpowerlib import WindFarm from windpowerlib import WindTurbine from windpowerlib import WindTurbineCluster from windpowerlib.turbine_cluster_modelchain import TurbineClusterModelChain import pvlib from pvlib.pvsystem import PVSystem from pvlib.location import Location from pvl...
34
88
0.607735
273de09788e8d36ac29db8f66c63f35b9eb059df
37
py
Python
tests/components/minio/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/minio/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/minio/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Tests for the minio component."""
18.5
36
0.675676
273de3624cb2656a5b09bd44464400c778b4cc44
213
py
Python
setup.py
ravi-bade/hive-ML
bd724580bf09d992a838da57f9fd5142bab4e1e5
[ "MIT" ]
null
null
null
setup.py
ravi-bade/hive-ML
bd724580bf09d992a838da57f9fd5142bab4e1e5
[ "MIT" ]
null
null
null
setup.py
ravi-bade/hive-ML
bd724580bf09d992a838da57f9fd5142bab4e1e5
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Hive-ml project of OneApp', author='Ravikant Bade', license='MIT', )
19.363636
44
0.661972
273e3b061e019a5cb896032af82de6f73be47078
1,985
py
Python
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
2
2022-03-13T22:54:16.000Z
2022-03-28T02:37:48.000Z
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
null
null
null
app.py
twitterdev/getting-started-with-dash
f0c81a03d0f31ed787a90492d2412c9fe48eeb6d
[ "Apache-2.0" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.express as px import pandas as pd import os import requests app = dash.Dash(external_stylesheets=[dbc.themes.JOURNAL]) server = app.server search_url = "https://api.twitter.com/2/t...
26.824324
131
0.665995
273f5601e7028883ce023d07d960ba6fa3bb289d
1,716
py
Python
M-SPRING/heuristic/shortest_paths.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
3
2019-09-27T08:07:11.000Z
2021-11-19T11:27:39.000Z
M-SPRING/heuristic/shortest_paths.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
null
null
null
M-SPRING/heuristic/shortest_paths.py
CN-UPB/SPRING
1cb74919689e832987cb2c9b490eec7f09a64f52
[ "Apache-2.0" ]
null
null
null
import math # return the delay of the specified path (= list of nodes) # floyd-warshall algorithm
36.510638
104
0.648601
273f6a820dd8f3aeae5864ba60eb32fd5d0541ad
2,398
py
Python
testing/statistic.py
methk/RadixDLT-IoTSimulation
886ba589c8e7be08c95cf3636438c10e97e16752
[ "MIT" ]
null
null
null
testing/statistic.py
methk/RadixDLT-IoTSimulation
886ba589c8e7be08c95cf3636438c10e97e16752
[ "MIT" ]
3
2021-03-09T21:18:22.000Z
2021-09-02T01:05:44.000Z
testing/statistic.py
methk/RadixDLT-IoTSimulation
886ba589c8e7be08c95cf3636438c10e97e16752
[ "MIT" ]
1
2022-02-18T14:51:46.000Z
2022-02-18T14:51:46.000Z
import os import csv import numpy as np import scipy.stats import matplotlib.pyplot as plt plt.style.use('seaborn-whitegrid') startingDir = 'data/output' plotTestNumber = 12 totalRequests = 447 singleTestData = [] allLatencies = [] allErrors = 0 errorsData = [] tipsData = [] tipsDataSTD = [] powsData = [] powsDataS...
27.25
95
0.565888
273feec7e2e1888ae2ab4fb11f3421c980ee0353
4,844
py
Python
skutil/preprocessing/tests/test_balance.py
tgsmith61591/pynorm
672e353a721036791e1e32250879c3276961e05a
[ "BSD-3-Clause" ]
38
2016-08-31T19:24:13.000Z
2021-06-28T17:10:20.000Z
skutil/preprocessing/tests/test_balance.py
tgsmith61591/pynorm
672e353a721036791e1e32250879c3276961e05a
[ "BSD-3-Clause" ]
42
2016-06-20T19:07:21.000Z
2017-10-29T20:53:11.000Z
skutil/preprocessing/tests/test_balance.py
tgsmith61591/pynorm
672e353a721036791e1e32250879c3276961e05a
[ "BSD-3-Clause" ]
17
2016-06-27T18:07:53.000Z
2019-04-09T12:33:59.000Z
from __future__ import print_function import pandas as pd import numpy as np from sklearn.datasets import load_iris from skutil.preprocessing import * from skutil.preprocessing.balance import _BaseBalancer from numpy.testing import assert_array_equal from skutil.testing import assert_fails import warnings # Def data f...
27.367232
93
0.635632
2740e363aa1f94977ef475388c48f61555bf5a1a
754
py
Python
hard-gists/5017218/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/5017218/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/5017218/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/env python from Crypto.Cipher import AES from Crypto.Util.strxor import strxor from binascii import hexlify K = '0123456789abcdef' cipher = AES.new(K, AES.MODE_ECB) # Original Message M1 = K M2 = K Cm0 = cipher.encrypt('\0' * AES.block_size) Cm1 = cipher.encrypt(strxor(Cm0,M1)) Tm = Cm2 = cipher.encrypt(s...
25.133333
47
0.709549
274247c350250c602de94ec641a4010f931234e4
3,540
py
Python
options/running_options.py
kwshh/ImageDeconvlution
561468463372a5727b553efa0330fc75901e29fc
[ "MIT" ]
25
2019-05-10T13:51:25.000Z
2021-10-13T01:35:43.000Z
options/running_options.py
kwshh/ImageDeconvlution
561468463372a5727b553efa0330fc75901e29fc
[ "MIT" ]
8
2019-05-10T13:51:07.000Z
2021-06-03T07:13:28.000Z
options/running_options.py
kwshh/ImageDeconvlution
561468463372a5727b553efa0330fc75901e29fc
[ "MIT" ]
7
2020-08-15T09:16:11.000Z
2021-07-06T21:54:20.000Z
import argparse
41.647059
110
0.487288
2743e4857e6a05d46ea22a4c0d0bcac87b1eae86
982
py
Python
python/scanr_doiresolver-0.10/scanr_doiresolver/main.py
dataesr/scanr-backend
39681be69b9a96b4a07b9410754c897cd5b65c24
[ "MIT" ]
null
null
null
python/scanr_doiresolver-0.10/scanr_doiresolver/main.py
dataesr/scanr-backend
39681be69b9a96b4a07b9410754c897cd5b65c24
[ "MIT" ]
null
null
null
python/scanr_doiresolver-0.10/scanr_doiresolver/main.py
dataesr/scanr-backend
39681be69b9a96b4a07b9410754c897cd5b65c24
[ "MIT" ]
null
null
null
import json from companies_plugin import extractor from companies_plugin.utils import add_logger from scanr_doiresolver import LIB_PATH from scanr_doiresolver.resolver import resolve_publications if __name__ == "__main__": m = extractor.Main(batch_name="PUBLICATION_RESOLVER", queue_name="...
30.6875
96
0.602851
27453b9db08872e055996422f63acffb64350e41
361
py
Python
examples/03additionals/legacy_score.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
examples/03additionals/legacy_score.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
examples/03additionals/legacy_score.py
dotness/swagger-marshmallow-codegen
62938d780672d754431d50bde3eae04abefb64f1
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # this is auto-generated by swagger-marshmallow-codegen from swagger_marshmallow_codegen.schema.legacy import ( AdditionalPropertiesSchema, LegacySchema ) from marshmallow import fields
24.066667
55
0.753463
2746d32e08d6ab65d2525605b064c6bb89db2db5
1,280
py
Python
tests/bigwig/test_create_bigwigs.py
BioinformaticsMaterials/epic
d601f2384784ea38f5de8c25156be4c8d9ef2fff
[ "MIT" ]
null
null
null
tests/bigwig/test_create_bigwigs.py
BioinformaticsMaterials/epic
d601f2384784ea38f5de8c25156be4c8d9ef2fff
[ "MIT" ]
null
null
null
tests/bigwig/test_create_bigwigs.py
BioinformaticsMaterials/epic
d601f2384784ea38f5de8c25156be4c8d9ef2fff
[ "MIT" ]
null
null
null
import pytest import pandas as pd import numpy as np from os import stat from io import StringIO from epic.bigwig.create_bigwigs import _create_bigwig from epic.config.genomes import create_genome_size_dict
21.333333
76
0.767969
27484ca2bc8228c9f67c0d19e4ae6ba4c2b57e35
555
py
Python
tests/solvers/__init__.py
neuyhwu/MIPLearn
c6b31a827d6c6e682d45171f21478162c0bc46d6
[ "BSD-3-Clause" ]
64
2020-02-27T01:24:40.000Z
2022-03-31T12:38:56.000Z
tests/solvers/__init__.py
neuyhwu/MIPLearn
c6b31a827d6c6e682d45171f21478162c0bc46d6
[ "BSD-3-Clause" ]
3
2020-04-07T14:43:31.000Z
2021-01-15T14:02:01.000Z
tests/solvers/__init__.py
zclab/MIPLearn
9bd64c885aa645d41c30fa0ec4e0eedfaf703dac
[ "BSD-3-Clause" ]
13
2020-03-30T16:41:38.000Z
2022-02-17T15:38:01.000Z
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization # Copyright (C) 2020-2021, UChicago Argonne, LLC. All rights reserved. # Released under the modified BSD license. See COPYING.md for more details. from io import StringIO from miplearn.solvers import _RedirectOutput
30.833333
82
0.731532
27486b3592aa44c1f3081be500edb4d9d40e6414
1,717
py
Python
QuantumBlack Machine Learning Software Engineer 2019/Correlation.py
sivolko/codeforce
4b00c4c012780036e56d2f0e79adb2f5db7559df
[ "MIT" ]
3
2021-04-21T07:11:33.000Z
2022-01-09T00:05:55.000Z
InterviewChallenges/QuantumBlack Machine Learning Software Engineer 2019/Correlation.py
sweetpand/Algorithms
2e4dcf2d42de25531fae5b4ec0d96ce100043117
[ "MIT" ]
null
null
null
InterviewChallenges/QuantumBlack Machine Learning Software Engineer 2019/Correlation.py
sweetpand/Algorithms
2e4dcf2d42de25531fae5b4ec0d96ce100043117
[ "MIT" ]
null
null
null
import math # return '{}\{}{}'.format(value1, value2, value3) class_scores = ['73\t72\t76', '48\t67\t76', '95\t92\t95', '95\t95\t96', '33\t59\t79', '47\t58\t74', '98\t95\t97', '91\t94\t97', '95\t84\t90', '93\t83\t90', '70\t70\t78', '85\t79\t91', '33\t67\t76', '47\t73\t90', '95\t87\t95', '84\t86\t95', '43\t...
33.019231
115
0.638905
27487403a3d7b9e65ea004d6b9bb66d14163ac93
2,617
py
Python
utest/test_iinekoko_db.py
MizunagiKB/IIneKoKo
495ae6dc2887bb8b41331fab1f21812368400cf2
[ "MIT" ]
null
null
null
utest/test_iinekoko_db.py
MizunagiKB/IIneKoKo
495ae6dc2887bb8b41331fab1f21812368400cf2
[ "MIT" ]
null
null
null
utest/test_iinekoko_db.py
MizunagiKB/IIneKoKo
495ae6dc2887bb8b41331fab1f21812368400cf2
[ "MIT" ]
null
null
null
import sys import unittest import configparser sys.path.append("./svc") # [EOF]
29.077778
79
0.632404
2748a53e6b912bda05b5145d677d95d85ebd3529
987
py
Python
Champion.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
Champion.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
Champion.py
KhangOP/PaladinsAssistantBot
9b705dc688610ba52909f0b0e152d8684006c6a6
[ "MIT" ]
null
null
null
# Class to store champion names in one location
42.913043
116
0.566363
27491dfc485679f55f2ea50c1629c408b70c365b
2,292
py
Python
src/gpuz/data_helper.py
scalasm/gpuz-log-analysis
c9a6dd46bf8a12120c9d284411c5b1562b97fdfd
[ "Apache-2.0" ]
null
null
null
src/gpuz/data_helper.py
scalasm/gpuz-log-analysis
c9a6dd46bf8a12120c9d284411c5b1562b97fdfd
[ "Apache-2.0" ]
null
null
null
src/gpuz/data_helper.py
scalasm/gpuz-log-analysis
c9a6dd46bf8a12120c9d284411c5b1562b97fdfd
[ "Apache-2.0" ]
null
null
null
import logging from typing import Optional, List, Any import gpuz.utility as utility from pathlib import Path import os import pandas as pd from pandas.core.frame import DataFrame import numpy as np import matplotlib as mp logger: logging.Logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) if __na...
32.742857
94
0.665794
274a678ce7ef66ccf7cfb21453ee41a8617d1632
4,173
py
Python
m5-101/content/solutions/web-crawler/section1&2&3.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:15:38.000Z
2021-11-10T12:29:19.000Z
m5-101/content/solutions/web-crawler/section1&2&3.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
null
null
null
m5-101/content/solutions/web-crawler/section1&2&3.py
PaulCCCCCCH/m5-101
81201b00cd81c1747ea0cd5f042a09eda02d6d1c
[ "MIT" ]
4
2021-03-25T13:18:10.000Z
2021-04-08T13:44:48.000Z
from posix import listdir import requests from bs4 import BeautifulSoup as bs import math import sys, getopt import re import os # For Oxford ============================================================================== # base_url = "https://www.ox.ac.uk/" # base_dir = "pages/oxford" # if not os.path.exists(base_...
32.601563
163
0.578481
274f3dedfd8af9c5162a6375c14921ce4ca86095
6,319
py
Python
sandbox/andrew/run_trpo_strike.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
49
2017-12-11T11:00:02.000Z
2022-03-30T05:19:31.000Z
sandbox/andrew/run_trpo_strike.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
2
2018-01-01T17:39:56.000Z
2019-07-24T04:49:08.000Z
sandbox/andrew/run_trpo_strike.py
leopauly/Observation-Learning-Simulations
462c04a87c45aae51537b8ea5b44646afa31d3a5
[ "MIT" ]
12
2017-12-13T11:52:17.000Z
2020-12-03T00:53:29.000Z
import os from rllab.baselines.linear_feature_baseline import LinearFeatureBaseline # from rllab.envs.mujoco.gather.swimmer_gather_env import SwimmerGatherEnv os.environ["THEANO_FLAGS"] = "device=cpu" from rllab.envs.gym_env import GymEnv from rllab.envs.normalized_env import normalize from rllab.policies.gaussian_mlp...
37.613095
100
0.547238
274fe43fa546672495660673160348de8f0a6c2e
17,257
py
Python
bpmfwfft/fft_sampling.py
jimtufts/bpmfwfft
091d2269b122f00b9dd8a01e34303e3e946f8ea0
[ "MIT" ]
null
null
null
bpmfwfft/fft_sampling.py
jimtufts/bpmfwfft
091d2269b122f00b9dd8a01e34303e3e946f8ea0
[ "MIT" ]
null
null
null
bpmfwfft/fft_sampling.py
jimtufts/bpmfwfft
091d2269b122f00b9dd8a01e34303e3e946f8ea0
[ "MIT" ]
null
null
null
""" This is to generate interaction energies and corresponding translational vectors, given a fixed receptor and an ensemble of ligand coordinates (including rotations and/or configurations) """ from __future__ import print_function import numpy as np import netCDF4 try: from bpmfwfft.grids import RecGrid fr...
42.296569
134
0.665121
27516da8559c76c6cbc57c679759132dc516e07e
6,241
py
Python
kotori/config.py
joshuaavalon/kotori
3e7e1cf7b2c1834aea9a9404e80a53f8282aba1b
[ "Apache-2.0" ]
null
null
null
kotori/config.py
joshuaavalon/kotori
3e7e1cf7b2c1834aea9a9404e80a53f8282aba1b
[ "Apache-2.0" ]
null
null
null
kotori/config.py
joshuaavalon/kotori
3e7e1cf7b2c1834aea9a9404e80a53f8282aba1b
[ "Apache-2.0" ]
null
null
null
import json import re from abc import ABC, abstractmethod from dataclasses import dataclass, field from os.path import splitext from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Type, Union from PIL import Image from ruamel.yaml import YAML from kotori.error import ConfigError __all__ = [...
30.296117
78
0.621054
27542459664ee95574391c6b162f6e4cf09c76b9
4,587
py
Python
parser_utils.py
fgypas/panoptes
d85bf83905fd0e546cce11e00d4daf4da2199fbf
[ "MIT" ]
1
2019-11-03T22:08:19.000Z
2019-11-03T22:08:19.000Z
parser_utils.py
fgypas/panoptes
d85bf83905fd0e546cce11e00d4daf4da2199fbf
[ "MIT" ]
27
2019-10-23T19:24:38.000Z
2022-02-10T19:40:24.000Z
parser_utils.py
fgypas/panoptes
d85bf83905fd0e546cce11e00d4daf4da2199fbf
[ "MIT" ]
null
null
null
import os import re from pprint import pprint from pandas.io.json import json_normalize import datetime import argparse import sys DATE = 'date' LEVEL = 'level' TYPE = 'type' CLASS = 'class' MESSAGE = 'message' def structure_snakemake_logs(logs): """ Takes as input a parced log dictionary. Returns a str...
30.177632
106
0.480706
2755a12d13ff285f1e00c9a95f222cd1d7e6e11b
71
py
Python
nimanifold/data/__init__.py
jcreinhold/nimanifold
21e6546d24304a7ccfdd6a56d7ec47b2527e1c15
[ "Apache-2.0" ]
null
null
null
nimanifold/data/__init__.py
jcreinhold/nimanifold
21e6546d24304a7ccfdd6a56d7ec47b2527e1c15
[ "Apache-2.0" ]
null
null
null
nimanifold/data/__init__.py
jcreinhold/nimanifold
21e6546d24304a7ccfdd6a56d7ec47b2527e1c15
[ "Apache-2.0" ]
null
null
null
from nimanifold.data.csv import * from nimanifold.data.sample import *
23.666667
36
0.802817
2756a87403668d7d8cbcd575aefad24bc180bbaa
452
py
Python
Simulations/Test.py
BoettigerLab/polychrom
b9d6b0e0f1a62def13ac28a32232c33628e43dae
[ "MIT" ]
null
null
null
Simulations/Test.py
BoettigerLab/polychrom
b9d6b0e0f1a62def13ac28a32232c33628e43dae
[ "MIT" ]
null
null
null
Simulations/Test.py
BoettigerLab/polychrom
b9d6b0e0f1a62def13ac28a32232c33628e43dae
[ "MIT" ]
null
null
null
import sys import os import numpy as np import ast import pandas as pd from LEBondUpdater import bondUpdater import polychrom from polychrom.starting_conformations import grow_cubic from polychrom.hdf5_format import HDF5Reporter, list_URIs, load_URI, load_hdf5_file from polychrom.simulation import Simulation from pol...
21.52381
83
0.85177
27574dceb612771ac763cff0815e740d67568d21
373
py
Python
deca/gui/deca_interfaces.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
50
2019-06-05T04:01:04.000Z
2022-03-05T14:56:43.000Z
deca/gui/deca_interfaces.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
115
2019-03-27T13:34:00.000Z
2022-03-11T23:43:12.000Z
deca/gui/deca_interfaces.py
kk49/deca
8a03ea5d1b7ae0d787638f1797b6e2cb46de4bae
[ "MIT" ]
13
2020-01-25T01:15:49.000Z
2022-02-08T02:20:05.000Z
from PySide2.QtCore import Signal from PySide2.QtWidgets import QWidget from deca.db_view import VfsView
20.722222
46
0.723861
2758815a9272e4ba22d391476a74de67b2fc6c02
7,746
py
Python
python/beached_probability.py
OceanParcels/BayesianAnalysis_SouthAtlantic
a808896ea9104931a6ad625531231525c6c12826
[ "MIT" ]
1
2022-01-12T08:24:14.000Z
2022-01-12T08:24:14.000Z
python/beached_probability.py
OceanParcels/BayesianAnalysis_SouthAtlantic
a808896ea9104931a6ad625531231525c6c12826
[ "MIT" ]
null
null
null
python/beached_probability.py
OceanParcels/BayesianAnalysis_SouthAtlantic
a808896ea9104931a6ad625531231525c6c12826
[ "MIT" ]
null
null
null
""" Computes the probability field of beached particles from Ocean Parcels simulations. Computes the posterior probability in the latitude of the beached particles. """ import numpy as np import xarray as xr import pandas as pd import os def time_averaging_coast(array, window=30): """It averages the counts_americ...
35.53211
79
0.572941
2759eded27b5f65ad495b43a6846ccc30736fba9
2,985
py
Python
models/cam_decoder.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
2
2022-01-28T10:35:53.000Z
2022-03-09T14:38:59.000Z
models/cam_decoder.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
1
2022-03-07T10:48:11.000Z
2022-03-07T10:48:11.000Z
models/cam_decoder.py
BwCai/DCAA-UDA
359c2122060aebfbe4384c918768c261fe2dc9c7
[ "Apache-2.0" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F from models.sync_batchnorm.batchnorm import SynchronizedBatchNorm2d from models.aspp import build_aspp from models.decoder import build_decoder import pdb
37.78481
98
0.59665
275bb771b2d649e2d94b8d769d96499bc3dc8e16
2,505
py
Python
src/server/noize_reduction.py
kikuchiken-waseda/MRIVuewer
66cfe30d006b6491a093a9dfab5b538c5e49409e
[ "MIT" ]
null
null
null
src/server/noize_reduction.py
kikuchiken-waseda/MRIVuewer
66cfe30d006b6491a093a9dfab5b538c5e49409e
[ "MIT" ]
23
2020-02-11T19:13:24.000Z
2020-05-16T07:49:43.000Z
src/server/noize_reduction.py
kikuchiken-waseda/MRIVuewer
66cfe30d006b6491a093a9dfab5b538c5e49409e
[ "MIT" ]
null
null
null
import scipy as sp from pyssp.util import ( get_frame, add_signal, compute_avgpowerspectrum )
30.54878
77
0.621158
275bf3b0ea75846995ad189f786825044efb445e
4,940
py
Python
chord_rec/harmalysis/classes/scale.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/classes/scale.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/harmalysis/classes/scale.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
''' harmalysis - a language for harmonic analysis and roman numerals Copyright (C) 2020 Nestor Napoles Lopez This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of t...
35.285714
84
0.411943
275c01a7663aa8d447750578c192b3d7fd40d88b
1,335
py
Python
airq/api/crypto.py
dwightmulcahy/airq
82e97825f70852d7fab973e498ef71345e1ed422
[ "MIT" ]
6
2020-11-25T10:34:52.000Z
2022-02-18T22:22:12.000Z
airq/api/crypto.py
dwightmulcahy/airq
82e97825f70852d7fab973e498ef71345e1ed422
[ "MIT" ]
6
2021-10-15T06:49:14.000Z
2021-11-09T20:30:01.000Z
airq/api/crypto.py
dwightmulcahy/airq
82e97825f70852d7fab973e498ef71345e1ed422
[ "MIT" ]
2
2021-04-18T03:11:35.000Z
2022-01-01T23:02:51.000Z
import hashlib from Crypto.Cipher import AES
32.560976
112
0.597753
275c77321e139727fd234a2be346f888681c1954
8,350
py
Python
idaes/apps/caprese/examples/cstr_rodrigo/nmpc_main.py
Robbybp/idaes-pse
8a41dbd05819f82806cf17a6e5f06aef79a775e3
[ "RSA-MD" ]
null
null
null
idaes/apps/caprese/examples/cstr_rodrigo/nmpc_main.py
Robbybp/idaes-pse
8a41dbd05819f82806cf17a6e5f06aef79a775e3
[ "RSA-MD" ]
2
2021-08-18T19:42:02.000Z
2021-10-22T04:44:31.000Z
idaes/apps/caprese/examples/cstr_rodrigo/nmpc_main.py
Robbybp/idaes-pse
8a41dbd05819f82806cf17a6e5f06aef79a775e3
[ "RSA-MD" ]
1
2021-03-17T20:31:17.000Z
2021-03-17T20:31:17.000Z
############################################################################## # Institute for the Design of Advanced Energy Systems Process Systems # Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the # software owners: The Regents of the University of California, through # Lawrence Berkeley N...
38.127854
82
0.623713
275e2811cd73b93eae3878d64929106994338a2d
1,642
py
Python
apps/scheduler/migrations/0008_current_task.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
1
2019-12-12T15:38:42.000Z
2019-12-12T15:38:42.000Z
apps/scheduler/migrations/0008_current_task.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
apps/scheduler/migrations/0008_current_task.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2020-11-23 15:06 from django.db import migrations, models import django.db.models.deletion
30.407407
85
0.54933
275e8507ce35dccac0615b8d962c545d75b3823a
2,555
py
Python
connect_four/transposition/sqlite_transposition_table_test.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/transposition/sqlite_transposition_table_test.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
connect_four/transposition/sqlite_transposition_table_test.py
rpachauri/connect4
6caf6965afaaff6883193ac295c6ac5b1f4e9c4a
[ "MIT" ]
null
null
null
import unittest import gym import numpy as np from connect_four.hashing import TicTacToeHasher from connect_four.transposition.sqlite_transposition_table import SQLiteTranspositionTable if __name__ == '__main__': unittest.main()
30.416667
90
0.523288
275ea88f14a647fe3701cbe45b6f30ea2d89fba6
1,226
py
Python
test/unittests/study/mri/test_mc.py
szho42/banana
131804803e6293716e9d11cbb6f3ca244b2931f9
[ "Apache-2.0" ]
null
null
null
test/unittests/study/mri/test_mc.py
szho42/banana
131804803e6293716e9d11cbb6f3ca244b2931f9
[ "Apache-2.0" ]
null
null
null
test/unittests/study/mri/test_mc.py
szho42/banana
131804803e6293716e9d11cbb6f3ca244b2931f9
[ "Apache-2.0" ]
null
null
null
from nipype import config config.enable_debug_mode() from banana.testing import BaseTestCase as TestCase # @IgnorePep8 @Reimport # from banana.study.multimodal.test_motion_detection import ( # @IgnorePep8 @Reimport # MotionDetection, inputs) from banana.study.multimodal.mrpet import create_motion_correction_class...
32.263158
97
0.681892
275f0b6cee294c3156bfba77754c517b6dc76211
162
py
Python
dgbpy/__init__.py
maxprop/dgbpy
05d0900b0fb2cb612b298c8c78f0f84640a38c4e
[ "Apache-2.0" ]
7
2021-11-18T18:03:46.000Z
2022-02-09T06:55:50.000Z
dgbpy/__init__.py
maxprop/dgbpy
05d0900b0fb2cb612b298c8c78f0f84640a38c4e
[ "Apache-2.0" ]
null
null
null
dgbpy/__init__.py
maxprop/dgbpy
05d0900b0fb2cb612b298c8c78f0f84640a38c4e
[ "Apache-2.0" ]
1
2022-03-18T06:55:55.000Z
2022-03-18T06:55:55.000Z
# # (C) dGB Beheer B.V.; (LICENSE) http://opendtect.org/OpendTect_license.txt # AUTHOR : Bert # DATE : August 2018 # # Module init # __version__ = '1.0.0'
16.2
75
0.635802
27616031c83ae4189c96219a4ca18b7e0e254aed
1,052
py
Python
tests/test_country_service.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
100
2016-01-22T23:46:10.000Z
2022-03-26T05:00:53.000Z
tests/test_country_service.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
77
2016-01-19T06:10:22.000Z
2022-03-26T06:04:14.000Z
tests/test_country_service.py
gothill/python-fedex
62dc8f554babd7066d6c6e7c478944f30fc2b75b
[ "BSD-3-Clause" ]
102
2016-02-08T23:28:45.000Z
2022-02-28T11:37:27.000Z
""" Test module for the Fedex CountryService WSDL. """ import unittest import logging import sys sys.path.insert(0, '..') from fedex.services.country_service import FedexValidatePostalRequest # Common global config object for testing. from tests.common import get_fedex_config CONFIG_OBJ = get_fedex_config() loggin...
25.658537
75
0.742395
27621f7f93d71cdc400cae5017e3588d01c3c114
3,730
py
Python
setup_tools/getkucore.py
dougmassay/kindleunpack-calibre-plugin
906fc3820a9b1c179fc754ae5774ebe689a61419
[ "Unlicense", "MIT" ]
101
2015-03-24T10:29:15.000Z
2022-03-25T07:15:45.000Z
setup_tools/getkucore.py
dougmassay/kindleunpack-calibre-plugin
906fc3820a9b1c179fc754ae5774ebe689a61419
[ "Unlicense", "MIT" ]
3
2016-09-14T10:47:02.000Z
2018-01-09T13:32:29.000Z
setup_tools/getkucore.py
dougmassay/kindleunpack-calibre-plugin
906fc3820a9b1c179fc754ae5774ebe689a61419
[ "Unlicense", "MIT" ]
13
2015-09-28T07:05:18.000Z
2022-02-13T15:16:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab from __future__ import unicode_literals, division, absolute_import, print_function import os import sys import shutil import inspect import glob import zipfile import pythonpatch if sys.version_info >= (3,): import url...
36.930693
95
0.627346
2764c5afd2309a3e37c20e039e1d0182465889f2
5,696
py
Python
pymoku/_oscilloscope_data.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
11
2016-10-11T04:37:14.000Z
2021-09-10T02:34:03.000Z
pymoku/_oscilloscope_data.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
8
2017-06-02T18:19:49.000Z
2020-09-07T06:15:53.000Z
pymoku/_oscilloscope_data.py
liquidinstruments/pymoku
a10c2516e5953722a5f5b52aec7944bec22492c2
[ "MIT" ]
11
2018-07-12T04:18:40.000Z
2022-03-04T10:10:48.000Z
import struct from pymoku import _frame_instrument _OSC_SCREEN_WIDTH = 1024
35.6
78
0.596208
2764e8cf2af125cde1e1dea98f00be38d0e21369
6,205
py
Python
FlightRisingColiseum/Bot_FR.py
Eternal05/Flightrising-Coliseum-Bot
8f4895ff8a2d5533fe6a6546e09361738fd54910
[ "MIT" ]
1
2021-05-17T02:52:40.000Z
2021-05-17T02:52:40.000Z
FlightRisingColiseum/Bot_FR.py
Eternal05/Flightrising-Coliseum-Bot
8f4895ff8a2d5533fe6a6546e09361738fd54910
[ "MIT" ]
null
null
null
FlightRisingColiseum/Bot_FR.py
Eternal05/Flightrising-Coliseum-Bot
8f4895ff8a2d5533fe6a6546e09361738fd54910
[ "MIT" ]
null
null
null
import os from PIL import ImageGrab import time import win32api, win32con from PIL import ImageOps from numpy import * import pyautogui import random from ctypes import windll user32 = windll.user32 user32.SetProcessDPIAware() #some sort of DPS problem unrelated to project #this stops the images from be...
34.859551
134
0.604674
2764ee38e5ee492d56a5166db4a12d098e304e48
6,047
py
Python
models/layers.py
RemiDelaunay/DeepUSE
fea4220d53583fe3d4e63c870a62b04deb005eda
[ "MIT" ]
2
2021-08-19T07:40:35.000Z
2022-01-14T18:55:58.000Z
models/layers.py
RemiDelaunay/DeepUSE
fea4220d53583fe3d4e63c870a62b04deb005eda
[ "MIT" ]
null
null
null
models/layers.py
RemiDelaunay/DeepUSE
fea4220d53583fe3d4e63c870a62b04deb005eda
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable def additive_up_sampling(input, input_skip): upsampled = F.interpolate(input,size=input_skip.size()[2:4], mode='bilinear', align_corners=True) upsampled_split = torch.chunk(upsampled, 2, dim=1) upsampled_...
38.272152
123
0.64379
2765c7c3e9e989737c9e28cfcc8a7675bc22b1e5
907
py
Python
main.py
denissearenas/face_recognition_image
63f43ae188cc12ba443d2aeff84959eba95c9049
[ "MIT" ]
null
null
null
main.py
denissearenas/face_recognition_image
63f43ae188cc12ba443d2aeff84959eba95c9049
[ "MIT" ]
null
null
null
main.py
denissearenas/face_recognition_image
63f43ae188cc12ba443d2aeff84959eba95c9049
[ "MIT" ]
null
null
null
import logging from logging.config import fileConfig import os, os.path import imageRecognition #Test Folder TestFolder = 'WorkingFolder/TestImages/' # Create the Working folders working_folders = ['logs','.metadata','WorkingFolder','./Workingfolder/OutputImages'] [os.makedirs(folder) for folder in working_folders...
24.513514
114
0.680265
2768921c04ac38d6998b1d53e7d2b264cb24e683
755
py
Python
Medio 3/ex056.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Medio 3/ex056.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
Medio 3/ex056.py
Gustavsantos/python1
5520f2d2ee591157942008fdcd6bd42eb521f1a6
[ "MIT" ]
null
null
null
total = 0 media = 0 hmais = 0 no = '' contm = 0 from datetime import date atual = date.today().year for p in range(1,5): print('{} Pessoa'.format(p)) nome = str(input('Nome: ')).strip().capitalize() ns = int(input('O ano em que nasceu: ')) sexo = str(input('Sexo: ')).strip().upper() idade = atual -...
26.964286
67
0.564238
2768edd67418ad70fbc7628b2d0db9a2e7e067b6
9,575
py
Python
modules/cdp.py
experiencedft/defisaver-sim
1d1f05078efb634286df450b125677a1685a066e
[ "MIT" ]
13
2021-02-01T11:08:21.000Z
2022-01-13T05:29:11.000Z
modules/cdp.py
experiencedft/defisaver-sim
1d1f05078efb634286df450b125677a1685a066e
[ "MIT" ]
null
null
null
modules/cdp.py
experiencedft/defisaver-sim
1d1f05078efb634286df450b125677a1685a066e
[ "MIT" ]
5
2021-01-27T22:01:55.000Z
2022-02-20T22:14:16.000Z
''' The CDP module contains all the tools required to simulate a collateralized debt position, such as increasing or decreasing its leverage (boost and repay), closing the vault to calculate its lifetime profit, adding collateral or drawing more debt. The position is represented as an object whose methods provide a...
43.522727
129
0.593211
276b88f7bc15b02ea6b733a96f259241381fe73b
5,683
py
Python
clustertools/test/test_experiment.py
jm-begon/clustertools
264198d0ffbd60b883b7b6a2af79341425c7729b
[ "BSD-3-Clause" ]
7
2017-05-31T15:28:28.000Z
2021-03-25T12:36:48.000Z
clustertools/test/test_experiment.py
jm-begon/clustertools
264198d0ffbd60b883b7b6a2af79341425c7729b
[ "BSD-3-Clause" ]
42
2017-06-09T07:35:50.000Z
2019-08-29T15:23:29.000Z
clustertools/test/test_experiment.py
jm-begon/clustertools
264198d0ffbd60b883b7b6a2af79341425c7729b
[ "BSD-3-Clause" ]
3
2017-05-29T13:39:18.000Z
2019-06-24T09:43:01.000Z
# -*- coding: utf-8 -*- from functools import partial from nose.tools import assert_equal, assert_in, assert_less, assert_raises, \ with_setup, assert_true from nose.tools import assert_false from clustertools import ParameterSet, Result, Experiment from clustertools.state import RunningState, CompletedState, Abo...
36.664516
84
0.688193
276c363a6f57e3c85d7f037af185d706c5abdf10
1,657
py
Python
ed.py
zzx288/words
477516211cc43701ec4592a686f0bc06cbb9c141
[ "MIT" ]
null
null
null
ed.py
zzx288/words
477516211cc43701ec4592a686f0bc06cbb9c141
[ "MIT" ]
null
null
null
ed.py
zzx288/words
477516211cc43701ec4592a686f0bc06cbb9c141
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import codecs if __name__ == '__main__': words = read_file('F:\\cs') ''' test = codecs.open('F:\\760.xml', 'r',encoding='utf-8') words = test.read() test.close() ''' print ("splitting......") split=find_words(words) ci = code...
29.589286
92
0.556427
276d667a87fa4dfdeb86a4993f51124a0783875c
2,971
py
Python
acestream/ACEStream/Plugin/EngineWx.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Plugin/EngineWx.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
null
null
null
acestream/ACEStream/Plugin/EngineWx.py
GrandPaRPi/p2ptv-pi
6f79c00f9055a3763ddfe1dc41e14d2cb533f4c3
[ "MIT" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
#Embedded file name: ACEStream\Plugin\EngineWx.pyo import os import sys from traceback import print_exc try: import wxversion wxversion.select('2.8') except: pass try: import wx except: print 'wx is not installed' os._exit(1) import ACEStream from ACEStream.GlobalConfig import globalConfig fro...
31.946237
113
0.672164
276d90a94566353b66f7d294a0618d781bcf1b9c
899
py
Python
tcp_finite_state/client.py
aakashhemadri/python
16955810dd1ea491c9ff9c99ee02bd463ba97f0a
[ "MIT" ]
2
2021-01-20T14:08:26.000Z
2021-10-20T07:56:46.000Z
tcp_finite_state/client.py
aakashhemadri/python
16955810dd1ea491c9ff9c99ee02bd463ba97f0a
[ "MIT" ]
null
null
null
tcp_finite_state/client.py
aakashhemadri/python
16955810dd1ea491c9ff9c99ee02bd463ba97f0a
[ "MIT" ]
null
null
null
from tcp_statemachine import TCPStateMachine, Data import socket if __name__ == '__main__': main()
22.475
69
0.697442
276e00dcc9820a61c4d4ebff8a3b8b4d2a199a5f
467
py
Python
HackerRank/MinimumSwaps2.py
kokuraxc/play-ground
48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd
[ "MIT" ]
null
null
null
HackerRank/MinimumSwaps2.py
kokuraxc/play-ground
48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd
[ "MIT" ]
null
null
null
HackerRank/MinimumSwaps2.py
kokuraxc/play-ground
48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/minimum-swaps-2 # Complete the minimumSwaps function below.
25.944444
55
0.51606
277311deb8c817997aeecabf48fe1ce321691cbf
3,081
py
Python
source/conf.py
Kinovea/kinovea-docs
a2c4c9561bd4f8cc663efcaaed017c9c018b6b20
[ "CC0-1.0" ]
4
2020-11-17T18:09:42.000Z
2021-12-29T07:34:29.000Z
source/conf.py
Kinovea/kinovea-docs
a2c4c9561bd4f8cc663efcaaed017c9c018b6b20
[ "CC0-1.0" ]
4
2021-07-12T09:41:06.000Z
2021-11-01T19:22:05.000Z
source/conf.py
Kinovea/kinovea-docs
a2c4c9561bd4f8cc663efcaaed017c9c018b6b20
[ "CC0-1.0" ]
1
2021-07-12T05:17:47.000Z
2021-07-12T05:17:47.000Z
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
30.205882
91
0.683544
277376eb0677ba7d0fb6770b5320ed63bd24de63
51
py
Python
0-hello-world/hello.py
zeyuri/computer-science-and-python-intro
178ff6647586fb2be716bb3c4796b03310731583
[ "MIT" ]
null
null
null
0-hello-world/hello.py
zeyuri/computer-science-and-python-intro
178ff6647586fb2be716bb3c4796b03310731583
[ "MIT" ]
null
null
null
0-hello-world/hello.py
zeyuri/computer-science-and-python-intro
178ff6647586fb2be716bb3c4796b03310731583
[ "MIT" ]
null
null
null
msg = "Hello World, i'm coming for you" print(msg)
17
39
0.686275
2775121ab7502b6919cf78437931035cd8b7a2d9
158
py
Python
src/onegov/user/auth/clients/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/auth/clients/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/auth/clients/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.user.auth.clients.kerberos import KerberosClient from onegov.user.auth.clients.ldap import LDAPClient __all__ = ('KerberosClient', 'LDAPClient')
31.6
60
0.816456
27756bad277e04032903ed08ddd795ce38d122b8
746
py
Python
img_utils/files/file.py
DewMaple/image_utils
a0ca6a1b088389f5a70df60623e629634d57065a
[ "MIT" ]
null
null
null
img_utils/files/file.py
DewMaple/image_utils
a0ca6a1b088389f5a70df60623e629634d57065a
[ "MIT" ]
null
null
null
img_utils/files/file.py
DewMaple/image_utils
a0ca6a1b088389f5a70df60623e629634d57065a
[ "MIT" ]
null
null
null
import glob import os def images_in_dir(images_dir, file_types=('*.png', '*.jpg', '*.jpeg', '*.gif')): """ :param images_dir: directory that contains target images :param file_types: image files extend :return: full image file path list """ file_names = [] for ext in file_types: fi...
23.3125
80
0.647453
277599814e255a220a50444d8861eabc112abdd1
4,931
py
Python
financial_fundamentals/xbrl.py
Mahesh-Salunke/financial_fundamentals
421e7550e2c4b2cc9cc0ee8cb15ce2ad0d89234f
[ "Apache-2.0" ]
122
2015-01-28T17:57:08.000Z
2022-02-12T12:24:55.000Z
financial_fundamentals/xbrl.py
Mahesh-Salunke/financial_fundamentals
421e7550e2c4b2cc9cc0ee8cb15ce2ad0d89234f
[ "Apache-2.0" ]
1
2016-11-07T17:02:02.000Z
2016-11-09T20:51:50.000Z
financial_fundamentals/xbrl.py
Mahesh-Salunke/financial_fundamentals
421e7550e2c4b2cc9cc0ee8cb15ce2ad0d89234f
[ "Apache-2.0" ]
49
2015-01-01T03:12:27.000Z
2021-07-06T10:19:31.000Z
''' Created on Oct 8, 2013 @author: akittredge ''' import dateutil.parser import xmltodict from financial_fundamentals.exceptions import ValueNotInFilingDocument
34.482517
88
0.602515
277624309012d3684e6506d164e645ba545c1547
6,235
py
Python
geospacelab/datahub/sources/wdc/dst/downloader.py
JouleCai/GeoSpaceLab
6cc498d3c32501e946931de596a840c73e83edb3
[ "BSD-3-Clause" ]
19
2021-08-07T08:49:22.000Z
2022-03-02T18:26:30.000Z
geospacelab/datahub/sources/wdc/dst/downloader.py
JouleCai/GeoSpaceLab
6cc498d3c32501e946931de596a840c73e83edb3
[ "BSD-3-Clause" ]
4
2021-11-09T05:53:42.000Z
2022-03-25T11:49:37.000Z
geospacelab/datahub/sources/wdc/dst/downloader.py
JouleCai/GeoSpaceLab
6cc498d3c32501e946931de596a840c73e83edb3
[ "BSD-3-Clause" ]
3
2021-11-07T11:41:20.000Z
2022-02-14T13:43:11.000Z
# Licensed under the BSD 3-Clause License # Copyright (C) 2021 GeospaceLab (geospacelab) # Author: Lei Cai, Space Physics and Astronomy, University of Oulu __author__ = "Lei Cai" __copyright__ = "Copyright 2021, GeospaceLab" __license__ = "BSD-3-Clause License" __email__ = "lei.cai@oulu.fi" __docformat__ = "reStructur...
38.018293
277
0.577225
277858124203940aedb7475ae3b0715e859459a7
914
py
Python
services/login_service.py
EderBevacqua/OPE_ADS_3C
af6e2a1757c82080dc5f6c1f7759f29f408341cc
[ "Apache-2.0" ]
null
null
null
services/login_service.py
EderBevacqua/OPE_ADS_3C
af6e2a1757c82080dc5f6c1f7759f29f408341cc
[ "Apache-2.0" ]
6
2020-06-14T21:50:25.000Z
2020-06-15T19:39:01.000Z
services/login_service.py
EderBevacqua/OPE_ADS_4C
af6e2a1757c82080dc5f6c1f7759f29f408341cc
[ "Apache-2.0" ]
null
null
null
from infra.usuario_dao import \ listar as dao_listar, \ consultar as dao_consultar, \ cadastrar as dao_cadastrar, \ alterar as dao_alterar, \ remover as dao_remover,\ loadUserEmail as dao_loadUserEmail,\ validarLogin as dao_validarLogin,\ validaMatriculaUsuario as dao_validaMatriculaUsua...
30.466667
58
0.789934
27797d81ccdfc4597762321be84ef3aaa9517905
421
py
Python
server/apps/org/permissions.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/org/permissions.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/org/permissions.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
from rest_framework import permissions
32.384615
88
0.736342
277b82514a7515e164e8b41c060b3213bef8d2d0
473
py
Python
multi_domain/utils.py
newbieyd/multi-domain_NER
78443f79cebf7c2fe1058bc6ba2dc793d0907574
[ "Apache-2.0" ]
3
2020-10-26T02:23:57.000Z
2021-01-28T09:29:35.000Z
multi_domain/utils.py
newbieyd/multi-domain_NER
78443f79cebf7c2fe1058bc6ba2dc793d0907574
[ "Apache-2.0" ]
null
null
null
multi_domain/utils.py
newbieyd/multi-domain_NER
78443f79cebf7c2fe1058bc6ba2dc793d0907574
[ "Apache-2.0" ]
1
2021-01-28T09:29:39.000Z
2021-01-28T09:29:39.000Z
import random import torch import numpy as np # # F1
19.708333
43
0.5074
277c94d5ec87dc5540702d806c2c486ab6812053
769
py
Python
server/app/budget/migrations/0004_auto_20210521_1347.py
catvitalio/personal-budget
b4470115ebbfd185a8a781a2024787cbfe822639
[ "MIT" ]
null
null
null
server/app/budget/migrations/0004_auto_20210521_1347.py
catvitalio/personal-budget
b4470115ebbfd185a8a781a2024787cbfe822639
[ "MIT" ]
null
null
null
server/app/budget/migrations/0004_auto_20210521_1347.py
catvitalio/personal-budget
b4470115ebbfd185a8a781a2024787cbfe822639
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2021-05-21 06:47 from django.db import migrations, models
26.517241
78
0.579974
277c9b03dc3a5dfcdb9e0188ddbb3e71c27016ed
146
py
Python
recommendations_system/io_/__init__.py
mmikolajczak/recommendation_system_hetrec2011_movielens
3ae13e62605ffbf5517bc2079e086a400de48748
[ "MIT" ]
4
2019-12-04T08:42:21.000Z
2020-06-07T07:22:08.000Z
recommendations_system/io_/__init__.py
mmikolajczak/recommendation_system_hetrec2011_movielens
3ae13e62605ffbf5517bc2079e086a400de48748
[ "MIT" ]
null
null
null
recommendations_system/io_/__init__.py
mmikolajczak/recommendation_system_hetrec2011_movielens
3ae13e62605ffbf5517bc2079e086a400de48748
[ "MIT" ]
null
null
null
from ._load_hetrec import load_hetrec_to_df from ._df2ffm import DF2FFMConverter from ._utils import load_ffm, save_ffm, load_pickle, save_pickle
36.5
64
0.856164
277cde189ead3857304afdc2356fa310f621847b
7,689
py
Python
Stack_Exchange/py2_text.py
sadahanu/DataScience_SideProject
f476fe939d660099e3209b91bbd5cb883b37b2d3
[ "MIT" ]
null
null
null
Stack_Exchange/py2_text.py
sadahanu/DataScience_SideProject
f476fe939d660099e3209b91bbd5cb883b37b2d3
[ "MIT" ]
null
null
null
Stack_Exchange/py2_text.py
sadahanu/DataScience_SideProject
f476fe939d660099e3209b91bbd5cb883b37b2d3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Dec 13 23:10:40 2016 @author: zhouyu """ #%% import pandas as pd import numpy as np import os import re import nltk from nltk.corpus import stopwords from bs4 import BeautifulSoup os.chdir('/Users/zhouyu/Documents/Zhou_Yu/DS/kaggle_challenge/text processing') #%% step1: impor...
38.253731
110
0.694629
277d5ee604563ea1b0d6b261faa48f33c379cba6
1,210
py
Python
tests/test_types.py
apparentlymart/python-stl
befec2266b4a6b201ecc3c4c42007a5c24e90566
[ "MIT" ]
9
2015-01-25T19:46:31.000Z
2018-07-04T03:32:46.000Z
tests/test_types.py
apparentlymart/python-stl
befec2266b4a6b201ecc3c4c42007a5c24e90566
[ "MIT" ]
10
2015-03-10T19:04:34.000Z
2018-11-03T04:46:57.000Z
tests/test_types.py
apparentlymart/python-stl
befec2266b4a6b201ecc3c4c42007a5c24e90566
[ "MIT" ]
15
2015-03-07T21:46:44.000Z
2021-12-02T20:03:21.000Z
import unittest from stl.types import *
23.72549
61
0.333884
277d94d70e278173e780c161c144680891ccd6df
116
py
Python
server/domain/datasets/exceptions.py
multi-coop/catalogage-donnees
1d70401ff6c7b01ec051460a253cb105adf65911
[ "MIT" ]
null
null
null
server/domain/datasets/exceptions.py
multi-coop/catalogage-donnees
1d70401ff6c7b01ec051460a253cb105adf65911
[ "MIT" ]
14
2022-01-25T17:56:52.000Z
2022-01-28T17:47:59.000Z
server/domain/datasets/exceptions.py
multi-coop/catalogage-donnees
1d70401ff6c7b01ec051460a253cb105adf65911
[ "MIT" ]
null
null
null
from ..common.exceptions import DoesNotExist
19.333333
44
0.793103
277dc18fc44eab6c4ec0aeec52c4030e30b5d869
967
py
Python
pysimplegui/DemoPrograms/Demo_Design_Pattern_Multiple_Windows2.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
pysimplegui/DemoPrograms/Demo_Design_Pattern_Multiple_Windows2.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
2
2020-06-06T00:30:56.000Z
2021-06-10T22:30:37.000Z
pysimplegui/DemoPrograms/Demo_Design_Pattern_Multiple_Windows2.py
konsan1101/py-etc
bcca13119b0d2453866988404fd1c4976f55d4d5
[ "MIT" ]
null
null
null
import PySimpleGUI as sg """ PySimpleGUI The Complete Course Lesson 7 Multiple Independent Windows """ # Design pattern 2 - First window remains active layout = [[ sg.Text('Window 1'),], [sg.Input()], [sg.Text('', size=(20,1), key='-OUTPUT-')], [sg.Button('Launch 2'), sg.Butt...
24.794872
53
0.584281
2780f36861b56fbdc559cec62df68437bb7c262c
6,277
py
Python
pexpo.py
joeyspacerocks/pexpo
1b668bd3d8b399570f938d0b5e9e9545db2ad059
[ "Apache-2.0" ]
1
2016-05-07T12:32:36.000Z
2016-05-07T12:32:36.000Z
pexpo.py
joeyspacerocks/pexpo
1b668bd3d8b399570f938d0b5e9e9545db2ad059
[ "Apache-2.0" ]
33
2020-07-02T10:24:56.000Z
2020-08-03T17:26:23.000Z
pexpo.py
joeyspacerocks/pexpo
1b668bd3d8b399570f938d0b5e9e9545db2ad059
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import os import sys import StringIO import argparse import json import zipfile from PIL import Image, ImageColor import xml.etree.cElementTree as ET # TODO: compose multiple layers if __name__ == '__main__': sys.exit(main(sys.argv[0], sys.argv[1:]))
25.51626
124
0.608252
27811ac83801b7707ced28bf3be304104b0b4fe0
212
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/onsets/admin.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/onsets/admin.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/onsets/admin.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from calls.onsets.models import Recording admin.site.register(Recording, RecordingAdmin)
26.5
47
0.783019
27822976fe232c6827409ee540cdeeef7ab6474f
505
py
Python
secrets_sample.py
barbudor/upy-door-sensor
ce34226203c0f08b7b10dcdcb6f6f4f2f8689754
[ "MIT" ]
5
2020-04-12T17:10:23.000Z
2021-09-24T19:56:01.000Z
secrets_sample.py
barbudor/upy-door-sensor
ce34226203c0f08b7b10dcdcb6f6f4f2f8689754
[ "MIT" ]
null
null
null
secrets_sample.py
barbudor/upy-door-sensor
ce34226203c0f08b7b10dcdcb6f6f4f2f8689754
[ "MIT" ]
null
null
null
""" Your secrets and configurations items you must rename this file secrets.py and customize as needed """ # Wifi settings SSID = "mywifi" PASSWD = "thesecretpassword" # Network - comment to use DHCP (but slighly slower) IPADDR = "192.168.0.100" MASK = "255.255.255.0" GW = "192.168.0.1" DNS = "1.1.1.1" # MQTT s...
25.25
64
0.683168
27824e9b0a8bb25e5664e1e7337a726628d28d71
2,000
py
Python
src/d007/index.py
Yangfan2016/learn-python
84a375cda9d51349ae0a0faf1dc6444ac83ed948
[ "MIT" ]
null
null
null
src/d007/index.py
Yangfan2016/learn-python
84a375cda9d51349ae0a0faf1dc6444ac83ed948
[ "MIT" ]
null
null
null
src/d007/index.py
Yangfan2016/learn-python
84a375cda9d51349ae0a0faf1dc6444ac83ed948
[ "MIT" ]
null
null
null
# 1 from random import randint import os import time # marquee() # 2 # print(genrentae_code()) # print(genrentae_code(6)) # 3 # print(get_suffix("a.doc")) # print(get_suffix("a.tmp.txt")) # print(get_suffix("abac")) # 4 # print(max2([1,3,5,7])) # 5 # print(which_day(2019, 5, 25)) # 6 pascal_tria...
15.151515
74
0.515
27830a56e67664f45133b9939b59406608cd3555
147
py
Python
maintenance_mode/utils.py
fallen/django-maintenance-mode
826b18ca3c768ab5dbd3f665886106b0eb702de9
[ "MIT" ]
282
2015-06-08T22:57:44.000Z
2022-03-28T17:44:40.000Z
maintenance_mode/utils.py
fallen/django-maintenance-mode
826b18ca3c768ab5dbd3f665886106b0eb702de9
[ "MIT" ]
82
2015-08-24T09:27:07.000Z
2022-02-08T20:12:48.000Z
maintenance_mode/utils.py
fallen/django-maintenance-mode
826b18ca3c768ab5dbd3f665886106b0eb702de9
[ "MIT" ]
59
2015-06-16T13:06:10.000Z
2022-02-08T20:10:20.000Z
# -*- coding: utf-8 -*- def get_client_ip_address(request): """ Get the client IP Address. """ return request.META['REMOTE_ADDR']
18.375
38
0.612245
27845720229d1cbede001bd8fe6879c12c7dc607
2,117
py
Python
dex/command/commands/DexUnreachable.py
TomWeaver18/dexter
d89b66ca6a0d1ba29a4c32f152773a34ce2881e8
[ "MIT" ]
null
null
null
dex/command/commands/DexUnreachable.py
TomWeaver18/dexter
d89b66ca6a0d1ba29a4c32f152773a34ce2881e8
[ "MIT" ]
null
null
null
dex/command/commands/DexUnreachable.py
TomWeaver18/dexter
d89b66ca6a0d1ba29a4c32f152773a34ce2881e8
[ "MIT" ]
null
null
null
# DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # # Copyright (c) 2019 by SN Systems Ltd., Sony Interactive Entertainment Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
38.490909
79
0.691072
2786bc277b70a50e0d89afd7f11a15c26b25b2fa
1,825
py
Python
tests/test_platform.py
rennerocha/bottery
a082cfa1c21f9aa32ea1526ea3004b581f9e0cd4
[ "MIT" ]
null
null
null
tests/test_platform.py
rennerocha/bottery
a082cfa1c21f9aa32ea1526ea3004b581f9e0cd4
[ "MIT" ]
null
null
null
tests/test_platform.py
rennerocha/bottery
a082cfa1c21f9aa32ea1526ea3004b581f9e0cd4
[ "MIT" ]
null
null
null
import inspect import pytest from bottery.platform import BaseEngine def test_baseengine_platform_name_not_implemented(): """Check if attributes from the public API raise NotImplementedError""" engine = BaseEngine() with pytest.raises(NotImplementedError): getattr(engine, 'platform') def t...
27.651515
88
0.706301
27871567eec68506ebdf03b82d43a00ac9173647
26,071
py
Python
sarkas/potentials/core.py
lucianogsilvestri/sarkas
f4ab00014d09976561fbd4349b9d0610e47a61e1
[ "MIT" ]
null
null
null
sarkas/potentials/core.py
lucianogsilvestri/sarkas
f4ab00014d09976561fbd4349b9d0610e47a61e1
[ "MIT" ]
null
null
null
sarkas/potentials/core.py
lucianogsilvestri/sarkas
f4ab00014d09976561fbd4349b9d0610e47a61e1
[ "MIT" ]
null
null
null
""" Module handling the potential class. """ from copy import deepcopy from fmm3dpy import hfmm3d, lfmm3d from numpy import array, ndarray, pi, sqrt, tanh from warnings import warn from ..utilities.exceptions import AlgorithmWarning from ..utilities.fdints import fdm1h, invfd1h from .force_pm import force_optimized_gr...
36.260083
121
0.603199
27877c156aab625b9201be4f2bcf3caf8ade21c6
328
py
Python
forest_lite/server/routers/api.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
6
2020-08-05T16:12:57.000Z
2022-01-06T01:34:19.000Z
forest_lite/server/routers/api.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
49
2020-08-14T13:58:32.000Z
2021-06-29T11:42:32.000Z
forest_lite/server/routers/api.py
uk-gov-mirror/MetOffice.forest-lite
9406b53f7e6a9651eb675e0ac2e5945421b25557
[ "BSD-3-Clause" ]
2
2020-12-03T09:24:13.000Z
2021-04-11T06:10:36.000Z
from fastapi import APIRouter router = APIRouter()
19.294118
62
0.564024
278849dea2ba5567753d1997063d53e6a66da898
593
py
Python
tests/lupin/validators/test_match.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
22
2017-10-18T08:27:20.000Z
2022-03-25T18:53:43.000Z
tests/lupin/validators/test_match.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
5
2019-09-16T15:31:55.000Z
2022-02-10T08:29:14.000Z
tests/lupin/validators/test_match.py
Clustaar/lupin
9ef73642d84a99adb80abf5a922a9422ddae9254
[ "MIT" ]
null
null
null
import re import pytest from lupin.errors import InvalidMatch from lupin.validators import Match
22.807692
64
0.699831
2788acf8b816fa004267a5988eb11b0290795f1e
289
py
Python
scripts/face_wall.py
Meeshbhoombah/burnt
c10113e7904c5d13c0feedc337681fb41f1006a7
[ "MIT" ]
null
null
null
scripts/face_wall.py
Meeshbhoombah/burnt
c10113e7904c5d13c0feedc337681fb41f1006a7
[ "MIT" ]
null
null
null
scripts/face_wall.py
Meeshbhoombah/burnt
c10113e7904c5d13c0feedc337681fb41f1006a7
[ "MIT" ]
null
null
null
#!/usr/bin/env python spacing = 0.1 # m lines = [] for c in range(0, 8): rs = [range(11), reversed(range(11))][c % 2] for r in rs: lines.append(' {"point": [%.2f, %.2f, %.2f]}' % (c*spacing, 0, (r)*spacing)) print '[\n' + ',\n'.join(lines) + '\n]'
24.083333
56
0.460208
27893fac576198dea3db960f02abcae0e0707306
1,237
py
Python
201220/Q8958.py
JongGuk/BOJ
dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15
[ "MIT" ]
null
null
null
201220/Q8958.py
JongGuk/BOJ
dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15
[ "MIT" ]
null
null
null
201220/Q8958.py
JongGuk/BOJ
dd447d9f65481de19a3c0b4f8bb8b5f3d6277c15
[ "MIT" ]
null
null
null
'''There is an objective test result such as OOXXOXXOOO. An O means a correct answer of a problem and an X means a wrong answer. The score of each problem of this test is calculated by itself and its just previous consecutive Os only when the answer is correct. For example, the score of the 10th problem is 3 that is o...
49.48
114
0.720291
278941aab99fac086f38eb414bccf8c30fd00617
328
py
Python
common/tasks.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
12
2017-12-24T13:58:17.000Z
2021-04-06T16:21:00.000Z
common/tasks.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
null
null
null
common/tasks.py
gaomugong/flask-demo
83bfb04634355565456cc16a5e98421338e3f562
[ "MIT" ]
1
2021-10-17T14:45:44.000Z
2021-10-17T14:45:44.000Z
# -*- coding: utf-8 -*- from app import celery, app # from common.extensions import celery # from flask import current_app # # # @celery.task() # def add_together(a, b): # current_app.logger.info('hello world') # return a + b
18.222222
44
0.652439
2789b658170df8dfdb61f142d656fdcfa80baf19
11,411
py
Python
Code/3_linear_regression_on_pixels.py
jjatinggoyal/accessbility-indicators
7126d3bc33dc6dadbcf6d9000d6ef6d432f093c0
[ "MIT" ]
null
null
null
Code/3_linear_regression_on_pixels.py
jjatinggoyal/accessbility-indicators
7126d3bc33dc6dadbcf6d9000d6ef6d432f093c0
[ "MIT" ]
null
null
null
Code/3_linear_regression_on_pixels.py
jjatinggoyal/accessbility-indicators
7126d3bc33dc6dadbcf6d9000d6ef6d432f093c0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """3_Linear_regression_on_pixels.ipynb Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1nhECM9OxwIw8BjEqsQcSUwojX2KYrh1I """ from google.colab import drive #to retrieve data from drive drive.mount('/content/drive/') cd 'driv...
52.344037
155
0.729997
278a8dffe7af41773e706a3b3b7522cea3642494
127
py
Python
ccc/cfg.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
15
2018-04-18T13:25:30.000Z
2022-03-04T09:25:41.000Z
ccc/cfg.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
221
2018-04-12T06:29:43.000Z
2022-03-27T03:01:40.000Z
ccc/cfg.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
29
2018-04-11T14:42:23.000Z
2021-11-09T16:26:32.000Z
import functools import ci.util ctx = ci.util.ctx()
11.545455
28
0.716535
278e170fcb4a1f505f51883094b18a872922bd6e
2,459
py
Python
scripts/create_grids.py
edwardoughton/taddle
f76ca6067e6fca6b699675ab038c31c9444e0a79
[ "MIT" ]
9
2020-08-18T04:25:00.000Z
2022-03-18T16:42:33.000Z
scripts/create_grids.py
edwardoughton/arpu_predictor
f76ca6067e6fca6b699675ab038c31c9444e0a79
[ "MIT" ]
null
null
null
scripts/create_grids.py
edwardoughton/arpu_predictor
f76ca6067e6fca6b699675ab038c31c9444e0a79
[ "MIT" ]
4
2020-01-27T01:48:30.000Z
2021-12-01T16:48:17.000Z
""" Create 10km x 10km grid using the country shapefile. Written by Ed Oughton. Winter 2020 """ import argparse import os import configparser import geopandas as gpd from shapely.geometry import Polygon, mapping import pandas as pd import numpy as np import rasterio from rasterstats import zonal_stats BASE_DIR = '....
26.44086
94
0.699471
27907e0aff23ef4fbe2d4a38e27570505c4caa34
366
py
Python
test/test_all.py
beremaran/spdown
59e5ea6996be51ad015f9da6758e2ce556b9fb94
[ "MIT" ]
2
2019-08-13T15:13:58.000Z
2019-10-04T09:09:24.000Z
test/test_all.py
beremaran/spdown
59e5ea6996be51ad015f9da6758e2ce556b9fb94
[ "MIT" ]
4
2021-02-08T20:23:42.000Z
2022-03-11T23:27:07.000Z
test/test_all.py
beremaran/spdown
59e5ea6996be51ad015f9da6758e2ce556b9fb94
[ "MIT" ]
null
null
null
#!/usr/bin/env python import unittest test_modules = [ 'test.test_config', 'test.test_secrets', 'test.test_spotify', 'test.test_youtube' ] if __name__ == "__main__": suite = unittest.TestSuite() for tm in test_modules: suite.addTest(unittest.defaultTestLoader.loadTestsFromName(tm)) ...
19.263158
71
0.691257
2790d75b4b157f35c41640a672fd75216eb8137c
1,281
py
Python
tests/rec_util.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
tests/rec_util.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
tests/rec_util.py
pablohawz/tfg-Scan-Paint-clone
056cd50d9e4274620cf085a41ed9d326e16dd47b
[ "MIT" ]
null
null
null
import os import tempfile from time import time import numpy as np import sounddevice as sd from PySide2.QtWidgets import QApplication, QFileDialog from scipy.io.wavfile import write # Config t = 3 # s fs = 44100 if __name__ == '__main__': main()
20.66129
67
0.565964
2792236e3960ae778ac604767d58c8cfaef78404
10,977
py
Python
test/comptests/TestHybridQuasiGaussian.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-08-18T18:34:41.000Z
2021-12-24T07:05:19.000Z
test/comptests/TestHybridQuasiGaussian.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
null
null
null
test/comptests/TestHybridQuasiGaussian.py
sschlenkrich/HybridMonteCarlo
72f54aa4bcd742430462b27b72d70369c01f9ac4
[ "MIT" ]
3
2021-01-31T11:41:19.000Z
2022-03-25T19:51:20.000Z
#!/usr/bin/python import sys sys.path.append('./') import unittest import copy import numpy as np from hybmc.mathutils.Helpers import BlackImpliedVol, BlackVega from hybmc.termstructures.YieldCurve import YieldCurve from hybmc.models.AssetModel import AssetModel from hybmc.models.HybridModel import HybridModel from...
41.579545
125
0.484376
27939e55222086ece981ba3a6efa56f956601617
143
py
Python
model/__init__.py
Blind-Aid/sentiment-discovery
081c7c855e00864b52e97cac0b0e097cc86d9731
[ "BSD-3-Clause" ]
1,093
2017-12-05T20:35:45.000Z
2022-02-26T17:48:30.000Z
model/__init__.py
Blind-Aid/sentiment-discovery
081c7c855e00864b52e97cac0b0e097cc86d9731
[ "BSD-3-Clause" ]
67
2017-12-05T22:02:55.000Z
2021-05-25T09:06:41.000Z
model/__init__.py
Blind-Aid/sentiment-discovery
081c7c855e00864b52e97cac0b0e097cc86d9731
[ "BSD-3-Clause" ]
207
2017-12-05T20:59:45.000Z
2022-03-08T09:32:39.000Z
from .distributed import * from .model import * from .sentiment_classifier import * from .transformer import * from .transformer_utils import *
28.6
35
0.797203
2793c0f51d8fcdcbec81fb953d41e2dc42b499c2
2,927
py
Python
SIP/src/peer/peer.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
3
2019-06-18T18:21:05.000Z
2021-07-15T06:28:25.000Z
SIP/src/peer/peer.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
4
2019-01-30T11:31:13.000Z
2019-03-06T12:36:54.000Z
SIP/src/peer/peer.py
trishantpahwa/Session-Initiation-Protocol
5b770dbb9533fbe3a8ff31fc583576cc107e5ba8
[ "MIT" ]
1
2019-08-12T11:31:23.000Z
2019-08-12T11:31:23.000Z
import socket
28.696078
75
0.60574
279582d504d9da0d858f00c0d357db9ba41aecb7
3,387
py
Python
champ_bringup/scripts/joint_calibrator_relay.py
lubitz99/champ
2e4c8606db9a365866726ea84e8107c14ee9446d
[ "BSD-3-Clause" ]
923
2020-04-06T15:09:24.000Z
2022-03-30T15:34:08.000Z
champ_bringup/scripts/joint_calibrator_relay.py
lubitz99/champ
2e4c8606db9a365866726ea84e8107c14ee9446d
[ "BSD-3-Clause" ]
73
2020-05-12T09:23:12.000Z
2022-03-28T06:22:16.000Z
champ_bringup/scripts/joint_calibrator_relay.py
lubitz99/champ
2e4c8606db9a365866726ea84e8107c14ee9446d
[ "BSD-3-Clause" ]
229
2020-04-26T06:32:28.000Z
2022-03-29T08:07:28.000Z
#!/usr/bin/env python ''' Copyright (c) 2019-2020, Juan Miguel Jimeno 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, thi...
45.16
110
0.749631
279641443118aebc70b220bf9dae1dc53a9d2fc4
3,909
py
Python
touchdown/aws/vpc/vpc.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
14
2015-01-05T18:18:04.000Z
2022-02-07T19:35:12.000Z
touchdown/aws/vpc/vpc.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
106
2015-01-06T00:17:13.000Z
2019-09-07T00:35:32.000Z
touchdown/aws/vpc/vpc.py
yaybu/touchdown
70ecda5191ce2d095bc074dcb23bfa1584464814
[ "Apache-2.0" ]
5
2015-01-30T10:18:24.000Z
2022-02-07T19:35:13.000Z
# Copyright 2014 Isotoma Limited # # 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 applicable law or agreed to in writing...
32.575
84
0.660783
2796c1a0814e47f59cba47b456a1373f8929dd6d
77
py
Python
backend_django/type/__init__.py
mehranagh20/Typonent
702ae3e018dcffb952c870b0a680f2475845b744
[ "MIT" ]
4
2017-03-24T19:14:29.000Z
2017-04-02T18:23:25.000Z
backend_django/type/__init__.py
mehranagh20/typing_site
702ae3e018dcffb952c870b0a680f2475845b744
[ "MIT" ]
4
2017-03-25T20:25:04.000Z
2017-03-31T17:18:23.000Z
backend_django/type/__init__.py
mehranagh20/typing_site
702ae3e018dcffb952c870b0a680f2475845b744
[ "MIT" ]
null
null
null
# from type.models import User, Requirement, Involvement, Competition, Text
25.666667
75
0.792208
2797b6dfc818a3de2bc52aaf5906014401475627
793
py
Python
estructuras de control secuenciales/ejercicio10.py
svcuellar/algoritmos_programacion
0813ee6a2ccb605557a7920bf82440b7388b49e8
[ "MIT" ]
null
null
null
estructuras de control secuenciales/ejercicio10.py
svcuellar/algoritmos_programacion
0813ee6a2ccb605557a7920bf82440b7388b49e8
[ "MIT" ]
null
null
null
estructuras de control secuenciales/ejercicio10.py
svcuellar/algoritmos_programacion
0813ee6a2ccb605557a7920bf82440b7388b49e8
[ "MIT" ]
null
null
null
""" entradas cantidadchelinesaustriacos-->c-->float cantidaddragmasgriegos-->dg-->float cantidadpesetas-->p-->float salidas chelines_a_pesetas-->c_p-->float dragmas_a_francosfrancese-->dg_ff-->float pesetas_a_dolares-->p_d-->float pesetas_a_lirasitalianas-->p_li-->float """ #entradas c=float(input("Ingrese la cantida...
28.321429
78
0.726356