hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
25718b7871ad95440244b60393685b95d55ed3cb
4,028
py
Python
python_experiments/paper_figures/tkde/tkde_draw_dynamic_time_mem.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/tkde_draw_dynamic_time_mem.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/tkde_draw_dynamic_time_mem.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
import matplotlib.pyplot as plt import numpy as np from data_analysis.vldbj_data_parsing.generate_index_markdown import * from paper_figures.tkde.data_legacy.static_data_loader import * from paper_figures.tkde.tkde_common import * from paper_figures.tkde.tkde_get_static_reads_time import * dynamic_label_lst = ["PDLP"...
37.64486
108
0.642254
c2dd55a7a2cc189d1f983fc5715e54b4b16174f2
1,047
py
Python
2_Kontrollstrukturen/02_there_is_no_num_for_loop.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
2_Kontrollstrukturen/02_there_is_no_num_for_loop.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
2_Kontrollstrukturen/02_there_is_no_num_for_loop.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# There is no such concept in Python: # data = [1, 7, 11] # for i = 0; i<len(data); i++: # print("Now i is " + i) # print("The value is {}".format(data[i])) # Often new comers attempt to build one: data = [1, 7, 11] # NOT pythonic: faking it with a while ###################################################...
26.175
65
0.404967
6c102fd77547f74a6ab6663611eed7f2311a340d
2,502
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/net/netstats.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/netstats.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/net/netstats.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2009-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
34.273973
77
0.67506
6c21c07307723d0e268e0a3f86ca3580f5c1f7df
2,757
py
Python
validyahoo-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
validyahoo-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
validyahoo-main/run.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# coded by Yutix # totality free, not for sale # recoder anak anjing! import requests as req import requests.exceptions as rx from bs4 import BeautifulSoup as bs from concurrent.futures import ThreadPoolExecutor as tpx grey = '\033[90m' red = '\033[91m' green = '\033[92m' yellow = '\033[93m' blue = '\033...
30.296703
351
0.585419
6662c97653730385533391fcee164317f11d3cc5
10,538
py
Python
Packs/Cognni/Integrations/Cognni/Cognni_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Cognni/Integrations/Cognni/Cognni_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Cognni/Integrations/Cognni/Cognni_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io def util_load_json(path): with io.open(path, mode='r', encoding='utf-8') as f: return json.loads(f.read()) def test_fetch_incidents(requests_mock): """Tests the fetch-incidents function """ from Cognni import Client, fetch_incidents mock_response = util_load_json('...
28.63587
91
0.658095
66c5cd70cb34a5dcfa3c486729d87364e4caa970
8,903
py
Python
etc/kbdtest.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
1
2021-06-15T08:59:02.000Z
2021-06-15T08:59:02.000Z
etc/kbdtest.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
etc/kbdtest.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
import RPi.GPIO as GPIO import time import smbus import logging logger = logging.getLogger("kbd-logger") logger.setLevel(logging.DEBUG) formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s') fh = logging.FileHandler("kbdtest.log") fh.setLevel(logging.DEBUG) ch = logging.StreamHandler() ...
31.570922
106
0.65169
dd8f5fbf659c63b4ed175365d8083a3ff8d3ffab
1,017
py
Python
pluginsinterface/PluginLoader.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
pluginsinterface/PluginLoader.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
1
2020-09-22T02:30:40.000Z
2020-09-22T02:30:40.000Z
pluginsinterface/PluginLoader.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- #插件装载 from pluginsinterface.TypeExtension import PlugMsgReturn, PlugMsgTypeEnum from pluginsinterface.PlugFilter import PlugArgFilter from pluginsinterface.EventHandling import StandEven from pluginsinterface.PlugSession import SessionManagement, Session from pluginsinterface.PlugFilter import S...
30.818182
113
0.861357
b03f225560b40397489acf66298d831158f9d8ed
628
py
Python
jburt/filter.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
jburt/filter.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
jburt/filter.py
jbburt/jburt
7745491214ef2b665ca8d1fc526bc802a36985ff
[ "MIT" ]
null
null
null
""" Functions for filtering signals. """ from scipy.signal import butter from scipy.signal import lfilter def _butter_iir_coeffs(cutoff, fs, btype, order=5): nyq = 0.5 * fs normal_cutoff = cutoff / nyq b, a = butter(order, normal_cutoff, btype=btype, analog=False) return b, a def butter_lowpass_fil...
24.153846
68
0.679936
b0648ed82bb76289d10db3f297c4f249bdba7ca7
1,452
py
Python
setup.py
frocentus/offenewahlen_api
71860583890f8a4c23df67f271e8f13558fa9582
[ "MIT" ]
14
2017-07-12T14:42:57.000Z
2017-09-08T20:32:53.000Z
setup.py
frocentus/offenewahlen_api
71860583890f8a4c23df67f271e8f13558fa9582
[ "MIT" ]
209
2017-07-11T21:36:01.000Z
2017-11-05T01:10:50.000Z
setup.py
OKFNat/offenewahlen-api
71860583890f8a4c23df67f271e8f13558fa9582
[ "MIT" ]
8
2017-07-15T09:40:42.000Z
2018-01-12T03:02:06.000Z
from setuptools import setup, find_packages import os with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as readme: README = readme.read() os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) CLASSIFIERS = [ #'Development Status :: 1 - ', 'Environment :: Web Enviro...
29.632653
78
0.664601
c6bea373d81bfdaa798908fdb45fd1fdc7c4d066
762
py
Python
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-02-return_statements.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-02-return_statements.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/udemy-AutomateTheBoringStuffWithPythonProgramming/Ch03-Functions-02-return_statements.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# Ch03-Functions-02-return_statements.py # # https://automatetheboringstuff.com/chapter3/ # Functions: Lesson 9 - def Statements, arguments, and the None value # # Changes from the original code # - I recuded the number of if-else statements. # Return Values and return Statements import random def getAns...
26.275862
70
0.645669
c6c5515d93c8585e92bb072fb6184fdc3b55e7bf
1,551
py
Python
visual.py
henrique/jigsaw20
5d12de807667810ea9b9bdb9cbccebabea7ed21d
[ "Apache-2.0" ]
8
2020-06-23T13:42:34.000Z
2022-01-25T11:00:01.000Z
visual.py
henrique/jigsaw20
5d12de807667810ea9b9bdb9cbccebabea7ed21d
[ "Apache-2.0" ]
null
null
null
visual.py
henrique/jigsaw20
5d12de807667810ea9b9bdb9cbccebabea7ed21d
[ "Apache-2.0" ]
3
2020-06-24T03:18:26.000Z
2020-07-30T01:22:53.000Z
""" plot and save to gcs """ from matplotlib import pyplot as plt from google.cloud import storage def save_fig(filename, path, gcs): """ save current plt fig to gcs """ plt.gcf().savefig(filename) plt.close() if gcs: # init GCS client and upload file client = storage.Client() b...
31.02
53
0.633785
af437772716738120c237e26aed4a6fac0623718
2,416
py
Python
fuzzsvc/app/seed.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
null
null
null
fuzzsvc/app/seed.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
null
null
null
fuzzsvc/app/seed.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
null
null
null
from app import app from model.FuzzingPlatform import FuzzingPlatform from model.FuzzingArch import FuzzingArch from model.FuzzingEngine import FuzzingEngine from model.FuzzingJobState import FuzzingJobState from model.FuzzingTarget import FuzzingTarget from model.FuzzingScript import FuzzingScript from model.FuzzingOp...
31.789474
106
0.755381
afd68de0cb51244c14b3149549658df20792d9c0
428
py
Python
python/decorator/decorating_wirh_args_fixed.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/decorating_wirh_args_fixed.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/decorator/decorating_wirh_args_fixed.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def debug_transformer(func): def wrapper(*args, **kwargs): print(f'Function `{func.__name__}` called') # And pass it to the original function ret = func(*args, **kwargs) print(f'Function `{func.__name__}` finished') return ret return wrapper @debug_transformer def walk...
19.454545
53
0.635514
a5bc8a99c98084135a131974d100a30a74073d7b
447
py
Python
Lab_02/Register.py
SadequrRahman/advance-SoC
35da93adfcdb1b4ec740cb44ffc54d9c8cc7adc4
[ "BSD-4-Clause-UC" ]
null
null
null
Lab_02/Register.py
SadequrRahman/advance-SoC
35da93adfcdb1b4ec740cb44ffc54d9c8cc7adc4
[ "BSD-4-Clause-UC" ]
null
null
null
Lab_02/Register.py
SadequrRahman/advance-SoC
35da93adfcdb1b4ec740cb44ffc54d9c8cc7adc4
[ "BSD-4-Clause-UC" ]
null
null
null
from pymtl3 import * class Register(Component): def construct(s, dType): s.d = InPort(dType) s.q = OutPort(dType) s.l = InPort(b1) s.c = InPort(b1) @s.update_ff def seq_logic(): if s.c == b1(1): s.q <<= dType(0) elif s.l...
22.35
64
0.427293
593622f244cddbb62d712d6e293437af3e254702
951
py
Python
backend/Parsers/tonyen_hsinchu.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
39
2021-05-01T03:36:44.000Z
2021-11-16T13:29:21.000Z
backend/Parsers/tonyen_hsinchu.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
50
2021-04-28T10:57:07.000Z
2021-08-19T05:13:07.000Z
backend/Parsers/tonyen_hsinchu.py
SeanGau/vaccinate
f3d7388c666ee466da570e8c17bbe1f2caee912f
[ "MIT" ]
19
2021-05-02T04:25:02.000Z
2021-07-11T04:34:16.000Z
from hospital_types import ( AppointmentAvailability, ScrapedData, HospitalAvailabilitySchema, ) from Parsers.Scraper import Scraper import aiohttp URL = "https://w3.tyh.com.tw/WebRegList_Dept.aspx?d=55" class TonyenHsinchu(Scraper): hospital_id = "0933050018" async def scrape(self) -> Scraped...
30.677419
71
0.690852
3cec26de635b26294d53b3a336d131403825ac1d
2,007
py
Python
src/ingestion/transformers/base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/ingestion/transformers/base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/ingestion/transformers/base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import logging from jsonschema import validate import abc import json import pyjq class Transformer: @classmethod def match(cls, input, schema): try: validate(instance=input, schema=schema) return True except Exception as e: logging.info(e) return...
31.359375
163
0.671649
a72f946655ab06e12c01cbf85598ed641d6ce71e
228
py
Python
exercises/ja/solution_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
from spacy.lang.ja import Japanese nlp = Japanese() doc = nlp("私はネコを飼っています") # 単語「ネコ」のハッシュを引く cat_hash = nlp.vocab.strings["ネコ"] print(cat_hash) # cat_hashを使って文字列を引く cat_string = nlp.vocab.strings[cat_hash] print(cat_string)
17.538462
40
0.758772
f9f36c4a2a52c5c88ce02116145f67e3e0008eca
114
py
Python
Packs/GmailSingleUser/Integrations/GmailSingleUser/.vulture_whitelist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GmailSingleUser/Integrations/GmailSingleUser/.vulture_whitelist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GmailSingleUser/Integrations/GmailSingleUser/.vulture_whitelist.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
# flake8: noqa attrs # unused variable (GmailSingleUser.py:56) attrs # unused variable (GmailSingleUser.py:62)
22.8
48
0.754386
e60619070538327655b16db912d2c84194b92645
190
py
Python
python/coursera_python/WESLEYAN/week4/test/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/test/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/test/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import statistics nlist = [2, 4, 13, 3, 7, 8, 5] nlisteven = nlist + [9] rlist = [3.14, 2.71, -8.43, 5.25, 10.11, -23.78, 44.45] rlisteven = rlist + [90.3] print(statistics.mean(nlist))
17.272727
55
0.6
e65aeddf00d16e99db96a685cc6a8ac8cca1176d
2,130
py
Python
src/preprocessing/TemporalFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
7
2015-11-27T09:53:32.000Z
2021-01-13T17:35:54.000Z
src/preprocessing/TemporalFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
src/preprocessing/TemporalFilter.py
florianletsch/kinect-juggling
f320cc0b55adf65d338d25986a03106a7e3f46ef
[ "Unlicense", "MIT" ]
null
null
null
import numpy as np import cv try: import vigra as vi except: print "ERROR: vigra not installed. Cannot use temporal filtering" from src.DelayedBuffer import DelayedBuffer class TemporalFilter(object): def __init__(self, minSize=100, maxRegions=50, erosion=True): self.buffer = DelayedBuffe...
35.5
131
0.543192
e660b65e9080d99e4f72a75a465b27cfd91f2f82
422
py
Python
backend/api/btb/templates/match.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/templates/match.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/templates/match.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
from .template import Template from os import environ from .load import load_file from .render import render def match_template(data): frontend = environ["FRONTEND_URL"] if "FRONTEND_URL" in environ else 'http://localhost:3000' subject = "JOWOMO: {name} bittet um Austausch".format(**data) body = render("m...
26.375
96
0.675355
e985ce2026a3bc5f7d9fd0ffc5492b2d1d299c2f
616
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/65_comportamento_geradores_iteradores/comportamento_geradores_iteradores.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/65_comportamento_geradores_iteradores/comportamento_geradores_iteradores.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/65_comportamento_geradores_iteradores/comportamento_geradores_iteradores.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
nome = 'Luiz Otavio' iterador = iter(nome) # quando usado o next o valor da variavel ja era, e nn executa os outros comandos ex. for try: print(next(iterador)) print(next(iterador)) print(next(iterador)) print(next(iterador)) print(next(iterador)) print(next(iterador)) print(next(iterador))...
21.241379
111
0.654221
9bb054c6d6361c113c9a6636b3f1b715cb806f22
193
py
Python
Qualcomm_project/Qualcomm_project/apps/network/serializers.py
yhj2013/Django-project
6f878cf66a7c2749bc861810da8bfa68274fb684
[ "BSD-2-Clause" ]
null
null
null
Qualcomm_project/Qualcomm_project/apps/network/serializers.py
yhj2013/Django-project
6f878cf66a7c2749bc861810da8bfa68274fb684
[ "BSD-2-Clause" ]
null
null
null
Qualcomm_project/Qualcomm_project/apps/network/serializers.py
yhj2013/Django-project
6f878cf66a7c2749bc861810da8bfa68274fb684
[ "BSD-2-Clause" ]
null
null
null
from rest_framework import serializers # from .models import . class NetworkSerializer(serializers.ModelSerializer): """network序列化器""" class Meta: model = '' # 这里指定对应的那个数据表
19.3
53
0.704663
32cde8b907725634b65d85a620e45a01fc2377b4
2,902
py
Python
src/data_science/data_science/simulation/dependencies.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/simulation/dependencies.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/simulation/dependencies.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
"""Dependencies that can be added to a device.""" import math from data_science.tools.classes import InstanceTraceable class Dependency(InstanceTraceable): """A dependency.""" def __init__(self, name, first_parameter, second_parameter, a, third_parameter=None, b=0, c=0, d=0, e=0): "...
29.02
77
0.590627
32d3a652f49cdcdc0c6f1563c59a14c12891aba7
2,748
py
Python
paddlenlp/transformers/export.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/export.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/transformers/export.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.643836
92
0.669214
fd213a47a1e5a116cf50ab519b2885e87e3b710c
905
py
Python
frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_gateway_account/payment_gateway_account.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class PaymentGatewayAccount(Document): def autoname(self): self.name = self...
32.321429
90
0.735912
1fc1b8f3eb7a367a4b20be0c72e252cd3a06e372
404
py
Python
exercises/ja/solution_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/solution_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/solution_04_10.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
TRAINING_DATA = [ ( "去年アスムテルダムに行った。運河がきれいだった。", {"entities": [(2, 9, "GPE")]}, ), ( "人生で一度はパリに行くべきだけど、エッフェル塔はちょっとつまらないな。", {"entities": [(6, 8, "GPE")]}, ), ( "アーカンソーにもパリはあるw", {"entities": [(0, 6, "GPE"), (8, 10, "GPE")]}, ), ( "ベルリンは夏...
21.263158
54
0.433168
7b2725d3e1ce3d795a32ada0d80ab3baa942abce
6,271
py
Python
python/tutlibs/constructing.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tutlibs/constructing.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tutlibs/constructing.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
from typing import Tuple import numpy as np from .transformation import TransformationMatrix as tm from tutlibs.operator import gather def marching_cubes(): return def tsdf(): return def mesh_to_point( vertices: np.ndarray, triangles: np.ndarray, num_samples: int ) -> np.ndarray: """Sample a point...
28.504545
87
0.599266
7bb89bb29493290c791ae3fc4bcc2f53cc533cfc
1,257
py
Python
docker/django/restaurant/restapps/migrations/0002_auto_20211225_1410.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
3
2019-08-29T10:14:40.000Z
2021-03-05T09:50:15.000Z
docker/django/restaurant/restapps/migrations/0002_auto_20211225_1410.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
null
null
null
docker/django/restaurant/restapps/migrations/0002_auto_20211225_1410.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
1
2021-03-05T09:50:29.000Z
2021-03-05T09:50:29.000Z
# Generated by Django 3.2 on 2021-12-25 14:10 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('restapps', '0001_initial'), ] operations = [ migrations.AlterField( ...
33.078947
121
0.582339
a94f389c544ec560a19feb45515adf8fcdb5ec4f
1,284
py
Python
HW2/detect_features.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW2/detect_features.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
HW2/detect_features.py
kvswim/kv_jhu_cv
2ddf7a9d497aef116a7c043157b8631cea45000d
[ "MIT" ]
null
null
null
import random import cv2 import numpy as np import matplotlib.pyplot as plt from nonmaxsuppts import nonmaxsuppts def detect_features(image): """ Computer Vision 600.461/661 Assignment 2 Args: image (numpy.ndarray): The input image to detect features on. Note: this is NOT the image name or image pa...
40.125
117
0.678349
a9587d168f1bfbbf666cb52a8e8de4af8d16c841
3,265
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_08_Dateien_lesen_und_schreiben/06_multiplechoice_tests_generator/19_multiplechoice_tests_generator.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_08_Dateien_lesen_und_schreiben/06_multiplechoice_tests_generator/19_multiplechoice_tests_generator.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_08_Dateien_lesen_und_schreiben/06_multiplechoice_tests_generator/19_multiplechoice_tests_generator.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Übung: Erstelle ein Script welches X Multiplechoice tests als Textfile erstellt. Die Reihenfolge der Fragen und Antworten sollen sich in jedem Dokument unterscheiden. import os, pprint, shelve from copy import deepcopy as dcopy from random import randint as rng from random import shuffle fragenpfad=os.path.dirname(...
32.326733
203
0.695253
8b744c97611cf46e313ecf5cc2ea3fabb259e708
610
py
Python
Webpage/arbeitsstunden/migrations/0014_auto_20210705_1948.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/migrations/0014_auto_20210705_1948.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/migrations/0014_auto_20210705_1948.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.4 on 2021-07-05 19:48 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('arbeitsstunden', '0013_auto_20210625_2034'), ] operations = [ migrations.AlterField( model_name='project', ...
24.4
78
0.598361
8b86445bd5e0e4d14656c5e5c5c408ee7d880762
1,832
py
Python
nz_crawl_demo/day11/first_celery/apps/sina_spider_task.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day11/first_celery/apps/sina_spider_task.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day11/first_celery/django_celery/first_celery/apps/sina_spider_task.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import json import requests import pymysql # from apps import app # @app.task() def get_spider(): for i in range(5): url = 'https://feed.sina.com.cn/api/roll/get?pageid=121&lid=1356&num=20&versionNumber=1.2.4&page={}&encode=utf-8&callback=feedCardJsonpCallback&_=1569240540973'.format(i+1) print(u...
37.387755
180
0.562773
d03469bab713fbcf414bae552bb80da1bd3e5542
2,263
py
Python
Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForProductIDWidgetScript/ChronicleAssetEventsForProductIDWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForProductIDWidgetScript/ChronicleAssetEventsForProductIDWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleAssetEventsForProductIDWidgetScript/ChronicleAssetEventsForProductIDWidgetScript_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from unittest.mock import patch import ChronicleAssetEventsForProductIDWidgetScript def test_main_success(mocker): """ When main function is called, set_arguments_for_widget_view should be called. """ mocker.patch.object(ChronicleAssetEventsForProductIDWidgetScript, 'set_arguments_for_widget_vie...
32.328571
119
0.737958
41247d393ddd8e26ad7027b18d20de309b5f560a
1,789
py
Python
storage/emulated/0/qpython/projects3/map/myLocation.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/projects3/map/myLocation.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/projects3/map/myLocation.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
import android, time droid = android.Android() droid.eventClearBuffer() droid.startLocating() time.sleep(3) loc = droid.readLocation().result if loc == {}: loc = droid.getLastKnownLocation().result print("getLastKnownLocation()") if loc != {}: try: n = loc['gps'] print("loc['gps']") exc...
33.754717
122
0.602012
eb14c2d09acaf5b2f9b4786cecc50ac1d785980b
2,802
py
Python
Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/05_kapitel_17_repetitionsfragen.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/05_kapitel_17_repetitionsfragen.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_2/Kapitel_17_Bildbearbeitung/05_kapitel_17_repetitionsfragen.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# 05_kapitel_17_repetitionsfragen.py from PIL import ImageColor import re max_text_length=70 max_text_delta=24 def output(title, string): print('╔'+''.center(max_text_length+8, '═')+'╗') print('║ '+title.center(max_text_length+7).upper()+'║') print('╠'+''.center(max_text_length+8, '═')+'╣') string=st...
60.913043
289
0.740542
de68e7fc0a83aca40126c79382491ac22b484ce8
304
py
Python
src/onegov/people/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/people/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.people.models.agency import Agency from onegov.people.models.agency import AgencyOrganigram from onegov.people.models.membership import AgencyMembership from onegov.people.models.person import Person __all__ = ( 'Agency', 'AgencyMembership', 'AgencyOrganigram', 'Person', )
23.384615
60
0.773026
9d112901137b453964d62c5e6d5873b35fb9d938
883
py
Python
algorithms/graph_theory/prims.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/graph_theory/prims.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
algorithms/graph_theory/prims.py
PlamenHristov/HackerRank
2c875995f0d51d7026c5cf92348d9fb94fa509d6
[ "MIT" ]
null
null
null
from collections import defaultdict import heapq def prim(G, S): visited = set() queue = [(0, S)] total_cost = 0 while queue: cost, vertex = heapq.heappop(queue) if vertex not in visited: total_cost += cost visited.add(vertex) # We have reached an MS...
21.536585
63
0.526614
9d540d3ef9538c987c517c3f9b9c484562c51522
127
py
Python
private.py
Hercita/POO
879d1e5462619579a5aec710bf3bc3ec6232de72
[ "CC0-1.0" ]
null
null
null
private.py
Hercita/POO
879d1e5462619579a5aec710bf3bc3ec6232de72
[ "CC0-1.0" ]
null
null
null
private.py
Hercita/POO
879d1e5462619579a5aec710bf3bc3ec6232de72
[ "CC0-1.0" ]
null
null
null
""" esto es un comentario en python de varias lineas que pueden ser comillas simples o dobles """ ''' tambien comentarios '''
18.142857
57
0.724409
26adb49c0a9dc86712743cdafa1c440dbc37f360
75
py
Python
python/python_backup/PRAC_PYTHON/rt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/rt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/rt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
a=input("enter a no") b=(a*a) print "square",b c=(a*a*a) print "cube",c
15
22
0.573333
26f8dca27ddc41625972bc22d9a0f11bdf08694b
2,956
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch05_datastructures/solutions/ex12_list_merge.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch05_datastructures/solutions/ex12_list_merge.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch05_datastructures/solutions/ex12_list_merge.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import itertools def merge(values1, values2): pos1 = 0 pos2 = 0 result = [] while pos1 < len(values1) and pos2 < len(values2): value1 = values1[pos1] value2 = values2[pos2] if value1 < va...
21.735294
64
0.561231
f80d720165504881404670a4fff7d10001b6ad15
181
py
Python
app/api/users.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
app/api/users.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
4
2020-08-29T16:11:12.000Z
2022-03-12T00:47:03.000Z
app/api/users.py
IoTServ/FlaskSimpleCMS
db0fc4464c6d514db14972156ca3e002a60a4876
[ "MIT" ]
null
null
null
from flask import jsonify from . import api from flask_login import current_user @api.route('/userinfo') def get_user(): user = current_user return jsonify(user.to_json())
20.111111
36
0.745856
e44d775f9a53b494274da3d4c5b850e0cf6cc725
15,328
py
Python
src/onegov/org/app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Contains the base application used by other applications. """ from chameleon import PageTemplate from collections import defaultdict from dectate import directive from more.content_security import SELF from onegov.core import Framework, utils from onegov.core.framework import default_content_security_policy from o...
28.385185
79
0.683064
e4fe220337fd1a50c120a3cb2763e30b3b3f8454
270
py
Python
test.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
test.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
test.py
Jugendhackt/Werwolf_Brettspiel
fc8ba953e005d2fc9b618c7bb2a93e57fbde6338
[ "MIT" ]
null
null
null
install_requires=['flask', 'wrapt_timeout_decorator' from flask import Flask, render_template, request, url_for app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello, World!' @app.route('/test') def test(): return render_template("base.html")
22.5
58
0.722222
39644fe146ccec4886d2725a9521e6d2d067e9c3
318
py
Python
aoc2020/day_10/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_10/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_10/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * class Solution(SolutionABC): expected = 220 def solve(self) -> any: last_value = 0 deltas = {1: 0, 3: 1} for a in sorted(self.resource_lines("input", int)): deltas[a - last_value] += 1 last_value = a return deltas[1] * deltas[3]
22.714286
59
0.550314
39eb8533de489f86faf8c71f87016471f175bdd2
8,408
py
Python
test/test_npu/test_onnx/torch.onnx/export/onnx_parser.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_onnx/torch.onnx/export/onnx_parser.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_onnx/torch.onnx/export/onnx_parser.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
34.040486
104
0.584919
f27489e7b0120213163d69705ac38a3fa7610d25
465
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v6_4/fix_modified_in_sales_order_and_purchase_order.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v6_4/fix_modified_in_sales_order_and_purchase_order.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v6_4/fix_modified_in_sales_order_and_purchase_order.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
from __future__ import unicode_literals import frappe def execute(): for doctype in ("Sales Order", "Purchase Order"): data = frappe.db.sql("""select parent, modified_by, modified from `tab{doctype} Item` where docstatus=1 group by parent""".format(doctype=doctype), as_dict=True) for item in data: frappe.db...
42.272727
103
0.729032
4b9d6c066d7a48b8e982be78ddfe477cdca0d6d6
869
py
Python
src/excel_file/create_workbook.py
marina8888/flame-dilution-method
823c004f7f7ea85ca3e010610b61972a112cf988
[ "MIT" ]
2
2020-03-23T15:05:19.000Z
2020-03-24T02:43:07.000Z
src/excel_file/create_workbook.py
marina8888/flame-dilution-method
823c004f7f7ea85ca3e010610b61972a112cf988
[ "MIT" ]
1
2020-05-07T13:06:09.000Z
2020-05-07T13:06:09.000Z
src/excel_file/create_workbook.py
marina8888/flame-dilution-method
823c004f7f7ea85ca3e010610b61972a112cf988
[ "MIT" ]
2
2020-05-07T13:05:09.000Z
2020-05-15T16:42:02.000Z
from excel_file.classes import Workbook # call all functions to calculate dilution gas properties, with a workbook object input. # this function modifies the workbook object so that it can then be saved in .csv format def create_workbook(instance: Workbook): #fill columns with basic initial values print('cr...
22.868421
88
0.703107
d9b90977b4331919c427f4ec419300a4bd73036e
1,110
py
Python
app/__init__.py
zucc-acm-devteam/zuccacm-sso
9c7d2f0b9cc069962f32b555152732a98bf2e94a
[ "Apache-2.0" ]
null
null
null
app/__init__.py
zucc-acm-devteam/zuccacm-sso
9c7d2f0b9cc069962f32b555152732a98bf2e94a
[ "Apache-2.0" ]
null
null
null
app/__init__.py
zucc-acm-devteam/zuccacm-sso
9c7d2f0b9cc069962f32b555152732a98bf2e94a
[ "Apache-2.0" ]
null
null
null
from flask_cors import CORS from flask_login import LoginManager from flask_redis import FlaskRedis from app.models.base import db from .app import Flask cors = CORS(supports_credentials=True) login_manager = LoginManager() redis = FlaskRedis(decode_responses=True) def register_blueprints(flask_app): from app.a...
20.555556
73
0.730631
0a0e90307621f7054d4d53536f222991d5fa6ac4
1,900
py
Python
apps/register/tokens.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/register/tokens.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/register/tokens.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
""" License MIT License Copyright (c) 2017 OpenAdaptronik 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, merge,...
40.425532
78
0.751579
0a76b20573d7c044ba038ba701993aa262e8873d
4,088
py
Python
research/cv/midas/src/utils/loadImgDepth.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/midas/src/utils/loadImgDepth.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/midas/src/utils/loadImgDepth.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.785124
91
0.595646
7c425c3520135deddb64391418268a8fb95fbe5a
984
py
Python
Caffe/caffe_lmdb.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
2,194
2020-04-06T01:37:56.000Z
2022-03-30T22:17:28.000Z
Caffe/caffe_lmdb.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
542
2020-04-14T08:00:05.000Z
2022-03-29T07:39:40.000Z
Caffe/caffe_lmdb.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
667
2020-04-08T02:06:03.000Z
2022-03-29T00:57:32.000Z
import lmdb from Caffe import caffe_pb2 as pb2 import numpy as np class Read_Caffe_LMDB(): def __init__(self,path,dtype=np.uint8): self.env=lmdb.open(path, readonly=True) self.dtype=dtype self.txn=self.env.begin() self.cursor=self.txn.cursor() @staticmethod def to_numpy(va...
27.333333
72
0.612805
813524f0854543cf8b3d1920c7511c7ee4455f7c
7,489
py
Python
2018/quals/re-basics/src/genprog.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2018/quals/re-basics/src/genprog.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/quals/re-basics/src/genprog.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/python # Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
38.015228
164
0.689411
be03001de19aa229c78df61559e2ee3387488317
5,477
py
Python
assets/scripts/add_new_company.py
InterImm/hub
f4cd79e4bfd1a63acfe604c76fef7285148951ec
[ "MIT" ]
10
2017-02-17T02:55:35.000Z
2022-01-01T09:23:34.000Z
assets/scripts/add_new_company.py
InterImm/hub
f4cd79e4bfd1a63acfe604c76fef7285148951ec
[ "MIT" ]
184
2017-01-19T18:04:26.000Z
2022-03-27T08:04:30.000Z
assets/scripts/add_new_company.py
InterImm/planiversity
a0ba550db38d032a1fa980d40abedae902f729b8
[ "MIT" ]
2
2018-02-18T03:51:42.000Z
2020-05-05T06:20:52.000Z
import argparse import os from collections import OrderedDict import logging from dateutil import parser import requests import ruamel.yaml as yaml from ruamel.yaml.representer import RoundTripRepresenter logging.basicConfig() logger = logging.getLogger("interimm.hub.add") history_file = "assets/scripts/add_new_comp...
30.427778
92
0.574402
13ae557249c65849cf6bd9628f0381488d0f5282
4,641
py
Python
SenWork_Analysis_v1.py
mazaidan/SenWork
3d3324358c8576f344070ac9546f22de84d781c7
[ "MIT" ]
null
null
null
SenWork_Analysis_v1.py
mazaidan/SenWork
3d3324358c8576f344070ac9546f22de84d781c7
[ "MIT" ]
null
null
null
SenWork_Analysis_v1.py
mazaidan/SenWork
3d3324358c8576f344070ac9546f22de84d781c7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Aug 23 11:06:36 2021 @author: zaidanma """ #%% Load necessary libraries import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import numpy as np #%% We read data from Nanjing Sensor Network Data: xls = pd.ExcelFile('DATA/202...
25.640884
113
0.653523
b9864c87d65f972c48a54fc425c89ab641190128
959
py
Python
pacman-termux/test/pacman/tests/remove-recursive-cycle.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/remove-recursive-cycle.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/remove-recursive-cycle.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Recursively remove a package with cyclical dependencies" lpkg1 = pmpkg('pkg1') self.addpkg2db('local', lpkg1) lpkg1.depends = [ 'dep1' ] lpkg2 = pmpkg('pkg2') self.addpkg2db('local', lpkg2) lpkg2.depends = [ 'dep3' ] # cyclic dependency 1 ldep1 = pmpkg('dep1') self.addpkg2db('local', ldep1) ldep1...
22.833333
76
0.716371
b993f0ae4cfdcf7e736052eccea5cbd199f5882b
194
py
Python
tests/onegov/stepsequence/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/stepsequence/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/stepsequence/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest import onegov.stepsequence @pytest.fixture(scope='function') def sequences(): yield onegov.stepsequence.step_sequences # onegov.stepsequence.step_sequences.registry = {}
21.555556
54
0.778351
e002e7e6f6c940692ad02d2c6d8badc4b1fef0a6
6,015
py
Python
src/data_science/data_science/in_out/ni_cdaq.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/in_out/ni_cdaq.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/in_out/ni_cdaq.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
"""Tools to communicate with NI Devices.""" from platform import PLATFORM, WINDOWS if PLATFORM == WINDOWS: from data_science.in_out.channels import ChannelTypes as CT import nidaqmx import sys class NIDevices: """A communication interface with NI devices.""" def __init__(self): ...
44.227941
79
0.525353
e01624629f5de9288b5756a1d7ef5c51f0780482
3,526
py
Python
myspiders/spider_hr/cib_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
myspiders/spider_hr/cib_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
myspiders/spider_hr/cib_spider.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from myspiders.ruia import JsonField, AttrField, Item, Spider from urllib.parse import urlencode, urlparse from config import CONFIG, Target, Job import random import demjson import re import os ''' companyName: null deptOrgName: "天津分行" education: "本科" endDate: "2020-08-30" hiddenSiteApply: 1 importPost: 0 lastEditDat...
35.26
240
0.743052
e0265ada3260c1c15c427e591c6dbe6f4dc87997
3,537
py
Python
python/en/_pandas/Pandas for Everyone/p4e-4_data_assembly-concatenation.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_pandas/Pandas for Everyone/p4e-4_data_assembly-concatenation.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_pandas/Pandas for Everyone/p4e-4_data_assembly-concatenation.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ pandas_for_everyone-4_data_assembly-concatenation.py 4. Data Assembly 4.1. Introduction 4.2. Tidy Data So what is tidy data? Hdley Wickham's paper defines it as meeting the following criteria: Each row is an observation. Each column is a variable. Each t...
23.738255
70
0.498445
1625ebff99faa04c43be160490bc39c0014076ad
1,370
py
Python
scripts/load_firebase.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
scripts/load_firebase.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
scripts/load_firebase.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
import argparse import requests import time DEFAULT_DEVICE = 0 DEFAULT_FILE = '../data/ECG_data.csv' def main(device=0, filename=DEFAULT_FILE): print("Loading firebase for device #%d" % device) with open(filename) as f: index = 0 count = 0 for line in f: line = line.strip(...
32.619048
143
0.586861
16c5708082d18be515dc84a8d7a0d32ebb0d17c2
1,350
py
Python
demos/Multiscale/ThreeSidedBasic/model/parts/flows.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/ThreeSidedBasic/model/parts/flows.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/ThreeSidedBasic/model/parts/flows.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# Behaviors def inflow(params, step, history, current_state): # Receive money from relevant parties return {'Receive': 1} def outflow(params, step, history, current_state): # Pay relevant parties return {'Pay': 1} # Mechanisms def receive_fiat_from_consumers(params, step, sL, s, _input): y = 'f...
25.471698
70
0.583704
4c0d40b8ce8d8b36a215fb1b4cad138d48a03268
85
py
Python
database/bankends/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
2
2021-11-27T06:40:47.000Z
2022-01-06T03:12:46.000Z
database/bankends/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
database/bankends/__init__.py
zhouhongf/bank_hr
a42e5e18f3ec36b1ec65931415fe476c9690e0a0
[ "MIT" ]
null
null
null
from .mongo_database import MongoDatabase from .redis_database import RedisDatabase
21.25
41
0.870588
e689b1466050cad45c7e7af1a9384c9e7291f856
4,072
py
Python
0-notes/job-search/Leetcode/03-FindPossibleValidIPs.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Leetcode/03-FindPossibleValidIPs.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Leetcode/03-FindPossibleValidIPs.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Given a string containing only digits, restore it by # returning all possible valid IP address combinations. # A valid IP address must be in the form of A.B.C.D, where # A, B, C, and D are numbers from 0-255. # The numbers cannot be 0 prefixed unless they are 0. # For anyone wondering, time complexity of...
36.035398
87
0.630648
e699da7da1fed71795ca0c61fbb3070710d2f969
1,984
py
Python
ev3/sysroot/home/robot/roborinth/app/robo/Ui.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/robo/Ui.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
ev3/sysroot/home/robot/roborinth/app/robo/Ui.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
1
2019-10-22T07:47:51.000Z
2019-10-22T07:47:51.000Z
#!/usr/bin/env python3 import threading from time import sleep from ev3dev2.display import Display from ev3dev2.button import Button from ev3dev2.sound import Sound from ev3dev2.led import Leds import ev3dev2.fonts as fonts class Ui(threading.Thread): M_FONT = 'helvB12' def __init__(self, config): threading.T...
24.8
81
0.685484
5d15192ce2c6620ff79063282071c894b59511b2
10,369
py
Python
research/nlp/tprr/src/process_data.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/tprr/src/process_data.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/tprr/src/process_data.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.189922
107
0.595139
5d369c38f1d370a6b3ebef8d44d1bc29ef00a32e
1,583
py
Python
TickBuffer.py
Aquaware/RakutenRSS
5072412d18b7d24a38a059915753d844f7931f15
[ "MIT" ]
null
null
null
TickBuffer.py
Aquaware/RakutenRSS
5072412d18b7d24a38a059915753d844f7931f15
[ "MIT" ]
null
null
null
TickBuffer.py
Aquaware/RakutenRSS
5072412d18b7d24a38a059915753d844f7931f15
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime, timedelta class TickBuffer(object): def __init__(self): self.buffer = [] # tick : (time, bid, ask, mid, volume) def add(self, tick): if tick is None: print('error in add method') self.buffer.append(tick) ...
28.781818
111
0.42072
ab613427a2bdddd165300590acde66981c0d0d3f
466
py
Python
src/visitpy/visit_flow/flow/src/filters/management.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/flow/src/filters/management.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/flow/src/filters/management.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: management.py author: Cyrus Harrison <cyrush@llnl.gov> created: 8/30/2012 description...
22.190476
73
0.714592
22ae6eb649b2c2046044276e0a65f9661677b2a0
4,636
py
Python
plugins/tff_backend/bizz/kyc/onfido_bizz.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/bizz/kyc/onfido_bizz.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/bizz/kyc/onfido_bizz.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
2
2018-01-10T10:43:12.000Z
2018-03-18T10:42:23.000Z
# -*- coding: utf-8 -*- # Copyright 2017 GIG Technology NV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
35.389313
110
0.732744
22ca7b5ea66ef2e8fba47f798023ed7359c16976
1,406
py
Python
Crashkurs TensorFlow/10_cond Quadratische Gleichung.py
slogslog/Kurzgeschichten-in-CSharp
3918c4174220e558cdeeada0edac941811418b93
[ "Unlicense" ]
2
2019-03-15T20:48:34.000Z
2019-04-22T15:24:09.000Z
Crashkurs TensorFlow/10_cond Quadratische Gleichung.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs TensorFlow/10_cond Quadratische Gleichung.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
# Unterdrückt die AVX2 Warnung import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf from math import sqrt def solve(a,b,c): # d = b**2 - 4*a*c d = tf.subtract(tf.pow(b, 2.), tf.multiply(4., tf.multiply(a, c))) a2 = tf.multiply(2., a) return tf.cond(tf.less(d, 0.), ...
28.693878
84
0.418919
a3a99a427032243250e29024515e04014b8cb80a
365
py
Python
leetcode/189-Rotate-Array/RotateArray_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/189-Rotate-Array/RotateArray_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/189-Rotate-Array/RotateArray_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param nums, a list of integer # @param k, num of steps # @return nothing, please modify the nums list in-place. def rotate(self, nums, k): n = len(nums) k = k % n if k != 0: pre = nums[:-k] post = nums[n - k:] nums[:len(post...
26.071429
60
0.479452
4a3271cbd2f07d5ebe8fd3d9a0d702fa47cc06e2
396
py
Python
ISTp/2014/GOMAN_D_V/task_3_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/GOMAN_D_V/task_3_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2014/GOMAN_D_V/task_3_45.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 3. Вариант 45 # Напишите программу, которая выводит имя "Мартин Андерсен", и запрашивает его # псевдоним. Программа должна сцеплять две эти строки и выводить полученную # строку, разделяя имя и псевдоним с помощью тире. # Goman D.V. # 29.03.2016 print ('Мартин Андерсен') nik = input ('Напишите его псевдоним:...
30.461538
78
0.737374
4392c3d610c17584d4398bdcc403cf8815f65e7d
787
py
Python
api/setup.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
2
2020-06-08T19:17:10.000Z
2020-06-08T20:45:07.000Z
api/setup.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
14
2015-10-07T09:31:50.000Z
2022-02-23T07:34:10.000Z
api/setup.py
easyCZ/SLIP-A-2015
ad386df9c438d93ec89f68c63d3deda12d27d1ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( # GETTING-STARTED: set your app name: name='UberVest API', # GETTING-STARTED: set your app version: version='1.0', # GETTING-STARTED: set your app description: description='System Level Integration Project at University of Edinburgh', ...
30.269231
78
0.663278
60fc3cc530ec7d5c9e0983574518ef83c8772682
9,200
py
Python
feedcrawler/search/shared/content_shows.py
rix1337/FeedCrawler
6c104c39f1bd45e5d49c02c90bb8d9fd35f9709e
[ "MIT" ]
16
2021-04-06T07:37:18.000Z
2022-03-27T15:05:32.000Z
feedcrawler/search/shared/content_shows.py
rix1337/FeedCrawler
6c104c39f1bd45e5d49c02c90bb8d9fd35f9709e
[ "MIT" ]
17
2021-06-09T10:37:49.000Z
2022-03-31T07:29:36.000Z
feedcrawler/search/shared/content_shows.py
rix1337/FeedCrawler
6c104c39f1bd45e5d49c02c90bb8d9fd35f9709e
[ "MIT" ]
3
2021-05-22T13:49:57.000Z
2022-01-05T11:15:47.000Z
# -*- coding: utf-8 -*- # FeedCrawler # Projekt von https://github.com/rix1337 import json import re from rapidfuzz import fuzz from feedcrawler import internal from feedcrawler.common import decode_base64, sanitize, check_hoster from feedcrawler.config import CrawlerConfig from feedcrawler.db import ListDb, FeedDb ...
35.9375
99
0.479891
719d7a366838689917267294e61723b82bb1c801
896
py
Python
data/cache.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/cache.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
data/cache.py
Janrupf/airport-db-seeding
768a9373f02ede5bf613d09270d2fbe84de37a97
[ "MIT" ]
null
null
null
from pathlib import Path import urllib3 import certifi class Cache: def __init__(self): self.http = urllib3.PoolManager( ca_certs=certifi.where() ) self.path = Path("./cache") self.path.mkdir(parents=True, exist_ok=True) self.cached_instances = dict() def...
23.578947
55
0.635045
1c6ac48c59449e8c7debeb43cb07726241e302cb
3,087
py
Python
UnusedCogs/attachments.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
UnusedCogs/attachments.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
UnusedCogs/attachments.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
import logging from discord.ext import commands import asyncio import os import os.path import subprocess import re log = logging.getLogger(__name__) log.setLevel(logging.DEBUG) stream_handler = logging.StreamHandler() stream_handler.setFormatter(logging.Formatter('[%(asctime)s - %(name)s - %(levelname)s] %(message)s'...
35.895349
102
0.682864
c7245a9192867a60fd8090de601418165b6a058b
3,350
py
Python
test/test_npu/test_network_ops/test_batchnorm3d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_batchnorm3d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_batchnorm3d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
38.953488
80
0.660299
408cc5df0f04b27d6d2de25a73df45b711a0262a
154
py
Python
python/deep_learning/exp/txt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/deep_learning/exp/txt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/deep_learning/exp/txt.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
str = open('data.txt', 'r').read() print str import pyttsx engine = pyttsx.init() engine.say(str) #engine.say('How are you today?') engine.runAndWait()
15.4
34
0.688312
40ffba071b3545f75c667d57174b2ceb0db1585f
7,445
py
Python
src/onegov/election_day/forms/upload/election.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/upload/election.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/upload/election.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day import _ from onegov.election_day.forms.upload.common import ALLOWED_MIME_TYPES from onegov.election_day.forms.upload.common import MAX_FILE_SIZE from onegov.form import Form from onegov.form.fields import UploadField from onegov.form.validators import FileSizeLimit from onegov.form.validators ...
29.082031
74
0.610343
90aac205f4d7af2604ca34539ea707c0d5962ed3
623
py
Python
config.py
digitalegarage/commerzbank-scraper
818c759ed0f62cf35aaebc38ad769ffb415c2cd5
[ "MIT" ]
null
null
null
config.py
digitalegarage/commerzbank-scraper
818c759ed0f62cf35aaebc38ad769ffb415c2cd5
[ "MIT" ]
null
null
null
config.py
digitalegarage/commerzbank-scraper
818c759ed0f62cf35aaebc38ad769ffb415c2cd5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from datetime import datetime import os ##################### ### SUCH-OPTIONEN ### ##################### suchbegriff = 'Commerzbank' bereich = '81' # = Stimmrechtsmitteilungen language = 'de' # von start_day = '1' start_month = '1' start_year = '2013' # bis now = datetime.now() end_day = str...
19.46875
46
0.640449
463fe1fdaf1d8f63f9a97d10bf0043e50b801ceb
315
py
Python
sketches/colldectcircle/player.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/colldectcircle/player.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/colldectcircle/player.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class Player(object): def __init__(self, x, y): self.x = x self.y = y self.r = 32 def update(self): self.x = mouseX self.y = mouseY def show(self): strokeWeight(1) fill("#9757a5") ellipse(self.x, self.y, self.r*2, self.r*2)
19.6875
51
0.479365
7302ddd79276d638c2220fc53124d5ee4ddd6271
1,357
py
Python
attach/static/django-static-jquery-ui-1.12.1.1/setup.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/static/django-static-jquery-ui-1.12.1.1/setup.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
attach/static/django-static-jquery-ui-1.12.1.1/setup.py
ericdev-202/attachment-mgt-system
a9616886e855fd18e0d3da7664aff9602c0eb14c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os from io import open from setuptools import setup from setuptools import find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, "README.md"), "r", encoding="utf-8") as fobj: long_description = fobj.read() with open(os.path.join(here, "require...
34.794872
81
0.678703
b43a6ac08f896e8f819d1947dd664a61f7807489
554
py
Python
src/main.py
ceofil/uni-python-project
531e73218a3d53448f1fd39a0bf9404a6d6bb284
[ "MIT" ]
null
null
null
src/main.py
ceofil/uni-python-project
531e73218a3d53448f1fd39a0bf9404a6d6bb284
[ "MIT" ]
null
null
null
src/main.py
ceofil/uni-python-project
531e73218a3d53448f1fd39a0bf9404a6d6bb284
[ "MIT" ]
null
null
null
import os from src.canvas import Canvas from src.utils.xml_parser import parse_xml import sys def main(): DEV = True if DEV: filename = r'D:\GitHub\uni-python-project\src\input\path_c.svg' output_name = 'test.png' else: filename = sys.argv[1] output_name = os.path.basename(...
21.307692
71
0.644404
5ee3e96b2c356c6722ebe73b409f89c85b1efd2e
1,284
py
Python
a.py
kebofei/HelloWorld
9516b06667a3caf711bc9323087a57d948c2858a
[ "MIT" ]
null
null
null
a.py
kebofei/HelloWorld
9516b06667a3caf711bc9323087a57d948c2858a
[ "MIT" ]
1
2019-04-28T15:44:00.000Z
2019-04-28T15:44:00.000Z
a.py
kebofei/HelloWorld
9516b06667a3caf711bc9323087a57d948c2858a
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- a = 10 print(a) print('陈汉飞') # pop() # del # remove() # list3 * 5 # 123 in list3 # 123 not in list3 # #str2 = 'xiaoxie' #str2.capitalize() #'Xiaoxie' #str2 = 'DAXIE' #str2.casefold() #'daxie' #str2.center(10) #' DAXIE ' #str3 #'chenhan chen han chen' #str3.endswith('...
13.806452
49
0.57866
6f3e000f0898279fd77f7191e681f863404932cb
344
py
Python
src/onegov/event/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/event/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/event/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('onegov.event') # noqa log.addHandler(logging.NullHandler()) # noqa from onegov.event.models import Event, Occurrence from onegov.event.collections import EventCollection, OccurrenceCollection __all__ = [ 'Event', 'EventCollection', 'log', 'Occurrence', 'O...
21.5
74
0.729651
5b156172460ae2014fc69d6f65b524e144ddd143
2,006
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/external_writer/external_writer_registry.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/external_writer/external_writer_registry.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/external_writer/external_writer_registry.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from abc import abstractmethod from logging import getLogger from typing import Any, Callable, Dict, Optional from watchmen_data_kernel.common import DataKernelException from watchmen_model.common import DataModel logger = getLogger(__name__) class ExternalWriterParams(DataModel): pat: Optional[str] = None url: O...
26.394737
99
0.765703
819b53d79ddae5385e7bddcb25003e04a6a4996f
1,891
py
Python
utils/ZipUtil.py
wanglikang/zzuARTensorflow2
2e31108ca90f183ab93309aa481de1dd88f98a9b
[ "MIT" ]
null
null
null
utils/ZipUtil.py
wanglikang/zzuARTensorflow2
2e31108ca90f183ab93309aa481de1dd88f98a9b
[ "MIT" ]
null
null
null
utils/ZipUtil.py
wanglikang/zzuARTensorflow2
2e31108ca90f183ab93309aa481de1dd88f98a9b
[ "MIT" ]
null
null
null
#coding:utf-8 import zipfile import os class ZipUtil(object): def __init__(self): pass # step 参数的意思是按照yolo.ckpt-{step}.*的格式进行压缩,,不用全部压缩,仅仅对指定对训练轮次对结果进行压缩 def zip_dir(self,startdir,step,file_news): z = zipfile.ZipFile(file_news,'w',zipfile.ZIP_DEFLATED) #参数一:文件夹名 for dirpath, dirname...
42.022222
82
0.553146
c4bccaffbf58475584b4a038ff21bfad0e5fc51f
7,906
py
Python
official/cv/ctpn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/cv/ctpn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/ctpn/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
41.39267
106
0.704528
962c1594d852b86611464241aa82ce9dc0d7b320
12,837
py
Python
Speech.py
mvvr/SER-2.o
15fddeb8b99bb190d2b1fec508ef00ee6e385460
[ "Apache-2.0" ]
1
2022-03-16T04:29:37.000Z
2022-03-16T04:29:37.000Z
Speech.py
mvvr/SER-2.o
15fddeb8b99bb190d2b1fec508ef00ee6e385460
[ "Apache-2.0" ]
null
null
null
Speech.py
mvvr/SER-2.o
15fddeb8b99bb190d2b1fec508ef00ee6e385460
[ "Apache-2.0" ]
null
null
null
import numpy as np import streamlit as st import cv2 import librosa import librosa.display from tensorflow.keras.models import load_model import os from datetime import datetime import matplotlib.pyplot as plt from PIL import Image from melspec import plot_colored_polar # load models model = load_model("m...
39.62037
98
0.49591
fb46ca7f24d0e662c3efe3f7a07c9f061af37080
1,875
py
Python
wk-sentiment/app/test/test_config.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
4
2020-10-08T15:05:02.000Z
2021-08-03T01:00:08.000Z
wk-sentiment/app/test/test_config.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
null
null
null
wk-sentiment/app/test/test_config.py
wkabbani/microservices
3b2956084880b6bc0b255a53493bec39c7bbf513
[ "MIT" ]
1
2020-10-08T15:05:04.000Z
2020-10-08T15:05:04.000Z
import unittest import os import json from application import create_app from config import config_by_name class ConfigurationsTestCase(unittest.TestCase): """This class represents the configuraions test case""" def test_app_development_configurations(self): """Tests application's configurations (dev...
29.761905
61
0.654933
83d239dab8f9d0e7ab11f47733d2aa31b60678a0
10,061
py
Python
Packs/CiscoStealthwatch/Integrations/CiscoStealthwatch/CiscoStealthwatch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CiscoStealthwatch/Integrations/CiscoStealthwatch/CiscoStealthwatch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CiscoStealthwatch/Integrations/CiscoStealthwatch/CiscoStealthwatch_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import io import json def util_load_json(path) -> dict: with io.open(path, mode='r', encoding='utf-8') as file: return json.loads(file.read()) def test_cisco_stealthwatch_query_flows_initialize_command(requests_mock): from CiscoStealthwatch import Client, cisco_stealthwatch_query_flows_initialize_co...
54.383784
100
0.738396
790332e6267a04177d813875e9e0670bc4500d5e
1,487
py
Python
python/etc/preprocessing/norway/norway_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/etc/preprocessing/norway/norway_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/etc/preprocessing/norway/norway_preprocessing.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import argparse from os import path import sys AVG_YEARLY_CONVERSION_RATES = { "2015": 0.1119, "2016": 0.1077 } def main(): parser = argparse.ArgumentParser() parser.add_argument("source_file") args = parser.parse_args() result = oat.analyze_csv_file...
29.156863
99
0.656355
7912894013ca9bbf71895df99f1df276a21bfb62
5,697
py
Python
main.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
main.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
main.py
vt-dev-team/vt-randomName
84be5dc761e98472e5b0ceaacb4ab0ab100822cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWebEngineWidgets import * from PyQt5.QtWebChannel import QWebChannel from PyQt5 import Qt import json import sys import time import random import threading import os ConfigData = {} ...
31.302198
86
0.599614
f765cdbd227216e7dd17abf9d23ba3bd33f18871
1,380
py
Python
数据结构/NowCode/A6_MergeSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/A6_MergeSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/A6_MergeSort.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 归并排序 class Solution: def MergeSort(self, arrayList): arrayLen = len(arrayList) # 判断输入参数的正确性 if arrayLen < 1: return [] # 归并的出口是当分解到长度为1的时候 if arrayLen == 1: return arrayList # 获取中间索引值 middleIndex = arrayLen >> 1 # 递归左边部分 ...
28.75
61
0.521739
581cacdd760a09646517cd610e203184adb6523c
912
py
Python
lego/calculus/nodes/log.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/calculus/nodes/log.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
lego/calculus/nodes/log.py
tipptop3d/Horst-oder-Klaus
2afda1a64b5ccace74ebc7b806a5e5501c0f12bb
[ "MIT" ]
null
null
null
"""Logarithm node""" import math from . import divide, ln, node class Log(node.Node): """Logarithm node""" def __init__(self, base, arg): self.base = base self.arg = arg def natural_log(self): """Returns the natural logarithm version of any logarithm :return: N...
22.243902
76
0.594298
49e7efe1870855aa5df681d31e25e0768e9f2678
510
py
Python
Sketche/empty_template.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/empty_template.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/empty_template.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
import p5 import os # Hier wird der Pfad zum Verzeichnis des ».py«-Files gesetzt # Erspart einem das Herumgehample in TextMate mit dem os.getcwd() # und os.path.join() file_path = os.path.dirname(os.path.abspath(__file__)) os.chdir(file_path) def setup(): p5.size(400, 400) # Title funzt zur Zeit immer noch ni...
24.285714
98
0.692157
b75df25996ae88ff0476323baa06619589d15150
1,688
py
Python
OSCP/walkthrough/HTB/crypto/bank_heist/heist.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
98
2019-11-20T05:26:30.000Z
2022-01-27T05:05:39.000Z
OSCP/walkthrough/HTB/crypto/bank_heist/heist.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
null
null
null
OSCP/walkthrough/HTB/crypto/bank_heist/heist.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
34
2019-11-25T14:29:16.000Z
2021-10-18T16:40:42.000Z
from itertools import product import string dictionnare={'2': 'A', '22':'B','222' : 'C', '3': 'D', '33':'E','333' : 'F', '4': 'G', '44':'H','444' : 'I', '5': 'J', '55':'K','555' : 'L', '6': 'M', '66':'N','666' : 'O', '7': 'P', '77':'Q','777' : 'R','7777' : 'S', '8': 'T', '88':'U','888' : 'V', '9': 'W', '99':'X','999' :...
35.914894
269
0.681872
4d36c9cc79d32f92abf26dffb7844c16211de866
10,161
py
Python
savageml/models/matix_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/models/matix_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
savageml/models/matix_net_model.py
savagewil/SavageML
d5aa9a5305b5de088e3bf32778252c877faec41d
[ "MIT" ]
null
null
null
from typing import Tuple, List, Callable, Iterable, Union import numpy as np from savageml.utility import ActivationFunctions, ActivationFunctionsDerivatives from savageml.utility import LossFunctions, LossFunctionDerivatives from savageml.models import BaseModel from savageml.utility import get_sample_from_iterator, ...
42.161826
128
0.602893
42aa7f13d1acf0b4e2e74a6536c8caa07f683d2d
199
py
Python
app/models/abtms/Notification.py
nucleo-de-telessaude-do-maranhao/abtms
8d1b1df223d9f07fc4447836011f3e3678625d59
[ "MIT" ]
null
null
null
app/models/abtms/Notification.py
nucleo-de-telessaude-do-maranhao/abtms
8d1b1df223d9f07fc4447836011f3e3678625d59
[ "MIT" ]
null
null
null
app/models/abtms/Notification.py
nucleo-de-telessaude-do-maranhao/abtms
8d1b1df223d9f07fc4447836011f3e3678625d59
[ "MIT" ]
1
2019-03-13T14:34:24.000Z
2019-03-13T14:34:24.000Z
# encoding: utf-8 ## # Notification ## class Notification(): def __init__(self, code=0, status="", owner=""): self.code = code self.status = status self.owner = owner
16.583333
52
0.572864
67431529cb57e53f63bc989787374de9b07ee5dd
4,219
py
Python
RedeCamadaUnica.py
petroniocandido/RNA
bdb727cc47baf0d8e04bce5af7e16ea3c07a6a3f
[ "MIT" ]
null
null
null
RedeCamadaUnica.py
petroniocandido/RNA
bdb727cc47baf0d8e04bce5af7e16ea3c07a6a3f
[ "MIT" ]
null
null
null
RedeCamadaUnica.py
petroniocandido/RNA
bdb727cc47baf0d8e04bce5af7e16ea3c07a6a3f
[ "MIT" ]
null
null
null
import numpy as np from RNA.FuncoesAtivacao import sigmoide, identidade from RNA.FuncoesCusto import mse def treinar(X, Y, **kwargs): taxa_aprendizado = kwargs.get("taxa_aprendizado", 0.02) numero_epocas = kwargs.get("numero_epocas", 100) batch = kwargs.get("batch", 100) funcao_custo = kwargs.get("funcao_custo...
33.752
106
0.66722