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
2e6db740bfd18316b5341b49fe5013fc2673f569
2,980
py
Python
trunk/bin/comparecatalogs.py
drmegannewsome/lcogtsnpipe
f00afa7aa68fb0e7aa35aab57c201e54e293b20b
[ "MIT" ]
null
null
null
trunk/bin/comparecatalogs.py
drmegannewsome/lcogtsnpipe
f00afa7aa68fb0e7aa35aab57c201e54e293b20b
[ "MIT" ]
60
2020-05-11T22:57:18.000Z
2022-03-29T19:40:22.000Z
trunk/bin/comparecatalogs.py
drmegannewsome/lcogtsnpipe
f00afa7aa68fb0e7aa35aab57c201e54e293b20b
[ "MIT" ]
6
2020-09-01T17:32:08.000Z
2022-02-23T13:44:29.000Z
#!/usr/bin/env python import lsc import os import argparse default_catdir = os.path.join(os.getenv('LCOSNDIR', lsc.util.workdirectory), 'standard', 'cat') parser = argparse.ArgumentParser() parser.add_argument('-F', '--force', action='store_true', help="try to download catalog even if we've tried before") parser.add...
54.181818
152
0.611074
2e6e8ec880f24d3251f774282a2d062d6127ec12
582
py
Python
tests/unit/test_uri.py
digital-land/pipeline
7ecd3fdaa201227a28463a6c5b5870c1152c0e73
[ "MIT" ]
3
2020-03-05T09:00:27.000Z
2020-11-13T12:48:32.000Z
tests/unit/test_uri.py
digital-land/pipeline
7ecd3fdaa201227a28463a6c5b5870c1152c0e73
[ "MIT" ]
2
2020-10-14T14:50:49.000Z
2020-10-27T13:39:08.000Z
tests/unit/test_uri.py
digital-land/pipeline
7ecd3fdaa201227a28463a6c5b5870c1152c0e73
[ "MIT" ]
2
2020-05-18T14:36:14.000Z
2020-11-13T12:48:35.000Z
from digital_land.log import IssueLog from digital_land.datatype.uri import URIDataType
27.714286
80
0.649485
2e74549502ee3fbceab7d78082a65a25de94f1a2
471
py
Python
pyhsgw/hs_set_value.py
zopyx/pyHSgw
42f9cdf375130f601f7a35cf1caee3c5a49ab484
[ "BSD-3-Clause" ]
null
null
null
pyhsgw/hs_set_value.py
zopyx/pyHSgw
42f9cdf375130f601f7a35cf1caee3c5a49ab484
[ "BSD-3-Clause" ]
null
null
null
pyhsgw/hs_set_value.py
zopyx/pyHSgw
42f9cdf375130f601f7a35cf1caee3c5a49ab484
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import hsgw from sys import argv, exit if len(argv) != 4: print argv[0], "<key> <addr> <value>" (key, addr, value) = argv[1:] print "key =", key print "addr =", addr print "value =", value if not hsgw.initConnection(key = key): print "Could not initialize connection." exit(1) print "S...
21.409091
107
0.647558
2e74ca3a12ea7ed1aacea732de257ba7d9e4fd0b
4,727
py
Python
log_to_blockchain.py
sandialabs/idash2018task1
46a53c882f3c5f81cabb9c1b0a463f1ec6f9f414
[ "BSD-3-Clause" ]
1
2020-08-03T20:52:52.000Z
2020-08-03T20:52:52.000Z
log_to_blockchain.py
sandialabs/idash2018task1
46a53c882f3c5f81cabb9c1b0a463f1ec6f9f414
[ "BSD-3-Clause" ]
null
null
null
log_to_blockchain.py
sandialabs/idash2018task1
46a53c882f3c5f81cabb9c1b0a463f1ec6f9f414
[ "BSD-3-Clause" ]
2
2018-11-25T22:31:08.000Z
2020-08-03T20:52:56.000Z
#TODO: thread to balance optimize disk i/o vs network, try to saturate #TODO: look into the rawtransaction way of doing multiple things at once #TODO: look into optimizing/issuing network directly, instead of through RPC #import subprocess import binascii import math import json import time import random import argpars...
34.253623
94
0.549397
2e75770b92a6d34a174f44d7a7fbf15962d178f4
39
py
Python
python/testData/requirement/generation/newFileGeneration/main.py
Sajaki/intellij-community
6748af2c40567839d11fd652ec77ba263c074aad
[ "Apache-2.0" ]
2
2019-04-28T07:48:50.000Z
2020-12-11T14:18:08.000Z
python/testData/requirement/generation/newFileGeneration/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
2
2022-02-19T09:45:05.000Z
2022-02-27T20:32:55.000Z
python/testData/requirement/generation/newFileGeneration/main.py
Cyril-lamirand/intellij-community
60ab6c61b82fc761dd68363eca7d9d69663cfa39
[ "Apache-2.0" ]
1
2020-10-15T05:56:42.000Z
2020-10-15T05:56:42.000Z
from django import apps import requests
19.5
23
0.871795
2e757cbcf7753e1a41bcc35d789ef83c1bf668e3
544
py
Python
fpl/migrations/0017_auto_20180816_2035.py
sornars/leaguetracker
b83cd21db2edfeeeaecc27b768107e5b7bf0cd93
[ "MIT" ]
null
null
null
fpl/migrations/0017_auto_20180816_2035.py
sornars/leaguetracker
b83cd21db2edfeeeaecc27b768107e5b7bf0cd93
[ "MIT" ]
null
null
null
fpl/migrations/0017_auto_20180816_2035.py
sornars/leaguetracker
b83cd21db2edfeeeaecc27b768107e5b7bf0cd93
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-16 20:35 from django.db import migrations, models
22.666667
45
0.582721
2e76dd6429562389c63f7bc02c8f724c45438d94
5,268
py
Python
user/tests/test_family_data_api.py
judeakinwale/SMS-backup
30636591b43bec94e7406f4c02fde402a5a2e38f
[ "MIT" ]
null
null
null
user/tests/test_family_data_api.py
judeakinwale/SMS-backup
30636591b43bec94e7406f4c02fde402a5a2e38f
[ "MIT" ]
null
null
null
user/tests/test_family_data_api.py
judeakinwale/SMS-backup
30636591b43bec94e7406f4c02fde402a5a2e38f
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from django.urls import reverse from rest_framework import status from rest_framework.request import Request from rest_framework.test import APIClient, APIRequestFactory from user import models, serializers FAMILY_DATA_URL = reverse('user...
36.583333
106
0.712035
2e771c1ec9cc8816ff1943c4758c4e36106d4a67
440
py
Python
mlflow_ext/mlflow_wrapper.py
vashineyu/mlflow_extension
3dfe36c9cdfda2f29c3ef2ccbf95a751c6dadde5
[ "Apache-2.0" ]
null
null
null
mlflow_ext/mlflow_wrapper.py
vashineyu/mlflow_extension
3dfe36c9cdfda2f29c3ef2ccbf95a751c6dadde5
[ "Apache-2.0" ]
null
null
null
mlflow_ext/mlflow_wrapper.py
vashineyu/mlflow_extension
3dfe36c9cdfda2f29c3ef2ccbf95a751c6dadde5
[ "Apache-2.0" ]
null
null
null
"""mlflow_wrapper.py Decorators for class/functions """ from .tracker import TrackMetric, TrackParam __all__ = [ "metric", "param", ]
19.130435
53
0.688636
2e7768284cd24f528bdf7ff4877b1e60ac2ad43c
5,228
py
Python
vaccine_feed_ingest/runners/az/pinal_ph_vaccinelocations_gov/normalize.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
27
2021-04-24T02:11:18.000Z
2021-05-17T00:54:45.000Z
vaccine_feed_ingest/runners/az/pinal_ph_vaccinelocations_gov/normalize.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
574
2021-04-06T18:09:11.000Z
2021-08-30T07:55:06.000Z
vaccine_feed_ingest/runners/az/pinal_ph_vaccinelocations_gov/normalize.py
jeremyschlatter/vaccine-feed-ingest
215f6c144fe5220deaccdb5db3e96f28b7077b3f
[ "MIT" ]
47
2021-04-23T05:31:14.000Z
2021-07-01T20:22:46.000Z
#!/usr/bin/env python import datetime import json import pathlib import re import sys from typing import List, Optional from vaccine_feed_ingest_schema import location as schema from vaccine_feed_ingest.utils.log import getLogger logger = getLogger(__file__) RUNNER_ID = "az_pinal_ph_vaccinelocations_gov" # a...
31.493976
110
0.637911
2e79e519ed71cec0148d3ba0c2654172c86976af
4,737
py
Python
zdiscord/service/integration/chat/discord/DiscordCommandMiddleware.py
xxdunedainxx/zdiscord
e79039621969fd7a2987ccac4e8d6fcff11ee754
[ "MIT" ]
null
null
null
zdiscord/service/integration/chat/discord/DiscordCommandMiddleware.py
xxdunedainxx/zdiscord
e79039621969fd7a2987ccac4e8d6fcff11ee754
[ "MIT" ]
57
2020-06-05T18:33:17.000Z
2020-08-17T18:28:37.000Z
zdiscord/service/integration/chat/discord/DiscordCommandMiddleware.py
xxdunedainxx/zdiscord
e79039621969fd7a2987ccac4e8d6fcff11ee754
[ "MIT" ]
null
null
null
# contains connectors between discord api logic && command logic from zdiscord.service.messaging.CommandFactory import CommandFactory from zdiscord.service.ServiceFactory import ServiceFactory from zdiscord.service.integration.chat.discord.DiscordEvents import DiscordEvent from zdiscord.service.messaging.Events import ...
49.863158
195
0.649778
2e7a4d5bb577ab8e56c7765e7aa74cfa6de7a904
176
py
Python
crawl_cvs-project/crawl_cvs/url_builder.py
MacHu-GWU/learn_scrapy-project
e6324471704a2ba092ec59abedf617d98d18d436
[ "MIT" ]
null
null
null
crawl_cvs-project/crawl_cvs/url_builder.py
MacHu-GWU/learn_scrapy-project
e6324471704a2ba092ec59abedf617d98d18d436
[ "MIT" ]
null
null
null
crawl_cvs-project/crawl_cvs/url_builder.py
MacHu-GWU/learn_scrapy-project
e6324471704a2ba092ec59abedf617d98d18d436
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import crawlib urlbuilder = CvsUrlBuilder()
14.666667
44
0.681818
2e7a800956a7899680c40d12d8132141d36264a0
689
py
Python
app/models/oj.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-08-05T13:01:19.000Z
2021-07-16T09:59:45.000Z
app/models/oj.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
null
null
null
app/models/oj.py
Kyooooma/view-oj-backend
3b2fc9ed0b8b52029b45cd30f90e8dd925a09d35
[ "Apache-2.0" ]
6
2019-12-05T13:04:38.000Z
2020-07-05T15:05:40.000Z
from sqlalchemy import Boolean, Column, Integer, String from app.models.base import Base
28.708333
71
0.666183
2e7ab2d9f0e01099cd91990e01f066d36593092e
4,370
py
Python
nnga/architectures/classification/mlp.py
rafaelsdellama/nnga
9c04fd0c5f68644345d197db44b1bc6f6c780a30
[ "MIT" ]
1
2021-12-28T23:40:41.000Z
2021-12-28T23:40:41.000Z
nnga/architectures/classification/mlp.py
rafaelsdellama/nnga
9c04fd0c5f68644345d197db44b1bc6f6c780a30
[ "MIT" ]
null
null
null
nnga/architectures/classification/mlp.py
rafaelsdellama/nnga
9c04fd0c5f68644345d197db44b1bc6f6c780a30
[ "MIT" ]
null
null
null
from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense, Dropout, Input from nnga.architectures.base_neural_network import BaseNeuralNetwork from nnga.architectures import ( INICIALIZERS, REGULARIZERS, )
30.559441
73
0.526087
2e7b8c7a1f96576a8ce83e77e893389b85c02c65
413
py
Python
Expressions/Operations/Pow.py
nerdsupremacist/LlamaLang
84484b03eb24f326d7889c9dd4e9605d4eca9f8d
[ "MIT" ]
5
2019-04-03T12:27:37.000Z
2022-02-18T08:20:12.000Z
Expressions/Operations/Pow.py
nerdsupremacist/LlamaLang
84484b03eb24f326d7889c9dd4e9605d4eca9f8d
[ "MIT" ]
7
2016-05-26T13:46:33.000Z
2016-06-15T20:57:15.000Z
Expressions/Operations/Pow.py
mathiasquintero/LlamaLang
84484b03eb24f326d7889c9dd4e9605d4eca9f8d
[ "MIT" ]
null
null
null
from Expressions.Number import Number
22.944444
70
0.590799
2e7b90e52339d9034f98a220770af8565a08c634
6,981
py
Python
makehuman-master/makehuman/lib/debugdump.py
Radiian-Arts-Main/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
1
2022-03-12T03:52:55.000Z
2022-03-12T03:52:55.000Z
makehuman-master/makehuman/lib/debugdump.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
null
null
null
makehuman-master/makehuman/lib/debugdump.py
Phantori/Radiian-Arts-BioSource
51e08da0b3171fe96badc68780fd0f3381d49738
[ "MIT" ]
3
2020-05-10T16:11:23.000Z
2021-05-30T02:11:28.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ **Project Name:** MakeHuman **Product Home Page:** http://www.makehumancommunity.org/ **Github Code Home Page:** https://github.com/makehumancommunity/ **Authors:** Joel Palmius **Copyright(c):** MakeHuman Team 2001-2019 **Licensing:** ...
37.532258
128
0.614668
2e7c7b050d8991e9525818197dc57de2aff6f82d
6,866
py
Python
platform/core/tests/base/clients.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/base/clients.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
platform/core/tests/base/clients.py
hackerwins/polyaxon
ff56a098283ca872abfbaae6ba8abba479ffa394
[ "Apache-2.0" ]
null
null
null
import datetime import json import uuid from collections import Mapping from urllib.parse import urlparse from hestia.auth import AuthenticationTypes from hestia.ephemeral_services import EphemeralServices from hestia.internal_services import InternalServices from django.test import Client from django.test.client im...
34.502513
95
0.62307
2e7d84d75dedfabb3a6780bfcca2f8f26af2449f
27,066
py
Python
main.py
ypy516478793/maml_exp
7a78537a816cf0a4cb559aaa18520b5d7d14ce7b
[ "MIT" ]
null
null
null
main.py
ypy516478793/maml_exp
7a78537a816cf0a4cb559aaa18520b5d7d14ce7b
[ "MIT" ]
null
null
null
main.py
ypy516478793/maml_exp
7a78537a816cf0a4cb559aaa18520b5d7d14ce7b
[ "MIT" ]
null
null
null
""" Usage Instructions: 10-shot sinusoid: python main.py --datasource=sinusoid --logdir=logs/sine/ --metatrain_iterations=70000 --norm=None --update_batch_size=10 10-shot sinusoid baselines: python main.py --datasource=sinusoid --logdir=logs/sine/ --pretrain_iterations=70000 --metatrain_iterati...
50.122222
234
0.663415
2e7e318c804ebbd68bcf507598c54999152741c6
715
py
Python
chapter_06/03_line_numbers.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
2
2021-04-07T03:26:37.000Z
2021-07-26T07:38:49.000Z
chapter_06/03_line_numbers.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
chapter_06/03_line_numbers.py
SergeHall/Tony-Gaddis-Python-4th
24e7c70fbd196ff531a5e4e7f6f5021c4b4177ba
[ "MIT" ]
null
null
null
# 3. . , # . , # . # 1. number_list.txt main()
29.791667
77
0.634965
2e8188e1b5844062b4f166f34c4b31931a6fc142
801
py
Python
merlion/models/anomaly/forecast_based/arima.py
ankitakashyap05/Merlion
7dc95fbf64002e22bfce89625bdb76b7a3cbfbfc
[ "BSD-3-Clause" ]
2,215
2021-09-21T18:11:36.000Z
2022-03-31T20:21:42.000Z
merlion/models/anomaly/forecast_based/arima.py
ankitakashyap05/Merlion
7dc95fbf64002e22bfce89625bdb76b7a3cbfbfc
[ "BSD-3-Clause" ]
56
2021-09-22T14:45:50.000Z
2022-03-29T22:28:19.000Z
merlion/models/anomaly/forecast_based/arima.py
ankitakashyap05/Merlion
7dc95fbf64002e22bfce89625bdb76b7a3cbfbfc
[ "BSD-3-Clause" ]
181
2021-09-22T09:04:22.000Z
2022-03-29T16:04:43.000Z
# # Copyright (c) 2021 salesforce.com, inc. # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause # For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause # """ Classic ARIMA (AutoRegressive Integrated Moving Average) forecasting model, adapted for anomaly ...
34.826087
110
0.815231
2e826e5485a0fdc41f7a7c7fdbeb5bb0e08fa5d3
286
py
Python
Server/utils/blueprints/Logging.py
thearyadev/Security-System
f9fa48196eef4dc83a9059e10e3c97e2f0842b8d
[ "MIT" ]
1
2022-02-26T21:43:19.000Z
2022-02-26T21:43:19.000Z
Server/utils/blueprints/Logging.py
thearyadev/Security-System
f9fa48196eef4dc83a9059e10e3c97e2f0842b8d
[ "MIT" ]
null
null
null
Server/utils/blueprints/Logging.py
thearyadev/Security-System
f9fa48196eef4dc83a9059e10e3c97e2f0842b8d
[ "MIT" ]
null
null
null
from _testcapi import instancemethod from .ParentView import View from typing import TYPE_CHECKING if TYPE_CHECKING: from ..Server import Server
22
69
0.755245
2e82c227ac4b7601c8e29df6d3f7d6d06f6bdb82
1,275
py
Python
setup.py
bischtob/opterax
c5b2cf71c4f0de33d9078500118af3dc38c94b43
[ "Apache-2.0" ]
1
2021-09-07T00:18:59.000Z
2021-09-07T00:18:59.000Z
setup.py
bischtob/opterax
c5b2cf71c4f0de33d9078500118af3dc38c94b43
[ "Apache-2.0" ]
6
2021-08-12T22:35:53.000Z
2021-11-03T21:59:11.000Z
setup.py
bischtob/opterax
c5b2cf71c4f0de33d9078500118af3dc38c94b43
[ "Apache-2.0" ]
null
null
null
import os from setuptools import find_namespace_packages from setuptools import setup _CURRENT_DIR = os.path.dirname(os.path.abspath(__file__)) setup( name='opterax', version=_get_version(), url='https://github.com/bischtob/opterax', license='Apache 2.0', description=('A gradient-free optimizat...
31.875
77
0.67451
2e83eb480f254310c1ea5d79c17f9c04a6c5fc95
127
py
Python
datacollection/routing.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
null
null
null
datacollection/routing.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
16
2019-12-10T19:40:27.000Z
2022-02-10T11:51:06.000Z
datacollection/routing.py
playfulMIT/kimchi
66802cc333770932a8c8b1a44ea5d235d916a8f1
[ "MIT" ]
null
null
null
from django.urls import path from . import consumers websocket_urlpatterns = [path("ws/", consumers.DataCollectionConsumer)]
21.166667
71
0.795276
2e83f43b8cd543dac7d32dde31491e3baf7921c1
2,914
py
Python
tests/conftest.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
107
2021-03-26T20:18:51.000Z
2022-03-26T03:38:08.000Z
tests/conftest.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
4
2021-06-09T08:48:21.000Z
2021-12-27T09:04:43.000Z
tests/conftest.py
GoodMonsters/Building-Data-Science-Applications-with-FastAPI
d2218d225c5b93723ecf46c19619ed5d3f2473e6
[ "MIT" ]
58
2021-03-12T20:51:19.000Z
2022-03-27T15:49:49.000Z
from typing import Callable, AsyncGenerator, Generator import asyncio import httpx import pytest from asgi_lifespan import LifespanManager from fastapi import FastAPI from fastapi.testclient import TestClient TestClientGenerator = Callable[[FastAPI], AsyncGenerator[httpx.AsyncClient, None]]
33.494253
82
0.701098
2e8465e06a15db8c637c5ad1006b7946b8ad2cd0
1,788
py
Python
Code/set.py
escofresco/makeschool_cs13_core_ds
74195ea836338c84c912ecd15da3cb7aab229fb5
[ "MIT" ]
null
null
null
Code/set.py
escofresco/makeschool_cs13_core_ds
74195ea836338c84c912ecd15da3cb7aab229fb5
[ "MIT" ]
4
2020-02-17T22:25:41.000Z
2020-03-10T08:49:06.000Z
Code/set.py
escofresco/makeschool_cs13_core_ds
74195ea836338c84c912ecd15da3cb7aab229fb5
[ "MIT" ]
null
null
null
"""This module is a custom implement of the set data type. Implements: Set data type class.""" from binarytree import BinarySearchTree from copy import deepcopy
28.380952
77
0.60962
2e84f7f317a9e66ebbebbcae3a975ec7b991d53f
937
py
Python
xos/grpc/tests/api_user_crud.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
xos/grpc/tests/api_user_crud.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
5
2020-06-05T17:47:15.000Z
2021-09-23T23:21:27.000Z
xos/grpc/tests/api_user_crud.py
pan2za/xos
c2a4da2ccaa12360b2718be303b247866aefdfe6
[ "Apache-2.0" ]
null
null
null
import sys sys.path.append("..") import grpc_client from testconfig import * print "api_user_crud" #c=grpc_client.InsecureClient("localhost") c=grpc_client.SecureClient("xos-core.cord.lab", username=USERNAME, password=PASSWORD) u=grpc_client.User() import random, string u.email=''.join(random.choice(string.ascii_upp...
24.025641
89
0.735326
2e850dd362d6da80a6575bca988398ebe804d78a
7,819
py
Python
codes/attacks.py
epfml/byzantine-robust-decentralized-optimizer
5387d600354a0fbf137c3e4346c4441b2f427407
[ "MIT" ]
2
2022-02-04T16:17:13.000Z
2022-02-18T03:47:44.000Z
codes/attacks.py
epfml/byzantine-robust-decentralized-optimizer
5387d600354a0fbf137c3e4346c4441b2f427407
[ "MIT" ]
null
null
null
codes/attacks.py
epfml/byzantine-robust-decentralized-optimizer
5387d600354a0fbf137c3e4346c4441b2f427407
[ "MIT" ]
null
null
null
import numpy as np import torch from scipy.stats import norm from codes.worker import ByzantineWorker from codes.aggregator import DecentralizedAggregator def get_attackers( args, rank, trainer, model, opt, loss_func, loader, device, lr_scheduler ): if args.attack == "BF": return BitFlippingWor...
30.073077
83
0.596112
2e85b52ef20a585e2e736d598f36f5594743dea6
1,384
py
Python
lotoparser/lib/zipper.py
forkd/jam
fd17bf5a961d5b52fc52988fea8787d48aaa140e
[ "MIT" ]
null
null
null
lotoparser/lib/zipper.py
forkd/jam
fd17bf5a961d5b52fc52988fea8787d48aaa140e
[ "MIT" ]
null
null
null
lotoparser/lib/zipper.py
forkd/jam
fd17bf5a961d5b52fc52988fea8787d48aaa140e
[ "MIT" ]
null
null
null
#!/usr/bin/env python #coding: utf8 """Zipper A class that can zip and unzip files. """ __author__ = "Jos Lopes de Oliveira Jnior" __license__ = "GPLv3+" import os import zipfile try: import zlib has_zlib = True except: has_zlib = False #EOF
21.292308
75
0.530347
2e87c0bdf562862b65d0f64835fcb315496fe1df
9,494
py
Python
evalution/composes/composition/composition_model.py
esantus/evalution2
622a9faf729b7c704ad45047911b9a03cf7c8dae
[ "MIT" ]
1
2017-12-06T21:46:26.000Z
2017-12-06T21:46:26.000Z
evalution/composes/composition/composition_model.py
esantus/EVALution-2.0
622a9faf729b7c704ad45047911b9a03cf7c8dae
[ "MIT" ]
5
2020-03-24T15:27:40.000Z
2021-06-01T21:47:18.000Z
evalution/composes/composition/composition_model.py
esantus/EVALution-2.0
622a9faf729b7c704ad45047911b9a03cf7c8dae
[ "MIT" ]
1
2018-02-15T17:13:02.000Z
2018-02-15T17:13:02.000Z
''' Created on Oct 5, 2012 @author: Georgiana Dinu, Pham The Nghia ''' import time import math from warnings import warn from composes.semantic_space.space import Space from composes.matrix.dense_matrix import DenseMatrix from composes.utils.gen_utils import assert_is_instance from composes.utils.matrix_utils import r...
36.515385
126
0.58321
2e89ac88532200c5f0455d10f751cb19a2115eb5
288
py
Python
Exercicios-Python/exercicios-curso-em-video/d103.py
PedroGoes16/Estudos
142a697a1d375590bb76847a74ed2b8f9fa44a9d
[ "MIT" ]
null
null
null
Exercicios-Python/exercicios-curso-em-video/d103.py
PedroGoes16/Estudos
142a697a1d375590bb76847a74ed2b8f9fa44a9d
[ "MIT" ]
null
null
null
Exercicios-Python/exercicios-curso-em-video/d103.py
PedroGoes16/Estudos
142a697a1d375590bb76847a74ed2b8f9fa44a9d
[ "MIT" ]
null
null
null
ficha()
20.571429
57
0.479167
2e89d63b27e19cae7a6de12e67572e81e8a87d5e
5,800
py
Python
codegen.py
js-on/CVE-2021-42574
cb47b72f330d15dff6c515a3009aaba320de5798
[ "MIT" ]
7
2021-11-04T03:57:08.000Z
2021-12-15T19:33:05.000Z
codegen.py
FDlucifer/CVE-2021-42574
cb47b72f330d15dff6c515a3009aaba320de5798
[ "MIT" ]
null
null
null
codegen.py
FDlucifer/CVE-2021-42574
cb47b72f330d15dff6c515a3009aaba320de5798
[ "MIT" ]
5
2021-11-03T01:35:37.000Z
2022-01-29T18:22:54.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Author: Jakob Schaffarczyk <jakobs@js-on.de> # PGP: https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x00bebdd0437ad513a4a0e13d93435cab4ca92fb9 # Date: 05.11.2021 import argparse import os # Unicode placeholders and their replacements uc_table = { ...
37.419355
120
0.576724
2e8c0b9ec91bd9f40ae51c082d96946532cbb9b5
1,139
py
Python
test/plugin_support_test.py
spbrogan/rvc2mqtt
fca47bd302c895ae89af21d08a652fa595ea482b
[ "Apache-2.0" ]
6
2022-01-16T18:36:03.000Z
2022-03-10T02:01:24.000Z
test/plugin_support_test.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
38
2022-01-09T22:20:36.000Z
2022-03-21T06:28:46.000Z
test/plugin_support_test.py
ccirrinc/rvc2mqtt
108328323357e55be6242887b964ca936ea7b3fc
[ "Apache-2.0" ]
1
2022-01-30T00:20:40.000Z
2022-01-30T00:20:40.000Z
""" Unit tests for the plugin_support module This is just a hack to invoke it..not a unit test Copyright 2022 Sean Brogan SPDX-License-Identifier: Apache-2.0 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 L...
33.5
111
0.765584
2e8eee2c4b156d990b86b680424208568ef1c967
5,311
py
Python
scenarios/demo.py
wobal/Kissenium
cd9c17b8e0ff80ebb66c3d6db16626670b2d2d12
[ "Apache-2.0" ]
4
2017-09-15T03:11:57.000Z
2018-02-02T16:15:55.000Z
scenarios/demo.py
wobal/Kissenium
cd9c17b8e0ff80ebb66c3d6db16626670b2d2d12
[ "Apache-2.0" ]
4
2018-01-28T11:24:13.000Z
2018-03-15T20:45:55.000Z
scenarios/demo.py
wobal/Kissenium
cd9c17b8e0ff80ebb66c3d6db16626670b2d2d12
[ "Apache-2.0" ]
1
2020-12-02T12:01:24.000Z
2020-12-02T12:01:24.000Z
# coding: utf-8 """ Copyright 2017 Adiuvo 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,...
47
118
0.662022
2e8f15eb5f6cb86271992a31775893fd59093577
1,135
py
Python
github/data_types/pull_request_review.py
codex-bot/GitHub
2c7935ba5180fdea0cd75023c2ef1543e7b9559c
[ "MIT" ]
11
2018-06-16T17:49:56.000Z
2022-03-31T10:23:09.000Z
github/data_types/pull_request_review.py
MediaPreneur/github
2c7935ba5180fdea0cd75023c2ef1543e7b9559c
[ "MIT" ]
49
2017-05-31T18:29:11.000Z
2022-02-20T10:15:46.000Z
github/data_types/pull_request_review.py
MediaPreneur/github
2c7935ba5180fdea0cd75023c2ef1543e7b9559c
[ "MIT" ]
3
2019-04-09T16:08:25.000Z
2022-03-15T05:23:44.000Z
from data_types.user import User
24.148936
80
0.585903
2e911204cae553d930e41be7b84c45c815ffb13e
1,109
py
Python
pyaisnmea/messages/t14.py
tww-software/py_ais_nmea
7253fe7c4149c320b1e40045bc4a360879848747
[ "MIT" ]
1
2020-05-01T22:10:25.000Z
2020-05-01T22:10:25.000Z
pyaisnmea/messages/t14.py
tww-software/py_ais_nmea
7253fe7c4149c320b1e40045bc4a360879848747
[ "MIT" ]
null
null
null
pyaisnmea/messages/t14.py
tww-software/py_ais_nmea
7253fe7c4149c320b1e40045bc4a360879848747
[ "MIT" ]
1
2020-08-07T14:35:59.000Z
2020-08-07T14:35:59.000Z
""" Type 14 messages are broadcast safety messages. """ import pyaisnmea.binary as binary import pyaisnmea.messages.aismessage
27.04878
77
0.597836
2e91adf5da66a422db1da215a4761153486d71ae
6,482
py
Python
tests/testutil.py
delocalizer/qasim
127efe3d45a1f155e260641c7e82424725526765
[ "MIT" ]
null
null
null
tests/testutil.py
delocalizer/qasim
127efe3d45a1f155e260641c7e82424725526765
[ "MIT" ]
4
2018-11-30T05:01:53.000Z
2020-05-12T02:02:36.000Z
tests/testutil.py
delocalizer/qasim
127efe3d45a1f155e260641c7e82424725526765
[ "MIT" ]
null
null
null
"""Utilities for tests""" import copy import re BAD_ID = "line %s: id '%s' doesn't match '%s'" BAD_SEQLEN = "line %s: %s is not the same length as the first read (%s)" BAD_BASES = "line %s: %s is not in allowed set of bases %s" BAD_PLUS = "line %s: expected '+', got %s" BAD_QUALS = "line %s: %s is not the same lengt...
42.927152
78
0.5
5ce8d40f63953bf861c95d3a5b739204a0131ed9
3,167
py
Python
spinoff/actor/events.py
eallik/spinoff
06b00d6b86c7422c9cb8f9a4b2915906e92b7d52
[ "BSD-2-Clause" ]
6
2015-01-16T13:40:31.000Z
2019-06-27T13:23:19.000Z
spinoff/actor/events.py
erikkaplun/spinoff
06b00d6b86c7422c9cb8f9a4b2915906e92b7d52
[ "BSD-2-Clause" ]
null
null
null
spinoff/actor/events.py
erikkaplun/spinoff
06b00d6b86c7422c9cb8f9a4b2915906e92b7d52
[ "BSD-2-Clause" ]
3
2015-03-14T05:13:00.000Z
2019-11-05T03:28:41.000Z
from __future__ import print_function import sys import traceback from collections import namedtuple from gevent.event import AsyncResult from spinoff.util.logging import err, log, fail Events = Events()
31.356436
119
0.595832
5cec300c17be432a6f591f3165a76315801459ea
12,941
py
Python
turboactivate/__init__.py
develersrl/python-turboactivate
61de07ce31f8c278131e8c0e2f5a6565a808a9fa
[ "MIT" ]
4
2016-01-14T01:59:48.000Z
2018-04-30T10:51:20.000Z
turboactivate/__init__.py
develersrl/python-turboactivate
61de07ce31f8c278131e8c0e2f5a6565a808a9fa
[ "MIT" ]
3
2016-01-14T09:01:47.000Z
2018-01-31T16:28:32.000Z
turboactivate/__init__.py
develersrl/python-turboactivate
61de07ce31f8c278131e8c0e2f5a6565a808a9fa
[ "MIT" ]
4
2016-01-14T01:57:52.000Z
2020-10-30T17:40:20.000Z
# -*- coding: utf-8 -*- # # Copyright 2013-2018 Develer S.r.l. (https://www.develer.com/) # # Author: Lorenzo Villani <lvillani@develer.com> # Author: Riccardo Ferrazzo <rferrazz@develer.com> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation...
35.357923
109
0.664632
5cec561b12d96918a93c2a0549657bdac2b087b4
756
py
Python
code/from_scratch/train_tokenizer.py
flower-go/DiplomaThesis
9a24b14041adbad602d151a7b7ddb25335635e6d
[ "CC-BY-4.0" ]
null
null
null
code/from_scratch/train_tokenizer.py
flower-go/DiplomaThesis
9a24b14041adbad602d151a7b7ddb25335635e6d
[ "CC-BY-4.0" ]
1
2021-07-11T11:01:15.000Z
2021-07-11T11:01:15.000Z
code/from_scratch/train_tokenizer.py
flower-go/DiplomaThesis
9a24b14041adbad602d151a7b7ddb25335635e6d
[ "CC-BY-4.0" ]
null
null
null
from tokenizers import BertWordPieceTokenizer if __name__ == "__main__": import argparse import sys import os command_line = " ".join(sys.argv[1:]) # Parse arguments parser = argparse.ArgumentParser() parser.add_argument("--train_data", type=str, help="Path to training data") parser...
27
79
0.703704
5cf045896590b3d973e5e4c398aac4b9b365a858
1,821
py
Python
nexoclom/solarsystem/planet_geometry.py
mburger-stsci/NExoCloM
c0c81eeb04c5571662f3d86337d84a18f1cd0dcf
[ "BSD-3-Clause" ]
null
null
null
nexoclom/solarsystem/planet_geometry.py
mburger-stsci/NExoCloM
c0c81eeb04c5571662f3d86337d84a18f1cd0dcf
[ "BSD-3-Clause" ]
null
null
null
nexoclom/solarsystem/planet_geometry.py
mburger-stsci/NExoCloM
c0c81eeb04c5571662f3d86337d84a18f1cd0dcf
[ "BSD-3-Clause" ]
1
2018-11-23T20:55:33.000Z
2018-11-23T20:55:33.000Z
''' Determine some basic geometry info from the SPICE kernels For planets: * r in AU * drdt in km/s * TAA in radians * Sub-solar longitude and latitude in radians -- not implemented * Sub-earth longitude and latitude in radians -- not implemented ''' import numpy as np import astropy.units as u import astr...
33.722222
72
0.632619
5cf1cef302f9debcd36250730a2c06effc4f0705
31
py
Python
podcast-ml/service/src/app/podcastml/utils/__init__.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
podcast-ml/service/src/app/podcastml/utils/__init__.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
podcast-ml/service/src/app/podcastml/utils/__init__.py
cuappdev/archives
061d0f9cccf278363ffaeb27fc655743b1052ae5
[ "MIT" ]
null
null
null
"""Init.""" from app import db
10.333333
18
0.612903
5cf27901bba8f822fc7004c50b9de5c1bcf71fd4
4,251
py
Python
upvote/gae/modules/upvote_app/api/handlers/base_test.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/modules/upvote_app/api/handlers/base_test.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
upvote/gae/modules/upvote_app/api/handlers/base_test.py
cclauss/upvote
9d526fec72690cde1575dbd32dacf68cbbab81d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # 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 a...
31.488889
86
0.734415
5cf2c5b79b531eee635dfb18ef717dc2f5b0afb6
12,963
py
Python
src/arguments.py
volkancirik/refer360
8ae7e739b812345204aa83514cdf5a271dfa812c
[ "MIT" ]
7
2020-06-03T16:08:09.000Z
2021-09-30T07:30:34.000Z
src/arguments.py
volkancirik/refer360
8ae7e739b812345204aa83514cdf5a271dfa812c
[ "MIT" ]
null
null
null
src/arguments.py
volkancirik/refer360
8ae7e739b812345204aa83514cdf5a271dfa812c
[ "MIT" ]
1
2021-01-25T14:11:07.000Z
2021-01-25T14:11:07.000Z
""" Arguments for train/test """ import argparse
57.105727
185
0.612744
5cf3021973cd6275c26935e79845f01ddda593d2
449
py
Python
core/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
core/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
core/urls.py
kevincornish/Genesis
6bc424fe97be954776dec2bdc4c7d214992cc3e2
[ "MIT" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from core import views from django.conf import settings from django.conf.urls.static import static urlpatterns = [ url(r'^$', views.home, name='home'), url(r'^profile/$', views.profile, name='profile'), url(r'^login/$', views.doLo...
29.933333
54
0.683742
5cf6aef0f7a52f9841b7e7f52955d745dd0b9259
3,305
py
Python
crunch.py
pholtz/cyclo-analyzer
8cf2a485bd160332f0b361969b5fbf459be28444
[ "MIT" ]
null
null
null
crunch.py
pholtz/cyclo-analyzer
8cf2a485bd160332f0b361969b5fbf459be28444
[ "MIT" ]
null
null
null
crunch.py
pholtz/cyclo-analyzer
8cf2a485bd160332f0b361969b5fbf459be28444
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import datetime import pathlib import gpxpy import pandas as pd import statistics import seaborn import matplotlib.pyplot as plt from activity import Activity, create_activity, parse_activities_csv def select_activity(activities, iso_date=None): """Given a l...
39.345238
121
0.707413
5cf7bda80c18b01a661df9cd3612b3475f93739a
1,289
py
Python
questions/q87_inversion_array/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
questions/q87_inversion_array/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
1
2021-05-15T07:56:51.000Z
2021-05-15T07:56:51.000Z
questions/q87_inversion_array/code.py
aadhityasw/Competitive-Programs
901a48d35f024a3a87c32a45b7f4531e8004a203
[ "MIT" ]
null
null
null
import atexit import io import sys _INPUT_LINES = sys.stdin.read().splitlines() input = iter(_INPUT_LINES).__next__ _OUTPUT_BUFFER = io.StringIO() sys.stdout = _OUTPUT_BUFFER if __name__=='__main__': t = int(input()) for tt in range(t): n = int(input()) a = list(map(int, input().strip().sp...
20.140625
51
0.547711
5cfa15c4217764a7243acf381d48de88ecf54b14
90
py
Python
app/album/__init__.py
chaosbus/MemorySeepage
d72fc9fc1826e9e54cfbe899f65e508ec8ea090f
[ "Apache-2.0" ]
null
null
null
app/album/__init__.py
chaosbus/MemorySeepage
d72fc9fc1826e9e54cfbe899f65e508ec8ea090f
[ "Apache-2.0" ]
null
null
null
app/album/__init__.py
chaosbus/MemorySeepage
d72fc9fc1826e9e54cfbe899f65e508ec8ea090f
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint bp_album = Blueprint('album', __name__) from . import views
15
39
0.766667
5cfa301f8bc413562dbec7b1469c553c94d9bf15
1,431
py
Python
web/api.py
energize-andover/Dashboard
0210789affaafffddfd0b33d8df5ac2fe8de09e8
[ "MIT" ]
null
null
null
web/api.py
energize-andover/Dashboard
0210789affaafffddfd0b33d8df5ac2fe8de09e8
[ "MIT" ]
1
2020-03-15T21:57:07.000Z
2020-07-12T03:54:09.000Z
web/api.py
Energize-Andover/Dashboard
0210789affaafffddfd0b33d8df5ac2fe8de09e8
[ "MIT" ]
null
null
null
import json from base64 import b64encode, b64decode from flask import abort, request, redirect from simplecrypt import encrypt, decrypt from secrets import ENCRYPTION_SECRET
31.8
78
0.50594
5cfb200f1eeacbf33033a73aa7fafc834cf99eaf
44
py
Python
src/approot/__init__.py
omkumar01/major-project
57dc229a17c7783142d0270f52181883f5b8a7f0
[ "MIT" ]
null
null
null
src/approot/__init__.py
omkumar01/major-project
57dc229a17c7783142d0270f52181883f5b8a7f0
[ "MIT" ]
null
null
null
src/approot/__init__.py
omkumar01/major-project
57dc229a17c7783142d0270f52181883f5b8a7f0
[ "MIT" ]
null
null
null
from approot.celery import app as celery_app
44
44
0.863636
5cfb5f7fde73fb94febdbb0039f0e0103831ec8f
123
py
Python
BeerChallenge_Scordino_Marco.py
Py101/py101-assignments-marcosco
f70889899f97a96e1821bbd79c9bcc323e8aa6b0
[ "MIT" ]
null
null
null
BeerChallenge_Scordino_Marco.py
Py101/py101-assignments-marcosco
f70889899f97a96e1821bbd79c9bcc323e8aa6b0
[ "MIT" ]
null
null
null
BeerChallenge_Scordino_Marco.py
Py101/py101-assignments-marcosco
f70889899f97a96e1821bbd79c9bcc323e8aa6b0
[ "MIT" ]
null
null
null
from functools import reduce
20.5
43
0.674797
5cfce539d7de6d9bf158b19b543870f7d8555cd3
754
py
Python
infi/unittest/filter_syntax.py
Infinidat/infi.unittest
cb67e33b28dce851c3bbbeff5715629e6fa0455d
[ "BSD-3-Clause" ]
null
null
null
infi/unittest/filter_syntax.py
Infinidat/infi.unittest
cb67e33b28dce851c3bbbeff5715629e6fa0455d
[ "BSD-3-Clause" ]
null
null
null
infi/unittest/filter_syntax.py
Infinidat/infi.unittest
cb67e33b28dce851c3bbbeff5715629e6fa0455d
[ "BSD-3-Clause" ]
null
null
null
import re _ARGS = r"\[[^]]+\]" _IDENTITIFER = r"[a-zA-Z_][_0-9a-zA-Z]*" _MODULE_PATH = r"[\.a-zA-Z_][\._0-9a-zA-Z]*" FILTER_STRING_RE = ''.join(( '^', _REMEMBER(_MODULE_PATH, "module_name"), _OPTIONAL( ":", _REMEMBER(_IDENTITIFER, "class_name"), _OPTIONAL( _REMEMBER(_...
20.944444
52
0.501326
cf0047f0773a1f6b8bab40a103edcd375f784b56
1,389
py
Python
gillcup/futures.py
encukou/gillcup
f824741fdbe06e4eadb8ade690a011ca40419c6a
[ "BSD-3-Clause" ]
4
2015-10-25T19:05:32.000Z
2018-05-10T18:00:43.000Z
gillcup/futures.py
encukou/gillcup
f824741fdbe06e4eadb8ade690a011ca40419c6a
[ "BSD-3-Clause" ]
null
null
null
gillcup/futures.py
encukou/gillcup
f824741fdbe06e4eadb8ade690a011ca40419c6a
[ "BSD-3-Clause" ]
null
null
null
from gillcup.util.signature import fix_public_signature
35.615385
77
0.686825
cf045db39dc893e6400d3ca1bbbfd66ec8458f5a
654
py
Python
greenflow/greenflow/dataframe_flow/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
greenflow/greenflow/dataframe_flow/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
greenflow/greenflow/dataframe_flow/__init__.py
t-triobox/gQuant
6ee3ba104ce4c6f17a5755e7782298902d125563
[ "Apache-2.0" ]
null
null
null
from .node import * # noqa: F401,F403 from .taskSpecSchema import * # noqa: F401,F403 from .taskGraph import * # noqa: F401,F403 from .portsSpecSchema import * # noqa: F401,F403 from .metaSpec import * # noqa: F401,F403 import sys try: # For python 3.8 and later import importlib.metadata as importlib_metad...
32.7
70
0.718654
cf0562de443d67001cb57718f67ebe5a0d8e1e3c
4,559
py
Python
awacs/redshift.py
calebmarcus/awacs
ce7d32cea496c714f501bede4e4052db6f1ee8a2
[ "BSD-2-Clause" ]
null
null
null
awacs/redshift.py
calebmarcus/awacs
ce7d32cea496c714f501bede4e4052db6f1ee8a2
[ "BSD-2-Clause" ]
null
null
null
awacs/redshift.py
calebmarcus/awacs
ce7d32cea496c714f501bede4e4052db6f1ee8a2
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2012-2013, Mark Peek <mark@peek.org> # All rights reserved. # # See LICENSE file for full license. from aws import Action as BaseAction from aws import BaseARN service_name = 'Amazon Redshift' prefix = 'redshift' AuthorizeClusterSecurityGroupIngress = \ Action('AuthorizeClusterSecurityGroupIng...
46.050505
73
0.830884
cf077240da95445683a3c37a7f554e0eb5d68770
25,546
py
Python
transform_train.py
ShaoaAllen/CogQA
82b932f4fd9dad33efb7eaaffa7ee29594397932
[ "MIT" ]
null
null
null
transform_train.py
ShaoaAllen/CogQA
82b932f4fd9dad33efb7eaaffa7ee29594397932
[ "MIT" ]
null
null
null
transform_train.py
ShaoaAllen/CogQA
82b932f4fd9dad33efb7eaaffa7ee29594397932
[ "MIT" ]
null
null
null
#Albert GCN Transform train import argparse import dill as pickle from torchtext.datasets import TranslationDataset from torchtext.data import Field, Dataset, BucketIterator import transpytorch.transformer.Constants as Constants import os import re import json from tqdm import tqdm, trange import pdb import random fro...
49.126923
286
0.626204
cf07aff9ccd17c5b25b8bdbefdf6bd0ebc3a4705
601
py
Python
PYTHON/02POO/04Ordenacao/ContaTempo.py
felipefazani/Aprendendo
cd411db2eed007b41829f0f5ebb87ac192e74d85
[ "MIT" ]
null
null
null
PYTHON/02POO/04Ordenacao/ContaTempo.py
felipefazani/Aprendendo
cd411db2eed007b41829f0f5ebb87ac192e74d85
[ "MIT" ]
null
null
null
PYTHON/02POO/04Ordenacao/ContaTempo.py
felipefazani/Aprendendo
cd411db2eed007b41829f0f5ebb87ac192e74d85
[ "MIT" ]
null
null
null
import time import Ordem c = ContaTempo() c.compara(1000)
26.130435
83
0.612313
cf092d8a8f3b772370da821d1672c40ec3870eda
1,481
py
Python
Math/B01_Algebra_basics/Programs/S02/Slope_of_perpendicular_lines_image.py
Polirecyliente/SGConocimiento
560b08984236d7a10f50c6b5e6fb28844193d81b
[ "CC-BY-4.0" ]
null
null
null
Math/B01_Algebra_basics/Programs/S02/Slope_of_perpendicular_lines_image.py
Polirecyliente/SGConocimiento
560b08984236d7a10f50c6b5e6fb28844193d81b
[ "CC-BY-4.0" ]
null
null
null
Math/B01_Algebra_basics/Programs/S02/Slope_of_perpendicular_lines_image.py
Polirecyliente/SGConocimiento
560b08984236d7a10f50c6b5e6fb28844193d81b
[ "CC-BY-4.0" ]
null
null
null
#T# the following code shows how to draw the slope of the perpendicular line to a given line #T# to draw the slope of the perpendicular line to a given line, the pyplot module of the matplotlib package is used import matplotlib.pyplot as plt #T# to transform the markers of a plot, import the MarkerStyle constructor f...
27.425926
116
0.69345
cf0a4fcfc0468febec00c8fc6c87bf481462ba27
2,046
py
Python
tests/test_mullled.py
jfy133/nf-core-tools
171127bd850040e76febd0945e6980b7afcaad69
[ "MIT" ]
1
2018-02-13T16:05:01.000Z
2018-02-13T16:05:01.000Z
tests/test_mullled.py
nf-core/nf-core-tools
171127bd850040e76febd0945e6980b7afcaad69
[ "MIT" ]
null
null
null
tests/test_mullled.py
nf-core/nf-core-tools
171127bd850040e76febd0945e6980b7afcaad69
[ "MIT" ]
null
null
null
"""Test the mulled BioContainers image name generation.""" import pytest from nf_core.modules import MulledImageNameGenerator
31
108
0.623656
cf0b2853e15f3f607a470436bada9136d274c506
3,426
py
Python
tests/python_on_whales/components/test_system.py
wannaphong/python-on-whales
d17941217c2e751bafcaf6e544e942d4d3f00db4
[ "MIT" ]
null
null
null
tests/python_on_whales/components/test_system.py
wannaphong/python-on-whales
d17941217c2e751bafcaf6e544e942d4d3f00db4
[ "MIT" ]
null
null
null
tests/python_on_whales/components/test_system.py
wannaphong/python-on-whales
d17941217c2e751bafcaf6e544e942d4d3f00db4
[ "MIT" ]
null
null
null
import json from datetime import date from pathlib import Path import pytest from python_on_whales import docker from python_on_whales.components.system.models import DockerEvent, SystemInfo from python_on_whales.exceptions import DockerException from python_on_whales.test_utils import get_all_jsons, random_...
31.145455
78
0.697023
cf0e6f396b61cb18861f5f3ddcf419ebdb1695b4
4,492
py
Python
test/test_metaverify.py
bibsian/lter
5e5ac08b62e031ddabad490cc59db4a945ea20f6
[ "MIT" ]
5
2016-05-02T22:56:01.000Z
2016-08-18T23:03:05.000Z
test/test_metaverify.py
bibsian/lter
5e5ac08b62e031ddabad490cc59db4a945ea20f6
[ "MIT" ]
11
2016-08-03T20:39:42.000Z
2016-10-18T22:03:38.000Z
test/test_metaverify.py
bibsian/database-development
5e5ac08b62e031ddabad490cc59db4a945ea20f6
[ "MIT" ]
null
null
null
#! /usr/bin/env python import pytest from pandas import read_csv, read_sql import sys, os from poplerGUI import class_inputhandler as ini from poplerGUI.logiclayer.datalayer import config as orm rootpath = os.path.dirname(os.path.dirname( __file__ )) end = os.path.sep sys.path.append(os.path.realpath(os.path.di...
32.788321
85
0.550757
cf10a62bfa588f7cc575521ddb7d0ab5db20c7cd
146
py
Python
src/users/urls.py
MichaelNest/My-First-Show-Project
45dda51f97ea4338200453e82f769efe2c075e40
[ "Apache-2.0" ]
null
null
null
src/users/urls.py
MichaelNest/My-First-Show-Project
45dda51f97ea4338200453e82f769efe2c075e40
[ "Apache-2.0" ]
null
null
null
src/users/urls.py
MichaelNest/My-First-Show-Project
45dda51f97ea4338200453e82f769efe2c075e40
[ "Apache-2.0" ]
null
null
null
from django.urls import path from .views import Signup app_name = 'users' urlpatterns = [ path('signup/', Signup.as_view(), name='signup') ]
18.25
52
0.69863
cf10ed3e2eb2a9811b1265ceb9d30e65333e6e5f
1,019
py
Python
daiquiri/metadata/management/commands/update_access_level.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
14
2018-12-23T18:35:02.000Z
2021-12-15T04:55:12.000Z
daiquiri/metadata/management/commands/update_access_level.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
40
2018-12-20T12:44:05.000Z
2022-03-21T11:35:20.000Z
daiquiri/metadata/management/commands/update_access_level.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
5
2019-05-16T08:03:35.000Z
2021-08-23T20:03:11.000Z
from django.core.management.base import BaseCommand,CommandError from django.utils.translation import ugettext_lazy as _ from daiquiri.core.constants import ACCESS_LEVEL_CHOICES from daiquiri.metadata.models import Schema
36.392857
94
0.708538
cf130e4a6298c0e1e099cdce4d75441e8a7489c4
176
py
Python
protostar/commands/remove/removal_exceptions.py
software-mansion/protostar
e9f701d3b02dde78e5292a4698ca3c6c7d39b485
[ "MIT" ]
11
2022-01-31T14:27:32.000Z
2022-03-28T18:24:45.000Z
protostar/commands/remove/removal_exceptions.py
software-mansion/protostar
e9f701d3b02dde78e5292a4698ca3c6c7d39b485
[ "MIT" ]
105
2022-01-31T15:25:29.000Z
2022-03-31T12:28:13.000Z
protostar/commands/remove/removal_exceptions.py
software-mansion/protostar
e9f701d3b02dde78e5292a4698ca3c6c7d39b485
[ "MIT" ]
1
2022-03-28T16:18:28.000Z
2022-03-28T16:18:28.000Z
from protostar.protostar_exception import ProtostarException
17.6
60
0.835227
cf149463ae7e475304c78f00396dfbde356e9b3d
3,076
py
Python
irf/exposure_map.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
null
null
null
irf/exposure_map.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
8
2017-04-25T11:19:32.000Z
2019-05-28T07:24:32.000Z
irf/exposure_map.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
null
null
null
import astropy.units as u from astropy.coordinates import Angle, SkyCoord from astropy import wcs from regions import CircleSkyRegion import numpy as np from scipy.stats import expon def estimate_exposure_time(timestamps): ''' Takes numpy datetime64[ns] timestamps and returns an estimates of the exposure time...
34.561798
99
0.690507
cf15c171c21e1c883bf5d4a9d022f93f3f438dce
290
py
Python
test/delete_test.py
royukira/MyAI
844102fbeaa23cf64b8e745f6169cae695e8af2b
[ "MIT" ]
1
2018-11-28T17:15:19.000Z
2018-11-28T17:15:19.000Z
test/delete_test.py
royukira/MyAI
844102fbeaa23cf64b8e745f6169cae695e8af2b
[ "MIT" ]
null
null
null
test/delete_test.py
royukira/MyAI
844102fbeaa23cf64b8e745f6169cae695e8af2b
[ "MIT" ]
null
null
null
import numpy as np a = np.zeros((10,6)) a[1,4:6] = [2,3] b = a[1,4] print(b) check = np.array([2,3]) for i in range(a.shape[0]): t = int(a[i,4]) idx = int(a[i,5]) if t == 2 and idx == 4: a = np.delete(a,i,0) break else: continue print(a.shape)
13.181818
28
0.486207
cf1614427f248446bcdbf3d24164ffa4fc86fd1f
3,344
py
Python
nagare/publishers/watchfiles_publisher.py
nagareproject/publishers-watchfiles
08ada6e9320310acfbca8ddb2dc17d034584c267
[ "BSD-3-Clause" ]
null
null
null
nagare/publishers/watchfiles_publisher.py
nagareproject/publishers-watchfiles
08ada6e9320310acfbca8ddb2dc17d034584c267
[ "BSD-3-Clause" ]
null
null
null
nagare/publishers/watchfiles_publisher.py
nagareproject/publishers-watchfiles
08ada6e9320310acfbca8ddb2dc17d034584c267
[ "BSD-3-Clause" ]
null
null
null
# -- # Copyright (c) 2008-2021 Net-ng. # All rights reserved. # # This software is licensed under the BSD License, as described in # the file LICENSE.txt, which you should have received as part of # this distribution. # -- import os import time from watchdog import observers, events from nagare.server import publishe...
37.573034
112
0.642045
cf17601214b97cfcac8a187aaa5dbc9ff8b959c3
2,447
py
Python
web/get_md_link.py
urahito/python_proj
08e7bdb0b85d5bdaff7dc12123a6cf529d773b51
[ "MIT" ]
null
null
null
web/get_md_link.py
urahito/python_proj
08e7bdb0b85d5bdaff7dc12123a6cf529d773b51
[ "MIT" ]
null
null
null
web/get_md_link.py
urahito/python_proj
08e7bdb0b85d5bdaff7dc12123a6cf529d773b51
[ "MIT" ]
null
null
null
# coding: utf-8 import csv # import bs4, requests # (html) import re # from pathlib import Path # get # for # # # parent,sub # URL # titleformat # urlcsv # if __name__ == '__main__': main() print('finish')
26.031915
79
0.62076
cf177a1ec40b9e0ee1cb4ea1a53f73edf0e114cb
4,862
py
Python
src/player_class.py
cs-kelleher/5e_character_generator
07f686f020121706a2df395f61a3c94a9414e195
[ "Apache-2.0" ]
null
null
null
src/player_class.py
cs-kelleher/5e_character_generator
07f686f020121706a2df395f61a3c94a9414e195
[ "Apache-2.0" ]
null
null
null
src/player_class.py
cs-kelleher/5e_character_generator
07f686f020121706a2df395f61a3c94a9414e195
[ "Apache-2.0" ]
1
2022-01-07T11:59:40.000Z
2022-01-07T11:59:40.000Z
import random from src import utils
40.516667
88
0.532086
cf17b3dece5754fb10b6ed6c9a4380d2756c99d7
974
py
Python
daiquiri/metadata/migrations/0025_add_published_updated.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
14
2018-12-23T18:35:02.000Z
2021-12-15T04:55:12.000Z
daiquiri/metadata/migrations/0025_add_published_updated.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
40
2018-12-20T12:44:05.000Z
2022-03-21T11:35:20.000Z
daiquiri/metadata/migrations/0025_add_published_updated.py
agy-why/daiquiri
4d3e2ce51e202d5a8f1df404a0094a4e018dcb4d
[ "Apache-2.0" ]
5
2019-05-16T08:03:35.000Z
2021-08-23T20:03:11.000Z
# Generated by Django 2.1.4 on 2019-05-29 11:45 from django.db import migrations, models
28.647059
84
0.577002
cf1bd5b0173298dd77707eabb16a43459b3cc57c
12,919
py
Python
data_utils/utils.py
ymli39/ACEnet-for-Neuroanatomy-Segmentation
6b3f59ece3f6bf04753b8ac78a6e0cf4d927f90b
[ "MIT" ]
16
2020-02-21T15:35:47.000Z
2022-02-17T09:08:30.000Z
data_utils/utils.py
ymli39/ACEnet-for-Neuroanatomy-Segmentation
6b3f59ece3f6bf04753b8ac78a6e0cf4d927f90b
[ "MIT" ]
4
2021-06-13T13:53:09.000Z
2021-07-30T02:38:01.000Z
data_utils/utils.py
ymli39/ACEnet-for-Neuroanatomy-Segmentation
6b3f59ece3f6bf04753b8ac78a6e0cf4d927f90b
[ "MIT" ]
2
2021-06-29T00:19:57.000Z
2022-01-04T07:01:03.000Z
##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #Created by: Yuemeng Li #BE department, University of Pennsylvania ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import numpy as np import nibabel as nib import os from tqdm import tqdm from functools import parti...
41.407051
143
0.598576
cf1d647c1b8aea2ce8105fa7a29592bbbd39a95c
1,186
py
Python
yatube/posts/tests/test_models.py
EvgenyAlexandrov/hw05_final
f47e0a8ae32465631057b41b0564bfbead54d55c
[ "MIT" ]
null
null
null
yatube/posts/tests/test_models.py
EvgenyAlexandrov/hw05_final
f47e0a8ae32465631057b41b0564bfbead54d55c
[ "MIT" ]
null
null
null
yatube/posts/tests/test_models.py
EvgenyAlexandrov/hw05_final
f47e0a8ae32465631057b41b0564bfbead54d55c
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import TestCase from posts.models import Group, Post User = get_user_model()
28.926829
66
0.650084
cf1e2e816df32a99d2233a21dda8043ee1b9590b
1,663
py
Python
assistant/warehouse/services.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/warehouse/services.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
assistant/warehouse/services.py
kapiak/ware_prod
ae61256890834c434d2e38cc2ccacf00b638665a
[ "MIT" ]
null
null
null
import logging import uuid from assistant.orders.models import LineItem from .models import Stock from .exceptions import InsufficientStock logger = logging.getLogger(__name__)
31.377358
91
0.564642
cf2211cf683c450a9ee0fff5f91b9dcf3295ad09
1,314
py
Python
04 - Class vs Static Methods/helper.py
ThiagoPiovesan/OOP-Python
02e2ae6efad87524c1a9ce50d7dac6ebfd392d4e
[ "MIT" ]
null
null
null
04 - Class vs Static Methods/helper.py
ThiagoPiovesan/OOP-Python
02e2ae6efad87524c1a9ce50d7dac6ebfd392d4e
[ "MIT" ]
null
null
null
04 - Class vs Static Methods/helper.py
ThiagoPiovesan/OOP-Python
02e2ae6efad87524c1a9ce50d7dac6ebfd392d4e
[ "MIT" ]
null
null
null
#--------------------------------------------------------------------# # Help program. # Created by: Jim - https://www.youtube.com/watch?v=XCgWYx-lGl8 # Changed by: Thiago Piovesan #--------------------------------------------------------------------# # When to use class methods and when to use static methods ? #-----...
37.542857
94
0.503805
cf225d26cd1440c60b616f74880dc9c6c8368650
12,146
py
Python
tests/test_dataset_and_algorithm_match.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
2
2022-01-29T03:46:31.000Z
2022-02-14T14:06:35.000Z
tests/test_dataset_and_algorithm_match.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
tests/test_dataset_and_algorithm_match.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
import tempfile import unittest from pathlib import Path from typing import Iterable import numpy as np from tests.fixtures.algorithms import SupervisedDeviatingFromMean from timeeval import ( TimeEval, Algorithm, Datasets, TrainingType, InputDimensionality, Status, Metric, ResourceCon...
44.328467
116
0.619299
cf2346a62946d4484b1f9aa92c90c5e401b36387
7,406
py
Python
docker-mirror.py
jiaxinonly/docker-mirror
7035f19fd11a98d26e575be61407d592d176b183
[ "MIT" ]
null
null
null
docker-mirror.py
jiaxinonly/docker-mirror
7035f19fd11a98d26e575be61407d592d176b183
[ "MIT" ]
null
null
null
docker-mirror.py
jiaxinonly/docker-mirror
7035f19fd11a98d26e575be61407d592d176b183
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- # python2python3 from __future__ import print_function from __future__ import unicode_literals from concurrent.futures import TimeoutError from subprocess import Popen from os import path, system, mknod import json import time import timeout_decorator import sys from getopt im...
39.393617
120
0.559276
cf243a113da2ea19a6d50725495fe345dde23853
215
py
Python
refinement/dataset/__init__.py
XinyuHua/pair-emnlp2020
45f8b8ea3752dfb43aa75914afab1b29b2f10c50
[ "MIT" ]
20
2020-10-10T05:38:14.000Z
2022-02-15T01:07:39.000Z
refinement/dataset/__init__.py
XinyuHua/pair-emnlp2020
45f8b8ea3752dfb43aa75914afab1b29b2f10c50
[ "MIT" ]
4
2020-10-20T03:29:41.000Z
2021-04-23T16:10:34.000Z
refinement/dataset/__init__.py
XinyuHua/pair-emnlp2020
45f8b8ea3752dfb43aa75914afab1b29b2f10c50
[ "MIT" ]
2
2021-07-06T01:20:01.000Z
2021-08-19T05:26:24.000Z
from .base_dataset import BaseDataset from .baseline_dataset import BaselineDataset from .refinement_dataset import RefinementDataset __all__ = [ 'BaseDataset', 'BaselineDataset', 'RefinementDataset' ]
21.5
49
0.786047
cf2441e808929b6faa57cc3a71cd5dfe5c01ef11
388
py
Python
mach/models.py
RobDBennett/mach2
c6beac71712acbec01fbec68809d759be13e891b
[ "MIT" ]
null
null
null
mach/models.py
RobDBennett/mach2
c6beac71712acbec01fbec68809d759be13e891b
[ "MIT" ]
null
null
null
mach/models.py
RobDBennett/mach2
c6beac71712acbec01fbec68809d759be13e891b
[ "MIT" ]
null
null
null
"""SQLAlchemy models and utility functions for Sprint.""" from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy()
24.25
80
0.703608
cf25342d592c31dfdfa2fba24e7d3b0189c133fb
668
py
Python
Intermedio/22 Pong/scoreboard.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
Intermedio/22 Pong/scoreboard.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
Intermedio/22 Pong/scoreboard.py
YosafatM/100-days-of-Python
e81ab663b7aacb7a904f27a4e6774837cf3594a1
[ "MIT" ]
null
null
null
from turtle import Turtle
25.692308
83
0.561377
cf254f698c0217517b1dda6a08510389aed9cdab
5,031
py
Python
examples/applications/restapi/example_ws_client/ws_client.py
electrumsv/electrumsv
a2d9027ccec338cadfca778888e6ef7f077b1651
[ "MIT" ]
136
2019-01-10T15:49:09.000Z
2022-02-20T04:46:39.000Z
examples/applications/restapi/example_ws_client/ws_client.py
electrumsv/electrumsv
a2d9027ccec338cadfca778888e6ef7f077b1651
[ "MIT" ]
790
2019-01-07T01:53:35.000Z
2022-03-30T23:04:28.000Z
examples/applications/restapi/example_ws_client/ws_client.py
electrumsv/electrumsv
a2d9027ccec338cadfca778888e6ef7f077b1651
[ "MIT" ]
65
2019-01-10T23:55:30.000Z
2021-12-19T06:47:13.000Z
import aiohttp import asyncio import json import logging import requests from typing import cast, Iterable, List, Optional from electrumsv.constants import TxFlags logging.basicConfig(level=logging.DEBUG) if __name__ == "__main__": logger = logging.getLogger("main") logger_urllib3 = logging.getLogger("url...
37.544776
96
0.604651
cf2661dfbf89d625a0ce36ee1a1d61d3faa8fa05
6,975
py
Python
main.py
BjoernPetersen/LSaaS
99ffaafb321de6506a027c04e84cb3e7123d83b3
[ "MIT" ]
null
null
null
main.py
BjoernPetersen/LSaaS
99ffaafb321de6506a027c04e84cb3e7123d83b3
[ "MIT" ]
7
2020-11-10T10:51:59.000Z
2022-03-08T17:42:45.000Z
main.py
BjoernPetersen/LSaaS
99ffaafb321de6506a027c04e84cb3e7123d83b3
[ "MIT" ]
null
null
null
import hashlib import json import os import secrets from base64 import b64decode, b64encode from ipaddress import ip_address, IPv4Address, IPv6Address from typing import Optional, List, Set, Union, FrozenSet import boto3 from sewer.client import Client as SewerClient from sewer.dns_providers import CloudFlareDns impo...
28.012048
96
0.634695
cf28182394b75bea4cfed858f0724ecac9c6eb4d
3,681
py
Python
src/atsrv/attestation_service.py
UnitedID/atsrv
a1a495ba19f10fd8d7ac9a9d5c0f2f078918bd37
[ "BSD-2-Clause" ]
null
null
null
src/atsrv/attestation_service.py
UnitedID/atsrv
a1a495ba19f10fd8d7ac9a9d5c0f2f078918bd37
[ "BSD-2-Clause" ]
null
null
null
src/atsrv/attestation_service.py
UnitedID/atsrv
a1a495ba19f10fd8d7ac9a9d5c0f2f078918bd37
[ "BSD-2-Clause" ]
null
null
null
import json import logging import os import time from oic.utils.jwt import JWT logger = logging.getLogger(__name__)
27.066176
72
0.528117
cf28454e94ce5f0820498f769bacf7d0eaf3cd40
1,117
py
Python
gamma/td/structs.py
JannerM/gamma-models
4b40d828bf228385c3081d359cdc3494d70de4a1
[ "MIT" ]
32
2020-12-20T19:53:13.000Z
2021-09-07T07:40:46.000Z
gamma/td/structs.py
jannerm/gamma-models
a88ff9176a4b883a68a6eeabacf6f9cba13530eb
[ "MIT" ]
3
2021-01-02T22:23:17.000Z
2021-07-20T00:34:58.000Z
gamma/td/structs.py
jannerm/gamma-models
a88ff9176a4b883a68a6eeabacf6f9cba13530eb
[ "MIT" ]
8
2020-12-22T13:09:27.000Z
2021-09-30T07:25:54.000Z
import numpy as np import pickle import torch from gamma.utils.arrays import ( to_torch, to_np, dict_to_torch, )
25.386364
68
0.628469
cf2ab4c76d51d8d8879b93dd948fd22be8f9b75e
15,917
py
Python
run_stella.py
baklanovp/pystella
47a8b9c3dcd343bf80fba80c8468b803f0f842ce
[ "MIT" ]
1
2019-08-08T13:11:57.000Z
2019-08-08T13:11:57.000Z
run_stella.py
cradesto/pystella
f6f44ed12d9648585a52a09e15d494daa4c70c59
[ "MIT" ]
9
2015-07-11T16:39:57.000Z
2021-11-23T07:31:49.000Z
run_stella.py
cradesto/pystella
f6f44ed12d9648585a52a09e15d494daa4c70c59
[ "MIT" ]
1
2019-08-08T13:08:55.000Z
2019-08-08T13:08:55.000Z
#!/usr/bin/env python3 import os import sys import argparse import logging from io import IOBase from sys import stdout from select import select from threading import Thread from time import sleep from io import StringIO import shutil from datetime import datetime import numpy as np logging.basicConfig(filename=d...
32.886364
117
0.54935
cf2b77b413257fb41d5d5fa3c9259818e5490edc
388
py
Python
s_core/admin.py
jrbenriquez/sarimuson2
cdaedb130bd7b3ef065e4503228cc1610ae43fda
[ "MIT" ]
null
null
null
s_core/admin.py
jrbenriquez/sarimuson2
cdaedb130bd7b3ef065e4503228cc1610ae43fda
[ "MIT" ]
null
null
null
s_core/admin.py
jrbenriquez/sarimuson2
cdaedb130bd7b3ef065e4503228cc1610ae43fda
[ "MIT" ]
null
null
null
from django.contrib import admin from .models.customer import Customer from .models.purchase import Purchase from .models.purchase import PurchaseItem
18.47619
42
0.798969
cf2c3c8a014629d829309ed3c38591faf1b2ecf2
2,559
py
Python
egs/chime6/s5_track1/my_local/noise_distortion/prepare_noise_dir.py
PinYuan/kaldi
4cf44a2ef46f2b66d53747b57a83fa7dfd899d77
[ "Apache-2.0" ]
null
null
null
egs/chime6/s5_track1/my_local/noise_distortion/prepare_noise_dir.py
PinYuan/kaldi
4cf44a2ef46f2b66d53747b57a83fa7dfd899d77
[ "Apache-2.0" ]
null
null
null
egs/chime6/s5_track1/my_local/noise_distortion/prepare_noise_dir.py
PinYuan/kaldi
4cf44a2ef46f2b66d53747b57a83fa7dfd899d77
[ "Apache-2.0" ]
1
2021-08-06T10:07:51.000Z
2021-08-06T10:07:51.000Z
import os import tqdm import argparse import subprocess from shutil import copyfile if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument("kind", default="noise_mismatch", nargs="?", help="'noise_mismatch' might contain channel distortion, "\ ...
38.19403
107
0.62798
cf2e72f45b924d9004b007bde8c0d4da75bce5ed
10,068
py
Python
opendatatools/hedgefund/simu_agent.py
jjcc/OpenData
795dac9fb36e7256ea60356f90eaeb84dbc532fe
[ "Apache-2.0" ]
1,179
2018-05-28T07:14:41.000Z
2022-03-27T16:03:51.000Z
opendatatools/hedgefund/simu_agent.py
suuuch/InvestOpenData
b07c0467629a88c33e21dd99d7c8ff00231ff349
[ "Apache-2.0" ]
42
2018-07-05T02:44:56.000Z
2022-03-29T12:12:30.000Z
opendatatools/hedgefund/simu_agent.py
suuuch/InvestOpenData
b07c0467629a88c33e21dd99d7c8ff00231ff349
[ "Apache-2.0" ]
297
2018-05-28T07:39:38.000Z
2022-03-28T02:35:59.000Z
from opendatatools.common import RestAgent, md5 from progressbar import ProgressBar import json import pandas as pd import io import hashlib import time index_map = { 'Barclay_Hedge_Fund_Index' : 'ghsndx', 'Convertible_Arbitrage_Index' : 'ghsca', 'Distressed_Securities_Index' : 'ghsds', 'Emerg...
33.785235
192
0.565654
cf30dc1f832c2d45390d695f800bed625ee39705
24
py
Python
cassandramock/tests/__init__.py
chrismohr-peloton/cassandramock
9b2339c2b9d60f3a353064b90b14d7a4b86ea654
[ "MIT" ]
7
2015-02-02T22:02:47.000Z
2019-07-11T21:50:42.000Z
cassandramock/tests/__init__.py
sriram-mv/cassandramock
a860446a24607e2155aaef03d2e6dcfab94abade
[ "MIT" ]
5
2015-05-29T18:15:24.000Z
2016-02-16T15:31:04.000Z
cassandramock/tests/__init__.py
sriram-mv/cassandramock
a860446a24607e2155aaef03d2e6dcfab94abade
[ "MIT" ]
10
2015-05-28T13:56:01.000Z
2020-10-25T02:17:14.000Z
__author__ = 'srir6369'
12
23
0.75
cf31ff60946fb6830b4cc2102fa090456eb99b01
3,343
py
Python
dataAI(deprecated)/data.py
philxhuang/AI2048
040ad562a4865be475b32758517e3c198b41cfbc
[ "MIT" ]
1
2021-02-10T08:04:20.000Z
2021-02-10T08:04:20.000Z
dataAI(deprecated)/data.py
philxhuang/2048pseudoAI
040ad562a4865be475b32758517e3c198b41cfbc
[ "MIT" ]
null
null
null
dataAI(deprecated)/data.py
philxhuang/2048pseudoAI
040ad562a4865be475b32758517e3c198b41cfbc
[ "MIT" ]
null
null
null
#========================================================================================== # A very clumsy attemp to read and write data stored in csv files # because I have tried hard to write cutomized data file in .npz and .pt but both gave trouble # so I gave up and now use the old good csv--->but everything is a ...
39.329412
104
0.552797
cf3295433713bfdffcc7edfcc50fdea98e15b0b5
1,829
py
Python
modulo/_pod_time.py
lorenzoschena/modulo_vki_testing
dc5dfcf8ecadd2a6410744ae0ca5368a9b5110eb
[ "BSD-3-Clause" ]
null
null
null
modulo/_pod_time.py
lorenzoschena/modulo_vki_testing
dc5dfcf8ecadd2a6410744ae0ca5368a9b5110eb
[ "BSD-3-Clause" ]
null
null
null
modulo/_pod_time.py
lorenzoschena/modulo_vki_testing
dc5dfcf8ecadd2a6410744ae0ca5368a9b5110eb
[ "BSD-3-Clause" ]
null
null
null
import os import numpy as np # import jax.numpy as jnp from sklearn.decomposition import TruncatedSVD def Temporal_basis_POD(K, SAVE_T_POD=False, FOLDER_OUT='./',n_Modes=10): """ This method computes the POD basis. For some theoretical insights, you can find the theoretical background of the proper orth...
33.87037
120
0.558229
cf329e5f66247bbca95e4bf363db6bddf61b921c
1,046
py
Python
DataAggregator/FIPS_Reference.py
Trigition/Village
bf22077f54e87be2dda1bf8984d0a62914e8e70f
[ "Apache-2.0" ]
1
2017-05-17T15:28:52.000Z
2017-05-17T15:28:52.000Z
DataAggregator/FIPS_Reference.py
Trigition/Village
bf22077f54e87be2dda1bf8984d0a62914e8e70f
[ "Apache-2.0" ]
null
null
null
DataAggregator/FIPS_Reference.py
Trigition/Village
bf22077f54e87be2dda1bf8984d0a62914e8e70f
[ "Apache-2.0" ]
null
null
null
FIPS_Reference = { "AL":"01", "AK":"02", "AZ":"04", "AR":"05", "AS":"60", "CA":"06", "CO":"08", "CT":"09", "DE":"10", "FL":"12", "GA":"13", "GU":"66", "HI":"15", "ID":"16", "IL":"17", "IN":"18...
18.350877
18
0.219885
cf339fa6d349f92afb59c6edc35b66baa1c54610
6,032
py
Python
airbus_docgen/src/airbus_docgen/digraph/model/cmakelists.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-10-15T23:32:24.000Z
2019-12-26T12:31:53.000Z
airbus_docgen/src/airbus_docgen/digraph/model/cmakelists.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
6
2017-09-05T13:52:00.000Z
2017-12-01T14:18:27.000Z
airbus_docgen/src/airbus_docgen/digraph/model/cmakelists.py
ipa320/airbus_coop
974564807ba5d24096e237a9991311608a390da1
[ "Apache-2.0" ]
4
2017-09-04T08:14:36.000Z
2017-09-18T07:22:21.000Z
#!/usr/bin/env python # # Copyright 2015 Airbus # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA) # # 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 # # ...
30.77551
88
0.601293
cf33cb454555e0eaca9778f5fcea4cdb63f45139
413
py
Python
examples/geo/divvy.py
fding253/nxviz
e52fa46a751196af9b4c4833ff7529fdda2bcaf7
[ "MIT" ]
385
2016-07-18T02:14:58.000Z
2022-03-28T16:02:08.000Z
examples/geo/divvy.py
fding253/nxviz
e52fa46a751196af9b4c4833ff7529fdda2bcaf7
[ "MIT" ]
318
2016-07-17T22:53:34.000Z
2021-11-11T13:17:35.000Z
examples/geo/divvy.py
fding253/nxviz
e52fa46a751196af9b4c4833ff7529fdda2bcaf7
[ "MIT" ]
79
2016-07-17T21:49:55.000Z
2022-02-24T11:08:28.000Z
import networkx as nx import matplotlib.pyplot as plt from nxviz import GeoPlot G = nx.read_gpickle("divvy.pkl") print(list(G.nodes(data=True))[0]) G_new = G.copy() for n1, n2, d in G.edges(data=True): if d["count"] < 200: G_new.remove_edge(n1, n2) g = GeoPlot( G_new, node_lat="latitude", nod...
17.208333
36
0.653753
cf3597f5b36dd3406bf59bd803fe6c7acdc72251
8,920
py
Python
yoapi/yos/queries.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
1
2021-12-17T03:25:34.000Z
2021-12-17T03:25:34.000Z
yoapi/yos/queries.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
yoapi/yos/queries.py
YoApp/yo-api
a162e51804ab91724cc7ad3e7608410329da6789
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Yo querying package.""" from itertools import takewhile from mongoengine import Q, DoesNotExist from ..core import cache from ..async import async_job from ..errors import YoTokenInvalidError from ..helpers import get_usec_timestamp from ..models import Yo, YoToken, User from ..permissions...
31.743772
89
0.67287
cf36eb9a3d6a5a3acd94c393ea381b2d178ecae2
720
py
Python
exam_system/exams/models.py
munirhaque/recruitment-system
1405efdf9ec88d41c595e346231ae883836106ff
[ "bzip2-1.0.6" ]
null
null
null
exam_system/exams/models.py
munirhaque/recruitment-system
1405efdf9ec88d41c595e346231ae883836106ff
[ "bzip2-1.0.6" ]
null
null
null
exam_system/exams/models.py
munirhaque/recruitment-system
1405efdf9ec88d41c595e346231ae883836106ff
[ "bzip2-1.0.6" ]
null
null
null
from django.db import models from questions.models import Question from topics.models import Topic
36
65
0.781944
cf3798f5487716805769a409f22b25b2570d30a6
1,214
py
Python
src/models/logistic_regression.py
CarolineFuglsang/san_fransico_crime_data
0353d96f5ae2e02bb7dfb410cd2bc4a62b8e295a
[ "MIT" ]
null
null
null
src/models/logistic_regression.py
CarolineFuglsang/san_fransico_crime_data
0353d96f5ae2e02bb7dfb410cd2bc4a62b8e295a
[ "MIT" ]
null
null
null
src/models/logistic_regression.py
CarolineFuglsang/san_fransico_crime_data
0353d96f5ae2e02bb7dfb410cd2bc4a62b8e295a
[ "MIT" ]
null
null
null
from sklearn.linear_model import LogisticRegression from sklearn.metrics import accuracy_score from src.data.datamodule import SanFranciscoDataModule # running logistic regression dm = SanFranciscoDataModule() preds = run_logistic_regression(dm) output_path = 'data/predictions/log_reg.csv' preds.to_csv(output_path, ...
29.609756
73
0.714168
cf37e22c1c71e2bafbb71d46e0f31afa46a234ff
1,002
py
Python
meleagris/__init__.py
kmayerb/Meleagris
b45ca01bd1bf46242272330236b74fc7b572b7b1
[ "MIT" ]
null
null
null
meleagris/__init__.py
kmayerb/Meleagris
b45ca01bd1bf46242272330236b74fc7b572b7b1
[ "MIT" ]
null
null
null
meleagris/__init__.py
kmayerb/Meleagris
b45ca01bd1bf46242272330236b74fc7b572b7b1
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from .version import __version__ # noqa from meleagris import carve from meleagris import roast __all__ = [ 'roast', 'carve' ] # For a review of the basics of the __init__.py file #__init__.py is what is invoked when the package is impor...
23.857143
81
0.727545
cf380022563cd2e1431e91af1262aa6a5ec7d366
1,443
py
Python
1-100/1-10/6-zigZagConversion/zigZagConversion.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/1-10/6-zigZagConversion/zigZagConversion.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
1-100/1-10/6-zigZagConversion/zigZagConversion.py
xuychen/Leetcode
c8bf33af30569177c5276ffcd72a8d93ba4c402a
[ "MIT" ]
null
null
null
import operator
23.655738
50
0.416493
cf386355b5e43d0303322e0ce9830069d230850a
2,187
py
Python
anadama2/taskcontainer.py
biobakery/anadama2_test
46d06f7efc24ae067a1b6cc2841eda0c2a328daf
[ "MIT" ]
4
2020-06-08T22:10:48.000Z
2021-07-27T13:57:43.000Z
anadama2/taskcontainer.py
biobakery/anadama2_test
46d06f7efc24ae067a1b6cc2841eda0c2a328daf
[ "MIT" ]
null
null
null
anadama2/taskcontainer.py
biobakery/anadama2_test
46d06f7efc24ae067a1b6cc2841eda0c2a328daf
[ "MIT" ]
1
2020-09-10T08:29:22.000Z
2020-09-10T08:29:22.000Z
# -*- coding: utf-8 -*- import re import fnmatch import itertools import six from .util import matcher
27.683544
74
0.569273
cf3c57e8c9640eb1ca933e72680451abc976f04e
23
py
Python
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Bessel Functions/Zeros of Bessel Functions/yn_zeros Compute nt zeros of the Bessel function $Y_n(x)$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Bessel Functions/Zeros of Bessel Functions/yn_zeros Compute nt zeros of the Bessel function $Y_n(x)$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
null
null
null
example_snippets/multimenus_snippets/Snippets/SciPy/Special functions/Bessel Functions/Zeros of Bessel Functions/yn_zeros Compute nt zeros of the Bessel function $Y_n(x)$.py
kuanpern/jupyterlab-snippets-multimenus
477f51cfdbad7409eab45abe53cf774cd70f380c
[ "BSD-3-Clause" ]
1
2021-02-04T04:51:48.000Z
2021-02-04T04:51:48.000Z
special.yn_zeros(n, nt)
23
23
0.782609
cf42bd8238e215307bd91af4554e54f16b6b907d
1,001
py
Python
clavier/dyn.py
nrser/clavier
f865e91f8cb8d17327b7e563dcd5477a5e3a530e
[ "MIT" ]
null
null
null
clavier/dyn.py
nrser/clavier
f865e91f8cb8d17327b7e563dcd5477a5e3a530e
[ "MIT" ]
null
null
null
clavier/dyn.py
nrser/clavier
f865e91f8cb8d17327b7e563dcd5477a5e3a530e
[ "MIT" ]
1
2021-08-28T20:43:20.000Z
2021-08-28T20:43:20.000Z
""" Functions for doing _dynamic_ things, like iterating all of the immediate child modules (useful for loading sub-commands). """ import sys import importlib.util import pkgutil
26.342105
79
0.688312
cf42f9205cca98c6e59c8a1b31ce8cb75bb77dd6
5,182
py
Python
needle/modules/dynamic/detection/jailbreak_detection.py
yeyintminthuhtut/needle
c8bb63de88553fed2196f6c56033935b84c6aaaf
[ "BSD-3-Clause" ]
2
2021-01-11T07:11:29.000Z
2021-12-21T00:57:47.000Z
needle/modules/dynamic/detection/jailbreak_detection.py
yeyintminthuhtut/needle
c8bb63de88553fed2196f6c56033935b84c6aaaf
[ "BSD-3-Clause" ]
null
null
null
needle/modules/dynamic/detection/jailbreak_detection.py
yeyintminthuhtut/needle
c8bb63de88553fed2196f6c56033935b84c6aaaf
[ "BSD-3-Clause" ]
null
null
null
from core.framework.module import BaseModule import ast import time import difflib
46.684685
153
0.511386