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
0d5dc684691063784e6ac984f160e9b545454def
4,565
py
Python
ppr-api/tests/unit/models/test_utils.py
pwei1018/ppr
1fdd2f1ad33217045404d7b872d9fad41a4c7da6
[ "Apache-2.0" ]
null
null
null
ppr-api/tests/unit/models/test_utils.py
pwei1018/ppr
1fdd2f1ad33217045404d7b872d9fad41a4c7da6
[ "Apache-2.0" ]
null
null
null
ppr-api/tests/unit/models/test_utils.py
pwei1018/ppr
1fdd2f1ad33217045404d7b872d9fad41a4c7da6
[ "Apache-2.0" ]
null
null
null
# Copyright © 2019 Province of British Columbia # # 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 agr...
40.758929
118
0.718072
0
0
0
0
0
0
0
0
1,600
0.350416
0d5ddf3b2dc2c5628ef140f9b8e0527e81268a19
4,292
py
Python
code.py
ChampLucky/olympic-hero
da8c92f87e9c4c9aabc4246e2e6eab5124c2517d
[ "MIT" ]
null
null
null
code.py
ChampLucky/olympic-hero
da8c92f87e9c4c9aabc4246e2e6eab5124c2517d
[ "MIT" ]
null
null
null
code.py
ChampLucky/olympic-hero
da8c92f87e9c4c9aabc4246e2e6eab5124c2517d
[ "MIT" ]
null
null
null
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #Path of the file data=pd.read_csv(path) data=data.rename(columns={"Total":"Total_Medals"}) data.head(10) ...
26.658385
753
0.602982
0
0
0
0
0
0
0
0
1,448
0.337372
0d5dfe3070bc1579ce7d09d768db26619dbfc6ac
704
py
Python
atester/tester.py
guchengxi1994/easy-api-tester
c77e4b599d3ff4ac44966b3cae34ad551b648b03
[ "MIT" ]
2
2021-08-04T00:35:16.000Z
2021-12-16T09:23:56.000Z
atester/tester.py
guchengxi1994/easy-api-tester
c77e4b599d3ff4ac44966b3cae34ad551b648b03
[ "MIT" ]
null
null
null
atester/tester.py
guchengxi1994/easy-api-tester
c77e4b599d3ff4ac44966b3cae34ad551b648b03
[ "MIT" ]
null
null
null
import time class Tester: def __init__(self, url, api: str = "", name: str = "", params: str = "", filepath: str = "") -> None: self.url = url self.api = api self.name = name self.params = params ...
24.275862
65
0.454545
691
0.981534
0
0
0
0
0
0
41
0.058239
0d6071d50184dd01af4d40afcaa5d56fe50daa79
430
py
Python
scripts/A-A/ctsslmate.py
warsocket/recon
4e26086b2c0338db980a0a3e736c499acf51ef15
[ "Apache-2.0" ]
null
null
null
scripts/A-A/ctsslmate.py
warsocket/recon
4e26086b2c0338db980a0a3e736c499acf51ef15
[ "Apache-2.0" ]
null
null
null
scripts/A-A/ctsslmate.py
warsocket/recon
4e26086b2c0338db980a0a3e736c499acf51ef15
[ "Apache-2.0" ]
1
2018-02-23T13:37:59.000Z
2018-02-23T13:37:59.000Z
#!/usr/bin/env python import requests import sys domains = set() for line in sys.stdin: domain = line.strip() certs = requests.get("https://certspotter.com/api/v0/certs?domain=%s" % domain).json() try: for cert in certs: for domain in cert["dns_names"]: domain = domain....
21.5
90
0.574419
0
0
0
0
0
0
0
0
86
0.2
0d61278643c82f3a1673a8a1cfd11ed2cb72fea1
9,731
py
Python
omnibot/services/slack/message.py
troybots/omnibot
99f93256154d241a0cd76a514fd8b2a245af3f0f
[ "Apache-2.0" ]
72
2019-11-21T00:02:18.000Z
2022-01-20T02:23:09.000Z
omnibot/services/slack/message.py
troybots/omnibot
99f93256154d241a0cd76a514fd8b2a245af3f0f
[ "Apache-2.0" ]
30
2019-11-22T04:24:57.000Z
2021-09-24T22:50:12.000Z
omnibot/services/slack/message.py
mogofinancial/omnibot
b62ccec1bf77b16a498ce5cd5f16c1812102f75b
[ "Apache-2.0" ]
6
2019-12-26T00:37:41.000Z
2021-04-09T04:21:17.000Z
from omnibot import logging from omnibot.services import stats from omnibot.services import slack from omnibot.services.slack import parser logger = logging.getLogger(__name__) class Message(object): """ Class for representing a parsed slack message. """ def __init__(self, bot, event, event_trace): ...
30.409375
78
0.546193
9,547
0.981091
0
0
2,070
0.212722
0
0
2,131
0.218991
0d61ee15897bf40f0a5f1b4383621a2d4209c39a
96
py
Python
fixture/_base.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
null
null
null
fixture/_base.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
1
2019-11-26T18:12:24.000Z
2019-11-26T18:12:24.000Z
fixture/_base.py
berpress/MT5WT
10826f974cd5aef14e8771e18ca0314f27a902e3
[ "Apache-2.0" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO) log = logging.getLogger("WebTerminal")
16
39
0.802083
0
0
0
0
0
0
0
0
13
0.135417
0d624fa0f65a72840354630ecb879c8f3430b061
18,980
py
Python
ryu/app/DIjkstra_switch_13.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
1
2019-03-27T10:18:35.000Z
2019-03-27T10:18:35.000Z
ryu/app/DIjkstra_switch_13.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
null
null
null
ryu/app/DIjkstra_switch_13.py
mgrex97/ryu_competition
d8fbf424accf16e4ff18acff552317441de75010
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright (C) 2011 Nippon Telegraph and Telephone 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 re...
43.53211
134
0.578346
17,660
0.930453
0
0
6,712
0.353635
0
0
3,151
0.166017
0d6498c824c3657f7aeb953f0131a759eba8a2fa
68
py
Python
cpo_pipeline/typing/__init__.py
DiDigsDNA/cpo-pipeline
4b3236ef4fe37e6efa38554e90f6d289d4f1f801
[ "MIT" ]
null
null
null
cpo_pipeline/typing/__init__.py
DiDigsDNA/cpo-pipeline
4b3236ef4fe37e6efa38554e90f6d289d4f1f801
[ "MIT" ]
31
2018-10-11T17:43:19.000Z
2019-06-14T19:26:26.000Z
cpo_pipeline/typing/__init__.py
DiDigsDNA/cpo-pipeline
4b3236ef4fe37e6efa38554e90f6d289d4f1f801
[ "MIT" ]
3
2018-11-15T18:04:36.000Z
2019-05-02T19:09:39.000Z
""" typing module """ from . import pipeline from . import parsers
9.714286
22
0.691176
0
0
0
0
0
0
0
0
21
0.308824
0d6637431650b1ab532cc70bbdb8ef04c6200f47
871
py
Python
gmit--exercise03--collatz--code-and-output--20180205d.py
g00364787/52167assessments
65318102196fbbf40b764cd189edc4e31963ecf5
[ "Apache-2.0" ]
null
null
null
gmit--exercise03--collatz--code-and-output--20180205d.py
g00364787/52167assessments
65318102196fbbf40b764cd189edc4e31963ecf5
[ "Apache-2.0" ]
null
null
null
gmit--exercise03--collatz--code-and-output--20180205d.py
g00364787/52167assessments
65318102196fbbf40b764cd189edc4e31963ecf5
[ "Apache-2.0" ]
null
null
null
# AUTHOR = PAUL KEARNEY # DATE = 2018-02-05 # STUDENT ID = G00364787 # EXERCISE 03 # # filename= gmit--exercise03--collatz--20180205d.py # # the Collatz conjecture print("The COLLATZ CONJECTURE") # define the variables num = "" x = 0 # obtain user input num = input("A start nummber: ") x = int(...
12.267606
52
0.543054
0
0
0
0
0
0
0
0
599
0.687715
0d67fd244c4c3feefcdec78169f64047738ccccd
8,064
py
Python
concon.py
nejucomo/concon
0302475a86d25c53cd6ef50b0e4f6279ea73090d
[ "MIT" ]
null
null
null
concon.py
nejucomo/concon
0302475a86d25c53cd6ef50b0e4f6279ea73090d
[ "MIT" ]
null
null
null
concon.py
nejucomo/concon
0302475a86d25c53cd6ef50b0e4f6279ea73090d
[ "MIT" ]
null
null
null
""" concon (CONstrained CONtainers) provides usefully constrained container subtypes as well as utilities for defining new constrained subtypes and append-only dict modification. There are two flavors of constraints: frozen and appendonly. The former prevents any modification and the latter prevents any modification ...
29.866667
79
0.63182
3,782
0.468998
0
0
293
0.036334
0
0
3,113
0.386037
0d688031a0fe7e0f5d4a206c1ace5f3e35d7e2b5
4,186
py
Python
algorithms/search/tests/student/test_bfs.py
Tebs-Lab/learn-graph-theory
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
[ "Unlicense" ]
9
2019-03-25T14:21:37.000Z
2021-12-06T19:19:49.000Z
algorithms/search/tests/student/test_bfs.py
Tebs-Lab/learn-graph-theory
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
[ "Unlicense" ]
null
null
null
algorithms/search/tests/student/test_bfs.py
Tebs-Lab/learn-graph-theory
d883fb3ee095a9b80eebc33fd19aee33b35c7bae
[ "Unlicense" ]
4
2019-08-02T20:32:00.000Z
2020-10-14T02:19:50.000Z
from graphs.reference_implementation import DirectedGraph, UndirectedGraph from algorithms.search.student_implementation import breadth_first_search def test_start_is_stop(): g = DirectedGraph() g.add_edge('a', 'b') g.add_edge('b', 'c') g.add_edge('b', 'd') g.add_edge('e', 'f') assert breadth_...
25.216867
93
0.543239
0
0
0
0
0
0
0
0
1,048
0.250358
0d6919c52d43e980747076e6a6d5776fe0cc110d
13,205
py
Python
levelTcricpr.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
levelTcricpr.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
levelTcricpr.py
scaralbi/dnaplotlib
a1fdd12ac3f3df1b16a0351402b8fe4f29b388d9
[ "MIT" ]
null
null
null
import math import dnaplotlib as dpl import matplotlib.pyplot as plt from matplotlib import gridspec from matplotlib.patches import Polygon, Ellipse, Wedge, Circle, PathPatch from matplotlib.path import Path from matplotlib.lines import Line2D from matplotlib.patheffects import Stroke import matplotlib.patches as patch...
38.054755
176
0.66649
0
0
0
0
0
0
0
0
4,376
0.33139
0d6993d1de4fca2fe18d6fada4d0381421cd473f
1,624
py
Python
program/convert_ui.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
program/convert_ui.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
program/convert_ui.py
Addision/ProtoExcelTool
17eaa08c08312e59c5a8f6114a121177ca65508a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : convertUI.py @Time : 2022/02/28 00:08:31 @Author : felix @Version : 1.0 @Contact : laijia2008@126.com @License : (C)Copyright 2021-2025, felix&lai @Desc : None ''' # here put the import lib import os import sys def ConvertUI(): ...
37.767442
83
0.613916
0
0
0
0
0
0
0
0
1,184
0.729064
0d6bbc4a1deb02ea0fe6dd3bf20550182a612637
71,145
py
Python
third_party/ray/core/generated/common_pb2.py
HuantWang/SUPERSONIC
bea7090e8bc4a54ed52495dd910ef946c88bec67
[ "CC-BY-4.0" ]
78
2022-02-02T00:23:02.000Z
2022-03-15T11:44:02.000Z
third_party/ray/core/generated/common_pb2.py
HuantWang/SUPERSONIC
bea7090e8bc4a54ed52495dd910ef946c88bec67
[ "CC-BY-4.0" ]
null
null
null
third_party/ray/core/generated/common_pb2.py
HuantWang/SUPERSONIC
bea7090e8bc4a54ed52495dd910ef946c88bec67
[ "CC-BY-4.0" ]
3
2022-01-30T05:10:14.000Z
2022-03-04T21:18:44.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: src/ray/protobuf/common.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor f...
46.591356
7,878
0.753813
0
0
0
0
0
0
0
0
20,425
0.28709
0d6c53671cbbb117ed649f7fa65fd1ba932a052e
2,506
py
Python
examples/django_app/sample/views.py
toonarmycaptain/pyflot
f2dde10709aeed39074fcce8172184b5cd8bfd66
[ "MIT" ]
3
2016-01-29T21:51:42.000Z
2021-05-17T02:43:17.000Z
examples/django_app/sample/views.py
toonarmycaptain/pyflot
f2dde10709aeed39074fcce8172184b5cd8bfd66
[ "MIT" ]
2
2015-12-09T17:58:08.000Z
2018-03-04T20:14:09.000Z
examples/django_app/sample/views.py
toonarmycaptain/pyflot
f2dde10709aeed39074fcce8172184b5cd8bfd66
[ "MIT" ]
5
2015-07-22T20:23:32.000Z
2021-05-17T02:45:28.000Z
import flot import math import datetime from django.views.generic import TemplateView class HomeView(TemplateView): template_name = 'home.html' def get_context_data(self, **kwargs): xy10 = flot.Series(x=flot.XVariable(points=range(1, 10)), y=flot.YVariable(points=range(1, 10...
48.192308
80
0.475658
2,418
0.964884
0
0
0
0
0
0
188
0.07502
0d6c93e9529dba1be9084932e1bd1a732f244d8b
1,097
py
Python
wolfbot/sensors/avg_color.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
1
2019-01-12T14:35:54.000Z
2019-01-12T14:35:54.000Z
wolfbot/sensors/avg_color.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
null
null
null
wolfbot/sensors/avg_color.py
sunil3590/TIM
5c8de80d631a4dea0f604091467dba7a7201de48
[ "MIT" ]
null
null
null
import color_sensor_ISL29125 from time import time cs = color_sensor_ISL29125.color_senser(1) if cs.valid_init: print "Valid color sensor" else : print "Color Sensor invalid" t0 = time() red_list = [] green_list = [] blue_list = [] for x in range(100): stat = cs.readStatus() if "" in stat: #"FLA...
27.425
66
0.649043
0
0
0
0
0
0
0
0
187
0.170465
0d6cfdc31d74171c37475fd7569d74d50b976420
24
py
Python
test.py
JohnnyBruh/Repository
f8bfb14737eee78fa8da400c7f6ddb21efda4baf
[ "CC0-1.0" ]
null
null
null
test.py
JohnnyBruh/Repository
f8bfb14737eee78fa8da400c7f6ddb21efda4baf
[ "CC0-1.0" ]
null
null
null
test.py
JohnnyBruh/Repository
f8bfb14737eee78fa8da400c7f6ddb21efda4baf
[ "CC0-1.0" ]
null
null
null
print("yaaaay") input()
12
16
0.666667
0
0
0
0
0
0
0
0
8
0.333333
0d6d890fdcce2be6554d36ca0ba885f23e87f40b
879
py
Python
getdata.py
krantirk/dash-120million-taxi-app
7c807b12ecb2e4a0fdf48bb7a627fadabbc0d6cc
[ "MIT" ]
103
2020-06-05T19:36:24.000Z
2022-03-26T21:07:22.000Z
getdata.py
krantirk/dash-120million-taxi-app
7c807b12ecb2e4a0fdf48bb7a627fadabbc0d6cc
[ "MIT" ]
4
2020-08-03T10:01:37.000Z
2021-07-10T21:06:17.000Z
getdata.py
krantirk/dash-120million-taxi-app
7c807b12ecb2e4a0fdf48bb7a627fadabbc0d6cc
[ "MIT" ]
38
2020-06-26T02:29:28.000Z
2022-03-25T03:42:47.000Z
import vaex import os # Open the main data taxi_path = 's3://vaex/taxi/yellow_taxi_2012_zones.hdf5?anon=true' # override the path, e.g. $ export TAXI_PATH=/data/taxi/yellow_taxi_2012_zones.hdf5 taxi_path = os.environ.get('TAXI_PATH', taxi_path) df_original = vaex.open(taxi_path) # Make sure the data is cached locally ...
33.807692
83
0.594994
0
0
0
0
0
0
0
0
454
0.516496
0d6e8c3d883e48ab73c44b0b33f085bbe1e9c3de
493
py
Python
commitsan/util.py
abusalimov/commitsan
5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e
[ "MIT" ]
null
null
null
commitsan/util.py
abusalimov/commitsan
5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e
[ "MIT" ]
null
null
null
commitsan/util.py
abusalimov/commitsan
5ff6ff970ed643bee52a132a8c4b84c1a0c80b7e
[ "MIT" ]
null
null
null
from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * def unique(iterable, key=id): """ List unique elements, preserving order. Remember all elements ever seen. """ return unique_values((key(element), element) for element in...
24.65
76
0.630832
0
0
159
0.322515
0
0
0
0
88
0.178499
0d700c7bc2b0f82c98abdf77a46fc878ff69dcbb
1,540
py
Python
topicextractor/__init__.py
kjchung495/topicextractor
6b2f2d9f122b6888d551275113c94126128dcef2
[ "Apache-2.0" ]
null
null
null
topicextractor/__init__.py
kjchung495/topicextractor
6b2f2d9f122b6888d551275113c94126128dcef2
[ "Apache-2.0" ]
null
null
null
topicextractor/__init__.py
kjchung495/topicextractor
6b2f2d9f122b6888d551275113c94126128dcef2
[ "Apache-2.0" ]
null
null
null
import nltk from nltk.tokenize import word_tokenize #nltk.download('punkt') #nltk.download('averaged_perceptron_tagger') from collections import Counter def extract_noun_counts(doc_list): nouns_pdoc = [] for i in range(len(doc_list)): pos = nltk.pos_tag(nltk.word_tokenize(doc_list[i])) ...
24.444444
87
0.562987
0
0
0
0
0
0
0
0
145
0.094156
0d709297a9132b15b51435b7ab4b51ce55c7e9f3
14,315
py
Python
src/finn/transformation/streamline/absorb.py
SpontaneousDuck/finn
7cdfd6271159c6cc4636bd33047a7f2e175a7390
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/streamline/absorb.py
SpontaneousDuck/finn
7cdfd6271159c6cc4636bd33047a7f2e175a7390
[ "BSD-3-Clause" ]
null
null
null
src/finn/transformation/streamline/absorb.py
SpontaneousDuck/finn
7cdfd6271159c6cc4636bd33047a7f2e175a7390
[ "BSD-3-Clause" ]
null
null
null
# 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...
50.22807
88
0.542927
12,491
0.872581
0
0
0
0
0
0
3,896
0.272162
0d71379845c71ad7524a31d7ceaa01d4a691d64e
822
py
Python
examples/static_content.py
kjosib/kale
ced67fa7a335fbe9524c86a0a805cfdd56f6d560
[ "MIT" ]
null
null
null
examples/static_content.py
kjosib/kale
ced67fa7a335fbe9524c86a0a805cfdd56f6d560
[ "MIT" ]
3
2020-03-04T03:16:52.000Z
2020-04-25T06:22:48.000Z
examples/static_content.py
kjosib/kale
ced67fa7a335fbe9524c86a0a805cfdd56f6d560
[ "MIT" ]
2
2020-05-22T16:29:33.000Z
2022-01-10T19:36:51.000Z
""" <html><body> <p> You'll probably want to supply a stylesheet. Perhaps some javascript library. Maybe even some images. One way or another, it's handy to be able to point at a directory full of static content and let the framework do its job. </p> <p> This example exercises that facility by presenting the examples ...
22.833333
77
0.723844
0
0
0
0
46
0.055961
0
0
638
0.776156
0d71f71fc61d06bd9b1713ddabe63d768527680c
1,266
py
Python
Hello_world/hello_world2.py
elsuizo/Kivy_work
90da07721257a5e2ebf9eafacfb5a632f91cfbdd
[ "MIT" ]
null
null
null
Hello_world/hello_world2.py
elsuizo/Kivy_work
90da07721257a5e2ebf9eafacfb5a632f91cfbdd
[ "MIT" ]
null
null
null
Hello_world/hello_world2.py
elsuizo/Kivy_work
90da07721257a5e2ebf9eafacfb5a632f91cfbdd
[ "MIT" ]
null
null
null
#= ------------------------------------------------------------------------- # @file hello_world2.py # # @date 02/14/16 13:29:22 # @author Martin Noblia # @email martin.noblia@openmailbox.org # # @brief # # @detail # # Licence: # This program is free software: you can redistribute it and/or modify # it under the terms...
28.772727
78
0.627172
199
0.157188
0
0
0
0
0
0
863
0.681675
0d72db2c734fbc6f87d4e7544c59946f28af4c13
1,167
py
Python
libs/validators/iban.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
674
2015-11-06T04:22:47.000Z
2022-02-26T17:31:43.000Z
libs/validators/iban.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
713
2015-11-06T10:48:58.000Z
2018-11-27T16:32:18.000Z
libs/validators/iban.py
Sparklingx/nzbhydra
e2433e1155255ba37341cc79750b104e7dd8889a
[ "Apache-2.0" ]
106
2015-12-07T11:21:06.000Z
2022-03-11T10:58:41.000Z
import re from .utils import validator regex = ( r'^[A-Z]{2}[0-9]{2}[A-Z0-9]{13,30}$' ) pattern = re.compile(regex) def char_value(char): """A=10, B=11, ..., Z=35 """ if char.isdigit(): return int(char) else: return 10 + ord(char) - ord('A') def modcheck(value): """Check if...
22.018868
74
0.610111
0
0
0
0
494
0.423308
0
0
636
0.544987
0d736e7e49cff33ae106086347e250953188ade6
249
py
Python
Multiples of 3 and 5.py
ahmedharbi197/Project-Euler
596fa7622233868a08200f2d7fe3b7e83d0af41f
[ "MIT" ]
1
2019-06-10T23:10:38.000Z
2019-06-10T23:10:38.000Z
Multiples of 3 and 5.py
ahmedharbi197/Project-Euler
596fa7622233868a08200f2d7fe3b7e83d0af41f
[ "MIT" ]
null
null
null
Multiples of 3 and 5.py
ahmedharbi197/Project-Euler
596fa7622233868a08200f2d7fe3b7e83d0af41f
[ "MIT" ]
null
null
null
import sys t = int(input().strip()) for a0 in range(t): n = int(input().strip()) def preSum(q): return (q*(1+q) //2 ) result = 3*preSum(int((n-1)//3)) + 5*preSum(int((n-1)//5)) - 15*preSum(int((n-1)//15)) print(int(result))
24.9
90
0.526104
0
0
0
0
0
0
0
0
0
0
0d74ec72c3d16df3ed04de198a0c999287ff6316
1,303
py
Python
home/models.py
davidkiama/Foto-Moto-
97f5cafb3580152c3672834dcbbbf5cfa961ff15
[ "Unlicense" ]
null
null
null
home/models.py
davidkiama/Foto-Moto-
97f5cafb3580152c3672834dcbbbf5cfa961ff15
[ "Unlicense" ]
null
null
null
home/models.py
davidkiama/Foto-Moto-
97f5cafb3580152c3672834dcbbbf5cfa961ff15
[ "Unlicense" ]
null
null
null
from statistics import mode from django.db import models from cloudinary.models import CloudinaryField # Create your models here. class Image(models.Model): # image = models.ImageField( # upload_to='uploads/', default='default.jpg') image = CloudinaryField('image') title = models.CharField(max_l...
25.057692
74
0.697621
1,162
0.891788
0
0
522
0.400614
0
0
131
0.100537
0d751410403aebe0b04f4d2c6ba497f74d25e18a
2,396
py
Python
mozillians/users/tests/__init__.py
justinpotts/mozillians
efa5cbdfe4992d2ba1c1d85bfbb5b09b2215cc44
[ "BSD-3-Clause" ]
1
2016-07-24T07:20:19.000Z
2016-07-24T07:20:19.000Z
mozillians/users/tests/__init__.py
Acidburn0zzz/mozillians
991d51b8dc6d7b8265d20a33e83597a1f4500761
[ "BSD-3-Clause" ]
null
null
null
mozillians/users/tests/__init__.py
Acidburn0zzz/mozillians
991d51b8dc6d7b8265d20a33e83597a1f4500761
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import Group, User from django.utils import timezone import factory from factory import fuzzy from mozillians.geo.models import City, Country, Region from mozillians.users.models import Language class UserFactory(factory.DjangoModelFactory): username = factory.Sequence(lambda n: ...
35.761194
82
0.647746
2,161
0.90192
0
0
1,613
0.673205
0
0
219
0.091402
0d779f79a6ff4f979c6a546d7fdf9c7fcb571967
1,248
py
Python
tests/_utils.py
tsuyukimakoto/physaliidae
e55416e8b84c4a4ed2a31290f16ccd42350853d2
[ "MIT" ]
2
2017-04-26T01:10:24.000Z
2019-05-04T03:29:24.000Z
tests/_utils.py
tsuyukimakoto/physaliidae
e55416e8b84c4a4ed2a31290f16ccd42350853d2
[ "MIT" ]
220
2019-01-01T03:18:11.000Z
2022-03-28T20:29:49.000Z
tests/_utils.py
tsuyukimakoto/biisan
8e55d73c582fcbba918595c2e741ffce7c88aaa9
[ "MIT" ]
null
null
null
import os import shutil from contextlib import ( contextmanager, ) from pathlib import Path import pytest @pytest.fixture(scope='function', autouse=True) def cleanup(): test_generate_dir = (Path('.') / 'tests' / 'biisan_data') if test_generate_dir.exists(): shutil.rmtree(test_generate_dir) yi...
22.285714
89
0.677885
0
0
513
0.411058
625
0.500801
0
0
306
0.245192
0d78168c5d6eacac481b47c1f58e174237b91fe4
1,866
py
Python
christmasflix/tests.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
null
null
null
christmasflix/tests.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
1
2021-11-03T20:16:50.000Z
2021-12-22T16:05:44.000Z
christmasflix/tests.py
jbettenh/last_christmas
2f861afbdf67ca69df0e7ed815a870c5bb4feb19
[ "MIT" ]
null
null
null
from django.test import TestCase from django.shortcuts import reverse from .models import MovieList from christmasflix import omdbmovies class MovieListIndexViewTests(TestCase): def test_no_lists(self): response = self.client.get(reverse('christmasflix:index')) self.assertEqual(response.status_co...
33.927273
100
0.721329
1,714
0.918542
0
0
0
0
0
0
332
0.177921
0d78acb4113c1695f1ed8f46e6ee86a7f8ade1aa
430
py
Python
errors.py
zofy/crawler
3db2a214b4ca86022c49670a204e04fc1208f53a
[ "MIT" ]
null
null
null
errors.py
zofy/crawler
3db2a214b4ca86022c49670a204e04fc1208f53a
[ "MIT" ]
null
null
null
errors.py
zofy/crawler
3db2a214b4ca86022c49670a204e04fc1208f53a
[ "MIT" ]
null
null
null
from asyncio import CancelledError, TimeoutError from requests.exceptions import Timeout, ConnectionError from aiohttp.client_exceptions import ClientHttpProxyError, ClientProxyConnectionError, ClientOSError class CaptchaError(Exception): pass ProxyErrors = (CaptchaError, ClientOSError, ClientProxyConn...
35.833333
102
0.834884
40
0.093023
0
0
0
0
0
0
0
0
0d7972a9afb83ed1ccb7a5d48d6c3bd4bfcc326f
4,493
py
Python
holdingsparser/scrape.py
mhadam/holdingsparser
c2f58acf6414e417ff435bb01ecbb8c37be50d77
[ "MIT" ]
9
2018-04-23T23:35:21.000Z
2021-11-03T04:34:09.000Z
holdingsparser/scrape.py
mhadam/holdingsparser
c2f58acf6414e417ff435bb01ecbb8c37be50d77
[ "MIT" ]
2
2021-05-06T14:38:14.000Z
2021-05-08T01:17:33.000Z
holdingsparser/scrape.py
mhadam/holdingsparser
c2f58acf6414e417ff435bb01ecbb8c37be50d77
[ "MIT" ]
4
2018-08-18T18:09:06.000Z
2021-06-21T02:02:07.000Z
import json import logging import re from itertools import chain from json import JSONDecodeError from typing import Iterable, Optional, Mapping import requests import untangle from bs4 import BeautifulSoup, PageElement, Tag from holdingsparser.file import Holding, VotingAuthority, ShrsOrPrnAmt logger = logging.getL...
35.65873
116
0.676163
0
0
1,054
0.234587
0
0
0
0
877
0.195193
0d7ab5a4ed73da20e4b8a1aaf38e3c5f297e7d62
4,757
py
Python
scripts/settings.py
jugoodma/reu-2018
e6133b556216e8a7a91b23dd37dc043408cbab82
[ "MIT" ]
5
2018-07-16T02:56:31.000Z
2020-04-05T21:24:24.000Z
scripts/settings.py
jugoodma/reu-2018
e6133b556216e8a7a91b23dd37dc043408cbab82
[ "MIT" ]
null
null
null
scripts/settings.py
jugoodma/reu-2018
e6133b556216e8a7a91b23dd37dc043408cbab82
[ "MIT" ]
2
2018-07-16T18:38:20.000Z
2018-08-03T18:54:00.000Z
# DEFAULT SETTINGS FILE import json import requests mturk_type = "sandbox" data_type = "temporal" data_path = "../data/" input_path = "../input/" template_path = "../templates/" result_path = "../results/" max_results = 10 approve_all = False # you must have a YouTube API v3 key # your key must be in a json file titl...
38.056
165
0.61194
0
0
0
0
0
0
0
0
3,390
0.712634
0d7b441950e43399337a0b17c73f11ba2c3bafd4
10,790
py
Python
synapse-prometheus-connector/src/main.py
microsoft/azure-synapse-spark-metrics
a32ca9426973b34d0d7a9092a9c608fae6d7b0ff
[ "MIT" ]
8
2021-02-26T11:26:55.000Z
2022-03-31T16:16:17.000Z
synapse-prometheus-connector/src/main.py
microsoft/azure-synapse-spark-metrics
a32ca9426973b34d0d7a9092a9c608fae6d7b0ff
[ "MIT" ]
2
2021-11-11T08:43:19.000Z
2021-11-30T09:11:31.000Z
synapse-prometheus-connector/src/main.py
microsoft/azure-synapse-spark-metrics
a32ca9426973b34d0d7a9092a9c608fae6d7b0ff
[ "MIT" ]
4
2021-09-13T12:34:56.000Z
2022-02-15T03:57:13.000Z
# coding=utf-8 # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import json import os import signal import time import traceback import requests import access_token import config import metrics import model import spark_pools def write_string_to_path(path, filename, content): _path = o...
46.508621
159
0.668397
266
0.024652
0
0
0
0
0
0
1,459
0.135218
0d7c6c0d4a76f2eeb76fb63de618f9a0da93b8d7
5,465
py
Python
stanCode_projects/pedestrian_removing/stanCodoshop.py
shihjames/sc-projects
3c09ae12489edb2ba55335ea192a8206e9a45e84
[ "MIT" ]
null
null
null
stanCode_projects/pedestrian_removing/stanCodoshop.py
shihjames/sc-projects
3c09ae12489edb2ba55335ea192a8206e9a45e84
[ "MIT" ]
null
null
null
stanCode_projects/pedestrian_removing/stanCodoshop.py
shihjames/sc-projects
3c09ae12489edb2ba55335ea192a8206e9a45e84
[ "MIT" ]
null
null
null
""" File: stanCodoshop.py Name: James Shih ---------------------------------------------- SC101_Assignment3 Adapted from Nick Parlante's Ghost assignment by Jerry Liao. ----------------------------------------------- Remove people or abnormal objects in a certain photo. """ import os import sys import time from simpl...
29.224599
106
0.6086
0
0
0
0
0
0
0
0
3,304
0.604575
0d7c9dd39ea4011bea154b13be9de5e46cbc2b5f
1,254
py
Python
src/search/views/author.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/search/views/author.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/search/views/author.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
from rest_framework import viewsets from elasticsearch_dsl import Search from elasticsearch_dsl.connections import connections from search.filters import ElasticsearchFuzzyFilter from search.documents import AuthorDocument from search.serializers import AuthorDocumentSerializer from utils.permissions import ReadOnly ...
32.153846
70
0.720893
932
0.743222
0
0
0
0
0
0
23
0.018341
0d7e76df168940114e6ba8aba86bf80b7241eafe
4,329
py
Python
MPNet/data_loader.py
sbaktha/MPNet
7780a00bb5bca2fc5fdfcc5d50b8dcc7c0120b20
[ "MIT" ]
null
null
null
MPNet/data_loader.py
sbaktha/MPNet
7780a00bb5bca2fc5fdfcc5d50b8dcc7c0120b20
[ "MIT" ]
null
null
null
MPNet/data_loader.py
sbaktha/MPNet
7780a00bb5bca2fc5fdfcc5d50b8dcc7c0120b20
[ "MIT" ]
null
null
null
import torch import torch.utils.data as data import os import pickle import numpy as np import nltk from PIL import Image import os.path import random from torch.autograd import Variable import torch.nn as nn import math # Environment Encoder class Encoder(nn.Module): def __init__(self): super(Encoder, self).__ini...
26.078313
144
0.662509
282
0.065142
0
0
0
0
0
0
723
0.167013
0d7f5efa7e68562621936b11080cd338789bdad4
1,584
py
Python
qclib/backend/state.py
dylanljones/qclib
91e63b642f57fee6eff0b3ff1d696880a66509c3
[ "MIT" ]
2
2021-10-31T11:14:51.000Z
2021-11-17T13:39:50.000Z
qclib/backend/state.py
dylanljones/qclib
91e63b642f57fee6eff0b3ff1d696880a66509c3
[ "MIT" ]
null
null
null
qclib/backend/state.py
dylanljones/qclib
91e63b642f57fee6eff0b3ff1d696880a66509c3
[ "MIT" ]
1
2021-10-31T11:15:00.000Z
2021-10-31T11:15:00.000Z
# coding: utf-8 # # This code is part of qclib. # # Copyright (c) 2021, Dylan Jones import numpy as np from ..math import apply_statevec, apply_density, density_matrix from .measure import measure_qubit, measure_qubit_rho class DensityMatrix: def __init__(self, mat): self._data = np.asarray(mat) de...
22.956522
80
0.65404
1,355
0.855429
0
0
0
0
0
0
79
0.049874
0d7fab914540aa7a0c18cf59c2ed8e272d40f98a
3,981
py
Python
Upwelling_project_noCFM.py
gmarmin10/Theoretical_Coastal_Model
c045fd16b44ec4fa3e1a641a323f45b2daeef433
[ "MIT" ]
null
null
null
Upwelling_project_noCFM.py
gmarmin10/Theoretical_Coastal_Model
c045fd16b44ec4fa3e1a641a323f45b2daeef433
[ "MIT" ]
null
null
null
Upwelling_project_noCFM.py
gmarmin10/Theoretical_Coastal_Model
c045fd16b44ec4fa3e1a641a323f45b2daeef433
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # #### Modeling the elemental stoichiometry of phytoplankton and surrounding surface waters in and upwelling or estuarine system # >Steps to complete project: # >1. Translate matlab physical model into python # >2. Substitute Dynamic CFM into model for eco component # >3. Analyze ...
23.838323
128
0.678222
0
0
0
0
0
0
0
0
2,057
0.516704
0d802fca09e29a84af3006203d6210a4292b4238
2,534
py
Python
run.py
UNIFUZZ/getcvss
360de42ef09d7e21ef7c539d48ac083d10e8e215
[ "MIT" ]
2
2020-08-16T12:06:17.000Z
2021-01-05T05:35:54.000Z
run.py
UNIFUZZ/getcvss
360de42ef09d7e21ef7c539d48ac083d10e8e215
[ "MIT" ]
null
null
null
run.py
UNIFUZZ/getcvss
360de42ef09d7e21ef7c539d48ac083d10e8e215
[ "MIT" ]
2
2020-08-16T11:07:29.000Z
2022-01-04T02:18:50.000Z
import requests sess = requests.session() import gzip import json import time import os def downloadyear(year): print("fetching year", year) url = "https://nvd.nist.gov/feeds/json/cve/1.1/nvdcve-1.1-{year}.json.gz".format(year=year) req = sess.get(url, stream=True) return gzip.open(req.raw)....
40.870968
150
0.598658
0
0
0
0
0
0
0
0
839
0.331097
0d8131562321f737bfe94d6f5f98ee26c890434c
2,974
py
Python
src/enumerator.py
darkarnium/perimeterator
8c694267d92ca1d28fc1494cd9394af34271ed39
[ "MIT" ]
56
2019-03-20T01:44:04.000Z
2022-02-16T13:36:39.000Z
src/enumerator.py
darkarnium/perimeterator
8c694267d92ca1d28fc1494cd9394af34271ed39
[ "MIT" ]
1
2020-07-08T20:30:23.000Z
2020-11-07T15:41:25.000Z
src/enumerator.py
darkarnium/perimeterator
8c694267d92ca1d28fc1494cd9394af34271ed39
[ "MIT" ]
9
2019-10-09T18:54:52.000Z
2021-12-28T15:27:58.000Z
#!/usr/bin/env python3 ''' Perimeterator Enumerator. This wrapper is intended to allow for simplified AWS based deployment of the Perimeterator enumerator. This allows for a cost effective method of execution, as the Perimeterator poller component only needs to execute on a defined schedule in order to detect changes....
33.41573
77
0.631137
0
0
0
0
0
0
0
0
1,579
0.530935
0d819476af5932130a9089599a42a757e9fa6fab
3,991
py
Python
script/diffsel_script_utils.py
vlanore/COPTR
babe25070ddfa67dd04e0f96a143ce539cc27fbb
[ "CECILL-B" ]
null
null
null
script/diffsel_script_utils.py
vlanore/COPTR
babe25070ddfa67dd04e0f96a143ce539cc27fbb
[ "CECILL-B" ]
null
null
null
script/diffsel_script_utils.py
vlanore/COPTR
babe25070ddfa67dd04e0f96a143ce539cc27fbb
[ "CECILL-B" ]
null
null
null
# Copyright or Copr. Centre National de la Recherche Scientifique (CNRS) (2017/11/27) # Contributors: # - Vincent Lanore <vincent.lanore@gmail.com> # This software is a computer program whose purpose is to provide small tools and scripts related to phylogeny and bayesian # inference. # This software is governed by th...
32.983471
127
0.687798
479
0.12002
0
0
0
0
0
0
2,033
0.509396
0d81c066a40ec6d9a8fc2da5c8835fbc0f207108
6,871
py
Python
test/test_PointSource/test_point_source.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
1
2018-11-08T12:33:26.000Z
2018-11-08T12:33:26.000Z
test/test_PointSource/test_point_source.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
null
null
null
test/test_PointSource/test_point_source.py
guoxiaowhu/lenstronomy
dcdfc61ce5351ac94565228c822f1c94392c1ad6
[ "MIT" ]
null
null
null
import pytest import numpy as np import numpy.testing as npt from lenstronomy.PointSource.point_source import PointSource from lenstronomy.LensModel.lens_model import LensModel from lenstronomy.LensModel.Solver.lens_equation_solver import LensEquationSolver import lenstronomy.Util.param_util as param_util class Test...
54.531746
140
0.679377
6,510
0.94746
0
0
0
0
0
0
430
0.062582
0d81f1dd86c97fac6a68af0051fa814935517691
3,493
py
Python
invenio_rdm_pure/utils.py
utnapischtim/invenio-rdm-pure
895addfb374dca640adc42ce68ab54ddfc8d412a
[ "MIT" ]
null
null
null
invenio_rdm_pure/utils.py
utnapischtim/invenio-rdm-pure
895addfb374dca640adc42ce68ab54ddfc8d412a
[ "MIT" ]
19
2020-10-20T09:38:09.000Z
2021-04-01T09:13:59.000Z
invenio_rdm_pure/utils.py
utnapischtim/invenio-rdm-pure
895addfb374dca640adc42ce68ab54ddfc8d412a
[ "MIT" ]
2
2020-09-18T06:45:15.000Z
2021-03-21T20:15:37.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Technische Universität Graz # # invenio-rdm-pure is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Utility methods.""" import smtplib from datetime import datetime from os.path import di...
28.398374
99
0.634412
0
0
0
0
0
0
0
0
971
0.277905
0d8360504869ccd639eced6db8d480f95abb8776
37
py
Python
examples/project-sourcecode/c.py
wheatdog/guildai
817cf179d0b6910d3d4fca522045a8139aef6c9e
[ "Apache-2.0" ]
694
2018-11-30T01:06:30.000Z
2022-03-31T14:46:26.000Z
examples/project-sourcecode/c.py
wheatdog/guildai
817cf179d0b6910d3d4fca522045a8139aef6c9e
[ "Apache-2.0" ]
323
2018-11-05T17:44:34.000Z
2022-03-31T16:56:41.000Z
examples/project-sourcecode/c.py
wheatdog/guildai
817cf179d0b6910d3d4fca522045a8139aef6c9e
[ "Apache-2.0" ]
68
2019-04-01T04:24:47.000Z
2022-02-24T17:22:04.000Z
from subproject import d print("c")
9.25
24
0.72973
0
0
0
0
0
0
0
0
3
0.081081
0d836b79c1c35926c2be545a9cfa96aaad92778b
1,992
py
Python
cookiecutterassert/rules/run_script.py
yangzii0920/cookiecutterassert
d690bb06844821334e7b2b0e6361fb30556d718b
[ "Apache-2.0" ]
3
2020-09-24T12:43:42.000Z
2022-02-10T13:04:28.000Z
cookiecutterassert/rules/run_script.py
yangzii0920/cookiecutterassert
d690bb06844821334e7b2b0e6361fb30556d718b
[ "Apache-2.0" ]
5
2020-11-05T22:04:07.000Z
2021-07-07T15:45:38.000Z
cookiecutterassert/rules/run_script.py
cookiecutterassert/cooiecutterassert
87a2b05c45c0cb30abfc11f944a6cb12a2863a09
[ "Apache-2.0" ]
4
2020-10-06T13:55:39.000Z
2021-11-23T15:38:00.000Z
# Copyright 2020 Ford Motor Company # 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...
31.125
166
0.674197
1,313
0.659137
0
0
0
0
0
0
706
0.354418
0d861b47d79b6a499c086d94f4c974f6d7dabf56
37,790
py
Python
neutron/services/loadbalancer/plugin.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
neutron/services/loadbalancer/plugin.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
neutron/services/loadbalancer/plugin.py
CingHu/neutron-ustack
a1da17d0d63b3342a48c35da37984d6386ee1016
[ "Apache-2.0" ]
null
null
null
# # Copyright 2013 Radware LTD. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
45.917375
114
0.611723
36,059
0.954194
413
0.010929
88
0.002329
0
0
4,713
0.124716
0d8654ebd4587d1b86f646674bd4260a04af5395
1,219
py
Python
awsFunctions.py
jmontoyac/disk-space
6a3556a98103a6565756824208251240ed540412
[ "MIT" ]
null
null
null
awsFunctions.py
jmontoyac/disk-space
6a3556a98103a6565756824208251240ed540412
[ "MIT" ]
null
null
null
awsFunctions.py
jmontoyac/disk-space
6a3556a98103a6565756824208251240ed540412
[ "MIT" ]
null
null
null
import boto3 from botocore.exceptions import NoCredentialsError ACCESS_KEY = '' SECRET_KEY = '' def upload_to_aws(local_file, bucket, s3_file): s3 = boto3.client('s3', aws_access_key_id=ACCESS_KEY, aws_secret_access_key=SECRET_KEY) try: s3.upload_file(local_file, bucket, s3_fil...
26.5
59
0.64397
0
0
0
0
0
0
0
0
252
0.206727
0d88e0637e9a9379159eee4585d2567b071fb965
2,176
py
Python
src/db_writer.py
lofmat/kafka_project
1b3a6ac8d898d1ff5a4f303605a1b9f33b30085b
[ "Apache-2.0" ]
null
null
null
src/db_writer.py
lofmat/kafka_project
1b3a6ac8d898d1ff5a4f303605a1b9f33b30085b
[ "Apache-2.0" ]
null
null
null
src/db_writer.py
lofmat/kafka_project
1b3a6ac8d898d1ff5a4f303605a1b9f33b30085b
[ "Apache-2.0" ]
null
null
null
from psycopg2 import connect, DatabaseError, OperationalError, ProgrammingError import logging import sys logging.getLogger().setLevel(logging.INFO) def query_exec(query: str, conn) -> list: query_ok = False with conn.cursor() as cursor: logging.info(f'Executing query: {query}') try: ...
32
98
0.566636
1,446
0.664522
0
0
0
0
0
0
435
0.199908
0d8a394c7608f83db8f19c2b8dbe58f33ccd689a
2,365
py
Python
sample/metropolis_sampler.py
shuiruge/little_mcmc
b9372fc65c59b16067832de08b0dcb9fc285052e
[ "MIT" ]
null
null
null
sample/metropolis_sampler.py
shuiruge/little_mcmc
b9372fc65c59b16067832de08b0dcb9fc285052e
[ "MIT" ]
null
null
null
sample/metropolis_sampler.py
shuiruge/little_mcmc
b9372fc65c59b16067832de08b0dcb9fc285052e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Description --------- Class of sampler by Metropolis algorithm. Documentation --------- C.f. `../doc/metropolis_sampler.tm`. """ import random from math import log from copy import deepcopy as copy class MetropolisSampler: """ An implementation of sampler ...
20.213675
72
0.556448
2,110
0.892178
0
0
0
0
0
0
982
0.415222
0d8b44c6cdb28214bde2bc0db794be64cdb76647
319
py
Python
Desafios/Desafio048.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Desafios/Desafio048.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
Desafios/Desafio048.py
vaniaferreira/Python
5b3158836d47c0bb7bc446e6636e7b3dcea8a0ab
[ "MIT" ]
null
null
null
#Faça um programa que calcule a soma entre todos os números ímpares que são múltiplos de 3 e que se encontram # no intervalo de 1 até 500. soma = 0 cont = 0 for c in range(1,501,2): if c % 3 == 0: cont = cont + 1 soma = soma + c print('A soma dos números solicitados {} são {}'.format(cont, soma))
29
109
0.642633
0
0
0
0
0
0
0
0
187
0.571865
0d8d0b013e67c45f113c70d966f6a14dd4760296
10,532
py
Python
main.py
JiahongChen/FRAN
58dd5c4a6162d0d76cd3a2b562319ca761397aac
[ "Apache-2.0" ]
6
2021-02-07T21:53:52.000Z
2022-03-25T09:14:30.000Z
main.py
JiahongChen/FRAN
58dd5c4a6162d0d76cd3a2b562319ca761397aac
[ "Apache-2.0" ]
null
null
null
main.py
JiahongChen/FRAN
58dd5c4a6162d0d76cd3a2b562319ca761397aac
[ "Apache-2.0" ]
3
2021-09-23T06:04:34.000Z
2022-03-25T09:15:08.000Z
import os import argparse import tqdm import os import argparse import numpy as np import tqdm from itertools import chain from collections import OrderedDict import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import transforms from torch.autograd import Vari...
38.15942
236
0.654766
0
0
0
0
0
0
0
0
1,274
0.120965
0d8d5718379dda93fd6474b84b7d6a14a112142a
529
py
Python
sums-of-numbers-game/prepare_sum_objects.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
1
2019-02-07T15:32:06.000Z
2019-02-07T15:32:06.000Z
sums-of-numbers-game/prepare_sum_objects.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
9
2020-01-28T22:09:41.000Z
2022-03-11T23:39:17.000Z
sums-of-numbers-game/prepare_sum_objects.py
babyrobot-eu/core-modules
7e8c006c40153fb649208c9a78fc71aa70243f69
[ "MIT" ]
null
null
null
import pickle from random import shuffle sums = [(5, 105) , (205, 305), (405, 1005), (1105, 1205), (1305, 1405)] shuffle(sums) a = {'sums': sums, 'current_sum': 0} with open('child_data/child1.pkl', 'wb') as f: pickle.dump(obj=a, file=f) print(a) shuffle(sums) b = {'sums': sums, 'current_sum': 0} with open('child...
25.190476
71
0.640832
0
0
0
0
0
0
0
0
138
0.26087
0d8d86db0a3258002cf5655c5b82a27e00d11ef7
10,736
py
Python
tests/weighted/test_pathcensus.py
sztal/pathcensus
0246b1450e5d7fa0421e283f980c367100fcdd6a
[ "MIT" ]
null
null
null
tests/weighted/test_pathcensus.py
sztal/pathcensus
0246b1450e5d7fa0421e283f980c367100fcdd6a
[ "MIT" ]
null
null
null
tests/weighted/test_pathcensus.py
sztal/pathcensus
0246b1450e5d7fa0421e283f980c367100fcdd6a
[ "MIT" ]
null
null
null
"""Test weighted path counting methods.""" # pylint: disable=redefined-outer-name,too-few-public-methods # pylint: disable=too-many-branches import pytest from pytest import approx import numpy as np import pandas as pd from pathcensus.definitions import PathDefinitionsWeighted from pathcensus import PathCensus @pyte...
38.758123
85
0.57256
9,003
0.83858
0
0
7,654
0.712928
0
0
3,628
0.337928
0d8dedee8a01cdd537a2a3df042a8dfbd8ef5e42
5,781
py
Python
menuparser.py
tomjaspers/vubresto-server
96b441c76d8219505742eb5d08793bfb454ff9c8
[ "MIT" ]
2
2015-03-09T14:26:57.000Z
2015-03-30T17:30:56.000Z
menuparser.py
tomjaspers/vubresto-server
96b441c76d8219505742eb5d08793bfb454ff9c8
[ "MIT" ]
null
null
null
menuparser.py
tomjaspers/vubresto-server
96b441c76d8219505742eb5d08793bfb454ff9c8
[ "MIT" ]
null
null
null
#!/usr/bin/env python27 import io import os import json import logging import datetime import requests import lxml.html from lxml.cssselect import CSSSelector from multiprocessing.dummy import Pool as ThreadPool # Path where the JSONs will get written. Permissions are your job. SAVE_PATH = '.' # Urls of the pages t...
35.036364
80
0.572219
0
0
0
0
0
0
0
0
1,923
0.332641
0d8e965e118133f5b1bd1e62eb10836c7d536a8f
1,715
py
Python
server/recommendation_system.py
Igor-SeVeR/Recommendation-system-for-offering-related-products
faa719a86a0d811da63e7a6ac8e3db84510041e6
[ "Apache-2.0" ]
null
null
null
server/recommendation_system.py
Igor-SeVeR/Recommendation-system-for-offering-related-products
faa719a86a0d811da63e7a6ac8e3db84510041e6
[ "Apache-2.0" ]
null
null
null
server/recommendation_system.py
Igor-SeVeR/Recommendation-system-for-offering-related-products
faa719a86a0d811da63e7a6ac8e3db84510041e6
[ "Apache-2.0" ]
null
null
null
import numpy as np from utils import check_integer_values from gensim.models import KeyedVectors from config import PATH_TO_SAVE_DATA, WORD2VEC_FILE_NAME, STOCKCODE_FILE_NAME # =========== TECHNICAL FUNCTIONS =========== def aggregate_vectors(model, products): product_vec = [] for prod in products: ...
24.5
79
0.630904
0
0
0
0
0
0
0
0
243
0.137833
0d8f583a5022eb2ed6a681ddfd9fb9b1e0561dc7
5,531
py
Python
src/wav2vec2/spec_augment.py
janlight/gsoc-wav2vec2
4d241553137ba0c3ac5acb4670c5653512b17854
[ "Apache-2.0" ]
40
2021-06-15T10:01:13.000Z
2022-03-29T22:48:05.000Z
src/wav2vec2/spec_augment.py
janlight/gsoc-wav2vec2
4d241553137ba0c3ac5acb4670c5653512b17854
[ "Apache-2.0" ]
29
2021-06-15T12:26:26.000Z
2022-01-11T21:20:27.000Z
src/wav2vec2/spec_augment.py
janlight/gsoc-wav2vec2
4d241553137ba0c3ac5acb4670c5653512b17854
[ "Apache-2.0" ]
14
2021-07-22T07:48:42.000Z
2022-03-19T07:53:08.000Z
# following code is largly adapted from `here <https://github.com/huggingface/transformers/blob/f2c4ce7e339f4a2f8aaacb392496bc1a5743881f/src/transformers/models/wav2vec2/modeling_tf_wav2vec2.py#L206>__` import tensorflow as tf import numpy as np def tf_multinomial_no_replacement(distribution, num_samples): """ ...
42.875969
202
0.711445
0
0
0
0
0
0
0
0
2,932
0.530103
0d8fe58183417cd3a2d532a22447986b76e404bf
195
py
Python
livereload/__init__.py
Fantomas42/django-livereload
1170b6729667a6164e5e47776781b2a7f6b2c0d3
[ "BSD-3-Clause" ]
63
2015-01-02T03:07:50.000Z
2022-01-06T13:53:07.000Z
livereload/__init__.py
Fantomas42/django-livereload
1170b6729667a6164e5e47776781b2a7f6b2c0d3
[ "BSD-3-Clause" ]
12
2015-02-26T20:04:17.000Z
2021-08-25T05:24:04.000Z
livereload/__init__.py
Fantomas42/django-livereload
1170b6729667a6164e5e47776781b2a7f6b2c0d3
[ "BSD-3-Clause" ]
18
2015-02-24T22:23:51.000Z
2017-01-22T16:00:25.000Z
"""django-livereload""" __version__ = '1.7' __license__ = 'BSD License' __author__ = 'Fantomas42' __email__ = 'fantomas42@gmail.com' __url__ = 'https://github.com/Fantomas42/django-livereload'
21.666667
59
0.738462
0
0
0
0
0
0
0
0
124
0.635897
0d902f3628cad0645f5a28226144694853af64ef
1,673
py
Python
utils_data.py
vkola/peds2019
232ee1400e5220a8f928c1bab0bfbd9d20552308
[ "MIT" ]
13
2019-09-03T09:42:12.000Z
2022-03-23T02:14:46.000Z
utils_data.py
vkola/peds2019
232ee1400e5220a8f928c1bab0bfbd9d20552308
[ "MIT" ]
5
2020-12-17T09:38:22.000Z
2021-04-30T00:29:54.000Z
utils_data.py
vkola/peds2019
232ee1400e5220a8f928c1bab0bfbd9d20552308
[ "MIT" ]
7
2019-07-08T19:04:00.000Z
2022-02-19T09:04:45.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jul 8 16:05:54 2019 @author: Chonghua Xue (Kolachalama's Lab, BU) """ from torch.utils.data import Dataset # true if gapped else false vocab_o = { True: ['-'] + ['A', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'V'...
38.906977
127
0.548117
399
0.238494
0
0
0
0
0
0
343
0.205021
0d92dd46b5c6cda3a158d46142ec944eda28a213
7,986
py
Python
fairmlhealth/__fairness_metrics.py
masino-lab/fairMLHealth
943ffed5f57997401823bd2afc257f34f76ea157
[ "MIT" ]
19
2020-10-29T10:14:59.000Z
2022-03-20T06:27:35.000Z
fairmlhealth/__fairness_metrics.py
masino-lab/fairMLHealth
943ffed5f57997401823bd2afc257f34f76ea157
[ "MIT" ]
52
2020-10-14T19:21:27.000Z
2021-09-15T19:01:52.000Z
fairmlhealth/__fairness_metrics.py
masino-lab/fairMLHealth
943ffed5f57997401823bd2afc257f34f76ea157
[ "MIT" ]
9
2020-12-02T21:40:27.000Z
2021-11-01T18:09:10.000Z
""" Custom Fairness Metrics Note that ratio and difference computation is handled by AIF360's sklearn.metrics module. As of the V 0.4.0 release, these are calculated as [unprivileged/privileged] and [unprivileged - privileged], respectively """ from typing import Callable from aif360.sklearn.metrics import...
29.577778
88
0.660155
0
0
0
0
2,682
0.335838
0
0
4,388
0.549462
0d93c4592d73e829b821284fa1eb81e23780c084
6,815
py
Python
tests/portstat/test_portstat.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
2
2021-11-24T09:33:41.000Z
2021-12-03T09:08:29.000Z
tests/portstat/test_portstat.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
tests/portstat/test_portstat.py
xwjiang2021/sonic-mgmt
82c446b9fb016eb070af765aa9d9999e55b27342
[ "Apache-2.0" ]
null
null
null
import logging import pytest from tests.common.helpers.assertions import pytest_assert from tests.common.portstat_utilities import parse_portstat from tests.common.utilities import wait logger = logging.getLogger('__name__') pytestmark = [ pytest.mark.topology('any') ] @pytest.fixture(scope='function', autous...
45.738255
116
0.699486
0
0
374
0.054879
6,517
0.956273
0
0
2,058
0.301981
0d94ba5e46412f0822ea3dc209d00e080804ba7d
597
py
Python
src/bxcommon/utils/crypto.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
12
2019-11-06T17:39:10.000Z
2022-03-01T11:26:19.000Z
src/bxcommon/utils/crypto.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
8
2019-11-06T21:31:11.000Z
2021-06-02T00:46:50.000Z
src/bxcommon/utils/crypto.py
dolphinridercrypto/bxcommon
8f70557c1dbff785a5dd3fcdf91176066e085c3a
[ "MIT" ]
5
2019-11-14T18:08:11.000Z
2022-02-08T09:36:22.000Z
from hashlib import sha256 from nacl.secret import SecretBox from nacl.utils import random # Length of a SHA256 double hash SHA256_HASH_LEN = 32 KEY_SIZE = SecretBox.KEY_SIZE def bitcoin_hash(content): return sha256(sha256(content).digest()).digest() def double_sha256(content): return sha256(sha256(conten...
21.321429
52
0.745394
0
0
0
0
0
0
0
0
32
0.053601
0d966087cea0a7295db776cecd1d057649f3d673
829
py
Python
src/PyMIPS/tests/memory_test.py
shenganzhang/Py-MI-PS
2d22327c75bac1b58a4804a61e7a703ecc5ba978
[ "MIT" ]
3
2019-05-14T21:24:59.000Z
2021-08-04T01:43:22.000Z
src/PyMIPS/tests/memory_test.py
shenganzhang/Py-MI-PS
2d22327c75bac1b58a4804a61e7a703ecc5ba978
[ "MIT" ]
null
null
null
src/PyMIPS/tests/memory_test.py
shenganzhang/Py-MI-PS
2d22327c75bac1b58a4804a61e7a703ecc5ba978
[ "MIT" ]
2
2021-08-04T01:43:25.000Z
2021-11-23T06:54:17.000Z
try: from src.PyMIPS.Datastructure.memory import Memory except: from PyMIPS.Datastructure.memory import Memory import unittest class TestMemory(unittest.TestCase): def test_storage(self): Memory.store_word(16, 2214) Memory.store_word(17, 2014) self.assertEqual(Memory.get_word(221...
25.121212
54
0.671894
690
0.832328
0
0
0
0
0
0
0
0
0d97e6e62284344f9f71b3d49de7c9c09fe6e5dd
4,122
py
Python
experimentum/Storage/Migrations/Schema.py
PascalKleindienst/experimentum
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
[ "Apache-2.0" ]
null
null
null
experimentum/Storage/Migrations/Schema.py
PascalKleindienst/experimentum
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
[ "Apache-2.0" ]
3
2019-04-17T08:07:12.000Z
2019-04-28T15:24:18.000Z
experimentum/Storage/Migrations/Schema.py
PascalKleindienst/experimentum
5d547e0e8135d4d7ffe42b0c8a57e70a7ac2af4b
[ "Apache-2.0" ]
null
null
null
"""The :py:class:`.Schema` class provides a database agnostic way of manipulating tables. Tables ====== Creating Tables --------------- To create a new database table, the :py:meth:`~.Schema.create` method is used. The :py:meth:`~.Schema.create` method accepts a table name as its argument and returns a :py:class:`.Bl...
26.423077
89
0.586608
2,808
0.681223
937
0.227317
977
0.237021
0
0
2,770
0.672004
0d982ecf9da92c8bdff12bac020ce7bfc1ac4155
6,024
py
Python
custom_components/kostal/sensor.py
zittix/kostalpiko-sensor-homeassistant
3fd3531985cede3764992d1f380bf77608c0e79a
[ "MIT" ]
null
null
null
custom_components/kostal/sensor.py
zittix/kostalpiko-sensor-homeassistant
3fd3531985cede3764992d1f380bf77608c0e79a
[ "MIT" ]
null
null
null
custom_components/kostal/sensor.py
zittix/kostalpiko-sensor-homeassistant
3fd3531985cede3764992d1f380bf77608c0e79a
[ "MIT" ]
1
2021-09-17T09:29:22.000Z
2021-09-17T09:29:22.000Z
"""The Kostal piko integration.""" import logging import xmltodict from datetime import timedelta from homeassistant.const import ( CONF_USERNAME, CONF_PASSWORD, CONF_HOST, CONF_MONITORED_CONDITIONS, ) from homeassistant.components.sensor import SensorEntity from homeassistant.helpers...
39.116883
103
0.569555
4,777
0.792995
0
0
684
0.113546
3,851
0.639276
1,779
0.295319
0d98cd3509f57f05513feadf15808accb6f7add9
601
py
Python
kaskopy/items.py
aspirin1988/KASKO
924278f67a303a861e2367412bbc1dc3df59c742
[ "MIT" ]
null
null
null
kaskopy/items.py
aspirin1988/KASKO
924278f67a303a861e2367412bbc1dc3df59c742
[ "MIT" ]
null
null
null
kaskopy/items.py
aspirin1988/KASKO
924278f67a303a861e2367412bbc1dc3df59c742
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # http://doc.scrapy.org/en/latest/topics/items.html import scrapy from kaskopy.models import Car, RawData class CarItem(scrapy.Item): brand = scrapy.Field() model = scrapy.Field() year = scrapy.Field() ...
23.115385
52
0.592346
392
0.652246
0
0
0
0
0
0
191
0.317804
0d991e73f8352c51439f70b45abdfecc3e0a81fe
26
py
Python
6 - Python/Introduction/2 - Raw Input.py
Terence-Guan/Python.HackerRank
165a5f0e739c7678dfac7eae95443018e2167c3d
[ "MIT" ]
88
2016-10-23T16:41:14.000Z
2019-12-30T23:51:47.000Z
HackerRank/6 - Python/Introduction/2 - Raw Input.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
1
2018-10-13T14:31:54.000Z
2018-10-13T14:31:54.000Z
HackerRank/6 - Python/Introduction/2 - Raw Input.py
natalie-o-perret/coding-challenges
9a242e0ec54488f59be82592822b31ff51af1633
[ "MIT" ]
82
2017-02-01T17:02:56.000Z
2020-02-01T11:45:58.000Z
line = input() print(line)
13
14
0.692308
0
0
0
0
0
0
0
0
0
0
0d9aee5955af9ee204ebd39cc82058caf26d7cbf
2,466
py
Python
GameLogServer/GameLogServer/log_reader.py
Frankity/IW4M-Admin
515443c84a574944e946d3691a4682d916fd582e
[ "MIT" ]
null
null
null
GameLogServer/GameLogServer/log_reader.py
Frankity/IW4M-Admin
515443c84a574944e946d3691a4682d916fd582e
[ "MIT" ]
null
null
null
GameLogServer/GameLogServer/log_reader.py
Frankity/IW4M-Admin
515443c84a574944e946d3691a4682d916fd582e
[ "MIT" ]
null
null
null
import re import os import time class LogReader(object): def __init__(self): self.log_file_sizes = {} # (if the file changes more than this, ignore ) - 1 MB self.max_file_size_change = 1000000 # (if the time between checks is greater, ignore ) - 5 minutes self.max_file_time_...
32.447368
108
0.576642
2,410
0.977291
0
0
0
0
0
0
667
0.270479
0d9ef0b73b31da3c8aa84b2d46d763a801003401
1,121
py
Python
python/defaultdict-tutorial/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
python/defaultdict-tutorial/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
python/defaultdict-tutorial/main.py
shollingsworth/HackerRank
2f0e048044e643d6aa9d07c1898f3b00adf489b0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import __future__ import sys import json def banner(): ban = '====' * 30 print("{}\nSAMPLE INP:\n{}\n{}".format(ban,ban,open(ip, 'r').read())) print("{}\nSAMPLE OUT:\n{}\n{}".format(ban,ban,open(op, 'r').read())) print("{}\nSTART:\n{}".format(ban,ban)) ...
25.477273
109
0.609277
0
0
0
0
0
0
0
0
351
0.313113
0d9efb97f4ca82cd321aeee3291d3a4197c0e6af
10,934
py
Python
EpikCord/interactions.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
EpikCord/interactions.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
EpikCord/interactions.py
Conchbot-Development/EpikCord.py
d81f4075ee9621edec05c8ab0ccbb4a6c4ec46c6
[ "MIT" ]
null
null
null
from .embed import Embed from .file import Attachment from .member import GuildMember, User from .slash import SlashCommandOptionChoice, AnyOption from .commands import MessageButton, MessageSelectMenu, MessageTextInput, MessageSelectMenuOption from typing import Optional, List, Union class BaseInteraction: def __...
44.628571
321
0.657856
10,621
0.971374
0
0
0
0
4,245
0.388239
1,802
0.164807
0da232f99858da8e8ab6976dc3b106393438ba8a
3,571
py
Python
satchmo/contact/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
1
2016-05-09T12:21:04.000Z
2016-05-09T12:21:04.000Z
satchmo/contact/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
satchmo/contact/views.py
sankroh/satchmo
e48df0c2a4be4ce14785d0a5d6dd1e516c57a838
[ "BSD-3-Clause" ]
null
null
null
from django import http from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.auth.decorators import login_required from django.core import urlresolvers from django.shortcuts import render_to_response from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ fr...
36.814433
101
0.679362
0
0
0
0
0
0
0
0
284
0.07953
0da2968bb359986875b9af1a418b84d7e635b431
480
py
Python
slackbuilder/blocks.py
kbeauregard/slackbuilder
866ec0ad737a2277bd043081dc08c6ebc182b2e3
[ "MIT" ]
null
null
null
slackbuilder/blocks.py
kbeauregard/slackbuilder
866ec0ad737a2277bd043081dc08c6ebc182b2e3
[ "MIT" ]
null
null
null
slackbuilder/blocks.py
kbeauregard/slackbuilder
866ec0ad737a2277bd043081dc08c6ebc182b2e3
[ "MIT" ]
1
2021-02-01T13:26:57.000Z
2021-02-01T13:26:57.000Z
DEFAULT_TEXT_TYPE = "mrkdwn" class BaseBlock: def generate(self): raise NotImplemented("Subclass missing generate implementation") class TextBlock(BaseBlock): def __init__(self, text, _type=DEFAULT_TEXT_TYPE): self._text = text self._type = _type def __repr__(self): retu...
25.263158
84
0.65625
445
0.927083
0
0
0
0
0
0
129
0.26875
0da30113756629b303663abfe1005ea53d21c7f3
551
py
Python
lopy_gateway/config.py
haroal/choco-lora
d72cce0bb3e090463fafb993fb1f51db2c634416
[ "MIT" ]
null
null
null
lopy_gateway/config.py
haroal/choco-lora
d72cce0bb3e090463fafb993fb1f51db2c634416
[ "MIT" ]
null
null
null
lopy_gateway/config.py
haroal/choco-lora
d72cce0bb3e090463fafb993fb1f51db2c634416
[ "MIT" ]
null
null
null
""" LoPy LoRaWAN Nano Gateway configuration options """ import machine import ubinascii WIFI_MAC = ubinascii.hexlify(machine.unique_id()).upper() # Set the Gateway ID to be the first 3 bytes of MAC address + 'FFFE' + last 3 bytes of MAC address GATEWAY_ID = '30aea4fffe4e5638' #WIFI_MAC[:6] + "FFFE" + WIFI_MAC[6:12]...
23.956522
99
0.731397
0
0
0
0
0
0
0
0
302
0.548094
0da6aee5954b956052c8a6ffe1cd4bb993643d75
1,560
py
Python
1-python-basico (Logica de programacao)/desafio-validador-cpf/desafio-cpf.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/desafio-validador-cpf/desafio-cpf.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
1-python-basico (Logica de programacao)/desafio-validador-cpf/desafio-cpf.py
Leodf/projetos-python
64e6262e6535d92624ad50148634d881608a7523
[ "MIT" ]
null
null
null
""" CPF = 079.004.419-64 ---------------------- 0 * 10 = 0 # 0 * 11 = 0 7 * 9 = 63 # 7 * 10 = 70 9 * 8 = 72 # 9 * 9 = 81 0 * 7 = 0 # 0 * 8 = 0 0 * 6 = 0 # 0 * 7 = 0 4 * 5 = 20 # 4 * 6 = 24 4 * 4 = 16 # 4 * 5 =...
21.666667
70
0.442949
0
0
0
0
0
0
0
0
964
0.612063
0da6ec5d34b8304770452661b5f8b2646b4f55b0
1,414
py
Python
HW6/mashavskih/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/mashavskih/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/mashavskih/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
import math def rectangle(lenght_rectangle, breadth_rectangle): area_rectangle = lenght_rectangle*breadth_rectangle print(f'The area of rectangle is {area_rectangle}.') def triangle(base_triangle, height_triangle): area_triangle = 0.5 * base_triangle * height_triangle print(f'The area of triangle is {a...
44.1875
93
0.662659
0
0
0
0
0
0
0
0
456
0.322489
0da7e379e2b733a5f37fb8dcb2fa4d62be4fbe82
1,204
py
Python
examples/constraints.py
jbarberia/PFNET.py
a2f327d84401acc63fd4ce91c99086770ce72a6b
[ "BSD-2-Clause" ]
3
2018-03-21T11:54:38.000Z
2020-12-29T16:46:14.000Z
examples/constraints.py
jbarberia/PFNET.py
a2f327d84401acc63fd4ce91c99086770ce72a6b
[ "BSD-2-Clause" ]
23
2018-03-29T00:42:06.000Z
2021-01-05T19:15:05.000Z
examples/constraints.py
ttinoco/PFNET.py
3a6845d132ddba6053fc84b1099597d99c0ac5e2
[ "BSD-2-Clause" ]
5
2018-10-01T19:05:11.000Z
2020-05-27T06:19:11.000Z
#***************************************************# # This file is part of PFNET. # # # # Copyright (c) 2015, Tomas Tinoco De Rubira. # # # # PFNET is released under the BSD 2-clause license...
19.419355
53
0.538206
0
0
0
0
0
0
0
0
501
0.416113
0da93efc72f90b6e00eddc17e58f0b6bc35a1911
11,343
py
Python
src/transbigdata/getbusdata.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
1
2022-03-06T00:15:19.000Z
2022-03-06T00:15:19.000Z
src/transbigdata/getbusdata.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
null
null
null
src/transbigdata/getbusdata.py
anitagraser/transbigdata
0eb972c78f9154c0a3f780f197ef9af406b2bb71
[ "BSD-3-Clause" ]
null
null
null
import pandas as pd import numpy as np import geopandas as gpd from shapely.geometry import Polygon,LineString import urllib.request import json from .CoordinatesConverter import gcj02towgs84,bd09towgs84,bd09mctobd09 from urllib import parse def getadmin(keyword,ak,subdistricts = False): ''' Input the keyword ...
35.782334
179
0.587234
0
0
0
0
0
0
0
0
3,988
0.351582
0da9e74b8a89d0e0f298b79e792dfb00d17cb34f
83
py
Python
user/apps.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
user/apps.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
user/apps.py
salimking/movepass
e03fa519f41974f25a70d23179722654b292ef11
[ "MIT" ]
null
null
null
from django.apps import AppConfig class userConfig(AppConfig): name = 'user'
13.833333
33
0.73494
46
0.554217
0
0
0
0
0
0
6
0.072289
0dac47ce9c74512652d2d18d61755c2ace5c01fc
819
py
Python
banner4.py
KingNasirul/BHBVirus
219c28ace488e9e47d94f82911c86a1d5974f941
[ "Unlicense" ]
null
null
null
banner4.py
KingNasirul/BHBVirus
219c28ace488e9e47d94f82911c86a1d5974f941
[ "Unlicense" ]
null
null
null
banner4.py
KingNasirul/BHBVirus
219c28ace488e9e47d94f82911c86a1d5974f941
[ "Unlicense" ]
null
null
null
import time import sys # Set color R = '\033[31m' # Red N = '\033[1;37m' # White G = '\033[32m' # Green O = '\033[0;33m' # Orange B = '\033[1;34m' #Blue def delay_print(s): for c in s: sys.stdout.write(c) sys.stdout.flush() time.sleep(0.01) delay_print delay_print (""+R+" db db d888888b...
32.76
82
0.467643
0
0
0
0
0
0
0
0
411
0.501832
0dadea50da63c33394e8442bed79c49670d3fd33
1,864
py
Python
flod_facilities_backend/app.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
1
2017-10-17T12:15:28.000Z
2017-10-17T12:15:28.000Z
flod_facilities_backend/app.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
6
2021-03-22T17:15:52.000Z
2022-01-13T00:39:58.000Z
flod_facilities_backend/app.py
Trondheim-kommune/Bookingbasen
58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6
[ "BSD-2-Clause-FreeBSD" ]
1
2019-09-09T13:35:03.000Z
2019-09-09T13:35:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from logging import StreamHandler, INFO from flask import Flask from flask.ext.mail import Message, Mail from api import create_api from database import init_db API_VERSION = "v1" def check_environment(app): file_backend = os.environ.get('FILE_BACKEND', '...
31.066667
75
0.647532
0
0
0
0
95
0.050966
0
0
486
0.26073
0dae67493e4ce5dba398f2d0ee4a34110cbc91fc
1,463
py
Python
aioneo4j4/client.py
zhangmoon/aioneo4j4
94b4544d2764eba5eea740959f194e289a581fd2
[ "MIT" ]
null
null
null
aioneo4j4/client.py
zhangmoon/aioneo4j4
94b4544d2764eba5eea740959f194e289a581fd2
[ "MIT" ]
null
null
null
aioneo4j4/client.py
zhangmoon/aioneo4j4
94b4544d2764eba5eea740959f194e289a581fd2
[ "MIT" ]
null
null
null
import asyncio import collections from yarl import URL from .transport import Transport class Client: def __init__( self, url='http://127.0.0.1:7474/', auth=None, transport=Transport, request_timeout=..., *, loop=None ): if loop is None: l...
20.041096
55
0.500342
1,370
0.936432
0
0
0
0
666
0.455229
118
0.080656
0dae8fa388ad674d62363a2f970444080cf8a34c
125
py
Python
a.5.4.py
AmanMishra148/python-repo
5b07fe19f2058fc2c909b96ae173f4346ac8d3da
[ "bzip2-1.0.6" ]
null
null
null
a.5.4.py
AmanMishra148/python-repo
5b07fe19f2058fc2c909b96ae173f4346ac8d3da
[ "bzip2-1.0.6" ]
1
2021-10-18T09:59:45.000Z
2021-10-18T09:59:45.000Z
a.5.4.py
AmanMishra148/python-repo
5b07fe19f2058fc2c909b96ae173f4346ac8d3da
[ "bzip2-1.0.6" ]
4
2021-10-18T09:40:54.000Z
2021-10-19T14:14:28.000Z
#Script to calc. area of circle. print("enter the radius") r= float(input()) area= 3.14*r**2 print("area of circle is",area)
20.833333
32
0.688
0
0
0
0
0
0
0
0
69
0.552
0db1ad1545f9291e0a6a356a3b76f6cf63cf27eb
2,132
py
Python
examples/jet_substructure/syn.py
juliovicenzi/logicnets
ce4ca89e3b11702bade591c320177f17b7d8d187
[ "Apache-2.0" ]
null
null
null
examples/jet_substructure/syn.py
juliovicenzi/logicnets
ce4ca89e3b11702bade591c320177f17b7d8d187
[ "Apache-2.0" ]
null
null
null
examples/jet_substructure/syn.py
juliovicenzi/logicnets
ce4ca89e3b11702bade591c320177f17b7d8d187
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Xilinx, 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...
39.481481
130
0.720919
0
0
0
0
0
0
0
0
1,024
0.4803
0db4cdbd4df856ae4ab6fd19cf45e6fa8d7272ae
348
py
Python
Test.py
ashmoreinc/IP-Scanner
55bbf45b43c4f8dd4d15066c0bebf2dbf8ed689e
[ "MIT" ]
4
2018-11-08T15:37:18.000Z
2022-03-18T01:59:20.000Z
Test.py
ashmoreinc/IP-Scanner
55bbf45b43c4f8dd4d15066c0bebf2dbf8ed689e
[ "MIT" ]
null
null
null
Test.py
ashmoreinc/IP-Scanner
55bbf45b43c4f8dd4d15066c0bebf2dbf8ed689e
[ "MIT" ]
1
2020-12-11T13:35:43.000Z
2020-12-11T13:35:43.000Z
from Scanner import * from threading import Thread Scanner = Scan_Handler(verbose=False, verbosity="high", threads=50, ports=[80, 443]) Scanner.Start_Scanner("192.168.0.1", "192.168.0.5") def Background (): for data in Scanner.Get_Outputs_Realtime(): print(str(data)) bg = Thread(target=Background) #bg...
26.769231
85
0.704023
0
0
0
0
0
0
0
0
52
0.149425
0db528e74438080829d841b6eb4aaef15ebfc109
325
py
Python
tests/views/test_ping.py
Eldies/image_storage
6bdf55b426813da2e45407418a09cc585b245a22
[ "MIT" ]
null
null
null
tests/views/test_ping.py
Eldies/image_storage
6bdf55b426813da2e45407418a09cc585b245a22
[ "MIT" ]
null
null
null
tests/views/test_ping.py
Eldies/image_storage
6bdf55b426813da2e45407418a09cc585b245a22
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import unittest from app import app class TestPingView(unittest.TestCase): def setUp(self): app.config['TESTING'] = True self.client = app.test_client() def test_ping(self): response = self.client.get('/ping') assert response.data.decode('utf-8') == 'p...
21.666667
54
0.621538
261
0.803077
0
0
0
0
0
0
52
0.16
0db65eebf31a3d9c1ea003346b7e0a6a218692e0
527
py
Python
DailyAssingments/Week1/Day2Assignments2.py
smooth-dasilva/Smoothstack-Workload
165ac6df72c7765a594fa472131def1ab2e44c78
[ "MIT" ]
null
null
null
DailyAssingments/Week1/Day2Assignments2.py
smooth-dasilva/Smoothstack-Workload
165ac6df72c7765a594fa472131def1ab2e44c78
[ "MIT" ]
null
null
null
DailyAssingments/Week1/Day2Assignments2.py
smooth-dasilva/Smoothstack-Workload
165ac6df72c7765a594fa472131def1ab2e44c78
[ "MIT" ]
null
null
null
#doc4 #1. print([1, 'Hello', 1.0]) #2 print([1, 1, [1,2]][2][1]) #3. out: 'b', 'c' print(['a','b', 'c'][1:]) #4. weekDict= {'Sunday':0,'Monday':1,'Tuesday':2,'Wednesday':3,'Thursday':4,'Friday':5,'Saturday':6, } #5. out: 2 if you replace D[k1][1] with D['k1][1] D={'k1':[1,2,3]} print(D['k1'][1]) #6. tup = ( ...
13.175
98
0.489564
0
0
0
0
0
0
0
0
213
0.404175
0db66f59bd69f7523d8edb86aebc42ecb9136011
4,609
py
Python
10/14/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
10/14/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
10/14/solve.py
juancroldan/tuenti-challenge
4b0b233f457366dd78e80c011ade138cd162e297
[ "Unlicense" ]
null
null
null
from threading import Thread from time import sleep from socket import socket, AF_INET, SOCK_STREAM from re import compile HOST = ('52.49.91.111', 2092) MAX_BUFFER = 2**15 MSGS = compile(r'^ROUND (\d+): (\d+) -> (\w+) \{(.+?)\}( no_proposal)?( \(ROUND FINISHED\))?$').search LEARN_ARGS = compile(r'servers: \[(.+?)\], s...
35.183206
128
0.605988
3,903
0.846821
0
0
0
0
0
0
968
0.210024
0db68207e367ebc14875e48b897fec665fce2710
7,600
py
Python
tests/test_packages/test_skills/test_registration_aw1/test_behaviours.py
bryanchriswhite/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
126
2019-09-07T09:32:44.000Z
2022-03-29T14:28:41.000Z
tests/test_packages/test_skills/test_registration_aw1/test_behaviours.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
1,814
2019-08-24T10:08:07.000Z
2022-03-31T14:28:36.000Z
tests/test_packages/test_skills/test_registration_aw1/test_behaviours.py
salman6049/agents-aea
d3f177a963eb855d9528555167255bf2b478f4ba
[ "Apache-2.0" ]
46
2019-09-03T22:13:58.000Z
2022-03-22T01:25:16.000Z
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI 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 ...
35.185185
132
0.656579
6,278
0.826053
0
0
92
0.012105
0
0
2,264
0.297895
0db95169c1f29d45bb1b316d97dd3b1f2a0218c5
5,971
py
Python
anopool/pool.py
willtrnr/anopool
0e3f882ae216e1897bdff1cbb311f3c2960908db
[ "MIT" ]
null
null
null
anopool/pool.py
willtrnr/anopool
0e3f882ae216e1897bdff1cbb311f3c2960908db
[ "MIT" ]
null
null
null
anopool/pool.py
willtrnr/anopool
0e3f882ae216e1897bdff1cbb311f3c2960908db
[ "MIT" ]
null
null
null
"""Generic object pool""" from __future__ import annotations __all__ = [ "Manager", "Pool", ] import contextlib import dataclasses import logging import queue import threading from abc import ABCMeta from typing import Generator, Generic, Optional, TypeVar from ._common import DEFAULT_SIZE from .exceptions ...
28.032864
86
0.567577
5,452
0.91308
2,176
0.364428
2,381
0.398761
0
0
1,989
0.33311
0dbad2c362c6766c5ba6dfdc508d36777761cdeb
1,090
py
Python
deepab/util/get_bins.py
antonkulaga/DeepAb
51a32d06d19815705bdbfb35a8a9518c17ec313a
[ "RSA-MD" ]
67
2021-07-02T08:31:10.000Z
2022-03-30T01:25:11.000Z
deepab/util/get_bins.py
antonkulaga/DeepAb
51a32d06d19815705bdbfb35a8a9518c17ec313a
[ "RSA-MD" ]
9
2021-08-18T10:32:27.000Z
2022-03-30T06:40:05.000Z
deepab/util/get_bins.py
antonkulaga/DeepAb
51a32d06d19815705bdbfb35a8a9518c17ec313a
[ "RSA-MD" ]
16
2021-07-17T08:33:30.000Z
2022-03-29T07:36:34.000Z
import math def get_dist_bins(num_bins, interval=0.5): bins = [(interval * i, interval * (i + 1)) for i in range(num_bins - 1)] bins.append((bins[-1][1], float('Inf'))) return bins def get_dihedral_bins(num_bins, rad=False): first_bin = -180 bin_width = 2 * 180 / num_bins bins = [(first_bin ...
24.772727
76
0.617431
0
0
0
0
0
0
0
0
5
0.004587
0dbc3d65f08a855cd3326a6dfe34ef3f6203d093
8,155
py
Python
tests/test_manifest.py
markfinger/python-webpack
41ed0a3afac0dc96cb22093bd2da1dcbd31cfc42
[ "MIT" ]
66
2015-05-06T17:20:20.000Z
2021-07-08T02:56:21.000Z
tests/test_manifest.py
markfinger/python-webpack
41ed0a3afac0dc96cb22093bd2da1dcbd31cfc42
[ "MIT" ]
26
2015-05-03T11:38:24.000Z
2016-01-01T22:32:45.000Z
tests/test_manifest.py
markfinger/python-webpack
41ed0a3afac0dc96cb22093bd2da1dcbd31cfc42
[ "MIT" ]
15
2015-05-11T19:02:15.000Z
2020-11-29T20:23:17.000Z
import unittest import os import json import mock import hashlib from webpack.conf import Conf from webpack.manifest import generate_manifest, generate_key, write_manifest, read_manifest, populate_manifest_file from webpack.compiler import webpack from .settings import ConfigFiles, OUTPUT_ROOT, WEBPACK from .utils impo...
33.016194
115
0.614102
7,811
0.957817
0
0
280
0.034335
0
0
488
0.059841
0dbe7e52a6fcd5026bcaa13575dd6d512f98dd47
1,368
py
Python
commonware/response/middleware.py
Osmose/commonware
e2e02ad47b553362929bfb741105f10c56a1bdc8
[ "BSD-3-Clause" ]
null
null
null
commonware/response/middleware.py
Osmose/commonware
e2e02ad47b553362929bfb741105f10c56a1bdc8
[ "BSD-3-Clause" ]
null
null
null
commonware/response/middleware.py
Osmose/commonware
e2e02ad47b553362929bfb741105f10c56a1bdc8
[ "BSD-3-Clause" ]
null
null
null
import inspect import time from django.conf import settings class _statsd(object): def incr(s, *a, **kw): pass def timing(s, *a, **kw): pass try: from statsd import statsd except ImportError: statsd = _statsd() class FrameOptionsHeader(object): """ Set an X-Frame-Options ...
24.872727
73
0.625731
1,218
0.890351
0
0
0
0
0
0
523
0.38231
0dbee3b7f12c94c66b785df1beab2df77b47d739
22,992
py
Python
tests/test_btc_rawtx_zcash.py
VDamas/app-cryptoescudo
9e53ccdd836f7b5c787927c74eba3b0ac5d079b6
[ "Apache-2.0" ]
null
null
null
tests/test_btc_rawtx_zcash.py
VDamas/app-cryptoescudo
9e53ccdd836f7b5c787927c74eba3b0ac5d079b6
[ "Apache-2.0" ]
null
null
null
tests/test_btc_rawtx_zcash.py
VDamas/app-cryptoescudo
9e53ccdd836f7b5c787927c74eba3b0ac5d079b6
[ "Apache-2.0" ]
1
2022-02-08T22:42:41.000Z
2022-02-08T22:42:41.000Z
import pytest from dataclasses import dataclass, field from functools import reduce from typing import List, Optional from helpers.basetest import BaseTestBtc, LedgerjsApdu, TxData, CONSENSUS_BRANCH_ID from helpers.deviceappbtc import DeviceAppBtc, CommException # Test data below is from a Zcash test log from Live te...
42.10989
155
0.62674
12,370
0.538013
0
0
12,389
0.53884
0
0
12,169
0.529271
0dbf20f53fd144327ad5c51a40da0f81c05f9283
1,776
py
Python
test.py
sguzman/duo-service-ready
c6dd88ccddfa2db13e1bed9787f77ca804bf48d9
[ "Unlicense" ]
null
null
null
test.py
sguzman/duo-service-ready
c6dd88ccddfa2db13e1bed9787f77ca804bf48d9
[ "Unlicense" ]
null
null
null
test.py
sguzman/duo-service-ready
c6dd88ccddfa2db13e1bed9787f77ca804bf48d9
[ "Unlicense" ]
null
null
null
import atexit import grpc import logging import os import server_pb2 import server_pb2_grpc port: str = None def init_env() -> None: global port port = os.environ['PORT'] logging.info('Found PORT at %s', port) def init_atexit() -> None: def end(): logging.info('bye') atexit.register...
21.39759
75
0.644144
0
0
0
0
0
0
0
0
284
0.15991
0dbf61d6373ec9f78a1ff9c0baa721ae32809835
394
py
Python
tests/dummy_project/spiders/dummy_spider.py
zack-wilson/scrapy-statsd
cfa2f40e243da30c7b1078cda16730f95bb79fda
[ "BSD-3-Clause" ]
null
null
null
tests/dummy_project/spiders/dummy_spider.py
zack-wilson/scrapy-statsd
cfa2f40e243da30c7b1078cda16730f95bb79fda
[ "BSD-3-Clause" ]
null
null
null
tests/dummy_project/spiders/dummy_spider.py
zack-wilson/scrapy-statsd
cfa2f40e243da30c7b1078cda16730f95bb79fda
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import datetime as dt import uuid import scrapy class DummySpiderSpider(scrapy.Spider): name = "dummy_spider" allowed_domains = ["example.com"] start_urls = ["http://example.com/"] def parse(self, response): yield { "uuid": str(uuid.uuid1()), "...
20.736842
43
0.573604
318
0.807107
168
0.426396
0
0
0
0
93
0.236041
0dc14be135ed1c10113f4ab5fbd2759629e41d4e
192
py
Python
library_management/library_management/doctype/customer_account/customer_account.py
jcgurango/library_management
f9859499eb12414889277fbdadfcd60290c320dd
[ "MIT" ]
null
null
null
library_management/library_management/doctype/customer_account/customer_account.py
jcgurango/library_management
f9859499eb12414889277fbdadfcd60290c320dd
[ "MIT" ]
null
null
null
library_management/library_management/doctype/customer_account/customer_account.py
jcgurango/library_management
f9859499eb12414889277fbdadfcd60290c320dd
[ "MIT" ]
null
null
null
# Copyright (c) 2021, JC and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class CustomerAccount(Document): pass
21.333333
49
0.791667
38
0.197917
0
0
0
0
0
0
105
0.546875
0dc28d03cd9039a35f49c8a676fc07ba9b6b1471
4,839
py
Python
neural_compressor/experimental/common/optimizer.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
100
2020-12-01T02:40:12.000Z
2021-09-09T08:14:22.000Z
neural_compressor/experimental/common/optimizer.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2021-01-05T00:16:17.000Z
2021-09-10T03:24:01.000Z
neural_compressor/experimental/common/optimizer.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2020-12-01T19:07:08.000Z
2021-08-30T14:20:07.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2021 Intel Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unl...
35.844444
98
0.656127
2,588
0.534821
0
0
1,998
0.412895
0
0
1,926
0.398016
0dc50a62229b8147dc2f55f4c1c6f9f415fa5d6c
20,561
py
Python
curation_validator.py
FlashpointProject/Curation-Validation-Bot
826bd86a4093c4a7fde16d9e511364f203c2266b
[ "MIT" ]
5
2021-02-15T19:05:52.000Z
2021-05-12T03:12:05.000Z
curation_validator.py
FlashpointProject/Curation-Validation-Bot
826bd86a4093c4a7fde16d9e511364f203c2266b
[ "MIT" ]
12
2021-02-13T02:12:04.000Z
2022-01-29T23:46:03.000Z
curation_validator.py
FlashpointProject/Curation-Validation-Bot
826bd86a4093c4a7fde16d9e511364f203c2266b
[ "MIT" ]
4
2021-02-11T20:49:05.000Z
2021-03-13T12:25:16.000Z
import base64 import shutil import json import re from enum import Enum, auto from typing import Optional import py7zr from cachetools import TTLCache, cached from ruamel.yaml import YAML, YAMLError from logger import getLogger import os import tempfile import zipfile import requests from bs4 import BeautifulSoup l ...
46.100897
139
0.581684
96
0.004669
0
0
1,718
0.083556
0
0
5,493
0.267156
0dc54bb903b475f38621941bf098cb9e92be0daf
548
py
Python
authentication/urls.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
authentication/urls.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
authentication/urls.py
thestackcoder/notifao_app
e21ab3c0eed72a64ee24508b92045de13c8385bb
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.urls import path from .views import login_view, register_user, reset_password from django.contrib.auth.views import LogoutView from .views import * urlpatterns = [ path('login/', login_view, name="login"), path(...
28.842105
75
0.695255
0
0
0
0
0
0
0
0
195
0.355839
0dc66aaede643e68b9fbae98bc7c2375fba4fa0b
2,835
py
Python
examples/get_tiles.py
cytomine/Cytomine-python-client
afd46c1a6bf88914610e961531979597f8efaf22
[ "Apache-2.0" ]
23
2015-04-28T07:58:25.000Z
2021-05-21T09:37:29.000Z
examples/get_tiles.py
cytomine/Cytomine-python-client
afd46c1a6bf88914610e961531979597f8efaf22
[ "Apache-2.0" ]
27
2017-01-12T15:11:39.000Z
2022-03-29T07:06:46.000Z
examples/get_tiles.py
cytomine/Cytomine-python-client
afd46c1a6bf88914610e961531979597f8efaf22
[ "Apache-2.0" ]
14
2016-09-02T19:51:54.000Z
2022-02-02T14:35:19.000Z
# -*- coding: utf-8 -*- # * Copyright (c) 2009-2018. Authors: see NOTICE file. # * # * 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...
38.310811
110
0.701587
0
0
0
0
0
0
0
0
1,111
0.391887
0dc682785b15f15c903947600de17c5139a1bca3
490
py
Python
info/modules/admin/__init__.py
gxz987/Dynamic_movie
ceb266dcb123cc2e51bda29a1da436e58b220be4
[ "MIT" ]
null
null
null
info/modules/admin/__init__.py
gxz987/Dynamic_movie
ceb266dcb123cc2e51bda29a1da436e58b220be4
[ "MIT" ]
6
2021-03-19T01:24:17.000Z
2022-03-11T23:50:23.000Z
info/modules/admin/__init__.py
bzg287288182/my-News
01e581ec53e44a9ed7ab8be1bcd9ddf84795acff
[ "MIT" ]
null
null
null
from flask import Blueprint admin_blu = Blueprint("admin", __name__, url_prefix="/admin") from .views import * @admin_blu.before_request def admin_identification(): """ 进入后台之前的校验 :return: """ # 我先从你的session获取下is_admin 如果能获取到 说明你是管理员 # 如果访问的接口是/admin/login 那么可以直接访问 is_login = request.ur...
22.272727
74
0.691837
0
0
0
0
516
0.81388
0
0
328
0.51735