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
07ecf6e35de80815108408166a2377f418337a31
5,910
py
Python
bach_code/clean.py
glasperfan/thesis
aead2dfb8052afbff4d05203a0be5b0b7ef69462
[ "Apache-2.0" ]
5
2015-12-08T21:47:41.000Z
2020-10-28T12:39:08.000Z
bach_code/clean.py
glasperfan/thesis
aead2dfb8052afbff4d05203a0be5b0b7ef69462
[ "Apache-2.0" ]
null
null
null
bach_code/clean.py
glasperfan/thesis
aead2dfb8052afbff4d05203a0be5b0b7ef69462
[ "Apache-2.0" ]
1
2020-10-28T12:39:09.000Z
2020-10-28T12:39:09.000Z
######### # ## File: clean.py ## Author: Hugh Zabriskie (c) 2015 ## Description: Clean and quantize the Bach chorales. # # # Total 4-voice chorales cleaned: 326 # # TODO: write a script to go through all of the chorales and find any where key_sig.mode == None # ######### from helpers import * # Remove all slurs from...
28.550725
101
0.672589
71f39d8683d3da4dafb35b4e6b3f0e75fa654ab4
3,438
py
Python
brainfuck/txttobf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
brainfuck/txttobf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
brainfuck/txttobf.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
def gcd(a, b): if(b is 0): return a else: return gcd(b, a % b) def inverse_mod(n, m): inv1 = 1 inv2 = 0 while(m): tmp = inv1 inv1 = inv2 inv2 = tmp - inv2 * (n / m | 0) tmp = n n = m m = tmp % m return inv1 def shortest_str(arr)...
14.445378
95
0.463933
9c798113e25340f14976700747cbedc54734174a
905
py
Python
sketches/codingtrain_unicorn_rainbow_3/codingtrain.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/codingtrain_unicorn_rainbow_3/codingtrain.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/codingtrain_unicorn_rainbow_3/codingtrain.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class CodingTrain: def __init__(self, x): self.im = loadImage("train.png") self.d = 90 # Durchmesser self.pos = PVector(width + x, random(height - 100)) self.speed = 5 self.reset = False def update(self): self.pos.x -= self.speed if self.pos.x < -100...
30.166667
67
0.519337
92c6878a5acce05545d3ae9a9edae36c53fb889f
7,234
py
Python
lib/functions.py
bsolano/Alzheimer-Resnets
b7b4f0d240f932513ef3427924894358b87dd68f
[ "MIT" ]
3
2020-04-01T08:13:31.000Z
2020-10-30T01:01:41.000Z
lib/functions.py
bsolano/Alzheimer-Resnets
b7b4f0d240f932513ef3427924894358b87dd68f
[ "MIT" ]
null
null
null
lib/functions.py
bsolano/Alzheimer-Resnets
b7b4f0d240f932513ef3427924894358b87dd68f
[ "MIT" ]
1
2021-01-27T11:46:49.000Z
2021-01-27T11:46:49.000Z
from sklearn.metrics import classification_report from sklearn.metrics import accuracy_score from sklearn.metrics import precision_score from sklearn.metrics import recall_score from sklearn.metrics import confusion_matrix from sklearn.metrics import auc from sklearn.metrics import roc_curve from sklearn.metrics import...
33.646512
141
0.626071
b9c949da6299905afaf218c146efd7eee7578a68
2,173
py
Python
source-code/Pseudocode/Calculate-Legendre/calculate_legendre.py
RalfGuder/LaTeX-examples
a1bf9fe422969be1ca4674394ebd2170c07f7693
[ "MIT" ]
1,231
2015-01-07T04:04:25.000Z
2022-03-31T17:43:29.000Z
source-code/Pseudocode/Calculate-Legendre/calculate_legendre.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
5
2015-05-10T13:10:47.000Z
2021-05-02T21:28:49.000Z
source-code/Pseudocode/Calculate-Legendre/calculate_legendre.py
DoubleL61/LaTeX-examples
cd0d97f85fadb59b7c6e9062b37a8bf7d725ba0c
[ "MIT" ]
400
2015-01-05T06:22:18.000Z
2022-03-19T04:07:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- def is_prime(a): """ Check if `a` is a prime number. Parameters ---------- a : int, a >= 2 """ return all(a % i for i in xrange(2, a)) # http://stackoverflow.com/a/14793082/562769 def factorize(n): factors = [] p = 2 while True:...
22.873684
79
0.52324
163e4cbbe95a5c4280f76e3560f81971a8a8ed4f
344
py
Python
ZbjDjChannels/chatroom/views.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/chatroom/views.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/chatroom/views.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
import json from django.shortcuts import render # Create your views here. from django.utils.safestring import mark_safe def index(request): return render(request, 'chatroom/index.html', {}) def room(request, room_name): return render(request, 'chatroom/room.html', { 'room_name_json': mark_safe(json....
24.571429
58
0.726744
1653d7ea5484067db7a7cbeef7d0efd413abe9bb
1,769
py
Python
v602/python/emission.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
2
2019-12-10T10:25:11.000Z
2021-01-26T13:59:40.000Z
v602/python/emission.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
null
null
null
v602/python/emission.py
chrbeckm/anfaenger-praktikum
51764ff23901de1bc3d16dc935acfdc66bb2b2b7
[ "MIT" ]
1
2020-12-06T21:24:58.000Z
2020-12-06T21:24:58.000Z
import numpy as np import matplotlib.pyplot as plt import scipy.constants as const from scipy.stats import sem h = const.Planck c = const.speed_of_light q = const.elementary_charge d = 201.4*10**(-12) #m u = 35*10**3 #eV thetamin = 5*np.pi/180 lmint = (h*c)/(q*u) print('Theorie lmin', lmint) lmin = 2*d*np.sin(thetami...
18.819149
65
0.623516
4c319119bfb8f09541ae5c59d13e766d509f1af3
1,824
py
Python
Caesar_Cipher/c_cipher.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Caesar_Cipher/c_cipher.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Caesar_Cipher/c_cipher.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #-*- coding:utf-8 -*- import string import collections import sys def caesar_encrypt_decrypt(rotate_string,rotate_number): upper = collections.deque(string.ascii_uppercase) lower = collections.deque(string.ascii_lowercase) upper.rotate(rotate_number) lower.rotate(rotate_number) ...
32
145
0.572368
4c40a38756ee564d3740da20cad65e11b41b8c94
7,254
py
Python
huTools/calendar/formats.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/calendar/formats.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
huTools/calendar/formats.py
gadventures/huTools
8bc58d63491bcd3cfc3e78d219be703d943ffeb5
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """ formats.py - formating and parsing of timestamps. Created by Maximillian Dornseif on 2007-06-24. Copyright (c) 2007, 2010 HUDORA GmbH. All rights reserved. """ from __future__ import unicode_literals from past.builtins import basestring import unittest import datetime impor...
38.585106
107
0.598153
5d8b8934cd339139c8e4874d45b1f5848ff86deb
2,941
py
Python
src/visuanalytics/analytics/thumbnail/thumbnail.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/analytics/thumbnail/thumbnail.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/analytics/thumbnail/thumbnail.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
""" Modul, welches Thumbnails erzeugt. """ import numbers import os import shutil from PIL import Image from visuanalytics.analytics.control.procedures.step_data import StepData from visuanalytics.analytics.processing.image.visualization import IMAGE_TYPES from visuanalytics.analytics.util.step_errors import raise_s...
35.865854
113
0.732744
5d5946471e2f61dc238f80f73d15bb52a31eed67
395
py
Python
Chapter3_DeepLearning/mnistDnn.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
null
null
null
Chapter3_DeepLearning/mnistDnn.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
null
null
null
Chapter3_DeepLearning/mnistDnn.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
null
null
null
from tensorflow.keras.layers import Activation from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential from tensorflow.keras.optimizers import Adamax from mnistData1 import MNIST mnist_data = MNIST() x_train, y_train = mnist_data.get_train_set() x_test, y_test = mnist_data.get_test_se...
30.384615
69
0.805063
07456147664201ad4d8406edd2dd7aa702068c23
1,997
py
Python
research/cv/ghostnet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ghostnet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ghostnet/export.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
44.377778
104
0.696044
919451da453cb49a9c9e68da275f88947f126e04
3,074
py
Python
docs/tutorial-integration/YodaSpeak/Integrations/YodaSpeak/YodaSpeak_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
docs/tutorial-integration/YodaSpeak/Integrations/YodaSpeak/YodaSpeak_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
docs/tutorial-integration/YodaSpeak/Integrations/YodaSpeak/YodaSpeak_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import io import json import pytest from CommonServerPython import (CommandResults, DemistoException, tableToMarkdown, urljoin) from YodaSpeak import TRANSLATE_OUTPUT_PREFIX def util_load_json(path: str): with io.open(path, mode='r', encoding='utf-8') as f: return json.lo...
35.333333
105
0.662004
91beb89ccc67a4754ce37156a3682bfd13c57c28
390
py
Python
Crashkurs TensorFlow/06_Reshape.py
slogslog/Kurzgeschichten-in-CSharp
3918c4174220e558cdeeada0edac941811418b93
[ "Unlicense" ]
2
2019-03-15T20:48:34.000Z
2019-04-22T15:24:09.000Z
Crashkurs TensorFlow/06_Reshape.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
Crashkurs TensorFlow/06_Reshape.py
slogslog/Coding-Kurzgeschichten
9b08237038147c6c348d4cf4c69567178e07dd1d
[ "Unlicense" ]
null
null
null
# Unterdrückt die AVX2 Warnung import os os.environ['TF_CPP_MIN_LOG_LEVEL']='2' import tensorflow as tf # Liste r = tf.range(1,28) print(r) print(r.numpy()) # 2d-Array (Tensor mit Rang 2) r2 = tf.reshape(r, [3, -1]) print(r2) print(r2.numpy()) # 3d-Array (Tensor mit Rang 3) r3 = tf.reshape(r, [3, 3, -1]) print(r3) ...
16.25
38
0.648718
91dc97183370fbd4966f71a5528ef229c07d0adb
92
py
Python
2014/05/commoncore-states/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2014/05/commoncore-states/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2014/05/commoncore-states/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python COPY_GOOGLE_DOC_KEY = '1M3pZ2kI8yDtLw8aYNv9vXHOg1zZariiq-_RMMtB1Rug'
23
68
0.836957
534168c79f98ee8dcc4ffc3c848871722868d01a
296
py
Python
pandemie/util/encoding.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/util/encoding.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
null
null
null
pandemie/util/encoding.py
marvinsxtr/informaticup-2020-pandemie
0d37d5236eadfe7bb3cbd7cbfd0e1b7afca74c89
[ "MIT" ]
1
2020-03-28T00:02:41.000Z
2020-03-28T00:02:41.000Z
import string def filter_unicode(data): """ Function to remove all non-printable characters from a string :param data: str: String to be analysed :return: String with all non-printable characters removed """ return "".join(c for c in str(data) if c in string.printable)
26.909091
65
0.699324
726626e2f02f1264337afc0c6a2aad448b58c024
7,348
py
Python
oneflow/python/benchmarks/cnn_benchmark/alexnet.py
wanghongsheng01/framework_enflame
debf613e05e3f5ea8084c3e79b60d0dd9e349526
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/benchmarks/cnn_benchmark/alexnet.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-06-16T08:37:50.000Z
2021-06-16T08:37:50.000Z
oneflow/python/benchmarks/cnn_benchmark/alexnet.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
29.15873
86
0.63092
72a3f63f60861f30e63a40b6b3f8063618ddb6fd
25,524
py
Python
hotspot/code/package/utils.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
13
2019-03-13T06:07:18.000Z
2022-02-22T03:34:35.000Z
hotspot/code/package/utils.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
null
null
null
hotspot/code/package/utils.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
4
2019-03-13T06:07:32.000Z
2019-06-11T11:35:52.000Z
# coding: utf-8 import itertools import pickle import numpy as np import os from sklearn.externals import joblib ''' 笛卡尔积 ''' class cartesian(object): def __init__(self): self._data_list = [] self._res_list = [] def add_data(self, data=[]): # 添加生成笛卡尔积的数据列表 self._data_list.append(data)...
36.462857
130
0.54964
beb3640f3ff9eed9f9478885e6ce695a31bcb8b6
1,702
py
Python
hist_db/config.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
1
2021-12-14T22:52:46.000Z
2021-12-14T22:52:46.000Z
hist_db/config.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
hist_db/config.py
apragacz/hist-db
a2631a7eab004499dae98a0495bc17ee78c6be8a
[ "MIT" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals import os from collections import OrderedDict import six from six.moves.configparser import ConfigParser, NoSectionError CONFIG_DEFAULTS = { 'logging': { 'file': '~/.hist-db.log', 'append': True, 'level': 'error', ...
32.113208
78
0.69389
22c04b0d65bccdb81c0a0c2c14b3069c3ed6fbb0
7,198
py
Python
Tic-Tac-Toe.py
BenzyBM/Tic-Tac-Toe_by_Benzy
00bd8ff583b11b20e10786566f89cdf6bc61190d
[ "MIT" ]
null
null
null
Tic-Tac-Toe.py
BenzyBM/Tic-Tac-Toe_by_Benzy
00bd8ff583b11b20e10786566f89cdf6bc61190d
[ "MIT" ]
null
null
null
Tic-Tac-Toe.py
BenzyBM/Tic-Tac-Toe_by_Benzy
00bd8ff583b11b20e10786566f89cdf6bc61190d
[ "MIT" ]
null
null
null
import random as rand # globale Variablen print("Bitte geben Sie die Göße des Spielfelds ein: ") groesse_spielfeld = int(input()) # COINFLIP FÜR RUNDENSTART def Ermittlung_Rundenstart(): spieler_coin = input("Kopf oder Zahl? : ") # Kopf hat den Wert 0 und Zahl hat den Wert 1. Wenn der Spieler # Kopf oder...
32.86758
99
0.532092
43aaf2c40fb47335efc0eaea8bd9ad48433cd997
1,612
py
Python
tests/login/test_microsoft_login.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
tests/login/test_microsoft_login.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
tests/login/test_microsoft_login.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
""" Tests for fence.resources.openid.microsoft_oauth2.MicrosoftOauth2Client """ from unittest.mock import patch def test_get_auth_url(microsoft_oauth2_client): """ Test call to Get authorization uri from discovery doc """ url = microsoft_oauth2_client.get_auth_url() assert url # nosec def test...
31
85
0.709057
43de91aded3d53591feb2dcc2f5e43fcaed94031
605
py
Python
tokenizer/python/python_tokenizer.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
5
2019-03-04T12:59:53.000Z
2022-03-25T03:07:00.000Z
tokenizer/python/python_tokenizer.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
12
2018-06-05T16:35:31.000Z
2022-02-14T21:43:40.000Z
tokenizer/python/python_tokenizer.py
Submitty/Lichen
a45457ed5e46ef12216bdf6c7051209bc00c4dff
[ "BSD-3-Clause" ]
2
2018-06-05T18:00:09.000Z
2019-03-04T12:59:57.000Z
from parso.python.tokenize import tokenize import json import sys file = open(sys.argv[1], 'r') file_content = file.read() tokens = [] for token in tokenize(file_content, version_info=(3, 6)): if (str(token.string) != ""): tmp = dict() tmp["line"] = (token.start_pos)[0] tmp["char"] = ((to...
27.5
57
0.571901
7198f4d8d5e56b0cc3b75161e401a03c98b2e3cb
19,976
py
Python
official/cv/deeptext/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/deeptext/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/deeptext/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 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.122137
119
0.604325
71c3a1a509e17c3ceac9f86e59a0bbb5e227da66
842
py
Python
tests/test_identity_type.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
82
2017-02-25T00:41:37.000Z
2022-02-21T04:30:23.000Z
tests/test_identity_type.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
562
2017-01-20T20:50:31.000Z
2022-03-29T21:07:59.000Z
tests/test_identity_type.py
sabanawaf/user-sync.py
51a7f9165d1740120b172edf507f1b3b3d5e57f8
[ "MIT" ]
81
2017-02-06T13:16:38.000Z
2022-03-15T16:46:20.000Z
import pytest from user_sync.error import AssertionException from user_sync.identity_type import parse_identity_type def test_parse_valid(): assert parse_identity_type('federatedID') == 'federatedID' assert parse_identity_type('adobeID') == 'adobeID' assert parse_identity_type('enterpriseID') == 'enterpri...
38.272727
87
0.752969
e0d5cf988b7b8124b0f88cafe004fc2c0720d943
584
py
Python
IS201/eratoshenes.py
czx99/my_IScourse
24a63c6a1874a89df1e48fe558df37e2fa777083
[ "MIT" ]
2
2020-10-29T16:25:37.000Z
2020-11-22T11:19:19.000Z
IS201/eratoshenes.py
Snowfall99/my_IScourse
24a63c6a1874a89df1e48fe558df37e2fa777083
[ "MIT" ]
null
null
null
IS201/eratoshenes.py
Snowfall99/my_IScourse
24a63c6a1874a89df1e48fe558df37e2fa777083
[ "MIT" ]
1
2020-09-17T14:36:23.000Z
2020-09-17T14:36:23.000Z
import numpy as np def eratoshenes(N): array = [] p = int(np.sqrt(N)) result = [] for i in range(2,N): result.append(i) for i in range(2,p+1): flag = True for j in range(2, i): if i % j == 0: flag = False if flag: array.appen...
18.25
34
0.441781
1c12d78e4cc2bca30d54a8c41bc19dae8b8de50e
639
py
Python
raspberry-code/kaffee.py
maschnetwork/raspberry-alexa-iot
e75d1f1363010beacc105536cf6866e4f9fe9f7f
[ "MIT" ]
null
null
null
raspberry-code/kaffee.py
maschnetwork/raspberry-alexa-iot
e75d1f1363010beacc105536cf6866e4f9fe9f7f
[ "MIT" ]
null
null
null
raspberry-code/kaffee.py
maschnetwork/raspberry-alexa-iot
e75d1f1363010beacc105536cf6866e4f9fe9f7f
[ "MIT" ]
null
null
null
from gpiozero import LED from cloud import Cloud from time import sleep def make_coffee(): i = 0 while(i < 200): s.on() sleep(0.0019) s.off() sleep(0.0015) i += 1 sleep(1) while(i > 0): s.on() sleep(0.0023) s.off() sleep(0.0015) ...
17.75
42
0.525822
c7339f9c9e952d74e0528d03cc48c2003d595bfd
11,136
py
Python
chord_rec/datasets/krn2vec.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/datasets/krn2vec.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
chord_rec/datasets/krn2vec.py
TianxueHu/ChordSymbolRec
d64a5be4f4914e6f682cb6d4079d7ba8a6fc2eac
[ "Unlicense", "MIT" ]
null
null
null
import os import pandas as pd import numpy as np from chord_rec.utils import to_21d_vec, get_beat_vector, specialChords, specialChordsABC import re from chord_rec.harmalysis.inputRN2Chord import inputRN import pickle import psutil import h5py #import sys #sys.path.insert(0, './harmalysis') #from inputRN2Chord import in...
40.791209
153
0.541936
297e8c406e93fe9115a139a672478c622d285489
249
py
Python
S4CTF/2021/crypto/Baby-Xor/baby_xor.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
S4CTF/2021/crypto/Baby-Xor/baby_xor.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
S4CTF/2021/crypto/Baby-Xor/baby_xor.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from flag import flag def xor(u, v): return ''.join(chr(ord(cu) ^ ord(cv)) for cu, cv in zip(u, v)) u = flag v = flag[1:] + flag[0] enc = open('flag.enc', 'w') enc.write(xor(u, v)) enc.close()
16.6
63
0.566265
d3ea99aef59df6ec6a71fcf54891d7fb389883a5
4,535
py
Python
src/onegov/activity/collections/invoice.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/collections/invoice.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/activity/collections/invoice.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from decimal import Decimal from onegov.activity.models import Invoice, InvoiceItem from onegov.activity.models.invoice import sync_invoice_items from onegov.activity.models.invoice_reference import KNOWN_SCHEMAS from onegov.core.collection import GenericCollection from sqlal...
31.93662
78
0.641235
315cdbbea44c4956115c49ff018010f51d4bb30b
792
py
Python
Sorting/algos/quick.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
Sorting/algos/quick.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
null
null
null
Sorting/algos/quick.py
CandleStein/VAlg
43aecdd351954d316f132793cf069b70bf2e5cc2
[ "MIT" ]
1
2020-09-25T18:31:34.000Z
2020-09-25T18:31:34.000Z
import numpy as np import matplotlib.pyplot as plt def partition(arr, start, end): i = start - 1 pivot = arr[end] for j in range(start, end): if arr[j] <= pivot: i += 1 arr[i], arr[j] = arr[j], arr[i] arr[i + 1], arr[end] = arr[end], arr[i + 1] return i + 1 def ...
19.8
47
0.539141
732b7a19e55c3a7ccb7e0ecbd65ba6c2df1c3fef
3,126
py
Python
7-assets/past-student-repos/LambdaSchool-master/m6/61c1/src/cityreader/test_cityreader.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m6/61c1/src/cityreader/test_cityreader.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Sprint-Challenge--Intro-Python/src/cityreader/test_cityreader.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import unittest from cityreader import City, cityreader def check_city(inp, exp): if inp.name != exp.name: return False if inp.lat != exp.lat: return False if inp.lon != exp.lon: return False return True class CityreaderTests(unittest.TestCase): def setUp(self): self.cities = c...
36.776471
67
0.589571
734f3a7c44dd33cab18bd7fcc06d96f4401211f6
33,143
py
Python
Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
1
2021-11-02T05:36:38.000Z
2021-11-02T05:36:38.000Z
Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/Cylance_Protect/Integrations/Cylance_Protect_v2/Cylance_Protect_v2_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import json import demistomock as demisto from CommonServerPython import Common from Cylance_Protect_v2 import create_dbot_score_entry, translate_score, FILE_THRESHOLD, \ get_device, get_device_by_hostname, update_device, get_device_threats, get_policies, create_zone, get_zones, \ get_zone, update_zone, get_th...
41.480601
130
0.587183
c34213d4712f8dfa0c2ca06f2b1e3cdbe61c14f1
8,444
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ingate/test_ig_config.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ingate/test_ig_config.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/ingate/test_ig_config.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018, Ingate Systems AB # # 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 opti...
34.892562
90
0.51433
4899e3e5dadaac17eff4e866de93db0c5c709bb5
1,324
py
Python
RedBook/ch2/download_image.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/download_image.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
RedBook/ch2/download_image.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import os from http.client import HTTPConnection from urllib.parse import urljoin, urlunparse from urllib.request import urlretrieve from html.parser import HTMLParser class ImageParser(HTMLParser): def handle_starttag(self, tag, attrs): if tag != 'img': return if not hasattr(self, 'res...
25.960784
55
0.614804
7da447c2e9b0662db9191675ef628b06a934d98e
623
py
Python
Python/Exercícios_Python/026_ocorrências_dentro_de_um_texto.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/026_ocorrências_dentro_de_um_texto.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
Python/Exercícios_Python/026_ocorrências_dentro_de_um_texto.py
vdonoladev/aprendendo-programacao
83abbcd6701b2105903b28fd549738863418cfb8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """026 - Ocorrências dentro de um texto Automatically generated by Colaboratory. Original file is located at https://colab.research.google.com/drive/1qCo1QhSuGv420DSHqq5TLVUnonJO84LK """ frase = str(input('Digite uma frase: ')).strip().lower().replace(' ',"").replace('ã','a').replace('á',...
47.923077
140
0.680578
7de8ad701a8cd31a6c5415bac55a5d8f08e0568a
1,525
py
Python
kollektiv5gui/models/Dataset.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
3
2019-03-21T17:02:55.000Z
2019-04-04T18:16:10.000Z
kollektiv5gui/models/Dataset.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
11
2019-10-30T12:05:39.000Z
2022-03-11T23:43:54.000Z
kollektiv5gui/models/Dataset.py
MateRyze/InformatiCup-2019
eeca3ff7f8a102f4093697c6badee21ce25e2e87
[ "MIT" ]
1
2019-10-30T12:04:00.000Z
2019-10-30T12:04:00.000Z
import json import os from collections import namedtuple class Dataset(): DatasetClass = namedtuple('DatasetClass', [ 'id', 'name', 'thumbnailPath', 'known' ]) def __init__(self): self.__classes = [] def getClasses(self): return self.__classes def...
30.5
72
0.542295
8158fde567d1100c23d0cc5e9ec3e8f6e340fdf4
526
py
Python
Webpage/arbeitsstunden/utils.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
Webpage/arbeitsstunden/utils.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
46
2022-01-08T12:03:24.000Z
2022-03-30T08:51:05.000Z
Webpage/arbeitsstunden/utils.py
ASV-Aachen/Website
bbfc02d71dde67fdf89a4b819b795a73435da7cf
[ "Apache-2.0" ]
null
null
null
import datetime from django.shortcuts import redirect from arbeitsstunden.models import Saison SEASON_BEGIN_MONTH = 7 # Juli def get_aktuelle_saison(): now = datetime.datetime.now() year = now.year month = now.month season_year = year if month >= SEASON_BEGIN_MONTH else year - 1 saison = Saiso...
23.909091
75
0.749049
c4ac3abdd8a76ebe3596d56e6af9a72e202548a6
8,193
py
Python
official/cv/nasnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/nasnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/nasnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020-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 agre...
40.965
103
0.633712
f20611720c9b83566abcd90b290faaf19403e772
169,445
py
Python
Jadwal-Sholat-main/jadwal-sholat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Jadwal-Sholat-main/jadwal-sholat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Jadwal-Sholat-main/jadwal-sholat.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# coding=utf-8 # Obfuscate BY Aldi Bachtiar Rifa Aldi=['00000000000000000000000000000000000', '000000000000000000000000000000000', '00000000000000000000000000000000000000000000000', '000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000', '000000000000000...
24,206.428571
169,340
0.956954
6ff513697fbb9c6bf0054be3aa4e96348252dcea
138
py
Python
src/onegov/quill/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/quill/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/quill/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.quill.fields import QuillField from onegov.quill.integration import QuillApp __all__ = [ 'QuillApp', 'QuillField' ]
15.333333
45
0.73913
82fcf6824963ae9e885394aabf590fdc552a2a27
486
py
Python
verto/errors/PanelMissingTitleError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
4
2017-04-10T06:09:54.000Z
2019-05-04T02:07:40.000Z
verto/errors/PanelMissingTitleError.py
uccser/verto
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
268
2017-04-03T20:40:46.000Z
2022-02-04T20:10:08.000Z
verto/errors/PanelMissingTitleError.py
uccser/kordac
d36aa88b208f1700fafc033679bd1e9775496d25
[ "MIT" ]
1
2019-01-07T15:46:31.000Z
2019-01-07T15:46:31.000Z
from verto.errors.Error import Error class PanelMissingTitleError(Error): '''Exception raised when a panel is missing a title. Attributes: tag: tag which was not matched block: block where tag was not matched argument: the argument that was not found ''' def __init__(self, ta...
27
56
0.654321
d22b3575d6952511b6653a86c94813499586ce8c
1,921
py
Python
4_DeepLearning-Advanced/Verbesserung der Netzwerke/TaxiFahrten/Taxi_DNN.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
4_DeepLearning-Advanced/Verbesserung der Netzwerke/TaxiFahrten/Taxi_DNN.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
4_DeepLearning-Advanced/Verbesserung der Netzwerke/TaxiFahrten/Taxi_DNN.py
felixdittrich92/DeepLearning-tensorflow-keras
2880d8ed28ba87f28851affa92b6fa99d2e47be9
[ "Apache-2.0" ]
null
null
null
import os import seaborn as sns import numpy as np import matplotlib.pyplot as plt import tensorflow as tf from tensorflow.keras.datasets import boston_housing from tensorflow.keras.layers import * from tensorflow.keras.activations import * from tensorflow.keras.models import * from tensorflow.keras.optimizers impor...
29.553846
91
0.760021
d272c3503f1d7ffa46b3ba910955f08358282a70
427
py
Python
exercises/fr/exc_03_09_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_03_09_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/fr/exc_03_09_01.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy from spacy.tokens import Token nlp = spacy.blank("fr") # Déclare l'extension d'attribut de Token "is_country" # avec la valeur par défaut False ____.____(____, ____=____) # Traite le texte et définis l'attribut is_country à True pour le token "Suisse" doc = nlp("J'habite en Suisse.") ____ = True # Affi...
26.6875
80
0.744731
962af0fc206b4ab256790c114cf8eeeffab23b86
1,252
py
Python
oneflow/python/framework/python_interpreter_util.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/framework/python_interpreter_util.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
oneflow/python/framework/python_interpreter_util.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
31.3
73
0.761981
73bc10c10f1f7512c5c592efef7ee4174edf423c
1,480
py
Python
source/pkgsrc/finance/electrum/patches/patch-electrum-ecc_fast.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/finance/electrum/patches/patch-electrum-ecc_fast.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/finance/electrum/patches/patch-electrum-ecc_fast.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-electrum-ecc_fast.py,v 1.1 2020/11/04 20:45:46 js Exp $ Don't assume libsecp256k1 is in site-packages/electrum. --- electrum/ecc_fast.py.orig 2000-11-11 11:11:11.000000000 +0000 +++ electrum/ecc_fast.py @@ -9,6 +9,7 @@ from ctypes import ( byref, c_byte, c_int, c_uint, c_char_p, c_size_t, c_void_p...
42.285714
100
0.645946
73c35230a171b668d2129a8cfd747253947d809a
337
py
Python
Licence 1/I11/TP3/tp3_3_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP3/tp3_3_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP3/tp3_3_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
n_text = input("entrez une chaine de caracteres : ") isPalindromic = n_text[0] == n_text[len(n_text) - 1] i, j = 0, len(n_text)- 1 while i < j and isPalindromic: if n_text[i] == " ": i += 1 elif n_text[j] == " ": j -= 1 else: isPalindromic = n_text[i] == n_text[j] i, j = i + 1, j - 1 prin...
24.071429
52
0.560831
fbcf274ef74c6cecfa4f64389ff041c711164a1a
3,042
py
Python
tensorforce/contrib/maze_explorer.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/contrib/maze_explorer.py
gian1312/suchen
df863140fd8df1ac2e195cbdfa4756f09f962270
[ "Apache-2.0" ]
null
null
null
tensorforce/contrib/maze_explorer.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...
36.214286
110
0.679487
541e2860e74dd53b84b7760ae79b5c6aa627e2a8
4,514
py
Python
chillow/view/graphical_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/view/graphical_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/view/graphical_view.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
import sys import time from chillow.model.action import Action from chillow.model.cell import Cell from chillow.model.game import Game from chillow.view.view import View class GraphicalView(View): """Provides a graphical UI using PyGame.""" RECT_SIZE = 10 CLOCK_TICK = 60 def __init__(self, pygame):...
42.186916
112
0.512406
58936f086c1dbf2d659e997e3f82cb47e9aed6dc
1,260
py
Python
notebooks/utils.py
ZiningZhu/InfoProbe
0bf241356c5bfcfc4760a195eecf7c80f75379aa
[ "MIT" ]
1
2021-02-06T01:52:00.000Z
2021-02-06T01:52:00.000Z
notebooks/utils.py
SPOClab-ca/InfoProbe
0bf241356c5bfcfc4760a195eecf7c80f75379aa
[ "MIT" ]
null
null
null
notebooks/utils.py
SPOClab-ca/InfoProbe
0bf241356c5bfcfc4760a195eecf7c80f75379aa
[ "MIT" ]
null
null
null
from functools import wraps import os, time, sys import pandas as pd import numpy as np def timed_func(foo): def wrapper(*args, **kwargs): start_time = time.time() results = foo(*args, **kwargs) print ("{} done in {:.2f} seconds.".format(foo.__name__, time.time() - start_time)) ret...
28
91
0.597619
547f386d44701a0d552d334114644cd05cb3f3a6
968
py
Python
save-post-master/save-post.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
save-post-master/save-post.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
save-post-master/save-post.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
import argparse import re import sys import requests def fetchDP(username): url = "https://www.instagram.com/{}/?__a=1".format(username) r = requests.get(url) if r.ok: data = r.json() return data['graphql']['user']['profile_pic_url_hd'] else: print("\033[1;31m✘ Cannot find ...
21.043478
99
0.610537
4d4d4d6a63058fea171f52ad08311606bb981a2b
3,026
py
Python
Simplification/Grid_Creation.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Simplification/Grid_Creation.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
Simplification/Grid_Creation.py
Klark007/Selbstfahrendes-Auto-im-Modell
d7fe81392de2b29b7dbc7c9d929fa0031b89900b
[ "MIT" ]
null
null
null
""" converts the data gathered by the image recognition to a 2d numpy array representing the image. The array contains integers: 0: free space 1: block 2: car """ import numpy as np import U_Generate_Image as generate_image class GridThresholding: def __init__(self, img_shape, car, rectangles,...
33.622222
104
0.596827
db00981f448bcb223e6d370019896f6cdee208b4
6,082
py
Python
Packs/Lokpath_Keylight/Integrations/Lockpath_KeyLight_v2/Lockpath_KeyLight_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Lokpath_Keylight/Integrations/Lockpath_KeyLight_v2/Lockpath_KeyLight_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Lokpath_Keylight/Integrations/Lockpath_KeyLight_v2/Lockpath_KeyLight_v2_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import pytest import demistomock as demisto import time def test_filter_creator(): from Lockpath_KeyLight_v2 import create_filter filt = create_filter('Starts With', 'Blue', '3881') check = { "FieldPath": [ 3881 ], "FilterType": "3", "Value": "Blue" } a...
39.23871
109
0.552779
97dfdd88af089923e6e8533a26658b5aef0af43d
4,138
py
Python
KnowledgeQuizTool/MillionHeroAssistant/main.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
KnowledgeQuizTool/MillionHeroAssistant/main.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
68
2020-09-05T04:22:49.000Z
2022-03-25T18:47:08.000Z
KnowledgeQuizTool/MillionHeroAssistant/main.py
JianmingXia/StudyTest
66d688ad41bbce619f44359ea126ff07a923f97b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- """ Xi Gua video Million Heroes """ import time from argparse import ArgumentParser import operator from functools import partial from terminaltables import SingleTable from config import api_version from config import app_id from config import app_key from config import app_secret from...
26.189873
93
0.607298
58b8e305c91bd6009d1804d17937ea188b9aed82
1,781
py
Python
content/labs/lab10/solutions/bo2.py
tteenathankachan/2021-CS109A
9349749539f439deff280ceb25621fc61a337253
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
content/labs/lab10/solutions/bo2.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
content/labs/lab10/solutions/bo2.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
from tqdm.notebook import trange #logarithmic values: exp_powers = list(range(-6,1)) exp_vals = list(np.exp(exp_powers)) #Find Optimal Learning Rate for Ada-Boosting staged_train_scores, staged_test_scores = {}, {} score_train, score_test = {}, {} for i in trange(len(exp_vals)): model = AdaBoostClassifier( ...
33.603774
88
0.697361
58e828199845f0d457098c90af787591f6fdd0b7
722
py
Python
Backend/ElastiCleaner/ElastiCleaner.py
BackInBash/ZeroToHero
36d5ba91e52c1167cac9c34e4e26789ebf20ca5d
[ "MIT" ]
null
null
null
Backend/ElastiCleaner/ElastiCleaner.py
BackInBash/ZeroToHero
36d5ba91e52c1167cac9c34e4e26789ebf20ca5d
[ "MIT" ]
null
null
null
Backend/ElastiCleaner/ElastiCleaner.py
BackInBash/ZeroToHero
36d5ba91e52c1167cac9c34e4e26789ebf20ca5d
[ "MIT" ]
null
null
null
#!/usr/bin/python import json, requests, subprocess ELASTICSEARCH="http://localhost:9200/_cat/indices?format=json&pretty&s=index:asc" def Cleanup(): # Request data from link as 'str' data = requests.get(ELASTICSEARCH).text # convert 'str' to Json data = json.loads(data) for i in data: if(i['index'].startswi...
25.785714
81
0.65374
e178e4a4f904ac97f65b1ca5c0fd9554c94379a4
6,095
py
Python
web/src/nodemgr.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
1
2016-05-31T06:52:53.000Z
2016-05-31T06:52:53.000Z
web/src/nodemgr.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
null
null
null
web/src/nodemgr.py
liukai0322/docklet
9e4d1f4fc2e523423b0e94406242a29b20643788
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import threading, random, time, xmlrpc.client, sys import network from log import logger import env ########################################## # NodeMgr # Description : manage the physical nodes # 1. list running nodes now # 2. update node list when new no...
42.922535
101
0.516325
8318faefa6371c2ed713927cccfd1fe6a18df13a
4,523
py
Python
test/test_npu/test_network_ops/test_smooth_l1_loss_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_smooth_l1_loss_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_smooth_l1_loss_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...
46.153061
92
0.624143
36c12b26393d08a02a84d0135f4dc7461bfd2984
1,903
py
Python
old_blog_posts.py
karrot-dev/yunity.org
a71d13e39979f21c3b90bd3c9ebc16a85ee98aa4
[ "MIT" ]
2
2017-05-10T13:23:16.000Z
2018-07-14T09:59:33.000Z
old_blog_posts.py
karrot-dev/yunity.org
a71d13e39979f21c3b90bd3c9ebc16a85ee98aa4
[ "MIT" ]
23
2017-04-27T10:29:19.000Z
2018-07-05T16:53:03.000Z
old_blog_posts.py
karrot-dev/yunity.org
a71d13e39979f21c3b90bd3c9ebc16a85ee98aa4
[ "MIT" ]
6
2017-08-07T14:40:29.000Z
2021-04-25T05:03:55.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ A quick & dirty script to convert the OctoberCMS blog posts from a CSV export Needs to download the images from the live page """ import os import requests import shutil from bs4 import BeautifulSoup import subprocess import re def create_post(row): # ID,Title,C...
26.068493
115
0.589595
7febf05cf15232b136db022da2d49259be91fb50
241
py
Python
exercises/es/solution_04_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/solution_04_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/solution_04_06.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy #Crea un modelo "es" en blanco nlp = spacy.blank("es") # Crea un nuevo entity recognizer y añádelo al pipeline ner = nlp.create_pipe("ner") nlp.add_pipe(ner) # Añade el label "ROPA" al entity recognizer ner.add_label("ROPA")
20.083333
55
0.73444
3d0c8d7c0e4611d02cdcaec688aa5dd40703e783
3,627
py
Python
etl/event-server/event-sqs-server.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
etl/event-server/event-sqs-server.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
etl/event-server/event-sqs-server.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import os import sys import json import asyncio import asyncpg import logging import traceback import aiobotocore import botocore.exceptions import etllib import event QUEUE_NAME = os.environ['queue_name'] log_consumer = os.environ['log_consumer'] == 'true' if 'log_consumer' in os.environ else False terminated = Fal...
26.093525
125
0.692308
43e9dcafa2b3459732b9e72dd9e87ef8473c83de
441
py
Python
PYTHON/Collections/collections_namedtuple.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Collections/collections_namedtuple.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Collections/collections_namedtuple.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys from collections import namedtuple if __name__ == '__main__': N = int(input()) category = input().split() for i, c in enumerate(category): if c == 'MARKS': idx_marks = i # print('->>>', idx_marks) infos = [] for _ in range(N): info ...
24.5
44
0.553288
a181ba705e36d4662aa3e35108361d87a22ab5e1
4,042
py
Python
bar.py
tainanpopo/ProgressBar-test
46100ea1ada5722425eb8a8ba4fb97362e8cb1b1
[ "MIT" ]
null
null
null
bar.py
tainanpopo/ProgressBar-test
46100ea1ada5722425eb8a8ba4fb97362e8cb1b1
[ "MIT" ]
null
null
null
bar.py
tainanpopo/ProgressBar-test
46100ea1ada5722425eb8a8ba4fb97362e8cb1b1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'bar.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow....
48.119048
75
0.689015
9ac733b3fd765f983b9f53217c8c64a6dbd4077d
6,393
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/color_master.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/color_master.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/color_master.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * from tkinter.messagebox import * import random from combinatorics import all_colours def inconsistent(p, guesses): """ the function checks, if a permutation p, i.e. a list of colours like p = ['pink', 'yellow', 'green', 'red'] is consistent with the previous colours. Each previous colour per...
33.647368
82
0.634913
9af76f9fafa3d71b726fa56f458f013540482e81
1,737
py
Python
SoSe-21/Uebung-4/A4-Taschenrechner-advanced.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
SoSe-21/Uebung-4/A4-Taschenrechner-advanced.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
SoSe-21/Uebung-4/A4-Taschenrechner-advanced.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
# Aufgabe 4 - Übung 4 # # Implementieren Sie einen einfachen Taschenrechner mit den Grundrechenoperationen (+- */). # Sollten Sie bei der Grundrechenoperation ein q eingeben, dann endet das Programm. # Bei allen anderen Grundrechenoperationen wird eine Fehlermeldung ausgegeben. # Erste Eingabe einer Zahl gueltige_ers...
40.395349
91
0.697755
b1931a1a1f7d977333b8468820e55ca9d438291a
1,068
py
Python
readpipe.py
stefankugler/print-qrk-json
955dfd5460137d70e385981439dd9dab4d3a0bd7
[ "MIT" ]
2
2018-03-02T14:56:53.000Z
2020-03-24T07:58:53.000Z
readpipe.py
stefankugler/print-qrk-json
955dfd5460137d70e385981439dd9dab4d3a0bd7
[ "MIT" ]
1
2017-06-30T10:13:17.000Z
2017-10-01T17:47:31.000Z
readpipe.py
stefankugler/print-qrk-json
955dfd5460137d70e385981439dd9dab4d3a0bd7
[ "MIT" ]
null
null
null
import os import time import re FIFO = '/opt/chromis.pipe' while True: print("Opening FIFO...") filename = time.strftime("%Y%m%d-%H%M%S") outfile = open('/opt/json/' + filename + '.txt','w') with open(FIFO) as fifo: print("FIFO opened") while True: data = fifo.read() ...
33.375
112
0.472846
b1ac91fa4ab28ae537d56da8bea47da9b00fa392
1,422
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/opennebula.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/plugins/doc_fragments/opennebula.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/plugins/doc_fragments/opennebula.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# -*- coding: utf-8 -*- # Copyright: (c) 2018, www.privaz.io Valletech AB # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # OpenNebula common documentation DOCUMENTATION = r''' options: api_url: description: ...
33.857143
104
0.623769
497e49b0aaa758ba875648872bdd95f6d998f745
115
py
Python
python/coursera_python/TORONTO/test/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/TORONTO/test/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/TORONTO/test/3.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def mystery(s): i = 0 result = '' while not s[i].isdigit(): result = result + s[i] i = i + 1 return result
14.375
26
0.565217
499db1882aa9e3a4940b663450addaf27b71eaae
565,105
py
Python
Decrypt-main/Contoh.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Decrypt-main/Contoh.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Decrypt-main/Contoh.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# ECRYPT BY Boy HamzaH # Subscribe Cok Chanel YouTube Gua Anjing # Dan Jangan Lupa Follow Github Gua exec(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 39, 109, 97, 114, 115, 104, 97, 108, 39, 41, 46, 108, 111, 97, 100, 115],chr))(eval((lambda ____,__,...
141,276.25
565,004
0.966861
02a7829ade0f8be96a44d53b06c94ff952f71805
546
py
Python
exercises/pt/test_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/pt/test_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/pt/test_02_05_02.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "from spacy.tokens import Doc" in __solution__ ), "Você fez a importação da classe Doc corretamente?" assert ( len(spaces) == 5 ), "Parece que o número de espaços não coincide com o número de palavras..." assert all(isinstance(s, bool) for s in spaces), "Os espaç...
45.5
91
0.642857
b87fdac9b7d0d126b9322cd60bdd4900975dfe71
6,044
py
Python
scripts/dim-reduction/nasalcoda-pca-lda.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/dim-reduction/nasalcoda-pca-lda.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
scripts/dim-reduction/nasalcoda-pca-lda.py
jenniferxkuo/ultramisc
65bff53c97715eb9a24acc62b77460f22e0dabc6
[ "MIT" ]
null
null
null
import os, sys, glob, re import argparse import numpy as np import pandas as pd from hashlib import sha1 from sklearn.decomposition import PCA from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA import matplotlib.pyplot as plt from imgphon.imgphon.ultrasound import reconstruct_frame ...
39.246753
97
0.678855
a75880bf6e855efe589b9d54ee5a271789755db7
320
py
Python
tests/utils/hub_utils_test.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
3
2020-09-30T02:32:08.000Z
2021-02-05T04:48:01.000Z
tests/utils/hub_utils_test.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2020-09-17T08:55:12.000Z
2020-09-17T08:55:12.000Z
tests/utils/hub_utils_test.py
groadabike/asteroid
276d98346ab791d904fbfe79b9b8e374392dd128
[ "MIT" ]
1
2021-02-05T04:48:05.000Z
2021-02-05T04:48:05.000Z
import os from asteroid.utils import hub_utils def test_download(): # We download path1 = hub_utils.cached_download("mpariente/ConvTasNet_WHAM!_sepclean") assert os.path.isfile(path1) # We use cache path2 = hub_utils.cached_download("mpariente/ConvTasNet_WHAM!_sepclean") assert path1 == path2
26.666667
76
0.746875
a78f079d45dea6fbd99035f4ed13705c858f414f
504
py
Python
exercises/en/test_02_14.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/en/test_02_14.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/en/test_02_14.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "from spacy.matcher import PhraseMatcher" in __solution__ ), "Did you import the PhraseMatcher correctly?" assert ( "PhraseMatcher(nlp.vocab)" in __solution__ ), "Did you initialize the PhraseMatcher correctly?" assert "matcher(doc)" in __solution__, "Did you cal...
45.818182
82
0.69246
ce32b1ec5d4435bf3cef04b8073e531a01543ffd
1,043
py
Python
tests/onegov/election_day/layouts/test_detail_layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/layouts/test_detail_layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/layouts/test_detail_layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from textwrap import dedent from onegov.ballot import ElectionCompound, Election, Vote from onegov.election_day.layouts.detail import DetailLayout from onegov.election_day.models import Principal from tests.onegov.election_day.common import DummyRequest def test_hidden_tabs_mixin(): principal = Principal.from_ya...
28.972222
59
0.596357
ce7e520eb64fa2d1750332afa13cf2e10829fc3d
5,862
py
Python
cloud/global/lambda/behavior-monitor/log_extractor.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
cloud/global/lambda/behavior-monitor/log_extractor.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
cloud/global/lambda/behavior-monitor/log_extractor.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import os import sys import base64 import datetime import logging import json import random import time import traceback import urllib.parse import zlib import sqlalchemy from sqlalchemy.sql import text logger = logging.getLogger() logger.setLevel(logging.INFO) # Configuration. extract_log_entry = os.environ['EXTRAC...
38.565789
151
0.650461
0c76151c527d54395635d00873ead12d6638d02e
690
py
Python
software/supervisor/threadtest.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/threadtest.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
null
null
null
software/supervisor/threadtest.py
ghsecuritylab/project-powerline
6c0ec13bbfc11c3790c506f644db4fe45021440a
[ "MIT" ]
1
2020-03-08T01:50:58.000Z
2020-03-08T01:50:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import threading import atexit import logging class powerline_prototype(threading.Thread): def __init__(self, dbScoped, semCtrl, semNext): super(powerline_prototype, self).__init__(name='prototype') self.log = logging.getLogger("MasterLog") s...
25.555556
67
0.628986
0c9c5d97bd5f19c32fa5561a277068a643729260
432
py
Python
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/ansible_inventory.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/ansible_inventory.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/AnsibleApiModule/TestsInput/ansible_inventory.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
ANSIBLE_INVENTORY_HOSTS_LIST = {'host': ['123.123.123.123', 'example-host1', 'host.example.com']} ANSIBLE_INVENTORY_HOSTS_CSV_LIST = {'host': "123.123.123.123, host.example.com"} ANSIBLE_INVENTORY_HOST_w_PORT = {'host': "123.123.123.123:45678"} ANSIBLE_INVENTORY_INT_PARAMS = {'port': 22, 'creds': {'credentials': { ...
72
115
0.699074
0ba0b29e81c9e38b9a48769201872d09f9386cf7
322
py
Python
3DNet/util/file_process.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
1,451
2019-07-17T07:45:51.000Z
2022-03-31T16:44:59.000Z
utils/file_process.py
cshwhale/MedicalNet
765fd404e313efa1ee285c6f149fabc46bc6a287
[ "MIT" ]
66
2019-07-19T17:43:59.000Z
2022-03-25T08:16:23.000Z
utils/file_process.py
cshwhale/MedicalNet
765fd404e313efa1ee285c6f149fabc46bc6a287
[ "MIT" ]
395
2019-07-17T08:05:33.000Z
2022-03-30T14:32:05.000Z
#!/usr/bin/env python # coding: utf-8 import os import os.path as osp def load_lines(file_path): """Read file into a list of lines. Input file_path: file path Output lines: an array of lines """ with open(file_path, 'r') as fio: lines = fio.read().splitlines() return line...
16.947368
39
0.618012
e7f49bdbc873bdb2efbf4f07d154c2bf17afa5ad
2,045
py
Python
model/topoml_util/LoggerCallback.py
Empythy/geometry-learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
21
2018-10-09T08:15:29.000Z
2022-03-16T08:23:08.000Z
model/topoml_util/LoggerCallback.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
31
2017-09-20T13:30:37.000Z
2018-03-01T13:24:58.000Z
model/topoml_util/LoggerCallback.py
reinvantveer/Topology-Learning
5300d421ef848c2748a2ba41ced5c6e2fba93200
[ "MIT" ]
7
2018-11-29T11:39:02.000Z
2022-01-12T07:10:26.000Z
import pprint from keras.callbacks import Callback import random from datetime import datetime import numpy as np pp = pprint.PrettyPrinter() class EpochLogger(Callback): def __init__(self, input_func=None, target_func=None, predict_func=None, aggregate_func=None, sample_size=3, stdout=False, in...
39.326923
112
0.646944
b2feb20c0a65b39595496ac92d4b5af375efad04
3,224
py
Python
haas_lib_bundles/python/docs/examples/fall_detection/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/fall_detection/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/fall_detection/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
import utime # 延时函数在utime from driver import I2C # 驱动库 import mpu6886 import network # Wi-Fi功能所在库 import ujson # json字串解析库 from aliyunIoT import Device # iot组件是连接阿里云物联网平台的组件 import fall_detection i2cObj = None mpu6886Dev = None # 物联网平台连接标志位 iot_connected = Fal...
24.610687
75
0.623139
6520075aeaf62f214222e13482d242f27d16dff0
6,523
py
Python
src/pfun/maybe.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/maybe.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/maybe.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from abc import ABC from functools import wraps from typing import (Any, Callable, Generic, Iterable, Optional, Sequence, TypeVar, Union, cast) from typing_extensions import Literal from .either import Either, Left from .functions import curry from .immutable import Immutable from .list import Lis...
23.379928
74
0.565077
686c3adff2e57742826d8ca954968f299b354635
493
py
Python
aoc2020/day_15/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_15/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_15/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * class Solution(SolutionABC): expected = 436 def solve(self) -> any: return self.spoken_at(2020) def spoken_at(self, t): i, i_map = 0, {} for val in self.resource_lines("input", int): i += 1 i_map[val] = i said = val de...
22.409091
57
0.496957
68b66b808f4f80c6462119fdcc70ad3273e3a7de
1,985
py
Python
hotspot/code/KPIPredict.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
13
2019-03-13T06:07:18.000Z
2022-02-22T03:34:35.000Z
hotspot/code/KPIPredict.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
null
null
null
hotspot/code/KPIPredict.py
FudanYuan/faultLocalization
5133ee5af48f7d4c8ba05ef9a545139a38f417da
[ "Apache-2.0" ]
4
2019-03-13T06:07:32.000Z
2019-06-11T11:35:52.000Z
# coding: utf-8 import pandas as pd import numpy as np import time import math from tqdm import tqdm import matplotlib.pyplot as plt from package.utils import KPIPoint from package.utils import KPISet # 可视化 def visualize(ts1, ts2): plt.figure(figsize=(80, 10)) # 真实值 plt.subplot(211) plt.xlabel('times...
28.357143
116
0.657935
50289135328557dfa0888d26618d070d01b9994d
425
py
Python
diversos/arquivos.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
1
2021-12-18T15:29:24.000Z
2021-12-18T15:29:24.000Z
diversos/arquivos.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
null
null
null
diversos/arquivos.py
lcarlin/guppe
a0ee7b85e8687e8fb8243fbb509119a94bc6460f
[ "Apache-2.0" ]
3
2021-08-23T22:45:20.000Z
2022-02-17T13:17:09.000Z
# -*- coding: utf-8 -*- Arquivo = open("C:\TEMP\python\Meu Filé2.txt") print(Arquivo) print ("-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=") linhas = Arquivo.readlines() # for linha_atual in linhas: #print (linha_atual) print ("-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=-=+=") textoCompleto = Arquivo.read() print (textoCo...
23.611111
50
0.541176
505fedac2adf138fff7c233682e2e966b6870012
1,304
py
Python
research/cv/StackedHourglass/src/models/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/StackedHourglass/src/models/loss.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/StackedHourglass/src/models/loss.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.047619
78
0.631902
acf69592d80507bba0d511163933e7f4a769c0b7
9,064
py
Python
official/cv/c3d/src/tools/dataset_preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/c3d/src/tools/dataset_preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/c3d/src/tools/dataset_preprocess.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...
40.464286
112
0.6015
8c84b6737c8b32460c54b691f9cf7d6ad5b5adee
2,969
py
Python
Python/pyBitwiseAutomation/PegaDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/PegaDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
null
null
null
Python/pyBitwiseAutomation/PegaDevice.py
jimwaschura/Automation
f655feeea74ff22ebe44d8b68374ba6983748f60
[ "BSL-1.0" ]
1
2020-08-16T00:11:55.000Z
2020-08-16T00:11:55.000Z
# PegaDevice.py # ================================================================================ # BOOST SOFTWARE LICENSE # # Copyright 2020 BitWise Laboratories Inc. # Original Author.......Jim Waschura # Contact...............info@bitwiselabs.com # # Permission is hereby granted, free of charge, to any person or or...
39.065789
82
0.645672
508df44ab634abecfda1e485aefedc4d913671b9
32,636
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/module_utils/gcp.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/ansible/module_utils/gcp.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/ansible/module_utils/gcp.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# This code is part of Ansible, but is an independent component. # This particular file snippet, and this file snippet only, is BSD licensed. # Modules you write using this snippet, which is embedded dynamically by Ansible # still belong to the author of the module, and may assign their own license # to the complete wo...
39.995098
115
0.606079
0fc2c71bca88666443d0c80d10ee68daa872b3a3
3,171
py
Python
Packs/ThinkstCanary/Integrations/ThinkstCanary/ThinkstCanary_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ThinkstCanary/Integrations/ThinkstCanary/ThinkstCanary_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ThinkstCanary/Integrations/ThinkstCanary/ThinkstCanary_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto MOCK_PARAMS = { 'access-key': 'fake_access_key', 'secret-key': 'fake_access_key', 'server': 'http://123-fake-api.com/', 'unsecure': True, 'proxy': True } def test_fetch_incidents(mocker, requests_mock): """ Given: An existing last run time. When: Running...
48.045455
120
0.648061
fa649cc0110eb33fe7dfdc79bde451b5136d5831
17,762
py
Python
Website/main.py
NeonCrafter13/easyvoc
605f3394565df8192615bc9ced27c0fa8d1ee51a
[ "MIT" ]
null
null
null
Website/main.py
NeonCrafter13/easyvoc
605f3394565df8192615bc9ced27c0fa8d1ee51a
[ "MIT" ]
null
null
null
Website/main.py
NeonCrafter13/easyvoc
605f3394565df8192615bc9ced27c0fa8d1ee51a
[ "MIT" ]
null
null
null
# Pre Installed Imports import os from flask import Flask, templating, request, escape, session, redirect, make_response from flask_wtf import FlaskForm from flask_wtf.recaptcha import RecaptchaField from wtforms import StringField, SubmitField, PasswordField from wtforms.validators import DataRequired, Email, Eq...
29.165846
109
0.575949
0f1cfc796f07be11fcc03d3c0a89abc240b694fb
443
py
Python
Curso-Em-Video-Python/1Materias/012_Condicoes_Aninhadas/#012 - Condições Aninhadas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/012_Condicoes_Aninhadas/#012 - Condições Aninhadas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/1Materias/012_Condicoes_Aninhadas/#012 - Condições Aninhadas.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
#if: #elif: pode usar quantos quiser #else: nome = str(input('Qual o seu nome: ')) if nome == 'Pedro': print('Que belo nome {}'.format(nome)) elif nome == 'Gustavo' or nome == 'Maria': print('Seu nome é bem popular no Brasil'.format(nome)) else: print('Que nome sem graça {}'.format(nome)) print('Tenha um bo...
26.058824
58
0.607223
0f8803e119fb8eb55277b67a3a92a07b8f522831
2,927
py
Python
bawwab/tos.py
leibniz-psychology/bawwab
2e7129bf59b33c0ee22a960e7b2835888068fd1a
[ "MIT" ]
2
2021-07-06T06:00:22.000Z
2022-01-15T09:29:44.000Z
bawwab/tos.py
leibniz-psychology/bawwab
2e7129bf59b33c0ee22a960e7b2835888068fd1a
[ "MIT" ]
11
2020-11-26T10:53:44.000Z
2022-03-31T09:42:51.000Z
bawwab/tos.py
leibniz-psychology/bawwab
2e7129bf59b33c0ee22a960e7b2835888068fd1a
[ "MIT" ]
1
2022-01-15T09:30:46.000Z
2022-01-15T09:30:46.000Z
# Copyright 2021 Leibniz Institute for Psychology # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge...
30.810526
98
0.743765
adb23e40254d75128927741ccb06d2d0b9aa5140
4,654
py
Python
CuteNewsRCE-master/RCE.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
CuteNewsRCE-master/RCE.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
CuteNewsRCE-master/RCE.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
#! /bin/env python3 import requests from base64 import b64decode import io import re import string import random import sys banner = """ _____ __ _ __ ___ ___ ___ / ___/_ __/ /____ / |/ /__ _ _____ |_ | < / |_ | / /__/ // / __/ -_) / -_...
40.824561
205
0.45939
2a96e5d041b0b76c42fa4a9c324fc2dd7a8c523b
278
py
Python
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target/2023-number-of-pairs-of-strings-with-concatenation-equal-to-target.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target/2023-number-of-pairs-of-strings-with-concatenation-equal-to-target.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
2023-number-of-pairs-of-strings-with-concatenation-equal-to-target/2023-number-of-pairs-of-strings-with-concatenation-equal-to-target.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def numOfPairs(self, nums: List[str], target: str) -> int: output=0 for i, num1 in enumerate(nums): for j, num2 in enumerate(nums): if i!=j and num1+num2==target: output+=1 return output
34.75
62
0.52518
aace679bca4621bcd900d9a04127ad4155fb5590
3,485
py
Python
2016/day07_internet_protocol_version_7/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day07_internet_protocol_version_7/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day07_internet_protocol_version_7/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
"""Tests.""" import pytest from part1 import TLSTester from part2 import SSLTester class TestPart1UnitTests: """.""" @pytest.mark.parametrize("test_input, expected", [ ("abba", True), ("abcd", False), ("aaaa", False), ("ioxxoj", True) ]) def test_contains_abba(self, t...
30.304348
80
0.54835
937d44305ea3bcb3d4c509aa4bbdcc6d28e9998d
6,582
py
Python
test/test_npu/test_conv_transpose2d_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_conv_transpose2d_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_conv_transpose2d_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...
48.397059
95
0.609085
fa87772084dadd2eb434b44c2433696247b59d34
5,126
py
Python
fbtor/test/test_set.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
fbtor/test/test_set.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
fbtor/test/test_set.py
Aimmig/FloatingBoolector
039ca8be5e9527613a26ce423c6e4817a0b3a2cd
[ "MIT" ]
null
null
null
from fbtor.BitVecConvert import BitVecConvStatic from fbtor.FBoolectorTypes import FPType, RMode, WIDTH from pyboolector import Boolector t = FPType.single d = FPType.double r = RMode.to_zero n = RMode.to_nearest set_fEq= [ ("-0","+0",Boolector.SAT,t,r), ("-1","+1",Boolector.UNSAT,t,r), ("5e17","5e17",Boolector.SAT,...
62.512195
267
0.473859
108a45b7cf576b6c8813f5ed4fb22704d197872b
1,512
py
Python
src/test/tests/simulation/var.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/simulation/var.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/simulation/var.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: var.py # # Tests: libsim - connecting to simulation and retrieving data from it. # # Programmer: Kathleen Biagas # Date: June 6, 2014 # # Modifications: # # ------------------------------...
25.2
78
0.596561
d82550d783c8ef9af5a5144f4332213888462ce9
655
py
Python
session4/03_widgets_c.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
2
2019-10-26T12:47:05.000Z
2020-07-07T16:36:19.000Z
session4/03_widgets_c.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
null
null
null
session4/03_widgets_c.py
NeumannSven/pyshb_programmierkurs
518da3766dff36e938b36c49d410edb52c0cb32c
[ "MIT" ]
4
2020-02-28T13:43:05.000Z
2020-12-02T10:39:46.000Z
import tkinter as tk # Hauptfenster erzeugen root = tk.Tk() root.geometry('500x500') # Texteingabefeld erzeugen v = tk.StringVar() e = tk.Entry(root, textvariable=v) e.grid(row=0, column=0) # Slider erzeugen sterne = tk.IntVar() s = tk.Scale(root, from_=1, to=5, variable=sterne, orient="horizontal") s.grid(row=1, co...
22.586207
78
0.731298
bfe44b608bbcdc3a4e7acfb9716387443b4d08ac
24,138
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/net/netdiff.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/net/netdiff.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/net/netdiff.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) 2011-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...
40.70489
118
0.590273
5e4fd479ead416f27069c62c1e174eef3e8ce4dc
3,112
py
Python
src/validator.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
2
2018-10-16T08:09:13.000Z
2019-02-18T13:33:11.000Z
src/validator.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
7
2019-02-28T18:10:44.000Z
2019-03-04T21:09:03.000Z
src/validator.py
Haus4/studienarbeit-stau
10921f8850df67c797cf174b42fbc5dcec257251
[ "MIT" ]
1
2020-04-05T08:53:13.000Z
2020-04-05T08:53:13.000Z
import os import cv2 import json import time import random import image_utils import email.utils as eut def loadCameras(): path = "data/" cameras = [f for f in os.listdir(path) if os.path.isdir(os.path.join(path, f))] return cameras def loadImage(camera, name, masks): path = "data/" + ca...
26.827586
193
0.585154