hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a1d1152a9f7b707c3c0fa399716ea848e121d19
137
py
Python
voltdb/datadog_checks/voltdb/__about__.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1
2021-01-28T01:45:37.000Z
2021-01-28T01:45:37.000Z
voltdb/datadog_checks/voltdb/__about__.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
3
2021-01-27T04:56:40.000Z
2021-02-26T06:29:22.000Z
voltdb/datadog_checks/voltdb/__about__.py
mchelen-gov/integrations-core
81281600b3cc7025a7a32148c59620c9592a564f
[ "BSD-3-Clause" ]
1
2021-04-07T16:58:27.000Z
2021-04-07T16:58:27.000Z
# (C) Datadog, Inc. 2020-present # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) __version__ = '1.3.1'
27.4
59
0.722628
4a1d11781e4339ff4a2b80ea942a06bcb50216ce
678
py
Python
problems/revc.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
problems/revc.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
problems/revc.py
viadanna/rosalind-python
6709c683b04c2e069d73613a2844533e752030bb
[ "MIT" ]
null
null
null
''' Complementing a Strand of DNA http://rosalind.info/problems/revc/ Problem In DNA strings, symbols 'A' and 'T' are complements of each other, as are 'C' and 'G'. The reverse complement of a DNA string s is the string sc formed by reversing the symbols of s, then taking the complement of each symbol (e.g., the rev...
22.6
73
0.743363
4a1d11819cd40ac9b8da92438a2b0a5da038656f
10,997
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_nonlinear_software/19-19_22.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_nonlinear_software/19-19_22.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_nonlinear_software/19-19_22.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import FrozenSet, Tuple import pysmt.typing as types from pysmt.environment import Environment as PysmtEnv from pysmt.fnode import FNode from utils import symb_to_next from hint import Hint, Location def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode, ...
34.581761
81
0.553878
4a1d12a6823b46d064d76c257190cda60999f3fa
7,191
py
Python
ortools/constraint_solver/samples/vrp_pickup_delivery.py
yjaeil/or-tools
89c1d950b757a5cc3f58e3b12715bceb24965e2c
[ "Apache-2.0" ]
1
2019-01-31T02:31:03.000Z
2019-01-31T02:31:03.000Z
ortools/constraint_solver/samples/vrp_pickup_delivery.py
yjaeil/or-tools
89c1d950b757a5cc3f58e3b12715bceb24965e2c
[ "Apache-2.0" ]
null
null
null
ortools/constraint_solver/samples/vrp_pickup_delivery.py
yjaeil/or-tools
89c1d950b757a5cc3f58e3b12715bceb24965e2c
[ "Apache-2.0" ]
null
null
null
# Copyright 2010-2018 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...
33.138249
80
0.590738
4a1d1493fbce948a2c161af9b1a37ea7a602a714
2,330
py
Python
mnistnn.py
gesingle/MNIST-Neural-Network
65501059cc89969c8aeea9aaca1aa85a49db364c
[ "MIT" ]
null
null
null
mnistnn.py
gesingle/MNIST-Neural-Network
65501059cc89969c8aeea9aaca1aa85a49db364c
[ "MIT" ]
null
null
null
mnistnn.py
gesingle/MNIST-Neural-Network
65501059cc89969c8aeea9aaca1aa85a49db364c
[ "MIT" ]
null
null
null
# Trains recurrant neural network on MNIST handwritten digit database # @author Tariq Rashid # @author Garrett Singletary import numpy from neuralnetwork import neuralNetwork class mnistNN: # number of input, hidden and output nodes input_nodes = 784 hidden_nodes = 150 output_nodes = 10 # learning rate learni...
29.125
74
0.735193
4a1d14d7fac7d1e00184eb52aafe9a23a1a04da0
3,718
py
Python
toto/inputs/tryaxis.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
1
2022-03-24T23:41:16.000Z
2022-03-24T23:41:16.000Z
toto/inputs/tryaxis.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
12
2021-02-24T22:30:52.000Z
2021-11-16T01:51:38.000Z
toto/inputs/tryaxis.py
calypso-science/Toto
85e90421343bf3dcf6d730767287647b5bc189bb
[ "MIT" ]
1
2021-09-21T11:37:09.000Z
2021-09-21T11:37:09.000Z
"""Read TRYAXIS file This import raw file for a TRYAXIS wave Buoy. This class returns a Panda Dataframe with some extra attributes such as Latitude,Longitude,Units. Parameters ~~~~~~~~~~ filename : (files,) str or list_like A list of filename to process. Notes ----- The f...
25.292517
101
0.517483
4a1d150da9071483d198cd1faf0ca308eea8e0e7
13,458
py
Python
desktop/core/ext-py/lxml-3.3.6/setupinfo.py
kokosing/hue
2307f5379a35aae9be871e836432e6f45138b3d9
[ "Apache-2.0" ]
5,079
2015-01-01T03:39:46.000Z
2022-03-31T07:38:22.000Z
desktop/core/ext-py/lxml-3.3.6/setupinfo.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
1,623
2015-01-01T08:06:24.000Z
2022-03-30T19:48:52.000Z
desktop/core/ext-py/lxml-3.3.6/setupinfo.py
zks888/hue
93a8c370713e70b216c428caa2f75185ef809deb
[ "Apache-2.0" ]
2,033
2015-01-04T07:18:02.000Z
2022-03-28T19:55:47.000Z
import sys, os, os.path from distutils.core import Extension from distutils.errors import DistutilsOptionError from versioninfo import get_base_dir, split_version try: from Cython.Distutils import build_ext as build_pyx import Cython.Compiler.Version CYTHON_INSTALLED = True except ImportError: CYTHON_I...
34.507692
96
0.638356
4a1d157bc7b6b1b8970a80b3b6f282798c3d894c
962
py
Python
kubernetes/test/test_v1_replica_set_status.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
2
2020-07-02T05:47:41.000Z
2020-07-02T05:50:34.000Z
kubernetes/test/test_v1_replica_set_status.py
fooka03/python
073cf4d89e532f92b57e8955b4efc3d5d5eb80cf
[ "Apache-2.0" ]
1
2021-03-25T23:44:49.000Z
2021-03-25T23:44:49.000Z
k8sdeployment/k8sstat/python/kubernetes/test/test_v1_replica_set_status.py
JeffYFHuang/gpuaccounting
afa934350ebbd0634beb60b9df4a147426ea0006
[ "MIT" ]
1
2021-10-13T17:45:37.000Z
2021-10-13T17:45:37.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import kube...
24.05
124
0.724532
4a1d1587442fa04909d688da3be7719da0df6155
3,960
py
Python
readthedocs/core/templatetags/core_tags.py
tkoyama010/readthedocs.org
aac8fb39586db902d9fbb51b639dd281c819dae2
[ "MIT" ]
19
2018-03-28T12:28:35.000Z
2022-02-14T20:09:42.000Z
readthedocs/core/templatetags/core_tags.py
tkoyama010/readthedocs.org
aac8fb39586db902d9fbb51b639dd281c819dae2
[ "MIT" ]
274
2017-10-10T07:59:04.000Z
2022-03-12T00:56:03.000Z
readthedocs/core/templatetags/core_tags.py
tkoyama010/readthedocs.org
aac8fb39586db902d9fbb51b639dd281c819dae2
[ "MIT" ]
13
2018-04-03T09:49:50.000Z
2021-04-18T22:04:15.000Z
"""Template tags for core app.""" import hashlib import json from urllib.parse import urlencode from django import template from django.conf import settings from django.core.serializers.json import DjangoJSONEncoder from django.utils.encoding import force_bytes, force_text from django.utils.safestring import mark_saf...
25.714286
86
0.644697
4a1d15bf085ec76cad25bad754538e04c5e0a95b
2,951
py
Python
numba/exttypes/ordering.py
liuzhenhai/numba
855a2b262ae3d82bd6ac1c3e1c0acb36ee2e2acf
[ "BSD-2-Clause" ]
1
2015-01-29T06:52:36.000Z
2015-01-29T06:52:36.000Z
numba/exttypes/ordering.py
shiquanwang/numba
a41c85fdd7d6abf8ea1ebe9116939ddc2217193b
[ "BSD-2-Clause" ]
null
null
null
numba/exttypes/ordering.py
shiquanwang/numba
a41c85fdd7d6abf8ea1ebe9116939ddc2217193b
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ This module defines ordering schemes for virtual methods and attributes. If we use hash-based virtual (method/attribute) tables, we don't care about the ordering. If we're using a C++ like virtual method/attribute table (like normal Python extension types do for attributes), we need to hav...
30.112245
78
0.634361
4a1d1645617654267502c9545e2ecbdcec3b1a28
1,197
py
Python
stdplugins/sicklet.py
dqanshi/PornHub
162a7053ca7f2c0b3617b852559cfaf0502d94a7
[ "Apache-2.0" ]
55
2019-07-13T15:57:54.000Z
2021-09-20T16:50:42.000Z
stdplugins/sicklet.py
dqanshi/PornHub
162a7053ca7f2c0b3617b852559cfaf0502d94a7
[ "Apache-2.0" ]
3
2020-04-15T02:08:53.000Z
2020-06-06T13:45:18.000Z
stdplugins/sicklet.py
dqanshi/PornHub
162a7053ca7f2c0b3617b852559cfaf0502d94a7
[ "Apache-2.0" ]
450
2019-07-12T13:18:41.000Z
2022-03-29T18:47:42.000Z
import io import textwrap from PIL import Image, ImageDraw, ImageFont from uniborg.util import admin_cmd @borg.on(admin_cmd(pattern="slet (.*)")) async def sticklet(event): sticktext = event.pattern_match.group(1) if not sticktext: await event.edit("`I need text to sticklet!`") return a...
30.692308
103
0.691729
4a1d16bb15c7f1564e610cbaa2318bde12c6dbd2
15,834
py
Python
samples/client/petstore/python/petstore_api/models/format_test.py
vithu30/openapi-generator
609b7cb21a9673cc1dfddcc3187679ed25fc0662
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/petstore_api/models/format_test.py
vithu30/openapi-generator
609b7cb21a9673cc1dfddcc3187679ed25fc0662
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/petstore_api/models/format_test.py
vithu30/openapi-generator
609b7cb21a9673cc1dfddcc3187679ed25fc0662
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ OpenAPI Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 The version of the OpenAPI document: 1.0.0 Generated by: https://openapi-generator.tech """ ...
31.354455
252
0.58267
4a1d1706f3af8c8e3e53e38be9ce291cd5d26919
6,623
py
Python
google/cloud/aiplatform_v1/services/prediction_service/transports/base.py
conankun/python-aiplatform
d6c1bce7e00186aa5ee3cd0e7b8712b21bd06f2a
[ "Apache-2.0" ]
180
2020-09-23T17:21:15.000Z
2022-03-30T17:25:47.000Z
google/cloud/aiplatform_v1/services/prediction_service/transports/base.py
conankun/python-aiplatform
d6c1bce7e00186aa5ee3cd0e7b8712b21bd06f2a
[ "Apache-2.0" ]
601
2020-09-23T16:23:44.000Z
2022-03-31T19:08:23.000Z
google/cloud/aiplatform_v1/services/prediction_service/transports/base.py
conankun/python-aiplatform
d6c1bce7e00186aa5ee3cd0e7b8712b21bd06f2a
[ "Apache-2.0" ]
109
2020-09-23T16:22:04.000Z
2022-03-28T21:18:29.000Z
# -*- coding: utf-8 -*- # 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...
36.794444
101
0.65499
4a1d1761a5bbe94aa73645d015fdefd47718bce7
557
py
Python
currency_api/apps/currency/management/commands/get_currencies.py
robypomoni/currency_api
987e5536179bb3db22f63b756730f72fabcdc619
[ "MIT" ]
null
null
null
currency_api/apps/currency/management/commands/get_currencies.py
robypomoni/currency_api
987e5536179bb3db22f63b756730f72fabcdc619
[ "MIT" ]
9
2020-02-11T21:48:21.000Z
2021-09-22T17:52:46.000Z
currency_api/apps/currency/management/commands/get_currencies.py
robypomoni/currency_api
987e5536179bb3db22f63b756730f72fabcdc619
[ "MIT" ]
null
null
null
import requests from django.core.management.base import BaseCommand from ...models import Currency class Command(BaseCommand): help = 'Download currencies list from https://openexchangerates.org' def handle(self, *args, **options): response = requests.get('https://openexchangerates.org/api/currenci...
29.315789
84
0.651706
4a1d1810bcc8007135a00a0bb0be9d40bc1c5694
487
py
Python
config.py
eno17/nbutcs_wechat_server
0673fc8250dc6477b305c49c12c65aa012304dc6
[ "Apache-2.0" ]
null
null
null
config.py
eno17/nbutcs_wechat_server
0673fc8250dc6477b305c49c12c65aa012304dc6
[ "Apache-2.0" ]
null
null
null
config.py
eno17/nbutcs_wechat_server
0673fc8250dc6477b305c49c12c65aa012304dc6
[ "Apache-2.0" ]
null
null
null
#coding=utf8 import os class Config: SECRET_KEY = 'hard to guess string' # os.environ.get('SECRET_KEY' ) SQLALCHEMY_TRACK_MODIFICATIONS = True SQLALCHEMY_COMMIT_ON_TEARDOWN = True @staticmethod def init_app(app): pass class DevelopmentConfig(Config): DEBUG = True SQLALCHEMY_DATA...
23.190476
103
0.718686
4a1d18fe31084610c968cc469caface69065a464
3,273
py
Python
src/collectors/logstash/logstash.py
Affirm/Diamond
d7482f03848e0f272a52a13ddb7a37894f740de3
[ "MIT" ]
null
null
null
src/collectors/logstash/logstash.py
Affirm/Diamond
d7482f03848e0f272a52a13ddb7a37894f740de3
[ "MIT" ]
5
2017-06-27T20:03:45.000Z
2020-03-01T21:06:28.000Z
src/collectors/logstash/logstash.py
Affirm/Diamond
d7482f03848e0f272a52a13ddb7a37894f740de3
[ "MIT" ]
1
2017-06-30T20:55:15.000Z
2017-06-30T20:55:15.000Z
# coding=utf-8 """ Collect the logstash stats for the local node #### Dependencies * urlib2 * json """ import urllib2 try: import json json # workaround for pyflakes issue #13 except ImportError: import simplejson as json import diamond.collector class LogstashCollector(diamond.collector.Collect...
29.223214
101
0.55026
4a1d190755d1d790d62d9e906ceab12cecea0742
9,164
py
Python
tests/collections/asr/numba/spec_augment/test_spec_aug_numba.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
2
2021-06-23T19:16:59.000Z
2022-02-23T18:49:07.000Z
tests/collections/asr/numba/spec_augment/test_spec_aug_numba.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
1
2021-07-19T05:36:38.000Z
2021-07-29T15:44:19.000Z
tests/collections/asr/numba/spec_augment/test_spec_aug_numba.py
PatrykNeubauer/NeMo
3ada744b884dba5f233f22c6991fc6092c6ca8d0
[ "Apache-2.0" ]
1
2021-11-30T15:13:15.000Z
2021-11-30T15:13:15.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appli...
33.815498
102
0.627346
4a1d1978a374bb0daad0591e0ba274a58dce606c
18,676
py
Python
os_brick/tests/local_dev/test_brick_lvm.py
Mionsz/os-brick
7a6a09fc84a779c3ee08d122664f941195eeab8f
[ "Apache-2.0" ]
61
2015-02-17T16:18:45.000Z
2021-09-16T18:46:01.000Z
os_brick/tests/local_dev/test_brick_lvm.py
Mionsz/os-brick
7a6a09fc84a779c3ee08d122664f941195eeab8f
[ "Apache-2.0" ]
2
2016-06-17T19:46:03.000Z
2022-02-16T02:29:02.000Z
os_brick/tests/local_dev/test_brick_lvm.py
Mionsz/os-brick
7a6a09fc84a779c3ee08d122664f941195eeab8f
[ "Apache-2.0" ]
62
2015-04-14T19:32:25.000Z
2022-03-31T16:32:53.000Z
# Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
42.253394
79
0.589473
4a1d1c2cc14a181da3e8fd4a2121a4423b2140e5
3,864
py
Python
packages/micropython-official/v1.15/esp32s2/stubs/machine.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
18
2019-07-11T13:31:09.000Z
2022-01-27T06:38:40.000Z
packages/micropython-official/v1.15/esp32s2/stubs/machine.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
9
2019-09-01T21:44:49.000Z
2022-02-04T20:55:08.000Z
packages/micropython-official/v1.15/esp32s2/stubs/machine.py
TheVinhLuong102/micropy-stubs
55ff1773008f7c4dfc3d70a403986486226eb6b3
[ "MIT" ]
6
2019-10-08T05:31:21.000Z
2021-04-22T10:21:01.000Z
""" Module: 'machine' on micropython-esp32-1.15 """ # MCU: {'ver': '1.15', 'port': 'esp32', 'arch': 'xtensawin', 'sysname': 'esp32', 'release': '1.15.0', 'name': 'micropython', 'mpy': 10757, 'version': '1.15.0', 'machine': 'ESP32-S2-SOALA-1 with ESP32S2', 'build': '', 'nodename': 'esp32', 'platform': 'esp32', 'family':...
11.534328
283
0.476708
4a1d1cdcad5cd74c50e6f38649593284483fbcd9
8,395
py
Python
src/vdf.py
Rusty-Helper/steamcmd
0c81a07918c60423ccfb6fdb96aae65a2b829f5b
[ "MIT" ]
23
2020-02-12T07:32:59.000Z
2022-03-19T15:32:00.000Z
src/vdf.py
Rusty-Helper/steamcmd
0c81a07918c60423ccfb6fdb96aae65a2b829f5b
[ "MIT" ]
26
2020-05-13T12:03:23.000Z
2022-02-21T22:01:05.000Z
src/vdf.py
Rusty-Helper/steamcmd
0c81a07918c60423ccfb6fdb96aae65a2b829f5b
[ "MIT" ]
7
2020-07-20T13:54:44.000Z
2022-02-03T19:55:48.000Z
#!/usr/bin/env python3 """ Valve key/value manipulation functions. """ # imports import sys import shlex import json def surround_quotes(obj): """ Surround input (string) with double quotes. """ # add double quotes around string obj = '"' + obj + '"' # return quoted string return ob...
28.076923
81
0.438594
4a1d1d310ed1372591df6e5a13ef3a7998ed5bb7
1,676
py
Python
src/focal_loss.py
tbachlechner/Heuristik
4eca32b9e32453439a9987257698dd88781d0a1f
[ "MIT" ]
25
2020-07-01T15:56:26.000Z
2020-07-10T19:12:39.000Z
src/focal_loss.py
tbachlechner/Heuristik
4eca32b9e32453439a9987257698dd88781d0a1f
[ "MIT" ]
null
null
null
src/focal_loss.py
tbachlechner/Heuristik
4eca32b9e32453439a9987257698dd88781d0a1f
[ "MIT" ]
2
2020-07-13T09:07:17.000Z
2020-11-29T21:21:13.000Z
""" Implements focal loss, see https://arxiv.org/pdf/1708.02002.pdf """ # Load packages import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable device = torch.device('cuda:0' if torch.cuda.is_available() else 'cpu') class FocalLoss(nn.Module): """ The focal los...
32.230769
77
0.591289
4a1d1d5bc587f37ebddec59a6dad9f2795578ccc
15
py
Python
geminidata/__init__.py
RileyR387/gemini-data-feed
9784dfd1c9ea976fbe9c93a08f5ba641ef858234
[ "MIT" ]
6
2019-05-24T04:41:46.000Z
2022-02-14T01:46:54.000Z
geminidata/__init__.py
RileyR387/gemini-data-feed
9784dfd1c9ea976fbe9c93a08f5ba641ef858234
[ "MIT" ]
7
2018-12-04T15:33:04.000Z
2020-09-11T06:17:15.000Z
catframes/__init__.py
georgy7/catframes
e65eb40a6d98b72a9d6609c057254a7ede3a0959
[ "CC0-1.0" ]
2
2019-09-25T19:50:15.000Z
2020-02-03T12:59:22.000Z
__all__ = []
3.75
12
0.466667
4a1d1eb02e6daec380735410d721e76027b99047
19,198
py
Python
sklearn/datasets/_svmlight_format_io.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
1
2021-11-19T06:21:43.000Z
2021-11-19T06:21:43.000Z
sklearn/datasets/_svmlight_format_io.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
2
2021-04-13T12:48:43.000Z
2021-04-13T16:17:58.000Z
sklearn/datasets/_svmlight_format_io.py
emarkou/scikit-learn
d73822f84f2832dcc25f0ff58769f60871a78025
[ "BSD-3-Clause" ]
1
2021-11-19T06:21:34.000Z
2021-11-19T06:21:34.000Z
"""This module implements a loader and dumper for the svmlight format This format is a text-based format, with one sample per line. It does not store zero valued features hence is suitable for sparse dataset. The first element of each line can be used to store a target variable to predict. This format is used as the...
38.705645
80
0.629128
4a1d1f14ae3d51b487e09d8b4d117f42105843f3
565
py
Python
setup.py
markjarzynski/slitscan
2f61b8161d45382593c807ba65e2753c1a995847
[ "MIT" ]
null
null
null
setup.py
markjarzynski/slitscan
2f61b8161d45382593c807ba65e2753c1a995847
[ "MIT" ]
null
null
null
setup.py
markjarzynski/slitscan
2f61b8161d45382593c807ba65e2753c1a995847
[ "MIT" ]
null
null
null
from setuptools import setup def readme(): with open('README.md') as f: return f.read() setup(name='slitscan', version='0.3.1', description='Slit-scan photography.', url='http://github.com/markjarzynski/slitscan', author='Mark Jarzynski', author_email='mark.jarzynski@gmail.co...
24.565217
65
0.587611
4a1d208864bbca039bdc1a40c81359b943a6188d
12,126
py
Python
fstxt/train.py
akramkohansal/pytorch-yolo3
21a78afbf097e4f17f62e9a76974ea2f6d7c65dd
[ "MIT" ]
null
null
null
fstxt/train.py
akramkohansal/pytorch-yolo3
21a78afbf097e4f17f62e9a76974ea2f6d7c65dd
[ "MIT" ]
null
null
null
fstxt/train.py
akramkohansal/pytorch-yolo3
21a78afbf097e4f17f62e9a76974ea2f6d7c65dd
[ "MIT" ]
null
null
null
from __future__ import print_function import sys import time import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torch.backends.cudnn as cudnn from torchvision import datasets, transforms from torch.autograd import Variable import tensorflow as tf from pyfasttext impo...
35.046243
159
0.606053
4a1d20eac3a3ebba2a4bed2e8b773a9d1f0d045b
6,363
py
Python
word_language_model/model.py
kyox24/examples
3d63fe18c5016baedaf0170ba339f2412e4cc4f2
[ "BSD-3-Clause" ]
null
null
null
word_language_model/model.py
kyox24/examples
3d63fe18c5016baedaf0170ba339f2412e4cc4f2
[ "BSD-3-Clause" ]
null
null
null
word_language_model/model.py
kyox24/examples
3d63fe18c5016baedaf0170ba339f2412e4cc4f2
[ "BSD-3-Clause" ]
null
null
null
import math import torch import torch.nn as nn import torch.nn.functional as F class RNNModel(nn.Module): """Container module with an encoder, a recurrent module, and a decoder.""" def __init__(self, rnn_type, ntoken, ninp, nhid, nlayers, dropout=0.5, tie_weights=False): super(RNNModel, self).__init__...
41.588235
110
0.624234
4a1d22684ec4525792d563193689eca6ad2205b0
617
py
Python
sdk/python/pulumi_azure_native/desktopvirtualization/v20201102preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/desktopvirtualization/v20201102preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/desktopvirtualization/v20201102preview/__init__.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** from ... import _utilities import typing # Export this package's modules as members: from ._enums import * from .application import * from .application...
29.380952
80
0.756888
4a1d25bbc5882327434365e0944aed6ecc4728cc
37,579
py
Python
test/functional/wallet_basic.py
timmywheels/bitcoin
55a156fca08713b020aafef91f40df8ce4bc3cae
[ "MIT" ]
2
2021-05-18T06:24:12.000Z
2021-05-18T07:21:03.000Z
test/functional/wallet_basic.py
timmywheels/bitcoin
55a156fca08713b020aafef91f40df8ce4bc3cae
[ "MIT" ]
1
2021-05-20T02:45:54.000Z
2021-05-20T02:45:54.000Z
test/functional/wallet_basic.py
timmywheels/bitcoin
55a156fca08713b020aafef91f40df8ce4bc3cae
[ "MIT" ]
1
2021-05-21T13:12:57.000Z
2021-05-21T13:12:57.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2020 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 the wallet.""" from decimal import Decimal from itertools import product from test_framework.test...
54.700146
193
0.651082
4a1d26aaf0002aa50b78afe1b6f261b013c80c0a
15,013
py
Python
helm/dagster/schema/schema_tests/test_instance.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
null
null
null
helm/dagster/schema/schema_tests/test_instance.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
null
null
null
helm/dagster/schema/schema_tests/test_instance.py
dbatten5/dagster
d76e50295054ffe5a72f9b292ef57febae499528
[ "Apache-2.0" ]
1
2021-09-26T07:29:17.000Z
2021-09-26T07:29:17.000Z
import pytest import yaml from dagster.core.run_coordinator import QueuedRunCoordinator from dagster_aws.s3.compute_log_manager import S3ComputeLogManager from dagster_azure.blob.compute_log_manager import AzureBlobComputeLogManager from dagster_gcp.gcs.compute_log_manager import GCSComputeLogManager from kubernetes.cl...
37.160891
99
0.686139
4a1d2711b755c3e1656563c25462f1c7b5485e26
15,942
py
Python
run_tests.py
blobfish/meson
d0c7b5169303fb0a394201d90be1e74426d7b2d9
[ "Apache-2.0" ]
1
2020-01-21T21:57:32.000Z
2020-01-21T21:57:32.000Z
run_tests.py
blobfish/meson
d0c7b5169303fb0a394201d90be1e74426d7b2d9
[ "Apache-2.0" ]
null
null
null
run_tests.py
blobfish/meson
d0c7b5169303fb0a394201d90be1e74426d7b2d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2012-2017 The Meson development 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...
38.788321
101
0.657446
4a1d271b665767d4cda7db035c3dd83b19fce1a1
3,757
py
Python
alipay/aop/api/domain/AlipayDataBillTransferaccountbookQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipayDataBillTransferaccountbookQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipayDataBillTransferaccountbookQueryModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayDataBillTransferaccountbookQueryModel(object): def __init__(self): self._agreement_no = None self._end_time = None self._page_no = None self._page_size = Non...
28.679389
75
0.571467
4a1d29dc19aa9032b3587283770a2a34826fffa6
24,186
py
Python
andes/models/agc.py
mhdella/andes
5b0d2e3e101a38fe0fd2d27343a0ce3f900be45e
[ "Apache-2.0" ]
1
2019-12-24T12:57:05.000Z
2019-12-24T12:57:05.000Z
andes/models/agc.py
mhdella/andes
5b0d2e3e101a38fe0fd2d27343a0ce3f900be45e
[ "Apache-2.0" ]
null
null
null
andes/models/agc.py
mhdella/andes
5b0d2e3e101a38fe0fd2d27343a0ce3f900be45e
[ "Apache-2.0" ]
null
null
null
import sys import logging import numpy as np import importlib import platform from cvxopt import mul, div, matrix, sparse, spdiag, spmatrix from cvxopt.modeling import variable, op # NOQA from andes.consts import Gx, Fy0, Gy0 from andes.models.base import ModelBase from andes.utils.math import zeros, index from andes...
37.731669
115
0.527206
4a1d2ad95bf6bb003dfd153049645be9a35a5b14
5,733
py
Python
cirq/ops/phased_iswap_gate_test.py
gnperdue/Cirq
15c142df5b1d27bdd42bd5b3f9330cf0c5af4e9b
[ "Apache-2.0" ]
null
null
null
cirq/ops/phased_iswap_gate_test.py
gnperdue/Cirq
15c142df5b1d27bdd42bd5b3f9330cf0c5af4e9b
[ "Apache-2.0" ]
null
null
null
cirq/ops/phased_iswap_gate_test.py
gnperdue/Cirq
15c142df5b1d27bdd42bd5b3f9330cf0c5af4e9b
[ "Apache-2.0" ]
1
2020-12-18T16:36:41.000Z
2020-12-18T16:36:41.000Z
# Copyright 2019 The Cirq Developers # # 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 ...
33.138728
80
0.614338
4a1d2afa2d9638c2015b5f846be1524a1c3af96d
227
py
Python
Darlington/phase1/python Basic 2/day 21 solution/qtn2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
6
2020-05-23T19:53:25.000Z
2021-05-08T20:21:30.000Z
Darlington/phase1/python Basic 2/day 21 solution/qtn2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
8
2020-05-14T18:53:12.000Z
2020-07-03T00:06:20.000Z
Darlington/phase1/python Basic 2/day 21 solution/qtn2.py
CodedLadiesInnovateTech/-python-challenge-solutions
430cd3eb84a2905a286819eef384ee484d8eb9e7
[ "MIT" ]
39
2020-05-10T20:55:02.000Z
2020-09-12T17:40:59.000Z
#program that accepts six numbers as input and sorts them in descending order. print("Input six integers:") nums = list(map(int, input().split())) nums.sort() nums.reverse() print("After sorting the said ntegers:") print(*nums)
32.428571
78
0.740088
4a1d2b2c5e672adacbe709a1b4bf99051e818983
573
py
Python
scripts/general/feather_to_excel.py
morrislab/plos-medicine-joint-patterns
cfdc6dd4854ec33e7e2efbf36d648b65d278df33
[ "MIT" ]
null
null
null
scripts/general/feather_to_excel.py
morrislab/plos-medicine-joint-patterns
cfdc6dd4854ec33e7e2efbf36d648b65d278df33
[ "MIT" ]
null
null
null
scripts/general/feather_to_excel.py
morrislab/plos-medicine-joint-patterns
cfdc6dd4854ec33e7e2efbf36d648b65d278df33
[ "MIT" ]
1
2021-04-05T22:21:58.000Z
2021-04-05T22:21:58.000Z
""" Converts a Feather file to an Excel file. """ from click import * from logging import * import pandas as pd @command() @option("--input", required=True, help="the Feather file to read input from") @option("--output", required=True, help="the Excel file to write output to") def main(input, output): basicCon...
15.916667
77
0.652705
4a1d2c0bc35ea4780434bf367a04185345d34f8f
3,067
py
Python
app/dashapp1/callbacks.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
1
2020-06-26T21:49:14.000Z
2020-06-26T21:49:14.000Z
app/dashapp1/callbacks.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
2
2020-03-31T11:11:04.000Z
2021-12-13T20:38:48.000Z
app/dashapp1/callbacks.py
credwood/bitplayers
4ca6b6c6a21bb21d7cd963c64028415559c3dcc4
[ "MIT" ]
null
null
null
from datetime import datetime as dt from dash.dependencies import Input from dash.dependencies import Output import dash_core_components as dcc import dash_html_components as html import pandas as pd import plotly import plotly.graph_objs as go import pandas as pd import mysql.connector as sql def register_callbacks(...
38.822785
119
0.529508
4a1d2c0c1c6cac5e7a8fef918cf6e33d095126fe
5,021
py
Python
ks_main.py
almyki/Kitchen-Scraps-v2
f7770eb755caa03ea7db39f0fa2661dec7de21c1
[ "Unlicense" ]
null
null
null
ks_main.py
almyki/Kitchen-Scraps-v2
f7770eb755caa03ea7db39f0fa2661dec7de21c1
[ "Unlicense" ]
null
null
null
ks_main.py
almyki/Kitchen-Scraps-v2
f7770eb755caa03ea7db39f0fa2661dec7de21c1
[ "Unlicense" ]
null
null
null
"""Main module for the game Kitchen Scraps.""" #### OUTLINE - MODULES # ks_main.py """Contains the active gameplay loop. The \'central hub\' that puts to use the rest of the modules/classes. This should not contain any classes or functions of its own.""" # ks_settings.py """One huge class that contains all the act...
39.226563
162
0.641705
4a1d2c1074ce635c02d908254fd5b5512c3c1b2e
2,164
py
Python
elit/datasets/parsing/semeval15.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
4
2021-09-17T15:23:31.000Z
2022-02-28T10:18:04.000Z
elit/datasets/parsing/semeval15.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
elit/datasets/parsing/semeval15.py
emorynlp/stem-cell-hypothesis
48a628093d93d653865fbac6409d179cddd99293
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # Author: hankcs # Date: 2020-07-28 14:40 # from elit.datasets.parsing.conll_dataset import CoNLLParsingDataset # # # class SemEval15Dataset(CoNLLParsingDataset): # def load_file(self, filepath: str): # pass import warnings from hanlp_common.constant import ROOT, PAD from hanlp_commo...
34.903226
100
0.544362
4a1d2c87cb84ffc9da569d74b59033e26486b165
2,499
py
Python
sdk/synapse/azure-synapse-monitoring/setup.py
sammiee5311/azure-sdk-for-python
bc99c220bcada3aa7187e915f9df65f4fa0669c5
[ "MIT" ]
null
null
null
sdk/synapse/azure-synapse-monitoring/setup.py
sammiee5311/azure-sdk-for-python
bc99c220bcada3aa7187e915f9df65f4fa0669c5
[ "MIT" ]
null
null
null
sdk/synapse/azure-synapse-monitoring/setup.py
sammiee5311/azure-sdk-for-python
bc99c220bcada3aa7187e915f9df65f4fa0669c5
[ "MIT" ]
null
null
null
#!/usr/bin/env python #------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. #----------------------------------------------------------------...
34.232877
91
0.609444
4a1d2c91f945fd9d1c396d58932d8e06696825f0
21,484
py
Python
zuul.d/octavia/amphorae/drivers/haproxy/rest_api_driver.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/amphorae/drivers/haproxy/rest_api_driver.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
zuul.d/octavia/amphorae/drivers/haproxy/rest_api_driver.py
yi-cloud/octavia
b7f5cfa4c3c454925a90c24984049539228806d7
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Hewlett-Packard Development Company, L.P. # Copyright (c) 2015 Rackspace # # 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...
42.968
80
0.577686
4a1d2cee5713369fd75c04e1ddc60f8fc3c9bfe1
8,047
py
Python
tests/transitfeed/testfrequency.py
Bertware/transitfeed
699986d54744d85613c7b1ec6c08e0c333a50dbd
[ "Apache-2.0" ]
647
2015-01-03T05:35:57.000Z
2022-03-28T03:45:21.000Z
tests/transitfeed/testfrequency.py
Bertware/transitfeed
699986d54744d85613c7b1ec6c08e0c333a50dbd
[ "Apache-2.0" ]
111
2015-01-20T21:03:14.000Z
2022-01-21T17:30:35.000Z
tests/transitfeed/testfrequency.py
Bertware/transitfeed
699986d54744d85613c7b1ec6c08e0c333a50dbd
[ "Apache-2.0" ]
286
2015-01-07T05:25:17.000Z
2022-03-24T15:21:14.000Z
# Copyright (C) 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
47.89881
74
0.562446
4a1d2da58f693ab49d5cd09a5fa055cb47d8fe92
758
py
Python
backend/backend/urls.py
Alex-code-01/gap-service
b63f9cb1ad6d1fbfdf09f75fc8c51ca8ed952592
[ "MIT" ]
null
null
null
backend/backend/urls.py
Alex-code-01/gap-service
b63f9cb1ad6d1fbfdf09f75fc8c51ca8ed952592
[ "MIT" ]
8
2021-03-27T18:30:40.000Z
2021-04-23T17:34:58.000Z
backend/backend/urls.py
Alex-code-01/gap-service
b63f9cb1ad6d1fbfdf09f75fc8c51ca8ed952592
[ "MIT" ]
4
2021-05-08T08:57:34.000Z
2021-05-21T19:05:21.000Z
"""backend URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
34.454545
77
0.709763
4a1d2ee44806b242fb175561d905d1bd6bed521f
2,701
py
Python
metalibm_core/utility/arg_utils.py
metalibm/metalibm-clone
d04839e58950a156b79b763b9f45cb874e21ebfe
[ "MIT" ]
27
2018-03-12T16:49:36.000Z
2021-12-15T06:53:55.000Z
metalibm_core/utility/arg_utils.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
57
2018-03-12T16:49:56.000Z
2021-03-04T15:25:39.000Z
metalibm_core/utility/arg_utils.py
nibrunie/metalibm
776b044f5f323ef907a8724d9ce9a27a482f6cc5
[ "MIT" ]
4
2018-03-12T15:40:22.000Z
2018-11-28T14:34:54.000Z
# -*- coding: utf-8 -*- ############################################################################### # This file is part of metalibm (https://github.com/kalray/metalibm) ############################################################################### # MIT License # # Copyright (c) 2018 Kalray # # Permission is here...
50.018519
129
0.668271
4a1d2f0b3b8e0242b9c8dcef4123452d18d05dad
1,289
py
Python
django-classic-leads/setup.py
kailashchandra92/django-classic-user-account
f3a4e5c0b424d8ed63d4f393bfa141a2de526c9a
[ "BSD-2-Clause" ]
null
null
null
django-classic-leads/setup.py
kailashchandra92/django-classic-user-account
f3a4e5c0b424d8ed63d4f393bfa141a2de526c9a
[ "BSD-2-Clause" ]
null
null
null
django-classic-leads/setup.py
kailashchandra92/django-classic-user-account
f3a4e5c0b424d8ed63d4f393bfa141a2de526c9a
[ "BSD-2-Clause" ]
null
null
null
import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() # allow setup.py to be run from any path os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='django-classic-user-acc...
33.051282
78
0.631497
4a1d2fc6eda877e92101d99b44846437ac6790fd
785
py
Python
examples/datetimecol.py
nullptrT/flask_table
d4577307bf3b790fb1d91238019577beb477ee4a
[ "BSD-3-Clause" ]
215
2015-01-09T12:18:19.000Z
2022-01-31T00:18:29.000Z
examples/datetimecol.py
nullptrT/flask_table
d4577307bf3b790fb1d91238019577beb477ee4a
[ "BSD-3-Clause" ]
93
2015-02-03T22:39:02.000Z
2022-01-26T04:12:16.000Z
examples/datetimecol.py
nullptrT/flask_table
d4577307bf3b790fb1d91238019577beb477ee4a
[ "BSD-3-Clause" ]
48
2015-04-29T09:23:34.000Z
2022-01-21T13:50:39.000Z
import os from datetime import datetime # Run this example with LC_TIME=[other locale] to use a different # locale's datetime formatting, eg: # # LC_TIME=en_US python examples/datetimecol.py # or # LC_TIME=en_GB python examples/datetimecol.py os.environ.setdefault('LC_TIME', 'en_GB') # noqa from flask_table import T...
20.128205
65
0.647134
4a1d2ff5691231775cc7de87fcf96f892391ea28
12,262
py
Python
venv/lib/python3.6/site-packages/thinc/neural/_classes/model.py
lumierra/project-flask
6e27148299a283c92f5d758d269f3b5fc6e2163e
[ "MIT" ]
1
2018-10-30T07:19:27.000Z
2018-10-30T07:19:27.000Z
venv/lib/python3.6/site-packages/thinc/neural/_classes/model.py
lumierra/project-flask
6e27148299a283c92f5d758d269f3b5fc6e2163e
[ "MIT" ]
4
2020-07-26T02:10:42.000Z
2021-03-31T18:48:58.000Z
venv/lib/python3.6/site-packages/thinc/neural/_classes/model.py
lumierra/project-flask
6e27148299a283c92f5d758d269f3b5fc6e2163e
[ "MIT" ]
1
2020-11-18T06:18:15.000Z
2020-11-18T06:18:15.000Z
from __future__ import division, unicode_literals from numpy import prod import numpy import contextlib import msgpack import msgpack_numpy from collections import OrderedDict msgpack_numpy.patch() from .. import util from ..train import Trainer from ..ops import NumpyOps, CupyOps from ..mem import Memory from ..util...
33.320652
87
0.545833
4a1d30ef98ff9d39fdf6083a1ef1274006c1c684
32,950
py
Python
rlssm/fits_race.py
birgovanandrei/rlssm
32f3deaa2b69b6cf974a4334ab39b0d3822cf29f
[ "MIT" ]
11
2021-02-25T11:02:13.000Z
2021-11-09T00:49:05.000Z
rlssm/fits_race.py
birgovanandrei/rlssm
32f3deaa2b69b6cf974a4334ab39b0d3822cf29f
[ "MIT" ]
null
null
null
rlssm/fits_race.py
birgovanandrei/rlssm
32f3deaa2b69b6cf974a4334ab39b0d3822cf29f
[ "MIT" ]
10
2021-03-27T13:14:45.000Z
2022-03-19T15:58:23.000Z
from __future__ import absolute_import, division, print_function import os import re import pickle import warnings import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from rlssm import plotting from .utils import list_individual_variables from .stan_utility import check_all_diag...
42.571059
124
0.528225
4a1d3120cff02dd8ed932177fb132e751e39b658
33,801
py
Python
python/dgl/distributed/rpc.py
marwage/dgl
15e3ff878c3d8927b6f6fac702e4f74eaee7607a
[ "Apache-2.0" ]
null
null
null
python/dgl/distributed/rpc.py
marwage/dgl
15e3ff878c3d8927b6f6fac702e4f74eaee7607a
[ "Apache-2.0" ]
null
null
null
python/dgl/distributed/rpc.py
marwage/dgl
15e3ff878c3d8927b6f6fac702e4f74eaee7607a
[ "Apache-2.0" ]
null
null
null
"""RPC components. They are typically functions or utilities used by both server and clients.""" import abc import pickle import random import numpy as np from .._ffi.object import register_object, ObjectBase from .._ffi.function import _init_api from ..base import DGLError from .. import backend as F __all__ = ['set...
29.264935
97
0.632762
4a1d3267318da7677d4f7747ef98194aefe18464
1,249
py
Python
server/__init__.py
michaelscales88/irrigation-site
847bfb5b874d3813b71ea2939fd83459a6a1f991
[ "MIT" ]
null
null
null
server/__init__.py
michaelscales88/irrigation-site
847bfb5b874d3813b71ea2939fd83459a6a1f991
[ "MIT" ]
null
null
null
server/__init__.py
michaelscales88/irrigation-site
847bfb5b874d3813b71ea2939fd83459a6a1f991
[ "MIT" ]
null
null
null
# server/__init__.py from flask import Flask, Blueprint from flask_restful import Api from .server import build_server def create_server(*cfg): """ Creates the server that the html pages interact with. """ server_instance = Flask( __name__, instance_relative_config=True, templ...
30.463415
72
0.713371
4a1d326b147d3757792c79302153014122111c85
1,284
py
Python
scipy/odr/setup.py
opoplawski/scipy
582d59caabb4a2a6fcdd06b512dcd14daf7ca6b2
[ "BSD-3-Clause" ]
null
null
null
scipy/odr/setup.py
opoplawski/scipy
582d59caabb4a2a6fcdd06b512dcd14daf7ca6b2
[ "BSD-3-Clause" ]
null
null
null
scipy/odr/setup.py
opoplawski/scipy
582d59caabb4a2a6fcdd06b512dcd14daf7ca6b2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from __future__ import division, print_function, absolute_import from os.path import join def configuration(parent_package='', top_path=None): import warnings from numpy.distutils.misc_util import Configuration from numpy.distutils.system_info import get_info, BlasNotFoundError ...
29.860465
71
0.659657
4a1d32d25d068ea2e2c56e38484e227346f35670
2,820
py
Python
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/404_aggregate-3y.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
1
2020-02-28T12:03:39.000Z
2020-02-28T12:03:39.000Z
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/404_aggregate-3y.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
null
null
null
Kaggle/Playgroud/RiskPrediction/Home-Credit-Default-Risk-master/py/404_aggregate-3y.py
hehuanlin123/DeepLearning
6b7feabbbde9ac9489f76da4c06eeb6703fb165a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Jun 20 10:30:13 2018 @author: Kazuki based on https://www.kaggle.com/jsaguiar/updated-0-792-lb-lightgbm-with-simple-features/code """ import numpy as np import pandas as pd import gc import os from multiprocessing import Pool, cpu_count NTHREAD = cpu_...
28.484848
91
0.475177
4a1d3480cf28bea4d86ba312237dc486433525f9
1,461
py
Python
tools/contourlet_transform/tools/nsdfbdec.py
yilinshao/CoT-Contourlet-Transformer
44d36a05f81ec168e3ccd8b9438ddaee6283189e
[ "MIT" ]
4
2021-12-21T07:45:01.000Z
2021-12-21T09:15:47.000Z
tools/contourlet_transform/tools/nsdfbdec.py
yilinshao/CoT-Contourlet-Transformer
44d36a05f81ec168e3ccd8b9438ddaee6283189e
[ "MIT" ]
null
null
null
tools/contourlet_transform/tools/nsdfbdec.py
yilinshao/CoT-Contourlet-Transformer
44d36a05f81ec168e3ccd8b9438ddaee6283189e
[ "MIT" ]
null
null
null
from .nssfbdec import * from tqdm import tqdm def nsdfbdec(x, dfilter, clevels, gpu_mode=False): k1 = dfilter[0] k2 = dfilter[1] f1 = dfilter[2] f2 = dfilter[3] q1 = [[1, -1], [1, 1]] y = [] if clevels == 1: y1, y2 = nssfbdec(x, k1, k2, gpu_mode=gpu_mode) y.append(y1) ...
33.204545
104
0.44011
4a1d35781e822d848ed32add7b83a3be0b925a90
1,373
py
Python
nuplan/planning/nuboard/base/test/test_nuboard_file.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
128
2021-12-06T15:41:14.000Z
2022-03-29T13:16:32.000Z
nuplan/planning/nuboard/base/test/test_nuboard_file.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
28
2021-12-11T08:11:31.000Z
2022-03-25T02:35:43.000Z
nuplan/planning/nuboard/base/test/test_nuboard_file.py
motional/nuplan-devkit
e39029e788b17f47f2fcadb774098ef8fbdd0d67
[ "Apache-2.0" ]
14
2021-12-11T04:12:26.000Z
2022-03-24T06:38:30.000Z
import os import tempfile import unittest from pathlib import Path from nuplan.planning.nuboard.base.data_class import NuBoardFile class TestNuBoardFile(unittest.TestCase): """Test NuBoardFile functionality.""" def setUp(self) -> None: """Set up a nuBoard file class.""" self.tmp_dir = tempfi...
33.487805
107
0.694829
4a1d3697605a91b8572c4d1a413625e8869e6338
7,788
py
Python
backend/model/__init__.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
7
2018-05-20T08:56:08.000Z
2022-03-11T15:50:54.000Z
backend/model/__init__.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
2
2021-06-08T21:12:51.000Z
2022-01-13T01:25:27.000Z
backend/model/__init__.py
deti/boss
bc0cfe3067bf1cbf26789f7443a36e7cdd2ac869
[ "Apache-2.0" ]
5
2016-10-09T14:52:09.000Z
2020-12-25T01:04:35.000Z
import conf import arrow import logbook import warnings from collections.abc import Iterable from sqlalchemy.exc import IntegrityError from model.sa import SQLAlchemy from attrdict import AttrDict from functools import wraps from sqlalchemy.orm import joinedload warnings.filterwarnings("ignore", "Data truncated for c...
33
117
0.624037
4a1d3716bdfbb96b8199cdf85b8f9ba20fc70936
96
py
Python
tests/data/test_02/test_03_expected.py
astahlman/format-sql
0c93acbf5517ac8e05394621cc0507cac3d75e66
[ "BSD-2-Clause" ]
56
2015-03-20T13:10:31.000Z
2022-01-05T11:23:02.000Z
tests/data/test_02/test_03_expected.py
astahlman/format-sql
0c93acbf5517ac8e05394621cc0507cac3d75e66
[ "BSD-2-Clause" ]
9
2015-08-20T21:03:42.000Z
2021-07-22T02:34:48.000Z
tests/data/test_02/test_03_expected.py
astahlman/format-sql
0c93acbf5517ac8e05394621cc0507cac3d75e66
[ "BSD-2-Clause" ]
16
2016-04-24T02:09:44.000Z
2020-12-05T02:07:03.000Z
def args(): X.objects.raw(""" SELECT * FROM k; """)
13.714286
21
0.302083
4a1d37588aab3dae832a9edd3914a4d8cc645d0e
1,100
py
Python
scrapyd/runner.py
cazana/scrapyd
b4c80e2b95162b8c06dbf11e8964cdcd0bcde7da
[ "BSD-3-Clause" ]
1
2020-08-14T10:29:12.000Z
2020-08-14T10:29:12.000Z
scrapyd/runner.py
cazana/scrapyd
b4c80e2b95162b8c06dbf11e8964cdcd0bcde7da
[ "BSD-3-Clause" ]
3
2021-11-17T11:22:25.000Z
2021-12-15T16:27:39.000Z
scrapyd/runner.py
cazana/scrapyd
b4c80e2b95162b8c06dbf11e8964cdcd0bcde7da
[ "BSD-3-Clause" ]
null
null
null
import sys import os import shutil import tempfile from contextlib import contextmanager from scrapyd import get_application from scrapyd.interfaces import IEggStorage from scrapyd.eggutils import activate_egg @contextmanager def project_environment(project): app = get_application() eggstorage = app.getCompon...
26.829268
81
0.674545
4a1d3786208582f3961b1bb3c7456dfd4fedc12e
325
py
Python
SeleniumWrapper_JE/test/start_webdriver_test/get_webdriver.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
SeleniumWrapper_JE/test/start_webdriver_test/get_webdriver.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
SeleniumWrapper_JE/test/start_webdriver_test/get_webdriver.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
from selenium_wrapper import get_webdriver if __name__ == "__main__": driver_wrapper = get_webdriver( "chrome" ) driver_wrapper.set_webdriver_options_capability({"test": "test"}) driver_wrapper.open_browser("http://www.python.org") print(driver_wrapper.webdriver.title) driver_wrapper.qu...
29.545455
69
0.729231
4a1d379bf2207f2996a4541b1d55e42a3290f787
4,364
py
Python
tests/serialization/test_run_configs.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
8,633
2019-03-23T17:51:03.000Z
2022-03-31T22:17:42.000Z
tests/serialization/test_run_configs.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
3,903
2019-03-23T19:11:21.000Z
2022-03-31T23:21:23.000Z
tests/serialization/test_run_configs.py
suryatmodulus/prefect
e4ac9f6aa831140c7fba0397f3e5e0884b1b9e42
[ "Apache-2.0" ]
937
2019-03-23T18:49:44.000Z
2022-03-31T21:45:13.000Z
import pytest from prefect.run_configs import KubernetesRun, LocalRun, DockerRun, ECSRun, UniversalRun from prefect.serialization.run_config import RunConfigSchema, RunConfigSchemaBase def test_serialized_run_config_sorts_labels(): assert RunConfigSchemaBase().dump({"labels": ["b", "c", "a"]})["labels"] == [ ...
27.796178
88
0.547663
4a1d37fbfcb0eba68f110458b9d18806cbb9cfd7
34,445
py
Python
salt/modules/btrfs.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
1
2022-03-12T00:03:19.000Z
2022-03-12T00:03:19.000Z
salt/modules/btrfs.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
2
2022-03-02T16:11:35.000Z
2022-03-03T08:04:30.000Z
salt/modules/btrfs.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
null
null
null
# # Copyright 2014 SUSE 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, softw...
27.05813
107
0.593787
4a1d39b1baec2384febc21fe2f329b5504f2d503
17,151
py
Python
pysnmp/H3C-VOICE-DIAL-CONTROL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/H3C-VOICE-DIAL-CONTROL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/H3C-VOICE-DIAL-CONTROL-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module H3C-VOICE-DIAL-CONTROL-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/H3C-VOICE-DIAL-CONTROL-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 19:11:21 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version ...
119.937063
2,713
0.770159
4a1d3a16b75116f404e8951e5669211dbd110f25
5,504
py
Python
leasing/viewsets/invoice.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
leasing/viewsets/invoice.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
leasing/viewsets/invoice.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
from django.utils.translation import ugettext_lazy as _ from django_filters.rest_framework import DjangoFilterBackend from django_filters.widgets import BooleanWidget from rest_framework.exceptions import ValidationError from rest_framework.viewsets import ReadOnlyModelViewSet from field_permissions.viewsets import Fi...
34.186335
88
0.695131
4a1d3af5fcd49cbee30ad103df8b678188f0e46f
1,198
py
Python
apps/adopcion/forms.py
freygeth/refugiobeta
6f350b7577a816e028de93cbc187fbf17ce056d3
[ "Unlicense" ]
null
null
null
apps/adopcion/forms.py
freygeth/refugiobeta
6f350b7577a816e028de93cbc187fbf17ce056d3
[ "Unlicense" ]
null
null
null
apps/adopcion/forms.py
freygeth/refugiobeta
6f350b7577a816e028de93cbc187fbf17ce056d3
[ "Unlicense" ]
null
null
null
# -*- encoding:utf-8 -*- from django import forms from adopcion.models import Persona, Solicitud class PersonaForm(forms.ModelForm): class Meta: model = Persona fields = [ 'nombre', 'apellidos', 'edad', 'telefono', 'email', 'domicilio', ] labels = { 'nombre':'Nombre', 'apellidos':'Apel...
24.44898
69
0.643573
4a1d3b6c207c7ff1c680842e4a121c75adfa4e03
1,293
py
Python
home/migrations/0001_initial.py
mhdSharuk/CodePanda
55ce8e271378df5d27ee7b3d681cca69e0c2ca83
[ "MIT" ]
null
null
null
home/migrations/0001_initial.py
mhdSharuk/CodePanda
55ce8e271378df5d27ee7b3d681cca69e0c2ca83
[ "MIT" ]
null
null
null
home/migrations/0001_initial.py
mhdSharuk/CodePanda
55ce8e271378df5d27ee7b3d681cca69e0c2ca83
[ "MIT" ]
null
null
null
# Generated by Django 3.2 on 2021-04-12 09:51 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Question', ...
34.945946
120
0.58778
4a1d3c6845dccb0a3e07e3f1d3a38007c373368d
7,278
py
Python
keras/optimizers/optimizer_experimental/sgd.py
shraddhazpy/keras
21a78464c191c40a90ed4e3ddfed747ae994703e
[ "Apache-2.0" ]
1
2020-02-02T04:43:33.000Z
2020-02-02T04:43:33.000Z
keras/optimizers/optimizer_experimental/sgd.py
CloudboySolutions/keras
b96518a22bfd92a29811e507dec0b34248a8a3f5
[ "Apache-2.0" ]
null
null
null
keras/optimizers/optimizer_experimental/sgd.py
CloudboySolutions/keras
b96518a22bfd92a29811e507dec0b34248a8a3f5
[ "Apache-2.0" ]
1
2020-12-13T22:14:48.000Z
2020-12-13T22:14:48.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.502439
80
0.650316
4a1d3cb18d162cda3365aef674d3e6b03f1b48bd
706
py
Python
yamlconf/tests/test_propagate_defaults.py
halfak/yamlconf
6b84ca8a7f738a1fe6b3b67b30b55acaaa8a56a8
[ "MIT" ]
1
2019-01-20T23:03:08.000Z
2019-01-20T23:03:08.000Z
yamlconf/tests/test_propagate_defaults.py
halfak/yamlconf
6b84ca8a7f738a1fe6b3b67b30b55acaaa8a56a8
[ "MIT" ]
3
2015-12-16T21:05:23.000Z
2020-05-27T19:18:39.000Z
yamlconf/tests/test_propagate_defaults.py
halfak/yamlconf
6b84ca8a7f738a1fe6b3b67b30b55acaaa8a56a8
[ "MIT" ]
2
2015-09-15T04:38:09.000Z
2020-05-27T17:58:26.000Z
from nose.tools import eq_ from ..propagate_defaults import propagate_defaults def test_propagate_defaults(): input = { 'foos': { 'defaults': { 'bar': 1, 'baz': 2 }, '1_foo': {}, '2_foo': { 'baz': 3 ...
19.081081
51
0.313031
4a1d3d706b3fe6c8f029c6fc3a5ad124a49684c6
558
py
Python
var/spack/repos/builtin/packages/sparsehash/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2020-10-15T01:08:42.000Z
2021-10-18T01:28:18.000Z
var/spack/repos/builtin/packages/sparsehash/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2019-07-30T10:12:28.000Z
2019-12-17T09:02:27.000Z
var/spack/repos/builtin/packages/sparsehash/package.py
adrianjhpc/spack
0a9e4fcee57911f2db586aa50c8873d9cca8de92
[ "ECL-2.0", "Apache-2.0", "MIT" ]
5
2019-07-30T09:42:14.000Z
2021-01-25T05:39:20.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Sparsehash(AutotoolsPackage): """Sparse and dense hash-tables for C++ by Google""" hom...
37.2
95
0.752688
4a1d3e7a06edf0a09632027365e615554cf24415
7,388
py
Python
tests/runTest.py
movie-travel-code/cppinsights
0cc79032db5e7fad06f3523771ff4a9111a0beef
[ "MIT" ]
null
null
null
tests/runTest.py
movie-travel-code/cppinsights
0cc79032db5e7fad06f3523771ff4a9111a0beef
[ "MIT" ]
null
null
null
tests/runTest.py
movie-travel-code/cppinsights
0cc79032db5e7fad06f3523771ff4a9111a0beef
[ "MIT" ]
null
null
null
#! /usr/bin/python #------------------------------------------------------------------------------ import os import sys import subprocess import re import argparse import tempfile #------------------------------------------------------------------------------ mypath = '.' def testCompare(tmpFileName, stdout, expect...
35.690821
152
0.514348
4a1d3fa2d343712d70873e8247660aa7840c2930
58
py
Python
tests/package1/subpackage1/__init__.py
sizrailev/py2reqs
f09f8b808b310c27860a273660dedd50d3c7bea3
[ "MIT" ]
null
null
null
tests/package1/subpackage1/__init__.py
sizrailev/py2reqs
f09f8b808b310c27860a273660dedd50d3c7bea3
[ "MIT" ]
null
null
null
tests/package1/subpackage1/__init__.py
sizrailev/py2reqs
f09f8b808b310c27860a273660dedd50d3c7bea3
[ "MIT" ]
null
null
null
from .module3 import foo3 as bar3 def foo(): bar3()
9.666667
33
0.637931
4a1d3fc986f3a46d1484f2a58fc10f34c73e3fb0
425
py
Python
apps/ableton/locate.py
thinium/knausj_talon
bdf222f702605cc60242d235c86fc9503fbc65d9
[ "MIT" ]
1
2021-04-15T13:35:06.000Z
2021-04-15T13:35:06.000Z
apps/ableton/locate.py
thinium/knausj_talon
bdf222f702605cc60242d235c86fc9503fbc65d9
[ "MIT" ]
null
null
null
apps/ableton/locate.py
thinium/knausj_talon
bdf222f702605cc60242d235c86fc9503fbc65d9
[ "MIT" ]
null
null
null
from talon.experimental.locate import locate_hover from talon import Module, ctrl mod = Module() @mod.action_class class Actions: def locate(name: str): """Find an image on the screen and put the mouse in the center""" locate_hover(name, threshold=0.95) def nudge_mouse(x: int, y: int): "...
32.692308
73
0.654118
4a1d43072806b5f290b9c30679a4396d505777a2
27,202
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_ip_allocations_operations.py
xolve/azure-sdk-for-python
9f5baa19c392f77f811d936ee43450e4ea524002
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_ip_allocations_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_ip_allocations_operations.py
v-xuto/azure-sdk-for-python
9c6296d22094c5ede410bc83749e8df8694ccacc
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
48.749104
195
0.661238
4a1d449f10c97ef7c66f9fc3a7d70318dad11edf
144
py
Python
tests/core/utils.py
uditagarwal/tastypie
ece398310040e9ddfeeacee6a699beb1dee6dad6
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
tests/core/utils.py
uditagarwal/tastypie
ece398310040e9ddfeeacee6a699beb1dee6dad6
[ "BSD-3-Clause" ]
9
2019-03-15T11:39:32.000Z
2019-04-30T00:59:50.000Z
tests/core/utils.py
uditagarwal/tastypie
ece398310040e9ddfeeacee6a699beb1dee6dad6
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
import logging class SimpleHandler(logging.Handler): logged = [] def emit(self, record): SimpleHandler.logged.append(record)
16
43
0.6875
4a1d44ad02bcf47239ba48495a5830f6883256c3
3,617
py
Python
tensorflow_io/python/ops/mnist_dataset_ops.py
vanshhhhh/io
2c8204e7a2fb8704a0843bdfd624d785d17c58d6
[ "Apache-2.0" ]
1
2018-11-18T06:10:45.000Z
2018-11-18T06:10:45.000Z
tensorflow_io/python/ops/mnist_dataset_ops.py
vanshhhhh/io
2c8204e7a2fb8704a0843bdfd624d785d17c58d6
[ "Apache-2.0" ]
1
2019-01-23T06:16:57.000Z
2019-01-23T06:16:57.000Z
tensorflow_io/python/ops/mnist_dataset_ops.py
yongtang/io
2ea1121e944629c2b462773c2d8d805da427311c
[ "Apache-2.0" ]
1
2020-12-13T22:13:03.000Z
2020-12-13T22:13:03.000Z
# Copyright 2017 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...
31.181034
87
0.634227
4a1d456240c4dbb55ba57166919117b1588c2e6f
1,934
py
Python
src/products/models/base.py
tlgtaa/education-backend
86f8af315f9cff2c1fd19406899d593fc0852124
[ "MIT" ]
1
2021-03-03T19:51:24.000Z
2021-03-03T19:51:24.000Z
src/products/models/base.py
tlgtaa/education-backend
86f8af315f9cff2c1fd19406899d593fc0852124
[ "MIT" ]
null
null
null
src/products/models/base.py
tlgtaa/education-backend
86f8af315f9cff2c1fd19406899d593fc0852124
[ "MIT" ]
null
null
null
from typing import Optional from decimal import Decimal from django.apps import apps from django.utils.translation import gettext_lazy as _ from app.models import TimestampedModel, models from app.pricing import format_old_price, format_price from orders.models import Order from shipping import factory as ShippingFac...
33.929825
165
0.713547
4a1d45b3a53d1f78c07986524185d5584772dabf
2,888
py
Python
psrl_experiments_2016/chain_experiment_nsamp.py
orenpeer12/randomized_value_functions
a10fe99a9a3a92fea02b38740753da7de7db8f1a
[ "MIT" ]
1
2020-04-26T14:09:48.000Z
2020-04-26T14:09:48.000Z
psrl_experiments_2016/chain_experiment_nsamp.py
orenpeer12/randomized_value_functions
a10fe99a9a3a92fea02b38740753da7de7db8f1a
[ "MIT" ]
null
null
null
psrl_experiments_2016/chain_experiment_nsamp.py
orenpeer12/randomized_value_functions
a10fe99a9a3a92fea02b38740753da7de7db8f1a
[ "MIT" ]
2
2020-05-10T08:03:50.000Z
2021-09-08T11:58:35.000Z
''' Script to run tabular experiments in batch mode. author: iosband@stanford.edu ''' import numpy as np import pandas as pd import argparse import sys from src import environment from src import finite_tabular_agents from src.feature_extractor import FeatureTrueState from src.experiment import run_finite_tabular_e...
36.1
79
0.616343
4a1d45c9845a17364312a64632dd64e9c710aa3a
2,402
py
Python
ambari-agent/src/main/python/ambari_agent/hostname.py
flipkart-incubator/incubator-ambari
bf747346312170834c6beb89a60c8624b47aa288
[ "Apache-2.0" ]
2
2015-07-29T22:50:10.000Z
2021-11-10T16:05:59.000Z
ambari-agent/src/main/python/ambari_agent/hostname.py
boydos/incubator-ambari
e10d85756dd55729c20aeda2baa0d6c93c4ca31d
[ "Apache-2.0" ]
1
2021-11-04T13:31:30.000Z
2021-11-04T13:31:30.000Z
ambari-agent/src/main/python/ambari_agent/hostname.py
isabella232/incubator-ambari
bf747346312170834c6beb89a60c8624b47aa288
[ "Apache-2.0" ]
9
2016-01-08T21:11:06.000Z
2021-11-10T16:05:51.000Z
#!/usr/bin/env python2.6 ''' 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 "Licens...
30.405063
94
0.697752
4a1d461af01cc11cae24d2b3da0921b3efed71eb
10,325
py
Python
docs/generate_modules.py
cfobel/dropbot-chip-qc
e5944b88c0d423163f55a3f49ebf84bb27e229bc
[ "BSD-3-Clause" ]
null
null
null
docs/generate_modules.py
cfobel/dropbot-chip-qc
e5944b88c0d423163f55a3f49ebf84bb27e229bc
[ "BSD-3-Clause" ]
5
2019-04-02T11:10:45.000Z
2019-07-17T20:31:18.000Z
docs/generate_modules.py
cfobel/dropbot-chip-qc
e5944b88c0d423163f55a3f49ebf84bb27e229bc
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ sphinx-autopackage-script This script parses a directory tree looking for python modules and packages and creates ReST files appropriately to create code documentation with Sphinx. It also creates a modules index (named modules.<suffix>). """ # Copyright 200...
38.962264
165
0.606877
4a1d4629799981459bf152c9d0b4883a1afe7b8e
7,584
py
Python
dbt_gen/py3env/lib/python3.5/site-packages/azure/storage/table/models.py
norton120/dbt_gen
712fc8698a77c3372f5a403a5ae50711d0cb3c7d
[ "MIT" ]
null
null
null
dbt_gen/py3env/lib/python3.5/site-packages/azure/storage/table/models.py
norton120/dbt_gen
712fc8698a77c3372f5a403a5ae50711d0cb3c7d
[ "MIT" ]
null
null
null
dbt_gen/py3env/lib/python3.5/site-packages/azure/storage/table/models.py
norton120/dbt_gen
712fc8698a77c3372f5a403a5ae50711d0cb3c7d
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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://w...
36.815534
141
0.638186
4a1d49091ca5e9518f740777f3ccc1e42d267ac6
6,255
py
Python
chapter6_嵌入与表示学习/denoise_autoencoder.py
Tisword/pytorch-in-action
193745dc0b45b4c292ad9276eac0023c4ac85ae8
[ "MIT" ]
164
2018-05-16T13:10:52.000Z
2022-03-15T12:18:30.000Z
chapter6_嵌入与表示学习/denoise_autoencoder.py
Tisword/pytorch-in-action
193745dc0b45b4c292ad9276eac0023c4ac85ae8
[ "MIT" ]
20
2019-01-21T12:16:06.000Z
2022-03-11T23:33:48.000Z
chapter6_嵌入与表示学习/denoise_autoencoder.py
Tisword/pytorch-in-action
193745dc0b45b4c292ad9276eac0023c4ac85ae8
[ "MIT" ]
86
2018-11-06T05:42:58.000Z
2022-02-28T01:05:52.000Z
# Simple Convolutional Autoencoder import torch import torch.nn as nn import torch.utils as utils from torch.autograd import Variable import torchvision.datasets as dset import torchvision.transforms as transforms import numpy as np import matplotlib.pyplot as plt # 配置参数 torch.manual_seed(1) #设置随机数种子,确保结果可重复 n_epoch = ...
36.366279
113
0.48729
4a1d4a718dfcc02f2eb407105f8979a055e61294
98
py
Python
hello/tests/test_hello.py
mkostich/RIT_retreat_CICD
5c88d272cbb3d3eeef8074ff6d68bc73d20c924c
[ "MIT" ]
null
null
null
hello/tests/test_hello.py
mkostich/RIT_retreat_CICD
5c88d272cbb3d3eeef8074ff6d68bc73d20c924c
[ "MIT" ]
null
null
null
hello/tests/test_hello.py
mkostich/RIT_retreat_CICD
5c88d272cbb3d3eeef8074ff6d68bc73d20c924c
[ "MIT" ]
null
null
null
import pytest from hello.hello_world import hello_world def test_hello_world(): hello_world()
19.6
41
0.806122
4a1d4ab4121e2b7d4dabcfb68c2eefc2ff9bfe0c
1,527
py
Python
UnityEngine/ParticleSystem/ColorOverLifetimeModule/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/ParticleSystem/ColorOverLifetimeModule/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
UnityEngine/ParticleSystem/ColorOverLifetimeModule/__init__.py
Grim-es/udon-pie-auto-completion
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
[ "MIT" ]
null
null
null
from UdonPie import System from UdonPie import UnityEngine from UdonPie.Undefined import * class ColorOverLifetimeModule: def __new__(cls, arg1=None): ''' :returns: ColorOverLifetimeModule :rtype: UnityEngine.ParticleSystem.ColorOverLifetimeModule ''' pass @staticmetho...
19.329114
66
0.530452
4a1d4c2b2d573a115c8be55cfb157dc0dd5ea181
11,446
py
Python
custom_components/xiaomi_cloud_map_extractor/image_handler.py
horse315/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
29cd242310f94d0895f396c9e6d605545b88d06b
[ "MIT" ]
3
2019-03-12T21:27:56.000Z
2019-05-03T06:18:48.000Z
custom_components/xiaomi_cloud_map_extractor/image_handler.py
horse315/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
29cd242310f94d0895f396c9e6d605545b88d06b
[ "MIT" ]
32
2019-11-11T22:13:08.000Z
2020-12-15T18:18:27.000Z
custom_components/xiaomi_cloud_map_extractor/image_handler.py
horse315/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
29cd242310f94d0895f396c9e6d605545b88d06b
[ "MIT" ]
null
null
null
import logging from typing import Callable from PIL import Image, ImageDraw, ImageFont from .const import * _LOGGER = logging.getLogger(__name__) class ImageHandler: MAP_OUTSIDE = 0x00 MAP_WALL = 0x01 MAP_INSIDE = 0xFF MAP_SCAN = 0x07 COLORS = { COLOR_MAP_INSIDE: (32, 115, 185), ...
43.854406
119
0.595841
4a1d4c47aeb7e2baacd1ef341fc620353217ace4
395
py
Python
TrekBot_WS/build/zed-ros-wrapper/tutorials/zed_tracking_sub_tutorial/catkin_generated/pkg.develspace.context.pc.py
Rafcin/RescueRoboticsLHMV
d3dc63e6c16a040b16170f143556ef358018b7da
[ "Unlicense" ]
1
2018-10-04T14:37:00.000Z
2018-10-04T14:37:00.000Z
TrekBot_WS/build/zed-ros-wrapper/tutorials/zed_tracking_sub_tutorial/catkin_generated/pkg.develspace.context.pc.py
Rafcin/TrekBot
d3dc63e6c16a040b16170f143556ef358018b7da
[ "Unlicense" ]
null
null
null
TrekBot_WS/build/zed-ros-wrapper/tutorials/zed_tracking_sub_tutorial/catkin_generated/pkg.develspace.context.pc.py
Rafcin/TrekBot
d3dc63e6c16a040b16170f143556ef358018b7da
[ "Unlicense" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "zed_tracking_sub_tutorial" PROJECT_SP...
43.888889
68
0.721519
4a1d4c6ff45c848008923c2e37eaacb7715a5997
868
py
Python
var/spack/repos/builtin/packages/py-azure-mgmt-servicebus/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-azure-mgmt-servicebus/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-azure-mgmt-servicebus/package.py
MiddelkoopT/spack
4d94c4c4600f42a7a3bb3d06ec879140bc259304
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) class PyAzureMgmtServicebus(PythonPackage): """Microsoft Azure Service Bus Management Client Library for Python.""" ...
43.4
95
0.711982
4a1d4c80a264b58d345d179fd6df9d56870950c0
41,918
py
Python
nipype/interfaces/spm/model.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
null
null
null
nipype/interfaces/spm/model.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
2
2018-04-26T12:09:32.000Z
2018-04-27T06:36:49.000Z
nipype/interfaces/spm/model.py
PAmcconnell/nipype
39fbd5411a844ce7c023964d3295eb7643b95af5
[ "Apache-2.0" ]
1
2019-11-14T14:16:57.000Z
2019-11-14T14:16:57.000Z
# -*- coding: utf-8 -*- # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """The spm module provides basic functions for interfacing with matlab and spm to access spm tools. """ # Standard library imports import os from glob import glob # Third-party impo...
37.128432
107
0.576006
4a1d4d1cc62acfa6ba8124c151c63918e7190bf9
95
py
Python
pkr/version.py
rlacazel/pkr
3575b634286409cdbc7799fce254fbd9848b066a
[ "Apache-2.0" ]
null
null
null
pkr/version.py
rlacazel/pkr
3575b634286409cdbc7799fce254fbd9848b066a
[ "Apache-2.0" ]
null
null
null
pkr/version.py
rlacazel/pkr
3575b634286409cdbc7799fce254fbd9848b066a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright© 1986-2019 Altair Engineering Inc. __version__ = "1.0.10"
19
46
0.652632
4a1d4d3442b9a97395597bc48850f2a3d41ab391
9,034
py
Python
tests/test_read.py
NHPatterson/bfio
0891721b316ccaef6d4bb434e1c80c93fa8fcd69
[ "MIT" ]
6
2021-09-09T01:27:13.000Z
2021-12-16T13:52:15.000Z
tests/test_read.py
NHPatterson/bfio
0891721b316ccaef6d4bb434e1c80c93fa8fcd69
[ "MIT" ]
15
2021-07-20T13:16:34.000Z
2022-03-04T13:34:16.000Z
tests/test_read.py
NHPatterson/bfio
0891721b316ccaef6d4bb434e1c80c93fa8fcd69
[ "MIT" ]
2
2021-11-01T18:08:18.000Z
2022-01-26T19:23:12.000Z
import unittest import requests, io, pathlib, shutil, logging, sys import bfio import numpy as np TEST_IMAGES = { '1884807.ome.zarr': 'https://s3.embassy.ebi.ac.uk/idr/zarr/v0.1/1884807.zarr/', 'Plate1-Blue-A-12-Scene-3-P3-F2-03.czi': 'https://downloads.openmicroscopy.org/images/Zeiss-CZI/idr0011/Plate1-Blue-A...
36.427419
172
0.576157
4a1d4d6f1c19820e0818ed0731da2bb752ecb002
7,594
py
Python
edb/server/main.py
mcaramma/edgedb
53b18dbaf7407617ca135d1f8a5047bda6414654
[ "Apache-2.0" ]
null
null
null
edb/server/main.py
mcaramma/edgedb
53b18dbaf7407617ca135d1f8a5047bda6414654
[ "Apache-2.0" ]
null
null
null
edb/server/main.py
mcaramma/edgedb
53b18dbaf7407617ca135d1f8a5047bda6414654
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB 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...
29.207692
77
0.631288
4a1d4d8c617c52aaa536b8d67df6213b644c4e93
8,452
py
Python
airflow/dags/polygonetl_airflow/build_parse_dag.py
cffls/polygon-etl
6f1c0b1adc8066afd7b6f653944947801c0d2b92
[ "MIT" ]
28
2021-04-30T08:50:49.000Z
2022-03-23T17:58:40.000Z
airflow/dags/polygonetl_airflow/build_parse_dag.py
cffls/polygon-etl
6f1c0b1adc8066afd7b6f653944947801c0d2b92
[ "MIT" ]
7
2021-04-19T06:33:32.000Z
2022-03-14T05:55:12.000Z
airflow/dags/polygonetl_airflow/build_parse_dag.py
cffls/polygon-etl
6f1c0b1adc8066afd7b6f653944947801c0d2b92
[ "MIT" ]
18
2021-06-23T14:36:14.000Z
2022-03-24T21:46:52.000Z
from __future__ import print_function import collections import logging import os from datetime import datetime, timedelta from glob import glob from airflow import models from airflow.operators.bash_operator import BashOperator from airflow.operators.email_operator import EmailOperator from airflow.operators.python_...
34.92562
126
0.682679
4a1d4fc5af6a726e482a075b2721529629f1f608
1,015
py
Python
create-serverless-clusters.py
mistwire/2019_AWS_Boto3_vBrownBag
8680a7a366a3a5a067d3e1cc7dc84010653b3c51
[ "BSD-3-Clause" ]
2
2020-07-04T01:11:14.000Z
2021-12-04T06:08:56.000Z
create-serverless-clusters.py
mistwire/2019_AWS_Boto3_vBrownBag
8680a7a366a3a5a067d3e1cc7dc84010653b3c51
[ "BSD-3-Clause" ]
1
2021-07-06T02:35:02.000Z
2021-07-06T02:35:02.000Z
create-serverless-clusters.py
calvinhp/2019_AWS_Boto3_vBrownBag
8680a7a366a3a5a067d3e1cc7dc84010653b3c51
[ "BSD-3-Clause" ]
4
2019-02-28T14:27:21.000Z
2020-08-27T05:34:55.000Z
import csv import boto3 from pwgen import pwgen client = boto3.client('rds') new_dbs = {'saas{:0>2}'.format(db): '' for db in range(10)} for db in new_dbs.keys(): new_dbs[db] = pwgen(20) client.create_db_cluster( AvailabilityZones=[ "us-east-1b", "us-east-1c" ], ...
25.375
59
0.581281
4a1d500768464ade5c5bde87bfd4fe909b8354fb
4,511
py
Python
server.py
TonyJR/image-sharpening
ec135cbbc6aba5754e4df0a01d8d0e03ec415152
[ "MIT" ]
1
2020-03-18T03:49:00.000Z
2020-03-18T03:49:00.000Z
server.py
TonyJR/image-sharpening
ec135cbbc6aba5754e4df0a01d8d0e03ec415152
[ "MIT" ]
null
null
null
server.py
TonyJR/image-sharpening
ec135cbbc6aba5754e4df0a01d8d0e03ec415152
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*-coding=utf-8 -*- import sys import traceback import datetime from StringIO import StringIO import requests import tornado import tornado.ioloop import tornado.web import tornado.gen import image import imageColor import os import time from concurrent.futures import ThreadPoolExecutor reload(s...
33.917293
274
0.65174
4a1d505bd13055869946af70fa68afaebd59eb5f
583
py
Python
src/mongo.py
guve4e/db-populator
981d35ed5e43b5c434d57bc962bfeeb07c841bdf
[ "Apache-2.0" ]
null
null
null
src/mongo.py
guve4e/db-populator
981d35ed5e43b5c434d57bc962bfeeb07c841bdf
[ "Apache-2.0" ]
null
null
null
src/mongo.py
guve4e/db-populator
981d35ed5e43b5c434d57bc962bfeeb07c841bdf
[ "Apache-2.0" ]
null
null
null
import pymongo class Mongo(super): def __init__(self, connection_str: str) -> None: super().__init__() self.__connection = pymongo.MongoClient(connection_str) def drop_database(self, db: str): self.__connection.drop_database(db) def get_database(self, db: str): return sel...
26.5
63
0.670669
4a1d50b60224cecbfe15de09758d27935ef83d12
5,998
py
Python
parser.py
inutza/spaceflight-parser
d723d45d4d1a6c484f2324644d5b14387bec6b39
[ "MIT" ]
null
null
null
parser.py
inutza/spaceflight-parser
d723d45d4d1a6c484f2324644d5b14387bec6b39
[ "MIT" ]
null
null
null
parser.py
inutza/spaceflight-parser
d723d45d4d1a6c484f2324644d5b14387bec6b39
[ "MIT" ]
null
null
null
import urllib2 import re from HTMLParser import HTMLParser from datetime import datetime, date, time, timedelta import pytz from icalendar import Calendar, Event, vDatetime # Tags which help extract each section DATETAG = '<div class="datename"><span class="launchdate">' SPANENDTAG = '</span>' SPANSTARTTAG = '<span cl...
41.652778
133
0.603201
4a1d50d195faf37c7e0967cf27e30758708f08f5
7,946
py
Python
hmlf/common/atari_wrappers.py
lorenzob123/HMLF
3577c61b8f2bae7959de81dfd3981c3a8e26d8b6
[ "MIT" ]
1
2021-05-05T05:59:55.000Z
2021-05-05T05:59:55.000Z
hmlf/common/atari_wrappers.py
lorenzob123/HMLF
3577c61b8f2bae7959de81dfd3981c3a8e26d8b6
[ "MIT" ]
1
2021-05-18T07:51:46.000Z
2021-05-18T07:51:46.000Z
hmlf/common/atari_wrappers.py
lorenzob123/HMLF
3577c61b8f2bae7959de81dfd3981c3a8e26d8b6
[ "MIT" ]
null
null
null
import gym import numpy as np from hmlf import spaces try: import cv2 # pytype:disable=import-error cv2.ocl.setUseOpenCL(False) except ImportError: cv2 = None from typing import TYPE_CHECKING if TYPE_CHECKING: from hmlf.common.type_aliases import GymObs, GymStepReturn class NoopResetEnv(gym.Wrap...
31.407115
106
0.613894
4a1d50ec7fd9669fb5abec4151c2b5135efbe9c0
9,432
py
Python
benchmark.py
andfoy/py-distributed-dot-product
70ede0b3b07294d1c00dfe64187d8fa1c6c8d848
[ "MIT" ]
null
null
null
benchmark.py
andfoy/py-distributed-dot-product
70ede0b3b07294d1c00dfe64187d8fa1c6c8d848
[ "MIT" ]
null
null
null
benchmark.py
andfoy/py-distributed-dot-product
70ede0b3b07294d1c00dfe64187d8fa1c6c8d848
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Distributed multiplication benchmark (time/memory). The following benchmarks were run on a machine with 3 Quadro RTX 6000 GPUs, each one with 24Gb of RAM. """ import os import time import json import humanize import argparse import functools import os.path as osp import torch from mpi4py...
36.416988
75
0.668575
4a1d50fbd1c2f5ed164b8541ab1efa9f5da8441a
3,632
py
Python
a3/Assignment 3 LVQ1.py
YingTing04/Neural-Networks
3923a53026f390091796cab54938af62ff7da22a
[ "MIT" ]
null
null
null
a3/Assignment 3 LVQ1.py
YingTing04/Neural-Networks
3923a53026f390091796cab54938af62ff7da22a
[ "MIT" ]
null
null
null
a3/Assignment 3 LVQ1.py
YingTing04/Neural-Networks
3923a53026f390091796cab54938af62ff7da22a
[ "MIT" ]
1
2020-11-04T08:50:38.000Z
2020-11-04T08:50:38.000Z
#implements the LVQ algorithm import numpy as np #reading of data from files def reading_data(string): with open(string, 'r') as f: data = f.readlines() all_data = [] all_label = [] for item in data: x = item.split(',') #obtaining label from data label = x[-1].rstrip(...
29.528455
76
0.642346
4a1d5199ab74f6c0f312f73f61df227b8d9eb263
15,482
py
Python
tests/python/pants_test/engine/test_build_files.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/test_build_files.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/engine/test_build_files.py
anthonyjpratti/pants
d98e53af6ddd877861231bce8343f8204da0a9d1
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import re import unittest from pants.base.project_tree import Dir from pants.base.specs import SiblingAddresses, SingleAddress, Specs from pants.build_graph.address import Addre...
40.005168
124
0.664643
4a1d53ac3e6b9fffd9cab550451b80fdc53b0785
5,057
py
Python
utils/p4runtime_switch.py
davidcawork/P4Tutorial
297c663f9516a769fb40fb28c2271d582de7a01e
[ "Apache-2.0" ]
null
null
null
utils/p4runtime_switch.py
davidcawork/P4Tutorial
297c663f9516a769fb40fb28c2271d582de7a01e
[ "Apache-2.0" ]
null
null
null
utils/p4runtime_switch.py
davidcawork/P4Tutorial
297c663f9516a769fb40fb28c2271d582de7a01e
[ "Apache-2.0" ]
1
2021-09-09T15:11:34.000Z
2021-09-09T15:11:34.000Z
# Copyright 2017-present Barefoot Networks, Inc. # Copyright 2017-present Open Networking Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICE...
36.644928
114
0.598378
4a1d54bd2caec63f28c91aa939f6b29d0bb96db9
10,089
py
Python
kivy/utils.py
geojeff/kivy
25ab20e5b0e87269531abe1f8cc76bf270bcc755
[ "MIT" ]
1
2017-11-15T08:59:23.000Z
2017-11-15T08:59:23.000Z
kivy/utils.py
geojeff/kivy
25ab20e5b0e87269531abe1f8cc76bf270bcc755
[ "MIT" ]
null
null
null
kivy/utils.py
geojeff/kivy
25ab20e5b0e87269531abe1f8cc76bf270bcc755
[ "MIT" ]
3
2015-07-18T11:03:59.000Z
2018-03-17T01:32:42.000Z
# pylint: disable=W0611 ''' Utils ===== .. versionchanged:: 1.6.0 OrderedDict class has been removed. Use the collections.OrderedDict. ''' __all__ = ('intersection', 'difference', 'strtotuple', 'get_color_from_hex', 'get_hex_from_color', 'get_random_color', 'is_color_transparent', 'boundary...
27.793388
79
0.599068
4a1d54f6306f2a250a0b34859c9362db10e0c863
4,327
py
Python
tgen/config.py
nbishdev/tgen
3c43c0e29faa7ea3857a6e490d9c28a8daafc7d0
[ "Apache-2.0" ]
222
2015-06-15T14:39:41.000Z
2022-03-12T03:45:32.000Z
tgen/config.py
nbishdev/tgen
3c43c0e29faa7ea3857a6e490d9c28a8daafc7d0
[ "Apache-2.0" ]
40
2015-12-02T10:42:44.000Z
2021-12-05T17:31:11.000Z
tgen/config.py
nbishdev/tgen
3c43c0e29faa7ea3857a6e490d9c28a8daafc7d0
[ "Apache-2.0" ]
72
2015-07-27T08:11:48.000Z
2022-03-24T14:25:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Load Python code as configuration files. A copy from Alex (http://github.com/UFAL-DSG/alex) """ from builtins import object from importlib import import_module import os import os.path import sys import tempfile import codecs import yaml config = None def _expand_f...
30.907143
91
0.606425
4a1d556819cd12ae60afd128fb1be94e4a30cc56
10,341
py
Python
tests/test_service.py
ucphhpc/SwarmSpawner
a1f4f2fdae111832210e9bdc9ef5323a6108e739
[ "BSD-3-Clause" ]
1
2021-11-23T11:43:28.000Z
2021-11-23T11:43:28.000Z
tests/test_service.py
ucphhpc/SwarmSpawner
a1f4f2fdae111832210e9bdc9ef5323a6108e739
[ "BSD-3-Clause" ]
null
null
null
tests/test_service.py
ucphhpc/SwarmSpawner
a1f4f2fdae111832210e9bdc9ef5323a6108e739
[ "BSD-3-Clause" ]
null
null
null
import docker import json import time import requests import logging import pytest from random import SystemRandom from docker.types import EndpointSpec from os.path import dirname, join, realpath from urllib.parse import urljoin from util import ( get_service, get_task_image, get_service_labels, wait_f...
36.800712
88
0.64839