hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
9f58c330f9463326a301d1f71e117079353aefd1
3,507
py
Python
play_scraper/api.py
fbalestra/play-scraper
6ba3dbc611c1152767d7a7ca12d778d2e56751ff
[ "MIT" ]
2
2021-04-07T16:16:03.000Z
2022-03-03T18:29:21.000Z
play_scraper/api.py
fbalestra/play-scraper
6ba3dbc611c1152767d7a7ca12d778d2e56751ff
[ "MIT" ]
null
null
null
play_scraper/api.py
fbalestra/play-scraper
6ba3dbc611c1152767d7a7ca12d778d2e56751ff
[ "MIT" ]
2
2019-05-24T07:21:34.000Z
2021-10-31T21:34:48.000Z
# -*- coding: utf-8 -*- """ play_scraper.api :copyright: (c) 2016 Daniel Liu. :license: MIT, see LICENSE for more details. """ from play_scraper import scraper def details(app_id, hl='en', gl='us'): """Sends a GET request to the app's info page, parses the app's details, and returns them as a dict. :...
34.382353
80
0.690334
784220bcff1383025263a7961bd7b7fb0159b73c
1,270
py
Python
tests/api/test_roles.py
rsp2k/ciscosparkapi
fa436497d2932057c54c1430002796e7654b2b7d
[ "MIT" ]
null
null
null
tests/api/test_roles.py
rsp2k/ciscosparkapi
fa436497d2932057c54c1430002796e7654b2b7d
[ "MIT" ]
null
null
null
tests/api/test_roles.py
rsp2k/ciscosparkapi
fa436497d2932057c54c1430002796e7654b2b7d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """pytest Roles API wrapper tests and fixtures.""" import pytest import ciscosparkapi # Helper Functions def get_list_of_roles(api, max=None): return api.roles.list(max=max) def get_role_by_id(api, roleId): return api.roles.get(roleId) def is_valid_role(obj): return isinst...
21.166667
69
0.701575
6a957bb620961d34148f4eef52748f4323f7b49c
15,978
py
Python
tflearn/utils.py
xiaohu2015/tflearn
30ed136f9ac3c48fa41a693fd27c6112bbc6e489
[ "MIT" ]
2
2016-11-29T03:44:01.000Z
2016-12-06T07:13:20.000Z
tflearn/utils.py
ginobilinie/tflearn
30ed136f9ac3c48fa41a693fd27c6112bbc6e489
[ "MIT" ]
null
null
null
tflearn/utils.py
ginobilinie/tflearn
30ed136f9ac3c48fa41a693fd27c6112bbc6e489
[ "MIT" ]
1
2019-10-26T12:45:50.000Z
2019-10-26T12:45:50.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import six import string import random try: import h5py H5PY_SUPPORTED = True except Exception as e: print("hdf5 not supported (please install/reinstall h5py)") H5PY_SUPPORTED = False import numpy as np import tens...
33.780127
95
0.569471
f1fd55a6db9c689260a4a3d4938c5be3c73e37ad
3,451
py
Python
adapters/Actuators/stepper_pulses_general.py
andycavatorta/thirtybirds_3
e51698aed769a12b64a9388d29a5a43e8abf1c3d
[ "MIT" ]
null
null
null
adapters/Actuators/stepper_pulses_general.py
andycavatorta/thirtybirds_3
e51698aed769a12b64a9388d29a5a43e8abf1c3d
[ "MIT" ]
null
null
null
adapters/Actuators/stepper_pulses_general.py
andycavatorta/thirtybirds_3
e51698aed769a12b64a9388d29a5a43e8abf1c3d
[ "MIT" ]
null
null
null
import Queue import RPi.GPIO as GPIO import threading import time class Channel(threading.Thread): def __init__(self, pulse_pin, dir_pin, base_pulse_period = 0.001, steps_finished_callback = False, backwards_orientation = False): threading.Thread.__init__(self) self.queue = Queue.Queue() se...
40.127907
137
0.602724
dad80c0c91ba0cb95c5309eef9bb7e3ceb04a6ed
4,802
py
Python
jadetree/api/v1/transactions/schema.py
asymworks/jadetree-backend
5764d9971ef3fdc85b0b9cd51fad82076f464ae4
[ "BSD-3-Clause" ]
7
2021-11-02T05:58:58.000Z
2022-03-04T22:16:20.000Z
jadetree/api/v1/transactions/schema.py
asymworks/jadetree-backend
5764d9971ef3fdc85b0b9cd51fad82076f464ae4
[ "BSD-3-Clause" ]
5
2021-01-27T14:18:01.000Z
2022-03-04T22:03:49.000Z
jadetree/api/v1/transactions/schema.py
asymworks/jadetree-backend
5764d9971ef3fdc85b0b9cd51fad82076f464ae4
[ "BSD-3-Clause" ]
null
null
null
# ============================================================================= # # Jade Tree Personal Budgeting Application | jadetree.io # Copyright (c) 2020 Asymworks, LLC. All Rights Reserved. # # ============================================================================= from marshmallow import ( Schema, ...
30.782051
79
0.670346
e269f376a4b7f654dce3534a308df0a74bacb887
3,163
py
Python
label_studio_ml/examples/substring_matching/substring_matching.py
document-analysis-tools/label-studio-ml-backend
032b88e59c980e2b0022eab1a5f95a86f16628e1
[ "Apache-2.0" ]
79
2020-04-09T10:13:26.000Z
2022-03-31T07:49:00.000Z
label_studio_ml/examples/substring_matching/substring_matching.py
document-analysis-tools/label-studio-ml-backend
032b88e59c980e2b0022eab1a5f95a86f16628e1
[ "Apache-2.0" ]
47
2021-03-19T21:16:44.000Z
2022-03-31T16:34:11.000Z
label_studio_ml/examples/substring_matching/substring_matching.py
document-analysis-tools/label-studio-ml-backend
032b88e59c980e2b0022eab1a5f95a86f16628e1
[ "Apache-2.0" ]
47
2021-03-19T17:20:54.000Z
2022-03-31T16:25:09.000Z
import logging import re from label_studio_ml.model import LabelStudioMLBase import random import string import functools import requests logger = logging.getLogger(__name__) class SubstringMatcher(LabelStudioMLBase): def __init__(self, **kwargs): super(SubstringMatcher, self).__init__(**kwargs) de...
33.648936
117
0.4951
9c9f6dc86f48cb43e399c7606d99ceac2154a602
2,820
py
Python
app/adapters/ifq.py
zmoog/concierge
5f77b979c34182d5933e8a3d26e97ee1e5ad8339
[ "MIT" ]
1
2020-02-13T16:32:01.000Z
2020-02-13T16:32:01.000Z
app/adapters/ifq.py
zmoog/concierge
5f77b979c34182d5933e8a3d26e97ee1e5ad8339
[ "MIT" ]
389
2019-09-06T06:02:45.000Z
2022-03-31T04:07:25.000Z
app/adapters/ifq.py
zmoog/concierge
5f77b979c34182d5933e8a3d26e97ee1e5ad8339
[ "MIT" ]
2
2020-02-24T13:04:46.000Z
2020-02-24T13:16:43.000Z
# import logging from datetime import datetime # import os import tempfile import requests from lxml import html IFQ_LOGIN_URL = 'https://shop.ilfattoquotidiano.it/login/' IFQ_ARCHIVE_URL = 'https://shop.ilfattoquotidiano.it/archivio-edizioni/' # logging.basicConfig(level=logging.DEBUG) class IFQAdapter: def ...
30.989011
79
0.56844
9775cc82c6b46e5ad04896404a5da16947046f6b
32,034
py
Python
capsul/attributes/completion_engine.py
Dralehcab/capsul
cc27fe74706aeb646ac54244a14e432caacee3c7
[ "CECILL-B" ]
null
null
null
capsul/attributes/completion_engine.py
Dralehcab/capsul
cc27fe74706aeb646ac54244a14e432caacee3c7
[ "CECILL-B" ]
null
null
null
capsul/attributes/completion_engine.py
Dralehcab/capsul
cc27fe74706aeb646ac54244a14e432caacee3c7
[ "CECILL-B" ]
null
null
null
from __future__ import print_function from soma.singleton import Singleton from soma.controller import Controller, ControllerTrait from capsul.pipeline.pipeline import Pipeline from capsul.pipeline.pipeline import Graph, ProcessNode, Switch from capsul.attributes.attributes_factory import AttributesFactory from capsul...
41.441138
175
0.578448
cc6d9a8d01ec01107ccfd7bca7d37262d8573153
2,552
py
Python
test/test_plist.py
provegard/airpnp
b3b3deed4db47f0823431c31633b598339aff0e1
[ "BSD-3-Clause" ]
17
2015-02-22T23:12:18.000Z
2022-03-29T20:57:30.000Z
test/test_plist.py
provegard/airpnp
b3b3deed4db47f0823431c31633b598339aff0e1
[ "BSD-3-Clause" ]
1
2017-10-07T12:53:35.000Z
2017-10-11T15:14:39.000Z
test/test_plist.py
provegard/airpnp
b3b3deed4db47f0823431c31633b598339aff0e1
[ "BSD-3-Clause" ]
3
2016-12-31T05:29:42.000Z
2017-05-20T03:44:19.000Z
import unittest import os.path import datetime from airpnp.plist import * from airpnp.plist import UTC from cStringIO import StringIO class TestReadBinary(unittest.TestCase): def test_invalid_signature(self): fd = StringIO("hello, world") self.assertRaises(PListFormatError, read_binary_plist, fd)...
46.4
423
0.699451
4f291c401f3d06ae73dd13835a0f6b52641830a6
3,597
py
Python
cifar/models/dpn.py
tbachlechner/Fixup
84322e2dfe212b02f74d515d8984e618968cdab8
[ "BSD-3-Clause" ]
1
2020-04-21T06:10:17.000Z
2020-04-21T06:10:17.000Z
models/dpn.py
tbachlechner/ReZero-Superconvergence
6c0212669ac8c23d3db6f2b99255bcf6e3c5e6e6
[ "MIT" ]
null
null
null
models/dpn.py
tbachlechner/ReZero-Superconvergence
6c0212669ac8c23d3db6f2b99255bcf6e3c5e6e6
[ "MIT" ]
null
null
null
'''Dual Path Networks in PyTorch.''' import torch import torch.nn as nn import torch.nn.functional as F __all__ = ['DPN','dpn26', 'dpn92'] class Bottleneck(nn.Module): def __init__(self, last_planes, in_planes, out_planes, dense_depth, stride, first_layer): super(Bottleneck, self).__init__() self....
35.97
116
0.608007
0ff792d052e488fbabc4ec69939d6c832063542d
7,614
py
Python
empire/server/common/http.py
awsmhacks/Empire
6a6f0881798ce92a54ce9896d2ffe4855855872d
[ "BSD-3-Clause" ]
null
null
null
empire/server/common/http.py
awsmhacks/Empire
6a6f0881798ce92a54ce9896d2ffe4855855872d
[ "BSD-3-Clause" ]
null
null
null
empire/server/common/http.py
awsmhacks/Empire
6a6f0881798ce92a54ce9896d2ffe4855855872d
[ "BSD-3-Clause" ]
null
null
null
""" HTTP related methods used by Empire. Includes URI validation/checksums, as well as the base http server (EmpireServer) and its modified request handler (RequestHandler). These are the first places URI requests are processed. """ from __future__ import absolute_import from future import standard_library from e...
30.334661
102
0.568033
9615fe001ccc066432bb544c6d94794884b66ba6
124
py
Python
labs/common/settings.py
DhiaTN/djangolab
7e0e624ef76d6be4fbf83afe53bea368c6c3590b
[ "MIT" ]
7
2016-03-15T23:45:01.000Z
2017-04-27T17:25:05.000Z
labs/common/settings.py
DhiaTN/djangolab
7e0e624ef76d6be4fbf83afe53bea368c6c3590b
[ "MIT" ]
null
null
null
labs/common/settings.py
DhiaTN/djangolab
7e0e624ef76d6be4fbf83afe53bea368c6c3590b
[ "MIT" ]
null
null
null
DATE_PATTERN = "{:%d, %b %Y}" URL_RegEx = "http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"
31
92
0.387097
b126dd01638aba6095e9f315015b188dc8c6e346
750
py
Python
support/find_document_store_by_email.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
support/find_document_store_by_email.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
support/find_document_store_by_email.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
import os os.environ['DJANGO_SETTINGS_MODULE'] = "datawinners.settings" from django.contrib.auth.models import User import sys from datawinners.accountmanagement.models import OrganizationSetting, Organization, NGOUserProfile email = "rhmino@gmail.com" users = User.objects.filter(email=email) if not users: print ...
35.714286
98
0.801333
42b3768af1c30666a020a42476ef20453b12f29e
1,144
py
Python
py61850/types/visible_string.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
3
2020-09-21T02:13:58.000Z
2021-09-18T02:32:56.000Z
py61850/types/visible_string.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
null
null
null
py61850/types/visible_string.py
arthurazs/py61850
ba9c5f40ef21bfecd14a8d380e9ff512da9ba5bf
[ "MIT" ]
2
2020-12-29T15:09:50.000Z
2022-01-04T16:19:48.000Z
from typing import Optional, Union from py61850.types.base import Base from py61850.utils.errors import raise_type class VisibleString(Base): def __init__(self, anything: Optional[Union[str, bytes]] = None, max_length: int = 0xFF, raw_tag: bytes = b'\x8A') -> None: self._max_length = ma...
34.666667
75
0.620629
fae2fc0c950a87dc5e35932a9fa159910b1fcfea
406
py
Python
mnist_example/utils.py
hlkcrcck/Kernel-Density-Estimator
5e1ba85653903832935789b51128f9a167f2261a
[ "MIT" ]
null
null
null
mnist_example/utils.py
hlkcrcck/Kernel-Density-Estimator
5e1ba85653903832935789b51128f9a167f2261a
[ "MIT" ]
null
null
null
mnist_example/utils.py
hlkcrcck/Kernel-Density-Estimator
5e1ba85653903832935789b51128f9a167f2261a
[ "MIT" ]
null
null
null
import gzip import sys import pickle import numpy as np def read_mnist_data(mnist_path, size=10000): f = gzip.open(mnist_path, 'rb') if sys.version_info < (3,): data = pickle.load(f) else: data = pickle.load(f, encoding="bytes") training_data = data[0][0] np.random.shuffle(trainin...
21.368421
49
0.657635
8491a88bd2f4730cd1af4e39d936966d6e1d3bb1
30,850
py
Python
test/test_YoutubeDL.py
404NotFoundJ/ytubr
7c4aa6fd6fd6fadf1cf1942c279cd5c0ff5ae498
[ "Unlicense" ]
null
null
null
test/test_YoutubeDL.py
404NotFoundJ/ytubr
7c4aa6fd6fd6fadf1cf1942c279cd5c0ff5ae498
[ "Unlicense" ]
null
null
null
test/test_YoutubeDL.py
404NotFoundJ/ytubr
7c4aa6fd6fd6fadf1cf1942c279cd5c0ff5ae498
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals # Allow direct execution import os import sys import unittest sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import copy from test.helper import FakeYDL, assertRegexpMatches from youtube_dl import YoutubeD...
39.249364
135
0.573485
c27c85ceeaae272dbdba1046143b9d175680b6a3
5,851
py
Python
.history/classes/Menu_20171107170706.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
.history/classes/Menu_20171107170706.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
.history/classes/Menu_20171107170706.py
reecebenson/DADSA-Tennis-PartA
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
[ "MIT" ]
null
null
null
# DADSA - Assignment 1 # Reece Benson from os import system as call from collections import OrderedDict class Menu(): # Define the variables we will be using _app = None _menu = None _current = [ "main" ] _current_menu = "main" def __init__(self, app): # Set our Application se...
33.820809
174
0.541959
9d878e6d2ea410586cb09e899350c55aecd61bd9
1,106
py
Python
grapple/urls.py
kbayliss/wagtail-grapple
1e322780cdaaa658bd30b1338599fb44c8806e74
[ "BSD-3-Clause" ]
59
2019-07-11T15:24:17.000Z
2020-07-13T01:17:28.000Z
grapple/urls.py
kbayliss/wagtail-grapple
1e322780cdaaa658bd30b1338599fb44c8806e74
[ "BSD-3-Clause" ]
54
2019-07-09T16:29:55.000Z
2020-07-05T23:13:36.000Z
grapple/urls.py
kbayliss/wagtail-grapple
1e322780cdaaa658bd30b1338599fb44c8806e74
[ "BSD-3-Clause" ]
23
2019-07-23T19:07:49.000Z
2020-06-26T22:56:14.000Z
from django.shortcuts import render from django.urls import path, reverse from django.views.decorators.csrf import csrf_exempt from graphene_django.views import GraphQLView from .settings import grapple_settings, has_channels def graphiql(request): graphiql_settings = { "REACT_VERSION": "16.14.0", ...
34.5625
88
0.725136
a89d3a7f98b569df9e31addcec3d74b78802f268
24,453
py
Python
weasyprint/layout/tables.py
prepare/TestWeasyPrint
3eb622be6c53835f5fc4a5d76bc2d3d3b7a607c6
[ "BSD-3-Clause" ]
null
null
null
weasyprint/layout/tables.py
prepare/TestWeasyPrint
3eb622be6c53835f5fc4a5d76bc2d3d3b7a607c6
[ "BSD-3-Clause" ]
null
null
null
weasyprint/layout/tables.py
prepare/TestWeasyPrint
3eb622be6c53835f5fc4a5d76bc2d3d3b7a607c6
[ "BSD-3-Clause" ]
null
null
null
# coding: utf8 """ weasyprint.layout.tables ------------------------ Layout for tables and internal table boxes. :copyright: Copyright 2011-2014 Simon Sapin and contributors, see AUTHORS. :license: BSD, see LICENSE for details. """ from __future__ import division, unicode_literals from ..compat...
40.485099
79
0.606224
b296f2d4cf2f19e3c0ed8d1aab76e5ca89c71d69
5,058
py
Python
src/datasets/mini.py
mattochal/imbalanced_fsl_public
d654a9898e19bf4278af8a4bfcebef5950c615e0
[ "MIT" ]
25
2021-01-08T09:54:11.000Z
2022-02-14T11:59:58.000Z
src/datasets/mini.py
mattochal/imbalanced_fsl_public
d654a9898e19bf4278af8a4bfcebef5950c615e0
[ "MIT" ]
2
2021-05-01T08:50:31.000Z
2021-07-14T19:45:52.000Z
src/datasets/mini.py
mattochal/imbalanced_fsl_public
d654a9898e19bf4278af8a4bfcebef5950c615e0
[ "MIT" ]
2
2021-01-11T01:18:06.000Z
2021-02-17T14:05:10.000Z
from datasets.dataset_utils import load_dataset_from_pkl, load_dataset_from_from_folder from datasets.dataset_template import ColorDatasetInMemory, ColorDatasetOnDisk import os import numpy as np def get_MiniImageNet(args_per_set, setnames=["train", "val", "test"]): """ Returns MiniImagenet datasets. """ ...
35.370629
92
0.679913
68f3912770d34729d790b689659f2740946ad393
506
py
Python
imagefy/wishes/migrations/0002_auto_20160522_1447.py
dvl/imagefy-web
be9f1502acf2f684a5dc59570eec00616e7dde4c
[ "MIT" ]
null
null
null
imagefy/wishes/migrations/0002_auto_20160522_1447.py
dvl/imagefy-web
be9f1502acf2f684a5dc59570eec00616e7dde4c
[ "MIT" ]
null
null
null
imagefy/wishes/migrations/0002_auto_20160522_1447.py
dvl/imagefy-web
be9f1502acf2f684a5dc59570eec00616e7dde4c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-22 17:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wishes', '0001_squashed_0002_auto_20160522_1408'), ] operations = [ migratio...
24.095238
96
0.636364
815e06075855e8bfe1d0fbf117db21b40ea3fcf4
1,022
py
Python
test/functional/rpc_bip38.py
ClearNode/Clearcore-Project
e1878cdff32ad14509c0950edf4cd428883e966b
[ "MIT" ]
3
2019-08-07T06:46:37.000Z
2021-04-27T05:07:49.000Z
test/functional/rpc_bip38.py
ClearNode/Clearcore-Project
e1878cdff32ad14509c0950edf4cd428883e966b
[ "MIT" ]
2
2021-03-26T03:54:06.000Z
2021-03-26T15:54:59.000Z
test/functional/rpc_bip38.py
ClearNode/Clearcore-Project
e1878cdff32ad14509c0950edf4cd428883e966b
[ "MIT" ]
5
2020-08-17T17:42:57.000Z
2021-11-28T23:39:23.000Z
#!/usr/bin/env python3 # Copyright (c) 2018-2020 The CLEARCOIN developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC commands for BIP38 encrypting and decrypting addresses.""" from test_framework.test_framework im...
36.5
88
0.713307
0b586c1b5edee569c818ac4bbfbb24594376557d
7,596
py
Python
cup/net/route.py
liu0208xuan/CUP
0e09b393673dacdd985c064cf03062b950a74179
[ "Apache-2.0" ]
900
2017-02-15T05:14:03.000Z
2022-03-22T08:07:39.000Z
cup/net/route.py
horsedongmin/CUP
94398c7d94b2574db565c3e8d6dcfe2f3722f007
[ "Apache-2.0" ]
30
2017-02-24T05:16:15.000Z
2021-08-04T02:03:12.000Z
cup/net/route.py
horsedongmin/CUP
94398c7d94b2574db565c3e8d6dcfe2f3722f007
[ "Apache-2.0" ]
185
2017-02-15T02:23:09.000Z
2022-02-24T08:47:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -* # Copyright: [CUP] - See LICENSE for details. # Authors: YangGuang """ :description: host route info related module """ from __future__ import print_function import copy import json import socket import struct __all__ = ['RouteInfo'] class RouteInfo(object): """ ...
26.466899
74
0.460506
f02fdd672ddda2b2ef45e7f62fcf8091b29735b7
127
py
Python
tsmtool/version.py
rstms/tsmtool
97ce28e398185d983a96dc2787274946bfab5553
[ "MIT" ]
null
null
null
tsmtool/version.py
rstms/tsmtool
97ce28e398185d983a96dc2787274946bfab5553
[ "MIT" ]
1
2022-03-28T11:07:36.000Z
2022-03-28T11:07:36.000Z
tsmtool/version.py
rstms/tsmtool
97ce28e398185d983a96dc2787274946bfab5553
[ "MIT" ]
null
null
null
__version__ = "1.1.1" __author__ = "Matt Krueger" __email__ = "mkrueger@rstms.net" __timestamp__ = "2022-03-28 08:27:00-05:00"
25.4
43
0.716535
2c48f80c8d678205aea5f50b5bec1493c2695a8f
965
py
Python
easy/count primes/solution.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
4
2021-06-03T22:19:13.000Z
2021-10-05T18:14:12.000Z
easy/count primes/solution.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
null
null
null
easy/count primes/solution.py
ilya-sokolov/leetcode
ad421111d0d7c5ec5245f33552e94a373b6fd426
[ "MIT" ]
null
null
null
class Solution: def countPrimes(self, n: int) -> int: if n <= 2: return 0 if n == 3: return 1 prime_list = [2, 3] sieve_list = [True] * (n + 1) for each_number in self.candidate_range(n - 1): if sieve_list[each_number]: prim...
26.805556
85
0.564767
ef657b1ef6a41d90b553776f0e3cdf6fe1dffe0b
2,902
py
Python
cli/medperf/commands/dataset/create.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
1
2021-09-24T18:09:53.000Z
2021-09-24T18:09:53.000Z
cli/medperf/commands/dataset/create.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
2
2021-09-27T16:14:04.000Z
2021-11-03T14:24:54.000Z
cli/medperf/commands/dataset/create.py
johnugeorge/medperf
5bc3f643064df14e9476bd4d4c1a4c0cce5337d5
[ "Apache-2.0" ]
null
null
null
import os from medperf.ui import UI from medperf.comms import Comms from medperf.entities import Benchmark, Cube, Registration from medperf.utils import ( check_cube_validity, generate_tmp_datapath, init_storage, cleanup, pretty_error, ) class DataPreparation: @classmethod def run( ...
34.963855
88
0.658511
7eeeec3f40298c1db1f8c37bf1b5286fef91c888
1,010
py
Python
scoreComputer.py
shashwatsehgal/ToLop
5d7a0c7f918450fdfe4d0eccb092c99c1ddad5b5
[ "Apache-2.0" ]
null
null
null
scoreComputer.py
shashwatsehgal/ToLop
5d7a0c7f918450fdfe4d0eccb092c99c1ddad5b5
[ "Apache-2.0" ]
null
null
null
scoreComputer.py
shashwatsehgal/ToLop
5d7a0c7f918450fdfe4d0eccb092c99c1ddad5b5
[ "Apache-2.0" ]
null
null
null
# Class to compute suspician score of an an item. import math class ScoreComputer: # TODO: Use an abstract class ScoreComputer with different speciailizations # corresponding to different platforms (eBay, Craigslist, etc.). def __init__(self, listPrice): # TODO: Read these values from a config file...
34.827586
93
0.658416
362a69ce74ab8c2930f905a9dab4f9cbcfe6fb3d
149
py
Python
test_bench.py
SMILELab-FL/FedLab
07c08ef34bb6d72e1663852e4990dca8940b28f9
[ "Apache-2.0" ]
171
2021-07-27T03:04:20.000Z
2022-03-31T08:32:08.000Z
test_bench.py
SMILELab-FL/FedLab
07c08ef34bb6d72e1663852e4990dca8940b28f9
[ "Apache-2.0" ]
10
2021-09-11T06:33:52.000Z
2022-03-22T06:38:24.000Z
test_bench.py
SMILELab-FL/FedLab
07c08ef34bb6d72e1663852e4990dca8940b28f9
[ "Apache-2.0" ]
30
2021-08-09T12:01:10.000Z
2022-03-24T01:41:33.000Z
import os import unittest import tests if __name__ == '__main__': suite = tests.get_tests() unittest.TextTestRunner(verbosity=2).run(suite)
18.625
51
0.738255
f6bf70314759aae24e9521330aa4c8cb4a9cf550
6,024
py
Python
skimage/filter/edges.py
Teva/scikits.image
12669d62e699313ca0f73de1b211bf438f4efb0c
[ "BSD-3-Clause" ]
3
2015-11-12T06:34:49.000Z
2017-09-22T07:47:50.000Z
skimage/filter/edges.py
Teva/scikits.image
12669d62e699313ca0f73de1b211bf438f4efb0c
[ "BSD-3-Clause" ]
null
null
null
skimage/filter/edges.py
Teva/scikits.image
12669d62e699313ca0f73de1b211bf438f4efb0c
[ "BSD-3-Clause" ]
8
2015-03-02T20:36:55.000Z
2021-02-18T10:37:00.000Z
"""edges.py - Sobel edge filter Originally part of CellProfiler, code licensed under both GPL and BSD licenses. Website: http://www.cellprofiler.org Copyright (c) 2003-2009 Massachusetts Institute of Technology Copyright (c) 2009-2011 Broad Institute All rights reserved. Original author: Lee Kamentsky """ import nump...
28.149533
79
0.556939
2909b1f9456034226d284209aa2654408633e019
2,407
py
Python
src/preprocess/archive/preprocess_mongo.py
wbwvos/IRNeuralClickModels
942ccc23f1615473a30d18e2ee55381f7bcea170
[ "MIT" ]
null
null
null
src/preprocess/archive/preprocess_mongo.py
wbwvos/IRNeuralClickModels
942ccc23f1615473a30d18e2ee55381f7bcea170
[ "MIT" ]
null
null
null
src/preprocess/archive/preprocess_mongo.py
wbwvos/IRNeuralClickModels
942ccc23f1615473a30d18e2ee55381f7bcea170
[ "MIT" ]
null
null
null
import json import numpy as np import cPickle as pickle import progressbar from pymongo import MongoClient from scipy.sparse import coo_matrix def get_index_from_click_pattern(click_pattern, location): index = (location - 1) * 1024 index += int(''.join([str(i) for i in click_pattern]), 2) return index ...
35.925373
106
0.599501
843b1e7ab451d74d487a1c1830204b0161420eda
7,606
py
Python
latex2sympy/gen/PSListener.py
Udaptive/latex2sympy
4eb77809d7e3fa10042f002d60ea925558f6493d
[ "MIT" ]
null
null
null
latex2sympy/gen/PSListener.py
Udaptive/latex2sympy
4eb77809d7e3fa10042f002d60ea925558f6493d
[ "MIT" ]
null
null
null
latex2sympy/gen/PSListener.py
Udaptive/latex2sympy
4eb77809d7e3fa10042f002d60ea925558f6493d
[ "MIT" ]
null
null
null
# Generated from PS.g4 by ANTLR 4.7.1 from antlr4 import * # This class defines a complete listener for a parse tree produced by PSParser. class PSListener(ParseTreeListener): # Enter a parse tree produced by PSParser#math. def enterMath(self, ctx): pass # Exit a parse tree produced by PSParser#m...
22.978852
79
0.649356
b2b398d25b19414dda46830fd65c16f97a1be160
2,159
py
Python
Docking_Analysis/Graph_Results/graph_scores.py
wcoldren/example_python_util_scripts
d96f81d51a2f8a169c364a7bda8cb4511c972a7a
[ "MIT" ]
null
null
null
Docking_Analysis/Graph_Results/graph_scores.py
wcoldren/example_python_util_scripts
d96f81d51a2f8a169c364a7bda8cb4511c972a7a
[ "MIT" ]
null
null
null
Docking_Analysis/Graph_Results/graph_scores.py
wcoldren/example_python_util_scripts
d96f81d51a2f8a169c364a7bda8cb4511c972a7a
[ "MIT" ]
null
null
null
#!/usr/bin/bash import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # Read in processed csv here, from schrodinger_blind_screen_result_analysis.py # Data here from two different crystal structures. hosu = pd.read_csv('new_chemotypes_RJ77_SP_results_processed.csv') et = pd.read_csv('new_chemotyp...
32.712121
79
0.722094
f83325f90d9b6f385c2ecb7a138f0ce0c832c462
5,227
py
Python
gaussian_process_data.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
gaussian_process_data.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
gaussian_process_data.py
adeandrade/bayesian-optimizer
30427943d69130179f7ccb32f63a08a1c57462f8
[ "Apache-2.0" ]
null
null
null
import dataclasses import operator from typing import List, Tuple, Mapping import numpy as np from .gaussian_process_data_pb2 import GaussianProcessData as GaussianProcessDataPB @dataclasses.dataclass(frozen=True) class ValueBounds: lower: float upper: float @dataclasses.dataclass(frozen=True) class Input...
36.552448
107
0.723551
c44a24d1f76e1a36a940ac231ec76ea92f6ad174
2,902
py
Python
cp2kmdpy/tests/LONG/with-signac/dioxygen-nvt/project.py
ramanishsingh/CP2KMDpy
50783ed238450b69747ec88c83699dffc29f8d05
[ "MIT" ]
1
2020-09-15T19:53:10.000Z
2020-09-15T19:53:10.000Z
cp2kmdpy/tests/LONG/with-signac/dioxygen-nvt/project.py
ramanishsingh/CP2KMDpy
50783ed238450b69747ec88c83699dffc29f8d05
[ "MIT" ]
null
null
null
cp2kmdpy/tests/LONG/with-signac/dioxygen-nvt/project.py
ramanishsingh/CP2KMDpy
50783ed238450b69747ec88c83699dffc29f8d05
[ "MIT" ]
1
2020-09-14T11:16:25.000Z
2020-09-14T11:16:25.000Z
import flow from flow import FlowProject, directives import warnings import shutil import os warnings.filterwarnings("ignore", category=DeprecationWarning) class Project(FlowProject): pass @Project.label def has_setter(job): return(job.isfile('setter.py')) @Project.label def has_md_files(job): "Veri...
25.910714
195
0.640248
dcdfb4012000f8f5d75165cb9f2b608fe1888566
1,754
py
Python
src/utils/proj_setup.py
uw-bionlp/ards
e9fc27f7034cc6b54f0ccdba4a58377948cf0258
[ "BSD-3-Clause" ]
null
null
null
src/utils/proj_setup.py
uw-bionlp/ards
e9fc27f7034cc6b54f0ccdba4a58377948cf0258
[ "BSD-3-Clause" ]
null
null
null
src/utils/proj_setup.py
uw-bionlp/ards
e9fc27f7034cc6b54f0ccdba4a58377948cf0258
[ "BSD-3-Clause" ]
null
null
null
import os import shutil import logging def make_and_clear(dest, recursive=False, clear_=True): ''' Create dest if it does not exist and remove any files, but not folders, in dest if exists NOTE: All of this printing is not necessary. It is here for some troubleshooting with Condor. '''...
28.290323
108
0.597491
e3bde434230efbf00b69082e959c462689cfeecb
12,664
py
Python
autotest/ogr/ogr_pdf.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
9
2019-05-30T17:01:56.000Z
2021-01-30T01:06:41.000Z
autotest/ogr/ogr_pdf.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
4
2018-10-23T18:43:35.000Z
2019-07-01T19:29:49.000Z
autotest/ogr/ogr_pdf.py
Esri/gdal
8d9af5086ddb96f707ed281786a1cd278066a7f2
[ "MIT" ]
6
2019-02-03T14:19:32.000Z
2021-12-19T06:36:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test read functionality for OGR PDF driver. # Author: Even Rouault <even dot rouault at mines dash paris dot org> # #######################...
33.951743
179
0.606443
caf1350b7ef1a3074f58cbefa4f669d96e82d578
14,845
py
Python
src/ScreenCapLibrary/library.py
evorystrant/ScreenCapLibrary
1b7aebcc7d72ca2c77ff8df4f044ad14b4e163ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ScreenCapLibrary/library.py
evorystrant/ScreenCapLibrary
1b7aebcc7d72ca2c77ff8df4f044ad14b4e163ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ScreenCapLibrary/library.py
evorystrant/ScreenCapLibrary
1b7aebcc7d72ca2c77ff8df4f044ad14b4e163ee
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # 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 ...
49.983165
127
0.657258
020d0270917873a764569a501ffe2e4a4558cdfa
18,447
py
Python
src/arena.py
Szomeszp/Area-D17---Fight-For-Your-ECTS
29c15e1feb6378e19247f0a5a8c936bc94045167
[ "MIT" ]
1
2021-06-28T18:33:17.000Z
2021-06-28T18:33:17.000Z
src/arena.py
Szomeszp/Area-D17---Fight-For-Your-ECTS
29c15e1feb6378e19247f0a5a8c936bc94045167
[ "MIT" ]
null
null
null
src/arena.py
Szomeszp/Area-D17---Fight-For-Your-ECTS
29c15e1feb6378e19247f0a5a8c936bc94045167
[ "MIT" ]
1
2021-06-08T11:23:25.000Z
2021-06-08T11:23:25.000Z
from random import randint from time import sleep from src.settings import * from src.items import HealthPotion from src.tilemap import TiledMap, Camera class Arena: def __init__(self, game, player, monster, arena): self.game = game self.player = player self.monster = monster self....
43
122
0.52041
a58a052f286b05432ee16e4cd6f1254cddb03aac
100
py
Python
test1.py
Arun-Rawat-BLR/pycisco
d977a38a8d191da8935e648bf5b779ada665563b
[ "Apache-2.0" ]
null
null
null
test1.py
Arun-Rawat-BLR/pycisco
d977a38a8d191da8935e648bf5b779ada665563b
[ "Apache-2.0" ]
null
null
null
test1.py
Arun-Rawat-BLR/pycisco
d977a38a8d191da8935e648bf5b779ada665563b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 from time import sleep while 5 > 3 : print ("Hello World") sleep(2)
14.285714
25
0.63
7eeda353653fd18e5a0477866af534af5a0a8f81
255
py
Python
map-reduce/P4/map_p4_02.py
j-navesx/spbd
93c802168e9b3321c757cb245dbb12df148ed517
[ "MIT" ]
2
2021-12-23T23:36:37.000Z
2021-12-23T23:36:50.000Z
map-reduce/P4/map_p4_02.py
j-navesx/spbd
93c802168e9b3321c757cb245dbb12df148ed517
[ "MIT" ]
null
null
null
map-reduce/P4/map_p4_02.py
j-navesx/spbd
93c802168e9b3321c757cb245dbb12df148ed517
[ "MIT" ]
null
null
null
from sys import stdin def main(): for line in stdin: line = line.strip() county, site, state, lat, lon = line.split(',') # State,Latitude,Longitude print(f"{state},{lat},{lon}") if __name__ == '__main__': main()
19.615385
55
0.560784
586bd00b091fe367b1f0a992ee1353a581274c09
26,434
py
Python
asv_bench/benchmarks/groupby.py
augustoproiete-forks/pandas-dev--pandas
fcd73ad2e7482414b61d47056c6c9c220b11702c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
asv_bench/benchmarks/groupby.py
augustoproiete-forks/pandas-dev--pandas
fcd73ad2e7482414b61d47056c6c9c220b11702c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
asv_bench/benchmarks/groupby.py
augustoproiete-forks/pandas-dev--pandas
fcd73ad2e7482414b61d47056c6c9c220b11702c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
from .pandas_vb_common import * from string import ascii_letters, digits from itertools import product class groupby_agg_builtins(object): goal_time = 0.2 def setup(self): np.random.seed(27182) self.n = 100000 self.df = DataFrame(np.random.randint(1, (self.n / 100), (self.n, 3)), colu...
32.796526
260
0.585988
d783668892398ec9d95da4282d053aad03490361
129
py
Python
code/actions.py
ramaprashanth/ai4all
822ad8580e38aac5ff86d64f0e8f409f6b57d822
[ "MIT" ]
1
2020-06-16T16:42:16.000Z
2020-06-16T16:42:16.000Z
code/actions.py
ramaprashanth/ai4all
822ad8580e38aac5ff86d64f0e8f409f6b57d822
[ "MIT" ]
null
null
null
code/actions.py
ramaprashanth/ai4all
822ad8580e38aac5ff86d64f0e8f409f6b57d822
[ "MIT" ]
null
null
null
from naoqi import ALProxy def speak(NAO_IP, NAO_PORT, msg): tts = ALProxy("ALTextToSpeech", NAO_IP, 9559) tts.say(msg)
18.428571
49
0.697674
fd751ca3ba657b4deea648bc6602f49e60341b0d
3,704
py
Python
hoomd/extern/libgetar/gtar/fix.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
2
2019-02-09T12:25:35.000Z
2019-02-27T14:42:00.000Z
hoomd/extern/libgetar/gtar/fix.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
8
2019-04-24T19:05:50.000Z
2022-01-21T12:07:41.000Z
hoomd/extern/libgetar/gtar/fix.py
PetersResearchGroup/PCND
584768cc683a6df0152ead69b567d05b781aab2b
[ "BSD-3-Clause" ]
null
null
null
""" Fix a getar-formatted zip file. :: usage: python -m gtar.fix [-h] [-o OUTPUT] input Command-line zip archive fixer positional arguments: input Input zip file to read optional arguments: -h, --help show this help message and exit -o OUTPUT, --output OUTPUT ...
28.492308
87
0.610151
68edd903d0b3bddef7269ca388730f34afd07cce
1,070
py
Python
saleor/dashboard/search/views.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
2
2017-07-11T12:40:59.000Z
2017-10-18T18:02:46.000Z
saleor/dashboard/search/views.py
glosoftgroup/restaurant
5b10a8f5199103e5bee01b45952c9638e63f28af
[ "BSD-3-Clause" ]
12
2017-06-19T07:20:41.000Z
2022-03-15T19:03:33.000Z
saleor/dashboard/search/views.py
glosoftgroup/tenants
a6b229ad1f6d567b7078f83425a532830b71e1bb
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.admin.views.decorators import staff_member_required from django.conf import settings from django.shortcuts import render from ...order.models import Order from ...product.models import Product from ...search.views import paginate_results from ...userprofile.models import User from .forms im...
33.4375
76
0.669159
215d1744fbd6db57fa0129884ee8a0b8a118cd15
932
py
Python
src/data/normalize.py
riccardocadei/pneumoniadiagnosis
5c827918e1f4a8632e6e854425c80fb7e0d881f3
[ "MIT" ]
null
null
null
src/data/normalize.py
riccardocadei/pneumoniadiagnosis
5c827918e1f4a8632e6e854425c80fb7e0d881f3
[ "MIT" ]
null
null
null
src/data/normalize.py
riccardocadei/pneumoniadiagnosis
5c827918e1f4a8632e6e854425c80fb7e0d881f3
[ "MIT" ]
null
null
null
from torch.utils.data import TensorDataset, DataLoader def mean_std(train_loader): """Useful tool to compute the mean and the standard deviation of the train loader. This is used either to check if the data loader is normalized, or to compute the mean and std for the normalizer in data_loader. Args: ...
33.285714
127
0.614807
d319ef6353e6984cb4f1da405fe839b70585790c
1,637
py
Python
utils/api.py
nguyenhuunghi/nshare-api
a49cb70fb1fc4b6c8d3d9fbd06684b8a7a242a3a
[ "MIT" ]
null
null
null
utils/api.py
nguyenhuunghi/nshare-api
a49cb70fb1fc4b6c8d3d9fbd06684b8a7a242a3a
[ "MIT" ]
null
null
null
utils/api.py
nguyenhuunghi/nshare-api
a49cb70fb1fc4b6c8d3d9fbd06684b8a7a242a3a
[ "MIT" ]
null
null
null
import sys, os, json, requests from config import access_token, account_username from flask import request, abort def add_assets(file): # sotre image to imgur url = "https://api.imgur.com/3/image" headers = { 'Content-type': 'multipart/form-data', 'Authorization': 'Bearer {}'.format(access_...
35.586957
92
0.659133
ec5594929def382f02472ddeaf739e7007d22767
5,214
py
Python
cape_privacy/pandas/transformations/perturbation.py
vismaya-Kalaiselvan/cape-python
2b93696cec43c4bab9098c35eccf6f2f66d9e5c0
[ "Apache-2.0" ]
144
2020-06-23T21:31:49.000Z
2022-02-25T15:51:00.000Z
cape_privacy/pandas/transformations/perturbation.py
vismaya-Kalaiselvan/cape-python
2b93696cec43c4bab9098c35eccf6f2f66d9e5c0
[ "Apache-2.0" ]
44
2020-06-24T14:42:23.000Z
2022-02-21T03:30:58.000Z
cape_privacy/pandas/transformations/perturbation.py
vismaya-Kalaiselvan/cape-python
2b93696cec43c4bab9098c35eccf6f2f66d9e5c0
[ "Apache-2.0" ]
16
2020-06-26T20:05:51.000Z
2022-01-12T05:23:58.000Z
import datetime from typing import Optional from typing import Tuple from typing import Union import numpy as np import pandas as pd from cape_privacy.pandas import dtypes from cape_privacy.pandas.transformations import base from cape_privacy.utils import typecheck _FREQUENCY_TO_DELTA_FN = { "YEAR": lambda noise...
33
83
0.61776
f8de0b9993c237e8c1f23428afce927293b6b1a5
4,894
py
Python
scripts/neighborbuilder.py
shaileshp51/pycentre
a58e6e0b10322c3be9064f0c29c4c4083e29c6d8
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
scripts/neighborbuilder.py
shaileshp51/pycentre
a58e6e0b10322c3be9064f0c29c4c4083e29c6d8
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
scripts/neighborbuilder.py
shaileshp51/pycentre
a58e6e0b10322c3be9064f0c29c4c4083e29c6d8
[ "Xnet", "Linux-OpenIB", "X11" ]
null
null
null
#!/usr/bin/env python import os import re import sys import logging import textwrap import argparse import numpy as np import pytraj as pt from datetime import datetime import pycentre import pycentre.subneigh as subneigh import pycentre.mmsystem as mm import pycentre.utils_ as utls from pycentre import * def is...
48.455446
184
0.645076
e3dadf6ac6368368b64786f579ff29a8e70aaf15
933
py
Python
back-end/app/api/auth.py
wuwent52620/blog
57c6b51194b2ab64c1c8a7fbc768c4c9f856f459
[ "MIT" ]
null
null
null
back-end/app/api/auth.py
wuwent52620/blog
57c6b51194b2ab64c1c8a7fbc768c4c9f856f459
[ "MIT" ]
null
null
null
back-end/app/api/auth.py
wuwent52620/blog
57c6b51194b2ab64c1c8a7fbc768c4c9f856f459
[ "MIT" ]
null
null
null
from flask import g from flask_httpauth import HTTPBasicAuth, HTTPTokenAuth from app.api.errors import error_response from app.extensions import db from app.models import User basic_auth = HTTPBasicAuth() token_auth = HTTPTokenAuth() @basic_auth.verify_password def verify_password(username, password): '''用于检查用户提...
24.552632
62
0.758842
55e0eb0a30bf17049b9c4d3b6a379205a5fbba00
230
py
Python
lib/emailqueue/__init__.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/emailqueue/__init__.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
lib/emailqueue/__init__.py
hdknr/emailqueue
05e108562f4fb612440f769973b9a3d02c11afcd
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
__all__ = ('__version__', '__build__', 'get_version', 'conf', ) __version__ = (0, 0, 1) __build__ = '' def get_version(): return '.'.join(map(lambda v: str(v), __version__)) default_app_config = 'emailqueue.apps.AppConfig'
23
63
0.673913
c29787b6792986105e96080705191fa3db6a0ae0
3,574
py
Python
setup.py
fluetm/docker-py
17c86429e454e65f74660393ffb427adb8db154a
[ "Apache-2.0" ]
3
2020-01-10T14:00:40.000Z
2021-12-30T01:27:45.000Z
setup.py
fluetm/docker-py
17c86429e454e65f74660393ffb427adb8db154a
[ "Apache-2.0" ]
1
2020-02-10T18:57:58.000Z
2020-02-11T09:40:38.000Z
setup.py
fluetm/docker-py
17c86429e454e65f74660393ffb427adb8db154a
[ "Apache-2.0" ]
4
2020-01-10T13:22:11.000Z
2020-11-18T17:21:37.000Z
#!/usr/bin/env python from __future__ import print_function import codecs import os from setuptools import find_packages from setuptools import setup ROOT_DIR = os.path.dirname(__file__) SOURCE_DIR = os.path.join(ROOT_DIR) requirements = [ 'six >= 1.4.0', 'websocket-client >= 0.32.0', 'requests >= 2.14....
36.845361
96
0.655568
fc2cf0c59f9bf17702fd49ec1f3774c46eea5039
2,182
py
Python
bann/b_frameworks/pytorch/pytorch_library.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann/b_frameworks/pytorch/pytorch_library.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann/b_frameworks/pytorch/pytorch_library.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" from copy import deepcopy from typing import Tuple, Dict, Final from bann.b_frameworks.errors.custom_erors import KnownLibError from bann.b_pan_integration.framwork_key_lib import FrameworkKeyLib from bann_ex_con.pytorch.external_library import get_e_pytorc...
36.983051
95
0.741522
7f4a9bd1de4aaced167cf9eae34cb3948a8b75ec
2,967
py
Python
Spark/spark2.10/python/ml/word2vec_example.py
trhongbinwang/data_science_journey
3f1437942109250cc41207d39e6bcb6e4ff17730
[ "Apache-2.0" ]
1
2017-04-28T00:02:43.000Z
2017-04-28T00:02:43.000Z
Spark/spark2.10/python/ml/word2vec_example.py
trhongbinwang/data_science_journey
3f1437942109250cc41207d39e6bcb6e4ff17730
[ "Apache-2.0" ]
null
null
null
Spark/spark2.10/python/ml/word2vec_example.py
trhongbinwang/data_science_journey
3f1437942109250cc41207d39e6bcb6e4ff17730
[ "Apache-2.0" ]
null
null
null
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
34.5
189
0.671722
e4273ce3b7e2953b7a6b74a54485620229ede525
1,723
py
Python
coh_write.py
Renata1995/Topic-Distance-and-Coherence
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
[ "Apache-2.0" ]
5
2018-08-25T07:16:31.000Z
2020-11-12T00:36:15.000Z
coh_write.py
Renata1995/Topic-Distance-and-Coherence
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
[ "Apache-2.0" ]
1
2018-09-24T16:17:47.000Z
2018-09-24T16:17:47.000Z
coh_write.py
Renata1995/Topic-Distance-and-Coherence
d567d5b3ef71ea5654f214aa3736add7f3ac94bc
[ "Apache-2.0" ]
4
2018-05-07T07:52:10.000Z
2020-11-12T00:36:18.000Z
# Write coherence values from individual data directory to a single file length = 30 for te in ["lesk"]: ofname = "reuters_coherence_"+te+".txt" ofile = open(ofname, "w") for tc in range(10,260,10): for type in ["Words: " + str(tc), "tfidf", "binary", "bow"]: ofile.write("{:{l}}".forma...
35.163265
78
0.49971
a7e122a15f20fa8f8ace33202629f968ce127dad
1,775
py
Python
django/core/management/sql.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
61,676
2015-01-01T00:05:13.000Z
2022-03-31T20:37:54.000Z
django/core/management/sql.py
KaushikSathvara/django
3b9fe906bf28d2e748ce4d9a1af5fbcd5df48946
[ "BSD-3-Clause", "0BSD" ]
8,884
2015-01-01T00:12:05.000Z
2022-03-31T19:53:11.000Z
django/core/management/sql.py
mustafa0x/django
d7394cfa13a4d1a02356e3a83e10ec100fbb9948
[ "BSD-3-Clause", "0BSD" ]
33,143
2015-01-01T02:04:52.000Z
2022-03-31T19:42:46.000Z
import sys from django.apps import apps from django.db import models def sql_flush(style, connection, reset_sequences=True, allow_cascade=False): """ Return a list of the SQL statements used to flush the database. """ tables = connection.introspection.django_table_names(only_existing=True, include_vi...
32.87037
97
0.643944
fc4898523c18e1a6b53c16f90cd7cf157fbcd35e
56
py
Python
tasks.py
uk-gov-mirror/alphagov.digitalmarketplace-apiclient
69bbc2798bcd831bfff2349911b599668cf1a816
[ "MIT" ]
10
2016-07-25T22:16:17.000Z
2020-09-25T07:10:23.000Z
tasks.py
uk-gov-mirror/alphagov.digitalmarketplace-apiclient
69bbc2798bcd831bfff2349911b599668cf1a816
[ "MIT" ]
388
2015-09-21T16:10:27.000Z
2021-07-30T15:18:04.000Z
tasks.py
uk-gov-mirror/alphagov.digitalmarketplace-apiclient
69bbc2798bcd831bfff2349911b599668cf1a816
[ "MIT" ]
16
2015-11-13T10:02:27.000Z
2021-04-10T20:13:25.000Z
from dmdevtools.invoke_tasks import library_tasks as ns
28
55
0.875
dc7887fdffc8591548ce897552dd0c1002db5046
2,827
py
Python
project/forms.py
abhishekm47/restaurant-django
56993f2269e27c9b932b5f172cdf4db1e95292aa
[ "MIT" ]
null
null
null
project/forms.py
abhishekm47/restaurant-django
56993f2269e27c9b932b5f172cdf4db1e95292aa
[ "MIT" ]
null
null
null
project/forms.py
abhishekm47/restaurant-django
56993f2269e27c9b932b5f172cdf4db1e95292aa
[ "MIT" ]
null
null
null
from django import forms from project.models import User, Reservation, MenuItem, Feedback class RegisterForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput( attrs={'placeholder': 'Password'})) first_name = forms.CharField(widget=forms.TextInput( attrs={'placeholder': '...
33.654762
84
0.598514
846d766cbb629567fb98c45113615f9d276bba38
1,038
py
Python
Day 2/Day2.py
AmIAHuman/AdventofCode2021
0f57c07ae4e081ed167046ceee99af670107001f
[ "MIT" ]
null
null
null
Day 2/Day2.py
AmIAHuman/AdventofCode2021
0f57c07ae4e081ed167046ceee99af670107001f
[ "MIT" ]
null
null
null
Day 2/Day2.py
AmIAHuman/AdventofCode2021
0f57c07ae4e081ed167046ceee99af670107001f
[ "MIT" ]
null
null
null
import pathlib dayInput = [] def Part1(): global dayInput horizontal = 0 depth = 0 for index, element in enumerate(dayInput): if element.split(" ")[0] == "forward": horizontal += int(element.split(" ")[1]) elif element.split(" ")[0] == "down": depth += int(element.split(" ")[1]) elif e...
28.833333
62
0.578998
c07e8f6608c2ee7ffb78f07ecb37941d50a06bb5
2,148
py
Python
src/livestreamer/__init__.py
jaccarmac/livestreamer
ab80dbd6560f6f9835865b2fc9f9c6015aee5658
[ "BSD-2-Clause", "MIT" ]
3,614
2015-01-01T08:07:27.000Z
2022-03-20T00:31:07.000Z
src/livestreamer/__init__.py
kviktor/livestreamer
ab80dbd6560f6f9835865b2fc9f9c6015aee5658
[ "BSD-2-Clause", "MIT" ]
1,028
2015-01-02T03:38:38.000Z
2021-08-06T16:17:48.000Z
src/livestreamer/__init__.py
kviktor/livestreamer
ab80dbd6560f6f9835865b2fc9f9c6015aee5658
[ "BSD-2-Clause", "MIT" ]
795
2015-01-02T06:12:04.000Z
2022-03-27T23:41:53.000Z
# coding: utf8 """Livestreamer extracts streams from various services. The main compontent of Livestreamer is a command-line utility that launches the streams in a video player. An API is also provided that allows direct access to stream data. Full documentation is available at http://docs.livestreamer.io/. """ _...
27.896104
72
0.642924
d9054d6963d72901ee74c1dfee23c754d2dcc7e9
4,396
py
Python
katsdpimageutils/test/test_primary_beam_correction.py
ska-sa/katsdpimageutils
09a10f36e8b9a683ea7284dce3471ff1c08963aa
[ "BSD-3-Clause" ]
null
null
null
katsdpimageutils/test/test_primary_beam_correction.py
ska-sa/katsdpimageutils
09a10f36e8b9a683ea7284dce3471ff1c08963aa
[ "BSD-3-Clause" ]
5
2020-05-27T09:10:22.000Z
2021-03-31T14:11:41.000Z
katsdpimageutils/test/test_primary_beam_correction.py
ska-sa/katsdpimageutils
09a10f36e8b9a683ea7284dce3471ff1c08963aa
[ "BSD-3-Clause" ]
null
null
null
"""Tests for :mod:`katsdpimageutils.primary_beam_correction`.""" import os import numpy as np import tempfile from astropy.io import fits from nose.tools import assert_equal from ..primary_beam_correction import _get_value_from_history, weighted_average, inverse_variance, standard_deviation, write_new_fits # noqa E50...
31.625899
146
0.620792
54beba385b3b93d40d53eaf38faaef157dc7cafb
2,310
py
Python
dash_mantine_components/Col.py
lenamax2355/dash-mantine-components
f24e48f3e2f88521cf2c14a070384458132a14d8
[ "MIT" ]
1
2021-12-27T08:14:31.000Z
2021-12-27T08:14:31.000Z
dash_mantine_components/Col.py
lenamax2355/dash-mantine-components
f24e48f3e2f88521cf2c14a070384458132a14d8
[ "MIT" ]
null
null
null
dash_mantine_components/Col.py
lenamax2355/dash-mantine-components
f24e48f3e2f88521cf2c14a070384458132a14d8
[ "MIT" ]
null
null
null
# AUTO GENERATED FILE - DO NOT EDIT from dash.development.base_component import Component, _explicitize_args class Col(Component): """A Col component. Utility component to pass to Grid. For more information, see: https://mantine.dev/core/grid/ Keyword arguments: - children (a list of or a singular dash compone...
37.258065
304
0.660606
ead5f220813fad5954063575be9b611d5207d9c1
7,197
py
Python
mlfinlab/tests/test_run_data_structures.py
SaintForest/mlfinlab
76107491d77c50539e216da1cf2ad8f02b90ed58
[ "MIT" ]
5
2020-05-04T15:26:08.000Z
2021-07-18T00:07:05.000Z
mlfinlab/tests/test_run_data_structures.py
anirbanghoshsbi/mlfinlab
3a6381d47fb50d86ce657f184490f012adf6fb37
[ "BSD-3-Clause" ]
1
2022-03-23T01:20:59.000Z
2022-03-23T01:20:59.000Z
mlfinlab/tests/test_run_data_structures.py
anirbanghoshsbi/mlfinlab
3a6381d47fb50d86ce657f184490f012adf6fb37
[ "BSD-3-Clause" ]
2
2020-01-20T04:22:05.000Z
2020-04-05T14:42:32.000Z
""" Tests the financial data structures """ import unittest import os import numpy as np import pandas as pd from mlfinlab.data_structures import run_data_structures as ds class TestDataStructures(unittest.TestCase): """ Test the various financial data structures: 1. Run Dollar bars 2. Run Volume ba...
43.095808
97
0.601917
c489216b5d110799a297669c2e390a0c5b18cb0e
7,502
py
Python
account/tests/test_password.py
samie820/Social-web
361029d31e9a66ec5b3fdb6fb7b8e9e13e21a2d3
[ "MIT" ]
4
2017-01-11T21:00:31.000Z
2020-02-05T20:41:13.000Z
virtual/lib/python3.6/site-packages/account/tests/test_password.py
EnockOMONDI/NEIGHBOURHOOD
93532045664e54b334fd0897d09b536b380ad963
[ "MIT" ]
2
2016-06-09T08:37:07.000Z
2016-06-09T16:56:23.000Z
virtual/lib/python3.6/site-packages/account/tests/test_password.py
EnockOMONDI/NEIGHBOURHOOD
93532045664e54b334fd0897d09b536b380ad963
[ "MIT" ]
9
2015-02-02T20:30:12.000Z
2017-12-18T18:53:15.000Z
import datetime import pytz import django from django.contrib.auth.hashers import ( check_password, make_password, ) from django.contrib.auth.models import User from django.test import ( TestCase, modify_settings, override_settings, ) from ..compat import reverse from ..models import ( Passwo...
32.617391
124
0.634497
2dfc6cd4a6551c4bb09f2c5b3f3c4061f088389a
62
py
Python
eagle/json_setup.py
loven-doo/EAGLE
c4e635b61c746041437073f4432907e0f144632e
[ "BSD-2-Clause" ]
null
null
null
eagle/json_setup.py
loven-doo/EAGLE
c4e635b61c746041437073f4432907e0f144632e
[ "BSD-2-Clause" ]
null
null
null
eagle/json_setup.py
loven-doo/EAGLE
c4e635b61c746041437073f4432907e0f144632e
[ "BSD-2-Clause" ]
1
2020-09-07T10:02:24.000Z
2020-09-07T10:02:24.000Z
# TODO: do all json setup here - not in the db creation code
31
61
0.709677
19da0bc52f5799957f5f8628b07380e6f78cc01f
406
py
Python
auv_control_pi/wsgi.py
adrienemery/auv-control-pi
633fe89b652b07eb6ebe03c0550daa211b122297
[ "MIT" ]
9
2016-10-02T06:59:37.000Z
2020-09-24T15:36:10.000Z
auv_control_pi/wsgi.py
adrienemery/auv-control-pi
633fe89b652b07eb6ebe03c0550daa211b122297
[ "MIT" ]
null
null
null
auv_control_pi/wsgi.py
adrienemery/auv-control-pi
633fe89b652b07eb6ebe03c0550daa211b122297
[ "MIT" ]
4
2019-01-12T23:09:34.000Z
2020-11-05T14:52:42.000Z
""" WSGI config for auv_control_pi project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
23.882353
78
0.793103
51bf679a93edad177bbce42cdd412836a80f29c2
2,042
py
Python
run.py
ShawnHXH/GNN-CCA
598d5bb13e445b864e728cc2c9e1af38783a2319
[ "MIT" ]
null
null
null
run.py
ShawnHXH/GNN-CCA
598d5bb13e445b864e728cc2c9e1af38783a2319
[ "MIT" ]
null
null
null
run.py
ShawnHXH/GNN-CCA
598d5bb13e445b864e728cc2c9e1af38783a2319
[ "MIT" ]
null
null
null
import argparse from tools.trainer import Trainer def make_parser(): parser = argparse.ArgumentParser() # training config parser.add_argument("--train", default=False, action="store_true") parser.add_argument("--epochs", type=int, default=100, help="training epochs") parser.add_argument("--batch-...
44.391304
100
0.648384
946b7a35ba70caa13b6137e8aceaecf3b936bdcb
8,297
py
Python
server/ota/stable/0-12/firmware/lib/ota.py
OPHoperHPO/neoled
9b92f258b51b23b4a9d27a98a1a022dfe1985d2e
[ "MIT" ]
null
null
null
server/ota/stable/0-12/firmware/lib/ota.py
OPHoperHPO/neoled
9b92f258b51b23b4a9d27a98a1a022dfe1985d2e
[ "MIT" ]
null
null
null
server/ota/stable/0-12/firmware/lib/ota.py
OPHoperHPO/neoled
9b92f258b51b23b4a9d27a98a1a022dfe1985d2e
[ "MIT" ]
null
null
null
# Standard OTA lib # Developed by Anodev Development (OPHoperHPO) (https://github.com/OPHoperHPO) import os import json import machine import requests # noinspection PyBroadException,PyUnresolvedReferences class OTA: def __init__(self, config): """OTA object""" # Init vars self.branch = co...
42.331633
111
0.475473
d58e6edb8c4b8316e93f503b7018e6f412b980ba
220
py
Python
contento/tests/__init__.py
inmagik/contento
b7430e42aedd80809a57d599a5841c60fd16c21f
[ "MIT" ]
1
2016-10-11T17:00:30.000Z
2016-10-11T17:00:30.000Z
contento/tests/__init__.py
inmagik/contento
b7430e42aedd80809a57d599a5841c60fd16c21f
[ "MIT" ]
23
2016-08-05T17:07:31.000Z
2021-06-10T23:30:06.000Z
contento/tests/__init__.py
inmagik/contento
b7430e42aedd80809a57d599a5841c60fd16c21f
[ "MIT" ]
1
2016-09-04T23:39:40.000Z
2016-09-04T23:39:40.000Z
from django.test import TestCase class AnimalTestCase(TestCase): def setUp(self): print 2 def test_animals_can_speak(self): """Animals that can speak are correctly identified""" print 3
22
61
0.677273
c6d4186ff4719a0a7a6aec1acc89337b8b9f50ce
132
bzl
Python
shlib/rules/binary_pkg.bzl
cgrindel/bazel-starlib
17430b0574da13a01ab49f3bc24eea66b29c7905
[ "Apache-2.0" ]
9
2021-11-02T22:29:57.000Z
2022-02-18T00:16:10.000Z
shlib/rules/binary_pkg.bzl
cgrindel/bazel-starlib
17430b0574da13a01ab49f3bc24eea66b29c7905
[ "Apache-2.0" ]
42
2021-12-06T18:28:36.000Z
2022-03-29T16:44:51.000Z
shlib/rules/binary_pkg.bzl
cgrindel/bazel-starlib
17430b0574da13a01ab49f3bc24eea66b29c7905
[ "Apache-2.0" ]
null
null
null
"""Public API for binary_pkg""" load("//shlib/rules/private:binary_pkg.bzl", _binary_pkg = "binary_pkg") binary_pkg = _binary_pkg
22
72
0.742424
2633c51b423d822127edb82947cdeb1e419e9d04
27,932
py
Python
desktop/core/src/desktop/views.py
cegganesh84/hue
87d40042e5599975cfac9931b981a92d13060c09
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/views.py
cegganesh84/hue
87d40042e5599975cfac9931b981a92d13060c09
[ "Apache-2.0" ]
null
null
null
desktop/core/src/desktop/views.py
cegganesh84/hue
87d40042e5599975cfac9931b981a92d13060c09
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
33.775091
138
0.708471
c987e5034cd4fee0a0ded5c7e00cf909aafbf9e3
1,018
py
Python
Python/0001_Two_Sum.py
Anakin2019/Leetcode
e88652b7cf7274c7c3954e14a3e3c8d765663518
[ "MIT" ]
null
null
null
Python/0001_Two_Sum.py
Anakin2019/Leetcode
e88652b7cf7274c7c3954e14a3e3c8d765663518
[ "MIT" ]
null
null
null
Python/0001_Two_Sum.py
Anakin2019/Leetcode
e88652b7cf7274c7c3954e14a3e3c8d765663518
[ "MIT" ]
null
null
null
""" Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can return the answer in any order. Example 1: Input: nums = [2,7,11,15], targe...
26.789474
121
0.626719
9b695d66b9b9031148b81ee9fa955b6fbdea769a
698
py
Python
CGATPipelines/pipeline_docs/pipeline_rnaseqlncrna/trackers/Summary.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
49
2015-04-13T16:49:25.000Z
2022-03-29T10:29:14.000Z
CGATPipelines/pipeline_docs/pipeline_rnaseqlncrna/trackers/Summary.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
252
2015-04-08T13:23:34.000Z
2019-03-18T21:51:29.000Z
CGATPipelines/pipeline_docs/pipeline_rnaseqlncrna/trackers/Summary.py
cdrakesmith/CGATPipelines
3c94ae4f9d87d51108255dc405c4b95af7c8b694
[ "MIT" ]
22
2015-05-21T00:37:52.000Z
2019-09-25T05:04:27.000Z
from CGATReport.Tracker import * import CGATPipelines.PipelineLncRNA as PipelineLncRNA ################################################# ################################################# ################################################# class Summary(Tracker): def getTracks(self): return ["lncrna", "l...
30.347826
230
0.54298
eb6f11d2208431545d8d688e8cbaa818b58d185c
10,223
py
Python
nova/compute/claims.py
oshiro3/nova
a6983621d40261adca9e4ab9feb14910881e9f92
[ "Apache-2.0" ]
null
null
null
nova/compute/claims.py
oshiro3/nova
a6983621d40261adca9e4ab9feb14910881e9f92
[ "Apache-2.0" ]
null
null
null
nova/compute/claims.py
oshiro3/nova
a6983621d40261adca9e4ab9feb14910881e9f92
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2012 OpenStack Foundation # 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 ...
40.090196
79
0.64081
e96a1fdeba165350cfb63c9c1fd0855666821466
4,693
py
Python
ngeo_browse_server/config/browselayer/serialization.py
EOX-A/ngeo-b
b55315c7955b4c2b68cbd7f8276ac890ee19106e
[ "MIT" ]
4
2016-08-05T17:33:41.000Z
2020-07-10T21:30:13.000Z
ngeo_browse_server/config/browselayer/serialization.py
EOX-A/ngeo-b
b55315c7955b4c2b68cbd7f8276ac890ee19106e
[ "MIT" ]
23
2015-10-29T17:52:06.000Z
2021-07-20T09:52:18.000Z
ngeo_browse_server/config/browselayer/serialization.py
EOX-A/ngeo-b
b55315c7955b4c2b68cbd7f8276ac890ee19106e
[ "MIT" ]
5
2015-07-21T09:33:57.000Z
2019-11-28T22:55:03.000Z
#------------------------------------------------------------------------------- # # Project: ngEO Browse Server <http://ngeo.eox.at> # Authors: Fabian Schindler <fabian.schindler@eox.at> # Marko Locher <marko.locher@eox.at> # Stephan Meissl <stephan.meissl@eox.at> # #---------------------------------...
52.730337
133
0.676326
d59ee97d5e5ba831a2516ccbaf3fa2e19be4ef19
1,412
py
Python
Training/DictOperations_test.py
fbarresi/LearningPython
3d10781e750e8d4bd43d4ad8e233ff952def5187
[ "MIT" ]
null
null
null
Training/DictOperations_test.py
fbarresi/LearningPython
3d10781e750e8d4bd43d4ad8e233ff952def5187
[ "MIT" ]
null
null
null
Training/DictOperations_test.py
fbarresi/LearningPython
3d10781e750e8d4bd43d4ad8e233ff952def5187
[ "MIT" ]
null
null
null
# Add the implementation every where you find a #to-do ### EXERCISE 1: count the keys of a dictionary def count_keys(dictionary): return len(dictionary) ### EXERCISE 2: write a function that returns a dictionary of n key from 0 to n and value 1 def get_dictionary(n): return dict.fromkeys(range(n),1) ### EXER...
35.3
117
0.651558
c9ac9923c81fbf7713e759b0f9acf78df7138bf8
10,780
py
Python
sdk/servicebus/azure-servicebus/azure/servicebus/aio/_base_handler_async.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
8
2021-01-13T23:44:08.000Z
2021-03-17T10:13:36.000Z
sdk/servicebus/azure-servicebus/azure/servicebus/aio/_base_handler_async.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
sdk/servicebus/azure-servicebus/azure/servicebus/aio/_base_handler_async.py
vbarbaresi/azure-sdk-for-python
397ba46c51d001ff89c66b170f5576cf8f49c05f
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.057971
118
0.634416
d4549bccecb19ae595de8412403cd35c2de396a4
4,420
py
Python
krun.py
JackHack96/MDT
aade96fa8c63acab85f694d623f499f4e9ce770e
[ "MIT" ]
1
2020-11-15T17:49:55.000Z
2020-11-15T17:49:55.000Z
krun.py
JackHack96/MDT
aade96fa8c63acab85f694d623f499f4e9ce770e
[ "MIT" ]
null
null
null
krun.py
JackHack96/MDT
aade96fa8c63acab85f694d623f499f4e9ce770e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # University of Verona - Languages 2017/2018 # Little parser for the MDT K project by JackHack96 aka Matteo Iervasi import subprocess import sys import os import xml.etree.ElementTree krun_path = "/opt/k/bin/krun" class Colors: ENDC = '\033[0m' CYAN_BOLD = '\033[1;36m' YELLOW_BOL...
34
115
0.525113
e87441badba949cd700d44d6268fe9090b471c48
3,317
py
Python
test/MSVS/vs-7.0-scc-legacy-files.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
1
2020-03-21T05:24:47.000Z
2020-03-21T05:24:47.000Z
test/MSVS/vs-7.0-scc-legacy-files.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
3
2019-01-15T20:40:02.000Z
2021-02-13T03:16:34.000Z
test/MSVS/vs-7.0-scc-legacy-files.py
Valkatraz/scons
5e70c65f633dcecc035751c9f0c6f894088df8a0
[ "MIT" ]
1
2021-08-04T12:32:39.000Z
2021-08-04T12:32:39.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
33.17
77
0.703949
14b7b8660acc9494d410cc701a72fc349532367f
7,564
py
Python
Cosma George/EmailExtractor.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Cosma George/EmailExtractor.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
null
null
null
Cosma George/EmailExtractor.py
RazvanBalau/parallel-2020
bd9c0dea6cc70e167320f64632d7a235522dfdb3
[ "MIT" ]
23
2020-01-15T15:02:39.000Z
2020-01-15T17:23:03.000Z
''' Created on 22.12.2013 @author: George ''' #linkregex = re.compile( # '<a(?:\s[A-Za-z]+=".*")*(?:\s[A-Za-z]+=\'.*\')*'+ #non-group sequence matching any attribute # '\s+href=[\'"](.*?)[\'"].*?>' #group sequence to match the href part # import re, sy...
31.781513
158
0.56954
f5fc85ec4269546188b8348199bc4c6540c1a175
990
py
Python
submission.py
simonalford42/icecuber-ARC
0f23a99684a849dd4403dd6d338d55b7fb5953d1
[ "MIT" ]
45
2020-06-08T23:00:20.000Z
2022-02-19T13:23:33.000Z
submission.py
simonalford42/icecuber-ARC
0f23a99684a849dd4403dd6d338d55b7fb5953d1
[ "MIT" ]
null
null
null
submission.py
simonalford42/icecuber-ARC
0f23a99684a849dd4403dd6d338d55b7fb5953d1
[ "MIT" ]
5
2020-06-09T04:09:39.000Z
2022-01-05T15:38:55.000Z
from subprocess import * from time import sleep, gmtime, ctime from sys import * def utctime(): t = gmtime() return "%d-%02d-%02d %02d:%02d:%02d"%(t.tm_year, t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec) pendings = [] while 1: output = check_output(["kaggle c submissions"], shell=True).decode("utf-8...
31.935484
104
0.548485
21de3df4a4fcdd47a551c476eab2f663c613e371
3,024
py
Python
tests/unit/resolution_resolvelib/test_requirement.py
EricCousineau-TRI/pip
2e4d748897fb4f93a2db41cef2fcc212134029fe
[ "MIT" ]
1
2021-04-10T20:49:39.000Z
2021-04-10T20:49:39.000Z
tests/unit/resolution_resolvelib/test_requirement.py
EricCousineau-TRI/pip
2e4d748897fb4f93a2db41cef2fcc212134029fe
[ "MIT" ]
1
2021-10-04T12:25:25.000Z
2021-10-05T07:30:54.000Z
tests/unit/resolution_resolvelib/test_requirement.py
EricCousineau-TRI/pip
2e4d748897fb4f93a2db41cef2fcc212134029fe
[ "MIT" ]
1
2020-12-20T00:39:13.000Z
2020-12-20T00:39:13.000Z
import pytest from pip._vendor.packaging.specifiers import SpecifierSet from pip._vendor.resolvelib import BaseReporter, Resolver from pip._internal.resolution.resolvelib.base import Candidate from pip._internal.utils.urls import path_to_url # NOTE: All tests are prefixed `test_rlr` (for "test resolvelib resolver"). ...
36.878049
78
0.681217
75e66db71d3b829a046dc66757e3eae03d4b24e3
25,503
py
Python
venv/Lib/site-packages/sqlalchemy/sql/crud.py
adityasagam/azurePy
bf6c61c1d6f52521602bae2ab3f06ffba4e30444
[ "MIT" ]
5
2021-09-05T16:11:12.000Z
2022-03-20T12:28:42.000Z
venv/Lib/site-packages/sqlalchemy/sql/crud.py
adityasagam/azurePy
bf6c61c1d6f52521602bae2ab3f06ffba4e30444
[ "MIT" ]
22
2019-01-18T02:57:36.000Z
2019-02-24T22:38:54.000Z
venv/Lib/site-packages/sqlalchemy/sql/crud.py
adityasagam/azurePy
bf6c61c1d6f52521602bae2ab3f06ffba4e30444
[ "MIT" ]
6
2019-02-19T09:03:28.000Z
2019-02-21T06:38:35.000Z
# sql/crud.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Functions used by compiler.py to determine the parameters rendered within INSERT and ...
32.119647
79
0.603498
092a906b41df42903bca8480a48a2aaac8fa2af8
10,383
py
Python
openl3/cli.py
thias42/openl3
41bb18b0304879977057029d98894cbdcc237f66
[ "MIT" ]
null
null
null
openl3/cli.py
thias42/openl3
41bb18b0304879977057029d98894cbdcc237f66
[ "MIT" ]
null
null
null
openl3/cli.py
thias42/openl3
41bb18b0304879977057029d98894cbdcc237f66
[ "MIT" ]
1
2020-10-05T05:51:40.000Z
2020-10-05T05:51:40.000Z
from __future__ import print_function import os import sys import sklearn.decomposition from openl3 import process_audio_file, process_image_file, process_video_file from openl3.models import load_audio_embedding_model, load_image_embedding_model from openl3.openl3_exceptions import OpenL3Error from argparse import Arg...
41.202381
120
0.586921
372a7951babe22b5fa5f139ac3be54d1001c9985
3,060
py
Python
zerver/webhooks/updown/view.py
dumpmemory/zulip
496273ddbc567330a0022699d6d6eb5c646e5da5
[ "Apache-2.0" ]
4
2021-09-16T16:46:55.000Z
2022-02-06T13:00:21.000Z
zerver/webhooks/updown/view.py
dumpmemory/zulip
496273ddbc567330a0022699d6d6eb5c646e5da5
[ "Apache-2.0" ]
null
null
null
zerver/webhooks/updown/view.py
dumpmemory/zulip
496273ddbc567330a0022699d6d6eb5c646e5da5
[ "Apache-2.0" ]
1
2022-02-04T05:15:12.000Z
2022-02-04T05:15:12.000Z
# Webhooks for external integrations. import re from typing import Any, Dict, List from django.http import HttpRequest, HttpResponse from zerver.decorator import webhook_view from zerver.lib.exceptions import UnsupportedWebhookEventType from zerver.lib.request import REQ, has_request_variables from zerver.lib.respons...
33.626374
83
0.722549
5096d02c61ebdc501905d8ef27c332969b633a3c
385
py
Python
env/Lib/site-packages/plotly/validators/table/_ids.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
venv/Lib/site-packages/plotly/validators/table/_ids.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
venv/Lib/site-packages/plotly/validators/table/_ids.py
wakisalvador/constructed-misdirection
74779e9ec640a11bc08d5d1967c85ac4fa44ea5e
[ "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__(self, plotly_name="ids", parent_name="table", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, edit_type...
32.083333
73
0.664935
dca2608971d4af212bf5a3702be2aebe78a13514
2,120
py
Python
tests/server_test.py
mqzry/pycouchdb
1592b1b501e6e2dea3009a83e9c937da70b49af8
[ "MIT" ]
null
null
null
tests/server_test.py
mqzry/pycouchdb
1592b1b501e6e2dea3009a83e9c937da70b49af8
[ "MIT" ]
10
2016-08-02T17:24:05.000Z
2016-09-06T17:06:06.000Z
tests/server_test.py
mqzry/pycouchdb
1592b1b501e6e2dea3009a83e9c937da70b49af8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from .context import couchdb import unittest server = couchdb.Cloudant(couchdb.auth.user, couchdb.auth.password) class ServerTestSuite(unittest.TestCase): """Basic test cases.""" def test_info(self): assert server.info['uuid'] def test_active_tasks(self): tasks ...
25.542169
90
0.666509
6989c4aadfdc82f223b26a475ca0168b578e9662
6,024
py
Python
menus_project/test_permissions.py
arcanemachine/menu-maker
c675dff5f04cde9924095d953bd7d7ad554d659d
[ "CC-BY-4.0" ]
2
2022-02-14T15:21:02.000Z
2022-02-15T06:20:48.000Z
menus_project/test_permissions.py
arcanemachine/Menu-Maker
c675dff5f04cde9924095d953bd7d7ad554d659d
[ "CC-BY-4.0" ]
1
2022-03-13T06:02:48.000Z
2022-03-28T12:58:47.000Z
menus_project/test_permissions.py
arcanemachine/django-menu-maker
665b815c7255b756725d08bf3f66f144407b83d8
[ "CC-BY-4.0" ]
null
null
null
from django.contrib.auth.models import AnonymousUser from django.test import TestCase, RequestFactory import menus_project.factories as f from .permissions import UserHasRestaurantPermissionsMixin class UserHasRestaurantPermissionsMixinTest(TestCase): @classmethod def setUpTestData(cls): cls.test_pe...
44.622222
79
0.752158
3a2a8b34413ebef1e1575d0e5a98cd4e782a4477
21,421
py
Python
aws_okta_keyman/okta.py
mikesplain/aws_okta_keyman
7eb8b9527eebe6200eea41ac179e1879b2bcaf3a
[ "Apache-2.0", "0BSD" ]
null
null
null
aws_okta_keyman/okta.py
mikesplain/aws_okta_keyman
7eb8b9527eebe6200eea41ac179e1879b2bcaf3a
[ "Apache-2.0", "0BSD" ]
null
null
null
aws_okta_keyman/okta.py
mikesplain/aws_okta_keyman
7eb8b9527eebe6200eea41ac179e1879b2bcaf3a
[ "Apache-2.0", "0BSD" ]
null
null
null
# -*- coding: utf-8 -*- # # Credits: Portions of this code were copied/modified from # https://github.com/ThoughtWorksInc/oktaauth # # Copyright (c) 2015, Peter Gillard-Moss # All rights reserved. # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted...
37.253913
79
0.605527
488643ef556c7c5909aa78c827739e26e570d323
3,410
py
Python
lona/contrib/django/auth.py
rominf/lona
fe245b18e4907559db50e772b42c767bdc61d04e
[ "MIT" ]
1
2021-09-08T09:00:20.000Z
2021-09-08T09:00:20.000Z
lona/contrib/django/auth.py
rominf/lona
fe245b18e4907559db50e772b42c767bdc61d04e
[ "MIT" ]
1
2022-01-13T06:59:08.000Z
2022-01-13T06:59:08.000Z
lona/contrib/django/auth.py
rominf/lona
fe245b18e4907559db50e772b42c767bdc61d04e
[ "MIT" ]
1
2022-01-11T11:21:04.000Z
2022-01-11T11:21:04.000Z
import logging from django.contrib.auth.models import User, AnonymousUser from django.contrib.sessions.models import Session from lona.errors import ForbiddenError logger = logging.getLogger('lona.contrib.django.auth') class DjangoSessionMiddleware: def handle_connection(self, data): # find user ...
27.063492
76
0.578886
882d22e936e260fb44a9f0a0b3a68fe5684a576b
44,691
py
Python
env/lib/python3.7/site-packages/joblib/parallel.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
4
2020-01-22T20:07:06.000Z
2021-01-23T23:34:28.000Z
env/lib/python3.7/site-packages/joblib/parallel.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
5
2021-03-19T08:36:48.000Z
2022-01-13T01:52:34.000Z
env/lib/python3.7/site-packages/joblib/parallel.py
MarcoMancha/BreastCancerDetector
be0dfdcebd1ae66da6d0cf48e2525c24942ae877
[ "Apache-2.0" ]
2
2022-03-11T16:11:48.000Z
2022-03-16T04:58:41.000Z
""" Helpers for embarrassingly parallel code. """ # Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org > # Copyright: 2010, Gael Varoquaux # License: BSD 3 clause from __future__ import division import os import sys from math import sqrt import functools import time import threading import itertools fr...
43.17971
103
0.614688
fd1b0cde2ca7ee6c9a24968d298787bab7af7eff
2,024
py
Python
LF2/app.py
aravindvaddi/smart-door
f50bc11a677c44a14a322fea124a05dcbf5ed756
[ "MIT" ]
null
null
null
LF2/app.py
aravindvaddi/smart-door
f50bc11a677c44a14a322fea124a05dcbf5ed756
[ "MIT" ]
null
null
null
LF2/app.py
aravindvaddi/smart-door
f50bc11a677c44a14a322fea124a05dcbf5ed756
[ "MIT" ]
null
null
null
# function to handle API call from WP2 (webpage used by visitor to enter otp and gain access) import json import boto3 import time from boto3.dynamodb.conditions import Key dynamo_resource = boto3.resource('dynamodb') passcodes_table = dynamo_resource.Table('passcodes') visitors_table = dynamo_resource.Table('visito...
23.264368
93
0.674901
8bd86d467de41aba767d36ebe809940b3c73dc85
1,760
py
Python
chess/square.py
alexcamargos/SimpleChessGame
4b23ef2851184db58e86dc87d901d505e9d58046
[ "MIT" ]
null
null
null
chess/square.py
alexcamargos/SimpleChessGame
4b23ef2851184db58e86dc87d901d505e9d58046
[ "MIT" ]
null
null
null
chess/square.py
alexcamargos/SimpleChessGame
4b23ef2851184db58e86dc87d901d505e9d58046
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # --------------------------------------------------------------------------------------------------------------------- # Name: square.py # Version: 0.0.1 # Summary: SCGP - Simple Chess Game in Python # A simple chess game with a command line and GUI interfaces written ...
25.507246
119
0.522159
1edfd6296084cdce1e99122c368f099831b96bb3
2,490
py
Python
ament_index_python/ament_index_python/cli.py
rob-clarke/ament_index
6134519573fe3bfbf5de41d811c36c374e5facd9
[ "Apache-2.0" ]
3
2015-06-26T01:52:00.000Z
2021-01-14T10:56:57.000Z
ament_index_python/ament_index_python/cli.py
rob-clarke/ament_index
6134519573fe3bfbf5de41d811c36c374e5facd9
[ "Apache-2.0" ]
56
2015-06-26T20:19:54.000Z
2022-01-10T23:45:41.000Z
ament_index_python/ament_index_python/cli.py
rob-clarke/ament_index
6134519573fe3bfbf5de41d811c36c374e5facd9
[ "Apache-2.0" ]
22
2016-04-11T17:16:45.000Z
2021-07-11T00:11:24.000Z
# Copyright 2019 Open Source Robotics Foundation, Inc. # # 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...
31.518987
83
0.694779
d4cd9654a474ef5ca8b2e0c68cd1c1911d5f0585
4,226
py
Python
k2/python/tests/linear_fsa_test.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
null
null
null
k2/python/tests/linear_fsa_test.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
null
null
null
k2/python/tests/linear_fsa_test.py
Jarvan-Wang/k2
7f164ecb804d15006fd30e8564d80e0fa212f011
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Mobvoi Inc. (authors: Fangjun Kuang) # # See ../../../LICENSE for clarification regarding multiple authors # To run this single test, use # # ctest --verbose -R linear_fsa_test_py import unittest import k2 import torch class TestLinearFsa(unittest.TestCase): ...
34.639344
79
0.443682
e924563747c5089e9ab09d19ccabba2ea86aac58
4,602
py
Python
examples/remarketing/add_conversion_based_user_list.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
examples/remarketing/add_conversion_based_user_list.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
examples/remarketing/add_conversion_based_user_list.py
claudiapaveljlp/google-ads-python
c143e81804e237a9549dd5936503d921033c4e5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2020 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.672269
80
0.707084
c241872f6e60d1d49a2f372ed4de4ed996c5e7f5
17,555
py
Python
controller/controller.py
ramrod-project/backend-controller
d4ddaf880e41f9f2f1ed4db40d0020d1f0585b1c
[ "MIT" ]
null
null
null
controller/controller.py
ramrod-project/backend-controller
d4ddaf880e41f9f2f1ed4db40d0020d1f0585b1c
[ "MIT" ]
1
2021-06-01T22:24:40.000Z
2021-06-01T22:24:40.000Z
controller/controller.py
ramrod-project/backend-controller
d4ddaf880e41f9f2f1ed4db40d0020d1f0585b1c
[ "MIT" ]
null
null
null
"""Controller This is the controller module. TODO: - Maintain local mapping of plugin names to containers. - Use local mapping as cache and update as needed """ from json import load import logging from os import environ, getenv import re from time import asctime, gmtime, sleep, time import brain import docker from ...
30.530435
123
0.537682
9be14584e7b3ca30bcff374f4d7f12c35d709b59
5,839
py
Python
__init__.py
FireSpark142/jessestratone
755d8311372e01adbb7f7863fd9c864fc9e49d62
[ "MIT" ]
2
2021-07-03T07:25:21.000Z
2021-10-06T01:04:41.000Z
__init__.py
FireSpark142/jessestratone
755d8311372e01adbb7f7863fd9c864fc9e49d62
[ "MIT" ]
null
null
null
__init__.py
FireSpark142/jessestratone
755d8311372e01adbb7f7863fd9c864fc9e49d62
[ "MIT" ]
null
null
null
from jesse.strategies import Strategy import jesse.indicators as ta from jesse import utils class stratv1(Strategy): def filters(self): #Filters we use to ensure a trade does not happen under certain conditions return [ self.stop_loss_entry_filter, self.take_profit_entry_f...
49.483051
199
0.660558
ec9a811cbda526740e838df4ad512b17d7a13952
455
py
Python
cxyx_monitor/core/base.py
Thixiaoxiao/cxyx_monitor
a22bc486b174f5e65e04f9965e791de4660a1527
[ "BSD-2-Clause" ]
1
2020-07-26T11:05:07.000Z
2020-07-26T11:05:07.000Z
cxyx_monitor/core/base.py
Thixiaoxiao/cxyx_monitor
a22bc486b174f5e65e04f9965e791de4660a1527
[ "BSD-2-Clause" ]
null
null
null
cxyx_monitor/core/base.py
Thixiaoxiao/cxyx_monitor
a22bc486b174f5e65e04f9965e791de4660a1527
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*-# # ----------------------------------------------------------------------------- # Name: base # Description: # Author: Chenxiyuxiao # Date: 2020/7/20 # ----------------------------------------------------------------------------- from sqlalchemy import create_engine from ...
26.764706
79
0.41978
ccdfcda00cd3b4e5534c7ab096e1d08be327c027
3,687
py
Python
ascii_art_test.py
DrEuler/HangmanPy
471e1f7259c7998f717aa7d5885ed056324517bd
[ "MIT" ]
null
null
null
ascii_art_test.py
DrEuler/HangmanPy
471e1f7259c7998f717aa7d5885ed056324517bd
[ "MIT" ]
null
null
null
ascii_art_test.py
DrEuler/HangmanPy
471e1f7259c7998f717aa7d5885ed056324517bd
[ "MIT" ]
null
null
null
from __future__ import print_function import random graphics=[''' ------------ | |''',''' ------------ | | | O''',''' ------------ | | | O | / |''',''' ------------ | | | O | / | | | ''',''' ------------ | |...
28.581395
340
0.453214
c68ee8d1daee1a8574c89ef45d757b8fce703459
21,322
py
Python
test/functional/bsv-genesis-activation-gracefull-period.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
2
2018-10-17T21:07:47.000Z
2018-12-10T19:13:35.000Z
test/functional/bsv-genesis-activation-gracefull-period.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
null
null
null
test/functional/bsv-genesis-activation-gracefull-period.py
Trackerming/bitcoin-sv
fb50a64e3ea0334a86b2c80daf5147c5bc2693c4
[ "MIT" ]
1
2019-09-29T07:53:10.000Z
2019-09-29T07:53:10.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 Bitcoin Association # Distributed under the Open BSV software license, see the accompanying file LICENSE. """ Test genesis activation gracefull period sending transactions. The test checks 4 scenarios that can occur around genesis activation height that would normally mean th...
51.502415
192
0.688069