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
b3c3e146afb03be072e486a7973ae78972cfeea8
136
py
Python
gestionNeuroLab_Panel_de_Control/apps.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionNeuroLab_Panel_de_Control/apps.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionNeuroLab_Panel_de_Control/apps.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
from django.apps import AppConfig class GestionneurolabPanelDeControlConfig(AppConfig): name = 'gestionNeuroLab_Panel_de_Control'
22.666667
53
0.838235
376314a10eae3fc9e15c0286283b8acb8c3515f4
30,782
py
Python
MBF-yc/mbf.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
MBF-yc/mbf.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
MBF-yc/mbf.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import marshal,zlib,base64 exec(marshal.loads(zlib.decompress(base64.b64decode("eJztvQlgHNl5Hvj6AtC4DwIgeBbPAWdI3AfJGZADHkNSPNUgBxyOaKSAKgAF9MWuahKYAXV4xrIkey1ZlqzDkixHttaSN45jO15LliJr7Wy8dnZjb5x1Iu/azngdH7FWPtaJjyTK///vqKruqkaDx5CSCRIPr6reXfX+//uP994cEz+18Ps8/NrHEowZ8D/C0ozdUPEIuxGR8Si7EZXxGLsRk/E4uxGX8QS7kZDxGnajRsZr...
10,260.666667
30,754
0.968261
80e5678238faff860a3a47a5d5ce701d9ae80671
588
py
Python
kernel/painless/decorators.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/painless/decorators.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
kernel/painless/decorators.py
sageteam/behpack
3b8afb81dc7da70807308af4c8a2d2ab92b1a133
[ "MIT" ]
null
null
null
import datetime from functools import wraps from django.utils import timezone def confirm_password(view_func): @wraps(view_func) def _wrapped_view(request, *args, **kwargs): last_login = request.user.last_login timespan = last_login + datetime.timedelta(hours=6) if timezone.now() > time...
36.75
74
0.707483
038b47b14c81dd0c9c0c050d781c2ded4f3acf12
18,194
py
Python
uidcr3k-main/uidcr3k.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
uidcr3k-main/uidcr3k.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
uidcr3k-main/uidcr3k.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import marshal exec(marshal.loads('c\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00@\x00\x00\x00s\x0b\x00\x00\x00d\x00\x00Z\x00\x00d\x01\x00S\t(\x02\x00\x00\x00s*\x16\x00\x00c\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00@\x00\x00\x00s\x0b\x00\x00\x00d\x00\x00Z\x00\x00d\x01\x00S\t(\x02\x00\x00\x00s\xbf\x15\x00\x00c\...
6,064.666667
18,178
0.751676
03f4021cdae673a40b5ea13cda2bd435d6463523
5,257
py
Python
test/test_npu/test_network_ops/test_eye.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_eye.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_eye.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...
36.506944
87
0.585885
6416a97c0140a08739b807d3468fd22090b237a3
5,489
py
Python
src/networking.py
austinweis/mp-tetris
b8d0f8ca907414c93962facd79c1e19fdf214394
[ "MIT" ]
1
2022-02-23T18:19:13.000Z
2022-02-23T18:19:13.000Z
src/networking.py
austinweis/mp-tetris
b8d0f8ca907414c93962facd79c1e19fdf214394
[ "MIT" ]
null
null
null
src/networking.py
austinweis/mp-tetris
b8d0f8ca907414c93962facd79c1e19fdf214394
[ "MIT" ]
null
null
null
import socket, json, time conn = None peer_grid = {} peer_block = [] peer_score = 0 connection_established = False peer_found = False peer_end = False conn_end = False peer_disconnect = False timeout = False game_seed = 0 # start socket server, listen for data def start_server(host, port): global...
34.740506
109
0.469667
ff5131a6a2ef4c8221fddedd3d3e4aaf2eb993ac
2,006
py
Python
pyind/mutation.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
pyind/mutation.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
pyind/mutation.py
chankane/pyind
742bc671d3552d778024662867b64e32ae9bca9d
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from . import util # import util def flip_bit(pop, pb): """ Flip the individual's bits Flip bits of randomly selected genes Parameters ---------- pop : ndarray Population pb : float Probability of mutation Returns ...
19.861386
72
0.573779
ff6e3b07a130f9eac6fcaad58f6fe02497f377ae
4,885
py
Python
sdss/scripts/csv2dmp.py
zhewang/rdm
b2c00c5db6ee4861c1b7214e3a63b630be30bb31
[ "Apache-2.0" ]
null
null
null
sdss/scripts/csv2dmp.py
zhewang/rdm
b2c00c5db6ee4861c1b7214e3a63b630be30bb31
[ "Apache-2.0" ]
null
null
null
sdss/scripts/csv2dmp.py
zhewang/rdm
b2c00c5db6ee4861c1b7214e3a63b630be30bb31
[ "Apache-2.0" ]
null
null
null
# Generate .dmp file from .csv import argparse import csv import itertools import struct import sys def isfloat(value): try: float(value) return True except ValueError: return False def sanityCheck(row): legal = True for i in range(6, 21): if isfloat(row[i]) is False: ...
31.516129
102
0.51259
445721923bb3368d2a0fd0e578910a3fb2b1c45b
691
py
Python
gdp1/assignment_2/is_palindrome.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
gdp1/assignment_2/is_palindrome.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
gdp1/assignment_2/is_palindrome.py
einekatze/gdp1-homework
28889dfa1863e1f1dee164e5b465dddb1cfacfcc
[ "MIT" ]
null
null
null
from gdp1.common.input_helpers import str_input def is_palindrome(string): """Returns True if the given string is a palindrome, False if it isn't. @param str string: The string to check. @return boolean: Whether the string is a palindrome. """ # The property of being a palindrome doesn't depend ...
24.678571
76
0.664255
446fe7640baad3578c8903e6871fcf18b645d611
3,507
py
Python
Chapter5_DNN/Chapter5_1_XORClassification/xorDnn3.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_1_XORClassification/xorDnn3.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter5_DNN/Chapter5_1_XORClassification/xorDnn3.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
from typing import List from typing import Tuple import numpy as np import tensorflow as tf def get_dataset() -> Tuple[np.ndarray, np.ndarray]: """XOR dataset.""" x = np.array([[0, 0], [1, 0], [0, 1], [1, 1]], dtype=np.float32) y = np.array([[0], [1], [1], [0]], dtype=np.float32) return x, y def de...
35.785714
96
0.619618
926b3be347e5b32a05f6fe2d8cf4b49f9f3ef033
3,362
py
Python
app/models/XSK.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/models/XSK.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/models/XSK.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding=utf-8 -*- from flask import current_app from app import db class XSKStudent(db.Model): # define table name __tablename__ = 'xsk_students' id = db.Column(db.Integer, primary_key=True) lesson_id = db.Column(db.Integer, db.ForeignKey('xsk_class.id'), nullable=True, uni...
48.028571
144
0.712374
921261056da9c61c55f9510659c3b62bb6539f4b
202
py
Python
exercises/de/exc_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/exc_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/exc_03_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy # Lade das Modell "de_core_news_sm" nlp = ____ # Drucke die Namen der Pipeline-Komponenten print(____.____) # Drucke die komplette Pipeline mit (name, component) Tuples print(____.____)
18.363636
60
0.772277
a603cca71b0d22805eb8abea3e7679864bc2df87
2,124
py
Python
flexdb/utils.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
flexdb/utils.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
flexdb/utils.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
import importlib class ConfigException(Exception): def __init__(self, app_name): self.app_name = app_name def __unicode__(self): return self.app_name class ImportException(ConfigException): def __unicode__(self): return "{} config could not be loaded.".format(self.app_name) cl...
28.32
73
0.644539
a69d262f8119fbfd78e868f29ec8896d19953604
677
py
Python
klausur/8.py
larsaars/pgki_uebungen
24eee86b4f51f5ba3ca65526afeb6dad0110c739
[ "Apache-2.0" ]
null
null
null
klausur/8.py
larsaars/pgki_uebungen
24eee86b4f51f5ba3ca65526afeb6dad0110c739
[ "Apache-2.0" ]
null
null
null
klausur/8.py
larsaars/pgki_uebungen
24eee86b4f51f5ba3ca65526afeb6dad0110c739
[ "Apache-2.0" ]
null
null
null
import numpy as np def riemann(f, a: float, b: float, n: int = 1000) -> float: # the x values x = np.linspace(a, b, n + 1) # width of a single rectangle w = abs(a - b) / n # calc the summarized height; f(x) is the height hs = f(x).sum() # subtract the triangle areas (overheads of...
26.038462
64
0.51551
5b535135b6c7f020e50930f78a0f060efe77f78a
188
py
Python
analysis/constants.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-08-31T07:16:40.000Z
2018-08-31T07:16:40.000Z
analysis/constants.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
null
null
null
analysis/constants.py
yashpatel5400/anonychain
921804832839f3639477cfc441f138bc2f5ad685
[ "MIT" ]
1
2018-07-01T18:03:01.000Z
2018-07-01T18:03:01.000Z
""" __author__ = Yash Patel __name__ = constants.py __description__ = List of constants """ from matplotlib import colors as mcolors colors = list(mcolors.CSS4_COLORS.values())
20.888889
43
0.728723
5ba2a765e060520e8f6aa2eee894db36657c8b69
3,054
py
Python
SVM/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2018-04-25T18:00:28.000Z
2018-08-08T09:39:18.000Z
SVM/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
null
null
null
SVM/src/test.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2019-03-03T02:55:48.000Z
2021-01-21T04:50:46.000Z
# Conventional Machine Learning Algorithms # Test script for Class of "SVM". # Author: Qixun Qu # Create on: 2018/03/24 # Modify on: 2018/04/10 # ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # $$$$ .$...
27.763636
67
0.673215
5bea6531ca953c9bab6edf6790eded3840a0a4da
476
py
Python
exercises/es/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_01_02_03.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): import spacy.tokens import spacy.lang.es assert isinstance( nlp, spacy.lang.es.Spanish ), "El objeto nlp debería ser un instance de la clase de español." assert isinstance( doc, spacy.tokens.Doc ), "¿Procesaste el texto con el objeto nlp para crear un doc?" asser...
34
84
0.678571
7507819f94658e7b4dfc57e2cbec8afc75301a83
1,260
py
Python
Beginner Algorithmen/InsertionSort/InsertionSort.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Beginner Algorithmen/InsertionSort/InsertionSort.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
Beginner Algorithmen/InsertionSort/InsertionSort.py
NiclasDev63/Algorithmen
64c24d0501f9e12ea9be6ae4fa946ad8a40134f6
[ "MIT" ]
null
null
null
""" Anfang des Algorithmus """ def insertionSort(list): # n = Länge der übergebenen Liste n = len(list) # erste Schleife # startet bei 1 und geht bis n-1 for i in range(1, n): # ist das aktuelle Element, welches mit seinem Vorgänger verglichen wird aktue...
24.230769
117
0.637302
3481eb40c67fdc5bf009f58d14885fca39323a11
2,819
py
Python
2020-10~12/2020-12-13-python/k-means.py
zhoukekestar/drafts
e4bbe71a941b30e709d661822ba29a2fd08e6d8e
[ "MIT" ]
1
2018-04-15T14:58:24.000Z
2018-04-15T14:58:24.000Z
2020-10~12/2020-12-13-python/k-means.py
zhoukekestar/drafts
e4bbe71a941b30e709d661822ba29a2fd08e6d8e
[ "MIT" ]
null
null
null
2020-10~12/2020-12-13-python/k-means.py
zhoukekestar/drafts
e4bbe71a941b30e709d661822ba29a2fd08e6d8e
[ "MIT" ]
3
2020-03-24T09:20:19.000Z
2020-11-19T02:21:37.000Z
import matplotlib.pyplot as plt import numpy as np import random pointsA = np.random.normal(loc=[40, 60], scale=15, size=[200, 2]) plt.scatter(pointsA.T[0], pointsA.T[1], marker='o', label="A") pointsB = np.random.normal(loc=[80, 100], scale=12, size=[100, 2]) plt.scatter(pointsB.T[0], pointsB.T[1], marker='^', labe...
23.689076
83
0.564385
9432f7f53e5103af575e49eac410ac3ed76c27d1
3,673
py
Python
data/selenium_ubuntu_tiku.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
data/selenium_ubuntu_tiku.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
data/selenium_ubuntu_tiku.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 学习关键字: pip3 install selenium 安装selenium selenium 保存iframe中文 selenium js """ from selenium import webdriver from storage import baidu_cloud as bdc from time import sleep from lxml import etree import csv '''一、设置浏览器参数并打开一个新的浏览器窗口 sudo mv chromedriver /usr/bin/ 移动到/usr/bin/...
40.811111
187
0.680643
94625f2fdfb42ca1670dff2659f91ba20f594072
1,394
py
Python
0-notes/job-search/Cracking the Coding Interview/C01ArraysStrings/python/1.7-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C01ArraysStrings/python/1.7-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C01ArraysStrings/python/1.7-answer.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Rotate Matrix # Given an image represented by an N x N matrix, where each pixel in the image is represented by an integer, # write a method to rotate the image by 90 degrees. Can you do this in place? # https://github.com/avidLearnerInProgress/CTCI-solutions/blob/master/Chapter%201%20-%20Arrays%20and%20Strings...
41
143
0.620516
849bba7e5349c6dad530923d3dbe36b5a8b2372e
330
py
Python
code/examples/ServoSetAngle.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
2
2019-09-25T13:39:22.000Z
2019-09-26T10:06:13.000Z
code/examples/ServoSetAngle.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
44
2019-09-25T14:35:48.000Z
2021-08-20T17:26:12.000Z
code/examples/ServoSetAngle.py
SaschaMzH/hucon
830b6c5e21c2c7316c61e8afdf708066374b9b62
[ "BSD-3-Clause" ]
8
2019-09-25T13:53:07.000Z
2022-02-24T19:23:44.000Z
""" Move servo to angle. Copyright (C) 2019 Basler AG All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. """ from hucon import Servo servo = None print('Set the servo to 90 degrees.') servo = Servo(2) servo.set_...
18.333333
65
0.70303
f3cd1709804588aff0315a662844946c708606ec
1,689
py
Python
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/connectors/rabbitmq.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/connectors/rabbitmq.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-surface/src/watchmen_pipeline_surface/connectors/rabbitmq.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from asyncio import ensure_future, get_event_loop from json import loads from logging import getLogger from watchmen_model.common import SettingsModel from watchmen_model.pipeline_kernel import PipelineTriggerDataWithPAT from .handler import handle_trigger_data log = getLogger(__name__) class RabbitmqSettings(Setti...
25.984615
104
0.777975
edd19cfd13031f575f8b368702ffd2dcb66e257f
227
py
Python
ParsingAndScraping/wink/wink_main.py
KazuruK/FilmGetter
fd84bcaddf17d4b89ad6e5d27095535346c5f4a9
[ "BSD-3-Clause" ]
1
2021-06-23T13:06:11.000Z
2021-06-23T13:06:11.000Z
ParsingAndScraping/wink/wink_main.py
KazuruK/FilmGetter
fd84bcaddf17d4b89ad6e5d27095535346c5f4a9
[ "BSD-3-Clause" ]
1
2021-06-23T21:21:52.000Z
2021-06-23T21:21:52.000Z
ParsingAndScraping/wink/wink_main.py
KazuruK/FilmGetter
fd84bcaddf17d4b89ad6e5d27095535346c5f4a9
[ "BSD-3-Clause" ]
1
2021-06-28T19:14:19.000Z
2021-06-28T19:14:19.000Z
from ParsingAndScraping.wink.parser import wink_parser def main(): film_name = input("Введите название фильма ") print(wink_parser(film_name)) return wink_parser(film_name) if __name__ == "__main__": main()
18.916667
54
0.722467
b626fdcce8339128f6ba5617960153fa333531ad
402
py
Python
Problems/Two Pointers/easy/BackSpaceStringCompare/test_back_space_string_compare.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Two Pointers/easy/BackSpaceStringCompare/test_back_space_string_compare.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Two Pointers/easy/BackSpaceStringCompare/test_back_space_string_compare.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from unittest import TestCase from back_space_string_compare import backspaceCompare class Test(TestCase): def test_backspace_compare(self): self.assertEqual(backspaceCompare("ab#c", "ad#c"), True) self.assertEqual(backspaceCompare("ab##", "c#d#"), True) self.assertEqual(backspaceCompare("a...
44.666667
64
0.699005
1e29b81a459665af799e1096ceda92cf1e9b0684
273
py
Python
src/python/py-accepted/339A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
src/python/py-accepted/339A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
src/python/py-accepted/339A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 339A # Created on : 2019-01-14 21:51:12 def Main(): l = [int(x) for x in input().split('+')] l.sort() s = '' for i in l: s = s + '+' + str(i) s = s.lstrip('+') print(s) if __name__ == '__main__': Main()
14.368421
44
0.450549
1e68118c4c65c7607bb4ca99f48e4ed852464134
8,468
py
Python
menucard/models.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
1
2021-01-23T21:42:10.000Z
2021-01-23T21:42:10.000Z
menucard/models.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
menucard/models.py
baniasbaabe/happy-qr
bf44ac19306ea6405cc7c9a100e6f83afca125b4
[ "MIT" ]
null
null
null
from django.db import models from crm.models import Kunde from phonenumber_field.modelfields import PhoneNumberField # Create your models here. class Vorspeise(models.Model): """ Eine Klasse zur Repräsentation einer Vorspeise ... Attributes ---------- name : charfield ...
31.834586
94
0.628956
1e7286c7458d52f32b8b4803610751ee35ee5454
792
py
Python
ISTp/2013/IVANOV_S_E/task_6_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2013/IVANOV_S_E/task_6_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
ISTp/2013/IVANOV_S_E/task_6_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 6. # Создайте игру, в которой компьютер загадывает название одного из семи городов России, имеющих действующий метрополитен, а игрок должен его угадать. # Ivanov S. E. # 21.09.2016 import random CITY_LIST = ("Москва", "Санкт-Петербург", "Нижний Новгород", "Новосибирск", "Самара", "...
33
151
0.732323
7807d0d45016ba1a28ba5f48bfef9de845abd2e9
6,480
py
Python
module/classification_package/interpreter_embeding.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
module/classification_package/interpreter_embeding.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
module/classification_package/interpreter_embeding.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import numpy as np import logging import random import torch import torchvision.models as models from torchvision import transforms from torch import nn from PIL import Image from module.classification_package.src.model import EmbeddingModel class EmbeddingClassifier: def __init__(self, model_path, data_set_path...
38.802395
114
0.576389
1582bbac79e3d0a9c4997185918a8b30ae2c0f80
225
py
Python
R3/01led.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
R3/01led.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
R3/01led.py
DockerComposeFiles/Arm_2
b5888fe62edd6450da4139de02e145513a078697
[ "MIT" ]
null
null
null
#!/usr/bin/python import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setup(25, GPIO.OUT) for i in range(10): GPIO.output(25, 1) time.sleep(0.2) GPIO.output(25, 0) time.sleep(0.2) GPIO.cleanup()
16.071429
24
0.662222
ec5eafbd3ce2b9fdc781a426bdef5e1d04b1d57e
2,600
py
Python
tests/rbac/common/role/create_role_helper.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
tests/rbac/common/role/create_role_helper.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
1
2018-09-10T19:12:31.000Z
2018-09-10T19:12:31.000Z
tests/rbac/common/role/create_role_helper.py
akgunkel/sawtooth-next-directory
a88833033ab30e9091479a38947f04c5e396ca46
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
33.333333
86
0.665769
ec6609864993083b8956dd0d8c55e8581bab61e8
1,079
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/structural/test_proxy.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/structural/test_proxy.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/tests/structural/test_proxy.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
import sys import unittest from io import StringIO from patterns.structural.proxy import Proxy, client class ProxyTest(unittest.TestCase): @classmethod def setUpClass(cls): """ Class scope setup. """ cls.proxy = Proxy() def setUp(cls): """ Function/test case scope setup. """ ...
28.394737
63
0.608897
da67ed6e627552d4c636d3bc1d14fc04a7d73488
2,145
py
Python
python/advanced_sw/res_code/fin_wall_d.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/res_code/fin_wall_d.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/res_code/fin_wall_d.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
## https://www.pexels.com/photo/68147 ##url_s = " https://www.pexels.com/photo/753626" # url_s = "https://www.pexels.com/photo/33109" ## https://www.pexels.com/photo/87452/ import urllib.request, urllib.parse, urllib.error from bs4 import BeautifulSoup import ssl import re import sqlite3 import requests # Ignore SSL ...
24.655172
86
0.661072
005c8308c66f9932a6dc78405eb395b7dfb8b1f1
1,042
py
Python
books/PythonAutomate/scheduling/datetime_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/scheduling/datetime_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/scheduling/datetime_sample.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""datetime_sample.py datetime 모듈 활용 """ import time from datetime import datetime, timedelta # 현재 시간 출력 print(f"현재시간: {datetime.now()}") # 지정한 시간 출력 print(f"지정한 시간: {datetime(2019, 2, 27, 11, 10, 49, 0)}") # 시간 속성 값 접근 dt = datetime.now() print(f"년: {dt.year}, 월: {dt.month}, 일: {dt.day}") print(f"시: {dt.hour}, 분: {...
24.809524
71
0.670825
9713a03cd15003191b76ea160dcc26fc9f90454f
334
py
Python
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/82_criar_pacotes_e_modulos/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/82_criar_pacotes_e_modulos/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao3-Python-Intermediario-Programacao-Procedural/82_criar_pacotes_e_modulos/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
# import vendas.calcula_preco from vendas import calcula_preco from vendas.formata import preco as preco2 preco = 49.99 preco_com_aumento = calcula_preco.aumento(preco, 15, formata=True) print(preco_com_aumento) preco_com_reducao = calcula_preco.reducao(preco, 15, formata=True) print(preco_com_reducao) print(preco2...
23.857143
66
0.814371
a9ef1ec437060e84d89f1444035e775686f0c37a
37
py
Python
Crypto/HappyBirthday/src/flag.py
TheReturnOfTheKing/ACTF_Junior_2019
73635a8ea3f741d50153f01ca0ff9ca1a8e4db93
[ "MIT" ]
6
2019-02-27T08:40:05.000Z
2021-01-29T10:04:03.000Z
Crypto/HappyBirthday/src/flag.py
CSUwangj/ACTF_Junior_2019
a2c0ee378ed02c5353176df3490f717f7d04785f
[ "MIT" ]
null
null
null
Crypto/HappyBirthday/src/flag.py
CSUwangj/ACTF_Junior_2019
a2c0ee378ed02c5353176df3490f717f7d04785f
[ "MIT" ]
3
2019-02-27T08:40:15.000Z
2019-03-03T06:07:45.000Z
flag = r"ACTF{Ah_Ha_birthday_attack}"
37
37
0.810811
e7e1b1f88db13bda401f6891e45938ee474a483f
7,406
py
Python
project/views/widget.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/views/widget.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/views/widget.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import json from flask import flash, redirect, render_template, request, url_for from flask_babelex import gettext from flask_security import current_user from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.sql import func from project import app, db from project.access import ( admin_unit_suggestions_enab...
32.915556
102
0.680664
99baf693d18cde1326c3d4b3155b4b89d8caca14
9,119
py
Python
lbry/lbry/blob_exchange/serialization.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
null
null
null
lbry/lbry/blob_exchange/serialization.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/lbry/blob_exchange/serialization.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
import typing import json import logging log = logging.getLogger(__name__) class BlobMessage: key = '' def to_dict(self) -> typing.Dict: raise NotImplementedError() class BlobPriceRequest(BlobMessage): key = 'blob_data_payment_rate' def __init__(self, blob_data_payment_rate: float, **kwar...
32.109155
118
0.646343
99c06292685d813a087dc90ae8228ed76514d09c
717
py
Python
klufweb/static_page/models.py
mseln/klufweb
a785d44415fde933723220fab7f18f2ae4fd748d
[ "Apache-2.0" ]
null
null
null
klufweb/static_page/models.py
mseln/klufweb
a785d44415fde933723220fab7f18f2ae4fd748d
[ "Apache-2.0" ]
5
2015-05-22T12:05:54.000Z
2015-05-22T12:09:06.000Z
klufweb/static_page/models.py
mseln/klufweb
a785d44415fde933723220fab7f18f2ae4fd748d
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib import admin from ckeditor.fields import RichTextField from django.template.defaultfilters import slugify import datetime, time class StaticPage(models.Model): objects = models.Manager() slug = models.SlugField() page = models.CharField(max_length=200) ...
23.9
53
0.702929
99d33400535f65630a362cac85ffefb3918781ac
429
py
Python
model/topoml_util/test_rasterization.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/test_rasterization.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/test_rasterization.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
import unittest from rasterio import features from shapely import wkt class TestRasterize(unittest.TestCase): def test_first(self): size = 20 first = "POLYGON(({0} {0}, {0} -{0}, -{0} -{0}, -{0} {0}, {0} {0}))".format(size) geo_interfaces = [wkt.loads(first).__geo_interface__] ras...
30.642857
89
0.636364
99d4b7fafcecd00d723bfac9334d7a80db8c0a71
6,453
py
Python
project/cli/scrape_recycling.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
project/cli/scrape_recycling.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
project/cli/scrape_recycling.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
import datetime import requests from bs4 import BeautifulSoup from ics import Calendar from sqlalchemy.sql import and_, not_ from sqlalchemy.sql.expression import func from project import app, db from project.dateutils import berlin_tz, get_now from project.models import Place, RecyclingEvent, RecyclingStreet from pr...
30.154206
112
0.628855
6b5eaf9802027fce62e5fda303fb652854a99cda
92
py
Python
2015/04/cancer-risk-factors/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/04/cancer-risk-factors/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/04/cancer-risk-factors/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 = '1LcCtuMnUwp1OhGta1Q_SaDaa28joQCqT1qHx9h9Nz-A'
23
68
0.836957
d42d5a2fb8ef4d73d10f18fcfff40cac0b0fc8d4
1,018
py
Python
m0leCon/2021/Quals/crypto/Giant_log/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
m0leCon/2021/Quals/crypto/Giant_log/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
m0leCon/2021/Quals/crypto/Giant_log/chall.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import random from secret import flag, fast_exp import signal p = 0x83f39daf527c6cf6360999dc47c4f0944ca1a67858a11bd915ee337f8897f36eff98355d7c35c2accdf4555b03a9552b4bf400915320ccd0ba60b0cb7fcad723 g = 0x15a5f7dec38869e064dd933e23c64f785492854fbe8a6e919d991472ec68edf035eef8c15660d1f059ca1600ee99c7f91a760817d7a3619a3e93...
22.130435
136
0.654224
d8a1a0e5b68ea0c0f87c3fce6f0f0b89ff4d6ba5
1,384
py
Python
tests/test_performance.py
Theta-Dev/Spotify-Gender-Ex
4e5360f115cb3302397b8e1ad1b11ad96b887ad2
[ "MIT" ]
1
2022-02-05T16:40:13.000Z
2022-02-05T16:40:13.000Z
tests/test_performance.py
Theta-Dev/Spotify-Gender-Ex
4e5360f115cb3302397b8e1ad1b11ad96b887ad2
[ "MIT" ]
31
2021-06-17T11:59:33.000Z
2022-03-19T07:05:18.000Z
tests/test_performance.py
Theta-Dev/Spotify-Gender-Ex
4e5360f115cb3302397b8e1ad1b11ad96b887ad2
[ "MIT" ]
null
null
null
import unittest import os import time import tests from spotify_gender_ex import replacement_table DIR_PERFORMANCE = os.path.join(tests.DIR_TESTFILES, 'performance') @unittest.skipUnless(tests.TEST_PERFORMANCE, 'performance testing skipped') class PerformanceTest(unittest.TestCase): def _performance_test(self, f...
30.755556
84
0.645231
2b58cffff08e8da1ee8648c97a8eb7ea3e7ef308
5,360
py
Python
database.py
LikeToAccess/RCB
37510facf935a9a8559bdd85ac86b292b5764639
[ "MIT" ]
1
2022-02-02T18:08:10.000Z
2022-02-02T18:08:10.000Z
database.py
LikeToAccess/RCB
37510facf935a9a8559bdd85ac86b292b5764639
[ "MIT" ]
null
null
null
database.py
LikeToAccess/RCB
37510facf935a9a8559bdd85ac86b292b5764639
[ "MIT" ]
null
null
null
import sqlite3 import json from datetime import datetime import mmap import sys import time from tqdm import tqdm from settings import * timeframe = sys.argv[1:][0] if sys.argv[1:] else "RC_2008-01.json" sql_transaction = [] def acceptable(data): # Comment contains more than 50 words or less than 1 if len(data.sp...
25.769231
101
0.653731
5a98be44a9ec4dfe9d772dd48293d0e086ac5289
1,139
py
Python
skimind/kernel/gFunctions/datetime.py
NathBangwa/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
1
2020-11-13T18:30:47.000Z
2020-11-13T18:30:47.000Z
skimind/kernel/gFunctions/datetime.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
5
2020-11-13T18:16:48.000Z
2021-09-08T01:04:59.000Z
skimind/kernel/gFunctions/datetime.py
nathanbangwa243/SkimindFoot
8ae3a00074c56dd981fbfdab30e29898ddcaf6be
[ "MIT" ]
null
null
null
#-*-conding: utf-8 -*- """""" # tools import pandas as pd def now(): """ acces a l'heure et a la date actuelle :return: str 'date time' """ response = pd.datetime.today() response = f'{response.day}-{response.month}-{response.year} {response.hour}:{response....
20.709091
111
0.587357
8fb7540168ca799f4a32d9e42924d482ff1a2936
5,857
py
Python
pythonProj/FZPython/pyquant/managers/data_manager.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/managers/data_manager.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/pyquant/managers/data_manager.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
#!/usr/bin/env python # coding: utf8 from multiprocessing import (Pool, Process) import pyquant.libs.tusharelib as tusharelib from pyquant.libs.mysqllib import * from pyquant.db_models import * from pyquant.libs.loglib import log import time import threading from multiprocessing import Process, Pool import os def upd...
26.147321
99
0.652211
8f7ec7683a977c9e9633b8f4658a7666546bed1c
44,629
py
Python
bot.py
immchl/JssSelf
920ebedb488399f4e402feb0d256ee44f373824d
[ "Apache-2.0" ]
null
null
null
bot.py
immchl/JssSelf
920ebedb488399f4e402feb0d256ee44f373824d
[ "Apache-2.0" ]
null
null
null
bot.py
immchl/JssSelf
920ebedb488399f4e402feb0d256ee44f373824d
[ "Apache-2.0" ]
1
2021-07-20T11:04:39.000Z
2021-07-20T11:04:39.000Z
from pyrogram import Client, Filters, MessageHandler from pyrogram.api import functions, types import redis, psutil, random, time, os, requests, configparser, re from lxml import html from ssh import ssh import jdatetime #BY JESUS #Version 1 #in the name of "mame" config = configparser.ConfigParser() config.read("c...
29.188358
185
0.59849
f142501d52734000c10a44d94342f07cd8b75c5a
1,791
py
Python
Category_Generator.py
xyu6/Walledu
9ed3f941970d1d3048f69e252285f483674a45cf
[ "MIT" ]
null
null
null
Category_Generator.py
xyu6/Walledu
9ed3f941970d1d3048f69e252285f483674a45cf
[ "MIT" ]
null
null
null
Category_Generator.py
xyu6/Walledu
9ed3f941970d1d3048f69e252285f483674a45cf
[ "MIT" ]
null
null
null
#!/usr/bin/python #coding:utf-8 import os import re import string import linecache import shutil #Get file name from given directory directoryPath = os.getcwd() + "\\docs" file_extension = ".md" #Get file name from given directory def productListGen(productCategory): urlList = [] pattern = re.compile(prod...
33.166667
93
0.527638
2d1c5d748792bdbe73c0f7d22bfa99f893eea907
34
py
Python
pages/extensions/markdown_toc_patch/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
300
2015-12-09T20:35:37.000Z
2019-07-16T06:41:29.000Z
pages/extensions/markdown_toc_patch/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
2,099
2019-07-16T13:24:27.000Z
2022-03-26T12:31:51.000Z
pages/extensions/markdown_toc_patch/__init__.py
ericandrewlewis/amp.dev
cf8e3d34a5582696ead97563c0809036804ab5c7
[ "Apache-2.0" ]
543
2019-07-18T09:06:14.000Z
2022-03-31T02:43:10.000Z
from .markdown_toc_patch import *
17
33
0.823529
77ad87391ff91042a9d270cc3f2f5f640f4dd9f2
4,112
py
Python
src/IdelOption.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
null
null
null
src/IdelOption.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
9
2019-07-15T08:49:00.000Z
2019-08-28T15:05:08.000Z
src/IdelOption.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
null
null
null
import random import re import items class Option: def desciption(player): action = str(input(">Do you want to look around, walk out of this room, view your stats, heal you or open you inventory? \n")) action = re.sub("\n", "", action) action = re.sub("\s", "", action) if action...
36.714286
136
0.548152
77f468738e7ca7eb3603e10cb63b5d7b288068af
205
py
Python
Txt.BoardGame/tools/compileCommands.py
okard/depot
ac10c2388799a76bfabf9ddf20b11cd2c516bcab
[ "MIT" ]
null
null
null
Txt.BoardGame/tools/compileCommands.py
okard/depot
ac10c2388799a76bfabf9ddf20b11cd2c516bcab
[ "MIT" ]
null
null
null
Txt.BoardGame/tools/compileCommands.py
okard/depot
ac10c2388799a76bfabf9ddf20b11cd2c516bcab
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Commands: # TOKEN;1;5;T;1 TOKEN at '1,5' direction 'top' and id '1' # BOARD;10;10 Board with 10x10 fields # MARKER;10;10;black;Text Marker in black on 10,20 with 'text'
14.642857
63
0.658537
7af2f3b502b60f011464bacaf738e9a18a3b89f1
8,274
py
Python
crowdbike/sensors.py
theendlessriver13/Crowdbike
eb63207d97a2e74ef69ec941efa15756bbfa0fea
[ "MIT" ]
null
null
null
crowdbike/sensors.py
theendlessriver13/Crowdbike
eb63207d97a2e74ef69ec941efa15756bbfa0fea
[ "MIT" ]
6
2021-07-19T17:31:55.000Z
2022-03-31T14:26:28.000Z
crowdbike/sensors.py
theendlessriver13/Crowdbike
eb63207d97a2e74ef69ec941efa15756bbfa0fea
[ "MIT" ]
null
null
null
import logging import threading import time from typing import Optional from typing import Union import adafruit_dht import adafruit_gps import board import serial from sensirion_i2c_driver import I2cConnection from sensirion_i2c_driver.linux_i2c_transceiver import LinuxI2cTransceiver from sensirion_i2c_sht.sht3x impo...
34.190083
79
0.519821
d915ac11aa2c2b08b5aed0c8b9c6eeed1ec080cd
2,204
py
Python
modules/ui/mainwindow.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/ui/mainwindow.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
modules/ui/mainwindow.py
cloud441/Procerfa
7472aeecc4eb3003e2e0f09bb0ae71f1b33e9ccf
[ "MIT" ]
null
null
null
import os from .qt_ui import Ui_Form from pathlib import Path from PyQt5 import QtWidgets as qtw from PyQt5 import QtCore as qtc from PyQt5.QtWidgets import QDialog, QApplication, QFileDialog from modules.cerfaReader import CerfaReader from modules import config from modules.cerfaWriter import CerfaWriter class MainWi...
31.942029
137
0.651996
eb7290a0861ce99c3347ac1135d9285d4a819f57
6,223
py
Python
src/config_db/ska_sdp_config/deploy.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
2
2019-07-15T09:49:34.000Z
2019-10-14T16:04:17.000Z
src/config_db/ska_sdp_config/deploy.py
rtobar/sdp-prototype
9f1527b884bf80daa509a7fe3722160c77260f4f
[ "BSD-3-Clause" ]
17
2019-07-15T14:51:50.000Z
2021-06-02T00:29:43.000Z
src/config_db/ska_sdp_config/deploy.py
ska-telescope/sdp-configuration-prototype
8c6cbda04a83b0e16987019406ed6ec7e1058a31
[ "BSD-3-Clause" ]
1
2019-10-10T08:16:48.000Z
2019-10-10T08:16:48.000Z
""" Module for applying deployments. This is temporary - clearly the configuration database back-end should not handle creating containers and processes itself. """ import subprocess import time import re import tempfile import json import threading import queue import kubernetes from .entity import Deployment # Ma...
30.208738
76
0.609674
ebcb8e4cde54482b1c6ef203a195f859e0d3bb03
745
py
Python
OCore/shell/init.py
winnyboy5/Boot_O
178ebc7e024b4c9ebf5bad83d2129ac6e3808502
[ "MIT" ]
null
null
null
OCore/shell/init.py
winnyboy5/Boot_O
178ebc7e024b4c9ebf5bad83d2129ac6e3808502
[ "MIT" ]
null
null
null
OCore/shell/init.py
winnyboy5/Boot_O
178ebc7e024b4c9ebf5bad83d2129ac6e3808502
[ "MIT" ]
null
null
null
import sys import os import subprocess # Takes first name and last name via command # line arguments and then display them # print("Output from Python") print("First name: " + sys.argv[1]) print("Last name: " + sys.argv[2]) if sys.argv[3] == 'true': routeString = ' --routing' else: routeString = '' com...
29.8
171
0.672483
ebdefdb8898b7e9c29e8635871ee60fa70a525bf
5,944
py
Python
Properties/API/O.O/objectO/FunctionMetrics.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/API/O.O/objectO/FunctionMetrics.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/API/O.O/objectO/FunctionMetrics.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
import understand import sys import MainMetrics db = MainMetrics.Metrics.DBlodb("/home/nazanin/cephDB.udb") class FunctionMetrics(MainMetrics.Metrics): def printCallPairs(self,ent): self.ent = ent lineString = '' ret = [] for ref in sorted(ent.refs("call", "", True), key=lambda ...
41.277778
534
0.54862
695c2084d754989be54f7bbd649b0a14e421c252
3,332
py
Python
src/visuanalytics/tests/analytics/transform/types/test_transform_sort.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_sort.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/tests/analytics/transform/types/test_transform_sort.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
import unittest from visuanalytics.tests.analytics.transform.transform_test_helper import prepare_test class TestTransformSort(unittest.TestCase): def setUp(self): self.data = { "test": ["Canada", "Argentina", "Cyprus", "Schweden", "Norway", "USA", "Germany", "United Kingdom", "Z"], ...
32.666667
117
0.428872
696c9d6071a6f222d4a4b3ff1a8d4450c5edc4ee
896
py
Python
Documentation/dump_bl.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
Documentation/dump_bl.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
Documentation/dump_bl.py
simonbredemeier/ds100bot
1318b32b818891f4bc6d24f12fcf0ceae898f8bd
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
"""Creates the dump of the Blacklist""" from xml.etree import ElementTree as ET from .dump import Dump from .generator import Generator class DumpBlacklist(Dump): def __init__(self, **kwargs): # pylint: disable=W0233 Generator.__init__(self, 'DS100-Daten-Dump Blacklist', de...
38.956522
98
0.643973
d671e9ef0ec41a6d94a935c97ea55ebb115b0dd0
908
py
Python
python/en/_matplotlib/gallery/lines_bars_and_markers/stem_plot.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/lines_bars_and_markers/stem_plot.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/lines_bars_and_markers/stem_plot.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ lines_bars_and_markers/stem_plot.py Matplotlib > Gallery > Lines, bars and markers > Stem plot https://matplotlib.org/gallery/lines_bars_and_markers/stem_plot.html#sphx-glr-gallery-lines-bars-and-markers-stem-plot-py """ import matplotlib.pyplot as plt import numpy a...
29.290323
121
0.664097
d6c1bd1029bc1e0175303f2473851e90e21ee86c
5,178
py
Python
test/test_npu/test_network_ops/test_group_norm.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_group_norm.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_group_norm.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.932331
90
0.578988
d6cba8ddac1ce425697d58b7f2e1e91b2ed9444a
669
py
Python
mecharaf-python-files/paint.py
Vicradon/Mecharaf
2f2dc91659e1904bf73825888febbadb1a44488f
[ "MIT" ]
null
null
null
mecharaf-python-files/paint.py
Vicradon/Mecharaf
2f2dc91659e1904bf73825888febbadb1a44488f
[ "MIT" ]
11
2020-09-13T04:32:08.000Z
2022-03-27T11:04:45.000Z
mecharaf-python-files/paint.py
Vicradon/Mecharaf
2f2dc91659e1904bf73825888febbadb1a44488f
[ "MIT" ]
null
null
null
from turtle import * def switchupdown(x = 0, y = 0): if pen()["pendown"]: end_fill() up() else: down() begin_fill() def changecolor(x=0, y=0): global colors colors = colors[1:]+colors[:1] color(colors[0]) def main(): global colors shape("turtle") resize...
18.583333
45
0.576981
ba5989e7b75ed4bad930eedeea54325e2671ff18
2,785
py
Python
python/tests/test_sbtab2html.py
derHahn/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
4
2015-02-20T09:20:10.000Z
2018-02-05T10:54:10.000Z
python/tests/test_sbtab2html.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
80
2018-04-13T13:46:24.000Z
2022-02-16T16:01:46.000Z
python/tests/test_sbtab2html.py
tlubitz/SBtab
da998eacc49f7f29d8168be366eb0c211c3adb5f
[ "MIT" ]
6
2018-06-06T19:55:32.000Z
2021-09-30T15:16:40.000Z
#!/usr/bin/env python import unittest import sys import os import copy sys.path.insert(0,os.path.join(os.path.dirname(__file__), '..')) import SBtab import misc class TestSBtabConversionToHTML(unittest.TestCase): def setUp(self): ''' setup SBtabTable class with files from test directory '...
34.382716
133
0.574147
ba9c4d038e7574fe0ecf9abfdecccbdd0b102141
20,389
py
Python
formelsammlung.py
hanslhansl/TUW-statistics-calculator1
1dfa449212531e61cbaf1c425d75d759061c9159
[ "MIT" ]
null
null
null
formelsammlung.py
hanslhansl/TUW-statistics-calculator1
1dfa449212531e61cbaf1c425d75d759061c9159
[ "MIT" ]
null
null
null
formelsammlung.py
hanslhansl/TUW-statistics-calculator1
1dfa449212531e61cbaf1c425d75d759061c9159
[ "MIT" ]
null
null
null
import PMW as PMW import sys import inspect import tkinter as tk from tkinter import ttk import tkinter.font as font import Funktionen import tkintertable as tkt import time import numpy import types #Klasse für das Fenster class main(tk.Tk): def __init__(self): self.distributions = {"Bi...
42.388773
183
0.570504
244707432b311fc336ac167aa96c094400a97a78
23,054
py
Python
bolt/discord/api.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/api.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/api.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
""" This module provides a class that implements the full spec of the Discord API https://discordapp.com/developers/docs/ Contributors: - Patrick Hennessy """ import ujson as json import gevent import requests import time import logging def rate_limit(): def decorate(callback): callba...
31.624143
162
0.594647
3038a05336f1d5d2608f73895d9c547b1f1cc6cb
469
py
Python
Packs/ThreatIntelReports/Scripts/UnpublishThreatIntelReport/UnpublishThreatIntelReport.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ThreatIntelReports/Scripts/UnpublishThreatIntelReport/UnpublishThreatIntelReport.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ThreatIntelReports/Scripts/UnpublishThreatIntelReport/UnpublishThreatIntelReport.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 def unpublish(): object_id = demisto.getArg('object.id') execute_command( 'setThreatIntelReport', { 'id': object_id, 'xsoarReadOnlyRoles': '', 'reportstatus': 'Draft'...
20.391304
55
0.567164
061bc1859f7af88aa7387b03c426571679a68168
731
py
Python
Hackerrank_problems/Cats and a Mouse/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Hackerrank_problems/Cats and a Mouse/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Hackerrank_problems/Cats and a Mouse/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
import math import os import random import re import sys def catAndMouse(x, y, z): if(abs(z-x)==abs(z-y)): # checking whether both the cats reach at the same time or not return "Mouse C" # if yes, returns Mouse C elif(abs(z-x)>abs(z-y)): # checking if the cat B reaches earlier or Cat A ...
21.5
92
0.559508
23322550443b8c162ad6a6dbeea6208436f6cdb1
256
py
Python
BITs/2014/Baybulatova_K_V/task2_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_K_V/task2_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Baybulatova_K_V/task2_3.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 2. Вариант 3 #Программа, выводящая любимое высказывание, автором которого является Нострадамус #Байбулатова К.В. #13.03.2016 print("Жизнь - это череда выборов\n") print("\t\t\t\t\t\t\t\t\tt\t\t\t Нострадамус\n") input(" Нажмите Enter для выхода")
28.444444
81
0.742188
88f980aa48a4863999d5c0ddea8a474c0d1a0062
2,637
py
Python
pyScript/custom_src/ScriptsListWidget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/ScriptsListWidget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/custom_src/ScriptsListWidget.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
from PySide2.QtWidgets import QWidget, QHBoxLayout, QVBoxLayout, QLineEdit, QMessageBox from PySide2.QtCore import Qt import json from custom_src.ScriptList_ScriptWidget import ScriptsList_ScriptWidget from custom_src.GlobalAccess import GlobalStorage class ScriptsListWidget(QWidget): def __init__(self, main_wi...
33.379747
115
0.662874
000544b35807fabe2246b39782efc7e06e1ba98c
3,992
py
Python
scripts/component_graph/test/server/graph/test_component_graph.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
3
2020-08-02T04:46:18.000Z
2020-08-07T10:10:53.000Z
scripts/component_graph/test/server/graph/test_component_graph.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
scripts/component_graph/test/server/graph/test_component_graph.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
1
2020-08-07T10:11:49.000Z
2020-08-07T10:11:49.000Z
#!/usr/bin/env python3 # Copyright 2019 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from server.graph.component_graph import * from server.graph.component_link import * from server.graph.component_node i...
40.323232
80
0.616232
cc58b844bfa3120ee56a6ed5e11f51d31cad257b
2,480
py
Python
code/2/fsm.py
pwang13/AutomatedSE_Coursework
b416672d9756fcc60367143b989d29b0c905cfc3
[ "Unlicense" ]
null
null
null
code/2/fsm.py
pwang13/AutomatedSE_Coursework
b416672d9756fcc60367143b989d29b0c905cfc3
[ "Unlicense" ]
null
null
null
code/2/fsm.py
pwang13/AutomatedSE_Coursework
b416672d9756fcc60367143b989d29b0c905cfc3
[ "Unlicense" ]
null
null
null
#!/usr/bin/python from __future__ import division,print_function import sys,random,os sys.dont_write_bytecode=True # usage: # python fsm.py 21083 # for a long-ish run # python fsm.py 1 # for a short run #---------------------------------------------- def fsm0(): m = Machine() entry = m.state("entry") ...
24.8
60
0.5125
cc8b3cb4f5ff9a5a19bcfb58ecafc0ba3fae2f6f
2,515
py
Python
AP_SS16/402/python/old/data.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
AP_SS16/402/python/old/data.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
AP_SS16/402/python/old/data.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
from numpy import array, pi from uncertainties import ufloat from uncertainties.unumpy import uarray import numpy as np import uncertainties.unumpy as unp L = 1.75e-3 C1 = 22.0e-9 C2 = 9.39e-9 std_dev_frequenzeinstellung = 60 std_dev_wellenwiderstand = 5 def calc_std_dev_oszilloskop(werte): """Generiert Standar...
39.296875
180
0.775348
cca7122a6f3fca1678e8dded67202f8fe767c900
2,067
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_stp_port.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_stp_port.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/netvisor/test_pn_stp_port.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright: (c) 2018, Pluribus Networks # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import patch from ansible_coll...
43.0625
137
0.694243
aec0b4b1011ff5425818841d7ff786bf77405f10
72,355
py
Python
plugins/tff_backend/consts/hoster.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
null
null
null
plugins/tff_backend/consts/hoster.py
threefoldfoundation/app_backend
b3cea2a3ff9e10efcc90d3d6e5e8e46b9e84312a
[ "Apache-2.0" ]
178
2017-08-02T12:58:06.000Z
2017-12-20T15:01:12.000Z
plugins/tff_backend/consts/hoster.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...
2,679.814815
71,565
0.654868
4e13b6055b9a7ce295439487d52bfc0b127e0734
2,311
py
Python
oop/employees.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
oop/employees.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
oop/employees.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
import logging logging.basicConfig(filename='test.log', level=logging.DEBUG,format='%(asctime)s:%(levelname)s:%(message)s') class Team: def __init__(self,company,employees): self.company = company self.employees = employees def print_employees(self): print("Employees at {}:".format(sel...
26.563218
108
0.634357
9d87c82d118e5c307fc56c06288695dd9d58a51f
1,284
py
Python
Computerorietierte_Mathematik/U2/U2_A3.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
1
2019-10-29T08:21:41.000Z
2019-10-29T08:21:41.000Z
Computerorietierte_Mathematik/U2/U2_A3.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
Computerorietierte_Mathematik/U2/U2_A3.py
qiaw99/Data-Structure
3b1cdce96d4f35329ccfec29c03de57378ef0552
[ "MIT" ]
null
null
null
''' import pysnooper @pysnooper.snoop() ''' __author__ = "Qianli und Nazar" __copyright__ = "Copyright (c) 2019 qiaw99" # https://github.com/qiaw99/WS2019-20/blob/master/LICENSE # Aufgabe 3 a) def fixedpoint(x): temp = str(x) result = None # Check whether there is a coma in the input if('.' in temp): # Get the ...
21.4
75
0.619159
9dae0347688a1ff7cca8d82f86d8762213d23b49
8,693
py
Python
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/driver/lite_driver.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/driver/lite_driver.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/driver/lite_driver.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2020 Huawei Device 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 # # Unle...
34.359684
77
0.615208
9dc6fee0b92f11ebe9574bde619d0b829ebd419e
32,745
py
Python
app/main/views.py
kalbe09/Kicards
ad64cfa808307b10f98f95dbb8cf0350995c3afd
[ "MIT" ]
null
null
null
app/main/views.py
kalbe09/Kicards
ad64cfa808307b10f98f95dbb8cf0350995c3afd
[ "MIT" ]
null
null
null
app/main/views.py
kalbe09/Kicards
ad64cfa808307b10f98f95dbb8cf0350995c3afd
[ "MIT" ]
null
null
null
from flask import render_template, redirect, url_for, abort, flash, jsonify, make_response, request, current_app, session from flask_login import login_required, current_user from flask_sqlalchemy import get_debug_queries from ..models.users import User from ..models.category import Category from ..models.flashcard_col...
35.13412
146
0.575844
d181fc07370f0b13d406a77528d162e36c7a3a5e
40
py
Python
information/__init__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
information/__init__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
information/__init__.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
from ._ip_address import get_ip_address
20
39
0.875
d18f7c8457c9af9084905ea46609a79cede95d01
409
py
Python
pyScript/pyScript.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/pyScript.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
pyScript/pyScript.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
import sys from custom_src.StartupDialog import StartupDialog from custom_src.MainWindow import MainWindow from PySide2.QtWidgets import QApplication if __name__ == '__main__': app = QApplication(sys.argv) sw = StartupDialog() sw.exec_() if not sw.editor_startup_configuration == {}: mw = Mai...
24.058824
56
0.716381
ee3db68256f877c3bcf1289e3d90a60f9f348222
729
py
Python
Packs/Looker/Integrations/Looker/Looker_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Looker/Integrations/Looker/Looker_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Looker/Integrations/Looker/Looker_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto def test_parse_filters_arg(mocker): mocker.patch.object(demisto, 'params', return_value={'url': ''}) from Looker import parse_filters_arg assert parse_filters_arg('') is None assert parse_filters_arg('e=f') == {'e': 'f'} assert parse_filters_arg('e=f, g') == {'e': '...
34.714286
80
0.588477
c9b81ba623de6ed760499a88ebf1521fae3b0c65
877
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex16_print_tower.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex16_print_tower.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex16_print_tower.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def print_tower(height): draw_top(height) draw_slices(height) draw_bottom(height) def draw_top(height): print(" " * (height + 1) + "|") def draw_bottom(height): print("-" * ((height + 1) * 2 + 1)) def...
18.270833
71
0.583808
4e42f51c11732ee99414d7112dd300ff9c7d2956
4,545
py
Python
scraper/wiki_fetcher.py
Leibniz-HBI/DBoeS-Automatization
838816b890bae26f232f1f1b1129a51cbe26954e
[ "MIT" ]
null
null
null
scraper/wiki_fetcher.py
Leibniz-HBI/DBoeS-Automatization
838816b890bae26f232f1f1b1129a51cbe26954e
[ "MIT" ]
43
2020-09-28T14:53:56.000Z
2021-11-30T16:09:00.000Z
scraper/wiki_fetcher.py
Leibniz-HBI/DBoeS-Automatization
838816b890bae26f232f1f1b1129a51cbe26954e
[ "MIT" ]
5
2021-03-30T11:47:16.000Z
2021-05-18T20:13:56.000Z
""" Functionality to scrape parliamentarian information from Wikipedia pages. """ import logging import os from datetime import datetime import requests import pandas as pd import bs4 as bs from .schema import schema, schema_map from .urls import parliaments logging.basicConfig(level=logging.INFO, format='%(asctime)...
37.254098
108
0.594059
4e4b8b9224932d534c0eada741aa66fd16bf931c
621
py
Python
Theories/Algorithms/Recursion1/MergeTwoSortedLists/merge_two_sorted_lists.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Theories/Algorithms/Recursion1/MergeTwoSortedLists/merge_two_sorted_lists.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/Algorithms/Recursion1/MergeTwoSortedLists/merge_two_sorted_lists.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional # Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next def mergeTwoLists(self, list1: Optional[ListNode], list2: Optional[ListNode]) -> Optional[ListNode]: if not list1: return list2 i...
29.571429
100
0.681159
4e61a9d84cbf2393da3543747e0d609d40cb57b7
445
py
Python
src/python3_learn_video/else_condition.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/else_condition.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/else_condition.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
""" def showMaxFactor(num): count = num // 2 while count > 1: if num % count == 0: print('%d最大的约数是%d' %(num,count)) break count -= 1 else: print('%d是素数!' % num) num = int(input('请输入一个数:')) showMaxFactor(num) """ print('-----------------------------------...
19.347826
51
0.462921
4eb135deeee1abe9cc24d16637e213138d214612
570
py
Python
pythonProj/FZPython/demo/temp/download_data_to_db.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/temp/download_data_to_db.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
null
null
null
pythonProj/FZPython/demo/temp/download_data_to_db.py
iHamburg/FZQuant
86b750ec33d01badfd3f324d6f1599118b9bf8ff
[ "MIT" ]
2
2019-04-10T10:05:00.000Z
2021-11-24T17:17:23.000Z
# -*- coding: utf-8 -*- import tushare as ts from pymongo import MongoClient import json import time import pyquant.libs.mongolib as mongolib def simpleInsert(): table='s601933' df = ts.get_k_data('601933',index=False,start='2017-01-01') print(df) conn = MongoClient('localhost', 27017) db = c...
19.655172
63
0.682456
11a8a367e62f661bdad359193f67063a5e9afd9c
1,128
py
Python
src/scheduler/handlers/jobs.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/scheduler/handlers/jobs.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/scheduler/handlers/jobs.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
from .base import BaseResource # TODO class JobListResource(BaseResource): def _get_jobs(self): """Returns a dictionary for all jobs info. It's a blocking operation. """ jobs = self.manager.get_jobs() return_json = [] for job in jobs: return_json.append(s...
30.486486
73
0.594858
6de3e12a919da2dab5304e733544b1c16980997f
3,675
py
Python
dev/Misc.py
betaros/traffic_sign
6f5ef4afb7093c929cc2e94c7f72daebbd149b7e
[ "MIT" ]
null
null
null
dev/Misc.py
betaros/traffic_sign
6f5ef4afb7093c929cc2e94c7f72daebbd149b7e
[ "MIT" ]
null
null
null
dev/Misc.py
betaros/traffic_sign
6f5ef4afb7093c929cc2e94c7f72daebbd149b7e
[ "MIT" ]
null
null
null
""" Authors: Jan Fuesting Last edited: 17.09.2018 """ import logging import numpy as np import os class Misc: """ This class contains functions which are used independent of it's context """ def __init__(self): """ Initialising """ logging.basicConfig(format='...
33.409091
109
0.414966
3ae4f85479785b26e12f1ec60784845aa9fc05da
1,773
py
Python
Prediction/parser.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
2
2018-04-12T14:24:33.000Z
2020-09-16T07:03:28.000Z
Prediction/parser.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
null
null
null
Prediction/parser.py
Nivram710/Seretra
dc7a509ff37e07ea4688a87ab89d13783299c069
[ "Apache-2.0" ]
null
null
null
from collision import find_collision from predict import predict from read import read_data from interpolate import interpolate from show import show def parse(path): objects = {} keys = [] for line in open(path): parts = line.strip().split() command = parts[0] arg = None ...
30.568966
93
0.470389
6e61a3e23398443485b4a642558511a0207406fc
3,698
py
Python
doc/examples/writing_benchmarks/bench_aot.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/writing_benchmarks/bench_aot.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/writing_benchmarks/bench_aot.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic import boost, Array import numba import numpy as np Image = Array[np.float64, "2d", "C"] def laplace_numpy(image: Image): """Laplace operator in NumPy for 2D images.""" laplacian = ( image[:-2, 1:-1] + image[2:, 1:-1] + image[1:-1, :-2] + image[1:-1, 2:] ...
29.584
73
0.591401
6e30292bd9a29bb58ca4b27538a01c5f4efd91e5
792
py
Python
scrapper.py
andikayudh182/minimal-mistakes
8d8a565f0706d8d5afbc01237cdcb3e81965237f
[ "MIT" ]
null
null
null
scrapper.py
andikayudh182/minimal-mistakes
8d8a565f0706d8d5afbc01237cdcb3e81965237f
[ "MIT" ]
null
null
null
scrapper.py
andikayudh182/minimal-mistakes
8d8a565f0706d8d5afbc01237cdcb3e81965237f
[ "MIT" ]
null
null
null
import requests import datetime import json republika={ "time":"", "categories":"", "title":"", "publish":"" } data= [] from bs4 import BeautifulSoup page = requests.get("https://www.republika.co.id/") obj = BeautifulSoup(page.text, "html.parser") for headline in obj.find_all('div', class_='conten1'): ...
22.628571
104
0.638889
6e4800835d5023abc717dd6f6c77a75a24895a87
1,732
py
Python
Uebung5/Uebung5_Aufgabe13_2.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung5/Uebung5_Aufgabe13_2.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung5/Uebung5_Aufgabe13_2.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
#sauce head: length = int(input()) b = list() #CODE: #berechnung Binomialkoeffizienten def binom(n, k): b = 1 for i in range(k-1, -1, -1): b *= n-i b //= k-i return b #erzeugen des felds: def pascal_d(n): output = list() for zeile in range(n): for spalte in range(zeile...
20.86747
84
0.621824
dd5eec05ded496e85f6d8e340ed5d465d528b300
4,658
py
Python
yolov5-coreml-tflite-converter/tflite/tf_model/tf_nms.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/tflite/tf_model/tf_nms.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/tflite/tf_model/tf_nms.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
import tensorflow as tf from constants import WH_SLICE, SCORE_SLICE, CLASSES_SLICE, DEFAULT_IOU_THRESHOLD, DEFAULT_CONF_THRESHOLD, SIMPLE, \ PADDED, COMBINED from coordinates import tf_xywh2yxyx_yolo from tf_utils.parameters import PostprocessingParameters class NMS: def __init__(self, postprocessing_paramet...
52.931818
134
0.624517
dd61b4e7751ede5ce97357325e0bde62d7c430a6
826
py
Python
spider/ce_master_pos.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/ce_master_pos.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/ce_master_pos.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_config _,db,r = get_config() def get_task(): for item in tqdm(db.current_event.find({'type':{'$gte':1}},{'_id':1,'query_str':1})): q = item['query_str'] message = {'q':q,'f'...
27.533333
121
0.676755
b0c7f903aab10dd5f9226f0d3409718590e6b647
1,050
py
Python
hyperts/tests/estimator_test.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
hyperts/tests/estimator_test.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
hyperts/tests/estimator_test.py
zhangxjohn/HyperTS
c43c8d820d26dd362510997c1c294341279ce1e1
[ "Apache-2.0" ]
null
null
null
from sklearn.metrics import accuracy_score from sklearn.model_selection import train_test_split from sktime.datasets import load_arrow_head from hyperts.estimators import SKTimeWrapper, VARWrapper from .datasets import * class Test_Estimator(): def test_VAR_wrapper(self): X, y = get_random_multivariate_...
33.870968
96
0.699048
c68d6d2dc222523b02c380bff27c0c658bf78b8c
341
py
Python
tag_0/p_1_2_haenge_strings_aneinander.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_0/p_1_2_haenge_strings_aneinander.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_0/p_1_2_haenge_strings_aneinander.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 1 Einstieg (Tag 0) 1.2 Hänge zwei Strings aneinander """ if __name__ == '__main__': s = input('Erste Zeichenkette? ') print('Eingabe 1: "' + s + '"') t = input('Zweite Zeichenkette? ') print('Eingabe 2: "' + t + '"') zeichenkette = s + t print('Zusammengehängte Strings: "' + zeichenkette + ...
24.357143
61
0.565982
c6a5977c220b1f5d7f2536ca4fa64333710137f5
1,299
py
Python
src/log/LoggerSession.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/log/LoggerSession.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
src/log/LoggerSession.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
from loguru import logger from settings import log_root from type import LogConfig __all__ = [ "LoggerSession", ] class LoggerSession(object): __slots__ = ("logger",) def __init__(self): self.logger = logger def load(self, config: LogConfig): common = config["COMMON"] del c...
24.980769
68
0.56505
af24ba4e8fd4532b3b50d69d8bc89965a9ae5c37
840
py
Python
logsource/requests_course.py
hanxuanliang/sparktime
491ed69930ef7c27fe90b24d086def5bc1dc0a8c
[ "MIT" ]
null
null
null
logsource/requests_course.py
hanxuanliang/sparktime
491ed69930ef7c27fe90b24d086def5bc1dc0a8c
[ "MIT" ]
null
null
null
logsource/requests_course.py
hanxuanliang/sparktime
491ed69930ef7c27fe90b24d086def5bc1dc0a8c
[ "MIT" ]
null
null
null
from requests_html import HTMLSession session = HTMLSession() basic_url = 'https://coding.imooc.com/{}' url_paths = [ "class/112.html", "class/153.html", "class/249.html", "class/215.html", "class/172.html", "class/146.html", "class/145.html", "class/131.html", "class/128.html", "class/217.html", ...
22.702703
70
0.613095
05248dd8c4fe10630dc9f0164054701ed3cdd887
5,283
py
Python
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/monitor/topic_monitor_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/monitor/topic_monitor_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-dqc/src/watchmen_rest_dqc/monitor/topic_monitor_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List, Optional from fastapi import APIRouter, Depends from starlette.responses import Response from watchmen_auth import PrincipalService from watchmen_data_kernel.common import ask_all_date_formats from watchmen_data_kernel.meta import TenantService, TopicService from watchmen_dqc.monitor import M...
44.394958
117
0.802764
f9936143920988826c55f932a1ca83e76b3bffed
292
py
Python
basics/codeacademy_review.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
basics/codeacademy_review.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
basics/codeacademy_review.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
skill_completed = "Python Syntax" exercises_completed = 13 #The amount of points for each exercise may change, because points don't exist yet points_per_exercise = 5 point_total = 100 point_total += exercises_completed * points_per_exercise print "I got " + str(point_total) + " points!"
24.333333
82
0.773973