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
03edcb3d3d0d6b57fa45c50a30e74a0299a42af5
5,082
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_ip_configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_ip_configuration.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-compute/azure/mgmt/compute/v2019_03_01/models/virtual_machine_scale_set_ip_configuration.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2019-06-17T22:18:23.000Z
2019-06-17T22:18:23.000Z
# 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 ...
56.466667
156
0.724518
03edeb53e240dd3835099bea4d3779c1b6debcc3
3,992
py
Python
hicpack/scripts/TADCalling.py
Naghipourfar/HiC-Pack
8c1f77a124f7ad9cc3a49c72ca501891737f341e
[ "MIT" ]
1
2019-12-03T19:21:21.000Z
2019-12-03T19:21:21.000Z
hicpack/scripts/TADCalling.py
Naghipourfar/HiC-Pack
8c1f77a124f7ad9cc3a49c72ca501891737f341e
[ "MIT" ]
null
null
null
hicpack/scripts/TADCalling.py
Naghipourfar/HiC-Pack
8c1f77a124f7ad9cc3a49c72ca501891737f341e
[ "MIT" ]
null
null
null
""" Created by Mohsen Naghipourfar on 2019-01-25. Email : mn7697np@gmail.com or naghipourfar@ce.sharif.edu Website: http://ce.sharif.edu/~naghipourfar Github: https://github.com/naghipourfar Skype: mn7697np """ import argparse import os import subprocess control_file = """S = 50 # max. siz...
49.283951
786
0.647044
03ee008536975e0c60ab38e10ed9df49dc8ccb3c
2,875
py
Python
Sensors/RFID_Sensor/MFRC522-python/mfrc522/SimpleMFRC522.py
DerZwergGimli/SysArchitecturProject
942142e10d05da4d9bfaaa37ff9fdd1cb8715135
[ "MIT" ]
1
2019-04-24T13:06:19.000Z
2019-04-24T13:06:19.000Z
Sensors/RFID_Sensor/MFRC522-python/mfrc522/SimpleMFRC522.py
DerZwergGimli/SysArchitecturProject
942142e10d05da4d9bfaaa37ff9fdd1cb8715135
[ "MIT" ]
5
2020-03-04T23:02:59.000Z
2021-12-09T21:21:15.000Z
Sensors/RFID_Sensor/MFRC522-python/mfrc522/SimpleMFRC522.py
DerZwergGimli/SysArchitecturProject
942142e10d05da4d9bfaaa37ff9fdd1cb8715135
[ "MIT" ]
null
null
null
# Code by Simon Monk https://github.com/simonmonk/ from . import MFRC522 import RPi.GPIO as GPIO class SimpleMFRC522: READER = None KEY = [0xFF,0xFF,0xFF,0xFF,0xFF,0xFF] BLOCK_ADDRS = [8, 9, 10] def __init__(self): self.READER = MFRC522() def read(self): id, text = self.read_no_block()...
30.585106
88
0.614609
03ee07a43e282fd2cc5324522480125863b6288f
9,642
py
Python
genienlp/models/common.py
Krish-sysadmin/genienlp
3586e4368eb0b0756a772294daedc043ce55454c
[ "BSD-3-Clause" ]
6
2019-04-30T19:47:17.000Z
2019-11-30T04:16:47.000Z
genienlp/models/common.py
Krish-sysadmin/genienlp
3586e4368eb0b0756a772294daedc043ce55454c
[ "BSD-3-Clause" ]
null
null
null
genienlp/models/common.py
Krish-sysadmin/genienlp
3586e4368eb0b0756a772294daedc043ce55454c
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2018, Salesforce, Inc. # The Board of Trustees of the Leland Stanford Junior University # 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 ...
37.811765
119
0.662
03ee1aa5583b18e1c8efb09433f8cfc1508376c8
2,621
py
Python
src/encoded/root.py
Lung-Genome-Browser/t2dream-portal
c81edaee5bbbc57ea0558b3069684c6bcc0eefd9
[ "MIT" ]
null
null
null
src/encoded/root.py
Lung-Genome-Browser/t2dream-portal
c81edaee5bbbc57ea0558b3069684c6bcc0eefd9
[ "MIT" ]
null
null
null
src/encoded/root.py
Lung-Genome-Browser/t2dream-portal
c81edaee5bbbc57ea0558b3069684c6bcc0eefd9
[ "MIT" ]
null
null
null
from pyramid.decorator import reify from snovault import ( Root, calculated_property, root, ) from .schema_formats import is_accession from pyramid.security import ( ALL_PERMISSIONS, Allow, Authenticated, Deny, Everyone, ) def includeme(config): config.scan(__name__) def acl_from...
28.802198
75
0.589088
03ee5b03f59b0bb1c1b55e624f5a29f76db701ae
2,534
py
Python
bob_white/bwhite_21.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
3
2020-11-16T15:20:11.000Z
2020-12-11T17:01:42.000Z
bob_white/bwhite_21.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
null
null
null
bob_white/bwhite_21.py
techartorg/Advent_of_Code_2020
ae21164bc126352e7a2e9c9c6a0017ccb9d946cc
[ "MIT" ]
1
2020-12-13T04:42:44.000Z
2020-12-13T04:42:44.000Z
from collections import defaultdict pzl_input = open("day_21.input").read().splitlines() # pzl_input = """mxmxvkd kfcds sqjhc nhms (contains dairy, fish) # trh fvjkl sbzzf mxmxvkd (contains dairy) # sqjhc fvjkl (contains soy) # sqjhc mxmxvkd sbzzf (contains fish)""".splitlines() food_map = {frozenset(ingredients.spli...
58.930233
156
0.755328
03ee619a9ba96234ff8401ddd00c215acb102bef
1,949
py
Python
salt/runners/state.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
1
2016-12-20T20:11:21.000Z
2016-12-20T20:11:21.000Z
salt/runners/state.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
salt/runners/state.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Execute overstate functions ''' # Import salt libs import salt.overstate import salt.output def over(env='base', os_fn=None): ''' Execute an overstate sequence to orchestrate the executing of states over a group of systems ''' stage_num = 0 overstate = salt.overstate.OverState(__opts__, e...
30.453125
78
0.555156
03ee6bbb62d78c5c0514e9f8a997aac1cd8b4bbf
1,606
py
Python
sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/object_hierarchy_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/cognitiveservices/azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/object_hierarchy_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-cognitiveservices-vision-computervision/azure/cognitiveservices/vision/computervision/models/object_hierarchy_py3.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "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 ...
39.170732
108
0.626401
03ee8cf59071017ed0541c36490a702008813332
5,070
py
Python
ext_runs/run_deconstructSig/assign_signature_to_mutation.py
nesilin/evolution_TALL_adults
f36d6ebaeb43376096c14fc9ca20116bc2febae6
[ "Apache-2.0" ]
null
null
null
ext_runs/run_deconstructSig/assign_signature_to_mutation.py
nesilin/evolution_TALL_adults
f36d6ebaeb43376096c14fc9ca20116bc2febae6
[ "Apache-2.0" ]
null
null
null
ext_runs/run_deconstructSig/assign_signature_to_mutation.py
nesilin/evolution_TALL_adults
f36d6ebaeb43376096c14fc9ca20116bc2febae6
[ "Apache-2.0" ]
1
2021-03-26T15:38:53.000Z
2021-03-26T15:38:53.000Z
import pandas as pd import os import click import subprocess @click.command() @click.option('--in_path', '-i', type=click.Path(exists=True), required = True, help="Input must be a string written in command line specifying the absolute path to the mutation list " ...
38.409091
129
0.599014
03ee97feba95a98959e5dc544e317a344fd56309
174
py
Python
sisvac_appointments/models/__init__.py
opticrd/sisvac-odoo-modules
8ca71ec8f116a04416d62a780acc1ff5784acd3a
[ "MIT" ]
3
2021-03-16T17:14:25.000Z
2021-08-15T17:40:04.000Z
sisvac_appointments/models/__init__.py
opticrd/sisvac-odoo-modules
8ca71ec8f116a04416d62a780acc1ff5784acd3a
[ "MIT" ]
3
2021-03-19T01:37:40.000Z
2021-04-14T12:27:20.000Z
sisvac_appointments/models/__init__.py
opticrd/sisvac-odoo-modules
8ca71ec8f116a04416d62a780acc1ff5784acd3a
[ "MIT" ]
null
null
null
from . import vaccination_symptom from . import product from . import res_partner from . import stock from . import vaccination_appointment from . import vaccination_consent
24.857143
37
0.827586
03eea181fd3c142915eb2db5a6e2f18f2cb79c89
1,207
py
Python
example/run.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
example/run.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
example/run.py
nickvasko/DLTrainer
eec9a54172ab803f75eb4861143913aa29e219d0
[ "MIT" ]
null
null
null
from DLTrainer.pytorch import DLTrainer from model import SimpleConfig, SimpleModel from dataset import SimpleDataset from metrics import calculate_metrics """MODELS Dictionary The models dictionary contains the model classes to be used during training. The base format is designed for NLP tasks, however, can be used...
30.948718
84
0.760563
03eea3cf3646a809eef28782781e2ad93f4a7542
22,386
py
Python
config_custom_ruleset_lambda_fucntions/IAM_ACCESS_KEY_ROTATED/IAM_ACCESS_KEY_ROTATED.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
3
2019-09-02T14:24:49.000Z
2022-02-23T16:22:12.000Z
config_custom_ruleset_lambda_fucntions/IAM_ACCESS_KEY_ROTATED/IAM_ACCESS_KEY_ROTATED.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
null
null
null
config_custom_ruleset_lambda_fucntions/IAM_ACCESS_KEY_ROTATED/IAM_ACCESS_KEY_ROTATED.py
aditya-/DevSecOps_Cloud_Automation_AWS
1b0c1f4a20f17648595819b3e31370840a56db6a
[ "MIT" ]
1
2019-10-14T19:38:48.000Z
2019-10-14T19:38:48.000Z
''' Rule Name: IAM_ACCESS_KEY_ROTATED Description: To check IAM users access key are rotated by a specific number of days (by default 90 days). Trigger: Periodic Reports on: AWS::IAM::User Rule Parameters: | ---------------------- | --------- | -------------------------------------------------...
44.861723
359
0.694095
03eeb4c3301b24b4bb4782d4e06e7d612cd4f417
7,803
py
Python
deep_rl/agent/PPO_agent.py
SharathRaparthy/DeepRL
96cc5d586c63681b469eca38fcf20f988b7f1ced
[ "MIT" ]
null
null
null
deep_rl/agent/PPO_agent.py
SharathRaparthy/DeepRL
96cc5d586c63681b469eca38fcf20f988b7f1ced
[ "MIT" ]
null
null
null
deep_rl/agent/PPO_agent.py
SharathRaparthy/DeepRL
96cc5d586c63681b469eca38fcf20f988b7f1ced
[ "MIT" ]
null
null
null
####################################################################### # Copyright (C) 2017 Shangtong Zhang(zhangshangtong.cpp@gmail.com) # # Permission given to modify the code as long as you keep this # # declaration at the top # ################################...
46.446429
116
0.574138
03eed0a681220896265e1970bb3624bd3c535a0c
3,314
py
Python
submission/network.py
mkucz95/image_classifier
dd42a3a5c7baa7bd09a70709c14bc183c8af14b1
[ "MIT" ]
1
2019-12-11T06:42:55.000Z
2019-12-11T06:42:55.000Z
submission/network.py
mkucz95/image_classifier
dd42a3a5c7baa7bd09a70709c14bc183c8af14b1
[ "MIT" ]
null
null
null
submission/network.py
mkucz95/image_classifier
dd42a3a5c7baa7bd09a70709c14bc183c8af14b1
[ "MIT" ]
1
2019-12-02T19:33:04.000Z
2019-12-02T19:33:04.000Z
import torch from torch import nn import torch.nn.functional as F class Network(nn.Module): def __init__(self, input_size, output_size, hidden_layers, drop_p): super().__init__() self.hidden_layers = nn.ModuleList([nn.Linear(input_size, hidden_layers[0])]) #create hidden layers lay...
44.186667
128
0.620398
03eef7f27cc3e9a6e34a7a87867aebdb6aa7133f
551
py
Python
osos/__init__.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
null
null
null
osos/__init__.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
1
2021-11-19T20:44:38.000Z
2021-11-19T20:45:03.000Z
osos/__init__.py
NREL/osos
28b2d9382058e17dfa10a873b5f2fd115b319bb1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Open Source Ops and Statistics """ import os from osos.osos import Osos from osos.api_pypi import Pypi from osos.api_conda import Conda from osos.api_github import Github from osos.version import __version__ OSOS_DIR = os.path.dirname(os.path.realpath(__file__)) DATA_DIR = os.path.join(os....
26.238095
72
0.749546
03ef170cb9279105adbd35c20256a83208549d62
1,199
py
Python
generated/python/gapic-google-cloud-spanner-admin-instance-v1/google/cloud/gapic/spanner_admin_instance/v1/enums.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-spanner-admin-instance-v1/google/cloud/gapic/spanner_admin_instance/v1/enums.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-spanner-admin-instance-v1/google/cloud/gapic/spanner_admin_instance/v1/enums.py
landrito/api-client-staging
140c312c9335af160efce5b37842c995308e0148
[ "BSD-3-Clause" ]
37
2016-09-19T21:13:16.000Z
2022-01-29T19:36:07.000Z
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
36.333333
83
0.686405
03ef4629cead4ade5749634ddb0957f832a139e7
2,698
py
Python
src/controllers/neural_mpc_controller_util/nn_prediction/generate_data.py
neuromorphs/l2race
ad5271afdd9d81375e45402bbef4a077d4bd45ac
[ "MIT" ]
12
2020-07-21T07:56:48.000Z
2022-03-17T09:24:58.000Z
src/controllers/neural_mpc_controller_util/nn_prediction/generate_data.py
neuromorphs/l2race
ad5271afdd9d81375e45402bbef4a077d4bd45ac
[ "MIT" ]
1
2020-09-04T21:56:27.000Z
2020-09-06T06:00:36.000Z
src/controllers/neural_mpc_controller_util/nn_prediction/generate_data.py
neuromorphs/l2race
ad5271afdd9d81375e45402bbef4a077d4bd45ac
[ "MIT" ]
5
2020-08-10T16:00:35.000Z
2022-02-25T15:25:43.000Z
import numpy as np import math import csv import pandas as pd from racing.car import Car from racing.track import Track from mppi_mpc.car_controller import CarController from constants import * import matplotlib.pyplot as plt from tqdm import trange track = Track() car = Car(track) pi = math.pi def generate_distr...
26.98
108
0.65493
03ef6570267bd90af9276639024a560a38fb3f04
2,444
py
Python
apollo/components/log/custom_types.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/components/log/custom_types.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
apollo/components/log/custom_types.py
Aukbit/apollo
0afd1360f5a102335c55afaf138e0ecb96644128
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__) import simplejson as json from datetime import datetime from cassandra.cqlengine import columns from cassandra.cqlengine.usertype import UserType from .general import HTTP_METHODS_STRING_MAP from ...common.utils.json import HttpHeadersEncoder class Request(UserType)...
33.027027
88
0.602291
03ef9085e756d470ce0734d5852560b00d9e429f
3,941
py
Python
lib/streamlit/ReportThread.py
dwiel/streamlit
74ae7f30cc3d95948aff311371449963f8eaf29e
[ "Apache-2.0" ]
1
2020-01-04T06:45:37.000Z
2020-01-04T06:45:37.000Z
lib/streamlit/ReportThread.py
yutiansut/streamlit
929942f755ca40f859a03d905ffcbf743f45dffa
[ "Apache-2.0" ]
4
2021-05-09T11:42:18.000Z
2022-02-27T10:59:36.000Z
lib/streamlit/ReportThread.py
yutiansut/streamlit
929942f755ca40f859a03d905ffcbf743f45dffa
[ "Apache-2.0" ]
1
2020-06-26T14:41:01.000Z
2020-06-26T14:41:01.000Z
# -*- coding: utf-8 -*- # Copyright 2018-2019 Streamlit 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 applicabl...
28.15
80
0.645775
03efa7634aae20dd156b56aab959737118892ae3
357
py
Python
epab/linters/_dead_fixtures.py
132nd-etcher/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
2
2018-12-13T06:49:10.000Z
2018-12-13T07:37:49.000Z
epab/linters/_dead_fixtures.py
etcher-be/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
109
2018-08-22T04:25:56.000Z
2019-10-17T05:10:21.000Z
epab/linters/_dead_fixtures.py
etcher-be/epab
5226d3a36580f8cc50cf5dcac426adb1350a2c9b
[ "MIT" ]
1
2018-02-25T05:53:18.000Z
2018-02-25T05:53:18.000Z
# coding=utf-8 """ Flake8 linter """ import click import elib_run import epab.utils @epab.utils.run_once def _pytest_dead_fixtures(): elib_run.run(f'pytest test --dead-fixtures --dup-fixtures', mute=True) @click.command() def pytest_dead_fixtures(): """ Runs Flake8 (http://flake8.pycqa.org/en/latest/)...
15.521739
74
0.694678
03efc3b77de3df998714a3954217213b3009ad15
5,604
py
Python
chapter10/exercises/EG10-03 Time Tracker with class variables.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/EG10-03 Time Tracker with class variables.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter10/exercises/EG10-03 Time Tracker with class variables.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG10-03 Time Tracker with class variables import pickle from BTCInput import * # Create the contact class class Contact: min_session_length = 0.5 max_session_length = 3.5 def __init__(self, name, address, telephone): self.name = name self.address = address self.telepho...
29.340314
76
0.645789
03efd416d84dca62ae76c5b4afa12c9abedcd69c
6,630
py
Python
cinder/tests/unit/objects/test_objects.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/objects/test_objects.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/objects/test_objects.py
mail2nsrajesh/cinder
a688b872bec6d1abd4dcd852bdb8e8a921369d2e
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 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...
49.477612
79
0.664404
03efeef09c697e4689f9f2887e7bd04bfe431b39
1,158
py
Python
Django/Rango/tango_with_django_project/rango/urls.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Django/Rango/tango_with_django_project/rango/urls.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Django/Rango/tango_with_django_project/rango/urls.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
from django.conf.urls import patterns, url from rango import views urlpatterns = patterns('', url(r'^$',views.index,name='index'), url(r'about/',views.about,name='about'), url(r'^add_category/$', views.add_category, name='add_category'), url(r'^category/(?P<category_name_url>\w+)/$', views.category...
57.9
93
0.611399
03f02ba0d883e9250a32fe0f236eb93a6fdfcf1d
289
py
Python
standalone/common/common.py
frburrue/tfm
1e7d6943d436d45d0f5e95cd8c4e5826753e19ca
[ "MIT" ]
null
null
null
standalone/common/common.py
frburrue/tfm
1e7d6943d436d45d0f5e95cd8c4e5826753e19ca
[ "MIT" ]
null
null
null
standalone/common/common.py
frburrue/tfm
1e7d6943d436d45d0f5e95cd8c4e5826753e19ca
[ "MIT" ]
null
null
null
import time import enum class Timer: def __init__(self): self.init_time = time.time() def value(self): return time.time() - self.init_time class OutputFilter(enum.Enum): APP_IN = 0 DETECTION = 1 REKOGNITION = 2 PROCESSING = 3 APP_OUT = 4
13.761905
43
0.615917
03f03a90c341f668c3f58672c7c45adf76cfcbbd
17,771
py
Python
code/commodify.py
MrLogarithm/cdli-accounting-viz
17d1f0d0be987104ef635e07627fa94f34dc9b7c
[ "MIT" ]
3
2020-06-04T17:07:44.000Z
2020-06-15T19:45:31.000Z
code/commodify.py
MrLogarithm/cdli-accounting-viz
17d1f0d0be987104ef635e07627fa94f34dc9b7c
[ "MIT" ]
17
2020-06-02T20:03:43.000Z
2020-08-27T18:47:36.000Z
code/commodify.py
MrLogarithm/cdli-accounting-viz
17d1f0d0be987104ef635e07627fa94f34dc9b7c
[ "MIT" ]
3
2020-06-04T17:42:33.000Z
2020-08-26T19:27:50.000Z
import json import segment import convert import semantic import data import numpy as np import re import os import oyaml import gzip from entry import * from collections import defaultdict #import mariadb import MySQLdb as mariadb ################################################## # CONFIGURATION config_path = os...
37.730361
210
0.548084
03f088537b31d485051fe4e586b832bed2ba0c97
545
py
Python
simplebgc/units.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
7
2019-11-17T13:18:07.000Z
2022-03-13T04:14:15.000Z
simplebgc/units.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
14
2021-02-03T16:21:21.000Z
2022-03-11T23:57:48.000Z
simplebgc/units.py
maiermic/robot-cameraman
afe441cf1677322062da77aa782a08f10440fcc7
[ "MIT" ]
2
2021-04-21T21:22:49.000Z
2021-05-28T17:39:13.000Z
# The following factor is used to convert degrees to the units used by the # SimpleBGC 2.6 serial protocol. degree_factor = 0.02197265625 degree_per_sec_factor = 0.1220740379 def from_degree(degree: float) -> int: return int(degree / degree_factor) def to_degree(angle: float) -> float: return angle * degree...
25.952381
74
0.768807
03f09400eb0b174d7a944023c9817c0ec637dd39
558
py
Python
pyxtal_ml/test/test_joblib.py
qzhu2017/ML-DOS
c58ebdfc77746175771af0862ed5737c4eaa3eec
[ "MIT" ]
11
2018-11-18T21:57:16.000Z
2021-07-20T12:23:28.000Z
pyxtal_ml/test/test_joblib.py
qzhu2017/ML-DOS
c58ebdfc77746175771af0862ed5737c4eaa3eec
[ "MIT" ]
34
2018-10-23T14:54:48.000Z
2019-03-26T18:07:09.000Z
pyxtal_ml/test/test_joblib.py
qzhu2017/ML-Materials
c58ebdfc77746175771af0862ed5737c4eaa3eec
[ "MIT" ]
3
2018-11-15T06:34:37.000Z
2019-01-04T02:04:25.000Z
from pyxtal_ml.run import run from pkg_resources import resource_filename from sklearn.externals import joblib import numpy as np jsonfile = resource_filename("pyxtal_ml", "datasets/nonmetal_MP_8049.json") algos = ['RF', 'GradientBoosting', 'KNN', 'KRR'] N_sample = 100 feature='Chem+RDF+ADF+Charge+Voronoi' runner = r...
27.9
75
0.774194
03f09c288870a1964ae3bd3b28212b0f9c8206d4
6,509
py
Python
deepsim/deepsim/sim_trackers/trackers/set_model_state_tracker.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
1
2022-03-25T07:20:49.000Z
2022-03-25T07:20:49.000Z
deepsim/deepsim/sim_trackers/trackers/set_model_state_tracker.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
deepsim/deepsim/sim_trackers/trackers/set_model_state_tracker.py
aws-deepracer/deepsim
cad2639f525c2f94ec5c03d8b855cc65b0b8ee55
[ "Apache-2.0" ]
null
null
null
################################################################################# # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License, Version 2.0 (the "License"). ...
44.889655
117
0.602089
03f0d008f12d5c90479c817caa7b75e7f7801207
3,953
py
Python
trax/rl/online_tune.py
yakovkeselman/trax
615432bbc58ffb5bdf83a771e8f8b470995456db
[ "Apache-2.0" ]
2
2020-03-27T17:26:58.000Z
2020-03-27T18:45:47.000Z
trax/rl/online_tune.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
null
null
null
trax/rl/online_tune.py
ZachT1711/trax
a0a3dd8d49e53fc48bb24cc08c10a8a53517e7bc
[ "Apache-2.0" ]
1
2020-03-06T06:36:36.000Z
2020-03-06T06:36:36.000Z
# coding=utf-8 # Copyright 2020 The Trax 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 or a...
34.077586
80
0.721224
03f1371ae6cf3ecedcea7d0dbf21262a48233e2a
12,678
py
Python
python/jittor/dataset/dataset.py
shiminhu/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
5
2020-08-09T02:27:58.000Z
2021-01-13T16:04:32.000Z
python/jittor/dataset/dataset.py
Zhengjun-Du/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
null
null
null
python/jittor/dataset/dataset.py
Zhengjun-Du/jittor
8aa5974fef8106d3ddea8209fb44b33cec120a09
[ "Apache-2.0" ]
null
null
null
# *************************************************************** # Copyright (c) 2020 Jittor. Authors: # Meng-Hao Guo <guomenghao1997@gmail.com> # Dun Liang <randonlang@gmail.com>. # All Rights Reserved. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this...
38.072072
143
0.544092
03f1371c382527ddecb48d7cb1fb8ae12c4084ec
1,546
py
Python
setup.py
Craven-Biostat-Lab/synmod
433e2f1726e68acbc45f226b1235f15508156de1
[ "MIT" ]
null
null
null
setup.py
Craven-Biostat-Lab/synmod
433e2f1726e68acbc45f226b1235f15508156de1
[ "MIT" ]
null
null
null
setup.py
Craven-Biostat-Lab/synmod
433e2f1726e68acbc45f226b1235f15508156de1
[ "MIT" ]
null
null
null
"""synmod package definition and install configuration""" from setuptools import find_packages, setup # pylint: disable = invalid-name with open("README.rst") as readme_file: readme = readme_file.read() with open("docs/changelog.rst") as changelog_file: changelog = changelog_file.read() setup( author="...
29.169811
70
0.61837
03f1372b8f549c21af26b34b2539ed0f243a1d23
1,520
py
Python
app/core/tests/test_admin.py
aakash-sheth/django-rest-api
5dcd5eb03c5efccd7011fd6417b50e2ceacff243
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
aakash-sheth/django-rest-api
5dcd5eb03c5efccd7011fd6417b50e2ceacff243
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
aakash-sheth/django-rest-api
5dcd5eb03c5efccd7011fd6417b50e2ceacff243
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse # reverse is a helper function which helps to generate urls # for django admin function class AdminSiteTests(TestCase): def setUp(self): # Setup tasks are required tasks which are need ...
31.666667
68
0.646053
03f15407ac5843db445bd30adb56beb919928339
9,044
py
Python
tests/github_api/prs_test.py
ECrownofFire/chaos
0cfbb85ab52654967909aef54eff3a0e62b641bd
[ "MIT" ]
1,804
2017-05-23T02:34:27.000Z
2017-05-26T00:44:44.000Z
tests/github_api/prs_test.py
ECrownofFire/chaos
0cfbb85ab52654967909aef54eff3a0e62b641bd
[ "MIT" ]
345
2017-05-20T23:55:12.000Z
2017-06-19T07:48:58.000Z
tests/github_api/prs_test.py
ECrownofFire/chaos
0cfbb85ab52654967909aef54eff3a0e62b641bd
[ "MIT" ]
248
2017-05-23T02:00:07.000Z
2017-05-26T00:00:28.000Z
import unittest import arrow from unittest.mock import patch, MagicMock from github_api import prs def create_mock_pr(number, title, pushed_at, created_at): return { "number": number, "title": title, "statuses_url": "statuses_url/{}".format(number), "head": { "sha": "s...
42.460094
96
0.562251
03f176cb9994dfdd3e272c131fc1455c13f75366
3,586
py
Python
src/posts/tests_unittest.py
devbabar/django-blog
b9f00ebdd619214631231932c27c06684ab97631
[ "BSD-3-Clause" ]
1
2020-08-03T18:24:55.000Z
2020-08-03T18:24:55.000Z
src/posts/tests_unittest.py
devbabar/django-blog
b9f00ebdd619214631231932c27c06684ab97631
[ "BSD-3-Clause" ]
null
null
null
src/posts/tests_unittest.py
devbabar/django-blog
b9f00ebdd619214631231932c27c06684ab97631
[ "BSD-3-Clause" ]
2
2020-12-17T00:15:29.000Z
2022-02-07T11:20:13.000Z
from django.test import TestCase, Client, RequestFactory from django.test import LiveServerTestCase from selenium import webdriver from selenium.webdriver.common.keys import Keys from django.contrib.auth.models import User from django.core.urlresolvers import reverse from posts.models import Post from .forms import * ...
30.649573
117
0.740658
03f18ecb834f2a746adb4584e117d82648f62ef4
13,554
py
Python
hybrid_ranking/matchzoo/inputs/preparation.py
yangliuy/Hybrid-Neural-Conversation-Model
329a9310b2608ed1c04d17285a16a7170d6d4703
[ "Apache-2.0" ]
22
2019-09-23T20:14:54.000Z
2022-02-24T20:49:35.000Z
hybrid_ranking/matchzoo/inputs/preparation.py
yangliuy/Hybrid-Neural-Conversation-Model
329a9310b2608ed1c04d17285a16a7170d6d4703
[ "Apache-2.0" ]
2
2019-08-31T08:41:14.000Z
2020-10-03T21:10:34.000Z
hybrid_ranking/matchzoo/inputs/preparation.py
yangliuy/Hybrid-Neural-Conversation-Model
329a9310b2608ed1c04d17285a16a7170d6d4703
[ "Apache-2.0" ]
3
2019-11-07T03:03:53.000Z
2020-10-23T15:50:44.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import sys import os import numpy as np import hashlib import random import preprocess class Preparation(object): '''Convert dataset of different text matching tasks into a unified format as the input of deep matching modules. Users provide datasets...
38.615385
232
0.551129
03f1b65dabdac2bf96cb35b8b8360d92ec1b1da6
9,937
py
Python
oort/display.py
niklasl/oort.python-oortpub
fbd23a5693f3ce889a9113b4e7dd10fc8ae61281
[ "BSD-3-Clause" ]
null
null
null
oort/display.py
niklasl/oort.python-oortpub
fbd23a5693f3ce889a9113b4e7dd10fc8ae61281
[ "BSD-3-Clause" ]
null
null
null
oort/display.py
niklasl/oort.python-oortpub
fbd23a5693f3ce889a9113b4e7dd10fc8ae61281
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- """ """ #======================================================================= import os.path from rdflib import RDF, RDFS, ConjunctiveGraph from genshi.output import DocType from genshi.template import TemplateLoader from oort.util import templating from oort.util.code import contract, autosu...
36.533088
100
0.642548
03f1bad7203699a5dfadf0e6a86422fbd327452a
1,129
py
Python
migrations/versions/09d366f75b7e_last_try.py
josphat-mwangi/Blog-
646f4d4caeb8c2d9ae5baa001997beb2c6d2a62e
[ "MIT" ]
null
null
null
migrations/versions/09d366f75b7e_last_try.py
josphat-mwangi/Blog-
646f4d4caeb8c2d9ae5baa001997beb2c6d2a62e
[ "MIT" ]
null
null
null
migrations/versions/09d366f75b7e_last_try.py
josphat-mwangi/Blog-
646f4d4caeb8c2d9ae5baa001997beb2c6d2a62e
[ "MIT" ]
null
null
null
"""last try Revision ID: 09d366f75b7e Revises: ce685c028fac Create Date: 2020-07-25 10:07:15.430046 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '09d366f75b7e' down_revision = 'ce685c028fac' branch_labels = None depends_on = None def upgrade(): # ### c...
30.513514
86
0.696191
03f1e07c9b2305be5e9ca2c159653729105026b9
12,216
py
Python
minio/lifecycleconfig.py
menishmueli/minio-py
c081460380d94a613a9e7a8da1bf4492da740c31
[ "Apache-2.0" ]
null
null
null
minio/lifecycleconfig.py
menishmueli/minio-py
c081460380d94a613a9e7a8da1bf4492da740c31
[ "Apache-2.0" ]
null
null
null
minio/lifecycleconfig.py
menishmueli/minio-py
c081460380d94a613a9e7a8da1bf4492da740c31
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # MinIO Python Library for Amazon S3 Compatible Cloud Storage, (C) # 2015, 2016, 2017, 2018, 2019 MinIO, 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 # # h...
32.489362
77
0.644237
03f1e38d5364ec6d6f264976ade90239b690416e
918
py
Python
m2-modified/ims/common/agentless-system-crawler/tests/unit/mock_pynvml.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
108
2015-07-21T10:40:36.000Z
2021-07-01T06:54:51.000Z
m2-modified/ims/common/agentless-system-crawler/tests/unit/mock_pynvml.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
320
2015-07-21T01:33:20.000Z
2020-07-21T15:57:02.000Z
m2-modified/ims/common/agentless-system-crawler/tests/unit/mock_pynvml.py
CCI-MOC/ABMI
955c12ae9d2dc7afe7323f6c25f2af120f5b281a
[ "Apache-2.0" ]
61
2015-07-20T18:26:37.000Z
2021-03-17T01:18:54.000Z
#class pynvml() import collections Memory = collections.namedtuple('Memory', 'total used free') Utilization = collections.namedtuple('Utilization', 'gpu memory') NVML_TEMPERATURE_GPU = 0 class DummyProcess(): pid = 1234 usedGpuMemory = 273285120 def nvmlInit(): pass def nvmlShutdown(): pass def nv...
20.4
65
0.732026
03f201f4c441491f7f518263e9793b0837640920
677
py
Python
checkout/migrations/0004_order_user.py
Wings30306/callingmrschristmas
2957e4fd3e61e0df4f3135113d52a518eae6270e
[ "PostgreSQL" ]
4
2020-01-31T13:49:43.000Z
2020-02-05T22:47:51.000Z
checkout/migrations/0004_order_user.py
Wings30306/callingmrschristmas
2957e4fd3e61e0df4f3135113d52a518eae6270e
[ "PostgreSQL" ]
13
2019-12-07T12:16:27.000Z
2022-03-12T00:06:22.000Z
checkout/migrations/0004_order_user.py
Wings30306/callingmrschristmas
2957e4fd3e61e0df4f3135113d52a518eae6270e
[ "PostgreSQL" ]
1
2020-02-01T00:23:19.000Z
2020-02-01T00:23:19.000Z
# Generated by Django 2.2.9 on 2020-01-20 18:50 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('checkout', '0003_contact...
26.038462
66
0.624815
03f21b0718d92f2f397674a1f9987e723ff24f24
10,501
py
Python
data/migrations/versions/d17c695859ea_delete_old_appr_tables.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
data/migrations/versions/d17c695859ea_delete_old_appr_tables.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
data/migrations/versions/d17c695859ea_delete_old_appr_tables.py
jakedt/quay
424c1a19d744be444ed27aa1718fd74af311d863
[ "Apache-2.0" ]
null
null
null
""" Delete old Appr tables. Revision ID: d17c695859ea Revises: 5d463ea1e8a8 Create Date: 2018-07-16 15:21:11.593040 """ # revision identifiers, used by Alembic. revision = "d17c695859ea" down_revision = "5d463ea1e8a8" from alembic import op as original_op from data.migrations.progress import ProgressWrapper import s...
40.70155
99
0.641177
03f2250266214f545d491061496a4adfc3c435f3
2,254
py
Python
public/client.py
ReciPull/recipull.github.io
e6b800af02658bb7948297c4ddc1b7af6d978839
[ "MIT" ]
1
2019-09-16T19:13:13.000Z
2019-09-16T19:13:13.000Z
public/client.py
ReciPull/recipull.github.io
e6b800af02658bb7948297c4ddc1b7af6d978839
[ "MIT" ]
5
2021-03-09T03:30:14.000Z
2022-02-26T10:42:17.000Z
public/client.py
ReciPull/recipull.github.io
e6b800af02658bb7948297c4ddc1b7af6d978839
[ "MIT" ]
null
null
null
# importing the requests library import requests import json def testget(geturl,val): # defining a params dict for the parameters to be sent to the API PARAMS = {'ID':val} #print("Params ", PARAMS) # sending get request and saving the response as response object r = requests.get(url = g...
36.354839
635
0.678793
03f26a9b02665681b99ca565b21d736987591f24
32,322
py
Python
autotest/ogr/ogr_sua.py
chambbj/gdal
3d56aecb5b8e9890dae8f560acd099992e707d12
[ "MIT" ]
1
2015-02-16T16:51:38.000Z
2015-02-16T16:51:38.000Z
autotest/ogr/ogr_sua.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
autotest/ogr/ogr_sua.py
theduckylittle/gdal
61be261cae524582ba28bceebb027cc1e967e0ab
[ "MIT" ]
null
null
null
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test read functionality for OGR SUA driver. # Author: Even Rouault <even dot rouault at mines dash paris dot org> # ##############################################...
375.837209
15,553
0.847844
03f26ef37b00b06836201cd6e30119d2c7ba8ce8
3,680
py
Python
ibllib/ephys/spikes.py
eejd/ibllib
8d67fbfe09e6217b2186f800dd04f8061dcff081
[ "MIT" ]
null
null
null
ibllib/ephys/spikes.py
eejd/ibllib
8d67fbfe09e6217b2186f800dd04f8061dcff081
[ "MIT" ]
null
null
null
ibllib/ephys/spikes.py
eejd/ibllib
8d67fbfe09e6217b2186f800dd04f8061dcff081
[ "MIT" ]
null
null
null
from pathlib import Path import logging import shutil import numpy as np from scipy.interpolate import interp1d from phylib.io import alf, model, merge from phylib.io.array import _index_of, _unique from ibllib.io import spikeglx from ibllib.io.extractors.ephys_fpga import glob_ephys_files _logger = logging.getLogg...
39.569892
98
0.661957
03f27eaffc84241a1c533afb2c73418c8c5f0c1b
1,147
py
Python
keystone/token/persistence/backends/memcache.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/token/persistence/backends/memcache.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
null
null
null
keystone/token/persistence/backends/memcache.py
yanheven/keystone
417b8941095f40674575ed951b4a03ebcdc91fef
[ "Apache-2.0" ]
1
2020-07-02T09:12:28.000Z
2020-07-02T09:12:28.000Z
# Copyright 2013 Metacloud, Inc. # Copyright 2012 OpenStack 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 # # Unless required ...
33.735294
75
0.734089
03f2879df42eddc492ea6dcf943008107fcd757c
446
py
Python
tests/unit/libraries/logging_/conftest.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
tests/unit/libraries/logging_/conftest.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
tests/unit/libraries/logging_/conftest.py
PaulStaggs/signalfx-python-tracing
0f704f86d25824cb9fac306f5b2132fe913aaf87
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2018 SignalFx. All rights reserved. import pytest from signalfx_tracing.libraries.requests_.instrument import config, uninstrument class LoggingTestSuite(object): @pytest.fixture(autouse=True) def restored_logging_config(self): orig = dict(config.__dict__) yield confi...
23.473684
80
0.710762
03f2ca76d3a8fc4802eb87765531514349cf6a86
1,343
py
Python
chp_look_up/migrations/0001_initial.py
di2ag/chp-look-up
b4d928dfc20ae9b9e3467d536dd5704a45eb7255
[ "Apache-2.0" ]
null
null
null
chp_look_up/migrations/0001_initial.py
di2ag/chp-look-up
b4d928dfc20ae9b9e3467d536dd5704a45eb7255
[ "Apache-2.0" ]
null
null
null
chp_look_up/migrations/0001_initial.py
di2ag/chp-look-up
b4d928dfc20ae9b9e3467d536dd5704a45eb7255
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-04 18:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='CurieToCommonName', fields=[ ('id', models....
33.575
114
0.55994
03f32aeb3af90ad14a9e2b32c51c23064cb367dc
6,410
py
Python
src/test/tinc/tincrepo/mpp/lib/generalUtil.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
9
2018-04-20T03:31:01.000Z
2020-05-13T14:10:53.000Z
src/test/tinc/tincrepo/mpp/lib/generalUtil.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
36
2017-09-21T09:12:27.000Z
2020-06-17T16:40:48.000Z
src/test/tinc/tincrepo/mpp/lib/generalUtil.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
#!/usr/bin/env python # Line too long - pylint: disable=C0301 # Invalid name - pylint: disable=C0103 """ Copyright (c) 2004-Present Pivotal Software, Inc. This program and the accompanying materials are made available under the terms of the under the Apache License, Version 2.0 (the "License"); you may not use this ...
30.52381
104
0.563183
03f331870721a8508e158c410ff6e4855cb85401
769
py
Python
tdw_room.py
alters-mit/tdw_bcs_demo
86ea25ef1fef6cbce3a7aaf45a477bba88b4b8c2
[ "MIT" ]
null
null
null
tdw_room.py
alters-mit/tdw_bcs_demo
86ea25ef1fef6cbce3a7aaf45a477bba88b4b8c2
[ "MIT" ]
null
null
null
tdw_room.py
alters-mit/tdw_bcs_demo
86ea25ef1fef6cbce3a7aaf45a477bba88b4b8c2
[ "MIT" ]
null
null
null
from tdw.controller import Controller from tdw.add_ons.third_person_camera import ThirdPersonCamera """ GOAL: Position the camera so that you can see the box. """ # Initialize the controller. c = Controller() # Get a unique object ID. object_id = Controller.get_unique_id() # This is a bad position for the camera! C...
29.576923
64
0.707412
03f345e6b57e466799c354c99160365ef4c60eb8
2,121
py
Python
docs/conf.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
2
2020-08-25T13:55:00.000Z
2020-08-25T16:36:03.000Z
docs/conf.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
null
null
null
docs/conf.py
ProjectZeroDays/Pyto
d5d77f3541f329bbb28142d18606b22f115b7df6
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # http://www.sphinx-doc.org/en/master/config # -- Path setup -------------------------------------------------------------- # If extensions (or module...
35.949153
79
0.646393
03f3472d33f35fa02a1c8ee9893d2e0732388575
131
py
Python
webapi_active_query_builder/apis/__init__.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
2
2018-11-01T18:03:04.000Z
2020-03-21T17:34:51.000Z
webapi_active_query_builder/apis/__init__.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
null
null
null
webapi_active_query_builder/apis/__init__.py
ActiveDbSoft/webapi-active-query-builder-python
81d65f454617d913d8d3b707283a42830c08192d
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import # import apis into api package from .active_query_builder_api import ActiveQueryBuilderApi
26.2
59
0.870229
03f37ddc7a0acd7d780f9979efaff31ce1b1b2cc
859
py
Python
tjs-export/handler.py
jmwright/cadquery-openfaas-functions
c11fd3288ea123924794b9925f635e70463f0f35
[ "Apache-2.0" ]
null
null
null
tjs-export/handler.py
jmwright/cadquery-openfaas-functions
c11fd3288ea123924794b9925f635e70463f0f35
[ "Apache-2.0" ]
null
null
null
tjs-export/handler.py
jmwright/cadquery-openfaas-functions
c11fd3288ea123924794b9925f635e70463f0f35
[ "Apache-2.0" ]
null
null
null
def handle(req): """handle a request to the function Args: req (str): request body """ import io import sys from cadquery import cqgi from cadquery.occ_impl.exporters.json import JsonMesh # stdout redirect trap text_trap = io.StringIO() sys.stderr = text_trap mesher...
24.542857
57
0.592549
03f43d81e8f881912e470a4935a442508afb8ba8
187
py
Python
hyperbox/networks/nasbench201/db_gen/constants.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
1
2022-01-17T00:34:14.000Z
2022-01-17T00:34:14.000Z
hyperbox/networks/nasbench201/db_gen/constants.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
hyperbox/networks/nasbench201/db_gen/constants.py
marsggbo/hyperbox
91dcd04ad30164bcb12209d818df18961fa3f347
[ "MIT" ]
null
null
null
NONE = "none" SKIP_CONNECT = "skip_connect" CONV_1X1 = "conv_1x1" CONV_3X3 = "conv_3x3" AVG_POOL_3X3 = "avg_pool_3x3" PRIMITIVES = [NONE, AVG_POOL_3X3, CONV_3X3, CONV_1X1, SKIP_CONNECT]
23.375
67
0.759358
03f4507a8ab40b99c692942e0b90f41068ff7a2a
60,727
py
Python
code/ARAX/ARAXQuery/ARAX_resultify.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
31
2018-03-05T20:01:10.000Z
2022-02-01T03:31:22.000Z
code/ARAX/ARAXQuery/ARAX_resultify.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
1,774
2018-03-06T01:55:03.000Z
2022-03-31T03:09:04.000Z
code/ARAX/ARAXQuery/ARAX_resultify.py
RTXteam/RTX
eabc4f4445d69c71d428acc8e9fa9865a85fb593
[ "MIT" ]
19
2018-05-10T00:43:19.000Z
2022-03-08T19:26:16.000Z
#!/usr/bin/env python3 '''This module defines the `ARAXResultify` class whose `_resultify` method enumerates subgraphs of a knowledge graph (KG) that match a pattern set by a query graph (QG) and sets the `results` data attribute of the `message` object to be a list of `Result` objects, each corresponding to one of the...
59.245854
183
0.664647
03f4600b5d862938d9b36cba5b1d43945ac95614
7,488
py
Python
solutions/rank-1/scripts/03_train_lgb_site.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
null
null
null
solutions/rank-1/scripts/03_train_lgb_site.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
null
null
null
solutions/rank-1/scripts/03_train_lgb_site.py
mattmotoki/ashrae-great-energy-predictor-3-solution-analysis
8a5260049d4537c57c37a78e77f2fba13c55177d
[ "MIT" ]
null
null
null
import os import argparse import numpy as np import lightgbm as lgb from datetime import datetime from ashrae.utils import ( MODEL_PATH, DATA_PATH, Logger, timer, make_dir, rmsle, load_data, get_validation_months, ) parser = argparse.ArgumentParser(description="") parser.add_argument("--overwrite", action="s...
42.788571
139
0.567975
03f4660153c178669eed532a090ae23378344ed6
930
py
Python
tasks.py
gdubicki/python-cli-ui
4852935b3c137e89c33c55fd67f679bb6093f482
[ "BSD-3-Clause" ]
null
null
null
tasks.py
gdubicki/python-cli-ui
4852935b3c137e89c33c55fd67f679bb6093f482
[ "BSD-3-Clause" ]
null
null
null
tasks.py
gdubicki/python-cli-ui
4852935b3c137e89c33c55fd67f679bb6093f482
[ "BSD-3-Clause" ]
null
null
null
# type: ignore from invoke import call, task SOURCES = "cli_ui" @task def black(c, check=False): print("Running black") cmd = f"black {SOURCES}" if check: cmd += " --check" c.run(cmd) @task def isort(c, check=False): print("Running isort") cmd = f"isort {SOURCES}" if check: ...
14.761905
41
0.555914
03f48572efaa309b8205e3ca41403437e640a149
1,410
py
Python
setup.py
ilevantis/genomeview
c1ac797642b86f8f411f75f5de68c4a9e6519078
[ "MIT" ]
112
2018-06-26T16:52:46.000Z
2022-03-25T06:00:32.000Z
setup.py
fomightez/genomeview-binder
ba0fe634422953b096cbf8b78226d4390b3f8ecf
[ "MIT" ]
22
2017-11-20T23:50:42.000Z
2021-01-31T15:56:02.000Z
setup.py
fomightez/genomeview-binder
ba0fe634422953b096cbf8b78226d4390b3f8ecf
[ "MIT" ]
15
2018-05-14T15:56:28.000Z
2022-01-07T14:48:40.000Z
#!/usr/bin/env python from setuptools import setup, find_packages, Extension def get_version(string): """ Parse the version number variable __version__ from a script. """ import re version_re = r"^__version__ = ['\"]([^'\"]*)['\"]" version_str = re.search(version_re, string, re.M).group(1) return ...
28.2
72
0.586525
03f4969aca2c785cd0625e1d1954556880e6c24d
1,278
py
Python
tools/gen_mots_costa.py
jzhao004/UniTrack
e7a12721a6edac056ec54a781d522227347fdc08
[ "MIT" ]
null
null
null
tools/gen_mots_costa.py
jzhao004/UniTrack
e7a12721a6edac056ec54a781d522227347fdc08
[ "MIT" ]
null
null
null
tools/gen_mots_costa.py
jzhao004/UniTrack
e7a12721a6edac056ec54a781d522227347fdc08
[ "MIT" ]
null
null
null
import pdb import os.path as osp import os import numpy as np def mkdirs(d): if not osp.exists(d): os.makedirs(d) entry = 'COSTA' split = 'test' seq_root = '../data/GOT/MOTS/images/{}'.format(split) label_root = '../data/GOT/MOTS/obs/{}/{}'.format(entry, split) mkdirs(label_root) seqs = [s for s in os.l...
28.4
88
0.579812
03f4c9ca1acd74ac76545f7d31e39d7077a75ebc
2,980
py
Python
Scrapy/iherb/iherb/settings.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
null
null
null
Scrapy/iherb/iherb/settings.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
2
2021-06-01T21:52:33.000Z
2021-12-13T19:44:00.000Z
Scrapy/iherb/iherb/settings.py
annelida/stuff
699d0230d5329a5eaebc8c93f9fba3c53920925f
[ "MIT" ]
1
2015-10-14T12:16:07.000Z
2015-10-14T12:16:07.000Z
# -*- coding: utf-8 -*- # Scrapy settings for iherb project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/latest/t...
34.651163
109
0.783221
03f4cba47e3b997793d1dd161e607ceddff86fbb
1,726
py
Python
picamera_mqtt/util/files.py
ethanjli/picamera-mqtt
52562dc000b6d00bca5fc602d03d6879e629618f
[ "BSD-3-Clause" ]
6
2019-04-11T10:00:07.000Z
2021-07-01T11:46:30.000Z
picamera_mqtt/util/files.py
ethanjli/picamera-mqtt
52562dc000b6d00bca5fc602d03d6879e629618f
[ "BSD-3-Clause" ]
null
null
null
picamera_mqtt/util/files.py
ethanjli/picamera-mqtt
52562dc000b6d00bca5fc602d03d6879e629618f
[ "BSD-3-Clause" ]
3
2018-12-16T15:47:00.000Z
2020-05-17T02:24:52.000Z
"""Support for reading and writing files.""" import base64 import json import pathlib # Directory I/O def ensure_path(path): """Ensure the existence of the path by making directories as needed.""" pathlib.Path(path).mkdir(parents=True, exist_ok=True) # JSON I/O def json_dump(obj, path): """Save a json ...
25.761194
75
0.662225
03f4fab1cbd6601cce3b203c8a3ad53a69950034
55
py
Python
sparv/modules/readability/__init__.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
17
2018-09-21T07:01:45.000Z
2022-02-24T23:26:49.000Z
sparv/modules/readability/__init__.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
146
2018-11-13T19:13:25.000Z
2022-03-31T09:57:56.000Z
sparv/modules/readability/__init__.py
heatherleaf/sparv-pipeline
0fe5f27d0d82548ecc6cb21a69289668aac54cf1
[ "MIT" ]
5
2019-02-14T00:50:38.000Z
2021-03-29T15:37:41.000Z
"""Readability measures.""" from . import readability
13.75
27
0.727273
03f4fdf81fa4b7ae8681c449636f4e42e686a424
12,693
py
Python
hashicorp_vault_client/hashicorp_vault_client/models/body.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
hashicorp_vault_client/hashicorp_vault_client/models/body.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
2
2019-09-30T20:56:41.000Z
2019-10-02T00:22:07.000Z
hashicorp_vault_client/hashicorp_vault_client/models/body.py
drewmullen/HAC
fb185804fd244366f8f8d01df22835b3d96e7512
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ HashiCorp Vault API HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501 OpenAPI spec version: 1.2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class...
34.680328
261
0.635547
03f5141e6cc38571729934b7a8ee300a43b8c104
47,387
py
Python
synapse/storage/data_stores/main/devices.py
xorob0/synapse
13782c2680615eef66301e06e7775761e64ea36a
[ "Apache-2.0" ]
null
null
null
synapse/storage/data_stores/main/devices.py
xorob0/synapse
13782c2680615eef66301e06e7775761e64ea36a
[ "Apache-2.0" ]
null
null
null
synapse/storage/data_stores/main/devices.py
xorob0/synapse
13782c2680615eef66301e06e7775761e64ea36a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2016 OpenMarket Ltd # Copyright 2019 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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 # # ...
37.371451
102
0.591344
03f5150e48d5422ee6d3fd5ca263da5cbc8b96f9
1,393
py
Python
getl/lift_definition.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
8
2020-06-10T09:00:17.000Z
2021-06-07T18:02:19.000Z
getl/lift_definition.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
5
2020-07-03T10:39:25.000Z
2021-08-30T14:52:47.000Z
getl/lift_definition.py
husqvarnagroup/GETL
37251abf12bac2efed1fe463b09a288d85969141
[ "MIT" ]
1
2020-05-28T07:53:48.000Z
2020-05-28T07:53:48.000Z
"""Validating and preprocessing lift definitions.""" import re import string from typing import Union import oyaml as yaml from getl.common.s3path import S3Path def resolve_lift_definition(lift_def: str, parameters: dict): # Retrive and process lift definition lift_definition = fetch_lift_definition(lift_de...
33.166667
85
0.684853
03f524b2327a0f87cddfbd915ddff1f360642f5b
2,380
py
Python
campy/util/simpio.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
5
2018-12-03T19:18:50.000Z
2021-05-31T07:17:06.000Z
campy/util/simpio.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2020-02-13T20:56:05.000Z
2020-02-19T18:32:56.000Z
campy/util/simpio.py
TristenSeth/campy
9e726c342d682239e1c19e6f5645c0b2167d7fab
[ "MIT" ]
1
2017-06-06T07:29:07.000Z
2017-06-06T07:29:07.000Z
#!/usr/bin/env python3 -tt """ File: simpio.h -------------- This file exports a set of functions that simplify input/output operations in Python and provide some error-checking on console input. Modified from Marty Stepp's CPP libraries. @author sredmond """ GETINTEGER_DEFAULT_PROMPT = "Enter an integer: "; GETINTE...
29.02439
104
0.683193
03f53229ebe8f8c0b7ab61356e306738e2abbc8a
796
py
Python
test/host_tests/event_callback_decorator.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
37
2015-09-10T13:52:40.000Z
2021-11-17T11:53:30.000Z
test/host_tests/event_callback_decorator.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
270
2015-09-09T13:00:53.000Z
2021-12-16T17:39:05.000Z
test/host_tests/event_callback_decorator.py
Patater/greentea
4fcf55396ab7f5960a542edb88365686b8f33624
[ "Apache-2.0" ]
51
2015-09-04T13:16:47.000Z
2021-11-18T15:40:03.000Z
# # Copyright (c) 2021 Arm Limited and Contributors. All rights reserved. # SPDX-License-Identifier: Apache-2.0 # import unittest from htrun.host_tests.base_host_test import BaseHostTest, event_callback class TestEvenCallbackDecorator(unittest.TestCase): def setUp(self): pass def tearDown(self): ...
24.121212
72
0.613065
03f5406c0e2120f4a220d3e79268a4eaf5ab09fd
34,431
py
Python
python/dgl/_deprecate/runtime/ir/executor.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
2
2020-07-24T19:26:51.000Z
2021-08-21T21:04:11.000Z
python/dgl/_deprecate/runtime/ir/executor.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
null
null
null
python/dgl/_deprecate/runtime/ir/executor.py
jinghuix/dgl
fae26dd15caac92458a08ad34889086e1e333ddd
[ "Apache-2.0" ]
1
2021-03-09T12:42:46.000Z
2021-03-09T12:42:46.000Z
"""Module for executors.""" # pylint: disable=invalid-name from __future__ import absolute_import from abc import abstractmethod from .... import backend as F from ....frame import FrameRef, Frame from .... import utils from .program import get_current_prog from . import var from .var import VarType from .registry i...
27.566853
94
0.610525
03f57882fed0676602b0fbd26270c4c341204fa6
60,830
py
Python
blesuite/pybt/gap.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
198
2016-08-04T05:45:38.000Z
2022-02-17T08:30:58.000Z
blesuite/pybt/gap.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
13
2018-02-04T14:16:16.000Z
2020-10-09T02:16:24.000Z
blesuite/pybt/gap.py
jreynders/BLESuite-1
1c3c15fc2d4e30c3f9c1a15e0268cae84685784b
[ "MIT" ]
57
2016-08-08T04:24:04.000Z
2022-01-24T08:43:02.000Z
from struct import unpack from binascii import hexlify def decode_flags(flags): if len(flags) != 1: raise Exception("Flags must be 1 byte") bitfield = ( 'LE Limited Discoverable Mode', 'LE General Discoverable Mode', 'BR/EDR Not Supported', 'Simultaneous LE and BR/EDR ...
34.445074
119
0.630643
03f5b0029f25155bce0bd3214c834586fb3fc87f
38,596
py
Python
pyOCD/gdbserver/gdbserver.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
2
2019-07-18T06:51:27.000Z
2021-06-30T00:36:12.000Z
pyOCD/gdbserver/gdbserver.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
null
null
null
pyOCD/gdbserver/gdbserver.py
oliviermartin/pyOCD
87ca6b91477db7d458960504f2103dae9b7a319f
[ "Apache-2.0" ]
1
2017-07-20T20:47:18.000Z
2017-07-20T20:47:18.000Z
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2015 ARM Limited Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable ...
35.247489
121
0.540963
03f5c2321368c5cf87f062ddb364c6e8b613d876
121,739
py
Python
test/unit/common/middleware/test_slo.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/test_slo.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
test/unit/common/middleware/test_slo.py
aerwin3/swift
96c1838a15645639154f1048285d53a891809937
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2013 OpenStack 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 # # Unless required by appl...
44.478992
79
0.54782
03f5c6222f3b457efd62cfa3596fb3cb691a5341
2,842
py
Python
chapter_2_collection/trim_audio.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_2_collection/trim_audio.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_2_collection/trim_audio.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
37.394737
121
0.618578
03f5c7e06ff7a6dd2770548a149d38799b6c6e20
7,407
py
Python
tests/integration/cli/commands/test_vcs_lock.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/commands/test_vcs_lock.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
tests/integration/cli/commands/test_vcs_lock.py
sthagen/pantsbuild-pex
bffe6c3641b809cd3b20adbc7fdb2cf7e5f54309
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import filecmp import os.path import shutil import subprocess import sys import tempfile from textwrap import dedent import colors import pytest from pex.cli.testing import run_pex3 from...
30.232653
99
0.614284
03f5d28d29e61dbb2ba1329ed2c53e9e35395401
35,319
py
Python
bilby/gw/result.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/gw/result.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
bilby/gw/result.py
tdalford1/bilby_relative_binning
a74123bf8ca5d66cbf07141b971d0ea32b71d9ec
[ "MIT" ]
null
null
null
from __future__ import division import json import pickle import os import matplotlib.pyplot as plt from matplotlib import rcParams import numpy as np from ..core.result import Result as CoreResult from ..core.utils import ( infft, logger, check_directory_exists_and_if_not_mkdir, latex_plot_format, safe_save...
40.044218
105
0.549081
03f5dbae6861e438e6a9629cb880a116428c9400
9,685
py
Python
overcooked_ai_py/agents/benchmarking.py
ml-lab/overcooked_ai
ee6c2aecd01c8712218b34156246af8c247846aa
[ "MIT" ]
4
2021-07-05T15:06:53.000Z
2021-07-05T15:17:31.000Z
overcooked_ai_py/agents/benchmarking.py
ml-lab/overcooked_ai
ee6c2aecd01c8712218b34156246af8c247846aa
[ "MIT" ]
null
null
null
overcooked_ai_py/agents/benchmarking.py
ml-lab/overcooked_ai
ee6c2aecd01c8712218b34156246af8c247846aa
[ "MIT" ]
null
null
null
import json, copy import numpy as np from overcooked_ai_py.utils import save_pickle, load_pickle, cumulative_rewards_from_rew_list, save_as_json, load_from_json from overcooked_ai_py.planning.planners import NO_COUNTERS_PARAMS, MediumLevelPlanner from overcooked_ai_py.mdp.layout_generator import LayoutGenerator from o...
47.70936
156
0.685183
03f5e73317b06f18f17721cb21d2ea13b762fda7
8,708
py
Python
models/cifar_score_resnet.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
9
2021-03-30T20:43:26.000Z
2021-12-28T06:25:17.000Z
models/cifar_score_resnet.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
null
null
null
models/cifar_score_resnet.py
xhchrn/open_lth
6b3d04a12a2f868ce851bd09b330ea57957c1de6
[ "MIT" ]
2
2021-03-31T01:19:48.000Z
2021-08-02T13:41:32.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn import torch.nn.functional as F from foundations import hparams from lottery.desc import LotteryDesc from d...
34.832
102
0.607028
03f61a5cc67513a6e84dd076b24061b5703ba14d
32,440
py
Python
apps/iiif/manifests/export.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
18
2017-06-12T09:58:02.000Z
2021-10-01T11:14:34.000Z
apps/iiif/manifests/export.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
276
2019-04-26T20:13:01.000Z
2022-03-31T10:26:28.000Z
apps/iiif/manifests/export.py
ecds/readux
4eac8b48efef8126f4f2be28b5eb943c85a89c2e
[ "Apache-2.0" ]
7
2018-03-13T23:44:26.000Z
2021-09-15T17:54:55.000Z
"""Github export module""" import io import json import logging import os import re import shutil import subprocess import tempfile import zipfile from datetime import datetime from urllib.parse import urlparse # pylint: disable = unused-import, ungrouped-imports try: from yaml import CLoader as Loader, CDumper as ...
38.943577
829
0.608785
03f623338d5f71b16c98ba70b0c0e6ca4ce2c7ca
10,142
py
Python
src/physics.py
JohnRuhl/jbolo
9f7f3213734a22095a741d80df15f130857e00c4
[ "BSD-3-Clause" ]
2
2022-02-22T19:47:06.000Z
2022-03-10T19:46:33.000Z
src/physics.py
JohnRuhl/jbolo
9f7f3213734a22095a741d80df15f130857e00c4
[ "BSD-3-Clause" ]
null
null
null
src/physics.py
JohnRuhl/jbolo
9f7f3213734a22095a741d80df15f130857e00c4
[ "BSD-3-Clause" ]
null
null
null
# Mostly copied from bolo-calc's (https://github.com/KIPAC/bolo-calc) # physics.py and noise.py # which were inherited from BoloCalc (https://github.com/chill90/BoloCalc) # combined because they're related. # # Everything in here should be in SI units. import numpy as np import pickle as pkl # physical constants, et...
32.196825
132
0.649182
03f63b3146f0f61c2b9379f5d7bb8c74f52cdcb7
864
py
Python
src/test/tests/session/rect3d-contour.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/session/rect3d-contour.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/session/rect3d-contour.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: rect3d-contour.py # # Tests: mesh - 3D rectilinear, single domain # plots - Contour, with transparent contours # # Notes: This test case uses a session file to ensure tha...
34.56
85
0.525463
03f6538e7d10f131be1e4d4c3d633d1dadd87996
1,165
py
Python
src/ggrc_basic_permissions/migrations/versions/20170311142655_3ab8b37b04_clear_user_roles_with_invalid_context.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/ggrc_basic_permissions/migrations/versions/20170311142655_3ab8b37b04_clear_user_roles_with_invalid_context.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
10
2018-07-06T00:04:23.000Z
2021-02-26T21:13:20.000Z
src/ggrc_basic_permissions/migrations/versions/20170311142655_3ab8b37b04_clear_user_roles_with_invalid_context.py
Killswitchz/ggrc-core
2460df94daf66727af248ad821462692917c97a9
[ "ECL-2.0", "Apache-2.0" ]
1
2017-11-11T22:16:56.000Z
2017-11-11T22:16:56.000Z
# Copyright (C) 2017 Google Inc. # Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> """ Clear user roles with invalid context Create Date: 2017-03-11 14:26:55.133169 """ # disable Invalid constant name pylint warning for mandatory Alembic variables. # pylint: disable=invalid-name from ale...
27.093023
79
0.735622
03f691a11b20c906a7906173cc2b9fb177a496a6
2,811
py
Python
chapter_1_fundamentals/speak.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_1_fundamentals/speak.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_1_fundamentals/speak.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
34.703704
121
0.616507
03f695ac515dda6c1691585fb3c2abd1c34696de
222
py
Python
example/manage.py
wanganhong/flask-apidoc
0983d1ab78bfe0b86f46c987b42cbb43b61445f5
[ "MIT" ]
null
null
null
example/manage.py
wanganhong/flask-apidoc
0983d1ab78bfe0b86f46c987b42cbb43b61445f5
[ "MIT" ]
null
null
null
example/manage.py
wanganhong/flask-apidoc
0983d1ab78bfe0b86f46c987b42cbb43b61445f5
[ "MIT" ]
null
null
null
from views import app from flask_apidoc.commands import GenerateApiDoc from flask_script import Manager manager = Manager(app) manager.add_command('apidoc', GenerateApiDoc()) if __name__ == "__main__": manager.run()
22.2
48
0.783784
03f6967be99fcdd701b3aad61d50d71933b928da
2,054
py
Python
demo/sgmlop/benchsgml.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
demo/sgmlop/benchsgml.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
demo/sgmlop/benchsgml.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
# benchmark import time from xml.parsers import sgmlop import sgmllib SIZE = 16384 FILE = "test2.htm" bytes = len(open(FILE).read()) def t1(): fp = open(FILE) parser = sgmllib.SlowSGMLParser() while 1: data = fp.read(SIZE) if not data: break parser.feed(data) pa...
20.137255
46
0.509737
03f6c010171e57808a5ae8f62f8600ea7c505bde
6,280
py
Python
model/models/backbone.py
elviva404/food-detection-yolov5
796a0c1df6e9c9a705dff7782b3f9b213344f11b
[ "MIT" ]
24
2021-08-09T00:47:22.000Z
2022-03-06T09:38:48.000Z
model/models/backbone.py
elviva404/food-detection-yolov5
796a0c1df6e9c9a705dff7782b3f9b213344f11b
[ "MIT" ]
3
2021-07-19T16:01:37.000Z
2022-03-03T07:09:03.000Z
model/models/backbone.py
elviva404/food-detection-yolov5
796a0c1df6e9c9a705dff7782b3f9b213344f11b
[ "MIT" ]
8
2021-11-08T12:39:05.000Z
2022-01-30T14:59:37.000Z
# Author: Zylo117 import os import timm import numpy as np import torch from torch import nn from .yolo import YoloLoss, Yolov4, non_max_suppression, Yolov5 from model.utils.utils import download_pretrained_weights CACHE_DIR='./.cache' def get_model(args, config, num_classes): NUM_CLASSES = num_classes ...
29.763033
99
0.547452
03f6cf9e007ffffd5023bf30904838a7232cf16d
3,389
py
Python
wizard_builder/tests/settings.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
16
2016-06-21T04:05:24.000Z
2017-09-26T15:40:24.000Z
wizard_builder/tests/settings.py
SexualHealthInnovations/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
141
2016-06-21T20:46:46.000Z
2017-09-28T00:20:49.000Z
wizard_builder/tests/settings.py
project-callisto/django-wizard-builder
f5effe8c462313f16be914b562dbea8ea796b672
[ "BSD-3-Clause" ]
7
2017-10-04T22:52:18.000Z
2018-05-31T17:14:39.000Z
import os from django.utils.crypto import get_random_string BASE_DIR = os.path.dirname(os.path.abspath(__file__)) SECRET_KEY = os.getenv("SECRET_KEY", default='secret key') DEBUG = True ROOT_URLCONF = "wizard_builder.tests.urls" APP_URL = os.environ.get('APP_URL', 'localhost') DATABASES = { "default": { ...
28.241667
101
0.590735
03f6f196ecffb13e59bac613fd37921d72127598
349
py
Python
warg/decorators/caching/__init__.py
cnheider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2018-11-30T09:14:28.000Z
2018-11-30T09:14:28.000Z
warg/decorators/caching/__init__.py
aivclab/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
49
2019-04-02T12:06:10.000Z
2019-08-31T14:30:12.000Z
warg/decorators/caching/__init__.py
cnHeider/warg
4bcc5d3e86dd843773ca6cbca21bcab3b8ae84eb
[ "Apache-2.0" ]
1
2019-03-16T13:56:03.000Z
2019-03-16T13:56:03.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 30/03/2020 """ from pathlib import Path with open(Path(__file__).parent / "README.md", "r") as this_init_file: __doc__ += this_init_file.read() from .look_up_table import * fro...
20.529412
70
0.65616
03f71651783680f7493e6cd61f98bb5e6c06d6b2
3,507
py
Python
estampes/tools/atom.py
jbloino/estampes
39d248cba3541f684c4684661a1664fc42157bdb
[ "MIT" ]
null
null
null
estampes/tools/atom.py
jbloino/estampes
39d248cba3541f684c4684661a1664fc42157bdb
[ "MIT" ]
2
2021-06-07T12:51:35.000Z
2021-07-14T17:14:24.000Z
estampes/tools/atom.py
jbloino/estampes
39d248cba3541f684c4684661a1664fc42157bdb
[ "MIT" ]
null
null
null
"""Toolbox for atoms Module providing tools to manipulate data relative to atoms. Methods ------- convert_labsymb Converts between atomic symbols and labels convert_atoms_id Converts between atoms identifiers. """ import typing as tp from estampes.data.atom import ELEMENTS # ============== # MODULE METHOD...
28.056
74
0.528372
03f7293adf1beda964b8285b1b8f4fc959871e51
3,632
py
Python
aict_tools/scripts/split_data.py
seinecke/aict-tools
87601eba47d77385ac35145fd0b85d7aa7d66c71
[ "MIT" ]
null
null
null
aict_tools/scripts/split_data.py
seinecke/aict-tools
87601eba47d77385ac35145fd0b85d7aa7d66c71
[ "MIT" ]
null
null
null
aict_tools/scripts/split_data.py
seinecke/aict-tools
87601eba47d77385ac35145fd0b85d7aa7d66c71
[ "MIT" ]
null
null
null
import click import numpy as np import logging from fact.io import read_data, write_data import warnings from math import ceil log = logging.getLogger() def split_indices(idx, n_total, fractions): ''' splits idx containing n_total distinct events into fractions given in fractions list. returns the numbe...
40.808989
100
0.678965
03f7347b1e5788db1aea6e7377deb7b2d402e4ff
2,919
py
Python
ThirdParty/Twisted/twisted/lore/texi.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/Twisted/twisted/lore/texi.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
4
2017-02-19T23:58:13.000Z
2019-11-01T15:31:22.000Z
ThirdParty/Twisted/twisted/lore/texi.py
OpenGeoscience/VTK
a373e975b9284a022f43a062ebf5042bb17b4e44
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # from cStringIO import StringIO import os, re from twisted.python import text from twisted.web import domhelpers import latex, tree spaceRe = re.compile('\s+') def texiEscape(text): return spaceRe.sub(text, ' ') entities = latex.entities...
26.536364
72
0.615622
03f74414ed8517dce1ad18da9edf6a3f4d12a267
570
py
Python
test/torch/hook/test_hook_args.py
Ankit-Dhankhar/PySyft
750bd2c3987a570ef1dc8554b933696d416724c7
[ "Apache-2.0" ]
1
2019-07-09T09:57:23.000Z
2019-07-09T09:57:23.000Z
test/torch/hook/test_hook_args.py
souravs17031999/PySyft
cd0a134288ab041884537b04eb65358c4d53a471
[ "Apache-2.0" ]
null
null
null
test/torch/hook/test_hook_args.py
souravs17031999/PySyft
cd0a134288ab041884537b04eb65358c4d53a471
[ "Apache-2.0" ]
1
2021-04-18T15:27:15.000Z
2021-04-18T15:27:15.000Z
from syft.frameworks.torch.hook import hook_args from syft.generic import pointers import torch import numpy as np def test_build_rule_syft_tensors_and_pointers(): pointer = pointers.PointerTensor( id=1000, location="location", owner="owner", garbage_collect_data=False ) result = hook_args.build_r...
30
79
0.675439
03f7472c1367530b0083e6ba172f28254b7a5593
4,625
py
Python
src/dataset/dataset.py
Harmonicahappy/MASTER-TF
27e4306d827d50ee53ecbeeebba2259d2d37ecbe
[ "MIT" ]
128
2020-07-06T06:59:17.000Z
2022-03-29T21:28:48.000Z
src/dataset/dataset.py
Harmonicahappy/MASTER-TF
27e4306d827d50ee53ecbeeebba2259d2d37ecbe
[ "MIT" ]
19
2020-07-23T07:16:49.000Z
2022-02-09T23:49:28.000Z
src/dataset/dataset.py
Harmonicahappy/MASTER-TF
27e4306d827d50ee53ecbeeebba2259d2d37ecbe
[ "MIT" ]
39
2020-07-20T01:15:25.000Z
2021-09-18T13:04:18.000Z
# ______ __ # / \ / | # /$$$$$$ | __ __ __ ______ _______ $$ | __ __ # $$ | $$ |/ | / | / | / \ / \ $$ | / | / | # $$ | $$ |$$ | $$ | $$ |/$...
44.471154
117
0.448649
03f74bfd94279154447204038a888a2f05e1e416
8,199
py
Python
angrmanagement/ui/widgets/qgraph.py
mephi42/angr-management
be2ae29279f75b8c057fbad5af0d80d468852059
[ "BSD-2-Clause" ]
null
null
null
angrmanagement/ui/widgets/qgraph.py
mephi42/angr-management
be2ae29279f75b8c057fbad5af0d80d468852059
[ "BSD-2-Clause" ]
null
null
null
angrmanagement/ui/widgets/qgraph.py
mephi42/angr-management
be2ae29279f75b8c057fbad5af0d80d468852059
[ "BSD-2-Clause" ]
1
2022-02-04T06:12:32.000Z
2022-02-04T06:12:32.000Z
import logging from PySide2.QtWidgets import QGraphicsScene, QGraphicsView, QStyleOptionGraphicsItem, QApplication,\ QGraphicsSceneMouseEvent from PySide2.QtGui import QPainter, QMouseEvent, QImage, QVector2D from PySide2.QtCore import Qt, QSize, QEvent, QMarginsF _l = logging.getLogger(__name__) class QBaseGra...
33.465306
118
0.608855
03f74d2c76538cb2f0c7aec3ab9fb171313bdf68
11,959
py
Python
ngsutils/bam/pair.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
57
2015-03-09T01:26:45.000Z
2022-02-22T07:26:01.000Z
ngsutils/bam/pair.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-02-03T23:24:46.000Z
2022-03-16T20:08:10.000Z
ngsutils/bam/pair.py
bgruening/ngsutils
417e90dc1918fb553dd84990f2c54bd8cea8f44d
[ "BSD-3-Clause" ]
33
2015-01-18T16:47:47.000Z
2022-02-22T07:28:09.000Z
#!/usr/bin/env python ## category General ## desc Given two separately mapped paired files, re-pair the files """ Given two separately mapped paired-end files, re-pair the files, selecting the most likely pairing partners based upon strand, insert distance, and maximizing alignment scores. It is very important that th...
32.854396
165
0.511163
03f75de40b0d8c9bf988927e0f30379591ad2472
351
py
Python
libra_client/lbrtypes/account_config/resources/designated_dealer.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/lbrtypes/account_config/resources/designated_dealer.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/lbrtypes/account_config/resources/designated_dealer.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from libra_client.lbrtypes.event import EventHandle from libra_client.canoser import Struct, Uint64 from libra_client.move_core_types.move_resource import MoveResource class DesignatedDealer(Struct, MoveResource): MODULE_NAME = "DesignatedDealer" STRUCT_NAME = "Dealer" _fields = [ ("received_mint...
25.071429
67
0.769231
03f7609cc44ea16689c485db4f494112e85ce31e
1,694
py
Python
tryalgo/manacher.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/manacher.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
tryalgo/manacher.py
xcarcelle/tryalgo
c159fbffbea0a4e8b70e8898c31c62c7e08a3865
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Longest palindrome in a string by Manacher # jill-jenn vie et christoph durr - 2014-2018 # http://leetcode.com/2011/11/longest-palindromic-substring-part-ii.html # Algorithme de Manacher # problème: plus long palindrome # entrée: chaîne s # sortie: indices i, j tel que...
31.962264
72
0.536009
03f7661064683e3a6a9b4090d51ced7b8852ac7f
735
py
Python
03-Oop-Implementation/AttributeManipulation.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
1
2021-01-10T12:06:26.000Z
2021-01-10T12:06:26.000Z
03-Oop-Implementation/AttributeManipulation.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
03-Oop-Implementation/AttributeManipulation.py
NguyenQuangBinh803/Python-Heritage
7da72b2926cefc4903086a1cab7de3a64764d648
[ "MIT" ]
null
null
null
class ColorSpace: def __init__(self): self.red = 100 self.green = 100 self.blue = 100 def __getattr__(self, item): if item == "rgb": return (self.red, self.green, self.blue) elif item == "hexcolor": return "#{0:02x}{1:02x}{2:02x}".format(self.red,...
27.222222
83
0.529252
03f7762773fbabf519634a0ca031829e96a6c921
6,805
py
Python
cloudmersive_validate_api_client/models/vat_lookup_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
null
null
null
cloudmersive_validate_api_client/models/vat_lookup_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
null
null
null
cloudmersive_validate_api_client/models/vat_lookup_response.py
doc22940/cloudmersive.apiclient.python
8646291f45ebd7c6572a296e30f693693a6782c4
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ validateapi The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API. # noqa: E501 OpenAPI spec version: v1 Ge...
29.586957
240
0.602057
03f778e8ab2ad1439ba49475ecf4748285d75f45
27,957
py
Python
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/ttProgram.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
2
2019-05-24T18:19:18.000Z
2020-09-17T10:23:13.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/ttProgram.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
9
2019-06-15T21:31:27.000Z
2021-05-08T18:55:51.000Z
run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/ttLib/tables/ttProgram.py
moyogo/tachyfont
05c8b3e7357e7a13af37ef81b719a0ff749105a5
[ "Apache-2.0" ]
null
null
null
"""ttLib.tables.ttProgram.py -- Assembler/disassembler for TrueType bytecode programs.""" from __future__ import print_function, division, absolute_import from fontTools.misc.py23 import * from fontTools.misc.textTools import num2binary, binary2num, readHex import array import re # first, the list of instructions tha...
60.512987
3,974
0.418858
03f79e5e472f761f6217705c2cbb759b9780da6a
11,852
py
Python
kusanagi/shell/experiment_utils.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
22
2018-08-04T04:51:27.000Z
2021-11-03T14:22:16.000Z
kusanagi/shell/experiment_utils.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
1
2021-11-16T12:41:14.000Z
2021-11-16T12:41:14.000Z
kusanagi/shell/experiment_utils.py
tsetimmy/kusanagi
868b301b6064af7d21f0f716aa4390e402f2e2ec
[ "MIT" ]
7
2018-08-04T04:51:29.000Z
2021-07-17T07:26:04.000Z
import numpy as np from lasagne import nonlinearities from matplotlib import pyplot as plt from kusanagi import utils from kusanagi.ghost import (algorithms, regression, control, optimizers) from kusanagi.base import apply_controller, train_dynamics, ExperienceDataset def plot_rollout(rollout_fn, exp, *args, **kwar...
34.353623
78
0.590786
03f7a2f38a0931dff7c3e09f2afd87649fde3534
966
py
Python
grizli/tests/test_utils.py
gwalth/grizli
9d2609027dfef2e4efde87b0e8256a5e4ad36565
[ "MIT" ]
null
null
null
grizli/tests/test_utils.py
gwalth/grizli
9d2609027dfef2e4efde87b0e8256a5e4ad36565
[ "MIT" ]
null
null
null
grizli/tests/test_utils.py
gwalth/grizli
9d2609027dfef2e4efde87b0e8256a5e4ad36565
[ "MIT" ]
null
null
null
import unittest import numpy as np from .. import utils class UtilsTester(unittest.TestCase): def test_log_zgrid(self): """ Logarithmic-spaced grid """ value = np.array([0.1, 0.21568801, 0.34354303, 0.48484469, 0.64100717, 0.8135934]) ...
30.1875
136
0.512422
03f7ce2dc7cf13586cc56a07d422e057406703bd
9,261
py
Python
src/tar/src/retrieve/translate_retrieve_snli.py
lmarent/TranslateAlignRetrive
e3a1e5fcf055c89613779c250e730f2d985ede28
[ "MIT" ]
1
2021-04-25T08:15:53.000Z
2021-04-25T08:15:53.000Z
src/tar/src/retrieve/translate_retrieve_snli.py
lmarent/TranslateAlignRetrive
e3a1e5fcf055c89613779c250e730f2d985ede28
[ "MIT" ]
null
null
null
src/tar/src/retrieve/translate_retrieve_snli.py
lmarent/TranslateAlignRetrive
e3a1e5fcf055c89613779c250e730f2d985ede28
[ "MIT" ]
null
null
null
import json import time import subprocess import csv from tqdm import tqdm import os from collections import defaultdict import pickle import argparse import translate_retrieve_utils as utils from nltk import sent_tokenize import logging import stanza logging.basicConfig(level=logging.INFO) def split_sentences(text,...
47.737113
119
0.595292