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
d26e68a58b0367baae7be4ea2424ff76571c7233
438
py
Python
miniconda/download_prerequisites.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
miniconda/download_prerequisites.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
miniconda/download_prerequisites.py
MahdiFarnaghi/gtm
adbec372786262607291f901a444a0ebe9e98b48
[ "Apache-2.0" ]
null
null
null
import nltk import fasttext.util languages = "en, pt" if languages != '': languages = str(languages).split(',') print('FASTTEXT LANGUAGE MODELS.') for lang in languages: print(f"\tDownloading {lang}") fasttext.util.download_model(str.strip(lang), if_exists='ignore') print('LOADING FASTTEXT LANGUAGE MO...
27.375
73
0.714612
96b0eb449ff0bd92c72b2ec25928d42d4aee0541
196
py
Python
Lecture5/lecture5.py
ishaanx/Labs
9080e052a1655af28f14fcf3e777bf2a994f6543
[ "MIT" ]
null
null
null
Lecture5/lecture5.py
ishaanx/Labs
9080e052a1655af28f14fcf3e777bf2a994f6543
[ "MIT" ]
null
null
null
Lecture5/lecture5.py
ishaanx/Labs
9080e052a1655af28f14fcf3e777bf2a994f6543
[ "MIT" ]
null
null
null
# Using all 14 functions import math integer = -20.11 print('Absolute value of {0} is: {1}'.format(integer, abs(integer))) print('Ceil value of {0} is: {1}'.format(integer, math.ceil(integer)))
24.5
70
0.688776
7392329feaf98e1d1cf0d12a5419870e92d9aecc
12,057
py
Python
src/regard_prediction/inference.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
14
2021-08-24T12:36:37.000Z
2022-03-18T12:14:36.000Z
src/regard_prediction/inference.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
null
null
null
src/regard_prediction/inference.py
krangelie/bias-in-german-nlg
9fbaf50fde7d41d64692ae90c41beae61bc78d44
[ "MIT" ]
1
2021-10-21T20:22:55.000Z
2021-10-21T20:22:55.000Z
import os from pprint import pprint import json import hydra.utils import pandas as pd import seaborn as sns import numpy as np import matplotlib.pyplot as plt import torch from torch.nn import functional as F from sklearn.metrics import classification_report from sentence_transformers import SentenceTransformer from...
34.252841
88
0.616654
73aaae3b60e590112a97522b3158a1c721f92831
13,615
py
Python
Practice-2019-05-11/scripts/baseline_logisticregression.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
3
2019-11-25T09:56:48.000Z
2021-01-18T13:18:17.000Z
Practice-2019-05-11/scripts/baseline_logisticregression.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
null
null
null
Practice-2019-05-11/scripts/baseline_logisticregression.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
2
2020-05-17T17:22:14.000Z
2020-09-23T08:31:46.000Z
# ============== SemEval-2015 Task 1 ============== # Paraphrase and Semantic Similarity in Twitter # =================================================== # # Author: Wei Xu (UPenn xwe@cis.upenn.edu) # # Implementation of a baseline system that uses logistic # regression model with simple n-gram features, which # i...
33.207317
120
0.603526
83f19bd5820a4beabf2ec2d5547cc2c6a3227a8c
5,288
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/security/crypto.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/security/crypto.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/security/crypto.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import hashlib import secrets import nacl.encoding import nacl.exceptions import nacl.signing """ Crypto to Secure the BACNet: ----------------------------- In general the hash of the previous event is just the hash of its metadata. This allows for the Events to be imported in a database without its content (ex whe...
31.105882
119
0.669062
f7fa3ea0d3d0549f395e122654ded5814882e7f6
4,658
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/packaging/language/test_gem.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/packaging/language/test_gem.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/packaging/language/test_gem.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Antoine Catton # MIT License (see licenses/MIT-license.txt or https://opensource.org/licenses/MIT) import copy import pytest from ansible_collections.community.general.plugins.modules.packaging.language import gem from ansible_collections.community.general.tests.unit.modules.utils import AnsibleE...
33.271429
140
0.647059
b773430612bf5d0f461420afca2abfc7e3d4d9b6
774
py
Python
Interview Preparation Kits/Interview Preparation Kit/Dynamic Programming/Max Array Sum/max_array_sum.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Dynamic Programming/Max Array Sum/max_array_sum.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Dynamic Programming/Max Array Sum/max_array_sum.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the maxSubsetSum function below. def maxSubsetSum(arr): n = len(arr) if n == 1: return arr[0] elif n == 2: return max(arr[0], arr[1]) else: max_sum1 = max(arr[0], arr[1]) max_sum2 = arr[0...
19.35
65
0.555556
4d61e64a3bae8fae68693acb229013ab9bcd213d
67
py
Python
python_lessons/MtMk_Test_Files/Install_modules.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/Install_modules.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
python_lessons/MtMk_Test_Files/Install_modules.py
1986MMartin/coding-sections-markus
e13be32e5d83e69250ecfb3c76a04ee48a320607
[ "Apache-2.0" ]
null
null
null
import pandas_datareader as pdr print(pdr.get_data_fred('GS10'))
22.333333
33
0.791045
4287599570a33ad90cc46d969e9170f28f22e080
1,641
py
Python
solutions/pic_search/webserver/src/preprocessor/vggnet.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-04-06T06:13:20.000Z
2021-04-06T06:13:20.000Z
solutions/pic_search/webserver/src/preprocessor/vggnet.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/pic_search/webserver/src/preprocessor/vggnet.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import numpy as np from keras.applications.vgg16 import VGG16 from keras.applications.vgg16 import preprocess_input as preprocess_input_vgg from keras.preprocessing import image from numpy import linalg as LA from common.const import input_shape class VGGNet: def __init__(self): self.input_shape = (224, 22...
40.02439
107
0.621572
35f478e63f62f2eb63e36f39dd141eff543b279c
177
py
Python
Shivani/marks.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/marks.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
Shivani/marks.py
63Shivani/Python-BootCamp
2ed0ef95af35d35c0602031670fecfc92d8cea0a
[ "MIT" ]
null
null
null
x = int(input("enter percentage\n")) if(x>=65): print("Excellent") elif(x>=55 and x<65): print("Good") elif(x>=40 and x<55): print("Fair") else: print("Failed")
17.7
36
0.581921
675e268f66545e94c7ba44b1bff8b2bc055b3946
5,660
py
Python
listings/chapter08/neural_network.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter08/neural_network.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter08/neural_network.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
import math import csv import numpy as np from random import shuffle # Sigmoidfunktion als Aktivierungsfunktion def sigmoid(x): try: return 1 / (1 + math.exp(-x)) except OverflowError: return 0 # Künstliches neuronales Netzwerk class NeuralNetwork: # Attribute: # - Anzahl Neuronen der...
36.993464
77
0.616784
6774699c5f28eee003c3e01f15f9fa923f3ece7e
511
py
Python
oldp/apps/courts/admin.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/courts/admin.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/courts/admin.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # admin.site.register(Court) admin.site.register(Country) admin.site.register(State) admin.site.register(City) @admin.register(Court) class CourtAdmin(admin.ModelAdmin): date_hierarchy = 'updated' list_display = ('name', 'slug', 'court_type', 'city', 'c...
24.333333
76
0.692759
67e354d20217acd242d0ad510fa3ae92f24da737
92
py
Python
2015/03/gdp-women-20140312/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/03/gdp-women-20140312/graphic_config.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/03/gdp-women-20140312/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 = '1HPBT1kHoP0NbDhRpNMXsQrgcrmcPqXg-gu66ImF6OBc'
23
68
0.836957
e1f0e4d7f8278a3c087ee558e40d978eb8d20136
15,233
py
Python
minicps/devices.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
minicps/devices.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
2
2020-06-24T13:01:22.000Z
2020-06-24T13:10:07.000Z
minicps/devices.py
EnjoyFitness92/Praxisseminar-SS2020
b5baba5d1512a5fad3391efc42f3ab232d79c4e2
[ "MIT" ]
null
null
null
""" ``devices`` module contains: - ``get`` and ``set`` physical process's API methods - ``send`` and ``receive`` network layer's API methods - the user input validation code Any device can be initialized with any couple of ``state`` and ``protocol`` dictionaries. List of supported protocols and identifie...
28.472897
90
0.556817
e1781c4f541ecc8b0baffdda94024aa328257b27
28,022
py
Python
FB-Cracker-master/fbcracker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
FB-Cracker-master/fbcracker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
FB-Cracker-master/fbcracker.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 os, sys, time, datetime, random, hashlib, re, threading, json, getpass, urllib from multiprocessing.pool import ThreadPool try: import requests except ImportError: os.system("pip2 install requests") from requests.exceptions import ConnectionError from mechanize import Browser try: import mechanize ...
37.362667
427
0.485119
360bb1885652138297084ec8d089c22a4b1a579d
781
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex02_edit_distance_timing_memo.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex02_edit_distance_timing_memo.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/ch07_recursion_advanced/solutions/ex02_edit_distance_timing_memo.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import time from ch07_recursion_advanced.solutions.ex02_edit_distance import edit_distance_optimized def main(): inputs_tuples = [["Micha", "Michael"], ["Ananas", "Banane"], ["sunday...
26.033333
88
0.612036
36e53bc6cba83a02182daac0ce0b7271b29a6f65
1,600
py
Python
dev/Main.py
betaros/traffic_sign
6f5ef4afb7093c929cc2e94c7f72daebbd149b7e
[ "MIT" ]
null
null
null
dev/Main.py
betaros/traffic_sign
6f5ef4afb7093c929cc2e94c7f72daebbd149b7e
[ "MIT" ]
null
null
null
dev/Main.py
betaros/traffic_sign
6f5ef4afb7093c929cc2e94c7f72daebbd149b7e
[ "MIT" ]
null
null
null
""" This project trains an AI to detect german traffic signs and sends the recognized signs to ros TODO: - interpolate ROI from CSV to new dimensions - integrate ROS platform Authors: Jan Fuesting Last edited: 10.09.2018 """ import os from Misc import Misc from Recognition import Recognition from Training ...
26.229508
94
0.6625
3d5730922653f73050d5a2f1034fef8c52da424a
36,010
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_help.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_help.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/ocscli/ocs_help.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # -*- codi...
37.549531
117
0.468148
a14126dee8fc2cc2efd0dbc94b59b341f938d3ef
6,268
py
Python
src/onegov/election_day/import_export/mappings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/import_export/mappings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/import_export/mappings.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" Following mappings should be used to map csv headers and database columns for import and export. Keys are the columns from the CSV Files, values are col names returned by database query. For complex queries, it is much better to write them in pure sql. Return the table as named tuples and work with that and this...
22.14841
73
0.650766
a1c7272e54f7d623c71ac1264cc2f213a4e257cf
1,367
py
Python
PYTHON/Regex_and_Parsing/validating_roman_numerals.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/validating_roman_numerals.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Regex_and_Parsing/validating_roman_numerals.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import re romanNumeralMap = (('M', 1000), ('CM', 900), ('D', 500), ('CD', 400), ('C', 100), ('XC', 90), ('L', 50), ('XL', 40), ('X', 10), ...
34.175
76
0.374543
3dd29ab89e3c8e03e7b24a187f4319d598092a16
11,209
py
Python
azext_keyvault/keyvault/custom/key_vault_authentication.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
2
2019-06-12T13:44:34.000Z
2020-06-01T13:24:04.000Z
azext_keyvault/keyvault/custom/key_vault_authentication.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
5
2018-04-26T01:14:29.000Z
2021-01-05T00:45:39.000Z
azext_keyvault/keyvault/custom/key_vault_authentication.py
jdmartinez36/azure-keyvault-cli-extension
4dc674b9c30cac13e27347782c49b3ed7dca2e2f
[ "MIT" ]
8
2018-04-24T22:52:48.000Z
2021-11-16T06:29:28.000Z
#--------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. #---------------------------------------------------------------------...
45.938525
137
0.65385
b17998560eadde2b617f54f4f8c38b012fd4d717
205
py
Python
crypto/crypto-srsa/src/script.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
2
2021-08-09T17:08:12.000Z
2021-08-09T17:08:17.000Z
crypto/crypto-srsa/src/script.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
crypto/crypto-srsa/src/script.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
1
2021-10-09T16:51:56.000Z
2021-10-09T16:51:56.000Z
from Crypto.Util.number import * p = getPrime(256) q = getPrime(256) n = p * q e = 0x69420 flag = bytes_to_long(open("flag.txt", "rb").read()) print("n =",n) print("e =", e) print("ct =",(flag * e) % n)
17.083333
51
0.595122
77381c0d769d2eab87ed55e88da57e456eef7dfd
4,593
py
Python
torch/testing/_internal/opinfo_helper.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
183
2018-04-06T21:10:36.000Z
2022-03-30T15:05:24.000Z
torch/testing/_internal/opinfo_helper.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
818
2020-02-07T02:36:44.000Z
2022-03-31T23:49:44.000Z
torch/testing/_internal/opinfo_helper.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
58
2018-06-05T16:40:18.000Z
2022-03-16T15:37:29.000Z
import collections import warnings from functools import partial import torch from torch.testing._internal.common_cuda import (TEST_CUDA) from torch.testing._internal.common_dtype import ( all_types_and_complex_and, all_types_and_complex, all_types_and_half, all_types, complex_types, floating_a...
32.807143
118
0.680819
ce0717d21a57e8c90d118dcbaf646efe132c19e2
1,396
py
Python
___Python/Angela/PyKurs/p05_random/m01_wuerfel.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p05_random/m01_wuerfel.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Angela/PyKurs/p05_random/m01_wuerfel.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import random r = random.Random() #Modul random mit Klasse Random, r=Wuerfel def wuerfeln(): return r.randint(1, 6) def lotto(): return r.randint(1, 49) def muenzwurf(): return r.randint(0, 1) # 0 = Kopf, 1 = Zahl def wuerfeln2(): return muenzwurf() print(wuerfeln()) # Test...
19.388889
73
0.600287
022558bdb423fa46e181a551757ee457d161c7dd
6,608
py
Python
src/pepper_ddpg_online_trainer.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
src/pepper_ddpg_online_trainer.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
src/pepper_ddpg_online_trainer.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ """ import tensorflow as tf import numpy as np import tflearn from ddpg.ddpg import build_summaries, ActorNetwork, CriticNetwork, OrnsteinUhlenbeckActionNoise, ReplayBuffer, \ getReward from src.BallTracker import ballTracker from src.Pepper import Pepper from src.Pepper.Pepper import...
34.778947
113
0.533596
0cbd80680fb701cb2cd5aab04995f4cfe4bef510
3,133
py
Python
workspace/cogrob/service_manager/model/fake_docker_py.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
8
2019-05-07T02:30:58.000Z
2021-12-10T18:44:45.000Z
workspace/cogrob/service_manager/model/fake_docker_py.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
1
2021-03-17T07:18:23.000Z
2021-03-17T07:18:23.000Z
workspace/cogrob/service_manager/model/fake_docker_py.py
CogRob/Rorg
dbf9d849e150404c117f6f0062476d995cec7316
[ "BSD-3-Clause" ]
2
2019-05-21T14:15:24.000Z
2022-02-09T12:50:24.000Z
# Copyright (c) 2019, The Regents of the University of California # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
40.166667
79
0.737312
0b6962b42ca999113262e875d058129ce24dc95c
661
py
Python
src/onegov/user/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/user/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import logging log = logging.getLogger('onegov.user') # noqa log.addHandler(logging.NullHandler()) # noqa from translationstring import TranslationStringFactory _ = TranslationStringFactory('onegov.user') # noqa from onegov.user.auth import Auth from onegov.user.collections import UserCollection from onegov.user.c...
26.44
55
0.770045
f03003f73c20fa73fd1b16b23e13a11eac685cce
2,876
py
Python
pytest/devices/test_rfid_keyboard.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
pytest/devices/test_rfid_keyboard.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
pytest/devices/test_rfid_keyboard.py
andino-systems/andinopy
28fc09fbdd67dd690b9b3f80f03a05c342c777e1
[ "Apache-2.0" ]
null
null
null
# _ _ _ # / \ _ __ __| (_)_ __ ___ _ __ _ _ # / _ \ | '_ \ / _` | | '_ \ / _ \| '_ \| | | | # / ___ \| | | | (_| | | | | | (_) | |_) | |_| | # /_/ \_\_| |_|\__,_|_|_| |_|\___/| .__/ \__, | # |_| |___/ # by Jakob Groß import sys import t...
31.955556
97
0.565369
b2e2c67c8d981f61d760b64ca4de2d070c3d9efd
839
py
Python
BITs/2014/Shmireychik_S_V/task_7_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Shmireychik_S_V/task_7_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Shmireychik_S_V/task_7_17.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача №7. Вариант 17 #Программа в которой компьютер загадывает название одного из пяти космических челноков проекта Спейс шаттл, а игрок должен его угадать. #Если он угадывает,то получает баллы. Если не угадывает,то отномаются. #Шмирейчик С.В. #01.04.2016 import random SpaceShuttles=('Колумбия','Челленджер...
33.56
136
0.735399
0453d24f5ad24d7fddb6040a6a4969a1cc8dcdfc
307
py
Python
exercises/zh/exc_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/zh/exc_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/zh/exc_01_08_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
import spacy nlp = spacy.load("zh_core_web_sm") text = "写入历史了:苹果是美国第一家市值超过一万亿美元的上市公司。" # 处理文本 doc = ____ for token in doc: # 获取词符文本、词性标注及依存关系标签 token_text = ____.____ token_pos = ____.____ token_dep = ____.____ # 规范化打印的格式 print(f"{token_text:<12}{token_pos:<10}{token_dep:<10}")
18.058824
60
0.680782
acb840d0a0fb5fd2a00b2203e4c42ce13fda0033
10,579
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/edgesInDistricts.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/edgesInDistricts.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/edgesInDistricts.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) 2007-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...
50.617225
116
0.556291
7663425b68b7527889b4ebdf44ca5be51741c84a
6,953
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/storage/data_entity_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/storage/data_entity_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/storage/data_entity_helper.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from abc import abstractmethod from datetime import datetime from typing import Any, Dict, List, Optional, Tuple from watchmen_auth import PrincipalService from watchmen_data_kernel.topic_schema import TopicSchema from watchmen_model.admin import Topic from watchmen_model.common import Pageable, TenantId from watchmen...
32.643192
114
0.773048
76820d15e20b67d348882395aa318736b0fbc3da
2,218
py
Python
sketches/pandemie_simulation/human.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/pandemie_simulation/human.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/pandemie_simulation/human.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from random import randint class Human: def __init__(self, x, y): self.x = x self.y = y self.radius = 5 self.state = 0 # State: 0 = normal, 1 = infected, 2 = recovered, 3 = dead self.time_to_cure = 2000 self.chance_to_die = 0.25 self.movement_ra...
41.074074
90
0.512173
4fcd0e7c5afdccc5ec247a388e26e5450b2b6d5c
1,399
py
Python
start.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
start.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
start.py
dreaming-coder/RadarSet
c912298d0d6058c6647986524e5d95a205b51c1d
[ "MIT" ]
null
null
null
from service.DatasetService import create_dataset_with_rainy_days, create_extrapolation_dataset from service.MeteorologyService import extract_meteorology, compute_rain_6_min from src.log import logger from service import filter_sequence from service.RadarService import extract_background_noise, extract_systematic_mask...
34.975
95
0.664761
4ffb8914a43e1d6f36a4efd62e11b5de38374063
1,209
py
Python
Theories/Algorithms/Recursion2/NQueensII/n_queen_ii.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Theories/Algorithms/Recursion2/NQueensII/n_queen_ii.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/Algorithms/Recursion2/NQueensII/n_queen_ii.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
# Backtracking # def totalNQueens(self, n: int) -> int: # diag1 = set() # diag2 = set() # used_cols = set() # # return self.helper(n, diag1, diag2, used_cols, 0) # # # def helper(self, n, diag1, diag2, used_cols, row): # if row == n: # return 1 # # solutions = 0 # # for col in range(...
22.811321
74
0.529363
d739efad8d4d3a11ccbfdc0f0f99510f5635612c
2,558
py
Python
hxpctf2020/nanothorpe/octothorpe.py
TalaatHarb/ctf-writeups
afeeb640e04834ecb91b8562d3bb44e693b36eb0
[ "Apache-2.0" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
HXP/2020/crypto/octothorpe/octothorpe.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
HXP/2020/crypto/octothorpe/octothorpe.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/env python3 import math class octothorpe: digest_size = 16 block_size = 64 name = "octothorpe" state_size = 16 shift_count = 64 round_count = 20 initial_state = bytearray.fromhex('00112233445566778899aabbccddeeff') function = lambda i: math.cos(i ** 3) sbox = sorted(ra...
43.355932
143
0.60516
ad59ac01bbffbc37f6e707f41f1443be06e4b1ac
1,187
py
Python
Prototype/test.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
4
2019-12-03T16:13:09.000Z
2019-12-11T23:22:58.000Z
Prototype/test.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
65
2019-12-08T17:43:59.000Z
2020-08-14T15:26:21.000Z
Prototype/test.py
fowado/BauphysikSE1
eb8805196c8fbf99a879c40c5e0725d740c5a0de
[ "CC-BY-4.0" ]
null
null
null
from PyQt5 import QtCore, QtGui,QtWidgets from PyQt5.QtCore import * from PyQt5.QtGui import * import sys class PicButton(QtWidgets.QAbstractButton): def __init__(self, pixmap, pixmap_hover, pixmap_pressed, parent=None): super(PicButton, self).__init__(parent) self.pixmap = pixmap self.pixm...
28.261905
111
0.687447
0f5e6f591d81661afd9fad581050ae92d94bbd2e
1,046
py
Python
2imageclassify/ml.py
anjiang2016/rcnn-xilie
d68ead1504732bd92cde59f8246f9bb2ebc6fe5c
[ "MIT" ]
null
null
null
2imageclassify/ml.py
anjiang2016/rcnn-xilie
d68ead1504732bd92cde59f8246f9bb2ebc6fe5c
[ "MIT" ]
null
null
null
2imageclassify/ml.py
anjiang2016/rcnn-xilie
d68ead1504732bd92cde59f8246f9bb2ebc6fe5c
[ "MIT" ]
null
null
null
from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split from sklearn.naive_bayes import GaussianNB from sklearn.metrics import accuracy_score import pdb pdb.set_trace() # Load dataset data = load_breast_cancer() # Organize our data label_names = data['target_names'] labels...
25.512195
74
0.654876
7e1f03280acd726bd3ebe2c693966ddd427d05bb
6,218
py
Python
21-fs-ias-lec/03-BACnetCore/src/core/security/verification.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
21-fs-ias-lec/03-BACnetCore/src/core/security/verification.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
21-fs-ias-lec/03-BACnetCore/src/core/security/verification.py
cn-uofbasel/BCN
2d0852e00f2e7f3c4f7cf30f60c6765f2761f80a
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
from ..storage.database_handler import DatabaseHandler, UnknownFeedError from .crypto import check_signature, check_in_order, check_content_integrity from ..interface.event import Event from ...log import create_logger logger = create_logger('Verification') class Verification: """ This class is used by the s...
40.376623
132
0.635252
0e41be2711888ce53a421b2c3efcf58864ce7194
8,933
py
Python
MainWindow.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
MainWindow.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
MainWindow.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ UNIVERSIDAD DE CONCEPCION Departamento de Ingenieria Informatica y Ciencias de la Computacion Memoria de Titulo Ingenieria Civil Informatica DETECCION DE BORDES EN IMAGENES DGGE USANDO UN SISTEMA HIBRIDO ACO CON LOGICA DIFUSA Autor: Sebastian Ignacio Espinoza Jimenez Patrocinant...
40.604545
150
0.622411
0e9fb181ad75d8dffaac52fad7d12c958be0b975
864
py
Python
rating/resolvable.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
19
2018-04-20T11:03:41.000Z
2022-01-12T20:58:56.000Z
rating/resolvable.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
160
2018-04-05T16:12:59.000Z
2022-03-01T13:01:27.000Z
rating/resolvable.py
thegreenwebfoundation/green-spider
68f22886178bbe5b476a4591a6812ee25cb5651b
[ "Apache-2.0" ]
8
2018-11-05T13:07:57.000Z
2021-06-11T11:46:43.000Z
""" This gives a score if one of the input URL's hostnames was resolvable """ from rating.abstract_rater import AbstractRater class Rater(AbstractRater): rating_type = 'boolean' default_value = False depends_on_checks = ['dns_resolution'] max_score = 1 def __init__(self, check_results): ...
24
76
0.574074
add1ea8b55214591c4e163ad791eba3da2af07fb
403
py
Python
hvliotyamls/domocup.py
feykmeelyahoo/k8siot
51cb8924602ec405ceff4b4627da7e52a84ca10c
[ "Apache-2.0" ]
1
2019-06-21T21:17:36.000Z
2019-06-21T21:17:36.000Z
hvliotyamls/domocup.py
feykmeelyahoo/k8siot
51cb8924602ec405ceff4b4627da7e52a84ca10c
[ "Apache-2.0" ]
null
null
null
hvliotyamls/domocup.py
feykmeelyahoo/k8siot
51cb8924602ec405ceff4b4627da7e52a84ca10c
[ "Apache-2.0" ]
null
null
null
import paho.mqtt.client as mqtt from time import sleep import random broker="test.mosquitto.org" topic_pub='v1/devices/me/telemetry' client = mqtt.Client() client.username_pw_set("C1_TEST_TOKEN") client.connect('104.248.38.58', 31629, 1) for i in range(50000): x = random.randrange(20, 100) print x msg...
19.190476
41
0.687345
70c636e22f18c48ebe676cb13bcb75038e11020f
523
py
Python
leetcode/311-Sparse-Matrix-Multiplication/SparseMatMul_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
leetcode/311-Sparse-Matrix-Multiplication/SparseMatMul_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/311-Sparse-Matrix-Multiplication/SparseMatMul_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def multiply(self, A, B): """ :type A: List[List[int]] :type B: List[List[int]] :rtype: List[List[int]] """ m, q, n = len(A), len(B), len(B[0]) # C = [[0] * n] * m C = [[0] * n for _ in range(m)] for i in range(m): ...
29.055556
56
0.34608
aae24d481b1bb2589f4a8018c9cac83485043b24
812
py
Python
pocketthrone/tools/imagetomap.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
4
2016-06-05T16:48:04.000Z
2020-03-23T20:06:06.000Z
pocketthrone/tools/imagetomap.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
pocketthrone/tools/imagetomap.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
image_path = "../../westeros.tif" mod_name= "westeros" map_name = "westeros_full" WATER = (0, 138, 255) GRASS = (0, 198, 16) FOREST = (16, 138, 25) MOUNTAINS = (123, 125, 123) DIRT = (165, 125, 82) from PIL import Image image = Image.open(image_path) width = image.size[0] height = image.size[1] lines = [] pix = im...
19.333333
77
0.597291
2ad7db7e11492e61be2b4349fa43d2a74235c663
721
py
Python
display/_information_menu_view.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
display/_information_menu_view.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
display/_information_menu_view.py
ihrigb/stagebuzzer
dbce1c5fa59a6f22e74d84ccc96d4d1a28a5b680
[ "Apache-2.0" ]
null
null
null
from ._button_lights import ButtonLights from ._view import View from ._display import Display from information import get_ip_address information_menu_view_name = "information_menu_view" class InformationMenuView(View): def __init__(self, button_lights: ButtonLights): super().__init__(button_lights) ...
25.75
61
0.693481
2dc50c05bb3437d4ca9383ffff609a09e691c741
1,075
py
Python
books/PythonAutomate/csv_json_files/csv_remove_header.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/csv_json_files/csv_remove_header.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/csv_json_files/csv_remove_header.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""csv_remove_header.py removeCsvHeader 디렉터리에 있는 CSV 파일들의 헤더 없애고 header_removed 디렉터리에 생성 """ import os import csv os.makedirs("header_removed", exist_ok=True) # Loop through every file in the current working directory dir_name = "removeCsvHeader" for folder, sub_folder, file_names in os.walk(dir_name): for file_n...
29.861111
87
0.647442
930775f639dde6a3ebe5fb36f838e916ab74d25d
2,258
py
Python
src/user/views.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
src/user/views.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
1
2022-03-25T05:33:19.000Z
2022-03-25T05:33:19.000Z
src/user/views.py
oguzhanakan0/covidlab-server
68ea4e6cd3b1244117ae43275335896b911a9b2a
[ "MIT" ]
null
null
null
import json import firebase_admin from firebase_admin import credentials from firebase_admin import auth from django.http import JsonResponse from .models import User from django.forms.models import model_to_dict import datetime from django.utils import timezone # cred = credentials.Certificate("/Users/oguzhanakan/Des...
33.205882
134
0.615146
9318698c7ccd2eb4c0aea1440b8fad256f8cbb98
318
py
Python
python/coursera_python/WESLEYAN/week4/t_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/WESLEYAN/week4/t_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/WESLEYAN/week4/t_1.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
def problem4_1(wordlist): print(wordlist) wordlist.sort(key=str.lower) print(wordlist) #firstline = ["Happy", "families", "are", "all", "alike;", "every", \ # "unhappy", "family", "is", "unhappy", "in", "its", "own", \ # "way.", "Leo Tolstoy", "Anna Karenina"] #problem4_1(firstline)
26.5
74
0.572327
35e6dbcd2288a59185fde172b48ed1238fd92372
715
py
Python
Raspberry-Pi/flask_socketio_motion/app.py
AravindVasudev/code-dump
9b67c3cd1e8673b5ce4a90e5b17d69c82ad55298
[ "MIT" ]
null
null
null
Raspberry-Pi/flask_socketio_motion/app.py
AravindVasudev/code-dump
9b67c3cd1e8673b5ce4a90e5b17d69c82ad55298
[ "MIT" ]
1
2021-06-01T21:51:54.000Z
2021-06-01T21:51:54.000Z
Raspberry-Pi/flask_socketio_motion/app.py
AravindVasudev/code-dump
9b67c3cd1e8673b5ce4a90e5b17d69c82ad55298
[ "MIT" ]
null
null
null
from flask import Flask, render_template from flask_socketio import SocketIO import RPi.GPIO as GPIO import threading import time # RPi GPIO init MOTION_SENSOR = 18 GPIO.setmode(GPIO.BCM) GPIO.setup(MOTION_SENSOR, GPIO.IN) # App Instance app = Flask(__name__) app.config['SECRET_KEY'] = 'shamballa' # SocketIO init so...
19.324324
58
0.714685
17a9d7f41076d1586bd7efd430cb6a446a70fc4e
1,957
py
Python
cs/lambda_cs/08_interview_prep/notes/merge_point_of_two_linked_lists.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/08_interview_prep/notes/merge_point_of_two_linked_lists.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/08_interview_prep/notes/merge_point_of_two_linked_lists.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
# SinglyLinkedListNode: # int data # SinglyLinkedListNode next # # def findMergeNode(head1, head2): # the data on the linked list nodes might not be unique # we can't rely on just checking the data in each node # as with any node-based data structure, each node is a unique # region in memory ...
32.616667
76
0.625447
aa05631a42f72d4c0233c244c13b2a0dbd784244
3,419
py
Python
ryu/app/otherApp/topo/four_con_topo.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/topo/four_con_topo.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
ryu/app/otherApp/topo/four_con_topo.py
yuesir137/SDN-CLB
58b12a9412cffdf2945440528b1885c8899edd08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import time import math from mininet.net import Mininet from mininet.node import Controller, OVSKernelSwitch, RemoteController,OVSSwitch from mininet.cli import CLI from mininet.log import setLogLevel, info from mininet.link import TCLink,Link from mininet.topo import Topo class MyTopo(Topo): "...
31.953271
87
0.537877
d8364e4d2924d5a322c6a06f1820af4fc79d8116
226
py
Python
monitoring/prometheus/aliyun-exporter/aliyun_exporter/utils.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
264
2018-12-09T13:41:45.000Z
2022-02-08T07:10:02.000Z
monitoring/prometheus/aliyun-exporter/aliyun_exporter/utils.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
42
2018-12-11T10:20:57.000Z
2019-10-25T09:56:22.000Z
monitoring/prometheus/aliyun-exporter/aliyun_exporter/utils.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
154
2018-12-11T02:12:01.000Z
2022-03-25T03:45:54.000Z
def format_metric(text: str): return text.replace('.', '_') def format_period(text: str): return text.split(',', 1)[0] def try_or_else(op, default): try: return op() except: return default
15.066667
33
0.59292
dca0873ee77bf96a58b34a24592907bde7d7015f
49
py
Python
docker-desktop/vnc/docker-ubuntu-vnc-desktop/image/usr/local/lib/web/backend/vnc/log.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
2,917
2015-01-20T15:26:36.000Z
2022-03-31T18:15:11.000Z
docker-desktop/vnc/docker-ubuntu-vnc-desktop/image/usr/local/lib/web/backend/vnc/log.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
232
2015-03-02T18:15:32.000Z
2022-03-25T17:32:20.000Z
docker-desktop/vnc/docker-ubuntu-vnc-desktop/image/usr/local/lib/web/backend/vnc/log.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
1,232
2015-01-07T21:55:35.000Z
2022-03-29T15:51:18.000Z
import logging log = logging.getLogger('novnc2')
16.333333
33
0.77551
762cbea4315072d4f6d8097ec6dfd0bcecf842e8
3,231
py
Python
pba.py
vasmedvedev/automation
98cdf5c577fc4dd57b2d9b7ccfd96e849394cc95
[ "MIT" ]
null
null
null
pba.py
vasmedvedev/automation
98cdf5c577fc4dd57b2d9b7ccfd96e849394cc95
[ "MIT" ]
null
null
null
pba.py
vasmedvedev/automation
98cdf5c577fc4dd57b2d9b7ccfd96e849394cc95
[ "MIT" ]
null
null
null
import re import hashlib from abstract import Proxy class PBAProxy(Proxy): def get_order_status(self, order_id): response = self.proxy.Execute({ 'methodName': 'Execute', 'Server': 'BM', 'Method': 'GetOrder_API', 'Params': [order_id] }) retu...
31.990099
125
0.557722
522c5209ff988d2d907955873048cc48c4ffc959
810
py
Python
Datastructures/BinarySearch.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/BinarySearch.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Datastructures/BinarySearch.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
#binary search class BinarySearch: def __init__(self): self.elements = [10,12,15,18,19,22,27,32,38] def SearchElm(self,elem): start = 0 stop = len(self.elements)-1 while start <= stop: mid_point = start + (stop - start) if self.elements[mid_point] == ...
22.5
71
0.550617
5ec618baaa19cdb2c7b27b33ac1bfb9f081b82c6
318
py
Python
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.5-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Sparse Search # Given a sorted array of strings that is interspersed with empty strings, # write a method to find the location of a given string. # EXAMPLE: INPUT: ball, {"at", "", "", "", "ball", "", "", "car", "", "", "dad", "", ""} # OUTPUT: 4 # time complexity: O() # space complexity: O()
28.909091
90
0.569182
0da51da16a4897ea63ca337d5623314681897ad9
22,301
py
Python
src/Sephrasto/CharakterAssistent/CharakterMerger.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-02-02T16:15:59.000Z
2022-02-02T16:15:59.000Z
src/Sephrasto/CharakterAssistent/CharakterMerger.py
Ilaris-Tools/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
1
2022-01-14T11:04:19.000Z
2022-01-14T11:04:19.000Z
src/Sephrasto/CharakterAssistent/CharakterMerger.py
lukruh/Sephrasto
8574a5b45da8ebfa5f69a775066fd3136da1c718
[ "MIT" ]
null
null
null
from Charakter import VariableKosten from CharakterAssistent import ChoicePopupWrapper from CharakterAssistent import VariantPopupWrapper from CharakterAssistent import Choice import Fertigkeiten import Objekte import Definitionen from Wolke import Wolke import lxml.etree as etree import logging from Hilfsmethoden impo...
42.804223
148
0.561724
219656bac307d20f56a5991c512e626b33734287
6,390
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/output/stopOrder.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/output/stopOrder.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/output/stopOrder.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) 2012-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
39.9375
108
0.582786
df39fdf12ff148cc0beb60caa1acb7ae05fea6ac
179
py
Python
aemter/apps.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
src/aemter/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
src/aemter/apps.py
Sumarbrander/Stura-Mitgliederdatenbank
691dbd33683b2c2d408efe7a3eb28e083ebcd62a
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.apps import AppConfig class AemterConfig(AppConfig): name = 'aemter' verbose_name = "Funktionen" def ready(self): import aemter.signals.handlers
19.888889
38
0.703911
10c772285aaeb0d6677c7749b86ae04d825ae700
961
py
Python
django/eventlr/urls.py
cyberjacob/Eventlr
a1474ab73d50b08d4bd21ec83830105b2632ecfa
[ "MIT" ]
null
null
null
django/eventlr/urls.py
cyberjacob/Eventlr
a1474ab73d50b08d4bd21ec83830105b2632ecfa
[ "MIT" ]
null
null
null
django/eventlr/urls.py
cyberjacob/Eventlr
a1474ab73d50b08d4bd21ec83830105b2632ecfa
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.views.generic.simple import direct_to_template # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: url(r'^$', 'web.pages.index', name='home'), #url(r...
36.961538
84
0.686785
10da973171bb37f5d0352fc2be41145f34d9fa45
711
py
Python
weibo/test/testNoneString.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/test/testNoneString.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
weibo/test/testNoneString.py
haiboz/weiboSpider
517cae2ef3e7bccd9e1d328a40965406707f5362
[ "Apache-2.0" ]
null
null
null
#coding:utf8 ''' Created on 2016年4月21日 @author: wb-zhaohaibo ''' import re import time tt1 = time.time() ss = "" if ss == "": print "tyee" else: print "ss" s1 = "dasddfghasd" aa = s1.find("asgg") print aa data = {} if data is None: print "None" else: print "not None " ...
12.927273
50
0.537271
985466718ea19d727090d945721c5cf8efabcc11
946
py
Python
.circleci/cimodel/data/simple/util/docker_constants.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
2
2020-03-13T06:57:49.000Z
2020-05-17T04:18:14.000Z
.circleci/cimodel/data/simple/util/docker_constants.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
.circleci/cimodel/data/simple/util/docker_constants.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
2
2019-07-23T14:37:31.000Z
2019-07-23T14:47:13.000Z
AWS_DOCKER_HOST = "308535385114.dkr.ecr.us-east-1.amazonaws.com" def gen_docker_image(container_type): return ( "/".join([AWS_DOCKER_HOST, "pytorch", container_type]), f"docker-{container_type}", ) def gen_docker_image_requires(image_name): return [f"docker-{image_name}"] DOCKER_IMAGE_BA...
27.823529
80
0.769556
89f68980f41017691cda4f97e512738b4488d211
459
py
Python
doc/examples/issues/issue29_blocks_classes.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/issues/issue29_blocks_classes.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
tmp/analyses/examples/7_issue29_blocks_classes.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
""" See https://foss.heptapod.net/fluiddyn/transonic/issues/6 """ from transonic import boost, with_blocks, block def non_pythranizable(arg): """represent a function that can not be compiled by Pythran""" return arg @boost class MyClass: attr0: int @with_blocks def func(self, arg: int): ...
17
66
0.647059
c398da15ba7665d863d31a8d3826753bba2c5235
3,128
py
Python
modules/short_url_generator.py
NETMVAS/feecc-agent-geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
1
2021-05-13T09:03:51.000Z
2021-05-13T09:03:51.000Z
modules/short_url_generator.py
arseniiarsenii/robonomics_qa_geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
null
null
null
modules/short_url_generator.py
arseniiarsenii/robonomics_qa_geoscan
93fc5766a4a2f588aaa173779bb6bd0928682e58
[ "Apache-2.0" ]
1
2021-05-24T15:45:01.000Z
2021-05-24T15:45:01.000Z
import ast import logging import requests import typing as tp # set up logging logging.basicConfig( level=logging.INFO, filename="agent.log", format="%(asctime)s %(levelname)s: %(message)s" ) def generate_short_url(config: tp.Dict[str, tp.Dict[str, tp.Any]]) -> tp.Tuple[tp.Any, tp.Any]: """ :para...
42.27027
119
0.632673
c3d578834a8ee00ecd0800a3c4c8bc938b73638b
1,695
py
Python
sketches/aquarium/fish.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/aquarium/fish.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/aquarium/fish.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from random import randint class Fish(): def __init__(self): no = str(randint(1, 7)) self.imr0 = loadImage("fish" + no + "_r0.png") self.iml0 = loadImage("fish" + no + "_l0.png") self.imr1 = loadImage("fish" + no + "_r1.png") self.iml1 = loadImage("fish" + no + "_l1.png...
33.235294
78
0.484366
1454a8fd107a8bd82cabb097a6d126b7fac51b52
1,607
py
Python
labeldcm/module/config.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
1
2021-12-20T11:06:42.000Z
2021-12-20T11:06:42.000Z
labeldcm/module/config.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
null
null
null
labeldcm/module/config.py
hyh520/label-dcm
07f8257dcc52b827fcb6d1dec311b532c3ae8925
[ "MIT" ]
null
null
null
class Config(object): def __init__(self): # Font Size # 1. Index, Distance, Degree self.fontSize = 10 # Font Family # 1. Index, Distance, Degree self.fontFamily = 'Consolas' # Shifting # 1. Index self.indexShifting = 3 # 2. Distance ...
22.633803
80
0.476042
b4bf1339ca61d039037c787506fd86004616c463
5,316
py
Python
pocketthrone/managers/mapmanager.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
4
2016-06-05T16:48:04.000Z
2020-03-23T20:06:06.000Z
pocketthrone/managers/mapmanager.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
pocketthrone/managers/mapmanager.py
herrschr/pocket-throne
819ebae250f45b0a4b15a8320e2836c0b5113528
[ "BSD-2-Clause" ]
null
null
null
__all__ = ('MapManager') from pocketthrone.tools.maploader import MapLoader from pocketthrone.managers.pipe import L from pocketthrone.managers.filemanager import FileManager from pocketthrone.managers.eventmanager import EventManager from pocketthrone.entities.event import * from pocketthrone.entities.enum import Til...
31.832335
86
0.727803
d332a2f8234c0d7acb92e4b0a6de624d5d3cdcb7
681
py
Python
runners/great_expectations/expectations.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/expectations.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
runners/great_expectations/expectations.py
omio-labs/richterin
c4165fe4910a556f5bba3c7224fed6d35c3fea57
[ "MIT" ]
null
null
null
from enum import Enum from functools import partial from typing import Dict, Any from great_expectations.dataset import SqlAlchemyDataset def not_null(dataset: SqlAlchemyDataset, options: Dict[str, Any]): return dataset.expect_column_values_to_not_be_null(**options) def is_null(dataset: SqlAlchemyDataset, opti...
28.375
72
0.792952
d35ac025aec40d554b97a04656ddcfe76d32578c
3,379
py
Python
parkhaeuser/city_template.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
parkhaeuser/city_template.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
parkhaeuser/city_template.py
socialdistancingdashboard/virushack
6ef69d26c5719d0bf257f4594ed2488dd73cdc40
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
# -*- coding: utf-8 -*- """ Created on Tue Mar 31 11:33:53 2020 @author: Peter """ import time from bs4 import BeautifulSoup from selenium import webdriver """Template für das Scrapen der Parkhausauslastung eines Landkreises von einer Website. An den durch Kommentare gekennzeichneten Stellen im Code müss...
32.490385
106
0.534478
9f495cb328605ae2af8b6c7294fd0eb84e099243
1,342
py
Python
PizzaTime/main.py
MolarFox/PizzaTime
d2a6d134164c1f633a25015380cb912b50da5960
[ "MIT" ]
null
null
null
PizzaTime/main.py
MolarFox/PizzaTime
d2a6d134164c1f633a25015380cb912b50da5960
[ "MIT" ]
null
null
null
PizzaTime/main.py
MolarFox/PizzaTime
d2a6d134164c1f633a25015380cb912b50da5960
[ "MIT" ]
null
null
null
import json import math # Store input numbers total_lexis = int(input('How many lexis: ')) # Display the sum print(f"Wait while we do some quik maffs for {total_lexis} lexis") minimum_lexis = 15 extra_lexis = total_lexis - minimum_lexis bonus_garlic = math.ceil(extra_lexis/5) bonus_wildcards = math.floor(extra_lexis/...
23.54386
66
0.640089
9f4e9fb247e5fc4cf3a6bf2eb38c2f887605e8a8
588
py
Python
contrib/dns-seeder/test.py
dmitriy79/IDC-CORE
211f7a7470cd341aa322166619bfca57d75260b8
[ "MIT" ]
4
2019-07-07T13:28:08.000Z
2020-06-04T18:02:27.000Z
contrib/dns-seeder/test.py
dmitriy79/IDC-CORE
211f7a7470cd341aa322166619bfca57d75260b8
[ "MIT" ]
null
null
null
contrib/dns-seeder/test.py
dmitriy79/IDC-CORE
211f7a7470cd341aa322166619bfca57d75260b8
[ "MIT" ]
2
2020-03-07T02:25:32.000Z
2020-03-18T22:31:40.000Z
import socket seeders = [ 'dseed1.id-chain.org', 'dseed2.id-chain.org', 'dseed3.id-chain.org', 'dseed4.id-chain.org', 'dseed5.id-chain.org', 'dseed6.id-chain.org' ] for seeder in seeders: try: ais = socket.getaddrinfo(seeder, 0) except socket.gaierror: ais = [] ...
21.777778
49
0.561224
4cac1262231b22f73aa9690e0c55844686fa3281
347
py
Python
platform/mcu/haas1000/prebuild/data/python-apps/driver/spi/main.py
NEXTLEO/AliOS-Things
117ca103144a7bf6a394455bcc59698b7e1dd79d
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
platform/mcu/haas1000/prebuild/data/python-apps/driver/spi/main.py
NEXTLEO/AliOS-Things
117ca103144a7bf6a394455bcc59698b7e1dd79d
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
components/py_engine/tests/haas/HaaSEdu/python-apps/driver/spi/main.py
willianchanlovegithub/AliOS-Things
637c0802cab667b872d3b97a121e18c66f256eab
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
from driver import SPI print("-------------------spi test--------------------") spi = SPI() spi.open("SPI0") readBuf = bytearray(3) writeBuf = bytearray([0x9f]) print(writeBuf) print(readBuf) value = spi.sendRecv(writeBuf, readBuf) print(value) print(writeBuf) print(readBuf) spi.close() print("-------------------spi ...
20.411765
56
0.567723
4cf5afdead66cdb72223f52344a4682c5cd3fbb5
3,176
py
Python
cloud/aws/stage3/jobs/dev/session-loader/jhapi_io.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
6
2018-06-27T00:09:55.000Z
2019-03-07T14:06:53.000Z
cloud/aws/stage3/jobs/dev/session-loader/jhapi_io.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2021-03-31T18:37:46.000Z
2021-06-01T21:49:41.000Z
cloud/aws/stage3/jobs/dev/session-loader/jhapi_io.py
cloud-cds/cds-stack
d68a1654d4f604369a071f784cdb5c42fc855d6e
[ "Apache-2.0" ]
3
2020-01-24T16:40:49.000Z
2021-09-30T02:28:55.000Z
import grequests import json import datetime as dt import logging import pytz SERVERS = { 'test': 'https://api-test.jh.edu/internal/v2/clinical', 'stage': 'https://api-stage.jh.edu/internal/v2/clinical', 'prod': 'https://api.jh.edu/internal/v2/clinical', # POST-only internal servers 'internal-test...
44.732394
166
0.600441
392215c0171723645da1b1a478d791ca51b97442
418
py
Python
longest-palindrome/longest-palindrome.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
longest-palindrome/longest-palindrome.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
longest-palindrome/longest-palindrome.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def longestPalindrome(self, s: str) -> int: str_dict={} for each in s: if each not in str_dict: str_dict[each]=0 str_dict[each]+=1 result=0 odd=0 for k, v in str_dict.items(): if v%2==0: resul...
26.125
47
0.433014
1a56cea58fb740fcf1e8fbb537fc140ffc58ad82
261
py
Python
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P05_AccountBalance.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P05_AccountBalance.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L05_WhileLoop/Lab/Solutions/P05_AccountBalance.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
total = 0 line = input() while line != "NoMoreMoney": current = float(line) if current < 0: print("Invalid operation!") break total += current print(f"Increase: {current:.2f}") line = input() print(f"Total: {total:.2f}")
16.3125
37
0.570881
20347a1d9b2d8647baf65b270ab29304caae7483
3,296
py
Python
nowcast_viz_de/prepare_forecast_data.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
nowcast_viz_de/prepare_forecast_data.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
nowcast_viz_de/prepare_forecast_data.py
Stochastik-TU-Ilmenau/hospitalization-nowcast-hub
df1b2f52060cfa5c275c8c25a0cf2d7b6ad5df0d
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from pathlib import Path def process_forecasts(df): df.loc[df.type == 'quantile', 'quantile'] = 'q' + df.loc[df.type == 'quantile', 'quantile'].astype(str) df.loc[df.type == 'mean', 'quantile'] = 'mean' df = df.pivot(index = ['location', 'age_group', 'forecast_date'...
40.195122
131
0.632585
808ae77129fa40da302f8269d77898d8b75826d7
236
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_hub_connector_domain.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_hub_connector_domain.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v10_0/update_hub_connector_domain.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): if frappe.db.table_exists("Data Migration Connector"): frappe.db.sql(""" UPDATE `tabData Migration Connector` SET hostname = 'https://hubmarket.org' WHERE connector_name = 'Hub Connector' """)
26.222222
55
0.707627
ff09f722e3d22b9ea1606eae876d72ea94e22b07
437
py
Python
pacman-arch/test/pacman/tests/upgrade030.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade030.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade030.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Upgrade packages with various reasons" lp1 = pmpkg("pkg1") lp1.reason = 0 lp2 = pmpkg("pkg2") lp2.reason = 1 for p in lp1, lp2: self.addpkg2db("local", p) p1 = pmpkg("pkg1", "1.0-2") p2 = pmpkg("pkg2", "1.0-2") for p in p1, p2: self.addpkg(p) self.args = "-U %s" % " ".join([p.filename() for p...
19.863636
64
0.647597
ff0e3f7dce231bd43a86c057f900a05736af297e
8,752
py
Python
Packs/ApiModules/Scripts/IAMApiModule/IAMApiModule_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/ApiModules/Scripts/IAMApiModule/IAMApiModule_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/ApiModules/Scripts/IAMApiModule/IAMApiModule_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from IAMApiModule import * APP_USER_OUTPUT = { "user_id": "mock_id", "user_name": "mock_user_name", "first_name": "mock_first_name", "last_name": "mock_last_name", "active": "true", "email": "testdemisto2@paloaltonetworks.com" } USER_APP_DATA = IAMUserAppData("mock_id", "mock_user_name", is_ac...
36.016461
120
0.695727
454bec157dda567b20fa093a912cf2ca2019b964
496
py
Python
source/pkgsrc/chat/gajim/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/chat/gajim/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/chat/gajim/patches/patch-setup.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-setup.py,v 1.4 2021/08/10 12:03:37 nia Exp $ Fix man page install location. --- setup.py.orig 2021-04-24 11:27:40.000000000 +0000 +++ setup.py @@ -109,7 +109,7 @@ def build_man(build_cmd): def install_man(install_cmd): data_files = install_cmd.distribution.data_files man_dir = build_dir / 'm...
31
59
0.657258
4555854adf944a13de410ac6276911ac6d1dd55c
662
py
Python
Algorithms/2_Implementation/22.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-11-25T13:39:30.000Z
2021-11-25T13:39:30.000Z
Algorithms/2_Implementation/22.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/2_Implementation/22.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/designer-pdf-viewer/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'designerPdfViewer' function below. # # The function is expected to return an INTEGER. # The function accepts following parameters: # 1. INTEGER_ARRAY h # 2. ...
19.470588
67
0.681269
b337abc868321e8eead65370e433751da76b70c6
222
py
Python
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/16.05-Abstract-Class-and-Abstract-Method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/16.05-Abstract-Class-and-Abstract-Method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/16.05-Abstract-Class-and-Abstract-Method.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
from abc import ABC, abstractmethod class Computer(ABC): @abstractmethod def process(self): pass class Laptop(Computer): def process(self): print("Running") com1 = Laptop() com1.process()
13.058824
35
0.648649
6406f08c525fc808fca0e1c94a4641520796deea
8,040
py
Python
src/onegov/election_day/utils/d3_renderer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/utils/d3_renderer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/utils/d3_renderer.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from base64 import b64decode from io import BytesIO from io import StringIO from onegov.ballot import Ballot from onegov.ballot import Election from onegov.ballot import ElectionCompound from onegov.core.custom import json from onegov.core.utils import module_path from onegov.election_day import _ from onegov.election_...
36.712329
77
0.572264
ff9c50cdd86b3b2cf2d21f790f029bd04d23b67c
660
py
Python
Liter_Server/Mybase58.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/Mybase58.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
Liter_Server/Mybase58.py
Drelf2018/Liter
e12ffdd22ee7b2724722c38e852fc9c1b2f180ad
[ "MIT" ]
null
null
null
MAGIC = [20210318223204031831, 1145141919810] BASE58 = '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' def encode(msg: str) -> str: temp = 0 for m in msg: temp = temp * 256 + ord(m) temp = (temp ^ MAGIC[0]) + MAGIC[1] msg = '' while temp: msg = BASE58[temp % 58] + msg ...
21.290323
69
0.562121
443a75f8c75650e7b7aa08d3c49743431fe279f0
3,697
py
Python
haas_lib_bundles/python/docs/examples/broadcast_speaker/haaseduk1/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/broadcast_speaker/haaseduk1/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/broadcast_speaker/haaseduk1/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : main.py @Description: 播报音箱案例(本案例符合HaaS Python 2.0 API标准,请务必按照“HaaS EDU K1快速开始”(https://haas.iot.aliyun.com/haasapi/#/Python/docs/zh-CN/startup/HaaS_EDU_K1_startup)文章的说明烧录固件 @Date : 2022年02月11日 @Author : ethan.lcz @version : v2...
27.796992
167
0.620233
2bc19506802792dbfe68fddcf0e33163e5f51cce
1,022
py
Python
research/cv/LightCNN/src/lr_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/LightCNN/src/lr_generator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/LightCNN/src/lr_generator.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...
37.851852
82
0.671233
2bdb1ec0c3034154ad2da148e24ea19056a8ffda
148
py
Python
server/apps/recommendation/apps.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/recommendation/apps.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/recommendation/apps.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
from django.apps import AppConfig class RecommendationConfig(AppConfig): name = 'recommendation' # app名字后台显示中文 verbose_name = "推荐管理"
16.444444
38
0.72973
5bba03a6322bf928e1dbf4c602258960e41492ee
2,056
py
Python
PSA/ModuleLoader.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/ModuleLoader.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
PSA/ModuleLoader.py
SECURED-FP7/secured-psa-nsm
20c8f790ebc2d2aa8c33bda1e047f8f29275a0be
[ "Apache-2.0" ]
null
null
null
# -*- Mode:Python;indent-tabs-mode:nil; -*- # # ModuleLoader.py # # Loads python modules. # # Author: jju / VTT Technical Research Centre of Finland Ltd., 2016 # import os import json import logging # Modules filename moduleFile = None def init( filename ): global moduleFile moduleFile = filename def _loadM...
29.371429
69
0.571012
754b71a80ece816849280a5acd5b4bcf04082713
1,366
py
Python
python/tutlibs/utils.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tutlibs/utils.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tutlibs/utils.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import time import numpy as np import torch def single_color(color, num_points:int): """ Args: color: RGB (3) or color code num_points: number of points Return: color poinsts: (num_points, 3) """ if type(color) == str: color = np.array([int(color[1:3],16), int(color...
26.784314
76
0.625183
f33367408b20eaa6e98db157ed79724dd83ccb32
7,140
py
Python
Windows-Python-RAT-mater/Setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
Windows-Python-RAT-mater/Setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
Windows-Python-RAT-mater/Setup.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
######################################################### # Windows-Python-RAT Setup # # [R]emote [A]dministrator [T]ool # # GitHub: https://github.com/Windows-Python-RAT # # ##################################################### # # Coded By Sir.4m1R (Amir Hossein...
35
245
0.57381
f355fd5f79afcf7fb8f12d84de6e2db45aaa9888
1,066
py
Python
SleekSecurity/layers/plugins/fingerprint/cms/magento.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/cms/magento.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
SleekSecurity/layers/plugins/fingerprint/cms/magento.py
GitInitDev/ZohoUniv
966704837e65f58b52492b56d08e7958df3d220a
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # # @name: Wascan - Web Application Scanner # @repo: https://github.com/m4ll0k/Wascan # @author: Momo Outaadi (M4ll0k) # @license: See the file 'LICENSE.txt' from re import search,I def magento(headers,content): _ = False if 'set-cookie' in headers.keys(): _ ...
53.3
166
0.636961
34081112ff37fad32ae043f090c935ffcb417ffb
2,125
py
Python
recommend.py
Bharat23/medium-tags
d92292852eb8b5abbc0dca40fb692308ba985c02
[ "MIT" ]
null
null
null
recommend.py
Bharat23/medium-tags
d92292852eb8b5abbc0dca40fb692308ba985c02
[ "MIT" ]
null
null
null
recommend.py
Bharat23/medium-tags
d92292852eb8b5abbc0dca40fb692308ba985c02
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.metrics.pairwise import linear_kernel from sklearn.feature_extraction.text import CountVectorizer from sklearn.metrics.pairwise import cosine_similarity # Return the top recommendations for an article def get_recommendations(d...
41.666667
94
0.745882
340f3bb7cae002dea84bd4a30469a974f0f8461a
329
py
Python
Online-Judges/DimikOJ/Python/50-left-right.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/50-left-right.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/50-left-right.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for _ in range(int(input())): string = input() new_str= "" new_str += string[0] for i in range(1, len(string)): if string[i] == "L": on = string[i-1] elif string[i] == "R": on = string[i+1] else: on = string[i] new_str += on print(...
23.5
35
0.449848
caff5da55fd6e9c21687b102bb648a220c24a1a4
932
py
Python
src/BallTracker/reward.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
src/BallTracker/reward.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
src/BallTracker/reward.py
Cibah/Pepper_RL
a105aead34c74ac8c49fa058ee1613f578bcde41
[ "MIT" ]
null
null
null
# reward.py: # Klasse, um Reward-Daten zu erfassen und weiterzugeben # wird importiert von der Main-Appliukation und der rewardTracker Class # # import threading # required for lock class Reward: def __init__(self): self._lock = threading.Lock() self.isNew = False # True, iff new Value is writte...
27.411765
72
0.604077
1b3ae12d49142ebf99ca574df7d857b13684ea3e
5,456
py
Python
autojail/commands/extract.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
6
2020-08-12T08:16:15.000Z
2022-03-05T02:25:53.000Z
autojail/commands/extract.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-03-30T10:34:51.000Z
2021-06-09T11:24:00.000Z
autojail/commands/extract.py
ekut-es/autojail
bc16e40e6df55c0a28a3059715851ffa59b14ba8
[ "MIT" ]
1
2021-11-21T09:30:58.000Z
2021-11-21T09:30:58.000Z
import os import subprocess import sys import tempfile from pathlib import Path from shutil import rmtree from typing import Union import ruamel.yaml from fabric.connection import Connection from ..extract import BoardInfoExtractor, ClockInfoExtractor from ..model import ( ByteSize, ExpressionInt, HexInt,...
33.268293
101
0.53629
8481dab66f9e2cfb5f4a862bbb515bf2add60cfe
15,837
py
Python
rbac/common/protobuf/task_transaction_pb2.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
rbac/common/protobuf/task_transaction_pb2.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
rbac/common/protobuf/task_transaction_pb2.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: task_transaction.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection ...
40.607692
1,242
0.744522
84855b06edbce47be8be019a1c35ca3de52b1118
4,773
py
Python
tests/onegov/election_day/views/test_views_vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/views/test_views_vote.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from freezegun import freeze_time from tests.onegov.election_day.common import login from tests.onegov.election_day.common import upload_complex_vote from tests.onegov.election_day.common import upload_vote from webtest import TestApp as Client def test_view_vote_redirect(election_day_app): client =...
31.196078
79
0.655982
04d162a965363ad1f9b1f69b2924edb8d9d1c0f1
283
py
Python
pages/themes/beginners/OOP/examples/simple_Person_class.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/OOP/examples/simple_Person_class.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/OOP/examples/simple_Person_class.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
class Person: def __init__(self, name, age): self.name = name self.age = age def greet(self): print("Hi there! I'm {}, {} years old!".format(self.name, self.age)) maria = Person("Maria Popova", 25) pesho = Person("Pesho", 27) print(maria) # name = Maria Popova # age = 25
18.866667
70
0.64311
b6f04046105866524e6719bf5bc6e1a8bd60e864
1,703
py
Python
nz_django/day6/form_demo2/front/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day6/form_demo2/front/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day6/form_demo2/front/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render from django.http import HttpResponse from django.views import View from .forms import Myform,RegisterForm from .models import User class IndexView(View): def get(self,request): form = Myform() return render(request,'index.html',context={'form':form}) def post...
43.666667
232
0.613623
f3eb9e0918ed5ee8a6b0396f20b35e80d396d9e4
54
py
Python
DataProcess/utils/test.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/test.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/utils/test.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
import numpy as np a = [1, 2, 3, 4, 5] print(a[-3:])
10.8
19
0.518519