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
b0291c9e56f5d150a762606c9455d10fa3524e3e
3,071
py
Python
nlpl/sampling.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
null
null
null
nlpl/sampling.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
4
2021-04-30T21:07:54.000Z
2022-02-10T01:23:11.000Z
nlpl/sampling.py
nemanja-m/nlpl
9e34564a5b7e2b5b957cd09f96bcd1292403cd1b
[ "MIT" ]
null
null
null
from typing import Dict, Tuple, List import numpy as np class Sampler: def __init__( self, word_counts: Dict[str, int], index_word: Dict[int, str], sample_rate: float = 1e-3, word_prob_power: float = 0.75, # 3/4 as in the original word2vec paper. ): self.index...
33.380435
82
0.616412
05be8f0d03977b79a23ed5b0683562883c28b2eb
584
py
Python
tag_0/p_1_4_dividiere_zwei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_0/p_1_4_dividiere_zwei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
tag_0/p_1_4_dividiere_zwei_zahlen.py
techrabbit58/uebung_informatik_vorkurs
e99312ae66ccccd6bfe45bfd3c3f43c01690659c
[ "Unlicense" ]
null
null
null
""" 1 Einstieg (Tag 0) 1.4 Dividiere 2 Zahlen. Was passiert, wenn Du durch Null teilst? """ from hilfprogramme import float_number_input if __name__ == '__main__': print('Division von zwei Zahlen: x = a / b.') a = float_number_input('a? ') b = float_number_input('b? ') try: x = a / b except...
30.736842
83
0.601027
a55878e892b213a53502328bd3f7d4abb37eb82a
712
py
Python
qdviewer/tests.py
FlorianTimm/quer2qgis
4ff6542fa9d26e4e37170b3437408f00547b7efd
[ "MIT" ]
null
null
null
qdviewer/tests.py
FlorianTimm/quer2qgis
4ff6542fa9d26e4e37170b3437408f00547b7efd
[ "MIT" ]
null
null
null
qdviewer/tests.py
FlorianTimm/quer2qgis
4ff6542fa9d26e4e37170b3437408f00547b7efd
[ "MIT" ]
null
null
null
db654 = QgsVectorLayer("D:\TTSIB\ESS\EXPORT\DB000654.DBF", "db654", "ogr") db695 = QgsVectorLayer("D:\TTSIB\ESS\EXPORT\DB000695.DBF", "db695", "ogr") db142 = QgsVectorLayer("D:\TTSIB\ESS\EXPORT\DB000142.DBF", "db142", "ogr") QgsVectorFileWriter.writeAsVectorFormat(db654, "D:\TTSIB\ESS\EXPORT\db12.sqlite", "utf-8",...
118.666667
160
0.75
b1c6e72db9cdbf21dd03849e889e31609eaa2684
95
py
Python
mitglieder/apps.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/mitglieder/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/mitglieder/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.apps import AppConfig class MitgliederConfig(AppConfig): name = 'mitglieder'
15.833333
34
0.768421
5941a2a68ed44aae787d4c006f647a496d17b57a
892
pyde
Python
sketches/datetime/application.macosx/datetime.app/Contents/Processing/source/datetime.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/datetime/datetime.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/datetime/datetime.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
import datetime as dt def setup(): size(640, 540) this.surface.setTitle("Turhans Rentenuhr") font = createFont("Coda-Heavy.ttf", 96) textFont(font) def draw(): background("#000000") myNow = dt.datetime.now() myHour = str(myNow.hour) myMinute = str(myNow.minute).rjust(2, "0") mySeco...
29.733333
61
0.615471
abf49698677ea5f122b10e142f58866b7a568b12
401
py
Python
scripts/repeat_until_success.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/repeat_until_success.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/repeat_until_success.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
import os import sys import time if len(sys.argv) <= 1: print("Expected usage: python3 repeat_until_success.py [command]") exit(1) ntries = 10 sleep_duration = 3 cmd = sys.argv[1] for i in range(ntries): ret = os.system(cmd) if ret is None or ret == 0: exit(0) print("Command {{ " + cmd + " }} failed, retrying...
19.095238
93
0.640898
bd1b262b08345aee97a830d7062045584ce66bc8
1,261
py
Python
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline/pipelines_dispatcher.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline/pipelines_dispatcher.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/pipeline/pipelines_dispatcher.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Callable, List, Optional from watchmen_model.pipeline_kernel import PipelineMonitorLog from watchmen_pipeline_kernel.common import PipelineKernelException from watchmen_pipeline_kernel.pipeline_schema import RuntimePipelineContext from watchmen_pipeline_kernel.topic import RuntimeTopicStorages cla...
35.027778
92
0.789849
85f9e723ba72b692f444684ba391ff389f3c905c
3,253
py
Python
src/python/BI/PandasDemo.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/PandasDemo.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
src/python/BI/PandasDemo.py
coulsonzero/webProject
46ba2456620496f376ed954a6469381b8142e0f6
[ "MIT" ]
null
null
null
import pandas as pd data = { "ages" : [14, 18, 24, 42], "height" : [165, 180, 176, 184] } df = pd.DataFrame(data) # print(df["ages"]) """ 0 14 1 18 2 24 3 42 """ # print(df[["ages","height"]]) """ Name: ages, dtype: int64 ages height 0 14 165 1 18 180 2 24 176 3 42 ...
21.543046
75
0.468491
23acd95b7875cad8d0454c9b55f881380165cf27
28,119
py
Python
code/01_phenotype_engineering/CCU013_01_create_table_aliases.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/01_phenotype_engineering/CCU013_01_create_table_aliases.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/01_phenotype_engineering/CCU013_01_create_table_aliases.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # Creating table aliases # MAGIC # MAGIC **Description** # MAGIC # MAGIC This notebook creates input tables for the main datasets required for the COVID phenotyping work. After discussion with Sam this was deemed to be the best approach to parameterising the datas...
58.58125
465
0.746684
f1a37c799a144295dc98569aef7d53f9150dc857
2,624
py
Python
research/gnn/dgcn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/gnn/dgcn/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/gnn/dgcn/preprocess.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...
42.322581
119
0.720274
f1f8bdcb12788587bd61468f5ccee4be34b10c36
279
py
Python
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos A import.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos A import.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/08_Utilizando_Modulos/#08 - Utilizando Módulos A import.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
'''import math num = int(input('Digite um numero: ')) raiz = math.sqrt(num) print('a raiz de {} é igual a {}'.format(num, math.floor(raiz)))''' '''from time import sleep print('OK...') sleep(1)''' from math import factorial n = int(input('Numero: ')) f = factorial(n) print(f)
19.928571
67
0.637993
7b51b0698ee8f87a1bfd43db9b917cec62fc9fe4
796
py
Python
main.py
Shahibur50/Smart_FizzBuzz
5a66cc158a73eebb0c22b2edeb462ba995402085
[ "BSD-3-Clause" ]
null
null
null
main.py
Shahibur50/Smart_FizzBuzz
5a66cc158a73eebb0c22b2edeb462ba995402085
[ "BSD-3-Clause" ]
null
null
null
main.py
Shahibur50/Smart_FizzBuzz
5a66cc158a73eebb0c22b2edeb462ba995402085
[ "BSD-3-Clause" ]
null
null
null
''' Smart_FizzBuzz Copyright (c) 2021, Shahibur Rahaman All rights reserved. ''' # Type as much fizzing rules you want ;-) fizzing_rules = { 3: "Fizz", 5: "Buzz", 7: "Fuzz", 11: "Bizz", 13: "Biff" } def main(dictionary): print("Current Fizzing Rules: ", end="") for multiple, value in fi...
19.414634
54
0.528894
7bb4be28bd43682caa2b8d557475c5453e653c1d
578
py
Python
OpenCVPython/websocket.py
mbHAW/AVPRG
1de43c775ce471409b72fd68ce1053e9578c8874
[ "MIT" ]
null
null
null
OpenCVPython/websocket.py
mbHAW/AVPRG
1de43c775ce471409b72fd68ce1053e9578c8874
[ "MIT" ]
null
null
null
OpenCVPython/websocket.py
mbHAW/AVPRG
1de43c775ce471409b72fd68ce1053e9578c8874
[ "MIT" ]
null
null
null
import asyncio import websockets import json import opencv_python_object_detection_3 as video async def show_time(websocket): while websocket.open: await websocket.send(json.dumps(video.coords)) await asyncio.sleep(0.2) async def main(): loop = asyncio.get_event_loop() ...
24.083333
63
0.66436
a81ff30b8f3aab6048791e3908375e8292d5841d
1,109
py
Python
DataProcess/auto_rotation/cal_rotation_cycle_time/cal_rotation_cycle_time_detail.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/auto_rotation/cal_rotation_cycle_time/cal_rotation_cycle_time_detail.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/auto_rotation/cal_rotation_cycle_time/cal_rotation_cycle_time_detail.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.signal import find_peaks # 计算当前转速下 B016_B023 转一圈的 所需时长 def cal_rotation_cycle_time_B016_B023(timestamp, phase): # 定位 B016_B023 时间序列中的峰值,前三个峰(height > 0.4)对应 degree_0, degree_180, degree_360 # height=0.4 => 峰值最小高度为0.4 # dista...
29.184211
81
0.706041
b58a0405f7425feb477daf1c06748b26a8a3568c
142
py
Python
set_difference.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
set_difference.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
set_difference.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
n_a = int(input()) a = set(input().split()) n_b = int(input()) b = set(input().split()) diff = ((set(a)).difference(set(b))) print(len(diff))
20.285714
36
0.591549
8da8ddc362dade071c0ba52bd041957116a4c4bc
709
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/13_8Ball.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/13_8Ball.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/13_8Ball.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Kleines Zufallsspiel bei welchem man eine Frage stellen kann und evt die richtige Antwort kriegt from random import randint as rng print('Kennst du 8-Ball? Die Kugel die dir die Zukunft voraussagen soll? \nNein? Dann versuchs doch gleich mal') print('Stelle der Magischen Kugel nun deine Frage') frage=str(input()) a...
37.315789
112
0.667137
573dc6d6eafee863c0f98fa0a2e3fe693a068c88
1,936
py
Python
imwievaluation/tests/test_student.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_student.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/tests/test_student.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
from tests.database_test import DatabaseTest from sqlalchemy.exc import IntegrityError from student import Student class TestStudent(DatabaseTest): def test_duplicate_student_not_added(self): s1 = Student('Max', 'Mustermann', 'max@mustermann.de') s2 = Student('Max', 'Mustermann', 'max@mustermann....
43.022222
78
0.678202
f5531d590b662cf261167ae1382377b7a5886f58
1,313
py
Python
rattler/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
rattler/views.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
rattler/views.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django.shortcuts import render, HttpResponseRedirect, HttpResponse from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import AuthenticationForm from django.templatetags.static import static @login_required def dashboard(request): return render(request, 'dashboard/index.h...
24.773585
71
0.729627
e31ab465203bd45e917f5e583019f8086ba4901c
478
py
Python
python/p006.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
4
2018-11-14T12:03:05.000Z
2019-09-03T14:33:28.000Z
python/p006.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
null
null
null
python/p006.py
tlming16/Projec_Euler
797824c5159fae67493de9eba24c22cc7512d95d
[ "MIT" ]
1
2018-11-17T14:39:22.000Z
2018-11-17T14:39:22.000Z
#!/usr/bin/python3 # -*- coding:utf-8 -*- class solution: __slots__=('num') def __init__(self,n:int): self.num=n def diff(self): sum_sq=0 sq_sum=0 for v in range(self.num+1): sq_sum+=v**2 sum_sq+=v return sum_sq**2-sq_sum if __name_...
17.071429
35
0.5
8b5c23b1aaf1c1a79aa4c4f6022962b41d34bf3d
141
py
Python
02_Python/sequences.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/sequences.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
02_Python/sequences.py
DaviNakamuraCardoso/Harvard-CS50-Web-Programming
afec745eede41f7b294c3ee6ebaff9ac042e5e4c
[ "MIT" ]
null
null
null
def main(): name = "Brian" print(name[0]) print(name[:3]) print(name[3:]) return if __name__ == '__main__': main()
12.818182
26
0.524823
47ca2be2864f06b4b15be89b007df25a2f40d68b
5,399
py
Python
SC101_Assignments/SC101_Assignment0/blur.py
JIllchen487/StanCode101
8025dd4e4cf0cb3d14d7314ef4ea6dfff3e5b5cc
[ "MIT" ]
null
null
null
SC101_Assignments/SC101_Assignment0/blur.py
JIllchen487/StanCode101
8025dd4e4cf0cb3d14d7314ef4ea6dfff3e5b5cc
[ "MIT" ]
null
null
null
SC101_Assignments/SC101_Assignment0/blur.py
JIllchen487/StanCode101
8025dd4e4cf0cb3d14d7314ef4ea6dfff3e5b5cc
[ "MIT" ]
null
null
null
""" File: blur.py Name: ------------------------------- This file shows the original image first, smiley-face.png, and then compare to its blurred image. The blur algorithm uses the average RGB values of a pixel's nearest neighbors. """ from simpleimage import SimpleImage BLUR_INDEX = 5 def main(): """ TODO: ...
38.564286
66
0.408039
9a16e59e990d0cde3b781e19b4bae26ff4cf63d3
221
py
Python
nz_django/day5/class_view_demo_01/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day5/class_view_demo_01/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day5/class_view_demo_01/front/models.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.db import models # Create your models here. class Article(models.Model): title = models.CharField(max_length=100) content = models.TextField() create_time = models.DateTimeField(auto_now_add=True)
31.571429
57
0.760181
d0132ace8174135dc59a1e5999a0a799513e3d55
24,414
py
Python
energielenker/energielenker/project/project.py
libracore/energielenker
97169f2f7b21f636ab473c7561cc8e147c4b12ab
[ "MIT" ]
null
null
null
energielenker/energielenker/project/project.py
libracore/energielenker
97169f2f7b21f636ab473c7561cc8e147c4b12ab
[ "MIT" ]
null
null
null
energielenker/energielenker/project/project.py
libracore/energielenker
97169f2f7b21f636ab473c7561cc8e147c4b12ab
[ "MIT" ]
1
2021-08-14T22:22:57.000Z
2021-08-14T22:22:57.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2021, libracore and contributors # For license information, please see license.txt import frappe from energielenker.energielenker.timesheet_manager import get_employee_rate_external, get_employee_rate_internal from frappe import _ from frappe.model.naming import make_autoname fr...
36.657658
180
0.60027
4bdcbaa181112d654f54f98de0ab762cb49319f7
379
py
Python
Packs/Confluera/Scripts/ConflueraProgressionsCount/ConflueraProgressionsCount.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Confluera/Scripts/ConflueraProgressionsCount/ConflueraProgressionsCount.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Confluera/Scripts/ConflueraProgressionsCount/ConflueraProgressionsCount.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * from CommonServerUserPython import * # Executes confluera-fetch-progressions command/script progressions_data = demisto.executeCommand('confluera-fetch-progressions', {'hours': '72'}) prog_count = 0 if progressions_data[1] and progressions_data[1]['Contents']: prog_count = len(pro...
31.583333
91
0.794195
4be50814dac5fc74f8cfc644bbcb0f28d9e689c7
133
py
Python
Warrior.py
Mathias-Mo/Zauberwald_v05
7c67b7ed086feb8e3897f4b6c2122b8b66256331
[ "MIT" ]
null
null
null
Warrior.py
Mathias-Mo/Zauberwald_v05
7c67b7ed086feb8e3897f4b6c2122b8b66256331
[ "MIT" ]
null
null
null
Warrior.py
Mathias-Mo/Zauberwald_v05
7c67b7ed086feb8e3897f4b6c2122b8b66256331
[ "MIT" ]
null
null
null
from FighterClass import FighterClass class Warrior(FighterClass): def __init__(self, params): super().__init__(params)
22.166667
37
0.736842
de1a49b5651c6505673a8c14637ce33637fb834b
1,067
py
Python
pegasus-loki-rat-master/agent/config.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
pegasus-loki-rat-master/agent/config.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
pegasus-loki-rat-master/agent/config.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
SERVER = "http://localhost:8080" HELLO_INTERVAL = 2 IDLE_TIME = 60 MAX_FAILED_CONNECTIONS = 10 PERSIST = True HELP = """ <any shell command> Executes the command in a shell and return its output. upload <local_file> Uploads <local_file> to server. download <url> <destination> Downloads a file through HTTP(S). zip <a...
20.519231
68
0.659794
deba3a9b55424c9cedb56f060f8a8a07f1b2c1b1
4,942
py
Python
tests/conftest.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
tests/conftest.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
tests/conftest.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding:utf-8 -*- import pytest from typing import Iterator, Callable @pytest.fixture def create_tmpfile_from(tmpdir) -> Callable[[str], str]: def func(content: str) -> str: tmpfile = tmpdir.join("tmpfile") with tmpfile.open("w", encoding="utf-8") as f: f.wri...
18.578947
61
0.598948
9d1f42cb5ee5f579c0741caa43a6f0ba76c04681
351
py
Python
python_project/python/ModifyIp.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
python_project/python/ModifyIp.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
python_project/python/ModifyIp.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
def modifyip(tfile,sstr,rstr): try: lines=open(tfile,'r').readlines() flen=len(lines)-1 for i in range(flen): if sstr in lines[i]: lines[i]=lines[i].replace(sstr,rstr) open(tfile,'w').writelines(lines) except Exception,e: print e ...
23.4
52
0.51567
26614d86157de50d6a766f815112e46280d1c71d
4,440
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/saga/generateAmitranFromTAZWeights.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/contributed/saga/generateAmitranFromTAZWeights.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/contributed/saga/generateAmitranFromTAZWeights.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python3 """ Generate the default Amitran OD-matrix from TAZ weights. Author: Lara CODECA This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0. """ import argparse imp...
38.275862
154
0.570721
2661a82df569d424bce5ac7075453bad4b4f4468
743
py
Python
Worker/KerasCallback.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
Worker/KerasCallback.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
7
2020-07-19T03:29:21.000Z
2022-03-02T06:46:12.000Z
Worker/KerasCallback.py
th-nuernberg/ml-cloud
6d7527cbf6cceb7062e74dbc43d51998381aa6c8
[ "MIT" ]
null
null
null
from keras.callbacks import Callback from RestAPI import RestAPI class StatusCallback(Callback): def __init__(self, api: RestAPI, job_id): super().__init__() self.job_id = job_id self.api = api def on_epoch_end(self, epoch, logs=None): self.api.update_job_progress(job_id=sel...
30.958333
156
0.679677
39a4b77326cef68f3ce9ae3a5af1bc5f123dd058
1,905
py
Python
display/_audio_menu_view.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
display/_audio_menu_view.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
display/_audio_menu_view.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
from ._button_lights import ButtonLights from ._view import View from ._display import Display from config import AudioConfig audio_menu_view_name = "audio_menu_view" active_cursor_value = 1 file_cursor_value = 2 min_cursor_value = active_cursor_value max_cursor_value = file_cursor_value class AudioMenuView(View): ...
25.743243
78
0.594226
ffd7a688cda17b6e2544aaf0d679d4875b9e5bba
132
py
Python
41A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
2
2019-09-07T17:00:26.000Z
2020-08-05T02:08:35.000Z
41A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
41A.py
cbarnson/UVa
0dd73fae656613e28b5aaf5880c5dad529316270
[ "Unlicense", "MIT" ]
null
null
null
#! python # Problem # : 41A # Created on : 2019-01-15 20:56:09 def Main(): pass if __name__ == '__main__': Main()
10.153846
36
0.545455
4b5148b34051b432a84ae7caca168e4ecde8dc1e
356
py
Python
packages/watchmen-model/src/watchmen_model/chart/chart_types.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/chart/chart_types.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/chart/chart_types.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from enum import Enum from typing import TypeVar ChartColor = TypeVar("ChartColor", bound=str) class ChartType(str, Enum): COUNT = 'count' BAR = 'bar' LINE = 'line' SCATTER = 'scatter' PIE = 'pie' DOUGHNUT = 'doughnut' NIGHTINGALE = 'nightingale' SUNBURST = 'sunburst' TREE = 'tree' TREEMAP = 'treemap' MAP...
17.8
45
0.682584
4b8916c861700c2634bb2b440c8137074e5b4253
313
py
Python
send_text.py
judekuti/SMS-Sender
4c0a81c8f6ac7d4a5efcc910c97991e49e22a99b
[ "Python-2.0" ]
null
null
null
send_text.py
judekuti/SMS-Sender
4c0a81c8f6ac7d4a5efcc910c97991e49e22a99b
[ "Python-2.0" ]
null
null
null
send_text.py
judekuti/SMS-Sender
4c0a81c8f6ac7d4a5efcc910c97991e49e22a99b
[ "Python-2.0" ]
null
null
null
from twilio.rest import Client account_sid="" auth_token="" client=Client(account_sid, auth_token) message=client.messages.create( to="+19726706437", from_="+19724585557", body="Hey Jude, what about showing off your sms sender app!!!") print (message.sid)
20.866667
67
0.629393
8a07cea05189839c38d08483a2972039bde927b8
625
py
Python
Imaginary/2021/web/Sinking_Calculator/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/web/Sinking_Calculator/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/web/Sinking_Calculator/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from flask import Flask, render_template_string, request app = Flask(__name__) @app.route('/') def index(): return open('templates/index.html').read() @app.route('/calc') def calc(): query = request.args['query'] request.args = {} request.headers = {} # no outside help! re...
25
83
0.6128
0a11e3f26a74cc17811331703979b8030ab1db2f
127
py
Python
gestionResultadosProtocolo/apps.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionResultadosProtocolo/apps.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionResultadosProtocolo/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 GestionresultadosprotocoloConfig(AppConfig): name = 'gestionResultadosProtocolo'
21.166667
50
0.826772
0a5fa68553b4e61c3ec72c607ea7ff1d5398634b
1,047
py
Python
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise1.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise1.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/udacity-ds_and_algos/udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise1.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# udacity-ds_and_algos-lesson2-python_refresher-function_and_generator-exercise1.py # solution.py def prod(a,b): # TODO change output to the product of a and b return a * b def fact_gen(): i = 1 n = i while True: output = prod(n, i) yield output # TODO: update i and n ...
17.745763
83
0.579752
6a62c8da67830801d4c6acb47af1349139f32ef5
9,514
py
Python
phypidaq/DataGraphs.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
7
2018-11-30T13:38:27.000Z
2021-03-10T15:37:56.000Z
phypidaq/DataGraphs.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
5
2020-11-11T09:19:00.000Z
2022-02-06T09:04:55.000Z
phypidaq/DataGraphs.py
RMGrau/PhyPiDAQ
e7ea08a0d5de9772a1a5e32ccd0ab1bfddf9ff54
[ "BSD-2-Clause" ]
16
2019-04-16T10:15:45.000Z
2021-12-15T14:59:31.000Z
# -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals from __future__ import absolute_import import time, numpy as np import matplotlib.pyplot as plt class DataGraphs(object): ''' Bar graph display, history plot and XY-display forked from picoDAQ.DataGraphs ''' def...
34.596364
88
0.578831
6a80d75b67eb9e1d7ac086ea3bd4deab605bade3
3,073
py
Python
zencad/__init__.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/__init__.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/__init__.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from zencad.version import __occt_version__, __pythonocc_version__ import os import sys from zencad.version import __occt_version__ # Libraries loading test. Starts with gui mode only. if ( (True # sys.platform == "win32" or # sys.argv[0][-7:] == "/zencad" # ...
28.990566
83
0.649854
7c26783d4abc01191a2786baa5d01080f10c85e2
1,789
py
Python
NN/Test/TF/Tensorboard.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
NN/Test/TF/Tensorboard.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
NN/Test/TF/Tensorboard.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
from NN.TF.Networks import * from Util.Util import DataUtil def main(): save = False load = False show_loss = True train_only = False verbose = 2 lr = 0.001 lb = 0.001 epoch = 10 record_period = 1 x, y = DataUtil.get_dataset("mnist", "../../../_Data/mnist.tx...
28.396825
112
0.491336
7cf70c8954d0999e5c072b0a63dbdf3ab1f4ac4f
658
py
Python
exam_notes/exam_notes/web/urls.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
exam_notes/exam_notes/web/urls.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
exam_notes/exam_notes/web/urls.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.urls import path from exam_notes.web.views import show_home, create_profile, profile_details, add_note, edit_note, delete_note, \ note_details, delete_profile urlpatterns = ( path('', show_home, name='index'), path('create/', create_profile, name='create profile'), path('profile/delete/', ...
36.555556
112
0.68845
6b1e7a0c6b083f9637836b22afd806164f3ee031
4,498
py
Python
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/rules_controller.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/rules_controller.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-dqc/src/watchmen_dqc/monitor/rule/rules_controller.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import datetime from logging import getLogger from typing import Dict, List, Tuple from watchmen_data_kernel.storage import TopicDataService from watchmen_model.dqc import MonitorRule, MonitorRuleCode from watchmen_utilities import ArrayHelper from .disabled_rules import disabled_rules from .factor_and_a...
43.25
107
0.850156
6b24b8e6cce09a14f0388333befee832aedcb104
7,997
py
Python
python/oneflow/compatible/single_client/test/ops/test_pool_padding.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_pool_padding.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_pool_padding.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...
31.988
88
0.50744
862366b934f01566730b96f779916cf668ae7bb9
5,404
py
Python
task_1/main.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
1
2021-03-17T09:24:21.000Z
2021-03-17T09:24:21.000Z
task_1/main.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
null
null
null
task_1/main.py
christopher-besch/bwinf39
e5394b37894a56608312057d179029d8a5df98fd
[ "MIT" ]
null
null
null
import re import sys def load_file(filepath): with open(filepath, "r", encoding="utf-8") as file: # first line is text text = file.readline().strip() # second line is word bank word_bank = file.readline().strip().split(" ") return text, word_bank def cut_words(te...
37.268966
121
0.637676
07f2ec69877bccb491f9f32c1da1005c9f84127c
315
py
Python
pacman-termux/test/pacman/tests/ldconfig002.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/ldconfig002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/ldconfig002.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Make sure ldconfig runs on an upgrade operation" lp = pmpkg("dummy") self.addpkg2db("local", lp) p = pmpkg("dummy", "1.0-2") self.addpkg(p) self.args = "-U %s" % p.filename() self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|1.0-2") self.addrule("FILE_EXIST=etc/ld.so.cache")
22.5
68
0.698413
ed0cd6e15fe5c2588f25000a2063132589072597
2,296
py
Python
frappe-bench/env/lib/python2.7/site-packages/stdnum/nl/onderwijsnummer.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/nl/onderwijsnummer.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/stdnum/nl/onderwijsnummer.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# onderwijsnummer.py - functions for handling onderwijsnummers # # Copyright (C) 2012, 2013 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the Li...
30.613333
77
0.716899
92efe5e8ab7faaa20f676b5db2ae44cac2551980
748
py
Python
tests/onegov/winterthur/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/winterthur/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/winterthur/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import transaction from onegov.winterthur.collections import AddressCollection from tests.shared import Client as BaseClient class Client(BaseClient): skip_first_form = True def test_view_addresses(winterthur_app, streets_csv, addresses_csv): client = Client(winterthur_app) page = client.get('/streets...
24.129032
68
0.744652
b9579f9c53f42dbeaa5bab302d3773cebeec4793
29,785
py
Python
rasa/utils/tensorflow/models.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
1
2020-10-14T18:09:10.000Z
2020-10-14T18:09:10.000Z
rasa/utils/tensorflow/models.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
187
2020-02-25T16:07:06.000Z
2022-03-01T13:42:41.000Z
rasa/utils/tensorflow/models.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
null
null
null
import datetime import tensorflow as tf import numpy as np import logging import os import shutil from collections import defaultdict from pathlib import Path from typing import ( List, Text, Dict, Tuple, Union, Optional, Callable, TYPE_CHECKING, Any, ) from tqdm import tqdm from r...
35.041176
113
0.601779
b99110647ef908dfaec2b700d47081ab21a6f066
1,158
py
Python
DataStructures/Trie/NoPrefix.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Trie/NoPrefix.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Trie/NoPrefix.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 N = int(raw_input()) root = {} for _ in xrange(N): s = raw_input() node = root is_added = False if s[0] not in root: for char in s: node[char] = {} node = node[char] is_added = True continue is_added = False for char i...
17.815385
57
0.450777
b9f5aac014e039a1e5b065ef94fcc571c4bf854e
818
py
Python
python/asyncio/framework/exception.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/framework/exception.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/asyncio/framework/exception.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from .response import Response class HTTPException(Response, Exception): status_code = None def __init__(self, reason=None, content_type=None): self._reason = reason self._content_type = content_type Response.__init__( self, body=self._reason, stat...
22.108108
66
0.672372
e024075d7ecfaa0fe485dee206857587d5eb0405
17,375
py
Python
Packs/CohesityHelios/Integrations/CohesityHelios/CohesityHelios.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CohesityHelios/Integrations/CohesityHelios/CohesityHelios.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CohesityHelios/Integrations/CohesityHelios/CohesityHelios.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""Cohesity Helios Integration for Cortex XSOAR (aka Demisto). """ import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa from datetime import datetime, timedelta from dateparser import parse from typing import Dict, ...
34.270217
111
0.645986
e028a60989777b87a78ad1a147a4ec6f52d95fbc
720
py
Python
data-pipeline/src/data_pipeline/data_types/variant/annotate_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/data_types/variant/annotate_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/data_types/variant/annotate_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import hail as hl def annotate_variants(variants_path, exome_coverage_path=None, genome_coverage_path=None, caids_path=None): ds = hl.read_table(variants_path) ds = ds.annotate(coverage=hl.struct()) if exome_coverage_path: exome_coverage = hl.read_table(exome_coverage_path) ds = ds.annota...
36
107
0.723611
e05af5da782da57fa538b1d6c6fc6c2cefab2fb7
807
py
Python
examples/pcf8591_joystick.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-11T23:39:23.000Z
2020-08-11T23:39:23.000Z
examples/pcf8591_joystick.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
null
null
null
examples/pcf8591_joystick.py
Elecrow-RD/Raspberry-Pi-Starter-Kit
9adad7bfb403a697119bf80bbc2290bc3832750d
[ "MIT" ]
1
2020-08-05T18:30:45.000Z
2020-08-05T18:30:45.000Z
#!/usr/bin/python # -*- coding:utf-8 -*- # www.elecrow.com import smbus import time # NOTE: This PCF8591 script is used with the joystick example because we will need to use more than 1 analog input # please follow up the instructions on the PCF8591 schematic to connect the right sensors in the right way. address = ...
23.057143
114
0.675341
e06224a3e4da4429d818edbebe5ad60286fd4fba
767
py
Python
Kapitel 2/Caesar.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 2/Caesar.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
Kapitel 2/Caesar.py
mqng/HS-CO_WS2122_IF_FProg
b52470e0991bdbaeba22b154c4029e6cded51fd7
[ "MIT" ]
null
null
null
def caesar_encode(src, dist): cipher = "" for c in src: if (c.isupper()): a = ord('A') z = ord('Z') cipher += chr(((ord(c) - a + dist) % 26) + a) elif (c == " "): cipher += c elif (c.islower()): a = ord('a') z = or...
21.305556
57
0.517601
163a6df7e72821ed8938c23e5d0143289c5c65e5
8,199
py
Python
home-assistant/custom_components/burze_dzis_net/binary_sensor.py
square-spade/SmartHouse
1566fe6153321908ff4cda48f6ff5cdf5de8fe67
[ "MIT" ]
136
2019-06-27T08:11:47.000Z
2022-03-11T12:26:53.000Z
home-assistant/custom_components/burze_dzis_net/binary_sensor.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
13
2019-08-07T05:49:44.000Z
2022-03-17T09:07:22.000Z
home-assistant/custom_components/burze_dzis_net/binary_sensor.py
Venkysgithu/SmartHouse
d4e42dbbbb1f535f1684d507de411a4421b92e4d
[ "MIT" ]
63
2019-07-15T21:11:58.000Z
2022-03-13T09:43:24.000Z
from datetime import timedelta import voluptuous as vol import logging from homeassistant.util import Throttle from homeassistant.util.dt import parse_datetime from homeassistant.components.binary_sensor import PLATFORM_SCHEMA, ENTITY_ID_FORMAT from homeassistant.const import CONF_NAME, CONF_RADIUS, CONF_API_KEY, ATTR...
37.958333
138
0.680937
16698969cd714903efbd4e6523d9959460704f12
1,761
py
Python
methods/transformers/tests/test_modeling_flax_roberta.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/tests/test_modeling_flax_roberta.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/tests/test_modeling_flax_roberta.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
import unittest from numpy import ndarray from transformers import TensorType, is_flax_available, is_torch_available from transformers.testing_utils import require_flax, require_torch from transformers.tokenization_roberta_fast import RobertaTokenizerFast if is_flax_available(): from transformers.mode...
40.953488
117
0.683702
167177cb34a6cfb16660a194f0225003a488355b
3,788
py
Python
tests/test_volume_migrate_sync.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-12T09:49:53.000Z
2020-03-12T09:49:53.000Z
tests/test_volume_migrate_sync.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
1
2020-03-25T00:47:12.000Z
2020-03-30T23:32:00.000Z
tests/test_volume_migrate_sync.py
cloudmesh/cloudmesh-volume
a7502d077f2fb7c6b1b7986da9595a36591b06cd
[ "Apache-2.0" ]
5
2020-02-20T01:04:24.000Z
2020-05-05T14:36:30.000Z
############################################################### # pytest -v --capture=no tests/test_volume_migrate_sync.py ############################################################### import pytest import json import os from time import sleep from cloudmesh.common.Benchmark import Benchmark from cloudmesh.common.Sh...
32.93913
76
0.63094
16b8f434f4ec07bfa976665a26630dc5328a3e7e
446
py
Python
reports/migrations/0004_auto_20161126_1300.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
reports/migrations/0004_auto_20161126_1300.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
reports/migrations/0004_auto_20161126_1300.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-11-26 18:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reports', '0003_auto_20161126_1251'), ] operations = [ migrations.AlterFiel...
21.238095
48
0.61435
bce9221ecc1c444a518fad69cdd0a34ffb8409f3
26,198
py
Python
Packs/BigFix/Integrations/BigFix/BigFix.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/BigFix/Integrations/BigFix/BigFix.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/BigFix/Integrations/BigFix/BigFix.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import requests import demistomock as demisto from CommonServerPython import * requests.packages.urllib3.disable_warnings() BASE_URL = demisto.params().get('url') VERIFY_CERTIFICATE = not demisto.params().get('unsecure') USERNAME = demisto.params()['credentials']['identifier'] PASSWORD = demisto.params()['credentia...
32.994962
120
0.611802
d5d639e36646a1339b25563e9d4d9b0653575020
2,094
py
Python
python/odml/scripts/rdf_subclass_query.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/scripts/rdf_subclass_query.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/scripts/rdf_subclass_query.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" This script tests how to load an RDF file to an rdflib graph and query the content. Meant to test various additional libraries for their RDF inference/reasoning since the basic rdflib implementation does not supply inference. """ import os import pathlib from odml.tools.rdf_converter import ODML_NS from rdflib im...
30.347826
90
0.755969
e6b9d2c51647ecead9eebc4b4098e090b921f11d
1,502
py
Python
Book/Python/speed-test.py
mrprogrammer2938/YouTube-Book
c56b8c02e0c7e3814c979d24b7f3719e6cf67f87
[ "Apache-2.0" ]
null
null
null
Book/Python/speed-test.py
mrprogrammer2938/YouTube-Book
c56b8c02e0c7e3814c979d24b7f3719e6cf67f87
[ "Apache-2.0" ]
null
null
null
Book/Python/speed-test.py
mrprogrammer2938/YouTube-Book
c56b8c02e0c7e3814c979d24b7f3719e6cf67f87
[ "Apache-2.0" ]
null
null
null
# pip install tk-tools # pip install speedtest-cli from tkinter import * from speedtest import Speedtest class myapp(object): def __init__(self): super().__init__() self.root = Tk() self.root.title('Speed Test') self.photo = PhotoImage(file = 'speedtest-logo.png') self.s...
25.033333
93
0.60719
e6bdc1483e40f3fa0e4a3a056981e4acef0deb00
842
py
Python
Chapter6_Images/digitalImages.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter6_Images/digitalImages.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
Chapter6_Images/digitalImages.py
thisisjako/UdemyTF
ee4102391ed6bd50f764955f732f5740425a9209
[ "MIT" ]
null
null
null
import numpy as np from matplotlib import pyplot as plt if __name__ == "__main__": # Black/White Image (1d) image = np.array( [0, 1, 1, 1, 1, 1, 0, 0, 0, ], dtype=np.uint8, ) print(f"B/W (1D):\n{image}") plt.imshow(image.reshape((3, 3)), cmap="gray") plt.show() # Grayscale...
24.057143
56
0.454869
e6cc0cd68c8ac4033f41b0711170bbf7b4eac8ac
3,565
py
Python
Licence 1/I21/TP1/Parcours/parcours.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I21/TP1/Parcours/parcours.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I21/TP1/Parcours/parcours.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
# # FIchier à compléter: parcours.py # # Chaque fonction retourne la liste des paires d'indices correspondant # au parcours nommé. # def parcours_ligne(n): """Retourne la liste des indices (colonne,ligne) (!!attention ici ligne et colonne sont inversées!!) des cases correspondant à un parcours tableau de ...
31.27193
86
0.568583
f8d3f0bb1482c289385a5c15e4bd66baa6b2d732
3,941
py
Python
hisim/components/smart_controller.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/components/smart_controller.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
null
null
null
hisim/components/smart_controller.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
1
2022-03-13T16:15:36.000Z
2022-03-13T16:15:36.000Z
# Generic/Built-in # Owned from hisim.component import Component, SingleTimeStepValues, ComponentInput, ComponentOutput from hisim.components.heat_pump import HeatPumpController from hisim.components.ev_charger import EVChargerController from typing import List from hisim import loadtypes as lt from abc import ABC, ab...
49.2625
178
0.693733
9906763e94fc27ee5410e39af2ec715b155d9d80
897
py
Python
Lec3.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
Lec3.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
Lec3.py
JSliman948/IA241
57e8441ed0a8236e08308c6ed18b7555d76fd739
[ "MIT" ]
null
null
null
''' Lec 3 ''' my_list = [1, 2, 3, 4, 5] print(my_list) my_nested_list = [1, 2, 3, my_list] print(my_nested_list) my_list[0] = 6 print(my_list) print(my_list[0]) print(my_list[-1]) print(my_list[1]) print(my_list[1:3]) print(my_list[:3]) print(my_list[3:]) print(my_list[:]) x,y = ["a","b"] print(x) print(y) my_list.appe...
20.386364
43
0.698997
4adba5940057babc061d5488bbfdd500729c3c44
619
py
Python
sdiff/renderer.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
sdiff/renderer.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
sdiff/renderer.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
from sdiff.model import Root, Node class HtmlRenderer(object): def render(self, tree: Root): result = tree.original(self) return '<pre>\n%s\n</pre>' % result.strip() def render_node(self, node, text): if node.meta.get('style') == 'ins': return '<ins>%s</ins>' % text ...
23.807692
51
0.573506
37e09fc0e0321f89c627658b4921ded26ebd5ed6
222
py
Python
datenfinder/gui/models.py
digitalfabrik/buergerinnendatenfinder
ff0a27b068f568e9e8c6a8a70b81251dbde0b7e6
[ "Apache-2.0" ]
2
2021-05-12T21:52:48.000Z
2021-10-30T13:01:03.000Z
datenfinder/gui/models.py
digitalfabrik/buergerinnendatenfinder
ff0a27b068f568e9e8c6a8a70b81251dbde0b7e6
[ "Apache-2.0" ]
null
null
null
datenfinder/gui/models.py
digitalfabrik/buergerinnendatenfinder
ff0a27b068f568e9e8c6a8a70b81251dbde0b7e6
[ "Apache-2.0" ]
null
null
null
from django.db import models class CitizenDate(models.Model): type_hash = models.CharField(max_length=200) date = models.DateTimeField('date published', auto_now=True) owner = models.CharField(max_length=200)
31.714286
64
0.761261
72b7ffe81071bfaa75f4e3de8021259df2793b9d
553
py
Python
qmk_firmware/lib/python/qmk/cli/clean.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/clean.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
qmk_firmware/lib/python/qmk/cli/clean.py
DanTupi/personal_setup
911b4951e4d8b78d6ea8ca335229e2e970fda871
[ "MIT" ]
null
null
null
"""Clean the QMK firmware folder of build artifacts. """ from subprocess import DEVNULL from qmk.commands import create_make_target from milc import cli @cli.argument('-a', '--all', arg_only=True, action='store_true', help='Remove *.hex and *.bin files in the QMK root as well.') @cli.subcommand('Clean the QMK firmwa...
36.866667
126
0.723327
f42a9106619d7856c21d4fd1550c35568e99f74e
92
py
Python
tests/onegov/town6/common.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/common.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/town6/common.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
def step_class(page, step): return page.pyquery(f'[data-step="{step}"]').attr('class')
23
62
0.652174
fe539f125dc5f1726d5a16d99da039050c9249ff
842
py
Python
solutions/item_based_recommend/service/src/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/item_based_recommend/service/src/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/item_based_recommend/service/src/search.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import numpy as np from bert_serving.client import BertClient from src.milvus import milvus_search from src.mysql_toolkits import search_by_milvus_ids, get_categories, get_texts_by_category def do_search(query_text,index_client,conn,cursor,bc): vec = bc.encode([query_text]) # vec = vec.tolist() vec = [(...
28.066667
91
0.73753
fe704c8db334644019c8c35b8974f08e72bcbe9d
689
py
Python
language/python/bokeh/test.py
mkmayank/quest
dbdde9e62c0b2c2b0cd5d16304793291d8400248
[ "Apache-2.0" ]
null
null
null
language/python/bokeh/test.py
mkmayank/quest
dbdde9e62c0b2c2b0cd5d16304793291d8400248
[ "Apache-2.0" ]
null
null
null
language/python/bokeh/test.py
mkmayank/quest
dbdde9e62c0b2c2b0cd5d16304793291d8400248
[ "Apache-2.0" ]
null
null
null
from pylib.data_process.plotter import Plotter import pandas as pd import numpy as np b = Plotter(basenames = 'SBIN,SBIN_FUT', date = '20190913', sep_scales = True, book_depth = 10, top_size = [10, 10], models = ['MID', 'MID'], o...
24.607143
56
0.587808
fe0109ecbfe658237fcefb7b1ac548178ad899dc
337
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/03_lokaler_zu_globaler_variable.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/03_lokaler_zu_globaler_variable.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_01_bis_04/03_lokaler_zu_globaler_variable.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Verwerten und Überschreiben von globalen und lokalen Variablen def chgglob(): global var # Variable von Funktion an globale Variable übergeben var = 'Overwritten' def locvar(): var = 'Wrong method' # Lokale, nur für diese Funktion gültige Variable var = 'Overwrite me' print(var) chgglob() loc...
22.466667
78
0.709199
4ab007565a15e91f490819aa12c2baf6016987f4
3,694
py
Python
oneflow/python/test/ops/test_initializer.py
ncnnnnn/oneflow
f6e81f65eed1d87c3125e7a78247cfaa72220020
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/ops/test_initializer.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
oneflow/python/test/ops/test_initializer.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "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...
32.403509
85
0.664862
600d83478184e525ae90f0cc7388c2a949da6613
364
py
Python
lintcode/153-159-Find-Minimum-in-Rotated-Sorted-Array/FindMinimuminRotatedSortedArray.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
lintcode/153-159-Find-Minimum-in-Rotated-Sorted-Array/FindMinimuminRotatedSortedArray.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
lintcode/153-159-Find-Minimum-in-Rotated-Sorted-Array/FindMinimuminRotatedSortedArray.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param num: a rotated sorted array # @return: the minimum number in the array def findMin(self, num): # write your code here l, r = 0, len(num) - 1 while l <= r: m = (l + r) / 2 if num[m] < num[r]: r = m else: ...
26
46
0.428571
60af33e362d942f91f8b01a1220625aaea6b06c6
1,460
py
Python
Packs/MalwareInvestigationAndResponse/Scripts/InvestigationSummaryToTable/InvestigationSummaryToTable_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-11-02T05:36:38.000Z
2021-11-02T05:36:38.000Z
Packs/MalwareInvestigationAndResponse/Scripts/InvestigationSummaryToTable/InvestigationSummaryToTable_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/MalwareInvestigationAndResponse/Scripts/InvestigationSummaryToTable/InvestigationSummaryToTable_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import json from pathlib import Path from InvestigationSummaryToTable import Result, get_findings, findings_to_command_results TEST_DATA_DIR = Path(__file__).parent / 'test_data' def _load_test_file(file_name: str): return json.loads((TEST_DATA_DIR / file_name).read_text()) def _dump_test_file(file_name: str,...
37.435897
105
0.714384
8810241a7e0b16064b6fe1f39d3d7a632835f1e9
77
py
Python
python/coursera_python/TORONTO/test/9.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/TORONTO/test/9.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/TORONTO/test/9.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
values = [] for num in range(1, 3): values.append(num * 3) print(values)
15.4
26
0.623377
71715a7b728e996e7ed57fa768fe715935382949
12,162
py
Python
TEG/current_works/Steiner Tree/steiner.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
10
2020-12-08T20:18:15.000Z
2021-06-07T20:00:07.000Z
TEG/current_works/Steiner Tree/steiner.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-06-28T03:42:13.000Z
2021-06-28T16:53:13.000Z
TEG/current_works/Steiner Tree/steiner.py
joao-frohlich/BCC
9ed74eb6d921d1280f48680677a2140c5383368d
[ "Apache-2.0" ]
2
2021-01-14T19:59:20.000Z
2021-06-15T11:53:21.000Z
import collections import itertools import random from pprint import pprint import graphviz import time ################################################ # Autores: Vinicius Gasparini e Filipe Cattoni # Nome: Arvore de Steiner ################################################ # Estruturas: # Node: str # Graph: {N...
31.426357
104
0.523269
718fd6ebc8f3591edf9c7ce5ee97a2b0ce0239a6
3,300
py
Python
src/test/tests/databases/singlemulti.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/singlemulti.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/singlemulti.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: singlemulti.py # # Tests: mesh - 3D, curvilinear, single domain # plots - Pseudocolor # databases - Silo # # Purpose: This test case tests the ability of VisIt...
28.448276
78
0.664242
1ce402500829f9e4527b2947111b3bd9f8de155e
4,205
py
Python
research/cv/TNT/src/pet_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2021-07-08T13:10:42.000Z
2021-11-08T02:48:57.000Z
research/cv/TNT/src/pet_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/TNT/src/pet_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
42.908163
103
0.657551
e81efaa834aa296567b0e80b825772fdec8a1c0a
4,838
py
Python
paper_evaluation/IV.F_sensitivity_geographic_location/testWithLocError.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
5
2022-03-11T18:08:32.000Z
2022-03-31T13:47:49.000Z
paper_evaluation/IV.F_sensitivity_geographic_location/testWithLocError.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
paper_evaluation/IV.F_sensitivity_geographic_location/testWithLocError.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
##################################################### # Content-Aware Detection of Timestamp Manipulation # # IEEE Trans. on Information Forensics and Security # # R. Padilha, T. Salem, S. Workman, # # F. A. Andalo, A. Rocha, N. Jacobs # ##################################################...
28.458824
115
0.627325
c7100262698b15aaa5b036cfc4738a1cde74613f
1,485
py
Python
retro/cores/gba/src/platform/python/cinema/movie.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/cinema/movie.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/cinema/movie.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
from mgba.image import Image from collections import namedtuple from . import VideoFrame Output = namedtuple('Output', ['video']) class Tracer(object): def __init__(self, core): self.core = core self.fb = Image(*core.desiredVideoDimensions()) self.core.setVideoBuffer(self.fb) self....
30.9375
75
0.550168
c71ac6ac6ddbdd8a32e8e8ec29e226cddb3c8d00
1,484
py
Python
src/onegov/wtfs/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/wtfs/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.wtfs.forms.daily_list import DailyListSelectionForm from onegov.wtfs.forms.invoice import CreateInvoicesForm from onegov.wtfs.forms.municipality import DeleteMunicipalityDatesForm from onegov.wtfs.forms.municipality import ImportMunicipalityDataForm from onegov.wtfs.forms.municipality import MunicipalityFor...
38.051282
70
0.822102
90baeeb82304a24a03dd16e9b7992f885a54899b
1,247
py
Python
SOP/05/uebung.py
chfrank-cgn/FOM
72ada98bb287b00807911a070a390964b681f099
[ "CC-BY-4.0" ]
null
null
null
SOP/05/uebung.py
chfrank-cgn/FOM
72ada98bb287b00807911a070a390964b681f099
[ "CC-BY-4.0" ]
null
null
null
SOP/05/uebung.py
chfrank-cgn/FOM
72ada98bb287b00807911a070a390964b681f099
[ "CC-BY-4.0" ]
null
null
null
import os # Open logfile try: logfile = open("node_13.81.173.84_09.log", "r", encoding="utf-8") except (IOError) as e: print("File open error", e.args[1]) os.exit(1) # Uebung 1 loglist = logfile.readlines() print("Number of lines:", len(loglist)) print("First ten entries: \n", loglist[:10]) # Close logfile log...
21.5
73
0.609463
46524bfe3fdb2c12b030eab6d8833271d3278421
1,363
py
Python
server.py
SUMSC/SudaSSO
cd33e899a1e538903835a3568182ce3825405c8d
[ "MIT" ]
null
null
null
server.py
SUMSC/SudaSSO
cd33e899a1e538903835a3568182ce3825405c8d
[ "MIT" ]
null
null
null
server.py
SUMSC/SudaSSO
cd33e899a1e538903835a3568182ce3825405c8d
[ "MIT" ]
null
null
null
from gevent import monkey monkey.patch_all() import falcon from app.sso import checkMyauth import ujson as json with open('.hash.conf','r') as fp: passwd=json.load(fp)['pass'] keys=set(['id_tag','secret','timestamp']) # checkMyauth(id_tag: str, secret: str, clienttime: str, passwd: str) -> bool class sudaaut...
32.452381
99
0.647102
d3d60ac51d67efb2c695c957b76bb60e9f275dc1
221
py
Python
STIX/getCount.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
STIX/getCount.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
STIX/getCount.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
# Funktion die abprüft wie oft das Elementenpaar in der Liste vorkommt def getCount(e3, e1, e2, liste): c = 0 for e in liste: if e1 in e[3] and e2 in e[2] and e3 in e[1]: c += 1 return c
22.1
70
0.579186
310247a70e2a994414ac7dcf170099b693fd08df
382
py
Python
cs/lambda_cs/06_graphs/notes/islands/island_generator.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/06_graphs/notes/islands/island_generator.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/06_graphs/notes/islands/island_generator.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import random def generate_island_matrix(width, height, density): matrix = [] for h in range(height): matrix.append([0] * width) for x in range(width): for y in range(height): print(random.random() < density) if random.random() < density: matrix[y]...
25.466667
51
0.58377
3114179435ef6f985b271a252fb0c5d7eac0fc13
4,948
py
Python
venv/Lib/site-packages/pynance/data/feat.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
35
2015-03-12T04:16:14.000Z
2020-12-17T18:10:15.000Z
venv/Lib/site-packages/pynance/data/feat.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
31
2015-03-16T21:31:04.000Z
2021-01-26T00:12:34.000Z
venv/Lib/site-packages/pynance/data/feat.py
LeonardoHMS/imobi
6b2b97a05df67ea7d493f7b601382f65c6629cc2
[ "MIT" ]
18
2015-09-30T10:40:26.000Z
2021-01-25T21:20:44.000Z
""" .. Copyright (c) 2014 Marshall Farrier license http://opensource.org/licenses/MIT Data - building features (:mod:`pynance.data.feat`) ============================================================== .. currentmodule:: pynance.data.feat These functions are intended to be used in conjunction with `functools.parti...
33.890411
107
0.644907
31b520a8cc65005686a9f05d261bdc9b8ab24d9b
326
py
Python
pacman-arch/test/pacman/tests/sync300.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync300.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync300.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Sync with corrupt database (broken deps)" sp1 = pmpkg("pkg1") sp1.depends = ["pkg2=1.1"] self.addpkg2db("sync", sp1) sp2 = pmpkg("pkg2", "1.0-1") self.addpkg2db("sync", sp2) self.args = "-S %s" % sp1.name self.addrule("PACMAN_RETCODE=1") self.addrule("!PKG_EXIST=pkg1") self.addrule("!PKG_EXIST=p...
21.733333
61
0.680982
b421d65cdc82655aae546a2a74e15ac048dc8550
1,372
py
Python
python/python_new/Python 3/sine.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_new/Python 3/sine.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_new/Python 3/sine.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from pylab import * from math import atan2 def fitSine(tList,yList,freq): ''' freq in Hz tList in sec returns phase in degrees ''' b = matrix(yList).T rows = [ [sin(freq*2*pi*t), cos(freq*2*pi*t), 1] for t in tList] A = matrix(rows) (w,residuals,rank,sing_vals) = lstsq(A,b) ...
29.191489
76
0.643586
8179659dfe689c120667eb17a416d7886a2508e3
1,293
py
Python
tests/test_sdiff.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2016-05-10T13:57:14.000Z
2016-09-29T21:01:53.000Z
tests/test_sdiff.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
3
2015-10-20T22:29:37.000Z
2022-01-18T18:20:06.000Z
tests/test_sdiff.py
KeepSafe/html-structure-diff
83ea2b8ad4b78b140bb5f69e3f2966c9fda01a89
[ "Apache-2.0" ]
1
2016-11-05T04:23:05.000Z
2016-11-05T04:23:05.000Z
from unittest import TestCase import os import sdiff from pathlib import Path from sdiff import ZendeskHelpMdParser def _load_fixture(*path): return open(os.path.join('tests/fixtures', *path)).read() def _read_test_files(dirpath): path = Path(os.path.join('tests/fixtures', dirpath)) filenames = set(f....
33.153846
111
0.591647
481b8c6a67b99aa109a10d80ec0f071bc38ebd6a
910
py
Python
reverse/HolyGrenade/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
1
2019-06-15T11:45:41.000Z
2019-06-15T11:45:41.000Z
reverse/HolyGrenade/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
reverse/HolyGrenade/script.py
killua4564/2019-AIS3-preexam
b13b5c9d3a2ec8beef7cca781154655bb51605e3
[ "MIT" ]
null
null
null
import string import itertools from hashlib import md5 A = string.printable[:-5] flag = u"""ba3a7f3bd92a5d418f5e16886db62674 33e4500b205b80e52dd52e796cba8b7d 7d1c09bbf2025facf6bd0fec0ec6a780 9cedd8dee7b5b87838d7a9bed76df8e5 764d30cb4807c5a870a47b53be6cf662 f1e8fda6c3ff87e43905ea1690624c64 d7939cb11edaa9b1fb05efb4e294...
24.594595
48
0.728571
4840b199d940df8074731ad41bcb9fabf67d0870
4,018
py
Python
kollektiv5gui/generators/SpammingGenerator.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/generators/SpammingGenerator.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/generators/SpammingGenerator.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import requests import os import tempfile import math import time import random import copy import json import io from PIL import Image, ImageDraw from kollektiv5gui.util import api, logging from kollektiv5gui.generators.AbstractGenerator import AbstractGenerator class SpammingGenerator(AbstractGenerator): """ ...
29.115942
77
0.574913
6f7f6d08796da434d094c5dc6f72df153c8b810b
849
py
Python
Utils/py/text2speech/text-to-speach.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
15
2015-01-12T10:46:29.000Z
2022-03-28T05:13:14.000Z
Utils/py/text2speech/text-to-speach.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
2
2019-01-20T21:07:50.000Z
2020-01-22T14:00:28.000Z
Utils/py/text2speech/text-to-speach.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
5
2018-02-07T18:18:10.000Z
2019-10-15T17:01:41.000Z
#!/usr/bin/python # imports import naoqi import argparse import random parser = argparse.ArgumentParser(description='Text-to-speech') parser.add_argument('text', help='Text (string) that should be converted to speech.') args = parser.parse_args() print args if args.text: # init text-to-speech module tts = naoqi.A...
26.53125
85
0.712603
6fa4bdbf2aee112a7dc13443cd08d186cdcd855a
1,098
py
Python
exercises/de/solution_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/de/solution_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/de/solution_02_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import PhraseMatcher from spacy.tokens import Span import json with open("exercises/de/countries.json", encoding="utf8") as f: COUNTRIES = json.loads(f.read()) with open("exercises/de/country_text.txt", encoding="utf8") as f: TEXT = f.read() nlp = spacy.load("de_core_news_sm") ...
31.371429
74
0.712204
d2291f5768a53fd1cd8e5ab8112191582895451e
97
py
Python
Caffe/net.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
794
2018-09-06T07:38:41.000Z
2022-03-16T06:30:37.000Z
Caffe/net.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
111
2018-12-04T11:18:27.000Z
2022-03-31T07:39:11.000Z
Caffe/net.py
JasperMorrison/PytorchToCaffe
04f0066cdc8a9da92591d7361907c3ea53271707
[ "MIT" ]
221
2018-11-22T08:11:03.000Z
2022-03-16T07:11:43.000Z
raise ImportError,'the nn_tools.Caffe.net is no longer used, please use nn_tools.Caffe.caffe_net'
97
97
0.824742
fbd0d47bc962ad8da6f698a002939f91faf2ed97
3,207
py
Python
PyStellar/stellar/psguser/views.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/psguser/views.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/psguser/views.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
from drf_yasg import openapi from drf_yasg.utils import swagger_auto_schema from rest_framework.generics import ListAPIView from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView from psguser.psgSerializer import psgserializer from psguser...
29.694444
81
0.522607
f7aba1a0aeb872d831b7fb0155592d13c2a26585
3,351
py
Python
autojail/config/board_info.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/config/board_info.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/config/board_info.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
from typing import Tuple from ..model import ( Board, HexInt, IntegerList, IRQChip, JailhouseConfig, PlatformInfo, PlatformInfoArm, ) from ..utils.logging import getLogger from .passes import BasePass class TransferBoardInfoPass(BasePass): def __init__(self) -> None: self.logg...
32.852941
78
0.5661
f72bda1f9861b327f93273a74d2beaf0c1884dd9
1,026
py
Python
INBa/2015/Sarocvashin_M/task_4_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Sarocvashin_M/task_4_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Sarocvashin_M/task_4_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 23 # Напишите программу, которая выводит имя, под которым скрывается Илья Арнольдович Файзильберг. Дополнительно необходимо вывести область интересов указанной личности, место рождения, годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). Для хранения в...
46.636364
449
0.783626
f763eee82b463be774a2732d917809592a132c79
5,084
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_syslog.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_syslog.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/storage/netapp/test_netapp_e_syslog.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from ansible_collections.community.general.plugins.modules.storage.netapp.netapp_e_syslog import Syslog from ansible_collections.community.general.tests.unit.modules.utils import AnsibleFailJson, Module...
41
123
0.54406
f7a0ceeda6a28240bf30dcedf1add00a49c53c66
197
py
Python
src/onegov/event/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/event/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/event/collections/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.event.collections.events import EventCollection from onegov.event.collections.occurrences import OccurrenceCollection __all__ = ( 'EventCollection', 'OccurrenceCollection', )
21.888889
69
0.80203