hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
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
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
9e2765f3e4657262b967d2c8984a56f0d3a891f1
883
py
Python
exercicios/aula18-ex084.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
exercicios/aula18-ex084.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
exercicios/aula18-ex084.py
anildoferreira/CursoPython-PyCharm
56c3962d6cc7d43482a9649a482619adba780d81
[ "MIT" ]
null
null
null
temp = [] princ = [] c = maior = menor = 0 continuar = ' ' while continuar not in 'Nn': c += 1 print(f'{c} PESSOA') print('-' * 10) temp.append(str(input(f'Digite o seu nome: '))) temp.append(float(input(f'Digite o seu peso: '))) if c == 1: maior = menor = temp[1] else: if te...
22.641026
56
0.520951
temp = [] princ = [] c = maior = menor = 0 continuar = ' ' while continuar not in 'Nn': c += 1 print(f'{c}º PESSOA') print('-' * 10) temp.append(str(input(f'Digite o seu nome: '))) temp.append(float(input(f'Digite o seu peso: '))) if c == 1: maior = menor = temp[1] else: if t...
2
0
0
0
0
0
0
0
0
e05b3d75e3b753188335b9edf04c6ef40364090b
20,463
py
Python
core/botCore.py
iwannadapdap/Simple-Binance-Trader
905e205803c0e8f5b5af27e5a32c563944362424
[ "MIT" ]
null
null
null
core/botCore.py
iwannadapdap/Simple-Binance-Trader
905e205803c0e8f5b5af27e5a32c563944362424
[ "MIT" ]
null
null
null
core/botCore.py
iwannadapdap/Simple-Binance-Trader
905e205803c0e8f5b5af27e5a32c563944362424
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import os from flask_socketio import SocketIO from flask import Flask MULTI_DEPTH_INDICATORS = ['ema', 'sma', 'rma', 'order'] # Initilize globals. ## Setup flask app/socket APP = Flask(__name__) SOCKET_IO = SocketIO(APP) ## Initilize base core object. core_object = None started_up...
39.126195
203
0.620779
#! /usr/bin/env python3 import os import sys import time import json import os.path import hashlib import logging import threading from decimal import Decimal from flask_socketio import SocketIO from flask import Flask, render_template, url_for, request from binance_api import api_master_rest_caller from binance_api i...
0
3,790
0
12,578
0
3,038
0
35
543
12c2373f5be85698acee1ae90c41ce2fe8b0ed68
1,641
py
Python
frontend/test/test_SignUpRequest.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
1
2021-04-08T22:02:44.000Z
2021-04-08T22:02:44.000Z
frontend/test/test_SignUpRequest.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
79
2021-02-06T22:55:52.000Z
2021-04-15T20:24:56.000Z
frontend/test/test_SignUpRequest.py
CMPUT404-wi21-project/CMPUT404-project-socialdistribution
b88ca3608e16a1bae72cd7c8cfc212db74d1b2c0
[ "W3C-20150513" ]
4
2021-02-14T15:13:15.000Z
2021-04-17T06:21:11.000Z
if __name__ == "__main__": try: test_SignUpRequest() print("test_SignUpRequest passed") except: print("test_SignUpRequest Failed")
37.295455
96
0.730652
from selenium import webdriver from test_utils import * from time import sleep import random def test_SignUpRequest(): driver = getFrontEndWebDriver() sleep(1) driver.find_element_by_xpath(".//div[@role='tab' and contains(@id,'Register')]").click() username_input = driver.find_element_by_xpath(fro...
0
0
0
0
0
1,357
0
5
111
6b795fa3b8cecd2854b0c676c4b54bf5e6a30cf3
601
py
Python
07_hidden_dir/Resources/script.py
ssmrabet/Darkly
089ac7ac19fd1f08a61c81e63becbea65e2f3b4f
[ "MIT" ]
null
null
null
07_hidden_dir/Resources/script.py
ssmrabet/Darkly
089ac7ac19fd1f08a61c81e63becbea65e2f3b4f
[ "MIT" ]
null
null
null
07_hidden_dir/Resources/script.py
ssmrabet/Darkly
089ac7ac19fd1f08a61c81e63becbea65e2f3b4f
[ "MIT" ]
null
null
null
if __name__ == "__main__": url = "http://192.168.1.40/.hidden/" scrapping_recursive(url)
23.115385
44
0.625624
import requests import bs4 as bs def scrapping_recursive(url): r = requests.get(url) s = bs.BeautifulSoup(r.text, 'html.parser') if (s is not None): links = s.find_all("a") #f = open("result.txt", "a+") for link in links: final_link = link.get('href') if (final_link == "README"): r = requests.get(...
0
0
0
0
0
453
0
-11
67
0e7a9cfca5eead38c216a3c2821ac65326cfec71
6,193
py
Python
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
12
2015-10-20T10:22:01.000Z
2021-07-19T10:09:44.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
2
2015-10-20T10:22:55.000Z
2017-02-13T11:05:25.000Z
Sketches/MPS/BugReports/FixTests/Kamaelia/Kamaelia/Apps/MH/Profiling.py
sparkslabs/kamaelia_orig
24b5f855a63421a1f7c6c7a35a7f4629ed955316
[ "Apache-2.0" ]
6
2015-03-09T12:51:59.000Z
2020-03-01T13:06:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
37.083832
145
0.51316
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2010 British Broadcasting Corporation and Kamaelia Contributors(1) # # (1) Kamaelia Contributors are listed in the AUTHORS file and at # http://www.kamaelia.org/AUTHORS - please extend this file, # not this notice. # # Licensed under the Apache License,...
0
0
0
4,650
0
133
0
87
211
0ff91e3fafb80c50fca16bcdb41b0cd40242dff6
1,373
py
Python
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
hummingbot/cli/utils/symbol_splitter.py
mitakash/hummingbot
58c2bc421f5da9cef472fea473f9b5273466b11c
[ "Apache-2.0" ]
null
null
null
import re BINANCE_SYMBOL_SPLITTER = re.compile(r"^(\w+)(BTC|ETH|BNB|XRP|USDT|USDC|TUSD|PAX)$")
30.511111
118
0.589221
import re from typing import Tuple BINANCE_SYMBOL_SPLITTER = re.compile(r"^(\w+)(BTC|ETH|BNB|XRP|USDT|USDC|TUSD|PAX)$") class SymbolSplitter: def __init__(self, market: str, symbol: str): self._symbol: Tuple[str, str] = self.split(market, symbol) @property def base_asset(self): return s...
0
1,027
0
198
0
0
0
3
45
fffd4b71438fcbfa4a73dc716b4d928f5fe5b3c0
2,290
py
Python
code/analyze_type_precision.py
MrZhengXin/OptiPrompt
ec3654ecdcb6b7fb7d35b0e7f5c56687ff757f76
[ "MIT" ]
null
null
null
code/analyze_type_precision.py
MrZhengXin/OptiPrompt
ec3654ecdcb6b7fb7d35b0e7f5c56687ff757f76
[ "MIT" ]
null
null
null
code/analyze_type_precision.py
MrZhengXin/OptiPrompt
ec3654ecdcb6b7fb7d35b0e7f5c56687ff757f76
[ "MIT" ]
null
null
null
import json import os print("relation", "raw_p", "few_p", "p inc", "raw_type_p", "few_type_p", "t inc", sep='\t') relations = ['P1001', 'P101', 'P103', 'P106', 'P108', 'P127', 'P1303', 'P131', 'P136', 'P1376', 'P138', 'P140', 'P1412', 'P159', 'P17', 'P176', 'P178', 'P19', 'P190', 'P20', 'P264', 'P27', 'P276', 'P279'...
39.482759
334
0.662882
import json import os print("relation", "raw_p", "few_p", "p inc", "raw_type_p", "few_type_p", "t inc", sep='\t') relations = ['P1001', 'P101', 'P103', 'P106', 'P108', 'P127', 'P1303', 'P131', 'P136', 'P1376', 'P138', 'P140', 'P1412', 'P159', 'P17', 'P176', 'P178', 'P19', 'P190', 'P20', 'P264', 'P27', 'P276', 'P279'...
0
0
0
0
0
645
0
0
46
22ea2f0346f2cc607b6a5343c004181e08422137
2,229
py
Python
utils.py
nrichards17/diabetes-pytorch
80ba7e366e5850657cdd29dd8f81adf81408c56f
[ "MIT" ]
null
null
null
utils.py
nrichards17/diabetes-pytorch
80ba7e366e5850657cdd29dd8f81adf81408c56f
[ "MIT" ]
null
null
null
utils.py
nrichards17/diabetes-pytorch
80ba7e366e5850657cdd29dd8f81adf81408c56f
[ "MIT" ]
null
null
null
import os import logging import pandas as pd def set_logger(log_path): """Set the logger to log info in terminal and file `log_path`. In general, it is useful to have a logger so that every output to the terminal is saved in a permanent file. Here we save it to `model_dir/train.log`. Example: ``...
28.576923
96
0.662629
import json import os import logging import pandas as pd import torch class Params(dict): def save(self, json_path): with open(json_path, 'w') as f: json.dump(self, f, indent=4) def load(self, json_path): with open(json_path) as f: params = json.load(f) sel...
0
0
0
488
0
197
0
-19
136
54d538a4ca0dd49fa6ee3492bdccefda46e1cbaa
1,500
py
Python
tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
tests/tests_test_workflow/test_integ_workflow/integ_test/test_integ_test_start_properties_opensearch_dashboards.py
rishabh6788/opensearch-build
f03a5848397a2758ea29a4edc0bb6b221c0fc2e3
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license.
45.454545
131
0.796
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import unittest from unittest.mock import MagicMock, Mock, patch from test_workflow.integ_test.integ_test_start_properties_ope...
0
1,005
0
53
0
0
0
131
118
5d40ae920735fb7e5b921b8c8a69c1c85db58c7a
907
py
Python
Python/main.py
edeutsch/USI
7fadea3cc1e23cea8b33a210b05bf67ebc0a4b38
[ "Apache-2.0" ]
null
null
null
Python/main.py
edeutsch/USI
7fadea3cc1e23cea8b33a210b05bf67ebc0a4b38
[ "Apache-2.0" ]
1
2018-08-31T16:59:03.000Z
2018-08-31T16:59:03.000Z
Python/main.py
edeutsch/USI
7fadea3cc1e23cea8b33a210b05bf67ebc0a4b38
[ "Apache-2.0" ]
1
2018-08-06T17:46:37.000Z
2018-08-06T17:46:37.000Z
from Spectrum import Spectrum from UniversalSpectrumIdentifier import UniversalSpectrumIdentifier # USI created usi = UniversalSpectrumIdentifier("asdf:PXD000561::Adult_Frontalcortex_bRP_Elite_85_f09:scan:17555:VLHPLEGAVVIIFK/2") # usi = UniversalSpectrumIdentifier("mzspec:PXD002437:00261_A06_P001564_B00E_A00_R1:...
43.190476
127
0.76516
from Spectrum import Spectrum from UniversalSpectrumIdentifier import UniversalSpectrumIdentifier # USI created usi = UniversalSpectrumIdentifier("asdf:PXD000561::Adult_Frontalcortex_bRP_Elite_85_f09:scan:17555:VLHPLEGAVVIIFK/2") # usi = UniversalSpectrumIdentifier("mzspec:PXD002437:00261_A06_P001564_B00E_A00_R1:...
0
0
0
0
0
0
0
0
0
78b70ffad5c6ae171231f8e98d808c39a15557be
2,854
py
Python
src/vtra/plot/create_crop_maps.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
3
2018-07-09T12:15:46.000Z
2020-12-03T07:02:23.000Z
src/vtra/plot/create_crop_maps.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
1
2019-05-09T21:57:20.000Z
2019-05-09T21:57:20.000Z
src/vtra/plot/create_crop_maps.py
GFDRR/vietnam-transport
71f6fc8cb7f1ca7bccb9a29d544869b442e68bfc
[ "MIT" ]
2
2018-07-23T12:49:21.000Z
2021-06-03T11:00:44.000Z
"""Crop maps """ # pylint: disable=C0103 import matplotlib as mpl mpl.style.use('ggplot') mpl.rcParams['font.size'] = 11. mpl.rcParams['axes.labelsize'] = 14. mpl.rcParams['xtick.labelsize'] = 11. mpl.rcParams['ytick.labelsize'] = 11. mpl.rcParams['savefig.pad_inches'] = 0.05 if __name__ == '__main__': main()
38.567568
126
0.565172
"""Crop maps """ # pylint: disable=C0103 import os import sys import cartopy.crs as ccrs import cartopy.io.shapereader as shpreader import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np from vtra.utils import * mpl.style.use('ggplot') mpl.rcParams['font.size'] = 11. mpl.rcParams['axes.labelsize'...
0
0
0
0
0
2,344
0
13
178
0369ac970383309c0f70c4043c5bd0ee8c516bbb
1,113
py
Python
src/plot-figure-7.py
lorenzocorneo/surrounded-by-the-clouds
536375943f8a6c23b31d6528403624d586ce1270
[ "MIT" ]
2
2021-03-25T15:56:07.000Z
2021-10-10T13:02:52.000Z
src/plot-figure-7.py
lorenzocorneo/surrounded-by-the-clouds
536375943f8a6c23b31d6528403624d586ce1270
[ "MIT" ]
null
null
null
src/plot-figure-7.py
lorenzocorneo/surrounded-by-the-clouds
536375943f8a6c23b31d6528403624d586ce1270
[ "MIT" ]
null
null
null
from collections import defaultdict import matplotlib.pyplot as plt from boxes import generate_legend_handles, group_boxplot from commons import WIDTH_IN with open("data/hops.csv") as f: ret = defaultdict(list) for l in f.readlines()[1:]: split = l.rstrip("\n").split(",") # is datacenter? ...
25.295455
77
0.638814
from collections import defaultdict import matplotlib.pyplot as plt from boxes import generate_legend_handles, group_boxplot from commons import WIDTH_IN with open("data/hops.csv") as f: ret = defaultdict(list) for l in f.readlines()[1:]: split = l.rstrip("\n").split(",") # is datacenter? ...
0
0
0
0
0
0
0
0
0
55b3ede38b9889f29e3a15bff2b46b25815cfeec
740
py
Python
DataAnalysis/SearchTools/WordSearches.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
DataAnalysis/SearchTools/WordSearches.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
6
2020-03-24T17:34:24.000Z
2021-12-13T20:14:34.000Z
DataAnalysis/SearchTools/WordSearches.py
AdamSwenson/TwitterProject
8c5dc7a57eac611b555058736d609f2f204cb836
[ "MIT" ]
null
null
null
""" Created by adam on 5/31/18 """ __author__ = 'adam' import sqlite3 def get_all_words_in_tweet(tweetId, db): """ Returns all the words used in the tweet Example: words = get_all_words_in_tweet(331546674315014144, db=environment.TWEET_DB_NO_STOP) words = [x[2] for x in words] Result:...
21.764706
91
0.589189
""" Created by adam on 5/31/18 """ __author__ = 'adam' import sqlite3 import environment def get_all_words_in_tweet(tweetId, db): """ Returns all the words used in the tweet Example: words = get_all_words_in_tweet(331546674315014144, db=environment.TWEET_DB_NO_STOP) words = [x[2] for x in...
0
0
0
0
0
0
0
-3
22
f65859568809091cac6c05f41f4c989b4ab25104
1,318
py
Python
Source/SourceGaussian.py
srio/BeamlineComponents
0fd107365f2ff3ec413df5ec6f4694a7903cbb94
[ "MIT" ]
null
null
null
Source/SourceGaussian.py
srio/BeamlineComponents
0fd107365f2ff3ec413df5ec6f4694a7903cbb94
[ "MIT" ]
2
2016-11-04T15:10:30.000Z
2016-11-04T15:15:59.000Z
Source/SourceGaussian.py
srio/BeamlineComponents
0fd107365f2ff3ec413df5ec6f4694a7903cbb94
[ "MIT" ]
null
null
null
""" Represents an optical Gaussian source. """
25.843137
79
0.685888
""" Represents an optical Gaussian source. """ class SourceGaussian(object): def __init__(self, sigma_x, sigma_y, sigma_x_prime, sigma_y_prime, energy): self._sigma_x = sigma_x self._sigma_y = sigma_y self._sigma_x_prime = sigma_x_prime self._sigma_y_prime = sigma_y_prime se...
0
0
0
1,248
0
0
0
0
23
60487050897e32dddf4b8bc06326498770016f4e
2,165
py
Python
data/transcoder_evaluation_gfg/python/SUBSET_SUM_DIVISIBLE_M.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/SUBSET_SUM_DIVISIBLE_M.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/SUBSET_SUM_DIVISIBLE_M.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ ([2, 5, 7, 12, 13, 13, 15, 18, 20, 21, 22, 26, 27, 41, 41, 50, 53, 57, 5...
48.111111
171
0.439261
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # def f_gold ( arr , n , m ) : if ( n > m ) : return True DP = [ False for i in range ( m ) ] for i in range (...
0
0
0
0
0
550
0
0
22
5a67f959ffbb10d127fdebfd245b28d5f2ba7a70
11,801
py
Python
python/aocrecs/logic/events.py
Rotzbua/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
7
2019-10-08T09:04:48.000Z
2021-02-06T00:05:53.000Z
python/aocrecs/logic/events.py
happyleavesaoc/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
10
2020-01-18T22:14:09.000Z
2021-07-31T21:43:05.000Z
python/aocrecs/logic/events.py
happyleavesaoc/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
5
2020-05-08T11:35:14.000Z
2022-01-16T12:41:57.000Z
"""Events.""" import networkx def get_sides(matches, participants): """Get users per side given matches.""" users = {} for match in matches: users.update({ p['user_id']: dict( id=p['user_id'], name=p['user_name'] or p['name'], platform_i...
41.847518
149
0.614185
"""Events.""" import asyncio import networkx from aocrecs.cache import cached from aocrecs.util import by_key def get_sides(matches, participants): """Get users per side given matches.""" users = {} for match in matches: users.update({ p['user_id']: dict( id=p['user_id...
0
7,151
1,392
0
0
0
0
14
135
1e4aa6c0af4512f3bea0466bf347d6d2bb5d4aa6
225
py
Python
lib/uModBus/defconvert.py
mbrizuelaarg/isp_node_v3
0656c8fed380ed7db8970113aae63a2d155e3420
[ "MIT" ]
null
null
null
lib/uModBus/defconvert.py
mbrizuelaarg/isp_node_v3
0656c8fed380ed7db8970113aae63a2d155e3420
[ "MIT" ]
null
null
null
lib/uModBus/defconvert.py
mbrizuelaarg/isp_node_v3
0656c8fed380ed7db8970113aae63a2d155e3420
[ "MIT" ]
null
null
null
# Coneversiones de unidades
22.5
60
0.675556
# Coneversiones de unidades import struct import binascii def float_to_hex(f): return hex(struct.unpack('<I', struct.pack('<f', f))[0]) def double_to_hex(f): return hex(struct.unpack('<Q', struct.pack('<d', f))[0])
0
0
0
0
0
121
0
-14
90
d6406d3649d44ec3b677763c0ad156e48067ec63
3,959
py
Python
MiniPlayerViewWidget.py
neoaggelos/qcmus
b584b3de55efe24a2fab35f7b29eeef6148428f4
[ "MIT" ]
3
2018-05-29T07:02:03.000Z
2021-10-30T16:25:56.000Z
MiniPlayerViewWidget.py
neoaggelos/qcmus
b584b3de55efe24a2fab35f7b29eeef6148428f4
[ "MIT" ]
null
null
null
MiniPlayerViewWidget.py
neoaggelos/qcmus
b584b3de55efe24a2fab35f7b29eeef6148428f4
[ "MIT" ]
null
null
null
# MiniPlayerViewWidget.py from _prefs import miniplayer_coversize coversize = miniplayer_coversize
35.348214
120
0.610255
# MiniPlayerViewWidget.py from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * import sys, subprocess, time, threading, datetime, os, mutagen from _prefs import miniplayer_coversize, cmus_remote_cmd, player_coversize coversize = miniplayer_coversize class MiniPlayerViewWidget(QWidget)...
0
0
0
3,652
0
0
0
93
113
1073dbfbefe70f8b5ce421cb36d8c129550ec237
1,420
py
Python
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
10
2019-09-06T21:51:43.000Z
2022-03-26T12:27:16.000Z
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
12
2019-09-06T19:15:52.000Z
2021-12-05T02:05:10.000Z
src/flake8_absolute_import/core.py
bskinn/flake8-absolute-import
18c97a5da14717ad4ed079eaec526826be7bf16c
[ "MIT" ]
1
2020-06-13T20:23:42.000Z
2020-06-13T20:23:42.000Z
r"""*Main implementation file for* ``flake8-absolute-import``. flake8 plugin to require absolute imports **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 6 Sep 2019 **Copyright** \(c) Brian Skinn 2019-2021 **Source Repository** http://github.com/bskinn/flake8-absolute-import **License...
22.1875
70
0.647887
r"""*Main implementation file for* ``flake8-absolute-import``. flake8 plugin to require absolute imports **Author** Brian Skinn (bskinn@alum.mit.edu) **File Created** 6 Sep 2019 **Copyright** \(c) Brian Skinn 2019-2021 **Source Repository** http://github.com/bskinn/flake8-absolute-import **License...
0
0
0
858
0
0
0
22
92
885c791a63037ad680d9dcaab6b342c198504176
732
py
Python
urls.py
yoramk2/halolib
c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29
[ "MIT" ]
2
2020-07-22T13:28:47.000Z
2021-02-08T04:38:06.000Z
urls.py
yoramk2/halolib
c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29
[ "MIT" ]
2
2021-06-10T20:59:03.000Z
2021-11-15T17:47:59.000Z
urls.py
yoramk2/halolib
c05bc9f9c37d09700c5a42dcd3b9a74c0c5c0c29
[ "MIT" ]
1
2021-02-08T04:38:09.000Z
2021-02-08T04:38:09.000Z
# Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # from django.conf import settings urlpatterns = [ # Example: url(r'^', include('halolib.halolib.urls')), #url(r'^(?P<url>.*)$', proxy),#, ProxyLink.as_view(), name='proxy'), # Uncomment the adm...
30.5
91
0.698087
from django.conf.urls import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() # from django.conf import settings urlpatterns = [ # Example: url(r'^', include('halolib.halolib.urls')), #url(r'^(?P<url>.*)$', proxy),#, ProxyLink.as_view(), name='pr...
0
0
0
0
0
0
0
9
22
45df360af4bd2108103929d449a6b5f49a957b14
13,766
py
Python
web/kathe.py
avuko/kathe
d7f80965484fb83f47e4f7cb78c424ff8722a319
[ "BSD-3-Clause" ]
21
2018-03-23T13:44:09.000Z
2022-01-19T01:16:06.000Z
web/kathe.py
avuko/kathe
d7f80965484fb83f47e4f7cb78c424ff8722a319
[ "BSD-3-Clause" ]
11
2019-07-29T12:57:41.000Z
2022-01-22T09:27:41.000Z
web/kathe.py
avuko/kathe
d7f80965484fb83f47e4f7cb78c424ff8722a319
[ "BSD-3-Clause" ]
5
2018-12-11T01:23:14.000Z
2021-09-16T06:16:21.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module is meant to be used together with the web app. For the stand alone CLI implementation, see parent directory. """ import os import unicodedata import logging import defaults logger = logging.getLogger() try: import redis except ImportError: print('...
40.369501
86
0.645576
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module is meant to be used together with the web app. For the stand alone CLI implementation, see parent directory. """ from datetime import datetime import ast import os import re import unicodedata import logging import defaults logger = logging.getLogger() tr...
0
0
0
0
0
2,446
0
-23
230
2c88d2e79259cfe90133daf6b9c7d0e294c455db
877
py
Python
main.py
mdarman187/website-blocker
c0191e9679f128aa95f7d5a5aff65f0a755b9ce3
[ "BSD-2-Clause" ]
1
2021-05-06T11:53:51.000Z
2021-05-06T11:53:51.000Z
main.py
mdarman187/website-blocker
c0191e9679f128aa95f7d5a5aff65f0a755b9ce3
[ "BSD-2-Clause" ]
null
null
null
main.py
mdarman187/website-blocker
c0191e9679f128aa95f7d5a5aff65f0a755b9ce3
[ "BSD-2-Clause" ]
1
2021-05-09T15:31:14.000Z
2021-05-09T15:31:14.000Z
import time from datetime import datetime as dt hp = r"C:\Windows\System32\drivers\hosts" #provide the proper host path according to yor system redirect = "127.0.0.1" web = ["www.youtube.com","www.facebook.com"] #add the website links in the list while True: if dt(dt.now().year, dt.now().month, dt.now().day,9) <...
31.321429
119
0.600912
import time from datetime import datetime as dt hp = r"C:\Windows\System32\drivers\hosts" #provide the proper host path according to yor system redirect = "127.0.0.1" web = ["www.youtube.com","www.facebook.com"] #add the website links in the list while True: if dt(dt.now().year, dt.now().month, dt.now().day,9) <...
0
0
0
0
0
0
0
0
0
a7745a192cb1bb04a777308a559458f888187067
7,501
py
Python
sedldata/migrate/versions/c2f1fafd2225_fix_bad_casting.py
OpenDataServices/sedldata
c7f3b13969bb9c9a494a5fadf1456cc85e9bf2cc
[ "BSD-3-Clause" ]
null
null
null
sedldata/migrate/versions/c2f1fafd2225_fix_bad_casting.py
OpenDataServices/sedldata
c7f3b13969bb9c9a494a5fadf1456cc85e9bf2cc
[ "BSD-3-Clause" ]
null
null
null
sedldata/migrate/versions/c2f1fafd2225_fix_bad_casting.py
OpenDataServices/sedldata
c7f3b13969bb9c9a494a5fadf1456cc85e9bf2cc
[ "BSD-3-Clause" ]
1
2019-01-20T19:39:11.000Z
2019-01-20T19:39:11.000Z
"""Fix bad casting Revision ID: c2f1fafd2225 Revises: bff84c33d64d Create Date: 2019-01-10 15:41:34.358222 """ # revision identifiers, used by Alembic. revision = 'c2f1fafd2225' down_revision = 'bff84c33d64d' branch_labels = None depends_on = None
39.898936
163
0.710039
"""Fix bad casting Revision ID: c2f1fafd2225 Revises: bff84c33d64d Create Date: 2019-01-10 15:41:34.358222 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = 'c2f1fafd2225' down_revision = 'bff84c33d64d' branch_labels = No...
0
0
0
0
0
7,112
0
24
112
f20b9ad554df7baf34a36e8ad592de4e2452bc61
1,226
py
Python
src/HafrenHaver/pexels_pager.py
InnovAnon-Inc/HafrenHaver
5283ae3817c500f2365d1c8108dd3270aceb28fa
[ "Unlicense" ]
2
2020-11-09T19:30:26.000Z
2020-12-29T21:38:40.000Z
src/HafrenHaver/pexels_pager.py
InnovAnon-Inc/HafrenHaver
5283ae3817c500f2365d1c8108dd3270aceb28fa
[ "Unlicense" ]
null
null
null
src/HafrenHaver/pexels_pager.py
InnovAnon-Inc/HafrenHaver
5283ae3817c500f2365d1c8108dd3270aceb28fa
[ "Unlicense" ]
null
null
null
#! /usr/bin/env python3 if __name__ == "__main__": main () quit ()
25.541667
53
0.563622
#! /usr/bin/env python3 from pager import Pager from pexels_results import PexelsResults class PexelsPager (Pager): def __init__ (self, session=None, *args, **kwargs): results = PexelsResults (session, *args, **kwargs) Pager.__init__ (self, results, *args, **kwargs) def req (self, **kwargs): rets = Pager...
0
0
0
432
0
593
0
15
116
d1b3a101bc62092128d8f6f3b3d8380a8a37832c
641
py
Python
schemaregistry/storage/error.py
reducingwip/schemaregistry
30f0377b70253c642404f152c4eb531406ecfd5a
[ "MIT" ]
null
null
null
schemaregistry/storage/error.py
reducingwip/schemaregistry
30f0377b70253c642404f152c4eb531406ecfd5a
[ "MIT" ]
null
null
null
schemaregistry/storage/error.py
reducingwip/schemaregistry
30f0377b70253c642404f152c4eb531406ecfd5a
[ "MIT" ]
null
null
null
""" error.py ~~~~~~~~ This module contains errors to be thrown by storage modules :copyright: (c) by 2016 James Moore :license: BSD, see LICENSE for more details """
19.424242
63
0.650546
""" error.py ~~~~~~~~ This module contains errors to be thrown by storage modules :copyright: (c) by 2016 James Moore :license: BSD, see LICENSE for more details """ class SchemaExistsError(Exception): """ Thrown when a schema already exists """ pass class SchemaDoesNotExistError...
0
0
0
362
0
0
0
0
92
6d3ab87a1c16bb84c009a754914c611e25536fb3
512
py
Python
backend/apps/blackswan/migrations/0011_auto_20190716_1943.py
arshul/blackswan
1a651214e14e738ebac320c775e05ece61a2a1f8
[ "MIT" ]
2
2019-09-10T21:58:19.000Z
2019-10-20T18:46:23.000Z
backend/apps/blackswan/migrations/0011_auto_20190716_1943.py
arshul/blackswan
1a651214e14e738ebac320c775e05ece61a2a1f8
[ "MIT" ]
46
2019-05-14T03:26:00.000Z
2020-06-05T20:48:16.000Z
backend/apps/blackswan/migrations/0011_auto_20190716_1943.py
arshul/blackswan
1a651214e14e738ebac320c775e05ece61a2a1f8
[ "MIT" ]
5
2019-10-02T16:46:32.000Z
2020-02-18T05:53:37.000Z
# Generated by Django 2.1.1 on 2019-07-16 19:43
21.333333
47
0.5625
# Generated by Django 2.1.1 on 2019-07-16 19:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blackswan', '0010_user_full_name'), ] operations = [ migrations.RenameField( model_name='project', old_name='title', ...
0
0
0
406
0
0
0
11
46
0f572b130d1694f5c837089a20bc12b0396745a6
1,307
py
Python
097_Interleaving_String.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
097_Interleaving_String.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
097_Interleaving_String.py
adwardlee/leetcode_solutions
f386869161181e153e29165d8fff06492bb192f3
[ "MIT" ]
null
null
null
''' Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration where they are divided into non-empty substrings such that: s = s1 + s2 + ... + sn t = t1 + t2 + ... + tm |n - m| <= 1 The interleaving is s1 + t1 + s2 + t2 + s3 + t3 ...
29.044444
117
0.505738
''' Given strings s1, s2, and s3, find whether s3 is formed by an interleaving of s1 and s2. An interleaving of two strings s and t is a configuration where they are divided into non-empty substrings such that: s = s1 + s2 + ... + sn t = t1 + t2 + ... + tm |n - m| <= 1 The interleaving is s1 + t1 + s2 + t2 + s3 + t3 ...
0
0
0
645
0
0
0
0
22
7a67be7f805caf6e90c3c75aaa16a3abda76ba3a
487
py
Python
for.py
PMinThant/My-Python
fbcd6906e442c0d7b42a93c366ec608de9fb402e
[ "MIT" ]
null
null
null
for.py
PMinThant/My-Python
fbcd6906e442c0d7b42a93c366ec608de9fb402e
[ "MIT" ]
null
null
null
for.py
PMinThant/My-Python
fbcd6906e442c0d7b42a93c366ec608de9fb402e
[ "MIT" ]
null
null
null
for var_x in range(1,6): print(var_x) var_i = ["Apple","Banana","Pieapple","Orange","Lime"] for var_x in var_i: print(var_x) food_info={"Food_1":"Apple","Food_2":"Banana","Food_3":"Pieapple","Food_4":"Mango","Food_5":"Orange","Food_6":"Lime"} index_num1 = range(len(dict.keys(food_info))) key_...
30.4375
118
0.64271
for var_x in range(1,6): print(var_x) var_i = ["Apple","Banana","Pieapple","Orange","Lime"] for var_x in var_i: print(var_x) food_info={"Food_1":"Apple","Food_2":"Banana","Food_3":"Pieapple","Food_4":"Mango","Food_5":"Orange","Food_6":"Lime"} index_num1 = range(len(dict.keys(food_info))) key_...
0
0
0
0
0
0
0
0
0
448a9870dfde912c7a758d249170aff35f96d60b
97
py
Python
my/media/movies.py
aluhrs13/HPI
e750666e30e8987f3a4c46755857dc85dd64446c
[ "MIT" ]
1,026
2020-03-16T16:53:29.000Z
2022-03-29T16:03:38.000Z
my/media/movies.py
aluhrs13/HPI
e750666e30e8987f3a4c46755857dc85dd64446c
[ "MIT" ]
102
2020-03-18T22:53:29.000Z
2022-03-22T00:34:46.000Z
my/media/movies.py
aluhrs13/HPI
e750666e30e8987f3a4c46755857dc85dd64446c
[ "MIT" ]
50
2020-03-17T21:00:34.000Z
2022-03-28T08:37:13.000Z
# TODO extract items from org mode? perhaps not very high priority
24.25
66
0.793814
from .imdb import get_movies # TODO extract items from org mode? perhaps not very high priority
0
0
0
0
0
0
0
7
22
bd832959fc599907901c316c690667a4d2b13c90
9,505
py
Python
ai/STA/Strategy/graphless_offense.py
RoboCupULaval/StrategyAI
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
13
2018-03-14T10:20:10.000Z
2021-12-10T05:36:47.000Z
ai/STA/Strategy/graphless_offense.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
200
2016-04-29T23:13:01.000Z
2018-03-13T14:36:39.000Z
ai/STA/Strategy/graphless_offense.py
RoboCupULaval/StrategyIA
ccddde144f2c0a67113d2e5ffe7c75ed9d4a3d19
[ "MIT" ]
45
2015-07-04T18:57:39.000Z
2018-01-11T16:11:13.000Z
# Under MIT license, see LICENSE.txt MAX_DISTANCE_TO_SWITCH_TO_RECEIVE_PASS = 1500
53.398876
156
0.604945
# Under MIT license, see LICENSE.txt import numpy as np from Util.geometry import wrap_to_pi from Util.role import Role from ai.Algorithm.evaluation_module import closest_players_to_point_except, ball_going_toward_player from ai.GameDomainObjects import Player from ai.STA.Strategy.graphless_strategy import GraphlessS...
0
246
0
8,505
0
0
0
358
311
c44b7120c318e903bf67ddb2e46c2955ce7565b7
7,777
py
Python
Tests/Methods/Slot/test_HoleM53_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
2
2020-08-28T14:54:55.000Z
2021-03-13T19:34:45.000Z
Tests/Methods/Slot/test_HoleM53_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
Tests/Methods/Slot/test_HoleM53_meth.py
IrakozeFD/pyleecan
5a93bd98755d880176c1ce8ac90f36ca1b907055
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM53 import HoleM53 # For AlmostEqual DELTA = 1e-6 HoleM53_test = list() HoleM53_test_error = list() # Two hole test_obj = LamHole(is_internal=True, Rext=80.2e-3, Rint=0) test_obj.hole = list() test_obj.hole.append( Ho...
29.683206
88
0.557284
# -*- coding: utf-8 -*- import pytest from pyleecan.Classes.Segment import Segment from pyleecan.Classes.SurfLine import SurfLine from pyleecan.Classes.LamHole import LamHole from pyleecan.Classes.HoleM53 import HoleM53 from pyleecan.Classes.Magnet import Magnet from numpy import exp, arcsin, ndarray, pi from pyleec...
0
6,059
0
0
0
0
0
119
157
57393cfb77555e6eedd1e1f644547de5412d9e00
81
py
Python
mmdet/ops/box_iou_rotated/__init__.py
JarvisUSTC/DARDet
debbf476e9750030db67f030a40cf8d4f03e46ee
[ "Apache-2.0" ]
23
2021-09-22T14:05:49.000Z
2022-02-15T09:45:23.000Z
mmdet/ops/box_iou_rotated/__init__.py
JarvisUSTC/DARDet
debbf476e9750030db67f030a40cf8d4f03e46ee
[ "Apache-2.0" ]
13
2021-10-09T07:08:17.000Z
2022-01-06T05:53:45.000Z
mmdet/ops/box_iou_rotated/__init__.py
JarvisUSTC/DARDet
debbf476e9750030db67f030a40cf8d4f03e46ee
[ "Apache-2.0" ]
6
2021-11-15T03:16:51.000Z
2022-03-20T08:55:19.000Z
from .box_iou_rotated_cuda import box_iou_rotated __all__ = ['box_iou_rotated']
20.25
49
0.82716
from .box_iou_rotated_cuda import box_iou_rotated __all__ = ['box_iou_rotated']
0
0
0
0
0
0
0
0
0
1e85fd4f4ea8db04a18b0e7537753f2dffeb788d
2,912
py
Python
spotseeker_server/auth/oauth.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
5
2015-03-12T00:36:33.000Z
2022-02-24T16:41:25.000Z
spotseeker_server/auth/oauth.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
133
2016-02-03T23:54:45.000Z
2022-03-30T21:33:58.000Z
spotseeker_server/auth/oauth.py
uw-it-aca/spotseeker_server
1d8a5bf98b76fdcb807ed4cd32f939bb7e9aa66c
[ "Apache-2.0" ]
6
2015-01-07T23:21:15.000Z
2017-12-07T08:26:33.000Z
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module uses oauth to allow applications and users access. Supports 2-legged oauth for application requests, and for trusted applications accessing user-restricted methods. Supports 3-legged oauth for non-trusted applicatio...
34.666667
79
0.668613
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 """ This module uses oauth to allow applications and users access. Supports 2-legged oauth for application requests, and for trusted applications accessing user-restricted methods. Supports 3-legged oauth for non-trusted applicatio...
0
0
0
0
0
2,134
0
151
158
c19d9ada1c4db136f3439e7b6dffa4c5b94a5de8
2,824
py
Python
examples/DPUCADF8H/tf_resnet/utils.py
Carles-Figuerola/Vitis-AI
fc043ea4aca1f9fe4e18962e6a6ae397812bb34b
[ "Apache-2.0" ]
1
2020-12-18T14:49:19.000Z
2020-12-18T14:49:19.000Z
examples/DPUCADF8H/tf_resnet/utils.py
cy333/Vitis-AI
611b82cfc32ea2fe04491432bf8feed1f378c9de
[ "Apache-2.0" ]
null
null
null
examples/DPUCADF8H/tf_resnet/utils.py
cy333/Vitis-AI
611b82cfc32ea2fe04491432bf8feed1f378c9de
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 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 a...
36.675325
127
0.651204
#!/usr/bin/env python # Copyright 2019 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 a...
0
0
0
0
0
960
0
51
92
1ca477dab2a4289e5804db7eecd473adf8fe8b7d
8,923
py
Python
examples/20_mnist_ddp.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
133
2020-09-17T20:36:08.000Z
2022-03-21T12:15:40.000Z
examples/20_mnist_ddp.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
140
2020-09-21T12:16:55.000Z
2022-03-31T18:07:37.000Z
examples/20_mnist_ddp.py
todd-deshane/aihwkit
07269e29731f9a6482d25326400437f6bef2fc94
[ "Apache-2.0" ]
53
2020-09-17T15:53:31.000Z
2022-03-30T12:22:04.000Z
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
31.199301
96
0.631402
# -*- coding: utf-8 -*- # (C) Copyright 2020, 2021 IBM. All Rights Reserved. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modificatio...
11
0
0
0
0
0
0
0
0
23f32a0c11babe495ce710c08005cd357fd003c8
295
py
Python
bitmovin_api_sdk/models/rate_distortion_level_for_quantization.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/models/rate_distortion_level_for_quantization.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/models/rate_distortion_level_for_quantization.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
# coding: utf-8
24.583333
59
0.79661
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class RateDistortionLevelForQuantization(Enum): DISABLED = "DISABLED" LEVELS = "LEVELS" LEVELS_AND_CODING_GROUPS = "LEVELS_AND_CODING_GROUPS"
0
0
0
132
0
0
0
56
90
da952d5df89a3a8565908d0e2b88228f1f82071c
609
py
Python
ppr-api/src/database/postgres_functions/sim_number.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
ppr-api/src/database/postgres_functions/sim_number.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
ppr-api/src/database/postgres_functions/sim_number.py
cameron-freshworks/ppr
01d6f5d300c791aebad5e58bb4601e9be2ccfc46
[ "Apache-2.0" ]
null
null
null
"""Maintain db function searchkey_first_name here.""" from alembic_utils.pg_function import PGFunction sim_number = PGFunction( schema="public", signature="sim_number(actual_name character varying)", definition=""" RETURNS numeric LANGUAGE plpgsql AS $function$ DECLARE v_name VARCHAR(60); v_sim_nu...
21
69
0.673235
"""Maintain db function searchkey_first_name here.""" from alembic_utils.pg_function import PGFunction sim_number = PGFunction( schema="public", signature="sim_number(actual_name character varying)", definition=""" RETURNS numeric LANGUAGE plpgsql AS $function$ DECLARE v_name VARCHAR(60); v_sim_nu...
0
0
0
0
0
0
0
0
0
ed3b192957fb52fcf051e34f1c02df774bbee1c4
24,801
py
Python
tests/sentry/utils/test_snuba.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/utils/test_snuba.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
tests/sentry/utils/test_snuba.py
FelixSchwarz/sentry
7c92c4fa2b6b9f214764f48c82594acae1549e52
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import
39.056693
100
0.570703
from __future__ import absolute_import from datetime import datetime from mock import patch import pytest import pytz from sentry.models import GroupRelease, Release from sentry.testutils import TestCase, SnubaTestCase from sentry.testutils.helpers.datetime import iso_format, before_now from sentry.utils.snuba import...
0
9,176
0
14,951
0
0
0
337
293
fa132a8030c21b8f2d0d0428523ec55f885b4421
3,712
py
Python
src/utoolbox/filters/perona_malik.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
2
2020-09-03T06:22:14.000Z
2020-10-04T10:14:56.000Z
src/utoolbox/filters/perona_malik.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
null
null
null
src/utoolbox/filters/perona_malik.py
liuyenting/utoolbox-legacy
dfcb24701ca25a37a223cc3c14b4433e6c296bfd
[ "Apache-2.0" ]
null
null
null
""" Perona-Malik anisotropic smoothing filter [Sergeevich]_. .. [Sergeevich] Employing the Perona - Malik anisotropic filter for the problem of landing site detection: https://github.com/Galarius/pm-ocl """ import logging import cupy as cp import numpy as np __all__ = ["PeronaMalik2D", "PeronaMalik3D"] logger = log...
30.42623
141
0.627155
""" Perona-Malik anisotropic smoothing filter [Sergeevich]_. .. [Sergeevich] Employing the Perona - Malik anisotropic filter for the problem of landing site detection: https://github.com/Galarius/pm-ocl """ import logging from math import ceil import os import cupy as cp import numpy as np from utoolbox.parallel imp...
0
0
0
2,690
0
0
0
10
113
3c4d27d48356baf985b7fec6b617c3526b7bce2b
1,902
py
Python
DeepAgent/interfaces/ibaseBuffer.py
LANNDS18/DeepAgent_Atari
d9e984f5eba35b845b3bbb2a06dc7975159dbf43
[ "MIT" ]
3
2022-02-28T15:44:16.000Z
2022-03-02T17:00:59.000Z
DeepAgent/interfaces/ibaseBuffer.py
LANNDS18/DeepAgent_DemonAttack
ce86a8365ac31833cd5824a68d81892871d81182
[ "MIT" ]
null
null
null
DeepAgent/interfaces/ibaseBuffer.py
LANNDS18/DeepAgent_DemonAttack
ce86a8365ac31833cd5824a68d81892871d81182
[ "MIT" ]
null
null
null
from collections import namedtuple Transition = namedtuple("Transition", ("state", "action", "reward", "done", "new_state"))
31.7
97
0.585174
from collections import namedtuple Transition = namedtuple("Transition", ("state", "action", "reward", "done", "new_state")) class BaseBuffer: """ Base class for replay buffer. """ def __init__(self, size, batch_size=32, n_step=0): """ Initialize replay buffer. Args: ...
0
0
0
1,752
0
0
0
0
23
5aed65375fea66e5d3e5e1b637854272be09ff01
1,998
py
Python
uci.py
zeFresk/deep-position-analysis
f3f24e4587cf623e8b7d19a8e5682c7b6d0efaf4
[ "MIT" ]
20
2018-12-12T12:50:16.000Z
2021-09-29T14:39:23.000Z
uci.py
ScallyBag/deep-position-analysis
f3f24e4587cf623e8b7d19a8e5682c7b6d0efaf4
[ "MIT" ]
6
2019-07-22T18:22:25.000Z
2021-07-01T09:49:30.000Z
uci.py
ScallyBag/deep-position-analysis
f3f24e4587cf623e8b7d19a8e5682c7b6d0efaf4
[ "MIT" ]
1
2021-09-29T14:39:09.000Z
2021-09-29T14:39:09.000Z
import sys import os ########################################### ########## UCI config functions ########### ########################################### def write_config(opt, file): """Export options dictionnary to config file.""" for key, value in opt.items(): if key.lower() == "multipv": ...
31.21875
123
0.588088
import chess.uci import sys import os ########################################### ########## UCI config functions ########### ########################################### def write_config(opt, file): """Export options dictionnary to config file.""" for key, value in opt.items(): if key.lower() == "mult...
0
0
0
0
0
0
0
-5
22
0157b26dfb05673b29e289dfb9935a9a1efc3039
1,284
py
Python
abstract_factory/__init__.py
tolunaykatirci/design-patterns
e7013b003199b7400d825c992b77a800e440ad5a
[ "Apache-2.0" ]
null
null
null
abstract_factory/__init__.py
tolunaykatirci/design-patterns
e7013b003199b7400d825c992b77a800e440ad5a
[ "Apache-2.0" ]
null
null
null
abstract_factory/__init__.py
tolunaykatirci/design-patterns
e7013b003199b7400d825c992b77a800e440ad5a
[ "Apache-2.0" ]
null
null
null
from abstract_factory.factories.furniture_factory import FurnitureFactory from abstract_factory.factories.modern_furniture_factory import ModernFurnitureFactory from abstract_factory.factories.victorian_furniture_factory import VictorianFurnitureFactory ''' Abstract Factory is a creational design pattern that lets you...
34.702703
94
0.767134
from abstract_factory.factories.furniture_factory import FurnitureFactory from abstract_factory.factories.modern_furniture_factory import ModernFurnitureFactory from abstract_factory.factories.victorian_furniture_factory import VictorianFurnitureFactory ''' Abstract Factory is a creational design pattern that lets you...
0
0
0
0
0
0
0
0
0
bc705f5a48abf88fe4dd6878918563245bb06910
1,210
py
Python
Noise_Reduction/TSNR.py
cooperbarth/Joint-Audio-Correction-Kit
511a8ee249ca8cd0695afee11f15ad38b1a9452e
[ "MIT" ]
6
2019-06-13T06:07:34.000Z
2021-09-17T22:14:12.000Z
Noise_Reduction/TSNR.py
cooperbarth/Joint-Audio-Correction-Kit
511a8ee249ca8cd0695afee11f15ad38b1a9452e
[ "MIT" ]
2
2019-03-22T01:06:33.000Z
2019-06-20T04:17:24.000Z
Noise_Reduction/TSNR.py
cooperbarth/Joint-Audio-Correction-Kit
511a8ee249ca8cd0695afee11f15ad38b1a9452e
[ "MIT" ]
1
2019-11-13T22:44:53.000Z
2019-11-13T22:44:53.000Z
import numpy as np def TSNR(noisy_stft, signal_gains, noise_estimation): """ Reconstructs the signal by re-adding phase components to the magnitude estimate :param noisy_stft: stft of original noisy signal :param signal_gains: gains of each stft frame returned by DD :param noise_estimation: noise e...
39.032258
93
0.71405
import numpy as np def TSNR(noisy_stft, signal_gains, noise_estimation): """ Reconstructs the signal by re-adding phase components to the magnitude estimate :param noisy_stft: stft of original noisy signal :param signal_gains: gains of each stft frame returned by DD :param noise_estimation: noise e...
0
0
0
0
0
0
0
0
0
897c27db77012c8ae94c2d760b68e0b8dbc97aec
4,160
py
Python
screen.py
logoner/py_adventure
312cb9ae44a9061d92b36d338e63c15f62718457
[ "CC0-1.0" ]
null
null
null
screen.py
logoner/py_adventure
312cb9ae44a9061d92b36d338e63c15f62718457
[ "CC0-1.0" ]
null
null
null
screen.py
logoner/py_adventure
312cb9ae44a9061d92b36d338e63c15f62718457
[ "CC0-1.0" ]
null
null
null
# py_adventure screen scrypt
101.463415
151
0.108173
# py_adventure screen scrypt import config import os def display_interface(location, meeting, menu): # config.location_number, enemy_meeting, displayed_menu # строку "Вы оказались в необычном месте." нужно заменить на параметр location_descriptor(location) в котором описание места. screen = ['*********...
272
0
0
0
0
3,945
0
-20
70
90d2721fb801ab6fff85d03a472b3766fe0c3540
6,330
py
Python
EGAT/feature_generator/distance_and_angle_generator.py
sailfish009/EGAT
a03d6cbeb3e6d8f75edd608370256326d8fcb05b
[ "MIT" ]
11
2020-11-06T08:37:39.000Z
2021-01-22T08:46:37.000Z
EGAT/feature_generator/distance_and_angle_generator.py
MaxCodeXTC/EGAT
9f6f88bf2fe08965e9c7092e0f7717120e09b0e3
[ "MIT" ]
1
2021-08-14T08:26:56.000Z
2021-08-19T21:08:06.000Z
EGAT/feature_generator/distance_and_angle_generator.py
MaxCodeXTC/EGAT
9f6f88bf2fe08965e9c7092e0f7717120e09b0e3
[ "MIT" ]
5
2020-11-09T04:15:42.000Z
2021-01-19T05:53:26.000Z
# coding: utf-8 # In[1]: import warnings warnings.filterwarnings("ignore") from config import DefaultConfig configs = DefaultConfig() parser = PDBParser() THIRD_ATOM = 'N' # 'O' # In[2]: # In[3]: from Bio import SeqUtils protein_letters_3to1 = SeqUtils.IUPACData.protein_letters_3to1 ppb = PPBuilder() ...
33.670213
112
0.599684
# coding: utf-8 # In[1]: import numpy as np from time import time import gzip import warnings import pickle warnings.filterwarnings("ignore") from Bio.PDB import * import Bio from config import DefaultConfig configs = DefaultConfig() parser = PDBParser() THIRD_ATOM = 'N' # 'O' # In[2]: def residue_distance...
0
0
0
0
0
5,704
0
-7
271
569d38194b1b31a4c8eebb0a5e9a0b3fc694bf4d
2,222
py
Python
Day-04_Giant-Squid/puzzle_2.py
richardangell/advent-of-code-2021
48397e980fd6d4d43234df89e47bf22581c0611e
[ "BSD-3-Clause" ]
null
null
null
Day-04_Giant-Squid/puzzle_2.py
richardangell/advent-of-code-2021
48397e980fd6d4d43234df89e47bf22581c0611e
[ "BSD-3-Clause" ]
null
null
null
Day-04_Giant-Squid/puzzle_2.py
richardangell/advent-of-code-2021
48397e980fd6d4d43234df89e47bf22581c0611e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np from numpy.typing import ArrayLike import sys from puzzle_1 import load_input sys.path.append("..") def calculate_last_winning_score( draw_numbers: list[int], boards: list[ArrayLike], blank_boards: list[ArrayLike] ) -> tuple[int, int, int]: """Function to calculate the winning score from t...
27.097561
83
0.565257
import numpy as np from numpy.typing import ArrayLike import sys from puzzle_1 import load_input sys.path.append("..") import helpers # noqa def calculate_last_winning_score( draw_numbers: list[int], boards: list[ArrayLike], blank_boards: list[ArrayLike] ) -> tuple[int, int, int]: """Function to calculate t...
0
0
0
0
0
0
0
-7
30
e0aae4b1cbbabd84c6ef45d5488c32b230ae2b94
8,642
py
Python
qiskit_machine_learning/neural_networks/neural_network.py
FrankFeenix/qiskit-machine-learning
ec800bc8a58b32f3052ff399d54f19a74417fc7d
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/neural_networks/neural_network.py
FrankFeenix/qiskit-machine-learning
ec800bc8a58b32f3052ff399d54f19a74417fc7d
[ "Apache-2.0" ]
null
null
null
qiskit_machine_learning/neural_networks/neural_network.py
FrankFeenix/qiskit-machine-learning
ec800bc8a58b32f3052ff399d54f19a74417fc7d
[ "Apache-2.0" ]
1
2021-06-15T16:41:39.000Z
2021-06-15T16:41:39.000Z
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
37.573913
100
0.640361
# This code is part of Qiskit. # # (C) Copyright IBM 2020, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
0
1,265
0
6,508
0
0
0
0
50
8fd5aaa621aee3a0c3eab511248713236b6221a9
4,822
py
Python
docker2shell.py
Vayel/publik
8b8da0bd8f8aa99fdcda55300e9f04aea9101a62
[ "MIT" ]
null
null
null
docker2shell.py
Vayel/publik
8b8da0bd8f8aa99fdcda55300e9f04aea9101a62
[ "MIT" ]
null
null
null
docker2shell.py
Vayel/publik
8b8da0bd8f8aa99fdcda55300e9f04aea9101a62
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import re import shutil import glob # This script converts from the docker version to a shell install version # Useful for installation without docker # Manual installation # - Init a database using ../postgresql/docker-entrypoint-initdb.d/init-database.sh # - Add db, smtp and rabbit...
34.442857
96
0.592493
#!/usr/bin/env python import os import re import shutil import glob # This script converts from the docker version to a shell install version # Useful for installation without docker # Manual installation # - Init a database using ../postgresql/docker-entrypoint-initdb.d/init-database.sh # - Add db, smtp and rabbit...
0
0
0
0
0
675
0
0
24
6284f4c4e9787b2a2c648b7e2f1218b645b002e2
330
py
Python
jotleaf/test_localsettings.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
1
2020-10-25T15:10:43.000Z
2020-10-25T15:10:43.000Z
jotleaf/test_localsettings.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
jotleaf/test_localsettings.py
reverie/jotleaf.com
86311b546bb5bae7ba826f5576ea82ac515e8b7d
[ "MIT" ]
null
null
null
from root_dir import root_dir DEBUG = True LOG_DIRECTORY = root_dir('..', 'dev_logs') EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' EMAIL_PORT = 1025 YWOT_HOST = 'localhost:8001' PUSHER_APP_ID = '...' PUSHER_KEY = '...' PUSHER_SECRET = '...' MIXPANEL_ID = "..." STATIC_URL = '/static/' SENTRY_DS...
15.714286
63
0.69697
from root_dir import root_dir DEBUG = True LOG_DIRECTORY = root_dir('..', 'dev_logs') EMAIL_BACKEND = 'django.core.mail.backends.locmem.EmailBackend' EMAIL_PORT = 1025 YWOT_HOST = 'localhost:8001' PUSHER_APP_ID = '...' PUSHER_KEY = '...' PUSHER_SECRET = '...' MIXPANEL_ID = "..." STATIC_URL = '/static/' SENTRY_DS...
0
0
0
0
0
0
0
0
0
f05122174cbeb25e8dcc8f8551911789fe0a1b12
1,190
py
Python
lplangid/tokenizer.py
stephantul/lplangid
11dc6d1b0283ffe3a96159da6b68854ae698280b
[ "MIT" ]
3
2021-09-22T07:35:58.000Z
2021-10-02T20:23:52.000Z
lplangid/tokenizer.py
stephantul/lplangid
11dc6d1b0283ffe3a96159da6b68854ae698280b
[ "MIT" ]
3
2021-09-22T07:51:02.000Z
2021-09-30T20:24:04.000Z
lplangid/tokenizer.py
stephantul/lplangid
11dc6d1b0283ffe3a96159da6b68854ae698280b
[ "MIT" ]
3
2021-09-22T07:36:01.000Z
2021-10-02T20:23:55.000Z
import re import string from typing import List def tokenize_fast(input_text: str) -> List[str]: """Returns a very naive whitespace and punctuation based tokenization. This helps for most but not all languages, should only be used if you don't know the language yet, or if you have a lot of data and can s...
35
106
0.642857
import re import string from typing import List def tokenize_fast(input_text: str) -> List[str]: """Returns a very naive whitespace and punctuation based tokenization. This helps for most but not all languages, should only be used if you don't know the language yet, or if you have a lot of data and can s...
0
0
0
0
0
0
0
0
0
244b09637d99df431294fd2b8181aae392e105de
2,035
py
Python
project-euler/601/euler_601_v1.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
project-euler/601/euler_601_v1.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
project-euler/601/euler_601_v1.py
zoffixznet/project-euler
39921379385ae2521354c7266a541c46785e85a2
[ "MIT" ]
null
null
null
# The Expat License # # Copyright (c) 2017, Shlomi Fish # # 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 # to use, copy, modify, ...
27.133333
79
0.655037
# The Expat License # # Copyright (c) 2017, Shlomi Fish # # 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 # to use, copy, modify, ...
0
0
0
0
0
635
0
8
159
e0e05b806c74b1fcaf1ba79e312e6b56d299af1e
884
py
Python
auto-blog/delete.py
alpeshjamgade/auto-blog
656929acdacdb9bbfe0c0aa37b478963f96a0b1f
[ "MIT" ]
null
null
null
auto-blog/delete.py
alpeshjamgade/auto-blog
656929acdacdb9bbfe0c0aa37b478963f96a0b1f
[ "MIT" ]
null
null
null
auto-blog/delete.py
alpeshjamgade/auto-blog
656929acdacdb9bbfe0c0aa37b478963f96a0b1f
[ "MIT" ]
null
null
null
BLOG_ID = "2352119848425464545" BASE_URL = "https://www.googleapis.com/blogger/v3/blogs/" if __name__ == "__main__": main()
26
180
0.745475
import requests from requests.structures import CaseInsensitiveDict import json BLOG_ID = "2352119848425464545" BASE_URL = "https://www.googleapis.com/blogger/v3/blogs/" def delete_post(post_id): endpoint = "https://www.googleapis.com/blogger/v3/blogs/2352119848425464545/posts/{post_id}".format( post_id...
0
0
0
0
0
625
0
14
112
ac2c4fbc88dd909c10b15938d1091b8b904be397
2,227
py
Python
app.py
amrrs/real-time-live-streamlit-dashboard-python
72347d9de864218944aa3d7ad93a10133defc49b
[ "MIT" ]
5
2022-01-21T11:57:51.000Z
2022-03-20T01:46:15.000Z
app.py
amrrs/real-time-live-streamlit-dashboard-python
72347d9de864218944aa3d7ad93a10133defc49b
[ "MIT" ]
null
null
null
app.py
amrrs/real-time-live-streamlit-dashboard-python
72347d9de864218944aa3d7ad93a10133defc49b
[ "MIT" ]
2
2022-02-18T14:38:38.000Z
2022-03-14T06:28:12.000Z
import streamlit as st # web development import numpy as np # np mean, np random import pandas as pd # read csv, df manipulation import time # to simulate a real time data, time loop import plotly.express as px # interactive charts # read csv from a github repo df = pd.read_csv("https://raw.githubusercontent.com/L...
29.693333
120
0.63718
import streamlit as st # web development import numpy as np # np mean, np random import pandas as pd # read csv, df manipulation import time # to simulate a real time data, time loop import plotly.express as px # interactive charts # read csv from a github repo df = pd.read_csv("https://raw.githubusercontent.com/L...
13
0
0
0
0
0
0
0
0
24b11a228e261e489b2172e72feaa5017619873e
2,421
py
Python
venv/Lib/site-packages/arcade/examples/test2.py
JohnWJackson/arcadePython
b69058b0241d332a81a7d7319f70ae9237bdca94
[ "MIT" ]
null
null
null
venv/Lib/site-packages/arcade/examples/test2.py
JohnWJackson/arcadePython
b69058b0241d332a81a7d7319f70ae9237bdca94
[ "MIT" ]
null
null
null
venv/Lib/site-packages/arcade/examples/test2.py
JohnWJackson/arcadePython
b69058b0241d332a81a7d7319f70ae9237bdca94
[ "MIT" ]
1
2020-11-06T18:46:35.000Z
2020-11-06T18:46:35.000Z
""" Earth moon sun """ SCREEN_WIDTH = 600 SCREEN_HEIGHT = 600 if __name__ == "__main__": main()
31.038462
103
0.624122
""" Earth moon sun """ import arcade SCREEN_WIDTH = 600 SCREEN_HEIGHT = 600 class MyGame(arcade.Window): """ Main application class. """ def __init__(self): # Call the parent class initializer super().__init__(SCREEN_WIDTH, SCREEN_HEIGHT, "Earth Moon Sun") self.sun_x = SCREEN_WIDTH ...
0
0
0
2,227
0
29
0
-8
69
4288e59835e07bac230630007cd7f939850fbd5e
2,247
py
Python
mytest_export_py.py
wangping984/Ultra-Fast-Lane-Detection
b7559c1469d832bf5afe5d158dd3ad63b4df9d9c
[ "MIT" ]
null
null
null
mytest_export_py.py
wangping984/Ultra-Fast-Lane-Detection
b7559c1469d832bf5afe5d158dd3ad63b4df9d9c
[ "MIT" ]
null
null
null
mytest_export_py.py
wangping984/Ultra-Fast-Lane-Detection
b7559c1469d832bf5afe5d158dd3ad63b4df9d9c
[ "MIT" ]
null
null
null
# %% [markdown] # test.py # %% import torch from model.model import parsingNet import torchvision.transforms as transforms from PIL import Image import cv2 import scipy.special torch.backends.cudnn.benchmark = True cls_num_per_lane = 18 net = parsingNet(pretrained = False, backbone='18',cls_dim = (200+1,cls_num_per_l...
24.966667
131
0.653761
# %% [markdown] # 分析test.py文件 # %% import torch from model.model import parsingNet import torchvision.transforms as transforms from torch.utils.data import DataLoader from torchvision.io import read_image from PIL import Image import cv2 import scipy.special torch.backends.cudnn.benchmark = True cls_num_per_lane = 18...
156
0
0
0
0
0
0
34
44
84eec7287516857ac3fe21ded84f7686a66988d3
131
py
Python
venv/lib/python3.7/site-packages/crispy_forms_materialize/__init__.py
fullstack-overkill/Api
77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/crispy_forms_materialize/__init__.py
fullstack-overkill/Api
77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55
[ "MIT" ]
4
2020-06-05T21:11:56.000Z
2021-09-08T01:02:17.000Z
venv/lib/python3.7/site-packages/crispy_forms_materialize/__init__.py
fullstack-overkill/Api
77cb5b8209be3b34bb2f7ea7b3ec979cc46a3b55
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Django application to add 'django-crispy-forms' layout objects for Materialize """ __version__ = '0.2'
21.833333
78
0.679389
# -*- coding: utf-8 -*- """ Django application to add 'django-crispy-forms' layout objects for Materialize """ __version__ = '0.2'
0
0
0
0
0
0
0
0
0
1a8755e5e7b5dfa739b4ec592ba01c44219647aa
15,585
py
Python
tests/test_workflow.py
SergiuIliev/up42-py
132682cf6c9d12ab68972f187ab82a998ee36e11
[ "MIT" ]
null
null
null
tests/test_workflow.py
SergiuIliev/up42-py
132682cf6c9d12ab68972f187ab82a998ee36e11
[ "MIT" ]
null
null
null
tests/test_workflow.py
SergiuIliev/up42-py
132682cf6c9d12ab68972f187ab82a998ee36e11
[ "MIT" ]
null
null
null
# pylint: disable=unused-import,wrong-import-order json_workflow_tasks = { "data": [ { "id": "c0d04ec3-98d7-4183-902f-5bcb2a176d89", "name": "sobloo-s2-l1c-aoiclipped:1", "block": { "name": "sobloo-s2-l1c-aoiclipped", "parameters": { ...
34.943946
101
0.60924
from pathlib import Path import json import pytest import requests_mock import shapely # pylint: disable=unused-import,wrong-import-order from .context import Workflow from .fixtures import auth_mock, auth_live, workflow_mock, workflow_live, job_mock import up42 json_workflow_tasks = { "data": [ { ...
0
3,553
0
0
0
9,372
0
36
636
009f418f44c5d85a6d3e9d6e673290c3f794646f
451
py
Python
redsys/languages.py
brunovila/python-redsys
f7e6dfd692e4ad5f887baf59e283d4406700f2ab
[ "MIT" ]
13
2017-04-27T08:16:38.000Z
2021-06-15T12:12:51.000Z
redsys/languages.py
brunovila/python-redsys
f7e6dfd692e4ad5f887baf59e283d4406700f2ab
[ "MIT" ]
12
2017-08-17T11:52:50.000Z
2021-09-12T17:18:23.000Z
redsys/languages.py
brunovila/python-redsys
f7e6dfd692e4ad5f887baf59e283d4406700f2ab
[ "MIT" ]
18
2017-03-16T17:36:01.000Z
2021-11-01T00:29:44.000Z
# -*- coding: utf-8 -*- CUSTOMER = '000' SPANISH = '001' ENGLISH = '002' CATALAN = '003' FRENCH = '004' GERMAN = '005' DUTCH = '006' ITALIAN = '007' SWEDISH = '008' PORTUGUESE = '009' VALENCIAN = '010' POLISH = '011' GALICIAN = '012' EUSKERA = '013' LANGUAGES = [ CUSTOMER, SPANISH, ENGLISH, CATALAN, ...
13.264706
23
0.578714
# -*- coding: utf-8 -*- CUSTOMER = '000' SPANISH = '001' ENGLISH = '002' CATALAN = '003' FRENCH = '004' GERMAN = '005' DUTCH = '006' ITALIAN = '007' SWEDISH = '008' PORTUGUESE = '009' VALENCIAN = '010' POLISH = '011' GALICIAN = '012' EUSKERA = '013' LANGUAGES = [ CUSTOMER, SPANISH, ENGLISH, CATALAN, ...
0
0
0
0
0
0
0
0
0
ad4da63243211d9ff16d05cfe6062d9d6bd2770e
1,321
py
Python
tests/tests_vipps.py
almazkun/vipps-python
107e065d551f0aff908f6685afc8d26d89d82176
[ "MIT" ]
2
2021-04-05T04:11:39.000Z
2021-04-08T12:56:15.000Z
tests/tests_vipps.py
asmexcaliburwoods/vipps-python
bd205e2a0a6c096bde09906baed4139b92a5b56a
[ "MIT" ]
null
null
null
tests/tests_vipps.py
asmexcaliburwoods/vipps-python
bd205e2a0a6c096bde09906baed4139b92a5b56a
[ "MIT" ]
2
2021-04-05T04:11:44.000Z
2021-05-20T13:44:47.000Z
import env VIPPS_CLIENT_ID = env.VIPPS_CLIENT_ID VIPPS_CLIENT_SECRET = env.VIPPS_CLIENT_SECRET VIPPS_SUBSCRIPTION_KEY = env.VIPPS_SUBSCRIPTION_KEY VIPPS_MERCHANT_SERIAL_NUMBER = env.VIPPS_MERCHANT_SERIAL_NUMBER VIPPS_SERVER = env.VIPPS_SERVER VIPPS_CALLBACK_PREFIX = env.VIPPS_CALLBACK_PREFIX VIPPS_FALLBACK_URL = env...
31.452381
65
0.719909
import os import unittest from vipps import VippsEcomApi, VippsSignupApi import env VIPPS_CLIENT_ID = env.VIPPS_CLIENT_ID VIPPS_CLIENT_SECRET = env.VIPPS_CLIENT_SECRET VIPPS_SUBSCRIPTION_KEY = env.VIPPS_SUBSCRIPTION_KEY VIPPS_MERCHANT_SERIAL_NUMBER = env.VIPPS_MERCHANT_SERIAL_NUMBER VIPPS_SERVER = env.VIPPS_SERVER ...
0
0
0
883
0
0
0
7
90
4bf76a83a9f3978f8a59f0e184e23fca4032779f
455
py
Python
task_1/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
task_1/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
task_1/__init__.py
Quinlys/-Yakymiv_Igor--tasks
4992ca5fd050ed35f060b5b22ed05133be5c1d5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
25.277778
59
0.424176
# -*- coding: utf-8 -*- def fill_spiral_matrix(n): result = [] x, y, dx, dy = 0, 0, 1, 0 arr = [[0] * n for i in range(n)] for i in range(1, n**2+1): arr[x][y] = i nx, ny = x+dx, y+dy if 0 <= nx < n and 0 <= ny < n and not arr[nx][ny]: x, y = nx, ny else: ...
0
0
0
0
0
408
0
0
22
4dc424f27991bfbf38e953e9b306af71d998143b
7,711
py
Python
preprocessing/preprocessing/BubbleExtractorCombined_V1.py
gitter-manish/deploy-ml-model
90c792f2c58316ca133f31758890c92fbf0f72c0
[ "MIT" ]
null
null
null
preprocessing/preprocessing/BubbleExtractorCombined_V1.py
gitter-manish/deploy-ml-model
90c792f2c58316ca133f31758890c92fbf0f72c0
[ "MIT" ]
null
null
null
preprocessing/preprocessing/BubbleExtractorCombined_V1.py
gitter-manish/deploy-ml-model
90c792f2c58316ca133f31758890c92fbf0f72c0
[ "MIT" ]
null
null
null
import cv2 as cv import pandas as pd import time import os start_time = time.time() lengi = 0 df = pd.DataFrame(columns=['document_id', 'set_id', 'student_id', 'answer_keys']) xForQuads = [(344, 552), (620, 828), (897, 1106), (1174, 1382)] yForQuads = [(897, 1115), (1115, 1333), (1333, 1550), (1550, 1767), (1767, 1984...
45.358824
150
0.474517
import cv2 as cv import numpy as np import pandas as pd import time import os start_time = time.time() lengi = 0 df = pd.DataFrame(columns=['document_id', 'set_id', 'student_id', 'answer_keys']) xForQuads = [(344, 552), (620, 828), (897, 1106), (1174, 1382)] yForQuads = [(897, 1115), (1115, 1333), (1333, 1550), (1550,...
0
0
0
0
0
6,047
0
-3
91
666da4bf7ea8cb6e53488d2bb095018500fea12d
354
py
Python
myUniversePython/analyser.py
saygindogu/universe
e7de1e897ab0d1d0551e0bd1d91c32ac670ae13a
[ "MIT" ]
null
null
null
myUniversePython/analyser.py
saygindogu/universe
e7de1e897ab0d1d0551e0bd1d91c32ac670ae13a
[ "MIT" ]
null
null
null
myUniversePython/analyser.py
saygindogu/universe
e7de1e897ab0d1d0551e0bd1d91c32ac670ae13a
[ "MIT" ]
null
null
null
# Import the necessary packages and modules import matplotlib.pyplot as plt import numpy as np f = open('history.txt', 'r') for line in f: if line.startswith('='): tokens = line.split('\t') # Prepare the data x = np.linspace(0, 10, 100) # Plot the data plt.plot(x, x, label='linear') # Add a legend plt.le...
15.391304
43
0.663842
# Import the necessary packages and modules import matplotlib.pyplot as plt import numpy as np f = open('history.txt', 'r') for line in f: if line.startswith('='): tokens = line.split('\t') # Prepare the data x = np.linspace(0, 10, 100) # Plot the data plt.plot(x, x, label='linear') # Add a legend plt.le...
0
0
0
0
0
0
0
0
0
17fd905bf344238092df2c2454e797b7c916eb09
4,612
py
Python
remix_bot/slap_msgs.py
uhwot/telegram-remix-bo
6ae9b7ff6cf758454d668784050f036d8d63627b
[ "MIT" ]
null
null
null
remix_bot/slap_msgs.py
uhwot/telegram-remix-bo
6ae9b7ff6cf758454d668784050f036d8d63627b
[ "MIT" ]
1
2020-10-22T19:14:32.000Z
2020-10-28T08:46:20.000Z
remix_bot/slap_msgs.py
uhwot/telegram-remix-bot
6ae9b7ff6cf758454d668784050f036d8d63627b
[ "MIT" ]
null
null
null
SLAP_TEMPLATES = ( "{user1} {hits} {user2} with a {item}.", "{user1} {hits} {user2} in the face with a {item}.", "{user1} {hits} {user2} around a bit with a {item}.", "{user1} {throws} a {item} at {user2}.", "{user1} grabs a {item} and {throws} it at {user2}'s face.", "{user1} launches a {item} ...
37.803279
112
0.614918
SLAP_TEMPLATES = ( "{user1} {hits} {user2} with a {item}.", "{user1} {hits} {user2} in the face with a {item}.", "{user1} {hits} {user2} around a bit with a {item}.", "{user1} {throws} a {item} at {user2}.", "{user1} grabs a {item} and {throws} it at {user2}'s face.", "{user1} launches a {item} ...
0
0
0
0
0
0
0
0
0
0c7093ad3dc6e521bebc114441fff78b91e63857
14,175
py
Python
OrchardWatch-ML/growth_model/server.py
david-fisher/320-F19-Track-I
cddff29ad9f79a794928eb29d44bc9f53f46f3fd
[ "BSD-3-Clause" ]
8
2019-09-04T14:18:30.000Z
2020-02-04T18:06:50.000Z
OrchardWatch-ML/growth_model/server.py
david-fisher/320-F19-Track-I
cddff29ad9f79a794928eb29d44bc9f53f46f3fd
[ "BSD-3-Clause" ]
103
2019-09-19T18:15:25.000Z
2020-05-05T01:39:40.000Z
OrchardWatch-ML/growth_model/server.py
david-fisher/320-F19-Track-I
cddff29ad9f79a794928eb29d44bc9f53f46f3fd
[ "BSD-3-Clause" ]
2
2020-01-17T18:46:46.000Z
2020-05-04T15:53:34.000Z
import argparse DB_CLUSTER = "database320" DB_NAME = "db320" ARN = "arn:aws:rds:us-east-2:007372221023:cluster:database320" SECRET_ARN = "arn:aws:secretsmanager:us-east-2:007372221023:secret:rds-db-credentials/cluster-BZEL6PSDLGVBVJB6BIDZGZQ4MI/admin320-fsoCse" REGION_NAME = "us-east-2" IMG_FORMAT = ".jpg" # changing...
35.977157
216
0.634215
import os import argparse from flask import request from flask_api import FlaskAPI, status, exceptions from werkzeug.utils import secure_filename import io import numpy as np from PIL import Image import cv2 from datetime import datetime import re import math import apriltag from flask_cors import CORS from logzero im...
0
7,538
0
0
1,534
3,333
0
-2
629
202920f8de2be9a2ad13e317799f56b62fff1ef6
10,034
py
Python
program.py
kokuraxc/lift_simulation
7ef7a292ccb19fbe3b1146240df4a0cdeef46fad
[ "MIT" ]
null
null
null
program.py
kokuraxc/lift_simulation
7ef7a292ccb19fbe3b1146240df4a0cdeef46fad
[ "MIT" ]
null
null
null
program.py
kokuraxc/lift_simulation
7ef7a292ccb19fbe3b1146240df4a0cdeef46fad
[ "MIT" ]
null
null
null
import time if __name__ == '__main__': stop_threads = False planner = Planner(5, 1) """ while True: try: lvl_from = int(input()) lvl_to = int(input()) except: planner.stopAll() break Person(lvl_from, lvl_to, planner) """ time.s...
46.669767
219
0.632749
import threading import time import logging import math class Planner: def __init__(self, total_storeys, total_carts_number): self.levels = [Level(i) for i in range(total_storeys)] self.carts = [Cart(i, self) for i in range(total_carts_number)] def passenger_calls_cart(self, level, direction):...
0
0
0
9,499
0
0
0
-22
159
060754a0900fca850d2f4210065f69b20f828318
1,010
py
Python
PEH_COURSE_NOTES/02_ethical_python/pyport.py
dustin-py/info_sec_notes
c793aa3c837d428d240ce9a97d151541ecf5b825
[ "MIT" ]
1
2020-09-17T05:40:15.000Z
2020-09-17T05:40:15.000Z
PEH_COURSE_NOTES/02_ethical_python/pyport.py
dustin-py/info_sec_notes
c793aa3c837d428d240ce9a97d151541ecf5b825
[ "MIT" ]
null
null
null
PEH_COURSE_NOTES/02_ethical_python/pyport.py
dustin-py/info_sec_notes
c793aa3c837d428d240ce9a97d151541ecf5b825
[ "MIT" ]
2
2020-09-10T01:42:13.000Z
2020-09-14T16:56:30.000Z
#!/bin/python3 """This is a very simple/terrible port scanner for educational purpose""" import sys import socket from datetime import datetime if len(sys.argv) == 2: target = socket.gethostbyname(sys.argv[1]) # translate hostname else: print("Invalid amount of arguments.") print("Syntax: python3 pyport....
28.055556
73
0.661386
#!/bin/python3 """This is a very simple/terrible port scanner for educational purpose""" import sys import socket from datetime import datetime if len(sys.argv) == 2: target = socket.gethostbyname(sys.argv[1]) # translate hostname else: print("Invalid amount of arguments.") print("Syntax: python3 pyport....
0
0
0
0
0
0
0
0
0
1022b74220051619e3fbc2df75398be21afd784a
705
py
Python
python/45_bitmap/bitmap.py
shipan3452/algo
0494cc0d8f5daf108daf4358c4531a29279dd380
[ "Apache-2.0" ]
22,028
2018-09-27T05:55:19.000Z
2022-03-30T10:44:46.000Z
python/45_bitmap/bitmap.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
164
2018-10-06T15:11:08.000Z
2022-03-28T10:04:34.000Z
python/45_bitmap/bitmap.py
wangjing013/algo
b2c1228ff915287ad7ebeae4355fa26854ea1557
[ "Apache-2.0" ]
7,250
2018-09-30T00:45:25.000Z
2022-03-31T20:15:33.000Z
""" Author: Wenru Dong """ if __name__ == "__main__": bitmap = Bitmap(10) bitmap.setbit(1) bitmap.setbit(3) bitmap.setbit(6) bitmap.setbit(7) bitmap.setbit(8) for i in range(1, 11): print(bitmap.getbit(i))
23.5
54
0.558865
""" Author: Wenru Dong """ from typing import Optional class Bitmap: def __init__(self, num_bits: int): self._num_bits = num_bits self._bytes = bytearray(num_bits // 8 + 1) def setbit(self, k: int) -> None: if k > self._num_bits or k < 1: return self._bytes[k // 8] |= ...
0
0
0
405
0
0
0
6
46
e587999a7e8362a1ea53e0597090bc5e5186a9de
1,110
py
Python
data_show.py
sherlock1987/ConvLab-2
9547cb09bfd7e297e2c609637c9e38f6c94fdbfb
[ "Apache-2.0" ]
1
2020-06-05T08:42:51.000Z
2020-06-05T08:42:51.000Z
data_show.py
sherlock1987/ConvLab-2
9547cb09bfd7e297e2c609637c9e38f6c94fdbfb
[ "Apache-2.0" ]
null
null
null
data_show.py
sherlock1987/ConvLab-2
9547cb09bfd7e297e2c609637c9e38f6c94fdbfb
[ "Apache-2.0" ]
1
2020-06-05T09:15:51.000Z
2020-06-05T09:15:51.000Z
a = [[['Inform', 'Train', 'Choice', 'over 1'], ['Inform', 'Train', 'Choice', '000'], ['Request', 'Train', 'Depart', '?']], [['Inform', 'Train', 'Depart', 'birmingham new street']], [['Request', 'Train', 'Day', '?']], [['Inform', 'Train', 'Day', 'wednesday']], [['Inform', 'Train', 'Arrive', '20:23'], ['Inform', 'Train'...
46.25
177
0.513514
a = [[['Inform', 'Train', 'Choice', 'over 1'], ['Inform', 'Train', 'Choice', '000'], ['Request', 'Train', 'Depart', '?']], [['Inform', 'Train', 'Depart', 'birmingham new street']], [['Request', 'Train', 'Day', '?']], [['Inform', 'Train', 'Day', 'wednesday']], [['Inform', 'Train', 'Arrive', '20:23'], ['Inform', 'Train'...
0
0
0
0
0
0
0
0
0
fc7c412d4a6ededf0a68602a59234bebc3e8681c
7,522
py
Python
sdks/python/apache_beam/io/gcp/datastore_write_it_pipeline.py
dlesco/beam
fcf00b234a66a8d111b201f08ace46e3c3b38b5e
[ "Apache-2.0" ]
4
2018-09-25T16:10:54.000Z
2020-07-13T23:52:12.000Z
sdks/python/apache_beam/io/gcp/datastore_write_it_pipeline.py
dlesco/beam
fcf00b234a66a8d111b201f08ace46e3c3b38b5e
[ "Apache-2.0" ]
41
2018-08-16T23:54:04.000Z
2022-01-24T20:27:19.000Z
sdks/python/apache_beam/io/gcp/datastore_write_it_pipeline.py
dlesco/beam
fcf00b234a66a8d111b201f08ace46e3c3b38b5e
[ "Apache-2.0" ]
2
2019-04-16T15:29:22.000Z
2020-03-30T18:43:34.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 us...
36.163462
80
0.724807
# # 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 us...
0
0
0
713
0
0
0
-7
45
ec82df66a47bfadb6c53a47eb1ea15809590e667
127
py
Python
Snippets/code-gym-1/highlight.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
Snippets/code-gym-1/highlight.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
Snippets/code-gym-1/highlight.py
ursaMaj0r/python-csc-125
1d0968ad144112e24ae331c75aad58b74041593a
[ "MIT" ]
null
null
null
# input input_word = input("Enter a word: ") # response print('***') for letter in input_word: print(letter) print('***')
14.111111
36
0.629921
# input input_word = input("Enter a word: ") # response print('***') for letter in input_word: print(letter) print('***')
0
0
0
0
0
0
0
0
0
f1fcb1fb36d49f30f0e0393bfc90d7b785f822e9
18,682
py
Python
python/tinkoff/cloud/stt/v1/stt_pb2.py
Tinkoff/voicekit-examples
fbfe789135bb0b9360f7fb5669b7953616f18502
[ "Apache-2.0" ]
3
2022-02-11T04:34:18.000Z
2022-03-29T19:35:57.000Z
python/tinkoff/cloud/stt/v1/stt_pb2.py
Tinkoff/voicekit-examples
fbfe789135bb0b9360f7fb5669b7953616f18502
[ "Apache-2.0" ]
3
2022-01-27T15:40:38.000Z
2022-03-31T10:03:35.000Z
python/tinkoff/cloud/stt/v1/stt_pb2.py
Tinkoff/voicekit-examples
fbfe789135bb0b9360f7fb5669b7953616f18502
[ "Apache-2.0" ]
5
2022-01-27T15:15:06.000Z
2022-03-24T22:06:18.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tinkoff/cloud/stt/v1/stt.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _d...
77.198347
6,418
0.827267
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tinkoff/cloud/stt/v1/stt.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _d...
0
0
0
0
0
0
0
216
67
098ad775b96835b594b952a0d399601e34c38200
118
py
Python
movies_front/wsgi.py
microstack/movies-front
432119a22f08c6a03f90089b2e47296822859957
[ "MIT" ]
null
null
null
movies_front/wsgi.py
microstack/movies-front
432119a22f08c6a03f90089b2e47296822859957
[ "MIT" ]
null
null
null
movies_front/wsgi.py
microstack/movies-front
432119a22f08c6a03f90089b2e47296822859957
[ "MIT" ]
null
null
null
import os from views import app if __name__ == "__main__": host = os.environ.get('HOST') app.run(host=host)
14.75
33
0.661017
import os from views import app if __name__ == "__main__": host = os.environ.get('HOST') app.run(host=host)
0
0
0
0
0
0
0
0
0
f536c2f6ef1a68d088de084db7796591fafa5eb4
1,270
py
Python
Book/chap5/Supporting Materials/MultPlotDemo.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
3
2020-04-30T19:50:11.000Z
2020-10-17T02:07:00.000Z
Book/chap5/Supporting Materials/MultPlotDemo.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
35
2020-04-21T04:25:31.000Z
2021-11-06T22:49:44.000Z
Book/chap5/Supporting Materials/MultPlotDemo.py
lorenghoh/pyman
9b4ddd52c5577fc85e2601ae3128f398f0eb673c
[ "CC0-1.0" ]
11
2020-04-21T04:33:48.000Z
2020-10-23T21:12:12.000Z
# Demonstrates the following: # plotting logarithmic axes # user-defined functions # "where" function, NumPy array conditional import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 defined # as a special case to avoid division by zero # create arrays for plott...
23.518519
71
0.708661
# Demonstrates the following: # plotting logarithmic axes # user-defined functions # "where" function, NumPy array conditional import numpy as np import matplotlib.pyplot as plt # Define the sinc function, with output for x=0 defined # as a special case to avoid division by zero def s(x): a = np.where(x...
0
0
0
0
0
38
0
0
22
580f6b656f18ebb519adcc1d9ef6790858d2d266
34,832
py
Python
paddleslim/nas/ofa/convert_super.py
1375207619/PaddleSlim
1a9376a8b68e2219db3e95dea900ef4003e72c36
[ "Apache-2.0" ]
1
2021-12-30T08:23:21.000Z
2021-12-30T08:23:21.000Z
paddleslim/nas/ofa/convert_super.py
maxpark/PaddleSlim
f6b827fca5f3d9cc467426b8ef30e3a6d2b012b9
[ "Apache-2.0" ]
null
null
null
paddleslim/nas/ofa/convert_super.py
maxpark/PaddleSlim
f6b827fca5f3d9cc467426b8ef30e3a6d2b012b9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
45.354167
432
0.507206
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
0
0
0
33,014
0
0
0
72
287
d27d5b61acd3b4c1ac9339b822d86b898b922e93
419
py
Python
ch6/stopwordfacts.py
bronevet-abc/NLPython
edb2f2c558215df556449c0fafb717d3442cfd9b
[ "MIT" ]
null
null
null
ch6/stopwordfacts.py
bronevet-abc/NLPython
edb2f2c558215df556449c0fafb717d3442cfd9b
[ "MIT" ]
null
null
null
ch6/stopwordfacts.py
bronevet-abc/NLPython
edb2f2c558215df556449c0fafb717d3442cfd9b
[ "MIT" ]
null
null
null
from gensim import models w = models.Word2Vec.load_word2vec_format('/home/jalaj/Downloads/GoogleNews-vectors-negative300.bin', binary=True) if 'the' in w.wv.vocab: print("Vector for word 'the' \n") print(w.wv['the']) else: print("Vocabulary doesn't include word 'the'\n") if 'a' in w.wv.vocab: print("Vec...
34.916667
113
0.677804
from gensim import models w = models.Word2Vec.load_word2vec_format('/home/jalaj/Downloads/GoogleNews-vectors-negative300.bin', binary=True) if 'the' in w.wv.vocab: print("Vector for word 'the' \n") print(w.wv['the']) else: print("Vocabulary doesn't include word 'the'\n") if 'a' in w.wv.vocab: print("Vec...
0
0
0
0
0
0
0
0
0
65d276966f308225a1010b7dd886205ed3264332
327
py
Python
django_yubin/iter_utils.py
pmendezsuarez/django-yubin
6832bb2bb5b3aa8e00c9484475db9c4a593de2f0
[ "Apache-2.0" ]
37
2015-02-27T15:35:55.000Z
2022-02-11T13:58:29.000Z
django_yubin/iter_utils.py
pmendezsuarez/django-yubin
6832bb2bb5b3aa8e00c9484475db9c4a593de2f0
[ "Apache-2.0" ]
56
2015-02-04T00:18:39.000Z
2022-01-17T14:25:18.000Z
django_yubin/iter_utils.py
pmendezsuarez/django-yubin
6832bb2bb5b3aa8e00c9484475db9c4a593de2f0
[ "Apache-2.0" ]
29
2015-05-18T15:53:45.000Z
2021-12-17T11:37:31.000Z
import itertools def peek(sequence): """ Returns the value of the top of the sequence without removing the value from the data. """ iterable = iter(sequence) try: first = next(iterable) return first, itertools.chain([first], iterable) except StopIteration: return No...
21.8
75
0.633028
import itertools def peek(sequence): """ Returns the value of the top of the sequence without removing the value from the data. """ iterable = iter(sequence) try: first = next(iterable) return first, itertools.chain([first], iterable) except StopIteration: return No...
0
0
0
0
0
0
0
0
0
4d1560d4925bf5bccbfb37740702d79ea76917da
65,128
py
Python
resources/Wireshark/WiresharkDissectorFoo/help/faq.py
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
2
2020-09-11T05:51:42.000Z
2020-12-31T11:42:02.000Z
resources/Wireshark/WiresharkDissectorFoo/help/faq.py
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
null
null
null
resources/Wireshark/WiresharkDissectorFoo/help/faq.py
joshis1/C_Programming
4a8003321251448a167bfca0b595c5eeab88608d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # faq.py # # Routines to assemble a FAQ list for the Wireshark web site. # Questions and answer content can be found below. Section and # question numbers will be automatically generated. # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Co...
35.725727
145
0.741893
#!/usr/bin/env python # # faq.py # # Routines to assemble a FAQ list for the Wireshark web site. # Questions and answer content can be found below. Section and # question numbers will be automatically generated. # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Co...
0
0
0
2,420
0
1,813
0
-8
290
40302b004460699dfe8522c59c9a3e8cf1c35d83
89
py
Python
configs/_base_/filters/savizky_golay.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
configs/_base_/filters/savizky_golay.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
configs/_base_/filters/savizky_golay.py
pallgeuer/mmpose
d3c17d5e6bdb9dbaca19f3bf53aa2802105355fd
[ "Apache-2.0" ]
null
null
null
filter_cfg = dict( type='SavizkyGolayFilter', window_size=11, polyorder=2, )
14.833333
30
0.662921
filter_cfg = dict( type='SavizkyGolayFilter', window_size=11, polyorder=2, )
0
0
0
0
0
0
0
0
0
b8439448287ddf1bbb2368705d0a9643ba1ccc8e
1,363
py
Python
CustomCNN.py
mehtajinesh/Classify-Dog-Breeds-using-CNNs
6ab2549ec592bd4d7fe404f7973663bc4d38ba15
[ "MIT" ]
3
2019-12-09T07:51:31.000Z
2020-12-10T18:30:03.000Z
CustomCNN.py
mehtajinesh/Classify-Dog-Breeds-using-CNNs
6ab2549ec592bd4d7fe404f7973663bc4d38ba15
[ "MIT" ]
4
2021-03-19T10:03:22.000Z
2022-03-12T00:10:53.000Z
CustomCNN.py
mehtajinesh/Classify-Dog-Breeds-using-CNNs
6ab2549ec592bd4d7fe404f7973663bc4d38ba15
[ "MIT" ]
null
null
null
import torch.nn as nn # define the CNN architecture
33.243902
66
0.547322
import torch.nn as nn import torch.nn.functional as F # define the CNN architecture class Net(nn.Module): ### TODO: choose an architecture, and complete the class def __init__(self): super(Net, self).__init__() ## Define layers of a CNN self.features = nn.Sequential( # 1st 2...
0
0
0
1,257
0
0
0
10
44
c5b910ce2d9d382f8cdfb27852093b6ecd72db00
21,559
py
Python
Quaternion/tests/test_all.py
sot/Quaternion
610fe97f875199e0ec41e2b1c6f738457f134fd1
[ "BSD-3-Clause" ]
null
null
null
Quaternion/tests/test_all.py
sot/Quaternion
610fe97f875199e0ec41e2b1c6f738457f134fd1
[ "BSD-3-Clause" ]
28
2016-07-13T18:05:05.000Z
2021-08-31T15:18:26.000Z
Quaternion/tests/test_all.py
sot/Quaternion
610fe97f875199e0ec41e2b1c6f738457f134fd1
[ "BSD-3-Clause" ]
4
2016-11-11T20:54:43.000Z
2021-02-12T02:54:52.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pickle import os from .. import Quat, normalize ra = 10. dec = 20. roll = 30. q0 = Quat([ra, dec, roll]) equatorial_23 = np.array([[[10, 20, 30], [10, 20, -30], [10, -60...
32.714719
91
0.588339
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np import pytest import pickle import os from .. import Quat, normalize def indices(t): import itertools for k in itertools.product(*[range(i) for i in t]): yield k def normalize_angles(x, xmin, xmax): while np.any(...
0
895
0
12
87
14,277
0
-8
758
65412ef002af7b1dc9bc280643785461f236172e
3,240
py
Python
gdf_tests/test_config_file.py
dunkgray/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
7
2015-08-27T09:20:55.000Z
2019-06-27T14:00:11.000Z
gdf_tests/test_config_file.py
alex-ip/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
null
null
null
gdf_tests/test_config_file.py
alex-ip/gdf
7b39f0c90cf63d501b36ea9d754269616d79e0d4
[ "Apache-2.0" ]
5
2015-05-13T05:58:13.000Z
2019-12-09T00:36:11.000Z
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
34.83871
117
0.671605
#!/usr/bin/env python #=============================================================================== # Copyright (c) 2014 Geoscience Australia # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions ar...
0
0
0
592
0
50
0
6
96
9b3154638b0c846a8de9d8e99c8b465693e7cb4f
250
py
Python
eunice012716/Week1/ch2/2.6/exercise2.py
coookie89/Intern-Training
6e3b26edfee5bdcc98dd5ac05d35cef125778ad5
[ "MIT" ]
1
2021-08-24T12:14:46.000Z
2021-08-24T12:14:46.000Z
eunice012716/Week1/ch2/2.6/exercise2.py
coookie89/Intern-Training
6e3b26edfee5bdcc98dd5ac05d35cef125778ad5
[ "MIT" ]
14
2021-07-09T07:48:35.000Z
2021-08-19T03:06:31.000Z
eunice012716/Week1/ch2/2.6/exercise2.py
coookie89/Intern-Training
6e3b26edfee5bdcc98dd5ac05d35cef125778ad5
[ "MIT" ]
11
2021-07-09T07:35:24.000Z
2021-08-15T07:19:43.000Z
if __name__ == "__main__": print("The upper bound of P(AB) = P(A) + P(B)\n") print("The lower bound of P(AB) = max(P(A), P(B))\n") print("The upper bound of P(AB) = max(P(A), P(B))\n") print("The lower bound of P(AB) = 0\n")
41.666667
59
0.532
if __name__ == "__main__": print("The upper bound of P(A∪B) = P(A) + P(B)\n") print("The lower bound of P(A∪B) = max(P(A), P(B))\n") print("The upper bound of P(A∩B) = max(P(A), P(B))\n") print("The lower bound of P(A∩B) = 0\n")
12
0
0
0
0
0
0
0
0
a2103083f0f7d54ec8154290af8a153fcc08a0cd
1,365
py
Python
tests/test_pype_flowgraph.py
Mynti207/TimeDB
08e72c4e237bfe8ee0642179cdc6ccd570a52550
[ "MIT" ]
null
null
null
tests/test_pype_flowgraph.py
Mynti207/TimeDB
08e72c4e237bfe8ee0642179cdc6ccd570a52550
[ "MIT" ]
null
null
null
tests/test_pype_flowgraph.py
Mynti207/TimeDB
08e72c4e237bfe8ee0642179cdc6ccd570a52550
[ "MIT" ]
null
null
null
__author__ = "Mynti207" __copyright__ = "Mynti207" __license__ = "mit"
26.25
72
0.651282
import pytest from pype import * __author__ = "Mynti207" __copyright__ = "Mynti207" __license__ = "mit" def test_flowgraph(): # create flowgraph and nodes FG = fgir.Flowgraph("standardize") FG.new_node(FGNodeType.unknown, None) FG.new_node(FGNodeType.unknown, 1) FG.new_node(FGNodeType.unknown, 2...
0
0
0
0
0
1,236
0
-11
67
06b9377e2c1fca5b77db45fb9af0019cb2aaff14
2,268
py
Python
.kodi/addons/script.ftvguide/strings.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/script.ftvguide/strings.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
null
null
null
.kodi/addons/script.ftvguide/strings.py
C6SUMMER/allinclusive-kodi-pi
8baf247c79526849c640c6e56ca57a708a65bd11
[ "Apache-2.0" ]
2
2018-04-17T17:34:39.000Z
2020-07-26T03:43:33.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Tommy Winther # http://tommy.winther.nu # # Modified for FTV Guide (09/2014 onwards) # by Thomas Geppert [bluezed] - bluezed.apps@gmail.com # # This Program is free software; you can redistribute it and/or modify # it under the terms of the G...
28
73
0.745591
# -*- coding: utf-8 -*- # # Copyright (C) 2012 Tommy Winther # http://tommy.winther.nu # # Modified for FTV Guide (09/2014 onwards) # by Thomas Geppert [bluezed] - bluezed.apps@gmail.com # # This Program is free software; you can redistribute it and/or modify # it under the terms of the G...
0
0
0
0
0
165
0
0
24
40633883c1f46469abf4e2108447cf8284f80196
921
py
Python
cvpods/utils/imports.py
0x4f5da2/BorderDet
a3bdcb2e62b9a395075963b9d400bc2109463d22
[ "Apache-2.0" ]
null
null
null
cvpods/utils/imports.py
0x4f5da2/BorderDet
a3bdcb2e62b9a395075963b9d400bc2109463d22
[ "Apache-2.0" ]
null
null
null
cvpods/utils/imports.py
0x4f5da2/BorderDet
a3bdcb2e62b9a395075963b9d400bc2109463d22
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : imports.py @Time : 2020/05/07 23:59:19 @Author : Benjin Zhu @Contact : poodarchu@gmail.com @Last Modified by : Benjin Zhu @Last Modified time : 2020/05/07 23:59:19 ''' import imp def dynamic_i...
28.78125
80
0.603692
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : imports.py @Time : 2020/05/07 23:59:19 @Author : Benjin Zhu @Contact : poodarchu@gmail.com @Last Modified by : Benjin Zhu @Last Modified time : 2020/05/07 23:59:19 ''' import imp def dynamic_i...
0
0
0
0
0
0
0
0
0
9ea0669177fcaaa99ed69cff6207ee673a129f43
1,224
py
Python
scripts/kernel_load.py
strawberryhacker/cinnamonOS
6eb663123c07c8573a5bd1993f6001f2fbe1ccb7
[ "MIT" ]
24
2020-08-24T18:31:46.000Z
2020-10-25T09:06:57.000Z
scripts/kernel_load.py
strawberryhacker/citrus-kernel
6eb663123c07c8573a5bd1993f6001f2fbe1ccb7
[ "MIT" ]
35
2020-09-19T13:40:58.000Z
2020-10-27T01:21:59.000Z
scripts/kernel_load.py
strawberryhacker/citrusOS
6eb663123c07c8573a5bd1993f6001f2fbe1ccb7
[ "MIT" ]
1
2021-06-01T17:57:14.000Z
2021-06-01T17:57:14.000Z
# Copyright (C) strawberryhacker # Used for loading a custom application to the CitrusOS and execute it main()
24.48
70
0.65768
# Copyright (C) strawberryhacker import os import sys import serial import time from citrus import citrus_packet from citrus import citrus_file from loading import loading_simple from loading import loading_bar # Used for loading a custom application to the CitrusOS and execute it def main(): start = int(round(...
0
0
0
0
0
908
0
2
201
787c575813c9701765cb7fe3a2ff8e9fd18f93d3
71
py
Python
tests/__init__.py
reclamador/document_clipper
61be44eb023a5e32c8a2886e579dffe4d4d525ee
[ "MIT" ]
3
2017-11-08T12:58:14.000Z
2021-08-29T06:33:24.000Z
tests/__init__.py
reclamador/document_clipper
61be44eb023a5e32c8a2886e579dffe4d4d525ee
[ "MIT" ]
130
2017-11-13T12:46:48.000Z
2022-03-11T23:11:39.000Z
tests/__init__.py
reclamador/document_clipper
61be44eb023a5e32c8a2886e579dffe4d4d525ee
[ "MIT" ]
1
2020-12-03T09:41:06.000Z
2020-12-03T09:41:06.000Z
# -*- coding: utf-8 -*- """Unit test package for document_clipper."""
17.75
45
0.619718
# -*- coding: utf-8 -*- """Unit test package for document_clipper."""
0
0
0
0
0
0
0
0
0
48a1b66fc9217ad435e82d602fb6b80f644b9382
547
py
Python
main/libdaemon/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/libdaemon/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/libdaemon/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "libdaemon" pkgver = "0.14" pkgrel = 0 build_style = "gnu_configure" configure_args = ["--disable-lynx"] hostmakedepends = ["pkgconf"] pkgdesc = "Lightweight C library that eases the writing of UNIX daemons" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "http://0pointer.de/len...
32.176471
75
0.751371
pkgname = "libdaemon" pkgver = "0.14" pkgrel = 0 build_style = "gnu_configure" configure_args = ["--disable-lynx"] hostmakedepends = ["pkgconf"] pkgdesc = "Lightweight C library that eases the writing of UNIX daemons" maintainer = "q66 <q66@chimera-linux.org>" license = "LGPL-2.1-or-later" url = "http://0pointer.de/len...
0
59
0
0
0
0
0
0
23
688a19a98edd409433c22d157ee58a5e92da91f9
8,287
py
Python
pyQuASAR/pyQuASAR.py
anthony-aylward/pyQuASAR
9fee9817b576615ff4cd96f08cdaa76ddc1a236e
[ "MIT" ]
null
null
null
pyQuASAR/pyQuASAR.py
anthony-aylward/pyQuASAR
9fee9817b576615ff4cd96f08cdaa76ddc1a236e
[ "MIT" ]
null
null
null
pyQuASAR/pyQuASAR.py
anthony-aylward/pyQuASAR
9fee9817b576615ff4cd96f08cdaa76ddc1a236e
[ "MIT" ]
null
null
null
#=============================================================================== # pyQuASAR.py #=============================================================================== # Imports ====================================================================== import gzip import itertools import os import os.path import p...
26.81877
80
0.485218
#=============================================================================== # pyQuASAR.py #=============================================================================== # Imports ====================================================================== import funcgenom import gzip import itertools import os impor...
0
0
0
0
3,256
0
0
-5
69
10d4dc862e6d17cf503b0e5b178d5c8b237f342f
2,935
py
Python
helper/views.py
arkRedM/ua-iamai-cg-python
c51aa9c76a9b9734917b39e1bbda673b2a8f9cae
[ "MIT" ]
null
null
null
helper/views.py
arkRedM/ua-iamai-cg-python
c51aa9c76a9b9734917b39e1bbda673b2a8f9cae
[ "MIT" ]
9
2019-12-04T23:22:49.000Z
2022-02-10T07:50:16.000Z
helper/views.py
arkRedM/ua-iamai-abhinav-harish-python
c51aa9c76a9b9734917b39e1bbda673b2a8f9cae
[ "MIT" ]
null
null
null
EMAIL_REGEX = '^[a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$'
27.688679
160
0.611244
import re import idna from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_http_methods from helper.models import UserData, NotesData EMAIL_REGEX = '^[a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$' @csrf_exem...
0
1,543
0
0
0
963
0
88
249
3f28f8ea9f6d7f7343afdb3a96f06fd29ff0a8bb
1,115
py
Python
microservices/utils.py
estibensmanchego/retail
0b36eb48b080bbde8ac38ac45267d77cebae7432
[ "MIT" ]
null
null
null
microservices/utils.py
estibensmanchego/retail
0b36eb48b080bbde8ac38ac45267d77cebae7432
[ "MIT" ]
null
null
null
microservices/utils.py
estibensmanchego/retail
0b36eb48b080bbde8ac38ac45267d77cebae7432
[ "MIT" ]
null
null
null
access_control = {'Access-Control-Allow-Origin': '*','Access-Control-Allow-Credentials': 'true'}
21.037736
102
0.671749
import json import datetime import decimal from math import sqrt access_control = {'Access-Control-Allow-Origin': '*','Access-Control-Allow-Credentials': 'true'} def validate(value): body = {'status': False, 'message': value + " is required."} response = { "statusCode": 400, "headers": access_control, "body"...
0
0
0
0
0
836
0
-23
204
977e5030df24240fb62138565ca88a32e059b69d
905
py
Python
api-gateway/server/__init__.py
Niweera/DNSTool-Middleware-API
0e83d9f62fb65d9223b86a7876b3f30b2771befb
[ "Apache-2.0" ]
null
null
null
api-gateway/server/__init__.py
Niweera/DNSTool-Middleware-API
0e83d9f62fb65d9223b86a7876b3f30b2771befb
[ "Apache-2.0" ]
9
2021-06-12T05:39:59.000Z
2021-08-14T09:20:00.000Z
api-gateway/server/__init__.py
Niweera/DNSTool-Middleware-API
0e83d9f62fb65d9223b86a7876b3f30b2771befb
[ "Apache-2.0" ]
2
2021-05-22T15:33:50.000Z
2021-08-28T08:51:25.000Z
from os.path import abspath, join, dirname, realpath from flask import Flask from flask_cors import CORS from cache import initialize_cache from compress import initialize_compress from controllers import initialize_routes from flask_restful import Api from mailer import initialize_mailer from middleware.error_handling...
24.459459
80
0.78232
from os.path import abspath, join, dirname, realpath from flask import Flask from flask_cors import CORS from cache import initialize_cache from compress import initialize_compress from controllers import initialize_routes from flask_restful import Api from mailer import initialize_mailer from middleware.error_handling...
0
0
0
0
0
0
0
0
0
35a2fe39e3494f6a6cb5353894a5e81463e013c9
1,980
py
Python
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
1
2020-05-27T16:18:43.000Z
2020-05-27T16:18:43.000Z
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
null
null
null
scannerKH/bestellung/migrations/0001_initial.py
JanGut/scannerKH
1814d2f110af3abdde75e253cab96300701dd531
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-18 10:36
46.046512
156
0.647475
# Generated by Django 3.0.5 on 2020-04-18 10:36 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('grosshaendler', '0001_initial'), ('artikel', '0...
0
0
0
1,784
0
0
0
35
112
413b9efa3a39ff7dd7a517413b97f43f3549ffa1
4,115
py
Python
BackEnd/table_manager.py
doughnut187/CIS407_FF
a4e5be03824604f99be9dc41c7b9f40e36fbad96
[ "MIT" ]
null
null
null
BackEnd/table_manager.py
doughnut187/CIS407_FF
a4e5be03824604f99be9dc41c7b9f40e36fbad96
[ "MIT" ]
null
null
null
BackEnd/table_manager.py
doughnut187/CIS407_FF
a4e5be03824604f99be9dc41c7b9f40e36fbad96
[ "MIT" ]
null
null
null
""" Filename: table_manager.py Purpose: A program to define and create all tables needed in the database Authors: Jordan Smith Group: Wholesome as Heck Programmers (WaHP) Last modified: 11/13/21 """ from db_manager import db_mgr DROP_ALL = True tables = {} ### # TABLES TO BE ADDED ### tables['fitnessGoal'] = { ...
27.993197
88
0.612394
""" Filename: table_manager.py Purpose: A program to define and create all tables needed in the database Authors: Jordan Smith Group: Wholesome as Heck Programmers (WaHP) Last modified: 11/13/21 """ from db_manager import db_mgr DROP_ALL = True tables = {} ### # TABLES TO BE ADDED ### tables['fitnessGoal'] = { ...
0
0
0
0
0
0
0
0
0
6a81c5a41ae96203f45ff1b955cf357c3fe8d61d
753
py
Python
postgresqleu/confreg/migrations/0029_drop_mailman_sync.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
11
2020-08-20T11:16:02.000Z
2022-03-12T23:25:04.000Z
postgresqleu/confreg/migrations/0029_drop_mailman_sync.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
71
2019-11-18T10:11:22.000Z
2022-03-27T16:12:57.000Z
postgresqleu/confreg/migrations/0029_drop_mailman_sync.py
bradfordboyle/pgeu-system
bbe70e7a94092c10f11a0f74fda23079532bb018
[ "MIT" ]
18
2019-11-18T09:56:31.000Z
2022-01-08T03:16:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-10-09 14:26 from __future__ import unicode_literals
23.53125
49
0.575033
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-10-09 14:26 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('confreg', '0028_conferencenews'), ] operations = [ migrations.RemoveField( ...
0
0
0
581
0
0
0
11
46
54d42ececd3221eab54cf510c69419239e27e1be
9,300
py
Python
python/orca/example/learn/tf/image_segmentation/image_segmentation.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/orca/example/learn/tf/image_segmentation/image_segmentation.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/orca/example/learn/tf/image_segmentation/image_segmentation.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
41.150442
100
0.670968
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
0
0
0
0
0
6,950
0
202
423
61559f8d36b7771737d73c305c73f5b98979c15b
15,502
py
Python
fastrk/rk_base.py
BoberSA/fastrk
72b313537428bd4c15bdca29c9c4ef0c01039184
[ "MIT" ]
1
2021-07-12T18:36:27.000Z
2021-07-12T18:36:27.000Z
fastrk/rk_base.py
BoberSA/fastrk
72b313537428bd4c15bdca29c9c4ef0c01039184
[ "MIT" ]
null
null
null
fastrk/rk_base.py
BoberSA/fastrk
72b313537428bd4c15bdca29c9c4ef0c01039184
[ "MIT" ]
null
null
null
""" Algorithms for ode propagation with adaptive step selection using explicit embedded runge-kutta method (rk_step): - select_initial_step: select size of first step - rk_variable_step: make an adaptive rk step according to tolerance - rk_prop: integrate ode from s0, t0 to t (Cauchy's problem) - event_detector: root s...
34.372506
114
0.600052
""" Algorithms for ode propagation with adaptive step selection using explicit embedded runge-kutta method (rk_step): - select_initial_step: select size of first step - rk_variable_step: make an adaptive rk step according to tolerance - rk_prop: integrate ode from s0, t0 to t (Cauchy's problem) - event_detector: root s...
0
0
0
0
0
183
0
0
46
4a5de15344cb09a35e974ff8ea559ff1ccb96654
12,375
bzl
Python
pw_protobuf_compiler/pw_proto_library.bzl
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
pw_protobuf_compiler/pw_proto_library.bzl
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
pw_protobuf_compiler/pw_proto_library.bzl
Tiggerlaboratoriet/pigweed
7d7e7ad6223433f45af680f43ab4d75e23ad3257
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
35.560345
133
0.664727
# Copyright 2022 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
0
0
0
0
0
1,490
0
0
96
f539a6e9c103aca6a5bb59916fb5b8fef3519e25
6,906
py
Python
tests/test_storage.py
andher1802/dummy_0532
fb953c2785652c583d1147a2b688997e260e6afa
[ "MIT" ]
null
null
null
tests/test_storage.py
andher1802/dummy_0532
fb953c2785652c583d1147a2b688997e260e6afa
[ "MIT" ]
null
null
null
tests/test_storage.py
andher1802/dummy_0532
fb953c2785652c583d1147a2b688997e260e6afa
[ "MIT" ]
null
null
null
# pylint: disable=unused-import from .context import Storage, Asset, Order from .fixtures import (ASSET_ID, ORDER_ID, JSON_ASSET, JSON_ORDER) def test_paginate_with_limit_smaller_page_size(storage_mock, requests_mock): """ Test pagination with limit <= pagination size. """ url = "http://some_url/...
29.387234
83
0.62062
import pytest # pylint: disable=unused-import from .context import Storage, Asset, Order from .fixtures import ( ASSET_ID, ORDER_ID, WORKSPACE_ID, auth_mock, auth_live, storage_mock, storage_live, JSON_ASSET, JSON_ORDER, ) def test_init(storage_mock): assert isinstance(storage...
0
816
0
0
0
2,216
0
95
252
ea4268c8ca3f837d893737284413554e35d72642
902
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/plugins/doc_fragments/azure_tags.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/plugins/doc_fragments/azure_tags.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/plugins/doc_fragments/azure_tags.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2016, Matt Davis, <mdavis@ansible.com> # Copyright: (c) 2016, Chris Houseknecht, <house@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
34.692308
114
0.648559
# -*- coding: utf-8 -*- # Copyright: (c) 2016, Matt Davis, <mdavis@ansible.com> # Copyright: (c) 2016, Chris Houseknecht, <house@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Azure doc fragment DOCUMENTATION = r'''...
0
0
0
643
0
0
0
0
23