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
81514d43a8d83c10edcfafd29865f09868f39d2f
f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2
/2015/AST1/vezbovni/Ivan/drugi.py
2b511e0abfef1e8c327b2cdf308726281e5c262f
[]
no_license
ispastlibrary/Titan
a4a7e4bb56544d28b884a336db488488e81402e0
f60e5c6dc43876415b36ad76ab0322a1f709b14d
refs/heads/master
2021-01-17T19:23:32.839966
2016-06-03T13:47:44
2016-06-03T13:47:44
60,350,752
0
0
null
null
null
null
UTF-8
Python
false
false
144
py
def obim(a, b): O = 2*a+2*b print("obim pravougaonika stranica", a "i" b, "je", O) return O prvi = obim(1, 2) drugi = obim(25, 36)
[ "ispast.library@gmail.com" ]
ispast.library@gmail.com
48cc96d967e3c3242cbb6e49bf663103aaea450c
9ecf55bf2601e0d4f74e71f4903d2fd9e0871fd6
/my_seg_tf/v10_segcap_128_128/config/config_res_segcap_3L_v3.py
01c05a130a8d00c0547dfd1a8595652e1a11e9fd
[]
no_license
qq191513/mySeg
02bc9803cde43907fc5d96dc6a6a6371f2bef6fe
4337e6a0ca50b8ccbf6ed9b6254f2aec814b24db
refs/heads/master
2020-04-10T09:57:37.811133
2019-06-26T08:21:23
2019-06-26T08:21:23
160,951,962
1
0
null
null
null
null
UTF-8
Python
false
false
1,331
py
import os ########################## 训练集 ####################################### project_root ='/home/mo/work/seg_caps/my_seg_tf/v9_segcap_128_128' mask=True train_data_number = 57 num_classes = 1 batch_size = 2 input_shape =[batch_size,128,128,3] labels_shape =[batch_size,128,128,1] labels_shape_vec =[batch_size,1...
[ "1915138054@qq.com" ]
1915138054@qq.com
0ad48321b180ab40c03d0c360ae53bd96eb13d58
87cacb90676e5e7d1d8f0e643f1ad6ed9e35acbf
/need to clean/codes_dl_old/split_train_test_bu.py
99a5c178bbdbfdef7b08c55a8d37704e0befe3c4
[]
no_license
vuhoangminh/Kaggle-TalkingData-AdTracking-Fraud-Detection-Challenge
3b75d4a7c60574a4875c62e8843a01d945d792d3
56045f446f1a0c538d91ac65e536edc4b7b5a417
refs/heads/master
2020-03-13T12:56:42.309722
2018-05-08T10:50:35
2018-05-08T10:50:35
131,129,397
0
0
null
null
null
null
UTF-8
Python
false
false
5,884
py
""" Adding improvements inspired from: Ravi Teja's fe script: https://www.kaggle.com/rteja1113/lightgbm-with-count-features?scriptVersionId=2815638 """ import pandas as pd import time import numpy as np from sklearn.cross_validation import train_test_split import lightgbm as lgb import gc import pickle from sklearn.pr...
[ "minhmanutd@gmail.com" ]
minhmanutd@gmail.com
5c87709e79b598bd4b214aead30ccb6efaa34278
018a1d8d59c00f69b0489ce05567a2972c335ff7
/2017_May23/threads/job_queue.py
f5a021c0ba152893e936037dcb4ee78ae934f673
[]
no_license
singhujjwal/python
f0127b604e2204a02836c95d89ee4903f760d48c
4fb4b34a318f093bd944cd70d7f0d69dd7dfef6e
refs/heads/master
2021-09-20T15:35:13.389400
2021-09-03T06:39:58
2021-09-03T06:39:58
92,157,309
0
0
null
null
null
null
UTF-8
Python
false
false
1,401
py
from time import sleep def square(x): sleep(5) return x*x def factorial(x): sleep(3) from functools import reduce return reduce(lambda x,y: x*y, range(1, x+1)) def sum_all(x): sleep(2) return sum(range(x)) class MyJobQueue: def __init__(self, capacity): from queue import Qu...
[ "ujjsingh@cisco.com" ]
ujjsingh@cisco.com
de6558aa3fa726a49caaa8cdd14339487414a1c5
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/box/unselected/marker/_opacity.py
d86095f213c385378e349c836d4e4410faab53eb
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
501
py
import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="opacity", parent_name="box.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_...
[ "noreply@github.com" ]
hugovk.noreply@github.com
1af686590d178711452f4ed5b201e9029756d6e5
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part004559.py
2ab65e23a64dd1382972f44fd77b836d6ac16441
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,456
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
332448d7ef58c005a849960379afc675efeb75c3
eeda8f12876b4193b8b32642b663c865f4ade39a
/player/migrations/0007_auto_20161210_2247.py
cf0accaf6c90db284a7cec3816fc1a10a76722e3
[]
no_license
TheAvinashSingh/DirectMe
b893a29757ec0c147cc57d0d1fbd5917ce069958
dc957d19c08666ae27adb5c25321a32ad5316a7b
refs/heads/master
2021-01-20T05:26:49.504025
2016-12-11T00:28:53
2016-12-11T00:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-10 22:47 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('player', '0006_auto_20161210_2117'), ] operations = [ migrations.AlterModelOptions(...
[ "bansalutkarsh3@gmail.com" ]
bansalutkarsh3@gmail.com
bbc3043cb67e1318cd74d7424783ed50f9e0f638
dc95dfb24f3cd12b823dfad2cca8607ab12e757b
/13-Built-in-Functions/lambda-functions.py
290a032db496cccdb44a90abc4b42ebe13a6a8b5
[]
no_license
RandyG3/Python
06213a361deac2d653d4cd4734728838ed34e733
86068d81ae037beb6fd6114d93074a92c2f3108e
refs/heads/master
2023-01-06T15:18:43.173886
2020-11-08T03:03:34
2020-11-08T03:03:34
236,549,506
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
# Lambda Function # An anonymous function # (a function without a name) # # use once, then discard metals = ["gold", "silver", "platinum", "palladium"] # get words more than 5 char print(filter(lambda metal: len(metal) > 5, metals)) print(list(filter(lambda metal: len(metal) > 5, metals))) print(list(filter(lam...
[ "40631249+RandyG3@users.noreply.github.com" ]
40631249+RandyG3@users.noreply.github.com
da8f240c44afe29c7e5b234fa6b40b2e38fa1cbd
87a26f06a60b98f7a0191e59e4111d3ba338aeeb
/biLSTM/Common.py
7b3d38f45022ee7d9f20d5833d178ba1d5f6be93
[]
no_license
zenRRan/Stance-Detection
be0c03d3cafe0c4390e39c931cb836f6eca1f156
62b6d6a092a956ccd31a7d47a9de9fbf72260f98
refs/heads/master
2021-09-08T01:18:51.392615
2018-03-05T02:14:51
2018-03-05T02:14:51
115,618,231
8
2
null
null
null
null
UTF-8
Python
false
false
512
py
# Version python3.6 # -*- coding: utf-8 -*- # @Time : 2018/2/9 下午9:22 # @Author : zenRRan # @Email : zenrran@qq.com # @File : Common.py # @Software: PyCharm Community Edition unk_key = '-unk-' padding_key = '-padding-' English_topics = ['atheism', 'feminist movement', 'hillary clinton', 'legalizati...
[ "824203828@qq.com" ]
824203828@qq.com
2fa77c854e55396aad6687738cfc4adb903b8084
694d57c3e512ce916269411b51adef23532420cd
/leetcode_review/378kth_smallest_element_in_a_sorted_matrix.py
ea3b9532ad401931b61c1c7752f4a37732851542
[]
no_license
clovery410/mycode
5541c3a99962d7949832a0859f18819f118edfba
e12025e754547d18d5bb50a9dbe5e725fd03fd9c
refs/heads/master
2021-05-16T02:46:47.996748
2017-05-10T23:43:50
2017-05-10T23:43:50
39,235,141
1
1
null
null
null
null
UTF-8
Python
false
false
983
py
from heapq import * class Solution(object): # solution1, using heap def kthSmallest(self, matrix, k): m, n = len(matrix), len(matrix[0]) if len(matrix) else 0 heap = [] for i in xrange(m): heappush(heap, (matrix[i][0], i, 0)) for x in xrange(k): cur_num, ...
[ "seasoul410@gmail.com" ]
seasoul410@gmail.com
69e6cab54865678d41fd6a8b033cb45b0e9a27a2
d4c83df812c0c182bf444cc432deba03b79fb810
/bin/gifmaker.py
4150f99bbb22a423f9f1994f854015fa3f3fbb1e
[ "MIT" ]
permissive
webbyfox/suade
2c06bb3d59762bbc9c41bde7b062a9575b3ea9e2
52a93df0f4cb1f6442b6c7dd259c8350a7687082
refs/heads/master
2021-01-21T20:16:58.674107
2017-05-23T21:23:26
2017-05-23T21:23:26
92,213,858
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
#!/Users/Rizwan/www/suade/bin/python3.6 # # The Python Imaging Library # $Id$ # # convert sequence format to GIF animation # # history: # 97-01-03 fl created # # Copyright (c) Secret Labs AB 1997. All rights reserved. # Copyright (c) Fredrik Lundh 1997. # # See the README file for information on usage and re...
[ "mr.mansuri@gmail.com" ]
mr.mansuri@gmail.com
7b212255dd798268635f44caac329f228d0e7cdb
5c443eb3556d6d52717227008c29426ed7ca6a24
/todo/test_views.py
8242761704991a0157f03efcc6fbe053dc7aa31f
[]
no_license
ashur-k/ci_django_to_do_app
ef4dcfd1b6df529265f8ee4c9b1e4d5b05c27573
f829d962a2e482830bc7c631230d2a30bef0245f
refs/heads/master
2023-02-26T11:48:48.306451
2021-02-01T11:19:02
2021-02-01T11:19:02
286,980,518
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
from django.test import TestCase from .models import Item # Create your tests here. class TestViews(TestCase): def test__get_todo_list(self): response = self.client.get('/') self.assertEqual(response.status_code, 200) self.assertTemplateUsed(response, 'todo/todo_list.html') def test_...
[ "ashurkanwal@yahoo.com" ]
ashurkanwal@yahoo.com
d75e31c9ad75f7bcd75a6edb6e64dcb2f734a9f8
5b93930ce8280b3cbc7d6b955df0bfc5504ee99c
/nodes/Geron17Hands/C_PartII/A_Chapter9/C_ManagingGraphs/index.py
c0a3c947cdad986f3ad78522ec72a8e696105d0b
[]
no_license
nimra/module_gen
8749c8d29beb700cac57132232861eba4eb82331
2e0a4452548af4fefd4cb30ab9d08d7662122cf4
refs/heads/master
2022-03-04T09:35:12.443651
2019-10-26T04:40:49
2019-10-26T04:40:49
213,980,247
0
1
null
null
null
null
UTF-8
Python
false
false
5,823
py
# Lawrence McAfee # ~~~~~~~~ import ~~~~~~~~ from modules.node.HierNode import HierNode from modules.node.LeafNode import LeafNode from modules.node.Stage import Stage from modules.node.block.CodeBlock import CodeBlock as cbk from modules.node.block.HierBlock import HierBlock as hbk from modules.node.block.ImageBlock ...
[ "lawrence.mcafee@gmail.com" ]
lawrence.mcafee@gmail.com
7dc8acbac6368137168cd3244cb6acd73d01644b
358dd2e27935215304ef5640b715de260d16aa2b
/lextract/keyed_db/repl.py
90230021411875594959910e7f1981de5ea88e4d
[]
no_license
frankier/lextract
7495c2053493eb50623b1cae4a8594cca6c8247e
ba38eb23188e074f7724e2ec08e5993fe98dcb6f
refs/heads/master
2023-03-08T22:03:33.095959
2020-11-23T11:27:22
2020-11-23T11:27:22
188,093,991
1
0
null
2023-02-22T23:29:47
2019-05-22T18:35:44
Python
UTF-8
Python
false
false
592
py
import sys import click from pprint import pprint from finntk import get_omorfi from wikiparse.utils.db import get_session from .extract import extract_toks @click.command("extract-toks") def extract_toks_cmd(): paragraph = sys.stdin.read() omorfi = get_omorfi() tokenised = omorfi.tokenise(paragraph) ...
[ "frankie@robertson.name" ]
frankie@robertson.name
317e95c65c566b23be221e71ce486bf6889f931e
86e8f0a13269d01bd3f9020dc2dc32e77fc7e30f
/tests/integration/test_misc.py
dd9e414a01d2216759622644551555ef39b9518d
[ "Apache-2.0" ]
permissive
stardude900/stratis-cli
92bae614f8998cf30727a3eb0899906fe2a67df6
bf0beb60c7bc64b8762247da983436be7ec59d32
refs/heads/master
2021-01-19T06:15:37.907429
2017-08-07T21:46:04
2017-08-07T21:46:04
100,633,518
0
0
null
2017-08-17T18:28:51
2017-08-17T18:28:51
null
UTF-8
Python
false
false
5,528
py
# Copyright 2016 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ "amulhern@redhat.com" ]
amulhern@redhat.com
c2b66c7a38983f935b08a2197ce9cdb85019fda6
9bb16f8fbf9f562f1171a3bbff8318a47113823b
/abc132/abc132_d/main.py
6b825f6fef88b9fcc0c84f1d7a6cd6ad0aa3c805
[]
no_license
kyamashiro/atcoder
83ab0a880e014c167b6e9fe9457e6972901353fc
999a7852b70b0a022a4d64ba40d4048ee4cc0c9c
refs/heads/master
2022-06-01T03:01:39.143632
2022-05-22T05:38:42
2022-05-22T05:38:42
464,391,209
1
0
null
null
null
null
UTF-8
Python
false
false
400
py
#!/usr/bin/env python3 # from typing import * MOD = 1000000007 # def solve(N: int, K: int) -> List[str]: def solve(N, K): pass # TODO: edit here # generated by oj-template v4.8.1 (https://github.com/online-judge-tools/template-generator) def main(): N, K = map(int, input().split()) a = solve(N, K) ...
[ "kyamashiro73@gmail.com" ]
kyamashiro73@gmail.com
015dde9f3d18d2234d142749e7b2fdbe911482af
7882860350c714e6c08368288dab721288b8d9db
/백트래킹/1182_부분수열의 합.py
bc2b31a9f2df3eabfb77b6ce66c3a3e67deac17a
[]
no_license
park-seonju/Algorithm
682fca984813a54b92a3f2ab174e4f05a95921a8
30e5bcb756e9388693624e8880e57bc92bfda969
refs/heads/master
2023-08-11T18:23:49.644259
2021-09-27T10:07:49
2021-09-27T10:07:49
388,741,922
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
n,s=map(int,input().split()) arr=list(map(int,input().split())) ans=0 def func(idx,total): global ans if idx>=n: if s==total: ans+=1 return else: func(idx+1,total+arr[idx]) func(idx+1,total) func(0,0) if s==0: print(ans-1) else: print(ans)
[ "cucu9823@naver.com" ]
cucu9823@naver.com
161708e25ea49fb32dcaf50a3134a77915485ee0
67ffddfd7e0ace7490c5d52325838b82644eb458
/leetcode/greedy/lc_134.py
5480eaf182de37f45b734ea31103412665b90700
[]
no_license
ckdrjs96/algorithm
326f353c5aa89a85ec86ce1aabb06cde341193ce
d5d09b047808b6fc2eeaabdbe7f32c83446b4a1b
refs/heads/main
2023-08-20T05:12:50.671798
2021-10-23T04:20:05
2021-10-23T04:20:05
324,481,888
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
# greedy o(N) class Solution: def canCompleteCircuit(self, gas: List[int], cost: List[int]) -> int: if sum(gas) < sum(cost): return -1 # 성립이 안되는 지점이 있다면 그앞은 모두 정답이 될수없다. 따라서 start=i+1 start, fuel = 0, 0 for i in range(len(gas)): if gas[i] + fuel < cost[i]: ...
[ "ckdrjs96@gmail.com" ]
ckdrjs96@gmail.com
76815cea1685820cd7c163aadc790a8960d954e4
753a70bc416e8dced2853f278b08ef60cdb3c768
/include/tensorflow/lite/testing/op_tests/cos.py
20b831dce9a7a16df7890f821473a43f2ad57af6
[ "MIT" ]
permissive
finnickniu/tensorflow_object_detection_tflite
ef94158e5350613590641880cb3c1062f7dd0efb
a115d918f6894a69586174653172be0b5d1de952
refs/heads/master
2023-04-06T04:59:24.985923
2022-09-20T16:29:08
2022-09-20T16:29:08
230,891,552
60
19
MIT
2023-03-25T00:31:18
2019-12-30T09:58:41
C++
UTF-8
Python
false
false
2,002
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...
[ "finn.niu@apptech.com.hk" ]
finn.niu@apptech.com.hk
2e15ac5d08dfab344b92280d6c14efe4945dc1f4
bc6492a9a30ac7228caad91643d58653b49ab9e3
/sympy/utilities/matchpy_connector.py
1d12f13a8f09bbb88826a622781a13072f484722
[]
no_license
cosmosZhou/sagemath
2c54ea04868882340c7ef981b7f499fb205095c9
0608b946174e86182c6d35d126cd89d819d1d0b8
refs/heads/master
2023-01-06T07:31:37.546716
2020-11-12T06:39:22
2020-11-12T06:39:22
311,177,322
1
0
null
2020-11-12T06:09:11
2020-11-08T23:42:40
Python
UTF-8
Python
false
false
4,168
py
from sympy.external import import_module from sympy.utilities.decorator import doctest_depends_on from sympy.functions.elementary.integers import floor, frac from sympy.functions import (log, sin, cos, tan, cot, csc, sec, sqrt, erf, gamma, uppergamma, polygamma, digamma, loggamma, factorial, zeta, LambertW) fr...
[ "74498494@qq.com" ]
74498494@qq.com
5161e0559dc3a3fd010c60d8374844d07214aba5
543e4a93fd94a1ebcadb7ba9bd8b1f3afd3a12b8
/maza/modules/creds/routers/mikrotik/telnet_default_creds.py
540d36ba30ae985f5d22df9eb468af7ebc98ea40
[ "MIT" ]
permissive
ArturSpirin/maza
e3127f07b90034f08ff294cc4afcad239bb6a6c3
56ae6325c08bcedd22c57b9fe11b58f1b38314ca
refs/heads/master
2020-04-10T16:24:47.245172
2018-12-11T07:13:15
2018-12-11T07:13:15
161,144,181
2
0
null
null
null
null
UTF-8
Python
false
false
856
py
from maza.core.exploit import * from maza.modules.creds.generic.telnet_default import Exploit as TelnetDefault class Exploit(TelnetDefault): __info__ = { "name": "Mikrotik Router Default Telnet Creds", "description": "Module performs dictionary attack against Mikrotik Router Telnet service." ...
[ "a.spirin@hotmail.com" ]
a.spirin@hotmail.com
1e461f00ab09e4de26a84fd68a6fd672c1864ff8
261ff2a577650185ff00f5d26dee3189283f28ad
/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof/solution_2.py
4910e5585f6a7b750a56f850a1b51e46193f26b5
[ "MIT" ]
permissive
YunYouJun/LeetCode
a60dd3e719a199f09f47656ba21af66bb5c02641
9dbd55acc82cafd7b1eb3cc81b20563f9bb1ce04
refs/heads/master
2023-08-25T05:58:28.444830
2023-07-21T17:24:45
2023-07-21T17:24:45
146,094,429
5
2
MIT
2021-08-28T17:49:40
2018-08-25T12:43:30
Python
UTF-8
Python
false
false
597
py
from typing import List class Solution: def verifyPostorder(self, postorder: List[int]) -> bool: stack, root = [], float('+inf') for i in range(len(postorder) - 1, -1, -1): if postorder[i] > root: return False while stack and postorder[i] < stack[-1]: ...
[ "me@yunyoujun.cn" ]
me@yunyoujun.cn
f5e547d3d457bb61682b752e448c9ac190e7749f
9b87a520e85566a66f729d2b4cafd00c67ea5db0
/Builder/build_utils.py
b71a2e74f1b31500fe22c85e188b543577ea5471
[ "Apache-2.0" ]
permissive
barry-scott/scm-workbench
c694720acd316789821b7f8ebf32f7b941913d94
6ae79141ae54424d81a94a76690b2ab12df9d901
refs/heads/master
2023-03-15T21:13:28.394412
2022-07-10T11:47:30
2022-07-10T11:47:30
50,042,812
28
12
null
null
null
null
UTF-8
Python
false
false
2,725
py
# # Needs to run under python2 or python3 # from __future__ import print_function import sys import os import subprocess import shutil log = None if sys.version_info[0] == 2: unicode_type = unicode else: unicode_type = str class BuildError(Exception): def __init__( self, msg ): super(BuildErr...
[ "barry@barrys-emacs.org" ]
barry@barrys-emacs.org
168e9a9c6acb9bf3b4a1fbaac845daddd794d7b0
a46fc5187245f7ac79758ae475d4d865e24f482b
/permutation_in_string/str_permutation.py
02a895fffa3bf8acdd261aea5803250d08ef67fd
[]
no_license
narnat/leetcode
ae31f9321ac9a087244dddd64706780ea57ded91
20a48021be5e5348d681e910c843e734df98b596
refs/heads/master
2022-12-08T00:58:12.547227
2020-08-26T21:04:53
2020-08-26T21:04:53
257,167,879
0
2
null
null
null
null
UTF-8
Python
false
false
1,696
py
#!/usr/bin/env python3 class Solution: def checkInclusion(self, s1: str, s2: str) -> bool: if len(s1) > len(s2): return False pattern = [0] * 26 s = [0] * 26 for i in range(len(s1)): pattern[ord(s1[i]) - ord('a')] += 1 s[ord(s2[i]) - ord('a')]...
[ "farruh1996@gmail.com" ]
farruh1996@gmail.com
046d95f1bdeabff8b72c1d0183cafd768c0b0544
15581a76b36eab6062e71d4e5641cdfaf768b697
/Topics/Binary Search/Sqrt(x).py
1021b5b6f1d4524ae476e8448226947f4e415112
[]
no_license
MarianDanaila/Competitive-Programming
dd61298cc02ca3556ebc3394e8d635b57f58b4d2
3c5a662e931a5aa1934fba74b249bce65a5d75e2
refs/heads/master
2023-05-25T20:03:18.468713
2023-05-16T21:45:08
2023-05-16T21:45:08
254,296,597
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
class Solution: def mySqrt(self, x: int) -> int: low = 0 high = x + 1 while low <= high: mid = low + (high - low) // 2 if mid * mid == x: return mid elif mid * mid < x: ans = mid low = mid + 1 els...
[ "mariandanaila01@gmail.com" ]
mariandanaila01@gmail.com
425aa18798c9113ad41a1766ea7429d70cc9bebe
a7058080e41af37eb77c146fc09a5e4db57f7ec6
/Solved/05361/05361.py
e15000503140aedadcd13f71e1a12b36e94d0d31
[]
no_license
Jinmin-Goh/BOJ_PS
bec0922c01fbf6e440589cc684d0cd736e775066
09a285bd1369bd0d73f86386b343d271dc08a67d
refs/heads/master
2022-09-24T02:24:50.823834
2022-09-21T02:16:22
2022-09-21T02:16:22
223,768,547
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
# Problem No.: 5361 # Solver: Jinmin Goh # Date: 20220710 # URL: https://www.acmicpc.net/problem/5361 import sys def main(): t = int(input()) for _ in range(t): a, b, c, d, e = map(int, sys.stdin.readline().split()) print(f'${a * 350.34 + b * 230.90 + c * 190.55 + d * 125.30 + e * ...
[ "eric970901@gmail.com" ]
eric970901@gmail.com
f052899444f57fe22175d48f07fc1b910f3d54f6
5f8487a7efb97d90ec0393b0db046b7ca908378b
/wk2/examples/albert.py
2077581b5d51754c3eded2211afbcb38ee8bacc3
[]
no_license
sphilmoon/karel
444fe686c083b3a6b101141c3b16e807ef54a4ba
f6e8a1801509d49d188cf579856cec5d7033bbde
refs/heads/main
2023-08-25T10:23:19.010270
2021-10-20T12:26:35
2021-10-20T12:26:35
359,027,046
0
0
null
null
null
null
UTF-8
Python
false
false
277
py
C = 299792458 E = "e = m * C^2.." def main(): mass = float(input("Enter kilos of mass: ")) print(E) print("m =", mass, "kg") print("C =", f"{C:,d}", "m/s") energy = mass * (C**2) print(energy, "joules of energy!") if __name__ == "__main__": main()
[ "sphilmoon@gmail.com" ]
sphilmoon@gmail.com
c038f897a86b44cea4235b3a9c3b0b1234e25ddd
20c20938e201a0834ccf8b5f2eb5d570d407ad15
/abc112/abc112_c/8543451.py
9e0a5e189ca893892719e48af7fabf0ab05acb17
[]
no_license
kouhei-k/atcoder_submissions
8e1a1fb30c38e0d443b585a27c6d134bf1af610a
584b4fd842ccfabb16200998fe6652f018edbfc5
refs/heads/master
2021-07-02T21:20:05.379886
2021-03-01T12:52:26
2021-03-01T12:52:26
227,364,764
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
N=int(input()) xyh=[list(map(int,input().split()))for i in range(N)] xyh.sort(reverse=True,key=lambda x:x[2]) for cx in range(101): for cy in range(101): H=0 flag=False for i,tmp in enumerate(xyh): x,y,h=tmp if h != 0: tmp= h+abs(x-cx)+abs(y-cy) else: if H-abs(x-cx)-a...
[ "kouhei.k.0116@gmail.com" ]
kouhei.k.0116@gmail.com
e82a60a7a6247bc2fab33bf2628b009d9ac38eaa
141b42d9d72636c869ff2ce7a2a9f7b9b24f508b
/myvenv/Lib/site-packages/phonenumbers/data/region_GH.py
d654cc750d3bbb37816ed1112c6c777b6334e675
[ "BSD-3-Clause" ]
permissive
Fa67/saleor-shop
105e1147e60396ddab6f006337436dcbf18e8fe1
76110349162c54c8bfcae61983bb59ba8fb0f778
refs/heads/master
2021-06-08T23:51:12.251457
2018-07-24T08:14:33
2018-07-24T08:14:33
168,561,915
1
0
BSD-3-Clause
2021-04-18T07:59:12
2019-01-31T17:00:39
Python
UTF-8
Python
false
false
1,483
py
"""Auto-generated file, do not edit by hand. GH metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GH = PhoneMetadata(id='GH', country_code=233, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[235]\\d{8}|8\\d{7}', possible_length=(8...
[ "gruzdevasch@gmail.com" ]
gruzdevasch@gmail.com
e4ad0a1cd2b6f6d8ae19810a9781b6eb59e564d0
882c865cf0a4b94fdd117affbb5748bdf4e056d0
/python/SWexpert/level1/2068_최대수 구하기.py
6908a815bc4146840b9367f8be966728a03e0f3a
[]
no_license
minhee0327/Algorithm
ebae861e90069e2d9cf0680159e14c833b2f0da3
fb0d3763b1b75d310de4c19c77014e8fb86dad0d
refs/heads/master
2023-08-15T14:55:49.769179
2021-09-14T04:05:11
2021-09-14T04:05:11
331,007,037
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
import sys for t in range(int(sys.stdin.readline())): lst = list(map(int, input().split())) print("#{} {}".format(t, max(lst)))
[ "queen.minhee@gmail.com" ]
queen.minhee@gmail.com
0a78e495b80ab9f88ed61331eaa680936024d356
1a6c2be5ff1a8364c97a1ede23c824b2579ecf79
/tfx/dsl/components/base/executor_spec.py
502c4c21c1cc3f66f1766c0916cf2b2132a0d303
[ "Apache-2.0" ]
permissive
418sec/tfx
fa1a4690df2178e9c6bd24f97df0bbde7436df95
df1529c91e52d442443eca5968ff33cf0a38dffa
refs/heads/master
2023-04-18T12:25:38.098958
2021-04-28T16:11:00
2021-04-28T16:11:00
333,769,030
2
1
Apache-2.0
2021-04-28T16:11:01
2021-01-28T13:35:14
null
UTF-8
Python
false
false
6,429
py
# Lint as: python2, python3 # Copyright 2019 Google LLC. 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 req...
[ "tensorflow-extended-nonhuman@googlegroups.com" ]
tensorflow-extended-nonhuman@googlegroups.com
4c5707cd2ba9d17efea44451ba77c6004b84104a
ac4b9385b7ad2063ea51237fbd8d1b74baffd016
/.history/google/drive_files_download_prepare_20210214184811.py
86688cc510192a730867099d50d8918aaacbc36e
[]
no_license
preethanpa/ssoemprep
76297ef21b1d4893f1ac2f307f60ec72fc3e7c6f
ce37127845253c768d01aeae85e5d0d1ade64516
refs/heads/main
2023-03-09T00:15:55.130818
2021-02-20T06:54:58
2021-02-20T06:54:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,610
py
from __future__ import print_function import pickle import os.path import io from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from googleapiclient.http import MediaIoBaseDownload from oauth2client.service_account impor...
[ "{abhi@third-ray.com}" ]
{abhi@third-ray.com}
7391c196678a5851d5df375ccb31973f5f4308d5
faa390890e17219fd763bd66e66bb6753c692b14
/jacinle/comm/__init__.py
31090e96df5a3363aa5d28bc73146df1406c9cf6
[ "MIT" ]
permissive
vacancy/Jacinle
7170b1c798e4a903186abe74d28e4a7e034ec766
20021790fd32ef1ad40c67fba7582c6db54235da
refs/heads/master
2023-07-20T03:54:46.693649
2023-07-12T21:00:10
2023-07-12T21:00:10
117,910,172
135
275
MIT
2023-01-18T17:41:33
2018-01-18T00:35:55
Python
UTF-8
Python
false
false
228
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : __init__.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 01/22/2018 # # This file is part of Jacinle. # Distributed under terms of the MIT license.
[ "maojiayuan@gmail.com" ]
maojiayuan@gmail.com
bc044afaa2aa7c550a0e4c305793d3073561ab60
444a9480bce2035565332d4d4654244c0b5cd47b
/official/cv/OCRNet/convert_from_torch.py
4d18c05e48df3f7270f9673f7922b6241774d711
[ "LicenseRef-scancode-proprietary-license", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mindspore-ai/models
7ede9c6454e77e995e674628204e1c6e76bd7b27
eab643f51336dbf7d711f02d27e6516e5affee59
refs/heads/master
2023-07-20T01:49:34.614616
2023-07-17T11:43:18
2023-07-17T11:43:18
417,393,380
301
92
Apache-2.0
2023-05-17T11:22:28
2021-10-15T06:38:37
Python
UTF-8
Python
false
false
4,078
py
# Copyright 2022 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "a.denisov@expasoft.tech" ]
a.denisov@expasoft.tech
8374d54bebd6681df61f6a480be5b6a013cc4aaa
1b34447fff2b0c08d5b43257b441b82f3faa263a
/bloogle-bot/blooglebot/spiders/theverge_spider.py
050967b104b0a3840bb4caf49601b88b3c68bd97
[]
no_license
Folch/bloogle
ded7a4986139e50ffc1b372e1c6a348b9524f58c
fd573c5948fd14945411e75c22f71ce45e9747b9
refs/heads/master
2020-05-03T16:55:11.349542
2019-03-31T19:42:43
2019-03-31T19:42:43
178,734,386
1
0
null
2019-03-31T19:45:28
2019-03-31T19:45:28
null
UTF-8
Python
false
false
180
py
from .simple_base_spider import SimpleBaseSpider class TheVergeSpider(SimpleBaseSpider): name = 'theverge' def get_domain(self): return 'https://www.theverge.com'
[ "xaviml.93@gmail.com" ]
xaviml.93@gmail.com
2f058e998fff357b00f55662b8586e74272472e7
2fb8fa04d520a0b6fde6f737467e4ff5f8b1c8d2
/add.py
bedba07af9cfb067b2441297e4063ea8f7741216
[]
no_license
Dhiraj4016/batch89
3bd11ae67d39cc43cd816d3c1ccca425833b2e3d
8cdc01853c00eaf009b20024b9e25ddcc29b7bda
refs/heads/master
2020-06-07T12:57:11.581541
2019-06-21T03:56:06
2019-06-21T03:56:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
'''a=int(input("enter Any number")) b=int (input("enter Any number")) c = a + b print("sum=",c)''' name = input("enter your name") print(name) data= input("Are you a student if yes press y else n") print(data[0]) print(data) data1= input("Are you a student if yes press y else n")[0] print(data1) print(data1)
[ "aswanibtech@gmail.com" ]
aswanibtech@gmail.com
68fd786f367e1dd95ac1d5c0cf2a28069117e1e6
276dd5dd778adefd039e6f6a71dc574386729401
/demo2/webapp/app.py
dbe50b9132d718d8d8a8d8ec04892046463991de
[ "MIT" ]
permissive
amitsaha/python-grpc-demo
4880e64b4b993df4b7eb96f2946b6607fb2dfa82
48546bfda83062a3fcb015d352fecb46346e8c92
refs/heads/master
2023-01-12T10:01:36.396783
2022-10-08T05:10:39
2022-10-08T05:10:39
101,063,881
145
52
MIT
2022-12-27T17:26:21
2017-08-22T13:07:17
Python
UTF-8
Python
false
false
757
py
from flask import Flask, Response import sys from google.protobuf.json_format import MessageToJson from client_wrapper import ServiceClient import users_pb2_grpc as users_service import users_types_pb2 as users_messages app = Flask(__name__) app.config['users'] = ServiceClient(users_service, 'UsersStub', 'users', 50...
[ "amitsaha.in@gmail.com" ]
amitsaha.in@gmail.com
e6b276124f6f834603cf0301a93b00fed97d9445
275b16af98827504d4de75c5d45afa09d0a84b8c
/tests/messages/server/test_result_message_parser.py
fb0346ed890136b496c853af3c2b95768ec9b05d
[ "Apache-2.0" ]
permissive
foxdog-studios/pyddp
e63bec12fffc5f87e9a44b0bf9de7bedae71d517
a4ac0bd5d8a2f350e012fd65d79e0034a89d8e67
refs/heads/dev
2021-01-02T08:45:41.081693
2015-05-31T15:10:29
2015-05-31T15:10:29
13,887,437
10
5
Apache-2.0
2018-03-05T17:42:18
2013-10-26T17:12:39
Python
UTF-8
Python
false
false
1,968
py
# -*- coding: utf-8 -*- # Copyright 2014 Foxdog Studios # # 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...
[ "foxxy@foxdogstudios.com" ]
foxxy@foxdogstudios.com
6324c47b3a02c8328fa9a73edda997ad76230713
518bf342bc4138982af3e2724e75f1d9ca3ba56c
/solutions/2370. Longest Ideal Subsequence/2370.py
1b387f7c2ce92430d9791134800f76c0ce754e38
[ "MIT" ]
permissive
walkccc/LeetCode
dae85af7cc689882a84ee5011f0a13a19ad97f18
a27be41c174565d365cbfe785f0633f634a01b2a
refs/heads/main
2023-08-28T01:32:43.384999
2023-08-20T19:00:45
2023-08-20T19:00:45
172,231,974
692
302
MIT
2023-08-13T14:48:42
2019-02-23T15:46:23
C++
UTF-8
Python
false
false
506
py
class Solution: def longestIdealString(self, s: str, k: int) -> int: # dp[i] := longest subseq that ends at ('a' + i) dp = [0] * 26 for c in s: i = ord(c) - ord('a') dp[i] = 1 + self._getMaxReachable(dp, i, k) return max(dp) def _getMaxReachable(self, dp: List[int], i: int, k: int) ->...
[ "me@pengyuc.com" ]
me@pengyuc.com
9a4edd570cf19c80e4d21640897a0de5b4bfc863
d214b72b3ae340d288c683afe356de6846a9b09d
/括号类/使括号有效的最少添加_921.py
d19e8d350a25ab41893dfe2a1a6db26563fa58bb
[]
no_license
Xiaoctw/LeetCode1_python
540af6402e82b3221dad8648bbdcce44954a9832
b2228230c90d7c91b0a40399fa631520c290b61d
refs/heads/master
2021-08-29T15:02:37.786181
2021-08-22T11:12:07
2021-08-22T11:12:07
168,444,276
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
from typing import * class Solution: def minAddToMakeValid(self, S: str) -> int: stack=[] cnt=0 for c in S: if c=='(': stack.append(c) else: if not stack: cnt+=1 else: stack.pop() ...
[ "m18846183092@163.com" ]
m18846183092@163.com
e19f03b66bd26f3d7fc8dd5e3735dd2b75cd2ef8
702f22704e5485aff356b4d1b6f1dea51bd95fa4
/grd_web_edit/tools/handler/modify_handler.py
6dab3c01e736e30f972f6e3ed148329bbdf56ef1
[]
no_license
510908220/chromium_grd_tool
9b20986e6c5a825eeff4447a9ec91416b3188087
4b649c74f49d8515a5bf362828b48cae2f8ce6d0
refs/heads/master
2021-03-12T23:56:51.201622
2015-08-21T06:06:45
2015-08-21T06:06:45
41,099,166
2
0
null
null
null
null
UTF-8
Python
false
false
2,320
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #encoding:utf-8 __author__ = 'Administrator' import xml_node import conf import util import history_handler import innerdb def get_message_info(message_name): """ return: message_string message_text """ grd = xml_node.Grd(conf.grd_path) message_info = grd.get_m...
[ "510908220@qq.com" ]
510908220@qq.com
58b5c70bbc6fd1570d661922bbc81850e967a9d4
e2f400d159ca0abb82e35af7eeedc4eebc3333e7
/desktop/core/src/desktop/lib/rest/http_client.py
e0b90f9979300b77e4e731021e47046aecbc5742
[ "Apache-2.0" ]
permissive
optimistdk/hue
a40ad47b33fc395fadc02840c5f707d8890e5bdc
417d7e18b87faae1157c60f949da61cd3075ed98
refs/heads/master
2021-01-17T21:43:52.399457
2012-07-30T17:17:07
2012-07-30T17:17:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,954
py
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
[ "bcwalrus@cloudera.com" ]
bcwalrus@cloudera.com
ec8fab1581b91290cbc80f32f5189bf5668fbae2
2b7efe276d1dfdc70a4b5cd59ae863b7b7a1bd58
/euler121.py
596e9fa74a1af624297a392aad4c6bdc67a2e48c
[]
no_license
mckkcm001/euler
550bbd126e8d9bb5bc7cb854147399060f865cfc
8cf1db345b05867d47921b01e8c7e4c2df4ee98d
refs/heads/master
2021-01-01T17:43:28.799946
2017-11-07T02:17:34
2017-11-07T02:17:34
18,375,089
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
from fractions import Fraction rounds = 1 odds = Fraction(blue,blue+red) def chances(rounds): red = 0 blue = 0 bag_red = 1 bag_blue = 1 for i in range(rounds): for i in range(rounds): red += 1 odds *= Fraction(blue,blue+red) print(odds)
[ "noreply@github.com" ]
mckkcm001.noreply@github.com
daf5e135c93d1a2cd279020eb00f833972745212
d7d53826ab804a3d0f229b0a189f2626d4ebe99b
/payment/models.py
a029297c35becab4fbd5c326718b5fa46a280bd2
[]
no_license
zbcbcbc/xiaomaifeng
6e299e7f1d13dbca95af7a1e46d66dd0d1c86b08
91b7da9404678227d3c2c4a446777be6dacdedb7
refs/heads/master
2020-12-02T16:58:26.661967
2016-09-04T17:53:51
2016-09-04T17:53:51
67,359,821
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
# -*- coding: utf-8 -*- # # Copyright 2013 XiaoMaiFeng __author__ = "Bicheng Zhang" __copyright__ = "Copyright 2013, XiaoMaiFeng" from django.db import models __all__ = ['PartnerTradeBaseModel','DirectPayBaseModel', 'PartnerTradeBaseManager', 'DirectPayBaseManager'] class PaymentBaseManager(models.Manager): ...
[ "viczhang1990@gmail.com" ]
viczhang1990@gmail.com
293b781a84a06c23dcb33282f1187f182d64d46e
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/pip/_internal/operations/build/wheel.py
5a43e43f72d487fc34b5e42c4afc6f2d625df89e
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
1,100
py
import logging import os from typing import Optional from pip._vendor.pep517.wrappers import Pep517HookCaller from pip._internal.utils.subprocess import runner_with_spinner_message logger = logging.getLogger(__name__) def build_wheel_pep517( name: str, backend: Pep517HookCaller, metadata_...
[ "msaineti@icloud.com" ]
msaineti@icloud.com
9182965cf5743dc890b618905174e89ec27a0f10
534e9eb7da6450a58876b284272d515ff8595730
/base/factories.py
bee9c8e09ec3c02bf5ab2d091d098737a64a1bd8
[]
no_license
Asingjr2/todos_dj
a188946c45e435faf7e57f912676af23f03356f6
a1e08f27a81f9bfa3336dfcee036cbb325f7b63e
refs/heads/master
2020-03-24T09:57:34.460300
2018-09-13T00:57:09
2018-09-13T00:57:09
142,643,266
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
import factory from .models import BaseModel class BaseModelFactory(factory.django.DjangoModelFactory): class Meta: model = BaseModel abstract = True
[ "asingjr2@gmail.com" ]
asingjr2@gmail.com
6f28abf08eb082e5601825a559cb2c2981c18ca4
71764665e27f4b96bab44f38a4a591ffc2171c24
/hhplt/productsuite/OBU_tc56/mock_suite_3.py
2e1584d638d34317a197e435489c2eba9d8dd1cb
[]
no_license
kingdomjc/RSU_production_VAT
693f8c504acc0cc88af92942734ccb85f7e7d7c0
9a3d6d3f5a5edfaf30afdff725661630aafe434c
refs/heads/master
2020-07-31T05:03:46.699606
2019-09-24T02:09:53
2019-09-24T02:09:53
210,491,514
0
0
null
null
null
null
UTF-8
Python
false
false
1,981
py
#encoding:utf-8 u'''这项测试又是虚拟测试项,用于调试''' import time from threading import RLock suiteName = u'''并行虚拟测试项3''' version = "1.0" failWeightSum = 10 #整体不通过权值,当失败权值和超过此,判定测试不通过 from hhplt.testengine.exceptions import TestItemFailException,AbortTestException from hhplt.parameters import SESSION from hhplt.testengine.parall...
[ "929593844@qq.com" ]
929593844@qq.com
05c4564a86b21d10499757b085d1b233d309d25b
4e60e8a46354bef6e851e77d8df4964d35f5e53f
/share/Tornado/databases_share.py
62c25ddacece769d8b5b612f0a4203f260ca0128
[]
no_license
cq146637/DockerManagerPlatform
cbae4154ad66eac01772ddd902d7f70b62a2d856
9c509fb8dca6633ed3afdc92d4e6491b5d13e322
refs/heads/master
2021-04-09T13:58:14.117752
2018-03-19T13:41:04
2018-03-19T13:41:04
125,712,276
0
0
null
null
null
null
UTF-8
Python
false
false
2,764
py
# -*- coding: utf-8 -*- __author__ = 'CQ' import pymysql import logging logger = logging.getLogger(__name__) class MysqlServer(object): """ Tornado通用连接数据库类 用pymysql替代tornado使得操作数据库更加灵活,定制化 """ def __init__(self, db_config): try: self._db_config = db_config ...
[ "1016025625@qq.com" ]
1016025625@qq.com
8a6e89aefd0aab863690b3f259ff2bcd29002021
9b54e3d58447e917a238b85891020c392c4ac601
/acmicpc/14470/14470.py
67e4bb02871ebb7925dcbc02a4a5f31a47ccf24e
[ "MIT" ]
permissive
love-adela/algorithm-ps
ea0ebcd641a4c309348b389b8618daa83973f4b2
c92d105d8ad344def001160367115ecf99d81c0d
refs/heads/master
2023-05-11T03:37:11.750692
2023-04-30T17:31:30
2023-04-30T17:31:30
174,651,672
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
a = int(input()) b = int(input()) c = int(input()) d = int(input()) e = int(input()) if a < 0: time = -a* c + d +b *e else: time = (b-a) * e print(time)
[ "love.adelar@gmail.com" ]
love.adelar@gmail.com
95d4af7b8cfb565d8293b6691bd035ddde66ad43
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Z8REdTE5P57f4q7dK_19.py
9bdc112052430aebd5d4e5509f2a4327f341d3b4
[]
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,271
py
""" A Collatz sequence is generated like this. Start with a positive number. If it's even, halve it. If it's odd, multiply it by three and add one. Repeat the process with the resulting number. The Collatz Conjecture is that every sequence eventually reaches 1 (continuing past 1 just results in an endless repeat of ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2c7378d5804ce5a23049db468925321034b3b0f8
c23b4c6253ca5a0d42822dd0d28ffa752c11ebf5
/exercises/55ad104b-7e6b-4f79-85f7-99ab6d43946e/skeletons/6376fb9a-a7ba-4f6b-b910-33ae0f34729e/skeleton.py3
1dc8678357cebc450bba6ab2504ef1e7caf277c6
[]
no_license
josepaiva94/e57d8867-6234-41a6-b239-2cd978ad1e70
803e2eb1e2db23c64409bc72ff00c4463875a82f
aa270941dd8cf7b2e1ec8ac89445b1ab3a47f89d
refs/heads/master
2023-01-07T10:49:56.871378
2020-11-16T11:28:14
2020-11-16T11:28:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
243
py3
mac = input() def checkMAC(mac): mac_split = {{gap_1}} hex_arr = "ABCDEF0123456789" if {{gap_2}} is 6: for x in {{gap_2}}: if not({{gap_3}}) or not({{gap_4}}: return False return True else: return False print(checkMAC(mac))
[ "56930760+jcpaiva-fgpe@users.noreply.github.com" ]
56930760+jcpaiva-fgpe@users.noreply.github.com
cb9a9d19afb8978fb0f05ed8e8cc82e86052e9ce
469325b1fd3a6b88710bbbb4f5baa0a26404b37a
/Proj/.history/trafficapp/aicv/imgshandle_20201030055426.py
31fb8f916d0bfda891c0927036e367ce80096960
[]
no_license
axiat/IRCRA
7f0f8ef1a41b8b58d6bc836f960b9d5a29dcec0f
b55bfdd794bd8200fd6f74f57016effebdd9d3e6
refs/heads/master
2023-03-13T03:03:33.385625
2021-02-21T17:27:52
2021-02-21T17:27:52
305,881,747
2
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
import cv2 import numpy as np import time from PyQt5.QtGui import QImage # def QImageToCvMat(self,incomingImage): # ''' Converts a QImage into an opencv MAT format ''' # incomingImage = incomingImage.convertToFormat(QtGui.QImage.Format_RGB888) # width = incomingImage.width() # height = inc...
[ "m13521259272@163.com" ]
m13521259272@163.com
ae089e7b09c6e18966e93cccf8067efcbfd52338
017fc2259e09ec8760bc473d436ad45e464044f4
/pennylane/templates/subroutines/grover.py
46f2d83ab8c0c452e0b5ed4121e61a5b35107d51
[ "Apache-2.0" ]
permissive
thomascherickal/pennylane
f1e8ef5b8ffa0c00601da30c39ff89318791e08f
20dcbbc2f86c3fbd3f6fe2a416300e2d2fc172d0
refs/heads/master
2021-10-09T16:15:44.500819
2021-09-28T19:18:23
2021-09-28T19:18:23
199,557,166
2
1
Apache-2.0
2021-09-28T19:18:23
2019-07-30T02:11:54
Python
UTF-8
Python
false
false
5,426
py
# Copyright 2018-2021 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or...
[ "noreply@github.com" ]
thomascherickal.noreply@github.com
c783408703830e9ce5af701f85c93ff834e2edcd
325fde42058b2b82f8a4020048ff910cfdf737d7
/src/automation/azext_automation/vendored_sdks/automation/aio/operations/_key_operations.py
681d8e496bb3177248fc58d79101828166f94822
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
ebencarek/azure-cli-extensions
46b0d18fe536fe5884b00d7ffa30f54c7d6887d1
42491b284e38f8853712a5af01836f83b04a1aa8
refs/heads/master
2023-04-12T00:28:44.828652
2021-03-30T22:34:13
2021-03-30T22:34:13
261,621,934
2
5
MIT
2020-10-09T18:21:52
2020-05-06T01:25:58
Python
UTF-8
Python
false
false
4,781
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
ebencarek.noreply@github.com
9e9f504f0fb585777d13b480599377adfccab439
4a28e3e3afb28c0455ea21cfb983c3a8284dc5dd
/I E4.py
ee1a12a4cf658e738806f55aa474029ddec31781
[]
no_license
omdeshmukh20/Python-3-Programming
60f6bc4e627de9d643a429e64878a636f3875cae
9fb4c7fa54bc26d18b69141493c7a72e0f68f7d0
refs/heads/main
2023-08-28T04:37:27.001888
2021-10-29T17:03:34
2021-10-29T17:03:34
370,008,995
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
#Discription: List of pets using if else #Date: 06/09/21 #Author : Om Deshmukh myPets = ['Zophie', 'Pooka', 'Fat-tail'] print('Enter a pet name:') name = input() if name not in myPets: print('I do not have a pet named ' + name) else: print(name + ' is my pet.')
[ "noreply@github.com" ]
omdeshmukh20.noreply@github.com
60ad984973c35369bf1cb81993e908362db04f80
a31c54cb9b27e315567ed865e07cb720fc1e5c8e
/revenge/engines/frida/memory/__init__.py
822cf4949f39526faed7b7372b6be6f31b0ee14f
[]
no_license
bannsec/revenge
212bc15e09f7d864c837a1829b3dc96410e369d3
2073b8fad76ff2ba21a5114be54e959297aa0cf9
refs/heads/master
2021-06-25T12:26:02.609076
2020-05-29T15:46:45
2020-05-29T15:46:45
188,461,358
51
6
null
null
null
null
UTF-8
Python
false
false
305
py
import logging logger = logging.getLogger(__name__) from .memory_range import FridaMemoryRange as MemoryRange from .map import FridaMemoryMap as MemoryMap from .find import FridaMemoryFind as MemoryFind from .memory_bytes import FridaMemoryBytes as MemoryBytes from .memory import FridaMemory as Memory
[ "whootandahalf@gmail.com" ]
whootandahalf@gmail.com
0ff9d5df07821b0ccf07676e580cb14b38ecf5a9
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/scaleform/daapi/view/meta/browsermeta.py
03baa92387d38a7e9c7d66f787f593bbf42db740
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
1,992
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/BrowserMeta.py from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent class BrowserMeta(BaseDAAPIComponent): def browserAction(self, action): self._printOverrid...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
aa3bf61bfc07d94f00d6817e70534ec9f50a0ba4
0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02
/past12/k.py
a9705a280a1da017a04972e470fa5eb408fb0a6b
[]
no_license
silphire/atcoder
b7b02798a87048757745d99e8564397d1ca20169
f214ef92f13bc5d6b290746d5a94e2faad20d8b0
refs/heads/master
2023-09-03T17:56:30.885166
2023-09-02T14:16:24
2023-09-02T14:16:24
245,110,029
0
0
null
null
null
null
UTF-8
Python
false
false
1,904
py
from collections import defaultdict class UnionFind(object): """ Union-Find (Disjoint Set Union) """ def __init__(self, n: int): assert n > 0 self.parent = [x for x in range(n)] self.size = [1] * n def root(self, x: int) -> int: if self.parent[x] != x: ...
[ "silphire@gmail.com" ]
silphire@gmail.com
21cc95eced5ffb9542d47d29cc4edd83e4b704eb
3339d4a79ff8670b5cf81dcbfd9ff4d477adad46
/setup.py
6872dd60dbbc2cb1391205b9f9bccfda4a3b5955
[ "MIT" ]
permissive
djm/elasticsearch-django
a83314854a2c0b7e1dfcecf9190734e47eb5b752
2e607846ed4cc716aff9ac2b65182f45c21b6fd8
refs/heads/master
2020-05-23T10:19:43.984729
2017-01-13T16:23:59
2017-01-13T17:24:49
80,419,713
0
0
null
2017-01-30T12:31:47
2017-01-30T12:31:46
null
UTF-8
Python
false
false
1,452
py
# -*- coding: utf-8 -*- from os import path, chdir, pardir from setuptools import setup, find_packages README = open(path.join(path.dirname(__file__), 'README.rst')).read() # requirements.txt must be included in MANIFEST.in and include_package_data must be True # in order for this to work; ensures that tox can use the...
[ "hugo@yunojuno.com" ]
hugo@yunojuno.com
986af905818ae3d5de425d83b122f62b130e2ab9
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2205/60696/263490.py
8c63e98e28ee66ededfef13e5763a6545d7bb62a
[]
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
386
py
class Solution: def numberOfWays(self, n: int) -> int: res = 1 for i in range(1, n // 2 + 1): res *= n - i + 1 res //= i return res // (n // 2 + 1) % (10**9 + 7) if __name__ == '__main__': n = int(input()) for i in range(n): num = int(input()) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
73d320126cdceeed526c2541becb2e67e6003c88
033095b33abcef8ac34638a277de11ab734cf642
/Chapter04/Refactoring/point_v3.py
929c6d925f187b40c1dc7872edeb211b1229dadc
[ "MIT" ]
permissive
PacktPublishing/Hands-On-Application-Development-with-PyCharm
fa2df6bfbe06272a4314a83f03cd90030ed2d466
9998906b754a44ced6789e850e8eed139bec0a97
refs/heads/master
2023-04-27T23:49:31.779700
2023-01-18T09:11:50
2023-01-18T09:11:50
175,549,552
40
45
MIT
2023-04-21T20:31:21
2019-03-14T04:43:12
Python
UTF-8
Python
false
false
1,455
py
from math import sqrt from matplotlib import pyplot as plt class Point(): def __init__(self, x, y): self.x = x self.y = y def __str__(self): return f'Point ({self.x}, {self.y})' def __add__(self, p): return Point(self.x + p.x, self.y + p.y) def __sub__(self, p): ...
[ "nguyenminhquan135@gmail.com" ]
nguyenminhquan135@gmail.com
5c1049545c0c2a10a0f9a258fb0b91f1efd85336
09122d8d733d17f5c7fa79c1f167b63ef83d6838
/LeetCode_Algorithm_I/binary_search.py
d9c336c0ef5bf9bc398707f400382081fdfb60bb
[]
no_license
vipulsingh24/DSA
e294ec4aa1b6db2e0ab658f0c7d8389c42563fe2
bcad07d073b064428bcb1bfe7c53f1e785ecc4eb
refs/heads/main
2023-08-17T00:57:44.232545
2021-10-10T17:53:59
2021-10-10T17:53:59
391,599,514
1
0
null
null
null
null
UTF-8
Python
false
false
988
py
""" Given an array of integers nums which is sorted in ascending order, and an integer target, write a function to search target in nums. If target exists, then return its index. Otherwise, return -1. You must write an algorithm with O(log n) runtime complexity. """ class Solution: def search(self, nums: List[in...
[ "letsmailvipul@gmail.com" ]
letsmailvipul@gmail.com
ba918c9a370632727defbf27b9f61360d89b1d1e
391a40002b63daff8bb056b2f0b2ae3f7ee52bb3
/项目/4组_基于MTCNN与FaceNet的人脸识别/4组_基于MTCNN与FaceNet的人脸识别/src/face.py
5c903bc4586d85543ca2a0df1e690a7e91cf937e
[]
no_license
realllcandy/USTC_SSE_Python
7b40f0e4ae3531fc41683fd19f71a58ce3815cdb
3ac15a95e8a99491c322481a70c14b6ab830082f
refs/heads/master
2023-03-17T21:30:19.068695
2020-10-10T06:15:28
2020-10-10T06:15:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,374
py
import pickle import os import cv2 import numpy as np import tensorflow as tf from scipy import misc import align.detect_face import facenet gpu_memory_fraction = 0.3 facenet_model_checkpoint = os.path.dirname(__file__) + "/../src/models/20180402-114759" classifier_model = os.path.dirname(__file__) + "/../src/mode...
[ "321699849@qq.com" ]
321699849@qq.com
f97edd5d3b27d38201267d468279199221e65350
275f3a3dce44f35a5dc1a626e2052c006bdb71bf
/python3/hackerrank_leetcode/longest_common_prefix/test.py
72dd75f74c79b1a194638843eaa41b43c1a81fa7
[ "MIT" ]
permissive
seLain/codesnippets
79b7655950b160af7f2b9fa94712594f95a4794d
ae9a1fa05b67f4b3ac1703cc962fcf5f6de1e289
refs/heads/master
2018-10-08T10:29:53.982156
2018-07-23T13:32:26
2018-07-23T13:32:26
114,009,746
0
0
null
null
null
null
UTF-8
Python
false
false
574
py
import unittest from main import Solution class TestSolutionMethods(unittest.TestCase): solution = Solution() def test_longestCommonPrefix(self): # leetcode test self.assertEqual(self.solution.longestCommonPrefix([]), "") # customized test self.assertEqual(self.solution.longes...
[ "selain@nature.ee.ncku.edu.tw" ]
selain@nature.ee.ncku.edu.tw
4a462bf150a9a56a7a27908dbbbfb4f65c656ad2
3325f16c04ca8e641cbd58e396f983542b793091
/Seção 07 - Coleções Python/Exercícios da Seção/Exercício_44.py
e74cdc81ca838e39ebaaefe45c5c38d333e4831a
[]
no_license
romulovieira777/Programacao_em_Python_Essencial
ac929fbbd6a002bcc689b8d6e54d46177632c169
e81d219db773d562841203ea370bf4f098c4bd21
refs/heads/master
2023-06-11T16:06:36.971113
2021-07-06T20:57:25
2021-07-06T20:57:25
269,442,342
0
0
null
null
null
null
UTF-8
Python
false
false
666
py
""" 44) Leia uma matriz 5 x 5. Leia também um valor X. O programa deverá fazer uma busca desse valor na matriz e, ao final, escrever a localização (linha e coluna) ou mensagem de "não encontrado". """ lista1 = [] for i in range(5): lista2 = [] for j in range(5): num = int(input("Enter a number: ")) ...
[ "romulo.vieira777@gmail.com" ]
romulo.vieira777@gmail.com
a15cc26b1d7917df84ed6039e6ad915c5581b902
517d461257edd1d6b239200b931c6c001b99f6da
/HalloWing/CircuitPython/testing_transistors_w_motor.py
025c05429c16510fc22b9c3cc91a10e59c07db35
[]
no_license
cmontalvo251/Microcontrollers
7911e173badff93fc29e52fbdce287aab1314608
09ff976f2ee042b9182fb5a732978225561d151a
refs/heads/master
2023-06-23T16:35:51.940859
2023-06-16T19:29:30
2023-06-16T19:29:30
229,314,291
5
3
null
null
null
null
UTF-8
Python
false
false
686
py
import board import digitalio import time import touchio import audioio from analogio import AnalogIn,AnalogOut #Set up Touch Buttons touch1 = touchio.TouchIn(board.TOUCH1) touch2 = touchio.TouchIn(board.TOUCH2) touch3 = touchio.TouchIn(board.TOUCH3) touch4 = touchio.TouchIn(board.TOUCH4) #print(dir(board)) #analog_b...
[ "cmontalvo251@gmail.com" ]
cmontalvo251@gmail.com
830acf70ecae7fd6e2f7dc1714aff73773a35e2c
7efee8fb6eb0fa0c3474eeee6344f0c3a5842ff1
/discourse/__init__.py
8cda3bd93fb73ad81fb65a473bed545b69e8a8f8
[]
no_license
nyddle/Discourse
ca0f4eaec039b859a607423c81d97367442c2d3a
031b5bbe7520bfd00addce291661f3e0d8d1e204
refs/heads/master
2021-01-15T21:20:39.699191
2014-05-16T01:55:06
2014-05-16T01:55:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
886
py
from notice import subscribe, unsubscribe, is_subscribed, send_event, render_mail, send_mail from models import (model_sig, get_instance_from_sig, comment_manipulate, attachment_manipulate, document_manipulate, library_...
[ "deadwisdom@gmail.com" ]
deadwisdom@gmail.com
09cdd6da39ecd793c55b596eeafdfec3a03a092e
6daa3815511b1eb1f4ff3a40b7e9332fab38b8ef
/tastesavant/taste/tests/steps.py
1de3767d55e2ec324a42e1607c1b534641af88ed
[]
no_license
kaizensoze/archived-projects
76db01309453606e6b7dd9d2ff926cfee42bcb05
d39ac099cb40131bac5de66bde7d0e2db5f74189
refs/heads/master
2021-05-31T12:16:17.800730
2016-02-23T00:27:56
2016-02-23T00:27:56
14,407,212
1
0
null
null
null
null
UTF-8
Python
false
false
6,601
py
# -*- coding: utf-8 -*- from urlparse import urlparse from django.contrib.auth import login, authenticate from django.contrib.auth.models import User from django.http import HttpRequest from lettuce import step, world from lettuce.django import django_url from lettuce_webdriver.util import AssertContextManager from ...
[ "gallo.j@gmail.com" ]
gallo.j@gmail.com
281e26ea1ec3a66c875c9fcbfcddf7bea0ab7124
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02735/s901108588.py
f6b1a85f048bbee1370c201a20c65c14f71472da
[]
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
157
py
_,*s=open(0);t="." b=t*101;q=range(101);i=0 for s in s: a=[i];i+=1 for x,y,z,c in zip(b,t+s,s,q):a+=min(c+(t>z<x),a[-1]+(t>z<y)), b,q=s,a[1:] print(a[-2])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
877aeeda55babf2eddf7c6b3e99bbcd34aa7de6b
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2065/60581/238639.py
0b6140cd9552c6b8e6249ceccb99bf5ca41994cc
[]
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
1,160
py
str = list(input()) number = '' i = 0 judge = False while i < len(str): if not judge: if str[i]==' ' or str[i]=='"': i += 1 elif str[i]=='-': judge = True number += str[i] i += 1 elif str[i]>='0' and str[i]<='9': judge = True ...
[ "1069583789@qq.com" ]
1069583789@qq.com
0ac9b7d50b3f82f281b0d8fbcb21e8b9c3ef7b46
6329ece221f3b2295cb3791168c876d260ed0c31
/test_learn/chapter4基本窗口控件/对话框类控件/QFileDialog.py
ab66856621d3dd3617c5317bdf95c2ce59f1a629
[]
no_license
dxcv/PythonGUI
4908e049dde5e569a3ad916c6bac385c7953a243
a39beef0006e3e4057e3a9bcb3e0e64ea790427e
refs/heads/master
2020-05-17T17:14:58.250549
2019-04-11T09:32:52
2019-04-11T09:32:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,655
py
# -*- coding:UTF-8 -*- from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * import sys class fileDialogDemo(QWidget): def __init__(self,parent=None): super(fileDialogDemo,self).__init__(parent) self.setWindowTitle("Demo") self.resize(500,500) self.move...
[ "834819108@qq.com" ]
834819108@qq.com
cbfb0a7ceefd20b47c2632746185783e57fbe556
6ef3b1919e7acbc72e5706b2dc6d716f8929e3d2
/pytorch_lightning/trainer/optimizers.py
663871d98b419c6f3037dcb83eff927bbacd78ae
[ "MIT" ]
permissive
linshaoxin-maker/taas
04f7dcc7c0d2818718e6b245531e017ca5370231
34e11fab167a7beb78fbe6991ff8721dc9208793
refs/heads/main
2023-01-19T20:58:04.459980
2020-11-27T02:28:36
2020-11-27T02:28:36
329,522,465
6
0
MIT
2021-01-14T06:02:08
2021-01-14T06:02:07
null
UTF-8
Python
false
false
6,897
py
from abc import ABC from typing import List, Tuple import torch from torch import optim from torch.optim.optimizer import Optimizer from pytorch_lightning.core.lightning import LightningModule from pytorch_lightning.utilities import rank_zero_warn class TrainerOptimizersMixin(ABC): def init_optimizers( ...
[ "czh097@gmail.com" ]
czh097@gmail.com
cd62d851128b56dfad4c05a46bf175597a5648dd
ef7eabdd5f9573050ef11d8c68055ab6cdb5da44
/topCoder/srms/500s/srm501/div2/fox_progression.py
7d232b6426e31efc69bb07c2a286459f0cdd6a0f
[ "WTFPL" ]
permissive
gauravsingh58/algo
cdbf68e28019ba7c3e4832e373d32c71902c9c0d
397859a53429e7a585e5f6964ad24146c6261326
refs/heads/master
2022-12-28T01:08:32.333111
2020-09-30T19:37:53
2020-09-30T19:37:53
300,037,652
1
1
WTFPL
2020-10-15T09:26:32
2020-09-30T19:29:29
Java
UTF-8
Python
false
false
570
py
class FoxProgression: def theCount(self, seq): if len(seq) == 1: return -1 a, m = seq[1]-seq[0], seq[1]/float(seq[0]) af, mf = True, m == int(m) c = sum((af, mf)) for i, j in zip(seq[1:], seq[2:]): if af and j-i != a: af = False ...
[ "elmas.ferhat@gmail.com" ]
elmas.ferhat@gmail.com
a1eca980f1e7db4ea2bb2c1345ea2b21ac48c02d
edfdc0d3a2fdeed95ba7aa3d0e198eb9dafe4064
/operator_api/auditor/serializers/wallet_state.py
1112734b67db81e9f2b2170501516b8880cfed53
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
xiaobai900/nocust-hub
880e72ba4e1d324ae36adea6c03c9761a7d91621
76f49f9b8a6c264fcbe9e0c110e98031d463c0a8
refs/heads/master
2023-05-28T08:18:17.402228
2020-11-01T19:48:17
2020-11-01T19:48:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,988
py
from rest_framework import serializers from ledger.models import Transfer, Deposit, WithdrawalRequest, Withdrawal from django.db.models import Q from .admission import AdmissionSerializer from .proof import ProofSerializer from .transfer import TransactionSerializer from .deposit import DepositSerializer from .withdraw...
[ "guillaume@felley.io" ]
guillaume@felley.io
0d1b22f3e6aacb8bee17e5edebb65a999f43f842
612325535126eaddebc230d8c27af095c8e5cc2f
/depot_tools/external_bin/gsutil/gsutil_4.15/gsutil/third_party/boto/boto/codedeploy/__init__.py
f48c2dae9e305a94834d5aaafbadc02808f60652
[ "Apache-2.0", "MIT", "BSD-3-Clause" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,703
py
# Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved # # 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 ri...
[ "2100639007@qq.com" ]
2100639007@qq.com
b13acb7fc13d6d4bd873a484ebf7f63ace15afc0
9eaa2c64a777bd24a3cccd0230da5f81231ef612
/study/1905/month01/code/Stage4/day10/02_renrenlogin2.py
31c6c8f20308f336b60ec8fed5843bcce90c5158
[ "MIT" ]
permissive
Dython-sky/AID1908
4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c
46cd54a7b36b5f009974f2bbb7005a4ad440ca1a
refs/heads/master
2022-04-14T12:23:30.426270
2020-04-01T18:05:19
2020-04-01T18:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,801
py
import requests from lxml import etree class RenrenLogin(object): def __init__(self): # 抓取的url地址 self.url = 'http://www.renren.com/973116780/profile' self.headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729...
[ "dong_1998_dream@163.com" ]
dong_1998_dream@163.com
57d19a3a065a491b3910d9971156d10e1ef56fb4
ce5362e8871b53b02c0a95f82fba8df98ccccad1
/Service/debug.py
f62461eaaf82a35cabf20b378a19acb411186ea5
[]
no_license
git-hacker/TeamA_NOISES
d7c810ed44d6694b5e6933e87ac3ac221f806e24
def359e752b84aab0b16cfb2cecf3412f684bfab
refs/heads/master
2020-03-28T08:57:45.337321
2018-09-10T15:45:08
2018-09-10T15:45:08
148,002,844
1
0
null
null
null
null
UTF-8
Python
false
false
707
py
import librosa import numpy as np def read_wav(path, fs=16000): data, _ = librosa.load(path, sr=fs) return np.trim_zeros(data) def play(array, fs=16000): import sounddevice as sd print("Playing audio...") sd.play(array, fs, blocking=True) print("Stop playing.\n") def denoise(wave, sr=16000): ...
[ "gradschool.hchen13@gmail.com" ]
gradschool.hchen13@gmail.com
e102783efdf5acc7145bb6ca5f1590a771086b2d
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/KISS/testcase/firstcases/testcase3_003.py
15f1fa5f77c982ba7400d547ef607b57ab7e9616
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
5,016
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
a01bf4fdb740165c86936ed2d5025cd058dd3f36
96d284595c07bf3eb135f88a1a1e5fd2692293dc
/labml_db/serializer/yaml.py
f0afb684e1e52fd58864477a7b5da669068d9e55
[ "MIT" ]
permissive
actuarial-tools/db
cfc3be5b027fe8127032ccecf64a295a83601eba
f6be48f8c724bf76fc6dc966cb4e13bd6501e911
refs/heads/master
2023-01-13T19:21:49.783395
2020-11-24T03:26:13
2020-11-24T03:26:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
from . import Serializer from .utils import encode_keys, decode_keys from ..types import ModelDict class YamlSerializer(Serializer): file_extension = 'yaml' def to_string(self, data: ModelDict) -> str: import yaml return yaml.dump(encode_keys(data), default_flow_style=False) def from_st...
[ "vpjayasiri@gmail.com" ]
vpjayasiri@gmail.com
b6540baaefcf2ad5c0dc65ec15d031a6d31b70a0
ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c
/venv/Lib/site-packages/qiskit/test/mock/backends/cambridge/fake_cambridge.py
9391cbac2bdaa8760fd1c54ad790775b685e29f5
[ "Apache-2.0", "MIT" ]
permissive
shivam675/Quantum-CERN
b60c697a3a7ad836b3653ee9ce3875a6eafae3ba
ce02d9198d9f5a1aa828482fea9b213a725b56bb
refs/heads/main
2023-01-06T20:07:15.994294
2020-11-13T10:01:38
2020-11-13T10:01:38
330,435,191
1
0
MIT
2021-01-17T16:29:26
2021-01-17T16:29:25
null
UTF-8
Python
false
false
2,107
py
# This code is part of Qiskit. # # (C) Copyright IBM 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ "vinfinitysailor@gmail.com" ]
vinfinitysailor@gmail.com
3484100f82f3f01cf5341d95128ee9886dc4357f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/3642.py
933226fea834fae98b48a12ad1623499f69186ae
[]
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
731
py
import sys def func(arr, w): s = [0]*len(arr) sum = ans = 0 for i in range(len(arr)): s[i] += (arr[i]+sum)%2 != 1 sum += s[i]- (s[i-w+1] if (i>= w-1) else 0) ans += s[i] if(i > len(arr)-w and s[i] != 0): return 'IMPOSSIBLE' return str(ans) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
547a53c86ba8b4cd0d676928ceea1cd8c29a5eb4
157d46852ea5788f1c7153b3ce10afb71d5a34c5
/setup.py
d80136964004e5a4fc17965a395deeebde568d6d
[]
no_license
rctk/rctk.qx
4475e0e0918df16a1d961a591d5d5d403a59ec23
c1d510b2cd4404b5b9897e18b33c3d5b80813608
refs/heads/master
2020-05-19T13:50:17.871325
2011-09-13T20:16:51
2011-09-13T20:16:51
2,898,626
1
0
null
null
null
null
UTF-8
Python
false
false
881
py
from setuptools import setup, find_packages import os version = '1.0' setup(name='rctk.qx', version=version, description="Qooxdoo frontend for RCTK", long_description=open("README.txt").read() + "\n" + open(os.path.join("docs", "HISTORY.txt")).read(), # Get more strings ...
[ "github@in.m3r.nl" ]
github@in.m3r.nl
a4ab3dfa2ec84f7f290cefd5efc56c798f2baf7b
5fd4707876cac0a4ca3b14af9a936301c45b5599
/03_字典和集合/fp_07_StrKeyDict0在查询的时候把非字符串的键转换为字符串.py
0f65f3920a1e86a92cadfe6eba73b40dbd5364f7
[]
no_license
xuelang201201/FluentPython
5b0d89bfc6ee1238ad77db9955ec7e8417b418b8
7cbedf7c780c2a9e0edac60484f2ad4c385e1dbd
refs/heads/master
2022-04-26T21:49:16.923214
2020-04-27T01:27:50
2020-04-27T01:27:50
258,290,957
0
0
null
null
null
null
UTF-8
Python
false
false
1,297
py
class StrKeyDict0(dict): # StrKeyDict0 继承了 dict。 def __missing__(self, key): if isinstance(key, str): # 如果找不到的键本身就是字符串,那就抛出 KeyError 异常。 raise KeyError(key) return self[str(key)] # 如果找不到的键不是字符串,那么把它转换成字符串再进行查找。 def get(self, key, default=None): try: ...
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
91840a9b9599ca25ad5162852ade91602d46b6a3
9740b4cfc46b924c2e430472ce0522fa35813465
/django_lender/settings.py
87c2c6eaeeae5c3144315c44ebe1535b2a0dd0dd
[ "MIT" ]
permissive
madelinepet/django_lender
d99f176b76d245ebcc0032f3304d677cd7a4fcfe
5c6c342e8306e848e93db31a02efe9ef1299a401
refs/heads/master
2020-03-28T21:48:08.933512
2018-10-03T23:03:01
2018-10-03T23:03:01
149,183,702
0
0
MIT
2018-10-03T23:02:57
2018-09-17T20:26:20
JavaScript
UTF-8
Python
false
false
4,217
py
""" Django settings for django_lender project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
[ "madelinepet@hotmail.com" ]
madelinepet@hotmail.com
ab7516a56c5ad7146d01832178bc747e367073e6
d6acd0cdfeba9d4777ae897e9edd225e5317d254
/donate_anything/item/migrations/0001_initial.py
03277750c0f3544c629f4322043237e2706ebdaf
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
fossabot/Donate-Anything
680be213d90888bdf565e22214c1267fa5a8b84c
335ef00f3d8bf76b8827d337b68c5ba0fc99bc64
refs/heads/master
2022-12-06T18:37:01.398381
2020-08-23T02:01:26
2020-08-23T02:01:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,315
py
# Generated by Django 3.0.8 on 2020-07-17 23:12 import django.contrib.postgres.fields import django.contrib.postgres.indexes import django.db.models.deletion from django.conf import settings from django.contrib.postgres.operations import TrigramExtension from django.db import migrations, models class Migration(migra...
[ "acwangpython@gmail.com" ]
acwangpython@gmail.com
65024f94ef36f76cc69ae7f6045e4016d5ab2984
71b8b60c5627ace1bbda39f679f93f60b55543ca
/tensorflow_federated/python/common_libs/golden.py
c9ac9996e2e44a95a545046401cfb6d448d6ab15
[ "Apache-2.0" ]
permissive
tensorflow/federated
ff94b63e9f4af448795bae77cee5b627dcae9051
ad4bca66f4b483e09d8396e9948630813a343d27
refs/heads/main
2023-08-31T11:46:28.559047
2023-08-31T02:04:38
2023-08-31T02:09:59
161,556,784
2,297
631
Apache-2.0
2023-09-13T22:54:14
2018-12-12T23:15:35
Python
UTF-8
Python
false
false
5,056
py
## Copyright 2020, The TensorFlow Federated 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 applicable law ...
[ "tensorflow.copybara@gmail.com" ]
tensorflow.copybara@gmail.com
b168f4b1683a0a19436abc505deb186004b85a6c
94dcccac732db506a1066a83961554842ca50d0b
/weather/urls.py
55c116563a1e827708236748f015e45215bbb1d8
[]
no_license
PickertJoe/personal_website
69e7d2d6c1065686fe917c7af0e836b193cab612
3c61e2847fd375eb99fcb23b2c9ad69ca73b1cf3
refs/heads/master
2022-12-13T08:10:53.177963
2022-03-05T01:59:43
2022-03-05T01:59:43
191,227,416
0
0
null
2022-11-22T04:45:56
2019-06-10T18:51:07
Python
UTF-8
Python
false
false
201
py
from django.urls import path from . import views from django.conf.urls.static import static from django.conf import settings urlpatterns = [ path('', views.weather_index, name='weather_index'), ]
[ "pickertjoe@gmail.com" ]
pickertjoe@gmail.com
c8843c93853bb44731b78258d1617cea61e2fa91
d998c5fbbd02c1666862b8996639b8f34604a6eb
/dirigible/sheet/importer.py
49899c0fae53173c5b9e16e783f59ea4e2ecb81a
[ "MIT" ]
permissive
randfb/dirigible-spreadsheet
668f8f341fd48add69937d9dc41353360ed4f08c
c771e9a391708f3b219248bf9974e05b1582fdd0
refs/heads/master
2020-04-14T02:49:44.123713
2017-04-13T06:51:44
2017-04-13T06:51:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,619
py
# Copyright (c) 2010 Resolver Systems Ltd, PythonAnywhere LLP # See LICENSE.md # from chardet.universaldetector import UniversalDetector from codecs import getreader import csv from xlrd import ( error_text_from_code, xldate_as_tuple, XL_CELL_DATE, XL_CELL_ERROR, ) from worksheet import Worksheet class DirigibleI...
[ "hjwp2@cantab.net" ]
hjwp2@cantab.net
553dfa692cedff65a719f24eedf7b1caa123174e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02780/s249015131.py
df3ee8200242ba2c41976713fe7df8440c0aa10b
[]
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
339
py
n,k = map(int, input().split()) p = [int(x) for x in input().split()] p_kitaiti=[float((x+1)/2) for x in p] ruisekiwa=[p_kitaiti[0]] for i in range(1,len(p_kitaiti)): ruisekiwa.append(ruisekiwa[-1]+p_kitaiti[i]) ans=ruisekiwa[k-1] for i in range(1,len(ruisekiwa)-k+1): ans=max(ans,ruisekiwa[i+k-1]-ruisekiw...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
58ec6e180cfe9269f7d7743814d631827370228b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/5463.py
9161570ab3d441e8b67d8aabb2838ba513463229
[]
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
522
py
test = int(input()) def isTidy(num): last = 10 ** 19 while(num > 0): currD = num % 10 if currD > last: return False else: last = currD num /= 10 num = int(num) return True def lastTidy(max): lastT = -1 for i in range(1, max + ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
fd7393b541b9bb5f909a07532784680f760067d5
c88a3a539d32a8c0c3426508d85bcead51e28273
/average_solve_cartpole_v1_DQN.py
cc1d11dbc7d2b3b7893c0d1df3d81686249ce6c8
[]
no_license
afcarl/DQN_Experiments
f6f4e35190eafa5add1ccb4b6487994af49368cd
667e072a76bf3702556ae44fe6b4a9ebec143fbd
refs/heads/master
2020-03-22T08:06:39.490033
2017-02-22T03:49:22
2017-02-22T03:49:22
139,745,429
1
0
null
2018-07-04T16:31:59
2018-07-04T16:31:59
null
UTF-8
Python
false
false
6,214
py
import copy import gym from gym import wrappers import matplotlib.pyplot as plt import time from utils import * from ReplayMemory import ReplayMemory from agents import AgentEpsGreedy from valuefunctions import ValueFunctionDQN # Inspired by necnec's algorithm at: # https://gym.openai.com/evaluations/eval_89nQ59Y4...
[ "riashat.islam.93@gmail.com" ]
riashat.islam.93@gmail.com
838df2bb911c2fe314b5652625d5a57027bb1644
3eed7b405d1fb9305225718f4c01494bc856da88
/swExpertAcademy/python_basic/6262_set,dict.py
9975b904fe77de00c41287c94b3333c4c28cc26a
[]
no_license
tesschung/TIL
b2610d714ec9e4778aafe7538d02b3e3d9fe89d9
bd79e4af68ef19599cb843f3ce8f5d81a322a2f7
refs/heads/master
2020-06-17T11:53:52.595880
2019-07-26T08:02:03
2019-07-26T08:02:03
195,916,443
4
0
null
null
null
null
UTF-8
Python
false
false
929
py
""" 다음의 결과와 같이 입력된 문자열의 문자 빈도수를 구하는 프로그램을 작성하십시오. 입력 abcdefgabc 출력 a,2 b,2 c,2 d,1 e,1 f,1 g,1 """ ## dict 외우기 a = 'abcdefgabc' a = list(a) print(a) alphabet_count={} for alphabet in a: if alphabet in alphabet_count: alphabet_count[alphabet] += 1 else: alphabet_count[alphabet] = 1 p...
[ "geobera0910@naver.com" ]
geobera0910@naver.com
5c80ef81d655783a11e72b107e7460ec06e90969
6f3389c93cf1057bca5398940932561c19dbec1d
/Solving Club/2/Diamond.py
cf87ccb41f7082bb50c22b4f1782141b2dcfe91f
[]
no_license
Jeonseoghyeon/APR
0af9ac1b4ba666a97d78b92e3e599c5a8bc87acc
7a3822913b84ae6ecf80c8e35c7c8e400981d1fe
refs/heads/master
2020-12-23T13:55:24.194463
2020-06-30T07:00:23
2020-06-30T07:00:23
237,172,582
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
import sys sys.stdin = open("Pascal input.txt","r") tc = int(input()) for i in range(1,tc+1): word = input() lw = len(word) print('..#.'*(lw)+'.', end='') print() print('.#'*(lw*2)+'.') for x in range(lw): print('#',end='') print('.{}.'.format(word[x]),end='') print('#')...
[ "jsh28592@gmail.com" ]
jsh28592@gmail.com
41587d72a71685d71fb47ce204224c2ce9746626
edbd6ee1c76ed53c24c711ca68d643c94ac97481
/Algorithms/binary/268_Missing Number.py
954f204785803a1de2690446d79ae59cd39b43e9
[]
no_license
Linjiayu6/LeetCode
dd0ee7cff962fce7298227d9ce52ed6700fed98b
2dea64cb7198bd7c71ba023d074b1036088d5632
refs/heads/master
2021-07-22T21:44:23.536275
2020-07-09T00:56:28
2020-07-09T00:56:28
194,610,005
0
0
null
null
null
null
UTF-8
Python
false
false
1,472
py
# -*- coding: utf-8 -* """ Input: [9,6,4,2,3,5,7,0,1] Output: 8 i: [1,2] o: 0 i: [1] o: 0 """ # exceed the time limit class Solution(object): def missingNumber(self, nums): """ :type nums: List[int] :rtype: int """ for i in range(0, len(nums) + 1): # 这种匹配是没有哈希...
[ "linjiayu@meituan.com" ]
linjiayu@meituan.com
a4df40171c0718ad80625bd65a1955dc68217bff
c46f6015a2b9f7c6e5aec3d043f0b75057756852
/scripts/create_initial_admin_user.py
228fdaa760d9de5715af2b45428539b5623ed244
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
peerau/byceps
6a7db0f8db00d8a77e824018d6efdbab57abbaaf
1f691280f5c086179ce372a471a0f1d9952a86f5
refs/heads/master
2020-07-28T06:31:29.468607
2019-09-15T00:18:48
2019-09-15T00:18:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,874
py
#!/usr/bin/env python """Create an initial user with admin privileges to begin BYCEPS setup. :Copyright: 2006-2019 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ import click from byceps.services.authorization import service as authorization_service from byceps.services.user import comman...
[ "homework@nwsnet.de" ]
homework@nwsnet.de
0ea7d01fd4094a8bf1e86275477930c3ab0eda4f
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/googlecloudsdk/command_lib/ml/translate/hooks.py
34fbbf2dc37439bcabeac9f790eaad94761c8833
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
bopopescu/socialliteapp
b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494
85bb264e273568b5a0408f733b403c56373e2508
refs/heads/master
2022-11-20T03:01:47.654498
2020-02-01T20:29:43
2020-02-01T20:29:43
282,403,750
0
0
MIT
2020-07-25T08:31:59
2020-07-25T08:31:59
null
UTF-8
Python
false
false
6,520
py
# -*- coding: utf-8 -*- # # Copyright 2019 Google LLC. 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 requir...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
51fdb88c14d2221f54fb2b293029612539b61752
ced0efb0666b5817b9656cd533cf6f5db0085fe8
/coding/codejam/apac/Aug/3.py
2ca01808b5e807bc2132b1dfc20b4781743052a4
[]
no_license
adithyaphilip/learning
11fb6997ab3d613a358502dfff0ae9b91cd5ee27
64ecd3bc622077c7256df91cdf4dfbc8adf23068
refs/heads/master
2021-06-01T18:04:46.733092
2016-09-22T18:22:46
2016-09-22T18:22:46
68,949,350
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
chunks_d = {} def max_chunks(n, m): if n not in chunks_d: sum_c = (n ** 2) % m for i in range(n - 2, 0, -1): sum_c += (max_chunks(i, m) ** 2) % m sum_c %= m return chunks_d[n] def main(): pass main()
[ "adithyaphilip@gmail.com" ]
adithyaphilip@gmail.com
41af7f6a19d875d44349cb7afca4084535e46ebd
1af49694004c6fbc31deada5618dae37255ce978
/content/test/gpu/run_gpu_integration_test_fuchsia.py
7e33505aa105b1e959de8d8e632e53300b81a4f0
[ "BSD-3-Clause" ]
permissive
sadrulhc/chromium
59682b173a00269ed036eee5ebfa317ba3a770cc
a4b950c23db47a0fdd63549cccf9ac8acd8e2c41
refs/heads/master
2023-02-02T07:59:20.295144
2020-12-01T21:32:32
2020-12-01T21:32:32
317,678,056
3
0
BSD-3-Clause
2020-12-01T21:56:26
2020-12-01T21:56:25
null
UTF-8
Python
false
false
3,389
py
#!/usr/bin/env vpython # Copyright 2020 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Wrapper for running gpu integration tests on Fuchsia devices.""" import argparse import logging import os import shutil import subp...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
93759af8f7a6ac24af30c0957f2296cf3c95c118
52b5773617a1b972a905de4d692540d26ff74926
/.history/knapsack_20200708152715.py
6b2ae69fdf511f9fa60dc4defa0e8ddffc9845b1
[]
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
416
py
def Knap(a,b,w): # declare an empty dictionary newArr = [] for i,j in zip(a,b): smallArr = [] smallArr.append(i) smallArr.append(j) newArr.append(smallArr) i = 0 # at position 0 is the weight and at position 1 is the value # goal is to find highest value b...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
6c810f9843558ebd9fdbcfb4f069f53ab3020afd
44b2743ff70ce0631e9714ce78c44720fa63a9ad
/app/productdb/migrations/0012_auto_20160725_2252.py
f0305b66317e1a360acdb83ff2cb9af81c7a6a76
[ "MIT" ]
permissive
hoelsner/product-database
1b1b4db8e968f5bc149605093e4639c48a9ae1ad
c649569fb82bc4b0a5e9ef9615fff8a364ce652f
refs/heads/master
2023-07-24T21:39:01.870692
2023-07-09T17:03:56
2023-07-09T17:03:56
43,767,455
43
27
MIT
2023-04-16T19:17:25
2015-10-06T17:44:50
Python
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-07-25 20:52 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('productdb', '0011_userprofile_regex_search'), ] operations = [ migrations.Al...
[ "henry@codingnetworker.com" ]
henry@codingnetworker.com