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
a17c49d030f5e1427fba75081a835e3824ec17ab
1,415
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/scenario/checkFlows.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/scenario/checkFlows.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/scenario/checkFlows.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
28.877551
77
0.666431
62cd0449d6a11458241546fd3b69b5cee97c393e
603
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.14-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.14-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.14-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
''' 6. Design a Hotel Management System You’ll want to make sure you cover: Room Complexity: How will the system support different room types within the same hotel? Alerts: How will the system remind users that their check-in date is approaching? What other alerts might be useful to factor in? Customization: How wou...
50.25
182
0.79602
3d7ee3307160456a34cc19c04aea780d657c6de2
1,504
py
Python
S7/CS431-CDL/pgm-10/e-nfa.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S7/CS431-CDL/pgm-10/e-nfa.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S7/CS431-CDL/pgm-10/e-nfa.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
def display(fa): for states, values in fa.items(): print(f"{states} |\t", end="") for _, nfa in values.items(): print(f"{nfa}\t", end="") print() def find_closure(state, value, sym): closure = {} ec1 = state im_states = ec2 = "" if value["e"] != "": ec1...
25.491525
77
0.418883
b13903ff76a73099f33e5ea2c52c6f884b70bc6f
92
py
Python
2015/03/walmart-city-maps/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/walmart-city-maps/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/walmart-city-maps/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 = '1jZKJqcKIHHqOoAsNYbPSQt_99QwGuI7aTNe5dfWCkic'
23
68
0.847826
771172dfb022feb7d5446abca2e1b95681fcaff8
344
py
Python
INBa/2015/Primov_G_S/task_2_19.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Primov_G_S/task_2_19.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
INBa/2015/Primov_G_S/task_2_19.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 19 #Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Эсхил. Не забудьте о том, что автор должен быть упомянут на отдельной строке. #Primov G. S. #23.02.2016 print("Страшен брак по принуждению.") print("\t\t\tЭсхил") input('\n\nНа...
38.222222
197
0.776163
65dd6d6eec338813f3c27037e8d3fb4be640c870
298
py
Python
7-assets/_SNIPPETS/bryan-guner-gists/pypractice/remove-from-list.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
3
2021-04-25T20:07:31.000Z
2021-08-31T00:57:44.000Z
7-assets/_SNIPPETS/bryan-guner-gists/pypractice/remove-from-list.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
28
2021-04-06T06:17:02.000Z
2021-05-07T10:03:43.000Z
7-assets/_SNIPPETS/bryan-guner-gists/pypractice/remove-from-list.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# remove a value from a list (remove multiple values, if the value repeated) def remove_from_list(lst, val): for num in lst: print(num) if val in lst: lst.remove(val) return lst nums = [2, 7, 7, 6, 2, 11, 9, 1, -4, 7, 1] value = 7 print(remove_from_list(nums, value))
21.285714
76
0.624161
b2abfc53eac6bbebd4116350f3bca1d9f7f69e20
1,947
py
Python
loesungsvorschlaege/ml_3_kuenstliche_neuronale_netze/praxis/04/neural_network_mnist.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/ml_3_kuenstliche_neuronale_netze/praxis/04/neural_network_mnist.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/ml_3_kuenstliche_neuronale_netze/praxis/04/neural_network_mnist.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
import numpy as np import scipy.special class NeuralNetwork: def __init__(self, number_of_input_nodes, number_of_hidden_nodes, number_of_output_nodes, lernrate): self.number_of_input_nodes = number_of_input_nodes self.number_of_hidden_nodes = number_of_hidden_nodes self.number_of_output_no...
44.25
114
0.640473
3bbc3338702aaf9ce61750aee9badc7d57c4d23b
4,639
py
Python
examples/language_model/t5/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/t5/utils.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/t5/utils.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...
29.360759
78
0.679672
cbfcfb377c6fb41dee9bd833d6df2be0bb11cfe9
776
py
Python
Utils/py/lineDetection/line_detector.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/lineDetection/line_detector.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/lineDetection/line_detector.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
import numpy as np import random import math from ransac import Ransac, Result class Line: def __init__(self, params, x_range, y_range, error): self.params = params self.x_range = x_range self.y_range = y_range self.error = error # Ransac: iterations, threshDist, minInlier, thre...
21.555556
76
0.639175
023eab2240c73396da65b9770da11622f66f4eff
3,329
py
Python
mtree.py
SirReaDy/Merkle-tree-scheme
f58a2b5472269433441a5600e195e27aa5e6b42f
[ "MIT" ]
null
null
null
mtree.py
SirReaDy/Merkle-tree-scheme
f58a2b5472269433441a5600e195e27aa5e6b42f
[ "MIT" ]
null
null
null
mtree.py
SirReaDy/Merkle-tree-scheme
f58a2b5472269433441a5600e195e27aa5e6b42f
[ "MIT" ]
null
null
null
import hashlib from math import log2, floor class MerkleTree: def __init__(self, n_leaves): self.tree = {} self.n_levels = None self.n_leaves = n_leaves @staticmethod def hash(data): if type(data) is not bytearray: data = data.encode('utf-8') ...
32.637255
111
0.559628
5a7491d86f315931a1c782a57b31cd1ec80a039d
1,406
py
Python
Python/zzz_training_challenge/UdemyPythonPro/Chapter4_Iterables/Lists/lists.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter4_Iterables/Lists/lists.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/UdemyPythonPro/Chapter4_Iterables/Lists/lists.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
def main(): my_list = [1, 2, 3] # Option 1: Single Value my_list.append(-10) print(my_list) # Option 2: List Concatenation my_list2 = [4, 5] my_list += my_list2 print(my_list) # Option 3: Iterables #range: (start, stop, step) it = range(-2, 3, 1) # if wanna use a rang...
20.085714
69
0.617354
ce6b7130f03bc4859bb080a0e4c4f43bd7996934
270
py
Python
7-assets/past-student-repos/data_struct_and_algo-master/duplicate_removal.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
4
2021-08-31T00:56:40.000Z
2021-11-29T03:08:55.000Z
7-assets/past-student-repos/data_struct_and_algo-master/duplicate_removal.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
3
2022-02-14T18:48:11.000Z
2022-03-30T05:26:26.000Z
7-assets/past-student-repos/data_struct_and_algo-master/duplicate_removal.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-08-31T00:54:51.000Z
2021-08-31T00:54:51.000Z
def duplicate_removal(arr): dictonary={} for i in arr: if i in dictonary: dictonary[i]=dictonary[i]+1 else: dictonary[i]=1 return dictonary.keys() arr=[1,2,2,3,4,5,5,6,7] print(int(len(list(duplicate_removal(arr)))))
22.5
45
0.581481
0cd7ab649d099273561712d70935eba17f63b8a7
340
py
Python
python/tests/test_dataset_sun3d.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tests/test_dataset_sun3d.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tests/test_dataset_sun3d.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import numpy as np from os.path import join as opj from tutlibs.dataset import SUN3D def test_init(data_dir_path: str): dataset_dir_path = opj(data_dir_path, "sun3d") datalist_path = opj(dataset_dir_path, "SUN3Dv1.txt") dataset = SUN3D(dataset_dir_path, datalist_path) data = dataset[0] print(data...
26.153846
56
0.75
0b77ee8e23b274300eae17e2f3a3139a0646a473
718
py
Python
elements/python/13/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/13/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/13/3/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import string def char_counts(text): counts = {} for ch in text: if ch in string.whitespace: continue counts[ch] = counts.get(ch, 0) + 1 return counts def can_construct_letter(letter, magazine): letter_counts = char_counts(letter) magazine_counts = char_counts(magazin...
21.117647
81
0.639276
f0099e52a6405dcd1a78939b6db17d7c10c23e37
8,882
py
Python
Packs/MS-ISAC/Integrations/MSISAC/MSISAC.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/MS-ISAC/Integrations/MSISAC/MSISAC.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/MS-ISAC/Integrations/MSISAC/MSISAC.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import traceback import demistomock as demisto # noqa: F401 import urllib3 from CommonServerPython import * # noqa: F401 # Disable insecure warnings urllib3.disable_warnings() ''' CLIENT CLASS ''' class Client(BaseClient): """ This client class for MS-ISAC definies two API endpoints Que...
33.643939
120
0.632966
f01c4c4d1b012976432ca764498c0b69a2ed9914
656
py
Python
backend/api/btb/api/xray.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
4
2020-04-30T16:11:24.000Z
2020-06-02T10:08:07.000Z
backend/api/btb/api/xray.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
291
2020-04-20T13:11:13.000Z
2022-02-10T21:54:46.000Z
backend/api/btb/api/xray.py
prototypefund/project-c
a87a49d7c1317b1e3ec03ddd0ce146ad0391b5d2
[ "MIT" ]
2
2020-04-19T14:56:01.000Z
2020-04-19T18:09:34.000Z
from aws_xray_sdk import global_sdk_config from aws_xray_sdk.core import xray_recorder, patch from aws_xray_sdk.ext.flask.middleware import XRayMiddleware import logging def init_xray(app): logging.getLogger("aws_xray_sdk").setLevel('ERROR') if app.debug: # env var AWS_XRAY_SDK_ENABLED can overwrite t...
29.818182
60
0.716463
33419d5db72895c46d3be748f8c256adb65c57b1
1,725
py
Python
backend/app/api/endpoints/login.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
backend/app/api/endpoints/login.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/api/endpoints/login.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from datetime import timedelta, datetime from typing import Any from fastapi import APIRouter, Depends, HTTPException from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from app.api import deps from app.core import security from app.core.config import settings from app...
33.173077
89
0.718841
d7eb33dd16ea7cef823a321a7d72124838c14a84
2,763
py
Python
bolt/core/webhook.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/core/webhook.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/core/webhook.py
ph7vc/Philbot
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from gevent.pywsgi import WSGIServer import logging import time import ujson as json import falcon class WebhookServer(): def __init__(self, bot): self.bot = bot self.routes = {} self.app = falcon.API() self.app.add_sink(self.handle, '/') self.logger = logging.getLogger(__...
31.044944
86
0.493666
045123550af94000ca38ea7bf67c8e9a74843669
1,448
py
Python
tests/envs/cartpole/cartpole_calc_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
tests/envs/cartpole/cartpole_calc_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
tests/envs/cartpole/cartpole_calc_test.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
import chex import numpy.testing as npt import pytest from shinrl import CartPole @pytest.fixture def setUp(): config = CartPole.DefaultConfig(dA=5) return config def test_to_discrete_act(setUp): from shinrl.envs.mountaincar.calc import to_discrete_act config = setUp act = to_discrete_act(conf...
21.294118
62
0.71547
f0d1b12e52286d6f9c599e046faf011b2ec0c9bb
203
wsgi
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/apache/django.wsgi
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/apache/django.wsgi
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/apache/django.wsgi
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
import os import sys sys.path.append('/usr/sness/django') os.environ['DJANGO_SETTINGS_MODULE'] = 'calls.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
22.555556
55
0.788177
5041ecb60f7b02477e20bc1066cf2b4494f0d805
595
py
Python
Uebung4/Uebung4_Aufgabe11_2.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung4/Uebung4_Aufgabe11_2.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung4/Uebung4_Aufgabe11_2.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
#sauce input: # lies die Koeffizienten fuer Polynom 1 ein a = [float(i) for i in (input().split())] # lies die Koeffizienten fuer Polynom 2 ein b = [float(i) for i in (input().split())] # Initialisiere die Liste, die die Summe der Polynome beinhaltet c = list() #code: #anpassen der Laenge der listen: if len(a) > le...
16.081081
64
0.596639
5050e5900fc7982c86f3e1560340ec6632d8dd20
1,113
py
Python
src/boxplots/marginal_boxplot.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/boxplots/marginal_boxplot.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/boxplots/marginal_boxplot.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
import seaborn as sns # Import Data df = pd.read_csv("https://raw.githubusercontent.com/selva86/datasets/master/mpg_ggplot2.csv") # Create Fig and gridspec fig = plt.figure(figsize=(16, 10), dpi= 80) grid = plt.GridSpec(4, 4, hspace=0.5, wspace=0.2) # Define the axes ax_main = fig.add_subplot(grid[:-1, :-1]) ax_righ...
33.727273
158
0.707098
acf65ac0c38b075b719e2bbe170ab546698db9b9
4,271
py
Python
datasource/card.py
Artemis-ii/LDA
496e43f875ef35084cfb8539ee8bfe4e4fe68fb7
[ "Apache-2.0" ]
null
null
null
datasource/card.py
Artemis-ii/LDA
496e43f875ef35084cfb8539ee8bfe4e4fe68fb7
[ "Apache-2.0" ]
null
null
null
datasource/card.py
Artemis-ii/LDA
496e43f875ef35084cfb8539ee8bfe4e4fe68fb7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 8 15:09:40 2018 @author: Administrator """ import requests from lxml import etree import re import xlwt f = xlwt.Workbook() #创建工作簿 sheet1 = f.add_sheet(u'sheet1') #创建sheet dlist = ['title', 'pic','text','content', 'from', 'date'] for i in range(len(dlist)): sheet1....
24.976608
129
0.503629
c5d5589e421f42e48f606cc4cdcf384c2cf26fce
1,251
py
Python
Uebung5/Uebung5_Aufgabe14_1.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung5/Uebung5_Aufgabe14_1.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung5/Uebung5_Aufgabe14_1.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
#sauce head: import random # Die sortierte Liste random.seed() a = [random.randint(1,1000) for i in range(50)] a.sort() #Die zu suchende Zahl x = int(input()) #Rueckgabe bei Erfolg found = False #CODE: def suche(x, feld): gefunden = False n = len(feld) #print("Längefeld:",n) if n%2 == 0: ...
19.857143
80
0.57554
76a0154ded381ce8ff933e63dfebab9581316732
3,421
py
Python
hotspot/code/ARIMA.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
13
2019-03-13T06:07:18.000Z
2022-02-22T03:34:35.000Z
hotspot/code/ARIMA.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
null
null
null
hotspot/code/ARIMA.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
4
2019-03-13T06:07:32.000Z
2019-06-11T11:35:52.000Z
# coding: utf-8 import pandas as pd import numpy as np import os import matplotlib.pyplot as plt from package.utils import Explore from package.utils import ARIMAPredict from package.utils import Evalutaion from tqdm import tqdm import warnings warnings.filterwarnings('ignore') def str2tuple(string): leaf = st...
28.747899
115
0.61824
8c8b52f1da30cb2b7fe7e8ceb60cfe01c415b8ef
2,279
py
Python
yolov5-coreml-tflite-converter/tflite/tf_model/tf_model.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/tflite/tf_model/tf_model.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/tflite/tf_model/tf_model.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
from copy import deepcopy from pathlib import Path import logging from models.tf import parse_model from constants import NB_CHANNEL, NORMALIZATION_FACTOR from tf_model.tf_nms import NMS from tf_utils.parameters import ModelParameters, PostprocessingParameters class tf_Model(): def __init__(self, ch=NB_CHANNEL, ...
40.696429
116
0.62308
0f9b57a3e1e6174c2fbb97e0e51d921a55d907a3
1,421
py
Python
test/test_tag09.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag09.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
test/test_tag09.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch, mock_open try: from pyventskalender import tag09_loesung as heute except ImportError: from pyventskalender import tag09 as heute class Tag09Tests(TestCase): def test_10_wie_viele_messungen_von(self): pseudo_file = mock_open(read_data...
30.234043
70
0.622801
e84fca86c868b2288ab67f2f8b2f692373f6112d
743
py
Python
2_Kontrollstrukturen/U1_Kontinente/task.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
2_Kontrollstrukturen/U1_Kontinente/task.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
2_Kontrollstrukturen/U1_Kontinente/task.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 1a) continents = ["Afrika", "Antarktis", "Asien", "Australien und Ozeanien", "Europa", "Nordamerika", "Südamerika"] # TODO: Hier deinen Code ergänzen ######################################################################################################################## # 1b) # TODO: Hier...
27.518519
120
0.328398
fa6ab641c0f358287a482eaf9d885b7372de42d9
1,108
py
Python
src/test/tests/simulation/unstructured.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/unstructured.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/simulation/unstructured.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: unstructured.py # # Tests: libsim - connecting to simulation and retrieving data from it. # unstructured - 3D unstructured. # # Programmer: Kathleen Biagas # Date: June 18, 2...
25.181818
78
0.5713
ad67946b6001c5b09fc6e23bdafdd6341b807c69
15,694
py
Python
Packs/ReversingLabs_A1000/Integrations/ReversingLabsA1000/ReversingLabsA1000.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ReversingLabs_A1000/Integrations/ReversingLabsA1000/ReversingLabsA1000.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ReversingLabs_A1000/Integrations/ReversingLabsA1000/ReversingLabsA1000.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import os import re import shutil import demistomock as demisto # noqa: F401 import requests from CommonServerPython import * # noqa: F401 from urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(category=InsecureRequestWarning) VERSION = "v1.0.1" USER_AGENT = "ReversingLabs...
37.101655
120
0.582962
0f25b9a25083bce1b38d9d1aaba80b1c9fb406aa
4,514
py
Python
src/onegov/election_day/views/manage/election_compounds.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/manage/election_compounds.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/views/manage/election_compounds.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from morepath import redirect from onegov.ballot import ElectionCompound from onegov.ballot import ElectionCompoundCollection from onegov.core.utils import groupbylist from onegov.election_day import _ from onegov.election_day import ElectionDayApp from onegov.election_day.collections import ArchivedResultCollection fr...
30.093333
76
0.661941
0f2a9530e047eb5731c381e00105586eb7f99e9e
19,075
py
Python
Packs/APIVoid/Integrations/APIVoid/APIVoid.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/APIVoid/Integrations/APIVoid/APIVoid.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/APIVoid/Integrations/APIVoid/APIVoid.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 copy from base64 import b64decode # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' DATE_FORMAT = '%Y-%m-%dT%H:%M:%SZ' API_ENDPOINT = 'https://endpoint....
30.865696
113
0.59287
0e2e2b1a85cbb7bdabe22d93d6ef727c082ba522
950
py
Python
setup.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
null
null
null
setup.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
4
2020-05-12T07:26:52.000Z
2020-05-23T12:21:49.000Z
setup.py
turkishmaid/luechenbresse
2527b19eb2f961cef5ddb62e816b471e5d04847d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 """ Support setuptools. Created: 03.05.20 """ import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name='luechenbresse', version = '0.0.6', description = 'Scraping Germany', long_description = long_description,...
26.388889
70
0.64
add08286ab94041b4f7aedb07843e868944139b6
24,461
py
Python
Packs/F5/Integrations/F5_ASM/F5_ASM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/F5/Integrations/F5_ASM/F5_ASM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/F5/Integrations/F5_ASM/F5_ASM_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import io MOCK_EMPTY_RESPONSE = {"kind": "tm:asm:policies:host-names:host-namecollectionstate", "selfLink": "https://localhost/mgmt/tm/asm/policies/0000/host-names", "totalItems": 0, "items": [] } def util_load_js...
47.775391
126
0.749847
bc3641d4219b8565b5f7bae97d178ef170b82bfb
45,124
py
Python
wz/timetable/manage_data.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/timetable/manage_data.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/timetable/manage_data.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ TT/manage_data.py - last updated 2021-08-28 Coordinate and process the timetable data ============================== Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You...
38.015164
79
0.480121
1dabd2870c7afa004d8a20f2120dbbbfd9405ab0
3,589
py
Python
research/cv/Auto-DeepLab/src/core/aspp.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/Auto-DeepLab/src/core/aspp.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/Auto-DeepLab/src/core/aspp.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
42.72619
97
0.602396
3843b9133391847f26ee0aeb5a2a6bfe2fd10820
351
py
Python
tutorials/numerical_computation/scratch/model/state_variables.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
tutorials/numerical_computation/scratch/model/state_variables.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
tutorials/numerical_computation/scratch/model/state_variables.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# Dependences import datetime as dt from .sys_params import initial_values ## Initial state object genesis_states = { 'price': int(initial_values['TOK']), 'target': int(initial_values['TOK']), 'error': {'new':0, 'old':0}, 'leaky_integral': 0, 'integral': 0, 'Dt': 0, #seconds 'timestam...
20.647059
42
0.623932
699debb1e5fc5e62ec2e19ba9ff3a5d8220bff9d
12,386
py
Python
tests/onegov/org/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/org/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os from datetime import date, timedelta from uuid import uuid4 import onegov.ticket import transaction import pytest from onegov.chat import MessageCollection from onegov.core.elements import Element from onegov.core.utils import Bunch from onegov.form import FormDefinitionCollection, \ FormCollection, For...
30.283619
91
0.64363
0e0a6a1ed3db61df71fe78c7e64bd2a91d5d1024
451
py
Python
Sketche/with_test.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/with_test.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
Sketche/with_test.py
kantel/p5
2ef14191c35fdb056b44624c6ff0ff764c88cc30
[ "MIT" ]
null
null
null
import p5 def setup(): p5.size(400, 400) p5.title("Push-Style".encode("utf-8")) def draw(): p5.background(255, 255, 255) p5.fill(255, 153, 0) p5.stroke_weight(1) p5.circle(100, 100, 50) with p5.push_style(): p5.fill(255, 51, 51) p5.stroke_weight(5) p5.circle(200, ...
25.055556
85
0.611973
2d56294285885ada8b5cf02834cc0743bac65bc7
647
py
Python
scripts/OOP/sw01_modul_klasse.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/OOP/sw01_modul_klasse.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/OOP/sw01_modul_klasse.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- # sw01_modul_klasse.py import sys # Hier wird nur eine Klasse deklariert class Schokofigur: # statische Variable fuer alle Objekte der Klasse gemeinsam schoko_gesamt = 0 def __init__(self, name, gewicht): # Konstruktor # Name der Klasse. Name der stat...
23.107143
63
0.630603
fab6fc103c4345e221dec087fb2eb62d46e7cc0d
2,490
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Notify/Zabbix/Zabbix.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Notify/Zabbix/Zabbix.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Notify/Zabbix/Zabbix.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
import logging import sys from pyzabbix import ZabbixMetric, ZabbixSender from mongodb_consistent_backup.Errors import NotifyError, OperationError from mongodb_consistent_backup.Pipeline import Task class Zabbix(Task): def __init__(self, manager, config, timer, base_dir, backup_dir, **kwargs): super(Zab...
40.819672
145
0.598394
4f0036f529648a838da2a352d74b4409fb387a53
510
py
Python
Python/capitalize.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
1
2021-05-19T06:44:03.000Z
2021-05-19T06:44:03.000Z
Python/capitalize.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
Python/capitalize.py
paurav11/HackerRank
80c91c5cc55dd56671a5906be7a106ad4f1db95e
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the solve function below. def solve(s): if len(s) >= 0 and len(s) <= 1000: new_list = s.split() for i in range(len(new_list)): if new_list[i].isalpha(): new_list[i] = new_list[i].capitali...
20.4
54
0.552941
358343e3c66b725537d026df645990b2b2d2e366
522
py
Python
Curso-Em-Video-Python/2Exercicios/037_Conversor_de_Bases_Numericas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/037_Conversor_de_Bases_Numericas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/037_Conversor_de_Bases_Numericas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
print('Conversor de bases numericas: ') print('-' * 40) print('Escolha das bases de conversão: ') n = int(input('''[1] converter para binario [2] converter para octal [3] converter para Hexagonal Sua opção foi: ''')) n1 = int(input('Digite um numero: ')) if n == 1: print('A conversão para Binario é {}.'.format(b...
29
65
0.632184
57f08711ac0adb2c4b1347087e360507765599b8
267
py
Python
Algorithms/BitManipulation/MaximizingXOR.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/BitManipulation/MaximizingXOR.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/BitManipulation/MaximizingXOR.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 l = int(raw_input()) r = int(raw_input()) p = l ^ r maxmium = 1 while p: p >>= 1 maxmium <<= 1 print maxmium - 1 ''' maxmium = 0 for i in xrange(l, r+1): for j in xrange(i+1, r+1): maxmium = max(maxmium, i^j) print maxmium '''
11.608696
35
0.546816
aa09651203f175dac5ed717778ba68c3228f21e0
1,326
py
Python
source/pkgsrc/devel/py-setuptools/patches/patch-setuptools___distutils_sysconfig.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-setuptools/patches/patch-setuptools___distutils_sysconfig.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-setuptools/patches/patch-setuptools___distutils_sysconfig.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setuptools___distutils_sysconfig.py,v 1.1 2020/09/02 21:42:18 wiz Exp $ Remove _multiarch from config path (differs across platforms). Simplify _sysconfigdata to include only platform name. --- setuptools/_distutils/sysconfig.py.orig 2020-09-01 17:50:24.000000000 +0000 +++ setuptools/_distutils/sysconf...
45.724138
86
0.696833
a4d31f9effe26a39e117251db055ab7e951d1ae8
6,406
py
Python
research/cv/EDSR/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/EDSR/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/EDSR/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.364583
109
0.625195
104eeece96e047ecc2ee5333adff24c285ec11a3
129
py
Python
captain's_room.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
captain's_room.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
captain's_room.py
nirobio/puzzles
fda8c84d8eefd93b40594636fb9b7f0fde02b014
[ "MIT" ]
null
null
null
k = int(input()) array = list(map(int, input().split())) set_array = set(array) print(((sum(set_array)*k)-(sum(array)))//(k-1))
21.5
47
0.612403
52ed2125a9f41ad5254a1b289047421d764a2634
92
py
Python
2014/08/quiz-ebola/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/08/quiz-ebola/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/08/quiz-ebola/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 = '0Ala-N4Y4VPXIdEFWOTFxbzgxV2diLWRuTVRid01PQkE'
23
68
0.836957
52f148dc14b4830f10a7e424ea45a11d0e3495c6
3,977
py
Python
Packs/AnsibleTower/Integrations/AnsibleTower/test_data/test_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AnsibleTower/Integrations/AnsibleTower/test_data/test_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AnsibleTower/Integrations/AnsibleTower/test_data/test_responses.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
JOB_TEMPLATE_LAUNCH_RES = { "id": 1, "type": "job", "url": "/api/example", "created": "2020-12-29T14:38:47.792496Z", "modified": "2020-12-29T14:38:47.889460Z", "name": "job example", "description": "", "job_type": "run", "inventory": 1, "project": 4, "playbook": "example.yml"...
25.012579
46
0.555192
5e1727a417b1c18cd19fd3bc49743f81fc0e5068
7,494
py
Python
lib/graphics/graph.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/graphics/graph.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
lib/graphics/graph.py
moreorem/graphdener
ad8a4b98ad79afb2da820248d656384614721882
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # vispy: gallery 60 """ Dynamic planar graph layout. """ from os import path as op import numpy as np import math from vispy import gloo, app from vispy.gloo import set_viewport, set_state, clear from .util import create_arrowhead, get_segments_pos, set_marker_data from .....
34.855814
86
0.56632
dc3d2f938333b058d766df0d1be01e4a4ac30386
764
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/benchmarks/bm_queue.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/benchmarks/bm_queue.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/benchmarks/bm_queue.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import time from ll_queue import LLQueue from arr_queue import ArrQueue ​ n = 100000 ​ llq = LLQueue() arrq = ArrQueue() ​ start_time = time.time() ​ for i in range(n): llq.enqueue(i) ​ end_time = time.time() ​ print(f"LLQueue enqueue time: {end_time - start_time} seconds") ​ start_time = time.time() ​ for i in ran...
16.608696
64
0.687173
dc8127954366784487ab3222846032410568f6c7
2,713
py
Python
skills/radio/radio.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
4
2021-01-08T21:08:50.000Z
2021-12-08T15:30:50.000Z
skills/radio/radio.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
skills/radio/radio.py
gidocarper/rhasspy-skills-test
eaf57287a67a0e43a299053cf0b107d61afd9b13
[ "Unlicense" ]
null
null
null
import vlc import threading, json, os class Radio: def __init__(self, config): self.radio_station_url = '' self.radio_station_name = '' self.backgroundthread = None self.config = config self.language = config["config"]['setup']['language'] self.messages = config["lan...
34.341772
116
0.618504
f49ffd1ba445c01c3a1db7bb674200dffc302b2f
2,749
py
Python
kts/validation/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
18
2019-02-14T13:10:07.000Z
2021-11-26T07:10:13.000Z
kts/validation/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-02-17T14:06:42.000Z
2019-09-15T18:05:54.000Z
kts/validation/leaderboard.py
konodyuk/kts
3af5ccbf1d2089cb41d171626fcde4b0ba5aa8a7
[ "MIT" ]
2
2019-09-15T13:12:42.000Z
2020-04-15T14:05:54.000Z
import kts.ui.components as ui import kts.ui.leaderboard from kts.core.cache import CachedMapping from kts.validation.experiment import Experiment experiments = CachedMapping('experiments') class Leaderboard(ui.HTMLRepr): def __init__(self, name='main', maximize=True): self.name = name self.data ...
28.340206
87
0.651146
873c4594c1c89b2383937e466eb487f233546a1a
648
py
Python
Python/Programação_em_Python_Essencial/3- Estruturas Lógicas e Condicionais/condicionais_if_else_elif.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/3- Estruturas Lógicas e Condicionais/condicionais_if_else_elif.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Programação_em_Python_Essencial/3- Estruturas Lógicas e Condicionais/condicionais_if_else_elif.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
""" Estruturas condicionais if (Se), else (Senão), elif(Senão Se) """ idade = 16 """ # Estrutura condicional if, else em C if(idade < 18){ printf("Menor de idade"); }else if(idade == 18){ printf("Tem 18 anos"); }else{ printf("É menor de idade"); } """ """ # Estrutura condicional if, else em Java if(idade <...
17.052632
42
0.612654
875299205a616e79629e4dd5496849f44d8700de
40
py
Python
bolt/discord/__init__.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/discord/__init__.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/discord/__init__.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
from bolt.discord.events import Events
20
39
0.825
0dd275f912de874d510c669f74e5ee3e53215fc9
8,846
py
Python
src/onegov/election_day/forms/election_compound.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/election_compound.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/forms/election_compound.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from onegov.ballot import Election from onegov.election_day import _ from onegov.election_day.layouts import DefaultLayout from onegov.form import Form from onegov.form.fields import ChosenSelectMultipleField from onegov.form.fields import PanelField from re import findall from wtforms import ...
32.050725
78
0.607167
0df2b6f9238633b596239bc768bb539536e71df4
4,250
py
Python
webinterface/tests/unit_tests/test_model_Task.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/tests/unit_tests/test_model_Task.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/tests/unit_tests/test_model_Task.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from django.test import TestCase from webinterface.models import * from webinterface.tests.unit_tests.fixtures import BaseFixtureWithTasks from unittest.mock import * class TaskQuerySetTest(BaseFixtureWithTasks, TestCase): def test__cleaned(self): self.assertSetEqual(set(Task.objects.cleaned()), ...
48.295455
120
0.699294
217217fab29428a0a7a9badd47939e6a32e95c47
32
py
Python
hello.py
AryannaD/MB215-Lab1
e507dd8f49a0a0953a57189acdba9452998317fa
[ "MIT" ]
null
null
null
hello.py
AryannaD/MB215-Lab1
e507dd8f49a0a0953a57189acdba9452998317fa
[ "MIT" ]
null
null
null
hello.py
AryannaD/MB215-Lab1
e507dd8f49a0a0953a57189acdba9452998317fa
[ "MIT" ]
null
null
null
print("hello world from Aryanna"
32
32
0.8125
217a490d897eb91b45189f3ddf5a5fa5be3566f1
752
py
Python
sam_core/sam_core/api_switch.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
sam_core/sam_core/api_switch.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
sam_core/sam_core/api_switch.py
csjy309450/SAM-Backend
a23569ea372f718ca4a167e21e8046336db00561
[ "MIT" ]
null
null
null
import threading class ApiSwitch: __disabled_api_list = set() __cs_disabled_api_list = threading.Lock() @staticmethod def add_disabled_api(url: str): ApiSwitch.__cs_disabled_api_list.acquire() ApiSwitch.__disabled_api_list.add(url) ApiSwitch.__cs_disabled_api_list.release() ...
30.08
80
0.716755
d58c25e7a73124d71f1a55b5322649047c08bb94
962
py
Python
report.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
report.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
report.py
jorgesumle/ticketfrei
9e221ed29047ece677d00a668becc8b970d634a2
[ "0BSD" ]
null
null
null
#!/usr/bin/env python3 class Report(object): """ A ticketfrei report object. Toots, Tweets, and E-Mails can be formed into ticketfrei reports. """ def __init__(self, author, source, text, id, timestamp): """ Constructor of a ticketfrei report :param author: username of t...
26
69
0.575884
639959799c03c671408e94d12e837ed1037ed7bb
4,240
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_snmp_users.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_snmp_users.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/onyx/test_onyx_snmp_users.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# # Copyright: Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Make coding more python3-ish from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible_collections.community.general.tests.unit.compat.mock import pa...
44.166667
103
0.648585
89a9d561aaad59d1476a96f176c00c36f0389573
3,787
py
Python
wl2gtfs.py
bajo/wl2gtfs
f585f50e66445ec36bac736df48e58552707ea88
[ "MIT" ]
1
2016-05-23T15:19:49.000Z
2016-05-23T15:19:49.000Z
wl2gtfs.py
bajo/wl2gtfs
f585f50e66445ec36bac736df48e58552707ea88
[ "MIT" ]
null
null
null
wl2gtfs.py
bajo/wl2gtfs
f585f50e66445ec36bac736df48e58552707ea88
[ "MIT" ]
null
null
null
#!/bin/env python import csv import urllib2 import os import json import io stops_url = "wienerlinien-ogd-haltestellen.csv" platforms_url = "wienerlinien-ogd-steige.csv" lines_url = "wienerlinien-ogd-linien.csv" def download_file(file_url): base_url = "http://data.wien.gv.at/csv/" url = base_url+file_url ...
35.392523
106
0.55268
f6d76fbe527bedb7ab658c905d632725a5395b44
3,346
py
Python
bot_follow_elite.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
bot_follow_elite.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
bot_follow_elite.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import requests,os,json import elite P = "\x1b[0;97m" # Putih M = "\x1b[0;91m" # Merah O = "\x1b[0;96m" # Biru Muda def main(): try: token = open("token.txt","r").read() otw = requests.get("https://graph.facebook.com/me/?access_token=" + token) a = json.loads(otw.text) nama = a["na...
72.73913
124
0.719068
125334670a4e97bbeaeecf27ca3488758fccb9fc
5,128
py
Python
shinrl/_calc/collect_samples.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/_calc/collect_samples.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/_calc/collect_samples.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
""" JAX functions to collect samples. Author: Toshinori Kitamura Affiliation: NAIST & OSX """ from __future__ import annotations import time from collections import defaultdict from typing import Callable, Dict, List, NamedTuple, Optional, Tuple import gym import numpy as np from chex import Array, PRNGKey from cppr...
31.460123
101
0.61681
d644f08c06e6a70022771b67fc0ea08c252f9298
2,605
py
Python
function_call.py
pradeep90/annotation_collector
49dcbe4de9a40f4efe55495bcb128c03cb46aff2
[ "MIT" ]
2
2021-12-16T23:06:48.000Z
2022-01-31T04:28:54.000Z
function_call.py
pradeep90/annotation_collector
49dcbe4de9a40f4efe55495bcb128c03cb46aff2
[ "MIT" ]
null
null
null
function_call.py
pradeep90/annotation_collector
49dcbe4de9a40f4efe55495bcb128c03cb46aff2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from typing import Iterable, List, Callable import libcst as cst import libcst.codemod as codemod import libcst.matchers as m from pathlib import Path import sys import argparse import textwrap import dataclasses from util import get_modules, expression_to_string def register_buffer_arguments...
28.944444
88
0.633781
14a9a36ed865ea5cdd4ece87d1664515951804f9
1,325
py
Python
simple_flask_app/hello.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
simple_flask_app/hello.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
simple_flask_app/hello.py
jcromerohdz/FlaskDev
29539259cba3a0e18c205fb439ee916fb12e5318
[ "MIT" ]
null
null
null
from flask import Flask, render_template, request, redirect, url_for, make_response, session app = Flask(__name__) # app.secret_key = "super_master_key" app.config.from_pyfile('settings.py') # @app.route('/') # def hello_world(): # return 'Hello, World!' @app.route('/') def index(): return render_template('i...
32.317073
92
0.662642
1af701b9e95f92ff7c8697ef8df48279bbad71ad
5,392
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/digital_ocean_snapshot_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/digital_ocean_snapshot_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/digital_ocean_snapshot_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2018, Abhijeet Kasurde <akasurde@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = ty...
32.287425
146
0.674332
2168fe1d2ea5797cbda92081ae769b5f1a50cbb5
1,320
py
Python
bbfm.py
laemmy/PD365-BBCP
7688234936b7085a22dce6beff9d174389fbd7d1
[ "MIT" ]
null
null
null
bbfm.py
laemmy/PD365-BBCP
7688234936b7085a22dce6beff9d174389fbd7d1
[ "MIT" ]
null
null
null
bbfm.py
laemmy/PD365-BBCP
7688234936b7085a22dce6beff9d174389fbd7d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # import requests import json URL="https://repeatermap.de/api.php" result=requests.get(URL) repeater=result.json() def print_csv(): #print ('999;',i,';','a;',format(call,tx),tx,str(rx-tx),mode) # print (call,qth,rx,tx,str(rx-tx),mode) print("{};{};{};{};{};{};{};{};{};{};{};{};{};{};...
24.444444
217
0.534848
0d3983108e5e70099e1a16e7bd408f70cb0581ee
3,965
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_gzip_support.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_gzip_support.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/test/test_gzip_support.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os from nose.tools import assert_equal, assert_list_equal import tempfile import pybedtools.test.tfuncs as tfuncs import pybedtools import gzip setup = tfuncs.set...
33.319328
87
0.718033
2ec265e135c1b0e1d6b01eb7292ac38b5a649856
791
py
Python
aoc2020/day_09/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_09/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_09/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from collections import deque from aoc2020 import * class Solution(SolutionABC): expected = 127 buffer = deque(maxlen=25) def is_valid(self, val): """We could get more elaborate here but it's only 25 elements in the buffer.""" for i in range(len(self.buffer) - 1): for j in ran...
30.423077
87
0.581542
25b51e63cddcbdfc325f73709ad4b552e794ab4a
6,523
py
Python
src/server/tests/test_auth.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
6
2020-12-15T18:57:53.000Z
2022-02-06T18:54:35.000Z
src/server/tests/test_auth.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
186
2020-11-17T10:18:17.000Z
2022-03-02T07:19:22.000Z
src/server/tests/test_auth.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
1
2020-12-14T19:37:30.000Z
2020-12-14T19:37:30.000Z
import pytest from ..app.repository.AuthenticationRepository import AuthenticationRepository import json import re import uuid import time from ..app.models.User import User from mongoengine import disconnect, connect # from datetime import datetime, timedelta auth = AuthenticationRepository(testing=True) @pytest.f...
34.882353
108
0.652614
d37bac046803cbc39b1fc3ee65eae898353d8462
7,422
py
Python
hashing/scripts/progressive_group.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/progressive_group.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
hashing/scripts/progressive_group.py
ShuhaoZhangTony/WalnutDB
9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050
[ "MIT" ]
null
null
null
import getopt import os import sys from math import ceil, floor import matplotlib import matplotlib as mpl from matplotlib.ticker import FuncFormatter, LinearLocator from numpy import double mpl.use('Agg') import matplotlib.pyplot as plt import pylab from matplotlib.font_manager import FontProperties OPT_FONT_NAME ...
31.054393
133
0.567502
e24dfa62af4bf91ad200819d871bd3ad0fe45cab
6,231
py
Python
research/cv/FaceRecognitionForTracking/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/FaceRecognitionForTracking/infer/sdk/main.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/FaceRecognitionForTracking/infer/sdk/main.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 in writing...
35.403409
114
0.640828
e27f79add16bef55837bd854d8aa79219f78956f
4,007
py
Python
tensorflow/basic-rl/extra/egocentric/egoCliffBasic.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
tensorflow/basic-rl/extra/egocentric/egoCliffBasic.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
tensorflow/basic-rl/extra/egocentric/egoCliffBasic.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-10-14T07:30:18.000Z
2019-10-14T07:30:18.000Z
import sys import cellular import qlearn startCell = None class Cell(cellular.Cell): def __init__(self): self.cliff = False self.goal = False self.wall = False def colour(self): if self.cliff: return 'red' if self.goal: return ...
26.892617
98
0.529573
e2acc9969788e587da7b9cd19c7be051cadb583d
44
py
Python
rasa/core/actions/__init__.py
ALT-F1/rasa
8d4a734616f72aca14f122716fbf338c42644188
[ "Apache-2.0" ]
2,433
2017-10-04T13:08:05.000Z
2022-03-13T14:59:26.000Z
rasa/core/actions/__init__.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
1,684
2017-10-04T13:04:44.000Z
2019-05-31T20:48:49.000Z
rasa/core/actions/__init__.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
1,229
2017-10-04T20:23:59.000Z
2022-03-11T02:49:13.000Z
from rasa.core.actions.action import Action
22
43
0.840909
1a753bc9d1de1eeb70338889f7fae847b74a1e66
2,037
py
Python
SortDupIntStringTup.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
SortDupIntStringTup.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
SortDupIntStringTup.py
Themishau/Algorithmen
f31627f823eb86f8673e72c4998c9029e74097fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- def read_data(path): try: with open(path, encoding="utf-8") as stops: stopslist = stops.readlines()[3:] return stopslist except FileNotFoundError: print ("keine Datei gefunden") return None def prepare_data(inputData): stop_dict = {...
29.521739
113
0.572901
b3911169dfd34d799fcf3dc0d783d6087889f3e7
4,432
py
Python
yolov5-coreml-tflite-converter/coreml/coreml_converter/pytorch_to_coreml_converter.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/coreml/coreml_converter/pytorch_to_coreml_converter.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/coreml/coreml_converter/pytorch_to_coreml_converter.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
import logging from pathlib import Path import coremltools as ct from constants import FLOAT32_SUFFIX, FLOAT16_SUFFIX, INT8_SUFFIX, FLOAT32, FLOAT16, INT8, COREML_SUFFIX from constants import OUTPUT_DIR, DEFAULT_COREML_NAME, DEFAULT_QUANTIZATION_TYPE, \ DEFAULT_INPUT_RESOLUTION, BLUE, END_COLOR, GREEN, RED from c...
45.690722
114
0.694946
b3bb6045c77e7d06f7a8f7ea2fbfb81dfd866c18
818
py
Python
Learnify/models.py
kevlie/StarterHacks
38b62d385d8a498515b09351cbd7b47171a2bef8
[ "MIT" ]
null
null
null
Learnify/models.py
kevlie/StarterHacks
38b62d385d8a498515b09351cbd7b47171a2bef8
[ "MIT" ]
null
null
null
Learnify/models.py
kevlie/StarterHacks
38b62d385d8a498515b09351cbd7b47171a2bef8
[ "MIT" ]
null
null
null
from datetime import datetime from Learnify import p_db class User(p_db.Model): user_id = p_db.Column(p_db.Integer, primary_key=True) username = p_db.Column(p_db.String(20), unique=True, nullable=False) playlist_id = p_db.Column(p_db.Integer, foreign_keys="Playlist.playlist_id") def __repr__(self): ...
38.952381
98
0.710269
3783cb81e1fc724434a9e176fa581dd9a9f126f2
2,281
py
Python
Vorlesungsinhalte/2020-10-26_Listenbeispiele.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-26_Listenbeispiele.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-26_Listenbeispiele.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
2
2020-10-08T18:08:59.000Z
2020-10-29T19:53:34.000Z
# Beispiele zu Listen (Arrays) # Beispiel 1: Lineare Liste aus Zahlen liste1 = [1,2,3,4,5,6,7] for zahl in liste1: print(zahl) # Beispiel 2: Lineare Liste aus Strings liste2 = ["Hallo","du","schöne","Welt"] for wort in liste2: print(wort) # Beispiel 3: Gemischte Listen liste3 = [1,2,3,"Hallo","Liste"] for elemen...
25.344444
120
0.54406
80e4492b303722bf64c1038633ff169ba6a67ee6
2,759
py
Python
pet.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
pet.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
pet.py
I4-Projektseminar-HHU-2016/seminar-project-marionline03
ec2b2d2b588baa647c7a5e542e1d20a39cd0fc09
[ "CC0-1.0" ]
null
null
null
#import datetime import logging # for DB usage import sqlite3 #for pet creation import random # Pet def make_tabel_pet(): try: con = sqlite3.connect('game.db') con.execute('''CREATE TABLE IF NOT EXISTS pet ( id INTEGER PRIMARY KEY, name CHAR(100) NOT NULL, ...
31.352273
240
0.607829
2061257ed64e6dd8a536ae07fe0cdbc0c50731d3
3,353
py
Python
research/cv/advanced_east/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/advanced_east/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/advanced_east/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.240385
78
0.640024
207cd22c5687f57b81f327add04366de1f8a9887
337
py
Python
benwaonline/entities/__init__.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/entities/__init__.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/entities/__init__.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from benwaonline.entities.entity import Entity from benwaonline.entities.user import User, UserLike from benwaonline.entities.post import Post, PostLike from benwaonline.entities.image import Image from benwaonline.entities.preview import Preview from benwaonline.entities.comment import Comment from benwaonline.entitie...
42.125
52
0.863501
456def3805a989f3ec5ee55314e7988c5639b7bc
3,075
py
Python
11_GUI/AdasGui6/scripts/spline_interpolation.py
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
null
null
null
11_GUI/AdasGui6/scripts/spline_interpolation.py
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
null
null
null
11_GUI/AdasGui6/scripts/spline_interpolation.py
franneck94/UdemyCppExercises
862d3e3df198ef8f3c7b850bbeead6161700f9d1
[ "MIT" ]
5
2022-02-06T20:05:07.000Z
2022-03-10T12:48:58.000Z
from typing import List import numpy as np import matplotlib.pyplot as plt from scipy.interpolate import CubicSpline np.random.seed(42) def f( i: int, x: float, x_: List[float], a: List[float], b: List[float], c: List[float], d: List[float], ) -> float: return ( a[i] * (x - x...
24.798387
74
0.43935
2fc4c0c44ef9a5963a0366c29be3fee09c92116e
1,075
py
Python
web2/bahn/models.py
git-learner-20/wp-bahn
757f9cf91ca645783ffd929a872d1e7bd4faec96
[ "MIT" ]
1
2020-01-09T22:27:29.000Z
2020-01-09T22:27:29.000Z
web2/bahn/models.py
PatriciaKaluza/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
null
null
null
web2/bahn/models.py
PatriciaKaluza/wp-bahn
a98a297928a9454fa24f033e70ab7ebcdf53a5d5
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class Verbindung(models.Model): name = models.TextField() favorit = models.BooleanField(default=False) def __str__(self): return self.name class Segment(models.Model): verbindung = models.ForeignKey(Verbindung, on_delete=models.CASCADE)...
32.575758
108
0.685581
642467a7576c658e84bf9a14f9bcb07b387e1fbf
5,926
py
Python
xmlns/schemadoc.py
danja/danja.github.io
26662fdf910b8121e14b8470fc4abb94707c574a
[ "Apache-2.0" ]
null
null
null
xmlns/schemadoc.py
danja/danja.github.io
26662fdf910b8121e14b8470fc4abb94707c574a
[ "Apache-2.0" ]
null
null
null
xmlns/schemadoc.py
danja/danja.github.io
26662fdf910b8121e14b8470fc4abb94707c574a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ schemadoc.py - Format RDF Schemata Author: Sean B. Palmer, inamidst.com Usage: ./schemadoc.py URI """ import sys from rdflib.Graph import ConjunctiveGraph as Graph from rdflib import URIRef, Literal, BNode, Namespace from rdflib import RDF, RDFS OWL = Namespace('http://www.w3.org/2002/07/owl...
27.562791
77
0.56328
ffac75c1efb768daf8800cb16db666775661df5d
377
py
Python
RDS/circle3_central_services/token_storage/src/api/Token/Token.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
10
2020-06-24T08:22:24.000Z
2022-01-13T16:17:36.000Z
RDS/circle3_central_services/token_storage/src/api/Token/Token.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
78
2020-01-23T14:32:06.000Z
2022-03-07T14:11:16.000Z
RDS/circle3_central_services/token_storage/src/api/Token/Token.py
Sciebo-RDS/Sciebo-RDS
d71cf449ed045a2a7a049e2cb77c99fd5a9195bd
[ "MIT" ]
1
2020-06-24T08:33:48.000Z
2020-06-24T08:33:48.000Z
from flask import jsonify from RDS import Token, OAuth2Token import utility def index(): tokens = utility.storage.getTokens() data = {"length": len(tokens), "list": tokens} return jsonify(data) # TODO Implements me def get(token_id): raise NotImplementedError def put(token_id): raise NotImpl...
15.08
50
0.71618
9246251ba6749b4d0cde8d6a79da7e233db1751b
12,264
py
Python
rev/rev-boring-flag-checker/src/gen.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
2
2021-08-09T17:08:12.000Z
2021-08-09T17:08:17.000Z
rev/rev-boring-flag-checker/src/gen.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
rev/rev-boring-flag-checker/src/gen.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
1
2021-10-09T16:51:56.000Z
2021-10-09T16:51:56.000Z
flag = "rarctf{1_h0p3_y0u-3njoy3d_my-Br41nF$&k_r3v!_d387171751}" flag = list(map(ord, flag)) assert len(flag) % 2 == 1 # thonk generation factors = {} for i in range(256): for f in range(16,1,-1): if i % f == 0: if i//f < 20: factors[i] = (f, i//f) break def genpayload(num, steps, l): i...
147.759036
10,458
0.068412
2bd6db24386b99c513205ff7338cf7b21df4495f
1,179
py
Python
src/onegov/feriennet/forms/volunteer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/volunteer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/forms/volunteer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.feriennet import _ from onegov.form import Form from wtforms.fields import StringField from wtforms.fields import TextAreaField from wtforms.fields.html5 import DateField from wtforms.fields.html5 import EmailField from wtforms.validators import InputRequired, Email class VolunteerForm(Form): first_n...
25.085106
51
0.64631
2bf38591c64aac4ed1f2732c4b3edf8126aa1c66
5,867
py
Python
tests/onegov/event/test_utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/test_utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/test_utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import datetime from dateutil.parser import parse from lxml import etree from onegov.core.utils import module_path from onegov.event.utils import as_rdates from onegov.event.utils import GuidleExportData from pytest import mark from pytest import raises from sedate import replace_timezone def tzdatetime...
34.309942
77
0.634396
75619872c9a15d2291975b38bb6c162de6f12bab
648
py
Python
challenges/arrayPacking/python3/arrayPacking.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
5
2020-05-21T03:02:34.000Z
2021-09-06T04:24:26.000Z
challenges/arrayPacking/python3/arrayPacking.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
6
2019-04-24T03:39:26.000Z
2019-05-03T02:10:59.000Z
challenges/arrayPacking/python3/arrayPacking.py
jimmynguyen/codefights
f4924fcffdb4ff14930618bb1a781e4e02e9aa09
[ "MIT" ]
1
2021-09-06T04:24:27.000Z
2021-09-06T04:24:27.000Z
def arrayPacking(a): m = 0 for i, n in enumerate(a): m |= n << i*8 return m if __name__ == '__main__': input0 = [[24, 85, 0], [23, 45, 39], [1, 2, 4, 8], [5], [187, 99, 42, 43]] expectedOutput = [21784, 2567447, 134480385, 5, 724198331] assert len(input0) == len(expectedOutput), '# input0 = {}, # expectedOutpu...
46.285714
123
0.655864
34192749b1e6f9e25cf3089a8c531793e886897f
253
py
Python
etc/db/access.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
1
2021-06-15T08:59:02.000Z
2021-06-15T08:59:02.000Z
etc/db/access.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
etc/db/access.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
from tinydb import TinyDB, Query db = TinyDB('dbtest.json') q = Query() r = db.update({'val': 42}, q.type == 'startcnt') print("1>", r) r = db.search(q.type == 'startcnt') print("2>", r) n = r[0]['val'] print("2>", n) # db.remove(Fruit.count < 5)
14.882353
48
0.577075
b6e431a8eeb011bb06ee5f3f34f711ea03ea0b2a
1,814
py
Python
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/ua_constants.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
4
2015-11-11T14:02:17.000Z
2021-11-29T16:07:38.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/ua_constants.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
6
2019-04-20T14:48:58.000Z
2020-08-26T15:13:02.000Z
Vorlesungsbeispiele/UA_TrafficLight/tools/pyUANamespace/ua_constants.py
zmanjiyani/PLT_MRT_ARM-RPi2
da77ab8ddf652a12ae6a6647c993daa2f94b39fb
[ "MIT" ]
9
2016-01-10T15:14:28.000Z
2021-10-13T22:45:19.000Z
#!/usr/bin/env/python # -*- coding: utf-8 -*- ### ### Author: Chris Iatrou (ichrispa@core-vector.net) ### Version: rev 13 ### ### This program was created for educational purposes and has been ### contributed to the open62541 project by the author. All licensing ### terms for this source is inherited by the terms a...
31.275862
73
0.76957
edd5d74dbf779f5c5e8558270a8fbc0112d5ed6d
35
py
Python
src/d2py/algebra/__init__.py
xinetzone/d2py
657362a0451921ef5a7b05b4a8378f7379063cdf
[ "Apache-2.0" ]
3
2022-03-09T14:08:42.000Z
2022-03-10T04:17:17.000Z
src/d2py/algebra/__init__.py
xinetzone/d2py
657362a0451921ef5a7b05b4a8378f7379063cdf
[ "Apache-2.0" ]
3
2021-11-07T13:11:26.000Z
2022-03-19T03:28:48.000Z
src/d2py/algebra/__init__.py
xinetzone/d2py
657362a0451921ef5a7b05b4a8378f7379063cdf
[ "Apache-2.0" ]
1
2022-03-15T14:18:32.000Z
2022-03-15T14:18:32.000Z
'''Mathematical Modern Algebra. '''
17.5
31
0.714286
b6aa5d548c6f0a084252cbffb692a0914574840b
779
py
Python
controller/gpio.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
1
2021-06-15T08:59:02.000Z
2021-06-15T08:59:02.000Z
controller/gpio.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
controller/gpio.py
huberthoegl/tsgrain
405d0ba8b98c2afa950d27294e55cd1e07506db4
[ "Apache-2.0" ]
null
null
null
from mcp23017 import mcp_handler import RPi.GPIO as GPIO import shdn def init(): GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) interrupt_expand = 17 # GPIO17 to interrupt output of MCP23017 interrupt_clock = 27 # GPIO27 to interrupt output of DS3231 GPIO.setup(interrupt_expand, GPIO.IN, pu...
28.851852
93
0.744544
fcfd3a3c387a7e3ceeaa6bb74fc2574cb85701db
332
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/14_variaveis/variaveis.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/14_variaveis/variaveis.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/14_variaveis/variaveis.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
""" Iniciar com letra, pode conter número, separar _, letras minusculas """ nome = 'Pedro' idade = 23 altura = 1.80 e_maior = idade > 18 peso = 60 imc = peso / (altura ** 2) """print('Nome: ', nome) print('Idade: ', idade) print('Idade: ', idade) print('Maior de idade: ', altura)""" print(nome, 'tem', idade, 'e seu imc...
20.75
67
0.626506
1ebd80f7040694cb9e2565d5c40bf4752a014c95
3,410
py
Python
AI_Engine_Development/Design_Tutorials/08-n-body-simulator/Module_01_python_sims/pylib/animate.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
567
2019-10-01T16:31:26.000Z
2022-03-31T18:43:30.000Z
AI_Engine_Development/Design_Tutorials/08-n-body-simulator/Module_01_python_sims/pylib/animate.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
142
2019-11-25T14:42:16.000Z
2022-03-31T15:06:56.000Z
AI_Engine_Development/Design_Tutorials/08-n-body-simulator/Module_01_python_sims/pylib/animate.py
jlamperez/Vitis-Tutorials
9a5b611caabb5656bbb2879116e032227b164bfd
[ "Apache-2.0" ]
387
2019-10-10T09:14:00.000Z
2022-03-31T02:51:02.000Z
# Copyright 2021 Xilinx Inc. # # 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 in writing, ...
26.030534
95
0.626393
1ec2c5c77acb7b8af7dc4e2c7f39240eca8f2618
175
py
Python
python/socket/getfqdn.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/socket/getfqdn.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/socket/getfqdn.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import socket # convert a partial name to a fully qualified domain name for host in ['google.com', 'pymotw.com']: print('{:>10} : {}'.format(host, socket.getfqdn(host)))
29.166667
59
0.68
94ae45769453be853a16bd1e7f1dee34138b7411
353
py
Python
books/SystemProgramming/ch3_introduction/info.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch3_introduction/info.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch3_introduction/info.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""info.py platform 모듈을 이용한 시스템 정보 확인 """ #!/usr/bin/env python import sys import platform import multiprocessing print(f"운영체제: {platform.system()}") print(f"운영체제의 상세정보: {platform.platform()}") print(f"운영체제 버전: {platform.version()}") print(f"프로세서: {platform.processor()}") print(f"CPU 수: {multiprocessing.cpu_count()}")...
23.533333
46
0.708215
94d7c131e69bf6838f1a6ffef780a98752befb3d
11,206
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_tools.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_tools.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_tools.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import QAction, QWidgetAction, QLabel import os.path import json from .gto_info import gtoInfo from .gto_tool import gtoTool from .gto_commands import * class gtoTools(QObject): def __init__(self...
43.266409
109
0.493575
44dfa16f1bd6598129aaa0aae2db3d4efaf7ba76
759
py
Python
Problems/Depth-First Search/medium/NumberGoodLeafNodesPairs/number_good_leaf_nodes_pairs.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/medium/NumberGoodLeafNodesPairs/number_good_leaf_nodes_pairs.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/NumberGoodLeafNodesPairs/number_good_leaf_nodes_pairs.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
# 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 countPairs(self, root: TreeNode, distance: int) -> int: self.ans = 0 def dfs(cur_node: TreeNode): if not cur_node: ...
23
59
0.532279