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
65d2b7d41cd15847f42e010d60f8aee2f6de8142
548
py
Python
CodeStatistics/files/f9ff7d3f-a592-42bb-9547-93349682f7ff/django_ajax/app01/models.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/files/f9ff7d3f-a592-42bb-9547-93349682f7ff/django_ajax/app01/models.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
CodeStatistics/files/f9ff7d3f-a592-42bb-9547-93349682f7ff/django_ajax/app01/models.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Classes(models.Model): """ 班级表 """ title = models.CharField(max_length=32) teachers = models.ManyToManyField('Teachers') class Teachers(models.Model): """ 老师表 """ name = models.CharField(max_length=32) class Students...
20.296296
74
0.656934
02eaf93b910920970778a6770f0cb25c4e26d66c
486
py
Python
exercises/fr/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_04_04.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( 'spacy.blank("fr")' in __solution__ ), "As-tu créé le modèle français vierge ?" assert ( "DocBin(docs=docs)" in __solution__ ), "As-tu créé correctement l'objet DocBin ?" assert "doc_bin.to_disk(" in __solution__, "As-tu utilisé la méthode to_disk?" assert "t...
34.714286
86
0.652263
02fc4f363b0129a16dd5869f48480bd007e12e10
101
py
Python
documents/Programmierparadigmen/scripts/python/multiplikation.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
documents/Programmierparadigmen/scripts/python/multiplikation.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
documents/Programmierparadigmen/scripts/python/multiplikation.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
>>> 0.1*0.1*0.3 0.0030000000000000005 >>> (0.1*0.1)*0.3 0.0030000000000000005 >>> 0.1*(0.1*0.3) 0.003
16.833333
21
0.613861
0c287aa7abb9e3641a63a1a546b16447eef5170a
391
py
Python
hackerrank/easy/pangrams.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
hackerrank/easy/pangrams.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
hackerrank/easy/pangrams.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# https://www.hackerrank.com/challenges/pangrams # Enter your code here. Read input from STDIN. Print output to STDOUT import sys string = sys.stdin.readline() flags = [False] * 26 for w in string: if w.isalpha(): i = ord(w.lower()) - ord('a') flags[i] = True; res = 'pangram' for flag in flags:...
17
69
0.616368
ac51619c786229f97cee720ee118ce0d8a4b88da
3,072
py
Python
Algorithms/Implementation/absolute_permutation.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/absolute_permutation.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/absolute_permutation.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from math import sqrt ''' # Sample test case for insight ## INPUT 1 100 2 ## OUTPUT 3 4 1 2 7 8 5 6 11 12 9 10 15 16 13 14 19 20 17 18 23 24 21 22 27 28 25 26 31 32 29 30 35 36 33 34 39 40 37 38 43 44 41 42 47 48 45 46 51 52 49 50 55 56 53 54 59 60 57 58 63 64 61 62 67 68 65 66 71 72 69 70 75...
24.97561
291
0.447266
ac5baa5f1a9965c7f55bd5bbad21a4a18cc3aef0
2,004
py
Python
skills/volume/volume.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
4
2021-01-08T21:08:50.000Z
2021-12-08T15:30:50.000Z
skills/volume/volume.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
skills/volume/volume.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
import alsaaudio class Volume: def __init__(self,language): self.language = language['volumeControl'] #for some this can be Master instead of PCM if you get errors try Master try: self.alsaaudioMixer = alsaaudio.Mixer('PCM') except Exception as ex: self.alsa...
30.363636
86
0.601297
ac852ac326c1df785bb0cac8359b4487cb42a501
25,566
py
Python
myems-api/core/tariff.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
82
2021-02-19T10:24:31.000Z
2022-03-28T06:30:18.000Z
myems-api/core/tariff.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
188
2021-02-22T07:08:30.000Z
2022-03-02T04:11:03.000Z
myems-api/core/tariff.py
guangyuzhang/myems
c88f0620d3e36154a500c755c805333b771d09c0
[ "MIT" ]
54
2021-02-19T08:48:46.000Z
2022-03-30T06:21:34.000Z
import falcon import simplejson as json import mysql.connector import config import uuid from datetime import datetime, timedelta, timezone from core.useractivity import user_logger, access_control class TariffCollection: @staticmethod def __init__(): """"Initializes TariffCollection""" pass ...
47.608939
118
0.507354
ac86fcde5e637f8da71960801c09f9dd8dabdebc
1,127
py
Python
packages/OpenCV/nodes/OpenCV___ReadVideo0/widgets/OpenCV___ReadVideo0___main_widget___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___ReadVideo0/widgets/OpenCV___ReadVideo0___main_widget___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
packages/OpenCV/nodes/OpenCV___ReadVideo0/widgets/OpenCV___ReadVideo0___main_widget___METACODE.py
Shirazbello/Pyscriptining
0f2c80a9bb10477d65966faeccc7783f20385c1b
[ "MIT" ]
null
null
null
# from PySide2.QtWidgets import ... # from PySide2.QtCore import ... # from PySide2.QtGui import ... from PySide2.QtWidgets import QLabel class %NODE_TITLE%_NodeInstance_MainWidget(QLabel): def __init__(self, parent_node_instance): super(%NODE_TITLE%_NodeInstance_MainWidget, self).__init__() # l...
28.175
68
0.581189
ce8ffec7431bcca60e53717e9930a8ba0cee9937
92
py
Python
2014/09/ebola-cases/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/09/ebola-cases/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/09/ebola-cases/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 = '1eTRrkH4Sq_xDA47V7TjjFutAWxtnJXv-dlPIjKiUz5s'
23
68
0.836957
ceba139c023a74d883cf66d44f450f360dee6095
660
py
Python
ELK/kafka/_resources/python-demo/kafka_producer.py
LubinLew/lubinlew.github.io
9a27359c8a5e2288e7203bce766407c9b9baf82f
[ "BSD-2-Clause" ]
null
null
null
ELK/kafka/_resources/python-demo/kafka_producer.py
LubinLew/lubinlew.github.io
9a27359c8a5e2288e7203bce766407c9b9baf82f
[ "BSD-2-Clause" ]
null
null
null
ELK/kafka/_resources/python-demo/kafka_producer.py
LubinLew/lubinlew.github.io
9a27359c8a5e2288e7203bce766407c9b9baf82f
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json from kafka import KafkaProducer topic_name = 'test' bootstrap_servers_list="10.130.12.13:9092" ### producer.send only accept BYTE type # send string producer = KafkaProducer(bootstrap_servers=bootstrap_servers_list) producer.send(topic_name, "string-messag...
24.444444
123
0.766667
f00f99e926e7e6d112d11fefdef5ea159443c7a1
7,031
py
Python
paper_evaluation/IV.H_tampering_telltales/dataLoaderXAI.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
5
2022-03-11T18:08:32.000Z
2022-03-31T13:47:49.000Z
paper_evaluation/IV.H_tampering_telltales/dataLoaderXAI.py
rafaspadilha/timestampVerificationTIFS
bad325e676b0b6087e54f2e280c3600c3b0b767f
[ "MIT" ]
null
null
null
paper_evaluation/IV.H_tampering_telltales/dataLoaderXAI.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 # ##################################################...
38.845304
127
0.514721
33612b67de50bbfcf44c52b6f653713b845cf14a
348
py
Python
BITs/2014/Borsheva_ V_O/task_3_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Borsheva_ V_O/task_3_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Borsheva_ V_O/task_3_6.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №3. Вариант 6 #Борщёва В.О #02.03.2016 print("Герой нашей сегодняшней программы-Самюэл Ленгхорн Клеменс") psev=input("Под каким же именем мы зтого человека? Ваш ответ:") if(psev)==(Марк Твен): print(Все верно:Самюэл Ленгхорн Клеменс-"+psev) else: print("Вы ошиблись. это ни его псевдоним.") input("Н...
26.769231
67
0.718391
0bcff7aa31eb04d03fa22578890c7d7a938a3167
614
py
Python
exercises/pt/exc_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_03_15.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import json from spacy.lang.en import English from spacy.tokens import Doc with open("exercises/en/bookquotes.json", encoding="utf8") as f: DATA = json.loads(f.read()) nlp = English() # Definir a propriedade customizada do Doc: "author" (default None) ____ # Definir a propriedade customizada do Doc: "book" (def...
26.695652
76
0.701954
f0d388e497e32d50bedbe94440d2ab9a4f38ae89
39,332
py
Python
publ/entry.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
27
2018-11-30T21:32:26.000Z
2022-03-20T19:46:25.000Z
publ/entry.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
249
2018-09-30T07:04:37.000Z
2022-03-29T04:31:00.000Z
publ/entry.py
PlaidWeb/Publ
67efc5e32bf25dbac72a83d1167de038b79db5a7
[ "MIT" ]
4
2019-03-01T06:46:13.000Z
2019-06-30T17:45:46.000Z
""" Functions for handling content items """ import email import hashlib import logging import os import typing import uuid import arrow import flask import slugify from pony import orm from werkzeug.utils import cached_property from . import (caching, cards, html_entry, links, markdown, model, path_alias, ...
39.019841
100
0.581181
a87e755c62ae422e0747ac78fb9c7d4fbe99db82
2,088
py
Python
src/ztc/tests/system/vfs/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/tests/system/vfs/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/ztc/tests/system/vfs/__init__.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/env python """ ztc.sytstem.vfs test""" import unittest from ztc.system.vfs import DiskStats, DiskStatsParser class DiskStatsParserTest(unittest.TestCase): def setUp(self): import logging self.logger = logging.getLogger('test') def test_diskstats_line_parser(self): """ Te...
34.229508
78
0.536877
4f90cab9d6e9f22dd47211bee588da4dfc3fcf5f
1,883
py
Python
PyStellar/stellar/Git/dao/git_dao.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/Git/dao/git_dao.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/Git/dao/git_dao.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
import pymysql from stellar.settings import MYSQLUSER, MYSQLNAME, MYSQLPASSWORD, MYSQLHOST, MYSQLPORT class GitOwnerRepo: """ Psg 멤버들의 Github 정보를 가져옴 """ @classmethod def select_github(cls, sql): git_list = [] try: connection = pymysql.connect( user=MYSQLUSER, ...
30.868852
114
0.513542
4fc9d555c83504f55a8fbf934e9c894a8c5213cb
1,076
py
Python
darkCON/2021/misc/Pixelify/picmaker.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
darkCON/2021/misc/Pixelify/picmaker.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
darkCON/2021/misc/Pixelify/picmaker.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import base64 import argparse from PIL import Image import math def make_image(enc, outfile): enc = list(enc) dimension = int(math.sqrt(len(enc)*4))+1 img = Image.new( 'RGB', (dimension,dimension), "black") pixels = img.load() colours = [ (255, 0, 0), (0, 0, 255), (0, 128, 0), (25...
20.301887
71
0.634758
4fd3b419717db6f9cf12b65127d324ec39a9c645
1,411
py
Python
year_3/comppi_1/core/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_1/core/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_1/core/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( index, support, about, apimap, login, logout, adminindex, manageadmin, editregistrant, deleteregistrant, change_org_active_status, registrantindex, manageregistrant, editorg, manageorg, searchorgindex, managereport, searchreportindex, ) url...
37.131579
89
0.689582
8b37bc1bb9387895e503ec229b197efae3a08eca
6,655
py
Python
frappe-bench/env/lib/python2.7/site-packages/github/tests/Event.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/github/tests/Event.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/env/lib/python2.7/site-packages/github/tests/Event.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
125.566038
3,653
0.632457
50d6e0d73e26d29ae9bb259a450a251a222a5511
4,062
py
Python
code/pyod_experiments.py
AndreBruecke/WebAnalyticsOutlierDetection
f77e4ed605d2f954717ba0e1dffbf2046a30ba1e
[ "MIT" ]
null
null
null
code/pyod_experiments.py
AndreBruecke/WebAnalyticsOutlierDetection
f77e4ed605d2f954717ba0e1dffbf2046a30ba1e
[ "MIT" ]
null
null
null
code/pyod_experiments.py
AndreBruecke/WebAnalyticsOutlierDetection
f77e4ed605d2f954717ba0e1dffbf2046a30ba1e
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib import matplotlib.pyplot as plt from time import time from pyod.utils.utility import precision_n_scores from sklearn.preprocessing import MinMaxScaler from sklearn.metrics import roc_auc_score from sklearn.metrics import average_precision_score def runSingleCo...
29.434783
173
0.64771
50ea8975db359ebeb15e3106d1cc995a82e59eed
3,752
py
Python
module/create.py
Goodhand11/Spamer
80e7d44e13417e2eebb14c57653dd6c17d351064
[ "Apache-2.0" ]
null
null
null
module/create.py
Goodhand11/Spamer
80e7d44e13417e2eebb14c57653dd6c17d351064
[ "Apache-2.0" ]
null
null
null
module/create.py
Goodhand11/Spamer
80e7d44e13417e2eebb14c57653dd6c17d351064
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python ####################### # Butuh Bantuan Hubungi 0895401454905 # ####################### mess = """====================================================== Deface Script Creator Ubaii ID Feat Goodhand11. ==============================================...
29.3125
284
0.650853
e8a011bfb49b7c8e679d957de99c3d85da18916e
862
py
Python
IVTa/2014/ALEKSEEV_I_S/task_4_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/ALEKSEEV_I_S/task_4_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/ALEKSEEV_I_S/task_4_50.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 4. Вариант 50. #Напишите программу, которая выводит имя, под которым скрывается Максимилиан Гольдман. #Дополнительно необходимо вывести область интересов указанной личности, место рождения, #годы рождения и смерти (если человек умер), вычислить возраст на данный момент (или момент смерти). #Для хранения все...
35.916667
101
0.780742
d7626f1fc8bff2124f2a3b070bdc334b7c2641d5
7,252
py
Python
research/cv/rcnn/process_data.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/rcnn/process_data.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/rcnn/process_data.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
34.207547
106
0.58701
ad034f8ad8b94967c729cb60dc485c67c265e4db
3,675
py
Python
FX1N/serialCommunication.py
nos86/FX1N
74e0c3b4cde9f39b7f83639bc26cbf59e65f96d9
[ "Apache-2.0" ]
4
2019-12-11T06:43:48.000Z
2022-03-21T05:35:47.000Z
FX1N/serialCommunication.py
nos86/FX1N
74e0c3b4cde9f39b7f83639bc26cbf59e65f96d9
[ "Apache-2.0" ]
1
2020-10-30T09:38:26.000Z
2020-11-02T03:08:59.000Z
FX1N/serialCommunication.py
nos86/FX1N
74e0c3b4cde9f39b7f83639bc26cbf59e65f96d9
[ "Apache-2.0" ]
null
null
null
import serial import logging import re import exceptions class serialCommunication: STX = b"\x02" #Start of text ETX = b'\x03' #End of text EOT = b'\x04' #End of transmission ENQ = b'\x05' #Enquiry ACK = b'\x06' #Acknowledge LF = b'\x0A' #Line Feed CL = b'\x0C' #Clear CR = b'\x0D' #...
37.121212
152
0.595646
0f5a7d1736d5fc7c3610c5295f93b0991e55b709
1,491
py
Python
opencv_tutorial/opencv_python_tutorials/Gui_Features/images.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Gui_Features/images.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
opencv_tutorial/opencv_python_tutorials/Gui_Features/images.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 25 17:18:41 2019 @author: jone """ #%% import cv2 from os import path fname = path.join('Dataset', 'lena.jpg') original = cv2.imread(fname, cv2.IMREAD_COLOR) gray = cv2.imread(fname, cv2.IMREAD_GRAYSCALE) unchange = cv2.imread(fname, cv2.IMREAD_UNCHANGED) cv2.namedWind...
23.296875
68
0.690141
0f894606f0d722a50c15b249c622f3b25fcaa9ba
1,056
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex03_tree_height.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex03_tree_height.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch08_binary_trees/solutions/ex03_tree_height.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden from ch08_binary_trees.util import TreeUtils from ch08_binary_trees.intro.intro_binary_search_tree import insert from ch08_binary_trees.intro.intro_binary_tree_node import BinaryTreeNode def get_height(parent): # rekursiver A...
22.956522
73
0.682765
7e16c598dbdb7c939e939def9e5d245a13942ab0
1,900
py
Python
Utils/py/RL_ActionSelection/env_0/tools/field_info.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/RL_ActionSelection/env_0/tools/field_info.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/RL_ActionSelection/env_0/tools/field_info.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from naoth import math2d as m2d ball_radius = 100 x_length = 9000 y_length = 6000 x_field_length = x_length + 2*700 y_field_length = y_length + 2*700 x_penalty_area_length = 600 y_penalty_area_length = 2200 center_circle_radius = 750 x_penalty_mark_distance = 1300 penalty_cross_radius = 50 field_lines_width = 2.3...
32.20339
107
0.827895
7d221f72975ba00f34d56c8e3a613f522e3fd9ea
8,948
py
Python
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/ernie/train.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-19T09:58:37.000Z
2022-03-19T09:58:37.000Z
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/ernie/train.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/ernie/train.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
49.988827
207
0.720049
7d414181543bbdb6ee7e6a653cafd3a67f86ca93
2,854
py
Python
python_experiments/run_vldbj_experiments/run_other_algorithms.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/run_vldbj_experiments/run_other_algorithms.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/run_vldbj_experiments/run_other_algorithms.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from exec_utilities import time_out_util from exec_utilities.exec_utils import * def run_exp(): other_exec_path_lst = [ '/homes/ywangby/workspace/yche/git-repos/SimRank/SPS-Variants/sling/build/sling_all', '/homes/ywangby/workspace/yche/git-repos/SimRank/SPS-Variants/isp-yche/build/isp_ap', ...
48.372881
109
0.641556
bc236c9a7d039cb9bc931ac04076e64fe0f6def9
741
py
Python
Algorithms/Greedy/CuttingBoards.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Greedy/CuttingBoards.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Greedy/CuttingBoards.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 q = int(raw_input()) for _ in xrange(q): m, n = map(int, raw_input().split()) cys = sorted(map(int, raw_input().split())) cxs = sorted(map(int, raw_input().split())) seg_x = 1 seg_y = 1 total_cost = 0 while cys or cxs: if cys and cxs: if cys[-1] >= cx...
22.454545
47
0.419703
cb3b3d62e657b3e898c0eeefc961d506d3ed4a70
4,142
py
Python
tasks/models.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
3
2020-03-21T22:32:56.000Z
2020-03-28T23:06:38.000Z
tasks/models.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
null
null
null
tasks/models.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
null
null
null
from django.db import models from django import forms from django.core.validators import MinValueValidator, MaxValueValidator from geopy.distance import geodesic import requests class Category(models.Model): class Meta: verbose_name = 'Kategorie' verbose_name_plural = 'Kategorien' nam...
36.333333
229
0.688556
cb3d7926fa7586c05d05579f736dc9b6fb5bf592
1,320
py
Python
web/interceptors/ApiAuthInterceptor.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
2
2019-06-10T08:57:47.000Z
2021-06-12T16:22:15.000Z
web/interceptors/ApiAuthInterceptor.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
web/interceptors/ApiAuthInterceptor.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from application import app from flask import request, g, jsonify from common.models.member.Member import Member from common.libs.member.MemberService import MemberService import re ''' api认证 ''' @app.before_request def before_request_api(): api_ignore_urls = app.config['API_IGNORE_URLS'...
19.411765
69
0.646212
cb534b915c950cbefa1d2905ef8be3406623a71d
538
py
Python
INBa/2015/Sarocvashin_M/task_1_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Sarocvashin_M/task_1_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Sarocvashin_M/task_1_23.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1. Вариант 23 #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Конрад Джозеф Английский писатель Юзеф Теодор Конрад Коженевский. После вывода информации программа должна дожидаться пока пользователь нажмет Enter для выхода. # Сароквашин Максим # 23.02.2016 print ...
67.25
256
0.82342
384177b62b810ef34865c176241056b5081e6c88
476
py
Python
examples/send_message_example.py
Hofei90/telegram_api
8e910e15d7147db4b3828fa6fd1cfe2f5d33c077
[ "MIT" ]
null
null
null
examples/send_message_example.py
Hofei90/telegram_api
8e910e15d7147db4b3828fa6fd1cfe2f5d33c077
[ "MIT" ]
4
2019-04-24T12:56:34.000Z
2020-06-25T20:16:56.000Z
examples/send_message_example.py
Hofei90/telegram_api
8e910e15d7147db4b3828fa6fd1cfe2f5d33c077
[ "MIT" ]
null
null
null
import os import toml import telegram_bot_api as api def config_laden(): configfile = os.path.join(SKRIPTPFAD, "example_cfg.toml") with open(configfile) as file: return toml.loads(file.read()) SKRIPTPFAD = os.path.abspath(os.path.dirname(__file__)) CONFIG = config_laden() def main(): user = ...
19.04
61
0.676471
38b867b8825b691d5d3ba1e4d8920f5ae046137e
3,440
py
Python
python/oneflow/compatible/single_client/benchmarks/cnn_benchmark/benchmark_util.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/benchmarks/cnn_benchmark/benchmark_util.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/benchmarks/cnn_benchmark/benchmark_util.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...
33.72549
103
0.542733
2ae4dc1673d9af65cd09f20353efc0d4b20d0850
886
py
Python
source/pkgsrc/graphics/MesaLib/patches/patch-src_mapi_glapi_gen_glX__XML.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/MesaLib/patches/patch-src_mapi_glapi_gen_glX__XML.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/MesaLib/patches/patch-src_mapi_glapi_gen_glX__XML.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-src_mapi_glapi_gen_glX__XML.py,v 1.1 2021/01/06 15:50:02 triaxx Exp $ Remove deprecated .getchildren() that are no longer supported in Python 3.9. https://cgit.freedesktop.org/mesa/mesa/commit/src/mapi/glapi/gen/glX_XML.py?id=7a680 --- src/mapi/glapi/gen/glX_XML.py.orig 2021-01-06 15:15:12.263181000 +0...
34.076923
84
0.572235
2afa5ab5068f6068fa5db8b8c9338c26ef09fa3a
5,734
py
Python
Backend/misc/cheapest_price.py
olivaresf/AWattPrice
db50930a016a4263638af64704d3233cc27e142b
[ "BSD-3-Clause" ]
8
2020-10-22T14:47:54.000Z
2022-01-23T20:17:51.000Z
v1_backend/misc/cheapest_price.py
sp4c38/AwattarApp
b914e8042e5cdcb84485d6d45133a00244662bda
[ "BSD-3-Clause" ]
75
2020-11-16T16:13:28.000Z
2022-03-27T09:45:56.000Z
v1_backend/misc/cheapest_price.py
sp4c38/AwattarApp
b914e8042e5cdcb84485d6d45133a00244662bda
[ "BSD-3-Clause" ]
4
2020-11-10T21:21:08.000Z
2021-10-20T12:35:33.000Z
#!/usr/bin/env python3 """Calculate the cheapest price to check the AWattPrice App. Call: ./cheapest_price.py 120 for 120 minutes of continuous consumption. This is an alternative implementation to test the AwattPrice App. Note, the file ~/awattprice/data/awattar-data-de.json must be updated. """ import json...
36.062893
103
0.668294
fad32edd4da2e98700814805a4b0ff963da35175
952
py
Python
deploy.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
deploy.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
deploy.py
nebulousdog/catcobralizard
0be598b9e76addbe25684ca60aa5ae324cc42183
[ "MIT" ]
null
null
null
"""deploy a fresh catcobralizard instance""" import requests from utils.keys import get_key_fingerprints from utils.requests import headers from utils.cache import retrieve_token def deploy_droplet(token): """deploy a new droplet""" droplet_info = { 'name': 'catcobralizard', 'region': 'sfo2',...
28.848485
83
0.67437
4f01f46d4248d2ee9f7ab80e7228b1125cfd87ec
1,752
py
Python
python/en/archive/dropbox/miscellaneous_python_files/fft.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/fft.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/dropbox/miscellaneous_python_files/fft.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# 05-02 FFT 기본; 파이썬(python)으로 FFT 해석하고 그래프 그리기 # Q. 파이썬에서 FFT를 하고 amplitude, phase 그래프를 어떻게 그리지? # A. numpy.fft.fft(), abs(), angle() 함수를 써보자. # https://techreviewtips.blogspot.com/2017/11/05-02-fft.html import matplotlib.pyplot as plt import numpy as np import math # Create a signal fs = 2000 # Hz T = 1/fs t_max ...
23.675676
65
0.665525
87841cde66da6c8fbe3b554bbc04a573f34683a4
2,451
py
Python
ggit_platform/models.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
1
2019-02-27T21:20:54.000Z
2019-02-27T21:20:54.000Z
ggit_platform/models.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
null
null
null
ggit_platform/models.py
girlsgoit/GirlsGoIT
447cd15c44ebee4af9e942a079d681be8683239f
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from markdownx.models import MarkdownxField # Track model class Track(models.Model): title = models.CharField(max_length=50) subtitle = models.TextField() icon = models.CharField(max_length=100) hero_image = models.CharField(max_length=200...
29.890244
72
0.727458
57771bb833d0ce85c4926306a95ec0e318754e6b
1,203
py
Python
Problems/Depth-First Search/medium/BTColoringGame/bt_coloring_game.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/BTColoringGame/bt_coloring_game.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/BTColoringGame/bt_coloring_game.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def btreeGameWinningMove(self, root: Optional[TreeNode], n: int, x: int) -> bool: self.parent, self.le...
28.642857
91
0.620116
10432a5676889f1e4960cd887c927977d2f38924
39
py
Python
data-pipeline/src/data_pipeline/data_types/variant/transcript_consequence/__init__.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/transcript_consequence/__init__.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/transcript_consequence/__init__.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
from .vep import consequence_term_rank
19.5
38
0.871795
52a64fd34c575b64c464d13c3c681630d03d8f39
20,984
py
Python
src/main/python/supervolt/supervoltbatterygui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/supervolt/supervoltbatterygui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/supervolt/supervoltbatterygui.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys sys.path.append('..') import os # for pyinstaller dllpath = os.path.dirname(os.path.realpath(sys.argv[0])) if dllpath not in os.environ: os.environ["PATH"] += os.pathsep + dllpath import logging import threading import time import json # import supervolt.supervoltbattery try: ...
40.745631
135
0.485989
ead40a3ed8bca9fa401026b213626241729f5c43
25,450
py
Python
code/00_covariates/2-4_CALIBER-categories_pre2020.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/00_covariates/2-4_CALIBER-categories_pre2020.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/00_covariates/2-4_CALIBER-categories_pre2020.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # Categorise CALIBER phenotypes # MAGIC # MAGIC **Description** # MAGIC # MAGIC This maps 306 of the CALIBER phenotypes by *Kuan et al.* to the following 16 categories: # MAGIC # MAGIC * Diseases of the Circulatory System # MAGIC * Diseases of the Digestive Sys...
40.916399
358
0.811866
eae08eb2b8a4b5bfef3a60448457a2f8aebd17ea
168
py
Python
languages/python/exercises/concept/dicts/dicts.py
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
null
null
null
languages/python/exercises/concept/dicts/dicts.py
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
1
2020-01-26T20:08:06.000Z
2020-01-26T20:08:06.000Z
languages/python/exercises/concept/dicts/dicts.py
AlexLeSang/v3
3d35961a961b5a2129b1d42f1d118972d9665357
[ "MIT" ]
null
null
null
def create_inventory(items): pass def add_items(inventory, items): pass def delete_items(inventory, items): pass def list_inventory(inventory): pass
14
35
0.720238
dc9b9dacf9655dd642f3a0f40b1b8d3289199301
4,977
py
Python
haas_lib_bundles/python/docs/examples/ws2812_strip/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/ws2812_strip/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/ws2812_strip/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import random # 随机数生成库 import neopixel # ws2812驱动库 import machine # 设备驱动库 import ujson # json字串解析库 import utime # 延时API所在组件 import network # Wi-Fi功能所在库 from aliyunIoT import Device # 连接阿里云物联网平台的组件 # 灯带点亮模式 ligh...
24.278049
75
0.540687
7624f360de99680f8f45c07d060b97b5f4e75fae
1,901
py
Python
examples/simultaneous_translation/stacl/utils/tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/simultaneous_translation/stacl/utils/tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/simultaneous_translation/stacl/utils/tokenizer.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
36.557692
74
0.672278
87517b3fd041a93ed0b7c9f8451515a521a5463c
3,365
py
Python
tests/onegov/core/test_directive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_directive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/core/test_directive.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.directives import query_form_class from onegov.core.framework import Framework from onegov.core.security import Secret from webtest import TestApp as Client from wtforms import Form def test_form_directive(redis_url): class App(Framework): pass @App.path(path='/') class Root(obj...
30.87156
78
0.660327
87774d5977fb799cfd4a3410c6dedeb13f2c931b
141
py
Python
models/__init__.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
4
2015-07-09T21:14:22.000Z
2019-07-02T21:53:50.000Z
models/__init__.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
null
null
null
models/__init__.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
null
null
null
# Copyright 2014 John Reese # Licensed under the MIT license from amazon import amazon_links from quotes import db, Episode, Quote, Passage
23.5
46
0.801418
0dab01cbecc18ea241059bef7979e827d57c31e6
1,001
py
Python
python/dir_monitor.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
python/dir_monitor.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
python/dir_monitor.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import os from time import sleep from PIL import Image import pytesseract pytesseract.pytesseract.tesseract_cmd = r'C:/tesseract-ocr/tesseract' path_to_watch = "ignore/" before = dict ([(f, None) for f in os.listdir (path_to_watch)]) print(before) while 1: sleep (1) after = dict ([(f, None) for f in os.listd...
32.290323
99
0.59041
df0d88e50c05e52076cb2fe807d43e530b70d074
422
py
Python
leetcode/383-Ransom-Note/RansomNote.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/383-Ransom-Note/RansomNote.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/383-Ransom-Note/RansomNote.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def canConstruct(self, ransomNote, magazine): """ :type ransomNote: str :type magazine: str :rtype: bool """ cnts = [0] * 26 for l in magazine: cnts[ord(l) - 97] += 1 for l in ransomNote: i = ord(l) - 97 ...
24.823529
49
0.447867
df72a0e8dc96485f02aac0199bf3f3ad591ae774
583
py
Python
users/migrations/0003_auto_20190402_0149.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/migrations/0003_auto_20190402_0149.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
users/migrations/0003_auto_20190402_0149.py
rocky-roll-call/rrc-backend
02e8e11c3dab7661e48650e2e861a4a97788a4ce
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-04-02 01:49 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [("users", "0002_userphoto")] operations = [ migrations.RenameField( model_name="profile", old_name="full_name", ne...
25.347826
71
0.608919
10c14ad8d2d9579ccab436969cffcf1ca700eea9
235
py
Python
flipui/util.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
flipui/util.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
flipui/util.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
from PySide2.QtCore import QTimer def createSingleShotTimer(interval: int, timeoutSlot): result = QTimer() result.setSingleShot(True) result.setInterval(interval) result.timeout.connect(timeoutSlot) return result
23.5
54
0.757447
800356f846e3bfaf8decc337959615fe9d403e14
126
py
Python
python_lessons/freecodecamp_python/013_dict_counts_for_in.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/013_dict_counts_for_in.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/freecodecamp_python/013_dict_counts_for_in.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
counts = { 'chuck' : 1 , 'annie' : 42, 'jan': 100} for key in counts: if counts[key] > 10: print(key, counts[key])
31.5
50
0.547619
801c95bcc53992d2bec617f826de24ca6ae50c13
11,319
py
Python
AustinBot/all_cogs/anime.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/anime.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
AustinBot/all_cogs/anime.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
from . import sql, log, BASE_PATH, Page, MyCog, chunk from datetime import datetime as dt, timedelta as td from discord import File from discord.ext import commands, tasks from discord.errors import HTTPException as ImageToLargeException import asyncio import requests as r from praw import Reddit from PIL import Image ...
30.758152
173
0.685573
805537a1b3a8abda8ca835763f28da4c9d701fbc
939
py
Python
Codeforces/642-3/A.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/642-3/A.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/642-3/A.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
def input1(type = int): return type(input()) def input2(type = int): [a, b] = list(map(type, input().split())) return a, b def input3(type = int): [a, b, c] = list(map(type, input().split())) return a, b, c def input_array(type = int): return list(map(type, input().split())) def input_string(): s = in...
17.388889
58
0.510117
338488e882a9c299a3d3ff8338aef66802f5877e
4,740
py
Python
misc/old_pro.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
misc/old_pro.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
misc/old_pro.py
YoshimitsuMatsutaIe/hoge_flow_test
22e2e2ce043a3107bd06449f6f9958641293e414
[ "MIT" ]
null
null
null
"""使ってないプログラム""" ## グラフで確認 ### fig = plt.figure() ax = fig.add_subplot(111, projection='3d') ax.set_xlabel("X[m]") ax.set_ylabel("Y[m]") ax.set_zlabel("Z[m]") #ax.plot(origin_positions[0:2, 0], origin_positions[0:2, 1], origin_positions[0:2, 2], "-", label = "base") # ax.plot(origin_positions[3:5, 0], origin_positi...
71.818182
129
0.668987
894fcea9cda8501fd1db4b7ebbf0daeb84bfd92b
4,549
py
Python
10.3389/fgene.2020.567262/local/scripts/replace_fa_gff.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/replace_fa_gff.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/replace_fa_gff.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys def kv_decode(form): cols = form.split(";") keyval = {} for c in cols: kv = c.split("=") if len(kv) == 1: keyval[kv[0]] = "T" else: keyval[kv[0]] = kv[1] return keyval def read_fasta(filename): fp = open(filename, "r"...
30.530201
92
0.493515
897b4fac117699daba8f0dbe82384e564fd130e0
861
py
Python
2_Data_Structures/week1_basic_data_structures/tree_height/tree_height.py
AnthonyRChao/UCSD-Data-Structures-and-Algorithms-Specialization
877d7f1d7f3d3d9d6a0c6cda2421ec130b64da3d
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Data Structures & Algorithms/Algorithm Toolbox/week1_basic_data_structures/2_tree_height/tree_height.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
39
2020-04-30T02:28:35.000Z
2022-02-13T21:30:02.000Z
Data Structures & Algorithms/Algorithm Toolbox/week1_basic_data_structures/2_tree_height/tree_height.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
# python3 import sys import threading def compute_height(n, parents): # Replace this code with a faster implementation max_height = 0 for vertex in range(n): height = 0 current = vertex while current != -1: height += 1 current = parents[current] max...
26.90625
70
0.671312
898e2f50c7ca0b1ccd7285f1aba25525d4885cb7
693
py
Python
pacman-arch/test/pacman/tests/remove070.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/remove070.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/remove070.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Remove a package with various directory overlaps" self.filesystem = ["lib/alsoonfs/randomfile"] p1 = pmpkg("pkg1") p1.files = ["bin/pkg1", "opt/", "lib/onlyinp1/", "lib/alsoonfs/"] p2 = pmpkg("pkg2") p2.files = ["bin/pkg2", "opt/", "lib/...
23.1
69
0.633478
7f328b1d95ad3fc16552ac7619109a0587dfdfe8
421
py
Python
frappe-bench/apps/erpnext/erpnext/domains/manufacturing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/domains/manufacturing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/domains/manufacturing.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
data = { 'desktop_icons': [ 'Item', 'BOM', 'Customer', 'Supplier', 'Sales Order', 'Purchase Order', 'Work Order', 'Task', 'Accounts', 'HR', 'ToDo' ], 'properties': [ {'doctype': 'Item', 'fieldname': 'manufacturing', 'property': 'collapsible_depends_on', 'value': 'is_stock_item'}, ], 'set_v...
19.136364
116
0.60095
12600bcbb6e120723d0bff61e5f6770862891b73
894
py
Python
python/data_sutram/scraper/geo_coder.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/scraper/geo_coder.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/scraper/geo_coder.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import geocoder import requests freegeoip = "http://freegeoip.net/json" geo_r = requests.get(freegeoip) geo_json = geo_r.json() address=input('enter an address: ') g= geocoder.google(address) lat_ad=g.latlng[0] lon_ad=g.latlng[1] user_postition = [geo_json["latitude"], geo_json["longitude"]] lat_ip=user_postition[0]...
26.294118
99
0.720358
f6472a6695765ab6dc3dfbd54c91b61a05a6311a
2,195
py
Python
reports/sep/code/encode_record2.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2020-04-17T12:27:06.000Z
2020-04-17T12:27:06.000Z
reports/sep/code/encode_record2.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
1
2022-02-27T13:13:17.000Z
2022-02-27T13:13:17.000Z
reports/sep/code/encode_record2.py
klawr/deepmech
61de238f1d4b1b867ec1d5f4e4af2a3b25a5abff
[ "MIT" ]
null
null
null
import tensorflow as tf import json from tqdm import tqdm from os import mkdir, path def read_config_file(config_file): with open(config_file) as config: return json.load(config) def encode_record(config, labels, target_dir, name): try: mkdir(target_dir) except: pass def im...
32.279412
74
0.609567
dcbd5c59b55a94614c7f038c3b94ebc7cdef78a8
4,029
py
Python
test/test_npu/test_network_ops/test_avg_pool3d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_avg_pool3d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_avg_pool3d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licen...
41.536082
93
0.627203
d325125c625ac3453759eefb4501fc68a91c950d
2,528
py
Python
test/test_tag06.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag06.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag06.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from io import StringIO try: from pyventskalender import tag06_loesung as heute except ImportError: from pyventskalender import tag06 as heute def make_fake_input(replies, prompts): """ Create a function to use as mock for `input` that wil...
40.126984
85
0.629351
6cd0067ee59f0189a3407118430e102726b534ce
454
py
Python
verto/errors/InteractiveMissingTextError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/errors/InteractiveMissingTextError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/errors/InteractiveMissingTextError.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.errors.Error import Error class InteractiveMissingTextError(Error): '''Exception raised when an interactve is missing text. Attributes: tag: tag which was not matched argument: the argument that was not found ''' def __init__(self, tag, argument): self.tag = tag ...
26.705882
63
0.64978
9f2fbe67fe30fc0c3eadd89510c469e786ab8d4c
116
py
Python
image_inhance/config.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
image_inhance/config.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
image_inhance/config.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
path_image = "/home/vuong/Downloads/dark_images_and_enhancement/z2487266498351_78b28a538a87a32dc8707db9b2fc0409.jpg"
116
116
0.905172
e29353143d8995a0fe04b03db3f8c9c7c032a248
2,244
pyde
Python
sketches/lights/lights.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/lights/lights.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/lights/lights.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# Licht und Schatten lightMode = 0 lightDirection = 0 def setup(): size(640, 480, P3D) frame.setTitle("Licht und Schatten") def draw(): global lightMode, lightDirection background(0) # Lichter setzen if lightMode == 0: noLights() elif lightMode == 1: lights() elif...
28.405063
65
0.497772
2c414b6c71a533d49da79a5cc584171d22959523
951
py
Python
7_funktionen/5_meinStempel.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
7_funktionen/5_meinStempel.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
7_funktionen/5_meinStempel.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Dein Stempel - Ändere die Funktion so, dass eine interessantere Formenkonfiguration zeichnet. - Rufe sie aus einer Schleife heraus aus und drucke sie mehrfach auf die Fläche. - Rotiere das Koordinatensystem jeweils um einige Grad, bevor du «stempelst». """ def myStamp(x, y): x1 = x + 50 y1 = y + 50 x2...
17.943396
80
0.55205
b3979129402361a45d0d8a5fde3a10a1bc2f4cb2
1,077
py
Python
Utils/py/PathPlanner/plot.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/plot.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/PathPlanner/plot.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import numpy as np from sys import argv from matplotlib import pyplot as plt from matplotlib.patches import Circle import sim all = np.load("current.npy") targets = all[0] LPG = all[1] B = all[2] naiv = all[3] obstacles = all[4] for k in range(0, len(targets)): ax = plt.gca() ax.set_xli...
27.615385
109
0.542247
457b74dd4d8b7a37cbe135da9851b40faa9a7a65
6,183
py
Python
stitcher.py
m000/chatgrab
012ae427bfdc74b85d2404d74242dee1d4663169
[ "Apache-2.0" ]
null
null
null
stitcher.py
m000/chatgrab
012ae427bfdc74b85d2404d74242dee1d4663169
[ "Apache-2.0" ]
3
2021-06-08T19:01:46.000Z
2022-03-11T23:15:51.000Z
stitcher.py
m000/chatgrab
012ae427bfdc74b85d2404d74242dee1d4663169
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json import operator import logging import sys import numpy import math import itertools from pathlib import Path from functools import reduce from PIL import Image, ImageStat, ImageChops CONFIG = 'stitcher.json' JPEG_QUALITY = 90 logger = logging.getLogger() def image_stats(img, cmpban...
33.603261
169
0.615882
2fb52189d5e0906251817c2f02a76bcd943768ae
3,928
py
Python
cloud/global/lambda/k8s-weave-cleaner/service.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
cloud/global/lambda/k8s-weave-cleaner/service.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
cloud/global/lambda/k8s-weave-cleaner/service.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
# -*- coding: utf-8 -*- import os, re from kubernetes import config from kubernetes.client import configuration from kubernetes.client.apis import core_v1_api from kubernetes.client.rest import ApiException def handler(event, context): if 'local_config' in os.environ and os.environ['local_config'].lower() == 'true'...
26.540541
125
0.619908
4436df5628c3550c69cfc0f0492fb0cc28404bae
551
py
Python
nz_crawl_demo/day2/requests/biquge.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day2/requests/biquge.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day2/requests/biquge.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
import requests url = "http://www.xbiquge.la/login.php?jumpurl=http://www.xbiquge.la/" data = { "LoginForm[username]":"kangbazi666", "LoginForm[password]":'kangbazi666', } headers = { 'User-Agent':"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:64.0) Gecko/20100101 Firefox/64.0" } #登录 session = requests.Session(...
26.238095
91
0.6951
9228caab6f5883b0bf9921c34c0499d23863c89f
6,323
py
Python
FitDistWithPyro/fit_beta_distribution.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
null
null
null
FitDistWithPyro/fit_beta_distribution.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-02-11T23:44:52.000Z
2021-02-11T23:44:52.000Z
FitDistWithPyro/fit_beta_distribution.py
stanton119/data-analysis
b6fda815c6cc1798ba13a5d2680369b7e5dfcdf9
[ "Apache-2.0" ]
1
2021-12-16T01:02:23.000Z
2021-12-16T01:02:23.000Z
# %% [markdown] # # Fitting a Beta Distribution with Pyro # # Here we assume we are flipping a slightly biased coin. # We think the probability of a heads is close to 0.5, but we are not sure. # We want to fit a beta distribution to the random observed data. # # References: # * [http://pyro.ai/examples/svi_part_i.ht...
31.457711
139
0.726396
2bc1012f6ffb26c1a96e16523ff3105f4a41f04a
4,771
py
Python
official/cv/nima/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/nima/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/nima/train.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...
43.372727
107
0.705512
a6d87d1317fffdc2bf5955195ff85b8c075ce9d1
1,685
py
Python
python/en/archive/books/jump2python/j2p-05_6_3-import_modules-test_threading.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-05_6_3-import_modules-test_threading.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/books/jump2python/j2p-05_6_3-import_modules-test_threading.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ j2p-05_6_2-import_modules-test_threading.py 스레드를 다루는 threading 모듈 # 프로세스 (Process) # = 컴퓨터에서 동작하고 있는 프로그램 # 1개의 프로세스는 1가지 일만 할 수 있다. # 스레드를 이용하면 한 프로세스 내에서 2가지 이상의 일을 동시에 수행할 수 있다. """ import threading import time def say( msg ): while True: time.sleep(1) ...
14.525862
68
0.556677
5b685f9ae0efbc75dea53eca0fef90d5128752ff
1,067
py
Python
scripts/generate_querygraph.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
2,816
2018-06-26T18:52:52.000Z
2021-04-06T10:39:15.000Z
scripts/generate_querygraph.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
1,310
2021-04-06T16:04:52.000Z
2022-03-31T13:52:53.000Z
scripts/generate_querygraph.py
AldoMyrtaj/duckdb
3aa4978a2ceab8df25e4b20c388bcd7629de73ed
[ "MIT" ]
270
2021-04-09T06:18:28.000Z
2022-03-31T11:55:37.000Z
# generate_querygraph.py # This script takes a json file as input that is the result of the QueryProfiler of duckdb # and converts it into a Query Graph. import os import sys from python_helpers import open_utf8 sys.path.insert(0, 'benchmark') import duckdb_query_graph arguments = sys.argv if len(arguments) <= 1: ...
23.711111
90
0.688847
341ce8455c9b979f76297480ec20fb423ce14c2d
1,325
py
Python
src/test/tests/databases/multi_format2.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/multi_format2.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/multi_format2.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: multi_format2.py # # Tests: Using multiple file formats types in the same engine. # # Programmer: Jeremy Meredith # Creation: March 23, 2004 # # Tests a strange case related to the original mu...
25
78
0.638491
caa1ce1e8a5b25fe9f6dc63d72e91fe3f2c35151
953
py
Python
Graphs/Popup_ai.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
2
2020-11-25T07:53:48.000Z
2021-09-19T14:19:51.000Z
Graphs/Popup_ai.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
Graphs/Popup_ai.py
Tocha4/-Displacement--Chromatography
0baf4f9e2d23b39f610217b048d799c6403a259e
[ "MIT" ]
null
null
null
from PyQt5.QtWidgets import QApplication import sys import numpy as np import matplotlib.pyplot as plt import os if 'Ui_Graph_AI' in os.listdir(): from graph_AI import Ui_Graph_AI from graphAiCanvas import PlotCanvas_AI else: from Graphs.graph_AI import Ui_Graph_AI from Graphs.graphAiCanvas import Plot...
24.435897
83
0.675761
b6f9951a16868b02b779d61bb0f3a2ef3ef56e14
52,902
py
Python
Packs/GroupIB_ThreatIntelligenceAttribution/Integrations/GroupIBTIA/GroupIBTIA.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GroupIB_ThreatIntelligenceAttribution/Integrations/GroupIBTIA/GroupIBTIA.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GroupIB_ThreatIntelligenceAttribution/Integrations/GroupIBTIA/GroupIBTIA.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * """ IMPORTS """ import json from datetime import datetime, timedelta from typing import Dict, Generator, List, Optional, Tuple, Union import dateparser import urllib3 import random # Disable insecure warnings urllib3...
40.725173
129
0.536861
f3f102bcd53cb8b3809d079cb7b8e082f38d66d7
476
py
Python
packages/watchmen-model/src/watchmen_model/common/pagination.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/common/pagination.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/common/pagination.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Any, Dict, List, Union from pydantic import BaseModel from .model import DataModel class Pageable(DataModel, BaseModel): pageNumber: int = None pageSize: int = None PageDataCell = Any """ data row with name """ PageDataRow = Union[Dict[str, PageDataCell], DataModel] PageDataSet = Union[List[D...
17
67
0.722689
edd12c5e28bc40c97b550868142d1c80f51dcb86
241
py
Python
python-test.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
python-test.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
python-test.py
haenno/FOM-BSc-WI-Semster3-Skriptsprachen-Python
bb34b6b1ba7e8fe7b22ce598a80d5011122c2d4a
[ "MIT" ]
null
null
null
def prnt (parm): print(str(parm) + " ==> " + eingText) while True: i = int(input ("Wie oft gruessen? ")) eingText = "Hallo Welte, Erde,..." while i > 0: prnt(i) i = i - 1 print("Geschafft!")
17.214286
43
0.473029
edf54ff64a79958d136e730469924c4025d22a08
796
py
Python
Problems/Depth-First Search/easy/MaxDepthNaryTree/max_depth_nary_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/easy/MaxDepthNaryTree/max_depth_nary_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/MaxDepthNaryTree/max_depth_nary_tree.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
class Node: def __init__(self, val=None, children=None): self.val = val self.children = children # Recursive def maxDepth(root: 'Node') -> int: if not root: return 0 def search_max(cur_root: 'Node', depth: int): if not cur_root.children: return depth re...
24.875
81
0.589196
b665b7349583bdd8a9fb95db08b9072641211332
2,580
py
Python
src/onegov/election_day/views/election/data.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/data.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/election/data.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Election from onegov.core.security import Public from onegov.core.utils import normalize_for_url from onegov.election_day import _ from onegov.election_day import ElectionDayApp from onegov.election_day.layouts import ElectionLayout from onegov.election_day.utils import add_last_modified_heade...
25.294118
74
0.701938
fcf893e716f74a9df8ee65e0b9bce77a44c7ece8
1,069
py
Python
source/pkgsrc/inputmethod/ibus-array/patches/patch-setup_main.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/inputmethod/ibus-array/patches/patch-setup_main.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/inputmethod/ibus-array/patches/patch-setup_main.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup_main.py,v 1.1 2019/05/15 14:23:15 leot Exp $ Consistently use spaces instead of tabs to avoid Python 3 TabError-s. --- setup/main.py.orig 2014-11-01 10:35:57.000000000 +0000 +++ setup/main.py @@ -38,8 +38,8 @@ class Setup: self.__create_ui() def __create_ui(self): - gettext.bindte...
34.483871
81
0.599626
94ad689ab640542b84b1292c4462e89ad3b703d2
857
py
Python
0-notes/job-search/SamplesDSAlgos/search/search_binary.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/SamplesDSAlgos/search/search_binary.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/SamplesDSAlgos/search/search_binary.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# BINARY SEARCH # Only works if array is sorted # break into halves several times, being able to eliminate halves # quickly to find what you're looking for # time complexity: Best O(1) | Avg O(log(n)) | Worst O(log(n)) # space complexity: O(1) def binary_search(arr, target): # arr ← sorted array ...
29.551724
71
0.591599
ec86dbaab5b1bbb3ecd9d2b1430834c8b8ea8cbc
2,588
py
Python
azext_keyvault/keyvault/models/deleted_sas_definition_item_py3.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
2
2019-06-12T13:44:34.000Z
2020-06-01T13:24:04.000Z
azext_keyvault/keyvault/models/deleted_sas_definition_item_py3.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
5
2018-04-26T01:14:29.000Z
2021-01-05T00:45:39.000Z
azext_keyvault/keyvault/models/deleted_sas_definition_item_py3.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
8
2018-04-24T22:52:48.000Z
2021-11-16T06:29:28.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.4375
83
0.629444
173e920765dd3199096398a00a616f0b833db993
905
py
Python
src/doc/tutorials/tutorial_examples/scripting/listing_7_automating_data_analysis.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/doc/tutorials/tutorial_examples/scripting/listing_7_automating_data_analysis.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/doc/tutorials/tutorial_examples/scripting/listing_7_automating_data_analysis.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
########################################### # file: VisIt Scripting Tutorial Listing 7 ########################################### # # 1) Open VisIt # 2) Open 'example.silo' # 3) Paste and execute via the Commands window, or the CLI. # def TakeMassPerSlice(): DeleteAllPlots() AddPlot("Pseudocolor", "chromeVf") ...
25.857143
59
0.596685
da40d5bf1d4ca3a64bd58015eaf5a99993b03bd4
1,429
py
Python
SpamMail-master/src/spamemail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
11
2019-01-20T17:11:11.000Z
2021-12-17T05:00:15.000Z
SpamMail-master/src/spamemail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
SpamMail-master/src/spamemail.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
10
2019-05-12T02:28:06.000Z
2022-03-06T14:21:43.000Z
try: import os, time, requests, sys, json except ModuleNotFoundError: print("""\033[1;31m Sepertinya module requests BELUM Di Install $ pip install requests\n""") exit() cy=('\033[1;36m') rd=('\033[1;31m') gr=('\033[1;32m') wt=('\033[1;37m') c=int(0) scs=int(0) fail=int(0) banner=("""%s SPAM MAIL SURVEYON%s ,_ ...
25.517857
124
0.59902
da413873d1b7b9cddcd8a4fdddbae5ed9b269053
499
py
Python
gitGraber/config.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
gitGraber/config.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
gitGraber/config.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
GITHUB_TOKENS = ['X', 'X', 'X', 'X', 'X'] GITHUB_URL_FILE = 'rawGitUrls.txt' GITHUB_API_URL = 'https://api.github.com/search/code?q=' GITHUB_API_COMMIT_URL = 'https://api.github.com/repos/' GITHUB_SEARCH_PARAMS = '&sort=indexed&o=desc' GITHUB_BASE_URL = 'https://github.com' GITHUB_MAX_RETRY = 10 SLACK_WEBHOOKURL = 'htt...
41.583333
97
0.747495
da7917819f434212d673522a343cf75d478d9844
1,082
py
Python
tests/AzureTextAnalyticsModelTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/AzureTextAnalyticsModelTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/AzureTextAnalyticsModelTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import unittest from libs.azuretextanalytics.AzureTextAnalyticsModel import AzureTextAnalyticsModel class AzureTextAnalyticsModelTest(unittest.TestCase): def __init__(self, *args, **kwargs): super(AzureTextAnalyticsModelTest, self).__init__(*args, **kwargs) self.model = AzureTextAnalyticsModel() ...
30.914286
83
0.668207
f929d720e236fc7f5b46013350113cca545e9d43
37
py
Python
testserver/blueprints/casemanager/__init__.py
IfengAutomation/AutomationTestServer
b16ad0fae9cd7198a93cf2f3cd68d46fdae2dbdd
[ "Apache-2.0" ]
null
null
null
testserver/blueprints/casemanager/__init__.py
IfengAutomation/AutomationTestServer
b16ad0fae9cd7198a93cf2f3cd68d46fdae2dbdd
[ "Apache-2.0" ]
null
null
null
testserver/blueprints/casemanager/__init__.py
IfengAutomation/AutomationTestServer
b16ad0fae9cd7198a93cf2f3cd68d46fdae2dbdd
[ "Apache-2.0" ]
null
null
null
from .cases import cases bp = cases
9.25
24
0.72973
97acef0668ef8b297ea3eaf8d6607dab5083b0b8
2,359
py
Python
repo/script.module.urlresolver/lib/urlresolver/lib/strings.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/script.module.urlresolver/lib/urlresolver/lib/strings.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/script.module.urlresolver/lib/urlresolver/lib/strings.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
""" URLResolver Addon for Kodi Copyright (C) 2016 t0mm0, tknorris This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
29.4875
73
0.664265
c1e1dc3ec3be421b1155b4425e9e82256308fbe4
2,832
py
Python
10.3389/fevo.2021.762173/scripts/count_images_in_dirs.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/count_images_in_dirs.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fevo.2021.762173/scripts/count_images_in_dirs.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
import os import sys import glob from PIL import Image from PIL import ExifTags from PIL.ExifTags import TAGS # python $this.py dragonfly_classes.txt /data/dataset_T/raw > dataset_T_summary.tsv species_list_fpath = sys.argv[1] indpath = sys.argv[2] def get_gps(fpath): im = Image.open(fpath) lat = Non...
24.842105
91
0.534605
a9e100b9480e3a10c82585f9ce2507836d62752a
1,266
py
Python
S7/CS431-CDL/pgm-11/rdp.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S7/CS431-CDL/pgm-11/rdp.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S7/CS431-CDL/pgm-11/rdp.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
# E --> TE' # E' --> +TE' | e # T --> FT' # T' --> *FT' | e # F --> (E) | val # Terminals: +, *, val, (, ) # Non terminals: E, E', T, T', F def E(): T() _E() def _E(): global count try: if exp[count] == '+': count += 1 T() _E() except IndexError as...
17.108108
86
0.398894
e71c8cea84aea26d9863241d90c10d20a068c98b
1,209
py
Python
src/unittest/python/EK/test_base64.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/unittest/python/EK/test_base64.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
src/unittest/python/EK/test_base64.py
mfentler-tgm/sew5-simple-user-database-mfentler-tgm
98fba2cdca4243c3b2f25c45ceb043c258a5db53
[ "MIT" ]
null
null
null
from server.server import app, db import json, base64 import pytest from server.databaseHandler import createDBAndAdminUser,login @pytest.fixture def client(): ''' This method is like the @setup Method. It gets called before every test. :return: Returns a REST interface which is used by the test methods. ...
31.815789
156
0.710505
e75b2fb2b9967c1d120f5e9c1d45f1914ff589a6
1,191
py
Python
3_Functions/kwargs.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
3_Functions/kwargs.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
3_Functions/kwargs.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt # kwargs (keyword arguments) # NORMAL ARGS; *ARGS; DEFAULT ARGS; **KWARGS # *ARGS: TUPLE # **KWARGS: DICT def my_function(a, *args, x=2, y=3, z=4, **kwargs): print(args, type(args)) print(kwargs, type(kwargs)) print('a: {}, x: {}, y: {} , z: {}, args: {}, kwargs: {}'.format...
26.466667
95
0.549118
e7846bf2bff8920df06ab3ce48385c272c4f4a80
7,998
py
Python
src/pfun/files.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/files.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/files.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from __future__ import annotations from typing_extensions import Protocol from .effect import Effect, Try, add_repr, catch_io_bound, depend from .functions import curry from .immutable import Immutable class Files(Immutable): """ Module that enables reading and writing from files """ def read(self, ...
26.929293
79
0.521505
8234443e3ddeddc8c23040c31d9813b85006240f
1,616
py
Python
markjaml.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
markjaml.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
markjaml.py
lurch/Pinout2
bd3b39de2c053607b9415dd9eb0297a401ba7162
[ "CC-BY-4.0" ]
null
null
null
import json import markdown import yaml import re import unicodedata def slugify(value): """ Normalizes string, converts to lowercase, removes non-alpha characters, and converts spaces to hyphens. """ value = unicode(value) value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore')....
29.381818
90
0.634901
68e70726f25d9394fb30ddf2be0385efca75f511
2,764
py
Python
Imaginary/2021/web/Cookie_Stream/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/web/Cookie_Stream/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/web/Cookie_Stream/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, make_response, redirect from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad from binascii import hexlify, unhexlify from os import urandom from random import randint from hashlib import sha512 app = Flask(__name__) key = urandom(16) cnonce = uran...
44.580645
158
0.752533