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
9cab0ea373d090a23b915151a659bda9742cdc82
1,535
py
Python
DCTF/2021/crypto/Just_Take_Your_Time/just-take-your-time.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
DCTF/2021/crypto/Just_Take_Your_Time/just-take-your-time.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
DCTF/2021/crypto/Just_Take_Your_Time/just-take-your-time.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
#!/usr/bin python3 from flag import flag from Crypto.Cipher import DES3 from time import time from random import randint from secrets import token_hex from pytimedinput import timedInput guess = 3 TIMEOUT = 1 a = randint(1000000000000000, 9999999999999999) b = randint(1000000000000000, 9999999999999999) print("Show...
27.909091
118
0.648208
9cc1cbf6d98245c868859daf6d01bbac6099eec3
303
py
Python
Curso_Python/Secao8-Django-Basico/157_Ola_mundo/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao8-Django-Basico/157_Ola_mundo/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao8-Django-Basico/157_Ola_mundo/main.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
# TODA VEZ TEM QUE INSTALAR O DJANGO # pip install django # django-admin startproject projeto . # Criar a pasta principal do django OBS: sempre lembrar do ponto no final # python manage.py startapp blog # Criar o blog # python manage.py runserver # Mostra o django no navegador
43.285714
114
0.709571
141304a6b6d176b0d062de7f5d517888f7e71e0a
1,994
py
Python
covidash/dashboard/data_store.py
CRitter93/covidash
9daaa8e17c2487068bfd7a7b581880ee6698cedd
[ "Apache-2.0" ]
1
2020-05-11T17:54:58.000Z
2020-05-11T17:54:58.000Z
covidash/dashboard/data_store.py
CRitter93/covidash
9daaa8e17c2487068bfd7a7b581880ee6698cedd
[ "Apache-2.0" ]
null
null
null
covidash/dashboard/data_store.py
CRitter93/covidash
9daaa8e17c2487068bfd7a7b581880ee6698cedd
[ "Apache-2.0" ]
null
null
null
import json import os.path import pandas as pd class DataStore: def __init__(self, data_folder): self.data = {} with open(os.path.join(data_folder, 'raw', 'rki_corona_landkreise.geojson')) as json_file: self.data['geo_landkreise'] = json.load(json_file) self.data['rki_landkrei...
66.466667
167
0.697091
143ea2147dcad7c7707094f1433463434dac4d94
3,784
py
Python
src/python3_learn_video/dict.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/dict.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
src/python3_learn_video/dict.py
HuangHuaBingZiGe/GitHub-Demo
f3710f73b0828ef500343932d46c61d3b1e04ba9
[ "Apache-2.0" ]
null
null
null
brand = ['李宁', '耐克', '阿迪达斯', '鱼c工作室'] slogan = ['一切皆有可能', 'Just do it', 'Impossible is nothing', '让编程改变世界'] print('---------------------------------------------') print('鱼C工作室的口号是:', slogan[brand.index('鱼c工作室')]) print('---------------------------------------------') dict1 = {'李宁': '一切皆有可能', '耐克': 'Just do it', '阿迪达斯...
23.949367
97
0.37315
2c005e6e07823d983bb8cd812c42152a7276e500
2,858
py
Python
cs/lambda_cs/07_computer_architecture/notes/674/comp_beej.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/07_computer_architecture/notes/674/comp_beej.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/07_computer_architecture/notes/674/comp_beej.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
import sys # Write a program in Python that runs programs # Parse the command line program_filename = sys.argv[1] PRINT_BEEJ = 1 HALT = 2 SAVE_REG = 3 # Store a value in a register (in the LS8 called LDI) PRINT_REG = 4 # corresponds to PRN in the LS8 PUSH = 5 POP = 6 CALL = 7 RET = 8 """ memory = [ PRINT_BEEJ, ...
21.014706
70
0.575927
2c2cdfb702389bd40d6818dedd5a6df4fa3fb728
869
py
Python
app/bpurls.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/bpurls.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
app/bpurls.py
luoweis/xskAdmin
d92d0297102140ce5241a0c9f3a80f520bee96a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from flask import Blueprint from flask_restful import Api from .views.apis.view import * import os # 首页内容的蓝本 mainBP = Blueprint( 'mainBP', __name__, url_prefix='/', template_folder=os.path.join(os.path.dirname(__file__), "templates/main")) # 教学资源内容的蓝本 teachingBP =...
26.333333
91
0.726122
d38431afa8366e53f58f6f1eb46ff726dbab1132
1,027
py
Python
FVVisualization.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-03-28T11:50:45.000Z
2020-12-08T13:36:26.000Z
FVVisualization.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
2
2020-04-20T11:12:59.000Z
2020-05-11T05:37:36.000Z
FVVisualization.py
FrieAT/MD_CompressedWavelet
82bd10edd611485cd5f0b81da744e07a3b7c98eb
[ "MIT" ]
null
null
null
from ImageData import OrigPic, WaveletPic, FVExtraction from bokeh.plotting import figure, output_file, show from bokeh.io import output_notebook class FVVisualization(): t = OrigPic("images/MMCBNU_6000/003/R_Ring/01.bmp") im = OrigPic("images/MMCBNU_6000/003/R_Fore/01.bmp") w = WaveletPic() f = FVE...
25.04878
56
0.514119
4cdc3fda0d8ff79da8816c79eca471c936f35cfe
64
py
Python
crawlab/constants/node.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-08-20T14:26:39.000Z
2019-08-20T14:26:39.000Z
crawlab/constants/node.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
9
2019-05-24T03:53:09.000Z
2022-02-26T10:53:48.000Z
crawlab/constants/node.py
anhilo/crawlab
363f4bf7a4ccc192a99850998c1bd0fc363832a1
[ "BSD-3-Clause" ]
1
2019-11-08T08:12:40.000Z
2019-11-08T08:12:40.000Z
class NodeStatus: ONLINE = 'online' OFFLINE = 'offline'
16
23
0.640625
1a2f0f61afd76a87fe73e5a154f969f50391dd65
1,933
py
Python
source/api/bot_methods.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:56:12.000Z
2020-03-26T12:06:51.000Z
source/api/bot_methods.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2018-04-07T14:55:31.000Z
2018-04-25T07:43:29.000Z
source/api/bot_methods.py
weberval/SocialBot
f45e16c28fe2a1283b09b1f5c7b6334ef03f9a7b
[ "MIT" ]
2
2019-09-06T22:31:43.000Z
2020-03-26T12:06:51.000Z
from api.api_error import APIError from api.api_message import APIMessage from api.json_connector import JSONConnector from api.api_config import APIConfig from api.ptp_connector import PTPConnector class BotMethods: @staticmethod def start_bot(req): """ Starts a PTP Bot object. :para...
33.912281
109
0.616658
1a33447b87f600241916ca98527bfe7cb44eef5f
126
py
Python
1_basics/3_luftballon.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
1_basics/3_luftballon.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
1_basics/3_luftballon.py
Coding-for-the-Arts/drawbot-samples-solutions
7191610d6efd7d788056070e7826d255b7ef496b
[ "CC0-1.0" ]
null
null
null
""" Luftballon Bewege den Korb unter den Ballon. """ newPage(1000, 1000) oval(300, 400, 500, 500) rect(450, 100, 200, 200)
11.454545
33
0.666667
46d8ad471759bdfa54c33f1dfd4f06bf90f41c08
959
py
Python
exercises/pt/test_02_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_02_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/pt/test_02_06.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
def test(): assert ( "import Doc, Span" in __solution__ or "import Span, Doc" in __solution__ ), "Você importou o documento Doc e a partição Span corretamente?" assert doc.text == "Eu adoro David Bowie", "Você criou o Doc corretamente?" assert span.text == "David Bowie", "Você criou a partição S...
53.277778
89
0.683003
200f60ccc1efee266c7f0729e58d7e2b2e51bee1
153
py
Python
app/sockets.py
flifloo/status
f1f075d7cf9f016f95878692d34e419b76bba268
[ "MIT" ]
null
null
null
app/sockets.py
flifloo/status
f1f075d7cf9f016f95878692d34e419b76bba268
[ "MIT" ]
null
null
null
app/sockets.py
flifloo/status
f1f075d7cf9f016f95878692d34e419b76bba268
[ "MIT" ]
null
null
null
from flask_socketio import emit from app import socketio @socketio.on("connect") def connect(): print("New connection") emit("connect", "ok")
15.3
31
0.699346
203e700f340561492c42a612085752562ec60b92
1,739
py
Python
research/cv/autoaugment/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/cv/autoaugment/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/cv/autoaugment/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.44186
90
0.642898
37874e6d7216d0dbd15a5cb055d6c6aba2268958
17,455
py
Python
backend/app.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/app.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/app.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
from flask import Flask, Markup from flask import ( url_for, request, redirect, render_template, send_from_directory, ) # Flask extensions from flask_api import FlaskAPI from flask_flatpages import FlatPages from flask_migrate import Migrate from flask_sqlalchemy import SQLAlchemy from sqlalchemy impor...
34.428008
108
0.654598
80b6c0e575b0898bbd6a97c1fa8c83784b7f1b29
2,006
py
Python
examples/model_interpretation/task/similarity/simnet/gen_vocab.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/model_interpretation/task/similarity/simnet/gen_vocab.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/model_interpretation/task/similarity/simnet/gen_vocab.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
32.354839
77
0.590728
80d3950bc5aed9c4755016e724ad69c79d1a304c
320
py
Python
data-structures/week3_hash_tables/4_substring_equality/substring_equality.py
yiping-wang/data-structures-and-algorithms-coursera
fc0ba34399c27b358ce52a323a52ab2eb095f156
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Data Structures & Algorithms/Algorithm Toolbox/week3_hash_tables/4_substring_equality/substring_equality.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Data Structures & Algorithms/Algorithm Toolbox/week3_hash_tables/4_substring_equality/substring_equality.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
# python3 import sys class Solver: def __init__(self, s): self.s = s def ask(self, a, b, l): return s[a:a+l] == s[b:b+l] s = sys.stdin.readline() q = int(sys.stdin.readline()) solver = Solver(s) for i in range(q): a, b, l = map(int, sys.stdin.readline().split()) print("Yes" if solver.ask(a, b, l) else "No")
18.823529
49
0.6125
03eccba5517f4f19049278af8be1b2e09e7352fd
5,915
py
Python
year_2/prog_base_sem1_cw/app/auth/forms.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_2/prog_base_sem1_cw/app/auth/forms.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_2/prog_base_sem1_cw/app/auth/forms.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, BooleanField, SubmitField, DateField, SelectField from wtforms.validators import DataRequired, Email, Length, Regexp, EqualTo from wtforms import ValidationError import re from ..models import User class LoginForm(FlaskForm): __formna...
40.513699
113
0.687912
45a75f848b8bbe20ac9c2621b28810527d7d9547
2,934
py
Python
python/course/leetcode/1~27/27. Remove Element.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/1~27/27. Remove Element.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/1~27/27. Remove Element.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/22 15:53 # @Author:TimVan # @File:27. Remove Element.py # @Software:PyCharm # 27. Remove Element # Given an array nums and a value val, # remove all instances of that value in-place and return the new length. # # Do not allocate extra space for another array, # you must do thi...
31.548387
95
0.593729
2b7c3e82b5e679ed99f48f9b1c009280f16da13b
702
py
Python
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P02_SummerOutfit.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P02_SummerOutfit.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
null
null
null
Python/M01_ProgrammingBasics/L03_ConditionalStatementsAdvanced/Exercises/Solutions/P02_SummerOutfit.py
todorkrastev/softuni-software-engineering
cfc0b5eaeb82951ff4d4668332ec3a31c59a5f84
[ "MIT" ]
1
2022-02-23T13:03:14.000Z
2022-02-23T13:03:14.000Z
weather = int(input()) time = input() Outfit = 0 Shoes = 0 if time == "Morning": if 10 <= weather <= 18: Outfit = "Sweatshirt" Shoes = "Sneakers" elif 18 < weather <= 24: Outfit = "Shirt" Shoes = "Moccasins" else: Outfit = "T-Shirt" Shoes = "Sandals" if tim...
20.647059
65
0.519943
a6f3eb7e3921e53816a4258d671ef6bf90fae8a8
215
py
Python
game1/DicesSet.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
game1/DicesSet.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
game1/DicesSet.py
JordanG8/Bahr
03911f3ac7275f46abc510cf85c8850c31572203
[ "MIT" ]
null
null
null
import random d6Nums = range(1,7) d6_1 = random.choice(d6Nums) d6_2 = random.choice(d6Nums) def d6_2Set(): d6_1 = random.choice(d6Nums) d6_2 = random.choice(d6Nums) return [d6_1, d6_2]
15.357143
33
0.637209
5b4a4a00cb33a12441398ed50a13c5e18c138f3d
474
py
Python
test___main__.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
test___main__.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
test___main__.py
tentacle-project/tentacle
78aa1b9c6d25d964c1360cd05cd372505daedb34
[ "MIT" ]
null
null
null
# coding: utf-8 import pytest import multiprocessing from tentacle import sensor def test___main__(mocker): ''' test if tentacle.__main__ - calls tentacle.sensor.discover once ''' mock_sensor_discover = mocker.patch.object(sensor, 'discover') mock_multiprocessing_process = mocker.patch.obje...
24.947368
82
0.736287
5bbbe62a231b5724664e09df0bafae310eb13413
433
py
Python
doc/examples/packages/package_simple/check.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/examples/packages/package_simple/check.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/examples/packages/package_simple/check.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from transonic.aheadoftime import modules_backends from package_simple.calcul import laplace from package_simple.util import func laplace(np.ones((2, 2), dtype=np.int32)) func(1) func(2.) modules = modules_backends["pythran"] ts = modules["package_simple.calcul"] assert ts.backend.name == "pythr...
20.619048
50
0.766744
753a635a6e6483a86376462903ae7f44c050fb6c
1,484
py
Python
simple-sklearn-demo/test1/normalizationTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-07-05T03:42:17.000Z
2019-07-05T03:42:17.000Z
simple-sklearn-demo/test1/normalizationTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
null
null
null
simple-sklearn-demo/test1/normalizationTest.py
crackedcd/Intern.MT
36398837af377a7e1c4edd7cbb15eabecd2c3103
[ "MIT" ]
1
2019-06-24T05:56:55.000Z
2019-06-24T05:56:55.000Z
from sklearn.preprocessing import MinMaxScaler from pandas.core.frame import DataFrame def normalization_demo(): """ 适合小量精准数据 range指归一化的区间, 一般使用0~1, 即range_max = 1, range_min = 0 x_new = (x - min) / (max - min) x_final = x_new * (range_max - range_min) + range_min 在这个一般例子中, x_final = x_new ...
27.481481
115
0.475067
45efe3a123e6c422188492f7f74c63e47b640370
582
py
Python
tarefas-poo/lista-01/calculos/view/paineis/painel_soma_divisores.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_soma_divisores.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-01/calculos/view/paineis/painel_soma_divisores.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício calculos # -------------------------- # Classe responsável por calcular a soma dos divisores de um número inteiro. from view.paineis.painel_abstrato import PainelAbstrato from model.calculos import soma_dos_divisores class PainelSomaDivisores(Paine...
30.631579
76
0.623711
cab6d01a4f942eee33edef2310806114a33d4b14
254
py
Python
djangoForm/form/views.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/form/views.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/form/views.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
from django.shortcuts import render # from django.http import HttpResponse def Home(request): context = {} return render(request, 'form/home.html', context) def Add(request): context = {} return render(request, 'form/add.html', context)
25.4
53
0.704724
1b1ad926a14b8a1abfb0cdff1304d1ea2ec9e334
2,029
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/shapes/pois2inductionLoops.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/shapes/pois2inductionLoops.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/shapes/pois2inductionLoops.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) 2010-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...
33.262295
100
0.701331
942b8aa5485ed29264a20932fbcc08cab2bcee09
27,581
py
Python
Fastir_Collector/_analyzemft/mft.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/_analyzemft/mft.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/_analyzemft/mft.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/env python # Author: David Kovar [dkovar <at> gmail [dot] com] # Name: analyzeMFT.py # # Copyright (c) 2010 David Kovar. All rights reserved. # This software is distributed under the Common Public License 1.0 # # Date: May 2013 # import sys import struct import mftutils import binascii from optparse import...
40.147016
120
0.531852
84c8eea4fd0b45ee19407dcf148addb46ec1565d
6,855
py
Python
fence/jwt/validate.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
31
2018-01-05T22:49:33.000Z
2022-02-02T10:30:23.000Z
fence/jwt/validate.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
737
2017-12-11T17:42:11.000Z
2022-03-29T22:42:52.000Z
fence/jwt/validate.py
scottyellis/fence
012ba76a58853169e9ee8e3f44a0dc510f4b2543
[ "Apache-2.0" ]
46
2018-02-23T09:04:23.000Z
2022-02-09T18:29:51.000Z
import authutils.errors import authutils.token.keys import authutils.token.validate import flask import jwt from fence.config import config from fence.errors import Unauthorized from fence.jwt.blacklist import is_blacklisted from fence.jwt.errors import JWTError, JWTPurposeError from fence.jwt.utils import get_jwt_hea...
34.621212
94
0.599271
84ea0d0ed35ba1a3983d0771871adb9bd05f18bf
326
py
Python
tests/api/test_event_reference.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test_event_reference.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test_event_reference.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
def test_read(client, seeder, utils): user_id, admin_unit_id = seeder.setup_base() ( other_user_id, other_admin_unit_id, event_id, reference_id, ) = seeder.create_any_reference(admin_unit_id) url = utils.get_url("api_v1_event_reference", id=reference_id) utils.get_ok...
27.166667
66
0.677914
04cca37382fb1094498898396fbbb76a7ca8d302
13,139
py
Python
src/pfun/hypothesis_strategies.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/hypothesis_strategies.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/hypothesis_strategies.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from string import printable from typing import (Any, Callable, Generic, Iterable, NoReturn, Tuple, TypeVar, Union) from . import (Dict, Immutable, List, aio_trampoline, effect, either, maybe, trampoline) try: from hypothesis.strategies import ( booleans, builds,...
29.592342
79
0.605906
f3df84962a6cee601e9fecab6f627df617f484e3
563
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_inverte.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_inverte.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_inverte.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por inverter os números de uma lista. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import inverte class PainelInverte(PainelAbstrato): def...
29.631579
72
0.630551
6d51b85a91f8ba204c604eb1ad5333fa51eb0fa8
235
py
Python
pacman-arch/test/pacman/tests/sync104.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/sync104.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/sync104.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "-Suu" sp = pmpkg("dummy", "0.9-1") lp = pmpkg("dummy", "1.0-1") self.addpkg2db("sync", sp) self.addpkg2db("local", lp) self.args = "-Suu" self.addrule("PACMAN_RETCODE=0") self.addrule("PKG_VERSION=dummy|0.9-1")
18.076923
39
0.655319
edb66a951aad5e278e1f94b836f269efdb423069
1,657
py
Python
tests/onegov/election_day/collections/test_data_source_item_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/collections/test_data_source_item_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/collections/test_data_source_item_collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day.collections import DataSourceCollection from onegov.election_day.collections import DataSourceItemCollection from onegov.election_day.models import DataSource from onegov.election_day.models import DataSourceItem from uuid import uuid4 def test_data_source_item_collection(session): DataSo...
36.021739
78
0.719372
fcb5a6adbc22e7aebde189ca3a7b690e52f19534
2,314
py
Python
Intro-Python-I/src/11_args.py
tobias-fyi/01_intro_python
c56645291b8bce94d8511c3277fefba1fe8add89
[ "MIT" ]
null
null
null
Intro-Python-I/src/11_args.py
tobias-fyi/01_intro_python
c56645291b8bce94d8511c3277fefba1fe8add89
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/01_intro_python/Intro-Python-I/src/11_args.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
# Experiment with positional arguments, arbitrary arguments, and keyword # arguments. # Write a function f1 that takes two integer positional arguments and returns # the sum. This is what you'd consider to be a regular, normal function. def f1(n1: int, n2: int): return n1 + n2 print(f1(1, 2)) # Write a functi...
24.357895
80
0.655575
ec9c55e7cb843f3bd68944875894bfa625ef195a
1,085
py
Python
python/game/area.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
1
2020-09-29T17:44:31.000Z
2020-09-29T17:44:31.000Z
python/game/area.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
python/game/area.py
rissom/RC3MUD
d5ffb8b79a6a95e9389ee0576f52dfee1f52c4ee
[ "MIT" ]
null
null
null
from system.serializer import Serializer class Area(object): all_areas = [] def get_area_by_id(areaid): for area in Area.all_areas: if area.id == areaid: return area area = Serializer.get_area(areaid) Area.all_areas.append(area) return area ...
27.820513
77
0.530876
01e82125161653b14f47814b27ec13b13e6de664
2,286
py
Python
process_video/review_video.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
process_video/review_video.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
process_video/review_video.py
Vuong02011996/opencv_tools
82e4ff6dc42d3dc404dbdb7b4bec0d267af56daa
[ "MIT" ]
null
null
null
import cv2 import imutils def on_pos_video_trackbar(val): global vs, frame_index if val != frame_index: frame_index = val vs.set(cv2.CAP_PROP_POS_FRAMES, frame_index) print("Set Pos : ", val) def mouse_callback(event, x, y, flags, param): global mouse_down global step i...
28.222222
91
0.638233
e54e08734cf7049ab35f6c114a7363fe8419350e
12,608
py
Python
repo/service.vpn.manager/mapkey.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/service.vpn.manager/mapkey.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/service.vpn.manager/mapkey.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2016 Zomboided # # 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 3 of the License, or # (at your...
43.777778
278
0.53355
f92862dabab73786f782ce2acb776c414c7dc3ee
822
py
Python
demos/Multiscale/ThreeSidedBasic/model/parts/utils.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
56
2020-07-08T23:23:15.000Z
2022-03-11T20:43:09.000Z
demos/Multiscale/ThreeSidedBasic/model/parts/utils.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
41
2020-07-11T23:24:06.000Z
2022-01-28T13:28:07.000Z
demos/Multiscale/ThreeSidedBasic/model/parts/utils.py
w-ghub/demos
6382676fae89bd5a190626612712fcedf17bca6d
[ "MIT" ]
39
2020-07-15T11:35:04.000Z
2022-02-01T16:02:51.000Z
# import libraries import pandas as pd import numpy as np import matplotlib.pyplot as plt ##### Utils def aggregate_runs(df,aggregate_dimension): ''' Function to aggregate the monte carlo runs along a single dimension. Parameters: df: dataframe name aggregate_dimension: the dimension you would li...
31.615385
100
0.744526
9794de96db27329ecb7e1c35dff8d1acd0296dfd
3,184
py
Python
project/utils.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/utils.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/utils.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
import os import pathlib from flask_babelex import lazy_gettext from psycopg2.errorcodes import CHECK_VIOLATION, UNIQUE_VIOLATION from sqlalchemy.exc import IntegrityError from sqlalchemy.orm.base import NO_CHANGE, object_state def strings_are_equal_ignoring_case(string1: str, string2: str): return string1 and s...
26.756303
86
0.675251
97c744ec5dc65470dcdd53d85b86435afeb6d15c
2,076
py
Python
QImageHandler.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
QImageHandler.py
siej88/FuzzyACO
989a58049c8417cd023cfc312fb99d2649333ca7
[ "MIT" ]
null
null
null
QImageHandler.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...
36.421053
100
0.650289
c1a3aa1e8ed6a5688edf611695bb40eada91e282
6,212
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/xml/binary2plain.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/xml/binary2plain.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/xml/binary2plain.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...
29.865385
109
0.608661
a9dac3cf637fc35202d0314bbd3711a593c3a3f5
5,214
py
Python
official/cv/googlenet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/googlenet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/googlenet/eval.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...
39.801527
114
0.640391
e768e00b3e321f80fffdf2b642ee033f55688638
12,981
py
Python
tests/onegov/translator_directory/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/translator_directory/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/translator_directory/test_views.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import copy from datetime import datetime from io import BytesIO from unittest import mock import transaction from webtest import Upload from xlsxwriter import Workbook from onegov.gis import Coordinates from onegov.translator_directory.collections.translator import \ TranslatorCollection from onegov.translator_d...
32.210918
76
0.664356
e773cbf0c7e790511a5293e4ec3a59f1f2f0dc56
451
py
Python
server/apps/user_operation/migrations/0003_auto_20190422_1949.py
Mayandev/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
129
2019-04-20T08:23:25.000Z
2022-03-14T10:02:23.000Z
server/apps/user_operation/migrations/0003_auto_20190422_1949.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
9
2019-05-19T15:06:17.000Z
2021-12-14T06:47:14.000Z
server/apps/user_operation/migrations/0003_auto_20190422_1949.py
heartplus/django_morec
8d115f76ad69d7aa78b07dc06aa7047979ad134b
[ "MIT" ]
34
2019-05-06T06:37:17.000Z
2021-12-09T02:27:58.000Z
# Generated by Django 2.1.4 on 2019-04-22 19:49 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('user_operation', '0002_auto_20190422_1445'), ] operation...
22.55
66
0.660754
41ca50e47f6e91fead4f0a4e4a4183416311341e
1,496
py
Python
src/pfun/monad.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
126
2019-09-16T15:28:20.000Z
2022-03-20T10:57:53.000Z
src/pfun/monad.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
54
2019-09-30T08:44:01.000Z
2022-03-20T11:10:00.000Z
src/pfun/monad.py
suned/pfun
46c460646487abfef897bd9627891f6cf7870774
[ "MIT" ]
11
2020-01-02T08:32:46.000Z
2022-03-20T11:10:24.000Z
from abc import ABC, abstractmethod from functools import reduce from typing import Any, Callable, Iterable from .functions import curry from .functor import Functor class Monad(Functor, ABC): """ Base class for all monadic types """ @abstractmethod def and_then(self, f: Callable[[Any], Any]) -> ...
24.129032
76
0.625668
d4054f431b94b6f07fb6087a05298abff8a4a9ef
1,337
py
Python
Textadventure/enemies_name_generator/enemies_name_generator.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
Textadventure/enemies_name_generator/enemies_name_generator.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
Textadventure/enemies_name_generator/enemies_name_generator.py
clemens2107/textadventure
870f3ff98accdadad386a2cae4bd4328341f7eb9
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Dec 4 16:13:26 2020 @author: Clemens """ import random first_name_list = [] last_name_list = [] titel_list = [] # Convert First name.txxt in a list def first_name(): first_name = open("First name.txt","r") for zeile in first_name: if "\n" in zeile: ...
25.711538
137
0.62528
d460d060a2b44e2054a53c1be0f62acfe94bc2a3
1,509
py
Python
tarefas-poo/lista-03/tribo/model/guerreiro.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/tribo/model/guerreiro.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-03/tribo/model/guerreiro.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5663 # Exercício da Tribo # -------------------------- # Classe que representa um guerreiro. # class Guerreiro: def __init__(self, nome, max_vidas): '''Cria um guerreiro sabendo-se o seu nome e o número máximo de vidas que pode ter. Inicialmente ...
25.576271
91
0.530152
2e741ea34d31fd40d5cec7d6118f9fdd6ce967c1
1,251
py
Python
loesungsvorschlaege/ml_1_lineare_regression/praxis/lin_reg_abstrakt_mit_matrizen.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/ml_1_lineare_regression/praxis/lin_reg_abstrakt_mit_matrizen.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
loesungsvorschlaege/ml_1_lineare_regression/praxis/lin_reg_abstrakt_mit_matrizen.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
# Beispiel aus dem Skript in Python programmiert # 3.7 Abstraktes Beispiel # 3.8 Methode der kleinsten Quadrate # 3.9 Abstraktes Beispiel # 3.10 Lösung für die Methode der kleinsten Quadrate import numpy as np # Daten als Matrix darstellen: 4 Zeilen und 3 Spalten # Angabe erfolgt zeilenweise: [10, 1, 1] ist die erste...
34.75
91
0.661071
cf6450ca31f84f0c6d9169d62495ded8bf1e530f
3,451
py
Python
test/test_npu/test_network_ops/test_kl_div.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_kl_div.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_kl_div.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...
44.818182
111
0.618661
d8ee93944f33c89662a0122800a55509e2542df2
276
py
Python
Licence 2/I33/Exam 2/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/Exam 2/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/Exam 2/ex_3.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def resolution(A, b): x = [b[0] / A[0][0]] for i in range(1, len(A)): somme = b[i] for j in range(i): somme += A[i][j] * x[j] x.append(somme / A[i][i]) return x print(resolution([[2, 1, -1], [0, 2, 2], [0, 0, 1]], [1, 2, 3]))
23
64
0.416667
5189f89843a07af11f5e1246527ae32b7e693f4f
500
py
Python
find-common-characters/find-common-characters.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
find-common-characters/find-common-characters.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
find-common-characters/find-common-characters.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
class Solution: def commonChars(self, words: List[str]) -> List[str]: basis = words[0] output=[] word_list=[list(word) for word in words[1:]] for s in basis: contained=True for word in word_list: if s not in word: contained=...
31.25
57
0.462
51f2ab821be001cb20183d06275f38fec927d5fd
21,173
py
Python
data/midea2lox.py
seppe912/Midea2Lox
7967afd227d7b7f7130abc710cd97b4f7f840a37
[ "Apache-2.0" ]
2
2019-03-05T11:59:47.000Z
2021-11-16T23:05:34.000Z
data/midea2lox.py
seppe912/Midea2Lox
7967afd227d7b7f7130abc710cd97b4f7f840a37
[ "Apache-2.0" ]
1
2019-08-20T13:48:20.000Z
2020-05-29T13:12:06.000Z
data/midea2lox.py
seppe912/Midea2Lox
7967afd227d7b7f7130abc710cd97b4f7f840a37
[ "Apache-2.0" ]
null
null
null
#!REPLACELBPBINDIR/venv/bin/python3 # -*- coding: utf-8 -*- import logging import sys Midea2Lox_Version = '3.1.4' #set path cfg_path = 'REPLACELBPCONFIGDIR' #### REPLACE LBPCONFIGDIR #### log_path = 'REPLACELBPLOGDIR' #### REPLACE LBPLOGDIR #### home_path = 'REPLACELBHOMEDIR' #### REPLACE LBHOMEDIR #### # TCP Socket...
50.411905
458
0.565909
8f7299cd457f95d80aa34043f96b7b0c4bcb5e7e
486
py
Python
Scripts/rioFib.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
8
2020-10-26T06:51:06.000Z
2021-04-02T13:01:27.000Z
Scripts/rioFib.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
71
2020-10-25T22:46:02.000Z
2021-10-14T06:47:39.000Z
Scripts/rioFib.py
kenanchristian/hacktoberfest
b55750bf4facb77abd532b66ed37101e2895c4d7
[ "MIT" ]
77
2020-10-24T01:53:46.000Z
2021-10-01T06:25:27.000Z
# Function for nth Fibonacci number def Fibonacci(n): if n<0: print("Incorrect input") # First Fibonacci number is 0 elif n==1: return 0 # Second Fibonacci number is 1 elif n==2: return 1 else: return Fibonacci(n-1)+Fibonacci(n-2) # Driver Program...
21.130435
54
0.59465
a413d3598435823481f2d69e3770d1fc6018dbea
563
py
Python
LF6/md5_coll.py
JohannesMuelle/workshops
af9140159e3872aff75864ced99b5163d7bba1ba
[ "CC0-1.0" ]
5
2016-07-07T09:00:31.000Z
2017-03-09T22:46:33.000Z
LF6/md5_coll.py
JohannesMuelle/workshops
af9140159e3872aff75864ced99b5163d7bba1ba
[ "CC0-1.0" ]
null
null
null
LF6/md5_coll.py
JohannesMuelle/workshops
af9140159e3872aff75864ced99b5163d7bba1ba
[ "CC0-1.0" ]
8
2016-05-13T14:29:06.000Z
2019-10-20T16:43:32.000Z
from array import array from hashlib import md5 import difflib input1 = array('I', [0x6165300e,0x87a79a55,0xf7c60bd0,0x34febd0b,0x6503cf04, 0x854f709e,0xfb0fc034,0x874c9c65,0x2f94cc40,0x15a12deb,0x5c15f4a3,0x490786bb, 0x6d658673,0xa4341f7d,0x8fd75920,0xefd18d5a]) input2 = array('I', [x^y for x,y in zip(inpu...
33.117647
81
0.687389
7433708953a397dd892ead5a9db66d0af0a9f6e0
655
py
Python
backend/apps/iamstudent/migrations/0010_auto_20200405_2217.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/iamstudent/migrations/0010_auto_20200405_2217.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/iamstudent/migrations/0010_auto_20200405_2217.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-05 22:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('iamstudent', '0009_merge_20200402_2309'), ] operations = [ migrations.AddField( model_name='student', name='ausbildu...
27.291667
71
0.648855
77e77928f948a612fa035622e91c0667d8d7c4ab
1,432
py
Python
src/rqt_bt/dotcode.py
mortenmj/rqt_bt
9aee7aef14bb22da4ac47d6ce71dc7f8040e16fa
[ "MIT" ]
null
null
null
src/rqt_bt/dotcode.py
mortenmj/rqt_bt
9aee7aef14bb22da4ac47d6ce71dc7f8040e16fa
[ "MIT" ]
null
null
null
src/rqt_bt/dotcode.py
mortenmj/rqt_bt
9aee7aef14bb22da4ac47d6ce71dc7f8040e16fa
[ "MIT" ]
null
null
null
#!/usr/bin/env python import itertools import pydot import rospy def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." a, b = itertools.tee(iterable) next(b, None) return itertools.izip(a, b) class RosBTDotcodeGenerator(object): def __init__(self, data_provider): self.data_provid...
27.538462
71
0.51257
7ac6c98c2cc99aa0dfa1de91ed622515bc1881cd
323
py
Python
src/doc/data_into_visit/data_examples/density.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/doc/data_into_visit/data_examples/density.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/doc/data_into_visit/data_examples/density.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import math from array import array nx = 10 ny = 10 nz = 10 vals = array('f') for iz in range(nz): z = float(iz) for iy in range(ny): y = float(iy) for ix in range(nx): x = float(ix) vals.append(math.sqrt(x*x+y*y+z*z)) f = open("density.bof", "wb") vals.tofile(f) f.close...
17.944444
47
0.544892
bb50cdc307e756a7b32650848df674bedbbaeba5
335
py
Python
setup.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
setup.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
setup.py
debauer/HomematicToInflux
233a837f0da031f331d771f0e6f7b55f488cd747
[ "MIT" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup setup(name='hmtoinflux', version='0.0', description='a bridge for sensor data from homematic to influxdb', long_description=open('README.md').read(), author='David Bauer', author_email='hmtoinflux@debauer.net', packages=['hmtoi...
27.916667
72
0.665672
24f9e340c82559db4f32f6abaa16ef2f1cd9ace1
14,906
py
Python
src/onegov/agency/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.agency.collections import ExtendedAgencyCollection from onegov.agency.collections import ExtendedPersonCollection from onegov.agency.models import AgencyMembershipMoveWithinAgency from onegov.agency.models import AgencyMembershipMoveWithinPerson from onegov.agency...
35.322275
79
0.426405
3b2db9f60270909356bdb173acbbee0eafb8b802
50
py
Python
main.py
DerEhrenmannausFrankfurt/FahrkartenKontrolleur-Bot
550133f3ebafe7e9169bed09e765b8a236557cce
[ "Apache-2.0" ]
null
null
null
main.py
DerEhrenmannausFrankfurt/FahrkartenKontrolleur-Bot
550133f3ebafe7e9169bed09e765b8a236557cce
[ "Apache-2.0" ]
null
null
null
main.py
DerEhrenmannausFrankfurt/FahrkartenKontrolleur-Bot
550133f3ebafe7e9169bed09e765b8a236557cce
[ "Apache-2.0" ]
null
null
null
BALD WIRD DER FAHRKARTENKONTROLLEUR BOT RELEASED
25
49
0.86
8dd24c5a9494a98786f85bb812f7a59ee72d6d1c
3,796
py
Python
attackdefense/old/Real-World-Webapps/RCE/exploits/33070.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
attackdefense/old/Real-World-Webapps/RCE/exploits/33070.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
attackdefense/old/Real-World-Webapps/RCE/exploits/33070.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
#!/usr/bin/python import random import hashlib import urllib from base64 import b64encode as b64 import sys import re # Exploit Title: Python exploit for ApPHP MicroBlog 1.0.1 (Free Version) - RCE # Exploit Author: LOTFREE # Version: ApPHP MicroBlog 1.0.1 (Free Version) # EDB-ID: 33030 print " -= LOTFREE exploit for...
28.757576
136
0.650421
30899af805091102d7f644a493729719b4db7323
3,002
py
Python
year_3/databases_sem1/lab1/maxdb/dbelement.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab1/maxdb/dbelement.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab1/maxdb/dbelement.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
""" Database element and Database foreign key element classes. Both DBElement and DBFKElement are json-serializable. DBElement and DBFKelement are objects with certain value and its type. Note, that type field is a string. Note, that type field has to match a column type in DBTable. DBFKElement has type and value of...
31.93617
93
0.61559
d6722b2cb94c73dcf08e5e8fd5517d4949c6b43c
862
py
Python
script_11_write_netcdf.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
1
2021-04-23T19:47:51.000Z
2021-04-23T19:47:51.000Z
script_11_write_netcdf.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
script_11_write_netcdf.py
melioristic/FANPY
2d68d222de4f1e6d6d802268253ce446cd924914
[ "MIT" ]
null
null
null
import h5py import pandas as pd from fanpy.io import read_climate_file index = 0 DATA_PATH = '/p/project/hai_hhhack/anand1/Project_Data/forest-carbon-flux/' cflux_csv = DATA_PATH + f'formind_sim/results_{index}_16ha/beech_general_00.cflux' df_cflux = pd.read_csv(cflux_csv, '\t', skiprows=[0,1]) print(df_cflux) fp...
23.297297
82
0.663573
ba6aa95f376493e97640409da4252cce59b5d8ee
11,669
py
Python
tests/test.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
tests/test.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
tests/test.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
# Standard Packages import sys sys.path.insert(0, '../') import io # 3rd Party Packages import numpy as np import matplotlib.pyplot as plt import scipy.ndimage from PyQt5.QtGui import QImage from PyQt5.QtWidgets import QApplication # Local Packages from modules.options import Options from plotting.modules.plotstyles...
55.042453
1,158
0.674694
0346880603aa4f7d9dd2f8c1992552d3b33325fa
6,281
py
Python
test/test_npu/test_network_ops/test_tanh.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_tanh.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_tanh.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...
45.18705
148
0.56456
06ac4fbc20b3bb0741bfe7c5dea4907c2db859ee
2,306
py
Python
frappe-bench/apps/erpnext/erpnext/education/doctype/student_attendance/student_attendance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/doctype/student_attendance/student_attendance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/doctype/student_attendance/student_attendance.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe import _ from frappe.utils import cstr from erpnext.education.api import get_...
39.758621
134
0.753686
cc892e2bd885e301388da4b7f04f0f53ae8d1249
135
py
Python
aoc2020/day_24/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_24/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_24/part_2.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * class Solution(SolutionABC): expected = None def solve(self) -> any: raise NoSolutionError()
13.5
31
0.651852
aeba0f75dc32413ccadf7d4313193780caf72bd6
2,298
py
Python
database/conexao.py
paulowiz/AiesecBot
ac77cc5426ed6382772603afa8015208020c0fba
[ "MIT" ]
6
2019-10-18T17:47:30.000Z
2021-03-18T06:04:06.000Z
database/conexao.py
paulowiz/AiesecBot
ac77cc5426ed6382772603afa8015208020c0fba
[ "MIT" ]
1
2020-09-24T08:17:29.000Z
2020-09-28T08:16:39.000Z
database/conexao.py
paulowiz/AiesecBot
ac77cc5426ed6382772603afa8015208020c0fba
[ "MIT" ]
3
2019-10-20T18:40:20.000Z
2021-04-15T01:27:59.000Z
import psycopg2 import psycopg2.extras # CLASS THAT YOU USE TO CONNECT ON POSTGRESQL DATABASE class conexao: def __init__(self, dbname, user, host, password): self.dbname = dbname self.user = user self.host = host self.password = password def conectadb(self): try: ...
31.916667
100
0.590949
9dafed274b29a1d4d8f750f6f37b10bbff5a68b7
6,189
py
Python
src/backend/backend.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-24T14:12:09.000Z
2020-03-25T07:43:10.000Z
src/backend/backend.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-23T11:56:03.000Z
2020-03-24T13:50:14.000Z
src/backend/backend.py
marco-koenen/Hackathon-WeVsVirus
48e8c44a935f728b3bb884dbb6213559742ba569
[ "MIT" ]
2
2020-03-20T22:00:58.000Z
2020-03-21T00:11:45.000Z
from flask import Flask, request, Response, jsonify from flask_cors import CORS, cross_origin from .sms import * import peewee from .db import * # Import after app is defined from .validphone import is_valid_phone_number, cleaned_number from datetime import datetime app = Flask(__name__) app.config.from_pyfile('config...
25.680498
87
0.672968
017880a0721658b95eff6b17b6cc18d9f4a6a752
118
py
Python
year_3/comppi_0/analytics/views.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/comppi_0/analytics/views.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/comppi_0/analytics/views.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
from django.shortcuts import render def indexanalytics(request): return render(request, 'analyticsindex.html')
16.857143
49
0.779661
a345e98f834655e8842ece099a58303140a1799d
379
py
Python
code/project/test/resource/__init__.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/project/test/resource/__init__.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/project/test/resource/__init__.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
''' Author: xyb Date: 2020-08-10 11:42:05 LastEditTime: 2020-08-10 12:05:26 ''' '''创建Blueprint''' from flask import Flask, Blueprint resource_bp = Blueprint('resource_bp', __name__, static_folder='static', static_url_path='/static', ...
27.071429
52
0.556728
c2cb9e8038c2c24c20c9bbf219bccf610b5b36c2
226
py
Python
image_segmentation/graph.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
image_segmentation/graph.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
null
null
null
image_segmentation/graph.py
gitskim/DnntalPrivate
20f84782e9ab20c68b43f32efb16cd22262b8ceb
[ "MIT" ]
2
2019-05-16T05:48:26.000Z
2021-01-27T01:26:22.000Z
import json ''' val_tp val_tn val_loss val_dsc dsc tn tp loss ''' with open('seg_5_15_7a.json', 'r') as f: json_obj = json.load(f) for obj in json_obj: # print(obj) #key print(json_obj['val_dsc']) #val
13.294118
40
0.628319
dd5f5bfabbf9517b321d516e110c6db1ebe836cc
810
py
Python
kraky/cli.py
agustinhenze/kraky
68428e1268e17162bb4a2049fa14f99cd70bddde
[ "MIT" ]
10
2021-01-13T19:19:31.000Z
2022-01-28T13:47:59.000Z
kraky/cli.py
agustinhenze/kraky
68428e1268e17162bb4a2049fa14f99cd70bddde
[ "MIT" ]
10
2021-01-21T13:07:03.000Z
2022-03-29T19:55:22.000Z
kraky/cli.py
agustinhenze/kraky
68428e1268e17162bb4a2049fa14f99cd70bddde
[ "MIT" ]
6
2021-04-01T18:43:31.000Z
2022-03-29T14:24:51.000Z
import asyncio import typer from kraky import KrakyApiClient app = typer.Typer() @app.command( context_settings={"allow_extra_args": True, "ignore_unknown_options": True} ) def main( ctx: typer.Context, endpoint: str, kraken_api_key: str = "", kraken_secret: str = "", tfa: bool = False ): ...
23.142857
82
0.633333
06d41b70ce164a620c1f25cc5a71294b5afe6f2a
2,453
py
Python
project/api/organization_invitation/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
project/api/organization_invitation/schemas.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
project/api/organization_invitation/schemas.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
from marshmallow import fields from project.api import marshmallow from project.api.organization.schemas import OrganizationRefSchema from project.api.schemas import ( IdSchemaMixin, PaginationRequestSchema, PaginationResponseSchema, SQLAlchemyBaseSchema, TrackableSchemaMixin, ) from project.models...
29.202381
87
0.786792
06f555fe25871421f31dd728f7baa1bc729d25d9
1,590
py
Python
DataStructures/Queues/FixedLength.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Queues/FixedLength.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
DataStructures/Queues/FixedLength.py
baby5/HackerRank
1e68a85f40499adb9b52a4da16936f85ac231233
[ "MIT" ]
null
null
null
#coding:utf-8 from collections import deque import pdb n, q = map(int, raw_input().split()) A_list = map(int, raw_input().split()) d_list = [int(raw_input()) for _ in xrange(q)] for d in d_list: #双端队列 dq = deque() best = None for i in xrange(n): #保证队列头是最大值 while dq and A_list(d...
21.2
64
0.48239
6628af6a8d25958b0b89aae35b13c30241500c6b
1,551
py
Python
cloudmesh_apachestorm/cloudmesh_apachestorm/plugins/cm_shell_apachestorm.py
futuresystems/465-oliverlewis
c1a093e9de012e752a2277c4fb533cbd974a5a8d
[ "Apache-2.0" ]
null
null
null
cloudmesh_apachestorm/cloudmesh_apachestorm/plugins/cm_shell_apachestorm.py
futuresystems/465-oliverlewis
c1a093e9de012e752a2277c4fb533cbd974a5a8d
[ "Apache-2.0" ]
null
null
null
cloudmesh_apachestorm/cloudmesh_apachestorm/plugins/cm_shell_apachestorm.py
futuresystems/465-oliverlewis
c1a093e9de012e752a2277c4fb533cbd974a5a8d
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os from cmd3.console import Console from cmd3.shell import command from cloudmesh_apachestorm.command_apachestorm import command_apachestorm class cm_shell_apachestorm: def activate_cm_shell_apachestorm(self): self.register_command_topic('mycommands', 'apache...
31.02
126
0.64539
b08716293fe4434af6a28ecfeaab24d4ef6b3673
145
py
Python
python/test/test_file.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/test/test_file.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/test/test_file.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
file_name = "input.txt" file = open(file_name,"r") sum_t = 0 for line in file: #print(line) sum_t = sum_t + int(line[:-1]) print(sum_t)
18.125
35
0.627586
a56b487ee164814b1b2ed37e24a8e38000baab81
57
py
Python
meerkat_consul/errors.py
meerkat-code/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
null
null
null
meerkat_consul/errors.py
meerkat-code/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
1
2018-07-18T16:36:12.000Z
2018-07-18T16:36:12.000Z
meerkat_consul/errors.py
fjelltopp/meerkat_consul
983851b360f330ad258e15d45d98251e0fe21100
[ "MIT" ]
null
null
null
class MissingCountryLocationIdError(ValueError): pass
28.5
48
0.842105
a716f8090345d62efec194528c3bd7118f6d84e5
81
py
Python
python/testlint/test/example_ignored.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/testlint/test/example_ignored.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/testlint/test/example_ignored.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
def ignored(): assert "a" == "b" def test_ignored(): assert "b" == "c"
11.571429
21
0.506173
ab88019879ee2a0df89ee2b584ea9208ff95dc3e
613
py
Python
Packs/CommonScripts/Scripts/HTMLtoMD/HTMLtoMD_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/HTMLtoMD/HTMLtoMD_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/HTMLtoMD/HTMLtoMD_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from HTMLtoMD import main from CommonServerPython import formats import demistomock as demisto def test_main(mocker): mocker.patch.object(demisto, 'args', return_value={'html': '<a href="http://demisto.com">Demisto</a>'}) mocker.patch.object(demisto, 'results') main() assert demisto.results.call_count...
38.3125
107
0.699837
abe47c0113319dbca0863981947a054a5e7dce9a
810
py
Python
src/onegov/page/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/page/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/page/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm.abstract import AdjacencyListCollection from onegov.page.model import Page class PageCollection(AdjacencyListCollection): """ Manages a hierarchy of pages. Use it like this: from onegov.page import PageCollection pages = PageCollection(session) """ __listclass_...
25.3125
75
0.630864
0533fd5c625029eab9ebf09fe691747359281a84
2,211
py
Python
api/models.py
scholaronroad/guts_2021_hackathon
482b7b59317b67fc37f67f1ccfeaadbf811c00ca
[ "MIT" ]
null
null
null
api/models.py
scholaronroad/guts_2021_hackathon
482b7b59317b67fc37f67f1ccfeaadbf811c00ca
[ "MIT" ]
2
2021-02-06T13:54:45.000Z
2021-02-06T20:05:18.000Z
api/models.py
scholaronroad/guts_2021_hackathon
482b7b59317b67fc37f67f1ccfeaadbf811c00ca
[ "MIT" ]
null
null
null
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): name = models.CharField("Name of user", blank=True, max_length=255) class Address(models.Model): # address for each charity as a model address_line_1 = models.CharField(max_length=256, null=True) ...
40.944444
91
0.771597
5557d8ca7ddb77c575c907e3ab01c60767666651
2,493
pyde
Python
Quizzes/QUiz2/DonglinQuiz2.pyde
robots-make-art-too/Donglin_yu
95eede21e94baf16db1770337234668a816a8056
[ "MIT" ]
null
null
null
Quizzes/QUiz2/DonglinQuiz2.pyde
robots-make-art-too/Donglin_yu
95eede21e94baf16db1770337234668a816a8056
[ "MIT" ]
null
null
null
Quizzes/QUiz2/DonglinQuiz2.pyde
robots-make-art-too/Donglin_yu
95eede21e94baf16db1770337234668a816a8056
[ "MIT" ]
null
null
null
numRobots = 15; robots = [0]*numRobots; robotC = [0]*numRobots; robotG = [0]*numRobots; currentRobot = 5; def setup(): size(1400,1080); global numRobots, robots; robotA = GrandRobot(0, [], 'A',500, 200); for i in range(numRobots): robots[i] = GrandRobot(0, [], 'Grand',random(1400), random(900)...
31.556962
103
0.597673
e98210eec6a0731a0ab11c808e4694da4b72be1e
82
py
Python
Boot2Root/hackthebox/Minion/scripts/decrypt.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
21
2016-02-06T14:30:01.000Z
2020-09-11T05:39:17.000Z
Boot2Root/hackthebox/Minion/scripts/decrypt.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
null
null
null
Boot2Root/hackthebox/Minion/scripts/decrypt.py
Kan1shka9/CTFs
33ab33e094ea8b52714d5dad020c25730e91c0b0
[ "MIT" ]
7
2017-02-02T16:27:02.000Z
2021-04-30T17:14:53.000Z
for char in '/2^c`.5_423a_.2-521/5-.26/5^.`c': print(chr(ord(char)+3),end="")
27.333333
46
0.560976
f9b58b1c004909aa1a910c3885bfa1b0ed6cf308
2,747
py
Python
py/jpy/src/test/python/jpy_gettype_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
210
2015-03-19T14:07:16.000Z
2022-03-31T19:28:13.000Z
py/jpy/src/test/python/jpy_gettype_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
py/jpy/src/test/python/jpy_gettype_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
40
2015-10-17T13:53:41.000Z
2021-07-18T20:09:11.000Z
import unittest import sys import jpyutil jpyutil.init_jvm(jvm_maxmem='512M', jvm_classpath=['target/test-classes']) import jpy if sys.version_info >= (3, 0, 0): TYPE_STR_PREFIX = '<class ' else: TYPE_STR_PREFIX = '<type ' class TestGetClass(unittest.TestCase): def test_get_class_of_primitive_array(s...
34.772152
104
0.647616
fd285e9d1670dbb0d751c9412be2311fc4d96ff3
1,775
py
Python
jumeaux/addons/final/csv.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/final/csv.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/final/csv.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import logging from owlmixin import OwlMixin, TList from jumeaux.addons.final import FinalExecutor from jumeaux.models import FinalAddOnPayload, FinalAddOnReference from jumeaux.logger import Logger logger: Logger = Logger(__name__) class Config(OwlMixin): column_names: TList[str] o...
32.272727
100
0.568451
1f31dfa95f78fa44cb400f9c603690179ca498b4
9,709
py
Python
yolov5-coreml-tflite-converter/inference-python/detect.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/inference-python/detect.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/inference-python/detect.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
import argparse import logging import time from collections import Counter from pathlib import Path import PIL import cv2 import numpy as np import torch from utils.datasets import LoadImages from constants import DEFAULT_IOU_THRESHOLD, DEFAULT_CONF_THRESHOLD, DEFAULT_DETECTED_IMAGE_DIR, \ DEFAULT_INPUT_RESOLUTIO...
46.233333
183
0.61685
c085e33ad482b0929a4413b9e49ea76c012e9b35
661
py
Python
DataStructures/Stacks/balanced_brackets.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
DataStructures/Stacks/balanced_brackets.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
DataStructures/Stacks/balanced_brackets.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def isBalanced(s): s = list(s) while True: for i in range(0, len(s) - 1): if ((s[i] == '{' and s[i + 1] == '}') or (s[i] == '[' and s[i + 1] == ']') or (s[i] == '(' and s[i + 1] == ')')): s.pop(i) ...
22.793103
52
0.366112
f1eac40f5f0dcb27ae6c69ed5ab87bf0c6cf8521
2,589
py
Python
files/meas/redpitaya_scpi/diodes_data_meas.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
files/meas/redpitaya_scpi/diodes_data_meas.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
files/meas/redpitaya_scpi/diodes_data_meas.py
mimeiners/ans
382e000e687d5ec0c80a84223087e60ed656a1dd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Sep 15 19:16:39 2019 @author: Mirco Meiners and Tim Ziemann """ #%% Init import time from datetime import datetime import numpy as np import pandas as pd # import matplotlib.pyplot as plt import redpitaya_scpi as scpi IP = '192.168.111.181' # IP of T...
28.141304
64
0.646968
a81ef97e8f90e304685e8739403da7283fb1822a
6,904
py
Python
pyconuk/views.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
3
2017-10-24T13:33:29.000Z
2017-10-30T10:47:28.000Z
pyconuk/views.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
78
2017-02-14T16:49:58.000Z
2018-04-19T06:28:42.000Z
pyconuk/views.py
PyconUK/2017.pyconuk.org
337a00c034a15e5b41a8ea8683dd44310e14fb9c
[ "MIT" ]
36
2017-06-19T07:48:38.000Z
2018-01-19T11:08:10.000Z
import os import posixpath from django.contrib.staticfiles import finders from django.http import Http404 from django.shortcuts import get_object_or_404, render from django.utils.six.moves.urllib.parse import unquote from django.views import static from .models import Page, Redirection, Session, Speaker, Sponsor from...
26.351145
96
0.580388
a91b8e79aeb2abba1c7142a43f55125caa50e302
161
py
Python
nz_django/day7/middle_ware_demo/user_agent.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day7/middle_ware_demo/user_agent.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day7/middle_ware_demo/user_agent.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
#pip install requests import requests headers = { 'User-Agent':'' } response = requests.get('http://127.0.0.1:8000/',headers=headers) print(response.text)
16.1
65
0.695652
5754e81bd8fdb01a30ff6d5936477b24ac1ec259
4,148
py
Python
CMSID/cmsid.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
CMSID/cmsid.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
CMSID/cmsid.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python3 #-*- coding:utf-8 -*- import time from datetime import datetime import requests import json import argparse import sys import platform import shutil import os import random banner_font = ''' Author : Dxvistxr CMS Identificator With API => \033[1;96mhttps://whatcms.org\033[00m 2019 ...
34
105
0.596191
196cbea02271b7591c5f2e7a9a495fa903eb305e
273
py
Python
Curso_Python/Secao2-Python-Basico-Logica-Programacao/02_comando_print/comando_print.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/02_comando_print/comando_print.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso_Python/Secao2-Python-Basico-Logica-Programacao/02_comando_print/comando_print.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
"""print('Hello Word') # todo: eu tenho que fazer algo print('Hello Word') print('Hello Word') print('Hello Word') print('Hello Word') print('Hello Word') print('Hello Word') # todo: aaaaaaaaaaaa""" lista = [2,1,5,4,9,10,20,90,85] lista.sort() lista.reverse() print(lista)
19.5
31
0.681319
27c2b478609029aae0c1a545d2686b169aef269c
251
py
Python
USACOContest/abcsbrute.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOContest/abcsbrute.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
USACOContest/abcsbrute.py
javaarchive/USACOClass2020
4ae563014b9b2da3e1361e175d38e72308a8da89
[ "MIT" ]
null
null
null
nums = list(map(int,input().split(" "))) nums = set(nums) for a in range(15): for b in range(a + 1, 15): for c in range(b + 1, 15): if len(({a,b,c,a+b,b+c,a+c,a+b+c}).intersection(nums)) == len(nums): print(a,b,c)
35.857143
79
0.501992
27ded00035b90d5ad6efd55a12b88c02f71e688a
9,888
py
Python
concorde/tests/test_concorde.py
drcraig/concorde
418b04d5bd93f541d3a0371b923700b767a03d29
[ "MIT" ]
2
2018-05-24T08:27:23.000Z
2019-01-06T18:55:15.000Z
concorde/tests/test_concorde.py
drcraig/concorde
418b04d5bd93f541d3a0371b923700b767a03d29
[ "MIT" ]
1
2017-05-20T10:05:49.000Z
2017-08-09T05:57:45.000Z
concorde/tests/test_concorde.py
drcraig/concorde
418b04d5bd93f541d3a0371b923700b767a03d29
[ "MIT" ]
null
null
null
# coding: utf-8 import unittest import os import time import datetime import argparse import mock import concorde import concorde.command_line CUR_DIR = os.path.dirname(__file__) TESTSITE = os.path.join(CUR_DIR, 'testsite') class TestGetSources(unittest.TestCase): def setUp(self): os.chdir(TESTSITE) ...
43.752212
107
0.595773
e348c4b309d380292e865ce502ac652c1b35d9a3
7,264
py
Python
chatbot/Service.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
1
2020-03-18T12:34:39.000Z
2020-03-18T12:34:39.000Z
chatbot/Service.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
1
2021-06-02T01:30:56.000Z
2021-06-02T01:30:56.000Z
chatbot/Service.py
PatrickNgZh/RecommenderSystem
0dbd3ac05ca8c1b5948a2605f1a9407f1ec59d39
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals import json import os import sys from argparse import ArgumentParser import requests from flask import Flask, request, abort from linebot import ( LineBotApi, WebhookParser ) from linebot.exceptions import ( InvalidSignatureError ) from linebot.models import ( Messa...
32.573991
211
0.603249
8bd3e5cbd89c1dbca984a05fb2b4cc76e643ec40
225
py
Python
day05/loop.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day05/loop.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day05/loop.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
fruits = ["Apple", "Peach", "Pear"] for fruit in fruits: print(fruit) print(fruit + " Pie") for number in range(1, 11, 3): print(number) total = 0 for number in range(1, 101): total += number print(total)
15
35
0.608889
ef3293b90d0af4423bbf3564d72bf3d0d25e073b
1,582
py
Python
pupil_invisible_monitor/src/pupil_invisible_monitor/gl_utils.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
pupil_invisible_monitor/src/pupil_invisible_monitor/gl_utils.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
pupil_invisible_monitor/src/pupil_invisible_monitor/gl_utils.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
""" (*)~--------------------------------------------------------------------------- Pupil - eye tracking platform Copyright (C) 2012-2019 Pupil Labs Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ----------------------------...
23.969697
80
0.62579
08edeb3daeb66a87dcc1bc8d95928e46585ad1f0
6,856
py
Python
python/RNN.py
Cl3V0r/MLSeminar
d05f171a9b7d773ea123e1919e07312a7f0c9fe8
[ "MIT" ]
null
null
null
python/RNN.py
Cl3V0r/MLSeminar
d05f171a9b7d773ea123e1919e07312a7f0c9fe8
[ "MIT" ]
null
null
null
python/RNN.py
Cl3V0r/MLSeminar
d05f171a9b7d773ea123e1919e07312a7f0c9fe8
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten, SimpleRNN, LeakyReLU, LSTM, SpatialDropout1D, Conv1D, MaxPooling1D from keras.preprocessing.text import one_hot, Tokenizer from keras.preprocessing.sequence import...
38.954545
130
0.700992
f5f32ac83d9d8ac24debbedc2b916e88f17757fe
14,778
py
Python
python-bildungslogin/ucs-test/97_bildungslogin_python/01_test_license.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/ucs-test/97_bildungslogin_python/01_test_license.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
python-bildungslogin/ucs-test/97_bildungslogin_python/01_test_license.py
univention/bildungslogin
29bebe858a5445dd5566aad594b33b9dd716eca4
[ "MIT" ]
null
null
null
#!/usr/share/ucs-test/runner /usr/bin/py.test -slvv --cov --cov-config=.coveragerc --cov-append --cov-report= # -*- coding: utf-8 -*- # # Copyright 2021 Univention GmbH # # https://www.univention.de/ # # All rights reserved. # # The source code of this program is made available # under the terms of the GNU Affero Gener...
47.517685
114
0.690351