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
bec63a47a71863f39d8b8c7ebf3d154e57437190
5,104
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch09_search_and_sort/solutions/ex08_serach_rotated_sorted_v2.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch09_search_and_sort/solutions/ex08_serach_rotated_sorted_v2.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch09_search_and_sort/solutions/ex08_serach_rotated_sorted_v2.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden # Aufgabe A: liaeare Suche mit min und max: EASY # find flank pos def find_flank_pos_simple(values): for i in range(len(values)): next_idx = (i + 1) % len(values) if values[i] > values[next_idx]: ret...
32.929032
91
0.674177
fe358ed93d5ee4af04da5dcf3a2a79333473e091
6,538
py
Python
frappe-bench/apps/erpnext/erpnext/config/stock.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/stock.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/config/stock.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Stock Transactions"), "items": [ { "type": "doctype", "name": "Stock Entry", }, { "type": "doctype", "name": "Delivery Note", }, { "type": "doctype", "name": "P...
19.005814
66
0.469716
fe479c7dad921063d1f4e641af21533a3fa8a4cd
285
py
Python
highLvl.py
turutle/rep
7932c6889021fa0359ffe3931e731ef5b940f257
[ "MIT" ]
null
null
null
highLvl.py
turutle/rep
7932c6889021fa0359ffe3931e731ef5b940f257
[ "MIT" ]
null
null
null
highLvl.py
turutle/rep
7932c6889021fa0359ffe3931e731ef5b940f257
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 25 23:31:20 2021 @author: turtl """ h = int ( input ( "Input hours --> ")) m = int ( input ( "Input minutes --> ")) s = int ( input ( "Input seconds --> ")) print ( "Degrees from start of clocks: %.2f" % (720/24*h + 30/60*m + 0.5/60*s))
25.909091
79
0.547368
431f246ab4ddc0d4d9448e3645d38d902be72316
12,419
py
Python
MAIN/STM32F405_C/NORMAL/V38/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/V38/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405_C/NORMAL/V38/PXSensor.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import gc from micropython import const import binascii class T: D = const( 40) N = const(-30) class key: class px: number = 0 seatStatus = 1 seatPolarity = 2 cableStatus = 3 beltStatus = 4 beltPolarity = ...
49.676
329
0.588373
434cff22c6b2c6585ed35a83d57808019a3b552f
529
py
Python
hystreet/hystreet_to_s3/upload_historic_data.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
hystreet/hystreet_to_s3/upload_historic_data.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
hystreet/hystreet_to_s3/upload_historic_data.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
import boto3 import pandas as pd import json import datetime df = pd.read_csv('data.temp.csv') for name, group in df.groupby('timestamp'): print(group.to_json(orient='records')) date_str = name.split('+')[0] date = datetime.datetime.strptime(date_str, '%Y-%m-%dT%H:%M:%S.%f') client = boto3.client('s3'...
35.266667
118
0.652174
600872e60fcb8fb18ac0b088133b44027c478519
1,563
py
Python
01_Einfuehrung/prime_factors.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
01_Einfuehrung/prime_factors.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
01_Einfuehrung/prime_factors.py
Hananja/DQI19-Python
63749c49910b5be57d09bb98a5fe728c8fdd5280
[ "Unlicense" ]
null
null
null
# Berechnung der Primfaktoren einer Zahl in einer Liste loop = True while loop: # Eingabe number = input_number = int(input("Bitte Nummer eingeben: ")) # Verarbeitung factors = [] # Liste zum Sammeln der Faktoren divider = 2 while number > 1: while number % divider == 0: ...
34.733333
94
0.555982
603ca572b495354427f085c84bbe45b52ba2244a
59
py
Python
algorithm/__init__.py
xSAVIKx/SHUP-algorithm
d188add53da7ec0a163f02ea4ad49fa9f33d2402
[ "Apache-2.0" ]
null
null
null
algorithm/__init__.py
xSAVIKx/SHUP-algorithm
d188add53da7ec0a163f02ea4ad49fa9f33d2402
[ "Apache-2.0" ]
null
null
null
algorithm/__init__.py
xSAVIKx/SHUP-algorithm
d188add53da7ec0a163f02ea4ad49fa9f33d2402
[ "Apache-2.0" ]
null
null
null
__author__ = 'Iurii Sergiichuk <i.sergiichuk@samsung.com>'
29.5
58
0.779661
6073b4caaca7868e4c188d798343d992eea99244
1,299
py
Python
src/aijack/utils/configloader.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/utils/configloader.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/utils/configloader.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
from yaml import load, dump try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper from ..common.exeptions import LoadError def formatCheck(dic): if dic['update_type'] not in [ 'fedAVG', 'fedSGD' ]: return False if dic['dataset...
29.522727
99
0.618938
e0a9d58624492b7247597ad65c90a8a71dd48fca
836
py
Python
src/nginx_status.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/nginx_status.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
src/nginx_status.py
magistersart/ZTC_fork
ce72734ea575d9846b5b81f3efbfd14fa1f7e532
[ "PostgreSQL" ]
null
null
null
#!/usr/bin/python """ Nginx TimeLog check script: calculates min/avg/max upstream response times. Usage: 1. configure time_log log format in nginx config (http section): log_format time_log '$upstream_response_time $request <anything you want>'; 2. Add timelog log to all servers/locations you need to monitor: access_...
27.866667
76
0.764354
1c64ea9c312400132c3d06a8652b8d26fff0752c
1,231
py
Python
Score.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
1
2019-04-27T07:28:52.000Z
2019-04-27T07:28:52.000Z
Score.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
Score.py
BogyMitutoyoCTL/Riesen-Tetris
8bbbaf0b7aeae7890da724d3d72719a7d068237a
[ "MIT" ]
null
null
null
import time from numbersforwatch import Number from field import Field from painter import Led_Matrix_Painter class Score: def __init__(self): self.points = 0 def score_for_line(self, deleted_lines): if 0 <= deleted_lines <= 4: self.points += [10, 40, 90, 200][deleted_lines] ...
26.191489
59
0.634444
1c9659382d325df8565cec94cbf9f1253c9b9696
1,455
py
Python
velocity-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
velocity-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
velocity-master/setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#!/usr/bin/env python import os import re import sys from codecs import open from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) # 'setup.py publish' shortcut. if sys.argv[-1] == 'publish': os.system('python setup.py sdist') os.system('twine upload dist/*') sys.exit() package...
26.454545
79
0.637801
c79e3e4d66936230957f4843c40a6c8e3ebd2886
3,653
py
Python
official/cv/ctpn/src/text_connector/get_successions.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ctpn/src/text_connector/get_successions.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ctpn/src/text_connector/get_successions.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.27957
113
0.640022
409f2447be36011aaf9cb2d61d2ea8ecba9af967
131
py
Python
etl/mappings/confidence.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/mappings/confidence.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/mappings/confidence.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
""" The confidence flag settings """ NULL = 0 NO_TRANSFORM = 1 UNIT_TRANSFORMED = 2 VALUE_TRANSFORMED = 4 FILLEDIN = 8 POPMEAN = 16
14.555556
28
0.732824
9051dd7cb0424e07f97f95bce2b58a3ba618d6a3
1,154
py
Python
research/audio/tacotron2/src/text/symbols.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/tacotron2/src/text/symbols.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/tacotron2/src/text/symbols.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...
38.466667
78
0.684575
290ecab03536d940bd2b20a77598b952fd0f70ed
5,091
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_nvdimm.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_nvdimm.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_nvdimm.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
45.864865
149
0.640542
311ba9b907526ebbdf99cee4aecbdbeec25d2a7f
1,798
py
Python
test/test_npu/test_network_ops/test_im2col_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_im2col_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_im2col_backward.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...
37.458333
78
0.723026
313e649284b2801847115b5d0acfb778ab0f919b
3,899
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/digital_ocean_firewall_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/digital_ocean_firewall_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/digital_ocean_firewall_info.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2018, Ansible Project # Copyright: (c) 2018, Anthony Bond <ajbond2005@gmail.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__ = type ...
28.253623
135
0.641447
31cd8b3b6d2c883f6f575e6a4b1d9e15c4e6fc58
2,213
py
Python
research/nlp/seq2seq/src/dataset/base.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/nlp/seq2seq/src/dataset/base.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/nlp/seq2seq/src/dataset/base.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...
31.614286
81
0.628107
9ed15020b7ce7d18d80247a66f6f2c693cc5e7fc
158
py
Python
lang-python/basics/07-dictionaries/dict-sample-01.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/basics/07-dictionaries/dict-sample-01.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/basics/07-dictionaries/dict-sample-01.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
knights = {'Gallahad': 'der Reine', 'Robin': 'der Mutige'} for k, v in knights.items(): print(k, v) for i, v in enumerate(knights): print(i, v)
19.75
58
0.588608
7357f28847bd2aeaca95cf201ec87750741e1cd6
2,049
py
Python
resources/mechanics_lib/Beam.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
7
2016-01-20T02:33:00.000Z
2021-02-04T04:06:57.000Z
resources/mechanics_lib/Beam.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
null
null
null
resources/mechanics_lib/Beam.py
PRECISE/ROSLab
2a6a295b71d4c73bc5c6ae2ec0330274afa31d0d
[ "Apache-2.0" ]
3
2016-10-05T07:20:30.000Z
2017-11-20T10:36:50.000Z
from api.component import Component from connector import Tab from utils.beam import Beam as BeamDrawing from math import sin, pi class Beam(Component): def defParameters(self): self.newParameter("length") self.newParameter("diameter") self.newParameter("beamwidth") self.newParameter("shape", 3) ...
31.045455
104
0.634944
b43557149cd90463c0c3f7221722707e109c107b
506
py
Python
models/hr_applicant_formation.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_applicant_formation.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_applicant_formation.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class HrApplicantFormation(models.Model): _name = 'hr.applicant.formation' _description = 'Formations' ref = fields.Integer(string='Reference') applicant_id = fields.Many2one(string='Candidat',comodel_name='hr.applicant')...
33.733333
90
0.72332
825a2cace416314aa797d59d4fec36d3982eeae0
13,613
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/output/generateITetrisIntersectionMetrics.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/output/generateITetrisIntersectionMetrics.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/output/generateITetrisIntersectionMetrics.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "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) 2009-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...
38.673295
108
0.576214
7d70d19667073f448d79e5e4664cda0a92b59f1e
554
py
Python
spangle/_internal/utils.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
spangle/_internal/utils.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
spangle/_internal/utils.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from collections.abc import Awaitable, Callable from typing import TypedDict, Union from starlette.types import ASGIApp class AppRef(TypedDict): # Workaround for type error app: ASGIApp async def execute(f: Union[Callable[[], None], Callable[[], Awaitable[None]]]): result = f() if isinstance(result...
22.16
79
0.638989
8156b162077d05d4b4b563c0f717f4ba898b1a7d
289
py
Python
src/tests/add_block_without_validation.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
2
2021-11-08T12:00:02.000Z
2021-11-12T18:37:52.000Z
src/tests/add_block_without_validation.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
null
null
null
src/tests/add_block_without_validation.py
TimmMoetz/blockchain-lab
02bb55cc201586dbdc8fdc252a32381f525e83ff
[ "RSA-MD" ]
1
2022-03-28T13:49:37.000Z
2022-03-28T13:49:37.000Z
from src.blockchain.block import Transaction from src.blockchain.blockchain import Blockchain transactions = [Transaction("Jan", "Timme", 1000.0), # invalid Transaction("Timme", "Max", 5.0)] blockchain = Blockchain() blockchain.add_block_without_validation(transactions)
41.285714
64
0.747405
81dc56de16315e35d9c47eb0248bf5383f542cb8
1,638
py
Python
Packs/CommonScripts/Scripts/EmailDomainWhitelist/EmailDomainWhitelist_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/EmailDomainWhitelist/EmailDomainWhitelist_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/EmailDomainWhitelist/EmailDomainWhitelist_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto EMAIL_ADDRESSES = 'test@test.com,filterme@nowhere.com,nobody@demistotest.com' EMAIL_ADDRESSES_LIST = ['test@test.com', 'filterme@nowhere.com', 'nobody@demistotest.com'] DOMAIN_LIST = 'nowhere.com' def test_main(mocker): from EmailDomainWhitelist import main mocker.patch.object(d...
34.125
90
0.69475
b501e2ac485596c6c86b5f37ff7db9f7910e65cb
1,644
py
Python
research/cv/Pix2Pix/src/models/pix2pix.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-07-03T06:52:20.000Z
2021-07-03T06:52:20.000Z
research/cv/Pix2Pix/src/models/pix2pix.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/Pix2Pix/src/models/pix2pix.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
30.444444
77
0.687348
d2760a81fc1990c715954013df2c517c633fe25e
1,098
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex06_checksum_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex06_checksum_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch02_math/ex06_checksum_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import unittest import pytest from parameterized import parameterized from ch02_math.solutions.ex06_checksum import calc_checksum class Ex06_CalcChecksum_Test(unittest.TestCase): @parameterized.expand([ ("11111", 5)...
23.361702
59
0.586521
73e25a81820d151867089b75d545cbc6ef401448
3,042
py
Python
research/3d/DeepLM/ba_core/rotation.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/3d/DeepLM/ba_core/rotation.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/3d/DeepLM/ba_core/rotation.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...
44.735294
111
0.599934
83915398c3464f376e8a11257775e966a041f023
490
py
Python
sources/stage01/imagetest.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage01/imagetest.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage01/imagetest.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
from PIL import Image import numpy as np import matplotlib.pyplot as plt import os # Hier wird der Pfad zum Verzeichnis des ».py«-Files gesetzt # Erspart einem das Herumgehample in TextMate mit dem os.getcwd() # und os.path.join() file_path = os.path.dirname(os.path.abspath(__file__)) os.chdir(file_path) me = Image.o...
24.5
73
0.732653
f7fa9f14fb566694cd3137372d631c3c4bad4561
9,282
py
Python
content/technical/api/tutorial/python_tutorial/tutorial.py
chris-jan-trapp/easydb-documentation
7a597a755e11b460f39e0f154d7db038a4e02cb8
[ "MIT" ]
3
2017-09-06T14:31:13.000Z
2021-01-06T17:14:30.000Z
content/technical/api/tutorial/python_tutorial/tutorial.py
chris-jan-trapp/easydb-documentation
7a597a755e11b460f39e0f154d7db038a4e02cb8
[ "MIT" ]
10
2018-03-20T14:14:56.000Z
2022-03-08T10:23:00.000Z
content/technical/api/tutorial/python_tutorial/tutorial.py
chris-jan-trapp/easydb-documentation
7a597a755e11b460f39e0f154d7db038a4e02cb8
[ "MIT" ]
4
2019-02-21T15:01:14.000Z
2022-03-08T10:23:14.000Z
import requests import json import os import copy import argparse argparser = argparse.ArgumentParser( description="easydb session creation and search") argparser.add_argument("-u", "--server_url", help="Url of the server") argparser.add_argument("-s", "--search", default=[], nargs="*", hel...
24.62069
107
0.612476
7904143cc3239879e6410db14e5d448d160ace9f
842
py
Python
main.py
caxenie/oom-oop-intro
e70cd2ab8067b4d81001b7491deab9e029eefd3d
[ "MIT" ]
1
2022-02-23T20:18:35.000Z
2022-02-23T20:18:35.000Z
main.py
caxenie/oom-oop-intro
e70cd2ab8067b4d81001b7491deab9e029eefd3d
[ "MIT" ]
null
null
null
main.py
caxenie/oom-oop-intro
e70cd2ab8067b4d81001b7491deab9e029eefd3d
[ "MIT" ]
null
null
null
from eingabe import EinsatzstoffeEingabe from ausgabe import * from verarbeitung import * from plannung import * if __name__ == '__main__': eingabe1 = EinsatzstoffeEingabe(100000, "Erz", "Indien") eingabe2 = EinsatzstoffeEingabe(59000, "Kochen", "Rumänien") ausgabe1 = ProzessAusgabe(100, 200, "Sc...
35.083333
76
0.723278
f731664d01602fc4bc98d2d3a1dca73625c63b84
14,176
py
Python
file-access/static/usr/bin/setup-users-and-groups.py
aisbergg/dockerfiles
3cf24d2667a75d6eda8b8fb7df835b97c6a13348
[ "MIT" ]
1
2019-10-23T06:54:06.000Z
2019-10-23T06:54:06.000Z
file-access/static/usr/bin/setup-users-and-groups.py
aisbergg/dockerfiles
3cf24d2667a75d6eda8b8fb7df835b97c6a13348
[ "MIT" ]
null
null
null
file-access/static/usr/bin/setup-users-and-groups.py
aisbergg/dockerfiles
3cf24d2667a75d6eda8b8fb7df835b97c6a13348
[ "MIT" ]
null
null
null
import argparse import crypt import json import os import pwd import random import re import string import subprocess import sys import traceback from itertools import product import yaml class ACL: @staticmethod def get_file_acl(path): if not os.path.exists(path): raise IOError("The dir...
46.175896
236
0.55862
f768a16672cbc11a4c07fce54e3747bdcf9d513f
74,049
py
Python
IAC.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
9
2021-06-22T14:01:24.000Z
2022-03-11T08:59:38.000Z
IAC.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
6
2021-01-15T09:12:11.000Z
2021-05-25T08:12:10.000Z
IAC.py
JueK3y/Instagram-automated-commenting
7ecc4119d8e9ff0dfba620488018fbd9fce61606
[ "RSA-MD" ]
1
2021-12-27T18:58:53.000Z
2021-12-27T18:58:53.000Z
""" This programme is written and may only be used for educational purposes! Using it for real purposes violates the Instagram guidelines! Consequences are, for example, the blocking of the Instagram account. Please read Instagram's guidelines for more information. DO NOT indicate used program sections as your own. ©20...
38.993681
130
0.538913
e39e98ddcee0cc6f9d43246c2cb048fa276e0e9b
1,066
py
Python
project/maputils.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/maputils.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/maputils.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import os import googlemaps from project import app google_maps_api_key = os.getenv("GOOGLE_MAPS_API_KEY") gmaps = googlemaps.Client(key=google_maps_api_key) if google_maps_api_key else None def find_gmaps_places(query: str) -> list: result = list() if gmaps: try: places = gmaps.places...
24.227273
87
0.579737
580b08945a2be566c6ae3671aec21df5d3db6fc2
268
py
Python
Group1-Module1-Adoyi_Boniface/Project9(BASIC PYTHON)Task.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
Group1-Module1-Adoyi_Boniface/Project9(BASIC PYTHON)Task.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
Group1-Module1-Adoyi_Boniface/Project9(BASIC PYTHON)Task.py
cornelia247/cil-internship-cohort-01
b8184337056d378eab16d26b40b26ed58cd177bb
[ "MIT" ]
null
null
null
from PIL import Image image = Image.open('max5.jpg') image.show() #Resizing Image image = Image.open('max5.jpg') new_image = image.resize((400, 400)) new_image.save('max5_New.jpg') print(image.size) # Output: (1920, 1280) print(new_image.size) # Output: (400, 400)
20.615385
42
0.708955
5812ff794b788f9b938126a25d14cf5c1019884d
110
py
Python
Online-Judges/CodingBat/Python/String-02/String_2-01-double_char.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodingBat/Python/String-02/String_2-01-double_char.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodingBat/Python/String-02/String_2-01-double_char.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def double_char(str): double_str = "" for i in str: double_str += i + i return double_str
18.333333
27
0.581818
3fc313f4573b18613bed64720f6bee93ee8dc1d5
1,070
py
Python
redpwn/2021/web/pastebin-3/sandbox/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
redpwn/2021/web/pastebin-3/sandbox/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
redpwn/2021/web/pastebin-3/sandbox/app.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import sqlite3 from flask import ( Flask, render_template_string, request, ) app = Flask(__name__) def execute(query, params=()): con = sqlite3.connect('../db/db.sqlite3') cur = con.cursor() cur.execute(query, params) con.commit() return cur.fetchall() def get_paste(paste_id): r...
22.291667
73
0.52243
b74a8daa04fbc13d867ff7bb711de62036e3aa33
525
py
Python
lang-python/basics/05-fileopen/src/test.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/basics/05-fileopen/src/test.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
lang-python/basics/05-fileopen/src/test.py
xd23fe39/technical-notes
bb6348705a95db24d07b1081b1aa0265dda131ce
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: iso-8859-1 -*- # # Quellen: # https://docs.python.org/2/library/csv.html import csv as csv import os as os # Aktuelles Verzeichnis current_dir = os.getcwd() # Ort des Skriptes (__file__) script_dir = os.path.dirname(os.path.realpath( __file__ )) input_file="../data/testdaten.csv"...
23.863636
72
0.666667
b7f2cf595169f11c812412c015879252127109b6
27
py
Python
torba/torba/server/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/server/__init__.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/server/__init__.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
from .server import Server
13.5
26
0.814815
12bbdfe477392f4d070ab2b01022274431a5fa38
12,918
py
Python
paddlenlp/metrics/dureader.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/metrics/dureader.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/metrics/dureader.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
"""Official evaluation script for SQuAD version 2.0. In addition to basic functionality, we also compute additional statistics and plot precision-recall curves if an additional na_prob.json file is provided. This file is expected to map question ID's to the model's predicted probability that a question is unanswerable...
37.443478
87
0.598003
42ac15caeb1f1c0c3488fcc80420d4ccf0b4d1bb
520
py
Python
src/resources/hosts/dump_dir_to_networks_json.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/resources/hosts/dump_dir_to_networks_json.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/resources/hosts/dump_dir_to_networks_json.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# walks this directory structure storing contents in a dictionary # then writing out to networks.json for use with the remote # host profiles import import os import json h = {"hosts" : [] } for x in sorted(os.listdir(".")): if os.path.isdir(x): d = {'network' :os.path.basename(x)} d["files"] = [] ...
27.368421
65
0.605769
db2f195ee43ab054421c2a501ce16119d1172bc8
1,362
py
Python
src/main/python/correlation/convert-mul.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/correlation/convert-mul.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
null
null
null
src/main/python/correlation/convert-mul.py
gwdgithubnom/ox-patient
cddf4fe381cb4506db8e0d62803dd2044cf7ad92
[ "MIT" ]
1
2021-04-14T00:45:38.000Z
2021-04-14T00:45:38.000Z
from PIL import Image filename='test.jpg' im = Image.open(filename) import numpy import os from pandas import DataFrame x_variable=[] y_variable=[] path='./20x20' p=[] for i in os.walk(path,False): p=i break; files=p[2] file_count=len(files) width, height = im.size img = Image.open(filename) ...
26.705882
74
0.5837
fbe7afdd944133153ca94e0ead5b8d3edf849fb1
5,846
py
Python
abfahrt/unittest/unittest_linelist.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/unittest/unittest_linelist.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/unittest/unittest_linelist.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
import unittest # The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major unit testing frameworks in other languages. # It supports test automation, sharing of setup and shutdown code for tests, aggregation of tests into collections, and independence of the tests from the ...
51.734513
224
0.62778
58c52f49fd9e39d34956ec5731a80c46449b31a8
2,904
py
Python
sensors/HTU21D_BBB(dev)/script.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
sensors/HTU21D_BBB(dev)/script.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
sensors/HTU21D_BBB(dev)/script.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
#!/usr/bin/python import struct, array, time, io, fcntl I2C_SLAVE = 0x0703 HTU21D_ADDR = 0x34 # BeagleBone Einstellung CMD_READ_TEMP_HOLD = "\xE3" CMD_READ_HUM_HOLD = "\xE5" CMD_READ_TEMP_NOHOLD = "\xF3" CMD_READ_HUM_NOHOLD = "\xF5" CMD_WRITE_USER_REG = "\xE6" CMD_READ_USER_REG = "\xE7" CMD_SOFT_RESET = "\xFE" class...
27.396226
98
0.577135
451fd258bd9cb27c3bbc0374153cccc023066b80
2,464
py
Python
year_3/databases_sem1/lab1/maxdb/utils.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab1/maxdb/utils.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab1/maxdb/utils.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
""" Utilities for maxdb classes. """ import os class LRUCache(dict): """ LRU: least recently used cache - default storage for queries. Available functionality: get item: .get or __getitem__ put item: __setitem__ del item: .clear or __delitem__ """ def __init__(self, *ar...
24.39604
65
0.599432
bee359d5b32040a70358dd4047b57c33494f06d7
3,361
py
Python
fuzzsvc/controller/Option.py
ifoundthetao/FuzzFlow
86559ac7f85fc89510c0d9647e02880edb95aa2a
[ "MIT" ]
53
2016-08-26T02:51:45.000Z
2021-05-24T21:05:44.000Z
controller/Option.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
null
null
null
controller/Option.py
FingerLeakers/FuzzFlow
3f2de617c3658904f9640f53a05d5e4e90634e32
[ "MIT" ]
31
2016-08-26T04:08:31.000Z
2021-05-24T21:05:54.000Z
from flask_restful import Resource, reqparse from model.FuzzingOptionType import FuzzingOptionType from model.FuzzingOption import FuzzingOption from app import app db = app.config['db'] class OptionCtrl(Resource): def create(self, data): try: option_type = FuzzingOptionType.query.filter_by(i...
33.949495
94
0.574234
1820700cda20d3de2ea4da28efd357d947d18877
2,623
py
Python
account/models.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
account/models.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
account/models.py
m-atisa/Standard-Answer-App
28ad940925f794b1ca0cfd66f850f780aa43b4f8
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager #%% class AccountManager(BaseUserManager): # or not validate_email(email) # Must override create_user and create_superuser def create_user(self, email, password, first_name, last_name): if not email: ...
34.973333
95
0.6626
a1154fcc407a281906eab45f5a948b8720a5f65b
5,442
py
Python
src/onegov/gazette/models/issue.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/models/issue.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/models/issue.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from collections import namedtuple from onegov.core.crypto import random_token from onegov.core.orm import Base from onegov.core.orm.mixins import TimestampMixin from onegov.core.orm.types import UTCDateTime from onegov.file import AssociatedFiles from onegov.file import File from onegov.file.utils import as_fileintent...
30.573034
79
0.648475
b809a0477985a85736c03e79ec871ae9755e8e13
188
py
Python
MAIN/STM32F405/V10/main.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V10/main.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
MAIN/STM32F405/V10/main.py
ozturkahmetcevdet/VSenst
07c068fefcbd66ae4d8ec0480b4da10d6b5c7410
[ "MIT" ]
null
null
null
import system import machine import sys if __name__ == "__main__": while True: try: system.loop() except: machine.reset() else: sys.exit()
14.461538
27
0.547872
62d70c0cbabaaf9ee6d8a71649ac8c705cb6328b
310
py
Python
color/grey/hello_winpcap.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
color/grey/hello_winpcap.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
color/grey/hello_winpcap.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # pip install pypiwin32 winpcapy from winpcapy import WinPcapDevices # Return a list of all the devices detected on the machine print((WinPcapDevices.list_devices())) from winpcapy import WinPcapUtils print((WinPcapUtils.capture_on_and_print("*Microsoft*")))
22.142857
58
0.764516
1a1ccf50814981d2494f9cc768d4f08f2a08c9c8
523
py
Python
Leetcode/(3) Longest Substring Without Repeating Characters.py
MastaCoder/Projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
5
2018-10-11T01:55:40.000Z
2021-12-25T23:38:22.000Z
Leetcode/(3) Longest Substring Without Repeating Characters.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
null
null
null
Leetcode/(3) Longest Substring Without Repeating Characters.py
MastaCoder/mini_projects
ebb0a3134522b12f052fec8d753005f384adf1b1
[ "MIT" ]
1
2019-02-22T14:42:50.000Z
2019-02-22T14:42:50.000Z
# https://leetcode.com/problems/longest-substring-without-repeating-characters/ class Solution: def lengthOfLongestSubstring(self, s: str) -> int: longest = 0 for c_i in range(len(s)): c = s[c_i] chars = {c: 1} length = 1 for i in s[c_i + 1:]: ...
29.055556
79
0.460803
49665bdbc374475daa9a9b7604aaa85569f68af0
4,972
py
Python
src/data_unet.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
src/data_unet.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
src/data_unet.py
tuanminh3395/gr-bone-age
248c929d75e9d88dc9fa102ea11f4eae1e0f3157
[ "MIT" ]
null
null
null
# Preparing data for training and testing unet model from __future__ import print_function import matplotlib #matplotlib.use('Agg') # Set to prevent matplotlib from using the Xwindows backend on server import os import numpy as np from skimage.io import imsave, imread, imshow from skimage.transform import resize fro...
34.527778
171
0.631738
b8d1e702f0544217bd290c2ae398cb31ad0b4c12
558
py
Python
python/advanced_sw/IP_COLLECTOR/git_scrap/selenium_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/IP_COLLECTOR/git_scrap/selenium_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/IP_COLLECTOR/git_scrap/selenium_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 from selenium.webdriver.common.by import By driver = webdriver...
34.875
89
0.806452
91f509d6231d9bbb32d6488498c16ffbc46bc062
6,188
py
Python
Packs/Microsoft365Defender/Integrations/Microsoft365Defender/Microsoft365Defender_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Microsoft365Defender/Integrations/Microsoft365Defender/Microsoft365Defender_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Microsoft365Defender/Integrations/Microsoft365Defender/Microsoft365Defender_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
"""Base Integration for Cortex XSOAR - Unit Tests file Pytest Unit Tests: all funcion names must start with "test_" More details: https://xsoar.pan.dev/docs/integrations/unit-testing You must add at least a Unit Test function for every XSOAR command you are implementing with your integration """ import json import ...
42.972222
122
0.711215
622fff0a15a75347930beb377921eaf80fdb6840
8,047
py
Python
src/Player.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
null
null
null
src/Player.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
9
2019-07-15T08:49:00.000Z
2019-08-28T15:05:08.000Z
src/Player.py
t-azubi/text-adventure
6106f1bd070bb884e5f369346f7f97bec89dd919
[ "MIT" ]
null
null
null
import items class Character: def __init__(self): self.inventory = [items.Gold(15), items.Rock(1), items.SmallPotion(1)] self.exp = [1, 0] self.hp = 100 self.hpmax = 100 self.victory = False self.roomcounter = 0 self.slayedEnemies = 0 self.fledFromRo...
43.032086
157
0.450727
b8a2790eed7c74022fbfb436838b98b6dec8d27f
887
py
Python
window.py
Az107/Quark
10c0c953143fb9fc3351dbad9418880aeb5d5a56
[ "MIT" ]
1
2020-11-22T22:22:59.000Z
2020-11-22T22:22:59.000Z
window.py
Az107/Quark
10c0c953143fb9fc3351dbad9418880aeb5d5a56
[ "MIT" ]
null
null
null
window.py
Az107/Quark
10c0c953143fb9fc3351dbad9418880aeb5d5a56
[ "MIT" ]
1
2020-11-22T22:24:19.000Z
2020-11-22T22:24:19.000Z
import gi import os import sys gi.require_version('WebKit2', '4.0') try: from gi.repository import WebKit2 as WebKit except ImportError: print("error") gi.require_version("Gtk", "3.0") from gi.repository import Gtk, Gdk win = None web = None win = None web = None def getSource(webobj, frame): webobj.ru...
22.175
81
0.642616
a286b5bf36f89aa56cd27dd149de72298a45d423
334
py
Python
exercises/fr/solution_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/solution_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("fr") # Importe la classe Doc from spacy.tokens import Doc # Texte désiré : "Allez, on commence !" words = ["Allez", ",", "on", "commence", "!"] spaces = [False, True, True, True, False] # Crée un Doc à partir des mots et des espaces doc = Doc(nlp.vocab, words=words, spaces=spaces) pr...
22.266667
48
0.673653
a29c336bd14b1e0ae446166f73e401176e0f22e9
11,172
py
Python
python/hybrid_oa_check.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
89
2015-02-13T13:46:06.000Z
2022-03-13T16:42:44.000Z
python/hybrid_oa_check.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
91
2015-03-12T13:31:36.000Z
2022-01-14T07:37:37.000Z
python/hybrid_oa_check.py
sma-h/openapc-de
0ec2d42d525219d801f71538f5b30ca6fecd9d3a
[ "Cube" ]
138
2015-03-04T15:23:43.000Z
2022-03-09T15:11:52.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- import argparse import codecs import logging import re from socket import error as socket_error import sys import time from urllib.error import HTTPError, URLError from urllib.parse import unquote from urllib.request import build_opener, Request, HTTPCookieProcessor impo...
40.33213
148
0.619048
a2c63ffea65442f4792664947b8cdfd89b4adc09
2,047
py
Python
docs/lectures/lecture21/notebook/helper.py
tteenathankachan/2021-CS109A
9349749539f439deff280ceb25621fc61a337253
[ "MIT" ]
81
2020-08-17T10:18:50.000Z
2022-03-14T00:10:17.000Z
docs/lectures/lecture21/notebook/helper.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
1
2022-02-09T06:15:51.000Z
2022-02-09T12:42:44.000Z
docs/lectures/lecture21/notebook/helper.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
95
2020-08-29T22:49:34.000Z
2022-03-25T18:36:13.000Z
import matplotlib.pyplot as plt import numpy as np import seaborn as sns from matplotlib.colors import ListedColormap sns.set_style('white') import pandas as pd df = pd.read_csv("boostingclassifier.csv") X = df[['latitude', 'longitude']].values y = df['landtype'].values def plot_decision_boundary(classifier, X, y,...
40.94
117
0.614069
a73ceea92f3dcb99355554b85d82cbddb522c9b9
2,520
py
Python
fib.py
aboehm/CLT2019
51b9b5674b5ed18297c5ee7e825888d632d96a0e
[ "BSD-2-Clause" ]
1
2019-07-01T11:59:06.000Z
2019-07-01T11:59:06.000Z
fib.py
aboehm/CLT2019
51b9b5674b5ed18297c5ee7e825888d632d96a0e
[ "BSD-2-Clause" ]
null
null
null
fib.py
aboehm/CLT2019
51b9b5674b5ed18297c5ee7e825888d632d96a0e
[ "BSD-2-Clause" ]
null
null
null
# BSD 2-Clause License # # Copyright (c) 2019, Alexander Böhm # 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, this #...
27.692308
114
0.663492
ac8271609ba557f2c4dd367d0dd3714f536ba923
457
py
Python
DataStructures/LinkedList/Print.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/Print.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/LinkedList/Print.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 """ class Node(object): def __init__(self, data=None, next_node=None): self.data = data self.next = next_node """ def print_list_stupid(head): if head.data: print head.data: node = head.next while(1): if node: print node.data node ...
17.576923
50
0.551422
5a3427603b0e2e39400d985a7c2eb8121d29de66
1,519
py
Python
webinterface/tests/unit_tests/test_epoch_functions.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_epoch_functions.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_epoch_functions.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 * import logging from unittest.mock import * logging.disable(logging.FATAL) class EpochFunctionsTest(TestCase): @classmethod def setUpClass(cls): super().setUpClass() # each 'start' is a verified Monday, each 'end' is a verifie...
47.46875
114
0.719552
5a89fc1bcb73cba025f9de38a8a7cd80d6b3324e
994
py
Python
exercises/pt/exc_03_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/exc_03_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/exc_03_07.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy from spacy.matcher import PhraseMatcher from spacy.tokens import Span nlp = spacy.load("en_core_web_sm") animals = ["Golden Retriever", "cat", "turtle", "Rattus norvegicus"] animal_patterns = list(nlp.pipe(animals)) print("animal_patterns:", animal_patterns) matcher = PhraseMatcher(nlp.vocab) matcher.add(...
33.133333
83
0.743461
0c6f11dd31a5b6a5f9fa9953546a0de936f80889
657
py
Python
Classes/Screen_codes/Bad_data_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-04-30T15:46:47.000Z
2018-04-30T15:46:47.000Z
Classes/Screen_codes/Bad_data_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T13:20:19.000Z
2018-06-03T20:19:25.000Z
Classes/Screen_codes/Bad_data_screen.py
EKaczmarek/BomberMan
a232d00ff0fe9be0a1276fba22c3f120e2bb4e5d
[ "MIT" ]
1
2018-06-03T12:59:11.000Z
2018-06-03T12:59:11.000Z
from PyQt5.QtWidgets import QDialog from PyQt5.QtCore import pyqtSlot from PyQt5 import uic from PyQt5 import QtCore qtCreatorFile = "Classes/GUI/bad_data.ui" Ui_Dialog, QtBaseClass = uic.loadUiType(qtCreatorFile) class Bad_data(QDialog, Ui_Dialog): bad_data_signal = QtCore.pyqtSignal(bool) def __init__(se...
24.333333
65
0.729072
f053606030294c7616fc05c78a8cc56a46b76bee
1,686
py
Python
backend/apps/accounts/forms.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
3
2020-03-27T20:39:31.000Z
2020-03-31T20:24:55.000Z
backend/apps/accounts/forms.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
21
2020-03-28T09:57:15.000Z
2020-03-31T11:38:00.000Z
backend/apps/accounts/forms.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm, UserChangeForm from django.db import transaction from .models import User class HospitalSignUpForm(UserCreationForm): # add more query fields class Meta(UserCreationForm.Meta): model = User fields = []#['email...
23.416667
71
0.657177
33148d5683b8950371169773cbaa4a36b85dc0e6
468
pyde
Python
sketches/box01/box01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/box01/box01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/box01/box01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
a = 0 def setup(): global chest earth = loadImage("bluemarble.jpg") size(400, 400, P3D) noStroke() chest = createShape(BOX, 180) chest.setTexture(earth) def draw(): global a, chest background(51) lights() translate(width*.5, height*.5, 0) sphereDetail(30) with pushMatri...
21.272727
39
0.59188
688473c55d08add4c945b327b0c0ae89b70aad62
592
py
Python
2021-05-09/写笔记带后端/library-server-develop/apps/user/models.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
395
2017-02-24T02:59:29.000Z
2022-03-31T15:48:19.000Z
2021-05-09/写笔记带后端/library-server-develop/apps/user/models.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
7
2020-03-17T08:33:00.000Z
2021-09-02T23:10:46.000Z
2021-05-09/写笔记带后端/library-server-develop/apps/user/models.py
ritaswc/wechat_app_template
d6ba56b70b09bc755f7d4d6b696b9e9b53511faa
[ "MIT" ]
235
2017-03-14T03:31:38.000Z
2022-03-29T16:14:51.000Z
from django.db import models # Create your models here. class Person(models.Model): nick_name = models.CharField(max_length=256) gender = models.IntegerField(default=0) language = models.CharField(max_length=256) country = models.CharField(max_length=256) province = models.CharField(max_length=25...
31.157895
74
0.741554
f08aff8d4f40a9d5e4cee5d096afb30191e0eb66
469
py
Python
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.13-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.13-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C07ObjectOrientedDesign/questions/7.13-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
''' 4. Design an Airline Management System A good answer from an interviewer’s perspective would address: Itinerary Complexity: How would multi-flight itineraries work? How would multiple passengers on the same itinerary be handled? Alerts: How are customers notified if there’s a change to the flight status? Externa...
42.636364
151
0.799574
0b122f9abb682520f937af5a5d9dc6e61aeea540
9,545
py
Python
languages/python/sqlalchemy-oso/tests/test_sqlalchemy.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
null
null
null
languages/python/sqlalchemy-oso/tests/test_sqlalchemy.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
null
null
null
languages/python/sqlalchemy-oso/tests/test_sqlalchemy.py
saschajullmann/oso
85d07c6a1825acba5ec043c917bff6e0f5c7128f
[ "Apache-2.0" ]
null
null
null
"""Test hooks & SQLAlchemy API integrations.""" import pytest from sqlalchemy.orm import aliased from sqlalchemy_oso.session import ( authorized_sessionmaker, scoped_session, AuthorizedSession, ) from .models import User, Post from .conftest import print_query def log_queries(): import logging ...
32.576792
104
0.655841
ac8cb4c652c5c86e59be50004d1129e41dc5b843
8,181
py
Python
Utils/py/lineDetection/drawEdgels.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/lineDetection/drawEdgels.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
Utils/py/lineDetection/drawEdgels.py
tarsoly/NaoTH
dcd2b67ef6bf9953c81d3e1b26e543b5922b7d52
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse parser = argparse.ArgumentParser(description='script to display edgels from log files') parser.add_argument("logfile", help='log file to draw edgels from') parser.add_argument("--direction", help="show direction", action="store_true") args = parser.parse_args() from naoth.LogReader i...
34.961538
153
0.653832
4a1611c46c0282f7887721219bbe00dd1f5a8ae5
1,935
py
Python
easyp2p/platforms/peerberry.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
4
2019-07-18T10:58:28.000Z
2021-11-18T16:57:45.000Z
easyp2p/platforms/peerberry.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
1
2019-07-05T09:21:47.000Z
2019-07-05T09:21:47.000Z
easyp2p/platforms/peerberry.py
Ceystyle/easyp2p
99c32e3ec0ff5a34733f157dd1b53d1aa9bc9edc
[ "MIT" ]
2
2019-07-05T08:56:34.000Z
2020-06-09T10:03:42.000Z
# Copyright (c) 2018-2020 Niko Sandschneider """ Download and parse PeerBerry statement. """ import json from easyp2p.p2p_parser import P2PParser from easyp2p.p2p_session import P2PSession from easyp2p.platforms.base_platform import BasePlatform class PeerBerry(BasePlatform): """ Contains methods for do...
30.234375
76
0.658915
c5f63057744201955035ad4330d0d59c913ad929
32
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.15-make-list-with-range.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.15-make-list-with-range.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.15-make-list-with-range.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
li = list(range(11)) print(li)
8
20
0.625
7646a7672c0ded0048aba9abd3abfba320283a71
3,502
py
Python
envs/rpg/entities/actor.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
2
2021-01-07T01:10:49.000Z
2022-01-21T09:37:16.000Z
envs/rpg/entities/actor.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
envs/rpg/entities/actor.py
etigerstudio/zilong-on-fire
5144a471b2d39ea38a47d394e648de00dd13cd8b
[ "MIT" ]
null
null
null
from envs.rpg.entity import Entity from enum import Enum class Actor(Entity): REPRESENTATION = 4 VAIN_SLASH_REWARD = -0.125 class Pose(Enum): STANDING = 0 CROUCHING = 1 JUMPING = 2 class Movement(Enum): IDLE = 0 LEFTWARD = 1 FORWARD = 2 RIGHTWA...
34
79
0.578812
76abc0ee00800ce6371d3a553bf976f7bfa6674d
1,380
py
Python
tests/nlu/emulators/test_dialogflow.py
chaneyjd/rasa
104a9591fc10b96eaa7fe402b6d64ca652b7ebe2
[ "Apache-2.0" ]
5
2020-08-28T06:44:31.000Z
2021-03-14T18:46:01.000Z
tests/nlu/emulators/test_dialogflow.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
209
2020-03-18T18:28:12.000Z
2022-03-01T13:42:29.000Z
tests/nlu/emulators/test_dialogflow.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
def test_dialogflow_request(): from rasa.nlu.emulators.dialogflow import DialogflowEmulator em = DialogflowEmulator() norm = em.normalise_request_json({"text": ["arb text"]}) assert norm == {"text": "arb text", "time": None} def test_dialogflow_response(): from rasa.nlu.emulators.dialogflow impor...
33.658537
87
0.531159
4f2c074ff1b27b58ec70be3b3de1b532078792da
3,172
py
Python
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/framework/multimodal/actbert.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
5
2022-01-30T07:35:58.000Z
2022-02-08T05:45:20.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/framework/multimodal/actbert.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-01-14T02:33:28.000Z
2022-01-14T02:33:28.000Z
Paddle_Industry_Practice_Sample_Library/Football_Action/PaddleVideo/paddlevideo/modeling/framework/multimodal/actbert.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-07T10:51:21.000Z
2022-03-07T10:51:21.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License" # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
48.8
124
0.687894
4f6a0bbc4d99a810d8ca6c3ee19115f3db6c0c61
4,010
py
Python
webinterface/api_views.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
2
2021-11-28T23:04:00.000Z
2022-01-13T19:47:45.000Z
webinterface/api_views.py
monoclecat/Cleaning-Schedule-generator
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
25
2020-03-29T14:40:46.000Z
2021-09-22T17:37:15.000Z
webinterface/api_views.py
monoclecat/cleaning-schedule-management-system
b12fa8a6f834a89b805bf062a0df45279a7a8796
[ "MIT" ]
1
2020-07-04T11:42:17.000Z
2020-07-04T11:42:17.000Z
from rest_framework.viewsets import ModelViewSet from rest_framework import generics, mixins, viewsets, permissions from webinterface.models import * from webinterface.serializers import * from rest_framework.decorators import action from rest_framework.response import Response from django.shortcuts import get_object_o...
34.273504
109
0.739651
4fa41363b5564a4600de6e1bd556ddb54312e66d
2,345
py
Python
SEsimulation/CalEst_Forecast.py
ThoEngel/rentenplanung
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
3
2022-01-01T18:24:46.000Z
2022-01-08T15:28:46.000Z
SEsimulation/CalEst_Forecast.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
SEsimulation/CalEst_Forecast.py
ThoEngel/Finanzen-Simuliert
879c9a678ba1ff951a1f92b0c42673a7943a18e6
[ "MIT" ]
null
null
null
''' Funktion zur Berechnung der Einkommenssteuer incl. Prognose über die nächsten 60 Jahre Input: zVE: zu versteuerndes Jahreseinkommen year: Jahrnummer 0 akutelles Jahr 2019 1 Jahr 2020 .. usw. 60 max. mögliche Dauer Output: Est: Jährliche Einkommenssteuer ...
28.597561
93
0.523241
4fec84875ff7a718c0b13d1e6ce0f0685bc59b37
346
py
Python
Algorithms/Strings/gemstones.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Strings/gemstones.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Strings/gemstones.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def gemstones(arr): s1 = set(arr[0]) for i in range(1, len(arr)): s2 = set(arr[i]) s1 = s1.intersection(s2) return len(s1) n = int(input().strip()) arr = [] arr_i = 0 for arr_i in range(n): arr_t = str(input().strip()) arr.append(arr_t) result = gems...
17.3
32
0.592486
8b0ea3ed09c408cdc5dd7eb3bdd7b7677a181844
16,058
py
Python
frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/controllers/stock_controller.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe, erpnext from frappe.utils import cint, flt, cstr from frappe import msgprint, _ import frappe.defaults from erpnext.accounts.utils import...
38.975728
193
0.737639
8b2dde896c20196cb91007c196d2a1c1fbb13ccd
515
py
Python
Imaginary/2021/crypto/Horst/horst.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/Horst/horst.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/Horst/horst.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
import hashlib ROUNDS = 25 BLOCKSIZE = 32 def xor(a, b): assert len(a) == len(b) return bytes(x ^ y for x, y in zip(a, b)) def F(x): return hashlib.sha256(x).digest() def round(x): assert len(x) == 2 * BLOCKSIZE L = x[:BLOCKSIZE] R = x[BLOCKSIZE:] return R + xor(L, F(R)) def encrypt(x):...
19.074074
54
0.568932
0fadab800a4f6e85080790d68bc60ef5e410f2e3
7,346
py
Python
demos/Multiscale/amm_mechanism/model/plot_utils.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/amm_mechanism/model/plot_utils.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/amm_mechanism/model/plot_utils.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd def agent_value_plot(experiments,test_title,T): #, agent_index, asset_id): """ This function plots agent values for each agent that went through the Uniswap World. Values are token holdings multiplied by prices. """ agent_h = [] age...
38.062176
104
0.613531
e8c4667c087828767b48a6bc39447abd07b1aa92
2,137
py
Python
3.LinkedList/Python/single_linked_list.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
3
2020-09-10T18:40:40.000Z
2020-09-15T17:32:12.000Z
3.LinkedList/Python/single_linked_list.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
3.LinkedList/Python/single_linked_list.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
class Node: def __init__(self, value): self.value = value self.next = None class LinkedList: def __init__(self): self.head = None def __len__(self): if self.head == None: return 0 i = 0 temp = self.head while temp != None: i +=...
24.284091
60
0.481984
7ef240448cba113f9ef5fbe7c0cbedae73c986ff
675
py
Python
1_Datentypen/07_Ubungsaufgaben/02_Zersaegte_E-Mail-Adressen/task.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/07_Ubungsaufgaben/02_Zersaegte_E-Mail-Adressen/task.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/07_Ubungsaufgaben/02_Zersaegte_E-Mail-Adressen/task.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# 2a) mail = "willy.wizard@zauberschule.de" # TODO: type solution here ################################################# # 2b) mail = "info@helena-hexe.com" # TODO: Berechne hier den hinteren Teil der gegebenen E-Mail - Adresse ################################################# # 2c) mail1 = "zarah.zauber@zauberbe...
20.454545
70
0.54963
bc168419530f68edf813b96d93e9ff0eac0d34b5
2,864
py
Python
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/ernie/model.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
1
2022-03-14T09:03:15.000Z
2022-03-14T09:03:15.000Z
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/ernie/model.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
Paddle_Industry_Practice_Sample_Library/nlp_projects/nlu/ernie/model.py
linuxonly801/awesome-DeepLearning
b063757fa130c4d56aea5cce2e592610f1e169f9
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
47.733333
159
0.72905
aa6c05a868d901150d265b6456d3726b401c5982
4,180
py
Python
Exploit-Dev/shellcode_generator/poly_bin.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
98
2019-11-20T05:26:30.000Z
2022-01-27T05:05:39.000Z
Exploit-Dev/shellcode_generator/poly_bin.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
null
null
null
Exploit-Dev/shellcode_generator/poly_bin.py
bbhunter/Security-Guide
139cfba3b30a4ca6a32d11aa025638d0a9c5c541
[ "MIT" ]
34
2019-11-25T14:29:16.000Z
2021-10-18T16:40:42.000Z
#!/usr/bin/python from random import randint encoded = "" encoded2 = "" bad_chars = [0x00] shellcode = ("\x90" + "\x6a\x3b\x58\x99\x52\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68\x53\x54\x5f\x52\x54\x5e\x57\x54\x5a\x0f\x05") def valid(byte): for ch in bad_chars: if ch == byte: retur...
33.709677
130
0.504545
2ad02497e51348e9da4400e9e76d538b9b1e0e32
574
py
Python
S7/CS431-CDL/pgm-18/cb.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
2
2021-02-03T02:03:21.000Z
2021-07-03T20:24:14.000Z
S7/CS431-CDL/pgm-18/cb.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
S7/CS431-CDL/pgm-18/cb.py
joe247/CSE-LABS
bab17548562bdc9c0bc8b15679f07379a9e98dec
[ "MIT" ]
null
null
null
# Compiler Backend new_ln, imc, asm_opr = False, [], '' print("Enter set of intermediate code: ") while not new_ln: code = input() if not code: new_ln = True continue imc.append(code) for idx, im_code in enumerate(imc): opr = im_code[3] if opr == '+': asm_opr = 'ADD' e...
21.259259
44
0.52439
2ad7132e03a91c6251cde8711b38b47eb0db2652
807
py
Python
___Python/Carsten/p02_datenstruktur/m01_fahrenheit.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p02_datenstruktur/m01_fahrenheit.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p02_datenstruktur/m01_fahrenheit.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import statistics from p01_kennenlernen import meinebibliothek celsius = [0.7, 2.1, 4.2, 8.2, 12.5, 15.6, 16.9, 16.3, 13.6, 9.5, 4.6, 2.3] print("Durschnitt", statistics.mean(celsius)) print("Median", statistics.median(celsius)) print() # Aufgabe: Neue Liste fahrenheit erzeugen, die die Temperatur in Fahren...
27.827586
96
0.713755
933113af76b2da628ece04169c6f11076dc98d39
444
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/functools.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/functools.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/functools.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import functools def sum(n): return functools.reduce(lambda n_1, n: n_1 + n, range(1, n + 1)) def factorial(n): return functools.reduce(lambda n_1, n: n_1 * n, range(1, n + 1)) print(functools.reduce(lambda fir, sec: f...
21.142857
68
0.644144
937660e86d8dd014a1780fcbc09f82bbc7c2536c
691
py
Python
Complete Treenode.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
Complete Treenode.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
Complete Treenode.py
aertoria/MiscCode
a2e94d0fe0890e6620972f84adcb7976ca9f1408
[ "Apache-2.0" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # @param {TreeNode} root # @return {integer} def countNodes(self, root): return self.DFS(root) def DFS(self,node): if node ==...
16.452381
55
0.625181
9380b4f03bd459a5c691a3ee4cb6008e46dd7e58
111
py
Python
year_3/comppi_0/analytics/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_0/analytics/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_0/analytics/urls.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from analytics import views from django.urls import path urlpatterns = [ path('', views.indexanalytics) ]
15.857143
34
0.738739
fa999c11bc2927ad17bf914be14a9728967576bc
4,865
py
Python
src/bo4e/bo/geschaeftspartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/bo/geschaeftspartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/bo/geschaeftspartner.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Geschaeftspartner class and corresponding marshmallow schema for de-/serialization """ # pylint: disable=too-many-instance-attributes, too-few-public-methods from typing import List, Optional, Type import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] fr...
43.053097
188
0.751079
faee1c90d6395c09f3ed5a845228f28c180a396a
63
py
Python
day06/functions.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day06/functions.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day06/functions.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
def myFunction(): print("Hello in function") myFunction()
12.6
30
0.68254
a4e9590238b3c925d250c62e9c42270ed1aec9c5
4,046
py
Python
src/onegov/file/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/file/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/file/utils.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import hashlib import magic import os from contextlib import contextmanager, suppress from depot.io.utils import FileIntent from mimetypes import guess_extension from io import IOBase, BytesIO, UnsupportedOperation from lxml import etree from PIL import Image def content_type_from_fileobj(fileobj): """ Gets the ...
25.935897
77
0.661641
52e604685113bb5a069261769b28ffa6465e2c8d
3,330
py
Python
official/cv/erfnet/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/erfnet/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/erfnet/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.647059
82
0.686787
dca2f963d81bc098d5a8e6744ae6d87cc26649a1
48
py
Python
Curso_Python/Secao7-Bases-de-dado-com-Python/150_db_browser_for_sqlite/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao7-Bases-de-dado-com-Python/150_db_browser_for_sqlite/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao7-Bases-de-dado-com-Python/150_db_browser_for_sqlite/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
# Simplesmente mostra instalando o Db browser
16
46
0.791667
f4f86553607b86b9009b2c7c7d22042951d58e80
1,028
py
Python
tests/onegov/event/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/conftest.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from tests.shared.utils import create_app from onegov.core import Framework from onegov.file import DepotApp from os import path from pytest import fixture from yaml import dump @fixture(scope='function') def cfg_path(postgres_dsn, session_manager, temporary_directory, redis_url): cfg = { 'applications': ...
23.906977
76
0.605058
5271ac93cd2b35bf2bb9c41ec4e3e22992ab2770
49
py
Python
src/aijack/attack/poison/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/attack/poison/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/attack/poison/__init__.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
2
2022-01-17T07:28:22.000Z
2022-01-30T00:12:53.000Z
from .poison_attack import Poison_attack_sklearn
24.5
48
0.897959
0d70589453ac38ff2bf7e7235be0b9a56a3037a8
1,224
py
Python
Properties/first python API programming/1.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/first python API programming/1.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
Properties/first python API programming/1.py
NazaninBayati/SCA
74e670462dd0da5e24147aab86df393b38405176
[ "MIT" ]
null
null
null
import understand import re db = understand.open("fastgrep2.udb") print(db.ents()) #for ent in sorted(db.ents(), key=lambda ent: ent.name()): # print(ent.name(), " [", ent.kindname(), "]", sep="", end="\n") # Create a regular expression that is case insensitive searchstr = re.compile("r*.h", re.I) for file in db...
24.48
68
0.54902
339a179587337ec6b2847813132cfb2e87e4234e
1,618
py
Python
python/coursera_python/TORONTO/a1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/TORONTO/a1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/TORONTO/a1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def seconds_difference(time_1, time_2): return time_2 - time_1 def hours_difference(time_1, time_2): return (time_2 - time_1)/3600 def to_float_hours(hours, minutes, seconds): return (hours*60*60+minutes*60+seconds)/3600.0 def to_24_hour_clock(hours): return hours % 24 ### Write your get_hours ...
20.225
75
0.614339
1d4dac8bd3cddbe16aeabcf0d39b4f935321d310
110
py
Python
haas_lib_bundles/python/docs/examples/counter/m5stack/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/counter/m5stack/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/counter/m5stack/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
from countDown import CountDown stopWatch = CountDown() # max value is 10 stopWatch.createPage(1, 10, 8, 9)
15.714286
33
0.745455