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
c13d7cf3344c77d60d020f5f86534353117b6adf
3,071
py
Python
frappe-bench/apps/erpnext/erpnext/projects/report/project_wise_stock_tracking/project_wise_stock_tracking.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/projects/report/project_wise_stock_tracking/project_wise_stock_tracking.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/projects/report/project_wise_stock_tracking/project_wise_stock_tracking.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 from frappe import _ def execute(filters=None): columns = get_columns() proj_details = get_project_details() pr_item_map = get_purchas...
38.3875
98
0.728427
ec38ce8ff386b6f623011b312e97a490dd362a90
843
py
Python
2015/11/exposed-vets-20150720/clean_download.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
14
2015-05-08T13:41:51.000Z
2021-02-24T12:34:55.000Z
2015/11/exposed-vets-20150720/clean_download.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
null
null
null
2015/11/exposed-vets-20150720/clean_download.py
nprapps/graphics-archive
97b0ef326b46a959df930f5522d325e537f7a655
[ "FSFAP" ]
7
2015-04-04T04:45:54.000Z
2021-02-18T11:12:48.000Z
#!/usr/bin/env python import csv def clean_date(d): if not d: return '' bits = str(d).split('/') if len(bits) == 1: month = '?' day = '?' year = bits[0] elif len(bits) == 2: month = bits[0] day = '?' year = bits[1] else: month, day,...
16.211538
41
0.506524
d400c4fac300826dc44cb1e4aa87be9fc9c5a55a
234
py
Python
python/advanced_sw/res_code/mozilla_agent.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/res_code/mozilla_agent.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/res_code/mozilla_agent.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from urllib.request import Request, urlopen req = Request('http://www.cmegroup.com/trading/products/#sortField=oi&sortAsc=false&venues=3&page=1&cleared=1&group=1', headers={'User-Agent': 'Mozilla/5.0'}) webpage = urlopen(req).read()
46.8
158
0.747863
d84d59d04e43cdf32938cb52713b8541faae9cc0
692
py
Python
DHT.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
2
2016-03-17T09:39:34.000Z
2016-03-17T11:26:19.000Z
DHT.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
DHT.py
plishing/Agena2
56f2f48a3bda4ff3d011d70e630cf6793995a239
[ "Beerware" ]
null
null
null
#ubprocess module import subprocess ## call date command ## p = subprocess.Popen("./DHT.sh", stdout=subprocess.PIPE, shell=True) ## Talk with date command i.e. read data from stdout and stderr. Store this info in tuple ## #Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-fi...
46.133333
267
0.739884
7aa70dd107d2b09d4f711dab0fa84067505eca8e
1,050
py
Python
zipattack.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
zipattack.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
zipattack.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
# -*- coding: utf-8 -*- # @Author: lock # @Date: 2016-11-02 17:17:26 # @Last Modified by: lock # @Last Modified time: 2017-05-04 00:20:23 import zipfile import threading import optparse def extractFile(zFile, password): try: zFile.extractall(pwd=password) print("Key Found:", password) exit() except: pri...
28.378378
86
0.678095
7ac1379ee60a3fdc6259de55b463063f75f7cd51
605
py
Python
src/onegov/gazette/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/forms/__init__.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.gazette.forms.category import CategoryForm from onegov.gazette.forms.common import EmptyForm from onegov.gazette.forms.common import RejectForm from onegov.gazette.forms.issue import IssueForm from onegov.gazette.forms.notice import NoticeForm from onegov.gazette.forms.notice import UnrestrictedNoticeForm f...
28.809524
62
0.786777
8f693ef93a9aacb70c8ccd9d124d8f19c7af6c5c
1,980
py
Python
ios/generate-iconset.py
laran002/rallymatte
c60dbdf76a6cfa1dc21cb4e90904d08d4d00f941
[ "MIT" ]
null
null
null
ios/generate-iconset.py
laran002/rallymatte
c60dbdf76a6cfa1dc21cb4e90904d08d4d00f941
[ "MIT" ]
null
null
null
ios/generate-iconset.py
laran002/rallymatte
c60dbdf76a6cfa1dc21cb4e90904d08d4d00f941
[ "MIT" ]
null
null
null
import os import sys import pathlib import subprocess # Usage: generate-iconset.py # Automatically generates icons in the icon folder # based on the ./rallymatte_logo.png file if len(sys.argv) > 1: print("Too many arguments") raise SystemExit originalPicture = "./rallymatte_logo.png" if not (os.path.isfile(o...
25.384615
110
0.621717
56fd4b9cc3da7b6274c2624aefc8cf9b973c6a4e
809
py
Python
flask/microblog-db/migrations/versions/acd5f325d4e7_user_migrate.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
flask/microblog-db/migrations/versions/acd5f325d4e7_user_migrate.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
2
2021-03-25T22:00:07.000Z
2022-01-20T15:51:48.000Z
flask/microblog-login/migrations/versions/acd5f325d4e7_user_migrate.py
qsunny/python
ace8c3178a9a9619de2b60ca242c2079dd2f825e
[ "MIT" ]
null
null
null
"""user migrate Revision ID: acd5f325d4e7 Revises: fe7de99e910c Create Date: 2019-04-14 17:09:29.873360 """ # revision identifiers, used by Alembic. revision = 'acd5f325d4e7' down_revision = 'fe7de99e910c' from alembic import op import sqlalchemy as sa def upgrade(): # ### commands auto generated by Alembic -...
25.28125
71
0.692213
77d61f5f4ff2f14fd8a3b29232518b38a67efba3
467
py
Python
___Python/Thomas/pycurs_180625/p14_zufall/m01_zufall.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p14_zufall/m01_zufall.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Thomas/pycurs_180625/p14_zufall/m01_zufall.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import random r = random.Random() # 1) PI annähern for i in range(1000): x, y =r.uniform(0, 1), r.uniform(0, 1) if (x**2 + y**2) ** <= 1: c +=1 print(4 * c /n) # 2) Check ob zwei Polynome gleic sind def p1(x): return x ** 2 + 7 * x def p2 (x): return (x + 3) * (x + 4) ...
16.103448
43
0.501071
5636c78a473c69a834ba989cef46f39a5fdaa2bd
1,926
py
Python
official/cv/simclr/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/simclr/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/simclr/postprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
40.125
110
0.65161
3b9a8f451d5bf7d45ad30bf89b67058dc2ba0697
10,653
py
Python
Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed_Enrichment/Sixgill_Darkfeed_Enrichment.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed_Enrichment/Sixgill_Darkfeed_Enrichment.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/Sixgill-Darkfeed/Integrations/Sixgill_Darkfeed_Enrichment/Sixgill_Darkfeed_Enrichment.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 * from CommonServerUserPython import * """ IMPORTS """ from typing import Dict, List, Any import traceback import requests from sixgill.sixgill_request_classes.sixgill_auth_request import SixgillAuthRequest from sixgill.sixgill_enrich_client import Sixgill...
30.789017
119
0.627335
6918f2338755c31d7300882452886f394893c0e3
290
py
Python
quark_core_api/common/schemas.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/common/schemas.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
quark_core_api/common/schemas.py
arcticle/Quark
17aa5b5869a9e9c7a04c1a371fef5998f33dc319
[ "MIT" ]
null
null
null
APPLICATION_SCHEMA = { "workspaces" : { "$required" : ["id", "name", "dir"], "$unique" : ["id", "name", "dir"], "$fields" : { "id" : {"$type" : int}, "name" : {"$type" : str}, "dir" : {"$type" : str} } } }
22.307692
44
0.331034
6929596efe35c20dfa1e3060d5c1cd0bad13bc1b
117
py
Python
mysite/app/admin.py
RadchenkoVlada/Social_Networt
5eb04ababd9f0cb3ff966f269e575fdda67588be
[ "MIT" ]
null
null
null
mysite/app/admin.py
RadchenkoVlada/Social_Networt
5eb04ababd9f0cb3ff966f269e575fdda67588be
[ "MIT" ]
null
null
null
mysite/app/admin.py
RadchenkoVlada/Social_Networt
5eb04ababd9f0cb3ff966f269e575fdda67588be
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import User, Post admin.site.register(User) admin.site.register(Post)
19.5
32
0.803419
2432c755104e7b2f0348c1a8ad3a0c8c16bfe5ad
11,356
py
Python
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Upload/S3/S3UploadPool.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
282
2016-06-16T14:41:44.000Z
2022-03-02T03:43:02.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Upload/S3/S3UploadPool.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
146
2016-06-16T08:55:45.000Z
2020-09-08T10:37:32.000Z
mongodb/mongodb_consistent_backup/official/mongodb_consistent_backup/Upload/S3/S3UploadPool.py
smthkissinger/docker-images
35e868295d04fa780325ada4168381f1e80e8fe4
[ "BSD-3-Clause" ]
94
2016-06-16T10:49:07.000Z
2022-03-28T09:14:03.000Z
import boto.s3.multipart import logging import os from boto.s3.key import Key from copy_reg import pickle from math import ceil from multiprocessing import Pool, TimeoutError from time import sleep from types import MethodType from S3Session import S3Session from S3UploadThread import S3UploadThread from mongodb_con...
39.294118
156
0.5767
30281ec3d4735075c79cb7da180f76b301a1b016
599
py
Python
point.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
point.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
point.py
Mohammad-Robati/FuzzyCMeans
398efa3c913b1cad211f2435764edbad3db62426
[ "MIT" ]
null
null
null
import math class Point: def __init__(self): self.value = [] self.membership = {} self.bestMembership = 0 self.bestClusterIndex = 0 def setValue(self, value): self.value = value def setMembership(self, clusterIndex, value): self.membership[clusterIndex] = ...
23.038462
49
0.569282
304e5b2d8e4917086fdcd6ad74155073e70942b4
1,710
py
Python
elements/python/8/5/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/8/5/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/8/5/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, x, nxt): self.x = x self.next = nxt def find_cycle(n): # fast and slow pointers will collide if there is a cycle slow = n fast = n.next while slow != fast: slow = slow.next fast = fast.next if fast is None: return None ...
18
65
0.555556
06332a4a80a688abc4ce7d48e16098d8513f2287
416
pyde
Python
sketches/xmaspingus01/xmaspingus01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/xmaspingus01/xmaspingus01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/xmaspingus01/xmaspingus01.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
# xmaspingus01 from sprite3 import Pingus tilew = 32 tileh = 44 def setup(): global bg def draw(): background(bg) def keyPressed(): if keyPressed and key == CODED: if keyCode == RIGHT: orc.dir = 0 elif keyCode == DOWN: orc.dir = 1 elif keyCode ==...
16
35
0.492788
23289f106d107934aeee02a4ae0889efef8f75c5
402
py
Python
roll_the_dice.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
1
2019-04-07T23:14:29.000Z
2019-04-07T23:14:29.000Z
roll_the_dice.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
roll_the_dice.py
karinakozarova/Learning-Python
217dfc8ca6931a238445daf0b84e188c02916c52
[ "MIT" ]
null
null
null
import random def random_upto(max = 6): return random.randint(1,max) if __name__ == "__main__": print("Enter 'dice' to throw the dice or 'quit' to quit the app",end=" ") while True: user_command = input() if user_command == "quit": break elif user_command == "dice": ...
23.647059
77
0.567164
cc729858268a4fa51b81987095dea55a57edc32c
610
py
Python
top/clearlight/base/liaoxuefeng/third_party_module/request/request_learn.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/third_party_module/request/request_learn.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/third_party_module/request/request_learn.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
import requests # request: 访问网络资源 r = requests.get('http://www.clearlight.top/') print(r.status_code) print(r.text) print(r.encoding) # 对于带参数的URL, 传入一个dict作为params参数 r = requests.get('https://www.douban.com/search', params={'q': 'python', 'cat': '1001'}) print(r.url) print(r.content) # r = requests.get('https://q...
26.521739
146
0.711475
d1f48dd5896d0a9772c6af329b20d792d7a4dd0c
126
py
Python
tests/test_i18n.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
tests/test_i18n.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
35
2022-01-24T22:15:59.000Z
2022-03-31T15:01:35.000Z
tests/test_i18n.py
DanielGrams/cityservice
c487c34b5ba6541dcb441fe903ab2012c2256893
[ "MIT" ]
null
null
null
def test_print_dynamic_texts(client, app, utils): from project.i18n import print_dynamic_texts print_dynamic_texts()
25.2
49
0.793651
d1fa494e7afbe3cc26b74eb970cbaf75f8849f2b
4,158
py
Python
api/clean/tools_class.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/tools_class.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/clean/tools_class.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/13 下午2:05 # @Author : Latent # @Email : latentsky@gmail.com # @File : public_class.py # @Software: PyCharm # @class : 工具类 --> md5转换/日期/关键词提取 import hashlib import hanlp import os import re class Tools_Class(object): # 1.MD5 ---->对多个任意参数进行合并 @clas...
31.984615
99
0.429533
ae6f60559b15426603014d5e16ee041ccfa7b418
4,553
py
Python
pyramid-creator/app/utils/slide_converter.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-11-04T17:06:07.000Z
2021-11-04T17:06:07.000Z
pyramid-creator/app/utils/slide_converter.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/utils/slide_converter.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
import glob import pyvips from app.config import Config from app.crud import crud_slide from app.db.deps import get_slide_collection from app.persistance.custom_minio_client import MinioClient from app.persistance.minio_wrapper import MinioWrapper from app.schemas.slide import SlideStatus, UpdateSlide from ap...
34.492424
94
0.621568
ee5b621d99c5aaca7004aabe23beb366217b9693
16,984
py
Python
examples/language_model/t5/run_glue.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/t5/run_glue.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
examples/language_model/t5/run_glue.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...
35.60587
98
0.509126
eeac76cf83f4a768818a68772328882378dfff86
157
py
Python
HackerRank/30-Days-of-Code/Day 16: Exceptions - String to Integer/string_to_integer.py
tareqmahmud/Competitive-Programming
ad5e53300d70280bccbd5046ca01278fb246f314
[ "MIT" ]
2
2020-11-19T19:03:28.000Z
2021-01-04T19:52:11.000Z
30-Days-of-Code/Day 16: Exceptions - String to Integer/string_to_integer.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
30-Days-of-Code/Day 16: Exceptions - String to Integer/string_to_integer.py
tareqmahmud/HackerRank
e1b9facab6582f86ea6cc63afcc640e66ba3f67e
[ "MIT" ]
null
null
null
#!/bin/python3 import sys S = input().strip() try: string_to_integer = int(S) print(string_to_integer) except ValueError: print("Bad String")
13.083333
30
0.675159
019b116a6591d9316248827484f2f5b06e3f14ad
825
py
Python
python/en/_matplotlib/gallery/lines_bars_and_markers/customizing_dashed_line_styles.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/lines_bars_and_markers/customizing_dashed_line_styles.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/gallery/lines_bars_and_markers/customizing_dashed_line_styles.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ lines_bars_and_markers/customizing_dashed_line_styles.py Matplotlib > Gallery > Lines, bars and markers > Customizing dashed line styles https://matplotlib.org/gallery/lines_bars_and_markers/line_demo_dash_control.html#sphx-glr-gallery-lines-bars-and-markers-line-demo...
30.555556
147
0.721212
096c99736d3818becad7fc87f1cdfbf3ce857128
717
py
Python
PyStellar/stellar/psguser/service/psguser_service.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
3
2021-01-24T17:07:55.000Z
2021-02-20T20:11:13.000Z
PyStellar/stellar/psguser/service/psguser_service.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
61
2021-01-10T12:59:01.000Z
2021-06-24T09:19:20.000Z
PyStellar/stellar/psguser/service/psguser_service.py
psgstellar/Stellar
947d4b3d9d6b9c74d4c9ebd29683793a8d86fad2
[ "Apache-2.0" ]
1
2021-01-14T05:23:32.000Z
2021-01-14T05:23:32.000Z
from psguser.dao.psguser_dao import PsgUserList from psguser.resources import psguser_sql class PsgUserListService: def psguserlistservice(self): sqluser = psguser_sql.psgusersql() psguserdao = PsgUserList() return_json = psguserdao.psguserlistdao(sqluser) return return_json ...
28.68
56
0.708508
3ad7e22c7803e8fe6c24aaf27acb0be61bb36f95
103
py
Python
1_Datentypen/01_Einstieg/einstieg.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/01_Einstieg/einstieg.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
1_Datentypen/01_Einstieg/einstieg.py
DavidStahl97/Python-Grundkurs
6796d19116d2f838b193b106d00bc2e74a8cdcb4
[ "MIT" ]
null
null
null
# Print hallo Conti print("Hallo StudiumPlus") # Das NoneType # konvertierung zwischen Datentypen
10.3
35
0.757282
3ae22ad0ae39fc37b9da0cb75d79922fce1ea3e4
546
py
Python
Fluoro_Data_Analysis/Fluoro_Data_Analysis/Fluoro_Data_Analysis.py
rnsheehan/Fluoro_Analysis
47aa99c2c1648ebffdd9220818ff2b47fcca49ef
[ "MIT" ]
1
2020-07-23T18:44:26.000Z
2020-07-23T18:44:26.000Z
Fluoro_Data_Analysis/Fluoro_Data_Analysis/Fluoro_Data_Analysis.py
rnsheehan/Fluoro_Analysis
47aa99c2c1648ebffdd9220818ff2b47fcca49ef
[ "MIT" ]
null
null
null
Fluoro_Data_Analysis/Fluoro_Data_Analysis/Fluoro_Data_Analysis.py
rnsheehan/Fluoro_Analysis
47aa99c2c1648ebffdd9220818ff2b47fcca49ef
[ "MIT" ]
null
null
null
# Import libraries # You should try an import the bare minimum of modules import sys # access system routines import os # add path to our file import Fluoro_Data_Mangling # The aim of this project is to perform some basic plotting and filtering of measured fluoresence data # R. Sheehan 27 - 3 - 2019 def main(): ...
21
102
0.736264
6e8e6c59e2231fb1fee36f974386b2840948b744
8,739
py
Python
awsrun/aws/aws_iam.py
eec289q-f21/stdsw
93604a1b947e39496e6559982eea6d41c77d0204
[ "MIT" ]
null
null
null
awsrun/aws/aws_iam.py
eec289q-f21/stdsw
93604a1b947e39496e6559982eea6d41c77d0204
[ "MIT" ]
null
null
null
awsrun/aws/aws_iam.py
eec289q-f21/stdsw
93604a1b947e39496e6559982eea6d41c77d0204
[ "MIT" ]
1
2021-10-07T23:10:33.000Z
2021-10-07T23:10:33.000Z
import itertools import json import botocore from boto3_type_annotations.iam import ServiceResource, Client from botocore.exceptions import ClientError from aws.aws_backend import AWSBackend from utils.Meta import Singleton class AccessKey: __slots__ = ( "access_key_id", "create_date", "...
37.346154
106
0.570088
42b351a848eeca7fd5ece4bd7a51115913325b94
1,234
py
Python
sdk/jwt/utils.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
sdk/jwt/utils.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
sdk/jwt/utils.py
MailBeaker/mailbeaker-sdk
324e48f9e255fd2dfa82d5f7f6bd52ab71e50904
[ "MIT" ]
null
null
null
from sdk import sdk_settings PRIVATE_KEY_HEADER = '-----BEGIN EC PRIVATE KEY-----' PRIVATE_KEY_FOOTER = '-----END EC PRIVATE KEY-----' PUBLIC_KEY_HEADER = '-----BEGIN PUBLIC KEY-----' PUBLIC_KEY_FOOTER = '-----END PUBLIC KEY-----' def encode_keys(version): """ Helper function to concatinate and return the ...
26.826087
78
0.666126
c2872a3aeb7fe2c5cd5b78086aa0e890a40257d2
16,572
py
Python
slcyDisplay.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyDisplay.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyDisplay.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time import slcypi.slcyGeneral as General class SegmentDisplay(): # # g f X a b # |-------| # | aaa | X denotes ground # |f b | encoding: # | ggg | 00000000 # |e c | hgfedcba # | ddd h | h = dc # |-------| # e d X c h # def __init__(self, pins, name='', verbose=False)...
43.382199
106
0.587678
c2f46982d147027566436a018a0dda25ad2c0547
5,460
py
Python
pyramid-creator/app/db/database.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
pyramid-creator/app/db/database.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
pyramid-creator/app/db/database.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
# import logging # import os # from enum import IntEnum # from typing import Dict, List, Optional # # from bson import ObjectId # from pydantic import BaseModel, Field, parse_obj_as # from pymongo import MongoClient # from pymongo.results import DeleteResult, UpdateResult # # from app.db.pydantic_objectid imp...
32.694611
114
0.57326
6622c17f0fdc2dc8477b8367dbfc60880e8f6b54
10,042
py
Python
src/test/tests/hybrid/keyframe.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/keyframe.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/hybrid/keyframe.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: keyframe.py # # Tests: mesh - 3D structured, single domain # plots - pc, mesh # operators - none # selection - none # # Defect ID: none # # Program...
21.877996
78
0.758713
af3b921409b9bea7254c061873a9d7000681477f
7,235
py
Python
research/cv/AttentionCluster/make_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/AttentionCluster/make_dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/AttentionCluster/make_dataset.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...
35.816832
120
0.640359
bb9550cee87c38d0a0d73315468f35a97da4dd8a
3,800
py
Python
technix/info.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
1
2021-03-05T07:44:05.000Z
2021-03-05T07:44:05.000Z
technix/info.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
3
2017-06-04T03:01:31.000Z
2017-08-04T04:04:37.000Z
technix/info.py
dr-bigfatnoob/quirk
f5025d7139adaf06380c429b436ccbf1e7611a16
[ "Unlicense" ]
null
null
null
from __future__ import print_function, division import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True from utils.lib import MAXIMIZE import numpy as np __author__ = "bigfatnoob" def save_info(samples, params, direction, file_name): out = "## EVPPI\n" for par in params: sco...
24.675325
81
0.605789
a5aab7f96f19be3676d3b933603dbf95c964d1f7
660
py
Python
elements/python/16/3/permutations.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/16/3/permutations.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/16/3/permutations.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
def _print_permutations_final_fixed(x, n): """ Print all permutations of the array x, keeping some of the final positions fixed. The parameter n means how many of the initial positions of x may be changed. For example if len(x)=5 and n=3 this means the last 2 positions of x must be left alone. ...
26.4
78
0.619697
ddd1f7b5ac193c0a44b61c60fef6d34e79bfce2f
591
py
Python
python/logging/lowermodule.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/logging/lowermodule.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/logging/lowermodule.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
# lowermodule.py import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)s %(levelname)s:%(message)s') logger = logging.getLogger(__name__) def word_count(myfile): try: with open(myfile, 'r') as f: file_data = f.read() words = file_data.split(" ") ...
29.55
97
0.629442
fb1538e637e005df92a5aa26249c2cad1937cf14
1,719
py
Python
Packs/ML/Scripts/ExtendQueryBasedOnPhishingLabels/ExtendQueryBasedOnPhishingLabels.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/ML/Scripts/ExtendQueryBasedOnPhishingLabels/ExtendQueryBasedOnPhishingLabels.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/ML/Scripts/ExtendQueryBasedOnPhishingLabels/ExtendQueryBasedOnPhishingLabels.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
from CommonServerPython import * ALL_LABELS = "*" def get_phishing_map_labels(comma_values): if comma_values == ALL_LABELS: return comma_values values = [x.strip() for x in comma_values.split(",")] labels_dict = {} for v in values: v = v.strip() if ":" in v: splite...
29.637931
93
0.621291
551114f3f2999c24590a6b1083612b5b9e4d2d0e
714
py
Python
2016/day03_squares_with_three_sides/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day03_squares_with_three_sides/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
2016/day03_squares_with_three_sides/python/src/test_solutions.py
tlake/advent-of-code
17c729af2af5f1d95ba6ff68771a82ca6d00b05d
[ "MIT" ]
null
null
null
"""Tests.""" from solution1 import get_input as get_input_1 from solution2 import get_input as get_input_2 class TestPart1: """.""" def test_input(self): """.""" assert(get_input_1("./test_input.txt") == [ '101 301 501', '102 302 502', '103 303 503', ...
20.4
51
0.457983
9b2e09a5634195a828258a7f7ed02e3b2b534461
987
py
Python
transonic/analyses/test_analyses.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/analyses/test_analyses.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/analyses/test_analyses.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
from transonic.analyses import get_types_from_transonic_signature def assert_types_from_sig(signature, func_name, types): assert get_types_from_transonic_signature(signature, func_name) == types def test_simple(): assert_types_from_sig( "my_func(int, float64, )", "my_func", ["int", "float64"] ) ...
24.675
126
0.489362
9ba73ce30f376feef7254292f15586943e4e0034
668
py
Python
packages/watchmen-rest/src/watchmen_rest/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest/src/watchmen_rest/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest/src/watchmen_rest/__init__.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from .auth_helper import get_admin_principal, get_any_admin_principal, get_any_principal, get_console_principal, \ get_principal_by_jwt, get_principal_by_pat, get_super_admin_principal, retrieve_authentication_manager from .authentication import create_jwt_token, get_admin_principal_by, get_any_admin_principal_by, \ ...
55.666667
114
0.884731
1ff8a4e707e95ab02a95fe227e205403c423a089
10,993
py
Python
src/visuanalytics/analytics/control/procedures/step_data.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
3
2020-08-24T19:02:09.000Z
2021-05-27T20:22:41.000Z
src/visuanalytics/analytics/control/procedures/step_data.py
mxsph/Data-Analytics
c82ff54b78f50b6660d7640bfee96ea68bef598f
[ "MIT" ]
342
2020-08-13T10:24:23.000Z
2021-08-12T14:01:52.000Z
src/visuanalytics/analytics/control/procedures/step_data.py
visuanalytics/visuanalytics
f9cce7bc9e3227568939648ddd1dd6df02eac752
[ "MIT" ]
8
2020-09-01T07:11:18.000Z
2021-04-09T09:02:11.000Z
""" Modul, das die Klasse :class:`StepData` beinhaltet. """ import numbers from copy import copy from visuanalytics.analytics.util.step_errors import APIKeyError, PresetError from visuanalytics.analytics.util.step_pattern import StepPatternFormatter, data_insert_pattern, data_get_pattern, \ data_remove_pattern fro...
36.889262
124
0.635495
1f4c43c912d5f76bd52b22500e7ee7e139d1ae95
6,895
py
Python
nc.py
DongjiGao/neural_collapse
ca609ac72372adfef246fd39fcf4c2c368d11b02
[ "Apache-2.0" ]
null
null
null
nc.py
DongjiGao/neural_collapse
ca609ac72372adfef246fd39fcf4c2c368d11b02
[ "Apache-2.0" ]
null
null
null
nc.py
DongjiGao/neural_collapse
ca609ac72372adfef246fd39fcf4c2c368d11b02
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # 2021 Dongji Gao import argparse import soundfile as sf import torch import numpy as np import matplotlib.pyplot as plt from collections import defaultdict from datasets import load_dataset from torch.linalg import lstsq from transformers import Wav2Vec2Model, Wav2Vec2ForCTC, Wav2Vec2Processor...
33.149038
88
0.656563
23d90734dfd40bf40efb2c4665d39013998a267c
3,469
py
Python
api/spider/custom_comment.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/spider/custom_comment.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
null
null
null
api/spider/custom_comment.py
Latent-Lxx/dazhou-dw
902b4b625cda4c9e4eb205017b8955b81f37a0b5
[ "MIT" ]
1
2022-02-11T04:44:37.000Z
2022-02-11T04:44:37.000Z
# !/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2021/7/14 下午2:22 # @Author : Latent # @Email : latentsky@gmail.com # @File : guanzhan_comment.py # @Software: PyCharm # @class : 自定义评论获取 from api_request import API_Request from mongo_db import Mongo class Custom_Comment(object): # 1.手动获取id ---->txt获取 @c...
40.811765
106
0.428654
23dfb4f4b7f38e64b3bbd9f31f3b3cdfcd1f6b86
205
py
Python
test.py
mchackam/learn
d6307205884914deb2d5e78f0820eab2fb0e7166
[ "BSD-2-Clause" ]
null
null
null
test.py
mchackam/learn
d6307205884914deb2d5e78f0820eab2fb0e7166
[ "BSD-2-Clause" ]
null
null
null
test.py
mchackam/learn
d6307205884914deb2d5e78f0820eab2fb0e7166
[ "BSD-2-Clause" ]
null
null
null
#! /bin/python3 import requests import json res = requests.get('https://jsonplaceholder.typicode.com/todos/1') print(res.status_code) print(res.text) jsonObj = json.loads(res.text) print(jsonObj["title"])
22.777778
66
0.760976
9e6e2fff2d631232ce96eb4d411a311092173785
187
py
Python
OSINT-SPY-master/modules/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
OSINT-SPY-master/modules/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
OSINT-SPY-master/modules/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from .bitcoin import * from .company_detail import * from .device_search import * from .email_search import * from .ip_enum import * from .malware import * from .ssl_scan import *
23.375
30
0.737968
cda46fd4d55d625e691beb9e05bf2642c8cc696d
1,273
py
Python
nz_crawl_demo/day3/demo3.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day3/demo3.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day3/demo3.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from lxml import etree parser = etree.HTMLParser(encoding='utf-8') html = etree.parse('tencent.html',parser=parser) # 获取所有的tr标签 # trs = html.xpath("//tr") # for tr in trs: # #toString返回的是bytes类型 decode 将bytes 转为 string # res = etree.tostring(tr,encoding='utf-8').decode('utf-8') # # print(res) #获取第二个tr标签 ...
27.673913
63
0.599372
5ff098953b388978ee06f96c21b0fcbd5f16a585
3,706
py
Python
Python/zz_offtopic_sandbox/gt_api_request.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zz_offtopic_sandbox/gt_api_request.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
Python/zz_offtopic_sandbox/gt_api_request.py
Kreijeck/learning
eaffee08e61f2a34e01eb8f9f04519aac633f48c
[ "MIT" ]
null
null
null
import requests from requests.auth import HTTPBasicAuth, HTTPDigestAuth import json import os from datetime import datetime print(f'Start: {datetime.now().time()}') BASE_URL = "https://www.gran-turismo.com/de/api/gt7sp/" URI = "" form_data = {} user_no = 2581360 #user_no = 4467637 def get_profile(): response =...
33.387387
118
0.695899
270147ddb6f391f59ffb5e4f25048861faeeb4ae
115
py
Python
justCTF/2021/pwn/PainterHell/web/icypis/urls.py
mystickev/ctf-archives
89e99a5cd5fb6b2923cad3fe1948d3ff78649b4e
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
justCTF/2021/pwn/PainterHell/web/icypis/urls.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
justCTF/2021/pwn/PainterHell/web/icypis/urls.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-12-19T11:06:24.000Z
2021-12-19T11:06:24.000Z
from django.conf.urls import include, url urlpatterns = [ url(r'^tf/', include('tf.urls', namespace='tf')), ]
19.166667
53
0.652174
2739b4575e06034e50a16540bd479f5617ef9e0d
64
py
Python
ACM/python/douban/210914/testDouban.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
ACM/python/douban/210914/testDouban.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
ACM/python/douban/210914/testDouban.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
import numpy.matlib import numpy as np print(np.empty((2, 2)))
12.8
23
0.71875
e348544ad33cef8f4e8402aca114cd8db31127c5
420
py
Python
Imaginary/2021/crypto/small_enough/small_enough.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
1
2021-11-02T20:53:58.000Z
2021-11-02T20:53:58.000Z
Imaginary/2021/crypto/small_enough/small_enough.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
Imaginary/2021/crypto/small_enough/small_enough.py
ruhan-islam/ctf-archives
8c2bf6a608c821314d1a1cfaa05a6cccef8e3103
[ "MIT" ]
null
null
null
from Crypto.Util.number import getPrime, bytes_to_long from math import prod ps = [getPrime(512) for _ in range(5)] N1 = prod(ps[:3]) N2 = prod(ps[2:]) e = 0x10001 with open("flag.txt", "rb") as f: flag = bytes_to_long(f.read()) c1 = pow(flag, e, N1) c2 = pow(flag, e, N2) with open("output.txt", "w") as f: ...
21
54
0.578571
8b916d59fe91d3cfa9dca24f1a60ee1a583d09a6
781
py
Python
7-assets/past-student-repos/LambdaSchool-master/m7/71e1/hashtables/ex5/ex5.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71e1/hashtables/ex5/ex5.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
7-assets/past-student-repos/LambdaSchool-master/m7/71e1/hashtables/ex5/ex5.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
cache = {} def search_files(x, y, result): result.append(x) cache.update({y: x}) def finder(files, queries): result = [] for y in queries: if y in cache.items(): result.append(cache(y)) else: for x in files: current_comparison = x[-len(y):] ...
20.025641
53
0.480154
8b928a163b9c532ea3099a2a7a75d5577e79e99b
310
py
Python
python/tests/conftest.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-11-22T10:32:49.000Z
2021-11-22T10:32:49.000Z
python/tests/conftest.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
1
2021-12-09T14:39:51.000Z
2021-12-09T14:39:51.000Z
python/tests/conftest.py
Obarads/Point_Cloud_Tutorial
faf7ae8abf962ecea414cc7557dc35f4fca0e406
[ "MIT" ]
null
null
null
import os, sys import pytest BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(os.path.abspath(os.path.join(BASE_DIR, "../"))) # for package path DATA_DIR_PATH = os.path.abspath(os.path.join(BASE_DIR, "../../data")) @pytest.fixture def data_dir_path() -> str: return DATA_DIR_PATH
23.846154
83
0.716129
8bab9a1731edd0a09b48032f0b57c0f0607749c5
20,598
py
Python
Grundgeruest/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Grundgeruest/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Grundgeruest/views.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
# -*- coding: utf-8 -*- from django.shortcuts import get_object_or_404, render, redirect from django.http import HttpResponseRedirect, HttpResponse, Http404, JsonResponse from django.core.urlresolvers import reverse from userena.models import UserenaSignup from userena.mail import UserenaConfirmationMail from u...
39.996117
175
0.626129
4777f93acae497e01c37e2719e400a1694c97ad2
685
py
Python
pacman-termux/test/pacman/tests/fileconflict001.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/fileconflict001.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/fileconflict001.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Fileconflict with symlinks" lp = pmpkg("dummy") lp.files = ["dir/realdir/", "dir/realdir/realfile", "dir/symdir -> realdir"] self.addpkg2db("local", lp) p1 = pmpkg("pkg1") p1.files = ["dir/", "dir/realdir/", "dir/realdir/file"] self.addpkg(p1) p2 = ...
24.464286
64
0.605839
477bce61f83e968cce8868c4122219360b657565
4,546
py
Python
src/tools/fx/movietools/ju.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/tools/fx/movietools/ju.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/tools/fx/movietools/ju.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
import os ############################################################################### # Function: # # Purpose: This function gets the pool information from the ju command. # # Programmer: Brad Whitlock # Date: Mon Jan 13 12:59:46 PDT 2003 # ################################################################...
36.079365
97
0.564892
4790b7d5d35bf8f985529165b4f78a675b24d427
1,013
py
Python
Bibliothek/migrations/0007_auto_20171003_1603.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-07-24T10:19:36.000Z
2017-07-24T10:19:36.000Z
Bibliothek/migrations/0007_auto_20171003_1603.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
9
2017-07-26T14:16:08.000Z
2022-03-11T23:14:40.000Z
Bibliothek/migrations/0007_auto_20171003_1603.py
wmles/scholarium.at
d2356b3e475df772382e035ddcb839fc7dae4305
[ "MIT" ]
1
2017-03-07T12:38:23.000Z
2017-03-07T12:38:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2017-10-03 16:03 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Bibliothek', '0006_auto_20171002_1052'), ] operations = [ migrations.AlterF...
28.138889
80
0.575518
47c3fc80f561e769b6ba1925f535279215a8227c
10,405
py
Python
research/cv/ESRGAN/src/util/util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/ESRGAN/src/util/util.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/ESRGAN/src/util/util.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...
35.633562
116
0.625372
7be1471fda561c7c051da27bcd853bf55ef45185
5,214
py
Python
oldp/apps/courts/apps.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
3
2020-06-27T08:19:35.000Z
2020-12-27T17:46:02.000Z
oldp/apps/courts/apps.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
oldp/apps/courts/apps.py
ImgBotApp/oldp
575dc6f711dde3470d910e21c9440ee9b79a69ed
[ "MIT" ]
null
null
null
from enum import Enum from django.apps import AppConfig CourtLocationLevel = Enum('CourtLocationLevel', 'CITY STATE COUNTRY') class CourtsConfig(AppConfig): name = 'oldp.apps.courts' class CourtTypes(object): def get_type(self, code): return self.get_types()[code] @staticmethod def get_ty...
30.670588
77
0.423475
1902e86ddd599f62a3da51a5b0bd82205e0f680f
1,402
py
Python
alfa.py
andrevictor17/aulasRenzoEd
931d73f5d20e7a3c837f175131bf3a271c7f375f
[ "MIT" ]
null
null
null
alfa.py
andrevictor17/aulasRenzoEd
931d73f5d20e7a3c837f175131bf3a271c7f375f
[ "MIT" ]
null
null
null
alfa.py
andrevictor17/aulasRenzoEd
931d73f5d20e7a3c837f175131bf3a271c7f375f
[ "MIT" ]
null
null
null
import unittest from collections import deque from itertools import product alfa = {'2': 'abc', '3': 'def', '4': 'ghi', '5': 'jkl', '6': 'mno', '7': 'pqrs', '8': 'tuv', '9': 'wzyz'} def gerar_alfa(s): ''' Tempo de execução O(n)**2 expaço O(N) ''' lista = deque([()]) for n in s: cont =...
31.155556
116
0.517832
efe589f941cb14b80273f14ad8549d4dd50d0bd1
1,204
py
Python
euler-46.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler-46.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
euler-46.py
TFabijo/euler2
7da205ce02ae3bd12754f99c1fe69fbf20b1e3d0
[ "MIT" ]
null
null
null
def goldbach(): prastevila = [2,3,5,7,11,13,17] i = len(prastevila) d = True stevilo = 3 while d == True: if stevilo in prastevila: stevilo += 2 elif stevilo > prastevila[-1]: i += 1 s = prastevila[-1] while len(prastevila) !...
24.571429
54
0.307309
3e993d9fae07770e74ba2725e2caa4fce4be58e7
2,397
py
Python
apps/trainer/preprocess.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
2
2017-11-30T21:12:11.000Z
2017-12-01T07:52:43.000Z
apps/trainer/preprocess.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
14
2017-11-14T18:12:53.000Z
2018-06-03T16:07:57.000Z
apps/trainer/preprocess.py
Obyoxar/RobolabStatistics
08343ca3ac49df7efdac33692d7cc4b783e851f5
[ "MIT" ]
3
2018-02-05T10:40:03.000Z
2018-02-09T09:29:19.000Z
from robolib.networks.erianet import Erianet from tensorflow.python.client import device_lib from robolib.datamanager.siamese_data_loader import load_one_image import os import argparse import importlib from robolib.util.intermediate import save_intermediate, load_intermediate import robolib.datamanager.datadir as data...
39.295082
118
0.685857
eb1cd6824a047ee1663af27fcc38b4b93aeecb4c
5,904
py
Python
src/onegov/election_day/formats/vote/internal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/vote/internal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/election_day/formats/vote/internal.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.ballot import BallotResult from onegov.election_day import _ from onegov.election_day.formats.common import BALLOT_TYPES, validate_integer from onegov.election_day.formats.common import EXPATS from onegov.election_day.formats.common import FileImportError from onegov.election_day.formats.common import load_...
31.238095
79
0.573001
eb2f04a6d87328785df9b13d183099fb88a8dfd7
5,095
py
Python
agents/dqn.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
2
2022-02-24T08:21:49.000Z
2022-03-10T08:57:35.000Z
agents/dqn.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
1
2022-02-24T08:40:21.000Z
2022-02-24T12:01:58.000Z
agents/dqn.py
yerfor/Soft-DRGN
0c96d1ea295077b949229261c37d8dde25001a03
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from agents.base_agent import BaseAgent from modules.dqn import DQNNetwork from utils.numba_utils import * from utils.torch_utils import * from utils.hparams import hparams class DQNAgent(BaseAgent): def __init__(self, in_dim,...
39.496124
119
0.584887
f8558f914d042b7ca085e341ea729988d9de229b
1,410
py
Python
Tag_4/Pythoncode.py
UweZiegenhagen/FUH-LaTeX-2020
4da29ba6481079368e744a89342e97068491f68e
[ "Unlicense" ]
4
2020-06-23T09:45:49.000Z
2021-12-27T16:21:49.000Z
Tag_4/Pythoncode.py
UweZiegenhagen/FUH-LaTeX-2020
4da29ba6481079368e744a89342e97068491f68e
[ "Unlicense" ]
1
2021-01-08T19:36:14.000Z
2021-01-08T20:56:29.000Z
Tag_4/Pythoncode.py
UweZiegenhagen/FUH-LaTeX-2020
4da29ba6481079368e744a89342e97068491f68e
[ "Unlicense" ]
2
2020-12-04T14:43:39.000Z
2022-01-25T08:53:07.000Z
from selenium.webdriver import Firefox from selenium.webdriver.firefox.options import Options from selenium.common.exceptions import NoSuchElementException opts = Options() browser = Firefox(executable_path=r"C:\geckodriver-v0.27.0\geckodriver.exe", options=opts) browser.implicitly_wait(3) ...
34.390244
78
0.676596
f89beba2f60cf9bc609913f7de77d52a8c6007fe
4,002
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/expense_claim/test_expense_claim.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/expense_claim/test_expense_claim.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/expense_claim/test_expense_claim.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from frappe.utils import random_string, nowdate from erpnext.hr.doctype.expense_claim.expense_claim import make_bank_entry test_records = frappe...
38.114286
135
0.746127
90028f1f34d04757277f4876d10e621f2ec92916
235
py
Python
rdlcompiler/systemrdl/test/rdl/parse.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
4
2016-05-10T20:40:34.000Z
2020-04-09T13:23:33.000Z
rdlcompiler/systemrdl/test/rdl/parse.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
null
null
null
rdlcompiler/systemrdl/test/rdl/parse.py
MegabytePhreak/rdl
b97912751738da9fddb42a9155f5823716809fc0
[ "MIT" ]
null
null
null
__author__ = 'MegabytePhreak' import rdlcompiler.systemrdl.parser as parser def test_enum(): p = parser.RdlParser() p.parse('enum myenum { True = 1\'b0; False = 1\'b1 { name="FALSE"; descn="The opposite of \nTRUE"; }; };')
23.5
110
0.659574
9026141180e67aeaefb9444315b01dd83c4f232e
1,346
py
Python
reroot_tree.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
reroot_tree.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
reroot_tree.py
YueYvetteHao/Sandbox
db2b8b0e751bfb7d86e7f2506fb81a75f8c3a3e5
[ "MIT" ]
null
null
null
#!/usr/bin/python # Rerooting tree import sys import dendropy # DendroPy-4.4.0 treefile = str(sys.argv[1]) tree = dendropy.Tree.get(path=treefile, schema="newick", rooting='force-rooted') for node in tree.preorder_node_iter(): if node.parent_node is None: root = node #print("Before:") #print(tree.as_s...
25.884615
124
0.743685
0a777dec259b3ce5c1f0b06f544f8b8337ca24cf
5,275
py
Python
fhirclient/r4models/paymentreconciliation_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/paymentreconciliation_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/paymentreconciliation_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 paymentreconciliation from .fhirdate import FHIRDate class PaymentReconciliationTests(unittest.TestCase): ...
60.632184
149
0.685687
7cf2e69d8b2c3c02fb6b3f6a52305e94e690f5c6
349
py
Python
1837-sum-of-digits-in-base-k/1837-sum-of-digits-in-base-k.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
1837-sum-of-digits-in-base-k/1837-sum-of-digits-in-base-k.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
1837-sum-of-digits-in-base-k/1837-sum-of-digits-in-base-k.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
import math class Solution: def sumBase(self, n: int, k: int) -> int: result=0 max_seung=int(math.log(n, k)) while(max_seung>=1): base = math.pow(k, max_seung) cur = n//base result+=cur max_seung-=1 n-=(cur*base) result+=(n%...
26.846154
45
0.487106
6b1366f3c1115af78c7b49fe09f95f5287b7a062
361
py
Python
BeautifulData/BeautifulData/__init__.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
BeautifulData/BeautifulData/__init__.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
BeautifulData/BeautifulData/__init__.py
zhangyafeii/Flask
9c9a5ea282f77aabcda838796dad2411af9b519f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Datetime: 2019/1/1 @Author: Zhang Yafei """ from flask import Flask from BeautifulData.views.account import ac from BeautifulData.views.backend import main def create_app(): app = Flask(__name__) app.config.from_object('settings.ProConfig') app.register_blueprint(ac) app...
19
48
0.717452
812c00cfe254d596b1910f7ff57a82c23427908f
4,130
py
Python
last_year_cashflow/app.py
martindariocernadas/hackathon-2018A
a8901a1248e240adc023064e058c07fcccaf2b11
[ "MIT" ]
null
null
null
last_year_cashflow/app.py
martindariocernadas/hackathon-2018A
a8901a1248e240adc023064e058c07fcccaf2b11
[ "MIT" ]
2
2018-09-14T11:35:59.000Z
2018-09-14T17:42:34.000Z
last_year_cashflow/app.py
martindariocernadas/hackathon-2018A
a8901a1248e240adc023064e058c07fcccaf2b11
[ "MIT" ]
1
2018-09-14T17:37:26.000Z
2018-09-14T17:37:26.000Z
import json import os from elasticsearch import Elasticsearch, RequestsHttpConnection from requests_aws4auth import AWS4Auth es_host = os.getenv('ELASTICSEARCH_URL') max_data = os.getenv('MAX_DATA') def lambda_handler(event, context): """Sample pure Lambda function Parameters ---------- event: dict, ...
31.287879
155
0.549879
d4bb0011bedc76ebc6065ed8a020237917e6386a
30,134
py
Python
sim/lib/mobilitysim.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
null
null
null
sim/lib/mobilitysim.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
null
null
null
sim/lib/mobilitysim.py
j-groeneveld/covid
a8d993c866dcd56bf1c5f6f0a2120eae883aa029
[ "MIT" ]
1
2021-07-28T13:52:58.000Z
2021-07-28T13:52:58.000Z
from collections import namedtuple, defaultdict import itertools import random as rd import pandas as pd import numpy as np import numba import pickle import json from interlap import InterLap TO_HOURS = 24.0 # Tuple representing a vist of an individual at a site # Note: first two elements must be('t_from', 't_to_sh...
40.666667
126
0.593184
13afd185acb14fccea98095dbb692294ae494df0
16,552
py
Python
Packs/CommonScripts/Scripts/FindSimilarIncidentsV2/FindSimilarIncidentsV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/CommonScripts/Scripts/FindSimilarIncidentsV2/FindSimilarIncidentsV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/CommonScripts/Scripts/FindSimilarIncidentsV2/FindSimilarIncidentsV2.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
# type: ignore from CommonServerPython import * import collections from dateutil import parser # type: ignore[import] EXACT_MATCH = 0 CONTAINS = '*' SEVERITY_MAP = { '0': 'Unknown', '0.5': 'Informational', '1': 'Low', '2': 'Medium', '3': 'High', '4': 'Critical' } STATUS_MAP = { '0': 'Pe...
38.945882
120
0.622342
b9499de803e3d759ccdcd5ed2a42decc0a8ee123
203
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/nib_length.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/nib_length.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/bx_python-0.7.1-py2.7-linux-x86_64.egg/EGG-INFO/scripts/nib_length.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/python2.7 """ Print the number of bases in a nib file. usage: %prog nib_file """ from bx.seq import nib as seq_nib import sys nib = seq_nib.NibFile( file( sys.argv[1] ) ) print nib.length
14.5
44
0.694581
6a40b25b9299db7d007ff838ce56ef034790d847
772
py
Python
python/python/regex/regex.py
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
3
2019-07-06T02:31:44.000Z
2020-07-31T08:04:55.000Z
python/python/regex/regex.py
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
24
2020-07-31T07:21:58.000Z
2021-12-19T08:43:42.000Z
python/python/regex/regex.py
acgist/demo
7dfc5d6cb967dafec4d5707e2f395d3e3d354d80
[ "BSD-3-Clause" ]
null
null
null
#coding=utf-8 ''' 正则表达式学习代码 ''' import re regex = re.compile("\d") # matchs = regex.match("123") matchs = regex.search("abc123") # 注意search和match的区别 print "字符串查找" if matchs != None: print matchs.group() # print matchs.groups() # 查询组需要使用() else: print "没有匹配到数据" matchs = regex.findall("abc123"); print "迭代器提...
20.315789
51
0.650259
168aabd2178df296e3501e6369d6a19a03134314
1,654
py
Python
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hash_functions_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hash_functions_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hash_functions_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Hash tables :: Day 1 notes: Hash functions * Deterministic: * For a given input, the output will always be the same. * Defined output range: * For a hash table of size 16, all keys must hash to a value 0-15. * For smaller values, this is usually accomplished using the modulo % operation. * Predictable ...
25.446154
84
0.696493
bcde5ed5b621d4114f62b6a0b0de1acf6ac048ca
1,351
py
Python
tests/onegov/gis/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gis/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/gis/test_models.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.core.orm import ModelBase from onegov.core.orm import SessionManager from onegov.core.orm.mixins import ContentMixin from onegov.gis.models import Coordinates, CoordinatesMixin from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy.ext.declarative import declarative_base def test_mut...
31.418605
63
0.749075
4c78571284ee9adabdbd09f2914263b13669d788
1,210
py
Python
Packs/NonSupported/Scripts/SaneDocReport/SaneDocReport.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/NonSupported/Scripts/SaneDocReport/SaneDocReport.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/NonSupported/Scripts/SaneDocReport/SaneDocReport.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import traceback import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * import os import base64 from sane_doc_reports.main import run OUTPUT_FILE_PATH = 'out.docx' try: sane_json_b64 = demisto.args().get('sane_docx_report_base64', '').encode( 'utf-8') orie...
31.842105
77
0.657025
911a797216eb96b8f02d1ba4e04de7e68ed64043
7,462
py
Python
main.py
RoseGoldDiablo/SandBox
390667dc9ff84116550253433975b259b653bb89
[ "Apache-2.0" ]
null
null
null
main.py
RoseGoldDiablo/SandBox
390667dc9ff84116550253433975b259b653bb89
[ "Apache-2.0" ]
null
null
null
main.py
RoseGoldDiablo/SandBox
390667dc9ff84116550253433975b259b653bb89
[ "Apache-2.0" ]
null
null
null
# Import Statements from PyQt5.QtWidgets import * from PyQt5.QtCore import * import sys # ---------------------------------------------------------------------------------------------------------------------- # Function for deleting all items in a layout def clearLayout(layout): while layout.count(): chi...
37.497487
120
0.458322
539d1e7e19b6dfca86b7f604769fd6a592e14d3b
4,478
py
Python
tests/loadtest/stresstest.py
zew/go-questionaire
38beb237cba9695fa63bcd6565991555bbbc67a5
[ "MIT" ]
2
2021-02-28T17:17:05.000Z
2021-04-14T07:07:16.000Z
tests/loadtest/stresstest.py
zew/go-questionnaire
cc01d3da53063ab4c1dca69a02c20742d6c30c01
[ "MIT" ]
null
null
null
tests/loadtest/stresstest.py
zew/go-questionnaire
cc01d3da53063ab4c1dca69a02c20742d6c30c01
[ "MIT" ]
null
null
null
import threading import time import requests import sys print("Set is_production to True") time.sleep(3) # stackoverflow.com/questions/16181121/ # 'dev.zew.de' should point to your development server - i.e. localhost urlBase = "https://dev.zew.de:8081/survey" pathLogin = "/d/" urls = [ urlBase + pathLogin + "R...
28.705128
88
0.602948
53a52a91c961b64cf7f320eaa5f6de2011beaa31
527
py
Python
src/onegov/feriennet/const.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/const.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/feriennet/const.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
#: Describes the states which are visible to the given role (not taking # ownership in account!) VISIBLE_ACTIVITY_STATES = { 'admin': ( 'preview', 'proposed', 'accepted', 'archived' ), 'editor': ( 'accepted', ), 'member': ( 'accepted', ), 'anon...
18.821429
71
0.57685
53bc05e726f2179fce2b0b58eb7741eec34a5c0c
11,221
py
Python
haas_lib_bundles/python/docs/examples/air_pressure_detection/esp32/code/oneMinuteOnCloud.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/air_pressure_detection/esp32/code/oneMinuteOnCloud.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/air_pressure_detection/esp32/code/oneMinuteOnCloud.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
print('enable OneMinuteOnCloud') import ubluetooth import uos as os import uerrno as errno import ujson as json import uzlib import upip_utarfile as tarfile import gc import time import machine import ussl import usocket import network _wlan = network.WLAN(network.STA_IF) _ble = ubluetooth.BLE() _ble_adv_name = 'esp-...
32.244253
117
0.4914
db679050b1674079c46cdc0394dee31581cc91ab
1,665
py
Python
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/membership/membership.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/membership/membership.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/non_profit/doctype/membership/membership.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.utils import add_days, add_years, nowdate, getdate from frappe impo...
31.415094
83
0.743544
91d9be56e4742ddd3f89956df9c6a71e9c110ede
15,888
py
Python
methods/transformers/tests/test_retrieval_rag.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
3
2021-07-06T20:02:31.000Z
2022-03-27T13:13:01.000Z
methods/transformers/tests/test_retrieval_rag.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
methods/transformers/tests/test_retrieval_rag.py
INK-USC/RiddleSense
a3d57eaf084da9cf6b77692c608e2cd2870fbd97
[ "MIT" ]
null
null
null
import json import os import pickle import shutil import tempfile from unittest import TestCase from unittest.mock import patch import numpy as np from datasets import Dataset import faiss from transformers.configuration_bart import BartConfig from transformers.configuration_dpr import DPRConfig from tr...
46.186047
119
0.631798
72cac1ba03130f299767cc2bc69976e60db7cf58
322
py
Python
1_BasicFeatures/MemoryManagment/mutability.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
1
2022-03-02T07:16:30.000Z
2022-03-02T07:16:30.000Z
1_BasicFeatures/MemoryManagment/mutability.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
1_BasicFeatures/MemoryManagment/mutability.py
felixdittrich92/Python3
16b767465e4bdf0adc652c195d15384bb9faa4cf
[ "MIT" ]
null
null
null
# Mutability beschreibt, ob ein Wert verändert werden kann oder # ob dieser "festgesetzt" ist # immutable types: unveränderbare Typen: int, float, bool, str, tuple # mutable types: veränderbare Typen: list, dict, set, etc. list1 = [1, 2, 3] tuple1 = (1, 2, 3) list1[0] = -1 # tuple1[0] = -1 geht nicht, da immutable...
24.769231
69
0.689441
f477110d4a31d6cbb707a4dfe1ff39642573f9fd
869
py
Python
notebooks/2.-analysis.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
notebooks/2.-analysis.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
notebooks/2.-analysis.py
xbelda/movielens-recommender
1e1335e2a2b9f57b948916ff415af149938caa33
[ "MIT" ]
null
null
null
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.1 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # cd .. imp...
20.209302
93
0.663982
be5f576ba7ef26ef26aa3015240a3f32027ef0bc
4,031
py
Python
tests/test_angebot.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
tests/test_angebot.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
tests/test_angebot.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
from datetime import datetime, timezone import pytest # type:ignore[import] from bo4e.bo.angebot import Angebot, AngebotSchema from bo4e.bo.ansprechpartner import Ansprechpartner from bo4e.bo.geschaeftspartner import Geschaeftspartner from bo4e.enum.geschaeftspartnerrolle import Geschaeftspartnerrolle from bo4e.enum...
43.344086
92
0.536343
be71a40cb8dcc48e63bdfcf0101f4085e1c190a7
486
py
Python
nz_crawl_demo/day5/demo7.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day5/demo7.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day5/demo7.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from selenium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC driver = webdriver.Chrome() driver.get("https://www.baidu.com/") # driver.implicitly_wait(5) #获取不可用的元素 如果能返回就不...
27
64
0.790123
4a752e4958d45833171fb7e514c1eed23f1634ab
4,065
py
Python
src/tests/test_mining.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/tests/test_mining.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
src/tests/test_mining.py
TimHabeck/blockchain-lab
3cd050ee43f26cf0a1f70869100f0b40a6abae07
[ "RSA-MD" ]
null
null
null
''' Test functions to test different approaches/algorithms to find a nonce for a block Used to determine which approach has the least overall iterations run with 'python -m unittest' in the src/ directory individual tests can be run with e.g.: 'python -m unittest tests.test_mining.TestMining.test_mine_with_bruteforce'...
43.709677
99
0.645264
60c52345bb2fffa0cf6bc05188e67adaec9053db
1,474
py
Python
backend/migrations/versions/c59f1ce5a3dc_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/migrations/versions/c59f1ce5a3dc_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
backend/migrations/versions/c59f1ce5a3dc_.py
davidoesch/platform
1eb6f98568cab82e28bd5350beab2042b22d99ed
[ "MIT" ]
null
null
null
"""empty message Revision ID: c59f1ce5a3dc Revises: 2a667b6e3df3 Create Date: 2019-03-21 17:14:31.730928 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c59f1ce5a3dc' down_revision = '2a667b6e3df3' branch_labels = None depends_on = None def upgrade(): # ...
35.95122
108
0.697422
71b20d5c96849abbb6fdf39b7500a2f81c01f72c
401
py
Python
38. Count and Say.py
chenenfeng/lt
be71a83ff485d2fa8850df324e5661767be3dc00
[ "MIT" ]
1
2018-09-03T23:53:43.000Z
2018-09-03T23:53:43.000Z
38. Count and Say.py
chenenfeng/lt
be71a83ff485d2fa8850df324e5661767be3dc00
[ "MIT" ]
null
null
null
38. Count and Say.py
chenenfeng/lt
be71a83ff485d2fa8850df324e5661767be3dc00
[ "MIT" ]
null
null
null
#https://leetcode.com/problems/count-and-say/description/ 1 11 21 1211 111221 312211 13112221 # I can't find the rule that numbers make list 1 len(a),a[0] j=0 def count_and_say(j,a): if for i in range(j, len(a)): # I find something different if a[i]!=a[j]: #count b.app...
16.04
57
0.561097
e0822d55547fbb31185ff6a742702aae5fa42952
266
py
Python
Programming Languages/Python/Theory/100_Python_Challenges/Section_2_String/31. remove white spaces from a string.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_2_String/31. remove white spaces from a string.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_2_String/31. remove white spaces from a string.py
Sid-1164/Resources
3987dcaeddc8825f9bc79609ff26094282b8ece1
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
""" Write a function that removes white spaces from an input string. Example: input_string = 'C h a l l e n g e s' Expected output ='Challenges' """ def remove_spaces(input_string): output_string = input_string.replace(" ", "") return output_string
17.733333
64
0.695489
1c0956ea11dcbe797eb6f0430492883f5bc44c15
16,518
py
Python
Liquid-job-benchmarks/perfzero/lib/cloud_manager.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
2
2021-08-30T14:12:09.000Z
2022-01-20T02:14:22.000Z
Liquid-job-benchmarks/perfzero/lib/cloud_manager.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
Liquid-job-benchmarks/perfzero/lib/cloud_manager.py
PasaLab/YAO
2e70203197cd79f9522d65731ee5dc0eb236b005
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2019 The TensorFlow 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 #...
38.236111
152
0.658494
90a92837f41f05764a26be429227d2e4e18acd2f
167
py
Python
ZbjDjChannels/chatroom/routing.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/chatroom/routing.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
ZbjDjChannels/chatroom/routing.py
zbjlala/ZbjDjChannels
c4da2339574e2e398bd452eef4d026eab309752c
[ "MIT" ]
null
null
null
from django.conf.urls import url from chatroom import consumers websocket_urlpatterns = [ url(r'^ws/chatroom/(?P<room_name>[^/]+)/$', consumers.ChatConsumer), ]
20.875
72
0.718563
465fec64232a9a477484ed4bb4e1aded8edf4902
21,847
py
Python
python/zimmer_to_nix/zim2nix.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/zimmer_to_nix/zim2nix.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/zimmer_to_nix/zim2nix.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
""" Parse raw calcium imaging files acquired using different stimulus protocols into a NIX file. The raw csv files require the following columns: 'curr_frame', 'time_elapsed', 'obj_subtracted', 'subtracted_value', 'obj_value', 'obj_size', 'background_value', 'xold', 'yold' """ import argparse import matplotlib.pyplot ...
45.800839
96
0.680643
d3e6df6c681003a2816b0d6f5db35278b538c1dd
1,575
py
Python
app/routes.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
app/routes.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
app/routes.py
obitastico/QuizPowerPointCreator
c421d0ec84308b4ac20f71b9d7729a0cd2d40da5
[ "MIT" ]
null
null
null
from comtypes import CoInitialize from flask import render_template, request, session, redirect, url_for, flash, send_file from app import app, check_iterable from quizpptx import create_quiz_from_questions @app.route('/', methods=['GET', 'POST']) def index(): """Callback for root page""" try: questi...
29.166667
93
0.619683
c328947d22a8acbb22febb7558c5499cc777a2f9
2,911
py
Python
build/dart/sdk/gen_meta_file.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
build/dart/sdk/gen_meta_file.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
build/dart/sdk/gen_meta_file.py
opensource-assist/fuschia
66646c55b3d0b36aae90a4b6706b87f1a6261935
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python2.7 # Copyright 2018 The Fuchsia Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import json import os import sys FUCHSIA_ROOT = os.path.dirname( # $root os.path.dirname( # build ...
29.704082
79
0.578152
8264ebf277c44a4ddd85e8438d101636790ab67c
3,112
py
Python
official/cv/ADNet/src/utils/get_video_infos.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/ADNet/src/utils/get_video_infos.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/ADNet/src/utils/get_video_infos.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...
36.186047
105
0.558805
8270d134352339c109623514b9c3932e39b4d791
704
py
Python
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_maior.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_maior.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
tarefas-poo/lista-02/processa-numeros/view/paineis/painel_maior.py
victoriaduarte/POO_UFSC
0c65b4f26383d1e3038d8469bd91fd2c0cb98c1a
[ "MIT" ]
null
null
null
# -------------------------- # UFSC - CTC - INE - INE5603 # Exercício Processa Números # -------------------------- # Classe responsável por encontrar o maior número. from view.paineis.painel_abstrato import PainelAbstrato from model.processa_numeros import maior as acha_maior class PainelMaior(PainelAbstrato): d...
32
86
0.612216