hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
dbfbafe90d8d62c542ce03ef8a862cdef8687b06
5,288
py
Python
radssh/hostkey.py
Eli-Tarrago/radssh
ebf3c8f17c3768268dcd483e899a590698de4452
[ "BSD-3-Clause" ]
39
2015-05-11T15:06:58.000Z
2021-12-29T07:24:23.000Z
radssh/hostkey.py
Eli-Tarrago/radssh
ebf3c8f17c3768268dcd483e899a590698de4452
[ "BSD-3-Clause" ]
45
2015-01-05T22:11:18.000Z
2021-06-02T03:57:49.000Z
radssh/hostkey.py
eorochena/radssh
b1d1ee5822036445f26a34147452df5c3142caee
[ "BSD-3-Clause" ]
13
2015-05-05T12:42:09.000Z
2022-03-03T18:09:49.000Z
# # Copyright (c) 2014, 2016, 2018, 2020 LexisNexis Risk Data Management Inc. # # This file is part of the RadSSH software package. # # RadSSH is free software, released under the Revised BSD License. # You are permitted to use, modify, and redsitribute this software # according to the Revised BSD License, a copy of wh...
39.462687
167
0.625946
3,558
0.672844
0
0
0
0
0
0
1,810
0.342284
dbfc3c9f59db54005f9a1ad67dd376c6806f7fa6
14,153
py
Python
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
543
2016-07-07T15:31:01.000Z
2022-03-31T10:58:32.000Z
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
143
2016-07-07T16:56:38.000Z
2022-02-23T23:16:52.000Z
nuke/pymmh3.py
jfpanisset/Cryptomatte
d7c71cff17a4e8895eb17520115aa45ff66b8540
[ "BSD-3-Clause" ]
158
2016-07-07T16:41:49.000Z
2022-03-21T17:57:28.000Z
''' pymmh3 was written by Fredrik Kihlander and enhanced by Swapnil Gusani, and is placed in the public domain. The authors hereby disclaim copyright to this source code. pure python implementation of the murmur3 hash algorithm https://code.google.com/p/smhasher/wiki/MurmurHash3 This was written for the times when y...
31.311947
104
0.464283
0
0
0
0
0
0
0
0
1,532
0.108246
dbfc56fb832ee5fc9af604dacd2a35c059519b31
950
py
Python
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
10
2020-04-08T06:25:27.000Z
2022-03-15T06:54:53.000Z
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
117
2019-12-16T14:43:41.000Z
2022-03-21T19:46:58.000Z
bindings/python/tests/test_factory.py
pscff/dlite
4365d828dcaa1736cc78ff6ed9a65592f198ba25
[ "MIT" ]
5
2020-04-15T16:23:29.000Z
2021-12-07T08:40:54.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import dlite thisdir = os.path.abspath(os.path.dirname(__file__)) class Person: def __init__(self, name, age, skills): self.name = name self.age = age self.skills = skills def __repr__(self): return 'Person(%r, %r, %r)'...
25
78
0.671579
237
0.249474
0
0
0
0
0
0
315
0.331579
dbfcfb1df1954ace1963bc30983b96adb222d711
807
py
Python
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
1
2021-11-03T18:27:37.000Z
2021-11-03T18:27:37.000Z
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
null
null
null
week_11_DS_N_Algorithm/03_Thr_Lecture/실습6_연속 부분 최대합.py
bky373/elice-racer-1st
ddea8079a1083796ed4f59c38650ff8f4333e6ef
[ "FSFAP" ]
1
2021-02-10T15:21:53.000Z
2021-02-10T15:21:53.000Z
''' 연속 부분 최대합 nn개의 숫자가 주어질 때, 연속 부분을 선택하여 그 합을 최대화 하는 프로그램을 작성하시오. 예를 들어, 다음과 같이 8개의 숫자가 있다고 하자. 1 2 -4 5 3 -2 9 -10 이 때, 연속 부분이란 연속하여 숫자를 선택하는 것을 말한다. 가능한 연속 부분으로써 [1, 2, -4], [5, 3, -2, 9], [9, -10] 등이 있을 수 있다. 이 연속 부분들 중에서 가장 합이 큰 연속 부분은 [5, 3, -2, 9] 이며, 이보다 더 합을 크게 할 수는 없다. 따라서 연속 부분 최대합은 5+3+(-2)+9 = 15 이다...
17.170213
61
0.537794
0
0
0
0
0
0
0
0
935
0.751004
dbfd1a602dd992f412e1700c617d5bbf9b239826
505
py
Python
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
null
null
null
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
6
2020-03-24T16:45:10.000Z
2021-02-13T10:03:53.000Z
tests/test_dns.py
jensstein/mockdock
4eec294f33d929d361973c1708d2aa856a9900a0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import unittest from mockdock import dns class DNSTest(unittest.TestCase): def test_build_packet(self): data = b"^4\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x06google\x03com\x00\x00\x01\x00\x01" packet = dns.build_packet(data, "192.168.0.1") expeced_result = b"^4\x81...
38.846154
168
0.708911
437
0.865347
0
0
0
0
0
0
260
0.514851
dbfd45a1262d4d81ad4ca682e226d591f37c7fd4
1,490
py
Python
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
6
2019-08-23T18:06:41.000Z
2020-05-06T18:26:53.000Z
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
zhongnansu/es-cli
e0656c21392e52a8b9cfafa69acfa0c13b743a9c
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019, Amazon Web Services 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 writing,...
29.8
73
0.769799
0
0
368
0.24698
711
0.477181
0
0
857
0.575168
dbfd8140aa71c6ce6288cd86d96c8cf8754cf91f
26,845
py
Python
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
Cogs/ServerStats.py
Damiian1/techwizardshardware
97ceafc15036be4136e860076d73d74f1887f041
[ "MIT" ]
null
null
null
import asyncio import discord from datetime import datetime from operator import itemgetter from discord.ext import commands from Cogs import Nullify from Cogs import DisplayName from Cogs import UserTime from Cogs import Message def setup(bot): # Add the bot...
42.076803
254
0.537568
26,447
0.984587
0
0
25,586
0.952533
25,652
0.954991
6,638
0.247124
dbfdaede95b2536399d16c62c421baf5bd420ceb
6,688
py
Python
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
null
null
null
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
2
2020-08-30T22:47:54.000Z
2021-03-31T19:58:11.000Z
chess_commentary_model/transformers_model/dataset_preprocessing.py
Rseiji/TCC-2020
da68a49da38adf1bcf590b3028894d7834a28157
[ "MIT" ]
null
null
null
"""Métodos de preprocessamento de testes individuais """ import pandas as pd import numpy as np import math def test_1(df, seed=0): """training: balanced; test: balanced training: 80k (40k 0, 40k 1) test: 20k (10k 0, 10k 1) """ df_ones = df[df['label'] == 1] df_zeros = df[df['label'] ...
36.546448
80
0.689145
0
0
0
0
0
0
0
0
1,144
0.171027
dbfdb987e6de76d1f36bf0f8ce7f9d972b1cbaed
7,103
py
Python
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
venv/Lib/site-packages/CoolProp/constants.py
kubakoziczak/gasSteamPowerPlant
e6c036cc66ee2ff0b3f2fc923d0991bf57295d61
[ "MIT" ]
null
null
null
# This file is automatically generated by the generate_constants_module.py script in wrappers/Python. # DO NOT MODIFY THE CONTENTS OF THIS FILE! from __future__ import absolute_import from . import _constants INVALID_PARAMETER = _constants.INVALID_PARAMETER igas_constant = _constants.igas_constant imolar_mass = _cons...
44.672956
120
0.887653
0
0
0
0
0
0
0
0
143
0.020132
dbfe9381e4f6dcc57fd5c5d02265d7f565b40315
2,857
py
Python
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
torch_datasets/samplers/balanced_batch_sampler.py
mingruimingrui/torch-datasets
2640b8c4fa82156e68e617fc545a546b4e08dc4e
[ "MIT" ]
null
null
null
import random import torch.utils.data.sampler class BalancedBatchSampler(torch.utils.data.sampler.BatchSampler): def __init__( self, dataset_labels, batch_size=1, steps=None, n_classes=0, n_samples=2 ): """ Create a balanced batch sampler for label based...
38.608108
147
0.637382
2,808
0.982849
150
0.052503
0
0
0
0
850
0.297515
dbfe9b7374d292dd3a07ffc92b4ebb9e7af2ac5d
1,416
py
Python
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,664
2015-01-03T09:35:21.000Z
2022-03-31T04:55:24.000Z
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
3,018
2015-02-19T20:16:10.000Z
2021-11-13T20:47:48.000Z
ambari-common/src/main/python/resource_management/libraries/functions/get_bare_principal.py
likenamehaojie/Apache-Ambari-ZH
5973025bd694cdbb4b49fb4c4e0d774782811ff6
[ "Apache-2.0" ]
1,673
2015-01-06T14:14:42.000Z
2022-03-31T07:22:30.000Z
#!/usr/bin/env python """ Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License");...
33.714286
97
0.764831
0
0
0
0
0
0
0
0
1,150
0.812147
dbff3b375851c03b4ae31fb20b30423a4b9c6ad5
1,162
py
Python
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
2
2017-09-24T02:29:48.000Z
2017-10-05T11:15:22.000Z
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
04/cross_validation.01.py
study-machine-learning/dongheon.shin
6103ef9c73b162603bc39a27e4ecca0f1ac35e57
[ "MIT" ]
null
null
null
from sklearn import svm, metrics import random import re def split(rows): data = [] labels = [] for row in rows: data.append(row[0:4]) labels.append(row[4]) return (data, labels) def calculate_score(train, test): train_data, train_label = split(train) test_data, test_la...
16.84058
66
0.620482
0
0
0
0
0
0
0
0
58
0.049914
e002150863388c3c73e7c985abca9ac6c4427a70
2,587
bzl
Python
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
3
2020-01-14T12:57:31.000Z
2021-06-06T20:47:57.000Z
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
20
2020-04-02T13:08:43.000Z
2020-11-05T11:27:40.000Z
third_party/org_specs2.bzl
wix/wix-oss-infra
b57ac2f0f66487cfdd08293a8fa389efe3d42c43
[ "MIT" ]
1
2021-04-02T09:32:35.000Z
2021-04-02T09:32:35.000Z
load("@wix_oss_infra//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external") def dependencies(): import_external( name = "org_specs2_specs2_fp_2_12", artifact = "org.specs2:specs2-fp_2.12:4.8.3", artifact_sha256 = "777962ca58054a9ea86e294e025453ecf394c60084c28bd61...
37.492754
102
0.68535
0
0
0
0
0
0
0
0
1,576
0.6092
e0023b6272774adf06f1384bdb4cb510043c4a82
224
py
Python
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
1
2019-09-29T14:19:54.000Z
2019-09-29T14:19:54.000Z
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
task/w2/trenirovka/12-rivnist 2.py
beregok/pythontask
50394ff2b52ab4f3273ec9ddc4b504d1f7b3159e
[ "MIT" ]
null
null
null
a = int(input()) b = int(input()) c = int(input()) d = int(input()) if a == 0 and b == 0: print("INF") else: if (d - b * c / a) != 0 and (- b / a) == (- b // a): print(- b // a) else: print("NO")
18.666667
56
0.397321
0
0
0
0
0
0
0
0
9
0.040179
e004ab57c3294086a91490c226d7c40f3986ad7f
4,265
py
Python
src/reg_resampler.py
atif-hassan/Regression_ReSampling
194b2ae8efea7598a6690792d40e42aba74c111b
[ "BSD-3-Clause" ]
15
2020-06-09T20:08:04.000Z
2021-11-21T15:58:09.000Z
src/reg_resampler.py
atif-hassan/Regression_ReSampling
194b2ae8efea7598a6690792d40e42aba74c111b
[ "BSD-3-Clause" ]
null
null
null
src/reg_resampler.py
atif-hassan/Regression_ReSampling
194b2ae8efea7598a6690792d40e42aba74c111b
[ "BSD-3-Clause" ]
5
2020-06-13T22:07:51.000Z
2021-05-21T03:26:45.000Z
class resampler: def __init__(self): import pandas as pd from sklearn.preprocessing import LabelEncoder from collections import Counter import numpy as np self.bins = 3 self.pd = pd self.LabelEncoder = LabelEncoder self.Counter = Counter ...
41.813725
169
0.562251
4,263
0.999531
0
0
0
0
0
0
975
0.228605
e0063a8b35dfc827fe158a159fe5d8b8ab703065
4,920
py
Python
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
32
2020-05-31T17:41:58.000Z
2022-03-28T18:38:11.000Z
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
1
2022-02-09T22:13:03.000Z
2022-02-09T23:55:28.000Z
get_data/speech_commands.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
9
2020-07-17T16:50:24.000Z
2021-12-13T11:29:12.000Z
import os import pathlib import sklearn.model_selection import tarfile import torch import torchaudio import urllib.request here = pathlib.Path(__file__).resolve().parent def _split_data(tensor, stratify): # 0.7/0.15/0.15 train/val/test split (train_tensor, testval_tensor, train_stratify, testval_strati...
42.051282
120
0.566057
0
0
0
0
0
0
0
0
1,019
0.207114
e008ab01b4020e37d916e20d303c66a51a23123e
5,652
py
Python
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
app/endpoints/products.py
duch94/spark_crud_test
94a514797700c2e929792f0424fb0e9e911489b7
[ "BSD-2-Clause" ]
null
null
null
from datetime import datetime from typing import List from flask import Blueprint, jsonify, request, json from app.models.products import Product, Category, products_categories from app import db products_blueprint = Blueprint('products', __name__) def create_or_get_categories(p: dict) -> List[Category]...
45.580645
120
0.608457
0
0
0
0
4,674
0.826964
0
0
1,255
0.222045
e008c8c892e467ea561589969c08eaa2c9b808db
1,701
py
Python
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
util/config/validators/test/test_validate_bitbucket_trigger.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import pytest from httmock import urlmatch, HTTMock from util.config import URLSchemeAndHostname from util.config.validator import ValidatorContext from util.config.validators import ConfigValidationException from util.config.validators.validate_bitbucket_trigger import BitbucketTriggerValidator from test.fixtures i...
29.842105
87
0.671958
0
0
0
0
764
0.449148
0
0
306
0.179894
e008cc40a9e990beff8a7a594350250e113f3691
2,414
py
Python
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
Refraction.py
silkoch42/Geometric-Optics-from-QM
baf41b54c37835b527d5b98cb480d68bc2ff68c3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Mar 15 16:51:16 2019 @author: Silvan """ import numpy as np import scipy import matplotlib.pyplot as plt k=1000 n1=2.0 n2=1.0 alpha=np.pi/6.0 beta=np.arcsin(n2/n1*np.sin(alpha)) ya=1.0 xa=-ya*np.tan(alpha) yb=-1.0 xb=-yb*np.tan(beta) def s(x): ...
24.383838
95
0.583264
0
0
0
0
0
0
0
0
956
0.396023
e0097d9cfd4f53f9d94ad08b373e659436909217
444
py
Python
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
italia/readthedocs.org
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
19
2018-03-28T12:28:35.000Z
2022-02-14T20:09:42.000Z
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
berez23/docs.italia.it
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
274
2017-10-10T07:59:04.000Z
2022-03-12T00:56:03.000Z
readthedocs/docsitalia/management/commands/clear_elasticsearch.py
italia/readthedocs.org
440d3885380d20ec24081f76e26d20701749e179
[ "MIT" ]
13
2018-04-03T09:49:50.000Z
2021-04-18T22:04:15.000Z
"""Remove the readthedocs elasticsearch index.""" from __future__ import absolute_import from django.conf import settings from django.core.management.base import BaseCommand from elasticsearch import Elasticsearch class Command(BaseCommand): """Clear elasticsearch index.""" def handle(self, *args, **opti...
23.368421
51
0.725225
224
0.504505
0
0
0
0
0
0
108
0.243243
e00b9ee8e43ae71af00a3fe383bedc3df745f04d
7,574
py
Python
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
train.py
vnbot2/BigGAN-PyTorch
1725269d52e05fbd4d06dac64aa4906a8ae7a760
[ "MIT" ]
null
null
null
""" BigGAN: The Authorized Unofficial PyTorch release Code by A. Brock and A. Andonian This code is an unofficial reimplementation of "Large-Scale GAN Training for High Fidelity Natural Image Synthesis," by A. Brock, J. Donahue, and K. Simonyan (arXiv 1809.11096). Let's go. """ import datetime impor...
40.287234
103
0.597571
0
0
0
0
0
0
0
0
2,926
0.386322
e00c71d6078595059b1d0af82650622e80499174
1,693
py
Python
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
4
2017-03-03T16:24:24.000Z
2018-06-24T05:50:40.000Z
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2021-09-29T17:17:30.000Z
2021-09-29T17:17:30.000Z
geocamUtil/tempfiles.py
geocam/geocamUtilWeb
b64fc063c64b4b0baa140db4c126f2ff980756ab
[ "NASA-1.3" ]
1
2017-12-19T20:45:53.000Z
2017-12-19T20:45:53.000Z
# __BEGIN_LICENSE__ #Copyright (c) 2015, United States Government, as represented by the #Administrator of the National Aeronautics and Space Administration. #All rights reserved. # __END_LICENSE__ import os import time import random import shutil from glob import glob import traceback import sys from geocamUtil im...
27.306452
93
0.617247
0
0
0
0
0
0
0
0
341
0.201418
e00d7dd12724a0363ee40d8c349e7cccfb71d6f4
5,752
py
Python
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
Ex1:Tests/ex2.py
Lludion/Exercises-SE
4d5b2b4f2989a3e2c7891ba2b766394dbfb43973
[ "MIT" ]
null
null
null
# Ce fichier contient (au moins) cinq erreurs. # Instructions: # - tester jusqu'à atteindre 100% de couverture; # - corriger les bugs;" # - envoyer le diff ou le dépôt git par email.""" import hypothesis from hypothesis import given, settings from hypothesis.strategies import integers, lists class BinHeap: #st...
31.26087
112
0.604312
2,145
0.372719
0
0
2,885
0.501303
0
0
1,033
0.179496
e00dbb3c20046835e182d01718caf34d09944176
22,455
py
Python
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
python/snewpy/snowglobes.py
svalder/snewpy
5723189ae3dce3506f2fab056bbef24c9ab1a31f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """The ``snewpy.snowglobes`` module contains functions for interacting with SNOwGLoBES. `SNOwGLoBES <https://github.com/SNOwGLoBES/snowglobes>`_ can estimate detected event rates from a given input supernova neutrino flux. It supports many different neutrino detectors, detector materials and in...
46.298969
553
0.631485
0
0
0
0
0
0
0
0
9,347
0.416255
e00e074bf789711cc01d53bcaa030d52c4e69f5b
4,621
py
Python
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
128
2020-06-29T01:40:36.000Z
2022-03-29T15:37:39.000Z
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
8
2020-06-29T03:51:50.000Z
2020-07-22T23:55:47.000Z
rlcycle/dqn_base/loss.py
cyoon1729/Rlcycle
5c65b9dd61a6fd5d6dfe92f0b3e04bf309828569
[ "MIT" ]
24
2020-07-02T06:03:03.000Z
2022-03-22T11:59:53.000Z
from typing import List, Tuple from omegaconf import DictConfig import torch import torch.nn as nn import torch.nn.functional as F from rlcycle.common.abstract.loss import Loss class DQNLoss(Loss): """Compute double DQN loss""" def __init__(self, hyper_params: DictConfig, use_cuda: bool): Loss.__in...
34.485075
86
0.61069
4,433
0.959316
0
0
154
0.033326
0
0
95
0.020558
e00f4579dad4a0f1f3310721291b602f532b6bf5
12,518
py
Python
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
3
2020-11-19T10:28:57.000Z
2021-04-15T17:16:24.000Z
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
null
null
null
scripts/gap_filling_viewer.py
raphischer/probgf
01bd2be85aa98afd79fc05c1eb3e260b2bcd2ebd
[ "MIT" ]
null
null
null
"""viewer application which allows to interactively view spatio-temporal gap filling results""" import os import argparse from datetime import datetime, timedelta from tkinter import Canvas, Tk, Button, RAISED, DISABLED, SUNKEN, NORMAL import numpy as np from PIL import Image, ImageTk import probgf.media as media cla...
51.941909
158
0.616552
9,852
0.787027
0
0
0
0
0
0
1,434
0.114555
e00f57f732929e05a58cd0ef2eae47d08e8561a9
4,946
py
Python
paypal/pro/tests.py
pdfcrowd/django-paypal
0ea56dc6c799204f0f8719481f94d0c79de6eff5
[ "Unlicense", "MIT" ]
1
2019-06-13T15:59:48.000Z
2019-06-13T15:59:48.000Z
pro/tests.py
sirmmo/django-paypal
0c8aeec1c319a08ce1bfdf828534d01b69b8fa27
[ "MIT", "Unlicense" ]
null
null
null
pro/tests.py
sirmmo/django-paypal
0c8aeec1c319a08ce1bfdf828534d01b69b8fa27
[ "MIT", "Unlicense" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- from django.conf import settings from django.core.handlers.wsgi import WSGIRequest from django.forms import ValidationError from django.http import QueryDict from django.test import TestCase from django.test.client import Client from paypal.pro.fields import CreditCardField fr...
32.973333
234
0.593207
3,009
0.60837
0
0
0
0
0
0
2,468
0.498989
e00f75413d6a65ba71109974edd248bc1533ce8f
1,010
py
Python
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
Hackerrank_Bot_Saves_Princess.py
madhurgupta96/Algorithmic-Journey
75868af1050c99fc25e295812ba1a47468c6737f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Dec 7 19:46:40 2020 @author: Intel """ def displayPathtoPrincess(n,grid): me_i=n//2 me_j=n//2 for i in range(n): if 'p' in grid[i]: pe_i=i for j in range(n): if 'p'==grid[i][j]: pe...
22.954545
40
0.372277
0
0
0
0
0
0
0
0
116
0.114851
e01063b5b93496a8c88b374770c28bc942feb23d
65,397
py
Python
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
gelviz/basic.py
HiDiHlabs/gelviz
515f0462738b44609679c2a26c7d8ac3ed3b4b2b
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import pybedtools import pandas as pnd import numpy as np import tabix import matplotlib.ticker as ticker from matplotlib.patches import Rectangle from matplotlib.patches import Arrow from matplotlib.path import Path from matplotlib.patches import PathPatch import matplotlib.cm as cm imp...
35.254447
80
0.545101
0
0
0
0
0
0
0
0
24,154
0.369344
e010b163b6fbc347a75063de7760418370bb37d6
31,171
py
Python
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
toc/fsa/fsa.py
djrochford/toc
934d19b4acda55a6d4610c8a91b1a6005ff7b683
[ "MIT" ]
null
null
null
""" File containing DFA and NFA public classes """ import collections.abc from itertools import product, chain, combinations from string import printable from typing import ( AbstractSet, Container, FrozenSet, Iterable, List, Mapping, MutableMapping, Optional, Set, Tuple, Uni...
39.506971
91
0.595939
28,343
0.90776
0
0
6,111
0.195721
0
0
11,318
0.362489
e0112c386596780c5a86b0d6086dc2f7b6c2be8a
429
py
Python
Numbers/Roman Number Generator/tests.py
fossabot/IdeaBag2-Solutions
73b554d9796510fc86e5fc55016732aa866266c6
[ "MIT" ]
10
2018-07-06T22:05:45.000Z
2021-05-22T11:29:04.000Z
Numbers/Roman Number Generator/tests.py
jarik-marwede/IdeaBag2-Projects
c5fe9524ef03a6ebc098ab8aaee7448f5b877828
[ "MIT" ]
22
2018-07-13T17:16:43.000Z
2022-01-11T11:16:08.000Z
Numbers/Roman Number Generator/tests.py
jarik-marwede/IdeaBag2-Projects
c5fe9524ef03a6ebc098ab8aaee7448f5b877828
[ "MIT" ]
1
2020-06-13T18:53:51.000Z
2020-06-13T18:53:51.000Z
#!/usr/bin/env python3 import unittest from roman_number_generator import arabic_to_roman class Test(unittest.TestCase): def _start_arabic_to_roman(self): self.assertRaises(ValueError, arabic_to_roman, 4000) self.assertEqual(arabic_to_roman(4), "IV") self.assertEqual(arabic_to_roman(12),...
23.833333
60
0.717949
286
0.666667
0
0
0
0
0
0
45
0.104895
e012a92e1f872614d01a6331fee5e35c430a31f7
261
py
Python
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
modules/moduleBase.py
saintaardvark/glouton-satnogs-data-downloader
dc8671340f558b1a21b41b9b04bab05fc15c7809
[ "MIT" ]
null
null
null
from infrastructure.satnogClient import SatnogClient import os class ModuleBase: def __init__(self, working_dir): self.working_dir = working_dir def runAfterDownload(self, file_name, full_path, observation): raise NotImplementedError()
29
66
0.762452
197
0.754789
0
0
0
0
0
0
0
0
e013ea72c2e27425fa2415a60a17282e347acbb7
45,537
py
Python
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
oregano_plugins/fusion/server.py
MrNaif2018/Oregano
cc08f813f9cbdb80d1ac607892f8439ec064ee04
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Oregano - a lightweight Ergon client # CashFusion - an advanced coin anonymizer # # Copyright (C) 2020 Mark B. Lundeberg # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the So...
45.310448
174
0.599798
42,368
0.930347
0
0
56
0.00123
0
0
13,317
0.292424
e014451ff2d26b3e408bb00a4f1a954adc75daa5
2,229
py
Python
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
Excercici4Package/ex4.py
jtorrenth/CienciaDades
81f005ed1ddcc218dcde8c5e2f1a297444389a82
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt def countvalues(dataframe, subject): # Filtrem i tractem el dataset economydf = filtrar(dataframe, "economy") # el printem printar(economydf, subject) # Filtrem ara per subject infected i ho desem en un altre df infectedf = filtrar(dataframe, "infected") #...
31.842857
154
0.674742
0
0
0
0
0
0
0
0
1,022
0.457475
e0161b99cffb06588c8cd2a39e9f07abf59540ea
18,987
bzl
Python
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
9
2020-05-31T10:24:57.000Z
2021-12-21T10:07:51.000Z
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
2
2021-11-09T23:25:01.000Z
2021-11-10T08:42:22.000Z
build/rules.bzl
filmil/bazel-ebook
433f1e157c6c1b7867abf72bc0e882c07477d60d
[ "Apache-2.0" ]
2
2020-06-03T13:21:33.000Z
2021-12-01T20:17:46.000Z
# Copyright (C) 2020 Google Inc. # # This file has been licensed under Apache 2.0 license. Please see the LICENSE # file at the root of the repository. # Build rules for building ebooks. # This is the container CONTAINER = "filipfilmar/ebook-buildenv:1.1" # Use this for quick local runs. #CONTAINER = "ebook-builden...
32.126904
103
0.599357
0
0
0
0
0
0
0
0
4,564
0.240375
e0164a1f4fee849a8bca46fb970244ecbfd603fe
715
py
Python
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
1094 EXPERIENCIAS.py
castrolimoeiro/Uri-exercise
7a9227c55a79f14fe8bde4aa0ebb4c268bbda4bb
[ "MIT" ]
null
null
null
n = int(input()) coelho = rato = sapo = contador = 0 for i in range(0, n): q, t = input().split(' ') t = t.upper() q = int(q) if 1 <= q <= 15: contador += q if t == 'C': coelho += q elif t == 'R': rato += q elif t == 'S': sapo += q po...
25.535714
51
0.544056
0
0
0
0
0
0
0
0
243
0.33986
e016b94fa3454d62f7b448ca14631899dd78dc4c
299
py
Python
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
3
2015-07-20T17:56:21.000Z
2017-10-22T05:52:13.000Z
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
null
null
null
gravur/common/amountinput.py
F483/gravur
575c268d9ac28aa0ba00f1e5109bd74c3b7b69a5
[ "MIT" ]
null
null
null
# coding: utf-8 # Copyright (c) 2015 Fabian Barkhau <fabian.barkhau@gmail.com> # License: MIT (see LICENSE file) from kivy.uix.boxlayout import BoxLayout from gravur.common.labelbox import LabelBox # NOQA from gravur.utils import load_widget @load_widget class AmountInput(BoxLayout): pass
21.357143
62
0.772575
38
0.12709
0
0
51
0.170569
0
0
116
0.38796
e018a8edf8d16988caad3f9660a381b73b1f97c4
17,156
py
Python
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
62
2017-02-16T02:16:22.000Z
2022-02-07T08:26:12.000Z
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
77
2017-10-26T20:17:35.000Z
2022-03-25T22:56:32.000Z
tibanna/top.py
4dn-dcic/tibanna
bb84597c425a481a230be30cb0ed9b99c774e53d
[ "MIT" ]
19
2017-01-27T16:37:37.000Z
2021-12-12T13:52:01.000Z
import datetime class Top(object): """class TopSeries stores the information of a series of top commands :: echo -n 'Timestamp: '; date +%F-%H:%M:%S top -b -n1 [-i] [-c] over short intervals to monitor the same set of processes over time. An example input content looks like below, ...
47.392265
148
0.6199
17,134
0.998718
0
0
2,015
0.117452
0
0
8,467
0.49353
e01a18c1d0d2ecbc1fcb6159c9f9c87becb0c6cc
1,458
py
Python
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
603
2020-12-23T13:49:32.000Z
2022-03-31T23:38:03.000Z
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
387
2020-12-15T14:54:04.000Z
2022-03-31T07:00:21.000Z
venv/Lib/site-packages/zmq/tests/test_draft.py
ajayiagbebaku/NFL-Model
afcc67a85ca7138c58c3334d45988ada2da158ed
[ "MIT" ]
35
2021-03-26T03:12:04.000Z
2022-03-23T10:15:10.000Z
# -*- coding: utf8 -*- # Copyright (C) PyZMQ Developers # Distributed under the terms of the Modified BSD License. import os import platform import time import pytest import zmq from zmq.tests import BaseZMQTestCase, skip_pypy class TestDraftSockets(BaseZMQTestCase): def setUp(self): if not zmq.DRAFT_AP...
29.16
71
0.593964
1,226
0.840878
0
0
0
0
0
0
209
0.143347
e01a5f16e11613ae6cff496ae606faff7b1d0e27
460
py
Python
home/push/mipush/APIError.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
null
null
null
home/push/mipush/APIError.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
223
2020-02-21T06:16:56.000Z
2022-03-01T22:24:19.000Z
home/push/mipush/APIError.py
he0119/smart-home
bdd3a59a8c46c0fdc07ac3049bf589c7f95a2683
[ "MIT" ]
null
null
null
class APIError(Exception): """ raise APIError if receiving json message indicating failure. """ def __init__(self, error_code, error, request): self.error_code = error_code self.error = error self.request = request Exception.__init__(self, error) def __str__(self): ...
25.555556
64
0.576087
459
0.997826
0
0
0
0
0
0
107
0.232609
e01cbf8a1a1ab981a1d993596c3a332451dcd74d
367
py
Python
pythonlibs/mantis/templates/webapp/src/webapp/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
22
2019-10-28T07:28:12.000Z
2022-03-19T15:36:41.000Z
AliceBackend/src/AliceBackend/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
1
2019-11-07T04:54:14.000Z
2019-11-07T07:12:48.000Z
AliceBackend/src/AliceBackend/base.py
adoggie/Tibet.6
3c53060edafd80b9c4dafa10699a68d86a410c66
[ "MIT" ]
13
2019-10-28T07:29:07.000Z
2021-11-03T06:53:12.000Z
#coding:utf-8 class SystemDeviceType(object): InnerBox = 1 # 主屏分离的室内主机 InnerScreen = 2 # 主屏分离的室内屏 OuterBox = 3 # 室外机 PropCallApp = 4 # 物业值守 PropSentryApp = 5 # 物业岗亭机 Others = 10 ValidatedList = (1,2,3,4,5) class Constants(object): SUPER_ACCESS_TOKEN = 'YTU3NzV...
24.466667
80
0.643052
407
0.957647
0
0
0
0
0
0
165
0.388235
e01cd6185b052b2c9153c8eec135e9e3a2cf7572
667
py
Python
base/site-packages/django_qbe/urls.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/django_qbe/urls.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/django_qbe/urls.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
# -*- coding: utf-8 -*- from django.conf.urls.defaults import patterns, url from django_qbe.exports import formats urlpatterns = patterns('django_qbe.views', url(r'^$', 'qbe_form', name="qbe_form"), url(r'^js/$', 'qbe_js', name="qbe_js"), url(r'^results/bookmark/$', 'qbe_bookmark', name="qbe_bookma...
37.055556
73
0.611694
0
0
0
0
0
0
0
0
351
0.526237
e01d041f8b5c1564d154529462e58e50b56f4910
5,264
py
Python
augment.py
docongminh/Text-Image-Augmentation-python
da27e8346ce2339f801335923faf7b14e026fd90
[ "Apache-2.0" ]
217
2020-02-09T07:44:18.000Z
2022-03-24T03:52:51.000Z
ocraug/augment.py
lzmisscc/Text-Image-Augmentation-python
12f104452e939444eb0fd4ac96143b78d091845b
[ "Apache-2.0" ]
5
2020-03-23T02:24:33.000Z
2022-03-13T07:02:04.000Z
ocraug/augment.py
lzmisscc/Text-Image-Augmentation-python
12f104452e939444eb0fd4ac96143b78d091845b
[ "Apache-2.0" ]
42
2020-02-10T06:42:31.000Z
2022-03-13T11:54:18.000Z
# -*- coding:utf-8 -*- # Author: RubanSeven # import cv2 import numpy as np # from transform import get_perspective_transform, warp_perspective from warp_mls import WarpMLS def distort(src, segment): img_h, img_w = src.shape[:2] cut = img_w // segment thresh = cut // 3 # thresh = img_h...
33.74359
107
0.586816
0
0
0
0
0
0
0
0
2,442
0.463906
e01de102906f7a6f8c39855d08b6adaa53f5663c
1,347
py
Python
Graph/print all paths from two vertices in a directed graph.py
ikaushikpal/DS-450-python
9466f77fb9db9e6a5bb3f20aa89ba6332f49e848
[ "MIT" ]
3
2021-06-28T12:04:19.000Z
2021-09-07T07:23:41.000Z
Graph/print all paths from two vertices in a directed graph.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
null
null
null
Graph/print all paths from two vertices in a directed graph.py
SupriyoDam/DS-450-python
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
[ "MIT" ]
1
2021-06-28T15:42:55.000Z
2021-06-28T15:42:55.000Z
from collections import defaultdict class Graph: def __init__(self): self.graph = defaultdict(list) def addEdge(self, starting_vertex, end_vertex): self.graph[starting_vertex].append(end_vertex) def printAllPaths(self, starting_vertex, target_vertex): visitedVertices = defaultdic...
28.659574
85
0.628062
1,063
0.789161
0
0
0
0
0
0
60
0.044543
e01e00717692398432049be3d51d551f012c222e
1,958
py
Python
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
1
2016-03-04T18:30:48.000Z
2016-03-04T18:30:48.000Z
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
tests/pipegeojson_test/test_pipegeojson.py
kamyarrasta/berrl
1cf2ba8194498ec8f80d2908399ad00f1e963d83
[ "Apache-2.0" ]
null
null
null
# testing the output of pipegeojson against different input types import berrl as bl import itertools # making line with csv file location line1=bl.make_line('csvs/line_example.csv') # making line with list testlist=bl.read('csvs/line_example.csv') line2=bl.make_line(testlist,list=True) # testing each line geojson ...
22.25
65
0.759959
0
0
0
0
0
0
0
0
1,031
0.526558
e01f044aab30cbd5165bae297a319d57b579704e
912
py
Python
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
9
2021-01-11T10:49:21.000Z
2022-02-28T15:48:00.000Z
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
18
2020-05-08T15:43:08.000Z
2022-03-23T10:19:24.000Z
tierpsy/debugging/catch_infinite_loop.py
mgh17/tierpsy-tracker
a18c06aa80a5fb22fd51563d82c639b520742777
[ "MIT" ]
10
2019-12-18T12:10:12.000Z
2022-01-05T09:12:47.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 8 16:19:07 2017 @author: ajaver """ import os import cv2 import sys import glob import threading from functools import partial main_dir = '/Volumes/behavgenom_archive$/Celine/raw/' fnames = glob.glob(os.path.join(main_dir, '**', '*.avi')) fnames =...
21.714286
71
0.663377
0
0
0
0
0
0
0
0
177
0.194079
e0201884251a727105b3a8b3946ca3bc3aefd73d
480
py
Python
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
199
2016-08-18T23:33:05.000Z
2019-12-24T07:08:48.000Z
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
949
2016-04-25T11:41:34.000Z
2019-12-27T10:43:40.000Z
devito/passes/iet/languages/C.py
guaacoelho/devito
7e0b873114675752c4a49ed9076ee5d52997833c
[ "MIT" ]
78
2016-08-30T07:42:34.000Z
2019-12-13T20:34:45.000Z
from devito.ir import Call from devito.passes.iet.definitions import DataManager from devito.passes.iet.langbase import LangBB __all__ = ['CBB', 'CDataManager'] class CBB(LangBB): mapper = { 'aligned': lambda i: '__attribute__((aligned(%d)))' % i, 'host-alloc': lambda i, j, k: ...
21.818182
53
0.591667
312
0.65
0
0
0
0
0
0
103
0.214583
e0215d4c222f248ad7105000615a748c88340354
2,026
py
Python
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
tests/_test_image.py
Freakwill/ell
8aa510cefb5d63db35071820208971013fac154c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Test methods about image process Make sure the existance of the images """ from ell import * import numpy as np _filter = Filter.from_name('db4') def test_resize(): chennal=0 c = ImageRGB.open('src/lenna.jpg') d=c.resize(minInd=(-100,-100), maxInd=(100,100)) d.to_image() ...
28.535211
109
0.605133
0
0
0
0
0
0
0
0
290
0.143139
e02439282d17416800f4bfd8e050f404bc4d7706
5,991
py
Python
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
1,100
2017-01-18T16:08:33.000Z
2018-11-04T00:42:54.000Z
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
199
2016-12-20T07:45:16.000Z
2018-11-01T02:30:12.000Z
donkeycar/parts/pytorch/torch_data.py
adricl/donkeycar
8eb2705ed4161c0d6a9cfd9c7b0a1c0ca5abaeef
[ "MIT" ]
521
2017-01-10T21:53:24.000Z
2018-11-01T18:17:52.000Z
# PyTorch import torch from torch.utils.data import IterableDataset, DataLoader from donkeycar.utils import train_test_split from donkeycar.parts.tub_v2 import Tub from torchvision import transforms from typing import List, Any from donkeycar.pipeline.types import TubRecord, TubDataset from donkeycar.pipeline.sequence ...
37.21118
95
0.633951
4,556
0.760474
0
0
0
0
0
0
2,320
0.387248
e0251d7f1fc5a3340792a778c923482bb49bcf13
316
py
Python
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
lite/__init__.py
CleverInsight/sparx-lite
1b729e8d11292e9737d57e092ee8916999ab1338
[ "MIT" ]
null
null
null
import os from tornado.template import Template __SNIPPET__ = os.path.join(os.path.dirname(os.path.abspath(__file__)), '_snippet') def T(name, **kw): t = Template(open(os.path.join(__SNIPPET__, name + '.html'), 'rb').read()) return t.generate(**dict([('template_file', name)] + globals().items() + kw.items()))
31.6
86
0.686709
0
0
0
0
0
0
0
0
36
0.113924
e025cd2fbcd0226b08e7474394109f24f199f13c
3,857
py
Python
homeassistant/components/sensor/hddtemp.py
mdonoughe/home-assistant
d9805160bc787146bff0c434fdcab995716f0f8c
[ "Apache-2.0" ]
2
2020-02-20T18:47:55.000Z
2021-11-09T11:33:28.000Z
homeassistant/components/sensor/hddtemp.py
mdonoughe/home-assistant
d9805160bc787146bff0c434fdcab995716f0f8c
[ "Apache-2.0" ]
1
2021-02-08T20:56:06.000Z
2021-02-08T20:56:06.000Z
homeassistant/components/sensor/hddtemp.py
diophung/home-assistant
a5aa1118937702ca8bec050614ee52dc14f8466b
[ "Apache-2.0" ]
1
2020-11-21T09:37:47.000Z
2020-11-21T09:37:47.000Z
""" Support for getting the disk temperature of a host. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/sensor.hddtemp/ """ import logging from datetime import timedelta from telnetlib import Telnet import voluptuous as vol import homeassistant.helpers....
29.219697
79
0.637283
2,167
0.561836
0
0
620
0.160747
0
0
796
0.206378
e026ba13c5f7c12090e3dee6c5f9a4f65eca3bb7
1,402
py
Python
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2019-07-07T01:46:55.000Z
2019-07-07T01:46:55.000Z
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2019-07-26T18:34:02.000Z
2019-07-26T18:34:02.000Z
boomer.py
JohnnySn0w/BabbleBot
03a383b063e4f28049f27f8ec669f22767ed8a87
[ "MIT" ]
1
2020-05-10T01:27:48.000Z
2020-05-10T01:27:48.000Z
import random prefix = [ 'Look at you! ', 'Bless ', 'Bless! ', 'I heard about that! ', 'Amen!', 'You and the kids doing alright?', 'Miss ya\'ll!' ] suffix = [ '. Amen!', '. God bless america', '. God bless!', ' haha', '. love ya!', '. love ya\'ll!', ] def add_pre_suf(sentence): if random.randint(1,10) <= 6: ...
23.366667
76
0.53067
0
0
0
0
0
0
0
0
201
0.143367
e026dd61a71f4c0236cf71cd04ff440228426371
1,303
py
Python
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
null
null
null
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
5
2020-03-19T17:49:50.000Z
2021-06-10T20:06:14.000Z
bot/views.py
eyobofficial/COVID-19-Mutual-Aid
42d30ce95b0e9c717c5eda3ecaafea2812ec34f7
[ "MIT" ]
null
null
null
import telegram from django.conf import settings from django.shortcuts import redirect from django.utils.decorators import method_decorator from django.views.generic import View from django.views.decorators.csrf import csrf_exempt from braces.views import CsrfExemptMixin from rest_framework.authentication import Bas...
29.613636
61
0.692249
672
0.515733
0
0
720
0.552571
0
0
100
0.076746
e026df5666a9c260f8a2d313e1edc3eee3cad4f7
9,053
py
Python
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
code/counterfactual_generative_networks-main/imagenet/train_cgn.py
dummyxyz1/re_counterfactual_generative
4dda8e17a1123a564d60be82c17e9589155fb2e2
[ "MIT" ]
null
null
null
import os from datetime import datetime from os.path import join import pathlib from tqdm import tqdm import argparse import torch from torch import nn, optim from torch.autograd import Variable import torchvision from torchvision.transforms import Pad from torchvision.utils import make_grid import repackage repackage...
37.720833
98
0.629515
0
0
0
0
0
0
0
0
1,428
0.157738
e0274bb01109146cf480d663260e32b7e8a8cc2d
580
py
Python
portfolio/urls.py
ramza007/Ramza.io
2172d9ac13e87becbc8644ad5755070f48fab8da
[ "Apache-2.0" ]
3
2019-12-16T16:47:16.000Z
2020-07-28T19:47:34.000Z
portfolio/urls.py
ramza007/Ramza.io
2172d9ac13e87becbc8644ad5755070f48fab8da
[ "Apache-2.0" ]
15
2019-12-05T03:38:19.000Z
2022-03-13T02:35:30.000Z
portfolio/urls.py
ramza007/Ramza.io
2172d9ac13e87becbc8644ad5755070f48fab8da
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from django.urls import path, include,re_path from . import views from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ path('', views.index, name='index'), path('about', views.about, name='about'), path('projects', views.projects, name='projects'),...
34.117647
92
0.7
0
0
0
0
0
0
0
0
138
0.237931
e027abc215159b586950e87882ad8ad4be055155
407
py
Python
tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
tests/resources/mlflow-test-plugin/mlflow_test_plugin/file_store.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/file_store.py
iPieter/kiwi
76b66872fce68873809a0dea112e2ed552ae5b63
[ "Apache-2.0" ]
null
null
null
from six.moves import urllib from kiwi.store.tracking.file_store import FileStore class PluginFileStore(FileStore): """FileStore provided through entrypoints system""" def __init__(self, store_uri=None, artifact_uri=None): path = urllib.parse.urlparse(store_uri).path if store_uri else None s...
31.307692
75
0.746929
321
0.788698
0
0
0
0
0
0
51
0.125307
e02820e74734d672d90f15bf093da7319a0c92ba
12,815
py
Python
tests/server/test_flask_api.py
YuhangCh/terracotta
867ba5f7425fa88881f4c161d81cc7311f4f9c4e
[ "MIT" ]
null
null
null
tests/server/test_flask_api.py
YuhangCh/terracotta
867ba5f7425fa88881f4c161d81cc7311f4f9c4e
[ "MIT" ]
null
null
null
tests/server/test_flask_api.py
YuhangCh/terracotta
867ba5f7425fa88881f4c161d81cc7311f4f9c4e
[ "MIT" ]
null
null
null
from io import BytesIO import json import urllib.parse from collections import OrderedDict from PIL import Image import numpy as np import pytest @pytest.fixture(scope='module') def flask_app(): from terracotta.server import create_app return create_app() @pytest.fixture(scope='module') def client(flask_a...
30.731415
99
0.65595
0
0
87
0.006789
236
0.018416
0
0
3,504
0.27343
e02908fac191deeaa9eb04515ee51d7d466320c5
1,695
py
Python
url.py
matthieucan/shorturl
a7f7fab61e8b23b352590797ca4959ed166c865e
[ "WTFPL" ]
1
2018-10-19T01:57:29.000Z
2018-10-19T01:57:29.000Z
url.py
matthieucan/shorturl
a7f7fab61e8b23b352590797ca4959ed166c865e
[ "WTFPL" ]
null
null
null
url.py
matthieucan/shorturl
a7f7fab61e8b23b352590797ca4959ed166c865e
[ "WTFPL" ]
null
null
null
def base_conv(n, input_base=10, output_base=10): """ Converts a number n from base input_base to base output_base. The following symbols are used to represent numbers: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ n can be an int if input_base <= 10, and a string otherwise. ...
36.06383
78
0.640708
0
0
0
0
0
0
0
0
597
0.352212
e02960393a5a94bda69769c1a73c609b148e700d
13,612
py
Python
src/qtt/qiskit/passes.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
null
null
null
src/qtt/qiskit/passes.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
null
null
null
src/qtt/qiskit/passes.py
codecrap/qtt
39a8bf21f7bcab94940a66f4d553a14bf34f82b0
[ "MIT" ]
null
null
null
import logging from typing import Dict, List, Optional import numpy as np import qiskit from qiskit.circuit import Barrier, Delay, Reset from qiskit.circuit.library import (CRXGate, CRYGate, CRZGate, CZGate, PhaseGate, RXGate, RYGate, RZGate, U1Gate, ...
36.591398
115
0.563914
12,778
0.938731
0
0
350
0.025713
0
0
2,881
0.211651
e029ad3e92c68df36a0c0c69723e696b156c5364
5,616
py
Python
IAFNNESTA.py
JonathanAlis/IAFNNESTA
6845bed7e41a162a60e65d709f37cf975c8c8a4e
[ "MIT" ]
3
2021-05-13T05:51:42.000Z
2022-02-06T13:36:52.000Z
IAFNNESTA.py
JonathanAlis/IAFNNESTA
6845bed7e41a162a60e65d709f37cf975c8c8a4e
[ "MIT" ]
null
null
null
IAFNNESTA.py
JonathanAlis/IAFNNESTA
6845bed7e41a162a60e65d709f37cf975c8c8a4e
[ "MIT" ]
1
2022-02-06T13:36:39.000Z
2022-02-06T13:36:39.000Z
def help(): return ''' Isotropic-Anisotropic Filtering Norm Nesterov Algorithm Solves the filtering norm minimization + quadratic term problem Nesterov algorithm, with continuation: argmin_x || iaFN(x) ||_1/2 subjected to ||b - Ax||_2^2 < delta If no filter is provided, solves the L1. Continuation is perf...
35.770701
215
0.51834
0
0
0
0
0
0
0
0
2,982
0.530983
e029f3704209eae0d9983e10eec83eadf0c6a288
6,952
py
Python
hypatia/util/__init__.py
pfw/hypatia
407cd62e4817c85188aa6abdf204c5aaff5ab570
[ "ZPL-2.1" ]
null
null
null
hypatia/util/__init__.py
pfw/hypatia
407cd62e4817c85188aa6abdf204c5aaff5ab570
[ "ZPL-2.1" ]
null
null
null
hypatia/util/__init__.py
pfw/hypatia
407cd62e4817c85188aa6abdf204c5aaff5ab570
[ "ZPL-2.1" ]
null
null
null
import itertools import BTrees from persistent import Persistent from ZODB.broken import Broken from zope.interface import implementer _marker = object() from .. import exc from ..interfaces import ( IResultSet, STABLE, ) @implementer(IResultSet) class ResultSet(object): """Implements :class:`hypatia.i...
31.174888
85
0.60889
6,685
0.961594
94
0.013521
3,120
0.448792
0
0
1,682
0.241945
e02a89e62a53d61fc9086acef78dc03df26f1de7
2,140
py
Python
backend/listings/migrations/0001_initial.py
relaxxpls/Music-Control
76f5d10904f820607b3eb756850d5c5d7d89d875
[ "MIT" ]
null
null
null
backend/listings/migrations/0001_initial.py
relaxxpls/Music-Control
76f5d10904f820607b3eb756850d5c5d7d89d875
[ "MIT" ]
null
null
null
backend/listings/migrations/0001_initial.py
relaxxpls/Music-Control
76f5d10904f820607b3eb756850d5c5d7d89d875
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-05-30 04:28 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('realtors', '0001_initial'), ] operations = [ migrations.Cr...
48.636364
158
0.583645
1,985
0.92757
0
0
0
0
0
0
455
0.212617
e02ae313e5c6ccbda99f1c423609cc20c6a48485
483
py
Python
examples/example_without_CommandSet/my_listeners.py
LeConstellationniste/DiscordFramework
24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af
[ "CC0-1.0" ]
1
2021-01-27T14:55:03.000Z
2021-01-27T14:55:03.000Z
examples/example_without_CommandSet/my_listeners.py
LeConstellationniste/DiscordFramework
24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af
[ "CC0-1.0" ]
null
null
null
examples/example_without_CommandSet/my_listeners.py
LeConstellationniste/DiscordFramework
24d4b9b7cb0a21d3cec9d5362ab0828c5e15a3af
[ "CC0-1.0" ]
null
null
null
import asyncio import discord # Just with a function to add to the bot. async def on_message(message): if not message.author.bot: await message.channel.send(f"{message.author.mention} a envoyé un message!") # A Listener already created with the function from discordEasy.objects import Listener async def on_messa...
28.411765
78
0.784679
0
0
0
0
0
0
276
0.569072
185
0.381443
e02beca3eabc9ebe9a2e1d16196b54fbf1a8bc1b
4,024
py
Python
pianonet/serving/app.py
robgon-art/pianonet
8d8a827bc8d310b8ce3f66259bbdf72648e9ca32
[ "MIT" ]
14
2020-09-01T11:16:28.000Z
2021-05-02T18:04:21.000Z
pianonet/serving/app.py
robgon-art/pianonet
8d8a827bc8d310b8ce3f66259bbdf72648e9ca32
[ "MIT" ]
5
2020-11-13T18:46:05.000Z
2022-02-10T01:16:13.000Z
pianonet/serving/app.py
robgon-art/pianonet
8d8a827bc8d310b8ce3f66259bbdf72648e9ca32
[ "MIT" ]
3
2020-09-02T15:05:00.000Z
2021-05-02T18:04:24.000Z
import os import random from flask import Flask, request, send_from_directory from werkzeug.utils import secure_filename from pianonet.core.pianoroll import Pianoroll from pianonet.model_inspection.performance_from_pianoroll import get_performance_from_pianoroll app = Flask(__name__) base_path = "/app/" # base_pat...
31.685039
115
0.706511
0
0
0
0
3,158
0.784791
0
0
1,293
0.321322
e02cef0666c1161f8f7f1e91555b80b350dae71e
4,965
py
Python
app.py
rafalbigaj/epidemic-model-visualization
35829180b5a53697b336e8615d854a21b3395f59
[ "Apache-2.0" ]
null
null
null
app.py
rafalbigaj/epidemic-model-visualization
35829180b5a53697b336e8615d854a21b3395f59
[ "Apache-2.0" ]
null
null
null
app.py
rafalbigaj/epidemic-model-visualization
35829180b5a53697b336e8615d854a21b3395f59
[ "Apache-2.0" ]
null
null
null
import dash import dash_bootstrap_components as dbc import dash_core_components as dcc import dash_html_components as html import plotly.graph_objects as go from plotly.subplots import make_subplots import logging import json import os import pandas as pd from datetime import datetime from datetime import timedelta fro...
34.006849
132
0.67291
0
0
0
0
0
0
0
0
1,525
0.30715
e02d1d4df9c56883a92d8546af5497c549276afd
1,106
py
Python
src/sweetrpg_library_api/application/blueprints/systems/manager.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
src/sweetrpg_library_api/application/blueprints/systems/manager.py
paulyhedral/sweetrpg-library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
33
2021-09-18T23:52:05.000Z
2022-03-30T12:25:49.000Z
src/sweetrpg_library_api/application/blueprints/systems/manager.py
sweetrpg/library-api
0105e963ef4321398aa66d7cb3aa9c2df1c4f375
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "Paul Schifferer <dm@sweetrpg.com>" """ """ from flask_rest_jsonapi import ResourceList, ResourceDetail, ResourceRelationship from sweetrpg_library_objects.api.system.schema import SystemAPISchema from sweetrpg_api_core.data import APIData from sweetrpg_library_objects.model.syste...
28.358974
106
0.683544
384
0.347197
0
0
0
0
0
0
398
0.359855
e02e416aacee98cfdb91a5328f2267836f5a1229
6,862
py
Python
tests/test_ordering.py
deepio-oc/pabot
ebf1894c6d35b2ddd5c4bca01bceb25189358106
[ "Apache-2.0" ]
379
2015-02-02T17:47:45.000Z
2022-03-20T16:51:05.000Z
tests/test_ordering.py
deepio-oc/pabot
ebf1894c6d35b2ddd5c4bca01bceb25189358106
[ "Apache-2.0" ]
406
2015-02-12T07:41:53.000Z
2022-03-28T23:35:32.000Z
tests/test_ordering.py
deepio-oc/pabot
ebf1894c6d35b2ddd5c4bca01bceb25189358106
[ "Apache-2.0" ]
159
2015-01-16T13:42:20.000Z
2022-03-30T19:48:15.000Z
from robot import __version__ as ROBOT_VERSION import sys import tempfile import textwrap import unittest import shutil import subprocess class PabotOrderingGroupTest(unittest.TestCase): def setUp(self): self.tmpdir = tempfile.mkdtemp() def tearDown(self): shutil.rmtree(self.tmpdir) def ...
35.189744
273
0.557418
6,721
0.979452
0
0
0
0
0
0
3,745
0.545759
e02e814aa08f31a0fd4f302fa151aca0b7af7756
984
py
Python
setup.py
Commonists/pageview-api
39e8b3c3c82f64a500e3dd4f306451c81c7e31b7
[ "MIT" ]
21
2015-12-02T12:06:38.000Z
2022-02-11T16:16:06.000Z
setup.py
Commonists/pageview-api
39e8b3c3c82f64a500e3dd4f306451c81c7e31b7
[ "MIT" ]
3
2016-04-19T19:56:25.000Z
2020-08-27T09:52:42.000Z
setup.py
Commonists/pageview-api
39e8b3c3c82f64a500e3dd4f306451c81c7e31b7
[ "MIT" ]
6
2017-10-27T15:39:51.000Z
2020-12-17T02:11:52.000Z
#!/usr/bin/python # -*- coding: latin-1 -*- """Setup script.""" try: from setuptools import setup except ImportError: from distutils.core import setup try: import pageviewapi version = pageviewapi.__version__ except ImportError: version = 'Undefined' classifiers = [ 'Development Status :: 4...
22.883721
52
0.670732
0
0
0
0
0
0
0
0
457
0.464431
e030b341c624d43cef697abc742e82664391c682
416
py
Python
task1b.py
juby-gif/assignment1
3d39478fdc371e80a546caac545561145afbb080
[ "BSD-3-Clause" ]
null
null
null
task1b.py
juby-gif/assignment1
3d39478fdc371e80a546caac545561145afbb080
[ "BSD-3-Clause" ]
null
null
null
task1b.py
juby-gif/assignment1
3d39478fdc371e80a546caac545561145afbb080
[ "BSD-3-Clause" ]
null
null
null
#a2_t1b.py #This program is to convert Celsius to Kelvin def c_to_k(c): k = c + 273.15 #Formula to convert Celsius to Kelvin return k def f_to_c(f): fa = (f-32) * 5/9 #Formula to convert Fareheit to Celsius return fa c = 25.0 f = 100.0 k = c_to_k(c) fa = f_to_c(f) print("Celsius of " + str(c) + " is...
24.470588
67
0.605769
0
0
0
0
0
0
0
0
198
0.475962
e0315471bd1a35e31c6a9cdd93a2a2a27365d479
2,702
py
Python
TWLight/emails/views.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-10-24T04:49:52.000Z
2019-10-24T04:49:52.000Z
TWLight/emails/views.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-03-29T15:29:45.000Z
2019-03-29T15:57:20.000Z
TWLight/emails/views.py
jajodiaraghav/TWLight
22359ab0b95ee3653e8ffa0eb698acd7bb8ebf70
[ "MIT" ]
1
2019-09-26T14:40:27.000Z
2019-09-26T14:40:27.000Z
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.core.urlresolvers import reverse, reverse_lazy from django.core.mail import BadHeaderError, send_mail from django.http import HttpResponse, HttpResponseRedirect f...
43.580645
126
0.657661
2,086
0.772021
0
0
2,133
0.789415
0
0
610
0.225759
e0322ebc94878f3dc7b69955feb764a97d3db29b
1,997
py
Python
frontend/config.py
lcbm/cs-data-ingestion
314525285bfefe726d86c232937b05d273e44e7f
[ "0BSD" ]
null
null
null
frontend/config.py
lcbm/cs-data-ingestion
314525285bfefe726d86c232937b05d273e44e7f
[ "0BSD" ]
null
null
null
frontend/config.py
lcbm/cs-data-ingestion
314525285bfefe726d86c232937b05d273e44e7f
[ "0BSD" ]
null
null
null
"""Flask App configuration file.""" import logging import os import dotenv import frontend.constants as constants dotenv.load_dotenv(os.path.join(constants.BASEDIR, "frontend.env")) class Base: """Configuration class used as base for all environments.""" DEBUG = False TESTING = False LOGGING_FO...
21.473118
67
0.667001
937
0.469204
0
0
0
0
0
0
1,086
0.543816
e032bc66a6f5b0a211c59ba883502067921d3427
2,961
py
Python
tests/test_dsl.py
goodreferences/ElasticQuery
579e387c5a7c1cbbeab999050c0d2faa80ded821
[ "MIT" ]
null
null
null
tests/test_dsl.py
goodreferences/ElasticQuery
579e387c5a7c1cbbeab999050c0d2faa80ded821
[ "MIT" ]
null
null
null
tests/test_dsl.py
goodreferences/ElasticQuery
579e387c5a7c1cbbeab999050c0d2faa80ded821
[ "MIT" ]
null
null
null
# ElasticQuery # File: tests/test_dsl.py # Desc: tests for ElasticQuery DSL objects (Filter, Query, Aggregate) from os import path from unittest import TestCase from jsontest import JsonTest from elasticquery import Query, Aggregate, Suggester from elasticquery.exceptions import ( NoQueryError, NoAggregateError,...
26.675676
72
0.646066
1,801
0.60824
0
0
0
0
0
0
354
0.119554
e033806ab7ea22ebae1fd718d44b4fe732b6c01d
360
py
Python
models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py
xianjian-xie/pose-generation
ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32
[ "MIT" ]
445
2019-04-14T17:48:11.000Z
2022-03-20T11:53:30.000Z
models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py
xianjian-xie/pose-generation
ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32
[ "MIT" ]
17
2019-06-03T11:34:22.000Z
2022-02-28T01:26:13.000Z
models/SelectionGAN/person_transfer/tool/rm_insnorm_running_vars.py
xianjian-xie/pose-generation
ad0495e80c6fe1e7690fa8691f1eb11b4e9bca32
[ "MIT" ]
71
2019-04-16T01:55:39.000Z
2022-03-22T05:09:59.000Z
import torch ckp_path = './checkpoints/fashion_PATN/latest_net_netG.pth' save_path = './checkpoints/fashion_PATN_v1.0/latest_net_netG.pth' states_dict = torch.load(ckp_path) states_dict_new = states_dict.copy() for key in states_dict.keys(): if "running_var" in key or "running_mean" in key: del states_dict_new[key]...
32.727273
65
0.794444
0
0
0
0
0
0
0
0
128
0.355556
e03555c89ef682c9881524e84b3f99fb40c60411
3,916
py
Python
script/dummy/arm_control.py
amazon-picking-challenge/team_pfn
2f76524b067d816d8407f6c4fae4e6d33939c024
[ "Apache-2.0" ]
7
2016-09-04T02:07:04.000Z
2017-05-25T02:31:07.000Z
script/dummy/arm_control.py
amazon-picking-challenge/team_pfn
2f76524b067d816d8407f6c4fae4e6d33939c024
[ "Apache-2.0" ]
null
null
null
script/dummy/arm_control.py
amazon-picking-challenge/team_pfn
2f76524b067d816d8407f6c4fae4e6d33939c024
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2016 Preferred Networks, 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 applicab...
39.959184
78
0.589122
3,064
0.782431
0
0
0
0
0
0
945
0.241318
e035deed8737a8c4ccc24d990b915152d4728210
3,115
py
Python
cogs/events.py
rompdodger/RompDodger
9c8b481d9f69e05c15f01271f6c18e09ab2723e6
[ "MIT" ]
null
null
null
cogs/events.py
rompdodger/RompDodger
9c8b481d9f69e05c15f01271f6c18e09ab2723e6
[ "MIT" ]
null
null
null
cogs/events.py
rompdodger/RompDodger
9c8b481d9f69e05c15f01271f6c18e09ab2723e6
[ "MIT" ]
null
null
null
import json import discord from utils.time import format_time from utils import utilities from discord.ext import commands from discord import Embed class Events(commands.Cog): """Event Handler for RompDodger""" def __init__(self, bot): self.bot = bot @commands.Cog.listener() async def on_command_error(self,...
39.43038
163
0.733547
2,920
0.9374
0
0
2,786
0.894382
2,656
0.852648
896
0.28764
e036c8bce2480207e7560bdb8a009054bcbca43d
1,333
py
Python
Task/Parallel-calculations/Python/parallel-calculations-2.py
LaudateCorpus1/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
Task/Parallel-calculations/Python/parallel-calculations-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
null
null
null
Task/Parallel-calculations/Python/parallel-calculations-2.py
seanwallawalla-forks/RosettaCodeData
9ad63ea473a958506c041077f1d810c0c7c8c18d
[ "Info-ZIP" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
import multiprocessing # ========== #Python3 - concurrent from math import floor, sqrt numbers = [ 112272537195293, 112582718962171, 112272537095293, 115280098190773, 115797840077099, 1099726829285419] # numbers = [33, 44, 55, 275] def lowest_factor(n, _start=3): if n % 2 == 0: re...
28.361702
84
0.650413
0
0
0
0
0
0
0
0
237
0.177794
e036f44b7fa0f2862267ed2ae2bb354dffc8bc0b
260
py
Python
setup.py
clin366/airpollutionnowcast
f9152583eebc4ad747c8d0510460334a5fb23ff9
[ "MIT" ]
null
null
null
setup.py
clin366/airpollutionnowcast
f9152583eebc4ad747c8d0510460334a5fb23ff9
[ "MIT" ]
9
2020-03-24T18:12:45.000Z
2022-02-10T00:36:57.000Z
setup.py
clin366/airpollutionnowcast
f9152583eebc4ad747c8d0510460334a5fb23ff9
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Project: Nowcasting the air pollution using online search log', author='Emory University(IR Lab)', license='MIT', )
23.636364
80
0.692308
0
0
0
0
0
0
0
0
106
0.407692
e037cc498ab758b47d57f427145d459d775fb063
339
py
Python
problems/p0048/s48.py
ahrarmonsur/euler
4174790637806521a4ea2973abeb76c96c64a782
[ "MIT" ]
1
2017-12-19T21:18:48.000Z
2017-12-19T21:18:48.000Z
problems/p0048/s48.py
ahrarmonsur/euler
4174790637806521a4ea2973abeb76c96c64a782
[ "MIT" ]
null
null
null
problems/p0048/s48.py
ahrarmonsur/euler
4174790637806521a4ea2973abeb76c96c64a782
[ "MIT" ]
null
null
null
""" Project Euler Problem 48 Self powers Solved by Ahrar Monsur The series, 1^1 + 2^2 + 3^3 + ... + 10^10 = 10405071317. Find the last ten digits of the series, 1^1 + 2^2 + 3^3 + ... + 1000^1000. """ def main(): max_digits = 1000 sum = 0 for i in range(1, max_digits+1): sum += i**i print str(...
17.842105
74
0.575221
0
0
0
0
0
0
0
0
201
0.59292
e037f80102198e6c3f910c89e80dfa13f614bfb4
1,109
py
Python
BigData/sparkTask/test.py
Rainstyd/rainsty
9a0d5f46c20faf909c4194f315fb9960652cffc6
[ "Apache-2.0" ]
1
2020-03-25T01:13:35.000Z
2020-03-25T01:13:35.000Z
BigData/sparkTask/test.py
Rainstyed/rainsty
f74e0ccaf16d1871c9d1870bd8a7c8a63243fcf5
[ "Apache-2.0" ]
1
2022-01-06T23:49:21.000Z
2022-01-06T23:49:21.000Z
BigData/sparkTask/test.py
rainstyd/rainsty
9a0d5f46c20faf909c4194f315fb9960652cffc6
[ "Apache-2.0" ]
1
2020-03-20T08:48:36.000Z
2020-03-20T08:48:36.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ @author: rainsty @file: test.py @time: 2020-01-04 18:36:57 @description: """ import os from pyspark.sql import SparkSession os.environ['JAVA_HOME'] = '/root/jdk' os.environ['SPARK_HOME'] = '/root/spark' os.environ['PYTHON_HOME'] = "/root/python" os.environ['PYSPARK_P...
24.108696
60
0.640216
0
0
0
0
0
0
0
0
486
0.438233
e03860989956f152e97aacd3a94938522a675b8e
1,042
py
Python
esercizi/areaSottesaCompareNumPy.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
null
null
null
esercizi/areaSottesaCompareNumPy.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
null
null
null
esercizi/areaSottesaCompareNumPy.py
gdv/python-alfabetizzazione
d87561222de8a230db11d8529c49cf1702aec326
[ "MIT" ]
1
2019-03-26T11:14:33.000Z
2019-03-26T11:14:33.000Z
import numpy as np import timeit def effe(x): y = -x * (x - 1.0) return y numIntervalli = input('inserire il numero di intervalli in [0.0, 1.0] ') deltaIntervallo = 1.0 / float(numIntervalli) print "larghezza intervallo", deltaIntervallo start = timeit.default_timer() xIntervalli = [] yIntervalli = [] i =...
24.809524
72
0.726488
0
0
0
0
0
0
0
0
232
0.222649
e039092d052960d2f6c3a01770cd6d300e7b630a
8,810
py
Python
json_codegen/generators/python3_marshmallow/object_generator.py
expobrain/json-schema-codegen
e22b386333c6230e5d6f5984fd947fdd7b947e82
[ "MIT" ]
21
2018-06-15T16:08:57.000Z
2022-02-11T16:16:11.000Z
json_codegen/generators/python3_marshmallow/object_generator.py
expobrain/json-schema-codegen
e22b386333c6230e5d6f5984fd947fdd7b947e82
[ "MIT" ]
14
2018-08-09T18:02:19.000Z
2022-01-24T18:04:17.000Z
json_codegen/generators/python3_marshmallow/object_generator.py
expobrain/json-schema-codegen
e22b386333c6230e5d6f5984fd947fdd7b947e82
[ "MIT" ]
4
2018-11-30T18:19:10.000Z
2021-11-18T04:04:36.000Z
import ast from json_codegen.generators.python3_marshmallow.utils import Annotations, class_name class ObjectGenerator(object): @staticmethod def _get_property_name(node_assign): name = node_assign.targets[0] return name.id @staticmethod def _nesting_class(node_assign): for n...
34.414063
108
0.484222
8,709
0.988536
0
0
8,614
0.977753
0
0
1,069
0.121339
e039c81acd8d1fcb88f92f04b6556a716666da98
12,736
py
Python
testing/regrid/testEsmfGridToMeshRegridCsrv.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
62
2018-03-30T15:46:56.000Z
2021-12-08T23:30:24.000Z
testing/regrid/testEsmfGridToMeshRegridCsrv.py
xylar/cdat
8a5080cb18febfde365efc96147e25f51494a2bf
[ "BSD-3-Clause" ]
114
2018-03-21T01:12:43.000Z
2021-07-05T12:29:54.000Z
testing/regrid/testEsmfGridToMeshRegridCsrv.py
CDAT/uvcdat
5133560c0c049b5c93ee321ba0af494253b44f91
[ "BSD-3-Clause" ]
14
2018-06-06T02:42:47.000Z
2021-11-26T03:27:00.000Z
#!/usr/bin/env python # # $Id: ESMP_GridToMeshRegridCsrv.py,v 1.5 2012/04/23 23:00:14 rokuingh Exp $ #=============================================================================== # ESMP/examples/ESMP_GridToMeshRegrid.py #=============================================================================== """...
33.515789
86
0.613693
1,513
0.118797
0
0
0
0
0
0
5,881
0.461762
e03a335c46211edd43cb24ddb42d950cbfd7fa71
1,184
py
Python
test/mock_module.py
ariffyasri/lale
326012c3c3dd884fae0093fe0c45596e4f9c0d72
[ "Apache-2.0" ]
1
2020-04-28T11:27:48.000Z
2020-04-28T11:27:48.000Z
test/mock_module.py
ariffyasri/lale
326012c3c3dd884fae0093fe0c45596e4f9c0d72
[ "Apache-2.0" ]
null
null
null
test/mock_module.py
ariffyasri/lale
326012c3c3dd884fae0093fe0c45596e4f9c0d72
[ "Apache-2.0" ]
1
2020-07-30T10:06:23.000Z
2020-07-30T10:06:23.000Z
# Copyright 2019 IBM Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.823529
74
0.72973
446
0.376689
0
0
0
0
0
0
724
0.611486
e03bee15bfc41f500be41ba4168c4029ea4dba20
3,770
py
Python
scripts/beautify.py
lukaschoebel/POTUSgen
7b88ba63f0ddab199937df909c5af3271a833cf3
[ "MIT" ]
null
null
null
scripts/beautify.py
lukaschoebel/POTUSgen
7b88ba63f0ddab199937df909c5af3271a833cf3
[ "MIT" ]
5
2020-03-25T08:02:45.000Z
2020-04-08T20:07:42.000Z
scripts/beautify.py
lukaschoebel/POTUSgen
7b88ba63f0ddab199937df909c5af3271a833cf3
[ "MIT" ]
null
null
null
import json import re import sys def beautify(name): ''' Loading, filtering and saving the JSON tweet file to a newly generated .txt file :type: name: String :rtype: output: .txt ''' filename = name + '.json' output_name = name + "_filtered.txt" with open(filename, "r", encoding="utf-8")...
33.963964
129
0.571088
0
0
0
0
0
0
0
0
2,190
0.579979
e03c2a58883f30a7a78a6973c7fd5ce571d96bba
1,746
py
Python
result2gaofentype/pkl2txt_ggm.py
G-Naughty/Fine-grained-OBB-Detection
8c82c4c178f0b6bba077ff9d906a81bf8e04789c
[ "Apache-2.0" ]
2
2022-02-06T07:45:03.000Z
2022-03-11T14:18:32.000Z
result2gaofentype/pkl2txt_ggm.py
G-Naughty/Fine-grained-OBB-Detection
8c82c4c178f0b6bba077ff9d906a81bf8e04789c
[ "Apache-2.0" ]
null
null
null
result2gaofentype/pkl2txt_ggm.py
G-Naughty/Fine-grained-OBB-Detection
8c82c4c178f0b6bba077ff9d906a81bf8e04789c
[ "Apache-2.0" ]
null
null
null
import BboxToolkit as bt import pickle import copy import numpy as np path1="/home/hnu1/GGM/OBBDetection/work_dir/oriented_obb_contrast_catbalance/dets.pkl" path2="/home/hnu1/GGM/OBBDetection/data/FaIR1M/test/annfiles/ori_annfile.pkl"# with open(path2,'rb') as f: #/home/disk/FAIR1M_1000_split/val/annfiles/ori_...
40.604651
95
0.512027
0
0
0
0
0
0
0
0
346
0.198167
e03e3fafddd8bfe7f29e435a8b1b27b522698dbd
938
py
Python
initializer_3d.py
HarperCallahan/taichi_ferrofluid
6113f6c7d9d9d612b6dadc500cf91b576c2d05ea
[ "MIT" ]
null
null
null
initializer_3d.py
HarperCallahan/taichi_ferrofluid
6113f6c7d9d9d612b6dadc500cf91b576c2d05ea
[ "MIT" ]
null
null
null
initializer_3d.py
HarperCallahan/taichi_ferrofluid
6113f6c7d9d9d612b6dadc500cf91b576c2d05ea
[ "MIT" ]
null
null
null
import taichi as ti import utils from apic_extension import * @ti.data_oriented class Initializer3D: # tmp initializer def __init__(self, res, x0, y0, z0, x1, y1, z1): self.res = res self.x0 = int(res * x0) self.y0 = int(res * y0) self.z0 = int(res * z0) self.x1 = int(res * ...
31.266667
136
0.557569
855
0.911514
0
0
873
0.930704
0
0
17
0.018124
e03ebf0129e76590fab9b3f72a3301cc3f5c22ca
1,265
py
Python
copy_block_example.py
MilesCranmer/bifrost_paper
654408cd7e34e7845cee58100fe459e1422e4859
[ "MIT" ]
null
null
null
copy_block_example.py
MilesCranmer/bifrost_paper
654408cd7e34e7845cee58100fe459e1422e4859
[ "MIT" ]
null
null
null
copy_block_example.py
MilesCranmer/bifrost_paper
654408cd7e34e7845cee58100fe459e1422e4859
[ "MIT" ]
null
null
null
from copy import deepcopy import bifrost as bf from bifrost.pipeline import TransformBlock from bifrost.ndarray import copy_array class CopyBlock(TransformBlock):# $\tikzmark{block-start}$ """Copy the input ring to output ring""" def __init__(self, iring, space): ...
30.853659
98
0.674308
455
0.359684
0
0
0
0
0
0
351
0.27747
e0404632a7378b088279de3e94aac11c26a9e183
1,540
py
Python
monasca_persister/conf/influxdb.py
zhangjianweibj/monasca-persister
0c5d8a7c5553001f2d38227347f482201f92c8e1
[ "Apache-2.0" ]
null
null
null
monasca_persister/conf/influxdb.py
zhangjianweibj/monasca-persister
0c5d8a7c5553001f2d38227347f482201f92c8e1
[ "Apache-2.0" ]
1
2020-03-13T12:30:29.000Z
2020-03-13T12:38:16.000Z
monasca_persister/conf/influxdb.py
zhangjianweibj/monasca-persister
0c5d8a7c5553001f2d38227347f482201f92c8e1
[ "Apache-2.0" ]
null
null
null
# (C) Copyright 2016-2017 Hewlett Packard Enterprise Development LP # Copyright 2017 FUJITSU LIMITED # # 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...
32.765957
69
0.653896
0
0
0
0
0
0
0
0
865
0.561688
e040676396d83dae688cf225c1f4290cf1100f35
192
py
Python
test_print_json.py
huangsen365/boto3-docker
42d46ce4433dd037006d6b8d01db3fe444b9d8dd
[ "Apache-2.0" ]
null
null
null
test_print_json.py
huangsen365/boto3-docker
42d46ce4433dd037006d6b8d01db3fe444b9d8dd
[ "Apache-2.0" ]
null
null
null
test_print_json.py
huangsen365/boto3-docker
42d46ce4433dd037006d6b8d01db3fe444b9d8dd
[ "Apache-2.0" ]
null
null
null
import json your_json = '["foo", {"bar":["baz", null, 1.0, 2]}]' parsed = json.loads(your_json) print(type(your_json)) print(type(parsed)) #print(json.dumps(parsed, indent=4, sort_keys=True))
27.428571
52
0.6875
0
0
0
0
0
0
0
0
92
0.479167
e041875337916a4d8560bbab0e0b68edca74373b
13,929
py
Python
src/solutions/common/integrations/cirklo/api.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/integrations/cirklo/api.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/solutions/common/integrations/cirklo/api.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 appl...
42.858462
120
0.710604
0
0
0
0
11,286
0.810252
0
0
1,523
0.10934
e042a55525baf01a1dd738c8dd3863fa44f09d50
1,624
py
Python
aplpy/tests/test_grid.py
nbrunett/aplpy
f5d128faf3568adea753d52c11ba43014d25d90a
[ "MIT" ]
null
null
null
aplpy/tests/test_grid.py
nbrunett/aplpy
f5d128faf3568adea753d52c11ba43014d25d90a
[ "MIT" ]
null
null
null
aplpy/tests/test_grid.py
nbrunett/aplpy
f5d128faf3568adea753d52c11ba43014d25d90a
[ "MIT" ]
1
2018-02-26T03:04:19.000Z
2018-02-26T03:04:19.000Z
import matplotlib matplotlib.use('Agg') import numpy as np from astropy.tests.helper import pytest from .. import FITSFigure def test_grid_addremove(): data = np.zeros((16, 16)) f = FITSFigure(data) f.add_grid() f.remove_grid() f.add_grid() f.close() def test_grid_showhide(): data = np...
20.049383
39
0.618842
0
0
0
0
0
0
0
0
68
0.041872
e0435a8bdb5ad3ee4a83d670d6af34fbe9094657
12,910
py
Python
vz.py
ponyatov/vz
f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1
[ "MIT" ]
null
null
null
vz.py
ponyatov/vz
f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1
[ "MIT" ]
null
null
null
vz.py
ponyatov/vz
f808dd0dca9b6aa7a3e492d2ee0797ab96cd23a1
[ "MIT" ]
null
null
null
import os, sys class Object: ## @name constructor def __init__(self, V): self.value = V self.nest = [] def box(self, that): if isinstance(that, Object): return that if isinstance(that, str): return S(that) raise TypeError(['box', type(that), that]) ## @name d...
32.849873
96
0.449109
12,756
0.988071
0
0
0
0
0
0
3,482
0.269713
e044775152d95d5fb032af9b89fee05b4ac263fe
2,630
py
Python
src/server.py
FlakM/fastai_text_serving
8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a
[ "Apache-2.0" ]
null
null
null
src/server.py
FlakM/fastai_text_serving
8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a
[ "Apache-2.0" ]
null
null
null
src/server.py
FlakM/fastai_text_serving
8262c2c1192c5e11df2e06b494ab9cf88c1dcd2a
[ "Apache-2.0" ]
null
null
null
import asyncio import logging import aiohttp import uvicorn from fastai.vision import * from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.responses import JSONResponse # put your url here here model_file_url = 'https://www.dropbox.com/s/...?raw=1' model_f...
30.941176
107
0.692776
0
0
0
0
488
0.185551
1,349
0.512928
434
0.165019
e0448da70febec0759bc638d5a460760c3964480
402
py
Python
tcpserver.py
justforbalance/CSnet
c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6
[ "MIT" ]
null
null
null
tcpserver.py
justforbalance/CSnet
c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6
[ "MIT" ]
null
null
null
tcpserver.py
justforbalance/CSnet
c1e049f63d245c5d464a2d6e9aa7d3daf15bf2b6
[ "MIT" ]
null
null
null
from socket import * serverPort = 12001 serverSocket = socket(AF_INET, SOCK_STREAM) serverSocket.bind(('', serverPort)) serverSocket.listen(1) print("the server is ready to receive") while True: connectionSocket,addr = serverSocket.accept() sentence = connectionSocket.recv(1024).decode() sentence = sentence...
33.5
51
0.753731
0
0
0
0
0
0
0
0
34
0.084577
e044ab975c816db8531273f338dcef5b52d8c7ce
1,061
py
Python
src/geneflow/extend/local_workflow.py
jhphan/geneflow2
a39ab97e6425ee45584cfc15b5740e94a5bf7512
[ "Apache-2.0" ]
7
2019-04-11T03:50:51.000Z
2020-03-27T15:59:04.000Z
src/geneflow/extend/local_workflow.py
jhphan/geneflow2
a39ab97e6425ee45584cfc15b5740e94a5bf7512
[ "Apache-2.0" ]
1
2019-05-06T14:18:42.000Z
2019-05-08T22:06:12.000Z
src/geneflow/extend/local_workflow.py
jhphan/geneflow2
a39ab97e6425ee45584cfc15b5740e94a5bf7512
[ "Apache-2.0" ]
6
2019-04-10T20:25:27.000Z
2021-12-16T15:59:59.000Z
"""This module contains the GeneFlow LocalWorkflow class.""" class LocalWorkflow: """ A class that represents the Local Workflow objects. """ def __init__( self, job, config, parsed_job_work_uri ): """ Instantiate LocalWorkflow class....
18.293103
60
0.524034
998
0.940622
0
0
0
0
0
0
624
0.588124
e0453a8ff093c7c5f6bb2239656a47c98c50cec7
2,849
py
Python
S12/tensornet/engine/ops/lr_scheduler.py
abishek-raju/EVA4B2
189f4062c85d91f43c1381087a9c89ff794e5428
[ "Apache-2.0" ]
4
2020-06-18T13:07:19.000Z
2022-01-07T10:51:10.000Z
S12/tensornet/engine/ops/lr_scheduler.py
abishek-raju/EVA4B2
189f4062c85d91f43c1381087a9c89ff794e5428
[ "Apache-2.0" ]
1
2021-07-31T04:34:46.000Z
2021-08-11T05:55:57.000Z
S12/tensornet/engine/ops/lr_scheduler.py
abishek-raju/EVA4B2
189f4062c85d91f43c1381087a9c89ff794e5428
[ "Apache-2.0" ]
4
2020-08-09T07:10:46.000Z
2021-01-16T14:57:23.000Z
from torch.optim.lr_scheduler import StepLR, ReduceLROnPlateau, OneCycleLR def step_lr(optimizer, step_size, gamma=0.1, last_epoch=-1): """Create LR step scheduler. Args: optimizer (torch.optim): Model optimizer. step_size (int): Frequency for changing learning rate. gamma (float): Fa...
40.7
102
0.679537
0
0
0
0
0
0
0
0
2,082
0.730783
e045d172e3aa9769db37dd0c8977af6b2b83dca1
10,889
py
Python
armi/reactor/tests/test_zones.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/reactor/tests/test_zones.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
armi/reactor/tests/test_zones.py
youngmit/armi
67688e4e67d2a217dfc7b1ccfa64028c20b57a5b
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 TerraPower, 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 writi...
39.740876
113
0.629718
9,671
0.888144
0
0
0
0
0
0
3,163
0.290477
e04601e1749bc51e7e5f74ca383f947dc25e7da9
562
py
Python
islam_fitz/survey/migrations/0005_auto_20210712_2132.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
null
null
null
islam_fitz/survey/migrations/0005_auto_20210712_2132.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
2
2022-03-01T12:17:05.000Z
2022-03-30T12:19:55.000Z
islam_fitz/survey/migrations/0005_auto_20210712_2132.py
OmarEhab177/Islam_fitz
6ad0eb21549895a6fe537e8413022b82bc530c57
[ "MIT" ]
null
null
null
# Generated by Django 3.1.12 on 2021-07-12 19:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0004_lastpage_whatsapp_button'), ] operations = [ migrations.RemoveField( model_name='lastpage', name='wh...
23.416667
61
0.592527
468
0.83274
0
0
0
0
0
0
141
0.25089
e046ccaf1594be44b4bc74501cfe08b79d45a1d7
490
py
Python
Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
5
2019-01-28T05:17:12.000Z
2020-04-14T14:31:34.000Z
Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
1
2019-01-28T16:07:26.000Z
2021-11-25T10:59:52.000Z
Examples/WorkingWithOutlookMSGs/CreateAndSaveOutlookNote.py
Muzammil-khan/Aspose.Email-Python-Dotnet
04ca3a6f440339f3ddf316218f92d15d66f24e7e
[ "MIT" ]
6
2018-07-16T14:57:34.000Z
2020-08-30T05:59:52.000Z
import aspose.email.mapi.msg as msg from aspose.email.mapi import MapiNote, NoteSaveFormat, NoteColor def run(): dataDir = "Data/" #ExStart: CreateAndSaveOutlookNote note3 = MapiNote() note3.subject = "Blue color note" note3.body = "This is a blue color note"; note3.color = NoteColor.YELLOW note3.height = 500 ...
25.789474
77
0.746939
0
0
0
0
0
0
0
0
161
0.328571
e04830a8bb6dffa22a3b7aa461ea3221561a26cd
6,114
py
Python
nonebot/internal/adapter/template.py
mobyw/nonebot2
36663f1a8a51bd89f4a60110047e73719adcc73d
[ "MIT" ]
null
null
null
nonebot/internal/adapter/template.py
mobyw/nonebot2
36663f1a8a51bd89f4a60110047e73719adcc73d
[ "MIT" ]
null
null
null
nonebot/internal/adapter/template.py
mobyw/nonebot2
36663f1a8a51bd89f4a60110047e73719adcc73d
[ "MIT" ]
null
null
null
import functools from string import Formatter from typing import ( TYPE_CHECKING, Any, Set, Dict, List, Type, Tuple, Union, Generic, Mapping, TypeVar, Callable, Optional, Sequence, cast, overload, ) if TYPE_CHECKING: from .message import Message, Mess...
33.048649
85
0.56248
5,742
0.917839
0
0
267
0.042679
0
0
1,181
0.188779