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
a5b9a2b055d11889f479735df3fb3540107275c2
339
py
Python
src/00_intro.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
1
2016-09-22T18:31:15.000Z
2016-09-22T18:31:15.000Z
src/00_intro.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
null
null
null
src/00_intro.py
fablab-ka/labdo-python-video
9ce9ef6c08f4989bc3d8c2f00c029589a94770aa
[ "Unlicense" ]
null
null
null
import cv2, imutils, time camera = cv2.VideoCapture(0) time.sleep(0.25) while True: (grabbed, frame) = camera.read() if not grabbed: break frame = imutils.resize(frame, width=800) cv2.imshow("Labdo - Video 1", frame) key = cv2.waitKey(1) & 0xFF if key == ord("q"): break camera.release() cv2....
15.409091
42
0.657817
3c77fe1cd732dc9c55fae2dca52d94b0ed99caf6
3,814
py
Python
day11/black_jack.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day11/black_jack.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day11/black_jack.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
############### Our Blackjack House Rules ##################### ## The deck is unlimited in size. ## There are no jokers. ## The Jack/Queen/King all count as 10. ## The the Ace can count as 11 or 1. ## Use the following list as the deck of cards: ## cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] ## The cards i...
24.928105
77
0.592816
59e0fbf806d8b1e87989065c78985e75140ce9b1
104
py
Python
py/models/__init__.py
zjZSTU/GoogLeNet
a0801e45006d34b4901a8834397961ce17f24e2e
[ "Apache-2.0" ]
1
2021-04-18T15:36:33.000Z
2021-04-18T15:36:33.000Z
py/models/__init__.py
zjZSTU/GoogLeNet
a0801e45006d34b4901a8834397961ce17f24e2e
[ "Apache-2.0" ]
null
null
null
py/models/__init__.py
zjZSTU/GoogLeNet
a0801e45006d34b4901a8834397961ce17f24e2e
[ "Apache-2.0" ]
3
2020-07-10T11:45:52.000Z
2022-01-15T08:46:14.000Z
# -*- coding: utf-8 -*- """ @date: 2020/4/7 下午2:47 @file: __init__.py.py @author: zj @description: """
13
23
0.576923
55614ea7cfe3460c7bd024b356291d4fa7fe09e0
3,193
py
Python
reconnaissance/hibpAPI.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
10
2018-03-13T13:34:36.000Z
2022-01-13T15:34:13.000Z
reconnaissance/hibpAPI.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
2
2020-07-06T13:05:27.000Z
2020-08-13T17:48:30.000Z
reconnaissance/hibpAPI.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
6
2019-04-10T13:35:32.000Z
2021-04-23T15:27:41.000Z
import datetime import json import random import re import requests import sys import time from requests.packages.urllib3.exceptions import InsecureRequestWarning from requests_toolbelt.utils import dump class AuthToken: def __init__(self): self = self def setAttr(self, attr): api = attr ...
43.739726
812
0.612903
e954b0b227716a9cbb788552c4f88e5421fc2279
2,745
py
Python
Packs/GoogleChronicleBackstory/Scripts/ChronicleIsolatedHostnameWidgetScript/ChronicleIsolatedHostnameWidgetScript_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleIsolatedHostnameWidgetScript/ChronicleIsolatedHostnameWidgetScript_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/GoogleChronicleBackstory/Scripts/ChronicleIsolatedHostnameWidgetScript/ChronicleIsolatedHostnameWidgetScript_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from unittest.mock import patch import demistomock as demisto import ChronicleIsolatedHostnameWidgetScript DUMMY_HOSTNAME = 'dummyhost.com' INDICATOR_DATA = {'indicator': {'CustomFields': {'chronicleassethostname': DUMMY_HOSTNAME, 'chronicleisolatedhostname': 'No'}}} ...
40.970149
120
0.739162
e9b84af880e43d3770a2721015ef10f82bbf44c0
5,738
py
Python
Python/tree/binary_tree.py
li195111/Algorithm
35df3c885b4ebec010c41eec4560bcd46d59588e
[ "MIT" ]
null
null
null
Python/tree/binary_tree.py
li195111/Algorithm
35df3c885b4ebec010c41eec4560bcd46d59588e
[ "MIT" ]
null
null
null
Python/tree/binary_tree.py
li195111/Algorithm
35df3c885b4ebec010c41eec4560bcd46d59588e
[ "MIT" ]
null
null
null
class BTreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def __repr__(self) -> str: lines, *_ = self._display_aux() return '\n'+'\n'.join(lines)+'\n' def display(self): lines, *_ = ...
33.752941
92
0.494249
756e791ec3b01ccf440a02d634d17371272f4fef
332
py
Python
selenium_test.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-IanWark
41bc3394701a53a3b07dba8bddb72762ebb5c6a7
[ "MIT" ]
null
null
null
selenium_test.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-IanWark
41bc3394701a53a3b07dba8bddb72762ebb5c6a7
[ "MIT" ]
null
null
null
selenium_test.py
cmput401-fall2018/web-app-ci-cd-with-travis-ci-IanWark
41bc3394701a53a3b07dba8bddb72762ebb5c6a7
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys test_inputs = ["name", "about", "education", "skills", "work", "contact"] def test_home(): driver = webdriver.Chrome() driver.get("http://162.246.157.115:8000/") for i in test_inputs: elem = driver.find_element_by_id(i) assert el...
23.714286
73
0.710843
dda4fc43f499ac04f1ae5b39740634593240b94f
1,932
py
Python
Imagenes/vdWColumn/frac_volumen/figura.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumn/frac_volumen/figura.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumn/frac_volumen/figura.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
import vdWColumn as vdw import vdWColumn.postLBRun as post import matplotlib.pyplot as plt import numpy as np import os import argparse import locale if __name__ == "__main__": # Argumentos de consola parser = argparse.ArgumentParser(description='Resolución de vdWColumn') parser.add...
21
118
0.599896
9ba3e24786bc57cc4a832c0dbe6b4d0049f2a4a9
317
py
Python
___Python/Torsten/Python-Kurs/p03_lambda/m01_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p03_lambda/m01_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Torsten/Python-Kurs/p03_lambda/m01_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
temperaturenGC = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3] #Durchschnittstemp. in Bielefeld print("Temperaturen in °C:", temperaturenGC) # Alle Temperaturen, die >= 15°C gefiltert = [] for temp in temperaturenGC: if temp >=15: gefiltert.append(temp) print(gefiltert)
26.416667
116
0.630915
1f87c87c778d63775db33011be721c0ebf954183
861
py
Python
source/pkgsrc/devel/py-appdirs/patches/patch-appdirs.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-appdirs/patches/patch-appdirs.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-appdirs/patches/patch-appdirs.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-appdirs.py,v 1.1 2020/07/21 10:15:39 wiz Exp $ Only use ASCII, to avoid with python36: Traceback (most recent call last): File "setup.py", line 25, in <module> for line in read("appdirs.py").splitlines(): File "setup.py", line 19, in read out = "\n" + inf.read().replace("\r\n", "\n") File...
34.44
99
0.682927
c0ab97d32914dea62985a92a2b6386fe6133808c
130
py
Python
data/episode5/poornlp.py
AkademieOlympia/nlp-mit-python
39b36c65bf7e0fc9e3bc0388e0250732b909c689
[ "CC-BY-4.0" ]
2
2020-03-03T09:40:24.000Z
2020-04-09T07:23:59.000Z
data/episode5/poornlp.py
AkademieOlympia/nlp-mit-python
39b36c65bf7e0fc9e3bc0388e0250732b909c689
[ "CC-BY-4.0" ]
null
null
null
data/episode5/poornlp.py
AkademieOlympia/nlp-mit-python
39b36c65bf7e0fc9e3bc0388e0250732b909c689
[ "CC-BY-4.0" ]
1
2022-01-31T13:07:09.000Z
2022-01-31T13:07:09.000Z
def get_str_info(text): l = len(text) n = len(set(text)) return l, n def is_noun(word): return word[0].isupper()
16.25
28
0.6
c0c2df047102be0798f6d71f0ae9b61d3442fcea
4,510
py
Python
bigbench/benchmark_tasks/chess_state_tracking/scripts/generate_synthetic_games.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
460
2021-01-26T21:23:37.000Z
2022-03-31T15:55:10.000Z
bigbench/benchmark_tasks/chess_state_tracking/scripts/generate_synthetic_games.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
475
2021-01-27T01:29:01.000Z
2022-03-30T20:23:56.000Z
bigbench/benchmark_tasks/chess_state_tracking/scripts/generate_synthetic_games.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
305
2021-01-26T23:28:11.000Z
2022-03-31T14:51:26.000Z
import chess from collections import defaultdict import numpy as np import logging import random import argparse from os import path from collections import deque logger = logging.getLogger() logging.basicConfig(level=logging.DEBUG, format="%(asctime)s: %(message)s") def parse_args(): parser ...
33.407407
111
0.665632
c870ab3829f6d5e713eecd0471fd1e012ebcc89b
4,200
py
Python
code/main.py
l-ts/RecommenderSystems
8716e343e163c0d11bb24ba2cfe6e07df8d90fd4
[ "Apache-2.0" ]
null
null
null
code/main.py
l-ts/RecommenderSystems
8716e343e163c0d11bb24ba2cfe6e07df8d90fd4
[ "Apache-2.0" ]
null
null
null
code/main.py
l-ts/RecommenderSystems
8716e343e163c0d11bb24ba2cfe6e07df8d90fd4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Feb 3 15:25:10 2019 @author: leo """ ''' Import Libraries ''' import pandas as pd import numpy as np import scipy ''' Import Files ''' # Read data from file 'ratings.csv' located in 'data' folder (sibling of 'code' folder) ratings = pd.read_csv(".....
34.146341
104
0.71381
c8fc354d54345705c7e95636324ece5749693754
31,724
py
Python
Skripts/stats.py
galberding/Klassifikation_von_Erschoepfung
33331762baf0a5ea2898004e63d9a98d26bb3070
[ "Apache-2.0" ]
null
null
null
Skripts/stats.py
galberding/Klassifikation_von_Erschoepfung
33331762baf0a5ea2898004e63d9a98d26bb3070
[ "Apache-2.0" ]
null
null
null
Skripts/stats.py
galberding/Klassifikation_von_Erschoepfung
33331762baf0a5ea2898004e63d9a98d26bb3070
[ "Apache-2.0" ]
null
null
null
""" Module for analysing the Action Units in csvs, produced by Open Face""" import pandas as pd import numpy as np import environment as paths import matplotlib.pyplot as plt import os from multiprocessing import Pool from time import sleep import glob from sklearn.decomposition import PCA from sklearn.preprocessing im...
38.175692
331
0.608814
a9899758272e0a944de3e66028e032f2c8b9e776
18,297
py
Python
crowdbike/main.py
theendlessriver13/crowdbike
02a3c72e9fb889bc563b966fb72ac26556ab8462
[ "MIT" ]
null
null
null
crowdbike/main.py
theendlessriver13/crowdbike
02a3c72e9fb889bc563b966fb72ac26556ab8462
[ "MIT" ]
6
2021-07-19T17:31:55.000Z
2022-03-31T14:26:28.000Z
crowdbike/main.py
theendlessriver13/crowdbike
02a3c72e9fb889bc563b966fb72ac26556ab8462
[ "MIT" ]
null
null
null
import argparse import json import os import sys from datetime import datetime from typing import NoReturn from typing import Optional from typing import Union import RPi.GPIO as GPIO from serial.serialutil import SerialException from tkinter import Button from tkinter import DISABLED from tkinter import E from tkinte...
28.279753
79
0.644149
a98f5db89f15b09c09480b627e8bdd13abd45047
1,739
py
Python
jumeaux/sample/addon/addon_sample/judgement/ignore_values.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/sample/addon/addon_sample/judgement/ignore_values.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/sample/addon/addon_sample/judgement/ignore_values.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- from owlmixin import OwlMixin from owlmixin.owlcollections import TList from jumeaux.addons.judgement import JudgementExecutor from jumeaux.utils import get_by_diff_key from jumeaux.logger import Logger from jumeaux.models import JudgementAddOnPayload, DiffKeys, JudgementAddOnReference logger:...
32.203704
85
0.642323
a5dbf67d9f0faaf5b6c9005d96a88c8e7d69db4a
1,930
py
Python
20-fs-ias-lec/groups/Demo B/src/longFi/src/sendEther.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/Demo B/src/longFi/src/sendEther.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/Demo B/src/longFi/src/sendEther.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
""" sendEther.py Faris Ahmetasevic, Marco Banholzer, Nderim Shatri This code sends raw ethernet packets to a network by using the scapy library. """ from scapy.all import sendp, Raw from scapy.layers.l2 import Ether import time import transport """ Sends a message as ethernet packet to the network interface with an e...
25.394737
102
0.728497
194365ece7545bd469c8ad23a46e7e461ac29edf
1,513
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/predict/action_detect/mfcc/model_config.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/predict/action_detect/mfcc/model_config.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/applications/FootballAction/predict/action_detect/mfcc/model_config.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-24T16:27:01.000Z
2022-01-24T16:27:01.000Z
""" audio model config """ import numpy as np import mfcc.feature_extractor as feature_extractor class ModelAudio(object): """ modelAudio """ def __init__(self, configs, use_gpu=1): self.use_gpu = use_gpu self.audio_fps = configs.COMMON.fps self.audio_feat_scale = configs.TSN...
29.096154
76
0.588235
2792569102b1b063575dfd15c8e24c7b745665ec
631
py
Python
pythonProj/FZPython/demo/update_dailyprice.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/update_dailyprice.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/update_dailyprice.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python """ 根据 symbol表, 获得 每个symbol的latest的dailyprice的日期 if latest trading date < latest trading date: download dailyprice from latest daily price to latest trading date from tushare insert the """ #=========== 实现脚本运行操作 ============ import os import sys module_path = os.path.abspath(os.getcwd...
19.71875
83
0.713154
8ba233575a3f01bfe5a9966ad031d838f9c856e3
202
py
Python
Online-Judges/CodingBat/Python/List-02/List_2-03-centered_average.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/List-02/List_2-03-centered_average.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/List-02/List_2-03-centered_average.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def centered_average(nums): totall = 0 mixi = max(nums) mini = min(nums) nums.remove(mixi) nums.remove(mini) for num in nums: totall += num return totall / len(nums)
20.2
29
0.594059
8bdd6edd0d1749a52419e1f878251e6e996e3ddc
529
py
Python
mercy/Project7.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
mercy/Project7.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
mercy/Project7.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
# A function to copy and resize a jpg file import os from PIL import Image basedir = os.path.abspath(os.path.dirname(__file__)) filepath = os.path.join(basedir, 'demo_image.jpg') def resize_picture(filepath): '''creating the function for the new filepath to resize the image''' image_pic = Image.open(filepa...
27.842105
72
0.733459
9a407ea00de538f8732aadcc2ea761f8b9089065
971
py
Python
build/lib/AESEncryptor_heureka_code/__init__.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
build/lib/AESEncryptor_heureka_code/__init__.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
build/lib/AESEncryptor_heureka_code/__init__.py
heureka-code/AESEncryptor-heureka-code
9b11ed77148971672f6e6113a4411fae56e5712c
[ "MIT" ]
null
null
null
from AESEncryptor_heureka_code.Exceptions import WrongPassword, PasswordError, FileIsEncrypted, FileIsNotEncrypted, FileError, \ TextError, TextIsEncrypted, TextIsNotEncrypted from AESEncryptor_heureka_code.AESFileEncryptor import AESFileEncryptor from AESEncryptor_heureka_code.AESTextEncryptor import AESTextEncry...
53.944444
128
0.810505
d0bf7cbddccea084739bba12ee433343bfde07ab
287
py
Python
python_gui_tkinter/KALU/GARBAGE/mail/testpy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE/mail/testpy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE/mail/testpy.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from pyClass import Employee #This would create first object of Employee class" emp1 = Employee("Zara", 2000) #This would create second object of Employee class" emp2 = Employee("Manni", 5000) emp1.displayEmployee() emp2.displayEmployee() print ("Total Employee %d" % Employee.empCount)
31.888889
51
0.773519
ef38fec749e61bf65c4bb65b5d7eced077a870bd
3,650
py
Python
model/topoml_util/sketch_rnn_model.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/sketch_rnn_model.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/sketch_rnn_model.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.436893
78
0.673973
ef68ddd83099329521cadf8649c86009979fd17b
8,497
py
Python
src/processing_controller/processing_controller.py
ska-telescope/sdp-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/processing_controller/processing_controller.py
ska-telescope/sdp-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/processing_controller/processing_controller.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
""" SDP Processing Controller Deploys workflows specified by processing blocks in the configuration database. """ import os import signal import json import time import urllib import jsonschema import ska_sdp_config from ska_sdp_logging import core_logging LOG_LEVEL = os.getenv('SDP_LOG_LEVEL', 'DEBUG') WORKFLOWS_UR...
37.431718
115
0.621396
3277be68af0815b74b881a46c63da454d7a0e8e9
4,772
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/build/wix.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/build/wix.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/build/wix.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) 2011-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...
43.381818
103
0.625733
0896817bfb41a31f32991a7ed17c25c33ad6e529
166
py
Python
exercises/en/exc_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/en/exc_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/en/exc_01_02_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
# Import spaCy import ____ # Create the English nlp object nlp = ____ # Process a text doc = nlp("This is a sentence.") # Print the document text print(____.text)
13.833333
32
0.716867
41140b5b084f168745c456ecafea3b2f5692c819
969
py
Python
example/redis_kafka_worker.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
example/redis_kafka_worker.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
example/redis_kafka_worker.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
import logging from typing import List, Tuple from example.data_models import InputMessage, RedisOutput from volley import Engine logging.basicConfig(level=logging.INFO) queue_config = { "input-queue": { "value": "redis.input.queue", "profile": "rsmq", "data_model": "example.data_models....
22.534884
69
0.670795
eb1ee88ce3d9d0ed6e58a7cca1e3cf60dded3afa
9,338
py
Python
TW-Circuit/new_circuit_SIMCE/main.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
TW-Circuit/new_circuit_SIMCE/main.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
TW-Circuit/new_circuit_SIMCE/main.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" Neuronal Network of C. Elegans implemented in Python with the LIF-Model (by JW) New Circuit Edition (SIM-CE) Version: I don't know - Still in work! """ # Some dependencies import numpy as np import matplotlib.pyplot as plt import gym from lif import I_syn_calc, I_gap_calc, U_neuron_calc """ Parameters for the ...
37.95935
180
0.448918
264724211342eb3a30910cacae4675a290954e0b
4,432
py
Python
python_experiments/paper_figures/tkde/parsing_results/parse_varying_eps_c_results.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/parsing_results/parse_varying_eps_c_results.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/parsing_results/parse_varying_eps_c_results.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from config import * from data_analysis.util.read_file_utils_updated import * from data_analysis.tkde_data_parsing.key_word_tags import * import json, re if __name__ == '__main__': env_tag = lccpu12_tag with open('../../../config.json') as ifs: my_config_dict = json.load(ifs)[env_tag] gt_data_set_l...
49.244444
118
0.514666
cd6cd12c867e13828e9b46dc111cb7479124cf48
5,141
py
Python
Packs/CommonScripts/Scripts/CopyNotesToIncident/CopyNotesToIncident_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/CopyNotesToIncident/CopyNotesToIncident_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/CopyNotesToIncident/CopyNotesToIncident_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CopyNotesToIncident import copy_notes_to_target_incident import demistomock as demisto # noqa # pylint: disable=unused-wildcard-import from typing import List, Dict, Any import json MOCK_TARGET_INCIDENT_ID = '99' MOCK_TAG = 'Tag1' def load_test_data(json_path): with open(json_path) as f: return jso...
36.721429
119
0.6454
fffc180b4dfc52f87c42b7f3a4d37460219fb10e
405
py
Python
flaskblog/app/form.py
john526/Flask
02e48871bc8a48b6de8eca95f88967fe9349f058
[ "MIT" ]
null
null
null
flaskblog/app/form.py
john526/Flask
02e48871bc8a48b6de8eca95f88967fe9349f058
[ "MIT" ]
null
null
null
flaskblog/app/form.py
john526/Flask
02e48871bc8a48b6de8eca95f88967fe9349f058
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField from wtforms.validators import DataRequired class LoginForm(FlaskForm): username = StringField('Username : ', validators=[DataRequired()]) password = PasswordField('Password : ',validators=[DataRequired()...
36.818182
73
0.767901
d9b06322f7339d2b200b33fa2f8eb7fe2ff08c14
874
py
Python
spider/ce_master_paper.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/ce_master_paper.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/ce_master_paper.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
import re import json from bson import json_util from datetime import datetime,timedelta from tqdm import tqdm from Config import get_spider_config _,db,r = get_spider_config() def get_task(): for item in tqdm(db.current_event.find({'type':{'$gte':1},'event.date':{'$gte':'2016-01-01'}},{'_id':1,'queries':1})):...
28.193548
119
0.677346
76ffbef301716983d16d949ca918e6ea3c5e5ddd
6,176
py
Python
test/test_npu/test_upsample_bicubic2d_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_upsample_bicubic2d_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_upsample_bicubic2d_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...
51.041322
143
0.569139
e4032c3e062c5eed2b95b0607e367a5f1c48d8aa
5,455
py
Python
module/twitterApi.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
module/twitterApi.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
module/twitterApi.py
lonelyion/TweetToBot-Docker
ea91a9d93bad2b757c2ba0923ae9f1cd0f5ac278
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import tweepy import traceback import time import threading import module.twitter as twitter import module.msgStream as msgStream # 引入配置 from load_config import config from helper import getlogger, data_read_auto, data_save, TokenBucket logger = getlogger(__name__) # 引入推送列表、推送处理模版 ''' 推特API监听更新的...
28.710526
77
0.580752
e407c0278bfee51476f37d84f7e821ee7e1a7a7f
2,081
py
Python
___Python/RomanS/untitled/p01_kennenlernen/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/RomanS/untitled/p01_kennenlernen/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/RomanS/untitled/p01_kennenlernen/m01_kennenlernen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from datetime import date from p01_kennenlernen import mybib import statistics """ Teilnehmerliste(n) """ # variable [0] [1] [2] [3] torsten = ["Torsten", "Aachen", date(1967,1,1), ["C"]] michael = ["Michael", "Moormerland", date(1981,1,10), ...
30.602941
125
0.603075
7ca2cf33a89c2eb1796d1f7cc67eab877cb69839
20,475
py
Python
tests/client_tests/unit/test_account.py
binaryflesh/torba
6788e09ae922df55c9d164d77d351665b4138d10
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
tests/client_tests/unit/test_account.py
binaryflesh/torba
6788e09ae922df55c9d164d77d351665b4138d10
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/tests/client_tests/unit/test_account.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
from binascii import hexlify from torba.testcase import AsyncioTestCase from torba.coin.bitcoinsegwit import MainNetLedger as ledger_class from torba.client.baseaccount import HierarchicalDeterministic, SingleKey from torba.client.wallet import Wallet class TestHierarchicalDeterministicAccount(AsyncioTestCase): ...
42.745303
108
0.666129
866f2d0bebd3e20173dbf722da3f69b92f46289c
611
py
Python
0026remove-duplicates-from-sorted-array.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0026remove-duplicates-from-sorted-array.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0026remove-duplicates-from-sorted-array.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Solution: def removeDuplicates(self, nums): if len(nums) < 2: return len(nums) length = 0 for i in range(len(nums)): if nums[i] != nums[length]: length += 1 nums[length] = nums[i] ...
21.821429
43
0.440262
078795b0eb90336151b34b49655e3e00c2db35ab
238
py
Python
Regex/Introduction/matching_start_end.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Regex/Introduction/matching_start_end.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Regex/Introduction/matching_start_end.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import re # www.hackerrank.com # http://www.hackerrank.com # Regex_Pattern = r'^\w{3}\W{1}\w+\W{1}\w{3}$' Regex_Pattern = r'^\d{1}\w{4}\.$' print(str(bool(re.search(Regex_Pattern, input()))).lower())
18.307692
59
0.642857
9c27a2eea0c9aa7c259221e56aa380a1343975cc
3,051
py
Python
UDPdos-master/udpDos.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
UDPdos-master/udpDos.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
UDPdos-master/udpDos.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
############################### #!/usr/bin/env python2 # #Fl00d UDP DoS Hawk # #Authorized by r00t#d4nZ # #Coded r00t#d4nZ # #CR45H FIGHTER TEAM # ############################### import os import sys import time import socket import random import threading E = '\033[0m' R...
25.855932
143
0.55195
9c5077f2fa522567d54edc5446895feee4bd6a7a
2,515
py
Python
official/nlp/gnmt_v2/src/utils/initializer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/gnmt_v2/src/utils/initializer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/gnmt_v2/src/utils/initializer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 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...
23.952381
78
0.607952
131c5ad7e230584d2e059e8042cc0b39cedb8d62
7,976
py
Python
tests/test_worker.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
tests/test_worker.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
tests/test_worker.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018-2020 Niko Sandschneider """Module containing all tests for p2p_worker.""" from datetime import date import logging import os import unittest from unittest.mock import patch import pandas as pd from easyp2p.p2p_settings import Settings from easyp2p.p2p_signals import Pla...
44.066298
79
0.698721
b984e57be2ea2601826860bebf9e0c52c087942e
497
py
Python
web/Electroplating/src/app/pow.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/Electroplating/src/app/pow.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
web/Electroplating/src/app/pow.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
import hashlib import uuid import binascii import os def generate(): return uuid.uuid4().hex[:4], uuid.uuid4().hex[:4] def verify(prefix, suffix, answer, difficulty=6): hash = hashlib.sha256(prefix.encode() + answer.encode() + suffix.encode()).hexdigest() return hash.endswith("0"*difficulty) def solve(pr...
26.157895
90
0.674044
b986afbface47a1c3480f7553c9fb3ab69af1f87
670
py
Python
example/zmq_client.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
example/zmq_client.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
example/zmq_client.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
# https://learning-0mq-with-pyzmq.readthedocs.io/en/latest/pyzmq/patterns/client_server.html import msgpack import zmq def main() -> None: port = 5555 context = zmq.Context() print("Connecting to server...") socket = context.socket(zmq.REQ) socket.connect("tcp://localhost:%s" % port) for requ...
27.916667
92
0.619403
6a4aaa08f0c01fe7f4cfdc06acf324328a8a63c1
127
py
Python
Curso-Em-Video-Python/2Exercicios/005_Antecessor_e_Sucessor.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/005_Antecessor_e_Sucessor.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/005_Antecessor_e_Sucessor.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
n = int(input('Digite um numero: ')) print('Analizando o numero: {} antecessor é {} e o sucessor é {}'.format(n, (n-1), (n+1)))
63.5
90
0.614173
e0155108241e35d19dc8d02641b0dfd002f06f1e
2,756
py
Python
RDS/circle2_use_cases/exporter/src/lib/ExporterService.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/exporter/src/lib/ExporterService.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/exporter/src/lib/ExporterService.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
import requests import os import logging logger = logging.getLogger() class ExporterService: def __init__(self, testing=False, testing_address=None): self.testing = testing if testing: self.testing_address = ( "http://localhost:3000" if testing_address is None else tes...
29.319149
130
0.55479
e02548a4f38ea4e83874c6fa8895aaed88c0ab2a
1,278
py
Python
isj_proj01.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
isj_proj01.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
isj_proj01.py
SnasiCze/ISJ
2284cb0d53aad5dd0bfc6230224700628be9e454
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re def first_task(animals): # ukol za 3 body # a word that either is or is not followed by (P...) word_parse = re.compile(r''' (\w+)\s*\(\.*P:?\ # it is either *([^\)]*)\)\s+|(\w+)\b(?!\s*\() # or it is ''', re.X)...
39.9375
179
0.532081
0eec97a9ba7cbf51fd6824e526652bb4ceabc8e0
2,414
py
Python
tests/measures/test_corporate.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
tests/measures/test_corporate.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
tests/measures/test_corporate.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
import unittest from frds.data.wrds.comp import Funda, Fundq from frds.io.wrds import load from frds.measures.corporate import * class FundaTestCase(unittest.TestCase): def setUp(self) -> None: obs = 30_000 self.data: Funda = load(Funda, use_cache=True, save=False, obs=obs) self.assertIsIn...
32.186667
99
0.659901
4c35272c86ab0e0ce67e80c42f2e57ea2140d82a
528
py
Python
Interview Preparation Kits/Interview Preparation Kit/String Manipulation/Strings: Making Anagrams/making_anagrams.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/String Manipulation/Strings: Making Anagrams/making_anagrams.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/String Manipulation/Strings: Making Anagrams/making_anagrams.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the makeAnagram function below. def makeAnagram(a, b): count = 0 current = b for letter in a: if letter in current: count += 1 current = current.replace(letter, '', 1) return len(a) + len...
16
52
0.577652
d5b5eb6096a260b08a945c0aed03d5ba25338bab
914
py
Python
top/clearlight/base/liaoxuefeng/advanced/ListGeneration.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/advanced/ListGeneration.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/advanced/ListGeneration.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import os # 高级特性:列表生成式 # 生成列表 print(list(range(1, 11))) # 循环 L = [] for x in range(1, 11): L.append(x * x) print(L) # 列表生成式: [要生成的元素 for循环 if判断] print([x * x for x in range(1, 11)]) # for循环后面加if判断 print([x * x for x in range(1, 11) if x % 2 == 0]) # 使用两层循环, 生成全排列 print([m + n for m in 'ABC' for n in 'XYZ']) pr...
18.653061
50
0.574398
d5c5882233dde21759f6d079fe3fd15957b4d30b
18,196
py
Python
examples/FlexibleEBNF/tests/test_EBNFServer.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
examples/FlexibleEBNF/tests/test_EBNFServer.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
examples/FlexibleEBNF/tests/test_EBNFServer.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
import asyncio import json import os import sys import threading import time testpath = os.path.abspath(os.path.dirname(__file__)) mainpath = os.path.dirname(testpath) dhparserpath = os.path.dirname(os.path.dirname(mainpath)) sys.path.append(mainpath) from DHParser.error import ERROR from DHParser.server import Exec...
45.376559
116
0.580457
fc21b87edce12c2b5be9f3b31299f05a4c564e18
139
py
Python
packages/watchmen-rest/src/watchmen_rest/system/health_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest/src/watchmen_rest/system/health_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest/src/watchmen_rest/system/health_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from fastapi import APIRouter router = APIRouter() @router.get('/health', tags=['system']) async def health(): return {"health": True}
15.444444
39
0.690647
fc444c7c9a77d3821957c16e5c20a58769f3d709
1,878
py
Python
2018/quals/web-js-safe-2/src/solve.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/web-js-safe-2/src/solve.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2018/quals/web-js-safe-2/src/solve.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # 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 requi...
30.290323
150
0.65229
5d18cd5f864cfde7c96adac2ac3fcadf79ea0a8e
4,193
py
Python
src/main/python/batteryguard/batteryguardgui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/batteryguard/batteryguardgui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/batteryguard/batteryguardgui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys sys.path.append('..') import os import logging import threading import time import batteryguard import atorlib # GUI import tkinter as tk import tkinter.font as tkFont import cairosvg import io from PIL import Image, ImageTk class BatteryGuardGUI(atorlib.GuiIconValue): battery...
36.780702
135
0.510374
5d2328df147b58cc5378706fd31ce4ae061498b3
1,325
py
Python
shinrl/envs/pendulum/config.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/envs/pendulum/config.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/envs/pendulum/config.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
""" Author: Toshinori Kitamura Affiliation: NAIST & OSX """ import enum from typing import ClassVar, Type import chex from shinrl import EnvConfig class OBS_MODE(enum.IntEnum): tuple = enum.auto() image = enum.auto() class ACT_MODE(enum.IntEnum): discrete = enum.auto() continuous = enum.auto() @...
23.245614
59
0.646792
5398daebb1ec6ea077b48d34eb4db09f34656e4a
5,254
py
Python
mpy_code/blob.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
1
2021-04-03T18:57:35.000Z
2021-04-03T18:57:35.000Z
mpy_code/blob.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
null
null
null
mpy_code/blob.py
teuler/make-thermal-cam
346a1f47556e62de05869d68e0aa9bb13f20d98f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # --------------------------------------------------------------------- # blob.py # Function for blob detection in images # # The MIT License (MIT) # Copyright (c) 2019 Thomas Euler # 2020-08-21, v1.0 Analogous to the `blob.c` code, pure MicroPython # # --------------------...
27.798942
79
0.505139
ab189ab318407a0b08e0993dcb8dbe79de71920c
2,625
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/import/visum/visum_parseZaehlstelle.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/import/visum/visum_parseZaehlstelle.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/import/visum/visum_parseZaehlstelle.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) 2008-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...
32.8125
113
0.630857
db6d02e419f10379f302f17c896a3353026c92ed
4,586
py
Python
research/cv/rcnn/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/rcnn/src/model.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/rcnn/src/model.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...
29.973856
104
0.600087
db6ec101edf6b2400f59bf3b094000c379a80329
169
py
Python
1662-check-if-two-string-arrays-are-equivalent/1662-check-if-two-string-arrays-are-equivalent.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1662-check-if-two-string-arrays-are-equivalent/1662-check-if-two-string-arrays-are-equivalent.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1662-check-if-two-string-arrays-are-equivalent/1662-check-if-two-string-arrays-are-equivalent.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def arrayStringsAreEqual(self, word1: List[str], word2: List[str]) -> bool: return True if "".join(word1)=="".join(word2) else False
42.25
79
0.633136
db74f5af515e72fc9cd31633545780b3f704aea1
2,025
py
Python
apps/node/models.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/node/models.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/node/models.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
from datetime import datetime, timedelta from django.db import models class Node(models.Model): # 节点ID唯一 node_id = models.IntegerField(verbose_name="节点id", null=False, blank=False, unique=True) name = models.CharField(max_length=30, null=True, blank=True, verbose_name="节点名称") ip = models.GenericIPAdd...
32.142857
102
0.592099
917dffc5f13f2157ccfe043f105b98e13f15b2dd
2,932
py
Python
torba/torba/client/cli.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/client/cli.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/client/cli.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
import logging import argparse import asyncio import aiohttp from torba.orchstr8.node import Conductor, get_ledger_from_environment, get_blockchain_node_from_ledger from torba.orchstr8.service import ConductorService def get_argument_parser(): parser = argparse.ArgumentParser( prog="torba" ) subp...
32.577778
107
0.670873
919992440631b7bc51bb93c40f87e0d090ade0b8
21,958
py
Python
examples/myqueryset/delete_/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/myqueryset/delete_/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/myqueryset/delete_/tests.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.test import TestCase, TransactionTestCase from .models import product, brand # Create your tests here. class SimpleTest(TransactionTestCase): reset_sequences = True def test_a_delete_relate(self): b1 = brand(name="fenghuang", description="fhdc") b2 = brand(name="auldey", descript...
37.47099
126
0.529739
53667a1faeef0ad17f45fb121e1e1cc2d30b9d61
578
py
Python
___Python/Marco/PythonProj/p03_lambda/m03_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p03_lambda/m03_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p03_lambda/m03_filtern.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
celsius_temperaturen = (0.7 , 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3)#Durchschnittstemeraturen Bielefeld nach Jahren def mindestens15(temperatur): return temperatur >= 15 def zwischen5und10(temperatur): return 5 <= temperatur and temperatur <= 10 def filtern(liste, kriterium): ...
24.083333
137
0.67301
f438e12c5c306d5dc64393dfca62bbb746879fa6
6,445
py
Python
src/onegov/core/directives.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/directives.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/core/directives.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os.path from dectate import Action, Query from inspect import isclass from morepath.directive import HtmlAction from onegov.core.utils import Bunch class HtmlHandleFormAction(HtmlAction): """ Register Form view. Basically wraps the Morepath's ``html`` directive, registering both POST and GET (if ...
28.021739
79
0.644996
2295ac618d3bf0795982db64b6eed4ba383ea40b
965
py
Python
INBa/2015/Ionova_A_K/task_4_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ionova_A_K/task_4_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Ionova_A_K/task_4_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 8. # Напишите программу, которая выводит имя, под которым скрывается Алексей Максимович Пешков. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения всех...
45.952381
446
0.773057
a3cad81a673af535c0577449c14714f4f24e6d23
963
py
Python
dtdocker/utils/cleanup.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
dtdocker/utils/cleanup.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
dtdocker/utils/cleanup.py
oxsoftdev/dt-docker
8ba30bf5ca2a7b89f3c7658a7768b16dbf8514a5
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger('dt-docker') def containers(client): for container in client.containers.list(all=True): try: container.remove(force=True) logger.info("cleanup::container: %s" % container.name) except: logger.exception("failed to clean ...
28.323529
66
0.610592
a3dda7cf0d1e8d2e437b085139642706d38e27aa
1,513
py
Python
p01/cifastapi/config.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
p01/cifastapi/config.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
p01/cifastapi/config.py
JoseIbanez/fastapi
ac4b74f23315021042efd88e192aa39d8481de53
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Get configuration for the rest of the application """ import json import os def getVersion(): """ Get release version """ # Get version from file versionFile = "/etc/cifastapi/VERSION_FULL" try: with open(versionFile) as file: version = file.read...
19.649351
77
0.597488
6042069f8de3840e11a894f355da879a2319098a
2,531
py
Python
test/test_npu/test_network_ops/test_avg_pool2d.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_avg_pool2d.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_avg_pool2d.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...
39.546875
88
0.668906
6065f834036f76818654e7c41657ab2c1f006998
801
py
Python
giggle/typing/_typing.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
giggle/typing/_typing.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
giggle/typing/_typing.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
import typing def test_no_annotation(): count: int = 0 while count < 10: count += 1 return "OK" # def test_return_str_should_raise_error() -> int: # return "OK" # def test_pass_str_should_raise_error() -> None: # # def greeting(name: str) -> str: # return 'Hello ' + name # # ...
15.113208
51
0.612984
60b6a773f6f49c1164fdc9b0f3379fa9853af34a
6,155
py
Python
extract/social_media_util.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
extract/social_media_util.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
extract/social_media_util.py
dbmdz/webarchiv-dh-derivate
8c608712146829f5e64d640bc640d595de3b4cfe
[ "MIT" ]
null
null
null
import json import re from datetime import datetime from json import JSONDecodeError from typing import List, Dict, Optional, Tuple, Set from urllib.parse import urlparse, parse_qs, unquote from bs4 import BeautifulSoup from pyspark.sql.functions import udf from pyspark.sql.types import ( StructType, StructFie...
31.564103
126
0.619334
e0a16fcbc51509e3d63ab4291f3d52bb2e667fbe
1,948
py
Python
src/port-fwd.py
lburgazzoli/lb-py-misc
714bfdaf557f7a05d35a6349c78cc8c281007345
[ "Apache-2.0" ]
null
null
null
src/port-fwd.py
lburgazzoli/lb-py-misc
714bfdaf557f7a05d35a6349c78cc8c281007345
[ "Apache-2.0" ]
null
null
null
src/port-fwd.py
lburgazzoli/lb-py-misc
714bfdaf557f7a05d35a6349c78cc8c281007345
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # # Copyright 2014 lb. # # 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 ...
33.586207
80
0.532854
4606a08328988cd850894e88e9c911221fc9d38f
2,137
py
Python
pythonProj/FZPython/pyquant/models/datasource.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/models/datasource.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/models/datasource.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
import pyquant.libs.tusharelib as tusharelib import pyquant.libs.mongolib as mongolib from pyquant.db_models import DailyPrice class Datasource(object): """ Datasource 是对外模块的Wrapper """ type = None def __init__(self, type = None, **kwargs): self.type = type def get_data(self, code,...
22.030928
128
0.628919
46192a0a060a5a8e552083e4afea8896d50b7f7e
4,516
py
Python
research/cv/LightCNN/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/LightCNN/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/LightCNN/src/dataset.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.205882
102
0.613153
4020a572ef6c6faab17177b96b5c73e5993c9b79
28,426
py
Python
SWH2P/swh2p/core.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
4
2017-06-20T19:56:22.000Z
2021-05-29T10:07:47.000Z
SWH2P/swh2p/core.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
11
2017-05-31T19:14:32.000Z
2018-09-12T23:44:11.000Z
SWH2P/swh2p/core.py
swharden/ROI-Analysis-Pipeline
e83d96c43fdd50cb44be365289e964576492617e
[ "MIT" ]
2
2017-06-20T17:14:38.000Z
2017-06-20T19:51:34.000Z
""" core class to analze Time Series data from the two-photon microscope """ import os import numpy as np import matplotlib.image as mpimg import time from read_roi import read_roi_zip import matplotlib.pyplot as plt import matplotlib.cm as cm import glob import webbrowser import winsound COLORMAPS = sorted([m for m ...
36.490372
80
0.587033
906b85fe2c4018fc6fea95300fe9d73ba55546c7
763
py
Python
___Python/Michael/p04_oop/m03_uhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Michael/p04_oop/m03_uhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Michael/p04_oop/m03_uhr.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import time class Uhr(object): def __init__(self, stunde, minute, sekunde): self.stunde = stunde self.minute = minute self.sekunde = sekunde def naechsteSekunde(self): self.sekunde += 1 if self.sekunde > 59: self.sekunde = 0 self....
24.612903
75
0.492792
2932749116f71f30090067ef103d5d6c526ce276
2,308
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_7/make_subscription_from_recurring_data.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/v8_7/make_subscription_from_recurring_data.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_7/make_subscription_from_recurring_data.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2017, Frappe and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe.utils import today def execute(): frappe.reload_doc('accounts', 'doctype', 'subscription') frappe.reload_doc('selling', 'doctype', 'sales_order') ...
39.793103
89
0.755633
466843b7386b8319adf08b56ea7dced787f7783b
84
py
Python
RDS/circle2_use_cases/exporter/src/api/UserResearchSettings.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle2_use_cases/exporter/src/api/UserResearchSettings.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle2_use_cases/exporter/src/api/UserResearchSettings.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
def index(user_id, research_id): pass def put(user_id, research_id): pass
12
32
0.690476
4669224fa24e744a31376fc6cfddfae202523158
823
py
Python
log-demo/simple_logging_module.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
log-demo/simple_logging_module.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
log-demo/simple_logging_module.py
gregjhansell97/sandbox
d565da5db2c10af404ce62aa747d5e682bc02a86
[ "MIT" ]
null
null
null
import logging class A: def __init__(self): self.logger = logging.getLogger(self.__name__) self.logger.setLevel(logging.DEBUG) self.logger.info("initialized") def hello_world(self): self.logger.info("hello world") logger = logging.getLogger(__name__) logger.setLevel(logging.D...
19.139535
66
0.705954
3114a32a1615e6e44829288da55ca3e02f24f5de
674
py
Python
python/image_processing/laplacian1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/image_processing/laplacian1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/image_processing/laplacian1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('city1.jpg',0) laplacian = cv2.Laplacian(img,cv2.CV_64F) sobelx = cv2.Sobel(img,cv2.CV_64F,1,0,ksize=5) sobely = cv2.Sobel(img,cv2.CV_64F,0,1,ksize=5) plt.subplot(2,2,1),plt.imshow(img,cmap = 'gray') plt.title('Original'), plt.xticks...
30.636364
54
0.683976
9ee7f0602aae011b2b9509b99e67fb9923c19ef9
816
py
Python
packages/watchmen-auth/src/watchmen_auth/principal_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-auth/src/watchmen_auth/principal_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-auth/src/watchmen_auth/principal_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from watchmen_model.admin import User, UserRole from watchmen_model.common import TenantId, UserId class PrincipalService: tenantId: TenantId userId: UserId name: str role: UserRole def __init__(self, user: User): self.tenantId = user.tenantId self.userId = user.userId self.name = user.name self.role = ...
22.054054
73
0.738971
6f625efb4fa0b95691ec483f828cbb27a31633e0
2,586
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/MongoUri.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/MongoUri.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Common/MongoUri.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
import re from Util import validate_hostname from mongodb_consistent_backup.Errors import OperationError class MongoAddr: def __init__(self, host=None, port=None, replset=None): self.host = host self.port = port self.replset = replset def str(self): if self.host and sel...
26.659794
96
0.512374
48982163703682528d72d71ef0db03d8f191aae0
196
py
Python
PyStellar/stellar/Git/urls.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/Git/urls.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/Git/urls.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
from django.urls import path from . import views app_name = 'Git' urlpatterns = [ path('gitcommithistory', views.GitCommitCheck.as_view()), path('gitrepo', views.GitRepo.as_view()), ]
16.333333
61
0.69898
8257fe06b126b48383bf0539d3f60a3ea8200fb7
603
py
Python
main.py
SEric/calc_app
8e255ba96951974b2e271e4bacf81340c2f175ea
[ "MIT" ]
null
null
null
main.py
SEric/calc_app
8e255ba96951974b2e271e4bacf81340c2f175ea
[ "MIT" ]
null
null
null
main.py
SEric/calc_app
8e255ba96951974b2e271e4bacf81340c2f175ea
[ "MIT" ]
null
null
null
from kivy.app import App class RechnerApp(App): pass def berechne(self,button, gui, app): print("berechne wird ausgeführt") for x in [self, button, gui, app]: print(x) button.text = "fertig berechnet!" print("fertig") def button_pressed(self, button): p...
25.125
50
0.606965
7d83b0da362c380f0309b79405eb0dfbf8a25a6d
8,137
py
Python
markdown_generator/media.py
yesiknowjava/theodorecaputihugo
95aa4391a2edd0cc03774384cdc52f45efc85835
[ "MIT" ]
null
null
null
markdown_generator/media.py
yesiknowjava/theodorecaputihugo
95aa4391a2edd0cc03774384cdc52f45efc85835
[ "MIT" ]
null
null
null
markdown_generator/media.py
yesiknowjava/theodorecaputihugo
95aa4391a2edd0cc03774384cdc52f45efc85835
[ "MIT" ]
1
2021-06-09T04:30:16.000Z
2021-06-09T04:30:16.000Z
from newsfetch.news import newspaper import frontmatter import os import requests from tqdm import tqdm import json from pprint import pprint import random import datetime import time import justext from fake_useragent import UserAgent import random ua = UserAgent() # >> > # >> > s.extract() # >> > s.title # u'svven/...
32.548
629
0.539634
7d9737a505e8c57937a889c44af1808554757bb7
5,670
py
Python
python/oneflow/compatible/single_client/test/ops/test_nccl_use_compute_stream.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/test/ops/test_nccl_use_compute_stream.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/test/ops/test_nccl_use_compute_stream.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
39.375
85
0.721164
816ee842e36d53917b2f5d6eebfde0537c0b581c
1,286
py
Python
frappe-bench/apps/erpnext/erpnext/setup/doctype/sales_person/sales_person.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/setup/doctype/sales_person/sales_person.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/setup/doctype/sales_person/sales_person.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import flt from frappe.utils.nestedset import NestedSet class SalesPerson(NestedSet): nsm_parent_...
33.842105
100
0.739502
817204a9177ce49d1ab24f05dbdd766bf8c370d4
92
py
Python
2015/04/campfin-public-money-20150414/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/04/campfin-public-money-20150414/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/04/campfin-public-money-20150414/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1tpGZd3RmK2yBDwmfJkz3Uxv4cnis5TydVxAxAYkDjE4'
23
68
0.847826
c499a068a80a1054bb2d18df8f9d544145d214f1
40,934
py
Python
backend/songwriter/views.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
backend/songwriter/views.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
12
2017-09-25T20:13:29.000Z
2020-02-12T00:12:41.000Z
backend/songwriter/views.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
# coding:utf-8 import csv import json import difflib import os import re import shutil import subprocess import tempfile import slugify from django.contrib.auth.models import User from django.db.models import Q from django.http import JsonResponse from django.shortcuts import get_object_or_404 from django.views.deco...
33.970124
118
0.615918
b5096f654487a6de7caa931642f7fdea39a7781a
2,986
py
Python
tests/api/test___init__.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test___init__.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test___init__.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import pytest from project.api import RestApi def test_handle_error_unique(app): from project.utils import make_unique_violation error = make_unique_violation() with app.app_context(): app.config["PROPAGATE_EXCEPTIONS"] = False api = RestApi(app) (data, code) = api.handle_error(...
27.648148
60
0.665104
9665e4335b32344f5d3049400f72e6af485b5953
1,375
py
Python
tests/scheduler/test_base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
tests/scheduler/test_base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
tests/scheduler/test_base.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import os import pytest from sqlalchemy.engine.mock import create_mock_engine import scheduler.base as base ## JobStore Tests @pytest.fixture def connection_string(): db_config = { "type": "postgresql", "user": os.getenv('DB_USER'), "password": os.getenv('DB_PASSWORD'), "host": os....
28.061224
75
0.730909
7369ccfa83fec5ecc3ae4ae7fc346c3eee43ba2a
3,792
py
Python
research/cv/DBPN/src/model/ddbpn.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/DBPN/src/model/ddbpn.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/DBPN/src/model/ddbpn.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...
32.410256
113
0.596255
736ab207ec5306f57c0793f525607c45b2102699
3,190
py
Python
lib/UNet.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
lib/UNet.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
lib/UNet.py
liushrui/dsb
eacbe770acf32023029eb89dcc7829af89b09132
[ "MIT" ]
null
null
null
import keras from keras import backend as K from keras.models import Model, load_model from keras.callbacks import EarlyStopping, ModelCheckpoint from keras.layers import Input, Dropout, BatchNormalization, Conv2D, Conv2DTranspose, MaxPooling2D, concatenate def UNet(img_height=256, img_width=256, img_channels=3)...
51.451613
112
0.630721
fb94fb803b280932b78263c2e87fad3b7dec5ac4
8,032
py
Python
analysis/spectral.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-08-31T07:16:40.000Z
2018-08-31T07:16:40.000Z
analysis/spectral.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
null
null
null
analysis/spectral.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-07-01T18:03:01.000Z
2018-07-01T18:03:01.000Z
""" __author__ = Yash Patel __name__ = sbm.py __description__ = Spectral analysis on the eigenvalues of the adjacency matrix (for estimating number of distinct accounts) """ import copy import numpy as np import matplotlib.pyplot as plt import networkx as nx from sklearn.cluster import KMeans, SpectralClu...
39.960199
104
0.633342
f7f39384b4ede44bd932baf4b88b0d0365830b5f
6,962
py
Python
python/oneflow/nn/optimizer/optimizer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/optimizer/optimizer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
python/oneflow/nn/optimizer/optimizer.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
39.11236
148
0.620224
3fb526dd9b6d320ffd3b30a50b96e9096604844f
873
py
Python
docs/mdreplace.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
docs/mdreplace.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
docs/mdreplace.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
import os import sys import time from functools import partial from lcdoc.mkdocs.replace import admons, css def lp_plugins_descr(**kw): from lcdoc.tools import read_file, dirname d = dirname(kw['page'].file.abs_src_path) r = [''] for k in os.listdir(d): fn = d + '/' + k + '/index.md' ...
24.25
90
0.569301
3fef70be5c6907e6522a8f9fb7c49183e7f52bfe
692
py
Python
1472/Fcat_1472.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
1472/Fcat_1472.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
1472/Fcat_1472.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
class BrowserHistory: def __init__(self, homepage: str): self.history = [homepage] self.current_index = 0 def visit(self, url: str) -> None: self.history = self.history[:self.current_index+1] self.history.append(url) self.current_index += 1 def back(self, steps: in...
32.952381
78
0.648844
b7dde9897699c8aef0968e24e779282477c89805
6,542
py
Python
recipes/openexr/2.3.0/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
null
null
null
recipes/openexr/2.3.0/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
3
2021-02-15T08:48:16.000Z
2021-02-24T16:35:54.000Z
recipes/openexr/2.3.0/conanfile.py
SolarFramework/conan-solar
cdb6253556c056baacaf3e5f28b595869adddb88
[ "Apache-2.0" ]
null
null
null
from conans import ConanFile, CMake, tools import glob import os class OpenEXRConan(ConanFile): name = "openexr" version = "2.3.0" description = "OpenEXR is a high dynamic-range (HDR) image file format developed by Industrial Light & " \ "Magic for use in computer imaging applications." ...
50.713178
160
0.609905
150df23cc9620c7eebfe835d55aead5e3f68caaf
5,887
py
Python
project/services/user.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/services/user.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/services/user.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import datetime import secrets from flask_security import hash_password from sqlalchemy import func from sqlalchemy.sql import and_ from project import user_datastore from project.dateutils import get_now from project.models import ( Place, PlacesUsers, PushRegistration, RecyclingStreet, Recycling...
26.759091
88
0.73467
421f51dc29758b1cdd21e8d2331405f1922a915d
321
py
Python
slcyImageProcessing.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyImageProcessing.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyImageProcessing.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
import sys import cv2 import numpy import matplotlib def Preview(image) -> None: """Previews an image in a new window. Press any key to close image <numpy.ndarray>>""" cv2.imshow('preview',image) cv2.waitKey(0) cv2.destroyAllWindows() #matplotlib.pyplot.imshow(img) #matplotlib.pyplot.show()...
22.928571
64
0.694704
4298a1b9634b3ea18ddeaeda26e6b4de53a0e67e
4,478
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_fastq.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_fastq.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/test_fastq.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import screed from screed.DBConstants import fileExtension import os from cStringIO import StringIO def test_new_record(): # test for a bug where the record dict was not reset after each # sequence load, leading to all records being identical if you # kept a handle on the returned dictionary. s = ...
30.882759
77
0.623939