hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
e49321a84235e38c999d440f9422608b1df468be
1,556
py
Python
util/add_hash.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
2
2021-03-17T11:25:46.000Z
2021-11-18T04:20:54.000Z
util/add_hash.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
2
2020-07-31T22:37:30.000Z
2020-07-31T23:08:55.000Z
util/add_hash.py
TiankunZhou/dials
bd5c95b73c442cceb1c61b1690fd4562acf4e337
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, division, print_function def enhash(e, h, k, l): return e * (2 ** 30) + (h + 512) * (2 ** 20) + (k + 512) * (2 ** 10) + (l + 512) def add_hash(integrated_data): """Add hash = 2^30 * entering + 2^20 * (h+512) + 2^10 * (k+512) + (l+512) as new column to reflection t...
28.814815
84
0.65617
e1e657b54a80b68ea92d86412282b0cef103bd31
8,420
py
Python
src/sdk/python/OsduClient/models/search_cursor_query_request.py
Kyle-MSFT/self-managed-osdu
4d5117686a3d06c8d41565cdf0214c883515b148
[ "MIT" ]
3
2021-11-05T20:52:54.000Z
2021-11-23T23:02:29.000Z
src/sdk/python/OsduClient/models/search_cursor_query_request.py
Kyle-MSFT/self-managed-osdu
4d5117686a3d06c8d41565cdf0214c883515b148
[ "MIT" ]
4
2021-11-05T19:57:08.000Z
2021-12-14T13:59:04.000Z
src/sdk/python/OsduClient/models/search_cursor_query_request.py
Kyle-MSFT/self-managed-osdu
4d5117686a3d06c8d41565cdf0214c883515b148
[ "MIT" ]
36
2021-08-31T20:58:25.000Z
2022-03-30T17:02:57.000Z
# coding: utf-8 """ self-managed-osdu Rest API Documentation for Self Managed OSDU # noqa: E501 OpenAPI spec version: 0.11.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from OsduClient.configuration import Configurati...
31.41791
202
0.608314
56fab19bcc391c5d3460159832fde3ab23ca35e8
3,972
py
Python
official/vision/beta/modeling/backbones/spinenet_mobile_test.py
NasTul/models
4fabd84c5c5e2b34a1b95431788f7801de036421
[ "Apache-2.0" ]
82,518
2016-02-05T12:07:23.000Z
2022-03-31T23:09:47.000Z
official/vision/beta/modeling/backbones/spinenet_mobile_test.py
NasTul/models
4fabd84c5c5e2b34a1b95431788f7801de036421
[ "Apache-2.0" ]
9,021
2016-03-08T01:02:05.000Z
2022-03-31T08:06:35.000Z
official/vision/beta/modeling/backbones/spinenet_mobile_test.py
NasTul/models
4fabd84c5c5e2b34a1b95431788f7801de036421
[ "Apache-2.0" ]
54,341
2016-02-06T17:19:55.000Z
2022-03-31T10:27:44.000Z
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.150442
80
0.690836
d5cf80e2c515e231e9bc5af0e83d1942cb94d55a
1,882
py
Python
utils/timer_job.py
462548187/atms-api
0715062e7d1e7dceb845b9d5b9a78d88d4ce00b5
[ "MIT" ]
null
null
null
utils/timer_job.py
462548187/atms-api
0715062e7d1e7dceb845b9d5b9a78d88d4ce00b5
[ "MIT" ]
null
null
null
utils/timer_job.py
462548187/atms-api
0715062e7d1e7dceb845b9d5b9a78d88d4ce00b5
[ "MIT" ]
null
null
null
#!/usr/bin/env/ python3 # -*- coding:utf-8 -*- """ @Project: apiAutoTestFastApi @File :timer_job.py @Author: Liu Yue @Date :2021/4/30 13:40 @Desc : 定时任务, 写在内存中,参考文章 https://www.cnblogs.com/zhangliang91/p/12468871.html https://blog.csdn.net/sunnyzyq/article/details/98597252 """ from apscheduler.schedulers.asyncio im...
25.432432
86
0.606801
44be2c100dcc2e8cda80e0fd6fd11c101fc1c9de
6,552
py
Python
edsnlp/pipelines/core/endlines/endlines.py
MohamedBsh/edsnlp
a58b31d62e14b029ed390364a7e15d99c1decd16
[ "BSD-3-Clause" ]
32
2022-03-08T16:45:09.000Z
2022-03-31T15:21:00.000Z
edsnlp/pipelines/core/endlines/endlines.py
MohamedBsh/edsnlp
a58b31d62e14b029ed390364a7e15d99c1decd16
[ "BSD-3-Clause" ]
19
2022-03-09T11:44:43.000Z
2022-03-31T14:32:06.000Z
edsnlp/pipelines/core/endlines/endlines.py
MohamedBsh/edsnlp
a58b31d62e14b029ed390364a7e15d99c1decd16
[ "BSD-3-Clause" ]
1
2022-03-11T16:14:21.000Z
2022-03-11T16:14:21.000Z
import pickle from typing import List, Optional, Union import numpy as np import pandas as pd from spacy.language import Language from spacy.tokens import Doc, Span, Token from edsnlp.pipelines.core.matcher import GenericMatcher from edsnlp.utils.filter import get_spans from .endlinesmodel import EndLinesModel from ...
26.962963
88
0.525641
cb0be04111fc81bbab2917a08412f1d9c801c9e2
2,695
py
Python
tests/test_graph.py
isi-vista/vistautils
c25e5fbbed02281ca321523c4c4d604c7a369b1d
[ "MIT" ]
3
2018-10-26T16:44:44.000Z
2019-10-03T14:02:44.000Z
tests/test_graph.py
isi-vista/vistautils
c25e5fbbed02281ca321523c4c4d604c7a369b1d
[ "MIT" ]
136
2018-10-11T21:37:31.000Z
2021-03-25T22:15:13.000Z
tests/test_graph.py
isi-vista/vistautils
c25e5fbbed02281ca321523c4c4d604c7a369b1d
[ "MIT" ]
3
2019-07-01T17:55:37.000Z
2020-08-05T15:42:56.000Z
from unittest import TestCase from immutablecollections import immutableset, immutablesetmultidict from vistautils._graph import Digraph, ParameterInterpolationError class TestGraph(TestCase): # This graph is taken from # https://upload.wikimedia.org/wikipedia/commons/thumb/0/03/Directed_acyclic_graph_2.svg...
34.551282
131
0.468275
abc62559af3d0dc309c157f7b20bdfb0ee7d273e
5,210
py
Python
src/backlight/trades/trades.py
keisuke-umezawa/backlight
db49a966fdb38de693bb8157cec88d98620f9946
[ "MIT" ]
8
2018-11-06T16:48:45.000Z
2021-02-14T18:02:27.000Z
src/backlight/trades/trades.py
keisuke-umezawa/backlight
db49a966fdb38de693bb8157cec88d98620f9946
[ "MIT" ]
36
2018-11-02T23:21:59.000Z
2021-02-08T10:27:29.000Z
src/backlight/trades/trades.py
keisuke-umezawa/backlight
db49a966fdb38de693bb8157cec88d98620f9946
[ "MIT" ]
5
2018-11-07T06:05:24.000Z
2021-11-20T08:57:39.000Z
import pandas as pd import numpy as np from collections import namedtuple from functools import lru_cache from typing import Any, Type, List, Iterable, Optional # noqa from backlight.asset.currency import Currency from backlight.datasource.marketdata import MarketData Transaction = namedtuple("Transaction", ["times...
26.446701
96
0.601919
cc6679a04dd9cba9b1a09604e95d3ce22856f033
1,528
py
Python
setup.py
marekzp/pytextrank
a21c84aafe0626f09deed3ec52c4bcdec0ac5af6
[ "Apache-2.0" ]
null
null
null
setup.py
marekzp/pytextrank
a21c84aafe0626f09deed3ec52c4bcdec0ac5af6
[ "Apache-2.0" ]
null
null
null
setup.py
marekzp/pytextrank
a21c84aafe0626f09deed3ec52c4bcdec0ac5af6
[ "Apache-2.0" ]
null
null
null
from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup(name='pytextrank', version='1.1.0', description='Python implimentation of TextRank for text document NLP parsing and summarization', long_description=readme(), classifiers=[ 'Devel...
37.268293
110
0.619764
f1a20d750d5c0c487c2e6e170e7508696873f3e5
48,942
py
Python
src/config/schema-transformer/schema_transformer/tests/test_policy.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
37
2020-09-21T10:42:26.000Z
2022-01-09T10:16:40.000Z
src/config/schema-transformer/schema_transformer/tests/test_policy.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
null
null
null
src/config/schema-transformer/schema_transformer/tests/test_policy.py
atsgen/tf-controller
9321889cdd3d7108980cc88937b2e82956502cc5
[ "Apache-2.0" ]
21
2020-08-25T12:48:42.000Z
2022-03-22T04:32:18.000Z
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from __future__ import print_function from builtins import str import uuid from cfgm_common.exceptions import BadRequest from cfgm_common.tests import test_common import gevent from vnc_api.vnc_api import ActionListType, AddressType from vnc_api.vn...
42.118761
79
0.628376
8743d3034926cdcfdc5735ccb4f4dbdcfd75a970
7,910
py
Python
src/generator/AutoRest.Python.Tests/AcceptanceTests/form_data_tests.py
ljhljh235/AutoRest
b9ab4000e9b93d16925db84d08bafc225b098f8e
[ "MIT" ]
1
2017-08-27T07:40:09.000Z
2017-08-27T07:40:09.000Z
src/generator/AutoRest.Python.Tests/AcceptanceTests/form_data_tests.py
ljhljh235/AutoRest
b9ab4000e9b93d16925db84d08bafc225b098f8e
[ "MIT" ]
null
null
null
src/generator/AutoRest.Python.Tests/AcceptanceTests/form_data_tests.py
ljhljh235/AutoRest
b9ab4000e9b93d16925db84d08bafc225b098f8e
[ "MIT" ]
1
2019-07-20T12:20:03.000Z
2019-07-20T12:20:03.000Z
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
40.984456
101
0.642857
2c971f20a59bf1ce6ca85123189474ca1226f36d
4,163
py
Python
xlsxwriter/test/comparison/test_simple06.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
1
2020-07-01T07:24:37.000Z
2020-07-01T07:24:37.000Z
xlsxwriter/test/comparison/test_simple06.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_simple06.py
dthadi3/XlsxWriter
f1801e82240aa9c746ce14948ef95990b83162cf
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from datetime import datetime, date, time from ...workbook import Workbook class TestComp...
27.032468
79
0.611098
9d8f85ceff444bbb5546f86ec372cd3b3d223bf3
558
py
Python
LeetCode/1952. Three Divisors/1952-070821.py
flying-yogurt/unnamed-temp
68cec5feb808d403974a1529a89d3770508806c7
[ "FSFAP" ]
7
2020-09-29T11:52:46.000Z
2021-07-11T07:54:34.000Z
LeetCode/1952. Three Divisors/1952-070821.py
flying-yogurt/unnamed-temp
68cec5feb808d403974a1529a89d3770508806c7
[ "FSFAP" ]
null
null
null
LeetCode/1952. Three Divisors/1952-070821.py
flying-yogurt/unnamed-temp
68cec5feb808d403974a1529a89d3770508806c7
[ "FSFAP" ]
null
null
null
""" Hao Ren 07 August, 2021 1952. Three Divisors """ import math class Solution(object): def is_prime(self, x): if x < 2: return False if x % 2 == 0 and x > 2: return False for i in range(3, int(math.sqrt(x)) + 1, 2): if x % i == 0: retur...
19.928571
52
0.473118
b1d020d4b8c0a369a9b647e7ff829b2edba868ca
5,302
py
Python
dynamic-time-warping/create-matrices.py
luddz/folk-music-similarity
42324aff2f3fbfa36a53c04d0e20b087d2936b06
[ "MIT" ]
null
null
null
dynamic-time-warping/create-matrices.py
luddz/folk-music-similarity
42324aff2f3fbfa36a53c04d0e20b087d2936b06
[ "MIT" ]
null
null
null
dynamic-time-warping/create-matrices.py
luddz/folk-music-similarity
42324aff2f3fbfa36a53c04d0e20b087d2936b06
[ "MIT" ]
null
null
null
import sys import os import json import importlib if sys.version_info < (3,0): import cPickle as pickle else: import pickle import numpy as np import argparse parser = argparse.ArgumentParser() parser.add_argument('--temperature', type=float, default=1.0) parser.add_argument('--json_file', type=st...
40.473282
903
0.607695
e424cfee6ea13803aae2269805eb41921c99a023
8,069
py
Python
salt/modules/minion.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/modules/minion.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/modules/minion.py
Noah-Huppert/salt
998c382f5f2c3b4cbf7d96aa6913ada6993909b3
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
# -*- coding: utf-8 -*- """ Module to provide information about minions """ from __future__ import absolute_import, print_function, unicode_literals # Import Python libs import os import sys import time import salt.key # Import Salt libs import salt.utils.data # Import third party libs from salt.ext import six from...
31.15444
85
0.559425
b27324499c72e3352a3ea31012aadd3389f79886
5,317
py
Python
temboo/core/Library/Google/ComputeEngine/Instances/GetInstance.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
7
2016-03-07T02:07:21.000Z
2022-01-21T02:22:41.000Z
temboo/core/Library/Google/ComputeEngine/Instances/GetInstance.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
null
null
null
temboo/core/Library/Google/ComputeEngine/Instances/GetInstance.py
jordanemedlock/psychtruths
52e09033ade9608bd5143129f8a1bfac22d634dd
[ "Apache-2.0" ]
8
2016-06-14T06:01:11.000Z
2020-04-22T09:21:44.000Z
# -*- coding: utf-8 -*- ############################################################################### # # GetInstance # Retrieves information about the specified Instance. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may n...
43.227642
254
0.68422
26d4f820ab8cafae16ac7eba44edf78963493c40
2,974
py
Python
chainerui/report/image_report.py
chainer/chainerui
91c5c26d9154a008079dbb0bcbf69b5590d105f7
[ "MIT" ]
185
2017-12-15T09:24:07.000Z
2022-01-20T11:20:13.000Z
chainerui/report/image_report.py
chainer/chainerui
91c5c26d9154a008079dbb0bcbf69b5590d105f7
[ "MIT" ]
191
2017-12-15T09:14:52.000Z
2022-02-17T14:09:19.000Z
chainerui/report/image_report.py
chainer/chainerui
91c5c26d9154a008079dbb0bcbf69b5590d105f7
[ "MIT" ]
29
2017-12-15T09:40:45.000Z
2022-03-13T11:21:11.000Z
import datetime import os import warnings import chainer from chainer import cuda import numpy from chainerui.report.utils import get_hash from chainerui.report.utils import get_unixtime def _setup_image_module(): try: from PIL import Image # NOQA return Image except (ImportError, TypeErro...
27.284404
79
0.622394
61b5f72d9f55fa23af589a870f89ada9175d29a8
980
py
Python
Ankit Khandelwal_HW2/exercise 7/exercise 7e.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
Ankit Khandelwal_HW2/exercise 7/exercise 7e.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
Ankit Khandelwal_HW2/exercise 7/exercise 7e.py
ankit27kh/Computational-Physics-PH354
d37c93e430a0f282251a814456890acb4a2961fe
[ "MIT" ]
null
null
null
from math import * def simpsons_rule(fx, a, b): c = (a + b) / 2.0 h = abs(b - a) / 6.0 return h * (fx(a) + 4.0 * fx(c) + fx(b)) def recursive_asr(fx, a, b, eps, whole): c = (a + b) / 2.0 left = simpsons_rule(fx, a, c) right = simpsons_rule(fx, c, b) if abs(left + right - whole) <= 15 * e...
25.789474
96
0.515306
5d2371f35968a0f34a25650e739606cae5c9f965
22,857
py
Python
tests/integration/states/test_pip_state.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
1
2021-07-15T18:11:51.000Z
2021-07-15T18:11:51.000Z
tests/integration/states/test_pip_state.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
null
null
null
tests/integration/states/test_pip_state.py
johnskopis/salt
86adb6b0fe40230b8be4c74229e897a7a08f81a6
[ "Apache-2.0" ]
1
2020-04-10T20:18:40.000Z
2020-04-10T20:18:40.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: Pedro Algarvio (pedro@algarvio.me) tests.integration.states.pip_state ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # Import python libs from __future__ import absolute_import, print_function, unicode_literals import errno import os import glob import shutil import sys try: ...
39.751304
107
0.57326
250250de971913825946943b65346b1423a41b38
9,574
py
Python
QAutoLibrary/extension/parsers/xmltodict.py
nordic-institute/QAutoLibrary
5a13d14b88f25fb06a858c0bae0b2120a848d13e
[ "Apache-2.0" ]
null
null
null
QAutoLibrary/extension/parsers/xmltodict.py
nordic-institute/QAutoLibrary
5a13d14b88f25fb06a858c0bae0b2120a848d13e
[ "Apache-2.0" ]
null
null
null
QAutoLibrary/extension/parsers/xmltodict.py
nordic-institute/QAutoLibrary
5a13d14b88f25fb06a858c0bae0b2120a848d13e
[ "Apache-2.0" ]
1
2018-05-28T10:03:25.000Z
2018-05-28T10:03:25.000Z
#!/usr/bin/env python """ # QAutomate Ltd 2018. All rights reserved. # # Copyright and all other rights including without limitation all intellectual property rights and title in or # pertaining to this material, all information contained herein, related documentation and their modifications and # new versi...
33.013793
117
0.605807
2d60f4701bcfbcea1a7dda3130d96a7a9dc8a7ca
21,413
py
Python
lib/datasets/davis_seg.py
giladsharir/MNC-1
449c8c6584c1ba634121c22d5f13c6720100e00b
[ "BSD-2-Clause" ]
null
null
null
lib/datasets/davis_seg.py
giladsharir/MNC-1
449c8c6584c1ba634121c22d5f13c6720100e00b
[ "BSD-2-Clause" ]
null
null
null
lib/datasets/davis_seg.py
giladsharir/MNC-1
449c8c6584c1ba634121c22d5f13c6720100e00b
[ "BSD-2-Clause" ]
null
null
null
# -------------------------------------------------------- # Multitask Network Cascade # Written by Haozhi Qi # Copyright (c) 2016, Haozhi Qi # Licensed under The MIT License [see LICENSE for details] # -------------------------------------------------------- import cPickle import os import scipy.io as sio import nump...
46.348485
143
0.579835
277974a5dce1c6cfd0c1fd1b5a801a844239854c
58,076
py
Python
src/peter_sslers/lib/db/getcreate.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
src/peter_sslers/lib/db/getcreate.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
src/peter_sslers/lib/db/getcreate.py
jvanasco/pyramid_letsencrypt_admin
6db37d30ef8028ff978bf6083cdf978fc88a4782
[ "MIT" ]
null
null
null
from __future__ import print_function # stdlib import datetime import json import logging # pypi import sqlalchemy # localapp from .create import create__AcmeChallenge from .create import create__CertificateRequest from .create import create__CertificateSigned from .create import create__PrivateKey from .get import ...
38.846823
232
0.674582
f3f737f62d042974195dc21857d968751a594509
356
py
Python
tests/common.py
bachya/pyopenuv
e9211c1d77751cc4172b112f36e7c68b6bedc6b8
[ "MIT" ]
5
2018-08-18T04:45:58.000Z
2021-07-20T16:44:33.000Z
tests/common.py
bachya/pyopenuv
e9211c1d77751cc4172b112f36e7c68b6bedc6b8
[ "MIT" ]
55
2018-10-31T03:04:39.000Z
2022-03-01T01:44:29.000Z
tests/common.py
bachya/pyopenuv
e9211c1d77751cc4172b112f36e7c68b6bedc6b8
[ "MIT" ]
6
2019-02-26T19:36:31.000Z
2021-04-06T12:58:09.000Z
"""Define common test utilities.""" import os TEST_ALTITUDE = "1609.3" TEST_API_KEY = "12345" TEST_LATITUDE = "51.528308" TEST_LONGITUDE = "-0.3817803" def load_fixture(filename): """Load a fixture.""" path = os.path.join(os.path.dirname(__file__), "fixtures", filename) with open(path, encoding="utf-8") ...
23.733333
72
0.676966
3204c206c4938435684c9913802f718eb58f778b
1,110
py
Python
crazyswarm2_examples/crazyswarm2_examples/figure8.py
IMRCLab/crazyswarm2
7beecb1da5fef6cbe75e6d8302f2cc8bedbacdfe
[ "MIT" ]
9
2021-11-07T02:26:13.000Z
2022-03-05T09:49:35.000Z
crazyswarm2_examples/crazyswarm2_examples/figure8.py
IMRCLab/crazyswarm2
7beecb1da5fef6cbe75e6d8302f2cc8bedbacdfe
[ "MIT" ]
13
2021-11-05T18:20:24.000Z
2022-03-02T12:53:52.000Z
crazyswarm2_examples/crazyswarm2_examples/figure8.py
IMRCLab/crazyswarm2
7beecb1da5fef6cbe75e6d8302f2cc8bedbacdfe
[ "MIT" ]
2
2021-11-08T19:25:28.000Z
2021-12-06T16:45:48.000Z
#!/usr/bin/env python import numpy as np from pathlib import Path from py_crazyswarm2 import * from py_crazyswarm2.uav_trajectory import Trajectory def main(): swarm = Crazyswarm() timeHelper = swarm.timeHelper allcfs = swarm.allcfs traj1 = Trajectory() traj1.loadcsv(Path(__file__).parent / "dat...
27.073171
70
0.645045
7be7c75dfe64434d3fbb630c471c57d4d00a099d
20,868
py
Python
tests/python/relay/test_adt.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
48
2020-07-29T18:09:23.000Z
2021-10-09T01:53:33.000Z
tests/python/relay/test_adt.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
9
2021-04-02T02:28:07.000Z
2022-03-26T18:23:59.000Z
tests/python/relay/test_adt.py
mingwayzhang/tvm
3b287c4d4e6d83e6fd30db47ffa3d5481a332a63
[ "Apache-2.0" ]
42
2020-08-01T06:41:24.000Z
2022-01-20T10:33:08.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
29.391549
111
0.553814
8e631eb6dae1ca9d6f88e0f052e61008f9904ba3
5,422
py
Python
suiron/core/SuironIO.py
3keepmovingforward3/suiron
8e51e186ae83a412eb09c732a8edd1e3c15ac0bf
[ "MIT" ]
800
2016-09-15T05:58:52.000Z
2022-03-31T16:48:52.000Z
suiron/core/SuironIO.py
3keepmovingforward3/suiron
8e51e186ae83a412eb09c732a8edd1e3c15ac0bf
[ "MIT" ]
6
2016-10-11T18:11:44.000Z
2021-01-17T14:57:15.000Z
suiron/core/SuironIO.py
3keepmovingforward3/suiron
8e51e186ae83a412eb09c732a8edd1e3c15ac0bf
[ "MIT" ]
101
2016-10-04T01:56:35.000Z
2021-09-13T04:00:15.000Z
import time import random import numpy as np import pandas as pd import cv2, os, serial, csv import matplotlib.pyplot as plt from suiron.utils.functions import cnn_to_raw from suiron.utils.img_serializer import serialize_image from suiron.utils.file_finder import get_new_filename class SuironIO: """ Class whi...
31.34104
101
0.602545
4a50e5cb3da41f474d3a203e0dd1d292581febc5
191,709
py
Python
Lib/pyto_ui.py
kylefmohr/Pyto
ff154181f4246d5c8502b022414983f61f23ed65
[ "MIT" ]
null
null
null
Lib/pyto_ui.py
kylefmohr/Pyto
ff154181f4246d5c8502b022414983f61f23ed65
[ "MIT" ]
null
null
null
Lib/pyto_ui.py
kylefmohr/Pyto
ff154181f4246d5c8502b022414983f61f23ed65
[ "MIT" ]
null
null
null
""" UI for scripts The ``pyto_ui`` module contains classes for building and presenting a native UI, in app or in the Today Widget. This library's API is very similar to UIKit. This library may have a lot of similarities with ``UIKit``, but subclassing isn't supported very well. Instead of overriding methods, you will...
30.15715
415
0.636579
721843ebcbcc52511493e1188da26c920827640a
17,277
py
Python
embeddings/OpenKE/config/Config.py
wunaidev/KagNet
c91fba3441c169c5f7646a755d4ec96384dbb1ff
[ "MIT" ]
244
2019-09-06T07:53:57.000Z
2022-03-28T19:32:15.000Z
embeddings/OpenKE/config/Config.py
wunaidev/KagNet
c91fba3441c169c5f7646a755d4ec96384dbb1ff
[ "MIT" ]
null
null
null
embeddings/OpenKE/config/Config.py
wunaidev/KagNet
c91fba3441c169c5f7646a755d4ec96384dbb1ff
[ "MIT" ]
61
2019-09-14T07:06:57.000Z
2022-03-16T07:02:52.000Z
#coding:utf-8 import numpy as np import tensorflow as tf import os import time import datetime import ctypes import json class Config(object): ''' use ctypes to call C functions from python and set essential parameters. ''' def __init__(self): base_file = os.path.abspath(os.path.join(os.path.dirname(__file__), '...
36.681529
165
0.72501
24a16380416f5683c8cb7df3138cbc58aad6ae70
159
py
Python
pymt_waves/component.py
mcflugen/pymt_waves
991185a05ebb8db13bb5e96289791d41ad89769a
[ "MIT" ]
null
null
null
pymt_waves/component.py
mcflugen/pymt_waves
991185a05ebb8db13bb5e96289791d41ad89769a
[ "MIT" ]
null
null
null
pymt_waves/component.py
mcflugen/pymt_waves
991185a05ebb8db13bb5e96289791d41ad89769a
[ "MIT" ]
null
null
null
from __future__ import absolute_import from pymt.framework.bmi_bridge import bmi_factory from .bmi import Waves Waves = bmi_factory(Waves) del bmi_factory
15.9
49
0.830189
41dc4eae30c9c1f995eaaa907c4ea04d4a106551
89,675
py
Python
scipy/stats/_multivariate.py
I--P/scipy
ad02ef083824d195f04f267b141716e0f047197f
[ "BSD-3-Clause" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
scipy/stats/_multivariate.py
I--P/scipy
ad02ef083824d195f04f267b141716e0f047197f
[ "BSD-3-Clause" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
scipy/stats/_multivariate.py
I--P/scipy
ad02ef083824d195f04f267b141716e0f047197f
[ "BSD-3-Clause" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
# # Author: Joris Vankerschaver 2013 # from __future__ import division, print_function, absolute_import import numpy as np import scipy.linalg from scipy.misc import doccer from scipy.special import gammaln, psi, multigammaln from scipy._lib._util import check_random_state __all__ = ['multivariate_normal', ...
32.049678
100
0.588982
a05148483b88661803920562001a3819327cfce9
1,708
py
Python
examples/applications/translating/conv_seq2seq_translation.py
gugarosa/textformer
cccc670d48995fa0bfbdf9fc8013d13a90ea5e84
[ "Apache-2.0" ]
3
2020-07-26T03:51:56.000Z
2020-10-04T18:42:18.000Z
examples/applications/translating/conv_seq2seq_translation.py
gugarosa/textformer
cccc670d48995fa0bfbdf9fc8013d13a90ea5e84
[ "Apache-2.0" ]
null
null
null
examples/applications/translating/conv_seq2seq_translation.py
gugarosa/textformer
cccc670d48995fa0bfbdf9fc8013d13a90ea5e84
[ "Apache-2.0" ]
null
null
null
from torchtext.data import BucketIterator, Field import textformer.utils.visualization as v from textformer.datasets.translation import TranslationDataset from textformer.models.conv_seq2seq import ConvSeq2Seq # Defines the device which should be used, e.g., `cpu` or `cuda` device = 'cpu' # Defines the input file fi...
37.130435
88
0.755855
15d0f2e30ceb26125ef05846029e9e39e5d69f5a
17,041
py
Python
ns-allinone-3.27/ns-3.27/utils/check-style.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
93
2019-04-21T08:22:26.000Z
2022-03-30T04:26:29.000Z
ns-allinone-3.27/ns-3.27/utils/check-style.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
12
2019-04-19T16:39:58.000Z
2021-06-22T13:18:32.000Z
ns-allinone-3.27/ns-3.27/utils/check-style.py
zack-braun/4607_NS
43c8fb772e5552fb44bd7cd34173e73e3fb66537
[ "MIT" ]
21
2019-05-27T19:36:12.000Z
2021-07-26T02:37:41.000Z
#!/usr/bin/env python import os import subprocess import tempfile import sys import filecmp import optparse import shutil import difflib import re def hg_modified_files(): files = os.popen ('hg st -nma') return [filename.strip() for filename in files] def copy_file(filename): [tmp,pathname] = tempfile.mk...
29.533795
111
0.577666
5cf0c193670b5773ffc1b963ee3bf4d4847d54c7
16,473
py
Python
sparse_operation_kit/unit_test/test_scripts/tf2/test_sparse_emb_demo_model_single_worker.py
x-y-z/HugeCTR
17bf942215df60827ece9dc015af5191ef9219b7
[ "Apache-2.0" ]
130
2021-10-11T11:55:28.000Z
2022-03-31T21:53:07.000Z
sparse_operation_kit/unit_test/test_scripts/tf2/test_sparse_emb_demo_model_single_worker.py
Teora/HugeCTR
c55a63401ad350669ccfcd374aefd7a5fc879ca2
[ "Apache-2.0" ]
72
2021-10-09T04:59:09.000Z
2022-03-31T11:27:54.000Z
sparse_operation_kit/unit_test/test_scripts/tf2/test_sparse_emb_demo_model_single_worker.py
Teora/HugeCTR
c55a63401ad350669ccfcd374aefd7a5fc879ca2
[ "Apache-2.0" ]
29
2021-11-03T22:35:01.000Z
2022-03-30T13:11:59.000Z
""" Copyright (c) 2021, NVIDIA 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 to in ...
50.069909
124
0.646512
f938a1211ae37a622a1441afe158239a4dd87221
29,356
py
Python
MyPrint_ReubenPython2and3Class.py
Reuben-Brewer/MyPlotterPureTkinterStandAloneProcess_ReubenPython2and3Class
3d04fa030f0d1492137df74a44260e2d8695ac89
[ "Apache-2.0" ]
null
null
null
MyPrint_ReubenPython2and3Class.py
Reuben-Brewer/MyPlotterPureTkinterStandAloneProcess_ReubenPython2and3Class
3d04fa030f0d1492137df74a44260e2d8695ac89
[ "Apache-2.0" ]
null
null
null
MyPrint_ReubenPython2and3Class.py
Reuben-Brewer/MyPlotterPureTkinterStandAloneProcess_ReubenPython2and3Class
3d04fa030f0d1492137df74a44260e2d8695ac89
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Reuben Brewer, reuben.brewer@gmail.com, www.reubotics.com Apache 2 License Software Revision D, 08/29/2021 Verified working on: Python 2.7 and 3.7 for Windows 8.1 64-bit and Raspberry Pi Buster (no Mac testing yet). ''' __author__ = 'reuben.brewer' import os, sys, platform i...
52.142096
256
0.387587
08af3af48f92930e2cc1386fab19a269c2f84d47
12,506
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/isisspbmaccloudconfig_791b0bf61c8f6877cabfa2621478ab8a.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/isisspbmaccloudconfig_791b0bf61c8f6877cabfa2621478ab8a.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/isisspbmaccloudconfig_791b0bf61c8f6877cabfa2621478ab8a.py
rfrye-github/ixnetwork_restpy
23eeb24b21568a23d3f31bbd72814ff55eb1af44
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
41.003279
193
0.651127
8f58431de6061123a32942b5fc6b1f2443001cd7
22,933
py
Python
spaghetti/util.py
omar-3/spaghetti
22c6fea88a31eed4a80fb7f0cf1dac32b82f50a6
[ "BSD-3-Clause" ]
null
null
null
spaghetti/util.py
omar-3/spaghetti
22c6fea88a31eed4a80fb7f0cf1dac32b82f50a6
[ "BSD-3-Clause" ]
null
null
null
spaghetti/util.py
omar-3/spaghetti
22c6fea88a31eed4a80fb7f0cf1dac32b82f50a6
[ "BSD-3-Clause" ]
null
null
null
from warnings import warn from libpysal import cg from libpysal.common import requires from rtree import Rtree import numpy try: import geopandas from shapely.geometry import Point, LineString except ImportError: msg = "geopandas/shapely not available. Some functionality will be disabled." warn(msg) ...
27.763923
85
0.600183
07abfac8e5459765e2920167c0bf01dec5d3bbf2
18,968
py
Python
python/tests/test_util.py
nspope/tskit
d421b4396a46472f74d8667a37413c188d1bddaf
[ "MIT" ]
97
2018-02-08T19:32:11.000Z
2022-03-13T05:53:42.000Z
python/tests/test_util.py
nspope/tskit
d421b4396a46472f74d8667a37413c188d1bddaf
[ "MIT" ]
1,893
2018-11-12T15:55:50.000Z
2022-03-31T22:05:51.000Z
python/tests/test_util.py
nspope/tskit
d421b4396a46472f74d8667a37413c188d1bddaf
[ "MIT" ]
54
2019-01-10T12:09:54.000Z
2022-03-01T23:41:19.000Z
# MIT License # # Copyright (c) 2018-2019 Tskit Developers # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modif...
34.93186
89
0.548819
b3e771598bfff606dbdfb860a7f8c76942b67a4b
616
py
Python
4.17/demo/users/views.py
1179069501/-
b76902a35ed78678c1663f243330bcb014abace1
[ "MIT" ]
null
null
null
4.17/demo/users/views.py
1179069501/-
b76902a35ed78678c1663f243330bcb014abace1
[ "MIT" ]
null
null
null
4.17/demo/users/views.py
1179069501/-
b76902a35ed78678c1663f243330bcb014abace1
[ "MIT" ]
null
null
null
from django.http import HttpResponse from django.shortcuts import render, redirect # Create your views here. from django.urls import reverse def haha(request): print("haha函数") return HttpResponse('haha函数') def index(request): """ index视图 :param request:包含了请求信息的请求对象 :return: 响应对象 """ ...
14.666667
45
0.637987
592e376fbb78856d7d6384a8c1b1f7202129a6dc
1,964
py
Python
setup.py
studer-innotec/xcom485i
91f549fd74142afd920c080af5cea6897dd0aa90
[ "MIT" ]
2
2020-03-23T11:16:16.000Z
2021-05-28T17:55:26.000Z
setup.py
studer-innotec/xcom485i
91f549fd74142afd920c080af5cea6897dd0aa90
[ "MIT" ]
1
2020-08-30T20:17:43.000Z
2021-05-28T12:25:44.000Z
setup.py
studer-innotec/xcom485i
91f549fd74142afd920c080af5cea6897dd0aa90
[ "MIT" ]
5
2020-11-10T15:48:11.000Z
2022-01-02T05:00:20.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, os import setuptools current_directory = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(current_directory, 'README.rst'), encoding='utf-8') as f: long_description = f.read() name = "xcom485i" version = "0.9" release = "0.9.1" setuptool...
35.709091
93
0.633401
8dd9d3306a8c49a7567fc29a17bfef39b5361ae2
2,402
py
Python
test_parser.py
benman1/pyap
9deee583c2dc2bb4a69bfd091ee0492f17456a27
[ "MIT" ]
null
null
null
test_parser.py
benman1/pyap
9deee583c2dc2bb4a69bfd091ee0492f17456a27
[ "MIT" ]
null
null
null
test_parser.py
benman1/pyap
9deee583c2dc2bb4a69bfd091ee0492f17456a27
[ "MIT" ]
1
2019-11-26T14:25:38.000Z
2019-11-26T14:25:38.000Z
# -*- coding: utf-8 -*- """ Test for parser classes """ import pytest import pyap as ap from pyap import parser from pyap import address from pyap import exceptions as e def test_api_parse(): test_address = "xxx 225 E. John Carpenter Freeway, " +\ "Suite 1500 Irving, Texas 75062 xxx" addresses = ap....
27.609195
78
0.641965
4a3719329777f3153eb05929fe9c0912768a8bce
1,206
py
Python
ros2controlcli/ros2controlcli/verb/list.py
suab321321/ros2_control
a8242055b006e757717d379509cf5f4fee33f992
[ "Apache-2.0" ]
null
null
null
ros2controlcli/ros2controlcli/verb/list.py
suab321321/ros2_control
a8242055b006e757717d379509cf5f4fee33f992
[ "Apache-2.0" ]
null
null
null
ros2controlcli/ros2controlcli/verb/list.py
suab321321/ros2_control
a8242055b006e757717d379509cf5f4fee33f992
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 PAL Robotics S.L. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
37.6875
84
0.729685
940b6c71414721500f834488eb0dc6865296d677
530
py
Python
garage_system/mod_auth/forms.py
ggljzr/mi-dip-impl
3e61f97c2b78ba5b65125d4e35a5da1a26ae9b3d
[ "MIT" ]
null
null
null
garage_system/mod_auth/forms.py
ggljzr/mi-dip-impl
3e61f97c2b78ba5b65125d4e35a5da1a26ae9b3d
[ "MIT" ]
null
null
null
garage_system/mod_auth/forms.py
ggljzr/mi-dip-impl
3e61f97c2b78ba5b65125d4e35a5da1a26ae9b3d
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import PasswordField from wtforms.validators import Length, EqualTo class LoginForm(FlaskForm): password = PasswordField('Heslo') class ChangePasswordForm(FlaskForm): old_password = PasswordField('Staré heslo') new_password = PasswordField('Nové heslo', valid...
33.125
68
0.74717
7bbb226c2626dedacdacf794b1103915006a5ad9
30,403
py
Python
rdr_service/tools/import_organizations.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
39
2017-10-13T19:16:27.000Z
2021-09-24T16:58:21.000Z
rdr_service/tools/import_organizations.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
312
2017-09-08T15:42:13.000Z
2022-03-23T18:21:40.000Z
rdr_service/tools/import_organizations.py
all-of-us/raw-data-repository
d28ad957557587b03ff9c63d55dd55e0508f91d8
[ "BSD-3-Clause" ]
19
2017-09-15T13:58:00.000Z
2022-02-07T18:33:20.000Z
"""Imports awardees / HPOs, organizations, and sites into the database. Usage: tools/import_organizations.sh [--account <USER>@pmi-ops.org --project <PROJECT>] \ --awardee_file <AWARDEE CSV> --organization_file <ORGANIZATION CSV> \ --site_file <SITE CSV> [--dry_run] The CSV files originate from the Go...
44.579179
118
0.615696
e05e17d3f1480c678188c9975e836ee53c55a5fe
7,747
py
Python
experiments/ashvin/corl2019/offpolicy/pusher/vae_rl5.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/offpolicy/pusher/vae_rl5.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
experiments/ashvin/corl2019/offpolicy/pusher/vae_rl5.py
Asap7772/rail-rl-franka-eval
4bf99072376828193d05b53cf83c7e8f4efbd3ba
[ "MIT" ]
null
null
null
import railrl.misc.hyperparameter as hyp from experiments.murtaza.multiworld.skew_fit.reacher.generate_uniform_dataset import generate_uniform_dataset_reacher from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in, sawyer_pusher_camera_upright_v2 from railrl.launchers.launcher_util import run_experimen...
38.162562
122
0.572996
eb28fc5e7f98eecae13b4e9a8daf450692783a83
1,150
py
Python
OBR/OpenFOAMCase.py
greole/OBR
f175665f6681dd4e4f95a0a1fbb5dee089ee4be9
[ "BSD-3-Clause" ]
null
null
null
OBR/OpenFOAMCase.py
greole/OBR
f175665f6681dd4e4f95a0a1fbb5dee089ee4be9
[ "BSD-3-Clause" ]
1
2021-04-26T11:37:08.000Z
2021-04-26T14:31:01.000Z
OBR/OpenFOAMCase.py
greole/OBR
f175665f6681dd4e4f95a0a1fbb5dee089ee4be9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 from pathlib import Path from . import setFunctions as sf class OpenFOAMCase: """ A class for simple access to typical OpenFOAM files""" def __init__(self, path): self.path_ = Path(path) @property def path(self): return self.path_ @property def system_...
20.909091
62
0.64
4d82c255f6f3125dc1414e71517092493ad92807
2,515
py
Python
gem_metrics/questeval.py
lxuechen/GEM-metrics
1d3cf322bb2429768c4d601530439b49174889aa
[ "MIT" ]
null
null
null
gem_metrics/questeval.py
lxuechen/GEM-metrics
1d3cf322bb2429768c4d601530439b49174889aa
[ "MIT" ]
null
null
null
gem_metrics/questeval.py
lxuechen/GEM-metrics
1d3cf322bb2429768c4d601530439b49174889aa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from .metric import SourceAndReferencedMetric from questeval.questeval_metric import QuestEval as QuestEvalMetric from logzero import logger class QuestEval(SourceAndReferencedMetric): def __init__(self): # Default values self.task = "summarization" self.language = ...
36.985294
100
0.628628
a0245cec091720315832b7a81c60ed0190edda69
4,290
py
Python
build-support/bin/generate_user_list.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
build-support/bin/generate_user_list.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
22
2022-01-27T09:59:50.000Z
2022-03-30T07:06:49.000Z
build-support/bin/generate_user_list.py
danxmoran/pants
7fafd7d789747c9e6a266847a0ccce92c3fa0754
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import pkgutil from dataclasses import dataclass import chevron """Generates the custom HTML/CSS block in https://www.pantsbuild.org/docs/who-uses-pants . To add ...
34.047619
100
0.648019
70c6b796f131e7521a08ada96e480f3595243e61
4,302
py
Python
tests/test_setup_command.py
hason/sphinx
5cd0f235a891de80b637c20e0d90fd916cc68a86
[ "BSD-2-Clause" ]
null
null
null
tests/test_setup_command.py
hason/sphinx
5cd0f235a891de80b637c20e0d90fd916cc68a86
[ "BSD-2-Clause" ]
null
null
null
tests/test_setup_command.py
hason/sphinx
5cd0f235a891de80b637c20e0d90fd916cc68a86
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ test_setup_command ~~~~~~~~~~~~~~~~~~~ Test setup_command for distutils. :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import sys import subprocess from collections import namedtuple import sphinx...
28.302632
76
0.652487
6489442332323dbc4915f5658700d86f416d9e41
4,437
py
Python
tools/ceilslam/ceiltrack.py
naughtyStark/cycloid
a9c2a738e217958cb03810f06538e80daefd74ee
[ "MIT" ]
null
null
null
tools/ceilslam/ceiltrack.py
naughtyStark/cycloid
a9c2a738e217958cb03810f06538e80daefd74ee
[ "MIT" ]
null
null
null
tools/ceilslam/ceiltrack.py
naughtyStark/cycloid
a9c2a738e217958cb03810f06538e80daefd74ee
[ "MIT" ]
null
null
null
import numpy as np import cv2 CAM_TILT = np.array([0, 22. * np.pi / 180., 0]) ft2m = 0.3048 # measurements were orig. in feet; conv to meters CEIL_HEIGHT = 8.25*ft2m X_GRID = 10*ft2m/CEIL_HEIGHT Y_GRID = 12*ft2m/CEIL_HEIGHT # camera stands 90mm off the ground, which is almost exactly 0.3 feet (4") # however, this v...
32.866667
118
0.572684
1b5b47504bc2c3efdb0e0de038186af8a0f5588e
731
py
Python
python/Array/219_contains_duplicate_ii.py
Jan-zou/LeetCode
921614780b5dfae1504c803965118fcfb2a8afd4
[ "MIT" ]
null
null
null
python/Array/219_contains_duplicate_ii.py
Jan-zou/LeetCode
921614780b5dfae1504c803965118fcfb2a8afd4
[ "MIT" ]
null
null
null
python/Array/219_contains_duplicate_ii.py
Jan-zou/LeetCode
921614780b5dfae1504c803965118fcfb2a8afd4
[ "MIT" ]
null
null
null
# !/usr/bin/env python # -*- coding: utf-8 -*- ''' Description: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k. Tags: Array, Hash Table ''' class Solution(object): ...
26.107143
149
0.529412
e9d4de46d80e3d703c1fa9484605af91e7c85eab
2,896
py
Python
usb_protocol/emitters/descriptors/uac2.py
hansfbaier/python-usb-protocol
7792457b7b6d5ee7d4db30179e368b1caa4d7f3f
[ "BSD-3-Clause" ]
32
2020-04-04T13:19:41.000Z
2022-01-20T01:59:53.000Z
usb_protocol/emitters/descriptors/uac2.py
hansfbaier/python-usb-protocol
7792457b7b6d5ee7d4db30179e368b1caa4d7f3f
[ "BSD-3-Clause" ]
17
2020-04-08T21:51:05.000Z
2022-01-17T18:22:23.000Z
usb_protocol/emitters/descriptors/uac2.py
hansfbaier/python-usb-protocol
7792457b7b6d5ee7d4db30179e368b1caa4d7f3f
[ "BSD-3-Clause" ]
17
2020-04-05T04:14:31.000Z
2022-01-18T14:35:53.000Z
# # This file is part of usb_protocol. # """ Convenience emitters for USB Audio Class 2 descriptors. """ from contextlib import contextmanager from .. import emitter_for_format from ...types.descriptors.uac2 import * from ...emitters.descriptor import ComplexDescriptorEmitter # Create our emitters. InterfaceAssoc...
76.210526
160
0.752072
24bc80ca665070cdb693252f7ff920c098fc7566
5,346
py
Python
integrationtest/vm/vm_password/test_cloned_vm_chg_passwd_u14.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2021-03-21T12:41:11.000Z
2021-03-21T12:41:11.000Z
integrationtest/vm/vm_password/test_cloned_vm_chg_passwd_u14.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/vm_password/test_cloned_vm_chg_passwd_u14.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
1
2017-05-19T06:40:40.000Z
2017-05-19T06:40:40.000Z
''' test for cloned vm changing password @author: SyZhao ''' import apibinding.inventory as inventory import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import zstackwoodpecker.operations.vm_operations as vm_ops import ...
37.125
125
0.620464
540152d00e6b049145c9a9f7fc2ba21b77015288
395
py
Python
corrupted/wsgi.py
coyote963/corrupt-records
89a33a3762d212cde1fc611aa1636416b16b1c32
[ "MIT" ]
null
null
null
corrupted/wsgi.py
coyote963/corrupt-records
89a33a3762d212cde1fc611aa1636416b16b1c32
[ "MIT" ]
null
null
null
corrupted/wsgi.py
coyote963/corrupt-records
89a33a3762d212cde1fc611aa1636416b16b1c32
[ "MIT" ]
null
null
null
""" WSGI config for corrupted 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/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
23.235294
78
0.787342
19fd28aa0dbbb2c6afcf9f1d9983e44f1d3db2b2
2,810
py
Python
scripts/upload_casefiles.py
akxen/nemde
23afcdf128352f12d3074194a1321a8f810f4407
[ "Apache-2.0" ]
null
null
null
scripts/upload_casefiles.py
akxen/nemde
23afcdf128352f12d3074194a1321a8f810f4407
[ "Apache-2.0" ]
null
null
null
scripts/upload_casefiles.py
akxen/nemde
23afcdf128352f12d3074194a1321a8f810f4407
[ "Apache-2.0" ]
1
2022-01-16T01:48:54.000Z
2022-01-16T01:48:54.000Z
"""Upload XML NEMDE casefiles to database""" import os import zlib import time import calendar import MySQLdb import context import nemde from nemde.io.casefile import load_xml_from_archive from nemde.io.database.mysql import initialise_tables, post_entry, run_query from setup_variables import setup_environment_var...
29.270833
88
0.683986
46180acdbc7ef2eb147e6a886c081c2216cb0986
5,129
py
Python
jobs/tests/test_checkout_run_task.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
3
2020-05-05T12:12:09.000Z
2020-05-08T08:48:16.000Z
jobs/tests/test_checkout_run_task.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
160
2020-05-19T13:03:43.000Z
2022-03-12T00:35:28.000Z
jobs/tests/test_checkout_run_task.py
stanwood/traidoo-api
83e8599f2eb54352988bac27e2d4acd30734816d
[ "MIT" ]
null
null
null
import datetime import time from unittest import mock import pytest from django.utils import timezone from model_bakery import baker from carts.models import Cart, CartItem from orders.models import OrderItem pytestmark = pytest.mark.django_db def test_run_job_task_feature_disabled( buyer, client_buyer, ...
24.079812
88
0.619419
7a928a673134af7b81a70bf9055ae41a4a7e2afc
8,167
py
Python
spinoffs/oryx/oryx/core/primitive.py
fearghus-moloco/probability
4b675da7c431d7bb20029f9fdd28db859e6c025f
[ "Apache-2.0" ]
1
2022-03-06T15:37:18.000Z
2022-03-06T15:37:18.000Z
spinoffs/oryx/oryx/core/primitive.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
spinoffs/oryx/oryx/core/primitive.py
Frightera/probability
deac4562cbc1056e6abebc7450218d38444fe65d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
30.360595
98
0.697686
fe32470b15fa1c3c99e09aa53df0a28e0db78446
1,724
py
Python
model/model.py
TheFutureGadgetsLab/DeepDanbooruPytorch
0afbe8552d47a727f39f302cd7265f9c2f1564eb
[ "MIT" ]
1
2022-01-26T02:14:46.000Z
2022-01-26T02:14:46.000Z
model/model.py
TheFutureGadgetsLab/DeepDanbooruPytorch
0afbe8552d47a727f39f302cd7265f9c2f1564eb
[ "MIT" ]
null
null
null
model/model.py
TheFutureGadgetsLab/DeepDanbooruPytorch
0afbe8552d47a727f39f302cd7265f9c2f1564eb
[ "MIT" ]
null
null
null
import pytorch_lightning as pl import torch import torchvision as tv from apex.optimizers import FusedAdam class DanbooruModel(pl.LightningModule): def __init__(self, n_desc, n_chars, n_rating): super().__init__() self.n_desc = n_desc self.n_chars = n_chars self.n_rating = n_rati...
30.785714
98
0.62123
086acf334907eb5fca2e5f7f5fc73eafe9977749
8,505
py
Python
django/contrib/auth/forms.py
Smarsh/django
ffb738e0f56027e16564a79b709cbf44596c2335
[ "BSD-3-Clause" ]
1
2015-11-05T02:46:03.000Z
2015-11-05T02:46:03.000Z
django/contrib/auth/forms.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
null
null
null
django/contrib/auth/forms.py
aprefontaine/TMScheduler
298a332532b9df1d3f6a80b1334630bc106d3b78
[ "BSD-3-Clause" ]
1
2021-08-21T17:42:01.000Z
2021-08-21T17:42:01.000Z
from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth.tokens import default_token_generator from django.contrib.sites.models import Site from django.template import Context, loader from django import forms from django.utils.translation import ugettext_lazy as ...
40.69378
143
0.651146
db3cf4b9906455ead60ebfc99d3027182c65c3dc
10,015
py
Python
deprecated/pipeline/patientsample/patient_sample_generator.py
goodmattg/ultrasoundResearch
05324c0f5d4267b13234a96604c241df9b67fca6
[ "BSD-3-Clause" ]
1
2019-11-18T02:13:24.000Z
2019-11-18T02:13:24.000Z
deprecated/pipeline/patientsample/patient_sample_generator.py
penn-ultrasound-research-laboratory/Deep-Ultrasound-Classification
05324c0f5d4267b13234a96604c241df9b67fca6
[ "BSD-3-Clause" ]
17
2018-08-14T04:40:41.000Z
2018-12-27T02:30:31.000Z
deprecated/pipeline/patientsample/patient_sample_generator.py
goodmattg/ultrasoundResearch
05324c0f5d4267b13234a96604c241df9b67fca6
[ "BSD-3-Clause" ]
null
null
null
import json import logging import os import uuid import numpy as np import tensorflow as tf import utilities.manifest.manifest as mu from constants.ultrasound import ( IMAGE_TYPE, IMAGE_TYPE_LABEL, TUMOR_BENIGN, TUMOR_MALIGNANT, TUMOR_TYPE_LABEL, FRAME_LABEL, SCALE_LABEL) from constants....
39.27451
119
0.640739
523bc02faad941b509edaa07310bfb892a6d684c
1,084
py
Python
Online Judges/Huxley/601RotterdamCityTours.py
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
3
2018-12-18T13:39:42.000Z
2021-06-23T18:05:18.000Z
Online Judges/Huxley/601RotterdamCityTours.py
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
1
2018-11-02T21:32:40.000Z
2018-11-02T22:47:12.000Z
Online Judges/Huxley/601RotterdamCityTours.py
NelsonGomesNeto/ProgramC
e743b1b869f58f7f3022d18bac00c5e0b078562e
[ "MIT" ]
6
2018-10-27T14:07:52.000Z
2019-11-14T13:49:29.000Z
from heapq import * def dijkstra(graph, cost, visited, path, start): cost[start] = 0 queue = [] path[start] = start heappush(queue, [cost[start], start]) while (queue): v = heappop(queue)[1] if (not visited[v]): visited[v] = 1 for u in graph[v]: ...
29.297297
76
0.5
9e22364804646449828ca682b7c63f3a7a4c6428
7,628
py
Python
polliwog/plane/test_slicing.py
lace/polliwog
7744ce171738e4739e391fcff4f4689d9f177196
[ "BSD-2-Clause" ]
18
2019-05-03T02:08:12.000Z
2022-03-24T11:49:59.000Z
polliwog/plane/test_slicing.py
lace/polliwog
7744ce171738e4739e391fcff4f4689d9f177196
[ "BSD-2-Clause" ]
76
2019-04-03T15:24:01.000Z
2022-03-01T14:07:04.000Z
polliwog/plane/test_slicing.py
lace/polliwog
7744ce171738e4739e391fcff4f4689d9f177196
[ "BSD-2-Clause" ]
3
2019-11-04T16:22:07.000Z
2022-03-09T08:50:52.000Z
# Imported and adapated from Trimesh # # Copyright (c) 2019 Michael Dawson-Haggerty # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rig...
31.390947
113
0.674489
9305021bb83f89d8468ea08919947e1fffe2ee9b
1,953
py
Python
src/test.py
JiaweiZhao-git/DASNet
6097ba4a75cf928556434a1b7a81fc00e7c7c100
[ "Apache-2.0" ]
15
2020-08-09T15:12:01.000Z
2021-08-06T03:34:35.000Z
src/test.py
iCVTEAM/DASNet
6097ba4a75cf928556434a1b7a81fc00e7c7c100
[ "Apache-2.0" ]
3
2021-08-07T10:58:25.000Z
2021-09-09T08:53:43.000Z
src/test.py
iCVTEAM/DASNet
6097ba4a75cf928556434a1b7a81fc00e7c7c100
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 import os import sys os.environ["CUDA_VISIBLE_DEVICES"] = "0" sys.path.insert(0, '../') sys.dont_write_bytecode = True import cv2 import numpy as np import torch import torch.nn as nn from torch.utils.data import DataLoader import dataset as dataset from net_MM import DASNet impor...
30.046154
98
0.55658
0e1230cc50512ad3c0644058e5d270bd18289f79
3,307
py
Python
webStorm-APICloud/python_tools/Lib/ctypes/test/test_values.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
81
2017-03-13T08:24:01.000Z
2021-04-02T09:48:38.000Z
webStorm-APICloud/python_tools/Lib/ctypes/test/test_values.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
6
2017-04-30T08:36:55.000Z
2017-09-22T01:37:28.000Z
webStorm-APICloud/python_tools/Lib/ctypes/test/test_values.py
zzr925028429/androidyianyan
8967fdba92473e8e65ee222515dfc54cdae5bb0b
[ "MIT" ]
41
2017-03-18T14:11:58.000Z
2021-04-14T05:06:09.000Z
""" A testcase which accesses *values* in a dll. """ import unittest from ctypes import * import _ctypes_test class ValuesTestCase(unittest.TestCase): def test_an_integer(self): ctdll = CDLL(_ctypes_test.__file__) an_integer = c_int.in_dll(ctdll, "an_integer") x = an_intege...
39.843373
96
0.571515
4a80f1e0c04a6611fbdf602d688e7b1470ebe7fd
6,909
py
Python
ch_09/src/classifier.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
43
2021-06-03T18:39:09.000Z
2022-03-29T20:32:13.000Z
ch_09/src/classifier.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
9
2022-03-12T01:04:07.000Z
2022-03-12T01:05:01.000Z
ch_09/src/classifier.py
real-slim-chadi/Python-Object-Oriented-Programming---4th-edition
7c486866171786b620795fa33a79ec9ac9a8ba1b
[ "MIT" ]
36
2021-06-19T07:14:09.000Z
2022-03-12T22:17:09.000Z
""" Python 3 Object-Oriented Programming Case Study Chapter 9. Strings and Serialization """ from __future__ import annotations import base64 import csv from enum import Enum, auto from functools import wraps from pathlib import Path from typing import ( cast, Optional, Callable, Any, Type, Map...
28.66805
85
0.5901
075bcf7cff561bfadd427975967ab3e352069bac
928
py
Python
celltk/_setting.py
braysia/CellTK
2dbe174a0e3d7d82fa58e4f12a0eb2ac6fb89751
[ "MIT" ]
4
2018-05-21T19:48:05.000Z
2021-12-22T05:30:49.000Z
celltk/_setting.py
braysia/CellTK
2dbe174a0e3d7d82fa58e4f12a0eb2ac6fb89751
[ "MIT" ]
3
2019-04-02T19:07:34.000Z
2019-04-23T22:50:31.000Z
celltk/_setting.py
braysia/CellTK
2dbe174a0e3d7d82fa58e4f12a0eb2ac6fb89751
[ "MIT" ]
13
2017-05-12T12:47:27.000Z
2021-11-06T05:37:24.000Z
# Remove if you don't need to save certain properties. PROP_SAVE = ['area', 'cell_id', 'convex_area', 'cv_intensity', 'eccentricity', 'major_axis_length', 'minor_axis_length', 'max_intensity', 'mean_intensity', 'median_intensity', 'min_intensity', 'orientation', 'perimeter', 'so...
37.12
93
0.678879
f1f559a11d27e348941886d4e2917f197895f7bb
64
py
Python
text/_cascade/_typing/numeric/percent.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_cascade/_typing/numeric/percent.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
text/_cascade/_typing/numeric/percent.py
jedhsu/text
8525b602d304ac571a629104c48703443244545c
[ "Apache-2.0" ]
null
null
null
""" Percent Type """ class Percent( Number, ): pass
5.333333
14
0.515625
0a25c04a61be4ad4748ce8584d94c0297102c9df
6,606
py
Python
config/settings/production.py
statgen/locuszoom-hosted
ecfcc5f48fefe2869ab277202a661c2575af6abb
[ "MIT" ]
null
null
null
config/settings/production.py
statgen/locuszoom-hosted
ecfcc5f48fefe2869ab277202a661c2575af6abb
[ "MIT" ]
14
2021-01-01T17:16:23.000Z
2022-02-28T19:37:28.000Z
config/settings/production.py
statgen/locuszoom-hosted
ecfcc5f48fefe2869ab277202a661c2575af6abb
[ "MIT" ]
null
null
null
import logging from .base import * # noqa from .base import env # GENERAL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#secret-key SECRET_KEY = env('DJANGO_SECRET_KEY') # https://docs.djangoproject.com/en/dev/ref/settings/#allow...
38.184971
114
0.593097
b06a2d6add3c3b0700e4ba2648150259bb506dde
16,017
py
Python
src/oci/marketplace/account_client.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/marketplace/account_client.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/marketplace/account_client.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
55.231034
245
0.686458
31d31fc904c3ced4e391c9c6c18924879ebb56f1
712
py
Python
dev/scratch.py
alan-turing-institute/gateway-middleware-old
f09f6099f33f66ec95c4b24c0ae41eebfb68875c
[ "MIT" ]
3
2017-08-03T07:40:08.000Z
2019-07-29T11:39:52.000Z
dev/scratch.py
alan-turing-institute/gateway-middleware-old
f09f6099f33f66ec95c4b24c0ae41eebfb68875c
[ "MIT" ]
58
2017-06-22T15:02:53.000Z
2018-01-08T16:06:01.000Z
dev/scratch.py
alan-turing-institute/gateway-middleware-old
f09f6099f33f66ec95c4b24c0ae41eebfb68875c
[ "MIT" ]
null
null
null
import json string = '{\"data\": {\"keys\": [\"Time(s)\", \"FLUID_VOLUME\"], \"FLUID_VOLUME\": [0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292, 0.0015524292,...
79.111111
651
0.668539
020fb3ceb70aaedc72c3f409855bcb34295cffa2
8,499
py
Python
sdk/python/pulumi_azure_nextgen/network/v20181201/interface_endpoint.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20181201/interface_endpoint.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20181201/interface_endpoint.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "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 from ... import _utilities, _tables from...
42.074257
415
0.644782
c912900ca03727ca647347123061b0ec8fb4ad7a
3,009
py
Python
bin/generate_sdk_schemas_documentation.py
eliaskousk/substra
00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8
[ "Apache-2.0" ]
119
2019-10-25T13:30:58.000Z
2021-06-02T12:13:04.000Z
bin/generate_sdk_schemas_documentation.py
eliaskousk/substra
00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8
[ "Apache-2.0" ]
182
2019-10-29T17:27:22.000Z
2021-06-02T11:54:34.000Z
bin/generate_sdk_schemas_documentation.py
eliaskousk/substra
00b9cb6e8adfa4cffacc5e1df7f9d64ce1f3dde8
[ "Apache-2.0" ]
22
2019-10-25T13:45:41.000Z
2021-05-11T20:55:22.000Z
import argparse import inspect from pathlib import Path import sys from substra.sdk import schemas, models local_dir = Path(__file__).parent schemas_list = [ schemas.DataSampleSpec, schemas.DatasetSpec, schemas.ObjectiveSpec, schemas.TesttupleSpec, schemas.TraintupleSpec, schemas.Aggregatetup...
26.394737
131
0.684613
3f7e8bac314ef13cff55dda56dcb5292546566d0
1,502
py
Python
code/models.py
lyakaap/image-feature-learning-pytorch
241ed10d4312fedfb23015f6a50cdca8f2b0ad9e
[ "MIT" ]
55
2018-01-20T10:50:28.000Z
2022-01-29T22:33:32.000Z
code/models.py
imyLove/image-feature-learning-pytorch
241ed10d4312fedfb23015f6a50cdca8f2b0ad9e
[ "MIT" ]
4
2018-06-10T08:50:47.000Z
2020-09-22T09:52:39.000Z
code/models.py
imyLove/image-feature-learning-pytorch
241ed10d4312fedfb23015f6a50cdca8f2b0ad9e
[ "MIT" ]
8
2018-05-07T13:25:20.000Z
2021-08-14T16:28:05.000Z
from torch import nn import torch.nn.functional as F class LeNetPP(nn.Module): def __init__(self, dim_hidden=2, num_classes=10): super(LeNetPP, self).__init__() self.num_classes = num_classes self.conv1_1 = nn.Conv2d(1, 32, kernel_size=5, padding=2) self.prelu1_1 = nn.PReLU() ...
38.512821
68
0.596538
3faecb20a7a81b166a1bef8cae9566515f82f150
287
py
Python
week6/exe1.py
mikealford/ktbyers
05f11dd0aa7f3b1a75013d923fadeac2bba6e083
[ "Apache-2.0" ]
null
null
null
week6/exe1.py
mikealford/ktbyers
05f11dd0aa7f3b1a75013d923fadeac2bba6e083
[ "Apache-2.0" ]
null
null
null
week6/exe1.py
mikealford/ktbyers
05f11dd0aa7f3b1a75013d923fadeac2bba6e083
[ "Apache-2.0" ]
null
null
null
from getpass import getpass from netmiko import Netmiko password = getpass() device = { 'host': '192.168.122.72', 'username': 'malford', 'password': password, 'device_type': 'cisco_ios' } net_connect = Netmiko(**device) output = net_connect.find_prompt() print(output)
15.105263
34
0.689895
9f7b6180c8affad3ec1d05de67c64d68a428686b
9,115
py
Python
src/kgextractiontoolbox/entitylinking/vocab_entity_linking.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
6
2021-09-17T09:49:59.000Z
2021-12-06T10:07:01.000Z
src/kgextractiontoolbox/entitylinking/vocab_entity_linking.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
null
null
null
src/kgextractiontoolbox/entitylinking/vocab_entity_linking.py
HermannKroll/KGExtractionToolbox
c17a55dd1fa098f5033b7765ed0f80d3abb44cb7
[ "MIT" ]
1
2021-09-18T17:56:12.000Z
2021-09-18T17:56:12.000Z
import logging import multiprocessing import os import shutil import tempfile from argparse import ArgumentParser from datetime import datetime from typing import List, Set from kgextractiontoolbox.backend.database import Session from kgextractiontoolbox.backend.models import BULK_INSERT_AFTER_K, Document, DocTaggedBy...
41.431818
120
0.68667
639a51f9031af876d8a61d1959cc456737211eb8
3,813
py
Python
plenum/test/replica_removing/test_replica_removing_after_view_change.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-19T23:44:56.000Z
2019-03-19T23:44:56.000Z
plenum/test/replica_removing/test_replica_removing_after_view_change.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
1
2019-03-20T14:57:22.000Z
2019-03-20T15:01:55.000Z
plenum/test/replica_removing/test_replica_removing_after_view_change.py
andkononykhin/plenum
28dc1719f4b7e80d31dafbadb38cfec4da949886
[ "Apache-2.0" ]
null
null
null
import pytest from plenum.test.node_catchup.test_config_ledger import start_stopped_node from plenum.test.pool_transactions.helper import disconnect_node_and_ensure_disconnected from plenum.test.replica_removing.helper import check_replica_removed from stp_core.loop.eventually import eventually from plenum.test.helper...
44.337209
90
0.676633
48102eb6fa172c56ed6a2c587ba2f9bc833d7fe4
570
py
Python
eval.py
y-vas/jict
8ad9590452455c2fc27adbb89a563fe6a3a0a0f1
[ "MIT" ]
null
null
null
eval.py
y-vas/jict
8ad9590452455c2fc27adbb89a563fe6a3a0a0f1
[ "MIT" ]
null
null
null
eval.py
y-vas/jict
8ad9590452455c2fc27adbb89a563fe6a3a0a0f1
[ "MIT" ]
null
null
null
from eval import eval_base from jict import jict from pymongo import MongoClient from jict import array # check base # jct = jict() # eval_base( jct ) # # # store env # jct = jict('eval/.env.example') # eval_base( jct ) # jct.save('eval/.env') # # # store json # jct = jict('eval/test.json') # eval_base( jct ) # jct.sa...
18.387097
76
0.650877
0b23022f136a4ed9aa38016a6258ba2a6777d68c
2,299
py
Python
assignments/Session4/publish_presentation_post.py
StephLaudou/USMB-DIM-ALGO-2018-PUBLIC
9ea0bdd42b08526b1cb357870d5f41471a4275a2
[ "MIT" ]
null
null
null
assignments/Session4/publish_presentation_post.py
StephLaudou/USMB-DIM-ALGO-2018-PUBLIC
9ea0bdd42b08526b1cb357870d5f41471a4275a2
[ "MIT" ]
null
null
null
assignments/Session4/publish_presentation_post.py
StephLaudou/USMB-DIM-ALGO-2018-PUBLIC
9ea0bdd42b08526b1cb357870d5f41471a4275a2
[ "MIT" ]
1
2018-12-22T22:34:41.000Z
2018-12-22T22:34:41.000Z
# -*- coding: utf-8 -*- """ Created on Tue Nov 27 13:20:33 2018 @author: derobest """ """ brief : Message routing using direct exchange type and a single exchange named caramail args : -s : send the user name to the monitoring program no args : post a message -r : create subscribers Return : Raises : """ im...
32.380282
137
0.731622
8101a63f664620d541fd079e78d4b35ade3f4b53
5,351
py
Python
catalyst/contrib/nn/optimizers/qhadamw.py
AndreySheka/catalyst
28dd7696fb4a1331c85dbeecc147bed6b46b411c
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/nn/optimizers/qhadamw.py
AndreySheka/catalyst
28dd7696fb4a1331c85dbeecc147bed6b46b411c
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/nn/optimizers/qhadamw.py
AndreySheka/catalyst
28dd7696fb4a1331c85dbeecc147bed6b46b411c
[ "Apache-2.0" ]
null
null
null
import torch from torch.optim.optimizer import Optimizer class QHAdamW(Optimizer): def __init__( self, params, lr=1e-3, betas=(0.995, 0.999), nus=(0.7, 1.0), weight_decay=0.0, eps=1e-8, ): r""" Combines the weight decay decoupling from Ad...
36.650685
79
0.506821
d487655558c2adb6b927d8dfc0ad3bfa9c0b2c7a
10,855
py
Python
tests/func/test_dvcfile.py
isidentical/dvc
e049c4bab125b309021b88acf4b4f6cb1f49c8cc
[ "Apache-2.0" ]
null
null
null
tests/func/test_dvcfile.py
isidentical/dvc
e049c4bab125b309021b88acf4b4f6cb1f49c8cc
[ "Apache-2.0" ]
62
2021-04-27T08:12:30.000Z
2022-03-31T08:13:54.000Z
tests/func/test_dvcfile.py
isidentical/dvc
e049c4bab125b309021b88acf4b4f6cb1f49c8cc
[ "Apache-2.0" ]
null
null
null
# pylint: disable=no-member import textwrap import pytest from dvc.dvcfile import ( PIPELINE_FILE, PIPELINE_LOCK, Dvcfile, ParametrizedDumpError, SingleStageFile, ) from dvc.stage.exceptions import ( StageFileDoesNotExistError, StageFileFormatError, ) from dvc.stage.loader import StageNotF...
28.049096
79
0.613174
a3807161d923d6cd1eee66d04aa27b51acc4af2a
11,377
py
Python
rasterio/plot.py
CloudNiner/rasterio
1837a77261bb6b13f918e368bc570effdefe59e7
[ "BSD-3-Clause" ]
1
2021-09-16T00:44:50.000Z
2021-09-16T00:44:50.000Z
rasterio/plot.py
neuroradiology/rasterio
d8f342e4e6d2a89dd17b488ec912d1e51a8f13f3
[ "BSD-3-Clause" ]
1
2021-02-23T17:02:52.000Z
2021-02-23T17:02:52.000Z
rasterio/plot.py
neuroradiology/rasterio
d8f342e4e6d2a89dd17b488ec912d1e51a8f13f3
[ "BSD-3-Clause" ]
null
null
null
"""Implementations of various common operations. Including `show()` for displaying an array or with matplotlib. Most can handle a numpy array or `rasterio.Band()`. Primarily supports `$ rio insp`. """ from __future__ import absolute_import from collections import OrderedDict import logging import warnings import nu...
33.659763
104
0.620726
0d18d4420f1fbf49842e27a9753bf7b5bdbdd86a
3,119
py
Python
Training/MOOC Tensorflow 2.0/BeiDa/class5/FASHION_CNN/p27_fashion_baseline.py
church06/Pythons
87271619abb2dd6398fbe08d746d4b03c54bcd4d
[ "MIT" ]
177
2020-05-16T00:22:37.000Z
2022-03-13T15:44:27.000Z
Training/MOOC Tensorflow 2.0/BeiDa/class5/FASHION_CNN/p27_fashion_baseline.py
church06/Pythons
87271619abb2dd6398fbe08d746d4b03c54bcd4d
[ "MIT" ]
1
2020-07-09T12:42:53.000Z
2020-07-09T12:42:53.000Z
Training/MOOC Tensorflow 2.0/BeiDa/class5/FASHION_CNN/p27_fashion_baseline.py
church06/Pythons
87271619abb2dd6398fbe08d746d4b03c54bcd4d
[ "MIT" ]
123
2020-05-15T18:31:49.000Z
2022-02-10T09:20:06.000Z
import tensorflow as tf import os import numpy as np from matplotlib import pyplot as plt from tensorflow.keras.layers import Conv2D, BatchNormalization, Activation, MaxPool2D, Dropout, Flatten, Dense from tensorflow.keras import Model np.set_printoptions(threshold=np.inf) fashion = tf.keras.datasets.fashion_mnist (x...
33.180851
115
0.632254
ad805c172a45a00ece05b28c5e040835012cb377
1,106
py
Python
libraw_cffi/tests/test_api.py
Julian/libraw-cffi
f39ea6ee544967cfd0caf8035cb1ed677a7e96a8
[ "MIT" ]
2
2020-01-02T16:56:50.000Z
2020-09-07T06:05:55.000Z
libraw_cffi/tests/test_api.py
Julian/libraw-cffi
f39ea6ee544967cfd0caf8035cb1ed677a7e96a8
[ "MIT" ]
2
2019-12-29T10:55:30.000Z
2019-12-31T12:53:43.000Z
libraw_cffi/tests/test_api.py
Julian/libraw-cffi
f39ea6ee544967cfd0caf8035cb1ed677a7e96a8
[ "MIT" ]
null
null
null
from unittest import TestCase from _raw import ffi, lib from libraw_cffi.tests import RADIOHEAD, RADIOHEAD_SIZE, Path import libraw_cffi class TestAPI(TestCase): def test_from_file(self): with RADIOHEAD.open() as file: raw = libraw_cffi.Raw.from_file(file) self.assertEqual( ...
29.891892
77
0.624774
4fa3b61abf374033667f0d1feef3fddcd0185e93
1,288
py
Python
hubbot/config.py
HubbeKing/Hubbot_Twisted
3398eadfdf11d15e3d92223992c29ac35822032c
[ "MIT" ]
2
2015-04-05T16:15:31.000Z
2015-07-23T06:25:24.000Z
hubbot/config.py
HubbeKing/Hubbot_Twisted
3398eadfdf11d15e3d92223992c29ac35822032c
[ "MIT" ]
8
2015-01-08T08:05:50.000Z
2017-02-03T09:57:24.000Z
hubbot/config.py
HubbeKing/Hubbot_Twisted
3398eadfdf11d15e3d92223992c29ac35822032c
[ "MIT" ]
null
null
null
import toml _required = ["address"] class Config(object): def __init__(self, config_file): self.config_file = config_file self._config_data = {} def read_config(self): try: config_data = toml.load(self.config_file) except Exception as e: raise ConfigEr...
28
115
0.649845
0e9fff3daf9efc1dc8bc0772bd3b43414c132845
2,047
py
Python
code/python/external/pi3d/util/String.py
rec/echomesh
be668971a687b141660fd2e5635d2fd598992a01
[ "MIT" ]
30
2015-02-18T14:07:00.000Z
2021-12-11T15:19:01.000Z
code/python/external/pi3d/util/String.py
silky/echomesh
2fe5a00a79c215b4aca4083e5252fcdcbd0507aa
[ "MIT" ]
16
2015-01-01T23:17:24.000Z
2015-04-18T23:49:27.000Z
code/python/external/pi3d/util/String.py
silky/echomesh
2fe5a00a79c215b4aca4083e5252fcdcbd0507aa
[ "MIT" ]
31
2015-03-11T20:04:07.000Z
2020-11-02T13:56:59.000Z
from pi3d import * from pi3d.Buffer import Buffer from pi3d.Shape import Shape from pi3d.util import Utility DOTS_PER_INCH = 72.0 DEFAULT_FONT_DOT_SIZE = 0.24 DEFAULT_FONT_SCALE = DEFAULT_FONT_DOT_SIZE / DOTS_PER_INCH class String(Shape): """Shape used for writing text on screen. It is a flat, one sided rectangual...
32.492063
99
0.574988
e9b209a11af187a3b6fbb0305bda7744f37cd450
7,589
py
Python
sc_gav/gav_searcher.py
Scott-Lau/sc-search-gav
dbe7961aeddc8ca961d76b3cbf8e09b428c7971d
[ "MIT" ]
1
2021-03-03T07:26:12.000Z
2021-03-03T07:26:12.000Z
sc_gav/gav_searcher.py
Scott-Lau/sc-search-gav
dbe7961aeddc8ca961d76b3cbf8e09b428c7971d
[ "MIT" ]
null
null
null
sc_gav/gav_searcher.py
Scott-Lau/sc-search-gav
dbe7961aeddc8ca961d76b3cbf8e09b428c7971d
[ "MIT" ]
null
null
null
# The MIT License (MIT) # # Copyright (c) 2021. Scott Lau # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, ...
45.172619
115
0.612202
1a774e5032ed023b67e26a796eab1d28d2b26e37
70
py
Python
views/__init__.py
andywar65/buildings
b772c052bd779ff9a33a31f345e9860203d55bf0
[ "BSD-2-Clause" ]
2
2021-02-04T14:13:44.000Z
2021-12-08T18:30:05.000Z
views/__init__.py
andywar65/buildings
b772c052bd779ff9a33a31f345e9860203d55bf0
[ "BSD-2-Clause" ]
null
null
null
views/__init__.py
andywar65/buildings
b772c052bd779ff9a33a31f345e9860203d55bf0
[ "BSD-2-Clause" ]
null
null
null
from .building import * from .station import * from .element import *
17.5
23
0.742857
1b6ab1c84524b98f157fbb358b70f2f2e10e85f3
511
py
Python
indico.py
y-tsutsu/cappuccino
11212565c064a8e65f5858d2ea457b5cd0389799
[ "MIT" ]
1
2017-08-15T11:47:37.000Z
2017-08-15T11:47:37.000Z
indico.py
y-tsutsu/cappuccino
11212565c064a8e65f5858d2ea457b5cd0389799
[ "MIT" ]
1
2021-06-02T10:32:27.000Z
2021-06-02T10:32:27.000Z
indico.py
y-tsutsu/cappuccino
11212565c064a8e65f5858d2ea457b5cd0389799
[ "MIT" ]
null
null
null
import os import shutil import indicoio indicoio.config.api_key = 'API Key' def filter_image(dirname): file = [y for y in [os.path.join(dirname, x) for x in os.listdir(dirname)] if os.path.isfile(y)] value = indicoio.content_filtering(file) filter_file = [x[0] for x in zip(file, value) if 0.5 < x[1]] ...
28.388889
100
0.681018
79e8f20992c3f5f5874f9970587b33fa278b5990
1,460
py
Python
challenges/2020/24-lobbyLayout/python/common.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
9
2020-12-06T23:18:30.000Z
2021-12-19T22:31:26.000Z
challenges/2020/24-lobbyLayout/python/common.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
null
null
null
challenges/2020/24-lobbyLayout/python/common.py
codemicro/adventOfCode
53574532ece1d19e5f5ba2f39e8e183c4c6225a1
[ "MIT" ]
3
2020-12-08T09:45:44.000Z
2020-12-15T19:20:20.000Z
from typing import List, Tuple, Dict def make_vector(loc: List[str], start: Tuple[int, int] = (0, 0)) -> Tuple[int, int]: r, s = start for ins in loc: if ins == "nw": r -= 1 elif ins == "ne": r -= 1 s += 1 elif ins == "w": s -= 1 ...
23.174603
87
0.478082
a289647d91619a6d21fdc0b2edb0649986795391
6,674
py
Python
nvme-metrics.py
mtds/node-exporter-textfile-collector-scripts
07a7193ee8582aa3469a5c6b1d1c1ba3cadf04e3
[ "Apache-2.0" ]
null
null
null
nvme-metrics.py
mtds/node-exporter-textfile-collector-scripts
07a7193ee8582aa3469a5c6b1d1c1ba3cadf04e3
[ "Apache-2.0" ]
null
null
null
nvme-metrics.py
mtds/node-exporter-textfile-collector-scripts
07a7193ee8582aa3469a5c6b1d1c1ba3cadf04e3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Description: Extract NVME device metrics from `nvme list` and `nvme-cli smartlog`. # Author: Georgi Valkov <georgi.t.valkov@gmail.com> import json import textwrap import subprocess import collections def run_nvme(*args): cmd = ["nvme", *args, "-o", "json"] out = subprocess.check_out...
42.240506
94
0.673659
3aaff8879416b545252e6c26dee0ee26e1f89737
43,740
py
Python
wandb/__init__.py
Yue1Harriet1Huang/client
a12d2142c074e438154cccbb45a5e7bd96a23c71
[ "Apache-2.0" ]
1
2020-08-20T14:02:47.000Z
2020-08-20T14:02:47.000Z
wandb/__init__.py
margaritaderaney/client
59ce012b513dad8cb88bf5fac4fd342945a96860
[ "Apache-2.0" ]
null
null
null
wandb/__init__.py
margaritaderaney/client
59ce012b513dad8cb88bf5fac4fd342945a96860
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Three possible modes: # 'cli': running from "wandb" command # 'run': we're a script launched by "wandb run" # 'dryrun': we're a script not launched by "wandb run" from __future__ import absolute_import, print_function __author__ = """Chris Van Pelt""" __email__ = 'vanpelt@wandb....
38.368421
211
0.650617
2ba585380120d67e9b5e8c312961f4abec458113
1,924
py
Python
test/functional/rpc_help.py
xiaolin1579/vektorcoin
6e33506d8fba8883f401a89af0b7a76d44fb8bed
[ "MIT" ]
1
2021-02-16T10:45:46.000Z
2021-02-16T10:45:46.000Z
test/functional/rpc_help.py
xiaolin1579/vektorcoin
6e33506d8fba8883f401a89af0b7a76d44fb8bed
[ "MIT" ]
null
null
null
test/functional/rpc_help.py
xiaolin1579/vektorcoin
6e33506d8fba8883f401a89af0b7a76d44fb8bed
[ "MIT" ]
1
2021-02-09T14:29:27.000Z
2021-02-09T14:29:27.000Z
#!/usr/bin/env python3 # Copyright (c) 2018 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 RPC help output.""" from test_framework.test_framework import VEKTORCOINTestFramework from test_framew...
33.172414
123
0.650728
f7795d6b67d4a221d8baa35d780d6c8dc4f3219e
1,431
py
Python
demo/classification/mushroom/run_demo_mushroom.py
DavyMorgan/xlearn
e03f08ab22779ce13d9b08ac895ef5ba18fb16ef
[ "Apache-2.0" ]
3,144
2017-11-06T08:48:13.000Z
2022-03-20T00:35:50.000Z
demo/classification/mushroom/run_demo_mushroom.py
DavyMorgan/xlearn
e03f08ab22779ce13d9b08ac895ef5ba18fb16ef
[ "Apache-2.0" ]
325
2017-11-18T12:59:39.000Z
2022-02-24T07:19:03.000Z
demo/classification/mushroom/run_demo_mushroom.py
DavyMorgan/xlearn
e03f08ab22779ce13d9b08ac895ef5ba18fb16ef
[ "Apache-2.0" ]
612
2017-11-09T14:19:17.000Z
2022-01-24T10:17:49.000Z
# Copyright (c) 2018 by contributors. 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...
34.071429
74
0.726066
0ebf208c72b278b9255c1cfa8d11861815926f1d
771
py
Python
0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py
Rmolimock/holbertonschool-higher_level_programming
cf0421cbb6463b3960dc581badf7d4bbe1622b7d
[ "MIT" ]
1
2019-05-21T09:34:41.000Z
2019-05-21T09:34:41.000Z
0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py
Rmolimock/holbertonschool-higher_level_programming
cf0421cbb6463b3960dc581badf7d4bbe1622b7d
[ "MIT" ]
null
null
null
0x0F-python-object_relational_mapping/14-model_city_fetch_by_state.py
Rmolimock/holbertonschool-higher_level_programming
cf0421cbb6463b3960dc581badf7d4bbe1622b7d
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' change the name value of a row in states ''' import sys from model_city import City from model_state import Base, State from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker if __name__ == '__main__': username = sys.argv[1] psw = sys.argv[2] db_name = sys.ar...
30.84
79
0.609598
014aa3363927b754e78a51ec6392273667009f61
4,450
py
Python
test/test_db.py
9999years/license
3650dc776222288042e9ae5f45e1cf187eda7524
[ "Apache-2.0", "BSD-2-Clause", "MIT", "Apache-1.0", "BSD-3-Clause" ]
19
2015-07-20T13:40:16.000Z
2021-04-10T01:21:20.000Z
test/test_db.py
9999years/license
3650dc776222288042e9ae5f45e1cf187eda7524
[ "Apache-2.0", "BSD-2-Clause", "MIT", "Apache-1.0", "BSD-3-Clause" ]
7
2017-08-18T09:13:43.000Z
2020-10-07T05:56:57.000Z
test/test_db.py
9999years/license
3650dc776222288042e9ae5f45e1cf187eda7524
[ "Apache-2.0", "BSD-2-Clause", "MIT", "Apache-1.0", "BSD-3-Clause" ]
10
2015-09-30T15:13:14.000Z
2021-12-08T15:05:12.000Z
import pytest import license from license import base from license.licenses import MITLicense KEYS = ('rpm', 'name', 'python', 'url') class TestRegisterFind(object): ''' Test register() and find() ''' @classmethod def teardown_class(cls): del license.core._db['FOO'] def test_regis...
28.525641
98
0.62809
7f53b63c6f7da0f935d82e1c65817f67ceca9357
367
py
Python
mathgenerator/funcs/basic_math/division.py
matkoniecz/mathgenerator
43c49c925253e569c2be56f9ceb35ec83844bbb0
[ "MIT" ]
null
null
null
mathgenerator/funcs/basic_math/division.py
matkoniecz/mathgenerator
43c49c925253e569c2be56f9ceb35ec83844bbb0
[ "MIT" ]
null
null
null
mathgenerator/funcs/basic_math/division.py
matkoniecz/mathgenerator
43c49c925253e569c2be56f9ceb35ec83844bbb0
[ "MIT" ]
null
null
null
from .__init__ import * def divisionToIntFunc(maxA=25, maxB=25): a = random.randint(1, maxA) b = random.randint(1, maxB) divisor = a * b dividend = random.choice([a, b]) problem = f"{divisor}/{dividend}=" solution = int(divisor / dividend) return problem, solution division = Generator(...
21.588235
67
0.640327
462c33555ebc2d07ec5771099f819bbc2d675670
13,043
py
Python
src/dispatch/service/planner_service.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
11
2021-05-04T03:15:20.000Z
2022-02-16T07:44:16.000Z
src/dispatch/service/planner_service.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
4
2021-06-21T11:12:37.000Z
2021-06-29T11:54:18.000Z
src/dispatch/service/planner_service.py
alibaba/easydispatch
2cf32a374d12c804ff396f90b789c2a838003c5d
[ "Apache-2.0" ]
2
2021-05-05T00:42:44.000Z
2021-05-10T12:51:58.000Z
import threading import redis from dispatch.plugins.kandbox_planner.env.env_enums import EnvRunModeType import json import logging from builtins import KeyError from typing import Optional, List from fastapi.encoders import jsonable_encoder # from prompt_toolkit.log import logger from dispatch.config import REDIS_HOS...
36.844633
147
0.711799
4942b83f028a5746713b6d146dd0b18ef104db83
575
py
Python
pyeccodes/defs/grib1/localConcepts/ekmi/units_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/grib1/localConcepts/ekmi/units_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/grib1/localConcepts/ekmi/units_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): def wrapped(h): table2Version = h.get_l('table2Version') indicatorOfParameter = h.get_l('indicatorOfParameter') if table2Version == 1 and indicatorOfParameter == 224: return 'J kg**-1' if table2Version == 1 and indicatorO...
23.958333
62
0.596522
09c4230e2f46670a0545f4d4cb2282e664830445
5,283
py
Python
templates.py
binarymachines/grip
2cc94260b4db69cbf8e68ed2cda15edcf41017c8
[ "MIT" ]
null
null
null
templates.py
binarymachines/grip
2cc94260b4db69cbf8e68ed2cda15edcf41017c8
[ "MIT" ]
null
null
null
templates.py
binarymachines/grip
2cc94260b4db69cbf8e68ed2cda15edcf41017c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python GQL_QUERY_TEMPLATE = """ type Query { {% for qspec in query_specs -%} {% if qspec.has_args -%} {{ qspec.name }}({{ qspec.arg_string }}): {{ qspec.return_type }} {% else -%} {{ qspec.name }}: {{ qspec.return_type }} {% endif -%} {%- endfor %} } """ GQL_MUTATION_TEMP...
27.092308
116
0.692599
830d08e31f471f80e942ec3a0dba1e124fc0a480
1,084
py
Python
movie/makeactorsnames.py
ShenDezhou/GCN
6ec2c741a8d7a9c9bd18e64a99cb48c4c0ac5037
[ "MIT" ]
null
null
null
movie/makeactorsnames.py
ShenDezhou/GCN
6ec2c741a8d7a9c9bd18e64a99cb48c4c0ac5037
[ "MIT" ]
null
null
null
movie/makeactorsnames.py
ShenDezhou/GCN
6ec2c741a8d7a9c9bd18e64a99cb48c4c0ac5037
[ "MIT" ]
null
null
null
import codecs with codecs.open('../weibo_dic/cbooo_people.utf8', 'r', encoding='utf8') as fd: with codecs.open('../plain/movie_actors.utf8', 'r', encoding='utf8') as fa: with codecs.open('../plain/movie_actornames.utf8', 'w', encoding='utf8') as fs: with codecs.open('../plain/actor_dic.utf8', '...
38.714286
87
0.491697
1c153fc277fdfe7e18ad917785142ed977a36c1e
3,015
py
Python
research/object_detection/builders/graph_rewriter_builder_tf1_test.py
hjkim-haga/TF-OD-API
22ac477ff4dfb93fe7a32c94b5f0b1e74330902b
[ "Apache-2.0" ]
1
2021-05-22T12:50:50.000Z
2021-05-22T12:50:50.000Z
object_detection/builders/graph_rewriter_builder_tf1_test.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
object_detection/builders/graph_rewriter_builder_tf1_test.py
DemonDamon/mask-detection-based-on-tf2odapi
192ae544169c1230c21141c033800aa1bd94e9b6
[ "MIT" ]
null
null
null
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
44.338235
101
0.704478
0ff42145bc88d11a251a31eb134598833d4a26c9
20,374
py
Python
traits_futures/traits_executor.py
enthought/traits-futures
4b20376d95e83a76d77ce10e024ec4527c27d5d0
[ "BSD-3-Clause" ]
10
2019-02-08T15:52:18.000Z
2021-12-14T03:13:41.000Z
traits_futures/traits_executor.py
enthought/traits-futures
4b20376d95e83a76d77ce10e024ec4527c27d5d0
[ "BSD-3-Clause" ]
244
2019-02-05T17:18:15.000Z
2022-03-12T10:55:20.000Z
traits_futures/traits_executor.py
enthought/traits-futures
4b20376d95e83a76d77ce10e024ec4527c27d5d0
[ "BSD-3-Clause" ]
1
2021-07-06T07:18:21.000Z
2021-07-06T07:18:21.000Z
# (C) Copyright 2018-2021 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
34.127303
79
0.627712