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
20bf26f6d4991ace9ec7a0a74530718eaf4fd7c0
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r10p1/Gen/DecFiles/options/20072002.py
a5d0a92707cd731867593ec97455a57a39004f3e
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/20072002.py generated: Wed, 25 Jan 2017 15:25:32 # # Event Type: 20072002 # # ASCII decay Descriptor: pp => [<Xc>]cc ... # from Gaudi.Configuration import * importOptions( "$DECFILESROOT/options/DiMuon_for_tau23mu.py" ) from Configurables import Genera...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
80ee0b807b6645849b86857892b8f89176016c50
98b63e3dc79c75048163512c3d1b71d4b6987493
/tensorflow/python/kernel_tests/linalg/sparse/csr_sparse_matrix_sparse_mat_mul_grad_test.py
07d1e6a2a061f98ad65a92e1259fed8bc646e0ac
[ "Apache-2.0" ]
permissive
galeone/tensorflow
11a4e4a3f42f4f61a65b432c429ace00401c9cc4
1b6f13331f4d8e7fccc66bfeb0b066e77a2b7206
refs/heads/master
2022-11-13T11:56:56.143276
2020-11-10T14:35:01
2020-11-10T14:35:01
310,642,488
21
12
Apache-2.0
2020-11-06T16:01:03
2020-11-06T16:01:02
null
UTF-8
Python
false
false
5,236
py
# 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 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
acec0e95d1ab761a24af1b9dc5a5772237ac0c6a
28c517d75c71dcdefa3dfaa0dff6d5998f885e53
/testing/regrid/testDiag.py
6722eaa555a1b1ca4ba13982a9b03f7b2e8220ae
[]
no_license
AZed/uvcdat
5863eba99f230c23336cc4e0772e0d406b24a919
58e745bbed25c7b80584fa25a29dd8239d917cd9
refs/heads/master
2021-01-18T10:36:45.792190
2013-01-25T22:29:10
2013-01-25T22:29:10
8,485,065
1
0
null
null
null
null
UTF-8
Python
false
false
6,890
py
""" $Id: testDiag.py 2389 2012-07-26 15:51:43Z dkindig $ Test diagnostics """ import re import numpy import cdms2 import regrid2 import unittest import ESMP from regrid2 import esmf from matplotlib import pylab from mpi4py import MPI import types from math import pi import sys class Test(unittest.TestCase): d...
[ "aashish.chaudhary@kitware.com" ]
aashish.chaudhary@kitware.com
b1b4c6f3cdff8fb9c2d1c39ee1f4d1670dd9d919
25bcf095a803470b4be9bba394569cb218b997ed
/book/算法和数据操作-回溯法-矩阵中的路径.py
02aeb344a4c555b22f17c04134e17a8e2968819c
[]
no_license
lcqbit11/algorithms
c8a3da6d3a9d387d54639c0a08d14ca6b9118bb3
ca4dacda39dc12d53ed8d4448b3356a3f2936603
refs/heads/master
2023-06-22T06:36:22.106780
2023-06-11T07:10:40
2023-06-11T07:10:40
245,633,883
0
0
null
2023-06-11T07:10:41
2020-03-07T13:02:24
Python
UTF-8
Python
false
false
1,403
py
#!/usr/bin/env python # -*- coding: utf-8 -*- def matrix_path(matrix, s): """ :param matrix: List[List[int]] :param s: str :return: bool """ def new_matrix(m, row, col): matrix = [[0] * len(m[0]) for k in range(len(m))] for i in range(len(m)): for j in range(len(m[0]...
[ "lichangqing03@meituan.com" ]
lichangqing03@meituan.com
eca5c374b5e021bedadf8e451f0537bea855034d
7f24023d365e013ec0924844c1a872edfb0c75b4
/tests/trac/test-trac-0091.py
22249454c7a9b898e8f2d4b3e96a19e52251d7dc
[ "Python-2.0", "MIT", "Apache-2.0" ]
permissive
pabigot/pyxb
cd42c024607572c6363682d389e9296caf3f2857
5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a
refs/heads/next
2023-05-11T03:23:19.599756
2023-04-29T20:38:15
2023-04-29T20:45:13
20,547,850
130
63
Apache-2.0
2021-08-19T16:52:18
2014-06-06T01:49:03
Python
UTF-8
Python
false
false
4,794
py
# -*- coding: utf-8 -*- import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import pyxb.binding.generate import pyxb.binding.datatypes as xs import pyxb.binding.basis import pyxb.utils.domutils import os.path xsd='''<?xml version="1.0" encoding="UTF-8"?> <xs:schema xm...
[ "pab@pabigot.com" ]
pab@pabigot.com
f95738894ed4e42648865c0d36d329579bf719eb
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/132/usersdata/239/41382/submittedfiles/al14.py
5754055aa4ef2a253321a042cdc75ce2db4c6048
[]
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
214
py
# -*- coding: utf-8 -*- n=int(input("Digite o número de pessoas: ")) i=0 termo=n while termo>0: idade=int(input("Digite a idade das pessoas: ")) i=i+idade termo=termo-1 media=(i/n) print("%.2f"%media)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
4ff05fb289e34cc72623f03733a105c7aa80dbf4
38d6a6ac271fca4d5fff422541bc59df10e66ef5
/landlab/_info.py
0a320b3bd55222275db2d17e22a791571245c485
[ "MIT" ]
permissive
AndresQuichimbo/landlab
767d3c42eaa4e6477865594666dd49eb3eb684bb
39fee962ec962a389ae4522a55a17f53a0d37a6e
refs/heads/master
2020-04-01T21:31:11.422998
2020-02-06T23:12:26
2020-02-06T23:12:26
240,261,264
0
0
MIT
2020-02-13T13:00:25
2020-02-13T13:00:24
null
UTF-8
Python
false
false
584
py
name = "landlab" cite_as = [ """@article{hobley2017creative, title={Creative computing with Landlab: an open-source toolkit for building, coupling, and exploring two-dimensional numerical models of Earth-surface dynamics}, author={Hobley, Daniel EJ and Adams, Jordan M and Nudurupati, ...
[ "mcflugen@gmail.com" ]
mcflugen@gmail.com
ee0b438af7cec5ea6648945f35afe8bbfd233040
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/415/usersdata/296/86500/submittedfiles/exe11.py
3e55da52506b436ee00c29807dd6008b54ef4d53
[]
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
234
py
# -*- coding: utf-8 -*- n = int(input("Digite um número: ")) soma = 0 while n > 0: if 10000000 <= n <= 90000000: resto = n%10000000 n = (n - resto)/10000000 soma = soma + resto print(soma)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c22bc6d09d1dba9ee889fd0d138c6d55c329be08
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/BuildLinks1.10/test_input/CJ_16_1/16_1_2_Erisky_solve_B.py
414d395289b8df01c731ab2d840c390f59fd2a13
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
826
py
import math # raw_input() reads a string with a line of input, stripping the '\n' (newline) at the end. # This is all you need for most Google Code Jam problems. total = int(raw_input()) # read a line with a single integer for i in xrange(1, total + 1): N = int(raw_input()) output = {} for j in range(2*N-...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
54b141b59dad195d7bb823334914e9748de22edc
18f8abb90efece37949f5b5758c7752b1602fb12
/py/django_tools/django-exceptional/test/example/settings.py
91dbfbd0d5b7de0bc9be14860552db1f2cde198f
[ "Unlicense" ]
permissive
marceltoben/evandrix.github.com
caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516
abc3fbfb34f791f84e9a9d4dc522966421778ab2
refs/heads/master
2021-08-02T06:18:12.953567
2011-08-23T16:49:33
2011-08-23T16:49:33
2,267,457
3
5
null
2021-07-28T11:39:25
2011-08-25T11:18:56
C
UTF-8
Python
false
false
2,603
py
# Django settings for example project. import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), 'src')) DEBUG = False TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Zachary Voase', 'z@zachary...
[ "evandrix@gmail.com" ]
evandrix@gmail.com
612bc2e1e4649e4a7d9af7a4aabbdcc5d0eac099
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v2/model/opsgenie_service_response_attributes.py
5d6473bfa2a5e8c186c521947868485560bb1cad
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
1,920
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import Union, TYPE_CHECKING from datado...
[ "noreply@github.com" ]
DataDog.noreply@github.com
3e40c665d4a08a20bf0af0dfd2e3714d906f4c00
8ab61e98b8b4efa7378ad50ee12ea5ec81b8c310
/thredo/requests.py
6891e62a04fde54970e922350c53ce1b8bc23643
[ "MIT" ]
permissive
RalphWalters/thredo
5a791d0848067e2b028c3040874476d582509543
ea109c693036764dd192527f9b6bba18d3b18042
refs/heads/master
2020-04-05T05:18:56.942365
2018-11-08T23:25:54
2018-11-08T23:25:54
156,589,958
1
0
MIT
2018-11-07T18:21:27
2018-11-07T18:21:27
null
UTF-8
Python
false
false
2,746
py
# requests.py # # Session adapter that allows requests to use thredo socket objects. # This is a bit of plumbing, but it's a clean interface that doesn't # require any monkeypatching or other low-level magic __all__ = ['get_session'] # -- Thredo from . import socket # -- Requests/third party import requests from req...
[ "dave@dabeaz.com" ]
dave@dabeaz.com
7cbb1ee16366420627e8f8f83747002cf7163930
f30b91db647dca1f77fffa4b7e26b6c6a68abbc6
/8_kyu/Who is going to pay for the wall/test_who_is_paying.py
3d95d5e8ac506893d12e7e9d460f4df00a45d1e8
[]
no_license
estraviz/codewars
73caf95519eaac6f34962b8ade543bf4417df5b7
5f8685e883cb78381c528a0988f2b5cad6c129c2
refs/heads/master
2023-05-13T07:57:43.165290
2023-05-08T21:50:39
2023-05-08T21:50:39
159,744,593
10
55
null
null
null
null
UTF-8
Python
false
false
354
py
from who_is_paying import who_is_paying def test_who_is_paying(): assert who_is_paying("Mexico") == ["Mexico", "Me"] assert who_is_paying("Melania") == ["Melania", "Me"] assert who_is_paying("Melissa") == ["Melissa", "Me"] assert who_is_paying("Me") == ["Me"] assert who_is_paying("") == [""] a...
[ "javier.estraviz@gmail.com" ]
javier.estraviz@gmail.com
7e6b93f712239743b62500083227e02253458129
92993cff825da80a8ff601572a0c52b0b7d3cbde
/algorithms/Svm/ADMM/L2/ADMM_L2_m43.py
abb30b1ac1a4beb3a53b43d81d55a8428c66bbb9
[]
no_license
yingzhuoy/MRs-of-linear-models
06e8b1f84b08c6aa77553813824cf35c1806c5a7
c3df8299e039a12613f2022b370b8c3e9c2dd822
refs/heads/master
2023-04-07T23:09:37.736952
2021-04-04T05:33:37
2021-04-04T05:33:37
265,124,549
0
0
null
null
null
null
UTF-8
Python
false
false
4,061
py
import numpy as np from numpy import linalg #import cvxopt #from cvxopt import matrix,solvers from algorithms.clf import Clf """ Preconditioned Conjugate Gradient Method """ def precond(M, r): q = M * r return q def inner_prod(A, B): A = np.matrix(A) B = np.matrix(B) return np.dot(A.reshape(-1,1)...
[ "yingzhuoy@qq.com" ]
yingzhuoy@qq.com
e7e2dee5d2d5cf21363e6875097b7870703e164a
fa60618b9f68aee452b278c6efb6300e50d90dbc
/py_demo/默尼森数.py
3ef57dd22c062c2bb03ddc9a5ffa9c3545cb59a4
[]
no_license
ALICE5/Python
668feaaf87e88df0d14252c0fcbc8c5b479cb7c8
6b2037bd3e6fa5689f355a128739343779d28fe5
refs/heads/master
2021-01-01T16:26:57.170646
2017-09-18T09:31:30
2017-09-18T09:31:30
97,832,226
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
# Judge a number is a prime or not import math def isPrime(x): if x==1: return False k = int(math.sqrt(x)) for j in range(2, k+1): if x % j == 0: return False return True # Generate the num Prime def prime(num): if num == 1: return 2 k = 1 i = 1 while...
[ "alice4u@bjtu.edu.cn" ]
alice4u@bjtu.edu.cn
2b2a6d1bc2ac3e00c7327b4266870bcecb87ea3b
6d36b40aa5a2fdfd068731b7ee657ec25279bdec
/uncluster/cluster_distributions/gnedin.py
9821ec84c3c8a1c3e62379f581f647ecf90cdfd8
[ "MIT" ]
permissive
adrn/uncluster
5efee493c4319e4e0d07615fb6da6dbdcb172301
0e487f7cc17426bbd03ff1f02000bc3437075ab3
refs/heads/master
2021-04-30T18:30:48.693052
2017-02-21T14:08:54
2017-02-21T14:08:54
63,977,520
0
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Third-party import astropy.units as u import numpy as np from scipy.special import gammainc from scipy.interpolate import InterpolatedUnivariateSpline from scipy.misc import derivative from ..config import M_min, M_max _...
[ "adrian.prw@gmail.com" ]
adrian.prw@gmail.com
ea703a24032f314d7e01b11a64fa900fc1c2c605
b7683c108e68ee2d28573edf55923eb34cc2f5ee
/5_Video_Analysis/3_Background_substraction/3_GMG.py
e72711d3c0643816ef3b230ff18d92f712be427c
[]
no_license
aCuissot/openVC_win_py_tutorial
cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01
7186b629747cb16f2bf42a03d2339d3dc3ea77bd
refs/heads/master
2020-05-18T12:17:04.619047
2019-07-10T13:45:00
2019-07-10T13:45:00
184,403,715
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
import numpy as np import cv2 as cv cap = cv.VideoCapture('../../Data/in/vtest.avi') kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE, (3, 3)) fgbg = cv.bgsegm.createBackgroundSubtractorGMG() while True: ret, frame = cap.read() fgmask = fgbg.apply(frame) fgmask = cv.morphologyEx(fgmask, cv.MORPH_OPEN, ke...
[ "harrypotter9752@gmail.com" ]
harrypotter9752@gmail.com
c74b74d06dfb216f30a2b9bb4f52d9be55005706
429211c01057abcd51e5120d566c7daa0a8e2f33
/1804/二/day4/class4.py
adce94b9a462cd19775068f56485909388f5f106
[]
no_license
LDZ-RGZN/b1804
2788c922a6d1a6dc11267920a90336d1df93a453
c57f8b7cf14686036cae3c30a30f07514622b5ca
refs/heads/master
2021-07-19T12:54:07.031858
2018-10-12T02:48:39
2018-10-12T02:48:39
133,500,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,017
py
import time class cat: def __init__(self,lun_zi,color): self.lunzi = lun_zi self.color = color def pao(self): print ('一辆%d个轮子的%s色%s汽车正在公里上飞驰'%(self.lunzi,self.color,self.name)) def jiao(self): print ('这辆%s汽车正在冲着前面的那辆%s汽车鸣笛'%(self.name,self.name2)) def zw(self): ...
[ "2654213432@qq.com" ]
2654213432@qq.com
aa37b24dc0979c643a0174561ca08482a852901f
f8d2521a88e465eed01adc3981c7a173d5c2554b
/round/round0326-0350/round0335/c1.py
0851e5dcae97aadd46d36170be48457946510b85
[]
no_license
clarinet758/codeforces
b2a8a349bba40e7761a8ce50dd5ff9a57477b60d
d79870c47bdb109547891a0d076dd173d6d647cf
refs/heads/main
2021-12-15T05:46:51.000160
2021-12-01T12:01:33
2021-12-01T12:01:33
41,968,658
1
0
null
null
null
null
UTF-8
Python
false
false
873
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- import time import sys import io import re import math import itertools import collections import bisect #sys.stdin=file('input.txt') #sys.stdout=file('output.txt','w') #10**9+7 mod=1000000007 #mod=1777777777 pi=3.141592653589 IS=float('inf') xy=[(1,0),(-1,0),(0,1),(0,-1)] ...
[ "clarinet758@gmail.com" ]
clarinet758@gmail.com
28a3bfc7da27cf64ba42e18b5e5435e5e8ca427d
bd9d82f616f8658d8431bedaed524647f0f2d7a5
/commands/delete_empty_dirs_fm.py
d0a52082cf2bf783c1e5d20a8dccb62bdb85588d
[]
no_license
alclass/PyMirrorFileSystemsByHash
d4331523e9948c119f98c248ca3daf3a71eb8f0b
d59d35dfef5107183309fde825ab082fbb4dc465
refs/heads/master
2023-02-20T15:38:24.432268
2023-02-17T20:58:39
2023-02-17T20:58:39
49,807,870
0
0
null
2021-12-12T21:31:28
2016-01-17T07:40:28
Python
UTF-8
Python
false
false
1,232
py
#!/usr/bin/env python3 """ delete_empty_dirs_fm.py Deletes / removes empty directory in the target dirtree. Usage: $delete_empty_dirs_fm.py <prunepath> Example: $delete_empty_dirs_fm.py "/Science/Physics/Einsteinian Relativity" Explanation: The above (hypothetical) example will remove all empty directories in...
[ "livrosetc@yahoo.com.br" ]
livrosetc@yahoo.com.br
5d77d8ac4fa0e33cef967a4ca48b0dde1c4f790f
b3729186993105603a77016d6a911932fec06630
/recruiters/admin.py
eaa3ca4b800202fd737efd8323b6ab526769977c
[]
no_license
MichalDrosio/grades
05425498bbee3873ebe7128f96227491861b1395
a6fa146ef1ac06f23f423eaf2de43c23f0faf754
refs/heads/main
2022-12-30T06:31:04.100722
2020-10-16T13:22:10
2020-10-16T13:22:10
302,673,025
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
from django.contrib import admin from recruiters.models import Recruiter # Register your models here. @admin.register(Recruiter) class RecruiterAdmin(admin.ModelAdmin): list_display = ['first_name', 'last_name']
[ "drosio.michal@gmail.com" ]
drosio.michal@gmail.com
ddeb531997001b9fb93293cd39b1753ce9651b68
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03829/s592787585.py
ebd0d0601946a683251cf998983ed53be8aa1d91
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
691
py
#!/usr/bin/env python3 import sys INF = float("inf") def solve(N: int, A: int, B: int, X: "List[int]"): tot = 0 for i in range(N-1): sub = X[i+1]-X[i] if sub*A < B: tot += sub*A else: tot += B print(tot) return def main(): def iterate_tokens(): ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f374c7cef3de091b5e831f7f98e75da674e18e19
003ffcf8144565404636f3d74590a8d6b10a90a4
/236-lowest-common-ancestor-of-a-binary-tree/236-lowest-common-ancestor-of-a-binary-tree.py
60b7ab8908ab9f3753694aa14207fbaaac761668
[]
no_license
congve1/leetcode
fb31edf93049e21210d73f7b3e7b9b82057e1d7a
ce1e802b5052da2cdb919d6d7e39eed860e0b61b
refs/heads/master
2020-05-13T19:19:58.835432
2019-05-06T00:44:07
2019-05-06T00:44:07
181,652,371
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def lowestCommonAncestor(self, root, p, q): """ :type root: TreeNode :type ...
[ "congve1@live.com" ]
congve1@live.com
54c8b17645a160598c0851c1e30eb074dbff22f8
1398346d986f4b3b79a557854ec9293690a20cc7
/Tools/BuildSlaveSupport/ews-app/ews/urls.py
2010c72b63e80288c93f9af2c823b33a8e6abc3d
[]
no_license
feltnerm/webkit
49607fc29ccb2082654f6a5eb97e4f51c78527d5
f50e47081541dcf3f69bcfc36d55867441aa3325
refs/heads/master
2023-03-18T08:41:03.727396
2020-02-10T21:14:39
2020-02-10T21:14:39
239,619,580
1
0
null
2020-02-10T21:43:21
2020-02-10T21:43:20
null
UTF-8
Python
false
false
2,056
py
# Copyright (C) 2018-2019 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and ...
[ "aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc" ]
aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc
3815b2c20d699b436ba4bc74ed8c267903c0ac7b
ddcf878cca43d49f73fd673279a97e82ced521e8
/examples/phylesystem/ott_status_report.py
0fd8436424d6ce7f141fc38e84a759947ba49e8f
[ "BSD-2-Clause", "Python-2.0" ]
permissive
OpenTreeOfLife/peyotl
ca5fcbc4f1754c3da7a25c93d89cfeaaad17057f
b50f7217966c18195c9b52be42454513ffa3e7f3
refs/heads/master
2023-08-03T14:35:46.793662
2023-07-26T20:30:08
2023-07-26T20:30:08
16,637,087
6
4
BSD-2-Clause
2023-07-24T20:02:30
2014-02-08T05:52:12
Jupyter Notebook
UTF-8
Python
false
false
2,568
py
#!/usr/bin/env python """Trying to make a report that corresponds to https://github.com/OpenTreeOfLife/germinator/wiki/Overview-of-repository-statistics """ import time start_clock = time.time() from peyotl.phylesystem.phylesystem_umbrella import Phylesystem from peyotl.nexson_syntax import get_nexml_el from peyot...
[ "mtholder@gmail.com" ]
mtholder@gmail.com
7849d81916ebfbd27f3cf13b5e2beedef0e36485
2c74bb301f1ed83b79254944183ac5a18a639fdf
/homeassistant/components/uptime/const.py
bbce80214747bdfbdf17642a0a22328308f9e3e1
[ "Apache-2.0" ]
permissive
Adminiuga/home-assistant
5bec93007ddac1a268cc359bf7e48530c5f73b38
dcf68d768e4f628d038f1fdd6e40bad713fbc222
refs/heads/dev
2023-02-22T22:03:31.013931
2022-11-09T00:27:20
2022-11-09T00:27:20
123,929,062
5
4
Apache-2.0
2023-02-22T06:14:31
2018-03-05T14:11:09
Python
UTF-8
Python
false
false
206
py
"""Constants for the Uptime integration.""" from typing import Final from homeassistant.const import Platform DOMAIN: Final = "uptime" PLATFORMS: Final = [Platform.SENSOR] DEFAULT_NAME: Final = "Uptime"
[ "noreply@github.com" ]
Adminiuga.noreply@github.com
65b07c011b7740295f45d257c0828bc529be2270
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2281/60722/273569.py
6d9e698fb32bc6a21a6cd03a7a25481fe3bf9c89
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
385
py
T=int(input()) for m in range(T): N=int(input()) string=input().split(" ") result=[] for i in range(N): string[i]=int(string[i]) for i in range(N): index=1 for j in range(i+1,N): if string[j]>string[i]: index=0 if index==1: resu...
[ "1069583789@qq.com" ]
1069583789@qq.com
86f0dcff18cacb525ba4a9744c6204c57e8a82bf
caf192dbc1ca90fee18bb4ce170d37eb14870ec5
/Chapter-5/8. Caesar cipher improved.py
e8e8417f0af034fccd1069c3f4c9c7d4851dc931
[]
no_license
Dfredude/PythonZelle
858b00f5eacce841173c64b3cecd978dedbeb145
1923fe84df604968eebc5269f23b7c0f167d55f0
refs/heads/main
2023-08-30T21:45:57.070344
2021-10-17T01:32:57
2021-10-17T01:32:57
359,041,963
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
def main(): #Get plaintext(p_text) and key(x) from the user p_text = str(input("Enter the message you'd like encrypted:\n")) key = int(input("What's the key?: ")) p_text = p_text.upper() #Create string of letters table = "abcdefghijklmnopqrstuvwxyz" full_table = table * 6 #Check if there are s...
[ "dominguezlucio@outlook.com" ]
dominguezlucio@outlook.com
84db13e8ee0d75e7c968eabc624c915b95174b9a
ba054fa1ec409011444e9c6b963309745e150d6f
/ave_SR/prueba_carga/loadStateData.py
ea4caae0a5653c6b78ca817bb8466e5022a68528
[]
no_license
berndhahnebach/XCmodels
a6500fdde253dea10ef2bb64b7ebc3dbfc2577c2
4acdd7747abd7cd71f5ef580f65e93359560e5a9
refs/heads/master
2020-04-02T23:36:36.385054
2018-10-20T16:49:21
2018-10-20T16:49:21
154,873,006
0
0
null
2018-10-26T17:52:36
2018-10-26T17:52:35
null
UTF-8
Python
false
false
7,436
py
# -*- coding: utf-8 -*- '''In this script we define default data of load cases to be used (or changed) while displaying loads or results associated to single load cases ''' from postprocess.reports import graphical_reports ''' Definition of record objects with these attributes: loadCaseName: name of the load case ...
[ "ana.Ortega.Ort@gmail.com" ]
ana.Ortega.Ort@gmail.com
bedc758c9a51a568cc9c7b658fc0ecc6f2e0d95f
9a257043e72660ba8ba64bafbd626c7cd2638fad
/demos/demo3.py
0445986140b7e45ee5705195ce62abfbcb846da7
[ "MIT" ]
permissive
desecho/django-tqdm
1b38a4955b8205ca18a215eea9ea4ba969c0baaa
053d2a259a503a574fa29960d66568feba85d25e
refs/heads/master
2023-08-07T18:40:52.643836
2022-11-01T05:08:47
2022-11-03T04:12:35
88,812,309
15
0
MIT
2023-09-01T04:02:46
2017-04-20T02:33:56
Python
UTF-8
Python
false
false
294
py
"""Demo 3 - Vanilla tqdm with default settings for comparison.""" import sys from time import sleep from tqdm import tqdm t = tqdm(total=50) for x in range(50): sleep(0.02) t.update(1) if x == 25: t.write("info") if x == 40: t.write("error", file=sys.stderr)
[ "desecho@gmail.com" ]
desecho@gmail.com
975f5ad103c66ee683287f7f8c490cd1822a58f7
cb1fb3bf87b3f7006b564a0f2acd2d68e5d5ffaa
/pyram/gsf/run.py
aa7a2ce83652d1e311fa6636ac4285f33e5b39e0
[ "GPL-3.0-only", "MIT" ]
permissive
Hoseung/pyRamAn
2778f8b12ca966e7586ebf077a964aecd1654223
f9386fa5a9f045f98590039988d3cd50bc488dc2
refs/heads/master
2021-06-22T18:35:06.478492
2021-06-05T03:26:31
2021-06-05T03:26:31
227,741,934
1
1
MIT
2020-03-04T12:39:06
2019-12-13T02:49:30
Jupyter Notebook
UTF-8
Python
false
false
1,146
py
import sys, os, numexpr import gsf print('This script calls gsf given a valid simulation output file, snaphot_file (required input)') print('gsf.py is a collection of functions that cover the computation of the gravitational potential,') print('a wrapper for the Gaussian Mixture Models of scikit-learn and various plot...
[ "hopung@gmail.com" ]
hopung@gmail.com
9670b3eacf994b8b048b41b1e35eb381b467e6fe
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/194.py
52851c11321931979d7349e69ceeae6308d70d7a
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
file_in = open('B-large.in', 'r') file_out = open('b.out', 'w') T = int(file_in.readline()) for t in range(1, T+1): n = list(file_in.readline().strip()) n = [int(i) for i in n] i = 1 k = None while(i < len(n)): if(n[i] < n[i-1]): k = i n[i-1] -= 1 break i += 1 ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
af84c590c0b37d96166d6afa222258397d069324
d9232bb31eb01eb97014bb5c769e0dd210512769
/python2/classes/person.py
49b723a7627db3a17556b313fcce5f1e07d523cc
[ "MIT" ]
permissive
hygull/pyrandocs
c5d0defff6a9465678f713deed384a097bbe0e02
31cd2a4fc23b91c692e104f533ce3c4d21698ff5
refs/heads/master
2020-04-20T10:44:59.921958
2019-02-10T10:34:13
2019-02-10T10:34:13
168,797,735
0
0
null
null
null
null
UTF-8
Python
false
false
2,163
py
from datetime import date class Person(object): """ Person ====== - A class to represent a person class """ def __init__(self, fullname, username, dob, email, profession, address): super(Person, self).__init__() self.fullname = fullname self.username = username ...
[ "rishikesh0014051992@gmail.com" ]
rishikesh0014051992@gmail.com
a80ac9bcd6682244b0f36d5f03d259cfe6d63e1c
3e06c2e64c14c3e3486cd3604268f12510fdeb56
/chatbot/actions/actions.py
a89ec89ba87288f0c31ed895a8ea90df9b8a36f2
[ "Apache-2.0" ]
permissive
exactpro/nostradamus
42296e9d4762ac6d7364a665dd5cd74117caacc8
80df847a012374ad2b702cc9f9c9cb46c1153ee7
refs/heads/master
2022-09-29T08:49:14.505795
2021-12-21T12:43:01
2021-12-21T12:43:01
162,601,150
32
8
Apache-2.0
2022-09-13T23:04:20
2018-12-20T15:58:05
TypeScript
UTF-8
Python
false
false
5,976
py
from typing import Dict, Text, Any, List, Union, Optional from json import loads, JSONDecodeError from rasa_sdk.events import EventType, SlotSet from rasa_sdk.forms import FormAction, REQUESTED_SLOT, Form from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.events import AllSlotsReset from .responses impo...
[ "litvinov.ivan44@gmail.com" ]
litvinov.ivan44@gmail.com
761a7acc9b2a233cc75164049125415fb69cae73
4c5608f20fa2580774d734d94198dd10648e4339
/test/vpp_ipip_tun_interface.py
6e5ade6eb3df3d311f1a783d8d2216bccaf237fb
[ "Apache-2.0" ]
permissive
mojtaba-eshghie/VPP-In-Situ-IOAM
3d1c3d01752a7934d2f060326674280e0bd93413
efebd91195eb1b0d98a4a1f5efd962ae79c77be6
refs/heads/master
2022-12-10T13:37:04.644952
2020-05-29T11:42:36
2020-05-29T11:42:36
194,249,816
2
0
Apache-2.0
2022-12-08T05:17:31
2019-06-28T09:50:05
C
UTF-8
Python
false
false
1,159
py
from vpp_tunnel_interface import VppTunnelInterface from ipaddress import ip_address class VppIpIpTunInterface(VppTunnelInterface): """ VPP IP-IP Tunnel interface """ def __init__(self, test, parent_if, src, dst): super(VppIpIpTunInterface, self).__init__(test, parent_if) self.src = s...
[ "mojtaba.eshghi@ut.ac.ir" ]
mojtaba.eshghi@ut.ac.ir
44346aeefb47e47c8a5bb430be1212dd468b75c0
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/WLKF79mxKnhjtrFRB_15.py
ec801d798caa324b8d8c58381efa49d628ae96e0
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
def is_good_match(lst): if len(lst) % 2 == 1: return "bad match" else: arr = [] i = 0 while i < len(lst): arr.append(lst[i] + lst[i+1]) i += 2 return arr
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
b7df96df10ecc11c9aba8c67da97b71ad4c027a4
bb150497a05203a718fb3630941231be9e3b6a32
/models/PaddleHub/hub_all_func/all_module/all_spinalnet_res50_gemstone.py
067d964d381f6ca7b6630d4f597a3c9537170d28
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
559
py
"""spinalnet_res50_gemstone""" import os import paddle import paddlehub as hub import cv2 if paddle.is_compiled_with_cuda(): paddle.set_device("gpu") use_gpu = True else: paddle.set_device("cpu") use_gpu = False def test_spinalnet_res50_gemstone_predict(): """spinalnet_res50_gemstone predict""" ...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
6971b11f655b673532cf1a066881ac27f4e2a1b9
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/eliben_deep-learning-samples/deep-learning-samples-master/ud730/assign5_cbow.py
d84f68e0e772e796b8949a82b3fde5dd5521b697
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
7,497
py
from __future__ import print_function import itertools import math import numpy as np import os import random import tensorflow as tf from six.moves import cPickle as pickle from timer import Timer from word_utils import read_data, build_dataset, report_words_distance def generate_batch_cbow(data, batch_size, contex...
[ "659338505@qq.com" ]
659338505@qq.com
357382c47b4901fd489af666983de3e30ee3f162
f00e077c1acbed3a99d73fcc0880f9eb40b396fb
/examples/menus.py
d83b87b31b75032ef36cf99a4d07d28fd9cf35d3
[]
no_license
rasql/cocos2d-tutorial
089f6ddc1d2c26f2786fb78a97e1690c4ead57ff
92bad88d51c37b30a74b32d35dac07b24a8073d6
refs/heads/master
2020-04-28T13:10:27.444561
2019-04-17T07:11:36
2019-04-17T07:11:36
175,299,934
1
4
null
null
null
null
UTF-8
Python
false
false
2,215
py
""" Raphael Holzer 16. 02. 2019 Displaying a main menu and an options menu. """ import cocos import sys from cocos.layer import * from cocos.menu import * from cocos.scene import * import pyglet pyglet.resource.path = ['../animals'] pyglet.resource.reindex() class OptionsMenu(Menu): def __init__(self): ...
[ "raphael.holzer@citycable.ch" ]
raphael.holzer@citycable.ch
3134ee871bcf3dc40961cafeb278a697a4097357
9da79ead6d0dda0b4959c3e7f59c603c085b1f8d
/tests/conftest.py
8e5d0ee28807793d1d9ea9ad37dc0a42e256095f
[ "MIT" ]
permissive
fariddarabi/fastapi-chameleon
34e99385e0b66b72e30af5c2ba16d4d65e0fb3f4
8012037480b402d5881760c4c9f01b6c7969c086
refs/heads/main
2023-08-26T08:56:00.294057
2021-11-14T06:27:25
2021-11-14T06:27:25
427,679,374
0
0
MIT
2021-11-14T06:43:05
2021-11-13T13:56:17
null
UTF-8
Python
false
false
380
py
import pytest from pathlib import Path import fastapi_chameleon as fc @pytest.fixture def test_templates_path(pytestconfig): return Path(pytestconfig.rootdir, "tests", "templates") @pytest.fixture def setup_global_template(test_templates_path): fc.global_init(str(test_templates_path)) yield # Clear ...
[ "antonio.feregrino@gmail.com" ]
antonio.feregrino@gmail.com
2080b5395f84f98f67296c859811a86d994f1c2c
dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7
/Character/23.Mayuri/Mayuri_SSS_Re.py
2c73df441ab8236d477c19d7b2c0c843f3fb5a24
[]
no_license
Lastation/RenewalAniChaos
d12a8423f4b83cb019495c59ed059451e67e0483
c3edb29af58925de55c11110ccaf927d2b5d1b39
refs/heads/master
2023-08-24T11:28:35.614844
2023-08-22T21:23:14
2023-08-22T21:23:14
246,617,812
1
0
null
null
null
null
UTF-8
Python
false
false
6,999
py
import Function as f; const s = StringBuffer(); function main(cp) { if (f.delay[cp] == 0) { if (f.count[cp] == 0) { if (f.loop[cp] == 0) { f.SquareShape(cp, 1, "Target", 50, 50); f.SquareShape(cp, 1, " Creep. Dunkelheit", 50, 50); ...
[ "ghtjd000129@naver.com" ]
ghtjd000129@naver.com
0885548cdf5bbe0cf59c4dd0eec8952cdf0b8ec4
0ec8af8988245d864c63d923e5524403090cd7e0
/mitm/gifshow/addons.py
16b3430b8b46d322369d126b417009aed7b866dc
[]
no_license
radtek/Spider
d26b685cb5e41c67c6a7ce0d632072f3cac5f061
5a419e8ec77915804d3e659631f09b19aa90a088
refs/heads/master
2022-10-30T13:13:29.736256
2020-06-11T03:34:58
2020-06-11T03:34:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
import json import mitmproxy.http from mitmproxy import ctx class Download: def response(self, flow: mitmproxy.http.HTTPFlow): if flow.request.host != 'api.gifshow.com' or flow.request.method != 'POST': return url = flow.request.url data = flow.response.content.decode() ...
[ "1733776802@qq.com" ]
1733776802@qq.com
88419024324527e193a5c6b09a90736869273d4a
db8f0b2db2fe8c9b5d2cc2e33f669028da7830a8
/multidimensional_lists/snake_moves.py
dea7167f02c1d7548342216f18fc2746f3691145
[]
no_license
yordan-marinov/advanced_python
9694184eed31a9769fa1b552b087fb7b7736af84
63ad860f356978c13f208f18502a39a8f23cd18b
refs/heads/master
2023-03-29T18:04:08.252558
2021-03-26T13:39:39
2021-03-26T13:39:39
309,930,564
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
def snake_moves() -> str: matrix = [] rows, cols = [int(i) for i in input().split()] string = list(input()) for row_index in range(rows): row = "" for col_index in range(cols): letter = string.pop(0) row += letter string.append(letter) if ro...
[ "jordanmarinov8@gmail.com" ]
jordanmarinov8@gmail.com
c01708c178cb7f4fb3e079d15cf5fe767d065105
a4653fb6c5a7a9e6db0457480e9e860c5304b2b8
/list/add_data.py
cd7bcc9d527b542225e807d86bed20426b453b10
[]
no_license
pratik-iiitkalyani/Python
c315ca1f3a2446ccb871b74026edae97daec3773
082ae6d833f151054567d737de543898ebfe1d87
refs/heads/master
2020-08-07T05:59:21.930089
2020-01-04T17:05:27
2020-01-04T17:05:27
213,324,642
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# insert method(pos, element) - add data at any position in the list fruits = ["mango","grapes"] fruits.insert(1,"orange") print(fruits) # join two list fruits1 =[1,3] c = fruits1+fruits # fruits1 element come first print(c) #extend method fruits.extend(fruits1) # data of fruits1 added in fruits print(fruits) ...
[ "ts-pratik.kumar@rakuten.com" ]
ts-pratik.kumar@rakuten.com
76b439eb64e7052b75da1d1be31c934fb3855f54
71d608a5e6cc30bef2004a4008d62143de07f50c
/plots/Techinical_indicators_for_Goldman_Sachs_last_400_days.py
dd9cb186948e5a5eedbad60bf8c3673ba5bb96d3
[]
no_license
webclinic017/quant-3
f4fc462b3964717e2435e09dd0be35548066a967
98b31d92b89da10a409947b4bea653ceb4319af6
refs/heads/master
2022-01-27T21:06:39.345394
2019-07-21T10:35:12
2019-07-21T10:35:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,705
py
import matplotlib.pyplot as plt from Data import Data, get_technical_indicators def plot_technical_indicators(dataset, last_days): ticker = dataset.columns.values[1] plt.figure(figsize=(16, 10), dpi=100) shape_0 = dataset.shape[0] xmacd_ = shape_0 - last_days dataset...
[ "syyun@snu.ac.kr" ]
syyun@snu.ac.kr
6ee1904358d0968c67a404a23c8686c263e0b35c
4007632edd395d243bca022418848a2ff54409c8
/学习/atest6.py
54471b4561bb9f98d4319de5c82e87a0702bb3bf
[]
no_license
549982170/python_learning
d80a9403cbe2eb8304aba50ff373b2b67df095e2
2c3f73718e0a6d9d4923a2e0f22ff2d4230357e9
refs/heads/master
2021-06-22T04:32:06.286691
2020-12-10T03:29:56
2020-12-10T03:29:56
101,596,379
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
# coding:utf-8 # !/user/bin/python import requests import json headers = {'Authorization': "Token 03f7409574a55e98cd33b7cc44bcbe968fd0988f"} host = "http://127.0.0.1:8000/" url = "v5/discovery/search/service/" # url = "v1/generator/test/mytest/" url = host + url data = {"keyword": "ss"} re = requests.post...
[ "549982170@qq.com" ]
549982170@qq.com
d5526e5e11970b9cf7389f8167209a965ef78e49
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/misc/show_checkpoint_vars.py
d869d35e1eb9f214c813932df22cedf891373257
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
642
py
from collections import OrderedDict import tensorflow as tf def load_checkpoint_vars(checkpoint_path): ckpt_reader = tf.train.load_checkpoint(checkpoint_path) d = OrderedDict() for x in tf.train.list_variables(checkpoint_path): (name, var) = (x[0], x[1]) d[name] = ckpt_reader.get_tensor(...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
e9a860e399fac3764ecab8ebb8b31901390468c7
491c7a6b2eeaccf9e8421c0b1ec5a2d9d77407e2
/ceres/consensus/all_coins_default_constants/chaingreen_default_constants.py
7fde41f6c0352db6f6c46ba63b01b94d2a6a068e
[ "Apache-2.0" ]
permissive
zhenglcc/ceres-combineharvester
25609627a4a16b3e3067c2e4296de82a65f3b2bd
47b685a63fb5f38ac9e2eceb9724a562feb06ee9
refs/heads/main
2023-08-25T04:49:31.531840
2021-10-30T09:06:08
2021-10-30T09:06:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,781
py
from ceres.util.ints import uint64 from ceres.consensus.constants import ConsensusConstants testnet_kwargs = { "SLOT_BLOCKS_TARGET": 32, "MIN_BLOCKS_PER_CHALLENGE_BLOCK": 16, # Must be less than half of SLOT_BLOCKS_TARGET "MAX_SUB_SLOT_BLOCKS": 128, # Must be less than half of SUB_EPOCH_BLOCKS "NUM_S...
[ "hulatang_eric@163.com" ]
hulatang_eric@163.com
ec35ca8c45e83ee2346b6490fe0798b8a2c19343
177464b6a6199b72d5f9342423fd507630e7ef8c
/setup.py
857b0b44d0307a6e4622d21dbb085cd8f1d2f053
[ "BSD-2-Clause" ]
permissive
yyr93520/sne
19f58f40840d18665fbdaff552396c0ce9ccd180
caaa2cce9b623f5ffc411ece4c9176872a672793
refs/heads/master
2021-08-23T14:48:42.730451
2017-12-05T08:52:05
2017-12-05T08:52:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,358
py
from os import path from setuptools import setup, find_packages here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, 'README.md')) as f: long_description = f.read() setup( name='learning sparse network embedding for identity user retrieval', ...
[ "wangyongqing.casia@gmail.com" ]
wangyongqing.casia@gmail.com
1418f12136d730e578a93b5499f6ad816057a019
5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e
/829.py
4fe73b828e6983e64730ae6da4385af8d2cf971f
[]
no_license
junyang10734/leetcode-python
035b12df3f7d9fc33553140d1eb0692750b44f0a
eff322f04d22ffbc4f9b10e77f97c28aac5c7004
refs/heads/master
2023-07-22T11:16:38.740863
2023-07-14T00:22:00
2023-07-14T00:22:00
189,197,380
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# 829. Consecutive Numbers Sum # Math # https://leetcode.com/problems/consecutive-numbers-sum/solution/ # runtime: O(N**0.5) class Solution: def consecutiveNumbersSum(self, N: int) -> int: count = 0 upper = ceil((2 * N + 0.25) ** 0.5 - 0.5) + 1 for k in range(1, upper): if (N -...
[ "48000364+junyang10734@users.noreply.github.com" ]
48000364+junyang10734@users.noreply.github.com
c14a556a8fc7a81e031a648406e986ae7db52409
9e5bf5e7d0bdfa4ff2aca65ac306ed801d146608
/python-06-stdlib-review/chapter-03-Algorithms/3.2-itertools/py_01_itertools.py
ed3063a35bb616b55116f551571022cacd42e8f5
[]
no_license
AuroraBoreas/python_advanced_tricks
90b07967789960beec381de676459c1e84b95860
ba0940e25eda52345a27cf9ddffed9d18fa2a031
refs/heads/master
2022-11-27T19:09:45.666017
2020-08-11T17:33:11
2020-08-11T17:33:11
275,083,831
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
""" P163-P176, itertools: iterator functions ! What? ! Why? ! How? itertools |-- merging and splitting iterators "分合" |-- converting inputs "转" |-- producing new valeus "生" |-- filtering "滤" |-- grouping data "群" |-- combining inputs ...
[ "noreply@github.com" ]
AuroraBoreas.noreply@github.com
402f8b11f4f79126a7238680b4d8b3c9291b6525
2d930aadf19b2ad6ea49725099d2f37475cd57f8
/test/functional/signrawtransactions.py
01b71fc8133e8036171530c690526d90558605d1
[ "MIT" ]
permissive
stratton-oakcoin/oakcoin
ea83774c9f6ea64adb8832770e6219ffb31edef6
fe53193a50bd3674211448f1dcc39c6f9f042bb2
refs/heads/master
2021-01-20T13:22:05.877005
2017-05-07T10:09:57
2017-05-07T10:09:57
90,477,972
1
2
null
2017-05-07T10:09:57
2017-05-06T16:58:05
C++
UTF-8
Python
false
false
5,919
py
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Oakcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test transaction signing using the signrawtransaction RPC.""" from test_framework.test_framework impor...
[ "s.matthew.english@gmail.com" ]
s.matthew.english@gmail.com
678efd8416616f304423b9610caa21b3b0aa6bb3
b70f99aee135ea27a03951e75524ede3be18d316
/test/tob_pyner/fill_fields/bin/fill/customer_bin.py
f3be56157b686a98e42d5ab2d0c2ff980456bc57
[]
no_license
zlbl/AutoTestPytestN
968e11b205d824eca0fcb73a166f21208ce405d5
a86f71a4ad50796f5031cdb40c4d5a808f421383
refs/heads/master
2020-11-28T19:27:21.056844
2019-12-24T08:25:45
2019-12-24T08:25:45
229,902,483
0
0
null
null
null
null
UTF-8
Python
false
false
3,096
py
from datetime import datetime from test.tob_pyner.fill_fields.bin.fill.update_cust_info_sql import * from test.tob_pyner.fill_fields.util.MySqlHelper import select_insert, update def generate_customer(): """生成客户id""" # ALTER TABLE pyner_customer AUTO_INCREMENT = 1000000001; select_insert(generateSQL) ...
[ "zhanwei@treefinance.com.cn" ]
zhanwei@treefinance.com.cn
78f5536e736c9e86de6b0ca888abfd4a50ce2276
22a243d9535602e2f56b4e8d78f743b6240afc94
/image_captioning/coco_caption/pycocoevalcap/bleu/bleu.py
1c3a2c5a4780bbba09e046123fced9affa79d062
[ "MIT", "BSD-2-Clause-Views" ]
permissive
RitaRamo/memory-augmented-nn
05bc969fa28225e95b38d6f1d5f0fa09a94b30db
0553df245a6976ad1c15075a65df93591e2c2632
refs/heads/main
2023-03-08T13:59:52.530224
2021-02-22T19:03:25
2021-02-22T19:03:25
309,144,074
0
1
null
null
null
null
UTF-8
Python
false
false
1,311
py
#!/usr/bin/env python # # File Name : bleu.py # # Description : Wrapper for BLEU scorer. # # Creation Date : 06-01-2015 # Last Modified : Thu 19 Mar 2015 09:13:28 PM PDT # Authors : Hao Fang <hfang@uw.edu> and Tsung-Yi Lin <tl483@cornell.edu> from bleu_scorer import BleuScorer class Bleu: def __init__(self, n=4)...
[ "rita.mparada.ramos@gmail.com" ]
rita.mparada.ramos@gmail.com
67b81c79caf9d6e7e0ca40ffe64b68a22a98c497
529694a395c88a1c0c097f80456a0eb01144131f
/tensorpac/spectral.py
994abb93382c017eed859bd9f28e43ec0298d8f4
[ "BSD-3-Clause" ]
permissive
cjayb/tensorpac
0d83c4dcec2b40c75c119f243070faacb3b220bf
e4ee18ca3faa8ad9f3cdd4f5233be224f12523af
refs/heads/master
2023-01-27T12:49:32.841580
2020-12-08T14:44:35
2020-12-08T14:44:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,860
py
"""Extract spectral informations from data.""" import numpy as np from joblib import Parallel, delayed from scipy.signal import hilbert, filtfilt from scipy import fftpack from tensorpac.config import CONFIG def hilbertm(x): """Faster Hilbert fix. x must have a shape of (..., n_pts) """ n_pts = x.sh...
[ "e.combrisson@gmail.com" ]
e.combrisson@gmail.com
f79f65f0b11e74e90409fdb59e7626a53d9164e7
a0643c775515499dd9492464384b05e82da608a8
/test_interface/CEM/marketingManagement/marketingManagement/nodeDefineRecord_test.py
64d559fe436d1d8ca8fff826bd8e7489a6ea7554
[]
no_license
EmmySmith/autoInterfaceTest
e4935e5fbe85324502f1c8b9ba33ede51cfee81b
56d31476994bfc276cc53ab32c9b27b8d2447e0b
refs/heads/master
2023-05-28T05:27:22.615719
2020-05-09T03:40:04
2020-05-09T03:40:04
262,480,416
0
0
null
2023-05-22T22:44:16
2020-05-09T03:26:26
HTML
UTF-8
Python
false
false
1,120
py
#!/usr/bin/python # coding=utf-8 import requests import unittest import json,time,random from common.public import * from mysqlHandle.common_mysql import * class ICEM_Interface(unittest.TestCase): @classmethod def setUpClass(self): self.headers = headers self.host = host self.path = "/...
[ "renming@jiekecloud.com" ]
renming@jiekecloud.com
d93b2b2d13b8c15e3517aaffa07d6e531fbcc33b
39689ee725bc7183d5d59fb34f7d2ffe5fd6ad36
/ABC_B/ABC152B.py
35c5db735fa5cc883c21d5980d6836368cc1fc04
[]
no_license
yu5shi8/AtCoder
b6eb920a9046bdfa98012dd3fc65f75f16214ffe
f9ca69001ece8379e3a70c993c44b540f8be2217
refs/heads/master
2021-06-15T17:58:07.027699
2021-03-20T14:04:03
2021-03-20T14:04:03
177,757,053
0
0
null
null
null
null
UTF-8
Python
false
false
221
py
# -*- coding: utf-8 -*- # B - Comparing Strings # https://atcoder.jp/contests/abc152/tasks/abc152_b a, b = map(int, input().split()) if a <= b: print(str(a) * b) else: print(str(b) * a) # 23:32 - 23:36(AC)
[ "royal_unicorn411@hotmail.co.jp" ]
royal_unicorn411@hotmail.co.jp
b654a1eafce5e94c9b993cdbd1877fa3a05eafcb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03805/s743667282.py
877dfca86e7d05d94725d8483f03ad1b21f93854
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
from collections import deque def dfs(G, visited, s, n, ans): # すべての頂点を訪れた場合の処理 if all(visited) : ans += 1 return ans # 次の頂点の探索 for i in G[s] : if visited[i] == False : visited[i] = True ans = dfs(G, visited, i, n, ans) visited[i] = False return ans # グラフGの入力 n,m = map(int,inpu...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
66c9edb88fbf7c5955f202577b420c7e013304bd
8d3adc6867d80a75ac12984f52c78938221404a4
/Bio/_utils.py
77144e9015a72b4147ce67e6833712d851ccd8c7
[ "LicenseRef-scancode-biopython" ]
permissive
chapmanb/biopython
407b17f44f599d71818c5e16bd86a44cf323e062
cade0aec7ecff7d052c42040f5cae8036e297941
refs/heads/master
2020-12-29T03:07:42.778627
2013-07-09T09:36:26
2013-07-09T09:36:26
412,030
1
0
null
null
null
null
UTF-8
Python
false
false
3,568
py
# Copyright 2010 by Eric Talevich. All rights reserved. # Copyright 2012 by Wibowo Arindrarto. All rights reserved. # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. """Common utility functions for var...
[ "p.j.a.cock@googlemail.com" ]
p.j.a.cock@googlemail.com
ccd23976c670e92724953d4e4f62a84424828fb2
0bce7412d58675d6cc410fa7a81c294ede72154e
/Python3/0287. Find the Duplicate Number.py
6fdd5f3ec43b8bdf3b456532302c0ad8a9ed6823
[]
no_license
yang4978/LeetCode
9ddf010b0f1dda32cddc7e94c3f987509dea3214
6387d05b619d403414bad273fc3a7a2c58668db7
refs/heads/master
2022-01-15T04:21:54.739812
2021-12-28T12:28:28
2021-12-28T12:28:28
182,653,666
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
class Solution: def findDuplicate(self, nums: List[int]) -> int: left = 1 right = len(nums)-1 while left<right: mid = left + (right-left)//2 temp = 0 for i in nums: temp += (i<=mid) if temp<=mid: left = mid + 1 ...
[ "noreply@github.com" ]
yang4978.noreply@github.com
b3621c42eac9b9c4eb104fc6c10c7e9dd8bc2186
bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6
/AtCoder/abc/142d_2.py
aaf992c2ab19b95ac0e17785ef21ba969269e9b6
[]
no_license
y-oksaku/Competitive-Programming
3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db
a3ff52f538329bed034d3008e051f30442aaadae
refs/heads/master
2021-06-11T16:14:12.635947
2021-05-04T08:18:35
2021-05-04T08:18:35
188,639,647
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
A, B = map(int, input().split()) def primeCount(N): R = int(N**(0.5)) + 1 # 素数の範囲 primes = {} # 素数のリスト n = N for num in range(2, R): primes[num] = 0 while n % num == 0: n //= num primes[num] += 1 if n > 1 : primes[n] = 1 return { key : val for k...
[ "y.oksaku@stu.kanazawa-u.ac.jp" ]
y.oksaku@stu.kanazawa-u.ac.jp
731ff8381159eac4f3c4c5622d279515b577b095
74565d83bccccfae0d57d0e947f12db2bcae2999
/phi/tests/test_nodsl.py
a9258eb9895c9db82cb8352393e4fd3274fe940a
[ "MIT" ]
permissive
iCodeIN/phi
2fe9eaaf21615381e1b1815853adeb76a79fb696
87fd7100a76f823232f4fd8360498b4b80675265
refs/heads/master
2023-03-21T07:50:28.218564
2018-08-13T14:14:07
2018-08-13T14:14:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
from phi.dsl import Expression P = Expression() class TestNoDSL(object): def test_seq(self): f = P.Seq( P + 2, P * 2 ) assert 10 == f(3) def test_branch(self): f = P.List( P + 2, P * 2 ) assert [5, 6] == f(3)...
[ "cgarcia.e88@gmail.com" ]
cgarcia.e88@gmail.com
df097ee6147b01ee82e411a12f00ca1fdff8c780
773e6eefd35d3fe8f86faed6f8de0470e9da722f
/tests/wire/test_msg_mempool.py
d8d4a0ef565bc4c7b0fc63cfe915eb85e3ed4c35
[]
no_license
imnisen/pybtcd
5a9e13b0461e41958e3d1c948100e20c92459d43
b89ec2063348805755d9f2c474a1494f0fb6ef46
refs/heads/master
2020-03-28T03:11:01.877408
2019-11-05T07:07:26
2019-11-05T07:07:26
147,625,874
2
2
null
2019-11-05T07:07:27
2018-09-06T06:09:40
Python
UTF-8
Python
false
false
2,180
py
import unittest import io from wire.msg_mempool import * class TestMsgMemPool(unittest.TestCase): def setUp(self): pver = ProtocolVersion oldPver = BIP0035Version - 1 msgMemPool = MsgMemPool() msgMemPoolEncoded = bytes([]) self.tests = [ # Latest protocol vers...
[ "imnisen@gmail.com" ]
imnisen@gmail.com
71ce5358015438612bd7c9b6178dddfd3a3af130
5dfb9ca5e0c8cb4cb7a7a92d6f6a34b34a841869
/LeetCodeSolutions/python/211_Add_and_Search_Word_Data_structure_design.py
6fdd8ce15c0c90bf5632e2ebbd8b40ec1c9fee03
[ "MIT" ]
permissive
ChuanleiGuo/AlgorithmsPlayground
2f71d29e697a656562e3d2a2de783d964dc6a325
90b6287b742c8bfd3797540c408d679be2821a40
refs/heads/master
2021-01-11T18:30:43.218959
2018-11-19T02:20:31
2018-11-19T02:20:31
79,550,052
1
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
class WordDictionary(object): def __init__(self): """ initialize your data structure here. """ self.root = {} def addWord(self, word): """ Adds a word into the data structure. :type word: str :rtype: void """ node = self.root ...
[ "chuanleiguo@gmail.com" ]
chuanleiguo@gmail.com
a714dbeb5f32820c71f3d0aa1e6daf2db3de0648
8ceade7e485606cd2d2ea09a996f1e71c1b76f76
/ejerciciosMejorados/p5.py
92e2b94263a31a9ef3c24c00365f32c3cff6ed6a
[]
no_license
jesustr20/test
bdc9a0ffd313e5aad9e63b5df5e87abc2a7d9419
7439f1466995356a709066208fa1a9de21b2266b
refs/heads/master
2023-01-05T17:58:48.601151
2020-11-01T19:24:35
2020-11-01T19:24:35
306,782,231
0
0
null
null
null
null
UTF-8
Python
false
false
1,548
py
#Pregunta 5: # Escribir una funcion sum() y una función multip() que sumen y multipliquen respectivamente # todos los números de una lista. # Por ejemplo: sum([1,2,3,4]) debería devolver 10 y multip([1,2,3,4]) debería devolver 24. #Funcion que genera una lista de un rango def listas(rango): #Genera la lista a p...
[ "jesus.tr61@gmail.com" ]
jesus.tr61@gmail.com
9b29f05b1777653afa4489a9428e2fa3ad119fb4
8447b5f83be675c5de085d8824783ec0739690b0
/mmdet/ops/roi_align/roi_align.py
875e63d5b6432b257a7ea81289220762413d2c1b
[]
no_license
jie311/mmdetection_lite
bca7070ad88a04e4f6650292642f98f24f7ebeba
1c151a7c44759d022fea1d85fb036a5b39409449
refs/heads/master
2022-04-19T06:18:42.282754
2020-04-13T07:41:10
2020-04-13T07:41:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,068
py
from torch import nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from . import roi_align_cuda class RoIAlignFunction(Function): @staticmethod def forward(ctx, features, rois, ...
[ "760997646@qq.com" ]
760997646@qq.com
e6d28bb201f92f5cbd6c7cc8c1a7695415e2e239
8c162bcf0576316d1ce070e4a70f257a01c7ce4c
/piwheels/logger/__init__.py
4f9f281a79e3aaa815449c41cebba5d020ffb514
[ "BSD-3-Clause" ]
permissive
Lauszus/piwheels
8e4a73b0a76715b45ab3586998c78fa3beb26b9f
e51b979f11c1d7a199c9f461312f959f23b5b979
refs/heads/master
2020-03-23T16:14:27.888940
2018-05-13T17:08:45
2018-05-13T17:08:45
141,799,946
0
0
null
2018-07-21T09:44:31
2018-07-21T09:44:31
null
UTF-8
Python
false
false
7,857
py
#!/usr/bin/env python # The piwheels project # Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall> # Copyright (c) 2017 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: #...
[ "dave@waveform.org.uk" ]
dave@waveform.org.uk
d15144bfccfa3fec3d6c39d294d7d9f9379b012b
3481023b43028c5ee9520a8be0978e914bdcb548
/manga_py/base_classes/params.py
5d90a0761f6bf49a2ebe1be019ec60ff77f0738c
[ "MIT" ]
permissive
manga-py/manga-py
18f6818d8efc96c3e69efee7dff3f3d6c773e32a
0db97123acab1f2fb99e808b0ba54db08977e5c8
refs/heads/stable_1.x
2023-08-20T03:04:06.373108
2023-04-16T08:28:15
2023-04-16T08:28:15
98,638,892
444
56
MIT
2023-07-27T13:21:40
2017-07-28T10:27:43
Python
UTF-8
Python
false
false
1,394
py
from logging import error from urllib.parse import urlparse class ProviderParams: @property def content(self): content = self._storage.get('main_content', None) if content is None: content = self.get_content() return content @property def manga_name(self) -> str: ...
[ "sttv-pc@mail.ru" ]
sttv-pc@mail.ru
c0729505d6bf9a498b456982548aa120de9d51a6
4cef47ddd432f2ab814a03fd89112b1dc8b5ab27
/flow/message.py
4c6579ea3c4a1e94e634e4ac2e1ed647ac980500
[ "MIT" ]
permissive
h00shi/flow
279d621cda72a8d2392c2dbe7735ce2ab6b39380
ef45bdd4181d385b1b01042e9ce0b48e4cdc2318
refs/heads/master
2020-09-24T06:50:01.605337
2017-07-05T17:53:50
2017-07-05T17:53:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
# -*- coding: utf-8 -*- # ''' Allows using DOLFIN's indented block messages with 'with', i.e., with Message('hello world'): # do something ''' from dolfin import begin, end class Message(object): def __init__(self, string): self.string = string return def __enter__(self): ...
[ "nico.schloemer@gmail.com" ]
nico.schloemer@gmail.com
d127705f9dd239922fbb76363c5cc3ca519736c3
85c82274a3888fa61795bb0600ab96eaf7665b6a
/meet1/F_max3Angka.py
fa0a3546b66bbd03e24bf5cd643fb372eb6d9263
[]
no_license
refeed/StrukturDataA
8e5a214569f41b19c05842d003ede5941800482a
4d3b77bbd28158f1f1e64a49b8e90da731859407
refs/heads/master
2023-06-03T08:22:12.442536
2021-07-01T03:24:29
2021-07-01T03:24:29
360,478,966
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
''' Max 3 angka Batas Run-time: 1 detik / test-case Batas Memori: 32 MB DESKRIPSI SOAL Buatlah program yang menerima 3 buah input nilai, outputkan nilai paling besar diantara ketiga input tersebut. PETUNJUK MASUKAN Input terdiri atas 3 angka dalam 1 baris PETUNJUK KELUARAN Outputkan angka terbesar dari 3 angka yan...
[ "rafidteam@gmail.com" ]
rafidteam@gmail.com
1611a857f00cc4e23f65789639b9f6eef36aefe9
304f6ea579c2bda6f2a0a0d93c0ffcf332082450
/since_JungleWeek06/정확한 순위.py
0d5fb00f7b7be52e32e728b87a77981421fde412
[]
no_license
Jeongseo21/algorithm
941ae18bb17f6d9a0f3190d40f5f0ae212ffe0f6
0fbda0e320ca6616dfe21680601521549ed019e4
refs/heads/master
2023-04-17T21:37:25.607255
2021-04-25T13:51:02
2021-04-25T13:51:02
276,335,142
1
1
null
null
null
null
UTF-8
Python
false
false
907
py
import sys # import numpy # sys.stdin = open("input.txt", "r") input = sys.stdin.readline INF = int(1e9) N, M = map(int, input().split()) graph = [[INF for _ in range(N+1)] for _ in range(N+1)] #graph = numpy.array(graph) for i in range(1, N+1): for j in range(1, N+1): if i == j: graph[i][j] =...
[ "jeongseo21@gmail.com" ]
jeongseo21@gmail.com
6fa22ce338d3f8d57ecec002067180eaafbed94e
4908b1d34d69c1cb652f25049552562574e1075f
/2020/Day-12/Rain_Risk/vector.py
cfe2acf5df39b6354ac84b44bc21a18195edfe11
[ "MIT" ]
permissive
sreekesari-vangeepuram/adventofcode
3d4ad98a25a30640182d928538b421e00ad8259d
645531be0208affe042ac0328105b9ef3cfc9dbf
refs/heads/main
2023-07-26T13:36:03.036721
2021-08-11T08:27:25
2021-08-11T08:27:25
317,850,039
1
0
MIT
2021-08-11T08:27:26
2020-12-02T12:08:13
Go
UTF-8
Python
false
false
2,493
py
class vector: def __init__(self, x, y, pointing_direction): self.x = x self.y = y self.direction = pointing_direction def get_pos(self): return (self.x, self.y, self.direction) def change_position(self, ins): d = self.direction if d == 'E': if ins[0] == 'E' or ins[0] == 'F': self.x += ins[1] eli...
[ "kesari.vangeepuram@gmail.com" ]
kesari.vangeepuram@gmail.com
980323cf75ba26bfab0963870210bfedc895fa2d
ecff4b18a49ce5952c5f9125dc027cebdecf10a8
/azure-mgmt-resource/azure/mgmt/resource/resources/models/dependency.py
c5db8825cb5df20c1b8bb96a3551b7981d632c2e
[ "Apache-2.0" ]
permissive
jehine-MSFT/azure-sdk-for-python
a56c18020ecd5f4c245c093fd6a33e1b1d7c95e1
6d0f94b39406eab374906c683bd2150217132a9c
refs/heads/master
2020-12-06T19:17:38.153819
2016-04-08T21:03:16
2016-04-08T21:03:16
55,809,131
0
0
null
2016-04-08T20:54:00
2016-04-08T20:54:00
null
UTF-8
Python
false
false
2,007
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
5002a8c9e0c3a567b44de79a2522f9cb8e1dd214
614cd6a5336a6fe177d13a7cfd841a344f5d7a97
/albumy/albumy/to_test/test.py
3511682210d8dcaa4aef6ab8852c1c93a666dd3d
[ "MIT" ]
permissive
shidashui/MyFlaskWeb
40bb80dea6aa9cc2729ee8e767062cbc519a472a
b861c76813e15250036477fca6570cef1d957af1
refs/heads/master
2022-12-10T08:32:53.657838
2019-08-26T15:29:03
2019-08-26T15:29:03
193,836,836
3
0
MIT
2022-12-08T05:55:00
2019-06-26T05:42:12
JavaScript
UTF-8
Python
false
false
1,327
py
import os import PIL from PIL import Image from itsdangerous import Serializer def A(): a = Serializer('mima') token_a = a.dumps('test') print(token_a) b = Serializer('mima') c = b.loads(token_a) print(c) roles_permissions_map = { 'Locked': ['FOLLOW', 'COLLECT'], ...
[ "164635470@qq.com" ]
164635470@qq.com
0c5c2c43ad0c32f185649374d6b21c1754c06ef4
113f803b721984992bdc8f2177056b0f60de546a
/ex32/ex32.py
36131ac8165a1e6521e3dcd80f8cca1ae549099b
[]
no_license
Na-Young-Lee/16PFA-Na-Young-Lee
ddb215b0dc9cb0572b96aa90d8db71fbbea13c13
6cdcea12fd46a5218f9b6a7cd4ac5ee5e347cbb7
refs/heads/master
2021-01-17T15:15:27.429510
2016-06-01T11:37:20
2016-06-01T11:37:20
53,923,583
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
# -*- coding:utf8 # http://learnpythonthehardway.org/book/ex32.html the_count = [1, 2, 3, 4, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] # this first kind of for-loop goes through a list #loop for number in the_count: print("This is count %d" % number)...
[ "CAD Client" ]
CAD Client
e5153619e02b587888247f69275781bbf39dd455
a1951be7f25ad3dd7f1b6ae186d95dcaca2f0c0c
/selfpy/chap10/classvar_basic.py
a1ae05904dffbb1780c5d545b697f34855fcd116
[]
no_license
kazscape/teach_yourself_python
7742371c074e434ad77f4dd866f426d233b08e8b
52802c12a99edaf9d061a14b34f09c0ff60bb190
refs/heads/master
2023-02-03T08:46:44.280067
2020-12-25T08:45:58
2020-12-25T08:45:58
323,297,721
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
class Area: PI = 3.14 @classmethod def circle(cls, radius): return radius * radius * cls.PI if __name__ == '__main__': print(Area.PI) print(Area.circle(10))
[ "yamauchi.kazuharu@fixer.co.jp" ]
yamauchi.kazuharu@fixer.co.jp
96c547b852180157735d158a6db1edc39912fd5a
622079460ebb4ba9b80f55624622e45fcbf064d1
/DataAnalysis/day1_5/sec01.py
a64bf9b1c39d80d6886234dff8b43729c0d6e730
[ "MIT" ]
permissive
yunjung-lee/class_python_numpy
60bf24442e3f72a002ef25566e6982303dc0e12d
589817c8bbca85d70596e4097c0ece093b5353c3
refs/heads/master
2020-04-02T09:50:08.854798
2018-10-23T10:53:00
2018-10-23T10:53:00
154,311,824
0
0
null
null
null
null
UTF-8
Python
false
false
4,206
py
count = '23,456' #print(int(count)) #ValueError: invalid literal for int() with base 10: '23,456' => "," 때문에 숫자로 인식 못해서 생기는 에러 import re from bs4 import BeautifulSoup html = """ <ul> <li> <a href="www.naver.com">naver</a></li> <li> <a href="https://www.naver.com">naver</a></li> <li> <a href="https://...
[ "python966@gmail.com" ]
python966@gmail.com
c55f0e64b63446f992db9226cc9d25f28a8f4509
25219f56a7958d2fdbd2c08172ef7b91e31e2b5a
/calibration_scalars/PFISR/201302/PLCal30/20130221.003/do_Cal.py
9dad646897bf2fa7ec6ee3566a88572613e98052
[]
no_license
amisr/overspread
d82d3adc8f6d4981b3b13f54e39e69411711e3ee
c26a736c9b356f55fd7845ad5a093504e684f434
refs/heads/main
2023-04-03T10:47:13.975207
2021-03-30T23:43:22
2021-03-30T23:43:22
431,037,982
1
0
null
2021-11-23T19:02:13
2021-11-23T09:29:47
Python
UTF-8
Python
false
false
6,557
py
import datetime import os import numpy import scipy import matplotlib.pyplot as plt import tables from scipy.optimize import leastsq import scipy.io as sio def get_BS_angle(az,el): az_bs = 15.0*scipy.pi/180.0 el_bs = 74.0*scipy.pi/180.0 k = numpy.array([[scipy.cos(el)*scipy.cos(az)], ...
[ "fitter@heaviside.local" ]
fitter@heaviside.local
9933ea10946149d245387f2a9a519a90495e4858
155cbccc3ef3b8cba80629f2a26d7e76968a639c
/thelma/repositories/rdb/schema/tables/target.py
c21e56dfe6f9f876b42d6da2123e6a18e7e5cd8a
[ "MIT" ]
permissive
papagr/TheLMA
1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78
d2dc7a478ee5d24ccf3cc680888e712d482321d0
refs/heads/master
2022-12-24T20:05:28.229303
2020-09-26T13:57:48
2020-09-26T13:57:48
279,159,864
1
0
MIT
2020-07-12T22:40:36
2020-07-12T22:40:35
null
UTF-8
Python
false
false
868
py
""" This file is part of the TheLMA (THe Laboratory Management Application) project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Target table. """ from sqlalchemy import Column from sqlalchemy import ForeignKey from sqlalchemy import Integer from sqlalchemy import Table __docformat__...
[ "fogathmann@gmail.com" ]
fogathmann@gmail.com
0fcf8214c7084c69e3dd3f68532b58fcb26ac6e3
bc54edd6c2aec23ccfe36011bae16eacc1598467
/simscale_sdk/models/one_of_velocity_field_selection_velocity_type.py
03a7e6c7257973e8d346a387920c8da883e7e035
[ "MIT" ]
permissive
SimScaleGmbH/simscale-python-sdk
4d9538d5efcadae718f12504fb2c7051bbe4b712
6fe410d676bf53df13c461cb0b3504278490a9bb
refs/heads/master
2023-08-17T03:30:50.891887
2023-08-14T08:09:36
2023-08-14T08:09:36
331,949,105
17
5
null
null
null
null
UTF-8
Python
false
false
4,118
py
# coding: utf-8 """ SimScale API The version of the OpenAPI document: 0.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from simscale_sdk.configuration import Configuration class OneOfVelocityFieldSelectionVelocityType(object): """NOTE: This ...
[ "simscale" ]
simscale
f74f89014de6b788ad040b5d142c3e87489d3fb6
990b92264109dc01dbfddeb6f5e75675037fd829
/app/api/json_responses.py
aa53ddbc8b10a312799484ff3ca05a950f83b22d
[ "Apache-2.0" ]
permissive
CitoEngine/cito_engine
20efa189abab1b684b60b260c1ea9ed16f6ea0f2
95852dd109d86a344726d7b11ed1132d4e48426b
refs/heads/master
2020-05-21T15:04:24.011603
2019-02-08T04:51:42
2019-02-08T04:51:42
17,123,947
9
13
Apache-2.0
2019-02-08T04:51:43
2014-02-24T03:17:04
Python
UTF-8
Python
false
false
647
py
import json from django.http import HttpResponseBadRequest, HttpResponse def json_error(msg): return HttpResponseBadRequest('{"status": "error", "reason": "%s"}' % msg, content_type="application/json") def json_ok(msg): return HttpResponse('{"status": "ok", "reason": "%s"}'...
[ "cyrus@extremeunix.com" ]
cyrus@extremeunix.com
3a31448503cb98d12724ebcc831f4fb83774e782
2f989d067213e7a1e19904d482a8f9c15590804c
/lib/python3.4/site-packages/storages/backends/mogile.py
5a31f663af9af93674069dd8a01eb71499f442fa
[ "MIT" ]
permissive
levabd/smart4-portal
beb1cf8847134fdf169ab01c38eed7e874c66473
2c18ba593ce7e9a1e17c3559e6343a14a13ab88c
refs/heads/master
2023-02-18T05:49:40.612697
2022-08-02T09:35:34
2022-08-02T09:35:34
116,001,098
0
1
MIT
2023-02-15T21:34:01
2018-01-02T10:00:07
Roff
UTF-8
Python
false
false
3,904
py
from __future__ import print_function import mimetypes from django.conf import settings from django.core.cache import cache from django.utils.text import force_text from django.http import HttpResponse, HttpResponseNotFound from django.core.exceptions import ImproperlyConfigured from storages.compat import urlparse,...
[ "levabd@gmail.com" ]
levabd@gmail.com
73a03dbe897ddbbceb91c33f3e51473d20761723
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_438/run_cfg.py
143de067caaee38065ed63af168dcc03c9de543a
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,537
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/DYJetsToLL_M-50_TuneZ2Star_8TeV-madgraph-tarball/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/V5_B/PAT_CMG_V5_16_0_1377544840/HTT_24Jul_newTES_m...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
26bfaaa35b9290e0391bef9a2347fed6f0d202b4
ed6c149d5d661c034bc59a7811104a69cfd3fd0e
/version2/calculate_STD_Month.py
0b9d07bf243d922158c81c9f58bc2e26962bffaf
[]
no_license
changshun/Wind_Python
edcc87bd4c076fadd8d77a1d3e79a84b29f35b8f
f97c33d4cbb8607c9d86f46a4990dac862dff361
refs/heads/master
2021-04-06T08:31:43.347857
2017-11-16T02:53:59
2017-11-16T02:53:59
124,359,994
1
4
null
2018-03-08T08:21:38
2018-03-08T08:21:38
null
UTF-8
Python
false
false
5,937
py
#coding=utf-8 import sys import MySQLdb import datetime import pandas as pd from deal_with_day_data import * reload(sys) sys.setdefaultencoding('utf8') def calculate_daily_return_date_list(stock_code): all_close_price_list,all_date_list = get_date_close_list(stock_code,table_name="table_day_data") ...
[ "584392383@qq.com" ]
584392383@qq.com
1d636b5b499388ffc28a88f1f1e0afbf042662d1
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/ipykernel-4.3.1-py27_0/lib/python2.7/site-packages/ipykernel/parentpoller.py
227614d44e0cf146bcb8c42edf673ea0ab86a5be
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
3,969
py
# Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. try: import ctypes except: ctypes = None import os import platform import signal import time try: from _thread import interrupt_main # Py 3 except ImportError: from thread import interrupt_main # Py 2...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
283ed7d85ec7bd24039b2553c5fb906115ec1c38
ad212b92beac17c4d061848c1dcd443d02a168c8
/python/1641_count_sorted_vowel_strings/dfs.py
e1bbd040e0ec74005cea31f9eda206125a247880
[]
no_license
21eleven/leetcode-solutions
5ec97e4391c8ebaa77f4404a1155f3ef464953b3
35c91e6f5f5ed348186b8641e6fc49c825322d32
refs/heads/master
2023-03-03T10:22:41.726612
2021-02-13T21:02:13
2021-02-13T21:02:13
260,374,085
0
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
""" 1641. Count Sorted Vowel Strings Medium Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lexicographically sorted. A string s is lexicographically sorted if for all valid i, s[i] is the same as or comes before s[i+1] in the alphabet. Example 1: ...
[ "noahlidell@gmail.com" ]
noahlidell@gmail.com
decb665f6168dde3b4141a3dbdd4194e8aecb9ce
ddd466457316662a1455bae429740eb3c8411444
/python_bbq/file_handling/bytearray_write.py
27bc2693f0830c56592588d15585fbaf6fe72429
[]
no_license
fingerman/python_fundamentals
9ef46e51d6e9b8328e9c949fa0f807f30bd6e482
1fb604220922530d1171200a3cf3a927c028a6ed
refs/heads/master
2023-01-09T12:02:26.712810
2020-01-22T16:12:32
2020-01-22T16:12:32
151,728,846
0
0
null
2022-12-27T15:34:12
2018-10-05T13:58:10
Python
UTF-8
Python
false
false
243
py
from os import strerror data = bytearray(ord('a')) for i in range(len(data)): data[i] = 10 + i try: bf = open('file.bin', 'wb') bf.write(data) bf.close() except IOError as e: print("I/O error occurred: ", strerr(e.errno))
[ "adamov.george@gmail.com" ]
adamov.george@gmail.com
fe5794ead0dddb72d93f5b6d535c961ab22d2382
d57c59070bb167a167b95971e32731c48587cb59
/backend/wallet/api/v1/serializers.py
38828a3947e6a817d0937cd1a1c5c264662471dd
[]
no_license
crowdbotics-apps/blind-school-27613
2ec76994185f6f15bd8ec0fe48b4a86f10e8a882
ad3549e18f1841bdac12a558aa59fa97cf9a6691
refs/heads/master
2023-05-11T19:18:34.670974
2021-05-31T10:12:31
2021-05-31T10:12:31
372,459,032
0
0
null
null
null
null
UTF-8
Python
false
false
875
py
from rest_framework import serializers from wallet.models import ( PaymentTransaction, PaymentMethod, TaskerWallet, TaskerPaymentAccount, CustomerWallet, ) class TaskerPaymentAccountSerializer(serializers.ModelSerializer): class Meta: model = TaskerPaymentAccount fields = "__al...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
e22248db541b874c00354eccfb4666f37e0fc02e
d864fd6c3d1452aa3cffb31ecb20fc14c46a5e91
/ml_logger/log_client.py
842e1532bb5078d31c8913b4ce27366ccaeac714
[]
no_license
jonasrothfuss/ml_logger
2c9e5592eb24bc70ae80e8d0c9e08e6e7054f3d7
2000b38177e3c4892e4fee74d769c1fc0a659424
refs/heads/master
2020-03-26T20:42:15.846183
2019-06-03T09:09:58
2019-06-03T09:09:58
145,340,704
1
0
null
2018-08-19T22:03:04
2018-08-19T22:03:03
null
UTF-8
Python
false
false
3,940
py
import os from concurrent.futures import ThreadPoolExecutor from requests_futures.sessions import FuturesSession from ml_logger.serdes import serialize, deserialize from ml_logger.server import LogEntry, LoadEntry, PingData, LoggingServer, ALLOWED_TYPES, Signal, LogOptions, \ RemoveEntry class LogClient: loca...
[ "yangge1987@gmail.com" ]
yangge1987@gmail.com
b8735dea132ec85a36c4534b5df4368acaafad08
eeb469954b768095f2b8ad2376f1a114a3adb3fa
/119.py
bfe18b6ba71c7a352c3f8459e86deaca6bf97484
[ "MIT" ]
permissive
RafaelHuang87/Leet-Code-Practice
ef18dda633932e3cce479f7d5411552d43da0259
7754dcee38ffda18a5759113ef06d7becf4fe728
refs/heads/master
2020-07-18T20:09:10.311141
2020-02-11T09:56:39
2020-02-11T09:56:39
206,305,113
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
class Solution: def getRow(self, rowIndex: int) -> [int]: res = [] for i in range(rowIndex): temp = [1] * (i + 1) res.append(temp) for j in range(1, i): res[i][j] = res[i - 1][j - 1] + res[i - 1][j] return res[-1]
[ "rafaelhuang@163.com" ]
rafaelhuang@163.com
894ab3357bb45c22c65174d315ee30e93b7d6729
96ec8ea87fb2cfdd2d850a0471c9820f92152847
/九章算法/动态规划/Longest Common Subsequence.py
84c87a0e25d7fdbdd5276d45c2bada2c2fc4d0a7
[]
no_license
bitterengsci/algorithm
ae0b9159fd21cc30c9865f981f9c18cf9c6898d7
bf70d038b70c51edc6ddd6bfef1720fb5f9f2567
refs/heads/master
2023-08-10T10:22:18.774232
2023-07-31T21:04:11
2023-07-31T21:04:11
186,261,880
95
46
null
2023-07-31T21:04:12
2019-05-12T13:57:27
Python
UTF-8
Python
false
false
843
py
class Solution: """ @param A: A string @param B: A string @return: The length of longest common subsequence of A and B """ def longestCommonSubsequence(self, A, B): dp = [[0] * (len(B)+1) for _ in range(len(A)+1)] # initialization for j in range(len(B)+1): ...
[ "yanran2012@gmail.com" ]
yanran2012@gmail.com
2e828986bbdd0616c1f339a48799eba5fca072c6
422943b00b6dab14ce72e6ed9e92c1c5c02883b0
/updateTests.py
bf89b1d620c9e6705fe1c16beba02c1e9dc8f5d3
[]
no_license
grid-control/testsuite
412c376325feae3c744fd4ca4c32f254ffd9e6df
3d2a8d3234dc1c83f7e2f71aa5704f8abe0d42de
refs/heads/master
2021-08-06T08:16:12.209352
2019-07-11T13:37:56
2019-07-11T13:37:56
96,886,340
0
1
null
2017-08-14T12:09:12
2017-07-11T11:33:42
Shell
UTF-8
Python
false
false
943
py
import os for (root, dirs, files) in os.walk('.'): def findTestFwk(dn): if 'testfwk.py' in os.listdir(dn): return dn return findTestFwk(os.path.join(dn, '..')) for fn in files: if fn.startswith('TEST_') and fn.endswith('.py'): fn = os.path.join(root, fn) print(fn) lines = open(fn).readlines() f...
[ "stober@cern.ch" ]
stober@cern.ch
5e42f67ea15cac565bc2f72d4be281f11441b0a7
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R2/benchmark/startQiskit65.py
9ea013b14becf0bac967ec4fc7786a2d686f9843
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
5,433
py
# qubit number=3 # total number=10 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
00f0ed14558402c0d3ef771f6e79a3f3375bd9a6
0316925e2bad29d60f0dcccdf91277fd8f03ef09
/q015.py
286af0b71dec819126a696d98ce11b5eb6fe2589
[]
no_license
nomadlife/project-euler
426614df7b2c9368a4db59954dc1df2902a44d6b
9bc09843637a361fa93c7abb20ac990f973b08e5
refs/heads/master
2021-07-03T00:52:07.760948
2021-06-26T14:28:32
2021-06-26T14:28:32
100,214,096
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
# Q015 Lattice paths # How many such routes are there through a 20×20 grid? def grid(r,c): if r==1 or c==1: return c+r if (r,c) not in cache: cache[r,c] = grid(r,c-1) + grid(r-1,c) return cache[r,c] cache={} grid(20,20)
[ "joonwoo3816@gmail.com" ]
joonwoo3816@gmail.com
13c46f9d5b80299f0706ab94baace17772ea3776
23bdb9a3102b9aad3ec20419593bbc3b1b7b3f66
/piecrust/constants.py
0b2fbbcf2a285f5d0c06563f396591e71adbc8c9
[ "BSD-3-Clause" ]
permissive
toastdriven/piecrust
ec961998627145c0a6f312137564b1737fdb8113
95dadd7614a2fe7fe9186243f998f66c0909eb21
refs/heads/master
2015-08-06T10:31:46.352977
2011-10-18T07:55:18
2011-10-18T07:55:18
2,465,163
19
1
null
null
null
null
UTF-8
Python
false
false
481
py
# Enable all basic ORM filters but do not allow filtering across relationships. ALL = 1 # Enable all ORM filters, including across relationships ALL_WITH_RELATIONS = 2 # Ripped from Django. QUERY_TERMS = dict([(x, None) for x in ( 'exact', 'iexact', 'contains', 'icontains', 'gt', 'gte', 'lt', 'lte', 'in', 'sta...
[ "daniel@toastdriven.com" ]
daniel@toastdriven.com
e18ab1abab1a1499c8df298fcb95380e0105243f
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc039/C/4891512.py
2563e2d210a483f9606a5a131073753a575e0dcf
[]
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
427
py
def pianist_takahashi(S: str)->int: scales = [ 'Do', 'Do#', 'Re', 'Re#', 'Mi', 'Fa', 'Fa#', 'So', 'So#', 'La', 'La#', 'Si' ] keyboard = 'WBWBWWBWBWBW' for i, scale in enumerate(scales): if (S).startswith(keyboard[i:] + keyboard[:i]): return scale return...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
bc4cbaa20cc1ae062653619f557fe8e7c1106adc
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04000/s890347924.py
e08156f14ab959ff622a85fa9f2278635cf92fe4
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
from collections import defaultdict, Counter H, W, N = map(int, input().split()) D = defaultdict(int) for _ in range(N): a, b = map(int, input().split()) for i in range(a - 2, a + 1): if 1 <= i <= H - 2: for j in range(b - 2, b + 1): if 1 <= j <= W - 2: D[(i, j)] += 1 print((H - 2) *...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c71b4a1f83067c3a098d6a37edad98bc9a120439
a611d9ecfae0ecaed9848bf0474e8d2249764c6c
/bundestag/link_crawler.py
25a20ec56200e4b138fa99fc4d49894fc5ca9f3a
[]
no_license
JokusPokus/TINART-finetuning
8317ad9f1a42e10e032ab77ce998300dc605ff57
667ccfae1ddae1eece070bef2934160d816a9a24
refs/heads/master
2023-01-28T04:51:32.051599
2020-12-02T15:36:39
2020-12-02T15:36:39
313,454,702
0
0
null
null
null
null
UTF-8
Python
false
false
4,176
py
""" Crawls links to parliament proceeding protocols for the current voting period. """ import requests from bs4 import BeautifulSoup from typing import Dict, List # metadata for the HTTP requests HEADERS = { 'authority': 'www.bundestag.de', 'accept': '*/*', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Wi...
[ "jakob.schmitt@code.berlin" ]
jakob.schmitt@code.berlin
bd53a8dbbf7296ec1350fc2ed8664fd62d46a3fb
ee682ade4fcafb5648a99ceb66a2d4b7bb186cb3
/app/members/admin.py
3a05a99558505445f0f1ca38c8377de03a63a575
[]
no_license
gambler1541/hw-django
a7ea4ad743cb435c2f9ecbf3ff86ce3adf036069
99639fb3da7639bffe8b22fe9fc7ac91260f05ed
refs/heads/master
2020-03-21T04:19:08.601227
2018-06-21T01:10:35
2018-06-21T01:10:35
138,102,510
1
0
null
null
null
null
UTF-8
Python
false
false
151
py
from django.contrib import admin from members.models import InstagramUser, UserInfo admin.site.register(InstagramUser) admin.site.register(UserInfo)
[ "gambler1541@gmail.com" ]
gambler1541@gmail.com
f6607a1124301e9ff2d135311f8538737bc61608
bbf874cf4abb20e7ec5c66e808e97ae6f2043c3f
/0x0B-python-input_output/14-pascal_triangle.py
c7d2d1a3c815f704485b95a44abecae4c2d99415
[]
no_license
imperfectskillz/holbertonschool-higher_level_programming
105fd80c2bea8fbb60eb786ce9019b3f63188342
704e99b29125d6449db32b9d52ede443318df620
refs/heads/master
2021-09-14T10:44:22.551896
2018-05-12T03:38:59
2018-05-12T03:38:59
113,130,980
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
#!/usr/bin/python3 """ module contains pascal traingle """ def pascal_triangle(n): """ pascal triangle """ if n <= 0: return [] result = [] for i in range(n): result.append([]) result[i].append(1) for j in range(1, i): result[i].append(result[i - 1]...
[ "j.choi.89@gmail.com" ]
j.choi.89@gmail.com