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
c8ce90eb1980e43ef1a14e28740ddebd93cfc37d
1,064
py
Python
app/customer/forms.py
ueg1990/customer-info
b6a6cbf376df75d77536e79c3a048a3f6f01294e
[ "Apache-2.0" ]
null
null
null
app/customer/forms.py
ueg1990/customer-info
b6a6cbf376df75d77536e79c3a048a3f6f01294e
[ "Apache-2.0" ]
null
null
null
app/customer/forms.py
ueg1990/customer-info
b6a6cbf376df75d77536e79c3a048a3f6f01294e
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm as Form from wtforms import BooleanField, HiddenField, StringField, SubmitField, TextAreaField from wtforms.validators import Email, Length, Required class CustomerSearchForm(Form): phone_number = StringField('Phone Number', validators=[Required(), L...
36.689655
86
0.697368
c8ce9b874f1901106e4c5a3373c00448de2d7049
1,402
py
Python
hs_swat_modelinstance/migrations/0003_auto_20151013_1955.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_swat_modelinstance/migrations/0003_auto_20151013_1955.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_swat_modelinstance/migrations/0003_auto_20151013_1955.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('hs_core', '0006_auto_20150917_1515'), ('hs_model_program', '0003_auto_20150813_1730'), ('hs_swat_modelinstance', '0002_auto_20150813_1726'), ] operations =...
29.208333
137
0.543509
c8cec5ae9b059daf9f8d2945029dc63d866b8ee3
677
py
Python
tpot_api/apis/outcome.py
workforce-data-initiative/etp-api
9ad4c377f06d42b186661038dad4b026ca60584b
[ "MIT" ]
2
2017-06-23T22:55:13.000Z
2017-08-08T14:57:39.000Z
tpot_api/apis/outcome.py
workforce-data-initiative/tpot-api
9ad4c377f06d42b186661038dad4b026ca60584b
[ "MIT" ]
12
2017-03-29T21:47:04.000Z
2018-06-27T12:05:48.000Z
tpot_api/apis/outcome.py
workforce-data-initiative/etp-api
9ad4c377f06d42b186661038dad4b026ca60584b
[ "MIT" ]
3
2017-08-08T02:03:46.000Z
2017-08-10T19:04:20.000Z
from flask_restplus import Namespace, Resource, fields from tpot_api.database import model api = Namespace('outcome', description='TPOT outcome scorecards') @api.route('/<int:provider_id>/<int:program_id>') @api.param('provider_id', 'The provider identifier') @api.param('program_id', 'The program CIP code') @api.res...
35.631579
74
0.70901
c8ced6a3ca0f296ffe236bfde0aaa35876206083
5,818
py
Python
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-01-24T08:54:57.000Z
2022-01-24T08:54:57.000Z
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/activestamp/aio/operations/_resource_guard_proxies_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# pylint: disable=too-many-lines # 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) AutoRe...
44.753846
195
0.662083
c8cedf3ff71d7a994ee209a9cdea89e2b09129fb
248
py
Python
camera/PIR_test.py
jutako/raspi
f69d15a48765c85960e7d7da175d4f96cb1dfee3
[ "MIT" ]
null
null
null
camera/PIR_test.py
jutako/raspi
f69d15a48765c85960e7d7da175d4f96cb1dfee3
[ "MIT" ]
null
null
null
camera/PIR_test.py
jutako/raspi
f69d15a48765c85960e7d7da175d4f96cb1dfee3
[ "MIT" ]
null
null
null
#!/usr/bin/python import RPi.GPIO as GPIO import time PIN = 12 GPIO.setmode(GPIO.BCM) GPIO.setup(PIN, GPIO.IN) while True: time.sleep(0.5) if (GPIO.input(PIN)): print("PIN up...") else: print("PIN down...")
13.052632
29
0.572581
c8cee0e4d22814d98b3295daccb897da3975620e
42,205
py
Python
src/test/tinc/tinctest/models/scenario/test/test_scenario_test_case.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/tinctest/models/scenario/test/test_scenario_test_case.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/tinctest/models/scenario/test/test_scenario_test_case.py
rodel-talampas/gpdb
9c955e350334abbd922102f289f782697eb52069
[ "PostgreSQL", "Apache-2.0" ]
32
2017-08-31T12:50:52.000Z
2022-03-01T07:34:53.000Z
""" 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 file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
46.635359
178
0.736216
c8cef45686f52a8acd4f0d23289d3c211a08da09
741
py
Python
Test29_tf/apis/reduce_mean.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
3
2018-07-29T17:31:58.000Z
2019-06-27T10:36:34.000Z
Test29_tf/apis/reduce_mean.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
null
null
null
Test29_tf/apis/reduce_mean.py
hooloong/My_TensorFlow
ef115989035b9ae14938dca47c0814b0d16dd6ba
[ "MIT" ]
1
2019-02-18T02:27:39.000Z
2019-02-18T02:27:39.000Z
''' tf.reduce_mean reduce_mean( input_tensor, axis=None, keep_dims=False, name=None, reduction_indices=None ) 功能说明: 计算张量 input_tensor 平均值 参数列表: 参数名 必选 类型 说明 input_tensor 是 张量 输入待求平均值的张量 axis 否 None、0、1 None:全局求平均值;0:求每一列平均值;1:求每一行平均值 keep_dims 否 Boolean 保留原来的维度(例如不会从二维矩阵降为一维向量) name 否...
21.171429
50
0.701754
c8cf3f6f7ca3fa338ad151331f322b58ab931cff
205
py
Python
datasist/__init__.py
cemeiq/datasist
9415fd52c04b2b5af35f020c1c51185b5c4fdcf2
[ "MIT" ]
146
2019-08-15T18:18:26.000Z
2022-03-22T20:56:35.000Z
datasist/__init__.py
Justus-coded/datasist
3b718813666e2111faf41df9f4f0ed5e7b459584
[ "MIT" ]
33
2019-08-20T21:13:27.000Z
2021-07-28T18:08:28.000Z
datasist/__init__.py
Justus-coded/datasist
3b718813666e2111faf41df9f4f0ed5e7b459584
[ "MIT" ]
93
2019-08-19T19:58:41.000Z
2022-02-24T05:20:40.000Z
from datasist import feature_engineering from datasist import structdata from datasist import timeseries from datasist import visualizations from datasist import model from datasist import project
25.625
41
0.843902
c8cf4423f6f4167f61ee470163e049151a701e93
13,882
py
Python
users/api_views.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
users/api_views.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
users/api_views.py
Ibrahem3amer/bala7
70638c121ea85ff0e6a650c5f2641b0b3b04d6d0
[ "Apache-2.0" ]
null
null
null
import json from rest_framework.permissions import IsAuthenticated from rest_framework import status from rest_framework.decorators import api_view, permission_classes from rest_framework.response import Response from django.contrib.auth import authenticate, login from users.serializers import * from cms.serializers im...
32.663529
110
0.648898
c8cf4b1df78f06217b3d46bb55915042744403c3
2,384
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/models/lease_container_request_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/models/lease_container_request_py3.py
pjquirk/azure-sdk-for-python
cbf02ec4f177b96eae1dbbba87c34c2c93880150
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-storage/azure/mgmt/storage/v2018_07_01/models/lease_container_request_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 ...
41.824561
151
0.641779
c8cf5685aee8e2c32d5ac596dd664a52b34ad198
13,259
py
Python
python_modules/dagster/dagster/core/code_pointer.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/code_pointer.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
python_modules/dagster/dagster/core/code_pointer.py
kstennettlull/dagster
dd6f57e170ff03bf145f1dd1417e0b2c3156b1d6
[ "Apache-2.0" ]
null
null
null
import importlib import inspect import os import sys from abc import ABC, abstractmethod from types import ModuleType from typing import Callable, List, NamedTuple, Optional, cast from dagster import check from dagster.core.errors import DagsterImportError, DagsterInvariantViolationError from dagster.serdes import whi...
40.796923
100
0.656158
c8cf79176778ceeafccb2a727d303901d0d55b41
5,545
py
Python
utils/reid_metric.py
Qidian213/NAIC2019
23e05a8a096168ccfa4d1743467fdf78ffcaabba
[ "MIT" ]
null
null
null
utils/reid_metric.py
Qidian213/NAIC2019
23e05a8a096168ccfa4d1743467fdf78ffcaabba
[ "MIT" ]
null
null
null
utils/reid_metric.py
Qidian213/NAIC2019
23e05a8a096168ccfa4d1743467fdf78ffcaabba
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ import numpy as np import torch from ignite.metrics import Metric from data.datasets.eval_reid import eval_func,eval_submit from .re_ranking import re_ranking from .distance import low_memory_local_dist class R1_mAP(Metric): def __...
37.214765
113
0.617674
c8cfb930179053d45d6c7f6cd64065ef4bf1a491
1,124
py
Python
backend/users/migrations/0008_votenotification.py
Carbonara-Project/Carbonara-Web
be1fac46ed3e4f590f3d885e646970a29ec43cb5
[ "MIT" ]
2
2020-01-07T12:35:11.000Z
2021-09-18T10:30:57.000Z
backend/users/migrations/0008_votenotification.py
Carbonara-Project/Carbonara-Web
be1fac46ed3e4f590f3d885e646970a29ec43cb5
[ "MIT" ]
null
null
null
backend/users/migrations/0008_votenotification.py
Carbonara-Project/Carbonara-Web
be1fac46ed3e4f590f3d885e646970a29ec43cb5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-04-06 17:49 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
34.060606
123
0.619217
c8cfe7366b1c01da073de68371bb0747bc118a44
7,814
py
Python
syndicate/core/resources/__init__.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
1
2020-08-29T16:38:50.000Z
2020-08-29T16:38:50.000Z
syndicate/core/resources/__init__.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
syndicate/core/resources/__init__.py
Vyhrovyk/aws-syndicate
ee86eb102fe2d86b660e5d3162f286f2e173bc7a
[ "Apache-2.0" ]
null
null
null
""" Copyright 2018 EPAM Systems, 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 or agreed...
48.234568
86
0.608395
c8d029096d519e008664058013afa4a303143bb3
8,158
py
Python
train_ppo_5.py
Sopitta/RL-Pong
8b389856d0492dac1d0fc5f4d5459809948fb14a
[ "MIT" ]
null
null
null
train_ppo_5.py
Sopitta/RL-Pong
8b389856d0492dac1d0fc5f4d5459809948fb14a
[ "MIT" ]
null
null
null
train_ppo_5.py
Sopitta/RL-Pong
8b389856d0492dac1d0fc5f4d5459809948fb14a
[ "MIT" ]
null
null
null
import gym from src.agents import ppo_agent, DQNagent, ppo_agent_stack_5 import argparse import numpy as np import torch import random import matplotlib.pyplot as plt import matplotlib from distutils.util import strtobool import wimblepong from parallel_env import ParallelEnvs from stable_baselines3.common.vec_env impo...
39.221154
120
0.635572
c8d04ef63a498b76f6ac28cf469fc6a5ae287125
1,039
py
Python
util.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
1
2020-04-29T18:55:56.000Z
2020-04-29T18:55:56.000Z
util.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
null
null
null
util.py
andrewdyates/geo_api
3c60afcdeab8af472e0c03587ee52c39101bfcef
[ "Unlicense" ]
null
null
null
#!/usr/bin/python from geo import * def get_gpl(gpl_brief=None, gpl_data=None, is_tab=True): """Return geo.Local_GPL object from GPL file names. Args: gpl_brief: str of file path to GPL file meta data brief (as from geo_downloader) gpl_data: str of file path to GPL row descriptions IN DATA ROW ORDER (as f...
37.107143
97
0.702599
c8d062d81a8ea2fa5b4562c5496ceb080dd9592d
1,026
py
Python
ckanext/ckanext-validate_links/ckanext/validate_links/plugin.py
eetumans/api-catalog
a32a52c48425be8b71d83c60c93b26db7787e632
[ "MIT" ]
null
null
null
ckanext/ckanext-validate_links/ckanext/validate_links/plugin.py
eetumans/api-catalog
a32a52c48425be8b71d83c60c93b26db7787e632
[ "MIT" ]
null
null
null
ckanext/ckanext-validate_links/ckanext/validate_links/plugin.py
eetumans/api-catalog
a32a52c48425be8b71d83c60c93b26db7787e632
[ "MIT" ]
null
null
null
import ckan.plugins as plugins import ckan.plugins.toolkit as toolkit def admin_only(context, data_dict=None): return {'success': False, 'msg': 'Access restricted to system administrators'} class Validate_LinksPlugin(plugins.SingletonPlugin): plugins.implements(plugins.IConfigurer) plugins.implements(pl...
35.37931
98
0.740741
c8d0982dc6dbb53288b710cda05177ba9a0fe94d
969
py
Python
src/regnet/helpers/quaternion/quat_op.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
src/regnet/helpers/quaternion/quat_op.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
6
2020-09-25T22:41:00.000Z
2021-06-08T21:50:37.000Z
src/regnet/helpers/quaternion/quat_op.py
markrofail/multi-modal-deep-learning-for-vehicle-sensor-data-abstraction-and-attack-detection
2f252c072f3091bb27506978dd90311f7f82f386
[ "MIT" ]
null
null
null
import numpy as np def quat_mult(a, b): """ Multiplies two quat's :param: a the first operand :param: b the second operand :retruns: resulting quat """ ax, ay, az, aw = a[0], a[1], a[2], a[3] bx, by, bz, bw = b[0], b[1], b[2], b[3] out = np.zeros((4), dtype=float) out[0] = ax * bw + aw * bx + ay ...
24.846154
50
0.496388
c8d0ca8b476b0ff86284622554655c0314d53225
1,480
py
Python
arjuna/interact/gui/auto/automator/webalert_handler.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/interact/gui/auto/automator/webalert_handler.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
arjuna/interact/gui/auto/automator/webalert_handler.py
ChandraMouliDisturbs/arjuna
4965622fbb01a5e5b6459110c413accc5c483424
[ "Apache-2.0" ]
null
null
null
# This file is a part of Arjuna # Copyright 2015-2020 Rahul Verma # Website: www.RahulVerma.net # 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...
30.833333
117
0.692568
c8d0fe31dec73444a0554c8314fad53d828d0917
54
py
Python
forge/trinity/__init__.py
narendasan/neural-mmo
36a588db0021cccd7275cebef2cbdc5ee8eb40d5
[ "MIT" ]
4
2020-11-08T22:33:15.000Z
2020-11-21T15:45:43.000Z
forge/trinity/__init__.py
ThomasCloarec/neural-mmo
094744f49ad2cff179ec21e27285258903b70098
[ "MIT" ]
1
2021-09-30T07:57:46.000Z
2021-10-02T00:39:11.000Z
forge/trinity/__init__.py
ThomasCloarec/neural-mmo
094744f49ad2cff179ec21e27285258903b70098
[ "MIT" ]
2
2021-09-16T16:43:03.000Z
2021-09-28T18:12:41.000Z
from .dataframe import Dataframe from .env import Env
18
32
0.814815
c8d12c432e6ea52883e6b2996347cc3a26ca8781
1,078
py
Python
planetmint/backend/utils.py
liviu-lesan/planetmint
54cf8e45108947aa8282ddaaf127d08e06ce842e
[ "Apache-2.0" ]
null
null
null
planetmint/backend/utils.py
liviu-lesan/planetmint
54cf8e45108947aa8282ddaaf127d08e06ce842e
[ "Apache-2.0" ]
null
null
null
planetmint/backend/utils.py
liviu-lesan/planetmint
54cf8e45108947aa8282ddaaf127d08e06ce842e
[ "Apache-2.0" ]
null
null
null
# Copyright © 2020 Interplanetary Database Association e.V., # Planetmint and IPDB software contributors. # SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) # Code is Apache-2.0 and docs are CC-BY-4.0 class ModuleDispatchRegistrationError(Exception): """Raised when there is a problem registering dispatched fun...
35.933333
76
0.641929
c8d15eee1c005428b258c5767b52b3dad90ed555
3,543
bzl
Python
internal/jest_node_test/defs.bzl
ecosia/bazel_rules_nodejs_contrib
cfb08409d0b59d05ef88354f1cb638c05a35bb6d
[ "Apache-2.0" ]
14
2019-02-14T07:37:30.000Z
2020-01-09T12:47:00.000Z
internal/jest_node_test/defs.bzl
jasongwartz/bazel_rules_nodejs_contrib
cfb08409d0b59d05ef88354f1cb638c05a35bb6d
[ "Apache-2.0" ]
9
2019-01-14T23:02:22.000Z
2019-11-16T14:38:22.000Z
internal/jest_node_test/defs.bzl
ecosia/bazel_rules_nodejs_contrib
cfb08409d0b59d05ef88354f1cb638c05a35bb6d
[ "Apache-2.0" ]
4
2019-02-20T15:22:37.000Z
2019-11-05T10:56:28.000Z
load("@build_bazel_rules_nodejs//:defs.bzl", _nodejs_test = "nodejs_test") def _jest_node_test_impl(ctx): test_sources = ctx.files.srcs config_args = "--no-watchman -c " + ctx.file.config.short_path if ctx.attr.coverage_threshold: config_args += " --coverageThreshold " + ctx.attr.coverage_thresho...
28.344
121
0.539091
c8d164cd112aeeacf15946b8919f06ba3cfca8c4
2,560
py
Python
aim/storage/structured/db.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/storage/structured/db.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
aim/storage/structured/db.py
admariner/aim
4c143ea40acf3531abfa69f66503428d73d9fedc
[ "Apache-2.0" ]
null
null
null
import os from weakref import WeakValueDictionary from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session from aim.storage.migrations.utils import upgrade_database from aim.storage.structured.sql_engine.factory import ModelMappedFactory as ObjectFactory from collections import de...
28.764045
108
0.650391
c8d17629cbb591d2b19e02ff195ed870c4b4c5ed
40,733
py
Python
fedml_api/data_preprocessing/edge_case_examples/data_loader.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
1
2022-03-23T06:35:31.000Z
2022-03-23T06:35:31.000Z
fedml_api/data_preprocessing/edge_case_examples/data_loader.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
fedml_api/data_preprocessing/edge_case_examples/data_loader.py
Little0o0/FedML
720015c90fcfec88d465a81b1e8fb45676dce9fb
[ "Apache-2.0" ]
null
null
null
import copy import copy import json import logging import pickle import numpy as np import torch import torch.nn.functional as F import torch.utils.data as data import torchvision from torch.autograd import Variable from torchvision import datasets, transforms from .datasets import MNIST_truncated, EMNIST_truncated, ...
57.04902
151
0.561977
c8d18f20f42d68e20deecc75b8c109a38370e22c
4,124
py
Python
ttt_package/libs/transpose.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
ttt_package/libs/transpose.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
4
2021-03-25T19:52:40.000Z
2021-12-12T17:57:11.000Z
ttt_package/libs/transpose.py
Ipgnosis/tic_tac_toe
e1519b702531965cc647ff37c1c46d72f4b3b24e
[ "BSD-3-Clause" ]
null
null
null
# rotate and reflect functions # written by Russell on 4/7/20 # rewritten by Russsell on 5/7/20 to accomodate game data structure change # added numpy array iterations #import numpy as np # rotate functions: # takes a board as a parameter and returns that board rotated # board = list (2, 3, 4, 5, 6) # ( '', '', 'X', ...
25.45679
77
0.559166
c8d1d931d936ca2587bc9e7dca9a0717edddd792
1,335
py
Python
alipay/aop/api/domain/AlipayInsSceneInsserviceprodItemQueryModel.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/AlipayInsSceneInsserviceprodItemQueryModel.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/AlipayInsSceneInsserviceprodItemQueryModel.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 * class AlipayInsSceneInsserviceprodItemQueryModel(object): def __init__(self): self._page = None self._page_size = None @property def page(self): return self._page ...
23.839286
69
0.573034
c8d2516ba1f09a7834a35fb2fa5745e93672f779
4,368
py
Python
squawk/sql.py
samuel/squawk
7b142f06a145233f38ff8f74bca4126adf73e5c0
[ "BSD-3-Clause" ]
39
2015-01-16T03:35:51.000Z
2022-01-24T13:36:54.000Z
squawk/sql.py
samuel/squawk
7b142f06a145233f38ff8f74bca4126adf73e5c0
[ "BSD-3-Clause" ]
null
null
null
squawk/sql.py
samuel/squawk
7b142f06a145233f38ff8f74bca4126adf73e5c0
[ "BSD-3-Clause" ]
4
2015-02-27T13:41:39.000Z
2019-08-14T14:51:24.000Z
# This file is camelCase to match pyparsing __all__ = ["sql_parser"] from pyparsing import Literal, CaselessLiteral, Word, Upcase, delimitedList, Optional, \ Combine, Group, alphas, nums, alphanums, ParseException, Forward, oneOf, quotedString, \ ZeroOrMore, restOfLine, Keyword, downcaseTokens, Suppress, str...
42
154
0.679716
c8d26b24930ecb841deada779bb1f48b5d6731ee
4,020
py
Python
test.py
merytouceda/new_job_hpc
e11c6014bc9b95267a7a563f17c5484bcfea9997
[ "MIT" ]
null
null
null
test.py
merytouceda/new_job_hpc
e11c6014bc9b95267a7a563f17c5484bcfea9997
[ "MIT" ]
null
null
null
test.py
merytouceda/new_job_hpc
e11c6014bc9b95267a7a563f17c5484bcfea9997
[ "MIT" ]
null
null
null
""" Test suite for new_job.py""" import os import re import random import string from subprocess import getstatusoutput from shutil import rmtree # from new import get_defaults # what is happening here? PRG = './new_job.py' # GOOD1 = './expected/inputs1.slurm' # only need it if I use other types of tests # GOOD2...
27.724138
82
0.525622
c8d28b29cddf94770d381105b1fd6711314fbefe
203
py
Python
model/head/anchorless/anchorless.py
lsrock1/Anchorless_SSD
04194711e5676bd263e858b5cd5f80a4da53531a
[ "MIT" ]
null
null
null
model/head/anchorless/anchorless.py
lsrock1/Anchorless_SSD
04194711e5676bd263e858b5cd5f80a4da53531a
[ "MIT" ]
null
null
null
model/head/anchorless/anchorless.py
lsrock1/Anchorless_SSD
04194711e5676bd263e858b5cd5f80a4da53531a
[ "MIT" ]
null
null
null
from .anchorless_head import AnchorLessHead from .anchorless_loss import AnchorLessLoss def build_anchorless(cfg, in_channels): return AnchorLessHead(cfg, in_channels, cfg.ANCHORLESS.OUT_CHANNELS)
29
72
0.837438
c8d2bfc8eb3f71792462d6259486f5df3dd2000f
1,107
py
Python
pre_commit/error_handler.py
bukzor/pre-commit
7d546c1f815a41f17af276e2f8d0636efdd87a6d
[ "MIT" ]
null
null
null
pre_commit/error_handler.py
bukzor/pre-commit
7d546c1f815a41f17af276e2f8d0636efdd87a6d
[ "MIT" ]
null
null
null
pre_commit/error_handler.py
bukzor/pre-commit
7d546c1f815a41f17af276e2f8d0636efdd87a6d
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import contextlib import io import os.path import traceback from pre_commit.errors import FatalError from pre_commit.store import Store # For testing purposes class PreCommitSystemExit(SystemExit): ...
25.744186
78
0.68654
c8d31b494003399c9eaa47e36ef4fe76009aa3c6
1,226
py
Python
python/src/aoc/year2017/day12_search.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
1
2021-02-16T21:30:04.000Z
2021-02-16T21:30:04.000Z
python/src/aoc/year2017/day12_search.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
python/src/aoc/year2017/day12_search.py
ocirne/adventofcode
ea9b5f1b48a04284521e85c96b420ed54adf55f0
[ "Unlicense" ]
null
null
null
from aoc.util import load_input, load_example def prepare_data(lines): edges = {} for line in lines: root, children = line.strip().split(" <-> ") edges[int(root)] = [int(c) for c in children.split(", ")] return edges def search(edges, start): open_set = set() closed_set = set() ...
21.892857
65
0.590538
c8d33f4c65e9d02bb4925dfe22d197557c390a80
844
py
Python
alipay/aop/api/response/AnttechBlockchainFinanceTrusplePersoncreditinquirySubmitResponse.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/response/AnttechBlockchainFinanceTrusplePersoncreditinquirySubmitResponse.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/response/AnttechBlockchainFinanceTrusplePersoncreditinquirySubmitResponse.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.response.AlipayResponse import AlipayResponse class AnttechBlockchainFinanceTrusplePersoncreditinquirySubmitResponse(AlipayResponse): def __init__(self): super(AnttechBlockchainFinanceTrusplePersoncreditinquirySubmitResponse, ...
32.461538
137
0.758294
c8d356fd7962830752163588f7831dd586046581
17,886
py
Python
MYQT_Application/assets/UI/Scripts/MainWindow.py
fer-moreira/MYQT
879b8acee777f9a1981d1b25acf9e053671acda1
[ "Apache-2.0" ]
1
2019-09-27T14:15:29.000Z
2019-09-27T14:15:29.000Z
MYQT_Application/assets/UI/Scripts/MainWindow.py
zisongbr/MYSQL_PYQT
879b8acee777f9a1981d1b25acf9e053671acda1
[ "Apache-2.0" ]
null
null
null
MYQT_Application/assets/UI/Scripts/MainWindow.py
zisongbr/MYSQL_PYQT
879b8acee777f9a1981d1b25acf9e053671acda1
[ "Apache-2.0" ]
5
2019-03-29T12:27:36.000Z
2020-02-08T17:21:10.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '.\assets\UI\Layout\MainWindow.ui' # # Created by: PyQt5 UI code generator 5.12.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_SQLMANAGER(object): def setupUi(self, SQLMAN...
56.422713
639
0.732752
c8d3627ec172d61355bf123fcbe8866479892467
1,604
py
Python
app/resources/v1/ti/prova_brasil.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2019-07-25T21:15:05.000Z
2019-07-25T21:15:05.000Z
app/resources/v1/ti/prova_brasil.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
44
2019-08-05T15:24:00.000Z
2022-01-31T23:11:31.000Z
app/resources/v1/ti/prova_brasil.py
smartlab-br/datahub-api
193e71172bb4891a5bbffc902da07ef57df9ab07
[ "MIT" ]
1
2021-05-11T07:49:51.000Z
2021-05-11T07:49:51.000Z
''' Controller para fornecer dados da CEE ''' from flask import request from flask_restful_swagger_2 import swagger from resources.base import BaseResource class ProvaBrasilInfantilResource(BaseResource): ''' Classe de múltiplas incidências ''' CUSTOM_SWAGGER_PARAMS = [ {"name": "categorias", "required...
45.828571
82
0.665212
c8d36c6d6b7d15b600cb23e871381f0807222d50
7,359
py
Python
tools/perf/profile_creators/update_remote_extensions.py
Wzzzx/chromium-crosswalk
768dde8efa71169f1c1113ca6ef322f1e8c9e7de
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2019-01-28T08:09:58.000Z
2021-11-15T15:32:10.000Z
tools/perf/profile_creators/update_remote_extensions.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
null
null
null
tools/perf/profile_creators/update_remote_extensions.py
maidiHaitai/haitaibrowser
a232a56bcfb177913a14210e7733e0ea83a6b18d
[ "BSD-3-Clause" ]
6
2020-09-23T08:56:12.000Z
2021-11-18T03:40:49.000Z
# Copyright 2015 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. import base64 import csv import json import optparse import os import shutil import sys import tempfile import urllib2 import zipfile sys.path.insert(1, os....
33.756881
80
0.694524
c8d386a91184921e7002e7e6b51c77457e68426c
2,101
py
Python
diskimage_builder/block_device/level1/partition.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
1
2017-08-30T16:58:33.000Z
2017-08-30T16:58:33.000Z
diskimage_builder/block_device/level1/partition.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
null
null
null
diskimage_builder/block_device/level1/partition.py
june-yang/diskimage-builder
0b15d2186727b122af4dae1847de8ebcdefc4b4f
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under th...
30.014286
79
0.649691
c8d39e5fd6d5a3a3b0e8ca6a99ae27d8f65ec891
23,405
py
Python
lib/galaxy/model/search.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
4
2018-10-29T18:34:38.000Z
2021-09-29T23:30:42.000Z
lib/galaxy/model/search.py
tdans1/Use-Galaxy
e9f05cb1b11db20a729ac73520f886ee619c6b90
[ "CC-BY-3.0" ]
1
2019-02-04T16:21:27.000Z
2019-02-04T16:45:17.000Z
lib/galaxy/model/search.py
chambm/galaxy
fd1926767996a161cd2fc8bd184e6835fd688765
[ "CC-BY-3.0" ]
3
2020-02-12T15:22:24.000Z
2021-08-19T10:27:39.000Z
""" The GQL (Galaxy Query Language) search engine parsers a simple 'SQL-Like' query syntax to obtain items from the Galaxy installations. Rather then allow/force the user to do queries on the Galaxy schema, it uses a small set of 'Views' which are simple table representations of complex galaxy ideas. So while a history...
33.822254
140
0.631745
c8d3c52ac000e296657dacb44f9cfd3ab97fd47f
387
py
Python
src/customExceptions/Exceptions.py
manuelbieri/PRP-Backend
ed9e86f76e304af12129bbf7229bf4fc66d37a84
[ "MIT" ]
null
null
null
src/customExceptions/Exceptions.py
manuelbieri/PRP-Backend
ed9e86f76e304af12129bbf7229bf4fc66d37a84
[ "MIT" ]
null
null
null
src/customExceptions/Exceptions.py
manuelbieri/PRP-Backend
ed9e86f76e304af12129bbf7229bf4fc66d37a84
[ "MIT" ]
null
null
null
class InvalidArgument(Exception): def __init__(self, message: str): super(InvalidArgument, self).__init__(message) class AuthenticationFailed(Exception): def __init__(self, message: str): super(AuthenticationFailed, self).__init__(message) class InvalidUser(Exception): def __init__(self,...
27.642857
59
0.726098
c8d40f08b18ca945cffdff6477ab47ec4113d78a
10,706
py
Python
analysis/webservice/algorithms/doms/ResultsStorage.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
23
2016-08-09T22:45:14.000Z
2020-02-17T08:18:29.000Z
analysis/webservice/algorithms/doms/ResultsStorage.py
lewismc/incubator-sdap-nexus
ff98fa346303431542b8391cc2a1bf7561d1bd03
[ "Apache-2.0" ]
6
2017-04-27T21:22:17.000Z
2021-06-01T21:45:52.000Z
analysis/webservice/algorithms/doms/ResultsStorage.py
dataplumber/nexus
f25a89e85eba098da9c6db1ff3d408dae8a6b310
[ "Apache-2.0" ]
5
2016-08-31T13:47:29.000Z
2017-11-14T21:45:22.000Z
""" Copyright (c) 2016 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved """ import ConfigParser import logging import uuid from datetime import datetime import numpy as np import pkg_resources from cassandra.cluster import Cluster from cassandra.policies import TokenAwarePolicy, DCA...
38.789855
183
0.5779
c8d4107c6f955bf849850803cbb8ad4d15892c68
5,019
py
Python
collections/ansible_collections/community/general/plugins/modules/system/make.py
lisenet/homelab-ansible
e77007ba5b45e4c1b8fdf3cff7699f231191b193
[ "BSD-3-Clause" ]
5
2020-12-16T21:42:09.000Z
2022-03-28T16:04:32.000Z
.ansible/collections/ansible_collections/community/general/plugins/modules/system/make.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
.ansible/collections/ansible_collections/community/general/plugins/modules/system/make.py
chronicc/proving-ground
3e392122a05fb8383a3700954baebb0df330e9e3
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2015, Linus Unnebäck <linus@folkdatorn.se> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r''' --- module: mak...
28.844828
93
0.636382
c8d41cd22b075461e7297d7a9b3735841f852283
9,361
py
Python
core/migrations/0007_annotationblock.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
core/migrations/0007_annotationblock.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
10
2021-04-06T18:17:44.000Z
2022-03-01T12:21:40.000Z
core/migrations/0007_annotationblock.py
kingsdigitallab/egomedia-django
7347fc96ca52ac195b388e43204d0a0faab0c88f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-06 20:18 from django.db import migrations import wagtail.contrib.table_block.blocks import wagtail.core.blocks import wagtail.core.fields import wagtail.documents.blocks import wagtail.embeds.blocks import wagtail.images.blocks class Migration(migrations.Migration): depend...
312.033333
4,371
0.753766
c8d42c5b13ade2d3e3130c3444a87bf569c17446
23,712
py
Python
pandaharvester/harvesterstager/yoda_rucio_rse_direct_stager.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
11
2017-06-01T10:16:58.000Z
2019-11-22T08:41:36.000Z
pandaharvester/harvesterstager/yoda_rucio_rse_direct_stager.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
34
2016-10-25T19:15:24.000Z
2021-03-05T12:59:04.000Z
pandaharvester/harvesterstager/yoda_rucio_rse_direct_stager.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
17
2016-10-24T13:29:45.000Z
2021-03-23T17:35:27.000Z
import time import datetime import uuid import os import sys import stat import os.path import threading import tarfile import hashlib import string import shutil import errno from future.utils import iteritems from rucio.client import Client as RucioClient from rucio.common.exception import DataIdentifierNotFound, D...
50.343949
149
0.559674
c8d48c34d775ce0199c51d808a93639567416295
504
py
Python
examples/apks_ruleset_matched.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
19
2016-11-24T06:13:20.000Z
2021-07-02T05:06:38.000Z
examples/apks_ruleset_matched.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
18
2015-12-05T14:09:24.000Z
2021-06-07T11:55:53.000Z
examples/apks_ruleset_matched.py
Koodous/python-sdk
987a8d48d1fb1ba599375dc55cb2d283a8cd34c8
[ "Apache-2.0" ]
10
2015-12-04T20:01:53.000Z
2020-12-02T07:30:03.000Z
"""Example script to get the apks that were matched by a ruleset using a iterator. Remember to set the Koodous API key in the ``Koodous`` instance or use the environment variable `KOODOUS_API_TOKEN`. """ import itertools import os from koodous.api import Koodous if __name__ == '__main__': token = os.getenv('KOOD...
29.647059
116
0.732143
c8d4dbce7ba5f950e68d460060adcba651b1237f
25,425
py
Python
guild/commands/run.py
guildai/guild-python2
8f83e8234fc4b268b6f29ca7d0f1b93148e4d2a6
[ "Apache-2.0" ]
null
null
null
guild/commands/run.py
guildai/guild-python2
8f83e8234fc4b268b6f29ca7d0f1b93148e4d2a6
[ "Apache-2.0" ]
null
null
null
guild/commands/run.py
guildai/guild-python2
8f83e8234fc4b268b6f29ca7d0f1b93148e4d2a6
[ "Apache-2.0" ]
null
null
null
# Copyright 2017-2022 RStudio, PBC # # 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.460251
88
0.557522
c8d4e1b593569459634efa35a4fa970bd30b3f8f
9,885
py
Python
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_analysis_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_analysis_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_document_analysis_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.000Z
# coding=utf-8 # ------------------------------------ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. # ------------------------------------ # pylint: disable=protected-access from typing import Any, IO, Union, TYPE_CHECKING from azure.core.tracing.decorator_async import distributed_trace_asy...
48.694581
108
0.676277
c8d4eb3b8ae4e92be10f60ec0d987c93608f06ba
656
py
Python
suspect/basis/__init__.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
5
2017-09-26T16:05:30.000Z
2020-11-28T01:31:27.000Z
suspect/basis/__init__.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
6
2016-08-31T22:09:33.000Z
2018-11-30T18:37:09.000Z
suspect/basis/__init__.py
bennyrowland/suspect
c09ab0a5013c5a199218214cdd791659243d7e41
[ "MIT" ]
2
2016-06-09T18:10:18.000Z
2020-12-12T02:50:32.000Z
import numpy def gaussian(time_axis, frequency, phase, fwhm): oscillatory_term = numpy.exp(2j * numpy.pi * (frequency * time_axis) + 1j * phase) damping = numpy.exp(-time_axis ** 2 / 4 * numpy.pi ** 2 / numpy.log(2) * fwhm ** 2) fid = oscillatory_term * damping fid[0] /= 2.0 # normalise the fid so...
36.444444
87
0.653963
c8d50151cea78f3f74957de754d13e7ea0ae3f6d
2,266
py
Python
homeassistant/__main__.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
1
2017-03-01T10:57:20.000Z
2017-03-01T10:57:20.000Z
homeassistant/__main__.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
null
null
null
homeassistant/__main__.py
loghound/home-assistant
48089b01ab38848b07517a4d3e847cc0f79cf435
[ "MIT" ]
1
2020-11-13T10:06:21.000Z
2020-11-13T10:06:21.000Z
""" Starts home assistant. """ import sys import os import argparse import importlib try: from homeassistant import bootstrap except ImportError: # This is to add support to load Home Assistant using # `python3 homeassistant` instead of `python3 -m homeassistant` # Insert the parent directory of thi...
29.428571
78
0.629303
c8d52370c8fce7b1fc5e6bcee598f9255b0a0a43
3,182
py
Python
st2actions/st2actions/handlers/mistral.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2020-11-21T10:11:25.000Z
2020-11-21T10:11:25.000Z
st2actions/st2actions/handlers/mistral.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
1
2015-06-08T15:27:11.000Z
2015-06-08T15:27:11.000Z
st2actions/st2actions/handlers/mistral.py
UbuntuEvangelist/st2
36af04f2caa03b396fb8ab00fd6d700e827fda8d
[ "Apache-2.0" ]
13
2017-01-12T11:07:20.000Z
2019-04-19T09:55:49.000Z
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
37.880952
100
0.668448
c8d525156838828adbf8a5b9da0fd9bf6b9c1487
6,886
py
Python
ocs_ci/utility/environment_check.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/utility/environment_check.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
ocs_ci/utility/environment_check.py
nbalacha/ocs-ci
9c5a5474d62777e868b80894d6b0f3567a7b605d
[ "MIT" ]
null
null
null
""" Util for environment check before and after test to compare and find stale leftovers """ import copy import logging import yaml from gevent.threadpool import ThreadPoolExecutor from ocs_ci.ocs import ocp, defaults, constants, exceptions log = logging.getLogger(__name__) POD = ocp.OCP(kind=constants.POD) SC = oc...
34.954315
87
0.639268
c8d52f9466bd56f9143c53a96dbb81cdac843aa9
4,125
py
Python
appyters/Drugmonizome_ML/PubChemQuery.py
shui02/appyter-catalog
dfa15946d151daeb7d7b1bc9af9e48428474f012
[ "CC0-1.0" ]
null
null
null
appyters/Drugmonizome_ML/PubChemQuery.py
shui02/appyter-catalog
dfa15946d151daeb7d7b1bc9af9e48428474f012
[ "CC0-1.0" ]
11
2020-04-15T22:47:17.000Z
2020-05-28T16:34:16.000Z
appyters/Drugmonizome_ML/PubChemQuery.py
shui02/appyter-catalog
dfa15946d151daeb7d7b1bc9af9e48428474f012
[ "CC0-1.0" ]
1
2020-05-14T20:25:32.000Z
2020-05-14T20:25:32.000Z
import requests import time from ExponentialBackoff import ExponentialBackoff PUBCHEM_BASE_URL = 'https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound' class PubChemQuery: """ Class for making queries through the PubChem REST API. Uses exponential backoff to limit server request rates when 503 error is enco...
34.663866
156
0.589091
c8d54b276c33442151cc04c13f6cb81898ec420a
6,319
py
Python
inclearn/lib/factory.py
yaoyao-liu/POD-AANets
01f10e8d66dfd78d9e6bd6dfcf8c95b10577045c
[ "MIT" ]
5
2022-02-20T12:32:22.000Z
2022-02-22T08:15:09.000Z
inclearn/lib/factory.py
yaoyao-liu/POD-AANets
01f10e8d66dfd78d9e6bd6dfcf8c95b10577045c
[ "MIT" ]
null
null
null
inclearn/lib/factory.py
yaoyao-liu/POD-AANets
01f10e8d66dfd78d9e6bd6dfcf8c95b10577045c
[ "MIT" ]
null
null
null
import warnings import torch from torch import optim from inclearn import models from inclearn.convnet import ( densenet, my_resnet, my_resnet2, my_resnet_brn, my_resnet_mcbn, my_resnet_mtl, resnet, resnet_mtl, ucir_resnet, vgg ) from inclearn.lib import data, schedulers from inclearn.gpu_tools import occupy_...
35.301676
97
0.664504
c8d59d28ad6041afda15edd51977fc0f4041d0ca
3,626
py
Python
layers/gmm_layer.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
layers/gmm_layer.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
6
2022-01-06T21:27:06.000Z
2022-01-19T06:28:56.000Z
layers/gmm_layer.py
SauravMaheshkar/benchmarking-gnns
4665316322527634c23307556b63291c69dac4b0
[ "MIT" ]
null
null
null
import dgl.function as fn import torch import torch.nn as nn import torch.nn.functional as F from torch.nn import init """ GMM: Gaussian Mixture Model Convolution layer Geometric Deep Learning on Graphs and Manifolds using Mixture Model CNNs (Federico Monti et al., CVPR 2017) https://arxiv.org/pdf/1611.084...
28.551181
111
0.574186
c8d5bf6b96708fcbfda1fd7f647ef30862099fa8
1,789
py
Python
main/courses/management/commands/gen_quiz_summary_report.py
mahkhaled/class2go
b32cb441e8d96c257f70cb61274812ebeed2649d
[ "Apache-2.0" ]
2
2015-10-31T23:12:52.000Z
2021-01-19T11:03:00.000Z
main/courses/management/commands/gen_quiz_summary_report.py
sunu/class2go
653b1edd01d390ad387dd788e0fc2d89445fbcab
[ "Apache-2.0" ]
null
null
null
main/courses/management/commands/gen_quiz_summary_report.py
sunu/class2go
653b1edd01d390ad387dd788e0fc2d89445fbcab
[ "Apache-2.0" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from c2g.models import * from django.contrib.auth.models import User,Group from django.db import connection, transaction from courses.reports.generation.gen_quiz_summary_report import * class Command(BaseCommand): help = "Get quiz summary. Syntax: ...
41.604651
156
0.610397
c8d5c8ef4d43e3630f9b144729e7d4cb77e9c3bd
5,231
py
Python
examples/linear_elasticity/two_bodies_contact.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/linear_elasticity/two_bodies_contact.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
examples/linear_elasticity/two_bodies_contact.py
clazaro/sfepy
78757a6989d6aaf85a3fb27957b9179c5e2aa2c7
[ "BSD-3-Clause" ]
null
null
null
r""" Contact of two elastic bodies with a penalty function for enforcing the contact constraints. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) + \int_{\Gamma_{c}} \varepsilon_N \langle g_N(\ul{u}) \rangle \ul{n} \ul{v} = 0 \;, \quad \forall \ul{v} \;, ...
26.963918
104
0.536991
c8d5ceea4047e519042e0e366c66b9e16883336e
43,100
py
Python
monai/transforms/croppad/dictionary.py
danieltudosiu/MONAI
99bca69f26f9f6a76e60f2ce7848e83470547833
[ "Apache-2.0" ]
null
null
null
monai/transforms/croppad/dictionary.py
danieltudosiu/MONAI
99bca69f26f9f6a76e60f2ce7848e83470547833
[ "Apache-2.0" ]
null
null
null
monai/transforms/croppad/dictionary.py
danieltudosiu/MONAI
99bca69f26f9f6a76e60f2ce7848e83470547833
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
45.997866
120
0.638654
c8d6230a9d5b7911d6acee21a44322eb7cd13016
2,804
py
Python
annomathtex/annomathtex/views/start_screen_view.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
3
2021-04-14T13:31:12.000Z
2022-02-13T00:33:37.000Z
annomathtex/annomathtex/views/start_screen_view.py
philsMINT/AnnotaTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
10
2019-07-26T08:10:07.000Z
2021-06-10T17:53:43.000Z
annomathtex/annomathtex/views/start_screen_view.py
philsMINT/AnnoMathTeX
cf893ccf31bd8ee78e15c4dd7a21d05c8c0663a7
[ "Apache-2.0" ]
2
2020-02-21T10:35:31.000Z
2020-05-27T06:13:35.000Z
import logging from django.shortcuts import render from django.views.generic import View from jquery_unparam import jquery_unparam from ..forms.testform import TestForm from ..forms.uploadfileform import UploadFileForm from .helper_classes.repo_content_handler import RepoContentHandler from .helper_classes.wikipedia_q...
42.484848
119
0.71826
c8d6235157443045a43ef2fbd109a452c6f564a4
3,391
py
Python
python/oneflow/nn/modules/dropout.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/dropout.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/modules/dropout.py
Warmchay/oneflow
5a333ff065bb89990318de2f1bd650e314d49301
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 law or agr...
31.691589
88
0.619581
c8d62a5912dc511900fc55424d53251ebcdaec5e
3,757
py
Python
rls/algorithms/single/modelbased/__init__.py
StepNeverStop/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
371
2019-04-26T00:37:33.000Z
2022-03-31T07:33:12.000Z
rls/algorithms/single/modelbased/__init__.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
47
2019-07-21T11:51:57.000Z
2021-08-31T08:45:22.000Z
rls/algorithms/single/modelbased/__init__.py
BlueFisher/RLs
25cc97c96cbb19fe859c9387b7547cbada2c89f2
[ "Apache-2.0" ]
102
2019-06-29T13:11:15.000Z
2022-03-28T13:51:04.000Z
#!/usr/bin/env python3 # encoding: utf-8 from rls.algorithms.register import register # logo: font-size: 12, foreground character: 'O', font: 幼圆 # http://life.chacuo.net/convertfont2char register( name='planet', path='single.modelbased.planet', is_multi=False, class_name='PlaNet', logo="""     OO...
44.2
105
0.393399
c8d6412f47db93d93aca00b39b6f32905d8a4395
2,172
py
Python
Att-GraphConvNet/utils/tsplib.py
dschaub95/TSP
d12e6e678e623e27be52cdfb2a8385cb5974738d
[ "MIT" ]
45
2020-12-02T14:06:35.000Z
2022-03-09T08:04:37.000Z
attgcn_preprocessor/utils/tsplib.py
dschaub95/FINDER-TSP
d69ee6a954aac317b717622a9c0744e3f2827c64
[ "MIT" ]
4
2021-02-21T03:23:12.000Z
2022-01-26T20:52:28.000Z
attgcn_preprocessor/utils/tsplib.py
dschaub95/FINDER-TSP
d69ee6a954aac317b717622a9c0744e3f2827c64
[ "MIT" ]
10
2020-12-18T03:01:31.000Z
2022-02-21T08:13:47.000Z
import numpy as np def read_tsplib_coor(tsplib_file, dims = 2): ''' args: tsplib_file : the path of tsplib files, eg. './data/experiment-data/tsp225.tsp' return: coor : ''' with open(tsplib_file, 'r') as f: lines = f.readlines() city_num = int(lines[0]) ...
35.606557
110
0.563076
c8d649c2866bbc6cf794c4bd305e8b04661dddba
1,094
py
Python
pyramid/scanlib/setup.py
toringerhartCAMM/czi2tiff
d341a92d4949bbe021ad4de4c816294faf4e8a93
[ "Apache-2.0" ]
null
null
null
pyramid/scanlib/setup.py
toringerhartCAMM/czi2tiff
d341a92d4949bbe021ad4de4c816294faf4e8a93
[ "Apache-2.0" ]
null
null
null
pyramid/scanlib/setup.py
toringerhartCAMM/czi2tiff
d341a92d4949bbe021ad4de4c816294faf4e8a93
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 University of Southern California # # 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...
34.1875
74
0.690128
c8d65edd31d2bb2cb050e6642d9ccfc521a53f0d
2,214
py
Python
oscar/lib/python2.7/site-packages/django/dispatch/weakref_backports.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/dispatch/weakref_backports.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/django/dispatch/weakref_backports.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
""" weakref_backports is a partial backport of the weakref module for python versions below 3.4. Copyright (C) 2013 Python Software Foundation, see LICENSE.python for details. The following changes were made to the original sources during backporting: * Added `self` to `super` calls. * Removed `from None`...
32.558824
81
0.586269
c8d67c24d9f059f2c6320e2357b055964d6889ea
7,239
py
Python
models/object_detection/tensorflow/ssd-resnet34/inference/fp32/ssd_model.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
1
2019-05-23T01:07:23.000Z
2019-05-23T01:07:23.000Z
models/object_detection/tensorflow/ssd-resnet34/inference/fp32/ssd_model.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
models/object_detection/tensorflow/ssd-resnet34/inference/fp32/ssd_model.py
arita37/models
659895bff24589829b317f5180d60329906dc13c
[ "Apache-2.0" ]
null
null
null
# # -*- coding: utf-8 -*- # # Copyright (c) 2019 Intel Corporation # # 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 app...
42.087209
80
0.703136
c8d692d744057f32ddc66de97c02fdc92b480892
5,457
py
Python
prog/transmission/cmds/dest_path.py
mohkale/dotfiles
3b2d0be29884d6336d7412987860e56f78d2d102
[ "MIT" ]
9
2020-12-29T13:16:44.000Z
2022-01-18T01:12:21.000Z
prog/transmission/cmds/dest_path.py
mohkale/dotfiles
3b2d0be29884d6336d7412987860e56f78d2d102
[ "MIT" ]
null
null
null
prog/transmission/cmds/dest_path.py
mohkale/dotfiles
3b2d0be29884d6336d7412987860e56f78d2d102
[ "MIT" ]
2
2021-04-15T19:58:20.000Z
2022-01-18T01:10:10.000Z
#!/usr/bin/env python3 """ Determine the approriate destination for a completed transmission torrent download. See the [[file:~/.dotfiles/programs/transmission/README.org][README]]. """ import json import logging import pathlib as p from watch_config import WatchConfig def Path(path): """Convert to a path and ...
35.206452
95
0.658054
c8d6a28384dcbdb323503d19e45648d0a4397b7a
4,716
py
Python
twisted/protocols/haproxy/test/test_v1parser.py
sxamit/twisted
30f6966329c857c3631c60aeb420d84d7828e01e
[ "MIT", "Unlicense" ]
1
2017-08-07T14:52:02.000Z
2017-08-07T14:52:02.000Z
Lib/site-packages/twisted/protocols/haproxy/test/test_v1parser.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
null
null
null
Lib/site-packages/twisted/protocols/haproxy/test/test_v1parser.py
adzhou/Python27
a7113b69d54a04cc780143241c2f1fe81939ad3a
[ "bzip2-1.0.6" ]
1
2018-11-07T12:52:07.000Z
2018-11-07T12:52:07.000Z
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for L{twisted.protocols.haproxy.V1Parser}. """ from twisted.trial import unittest from twisted.internet import address from .._exceptions import ( InvalidProxyHeader, InvalidNetworkProtocol, MissingAddressData ) from .. import...
30.623377
78
0.609415
c8d6abc11bf068c05f74a54ffc9bfe3b7b6290e2
5,927
py
Python
context_exploration/tests/test_parametrized_env.py
EmbodiedVision/explorethecontext
d4bd0d4af980de16ede642c987878a55e089f736
[ "MIT" ]
null
null
null
context_exploration/tests/test_parametrized_env.py
EmbodiedVision/explorethecontext
d4bd0d4af980de16ede642c987878a55e089f736
[ "MIT" ]
null
null
null
context_exploration/tests/test_parametrized_env.py
EmbodiedVision/explorethecontext
d4bd0d4af980de16ede642c987878a55e089f736
[ "MIT" ]
null
null
null
""" Copyright 2021 Max-Planck-Gesellschaft Code author: Jan Achterhold, jan.achterhold@tuebingen.mpg.de Embodied Vision Group, Max Planck Institute for Intelligent Systems, Tübingen This source code is licensed under the MIT license found in the LICENSE.md file in the root directory of this source tree or at https://o...
36.813665
88
0.679096
c8d6b11b862ddac0194145c2f4d845aa75c98e1b
6,291
py
Python
flexget/tests/test_exists_series.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
1
2018-05-02T21:14:50.000Z
2018-05-02T21:14:50.000Z
flexget/tests/test_exists_series.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
flexget/tests/test_exists_series.py
sillygreen89/Flexget
60f24ab0dda7b94c87ba43451921c50c3cef391f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import os import pytest class TestExistsSeries(object): _config = """ templates: global: parsing: series: __parser__ t...
37.89759
106
0.593546
c8d6c90c126595158c1c69b53855dc4c27d447e5
1,504
py
Python
tests/helper_tests.py
derekjamescurtis/veritranspay
0367f8b261293e49ee8a6e395f6c44455212cf7b
[ "BSD-3-Clause" ]
6
2015-07-12T09:46:59.000Z
2017-06-19T18:38:12.000Z
tests/helper_tests.py
derekjamescurtis/veritranspay
0367f8b261293e49ee8a6e395f6c44455212cf7b
[ "BSD-3-Clause" ]
8
2015-01-21T17:00:42.000Z
2017-07-06T05:26:30.000Z
tests/helper_tests.py
derekjamescurtis/veritranspay
0367f8b261293e49ee8a6e395f6c44455212cf7b
[ "BSD-3-Clause" ]
6
2015-07-21T16:49:57.000Z
2017-07-05T07:55:35.000Z
import unittest from datetime import datetime from veritranspay import helpers class ParseDatetimeHelper_UnitTests(unittest.TestCase): def test_parse_datetime_returns_expected(self): ''' Make sure our datetime parsing returns a date that we're expecting. ''' val = "2014-08-24 15:...
28.923077
75
0.665559
c8d6cb8a3600c573c2bc00f0e97b6aa78e0f03e6
30,887
py
Python
atropos/commands/trim/__init__.py
plijnzaad/atropos
dcc79d0aa89b5d2b87f02ee841525fa154898ae6
[ "CC0-1.0" ]
null
null
null
atropos/commands/trim/__init__.py
plijnzaad/atropos
dcc79d0aa89b5d2b87f02ee841525fa154898ae6
[ "CC0-1.0" ]
1
2020-09-23T07:37:32.000Z
2020-09-23T07:37:32.000Z
atropos/commands/trim/__init__.py
plijnzaad/atropos
dcc79d0aa89b5d2b87f02ee841525fa154898ae6
[ "CC0-1.0" ]
null
null
null
"""Implementation of the 'trim' command. """ from collections import Sequence, defaultdict import logging import os import sys import textwrap from atropos.commands.base import ( BaseCommandRunner, Summary, Pipeline, SingleEndPipelineMixin, PairedEndPipelineMixin) from atropos.commands.stats import ( Single...
42.898611
80
0.600026
c8d6ce7d0e3d122517fa7c1bc9beac2b56fb63b9
704
py
Python
Week 3/day 18 - Py Turtle GUI/colors.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
1
2021-07-26T05:31:57.000Z
2021-07-26T05:31:57.000Z
Week 3/day 18 - Py Turtle GUI/colors.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
Week 3/day 18 - Py Turtle GUI/colors.py
eddie246/python-playground
10c4a43c0a4974c1beab52c8b6533ffd93b01520
[ "MIT" ]
null
null
null
import colorgram # colors = colorgram.extract('Week 3\day 18 - Py Turtle GUI\spots.jpg', 30) # rgb_colors = [] # for color in colors: # r = color.rgb.r # g = color.rgb.g # b = color.rgb.b # rgb_colors.append((r, g, b)) # print(rgb_colors) colors_list = [(249, 238, 245), (235, 242, 249), (237, 224, 80), (20...
41.411765
278
0.541193
c8d6d1175385c650d2e0ed33769b24056b742ea5
488
py
Python
locallibrary/catalog/migrations/0004_auto_20171113_1145.py
PFdevelopment/locallibrary
7e061a72d67d1bc89fa792850c7a699fec48dea9
[ "MIT" ]
null
null
null
locallibrary/catalog/migrations/0004_auto_20171113_1145.py
PFdevelopment/locallibrary
7e061a72d67d1bc89fa792850c7a699fec48dea9
[ "MIT" ]
null
null
null
locallibrary/catalog/migrations/0004_auto_20171113_1145.py
PFdevelopment/locallibrary
7e061a72d67d1bc89fa792850c7a699fec48dea9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-11-13 08:45 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0003_bookinstance_borrower'), ] operations = [ migrations.AlterModelOpti...
24.4
112
0.631148
c8d6dbb524bbdb2271ea6f1884295ff315097355
334
py
Python
tests/testclasses.py
samv/unique
d5d8deb109d0b14ce072118432baf0bebc11826b
[ "MIT" ]
1
2015-04-02T20:27:25.000Z
2015-04-02T20:27:25.000Z
tests/testclasses.py
samv/unique
d5d8deb109d0b14ce072118432baf0bebc11826b
[ "MIT" ]
null
null
null
tests/testclasses.py
samv/unique
d5d8deb109d0b14ce072118432baf0bebc11826b
[ "MIT" ]
null
null
null
from normalize import Property from normalize import Record class SimpleKeyValue(Record): key = Property() value = Property() primary_key = [key] class MultiLevelKeyValue(Record): key = Property() primary_key = [key] items = Property(list_of=SimpleKeyValue) custom_val = Property(json_na...
19.647059
46
0.709581
c8d719d0312346f302a0049da2846f478d2e74ca
4,635
py
Python
marble/exposure.py
carnby/marble
00992e630d391052d2803f54ff7ecb52cc2e2110
[ "BSD-3-Clause" ]
null
null
null
marble/exposure.py
carnby/marble
00992e630d391052d2803f54ff7ecb52cc2e2110
[ "BSD-3-Clause" ]
null
null
null
marble/exposure.py
carnby/marble
00992e630d391052d2803f54ff7ecb52cc2e2110
[ "BSD-3-Clause" ]
1
2019-10-29T20:57:32.000Z
2019-10-29T20:57:32.000Z
# -*- coding: utf-8 -*- """exposure.py Functions needed to compute the exposure matrix (including isolation) and the standard deviation for the null model """ from __future__ import division import collections import itertools import marble as mb from .common import (regroup_per_class, return_categ...
31.746575
100
0.607983
c8d75e5ea3277e192fa3eff1a814ba42fae31972
3,105
py
Python
forager_knn/src/forager_knn/mappers/mappers.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
4
2021-09-21T01:58:21.000Z
2022-03-02T21:28:32.000Z
forager_knn/src/forager_knn/mappers/mappers.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
2
2021-10-19T19:39:52.000Z
2021-11-18T23:53:26.000Z
forager_knn/src/forager_knn/mappers/mappers.py
forager-research/forager-server
7557076f9114391cf3a6953d4312883a9de5ce27
[ "MIT" ]
null
null
null
import asyncio from collections import defaultdict import concurrent from dataclasses import dataclass import multiprocessing import os from typing import Any, DefaultDict, Dict, List, Optional, Type from forager_knn import utils from forager_knn.utils import JSONType from .base import Mapper @dataclass class Dumm...
30.145631
88
0.648953
c8d7acb7f6047194a7e10e427c9569364eb3a62f
4,641
py
Python
gitlab-ci/src/artifacts/collector.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
2
2022-03-05T18:40:40.000Z
2022-03-05T18:43:09.000Z
gitlab-ci/src/artifacts/collector.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
1
2022-03-05T18:38:02.000Z
2022-03-05T18:38:02.000Z
gitlab-ci/src/artifacts/collector.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
1
2022-03-12T03:13:53.000Z
2022-03-12T03:13:53.000Z
import logging import multiprocessing import os import shutil import tempfile from os import path from typing import List from ci import cwd from ci import ENV from ci import log_section from ci import mkdir_p from ci import sh def local(v: str) -> str: return path.join(ENV.top, "gitlab-ci/src/artifacts", v) R...
29.00625
192
0.58565
c8d7bd1bd339f45889202747934c167ff123277b
586
py
Python
tests/generic/test_sanitizer.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
tests/generic/test_sanitizer.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
tests/generic/test_sanitizer.py
intellihr/interlagos
f09651b460f7f6030fcb9299be45eb83d199f136
[ "MIT" ]
null
null
null
from interlagos.generic import sanitizer TOKENS = [ 'if', 'you', 'like', 'tuna', 'and', 'tomato', 'sauce', '-', 'try', 'combining', 'the', 'two', '.', 'it', '\'s', 'really', 'not', 'as', 'bad', 'as', 'it', 'sounds', '.' ] def test_sanitize(snapshot): expected_tokens = [ 'if', 'you', 'like', '...
27.904762
78
0.523891
c8d7cbb4bcd04c77a219e324a0d1fe325f76040f
1,292
py
Python
codes/utils/definitions.py
jecalles/genetic-codes
ba5bdecf28663a5e6cee77c224e53c02e5ef06d9
[ "MIT" ]
null
null
null
codes/utils/definitions.py
jecalles/genetic-codes
ba5bdecf28663a5e6cee77c224e53c02e5ef06d9
[ "MIT" ]
null
null
null
codes/utils/definitions.py
jecalles/genetic-codes
ba5bdecf28663a5e6cee77c224e53c02e5ef06d9
[ "MIT" ]
null
null
null
# import necessary modules import os from math import comb as binomial import pickle import random from collections import deque from copy import copy # define scope of package __all__ = [ "dNTPs", "rNTPs", "residues", "triplet_codons", "triplet_mut_pairs", "quadruplet_codons", "quadruplet_mut_pairs", "PRS", "...
33.128205
75
0.676471
c8d7e8e6cd707b22d614a066bf5e4dd94d3cb4a6
1,333
py
Python
tests/test_functions.py
john-hawkins/Text_Feature_Generator
201b9255d20c5e4fa3400a0b007b9e3fca62aee5
[ "MIT" ]
3
2020-09-03T09:09:51.000Z
2021-05-25T11:19:37.000Z
tests/test_functions.py
john-hawkins/Text_Feature_Generator
201b9255d20c5e4fa3400a0b007b9e3fca62aee5
[ "MIT" ]
null
null
null
tests/test_functions.py
john-hawkins/Text_Feature_Generator
201b9255d20c5e4fa3400a0b007b9e3fca62aee5
[ "MIT" ]
1
2020-08-24T07:40:02.000Z
2020-08-24T07:40:02.000Z
import sys import pytest import pandas as pd import numpy as np from texturizer.process import padded from texturizer.process import extract_file_extension from texturizer.process import count_lines from texturizer.process import isNaN from texturizer.process import remove_urls_and_tags from texturizer.process import r...
26.66
110
0.704426
c8d7f2c63a38efb7aef138fc70a5d8642e5b8487
1,123
py
Python
duckietown_rl/gym_duckietown/__init__.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
18
2020-08-31T11:30:41.000Z
2022-02-15T07:35:12.000Z
duckietown_rl/gym_duckietown/__init__.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
5
2020-09-27T02:15:56.000Z
2022-01-23T17:56:24.000Z
duckietown_rl/gym_duckietown/__init__.py
rizavelioglu/AIDO-CITEC
97f4d8564dc6eb743063a7902a8932a429349c04
[ "MIT" ]
2
2020-05-29T08:27:38.000Z
2020-09-30T03:32:13.000Z
# coding=utf-8 __version__ = '5.0.14' import logging logging.basicConfig() logger = logging.getLogger('gym-duckietown') logger.setLevel(logging.DEBUG) logger.info('gym-duckietown %s\n' % __version__) import os from gym.envs.registration import register from .utils import get_subdir_path def reg_map_env(map_file...
22.46
64
0.677649
c8d7f9cb4f4976a03d8b2f9eefa1946d5bef6752
3,045
py
Python
src/tests/test.py
bastoune57/aiven_homework
3c5bb3c78a650284bbcc0c55829e7335b34748e2
[ "MIT" ]
null
null
null
src/tests/test.py
bastoune57/aiven_homework
3c5bb3c78a650284bbcc0c55829e7335b34748e2
[ "MIT" ]
null
null
null
src/tests/test.py
bastoune57/aiven_homework
3c5bb3c78a650284bbcc0c55829e7335b34748e2
[ "MIT" ]
null
null
null
# import libraries import logging import unittest # add homework path to system path import sys import os my_path = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, my_path + '/../homework/') # import own code from producer import Producer from consumer import Consumer from database import Database from ...
30.148515
74
0.588834
c8d82ceb5b47e0b28154a6daef133d8d71844f8d
8,401
py
Python
WorkflowSynthesis/Preprocessing/projectSemDimensions.py
simonscheider/QuAnGIS
b13b930eb3c456893f2b658a23b34bc01e85c2e1
[ "MIT" ]
1
2020-05-12T23:55:59.000Z
2020-05-12T23:55:59.000Z
WorkflowSynthesis/Preprocessing/projectSemDimensions.py
simonscheider/QuAnGIS
b13b930eb3c456893f2b658a23b34bc01e85c2e1
[ "MIT" ]
1
2019-08-14T07:43:53.000Z
2019-08-16T11:18:19.000Z
WorkflowSynthesis/Preprocessing/projectSemDimensions.py
simonscheider/QuAnGIS
b13b930eb3c456893f2b658a23b34bc01e85c2e1
[ "MIT" ]
1
2020-04-23T12:00:24.000Z
2020-04-23T12:00:24.000Z
# -*- coding: utf-8 -*- """ Created on Wed Apr 8 16:23:39 2020 These methods are used to construct semantic dimensions (subsumption trees) for a given list of superconcepts that identify these dimensions. It returns a projection function which projects any subsumed node to all given dimensions. None is returned if th...
45.410811
250
0.652422
c8d8586e775395239eb14f981a5af0644e710306
19,973
py
Python
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_08_01/aio/operations/_local_users_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
46.448837
227
0.682371
c8d885a349162573f81b6983f6e96eb2002b5d00
67,922
py
Python
salt/states/dockerng.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/states/dockerng.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
salt/states/dockerng.py
Rafflecopter/salt
08bbfcd4d9b93351d7d5d25b097e892026b6f1cd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Management of Docker containers .. versionadded:: Beryllium This is the state module to accompany the :mod:`dockerng <salt.modules.dockerng>` execution module. .. note:: To pull from a Docker registry, authentication must be configured. See :ref:`here <docker-authentication>` fo...
35.047472
86
0.516357
c8d88d2c1ef9deeec292254562a374f3533d3041
2,581
py
Python
example/example_code.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
example/example_code.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
example/example_code.py
SheinaG/pebm_new
ab5822a66c18d18dcf52e1b6af8b1bd515462fd2
[ "MIT" ]
null
null
null
import pebm from pebm import Preprocessing as Pre from pebm.ebm import FiducialPoints as Fp from pebm.ebm import Biomarkers as Obm import matplotlib.pyplot as plt import scipy.io as spio from scipy.fft import fft, ifft, fftshift import numpy as np plot = False ecg_mat = spio.loadmat('human_200Hz_gr.mat') signal = ...
23.463636
82
0.640837
c8d895b0d640f77de2e38970eed4d48b251383cc
18,706
py
Python
swift/common/ring/ring.py
revoer/keystone-8.0.0
816991f39a086f299c450903b5f86edb07422bb9
[ "Apache-2.0" ]
null
null
null
swift/common/ring/ring.py
revoer/keystone-8.0.0
816991f39a086f299c450903b5f86edb07422bb9
[ "Apache-2.0" ]
null
null
null
swift/common/ring/ring.py
revoer/keystone-8.0.0
816991f39a086f299c450903b5f86edb07422bb9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-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 by applicable law or agree...
40.577007
79
0.564899
c8d8ba44c9b7a9dc5b86f33450dc0f3401e325ca
8,087
py
Python
openstack_dashboard/dashboards/project/databases/workflows/create_instance.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/databases/workflows/create_instance.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/databases/workflows/create_instance.py
Juniper/horizon
aa0b50beb4f68289cad4193f699156a77b2a0aa3
[ "Apache-2.0" ]
4
2015-05-05T08:17:28.000Z
2020-02-05T10:47:06.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 Rackspace Hosting # # 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...
38.69378
78
0.584024
c8d8e90b43f340e271bd0173b3c79b19d2a4369f
6,544
py
Python
tests/acceptation/crash/test_crash_formula_minor_error.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
77
2019-04-08T12:55:29.000Z
2022-03-29T14:40:11.000Z
tests/acceptation/crash/test_crash_formula_minor_error.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
55
2019-03-11T14:37:41.000Z
2022-02-02T08:19:43.000Z
tests/acceptation/crash/test_crash_formula_minor_error.py
Zenika/powerapi
a6bcc8fefeb29dd83cc8bc1191b1c3609aa9043d
[ "BSD-3-Clause" ]
20
2019-03-11T16:10:53.000Z
2022-03-21T16:09:37.000Z
# Copyright (c) 2021, INRIA # Copyright (c) 2021, University of Lille # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, thi...
41.948718
169
0.704462
c8d907cd64da14d83dbc8114e4cff722e9eb57fc
1,678
py
Python
backend/schedule_worker/db/przystanki.py
evemorgen/GdzieJestMojTramwajProject
65a090ae4222053a2a0a1b145df5196f3658065c
[ "MIT" ]
null
null
null
backend/schedule_worker/db/przystanki.py
evemorgen/GdzieJestMojTramwajProject
65a090ae4222053a2a0a1b145df5196f3658065c
[ "MIT" ]
null
null
null
backend/schedule_worker/db/przystanki.py
evemorgen/GdzieJestMojTramwajProject
65a090ae4222053a2a0a1b145df5196f3658065c
[ "MIT" ]
null
null
null
import os import logging import sqlite3 import json class PrzystankiDb(): def __init__(self): self.db_file = os.environ['TRAM_ROOT'] + '/data/przystanki.db' self.db_connection = sqlite3.connect(self.db_file) self.cursor = self.db_connection.cursor() logging.info('PrzystankiDb objec...
35.702128
145
0.590584
c8d929626d337337c60980a10fd28ef7c4235ce8
1,156
py
Python
physiossl/models/ts.py
larryshaw0079/PhysioLearn
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
2
2021-12-11T15:17:47.000Z
2021-12-27T07:39:31.000Z
physiossl/models/ts.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
physiossl/models/ts.py
larryshaw0079/PhysioSSL
6438924a1b2a0c2ce4c238f504654f9a7f993d9e
[ "MIT" ]
null
null
null
""" @Time : 2021/6/23 16:56 @File : ts.py @Software: PyCharm @Desc : """ import torch import torch.nn as nn class TemporalShuffling(nn.Module): def __init__(self, input_size, input_channels, hidden_channels, feature_dim, device='cuda'): super(TemporalShuffling, self).__init__() self.inp...
28.9
98
0.604671
c8d94cb9f6ff4071bf96e66822b15b83cad4b139
4,618
py
Python
samcli/commands/pipeline/bootstrap/guided_context.py
elbayaaa/aws-sam-cli
f8f65f8601116e0c8d2570ed75359be57e86b207
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
samcli/commands/pipeline/bootstrap/guided_context.py
elbayaaa/aws-sam-cli
f8f65f8601116e0c8d2570ed75359be57e86b207
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
samcli/commands/pipeline/bootstrap/guided_context.py
elbayaaa/aws-sam-cli
f8f65f8601116e0c8d2570ed75359be57e86b207
[ "BSD-2-Clause", "Apache-2.0" ]
null
null
null
""" An interactive flow that prompt the user for required information to bootstrap the AWS account of an environment with the required infrastructure """ from typing import Optional import click class GuidedContext: def __init__( self, environment_name: Optional[str] = None, pipeline_user...
47.608247
119
0.631659
c8d97f055bcff2d91d1512348eea2016160f832e
43
py
Python
huffman/tree/bits/__init__.py
imranmaj/huffman
df2235f50f5ec52b9653c43e99daa7250ffeb082
[ "MIT" ]
null
null
null
huffman/tree/bits/__init__.py
imranmaj/huffman
df2235f50f5ec52b9653c43e99daa7250ffeb082
[ "MIT" ]
null
null
null
huffman/tree/bits/__init__.py
imranmaj/huffman
df2235f50f5ec52b9653c43e99daa7250ffeb082
[ "MIT" ]
null
null
null
from .bit import Bit from .bits import Bits
21.5
22
0.790698
c8d986a50bb4c1392ada6a14f81de9a8b824d6bd
2,830
py
Python
mqtt_randompub/opthandling.py
fabaff/mqtt-randompub
bf9c80125533e3b9d4d1ccdf3776e58f1cfa1b7b
[ "MIT" ]
7
2015-06-14T17:53:43.000Z
2021-04-02T17:23:00.000Z
mqtt_randompub/opthandling.py
fabaff/mqtt-randompub
bf9c80125533e3b9d4d1ccdf3776e58f1cfa1b7b
[ "MIT" ]
3
2016-07-04T16:56:15.000Z
2021-02-03T11:52:52.000Z
mqtt_randompub/opthandling.py
fabaff/mqtt-randompub
bf9c80125533e3b9d4d1ccdf3776e58f1cfa1b7b
[ "MIT" ]
1
2020-07-05T06:55:53.000Z
2020-07-05T06:55:53.000Z
"""Input handling for user input.""" import argparse import configparser # Credits: Von Welch # http://blog.vwelch.com/2011/04/combining-configparser-and-argparse.html def argparsing(): """ Handling command-line options, default values and options provided by configurations files. """ conf_parser ...
34.512195
84
0.617314
c8d9ba10f72f595ca99a604a87aca8d47861460b
39,559
py
Python
old_projects/eulers_characteristic_formula.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:31.000Z
2020-07-05T12:56:31.000Z
old_projects/eulers_characteristic_formula.py
elphasminyato/manim
8488b621ef3367e6a911354d2765684321fed20e
[ "MIT" ]
3
2021-09-08T02:19:38.000Z
2022-03-12T00:41:00.000Z
old_projects/eulers_characteristic_formula.py
dezren39/manim
80d7742446c588dc296bd3afb3465a63b63383db
[ "MIT" ]
1
2020-07-05T12:56:33.000Z
2020-07-05T12:56:33.000Z
#!/usr/bin/env python import numpy as np import itertools as it from copy import deepcopy import sys from animation import * from mobject import * from constants import * from mobject.region import * import displayer as disp from scene.scene import Scene, GraphScene from scene.graphs import * from moser_main import...
32.938385
81
0.539397
c8d9bcc6a5ea136b9f6cba66da19cbb3bfd4267e
5,232
py
Python
src/third_party/wiredtiger/dist/flags.py
tychoish/mongo
0c695aa1e879af482dc3aea4768dbda223ff4592
[ "Apache-2.0" ]
null
null
null
src/third_party/wiredtiger/dist/flags.py
tychoish/mongo
0c695aa1e879af482dc3aea4768dbda223ff4592
[ "Apache-2.0" ]
1
2015-05-29T16:12:10.000Z
2015-05-29T16:12:10.000Z
src/third_party/wiredtiger/dist/flags.py
tychoish/mongo
0c695aa1e879af482dc3aea4768dbda223ff4592
[ "Apache-2.0" ]
1
2015-05-26T20:33:29.000Z
2015-05-26T20:33:29.000Z
# Output a C header file using the minimum number of distinct bits to ensure # flags don't collide. import os, re, sys from dist import compare_srcfile flags = { ################################################### # Internal routine flag declarations ################################################### 'cache_flus...
27.108808
76
0.537462
c8d9c3da0bf523d4a3ece3d3f1d832b76669e437
250
py
Python
src/mode/modemenu.py
darklink259/monsters
3f316232b716ad331b94cab6d08c847f8ba2f816
[ "MIT" ]
null
null
null
src/mode/modemenu.py
darklink259/monsters
3f316232b716ad331b94cab6d08c847f8ba2f816
[ "MIT" ]
null
null
null
src/mode/modemenu.py
darklink259/monsters
3f316232b716ad331b94cab6d08c847f8ba2f816
[ "MIT" ]
null
null
null
import abc import jovialengine from .modeconvo import ModeConvo class ModeMenu(ModeConvo, abc.ABC): def _handleLoad(self): if self._convo_key == "0": self._text = jovialengine.game.getGame().state.protag_mon.getStatText()
20.833333
83
0.704
c8d9c9cbcfed5131ab359fed266717356ff02861
1,830
py
Python
deltacat/compute/stats/utils/stats_completion_file.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
deltacat/compute/stats/utils/stats_completion_file.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
deltacat/compute/stats/utils/stats_completion_file.py
rkenmi/deltacat
b1fe11ad2732b0134436b0337e8c4ec84bc19d4a
[ "Apache-2.0" ]
null
null
null
import logging import json from deltacat.compute.stats.models.stats_completion_info import StatsCompletionInfo from deltacat.storage import DeltaLocator from deltacat import logs from deltacat.aws import s3u as s3_utils logger = logs.configure_deltacat_logger(logging.getLogger(__name__)) def get_stats_completion_fi...
32.105263
83
0.736066
c8d9f43a9cf035909f2c4bdc9b00ce81f41000f7
3,993
py
Python
DataStructures/Errors.py
nikist97/Python-DataStructures
6225c67d85aa14894c4f5451c8acd572e2e6f6b0
[ "Apache-2.0" ]
6
2018-07-07T08:54:00.000Z
2022-03-27T00:49:51.000Z
DataStructures/Errors.py
arpitcodes/Python-DataStructures
6225c67d85aa14894c4f5451c8acd572e2e6f6b0
[ "Apache-2.0" ]
4
2018-03-18T11:07:15.000Z
2018-03-22T17:19:33.000Z
DataStructures/Errors.py
arpitcodes/Python-DataStructures
6225c67d85aa14894c4f5451c8acd572e2e6f6b0
[ "Apache-2.0" ]
2
2017-07-21T10:04:25.000Z
2017-07-21T11:34:56.000Z
class EmptyStackError(ValueError): """ A custom type of error, when an operation is performed, which requires a non-empty stack, but an empty stack is calling the function. """ def __init__(self, msg): super().__init__(msg) class StackElementError(KeyError): """ A custom type of e...
26.098039
127
0.670924
c8da3f09ec467bffb340c044bf015ced4f78cff6
35,168
py
Python
python/graphscope/framework/graph.py
youyangy/GraphScope
560309eea11408c4a23f64c32ed35725cd6f7467
[ "Apache-2.0" ]
null
null
null
python/graphscope/framework/graph.py
youyangy/GraphScope
560309eea11408c4a23f64c32ed35725cd6f7467
[ "Apache-2.0" ]
null
null
null
python/graphscope/framework/graph.py
youyangy/GraphScope
560309eea11408c4a23f64c32ed35725cd6f7467
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. 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...
37.855759
119
0.611351
c8da85d658bc98314b53678f97e751dcea51c9b3
3,152
py
Python
pandaharvester/harvestersweeper/cobalt_sweeper.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
11
2017-06-01T10:16:58.000Z
2019-11-22T08:41:36.000Z
pandaharvester/harvestersweeper/cobalt_sweeper.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
34
2016-10-25T19:15:24.000Z
2021-03-05T12:59:04.000Z
pandaharvester/harvestersweeper/cobalt_sweeper.py
tsulaiav/harvester
ca3f78348019dd616738f2da7d50e81700a8e6b9
[ "Apache-2.0" ]
17
2016-10-24T13:29:45.000Z
2021-03-23T17:35:27.000Z
#=== Imports ================================================== from pandaharvester.harvestercore.plugin_base import PluginBase from pandaharvester.harvestercore import core_utils import os try: import subprocess32 as subprocess except: import subprocess import shutil #======================================...
33.531915
114
0.540292
c8da87db6505f707a64139edce926d2580c79593
11,320
py
Python
source/Orchestrator/check_ssm_execution.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
1
2022-03-16T08:23:33.000Z
2022-03-16T08:23:33.000Z
source/Orchestrator/check_ssm_execution.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
null
null
null
source/Orchestrator/check_ssm_execution.py
j-erickson/aws-security-hub-automated-response-and-remediation
f1722c00817e1358a1d80272b67fc226f1105965
[ "Apache-2.0" ]
1
2021-11-15T21:45:48.000Z
2021-11-15T21:45:48.000Z
#!/usr/bin/python ############################################################################### # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # # # Licensed under the Apache License Version 2.0 (the "License"). Y...
41.014493
136
0.612986
c8da9a8fac8661f6240108873a941816627f15ae
508
py
Python
examples/tutorial/Hello World/hello_world_debug_extension.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
25
2017-07-14T06:39:37.000Z
2022-03-09T21:39:51.000Z
examples/tutorial/Hello World/hello_world_debug_extension.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
100
2016-12-13T17:30:41.000Z
2021-08-01T20:21:13.000Z
examples/tutorial/Hello World/hello_world_debug_extension.py
fearaschiarrai/gxpy
4c5e7594b24e530a8cd94df1eef562c5c6ce3e92
[ "BSD-2-Clause" ]
28
2016-12-12T17:34:40.000Z
2022-03-16T15:39:39.000Z
import pydevd import geosoft.gxapi as gxapi import geosoft.gxpy as gxpy def rungx(): # remote debug, MUST be removed/commented out for production # this will break inside a running "Debug Extension" configuration in PyCharm pydevd.settrace('localhost', port=34765, stdoutToServer=True, stderrToServer=True)...
31.75
86
0.712598