hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
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
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
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
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
386d6ab493360bff8cba38e0b624c70712f03f4f
11,230
py
Python
pelita/ui/tk_sprites.py
DanBenHa/pelita
557c3a757a24e0f1abe25f7edf5c4ffee83a077e
[ "BSD-2-Clause" ]
null
null
null
pelita/ui/tk_sprites.py
DanBenHa/pelita
557c3a757a24e0f1abe25f7edf5c4ffee83a077e
[ "BSD-2-Clause" ]
null
null
null
pelita/ui/tk_sprites.py
DanBenHa/pelita
557c3a757a24e0f1abe25f7edf5c4ffee83a077e
[ "BSD-2-Clause" ]
null
null
null
import cmath import math def col(red, green, blue): """Convert the given colours [0, 255] to HTML hex colours.""" return "#%02x%02x%02x" % (red, green, blue) RED = col(235, 90, 90) BLUE = col(94, 158, 217) YELLOW = col(242, 255, 83) GREY = col(80, 80, 80) BROWN = col(48, 26, 22) def rotate(arc, rotation): ...
41.592593
173
0.5813
386da634048ab6af7a9d332ab2ea2c432519bfce
10,384
py
Python
tf-faster-rcnn/tools/process-widgets-frcnn.py
bernardcwj/FYP_2017
a9c9f6c6f83de018f63f83d283a75f50742108f0
[ "MIT" ]
null
null
null
tf-faster-rcnn/tools/process-widgets-frcnn.py
bernardcwj/FYP_2017
a9c9f6c6f83de018f63f83d283a75f50742108f0
[ "MIT" ]
null
null
null
tf-faster-rcnn/tools/process-widgets-frcnn.py
bernardcwj/FYP_2017
a9c9f6c6f83de018f63f83d283a75f50742108f0
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen, based on code from Ross Girshick # -------------------------------------------------------- """ Demo script showing detections...
33.934641
142
0.58985
386db13696a302fc2728fbd833dfda97337a499b
800
py
Python
tests/test_hpoa.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
tests/test_hpoa.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
tests/test_hpoa.py
sgml/dipper
cff0d01299e982183a5345b8a7eb00094ed05257
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import unittest import logging from tests.test_source import SourceTestCase from dipper.sources.HPOAnnotations import HPOAnnotations logging.basicConfig(level=logging.WARNING) logger = logging.getLogger(__name__) class HPOATestCase(SourceTestCase): def setUp(self): self.source = H...
22.857143
59
0.69
386de79b3332cca55c277c258064245a6736a9da
3,050
py
Python
functions/webhookFunc.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
1
2021-09-26T05:32:00.000Z
2021-09-26T05:32:00.000Z
functions/webhookFunc.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
functions/webhookFunc.py
VMAJSTER/openstreamingplatform
f002246db922dab9a3f019f46001f3901326feaf
[ "MIT" ]
null
null
null
import json import requests from classes.shared import db from classes import webhook from functions import system @system.asynch def runWebhook(channelID, triggerType, **kwargs): webhookQueue = [] if channelID != "ZZZ": webhookQuery = webhook.webhook.query.filter_by(channelID=channelID, requestTrig...
41.780822
113
0.610492
386e5ef45612a24666bca4999398f2453ca33d7d
127
py
Python
django_learning/updates/admin.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
django_learning/updates/admin.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
django_learning/updates/admin.py
angelptli/django-learning
f0d25e4b85526c2c092c4e4d2f108e7602db7f0d
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import OwnerUpdate # Register your models here. admin.site.register(OwnerUpdate)
25.4
32
0.826772
386e6973263d7a81483c527721031feb70e8451b
18,215
py
Python
alipay/aop/api/domain/InvoiceSendOpenModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/InvoiceSendOpenModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/InvoiceSendOpenModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.InvoiceItemOpenModel import InvoiceItemOpenModel from alipay.aop.api.domain.InvoiceTitleOpenModel import InvoiceTitleOpenModel from alipay.aop.api.domain.EinvTrade import EinvTrade ...
36.140873
101
0.615317
386e767af1835a8c9a5ce113fdb113485eb13a76
5,485
py
Python
light_field_tools/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
1
2018-06-18T09:46:10.000Z
2018-06-18T09:46:10.000Z
light_field_tools/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
light_field_tools/__init__.py
1-MillionParanoidTterabytes/blender-addons-master
acc8fc23a38e6e89099c3e5079bea31ce85da06a
[ "Unlicense" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
29.972678
102
0.611121
386e79f36410373bcdb7c508996640b30a051123
2,413
py
Python
det3d/utils/registry.py
anonymous0522/RAAN
1e9cb9cd50bf99106ae33e10310eafed5b5ffbba
[ "MIT" ]
33
2021-11-19T02:02:41.000Z
2022-03-15T03:10:28.000Z
det3d/utils/registry.py
anonymous0522/RAAN
1e9cb9cd50bf99106ae33e10310eafed5b5ffbba
[ "MIT" ]
null
null
null
det3d/utils/registry.py
anonymous0522/RAAN
1e9cb9cd50bf99106ae33e10310eafed5b5ffbba
[ "MIT" ]
3
2021-12-22T07:35:20.000Z
2022-03-04T03:17:21.000Z
import inspect from det3d import torchie import pdb class Registry(object): def __init__(self, name): self._name = name self._module_dict = dict() def __repr__(self): format_str = self.__class__.__name__ + "(name={}, items={})".format( self._name, list(self._module_dict.ke...
30.935897
81
0.6092
386ea3feb21674ab284fb777fd833c77a379d17b
20,357
py
Python
mlapp/utils/features/pandas.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
33
2021-02-26T10:41:09.000Z
2021-11-07T12:35:32.000Z
mlapp/utils/features/pandas.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
17
2021-03-04T15:37:21.000Z
2021-04-06T12:00:13.000Z
mlapp/utils/features/pandas.py
kerenleibovich/mlapp
0b8dfaba7a7070ab68cb29ff61dd1c7dd8076693
[ "Apache-2.0" ]
9
2021-03-03T20:02:41.000Z
2021-10-05T13:03:56.000Z
import logging from scipy import stats import numpy as np import pandas as pd from sklearn.preprocessing import PolynomialFeatures from pandas.core.dtypes.common import ensure_float64 from sklearn.metrics import precision_score, recall_score logger = logging.getLogger(__name__) logger.setLevel(logging.CRITICAL) def ...
41.629857
191
0.640762
386ebfd534bf97d4991ad484e425436d78cf9350
472
py
Python
test.py
nimishsantosh107/GazeCorrection
585e359ec9fa71fa799574c10bc61038f5f252c7
[ "Apache-2.0" ]
129
2019-06-04T13:31:38.000Z
2022-03-17T03:14:58.000Z
test.py
nimishsantosh107/GazeCorrection
585e359ec9fa71fa799574c10bc61038f5f252c7
[ "Apache-2.0" ]
15
2019-07-30T10:10:06.000Z
2022-02-10T00:44:39.000Z
test.py
nimishsantosh107/GazeCorrection
585e359ec9fa71fa799574c10bc61038f5f252c7
[ "Apache-2.0" ]
24
2019-06-20T12:34:05.000Z
2021-08-16T08:28:54.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from Dataset import Dataset from GazeGAN import Gaze_GAN from config.train_options import TrainOptions opt = TrainOptions().parse() os.environ['CUDA_VISIBLE_DEVICES'] = str(opt.gpu_id) ...
23.6
53
0.747881
386eea1bce5970c8b22fbe455fdb72e68250f202
13,440
py
Python
nbs/docs/build_docs.py
yinleon/localnewsdataset
d97f2f86aa7da3813f6e388e637f9e7350e53178
[ "MIT" ]
17
2018-08-03T19:32:27.000Z
2022-03-24T03:04:26.000Z
nbs/docs/build_docs.py
yinleon/localnewsdataset
d97f2f86aa7da3813f6e388e637f9e7350e53178
[ "MIT" ]
3
2018-11-20T20:17:34.000Z
2021-03-01T18:49:44.000Z
nbs/docs/build_docs.py
yinleon/localnewsdataset
d97f2f86aa7da3813f6e388e637f9e7350e53178
[ "MIT" ]
5
2018-12-07T18:51:11.000Z
2021-06-08T16:14:55.000Z
import os import pandas as pd import plotly.plotly as py from IPython.core.display import HTML, display, Markdown, Latex # common column definitions website = 'The website of the media outlet exactly as we found it online.' source = 'Where was this record scraped from?' collection_date = 'When was this record collecte...
36.821918
317
0.609003
386f32e6c81e6f98730849b0aefaff218866d7fe
8,142
py
Python
rotkehlchen/tests/test_kraken.py
bobkilla/rotkehlchen
f611351e39cb1ebcc16f1344b4f7adaa441cc763
[ "BSD-3-Clause" ]
1
2019-08-04T08:30:14.000Z
2019-08-04T08:30:14.000Z
rotkehlchen/tests/test_kraken.py
bobkilla/rotkehlchen
f611351e39cb1ebcc16f1344b4f7adaa441cc763
[ "BSD-3-Clause" ]
null
null
null
rotkehlchen/tests/test_kraken.py
bobkilla/rotkehlchen
f611351e39cb1ebcc16f1344b4f7adaa441cc763
[ "BSD-3-Clause" ]
null
null
null
from copy import deepcopy from unittest.mock import patch import pytest from rotkehlchen.assets.asset import Asset from rotkehlchen.assets.converters import asset_from_kraken from rotkehlchen.constants.assets import A_BTC, A_ETH from rotkehlchen.errors import UnprocessableTradePair from rotkehlchen.fval import FVal f...
36.026549
98
0.692459
386f43b28dec16219740529caff3804f58f78e19
1,449
py
Python
usage/api/models/skipgram.py
VTurturika/ua_skipgram_cbow
7ab198bed3fb72af638acfdee28141879f3cfabb
[ "MIT" ]
null
null
null
usage/api/models/skipgram.py
VTurturika/ua_skipgram_cbow
7ab198bed3fb72af638acfdee28141879f3cfabb
[ "MIT" ]
null
null
null
usage/api/models/skipgram.py
VTurturika/ua_skipgram_cbow
7ab198bed3fb72af638acfdee28141879f3cfabb
[ "MIT" ]
null
null
null
import argparse import sys import tensorflow as tf def read_dictionary(): with open('models/skipgram/skipgram.tsv', 'r') as file: words = file.read().split() dictionary = {} for (i, word) in enumerate(words): dictionary[word] = i reversed_dictionary = dict(zip(dictionar...
34.5
86
0.673568
386f51c25143177f616fcc85945157858a269365
805
py
Python
src/pynwb/ndx_nonrigid_motion_correction/test.py
bendichter/ndx-nonrigid-motion-correction
5e4b6ebf0fdc545cdb92d1209249037fd6ae7bb4
[ "BSD-3-Clause" ]
null
null
null
src/pynwb/ndx_nonrigid_motion_correction/test.py
bendichter/ndx-nonrigid-motion-correction
5e4b6ebf0fdc545cdb92d1209249037fd6ae7bb4
[ "BSD-3-Clause" ]
null
null
null
src/pynwb/ndx_nonrigid_motion_correction/test.py
bendichter/ndx-nonrigid-motion-correction
5e4b6ebf0fdc545cdb92d1209249037fd6ae7bb4
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from datetime import datetime from ndx_nonrigid_motion_correction import NonrigidMotionCorrection from pynwb import NWBHDF5IO, NWBFile print(NonrigidMotionCorrection.__init__.__doc__) nmc = NonrigidMotionCorrection(name='demo', data=np.ones((3, 3)), pixel_map=np.ones((3, 3), dtype='int'), ...
33.541667
105
0.715528
386f7faa88f845eba7d23447ee05e36f4a912b7b
2,435
py
Python
tests/batch_fetch/test_one_to_many_composite_keys.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
1
2015-07-06T11:19:11.000Z
2015-07-06T11:19:11.000Z
tests/batch_fetch/test_one_to_many_composite_keys.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
tests/batch_fetch/test_one_to_many_composite_keys.py
jd/sqlalchemy-utils
fa78e45f9bd38b46d5aface41914dad022c0099b
[ "BSD-3-Clause" ]
null
null
null
import sqlalchemy as sa from sqlalchemy_utils import batch_fetch from tests import TestCase class TestBatchFetchWithCompositeKeyRelationships(TestCase): def create_models(self): class User(self.Base): __tablename__ = 'user' first_name = sa.Column(sa.Unicode(255), primary_key=True) ...
32.905405
79
0.537166
386f8fcbf6ebd08cacb18a7b975e9dc19b1fabd6
5,457
py
Python
autoesk_main/default/interact/__init__.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-03-12T00:40:13.000Z
2021-03-12T00:40:13.000Z
autoesk_main/default/interact/__init__.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
1
2021-04-02T04:40:38.000Z
2021-04-02T04:42:20.000Z
autoesk_main/default/interact/__init__.py
SilasPDJ/autoesk_project_v2
249730307ad350a1aaacfd5abe08b0781253854e
[ "MIT" ]
null
null
null
# SyntaxWarning: import * only allowed at module level from time import sleep import threading def press_key_b4(key: str): from keyboard import is_pressed """ Só dá break quando uma tecla específica é pressionada, e então, continua o código :param key: :return: """ while True: # ...
28.274611
125
0.568444
386fa731bfb6eee6531623b91a994be338fabefe
11,869
py
Python
hummingbot/client/command/balance_command.py
RBUB-Yatirim/hummingbot
6b278932d423110b70d723c2b11c6ddf668cb367
[ "Apache-2.0" ]
3
2021-04-23T23:29:37.000Z
2021-07-31T12:44:54.000Z
hummingbot/client/command/balance_command.py
RBUB-Yatirim/hummingbot
6b278932d423110b70d723c2b11c6ddf668cb367
[ "Apache-2.0" ]
3
2021-04-13T10:40:05.000Z
2021-05-09T16:15:42.000Z
hummingbot/client/command/balance_command.py
RBUB-Yatirim/hummingbot
6b278932d423110b70d723c2b11c6ddf668cb367
[ "Apache-2.0" ]
2
2021-01-19T09:42:18.000Z
2021-05-08T08:07:43.000Z
from hummingbot.client.settings import ( GLOBAL_CONFIG_PATH, ethereum_required_trading_pairs ) from hummingbot.user.user_balances import UserBalances from hummingbot.core.utils.async_utils import safe_ensure_future from hummingbot.client.config.global_config_map import global_config_map from hummingbot.client.c...
44.620301
117
0.571657
386fcfe088d4f28fbebd44e296cd9fd5ce2077c1
3,095
py
Python
base.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
2
2018-08-15T21:27:59.000Z
2018-08-21T17:56:12.000Z
base.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
null
null
null
base.py
blockchainhelppro/CelvinRost
aa2661747d06e4610928466521e4da1db77aeadc
[ "MIT" ]
1
2018-07-27T07:19:49.000Z
2018-07-27T07:19:49.000Z
from populus.contracts.exceptions import ( UnknownContract, ) from populus.contracts.contract import ( construct_contract_factory, ) class BaseContractBackend(object): chain = None def __init__(self, chain, config): self.chain = chain self.config = config self.setup_backend() ...
29.47619
77
0.632956
386fe125230744991484d1f2e282aa568d84c985
4,975
py
Python
project/apps/main_site/migrations/0012_moving_to_new_sleep.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
null
null
null
project/apps/main_site/migrations/0012_moving_to_new_sleep.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
4
2020-02-12T01:09:50.000Z
2021-06-10T20:34:59.000Z
project/apps/main_site/migrations/0012_moving_to_new_sleep.py
skoczen/the-steven-manual
20599347ed1618886290c596332738013ac45500
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Write your forwards methods here." last_sleep = 8 for gb in orm['main_site.GutterBumper'].objects.order_...
64.61039
173
0.551558
387009c22f1eec9aa0b9d3c0e0c87b39abdabc0c
4,071
py
Python
encoder.py
UtkarshMishra04/pixel-representations-RL
8f457adcf41eb3b8975eaa5a752736c07b908c63
[ "MIT" ]
2
2021-10-31T05:12:19.000Z
2021-12-16T11:56:12.000Z
encoder.py
UtkarshMishra04/pixel-representations-RL
8f457adcf41eb3b8975eaa5a752736c07b908c63
[ "MIT" ]
null
null
null
encoder.py
UtkarshMishra04/pixel-representations-RL
8f457adcf41eb3b8975eaa5a752736c07b908c63
[ "MIT" ]
null
null
null
import torch import torch.nn as nn def tie_weights(src, trg): assert type(src) == type(trg) trg.weight = src.weight trg.bias = src.bias ### Works with Finism SAC # OUT_DIM = {2: 39, 4: 35, 6: 31} # OUT_DIM_84 = {2: 39, 4: 35, 6: 31} # OUT_DIM_100 = {2: 39, 4: 43, 6: 31} ### Works with RAD SAC OUT_DIM =...
28.669014
134
0.596168
387016956671cda7b090da2a01c485671d81dbbf
955
py
Python
Seeder/blacklists/migrations/0001_initial.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/blacklists/migrations/0001_initial.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/blacklists/migrations/0001_initial.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-06-25 16:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blackl...
30.806452
119
0.565445
38704ae8730a09b49dd15beacbdbe737b6b3e475
357,921
py
Python
cinder/tests/unit/volume/drivers/hpe/test_hpe3par.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/hpe/test_hpe3par.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/drivers/hpe/test_hpe3par.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# (c) Copyright 2013-2015 Hewlett Packard Enterprise Development LP # 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/lic...
42.372558
79
0.548367
38705caa8b4ee6f2cb8db228f7768fda99fffafc
542
py
Python
intro/ordering.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
intro/ordering.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
2
2020-07-19T15:36:35.000Z
2022-02-02T20:30:16.000Z
intro/ordering.py
RobertoRosa7/python
449f3908a38814ec7ec3b3ce1051b8abe70069d2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- class Pessoa: def __init__(self, name, age): self.name = name self.age = age def __repr__(self): return self.name # critério de ordenação def byName(pessoa): return pessoa.name def byAge(pessoa): return pessoa.age p1 = Pessoa('João', 32) p2 = Pessoa('Ana', 23) p3 = Pe...
19.357143
63
0.662362
3870cd752c564036c2c91d4ab48d7d471285e040
1,471
py
Python
socialregistration/contrib/openid/models.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
63
2015-01-27T16:52:03.000Z
2021-08-29T04:23:51.000Z
socialregistration/contrib/openid/models.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
3
2016-05-26T07:46:53.000Z
2022-02-16T15:25:16.000Z
socialregistration/contrib/openid/models.py
nypublicradio/legacy-publisher-django-socialregistration
181f75d152f553f77fa899dac895c4276108204f
[ "MIT" ]
23
2015-02-02T13:33:46.000Z
2020-10-25T20:02:53.000Z
from django.conf import settings from django.db import models from django.contrib.sites.models import Site from django.contrib.auth import authenticate AUTH_USER_MODEL = getattr(settings, 'AUTH_USER_MODEL', 'auth.User') class OpenIDProfile(models.Model): user = models.ForeignKey(AUTH_USER_MODEL) site = models...
35.02381
88
0.721958
3870e451d1644a232c9549ab36b9c4744e679041
2,116
py
Python
Image/OpenCV/tattoo/main.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
58
2019-03-03T04:42:23.000Z
2022-01-13T04:36:31.000Z
Image/OpenCV/tattoo/main.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
null
null
null
Image/OpenCV/tattoo/main.py
YangXiaoo/NoteBook
37056acad7a05b876832f72ac34d3d1a41e0dd22
[ "CNRI-Python", "RSA-MD", "CECILL-B" ]
28
2019-08-11T01:25:00.000Z
2021-08-22T06:46:06.000Z
# 2018-9-8 # 标签检测主文件 import os import cv2 import numpy as np import sys def main(descriptor_folder, query_image): """ 主文件 descriptor_folder: 描述符文件目录 query_image: 查询图片路径 """ descriptors = [] for root, dirs, files in os.walk(descriptor_folder, topdown=False): for f in files: ...
30.228571
93
0.608696
387132b7390e57fbb016dc64f127f6e3eceac8f6
2,035
py
Python
src/cfg/test.py
GiovanniBellorio/Offuscatore-python
ab56f7b3efbc0b25dc4cd055cb01ccc8a14b6c3b
[ "MIT" ]
1
2021-12-17T13:58:12.000Z
2021-12-17T13:58:12.000Z
src/cfg/test.py
GiovanniBellorio/Offuscatore-python
ab56f7b3efbc0b25dc4cd055cb01ccc8a14b6c3b
[ "MIT" ]
null
null
null
src/cfg/test.py
GiovanniBellorio/Offuscatore-python
ab56f7b3efbc0b25dc4cd055cb01ccc8a14b6c3b
[ "MIT" ]
null
null
null
digraph "clustertest.py" { graph [label="test.py"] 1 [label="if True: "] 2 [label="pippo = 'pippo' print(pippo[2]) ciao = pippo[2] + pippo[3] print(ciao) tmp = pippo.replace('p', 'a') print(tmp) ciao = pippo prova = [pippo, pippo] print(prova) provs = ['a', 'b'] print(provs) dicto = {'ciao': 'ciao'} print(dicto) dic...
16.41129
44
0.574939
3871491188144855f5378af17dd176d40b30a9e9
1,157
py
Python
tests/data/multipoint_beam/interp_base.py
relf/WhatsOpt-CLI
85551102c28b2bd404207521fd9020435415d469
[ "Apache-2.0" ]
5
2019-11-13T08:05:57.000Z
2022-01-03T14:35:49.000Z
tests/data/multipoint_beam/interp_base.py
relf/WhatsOpt-CLI
85551102c28b2bd404207521fd9020435415d469
[ "Apache-2.0" ]
4
2019-12-19T14:43:17.000Z
2021-06-21T09:28:31.000Z
tests/data/multipoint_beam/interp_base.py
relf/WhatsOpt-CLI
85551102c28b2bd404207521fd9020435415d469
[ "Apache-2.0" ]
5
2019-03-29T09:51:25.000Z
2021-06-08T14:10:52.000Z
# -*- coding: utf-8 -*- """ interp_base.py generated by WhatsOpt 1.8.2 """ # DO NOT EDIT unless you know what you are doing # whatsopt_url: https://ether.onera.fr/whatsopt # analysis_id: 4 import numpy as np from numpy import nan from os import path from importlib import import_module from yaml import load, FullLoa...
29.666667
74
0.62057
38714e8ac376eafb184aa456a5ad7283e313586b
2,804
py
Python
libcloudforensics/errors.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
libcloudforensics/errors.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
libcloudforensics/errors.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google 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 ...
29.829787
78
0.735021
387159ca75dab14dfd4fc8ceba9cc35652263cc3
6,846
py
Python
multiuser_manual_db.py
TerryCM/migration-annotation
9bd31ac7e1901dd04ecf793bf73c420f8cfd1812
[ "MIT" ]
null
null
null
multiuser_manual_db.py
TerryCM/migration-annotation
9bd31ac7e1901dd04ecf793bf73c420f8cfd1812
[ "MIT" ]
null
null
null
multiuser_manual_db.py
TerryCM/migration-annotation
9bd31ac7e1901dd04ecf793bf73c420f8cfd1812
[ "MIT" ]
null
null
null
import prodigy from multiprocessing import Process from time import sleep import atexit from pathlib import Path from prodigy.components import printers from prodigy.components.loaders import get_stream from prodigy.core import recipe, recipe_args from prodigy.util import TASK_HASH_ATTR, log from prodigy.components.pr...
34.40201
103
0.588227
38716e5c701dfb6051324ecabe6b0c6788c45093
5,875
py
Python
src/events/inviteEvents.py
ayman2598/GabbyGums
b68ab01610ac399aa2b7daa97d5d71dd0d1b19d6
[ "Apache-2.0" ]
2
2019-12-13T20:06:14.000Z
2022-01-23T00:34:29.000Z
src/events/inviteEvents.py
ayman2598/GabbyGums
b68ab01610ac399aa2b7daa97d5d71dd0d1b19d6
[ "Apache-2.0" ]
23
2019-10-19T16:55:45.000Z
2020-03-14T16:18:05.000Z
src/events/inviteEvents.py
amadea-system/GabbyGums
b68ab01610ac399aa2b7daa97d5d71dd0d1b19d6
[ "Apache-2.0" ]
6
2019-12-13T20:06:17.000Z
2021-02-12T16:21:04.000Z
""" Cog for the on_member_update event. Logs from this event include: Nickname changes in a guild (guild_member_nickname) Part of the Gabby Gums Discord Logger. """ import asyncio import logging from datetime import datetime from typing import TYPE_CHECKING, Optional, Dict, List, Union, Tuple, NamedTuple import ...
41.666667
178
0.638979
3871841f6a42fe830dbec6a348aea4af8cf206a8
16,039
py
Python
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_database_recommended_actions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_database_recommended_actions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/sql/azure-mgmt-sql/azure/mgmt/sql/operations/_database_recommended_actions_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
42.770667
251
0.690442
3871872b3c31a54c167ab4a4360540e4ada308a7
5,768
py
Python
clif/pybind11/lambdas.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/pybind11/lambdas.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
clif/pybind11/lambdas.py
timgates42/clif
b865c88beff70b31068889926d1184d5ddc0b9eb
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.826087
78
0.726942
38719b3a986dde520160daac46da3f0f66d67bb1
2,717
py
Python
Classifier/SVM.py
ausaafnabi/Machine-Learning-Projects
3a731cd63e387e1d47070566fba708ad4e1e3729
[ "MIT" ]
1
2020-01-18T07:47:36.000Z
2020-01-18T07:47:36.000Z
Classifier/SVM.py
ausaafnabi/Machine-Learning-Projects
3a731cd63e387e1d47070566fba708ad4e1e3729
[ "MIT" ]
1
2020-03-15T15:49:09.000Z
2020-03-15T15:49:09.000Z
Classifier/SVM.py
ausaafnabi/Machine-Learning-Projects
3a731cd63e387e1d47070566fba708ad4e1e3729
[ "MIT" ]
null
null
null
import pandas as pd import pylab as pl import numpy as np import os import scipy.optimize as opt from sklearn import preprocessing from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt DATASET_PATH = os.path.join("../","datasets") csv_file_path = os.path.join(DATASET_PATH,"cell_samples.c...
32.73494
122
0.746043
38719e7517951fec84704b9fc547ab609f2f3d7b
899
py
Python
t2t_csaky/scripts/remove.py
ricsinaruto/Chatbots
898cd7eeb9aa71cf1be0ad434695ca9beb3fd1ec
[ "MIT" ]
508
2017-08-19T21:29:16.000Z
2022-03-29T19:17:59.000Z
t2t_csaky/scripts/remove.py
jaytsien/Seq2seqChatbots
3dc6e037672b87183b237fa5c1390c81cfaecf0e
[ "MIT" ]
17
2018-06-26T10:33:05.000Z
2022-02-09T23:28:02.000Z
t2t_csaky/scripts/remove.py
jaytsien/Seq2seqChatbots
3dc6e037672b87183b237fa5c1390c81cfaecf0e
[ "MIT" ]
76
2017-11-10T05:53:43.000Z
2021-07-20T13:30:51.000Z
import argparse def main(): parser = argparse.ArgumentParser() parser.add_argument('-t', '--tokens', type=str, help='file containing the tokens ' 'to be removed from the input file') parser.add_argument('-o', '--output', type=str, help='name...
29
79
0.581758
3871a3c9fa31a7007d593be363fe02c10720faa9
233
py
Python
src/ackermann/__init__.py
baldulin/ackermann
e9cb7648c14610b249256a0531a533e3d2b7c70e
[ "MIT" ]
2
2021-05-17T07:27:02.000Z
2021-06-24T18:48:43.000Z
src/ackermann/__init__.py
baldulin/ackermann
e9cb7648c14610b249256a0531a533e3d2b7c70e
[ "MIT" ]
null
null
null
src/ackermann/__init__.py
baldulin/ackermann
e9cb7648c14610b249256a0531a533e3d2b7c70e
[ "MIT" ]
null
null
null
""" Ackerman runs commands after executing the right targets. """ from .command import Command from .config import (Config, async_init, async_run, config_unit, get_config, init, run) from .vars import ConfigVar
25.888889
76
0.708155
3871a6b8fc1e6430d018b12e8f3dc2d1ab8191b0
3,779
py
Python
pyjac/tests/test_chem_model.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
9
2018-10-08T07:49:20.000Z
2021-06-26T15:28:30.000Z
pyjac/tests/test_chem_model.py
stgeke/pyJac-v2
c2716a05df432efd8e5f6cc5cc3d46b72c24c019
[ "MIT" ]
13
2018-09-01T14:17:51.000Z
2021-07-30T16:19:33.000Z
pyjac/tests/test_chem_model.py
arghdos/spyJac
bdd6940c27681e3b19ee41efb31abd20a89d1be8
[ "MIT" ]
7
2018-09-08T11:57:34.000Z
2022-02-14T13:57:20.000Z
from pyjac.core.enum_types import falloff_form, reaction_type, reversible_type, \ thd_body_type from pyjac.tests import TestClass class SubTest(TestClass): def test_finalize(self): reacs = self.store.reacs for i, reac in enumerate(reacs): # for each reaction, test that we have the...
45.53012
81
0.525271
3871aaa43666c3d4d2140c97b09f9acf13f26b39
4,628
py
Python
qnarre/doc/patcher.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/patcher.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
qnarre/doc/patcher.py
quantapix/qnarre.com
f51d5945c20ef8182c4aa11f1b407d064c190c70
[ "MIT" ]
null
null
null
# Copyright 2019 Quantapix Authors. 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 l...
28.219512
79
0.513397
3871b64d062aff19abbb849785a98dfe95ffc4fd
2,513
py
Python
luafun/exporter/extract_logs.py
Delaunay/LuaFun
bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39
[ "BSD-3-Clause" ]
1
2021-02-06T06:42:29.000Z
2021-02-06T06:42:29.000Z
luafun/exporter/extract_logs.py
Delaunay/LuaFun
bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39
[ "BSD-3-Clause" ]
6
2021-04-08T21:46:06.000Z
2021-05-09T01:40:04.000Z
luafun/exporter/extract_logs.py
Delaunay/LuaFun
bd0efd8fc2b064d6bf58993e59a6ad4ac6713b39
[ "BSD-3-Clause" ]
null
null
null
import json from luafun.game.ipc_recv import IPC_RECV import luafun.game.constants as const from luafun.observation.minimap import new_origin, show_tensor, to_image import torch def read_logs(filename, img): # this tensor is 3.3Go s = img.shape[1] - 1 scale = s / const.SIZE[0] origin = const.ORIGIN ...
25.907216
115
0.581377
3871ca5f362b4aaf87e0f41f3eeef4cac2416193
406
py
Python
testmaster/dummyprograms/parseable_output.py
S-P-A-N-N-E-R-S/Testmaster
e0804b30a6f77c136eca890e692ea54195a31bb9
[ "BSD-3-Clause" ]
null
null
null
testmaster/dummyprograms/parseable_output.py
S-P-A-N-N-E-R-S/Testmaster
e0804b30a6f77c136eca890e692ea54195a31bb9
[ "BSD-3-Clause" ]
null
null
null
testmaster/dummyprograms/parseable_output.py
S-P-A-N-N-E-R-S/Testmaster
e0804b30a6f77c136eca890e692ea54195a31bb9
[ "BSD-3-Clause" ]
null
null
null
import json output = { "command": "algoid231223", # optional key "status": "Success", "runtime": 1234, "weight": 342, "actual_stretch": 1.523, "graph_information": { "nodes": 231, "edges": 1000, "directed": False, "weighted": True, "simple": True },...
21.368421
56
0.541872
3871de12602bc960f735283a147ff9bf8d27ca8f
16,140
py
Python
salt/cloud/clouds/dimensiondata.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2018-09-19T22:42:54.000Z
2018-09-19T22:42:54.000Z
salt/cloud/clouds/dimensiondata.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
null
null
null
salt/cloud/clouds/dimensiondata.py
silviud/salt
9d35ea66428a030d00ef1a2f3b93ecfe90be023c
[ "Apache-2.0" ]
1
2020-02-22T07:11:26.000Z
2020-02-22T07:11:26.000Z
# -*- coding: utf-8 -*- ''' Dimension Data Cloud Module =========================== This is a cloud module for the Dimension Data Cloud, using the existing Libcloud driver for Dimension Data. .. code-block:: yaml # Note: This example is for /etc/salt/cloud.providers # or any file in the # /etc/salt/cloud...
28.976661
114
0.612639
3871f34e1e667113269cd110d805864fdd489d55
2,635
py
Python
moler/observer_thread_wrapper.py
AdamKlekowski/moler
9d032bad402d9863685b2a8624320566512c14cc
[ "BSD-3-Clause" ]
2
2021-03-14T15:17:10.000Z
2021-03-15T07:12:12.000Z
moler/observer_thread_wrapper.py
Laymer/moler
2d7b89efdc2ca5e9975112b97934b396e24b5505
[ "BSD-3-Clause" ]
null
null
null
moler/observer_thread_wrapper.py
Laymer/moler
2d7b89efdc2ca5e9975112b97934b396e24b5505
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = 'Marcin Usielski' __copyright__ = 'Copyright (C) 2020, Nokia' __email__ = 'marcin.usielski@nokia.com' from threading import Thread from moler.config.loggers import TRACE try: import queue except ImportError: import Queue as queue # For python 2 class ObserverThreadWrap...
32.9375
116
0.588235
387230326279b8979675e54dd28ea62563ce5f81
10,320
py
Python
generated/python/gapic-google-cloud-pubsub-v1/docs/conf.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
18
2016-12-08T20:47:57.000Z
2022-01-29T19:36:04.000Z
generated/python/gapic-google-cloud-pubsub-v1/docs/conf.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
252
2016-09-21T20:51:36.000Z
2021-03-25T23:02:36.000Z
generated/python/gapic-google-cloud-pubsub-v1/docs/conf.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# -*- coding: utf-8 -*- # # gapic-google-cloud-pubsub-v1 documentation build configuration file # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; ...
33.076923
79
0.721318
387240ff3eabb662b149d995c044681aed9d7147
1,473
py
Python
tests/data/expected/main/main_openapi_nullable/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
891
2019-07-23T04:23:32.000Z
2022-03-31T13:36:33.000Z
tests/data/expected/main/main_openapi_nullable/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
663
2019-07-23T09:50:26.000Z
2022-03-29T01:56:55.000Z
tests/data/expected/main/main_openapi_nullable/output.py
adaamz/datamodel-code-generator
3b34573f35f8d420e4668a85047c757fd1da7754
[ "MIT" ]
108
2019-07-23T08:50:37.000Z
2022-03-09T10:50:22.000Z
# generated by datamodel-codegen: # filename: nullable.yaml # timestamp: 2019-07-26T00:00:00+00:00 from __future__ import annotations from typing import List, Optional from pydantic import AnyUrl, BaseModel, Field class Cursors(BaseModel): prev: str next: Optional[str] = 'last' index: float ta...
19.64
67
0.679566
387259710681d471d72d2832cbe38df691bf2b39
2,825
py
Python
projx/modules/nx_xtrct.py
davebshow/projx
c055c6db87c2b00eb222f984c8688fe4e4644881
[ "MIT" ]
8
2016-03-30T23:30:34.000Z
2021-09-21T08:09:51.000Z
projx/modules/nx_xtrct.py
davebshow/projx
c055c6db87c2b00eb222f984c8688fe4e4644881
[ "MIT" ]
null
null
null
projx/modules/nx_xtrct.py
davebshow/projx
c055c6db87c2b00eb222f984c8688fe4e4644881
[ "MIT" ]
1
2020-03-20T13:27:04.000Z
2020-03-20T13:27:04.000Z
# -*- coding: utf-8 -*- """ Extractor and stream generator for the NetworkX data source. """ from projx import nxprojx def nx_extractor(extractor_json, graph): """ Parses etl extractor JSON and produces all of the data necessary for transformation. :param extractor: JSON. :param graph: networkx.G...
33.630952
80
0.622655
387266268633e16f66a7cc4fcdfe36b74ba80615
7,217
py
Python
tests/test_python_searcher.py
proggga/hardest
234cb41115c30a756ee11ed7c5fa41c9979d3303
[ "MIT" ]
2
2018-02-03T13:43:25.000Z
2021-12-03T16:13:49.000Z
tests/test_python_searcher.py
proggga/hardest
234cb41115c30a756ee11ed7c5fa41c9979d3303
[ "MIT" ]
8
2017-08-16T08:34:59.000Z
2018-02-05T18:30:44.000Z
tests/test_python_searcher.py
proggga/hardest
234cb41115c30a756ee11ed7c5fa41c9979d3303
[ "MIT" ]
1
2018-02-05T18:26:20.000Z
2018-02-05T18:26:20.000Z
"""Test python_searcher class. Should search next python implementations: python anaconda ironpython jython micropython miniconda pypy pyston stackless """ import os import unittest # from functools import reduce # pylint: disable=redefined-builtin from typing import Dict # noqa...
35.377451
79
0.59831
387271dad04c685437fcf9a897e5ec18de10d822
4,816
py
Python
varecof_io/tests/test__write_input.py
sjklipp/interfaces
646673ac125c4b48e69a64025a36abd1b2ace696
[ "Apache-2.0" ]
null
null
null
varecof_io/tests/test__write_input.py
sjklipp/interfaces
646673ac125c4b48e69a64025a36abd1b2ace696
[ "Apache-2.0" ]
null
null
null
varecof_io/tests/test__write_input.py
sjklipp/interfaces
646673ac125c4b48e69a64025a36abd1b2ace696
[ "Apache-2.0" ]
null
null
null
""" Tests the varecof_io.writer functions """ import varecof_io def test__tst_writer(): """ tests varecof_io.writer.input_file.tst """ # Write the tst input string nsamp_max = 2000 nsamp_min = 500 flux_err = 5 pes_size = 1 ener_grid = [0, 20, 1.05, 179] amom_grid = [0, 3, 1.10,...
29.365854
68
0.613372
38727f40851a3bca37c42a62d4a91bd9f5345ef7
8,949
py
Python
Tools/SeeDot/seedot/compiler/converter/bonsai.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
1
2020-03-26T17:19:54.000Z
2020-03-26T17:19:54.000Z
Tools/SeeDot/seedot/compiler/converter/bonsai.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
2
2020-03-26T02:59:12.000Z
2020-04-23T19:09:00.000Z
Tools/SeeDot/seedot/compiler/converter/bonsai.py
krantikiran/EdgeML
e5c7bd7c56884ca61f6d54cedb0074553cfdc896
[ "MIT" ]
3
2020-03-25T18:45:39.000Z
2020-12-17T19:09:54.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. import numpy as np import math import os from seedot.compiler.converter.util import * # Class to read Bonsai model dumps and generate input files (C header file and the compiler input) # The two classes BonsaiFixed and Bons...
39.25
124
0.55928
38728382f2a4a718cca26b25a157c09bc904be86
7,070
py
Python
tests/activations/test_hooks.py
BonnerLab/model-tools
ac90617cd79bb70a308e34a1e834971498329fb0
[ "MIT" ]
null
null
null
tests/activations/test_hooks.py
BonnerLab/model-tools
ac90617cd79bb70a308e34a1e834971498329fb0
[ "MIT" ]
null
null
null
tests/activations/test_hooks.py
BonnerLab/model-tools
ac90617cd79bb70a308e34a1e834971498329fb0
[ "MIT" ]
null
null
null
from pathlib import Path import os; os.environ['RESULTCACHING_HOME'] = str(Path(__file__).parent / 'result_caching') import pytest from result_caching import get_function_identifier from model_tools.activations.hooks import LayerGlobalMaxPool2d, LayerRandomProjection, LayerPCA from tests.activations.test___init__ imp...
48.095238
113
0.652475
3872cc2343e99641e542e4c01ba9eb17df11e540
14,375
py
Python
asv/commands/compare.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
2
2019-08-18T11:05:25.000Z
2019-11-17T02:07:18.000Z
asv/commands/compare.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
3
2018-07-11T12:58:09.000Z
2018-08-21T19:57:09.000Z
asv/commands/compare.py
prisae/asv
57c386d7cc27f91ecd8daf1ad2e0413f2efdd39c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) import itertools from . import Command from ..benchmarks import Benchmarks from ..machine import iter_machine_files from...
34.890777
97
0.533704
38731e8e8e9ca1b6b70cb9b93857148e42e6ffd7
1,169
py
Python
examples/transient_examples/long_transient_search_MCMC.py
pepCV/PyFstat
b30919962e9730e24d514e9e9fe89289a002d428
[ "MIT" ]
2
2020-01-28T08:29:29.000Z
2020-01-28T13:29:24.000Z
examples/transient_examples/long_transient_search_MCMC.py
GregoryAshton/PyFstat
4f7a96d4aeb778b3b322b03897f7d65c0ccf1190
[ "MIT" ]
null
null
null
examples/transient_examples/long_transient_search_MCMC.py
GregoryAshton/PyFstat
4f7a96d4aeb778b3b322b03897f7d65c0ccf1190
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pyfstat F0 = 30.0 F1 = -1e-10 F2 = 0 Alpha = 0.5 Delta = 1 minStartTime = 1000000000 maxStartTime = minStartTime + 200 * 86400 Tspan = maxStartTime - minStartTime tref = minStartTime DeltaF0 = 6e-7 DeltaF1 = 1e-13 theta_prior = { "F0": {"type": "unif", "lower": F0 - DeltaF0 / 2.0, ...
21.254545
85
0.643285
38733327f1c5fe0b6b021bb44c08877c019645ad
2,966
py
Python
nova/api/openstack/compute/admin_password.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/admin_password.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
nova/api/openstack/compute/admin_password.py
badock/nova-tidb
4c4591f2cd887fdc22828e12f0c297c051bbd912
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # 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 t...
37.075
79
0.71207
38733f0d9b09d50e2183816ae4f84e0ef15cf7da
351
py
Python
glimix_core/_ep/__init__.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
7
2019-06-10T12:27:25.000Z
2021-07-23T16:36:04.000Z
glimix_core/_ep/__init__.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
12
2017-05-28T10:59:31.000Z
2021-05-17T20:11:00.000Z
glimix_core/_ep/__init__.py
Horta/limix-inference
1ba102fc544f8d307412d361b574da9d4c166f8e
[ "MIT" ]
5
2017-08-27T20:13:45.000Z
2022-02-14T06:33:14.000Z
""" Expectation Propagation ======================= Introduction ------------ This module implements the building-blocks for EP inference: EP parameter fitting, log of the marginal likelihood, and derivative of the log of the marginal likelihood. """ from .ep import EP from .linear_kernel import EPLinearKernel __al...
20.647059
73
0.703704
38737d0e0b8e643c8332487f876bd658b3ef0686
56
py
Python
drforest/ensemble/__init__.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
2
2021-09-22T12:15:43.000Z
2022-01-04T12:59:50.000Z
drforest/ensemble/__init__.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
drforest/ensemble/__init__.py
joshloyal/drforest
ab1e3f01cab36f15f1c37b82f71421cd025c901e
[ "MIT" ]
null
null
null
from .forest import * from .feature_importance import *
18.666667
33
0.785714
38739a0232c93523e0617c6132e7112a38b6b038
1,766
py
Python
scripts/artifacts/smanagerCrash.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/smanagerCrash.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
scripts/artifacts/smanagerCrash.py
JamieSharpe/ALEAPP
acb06736d772d75c9dc0fd58b9f2a1726e795fb4
[ "MIT" ]
null
null
null
from scripts.ilapfuncs import timeline, open_sqlite_db_readonly from scripts.plugin_base import ArtefactPlugin from scripts.artifact_report import ArtifactHtmlReport from scripts.ilapfuncs import logfunc, tsv from scripts import artifact_report class SManagerCrashPlugin(ArtefactPlugin): """ """ def __init...
32.109091
133
0.6359
3873c77dc81abec8937b79128cddbd49ef6d961d
1,455
py
Python
junseok/code/dkt/features.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
junseok/code/dkt/features.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
junseok/code/dkt/features.py
DongjaeJang/Deep-Knowledge-Tracing
aab72939a6cbdfc8b7f11bf074040b48771cbf3f
[ "Unlicense" ]
null
null
null
import os import pandas as pd ''' suffix of preprocessing - a: add row - c: add colmun - d: change column ''' def get_cache(colmun_name:str, data_dir='/opt/ml/input/data/train_dataset/features/', parse_dates=False, dtype=None): if parse_dates: return pd.read_csv(data_dir+colmun_name, dtype=dtype, parse...
30.957447
150
0.690722
3873ef454ae88c3f603b67a72ff8d412a3215a45
1,131
py
Python
cmd.py
wizzat/shell
059c97fd73bb2327526e6c659a7a4a55f73f16e0
[ "MIT" ]
null
null
null
cmd.py
wizzat/shell
059c97fd73bb2327526e6c659a7a4a55f73f16e0
[ "MIT" ]
null
null
null
cmd.py
wizzat/shell
059c97fd73bb2327526e6c659a7a4a55f73f16e0
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) import errno import subprocess import tempfile import threading subprocess_lock = threading.RLock() def run_cmd(cmdline, env = None, shell = False): """ Shamelessly stolen from my own repository (wizzat.py) Executes a com...
26.302326
86
0.572944
3873f4fb6d9d675f4cadc27c08f5b07ac33a6dc8
2,088
py
Python
pygenesys/make_config.py
arfc/pygenesys
2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4
[ "BSD-3-Clause" ]
1
2021-05-27T18:28:48.000Z
2021-05-27T18:28:48.000Z
pygenesys/make_config.py
arfc/pygenesys
2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4
[ "BSD-3-Clause" ]
34
2021-05-31T18:52:46.000Z
2022-03-07T17:57:13.000Z
pygenesys/make_config.py
arfc/pygenesys
2ac0c1fbe7c2dffd0135cf8c52d2c8b31cc31ab4
[ "BSD-3-Clause" ]
2
2021-05-27T18:30:46.000Z
2021-06-01T14:09:48.000Z
import jinja2 import os import glob curr_dir = os.path.dirname(__file__) default_template = curr_dir+'/config_template.txt' def load_template(input_path, input_fname): """ Returns a jinja2 template from file. Parameters --------- input_path : string Path to input template input_fname: ...
28.216216
66
0.616379
3873f9f0201daec22903f56cca696d471d5088fa
1,802
py
Python
.leetcode/77.combinations.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/77.combinations.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
.leetcode/77.combinations.py
KuiyuanFu/PythonLeetCode
8962df2fa838eb7ae48fa59de272ba55a89756d8
[ "MIT" ]
null
null
null
# @lc app=leetcode id=77 lang=python3 # # [77] Combinations # # https://leetcode.com/problems/combinations/description/ # # algorithms # Medium (58.10%) # Likes: 2202 # Dislikes: 82 # Total Accepted: 360.2K # Total Submissions: 619.6K # Testcase Example: '4\n2' # # Given two integers n and k, return all possible...
16.381818
79
0.536626
387400eba5c1a3d41b4740670ba7c340161c4b73
3,481
py
Python
datastructures/dsu/dsu_template.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
10
2020-09-21T22:23:09.000Z
2022-01-25T16:58:44.000Z
datastructures/dsu/dsu_template.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
datastructures/dsu/dsu_template.py
hariharanragothaman/pymaster
b3d033b4d5c75c69f587c94d9d12cd4a349a6a69
[ "Apache-2.0" ]
null
null
null
""" This data-structure can help us group nodes into different sets. Through this, we can eventually 1. Find number of connected components. 2. How many sets of connected components & find the connected components 3. Determine if there is a cycle in the graph Future applications 1. Path-compression etc. - Makes sense...
28.300813
108
0.578282
387420b7be7600830c4a395231c34bb561970b53
3,543
py
Python
Tools/Scripts/webkitpy/common/system/path_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Tools/Scripts/webkitpy/common/system/path_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Tools/Scripts/webkitpy/common/system/path_unittest.py
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
# Copyright (C) 2010 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
43.207317
101
0.703641
3874315fb888703e6ba8ffcd0a771299cdaa1094
310
py
Python
pensamiento-probabilistico/sample.py
cristian-rincon/escuela-datascience
a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb
[ "MIT" ]
null
null
null
pensamiento-probabilistico/sample.py
cristian-rincon/escuela-datascience
a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb
[ "MIT" ]
32
2021-02-12T02:48:30.000Z
2022-03-13T01:56:19.000Z
pensamiento-probabilistico/sample.py
cristian-rincon/escuela-datascience
a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb
[ "MIT" ]
null
null
null
def find_it(seq): counter = [{x: seq.count(x)} for x in set(seq)] for n in counter: for i, j in n.items(): if j % 2 != 0: return i if __name__ == "__main__": test_list = [20, 1, -1, 2, -2, 3, 3, 5, 5, 1, 2, 4, 20, 4, -1, -2, 5] # print(find_it(test_list))
25.833333
73
0.474194
3874344037730fa336beee56748ec78e01ad3da2
6,137
py
Python
dayliopy/clean_csv.py
anthx/daylio-csv-parser
e0f7e4f489b8b3177990743fade5e1b194dd35a9
[ "MIT" ]
null
null
null
dayliopy/clean_csv.py
anthx/daylio-csv-parser
e0f7e4f489b8b3177990743fade5e1b194dd35a9
[ "MIT" ]
null
null
null
dayliopy/clean_csv.py
anthx/daylio-csv-parser
e0f7e4f489b8b3177990743fade5e1b194dd35a9
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Clean CSV application file. Read in input CSV, clean it and write out to a new CSV. """ import codecs import csv import datetime from .lib.config import AppConf conf = AppConf() DT_12H = r"%Y-%m-%d %I:%M %p" DT_24H = r"%Y-%m-%d %H:%M" CSV_OUT_FIELDS = [ "timestamp", "datetime", ...
28.281106
86
0.657813
387447ba6519e6bd4366d795910513f8627568f3
1,309
py
Python
paste/renderers.py
setsuna-/pasteque
ca38d1aa17aa768bb8112fe813b231d28a25a166
[ "MIT" ]
null
null
null
paste/renderers.py
setsuna-/pasteque
ca38d1aa17aa768bb8112fe813b231d28a25a166
[ "MIT" ]
null
null
null
paste/renderers.py
setsuna-/pasteque
ca38d1aa17aa768bb8112fe813b231d28a25a166
[ "MIT" ]
2
2018-05-06T22:17:09.000Z
2019-09-17T15:13:28.000Z
from django.template import RequestContext from django.template.loader import get_template from pygments import highlight from pygments.lexers import get_lexer_by_name from pygments.formatters import get_formatter_by_name from paste.tools import cache_exists, cache_fetch, cache_store def render_pygments(request, past...
35.378378
72
0.734912
38747db650c0d76bdb893cd7a11747ff39f28fb5
12,055
py
Python
nautobot_device_onboarding/netdev_keeper.py
jathanism/nautobot-plugin-device-onboarding
39427f4c0fbdf46cfcbfc853590981287d550e66
[ "Apache-2.0" ]
null
null
null
nautobot_device_onboarding/netdev_keeper.py
jathanism/nautobot-plugin-device-onboarding
39427f4c0fbdf46cfcbfc853590981287d550e66
[ "Apache-2.0" ]
null
null
null
nautobot_device_onboarding/netdev_keeper.py
jathanism/nautobot-plugin-device-onboarding
39427f4c0fbdf46cfcbfc853590981287d550e66
[ "Apache-2.0" ]
null
null
null
"""NetDev Keeper. (c) 2020-2021 Network To Code 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...
39.012945
176
0.654666
3874966628e52d0b653adc556466e05834d6f97e
1,058
py
Python
tests/test_preprocessing.py
RUB-SysSec/WaveFake
d52d51b9ccdb0cec3f484e84b228791f06b955be
[ "MIT" ]
20
2021-11-04T04:29:04.000Z
2022-03-26T11:36:50.000Z
tests/test_preprocessing.py
RUB-SysSec/WaveFake
d52d51b9ccdb0cec3f484e84b228791f06b955be
[ "MIT" ]
null
null
null
tests/test_preprocessing.py
RUB-SysSec/WaveFake
d52d51b9ccdb0cec3f484e84b228791f06b955be
[ "MIT" ]
3
2021-11-06T13:22:40.000Z
2022-01-30T18:07:20.000Z
import unittest import torch from dfadetect.datasets import TransformDataset, double_delta from dfadetect.lfcc import LFCC from tests.utils import load_real class PreprocessingTest(unittest.TestCase): def test_transformation_dataset(self): lfcc = TransformDataset(dataset=load_real(), ...
31.117647
76
0.647448
38749834186758ff12de76aeb8145156a41844b2
93
py
Python
djangopreviewcard/mediasourcetype.py
hnjm/preview-card
46f5ef7422aac896b3a98e8b07f6eee8a2ba8991
[ "MIT" ]
1
2019-09-19T03:36:44.000Z
2019-09-19T03:36:44.000Z
djangopreviewcard/mediasourcetype.py
hnjm/preview-card
46f5ef7422aac896b3a98e8b07f6eee8a2ba8991
[ "MIT" ]
null
null
null
djangopreviewcard/mediasourcetype.py
hnjm/preview-card
46f5ef7422aac896b3a98e8b07f6eee8a2ba8991
[ "MIT" ]
null
null
null
import enum class MediaSourceType(enum.Enum): NONE = 0 ARTICLE = 1 YOUTUBE = 2
11.625
33
0.634409
3874deff8d66767b854f359f38169ae8d046d81e
2,648
py
Python
ez_trans/compress.py
liuyuns/ezsync
781b561f4416f64ba34c29b569cd07057fde1eb7
[ "Apache-2.0" ]
3
2015-12-14T01:38:00.000Z
2018-10-08T03:54:25.000Z
ez_trans/compress.py
liuyuns/ezsync
781b561f4416f64ba34c29b569cd07057fde1eb7
[ "Apache-2.0" ]
null
null
null
ez_trans/compress.py
liuyuns/ezsync
781b561f4416f64ba34c29b569cd07057fde1eb7
[ "Apache-2.0" ]
null
null
null
import os, sys, subprocess, traceback, glob from ez_trans import logger class compresser(object): log = logger.SimpleLogger() from ez_trans.config import config def __init__(self, config, log=None): self._config = config if log: self.log = log pass def compress(se...
29.098901
103
0.579305
3874fa19d5ab907a95861fea830f3a024cd3d270
9,279
py
Python
ch11/code/web_analysis/api/views.py
MatthiasWunsch/python-geospatial-analysis-cookbook
88946ca6242283c9110488c64ac44057a53e2831
[ "MIT" ]
98
2015-06-14T08:42:21.000Z
2022-03-09T16:48:43.000Z
ch11/code/web_analysis/api/views.py
MatthiasWunsch/python-geospatial-analysis-cookbook
88946ca6242283c9110488c64ac44057a53e2831
[ "MIT" ]
6
2015-12-23T09:56:33.000Z
2022-02-13T20:06:05.000Z
ch11/code/web_analysis/api/views.py
MatthiasWunsch/python-geospatial-analysis-cookbook
88946ca6242283c9110488c64ac44057a53e2831
[ "MIT" ]
43
2015-08-24T13:13:32.000Z
2022-03-14T20:55:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import traceback from django.http import HttpResponseNotFound from rest_framework.decorators import api_view from rest_framework.response import Response from geojson import loads, Feature, FeatureCollection import logging logger = logging.getLogger(__name__) ...
33.498195
109
0.63024
3875062fb49d94c553ec796bb8e3115e9da3778a
4,576
py
Python
superset/views/datasource.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
11
2018-01-16T16:52:12.000Z
2020-06-12T12:17:03.000Z
superset/views/datasource.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
67
2017-11-06T21:31:14.000Z
2020-11-19T03:52:18.000Z
superset/views/datasource.py
visshaljagtap/incubator-superset
c9c18011f3cbee144ef8f76568449a4b83325773
[ "Apache-2.0" ]
4
2018-01-31T00:11:50.000Z
2019-12-26T04:11:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
38.779661
88
0.660621
38753c3bfc02eb85e386ffd3afb738605556beb0
558
py
Python
natural_selection/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
natural_selection/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
1
2021-02-26T10:10:43.000Z
2021-02-26T10:10:43.000Z
natural_selection/__init__.py
Zipfian-Science/natural-selection
5bf04142a73f39a83e86ad0eb53ba0fecb365864
[ "Apache-2.0" ]
null
null
null
__version__ = '0.2.17' def get_random_string(length : int = 8, include_numeric=False) -> str: """ Generate a random string with a given length. Used mainly for password generation. Args: length (int): Length to generate. include_numeric (bool): Include numbers? Returns: str: Ra...
29.368421
86
0.66129
38754240717d43db19c9416192ef675d5ea6d6ab
37,456
py
Python
Helpers/86Scratch/scratch_command_handlers.py
Sayter99/86Scratch
b17bad3a9eccbf5d46e2a90470889c0eb4d5078a
[ "MIT" ]
null
null
null
Helpers/86Scratch/scratch_command_handlers.py
Sayter99/86Scratch
b17bad3a9eccbf5d46e2a90470889c0eb4d5078a
[ "MIT" ]
null
null
null
Helpers/86Scratch/scratch_command_handlers.py
Sayter99/86Scratch
b17bad3a9eccbf5d46e2a90470889c0eb4d5078a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Nov 25 13:17:15 2013 @author: Alan Yorinks Copyright (c) 2013-14 Alan Yorinks All right reserved. @co-author: Sjoerd Dirk Meijer, fromScratchEd.nl (language support) This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser ...
44.274232
118
0.604816
38754cc1058b73c252a6fec7e7853b01a6f39f83
4,103
py
Python
kmip/core/config_helper.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
kmip/core/config_helper.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
kmip/core/config_helper.py
csapuntz/PyKMIP
4b1373b5f2e9e37220b9c3bed21d70f300a2860b
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014 The Johns Hopkins University/Applied Physics Laboratory # 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/LICEN...
41.03
79
0.631733
3875811d20c1f8256679d34f5d9a4f079dc5dd65
3,129
py
Python
fpl/h2h_league.py
taoprajjwal/fpl
aa3d762429f59543aac36b53723746049dc8b210
[ "MIT" ]
null
null
null
fpl/h2h_league.py
taoprajjwal/fpl
aa3d762429f59543aac36b53723746049dc8b210
[ "MIT" ]
null
null
null
fpl/h2h_league.py
taoprajjwal/fpl
aa3d762429f59543aac36b53723746049dc8b210
[ "MIT" ]
null
null
null
import itertools import requests API_BASE_URL = "https://fantasy.premierleague.com/drf/" class H2HLeague(object): """ A class representing a h2h league in the Fantasy Premier League. """ def __init__(self, league_id): self.id = league_id self._information = self._get_information() ...
32.59375
79
0.622563
3875909236ca6e945b29b8a76000b9ea7e438c04
6,318
py
Python
python/app/plugins/http/Apache Flink/Upload_Jar.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/plugins/http/Apache Flink/Upload_Jar.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/plugins/http/Apache Flink/Upload_Jar.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
#!/usr/bin/env python3 import re import time import json import base64 from app.lib.utils.request import request from app.lib.utils.common import get_capta, get_useragent class Upload_Jar_BaseVerify: def __init__(self, url): self.info = { 'name': '任意Jar包上传导致远程代码执行漏洞', 'description'...
39.987342
1,915
0.66081
3875b94ecaebf9d578a20269b1aa5cb4b7189661
2,772
py
Python
platformio/builder/tools/piomaxlen.py
MitchBradley/platformio-core
c94b018afccb1c00f83056bca322f11303a31740
[ "Apache-2.0" ]
null
null
null
platformio/builder/tools/piomaxlen.py
MitchBradley/platformio-core
c94b018afccb1c00f83056bca322f11303a31740
[ "Apache-2.0" ]
null
null
null
platformio/builder/tools/piomaxlen.py
MitchBradley/platformio-core
c94b018afccb1c00f83056bca322f11303a31740
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2014-present PlatformIO <contact@platformio.org> # # 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 appli...
29.489362
76
0.650072
3875c23b4ce0c5a5c28e0a7bcd21c9a9fc2dc8bf
3,820
py
Python
homeassistant/bootstrap.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
1
2017-03-01T10:57:20.000Z
2017-03-01T10:57:20.000Z
homeassistant/bootstrap.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
null
null
null
homeassistant/bootstrap.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
null
null
null
""" homeassistant.bootstrap ~~~~~~~~~~~~~~~~~~~~~~~ Provides methods to bootstrap a home assistant instance. Each method will return a tuple (bus, statemachine). After bootstrapping you can add your own components or start by calling homeassistant.start_home_assistant(bus) """ import os import configparser import lo...
33.217391
78
0.662827
3875ed05e4261b42f24a835aea4e37681fd1bc7e
3,432
py
Python
ccoin/exceptions.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
3
2018-05-01T09:13:00.000Z
2018-06-26T03:01:07.000Z
ccoin/exceptions.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
null
null
null
ccoin/exceptions.py
Rustem/toychain
dafc445e66af8a18c4b007b20b15f9612b825529
[ "MIT" ]
null
null
null
class BaseException(Exception): pass class NodeCannotBeStartedException(Exception): def __init__(self, nodeid): self.node_id = nodeid class AccountDoesNotExist(NodeCannotBeStartedException): def __str__(self): return "Account does not exists for the user with id=%s." % self.node_id c...
24.869565
98
0.71824
3875eecad6beaecd9644a28d3f51cf56c71d81d0
781
py
Python
python/lib/dp/lis.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
python/lib/dp/lis.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
python/lib/dp/lis.py
KATO-Hiro/atcoder-1
c2cbfcfd5c3d46ac9810ba330a37d437aa2839c2
[ "MIT" ]
null
null
null
import sys from bisect import bisect_left input = sys.stdin.readline def binary_search(L, a, high): ng = -1 ok = high while ok - ng > 1: mid = (ok + ng) // 2 if a <= L[mid]: ok = mid else: ng = mid return ok def main(): N = int(input()) A = [0...
13.946429
66
0.464789
3875fd6f71f70ee5b6ff8ad81b42b5516017ee1e
229
py
Python
project/oauth/urls.py
yumike/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
4
2015-06-22T13:30:00.000Z
2020-03-19T07:17:12.000Z
project/oauth/urls.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
3
2020-02-12T01:17:37.000Z
2021-06-10T20:37:44.000Z
project/oauth/urls.py
netoxico/djangolint
249271739da6fb630587d83629ced5de10856f42
[ "0BSD" ]
1
2015-09-18T10:45:45.000Z
2015-09-18T10:45:45.000Z
from django.conf.urls.defaults import url, patterns from .views import callback, logout urlpatterns = patterns('', url(r'^callback/$', callback, name='oauth_callback'), url(r'^logout/$', logout, name='oauth_logout'), )
25.444444
57
0.703057
3875fdd51584d2fa5a8c340762653eefb4d3b400
2,886
py
Python
azkaban_cli/tests/test_azkaban/test_unschedule.py
destag/azkaban-cli
845e23c2858684024fd0fd47c2201c1ee6f69952
[ "MIT" ]
null
null
null
azkaban_cli/tests/test_azkaban/test_unschedule.py
destag/azkaban-cli
845e23c2858684024fd0fd47c2201c1ee6f69952
[ "MIT" ]
null
null
null
azkaban_cli/tests/test_azkaban/test_unschedule.py
destag/azkaban-cli
845e23c2858684024fd0fd47c2201c1ee6f69952
[ "MIT" ]
null
null
null
import os from unittest import TestCase from unittest.mock import patch, ANY import responses import azkaban_cli.azkaban from azkaban_cli.exceptions import UnscheduleError, SessionError class AzkabanUnscheduleTest(TestCase): def setUp(self): """ Creates an Azkaban instance and set a logged sessi...
30.702128
136
0.635482
38761d532334056a9805f3d3ca70dfdb93a9a034
6,587
py
Python
topo/sheet/slissom.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
40
2015-02-05T14:53:10.000Z
2020-10-12T06:26:23.000Z
topo/sheet/slissom.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
95
2015-01-01T16:14:20.000Z
2022-02-11T22:50:27.000Z
topo/sheet/slissom.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
22
2015-05-03T10:24:17.000Z
2019-11-15T06:34:31.000Z
""" The SLISSOM class. """ from math import exp import numpy as np import param from topo.command.pylabplot import vectorplot, matrixplot from topo.sheet import SettlingCFSheet from topo.transferfn import PiecewiseLinear activity_type = np.float32 class SLISSOM(SettlingCFSheet): """ A Sheet class imple...
33.953608
113
0.635191
387628cb55eac483e6e4d4cf6f0bc16db94980a6
1,798
py
Python
esky/tests/eskytester/script3.py
omnivore/esky
39e77deacf3e48d4d5d7a46701d9ef0f5593820d
[ "BSD-3-Clause" ]
1
2019-07-11T14:50:07.000Z
2019-07-11T14:50:07.000Z
esky/tests/eskytester/script3.py
omnivore/esky
39e77deacf3e48d4d5d7a46701d9ef0f5593820d
[ "BSD-3-Clause" ]
null
null
null
esky/tests/eskytester/script3.py
omnivore/esky
39e77deacf3e48d4d5d7a46701d9ef0f5593820d
[ "BSD-3-Clause" ]
null
null
null
# Third entry point for testing an esky install. import os import sys import time import esky import esky.util import esky.tests platform = esky.util.get_platform() # Test that the frozen app is actually working import eskytester eskytester.yes_i_am_working() eskytester.yes_my_deps_are_working() eskytester.yes_my...
32.107143
86
0.730812
38763255db50067a3b32f5686e58e6ad0611b59e
982
py
Python
pylot/debug/depth_camera_visualizer.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
pylot/debug/depth_camera_visualizer.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
pylot/debug/depth_camera_visualizer.py
victorsun123/pylot
43df8de4b4ed562370a5512093f6d9b486699567
[ "Apache-2.0" ]
null
null
null
import cv2 from erdos.op import Op from erdos.utils import setup_logging from pylot.utils import add_timestamp, is_depth_camera_stream class DepthCameraVisualizer(Op): """ Subscribes to depth camera streams, and visualizes frames.""" def __init__(self, name, flags, log_file_name=None): super(DepthCa...
30.6875
72
0.702648
3876604fe869fb72f8157794f9d5200c65ced4f5
3,980
py
Python
alipay/aop/api/request/AlipayIserviceCcmSwTreePublishRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayIserviceCcmSwTreePublishRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayIserviceCcmSwTreePublishRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayIserviceCcmSwTreePublishModel import AlipayIserviceCcmSwTreePublishModel class AlipayIserviceCcmSwTreePublishRequest(object): ...
27.448276
148
0.645226
38766208bae509c71affef5f8f4bde7b15023ec0
491
py
Python
office365/graph/directory/groupProfile.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/graph/directory/groupProfile.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
office365/graph/directory/groupProfile.py
stardust85/Office365-REST-Python-Client
cd369c607c7d137a000734e9c5e8f03ae3e3c603
[ "MIT" ]
null
null
null
from office365.runtime.client_value_object import ClientValueObject class GroupProfile(ClientValueObject): def __init__(self, name): """ :param str name: Group name """ super(GroupProfile, self).__init__() self.mailNickname = name self.displayName = name se...
25.842105
67
0.613035
38766583ba93a564a660c74cae87bca34a33a30b
609
py
Python
tests/structures/test_keypoints.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/structures/test_keypoints.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/structures/test_keypoints.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import unittest import torch from detectron.structures.keypoints import Keypoints class TestKeypoints(unittest.TestCase): def test_cat_keypoints(self): keypoints1 = Keypoints(torch.rand(2, 21, 3)) keypoints2 = Keypoints(torch.rand(4, 21, 3)) ...
30.45
88
0.70936
387671872964bdaa6b9f6659a7b3658040a611c7
10,848
py
Python
app/utils/constants.py
brotskydotcom/public-services.py
5cb0b57cb8f1c9d5b3e907cf27a6a560cbfe0020
[ "MIT" ]
null
null
null
app/utils/constants.py
brotskydotcom/public-services.py
5cb0b57cb8f1c9d5b3e907cf27a6a560cbfe0020
[ "MIT" ]
46
2020-07-19T05:02:36.000Z
2020-12-13T18:32:47.000Z
app/utils/constants.py
brotskydotcom/public-services.py
5cb0b57cb8f1c9d5b3e907cf27a6a560cbfe0020
[ "MIT" ]
null
null
null
# MIT License # # # 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, distribute, sublice...
39.162455
84
0.630254
3876730f3c74dbb435ab2e809471ac6e56348d68
2,807
py
Python
aviation_weather/components/weathergroup.py
StephenOrJames/aviation-weather
35594cc1ba448acdea9123380cc47ac96d2107c8
[ "MIT" ]
2
2017-03-14T23:28:28.000Z
2020-01-10T23:04:30.000Z
aviation_weather/components/weathergroup.py
aviationweather/aviation_weather
35594cc1ba448acdea9123380cc47ac96d2107c8
[ "MIT" ]
null
null
null
aviation_weather/components/weathergroup.py
aviationweather/aviation_weather
35594cc1ba448acdea9123380cc47ac96d2107c8
[ "MIT" ]
null
null
null
import re from aviation_weather.components import Component from aviation_weather.exceptions import WeatherGroupDecodeError class WeatherGroup(Component): # TODO: see FMH-1 12.6.8 for specific formatting instructions INTENSITIES = { "-": "light", "": "moderate", "+": "heavy", ...
29.861702
115
0.496972
38767b1495b488fdc1c982cd537e73d3a7ea7e74
348
py
Python
aurora/bag_transfer/lib/view_helpers.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
19
2018-05-09T21:00:24.000Z
2021-03-11T23:09:03.000Z
aurora/bag_transfer/lib/view_helpers.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
339
2017-10-12T16:05:22.000Z
2022-02-23T20:48:41.000Z
aurora/bag_transfer/lib/view_helpers.py
DLynch-Technology/aurora
92f4b61ae0cdaf6f7c5a35bbdfb68e5ee91f8c96
[ "MIT" ]
3
2019-11-05T16:30:07.000Z
2021-08-16T15:50:34.000Z
def file_size(num): for unit in ["B", "KB", "MB", "GB"]: if abs(num) < 1024.0: return "%3.1f %s" % (num, unit) num /= 1024.0 def label_class(status): label_class = "green" if status in [10, 20]: label_class = "yellow" elif status in [30, 60]: label_class = "...
23.2
43
0.525862
387687dcd0cef5448b9f050dfaca86b4c0abac31
4,607
py
Python
tensorflow_probability/python/distributions/exponential.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/exponential.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/exponential.py
timudk/probability
8bdbf1c0b0f801edaf342f4ffc9caf1cfd6f1103
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
33.384058
79
0.67723
3876883aec362163c843fceb7cc78bc6173820e2
4,765
py
Python
daoliproxy/openstack/common/loopingcall.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
daoliproxy/openstack/common/loopingcall.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
daoliproxy/openstack/common/loopingcall.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # Copyright 2011 Justin Santa Barbara # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance wi...
32.195946
79
0.581742
38769db4b813f99b3274af1583e2f8144bfaecef
2,340
py
Python
tests/test_il_labor.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
tests/test_il_labor.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
tests/test_il_labor.py
danielahuang/city-scrapers
711d1995f59100793e771068a6f5d9149e773412
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import date, time import pytest from tests.utils import file_response from city_scrapers.constants import BOARD, PASSED from city_scrapers.spiders.il_labor import IlLaborSpider test_response = file_response( 'files/il_labor.html', url='https://www.illinois.gov/ilrb/meetings/...
28.536585
280
0.697009
38769de4a6ee6df86d777b96cf4eda8cf6206479
4,307
py
Python
driver_station/src/driver_station/widgets/joystick_indicator.py
uwreact/frc_control
0efd7f3da8f42c3d8b8e7180631ec4a749b32555
[ "BSD-3-Clause" ]
9
2018-11-26T20:12:47.000Z
2020-03-08T03:30:03.000Z
driver_station/src/driver_station/widgets/joystick_indicator.py
uwreact/frc_control
0efd7f3da8f42c3d8b8e7180631ec4a749b32555
[ "BSD-3-Clause" ]
49
2018-10-18T13:44:59.000Z
2019-08-01T15:18:42.000Z
driver_station/src/driver_station/widgets/joystick_indicator.py
uwreact/frc_control
0efd7f3da8f42c3d8b8e7180631ec4a749b32555
[ "BSD-3-Clause" ]
3
2018-10-18T17:35:54.000Z
2019-02-10T19:43:55.000Z
############################################################################## # Copyright (C) 2019, UW REACT # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above co...
39.513761
78
0.657534
3876a83f7988f0efa4b9332d39d665bc7fdd9a35
1,631
py
Python
python/ray/rllib/setup-rllib-dev.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
2
2019-10-08T13:31:08.000Z
2019-10-22T18:34:52.000Z
python/ray/rllib/setup-rllib-dev.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
1
2018-12-26T01:09:50.000Z
2018-12-26T01:09:50.000Z
python/ray/rllib/setup-rllib-dev.py
cumttang/ray
eb1e5fa2cf26233701ccbda3eb8a301ecd418d8c
[ "Apache-2.0" ]
6
2019-03-12T05:37:35.000Z
2020-03-09T12:25:17.000Z
#!/usr/bin/env python """This script allows you to develop RLlib without needing to compile Ray.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import click import os import subprocess import ray if __name__ == "__main__": rllib_home = os.path.abs...
41.820513
78
0.665849
3876b4eabba6ab24515b748606a6f6e41fb6e937
4,626
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/id.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/id.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/id.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "id", "date_order": "DMY", "january": [ "januari", "jan" ], "february": [ "februari", "feb" ], "march": [ "maret", "mar" ], "april": [ "april", "apr" ], "may": [ "...
17.456604
38
0.266105
3876bc964219914796316f7ab1722ec248c2c203
1,403
py
Python
tensorflow/python/ops/sdca_ops.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
65
2016-09-26T01:30:40.000Z
2021-08-11T17:00:41.000Z
tensorflow/python/ops/sdca_ops.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
5
2017-02-21T08:37:52.000Z
2017-03-29T05:46:05.000Z
tensorflow/python/ops/sdca_ops.py
gnoses/TensorFlow
63a21e054007d86269ed1ad0145ebce04ee57a81
[ "Apache-2.0" ]
11
2017-09-10T16:22:21.000Z
2021-08-09T09:24:50.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed unde_sdca_opsr 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 b...
31.177778
80
0.750535
3876f53656f45bd76e5b6678a2374688254a8c4d
4,672
py
Python
scripts/mgdb2csv.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
3
2016-04-04T22:54:14.000Z
2017-04-01T09:37:54.000Z
scripts/mgdb2csv.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
scripts/mgdb2csv.py
CGATOxford/proj029
f0a8ea63b4f086e673aa3bf8b7d3b9749261b525
[ "BSD-3-Clause" ]
null
null
null
''' mgdb2csv.py ============ :Author: Nick Ilott :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- mgdg stands for metagenome database. This script therefore outputs data from a central database created by pipeline_metagenomeassembly.py of vatious kinds. Usage ----- Example:: python mgdb2csv.py -d <d...
33.371429
113
0.58369
3876fafec5c923825ddcacf5366082a070711b9f
24,263
py
Python
grit/format/policy_templates/writers/doc_writer.py
MIPS/external-chromium_org-tools-grit
646f47f4f3b103f878faabfa7f8a4cd2860822a5
[ "BSD-2-Clause" ]
1
2017-08-06T01:12:23.000Z
2017-08-06T01:12:23.000Z
tools/grit/grit/format/policy_templates/writers/doc_writer.py
ufologist/qx
a2d64a337ecb2cd5752bd848afb2315c93e0fabe
[ "MIT" ]
null
null
null
tools/grit/grit/format/policy_templates/writers/doc_writer.py
ufologist/qx
a2d64a337ecb2cd5752bd848afb2315c93e0fabe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from xml.dom import minidom from grit import lazy_re from grit.format.policy_templates.writers import xml_formatted_writer def G...
37.042748
79
0.631909
3876fc479af3c3e9684d339194f8042b2a9ffbea
607
py
Python
core/migrations/0035_facettype.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
core/migrations/0035_facettype.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
10
2021-04-06T18:17:44.000Z
2022-03-01T12:21:40.000Z
core/migrations/0035_facettype.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.2 on 2019-08-07 10:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0034_projectpage_full_title'), ] operations = [ migrations.CreateModel( name='FacetType', fields=[ ...
25.291667
114
0.546952
387714967ca5b518f1d7b7da887f434a7d3a654c
1,855
py
Python
wordlist/tests/test_request.py
robsonpiere/word-list
4bf5be40042daa5d1b7d59a2c1da67af9349ec9e
[ "MIT" ]
null
null
null
wordlist/tests/test_request.py
robsonpiere/word-list
4bf5be40042daa5d1b7d59a2c1da67af9349ec9e
[ "MIT" ]
3
2020-10-25T12:26:57.000Z
2020-10-26T00:04:53.000Z
wordlist/tests/test_request.py
robsonpiere/word-list
4bf5be40042daa5d1b7d59a2c1da67af9349ec9e
[ "MIT" ]
null
null
null
import unittest from json import dumps, loads from wordlist.app import create_app from flask import Response class CompleteRequestTestCase(unittest.TestCase): body_example = { "textos": [ "Atirei o pau no gato", "Mas o gato não morreu", "Dona Chica admirou-se", ...
37.857143
113
0.651213