hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
791c916480d1f29765cfd016642d4bb0b4d0aa31
141
py
Python
tests/regression/diabetes/ws_diabetes_GradientBoostingRegressor_oracle_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2019-07-09T14:45:18.000Z
2019-07-09T14:45:18.000Z
tests/regression/diabetes/ws_diabetes_GradientBoostingRegressor_oracle_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
5
2017-11-13T13:35:37.000Z
2021-11-11T12:57:20.000Z
tests/regression/diabetes/ws_diabetes_GradientBoostingRegressor_oracle_code_gen.py
antoinecarme/sklearn2sql_heroku
d680db10683daa419324461eeea851dd8b103ad5
[ "BSD-3-Clause" ]
1
2021-09-19T15:05:33.000Z
2021-09-19T15:05:33.000Z
from sklearn2sql_heroku.tests.regression import generic as reg_gen reg_gen.test_model("GradientBoostingRegressor" , "diabetes" , "oracle")
28.2
71
0.815603
cba57a828491a4f7d1f33c9519906af64d07ee84
4,546
py
Python
sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py
vijayraavi/pulumi-kubernetes
0a18b87fd1b4fa5778542dbb0e82a08a2e91ab88
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py
vijayraavi/pulumi-kubernetes
0a18b87fd1b4fa5778542dbb0e82a08a2e91ab88
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_kubernetes/policy/v1beta1/PodSecurityPolicy.py
vijayraavi/pulumi-kubernetes
0a18b87fd1b4fa5778542dbb0e82a08a2e91ab88
[ "Apache-2.0" ]
null
null
null
# *** WARNING: this file was generated by the Pulumi Kubernetes codegen tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings from typing import Optional import pulumi import pulumi.runtime from pulumi import Input, ResourceOptions from ... import tables, version ...
41.327273
107
0.683018
e95a382de6039ff66f7a286f90e8b497cd63a933
18,288
py
Python
examples/cifar/main.py
Lornatang/EfficientNet
1b8718735888aa21fbef78b825af1dacd3c257a2
[ "Apache-2.0" ]
4
2020-01-12T01:02:04.000Z
2020-04-10T00:32:05.000Z
examples/cifar/main.py
Lornatang/EfficientNet
1b8718735888aa21fbef78b825af1dacd3c257a2
[ "Apache-2.0" ]
null
null
null
examples/cifar/main.py
Lornatang/EfficientNet
1b8718735888aa21fbef78b825af1dacd3c257a2
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Lorna 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 applicable l...
38.910638
111
0.611877
f14cecca50c37646ab2f9ff0ec514500a8fad959
2,286
py
Python
tests/specifications/post_test.py
m4rc1e/fontbakery
da4c4b69abdd41314f9bdb58d9e47722e0680816
[ "Apache-2.0" ]
null
null
null
tests/specifications/post_test.py
m4rc1e/fontbakery
da4c4b69abdd41314f9bdb58d9e47722e0680816
[ "Apache-2.0" ]
null
null
null
tests/specifications/post_test.py
m4rc1e/fontbakery
da4c4b69abdd41314f9bdb58d9e47722e0680816
[ "Apache-2.0" ]
null
null
null
import pytest from fontbakery.checkrunner import ( DEBUG , INFO , WARN , ERROR , SKIP , PASS , FAIL ) check_statuses = (ERROR, FAIL, SKIP, PASS, WARN, INFO, DEBUG) from fontTools.ttLib import TTFont mada_fonts = [ "da...
30.48
80
0.692476
b360ec5333b437a2c22eff10f181ee34e18c9c64
7,021
py
Python
libs/dir_sobel_color_persp_warp_func.py
kavach-feature/Advanced_lane_finding
12e4e330e338734fdb35655c7581b98ba1eb490b
[ "MIT" ]
null
null
null
libs/dir_sobel_color_persp_warp_func.py
kavach-feature/Advanced_lane_finding
12e4e330e338734fdb35655c7581b98ba1eb490b
[ "MIT" ]
null
null
null
libs/dir_sobel_color_persp_warp_func.py
kavach-feature/Advanced_lane_finding
12e4e330e338734fdb35655c7581b98ba1eb490b
[ "MIT" ]
null
null
null
import numpy as np import cv2 import matplotlib.pyplot as plt import matplotlib.image as mpimg import glob objpoints=[] imgpoints=[] objp=np.zeros((6*9,3), np.float32) objp[:,:2]= np.mgrid[0:9,0:6].T.reshape(-1,2) # Defines a function that applies Sobel x and y, # then computes the direction of the...
39.44382
100
0.683094
d7e137f11b2e3a56ffbc1e7e0a579c3543ded5a5
1,292
py
Python
projetinhos/ex115/interface/__init__.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
projetinhos/ex115/interface/__init__.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
projetinhos/ex115/interface/__init__.py
dani-fn/Projetinhos_Python
692ff0a7f57d8f8f2e28f7b2c38bb6401e013bdb
[ "MIT" ]
null
null
null
def linha(tam=48): return '-' * tam def titulo(msg): print(linha()) print(f'{msg}'.center(48)) print(linha()) def leiaop(msg, a, b): erro = '\033[31m ERRO! Digite uma opção válida!\033[m' while True: try: v = int(input(msg)) except (TypeError, Value...
24.846154
80
0.496904
5144ff2b68f65fe7bc34889af6238ac6e9095f20
303
py
Python
2019/pwn/Time/exp.py
ZJGSIS/ZJGSUCTF-Challenges
460bfaa90f5d13a0958702fa4e479905713738bc
[ "MIT" ]
1
2021-11-20T04:13:07.000Z
2021-11-20T04:13:07.000Z
2019/pwn/Time/exp.py
ZJGSIS/ZJGSUCTF-Challenges
460bfaa90f5d13a0958702fa4e479905713738bc
[ "MIT" ]
null
null
null
2019/pwn/Time/exp.py
ZJGSIS/ZJGSUCTF-Challenges
460bfaa90f5d13a0958702fa4e479905713738bc
[ "MIT" ]
null
null
null
from pwn import * #context.log_level='debug' got=0x000000000601028 #p=process("./main") p=remote("10.21.13.190",2699) #gdb.attach(p) payload="%{}c%8$hn".format(0x2216).ljust(0x10,'\x00')+p64(got) payload=payload[:-5] log.info((payload)) log.info(len(payload)) p.sendafter(".\n",payload) p.interactive()
23.307692
62
0.70297
9f30c64d91f5b7cd62e44cf005989a70748967c6
57,274
py
Python
superset/superset/utils/core.py
mvbvieira/finance_pipeline
48b085aeafda61c82f77de4ae67ceb02ac32f683
[ "Apache-2.0" ]
1
2020-11-03T06:34:21.000Z
2020-11-03T06:34:21.000Z
superset/superset/utils/core.py
mvbvieira/finance_pipeline
48b085aeafda61c82f77de4ae67ceb02ac32f683
[ "Apache-2.0" ]
57
2020-04-20T17:41:41.000Z
2022-03-16T21:38:05.000Z
superset/superset/utils/core.py
mvbvieira/finance_pipeline
48b085aeafda61c82f77de4ae67ceb02ac32f683
[ "Apache-2.0" ]
2
2021-10-12T17:51:34.000Z
2021-10-15T18:55:52.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
31.538546
88
0.636572
007a4dd7c930df4e631e6ced5310c2169b1a75f7
16,488
py
Python
bann/b_test_train_prepare/pytorch/p_train/glw_pretraining.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann/b_test_train_prepare/pytorch/p_train/glw_pretraining.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
bann/b_test_train_prepare/pytorch/p_train/glw_pretraining.py
arturOnRails/BANN
027af04349304941fb73c2ede502aca4b76f1ad1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """.. moduleauthor:: Artur Lissin""" import math import re from copy import deepcopy from dataclasses import dataclass from typing import Optional, Tuple, Iterable, Callable, Dict, List, Pattern, Union, Final, final import torch from torch import nn from torch.utils.data import Dataset, DataLoa...
44.203753
100
0.643741
b2ff5961db747304633158435de402e9a5df46ec
638
py
Python
server/src/db/database.py
Sheerabth/blob-system
808f1591247fecace4cbd121053d79205096ced3
[ "MIT" ]
null
null
null
server/src/db/database.py
Sheerabth/blob-system
808f1591247fecace4cbd121053d79205096ced3
[ "MIT" ]
null
null
null
server/src/db/database.py
Sheerabth/blob-system
808f1591247fecace4cbd121053d79205096ced3
[ "MIT" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker, Session from src.config import DATABASE_USER, DATABASE_PASSWORD, DATABASE_HOST, DATABASE_PORT, DATABASE_NAME SQLALCHEMY_DATABASE_URL = ( f"postgresql://{DATABASE_USER}:{DATABASE_PAS...
30.380952
103
0.775862
9e53f3460dfa9f06fe1c61688c39f68749388d52
11,126
py
Python
code_controller.py
aerialist/on_air_sign
022e351184c86ee24b81105439e6e43025c75f87
[ "MIT" ]
null
null
null
code_controller.py
aerialist/on_air_sign
022e351184c86ee24b81105439e6e43025c75f87
[ "MIT" ]
2
2021-08-10T07:39:00.000Z
2021-08-10T13:04:02.000Z
code_controller.py
aerialist/on_air_sign
022e351184c86ee24b81105439e6e43025c75f87
[ "MIT" ]
null
null
null
def reference(): pass # Raspberry Pi Pico RP2040 #dir(board) #['__class__', 'A0', 'A1', 'A2', 'A3', 'GP0', 'GP1', 'GP10', 'GP11', 'GP12', 'GP13', #'GP14', 'GP15', 'GP16', 'GP17', 'GP18', 'GP19', 'GP2', 'GP20', 'GP21', 'GP22', 'GP23', #'GP24', 'GP25', 'GP26', 'GP26_A0', 'GP27', 'GP27_A1', 'GP28',...
33.014837
92
0.665558
741f53c230fa684a07e78aee1d3515b89005d4e8
254
py
Python
project/WeiboTest/Logger.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2016-10-03T10:20:02.000Z
2018-03-20T00:38:53.000Z
project/WeiboTest/Logger.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
2
2019-10-08T07:13:44.000Z
2019-10-08T07:13:46.000Z
project/WeiboTest/Logger.py
zhengbomo/python_practice
1bc5c4ff426f806639bbc01249e66747271ec398
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- class Logger(object): @staticmethod def info(type_, message): pass @staticmethod def warning(type_, message): pass @staticmethod def error(type_, message): pass
14.941176
32
0.582677
a27c28a351371ddf09faf846671de43198a11bc5
4,428
py
Python
2016/11/11-python.py
allengarvin/adventofcode
004719c1721e514e3e8de8e94c25e0f858e96838
[ "BSD-3-Clause" ]
null
null
null
2016/11/11-python.py
allengarvin/adventofcode
004719c1721e514e3e8de8e94c25e0f858e96838
[ "BSD-3-Clause" ]
null
null
null
2016/11/11-python.py
allengarvin/adventofcode
004719c1721e514e3e8de8e94c25e0f858e96838
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python import sys, re, itertools from operator import and_, or_, xor def mysplit(s): return re.split(", and | and |, ", s) def main(): floors = [0,0,0,0] things = [] for l in map(lambda x: x.strip(), open("../advent-2016/11-input.txt").readlines()): fl, stuff = l.split(" contains "...
29.52
116
0.448961
7454d59253416b1e4146fc587311759e15eaaec6
281
py
Python
sentdex_data_analysis/pandas_building_dataset.py
yull1860outlook/Data-Analysis
b777d9a75eb1acc4c899946d547e5585469a83ae
[ "MIT" ]
4,358
2017-12-29T17:56:07.000Z
2022-03-30T15:14:57.000Z
sentdex_data_analysis/pandas_building_dataset.py
MarwanAmr509/Data-Analysis
34a48f16f6be757ed3f35cb3fc458569023c9bd8
[ "MIT" ]
61
2018-01-18T17:50:46.000Z
2022-03-09T20:16:01.000Z
sentdex_data_analysis/pandas_building_dataset.py
MarwanAmr509/Data-Analysis
34a48f16f6be757ed3f35cb3fc458569023c9bd8
[ "MIT" ]
3,689
2017-12-29T17:57:36.000Z
2022-03-29T12:26:03.000Z
import quandl import pandas as pd api_key = "rFsSehe51RLzREtYhLfo" # df = quandl.get('FMAC/HPI_AK', authtoken = api_key) fifty_states = pd.read_html("https://simple.wikipedia.org/wiki/List_of_U.S._states") for abbv in fifty_states[0][0][1:]: print("FMAC/HPI_" + str(abbv))
23.416667
84
0.72242
36d6dbb1cf9fa3df911ae1417ed5774b8b6b8c6b
2,324
py
Python
aws_lambda_builders/workflows/java_maven/workflow.py
eldritchideen/aws-lambda-builders
8bd869d9c2b83f67b4f37d45883f9436e1cb1179
[ "Apache-2.0" ]
88
2020-09-03T18:51:44.000Z
2022-03-22T23:46:14.000Z
aws_lambda_builders/workflows/java_maven/workflow.py
eldritchideen/aws-lambda-builders
8bd869d9c2b83f67b4f37d45883f9436e1cb1179
[ "Apache-2.0" ]
88
2020-09-01T19:22:28.000Z
2022-03-30T01:55:36.000Z
aws_lambda_builders/workflows/java_maven/workflow.py
eldritchideen/aws-lambda-builders
8bd869d9c2b83f67b4f37d45883f9436e1cb1179
[ "Apache-2.0" ]
40
2020-09-02T17:29:39.000Z
2022-03-31T02:36:17.000Z
""" Java Maven Workflow """ from aws_lambda_builders.workflow import BaseWorkflow, Capability from aws_lambda_builders.actions import CopySourceAction, CleanUpAction from aws_lambda_builders.workflows.java.actions import JavaCopyDependenciesAction, JavaMoveDependenciesAction from aws_lambda_builders.workflows.java.util...
42.254545
116
0.75
6bd99c6eba0ca874b896c3c335b28ec78111e901
172
py
Python
v1/items/urls.py
DucPhamTV/MaiTet
44a1465a3239808f6640592ba666d9c5449c0ef4
[ "MIT" ]
null
null
null
v1/items/urls.py
DucPhamTV/MaiTet
44a1465a3239808f6640592ba666d9c5449c0ef4
[ "MIT" ]
15
2021-02-20T12:03:33.000Z
2021-07-26T10:15:03.000Z
v1/items/urls.py
DucPhamTV/MaiTet
44a1465a3239808f6640592ba666d9c5449c0ef4
[ "MIT" ]
null
null
null
from rest_framework.routers import SimpleRouter from v1.items.views import ItemViewSet router = SimpleRouter(trailing_slash=False) router.register('items', ItemViewSet)
21.5
47
0.831395
440b188398b16e3b21a45a5676f2f967ada33693
6,778
py
Python
bindings/python/ensmallen_graph/datasets/string/comamonasaquatica.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/comamonasaquatica.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
bindings/python/ensmallen_graph/datasets/string/comamonasaquatica.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
null
null
null
""" This file offers the methods to automatically retrieve the graph Comamonas aquatica. The graph is automatically retrieved from the STRING repository. Report --------------------- At the time of rendering these methods (please see datetime below), the graph had the following characteristics: Datetime: 2021-02-...
35.486911
223
0.707583
7656bd9c717655f42843f8e616fc8b4ef4f25325
8,781
py
Python
framework/TSA/RWD.py
yenili/raven
cc5f10e387d40219213beff05a3f72e9386034d5
[ "Apache-2.0" ]
1
2021-07-12T19:41:52.000Z
2021-07-12T19:41:52.000Z
framework/TSA/RWD.py
yenili/raven
cc5f10e387d40219213beff05a3f72e9386034d5
[ "Apache-2.0" ]
null
null
null
framework/TSA/RWD.py
yenili/raven
cc5f10e387d40219213beff05a3f72e9386034d5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, 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 t...
38.178261
116
0.676916
ca29a6e5822ff0c2f2f52dcfb365403314caeb60
46
py
Python
end2you/models/multimodal/fusion.py
mauricege/end2you
0d0c731e210410a1a5b561a747dbea5b0b53639d
[ "BSD-3-Clause" ]
null
null
null
end2you/models/multimodal/fusion.py
mauricege/end2you
0d0c731e210410a1a5b561a747dbea5b0b53639d
[ "BSD-3-Clause" ]
null
null
null
end2you/models/multimodal/fusion.py
mauricege/end2you
0d0c731e210410a1a5b561a747dbea5b0b53639d
[ "BSD-3-Clause" ]
null
null
null
# Fusion methods provided to fuse modalities.
23
45
0.804348
4bd7df19d8266c5bdd9a94c1f1e6994b17d75f6d
756
py
Python
class3/class3_ex1.py
ande0581/pynet
c02572236383231cb5a1a7b2892ab5e7c94238c7
[ "Apache-2.0" ]
null
null
null
class3/class3_ex1.py
ande0581/pynet
c02572236383231cb5a1a7b2892ab5e7c94238c7
[ "Apache-2.0" ]
null
null
null
class3/class3_ex1.py
ande0581/pynet
c02572236383231cb5a1a7b2892ab5e7c94238c7
[ "Apache-2.0" ]
null
null
null
# SNMPwalk on Windows # SnmpWalk.exe -r:10.40.0.1 -t:10 -c:"private" -os:1.3.6.1.2.1.2.2.1 -op:1.3.6.1.2.1.2.2.1.20 import snmp_helper ip = '10.40.0.1' a_user = 'mysnmpuser' auth_key = 'myauthkey' encrypt_key = 'myencryptkey' snmp_user = (a_user, auth_key, encrypt_key) my_router = (ip, 161) systemName = '1.3.6.1.2.1....
28
93
0.703704
076cdf162d8ce46f2d17a43b464cfb52165b96b8
3,643
py
Python
pardet/models/par_detectors/strongbaseline.py
wduo/pardet-pytorch
9df9124b013728d9de4d7948d1e5a6f535c9d7e7
[ "Apache-2.0" ]
7
2020-12-06T11:14:58.000Z
2021-03-28T08:48:07.000Z
pardet/models/par_detectors/strongbaseline.py
wduo/pardet-pytorch
9df9124b013728d9de4d7948d1e5a6f535c9d7e7
[ "Apache-2.0" ]
null
null
null
pardet/models/par_detectors/strongbaseline.py
wduo/pardet-pytorch
9df9124b013728d9de4d7948d1e5a6f535c9d7e7
[ "Apache-2.0" ]
3
2020-12-06T14:24:24.000Z
2021-11-25T09:57:53.000Z
from collections import OrderedDict import torch import torch.nn as nn from ..builder import CLASSIFIERS, PARNETS, build_bockbone, build_classifier, build_loss @CLASSIFIERS.register_module() class BaseClassifier(nn.Module): def __init__(self, nattr): super().__init__() self.logits = nn.Sequentia...
31.136752
88
0.620093
8dc8ff1eaefdaf985e54b1927b1af3abe23572e7
2,168
py
Python
landlab/grid/tests/test_raster_grid/test_fields.py
laijingtao/landlab
871151bff814e672b4f09f091b6347367758c764
[ "MIT" ]
1
2015-08-17T19:29:50.000Z
2015-08-17T19:29:50.000Z
landlab/grid/tests/test_raster_grid/test_fields.py
laijingtao/landlab
871151bff814e672b4f09f091b6347367758c764
[ "MIT" ]
null
null
null
landlab/grid/tests/test_raster_grid/test_fields.py
laijingtao/landlab
871151bff814e672b4f09f091b6347367758c764
[ "MIT" ]
2
2017-07-03T20:21:13.000Z
2018-09-06T23:58:19.000Z
import numpy as np from numpy.testing import assert_array_equal from nose.tools import assert_raises from landlab import RasterModelGrid def test_add_field_at_node(): """Add field at nodes.""" grid = RasterModelGrid((4, 5)) grid.add_field('z', np.arange(20), at='node') assert_array_equal(grid.at_nod...
34.967742
96
0.694649
f6624017b71f6f71b3d4fd4f1d2649cdd1378df3
1,488
py
Python
Day 11/part1.py
MrHarcombe/advent2015
b14b858eef369ed2df230a7c5ebc702eed7ef524
[ "CC0-1.0" ]
null
null
null
Day 11/part1.py
MrHarcombe/advent2015
b14b858eef369ed2df230a7c5ebc702eed7ef524
[ "CC0-1.0" ]
null
null
null
Day 11/part1.py
MrHarcombe/advent2015
b14b858eef369ed2df230a7c5ebc702eed7ef524
[ "CC0-1.0" ]
null
null
null
import re password = "abcdefgh" password = "ghijklmn" password = "vzbxkghb" # part 1 input password = "vzbxxyzz" # part 2 input #sequence = re.compile(r'(?:a(?=b)|b(?=c)|c(?=d)|d(?=e)|e(?=f)|f(?=g)|g(?=h)|h(?=i)|i(?=j)|j(?=k)|k(?=l)|l(?=m)|m(?=n)|n(?=o)|o(?=p)|p(?=q)|q(?=r)|r(?=s)|s(?=t)|t(?=u)|u(?=v)|v(?=w)|w(?=x)|x...
27.054545
209
0.603495
df27071f0bf39237294199481c51c72aa646ad28
782
py
Python
onfido/resources/applicants.py
daaain/onfido-python
62675c97cf7d03de2ab3ed4b07ec0bde9e2b1a5d
[ "MIT" ]
null
null
null
onfido/resources/applicants.py
daaain/onfido-python
62675c97cf7d03de2ab3ed4b07ec0bde9e2b1a5d
[ "MIT" ]
null
null
null
onfido/resources/applicants.py
daaain/onfido-python
62675c97cf7d03de2ab3ed4b07ec0bde9e2b1a5d
[ "MIT" ]
null
null
null
from ..resource import Resource class Applicants(Resource): def create(self, request_body:dict): return self.post("applicants/", **request_body) def update(self, applicant_id:str, request_body:dict): return self.put(f"applicants/{applicant_id}", request_body) def find(self, applicant_id:...
32.583333
71
0.682864
9e76fec151908142195eb38f84582544eeddb7bd
3,806
py
Python
test/perc.py
kariminf/MultiNetSum
b3a66d13049d4501c7e07243af45e8c56512d624
[ "Apache-2.0" ]
1
2019-02-24T22:15:44.000Z
2019-02-24T22:15:44.000Z
test/perc.py
kariminf/MultiNetSum
b3a66d13049d4501c7e07243af45e8c56512d624
[ "Apache-2.0" ]
6
2018-07-24T13:52:45.000Z
2019-08-23T22:10:16.000Z
test/perc.py
kariminf/MultiNetSum
b3a66d13049d4501c7e07243af45e8c56512d624
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 Abdelkrime Aries <kariminfo0@gmail.com> # # ---- AUTHORS ---- # 2018 Abdelkrime Aries <kariminfo0@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
26.802817
97
0.582764
6f9559d27dc3428c0f2e5d230a21306727376bca
745
py
Python
ai_chan/util.py
kagyuu/ai-chan
1fa5c803ca9fefb1ccf6c9195c8f8015da56bda1
[ "MIT" ]
null
null
null
ai_chan/util.py
kagyuu/ai-chan
1fa5c803ca9fefb1ccf6c9195c8f8015da56bda1
[ "MIT" ]
null
null
null
ai_chan/util.py
kagyuu/ai-chan
1fa5c803ca9fefb1ccf6c9195c8f8015da56bda1
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def debug(msg, *args): print(msg.format(*args)) def least_square_average(d, y): """ 自乗誤差平均を求めます :param d:教師データ(expected) :param y:予想(actual) :return: 自乗誤差平均 """ return (np.sum(np.square(d - y)) / 2.0) / float(len(d)) def draw_hist...
23.28125
68
0.620134
3f56f1de768b233583ce4c485e721211d46ae025
1,412
py
Python
url_shortener/views.py
teremterem/django_url_shortener
2da496a9e8287e6291d47227b72e92ee05d4f0b1
[ "MIT" ]
2
2020-09-01T19:05:23.000Z
2020-09-02T13:14:32.000Z
url_shortener/views.py
teremterem/django_url_shortener
2da496a9e8287e6291d47227b72e92ee05d4f0b1
[ "MIT" ]
15
2020-09-02T00:30:38.000Z
2020-09-19T10:06:19.000Z
url_shortener/views.py
teremterem/django_url_shortener
2da496a9e8287e6291d47227b72e92ee05d4f0b1
[ "MIT" ]
null
null
null
import logging from django.conf import settings from django.http import HttpResponseRedirect, Http404 from django.shortcuts import render, redirect from url_shortener.shortener import shortener_storage, shortener_utils log = logging.getLogger(__name__) def index(request): last_short_url = request.session.pop('...
32.837209
115
0.73796
0ab6f6687f2ca137dfb5899725d27acccb505b3e
42,063
py
Python
lib/matplotlib/contour.py
mattfoster/matplotlib
0b47697b19b77226c633ec6a3d74a2199a153315
[ "PSF-2.0", "BSD-3-Clause" ]
1
2016-05-08T18:33:12.000Z
2016-05-08T18:33:12.000Z
lib/matplotlib/contour.py
mattfoster/matplotlib
0b47697b19b77226c633ec6a3d74a2199a153315
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
lib/matplotlib/contour.py
mattfoster/matplotlib
0b47697b19b77226c633ec6a3d74a2199a153315
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
""" These are classes to support contour plotting and labelling for the axes class """ from __future__ import division import warnings import matplotlib as mpl import numpy as np from numpy import ma import matplotlib._cntr as _cntr import matplotlib.path as path import matplotlib.ticker as ticker import matplotlib.cm...
38.100543
85
0.564035
52ac39d599cc31d8097d3e4f8962cb41a469ed80
11,450
py
Python
mlflow/store/dbmodels/models.py
margaret-databricks/mlflow
25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
[ "Apache-2.0" ]
null
null
null
mlflow/store/dbmodels/models.py
margaret-databricks/mlflow
25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
[ "Apache-2.0" ]
null
null
null
mlflow/store/dbmodels/models.py
margaret-databricks/mlflow
25dcf038e6a6a6c4e26ff3f55391eaedeeb25293
[ "Apache-2.0" ]
null
null
null
import time from sqlalchemy.orm import relationship, backref from sqlalchemy import ( Column, String, Float, ForeignKey, Integer, CheckConstraint, BigInteger, PrimaryKeyConstraint) from sqlalchemy.ext.declarative import declarative_base from mlflow.entities import ( Experiment, RunTag, Metric, Param, RunDat...
35.122699
100
0.602795
e749ae0a152fbfbdd73e27d215fc707cb36fb963
1,366
py
Python
ingenico/direct/sdk/domain/fixed_list_validator.py
Ingenico/direct-sdk-python2
1c5c08fe2281aa99bfe8e8e031071600cb3be11d
[ "Apache-2.0" ]
null
null
null
ingenico/direct/sdk/domain/fixed_list_validator.py
Ingenico/direct-sdk-python2
1c5c08fe2281aa99bfe8e8e031071600cb3be11d
[ "Apache-2.0" ]
null
null
null
ingenico/direct/sdk/domain/fixed_list_validator.py
Ingenico/direct-sdk-python2
1c5c08fe2281aa99bfe8e8e031071600cb3be11d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # This class was auto-generated from the API references found at # https://support.direct.ingenico.com/documentation/api/reference/ # from ingenico.direct.sdk.data_object import DataObject class FixedListValidator(DataObject): __allowed_values = None @property def allowed_value...
32.52381
97
0.644949
662f4208b526f4ac84a3e39af6d0244fbb63218b
1,646
py
Python
jigls/jeditor/operations/nodefactory.py
ironWolf1990/python-jils
87390cf871329e9a47f985b4f0c9fc9506bfdb91
[ "MIT" ]
2
2021-04-08T14:57:58.000Z
2021-07-26T00:57:49.000Z
jigls/jeditor/operations/nodefactory.py
ironWolf1990/python-jils
87390cf871329e9a47f985b4f0c9fc9506bfdb91
[ "MIT" ]
null
null
null
jigls/jeditor/operations/nodefactory.py
ironWolf1990/python-jils
87390cf871329e9a47f985b4f0c9fc9506bfdb91
[ "MIT" ]
3
2021-05-19T18:48:57.000Z
2021-07-26T00:55:23.000Z
# import logging # from typing import Dict, Optional # from jigls.jeditor.base.nodebase import JBaseNode # from jigls.jeditor.constants import JCONSTANTS # from jigls.jeditor.ui.graphicnode import JGraphicsNode # from jigls.logger import logger # logger = logging.getLogger(__name__) # class JNodeFactory: # def ...
30.481481
96
0.597813
84ee68733e5167ff90d0886ff60ca505713d9771
480
py
Python
recipes/tinyply/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
562
2019-09-04T12:23:43.000Z
2022-03-29T16:41:43.000Z
recipes/tinyply/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
9,799
2019-09-04T12:02:11.000Z
2022-03-31T23:55:45.000Z
recipes/tinyply/all/test_package/conanfile.py
rockandsalt/conan-center-index
d739adcec3e4dd4c250eff559ceb738e420673dd
[ "MIT" ]
1,126
2019-09-04T11:57:46.000Z
2022-03-31T16:43:38.000Z
import os from conans import ConanFile, CMake, tools class TestPackageConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake", "cmake_find_package_multi" def build(self): cmake = CMake(self) cmake.configure() cmake.build() def test(self): ...
26.666667
58
0.641667
36ec3873f8a1b4a2a578b18b0fe3fb1d4e845fa6
7,218
py
Python
src/olympia/versions/views.py
atiqueahmedziad/addons-server
6e1cc00bf15d245fbcdddf618286bba943731e45
[ "BSD-3-Clause" ]
2
2019-08-18T13:00:40.000Z
2019-11-17T02:18:04.000Z
src/olympia/versions/views.py
atiqueahmedziad/addons-server
6e1cc00bf15d245fbcdddf618286bba943731e45
[ "BSD-3-Clause" ]
null
null
null
src/olympia/versions/views.py
atiqueahmedziad/addons-server
6e1cc00bf15d245fbcdddf618286bba943731e45
[ "BSD-3-Clause" ]
null
null
null
import os from django import http from django.db.transaction import non_atomic_requests from django.shortcuts import get_object_or_404, redirect import olympia.core.logger from olympia import amo from olympia.access import acl from olympia.addons.decorators import ( addon_view_factory, owner_or_unlisted_reviewer...
37.59375
79
0.667636
dcf9d9bcdcf6324de552bc3b65ea9012cfa88f70
7,227
py
Python
image_transfer_learning/image_processing.py
jonathan-smith-1/image_transfer_learning
9020ecfa45e1591b9ad6ed2abe2a2e89a180edd4
[ "MIT" ]
null
null
null
image_transfer_learning/image_processing.py
jonathan-smith-1/image_transfer_learning
9020ecfa45e1591b9ad6ed2abe2a2e89a180edd4
[ "MIT" ]
null
null
null
image_transfer_learning/image_processing.py
jonathan-smith-1/image_transfer_learning
9020ecfa45e1591b9ad6ed2abe2a2e89a180edd4
[ "MIT" ]
null
null
null
"""Image processing functions.""" import os import pickle import numpy as np import tensorflow as tf import tensorflow_hub as hub from skimage.io import imread from skimage.transform import resize from PIL import ImageFile ImageFile.LOAD_TRUNCATED_IMAGES = True # Needed for large images def make_square(img): ""...
31.697368
78
0.555556
29e41964c1afa023ead9ff36ae2b4a3b278c743f
17,734
py
Python
tccli/services/cloudhsm/cloudhsm_client.py
ws0416/tencentcloud-cli
0a90fa77c8be1efa30b196a3eeb31b8be1f6a325
[ "Apache-2.0" ]
null
null
null
tccli/services/cloudhsm/cloudhsm_client.py
ws0416/tencentcloud-cli
0a90fa77c8be1efa30b196a3eeb31b8be1f6a325
[ "Apache-2.0" ]
null
null
null
tccli/services/cloudhsm/cloudhsm_client.py
ws0416/tencentcloud-cli
0a90fa77c8be1efa30b196a3eeb31b8be1f6a325
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os import json import tccli.options_define as OptionsDefine import tccli.format_output as FormatOutput from tccli import __version__ from tccli.utils import Utils from tccli.exceptions import ConfigurationError from tencentcloud.common import credential from tencentcloud.common.profile.ht...
41.629108
105
0.71924
497b41d573fe318423e88053194d710303174585
617
py
Python
allauth/socialaccount/providers/pinterest/tests.py
joebos/django-allauth
cb624a2fe659e58ea343b9b16159427ce38aff69
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/pinterest/tests.py
joebos/django-allauth
cb624a2fe659e58ea343b9b16159427ce38aff69
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/pinterest/tests.py
joebos/django-allauth
cb624a2fe659e58ea343b9b16159427ce38aff69
[ "MIT" ]
null
null
null
from allauth.socialaccount.tests import create_oauth2_tests from allauth.tests import MockedResponse from allauth.socialaccount.providers import registry from .provider import PinterestProvider class PinterestTests(create_oauth2_tests( registry.by_id(PinterestProvider.id))): def get_mocked_response(self...
28.045455
64
0.742301
3ce93d16336e8e5b4da7ab0bb668030f9f2c50ae
7,059
py
Python
build/android/pylib/gtest/local_device_gtest_run.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-11-28T10:46:52.000Z
2019-11-28T10:46:52.000Z
build/android/pylib/gtest/local_device_gtest_run.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
build/android/pylib/gtest/local_device_gtest_run.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright 2014 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. import logging import os from pylib import constants from pylib import ports from pylib.base import test_run from pylib.device import device_errors from py...
33.77512
79
0.710582
3d8dbc633affb92750227abbfd47d9f2008eb4ae
1,325
py
Python
lib/timers_test.py
jakerogerz/glazier
10ee390e79c5fe65933a2699da851e27c03f8c60
[ "Apache-2.0" ]
null
null
null
lib/timers_test.py
jakerogerz/glazier
10ee390e79c5fe65933a2699da851e27c03f8c60
[ "Apache-2.0" ]
null
null
null
lib/timers_test.py
jakerogerz/glazier
10ee390e79c5fe65933a2699da851e27c03f8c60
[ "Apache-2.0" ]
1
2019-11-25T10:56:20.000Z
2019-11-25T10:56:20.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.444444
74
0.722264
69ee73633de7d6ecb6e3c3d8a417e05a459ec99d
3,516
py
Python
src/fonduer/features/feature_libs/visual_features.py
Prabh06/fonduer
c376dfb31f0595b7fe992e9ae7eaf23397125d65
[ "MIT" ]
null
null
null
src/fonduer/features/feature_libs/visual_features.py
Prabh06/fonduer
c376dfb31f0595b7fe992e9ae7eaf23397125d65
[ "MIT" ]
null
null
null
src/fonduer/features/feature_libs/visual_features.py
Prabh06/fonduer
c376dfb31f0595b7fe992e9ae7eaf23397125d65
[ "MIT" ]
null
null
null
from fonduer.candidates.models import TemporarySpan from fonduer.utils.data_model_utils import ( get_visual_aligned_lemmas, is_horz_aligned, is_vert_aligned, is_vert_aligned_center, is_vert_aligned_left, is_vert_aligned_right, same_page, ) FEAT_PRE = "VIZ_" DEF_VALUE = 1 unary_vizlib_feats...
34.135922
79
0.595563
f5a74cfcbf5a3c58f466d9bd1ca84e6a913671e9
600
py
Python
tests/sanic/app.py
messa/graphql-server
f5e8302d1320b013b441844df059e90ae83d04a0
[ "MIT" ]
null
null
null
tests/sanic/app.py
messa/graphql-server
f5e8302d1320b013b441844df059e90ae83d04a0
[ "MIT" ]
2
2019-05-15T20:33:39.000Z
2019-05-15T22:44:22.000Z
tests/sanic/app.py
messa/graphql-server
f5e8302d1320b013b441844df059e90ae83d04a0
[ "MIT" ]
2
2019-05-15T18:58:21.000Z
2019-06-30T09:56:11.000Z
from urllib.parse import urlencode from sanic import Sanic from sanic.testing import SanicTestClient from graphql_server.sanic import GraphQLView from .schema import Schema def create_app(path="/graphql", **kwargs): app = Sanic(__name__) app.debug = True schema = kwargs.pop("schema", None) or Schema ...
20.689655
69
0.705
e422711132c3cb2156f113d5ac2ea1acdeaeb716
36,434
py
Python
costmap_dataset.py
Czworldy/GP_traj
96261f39a5a322092e3a6be98938bb4601f0f746
[ "MIT" ]
1
2021-06-08T06:09:55.000Z
2021-06-08T06:09:55.000Z
costmap_dataset.py
Czworldy/GP_traj
96261f39a5a322092e3a6be98938bb4601f0f746
[ "MIT" ]
null
null
null
costmap_dataset.py
Czworldy/GP_traj
96261f39a5a322092e3a6be98938bb4601f0f746
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import glob import random import numpy as np from PIL import Image import torch from torch.utils.data import Dataset import torchvision.transforms as transforms import copy from scipy.special import comb np.set_printoptions(suppress=True, precision=4, linewidth=65535) i...
40.037363
187
0.512433
17cfa0bbbc59e69720514191fc68640d906b0bb1
821
py
Python
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/local.py
uhuramedia/cookiecutter-django
8d21b960661aea42bb9e447193321b574b1a1e9f
[ "BSD-3-Clause" ]
2
2015-04-17T22:00:02.000Z
2015-08-14T03:53:33.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/local.py
uhuramedia/cookiecutter-django
8d21b960661aea42bb9e447193321b574b1a1e9f
[ "BSD-3-Clause" ]
38
2015-01-13T13:20:49.000Z
2017-02-08T13:04:34.000Z
{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/local.py
uhuramedia/cookiecutter-django
8d21b960661aea42bb9e447193321b574b1a1e9f
[ "BSD-3-Clause" ]
8
2015-03-31T09:32:38.000Z
2018-06-29T02:58:53.000Z
# -*- coding: utf-8 -*- from base import * DEBUG = True TEMPLATE_DEBUG = DEBUG DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': '{{cookiecutter.project_name}}', 'HOST': 'localhost', 'USER': 'root', 'PASSWORD': '', 'CONN_MAX_AGE': 600, } ...
19.547619
74
0.628502
6af6d8c9b85c91ea3df80d2c4cdaac9c10cfc6a4
5,530
py
Python
networking_odl/ml2/port_status_update.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/ml2/port_status_update.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
networking_odl/ml2/port_status_update.py
gokarslan/networking-odl2
6a6967832b2c02dfcff6a9f0ab6e36472b849ce8
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
40.661765
79
0.647197
77cbf83eb057b9552ea77d2175a56e8593060943
6,122
py
Python
examples/inverted_pendulum/simulate.py
ashander/opty
85f8c5d75c924d393edcbc07324088c3266bca31
[ "BSD-2-Clause-FreeBSD" ]
63
2015-03-07T19:38:10.000Z
2022-03-31T17:17:53.000Z
examples/inverted_pendulum/simulate.py
ashander/opty
85f8c5d75c924d393edcbc07324088c3266bca31
[ "BSD-2-Clause-FreeBSD" ]
52
2015-02-15T17:24:03.000Z
2021-06-18T16:43:45.000Z
examples/inverted_pendulum/simulate.py
ashander/opty
85f8c5d75c924d393edcbc07324088c3266bca31
[ "BSD-2-Clause-FreeBSD" ]
22
2015-05-25T21:28:16.000Z
2022-03-14T03:55:57.000Z
#!/usr/bin/env/python # standard lib from collections import OrderedDict # external import numpy as np from scipy.interpolate import interp1d from scipy.linalg import solve_continuous_are from pydy.codegen.ode_function_generators import generate_ode_function from opty.utils import controllable, sum_of_sines # local ...
31.720207
80
0.63084
81636fbcec24e44944d4e59569cfa3b8194ff0f9
11,736
py
Python
train_and_test.py
apardyl/ProtoPNet
b2bbd7284bfc84a37385c0e975408c68cdf64205
[ "MIT" ]
1
2021-03-20T13:57:03.000Z
2021-03-20T13:57:03.000Z
train_and_test.py
apardyl/ProtoPNet
b2bbd7284bfc84a37385c0e975408c68cdf64205
[ "MIT" ]
null
null
null
train_and_test.py
apardyl/ProtoPNet
b2bbd7284bfc84a37385c0e975408c68cdf64205
[ "MIT" ]
null
null
null
from enum import Enum import numpy as np import torch from matplotlib import pyplot as plt from sklearn.metrics import confusion_matrix, ConfusionMatrixDisplay, roc_auc_score, precision_score, recall_score, \ f1_score, roc_curve from torch.utils.tensorboard import SummaryWriter import torch.nn.functional as func f...
39.250836
124
0.628323
e7e9e8e05037a0d368709d20745c3d3e79794f66
933
py
Python
test/record/parser/test_response_whois_jprs_jp_jp_property_status_suspended.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_jprs_jp_jp_property_status_suspended.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
test/record/parser/test_response_whois_jprs_jp_jp_property_status_suspended.py
huyphan/pyyawhois
77fb2f73a9c67989f1d41d98f37037406a69d136
[ "MIT" ]
null
null
null
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.jprs.jp/jp/property_status_suspended # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser i...
29.15625
95
0.702036
2c59ee67d4a8e9ae49bf7eadec2d1b1e9d1e7fce
10,349
py
Python
python/paddle/hapi/dynamic_flops.py
wwqgtxx/Paddle
109ca9d250e37e723e364366e8402c307b110169
[ "Apache-2.0" ]
17,085
2016-11-18T06:40:52.000Z
2022-03-31T22:52:32.000Z
python/paddle/hapi/dynamic_flops.py
betterpig/paddle_npu
74ad4b6a700795d5edce8dd49d6c2df6f15e8935
[ "Apache-2.0" ]
29,769
2016-11-18T06:35:22.000Z
2022-03-31T16:46:15.000Z
python/paddle/hapi/dynamic_flops.py
betterpig/paddle_npu
74ad4b6a700795d5edce8dd49d6c2df6f15e8935
[ "Apache-2.0" ]
4,641
2016-11-18T07:43:33.000Z
2022-03-31T15:15:02.000Z
# Copyright (c) 2020 PaddlePaddle 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 ap...
35.934028
122
0.555996
5e091d2b5ed8ce4184e6fcd07c64e73d85976f17
5,313
py
Python
tests/core/test_results.py
ameliatqy/pytorch-lightning
ca18e11f6efe822098c79e7d9124b08a55bcd908
[ "Apache-2.0" ]
null
null
null
tests/core/test_results.py
ameliatqy/pytorch-lightning
ca18e11f6efe822098c79e7d9124b08a55bcd908
[ "Apache-2.0" ]
null
null
null
tests/core/test_results.py
ameliatqy/pytorch-lightning
ca18e11f6efe822098c79e7d9124b08a55bcd908
[ "Apache-2.0" ]
null
null
null
import sys from pathlib import Path import pytest import torch import torch.distributed as dist import torch.multiprocessing as mp from pytorch_lightning import Trainer, seed_everything from pytorch_lightning.core.step_result import Result, TrainResult, EvalResult import tests.base.develop_utils as tutils from tests....
30.016949
149
0.675325
919f7c3181b654b66f6876d0e9177ea641dfb488
3,554
py
Python
api/stops.py
TiltShiftNL/tourbuzz-geo-api
133cd723e1885d763247b42876b58c58735be820
[ "MIT" ]
null
null
null
api/stops.py
TiltShiftNL/tourbuzz-geo-api
133cd723e1885d763247b42876b58c58735be820
[ "MIT" ]
1
2020-07-28T09:14:01.000Z
2020-07-28T10:14:55.000Z
api/stops.py
TiltShiftNL/tourbuzz-geo-api
133cd723e1885d763247b42876b58c58735be820
[ "MIT" ]
null
null
null
import json from .models import DbStop from .database import SessionLocal, engine from .settings import settings from geoalchemy2 import func def get_base_query(): db = SessionLocal() return db.query( DbStop.id, DbStop.source_url, DbStop.source_name, DbStop.source_id, D...
28.206349
88
0.481711
c14a644baea3af34d73c8492fc38398c340e8c86
166
py
Python
info/urls.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
2
2021-04-25T07:01:01.000Z
2021-05-07T10:17:26.000Z
info/urls.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
null
null
null
info/urls.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
null
null
null
from django.urls import path, include from .views import ( basic_variable_view, ) urlpatterns = [ path('<int:symbol>/', basic_variable_view, name='info'), ]
18.444444
60
0.698795
72cc7e4d231809b3f0c8ae9421cd941f2c6054d5
15,979
py
Python
src/aleph/chains/common.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
src/aleph/chains/common.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
src/aleph/chains/common.py
aleph-im/py-aleph
a18beb8b4eba36887ca85054ed2471c3680bdfde
[ "MIT" ]
null
null
null
import asyncio import json import logging from dataclasses import asdict from enum import IntEnum from typing import Dict, Optional, Tuple, List from aleph_message.models import MessageType, ItemType from bson import ObjectId from pymongo import UpdateOne from aleph.config import get_config from aleph.exceptions impo...
35.827354
88
0.610489
ae031947aa305d704ac5713b165fe51ba01c3a70
1,870
py
Python
app/models.py
andyhoang7/flaskFBlogin
773b85842eb0e4ab6c0671402058a3cc808b3063
[ "MIT" ]
null
null
null
app/models.py
andyhoang7/flaskFBlogin
773b85842eb0e4ab6c0671402058a3cc808b3063
[ "MIT" ]
null
null
null
app/models.py
andyhoang7/flaskFBlogin
773b85842eb0e4ab6c0671402058a3cc808b3063
[ "MIT" ]
null
null
null
from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager, UserMixin from flask_dance.consumer.storage.sqla import OAuthConsumerMixin db = SQLAlchemy() class User(UserMixin, db.Model): __tablename__="users" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(256), ...
28.333333
83
0.703743
920441c303dc0b3ebd8084397e67015bde2180cb
6,286
py
Python
kubernetes/client/models/v1beta1_role_list.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_role_list.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1beta1_role_list.py
anemerovsky-essextec/python
6e40b9169b27c3f1f9422c0f6dd1cd9caef8d57c
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
29.650943
281
0.596246
75b5a85adfc584b7fe8b7f8b95d1161720cefce9
1,047
py
Python
Testing/urls.py
DudaEugen/JustTesting
7b62c7f5d1d918c3fe82bf00aff4009212427a6f
[ "MIT" ]
null
null
null
Testing/urls.py
DudaEugen/JustTesting
7b62c7f5d1d918c3fe82bf00aff4009212427a6f
[ "MIT" ]
null
null
null
Testing/urls.py
DudaEugen/JustTesting
7b62c7f5d1d918c3fe82bf00aff4009212427a6f
[ "MIT" ]
null
null
null
from django.conf.urls import url from .views import * urlpatterns = [ url(r'^start(?:=(?P<test_pk>\d+))?$', TestingSessionCreateView.as_view(), name='create testing session'), url(r'^session=(?P<pk>\d+)$', TestingView.as_view(), name='testing'), url(r'^session=(?P<pk>\d+)/close$', CloseTestingSessionView....
58.166667
109
0.646609
ac2c781e3e7704031454966ab93612199d134b7d
194
py
Python
empyror/config.py
GoogleGenius/empyror
c0a2db376e1e21eaa42ffda52b38ff5308e70c59
[ "Apache-2.0" ]
null
null
null
empyror/config.py
GoogleGenius/empyror
c0a2db376e1e21eaa42ffda52b38ff5308e70c59
[ "Apache-2.0" ]
null
null
null
empyror/config.py
GoogleGenius/empyror
c0a2db376e1e21eaa42ffda52b38ff5308e70c59
[ "Apache-2.0" ]
null
null
null
import os from dotenv import load_dotenv # type: ignore import hikari load_dotenv() TOKEN: str = os.environ["TOKEN"] GUILD_ID: hikari.Snowflake = hikari.Snowflake(os.environ["GUILD_ID"])
14.923077
69
0.747423
61622c0fa73510da21a8f448d471b45a079a17b1
46,877
py
Python
test_ghstack.py
pietern/ghstack
c524683caaa525a084a9f980868ce003213ed5e9
[ "MIT" ]
1
2020-06-07T02:30:21.000Z
2020-06-07T02:30:21.000Z
test_ghstack.py
pietern/ghstack
c524683caaa525a084a9f980868ce003213ed5e9
[ "MIT" ]
null
null
null
test_ghstack.py
pietern/ghstack
c524683caaa525a084a9f980868ce003213ed5e9
[ "MIT" ]
null
null
null
from __future__ import print_function import unittest import subprocess import os import shutil import tempfile import re import logging import sys import contextlib import io from typing import ClassVar, Dict, NewType, List, Tuple, Iterator import ghstack.expecttest as expecttest import ghstack.submit import ghstac...
27.607185
139
0.545022
d3a5607495bef8529749795e700e48b7bb9b6cd9
1,920
py
Python
billboard/app.py
setrofim/billboard
acb7d3e0a26c1c42def85a96ec33cd895c8a7ead
[ "BSD-3-Clause" ]
1
2018-08-01T13:03:22.000Z
2018-08-01T13:03:22.000Z
billboard/app.py
setrofim/billboard
acb7d3e0a26c1c42def85a96ec33cd895c8a7ead
[ "BSD-3-Clause" ]
2
2016-04-21T14:11:28.000Z
2018-06-28T15:05:59.000Z
billboard/app.py
setrofim/billboard
acb7d3e0a26c1c42def85a96ec33cd895c8a7ead
[ "BSD-3-Clause" ]
2
2017-02-26T17:30:11.000Z
2018-06-29T15:35:14.000Z
import os import sys import argparse import signal import tempfile import logging from PyQt4.QtGui import QApplication from billboard.billboard import Billboard from billboard.display import BillboardDisplay from billboard.server import Server from billboard.sources.reddit import RedditSource def parse_args(): ...
29.538462
96
0.614063
e45c50cb815c85c6891c49a5bb267e0b6f87628d
352
py
Python
configs/deeplabv3/deeplabv3_r50a-d8_512x512_20k_sn6_sar_pro.py
yoyoyoohh/spacenet6
57829afb6a642d96c30c42434929080b6d927fb4
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3/deeplabv3_r50a-d8_512x512_20k_sn6_sar_pro.py
yoyoyoohh/spacenet6
57829afb6a642d96c30c42434929080b6d927fb4
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3/deeplabv3_r50a-d8_512x512_20k_sn6_sar_pro.py
yoyoyoohh/spacenet6
57829afb6a642d96c30c42434929080b6d927fb4
[ "Apache-2.0" ]
null
null
null
''' Author: Shuailin Chen Created Date: 2021-09-14 Last Modified: 2021-09-25 content: ''' _base_ = [ '../_base_/models/deeplabv3_r50a-d8.py', '../_base_/datasets/sn6_sar_pro.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_20k.py' ] model = dict( decode_head=dict(num_classes=2), auxi...
25.142857
72
0.696023
0e179db186b5c9e67e4de1145e642ef8f6563b9c
8,632
py
Python
chainer/functions/normalization/batch_renormalization.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
2
2018-02-05T07:25:48.000Z
2018-08-28T20:29:45.000Z
chainer/functions/normalization/batch_renormalization.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
null
null
null
chainer/functions/normalization/batch_renormalization.py
takeratta/chainer
02686e98cd6dc8f20979a1f3a79130f076cbfc6c
[ "MIT" ]
1
2018-08-23T01:34:57.000Z
2018-08-23T01:34:57.000Z
import numpy from chainer import configuration from chainer import cuda from chainer import function from chainer.utils import type_check def _as4darray(arr): if arr.ndim == 0: return arr.reshape(1, 1, 1, 1) elif arr.ndim == 4: return arr else: return arr.reshape(arr.shape[0], -1...
38.19469
82
0.542632
2b18cdeebcb568cfd90558ce253bf78195162f62
4,450
py
Python
branches/g3d-8.0-64ffmpeg-win/bin/ice/copyifnewer.py
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/bin/ice/copyifnewer.py
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
branches/g3d-8.0-64ffmpeg-win/bin/ice/copyifnewer.py
brown-ccv/VRG3D
0854348453ac150b27a8ae89024ef57360f15d45
[ "BSD-3-Clause" ]
null
null
null
# copyifnewer.py # # import re, string from utils import * _excludeDirPatterns = \ ['^\.',\ '^#',\ '~$',\ '^\.svn$',\ '^\.git$',\ '^CVS$', \ '^Debug$', \ '^Release$', \ '^graveyard$', \ '^tmp$', \ '^temp$', \ '^\.icompile-temp$', \ '^\.ice-tmp$', \ ...
26.807229
98
0.577079
7ce9bb2076104e2c919ca2bace341dc0e69a68b0
1,059
py
Python
ppci/arch/target_list.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
null
null
null
ppci/arch/target_list.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
null
null
null
ppci/arch/target_list.py
rakati/ppci-mirror
8f5b0282fd1122d7c389b39c86fcf5d9352b7bb2
[ "BSD-2-Clause" ]
1
2021-11-23T14:23:04.000Z
2021-11-23T14:23:04.000Z
""" Contains a list of instantiated targets. """ from functools import lru_cache from .arm import ArmArch from .avr import AvrArch from .example import ExampleArch from .msp430 import Msp430Arch from .x86_64 import X86_64Arch from .m68k import M68kArch from .mcs6500 import Mcs6500Arch from .mips import MipsArch from ....
22.0625
75
0.734655
b1a623842a392ffea61905da6c2dfa2e9ab44fbb
7,439
py
Python
leo/modes/makefile.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
1,550
2015-01-14T16:30:37.000Z
2022-03-31T08:55:58.000Z
leo/modes/makefile.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
2,009
2015-01-13T16:28:52.000Z
2022-03-31T18:21:48.000Z
leo/modes/makefile.py
ATikhonov2/leo-editor
225aac990a9b2804aaa9dea29574d6e072e30474
[ "MIT" ]
200
2015-01-05T15:07:41.000Z
2022-03-07T17:05:01.000Z
# Leo colorizer control file for makefile mode. # This file is in the public domain. # Properties for makefile mode. properties = { "lineComment": "#", } # Attributes dict for makefile_main ruleset. makefile_main_attributes_dict = { "default": "null", "digit_re": "", "escape": "\\", "...
33.062222
96
0.631671
3955122092b4512cdfa321095167ee5998bf67a7
152
py
Python
biosiglive/__init__.py
Fiverdug/biosiglive
72c3c2873fa483aeb4c782cfb1c7e4c339e2ee82
[ "MIT" ]
null
null
null
biosiglive/__init__.py
Fiverdug/biosiglive
72c3c2873fa483aeb4c782cfb1c7e4c339e2ee82
[ "MIT" ]
null
null
null
biosiglive/__init__.py
Fiverdug/biosiglive
72c3c2873fa483aeb4c782cfb1c7e4c339e2ee82
[ "MIT" ]
null
null
null
from . import client from . import data_plot from . import data_processing from . import live_data_pytrigno from . import live_mvc from . import server
21.714286
32
0.802632
4cf43c134cd4576ec677dbe72e9a1597f8853db4
25,049
py
Python
ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
hmcl/ambari-apache
87423d64f54d896c62d1a9245eb03a97763e35a4
[ "Apache-2.0" ]
3
2019-06-20T11:49:36.000Z
2020-12-11T10:44:29.000Z
ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
null
null
null
ambari-server/src/test/python/stacks/2.0.6/FLUME/test_flume.py
cas-packone/ambari-chs
68033fbd4b810b6642853f2ad9128cbbd4e0cb7b
[ "Apache-2.0" ]
1
2019-03-20T08:36:17.000Z
2019-03-20T08:36:17.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")...
41.958124
414
0.590802
0d0908f4e9c040ec3221f0a55794e2592868cfb1
12,225
py
Python
tfhub_dev/tools/validator_test.py
tsadr/hub
5186d911de9bce0adee28993fa396e7392fb1c18
[ "Apache-2.0" ]
null
null
null
tfhub_dev/tools/validator_test.py
tsadr/hub
5186d911de9bce0adee28993fa396e7392fb1c18
[ "Apache-2.0" ]
null
null
null
tfhub_dev/tools/validator_test.py
tsadr/hub
5186d911de9bce0adee28993fa396e7392fb1c18
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Hub 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 app...
36.933535
80
0.695051
1adf83d4ac3d58a455126167c9630c8a1f95e402
2,400
py
Python
models/patchnce.py
bronemos/contrastive-unpaired-translation-focal
50b9008d08a86439ede081a910d02df5da8e32df
[ "BSD-3-Clause" ]
null
null
null
models/patchnce.py
bronemos/contrastive-unpaired-translation-focal
50b9008d08a86439ede081a910d02df5da8e32df
[ "BSD-3-Clause" ]
null
null
null
models/patchnce.py
bronemos/contrastive-unpaired-translation-focal
50b9008d08a86439ede081a910d02df5da8e32df
[ "BSD-3-Clause" ]
null
null
null
from packaging import version import torch from torch import nn from .focal_loss import FocalLoss class PatchNCELoss(nn.Module): def __init__(self, opt): super().__init__() self.opt = opt self.cross_entropy_loss = torch.nn.CrossEntropyLoss(reduction="none") self.focal_loss = Focal...
36.363636
90
0.637917
c3d53838dee8952fb86cf031499d958cbd07cfb5
1,918
py
Python
chinilla/types/peer_info.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/types/peer_info.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
chinilla/types/peer_info.py
Chinilla/chinilla-blockchain
59bebcf94e65b74fbb53ad4929bbd79cb28be619
[ "Apache-2.0" ]
null
null
null
import ipaddress from dataclasses import dataclass from typing import Optional, Union from chinilla.util.ints import uint16, uint64 from chinilla.util.streamable import Streamable, streamable @streamable @dataclass(frozen=True) class PeerInfo(Streamable): host: str port: uint16 def is_valid(self, allow_...
28.205882
97
0.601668
c3e005bb70b3a30b736192894faf8abfa0cc1c7f
3,205
py
Python
StockAnalysisSystem/interface/interface_rest.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
138
2018-01-03T03:32:49.000Z
2022-03-12T02:57:46.000Z
StockAnalysisSystem/interface/interface_rest.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
9
2018-01-01T03:16:24.000Z
2021-05-27T09:57:24.000Z
StockAnalysisSystem/interface/interface_rest.py
SleepySoft/StockAnalysisSystem
75f95738831614f7946f85d09118e447f7ac6dc7
[ "Apache-2.0" ]
50
2019-08-05T01:02:30.000Z
2022-03-07T00:52:14.000Z
import requests import datetime import traceback import pandas as pd from functools import partial from StockAnalysisSystem.core.Utility.JsonSerializer import serialize, deserialize import StockAnalysisSystem.core.Utility.JsonSerializerImpl # ----------------------------------------------------------------------------...
32.373737
120
0.541966
916edc55c2630f6dbc930027460c0392b3c1f30f
2,219
py
Python
prettyqt/custom_widgets/elidedlabel.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
7
2019-05-01T01:34:36.000Z
2022-03-08T02:24:14.000Z
prettyqt/custom_widgets/elidedlabel.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
141
2019-04-16T11:22:01.000Z
2021-04-14T15:12:36.000Z
prettyqt/custom_widgets/elidedlabel.py
phil65/PrettyQt
26327670c46caa039c9bd15cb17a35ef5ad72e6c
[ "MIT" ]
5
2019-04-17T11:48:19.000Z
2021-11-21T10:30:19.000Z
from __future__ import annotations from prettyqt import core, gui, widgets from prettyqt.qt import QtWidgets class ElidedLabel(widgets.Frame): elision_changed = core.Signal(bool) def __init__( self, text: str = "", parent: QtWidgets.QWidget | None = None, ): super().__ini...
31.253521
87
0.560613
babef387c83b5edd6d41a2fbc4731b10d41016d5
333
py
Python
src/interface_py/h2o4gpu/solvers/daal_solver/utils/helper_module.py
pnijhara/h2o4gpu
6257112c134136471420b68241f57190a445b67d
[ "Apache-2.0" ]
458
2017-09-20T08:32:10.000Z
2022-02-28T18:40:57.000Z
src/interface_py/h2o4gpu/solvers/daal_solver/utils/helper_module.py
Jun-NIBS/h2o4gpu
9885416deb3285f5d0f33023d6c07373ac4fc0b7
[ "Apache-2.0" ]
461
2017-09-20T11:39:04.000Z
2021-11-21T15:51:42.000Z
src/interface_py/h2o4gpu/solvers/daal_solver/utils/helper_module.py
Jun-NIBS/h2o4gpu
9885416deb3285f5d0f33023d6c07373ac4fc0b7
[ "Apache-2.0" ]
114
2017-09-20T12:08:07.000Z
2021-11-29T14:15:40.000Z
# -*- encoding: utf-8 -*- """ :copyright: 2017-2018 H2O.ai, Inc. :license: Apache License Version 2.0 (see LICENSE for details) """ from functools import wraps def print_name(func): @wraps(func) def full(*args, **kwargs): print("**-> {}".format(func.__name__)) return func(*args, **kwargs) ...
23.785714
64
0.618619
24ce653bbe6a608abfa4cf571516b19725b550ec
40,747
py
Python
model/DFSegX11.py
Ethan-ye/Efficient-Segmentation-Networks
27272e43126a507a6d93b21cd2372f5432f61237
[ "MIT" ]
null
null
null
model/DFSegX11.py
Ethan-ye/Efficient-Segmentation-Networks
27272e43126a507a6d93b21cd2372f5432f61237
[ "MIT" ]
null
null
null
model/DFSegX11.py
Ethan-ye/Efficient-Segmentation-Networks
27272e43126a507a6d93b21cd2372f5432f61237
[ "MIT" ]
null
null
null
# *- coding: utf-8 -* ########################################################################### # Partial order pruning: for best speed/accuracy trade-off in neural architecture search # https://github.com/lixincn2015/Partial-Order-Pruning ########################################################################### i...
56.829847
319
0.543206
6fadf40ca22ddda121c1109e8ec358c31fb3506f
18,443
py
Python
lib/blockchain.py
quietnan/electrum-ftc
5f72cadd777d80a7235e4860589c425287a67fe9
[ "MIT" ]
null
null
null
lib/blockchain.py
quietnan/electrum-ftc
5f72cadd777d80a7235e4860589c425287a67fe9
[ "MIT" ]
null
null
null
lib/blockchain.py
quietnan/electrum-ftc
5f72cadd777d80a7235e4860589c425287a67fe9
[ "MIT" ]
null
null
null
# Electrum - lightweight Bitcoin client # Copyright (C) 2012 thomasv@ecdsa.org # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without limitation the rights...
40.180828
140
0.626091
4cf50e7ee87edb0a771dd0ba8b4947406c912d59
54,440
py
Python
salvia/wallet/wallet_state_manager.py
mikando/salvia-blockchain
02181d0b5a063374f01eea951570dbc661bddc34
[ "Apache-2.0" ]
null
null
null
salvia/wallet/wallet_state_manager.py
mikando/salvia-blockchain
02181d0b5a063374f01eea951570dbc661bddc34
[ "Apache-2.0" ]
null
null
null
salvia/wallet/wallet_state_manager.py
mikando/salvia-blockchain
02181d0b5a063374f01eea951570dbc661bddc34
[ "Apache-2.0" ]
null
null
null
import asyncio import base64 import json import logging import time from collections import defaultdict from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Set, Tuple import aiosqlite from blspy import AugSchemeMPL, G1Element, PrivateKey from chiabip158 import PyBIP158 from cryptography.fe...
42.899921
119
0.636536
a493eeac430bf5d7292a96035c3bdc9679c43550
36,327
py
Python
trac/wiki/tests/wikisyntax.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/wikisyntax.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
trac/wiki/tests/wikisyntax.py
clubturbo/Trac-1.4.2
254ce54a3c2fb86b4f31810ddeabbd4ff8b54a78
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2020 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at https://trac.edgewall.org/wiki/TracLicense. # # This soft...
45.35206
347
0.633936
734529ea0b7a3abd2db8e2192f628ba6a86ecfb1
6,858
py
Python
examples/qaoa/parse_raw_sat.py
sourcery-ai-bot/professional-services
0dd87e18560894bc68c05b580c6c9f2322eabc47
[ "Apache-2.0" ]
null
null
null
examples/qaoa/parse_raw_sat.py
sourcery-ai-bot/professional-services
0dd87e18560894bc68c05b580c6c9f2322eabc47
[ "Apache-2.0" ]
null
null
null
examples/qaoa/parse_raw_sat.py
sourcery-ai-bot/professional-services
0dd87e18560894bc68c05b580c6c9f2322eabc47
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
31.315068
79
0.595071
a688898f4a43b33fd3f07cda12144b84829e451f
23,545
py
Python
src/finn/custom_op/fpgadataflow/__init__.py
vision-agh/finn_fork_pp_lidar
a40bd59d3f42a246b0d06329208b84bcc7be8a3e
[ "BSD-3-Clause" ]
1
2021-01-29T14:39:48.000Z
2021-01-29T14:39:48.000Z
src/finn/custom_op/fpgadataflow/__init__.py
vision-agh/finn_fork_pp_lidar
a40bd59d3f42a246b0d06329208b84bcc7be8a3e
[ "BSD-3-Clause" ]
null
null
null
src/finn/custom_op/fpgadataflow/__init__.py
vision-agh/finn_fork_pp_lidar
a40bd59d3f42a246b0d06329208b84bcc7be8a3e
[ "BSD-3-Clause" ]
1
2022-03-07T02:57:55.000Z
2022-03-07T02:57:55.000Z
# Copyright (c) 2020, Xilinx # 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 above copyright notice, this # list of conditions and the follow...
40.247863
89
0.640136
5c5cce6d9adaa4bcb55dbe5ec319111ae9b1ef18
2,940
py
Python
pymanopt/tools/autodiff/_tensorflow.py
Nehoroshiy/pymanopt
e0d45b6299c9e5fee21b2780954db6045afb878b
[ "BSD-3-Clause" ]
1
2021-11-08T11:30:49.000Z
2021-11-08T11:30:49.000Z
pymanopt/tools/autodiff/_tensorflow.py
thatdeep/pymanopt
e0d45b6299c9e5fee21b2780954db6045afb878b
[ "BSD-3-Clause" ]
null
null
null
pymanopt/tools/autodiff/_tensorflow.py
thatdeep/pymanopt
e0d45b6299c9e5fee21b2780954db6045afb878b
[ "BSD-3-Clause" ]
null
null
null
""" Module containing functions to differentiate functions using tensorflow. """ try: import tensorflow as tf from tensorflow.python.ops.gradients import _hessian_vector_product except ImportError: tf = None from warnings import warn from ._backend import Backend, assert_backend_available class Tensorfl...
30.625
78
0.584354
5581cd3dd132efe9cc3a64ad838cd98d5d601143
461
py
Python
data/scripts/templates/object/weapon/melee/polearm/shared_lance_lightsaber_01.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/weapon/melee/polearm/shared_lance_lightsaber_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/weapon/melee/polearm/shared_lance_lightsaber_01.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Weapon() result.template = "object/weapon/melee/polearm/shared_lance_lightsaber_01.iff" result.attribute_template...
27.117647
79
0.735358
5caaa49ed3c941c1fa8c44b84c358ec2f1b92d4b
882
py
Python
BuildSimHubAPI/measures/__init__.py
mostaphaRoudsari/buildsimhub_python_api
4a562a678fc2f9671f9fc62faae46b79c448a922
[ "MIT" ]
null
null
null
BuildSimHubAPI/measures/__init__.py
mostaphaRoudsari/buildsimhub_python_api
4a562a678fc2f9671f9fc62faae46b79c448a922
[ "MIT" ]
null
null
null
BuildSimHubAPI/measures/__init__.py
mostaphaRoudsari/buildsimhub_python_api
4a562a678fc2f9671f9fc62faae46b79c448a922
[ "MIT" ]
null
null
null
# not needed to import this module - hide it from the public # from BuildSimHubAPI.actions import ModelAction from .window_uvalue import WindowUValue from .window_shgc import WindowSHGC from .window_wall_ratio import WindowWallRatio from .wall_rvalue import WallRValue from .roof_rvalue import RoofRValue from .light_lp...
42
60
0.877551
c6b4d06d651a50061aae3c78a2f4d1b256b0dbfc
2,313
py
Python
utils/data_generator.py
nodamu/Car-Ticketing-Project
a1e38d6d0c844b03b62b6ed07aabc18934cc83f5
[ "Linux-OpenIB" ]
29
2019-07-22T01:57:42.000Z
2022-03-31T15:51:42.000Z
utils/data_generator.py
nodamu/Car-Ticketing-Project
a1e38d6d0c844b03b62b6ed07aabc18934cc83f5
[ "Linux-OpenIB" ]
6
2020-02-13T06:11:55.000Z
2021-06-17T18:13:08.000Z
utils/data_generator.py
nodamu/Car-Ticketing-Project
a1e38d6d0c844b03b62b6ed07aabc18934cc83f5
[ "Linux-OpenIB" ]
17
2019-09-19T09:56:16.000Z
2021-06-12T22:42:30.000Z
import numpy as np from threading import Semaphore, Thread from time import sleep from random import choice, randint from pdb import set_trace as pause class DataGenerator(object): def __init__( self, data, process_data_item_func, xshape, yshape, \ data_item_selector = choice, \ nthreads = 2, \ ...
22.90099
75
0.68396
744823f4de74587e3be2b669095496c9f29d0169
315
py
Python
tests/test_linear/test_variational_regression.py
ctgk/bayesian_playground
70c63910472a29e15a4fb98e30a34b9ee155152e
[ "MIT" ]
1
2020-10-17T19:09:32.000Z
2020-10-17T19:09:32.000Z
tests/test_linear/test_variational_regression.py
ctgk/bayesian
70c63910472a29e15a4fb98e30a34b9ee155152e
[ "MIT" ]
null
null
null
tests/test_linear/test_variational_regression.py
ctgk/bayesian
70c63910472a29e15a4fb98e30a34b9ee155152e
[ "MIT" ]
null
null
null
import numpy as np import pytest from bayesian.linear import VariationalRegression def test_fit(): model = VariationalRegression(1, 1, 100) model.fit([-1, 1], [-1, 1]) assert np.allclose(model.predict([-1, 1])[0], [-1, 1], rtol=0., atol=1e-2) if __name__ == "__main__": pytest.main([__file__])
21
78
0.657143
5a1802a406647a3627f8e217b02765c64fb0fdd1
336
py
Python
python3.7/app/main.py
brdhunga/uvicorn-gunicorn-fastapi-docker
a7ff8f5fd3e5b9a8a76ce74a7b1c03071a7dc8b1
[ "MIT" ]
null
null
null
python3.7/app/main.py
brdhunga/uvicorn-gunicorn-fastapi-docker
a7ff8f5fd3e5b9a8a76ce74a7b1c03071a7dc8b1
[ "MIT" ]
null
null
null
python3.7/app/main.py
brdhunga/uvicorn-gunicorn-fastapi-docker
a7ff8f5fd3e5b9a8a76ce74a7b1c03071a7dc8b1
[ "MIT" ]
null
null
null
import sys import asyncio from fastapi import FastAPI version = f"{sys.version_info.major}.{sys.version_info.minor}" app = FastAPI() @app.get("/") async def read_root(): await asyncio.sleep(7) message = f"Hello world! From FastAPI running on Uvicorn with Gunicorn. Using Python {version}" return {"mes...
18.666667
99
0.714286
86c0dd855cdc44058c3fbd7d4b0289900fa9f117
5,514
py
Python
ocdskingfisher/store.py
odscjames/rhs-alpha
3ad01aea09e4768210d16dea5afdec45adb80d89
[ "BSD-3-Clause" ]
null
null
null
ocdskingfisher/store.py
odscjames/rhs-alpha
3ad01aea09e4768210d16dea5afdec45adb80d89
[ "BSD-3-Clause" ]
null
null
null
ocdskingfisher/store.py
odscjames/rhs-alpha
3ad01aea09e4768210d16dea5afdec45adb80d89
[ "BSD-3-Clause" ]
null
null
null
import json from ocdskingfisher.database import DatabaseStore class Store: def __init__(self, config, database): self.config = config self.collection_id = None self.database = database def load_collection(self, collection_source, collection_data_version, collection_sample): s...
42.415385
133
0.566739
5c9af6a2a5eca3c4b85b521e56c4bc47addeefae
3,703
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/handlers/auth/recovery.py
thecoderstudio/cookiecutter-pyramid-api
b3122c0d98be7179bcf726c6527096c0327d7bb7
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/handlers/auth/recovery.py
thecoderstudio/cookiecutter-pyramid-api
b3122c0d98be7179bcf726c6527096c0327d7bb7
[ "MIT" ]
1
2021-12-17T15:10:21.000Z
2021-12-17T15:10:21.000Z
{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/handlers/auth/recovery.py
thecoderstudio/cookiecutter-pyramid-api
b3122c0d98be7179bcf726c6527096c0327d7bb7
[ "MIT" ]
1
2021-03-01T14:27:10.000Z
2021-03-01T14:27:10.000Z
import random import time from secrets import token_hex from pyramid.httpexceptions import HTTPCreated from pyramid.view import view_defaults from sqlalchemy.orm.exc import NoResultFound from {{cookiecutter.project_slug}}.handlers import view_config from {{cookiecutter.project_slug}}.handlers.auth import LoginHandler...
35.951456
92
0.719147
c4f2528af9c2d70ff5fd86fa2bfab554e730e0d0
236
py
Python
pysrc/__init__.py
uuosio/uuosk
505d93ebac9e158bf96c2420a7dc7ca84c73eea4
[ "MIT" ]
5
2021-03-01T10:46:32.000Z
2022-02-25T05:28:15.000Z
pysrc/__init__.py
uuosio/uuoskit
505d93ebac9e158bf96c2420a7dc7ca84c73eea4
[ "MIT" ]
2
2021-06-13T18:12:52.000Z
2022-02-26T02:59:26.000Z
pysrc/__init__.py
uuosio/uuoskit
505d93ebac9e158bf96c2420a7dc7ca84c73eea4
[ "MIT" ]
null
null
null
import os import sys from .http_client import HttpClient from .rpc_interface import RPCInterface, WalletClient from .chainapi_sync import ChainApi from uuoskit import _uuoskit __version__='1.0.4' _uuoskit.init() uuosapi = ChainApi()
18.153846
53
0.813559
69105b40ac3431c58d9711f315cf55dd4f4b8a35
29
py
Python
moyu_engine/config/__init__.py
MoYuStudio/MoYuEngine
7d9ab5c9cb268de0071e798a3288f0bbb651795e
[ "Apache-2.0" ]
2
2022-03-22T02:32:34.000Z
2022-03-22T02:32:43.000Z
moyu_engine/config/__init__.py
MoYuStudio/MoYuEngine
7d9ab5c9cb268de0071e798a3288f0bbb651795e
[ "Apache-2.0" ]
null
null
null
moyu_engine/config/__init__.py
MoYuStudio/MoYuEngine
7d9ab5c9cb268de0071e798a3288f0bbb651795e
[ "Apache-2.0" ]
null
null
null
from .global_config import *
14.5
28
0.793103
bf906b708f2a907d0ce4a0405ee3587df52b5352
2,431
py
Python
runner/ws_ingest/subscribe.py
abhid/helix
127d445a7a79ffc0c8a2a882784078bfa2b43e72
[ "BSD-3-Clause-Clear" ]
null
null
null
runner/ws_ingest/subscribe.py
abhid/helix
127d445a7a79ffc0c8a2a882784078bfa2b43e72
[ "BSD-3-Clause-Clear" ]
13
2020-02-29T06:07:34.000Z
2022-02-26T20:15:48.000Z
runner/ws_ingest/subscribe.py
abhid/helix
127d445a7a79ffc0c8a2a882784078bfa2b43e72
[ "BSD-3-Clause-Clear" ]
null
null
null
import asyncio from asyncio.tasks import FIRST_COMPLETED import ssl import json import sys import time from websockets import ConnectionClosed from ws_stomp import WebSocketStomp import redis import argparse def key_enter_callback(event): sys.stdin.readline() event.set() async def future_read_message(ws, futu...
41.20339
224
0.69313
0f5c21d2ac525e624337db26a330bed69c73e03b
1,279
py
Python
makelink.py
murattatar/Steemit-Manuel-Search-Tool
13d856fa175f4388d6a06d4666ebcb715d7745ff
[ "MIT" ]
null
null
null
makelink.py
murattatar/Steemit-Manuel-Search-Tool
13d856fa175f4388d6a06d4666ebcb715d7745ff
[ "MIT" ]
null
null
null
makelink.py
murattatar/Steemit-Manuel-Search-Tool
13d856fa175f4388d6a06d4666ebcb715d7745ff
[ "MIT" ]
null
null
null
######################################## ## Month names, November 2017 by Murat Tatar ## Baglanti fonksiyonu: https://forum.ubuntu-tr.net/index.php?topic=37782.msg453829#msg453829 ######################################## def MakeLink(word): list = {"ı": "i", "I": "i", "Ç": ...
26.102041
94
0.436278
0c51dcf3fdb890eda3cc107a0acbbbc652b1ebc0
6,051
py
Python
gluoncv/model_zoo/faster_rcnn/resnet50_v2a.py
leezu/gluon-cv
03ec37c7813da1845f7f287bba0452a7b95a3fa4
[ "Apache-2.0" ]
1
2019-01-26T23:55:59.000Z
2019-01-26T23:55:59.000Z
gluoncv/model_zoo/faster_rcnn/resnet50_v2a.py
leezu/gluon-cv
03ec37c7813da1845f7f287bba0452a7b95a3fa4
[ "Apache-2.0" ]
null
null
null
gluoncv/model_zoo/faster_rcnn/resnet50_v2a.py
leezu/gluon-cv
03ec37c7813da1845f7f287bba0452a7b95a3fa4
[ "Apache-2.0" ]
null
null
null
# pylint: disable=arguments-differ """Resnet50 v2a model which take original image with zero mean and uniform std.""" import mxnet as mx from mxnet.gluon import nn, HybridBlock __all__ = ['resnet50_v2a'] def _conv3x3(channels, stride, in_channels): """add conv 3x3 block.""" return nn.Conv2D(channels, kernel_s...
42.020833
97
0.603867
0a58f62a5b300a4a0785b7579f3dade4c6724d5f
14,144
py
Python
delta_cli.py
Yashwanthdantanoor1/SER516_Project-1
ca6213c20d5eb219b745eded4fa6e5ac54412826
[ "MIT" ]
1
2021-02-24T14:14:28.000Z
2021-02-24T14:14:28.000Z
delta_cli.py
Yashwanthdantanoor1/SER516_Project-1
ca6213c20d5eb219b745eded4fa6e5ac54412826
[ "MIT" ]
3
2022-02-25T05:02:59.000Z
2022-03-06T06:02:40.000Z
delta_cli.py
Yashwanthdantanoor1/SER516_Project-1
ca6213c20d5eb219b745eded4fa6e5ac54412826
[ "MIT" ]
2
2021-03-04T10:29:58.000Z
2022-01-31T06:33:19.000Z
import argparse import json import requests import time from cmd import Cmd from fastapi import status from pathlib import Path class MyPrompt(Cmd): prompt = 'planning_poker> ' intro = "Welcome to a nice game of Planning Poker!\nType ? to list commands" default_config_params = {"max_retries": 5, ...
36.737662
80
0.548713
af2e9b756a7ec250aefdf90c42c7fddcfa3ad298
4,666
py
Python
tests/layers/test_merge_layers.py
vishalbelsare/neupy
684313cdaddcad326f2169384fb15ec3aa29d991
[ "MIT" ]
null
null
null
tests/layers/test_merge_layers.py
vishalbelsare/neupy
684313cdaddcad326f2169384fb15ec3aa29d991
[ "MIT" ]
null
null
null
tests/layers/test_merge_layers.py
vishalbelsare/neupy
684313cdaddcad326f2169384fb15ec3aa29d991
[ "MIT" ]
null
null
null
import theano import theano.tensor as T import numpy as np from neupy import layers, init from neupy.utils import asfloat from neupy.exceptions import LayerConnectionError from base import BaseTestCase class ElementwiseTestCase(BaseTestCase): def test_elementwise_basic(self): elem_layer = layers.Element...
34.562963
76
0.644664
08881f915ef2d23f3256e3e3ce81006be77c4780
14,126
py
Python
pandas/core/indexes/numeric.py
zeitlinv/pandas
08d296f1278e08b407448c95086589e1d10285f9
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-08-18T11:17:41.000Z
2021-08-18T11:17:53.000Z
pandas/core/indexes/numeric.py
zeitlinv/pandas
08d296f1278e08b407448c95086589e1d10285f9
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-30T15:10:57.000Z
2021-08-30T15:10:57.000Z
pandas/core/indexes/numeric.py
zeitlinv/pandas
08d296f1278e08b407448c95086589e1d10285f9
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2021-08-30T14:37:26.000Z
2021-08-30T14:37:26.000Z
from __future__ import annotations from typing import ( Callable, Hashable, ) import warnings import numpy as np from pandas._libs import ( index as libindex, lib, ) from pandas._typing import ( Dtype, DtypeObj, ) from pandas.util._decorators import ( cache_readonly, doc, ) from pand...
32.473563
87
0.609514
fecb699e11482b5370595411b7fe70f921e358b4
339
py
Python
packages/PIPS/validation/Terapix/alphablending.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
51
2015-01-31T01:51:39.000Z
2022-02-18T02:01:50.000Z
packages/PIPS/validation/Terapix/alphablending.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
7
2017-05-29T09:29:00.000Z
2019-03-11T16:01:39.000Z
packages/PIPS/validation/Terapix/alphablending.py
DVSR1966/par4all
86b33ca9da736e832b568c5637a2381f360f1996
[ "MIT" ]
12
2015-03-26T08:05:38.000Z
2022-02-18T02:01:51.000Z
from __future__ import with_statement # this is to work with python2.5 import terapyps from pyps import workspace workspace.delete("alphablending") with terapyps.workspace("alphablending.c", name="alphablending", deleteOnClose=False) as w: for f in w.fun: f.terapix_code_generation(debug=True) # w.compile...
37.666667
91
0.766962
dd2cf44203c6b4a0c3d6a9e9e5ac39716d3a1aaf
4,258
py
Python
djstripe/management/commands/djstripe_process_events.py
omidraha/dj-stripe
5785513e88de7e4648e52723d219ed82ce82cfe2
[ "MIT" ]
null
null
null
djstripe/management/commands/djstripe_process_events.py
omidraha/dj-stripe
5785513e88de7e4648e52723d219ed82ce82cfe2
[ "MIT" ]
null
null
null
djstripe/management/commands/djstripe_process_events.py
omidraha/dj-stripe
5785513e88de7e4648e52723d219ed82ce82cfe2
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand from ... import models from ...mixins import VerbosityAwareOutputMixin from ...settings import djstripe_settings class Command(VerbosityAwareOutputMixin, BaseCommand): """Command to process all Events. Optional arguments are provided to limit the number of...
36.393162
87
0.581259
995d2e612ca2ece917f6f767aab82e839eaf62a0
24,448
py
Python
research/object_detection/protos/faster_rcnn_pb2.py
janzkyle23/models
a8ae09e23d309f8893619387a7133bcc4db3d8a9
[ "Apache-2.0" ]
5
2020-01-22T15:53:06.000Z
2021-10-05T02:45:26.000Z
research/object_detection/protos/faster_rcnn_pb2.py
janzkyle23/models
a8ae09e23d309f8893619387a7133bcc4db3d8a9
[ "Apache-2.0" ]
6
2020-06-08T14:35:41.000Z
2022-02-10T01:52:40.000Z
research/object_detection/protos/faster_rcnn_pb2.py
janzkyle23/models
a8ae09e23d309f8893619387a7133bcc4db3d8a9
[ "Apache-2.0" ]
7
2020-03-30T12:22:11.000Z
2021-09-18T14:06:22.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/faster_rcnn.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf...
60.514851
3,525
0.780023
ab33c48fcc05959299f6199a080330f336eb5098
917
py
Python
lec5.py
A-Glavin/ia241-github
c8371d2cdcceac0fa146b798caafc4d2db9c7e74
[ "MIT" ]
null
null
null
lec5.py
A-Glavin/ia241-github
c8371d2cdcceac0fa146b798caafc4d2db9c7e74
[ "MIT" ]
null
null
null
lec5.py
A-Glavin/ia241-github
c8371d2cdcceac0fa146b798caafc4d2db9c7e74
[ "MIT" ]
null
null
null
''' lec5 if statement ''' import this print( 2+ 1) print([1,2,3, 4,5,6]) m = 1+\ 2 print(m) a= [1,2,3] b= [1,2,3,] print(id([1, 2, 3])) print(id(a)) print(id(b)) print(a is b) print(a==b) x = None print(id(x)) print(id(None)) print(x is None) print(x == None) y = [] pri...
10.54023
28
0.522356
68946bc037eb655c8a3a25dd801402047731c7cb
2,932
py
Python
ivy/functional/backends/numpy/__init__.py
RitujaPawas/ivy
595788507aca609e868cb3d17edd815463af28e4
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/numpy/__init__.py
RitujaPawas/ivy
595788507aca609e868cb3d17edd815463af28e4
[ "Apache-2.0" ]
null
null
null
ivy/functional/backends/numpy/__init__.py
RitujaPawas/ivy
595788507aca609e868cb3d17edd815463af28e4
[ "Apache-2.0" ]
null
null
null
# global import sys import numpy as np # local import ivy # noinspection PyUnresolvedReferences use = ivy.backend_handler.ContextManager(sys.modules[__name__]) NativeArray = np.ndarray NativeVariable = np.ndarray NativeDevice = str NativeDtype = np.dtype # data types int8 = ivy.IntDtype("int8") int16 = ivy.IntDtype...
21.718519
77
0.723738
d4dc12b31063b67d34473c2f2db4240f9785ddf0
8,198
py
Python
QCA4020_SDK/target/sectools/qdn/sectools.py
r8d8/lastlock
78c02e5fbb129b1bc4147bd55eec2882267d7e87
[ "Apache-2.0" ]
null
null
null
QCA4020_SDK/target/sectools/qdn/sectools.py
r8d8/lastlock
78c02e5fbb129b1bc4147bd55eec2882267d7e87
[ "Apache-2.0" ]
null
null
null
QCA4020_SDK/target/sectools/qdn/sectools.py
r8d8/lastlock
78c02e5fbb129b1bc4147bd55eec2882267d7e87
[ "Apache-2.0" ]
null
null
null
# =============================================================================== # # Copyright (c) 2013-2018 Qualcomm Technologies, Inc. # All Rights Reserved. # Copyright (c) 2018 Qualcomm Technologies, Inc. # All rights reserved. # Redistribution and use in source and binary forms, with or without modification, are ...
38.130233
149
0.664064
a4e74801f0e174743bf232e97dbdd268a0b10de0
6,422
py
Python
spec_pythonizer/minimal_ssz.py
hwwhww/research
4bde287aae017cd93fa936f587f21cddcc7c4129
[ "MIT" ]
1
2020-07-22T14:50:53.000Z
2020-07-22T14:50:53.000Z
spec_pythonizer/minimal_ssz.py
hwwhww/research
4bde287aae017cd93fa936f587f21cddcc7c4129
[ "MIT" ]
null
null
null
spec_pythonizer/minimal_ssz.py
hwwhww/research
4bde287aae017cd93fa936f587f21cddcc7c4129
[ "MIT" ]
null
null
null
from hashlib import sha256 def hash(x): return sha256(x).digest() BYTES_PER_CHUNK = 32 BYTES_PER_LENGTH_PREFIX = 4 ZERO_CHUNK = b'\x00' * BYTES_PER_CHUNK def SSZType(fields): class SSZObject(): def __init__(self, **kwargs): for f in fields: if f not in kwargs: ...
36.908046
132
0.625195
53299ea2815ea7f31b7a726384972e5c0bd0017a
1,376
py
Python
neutron/plugins/vmware/extensions/nvp_networkgw.py
yagosys/neutron
005fec677c3bf8b2aa0df68c4aedc2b708ec7caf
[ "Apache-2.0" ]
1
2016-01-13T14:29:07.000Z
2016-01-13T14:29:07.000Z
neutron/plugins/vmware/extensions/nvp_networkgw.py
yagosys/neutron
005fec677c3bf8b2aa0df68c4aedc2b708ec7caf
[ "Apache-2.0" ]
null
null
null
neutron/plugins/vmware/extensions/nvp_networkgw.py
yagosys/neutron
005fec677c3bf8b2aa0df68c4aedc2b708ec7caf
[ "Apache-2.0" ]
3
2015-04-03T08:47:02.000Z
2020-02-05T10:40:45.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 VMware, Inc. # 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/lic...
32
79
0.706395