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
ddd89d2c7441f04a92b4e5210d667a836ca1c871
3,253
py
Python
tests/data/aws/redshift.py
sckevmit/cartography
fefb63b5ec97986dcc29038331d0e5b027b95d5f
[ "Apache-2.0" ]
2,322
2019-03-02T01:07:20.000Z
2022-03-31T20:39:12.000Z
tests/data/aws/redshift.py
sckevmit/cartography
fefb63b5ec97986dcc29038331d0e5b027b95d5f
[ "Apache-2.0" ]
462
2019-03-07T18:38:11.000Z
2022-03-31T14:55:20.000Z
tests/data/aws/redshift.py
sckevmit/cartography
fefb63b5ec97986dcc29038331d0e5b027b95d5f
[ "Apache-2.0" ]
246
2019-03-03T02:39:23.000Z
2022-02-24T09:46:38.000Z
import datetime CLUSTERS = [{ 'AllowVersionUpgrade': True, 'AutomatedSnapshotRetentionPeriod': 35, 'AvailabilityZone': 'us-east-1e', 'ClusterCreateTime': datetime.datetime(2018, 9, 12, 0, 19, 33, 652000), 'ClusterIdentifier': 'my-cluster', 'ClusterNodes': [ { 'NodeRole': 'LE...
31.892157
77
0.51245
058447b68259e651fe67a60b08dd192b3f3d90e3
19,804
py
Python
virtual/lib/python3.6/site-packages/PIL/ImageOps.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
12
2019-08-02T07:58:16.000Z
2022-01-31T23:45:08.000Z
virtual/lib/python3.6/site-packages/PIL/ImageOps.py
drewheathens/The-Moringa-Tribune
98ee4d63c9df6f1f7497fc6876960a822d914500
[ "MIT" ]
23
2019-01-19T08:54:48.000Z
2022-03-11T23:39:37.000Z
virtual/lib/python3.6/site-packages/PIL/ImageOps.py
eyern/instagram_clone
c18da15b35d28d91c3f63904af9d5da4e8e3e8ae
[ "MIT" ]
11
2019-07-31T16:23:36.000Z
2022-01-29T08:30:07.000Z
# # The Python Imaging Library. # $Id$ # # standard image operations # # History: # 2001-10-20 fl Created # 2001-10-23 fl Added autocontrast operator # 2001-12-18 fl Added Kevin's fit operator # 2004-03-14 fl Fixed potential division by zero in equalize # 2005-05-05 fl Fixed equalize for low number of values ...
31.890499
80
0.587508
8967d95870f1150eb75e931f94e07ff299bc2e0b
1,297
py
Python
api/constants.py
Ju99ernaut/blocomposer-templates-public
74867218c42f72642ddb0a7a3e389116f4a85d3d
[ "MIT" ]
null
null
null
api/constants.py
Ju99ernaut/blocomposer-templates-public
74867218c42f72642ddb0a7a3e389116f4a85d3d
[ "MIT" ]
null
null
null
api/constants.py
Ju99ernaut/blocomposer-templates-public
74867218c42f72642ddb0a7a3e389116f4a85d3d
[ "MIT" ]
null
null
null
""" Constants useful for data module """ TEMPLATES_TABLE = "templates" ASSETS_TABLE = "assets" BLOCKS_TABLE = "blocks" BOOKMARKS_TABLE = "bookmarks" COMMENTS_TABLE = "comments" USERS_TABLE = "users" USERS_TOKENS_TABLE = "users_tokens" AUTHORS_TABLE = "authors" EMAILS_TABLE = "emails" ASSETS_KEY = "assets" ID_KEY = "i...
27.595745
76
0.704703
ea97f10d61aea3ca7bf3467565c82d742d9b20b6
484
py
Python
plugins/exalead.py
mirai101/Cinon
75173b2f61cbb4bb5a3a127f0e331ef1fa203e06
[ "Apache-2.0" ]
1
2020-12-26T23:30:50.000Z
2020-12-26T23:30:50.000Z
plugins/exalead.py
mirai101/Cinon
75173b2f61cbb4bb5a3a127f0e331ef1fa203e06
[ "Apache-2.0" ]
null
null
null
plugins/exalead.py
mirai101/Cinon
75173b2f61cbb4bb5a3a127f0e331ef1fa203e06
[ "Apache-2.0" ]
null
null
null
#config = None app_cinon = None def search(domain, limit): url = "http://www.exalead.com/search/web/results/?q=%40{word}&elements_per_page=10&start_index={counter}" app_cinon.init_search(url, domain, limit, 0, 50, 'Exalead') app_cinon.process() return app_cinon.get_emails() class Plugin: def __i...
26.888889
109
0.663223
e25c9cfcad0a2266646eafd926b5b01006526627
1,892
py
Python
code/venv/lib/python3.8/site-packages/datadog_api_client/v1/model/usage_attribution_pagination.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v1/model/usage_attribution_pagination.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
code/venv/lib/python3.8/site-packages/datadog_api_client/v1/model/usage_attribution_pagination.py
Valisback/hiring-engineers
7196915dd5a429ae27c21fa43d527f0332e662ed
[ "Apache-2.0" ]
null
null
null
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from datadog_api_client.v1.model_utils import ( ModelNormal, cached_property, ...
29.5625
108
0.631607
1f66691e0404727c023074c3534a6764688e82fb
3,382
py
Python
test/tests/gcj_2014_1c_b.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
1
2015-11-06T03:39:51.000Z
2015-11-06T03:39:51.000Z
test/tests/gcj_2014_1c_b.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
test/tests/gcj_2014_1c_b.py
kevinxucs/pyston
bdb87c1706ac74a0d15d9bc2bae53798678a5f14
[ "Apache-2.0" ]
null
null
null
# expected: fail # - working on it import sys def compact(s): i = 0 while i < len(s) - 1: if s[i] == s[i+1]: s = s[:i] + s[i+1:] else: i += 1 return s # TODO This should be a subclass of Exception not object: class NotPossible(object): pass P = 1000000007 def...
28.661017
70
0.385866
1930b4415c3c4b687360203a5118f66249b43b8f
815
py
Python
tests/integration/import_older_version_test.py
markowanga/stweet
7f103b5c88fcef1d993d8cdc99cec358e55293f7
[ "MIT" ]
101
2020-11-22T16:44:25.000Z
2022-03-30T08:42:07.000Z
tests/integration/import_older_version_test.py
markowanga/stweet
7f103b5c88fcef1d993d8cdc99cec358e55293f7
[ "MIT" ]
53
2020-11-21T19:40:36.000Z
2022-03-02T10:09:52.000Z
tests/integration/import_older_version_test.py
markowanga/stweet
7f103b5c88fcef1d993d8cdc99cec358e55293f7
[ "MIT" ]
16
2020-12-12T23:02:51.000Z
2022-03-01T12:10:32.000Z
import stweet as st _RESOURCES_PATH = 'tests/resources' def test_tweets_csv_import_v1_1_2(): csv_filename = f'{_RESOURCES_PATH}/tweets_v1.1.2.csv' tweets_from_csv = st.read_tweets_from_csv_file(csv_filename) assert len(tweets_from_csv) == 9 def test_tweets_json_import_v1_1_2(): jl_filename = f'{_RE...
29.107143
70
0.759509
c8ca6d662ca0898630009cc66097b2c473edc66d
5,257
py
Python
graph/save_cache.py
csmetrics/csmetrics.org
fa2ec2f264680a71ac6ea46d303573d24dfbe653
[ "CC-BY-4.0" ]
21
2017-09-19T11:43:04.000Z
2021-12-06T17:04:05.000Z
graph/save_cache.py
123Powerful/csmetrics.org
788367fe32947bbd56ec2c13cee4f49dd79de231
[ "CC-BY-4.0" ]
54
2017-08-31T22:42:51.000Z
2022-03-15T02:12:05.000Z
graph/save_cache.py
123Powerful/csmetrics.org
788367fe32947bbd56ec2c13cee4f49dd79de231
[ "CC-BY-4.0" ]
9
2017-09-03T10:54:07.000Z
2022-01-16T02:44:31.000Z
import os, sys, json, uuid, hashlib from multiprocessing import Pool from elasticsearch_dsl.connections import connections from datetime import datetime from graph.schema_cache import BrowseCache, AuthorGroup, PaperGroup, AuthorInfo, PaperInfo from graph.config import conf hostname = conf.get("elasticsearch.hostname")...
33.062893
132
0.62393
cf6fc96b194152e95e1e9f9a20e403f955f872d7
50,272
py
Python
core/domain/topic_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
2
2020-03-28T18:32:45.000Z
2021-02-07T18:29:31.000Z
core/domain/topic_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
1
2021-01-06T06:00:08.000Z
2021-01-07T02:00:21.000Z
core/domain/topic_services.py
prayutsu/oppia
e82da7653f7bbfb9ded0e1ba16cd9f481ff5a786
[ "Apache-2.0" ]
1
2022-02-14T22:03:53.000Z
2022-02-14T22:03:53.000Z
# coding: utf-8 # # Copyright 2018 The Oppia 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 requi...
40.411576
115
0.689171
3ff6a1c172d4ec84797f17aed4acfbb134efb439
4,459
py
Python
scripts/3D-VSoC-small/generate_model.py
Joern-Noeller/ratatoskr
4b60e9c880b7b647ce4ddc76f368452d85cdf5fe
[ "MIT" ]
10
2019-09-05T01:35:53.000Z
2022-02-22T09:14:03.000Z
scripts/3D-VSoC-small/generate_model.py
Joern-Noeller/ratatoskr
4b60e9c880b7b647ce4ddc76f368452d85cdf5fe
[ "MIT" ]
68
2018-02-05T18:02:38.000Z
2021-03-02T15:34:50.000Z
scripts/3D-VSoC-small/generate_model.py
Joern-Noeller/ratatoskr
4b60e9c880b7b647ce4ddc76f368452d85cdf5fe
[ "MIT" ]
22
2018-10-31T01:43:46.000Z
2022-02-22T09:14:07.000Z
from xml_writers import DataWriter, MapWriter import math ############################################################################### """ Data Size Per Step """ stp1_data_sz = 13161 stp2_data_sz = 3716 stp3_data_sz = 929 stp4_data_sz = 1 interval = 100 #############################################################...
46.447917
79
0.573895
417cb84b18bfa215758e043bf94cc2d0d861a92e
609
py
Python
sdc/crypto/helper.py
JamesGardiner/sdc-cryptography
e8e50595eefef7ed0bdf1b97abee98e60e9e6a10
[ "MIT" ]
3
2017-10-05T12:38:15.000Z
2019-07-05T11:01:21.000Z
sdc/crypto/helper.py
JamesGardiner/sdc-cryptography
e8e50595eefef7ed0bdf1b97abee98e60e9e6a10
[ "MIT" ]
29
2017-07-26T10:43:47.000Z
2021-04-30T12:53:42.000Z
sdc/crypto/helper.py
JamesGardiner/sdc-cryptography
e8e50595eefef7ed0bdf1b97abee98e60e9e6a10
[ "MIT" ]
3
2021-04-11T07:54:38.000Z
2021-04-29T13:46:30.000Z
import json from jwcrypto.common import base64url_decode from sdc.crypto.exceptions import InvalidTokenException def extract_kid_from_header(token): header = token.split('.')[:1][0] if not header: raise InvalidTokenException("Missing Headers") try: protected_header = base64url_decode(he...
25.375
60
0.71757
b0f157af77ed7ba0eeb0e8530cda159cfecda315
14,838
py
Python
intercept.py
SteffeyDev/poodle
0edf50e0c93def560acc89a41d524da52de1690e
[ "MIT" ]
8
2018-11-14T17:29:10.000Z
2020-10-20T17:11:19.000Z
intercept.py
SteffeyDev/poodle
0edf50e0c93def560acc89a41d524da52de1690e
[ "MIT" ]
1
2020-09-06T05:47:52.000Z
2020-09-07T00:26:22.000Z
intercept.py
SteffeyDev/poodle
0edf50e0c93def560acc89a41d524da52de1690e
[ "MIT" ]
5
2019-02-28T13:15:59.000Z
2020-10-20T17:11:27.000Z
#!/usr/bin/env python3 from netfilterqueue import NetfilterQueue from scapy.all import * from scapy_http.http import * import json from http.server import HTTPServer, BaseHTTPRequestHandler from socketserver import ThreadingMixIn import threading import time from reprint import output import os DEBUG = False # Trac...
34.347222
267
0.692479
b196a017198db70c3222bb5f4ebd5b1d3745f0fb
7,453
py
Python
sympy/physics/units/unitsystem.py
bigfooted/sympy
1fb2490fa2fa9b476da450f02a25b03c1dc07cf0
[ "BSD-3-Clause" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
sympy/physics/units/unitsystem.py
bigfooted/sympy
1fb2490fa2fa9b476da450f02a25b03c1dc07cf0
[ "BSD-3-Clause" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
sympy/physics/units/unitsystem.py
bigfooted/sympy
1fb2490fa2fa9b476da450f02a25b03c1dc07cf0
[ "BSD-3-Clause" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
""" Unit system for physical quantities; include definition of constants. """ from typing import Dict from sympy import S, Mul, Pow, Add, Function, Derivative from sympy.physics.units.dimensions import _QuantityMapper from sympy.utilities.exceptions import SymPyDeprecationWarning from .dimensions import Dimension ...
34.827103
87
0.60687
1a34f03bbba8df71b7cea655adbb586f11244888
37,333
py
Python
myems-api/reports/spacestatistics.py
hyh123a/myems
669ab8554995a622da595384698d670f9cee61f8
[ "MIT" ]
1
2021-08-04T13:41:45.000Z
2021-08-04T13:41:45.000Z
myems-api/reports/spacestatistics.py
hyh123a/myems
669ab8554995a622da595384698d670f9cee61f8
[ "MIT" ]
null
null
null
myems-api/reports/spacestatistics.py
hyh123a/myems
669ab8554995a622da595384698d670f9cee61f8
[ "MIT" ]
null
null
null
import falcon import simplejson as json import mysql.connector import config from datetime import datetime, timedelta, timezone from core import utilities from decimal import Decimal import excelexporters.spacestatistics class Reporting: @staticmethod def __init__(): pass @staticmethod def on...
60.214516
120
0.510487
014a34337ccfefe2296a9ec71bfe9d241db10119
1,510
py
Python
gumi/group_utils_test.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
8
2019-08-29T07:43:03.000Z
2021-03-03T14:25:09.000Z
gumi/group_utils_test.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
null
null
null
gumi/group_utils_test.py
kumasento/gconv-prune
f81c417d3754102c902bd153809130e12607bd7d
[ "MIT" ]
2
2019-09-15T03:39:30.000Z
2020-04-30T07:06:46.000Z
import torch from gumi.group_utils import get_group_allocation def test_get_group_allocation_all_ones(): mask = torch.ones((2, 2), dtype=torch.bool) gaf, gac = get_group_allocation(mask, G=1) assert gaf is not None assert gac is not None assert (gaf == 1).all() assert (gac == 1).all() #...
26.034483
83
0.586755
c93acd53c96c31681f115b251b0c4df8c708da5e
7,867
py
Python
samples/openapi3/client/petstore/python-experimental/petstore_api/models/pet.py
gmcouto/openapi-generator
bde0d77c8f3f9ae831690beecfb0c4e70f37e7b8
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/models/pet.py
gmcouto/openapi-generator
bde0d77c8f3f9ae831690beecfb0c4e70f37e7b8
[ "Apache-2.0" ]
null
null
null
samples/openapi3/client/petstore/python-experimental/petstore_api/models/pet.py
gmcouto/openapi-generator
bde0d77c8f3f9ae831690beecfb0c4e70f37e7b8
[ "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 """ ...
37.822115
174
0.574806
a7739032d1cdf94e5382a387102810f690343cd4
775
py
Python
fish_ann/annimation.py
SamiEzz/utilities
e845660217e96dd9cfed45cb40a15abec450eb7f
[ "Apache-2.0" ]
null
null
null
fish_ann/annimation.py
SamiEzz/utilities
e845660217e96dd9cfed45cb40a15abec450eb7f
[ "Apache-2.0" ]
null
null
null
fish_ann/annimation.py
SamiEzz/utilities
e845660217e96dd9cfed45cb40a15abec450eb7f
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation k = 2*np.pi w = 2*np.pi dt = 0.01 xmin = 0 xmax = 3 nbx = 100 x = np.linspace(xmin, xmax, nbx) fig = plt.figure() # initialise la figure line, = plt.plot([],[]) plt.xlim(xmin, xmax) plt.ylim(-1,1) # fonction à définir quan...
22.142857
111
0.68129
a84cff243f53851176c70936f087adabdbea5c64
30,466
py
Python
denbi/perun/keystone.py
deNBI/perunKeystoneAdapter
41034f337e210b5b1580042e42829eee7a5ac40c
[ "Apache-2.0" ]
6
2018-01-18T09:11:43.000Z
2020-01-16T07:15:52.000Z
denbi/perun/keystone.py
deNBI/perunKeystoneAdapter
41034f337e210b5b1580042e42829eee7a5ac40c
[ "Apache-2.0" ]
29
2018-02-22T07:58:28.000Z
2022-03-09T14:12:28.000Z
denbi/perun/keystone.py
deNBI/perunKeystoneAdapter
41034f337e210b5b1580042e42829eee7a5ac40c
[ "Apache-2.0" ]
null
null
null
# 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, software # distributed under t...
44.026012
264
0.578809
c64d65b2d43e130ffd11994de90817ec1d7e1c4d
424
py
Python
kafka_prod/python-subscriber/src/app.py
RADM5TSIZE/Big_Data
caa3fe97fc180a89f117a10de85bf5e6e7c04d01
[ "Apache-2.0" ]
null
null
null
kafka_prod/python-subscriber/src/app.py
RADM5TSIZE/Big_Data
caa3fe97fc180a89f117a10de85bf5e6e7c04d01
[ "Apache-2.0" ]
null
null
null
kafka_prod/python-subscriber/src/app.py
RADM5TSIZE/Big_Data
caa3fe97fc180a89f117a10de85bf5e6e7c04d01
[ "Apache-2.0" ]
1
2021-09-01T12:08:34.000Z
2021-09-01T12:08:34.000Z
# Install: pip3 install kafka-python from kafka import KafkaConsumer # The bootstrap server to connect to bootstrap = 'my-cluster-kafka-bootstrap:9092' # Create a comsumer instance # cf. print('Starting KafkaConsumer') consumer = KafkaConsumer('big_data_demo', # <-- topics bootstrap_servers=...
26.5
55
0.71934
a9f6d98cb1e9ab659dc1637b0172d31fa56b3e9f
115
py
Python
shake-shake_pytorch/models/__init__.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
1
2021-08-19T14:28:45.000Z
2021-08-19T14:28:45.000Z
shake-shake_pytorch/models/__init__.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
null
null
null
shake-shake_pytorch/models/__init__.py
ychnlgy/Chebyshev-Lagrange
74292e72b83f992d6c42a2f2db04dfdce5a52aea
[ "MIT" ]
1
2022-03-11T07:20:06.000Z
2022-03-11T07:20:06.000Z
from . import polynomial from models.shake_resnet import ShakeResNet from models.shake_resnext import ShakeResNeXt
28.75
45
0.869565
f91e2b6cce15ff97e461aa389facc75a99c417f5
687
py
Python
var/spack/repos/builtin/packages/py-glob2/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
11
2015-10-04T02:17:46.000Z
2018-02-07T18:23:00.000Z
var/spack/repos/builtin/packages/py-glob2/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
22
2017-08-01T22:45:10.000Z
2022-03-10T07:46:31.000Z
var/spack/repos/builtin/packages/py-glob2/package.py
player1537-forks/spack
822b7632222ec5a91dc7b7cda5fc0e08715bd47c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
4
2016-06-10T17:57:39.000Z
2018-09-11T04:59:38.000Z
# Copyright 2013-2022 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 PyGlob2(PythonPackage): """Version of the glob module that can capture patterns and su...
34.35
93
0.754003
628a12335c07b8259147f92545d3c1563a855af3
1,585
py
Python
scatter_plot/ImageScatterPlot.py
myazdani/pyImagePlot
8b23385691cc6d6de5d5b1dccb967b0d51fd73bd
[ "MIT", "Unlicense" ]
10
2016-08-28T19:52:45.000Z
2021-04-05T04:10:37.000Z
scatter_plot/ImageScatterPlot.py
myazdani/pyImagePlot
8b23385691cc6d6de5d5b1dccb967b0d51fd73bd
[ "MIT", "Unlicense" ]
1
2019-08-30T07:17:47.000Z
2019-09-02T16:15:23.000Z
scatter_plot/ImageScatterPlot.py
myazdani/pyImagePlot
8b23385691cc6d6de5d5b1dccb967b0d51fd73bd
[ "MIT", "Unlicense" ]
5
2015-07-10T21:20:36.000Z
2020-06-05T05:12:24.000Z
import os from PIL import Image, ImageDraw from pylab import * import csv class ImageScatterPlot: def __init__(self): self.h, self.w = 20000,20000 self.resize_h = 275 self.resize_w = 275 def create_save_fig(self, image_paths, projected_features, out_file): img_scatter = self.create_fig(image_paths...
33.723404
138
0.66877
e1b00566f08dfee058b8855436845e19443e6115
551
py
Python
tests/rl/settings.py
UIA-CAIR/Multitask
b0d9ac348a56c97ca7826de358bd0428c7a90992
[ "Unlicense" ]
14
2017-12-15T01:27:40.000Z
2018-02-06T19:28:35.000Z
tests/rl/settings.py
UIA-CAIR/Multitask
b0d9ac348a56c97ca7826de358bd0428c7a90992
[ "Unlicense" ]
3
2018-04-26T09:38:18.000Z
2021-04-15T08:22:09.000Z
tests/rl/settings.py
UIA-CAIR/Multitask
b0d9ac348a56c97ca7826de358bd0428c7a90992
[ "Unlicense" ]
5
2018-01-14T18:51:05.000Z
2018-02-04T06:29:38.000Z
settings = { "learning_rate": 1e-6, "memory_size": 1000000, # 1 Million frames in memory "epsilon_start": 0.5, # Start of epsilon decent "epsilon_end": 0.0, # End of epsilon decent "epsilon_steps": 100000, # Epsilon step...
45.916667
114
0.558984
40d9c4f2b4c4c4b5e8893a2e5b17524ba9cba4d8
2,322
py
Python
parser_min.py
davidmaamoaix/parser-combinator-boilerplate
516f652b2bf27a3751f32d4d027649ac7406b59b
[ "MIT" ]
null
null
null
parser_min.py
davidmaamoaix/parser-combinator-boilerplate
516f652b2bf27a3751f32d4d027649ac7406b59b
[ "MIT" ]
null
null
null
parser_min.py
davidmaamoaix/parser-combinator-boilerplate
516f652b2bf27a3751f32d4d027649ac7406b59b
[ "MIT" ]
null
null
null
accum=lambda s,p:s.a[0](*p) if len(p)>=s.a[2] else Curry(s.a[0],p,s.a[2]) class Curry: __init__=lambda s,f,p,l=None:setattr(s,'a', [f,p,f.__code__.co_argcount if l is None else l]) __call__=lambda s,*a:accum(s,[*s.a[1],*a]) curry=lambda x,l=None:x if isinstance(x,Curry) else Curry(x,[],l) lift2A=cu...
43
73
0.615418
83c7e65db6d4f795ad0ecc58ed1b17b194b888f7
226
py
Python
tests/resources/mlflow-test-plugin/mlflow_test_plugin/local_artifact.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
tests/resources/mlflow-test-plugin/mlflow_test_plugin/local_artifact.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
1
2021-01-24T13:34:51.000Z
2021-01-24T13:34:51.000Z
tests/resources/mlflow-test-plugin/mlflow_test_plugin/local_artifact.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
from kiwi.store.artifact.local_artifact_repo import LocalArtifactRepository class PluginLocalArtifactRepository(LocalArtifactRepository): """LocalArtifactRepository provided through plugin system""" is_plugin = True
32.285714
75
0.836283
51da30289bf76c045ba4cd54c25955d947b7d915
3,694
py
Python
flink-python/pyflink/table/tests/test_set_operation.py
tamirsagi/flink
778483a0a387251bc8b78f23b41352a1fbf146a2
[ "Apache-2.0" ]
null
null
null
flink-python/pyflink/table/tests/test_set_operation.py
tamirsagi/flink
778483a0a387251bc8b78f23b41352a1fbf146a2
[ "Apache-2.0" ]
null
null
null
flink-python/pyflink/table/tests/test_set_operation.py
tamirsagi/flink
778483a0a387251bc8b78f23b41352a1fbf146a2
[ "Apache-2.0" ]
2
2022-02-15T07:05:13.000Z
2022-03-18T07:08:20.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...
39.72043
95
0.661072
389abffd1089c4834157e7e4a1b04cb6bdbef15e
756
bzl
Python
tools/build_rules/proto.bzl
google/qrisp
1970d13166cddcd05cb10fccdb34247c7b0dddf3
[ "Apache-2.0" ]
11
2015-12-14T07:03:31.000Z
2020-03-15T07:13:27.000Z
tools/build_rules/proto.bzl
google/qrisp
1970d13166cddcd05cb10fccdb34247c7b0dddf3
[ "Apache-2.0" ]
1
2016-04-01T20:40:12.000Z
2016-04-06T00:01:34.000Z
tools/build_rules/proto.bzl
google/qrisp
1970d13166cddcd05cb10fccdb34247c7b0dddf3
[ "Apache-2.0" ]
10
2016-02-25T08:08:09.000Z
2021-10-21T12:40:33.000Z
proto_filetype = FileType([".proto"]) # code adapted from mzhaom. def proto_library(name, src, deps = None): proto_cc_deps = [ "//google/protobuf:protoc", ] cc_deps = [ "//google/protobuf:protobuf" ] command = "$(location //google/protobuf:protoc) --cpp_out=$(GENDIR)/" command += " $(location %s)"...
19.894737
71
0.589947
c434a7b0a3be733b519f2a9830a7747433766ceb
165
py
Python
News/admin.py
pajuhesh80/NewsBlog
0712dc76703d89d8d0881d568d2aa902372a7b8f
[ "MIT" ]
6
2022-01-29T15:45:15.000Z
2022-03-28T21:04:22.000Z
News/admin.py
pajuhesh80/NewsBlog
0712dc76703d89d8d0881d568d2aa902372a7b8f
[ "MIT" ]
null
null
null
News/admin.py
pajuhesh80/NewsBlog
0712dc76703d89d8d0881d568d2aa902372a7b8f
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * admin.site.register(Category) admin.site.register(Post) admin.site.register(Comment) admin.site.register(Ad)
20.625
32
0.806061
7ea318d468da0cce576df316d7876846087dc3f9
255
py
Python
sample_register/sample_register/doctype/test/test_test.py
TRUFIL/sampreg
d14155954b3a22b0a727d61e55f3619ade448379
[ "MIT" ]
null
null
null
sample_register/sample_register/doctype/test/test_test.py
TRUFIL/sampreg
d14155954b3a22b0a727d61e55f3619ade448379
[ "MIT" ]
null
null
null
sample_register/sample_register/doctype/test/test_test.py
TRUFIL/sampreg
d14155954b3a22b0a727d61e55f3619ade448379
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, indictrans and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest # test_records = frappe.get_test_records('Test') class TestTest(unittest.TestCase): pass
19.615385
49
0.764706
5cd5613412b58cdd02d038b4d537fa6d5c5a56a3
15,383
py
Python
test/functional/rpc_psbt.py
opensourcerulez/xaya
0bd3b6658c29f04bc8a40dbc9cc35fbdb26ff3cf
[ "MIT" ]
null
null
null
test/functional/rpc_psbt.py
opensourcerulez/xaya
0bd3b6658c29f04bc8a40dbc9cc35fbdb26ff3cf
[ "MIT" ]
null
null
null
test/functional/rpc_psbt.py
opensourcerulez/xaya
0bd3b6658c29f04bc8a40dbc9cc35fbdb26ff3cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the Partially Signed Transaction RPCs. """ from test_framework.test_framework import BitcoinTestFramew...
50.768977
209
0.655789
9e6df957fca4ca661644d0467f850d3861af902d
21,575
py
Python
soph/nn/nn.py
artificialsoph/soph.py
58ae497f71bb48ecba7bcb8771f64112fdc9f3fb
[ "MIT" ]
null
null
null
soph/nn/nn.py
artificialsoph/soph.py
58ae497f71bb48ecba7bcb8771f64112fdc9f3fb
[ "MIT" ]
null
null
null
soph/nn/nn.py
artificialsoph/soph.py
58ae497f71bb48ecba7bcb8771f64112fdc9f3fb
[ "MIT" ]
null
null
null
import keras import numpy as np from keras import backend as K # epsilon set according to BIGGAN https://arxiv.org/pdf/1809.11096.pdf def _l2normalizer(v, epsilon=1e-4): return v / (K.sum(v**2)**0.5 + epsilon) def power_iteration(W, u, rounds=1): ''' Accroding the paper, we only need to do power iterati...
33.294753
132
0.59657
1fb41778c38b42f7717bc134f22b3909f0fff559
630
py
Python
setup.py
jwg4/bsm_model
9699b594d20ae3faf260e444f648e2fcc7a402dd
[ "MIT" ]
null
null
null
setup.py
jwg4/bsm_model
9699b594d20ae3faf260e444f648e2fcc7a402dd
[ "MIT" ]
null
null
null
setup.py
jwg4/bsm_model
9699b594d20ae3faf260e444f648e2fcc7a402dd
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup(name='bsm_model', version='0.2', description='The Black–Scholes–Merton Model calculator in Python.', long_description='The Black–Scholes–Merton Model calculator in Python.', long_description_content_type='text/markdown', url='https://gith...
39.375
82
0.687302
5adc6532da255dc091cfa185e66dffe8d43c25a3
36,300
py
Python
lib/helpers/kodidb.py
semool/script.module.metadatautils
748880e4da557a6da0e51e9a962f9fefb5fcc5c5
[ "Apache-2.0" ]
null
null
null
lib/helpers/kodidb.py
semool/script.module.metadatautils
748880e4da557a6da0e51e9a962f9fefb5fcc5c5
[ "Apache-2.0" ]
null
null
null
lib/helpers/kodidb.py
semool/script.module.metadatautils
748880e4da557a6da0e51e9a962f9fefb5fcc5c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """get metadata from the kodi DB""" import os, sys import xbmc import xbmcgui import xbmcvfs from .utils import json, try_encode, log_msg, log_exception, get_clean_image, KODI_VERSION from .utils import try_parse_int, localdate_from_utc_string, localized_date_time from .kodi_...
48.207171
119
0.53011
45e1c3f612bcaf9f13501d36cc807cdd282d28c1
1,426
py
Python
function/with.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
function/with.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
function/with.py
Max-PJB/python-learning2
e8b05bef1574ee9abf8c90497e94ef20a7f4e3bd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ ------------------------------------------------- @ Author : Max_Pengjb @ date : 2018/9/23 22:37 @ IDE : PyCharm @ GitHub : https://github.com/JackyPJB @ Contact : pengjianbiao@hotmail.com -----------...
24.169492
102
0.556802
d63e20b26ae2ab0528b0cae1dcad7ea96037d772
240
py
Python
src/fastavro_codecs/_lz4.py
rolando/fastavro-codecs
40b319557d056f36fbfcf292fe0c4372f88c0d37
[ "MIT" ]
1
2017-07-20T16:36:02.000Z
2017-07-20T16:36:02.000Z
src/fastavro_codecs/_lz4.py
rmax/fastavro-codecs
40b319557d056f36fbfcf292fe0c4372f88c0d37
[ "MIT" ]
null
null
null
src/fastavro_codecs/_lz4.py
rmax/fastavro-codecs
40b319557d056f36fbfcf292fe0c4372f88c0d37
[ "MIT" ]
null
null
null
from lz4 import compress, decompress from ._base import BaseCodec class Lz4Codec(BaseCodec): # TODO: Unreleased version of lz4 support compression arguments. encode = staticmethod(compress) decode = staticmethod(decompress)
21.818182
68
0.766667
b0d49d8fae0818a4fade847c9dc637e51e8862d8
127
py
Python
backend/couscous/settings/production.py
jimmykamau/couscous
97a1b36e159df39239e3485bd90be0639aa44d38
[ "MIT" ]
1
2020-10-26T10:23:58.000Z
2020-10-26T10:23:58.000Z
backend/couscous/settings/production.py
jimmykamau/couscous
97a1b36e159df39239e3485bd90be0639aa44d38
[ "MIT" ]
9
2019-11-21T12:43:42.000Z
2022-02-10T14:18:01.000Z
backend/couscous/settings/production.py
jimmykamau/couscous
97a1b36e159df39239e3485bd90be0639aa44d38
[ "MIT" ]
null
null
null
import json import os from couscous.settings.base import * ALLOWED_HOSTS = json.loads(os.environ.get('ALLOWED_HOSTS', '[]'))
18.142857
65
0.748031
587d3977530b085ff615e2277aa2e32a67ab1ae8
10,886
py
Python
pythonScripts/VCell_API/vcellapi.py
vcellmike/Biosimulators_VCell
b313f9c46ea78815505959e994ba3744ab49ada0
[ "MIT" ]
38
2017-09-08T08:51:43.000Z
2022-02-08T02:25:19.000Z
pythonScripts/VCell_API/vcellapi.py
vcellmike/Biosimulators_VCell
b313f9c46ea78815505959e994ba3744ab49ada0
[ "MIT" ]
79
2018-04-01T16:37:58.000Z
2022-03-30T18:10:23.000Z
pythonScripts/VCell_API/vcellapi.py
vcellmike/Biosimulators_VCell
b313f9c46ea78815505959e994ba3744ab49ada0
[ "MIT" ]
17
2017-09-12T18:21:56.000Z
2022-01-04T19:49:35.000Z
import requests import hashlib class BiomodelsQuerySpec(object): def __init__(self): self.bmName=""; self.bmId=""; self.category="all"; self.owner=""; self.savedLow=""; self.savedHigh=""; self.startRow=""; self.maxRows="10"; self.orderBy="dat...
34.01875
166
0.568804
4dda4c0f37286d640127b1f855658e57c4b43f89
537
py
Python
Exercícios/Ex.92.py
mattheuslima/Projetos-Curso_Python
ab4cab98fe69b70245b5bcf41edd0febe823ac6a
[ "MIT" ]
null
null
null
Exercícios/Ex.92.py
mattheuslima/Projetos-Curso_Python
ab4cab98fe69b70245b5bcf41edd0febe823ac6a
[ "MIT" ]
null
null
null
Exercícios/Ex.92.py
mattheuslima/Projetos-Curso_Python
ab4cab98fe69b70245b5bcf41edd0febe823ac6a
[ "MIT" ]
null
null
null
from datetime import datetime trabalhador={"Nome":str(input("Qual o nome? ")), "Ano de nascimento":int(input("Qual o ano de nascimento: ")), "CTPS":int(input("Qual o número da CTPS (0 se não tem) ")), "Ano de contratação":int(input("Qual o ano de contratação? ")), "Sa...
41.307692
76
0.590317
b577496467257e6ddd69259ebf0b4845b9e49837
261
py
Python
plutoid_web/logger.py
manasgarg/plutoid-web
ff5aa0657d04ea298ad3f33dd2a61eaf22b3acf6
[ "MIT" ]
null
null
null
plutoid_web/logger.py
manasgarg/plutoid-web
ff5aa0657d04ea298ad3f33dd2a61eaf22b3acf6
[ "MIT" ]
null
null
null
plutoid_web/logger.py
manasgarg/plutoid-web
ff5aa0657d04ea298ad3f33dd2a61eaf22b3acf6
[ "MIT" ]
null
null
null
from fluent.sender import FluentSender fluent_sender = None def log(label, data): if fluent_sender: fluent_sender.emit(label, data) else: print(label, data) def init_logger(prefix): global fluent_sender fluent_sender = FluentSender(prefix)
18.642857
53
0.747126
7707a963451108b8985e38659685a50889b5aef0
606
py
Python
debug/debugc_warp_mlogistic.py
gitter-badger/fdasrsf_python
f59bd74b570662c17a1a042556d4887e6a75fa3e
[ "BSD-3-Clause" ]
34
2017-02-17T13:48:49.000Z
2022-02-27T11:17:14.000Z
debug/debugc_warp_mlogistic.py
gitter-badger/fdasrsf_python
f59bd74b570662c17a1a042556d4887e6a75fa3e
[ "BSD-3-Clause" ]
23
2018-05-21T20:12:26.000Z
2022-03-28T23:19:10.000Z
debug/debugc_warp_mlogistic.py
gitter-badger/fdasrsf_python
f59bd74b570662c17a1a042556d4887e6a75fa3e
[ "BSD-3-Clause" ]
12
2018-03-07T13:16:06.000Z
2021-12-31T05:21:53.000Z
import numpy as np import fdasrsf as fs import mlogit_warp as mw import h5py fun = h5py.File('/Users/jdtucker/Documents/Research/fdasrsf/debug/debug_data.h5') q = fun['q'][:] y = fun['y'][:] time = fun['time'][:] alpha = fun['alpha'][:] beta = fun['beta'][:] max_itr = 10000 # 4000 tol = 1e-10 delta = .01 display = 1...
26.347826
81
0.587459
0017271fe6c97d5b25c417a478bc01bca643f88f
53,037
py
Python
pandas/tests/indexes/test_datetimelike.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
1
2019-10-24T09:00:26.000Z
2019-10-24T09:00:26.000Z
pandas/tests/indexes/test_datetimelike.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
null
null
null
pandas/tests/indexes/test_datetimelike.py
RTBHOUSE/pandas
e27b29697f0dcf9359f01a19edb2f20c6d728b6c
[ "PSF-2.0", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause" ]
3
2019-12-24T18:46:58.000Z
2021-09-04T11:57:13.000Z
# -*- coding: utf-8 -*- from datetime import datetime, timedelta, time, date import numpy as np from pandas import (DatetimeIndex, Float64Index, Index, Int64Index, NaT, Period, PeriodIndex, Series, Timedelta, TimedeltaIndex, date_range, period_range, timede...
42.910194
79
0.559628
2500be4000abaf728c758dcddcccf9ef592e409e
2,946
py
Python
profiles_api/models.py
apoorvpd/profile-rest-api
0214d7379a7911f70266ae9a3e088c8b3cd99965
[ "MIT" ]
null
null
null
profiles_api/models.py
apoorvpd/profile-rest-api
0214d7379a7911f70266ae9a3e088c8b3cd99965
[ "MIT" ]
null
null
null
profiles_api/models.py
apoorvpd/profile-rest-api
0214d7379a7911f70266ae9a3e088c8b3cd99965
[ "MIT" ]
null
null
null
from django.db import models # These are the standard base classes that you need to use when overriding or customizing the default Django user model. from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager # ...
40.916667
142
0.672777
2ae9493da80687bf3ab76bc520e48f006c3166fc
110,898
py
Python
lib/galaxy/tools/parameters/basic.py
nomadscientist/galaxy
5187be208d9a33ca53359283c850b075c943ad86
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/parameters/basic.py
nomadscientist/galaxy
5187be208d9a33ca53359283c850b075c943ad86
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/tools/parameters/basic.py
nomadscientist/galaxy
5187be208d9a33ca53359283c850b075c943ad86
[ "CC-BY-3.0" ]
null
null
null
""" Basic tool parameters. """ import contextlib import json import logging import os import os.path import re from webob.compat import cgi_FieldStorage import galaxy.model from galaxy import util from galaxy.tool_util.parser import get_input_source as ensure_input_source from galaxy.util import ( dbkeys, sa...
44.323741
395
0.615394
d85bbe9c8d40d8069c1ab882b9b2bbd0d971ca36
1,516
py
Python
scregmin/retailer/base.py
IBM/supply-chain-regret-minimization
2f08612e0e7d91a3b890cc5e4f4ee6f2df36fe97
[ "Apache-2.0" ]
1
2021-09-23T10:14:37.000Z
2021-09-23T10:14:37.000Z
scregmin/retailer/base.py
IBM/supply-chain-regret-minimization
2f08612e0e7d91a3b890cc5e4f4ee6f2df36fe97
[ "Apache-2.0" ]
null
null
null
scregmin/retailer/base.py
IBM/supply-chain-regret-minimization
2f08612e0e7d91a3b890cc5e4f4ee6f2df36fe97
[ "Apache-2.0" ]
1
2022-02-16T17:58:49.000Z
2022-02-16T17:58:49.000Z
# # Copyright 2020- IBM Inc. All rights reserved # SPDX-License-Identifier: Apache2.0 # from typing import Tuple, Optional, Dict, Union import numpy as np from collections import defaultdict from abc import ABC, abstractmethod class BaseRetailer(ABC): def __init__(self, seed: Optional[int] = None): if s...
24.852459
65
0.639182
3d9ba78eba20c481aaccce0f67f932ba987e72ad
2,471
py
Python
data/p4VQE/R1/benchmark/startQiskit_Class174.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_Class174.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R1/benchmark/startQiskit_Class174.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=12 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collectio...
27.455556
118
0.634156
f58c129056a76d53deabe73b877cc2532ca0c924
886
py
Python
Code/animate.py
AndreasMadsen/grace
bf472d30a2fac76145d3f68e819c92da4a1970ba
[ "MIT" ]
1
2016-05-17T22:52:19.000Z
2016-05-17T22:52:19.000Z
Code/animate.py
AndreasMadsen/grace
bf472d30a2fac76145d3f68e819c92da4a1970ba
[ "MIT" ]
null
null
null
Code/animate.py
AndreasMadsen/grace
bf472d30a2fac76145d3f68e819c92da4a1970ba
[ "MIT" ]
null
null
null
import grace import math import numpy as np import matplotlib.pyplot as plt import mpl_toolkits.basemap as maps import matplotlib.animation as animation fig = plt.figure(figsize=(12, 6)) m = maps.Basemap(projection='cyl', lon_0=0, resolution='c') m.drawcoastlines(linewidth=.5) m.drawparallels(np.arange(-90.,120.,30....
27.6875
113
0.723476
baa430bccc5fe73199ceed34047fa6bd35b984a6
15,296
py
Python
SimulationRunner.py
ZachGlassman/SpinorBECSimulation
8821a8bc150eda2aa36ce6b39ff178a3ddc99df1
[ "MIT" ]
null
null
null
SimulationRunner.py
ZachGlassman/SpinorBECSimulation
8821a8bc150eda2aa36ce6b39ff178a3ddc99df1
[ "MIT" ]
null
null
null
SimulationRunner.py
ZachGlassman/SpinorBECSimulation
8821a8bc150eda2aa36ce6b39ff178a3ddc99df1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Simulation Runner - This is a module containing a unified interface into the 3 simulation types written. It should be the primary way to interact with the simulation codes. It will allow easy comparison of results. Three types of codes and requirements Mean Field: Number of atoms ...
35.655012
101
0.514514
d5da3ce71f85c40361761a61cce153c79bd0055d
75
py
Python
tf2onnx/version.py
natke/tensorflow-onnx
af083a2e070d67b7ca47e9babe7ff6938b169176
[ "MIT" ]
null
null
null
tf2onnx/version.py
natke/tensorflow-onnx
af083a2e070d67b7ca47e9babe7ff6938b169176
[ "MIT" ]
null
null
null
tf2onnx/version.py
natke/tensorflow-onnx
af083a2e070d67b7ca47e9babe7ff6938b169176
[ "MIT" ]
null
null
null
version = '1.6.0' git_version = '82f805f8fe7d2fa91e6ca9d39e153712f6887fec'
25
56
0.813333
0b877c8c98cb7469d721036f57817191b8a06102
23,187
py
Python
moto/ec2/responses/transit_gateway_attachments.py
mts-engineering/moto
ee6f20e376a902ab38810ab41094fda96cbee65c
[ "Apache-2.0" ]
null
null
null
moto/ec2/responses/transit_gateway_attachments.py
mts-engineering/moto
ee6f20e376a902ab38810ab41094fda96cbee65c
[ "Apache-2.0" ]
null
null
null
moto/ec2/responses/transit_gateway_attachments.py
mts-engineering/moto
ee6f20e376a902ab38810ab41094fda96cbee65c
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals from moto.core.responses import BaseResponse from moto.ec2.utils import filters_from_querystring, add_tag_specification class TransitGatewayAttachment(BaseResponse): def create_transit_gateway_vpc_attachment(self): options = self._get_multi_param_dict("Options") ...
54.175234
141
0.689309
7fabe5d1eb2cafdd7672953c419bfa18cfc500ce
3,705
py
Python
bugzilla2gitlab/config.py
abbbi/bugzilla2gitlab
254c0ea756fbe479d90df654055ef5dc4085c34a
[ "MIT" ]
null
null
null
bugzilla2gitlab/config.py
abbbi/bugzilla2gitlab
254c0ea756fbe479d90df654055ef5dc4085c34a
[ "MIT" ]
null
null
null
bugzilla2gitlab/config.py
abbbi/bugzilla2gitlab
254c0ea756fbe479d90df654055ef5dc4085c34a
[ "MIT" ]
null
null
null
from collections import namedtuple import os import yaml from .utils import _perform_request Config = namedtuple( "Config", [ "gitlab_base_url", "gitlab_project_id", "bugzilla_base_url", "bugzilla_user", "bugzilla_auto_reporter", "bugzilla_closed_states", ...
28.5
86
0.645074
666976a79191d0453f6afeedda40ddaeb79b83d7
148
py
Python
topCoder/srms/200s/srm218/div2/access_level.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-09-30T19:53:08.000Z
2020-09-30T19:53:08.000Z
topCoder/srms/200s/srm218/div2/access_level.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
null
null
null
topCoder/srms/200s/srm218/div2/access_level.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
1
2020-10-15T09:10:57.000Z
2020-10-15T09:10:57.000Z
class AccessLevel: def canAccess(self, rights, minPermission): return ''.join(map(lambda i: 'A' if i>= minPermission else 'D', rights))
37
80
0.668919
62d40178d4ac42ab1d5da1cbd7cba287dd2476ee
353
py
Python
backend/src/infrastructures/database.py
Seina88/attendance-system
afa7ba64c7fd99623a1c5dd3b09151ade759d715
[ "MIT" ]
2
2021-05-12T14:09:44.000Z
2021-06-19T12:38:33.000Z
backend/src/infrastructures/database.py
Seina88/attendance-system
afa7ba64c7fd99623a1c5dd3b09151ade759d715
[ "MIT" ]
10
2021-05-13T12:09:47.000Z
2021-06-07T13:28:17.000Z
backend/src/infrastructures/database.py
Seina88/attendance-system
afa7ba64c7fd99623a1c5dd3b09151ade759d715
[ "MIT" ]
1
2021-06-17T00:54:04.000Z
2021-06-17T00:54:04.000Z
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate class Database(SQLAlchemy): def __init__(self) -> None: super().__init__() self.migrate = Migrate() def initialize(self, app: Flask) -> None: self.init_app(app) self.migrate.init_...
20.764706
45
0.677054
a6b91a1d18734a1d217b1058702945911322dfff
6,993
py
Python
Assignment5/src/scripts/catalog_search.py
shikashyam/BigDataSystemsCoursework
d7f9cabbfb18b0e3303292b65af1ffd530e24ccc
[ "MIT" ]
null
null
null
Assignment5/src/scripts/catalog_search.py
shikashyam/BigDataSystemsCoursework
d7f9cabbfb18b0e3303292b65af1ffd530e24ccc
[ "MIT" ]
null
null
null
Assignment5/src/scripts/catalog_search.py
shikashyam/BigDataSystemsCoursework
d7f9cabbfb18b0e3303292b65af1ffd530e24ccc
[ "MIT" ]
4
2022-02-12T23:59:54.000Z
2022-02-16T22:53:32.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Mar 10 14:24:15 2022 @author: shshyam """ from importlib.resources import path import h5py import math import boto3 from botocore.handlers import disable_signing from os import walk import os import pandas as pd from geopy import distance from geopy im...
38.213115
246
0.664951
25c89e53d50fb33b43f0e59880085fc54a0dfd86
5,041
py
Python
utilities.py
dingdanhao110/HINGCN
281b73c03bd3b00e35bce4c5e1c27076233555e4
[ "MIT" ]
null
null
null
utilities.py
dingdanhao110/HINGCN
281b73c03bd3b00e35bce4c5e1c27076233555e4
[ "MIT" ]
null
null
null
utilities.py
dingdanhao110/HINGCN
281b73c03bd3b00e35bce4c5e1c27076233555e4
[ "MIT" ]
null
null
null
import numpy as np import scipy.sparse as sp import torch def encode_onehot(labels): classes = set(labels) classes_dict = {c: np.identity(len(classes))[i, :] for i, c in enumerate(classes)} labels_onehot = np.array(list(map(classes_dict.get, labels)), dtype...
35.251748
92
0.617933
cd3a1b337f47f74f3704e9b7f726067e4dde96e7
1,396
py
Python
chrome/tools/build/PRESUBMIT.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
76
2020-09-02T03:05:41.000Z
2022-03-30T04:40:55.000Z
chrome/tools/build/PRESUBMIT.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
45
2020-09-02T03:21:37.000Z
2022-03-31T22:19:45.000Z
chrome/tools/build/PRESUBMIT.py
zealoussnow/chromium
fd8a8914ca0183f0add65ae55f04e287543c7d4a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
8
2020-07-22T18:49:18.000Z
2022-02-08T10:27:16.000Z
# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Presubmit script for FILES.cfg controlling which files are archived. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for ...
34.9
75
0.724928
cb3dabb438d1901773b85be7fccd37ee3fb9b4e5
7,996
py
Python
model-optimizer/extensions/front/interpolate_reshape_test.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
2
2020-11-18T14:14:06.000Z
2020-11-28T04:55:57.000Z
model-optimizer/extensions/front/interpolate_reshape_test.py
Andruxin52rus/openvino
d824e371fe7dffb90e6d3d58e4e34adecfce4606
[ "Apache-2.0" ]
30
2020-11-13T11:44:07.000Z
2022-02-21T13:03:16.000Z
model-optimizer/extensions/front/interpolate_reshape_test.py
mmakridi/openvino
769bb7709597c14debdaa356dd60c5a78bdfa97e
[ "Apache-2.0" ]
1
2020-12-18T15:47:45.000Z
2020-12-18T15:47:45.000Z
""" Copyright (C) 2018-2020 Intel 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 i...
45.175141
120
0.613057
544ba8d98f7b58f7dedf98f8e8746522d8285a52
5,419
py
Python
Drago2Dengine/__versions__/win32/raw/__core__/__widgets__.py
DragoNext/Drago-2D-Engine
d740186d8a1807127bff3d351df152ccadbaba09
[ "MIT" ]
null
null
null
Drago2Dengine/__versions__/win32/raw/__core__/__widgets__.py
DragoNext/Drago-2D-Engine
d740186d8a1807127bff3d351df152ccadbaba09
[ "MIT" ]
null
null
null
Drago2Dengine/__versions__/win32/raw/__core__/__widgets__.py
DragoNext/Drago-2D-Engine
d740186d8a1807127bff3d351df152ccadbaba09
[ "MIT" ]
null
null
null
class D2DWidgets: def __init__(self,D2DOBJ,EVMANAGER): """Widgets :D""" self.D2D = D2DOBJ self.EVENT_MANAGER = EVMANAGER self.WIDGETS = [] # _std standard events for widgets :3 def _std_x(self,*ALL_VARIABLESIN): ''' Example ARGS = [but,...
34.297468
166
0.567448
cadea28ff7367d4fa75e3181feeddcf44516bbce
8,467
py
Python
hbvpy/core/model.py
GironsLopez/hbvpy
c90241a444f2d111358234f42982cd573ff3c7bd
[ "BSD-3-Clause" ]
1
2022-01-11T12:13:31.000Z
2022-01-11T12:13:31.000Z
hbvpy/core/model.py
GironsLopez/hbvpy
c90241a444f2d111358234f42982cd573ff3c7bd
[ "BSD-3-Clause" ]
null
null
null
hbvpy/core/model.py
GironsLopez/hbvpy
c90241a444f2d111358234f42982cd573ff3c7bd
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ hbvpy.model =========== **A package to run the command line version of HBV-light.** This package is intended to provide bindngs to the command line version of HBV-light so the model can be run from a python script. .. author:: Marc Girons Lopez """ import os import...
31.830827
79
0.597969
26844ef34e134cc54a2ff8da5875198bd488add7
4,230
py
Python
PythonLinearNonlinearControl/helper.py
Geonhee-LEE/PythonLinearNonlinearControl
2a2467098108641483778c09ceb7906cb49f6cee
[ "MIT" ]
425
2020-03-31T07:17:48.000Z
2022-03-30T09:44:41.000Z
PythonLinearNonlinearControl/helper.py
Geonhee-LEE/PythonLinearNonlinearControl
2a2467098108641483778c09ceb7906cb49f6cee
[ "MIT" ]
6
2020-06-22T23:50:41.000Z
2021-11-19T08:48:35.000Z
PythonLinearNonlinearControl/helper.py
Geonhee-LEE/PythonLinearNonlinearControl
2a2467098108641483778c09ceb7906cb49f6cee
[ "MIT" ]
88
2020-04-03T12:58:54.000Z
2022-03-28T07:01:22.000Z
import argparse import datetime import json import os import sys import six import pickle from logging import DEBUG, basicConfig, getLogger, FileHandler, StreamHandler, Formatter, Logger def make_logger(save_dir): """ Args: save_dir (str): save directory """ # base config setting basicConf...
26.772152
96
0.633806
3a62b6ca919a5256599f3facf3e7fe9db3c483b9
1,034
py
Python
pcdsdevices/tests/test_disconnected.py
ghalym/pcdsdevices
0427e1b92b10e305bdd29cd3a968ce913bae60aa
[ "BSD-3-Clause-LBNL" ]
3
2019-06-17T20:08:54.000Z
2022-01-11T17:55:21.000Z
pcdsdevices/tests/test_disconnected.py
ghalym/pcdsdevices
0427e1b92b10e305bdd29cd3a968ce913bae60aa
[ "BSD-3-Clause-LBNL" ]
757
2017-12-21T23:16:41.000Z
2022-03-31T22:56:06.000Z
pcdsdevices/tests/test_disconnected.py
ghalym/pcdsdevices
0427e1b92b10e305bdd29cd3a968ce913bae60aa
[ "BSD-3-Clause-LBNL" ]
38
2018-01-26T00:01:35.000Z
2022-02-17T00:48:55.000Z
import pytest from ophyd.device import Component as Cpt from ophyd.device import Device from ophyd.signal import EpicsSignal class Disconnected(Device): sig01 = Cpt(EpicsSignal, '01') sig02 = Cpt(EpicsSignal, '02') sig03 = Cpt(EpicsSignal, '03') sig04 = Cpt(EpicsSignal, '04') sig05 = Cpt(EpicsSign...
30.411765
70
0.659574
d9e7c04cfe349f0e1b0ca3c9115322f9d71b1450
7,517
py
Python
official/benchmark/xlnet_benchmark.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
official/benchmark/xlnet_benchmark.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
10
2019-12-28T21:31:19.000Z
2020-04-12T20:01:58.000Z
official/benchmark/xlnet_benchmark.py
zcdzcdzcd/models
a31b526a7617a152a138a865b5689bf5b59f655d
[ "Apache-2.0" ]
8
2020-04-12T04:30:33.000Z
2021-09-17T20:54:44.000Z
# 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 applica...
34.640553
102
0.715977
95522d862c784d36605c5cc196a9f2b4fb329196
10,862
py
Python
glue_vispy_viewers/volume/shaders.py
glue-viz/glue-vispy-viewer
7ce0c55989eee9dc4056e5ce1547591cbaab86b6
[ "BSD-2-Clause" ]
19
2016-05-26T15:05:50.000Z
2021-12-02T10:48:30.000Z
glue_vispy_viewers/volume/shaders.py
Carifio24/glue-vispy-viewers
7ce0c55989eee9dc4056e5ce1547591cbaab86b6
[ "BSD-2-Clause" ]
183
2016-05-05T10:38:56.000Z
2021-10-17T21:32:45.000Z
glue_vispy_viewers/volume/shaders.py
PennyQ/astro-vispy
7ce0c55989eee9dc4056e5ce1547591cbaab86b6
[ "BSD-2-Clause" ]
15
2016-08-27T12:09:31.000Z
2021-11-07T18:52:54.000Z
# This file implements a fragment shader that can be used to visualize multiple # volumes simultaneously. It is derived from the original fragment shader in # vispy.visuals.volume, which is releaed under a BSD license included here: # # =========================================================================== # Vispy...
34.702875
90
0.625575
0c2670963f285453784cc951da34c764a8e261e9
747
py
Python
sharpy/plans/tactics/terran/man_the_bunkers.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
sharpy/plans/tactics/terran/man_the_bunkers.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
sharpy/plans/tactics/terran/man_the_bunkers.py
eladyaniv01/sharpy-sc2
91119cc3e3fce683c2dbe9687c616c9cc0461b06
[ "MIT" ]
null
null
null
from sharpy.plans.acts import ActBase from sharpy.managers.roles import UnitTask from sc2 import UnitTypeId, AbilityId class ManTheBunkers(ActBase): def __init__(self): super().__init__() async def execute(self) -> bool: roles: 'UnitRoleManager' = self.knowledge.roles bunkers = self.c...
32.478261
67
0.631861
0f8f027f2f175380d970bea7fb1d80316440ca6d
1,451
py
Python
emitter_test.py
AjayMT/emitter
8b8c1aaab39ca858a59ad45a36f22f2737a0d46a
[ "MIT" ]
1
2021-01-04T05:29:49.000Z
2021-01-04T05:29:49.000Z
emitter_test.py
AjayMT/emitter
8b8c1aaab39ca858a59ad45a36f22f2737a0d46a
[ "MIT" ]
null
null
null
emitter_test.py
AjayMT/emitter
8b8c1aaab39ca858a59ad45a36f22f2737a0d46a
[ "MIT" ]
null
null
null
from unittest import TestCase from emitter import Emitter class TestEmitter(TestCase): def setUp(self): self.emitter = Emitter() def test_call_listeners(self): called = [False] def cb(): called[0] = True self.emitter.on('hello.*', cb) self.emitter.emit('...
25.017241
52
0.565817
2e226a6a79da98634da562ec1d907f9d750a268b
1,955
py
Python
blog_info.py
Admiraldesvl/blog_info
a9336f5cad8b095c449a72802185548ee3a4f40e
[ "MIT" ]
null
null
null
blog_info.py
Admiraldesvl/blog_info
a9336f5cad8b095c449a72802185548ee3a4f40e
[ "MIT" ]
null
null
null
blog_info.py
Admiraldesvl/blog_info
a9336f5cad8b095c449a72802185548ee3a4f40e
[ "MIT" ]
null
null
null
from datetime import date import json from shutil import copy print("请输入文件名:") fName = input() File = open(fName,'w') jsonFile = open("blog_info.json","r") # 在 blog_info.json里添加默认配置 data = json.load(jsonFile) File.write('---\n') # 评论开关 print("是否开启评论?(Y/N)") m=input() if(m=="Y"): File.write("comment: true\n") else:...
21.966292
63
0.568286
7cb055b373325fd9191bf7a36a232c8e96f3dfc0
3,802
py
Python
rosserial/rosserial_vex_v5/src/rosserial_vex_v5/make_libraries.py
JVR01/3DPrinted_Robot_ArmRepo
0f0b5aa7ddb9279f11aba6ad7c2a38c2d8926714
[ "MIT" ]
1
2020-11-20T03:10:18.000Z
2020-11-20T03:10:18.000Z
rosserial/rosserial_vex_v5/src/rosserial_vex_v5/make_libraries.py
JVR01/3DPrinted_Robot_ArmRepo
0f0b5aa7ddb9279f11aba6ad7c2a38c2d8926714
[ "MIT" ]
30
2020-11-27T23:12:12.000Z
2021-04-25T15:37:42.000Z
rosserial/rosserial_vex_v5/src/rosserial_vex_v5/make_libraries.py
JVR01/3DPrinted_Robot_ArmRepo
0f0b5aa7ddb9279f11aba6ad7c2a38c2d8926714
[ "MIT" ]
null
null
null
#!/usr/bin/env python ##################################################################### # Software License Agreement (BSD License) # # Copyright (c) 2013, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that th...
42.244444
140
0.665439
979d569a9e48138a47b57f500ad2cdee19c670fb
2,213
py
Python
open_spiel/python/optimal_stopping_tests/test_traces.py
jstymne/repo
88b2cec2509edb54e60cef2faf83a74e81cf66de
[ "Apache-2.0" ]
null
null
null
open_spiel/python/optimal_stopping_tests/test_traces.py
jstymne/repo
88b2cec2509edb54e60cef2faf83a74e81cf66de
[ "Apache-2.0" ]
null
null
null
open_spiel/python/optimal_stopping_tests/test_traces.py
jstymne/repo
88b2cec2509edb54e60cef2faf83a74e81cf66de
[ "Apache-2.0" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt if __name__ == '__main__': #with open(f'traces/O_1.npy', 'rb') as f: # O_1 = np.load(f, allow_pickle=True) #with open(f'traces/O_2.npy', 'rb') as f: # O_2 = np.load(f, allow_pickle=True) with open(f'O_3.npy', 'rb') as f: O_3 = np.load...
29.905405
91
0.637596
eb00e411e90a36168c60a2f2b07c2ba28d4cdd1e
36,146
py
Python
sgsession/session.py
VFXetc/sgsession
6ae016e376fda26ac8c2fbb48d96b878bd446da2
[ "BSD-3-Clause" ]
9
2017-04-05T12:38:53.000Z
2021-06-25T15:41:07.000Z
sgsession/session.py
vfxetc/sgsession
6ae016e376fda26ac8c2fbb48d96b878bd446da2
[ "BSD-3-Clause" ]
null
null
null
sgsession/session.py
vfxetc/sgsession
6ae016e376fda26ac8c2fbb48d96b878bd446da2
[ "BSD-3-Clause" ]
3
2017-07-04T22:59:15.000Z
2018-05-19T22:47:26.000Z
"""The Session is a wrapper around a Shotgun instance, proxying requests to the server and applying additional logic on top of it. The Session instance is designed to be used for a single task and then discarded, since it makes the assumption that entity relationships do not change. While not fully documented below, t...
36.921348
129
0.572373
2a33b7f91cebd111b2805b0a22b68cc8249af39d
249
py
Python
Yatube/hw02_community/posts/urls.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
3
2020-11-18T05:16:30.000Z
2021-03-08T06:36:01.000Z
Yatube/hw02_community/posts/urls.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
null
null
null
Yatube/hw02_community/posts/urls.py
abi83/YaPractice
1c3a5670ee2f872d4f872623a392755318b893b5
[ "MIT" ]
1
2021-01-20T12:41:48.000Z
2021-01-20T12:41:48.000Z
from django.urls import path from . import views urlpatterns = [ path('', views.posts_list, name='posts-list'), path('group/', views.groups_list, name='groups-list'), path('group/<slug:slug>/', views.group_posts, name='group-posts'), ]
27.666667
70
0.674699
60e6ebbec2fe7842144abe0d94ca1d6aebf1444c
5,757
py
Python
yt/frontends/_skeleton/data_structures.py
aemerick/yt
984484616d75c6d7603e71b9d45c5d617705a0e5
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/_skeleton/data_structures.py
aemerick/yt
984484616d75c6d7603e71b9d45c5d617705a0e5
[ "BSD-3-Clause-Clear" ]
null
null
null
yt/frontends/_skeleton/data_structures.py
aemerick/yt
984484616d75c6d7603e71b9d45c5d617705a0e5
[ "BSD-3-Clause-Clear" ]
null
null
null
import os import numpy as np import weakref from yt.data_objects.grid_patch import \ AMRGridPatch from yt.geometry.grid_geometry_handler import \ GridIndex from yt.data_objects.static_output import \ Dataset from .fields import SkeletonFieldInfo class SkeletonGrid(AMRGridPatch): _id_offset = 0 d...
39.703448
84
0.614382
75e8ee6f132dd309dc56b77e83bb42b76ddc3477
484
py
Python
apps/06_lolcat_factory/you_try/my_app/venv/Scripts/pip3.5-script.py
jstrat1618/python-jumpstart-course-demos
4f022653fd452d649a654dc94afb9c63797806ca
[ "MIT" ]
1
2018-03-28T03:15:02.000Z
2018-03-28T03:15:02.000Z
apps/06_lolcat_factory/you_try/my_app/venv/Scripts/pip3.5-script.py
jstrat1618/python-jumpstart-course-demos
4f022653fd452d649a654dc94afb9c63797806ca
[ "MIT" ]
null
null
null
apps/06_lolcat_factory/you_try/my_app/venv/Scripts/pip3.5-script.py
jstrat1618/python-jumpstart-course-demos
4f022653fd452d649a654dc94afb9c63797806ca
[ "MIT" ]
null
null
null
#!C:\Users\JustinandAbigail\Desktop\python-jumpstart-course-demos-master\apps\06_lolcat_factory\you_try\my_app\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.5' __requires__ = 'pip==9.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main_...
37.230769
134
0.698347
9aa0ac9290de1ed776f8bcbe45b74f9d730ff56d
687
py
Python
learning/sources/source_gym_pong.py
bermeom/quadruped-robot
5570c720a27b26f94236ebc2ff41f0a1549f10b8
[ "MIT" ]
8
2018-12-19T17:30:10.000Z
2021-05-09T17:53:03.000Z
learning/sources/source_gym_pong.py
bermeom/quadruped-robot
5570c720a27b26f94236ebc2ff41f0a1549f10b8
[ "MIT" ]
null
null
null
learning/sources/source_gym_pong.py
bermeom/quadruped-robot
5570c720a27b26f94236ebc2ff41f0a1549f10b8
[ "MIT" ]
2
2020-10-06T01:56:30.000Z
2021-04-28T18:31:39.000Z
from sources.source_gym import source_gym import cv2 import numpy as np ##### SOURCE GYM PONG class source_gym_pong( source_gym ): ### __INIT__ def __init__( self ): source_gym.__init__( self , 'Pong-v4' ) ### INFORMATION def num_actions( self ): return 3 ### MAP KEYS def map_keys(...
21.46875
71
0.588064
5d4979991a437be55854a04bc00e640ee651d788
9,228
py
Python
hybrid_cloud_patches/python/nova/virt/hybridvmwareapi/vif.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
2
2015-06-15T02:16:33.000Z
2022-02-23T07:10:38.000Z
hybrid_cloud_patches/python/nova/virt/hybridvmwareapi/vif.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
7
2016-05-13T06:39:45.000Z
2016-05-20T02:55:31.000Z
hybrid_cloud_patches/python/nova/virt/hybridvmwareapi/vif.py
Hybrid-Cloud/badam
390ad3a6fc03948008f7c04ed2f9fcc8514cc1eb
[ "Apache-2.0" ]
4
2015-11-02T04:02:50.000Z
2021-05-13T17:06:00.000Z
"""VIF drivers for VMware.""" from oslo.config import cfg from oslo.vmware import exceptions as vexc from nova import exception from nova.i18n import _ from nova.network import model from nova.openstack.common import log as logging from nova.virt.hybridvmwareapi import network_util from nova.virt.vmwareapi import vim...
40.651982
78
0.62332
0c060fffd63e80fad5478d5838aeb3f8deb6786b
2,772
py
Python
demo.py
ow2-proactive/proactive-python-client
3f2291021f8fbcd6db7f919584b40d809c94fa88
[ "BSD-2-Clause" ]
5
2018-04-04T12:37:18.000Z
2020-05-28T08:59:10.000Z
demo.py
ow2-proactive/proactive-python-client
3f2291021f8fbcd6db7f919584b40d809c94fa88
[ "BSD-2-Clause" ]
11
2018-03-27T12:43:54.000Z
2022-01-18T07:01:02.000Z
demo.py
ow2-proactive/proactive-python-client
3f2291021f8fbcd6db7f919584b40d809c94fa88
[ "BSD-2-Clause" ]
6
2018-03-15T16:17:01.000Z
2020-11-02T03:02:57.000Z
import os import proactive print("Logging on proactive-server...") proactive_host = 'try.activeeon.com' proactive_port = '8080' proactive_url = "http://"+proactive_host+":"+proactive_port print("Connecting on: " + proactive_url) javaopts = [] # uncomment for detailed logs # javaopts.append('-Dlog4j.configuration=file...
42
94
0.758297
324db507a7a99c816e4f14473add5c7acc27831b
4,238
py
Python
benchmarking/benchmark_loop/plot_results.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
benchmarking/benchmark_loop/plot_results.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
1
2022-02-25T15:56:36.000Z
2022-02-25T17:53:10.000Z
benchmarking/benchmark_loop/plot_results.py
talesa/syne-tune
282156294a64a0cd260ccd908f3cf6b3e8c71003
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). # You may not use this file except in compliance with the License. # A copy of the License is located at # # http://www.apache.org/licenses/LICENSE-2.0 # # or in the "license...
39.981132
128
0.641812
1f7072c65b0c333a1f062a036bc5208e1dd479c0
2,660
py
Python
simplesensor/collection_modules/demographic_camera/azureImagePredictor.py
dbenge/SimpleSensor
0ec029da520e2c0563a407bec9c1290fe5226995
[ "Apache-2.0" ]
7
2019-09-10T16:46:15.000Z
2022-03-12T18:42:15.000Z
simplesensor/collection_modules/demographic_camera/azureImagePredictor.py
dbenge/SimpleSensor
0ec029da520e2c0563a407bec9c1290fe5226995
[ "Apache-2.0" ]
10
2017-12-18T18:37:08.000Z
2018-10-01T17:55:57.000Z
simplesensor/collection_modules/demographic_camera/azureImagePredictor.py
dbenge/SimpleSensor
0ec029da520e2c0563a407bec9c1290fe5226995
[ "Apache-2.0" ]
12
2019-04-04T09:27:55.000Z
2022-03-31T05:09:17.000Z
""" AzureImagePredictor ImagePredictor implementation for Azure Face API """ from simplesensor.shared.threadsafeLogger import ThreadsafeLogger from .imagePredictor import ImagePredictor import urllib.parse import json import requests # import logging class AzureImagePredictor(ImagePredictor): def __init__(self, m...
34.102564
102
0.595865
4c82cdfcaa42ee37e34212249db588d2fe09fa08
15,456
py
Python
preprocess_data/simple-HRNet/SimpleHRNet.py
pxssw/GCN_ActionRecongtionTools
14a3826817c2066b6188f2139deb0969cc596521
[ "MIT" ]
1
2020-11-04T09:18:23.000Z
2020-11-04T09:18:23.000Z
preprocess_data/simple-HRNet/SimpleHRNet.py
pxssw/GCN_ActionRecongtionTools
14a3826817c2066b6188f2139deb0969cc596521
[ "MIT" ]
null
null
null
preprocess_data/simple-HRNet/SimpleHRNet.py
pxssw/GCN_ActionRecongtionTools
14a3826817c2066b6188f2139deb0969cc596521
[ "MIT" ]
null
null
null
import cv2 import numpy as np import torch from torchvision.transforms import transforms from models.hrnet import HRNet from models.detectors.YOLOv3 import YOLOv3 class SimpleHRNet: """ SimpleHRNet class. The class provides a simple and customizable method to load the HRNet network, load the official pre...
45.458824
120
0.51721
93e10cd7c81fefa4ed5dc7fa524df0aac1c78a60
3,422
py
Python
tests/contrib/celery/django_tests.py
ollyhowell/apm-agent-python
0fd5e2cf63b7d6c9010209d360fbded13dc6e9ab
[ "BSD-3-Clause" ]
350
2017-08-17T12:27:08.000Z
2022-03-30T10:01:33.000Z
tests/contrib/celery/django_tests.py
ollyhowell/apm-agent-python
0fd5e2cf63b7d6c9010209d360fbded13dc6e9ab
[ "BSD-3-Clause" ]
1,115
2017-08-17T15:30:35.000Z
2022-03-31T16:02:52.000Z
tests/contrib/celery/django_tests.py
ollyhowell/apm-agent-python
0fd5e2cf63b7d6c9010209d360fbded13dc6e9ab
[ "BSD-3-Clause" ]
180
2017-08-17T12:26:53.000Z
2022-03-25T09:25:37.000Z
# -*- coding: utf-8 -*- # BSD 3-Clause License # # Copyright (c) 2019, Elasticsearch BV # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the ...
46.876712
91
0.763004
2ee6b5db8457979f7a03c9a2a1de8ff2531335c0
6,335
py
Python
mindspore/nn/metrics/recall.py
taroxd/mindspore
9bb620ff2caaac7f1c53c4b104935f22352cb88f
[ "Apache-2.0" ]
null
null
null
mindspore/nn/metrics/recall.py
taroxd/mindspore
9bb620ff2caaac7f1c53c4b104935f22352cb88f
[ "Apache-2.0" ]
null
null
null
mindspore/nn/metrics/recall.py
taroxd/mindspore
9bb620ff2caaac7f1c53c4b104935f22352cb88f
[ "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...
42.516779
119
0.607893
bdb217079a02480c3d3cef4f194ad456f9124c1b
984
py
Python
scraper/storage_spiders/thefaceshop360com.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
null
null
null
scraper/storage_spiders/thefaceshop360com.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
10
2020-02-11T23:34:28.000Z
2022-03-11T23:16:12.000Z
scraper/storage_spiders/thefaceshop360com.py
chongiadung/choinho
d2a216fe7a5064d73cdee3e928a7beef7f511fd1
[ "MIT" ]
3
2018-08-05T14:54:25.000Z
2021-06-07T01:49:59.000Z
# Auto generated by generator.py. Delete this line if you make modification. from scrapy.spiders import Rule from scrapy.linkextractors import LinkExtractor XPATH = { 'name' : "//h1[@class='tieu-de-san-pham']", 'price' : "//h2[@class='product-price-single']/span//span[@class='amount']", 'category' : "//div...
36.444444
92
0.639228
239e40ce8eec24f2ce97c6ed574268bba70a9e08
14,814
py
Python
pyro/infer/tracegraph_elbo.py
svenrdz/pyro
36c68ec55943f2bc1f586f7061c5c8d7ea93dd0f
[ "MIT" ]
2
2020-04-11T04:30:55.000Z
2021-07-29T18:45:08.000Z
pyro/infer/tracegraph_elbo.py
svenrdz/pyro
36c68ec55943f2bc1f586f7061c5c8d7ea93dd0f
[ "MIT" ]
null
null
null
pyro/infer/tracegraph_elbo.py
svenrdz/pyro
36c68ec55943f2bc1f586f7061c5c8d7ea93dd0f
[ "MIT" ]
null
null
null
import weakref from operator import itemgetter import torch import pyro import pyro.ops.jit from pyro.distributions.util import is_identically_zero from pyro.infer import ELBO from pyro.infer.enum import get_importance_trace from pyro.infer.util import (MultiFrameTensor, detach_iterable, get_plate_stacks, ...
44.089286
107
0.671662
d9fd61f431c861b2e631d734a651819a77fbcd9a
1,025
py
Python
python/nano/src/bigdl/nano/automl/utils/parallel_worker.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/automl/utils/parallel_worker.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
python/nano/src/bigdl/nano/automl/utils/parallel_worker.py
Forest216/BigDL
840da9a2eaf395978dd83730b02aa5e5dfbd7989
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
28.472222
74
0.717073
0114c5efe0ec118560ed9b1a344bc334936c803c
1,559
py
Python
nipype/interfaces/mrtrix3/tests/test_auto_DWIExtract.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
nipype/interfaces/mrtrix3/tests/test_auto_DWIExtract.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
nipype/interfaces/mrtrix3/tests/test_auto_DWIExtract.py
felixsc1/nipype
e722d6170593583f16ddfcb95473e5d30b5f1d7c
[ "Apache-2.0" ]
1
2020-07-17T12:49:49.000Z
2020-07-17T12:49:49.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..utils import DWIExtract def test_DWIExtract_inputs(): input_map = dict( args=dict(argstr='%s', ), bval_scale=dict(argstr='-bvalue_scaling %s', ), bzero=dict(argstr='-bzero', ), envi...
29.980769
67
0.54907
66b0dae9b697ea9d4dcd8164e5632a1903e34643
4,415
py
Python
tests/console/commands/test_config.py
AWhetter/poetry
b1d380ec63ef43a2b59c52d10f9733b50eca9081
[ "MIT" ]
null
null
null
tests/console/commands/test_config.py
AWhetter/poetry
b1d380ec63ef43a2b59c52d10f9733b50eca9081
[ "MIT" ]
null
null
null
tests/console/commands/test_config.py
AWhetter/poetry
b1d380ec63ef43a2b59c52d10f9733b50eca9081
[ "MIT" ]
null
null
null
import json import os import pytest from poetry.config.config_source import ConfigSource from poetry.core.pyproject.exceptions import PyProjectException from poetry.factory import Factory @pytest.fixture() def tester(command_tester_factory): return command_tester_factory("config") def test_show_config_with_lo...
28.668831
87
0.719366
b8e8904722a39c0ccad2e548d8ca749c8f3adbe7
3,711
py
Python
batch-tmp.py
MinnPost/donations
075d3a764e21022e247a4aa1066c234c7ab4f68b
[ "MIT" ]
2
2021-06-02T06:54:38.000Z
2021-11-29T19:37:55.000Z
batch-tmp.py
MinnPost/donations
075d3a764e21022e247a4aa1066c234c7ab4f68b
[ "MIT" ]
17
2020-10-20T22:40:45.000Z
2021-06-25T13:30:49.000Z
batch-tmp.py
MinnPost/donations
075d3a764e21022e247a4aa1066c234c7ab4f68b
[ "MIT" ]
1
2021-01-08T02:23:35.000Z
2021-01-08T02:23:35.000Z
import logging from config import ACCOUNTING_MAIL_RECIPIENT, LOG_LEVEL, REDIS_TLS_URL, TIMEZONE from datetime import datetime, timedelta from pytz import timezone import celery import redis from charges import amount_to_charge, charge, ChargeException from npsp import Opportunity from util import send_email zone = t...
24.097403
99
0.637564
f11bbd4d2dd7880d773b173d6f74e8fec22c7292
42
py
Python
server/__init__.py
nghiattr/flask-docker
670cbd2a9255962989f10a92c4ba2375fb0aebb1
[ "MIT" ]
null
null
null
server/__init__.py
nghiattr/flask-docker
670cbd2a9255962989f10a92c4ba2375fb0aebb1
[ "MIT" ]
null
null
null
server/__init__.py
nghiattr/flask-docker
670cbd2a9255962989f10a92c4ba2375fb0aebb1
[ "MIT" ]
1
2021-10-30T01:28:24.000Z
2021-10-30T01:28:24.000Z
from .app import * __version__ = '0.1.4'
10.5
21
0.642857
6411f564a0fcf85ff6cc953ad0a31dc22a49fcda
4,628
py
Python
WiredQT/plugin/Tab/Tab.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
1
2021-12-18T09:17:08.000Z
2021-12-18T09:17:08.000Z
WiredQT/plugin/Tab/Tab.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
null
null
null
WiredQT/plugin/Tab/Tab.py
chiptrontech/WiredQTv1.0
760948bb736867db4e772031b23ed9151e0364b9
[ "MIT" ]
2
2021-12-18T09:15:53.000Z
2022-01-19T15:10:14.000Z
from PyQt5 import QtCore, QtWidgets from PyQt5.QtGui import * from wired_module import * # Generated By WiredQT for Python: by Rocky Nuarin, 2021 Phils class Handler(QtWidgets.QWidget,usercontrol): #WiredEvent def tabchange(self,index) #WiredProperty 'TabVisible':'True','list':["True","False"] #WiredProperty 'Back...
28.567901
348
0.669404
dcb3ccff3611cc10ab5a9e7afcd72f5732e77d60
9,298
py
Python
scripts/command_counter_generator.py
bethau/Vulkan-ValidationLayers
e798df982b1b6fdcbc048f1987cba42cb68dfafa
[ "Apache-2.0" ]
3
2020-07-04T07:23:40.000Z
2021-07-04T00:15:37.000Z
scripts/command_counter_generator.py
bethau/Vulkan-ValidationLayers
e798df982b1b6fdcbc048f1987cba42cb68dfafa
[ "Apache-2.0" ]
null
null
null
scripts/command_counter_generator.py
bethau/Vulkan-ValidationLayers
e798df982b1b6fdcbc048f1987cba42cb68dfafa
[ "Apache-2.0" ]
5
2021-01-24T11:28:26.000Z
2021-07-04T00:15:38.000Z
#!/usr/bin/python3 -i # # Copyright (c) 2015-2020 The Khronos Group Inc. # Copyright (c) 2015-2020 Valve Corporation # Copyright (c) 2015-2020 LunarG, Inc. # Copyright (c) 2019-2020 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance wit...
41.695067
103
0.599054
4d3f34b6dd1dc0748d74f7ceb392be66f6e0770c
500
py
Python
elf_parser_factory.py
manojrupireddy/encutils
c931aa84956c57bea42d0c2dec238547d97d450b
[ "MIT" ]
null
null
null
elf_parser_factory.py
manojrupireddy/encutils
c931aa84956c57bea42d0c2dec238547d97d450b
[ "MIT" ]
3
2020-09-14T17:37:21.000Z
2020-09-14T18:58:04.000Z
elf_parser_factory.py
manojrupireddy/encutils
c931aa84956c57bea42d0c2dec238547d97d450b
[ "MIT" ]
1
2020-09-16T21:25:34.000Z
2020-09-16T21:25:34.000Z
import shutil import sys from objdump_parser import ObjDumpParser from llvm_objdump_parser import LLVMObjDumpParser def get_elf_parser(binary_file_name, show_symbol_files): if shutil.which("llvm-objdump") is not None: return LLVMObjDumpParser(binary_file_name, show_symbol_files) else: if sy...
31.25
73
0.718
21c6117584bf39b0b538ffa122d29c6cb09d5192
1,564
py
Python
mottak-arkiv-service/tests/tools/azure_servicebus/send_message.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
null
null
null
mottak-arkiv-service/tests/tools/azure_servicebus/send_message.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
null
null
null
mottak-arkiv-service/tests/tools/azure_servicebus/send_message.py
omBratteng/mottak
b7d2e1d063b31c2ad89c66e5414297612f91ebe9
[ "Apache-2.0" ]
null
null
null
import logging import os import sys import json from dotenv import load_dotenv from azure.servicebus import ServiceBusClient, ServiceBusMessage load_dotenv() # Sets up logging logging.basicConfig(level=logging.INFO, format='%(name)s | %(levelname)s | %(message)s') logging.getLogger('uamqp').setLevel(logging.WARNIN...
31.918367
100
0.698849
7e76997dc38057dbb1aa13424f82aedba7e9c417
7,807
py
Python
docs/conf.py
shun-liang/whosaidwhat
66a593abf74f414d05481514887d4cd84cf99d78
[ "MIT" ]
null
null
null
docs/conf.py
shun-liang/whosaidwhat
66a593abf74f414d05481514887d4cd84cf99d78
[ "MIT" ]
null
null
null
docs/conf.py
shun-liang/whosaidwhat
66a593abf74f414d05481514887d4cd84cf99d78
[ "MIT" ]
null
null
null
# whosaidwhat documentation build configuration file, created by # sphinx-quickstart. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All configuration values have a default; values that ...
31.995902
80
0.706289
a2326de2ae8316f73563e682730ce88d58bac3a8
1,924
py
Python
test_scripts/functional_tests/crypto/crypto_box_seal_open_fails_with_invalid_wallet_handle_test.py
hyperledger/indy-post-install-automation
a19cb3c66f0adea6bb4c1fc20e1509cc97bd3d5f
[ "Apache-2.0" ]
2
2021-08-23T15:20:22.000Z
2021-12-03T01:58:02.000Z
test_scripts/functional_tests/crypto/crypto_box_seal_open_fails_with_invalid_wallet_handle_test.py
hyperledger-archives/indy-post-install-automation
a19cb3c66f0adea6bb4c1fc20e1509cc97bd3d5f
[ "Apache-2.0" ]
1
2018-02-22T10:04:41.000Z
2018-02-22T10:04:41.000Z
test_scripts/functional_tests/crypto/crypto_box_seal_open_fails_with_invalid_wallet_handle_test.py
hyperledger/indy-post-install-automation
a19cb3c66f0adea6bb4c1fc20e1509cc97bd3d5f
[ "Apache-2.0" ]
7
2018-01-03T20:45:48.000Z
2019-08-12T11:02:31.000Z
""" Created on Jan 2, 2018 @author: nhan.nguyen Verify that user cannot decrypt an anonymous encrypted message with invalid wallet handle. """ import pytest from indy import crypto from indy.error import ErrorCode from utilities import common, utils from test_scripts.functional_tests.crypto.crypto_test_base \ im...
39.265306
94
0.587318
3a54d6d79f3278f05ce6262dc0c69aa1ac54c326
1,584
py
Python
machiane_learning_python/classification/lab03_knn_calulation_dataset.py
justin-changqi/machine_learning_practise
52e4f6694e9e8ba3dfb57e2f3352641526c3e7d9
[ "MIT" ]
null
null
null
machiane_learning_python/classification/lab03_knn_calulation_dataset.py
justin-changqi/machine_learning_practise
52e4f6694e9e8ba3dfb57e2f3352641526c3e7d9
[ "MIT" ]
null
null
null
machiane_learning_python/classification/lab03_knn_calulation_dataset.py
justin-changqi/machine_learning_practise
52e4f6694e9e8ba3dfb57e2f3352641526c3e7d9
[ "MIT" ]
null
null
null
# https://www.youtube.com/watch?v=3XPhmnf96s0&index=18&list=PLQVvvaa0QuDfKTOs3Keq_kaG2P55YRn5v import numpy as np from math import sqrt import warnings from collections import Counter import pandas as pd import random def k_nearest_neighbors(data, predict, k=3): if len(data) >= k: warnings.warn('K is set t...
31.058824
94
0.673611
251c4524d117d4071525259a0990408b23598afa
1,597
py
Python
parser_model/trackers.py
NLP-Discourse-SoochowU/rst_dp2019Bottom2Up
ac1624127c9c8a3301685193ac8239357e01f6ca
[ "MIT" ]
1
2020-08-18T01:28:07.000Z
2020-08-18T01:28:07.000Z
parser_model/trackers.py
NLP-Discourse-SoochowU/rst_dp2019
ac1624127c9c8a3301685193ac8239357e01f6ca
[ "MIT" ]
null
null
null
parser_model/trackers.py
NLP-Discourse-SoochowU/rst_dp2019
ac1624127c9c8a3301685193ac8239357e01f6ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Author: lyzhang @Date: @Description: """ import torch import torch.nn as nn from config import SEED, Tracking_With_GRU from utils.file_util import load_data from config import ALL_LABELS_NUM, Action2ids_path, LABEL_EMBED_SIZE class Tracker(nn.Module): """ Desc: tracker...
34.717391
74
0.625548
a3507320e0aedd17169703e354f16d6c202cd9c1
2,144
py
Python
symposion/speakers/migrations/0001_initial.py
jasongrout/conf_site
6b3beb21de8d847cba65dcb6da84464b40739d48
[ "MIT" ]
13
2015-05-22T17:10:22.000Z
2021-07-15T16:45:19.000Z
symposion/speakers/migrations/0001_initial.py
jasongrout/conf_site
6b3beb21de8d847cba65dcb6da84464b40739d48
[ "MIT" ]
758
2015-03-18T13:39:25.000Z
2022-03-31T13:14:09.000Z
symposion/speakers/migrations/0001_initial.py
jasongrout/conf_site
6b3beb21de8d847cba65dcb6da84464b40739d48
[ "MIT" ]
16
2015-03-24T18:53:17.000Z
2020-10-22T21:30:02.000Z
# Generated by Django 2.0.13 on 2019-02-17 18:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
53.6
231
0.649254
0408dee6e55e879e4ceb8ddd990f71f9ee55d965
815
py
Python
mtraintester.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
mtraintester.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
mtraintester.py
trevor-wieland/MTrainAI
47bab3bf3af9e5426a822a7d14586f1798674cd7
[ "MIT" ]
null
null
null
import mtrain import neuraltrainer import mtrainsimulator if __name__ == "__main__": """ Main testing function, call the other functions from here to easily test each part of the program """ #results = mtrainsimulator.simulate_games(num_games=100, debug=False) #results = mtrainsimulator.simulat...
50.9375
128
0.694479
4bb72ff7ff3a05e6817bddee70fb8b1ef2e762bd
886
py
Python
tests/test_flavortown.py
jbek7/emrichen
b6b8327e35cb2b9f3da49519110ecc766a9ad741
[ "MIT" ]
null
null
null
tests/test_flavortown.py
jbek7/emrichen
b6b8327e35cb2b9f3da49519110ecc766a9ad741
[ "MIT" ]
null
null
null
tests/test_flavortown.py
jbek7/emrichen
b6b8327e35cb2b9f3da49519110ecc766a9ad741
[ "MIT" ]
null
null
null
from emrichen import Template, Context FLAVORTOWN_YAML = """ flavours: !Loop as: a template: !Merge - flavour_name: !Void available: true - !If test: !IsString,Lookup a then: flavour_name: !Lookup a else: !Lookup a over: - peasoup - hard liquor - flavour_nam...
18.851064
83
0.514673
cf9018861b57ec91283cd68d30087fafafcebe09
754
py
Python
webstore/__init__.py
quoctann/demowebstore
48edfa359ba01d8ea64a673fbcb4e0f84a6bd41f
[ "CC-BY-4.0" ]
null
null
null
webstore/__init__.py
quoctann/demowebstore
48edfa359ba01d8ea64a673fbcb4e0f84a6bd41f
[ "CC-BY-4.0" ]
null
null
null
webstore/__init__.py
quoctann/demowebstore
48edfa359ba01d8ea64a673fbcb4e0f84a6bd41f
[ "CC-BY-4.0" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_mail import Mail app = Flask(__name__) # Configuration of MySQL Server app.secret_key = "qou3rhkjsafbi327y12$U@$JK@BKANOEIDQ" app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://root:P@ssw0rd@localhost...
34.272727
107
0.785146
26e0ec62ff1c3357075e2c847954d2786dc5c564
1,057
py
Python
test/functional/create_cache.py
reeccoin/REEC
eb388d692aa7039dfe78247c829e4d348ff1f631
[ "MIT" ]
2
2020-11-28T13:09:16.000Z
2020-12-05T21:01:07.000Z
test/functional/create_cache.py
reeccoin/REEC
eb388d692aa7039dfe78247c829e4d348ff1f631
[ "MIT" ]
null
null
null
test/functional/create_cache.py
reeccoin/REEC
eb388d692aa7039dfe78247c829e4d348ff1f631
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2016-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. """Create a blockchain cache. Creating a cache of the blockchain speeds up test execution when running mu...
32.030303
86
0.735099
34713b61e430153c9a33d296c9ca375b24d928fa
3,837
py
Python
tests/engine/processing_status.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
2
2019-10-23T03:37:59.000Z
2020-08-14T17:09:26.000Z
tests/engine/processing_status.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
null
null
null
tests/engine/processing_status.py
pyllyukko/plaso
7533db2d1035ca71d264d6281ebd5db2d073c587
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Tests the processing status.""" import unittest from plaso.engine import processing_status class ProcessStatusTest(unittest.TestCase): """Tests the process status.""" def testUpdateNumberOfErrors(self): """Tests the UpdateNumberOfWarnings function.""" p...
30.452381
71
0.732864