hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
a15c62aa24c3ca1d19ac947b053c5ab14b3d0158
9,443
py
Python
tools/data/textdet/totaltext_converter.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
1
2021-04-19T02:26:57.000Z
2021-04-19T02:26:57.000Z
tools/data/textdet/totaltext_converter.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
null
null
null
tools/data/textdet/totaltext_converter.py
jeffreykuang/mmocr-1
b17304edeb493b0a4d7224c23d23b952350d0db5
[ "Apache-2.0" ]
1
2021-04-16T02:01:26.000Z
2021-04-16T02:01:26.000Z
import argparse import glob import os.path as osp from functools import partial import cv2 import mmcv import numpy as np import scipy.io as scio from shapely.geometry import Polygon from tools.data_converter.common import convert_annotations, is_not_png from mmocr.utils import drop_orientation def collect_files(im...
30.169329
78
0.623954
bd0e11cadf5d28d8bfe9be20c6eba6032ff2acb5
1,029
py
Python
src/installer/src/tortuga/os_objects/rhel/tortugawsManager.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/os_objects/rhel/tortugawsManager.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/os_objects/rhel/tortugawsManager.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa 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...
31.181818
74
0.726919
5f1c5d19d72d041a2305af759a03d315b5f62f36
122
py
Python
tredis/connection.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
22
2015-11-16T18:24:23.000Z
2019-01-22T06:41:51.000Z
tredis/connection.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
8
2016-01-26T21:55:15.000Z
2020-11-17T18:00:13.000Z
tredis/connection.py
gmr/tredis
2e91c6a58a35460be0525c51ac6a98fde3b506ad
[ "BSD-3-Clause" ]
9
2015-11-28T19:32:14.000Z
2020-10-19T06:47:26.000Z
"""Redis Connection Commands Mixin""" class ConnectionMixin(object): """Redis Connection Commands Mixin""" pass
17.428571
41
0.704918
7e2f4adaf323a63b7966001429079e9133687a52
711
py
Python
CH01/1.4.py
MonoHaru/Deep-Learning-from-Scratch_2
e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3
[ "MIT" ]
null
null
null
CH01/1.4.py
MonoHaru/Deep-Learning-from-Scratch_2
e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3
[ "MIT" ]
null
null
null
CH01/1.4.py
MonoHaru/Deep-Learning-from-Scratch_2
e7dd6e7c82a34fadfa17331c2934f5f9ae2c3ec3
[ "MIT" ]
null
null
null
# 1.4 신경망으로 문제를 풀다 # 1.4.1 스파이럴 데이터셋 # import sys # sys.path.append('..') from dataset import spiral import matplotlib.pyplot as plt x, t = spiral.load_data() print('x', x.shape) # (300, 2) print('t', t.shape) # (300, 3) # 1.4.2 신경망 구현 # import sys # sys.path.append('..') import numpy as np f...
22.21875
59
0.642757
301b602bcc727868497a3197d018ff81ef24787a
93
py
Python
Chapter 1/1.8.6.py
Netmistro/Py-Practical-Problems
d4446ab6cda2def2fa94939f349ff27285243f25
[ "MIT" ]
null
null
null
Chapter 1/1.8.6.py
Netmistro/Py-Practical-Problems
d4446ab6cda2def2fa94939f349ff27285243f25
[ "MIT" ]
null
null
null
Chapter 1/1.8.6.py
Netmistro/Py-Practical-Problems
d4446ab6cda2def2fa94939f349ff27285243f25
[ "MIT" ]
null
null
null
temp = eval(input('Enter a number: ')) print( temp, temp*2,temp*3, temp*4, temp*5 ,sep='---')
46.5
54
0.612903
57739a6054dad59ecdc1e86f15f862621740e1ab
5,226
py
Python
Module5/assignment5.py
vishalnalwa/DAT210x-master---Old
0cbe91636285fd55059b5059cb131811ea207850
[ "MIT" ]
null
null
null
Module5/assignment5.py
vishalnalwa/DAT210x-master---Old
0cbe91636285fd55059b5059cb131811ea207850
[ "MIT" ]
null
null
null
Module5/assignment5.py
vishalnalwa/DAT210x-master---Old
0cbe91636285fd55059b5059cb131811ea207850
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib from sklearn.cross_validation import train_test_split from sklearn import preprocessing from sklearn.decomposition import PCA matplotlib.style.use('ggplot') # Look Pretty def plotDecisionBoundary(model, X, y): fig = plt.figure...
30.208092
92
0.70819
c3bd1a48f102dd672839f862ea491f1070194be0
4,714
py
Python
tests/dbt/test_dbt.py
lucas-houles/soda-sql
c2862ba8f5fe9a2336848eb270b224b934f526f8
[ "Apache-2.0" ]
1
2022-02-25T01:31:12.000Z
2022-02-25T01:31:12.000Z
tests/dbt/test_dbt.py
lucas-houles/soda-sql
c2862ba8f5fe9a2336848eb270b224b934f526f8
[ "Apache-2.0" ]
null
null
null
tests/dbt/test_dbt.py
lucas-houles/soda-sql
c2862ba8f5fe9a2336848eb270b224b934f526f8
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import pytest from dbt.contracts.results import TestStatus from sodasql import dbt as soda_dbt @pytest.mark.parametrize("unique_id", ["model.soda.stg_soda__scan"]) def test_parse_manifest_contains_model_unique_ids( unique_id: str, dbt_manifest: dict ) -> None: """Validate ...
31.426667
103
0.728681
bdb6b6e67931c58b63647f614d292c0fe381067c
4,704
py
Python
keras_cv/layers/preprocessing/mix_up.py
kartik4949/keras-cv
4c300f564d8ec99cd1351c445e1803ee6664915a
[ "Apache-2.0" ]
null
null
null
keras_cv/layers/preprocessing/mix_up.py
kartik4949/keras-cv
4c300f564d8ec99cd1351c445e1803ee6664915a
[ "Apache-2.0" ]
null
null
null
keras_cv/layers/preprocessing/mix_up.py
kartik4949/keras-cv
4c300f564d8ec99cd1351c445e1803ee6664915a
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The KerasCV 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
40.904348
86
0.661565
1fc80d43681b7b67eb3d7a1ea556d886f32f86b3
864
py
Python
apps/api/views.py
whytheplatypus/sharemyhealth
79ac694686ebd7a9a121741e473afbd35f25cea5
[ "Apache-2.0" ]
null
null
null
apps/api/views.py
whytheplatypus/sharemyhealth
79ac694686ebd7a9a121741e473afbd35f25cea5
[ "Apache-2.0" ]
null
null
null
apps/api/views.py
whytheplatypus/sharemyhealth
79ac694686ebd7a9a121741e473afbd35f25cea5
[ "Apache-2.0" ]
null
null
null
from collections import OrderedDict # from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import ( renderers, ) from rest_framework_xml.renderers import XMLRenderer import os class CDAExample(APIView): # authentication...
28.8
82
0.68287
93a26e40ca6a35b864578bafb3e63d75c619444d
71
py
Python
tests/plugins/plugin2.py
zoni/octo
f5b01ce4ce3443d31fb28bfc08f6b8da3452e2dd
[ "BSD-2-Clause" ]
null
null
null
tests/plugins/plugin2.py
zoni/octo
f5b01ce4ce3443d31fb28bfc08f6b8da3452e2dd
[ "BSD-2-Clause" ]
null
null
null
tests/plugins/plugin2.py
zoni/octo
f5b01ce4ce3443d31fb28bfc08f6b8da3452e2dd
[ "BSD-2-Clause" ]
1
2020-03-08T06:20:13.000Z
2020-03-08T06:20:13.000Z
from octo.plugin import OctoPlugin class PluginTwo(OctoPlugin): pass
14.2
34
0.816901
8d469137f35326a0c9db8bcf9dccb2cb54dc7016
507
py
Python
api/healthcheck/migrations/0001_initial.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/healthcheck/migrations/0001_initial.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
api/healthcheck/migrations/0001_initial.py
cad106uk/market-access-api
a357c33bbec93408b193e598a5628634126e9e99
[ "MIT" ]
null
null
null
# Generated by Django 2.2.10 on 2020-03-16 23:57 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='HealthCheck', fields=[ ('id', models.AutoF...
23.045455
114
0.591716
6fee0ba454e19e33e78bfacb657a66c0080e6a0a
2,776
py
Python
ldapauthkeys/config.py
Conan-Kudo/openssh-ldap-authkeys
62188a5bcbd5e766d7b132e2550074ab147f6dee
[ "MIT" ]
null
null
null
ldapauthkeys/config.py
Conan-Kudo/openssh-ldap-authkeys
62188a5bcbd5e766d7b132e2550074ab147f6dee
[ "MIT" ]
null
null
null
ldapauthkeys/config.py
Conan-Kudo/openssh-ldap-authkeys
62188a5bcbd5e766d7b132e2550074ab147f6dee
[ "MIT" ]
null
null
null
import yaml from ldapauthkeys.util import * _cached_config = None config_paths = [ './olak.yml', '/etc/openssh-ldap-authkeys/olak.yml', ] default_config = { 'ldap': { 'use_dns_srv': False, 'filters': { 'user': '(&(objectClass=posixAccount)(sshPublicKey=*))', 'group...
26.951456
117
0.541066
52355a54d5c6c7a441aa8b58fb180fecf6a3ffb1
1,422
py
Python
day12/day12.py
chrisb87/advent_of_code_2016
668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8
[ "Unlicense" ]
1
2016-12-07T20:28:12.000Z
2016-12-07T20:28:12.000Z
day12/day12.py
chrisb87/advent_of_code_2016
668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8
[ "Unlicense" ]
null
null
null
day12/day12.py
chrisb87/advent_of_code_2016
668a7c5e3f2aac036dcf0091ca62a47cb0c54ba8
[ "Unlicense" ]
null
null
null
import re from collections import defaultdict import pdb class Computer(object): DIGIT = re.compile(r"\d+") def __init__(self): self.registers = defaultdict(lambda: 0) def run(self, instructions): self.cached = [] for instruction in instructions: split = re.split('\s+', instruction.strip()) command_n...
21.223881
85
0.670183
298f8c6ed28051fc9dd684b33eb5763b61ad0b78
1,377
py
Python
src/olympia/lib/safe_xml.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
10
2018-08-16T04:55:06.000Z
2022-01-08T16:09:39.000Z
src/olympia/lib/safe_xml.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1,398
2020-10-08T06:32:26.000Z
2022-03-31T12:06:24.000Z
src/olympia/lib/safe_xml.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
12
2018-08-01T16:46:09.000Z
2022-01-08T16:09:46.000Z
""" Monkey patch and defuse all stdlib xml packages and lxml. """ import sys patched_modules = ( 'lxml', 'ElementTree', 'minidom', 'pulldom', 'rdflib', 'sax', 'expatbuilder', 'expatreader', 'xmlrpc') if any(module in sys.modules for module in patched_modules): existing_modules = [ (module, module...
27.54
89
0.741467
324c6c134adf757fad231bf2294b9fbc686f2ead
2,868
py
Python
deezloader/utils.py
phanirithvij/deezloader
24fd8685d731fa44e63565379c1333f70e6942dd
[ "Apache-2.0" ]
null
null
null
deezloader/utils.py
phanirithvij/deezloader
24fd8685d731fa44e63565379c1333f70e6942dd
[ "Apache-2.0" ]
null
null
null
deezloader/utils.py
phanirithvij/deezloader
24fd8685d731fa44e63565379c1333f70e6942dd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 from mutagen import File from Crypto.Hash import MD5 from binascii import a2b_hex, b2a_hex from Crypto.Cipher import AES, Blowfish from mutagen.id3 import ID3, APIC, USLT, _util from mutagen.flac import FLAC, Picture, FLACNoHeaderError def md5hex(data): h = MD5.new() h.update(data) retu...
29.56701
97
0.566248
9cbee50fbd94d4d025ba724aaa9803a36029c130
159,938
py
Python
tests/test_octodns_record.py
PeterDaveHello/octodns
c3b68ce4c66d5a8319c6f998538e7e849aa2ae4e
[ "MIT" ]
null
null
null
tests/test_octodns_record.py
PeterDaveHello/octodns
c3b68ce4c66d5a8319c6f998538e7e849aa2ae4e
[ "MIT" ]
34
2020-12-01T21:24:10.000Z
2021-09-20T21:12:48.000Z
tests/test_octodns_record.py
PeterDaveHello/octodns
c3b68ce4c66d5a8319c6f998538e7e849aa2ae4e
[ "MIT" ]
1
2021-08-10T16:54:50.000Z
2021-08-10T16:54:50.000Z
# # # from __future__ import absolute_import, division, print_function, \ unicode_literals from six import text_type from unittest import TestCase from octodns.record import ARecord, AaaaRecord, AliasRecord, CaaRecord, \ CaaValue, CnameRecord, DnameRecord, Create, Delete, GeoValue, LocRecord, \ LocValue,...
32.963314
79
0.41166
8cbad81735c7293ccb9c543c63d7ead0cf3cd7b9
1,496
py
Python
crds/__init__.py
nden/crds
b72f14cf07531ca70b61daa6b58e762e5899afa4
[ "BSD-3-Clause" ]
null
null
null
crds/__init__.py
nden/crds
b72f14cf07531ca70b61daa6b58e762e5899afa4
[ "BSD-3-Clause" ]
null
null
null
crds/__init__.py
nden/crds
b72f14cf07531ca70b61daa6b58e762e5899afa4
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function from __future__ import division from __future__ import absolute_import # The "crds" __version__ defined here should also reflect the behavior of # crds.client __version__ = "7.0.9" __rationale__ = "jwst-build-7-development" # ====================================================...
33.244444
102
0.596257
056d76aa8cc89f633f0d492bdab293c74171b7b8
12,608
py
Python
pyscf/ccn/util.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
2
2021-06-30T22:33:35.000Z
2021-11-22T18:02:36.000Z
pyscf/ccn/util.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
36
2018-08-22T19:44:03.000Z
2020-05-09T10:02:36.000Z
pyscf/ccn/util.py
robert-anderson/pyscf
cdc56e168cb15f47e8cdc791a92d689fa9b655af
[ "Apache-2.0" ]
4
2018-02-14T16:28:28.000Z
2019-08-12T16:40:30.000Z
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
29.185185
125
0.573683
26abe257fb63137524360ae73994846fbb4f1d04
7,037
py
Python
ogc_edr_lib/ogc_api_collection_data_by_location.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
ogc_edr_lib/ogc_api_collection_data_by_location.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
ogc_edr_lib/ogc_api_collection_data_by_location.py
eugenegesdisc/gmuedr
e8b3e5c7b8d18421d875f0f6f778a37a6d8ec3fd
[ "MIT" ]
null
null
null
from openapi_server.models.edr_feature_collection_geo_json import ( EdrFeatureCollectionGeoJSON ) from multidict import CIMultiDict from typing import Tuple, Union from aiohttp import web from urllib.parse import urlparse, parse_qs from ogc_edr_lib.l10n import LocaleTranslator from ogc_edr_lib.ogc_api import OgcApi...
41.394118
80
0.628677
c946b0106caaf24a9fe2bb306acba7d4aea7fb50
6,585
py
Python
lite/examples/speech_commands/ml/export/convert_keras_to_quantized.py
bookbnnbnn/TFLite_example
9c0585e7977ff4344b68ed8d4cc365da734846b4
[ "Apache-2.0" ]
null
null
null
lite/examples/speech_commands/ml/export/convert_keras_to_quantized.py
bookbnnbnn/TFLite_example
9c0585e7977ff4344b68ed8d4cc365da734846b4
[ "Apache-2.0" ]
4
2021-06-08T21:40:57.000Z
2022-03-12T00:32:50.000Z
lite/examples/speech_commands/ml/export/convert_keras_to_quantized.py
bookbnnbnn/TFLite_example
9c0585e7977ff4344b68ed8d4cc365da734846b4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 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...
36.583333
112
0.719514
f1da7bf6874831359678c561111f9758f47d6ba0
3,423
py
Python
motor_controller/src/refactored/src/motioncontroller.py
maf2418/Perceptbot
21947a89703547f4c5d948a0f20ca2edf418954e
[ "MIT" ]
2
2019-08-12T18:55:23.000Z
2019-11-07T22:56:06.000Z
motor_controller/src/refactored/src/motioncontroller.py
maf2418/Perceptbot
21947a89703547f4c5d948a0f20ca2edf418954e
[ "MIT" ]
null
null
null
motor_controller/src/refactored/src/motioncontroller.py
maf2418/Perceptbot
21947a89703547f4c5d948a0f20ca2edf418954e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from mover import Mover from drivechain import TwoWheelDriveChain from utilities import * class MotionController: ''' MotionController class. Takes a DriveChain object in its constructor, which ''' def __init__(self, drivechain, single_mode=False, path=""): self.pa...
39.344828
104
0.585159
a3aee21b75c544e2c2d40b045041f3885be95da7
38,545
py
Python
pytext/config/config_adapter.py
digitalsatori/pytext
d11fd45fecd1741262ebe3cb5cfb605fb20fa161
[ "BSD-3-Clause" ]
null
null
null
pytext/config/config_adapter.py
digitalsatori/pytext
d11fd45fecd1741262ebe3cb5cfb605fb20fa161
[ "BSD-3-Clause" ]
null
null
null
pytext/config/config_adapter.py
digitalsatori/pytext
d11fd45fecd1741262ebe3cb5cfb605fb20fa161
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from pytext.common.utils import eprint from .pytext_config import LATEST_VERSION, PyTextConfig ADAPTERS = {} DOWNGRADE_ADAPTERS = {} NOT_THERE = (None, None, None) def register_adapter(from_version): def decorator(fn):...
33.401213
96
0.673239
15c231bf36d10239c09bc908194bc1f2833f8a01
3,315
py
Python
data/states/load_screen.py
paragon520/DeepQlearningMario
dc0cb70c01db6807bfbc2cbef54fdfded1edb284
[ "MIT" ]
10
2018-02-22T07:22:33.000Z
2021-04-01T13:28:34.000Z
data/states/load_screen.py
paragon520/DeepQlearningMario
dc0cb70c01db6807bfbc2cbef54fdfded1edb284
[ "MIT" ]
null
null
null
data/states/load_screen.py
paragon520/DeepQlearningMario
dc0cb70c01db6807bfbc2cbef54fdfded1edb284
[ "MIT" ]
10
2018-02-22T10:35:45.000Z
2021-04-01T13:28:53.000Z
__author__ = 'justinarmstrong' from .. import setup, tools from .. import constants as c from .. import game_sound from ..components import info class LoadScreen(tools._State): def __init__(self): tools._State.__init__(self) def startup(self, current_time, persist): self.start_time = current...
26.52
74
0.612066
795c082501d6d40077fd1e033a88349521b68f1b
8,716
py
Python
Python Basics.py
Supertatortots/Python-Practice
a08db0ddbd90a4184c89dbbdc232d55e1d151a32
[ "MIT" ]
null
null
null
Python Basics.py
Supertatortots/Python-Practice
a08db0ddbd90a4184c89dbbdc232d55e1d151a32
[ "MIT" ]
null
null
null
Python Basics.py
Supertatortots/Python-Practice
a08db0ddbd90a4184c89dbbdc232d55e1d151a32
[ "MIT" ]
null
null
null
# Comments in Python use the '#' symbol ''' Multi-line comments are denoted via three single or three double quotes And are ended with the matching set of three single or double quotes ''' ''' Let's start off by defining some variables In Python, there's no `let`, `const`, or `var` keyword to declare variables Python...
38.061135
101
0.717646
d34be0055b268b4d055cdde26758cc8cf85e7d6b
20,275
py
Python
yfinance/base.py
lucashadfield/yfinance
3f0c18e7403ce559dfca89f09fd1a44590938c18
[ "Apache-2.0" ]
null
null
null
yfinance/base.py
lucashadfield/yfinance
3f0c18e7403ce559dfca89f09fd1a44590938c18
[ "Apache-2.0" ]
null
null
null
yfinance/base.py
lucashadfield/yfinance
3f0c18e7403ce559dfca89f09fd1a44590938c18
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Yahoo! Finance market data downloader (+fix for Pandas Datareader) # https://github.com/ranaroussi/yfinance # # Copyright 2017-2019 Ran Aroussi # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the ...
36.270125
108
0.557435
532948c24c19ff7a31ab691014f8541bc7bf5828
1,847
py
Python
motor/motor_tornado.py
tusharvickey1999/motor
64fbc8313b5983c78ff55de9fa35f64c8fc659a2
[ "Apache-2.0" ]
null
null
null
motor/motor_tornado.py
tusharvickey1999/motor
64fbc8313b5983c78ff55de9fa35f64c8fc659a2
[ "Apache-2.0" ]
null
null
null
motor/motor_tornado.py
tusharvickey1999/motor
64fbc8313b5983c78ff55de9fa35f64c8fc659a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2011-2015 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
28.415385
85
0.824039
15a6941f3db85b6a5f923367ecf24cb96c563162
1,530
py
Python
scripts/CompressedLeafFactory.py
krejov100/DepthCodec
fced6980bbdb85e28fba19ee722b6955b4bed4dc
[ "Apache-2.0" ]
2
2019-12-09T22:07:33.000Z
2022-03-06T10:41:16.000Z
scripts/CompressedLeafFactory.py
krejov100/DepthCodec
fced6980bbdb85e28fba19ee722b6955b4bed4dc
[ "Apache-2.0" ]
25
2018-08-13T22:28:43.000Z
2018-09-18T16:30:20.000Z
scripts/CompressedLeafFactory.py
krejov100/DepthCodec
fced6980bbdb85e28fba19ee722b6955b4bed4dc
[ "Apache-2.0" ]
null
null
null
from bitstream import BitStream from zope.interface import implementer from DepthFunctions import get_best_function from FunctionLeaf import FunctionLeaf from QuadTreeNode import QuadTreeNode from Tree import LeafDataFactory # TODO Comment @implementer(LeafDataFactory) class CompressedLeafFactory: def __init__(s...
34
90
0.680392
ced6f756738e816920026e573d46e0b27fab44e7
2,433
py
Python
tests/cpd_als_benchmark_test.py
LinjianMa/AutoHOOT
5f9b790afb15cf4ae97cd0929a1db65d7c0347b3
[ "Apache-2.0" ]
13
2020-11-16T03:35:50.000Z
2022-03-02T05:20:16.000Z
tests/cpd_als_benchmark_test.py
LinjianMa/AutoHOOT
5f9b790afb15cf4ae97cd0929a1db65d7c0347b3
[ "Apache-2.0" ]
19
2020-10-02T00:52:08.000Z
2021-09-10T19:34:29.000Z
tests/cpd_als_benchmark_test.py
LinjianMa/AutoHOOT
5f9b790afb15cf4ae97cd0929a1db65d7c0347b3
[ "Apache-2.0" ]
1
2020-10-10T18:26:00.000Z
2020-10-10T18:26:00.000Z
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.878378
74
0.66379
9cf5b0135e5056067cbf89c6fccb1e20eed701f8
3,577
py
Python
S4/S4 Library/simulation/sims/university/university_constraint_helper.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/sims/university/university_constraint_helper.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/sims/university/university_constraint_helper.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from interactions import ParticipantType from sims4.resources import Types from sims4.tuning.tunable import TunableEnumEntry, TunableReference, HasTunableSingletonFactory, TunableSet, AutoFactoryInit, TunableEnumWithFilter, TunableMapping from singletons import EMPTY_SET from tag import Tag import services import sims4...
61.672414
356
0.747833
f83c0ea12063ef2f4f18b095a89ac5be5e675c52
53
py
Python
python_ml/Ensemble/__init__.py
fnw/python_ml
9abbfadc3776cfbd22ed551cf59772aba515292e
[ "BSD-2-Clause" ]
3
2021-03-28T19:33:29.000Z
2021-10-07T03:07:12.000Z
python_ml/Ensemble/__init__.py
fnw/python_ml
9abbfadc3776cfbd22ed551cf59772aba515292e
[ "BSD-2-Clause" ]
null
null
null
python_ml/Ensemble/__init__.py
fnw/python_ml
9abbfadc3776cfbd22ed551cf59772aba515292e
[ "BSD-2-Clause" ]
null
null
null
#from Combination import * #from Generation import *
17.666667
26
0.773585
d2413d90729c8f26a8299497230e5e4b6564e4af
22,701
py
Python
contrib/python/src/py/hadoop/cloud/service.py
cloudera/whirr
c946a349a06f318cff24d5ef12d9eec3e97e1dc8
[ "Apache-2.0" ]
2
2015-02-25T00:50:28.000Z
2018-03-14T22:25:45.000Z
contrib/python/src/py/hadoop/cloud/service.py
cloudera/whirr
c946a349a06f318cff24d5ef12d9eec3e97e1dc8
[ "Apache-2.0" ]
null
null
null
contrib/python/src/py/hadoop/cloud/service.py
cloudera/whirr
c946a349a06f318cff24d5ef12d9eec3e97e1dc8
[ "Apache-2.0" ]
2
2017-09-30T02:40:38.000Z
2020-12-12T10:10:17.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 use ...
35.414977
91
0.666138
8a461fa900080531b5fd94bda7e8b52d4fb0f131
416
py
Python
python_3/practice/kaggle_learndata_eda_6.py
duttashi/applied-machine-learning
ff3267b97d9dd7122400754798e06fb493daa40a
[ "MIT" ]
null
null
null
python_3/practice/kaggle_learndata_eda_6.py
duttashi/applied-machine-learning
ff3267b97d9dd7122400754798e06fb493daa40a
[ "MIT" ]
217
2019-05-15T04:00:06.000Z
2021-12-04T09:36:42.000Z
python_3/practice/kaggle_learndata_eda_6.py
duttashi/AML
ff3267b97d9dd7122400754798e06fb493daa40a
[ "MIT" ]
2
2019-09-27T17:57:46.000Z
2021-10-06T10:35:10.000Z
# -*- coding: utf-8 -*- """ Created on Mon Sep 13 16:02:50 2021 Analysing prek12-higher ed data @author: Ashish """ import pandas as pd # read data path = '../../data/learnplatform-covid19-impact-on-digital-learning/' df_PreK12HigEd = pd.read_csv(path+"df_PreK12HigEd.csv") print(df_PreK12HigEd.shape,"\n", df_PreK12Hig...
24.470588
69
0.730769
8353a45f9dc1fbef17aea2f0dee651665e26c4a1
5,189
py
Python
json2xml.py
nguyentruonglau/json2xml
3cad07d96492f271b30b8f47d0cd94fbf354a742
[ "MIT" ]
5
2021-11-21T07:36:51.000Z
2021-12-24T21:32:47.000Z
json2xml.py
nguyentruonglau/json2xml
3cad07d96492f271b30b8f47d0cd94fbf354a742
[ "MIT" ]
null
null
null
json2xml.py
nguyentruonglau/json2xml
3cad07d96492f271b30b8f47d0cd94fbf354a742
[ "MIT" ]
null
null
null
from xml.dom.minidom import parseString from lxml.etree import Element from lxml.etree import SubElement from lxml.etree import tostring from os.path import join from imutils.paths import list_files import numpy as np import os import imagesize import argparse import sys import json """ COCO annotation format: .json ...
29.651429
139
0.663326
cf114472eb0c4da3b39e51b7e11af923dee2da84
12,856
py
Python
torchbenchmark/models/Background_Matting/__init__.py
brad-mengchi/benchmark
d39385defcbee54d0945804a36545c20fa50b9c6
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/Background_Matting/__init__.py
brad-mengchi/benchmark
d39385defcbee54d0945804a36545c20fa50b9c6
[ "BSD-3-Clause" ]
null
null
null
torchbenchmark/models/Background_Matting/__init__.py
brad-mengchi/benchmark
d39385defcbee54d0945804a36545c20fa50b9c6
[ "BSD-3-Clause" ]
null
null
null
import os import time from argparse import Namespace import torch from torch.autograd import Variable import torch.nn as nn import torch.optim as optim from tensorboardX import SummaryWriter from .data_loader import VideoData from .functions import compose_image_withshift, write_tb_log from .networks import ResnetCond...
41.605178
261
0.57724
0fc9f2f94627e3176679e0caf1cf2a5b82ff144d
128
py
Python
src/wizluk/envs/walker/__init__.py
miquelramirez/width-lookaheads-python
122442136d8254be44f9dbcae365327e0f669bfa
[ "MIT" ]
1
2019-09-10T20:36:48.000Z
2019-09-10T20:36:48.000Z
src/wizluk/envs/walker/__init__.py
miquelramirez/width-lookaheads-python
122442136d8254be44f9dbcae365327e0f669bfa
[ "MIT" ]
null
null
null
src/wizluk/envs/walker/__init__.py
miquelramirez/width-lookaheads-python
122442136d8254be44f9dbcae365327e0f669bfa
[ "MIT" ]
1
2019-09-10T20:36:52.000Z
2019-09-10T20:36:52.000Z
from . _model import WalkBot from . _env import WalkBotEnv from . _sc_model import WalkBotSC from . _sc_env import WalkBotSCEnv
25.6
34
0.8125
1065c20a8eb0b8a7c081a74a0700ebd65c019f3e
42,907
py
Python
vendor/github.com/influxdata/kapacitor/build.py
nathanielc/morgoth
c9874e8c4225235b67c91907efa55cd9d351fca6
[ "Apache-2.0" ]
270
2015-06-16T07:53:33.000Z
2022-02-25T19:40:53.000Z
build.py
masami10/kapacitor
0d689a8b149fd15c6bf1a5789a9cca6b89b3adfe
[ "MIT" ]
43
2015-08-17T15:04:57.000Z
2020-10-16T07:41:08.000Z
build.py
masami10/kapacitor
0d689a8b149fd15c6bf1a5789a9cca6b89b3adfe
[ "MIT" ]
33
2015-08-16T23:50:05.000Z
2020-10-13T01:09:49.000Z
#!/usr/bin/python2.7 -u import sys import os import subprocess import time from datetime import datetime import shutil import tempfile import hashlib import re import logging import argparse ################ #### Kapacitor Variables ################ # Enable Go vendoring os.environ["GO15VENDOREXPERIMENT"] = "1" # P...
40.941794
135
0.52693
0c0870ecfaa7c486f5dcb3557f6c43edd7c16d24
597
py
Python
api/serializers.py
what-digital/blockselfie-bacckend
231ffd92b1fc570a58ec5058d7f04d065c3866ba
[ "MIT" ]
2
2018-11-04T17:51:32.000Z
2018-11-05T14:21:41.000Z
api/serializers.py
what-digital/blockselfie-backend
231ffd92b1fc570a58ec5058d7f04d065c3866ba
[ "MIT" ]
null
null
null
api/serializers.py
what-digital/blockselfie-backend
231ffd92b1fc570a58ec5058d7f04d065c3866ba
[ "MIT" ]
null
null
null
from rest_framework import serializers # https://stackoverflow.com/questions/38245414/django-rest-framework-how-to-include-all-fields-and-a-related-field-in-mo # generic hyperlinked serializer to support extra_fields class CustomSerializer(serializers.HyperlinkedModelSerializer): def get_field_names(self, decla...
37.3125
120
0.760469
1a8823fd821abd0002b85f2e32ba931c631d9bc9
16,515
py
Python
src/dispersion/catalogue.py
nano-sippe/material_database
d8457f366dfc8d5be75fb153b9723b36ed8736d8
[ "MIT" ]
null
null
null
src/dispersion/catalogue.py
nano-sippe/material_database
d8457f366dfc8d5be75fb153b9723b36ed8736d8
[ "MIT" ]
null
null
null
src/dispersion/catalogue.py
nano-sippe/material_database
d8457f366dfc8d5be75fb153b9723b36ed8736d8
[ "MIT" ]
null
null
null
"""A database for administering refractive index data files The database set of data files on disk which describe spectrally resolved refractive index or permittivity data Functions --------- rebuild_database rebuilds all of the modules in the database Classes ------- Catalogue administers the catalogue of...
39.042553
81
0.55053
632cca5cf9b944644834dd6f8766268a10c74e28
13,233
py
Python
tests/test_transaction.py
mc-gulu-forked/bitsv
2f89cc1ad0f950231ff925b9aea06a3047a5a941
[ "MIT" ]
null
null
null
tests/test_transaction.py
mc-gulu-forked/bitsv
2f89cc1ad0f950231ff925b9aea06a3047a5a941
[ "MIT" ]
null
null
null
tests/test_transaction.py
mc-gulu-forked/bitsv
2f89cc1ad0f950231ff925b9aea06a3047a5a941
[ "MIT" ]
null
null
null
import pytest from bitsv.exceptions import InsufficientFunds from bitsv.network.meta import Unspent from bitsv.transaction import ( TxIn, calc_txid, create_p2pkh_transaction, construct_input_block, construct_output_block, estimate_tx_fee, sanitize_tx_data ) from bitsv.utils import hex_to_bytes from bitsv.walle...
41.096273
130
0.636439
d0efc8de4ba44588ed363e43d380c5750156ac7c
15,095
py
Python
mmcv/ops/multi_scale_deform_attn.py
raoshenglong/mmcv
e22740b1d6953d75a0acecce4455d23800b1f018
[ "Apache-2.0" ]
1
2021-11-22T08:28:24.000Z
2021-11-22T08:28:24.000Z
mmcv/ops/multi_scale_deform_attn.py
raoshenglong/mmcv
e22740b1d6953d75a0acecce4455d23800b1f018
[ "Apache-2.0" ]
2
2021-04-26T08:32:50.000Z
2021-05-10T06:42:57.000Z
mmcv/ops/multi_scale_deform_attn.py
raoshenglong/mmcv
e22740b1d6953d75a0acecce4455d23800b1f018
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import math import warnings import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd.function import Function, once_differentiable from mmcv import deprecated_api_warning from mmcv.cnn import constant_init, xavier_init from mmcv.cnn.bricks....
42.047354
79
0.587678
e01450d4ebc4201354840ed77793f0b4cf34b4f2
14,210
py
Python
theano/gof/utils.py
oplatek/Theano
09605e7cae876e15c5502c4edaba6a9644c50c11
[ "BSD-3-Clause" ]
null
null
null
theano/gof/utils.py
oplatek/Theano
09605e7cae876e15c5502c4edaba6a9644c50c11
[ "BSD-3-Clause" ]
null
null
null
theano/gof/utils.py
oplatek/Theano
09605e7cae876e15c5502c4edaba6a9644c50c11
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import linecache import traceback import sys import numpy from six import iteritems from theano import config from theano.compat import OrderedDict, PY3 def simple_extract_stack(f=None, limit=None): """ This is traceback.extract_stack from python 2.7 with this change: ...
26.560748
80
0.567628
69e66ed46887cc7b155887f6fbdc3652b70e9086
3,708
py
Python
tests/test_bot.py
jorgechp/etsiit_bot
91a50bbe140793b2d228ea694c2576def8b80d5b
[ "MIT" ]
1
2020-02-24T21:56:21.000Z
2020-02-24T21:56:21.000Z
tests/test_bot.py
jorgechp/etsiit_bot
91a50bbe140793b2d228ea694c2576def8b80d5b
[ "MIT" ]
39
2020-04-27T20:31:30.000Z
2021-01-11T21:45:34.000Z
tests/test_bot.py
jorgechp/etsiit_bot
91a50bbe140793b2d228ea694c2576def8b80d5b
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Jorge Chamorro Padiel, Luis Liñán Villafranca. All rights # reserved. # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT> """Test bot module.""" import unittest from unittest import TestCase, mock try: from etsiit_bot import bot ...
31.965517
78
0.670442
d255c97e5779134b20262f27e72e1f6cf0541c99
4,426
py
Python
tests/test_datetime_field.py
mushkevych/synergy_odm
fe418ccedf5d76761caf1620dcbb0e6da3606497
[ "BSD-3-Clause" ]
null
null
null
tests/test_datetime_field.py
mushkevych/synergy_odm
fe418ccedf5d76761caf1620dcbb0e6da3606497
[ "BSD-3-Clause" ]
null
null
null
tests/test_datetime_field.py
mushkevych/synergy_odm
fe418ccedf5d76761caf1620dcbb0e6da3606497
[ "BSD-3-Clause" ]
null
null
null
__author__ = 'Bohdan Mushkevych' import time import unittest import datetime from odm.errors import ValidationError from odm import document, fields class TestDocument(unittest.TestCase): def test_date_formats(self): class FieldContainer(document.BaseDocument): field_datetime = fields.DateTi...
36.883333
101
0.662675
86e0ada6099abbab7a79251b67d12de25cd2f434
26,601
py
Python
instagrapi/mixins/media.py
New-dev0/instagrapi
0e3e39241489bad4da6b4ae5ccd0135d3bc5756f
[ "MIT" ]
null
null
null
instagrapi/mixins/media.py
New-dev0/instagrapi
0e3e39241489bad4da6b4ae5ccd0135d3bc5756f
[ "MIT" ]
3
2021-10-04T10:45:24.000Z
2022-03-21T17:41:03.000Z
instagrapi/mixins/media.py
New-dev0/instagrapi
0e3e39241489bad4da6b4ae5ccd0135d3bc5756f
[ "MIT" ]
1
2021-11-22T17:34:38.000Z
2021-11-22T17:34:38.000Z
import json import random import time from copy import deepcopy from datetime import datetime from typing import Dict, List, Tuple from urllib.parse import urlparse from instagrapi.exceptions import ( ClientError, ClientLoginRequired, ClientNotFoundError, MediaNotFound, ) from instagrapi.extractors imp...
30.057627
129
0.528213
64907a2de73f087a228273f2317c2da84b48f502
3,163
py
Python
ci/clean-cluster.py
tellisnz/telepresence
8bfc3664f51dc7a141f8a7579c21f6ce8a208a30
[ "Apache-2.0" ]
1
2019-11-02T05:17:56.000Z
2019-11-02T05:17:56.000Z
ci/clean-cluster.py
tellisnz/telepresence
8bfc3664f51dc7a141f8a7579c21f6ce8a208a30
[ "Apache-2.0" ]
null
null
null
ci/clean-cluster.py
tellisnz/telepresence
8bfc3664f51dc7a141f8a7579c21f6ce8a208a30
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Delete old deployments and services with test-prefixed names. This is used to clean up the Telepresence test cluster, as Telepresence tests currently leak. """ import argparse import json from datetime import datetime, timedelta, timezone from subprocess import check_output, run from typing ...
27.267241
79
0.620297
d97e1df601582a901b1d1eeddfec67babcc848fb
2,260
py
Python
Source/RenderPasses/MegakernelPathTracer/Data/PathTracerTexLOD_Megakernel.py
Nuclearfossil/Falcor
667dc68a51bbaf87a2a063f4f0ef8928990ed203
[ "BSD-3-Clause" ]
62
2022-02-04T10:34:29.000Z
2022-03-31T19:41:20.000Z
Source/RenderPasses/MegakernelPathTracer/Data/PathTracerTexLOD_Megakernel.py
Nuclearfossil/Falcor
667dc68a51bbaf87a2a063f4f0ef8928990ed203
[ "BSD-3-Clause" ]
1
2021-02-18T16:38:38.000Z
2021-02-18T16:38:38.000Z
Source/RenderPasses/MegakernelPathTracer/Data/PathTracerTexLOD_Megakernel.py
fromasmtodisasm/Falcor
300aee1d7a9609e427f07e8887fd9bcb377426b0
[ "BSD-3-Clause" ]
4
2022-02-04T16:08:30.000Z
2022-03-09T09:39:41.000Z
def render_graph_PathTracerGraph(): g = RenderGraph("PathTracerGraph") loadRenderPassLibrary("AccumulatePass.dll") loadRenderPassLibrary("GBuffer.dll") loadRenderPassLibrary("ToneMapper.dll") loadRenderPassLibrary("MegakernelPathTracer.dll") AccumulatePass = createPass("AccumulatePass", {'enable...
64.571429
246
0.751327
64abf724d1b4cacddb2913fdd489f9ea7bb7e7b2
395
py
Python
Chapter09/wallet/wallet_threads/send_thread.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
62
2019-03-18T04:41:41.000Z
2022-03-31T05:03:13.000Z
Chapter09/wallet/wallet_threads/send_thread.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
2
2020-06-14T21:56:03.000Z
2022-01-07T05:32:01.000Z
Chapter09/wallet/wallet_threads/send_thread.py
HowToBeCalculated/Hands-On-Blockchain-for-Python-Developers
f9634259dd3dc509f36a5ccf3a5182c0d2ec79c4
[ "MIT" ]
42
2019-02-22T03:10:36.000Z
2022-02-20T04:47:04.000Z
from PySide2.QtCore import QThread, Signal from blockchain import blockchain class SendThread(QThread): send_transaction = Signal() def __init__(self, parent=None): super(SendThread, self).__init__(parent) def prepareTransaction(self, tx): self.tx = tx def run(self): blockc...
21.944444
51
0.698734
e388d0558b03d527e70758a071d55a7fd87f07e3
59,424
py
Python
src/sage/databases/cremona.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
10
2018-06-01T21:54:53.000Z
2022-03-14T20:11:34.000Z
src/sage/databases/cremona.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
1
2021-07-14T05:24:56.000Z
2021-07-14T05:24:56.000Z
src/sage/databases/cremona.py
dimpase/sagetrac-mirror
473cd41f19ec23df7e207391cfb0cf41c7c4ef46
[ "BSL-1.0" ]
15
2020-07-23T10:46:25.000Z
2022-01-25T15:37:24.000Z
""" Cremona's tables of elliptic curves Sage includes John Cremona's tables of elliptic curves in an easy-to-use format. An instance of the class CremonaDatabase() gives access to the database. If the optional full CremonaDatabase is not installed, a mini-version is included by default with Sage. It contains Weierst...
34.329289
139
0.57295
fb9c885ef892f16c1bdfbb6d0e3e328c3663ddb9
16,424
py
Python
app/model/LogisticsSolver.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
null
null
null
app/model/LogisticsSolver.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
6
2021-02-02T22:52:41.000Z
2022-03-12T00:37:30.000Z
app/model/LogisticsSolver.py
OuissalTAIM/jenkins
7ea5bcdeb6c0bb3cc14c2826a68e4f521de163c1
[ "BSD-1-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from app.entity.Entity import * from pulp import * import app.config.env as env from app.tools.Logger import logger_simulation as logger class LogisticsSolver: def __init__(self, nodes, scenario, salesPlan): pipeAndconveyorNodes = list( filter(lambda x: (x.entity.met...
56.054608
178
0.611727
43cb8453dddc88f8494839ab2ca1041187863ece
1,950
py
Python
client-py/setup.py
holtenko/iotdb
421fca74d306ccc2c836d16f7ff07bb5b7ea9fad
[ "Apache-2.0" ]
1
2022-01-21T20:54:39.000Z
2022-01-21T20:54:39.000Z
client-py/setup.py
holtenko/iotdb
421fca74d306ccc2c836d16f7ff07bb5b7ea9fad
[ "Apache-2.0" ]
27
2021-10-19T09:41:40.000Z
2022-03-30T16:22:17.000Z
client-py/setup.py
holtenko/iotdb
421fca74d306ccc2c836d16f7ff07bb5b7ea9fad
[ "Apache-2.0" ]
1
2022-02-11T07:14:32.000Z
2022-02-11T07:14:32.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...
33.62069
71
0.691795
9621d730bdb56d7f89a73c1b4b98729351c8f4d8
808
py
Python
pynetdicom/_globals.py
vsaase/pynetdicom
a2d21efeec932e09c178b9794794d94c556bf5a9
[ "MIT" ]
null
null
null
pynetdicom/_globals.py
vsaase/pynetdicom
a2d21efeec932e09c178b9794794d94c556bf5a9
[ "MIT" ]
null
null
null
pynetdicom/_globals.py
vsaase/pynetdicom
a2d21efeec932e09c178b9794794d94c556bf5a9
[ "MIT" ]
null
null
null
# The default Maximum PDU Length (in bytes) # Must be 0 or greater than 7. # A value of 0 indicates unlimited maximum length DEFAULT_MAX_LENGTH = 16382 # DICOM Application Context Name - see Part 7, Annex A.2.1 APPLICATION_CONTEXT_NAME = '1.2.840.10008.3.1.1.1' # The default transfer syntaxes used when creating pres...
28.857143
72
0.740099
2f1caa71d688a7613bf854292f0b85da8eb05c93
2,308
py
Python
pony/orm/tests/__init__.py
ProgHaj/pony
52720af1728ab2931364be8615e18ad8714a7c9e
[ "Apache-2.0" ]
2,628
2015-01-02T17:55:28.000Z
2022-03-31T10:36:42.000Z
pony/orm/tests/__init__.py
ProgHaj/pony
52720af1728ab2931364be8615e18ad8714a7c9e
[ "Apache-2.0" ]
525
2015-01-03T20:30:08.000Z
2022-03-23T12:30:01.000Z
pony/orm/tests/__init__.py
ProgHaj/pony
52720af1728ab2931364be8615e18ad8714a7c9e
[ "Apache-2.0" ]
256
2015-01-02T17:55:31.000Z
2022-03-20T17:01:37.000Z
import unittest import os import types import pony.orm.core, pony.options pony.options.CUT_TRACEBACK = False pony.orm.core.sql_debug(False) def _load_env(): settings_filename = os.environ.get('pony_test_db') if settings_filename is None: print('use default sqlite provider') return dict(provid...
31.616438
101
0.618284
9c7e9fdde14e735a21885abcd535d519c5ebc594
32,282
py
Python
glearn/crf/ixx_glodon/extractor/data_extractor.py
WeiShiwei/tornado_glearn
5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f
[ "Apache-2.0" ]
null
null
null
glearn/crf/ixx_glodon/extractor/data_extractor.py
WeiShiwei/tornado_glearn
5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f
[ "Apache-2.0" ]
null
null
null
glearn/crf/ixx_glodon/extractor/data_extractor.py
WeiShiwei/tornado_glearn
5e74bbaaee4d2b8c5abf3b60cffbe54694a3bc6f
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 u""" Description: Extract data from the product information file. Store result in the result file. User: Jerry.Fang Date: 13-12-09 """ from datetime import datetime from xlrd import open_workbook from xlwt import * from model.session import * from template.match_rule import MatchRule from t...
48.986343
269
0.581005
ac61dd1cd684a982aa51a73f912909d7227b3f7a
13,111
py
Python
run_app.py
TusharSharma16/Tsukuyomi
aa62b7bad4ea91e33ac901a6b64c0bbd0615162b
[ "MIT" ]
2
2019-02-24T08:18:37.000Z
2019-10-11T05:35:27.000Z
run_app.py
TusharSharma16/Tsukuyomi
aa62b7bad4ea91e33ac901a6b64c0bbd0615162b
[ "MIT" ]
null
null
null
run_app.py
TusharSharma16/Tsukuyomi
aa62b7bad4ea91e33ac901a6b64c0bbd0615162b
[ "MIT" ]
1
2019-02-07T18:57:22.000Z
2019-02-07T18:57:22.000Z
import os from flask import Flask, session, redirect, jsonify, url_for, escape, request, flash, render_template import models as dbHandler import sqlite3 as db import mysql.connector,sys import calendar import datetime from mysql.connector import Error from random import randint app = Flask(__name__, static_url_path=...
39.020833
139
0.588513
518bf4f7b5d23438e3f6cf8930de9c538b73099c
5,403
py
Python
sdk/python/pulumi_aws/ecr/get_authorization_token.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ecr/get_authorization_token.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_aws/ecr/get_authorization_token.py
mdop-wh/pulumi-aws
05bb32e9d694dde1c3b76d440fd2cd0344d23376
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** 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, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
36.755102
176
0.672404
a7bff0716191ab3b8400921dacd877df53c89845
2,491
py
Python
S5/question3.py
konan009/Advance-Data-Structure-and-Algorithm
7beca333efae4356a9b948e7f1da1fddef514799
[ "MIT" ]
null
null
null
S5/question3.py
konan009/Advance-Data-Structure-and-Algorithm
7beca333efae4356a9b948e7f1da1fddef514799
[ "MIT" ]
null
null
null
S5/question3.py
konan009/Advance-Data-Structure-and-Algorithm
7beca333efae4356a9b948e7f1da1fddef514799
[ "MIT" ]
null
null
null
VALUES_CONSTANT = "values" PREVIOUS_NODE_CONSTANT = "previous_vertex" START_NODE = "A" END_NODE = "F" # GRAPH IS 1A graph = { "A": { "B" : 5, "C" : 2 }, "B": { "E" : 4 , "D": 2 , }, "C" : { "B" : 8, "D" : 7 }, "E" : { "F" : 3 , "D" : 6 }, "D" : { "F" : ...
22.044248
92
0.59735
621d832d4dc989078ac8ff37760682a762c3ae1d
3,496
py
Python
src/help_menu.py
AdityaSavara/Frhodo
90ad23b8f238bd2b4dd9b94eea757fa658e92499
[ "BSD-3-Clause" ]
20
2020-05-20T19:33:43.000Z
2022-02-03T17:22:52.000Z
src/help_menu.py
AdityaSavara/Frhodo
90ad23b8f238bd2b4dd9b94eea757fa658e92499
[ "BSD-3-Clause" ]
1
2021-01-27T06:07:56.000Z
2021-01-27T06:07:56.000Z
src/help_menu.py
AdityaSavara/Frhodo
90ad23b8f238bd2b4dd9b94eea757fa658e92499
[ "BSD-3-Clause" ]
7
2020-05-13T21:56:00.000Z
2022-03-19T01:48:42.000Z
# This file is part of Frhodo. Copyright © 2020, UChicago Argonne, LLC # and licensed under BSD-3-Clause. See License.txt in the top-level # directory for license and copyright information. from qtpy.QtWidgets import QMessageBox, QLabel from qtpy import QtCore, QtGui import requests, re github_link = "https://githu...
40.651163
114
0.630721
c1ec2b6440a5c6d6e9178770a1c7efa455aae464
10,475
py
Python
numpy_demo/matlib.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/matlib.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
numpy_demo/matlib.py
mpmkp2020/numpy_demo
796262e06c84b7e9aa446b244a3faf3891d9ece1
[ "BSD-3-Clause" ]
null
null
null
import warnings # 2018-05-29, PendingDeprecationWarning added to matrix.__new__ # 2020-01-23, numpy_demo 1.19.0 PendingDeprecatonWarning warnings.warn("Importing from numpy_demo.matlib is deprecated since 1.19.0. " "The matrix subclass is not the recommended way to represent " "matrices or ...
27.785146
94
0.57432
94498dda984b14b349fd695960cca561faddbe01
8,178
py
Python
p4c_bm/of.py
p4lang/p4c-behavioral
59a4f4aed759e3c7421dc6623f034b89d6ad21cf
[ "Apache-2.0" ]
19
2015-04-21T16:29:31.000Z
2022-02-08T18:42:05.000Z
p4c_bm/of.py
bnuz/p4c-behavioral
ec9c863484465507413cab34e578378d56683abd
[ "Apache-2.0" ]
14
2015-04-15T01:09:38.000Z
2018-04-09T07:04:44.000Z
p4c_bm/of.py
bnuz/p4c-behavioral
ec9c863484465507413cab34e578378d56683abd
[ "Apache-2.0" ]
29
2015-04-02T18:43:42.000Z
2021-12-23T09:14:37.000Z
# OF Match fields of_match_vals = {} of_match_vals["OFPXMT_OFB_IN_PORT" ] = "match_fields->fields.in_port" of_match_vals["OFPXMT_OFB_IN_PHY_PORT" ] = "match_fields->fields.in_phy_port" of_match_vals["OFPXMT_OFB_METADATA" ] = "match_fields->fields.metadata" of_match_vals["OFPXMT_OFB_ETH_DST"...
69.305085
85
0.701027
e11a356cf07975947a7acc8027fcc2f43df8f974
9,801
py
Python
insilico_OptimizerCmp.py
Animadversio/Visual_Neuro_InSilico_Exp
39b1e65e5613b064361c09c7d3f88496f3a7efd2
[ "Apache-2.0" ]
2
2020-02-03T18:16:26.000Z
2020-05-01T18:27:01.000Z
insilico_OptimizerCmp.py
Animadversio/Visual_Neuro_InSilico_Exp
39b1e65e5613b064361c09c7d3f88496f3a7efd2
[ "Apache-2.0" ]
null
null
null
insilico_OptimizerCmp.py
Animadversio/Visual_Neuro_InSilico_Exp
39b1e65e5613b064361c09c7d3f88496f3a7efd2
[ "Apache-2.0" ]
2
2020-01-24T17:27:33.000Z
2020-08-30T02:54:13.000Z
"""Code for experiment and figure of comparing Optimizers""" from os.path import join import os from sys import platform import numpy as np from insilico_Exp import ExperimentEvolve from Optimizer import Genetic, CholeskyCMAES, Optimizer import matplotlib.pylab as plt import utils_old #%% Decide the result storage plac...
43.950673
129
0.634629
146f90467c66f1b7808780ee79e45a11a2a321e5
7,637
py
Python
capsule-opportunities.py
flexiodata/functions-capsule
0c20cb131a39be2c2bd05427a7e929b8af715458
[ "MIT" ]
null
null
null
capsule-opportunities.py
flexiodata/functions-capsule
0c20cb131a39be2c2bd05427a7e929b8af715458
[ "MIT" ]
null
null
null
capsule-opportunities.py
flexiodata/functions-capsule
0c20cb131a39be2c2bd05427a7e929b8af715458
[ "MIT" ]
null
null
null
# --- # name: capsule-opportunities # deployed: true # config: index # title: Capsule Opportunities # description: Returns a list of opportunties from Capsule # params: # - name: properties # type: array # description: The properties to return (defaults to all properties). See "Returns" for a listing of the ...
34.400901
137
0.66348
1f17665f156dd3c7716cc848247602cfeb8f2c44
455
py
Python
.venv/Scripts/autopep8-script.py
JosephPallipadan/Namsor-API-Wrapper-Python
61b9299e1da11ce102b436812a5ff3859aae3ef9
[ "MIT" ]
6
2019-09-02T02:44:44.000Z
2020-06-22T12:04:02.000Z
.venv/Scripts/autopep8-script.py
JosephPallipadan/Namsor-API-Wrapper-Python
61b9299e1da11ce102b436812a5ff3859aae3ef9
[ "MIT" ]
null
null
null
.venv/Scripts/autopep8-script.py
JosephPallipadan/Namsor-API-Wrapper-Python
61b9299e1da11ce102b436812a5ff3859aae3ef9
[ "MIT" ]
null
null
null
#!"c:\Users\palli\Documents\Python Projects\NamsorAPIWrapper\.venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'autopep8==1.4.4','console_scripts','autopep8' __requires__ = 'autopep8==1.4.4' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-scr...
35
86
0.69011
a32b8df94865970bb2c2c96bb84dcc02fc886f9d
520
py
Python
setup.py
fvutils/uvm-py
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
[ "Apache-2.0" ]
1
2019-10-13T06:14:28.000Z
2019-10-13T06:14:28.000Z
setup.py
fvutils/uvm-py
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
[ "Apache-2.0" ]
null
null
null
setup.py
fvutils/uvm-py
5e5ed203b680ead6e1b47fcff6d74fa99b5929c4
[ "Apache-2.0" ]
1
2019-12-23T06:21:49.000Z
2019-12-23T06:21:49.000Z
import os from setuptools import setup setup( name = "uvm-py", packages=['uvm'], package_dir = {'' : 'src'}, author = "Matthew Ballance", author_email = "matt.ballance@gmail.com", description = ("uvm-py provides a Python implementation of the Univeral Verification Methodology (UVM)"), license = "Apache ...
22.608696
107
0.653846
ab4febf6a97d5180a7db6d28f2a33301106d4f16
18,362
py
Python
qlib/workflow/task/manage.py
wan9c9/qlib
cc95099d7696ca850205b8ca220a99fba35a637a
[ "MIT" ]
1
2021-03-11T10:07:18.000Z
2021-03-11T10:07:18.000Z
qlib/workflow/task/manage.py
wan9c9/qlib
cc95099d7696ca850205b8ca220a99fba35a637a
[ "MIT" ]
null
null
null
qlib/workflow/task/manage.py
wan9c9/qlib
cc95099d7696ca850205b8ca220a99fba35a637a
[ "MIT" ]
2
2021-04-08T13:59:11.000Z
2022-01-23T15:18:15.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ TaskManager can fetch unused tasks automatically and manage the lifecycle of a set of tasks with error handling. These features can run tasks concurrently and ensure every task will be used only once. Task Manager will store all tasks in `Mon...
33.084685
141
0.593835
71e588a792b9d71151d8ee7221bd5dfbf854bddc
62,993
py
Python
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/operations/_disk_accesses_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_12_01/operations/_disk_accesses_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_12_01/operations/_disk_accesses_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
44.644224
271
0.680631
5eafa8fdb9aeb165888e288ebee8ac98f5ee32ef
5,102
py
Python
kinbot/irc.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
kinbot/irc.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
kinbot/irc.py
rubenvdvijver/KinBot
5bbb29c087b53bc63ffbb1d393ab4e217390eb82
[ "BSD-3-Clause" ]
null
null
null
################################################### ## ## ## This file is part of the KinBot code v2.0 ## ## ## ## The contents are covered by the terms of the ## ## BSD 3-clause license included in the LICENSE ## ## file,...
34.945205
120
0.55782
c93a04bba87760be526d78c76cb66dbbcbb695f5
9,922
py
Python
avalon/blender/ops.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
avalon/blender/ops.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
avalon/blender/ops.py
Yowza-Animation/avalon-core
0a423bfb6c92e8c06dcf5cc61ba04494fb0bac85
[ "MIT" ]
null
null
null
"""Blender operators and menus for use with Avalon.""" import os import sys from functools import partial from pathlib import Path from types import ModuleType from typing import Dict, List, Optional, Union import bpy import bpy.utils.previews from ..tools.creator.app import Window as creator_window from ..tools.loa...
29.795796
79
0.638682
67e620a715c7a1720023cb691e4ac1c1199123f8
755
py
Python
api/migrations/0003_token.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
null
null
null
api/migrations/0003_token.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
9
2019-08-06T02:02:54.000Z
2021-09-08T00:41:31.000Z
api/migrations/0003_token.py
takezyou/django_api
e65137632314958804dbe55c1111976ce3cdffe5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.4 on 2018-12-11 18:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20181211_1651'), ] operations = [ migrations.CreateModel(...
30.2
118
0.617219
0bb134c3d57a01f3c0ed269e81b14710762fad7f
4,359
py
Python
Compiler/recInterpreter.py
S-Amiral/Compiler
cd5607f3481434b1c46caf6c6c9ef6ec09988a2c
[ "MIT" ]
null
null
null
Compiler/recInterpreter.py
S-Amiral/Compiler
cd5607f3481434b1c46caf6c6c9ef6ec09988a2c
[ "MIT" ]
null
null
null
Compiler/recInterpreter.py
S-Amiral/Compiler
cd5607f3481434b1c46caf6c6c9ef6ec09988a2c
[ "MIT" ]
1
2017-12-20T09:33:15.000Z
2017-12-20T09:33:15.000Z
"""Recursive interpreter package.""" import operator import sys from functools import reduce import AST from AST import addToClass from parser5 import parse operations = { '+': lambda x, y: x + y, '-': lambda x, y: x - y, '*': lambda x, y: x * y, '/': lambda x, y: x / y, } ops = { ">": operator.g...
29.06
79
0.609314
7c82b81adbb45291efd0928e309d1141781e6669
1,024
py
Python
pajbot/web/common/tasks.py
smackedlol/pajbot
cc6d00e20fd0847f88e487937ac02d0011e05e67
[ "MIT" ]
1
2020-10-01T23:36:38.000Z
2020-10-01T23:36:38.000Z
pajbot/web/common/tasks.py
smackedlol/pajbot
cc6d00e20fd0847f88e487937ac02d0011e05e67
[ "MIT" ]
1
2021-03-25T05:37:40.000Z
2021-03-25T05:37:40.000Z
pajbot/web/common/tasks.py
leecopland/bullbot
52e463293097b58084afb4f9f1d85b0656a67d44
[ "MIT" ]
null
null
null
import logging from pajbot.managers.db import DBManager from pajbot.models.stream import StreamChunkHighlight log = logging.getLogger(__name__) def init(app): try: from uwsgidecorators import thread, timer @thread @timer(60) def get_highlight_thumbnails(no_clue_what_this_does): ...
36.571429
105
0.633789
c967c7fddaf860d500cb21a7ced43ed3cdf39433
7,755
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_matrix.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_matrix.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_matrix.py
admariner/polyaxon
ba355c38166047eb11e60de4cee4d7c3b48db323
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
26.377551
165
0.581689
a4f8b5a878dcf607e4aa09db20a7a462ad3eefc5
1,951
py
Python
python/example_code/inspector/list_findings.py
santisra/aws-doc-sdk-examples
5b9915aa60420a14d10f6825907faac6e6e7624d
[ "Apache-2.0" ]
3
2021-01-19T20:23:17.000Z
2021-01-19T21:38:59.000Z
python/example_code/inspector/list_findings.py
santisra/aws-doc-sdk-examples
5b9915aa60420a14d10f6825907faac6e6e7624d
[ "Apache-2.0" ]
null
null
null
python/example_code/inspector/list_findings.py
santisra/aws-doc-sdk-examples
5b9915aa60420a14d10f6825907faac6e6e7624d
[ "Apache-2.0" ]
2
2019-12-27T13:58:00.000Z
2020-05-21T18:35:40.000Z
# snippet-comment:[These are tags for the AWS doc team's sample catalog. Do not remove.] # snippet-sourcedescription:[list_findings.py lists Amazon Inspector findings.] # snippet-service:[inspector] # snippet-keyword:[Amazon Inspector] # snippet-keyword:[Python] # snippet-keyword:[Code Sample] # snippet-sourcetype:[sni...
31.467742
118
0.719631
5f2e4098b2f501b07fc07507e4398145172e34c5
11,354
py
Python
OPCunix/command_handler.py
JGirdwood/OPCunix
b4dd751a50becbedcb0b4aa3f378303bb349f2c5
[ "MIT" ]
2
2020-02-07T10:19:03.000Z
2021-11-15T09:55:13.000Z
OPCunix/command_handler.py
JGirdwood/OPCunix
b4dd751a50becbedcb0b4aa3f378303bb349f2c5
[ "MIT" ]
4
2019-02-22T18:00:44.000Z
2019-02-25T09:52:57.000Z
OPCunix/command_handler.py
JGirdwood/OPCunix
b4dd751a50becbedcb0b4aa3f378303bb349f2c5
[ "MIT" ]
null
null
null
import os import subprocess import signal import serial import glob import serial_manager import sys ucass_list = {} # This dictionary stores the ports associated with UCASS names (user specified) ucass_store = {} # This dictionary stores the actual subprocess objects. Used for getting, setting, and de...
49.151515
120
0.580853
1eed815d4b4cd18aff930aa76df7178ceda7e317
1,501
py
Python
pytorch_lightning/metrics/classification/stat_scores.py
alanhdu/pytorch-lightning
0e45220263f4e2045dfe7f68e3e0eaac0b2033d5
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/metrics/classification/stat_scores.py
alanhdu/pytorch-lightning
0e45220263f4e2045dfe7f68e3e0eaac0b2033d5
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/metrics/classification/stat_scores.py
alanhdu/pytorch-lightning
0e45220263f4e2045dfe7f68e3e0eaac0b2033d5
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
34.113636
77
0.687542
b9fbd056afaa3eb4a22e1ab66f8c392292c0acb7
3,050
py
Python
sdk/python/pulumi_azure_nextgen/datafactory/get_factory_git_hub_access_token.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/datafactory/get_factory_git_hub_access_token.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/datafactory/get_factory_git_hub_access_token.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# 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 __al...
40.131579
158
0.700984
38524a2959018e7178e6ff688f1adf131bfc99f4
716
py
Python
xyzspaces/__version__.py
sackh/xyz-spaces-python
d7e28c4392d1b082186f1ea39e6e24516503e73c
[ "Apache-2.0" ]
null
null
null
xyzspaces/__version__.py
sackh/xyz-spaces-python
d7e28c4392d1b082186f1ea39e6e24516503e73c
[ "Apache-2.0" ]
null
null
null
xyzspaces/__version__.py
sackh/xyz-spaces-python
d7e28c4392d1b082186f1ea39e6e24516503e73c
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2021 HERE Europe B.V. # # 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...
34.095238
74
0.748603
4e2774d0dab5fed9fda8b820acbb84c34f52d68c
343
py
Python
src/configuration.py
philipk19238/hubspot-assessment-2021
64cc1b0bc4f7e24f563eb2ea7c1189324f12607e
[ "MIT" ]
2
2021-12-13T02:59:50.000Z
2022-01-03T20:01:15.000Z
src/configuration.py
philipk19238/hubspot-assessment-2021
64cc1b0bc4f7e24f563eb2ea7c1189324f12607e
[ "MIT" ]
null
null
null
src/configuration.py
philipk19238/hubspot-assessment-2021
64cc1b0bc4f7e24f563eb2ea7c1189324f12607e
[ "MIT" ]
null
null
null
import os class Configuration: def __init__(self, api_key=None, dataset_endpoint=None, submit_endpoint=None): self.API_KEY = api_key or os.getenv('API_KEY') self.DATASET_ENDPOINT = dataset_endpoint or os.getenv('DATASET_ENDPOINT') self.SUBMIT_ENDPOINT = submit_endpoint or os.getenv('SUB...
38.111111
83
0.720117
b0e45db4ae55c40f06c614738a8df773aa61981b
5,619
py
Python
nerblackbox/tests/test_experiment_config.py
flxst/nerblackbox
7612b95850e637be258f6bfb01274453b7372f99
[ "Apache-2.0" ]
null
null
null
nerblackbox/tests/test_experiment_config.py
flxst/nerblackbox
7612b95850e637be258f6bfb01274453b7372f99
[ "Apache-2.0" ]
null
null
null
nerblackbox/tests/test_experiment_config.py
flxst/nerblackbox
7612b95850e637be258f6bfb01274453b7372f99
[ "Apache-2.0" ]
null
null
null
import pytest from typing import Union, Dict, Optional, List from pkg_resources import resource_filename import os from nerblackbox.modules.experiment_config.experiment_config import ExperimentConfig os.environ["DATA_DIR"] = resource_filename("nerblackbox", f"tests/test_data") class TestExperimentConfig: expe...
35.339623
120
0.40719
14e721d2a69e640664b188e52b10a611c25c3aa1
6,723
py
Python
PythonMiddlewarebase/account.py
chandlerette/Python-Middleware
45cf8f48a7c44c79dc9d072636378a12312b0778
[ "MIT" ]
26
2019-08-12T15:52:21.000Z
2021-02-13T00:27:48.000Z
PythonMiddlewarebase/account.py
reed-hong/Python-Middleware
c07b1d44210f570c04184702d49c7d0fb24f1b44
[ "MIT" ]
null
null
null
PythonMiddlewarebase/account.py
reed-hong/Python-Middleware
c07b1d44210f570c04184702d49c7d0fb24f1b44
[ "MIT" ]
1
2019-08-24T02:14:37.000Z
2019-08-24T02:14:37.000Z
from .baseaccount import ( PasswordKey as GPHPasswordKey, BrainKey as GPHBrainKey, Address as GPHAddress, PublicKey as GPHPublicKey, PrivateKey as GPHPrivateKey, re,hashlib,hexlify,os,BrainKeyDictionary ) from .chains import default_prefix class PasswordKey(GPHPasswordKey): """ This class ...
34.126904
85
0.631266
fa96e570c19afb60101643383ba374ccf1009ec0
2,092
py
Python
Transform_Model.py
OPTML-Group/RED-ICLR22
15be8bc24cea7ba41e764dcb869708e2d66ee57f
[ "MIT" ]
3
2022-03-10T02:19:03.000Z
2022-03-31T01:54:19.000Z
Transform_Model.py
Yifanfanfanfan/Reverse-Engineering-of-Imperceptible-Adversarial-Image-Perturbations
660b41e01465dd0c3a21829f6bc34e4796e96f94
[ "MIT" ]
null
null
null
Transform_Model.py
Yifanfanfanfan/Reverse-Engineering-of-Imperceptible-Adversarial-Image-Perturbations
660b41e01465dd0c3a21829f6bc34e4796e96f94
[ "MIT" ]
null
null
null
import cv2 import torch import torch.nn as nn import torch.nn.functional as F # import dlib from transform import cifar_default_data_transforms from PIL import Image as pil_image import numpy as np import math class NRMSELoss(torch.nn.Module): def __init__(self): super(NRMSELoss,self).__init__() def ...
23.505618
77
0.64914
28c6fdbf03f663e1ccc03d9335becc12dfa2eb68
47,624
py
Python
sympy/functions/combinatorial/numbers.py
cstoudt/sympy
54a926e204839e982917d81361153980b563fb4a
[ "BSD-3-Clause" ]
null
null
null
sympy/functions/combinatorial/numbers.py
cstoudt/sympy
54a926e204839e982917d81361153980b563fb4a
[ "BSD-3-Clause" ]
null
null
null
sympy/functions/combinatorial/numbers.py
cstoudt/sympy
54a926e204839e982917d81361153980b563fb4a
[ "BSD-3-Clause" ]
null
null
null
""" This module implements some special functions that commonly appear in combinatorial contexts (e.g. in power series); in particular, sequences of rational numbers such as Bernoulli and Fibonacci numbers. Factorials, binomial coefficients and related functions are located in the separate 'factorials' module. """ fr...
30.725161
99
0.503927
7772c94519912c1339e062de1479805a6016be76
4,367
py
Python
nova/objects/virtual_interface.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/objects/virtual_interface.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
null
null
null
nova/objects/virtual_interface.py
ebalduf/nova-backports
6bf97ec73467de522d34ab7a17ca0e0874baa7f9
[ "Apache-2.0" ]
1
2020-07-24T01:18:44.000Z
2020-07-24T01:18:44.000Z
# Copyright (C) 2014, Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.324786
78
0.681017
6a90bdf85f95ebdc9a2707aad0fa1b5cb9854fc0
1,121
py
Python
insertion_sort.py
gsuryalss/sorting-algorithms
7f141d3dac9e9e35f0b3704fb9de991aea222ebe
[ "MIT" ]
null
null
null
insertion_sort.py
gsuryalss/sorting-algorithms
7f141d3dac9e9e35f0b3704fb9de991aea222ebe
[ "MIT" ]
null
null
null
insertion_sort.py
gsuryalss/sorting-algorithms
7f141d3dac9e9e35f0b3704fb9de991aea222ebe
[ "MIT" ]
null
null
null
""" Insertion sort is based on the idea that one element from the input elements is consumed in each iteration to find its correct position i.e, the position to which it belongs in a sorted array. In worst case,each element is compared with all the other elements in the sorted array. For N elements, there will be N2 c...
28.025
90
0.666369
e3e01841dc0e745574f946375b1599f854825475
1,402
py
Python
cameo_face_tracking_and_image_manipulation/cameo.py
wildomonges/artificial-intelligence
2f4d1d8b5ac8990abb89f69dc3096c7ddf9fe459
[ "MIT" ]
null
null
null
cameo_face_tracking_and_image_manipulation/cameo.py
wildomonges/artificial-intelligence
2f4d1d8b5ac8990abb89f69dc3096c7ddf9fe459
[ "MIT" ]
null
null
null
cameo_face_tracking_and_image_manipulation/cameo.py
wildomonges/artificial-intelligence
2f4d1d8b5ac8990abb89f69dc3096c7ddf9fe459
[ "MIT" ]
null
null
null
import cv2 from cameo_face_tracking_and_image_manipulation.managers import WindowManager, CaptureManager class Cameo(object): def __init__(self): self._window_manager = WindowManager('Cameo', self.on_keypress) self._capture_manager = CaptureManager(cv2.VideoCapture(0), self._window_manager, True) ...
35.948718
95
0.634094
9ec9081d1437b31eec15c28b411b034f186c1a64
5,393
py
Python
alive_progress/core/configuration.py
johanjeppsson/alive-progress
b253d7096c2db2a2f786fc7a6b4fb0aa7443faa7
[ "MIT" ]
1
2021-01-06T04:45:34.000Z
2021-01-06T04:45:34.000Z
alive_progress/core/configuration.py
johanjeppsson/alive-progress
b253d7096c2db2a2f786fc7a6b4fb0aa7443faa7
[ "MIT" ]
null
null
null
alive_progress/core/configuration.py
johanjeppsson/alive-progress
b253d7096c2db2a2f786fc7a6b4fb0aa7443faa7
[ "MIT" ]
null
null
null
import os from collections import namedtuple from types import FunctionType ERROR = object() # represents a config value not accepted. def _spinner_input_factory(default): from ..animations import spinner_compiler from ..styles.internal import SPINNERS return __style_input_factory(SPINNERS, spinner_comp...
30.994253
100
0.626182
05293e06bdf30a6386dee6bf1d9882f224b00a77
2,840
py
Python
common/src/stack/command/stack/commands/add/pallet/imp_foreign_redhat.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/add/pallet/imp_foreign_redhat.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
common/src/stack/command/stack/commands/add/pallet/imp_foreign_redhat.py
knutsonchris/stacki
33087dd5fa311984a66ccecfeee6f9c2c25f665d
[ "BSD-3-Clause" ]
null
null
null
# @copyright@ # Copyright (c) 2006 - 2019 Teradata # All rights reserved. Stacki(r) v5.x stacki.com # https://github.com/Teradata/stacki/blob/master/LICENSE.txt # @copyright@ # # @rocks@ # Copyright (c) 2000 - 2010 The Regents of the University of California # All rights reserved. Rocks(r) v5.4 www.rocksclusters.org # ...
25.132743
101
0.640493
f2dbb0371cbfefedace48f8a57486fd1fe5b9868
4,978
py
Python
mixer/gtfs/constructer/model.py
Jwuthri/GtfsTools
d0db0c89588f936f02d4e6cccb70034ec1e4b9b1
[ "MIT" ]
2
2017-10-30T07:27:02.000Z
2021-11-09T18:50:13.000Z
mixer/gtfs/constructer/model.py
Jwuthri/GtfsTools
d0db0c89588f936f02d4e6cccb70034ec1e4b9b1
[ "MIT" ]
1
2017-02-24T20:50:10.000Z
2017-02-24T22:40:33.000Z
mixer/gtfs/constructer/model.py
Jwuthri/GtfsTools
d0db0c89588f936f02d4e6cccb70034ec1e4b9b1
[ "MIT" ]
null
null
null
"""Generate the Gtfs from ETL Database.""" import datetime import logging import time import pandas as pd from mixer.glogger import logger from mixer.gtfs.constructer.reader import ReaderFactory import mixer.gtfs.constructer.settings as SETTINGS class GtfsConstructer(object): """Create the archive ...
35.557143
90
0.575934
481632667bc9db933e03680a949784276a67ef0f
7,629
py
Python
model_zoo/official/cv/maskrcnn/src/network_define.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
model_zoo/official/cv/maskrcnn/src/network_define.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
model_zoo/official/cv/maskrcnn/src/network_define.py
Joejiong/mindspore
083fd6565cab1aa1d3114feeacccf1cba0d55e80
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
39.734375
114
0.63429
e5a32c4f0990d945865d6c5d4f443b71a80ddaf4
20,630
py
Python
komax_app/modules/timer.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
null
null
null
komax_app/modules/timer.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
9
2021-03-19T14:08:01.000Z
2022-03-12T00:41:09.000Z
komax_app/modules/timer.py
UsernameForGerman/PrettlNKKomax
8684300852458ab99988a63e49db47d53ff7ddc4
[ "Apache-2.0" ]
null
null
null
# module that gives time, allocation and etc # -*- coding: utf-8 -*- from komax_app.modules.ioputter import write_to_xlsx from komax_app.modules import dict_column_numbers, get_index def time_changeover(df, row, number_cols, time, volume=1, pairing=False): rows, cols = df.shape color_col = number_cols["Цвет...
48.886256
122
0.524285
56d7605ee7665cac0744fee0e1377754082768fd
5,814
py
Python
test/functional/p2p_fingerprint.py
Hser2bio/cribs
dfa5f9bcd0c3ff2a64e232353d215a07b2eb8238
[ "MIT" ]
5
2021-04-23T20:13:34.000Z
2022-01-13T10:53:03.000Z
test/functional/p2p_fingerprint.py
Hser2bio/cribs
dfa5f9bcd0c3ff2a64e232353d215a07b2eb8238
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
Hser2bio/cribs
dfa5f9bcd0c3ff2a64e232353d215a07b2eb8238
[ "MIT" ]
7
2021-04-28T09:50:06.000Z
2022-01-20T18:11:35.000Z
#!/usr/bin/env python3 # Copyright (c) 2017 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 various fingerprinting protections. If an stale block more than a month old or its header are requeste...
38
79
0.685587
e6307968c80bff1725657fcde227ad91674008b4
1,522
py
Python
app/models/Foto.py
L1de5/CompraPC
ce8344b35c0ee67428793d1a420cfecdab80f44e
[ "MIT" ]
null
null
null
app/models/Foto.py
L1de5/CompraPC
ce8344b35c0ee67428793d1a420cfecdab80f44e
[ "MIT" ]
null
null
null
app/models/Foto.py
L1de5/CompraPC
ce8344b35c0ee67428793d1a420cfecdab80f44e
[ "MIT" ]
null
null
null
import os from flask import * from uuid import uuid4 from werkzeug.utils import secure_filename class Foto(): @staticmethod def salvar(arquivo): extencao_foto = arquivo.filename.split('.')[-1].lower() novo_nome_foto = uuid4() e_permitido = Foto.extensao_permitida(extencao_foto) ...
31.061224
94
0.593955
24261c210521d8e835f9b9a19bc98402aa3b0ec5
5,223
py
Python
typeidea/blog/views.py
yaopystudy/typeidea
11ab64dddfec04cdc6878260eb67e406853b1248
[ "MIT" ]
null
null
null
typeidea/blog/views.py
yaopystudy/typeidea
11ab64dddfec04cdc6878260eb67e406853b1248
[ "MIT" ]
3
2020-02-12T02:52:02.000Z
2021-06-10T21:34:08.000Z
typeidea/blog/views.py
yaopystudy/typeidea
11ab64dddfec04cdc6878260eb67e406853b1248
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.core.paginator import Paginator,EmptyPage from django.shortcuts import render #listview是多个对象展示如列表展示,detailview是单个对象 from django.views.generic import ListView,DetailView from .models import Post,Tags,Category from config.models import Si...
26.51269
80
0.604825
f46c07f2d15594fff284b2fcfcd3d38df14ca11c
912
py
Python
parser/team06/traductor.py
eoJimenez/tytus
0987e4e12c7e021d41ff00b59062c4451dea3e1c
[ "MIT" ]
1
2021-01-09T09:39:57.000Z
2021-01-09T09:39:57.000Z
parser/team06/traductor.py
AllVides/tytus
03186f728d1cbcd5f701402604cd8df4e6795a12
[ "MIT" ]
null
null
null
parser/team06/traductor.py
AllVides/tytus
03186f728d1cbcd5f701402604cd8df4e6795a12
[ "MIT" ]
null
null
null
import gramaticaAscendente3D as g #import gramaticaAscendente as gr import re import reportes as h import os import sys import platform def ejecucionATraduccion(input): print("--------------------------------Archivo Ejecucion---------------------------------------") prueba =g.parse(input) print(prueba)...
25.333333
101
0.569079
223a94ebb543228d1a1c314ec845e0ea14fad2b0
4,679
py
Python
ThirdParty/ZopeInterface/zope/interface/common/sequence.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
7
2015-04-28T13:26:11.000Z
2020-02-09T17:01:04.000Z
ThirdParty/ZopeInterface/zope/interface/common/sequence.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
ThirdParty/ZopeInterface/zope/interface/common/sequence.py
jasper-yeh/VtkDotNet
84b56f781cb511694e4380cebfb245bbefe2560b
[ "BSD-3-Clause" ]
6
2017-02-13T09:11:02.000Z
2021-06-29T11:22:18.000Z
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
29.062112
78
0.583672
b85a2ae770aa9e1eaf45864f64cd32ebda1d5a77
7,368
py
Python
pavement.py
ndip007/spdx-build-tool
58bcd48558fe4cc3baa1737e24b21588eadeff12
[ "MIT" ]
8
2018-10-19T06:19:00.000Z
2022-02-18T07:30:37.000Z
pavement.py
ndip007/spdx-build-tool
58bcd48558fe4cc3baa1737e24b21588eadeff12
[ "MIT" ]
17
2018-05-18T19:55:01.000Z
2018-07-26T15:47:28.000Z
pavement.py
ndip007/spdx-build-tool
58bcd48558fe4cc3baa1737e24b21588eadeff12
[ "MIT" ]
4
2018-08-15T18:50:18.000Z
2021-07-27T22:33:23.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import os import sys import time import subprocess # Import parameters from the setup file. sys.path.append('.') from setup import ( setup_dict, get_project_files, print_success_message, print_failure_message, _lint, _test, _test_all, CODE_DIR...
28.55814
79
0.629072
0fd9a5946a1d663ad9ee899267c82103eda2acb0
3,345
py
Python
spinup/algos/vpg/core.py
lkhphuc/spinningup-pytorch
a00b1fbf36e1e1386d97af82a44a12b7ecb8ae54
[ "MIT" ]
null
null
null
spinup/algos/vpg/core.py
lkhphuc/spinningup-pytorch
a00b1fbf36e1e1386d97af82a44a12b7ecb8ae54
[ "MIT" ]
null
null
null
spinup/algos/vpg/core.py
lkhphuc/spinningup-pytorch
a00b1fbf36e1e1386d97af82a44a12b7ecb8ae54
[ "MIT" ]
null
null
null
from typing import List import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import tensorflow as tf import scipy.signal from gym.spaces import Box, Discrete EPS = 1e-8 def make_mlp(hidden_sizes, activation, output_activation): layers: List = [] for i in range(len(hidden_size...
30.972222
82
0.611958
086394125e5310e00e69b3c10c9f6f73f2dcd298
597
py
Python
lab01/app/views.py
aldopezo/TECSUP-DAE-2021-2-B
9734cbf95606800c1f6319136b942d4f2ea5c3ae
[ "MIT" ]
null
null
null
lab01/app/views.py
aldopezo/TECSUP-DAE-2021-2-B
9734cbf95606800c1f6319136b942d4f2ea5c3ae
[ "MIT" ]
null
null
null
lab01/app/views.py
aldopezo/TECSUP-DAE-2021-2-B
9734cbf95606800c1f6319136b942d4f2ea5c3ae
[ "MIT" ]
null
null
null
from django.shortcuts import render from django.http import HttpResponse # Create your views here. def index(request): return HttpResponse("Respuestas") def sumar(request, numero1, numero2): return HttpResponse("La suma es: " + str(numero1 + numero2)) def restar(request, numero1, numero2): return HttpRes...
33.166667
74
0.731993
a6f66111e9f668da5d9a20a24d9cf13d6d83fc93
1,630
py
Python
ivi/agilent/agilentU2002H.py
edupo/python-ivi
8105d8064503725dde781f0378d75db58defaecb
[ "MIT" ]
null
null
null
ivi/agilent/agilentU2002H.py
edupo/python-ivi
8105d8064503725dde781f0378d75db58defaecb
[ "MIT" ]
null
null
null
ivi/agilent/agilentU2002H.py
edupo/python-ivi
8105d8064503725dde781f0378d75db58defaecb
[ "MIT" ]
null
null
null
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2015-2016 Alex Forencich 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...
35.434783
77
0.741104
998e2970946d4c836809a6dd8a6eed45bdc24297
917
py
Python
src/pymor/playground/vectorarrays/mpi.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
1
2021-07-26T12:58:50.000Z
2021-07-26T12:58:50.000Z
src/pymor/playground/vectorarrays/mpi.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
src/pymor/playground/vectorarrays/mpi.py
mahgadalla/pymor
ee2806b4c93748e716294c42454d611415da7b5e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2017 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) from numbers import Number import numpy as np from pymor.tools import mpi from pymor.vectorarray...
32.75
91
0.737186
4c585546c550206452f472a40b591f954f667254
395
py
Python
Mundo 3_Estruturas Compostas/Desafio_112/Desafio_112.py
VictorOliveira02/Desafios-Python3-Curso-em-Video
53ee8bd814b816f3a21936677ef3f155b582843f
[ "MIT" ]
null
null
null
Mundo 3_Estruturas Compostas/Desafio_112/Desafio_112.py
VictorOliveira02/Desafios-Python3-Curso-em-Video
53ee8bd814b816f3a21936677ef3f155b582843f
[ "MIT" ]
null
null
null
Mundo 3_Estruturas Compostas/Desafio_112/Desafio_112.py
VictorOliveira02/Desafios-Python3-Curso-em-Video
53ee8bd814b816f3a21936677ef3f155b582843f
[ "MIT" ]
null
null
null
import sys sys.path.append('C:\\Users\\victo\\Desktop\\Victor\\Programação\\Linguagem Python\\Programas Victor - Curso em Video\\Desafio_112\\Package') import Currency sys.path.append('C:\\Users\\victo\\Desktop\\Victor\\Programação\\Linguagem Python\\Programas Victor - Curso em Video\\Desafio_112\\Package') import Da...
32.916667
140
0.749367