hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
796bc8b0b8bd685b0a52997c2c4fdc8575743021
18,093
py
Python
cars/core/geometry/otb_geometry.py
CNES/cars
484dd1aab8a1c921d29cbea4baacc2db948c4e9d
[ "Apache-2.0" ]
134
2020-07-30T08:51:29.000Z
2022-03-30T09:56:01.000Z
cars/core/geometry/otb_geometry.py
CNES/cars
484dd1aab8a1c921d29cbea4baacc2db948c4e9d
[ "Apache-2.0" ]
9
2020-09-15T19:27:33.000Z
2022-03-29T08:11:36.000Z
cars/core/geometry/otb_geometry.py
CNES/cars
484dd1aab8a1c921d29cbea4baacc2db948c4e9d
[ "Apache-2.0" ]
14
2020-08-06T07:29:55.000Z
2022-03-25T07:40:39.000Z
#!/usr/bin/env python # coding: utf8 # # Copyright (c) 2020 Centre National d'Etudes Spatiales (CNES). # # This file is part of CARS # (see https://github.com/CNES/cars). # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obta...
36.331325
79
0.609904
796bc8d7c5fee7f0af0bb2a0171876c4197cfa82
3,020
py
Python
trove/guestagent/strategies/restore/experimental/postgresql_impl.py
zhujzhuo/openstack-trove
e9d073762732ba405828fd54c86a27dcac95cd25
[ "Apache-2.0" ]
null
null
null
trove/guestagent/strategies/restore/experimental/postgresql_impl.py
zhujzhuo/openstack-trove
e9d073762732ba405828fd54c86a27dcac95cd25
[ "Apache-2.0" ]
null
null
null
trove/guestagent/strategies/restore/experimental/postgresql_impl.py
zhujzhuo/openstack-trove
e9d073762732ba405828fd54c86a27dcac95cd25
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
37.283951
78
0.648013
796bc937de3b2737cb305a26ae47ee40547bbdfc
143
py
Python
bubbleimg/batch/hsc/__init__.py
aileisun/bubblepy
054e7a3993659e7002f243c75253c2cb71d4fa73
[ "MIT" ]
3
2017-11-20T23:16:09.000Z
2021-05-19T09:38:01.000Z
bubbleimg/batch/hsc/__init__.py
aileisun/bubblepy
054e7a3993659e7002f243c75253c2cb71d4fa73
[ "MIT" ]
null
null
null
bubbleimg/batch/hsc/__init__.py
aileisun/bubblepy
054e7a3993659e7002f243c75253c2cb71d4fa73
[ "MIT" ]
3
2017-07-17T09:31:11.000Z
2021-05-19T09:38:07.000Z
# __init__.py # ALS 2017/05/29 __all__ = ['hscbatch'] from . import hscbatch import imp imp.reload(hscbatch) from .hscbatch import hscBatch
13
30
0.741259
796bc9dc4aa4af12506e3d5bbb3f4696cffee5e8
4,709
py
Python
worker/utils/extra_helpers/sqlserver_helper.py
luwenchang/dataflux-func
fa07ecaa03db756f35168bbd8fbdfdf5053b767d
[ "Apache-2.0" ]
202
2021-01-08T09:02:34.000Z
2022-03-12T02:48:07.000Z
worker/utils/extra_helpers/sqlserver_helper.py
Rogers0007/dataflux-func
fa07ecaa03db756f35168bbd8fbdfdf5053b767d
[ "Apache-2.0" ]
1
2021-05-15T02:36:07.000Z
2021-06-03T15:01:10.000Z
worker/utils/extra_helpers/sqlserver_helper.py
Rogers0007/dataflux-func
fa07ecaa03db756f35168bbd8fbdfdf5053b767d
[ "Apache-2.0" ]
31
2021-01-23T04:56:41.000Z
2022-03-11T07:10:04.000Z
# -*- coding: utf-8 -*- # Builtin Modules import re import json import datetime import traceback # 3rd-party Modules from DBUtils.PersistentDB import PersistentDB from DBUtils.PooledDB import PooledDB # Project Modules from worker import celeryconfig from worker.utils import toolkit from worker.utils.log_helper impo...
25.454054
115
0.578467
796bc9de27b7de8d64a1b1472a666fd429603974
3,962
py
Python
examples/xgboost/demo.py
TheMichaelHu/ml-pipeline-generator-python
e486f390ab391cd2f2dca7c9604a78fb0bdf3ee3
[ "Apache-2.0" ]
54
2020-05-15T16:19:50.000Z
2022-01-24T19:25:47.000Z
examples/xgboost/demo.py
TheMichaelHu/ml-pipeline-generator-python
e486f390ab391cd2f2dca7c9604a78fb0bdf3ee3
[ "Apache-2.0" ]
9
2020-05-19T14:26:21.000Z
2021-01-19T18:42:30.000Z
examples/xgboost/demo.py
TheMichaelHu/ml-pipeline-generator-python
e486f390ab391cd2f2dca7c9604a78fb0bdf3ee3
[ "Apache-2.0" ]
17
2020-05-15T16:55:04.000Z
2022-02-14T20:08:07.000Z
# python3 # Copyright 2020 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 applicab...
50.151899
74
0.680212
796bc9e015e9ca0c911ca224636c81a4f53da696
470
py
Python
AssetsApp/migrations/0007_alter_assetscategories_datetime_added.py
Kayarn-Mechatronics/Octello
45f4f73c764ca816918c31ef3ae4889740a68802
[ "Apache-2.0" ]
null
null
null
AssetsApp/migrations/0007_alter_assetscategories_datetime_added.py
Kayarn-Mechatronics/Octello
45f4f73c764ca816918c31ef3ae4889740a68802
[ "Apache-2.0" ]
null
null
null
AssetsApp/migrations/0007_alter_assetscategories_datetime_added.py
Kayarn-Mechatronics/Octello
45f4f73c764ca816918c31ef3ae4889740a68802
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-07 20:17 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('AssetsApp', '0006_auto_20210907_1146'), ] operations = [ migrations.AlterField( model_name='assetscategories', ...
23.5
98
0.634043
796bcb21c27b7be19f16a381f8313db79ea8c045
13,437
py
Python
chickpea/sbl.py
ENPH-2113-Silicon-Photonics/legume
45c64b78f09b7d8779f7a4e12f204f5778b08b0b
[ "MIT" ]
2
2021-04-13T22:43:04.000Z
2021-04-15T12:19:00.000Z
chickpea/sbl.py
ENPH-2113-Silicon-Photonics/legume
45c64b78f09b7d8779f7a4e12f204f5778b08b0b
[ "MIT" ]
null
null
null
chickpea/sbl.py
ENPH-2113-Silicon-Photonics/legume
45c64b78f09b7d8779f7a4e12f204f5778b08b0b
[ "MIT" ]
1
2022-02-20T07:04:34.000Z
2022-02-20T07:04:34.000Z
import legume from legume import backend as bd import numpy as np class ShapeBuilder(): def __init__(self, **defaults): self._defaults = dict() self._defaults.update(defaults) raise NotImplementedError("Must be implemented by subclass") def place_shape(self, phc, eps, x, y, **param...
32.223022
117
0.570217
796bccb1a10ca9e7fa76736f011a6a200c8498ce
16,351
py
Python
cloud_stats.py
gavalle94/P2P-Sim
f6ed633ca1cfec51bd8f8e7b9f042cdd55472648
[ "MIT" ]
1
2018-09-19T11:43:16.000Z
2018-09-19T11:43:16.000Z
cloud_stats.py
gavalle94/P2P-Sim
f6ed633ca1cfec51bd8f8e7b9f042cdd55472648
[ "MIT" ]
null
null
null
cloud_stats.py
gavalle94/P2P-Sim
f6ed633ca1cfec51bd8f8e7b9f042cdd55472648
[ "MIT" ]
null
null
null
import timed_structures as ts import qs_plots as plots import input_controls as ic class StatsManager(object): """ La classe modellizza un manager per le statistiche di un servizio di file sharing """ def __init__(self, n_devices, devices, env, server=True): # Server centrale per i download d...
41.818414
117
0.621491
796bcce6f7f7bb9881455c266c9cf01cfd927de5
4,922
py
Python
nova/scheduler/chance.py
hashsos/hashcloudos-nova
8350f20167f256f740c5bb94f9222c95fa3e32ad
[ "Apache-2.0" ]
null
null
null
nova/scheduler/chance.py
hashsos/hashcloudos-nova
8350f20167f256f740c5bb94f9222c95fa3e32ad
[ "Apache-2.0" ]
null
null
null
nova/scheduler/chance.py
hashsos/hashcloudos-nova
8350f20167f256f740c5bb94f9222c95fa3e32ad
[ "Apache-2.0" ]
1
2020-07-22T21:17:41.000Z
2020-07-22T21:17:41.000Z
# Copyright (c) 2010 OpenStack Foundation # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in complianc...
41.361345
79
0.663348
796bcd36beb6d7843a1c165beac8782f258ed106
9,774
py
Python
tensorflow_probability/python/distributions/probit_bernoulli.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
3,670
2018-02-14T03:29:40.000Z
2022-03-30T01:19:52.000Z
tensorflow_probability/python/distributions/probit_bernoulli.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,395
2018-02-24T02:28:49.000Z
2022-03-31T16:12:06.000Z
tensorflow_probability/python/distributions/probit_bernoulli.py
jakee417/probability-1
ae7117f37ac441bc7a888167ea23e5e620c5bcde
[ "Apache-2.0" ]
1,135
2018-02-14T01:51:10.000Z
2022-03-28T02:24:11.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.57085
91
0.710149
796bcee9716807ddba3ec837db7d8e6305efacd9
8,771
py
Python
lib/rucio/daemons/reaper/light_reaper.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
1
2017-08-07T13:34:55.000Z
2017-08-07T13:34:55.000Z
lib/rucio/daemons/reaper/light_reaper.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
null
null
null
lib/rucio/daemons/reaper/light_reaper.py
balrampariyarath/rucio
8a68017af6b44485a9620566f1afc013838413c1
[ "Apache-2.0" ]
null
null
null
# Copyright European Organization for Nuclear Research (CERN) # # 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 # # Authors: # - Vincent Garonne, <vin...
47.668478
200
0.554441
796bcfdf70cc1a42605f07652ba792cdecb3ba7c
2,786
py
Python
vertica_python/datatypes.py
vinceatbluelabs/vertica-python
0af888b6b30bc1be2f2b497e564b80cb5220ea87
[ "Apache-2.0" ]
null
null
null
vertica_python/datatypes.py
vinceatbluelabs/vertica-python
0af888b6b30bc1be2f2b497e564b80cb5220ea87
[ "Apache-2.0" ]
null
null
null
vertica_python/datatypes.py
vinceatbluelabs/vertica-python
0af888b6b30bc1be2f2b497e564b80cb5220ea87
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2018 Micro Focus or one of its affiliates. # Copyright (c) 2018 Uber Technologies, 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/L...
30.955556
79
0.759153
796bd083af2443f3fd6bb0ef1071c794ddc5532b
582
py
Python
services/monitoring/migrations/0004_co2_reserve.py
sania-dsouza/NRChallenge_Services
2034e2b21969eae7c80f0cc7aadbb30046b16b34
[ "MIT" ]
1
2021-03-02T23:22:24.000Z
2021-03-02T23:22:24.000Z
services/monitoring/migrations/0004_co2_reserve.py
sania-dsouza/NRChallenge_Services
2034e2b21969eae7c80f0cc7aadbb30046b16b34
[ "MIT" ]
null
null
null
services/monitoring/migrations/0004_co2_reserve.py
sania-dsouza/NRChallenge_Services
2034e2b21969eae7c80f0cc7aadbb30046b16b34
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-25 00:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('monitoring', '0003_auto_20210224_0330'), ] operations = [ migrations.CreateModel( name='Co2_Reserve', fields=[ ...
26.454545
114
0.584192
796bd2c247445f38235b5dd1729ab5453621752e
15,149
py
Python
entmoot/optimizer/entmoot_minimize.py
cornelius-braun/entmoot
47a3c2ffd799dd05a0f5d896e665f17d77688e39
[ "BSD-3-Clause" ]
null
null
null
entmoot/optimizer/entmoot_minimize.py
cornelius-braun/entmoot
47a3c2ffd799dd05a0f5d896e665f17d77688e39
[ "BSD-3-Clause" ]
null
null
null
entmoot/optimizer/entmoot_minimize.py
cornelius-braun/entmoot
47a3c2ffd799dd05a0f5d896e665f17d77688e39
[ "BSD-3-Clause" ]
null
null
null
""" Copyright (c) 2016-2020 The scikit-optimize developers. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of cond...
36.94878
104
0.642551
796bd2cb64df8de843f61b3f2197cc0d2ddd5a98
407
py
Python
slackbot_wems/wems/ibby/slacklib.py
wray/wems
69caedfb8906f04175196d610a1ca516db01f72a
[ "MIT" ]
4
2016-11-10T21:43:01.000Z
2017-02-24T21:36:45.000Z
slackbot_wems/wems/ibby/slacklib.py
wray/wems
69caedfb8906f04175196d610a1ca516db01f72a
[ "MIT" ]
1
2019-04-26T10:48:34.000Z
2019-05-18T15:59:35.000Z
slackbot_wems/wems/ibby/slacklib.py
wray/wems
69caedfb8906f04175196d610a1ca516db01f72a
[ "MIT" ]
8
2016-11-09T22:25:14.000Z
2019-04-26T19:53:37.000Z
# Put your commands here COMMAND1 = "" COMMAND2 = "" # Your handling code goes in this function def handle_command(command): """ Determine if the command is valid. If so, take action and return a response, if necessary. """ response = "" if command.find(COMMAND1) >= 0: response =...
21.421053
72
0.609337
796bd34e7d1b54c829b7769d4ffb13f1d9876b58
5,065
py
Python
datasets/ISBI2017_build_dataset_zn.py
UpCoder/YNe
2f932456eda29b1e04f4c7e212e2ab0dacfe831b
[ "MIT" ]
null
null
null
datasets/ISBI2017_build_dataset_zn.py
UpCoder/YNe
2f932456eda29b1e04f4c7e212e2ab0dacfe831b
[ "MIT" ]
null
null
null
datasets/ISBI2017_build_dataset_zn.py
UpCoder/YNe
2f932456eda29b1e04f4c7e212e2ab0dacfe831b
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- import cv2 import os from glob import glob import numpy as np from tqdm import tqdm import nipy MIN_AREA = 10 def image_expand(img, kernel_size=5): kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (kernel_size, kernel_size)) image = cv2.dilate(img, kernel) return image def im...
34.691781
116
0.634353
796bd473a9f3070b341ab16a979274cb755f38d6
1,187
py
Python
wikum-env3/lib/python3.7/site-packages/pinax/templatetags/templatetags/theme_tags.py
xuericlin/wikum
f0171f1697efa91d6957f976f473c9201db85648
[ "MIT" ]
1
2015-11-05T13:48:48.000Z
2015-11-05T13:48:48.000Z
pinax/templatetags/templatetags/theme_tags.py
applegrew/pinax
ff83e42b14eae10f64406e7ba0aa485d005bcbfc
[ "MIT" ]
null
null
null
pinax/templatetags/templatetags/theme_tags.py
applegrew/pinax
ff83e42b14eae10f64406e7ba0aa485d005bcbfc
[ "MIT" ]
null
null
null
from django import template from django.conf import settings register = template.Library() class SilkNode(template.Node): """ node class for silk tag """ def __init__(self, name, attrs): self.name = template.Variable(name) self.attrs = {} for attr in attrs: k...
23.74
70
0.524853
796bd5e7a4c7859ad3c72a14d7b0d88940a81ed1
1,116
py
Python
lc/1074_NumberOfSubmatricesThatSumToTarget.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1074_NumberOfSubmatricesThatSumToTarget.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
lc/1074_NumberOfSubmatricesThatSumToTarget.py
xiangshiyin/coding-challenge
a75a644b96dec1b6c7146b952ca4333263f0a461
[ "Apache-2.0" ]
null
null
null
class Solution: def numSubmatrixSumTarget(self, matrix: List[List[int]], target: int) -> int: ''' compress the matrix ''' m = len(matrix) n = len(matrix[0]) def helper(tmp, target): from collections import defaultdict presu...
31
83
0.415771
796bd614224e065de1735bdf3af19309d1de75a7
574
py
Python
swaps/service/margin/post_cross_margin_create_loan_orders.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
1
2021-09-06T00:09:11.000Z
2021-09-06T00:09:11.000Z
swaps/service/margin/post_cross_margin_create_loan_orders.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
null
null
null
swaps/service/margin/post_cross_margin_create_loan_orders.py
DunnCreativeSS/cash_carry_leveraged_futures_arbitrageur
1120ebfb487ce4987fe70e6645b36e0d7ce041ec
[ "Apache-2.0" ]
null
null
null
from swaps.connection.restapi_sync_client import RestApiSyncClient from swaps.constant.system import HttpMethod from swaps.utils.json_parser import default_parse_data_as_long class PostCrossMarginCreateLoanOrdersService: def __init__(self, params): self.params = params def request(self, **kwargs): ...
23.916667
109
0.749129
796bd6f01006b428b0e25542a46486b797861e4d
4,716
py
Python
lib/pwiki/Ipc.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
16
2015-02-05T17:32:04.000Z
2022-01-14T13:46:36.000Z
lib/pwiki/Ipc.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
8
2015-06-20T20:02:41.000Z
2016-02-23T14:52:32.000Z
lib/pwiki/Ipc.py
dszmaj/wikidpad
1127375665935524ddb623da8dd5137038c7e53e
[ "Apache-2.0", "MIT" ]
11
2015-05-19T09:17:16.000Z
2017-09-14T00:43:13.000Z
""" Handles interprocess communication, currently it checks only if another WikidPad instance is already active, transfers commandline to it and closes the additional instance then. """ import os, sys, string, re, traceback import threading, socket, SocketServer import wx from Serialization import Seriali...
27.103448
91
0.570823
796bd8805e654c4969d1addc294762a38ce7ad3c
22,348
py
Python
tests/sew_d/test_modeling_sew_d.py
dctelus/transformers
6786cbc4b14ebff0ac59c768cadd109391db9a08
[ "Apache-2.0" ]
3
2022-01-15T08:06:07.000Z
2022-03-10T07:13:18.000Z
tests/sew_d/test_modeling_sew_d.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2
2022-03-14T10:13:16.000Z
2022-03-14T11:50:27.000Z
tests/sew_d/test_modeling_sew_d.py
arron1227/transformers
b18dfd95e1f60ae65a959a7b255fc06522170d1b
[ "Apache-2.0" ]
2
2022-03-21T04:32:39.000Z
2022-03-22T01:02:49.000Z
# coding=utf-8 # Copyright 2021 The HuggingFace Inc. team. 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 r...
38.798611
128
0.653616
796bd94b1e442da3ed25d4c2ea9138e5fcfcbab9
2,429
py
Python
process.py
hyperknot/XCTrack-config
46d32048eaa434fb87dce4b761916c7094e5cc16
[ "MIT" ]
3
2020-07-03T13:50:38.000Z
2021-07-31T02:48:58.000Z
process.py
hyperknot/XCTrack-config
46d32048eaa434fb87dce4b761916c7094e5cc16
[ "MIT" ]
null
null
null
process.py
hyperknot/XCTrack-config
46d32048eaa434fb87dce4b761916c7094e5cc16
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import sys from lib.utils import read_json, write_json, ensure_dir def process(file_path, new_screen_name): if not os.path.isfile(file_path): sys.exit('File not found') data = read_json(file_path) new_data = dict() new_data['layout'] = data['layout'] ne...
28.916667
152
0.624125
796bd94e04b3ebc95f3dfdb6ce5f1b74cfe98ae2
2,267
py
Python
tests/models/v2/average_analysed_volume_stats_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
5
2016-08-23T17:52:22.000Z
2019-05-16T08:45:30.000Z
tests/models/v2/average_analysed_volume_stats_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
2
2016-11-10T05:30:21.000Z
2019-04-05T15:03:37.000Z
tests/models/v2/average_analysed_volume_stats_test.py
NetApp/santricity-webapi-pythonsdk
1d3df4a00561192f4cdcdd1890f4d27547ed2de2
[ "BSD-3-Clause-Clear" ]
7
2016-08-25T16:11:44.000Z
2021-02-22T05:31:25.000Z
#!/usr/bin/env python # coding: utf-8 """ The Clear BSD License Copyright (c) – 2016, NetApp, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions...
59.657895
845
0.782091
796bd9ae2944d925b766fd19d6b176c21ce5d68d
8,750
py
Python
mindspore/python/mindspore/scipy/optimize/_bfgs.py
wsjlovecode/mindspore
0b5ad5318041172c1e1d825343d496100a4ae2dc
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/scipy/optimize/_bfgs.py
wsjlovecode/mindspore
0b5ad5318041172c1e1d825343d496100a4ae2dc
[ "Apache-2.0" ]
null
null
null
mindspore/python/mindspore/scipy/optimize/_bfgs.py
wsjlovecode/mindspore
0b5ad5318041172c1e1d825343d496100a4ae2dc
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
38.546256
107
0.533714
796bda8a811c62a6526403b13c701887e2821dba
1,211
py
Python
app/jobs.py
TatanParker/python-redis-data-docker
5f7698ee9d3e134acab766ae602ad9b817760a83
[ "MIT" ]
10
2020-06-13T09:15:17.000Z
2021-08-23T14:00:09.000Z
app/jobs.py
TatanParker/python-redis-data-docker
5f7698ee9d3e134acab766ae602ad9b817760a83
[ "MIT" ]
null
null
null
app/jobs.py
TatanParker/python-redis-data-docker
5f7698ee9d3e134acab766ae602ad9b817760a83
[ "MIT" ]
1
2020-05-15T05:33:47.000Z
2020-05-15T05:33:47.000Z
import logging import pandas as pd import requests import redis from . import APP, RQ_CLIENT REDIS_CLIENT = redis.Redis(host=APP.config.get('REDIS_HOST'), db=0) GH_HEADERS = {'Authorization': 'token ' + APP.config.get('GITHUB_TOKEN', '')} # https://stackoverflow.com/questions/17622439/how-to-use-github-api-token-...
33.638889
101
0.680429
796bdb37c1332e05dee2f5d187f1678d3a577096
3,857
py
Python
Rui/ESN_new_interp.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
1
2020-11-29T12:42:30.000Z
2020-11-29T12:42:30.000Z
Rui/ESN_new_interp.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
Rui/ESN_new_interp.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
from sklearn.metrics import accuracy_score, f1_score, roc_auc_score, precision_score, recall_score, roc_curve from ESNtools import * from iterative_interpolation import nan_bounds, nan_interpolate from GroupStratifiedKFold import GroupStratifiedKFold print("Loading datasets...", flush=True) dataset_interp = np.nan_t...
36.046729
124
0.688877
796bdb99536518f436287cd1c79cba5301bc54cd
7,708
py
Python
tensorflow_probability/python/distributions/poisson.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
1
2020-04-29T11:29:25.000Z
2020-04-29T11:29:25.000Z
tensorflow_probability/python/distributions/poisson.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/poisson.py
ValentinMouret/probability
7ea6cc55e5b3fed04372cd188cd0764e92fd3cf4
[ "Apache-2.0" ]
1
2020-07-04T21:37:20.000Z
2020-07-04T21:37:20.000Z
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
37.6
79
0.662558
796bdc3d76de5604b4493551ac33f877a675fc04
13,514
py
Python
encoder.py
jgard1/continual-learning
54ffbfe8cd548c7edeaae10feb721030a2e7de3a
[ "MIT" ]
null
null
null
encoder.py
jgard1/continual-learning
54ffbfe8cd548c7edeaae10feb721030a2e7de3a
[ "MIT" ]
null
null
null
encoder.py
jgard1/continual-learning
54ffbfe8cd548c7edeaae10feb721030a2e7de3a
[ "MIT" ]
null
null
null
import torch from torch.nn import functional as F from linear_nets import MLP,fc_layer from boosted_exemplars import ExemplarHandler from continual_learner import ContinualLearner from replayer import Replayer import utils class Classifier(ContinualLearner, Replayer, ExemplarHandler): '''Model for classifying ima...
48.611511
120
0.591239
796bdca05f17092aceff21608300c0d265526164
2,938
py
Python
bika/lims/skins/bika/guard_attach_transition.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/skins/bika/guard_attach_transition.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
bika/lims/skins/bika/guard_attach_transition.py
hocinebendou/bika.gsoc
85bc0c587de7f52073ae0e89bddbc77bf875f295
[ "MIT" ]
null
null
null
## Script (Python) "guard_attach_transition" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters= ##title= ## workflow = context.portal_workflow # Can't do anything to the object if it's cancelled # reference and duplicate analyses don'...
39.702703
79
0.622192
796bdcef0cd6c44447f3c4de0d9ca5046fb2d079
3,815
py
Python
notebook/settings.py
mrearsbig/users
88a8365c9b7cb397e6c8f9c2647c321742de9d4c
[ "MIT" ]
1
2021-11-26T21:39:43.000Z
2021-11-26T21:39:43.000Z
notebook/settings.py
mrearsbig/users
88a8365c9b7cb397e6c8f9c2647c321742de9d4c
[ "MIT" ]
null
null
null
notebook/settings.py
mrearsbig/users
88a8365c9b7cb397e6c8f9c2647c321742de9d4c
[ "MIT" ]
null
null
null
""" Django settings for notebook project. Generated by 'django-admin startproject' using Django 3.2.9. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathli...
25.604027
91
0.700393
796bdcfa19a754c623a410d706d35e7651e4ba00
12,114
py
Python
src/generate_results_table.py
d-e-e-p/generate_color_schemes
468ae67956811add60c49e783100f888674a21d8
[ "MIT" ]
null
null
null
src/generate_results_table.py
d-e-e-p/generate_color_schemes
468ae67956811add60c49e783100f888674a21d8
[ "MIT" ]
null
null
null
src/generate_results_table.py
d-e-e-p/generate_color_schemes
468ae67956811add60c49e783100f888674a21d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ result swatches """ import os, sys sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) from glob import glob import re import math from json_tricks import loads from pathlib import Path from lib.ColorUtils import ColorUtils c = ColorUtils() def read_json_fil...
29.402913
215
0.606653
796bdd0e5192439848c750423d4dfa12583db54b
9,303
py
Python
api-dev/venv/lib/python3.6/site-packages/Crypto/SelfTest/Cipher/test_OFB.py
twaddle-dev/CoVid-19
37b1ca12d7ca1a066ab1c0d4a02d9b038d44e62f
[ "Apache-2.0" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
api-dev/venv/lib/python3.6/site-packages/Crypto/SelfTest/Cipher/test_OFB.py
twaddle-dev/CoVid-19
37b1ca12d7ca1a066ab1c0d4a02d9b038d44e62f
[ "Apache-2.0" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
api-dev/venv/lib/python3.6/site-packages/Crypto/SelfTest/Cipher/test_OFB.py
twaddle-dev/CoVid-19
37b1ca12d7ca1a066ab1c0d4a02d9b038d44e62f
[ "Apache-2.0" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
# =================================================================== # # Copyright (c) 2015, Legrandin <helderijs@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributio...
39.088235
90
0.662367
796bddaba9823919d4d727515f7f277ced3c42a2
1,809
py
Python
ctdjango/linkedct/urls.py
oktie/linkedct
834f71acce471549102199a141aa768e7ffd63d8
[ "Apache-2.0" ]
9
2015-08-04T01:30:58.000Z
2021-08-23T14:39:20.000Z
ctdjango/linkedct/urls.py
oktie/linkedct
834f71acce471549102199a141aa768e7ffd63d8
[ "Apache-2.0" ]
5
2015-10-13T18:23:43.000Z
2015-12-02T18:56:05.000Z
ctdjango/linkedct/urls.py
oktie/linkedct
834f71acce471549102199a141aa768e7ffd63d8
[ "Apache-2.0" ]
6
2015-07-22T02:48:06.000Z
2021-12-10T20:22:01.000Z
# # Copyright 2009-2015 Oktie Hassanzadeh # # 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 ...
29.177419
92
0.66335
796bdde3b9001cb257fcbc9807ef7631990bd901
1,308
py
Python
convert_xyz_to_inp.py
ptolatar/comp_chem
7461c426f6e27f0ff0d01da33ab1881c22d660d1
[ "MIT" ]
null
null
null
convert_xyz_to_inp.py
ptolatar/comp_chem
7461c426f6e27f0ff0d01da33ab1881c22d660d1
[ "MIT" ]
null
null
null
convert_xyz_to_inp.py
ptolatar/comp_chem
7461c426f6e27f0ff0d01da33ab1881c22d660d1
[ "MIT" ]
null
null
null
# 2018-05-19 Michal B ''' This script batch converts molecular coordinate (*.xyz) files into gaussian09 input (*.com) files. Specify *.com settings under the INPUTS section of this script ''' import numpy as np import os import sys import glob # INPUTS ----------- theory = '#n B3LYP/6-31G(d) SP' charge = 0 multiplici...
27.25
78
0.581804
796bde0012c40b579250f71eeef8f903aa0f8b4b
1,374
py
Python
tensorflow_datasets/audio/librispeech_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
2
2022-02-14T09:51:39.000Z
2022-02-14T13:27:49.000Z
tensorflow_datasets/audio/librispeech_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/audio/librispeech_test.py
shubhamkumaR630/datasets
fe9ee91849cefed0953141ea3588f73b7def78fd
[ "Apache-2.0" ]
1
2020-12-13T22:11:33.000Z
2020-12-13T22:11:33.000Z
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets 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 appl...
29.869565
74
0.699418
796bde61d5480b85e3d6f2d21adbf68637d20bf7
5,033
py
Python
tests/ut/datavisual/data_transform/test_ms_data_loader.py
zengchen1024/mindinsight
228a448b46707e889efc1fb23502158e27ab56ca
[ "Apache-2.0" ]
null
null
null
tests/ut/datavisual/data_transform/test_ms_data_loader.py
zengchen1024/mindinsight
228a448b46707e889efc1fb23502158e27ab56ca
[ "Apache-2.0" ]
null
null
null
tests/ut/datavisual/data_transform/test_ms_data_loader.py
zengchen1024/mindinsight
228a448b46707e889efc1fb23502158e27ab56ca
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # 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...
41.941667
106
0.667197
796bdf38232d36a1862a96782242807a53b397cf
5,085
py
Python
preprocessing/assembly_summary.py
srom/nbias
be8cf8dd623038dcf08d38ed3d19f635ee2dbeae
[ "MIT" ]
null
null
null
preprocessing/assembly_summary.py
srom/nbias
be8cf8dd623038dcf08d38ed3d19f635ee2dbeae
[ "MIT" ]
null
null
null
preprocessing/assembly_summary.py
srom/nbias
be8cf8dd623038dcf08d38ed3d19f635ee2dbeae
[ "MIT" ]
null
null
null
""" Gather metadata for all assemblies in the dataset and output to assemblies.csv """ import argparse import os import logging import re import numpy as np import pandas as pd logger = logging.getLogger(__name__) def main(): logging.basicConfig(level=logging.INFO, format="%(asctime)s (%(levelname)s) %(messag...
29.224138
108
0.611406
796be068317ee3aff18e332fe6ad78bde958d03a
10,657
py
Python
src/Products/LDAPMultiPlugins/LDAPMultiPlugin.py
dataflake/Products.LDAPMultiPlugins
977bf25a80f416d24c162a6196cb663d7906ecb6
[ "ZPL-2.1" ]
null
null
null
src/Products/LDAPMultiPlugins/LDAPMultiPlugin.py
dataflake/Products.LDAPMultiPlugins
977bf25a80f416d24c162a6196cb663d7906ecb6
[ "ZPL-2.1" ]
null
null
null
src/Products/LDAPMultiPlugins/LDAPMultiPlugin.py
dataflake/Products.LDAPMultiPlugins
977bf25a80f416d24c162a6196cb663d7906ecb6
[ "ZPL-2.1" ]
1
2022-01-08T15:47:03.000Z
2022-01-08T15:47:03.000Z
############################################################################## # # Copyright (c) 2005-2021 Jens Vagelpohl and Contributors. All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS S...
37.262238
79
0.589847
796be0afc7bde3ad6390f91dad94dc4e7c4294ed
8,731
py
Python
tests/update_live_stats_test.py
OfficialRepo/PokemonGo-Bot
ae314b666a1eb71de8872289ef3a298af09e4637
[ "MIT" ]
1
2016-08-25T09:23:27.000Z
2016-08-25T09:23:27.000Z
tests/update_live_stats_test.py
OfficialRepo/PokemonGo-Bot
ae314b666a1eb71de8872289ef3a298af09e4637
[ "MIT" ]
null
null
null
tests/update_live_stats_test.py
OfficialRepo/PokemonGo-Bot
ae314b666a1eb71de8872289ef3a298af09e4637
[ "MIT" ]
null
null
null
import unittest from sys import platform as _platform from datetime import datetime, timedelta from mock import call, patch, MagicMock from pokemongo_bot.cell_workers.update_live_stats import UpdateLiveStats from tests import FakeBot class UpdateLiveStatsTestCase(unittest.TestCase): config = { 'min_interv...
46.94086
127
0.695224
796be2206ba9f80d8b8107ad266831de37ecfe1f
5,406
py
Python
register/views/general.py
LandRegistry/register
52c7731a17a67e6aac351ee118cc18510cf6051c
[ "MIT" ]
null
null
null
register/views/general.py
LandRegistry/register
52c7731a17a67e6aac351ee118cc18510cf6051c
[ "MIT" ]
null
null
null
register/views/general.py
LandRegistry/register
52c7731a17a67e6aac351ee118cc18510cf6051c
[ "MIT" ]
1
2021-04-11T05:24:52.000Z
2021-04-11T05:24:52.000Z
from register.dependencies import postgres from flask import request, Blueprint, Response, g from flask import current_app import json import datetime general = Blueprint('general', __name__) @general.route("/health") def check_status(): return Response(response=json.dumps({ "app": current_app.config["AP...
47.421053
119
0.519053
796be2220652b1c082974e4d7bb98d5537b4c890
150
py
Python
configuration_loader/loaders/base.py
Tiendeo/settings_loader
bcad6e081f0146665cdfae823d1981f7e585aa04
[ "MIT" ]
1
2018-11-08T15:42:55.000Z
2018-11-08T15:42:55.000Z
configuration_loader/loaders/base.py
Tiendeo/settings_loader
bcad6e081f0146665cdfae823d1981f7e585aa04
[ "MIT" ]
null
null
null
configuration_loader/loaders/base.py
Tiendeo/settings_loader
bcad6e081f0146665cdfae823d1981f7e585aa04
[ "MIT" ]
null
null
null
from abc import abstractmethod class Base(object): @abstractmethod def load(self): """Return list of dictionaries""" pass
13.636364
41
0.633333
796be23afda2b1070cabfbb3ea8b6face22103d1
12,079
py
Python
src/vnsw/opencontrail-vrouter-netns/opencontrail_vrouter_netns/haproxy_process.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
null
null
null
src/vnsw/opencontrail-vrouter-netns/opencontrail_vrouter_netns/haproxy_process.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
2
2018-12-04T02:20:52.000Z
2018-12-22T06:16:30.000Z
src/vnsw/opencontrail-vrouter-netns/opencontrail_vrouter_netns/haproxy_process.py
Dmitry-Eremeev/contrail-controller
1238bcff697981662225ec5a15bc4d3d2237ae93
[ "Apache-2.0" ]
1
2018-12-04T02:07:47.000Z
2018-12-04T02:07:47.000Z
import os import ConfigParser import subprocess import shlex import logging import itertools from cert_mgr.cert_manager import CertManager LBAAS_DIR = "/var/lib/contrail/loadbalancer" HAPROXY_DIR = LBAAS_DIR + "/" + "haproxy" HAPROXY_PROCESS = 'haproxy' HAPROXY_PROCESS_CONF = HAPROXY_PROCESS + ".conf" SUPERVISOR_BASE...
36.938838
94
0.634738
796be2bb4af3963522d37d94a39bea3f24a1a5f5
1,375
py
Python
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DescribeTrailsRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DescribeTrailsRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-actiontrail/aliyunsdkactiontrail/request/v20171204/DescribeTrailsRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.162162
89
0.775273
796be3e3a9529bc3604e19619af76103799ea892
13,589
py
Python
intersight/model/firmware_cifs_server.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/firmware_cifs_server.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/firmware_cifs_server.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
50.895131
1,678
0.633601
796be40e8aabcad0a58c1f1ba33eb6ff63fbece2
70,086
py
Python
tests/i18n/tests.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
2
2020-09-25T04:02:25.000Z
2020-10-15T00:01:00.000Z
tests/i18n/tests.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
tests/i18n/tests.py
andreip/django
c61d1361d027a729d07d277879950ff133c19f4c
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-10-15T00:01:13.000Z
2020-10-15T00:01:13.000Z
import datetime import decimal import gettext as gettext_module import os import pickle from contextlib import contextmanager from importlib import import_module from threading import local from django import forms from django.conf import settings from django.conf.urls.i18n import i18n_patterns from django.template im...
45.100386
119
0.572254
796be52ad307faa56f4eeb23d6b10fc04a0865b5
16,765
py
Python
sdk/python/lib/pulumi/output.py
Strife96/pulumi
66de4a48b78f663f7f6f1487dd15ff2a9d172912
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/output.py
Strife96/pulumi
66de4a48b78f663f7f6f1487dd15ff2a9d172912
[ "Apache-2.0" ]
null
null
null
sdk/python/lib/pulumi/output.py
Strife96/pulumi
66de4a48b78f663f7f6f1487dd15ff2a9d172912
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018, Pulumi 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 applicable law or agreed t...
43.658854
120
0.648792
796be5c28c1c6a875474408ae1b1fb78dcebda97
7,545
py
Python
sdk/python/pulumi_azure_native/storage/get_encryption_scope.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/get_encryption_scope.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/storage/get_encryption_scope.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
43.114286
322
0.685355
796be86cb46de2702a65504ac452eb24a75cfcbe
95
py
Python
src/atcoder/abc002/a/sol_1.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
1
2021-07-11T03:20:10.000Z
2021-07-11T03:20:10.000Z
src/atcoder/abc002/a/sol_1.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
39
2021-07-10T05:21:09.000Z
2021-12-15T06:10:12.000Z
src/atcoder/abc002/a/sol_1.py
kagemeka/competitive-programming
c70fe481bcd518f507b885fc9234691d8ce63171
[ "MIT" ]
null
null
null
import typing def main() -> typing.NoReturn: print(max(map(int, input().split()))) main()
11.875
39
0.642105
796be8c94720fc06601e8f614159e30b54a9c9e9
17,348
py
Python
protonfixes/util.py
alanjjenkins/protonfixes
f56984e23ffc73f8d00eaed904f82d6b9d420181
[ "BSD-2-Clause" ]
null
null
null
protonfixes/util.py
alanjjenkins/protonfixes
f56984e23ffc73f8d00eaed904f82d6b9d420181
[ "BSD-2-Clause" ]
null
null
null
protonfixes/util.py
alanjjenkins/protonfixes
f56984e23ffc73f8d00eaed904f82d6b9d420181
[ "BSD-2-Clause" ]
null
null
null
""" Utilities to make gamefixes easier """ import configparser import os import sys import re import shutil import signal import zipfile import subprocess import urllib.request from .logger import log from . import config try: import __main__ as protonmain except ImportError: log.warn('Unable to hook into Pro...
30.222997
99
0.639324
796be91f3fb3bd4a397d91f4da6997896c13a4e8
403
py
Python
DiscountCodes/DiscountCodes/asgi.py
LuqmanSahaf/discount-codes
9072c00c75438440c23011b2922a8e4b90addee2
[ "Apache-2.0" ]
null
null
null
DiscountCodes/DiscountCodes/asgi.py
LuqmanSahaf/discount-codes
9072c00c75438440c23011b2922a8e4b90addee2
[ "Apache-2.0" ]
null
null
null
DiscountCodes/DiscountCodes/asgi.py
LuqmanSahaf/discount-codes
9072c00c75438440c23011b2922a8e4b90addee2
[ "Apache-2.0" ]
null
null
null
""" ASGI config for DiscountCodes project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/4.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO...
23.705882
78
0.791563
796be94e06ddd2de59a86074cd0212f877122e92
8,897
py
Python
lint_result_pb2.py
justincohler/data-linter
ef62043ae1a2022d48b3c1e83171cfd500a11524
[ "Apache-2.0" ]
82
2017-12-01T21:59:10.000Z
2021-12-12T20:57:51.000Z
lint_result_pb2.py
justincohler/data-linter
ef62043ae1a2022d48b3c1e83171cfd500a11524
[ "Apache-2.0" ]
null
null
null
lint_result_pb2.py
justincohler/data-linter
ef62043ae1a2022d48b3c1e83171cfd500a11524
[ "Apache-2.0" ]
10
2017-12-08T21:04:43.000Z
2021-05-14T07:52:51.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.382353
729
0.730021
796be98cb4dd004927968cdb333cba6fd0e569fd
2,193
py
Python
ex/mishel/mishel_tests.py
darviarush/rubin-forms
d3b0d16f937c58439d4ab1be667e573ff5555f06
[ "BSD-2-Clause" ]
null
null
null
ex/mishel/mishel_tests.py
darviarush/rubin-forms
d3b0d16f937c58439d4ab1be667e573ff5555f06
[ "BSD-2-Clause" ]
null
null
null
ex/mishel/mishel_tests.py
darviarush/rubin-forms
d3b0d16f937c58439d4ab1be667e573ff5555f06
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- import unittest, os, re from mishel import Mishel, Messenger class MockMessenger(Messenger): """ заглушка для общения """ def __init__(self, *av, **kv): """ конструктор """ self._reply = [] super(type(self), self).__init__(*av, **kv) def message(self, msg,...
25.5
77
0.661195
796bea67988a87a8a1b5feb74f2e0a676b2c07d6
1,402
py
Python
tests/test_stepz.py
hanzhichao/runnerz
3a42b7281972871b16c6347a2e233c5215047b08
[ "MIT" ]
null
null
null
tests/test_stepz.py
hanzhichao/runnerz
3a42b7281972871b16c6347a2e233c5215047b08
[ "MIT" ]
2
2021-03-31T19:45:39.000Z
2021-12-13T20:43:55.000Z
tests/test_stepz.py
hanzhichao/runnerz
3a42b7281972871b16c6347a2e233c5215047b08
[ "MIT" ]
null
null
null
import os from filez import file BASEDIR = os.path.dirname(os.path.dirname(__file__)) data1 = file.load(os.path.join(BASEDIR, 'tests', 'data', 'runnerz_01.yaml')) from runnerz import models from runnerz.runner import Runner, UnittestRunner def test_models(): suite = models.Suite(data1) print(suite) prin...
23.366667
76
0.624108
796beb4272283d5d208238fa330d7e7bebc1ad9e
1,944
py
Python
cvpods/modeling/proposal_generator/proposal_utils.py
lxtGH/BorderDet
ff425172a35a25e733d0facd79c2fd6f378052b0
[ "Apache-2.0" ]
null
null
null
cvpods/modeling/proposal_generator/proposal_utils.py
lxtGH/BorderDet
ff425172a35a25e733d0facd79c2fd6f378052b0
[ "Apache-2.0" ]
null
null
null
cvpods/modeling/proposal_generator/proposal_utils.py
lxtGH/BorderDet
ff425172a35a25e733d0facd79c2fd6f378052b0
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import math import torch from cvpods.structures import Instances def add_ground_truth_to_proposals(gt_boxes, proposals): """ Call `add_ground_truth_to_proposals_single_image` for all images. Args: gt_boxes(list[Boxes]): list ...
33.517241
93
0.708848
796bec9b14e705df122e2fbc6509bdfc0c504f69
418
py
Python
leetcode/queue/keys-and-rooms.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
8
2019-05-14T12:50:29.000Z
2022-03-01T09:08:27.000Z
leetcode/queue/keys-and-rooms.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
46
2019-03-24T20:59:29.000Z
2019-04-09T16:28:43.000Z
leetcode/queue/keys-and-rooms.py
vtemian/interviews-prep
ddef96b5ecc699a590376a892a804c143fe18034
[ "Apache-2.0" ]
1
2022-01-28T12:46:29.000Z
2022-01-28T12:46:29.000Z
class Solution: def canVisitAllRooms(self, rooms: List[List[int]]) -> bool: visited = [0] * len(rooms) r = [0] while r: room = r.pop(0) if visited[room]: continue for rr in rooms[room]: if visited[rr]: ...
22
63
0.435407
796bece4ba57153d5c8b1031c4a8ae5bf470194c
84,948
py
Python
tensorflow_probability/python/distributions/distribution.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
1
2022-03-06T15:37:18.000Z
2022-03-06T15:37:18.000Z
tensorflow_probability/python/distributions/distribution.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
tensorflow_probability/python/distributions/distribution.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
39.73246
156
0.685831
796bed11d3c19b3bb98ab5f3075242fc8353dbf9
373
py
Python
protocol_tests/trust_ping/backchannel.py
ryjones/aries-protocol-test-suite
f60891693347a2544173def752eea7ee7db4315f
[ "Apache-2.0" ]
22
2019-07-17T15:51:07.000Z
2022-03-10T03:13:15.000Z
protocol_tests/trust_ping/backchannel.py
L3-iGrant/aries-protocol-test-suite
26b8b5af6b973f2deebb097ed748fd088136a2f3
[ "Apache-2.0" ]
23
2019-09-11T17:11:36.000Z
2021-02-22T19:28:14.000Z
protocol_tests/trust_ping/backchannel.py
L3-iGrant/aries-protocol-test-suite
26b8b5af6b973f2deebb097ed748fd088136a2f3
[ "Apache-2.0" ]
21
2019-07-17T15:06:59.000Z
2021-12-03T00:56:24.000Z
"""Trustping protocol Backchannel ABC.""" from abc import ABC from aries_staticagent import StaticConnection class TrustPingBackchannel(ABC): """Backchannel methods for TrustPing protocol.""" async def trust_ping_v1_0_send_ping(self, connection: StaticConnection): """Send a trustping to the specifie...
28.692308
76
0.753351
796bed6fa06208d96381b9956841fc4ecf26ab70
661
py
Python
pyrelease/licenses/GPL_3.py
pyrelease/PyRelease
0f8fac5dd19bd50fed047a9570bcd05101b50d08
[ "MIT" ]
1
2018-07-19T20:38:18.000Z
2018-07-19T20:38:18.000Z
pyrelease/licenses/GPL_3.py
pyrelease/pyrelease
0f8fac5dd19bd50fed047a9570bcd05101b50d08
[ "MIT" ]
null
null
null
pyrelease/licenses/GPL_3.py
pyrelease/pyrelease
0f8fac5dd19bd50fed047a9570bcd05101b50d08
[ "MIT" ]
null
null
null
TEMPLATE = """Copyright (C) {year} {author} This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in th...
44.066667
69
0.77761
796bed71aa1e611eb6b5078d0e771c91bedebb02
110
py
Python
lib/tool_shed/metadata/metadata_generator.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,085
2015-02-18T16:14:38.000Z
2022-03-30T23:52:07.000Z
lib/tool_shed/metadata/metadata_generator.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
11,253
2015-02-18T17:47:32.000Z
2022-03-31T21:47:03.000Z
lib/tool_shed/metadata/metadata_generator.py
rikeshi/galaxy
c536a877e4a9b3d12aa0d00fd4d5e705109a0d0a
[ "CC-BY-3.0" ]
1,000
2015-02-18T16:18:10.000Z
2022-03-29T08:22:56.000Z
from galaxy.tool_shed.metadata.metadata_generator import MetadataGenerator __all__ = ('MetadataGenerator', )
27.5
74
0.836364
796bee8b8f1183fe7c9743f266cf076188e3c278
11,378
py
Python
evaluate/eval_metric.py
jimmy9065/mxnet-ssd
e05b704de0756c4ca996e74f8f3c7dec1fe1f509
[ "MIT" ]
866
2016-10-07T16:05:13.000Z
2022-01-19T08:30:31.000Z
evaluate/eval_metric.py
whn09/mxnet-ssd
ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159
[ "MIT" ]
237
2016-10-06T21:19:45.000Z
2021-07-20T03:52:45.000Z
evaluate/eval_metric.py
whn09/mxnet-ssd
ff15817dbf6d3c6d3fc69fbf6bef4c4d61490159
[ "MIT" ]
431
2016-10-19T10:08:07.000Z
2021-10-03T00:43:33.000Z
import mxnet as mx import numpy as np import os import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt class MApMetric(mx.metric.EvalMetric): """ Calculate mean AP for object detection task Parameters: --------- ovp_thresh : float overlap threshold for TP use_difficul...
36.941558
107
0.492705
796befb3b6dfdd7267883b3707bd8b7f940d4513
2,093
py
Python
Numbers.py
anton2yakovlev/just_numbers
a0b4a4e4353853b4ff1dcddd22797a58cc0b82a7
[ "MIT" ]
48
2022-02-03T22:49:53.000Z
2022-02-19T13:29:47.000Z
Numbers.py
anton2yakovlev/just_numbers
a0b4a4e4353853b4ff1dcddd22797a58cc0b82a7
[ "MIT" ]
null
null
null
Numbers.py
anton2yakovlev/just_numbers
a0b4a4e4353853b4ff1dcddd22797a58cc0b82a7
[ "MIT" ]
1
2022-02-06T10:15:38.000Z
2022-02-06T10:15:38.000Z
from functools import total_ordering @total_ordering class Numbers: __slots__ = 'val' def __repr__(self): return str(self.val) def __eq__(self, other): return self.val == other def __lt__(self, other): return self.val < other def __abs__(self): return abs(self.v...
15.856061
40
0.593407
796bf022fb845a7b4b52ce7cfec49aaf75d8c1a1
366
py
Python
src/cms/api/settings.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
6
2021-01-26T17:22:53.000Z
2022-02-15T10:09:03.000Z
src/cms/api/settings.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
5
2020-12-24T14:29:23.000Z
2021-08-10T10:32:18.000Z
src/cms/api/settings.py
UniversitaDellaCalabria/uniCMS
b0af4e1a767867f0a9b3c135a5c84587e713cb71
[ "Apache-2.0" ]
2
2020-12-24T14:13:39.000Z
2020-12-30T16:48:52.000Z
from django.utils.translation import gettext_lazy as _ from cms.contexts.settings import CMS_CACHE_KEY_PREFIX LOCKS_CACHE_ENABLED = True LOCKS_CACHE_KEY_PREFIX = f'{CMS_CACHE_KEY_PREFIX}locks_' # in seconds LOCKS_CACHE_TTL = 25 LOCK_MESSAGE = _("Unable to make changes. " "{user} is currently editing...
28.153846
57
0.773224
796bf272746a5deee88c6bc33e94153bb75c6ff0
1,721
py
Python
stages/stage_1.py
LeastAuthority/Chia-Network-clvm_tools
9179d37e3acb274bc84d2bfa103f43b331f7467b
[ "Apache-2.0" ]
1
2021-06-09T14:57:45.000Z
2021-06-09T14:57:45.000Z
stages/stage_1.py
LeastAuthority/Chia-Network-clvm_tools
9179d37e3acb274bc84d2bfa103f43b331f7467b
[ "Apache-2.0" ]
29
2021-08-17T19:09:23.000Z
2022-03-29T19:08:23.000Z
stages/stage_1.py
LeastAuthority/Chia-Network-clvm_tools
9179d37e3acb274bc84d2bfa103f43b331f7467b
[ "Apache-2.0" ]
null
null
null
from stages.stage_0 import run_program as run_program_0 from stages.stage_0 import OPERATOR_LOOKUP from clvm_tools import binutils from clvm_tools.operator_dict import OperatorDict def make_invocation(code): def invoke(args): return run_program(code, args) return invoke def make_bindings(bindings_s...
27.31746
84
0.688553
796bf3d66336622ad8b42002e7a59c63201eba46
2,065
py
Python
GrayFrameImageCapture.py
sujitmandal/python
9fbb1e5f58f9ff173874941dd2adb868088bf67a
[ "MIT" ]
1
2019-04-10T15:43:16.000Z
2019-04-10T15:43:16.000Z
GrayFrameImageCapture.py
sujitmandal/python
9fbb1e5f58f9ff173874941dd2adb868088bf67a
[ "MIT" ]
null
null
null
GrayFrameImageCapture.py
sujitmandal/python
9fbb1e5f58f9ff173874941dd2adb868088bf67a
[ "MIT" ]
null
null
null
import cv2 import time import pandas import os from datetime import datetime #This programe is create by Sujit Mandal ''' note: in order to capture image yoy need to press "space" key from keybord ''' first_frame = None status_list = [None ,None] time = [] df = pandas.DataFrame(columns = ["Start","E...
25.8125
78
0.605327
796bf4494e22949b8aab9d7030c9c80d301fc447
13,325
py
Python
iRONS/Software/res_sys_sim.py
csiro-hydrology/iRONS
022182d85ed2e7799e5d65bb5b9ed04f91da7526
[ "MIT" ]
12
2020-12-15T23:39:26.000Z
2021-10-30T18:48:35.000Z
iRONS/Software/res_sys_sim.py
csiro-hydrology/iRONS
022182d85ed2e7799e5d65bb5b9ed04f91da7526
[ "MIT" ]
1
2021-05-12T08:34:06.000Z
2021-06-11T10:11:15.000Z
iRONS/Software/res_sys_sim.py
csiro-hydrology/iRONS
022182d85ed2e7799e5d65bb5b9ed04f91da7526
[ "MIT" ]
5
2020-09-12T14:38:46.000Z
2021-07-17T15:56:36.000Z
# -*- coding: utf-8 -*- """ This function implements the reservoir simulation model (res_sys_sim). First, it extracts and process the regulated flows contained in the Qreg variable. This makes the regulated flow data readable by the mass balance function (mass_bal_func). Then, mass_bal_func links all the key variable...
50.858779
140
0.586717
796bf51957667c3ce64ebddae1a7769840c03d74
662
py
Python
t04 QMdiArea.py
Changgg/python3_qt5_widgets-demo
931fd3cda62d6ac7b8ad186097b3a8a9f49fc105
[ "Apache-2.0" ]
1
2017-05-23T08:32:33.000Z
2017-05-23T08:32:33.000Z
t04 QMdiArea.py
Changgg/python3_qt5_widgets-demo
931fd3cda62d6ac7b8ad186097b3a8a9f49fc105
[ "Apache-2.0" ]
null
null
null
t04 QMdiArea.py
Changgg/python3_qt5_widgets-demo
931fd3cda62d6ac7b8ad186097b3a8a9f49fc105
[ "Apache-2.0" ]
null
null
null
import sys from PyQt5 import QtWidgets, QtGui, QtCore _translate = QtCore.QCoreApplication.translate if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) window = QtWidgets.QMainWindow() window.resize(800, 600) window.setWindowTitle(_translate("MainWindow", "My Mdi Window")) area = Q...
22.827586
68
0.688822
796bf52cf246e6e92a0bf90679ed4ace16931908
13,018
py
Python
shadowtrackr/__init__.py
shadowtrackr/python_api
cb8bdb78e0238f2da82ffa6df8f62a0cb829c812
[ "MIT" ]
1
2020-06-23T15:33:15.000Z
2020-06-23T15:33:15.000Z
shadowtrackr/__init__.py
shadowtrackr/python_api
cb8bdb78e0238f2da82ffa6df8f62a0cb829c812
[ "MIT" ]
null
null
null
shadowtrackr/__init__.py
shadowtrackr/python_api
cb8bdb78e0238f2da82ffa6df8f62a0cb829c812
[ "MIT" ]
null
null
null
import requests import json class ShadowTrackr(object): def __init__(self, api_key): self.api_key = api_key self.base_url = "https://shadowtrackr.com/api/v3/" self.proxies = {} def set_proxy(self, proxy): if proxy.startswith("http://"): proxy = proxy[7:] el...
39.689024
118
0.553849
796bf5c1e6d0a1a6dd1c6a05898e9bbcc0c5a81e
21,229
py
Python
mars/learn/neighbors/base.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
1
2022-02-02T03:03:48.000Z
2022-02-02T03:03:48.000Z
mars/learn/neighbors/base.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
mars/learn/neighbors/base.py
wjsi/mars
a69fb19edfe748d4393b90ff2c4941a76c084596
[ "Apache-2.0" ]
null
null
null
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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...
36.728374
88
0.560742
796bf5c3b7e4fd88758d254092341bf4417f1fe6
618
py
Python
users/migrations/0004_auto_20200909_0031.py
linikerunk/tcc-people-analytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
null
null
null
users/migrations/0004_auto_20200909_0031.py
linikerunk/tcc-people-analytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
1
2020-10-11T10:09:39.000Z
2020-10-11T10:09:39.000Z
users/migrations/0004_auto_20200909_0031.py
linikerunk/TCC_PeopleAnalytics
fdda975682d5299c8384e31ebb974dc085330875
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2020-09-09 03:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0003_auto_20200903_2013'), ] operations = [ migrations.AddField( model_name='employee', name='andress', ...
25.75
88
0.601942
796bf6347f0aaaf4ac7a5c206369005bfdb428ae
20,876
py
Python
api/app/users/api.py
cclauss/Baobab
e7aad3a63237be5f16e6441b89b3cc708ec19acd
[ "Apache-2.0" ]
null
null
null
api/app/users/api.py
cclauss/Baobab
e7aad3a63237be5f16e6441b89b3cc708ec19acd
[ "Apache-2.0" ]
null
null
null
api/app/users/api.py
cclauss/Baobab
e7aad3a63237be5f16e6441b89b3cc708ec19acd
[ "Apache-2.0" ]
null
null
null
from datetime import datetime from flask import g, request import flask_restful as restful from flask_restful import reqparse, fields, marshal_with, marshal from sqlalchemy.exc import IntegrityError from app.users.models import AppUser, PasswordReset, UserComment from app.users.mixins import SignupMixin, Authenticate...
35.383051
279
0.644951
796bf63d953f782b9b9ae78ef76c94a1d74fecfc
4,560
py
Python
src/a_tuin/unittests/metadata/test_field.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
src/a_tuin/unittests/metadata/test_field.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
1
2021-03-10T16:48:34.000Z
2021-03-10T16:48:34.000Z
src/a_tuin/unittests/metadata/test_field.py
gordon-elliott/glod
a381e21455d05d9c005942a3dee4ac67e10f366a
[ "MIT" ]
null
null
null
__copyright__ = 'Copyright(c) Gordon Elliott 2017' """ """ from datetime import datetime, date from decimal import Decimal from unittest import TestCase from unittest.mock import Mock from a_tuin.metadata.field import ( StringField, IntField, FloatField, DecimalField, DateTimeField, DateFiel...
34.545455
124
0.554167
796bf652d70a9276111e828918a632d80e9bb8d7
19,289
py
Python
scripts/python/switch-cfg.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
scripts/python/switch-cfg.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
scripts/python/switch-cfg.py
rbrud/power-up
c0d59a79ad9c713d94da73395a5fd768fcfff838
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2018 IBM Corp. # # 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 require...
40.438155
94
0.57525
796bf8bfb22b55879ad589d9b940c52f4a3bec1a
13,112
py
Python
awslogs/core.py
jbnunn/awslogs
1ead9a2eb3d944ed1641aede781459ffeb391ec1
[ "BSD-3-Clause" ]
null
null
null
awslogs/core.py
jbnunn/awslogs
1ead9a2eb3d944ed1641aede781459ffeb391ec1
[ "BSD-3-Clause" ]
null
null
null
awslogs/core.py
jbnunn/awslogs
1ead9a2eb3d944ed1641aede781459ffeb391ec1
[ "BSD-3-Clause" ]
null
null
null
import re import sys import os import time import errno from datetime import datetime, timedelta from collections import deque import boto3 import botocore from botocore.compat import json, six, total_seconds import jmespath from termcolor import colored from dateutil.parser import parse from dateutil.tz import tzut...
38.678466
103
0.541336
796bf8cc71f22e41332ce299be26ceeb883396e3
18,898
py
Python
exp/intro_exp/run_exp.py
Lossless-Virtual-Switching/Backdraft
99e8f7acf833d1755a109898eb397c3412fff159
[ "MIT" ]
null
null
null
exp/intro_exp/run_exp.py
Lossless-Virtual-Switching/Backdraft
99e8f7acf833d1755a109898eb397c3412fff159
[ "MIT" ]
null
null
null
exp/intro_exp/run_exp.py
Lossless-Virtual-Switching/Backdraft
99e8f7acf833d1755a109898eb397c3412fff159
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import argparse import json from pprint import pprint import os import subprocess import sys from time import sleep sys.path.insert(0, '../') from bkdrft_common import * from tas_containers import * cur_script_dir = os.path.dirname(os.path.abspath(__file__)) bessctl_dir = os.path.abspath(os.path.j...
32.194208
105
0.568843
796bf8fe2a5a2ad91707516d9bd82ec7f05ed7ff
4,576
py
Python
qa/rpc-tests/multi_rpc.py
tealcoin-project/tealcoin
2ba3e375ca5af139fab25fe42383d8e19b8d8d8e
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
tealcoin-project/tealcoin
2ba3e375ca5af139fab25fe42383d8e19b8d8d8e
[ "MIT" ]
null
null
null
qa/rpc-tests/multi_rpc.py
tealcoin-project/tealcoin
2ba3e375ca5af139fab25fe42383d8e19b8d8d8e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test multiple rpc user config option rpcauth # from test_framework.test_framework import BitcoinTest...
37.818182
129
0.645323
796bf96fe3c833412bf385893dc7b6329a3605fc
49
py
Python
libraries/botframework-connector/botframework/connector/async_mixin/__init__.py
victor-kironde/botbuilder-python
e893d9b036d7cf33cf9c9afd1405450c354cdbcd
[ "MIT" ]
10
2019-05-11T18:07:14.000Z
2021-08-20T03:02:47.000Z
libraries/botframework-connector/botframework/connector/async_mixin/__init__.py
Fortune-Adekogbe/botbuilder-python
4e48c874c32a2a7fe7f27a7a1f825e2aa39466c4
[ "MIT" ]
13
2020-09-05T11:06:05.000Z
2020-10-29T05:01:19.000Z
botframework_connector-4.11.0/botframework/connector/async_mixin/__init__.py
opsdroid/wheels-for-teams-connector
c283bb5ab95a4c3d4023767d53d2686aa531f372
[ "Apache-2.0" ]
18
2019-08-19T12:11:00.000Z
2021-10-12T09:36:27.000Z
from .async_mixin import AsyncServiceClientMixin
24.5
48
0.897959
796bf9fc74f0266722e0d11e8afaa742faafd74d
276
py
Python
deco.py
melvin0008/pythoncodestrial
7ec64db61339dd73678f97106623108135afe737
[ "Apache-2.0" ]
null
null
null
deco.py
melvin0008/pythoncodestrial
7ec64db61339dd73678f97106623108135afe737
[ "Apache-2.0" ]
null
null
null
deco.py
melvin0008/pythoncodestrial
7ec64db61339dd73678f97106623108135afe737
[ "Apache-2.0" ]
null
null
null
l=['07895462130','919875641230','9195969878'] def formatNumber(func): def replace (list_of_numbers): return func([ '+91'+x[-10:] for x in list_of_numbers]) return replace @formatNumber def printnumbers(l): for x in l : print x printnumbers(l)
17.25
62
0.655797
796bfc2698331b41271832781f20648025f7ac34
662
py
Python
migrations/versions/39f25296cd6_add_active_boolean_to_committees.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
2
2019-06-11T20:46:43.000Z
2020-08-27T22:50:32.000Z
migrations/versions/39f25296cd6_add_active_boolean_to_committees.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
70
2017-05-26T14:04:06.000Z
2021-06-30T10:21:58.000Z
migrations/versions/39f25296cd6_add_active_boolean_to_committees.py
havanhuy1997/pmg-cms-2
21571235cf3d9552013bca29ab9af288b08e00d6
[ "Apache-2.0" ]
4
2017-08-29T10:09:30.000Z
2021-05-25T11:29:03.000Z
"""add active boolean to committees Revision ID: 39f25296cd6 Revises: 46085f5c8e36 Create Date: 2017-05-22 12:12:39.327466 """ # revision identifiers, used by Alembic. revision = '39f25296cd6' down_revision = '46085f5c8e36' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto genera...
24.518519
114
0.702417
796bfd10243eef65753d93af0ee465635fbd9557
793
py
Python
tests/test_readme.py
MartinKliemank/lettuce
ee1b4dbfdbcf1bd87ac6b867b091a923d033403e
[ "MIT" ]
2
2020-03-29T12:16:35.000Z
2021-06-11T12:43:26.000Z
tests/test_readme.py
MartinKliemank/lettuce
ee1b4dbfdbcf1bd87ac6b867b091a923d033403e
[ "MIT" ]
null
null
null
tests/test_readme.py
MartinKliemank/lettuce
ee1b4dbfdbcf1bd87ac6b867b091a923d033403e
[ "MIT" ]
1
2021-05-10T08:46:29.000Z
2021-05-10T08:46:29.000Z
def test_readme(): """Whenever you have to change this test, the example in README.rst has to change, too. Note differences in the device + number of steps. """ import torch from lettuce import BGKCollision, StandardStreaming, Lattice, D2Q9, TaylorGreenVortex2D, Simulation device = "cpu" ...
36.045455
103
0.735183
796bfd1582e507ea1fb769b1938e3ed6c81470e2
1,693
py
Python
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeDrdsDbInstancesRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeDrdsDbInstancesRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeDrdsDbInstancesRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may ...
34.55102
84
0.753692
796bfdf96806e495fb51fa2380b17d8a808fbee7
3,787
py
Python
dash-plot.py
oriolmirosa/dash-recipes
c01372292d60c3fd8c1f3a47bca6330c2b268ba4
[ "MIT" ]
932
2017-07-08T06:37:23.000Z
2022-03-31T11:10:07.000Z
dash-plot.py
oriolmirosa/dash-recipes
c01372292d60c3fd8c1f3a47bca6330c2b268ba4
[ "MIT" ]
29
2018-02-06T20:09:58.000Z
2021-08-24T06:01:11.000Z
dash-plot.py
oriolmirosa/dash-recipes
c01372292d60c3fd8c1f3a47bca6330c2b268ba4
[ "MIT" ]
301
2017-09-25T16:16:41.000Z
2022-03-24T23:48:59.000Z
# -*- coding: utf-8 -*- import dash import dash_core_components as dcc import dash_html_components as html import plotly.graph_objs as go import datetime from datetime import timedelta app = dash.Dash() x_data = ['DSL', 'Gas', 'Electricty'] start = go.Bar( x=[datetime.datetime(y, m, d) for (y, m, d) in [(2015, ...
31.297521
1,102
0.620808
796bfee171e5532b69c894bb18989c4633dc18bd
516
py
Python
commercialoperator/migrations/0114_proposalstandardrequirement_require_due_date.py
GraemeMuller/commercialoperator
9218fb0a8844bc7f41cc371f4bd9488538df5fda
[ "Apache-2.0" ]
null
null
null
commercialoperator/migrations/0114_proposalstandardrequirement_require_due_date.py
GraemeMuller/commercialoperator
9218fb0a8844bc7f41cc371f4bd9488538df5fda
[ "Apache-2.0" ]
12
2020-02-12T06:26:55.000Z
2022-02-13T05:52:54.000Z
commercialoperator/migrations/0114_proposalstandardrequirement_require_due_date.py
GraemeMuller/commercialoperator
9218fb0a8844bc7f41cc371f4bd9488538df5fda
[ "Apache-2.0" ]
8
2020-02-24T05:11:18.000Z
2021-02-26T07:54:24.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2021-06-30 11:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('commercialoperator', '0113_proposaleventsparks_activities_assessor'), ] operations...
24.571429
79
0.664729
796c00a771f4ad9c0c4cbbf8378ddcafff61d4e0
791
py
Python
asyncio_zeromq/net_with_monitor/producer_proxy.py
cr0hn/TestingBench
37975343cf9ccb019e8dc42404b5b321285b04b3
[ "BSD-3-Clause" ]
5
2018-05-10T19:50:29.000Z
2018-05-10T20:07:08.000Z
asyncio_zeromq/net_with_monitor/producer_proxy.py
cr0hn/TestingBench
37975343cf9ccb019e8dc42404b5b321285b04b3
[ "BSD-3-Clause" ]
null
null
null
asyncio_zeromq/net_with_monitor/producer_proxy.py
cr0hn/TestingBench
37975343cf9ccb019e8dc42404b5b321285b04b3
[ "BSD-3-Clause" ]
null
null
null
import zmq url_in = "tcp://*:4000" url_out = "tcp://*:5000" class ExchangeWorker(object): def __init__(self, listen_in, listen_out): self.listen_in = listen_in self.listen_out = listen_out def run(self): print("[*] Starting proxy") backend = None frontend = None context = None try: context = ...
18.833333
47
0.687737
796c01bd058aa592193ff76b41f1ac10d8a29922
767
py
Python
geopandas/tests/test_config.py
kylebarron/geopandas
22b5a0dc23be8876a3270d0c009db5bd765fabf3
[ "BSD-3-Clause" ]
null
null
null
geopandas/tests/test_config.py
kylebarron/geopandas
22b5a0dc23be8876a3270d0c009db5bd765fabf3
[ "BSD-3-Clause" ]
null
null
null
geopandas/tests/test_config.py
kylebarron/geopandas
22b5a0dc23be8876a3270d0c009db5bd765fabf3
[ "BSD-3-Clause" ]
null
null
null
import geopandas import pytest def test_options(): assert "display_precision: " in repr(geopandas.options) assert dir(geopandas.options) == ["display_precision"] with pytest.raises(AttributeError): geopandas.options.non_existing_option with pytest.raises(AttributeError): geopandas....
25.566667
59
0.745763
796c01f976dfe89953fe1cb72928dd274a4fc925
8,096
py
Python
tests/test_user_presence.py
ryan-comer/galaxy-integrations-python-api
58ae4528e28931cacebf4b95a8d0289920c53c53
[ "MIT" ]
1
2020-01-28T14:00:35.000Z
2020-01-28T14:00:35.000Z
tests/test_user_presence.py
Vento998/galaxy-integrations-python-api
617dbdfee70ab1690be34e15f3929d207e4ce253
[ "MIT" ]
null
null
null
tests/test_user_presence.py
Vento998/galaxy-integrations-python-api
617dbdfee70ab1690be34e15f3929d207e4ce253
[ "MIT" ]
null
null
null
from unittest.mock import call import pytest from galaxy.api.consts import PresenceState from galaxy.api.errors import BackendError from galaxy.api.types import UserPresence from galaxy.unittest.mock import async_return_value, skip_loop from tests import create_message, get_messages @pytest.mark.asyncio async def t...
29.227437
109
0.500865
796c02ffff2a3b9905626dc4e317a543b8291019
550
py
Python
4.0-extras-ejercicios/cambio_de_colores_imagen.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
4.0-extras-ejercicios/cambio_de_colores_imagen.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
4.0-extras-ejercicios/cambio_de_colores_imagen.py
zehemz/clases-python-101
633cb5f0cbc85e64e242514f0394754a5bed0513
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3.5 # -*- coding: utf-8 -*- ''' python3.5 -m pip install Pillow biblioteca necesaria para usar PIL Image''' from PIL import Image if __name__ == "__main__": picture = Image.open("imagen_con_colores_alterados.png") pixelPossibleValues = [ (x,y) for x in range(picture.width) for y in range(pic...
32.352941
95
0.638182
796c05dfb38653f57d5c0701a0dce0881ba1069e
23,362
py
Python
nnunet/training/network_training/HasTrainer_DP_DDense_3_branch.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
3
2022-03-07T07:59:14.000Z
2022-03-17T08:50:42.000Z
nnunet/training/network_training/HasTrainer_DP_DDense_3_branch.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
1
2022-03-07T13:21:42.000Z
2022-03-07T13:21:42.000Z
nnunet/training/network_training/HasTrainer_DP_DDense_3_branch.py
hasukmin12/nnUNet_MDD_UNet_with_Semi_Supervised
58c5665a5d89d1ad77038e5d6420be76fadab136
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
44.079245
135
0.548027
796c06f9063d6847a44b3e7c1850df367b6dd0e9
457
py
Python
cursoemvideo/desafios/Desafio029.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
cursoemvideo/desafios/Desafio029.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
cursoemvideo/desafios/Desafio029.py
adinsankofa/python
8f2f26c77015c0baaa76174e004406b4115272c7
[ "MIT" ]
null
null
null
''' Escreva um programa que leia a velocidade de um carro. Se ele ultrapassar 80Km/h, mostre uma mensagem dizendo que ele foi multado. A multa vai custar R$ 7,00 por cada Km acima do limite. ''' velocidade = float(input('Digite a valocidade: ')) if velocidade > 80: print('MULTADO! Você excedeu o limite permitido ...
30.466667
71
0.704595
796c07dbb9373e47909777ddca1e653fd64f5b3f
10,365
py
Python
chaosaws/__init__.py
luismenco/chaostoolkit-aws
1bb86db4177fb594ad3bf1e75caa6bbd31bbbb1a
[ "Apache-2.0" ]
null
null
null
chaosaws/__init__.py
luismenco/chaostoolkit-aws
1bb86db4177fb594ad3bf1e75caa6bbd31bbbb1a
[ "Apache-2.0" ]
null
null
null
chaosaws/__init__.py
luismenco/chaostoolkit-aws
1bb86db4177fb594ad3bf1e75caa6bbd31bbbb1a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from typing import Any, Dict, List import boto3 import requests from aws_requests_auth.aws_auth import AWSRequestsAuth from aws_requests_auth.boto_utils import BotoAWSRequestsAuth from botocore import parsers from chaosaws.types import AWSResponse from chaoslib.discovery.discover impo...
41.794355
92
0.678148
796c089906d1ee969b7ddad82a4a98e37c16a40c
40,943
py
Python
release/scripts/startup/bl_ui/space_toolsystem_common.py
behollister/csc582-asg3
28fca2c588fdfb44919ec82eddab19d8cf2e8c9e
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-07-19T21:49:43.000Z
2020-07-19T21:49:43.000Z
release/scripts/startup/bl_ui/space_toolsystem_common.py
behollister/csc582-asg3
28fca2c588fdfb44919ec82eddab19d8cf2e8c9e
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/startup/bl_ui/space_toolsystem_common.py
behollister/csc582-asg3
28fca2c588fdfb44919ec82eddab19d8cf2e8c9e
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distrib...
35.820647
113
0.603033
796c0e3ed512692448dbceceeefe8a8010fc9ee0
18,237
py
Python
gui/text.py
Flurbos/Electrum-uno-test
df36317eee8b98b0c02ba8eeeeafe6af20f11c15
[ "MIT" ]
null
null
null
gui/text.py
Flurbos/Electrum-uno-test
df36317eee8b98b0c02ba8eeeeafe6af20f11c15
[ "MIT" ]
1
2018-01-29T04:07:58.000Z
2018-08-03T00:05:58.000Z
gui/text.py
Flurbos/Electrum-uno-test
df36317eee8b98b0c02ba8eeeeafe6af20f11c15
[ "MIT" ]
null
null
null
import tty, sys import curses, datetime, locale from decimal import Decimal import getpass import electrum from electrum.util import format_satoshis, set_verbosity from electrum.bitcoin import is_address, COIN, TYPE_ADDRESS from electrum import Wallet, WalletStorage _ = lambda x:x class ElectrumGui: def __ini...
35.829077
151
0.529254
796c0e6509c9c55ba9c3e254d448d55e4d3e5d44
125
py
Python
0x00-python-hello_world/6-concat.py
malu17/alx-higher_level_programming
75a24d98c51116b737f339697c75855e34254d3a
[ "MIT" ]
null
null
null
0x00-python-hello_world/6-concat.py
malu17/alx-higher_level_programming
75a24d98c51116b737f339697c75855e34254d3a
[ "MIT" ]
null
null
null
0x00-python-hello_world/6-concat.py
malu17/alx-higher_level_programming
75a24d98c51116b737f339697c75855e34254d3a
[ "MIT" ]
null
null
null
#!/usr/bin/python3 str1 = "Holberton" str2 = "School" str1 = "{} {}".format(str1, str2) print("Welcome to {}!".format(str1))
20.833333
36
0.624
796c0eb582cd9e2e35ba1dbd68e21d7ab755644c
1,870
py
Python
src-py/resistance/human.py
jasperpato/resistanceAI
e9378c018ce4fe98ecf29f5fcee05765342fb314
[ "MIT" ]
null
null
null
src-py/resistance/human.py
jasperpato/resistanceAI
e9378c018ce4fe98ecf29f5fcee05765342fb314
[ "MIT" ]
null
null
null
src-py/resistance/human.py
jasperpato/resistanceAI
e9378c018ce4fe98ecf29f5fcee05765342fb314
[ "MIT" ]
1
2021-10-18T14:20:05.000Z
2021-10-18T14:20:05.000Z
from agent import Agent class Human(Agent): ''' A human agent. Actions must be input on the command line. ''' def __init__(self, name="Human"): self.name = name def new_game(self, number_of_players, player_number, spies): self.number_of_players = number_of_players self.player_n...
37.4
89
0.604278
796c0ef899f6497230734c8389f356da59664763
4,303
py
Python
profile-import/import_profiler.py
ChenYuHo/tensorpack_benchmarks
0ea8cb4decc7da46b26a678c7e4615066800c660
[ "Unlicense" ]
93
2017-09-28T00:48:47.000Z
2022-03-31T07:25:06.000Z
profile-import/import_profiler.py
ChenYuHo/tensorpack_benchmarks
0ea8cb4decc7da46b26a678c7e4615066800c660
[ "Unlicense" ]
8
2018-02-26T14:18:50.000Z
2019-12-12T00:15:26.000Z
profile-import/import_profiler.py
ChenYuHo/tensorpack_benchmarks
0ea8cb4decc7da46b26a678c7e4615066800c660
[ "Unlicense" ]
38
2017-09-28T01:43:34.000Z
2022-02-11T09:23:53.000Z
import time class ImportInfo(object): def __init__(self, name, context_name, counter): self.name = name self.context_name = context_name self._counter = counter self._depth = 0 self._start = time.time() self.elapsed = None def done(self): self.elapsed ...
27.76129
92
0.580525
796c0fca02a0581f13ef9f17d4f68102be75150e
1,432
py
Python
alipay/aop/api/domain/AlipaySocialBaseChatGnoticeModifyModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipaySocialBaseChatGnoticeModifyModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipaySocialBaseChatGnoticeModifyModel.py
snowxmas/alipay-sdk-python-all
96870ced60facd96c5bce18d19371720cbda3317
[ "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 AlipaySocialBaseChatGnoticeModifyModel(object): def __init__(self): self._group_id = None self._group_notice = None @property def group_id(self): return self._gro...
25.571429
75
0.601955
796c0fcb111eb3ae91208c1ebf28207808f6b090
17,692
py
Python
deepdiff/serialization.py
yaelmi3/deepdiff
94860377ae50adb90bb57ca92a2a4109aac14a2c
[ "MIT" ]
null
null
null
deepdiff/serialization.py
yaelmi3/deepdiff
94860377ae50adb90bb57ca92a2a4109aac14a2c
[ "MIT" ]
null
null
null
deepdiff/serialization.py
yaelmi3/deepdiff
94860377ae50adb90bb57ca92a2a4109aac14a2c
[ "MIT" ]
null
null
null
import json import pickle import sys import io import os import logging import re # NOQA import builtins # NOQA import datetime # NOQA import decimal # NOQA import ordered_set # NOQA import collections # NOQA try: import yaml except ImportError: # pragma: no cover. yaml = None # pragma: no cover. try: ...
37.803419
236
0.636389
796c1016b1a9a08d4b27a2095935a48ac17e469f
17,755
py
Python
qtutils/outputbox.py
philipstarkey/qtutils-fork--monashspinor-qtutils--forked-from--philipstarkey-qtutils
b5d913e9b7352d39951ae9922c8c1fcaa7adca27
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
qtutils/outputbox.py
philipstarkey/qtutils-fork--monashspinor-qtutils--forked-from--philipstarkey-qtutils
b5d913e9b7352d39951ae9922c8c1fcaa7adca27
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
qtutils/outputbox.py
philipstarkey/qtutils-fork--monashspinor-qtutils--forked-from--philipstarkey-qtutils
b5d913e9b7352d39951ae9922c8c1fcaa7adca27
[ "BSD-2-Clause", "BSD-3-Clause" ]
null
null
null
##################################################################### # # # outputbox.py # # # # Copyright 2013, Christopher Billington...
41.386946
152
0.618305
796c1026247558167e2992555d5f54b26dfd1c48
6,230
py
Python
coreos-meta-translator/trans.py
pierre-emmanuelJ/fedora-coreos-releng-automation
3146c60d0ee2b3d3cd343b688b496d6a945a5816
[ "MIT" ]
null
null
null
coreos-meta-translator/trans.py
pierre-emmanuelJ/fedora-coreos-releng-automation
3146c60d0ee2b3d3cd343b688b496d6a945a5816
[ "MIT" ]
null
null
null
coreos-meta-translator/trans.py
pierre-emmanuelJ/fedora-coreos-releng-automation
3146c60d0ee2b3d3cd343b688b496d6a945a5816
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser, FileType from datetime import datetime import json import os def ensure_dup(inp, out, inp_key, out_key): ''' If the out dictionary does not contain a value for out_key update it to be equal to the inp dictionaries inp_key value, if it does exist...
41.533333
111
0.564687
796c10808cf2307ba3ec6bdafecbedea5ec9b120
3,528
py
Python
mos_RangeNet/tasks/semantic/infer.py
collector-m/LiDAR-MOS
7ccbb63b4ee7c40195b35dd0dddd71473fae25b1
[ "MIT" ]
268
2021-06-24T05:16:47.000Z
2022-03-30T21:19:09.000Z
mos_RangeNet/tasks/semantic/infer.py
collector-m/LiDAR-MOS
7ccbb63b4ee7c40195b35dd0dddd71473fae25b1
[ "MIT" ]
41
2021-07-16T18:12:19.000Z
2022-03-23T11:50:21.000Z
mos_RangeNet/tasks/semantic/infer.py
collector-m/LiDAR-MOS
7ccbb63b4ee7c40195b35dd0dddd71473fae25b1
[ "MIT" ]
51
2021-07-14T03:50:38.000Z
2022-03-31T13:59:11.000Z
#!/usr/bin/env python3 # This file is covered by the LICENSE file in the root of this project. import argparse import subprocess import datetime import yaml from shutil import copyfile import os import shutil import __init__ as booger from tasks.semantic.modules.user import * if __name__ == '__main__': splits = [...
29.4
80
0.626134
796c109efc4b0150c8a9b5cb62dee82555eeda34
47,983
py
Python
detectron/core/config.py
shenyunhang/WS-JDS
4827791640c5affef1af4b548333694973f5c0d5
[ "Apache-2.0" ]
18
2019-10-12T13:40:20.000Z
2021-06-25T02:17:02.000Z
detectron/core/config.py
shenyunhang/WS-JDS
4827791640c5affef1af4b548333694973f5c0d5
[ "Apache-2.0" ]
1
2019-08-07T07:42:20.000Z
2019-08-07T07:42:20.000Z
detectron/core/config.py
shenyunhang/WS-JDS
4827791640c5affef1af4b548333694973f5c0d5
[ "Apache-2.0" ]
6
2019-10-12T13:40:21.000Z
2022-03-15T08:44:16.000Z
# Copyright (c) 2017-present, Facebook, 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...
35.307579
85
0.6698