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
f1bbdcedf5dfbd7ec9ce574cb7c93e95634ac8a7
372
py
Python
frds/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
frds/__init__.py
mgao6767/wrds
7dca2651a181bf38c61ebde675c9f64d6c96f608
[ "MIT" ]
null
null
null
import sys __version__ = "0.8.0" __description__ = "Financial Research Data Services" __author__ = "Mingze Gao" __author_email__ = "adrian.gao@outlook.com" __project_url__ = "https://frds.io" __github_url__ = "https://github.com/mgao6767/frds/" if sys.version_info.major < 3 and sys.version_info.minor < 8: print("...
28.615385
61
0.736559
cdb122b0d871be21a3420ca59f1dc4fb925c2dce
979
py
Python
Interview Preparation Kits/Interview Preparation Kit/Search/Hash Tables: Ice Cream Parlor/ice_cream_parlor.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Search/Hash Tables: Ice Cream Parlor/ice_cream_parlor.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Search/Hash Tables: Ice Cream Parlor/ice_cream_parlor.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys from collections import defaultdict # Complete the whatFlavors function below. def whatFlavors(cost, money): new_dict = defaultdict(list) for i in range(len(cost)): new_dict[cost[i]].append(i+1) for c in new_dict: if (...
24.475
72
0.54954
a90e08dafeeea57b80188a748a5965547b73fd38
4,991
py
Python
merkur_venus_orbit.py
jl-wynen/Schuelerakademie-Merkur
dc6462a1ba602ee8bc90d74a826efa89917fdaeb
[ "MIT" ]
null
null
null
merkur_venus_orbit.py
jl-wynen/Schuelerakademie-Merkur
dc6462a1ba602ee8bc90d74a826efa89917fdaeb
[ "MIT" ]
null
null
null
merkur_venus_orbit.py
jl-wynen/Schuelerakademie-Merkur
dc6462a1ba602ee8bc90d74a826efa89917fdaeb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ### Darstellung der Merkur- und Venusorbits mit VPython from vpython import * # ---------------------------------- ## Parameter # ---------------------------------- # Für Merkur Parameter siehe # http://nssdc.gsfc.nasa.gov/planetary/factsheet/mercuryfact.html # Für Venus ...
33.496644
88
0.606692
196251bb55fc16a31dba4c527f044d0cc1d65609
18,658
py
Python
tests/test_transform.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
tests/test_transform.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
tests/test_transform.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 """test_transform.py - test of tramsform-module of DHParser Author: Eckhart Arnold <arnold@badw.de> Copyright 2018 Bavarian Academy of Sciences and Humanities Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may o...
41.740492
112
0.553275
8bf63d63b2a9f67425a5d2ed18c443cf5a7656a5
501
py
Python
tmp/analyses/examples/1_type_hint.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
tmp/analyses/examples/1_type_hint.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
tmp/analyses/examples/1_type_hint.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import transonic as ts from transonic import Type, NDim, Array, Union import numpy as np import skimage T = Type(int, np.complex128) dim = 2 dim += 1 N = NDim(1, dim) A = Array[T, N] A1 = Array[np.float32, N + 1] A3d = Array[np.float32, "3d"] N1 = NDim(4, 5) N1 = NDim(4, 5) T = Type(int, np.complex128) a_type_...
14.735294
55
0.628743
8bd0e042168cfb550997a64cc353cbf43fa9f72e
829
py
Python
top/clearlight/base/liaoxuefeng/base/Dict_02_example.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/base/Dict_02_example.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/base/Dict_02_example.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
def printWithChinese(dic): for i in dic: print(i, ":", dic[i]) print('------------------') book_dict = {"price": 500, "bookName": "Python设计", "weight": "250g"} printWithChinese(book_dict) book_dict["owner"] = "tyson" # 第一种方式,指定key,并且为其赋值一个value,如果key存在,就是修改value,反之就添加一个Entry(key-value) printWithChi...
28.586207
95
0.75392
478438ec2c8f6f6f745c4af8acd716477b8f7f2c
923
pyde
Python
sketches/pygame_colors/pygame_colors.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/pygame_colors/pygame_colors.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/pygame_colors/pygame_colors.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
WIDTH = 600 HEIGHT = 600 FPS = 60 MAX_TIME = 120 from color_list import pygame_colors from rgb_list import pygame_all_rgb def setup(): global timer, index size(WIDTH, HEIGHT) this.surface.setTitle("Pygame Colors") font = createFont("American Typewriter", 40) textAlign(CENTER) textFont(font) ...
23.075
50
0.613218
9a3adb2fc8f976045d31e8a19048c3f9d39e1b94
1,748
py
Python
tests/LanguageDetectionModelTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/LanguageDetectionModelTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
tests/LanguageDetectionModelTest.py
surfmachine/language-detection
b44fbb4c7b59fc70388197653060cee67b5a2ee7
[ "MIT" ]
null
null
null
import unittest from libs.ModelFactory import ModelFactory class LanguageDetectionModelTest(unittest.TestCase): def __init__(self, *args, **kwargs): super(LanguageDetectionModelTest, self).__init__(*args, **kwargs) self.models = ModelFactory().create(); self.texts = { "de" : "...
35.673469
94
0.557208
3ec9df51ca2a784518b06438275b8e1f2c17d3d4
153
py
Python
hostsystem/raspiGPIO.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
hostsystem/raspiGPIO.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
hostsystem/raspiGPIO.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO # Programmcode # GPIO Reset GPIO.cleanup() # Denken Sie daran, dass ein Programm nicht unbedingt mit der letzten Zeile endet.
17
82
0.764706
de9ddd1ff48acb56c2bd75f3bc3cd333fc8a5595
1,620
py
Python
public/chart/integrations/django/samples/fusioncharts/samples/Adding_Reference_Line.py
AizaDapitan/PMC-IMS_V3
271ce3193edbf5182a9e232666ca417561ba2d16
[ "MIT" ]
14
2016-11-03T19:06:21.000Z
2021-11-24T09:05:09.000Z
public/chart/integrations/django/samples/fusioncharts/samples/Adding_Reference_Line.py
AizaDapitan/PMC-IMS_V3
271ce3193edbf5182a9e232666ca417561ba2d16
[ "MIT" ]
10
2022-02-16T07:17:49.000Z
2022-03-08T12:43:51.000Z
asset/integrations/django/samples/fusioncharts/samples/Adding_Reference_Line.py
Piusshungu/catherine-junior-school
5356f4ff5a5c8383849d32e22a60d638c35b1a48
[ "MIT" ]
17
2016-05-19T13:16:34.000Z
2021-04-30T14:38:42.000Z
from django.shortcuts import render from django.http import HttpResponse # Include the `fusioncharts.py` file which has required functions to embed the charts in html page from ..fusioncharts import FusionCharts from ..fusioncharts import FusionTable from ..fusioncharts import TimeSeries import requests # Loading Dat...
39.512195
130
0.661728
7200c1c003c8eea0c3739e9e2f74cfffe07754e0
275
py
Python
backups/backup/python/hello-python/literals.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
backups/backup/python/hello-python/literals.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
null
null
null
backups/backup/python/hello-python/literals.py
roskenet/Playground
3cce70eeb38646b0f2ffbd071c3aaec7b8f5b9cb
[ "MIT" ]
1
2020-10-02T04:57:25.000Z
2020-10-02T04:57:25.000Z
# This is a string my_str = '42' my_int = 42 my_octal = 0o52 my_hex = 0x2A my_bin = 0b101010 # my_octal === my_str print('Hello World') my_var = 42 the_other_var = 24 a_cool_var = my_var + the_other_var my_name = input('Gib Deinen Namen ein:') print('Name: ', my_name)
13.75
40
0.694545
dffe752a86b994d43fb2ae03bb5e0e03aa8a7f28
172
py
Python
lbry/lbry/wallet/server/db/common.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
lbry/lbry/wallet/server/db/common.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/lbry/wallet/server/db/common.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
CLAIM_TYPES = { 'stream': 1, 'channel': 2, } STREAM_TYPES = { 'video': 1, 'audio': 2, 'image': 3, 'document': 4, 'binary': 5, 'model': 6 }
12.285714
18
0.453488
5f38e9644791cf9cd08f282538109819803d04a3
1,675
py
Python
vkapp/bot/logic/core/StateMachine.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
1
2017-11-23T13:33:13.000Z
2017-11-23T13:33:13.000Z
vkapp/bot/logic/core/StateMachine.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
vkapp/bot/logic/core/StateMachine.py
ParuninPavel/lenta4_hack
6d3340201deadf5757e37ddd7cf5580b928d7bda
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from vkapp.bot.logic.user_filters import StatsFilter, ProposeNewsFilter, AdminChatFilter class StateMachine(object): def __init__(self): self.state = None self.user_struct = None self.filters = [StatsFilter(), ProposeNewsFilter(), AdminChatFilter()] def fire(sel...
30.454545
88
0.632239
265bac15b56b0793c4b5a4828698eb9cbcfe2fc2
9,416
py
Python
Packs/CommonScripts/Scripts/NumberOfPhishingAttemptPerUser/NumberOfPhishingAttemptPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/NumberOfPhishingAttemptPerUser/NumberOfPhishingAttemptPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/NumberOfPhishingAttemptPerUser/NumberOfPhishingAttemptPerUser_test.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from NumberOfPhishingAttemptPerUser import get_relevant_incidents from CommonServerPython import * incident = [ {'ModuleName': 'InnerServicesModule', 'Brand': 'Builtin', 'Category': 'Builtin', 'ID': '', 'Version': 0, 'Type': 1, 'Contents': { 'ErrorsPrivateDoNotUse': None, 'data': [ {'Cu...
64.493151
119
0.489592
f897672be39441207e32a70dfedab7790cabae78
389
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/47. return the indices of all occurrences of an element in a list.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/47. return the indices of all occurrences of an element in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Challenges/Section_3_List/47. return the indices of all occurrences of an element in a list.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that returns the indices of all occurrences of an element in a list. Return the output in the form of a list. Example: input_list = [10,6,7,10,9,1,-1,10] element = 10 Expected output = [0,3,7] """ def indices(input_list, element): lst = [] for i in range(0, len(input_list)): i...
19.45
86
0.637532
3e4b61738297d7fb3eac4d0d4e95cf8b68c53a67
7,538
py
Python
year_3/databases_sem1/lab1/maxdb/queries.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
year_3/databases_sem1/lab1/maxdb/queries.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
21
2020-03-24T16:26:04.000Z
2022-02-18T15:56:16.000Z
year_3/databases_sem1/lab1/maxdb/queries.py
honchardev/KPI
f8425681857c02a67127ffb05c0af0563a8473e1
[ "MIT" ]
null
null
null
""" Implementing queries for DB. class QueryTest(object): A certain query test implementation. Wraps a test function which is run when the query is evaluated by calling the object. Hashval format: val_to_be_hashed ('query_operation_str', [hashval1, hashval2, ...]]) Parameter hash...
29.217054
92
0.520032
3e69b578839b4383bebeb7b8d58e441df6802537
11,533
py
Python
src/lecture2/logistic_regression/softmax_regression.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
1
2020-08-17T07:09:09.000Z
2020-08-17T07:09:09.000Z
src/lecture2/logistic_regression/softmax_regression.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
null
null
null
src/lecture2/logistic_regression/softmax_regression.py
Fassial/zju-intern
f421f9c97d3c567e9b97121c5bf5c675c9e2c721
[ "MIT" ]
2
2020-07-26T07:27:57.000Z
2020-08-17T07:09:15.000Z
""" Created on August 01 19:57, 2020 @author: fassial """ import os import sys import timeit import numpy as np import six.moves.cPickle as pickle # local dep from . import utils # import utils class SoftmaxRegression: def __init__(self, n_features, n_classes, penalty="l2", gamma=0.01, fit_intercept=False): ...
38.701342
107
0.52857
9019e7858bf3051540fe9f5e37cd2ac3a2c0efad
585
py
Python
admin-tutorial/AdminFields/fieldsets_/migrations/0003_auto_20210318_1438.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
5
2020-07-14T07:48:10.000Z
2021-12-20T21:20:10.000Z
admin-tutorial/AdminFields/fieldsets_/migrations/0003_auto_20210318_1438.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
7
2021-03-26T03:13:38.000Z
2022-03-12T00:42:03.000Z
admin-tutorial/AdminFields/fieldsets_/migrations/0003_auto_20210318_1438.py
zhengtong0898/django-decode
69680853a4a5b07f6a9c4b65c7d86b2d401a92b1
[ "MIT" ]
1
2021-02-16T07:04:25.000Z
2021-02-16T07:04:25.000Z
# Generated by Django 3.1.7 on 2021-03-18 06:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fieldsets_', '0002_auto_20210318_1431'), ] operations = [ migrations.AlterField( model_name='articlemodel', name='da...
24.375
60
0.6
080758b92a15444f83709be6d45845ef12610e09
608
py
Python
BigData_exp/exp1/0103.py
DolorHunter/hfut-exp-archived
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
12
2020-12-07T05:49:05.000Z
2022-03-25T09:09:36.000Z
BigData_exp/exp1/0103.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
null
null
null
BigData_exp/exp1/0103.py
DolorHunter/hfut-exp
c67e26c1f4fba550c8974eaba10dfa302b928868
[ "BSD-2-Clause" ]
1
2021-01-08T08:53:53.000Z
2021-01-08T08:53:53.000Z
# coding:utf-8 # 作业: 0103 # 作者: 王子翔 # 日期: 2019.03.30 # 通过for循环和sum函数分别实(写在一个程序中)现求1+2+…+n,其中n通过键盘输入 import turtle as t import time def main(): t.screensize(800, 600, "red") t.color("yellow", "blue") t.speed(100) x = 0 y = 200 for i in range(10): t.up() t.goto(x, y) ...
17.371429
46
0.455592
f2af63d6301d01de14cab27a382b739371add9b0
578
py
Python
restful04/users.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
restful04/users.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
restful04/users.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from flask import Blueprint,render_template,make_response from flask_restful import Resource,Api,marshal_with,fields from models import Article user_bp = Blueprint('user',__name__,url_prefix='/users') api =Api(user_bp) @api.representation('text/html') #告诉浏览器这是一个页面 def output_html(data,code,headers): resp = make_re...
25.130435
58
0.747405
8a1beef39702b527220d28e6e8ad7d7460bbbb07
5,378
py
Python
run_interpro.py
ncgr/Dask_Interpro
9aabd13dc0d49d6d5092901bbf4b62fefc9f0c43
[ "MIT" ]
null
null
null
run_interpro.py
ncgr/Dask_Interpro
9aabd13dc0d49d6d5092901bbf4b62fefc9f0c43
[ "MIT" ]
null
null
null
run_interpro.py
ncgr/Dask_Interpro
9aabd13dc0d49d6d5092901bbf4b62fefc9f0c43
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os, sys, errno import subprocess import argparse from dask_controller import distributed_single from dask.distributed import Client from time import sleep parser = argparse.ArgumentParser(description=''' Run Interpro or import ''', formatter_class=argparse.RawTextHelpFormatter) pa...
31.086705
132
0.609148
76e28683b234f813f13d4cd364d648ff324e7a51
1,393
py
Python
Packs/AnsibleLinux/Integrations/AnsibleDNS/AnsibleDNS.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/AnsibleLinux/Integrations/AnsibleDNS/AnsibleDNS.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
Packs/AnsibleLinux/Integrations/AnsibleDNS/AnsibleDNS.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
null
null
null
import ssh_agent_setup import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # Import Generated code from AnsibleApiModule import * # noqa: E402 host_type = 'local' # MAIN FUNCTION def main() -> None: """main function, parses params and runs command functions :return:...
27.313725
106
0.64537
0a6a2e7285a20ca2ac76d898f109b27d97400d3f
549
py
Python
src/bo4e/enum/kostenklasse.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/enum/kostenklasse.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/enum/kostenklasse.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
# pylint: disable=missing-module-docstring from bo4e.enum.strenum import StrEnum class Kostenklasse(StrEnum): """ Kostenklassen bilden die oberste Ebene der verschiedenen Kosten. In der Regel werden die Gesamtkosten einer Kostenklasse in einer App berechnet. """ FREMDKOSTEN = "FREMDKOSTEN" #: Fr...
34.3125
86
0.739526
6a9fea5425069c67cb38c3ffdfc14f333788a4b8
27,062
py
Python
20-hs-redez-sem/groups/05-decentGames/src/AegereDichNicht.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-hs-redez-sem/groups/05-decentGames/src/AegereDichNicht.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-hs-redez-sem/groups/05-decentGames/src/AegereDichNicht.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import pygame import random import time import udp_connection from logSync import database_sync import sys import os import pickle from logStore.appconn.chat_connection import ChatFunction import feed_control # determine absolute path of this folder dirname = os.path.abspath(os.path.dirname(__file__)) # Import from g...
36.324832
113
0.548999
0ac2c05ec628ae2f95c9d2baceec8263212f15b0
1,448
py
Python
src/test/tests/queries/length.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/queries/length.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/queries/length.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: length.py # Tests: queries - total length # # Defect ID: VisIt00007530 # # Programmer: Hank Childs # Date: November 8, 2006 # # Modifications: # # Hank Childs, Mon Nov 27 09:27:06 ...
24.965517
78
0.640884
0aef184fb0f732e1b537b463648e7ed923b97ecb
5,998
py
Python
sentinel/server/session.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
null
null
null
sentinel/server/session.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
null
null
null
sentinel/server/session.py
allagog0x01/sentwg
52285ecf2b03c30a78901a29a7af96c8ab5764c8
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 import json import falcon from ..db import db from ..helpers import end_session from ..vpn import wireguard class AddSessionDetails(object): def on_post(self, req, res, account_addr, session_id): # TODO did the request really come from master node account_addr = str(account_addr) ...
33.887006
138
0.536512
7c85326303eaee6012295f186a038c4a89b0a6e2
53,729
py
Python
Packs/CortexDataLake/Integrations/CortexDataLake/CortexDataLake.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CortexDataLake/Integrations/CortexDataLake/CortexDataLake.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CortexDataLake/Integrations/CortexDataLake/CortexDataLake.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
""" IMPORTS """ from CommonServerPython import * import os import re import requests import json from pancloud import QueryService, Credentials, exceptions import base64 from cryptography.hazmat.primitives.ciphers.aead import AESGCM from typing import Dict, Any, List, Tuple, Callable from tempfile import gettempdir fro...
44.999162
121
0.649779
6b2232efe048b7ee824ac48b61bfcc2fae5ea644
1,208
py
Python
zer0pts/2021/crypto/ot_or_not_ot/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
zer0pts/2021/crypto/ot_or_not_ot/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
zer0pts/2021/crypto/ot_or_not_ot/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
import os import signal import random from base64 import b64encode from Crypto.Util.number import getStrongPrime, bytes_to_long from Crypto.Util.Padding import pad from Crypto.Cipher import AES from flag import flag p = getStrongPrime(1024) key = os.urandom(32) iv = os.urandom(AES.block_size) aes = AES.new(key=key, m...
25.702128
62
0.56457
86284be8f524e2b394adda22b297cf9e7cd0cdec
717
py
Python
LeetCode_problems/kth_factor_of_n/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
165
2020-10-03T08:01:11.000Z
2022-03-31T02:42:08.000Z
LeetCode_problems/kth_factor_of_n/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
383
2020-10-03T07:39:11.000Z
2021-11-20T07:06:35.000Z
LeetCode_problems/kth_factor_of_n/solution.py
gbrls/CompetitiveCode
b6f1b817a655635c3c843d40bd05793406fea9c6
[ "MIT" ]
380
2020-10-03T08:05:04.000Z
2022-03-19T06:56:59.000Z
# This the main class for the solution class Solution: # This class takes two integer n and k as input def kthFactor(self, n: int, k: int) -> int: # Here n is the number and k is the kth factor. ls = [] # Initialize the empty list i = 1 while...
55.153846
101
0.457462
be1bee567ececa6ae91f8be4a69b818ae833f9f6
380
py
Python
PINp/2015/DANILENKOV_M_A/task_1_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DANILENKOV_M_A/task_1_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/DANILENKOV_M_A/task_1_8.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
# Задача 1 #Danilenkov_M.A. #Напишите программу, которая будет сообщать род деятельности и псевдоним под которым скрывается Ефим #Алексеевич Придворов. После вывода информации программа должна дожидаться пока пользователь нажмет Enter #для выхода. print ("Ефим Алексеевич Придворов, более известный как Демьян Бедный -...
63.333333
219
0.807895
ed1baae45513cce055e30b3a7303af93e4351e90
200
py
Python
palindrome.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-10-06T01:20:07.000Z
2020-10-06T01:20:07.000Z
palindrome.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
palindrome.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-09-30T18:53:05.000Z
2020-09-30T18:53:05.000Z
#!/usr/bin/env python # coding: utf-8 # In[3]: def isPalindrome(s): return s == s[::-1] # Driver code s = "123321" ans = isPalindrome(s) if ans: print("Yes") else: print("No") # In[ ]:
7.692308
21
0.56
130054a766981be28e41db31c1926c597e754468
4,489
py
Python
fhirclient/r4models/practitionerrole_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/practitionerrole_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/practitionerrole_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import practitionerrole from .fhirdate import FHIRDate class PractitionerRoleTests(unittest.TestCase): def insta...
57.551282
146
0.683003
13e57d163b5a293d88b601d4aa147d94f33c762b
481
py
Python
models/hr_employee_decoration.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_decoration.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
null
null
null
models/hr_employee_decoration.py
aroodooteam/aro_hr
bf26f026593493486b4b5c13b26b9b47b9fe3825
[ "BSD-2-Clause" ]
3
2017-09-11T08:02:11.000Z
2020-04-04T08:13:23.000Z
# -*- coding: utf-8 -*- from openerp import api, exceptions, fields, models, _ class HrEmployeeDecoration(models.Model): """gestion des decorations de l'employé""" _name = 'hr.employee.decoration' _description = u'decorations de l\'employé %' annee = fields.Date(string='Date') decoration_id = fie...
40.083333
105
0.723493
b9301bc5e57f4033f8ad0e1e207b98c8894cd843
2,325
py
Python
deprecated/benchmark/ps/ctr/local_train_benchmark.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
170
2020-08-12T12:07:01.000Z
2022-03-07T02:38:26.000Z
deprecated/benchmark/ps/ctr/local_train_benchmark.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
195
2020-08-13T03:22:15.000Z
2022-03-30T07:40:25.000Z
deprecated/benchmark/ps/ctr/local_train_benchmark.py
hutuxian/FleetX
843c7aa33f5a14680becf058a3aaf0327eefafd4
[ "Apache-2.0" ]
67
2020-08-14T02:07:46.000Z
2022-03-28T10:05:33.000Z
from __future__ import print_function from args import parse_args import os import paddle.fluid as fluid import sys import time from network_conf import ctr_dnn_model_dataset dense_feature_dim = 13 def train(): args = parse_args() if not os.path.isdir(args.model_output_dir): os.mkdir(args.model_outpu...
35.769231
102
0.635699
e01b4d5fc1e34bafb207140f937474edf0f2ba59
5,299
py
Python
tests/ernie_text_matching/data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/ernie_text_matching/data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
tests/ernie_text_matching/data.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021 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 appli...
33.537975
103
0.560861
e0525039203af334a202f9c0c93c2ab598790632
3,126
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cloudengine/test_ce_is_is_instance.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cloudengine/test_ce_is_is_instance.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/tests/unit/modules/network/cloudengine/test_ce_is_is_instance.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# (c) 2019 Red Hat Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is dis...
43.416667
145
0.734165
0ee08acd647544d458199cebea4f33c23d544acd
832
py
Python
src/onegov/feriennet/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/models/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.feriennet.models.activity import VacationActivity from onegov.feriennet.models.calendar import Calendar, AttendeeCalendar from onegov.feriennet.models.group_invite import GroupInvite from onegov.feriennet.models.invoice_action import InvoiceAction from onegov.feriennet.models.message import ActivityMessage ...
36.173913
78
0.816106
0ee18e0484e1ded4f96a5346d3763dbc7c524c47
112
py
Python
tests/resources/docker/docker-project/docker_project/core/config.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
tests/resources/simple/simple-project/app/core/config.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
tests/resources/simple/simple-project/app/core/config.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
from pydantic import BaseSettings class Settings(BaseSettings): PROJECT_NAME: str settings = Settings()
12.444444
33
0.767857
911aff666b12a36497a8804cc476d2d050bdd845
8,308
py
Python
official/cv/brdnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/brdnet/eval.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
official/cv/brdnet/eval.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...
42.605128
119
0.650096
e69da5409333eedb648f29b97da35cac663759a7
1,881
py
Python
projects/g3h2-cc/src/json_to_redis.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h2-cc/src/json_to_redis.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h2-cc/src/json_to_redis.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
import json import os import redis def run(): # 读取配置文件 with open('config.json', 'r', encoding='utf-8') as f: config = json.load(f).get('json_to_redis') if config is None: print('不能读取应用 `json_to_redis` 的配置。') exit() # 获取配置项 JSON_PATH = config.get('json_path') REDIS_HO...
26.125
100
0.528974
e6d5c8dd7d848239b73593327590af1705e8bc45
1,526
py
Python
Tests/Data/Elliptic/square_1x1_SteadyStateDiffusion_Python/bcs_laplace_eq.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
1
2021-06-25T13:43:06.000Z
2021-06-25T13:43:06.000Z
Tests/Data/Elliptic/square_1x1_SteadyStateDiffusion_Python/bcs_laplace_eq.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
13
2015-01-09T13:08:57.000Z
2018-01-25T12:56:17.000Z
Tests/Data/Elliptic/square_1x1_SteadyStateDiffusion_Python/bcs_laplace_eq.py
fwitte/ogs
0b367872fc58ecd4e1dbfe1dcebbc847da6639d7
[ "BSD-3-Clause" ]
2
2018-03-01T13:07:12.000Z
2018-03-01T13:16:22.000Z
import OpenGeoSys from math import pi, sin, cos, sinh, cosh a = 2.0*pi/3.0 # analytical solution used to set the Dirichlet BCs def solution(x, y): return sin(a*x) * sinh(a*y) # gradient of the analytical solution used to set the Neumann BCs def grad_solution(x, y): return a * cos(a*x) * sinh(a*y), \ ...
28.792453
68
0.629096
53871fea2dd0813146ba92950db404370f3e824f
395
py
Python
app/app/tests.py
ProXPegasus/recpie-app-api
f11644398393a7063f9330814361dae22a330203
[ "MIT" ]
null
null
null
app/app/tests.py
ProXPegasus/recpie-app-api
f11644398393a7063f9330814361dae22a330203
[ "MIT" ]
null
null
null
app/app/tests.py
ProXPegasus/recpie-app-api
f11644398393a7063f9330814361dae22a330203
[ "MIT" ]
null
null
null
from django.test import TestCase from app.calc import * class TestCalc(TestCase): def test_addition(self): self.assertEqual(add(1,1),2) def test_subtraction(self): self.assertEqual(Subtraction(1,1),0) def test_multiplication(self): self.assertEqual(Multiplication(1,1),1) ...
24.6875
47
0.665823
538d092e526ac45d8c8c98167a8eaac2a774872f
3,282
py
Python
radiomics/infer.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/infer.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
radiomics/infer.py
RimeT/p3_radio
3d522a4356c62255cd93c6d74eb388a2e474dd00
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import argparse import joblib import numpy as np import pandas as pd import tools # 2D数据参数测试 # parser.add_argument('--feature_csv', help='feature csv file, will take the first row as feature', default='./example-2D/output/filter/feature_selected.csv') # parser.add_argument('--model', help='...
47.565217
158
0.685558
539b8080c588d07ed36f0872cd9684dab428bc84
338
py
Python
Licence 2/I33/TP 3/ex_6.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
8
2020-11-26T20:45:12.000Z
2021-11-29T15:46:22.000Z
Licence 2/I33/TP 3/ex_6.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
null
null
null
Licence 2/I33/TP 3/ex_6.py
axelcoezard/licence
1ed409c4572dea080169171beb7e8571159ba071
[ "MIT" ]
6
2020-10-23T15:29:24.000Z
2021-05-05T19:10:45.000Z
def multbyalpha(b, f): resultat = b << 1 taille = len(bin(f)) - 3 if ((resultat & (1 << taille)) != 0): resultat ^= f return resultat def table_log(P): m = len(bin(P)) - 3 c = 1 << m L = [-1] * c i, j = 1, 0 while j < c - 1: L[i], i = j, multbyalpha(i, P) j ...
18.777778
41
0.434911
07001a45b546ecc81752cea97ccf9c8afdd4557e
1,038
py
Python
PINp/2015/ZATERIN_V_D/task_9_13.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/ZATERIN_V_D/task_9_13.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
PINp/2015/ZATERIN_V_D/task_9_13.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#1-50. Создайте игру, в которой компьютер выбирает какое-либо слово, а игрок должен #его отгадать. Компьютер сообщает игроку, сколько букв в слове, и дает пять попыток #узнать, есть ли какая-либо буква в слове, причем программа может отвечать только #"Да" и "Нет". Вслед за тем игрок должен попробовать отгадать слов...
37.071429
85
0.692678
dbb31b9b4ff2ceda7566b2c10c4f7b8105029ddd
2,157
py
Python
tests/test_file_folder.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
tests/test_file_folder.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
tests/test_file_folder.py
MZH-bust/genutil
f17190ec484d5844f8950908cc07556a5b1429e7
[ "MIT" ]
null
null
null
import pytest from genutil import file_folder import hamcrest from datetime import datetime from pathlib import Path from tests import generic class TestGetFileModificationDatetime: @pytest.mark.parametrize( "test_parameter,test_cases,expected", [ pytest.param(("test_file_folder.py", )...
51.357143
172
0.622624
91c43766609456d5d3d3fd0903d1ef34066240ed
426
py
Python
ProjectEuler_plus/euler_004.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_004.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
ProjectEuler_plus/euler_004.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys def is_palindromic(n): return n == n[::-1] results = set() for i in range(100, 1000): for j in range(100, 1000): k = i * j if is_palindromic(str(k)): results.add(k) t = int(input().strip()) for a0 in range(t): n = int(input().strip()) for...
19.363636
48
0.516432
91e02b6edbe23cffdf788389c0287530f64ba74d
7,807
py
Python
BITs/2014/Kozlov_A_D/task_10_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Kozlov_A_D/task_10_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
BITs/2014/Kozlov_A_D/task_10_11.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
#Задача 10. Вариант 11. #1-50. Напишите программу "Генератор персонажей" для игры. Пользователю должно быть предоставлено 30 пунктов, которые можно распределить между четырьмя характеристиками: Сила, Здоровье, Мудрость и Ловкость. Надо сделать так, чтобы пользователь мог не только брать эти пункты из общего "пула", но...
42.895604
379
0.500576
37f738b8e94b320e7949f78fd5c9c07b0fe28dba
3,485
py
Python
Challenge_1/members/martin.py
joeherold/weekly_coding_challenge_fwkwkw_python
5c2795fdf38970a387540141ad95408c527a7779
[ "MIT" ]
1
2020-05-15T13:43:16.000Z
2020-05-15T13:43:16.000Z
Challenge_1/members/martin.py
joeherold/weekly_coding_challenge_fwkwkw_python
5c2795fdf38970a387540141ad95408c527a7779
[ "MIT" ]
4
2020-05-15T17:46:52.000Z
2020-07-06T11:48:37.000Z
Challenge_1/members/martin.py
joeherold/weekly_coding_challenge_fwkwkw_python
5c2795fdf38970a387540141ad95408c527a7779
[ "MIT" ]
null
null
null
# gegebene Liste myNumberList = [25, 45, 25, 78, 21, 14, 87, 32, 57, 54] # gewünschtes Ergebnis # mySortedNumberList = [14, 21, 25, 25, 32, 45, 54, 57, 78, 87] # Bonusaufgabe # gewünschtes Ergebnis ist das Auffüllen der leeren Stellen zwischen den Zahlen mit 0 myFancySortedNumberList = [14, 0, 0, 0, 0, 0, 0, 21, 0, 0,...
37.880435
262
0.603443
5339b579c0afbf78adecc02796deaa7b211564af
1,205
py
Python
src/test/tests/databases/sw4.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/databases/sw4.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/databases/sw4.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: SW4.py # # Tests: mesh - 3D curvilinear, multi domain # - 3D rectilinear, single domain # plots - Pseudocolor # # Programmer: Eric Brugger # Date: ...
24.1
78
0.580913
72c51e79e34a475b4df0beed4818dd98e3be13cf
227
py
Python
tests/resources/postgres-docker/postgres-docker-project/tests/test_home.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
14
2021-03-27T22:18:56.000Z
2022-03-21T19:04:48.000Z
tests/resources/postgres/postgres-project/tests/test_home.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
33
2021-03-28T21:06:22.000Z
2022-03-07T14:18:26.000Z
{{ cookiecutter.project_slug }}/tests/test_home.py
Kludex/fastapi-template
47256eb8f8c7439a4d669172d94ce84c62cdb25a
[ "MIT" ]
null
null
null
import pytest from httpx import AsyncClient @pytest.mark.asyncio async def test_home(client: AsyncClient): res = await client.get("/api/v1/") assert res.status_code == 200 assert res.json() == {"Hello": "World!"}
22.7
44
0.69163
fe9f1a73e6b2f7cbc03e9f97378b114e5aa8ca22
1,185
py
Python
Algorithms/5_Searching/4.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
2
2021-11-21T07:59:17.000Z
2021-11-25T13:41:50.000Z
Algorithms/5_Searching/4.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
null
null
null
Algorithms/5_Searching/4.py
abphilip-codes/Hackerrank_DSA
bb9e233d9d45c5b14c138830602695ad4113fba4
[ "MIT" ]
1
2021-09-20T16:20:07.000Z
2021-09-20T16:20:07.000Z
# https://www.hackerrank.com/challenges/making-candies/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'minimumPasses' function below. # # The function is expected to return a LONG_INTEGER. # The function accepts following parameters: # 1. LONG_INTEGER m # 2. LONG_I...
20.084746
62
0.55865
fea5535aee26b90dcae24586e0b01de321c05613
708
py
Python
tests/onegov/ballot/collections/test_candidates.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/collections/test_candidates.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/ballot/collections/test_candidates.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from datetime import date from onegov.ballot import Candidate from onegov.ballot import CandidateCollection from onegov.ballot import Election def test_candidates(session): election = Election( title="Election", domain='federation', date=date(2015, 6, 14) ) election.candidates.appe...
24.413793
59
0.638418
2295b12fd1ce32db0d1afb58262349f5aff45988
6,034
py
Python
official/cv/retinaface_resnet50/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/retinaface_resnet50/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/retinaface_resnet50/src/utils.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...
36.792683
104
0.564137
a3fc036a0137e985e5010df771070646a34f5420
445
py
Python
py_restart_merge_n.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
py_restart_merge_n.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
py_restart_merge_n.py
ligang945/pyMisc
3107c80f7f53ffc797b289ec73d1ef4db80f0b63
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import os import time def replace_in_file(old_str, new_str): file_name = 'ini/config/xdr_build.xml' str = open(file_name, 'r').read().replace(old_str, new_str) open(file_name, 'w').write(str) replace_in_file('<!--lg', '') n = int(sys.argv[1])+10 str1 = '<Stage%s/>' %...
26.176471
64
0.638202
4a55e81cea3a45ded565672b52cda7c1548a64f1
783
py
Python
fg/tournaments/management/commands/load_players.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/management/commands/load_players.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
fg/tournaments/management/commands/load_players.py
alex-evans/fgolf
8fcdfd72d168e25204a914e57d4c3478382fd473
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, CommandError from tournaments.models import Player import csv import os class Command(BaseCommand): help = 'Loads Players from players.csv file in fg/external_files/csvs' def handle(self, *args, **options): self.clear_players() path = '/Use...
32.625
80
0.64751
4a9214c8d8254ab878b5849243bbbdeb11bc6a92
78,705
py
Python
Packs/CiscoFirepower/Integrations/CiscoFirepower/CiscoFirepower.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CiscoFirepower/Integrations/CiscoFirepower/CiscoFirepower.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CiscoFirepower/Integrations/CiscoFirepower/CiscoFirepower.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 ''' IMPORTS ''' from typing import Dict, List, Tuple, Union import urllib3 # Disable insecure warnings urllib3.disable_warnings() '''GLOBALS/PARAMS''' INTEGRATION_NAME = 'Cisco Firepower' INTEGRATION_CONTEXT_NAME = 'CiscoFP...
49.531152
119
0.623849
43de75e047d330c4c706285e505ca5f6fde18cf1
4,085
py
Python
google_places_popularity/aggregator.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
29
2020-03-21T00:47:51.000Z
2021-07-17T15:50:33.000Z
google_places_popularity/aggregator.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
7
2020-03-21T14:04:26.000Z
2022-03-02T08:05:40.000Z
google_places_popularity/aggregator.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
13
2020-03-21T01:08:08.000Z
2020-04-08T17:21:11.000Z
from webbrowser import get import boto3 import json import time from datetime import date import pandas as pd import pymongo import csv s3_client = boto3.client('s3') date = date.today() data = pd.DataFrame() clientFirehose = boto3.client('firehose') for x in range(9,19): try: response = s3_client.get_ob...
30.485075
198
0.623256
7195b2c0b8f590b6ae9ef556bdb7ef1129798ef5
291
py
Python
Chapter2_Python/10-NumpyIntro.py
olebause/TensorFlow2
70fcb7c85c7ead0dc4f88ffa35be5f2eb93e618e
[ "MIT" ]
2
2021-02-13T19:18:00.000Z
2021-11-10T09:54:49.000Z
Chapter3_Libraries/NumpyIntro.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
Chapter3_Libraries/NumpyIntro.py
franneck94/UdemyPythonIntro
4895a91a04eedce7d59b61bf12e5aa209fe60f85
[ "MIT" ]
null
null
null
import numpy as np list1 = np.array([-2, 1, 2, -10, 22, -10]) print(np.max(list1)) print(np.min(list1)) list2 = np.array([-20, 123, 112, -10, 22, -120]) print(np.max(list2)) print(np.min(list2)) print(np.mean(list1)) print(np.mean(list2)) print(np.median(list1)) print(np.median(list2))
18.1875
48
0.656357
71c5497d4bed7689f3eb3cb97c70ea65ce19dc19
2,325
py
Python
test/test_npu/test_network_ops/test_adaptive_max_pool2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_adaptive_max_pool2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_adaptive_max_pool2d_backward.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.All rights reserved. # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
38.114754
89
0.692903
1cf8b8d717033629759e8014e6da53cbb3e2929f
481
py
Python
python/is_prime_function.py
daoxuewu/cheat_sheet
4a164f7eccb85ca39b9a9ad58fe5d495862ecf44
[ "MIT" ]
null
null
null
python/is_prime_function.py
daoxuewu/cheat_sheet
4a164f7eccb85ca39b9a9ad58fe5d495862ecf44
[ "MIT" ]
null
null
null
python/is_prime_function.py
daoxuewu/cheat_sheet
4a164f7eccb85ca39b9a9ad58fe5d495862ecf44
[ "MIT" ]
null
null
null
# 解法2 function寫法 # 參考來源 : https://gist.github.com/uranusjr/581ba170cc5a42bdd3ff56ede01994ae max = eval(input("max : ")) min = eval(input("min : ")) def is_prime(max): for i in range(min, max): if max % i == 0: # 整除,i 是 max 的因數,所以 max 不是質數。 return False return True # 都沒有人能整除,所以...
32.066667
75
0.555094
1c43a5d43acef9b7daa27745b07cce0f336cf9ba
200
py
Python
src/server/app/endpoints/thankyou/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/thankyou/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
src/server/app/endpoints/thankyou/controllers.py
MatthiasRiener/DigiPen
9b4aff4a1c431e06d73733dc3dd3f3f3d4631704
[ "MIT" ]
null
null
null
from flask import Flask, render_template, Blueprint thankyou = Blueprint("thankyou", __name__) @thankyou.route('/', methods=["GET"]) def index(): return render_template('/thankyou/index.html')
22.222222
51
0.73
1c6ddc2de7898d4916bff769b491faa24a48e509
65,640
py
Python
Packs/PrismaCloudCompute/Integrations/PaloAltoNetworks_PrismaCloudCompute/PaloAltoNetworks_PrismaCloudCompute.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/PrismaCloudCompute/Integrations/PaloAltoNetworks_PrismaCloudCompute/PaloAltoNetworks_PrismaCloudCompute.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/PrismaCloudCompute/Integrations/PaloAltoNetworks_PrismaCloudCompute/PaloAltoNetworks_PrismaCloudCompute.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * ''' IMPORTS ''' import requests import ipaddress import dateparser import tempfile from typing import Tuple # Disable insecure warnings requests.packages.urllib3.disable_warnings() ''' CONSTANTS ''' ALERT_TITLE = 'Prisma Cloud Compute Alert - ' ALERT_TY...
39.328939
120
0.616804
1bf20e531d5c509408e975d94ae7b368da495756
469
py
Python
Codeforces/641-2/B.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
6
2018-10-15T18:45:05.000Z
2022-03-29T04:30:10.000Z
Codeforces/641-2/B.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
null
null
null
Codeforces/641-2/B.py
dipta007/Competitive-Programming
998d47f08984703c5b415b98365ddbc84ad289c4
[ "MIT" ]
4
2018-01-07T06:20:07.000Z
2019-08-21T15:45:59.000Z
t = int(input()) for ci in range(t): n = int(input()) arr = list(map(int, input().split())) # print(n, arr) # import random # arr = random.sample(range(1, 1000000), n) # print(arr) mark = [0 for _ in range(n+4)] for i in range(n-1, -1, -1): nw = i + 1 maxy = 0 for j in range(i+nw, n, nw):...
20.391304
45
0.498934
402234490911b329279f34a4167dde3ac484234b
961
py
Python
python/coursera_python/MICHIGAN/code3/urllinks.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/coursera_python/MICHIGAN/code3/urllinks.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/coursera_python/MICHIGAN/code3/urllinks.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# To run this, you can install BeautifulSoup # https://pypi.python.org/pypi/beautifulsoup4 # Or download the file # http://www.py4e.com/code3/bs4.zip # and unzip it in the same directory as this file import sqlite3 conn = sqlite3.connect('wiki.sqlite') cur = conn.cursor() cur.executescript(''' CREATE TABLE data ( ...
20.446809
61
0.704475
403f7359be04de09e49ea21099290692567b0baf
3,758
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/rackspace.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/rackspace.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/rackspace.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2014, Matt Martz <matt@sivel.net> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard Rackspace only documentation fragment DOCUMENTATION = r''' options: api_key: description: ...
32.964912
119
0.69372
29856e2b93a140950ebbf2c672cbf0555d69088a
1,074
py
Python
sdk/jwt/__init__.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
sdk/jwt/__init__.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
sdk/jwt/__init__.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
import time from jose import jwt from . import utils def encode_jwt(claims, version=1): """ Create a JWT. :param claims: dictionary of claims to place in JWT. :param version: key version to use when signing JWT. :return: a JWT in the form of 'claims.signature' """ if not isinstance(clai...
23.866667
64
0.671322
46b50acfd96c23269075a3d8218da477964118ef
8,805
py
Python
BSidesCanberra/2021/crypto/Rot_Away_Rust/server.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
BSidesCanberra/2021/crypto/Rot_Away_Rust/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
BSidesCanberra/2021/crypto/Rot_Away_Rust/server.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
#!/usr/bin/python3 import json import Crypto.Cipher.AES as aes import Crypto.Random as rand from binascii import * import struct import string import sys def debug_print(err): sys.stderr.write(err) from RARsecrets import secrets_server def validate(value, check, minimum=None, maximum=None): valid_types = ["...
39.484305
178
0.560591
319822a38fd18fcbd3a5f0c960ef060c60a02e35
1,951
py
Python
doku/urls.py
xJasonxy/einsatzdoku
8af84446f99475519adaf803619f2c57174c517b
[ "MIT" ]
1
2020-07-09T16:53:45.000Z
2020-07-09T16:53:45.000Z
doku/urls.py
xJasonxy/Einsatzdoku
8af84446f99475519adaf803619f2c57174c517b
[ "MIT" ]
null
null
null
doku/urls.py
xJasonxy/Einsatzdoku
8af84446f99475519adaf803619f2c57174c517b
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views app_name = 'doku' urlpatterns = [ path('', views.index, name='index'), path('Einsatz/all', views.get_aktive_einsaetze, name='alleEinsaetze'), path('Einsatz/add', views.neuer_Einsatz, name='neuerEinsatz'), path('Ort/<int:ort_id>', views.get_ort,...
60.96875
111
0.713993
48b8df7796d78b39bf8287831269136c06de191b
1,895
py
Python
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/external_writer/standard_writer.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/external_writer/standard_writer.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-pipeline-kernel/src/watchmen_pipeline_kernel/external_writer/standard_writer.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from logging import getLogger from watchmen_data_kernel.external_writer import BuildExternalWriter, ExternalWriter, ExternalWriterParams from watchmen_model.admin import PipelineTriggerType from watchmen_pipeline_kernel.common import PipelineKernelException from watchmen_utilities import is_not_blank, serialize_to_jso...
31.065574
106
0.784169
48ce888ae3a222d503b74aabd66962e837c69bd7
5,746
py
Python
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/utils/plotting.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
null
null
null
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/utils/plotting.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
null
null
null
benchmarks/matbench_v0.1_Ax_10_90_CrabNet_v1.2.7/utils/plotting.py
sparks-baird/matbench
4424609454286e32fff2bcc724379b2a316c5a76
[ "MIT" ]
null
null
null
"""Plotting utils for CrabNet Hyperparameter optimization.""" from typing import Iterable, List import numpy as np import pandas as pd import plotly.graph_objs as go from ax.modelbridge import ModelBridge from ax.plot.helper import compose_annotation from ax.utils.common.logger import get_logger logger = get_logger(__...
31.922222
107
0.588757
c4dda2a26c2c5c352f16ab8c3db8c013b87cc77a
23,471
py
Python
tests/onegov/event/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/event/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest import transaction from datetime import datetime from datetime import timedelta from freezegun import freeze_time from io import BytesIO from onegov.core.utils import module_path from onegov.event import Event from onegov.event import Occurrence from onegov.event.utils import as_rdates from onegov.gis im...
35.888379
79
0.641387
c4f805b971172a7a5f1effb1822981727f6e93d3
1,382
py
Python
packages/watchmen-model/src/watchmen_model/common/model.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/common/model.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-model/src/watchmen_model/common/model.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from copy import deepcopy from datetime import date, time from decimal import Decimal from typing import Any, Dict from pydantic import BaseModel def copy_x(x: Any) -> Any: if x is None: return x elif isinstance(x, dict): return copy_dict(x) elif isinstance(x, list): return copy_list(x) elif isinstance(x, ...
20.626866
66
0.704776
4865f0411bdbecee6fcad3084c47854854637a45
1,880
py
Python
examples/python-lib/src/template_package/utils/api_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
17
2020-11-20T15:58:02.000Z
2022-02-06T19:18:20.000Z
examples/python-lib/src/template_package/utils/api_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
3
2021-02-17T13:47:44.000Z
2021-10-14T13:53:15.000Z
examples/python-lib/src/template_package/utils/api_utils.py
prototypefund/universal-build
809e641d5cf9dc1378cd0e0e3ea6e79f773ae4e7
[ "MIT" ]
6
2020-11-23T09:51:26.000Z
2022-02-11T13:46:57.000Z
from fastapi import FastAPI def patch_fastapi(app: FastAPI) -> None: """Patch function to allow relative url resolution. This patch is required to make fastapi fully functional with a relative url path. This code snippet can be copy-pasted to any Fastapi application. """ from fastapi.openapi.docs...
36.862745
86
0.609574
82f02afef22691571180768529e7e45207c8da14
6,365
py
Python
src/onegov/org/forms/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/org/forms/user.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.utils import is_valid_yubikey_format from onegov.form import Form, merge_forms from onegov.form import FormDefinition from onegov.form.fields import ChosenSelectMultipleField from onegov.form.fields import TagsField from onegov.form.filters import yubikey_identifier from onegov.org import _ from onegov...
29.331797
79
0.602828
fba5c6b1bdb4767edafae380902b70def7383e2d
589
py
Python
tests/onegov/gazette/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gazette/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from tests.onegov.gazette.conftest import LOGO def test_principal_app_cache(gazette_app): assert gazette_app.principal.name == "Govikon" gazette_app.filestorage.remove('principal.yml') assert gazette_app.principal.name == "Govikon" def test_principal_app_not_existant(gazette_app): gazette_app.filest...
28.047619
68
0.782683
839798df81121810ae734b140877d5aaaa45acc8
716
py
Python
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/03_count_letters_with_dict.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
null
null
null
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/03_count_letters_with_dict.py
Apop85/Scripts
e71e1c18539e67543e3509c424c7f2d6528da654
[ "MIT" ]
6
2020-12-24T15:15:09.000Z
2022-01-13T01:58:35.000Z
Python/Buch_ATBS/Teil_1/Kapitel_05_Dictionary_und_Datenstrukturen/03_count_letters_with_dict.py
Apop85/Scripts
1d8dad316c55e1f1343526eac9e4b3d0909e4873
[ "MIT" ]
null
null
null
# Zähle wie oft die einzelnen Buchstaben in einem String vorkommen. print('Gebe einen beliebigen Satz oder eine beliebige Zeichenfolge ein') string=input() dict1={} for i in string: dict1.setdefault(i, 0) dict1[i]+=1 while True: print('Sortierte (0) oder normale (1) ausgabe?') inp=i...
27.538462
72
0.5
f7ca2ec167a2df4ec92006635a019534f9096655
6,164
py
Python
suds/transport/http.py
emad70/interactive-tutorials
2cd4f6ed2c7d292f01be64d132c2ff4ffb4715ff
[ "Apache-2.0" ]
2,750
2015-01-02T03:23:19.000Z
2022-03-31T00:31:35.000Z
suds/transport/http.py
guiireal/interactive-tutorials
9ca384d0f78ac36f963ab0ab65c7746b7f9f7db0
[ "Apache-2.0" ]
196
2015-01-22T06:33:34.000Z
2022-03-27T23:26:23.000Z
suds/transport/http.py
guiireal/interactive-tutorials
9ca384d0f78ac36f963ab0ab65c7746b7f9f7db0
[ "Apache-2.0" ]
2,271
2015-01-05T14:14:34.000Z
2022-03-31T02:17:43.000Z
# This program is free software; you can redistribute it and/or modify # it under the terms of the (LGPL) GNU Lesser General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will b...
32.613757
86
0.605613
54788a2c8170ba56426dd23fd8fa0a6a58c6b183
350
py
Python
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/disease/test_disease.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/agriculture/doctype/disease/test_disease.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/disease/test_disease.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest class TestDisease(unittest.TestCase): def test_treatment_period(self): disease = frappe.get_doc('Disease', 'Aphids') self.assertEqua...
29.166667
68
0.771429
b70f01f0121a823b4f784128c820a79070f5eb7a
10,279
py
Python
scrapers/scrape_bs.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_bs.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
null
null
null
scrapers/scrape_bs.py
AryaVashisht/covid_19
0c734615a1190a5b2fff4697f47731ef2b8b6918
[ "CC-BY-4.0" ]
1
2020-08-25T06:45:56.000Z
2020-08-25T06:45:56.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import sys import scrape_common as sc # The list of articles is also available on https://www.gd.bs.ch/medienseite/medienmitteilungen.html URL = sc.download("https://www.gd.bs.ch/", silent=True) URL = sc.filter(r'Tagesbulletin.*Corona.*\d+\s*bestätigte\s*(Fälle...
65.891026
796
0.708629
3fbf272296cde5d5e7c63f0146533128aa0c8ffa
16,156
py
Python
code/textmining/topic_modeler.py
DLR-SC/repository-synergy
115e48c37e659b144b2c3b89695483fd1d6dc788
[ "MIT" ]
5
2021-05-09T12:51:32.000Z
2021-11-04T11:02:54.000Z
code/textmining/topic_modeler.py
DLR-SC/repository-synergy
115e48c37e659b144b2c3b89695483fd1d6dc788
[ "MIT" ]
null
null
null
code/textmining/topic_modeler.py
DLR-SC/repository-synergy
115e48c37e659b144b2c3b89695483fd1d6dc788
[ "MIT" ]
3
2021-05-12T12:14:05.000Z
2021-10-06T05:19:54.000Z
# author: rb import pandas as pd import gensim import text_miner from gensim import corpora, models from gensim.models import CoherenceModel from gensim.models.nmf import Nmf import numpy as np import nltk # Plotting tools import pyLDAvis import pyLDAvis.gensim # don't skip this from matplotlib import pyplot as pl...
39.695332
156
0.614261
b7d2323124b2f80b7ac31f57d8489d6ff70b38e4
921
py
Python
2-resources/python-data-generation/generate-random-data-into-elasticsearch.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/python-data-generation/generate-random-data-into-elasticsearch.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/python-data-generation/generate-random-data-into-elasticsearch.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
from faker import Factory from datetime import datetime from elasticsearch import Elasticsearch import json esDomainEndpoint = "http://search-endpoint:80" es = Elasticsearch(esDomainEndpoint) def create_names(fake): for x in range(100): genUname = fake.slug() genName = fake.name() genJob = ...
27.909091
46
0.548317
420532f0a71c37b02bf885e88240b8a4cd5c6be4
699
py
Python
python/gdal_cookbook/gdal_document_tutorial/reading_from_ogr.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/gdal_document_tutorial/reading_from_ogr.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/gdal_cookbook/gdal_document_tutorial/reading_from_ogr.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys from osgeo import ogr, gdal ds = gdal.OpenEx('point_out.shp', gdal.OF_VECTOR) if ds is None: print('Open failed.\n') sys.exit(1) lyr = ds.GetLayerByName('Point') # Get point layer failed lyr = ds.GetLayer() lyr.ResetReading() for feat in lyr: feat_defn = lyr.GetLayerDefn() for i in ran...
24.964286
67
0.646638
c40d70b51a7ee7af4167425fa220d827842be742
1,308
py
Python
ebenezer/atencion/migrations/0004_taxonomia.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
ebenezer/atencion/migrations/0004_taxonomia.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
3
2020-02-11T23:15:00.000Z
2021-06-10T20:52:17.000Z
ebenezer/atencion/migrations/0004_taxonomia.py
davrv93/ebenezer-backend
d3db4dafd9a8c35bea9f32afe2be1dd451f64298
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.2 on 2018-10-05 13:14 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('atencion', '0003_auto_20181005_1313'), ] operations = [ migrations.CreateModel( name='Taxonomia', fields...
39.636364
272
0.58104
6716241b8d8844dfef80d1e2f535177487c1be34
951
py
Python
solutions/item_based_recommend/service/src/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
1
2021-01-11T18:40:22.000Z
2021-01-11T18:40:22.000Z
solutions/item_based_recommend/service/src/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
solutions/item_based_recommend/service/src/config.py
naetimus/bootcamp
0182992df7c54012944b51fe9b70532ab6a0059b
[ "Apache-2.0" ]
null
null
null
import os from milvus import * # MILVUS_HOST = '192.168.1.85' # MILVUS_PORT = 19560 MILVUS_HOST = os.getenv("MILVUS_HOST", "127.0.0.1") MILVUS_PORT = os.getenv("MILVUS_PORT", 19530) BERT_HOST = os.getenv("BERT_HOST", "127.0.0.1") BERT_PORT = os.getenv("BERT_PORT", 5555) MYSQL_HOST = os.getenv("M...
20.234043
55
0.671924
22238f147780d468fbaede35f167e2d6fb9dfa6a
129
py
Python
test.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
5
2018-02-06T22:48:34.000Z
2020-01-07T20:19:05.000Z
test.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
11
2018-01-31T21:47:49.000Z
2018-04-21T16:42:52.000Z
test.py
Thukor/MazeSolver
c953e193ce27a7348e8ec9c5592144426dfce193
[ "MIT" ]
2
2020-06-18T05:40:03.000Z
2022-02-02T03:46:30.000Z
from lib.util.decorators.imagestrategy import STRATEGIES from lib.util.ImageProcessing.strategies import * print(STRATEGIES)
18.428571
57
0.829457
97d3ad7b26ded748f12f194e1eebf38669a3284d
1,257
py
Python
pyramid-creator/app/db/deps.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
pyramid-creator/app/db/deps.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/db/deps.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
import os from collections import Collection, Generator from sqlite3 import connect from pymongo import MongoClient DB = os.getenv("MONGO_DB") if "MONGO_DB" in os.environ else "slidedb" def get_slide_collection() -> Generator: global client try: client = MongoClient( os.ge...
24.647059
84
0.631663
58c7c5028b66c9ed4ba0a5ac7d60e404642f21f7
263
py
Python
config.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
null
null
null
config.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
null
null
null
config.py
sadlll/ablog
d04b532751c297fe9cd25563d08f48e8aaee7f48
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 PORT = 8000 DEBUG = True TITLE = 'ablog' TEMPLATE = 'jinja2' # jinja2/mako/tornado DATABASE_URI = "sqlite:///database.db" COOKIE_SECRET = "6aOO5ZC55LiN5pWj6ZW/5oGo77yM6Iqx5p+T5LiN6YCP5Lmh5oSB44CC" try: from private import * except: pass
18.785714
74
0.73384
58ced18ce809629d4fdc0dba72a2db19ded8b70d
894
py
Python
leetcode/127-Word-Ladder/WordLadder_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/127-Word-Ladder/WordLadder_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/127-Word-Ladder/WordLadder_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def ladderLength(self, beginWord, endWord, wordList): """ :type beginWord: str :type endWord: str :type wordList: Set[str] :rtype: int """ if beginWord == endWord: return 1 cnt = 1 q = [beginWord] w...
29.8
63
0.38255
18e6ea230a1df6b75a2b1308137b4724264a24bf
599
py
Python
python-applications/pangram-checker.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
python-applications/pangram-checker.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
null
null
null
python-applications/pangram-checker.py
sanxy/hacktoberfest-1
913582b310688d496602e8b1bc9166cb64866e38
[ "MIT" ]
1
2020-09-30T18:53:05.000Z
2020-09-30T18:53:05.000Z
def Pangram(): print() from string import ascii_lowercase as asc_lower print("_______________________________________") print() def check(s): return set(asc_lower) - set(s.lower())== set([]) st = input("Enter the string you want to check for Pangram --->") if (check(st) == True): ...
24.958333
69
0.597663
e13d9ad5131d6928bf32c9c1d6aed1cc1d222ef7
2,127
py
Python
intelligence/anthill/src/util/ES_Client.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
10
2018-04-12T22:29:52.000Z
2021-10-18T17:07:45.000Z
intelligence/anthill/src/util/ES_Client.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
null
null
null
intelligence/anthill/src/util/ES_Client.py
FoxComm/highlander
1aaf8f9e5353b94c34d574c2a92206a1c363b5be
[ "MIT" ]
1
2018-07-06T18:42:05.000Z
2018-07-06T18:42:05.000Z
import json import http.client def products_list_query(prod_ids): """products_list_query elasticsearch query string to get full products from a list of product ids """ return json.dumps({ 'query': { 'bool': { 'filter':[ {'term': {'context': 'd...
27.986842
71
0.562764
e1866d522e920bacc99ea5150fe2bac3458138e0
1,754
py
Python
docker/api/api/endpoints/flexstringpreview.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
2
2021-03-23T20:32:38.000Z
2021-04-21T11:20:12.000Z
docker/api/api/endpoints/flexstringpreview.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
4
2021-04-19T11:00:55.000Z
2021-04-20T08:21:48.000Z
docker/api/api/endpoints/flexstringpreview.py
healthIMIS/aha-kompass
7b7cae24502c0c0e5635c587cfef797a93ae02b5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Corona-Info-App # Endpoint zum server-side-evaluating der Configuration für preview im cms # © 2020 Tobias Höpp. # Include dependencies from flask import request, jsonify # Include modules from main import api, jwt from flask_jwt_extended import jwt_required from models.measures import displ...
35.795918
230
0.639681
e1aec4ecb09c32fe129917ef447d6ee6055fe3d5
99,650
py
Python
app/qa/mlc.py
MePyDo/pygqa
61cde42ee815968fdd029cc5056ede3badea3d91
[ "MIT" ]
3
2021-02-25T13:19:52.000Z
2021-03-03T03:46:46.000Z
app/qa/mlc.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
app/qa/mlc.py
MedPhyDO/pygqa
580b2c6028d2299790a38262b795b8409cbfcc37
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = "R. Bauer" __copyright__ = "MedPhyDO - Machbarkeitsstudien des Instituts für Medizinische Strahlenphysik und Strahlenschutz am Klinikum Dortmund im Rahmen von Bachelor und Masterarbeiten an der TU-Dortmund / FH-Dortmund" __credits__ = ["R.Bauer", "K.Loot"] __license__ = "MIT" __ver...
36.989607
209
0.508771
e1c02bd48989d6d7ddd5490f1a7e6e12d431952a
581
py
Python
Code/Labs/find.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/Labs/find.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
Code/Labs/find.py
miku/haw-di-bim-lv22
5e3dd1f7a1eb02ebbe5cc801bd8094618d6525e3
[ "MIT" ]
null
null
null
import argparse from pathlib import Path def find(path, glob): result = [] for path in Path(path).rglob(glob): result.append(path) return result def main(args): for path in find(args.path, args.pattern): print(path) if __name__ == '__main__': parser = argparse.ArgumentParser(desc...
26.409091
92
0.641997
8334ad9411d15722d9e379179c529eecf5beac2c
5,956
py
Python
bigbench/benchmark_tasks/unqover/analysis.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
460
2021-01-26T21:23:37.000Z
2022-03-31T15:55:10.000Z
bigbench/benchmark_tasks/unqover/analysis.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
475
2021-01-27T01:29:01.000Z
2022-03-30T20:23:56.000Z
bigbench/benchmark_tasks/unqover/analysis.py
dimmollo/BIG-bench
f0dffeb4f16ef5489686a81e2d63362d251cda3e
[ "Apache-2.0" ]
305
2021-01-26T23:28:11.000Z
2022-03-31T14:51:26.000Z
# 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, software # distributed under the...
28.497608
125
0.672095
83379e189c58e1f3f9f2406d5f7c9fffbbb10082
4,592
py
Python
tests/models/test_websocket.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
2
2019-11-17T06:38:56.000Z
2019-12-01T15:32:03.000Z
tests/models/test_websocket.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
tests/models/test_websocket.py
tkamenoko/spangle
068479660a03239aa69c935d7ca0418c491d92da
[ "MIT" ]
null
null
null
from spangle.api import Api from spangle.handler_protocols import ErrorHandlerProtocol, RequestHandlerProtocol from ward import fixture, raises, test, using @fixture def api(): return Api() @fixture @using(api=api) def text_ws(api: Api): @api.route("/text") class TextWs: async def on_ws(self, co...
28.345679
83
0.562718
55f63c5933051a0f76eafa3fa5b07032f3209294
2,177
py
Python
src/onegov/chat/collections/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/chat/collections/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/chat/collections/message.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.chat.models import Message from onegov.core.collection import GenericCollection from sqlalchemy import desc class MessageCollection(GenericCollection): def __init__(self, session, type='*', channel_id='*', newer_than=None, older_than=None, limit=None, load='older-first'): sup...
29.418919
79
0.588884
3d6370ddb48253cdd3dd7070d87951acfd36a180
12,026
py
Python
programm/gamepad.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/gamepad.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
programm/gamepad.py
team172011/ps_cagebot
ab6f7bdbc74ad3baee3feebc4b7b0fa4f726b179
[ "MIT" ]
null
null
null
#!/usr/bin/env python import serial import math import time import threading from evdev import InputDevice, categorize, ecodes, KeyEvent import pantilthat # hardcoeded first input event0 = InputDevice('/dev/input/event0') # vars # center ~34000 should be 32768 31000&37000 nullzone # debug log to console # >10: l...
28.978313
180
0.650258
e9e885c73c19db2913956e7d2b48b2db5ece1968
1,730
py
Python
examples/XML/tst_XML_grammar.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
2
2020-12-25T19:37:42.000Z
2021-03-26T04:59:12.000Z
examples/XML/tst_XML_grammar.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
6
2018-08-07T22:48:52.000Z
2021-10-07T18:38:20.000Z
examples/XML/tst_XML_grammar.py
jecki/DHParser
c6c1bd7db2de85b5997a3640242f4f444532304e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """tst_XML_grammar.py - runs the unit tests for the XML-grammar """ import os import sys scriptpath = os.path.dirname(__file__) or '.' for path in (os.path.join('..', '..'), '.'): fullpath = os.path.abspath(os.path.join(scriptpath, path)) if fullpath not in sys.path: sys.path.a...
29.827586
76
0.628902
a12b5b5080e96efe99d1635d15635bc0ddda41ff
412
py
Python
main_selection.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
main_selection.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
main_selection.py
vlpolyansky/spotArt
b1a6df25b62cd61d9056d710f4a2cb9185f45f3c
[ "MIT" ]
null
null
null
from Tkinter import * import Tkinter, Tkconstants, tkFileDialog import os import process_photo def main(): root = Tk() root.filename = tkFileDialog.askopenfilename(initialdir=".", title="Select photo", filetypes=(("jpeg files", "*.jpg"), ("all files", "*.*")))...
24.235294
107
0.599515