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
d15ade2f965216d63fc24575c6e74ae61cbe0c7a
19,291
py
Python
tests/onegov/org/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/test_forms.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from datetime import date, datetime, time, timedelta from dateutil.rrule import MO, WE from onegov.core.utils import Bunch from onegov.event import Event from onegov.form import FormDefinition from onegov.org.forms import DaypassAllocationForm from onegov.org.forms import EventForm from onegov.org.forms ...
32.531197
79
0.605775
adbc85c56ead54b62c3579ebba448fb8b2e004cc
1,569
py
Python
src/onegov/election_day/views/upload/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/upload/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/upload/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day import _ from onegov.election_day.formats.common import FileImportError def unsupported_year_error(year): return FileImportError( _( "The year ${year} is not yet supported", mapping={'year': year} ) ) def set_locale(request): """ Sets the locale of th...
32.6875
77
0.583811
adcb011b737515fb99d21e39d91e18b0e23a52b3
14,533
py
Python
Packs/MailSenderNew/Integrations/MailSenderNew/MailSenderNew.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MailSenderNew/Integrations/MailSenderNew/MailSenderNew.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MailSenderNew/Integrations/MailSenderNew/MailSenderNew.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 email.mime.audio import MIMEAudio from email.mime.base import MIMEBase from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.message import Message from email.header import...
35.972772
119
0.598018
69eae925923d5b807b8d19a722b73e393501f672
595
py
Python
src/bo4e/enum/tarifmerkmal.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/tarifmerkmal.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/tarifmerkmal.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Tarifmerkmal(StrEnum): """ Produktmerkmale im Zusammenhang mit der Tarifdefinition. """ STANDARD = "STANDARD" #: Standardprodukt VORKASSE = "VORKASSE" #: Vorkassenprodukt PAKET = "PAKET" #: Paketpreispro...
31.315789
60
0.690756
ea933ee1206bc27324d3171051813f160545a539
407
py
Python
DiceCTF/2021/crypto/signature-sheep-scheming-signature-schemes/shake.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
DiceCTF/2021/crypto/signature-sheep-scheming-signature-schemes/shake.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
DiceCTF/2021/crypto/signature-sheep-scheming-signature-schemes/shake.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from random import Random, RECIP_BPF from Crypto.Hash import SHAKE128 from Crypto.Util.number import bytes_to_long class ShakeRandom(Random): def __init__(self, data): self.shake = SHAKE128.new(data) self.gauss_next = None def random(self): return (bytes_to_long(self.shake.read(7)) >> 3) * RECIP_BPF def g...
23.941176
65
0.719902
577d622af385ef4515503d82ef70eb8fdae16bc0
4,039
py
Python
test/py/dao_pb2.py
wybosys/nnt.logic.jvm
249aedd7f8dd03d94dcb0780b91dadacd4b25270
[ "BSD-3-Clause" ]
2
2020-09-22T11:01:31.000Z
2020-09-22T11:12:29.000Z
test/py/dao_pb2.py
wybosys/nnt.logic.jvm
249aedd7f8dd03d94dcb0780b91dadacd4b25270
[ "BSD-3-Clause" ]
null
null
null
test/py/dao_pb2.py
wybosys/nnt.logic.jvm
249aedd7f8dd03d94dcb0780b91dadacd4b25270
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: dao.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf im...
32.055556
264
0.738302
579e6708fe1924ce6175c0018b6f322d862ce80e
15,658
py
Python
code/02_study_population/CCU013_11_paper_cohort_dp_skinny_record_unassembled.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/02_study_population/CCU013_11_paper_cohort_dp_skinny_record_unassembled.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/02_study_population/CCU013_11_paper_cohort_dp_skinny_record_unassembled.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # CCU013_01_dp_skinny_record_unassembled: Make the Skinny Record Unassembled Table # COMMAND ---------- # MAGIC %md # MAGIC **Description** Gather together the records for each patient in primary and secondary care before they are assembled into a skinny record. This notebook ...
43.134986
312
0.67697
17f10515b720286627ae2471111fda494cb81240
7,525
py
Python
session8/pg_demo.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session8/pg_demo.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session8/pg_demo.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
import pg8000 from pprint import pprint def createCustomer(cur): sql_stmt = """ CREATE TABLE CUSTOMER ( ID INTEGER PRIMARY KEY, NAME TEXT, STREET TEXT, POSTCODE TEXT, CITY TEXT, COUNTRY TEXT);""" try: cur.execute(sql_stmt) s...
35.833333
226
0.59588
eaa5447f71bb98891c3617e4f24146e13cf78d61
863
py
Python
challenges/killKthBit/python3/killKthBit.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/killKthBit/python3/killKthBit.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/killKthBit/python3/killKthBit.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def killKthBit(n, k): return n & ~(1 << k-1) if __name__ == '__main__': input0 = [37, 37, 37, 0, 2147483647, 374823748, 2734827, 1084197039, 1160825071, 2039063284] input1 = [3, 4, 2, 4, 16, 13, 4, 15, 3, 4] expectedOutput = [33, 37, 37, 0, 2147450879, 374819652, 2734819, 1084197039, 1160825067, 2039063284] asser...
66.384615
125
0.680185
dc244efddab2235060f915f1bdfc18452ecaf0b1
898
py
Python
dash/migrations/0005_auto_20210325_1621.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0005_auto_20210325_1621.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
dash/migrations/0005_auto_20210325_1621.py
bdioui/DashboardFeder
455737c828f1c04651af495f60d6637131b911f5
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-25 16:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dash', '0004_auto_20210325_1619'), ] operations = [ migrations.AlterField( model_name='dossier', name='DP_CT_depot',...
26.411765
59
0.563474
dc7bcf380cab8f59c44d349f53768a87be601f5b
1,245
py
Python
deprecated/examples/recompute/bert/env.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/examples/recompute/bert/env.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/examples/recompute/bert/env.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
import os def dist_env(): ''' Return a dict of all variable that distributed training may use. NOTE: you may rewrite this function to suit your cluster environments. ''' default_port = "8701" port = os.getenv('PADDLE_PORT', default_port) worker_endpoints = [] trainer_endpoints = '' ...
31.125
74
0.651406
dcaea61f5e812cf8f907d070856b0f234b0a1bc5
364
py
Python
loesung/blatt1b_4a.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
1
2019-09-27T13:47:20.000Z
2019-09-27T13:47:20.000Z
loesung/blatt1b_4a.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
loesung/blatt1b_4a.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
# Hier sollen alle ungerade Zahlen von 1 bis 100 ausgegeben werden. Einmal # benutzen wir eine for Schleife und einmal eine while Schleife. # Starte bei 1 und betrachte jede zweite Zahl bis 100 for odd_number in range(1, 100, 2): print(odd_number) # Die selbe Logik gilt hier. odd_number = 1 while odd_number < 100...
28
74
0.741758
5293434a627bdc9730ec406285e7bf101923a505
1,454
py
Python
research/cv/FaceAttribute/infer/dataprocess/changePath.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/FaceAttribute/infer/dataprocess/changePath.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/FaceAttribute/infer/dataprocess/changePath.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# coding = utf-8 """ # Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable...
31.608696
120
0.616919
df22f66a161cac4fb9ea43deee200f64bf97b384
634
py
Python
python_project/python/ThreadDemo/PrintLog.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
1
2018-12-30T14:07:42.000Z
2018-12-30T14:07:42.000Z
python_project/python/ThreadDemo/PrintLog.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
python_project/python/ThreadDemo/PrintLog.py
sinomiko/project
00fadb0033645f103692f5b06c861939a9d4aa0e
[ "BSD-3-Clause" ]
null
null
null
from concurrent.futures import ThreadPoolExecutor def normal_print(content): print content def safe_print(content): print "{0}\n".format(content), with ThreadPoolExecutor(max_workers=10) as executor: print "Normal Print:" for i in range(10): executor.submit(normal_print, i) print "---" wi...
30.190476
215
0.512618
df37ffc64eb5d47ab529fc4dab4f598970db52f8
1,148
py
Python
source/api_wrapper/examples/react_to_my_mentions.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/api_wrapper/examples/react_to_my_mentions.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/api_wrapper/examples/react_to_my_mentions.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
from src.twitter import Twitter # Your access information for the twitter API access_info = { 'consumer_key': '', 'consumer_secret': '', 'access_token': '', 'access_token_secret': '' } ptp = Twitter(access_info=access_info) actions = [ # Retweet a mention containing 'hello world!' with the letter...
41
116
0.656794
df433fe78101941704a68bbd1d8fac3191647005
415
py
Python
___Python/Thomas/pycurs_180625/p02_datenstrukturen/m04_woertebuchinv.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p02_datenstrukturen/m04_woertebuchinv.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p02_datenstrukturen/m04_woertebuchinv.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
# Wörterbuch (Dictionary, Hashtabelle, Hashtable, Hashmap, associative Array) dic_wbde = {"Tisch": "table", "Stuhl": "chair", "Schreibtisch": "desk"} print(dic_wbde) print("") # 1. Ansatz dic_wbed = {} for wort in dic_wbde: dic_wbed[(dic_wbde[wort])] = wort print(dic_wbed) print("") ...
25.9375
78
0.633735
8031bcd69ba10449e4a28d9e768c560bab3a0ca5
1,141
py
Python
code/2/think4-2.py
pwang13/AutomatedSE_Coursework
b416672d9756fcc60367143b989d29b0c905cfc3
[ "Unlicense" ]
null
null
null
code/2/think4-2.py
pwang13/AutomatedSE_Coursework
b416672d9756fcc60367143b989d29b0c905cfc3
[ "Unlicense" ]
null
null
null
code/2/think4-2.py
pwang13/AutomatedSE_Coursework
b416672d9756fcc60367143b989d29b0c905cfc3
[ "Unlicense" ]
null
null
null
import math from swampy.TurtleWorld import * # seperate arc with @n steps of polyline with each of the @step_length and turn @step_angle in each step def arc(t, r, angle): arc_length = 2 * math.pi * r * abs(angle) / 360 n = int(arc_length / 3) + 1 step_length = arc_length / n step_angle = float(angle)...
23.285714
104
0.656442
1d15e374c4b127113929c5eeeeaf86176d572d87
1,085
py
Python
exercises/fr/test_04_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_04_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/test_04_11.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert [(ent.text, ent.label_) for ent in doc1.ents] == [ ("amsterdem", "GPE") ], "Vérifie les entités dans le premier exemple." assert [(ent.text, ent.label_) for ent in doc2.ents] == [ ("Paris", "GPE") ], "Vérifie les entités dans le deuxième exemple." assert [(ent.text...
45.208333
80
0.626728
1da3100a83661919f5c52d098958651da482ec37
759
py
Python
0013roman-to-integer.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0013roman-to-integer.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
0013roman-to-integer.py
meat00/my-leetcode-python
8312de396b29e1d6dd54a65f87fa0511eb400faa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class Solution: def romanToInt(self, s: str) -> int: trans_tbl = { 'I' : 1 , 'V' : 5 , 'X' : 10 , 'L' : 50 , 'C' : 100 , 'D' : 500 , 'M'...
25.3
70
0.371542
d59d4a34a5057a0d1bf1b8ba1203a82b92e1b6e5
143
py
Python
hist_db/__main__.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
1
2021-12-14T22:52:46.000Z
2021-12-14T22:52:46.000Z
hist_db/__main__.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
hist_db/__main__.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from hist_db.main import main if __name__ == '__main__': main()
20.428571
72
0.783217
7f5997fba50a0332fe76c5cb728380949883c325
3,149
py
Python
module/SpmUpdateAccessCode.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
1
2019-01-03T12:59:19.000Z
2019-01-03T12:59:19.000Z
module/SpmUpdateAccessCode.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
null
null
null
module/SpmUpdateAccessCode.py
TechLabCommunity/SaintPeterTalent
eb80237de4d73f3a99e82e02edb714f5057bd559
[ "MIT" ]
null
null
null
from threading import Thread import json from time import sleep from lib.SPDbCall import SPDbCall from Global import * import requests from lib.AccessLogger import AccessLogger class SpmUpdateAccessCode(Thread): NAMEMODULE = "HttpServer" PATH_LOG = './log/updateaccesscode.txt' def __init__(self): ...
39.860759
125
0.531915
7f90fed5969297b43857abba463e419436254e42
2,872
py
Python
pyventskalender/tag05.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag05.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag05.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Bedingungen (if/else) erlauben, bestimmten Code nur in bestimmten Fällen # auszuführen. # Schleifen (um die es heute gehen soll) erlauben es, den selben Code immer # wieder auszuführen. # # Eine `while`-Schleife in Python führt den selben Code so lange aus, # wie eine bestimmte Bedingung wahr ist. # %% # Der folgend...
36.35443
121
0.723189
7f9a1a9e530ae96c0dc907b5a183d12f027a67d1
499
py
Python
source/pkgsrc/emulators/fs-uae-launcher/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/emulators/fs-uae-launcher/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/emulators/fs-uae-launcher/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.5 2020/05/23 09:12:58 adam Exp $ Fix installation on Darwin. --- setup.py.orig 2017-01-08 19:48:56.000000000 +0000 +++ setup.py @@ -180,10 +180,6 @@ if sys.argv[1] == "build_exe": if sys.platform == "win32" and False: setup_kwargs["windows"] = scripts -if sys.platform == "darwin": ...
26.263158
60
0.651303
89d358b26b7b3799a6ae94ffd018c876b5c03c0f
1,688
py
Python
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/gpei_submitit.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
1
2022-01-08T07:36:38.000Z
2022-01-08T07:36:38.000Z
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/gpei_submitit.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
3
2022-03-10T23:09:02.000Z
2022-03-30T18:32:35.000Z
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/gpei_submitit.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
null
null
null
# %% imports # NOTE: `pip install pyro-ppl` to use FULLYBAYESIAN (SAASBO) from submitit import AutoExecutor import cloudpickle as pickle from utils.matbench import matbench_fold_GPEI, collect_results, task, savepath, dummy print(f"dummy: {dummy}") # %% submission log_folder = "log_ax/%j" walltime = 28 * 60 # 4320 ...
33.098039
204
0.735782
89e4859ceed12595af12487412a2e2e34f34b6a9
130
py
Python
python/coursera_python/MICHIGAN/WEB/test/find_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/WEB/test/find_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/WEB/test/find_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# To use the find function hand = open('test.txt') for line in hand: line=line.rstrip() if line.find("from")>=0: print(line)
16.25
26
0.661538
c38e3974b30228140d31ae3d796ca5fd02d6ef61
3,036
py
Python
myems-aggregation/carbon_dioxide_emmision_factor.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-aggregation/carbon_dioxide_emmision_factor.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
myems-aggregation/carbon_dioxide_emmision_factor.py
18600575648/myems
38ab7d509b5ab275a4df0333e6256c586abdfbf9
[ "MIT" ]
null
null
null
from datetime import timedelta import mysql.connector import config import collections ######################################################################################################################## # Get carbon dioxide emission factor by energy category ######################################################...
35.717647
120
0.517787
f6483151a422d1bc5dcdaa83d2c0375d4518c198
1,226
py
Python
aemter/admin.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/aemter/admin.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/aemter/admin.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.contrib import admin from django.forms import BaseInlineFormSet from simple_history.admin import SimpleHistoryAdmin from .models import Organisationseinheit, Unterbereich, Funktion, Recht, FunktionRecht # Custom model admins class InLineUnterbereich(admin.TabularInline): model = Unterbereich extr...
26.085106
86
0.776509
b4cd9499a8000ae70df50ac2cbf94755a7ca2eb0
252
py
Python
Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/18.02-Exception-Handling3.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/18.02-Exception-Handling3.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/02.Miscellaneous/18.02-Exception-Handling3.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
a = 5 b = 2 try: print("resource Open") print(a / b) k = int(input("Enter a number: ")) print(k) except ZeroDivisionError as e: print(e) except ValueError as e: print(e) except Exception as e: print("Something went wrong")
16.8
38
0.619048
2ebdd4683b08f721ef26c5cfcf37b18539a9efe4
1,188
py
Python
04.DFS_BFS/M/B1260-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
1
2021-11-21T06:03:06.000Z
2021-11-21T06:03:06.000Z
04.DFS_BFS/M/B1260-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
2
2021-10-13T07:21:09.000Z
2021-11-14T13:53:08.000Z
04.DFS_BFS/M/B1260-M.py
SP2021-2/Algorithm
2e629eb5234212fad8bbc11491aad068e5783780
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temp3+4awhdjh anfjl asfahe """ from sys import stdin node , line , start =map(int , input().split()) #node ,line , start = map(int, stdin.readline().split()) array = [] for i in range (node): array.append([]) for i in range (line): key, data =map(int ...
21.6
57
0.584175
d370aa68c4acf6cce3bd34e9efec25e6d663f50d
16,737
py
Python
workspace/cogrob/service_manager/util/docker_options_pb_to_py.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
8
2019-05-07T02:30:58.000Z
2021-12-10T18:44:45.000Z
workspace/cogrob/service_manager/util/docker_options_pb_to_py.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
1
2021-03-17T07:18:23.000Z
2021-03-17T07:18:23.000Z
workspace/cogrob/service_manager/util/docker_options_pb_to_py.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
2
2019-05-21T14:15:24.000Z
2022-02-09T12:50:24.000Z
# Copyright (c) 2019, The Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
34.652174
79
0.671267
2c66c459ddd3bc7d558e4c0f9d039a60ef9f19a0
1,568
py
Python
03_Objektorientierung/fraction.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
03_Objektorientierung/fraction.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
03_Objektorientierung/fraction.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
from __future__ import annotations FRACTION_BAR_WIDTH = 5 def gcd(a, b): while b != 0: h = a % b a = b b = h return a class Fraction: # Konstruktor: automatisch aufgerufen bei Objekterzeugung def __init__(self, numerator: int, denominatior: int): self.numerator : int ...
24.5
63
0.635842
2025238cb9432aa5af8341f23f012abb13b957d5
15,413
py
Python
data-pipeline/src/data_pipeline/datasets/exac/exac_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/datasets/exac/exac_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/datasets/exac/exac_variants.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import hail as hl from data_pipeline.data_types.locus import normalized_contig, x_position from data_pipeline.data_types.variant import variant_id, variant_ids from data_pipeline.data_types.variant.transcript_consequence import consequence_term_rank # For multiallelic variants, these fields contain a value for each ...
30.044834
117
0.519691
204f4f60b8821d29aa1a511a406bb23020afaa39
68,038
py
Python
test/test_npu/test_network_ops/test_optim.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_optim.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_optim.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
45.878624
120
0.583262
03d7611b40ec6b7f6ea0531004bc8e7e8dfb7d1d
2,541
py
Python
basketball/player/UI.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
basketball/player/UI.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
basketball/player/UI.py
ptracton/ExperimentalPython
a3159226982ec9656bb0f81f6997687da22f4466
[ "MIT" ]
null
null
null
import PyQt5 import PyQt5.QtWidgets import UI_CentralWindow import NBA_Player class UI(PyQt5.QtWidgets.QMainWindow): """ Top Level UI Class """ def __init__(self, parent=None): super(UI, self).__init__(parent) self.statusBar().showMessage('Status Bar') self.setWindowTitle('...
34.808219
147
0.679654
03daf455f10549dcba89c934c7c4095980516156
100
py
Python
SBTK_League_Helper/src/tools/misc.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/misc.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/tools/misc.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
def id_function(*args): if len(args) == 1: return args[0] else: return args
16.666667
23
0.53
455f7a68845fd38caf8d87a431502576f5cac2c4
1,131
py
Python
notebooks/utils/semantical/sentiments.py
k4t0mono/ipln
ba71860bc38df52780903f647fb2404c61a6b3f2
[ "BSD-2-Clause" ]
null
null
null
notebooks/utils/semantical/sentiments.py
k4t0mono/ipln
ba71860bc38df52780903f647fb2404c61a6b3f2
[ "BSD-2-Clause" ]
2
2020-03-24T17:06:03.000Z
2020-03-31T02:16:40.000Z
notebooks/utils/semantical/sentiments.py
k4t0mono/ipln
ba71860bc38df52780903f647fb2404c61a6b3f2
[ "BSD-2-Clause" ]
null
null
null
import pickle import gzip import pandas as pd import numpy from sklearn.neural_network import MLPClassifier from gensim.models import KeyedVectors from utils.lexical import LexicalProcessing import os class SentimentAnalysis: def __init__(self): self.LP = LexicalProcessing() print(os.getcwd()) ...
26.928571
78
0.601238
b349bee5056f6fc7ee8e0decca5e630c23a93e5d
33,735
py
Python
verto/tests/ImageContainerTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/tests/ImageContainerTest.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/tests/ImageContainerTest.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
import markdown from unittest.mock import Mock from collections import defaultdict from verto.VertoExtension import VertoExtension from verto.processors.ImageContainerBlockProcessor import ImageContainerBlockProcessor from verto.errors.ImageMissingCaptionError import ImageMissingCaptionError from verto.errors.ImageCap...
54.323671
231
0.718779
2ff799a513b04531e489b810cb1199f7cc7d36bd
267
py
Python
python/generator_tricks_for_systemprogrammer/countdown_gen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/countdown_gen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/generator_tricks_for_systemprogrammer/countdown_gen.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
def countdown(n): print("Counting down from", n) while n > 0: yield n n -= 1 if __name__ == "__main__": x = countdown(10) # No output print(x) # return generator # functions starts executing here x.__next__()
19.071429
38
0.546816
a65f6b4ee144310e76bb3500a53d4a7aaaedb7c1
1,108
py
Python
tools/legacy/pac-man/gui/widgets/packageConfig/widget.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
2
2020-03-18T18:23:27.000Z
2020-08-02T15:59:16.000Z
tools/legacy/pac-man/gui/widgets/packageConfig/widget.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
5
2019-07-07T16:47:47.000Z
2020-08-10T16:20:00.000Z
tools/legacy/pac-man/gui/widgets/packageConfig/widget.py
gifted-nguvu/darkstar-dts-converter
aa17a751a9f3361ca9bbb400ee4c9516908d1297
[ "MIT" ]
1
2020-03-18T18:23:30.000Z
2020-03-18T18:23:30.000Z
import tkinter as tk import tkinter.scrolledtext import tkinter.ttk as ttk import gui.shared as shared import gui.widgets.packageConfig.logic as logic from types import SimpleNamespace def createRootControl(controls, parent): controls.frame = ttk.Frame(parent) controls.frame.pack_forget() return controls....
34.625
92
0.756318
5b4ee76e4dca7a6ad6fa57a1814f6644b91c44d5
818
py
Python
new-docs/examples/python/getting-started/application/expenses-flask/app/db.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
null
null
null
new-docs/examples/python/getting-started/application/expenses-flask/app/db.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
2
2021-03-24T19:24:40.000Z
2021-03-24T19:54:46.000Z
new-docs/examples/python/getting-started/application/expenses-flask/app/db.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
1
2021-03-24T19:51:45.000Z
2021-03-24T19:51:45.000Z
from flask import current_app, g, Blueprint import logging import os import sqlite3 bp = Blueprint("db", __name__) @bp.before_app_request def get_db(): if "db" not in g: g.db = sqlite3.connect( current_app.config["DATABASE"], detect_types=sqlite3.PARSE_DECLTYPES ) g.db.row_fa...
20.974359
80
0.618582
5b6a91264f1a194a26915cf4fd941f4a491114ce
10,337
py
Python
Anime/mudae_cogs/minecraft.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
Anime/mudae_cogs/minecraft.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
Anime/mudae_cogs/minecraft.py
austinmh12/DiscordBots
55550b68a7ad6423de55e62dbbff93fd88f08ff2
[ "MIT" ]
null
null
null
import logging from discord import Game, Embed, Colour from discord.utils import get from discord.ext import commands import asyncio import os import os.path import subprocess import re import threading import typing from time import sleep from queue import Queue, Empty q = Queue() log = logging.getLogger(__name__) l...
32.920382
176
0.68666
cafc6b411cf3b8bb6ac12b8f2b7913db66077364
397
py
Python
src/onegov/recipient/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/recipient/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/recipient/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.collection import GenericCollection from onegov.recipient.model import GenericRecipient class GenericRecipientCollection(GenericCollection): def __init__(self, session, type): super().__init__(session) self.type = type @property def model_class(self): return Gene...
26.466667
54
0.735516
1b2cd5485da0d2c6d1edd46255a3e87f16f3a8a1
984
py
Python
Implementation/vibrostudies-backend/db/urls.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
Implementation/vibrostudies-backend/db/urls.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
Implementation/vibrostudies-backend/db/urls.py
VibroStudies/vibrostudies
24491d4dd193655e3036354174babc4ab17a8639
[ "MIT" ]
null
null
null
from django.urls import include, path from rest_framework import routers from . import views # Wire up our API using automatic URL routing. # Additionally, we include login URLs for the browsable API. urlpatterns = [ path(r'StudyNew/<pk>/', views.studyView), path(r'Result/<pk>/', views.resultView), path(r'...
41
66
0.700203
1ba8d75b11e1ddd2f39fd452fbf8842a73771e18
1,394
py
Python
mltrain-nips-2017/ben_athiwaratkun/pytorch-bayesgan/ComplementCrossEntropyLoss.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
mltrain-nips-2017/ben_athiwaratkun/pytorch-bayesgan/ComplementCrossEntropyLoss.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
mltrain-nips-2017/ben_athiwaratkun/pytorch-bayesgan/ComplementCrossEntropyLoss.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
# Loss for G in semi supervised setting import torch #import torch.functional as F def _assert_no_grad(variable): assert not variable.requires_grad, \ "nn criterions don't compute the gradient w.r.t. targets - please " \ "mark these variables as volatile or not requiring gradients" class Complemen...
42.242424
109
0.729555
b6384c3a8c6deac0f9ca6b31bfddd47f105aad8f
6,646
py
Python
src/main/python/ble_temperature_sensor/blescannerbleak.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/ble_temperature_sensor/blescannerbleak.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
src/main/python/ble_temperature_sensor/blescannerbleak.py
BikeAtor/WoMoAtor
700cc8b970dcfdd5af2f471df1a223d2a38cb1bf
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import sys sys.path.append('..') import ble_temperature_sensor from time import sleep import logging import threading import time # bluetooth import bleak import asyncio import re class BluetoothScannerBleak(): updatetime = 60 sensors = [] sensorLabels = {} verbose = False ...
45.834483
155
0.43214
b6b0dc6de66c736267ebd04dfc182b3bffe2945a
1,360
py
Python
python/douban/spider.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/douban/spider.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/douban/spider.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/8/4 11:55 # @Author:TimVan # @File:spider.py # @Software:PyCharm import urllib.request, urllib.error # urllib:制定URL,获取网页数据 from bs4 import BeautifulSoup # bs4:网页解析,获取数据 import re # re:正则表达式,进行文字匹配 import xlwt # xlwt:进行excel操作 import sqlite3 # sqlite3:进行SQLite数据库操作 def main()...
21.25
134
0.624265
9497dbd893cbffd150024e86bfe0c4bf105bbcde
18,442
py
Python
src/Sephrasto/EinstellungenWrapper.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/EinstellungenWrapper.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/EinstellungenWrapper.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Apr 20 20:09:52 2018 @author: Aeolitus """ from Wolke import Wolke from Wolke import CharakterbogenInfo import UI.Einstellungen from PyQt5 import QtWidgets, QtCore, QtGui import os.path import yaml import logging import sys from Hilfsmethoden import Hilfsmethoden from PluginL...
45.423645
302
0.619998
94a52d58b1deebafc41f78aff6e9a95e1322b71f
9,338
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/utils/multigrid/save_load_helper.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
883
2020-11-12T11:46:46.000Z
2022-03-31T18:27:10.000Z
paddlevideo/utils/multigrid/save_load_helper.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
233
2020-12-09T06:04:59.000Z
2022-03-28T08:16:51.000Z
paddlevideo/utils/multigrid/save_load_helper.py
arkofgalaxy/PaddleVideo
64251233c83b7eb681061b454da198a9082309a6
[ "Apache-2.0" ]
225
2020-11-13T06:21:55.000Z
2022-03-31T05:36:11.000Z
import os import numpy as np import paddle import copy def sub_to_normal_bn(sd): """ When save, Convert the Sub-BN paprameters to normal BN parameters in a state dict. There are two copies of BN layers in a Sub-BN implementation: `bn.bn` and `bn.split_bn`. `bn.split_bn` is used during training and ...
39.235294
93
0.607303
bf90f7943bccdce3395720292a7a33d05523787d
649
py
Python
Flask/Courses/Flask-Tutorials.Corey-Schafer/Blog-Site/app.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Flask/Courses/Flask-Tutorials.Corey-Schafer/Blog-Site/app.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Flask/Courses/Flask-Tutorials.Corey-Schafer/Blog-Site/app.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
from flask import Flask, render_template app = Flask(__name__) posts_in_app = [ { "author": "Shihab Mahamud", "title": "Blog Post 1", "content": "First blog post", "date_posted": "April 20, 2018" }, { "author": "Shihab Mahamud", "title": "Blog Post 2", ...
18.027778
59
0.57319
782510affbe2536376d4e4834000f19fce5c6cba
450
py
Python
WeHaveBug/python/WeHaveBug.py
Lian0123/TextArt
26a2378a48fb1e49df067240fcb1dbd50e346a8e
[ "MIT" ]
2
2018-07-29T05:02:53.000Z
2021-08-16T10:52:59.000Z
WeHaveBug/python/WeHaveBug.py
Lian0123/TextArt
26a2378a48fb1e49df067240fcb1dbd50e346a8e
[ "MIT" ]
null
null
null
WeHaveBug/python/WeHaveBug.py
Lian0123/TextArt
26a2378a48fb1e49df067240fcb1dbd50e346a8e
[ "MIT" ]
null
null
null
# # << 這是個給該產品的每個後續維護員的話 >> # # 一一一一 # 天 下 程 式 |- 皿 -| 都 會 有 BUG # wv__ ㄒ| 免 |ㄒ __vw # \ | | 責 | | / # | 聲 | # | 明 | # ...
26.470588
47
0.208889
782688f66035bdb39f0ef00bfcd640a73dae81c8
301
py
Python
vkapp/bot/logic/core/Filter.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
1
2017-11-23T13:33:13.000Z
2017-11-23T13:33:13.000Z
vkapp/bot/logic/core/Filter.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
vkapp/bot/logic/core/Filter.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
import logging as log class Filter(object): def __init__(self): pass def on_process(self, current_state, trigger): pass def _on_process(self, current_state, trigger): log.debug(':: ' + type(self).__name__) return self.on_process(current_state, trigger)
21.5
54
0.654485
7857b45e85aa91b86df165cf854c630318ad8bca
1,310
py
Python
server/apps/recommendation/views.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/recommendation/views.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/recommendation/views.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
from rest_framework import viewsets from rest_framework import mixins from .models import Recommendation from .serializers import RecommendationSerializer from rest_framework.permissions import IsAuthenticated from utils.permissions import IsOwnerOrReadOnly from rest_framework_jwt.authentication import JSONWebTokenAuth...
29.772727
92
0.78855
ecd4bce7c9728bd1868170d6725733825231de80
1,014
py
Python
sources/stage04/bouncingball.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage04/bouncingball.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage04/bouncingball.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
import turtle as t wn = t.Screen() wn.colormode(255) wn.setup(width = 500, height = 500) wn.title("Bouncing Ball") ball = t.Turtle() ball.shape("circle") ball.color(255, 0, 0) ball.penup() speed = 8 angle = 125 ball.setheading(angle) # Bildschirm-Refresh ausschalten wn.tracer(0) def exitGame(): global keep_goi...
19.5
54
0.616371
e5bbb4048f30417f965d6914b4150069cbd339e0
1,193
py
Python
HackTon/HiddenEye/HiddenEye.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
HackTon/HiddenEye/HiddenEye.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
HackTon/HiddenEye/HiddenEye.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 # # HiddenEye by https://github.com/DarkSecDevelopers # from Defs.Languages import * from Defs.Actions import * from Defs.Configurations import * from Defs.Checks import * import multiprocessing import gettext import sys import ssl from os import system, environ if(not environ.get('PYTHONHTTPSVERIF...
21.690909
98
0.675608
00ea16f9bbbf76d48bbc71c274980587915aceb2
487
py
Python
modules/parameter_opt.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/parameter_opt.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
modules/parameter_opt.py
J0nasW/Bachelorarbeit
37052be075713f2016d42782397ff875e3e982f8
[ "MIT" ]
null
null
null
""" PARAMETER OPTIMIZATION with Hyperopt IMPORT BY: <parameter_opt.py> RETURN: Several Parameters INFO: All Parameters can be changed only here and spread over the whole Project Motor Neurons: FWD, REV Sensory Neurons: PVD, PLM, AVM, ALM Inter Neurons: AVA, AVD, PVC, AV...
22.136364
85
0.640657
972a5c04a2ce731db45593b82523d1f5ac1359e8
69
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.02-tuple/ph-9.20-tuple-declearation.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.02-tuple/ph-9.20-tuple-declearation.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-009.02-tuple/ph-9.20-tuple-declearation.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
x = (1, 2, 3) print(x, type(x)) x = "a", "b", "c" print(x, type(x))
11.5
17
0.434783
c1a01eca17ed871a5845f2d0a1174b6d45cf6e85
1,772
py
Python
dataset/dataset.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
dataset/dataset.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
dataset/dataset.py
baowj-678/TC
4c9bf6bf2202c9930616259d3f3e1a2b0529a6e6
[ "MIT" ]
null
null
null
""" 数据集 @Author: Bao Wenjie @Email: bwj_678@qq.com @Date: 2020/10/31 """ import sys import os abs_path = os.path.dirname(os.path.abspath(__file__)) sys.path.append(abs_path) import pandas as pd from torch.utils.data import Dataset from vocab import Vocab import torch class DataSet(Dataset): def __init__(self, pat...
26.447761
85
0.565463
a9dd20a05473d93bc47e53089556313c7beb4450
1,175
py
Python
helper_functions/graphml.py
weberja/praktikum_graphen
da3ecefdf1327078697e3787cfe19414a9ac13c4
[ "Apache-2.0" ]
1
2021-07-22T10:28:40.000Z
2021-07-22T10:28:40.000Z
helper_functions/graphml.py
weberja/praktikum_graphen
da3ecefdf1327078697e3787cfe19414a9ac13c4
[ "Apache-2.0" ]
null
null
null
helper_functions/graphml.py
weberja/praktikum_graphen
da3ecefdf1327078697e3787cfe19414a9ac13c4
[ "Apache-2.0" ]
null
null
null
import xml.etree.ElementTree as ET from digraph import DiGraph class GraphML: _path = "" _gml = "" _keys = [] _graphs = {} def __init__(self, path): self._gml = ET.parse(path) self._path = path def keys(self): if not self._keys: for key in self._gml.iter(...
29.375
88
0.585532
41bbe04a8de14cfe2a06a0db7d8a2e5b94378221
837
py
Python
src/test/tests/session/view3d.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/session/view3d.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/session/view3d.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: view3d.py # # Tests: mesh - 3D unstructured, single domain # plots - Pseudocolor # # Defect ID: visit00004724 # # Notes: This test case makes sure that all the 3d view ...
28.862069
78
0.508961
68c202b25bc19a0d4f65ad12a945ef4f6d7c0d26
1,798
py
Python
research/cv/faceboxes/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/faceboxes/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/faceboxes/export.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...
39.955556
94
0.716352
6b9653afaeceb19e0dfc68a0a4e5294836712c72
1,744
py
Python
tests/test_give_item_to_pet.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
tests/test_give_item_to_pet.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
tests/test_give_item_to_pet.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from bottle import route, run, template, get, post, request, response, error, static_file, redirect from hidden_server_data import PORT, HOST, STATIC_PATH from voc import read_everything_from_tabel_voc, alter_tabel_voc_where, read_value_from_tabel_voc from player import read_last_question_from_p...
48.444444
172
0.803899
6b9a98ab4d5c3a366eea8d15e9a993a129dd271b
627
py
Python
src/apache_reqtime.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/apache_reqtime.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/apache_reqtime.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/python ''' Gets average apache request time Copyright (c) 2010-2011 Vladimir Rusinov <vladimir@greenmice.info> Params: $1 - metric name. Supported: avg, min, max. Defaults to avg Usage: 1. Configure apache: `LogFormat "%D <whatever>" timelog` in modules.d/00_mod_log_config.conf (or elsewhe...
23.222222
78
0.701754
d4272a3a427b2fe2552581d624cacfd51ad7747f
673
py
Python
Code/WordFrequencies/simple.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/WordFrequencies/simple.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/WordFrequencies/simple.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
freq = {} with open("61753-0.txt") as f: for line in f: tokens = line.split() for token in tokens: if token in freq: freq[token] += 1 else: freq[token] = 1 for word, f in freq.items(): print("{}\t{}".format(f, word)) # 2 besta...
19.228571
35
0.460624
2e0a77500da07896ac2040e1fe9bceea9e64a570
1,993
py
Python
Scrap/Scrap.py
XLAR-8/M-KIT
19952ebe92e61b1733d63b8e59b107bc9c9e6f64
[ "Apache-2.0" ]
null
null
null
Scrap/Scrap.py
XLAR-8/M-KIT
19952ebe92e61b1733d63b8e59b107bc9c9e6f64
[ "Apache-2.0" ]
null
null
null
Scrap/Scrap.py
XLAR-8/M-KIT
19952ebe92e61b1733d63b8e59b107bc9c9e6f64
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import urllib.request import re import time import subprocess import os from collections import OrderedDict import sys #XLAR8 def open(links): p = subprocess.Popen(["chromium-browser"]+links) #p = subprocess.Popen(["xyz","http://www.xyz.com"]) print("###################...
28.884058
107
0.509784
cf33876553edbd8a9d9be9b69a299935b737b872
4,790
py
Python
packages/watchmen-model/src/watchmen_model/pipeline_kernel/pipeline_monitor_topics.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/pipeline_kernel/pipeline_monitor_topics.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/pipeline_kernel/pipeline_monitor_topics.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import List from watchmen_model.admin import Factor, FactorIndexGroup, FactorType, Topic, TopicKind, TopicType def ask_pipeline_monitor_topics() -> List[Topic]: # TODO define all pipeline monitor topics return [ Topic( name='raw_pipeline_monitor_log', kind=TopicKind.SYSTEM, type=TopicType.RA...
65.616438
103
0.726931
cf76683317228f7c7ec3e303714938686918243c
4,266
py
Python
main.py
Kasia23/DaftAcademy
511ec0ec2d7e6ced1cc6e207e3761b3ad81c5e5a
[ "MIT" ]
null
null
null
main.py
Kasia23/DaftAcademy
511ec0ec2d7e6ced1cc6e207e3761b3ad81c5e5a
[ "MIT" ]
null
null
null
main.py
Kasia23/DaftAcademy
511ec0ec2d7e6ced1cc6e207e3761b3ad81c5e5a
[ "MIT" ]
null
null
null
from typing import Dict import secrets from fastapi import FastAPI, Request, Response, status, Cookie, Depends, HTTPException from fastapi.security import HTTPBasic, HTTPBasicCredentials from fastapi.responses import RedirectResponse from fastapi.templating import Jinja2Templates from pydantic import BaseModel from h...
33.069767
115
0.723629
992367a59686c3f3d66aa121c5ac572e94531cce
7,413
py
Python
listings/chapter07/library.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
6
2021-08-04T19:42:53.000Z
2022-01-17T14:24:45.000Z
listings/chapter07/library.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2021-08-30T06:32:08.000Z
2021-08-30T06:42:46.000Z
listings/chapter07/library.py
rh0-me/ITHandbuch10
1582d6317e11cc958a14e157440dccf94d44583b
[ "Apache-2.0" ]
1
2022-02-17T10:32:17.000Z
2022-02-17T10:32:17.000Z
class Author: """Represents a book's author Attributes: firstname (str): the author's first name lastname (str): the author's last name """ def __init__(self, firstname, lastname): """Constructor for Author instances Args: firstname (str): the new author's first n...
33.391892
80
0.592877
5abdd91380313f06e1fa16319574e13e8cf769f2
1,421
py
Python
projekte/Gluecksspiel ps vs py/Gluecksspiel.py
johansson02/portfolios
ee459b6d71ec424bb6fe2147b7582aebd5ce8fbe
[ "MIT" ]
null
null
null
projekte/Gluecksspiel ps vs py/Gluecksspiel.py
johansson02/portfolios
ee459b6d71ec424bb6fe2147b7582aebd5ce8fbe
[ "MIT" ]
null
null
null
projekte/Gluecksspiel ps vs py/Gluecksspiel.py
johansson02/portfolios
ee459b6d71ec424bb6fe2147b7582aebd5ce8fbe
[ "MIT" ]
null
null
null
#-------------------------------------------------------------------------------------# # Python Glücksspiel # Jason Johansson # 25/06/2021 # Version 1.0.0.16 #-------------------------------------------------------------------------------------# import random # Diese Variable wird ausserhalb der While-Schle...
30.234043
114
0.532723
8f1e27c65a13dff19e8c817bd610015e0ed2ed20
347
py
Python
examples/miniportal/performance_test.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
1
2015-10-26T10:38:32.000Z
2015-10-26T10:38:32.000Z
examples/miniportal/performance_test.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
examples/miniportal/performance_test.py
Jumpscale/web
8e8ec2ce01f3105c7647ee8a0c90af09311cbbeb
[ "Apache-2.0" ]
null
null
null
from locust import HttpLocust, TaskSet def index(l): l.client.get("/") def addUser(l): l.client.get("/system/usermanager/addUser") def editUser(l): l.client.get("/system/usermanager/editUser") class UserBehavior(TaskSet): tasks = {index: 1, addUser: 2, editUser: 3} class WebsiteUser(HttpLocust): ...
19.277778
48
0.697406
56f4d1532336a74e115aea43e9069ee7560a3456
12,513
py
Python
Packs/GoogleDocs/Integrations/GoogleDocs/GoogleDocs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleDocs/Integrations/GoogleDocs/GoogleDocs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleDocs/Integrations/GoogleDocs/GoogleDocs.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * ''' IMPORTS ''' import requests import httplib2 import urllib.parse from oauth2client import service_account from googleapiclient import discovery import typing from collections import defaultdict # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBALS/...
31.518892
120
0.650843
f1396de1ddf7287dab7eee8b7541bd80d4581685
2,080
py
Python
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Receiver/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Receiver/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/09-loraSense/SenseLink/LoRaSense - Receiver/main.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import socket import time import os import _thread import binascii import network import select import _thread from network import LoRa lora = LoRa(mode=LoRa.LORA, region=LoRa.EU868) lora_s = socket.socket(socket.AF_LORA, socket.SOCK_RAW) lora_s.setblocking(False) wlan = network.WLAN(mode=network.WLAN.STA) nets = w...
27.012987
182
0.663462
74ceca9346908f0be143862d48e52a5bbcf43d20
64,802
py
Python
tests/test_parse.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
tests/test_parse.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
tests/test_parse.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """test_parse.py - tests of the parsers-module of DHParser Author: Eckhart Arnold <arnold@badw.de> Copyright 2017 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You ma...
38.780371
114
0.568501
744fad036d9e52134de0efbb4c07cc5ec1272b36
545
py
Python
pacman-arch/test/pacman/tests/sync900.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/sync900.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/sync900.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Replace one package with another providing it" sp = pmpkg("bar") sp.provides = ["foo"] sp.conflicts = ["foo"] self.addpkg2db("sync", sp) lp = pmpkg("foo") self.addpkg2db("local", lp) lp1 = pmpkg("pkg1") lp1.depends = ["foo"] self.addpkg2db("local", lp1) lp2 = pmpkg("pkg2") lp2.depends = ["foo"] ...
20.961538
66
0.682569
24c07ad4c8fe582bfdca45543ca9de6a2237b34d
97
py
Python
1-projects/Intro-Python-II-master/src/room.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
1-projects/Intro-Python-II-master/src/room.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
1-projects/Intro-Python-II-master/src/room.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Implement a class to hold room information. This should have name and # description attributes.
48.5
71
0.804124
564c9a1cc5b1b6c396575fe1f1b94b4115c225be
26,508
py
Python
Backend/models/caseDevelopments.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
15
2020-04-24T20:18:11.000Z
2022-01-31T21:05:05.000Z
Backend/models/caseDevelopments.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
2
2021-05-19T07:15:09.000Z
2022-03-07T08:29:34.000Z
Backend/models/caseDevelopments.py
dbvis-ukon/coronavis
f00374ac655c9d68541183d28ede6fe5536581dc
[ "Apache-2.0" ]
4
2020-04-27T16:20:13.000Z
2021-02-23T10:39:42.000Z
import re from flask import jsonify from sqlalchemy import text from db import db class CaseDevelopments: def __init__(self, data_table): self.data_table = data_table def get_county(self, from_time, to_time, id_county, want_age_groups, want_geom: bool): """ Return the developme...
41.744882
120
0.441791
3b83a282fe4ffc0735336a35cbc44f26d2980878
641
py
Python
lib/services/config.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/services/config.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/services/config.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
import yaml import os ''' Contains Paths of the program''' MAIN_DIRECTORY = os.path.dirname(os.path.realpath(__file__ + '/../..')) + '/' CONFIG_NAME = 'config.yml' def get_root_dir(): return MAIN_DIRECTORY + '' # + 'project\\' #change it for the compiled version remove 'project' def get_directory(section): ...
25.64
100
0.673947
795fa5e26b2cf71c1d6eaa6b67fa016ba20b0d76
1,737
py
Python
rev/sissyrev/solver.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
rev/sissyrev/solver.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
rev/sissyrev/solver.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
import sys from binascii import * def substitute(hexBlock): #subtitusi digit hex substitutedHexBlock = "" substitution = [10, 13, 0, 8, 11, 7, 6, 12, 15, 14, 3, 4, 2, 1, 5, 9] for hexDigit in hexBlock: newDigit = substitution.index(int(hexDigit, 16)) substitutedHexBlock += hex(ne...
32.166667
137
0.629246
8dd57eaeee4a06c422705e30b73d4b5daa19a267
373
py
Python
SurveyManager/survey/admin.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/admin.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/admin.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Encuesta,Pregunta,Respuesta,Carrera,Generacion,Alumno,RespuestaPregunta admin.site.register(Encuesta) admin.site.register(Pregunta) admin.site.register(Respuesta) admin.site.register(RespuestaPregunta) admin.site.register(Generacion) adm...
33.909091
91
0.844504
8ddadd23bc5984bb697b786946ce7f0f61e417a0
1,434
py
Python
Kapitel_4/_3_typed_descriptor.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_4/_3_typed_descriptor.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_4/_3_typed_descriptor.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
class Discriptor: def __set_name__(self, owner, name): self.name = name def __get__(self, instance, cls=None): print(f"Get {self.name}") return instance.__dict__[self.name] def __set__(self, instance, value): print(f"Set {self.name} to {value!r}") instance.__dict__[...
24.724138
103
0.591353
5c10397c3f0bd46dff9c52ef3431b81d8b6fffd9
3,883
py
Python
InvoiceGenerator.py
Smponi/-Einnahmenbeleg-Generator
1c3f0294864738e7c6c517560fcd3c6ec1985052
[ "MIT" ]
2
2020-04-29T13:30:48.000Z
2020-04-29T13:36:04.000Z
InvoiceGenerator.py
Smponi/-Einnahmenbeleg-Generator
1c3f0294864738e7c6c517560fcd3c6ec1985052
[ "MIT" ]
null
null
null
InvoiceGenerator.py
Smponi/-Einnahmenbeleg-Generator
1c3f0294864738e7c6c517560fcd3c6ec1985052
[ "MIT" ]
null
null
null
from tkinter import * import os import pdfrw fields = 'Beleg Nummer', 'Brutto', 'MwSatz', 'Mwst', 'Netto', 'Betrag in Worten', 'Zahlung von', 'Jahr', 'Ort', 'Kontierung','Verwendungszweck' months = 'Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez' template = pdfrw.PdfReader('Einnahmbeleg.pdf') d...
42.67033
143
0.643317
30fe27b17c0b1fc2d0f8f29c68054cb063e57894
924
py
Python
IVTp/2014/Karamyan/Karamyan 5_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 5_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTp/2014/Karamyan/Karamyan 5_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 5, Вариант 8 # Напишите программу, которая бы при запуске # случайным образом отображала название одного # из семи дней недели. # Карамян Н.Г. # 22.05.2016 input ("Жмак......\n") import random day = random.randint(1, 7) if (day) == 1: print ("Понедельник") elif (day) == 2: print...
17.433962
47
0.536797
d67cce5e70540c245ec7fccf86bfc8a31f8d7514
393
py
Python
session4/03_widgets_d.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session4/03_widgets_d.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session4/03_widgets_d.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
# Module importieren import tkinter as tk import tkinter.messagebox as tkmessagebox # Hauptfenster erzeugen root = tk.Tk() # Callback Funktion deklarieren def hello_callback(): tkmessagebox.showwarning("Hinweis", "Hallo Python!") # Button erzeugen b = tk.Button(root, text="Hallo", command=hello_callback) # Bu...
17.863636
57
0.75827
bac353d07a632eb60bd61f4aa74059c7993c6473
1,458
py
Python
projects/g4h2-graduation-project/src/backends/scf_functions/conf/settings.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/conf/settings.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/conf/settings.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
from .secrets import QCLOUD_APP_ID, QCLOUD_SECRET_ID, QCLOUD_SECRET_KEY QCLOUD_REGION = 'ap-guangzhou' COS_BUCKET = f'keybrlocr-{QCLOUD_APP_ID}' IMAGES_ROOT = 'release/images' IMAGE_MAX_SIZE = 2.25 # 2.25 / 0.75 = 3 ,Base64 编码后小于 3MB RESULT_URL_FORMATTER = 'https://ocr.keyboardluo.com/release/check_result_{f_...
24.711864
93
0.703704
2420f19abeb9beb351b06bfe58fe823775f3aa87
820
py
Python
Scripts/CountingOccurrenceOfEachWord.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
8
2020-10-26T06:51:06.000Z
2021-04-02T13:01:27.000Z
Scripts/CountingOccurrenceOfEachWord.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
71
2020-10-25T22:46:02.000Z
2021-10-14T06:47:39.000Z
Scripts/CountingOccurrenceOfEachWord.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
77
2020-10-24T01:53:46.000Z
2021-10-01T06:25:27.000Z
# Python code to find frequency of each word def freq(str1): # break the string into list of words str1 = str1.split() str2 = [] l = [] # loop till string values present in list str for i in str1: # checking for the duplicacy if i not in str2: ...
22.777778
67
0.521951
245501ff580cc77cf98c65e345d9c13d81c305ab
3,670
py
Python
wg-security-audit/ancillary-data/dataflow/tm.py
shubham14bajpai/community
f4c7914af3132a765472090b3a03b024e7aa951e
[ "Apache-2.0" ]
40
2021-09-14T01:09:50.000Z
2022-03-28T09:13:45.000Z
wg-security-audit/ancillary-data/dataflow/tm.py
shubham14bajpai/community
f4c7914af3132a765472090b3a03b024e7aa951e
[ "Apache-2.0" ]
46
2021-09-14T16:29:12.000Z
2022-03-31T18:02:32.000Z
wg-security-audit/ancillary-data/dataflow/tm.py
shubham14bajpai/community
f4c7914af3132a765472090b3a03b024e7aa951e
[ "Apache-2.0" ]
16
2021-09-14T01:14:34.000Z
2022-03-31T17:02:08.000Z
# !/usr/bin/env python3 from pytm.pytm import TM, Server, Datastore, Dataflow, Boundary, Actor, Lambda, Process tm = TM("Kubernetes Threat Model") tm.description = "a deep-dive threat model of Kubernetes" # Boundaries inet = Boundary("Internet") mcdata = Boundary("Master Control Data") apisrv = Boundary("API Server...
34.299065
129
0.779564
303328bebe7b936fe3591036569d6c2d56cd73d9
7,249
py
Python
latex-template/PythonSkript.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
3
2016-04-27T17:07:00.000Z
2022-02-02T15:43:15.000Z
latex-template/PythonSkript.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
5
2016-04-27T17:10:03.000Z
2017-06-20T14:54:20.000Z
latex-template/PythonSkript.py
DimensionalScoop/kautschuk
90403f97cd60b9716cb6a06668196891d5d96578
[ "MIT" ]
null
null
null
##################################################### Import system libraries ###################################################### import matplotlib as mpl mpl.rcdefaults() mpl.rcParams.update(mpl.rc_params_from_file('meine-matplotlibrc')) import matplotlib.pyplot as plt import numpy as np import scipy.constants as c...
43.668675
174
0.579114
aea9620e752748c654e247fa6d1224fbde420e08
28,855
py
Python
imbiss_analyse.py
Steinheilig/Imbiss
49f6ae865cef05b4999569cecaf5931db0fb2113
[ "MIT" ]
null
null
null
imbiss_analyse.py
Steinheilig/Imbiss
49f6ae865cef05b4999569cecaf5931db0fb2113
[ "MIT" ]
null
null
null
imbiss_analyse.py
Steinheilig/Imbiss
49f6ae865cef05b4999569cecaf5931db0fb2113
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Analyse der Spielmechanik von "Imbiss" v. 5.4 von T. Bauer für IBM PC, Public Domain Analyse Strategie: 1) Grundlegende Bestimmung von BK,ZK,EK als Funktion der Temperatur (d.h. keine Einfluss der VKs) 2) BK,ZK,EK Temperaturabhängigkeit 3) Bestimmen Parameter zum Preisv...
38.5247
187
0.486051
aec087ca3b6fae2895b14f0853844b563e17ba65
1,521
py
Python
build-environment/build.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
17
2020-11-20T15:58:02.000Z
2022-02-06T19:18:20.000Z
build-environment/build.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
3
2021-02-17T13:47:44.000Z
2021-10-14T13:53:15.000Z
build-environment/build.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
6
2020-11-23T09:51:26.000Z
2022-02-11T13:46:57.000Z
import os from universal_build import build_utils from universal_build.helpers import build_docker COMPONENT_NAME = "build-environment" DOCKER_IMAGE_PREFIX = "mltooling" HERE = os.path.abspath(os.path.dirname(__file__)) def main(args: dict) -> None: # set current path as working dir os.chdir(HERE) ver...
32.361702
106
0.712689
9dd678d73cf626c9309f3d641a42a87ccdd961d4
1,051
py
Python
examples/generate_images.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
11
2016-08-19T18:11:19.000Z
2020-07-27T07:04:52.000Z
examples/generate_images.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
8
2016-09-17T16:46:01.000Z
2021-04-29T19:59:57.000Z
examples/generate_images.py
mp4096/blockschaltbilder
9253022b5518e42d784176594d4d6fee7baa1050
[ "MIT" ]
4
2016-09-21T18:45:09.000Z
2020-07-27T07:08:17.000Z
from subprocess import run # Compile examples and export them as images # # Dependencies: # * LaTeX distribution (MiKTeX or TeXLive) # * ImageMagick # # Known issue: ImageMagick's "convert" clashes with Windows' "convert" # Please make a symlink to convert: # mklink convert-im.exe <path to ImageMagick's convert.exe> ...
24.44186
70
0.646051
06049f84e39f189b95bba51612ac1da1ca7f0324
1,035
py
Python
x/mrcxls/main.py
miku/lc-extra
afeb3cb5f532069be17c54d6508aa7c0c8373c2a
[ "MIT" ]
null
null
null
x/mrcxls/main.py
miku/lc-extra
afeb3cb5f532069be17c54d6508aa7c0c8373c2a
[ "MIT" ]
null
null
null
x/mrcxls/main.py
miku/lc-extra
afeb3cb5f532069be17c54d6508aa7c0c8373c2a
[ "MIT" ]
1
2020-02-04T08:09:01.000Z
2020-02-04T08:09:01.000Z
""" Iterate over a MARC file, print out all title. Example input file: https://is.gd/QUNyGk $ make clean && make $ python app.zip catalog.mrc | grep -i london """ import datetime import pandas as pd import pymarc import random import sys location = [ "Campus", "Albertina" ] if __name__ == '__main__...
23.522727
97
0.541063
ae531ef02494b1f9073ca083cbdc665c1e5e3ad0
4,145
py
Python
Packs/ILert/Integrations/ILert/ILert.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ILert/Integrations/ILert/ILert.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ILert/Integrations/ILert/ILert.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' GLOBAL VARS ''' # iLert API works only with secured communication. USE_SSL = not demisto.params().get('insecure', False) USE_PROXY = demisto.params()...
32.131783
97
0.641496
889b236020efeb317eab1c416bc3049587c41b4c
867
py
Python
quant/common/constant.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/common/constant.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/common/constant.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
# coding=utf-8 """ ORDER_STATE_PENDING :未完成 ORDER_STATE_CLOSED :已关闭 ORDER_STATE_CANCELED:已取消 ticker数据结构如下: { sell: 0.5, buy: 0.5, last: 0.5 } """ ORDER_STATE_PENDING = 1 ORDER_STATE_CLOSED = 2 ORDER_STATE_CANCELED = 4 ORDER_STATE_UNKNOWN = 8 EX_OKEX = 'Okex' EX_BFX = 'Bitfinex' EX_LQ = 'Liqui' EX_GDAX ...
13.983871
29
0.682814
ee02e05c765ec9c820fd63aed297ac2b4a1b8415
1,430
py
Python
brick/log.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/log.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/log.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-22 @author: Xsank ''' from __future__ import absolute_import from threading import Lock from logging import getLogger, StreamHandler, Formatter, getLoggerClass, DEBUG from brick.config import LOG_FILE,LOG_FORMAT,DEBUG as APP_DEBUG _logger_lock=Lock() class Logger(object): def __init__(s...
25.087719
78
0.664336
a0107e2d618412fe08660c510cb09f40122ecf4c
2,081
py
Python
x2paddle/project_convertor/pytorch/torch2paddle/nn_utils.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/project_convertor/pytorch/torch2paddle/nn_utils.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/project_convertor/pytorch/torch2paddle/nn_utils.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.000Z
# 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 appl...
36.508772
79
0.657376
4ed1484f2ccae70be8534ac1594a8fd5f498ae70
11,384
py
Python
code/drinks_lib.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
1
2020-12-24T12:20:26.000Z
2020-12-24T12:20:26.000Z
code/drinks_lib.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
null
null
null
code/drinks_lib.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
null
null
null
""" contains the recipe-class and drink-class """ # imports from tkinter.constants import TRUE import globals as gl import io_lib as io import os import time from media_lib import prompt_file # both used to import new files from shutil import copyfile """ ### PATHS ### """ dir_recipes = gl.gen_path + "/src/recipes/"...
29.801047
142
0.665583
094522201bdc35495777e547d1dd4fcc5209000a
1,169
py
Python
url_check.py
alphadl/awesome-ensemble-learning
7636276dbc75d3dcd21dec9c87b2041c65e8545a
[ "MIT" ]
253
2019-07-31T04:01:26.000Z
2022-03-24T12:11:10.000Z
Data Science & Machine Learning/Machine Learning/Anomaly Detection/url_checker.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Data Science & Machine Learning/Machine Learning/Anomaly Detection/url_checker.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
60
2019-07-31T04:28:59.000Z
2022-03-08T17:04:29.000Z
import re import requests def exists(path): """ Utility function to check whether a web file exists :param path: :return: """ r = requests.head(path) # print(r.status_code) return r.status_code == requests.codes.ok def exists_adv(path): """ Utility function to check whether a web fil...
24.354167
59
0.568862
099fac9c9c7d49764ff83b554db306a1c4728a61
1,608
py
Python
mps/train.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
mps/train.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
mps/train.py
CcTtry/PipeSwitch
c6d632ee20b6dbbaea9a6fb95b9ea0ed4bbbf67e
[ "Apache-2.0" ]
null
null
null
import time import threading import importlib import multiprocessing as mp class PauseThd(threading.Thread): def __init__(self, pipe, PAUSE_SIGNAL): super(PauseThd, self).__init__() self.pipe = pipe self.PAUSE_SIGNAL = PAUSE_SIGNAL def run(self): while True: ...
31.529412
88
0.56592
dd59cecdd04c519224b688a3d8354bb73e9d9519
5,188
py
Python
utils/metrics/supervised_metrics.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/metrics/supervised_metrics.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
utils/metrics/supervised_metrics.py
kkahloots/Generative-Models-03
5399fb8a504543b0a4196a81b182ead79ee247df
[ "MIT" ]
null
null
null
import scipy as sp import numpy as np import dask.array as da from dask import delayed from sklearn.ensemble import GradientBoostingClassifier from sklearn import svm def compute_supervised_metrics(latent, y, latent_test, y_test, continuous_factors): scores = {} """Computes score based on both trainin...
44.724138
121
0.676176
06bd31de8c88f6fbef6a824e1231e47581fefbaa
9,079
py
Python
experiments/sumo_rl/environment/traffic_signal_NonRL.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
4
2020-10-11T01:30:13.000Z
2021-04-27T16:03:41.000Z
experiments/sumo_rl/environment/traffic_signal_NonRL.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
null
null
null
experiments/sumo_rl/environment/traffic_signal_NonRL.py
june6723/sumo-rl-offset
775cddc8d168fb7c4959610a96a791d746fa0afd
[ "MIT" ]
null
null
null
import os import sys if 'SUMO_HOME' in os.environ: tools = os.path.join(os.environ['SUMO_HOME'], 'tools') sys.path.append(tools) else: sys.exit("Please declare the environment variable 'SUMO_HOME'") import traci class TrafficSignal: """ This class represents a Traffic Signal of an intersection ...
42.825472
158
0.613063
b0c2815accb2b575484b81fd72d4e9bd51145ed3
922
py
Python
gestionTomaDatos/migrations/0008_auto_20210120_1903.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionTomaDatos/migrations/0008_auto_20210120_1903.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionTomaDatos/migrations/0008_auto_20210120_1903.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# Generated by Django 2.2.17 on 2021-01-20 19:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gestionTomaDatos', '0007_auto_20210120_1853'), ] operations = [ migrations.AddField( model_name='protocoloclinico', ...
31.793103
122
0.63449