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
f69a0c20b16fa0afd597e36d9906e85076eb0a89
1,547
py
Python
public-holiday-data/upload_public_holidays_db.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
public-holiday-data/upload_public_holidays_db.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
public-holiday-data/upload_public_holidays_db.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
import holidays import numpy as np import dateutil.parser from sqlalchemy.pool import NullPool from sqlalchemy import create_engine import pymysql import pandas as pd import requests from datetime import datetime, timedelta import json config = json.load(open("../credentials/credentials-aws-db.json", "r")) aws_engine ...
31.571429
101
0.644473
f6fe97db7a6d9b4fb84965346eb1027a604c481e
263
py
Python
9.4.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
9.4.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
9.4.py
RonaldZhao/NowCoder
935af39835a98efc14157e20df1e3458e02b9803
[ "MIT" ]
null
null
null
class LonelyA: def getWays(self, n, A, b, c): if n == 3: return 0 a = 1 for i in range(1, n + 1): a *= i ab = a / n * 2 ac = ab bac = a / n / (n - 1) * 2 return a - ab - ac + bac
21.916667
34
0.342205
89cc662617d6950844dd81ed3623417d85e442ad
3,349
py
Python
wechat_xiaowei/basewechat.py
jiangyx3915/wechat-xiaowei
cc81264431f5f771e3eb3506260ea68ee882d1fe
[ "MIT" ]
1
2020-07-13T16:08:48.000Z
2020-07-13T16:08:48.000Z
wechat_xiaowei/basewechat.py
jiangyx3915/wechat-xiaowei
cc81264431f5f771e3eb3506260ea68ee882d1fe
[ "MIT" ]
null
null
null
wechat_xiaowei/basewechat.py
jiangyx3915/wechat-xiaowei
cc81264431f5f771e3eb3506260ea68ee882d1fe
[ "MIT" ]
null
null
null
import os import hashlib import random import hmac from wechat_xiaowei.exception import WeChatException class BaseWeChat: # 请求根地址 WX_API_HOST = 'https://api.mch.weixin.qq.com/' # 根目录 ROOT_DIR = os.path.dirname(__file__) def __init__(self, wechat_config: dict): # 服务商商户号 self.mch_i...
28.87069
102
0.533592
d616c3114219bf5c53c5ffce084f61fab82445f0
125
py
Python
App/views.py
FlaskTeam/FlaskAXF
7b8c4128ca8339397274ab89ba2035768f16aa92
[ "Apache-2.0" ]
2
2018-04-23T08:44:44.000Z
2018-04-23T08:44:51.000Z
App/views.py
FlaskTeam/FlaskAXF
7b8c4128ca8339397274ab89ba2035768f16aa92
[ "Apache-2.0" ]
null
null
null
App/views.py
FlaskTeam/FlaskAXF
7b8c4128ca8339397274ab89ba2035768f16aa92
[ "Apache-2.0" ]
null
null
null
from flask import Blueprint blue = Blueprint("blue",__name__) def init_blue(app): app.register_blueprint(blueprint=blue)
25
42
0.784
7f069d0f43282233c010cd5353b53718049ca409
206
py
Python
lat/lightcurve_test.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
lat/lightcurve_test.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
lat/lightcurve_test.py
Omaam/lat
bb72c43fc870a36e26a32b05000d091871e07ad5
[ "MIT" ]
null
null
null
"""Test for lightcurve.py """ import unittest def make_sim_fitslightcurve(): return None class FitsLightCruveTest(unittest.TestCase): def calc_psd_check_number_of_bin_test(self): pass
13.733333
48
0.737864
0d375f4d5afbe5affa5d3c51083228c5644e61ee
280
py
Python
user.py
turutle/rep
7932c6889021fa0359ffe3931e731ef5b940f257
[ "MIT" ]
null
null
null
user.py
turutle/rep
7932c6889021fa0359ffe3931e731ef5b940f257
[ "MIT" ]
null
null
null
user.py
turutle/rep
7932c6889021fa0359ffe3931e731ef5b940f257
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Mar 25 23:31:20 2021 @author: turtl """ name = input ( "What is your name? -->") age = input ( "How old are you? -->") place = input ( "Where are you from? -->") print( "This is: {0} \nIt's': {1} \nFrom: {2}".format(name, age, place))
23.333333
72
0.560714
0d436e49eaa467b6dd67b5607592f7568d14af78
5,036
py
Python
_Dist/NeuralNetworks/_Tests/AdvancedNN/Test.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
1,107
2016-09-21T02:18:36.000Z
2022-03-29T02:52:12.000Z
_Dist/NeuralNetworks/_Tests/AdvancedNN/Test.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
18
2016-12-22T10:24:47.000Z
2022-03-11T23:18:43.000Z
_Dist/NeuralNetworks/_Tests/AdvancedNN/Test.py
leoatchina/MachineLearning
071f2c0fc6f5af3d9550cfbeafe8d537c35a76d3
[ "MIT" ]
776
2016-12-21T12:08:08.000Z
2022-03-21T06:12:08.000Z
import os import sys root_path = os.path.abspath("../../../../") if root_path not in sys.path: sys.path.append(root_path) from Util.Util import DataUtil from _Dist.NeuralNetworks.c_BasicNN.NN import Basic from _Dist.NeuralNetworks.e_AdvancedNN.NN import Advanced from _Dist.NeuralNetworks._Tests.TestUtil import dra...
43.042735
101
0.712073
257da1d68794daa3cc7281335c4394661f7cd43a
188
py
Python
Curso-Em-Video-Python/2Exercicios/097_um_print_especial.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/097_um_print_especial.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/097_um_print_especial.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
def linha(texto): print('-' * (len(texto) + 4)) print(f' {texto}') print('-' * (len(texto) + 4)) linha('Pedro') linha('Python é topzera') linha('Curso de Python No Youtube')
20.888889
35
0.574468
25862e4fc938671fd7e33c3b401732943b0c8201
440
py
Python
Algorithms/Implementation/Divisible_sum_pairs.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Implementation/Divisible_sum_pairs.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
Algorithms/Implementation/Divisible_sum_pairs.py
vinayvinu500/Hackerrank
e185ae9d3c7dc5cd661761142e436f5df6a3f0f1
[ "MIT" ]
null
null
null
# https://www.hackerrank.com/challenges/divisible-sum-pairs/problem?h_r=internal-search # array = [1, 3, 2, 6, 1, 2] # array = [1, 2, 3, 4, 5, 6] # array = [1,2] array = [0, 4, 2, 1, 0, 1] val = 1 size = len(array) # testing # if k = 1 then arr = [0,1] def divisibleSumPairs(n, k, ar): dsp = [(i, j) for i in ar f...
23.157895
87
0.575
25fe9dd5070cc9e2084dcd6d9e7dbb8582ddc49a
665
py
Python
common/libs/UrlManager.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
2
2019-06-10T08:57:47.000Z
2021-06-12T16:22:15.000Z
common/libs/UrlManager.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
common/libs/UrlManager.py
yao6891/FlaskOrdering
cbd24bd8d95afaba91ce4d6b1b3548c4e82e3807
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import time from application import app class UrlManager(object): def __init__(self): pass @staticmethod def build_url(path): return path @staticmethod def build_static_url(path): release_version = app.config.get('RELEASE_VERSION') ver = "%...
25.576923
83
0.62406
d39abe299393b3f9e64741d6f34334d0aa372eee
1,283
py
Python
torch/ao/quantization/_quantize_fx_do_not_use.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
4
2020-02-03T23:48:24.000Z
2022-01-06T14:39:06.000Z
torch/ao/quantization/_quantize_fx_do_not_use.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
14
2021-10-14T06:58:50.000Z
2021-12-17T11:51:07.000Z
torch/ao/quantization/_quantize_fx_do_not_use.py
vuanvin/pytorch
9267fd8d7395074001ad7cf2a8f28082dbff6b0b
[ "Intel" ]
7
2020-08-31T22:49:59.000Z
2020-09-15T14:29:07.000Z
import torch from torch.fx import GraphModule from typing import Dict, Any, Optional from .quantize_fx import ( _check_is_graph_module, check_is_valid_convert_custom_config_dict ) from .fx._convert_do_not_use import _convert_do_not_use def _convert_fx_do_not_use( graph_module: GraphModule, is_reference...
36.657143
85
0.758379
9fb972bc4fc8ff96a8e43b6ffc48e6e8b3e58aec
9,511
py
Python
data/tfrecord_decode.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
8
2021-03-07T10:25:21.000Z
2022-02-20T23:57:24.000Z
data/tfrecord_decode.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
null
null
null
data/tfrecord_decode.py
quanghona/SOLO_tf2
4aab0fc9115d210f08e694ec59b5f093ade8ce91
[ "MIT" ]
null
null
null
import tensorflow as tf import argparse import os import data.augmentation as aug class Parser(object): """A class to decode data and preprocessing from tfrecord file""" def __init__(self, input_size, grid_number, num_class, mode='train'): """Create instance for parser Args: input...
47.318408
125
0.587951
4c96655d9b5dfb81fa23133c089dabbbe4894e38
72
py
Python
multimeter/read_arduino_mock.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/read_arduino_mock.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
multimeter/read_arduino_mock.py
tropi-frutti/facharbeit-fhg
e162014a9d12e60c616d78c14166c75414acda7b
[ "MIT" ]
null
null
null
import globvar def read(): globvar.measure0 = "466" return
10.285714
26
0.611111
4cddf81b0bb82348bc90b5a5b17ee0c65f6a0610
197
py
Python
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.03-Returning-Multiple-Values-From-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.03-Returning-Multiple-Values-From-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/00.Fundamentals/08.03-Returning-Multiple-Values-From-Function.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
def add_sub(x, y): c = x + y d = x - y return c, d result1, result2 = add_sub(5, 4) print(result1, result2) def add_sub_mul(x, y): return x+y, x-y, x*y print(add_sub_mul(5, 4))
14.071429
32
0.57868
980d524effe0e6e61f01e8a75c347386be00f6eb
19,127
py
Python
Packs/CiscoEmailSecurity/Integrations/CiscoEmailSecurity/CiscoEmailSecurity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CiscoEmailSecurity/Integrations/CiscoEmailSecurity/CiscoEmailSecurity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CiscoEmailSecurity/Integrations/CiscoEmailSecurity/CiscoEmailSecurity_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import pytest from CiscoEmailSecurity import Client def get_fetch_data(): with open('./test_data.json', 'r') as f: return json.loads(f.read()) test_data = get_fetch_data() def test_date_to_cisco_date(): from CiscoEmailSecurity import date_to_cisco_date res = date_to_cisco_date('201...
43.970115
119
0.67674
e28544764071c2266c3f4617eb1b2b6f7d9eb341
218
py
Python
djangoForm/member/urls.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/member/urls.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
djangoForm/member/urls.py
lanuxos/djangoForm
4a0f02eaf27735c7eaaa4c282426cc911e2a399a
[ "MIT" ]
null
null
null
# member urls.py from django.contrib import admin from django.urls import path from . import views urlpatterns = [ path('', views.Add, name='member-page'), path('info', views.Info, name='member-info-page'), ]
21.8
54
0.692661
e29870f1829859d32f782df60d4fdb4cb953f746
577
py
Python
leetcode/404-Sum-of-Left-Leaves/SumofLeftLeaves_recursive.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-04-07T15:08:53.000Z
2016-04-07T15:08:53.000Z
leetcode/404-Sum-of-Left-Leaves/SumofLeftLeaves_recursive.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/404-Sum-of-Left-Leaves/SumofLeftLeaves_recursive.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def sumOfLeftLeaves(self, root): """ :type root: TreeNode :rtype: int """ return ...
26.227273
70
0.55286
2c4c2761bc355c04fca3eb8c05e56b615ac874a9
239
py
Python
jumeaux/addons/log2reqs/__init__.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/log2reqs/__init__.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/log2reqs/__init__.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- from owlmixin import TList from jumeaux.models import Log2ReqsAddOnPayload, Request class Log2ReqsExecutor: def exec(self, payload: Log2ReqsAddOnPayload) -> TList[Request]: raise NotImplementedError()
23.9
68
0.74477
1a46089f943a524d64cbf099d28dc751d9e129ed
301
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_2/add_currency_turkish_lira.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v4_2/add_currency_turkish_lira.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_2/add_currency_turkish_lira.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): return # country = get_country_info(country="Turkey") # add_country_and_currency("Turkey", country)
27.363636
68
0.780731
1a75f3f404c9bf064dae02b715a8b725ee9692c7
6,672
py
Python
examples/rest_endpoint.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
examples/rest_endpoint.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
null
null
null
examples/rest_endpoint.py
fgoettel/wgt
e093e2a003fa6c9d4c2082cebbc95701d7f9089d
[ "Unlicense" ]
1
2022-01-29T12:01:47.000Z
2022-01-29T12:01:47.000Z
"""Provide the WGT info to other services.""" import logging from datetime import timedelta from enum import Enum, EnumMeta from typing import Any, Dict, List, Union from aiohttp import web from aiohttp.web_request import Request from aiohttp.web_response import Response from wgt import WGT, __version__ from wgt.type...
30.605505
87
0.664718
46d8a43773625ffeee0eb4893ca46839c2766510
5,556
py
Python
telem.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
2
2016-03-17T09:39:34.000Z
2016-03-17T11:26:19.000Z
telem.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
telem.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
#Script to parse telemetry and control TX (NTX and Dongle) from datetime import * from time import * import serial import subprocess import os import datetime import re import ftplib from config import * def getData(filename="telem.txt"): data = open('telem.txt') lastData = data.readlines() lastData = lastData[-...
27.102439
358
0.61951
20a231e2a5c1dcc169a2e2d23c7c7416128c42af
1,331
py
Python
LoginSystem.py
Fzzfbu2/AutoGetTicket
bdc8f460cf70ce770ecf9b49ec498a7756742e14
[ "Apache-2.0" ]
1
2020-01-20T09:55:37.000Z
2020-01-20T09:55:37.000Z
LoginSystem.py
Fzzfbu2/AutoGetTicket
bdc8f460cf70ce770ecf9b49ec498a7756742e14
[ "Apache-2.0" ]
null
null
null
LoginSystem.py
Fzzfbu2/AutoGetTicket
bdc8f460cf70ce770ecf9b49ec498a7756742e14
[ "Apache-2.0" ]
null
null
null
import time from selenium import webdriver from VerifyCode import VerifyCode class LoginSystem: def __init__(self, username, password, login_url): self.username = username self.password = password self.login_url = login_url def login(self): driver.get(self.logi...
28.934783
109
0.591285
45a5a4caad51019d2b9db5bfe83e56ebadabaf04
1,057
py
Python
Misc/Monotonic_Array/solution2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
Misc/Monotonic_Array/solution2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
Misc/Monotonic_Array/solution2.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
''' An array is said to be monotonic if its elements, from left to right, are entirely non-increasing or entirely non-decreasing. ''' def isMonotonic(array): # Edge condition to check for array less than 2 elements if len(array) <= 2: return True # Determining weather increasing or decreasing d...
33.03125
69
0.657521
64179afb4447ffb893ddec27ba4bf8f0c6de4d5e
14,519
py
Python
src/onegov/org/views/files.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/files.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/views/files.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
""" The onegov org collection of files uploaded to the site. """ import datetime import isodate import morepath import sedate from babel.core import Locale from babel.dates import parse_pattern from dateutil.parser import parse from functools import lru_cache from itertools import groupby from onegov.core.filestorage...
30.311065
79
0.643433
92562cde9707b9914b53430130b6f31a4bac1eca
38
py
Python
python/coursera_python/TORONTO/test/13.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/TORONTO/test/13.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/TORONTO/test/13.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
for num in range(3,20,8): print(num)
12.666667
25
0.657895
2bee84af75e0331cbb574ab51940498080a132c8
1,315
py
Python
airpydump-master/Docker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
23
2018-07-31T02:54:16.000Z
2022-03-19T12:44:03.000Z
airpydump-master/Docker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
airpydump-master/Docker.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
14
2019-01-25T05:03:45.000Z
2021-07-09T20:15:17.000Z
#!/usr/bin/python import sys import os __doc__ = """ airpydump is wireless (802.11) packet analyzer, currently supporting three operating modes: 1) Reader Mode (Read a captured File) 2) Stealth Mode (Prints the live data on pressing CTRL+C) 3) Live Mode (Print packets as soon as discovered) USAGE: python ...
32.875
144
0.707224
920bcc7665f743b6212a26c046aa9391e100a00a
2,938
py
Python
books/PythonAutomate/pdf_word_documents/brute_force.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/brute_force.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/PythonAutomate/pdf_word_documents/brute_force.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
"""brute_force.py dictionary.txt 파일을 이용해 암호 문서 해제하기 """ import sys import PyPDF2 import multiprocessing from time import time from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor, as_completed def elapsed_time(func): def wrapper(*args, **kwargs): start_time = time() result = func...
32.644444
117
0.636147
ecf579517fd9ce9389d7534c4d943828cfaf70dc
163
py
Python
crypto/babyrsa/babyrsa.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
crypto/babyrsa/release/babyrsa.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
crypto/babyrsa/release/babyrsa.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
flag = open("flag").read() m = int(flag.encode("hex"), 0x16) e = 0x10001 n = 0x54012066b18843995165c3c0d783aa9e31e796f6928ea4bfe0728b1d1bad6271 print pow(m, e, n)
27.166667
70
0.754601
a673e5ba088958b2170949d032e4132cc4cfac6d
578
py
Python
Problems/Depth-First Search/medium/CountGoodNodesBT/count_good_node_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/CountGoodNodesBT/count_good_node_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/CountGoodNodesBT/count_good_node_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def goodNodes(self, root: TreeNode) -> int: self.ans = 0 def get_good(cur_node: TreeNode, max_par: int): if not cur_node...
24.083333
53
0.591696
4722fcf1e41ca281359ad9e522e661ae7f5cb6ee
10,641
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/scripts/inventory/rudder.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/scripts/inventory/rudder.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/scripts/inventory/rudder.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2015, Normation SAS # # Inspired by the EC2 inventory plugin: # https://github.com/ansible/ansible/blob/devel/contrib/inventory/ec2.py # # This file is part of Ansible, # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Publ...
35.828283
131
0.628136
5b434e9a7e52db75e903f79ecd4cac35a3d403ca
2,234
py
Python
sCRAPing/finn.no/parsers.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
sCRAPing/finn.no/parsers.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
sCRAPing/finn.no/parsers.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
from html.parser import HTMLParser import glob class ListParser(HTMLParser): nais = False # next data is title kode = 0 finn = {} def handle_starttag(self, tag, attrs): dattr = dict(attrs) if tag == 'div' and 'data-favorite-ad' in dattr: self.kode = int(dattr['data-favorite...
29.786667
100
0.580125
9417b1fc96739a237715f5154f33b82779be1ad0
768
py
Python
PythonTest/draw_image.py
yuduki24/RubyTest
006233df69eca3eb5676984b51e57cd34d8dcf87
[ "MIT" ]
null
null
null
PythonTest/draw_image.py
yuduki24/RubyTest
006233df69eca3eb5676984b51e57cd34d8dcf87
[ "MIT" ]
1
2017-11-03T06:59:55.000Z
2017-11-04T02:10:14.000Z
PythonTest/draw_image.py
yuduki24/RubyTest
006233df69eca3eb5676984b51e57cd34d8dcf87
[ "MIT" ]
null
null
null
import pygame from pygame.locals import * import sys SCREEN_SIZE = (116, 42) pygame.init() screen = pygame.display.set_mode(SCREEN_SIZE) pygame.display.set_caption(u"イメージの描画") # イメージを用意. myPythonImg1 = pygame.image.load("img/my_python.png").convert() myPythonImg2 = pygame.image.load("img/my_python.png")....
29.538462
70
0.6875
846769e05e10400f62f99c536d80d59148266b93
586
py
Python
comp/microsoft/001_numbers_with_equal_digit_sum.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
comp/microsoft/001_numbers_with_equal_digit_sum.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
comp/microsoft/001_numbers_with_equal_digit_sum.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: def digit_sum(self, num): # positive and negative numbers num = abs(num) tot = 0 while num: tot += num % 10 num //= 10 return tot def num_with_equal_digit_sum(self, A): res = -1 ds_to_top = {} for num in A: ...
25.478261
45
0.450512
84b1b4341ef236a603e46969ec3c9e70a0d3f359
896
py
Python
web/models.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
web/models.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
web/models.py
Daniel-Hoerauf/cs3240-f16-team11
0377bcb8ede9599c04daf7683b065abb2a47f893
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import User as Users # Create your models here. class UserGroup(models.Model): name = models.CharField(max_length=100, primary_key=True, default='GROUP') members = models.ManyToManyField(Users) def __str__(self): return self.name class...
34.461538
78
0.672991
048cd53c3c7d3fd9eda1eeeb66536c890e9f86d9
720
py
Python
tests/mock/test_job.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
tests/mock/test_job.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
tests/mock/test_job.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
import pytest import mock from skil.jobs import * from skil.spark import ParameterAveraging import skil def test_inference_job_config(): res = skil.resources.compute.EMR( None, 'name', 'region', 'creds', 'id', 'res_id', False) conf = InferenceJobConfiguration(None, 32, res, res, './', None) asser...
23.225806
79
0.663889
b63fa7f63c988b06f86fe156da7b62e3e7cfc6b1
540
py
Python
qttest.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
1
2021-03-22T22:25:54.000Z
2021-03-22T22:25:54.000Z
qttest.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
6
2017-01-16T09:53:21.000Z
2017-01-18T12:20:09.000Z
qttest.py
bluemurder/mlfl
b895b2f1d01b0f6418a5bcee2f204dd7916062f0
[ "MIT" ]
null
null
null
import sys from PyQt4 import QtGui, QtCore # importiamo i moduli necessari class MainWindow(QtGui.QMainWindow): def __init__(self): QtGui.QMainWindow.__init__(self) # da porre sempre all'inizio # inizializza alcuni metodi importanti come resize self.resize(350, 250) # ridimensiona la fines...
30
82
0.718519
fcdccc118b312312688d7686362c6fed9a32cb2c
778
py
Python
2015/02/pm-short/sp2.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/02/pm-short/sp2.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/02/pm-short/sp2.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
import ystockquote from pprint import pprint import datetime import json import csv # pull today now = datetime.datetime.now() today = ("%s-%02d-%02d" % (now.year, now.month, now.day)) pprint(str(today)) #print today quotes = ystockquote.get_historical_prices('SPY', '2015-01-15', today) #pull data #writing json with ...
26.827586
86
0.712082
1e9781076c0e28e193d2cfa0d95998aeeb0b427e
1,537
py
Python
scripts/distance_matrix.py
largelymfs/DeepFold
9f723539e67d00230646cdb3b1ba706b46cee39b
[ "MIT" ]
17
2017-05-15T07:44:18.000Z
2021-12-23T02:06:12.000Z
scripts/distance_matrix.py
afcarl/DeepFold
9f723539e67d00230646cdb3b1ba706b46cee39b
[ "MIT" ]
null
null
null
scripts/distance_matrix.py
afcarl/DeepFold
9f723539e67d00230646cdb3b1ba706b46cee39b
[ "MIT" ]
8
2017-08-10T15:40:00.000Z
2021-09-29T19:40:34.000Z
#! /usr/bin/env python ################################################################################# # File Name : distance_matrix.py # Created By : Qing Ye # Creation Date : [2016-08-31 17:10] # Last Modified : [2017-01-26 22:10] # Description ...
33.413043
114
0.590761
94e22159518413a29ac9772085ec31e5ea14dc0f
5,238
py
Python
flipui/txworker_old.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
flipui/txworker_old.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
flipui/txworker_old.py
julianschick/flipdot-brose-code
b2caf2c52c55a0d5b80dbf3d5adbbf5aec1d79c2
[ "MIT" ]
null
null
null
import threading import socket import time import sys from queue import Queue, Empty IP = "flipdot1" PORT = 3000 BUFFER_SIZE = 64 STOP = 0x82 class TxWorker(threading.Thread): def __init__(self, led_queue, pixel_queue): super(TxWorker, self).__init__() self.led_queue = led_queue self.pix...
34.235294
101
0.435853
786565a904f95bbb8e57770f4cbc2ea0fd5eed42
2,139
py
Python
research/cv/centernet_det/infer/sdk/eval/eval_by_sdk.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/centernet_det/infer/sdk/eval/eval_by_sdk.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/centernet_det/infer/sdk/eval/eval_by_sdk.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...
34.5
79
0.642356
787eb85466f9ecddf5005572c8d48c8d714639c7
2,830
py
Python
imwievaluation/mail.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/mail.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
null
null
null
imwievaluation/mail.py
ESchae/IMWIEvaluation
2fa661711b7b65cba25c1fa9ba69e09e75c7655f
[ "MIT" ]
1
2019-10-19T10:11:17.000Z
2019-10-19T10:11:17.000Z
""" Copyright 2018 Author: Elke Schaechtele Module for automated sending of emails using python. """ import smtplib import os import logging from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.mime.text import MIMEText from email.utils import formatdate from email import enco...
37.733333
78
0.621201
78b11e2ded06301131bd6053a2ef522e628ced4f
235
py
Python
dewar/home/views.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
dewar/home/views.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
dewar/home/views.py
shonenada-archives/dewar
392b996771a35bc26e9c301cc2a25bad973e8f61
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, render_template, url_for, redirect home_app = Blueprint('home', __name__, template_folder="templates") @home_app.route('/') def index(): return render_template('index.html')
21.363636
67
0.714894
da5256019cdc57674b00b52655e6c6c52afd24dd
1,402
py
Python
2019/finals/reversing-gpurtl/synth/place.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
2,757
2018-04-28T21:41:36.000Z
2022-03-29T06:33:36.000Z
2019/finals/reversing-gpurtl/synth/place.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
20
2019-07-23T15:29:32.000Z
2022-01-21T12:53:04.000Z
2019/finals/reversing-gpurtl/synth/place.py
iicarus-bit/google-ctf
4eb8742bca58ff071ff8f6814d41d9ec7eb1db4b
[ "Apache-2.0" ]
449
2018-05-09T05:54:05.000Z
2022-03-30T14:54:18.000Z
# Copyright 2019 Google LLC # 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 # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, sof...
31.863636
86
0.666191
dad3afdaf36740dc058d6c71091f20125d1459fd
1,344
py
Python
views/main.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
4
2015-07-09T21:14:22.000Z
2019-07-02T21:53:50.000Z
views/main.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
null
null
null
views/main.py
jreese/seinfeld
400204cef0cb532c3e8e223fa48490247b9149ed
[ "MIT" ]
null
null
null
# Copyright 2014 John Reese # Licensed under the MIT license from flask import abort from jinja2.filters import do_capitalize from core import app, context, get, template from models import Quote, Passage @get('/', 'Seinfeld Quote') @template('index.html') def index(): #passage = Passage(uid=37592) passage ...
23.172414
62
0.633929
97030416069b4a73ebe3209979adc3de9eb5ec59
2,218
py
Python
AccessPoint03/AccessPoint/tests.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
null
null
null
AccessPoint03/AccessPoint/tests.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
5
2021-03-30T13:53:38.000Z
2021-09-22T19:18:06.000Z
AccessPoint03/AccessPoint/tests.py
test1lax1/Toy
52ea70ee92959bd59a0afc8baa30b3a455e394d3
[ "MIT" ]
null
null
null
from django.test import TestCase # Create your tests here. from django.test import TestCase import requests import time import datetime url = ('http://127.0.0.1:8000/AccessPoint03/AccessPoint/') time1 = datetime.time(10, 33, 45) time2 = datetime.time(11,33,45) time3 = datetime.time(12,33,45) time4 = ...
24.373626
86
0.596032
970414a6073eb0de51b86435d1c2b4a7a6be5bf9
131
py
Python
Licence 1/I11/TP2/tp2_6_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 1/I11/TP2/tp2_6_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 1/I11/TP2/tp2_6_2.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
for j in range(1, 11): print("La table de", j) for i in range(1, 11): print(i, "*", j, "=", i * j) print("\n")
21.833333
36
0.442748
c11075cb7f03627c333285b16faad7e214d6fd68
88
py
Python
examples/myqueryset/delete_/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
examples/myqueryset/delete_/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
examples/myqueryset/delete_/apps.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
from django.apps import AppConfig class DeleteConfig(AppConfig): name = 'delete_'
14.666667
33
0.75
4184b3375856b2a01653a833121fe8967b8a15c1
203
py
Python
tests/api/test_event_category.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
tests/api/test_event_category.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
tests/api/test_event_category.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
def test_list(client, seeder, utils): user_id, admin_unit_id = seeder.setup_base() seeder.create_event(admin_unit_id) url = utils.get_url("api_v1_event_category_list") utils.get_ok(url)
29
53
0.743842
419be4c2c58343cc94bd1be6f614c845db2fcffd
1,454
py
Python
Problems/Depth-First Search/medium/MaxDiffNodeAncestor/max_diff_node_ancestor.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/medium/MaxDiffNodeAncestor/max_diff_node_ancestor.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/medium/MaxDiffNodeAncestor/max_diff_node_ancestor.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def maxAncestorDiff(self, root: Optional[TreeNode]) -> int: self.ans = -1 def dfs(cur_node: Option...
31.608696
90
0.614168
ec1089c9a7a9e55875084c8662494be919188038
151
py
Python
docker/django/restaurant/restapi/serializers/__init__.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
3
2019-08-29T10:14:40.000Z
2021-03-05T09:50:15.000Z
docker/django/restaurant/restapi/serializers/__init__.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
null
null
null
docker/django/restaurant/restapi/serializers/__init__.py
gitmehedi/cloudtuts
3008b1cf7fbf22728c9bb2c059c4bd196043a93e
[ "Unlicense" ]
1
2021-03-05T09:50:29.000Z
2021-03-05T09:50:29.000Z
from .foodmenu_serializer import FoodMenuSerializer from .restaurant_serializer import RestaurantSerializer from .user_serializer import UserSerializer
50.333333
55
0.907285
d41f96d206fb99d6c4b26c37767b792916cb3102
86
py
Python
Object Oriented Programming/monopoly/die.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/monopoly/die.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
Object Oriented Programming/monopoly/die.py
severinhaller/einf-machinelearning
4dfc8f1da0d81c5aa800d1459f81b72d1bf6dd9b
[ "MIT" ]
null
null
null
class Die: def __init__(self, face_count=6): self.face_count = face_count
21.5
37
0.674419
d4307b617af90520e4f6da95d566d111c8c3434a
121
py
Python
build/config/templates/code/Python/template.py
dcuartielles/bash_site
1d777b398d16c2b7a8ea0b4c1adf2004d6cc6ae5
[ "CC0-1.0" ]
2
2022-01-05T15:21:16.000Z
2022-01-05T22:55:30.000Z
build/config/templates/code/Python/template.py
dcuartielles/Intro-Arduino-Nano-BLE-33-Sense
1d777b398d16c2b7a8ea0b4c1adf2004d6cc6ae5
[ "CC0-1.0" ]
null
null
null
build/config/templates/code/Python/template.py
dcuartielles/Intro-Arduino-Nano-BLE-33-Sense
1d777b398d16c2b7a8ea0b4c1adf2004d6cc6ae5
[ "CC0-1.0" ]
null
null
null
""" [NAME] GPL-3.0-or-later 2021, 2022 D. Cuartielles for Malmo University, Sweden """ # Append your code from here
10.083333
54
0.677686
2e3f4e1dd3f2f31fd848a1897b180266cbdbeedd
14,640
py
Python
repo/plugin.video.EasyNews/settings.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
1
2017-11-26T18:18:46.000Z
2017-11-26T18:18:46.000Z
repo/plugin.video.EasyNews/settings.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
null
null
null
repo/plugin.video.EasyNews/settings.py
dbiesecke/dbiesecke.github.io
5894473591f078fd22d1cb33794c5e656ae9b8dd
[ "MIT" ]
3
2019-09-30T19:52:05.000Z
2020-04-12T21:20:56.000Z
import xbmc, xbmcaddon, xbmcgui, xbmcplugin import os import re ADDON = xbmcaddon.Addon(id='plugin.video.EasyNews') def addon(): return ADDON def mlang_ex(): return ADDON.getSetting('mlangex').replace(' ','+') def m_filesize(): quality = ADDON.getSetting('mfilesize') ...
24.078947
135
0.480874
2e553c884fe2519df8f6ee7dea003b855669dfb0
727
py
Python
etc code/video2op_image.py
gusghrlrl101/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
11
2019-06-17T02:59:01.000Z
2021-05-24T14:10:04.000Z
etc code/video2op_image.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
null
null
null
etc code/video2op_image.py
RabbitG29/Dance-Helper
e9f5f6168f1dc6944c25cc8ff7eb829791fe484c
[ "MIT" ]
3
2019-06-17T02:59:32.000Z
2019-07-03T04:31:30.000Z
import cv2 import pyopenpose as op cap = cv2.VideoCapture('user4.mp4') video_h = int(cap.get(cv2.CAP_PROP_FRAME_HEIGHT)) video_w = int(cap.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_cnt = int(cap.get(cv2.CAP_PROP_FRAME_COUNT)) cnt = 0 out_video_dir = 'user4_op/' while cap.isOpened(): out_path = '%s/%04d.png' % (ou...
19.131579
53
0.700138
d8a0390c523654fed070e57d5a2353232dc58065
575
py
Python
skripte_klassifikation/mean_embedding_vectorizer.py
TimSchmittmann/ML2-Project
7ad01366f2322018065efcae542ae75786b3c0ec
[ "MIT" ]
null
null
null
skripte_klassifikation/mean_embedding_vectorizer.py
TimSchmittmann/ML2-Project
7ad01366f2322018065efcae542ae75786b3c0ec
[ "MIT" ]
null
null
null
skripte_klassifikation/mean_embedding_vectorizer.py
TimSchmittmann/ML2-Project
7ad01366f2322018065efcae542ae75786b3c0ec
[ "MIT" ]
null
null
null
import numpy as np class MeanEmbeddingVectorizer(object): def __init__(self, word2vec): self.word2vec = word2vec # if a text is empty we should return a vector of zeros # with the same dimensionality as all the other vectors self.dim = len(next(iter(word2vec.values()))) def fit...
31.944444
75
0.594783
d8ab763c6537c7b94959ca03e9f2278787490a43
478
py
Python
pacman-arch/test/pacman/tests/sync403.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/sync403.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/sync403.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Choice between two providers (2)" sp1 = pmpkg("pkg1") sp1.depends = ["dep"] self.addpkg2db("sync", sp1) sp2 = pmpkg("pkg2") sp2.conflicts = [ "pkg1" ] sp2.provides = [ "dep" ] self.addpkg2db("sync", sp2) sp3 = pmpkg("pkg3") sp3.provides = [ "dep" ] self.addpkg2db("sync", sp3) self.args = "-S pkg...
19.916667
53
0.682008
d8e71790dce689804947924e74f37a0a653c7cc8
2,371
py
Python
plotting/modules/colormaps.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
plotting/modules/colormaps.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
plotting/modules/colormaps.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
# 3rd Party Packages import numpy as np from matplotlib import cm from matplotlib.colors import ListedColormap, LinearSegmentedColormap colormaps = {} def _init_colormaps(): colormap_key = 'magma_positive' cmap = cm.get_cmap('magma_r', 60) colors = np.array(cmap(np.arange(0, cmap.N))[:-10]) cmap = L...
32.930556
75
0.676508
2b2f24fad7d6b472daad2fc105f020c3c564ca24
4,431
py
Python
aemter/models.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
aemter/models.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
aemter/models.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from django.db import models from simple_history.models import HistoricalRecords from django.db.models.signals import post_init, post_delete from django.dispatch import receiver class Organisationseinheit(models.Model): """ Datenbankmodel Organisationseinheit Felder: * bezeichnung ...
32.343066
120
0.689686
9932862a8865b6d8271f062a4ef9367a97b98da2
2,604
py
Python
python/iddl_age_tsv.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
3
2016-11-21T21:10:42.000Z
2022-01-22T16:25:44.000Z
python/iddl_age_tsv.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
python/iddl_age_tsv.py
obujor/PalMaS
229e565072b4783bbe09b6a635219347f3be40e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python import argparse import string import Image, ImageOps import logging import urllib import csv import time import calendar from datetime import datetime from urlparse import urlparse # Main ######################################################################## if __name__ == '__main__': parse...
43.4
98
0.65169
41e4c0eae710e6a3808405a6fe96f79d836e376e
1,121
py
Python
4.Queue/Python/queue.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
3
2020-09-10T18:40:40.000Z
2020-09-15T17:32:12.000Z
4.Queue/Python/queue.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
4.Queue/Python/queue.py
Vinaypatil-Ev/vinEvC_datastructure
3e02e49c03a2b7d2e09af9a2dce080e6d9abbf74
[ "MIT" ]
null
null
null
class Queue: def __init__(self, size): self.size = size self.front = -1 self.rear = -1 self.arr = [None] * size # check if queue is full def is_full(self): return self.rear == self.size # check if queue is empty def is_empty(self): return self.fro...
21.980392
55
0.501338
514ce0c3312719c8393467d22a61ba58ca3e2772
348
py
Python
Uebung1/Uebung1_Aufgabe3_3.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-18T19:10:06.000Z
2018-04-18T19:10:06.000Z
Uebung1/Uebung1_Aufgabe3_3.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
null
null
null
Uebung1/Uebung1_Aufgabe3_3.py
B0mM3L6000/EiP
f68718f95a2d3cde8ead62b6134ac1b5068881a5
[ "MIT" ]
1
2018-04-29T08:48:00.000Z
2018-04-29T08:48:00.000Z
#n gesucht import math K = float(input("Was ist das Endkapital?")) K0 = float(input("Was ist das Startkapital?")) p = float(input("Was ist der Zins?")) # log(K/K0) = log(1+p) * n # -> log(K/K0) / log (1+p) = n n = math.log((K/K0))/math.log((1+p)) n = round(n,2) #auf 2 Nachkommastellen runden print("Du hast über "...
20.470588
48
0.617816
5ac7c9c293386beb7eaab28d67740254a4ae60bc
8,784
py
Python
etl/data_extraction/scrapers/ein_jahr_freiwillig.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
7
2020-04-23T20:16:11.000Z
2022-01-04T14:57:16.000Z
etl/data_extraction/scrapers/ein_jahr_freiwillig.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
361
2020-04-23T17:20:14.000Z
2022-03-02T11:29:45.000Z
etl/data_extraction/scrapers/ein_jahr_freiwillig.py
Betadinho/einander-helfen
272f11397d80ab5267f39a7b36734495f1c00b0c
[ "MIT" ]
1
2021-11-29T06:02:52.000Z
2021-11-29T06:02:52.000Z
from data_extraction.scraper import Scraper import re import math class EinJahrFreiwillig(Scraper): """Scrapes the website ein-jahr-freiwillig.de.""" base_url = 'https://ein-jahr-freiwillig.de' debug = True def parse(self, response, url): """Handles the soupified response of a detail page i...
51.368421
120
0.589936
51ba36e61396d506ed4e1f9795216ea135b96574
497
py
Python
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_app.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_app.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_app.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-chavier_app.py,v 1.1 2013/08/15 20:57:14 richard Exp $ *https://bitbucket.org/lgs/pycha/issue/26/chavier-pycha-070-fails-with-keyerror --- chavier/app.py.orig 2010-12-31 17:11:04.000000000 +0000 +++ chavier/app.py @@ -93,6 +93,8 @@ class App(object): borderColor=str, borderWid...
31.0625
79
0.565392
7a7424f235b2b2874c3e811f41b8817155fc01c8
939
pyde
Python
sketches/teaparty/teaparty.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/teaparty/teaparty.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/teaparty/teaparty.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# hatter_pos (630, 65) (840, 300) # march_hare_pos (380, 155) (540, 290) # alice_pos (140, 190) (250, 340) def setup(): global teaparty size(940, 530) this.surface.setTitle("Mad Hatters Tea Party") teaparty = loadImage("aliceteaparty.jpg") def draw(): image(teaparty, 0, 0, width, height) spe...
24.710526
54
0.544196
7afd6e3579da7eca384a4af60bd54a1b8b83ee69
370
py
Python
exercises/es/test_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/es/test_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/es/test_02_02_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert gato_hash == nlp.vocab.strings["gato"], "¿Asignaste el hash correcto?" assert 'nlp.vocab.strings["gato"]' in __solution__ assert gato_string == "gato", "¿Obtuviste el string correcto?" assert ( "nlp.vocab.strings[gato_hash]" in __solution__ ), "¿Obtuviste el string usando ...
37
81
0.667568
bb0b5dd7a7dc36aba1541248c6b60a8f650b5c1d
14,161
py
Python
src/onegov/election_day/formats/election/wabstic_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/election/wabstic_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/election/wabstic_majorz.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import Candidate from onegov.ballot import CandidateResult from onegov.ballot import ElectionResult from onegov.election_day import _ from onegov.election_day.formats.common import EXPATS, \ validate_integer, line_is_relevant from onegov.election_day.formats.common import FileImportError from one...
33.477541
79
0.593955
704b2c5ae172099d9064db3db06142e841e2c24b
1,203
py
Python
fonts/translate_icon_font_from_css_to_dart.py
niuxinhuai/flutter_weibo
f83ec415bcf67e6aff963f7517b01bdf3e8108ce
[ "Apache-2.0" ]
4
2019-11-09T10:07:12.000Z
2021-08-24T04:55:41.000Z
fonts/translate_icon_font_from_css_to_dart.py
niuxinhuai/flutter_weibo
f83ec415bcf67e6aff963f7517b01bdf3e8108ce
[ "Apache-2.0" ]
null
null
null
fonts/translate_icon_font_from_css_to_dart.py
niuxinhuai/flutter_weibo
f83ec415bcf67e6aff963f7517b01bdf3e8108ce
[ "Apache-2.0" ]
null
null
null
# coding: u8 import re from pathlib import Path ROOT = Path(__file__).resolve().parent#.parent MAIN = ROOT # 将 iconfont 的 css 自动转换为 dart 代码 def translate(): print('Begin translate...') code = """ import 'package:flutter/widgets.dart'; // 代码由程序自动生成。请不要对此文件做任何修改。 class IconF { IconF._(); static c...
19.095238
102
0.568579
56474775ca971689f5cd29977761692b919d0760
249
pyde
Python
sketches/Bouncing_Ball_Simulator_Stage_4/Bouncing_Ball_Simulator_Stage_4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/Bouncing_Ball_Simulator_Stage_4/Bouncing_Ball_Simulator_Stage_4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/Bouncing_Ball_Simulator_Stage_4/Bouncing_Ball_Simulator_Stage_4.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
from bouncingball import BouncingBall balls = [] def setup(): size(600, 600) for _ in range(30): balls.append(BouncingBall()) def draw(): background("#2b3e50") for ball in balls: ball.move() ball.display()
16.6
37
0.598394
3b96a2bef198e86a29da599f134d34b6b8099e03
1,688
py
Python
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex02_digits_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex02_digits_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zzz_training_challenge/Python_Challenge/solutions/tests/ch03_recursion/ex02_digits_test.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
# Beispielprogramm für das Buch "Python Challenge" # # Copyright 2020 by Michael Inden import pytest from ch03_recursion.solutions.ex02_digits import count_digits, calc_sum_of_digits, calc_sum_of_digits_divmod, \ count_digits_tricky, calc_sum_of_digits_shorter, count_digits_shorter @pytest.mark.parametrize("num...
31.849057
111
0.752962
d944004cac5028b51e5127855d857f5e429e386e
511
py
Python
tests/integration/beet/test_examples.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
2
2021-03-18T04:34:23.000Z
2021-03-23T17:35:07.000Z
tests/integration/beet/test_examples.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
tests/integration/beet/test_examples.py
OrangeUtan/babelbox
3dd01e078aea8aa352ff5606179d5e1e09f4b827
[ "MIT" ]
null
null
null
import os from typing import Any import pytest from beet import run_beet from pytest_insta import SnapshotFixture @pytest.mark.parametrize("directory", os.listdir("tests/integration/beet/examples")) # type: ignore def test_build(snapshot: SnapshotFixture, directory: str): with run_beet(directory=f"tests/integra...
36.5
100
0.749511
796d44d3e9335fce55a66bd2e1442e5fc732e350
899
py
Python
Imaginary/2021/crypto/Caesar_Tart/caesartart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/Caesar_Tart/caesartart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/Caesar_Tart/caesartart.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from random import randint with open('message.txt', 'r') as file: msg = ''.join(filter(str.isalpha, file.read().strip().upper())) def caesar(a, key): return chr(((ord(a) - 0x41 + key) % 26) + 0x41) keys = [randint(0, 25) for _ in range(randint(5, 10))] enc = [] for i, c in enumerate(msg): enc...
59.933333
514
0.8198
798455bcec55d89ced5d95f0bfc614ff8155713e
202
py
Python
src/violinplots/violin.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/violinplots/violin.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
src/violinplots/violin.py
Ellon-M/visualizations
5a42c213ea8fd0597e2035778d9ae6460eb9e821
[ "MIT" ]
null
null
null
### violin import plotly.express as px df = px.data.tips() fig = px.violin(df, y="tip", x="smoker", color="sex", box=True, points="all", hover_data=df.columns, template="gridon") fig.show()
22.444444
77
0.638614
30c199dceb2cb5ec312b52197e2ddc4294d2a02f
1,285
py
Python
apps/utils/templatetags/defer.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
2
2018-05-18T08:38:29.000Z
2018-05-22T08:26:09.000Z
apps/utils/templatetags/defer.py
IT-PM-OpenAdaptronik/Webapp
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
118
2017-10-31T13:45:09.000Z
2018-02-24T20:51:42.000Z
apps/utils/templatetags/defer.py
OpenAdaptronik/Rattler
c3bdde0ca56b6d77f49bc830fa2b8bb41a26bae4
[ "MIT" ]
null
null
null
from django import template from django.utils import html register = template.Library() def _collect(context, name): if not context[name]: return '' res = '' for node in context[name](): res += node return res class DeferHtml(template.Node): def __init__(self, nodelist): s...
25.7
67
0.699611
d6ef17d0e4804d817fc016bc5a34c0f4be401f8b
1,055
py
Python
CodeChef_problems/AVGPR/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
CodeChef_problems/AVGPR/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
CodeChef_problems/AVGPR/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
#Question Link #https://www.codechef.com/problems/AVGPR t=input() t=int(t) for a0 in range(1,t+1): n=input() n=int(n) a=list(map(int,input().split())) b={} #dictionary to store the count even=[] #list for even elements odd=[] #list for odd elements for i in range(-1001,1002): b[i]=0 ...
27.763158
64
0.521327
ba9067952231e5c9b5ea55dbf7c651e00454d8c4
65
py
Python
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Path_Of_Current_Prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Path_Of_Current_Prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/Python_Progs/PYTHON_LEGACY_PROJECTS/Path_Of_Current_Prog.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import os print("Current File Name :",os.path.realpath(__file__))
32.5
55
0.769231
241b88c898c83dfa8f0762f6e61afedada61e4c6
2,358
py
Python
src/app.py
kevinxin90/bte_schema_web
6ed8d2673e82ff5122e1ccbef290d3ea6c82ad66
[ "Apache-2.0" ]
2
2018-12-11T21:47:42.000Z
2019-02-17T23:39:50.000Z
src/app.py
kevinxin90/bte_schema_web
6ed8d2673e82ff5122e1ccbef290d3ea6c82ad66
[ "Apache-2.0" ]
49
2017-05-25T22:34:18.000Z
2019-03-22T04:36:54.000Z
src/app.py
kevinxin90/bte_schema_web
6ed8d2673e82ff5122e1ccbef290d3ea6c82ad66
[ "Apache-2.0" ]
3
2017-04-17T18:31:57.000Z
2019-11-18T22:31:33.000Z
import tornado.auth import tornado.escape import tornado.ioloop import tornado.options import tornado.web import os.path #from handlers.displayhandler import DisplayHandler class HomeHandler(tornado.web.RequestHandler): @tornado.web.addslash def get(self): self.render("about.html", messages=None) ""...
28.756098
68
0.581425
03601073d421aa03c9ae0618dabda180f4dc4757
236
py
Python
django101/django101/tasks/admin.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
1
2022-03-03T10:16:14.000Z
2022-03-03T10:16:14.000Z
django101/django101/tasks/admin.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
django101/django101/tasks/admin.py
trenev/softuni-python-web-basics
0fcf6b7f3389d06685d40615c376dc4027e772f2
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. # from django101.tasks.models import Task # @admin.register(Task) # class TaskAdmin(admin.ModelAdmin): # list_display = ('id', 'title') # list_filter = ('title',)
21.454545
41
0.699153
231ea3d3a8f0f6e2cee157699527e6c88089a211
3,139
py
Python
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_fwversion.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
5
2019-11-11T07:57:26.000Z
2022-03-28T08:26:53.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_fwversion.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
3
2019-09-05T21:47:07.000Z
2019-09-17T18:10:45.000Z
Contrib-Microsoft/Olympus_rack_manager/python-ocs/commonapi/controls/manage_fwversion.py
opencomputeproject/Rack-Manager
e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a
[ "MIT" ]
11
2019-07-20T00:16:32.000Z
2022-01-11T14:17:48.000Z
# Copyright (C) Microsoft Corporation. All rights reserved. # This program is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. #!/usr/bin...
36.08046
109
0.538707
cc4cbb503cafb6e1ea5f17cb93ce7c2e00180a18
1,492
py
Python
0-notes/job-search/Leetcode/07-StringWithout3IdenticalConLetters.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Leetcode/07-StringWithout3IdenticalConLetters.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Leetcode/07-StringWithout3IdenticalConLetters.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# String Without 3 Identical Consecutive Letters # Write a function solution that, given a string S of N lowercase English letters, # returns a string with no instances of three identical consecutive letters, # obtained from S by deleting the minimum possible number of letters. ''' Examples: Given S = “eeda...
35.52381
173
0.703753
061358e3b118e99f3026a3876f5595eb5aa97881
1,807
py
Python
circle_inverter.py
MrCurtis/CircleInvertor
c9e33ff29204f84a970ff6f938160634a326ac46
[ "MIT" ]
null
null
null
circle_inverter.py
MrCurtis/CircleInvertor
c9e33ff29204f84a970ff6f938160634a326ac46
[ "MIT" ]
null
null
null
circle_inverter.py
MrCurtis/CircleInvertor
c9e33ff29204f84a970ff6f938160634a326ac46
[ "MIT" ]
null
null
null
import pygame import sys import random import cmath def PixToCoor(pixx, image, rescale, width, height, portrait): z = pixx[0]*1.0 - pixx[1]*1.0j # y coor is negative to take in to account change from 'computer science' to 'mathematical' coordinates. if portrait == 1: z = rescale/width * (z - width/2 + height*1j/2)...
27.8
136
0.674045
ee892c51e8179eca2a4e31f26d077142eb098f31
3,141
py
Python
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/TESTING2/TEST/testwin.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/TESTING2/TEST/testwin.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/KALU/GARBAGE1/ALLOUTDATED/TESTING2/TEST/testwin.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from tkinter import * import tkinter window = tkinter.Tk() #Here is where we set up the window and it's aesthetics, window.title("BINARY-SUMZ!!!") #here we give the window a name, window.geometry("1000x800") #here we give the window a size, window.wm_icon...
44.239437
169
0.512894
c9f045bfd586b40341e1b15d0de408aecd8e8838
739
py
Python
Fastir_Collector/filecatcher/__init__.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/filecatcher/__init__.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/filecatcher/__init__.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
from utils.utils import get_architecture from ctypes import * import os arch = get_architecture() fastir_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) if arch == '64': try: msvcr = windll.msvcr120 hdll = windll.checksignfromcat except: try: windll.LoadLi...
35.190476
86
0.68065
4e6718b054b650c98b6726ed26c0f822d0463a0d
4,196
py
Python
Treball/Simular_Exercici01.py
jmigual/OiS
b5eb0dc9db8d8c655ea3b941a5ada5c764b7aa0d
[ "MIT" ]
null
null
null
Treball/Simular_Exercici01.py
jmigual/OiS
b5eb0dc9db8d8c655ea3b941a5ada5c764b7aa0d
[ "MIT" ]
null
null
null
Treball/Simular_Exercici01.py
jmigual/OiS
b5eb0dc9db8d8c655ea3b941a5ada5c764b7aa0d
[ "MIT" ]
null
null
null
''' Created on 03/08/2014 @author: Ernest Benedito ''' from Distribucions import uniforme_discreta # Funcio principal def Simular_Exercici01(): global rellotge global estat global temps_funcionament iniciar_variables() iniciar_variables() esdeveniment = obtenir_esdeveniment...
27.246753
110
0.718065
1193a5cf42ee9115d82e783b30b0ac1b25590817
569
py
Python
pacman-termux/test/pacman/tests/mode003.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/mode003.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/mode003.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Backup file permissions test (same as orig)" lp = pmpkg("filesystem") lp.files = ["etc/profile|666"] lp.backup = ["etc/profile*"] self.addpkg2db("local", lp) p = pmpkg("filesystem", "1.0-2") p.files = ["etc/profile|666**"] p.backup = ["etc/profile"] self.addpkg(p) self.args = "-U %s" % p.filename...
27.095238
64
0.710018
ee9d5cc73373055728e3af50413486bf554326b6
88
py
Python
rasa/nlu/classifiers/classifier.py
praneethgb/rasa
5bf227f165d0b041a367d2c0bbf712ebb6a54792
[ "Apache-2.0" ]
37
2019-06-07T07:39:00.000Z
2022-01-27T08:32:57.000Z
rasa/nlu/classifiers/classifier.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
216
2020-09-20T13:05:58.000Z
2022-03-28T12:10:24.000Z
rasa/nlu/classifiers/classifier.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
65
2019-05-21T12:16:53.000Z
2022-02-23T10:54:15.000Z
from rasa.nlu.components import Component class IntentClassifier(Component): pass
14.666667
41
0.795455
015459add06d5fbcf2e138e453cf45c89e37e397
1,365
py
Python
python/en/archive/topics/temp/nlp/python4data_science-cleaning_and_prepping_data-Dealing_with_NaN.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/nlp/python4data_science-cleaning_and_prepping_data-Dealing_with_NaN.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/archive/topics/temp/nlp/python4data_science-cleaning_and_prepping_data-Dealing_with_NaN.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ python4data_science-cleaning_and_prepping_data.py Cleaning and Prepping Data with Python for Data Science — Best Practices and Helpful Packages Robert R.F. DeFilippi Oct 15, 2018 · 24 min read https://medium.com/@rrfd/cleaning-and-prepping-data-with-python-for-data-science-best-prac...
23.135593
129
0.607326
09f0973130457f843fe91f9879caadf1d020b2dc
4,115
py
Python
Vorlesungsinhalte/2020-10-23_MauMau/maumau.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-23_MauMau/maumau.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
null
null
null
Vorlesungsinhalte/2020-10-23_MauMau/maumau.py
wwi20ama-programmierung/python-intro
e779e3f600b7e54b7c5baef503b79065bdc3cdb6
[ "MIT" ]
2
2020-10-08T18:08:59.000Z
2020-10-29T19:53:34.000Z
import random def neue_karten(): return [ ("Kreuz", "Sieben"), ("Kreuz", "Acht"), ("Kreuz", "Neun"), ("Kreuz", "Zehn"), ("Kreuz", "Bube"), ("Kreuz", "Dame"), ("Kreuz", "König"), ("Kreuz", "Ass"), ("Pik", "Sieben"), ("Pik", "Acht"), ("Pik", "Neun"), ...
28.37931
87
0.634994
61edb1abbdacf1f0ac5060a9f6cd22e1c9c8ff7f
2,880
py
Python
Practice-2019-05-11/scripts/bert_utils.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/bert_utils.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
null
null
null
Practice-2019-05-11/scripts/bert_utils.py
serge-sotnyk/nlp-practice
e38400590a3fcf140a73d6871a778b3c2115a2fe
[ "MIT" ]
2
2020-05-17T17:22:14.000Z
2020-09-23T08:31:46.000Z
import sys import numpy as np from keras_bert import load_trained_model_from_checkpoint from scripts.tokenization import FullTokenizer #_folder = "d:\\nlp\\multi_cased_L-12_H-768_A-12\\" _folder = "d:\\nlp\\cased_L-12_H-768_A-12\\" _config_path = _folder + 'bert_config.json' _checkpoint_path = _folder + 'bert_model.ck...
37.894737
157
0.703819
116495944c826eeb64f5a189f016153c1f3c68eb
465
py
Python
m6_006/py_mit6_006/heap/__init__.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
m6_006/py_mit6_006/heap/__init__.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
m6_006/py_mit6_006/heap/__init__.py
zaqwes8811/cs-courses
aa9cf5ad109c9cfcacaadc11bf2defb2188ddce2
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 def shift_idx(f): def wrapper(*args): return f(*args)-1 return wrapper class Heap(object): def __init__(self): pass @staticmethod @shift_idx def parent(i): return i/2 @staticmethod @shift_idx def left(i): return 2*i @staticme...
14.090909
40
0.552688
e924becbc87b9ecf30239f5f899ceab950c0dc6e
1,479
py
Python
Packs/PaloAltoNetworks_IoT/Scripts/iot_check_servicenow/iot_check_servicenow_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PaloAltoNetworks_IoT/Scripts/iot_check_servicenow/iot_check_servicenow_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PaloAltoNetworks_IoT/Scripts/iot_check_servicenow/iot_check_servicenow_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto import iot_check_servicenow from iot_check_servicenow import check_servicenow_and_close _INCIDENTS = [ { 'id': 1, 'status': 0, 'type': 'IoT Alert' }, { 'id': 2, 'status': 1, 'type': 'IoT Vulnerability', 'CustomFields': {...
25.947368
93
0.588235
3aecbda67510a6417d4c5e53d64dbde6b9da05e4
831
py
Python
update_download_targets.py
doekman/PostgresApp
1f02d2239c3baf298a7c69c47a6edc666127f9bc
[ "PostgreSQL" ]
4,933
2015-01-01T03:23:52.000Z
2022-03-30T22:49:21.000Z
update_download_targets.py
doekman/PostgresApp
1f02d2239c3baf298a7c69c47a6edc666127f9bc
[ "PostgreSQL" ]
442
2015-01-01T14:25:30.000Z
2022-03-13T00:03:03.000Z
update_download_targets.py
tiarebalbi/PostgresApp
80d9c6d8acb5ce6f4dc45d445af391cfbbf0a8f5
[ "PostgreSQL" ]
318
2015-01-20T09:46:28.000Z
2022-03-27T05:12:52.000Z
import glob for makefile in glob.glob('src*/makefile'): print('Processing', makefile) download_target = 'download: ' with open(makefile, 'r+') as f: lines = f.readlines() replace = False for i in range(len(lines)): if 'curl' in lines[i].lower() and ':' in lines[i-1]: ...
33.24
69
0.510229
955ff453c80e7e65d73b2759f6359afe6fdecad7
380
py
Python
pages/themes/beginners/logicalExpressionsAndConditionalStatements/HW/simpleTest.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/logicalExpressionsAndConditionalStatements/HW/simpleTest.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
pages/themes/beginners/logicalExpressionsAndConditionalStatements/HW/simpleTest.py
ProgressBG-Python-Course/ProgressBG-Python
6429833696c2c50d9f902f62cc3a65ca62659c69
[ "MIT" ]
null
null
null
from random import randint machine_number = randint(1, 10) print("machine_number= {}".format(machine_number)) # one user move user_number = (int(input("Your guess:"))) if user_number == machine_number: print("Congratulations!That's the number!") elif user_number > machine_number: print("Lower!") elif user_n...
21.111111
50
0.718421
c2cd511b4e079394c2d48da633f2eaa8c38e93f6
307
py
Python
fixture/profile.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
fixture/profile.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
fixture/profile.py
AlexStroke/OKB
b4b25c2912a7fd735218323d980aa2b60eaa46e2
[ "Apache-2.0" ]
null
null
null
class ProfileHelper: def __init__(self, app): self.app = app def click_profile_button(self): driver = self.app.driver driver.find_element_by_xpath("//div[@id='navbarCollapse']/links/ul/li[5]/a/div/span").click() driver.find_element_by_link_text(u"Профиль").click()
30.7
101
0.667752
66c501feacde8ba19b61bb4dfdbd8f61c35b82c6
1,274
py
Python
py/jpy/src/test/python/jpy_eval_exec_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
py/jpy/src/test/python/jpy_eval_exec_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_eval_exec_test.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
import unittest import jpyutil jpyutil.init_jvm(jvm_maxmem='512M', jvm_classpath=['target/classes', 'target/test-classes']) import jpy class TestEvalExec(unittest.TestCase): def setUp(self): self.fixture = jpy.get_type("org.jpy.fixtures.EvalTestFixture") self.assertIsNotNone(self.fixture) de...
30.333333
92
0.641287
dda22cf9c77e456f3b4d9ffa7e1aa6cb2ba452e6
13,190
py
Python
SequenceModel/main.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
SequenceModel/main.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
SequenceModel/main.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
import os os.environ['CUDA_VISIBLE_DEVICES'] = '0' from seq_model import * import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from tqdm import tqdm from torch.utils.data import DataLoader from seq_dataset import * import warnings warnings.filterwarnings('ignore') model_save_dir = os.pa...
39.023669
140
0.59492
afc9f1f4bf45cfcc0b2d6cae5a833fc8460d6b32
24,981
py
Python
Textovka/engine.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
Textovka/engine.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
Textovka/engine.py
Bertik23/spg
f6449f1ca8f3a869f0f493f3988b3d84901c1be0
[ "MIT" ]
null
null
null
from colr import color import unicodedata import os import cloudpickle as pickle import logging import sys #import networkx as nx #import matplotlib.pyplot as plt from math import inf #logging.basicConfig(level=logging.DEBUG) from math import inf class AlreadyIn(Exception): def __init__(self, what, where, ...
39.032813
381
0.572315
5537be8aaba2e8b9e12e4619ec54d4755a1cd86e
1,636
py
Python
src/onegov/election_day/utils/election/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/utils/election/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/utils/election/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.election_day.utils.election.candidates import get_candidates_data from onegov.election_day.utils.election.candidates import \ get_candidates_results from onegov.election_day.utils.election.candidates import \ get_candidates_results_by_entity from onegov.election_day.utils.election.candidates import ...
40.9
79
0.829462
557cc8749cd8f27646dc9c1211a91262549db668
2,862
py
Python
Database-Tags-Initialize.py
RunDworld/dbt
561d4c0e380d42da58e5ed3c64910553e5fe7404
[ "BSD-3-Clause" ]
null
null
null
Database-Tags-Initialize.py
RunDworld/dbt
561d4c0e380d42da58e5ed3c64910553e5fe7404
[ "BSD-3-Clause" ]
null
null
null
Database-Tags-Initialize.py
RunDworld/dbt
561d4c0e380d42da58e5ed3c64910553e5fe7404
[ "BSD-3-Clause" ]
null
null
null
import argparse import sys from google.cloud import language from google.cloud.language import enums from google.cloud.language import types import six import pandas as pd from flask import Flask, request, jsonify import pymysql import phonetics import os # importing json key file os.environ["GOOGLE_APPLICATION_CREDEN...
27.257143
145
0.660028
f9588371acf84f11abacf293d24503596b7ef7fd
865
py
Python
5_Closures_and_Decorators/decorator_parameter.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
5_Closures_and_Decorators/decorator_parameter.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
5_Closures_and_Decorators/decorator_parameter.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
import time from functools import wraps # TIMER print("----------TIMER----------") def timing_extended(use_ns_timer=False): if use_ns_timer: time_fn = time.perf_counter_ns time_scale = "ns" else: time_fn = time.perf_counter time_scale = "n" def timing(fn): # Decorator ...
23.378378
91
0.576879
f9ce2f37fc40712299f114a297e65843f0d86659
4,674
py
Python
helper/validation.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2022-01-03T14:00:17.000Z
2022-01-03T14:00:17.000Z
helper/validation.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
null
null
null
helper/validation.py
fishial/Object-Detection-Model
4792f65ea785156a8e240d9cdbbc0c9d013ea0bb
[ "CC0-1.0" ]
1
2021-12-21T09:50:53.000Z
2021-12-21T09:50:53.000Z
import os import cv2 import sys # Change path specificly to your directories sys.path.insert(1, '/home/codahead/Fishial/FishialReaserch') import warnings warnings.filterwarnings('ignore') from os import listdir from os.path import isfile, join from shapely.geometry import Polygon from tqdm import tqdm from shapely.v...
38.95
105
0.644202