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
be0c2de9b7138888b31ff76ef22fdc767b8b106b
8,473
py
Python
scripts/caption.py
jayelm/rl-starter-files
045302672e6ae5f4704afce56b788a67393dcc52
[ "MIT" ]
null
null
null
scripts/caption.py
jayelm/rl-starter-files
045302672e6ae5f4704afce56b788a67393dcc52
[ "MIT" ]
null
null
null
scripts/caption.py
jayelm/rl-starter-files
045302672e6ae5f4704afce56b788a67393dcc52
[ "MIT" ]
null
null
null
""" Caption demos """ import pickle import blosc from teacher import Teacher import numpy as np import torch from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence from tqdm import tqdm from torch import nn, optim import util from contextlib import nullcontext import pandas as pd import os import bleu de...
29.939929
152
0.583383
ed5046d834f316c23be2473bd5b995d7d918c7af
570
py
Python
setup.py
ArminHaberl/ea_rechnung
9211eaa1f634b4d3a4233140d36d64d57eb0b167
[ "MIT" ]
null
null
null
setup.py
ArminHaberl/ea_rechnung
9211eaa1f634b4d3a4233140d36d64d57eb0b167
[ "MIT" ]
null
null
null
setup.py
ArminHaberl/ea_rechnung
9211eaa1f634b4d3a4233140d36d64d57eb0b167
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in ea_rechnung/__init__.py from ea_rechnung import __version__ as version setup( name='ea_rechnung', version=version, des...
27.142857
80
0.782456
9c29ff9b303e06afaf1f0ee1522fa457d5ec952c
44
py
Python
plan/__init__.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
plan/__init__.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
plan/__init__.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
default_app_config = "plan.apps.PlanConfig"
22
43
0.818182
9c7eb05f3c48177aea74a15ef1276ade1f5f32ba
140
py
Python
noopen.py
FreeSoftwareDevlopment/Wuerfel-1.0
275ff2c963bf35a6d15bc3533cd3a5faf1772e22
[ "MIT" ]
null
null
null
noopen.py
FreeSoftwareDevlopment/Wuerfel-1.0
275ff2c963bf35a6d15bc3533cd3a5faf1772e22
[ "MIT" ]
null
null
null
noopen.py
FreeSoftwareDevlopment/Wuerfel-1.0
275ff2c963bf35a6d15bc3533cd3a5faf1772e22
[ "MIT" ]
null
null
null
import time import random import sys Wuerfel = ['1','2','3','4','5','6'] time.sleep(0.5) ergebnis = random.choice(Wuerfel) print (ergebnis)
17.5
35
0.678571
1601344a88fb99bfca53fa874c755623f78d23f5
61,232
py
Python
tensorforce/models/model.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/models/model.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/models/model.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
1
2019-11-29T12:28:33.000Z
2019-11-29T12:28:33.000Z
# Copyright 2017 reinforce.io. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
43.151515
127
0.610138
4c53adb42631770e05f902fff5aa49fdc59a4171
98,327
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/mapmatching-07-shortestpathok.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/mapmatching-07-shortestpathok.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/plugins/mapmatching/mapmatching-07-shortestpathok.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
45.145546
229
0.490486
d5e0d67d50d40a1d48c69d338470903edbddd3df
3,318
py
Python
Licence 1/I21/TP1/Puissance4/puissance4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I21/TP1/Puissance4/puissance4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I21/TP1/Puissance4/puissance4.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
############################################# # Jeu du Puissance 4 # # Cours d'algorithmique # # Licence Informatique - 1ere année # # Université de Toulon # # # # Version du 01/03/2019 ...
27.196721
83
0.546715
5d9aee0c268c3b2d93a24e649b740e3e439fe8ec
6,351
py
Python
test/test_npu/test_network_ops/test_addcmul.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_addcmul.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_addcmul.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...
46.021739
102
0.653598
538e8a6a3a0ca26c630ac3872687119527ffa8d7
5,811
py
Python
micropython/sd/LogSensors.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/LogSensors.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/LogSensors.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
''' Log Sensors to CSV file Called from /home/pi/scripts/LogSensors.sh - needs to be uncommented for to run Author: Howard Webb Date: 9/28/2020 ''' from CSV_Util import CSV_Util from env import env from pyb import RTC env_header = ['type', 'site_id', 'timestamp', 'lat', 'long', 'subject', 'attribute', 'value', 'units...
28.485294
159
0.521941
53a576d3fd9ababbd12504655f7e0a2d76b7c338
468
py
Python
Algorithms/Sorting/QuickSort2.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/QuickSort2.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
Algorithms/Sorting/QuickSort2.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 n = int(raw_input()) ar = map(int, raw_input().split()) def quick_sort(ar): if len(ar) <= 1: return ar p = ar[0] equal = [p] left = [] right = [] for x in ar[1:]: if x < p: left.append(x) else: right.append(x) left1 = quick_so...
17.333333
48
0.512821
071937376b03650dd8c8ec33a71d60cb7f7b4221
924
py
Python
unit.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
unit.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
unit.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
# coding: utf-8 from calendar import timegm from datetime import datetime class Measurement: ''' measurement object to hold one or more units a value and a timestamp ''' def __init__(self, unit, value): self.timestamp = timegm(datetime.utcnow().utctimetuple()) self.unit = unit ...
21
80
0.623377
22a0200959a4ecf61a13f8dc9090156f6dc1855c
660
py
Python
Python/Aula10/ExerciciosPython/While/teste01.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/While/teste01.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/Aula10/ExerciciosPython/While/teste01.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
resposta = 'sim' while resposta == 'sim': nivel = input('Digite o nivel de acesso: ').upper() if nivel == 'ADM' or nivel == 'USR': sexo = input('Digite seu sexo: ').upper if nivel == 'ADM': if sexo == 'Feminino': print('Olá Administradora') else: ...
33
59
0.49697
43cd8e37948e7dbc7ea4732611d1f336b470c30f
665
py
Python
bigdata/superset/debian10-superset/superset_config.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
63
2018-02-04T03:31:22.000Z
2022-03-07T08:27:39.000Z
bigdata/superset/debian10-superset/superset_config.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
3
2020-06-15T03:41:03.000Z
2020-06-15T03:41:04.000Z
bigdata/superset/debian10-superset/superset_config.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
40
2018-01-22T16:31:16.000Z
2022-03-08T04:40:42.000Z
import os MAPBOX_API_KEY = os.getenv('MAPBOX_API_KEY', '') CACHE_CONFIG = { 'CACHE_TYPE': 'redis', 'CACHE_DEFAULT_TIMEOUT': 300, 'CACHE_KEY_PREFIX': 'superset_', 'CACHE_REDIS_HOST': 'redis', 'CACHE_REDIS_PORT': 6379, 'CACHE_REDIS_DB': 1, 'CACHE_REDIS_URL': 'redis://redis:6379/1'} SQLALCHEMY...
25.576923
79
0.72782
1cb33eb8fd7ce829c8628550279b7f341ba4306c
9,803
py
Python
classification/scripts/MLTuningAdaboost.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
1
2020-07-11T04:24:40.000Z
2020-07-11T04:24:40.000Z
classification/scripts/MLTuningAdaboost.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
classification/scripts/MLTuningAdaboost.py
s-santoro/lunch-crawler
1e39b1d35d76067a55b2c034d0488a6ec53f8a45
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # Imports from luigi.contrib.spark import PySparkTask from luigi.parameter import IntParameter from luigi import LocalTarget, Task, WrapperTask from luigi.format import UTF8 import datetime import pandas as pd import numpy as np import re import os from configs.Configurations impo...
40.012245
133
0.605019
1cea5860eb4ff20c5080606c527e04826914ee97
442
py
Python
src/onegov/town6/views/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/town6/views/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.chat import MessageCollection from onegov.core.security import Private from onegov.org.views.message import view_messages from onegov.town6 import TownApp from onegov.town6.layout import MessageCollectionLayout @TownApp.html( model=MessageCollection, permission=Private, template='timeline.pt'...
27.625
79
0.809955
e81b2849053027e2c614b5bbdfc568aae19c8220
522
py
Python
keras_fcn/backend/__init__.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
235
2017-03-01T14:34:29.000Z
2021-06-03T16:16:16.000Z
keras_fcn/backend/__init__.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
39
2017-03-25T01:20:25.000Z
2020-10-30T11:51:47.000Z
keras_fcn/backend/__init__.py
li657835991/FCN
26bafeaf631a095d9d2befcc3b798a87c8d0fa7c
[ "MIT" ]
105
2017-04-13T21:31:46.000Z
2021-11-01T17:25:48.000Z
import os from .common import * _BACKEND = "tensorflow" if "KERAS_BACKEND" in os.environ: _backend = os.environ["KERAS_BACKEND"] backends = { "cntk", "tensorflow", "theano" } assert _backend in backends _BACKEND = _backend if _BACKEND == "cntk": from .cntk_backend i...
19.333333
57
0.64751
1becb657c2a9a02cfae6283db523ba1054e405fe
7,043
py
Python
constants.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
constants.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
constants.py
Limatationz/pandemiesimulator
91d21fda2f9c77d616a9e9401271fc044b421007
[ "MIT" ]
null
null
null
""" Contains constants and presets """ from PyQt5.QtGui import QColor FPS = 60 BETTER_TICKS_PER_DAY = 10 BETTER_SIMULATION_SPEED = 1.4 BETTER_MOVEMENT_SPEED = 2 BETTER_WALL_DETECTION = 3 DRAW_PARTICLE_RADIUS = 5 DRAW_QUARANTINE_PARTICLE_WIDTH = 20 PARTICLE_TIME_DISABLE_CHANGE_OF_DIRECTION = 60 PARTICLE_PROBABILI...
30.621739
113
0.682664
400591c18e332fc7354f3224799ad842ffd4e6e8
5,435
py
Python
official/nlp/lstm/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
official/nlp/lstm/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/nlp/lstm/train.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...
45.672269
115
0.675805
40a91bfa37af1010c3ba402a7104c650bedd9f71
966
py
Python
zeigeBilder.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
zeigeBilder.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
null
null
null
zeigeBilder.py
jkerpe/TroubleBubble
813ad797398b9f338f136bcb96c6c92186d92ebf
[ "MIT" ]
1
2021-08-09T14:57:57.000Z
2021-08-09T14:57:57.000Z
import cv2 import glob import time DELAY = 0.04 # Delay in s zwischen einzelnen Bildern def zeige(folder): """ Bilder des Formats .bmp aus Ordner anzeigen :param folder: Ordnername """ images = sorted(glob.glob(f'{folder}/*.bmp')) if len(images) == 0: images = sorted(glo...
23.560976
55
0.513458
9077a6a8692133c608b475e053670c952ba69eb6
2,987
py
Python
rbac/server/db/db_utils.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/server/db/db_utils.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/server/db/db_utils.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
35.141176
88
0.614329
291aab3a664f7e54217d9ac3c743e519da2c57b4
30,893
py
Python
src/test/tests/queries/database.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/database.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/queries/database.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: database.py # # Tests: queries - Database # # Defect ID: '6356 # # Programmer: Kathleen Bonnell # Date: July 11, 2003 # # Modifications: # Kathleen Bonnell, Thu Aug 28 14:34:57 ...
28.499077
95
0.60606
29760b60c693739244348cf74dee84286c086658
3,358
py
Python
module/classification_package/interpreter_classifier.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
module/classification_package/interpreter_classifier.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
module/classification_package/interpreter_classifier.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import cv2 import numpy as np import logging import torch import time import torchvision.models as models from PIL import Image from torchvision import transforms from torch import nn class Backbone(nn.Module): def __init__(self, resnet: nn.Module): super().__init__() self.resnet = resnet de...
34.618557
123
0.607504
46439c6b182190d6dad36d7af77dc5e326d113fa
1,484
py
Python
Raspberry Pi Pico/Pi_Pico_BME280.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-03-22T18:38:43.000Z
2021-03-22T18:38:43.000Z
Raspberry Pi Pico/Pi_Pico_BME280.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
null
null
null
Raspberry Pi Pico/Pi_Pico_BME280.py
ckuehnel/MicroPython
c57d0df744fe5301e755bd139b6cc56d69c442fd
[ "MIT" ]
1
2021-02-06T10:07:36.000Z
2021-02-06T10:07:36.000Z
# Read BME280 sensor and display data on pico explorer LCD # 2021-02-17 Claus Kuehnel info@ckuehnel.ch from machine import Pin, I2C from time import sleep import BME280 #import Piezo # Pico Explorer boilerplate import picoexplorer as display width = display.get_width() height = display.get_height() displa...
25.586207
91
0.638814
469d09dafd20ef5a37c08dfbd111d2ae1f98d0c8
630
py
Python
src/server/jobs/table_health.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
156
2021-11-19T18:50:14.000Z
2022-03-31T19:48:59.000Z
src/server/jobs/table_health.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
30
2021-12-27T19:30:56.000Z
2022-03-30T17:49:00.000Z
src/server/jobs/table_health.py
monosidev/monosi
a88b689fc74010b10dbabb32f4b2bdeae865f4d5
[ "Apache-2.0" ]
14
2022-01-17T23:24:34.000Z
2022-03-29T09:27:47.000Z
import logging from server.models import Monitor from server.pipeline import metrics_pipeline from server.middleware.db import db from .base import CollectorJob class TableHealthCollectorJob(CollectorJob): def pipelines(self): return [metrics_pipeline] def configuration(self): try: ...
26.25
106
0.668254
d3d46375b2b9f24e5f109f3ebcd679c12b4e9492
4,809
py
Python
pyventskalender/tag02.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag02.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
pyventskalender/tag02.py
kopp/pyventskalender
6f6455f3c1db07f65a772b2716e4be95fbcd1804
[ "MIT" ]
null
null
null
# Funktionen fassen Befehle zusammen # %% # Eine Funktion ist eine kurze Liste von Befehlen. # Die Funktion hat einen Namen, damit kann man sie aufrufen. # Ist der Name gut gewählt, kann man auch verstehen, was die Funktion # eigentlich macht. # Damit kann man seine Programme übersichtlicher gestalten, indem man # - B...
35.360294
96
0.733417
316708efa9f54767aaafa619176be2969845d384
395
py
Python
PMIa/2015/NIKISHIN_P_S/task_6_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/NIKISHIN_P_S/task_6_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PMIa/2015/NIKISHIN_P_S/task_6_22.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 6. Вариант 22. # Создайте игру, в которой компьютер загадывает имена двух братьев, легендарных основателей Рима, а игрок должен его угадать. # Nikishin P. S. # 20.05.2016 import random osnivateli=["Ромул", "Рем"] osn=random.choice(osnivateli) a=input("Один из основателей рима? ") if a==osn: print("Вы угад...
26.333333
125
0.721519
b437a94e53b65f6c7745b85d5ec113ef5f49761f
2,441
py
Python
client.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
client.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
client.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
# coding: utf-8 from configparser import ConfigParser from json import dumps from pathlib import Path from logging import debug, critical import paho.mqtt.publish config = ConfigParser() config.read(f'{Path.home()}/.config/tentacle/satellite.conf') server = config['server'] HOSTNAME = server.get('hostname', 'local...
31.294872
94
0.593609
6f0862f38c1a35de6d08026f55455e541107e0a7
420
py
Python
labor_status/labor_status.py
tbs1-bo/scripts
7ea2f12a29376205d12f92c9e1a648efcaf5bc50
[ "MIT" ]
null
null
null
labor_status/labor_status.py
tbs1-bo/scripts
7ea2f12a29376205d12f92c9e1a648efcaf5bc50
[ "MIT" ]
20
2020-07-02T06:46:09.000Z
2020-07-16T10:13:10.000Z
labor_status/labor_status.py
tbs1-bo/scripts
7ea2f12a29376205d12f92c9e1a648efcaf5bc50
[ "MIT" ]
1
2020-07-02T07:01:24.000Z
2020-07-02T07:01:24.000Z
import urllib.request URL = "https://das-labor.org/status/status.php?status" def get_labor_status(): """ Ermittelt den Status des Bochumer Labors: OPEN oder CLOSED. >>> get_labor_status() in ['CLOSED' , 'OPEN'] True """ response = urllib.request.urlopen(URL) status = str(response.readlin...
21
63
0.661905
d2f3690090ebbb690ca05736ad7279439c916524
372
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.04-Address-of-Passed-Argument-in-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.04-Address-of-Passed-Argument-in-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.04-Address-of-Passed-Argument-in-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def update(x): print(id(x)) x = 8 print(id(x)) print("x", x) x = 10 print(id(x)) update(x) print("x", x) # list def update_list(lst): print("inside function:", id(lst)) lst[1] = 25 print("inside function:", id(lst)) print("inside function:", lst) lst = [10, 20 ,30] print("Outside:...
13.777778
38
0.569892
828b05b7e9b466d89a29b855a0da1197f8e81df7
9,695
py
Python
test/minor_glitches/TestEntrances.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
null
null
null
test/minor_glitches/TestEntrances.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
5
2020-01-18T21:10:46.000Z
2020-01-25T20:58:19.000Z
test/minor_glitches/TestEntrances.py
Berserker66/ALttPEntranceRandomizer
9c681cc65d7281ccded03484b050e8f80ea65dc6
[ "MIT" ]
2
2020-01-18T17:36:50.000Z
2020-01-22T16:52:08.000Z
from test.minor_glitches.TestMinor import TestMinor class TestEntrances(TestMinor): def testDungeonEntrances(self): self.run_entrance_tests([ ["Hyrule Castle Entrance (South)", True, []], ["Eastern Palace", True, []], ["Desert Palace Entrance (South)", False,...
72.894737
205
0.550903
7deb8a2e6ceb4fcb1b569fe9a5f7656323767b11
3,221
py
Python
loesung/blatt1b_1.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
1
2019-09-27T13:47:20.000Z
2019-09-27T13:47:20.000Z
loesung/blatt1b_1.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
loesung/blatt1b_1.py
dotKuro/vorsemesterWISE19-20
436c6d1846b6c1bfb087652e8ca179bd1b12c28e
[ "CC0-1.0" ]
null
null
null
# In dieser Aufgabe soll der User nach der aktuellen Temperatur und # Windgeschwindigkeit gefragt werden. Dann soll die gefühlt Temperatur nach der # alten und der neuen Rechnungsweise berechnet werden. Auch hier wieder der # Hinweis: Konzepte der vorherigen Aufgaben werden hier eventuell nicht mehr # erklärt. Wenn du ...
37.453488
82
0.711891
9673f8a46a60ce02f91e9e89afbe0c75298413e6
1,479
py
Python
Backend/plot.py
BenediktAlkin/RadioStats
08beaf025cfef5cd8a990f4ddf941ee00dbb3a29
[ "MIT" ]
null
null
null
Backend/plot.py
BenediktAlkin/RadioStats
08beaf025cfef5cd8a990f4ddf941ee00dbb3a29
[ "MIT" ]
null
null
null
Backend/plot.py
BenediktAlkin/RadioStats
08beaf025cfef5cd8a990f4ddf941ee00dbb3a29
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator do_bar_plot = False # import numpy as np # data = { # "x": np.random.randn(24), # "xLabels": [f"{i:02d}:00" for i in range(24)], # "stds": None, # "title": None, # "height": 6, # "width": 4, # } import json with ope...
24.65
80
0.659905
96a1762777cb4a624d0667187a5a8a3fd31f2373
2,296
py
Python
model/__init__.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
null
null
null
model/__init__.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
null
null
null
model/__init__.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
1
2020-09-14T07:09:34.000Z
2020-09-14T07:09:34.000Z
# coding:utf-8 import config import peewee from playhouse.db_url import connect db = connect(config.DATABASE_URI) class BaseModel(peewee.Model): class Meta: database = db def to_dict(self): return model_to_dict(self) @classmethod def get_by_pk(cls, value): try: ...
26.090909
74
0.621516
fb90000cf73e3d548cbb35c7fa6eecab84bdc97f
48,416
py
Python
Packs/GoogleKeyManagementService/Integrations/GoogleKeyManagementService/GoogleKeyManagementService.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/GoogleKeyManagementService/Integrations/GoogleKeyManagementService/GoogleKeyManagementService.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/GoogleKeyManagementService/Integrations/GoogleKeyManagementService/GoogleKeyManagementService.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''' from google.cloud import kms from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import ...
40.145937
123
0.665586
f774c111b3e7c06cc1bc69aa54df0b531e34ee71
529
py
Python
0000 hihoOnce/170 Word Construction/main.py
SLAPaper/hihoCoder
3f64d678c5dd46db36345736eb56880fb2d2c5fe
[ "MIT" ]
null
null
null
0000 hihoOnce/170 Word Construction/main.py
SLAPaper/hihoCoder
3f64d678c5dd46db36345736eb56880fb2d2c5fe
[ "MIT" ]
null
null
null
0000 hihoOnce/170 Word Construction/main.py
SLAPaper/hihoCoder
3f64d678c5dd46db36345736eb56880fb2d2c5fe
[ "MIT" ]
null
null
null
from __future__ import print_function _ = raw_input() words = [set(w) for w in raw_input().split()] result = 0 def search(words, layer=0): global result if len(words) + layer <= result: # simple cut return if layer > result: result = layer def isConflict(word1, word2): ...
18.241379
70
0.601134
e393e681e9bdea756fb1384db97dd2787cefe86f
354
py
Python
day02/dataTypesExercise.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day02/dataTypesExercise.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day02/dataTypesExercise.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
# 🚨 Don't change the code below 👇 two_digit_number = input("Type a two digit number: ") # 🚨 Don't change the code above 👆 #################################### #Write your code below this line 👇 #Example output #3 + 9 = 12 first = int(two_digit_number[0]) second = int(two_digit_number[1]) result = first + secon...
17.7
53
0.607345
587fd9993adf2f80cd864896ed5c9a6ede6e01d4
184
py
Python
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P06_MaxNumber.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P06_MaxNumber.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P06_MaxNumber.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
max_number = int(input()) line = input() while line != "Stop": current = int(line) if current > max_number: max_number = current line = input() print(max_number)
16.727273
28
0.619565
54738f4a3a57e2454300fb30933829efe5cbfa56
88
py
Python
pages/themes/beginners/notableStandardLibraryModules/examples/test.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/notableStandardLibraryModules/examples/test.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/notableStandardLibraryModules/examples/test.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
import os import subprocess res = subprocess.check_output(["date","+60"]) print(res)
11
45
0.715909
49a3df719816bcdea7fab297c1ed7b44a2ca78c4
1,396
py
Python
Packs/Workday/Integrations/Workday_IAM/test_data/fetch_incidents_source_priority_mock_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Workday/Integrations/Workday_IAM/test_data/fetch_incidents_source_priority_mock_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Workday/Integrations/Workday_IAM/test_data/fetch_incidents_source_priority_mock_data.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
full_report = { "Report_Entry": [{ "Employment_Status": "Active", "Last_Day_Of_Work": "10/05/2035", "Last_Hire_Date": "10/05/2020", "Emp_ID": "100122", "Email_Address": "rrahardjo@paloaltonetworks.com" }] } employee_id_to_user_profile = { "100122": { "employm...
27.372549
57
0.590974
b209cf607de1edc04e37bcb7891492a831b45abe
2,877
py
Python
DataCollector/models.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
DataCollector/models.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
DataCollector/models.py
TrojanCrypto/Dashboard
3af795980c7aa90505afae684297e43366cb6ee5
[ "MIT" ]
null
null
null
import requests from firebase_admin import db class CoinbaseMarket(object): def __init__(self): self.symbols = ['BTC', 'LTC', 'ETH', 'BCH'] self.currency = ['USD'] self.base_api = "https://min-api.cryptocompare.com/data/pricemultifull" def update(self): json_content = self.bat...
32.325843
79
0.521029
b75eae37cb88a3d6802ed9f4c9340a6838aa4841
1,369
py
Python
books/PythonCleanCode/ch8_unittest/ut_design_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch8_unittest/ut_design_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch8_unittest/ut_design_2.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 8: Unit Testing > Unit Testing and Software Design """ import logging import random logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) class MetricsClient: """3rd-party metrics client""" def send(self, metric_name, metric_value): ...
26.326923
69
0.646457
b79b3b3779df2b4741ee4b84a654eaf697dfb738
3,730
bzl
Python
3rdparty/openscad/openscad.bzl
damienmg/ender3_control_box
e0699f30c838774aa431689b1ce50b049c9f8d47
[ "Apache-2.0" ]
3
2021-03-04T18:34:30.000Z
2022-02-23T16:11:57.000Z
3rdparty/openscad/openscad.bzl
damienmg/ender3_control_box
e0699f30c838774aa431689b1ce50b049c9f8d47
[ "Apache-2.0" ]
null
null
null
3rdparty/openscad/openscad.bzl
damienmg/ender3_control_box
e0699f30c838774aa431689b1ce50b049c9f8d47
[ "Apache-2.0" ]
1
2020-03-03T04:26:58.000Z
2020-03-03T04:26:58.000Z
# Copyright 2019 Damien Martin-Guillerez <damien.martin.guillerez@gmail.com> # # 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 # # Unles...
32.155172
109
0.589008
421349d9a91939ec60b07f2171cbaf7085296452
2,114
py
Python
601-percolation/main.py
hello-arun/Python-Tutorial
aec3978f414e48d762a5fbc5cce581163c1f5f1e
[ "MIT" ]
null
null
null
601-percolation/main.py
hello-arun/Python-Tutorial
aec3978f414e48d762a5fbc5cce581163c1f5f1e
[ "MIT" ]
null
null
null
601-percolation/main.py
hello-arun/Python-Tutorial
aec3978f414e48d762a5fbc5cce581163c1f5f1e
[ "MIT" ]
null
null
null
from turtle import color import matplotlib.pyplot as plt import random from quick_union_weighted import quick_union_wighted random.seed(3) N = 20 # No of rows M = 20 # No of cols random_samples = random.sample(range(0, N*M), N*M) fig, [ax1,ax2] = plt.subplots(1,2) ax2.set_xlim([-0.1,1.1]) ax2.set_ylim([-0.1,1.1]) p...
29.361111
84
0.551561
2219a69d1c59b7d9d3de5564dab93ebb36b92721
27,472
py
Python
rfvision/datasets/pipelines/arti_pipeline.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
6
2021-09-25T03:53:06.000Z
2022-02-19T03:25:11.000Z
rfvision/datasets/pipelines/arti_pipeline.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
1
2021-07-21T13:14:54.000Z
2021-07-21T13:14:54.000Z
rfvision/datasets/pipelines/arti_pipeline.py
mvig-robotflow/rfvision
cc662f213dfe5a3e8864a6b5685a668a4436e397
[ "Apache-2.0" ]
2
2021-07-16T03:25:04.000Z
2021-11-22T06:04:01.000Z
''' ARTI is a dataset created by Liu Liu (@liuliu66) ''' import os.path as osp from collections.abc import Sequence import rflib import open3d as o3d import numpy as np import copy import torch import h5py import pycocotools.mask as maskUtils from rflib.parallel import DataContainer as DC from rfvision.datasets.art...
44.238325
132
0.598537
3f4892260bfd7e24c0b7143b19544f4aead35924
881
py
Python
audio/_audio_callback.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
audio/_audio_callback.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
audio/_audio_callback.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
import config import buzzer import logging import simpleaudio class AudioCallback(buzzer.BuzzerCallback): _play_object = None def __init__(self, audio_config: config.AudioConfig): self._audio_config = audio_config self._wave_object = simpleaudio.WaveObject.from_wave_file('/mnt/usb/AirHorn.wav...
27.53125
89
0.660613
18c5c13133d2f775b0dd7191e8e81d67e22fbb17
592
py
Python
___Python/Daniel/2018-06-25-VHS-Bielefeld-Python/p21_gui/m01_gui.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Daniel/2018-06-25-VHS-Bielefeld-Python/p21_gui/m01_gui.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Daniel/2018-06-25-VHS-Bielefeld-Python/p21_gui/m01_gui.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
from tkinter import Tk, Frame, Button, LEFT # from Tkinter import * class App: def __init__(self, master): frame = Frame(master) frame.pack() self.button = Button(frame, text="QUIT", fg="red", command=frame.quit) self.button.pack(side=LEFT) ...
28.190476
52
0.543919
e16709a6b633bcf47673695f6f6f502fec785126
1,006
py
Python
Flask/FastAPI/Django/Python-API-Development.freeCodeCamp.org/08-Authentication-and-Users/routers/auth.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Flask/FastAPI/Django/Python-API-Development.freeCodeCamp.org/08-Authentication-and-Users/routers/auth.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
Flask/FastAPI/Django/Python-API-Development.freeCodeCamp.org/08-Authentication-and-Users/routers/auth.py
shihab4t/Software-Development
0843881f2ba04d9fca34e44443b5f12f509f671e
[ "Unlicense" ]
null
null
null
from fastapi import APIRouter, Depends, HTTPException, status from fastapi.security.oauth2 import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from ..database import get_db from .. import schemas, models, utils, oauth2 router = APIRouter( tags=["Authentication"] ) @router.post("/login", response_...
35.928571
98
0.737575
833c1c5c74a09bda6cb46c4e3cef677b5ca088f3
4,470
py
Python
CRT.py
Bogybug/various-programs
827d67b259cbba731ce68ae8d61e825f22625395
[ "MIT" ]
null
null
null
CRT.py
Bogybug/various-programs
827d67b259cbba731ce68ae8d61e825f22625395
[ "MIT" ]
null
null
null
CRT.py
Bogybug/various-programs
827d67b259cbba731ce68ae8d61e825f22625395
[ "MIT" ]
null
null
null
## Code pertaining to the Chinese Remainder Theorem, for solving systems of modular congruences. # Takes the product of all of the elements in a list def prod(l): if not (type(l) == type(list())): raise TypeError p = 1 for n in l: if not ((type(n) == type(int())) or (type(n) == type(float()...
31.928571
129
0.516779
62be43b652d2713de146ee89d82443d69c750578
142
py
Python
Packs/CommonScripts/Scripts/StripChar/StripChar.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/StripChar/StripChar.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/StripChar/StripChar.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import * value = demisto.args()["value"] chars = demisto.args().get("chars", "") demisto.results(value.strip(chars))
23.666667
39
0.71831
1a0c7e308c2914e47ebfaaa2ba2fdc6665392d40
543
py
Python
kiosk/migrations/0009_gekauft_gekauft_per.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
kiosk/migrations/0009_gekauft_gekauft_per.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
14
2018-09-12T06:59:55.000Z
2020-02-26T07:17:48.000Z
kiosk/migrations/0009_gekauft_gekauft_per.py
AndiBr/ffksk
ff4bc4ad26d4571eaa1a6ff815b2e6a876f8ba99
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-12-09 09:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('kiosk', '0008_start_news'), ] operations = [ migrations.AddField( ...
25.857143
150
0.594843
1a0cccd4300e8fedc3da4f377d666292b601bf35
3,427
py
Python
data-pipeline/src/data_pipeline/datasets/exac/exac_coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
38
2018-02-24T02:33:52.000Z
2020-03-03T23:17:04.000Z
data-pipeline/src/data_pipeline/datasets/exac/exac_coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
385
2018-02-21T16:53:13.000Z
2020-03-04T00:52:40.000Z
data-pipeline/src/data_pipeline/datasets/exac/exac_coverage.py
broadinstitute/gnomadjs
00da72cdc2cb0753f822c51456ec15147c024a1d
[ "MIT" ]
13
2020-05-01T13:03:54.000Z
2022-02-28T13:12:57.000Z
import hail as hl from data_pipeline.data_types.locus import x_position def import_exac_coverage(): paths = [ "gs://gcp-public-data--gnomad/legacy/exac_browser/coverage/Panel.chr1.coverage.txt.gz", "gs://gcp-public-data--gnomad/legacy/exac_browser/coverage/Panel.chr10.coverage.txt.gz", "g...
45.693333
96
0.642836
c54834ca1e062fd36546cb8ed1152130e39f98fd
1,695
py
Python
python/odml/test_scripts/time_test.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/time_test.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/test_scripts/time_test.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import datetime as dt import os import odml from odml.tools import ODMLReader # save load test doc = odml.Document() sec = odml.Section(name="sec_name", parent=doc) time_string = "12:34:56" time = dt.time(12, 34, 56) val_in = time_string vals_in = [None, "", time_string, time] _ = odml.Property(name="time test singl...
23.541667
82
0.617699
9ae762d5abe5529d312feefedcdc8fe2462f6925
1,386
py
Python
books/PythonCleanCode/ch9_design_pattern/test_composite_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch9_design_pattern/test_composite_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonCleanCode/ch9_design_pattern/test_composite_1.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""Clean Code in Python - Chapter 9: Common Design Patterns > Tests Composite """ import unittest from composite_1 import Product, ProductBundle class TestProducts(unittest.TestCase): def test_product_bundle(self): tablet = Product("tablet", 200) bundle = ProductBundle( ...
28.285714
83
0.529582
b1586ad158c2645b3264dee20f2cf0b31fff653e
1,774
py
Python
src/classifier/data_processing/text_embedding/embedding.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/classifier/data_processing/text_embedding/embedding.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/classifier/data_processing/text_embedding/embedding.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os import hydra.utils from sentence_transformers import SentenceTransformer from gensim.models.keyedvectors import KeyedVectors from gensim.models.fasttext import ( FastText, load_facebook_vectors, load_facebook_model, ) def get_embedding(cfg, X=None): if cfg.embedding.name != "transformer": ...
34.115385
87
0.642052
77072bdfbc010efd4181b038e219376729444881
5,994
py
Python
raw_code/pulson440/backprojection-general.py
stevenruidigao/bwsiuassar2019
25e267d2c9d96c767f7f9ea168a27bcad56690b7
[ "MIT" ]
null
null
null
raw_code/pulson440/backprojection-general.py
stevenruidigao/bwsiuassar2019
25e267d2c9d96c767f7f9ea168a27bcad56690b7
[ "MIT" ]
null
null
null
raw_code/pulson440/backprojection-general.py
stevenruidigao/bwsiuassar2019
25e267d2c9d96c767f7f9ea168a27bcad56690b7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """A script to run backprojection.""" __author__ = "Steven Gao" __version__ = "1.0" __maintainer__ = "Steven Gao" __email__ = "stevenruidigao@gmail.com" import pickle import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D imp...
46.465116
162
0.654321
77400c0b0193795bc2bff41d56a0a81f2e5f6f72
2,362
py
Python
retro/cores/gba/src/platform/python/mgba/lr35902.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
2,706
2018-04-05T18:28:50.000Z
2022-03-29T16:56:59.000Z
retro/cores/gba/src/platform/python/mgba/lr35902.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
242
2018-04-05T22:30:42.000Z
2022-03-19T01:55:11.000Z
retro/cores/gba/src/platform/python/mgba/lr35902.py
MatPoliquin/retro
c70c174a9818d1e97bc36e61abb4694d28fc68e1
[ "MIT-0", "MIT" ]
464
2018-04-05T19:10:34.000Z
2022-03-28T13:33:32.000Z
# Copyright (c) 2013-2016 Jeffrey Pfau # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. from ._pylib import ffi, lib class LR35902Core: def __init__(self, native):...
19.048387
69
0.551651
65d306427f07c48be87c5f35d7b4a2fbf1a88f7d
577
py
Python
Crashkurs Python/07_Dictionaries.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
2
2020-03-23T14:57:50.000Z
2021-03-24T18:12:07.000Z
Crashkurs Python/07_Dictionaries.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs Python/07_Dictionaries.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
# Frühling, Sommer, Herbst, Winter # spring, summer, autumn, winter seasons = { 'Frühling': 'spring', 'Sommer': 'summer', 'Herbst': 'autumn', 'Winter': 'winter' } # wie in JSON print(seasons) # german = input("Gib eine Jahreszeit auf Deutsch ein: ") # Ausgabe des englischen Worts...
19.896552
57
0.615251
02d06772e4296447028229bbaaef4df27c954fd1
959
py
Python
backend/app/models/task.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/app/models/task.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/app/models/task.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
from sqlalchemy import JSON, Boolean, Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship from app.db.base_class import Base class Task(Base): id = Column(Integer, primary_key=True, index=True) layer = Column(Integer, nullable=False) base_task_id = Column(Integer, Foreign...
39.958333
86
0.716371
b8460c921b5dcd780515dc1d0c90d7b3262f1025
7,392
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/net_tools/nios/test_nios_ptr_record.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that ...
39.956757
145
0.593074
b850c3e8bd74c61f3035b5a84721d71021be96f4
414
py
Python
PINp/2014/Gryadin_V_D/task_1_46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Gryadin_V_D/task_1_46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2014/Gryadin_V_D/task_1_46.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 1. Вариант 46 #Напишите программу, которая будет сообщать род деятельности и псевдоним #под которым скрывается Франсуаза Сориа. После вывода информации программа #должна дожидаться пока пользователь нажмет Enter для выхода. #Gryadin V. D. print("Франсуа́за Юди́т Сорья́ Дрейфус более известна, как одна из сам...
37.636364
124
0.78744
a259e059fc1dfb89809960c264a8f6f5c8ba390a
1,886
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex13_tennis_score.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex13_tennis_score.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch04_strings/solutions/ex13_tennis_score.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden def extract_points(score): values = score.strip().split(":") if len(values) != 2: raise ValueError("illegal format -- score has not" + "format <points>:<points>, e.g. 7:6") score1 = in...
27.735294
78
0.617709
0c5061fa4ba84632aa914342560957ae33fd8ea1
1,591
py
Python
Projekt/CNN-Ansatz/LoadDataSet.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Projekt/CNN-Ansatz/LoadDataSet.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
null
null
null
Projekt/CNN-Ansatz/LoadDataSet.py
Griizz/ComputerVisionPraktikum
30276eb0b039ea42728d7433c573414d2dfe1ec2
[ "MIT" ]
3
2019-11-17T01:33:07.000Z
2020-03-26T10:13:39.000Z
""" Der CNN Ansatz bei unserem Fruits Dataset. Labels: 0 - Apple Green 1 - Apple Red 2 - Banana 3 - Carambola 4 - Guava 5 - Kiwi 6 - Mango 7 - Muskmelon 8 - Orange 9 - Peach 10 - Pear 11 - Persimmon 12 - Pitaya 13 - Plum 14 - Pomegranate 15 - Tomato """ import glob import numpy as np from keras.utils import...
20.139241
71
0.61785
0c58c6d4a7be89ac3ad2625ed1cb4cc6e585a1a8
873
py
Python
export.py
bivab/-markov-university-classes
34e0563646c14e91cab8fb46b220b8b2f8866269
[ "MIT" ]
null
null
null
export.py
bivab/-markov-university-classes
34e0563646c14e91cab8fb46b220b8b2f8866269
[ "MIT" ]
null
null
null
export.py
bivab/-markov-university-classes
34e0563646c14e91cab8fb46b220b8b2f8866269
[ "MIT" ]
null
null
null
import sqlite3 import sys import codecs def verify(conn): result = conn.execute("SELECT value FROM info WHERE key = 'schema_version'") version = int(result.fetchone()[0]) assert version == 9 def write_file(filename, data): with codecs.open(filename, 'w', 'utf8') as f: f.writelines(data) def...
22.384615
80
0.672394
ac027bd2ad63bd463baec6c8955b265f9e8d6559
2,195
py
Python
beispielanwendungen/ressourcen/ressourcen.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
5
2017-03-11T13:27:27.000Z
2022-01-09T10:52:05.000Z
beispielanwendungen/lokalisierung/lokalisierung.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
2
2021-02-14T10:59:59.000Z
2021-10-30T21:46:32.000Z
beispielanwendungen/lokalisierung/lokalisierung.py
pbouda/pyqt-und-pyside-buch
a4ec10663ccc8aeda075c9a06b9707ded52382c8
[ "CC-BY-4.0" ]
1
2019-08-07T03:08:18.000Z
2019-08-07T03:08:18.000Z
# -*- coding: utf-8 -*- import sys from PySide import QtCore, QtGui def main(argv): app = QtGui.QApplication(argv) QtGui.QApplication.setApplicationName("HalloWelt") language = unicode(QtCore.QLocale.system().name()) qtTranslator = QtCore.QTranslator() qtTranslator.load("qt_{0}".format(language),...
33.769231
116
0.678815
022d998a1649096280498d61ccd708b9df3ad9e2
794
py
Python
Imagenes/vdWColumnHT_2D/CasoE/Caso3/GetData.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumnHT_2D/CasoE/Caso3/GetData.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
Imagenes/vdWColumnHT_2D/CasoE/Caso3/GetData.py
efogliatto/Tesis
058fa0c2e23cd538621d17d41bb216a4db4d211a
[ "CC0-1.0" ]
null
null
null
#### import the simple module from the paraview from paraview.simple import * # create a new 'EnSight Reader' lbmcase = EnSightReader(CaseFileName='lbm.case') # Go to last time times = lbmcase.TimestepValues # Properties modified on lbmcase lbmcase.PointArrays = ['rho', 'T', 'U'] # create a new 'Plot Over Line' plo...
25.612903
81
0.755668
65f392964b3514d65ca71a0a5b873a4026a4a7e0
21,154
py
Python
mlb.py
nmstoker/MultiLingualBot
73bb811d208bd5b14e649fcf05cb3f0675692faa
[ "MIT" ]
14
2018-02-17T23:09:38.000Z
2021-07-12T12:05:35.000Z
mlb.py
srivastavaritik/MultiLingualBot
73bb811d208bd5b14e649fcf05cb3f0675692faa
[ "MIT" ]
null
null
null
mlb.py
srivastavaritik/MultiLingualBot
73bb811d208bd5b14e649fcf05cb3f0675692faa
[ "MIT" ]
7
2018-03-06T22:08:21.000Z
2021-07-05T13:42:34.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from builtins import input import sys import signal import os import pickle #import time import datetime import readline import logging from colored import fore, back, style import click from langdetect import detect_langs from langdetect import DetectorF...
41.806324
182
0.603952
ce99c978fbcdd9d92df3839ceeb14e855caa197a
886
py
Python
frds/io/fred/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
31
2020-06-17T13:19:12.000Z
2022-03-27T08:56:38.000Z
frds/io/fred/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/io/fred/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
8
2020-06-14T15:21:51.000Z
2021-09-29T06:28:53.000Z
import os import json from frds.data import CREDENTIALS_FILE_PATH from fredapi import Fred # TODO: Update logic here. Now, credentials.json won't be updated if new ones are supplied. def setup(api_key="", save_credentials=False): credentials = dict() if os.path.exists(CREDENTIALS_FILE_PATH): with op...
27.6875
91
0.702032
cedee4f972170374f31f9ab63c094ce54b2131c0
5,382
py
Python
GZP_GTO_QGIS/gto/scripts/SCR_ValidateSchema.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/gto/scripts/SCR_ValidateSchema.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/gto/scripts/SCR_ValidateSchema.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
# -*- coding: utf-8 -*- """ @author: ms.gis, June 2020 Script for QGIS GTO for Modul GZP """ ## import qgis from qgis.core import QgsProject from qgis.core import QgsMapLayer from qgis.core import QgsWkbTypes from PyQt5.QtWidgets import QMessageBox import json import inspect, os.path from pprint import pprint as pret...
34.948052
161
0.546451
6549d80ad897ab80c5170299f2141032ec9b5587
822
py
Python
klufweb/static_page/migrations/0001_initial.py
mseln/klufweb
a785d44415fde933723220fab7f18f2ae4fd748d
[ "Apache-2.0" ]
null
null
null
klufweb/static_page/migrations/0001_initial.py
mseln/klufweb
a785d44415fde933723220fab7f18f2ae4fd748d
[ "Apache-2.0" ]
5
2015-05-22T12:05:54.000Z
2015-05-22T12:09:06.000Z
klufweb/static_page/migrations/0001_initial.py
mseln/klufweb
a785d44415fde933723220fab7f18f2ae4fd748d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import ckeditor.fields class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='StaticPage', fields=[ ('...
28.344828
114
0.555961
6852577a22a1c8b2f61b9c1cc6a46e4b196f6f57
1,330
py
Python
nz_django/day5/class_view_demo_01/class_view_demo_01/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day5/class_view_demo_01/class_view_demo_01/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day5/class_view_demo_01/class_view_demo_01/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.http import HttpResponse from django.shortcuts import render from django.views.generic import View,TemplateView def index(request): return HttpResponse('这是首页') class BookView(View): def get(self,request,*args,**kwargs): return HttpResponse("图书首页") def post(self,request,*args,**kwargs):...
32.439024
75
0.673684
685e6af3d145cbcf11903c234dda7b30becb44d6
8,406
py
Python
zencad/geom/wire.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
5
2018-04-11T14:11:40.000Z
2018-09-12T19:03:36.000Z
zencad/geom/wire.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
zencad/geom/wire.py
Spiritdude/zencad
4e63b1a6306dd235f4daa2791b10249f7546c95b
[ "MIT" ]
null
null
null
from zencad.geom.shape import Shape, nocached_shape_generator, shape_generator from zencad.util import as_indexed from OCC.Core.BRepBuilderAPI import BRepBuilderAPI_MakeEdge, BRepBuilderAPI_MakeWire from OCC.Core.GCE2d import GCE2d_MakeSegment from OCC.Core.Geom2d import Geom2d_Line, Geom2d_TrimmedCurve from OCC.Core....
27.292208
97
0.633952
04190034310c2b1d0c117e0ce81f10f9b2a005d7
1,568
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/sumolib/output/convert/poi.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
sumolib/output/convert/poi.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
sumolib/output/convert/poi.py
KhalidHALBA-GR-NIST/UCEFSUMOV2V
4eb7ac761303a171718a10e4131184746bded9fd
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2014-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.eclipse.org/legal/epl-2....
39.2
96
0.722577
0b1c08946d2defd11afd71fcc9ca503577c42610
420
py
Python
autojail/utils/board.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/utils/board.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/utils/board.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import shlex import subprocess def start_board(autojail_config, cwd=None): if autojail_config.start_command: for command in autojail_config.start_command: subprocess.run(shlex.split(command), cwd=cwd) def stop_board(autojail_config, cwd=None): if autojail_config.stop_command: for...
28
57
0.733333
502ec337eaf31b03bd24cab8dbe8fc2944fb8db1
2,794
py
Python
Sandbox/login.py
manashmndl/KLAS
036dab470e3015e119c3fcd0edff0fb01bb21ce6
[ "MIT" ]
1
2017-03-03T23:13:11.000Z
2017-03-03T23:13:11.000Z
Sandbox/login.py
manashmndl/KLAS
036dab470e3015e119c3fcd0edff0fb01bb21ce6
[ "MIT" ]
null
null
null
Sandbox/login.py
manashmndl/KLAS
036dab470e3015e119c3fcd0edff0fb01bb21ce6
[ "MIT" ]
null
null
null
import sys from PyQt4 import uic, QtGui from PyQt4.QtCore import SIGNAL from LoginThread import LoginThread from Reminder import Reminder import ast #Login design path ui_login = 'design/ui_login.ui' # Getting Ui class Ui_LoginWidget, Ui_LoginBaseClass = uic.loadUiType(ui_login) class Login(QtGui.QWidget, Ui_LoginWi...
28.510204
100
0.657122
5049db9ad979e18679078653e1f6c2ae85e19e9b
1,103
py
Python
official_examples/Using_Hetero_Cluster_Framework_to_train_a_Pong_Player_with_Rllib/learner_data_url/rl_config.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
null
null
null
official_examples/Using_Hetero_Cluster_Framework_to_train_a_Pong_Player_with_Rllib/learner_data_url/rl_config.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
null
null
null
official_examples/Using_Hetero_Cluster_Framework_to_train_a_Pong_Player_with_Rllib/learner_data_url/rl_config.py
RuichunWang/ModelArts-Lab
cfa9a853e3a76a21eac2818f055b36978ac2bb69
[ "Apache-2.0" ]
null
null
null
import gym ACTION_SPACE = gym.spaces.Discrete(6) OBSERVATION_SPACE = gym.spaces.Box(0, 255, (42, 42, 1)) CONFIG_PPO = { "rollout_fragment_length": 3000, "train_batch_size": 3000, "framework": "tf", "preprocessor_pref": "rllib", "batch_mode": "complete_episodes", "lambda": 0.95, ...
23.978261
56
0.55485
acb878e432248305d7ad76dd477b7d6c62adf0ac
118
py
Python
scripts/hello_world_Arie_Kurniawan.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Arie_Kurniawan.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
null
null
null
scripts/hello_world_Arie_Kurniawan.py
breezage/Hacktoberfest-1
6f6d52248c79c0e72fd13b599500318fce3f9ab0
[ "MIT" ]
1
2019-10-24T06:45:21.000Z
2019-10-24T06:45:21.000Z
# LANGUAGE: Python # ENV: Python # AUTHOR: Arie Kurniawan # GITHUB: https://github.com/arkwrn print ("Hello World!")
16.857143
35
0.70339
4a183ba5e623f94b5c12c7a4aa8e1d85eef4e3b5
145
py
Python
LF6/zip_test.py
JohannesMuelle/workshops
af9140159e3872aff75864ced99b5163d7bba1ba
[ "CC0-1.0" ]
5
2016-07-07T09:00:31.000Z
2017-03-09T22:46:33.000Z
LF6/zip_test.py
JohannesMuelle/workshops
af9140159e3872aff75864ced99b5163d7bba1ba
[ "CC0-1.0" ]
null
null
null
LF6/zip_test.py
JohannesMuelle/workshops
af9140159e3872aff75864ced99b5163d7bba1ba
[ "CC0-1.0" ]
8
2016-05-13T14:29:06.000Z
2019-10-20T16:43:32.000Z
import zipfile import sys zFile = zipfile.ZipFile("evil.zip") try: zFile.extractall(pwd="bloedsinn") except: print(sys.exc_info()[0])
20.714286
37
0.696552
8b14422fbbc427a170be6201f868c3919d56915c
1,006
py
Python
___Python/Marco/PythonProj/p02_datenstrukturen/m02_woerterbuecher.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p02_datenstrukturen/m02_woerterbuecher.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Marco/PythonProj/p02_datenstrukturen/m02_woerterbuecher.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
# Wörterbuch/Dictionary (Paare von Schlüsseln und Werten), Hashtabelle/Hashtable/Hashmap, assoziatives Feld/accociative Array d = {"Tisch": "table", "Stuhl": "chair", "Schreibtisch": "desk"} # Aus einem Wörterbuch einen Wert anhand eines Schlüssels ermitteln: # print(d["Stuhl"]) deutsch = input ("...
28.742857
126
0.678926
8b1f5d0468e0eab9851063012b7c14f8e2899205
5,526
py
Python
device/sensor/src/app.py
DennisSchulmeister/dhbwka-wwi-iotws-architektur
57001f9555ae4dd12323519b7afa099016f0cbcc
[ "CC-BY-4.0" ]
null
null
null
device/sensor/src/app.py
DennisSchulmeister/dhbwka-wwi-iotws-architektur
57001f9555ae4dd12323519b7afa099016f0cbcc
[ "CC-BY-4.0" ]
null
null
null
device/sensor/src/app.py
DennisSchulmeister/dhbwka-wwi-iotws-architektur
57001f9555ae4dd12323519b7afa099016f0cbcc
[ "CC-BY-4.0" ]
2
2021-05-17T17:12:48.000Z
2021-05-30T09:58:16.000Z
#! /bin/env python import redis import configparser, logging, pprint, os, random, sys, time REDIS_KEY_MEASUREMENT_INTERVAL = "measurement:interval" REDIS_KEY_MEASUREMENT_ENABLED = "measurement:enabled" REDIS_KEY_MEASUREMENT_VALUES = "measurement:values" class App: """ Beispiel für ein einfaches Python-Skr...
38.643357
120
0.665038
a8dd2ea87ba2992f9564ab8caeb69f0cef1132b7
4,162
py
Python
test/test_npu/test_network_ops/test_gru_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_gru_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_gru_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020 Huawei Technologies Co., Ltd # Copyright (c) 2019, Facebook CORPORATION. # All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/lice...
48.964706
131
0.653532
0f450c68a49526c62efd83533804c3f61ad6409d
1,705
py
Python
python_experiments/paper_figures/tkde/data_legacy/probesim_init_mem.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
8
2020-04-14T23:17:00.000Z
2021-06-21T12:34:04.000Z
python_experiments/paper_figures/tkde/data_legacy/probesim_init_mem.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
null
null
null
python_experiments/paper_figures/tkde/data_legacy/probesim_init_mem.py
RapidsAtHKUST/SimRank
3a601b08f9a3c281e2b36b914e06aba3a3a36118
[ "MIT" ]
1
2021-01-17T16:26:50.000Z
2021-01-17T16:26:50.000Z
from config import * from data_analysis.util.read_file_utils_updated import * from data_analysis.tkde_data_parsing.key_word_tags import * import json, re if __name__ == '__main__': env_tag = lccpu12_tag with open('../../../config.json') as ifs: my_config_dict = json.load(ifs)[env_tag] gt_data_set_l...
41.585366
111
0.655132
7e77b6a6523c864f01803a04aa0c63f73d6a3990
3,460
py
Python
test/test_npu/test_network_ops/test_selu.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_selu.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_selu.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...
38.876404
74
0.689884
0e29b4840686810bacea249468e76213017ee90c
423
py
Python
Online-Judges/DimikOJ/Python/12-factorial100.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/12-factorial100.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/12-factorial100.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for i in range(int(input())): n = int(input()) factorianl = n j = n - 1 if n == 0: factorianl = 1 else: while 0 < j: factorianl = factorianl * j j -= 1 factorianl = str(factorianl) k = len(factorianl) count = 0 while k > 0: if factoria...
19.227273
39
0.432624
bc1c09215a64b1c391163a79a45952b52779685b
21,014
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/assign/Assignment.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/assign/Assignment.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/assign/Assignment.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) 2008-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...
46.697778
207
0.610069
cb45efde259d680003ef6adb878a2e101bbea66e
25
py
Python
components/py_engine/tests/tinytest.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
components/py_engine/tests/tinytest.py
ekmixon/AliOS-Things
00334295af8aa474d818724149726ca93da4645d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/py_engine/tests/tinytest.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
print('hello tiny test!')
25
25
0.72
2a183e975a0505cf88056c55e68fc725b85eff74
2,625
py
Python
app/alarmpi/mailcheck.py
Bouni/alarmpi
f569532499dcd78d7fa73deab46365623fef85c1
[ "MIT" ]
null
null
null
app/alarmpi/mailcheck.py
Bouni/alarmpi
f569532499dcd78d7fa73deab46365623fef85c1
[ "MIT" ]
null
null
null
app/alarmpi/mailcheck.py
Bouni/alarmpi
f569532499dcd78d7fa73deab46365623fef85c1
[ "MIT" ]
1
2020-02-10T15:43:24.000Z
2020-02-10T15:43:24.000Z
import email import logging import os import ssl import sys from imaplib import IMAP4_SSL LOGGER = logging.getLogger(__name__) class Mail: """ search and download from IMAP server """ def __init__(self, host, user, password, mailbox="INBOX"): self.host = host self.user = user self.pa...
31.25
81
0.569524
2d973b52edf3eb285ea3c20283444fd7bdbc62dc
957
py
Python
app/__init__.py
davidkoojohn/SPA-weapp
5b8770054434010c5da3cd950b5dadd26869343e
[ "MIT" ]
null
null
null
app/__init__.py
davidkoojohn/SPA-weapp
5b8770054434010c5da3cd950b5dadd26869343e
[ "MIT" ]
null
null
null
app/__init__.py
davidkoojohn/SPA-weapp
5b8770054434010c5da3cd950b5dadd26869343e
[ "MIT" ]
null
null
null
from flask import Flask from flask.ext.bootstrap import Bootstrap from flask.ext.moment import Moment from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.mail import Mail from config import config app = Flask(__name__) bootstrap = Bootstrap() moment = Moment() db = SQL...
24.538462
61
0.759666
e20d42ec6387db41e99816535b9b9bb8d54a1c92
2,313
py
Python
tests/test_post_S1.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
17
2021-01-18T07:27:01.000Z
2022-03-10T12:26:21.000Z
tests/test_post_S1.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
4
2021-04-29T11:20:44.000Z
2021-12-06T10:19:17.000Z
tests/test_post_S1.py
CsabaWirnhardt/cbm
1822addd72881057af34ac6a7c2a1f02ea511225
[ "BSD-3-Clause" ]
47
2021-01-21T08:25:22.000Z
2022-03-21T14:28:42.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # This file is part of CbM (https://github.com/ec-jrc/cbm). # Author : Guido Lemoine # Credits : GTCAP Team # Copyright : 2021 European Commission, Joint Research Centre # License : 3-Clause BSD import requests import rasterio import numpy as np # Should move t...
27.535714
91
0.648941
5789be4af60486f3dbece6515e0d31a0b7ecd3d3
4,346
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/system/tenant_init_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/system/tenant_init_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/system/tenant_init_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Callable, List, Optional from fastapi import APIRouter, Depends from starlette.responses import Response from watchmen_auth import PrincipalService from watchmen_data_kernel.meta import TenantService from watchmen_meta.admin import PipelineService, TopicService from watchmen_meta.common import ask_...
43.89899
115
0.827888
57d1022ab1b5bb6780b2efc6366a9b0607956019
3,719
py
Python
2-resources/__DATA-Structures/Code-Challenges/cc74doublyLinkedList/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc74doublyLinkedList/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/__DATA-Structures/Code-Challenges/cc74doublyLinkedList/solution.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# https://youtu.be/acl83_x8Wew # https://piazza.com/class/j63w1pdyopf7kj?cid=86 """Each ListNode holds a reference to its previous node as well as its next node in the List.""" class ListNode: def __init__(self, val, prev=None, next=None): self.prev = prev self.val = val self.next = next """Wrap the g...
30.991667
58
0.670341
a4ad75d9d8382e2cc4b058a99f364544d7d50c14
3,306
py
Python
Course_1/Week_02/ZhiyuanClosestPair.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
Course_1/Week_02/ZhiyuanClosestPair.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
1
2020-07-16T08:03:22.000Z
2020-07-16T08:09:34.000Z
Course_1/Week_02/ZhiyuanClosestPair.py
KnightZhang625/Stanford_Algorithm
7dacbbfa50e7b0e8380cf500df24af60cb9f42df
[ "Apache-2.0" ]
null
null
null
def MySort(UnsortedArray,index): n=len(UnsortedArray) if n==1: SortedArray=UnsortedArray else: midpoint=n//2 Array1=MySort(UnsortedArray[0:midpoint],index) Array2=MySort(UnsortedArray[midpoint:n],index) i=0; j=0; SortedArray=[] while...
32.732673
89
0.540532
3506f66f77034365ecd009c1429545285060d682
240
py
Python
main.py
uhadler/heise_preisvgl
8c82247ae73a34e0de3231a9369ecf2ef61d0cb9
[ "Apache-2.0" ]
null
null
null
main.py
uhadler/heise_preisvgl
8c82247ae73a34e0de3231a9369ecf2ef61d0cb9
[ "Apache-2.0" ]
null
null
null
main.py
uhadler/heise_preisvgl
8c82247ae73a34e0de3231a9369ecf2ef61d0cb9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Dec 15 20:23:01 2020 @author: Uwe """ from heise_preisvgl.crawler import Crawler c = Crawler("https://www.heise.de/preisvergleich/?cat=gra16_512&xf=9810_16+0020314+-+RTX+3070", 810) c.crawl()
18.461538
100
0.6875
dc752ec0a96028a95d0f69486a77fb3c75554bae
4,775
py
Python
x2paddle/optimizer/fusion/trace_fc_fuser.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
559
2019-01-14T06:01:55.000Z
2022-03-31T02:52:43.000Z
x2paddle/optimizer/fusion/trace_fc_fuser.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
353
2019-05-07T13:20:03.000Z
2022-03-31T05:30:12.000Z
x2paddle/optimizer/fusion/trace_fc_fuser.py
usertianqin/X2Paddle
b554a8094ca3e255ef4bd2e80337222a35625133
[ "Apache-2.0" ]
241
2018-12-25T02:13:51.000Z
2022-03-27T23:21:43.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 appl...
37.304688
101
0.592461
5259d4fbd444caf011cf1d07dcb972249be41c0c
862
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_0/set_portal_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v7_0/set_portal_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_0/set_portal_settings.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# 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 def execute(): frappe.reload_doctype('Role') for dt in ("assessment", "course", "fees"): # 'Schools' module changed to the 'Educatio...
29.724138
68
0.726218
5e46357bbc09dc5c728f90c42d6143dbfb3c956d
727
py
Python
test.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
1
2021-05-03T09:31:12.000Z
2021-05-03T09:31:12.000Z
test.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
test.py
ShisatOwO/ANNb
d48b328dcec0a0da7a5b131f722f11cc30195975
[ "MIT" ]
null
null
null
import sys import nnfs from nnfs.datasets import spiral_data from annb.n_manager import NManager from annb.layers import * from annb.actfunc import * from annb.optimizer import * nnfs.init() def main(*args, **kwargs) -> int: # Test traing data inp, ref = spiral_data(100, 3) # Setup d1_in = LayerI...
20.194444
52
0.668501
5e7671ef49783acc41ee19ee3b1bf870fe2d6cb4
293
py
Python
ComputerNetworks/echo.py
creyD/uni
83786e5f18701ce28324d33748ebbf49cc7a53f2
[ "MIT" ]
null
null
null
ComputerNetworks/echo.py
creyD/uni
83786e5f18701ce28324d33748ebbf49cc7a53f2
[ "MIT" ]
null
null
null
ComputerNetworks/echo.py
creyD/uni
83786e5f18701ce28324d33748ebbf49cc7a53f2
[ "MIT" ]
null
null
null
import socket HOST = "" PORT = 8080 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conns, addr = s.accept() print('Connected by' + str(addr)) while True: data = conns.recv(1024) if not data: break conns.send(data) conns.close()
14.65
53
0.648464
5e9efab63520cbdb51edf562ce8b6b169a6a61bd
15,738
py
Python
mod/units/get.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
1
2015-06-28T15:26:52.000Z
2015-06-28T15:26:52.000Z
mod/units/get.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
null
null
null
mod/units/get.py
HeraldStudio/wechat
b023b7460a6b4284ea782333e13f24d169ddaff4
[ "MIT" ]
6
2015-03-20T16:36:22.000Z
2021-08-28T07:58:18.000Z
# -*- coding: utf-8 -*- # @Date : 2014-07-01 21:26:10 # @Author : xindervella@gamil.com yml_bright@163.com from tornado.httpclient import HTTPRequest, HTTPClient, HTTPError from sqlalchemy.sql import or_ from ..models.course import Course from ..models.gpa import Overview as GPAO from ..models.srtp import Ov...
36.34642
119
0.5
0d58f50901879bdfae17b6445689f5c37df65a2e
1,834
py
Python
partner_ngos/config/meal.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/config/meal.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
partner_ngos/config/meal.py
AkramMutaher/partner_ngos
4a345fb6989ff5a21db7fca07aa4e5174dca8f59
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "label": _("Monitoring"), "items": [ { "type": "doctype", "name": "Monitoring Plan", "onboard": 1, }, { "type": "doctype", "name": "Monitoring Timeline", "description": _("Monitori...
18.525253
49
0.459651
0d79509d761eb9a81aca899cd340972d8e9d95ad
1,375
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/stack/test_stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/stack/test_stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2020-09-17T05:23:29.000Z
2020-09-17T05:23:29.000Z
7-assets/past-student-repos/LambdaSchool-master/m6/62a1/stack/test_stack.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
import unittest from stack import Stack class QueueTests(unittest.TestCase): def setUp(self): self.stack = Stack() def test_len_returns_0_for_empty_stack(self): self.assertEqual(len(self.stack), 0) def test_len_returns_correct_length_after_push(self): self.assertEqual(len(self.sta...
29.891304
57
0.630545
21f98395c3a4673b88a0cd6edd1f5b84a36cef5f
31
py
Python
src/nfz_module/config.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/config.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
src/nfz_module/config.py
hwroitzsch/BikersLifeSaver
469c738fdd6352c44a3f20689b17fa8ac04ad8a2
[ "MIT" ]
null
null
null
config_development_mode = True
15.5
30
0.870968