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
739e79e3c468f50a337d032d74a6945c59fc1d4e
1,286
py
Python
stackoverflow-solutions/submission-scripts/SO_Q65642266_find_local_min_max_in_Pandas.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
1
2020-07-21T23:24:25.000Z
2020-07-21T23:24:25.000Z
stackoverflow-solutions/submission-scripts/SO_Q65642266_find_local_min_max_in_Pandas.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
4
2021-06-29T00:38:57.000Z
2022-01-15T00:22:15.000Z
stackoverflow-solutions/submission-scripts/SO_Q65642266_find_local_min_max_in_Pandas.py
MarkMoretto/python-examples-main
37b8c41d2f175029f4536ca970f037ff19b4e951
[ "MIT" ]
null
null
null
""" Purpose: Stackv Date created: 2021-01-09 https://stackoverflow.com/questions/65642266/finding-maxima-and-minima-at-certain-points-pandas-python/65644462#65644462 Contributor(s): Mark M. """ from itertools import combinations, product import pandas as pd import numpy as np toy = pd.DataFrame({ ...
25.72
137
0.548989
739e8d0db76995a407963e56853ec73c2b90b5b9
5,352
py
Python
py/axonchisel/metrics/foundation/chrono/timerange.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
10
2016-08-26T18:57:28.000Z
2021-09-19T19:21:16.000Z
py/axonchisel/metrics/foundation/chrono/timerange.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
1
2015-01-08T19:54:54.000Z
2015-01-09T01:24:17.000Z
py/axonchisel/metrics/foundation/chrono/timerange.py
axonchisel/ax_metrics
a2db75c9ef9a9752997ccb112e8db68c1c8584a0
[ "MIT" ]
3
2015-01-08T23:32:58.000Z
2016-09-23T02:38:26.000Z
""" Ax_Metrics - Definition of time ranges for queries. ------------------------------------------------------------------------------ Author: Dan Kamins <dos at axonchisel dot net> Copyright (c) 2014 Dan Kamins, AxonChisel.net """ # ---------------------------------------------------------------------------- from...
28.168421
78
0.594357
739ead811eb78357e2ff29bf148225f814b89359
3,812
py
Python
pkg/test/test_event_hub_confluent.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/test/test_event_hub_confluent.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
pkg/test/test_event_hub_confluent.py
shrohilla/kafka-func-core-tool-test
110815f74bd035758542526c74ebaa55ce51046f
[ "Apache-2.0" ]
null
null
null
import json import time import certifi from confluent_kafka import Producer, Consumer from pkg.constant import Constant if __name__ == '__main__': # Read arguments and configurations and initialize topic = Constant.EVENTHUB_OUTPUT_NAME # Create Producer instance #producer_conf = ccloud_lib.pop_sche...
35.626168
103
0.600735
739ebdd1a3520d430f399bfebb4417b717447d42
1,656
py
Python
pyhanko_tests/test_images.py
ooguz/pyHanko
f1490d9ecaa74ce600e464a27807290d486acc6f
[ "MIT" ]
null
null
null
pyhanko_tests/test_images.py
ooguz/pyHanko
f1490d9ecaa74ce600e464a27807290d486acc6f
[ "MIT" ]
null
null
null
pyhanko_tests/test_images.py
ooguz/pyHanko
f1490d9ecaa74ce600e464a27807290d486acc6f
[ "MIT" ]
1
2021-04-08T05:11:03.000Z
2021-04-08T05:11:03.000Z
from io import BytesIO import pytest import os from PIL import Image from .samples import * from pyhanko.pdf_utils import images from pyhanko.pdf_utils.incremental_writer import IncrementalPdfFileWriter from pyhanko.pdf_utils import generic from pyhanko.pdf_utils.generic import pdf_name IMG_DIR = 'pyhanko_tests/data/...
30.666667
77
0.722826
739ebedad7840d8aee687d69b60357e31136e124
83
py
Python
aio/mqtt/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
3
2021-11-09T09:43:21.000Z
2021-12-16T18:15:43.000Z
aio/mqtt/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
null
null
null
aio/mqtt/__init__.py
eigenphi/gcommon
bce1ee422874fa904d90afee03fd703a06dc7a4d
[ "MIT" ]
2
2022-03-10T11:24:46.000Z
2022-03-25T06:39:17.000Z
# -*- coding: utf-8 -*- # created: 2021-06-30 # creator: liguopeng@liguopeng.net
16.6
34
0.638554
739ec156530e31f924b916249b98b610f4baa6ba
8,344
py
Python
libcloudforensics/providers/azure/forensics.py
zkck/cloud-forensics-utils
ac1cdf74b595cf57629c23a52e46da98283e552f
[ "Apache-2.0" ]
241
2020-02-08T20:05:54.000Z
2022-03-31T23:51:30.000Z
libcloudforensics/providers/azure/forensics.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
376
2020-02-05T10:22:54.000Z
2022-03-30T00:09:18.000Z
libcloudforensics/providers/azure/forensics.py
Fryyyyy/cloud-forensics-utils
d7fb845bd7df1498d67230520e2c7169c9a929df
[ "Apache-2.0" ]
72
2020-02-06T07:34:30.000Z
2022-03-05T18:02:13.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
42.571429
80
0.711649
739ecd3dca080713b9298fdac38f83f7a468073a
5,611
py
Python
antco/pheromone.py
FernandoGaGu/Ant-Colony-Optimisation
e1a1ee27f55c63c768964e80f38020f1aef664d7
[ "BSD-3-Clause" ]
1
2021-09-09T04:14:06.000Z
2021-09-09T04:14:06.000Z
antco/pheromone.py
FernandoGaGu/Ant-Colony-Optimisation
e1a1ee27f55c63c768964e80f38020f1aef664d7
[ "BSD-3-Clause" ]
null
null
null
antco/pheromone.py
FernandoGaGu/Ant-Colony-Optimisation
e1a1ee27f55c63c768964e80f38020f1aef664d7
[ "BSD-3-Clause" ]
null
null
null
# Module that implements the different strategies for updating pheromone values. # # # Author: Fernando García Gutiérrez # Email: fegarc05@ucm.es # import numpy as np from .ant import Ant from .c_pheromone import ( updateUndAS, updateDirAS, updateUndMMAS, updateDirMMAS, updateUndEliteAS, updateD...
28.92268
100
0.632508
739f334e94f7c592816b840e0ce2fda5c10b9f6d
3,180
py
Python
experiments/image/model/coupling.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
262
2020-07-05T20:57:44.000Z
2022-03-28T02:24:43.000Z
experiments/image/model/coupling.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
17
2020-08-15T05:43:34.000Z
2022-01-31T12:24:21.000Z
experiments/image/model/coupling.py
alisiahkoohi/survae_flows
e1747b05524c7ab540a211ed360ab3e67bc3e96d
[ "MIT" ]
35
2020-08-24T06:55:37.000Z
2022-02-11T05:17:58.000Z
import torch import torch.nn as nn from survae.utils import sum_except_batch from survae.transforms import AffineCouplingBijection, ConditionalAffineCouplingBijection from survae.nn.nets import DenseNet from survae.nn.layers import ElementwiseParams2d class Coupling(AffineCouplingBijection): def __init__(self, i...
44.788732
111
0.591195
739f85def5997ad9fc3e54d3c33f40b2ea78e3c7
394
py
Python
tests/inputs/lists-tuples/outputs/21-list-index-outofrange-store.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
4
2019-10-06T18:01:24.000Z
2020-07-03T05:27:35.000Z
tests/inputs/lists-tuples/outputs/21-list-index-outofrange-store.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
5
2021-06-07T15:50:04.000Z
2021-06-07T15:50:06.000Z
tests/inputs/lists-tuples/outputs/21-list-index-outofrange-store.py
helq/pytropos
497ed5902e6e4912249ca0a46b477f9bfa6ae80a
[ "MIT" ]
null
null
null
import pytropos.internals.values as pv from pytropos.internals.values.builtin_values import * from pytropos.internals.values.python_values.builtin_mutvalues import * from pytropos.internals.values.python_values.wrappers import * from pytropos.internals.values.python_values.python_values import PythonValue, PT exitcode...
32.833333
81
0.791878
739fc26da5fc9761f34a5a7f178dd20d2bfc243d
2,732
py
Python
alipay/aop/api/domain/CarRentalGoodsInfo.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/CarRentalGoodsInfo.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/CarRentalGoodsInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ExtraInfo import ExtraInfo from alipay.aop.api.domain.CarRentalGoods import CarRentalGoods class CarRentalGoodsInfo(object): def __init__(self): self._goods_extra_inf...
34.15
83
0.587848
739ffe575d37e1f017dda134bbae78501e5b54fe
15,182
py
Python
salt/modules/selinux.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
null
null
null
salt/modules/selinux.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
salt/modules/selinux.py
feth/salt
f4e610bb987d9529faca1f0ad1c339d3c4b3642b
[ "Apache-2.0" ]
1
2020-09-30T16:09:48.000Z
2020-09-30T16:09:48.000Z
# -*- coding: utf-8 -*- ''' Execute calls on selinux .. note:: This module requires the ``semanage``, ``setsebool``, and ``semodule`` commands to be available on the minion. On RHEL-based distributions, ensure that the ``policycoreutils`` and ``policycoreutils-python`` packages are installed. If not on...
31.828092
156
0.601107
73a010252f121e3fe917356905174f33d190c3a8
1,919
py
Python
alipay/aop/api/domain/CreditpaySubquota.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/CreditpaySubquota.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/CreditpaySubquota.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class CreditpaySubquota(object): def __init__(self): self._available_amt = None self._quota_type = None self._total_amt = None @property def available_amt(self): ...
27.028169
77
0.594581
73a016260849170264751e371fa6a2f263c45533
5,336
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-09T08:59:13.000Z
2022-03-09T08:59:13.000Z
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_11_01/operations/_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 ...
38.948905
133
0.659483
73a048624f016a5dbf30fce9fa93f6b0cb6abcd4
10,711
py
Python
lib/python/treadmill_aws/hostmanager.py
bretttegartms/treadmill-aws
b6b6438d19adbbabcbcccf1497965b72d11d50bd
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill_aws/hostmanager.py
bretttegartms/treadmill-aws
b6b6438d19adbbabcbcccf1497965b72d11d50bd
[ "Apache-2.0" ]
null
null
null
lib/python/treadmill_aws/hostmanager.py
bretttegartms/treadmill-aws
b6b6438d19adbbabcbcccf1497965b72d11d50bd
[ "Apache-2.0" ]
null
null
null
""" Module defining interface to create/delete/list IPA-joined hosts on AWS. """ import logging import random import time import yaml from treadmill import admin from treadmill import context from treadmill import sysinfo from treadmill.syscall import krb5 from treadmill_aws import aws from treadmill_aws import awsco...
32.068862
79
0.616936
73a04c534f3269d1c96c5500a9dc4a60d2648fa2
3,272
py
Python
alipay/aop/api/domain/AlipayOpenIotvspUserwithvidCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenIotvspUserwithvidCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayOpenIotvspUserwithvidCreateModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.IotVspOrgUserWithVidAddUserInfoRequest import IotVspOrgUserWithVidAddUserInfoRequest class AlipayOpenIotvspUserwithvidCreateModel(object): def __init__(self): self._c...
33.387755
111
0.613692
73a05a8878880339cc92d8b347a24d3a45714a5a
2,304
py
Python
examples/dot3k/advanced/radio.py
axelsimon/displayotron
42315c47eb50d2f95d1fcade389ff57ad73e1b83
[ "MIT" ]
49
2017-06-07T05:09:23.000Z
2021-10-08T14:32:05.000Z
examples/dot3k/advanced/radio.py
axelsimon/displayotron
42315c47eb50d2f95d1fcade389ff57ad73e1b83
[ "MIT" ]
19
2017-08-07T21:17:00.000Z
2022-01-07T09:02:42.000Z
examples/dot3k/advanced/radio.py
axelsimon/displayotron
42315c47eb50d2f95d1fcade389ff57ad73e1b83
[ "MIT" ]
22
2017-06-07T05:09:25.000Z
2021-08-17T10:52:58.000Z
#!/usr/bin/env python import sys import time import dot3k.backlight as backlight import dot3k.joystick as nav import dot3k.lcd as lcd from dot3k.menu import Menu # Add the root examples dir so Python can find the plugins sys.path.append('../../') from plugins.clock import Clock from plugins.graph import GraphCPU, G...
22.811881
106
0.687066
73a0afd42af6985ccb64c6f8a5e5c4fb2acbc584
6,573
py
Python
plugins/search_askubuntu/__init__.py
okb1100/awesome-albert-plugins
f4cc861a67f7242690b6c21a9069f505f380572c
[ "MIT" ]
null
null
null
plugins/search_askubuntu/__init__.py
okb1100/awesome-albert-plugins
f4cc861a67f7242690b6c21a9069f505f380572c
[ "MIT" ]
null
null
null
plugins/search_askubuntu/__init__.py
okb1100/awesome-albert-plugins
f4cc861a67f7242690b6c21a9069f505f380572c
[ "MIT" ]
null
null
null
""" Current file was autogeneratd by the search_template and the `create_googler_plugins.py` script. In case you find a bug please submit a patch to the aforementioned directories and file instead. """ """Askubuntu: Search suggestions for Askubuntu.""" import json import os import shutil import subprocess import sys ...
28.331897
95
0.568842
73a0e8163c440abd316ee4aaedbbe6a62fe3474e
2,764
py
Python
savu/plugins/simulation/tomo_phantom_quantification.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
39
2015-03-30T14:03:42.000Z
2022-03-16T16:50:33.000Z
savu/plugins/simulation/tomo_phantom_quantification.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
670
2015-02-11T11:08:09.000Z
2022-03-21T09:27:57.000Z
savu/plugins/simulation/tomo_phantom_quantification.py
elainehoml/Savu
e4772704606f71d6803d832084e10faa585e7358
[ "Apache-2.0" ]
54
2015-02-13T14:09:52.000Z
2022-01-24T13:57:09.000Z
# Copyright 2020 Diamond Light Source 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 t...
37.863014
88
0.680174
73a11c7f30101f16a1a3801b1b6532cd25cfb5c4
13,851
py
Python
jsonargparse/typehints.py
MendelXu/jsonargparse
cf0cf49937561f1c133cbf616fa6e50733b57859
[ "MIT" ]
null
null
null
jsonargparse/typehints.py
MendelXu/jsonargparse
cf0cf49937561f1c133cbf616fa6e50733b57859
[ "MIT" ]
null
null
null
jsonargparse/typehints.py
MendelXu/jsonargparse
cf0cf49937561f1c133cbf616fa6e50733b57859
[ "MIT" ]
null
null
null
"""Action to support type hints.""" import inspect import os import re import yaml from argparse import Action from collections.abc import Iterable as abcIterable from collections.abc import Sequence as abcSequence from enum import Enum from typing import Any, Dict, Iterable, List, Sequence, Set, Tuple, Type, Union t...
38.052198
122
0.598874
73a121360589773226a876b838ecb680dac481c2
8,892
py
Python
cep_price_console/utils/config.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
cep_price_console/utils/config.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
5
2021-03-31T19:27:48.000Z
2022-01-13T01:57:46.000Z
cep_price_console/utils/config.py
zanebclark/cep_price_console
2f0e0a487a02a1eeceab9bc326d4cef153bd6781
[ "MIT" ]
null
null
null
from cep_price_console.utils.log_utils import debug, CustomAdapter from cep_price_console.utils.utils import get_basedir from cep_price_console.utils.config_gui import ConfigGUI, MySQLSection, MSSQLSection, IniSection, IniKey import logging import configparser import os import pathlib from appdirs import AppDirs from t...
34.734375
112
0.610886
73a12fc0eddd7c0b3576a3aded1715346934ed37
2,041
py
Python
actions/clf_tc.py
m3hrdadfi/albert-persian-lab
4e89c8ef5632972f1ebd3e203fc93f6271ac3b2a
[ "Apache-2.0" ]
9
2020-07-30T05:49:19.000Z
2022-01-30T04:11:24.000Z
actions/clf_tc.py
E-RROR/albert-persian-lab
f43ec9efad236c4024bf2648a7af02e04e952b4c
[ "Apache-2.0" ]
4
2021-11-10T19:54:14.000Z
2022-02-15T12:49:47.000Z
actions/clf_tc.py
E-RROR/albert-persian-lab
f43ec9efad236c4024bf2648a7af02e04e952b4c
[ "Apache-2.0" ]
5
2020-07-30T12:05:13.000Z
2020-12-13T18:04:53.000Z
import streamlit as st import time from utils import is_identical, plot_result from utils.loader import task_configuration, local_css, load_snippet from utils.model import load_config, load_tokenizer, load_model, sequence_predicting def do_text_classification(task_title, task_config_filename, do_print_code=False): ...
40.82
94
0.688878
73a1544653deb1b280700d2316b1b758760d8b0d
5,961
py
Python
API/src/main/resources/Lib/robot/libdocpkg/htmlwriter.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/libdocpkg/htmlwriter.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
API/src/main/resources/Lib/robot/libdocpkg/htmlwriter.py
TagExpress/SikuliX1
de9da11794dd94b3821eddc5c01b534d3f2fe828
[ "MIT" ]
null
null
null
# Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license # # 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 b...
35.694611
86
0.627747
73a171eb2bb3b08e5cb2bfd0eb9f771444414bde
501
py
Python
apps/receitas/migrations/0002_receita_pessoa.py
ollyvergithub/AppReceitasDjango
d16e94af8b60624d56be95d486df025283d4e3e5
[ "MIT" ]
null
null
null
apps/receitas/migrations/0002_receita_pessoa.py
ollyvergithub/AppReceitasDjango
d16e94af8b60624d56be95d486df025283d4e3e5
[ "MIT" ]
7
2021-03-19T11:29:09.000Z
2022-01-13T02:53:07.000Z
apps/receitas/migrations/0002_receita_pessoa.py
ollyvergithub/AppReceitasDjango
d16e94af8b60624d56be95d486df025283d4e3e5
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-28 15:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('receitas', '0001_initial'), ] operations = [ migrations.AddField( ...
23.857143
110
0.654691
73a1def21f7ed3431825f0e165ce5e1b397d610b
10,233
py
Python
chroma_core/models/host_jobs/test_host_contact.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
1
2021-02-08T16:59:14.000Z
2021-02-08T16:59:14.000Z
chroma_core/models/host_jobs/test_host_contact.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
chroma_core/models/host_jobs/test_host_contact.py
AlexTalker/integrated-manager-for-lustre
251099e5c776f3c1898af50bb7cc77924c7cf7c7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. from paramiko import SSHException, AuthenticationException import socket import subprocess import urlparse import traceback import sys import rand...
38.469925
121
0.615069
73a207412e59b9ef4e42e079ced07a93595fd781
2,548
py
Python
classes/machineinformation.py
jansende/Igor
c9ada05fdbe052e799f27de94b872858a67da3d6
[ "MIT" ]
null
null
null
classes/machineinformation.py
jansende/Igor
c9ada05fdbe052e799f27de94b872858a67da3d6
[ "MIT" ]
null
null
null
classes/machineinformation.py
jansende/Igor
c9ada05fdbe052e799f27de94b872858a67da3d6
[ "MIT" ]
null
null
null
import multiprocessing import os import platform import socket import threading import time from .helpers import openJSON class MachineInformation(object): JSONName = 'Machine' def __init__(self, CurrentUser = 'unknown', Name = 'localhost', Domain = 'unknown', IpAddress = '127.0.0.1', NumberOfCores ...
36.927536
225
0.569466
73a232817b2e13fc66da028194f0269586be82a2
1,507
py
Python
src/simulator/test.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
src/simulator/test.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
src/simulator/test.py
zxxia/RL-CC-Video
916d059ba15fa587c0101470aa608ea8a01b8305
[ "Apache-2.0" ]
null
null
null
import os from simulator.network_simulator.bbr_old import BBR_old from simulator.network_simulator.cubic import Cubic from simulator.trace import generate_trace from simulator.pantheon_dataset import PantheonDataset def main(): # trace = generate_trace( # duration_range=(30, 30), # bandwidth_lower...
39.657895
120
0.634373
73a237df9c3d025683b679789c446ed9fa685a27
2,961
py
Python
alipay/aop/api/domain/AlipayCommerceEducateAuthenticateCampuscardDeleteModel.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/AlipayCommerceEducateAuthenticateCampuscardDeleteModel.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/AlipayCommerceEducateAuthenticateCampuscardDeleteModel.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 AlipayCommerceEducateAuthenticateCampuscardDeleteModel(object): def __init__(self): self._card_number = None self._cert_no = None self._cert_type = None self._scho...
29.316832
79
0.596758
73a241fe92fec422e4c8f6f48dc9dd5541eb1e54
4,177
py
Python
axopy/features/util.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
13
2019-01-23T13:00:00.000Z
2022-01-17T14:45:32.000Z
axopy/features/util.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
45
2017-01-16T22:44:59.000Z
2018-12-18T18:43:08.000Z
axopy/features/util.py
jdekarske/axopy
a60abb44a12c5e833b9033170825773bb0691394
[ "MIT" ]
5
2017-01-13T00:14:08.000Z
2018-11-08T13:16:24.000Z
"""Utility functions.""" import numpy as np def ensure_2d(array): """Make sure an array has at least 2 dimensions. Useful for handling arrays with ``shape=(n,)`` when you want ``(1, n)``. Parameters ---------- array : array, shape (n,) The input array. If 2-dimensional, nothing is done....
25.783951
93
0.505387
73a2a59f6607bd77037a0ff3e88a26a988bb5d7b
2,276
py
Python
pkgcore/test/repository/test_visibility.py
pombreda/pkgcore
b438fc573af1a031d7ce12adbbf299bab5338451
[ "BSD-3-Clause" ]
1
2021-07-05T13:10:18.000Z
2021-07-05T13:10:18.000Z
pkgcore/test/repository/test_visibility.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
8
2015-03-24T14:21:44.000Z
2015-03-24T14:21:44.000Z
pkgcore/test/repository/test_visibility.py
vapier/pkgcore
35a7e4f4f0fc61dd9c4dc72d35a57e2e9d5b832f
[ "BSD-3-Clause" ]
null
null
null
# Copyright: 2006 Brian Harring <ferringb@gmail.com> # License: GPL2/BSD from pkgcore.ebuild.atom import atom from pkgcore.ebuild.cpv import versioned_CPV from pkgcore.repository.visibility import filterTree from pkgcore.restrictions import packages, values from pkgcore.test import TestCase from pkgcore.test.repositor...
41.381818
79
0.619069
73a2a9544a878191dc8e4fec54add9d42e43f2a4
2,032
py
Python
Intel-Edge-AI-Challenge/Lesson4/feed_network.py
sijoonlee/deep_learning
437ee14b478688d671257310c33071f75764e3ed
[ "MIT" ]
20
2019-09-29T13:32:00.000Z
2022-03-28T09:57:51.000Z
Intel-Edge-AI-Challenge/Lesson4/feed_network.py
sijoonlee/deep_learning
437ee14b478688d671257310c33071f75764e3ed
[ "MIT" ]
11
2021-06-08T20:32:58.000Z
2022-03-12T00:05:43.000Z
Intel-Edge-AI-Challenge/Lesson4/feed_network.py
sijoonlee/deep_learning
437ee14b478688d671257310c33071f75764e3ed
[ "MIT" ]
null
null
null
import argparse ### TODO: Load the necessary libraries import os from openvino.inference_engine import IENetwork, IECore CPU_EXTENSION = "/opt/intel/openvino/deployment_tools/inference_engine/lib/intel64/libcpu_extension_sse4.so" def get_args(): ''' Gets the arguments from the command line. ''' ...
32.774194
109
0.658957
73a2e4261568184d462edd288e436567ff0d9368
825
py
Python
music_bg/img_processors/resize.py
music-bg/music_bg
5b79eacb32506b6eda5861df4b5f71b611c5dfa3
[ "MIT" ]
3
2021-09-17T12:27:46.000Z
2021-09-18T19:03:01.000Z
music_bg/img_processors/resize.py
music-bg/music_bg
5b79eacb32506b6eda5861df4b5f71b611c5dfa3
[ "MIT" ]
null
null
null
music_bg/img_processors/resize.py
music-bg/music_bg
5b79eacb32506b6eda5861df4b5f71b611c5dfa3
[ "MIT" ]
null
null
null
from typing import Optional from PIL.Image import Image def resize( image: Image, width: Optional[str] = None, height: Optional[str] = None, factor: Optional[str] = None, ) -> Image: """ Resize image with given size. :param image: target image to resize. :param width: new image's wid...
26.612903
62
0.660606
73a2ee10d7ab52ec415526bcb5d82a592fe7ff09
18,410
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_certificates_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_certificates_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2021_01_01/aio/operations/_certificates_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 ...
43.522459
202
0.668495
73a2ff54e01b44bf18e1edba6a825bdf59119857
4,270
py
Python
magnum/tests/base.py
gyliu513/magnum
943eba8a7b03b11878399198091327d2e1b90fcb
[ "Apache-2.0" ]
null
null
null
magnum/tests/base.py
gyliu513/magnum
943eba8a7b03b11878399198091327d2e1b90fcb
[ "Apache-2.0" ]
null
null
null
magnum/tests/base.py
gyliu513/magnum
943eba8a7b03b11878399198091327d2e1b90fcb
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2011 OpenStack Foundation # Copyright (c) 2013 Hewlett-Packard Development Company, L.P. # # 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/licens...
32.59542
77
0.624122
73a2ffdba2aefee5f765dede0ad0fd479f84faf6
481
py
Python
supplychainpy/_helpers/_cpu_info.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
231
2016-05-30T02:34:45.000Z
2022-03-28T17:00:29.000Z
supplychainpy/_helpers/_cpu_info.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
77
2016-03-23T16:28:34.000Z
2021-09-30T22:08:03.000Z
supplychainpy/_helpers/_cpu_info.py
luisccalves/supplychainpy
63a10b77ffdcc5bca71e815c70667c819d8f9af0
[ "BSD-3-Clause" ]
103
2016-08-10T19:53:09.000Z
2022-03-16T16:34:38.000Z
import multiprocessing as mp class CoreCount: """ Manage cpu core count for setting multiprocessing tasks. """ def __init__(self): self._core_count = self._get_core_count() @property def core_count(self) ->int: """Returns system core count. """ return self._core_c...
20.913043
64
0.632017
73a37bf6f4c566efabee5ae37e562bf51f5d476f
481
py
Python
tricorder/reece.py
elijahc/tricorder
1c39dfd1f4b114ee9d67258414a358535b8b129e
[ "MIT" ]
null
null
null
tricorder/reece.py
elijahc/tricorder
1c39dfd1f4b114ee9d67258414a358535b8b129e
[ "MIT" ]
4
2020-07-18T02:02:09.000Z
2022-01-25T22:34:37.000Z
tricorder/reece.py
elijahc/tricorder
1c39dfd1f4b114ee9d67258414a358535b8b129e
[ "MIT" ]
null
null
null
import os import pandas as pd class DB(object): names = { 'primary':'Primary Root_238.csv', 'redo': 'ReRoot_68.csv' } def __init__(self, data_dir='/data/reece'): self.data_dir = data_dir def primary(self): fp = os.path.join(self.data_dir,self.names['primary']) ...
26.722222
70
0.567568
73a3cf88d077dbea1413027b64cd469b3bb2ade0
809
py
Python
scTenifold/core/_utils.py
qwerty239qwe/scTenifoldpy
655787d20c6b9d7176c33752c06d778a62487f54
[ "MIT" ]
3
2021-11-18T05:49:13.000Z
2022-02-12T11:21:52.000Z
scTenifold/core/_utils.py
qwerty239qwe/scTenifoldpy
655787d20c6b9d7176c33752c06d778a62487f54
[ "MIT" ]
4
2021-11-16T16:28:59.000Z
2022-01-28T16:30:56.000Z
scTenifold/core/_utils.py
qwerty239qwe/scTenifoldpy
655787d20c6b9d7176c33752c06d778a62487f54
[ "MIT" ]
2
2021-12-11T07:09:38.000Z
2022-02-12T11:21:53.000Z
from functools import wraps, partial import time __all__ = ["cal_fdr", "timer"] def cal_fdr(p_vals): from scipy.stats import rankdata ranked_p_values = rankdata(p_vals) fdr = p_vals * len(p_vals) / ranked_p_values fdr[fdr > 1] = 1 return fdr def timer(func=None): if func is None: r...
24.515152
72
0.587145
73a3d07a5f0bcc60e05cdf890360eed77aecc171
3,787
py
Python
old-scripts/test-network/mininet/mesh_topology.py
opennetworkinglab/spring-open
7e8a3af4a21674d198ffac462918e79e93f3c348
[ "Apache-2.0" ]
6
2015-01-30T20:44:32.000Z
2021-11-09T10:56:04.000Z
old-scripts/test-network/mininet/mesh_topology.py
opennetworkinglab/spring-open
7e8a3af4a21674d198ffac462918e79e93f3c348
[ "Apache-2.0" ]
null
null
null
old-scripts/test-network/mininet/mesh_topology.py
opennetworkinglab/spring-open
7e8a3af4a21674d198ffac462918e79e93f3c348
[ "Apache-2.0" ]
5
2017-04-27T02:27:51.000Z
2020-12-29T05:23:35.000Z
#!/usr/bin/python """Custom topology example Two directly connected switches plus a host for each switch: host --- switch --- switch --- host Adding the 'topos' dict with a key/value pair to generate our newly defined topology enables one to pass in '--topo=mytopo' from the command line. """ import sys, getopt f...
32.09322
89
0.601267
73a3d145d147d878866cfff5710018d7782be04a
5,614
py
Python
setup.py
Hadiaz1/omnizart
4188e6e193a4d5de6a0bec9f8dc2f0e847310e26
[ "MIT" ]
null
null
null
setup.py
Hadiaz1/omnizart
4188e6e193a4d5de6a0bec9f8dc2f0e847310e26
[ "MIT" ]
null
null
null
setup.py
Hadiaz1/omnizart
4188e6e193a4d5de6a0bec9f8dc2f0e847310e26
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup packages = \ ['omnizart', 'omnizart.beat', 'omnizart.chord', 'omnizart.cli', 'omnizart.cli.beat', 'omnizart.cli.chord', 'omnizart.cli.drum', 'omnizart.cli.music', 'omnizart.cli.patch_cnn', 'omnizart.cli.vocal', 'omnizart.cli.vocal_contour', 'omnizart.cons...
68.463415
3,455
0.66067
73a4044f4330fd09399a0bdff944aa6e86ef14b6
64
py
Python
python_algerian_mobile_phone_number/__init__.py
mohamine18/python_algerian_mobile_phone_number
bdbb197c8ab7e6891d5f7f9be9f97552626c0864
[ "MIT" ]
3
2020-06-15T08:45:07.000Z
2020-06-15T19:58:01.000Z
python_algerian_mobile_phone_number/__init__.py
mohamine18/python_algerian_mobile_phone_number
bdbb197c8ab7e6891d5f7f9be9f97552626c0864
[ "MIT" ]
null
null
null
python_algerian_mobile_phone_number/__init__.py
mohamine18/python_algerian_mobile_phone_number
bdbb197c8ab7e6891d5f7f9be9f97552626c0864
[ "MIT" ]
null
null
null
from .AlgerianMobilePhoneNumber import AlgerianMobilePhoneNumber
64
64
0.9375
73a41d9edabb8192a2800c8de46f45d872692c72
37,549
py
Python
pyqtconfig/config.py
trappitsch/pyqtconfig
511da833671a0275edcdfdb5fd36a34658856313
[ "BSD-3-Clause" ]
47
2015-01-03T13:15:16.000Z
2020-02-02T07:49:12.000Z
pyqtconfig/config.py
trappitsch/pyqtconfig
511da833671a0275edcdfdb5fd36a34658856313
[ "BSD-3-Clause" ]
19
2015-01-31T22:59:29.000Z
2018-08-17T08:27:48.000Z
pyqtconfig/config.py
trappitsch/pyqtconfig
511da833671a0275edcdfdb5fd36a34658856313
[ "BSD-3-Clause" ]
22
2015-05-27T20:40:05.000Z
2019-11-05T01:49:32.000Z
# -*- coding: utf-8 -*- ''' PyQtConfig is a simple API for handling, persisting and synchronising configuration within PyQt applications. ''' import logging import types from collections import OrderedDict # Import PyQt5/PySide2 classes from .qt import (QComboBox, QCheckBox, QAction, QActionGroup...
29.519654
149
0.613651
73a420893790daf740a7485e5ed244f4cd737ae0
1,696
py
Python
app/speech_dispatcher_output.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
5
2018-03-19T19:04:53.000Z
2021-02-19T16:44:04.000Z
app/speech_dispatcher_output.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
6
2020-04-18T16:14:22.000Z
2021-08-14T09:23:16.000Z
app/speech_dispatcher_output.py
mbroz/feel-the-streets
6e21a496f1530b0500ca66e11712f3f31cd857ae
[ "MIT" ]
1
2021-01-10T18:47:38.000Z
2021-01-10T18:47:38.000Z
import locale from accessible_output2.outputs.base import Output, OutputError try: from speechd import Client, SSIPCommunicationError has_speechd_api = True except ImportError: has_speechd_api = False class SpeechDispatcherOutput(Output): name = "Linux Speech dispatcher" priority = 100 ...
31.407407
156
0.584316
73a433cc5855a87a267ac4a906423a590b0c9c12
390
py
Python
app/core/migrations/0010_alter_operation_tags.py
mreidt/gf-app
c3d6dc6c88ab2fb508174fbffd3e063710f0c84e
[ "MIT" ]
null
null
null
app/core/migrations/0010_alter_operation_tags.py
mreidt/gf-app
c3d6dc6c88ab2fb508174fbffd3e063710f0c84e
[ "MIT" ]
33
2021-07-05T22:02:09.000Z
2021-07-11T01:30:12.000Z
app/core/migrations/0010_alter_operation_tags.py
mreidt/gf-app
c3d6dc6c88ab2fb508174fbffd3e063710f0c84e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-10 13:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0009_auto_20210710_1254'), ] operations = [ migrations.AlterField( model_name='operation', name='tags', ...
20.526316
56
0.594872
73a4762bf501e1071306b575f23f938e82c87b7e
5,609
py
Python
salt/modules/kmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/modules/kmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
salt/modules/kmod.py
gotcha/salt
7b84c704777d3d2062911895dc3fdf93d40e9848
[ "Apache-2.0" ]
null
null
null
''' Module to manage Linux kernel modules ''' # Import python libs import os import re def __virtual__(): ''' Only runs on Linux systems ''' return 'kmod' if __grains__['kernel'] == 'Linux' else False def _new_mods(pre_mods, post_mods): ''' Return a list of the new modules, pass an lsmod dic...
24.600877
85
0.594402
73a47b306224b5313f800d5dc7ff27018b5c284a
35
py
Python
pytip/__init__.py
pybites/pybites-tips
f7cbfd71bb904adc932e496b0d0bb40058d4bd78
[ "MIT" ]
9
2020-08-25T11:58:12.000Z
2022-03-04T12:32:05.000Z
pytip/__init__.py
pybites/pybites-tips
f7cbfd71bb904adc932e496b0d0bb40058d4bd78
[ "MIT" ]
2
2020-10-10T22:07:54.000Z
2020-10-11T11:22:19.000Z
pytip/__init__.py
pybites/pybites-tips
f7cbfd71bb904adc932e496b0d0bb40058d4bd78
[ "MIT" ]
1
2020-10-16T20:39:52.000Z
2020-10-16T20:39:52.000Z
from pytip.tips import PyBitesTips
17.5
34
0.857143
73a49923eebfe3e8fc3f6f24d0a4abe02161f052
25,257
py
Python
sdk/python/kfp/dsl/component_spec_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
sdk/python/kfp/dsl/component_spec_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
sdk/python/kfp/dsl/component_spec_test.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
# Copyright 2021 The Kubeflow Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
39.963608
106
0.458962
73a4ad032a62318f4614918f51860633b0659221
183
py
Python
aldryn_faq/tests/urls.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/tests/urls.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
aldryn_faq/tests/urls.py
liip-forks/aldryn-faq
1e9d5c8d410f955b8082bd20ea7a4d85d4c5e0f7
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import include, url from djangocms_helper.urls import urlpatterns urlpatterns += [ url(r'^faq/', include('aldryn_faq.urls', namespace='aldryn_faq')), ]
16.636364
70
0.726776
73a4d5a02b09afc73931d56a88bb8729221bb097
9,345
py
Python
inference_aleatoric.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
59
2019-05-27T01:37:32.000Z
2022-03-23T05:41:40.000Z
inference_aleatoric.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
5
2019-05-27T04:15:27.000Z
2022-03-07T13:50:32.000Z
inference_aleatoric.py
frezaeix/bayesian-yolov3
65d3213253f716b3322192297d3a350a0d9a0354
[ "MIT" ]
16
2019-05-28T04:20:38.000Z
2022-03-22T06:43:09.000Z
""" Inference script for the yolov3.yolov3_aleatoric class. Produces detection files for each input image conforming to the ECP .json format. The output of this script can be directly used by the ECP evaluation code. """ import json import logging import os import threading import time import numpy as np import tens...
36.503906
118
0.546602
73a4de312a91c81816758455ff55f41371dcf754
3,115
py
Python
mlrose_hiive/algorithms/decay/geom_decay.py
sareini/mlrose
b5ebaac322cb063ad4611367c43e1827bda0eb95
[ "BSD-3-Clause" ]
63
2019-09-24T14:09:51.000Z
2022-03-09T02:36:25.000Z
mlrose_hiive/algorithms/decay/geom_decay.py
sareini/mlrose
b5ebaac322cb063ad4611367c43e1827bda0eb95
[ "BSD-3-Clause" ]
6
2019-10-04T01:04:21.000Z
2021-08-31T19:06:13.000Z
mlrose_hiive/algorithms/decay/geom_decay.py
sareini/mlrose
b5ebaac322cb063ad4611367c43e1827bda0eb95
[ "BSD-3-Clause" ]
104
2019-09-23T22:44:43.000Z
2022-03-13T18:50:53.000Z
# Author: Genevieve Hayes (modified by Andrew Rollings) # License: BSD 3 clause class GeomDecay: """ Schedule for geometrically decaying the simulated annealing temperature parameter T according to the formula: .. math:: T(t) = \\max(T_{0} \\times r^{t}, T_{min}) where: * :math:`T_...
29.666667
83
0.573997
73a4e7ac2b528653c90dbc3ecc4526cc94e47b65
22,389
py
Python
binderhub/_version.py
jupyterhub/builderhub
37551212e47f515186b62fa02443f50b6e7b5839
[ "BSD-3-Clause" ]
2,134
2017-05-24T11:27:28.000Z
2022-03-29T03:35:38.000Z
binderhub/_version.py
jupyterhub/builderhub
37551212e47f515186b62fa02443f50b6e7b5839
[ "BSD-3-Clause" ]
1,167
2017-05-23T15:28:29.000Z
2022-03-31T21:53:50.000Z
binderhub/_version.py
jupyterhub/builderhub
37551212e47f515186b62fa02443f50b6e7b5839
[ "BSD-3-Clause" ]
351
2017-05-24T09:12:53.000Z
2022-03-25T08:55:57.000Z
# This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build # directories (produced by setup.py build) will contain a much shorter file # that just contains t...
35.879808
84
0.581938
73a4f801aa273079540ef9a83441b5d166feecbb
4,875
py
Python
gps303/zmsg.py
crosser/gsm303
c09808cddcddadbe7af392337977707ac27355e9
[ "MIT" ]
null
null
null
gps303/zmsg.py
crosser/gsm303
c09808cddcddadbe7af392337977707ac27355e9
[ "MIT" ]
null
null
null
gps303/zmsg.py
crosser/gsm303
c09808cddcddadbe7af392337977707ac27355e9
[ "MIT" ]
null
null
null
""" Zeromq messages """ import ipaddress as ip from struct import pack, unpack from typing import Any, cast, Optional, Tuple, Type, Union __all__ = "Bcast", "Resp", "topic" def pack_peer( peeraddr: Union[None, Tuple[str, int], Tuple[str, int, Any, Any]] ) -> bytes: if peeraddr is None: addr: Union[i...
28.343023
79
0.490667
73a50bb35d28c1b3f42ecae778bd68301b72dfd6
1,835
py
Python
examples/coinmate_ws.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
90
2020-04-09T18:34:49.000Z
2022-03-09T14:29:32.000Z
examples/coinmate_ws.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
44
2020-04-03T17:02:20.000Z
2022-01-29T14:51:51.000Z
examples/coinmate_ws.py
PetrZufan/cryptoxlib-aio
8fbb817ee7a7a88693804e24877863370d1d53c7
[ "MIT" ]
28
2020-04-25T21:34:53.000Z
2022-03-31T07:20:07.000Z
import logging import os from cryptoxlib.CryptoXLib import CryptoXLib from cryptoxlib.Pair import Pair from cryptoxlib.clients.coinmate.CoinmateWebsocket import OrderbookSubscription, TradesSubscription, \ UserOrdersSubscription, BalancesSubscription, UserTradesSubscription, UserTransfersSubscription from cryptoxl...
33.363636
102
0.751499
73a50ec926810c8197c87c256a0f299af6f613b5
3,991
py
Python
alipay/aop/api/request/AlipayOpenIotroomdeviceEventSendRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenIotroomdeviceEventSendRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/request/AlipayOpenIotroomdeviceEventSendRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenIotroomdeviceEventSendModel import AlipayOpenIotroomdeviceEventSendModel class AlipayOpenIotroomdeviceEventSendRequest(obj...
27.524138
148
0.646455
73a51026e85ad7a142c51024764f2af4cd16f591
2,135
py
Python
geocoder/api.py
dedupeio/dedupe-geocoder
ed1506a36e1a153737adab51144911cbd3ab3112
[ "MIT" ]
9
2017-06-20T15:05:23.000Z
2021-09-26T02:45:24.000Z
geocoder/api.py
dedupeio/dedupe-geocoder
ed1506a36e1a153737adab51144911cbd3ab3112
[ "MIT" ]
1
2018-06-21T21:45:46.000Z
2018-06-21T22:06:03.000Z
geocoder/api.py
dedupeio/dedupe-geocoder
ed1506a36e1a153737adab51144911cbd3ab3112
[ "MIT" ]
4
2017-09-26T14:57:45.000Z
2021-09-26T01:45:32.000Z
from flask import Blueprint, request, make_response, g import json from geocoder.deduper import GeocodingGazetteer import os import sqlalchemy as sa from datetime import date from collections import OrderedDict api = Blueprint('api', __name__) dthandler = lambda obj: obj.isoformat() if isinstance(obj, date) else None...
30.5
74
0.550351
73a51045c4e5562ecd82ffe78610c6f7bb8c3d95
1,909
py
Python
metacat/ui/metacat_namespace.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
1
2022-03-18T19:01:29.000Z
2022-03-18T19:01:29.000Z
metacat/ui/metacat_namespace.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
metacat/ui/metacat_namespace.py
ivmfnal/metacat
9eeea5f5e7867395c7203b8a7789607d3bdbd903
[ "BSD-3-Clause" ]
null
null
null
import sys, getopt, os, json, fnmatch, pprint from urllib.parse import quote_plus, unquote_plus from metacat.util import to_bytes, to_str from metacat.webapi import MetaCatClient Usage = """ Usage: metacat namespce <command> [<options>] ... Commands and options: list [<options>] [<namespace ...
25.797297
90
0.549502
73a51d64d009dc773d7427509990c2f964ac1f0d
9,579
py
Python
mclumi/deduplicate/trimer/Dechimeric.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
3
2021-12-18T09:55:09.000Z
2022-01-12T10:25:28.000Z
mclumi/deduplicate/trimer/Dechimeric.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
mclumi/deduplicate/trimer/Dechimeric.py
cribbslab/mclumi
3c38f1dd4de11f0f20121a4027f7e104c4059bbe
[ "MIT" ]
null
null
null
__version__ = "v1.0" __copyright__ = "Copyright 2021" __license__ = "MIT" __lab__ = "Adam Cribbs lab" import os import sys import time import argparse import numpy as np import pandas as pd from mclumi.align.Read import read as aliread from mclumi.align.Write import write as aliwrite from mclumi.util.Writer import wri...
43.540909
168
0.566239
73a530c2784b98982aacef58181e5e4f7dbdc10e
2,638
py
Python
src/codebase/controllers/user.py
ooclab/authn
bbb94c69c86669c37204f6e1fad35bd84f9d7b54
[ "MIT" ]
null
null
null
src/codebase/controllers/user.py
ooclab/authn
bbb94c69c86669c37204f6e1fad35bd84f9d7b54
[ "MIT" ]
null
null
null
src/codebase/controllers/user.py
ooclab/authn
bbb94c69c86669c37204f6e1fad35bd84f9d7b54
[ "MIT" ]
null
null
null
# pylint: disable=W0223,W0221,broad-except import datetime from tornado.web import HTTPError from sqlalchemy import and_ from codebase.web import APIRequestHandler from codebase.models import User class UserHandler(APIRequestHandler): def post(self): """创建用户 """ body = self.get_body_js...
25.12381
79
0.575815
73a54830076dc6abb872dd5405984e712866ec2a
180
py
Python
tests/viewsets/display/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
2
2020-03-17T00:53:23.000Z
2020-07-16T07:00:33.000Z
tests/viewsets/display/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
76
2019-12-05T01:15:57.000Z
2021-09-07T16:47:27.000Z
tests/viewsets/display/__init__.py
intellineers/django-bridger
ed097984a99df7da40a4d01bd00c56e3c6083056
[ "BSD-3-Clause" ]
1
2020-02-05T15:09:47.000Z
2020-02-05T15:09:47.000Z
from .related_model_test import RelatedModelTestDisplayConfig from .model_test import ModelTestDisplayConfig, ModelTestCalendarDisplayConfig from .pandas import PandasDisplayConfig
60
78
0.911111
73a54935505e7dd18cf45c9ed067835078eee00f
6,354
py
Python
tests/test_helpers_file.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_helpers_file.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
tests/test_helpers_file.py
NeolithEra/PyFunceble
58db861d36224f279a460f4959aaa2e140ce749f
[ "MIT" ]
null
null
null
# pylint:disable=line-too-long """ The tool to check the availability or syntax of domains, IPv4, IPv6 or URL. :: ██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗ ██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝ ██████╔╝ ╚████╔╝ ████...
27.270386
88
0.598993
73a567176dd7c8a80d33f6f573c727795c4970a9
209
py
Python
src/Application/PythonScriptModule/pymodules_old/localscene/__init__.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/localscene/__init__.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
null
null
null
src/Application/PythonScriptModule/pymodules_old/localscene/__init__.py
antont/tundra
5c9b0a3957071f08ab425dff701cdbb34f9e1868
[ "Apache-2.0" ]
1
2021-09-04T12:37:34.000Z
2021-09-04T12:37:34.000Z
# imitated loadurlhandler here, for direct access from C++ side try: localscene except: import localscene else: localscene = reload(localscene) from localscene import LocalScene, getLocalScene
16.076923
63
0.755981
73a58e7b457131dfbbeafc15c8857f4181ec590e
1,534
py
Python
src/gittoolbox/coupling/coupled_files.py
dbradf/git-toolbox
b42de4f283488fd9ad4c809cc3a70762b897b293
[ "Apache-2.0" ]
null
null
null
src/gittoolbox/coupling/coupled_files.py
dbradf/git-toolbox
b42de4f283488fd9ad4c809cc3a70762b897b293
[ "Apache-2.0" ]
null
null
null
src/gittoolbox/coupling/coupled_files.py
dbradf/git-toolbox
b42de4f283488fd9ad4c809cc3a70762b897b293
[ "Apache-2.0" ]
null
null
null
"""Find coupled files based on git history.""" import json from collections import namedtuple, defaultdict from datetime import datetime from itertools import combinations from typing import Dict from gittoolbox.git.git_repo import GitRepo Commit = namedtuple("Commit", ["id", "author", "date", "summary"]) class Fil...
28.407407
72
0.623207
73a59f5be8c6adab78ff2f96cf4da81a8c80a6f3
3,594
py
Python
repo_health/check_readme.py
openedx/edx-repo-health
c27f906fdb0ddb3a7b91b2eba999219989ff8442
[ "Apache-2.0" ]
null
null
null
repo_health/check_readme.py
openedx/edx-repo-health
c27f906fdb0ddb3a7b91b2eba999219989ff8442
[ "Apache-2.0" ]
18
2022-01-07T00:10:47.000Z
2022-03-25T00:13:08.000Z
repo_health/check_readme.py
openedx/edx-repo-health
c27f906fdb0ddb3a7b91b2eba999219989ff8442
[ "Apache-2.0" ]
null
null
null
""" Check some details in the readme file. """ import re import urllib.parse import requests from pytest_repo_health import health_metadata from repo_health import fixture_readme # pylint:disable=unused-import module_dict_key = "readme" # Good things should be there, and are True if they are present. GOOD_THINGS ...
26.233577
84
0.599332
73a5b67f112bc3787ef03f8fa5b9d965fedb1fd9
748
py
Python
examples/optim/utils/layer_utils.py
JiahaoYao/DeepStriving
97e2a2b256720cbcafee906668f66bba5ecc5cce
[ "MIT" ]
3
2017-12-03T14:37:34.000Z
2020-05-18T09:02:57.000Z
examples/optim/utils/layer_utils.py
JiahaoYao/DeepStriving
97e2a2b256720cbcafee906668f66bba5ecc5cce
[ "MIT" ]
null
null
null
examples/optim/utils/layer_utils.py
JiahaoYao/DeepStriving
97e2a2b256720cbcafee906668f66bba5ecc5cce
[ "MIT" ]
null
null
null
pass from utils.layers import * def affine_relu_forward(x, w, b): """ Convenience layer that perorms an affine transform followed by a ReLU Inputs: - x: Input to the affine layer - w, b: Weights for the affine layer Returns a tuple of: - out: Output from the ReLU - cache: Object to ...
22.666667
73
0.657754
73a5d4eda0825a03551a575a6a048d559a6a869b
1,068
py
Python
Courses/Codeval/Easy/Python/47-MorseCode.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2019-02-13T12:02:26.000Z
2019-02-13T12:02:26.000Z
Courses/Codeval/Easy/Python/47-MorseCode.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
1
2018-08-13T15:58:33.000Z
2018-08-13T15:58:33.000Z
Courses/Codeval/Easy/Python/47-MorseCode.py
leparrav/Playground
dcb90a2dd2bc1867511cfe621eb21248a60e357f
[ "Unlicense" ]
2
2017-08-10T20:01:29.000Z
2021-07-01T08:39:13.000Z
''' https://www.codeeval.com/open_challenges/116/ ''' import sys morseDict = { '.-': 'A', '-...': 'B', '-.-.': 'C', '-..' : 'D', '.' : 'E', '..-.': 'F', '--.' : 'G', '....' : 'H', '..' : 'I', '.---' : 'J', '-.-' : 'K', '.-..' : 'L', '--': 'M', '-.': 'N', '---': 'O', '.--.': 'P', '--.-': 'Q', '.-.': ...
15.705882
45
0.342697
73a5fc9e8bfeb9c77f65f1885338253d78d100e5
4,699
py
Python
jrnl/plugins/template.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/plugins/template.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
jrnl/plugins/template.py
TonyRoomZ/jrnl
75459bb9fcd19107d56b9560094137924e88959f
[ "MIT" ]
null
null
null
from __future__ import absolute_import, unicode_literals import re import asteval import yaml VAR_RE = r"[_a-zA-Z][a-zA-Z0-9_]*" EXPRESSION_RE = r"[\[\]():.a-zA-Z0-9_]*" PRINT_RE = r"{{ *(.+?) *}}" START_BLOCK_RE = r"{% *(if|for) +(.+?) *%}" END_BLOCK_RE = r"{% *end(for|if) *%}" FOR_RE = r"{{% *for +({varname}) +in ...
37
106
0.5814
73a623b30e7a70bf55ff670e7f0401196162ca51
635
py
Python
eb-virt/bin/rst2xml.py
YutingPang/one_note
9dfc7061f07819cbac96e87080d767705d7dfe0c
[ "MIT" ]
null
null
null
eb-virt/bin/rst2xml.py
YutingPang/one_note
9dfc7061f07819cbac96e87080d767705d7dfe0c
[ "MIT" ]
null
null
null
eb-virt/bin/rst2xml.py
YutingPang/one_note
9dfc7061f07819cbac96e87080d767705d7dfe0c
[ "MIT" ]
null
null
null
#!/Users/yutingpang/git/eb-flask/eb-virt/bin/python # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: import locale ...
26.458333
70
0.740157
73a62e6bae00e39a72e606ae7342d924d9361f9e
53,253
py
Python
gluon/sqlhtml.py
alfonsodg/sisventi
3dfa975e771b361c3639d8830b9667494a3a63b0
[ "FSFUL" ]
null
null
null
gluon/sqlhtml.py
alfonsodg/sisventi
3dfa975e771b361c3639d8830b9667494a3a63b0
[ "FSFUL" ]
null
null
null
gluon/sqlhtml.py
alfonsodg/sisventi
3dfa975e771b361c3639d8830b9667494a3a63b0
[ "FSFUL" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file is part of the web2py Web Framework Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu> License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html) Holds: - SQLFORM: provide a form for a table (with/without record) - SQLTABLE: provides a table for a set ...
37.475721
1,102
0.524778
73a64f2cb2d2eec3dd137be9607304d6127c7aea
4,925
py
Python
program_synthesis/naps/uast/uast_walker.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/naps/uast/uast_walker.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/naps/uast/uast_walker.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
def walk_uast(tree, on_tree=None, on_struct=None, on_func=None, on_block=None, on_statement=None, on_expression=None): def _walk_expression(expression, is_lhs=False): TYPES_ = { 'assign': lambda left, right: (_walk_expression(left, True), _walk_expression(right)), 'var': lambda nam...
87.946429
2,333
0.552487
73a651d8b7d13ab2cea978ffd2b2aacf3341ac30
1,057
py
Python
metrics-pusher/src/bai_metrics_pusher/backends/backend_interface.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
6
2020-09-29T09:03:04.000Z
2022-03-14T06:52:25.000Z
metrics-pusher/src/bai_metrics_pusher/backends/backend_interface.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
null
null
null
metrics-pusher/src/bai_metrics_pusher/backends/backend_interface.py
gavinmbell/benchmark-ai-1
a697e67d68b843fe9350e55871dad867bab5d51d
[ "Apache-2.0" ]
4
2020-10-01T07:49:22.000Z
2021-06-16T19:44:12.000Z
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "l...
29.361111
76
0.684011
73a663cdb943fd573c915b81a35c7854f6464850
885
py
Python
marqeta/response_models/token_update_request.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
21
2019-04-12T09:02:17.000Z
2022-02-18T11:39:06.000Z
marqeta/response_models/token_update_request.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
1
2020-07-22T21:27:40.000Z
2020-07-23T17:38:43.000Z
marqeta/response_models/token_update_request.py
marqeta/marqeta-python
66fa690eb910825c510a391720b0fe717fac0234
[ "MIT" ]
10
2019-05-08T14:20:37.000Z
2021-09-20T18:09:26.000Z
from datetime import datetime, date from marqeta.response_models import datetime_object import json import re class TokenUpdateRequest(object): def __init__(self, json_response): self.json_response = json_response def __str__(self): return json.dumps(self.json_response, default=self.json_seri...
26.029412
100
0.700565
73a666b6250f485e9248976ce601d883f0cd9344
169
py
Python
dynamics/sine.py
bodokaiser/complex-systems
5e348d9cc382059b316ccc0a391183ba65aa8f3f
[ "Apache-2.0" ]
2
2019-04-22T17:32:33.000Z
2019-10-03T18:09:01.000Z
dynamics/sine.py
bodokaiser/complex-systems
5e348d9cc382059b316ccc0a391183ba65aa8f3f
[ "Apache-2.0" ]
null
null
null
dynamics/sine.py
bodokaiser/complex-systems
5e348d9cc382059b316ccc0a391183ba65aa8f3f
[ "Apache-2.0" ]
null
null
null
import math import numba as nb @nb.jit(nopython=True) def sine_map(x0, r, n): x = [x0] for i in range(n): x.append(r * math.sin(math.pi * x[-1])) return x
13
43
0.60355
73a66b081a267a159e9dd327ff0a76629c894f1e
9,682
py
Python
src/sardana/spock/magic.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/spock/magic.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
src/sardana/spock/magic.py
schooft/sardana
76287b416650f40da79871ee3849340d0ff31f1d
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## ## # This file is part of Sardana ## # http://www.sardana-controls.org/ ## # Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain ## # Sardana is free software: you can redistribute it and...
32.381271
88
0.589341
73a6702cfb8481d044657eff2ef3b6b5230d8c24
3,956
py
Python
fugue_duckdb/_utils.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_duckdb/_utils.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
fugue_duckdb/_utils.py
LaurentErreca/fugue
73d551b4d25b50b3d9051dd765e6111db2e3fc76
[ "Apache-2.0" ]
null
null
null
from datetime import datetime, date import pyarrow as pa from typing import Any, Dict, Iterable, Tuple from triad.utils.pyarrow import TRIAD_DEFAULT_TIMESTAMP from uuid import uuid4 import pandas as pd import numpy as np _DUCK_TYPES_TO_PA: Dict[str, pa.DataType] = { "BIGINT": pa.int64(), "BOOLEAN": pa.bool_(),...
31.396825
88
0.535137
73a68a599f47e182604a6f3dc1dc9a824f4547ba
508
py
Python
backend/api/python_http_client/kfp_server_api/api/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
2,860
2018-05-24T04:55:01.000Z
2022-03-31T13:49:56.000Z
backend/api/python_http_client/kfp_server_api/api/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
7,331
2018-05-16T09:03:26.000Z
2022-03-31T23:22:04.000Z
backend/api/python_http_client/kfp_server_api/api/__init__.py
Iuiu1234/pipelines
1e032f550ce23cd40bfb6827b995248537b07d08
[ "Apache-2.0" ]
1,359
2018-05-15T11:05:41.000Z
2022-03-31T09:42:09.000Z
from __future__ import absolute_import # flake8: noqa # import apis into api package from kfp_server_api.api.experiment_service_api import ExperimentServiceApi from kfp_server_api.api.healthz_service_api import HealthzServiceApi from kfp_server_api.api.job_service_api import JobServiceApi from kfp_server_api.api.pipe...
42.333333
83
0.893701
73a69df066bb1c3f5befb2dad119caef7df4a87a
14,480
py
Python
PREP_CAOM/obsolete/obsolete_modules.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-16T15:30:08.000Z
2017-10-16T15:30:08.000Z
PREP_CAOM/obsolete/obsolete_modules.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
18
2018-05-11T16:07:48.000Z
2018-11-19T19:45:40.000Z
PREP_CAOM/obsolete/obsolete_modules.py
spacetelescope/MAST_HLSP
48c1df2e6bef3e03f6eefe9f52808b345e1587b4
[ "MIT" ]
1
2017-10-03T19:38:59.000Z
2017-10-03T19:38:59.000Z
def merge_dictionaries(current_dict, new_dict): if "metadataList" in current_dict: current_metadata = current_dict["metadataList"] else: current_metadata = {} if "provenance" in current_dict: current_provenance = current_dict["provenance"] else: current_provenance = {} ...
37.033248
79
0.595787
73a6a5216d95ba6092a0341cf62b26370dea50b3
763
py
Python
tests/test_provider_camptocamp_jwt.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
tests/test_provider_camptocamp_jwt.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
tests/test_provider_camptocamp_jwt.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# tests/test_provider_camptocamp_jwt.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:19:50 UTC) def test_provider_import(): import terrascript.provider.camptocamp.jwt def test_resource_import(): from terrascript.resource.camptocamp.jwt import jwt_hashed_token from terrascript.resource...
28.259259
80
0.750983
73a6d6a552c75b8c1d838a1c0d04a6da2f37b1d3
11,948
py
Python
bigml/topicmodel.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:38.000Z
2021-08-30T20:18:38.000Z
bigml/topicmodel.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
null
null
null
bigml/topicmodel.py
deven96/python
46be8622fe58f004bdbd636a08a8904ef4134bcd
[ "Apache-2.0" ]
1
2021-08-30T20:18:40.000Z
2021-08-30T20:18:40.000Z
# -*- coding: utf-8 -*- #!/usr/bin/env python # # Copyright 2016-2019 BigML # # 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 requi...
32.291892
79
0.557499
73a6e8777f96b3400e387ca71cca65a989d091ab
3,766
py
Python
src/wavestate/iirrational/fitters_ZPK/codings_z/cplx_sos.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/fitters_ZPK/codings_z/cplx_sos.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
src/wavestate/iirrational/fitters_ZPK/codings_z/cplx_sos.py
wavestate/wavestate-iirrational
01d6dba8b2131fa2a099a74f17e6540f30cee606
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: © 2021 Massachusetts Institute of Technology. # SPDX-FileCopyrightText: © 2021 Lee McCuller <mcculler@mit.edu> # NOTICE: authors should document their contributions in concisely in NOTICE # with details inline ...
28.530303
122
0.503452
73a6f169ba7fba4b5dd21aaa9473297d8e8fa602
947
py
Python
toontown/catalog/CatalogManager.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/catalog/CatalogManager.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/catalog/CatalogManager.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from direct.distributed.DistributedObject import DistributedObject from toontown.catalog.CatalogItemList import CatalogItemList import time class CatalogManager(DistributedObject): notify = directNotify.newCategory('CatalogManager') neverDisable = 1 def __init__(self, cr): DistributedObject.__ini...
30.548387
114
0.707497
73a7043ae4db1ea213cb3702ed9379249b64613f
4,153
py
Python
data_type/dt.py
hsocarras/pycip
288a741e5cf1e9df366ed62437e0b99f6920ef90
[ "Apache-2.0" ]
null
null
null
data_type/dt.py
hsocarras/pycip
288a741e5cf1e9df366ed62437e0b99f6920ef90
[ "Apache-2.0" ]
null
null
null
data_type/dt.py
hsocarras/pycip
288a741e5cf1e9df366ed62437e0b99f6920ef90
[ "Apache-2.0" ]
null
null
null
from .base_datatype import BaseDatatype from .date import DATE from .tod import TOD class DT(BaseDatatype): """Class to implement Date and time datatype of CIP especification. Methods ------- class encode class decode classmethod validate_range classmethod get_id_code classmethod ...
25.478528
80
0.532145
73a72292e18f58a37c02071fa36415e4c1ca1b7c
1,739
py
Python
_CNDB/_OMP/Wireless_Standard.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
_CNDB/_OMP/Wireless_Standard.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
_CNDB/_OMP/Wireless_Standard.py
CNDB/CNDB
2e3a41111f604cf2f4f22a7c9370bb3f753e3e88
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (C) 2012 Mag. Christian Tanzer All rights reserved # Glasauergasse 32, A--1130 Wien, Austria. tanzer@swing.co.at # #*** <License> ************************************************************# # This module is part of the package CNDB.OMP. # # This module is licensed under the terms ...
27.603175
85
0.577918
73a7411fad86500569bfd0ab2929920538d523dd
2,232
py
Python
func_tests/pages/dataanalysispage/data_analysis_locator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
func_tests/pages/dataanalysispage/data_analysis_locator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
func_tests/pages/dataanalysispage/data_analysis_locator.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8 from framework.utils.common_utils import * # By default every locator should be CSS # Abbr: # TB - Text Box # CB - Check Box # RB - Radio Button # BTN - Button # DD - Drop Down # LINK - Links # LABEL - Label # variable to access locators LOCATOR = "locator" BY = "by" ANA...
48.521739
146
0.75224
73a753f5984b8f2d775d516fea4977bd588aefae
702
py
Python
leetcode/141. Linked list cycle /solution.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
3
2017-02-15T20:55:04.000Z
2018-09-26T18:48:24.000Z
leetcode/141. Linked list cycle /solution.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
4
2017-10-07T18:59:20.000Z
2019-10-08T05:43:25.000Z
leetcode/141. Linked list cycle /solution.py
saisankargochhayat/algo_quest
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
[ "Apache-2.0" ]
1
2017-10-08T06:52:21.000Z
2017-10-08T06:52:21.000Z
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def hasCycle(self, head): """ :type head: ListNode :rtype: bool """ if head == None: return False...
27
61
0.51567
73a7ca1c39e8638141aebf6b22909769ae2c1e7d
3,526
py
Python
Yet-Another-EfficientDet-Pytorch/backbone.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
923
2020-01-11T06:36:53.000Z
2022-03-31T00:26:57.000Z
Yet-Another-EfficientDet-Pytorch/backbone.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
25
2020-02-27T08:35:46.000Z
2022-01-25T08:54:19.000Z
Yet-Another-EfficientDet-Pytorch/backbone.py
riciche/SimpleCVReproduction
4075de39f9c61f1359668a413f6a5d98903fcf97
[ "Apache-2.0" ]
262
2020-01-02T02:19:40.000Z
2022-03-23T04:56:16.000Z
# Author: Zylo117 import math import torch from torch import nn from efficientdet.model import BiFPN, Regressor, Classifier, EfficientNet from efficientdet.utils import Anchors class EfficientDetBackbone(nn.Module): def __init__(self, num_classes=80, compound_coef=0, load_weights=False, **kwargs): supe...
38.747253
115
0.578559
73a7d22061be89cac95c6eceab31c21de44029f8
16,019
py
Python
modifyVersions.py
cdapio/release-tools
5dd3221d4f9386410ee34b4b9e17b96180536f74
[ "ClArtistic" ]
null
null
null
modifyVersions.py
cdapio/release-tools
5dd3221d4f9386410ee34b4b9e17b96180536f74
[ "ClArtistic" ]
null
null
null
modifyVersions.py
cdapio/release-tools
5dd3221d4f9386410ee34b4b9e17b96180536f74
[ "ClArtistic" ]
2
2020-10-18T17:20:27.000Z
2022-03-21T18:49:45.000Z
from subprocess import call from os import path import subprocess import os import glob import re import sys import argparse import git # Contants for controlling level of output and interaction with filesystem quiteMode = False workspaceFolder = 'workspace_versions' # Update the entry in the .gitignore if this folde...
43.529891
184
0.653349
73a7d940d7fa07bcbc2d6879863a7db57d0687ab
21,518
py
Python
nion/data/Image.py
icbicket/niondata
30532a222120d22debe69d7a53a874e643f5d41e
[ "Apache-2.0" ]
null
null
null
nion/data/Image.py
icbicket/niondata
30532a222120d22debe69d7a53a874e643f5d41e
[ "Apache-2.0" ]
null
null
null
nion/data/Image.py
icbicket/niondata
30532a222120d22debe69d7a53a874e643f5d41e
[ "Apache-2.0" ]
null
null
null
# standard libraries import functools import math import sys # third party libraries import numpy import numpy.typing import scipy import scipy.interpolate import typing # local libraries # None ShapeType = typing.Sequence[int] Shape2DType = typing.Tuple[int, int] _ImageDataType = numpy.typing.NDArray[typing.Any] _...
48.138702
152
0.662004
73a7e3a7cc0bd229b02a7e2f77c22dfb09c6098b
1,283
py
Python
heartFEM/lcleeHeart/vtk_py/getCellLocator.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
3
2021-04-13T07:05:20.000Z
2021-10-02T13:41:09.000Z
heartFEM/lcleeHeart/vtk_py/getCellLocator.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
null
null
null
heartFEM/lcleeHeart/vtk_py/getCellLocator.py
WeiXuanChan/heartFEM
7f26c71434919c3141fac600f08685e5383e7137
[ "MIT" ]
2
2021-09-06T13:13:41.000Z
2022-03-11T18:59:02.000Z
#coding=utf8 ######################################################################## ### ### ### Created by Martin Genet, 2012-2015 ### ### ### ### University...
31.292683
72
0.387373
73a7ee4bce98a488a97a6e55b7cb64f8ede6cea3
16,257
py
Python
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_07_01/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_07_01/aio/operations/_private_endpoint_connections_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_07_01/aio/operations/_private_endpoint_connections_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...
45.66573
251
0.691087
73a7f9dc58e74d6d87e7af48f5368b4379ed8ea3
3,639
py
Python
utils/feature.py
project-coswara/cloud-functions
9a46f6941a40db47c692380474729b346f1261a2
[ "MIT" ]
null
null
null
utils/feature.py
project-coswara/cloud-functions
9a46f6941a40db47c692380474729b346f1261a2
[ "MIT" ]
null
null
null
utils/feature.py
project-coswara/cloud-functions
9a46f6941a40db47c692380474729b346f1261a2
[ "MIT" ]
null
null
null
import numpy as np import torch import torchaudio from utils.common import parse_config def compute_sad(sig, fs, threshold=0.0001, sad_start_end_sil_length=100, sad_margin_length=50): """ Compute threshold based sound activity """ # Leading/Trailing margin sad_start_end_sil_length = int(sad_s...
42.811765
115
0.645507
73a808e29e668cb8695343f86ca4eba641f11bd9
138
py
Python
oscar/lib/python2.7/site-packages/sorl/thumbnail/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/sorl/thumbnail/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/sorl/thumbnail/__init__.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
from sorl.thumbnail.fields import ImageField from sorl.thumbnail.shortcuts import get_thumbnail, delete from sorl import __version__
27.6
59
0.833333
73a80d19f76d106641c8c344b430161a1013082f
9,991
py
Python
araucaria/xas/deglitch.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
8
2021-07-11T22:54:21.000Z
2022-02-16T20:22:25.000Z
araucaria/xas/deglitch.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
araucaria/xas/deglitch.py
marcoalsina/araucaria
78039106ae27d3fdef9265503c33f33992199d8e
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from typing import Union from numpy import array, append, where, copy, delete from scipy.interpolate import interp1d from scipy.signal import savgol_filter from .. import Group from ..utils import check_objattrs from ..xas.normalize import find_e0 #from ..xas.xasutils import ro...
39.490119
93
0.602442
73a83af109c60746cb7f9a4ee568b435e6fe2f4a
8,963
py
Python
flyqma/annotation/spatial/correlation.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
2
2020-02-22T09:53:15.000Z
2020-02-24T19:01:24.000Z
flyqma/annotation/spatial/correlation.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
flyqma/annotation/spatial/correlation.py
sbernasek/flyqma
4a622c3f5fed4456c3b9240f5a96428789fde9bd
[ "MIT" ]
null
null
null
import numpy as np from scipy.stats import binned_statistic from scipy.optimize import curve_fit import matplotlib.pyplot as plt from ...visualization import * from .timeseries import plot_mean, plot_mean_interval from .timeseries import smooth class CorrelationProperties: # fraction of cells used to determine...
28.097179
96
0.57782
73a84a56759c69520ca1c21e7201c0134fde707f
3,488
py
Python
netplas/product/serializers.py
umit-ozturk/MRP-Project
0107d01097340113badc8dc37abb56942be4f286
[ "MIT" ]
8
2019-07-17T06:50:01.000Z
2021-08-07T10:31:01.000Z
netplas/product/serializers.py
umit-ozturk/MRP-Project-System-Analysis--Lesson
0107d01097340113badc8dc37abb56942be4f286
[ "MIT" ]
8
2020-02-11T23:55:58.000Z
2022-02-10T09:10:40.000Z
netplas/product/serializers.py
umit-ozturk/MRP-Project-System-Analysis--Lesson
0107d01097340113badc8dc37abb56942be4f286
[ "MIT" ]
3
2020-06-13T21:37:25.000Z
2021-05-14T12:42:55.000Z
from rest_framework import serializers from django.template.defaultfilters import date as _date from product.models import Product, Raw, RawForProduction, ProductAttr from stock.serializers import ProductStockSerializer, RawStockSerializer class RawUpdateSerializer(serializers.ModelSerializer): class Meta: ...
32.296296
85
0.658544
73a861b820fa556be7ec47e0b04d59785896bd57
701
py
Python
swimpool/examples/multiple_functions_same_data.py
agounaris/swimpool
352466220d50c9ac96eca84b8baea5062fe6b2ab
[ "BSD-3-Clause" ]
null
null
null
swimpool/examples/multiple_functions_same_data.py
agounaris/swimpool
352466220d50c9ac96eca84b8baea5062fe6b2ab
[ "BSD-3-Clause" ]
5
2017-12-04T09:24:44.000Z
2017-12-04T09:24:48.000Z
swimpool/examples/multiple_functions_same_data.py
agounaris/swimpool
352466220d50c9ac96eca84b8baea5062fe6b2ab
[ "BSD-3-Clause" ]
null
null
null
import math import random import matplotlib.pyplot as plt from ..process import Simulation def f(x): return math.log(x + random.randrange(1, 100)) def y(x): return math.log(x + random.randrange(1, 100)) def z(x): return math.log(x + random.randrange(1, 100)) def j(x): return math.log(x + random....
18.447368
74
0.666191
73a871ddb671d273f615e037dffcf2e696c7b757
396
py
Python
flute/wsgi.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
flute/wsgi.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
4
2019-03-18T20:11:30.000Z
2019-03-18T20:11:59.000Z
flute/wsgi.py
msampaio/FlautaSolo
407253513712462e3521c06bcc35a9b95da0fe19
[ "BSD-3-Clause" ]
null
null
null
""" WSGI config for flute project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "flute.settings.production") from django...
26.4
78
0.790404
73a89ac13f8c31fe4b35635698cdb3a810fd85ee
4,290
py
Python
core/network.py
drinkingcoder/GMA
76e995971569a8a577c2a02fdda73ca4f040938d
[ "WTFPL" ]
155
2021-04-06T04:30:35.000Z
2022-03-29T10:28:41.000Z
core/network.py
drinkingcoder/GMA
76e995971569a8a577c2a02fdda73ca4f040938d
[ "WTFPL" ]
21
2021-04-11T09:21:15.000Z
2022-03-15T06:45:12.000Z
core/network.py
drinkingcoder/GMA
76e995971569a8a577c2a02fdda73ca4f040938d
[ "WTFPL" ]
26
2021-04-09T09:57:28.000Z
2022-02-28T07:49:52.000Z
import torch import torch.nn as nn import torch.nn.functional as F from update import GMAUpdateBlock from extractor import BasicEncoder from corr import CorrBlock from utils.utils import bilinear_sampler, coords_grid, upflow8 from gma import Attention, Aggregate try: autocast = torch.cuda.amp.autocast except: ...
33
114
0.595804
73a8ae5b1b4b086fcc30c996dd9b8272271310b6
537
py
Python
1465.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
1465.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
1465.py
gdmanandamohon/leetcode
a691a4e37ee1fdad69c710e3710c5faf8b0a7d76
[ "MIT" ]
null
null
null
''' @author: l4zyc0d3r People who are happy makes other happy. I am gonna finish it slowly but definitely.cdt ''' class Solution: def maxArea(self, h: int, w: int, H: List[int], W: List[int]) -> int: H.sort() W.sort() h_max= max(H[0], h-H[-1]) w_max= max(W[0], w-W[-1]) for ...
29.833333
86
0.523277
73a8b2cab9e4b58ae2afc4fc280a191f22249ac4
9,288
py
Python
vplexapi-7.0.0/vplexapi/models/extent_migration.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/extent_migration.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/extent_migration.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class ExtentMigration(object): """NOTE: This class is ...
26.461538
193
0.578381
73a8dff61b3686eaf2e6e1b2ae3f3d479e87724d
2,514
py
Python
dataset/kitti_dataset.py
molnarszilard/MonoDepth-FPN-PyTorch
c7bc4fbc9ccc7ca9be4038653e132eafc2e9baa0
[ "MIT" ]
270
2018-05-17T08:57:56.000Z
2020-07-08T02:30:21.000Z
dataset/kitti_dataset.py
molnarszilard/MonoDepth-FPN-PyTorch
c7bc4fbc9ccc7ca9be4038653e132eafc2e9baa0
[ "MIT" ]
17
2018-06-30T10:28:28.000Z
2020-04-03T04:56:03.000Z
dataset/kitti_dataset.py
molnarszilard/MonoDepth-FPN-PyTorch
c7bc4fbc9ccc7ca9be4038653e132eafc2e9baa0
[ "MIT" ]
63
2018-05-18T06:42:14.000Z
2020-07-09T05:01:55.000Z
import torch.utils.data as data import numpy as np from PIL import Image from scipy.misc import imread from path import Path from constants import * from torchvision.transforms import Resize, Compose, ToPILImage, ToTensor, RandomHorizontalFlip import torch, time import torch.nn.functional as F def load_depth(filename)...
35.914286
110
0.624105
73a8f91c7e1ac7c7a46fd0cf1fec85a7e104b9e9
825
py
Python
terrascript/resource/hashicorp/ciscoasa.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
507
2017-07-26T02:58:38.000Z
2022-01-21T12:35:13.000Z
terrascript/resource/hashicorp/ciscoasa.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
135
2017-07-20T12:01:59.000Z
2021-10-04T22:25:40.000Z
terrascript/resource/hashicorp/ciscoasa.py
mjuenema/python-terrascript
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
[ "BSD-2-Clause" ]
81
2018-02-20T17:55:28.000Z
2022-01-31T07:08:40.000Z
# terrascript/resource/hashicorp/ciscoasa.py # Automatically generated by tools/makecode.py (24-Sep-2021 15:14:03 UTC) import terrascript class ciscoasa_access_in_rules(terrascript.Resource): pass class ciscoasa_access_out_rules(terrascript.Resource): pass class ciscoasa_acl(terrascript.Resource): pas...
19.186047
73
0.779394
73a90d67a58165c1361c5847243d7cca486a09fb
32
py
Python
febio_python/xplt/xplt_parser/__init__.py
Nobregaigor/febio-python
6895b4e2f8959444a66b6f77a000ce193c3357a7
[ "MIT" ]
null
null
null
febio_python/xplt/xplt_parser/__init__.py
Nobregaigor/febio-python
6895b4e2f8959444a66b6f77a000ce193c3357a7
[ "MIT" ]
null
null
null
febio_python/xplt/xplt_parser/__init__.py
Nobregaigor/febio-python
6895b4e2f8959444a66b6f77a000ce193c3357a7
[ "MIT" ]
null
null
null
from .read_xplt import read_xplt
32
32
0.875