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
698adef33400954612ddb390d4e2b4be321adb6a
9788df18d5adaa469a0cb51f47309cd7401201e5
/alisdk/top/api/rest/SimbaNonsearchDemographicsUpdateRequest.py
a8f2e81f002dde34594772cd1fb1c4a9b8124c77
[]
no_license
sevennothing/aliyunTestPrj
cf690ce4765497f1b16359b82ef64f1ef992713c
1b3e883d32c759e03fe5053c50e9a973f59bbffc
refs/heads/master
2021-01-17T03:15:59.082544
2015-03-11T14:16:58
2015-03-11T14:16:58
32,001,149
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
''' Created by auto_sdk on 2014-11-20 12:53:43 ''' from top.api.base import RestApi class SimbaNonsearchDemographicsUpdateRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.campaign_id = None self.demographic_id_price_json = None self.nick...
[ "licj@out.lrserver" ]
licj@out.lrserver
bc486f952345fcf08f137b8312608b15be52db9c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03146/s029247670.py
51dd873af5ba4128376ae5aa863e5f55ee218fdc
[]
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
230
py
import sys s = int(input()) a = [] a.append(s) i = 1 while True: n = 0 if a[i-1] %2 ==0: n = a[i-1]/2 else: n = a[i-1]*3 +1 i +=1 if n in a: print(i) sys.exit() a.append(n)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3035286654d17c751f091358d055f45857303648
b136cbf689dfd1171679b1d7741ba910f2ed2161
/flask_appbuilder/messages.py
465d23c1e5a6b4d9d53374333a4046e1e9253990
[ "BSD-3-Clause" ]
permissive
dbongo/Flask-AppBuilder
7b34b582f10eef2877b010128ea3d7bfa6f23907
2de58428507afec0595fa762e977f539448878d5
refs/heads/master
2020-12-25T22:06:48.882882
2013-12-16T23:39:27
2013-12-16T23:39:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
from flask.ext.babel import lazy_gettext as _ """ This Module is not used. Just use it to automate Babel extraction """ auto_translations_import = [ _("Security"), _("List Users"), _("Base Permissions"), _("Views/Menus"), _("Permission on Views/Menus"), _("Search"), _("Back"), _("Save"), _("This field is required."),...
[ "danielvazgaspar@gmail.com" ]
danielvazgaspar@gmail.com
fc55a5be31881904c162e9a36f5926be2272163b
930ef8a8ec0338e497be3a9475af1b5244f01dc1
/drl_net.py
2ae907fa51e49a14821b1db1b815e50dc6c805d8
[]
no_license
xiaogaogaoxiao/DQN_user_grouping
837c48c051f32d848f135bebcea3410aeba68ca7
e694dcebacb74b1c0530adc892398616b15d0fc1
refs/heads/main
2023-04-17T07:46:08.182794
2021-04-30T15:14:42
2021-04-30T15:14:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,274
py
from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable import numpy as np from MecOpt import MecEnv import math import random print(torch.__version__) EPS_START = 0.8 EPS_END = 0.01 EPS_DECAY = 2000 steps_done = 0 ...
[ "noreply@github.com" ]
xiaogaogaoxiao.noreply@github.com
643fd19f16b4df78eeb49c578ac040f68bb0cae2
b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1
/tensorflow/python/kernel_tests/signal/dct_ops_test.py
51206abed17e08efa63d4f1a13a2483bc0fb34ff
[ "Apache-2.0" ]
permissive
uve/tensorflow
e48cb29f39ed24ee27e81afd1687960682e1fbef
e08079463bf43e5963acc41da1f57e95603f8080
refs/heads/master
2020-11-29T11:30:40.391232
2020-01-11T13:43:10
2020-01-11T13:43:10
230,088,347
0
0
Apache-2.0
2019-12-25T10:49:15
2019-12-25T10:49:14
null
UTF-8
Python
false
false
7,880
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "v-grniki@microsoft.com" ]
v-grniki@microsoft.com
cfd943a80e044add71dc7c4249a4404a20ce5e87
cb848d0c80abb04c080155d1502d22391423c4e8
/build_isolated/sick_ldmrs_driver/catkin_generated/pkg.develspace.context.pc.py
def09cbfec31e6271e0038e6e4a28f39cdfcd982
[]
no_license
MTU-Autobot/catkin_ws
d8bc9b0de46befc53282b9b7e6d338a7ff7e3a0c
cf104fe048c6101f50be1b87e181d80a4be3e770
refs/heads/master
2020-03-13T23:14:56.276075
2018-04-27T18:28:01
2018-04-27T18:28:01
131,331,599
0
1
null
null
null
null
UTF-8
Python
false
false
883
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ubuntu/catkin_ws/devel_isolated/sick_ldmrs_driver/include;/home/ubuntu/catkin_ws/src/sick_ldmrs_laser/sick_ldmrs_driver/include;/usr/include".split(';') if "/home/ubuntu/catkin_ws/devel_isolated/...
[ "spartanhaden@gmail.com" ]
spartanhaden@gmail.com
0690db07264c5795d1457e10640984b025aa63e7
155bf47fa1b33a31576f6b8b90aaa74cd41e352a
/lianjia-spider/test/date_test.py
bdb011ebe1d659ecb20cac9fcfe8c34d272f7d4a
[]
no_license
ares5221/Python-Crawler-Projects
af4ec40a26f4f69ef285a0edf0428192a594d4cd
45b496000631f0f3b887501d9d67f3e24f5e6186
refs/heads/master
2021-07-03T07:11:25.474055
2020-09-08T08:17:17
2020-09-08T08:17:17
145,980,513
3
1
null
null
null
null
UTF-8
Python
false
false
527
py
#!/usr/bin/env python # coding=utf-8 # author: zengyuetian import unittest from lib.utility.date import * class DateTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_time_string(self): self.assertEqual(len(get_time_string()), 14) def test_date...
[ "674361437@qq.com" ]
674361437@qq.com
02bdf2ff0b549bdfb9f180710387a1f670c585c1
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/466/usersdata/283/111275/submittedfiles/Av2_Parte2.py
37c67dbe12d8064c666d9cb7468d46f05bb3de9c
[]
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
549
py
# -*- coding: utf-8 -*- a=[] b=[] c=[] n=int(input('Digite o número de elementos: ')) while n<=0: print('Número inválido!') n=int(input('Digite o número de elemento: ')) for i in range(0,n,1): a.append(input('Digite um elemento para a: ')) for j in range(0,n,1): b.append(input('Digite um elemento para b...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
3b436ade09c46670b26faecdb2da74694f10439e
058c258ecb9d456dce6dc9ff41d9d2c9e5a5c489
/view/plat/Content.py
c46abb112ef988737d99b17d3bb343e70441c33e
[]
no_license
lukoou3/Toolbox
7f64f49ab5b24e8ff3a7334a794a1ef8be520dc0
d23c1531adc4b03c8df043e05daa6dec4f3afaa9
refs/heads/master
2020-07-26T22:55:00.141722
2020-03-20T03:35:37
2020-03-20T03:35:37
208,787,930
0
0
null
null
null
null
UTF-8
Python
false
false
2,312
py
from PyQt5.QtWidgets import QTabWidget from view.content.DbTablesWidget import DbTablesWidget from view.content.FileRenameWidget import FileRenameWidget from view.content.JsonParseWidget import JsonParseWidget from view.content.MarkdownWidget import MarkdownWidget from view.content.SqlParseWidget import SqlParseWidget...
[ "18638489474@163.com" ]
18638489474@163.com
313a00b61f3722dff02dbad8119a1b9e42205264
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02715/s675628627.py
35d438a031aa3325f3538e0e2d2ff10f00f4b32d
[]
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
314
py
N, K = map(int, input().split()) mod = 10 ** 9 + 7 G = [1] * (K + 1) #そのindexを最大公約数にもつ数列の数 ans = 0 for k in range(K, 0, -1): x = K // k t = int(pow(x, N, mod)) for j in range(x - 1): t -= G[(j + 2) * k] G[k] = t ans += t * k ans %= mod print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3ecae40e32b5b7054eba8fd90a4dc60f9c611a72
9a358fbd62eaed4ef96c7a0c607322e11aa7d3bf
/api/com_dayoung_api/cop/act/model/actor_ai.py
c54bc66f60fa2e0f084ebbe04e5208998db8dea6
[]
no_license
ysk1026/project_dayoungi
2b8a8cb569f1687024a00e7f3a3af6501aa67fb1
cecb3a42496164b84ece1912932fe58de8537e46
refs/heads/master
2023-01-20T14:38:17.898499
2020-11-28T08:25:06
2020-11-28T08:25:06
311,549,208
0
0
null
null
null
null
UTF-8
Python
false
false
6,101
py
from sklearn.tree import DecisionTreeClassifier from sklearn.tree import export_graphviz # pip install sklearn # conda install python-graphviz import pydotplus # pip install pydotplus from IPython.core.display import Image from IPython.display import display # pip install Ipython # conda install -c anaconda ipython fr...
[ "fkqoseka@gmail.com" ]
fkqoseka@gmail.com
c7f06138cb8e969387fdcd3d5ab3508c3ed9bf9d
297b5e4e39fe9d5add2face0e246cd5317caa005
/tests/settings.py
544d69eb06f49d49e7af36cc41efd90486f0828c
[ "MIT" ]
permissive
alexdlaird/django-maintenance-mode
b2073971062839c5ee8c9fe5a65f99206a250a83
b71d7d2d0c9a7af3f81e23c40b2010b9413aba79
refs/heads/master
2021-08-29T20:18:55.602310
2017-10-18T13:52:20
2017-10-18T13:52:20
114,284,763
0
0
null
2017-12-14T18:45:03
2017-12-14T18:45:03
null
UTF-8
Python
false
false
1,486
py
# -*- coding: utf-8 -*- import django import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 'django-maintenance-mode' ALLOWED_HOSTS = ['*'] INSTALLED_APPS = [ 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'maintenance_mode'...
[ "fabio.caccamo@gmail.com" ]
fabio.caccamo@gmail.com
961aa82417237ecf10d6d5d56faa8015967b798a
1dfba6d8c60a534d6bdeb985697fba913da5fe9b
/src/mcedit2/rendering/loadablechunks.py
39ce8cd7239bb07b73d8222a3f8fb9d0aecc2e1f
[ "BSD-3-Clause" ]
permissive
shipbiulder101/mcedit2
2d88a6933bac3010f5bedcdd65d542587841a19f
44179472b7834c803da243a82d731f9ef555764d
refs/heads/master
2021-01-12T21:52:56.581572
2015-10-20T21:30:34
2015-10-20T21:30:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,704
py
""" ${NAME} """ from __future__ import absolute_import, division, print_function, unicode_literals from collections import defaultdict import logging import numpy from OpenGL import GL from mcedit2.rendering.scenegraph import scenenode, rendernode from mcedit2.util.glutils import Texture, gl from mcedit2.renderin...
[ "codewarrior@hawaii.rr.com" ]
codewarrior@hawaii.rr.com
6eab8917304d95312065f0cf0e49b6057e96f5c3
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/131/usersdata/232/37596/submittedfiles/al10.py
4832cdecb96c52b8bdafae42640590571de174b0
[]
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
242
py
# -*- coding: utf-8 -*- #NÃO APAGUE A LINHA ACIMA. COMECE ABAIXO DESTA LINHA n=int(input('Digite o número de termos a ser calculado: ')) i=2 pi=1 for i in range (1,n+1,1): pi=pi*(i/(i-1))*(i/(i+1)) pi=pi*2 print('%.5f'%pi)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
05ad692df50100b660ac54b791457f586c290261
a209ce9617d2e135954d1e713b66540c252e3ea6
/myvenv/bin/easy_install-3.8
0f5e416a38cdba8d6b743a9eb2177223b5a34e2a
[]
no_license
margaux-byte/mon-nouveau-blog
cff654eb216cb31180348056a483b6f50c7b206c
c16ff0300377ec7a450181c8c61b12a3096560b9
refs/heads/master
2020-08-22T10:05:46.031358
2019-10-20T13:24:54
2019-10-20T13:24:54
216,371,265
0
0
null
null
null
null
UTF-8
Python
false
false
284
8
#!/Users/carlamoltosylvander/Documents/djangogirls/myvenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "you@example.com" ]
you@example.com
5c72c3a1d0abf844c2e1fb52ff54d7df6d7b1685
4d98ac51b576e1d104cec50ecb510202b3f1fdaa
/pkg_config/__main__.py
f07c587299aaaed79dcbde454fb37c673d990455
[]
no_license
cournape/pkg-config
8b0ef687a4e0888d905d3eeb3fe56dd8e618a38c
ac7a6e61140b2cc588b514d02c62bdc401f41d73
refs/heads/master
2021-01-22T02:13:02.314974
2017-02-06T00:14:20
2017-02-06T00:14:20
81,031,538
0
0
null
null
null
null
UTF-8
Python
false
false
2,384
py
from __future__ import print_function import argparse import sys from pkg_config.errors import PCFileNotFound from pkg_config._commands import find_pc_file, list_all from pkg_config._models import PackageInfo VERSION = "0.0.1" SEARCH_DIRECTORIES = [ "/usr/local/lib/pkgconfig", "/usr/local/share/pkgconfig",...
[ "cournape@gmail.com" ]
cournape@gmail.com
b069a9412f83db8f978c0847ed1620c7df76136a
eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429
/data/input/aldebaran/qibuild/python/qisrc/snapshot.py
f59cbcb2a82c4aea7f2a376ac8bec88db32698d8
[]
no_license
bopopescu/pythonanalyzer
db839453bde13bf9157b76e54735f11c2262593a
8390a0139137574ab237b3ff5fe8ea61e8a0b76b
refs/heads/master
2022-11-22T02:13:52.949119
2019-05-07T18:42:52
2019-05-07T18:42:52
282,079,884
0
0
null
2020-07-23T23:46:09
2020-07-23T23:46:08
null
UTF-8
Python
false
false
4,166
py
## Copyright (c) 2012-2016 Aldebaran Robotics. All rights reserved. ## Use of this source code is governed by a BSD-style license that can be ## found in the COPYING file. """Functions to generate and load snapshot.""" import collections import json from qisys import ui import qisys.error import qisrc.git import qi...
[ "rares.begu@gmail.com" ]
rares.begu@gmail.com
675c537063a61902fa38a06372e2646e5734afe6
5ddcd95c0bbf27573f60cffd43fbe872432bb8fe
/test/language/offsets/python/ParameterOffsetTest.py
b833caa24291a1f9d3c1c94b74a316d188e65caa
[ "BSD-3-Clause" ]
permissive
chenpeihua/zserio
def7ba52b27a20673561e9f0fa9a78b12627fcc1
c021d6f943f25c2eb7d91712eb7bd5de13f9c8bc
refs/heads/master
2021-05-18T11:33:07.688831
2020-06-21T13:25:50
2020-06-21T13:25:50
251,227,439
0
0
BSD-3-Clause
2020-06-21T13:25:51
2020-03-30T07:04:56
null
UTF-8
Python
false
false
4,049
py
import unittest import zserio from testutils import getZserioApi class ParameterOffsetTest(unittest.TestCase): @classmethod def setUpClass(cls): cls.api = getZserioApi(__file__, "offsets.zs").parameter_offset def testBitSizeOf(self): createWrongOffset = False school = self._create...
[ "mikulas.rozloznik@eccam.com" ]
mikulas.rozloznik@eccam.com
ca361226e992558e3c170b106de71efa1cc2421d
cb491f83882fea0627460f1de1e223309eb930c3
/src/part_two/ex10.py
be95f30ad8ea6464077227c7198a09e3cf3ff2f4
[]
no_license
impreza555/geekbrains-python-exercises
4b1bef4a284ac1c6f4c9191644f31f2f99a90711
1e56b0820cc85f516c132d8c8aa0f8c3c60daafb
refs/heads/master
2022-06-17T17:51:36.540907
2020-05-04T16:25:20
2020-05-09T00:08:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
649
py
""" Есть файл example.txt, в нем записано несколько строк необходимо выполнить подсчет количества строк и количества слов в каждой строке. Вывести результат в формате: строк - X, слов - Y Пример файла: ``` first second-line third line fourth line ``` """ with open('example.txt') as f: rows = f.readlines() wo...
[ "artyom@manchenkoff.me" ]
artyom@manchenkoff.me
5ce8c78a24d4151458505b17c21bcfdc5fff63f7
dd098f8a93f787e38676283679bb39a290ba28b4
/samples/openapi3/client/3_0_3_unit_test/python-experimental/unit_test_api/model/ipv6_format.py
ec484a1d8a41c468b910cc4568018f0f6d1782d7
[ "Apache-2.0" ]
permissive
InfoSec812/openapi-generator
727c0235d3bad9b85ac12068808f844287af6003
e0c72702c3d5dae2a627a2926f0cddeedca61e32
refs/heads/master
2022-10-22T00:31:33.318867
2022-08-20T14:10:31
2022-08-20T14:10:31
152,479,633
1
0
Apache-2.0
2023-09-04T23:34:09
2018-10-10T19:38:43
Java
UTF-8
Python
false
false
628
py
# coding: utf-8 """ openapi 3.0.3 sample spec sample spec for testing openapi functionality, built from json schema tests for draft6 # noqa: E501 The version of the OpenAPI document: 0.0.1 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 import typin...
[ "noreply@github.com" ]
InfoSec812.noreply@github.com
53fac1b43cd3394624481aba748efd21b8096893
c0e819c144aa85b860c9da29d5b7a93d5fad1ee6
/exercises/05_basic_scripts/test_task_5_1.py
68d9cc60b0dfa25c038ef7e435b50cf410968caf
[]
no_license
haskhr/pyneng-examples-exercises-en
ecf9fa78e57409cbab3e94d3d7a952ac966c0477
52e804f2942afefd626ebbddd8f4ec8a2b467b69
refs/heads/main
2023-03-12T14:41:43.293908
2021-03-10T05:32:25
2021-03-10T05:32:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
from importlib import reload import sys import pytest # Checking that the test is called via pytest ... and not python ... from _pytest.assertion.rewrite import AssertionRewritingHook if not isinstance(__loader__, AssertionRewritingHook): print(f"Tests should be called using this expression:\npytest {__file__}\n...
[ "nataliya.samoylenko@gmail.com" ]
nataliya.samoylenko@gmail.com
a55f535653ad76ffb57e459e3eb819f76a4d41bc
962feeffee41625ff841f6590f97bb09cef9be4c
/torch_glow/tests/nodes/sigmoid_test.py
d7959a93086ff7d53a580260fb035b023882494c
[ "Apache-2.0" ]
permissive
SushantDaga/glow
8c4c3fbc58c3ae760bdd8e1df2e8c05a72ff07bc
aab22c3e0421dadd29950c2ebfa88b86027cecf5
refs/heads/master
2022-11-03T08:39:33.958233
2020-06-19T17:03:14
2020-06-19T17:05:42
273,568,864
2
0
Apache-2.0
2020-06-19T19:12:31
2020-06-19T19:12:30
null
UTF-8
Python
false
false
781
py
from __future__ import absolute_import, division, print_function, unicode_literals import torch import torch_glow from tests.utils import jitVsGlow import unittest class TestSigmoid(unittest.TestCase): def test_sigmoid_basic(self): """Basic test of the PyTorch sigmoid Node on Glow""" def sigmoi...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
c1c5cf8d4cdec5bc603ee6a8b608d8826d56dc84
4910c0f3d03935fc8ee03f1e9dc20dfdb2c7c04b
/Resueltos/Luciano_Chavarria/Python/WERTYU.py
95ff18884e0265efec156419c034b72763c5a589
[]
no_license
roca12/gpccodes
ab15eeedc0cadc0735651262887b44f1c2e65b93
aa034a3014c6fb879ec5392c51f9714bdc5b50c2
refs/heads/master
2023-02-01T13:49:27.563662
2023-01-19T22:50:58
2023-01-19T22:50:58
270,723,328
3
5
null
null
null
null
UTF-8
Python
false
false
566
py
while True: try: res = '' l = ('`', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', 'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '[', ']','\\', 'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ';', "'", 'Z', 'X', 'C', 'V', 'B', 'N', 'M', ',', '.', ...
[ "noreply@github.com" ]
roca12.noreply@github.com
81ff25c56aa409ab69cb2482550934bbdb000ca9
d0758e0ca004226cec8ad8b26c9565c98534a8b8
/02-core/notebook2slides.py
0cb0af330774502355decf098328bb702e6ddd7c
[]
no_license
pythoncanarias/eoi
334d64a96afc76ac1fa10282378f291b6d8c94b3
349367254f85e3e4273cede067ca950913a1332c
refs/heads/master
2023-07-06T08:00:11.366345
2023-06-30T15:19:33
2023-06-30T15:19:33
222,742,870
26
19
null
2023-06-25T16:03:46
2019-11-19T16:41:25
Jupyter Notebook
UTF-8
Python
false
false
2,458
py
#!/usr/bin/env python ''' Inspired by https://goo.gl/SYWRbM and https://t.ly/8LAeY Convert a jupyter notebook to slides (html) and apply some changes to default settings (reveal.js, mathjax, ...) Usage: > nb.py <notebook.ipynb> ''' import fileinput import re import shlex import subprocess import sys ...
[ "euribates@gmail.com" ]
euribates@gmail.com
36c86b6336cccb99ca8f04fc10b155ab44100c37
890612db0bc6209134b6d7017775d5a86604b285
/tests/data/text/bpe_test.py
33e5ecb73b283cce3f305c3f6b8775c656b05f4c
[ "Apache-2.0" ]
permissive
hiyoung-asr/st
6277fc5c1f123b5c6b09bb9ebbad779f6e08c987
634a71e3f1860c0db2f4f304a7828bb5560c34f0
refs/heads/master
2023-03-15T04:30:15.652714
2020-11-12T03:47:18
2020-11-12T03:47:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import tempfile import tensorflow as tf from neurst.data.text.bpe import BPE def test(): codes = ["技 术</w>", "发 展</w>"] tmp_file = tempfile.NamedTemporaryFile(delete=False) with tf.io.gfile.GFile(tmp_file.name, "w") as fw: fw.write("version...
[ "zhaochengqi.d@bytedance.com" ]
zhaochengqi.d@bytedance.com
b7723e87a26067ac539b187244e80cd998ae5c3a
f5cd89e46b7e9fb22b422557a3c4d0354e501110
/app/main/admin.py
b8aafe5cb4c14a84808c29044c111203e8256f69
[]
no_license
Alerion/Pharmacology-DB
14d081fbab80db974258ebad7db4ab285ccdfda5
86ef48feecedce6fc1adc9aa1c4363044e9454f0
refs/heads/master
2021-07-25T00:55:14.142794
2021-02-12T18:18:12
2021-02-12T18:18:12
302,310
1
2
null
null
null
null
UTF-8
Python
false
false
670
py
# -*- coding: utf-8 -*- from django.contrib import admin from models import Drug, FarmAction, Illness from django.http import HttpResponse class DrugAdmin(admin.ModelAdmin): def edit_vector(self, request, pk): return HttpResponse('Hello %s' % pk) def get_urls(self): from django.conf.urls.def...
[ "alerion.um@gmail.com" ]
alerion.um@gmail.com
140d8a10408bebea7a12712c607cf0a7278e11a1
010c5fbc97731286be00028ff33fc981d943bca3
/primal/src/code/impute/tests/data/pedigree/pedigree_old_study.py
bffae63b82e6442b7adfd83f8252213996c0fefb
[]
no_license
orenlivne/ober
6ce41e0f75d3a8baebc53e28d7f6ae4aeb645f30
810b16b2611f32c191182042240851152784edea
refs/heads/master
2021-01-23T13:48:49.172653
2014-04-03T13:57:44
2014-04-03T13:57:44
6,902,212
7
1
null
null
null
null
UTF-8
Python
false
false
1,911
py
''' ============================================================ A pedigree loaded from an input file from a previous study at the Ober Lab. Provided by Jessica and Gaixin. Includes node annotations (generated by Mark) - old_generation #. Here 'old' refers to 'from the study'. Created on May 30, 2012 @author: Oren...
[ "oren.livne@gmail.com" ]
oren.livne@gmail.com
5aaf61fe69ee9ad1529a5d0daae9be1d9ed286b2
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-gsn-edf/gsn-edf_ut=3.0_rd=0.8_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=82/sched.py
485e768f9a31d6cd6d14a9155b7252114127319a
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
356
py
-X FMLP -Q 0 -L 3 96 300 -X FMLP -Q 0 -L 3 80 400 -X FMLP -Q 0 -L 3 75 400 -X FMLP -Q 1 -L 1 63 250 -X FMLP -Q 1 -L 1 60 200 -X FMLP -Q 1 -L 1 48 150 -X FMLP -Q 2 -L 1 41 300 -X FMLP -Q 2 -L 1 33 125 -X FMLP -Q 2 -L 1 32 100 -X FMLP -Q 3 -L 1 27 200 -X FMLP -Q 3 -L 1 26 150 -X FMLP -Q ...
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
6e67540d0a1f799bb87d998cdd83312283346dab
3c8701e04900389adb40a46daedb5205d479016c
/test/fortresstest/fortress_lfzb/test.py
8d8c20326ce571cfe13ee15976a521188594afda
[]
no_license
huboa/xuexi
681300653b834eaf506f49987dcca83df48e8db7
91287721f188b5e24fbb4ccd63b60a80ed7b9426
refs/heads/master
2020-07-29T16:39:12.770272
2018-09-02T05:39:45
2018-09-02T05:39:45
73,660,825
1
0
null
null
null
null
UTF-8
Python
false
false
338
py
#!/bin/python # # -*- coding: utf-8 -*- # import sys,json,urllib,urllib2 # reload(sys) # sys.setdefaultencoding('utf-8') # # url = "http://cd-ztree-api.inc-mtime.com/getalluserpassword" # result = urllib2.urlopen(url).read() # result = json.loads(result) # # for i in result: # for k,v in i.items(): # if k == 'jie.wa...
[ "wxcr11@gmail.com" ]
wxcr11@gmail.com
e853121de9b9ac889b80e8139983297bc65d2faa
7a88fc18f30d5dd3ac935877d4d9268a56c296be
/di_website/blog/migrations/0020_auto_20191023_0650.py
55f86e1326edb75e8034c449a21e59133ae334f2
[]
no_license
devinit/DIwebsite-redesign
745a480b7ba0feffa34dc664548ee4c5a7b4d470
9ec46823c67cdd4f35be255896bf30d8f6362666
refs/heads/develop
2023-08-30T04:06:20.951203
2023-08-07T12:06:07
2023-08-07T12:06:07
184,287,370
1
0
null
2023-08-28T14:34:57
2019-04-30T15:29:25
HTML
UTF-8
Python
false
false
782
py
# Generated by Django 2.2.2 on 2019-10-23 06:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0019_auto_20191011_1357'), ] operations = [ migrations.AlterField( model_name='blogarticlepage', name='hero_...
[ "alex.k.miller@gmail.com" ]
alex.k.miller@gmail.com
3c6b94c42cc74ed86c4168785aa1625444219fae
c2d436fecd486a412eae5171882110e324b2fc1c
/chap8/78.py
ec1d6a31f6f9efeb259b6ef3476282a255d11d7d
[]
no_license
uenewsar/nlp100fungos
0150bacf835f3734dd76a25b079ec6c61efb4d83
7f745abb97c3129818ec6cf5f69abca15c50e451
refs/heads/master
2020-04-14T23:47:20.482910
2019-01-12T13:32:09
2019-01-12T13:32:36
164,216,276
0
0
null
null
null
null
UTF-8
Python
false
false
8,023
py
# -*- coding: utf-8 -*- ''' 78. 5分割交差検定 76-77の実験では,学習に用いた事例を評価にも用いたため, 正当な評価とは言えない.すなわち,分類器が訓練事例を丸暗記する 際の性能を評価しており,モデルの汎化性能を測定していない. そこで,5分割交差検定により,極性分類の正解率,適合率,再現率, F1スコアを求めよ. ''' import re import sys import numpy as np import stemming.porter2 from sklearn.linear_model import LogisticRegression # as stemming.porter...
[ "none@none" ]
none@none
49bd991042559fc02150d178e511e172a8bb31e5
5f845ebbc2c9b40eea702833c91928ae90ae7ee5
/data-structures/array-left-rotation.py
d20dde7750484854c21b9132f1597e1f7a1f439a
[ "MIT" ]
permissive
imgeekabhi/HackerRank
7a1917fee5af01976aebb9c82aa1045a36487016
7fe4a308abad85ce446a28328324be480672e6fc
refs/heads/master
2022-12-28T19:13:49.098090
2020-10-11T09:29:08
2020-10-11T09:29:08
300,023,395
1
0
MIT
2020-09-30T18:48:12
2020-09-30T18:48:11
null
UTF-8
Python
false
false
408
py
#!/bin/python3 import sys def leftRotation(a, d): out = list(a) a_len = len(a) for ind, el in enumerate(a): out[(ind + a_len - d) % a_len] = el return out if __name__ == "__main__": n, d = input().strip().split(' ') n, d = [int(n), int(d)] a = list(map(int, input().strip(...
[ "sergey.n.nemov@gmail.com" ]
sergey.n.nemov@gmail.com
1c157b3dc596401cbdacaf303f49abd65fd7dc33
a686db263a544c42ccfea566f19fba5443515357
/server.py
7a61d8d1b1fc25d4593cfbce61fbe3bf85d13541
[]
no_license
merli027/apis
8fd3ea6489f416d2dd1304db51dae5d3a23cffc1
4136e10fcbdfc36b7665233eddce913888e1e59f
refs/heads/master
2022-12-13T13:03:05.026252
2020-02-25T22:28:05
2020-02-25T22:28:05
243,116,270
0
0
null
2022-12-08T03:41:20
2020-02-25T22:27:30
HTML
UTF-8
Python
false
false
2,292
py
from flask import Flask, render_template, request from pprint import pformat import os import requests app = Flask(__name__) app.secret_key = 'SECRETSECRETSECRET' API_KEY = os.environ['TICKETMASTER_KEY'] @app.route('/') def homepage(): """Show homepage.""" return render_template('homepage.html') @app....
[ "you@example.com" ]
you@example.com
95f4c2bf1d1943ec5cf66207d1c6179d21703460
f47863b3a595cbe7ec1c02040e7214481e4f078a
/plugins/scan/esccms/2555.py
dbdde80f807c5821d4d411301730134a2ac42e6a
[]
no_license
gobiggo/0bscan
fe020b8f6f325292bda2b1fec25e3c49a431f373
281cf7c5c2181907e6863adde27bd3977b4a3474
refs/heads/master
2020-04-10T20:33:55.008835
2018-11-17T10:05:41
2018-11-17T10:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
#!/usr/bin/evn python #-*-:coding:utf-8 -*- #Author:404 #Name:易创思教育建站系统未授权访问可查看所有注册用户 #Refer:http://www.wooyun.org/bugs/wooyun-2010-086704 def assign(service,arg): if service=="esccms": return True,arg def audit(arg): url=arg+"operationmanage/selectunitmember.aspx" code,head,res,errcode,_=cu...
[ "zer0i3@aliyun.com" ]
zer0i3@aliyun.com
383c97c1e717ee09c481c9a9bcaafaf22a6aa0cd
4144df22392350035a9a24fcbc23fd1c6bce5c12
/Lib/glyphNameFormatter/rangeProcessors/katakana.py
080574bddaaaa12ee38391a29264d9162345e529
[ "BSD-3-Clause", "Adobe-Glyph" ]
permissive
danielgrumer/glyphNameFormatter
55b6076684bed7ff4cc6e37ce4a0bb0e2ce86a4a
9a41b3ef02c01cd18afe0232f6e436a2f7379178
refs/heads/master
2020-12-11T05:35:47.835908
2016-03-19T09:50:33
2016-03-19T09:50:33
53,578,090
0
0
null
2016-03-10T11:07:31
2016-03-10T11:07:30
null
UTF-8
Python
false
false
357
py
def process(self): self.edit("KATAKANA-HIRAGANA", "kana") self.edit("SOUND MARK") self.edit("MARK") self.edit("LETTER") self.edit("SMALL", "small") self.editToFinal("KATAKANA", "katakana") self.lower() self.compress() if __name__ == "__main__": from glyphNameFormatter.test import p...
[ "erik@letterror.com" ]
erik@letterror.com
d1bdf920154ffffe0e5e7314a926015d1e892b85
90c6262664d013d47e9a3a9194aa7a366d1cabc4
/tests/operations/opR2kM14LSbSGpKxeZWzfXaj32AP29B2iJ88hss1mZRxXAMkR2U/test_forge_opR2kM.py
fe34ad1cf8192a126f57b15b7ea1af6b39a5c26b
[ "MIT" ]
permissive
tqtezos/pytezos
3942fdab7aa7851e9ea81350fa360180229ec082
a4ac0b022d35d4c9f3062609d8ce09d584b5faa8
refs/heads/master
2021-07-10T12:24:24.069256
2020-04-04T12:46:24
2020-04-04T12:46:24
227,664,211
1
0
MIT
2020-12-30T16:44:56
2019-12-12T17:47:53
Python
UTF-8
Python
false
false
567
py
from unittest import TestCase from tests import get_data from pytezos.operation.forge import forge_operation_group class OperationForgingTestopR2kM(TestCase): def setUp(self): self.maxDiff = None def test_forge_opR2kM(self): expected = get_data( path='operations/opR2kM14...
[ "mz@baking-bad.org" ]
mz@baking-bad.org
41b9f5fefd62fafb4c0703fcbb3f4278fb7479a8
8e1668e35a8df9968ab14d16db089b51dbe6dd51
/python/algorithms/arrays/distributed_candies.py
36ce7af5034497a847bd5c0a47921763dfd79336
[]
no_license
Chalmiller/competitive_programming
f1ec0184d1ff247201522ab90ca8e66b3f326afc
b437080d1ba977c023baf08b7dc5c3946784e183
refs/heads/master
2021-03-24T05:11:59.383916
2020-08-24T22:07:41
2020-08-24T22:07:41
247,519,998
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from typing import * import collections class Solution: def distributeCandies(self, candies: List[int]) -> int: return min(len(candies) / 2, len(set(candies))) obj = Solution() print(obj.distributeCandies([1,1,2,3]))
[ "chalmiller1@gmail.com" ]
chalmiller1@gmail.com
340c22294da42b53386bdaea4cfe8593715817c1
644b019a4792b6c7d9e5352e6330069850cc07e7
/dentexchange/apps/matches/jobs/daily/periodic_automatches_email.py
a7eb338df9d3424e9594a60e71c556e2f72d00b6
[ "BSD-3-Clause" ]
permissive
jpchauvel/dentexchange
db0611c8c45365db30bdc15e3005c6eeac104c73
58ae303e842404fc9e1860f294ec8044a332bef3
refs/heads/master
2021-10-10T12:19:00.985034
2014-09-24T03:42:20
2014-09-24T03:42:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# -*- coding:utf-8 -*- import calendar from django_extensions.management.jobs import DailyJob from django.utils.timezone import now from ...tasks import SendPeriodicAutomatchesEmailTask from ... import constants class Job(DailyJob): help = ''' Sends periodic email notifications to users notifying the total ...
[ "jchauvel@gmail.com" ]
jchauvel@gmail.com
4e7cd1f106c73485b089537adf4a40e89a4adc54
aa0270b351402e421631ebc8b51e528448302fab
/sdk/servicefabricmanagedclusters/azure-mgmt-servicefabricmanagedclusters/generated_samples/application_get_operation_example.py
f7d2aec71c49e97b87b077dfa6dfe7232f1e77d0
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
1,724
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" ]
fangchen0601.noreply@github.com
d4f4e5362e3781d0329078dc23911c801727ea8a
3806db5b4bb7a638f30c818a29ccaf2b0ddb2836
/test_188.py
184ae4a7f28d2b1a7ebb44b0521862a3a9e86548
[]
no_license
EomAA/fenics-qa
d0a687a7b84c51417e96eeeef9855c0d4ba27dea
c37a36a14450d0e7f6432c4726c5d96e0d6c4e96
refs/heads/master
2021-12-15T12:07:10.316478
2017-08-18T09:16:01
2017-08-18T09:16:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
from dolfin import * import numpy as np # Create mesh and define function space mesh = UnitSquareMesh(4, 4) V = FunctionSpace(mesh, "Lagrange", 1) u_e=Expression('1+x[0]*x[0]+2*x[1]*x[1]') #exact solutin # Define Dirichlet boundary (x = 0 or x = 1) class Left(SubDomain): def inside(self, x, on_...
[ "miroslav.kuchta@gmail.com" ]
miroslav.kuchta@gmail.com
3c53678e97a6f2552793138d9aeca60f467499e7
3a121f4953c430e450c448417ca40e7dfae9db9a
/analysis/visualization.py
6efc277f9555343a2669a6bfd4681c32de907bb9
[ "MIT" ]
permissive
sadscv/sentiment.datalogue
cdcbaa71a16be07f99f6ae502e2da3a4df08cd3f
3e7bde9e03394774bfab2582bd936c090639ddc2
refs/heads/master
2021-05-01T21:53:53.478139
2017-03-01T08:11:06
2017-03-01T08:11:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,051
py
import numpy as np import matplotlib.pyplot as plt import seaborn as sns import sys, os sns.set_style('white') def training_plot(history, outfile, metric='categorical_accuracy', title=''): """ Plot training accuracy for each epoch """ ## Set output file for plot basepath = os.path.split(os.path.exp...
[ "zafarali.ahmed@gmail.com" ]
zafarali.ahmed@gmail.com
a94bd8b5497a0c76c0e2d552e57e1fbcfae2cd6f
8f436dff6c0681a673d517a1973b6f6b9a43674e
/liberapay/testing/mangopay.py
4239d88976094ed3b87124cb95f85d07e308d40d
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
ddai00bit/liberapay.com
fc483c9b18dcc016bac84f5b4ccf397a3cb25214
78c5eb910877e936b91d1dae274b8cf1f82f3191
refs/heads/master
2023-04-05T21:44:45.641171
2021-05-04T07:28:31
2021-05-04T07:28:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,193
py
import itertools from unittest import mock from mangopay.resources import ( BankAccount, CardRegistration, NaturalUser, Wallet, ) import requests from liberapay.i18n.currencies import Money from liberapay.models.exchange_route import ExchangeRoute from liberapay.testing import Harness from liberapay.testing.vcr i...
[ "changaco@changaco.oy.lc" ]
changaco@changaco.oy.lc
316a57fe50150f51e9655515eaec2356b5cbcff5
8f64d50494507fd51c0a51010b84d34c667bd438
/BeautyForMe/myvenv/Lib/site-packages/phonenumbers/shortdata/region_GU.py
05be0b455abfd583e4469c62b75308e3f386e1f1
[ "MIT" ]
permissive
YooInKeun/CAU_CSE_Capstone_3
5a4a61a916dc13c8635d25a04d59c21279678477
51405c4bed2b55661aa0708c8acea17fe72aa701
refs/heads/master
2022-12-11T15:39:09.721019
2021-07-27T08:26:04
2021-07-27T08:26:04
207,294,862
6
1
MIT
2022-11-22T04:52:11
2019-09-09T11:37:13
Python
UTF-8
Python
false
false
654
py
"""Auto-generated file, do not edit by hand. GU metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_GU = PhoneMetadata(id='GU', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='9\\d\\d', possible_length=(3,)), to...
[ "keun0390@naver.com" ]
keun0390@naver.com
35e1031be1362e0bcb23587c0b39087847e40de3
db053c220094368ecb784fbe62375378c97457c2
/680.valid-palindrome-ii.py
f8da057ab7cd5e88321a11b6221d0afbf1d7bfce
[]
no_license
thegamingcoder/leetcode
8c16e7ac9bda3e34ba15955671a91ad072e87d94
131facec0a0c70d319982e78e772ed1cb94bc461
refs/heads/master
2020-03-22T14:51:45.246495
2018-07-09T00:00:06
2018-07-09T00:00:06
140,211,147
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
# # [680] Valid Palindrome II # # https://leetcode.com/problems/valid-palindrome-ii/description/ # # algorithms # Easy (32.37%) # Total Accepted: 34.1K # Total Submissions: 105.4K # Testcase Example: '"aba"' # # # Given a non-empty string s, you may delete at most one character. Judge # whether you can make it a ...
[ "sharanbale@yahoo-inc.com" ]
sharanbale@yahoo-inc.com
acd12224b507826a13418f4571a4bf7e1932ceaa
74ace85cc5b5e721f6c2433153277c60135f356a
/jlm/src/jlm/tests/conftest.py
467723d5465a376bcfd3f986602b9c1e1fd87ea7
[ "MIT" ]
permissive
tkf/JuliaManager.jl
c24839777bf8d11bf72eeeaf0d0fe5d59715c1fe
be4586e0965a7beb6248ea503ac48ac3d43ec0f0
refs/heads/master
2020-05-03T16:59:36.062145
2020-02-10T08:47:38
2020-02-10T08:47:38
178,736,172
9
2
MIT
2020-02-10T08:47:40
2019-03-31T20:04:01
Python
UTF-8
Python
false
false
311
py
import pytest # type: ignore from .. import cli from .testing import changingdir @pytest.fixture def cleancwd(tmp_path): newcwd = tmp_path / "cleancwd" with changingdir(newcwd): yield newcwd @pytest.fixture def initialized(cleancwd): cli.run(["--verbose", "init"]) return cleancwd
[ "aka.tkf@gmail.com" ]
aka.tkf@gmail.com
076707f145a54563bd0cbe046327482dd9339a70
0728513cfd064b8f6c130d42ad8ef79f49b6b9b2
/test/test_tpc_gain.py
49c8104d09f97361636986a1b645e67262dc1a47
[]
no_license
XENONnT/pmts-api-client
7e70574e45c3e1e639b066513c7f07047ac4dd30
2b1025fc6cec01726e2d555f609c148891c6d879
refs/heads/master
2022-12-10T02:04:12.942994
2020-09-27T15:39:09
2020-09-27T15:39:09
276,297,656
0
0
null
null
null
null
UTF-8
Python
false
false
1,886
py
# coding: utf-8 """ XENON PMT API API for the XENON PMT database # noqa: E501 The version of the OpenAPI document: 1.0 Contact: joe.mosbacher@gmail.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import datetime import xepmts from x...
[ "joe.mosbacher@gmail.com" ]
joe.mosbacher@gmail.com
3cacf1d37e787bfb185abf4a6735e3618ff9d9a5
2491df3f643539e6055bb0b2a4b659474c57491f
/computeFactorial.py
6c4b4ad44d45c903c4df51a2cc44c0863dc5ec5f
[]
no_license
ghilbing/Ejemplos
85efc91346028b8a3d26d7680d9286b26234c771
339a45ef48c9a61002a01f7c823cc42d34fab409
refs/heads/master
2021-05-13T13:58:33.010157
2018-02-26T20:44:44
2018-02-26T20:44:44
116,724,506
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
def factorial(A): if A <= 1: return 1 else: A = A * factorial(A-1) return A A = 6 print factorial(A)
[ "ghilbing@gmail.com" ]
ghilbing@gmail.com
f1edb501954b262818ad2951e48337e3c1f506aa
a5103b7d5066138ac1a9aabc273361491a5031cd
/daily/8/DeepLearning/myproject/beatifulFace/blend.py
bbc8d6693925aac1e83b1ac66618bd37ee1b3f74
[]
no_license
mckjzhangxk/deepAI
0fa2f261c7899b850a4ec432b5a387e8c5f13e83
24e60f24b6e442db22507adddd6bf3e2c343c013
refs/heads/master
2022-12-13T18:00:12.839041
2021-06-18T03:01:10
2021-06-18T03:01:10
144,862,423
1
1
null
2022-12-07T23:31:01
2018-08-15T14:19:10
Jupyter Notebook
UTF-8
Python
false
false
4,159
py
import cv2 import numpy as np from collections import defaultdict from scipy.sparse import csc_matrix from scipy.sparse.linalg import spsolve,cg,eigsh def gauss_pyramid(I): ret=[I] n=int(np.ceil(np.log2(min(I.shape[:2])//16))) for i in range(1,n+1): ret.append(cv2.pyrDown(ret[i-1])) return ...
[ "mckj_zhangxk@163.com" ]
mckj_zhangxk@163.com
f727a53af8f9c8d1bfa78ce5468ab0fbad85aca9
abc422f58ad053bcbb6653ba15b66e46d220a199
/tcutils/pkgs/Traffic/traffic/utils/util.py
61b1ab3bf3f6a08f841d5824248dd1046f7f4d8e
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
tungstenfabric/tf-test
d3efff59bca931b614d0008260b2c0881d1fc009
4b9eca7eb182e5530223131ecab09d3bdf366407
refs/heads/master
2023-02-26T19:14:34.345423
2023-01-11T08:45:18
2023-01-11T10:37:25
265,231,958
8
22
null
2023-02-08T00:53:29
2020-05-19T11:46:12
Python
UTF-8
Python
false
false
299
py
import socket def is_v4(address): try: socket.inet_pton(socket.AF_INET, address) except socket.error: return False return True def is_v6(address): try: socket.inet_pton(socket.AF_INET6, address) except socket.error: return False return True
[ "andrey-mp@yandex.ru" ]
andrey-mp@yandex.ru
f010a4d16c12e85270a596fc2f31a8841ac64dc2
9a04de8acae6b9d5f134ab04ce4573acd05be10c
/facebook_pages/factories.py
7b37712ec2d1dfb0311b86476d9e42424e912116
[ "BSD-3-Clause" ]
permissive
bmcool/django-facebook-pages
046fb5727008dc0f5bf20a6201006466e89bec1d
44ae645c93a37e741ceda018daaa8def10acd1ad
refs/heads/master
2021-01-18T07:48:13.249597
2013-06-09T13:37:16
2013-06-09T13:37:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
from models import Page import factory import random class PageFactory(factory.Factory): FACTORY_FOR = Page graph_id = factory.Sequence(lambda n: n)
[ "ramusus@gmail.com" ]
ramusus@gmail.com
e2cd93ae33ad1783ad4ed4faeafd03fbf503f425
515a97129ce1b2b8eecca4b2087fde8985b82d5b
/Code-Scraps/old_modules/SpiceBot/Main/muricah.py
703d9a78bcb6c74111c29fcabd8c8e38187eb98e
[]
no_license
SpiceBot/scraps
3ad6e81ac75e2b6a684fea64eb7e75477b0f4f63
90125e1397b57ac87cae5f3e506363aa04ddffdc
refs/heads/master
2020-05-02T21:51:01.297114
2019-03-28T15:38:28
2019-03-28T15:38:28
178,232,887
0
0
null
null
null
null
UTF-8
Python
false
false
1,152
py
#!/usr/bin/env python # coding=utf-8 from __future__ import unicode_literals, absolute_import, print_function, division import sopel.module import sys import os moduledir = os.path.dirname(__file__) shareddir = os.path.dirname(os.path.dirname(os.path.dirname(__file__))) sys.path.append(shareddir) from BotShared import ...
[ "sam@deathbybandaid.net" ]
sam@deathbybandaid.net
6e63e02f7cb85f88fae930c14c63504884d425e5
163808746e51d378f69a966645b8bb8a855b4625
/MyMain1012/MyMain1012/MyModules.py
1044ab01075533ee8a21af408e08c251ab99f0f0
[]
no_license
0024thiroshi/comm5.0_fall_semester
02b26b506b759dd7b18b963295a8908cb4a78245
db350599b7085e56fbf2c316e74cd7a5b48f02b8
refs/heads/main
2023-02-12T13:07:34.080809
2021-01-13T06:03:04
2021-01-13T06:03:04
329,202,576
0
0
null
null
null
null
UTF-8
Python
false
false
1,963
py
def getDF(file_name,sheet_name): import pandas as pd DF1=pd.read_excel(file_name,sheet_name=sheet_name) return DF1 def getS(DF,n1): import pandas as pd S1=pd.Series(DF.iloc[:,n1]) return S1 def extractDF(DF,n1,n2): DF2=DF.iloc[n1:n1+n2,:] return DF2 def drawS(S1,S2): impo...
[ "“0024thiroshi@gmail.com”" ]
“0024thiroshi@gmail.com”
fa9400116b1cf68b3c2af2c6480e3869053378ed
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2573/60719/278572.py
ef5e2025d2f5fb9f2a0e35de41649f4a13d5b420
[]
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
150
py
def handle_each_use_case(): return 2 ** (int(input())-1) num = int(input()) for i in range(num): res = handle_each_use_case() print(res)
[ "1069583789@qq.com" ]
1069583789@qq.com
e028a43d424f376814f87e346f021b1ca842d883
6c898145b3581b87b76a2b16658ad1d0a2aeee4a
/demo4_redrect.py
ab84ca2e0e3c203f437ab67ac1b26e110626d070
[]
no_license
Jasonmes/Flask-model
080f3e44f64d7684c9fe1edf731cf7481615ea0f
99f9ff9141434baedc7d048ac3bfb51134919591
refs/heads/master
2020-03-26T11:47:39.081133
2018-08-15T13:59:40
2018-08-15T13:59:40
144,860,136
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
from flask import Flask,redirect,url_for app = Flask(__name__) @app.route('/') def index(): """ 自定义状态码 返回的形式是一个元祖 :return: """ return "反向函数在调用index", 666 @app.route("/demo1") def demo(): # 重定向到黑马官网 # 参数:重定向网页即可 return redirect("http://www.itheima.com") @app.route('/demo2') def ...
[ "wow336@163.com" ]
wow336@163.com
74928f2f18abb1478e911324438ca62f5b05c88f
9f059fd982f2c0a9d6a43cb4665b5adf0552c889
/src/models/model.py
0d66e2a7ab258eb5b83d9f4ecd74681b12da1539
[]
no_license
yamad07/domain-transfer-network
2a42de636febd4da0ceaacac32832a7f9605f820
b767628f9afa6e760a0708dedd22e6a530cd730b
refs/heads/master
2020-06-12T06:06:35.578911
2019-07-12T05:22:52
2019-07-12T05:22:52
194,216,261
0
0
null
null
null
null
UTF-8
Python
false
false
2,262
py
import torch import torch.nn as nn import torch.nn.functional as F from .layers.cnn import encoder_layer from .layers.cnn import decoder_layer from .layers.cnn import discriminator_layer class Encoder(nn.Module): def __init__(self): super(Encoder, self).__init__() self.c1 = encoder_layer(3, 64, 3)...
[ "yuhsukeshootsfc@gmail.com" ]
yuhsukeshootsfc@gmail.com
f18c3055fb82ab2adce6fe45db715962d9b8bc34
6c26a9bd075d3d54a307d7c1e5a0bc67b50df8c2
/python_basics/python3/04_less_than.py
f7630bf4edcf6b730f1c11ee4f5d8c76607a9ec6
[]
no_license
marialobillo/dataquest
86efc49c0339c07e6263d428b5ecd2f80d395ecb
49e8b653adf23a12fb9eb6a972d85bc1797dba0a
refs/heads/master
2021-08-28T08:01:36.301087
2017-12-11T16:02:18
2017-12-11T16:02:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
print(crime_rates) second_500 = (crime_rates[1] < 500) second_371 = (crime_rates[1] <= 371 second_last = (crime_rates[1] <= crime_rates[len(crime_rates) - 1])
[ "maria.lobillo.santos@gmail.com" ]
maria.lobillo.santos@gmail.com
4391865f95a88bc614dc1f2ea5a691b2ae243675
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-servicefabric/azure/servicefabric/models/paged_secret_resource_description_list.py
8ec32f9fc767fa8832874709ee2fc8da16810dc3
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
1,806
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
4ee25d36a93847380f36f2e3bf144325c47882a5
d7e65c505573b90916a953d7a13d29a801c226f9
/test.py
418e12a1921b1086465a0f47ec8d2d2ecd6d9422
[]
no_license
smartfile/client-js
1f1e60c4fb758aff3b9e371a937e7aa2c83f8dbc
6338a1442dc6298450ea1f6e15430cb4d1a092ec
refs/heads/master
2021-01-17T11:28:05.853979
2016-05-31T15:07:06
2016-05-31T15:07:06
3,065,301
1
0
null
null
null
null
UTF-8
Python
false
false
1,952
py
#!/bin/env python import os, string, cgi, time, webbrowser, threading, socket from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer JSON = '{ text: "This is the response." }' PORT = 8000 class LaunchBrowser(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.start(...
[ "btimby@gmail.com" ]
btimby@gmail.com
42189d44df4bedda4aa9fd28ec1a2b8f5dd5d4fd
d993f821da125498b6dfb01792fcd24c83ae7e34
/AllAboutDictionaries/DictionaryMethods.py
eb5648801932cd448a1ea6c71d34ab68bef54352
[]
no_license
Arjuna1513/Python_Practice_Programs
2c8370d927c8bade2d2b0b5bd0345c7d5f139202
7c72600d72f68afee62ee64be25d961822429aeb
refs/heads/master
2020-06-24T02:36:03.186924
2019-07-25T14:31:02
2019-07-25T14:31:02
198,824,589
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
dict1 = {1:2, 3:4, 'a':'b', 5:{1:2}} # print(dict1) # # print(len(dict1)) # prints length of dict1 # # print(dict1.items()) # Returns a list of items with both key and value pairs and since the list is # # returned we are able to iterate over it # # print(dict1.values()) # returns only list of values # # print(dict1.ke...
[ "malli00022@gmail.com" ]
malli00022@gmail.com
ca3c3609c7fadfa9093e7241d467a95b7f74bf4e
1346ea1f255d3586442c8fc1afc0405794206e26
/알고리즘/day16/two_string.py
48ecca480a31b18ae28d058cc47f4bd46267826e
[]
no_license
Yun-Jongwon/TIL
737b634b6e75723ac0043cda9c4f9acbc2a24686
a3fc624ec340643cdbf98974bf6e6144eb06a42f
refs/heads/master
2020-04-12T00:41:03.985080
2019-05-01T07:55:25
2019-05-01T07:55:25
162,208,477
0
0
null
null
null
null
UTF-8
Python
false
false
533
py
T=int(input()) for t in range(T): num1,num2=map(int,input().split()) data1=list(map(int,input().split())) data2=list(map(int,input().split())) if len(data1)>len(data2): short_data=data2 long_data=data1 else: short_data=data1 long_data=data2 sum=-500 for i in r...
[ "dmdmdkdk@daum.net" ]
dmdmdkdk@daum.net
f664f43615dfd3188c09cb82b2cee07f916100ce
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/virtual_network.py
c9cd60b38e95b54f4fe594909f1af0f04be05a36
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
4,724
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 ...
[ "noreply@github.com" ]
xiafu-msft.noreply@github.com
8f1d1c60025749c1d3af208a4bd1b6b6cfc35348
94fb04ab0cb16fd180b6ef0ca22176dd31dea4f8
/code@smart_irrigation.py
007ab4961e728e9d563d1e1a4796bc2309d6224a
[]
no_license
SmartPracticeschool/llSPS-INT-2310-smart-irrigation-system-based-on-IOT-using-random-values-n-weather-api-
97a5fda6e640767a9ee830a709240df57cbf9750
1de1e04929ef8ea052e7ed70acd97b87e77bdfab
refs/heads/master
2022-11-04T00:49:22.602410
2020-06-17T14:05:48
2020-06-17T14:05:48
265,819,817
0
0
null
null
null
null
UTF-8
Python
false
false
2,609
py
import requests import sys import time import ibmiotf.application import ibmiotf.device import random r=requests.get('http://api.openweathermap.org/data/2.5/weather?q=Guntur,IN&appid=42a67b9e8ecd9620c2fe1471361c3e53') #Provide your IBM Watson Device Credentials organization = "w1gnzn" deviceType = "raspber...
[ "noreply@github.com" ]
SmartPracticeschool.noreply@github.com
034ff7aa8e6769c53f7c8c08a4bf5c226f1a1f80
48114b2186c96afce9a00c86eed8739853e8a71e
/eptools/gspread_utils.py
6ab72a98450912f2e91365ff769292cf14ce4630
[ "MIT" ]
permissive
PythonSanSebastian/ep-tools
78b299eca763cc345da15e2984d7d08e67dc0c8d
d9a0e3c1d97df9f8bd94023e150b568e5619a482
refs/heads/master
2021-01-20T21:57:06.463661
2018-05-31T09:46:22
2018-05-31T09:46:22
51,786,311
0
0
null
2016-02-15T21:15:50
2016-02-15T21:15:50
null
UTF-8
Python
false
false
1,813
py
""" Functions to access the data in google drive spreadsheets """ from docstamp.gdrive import (get_spreadsheet, worksheet_to_dict) def get_api_key_file(): """ Return the api_key_file path imported from the config.py file""" try: from .config import api_key_file ex...
[ "alexsavio@gmail.com" ]
alexsavio@gmail.com
4827119c0da3a1ec929ea1870f9ff11d5289f6df
1b461ec82c8dd1099021ce3a32a7f649fa970226
/1.Python_basics/00. First_steps.py
de81272da5e7285c2ecc00f70c4e38d5bd64453f
[]
no_license
AdamSierzan/Learn-to-code-in-Python-3-basics
9df20c80c33f40da8800d257ee2ec05881198419
ef298bcba72250e19080283cb81dbecf6a245563
refs/heads/master
2022-11-06T00:48:17.413322
2020-06-16T20:52:08
2020-06-16T20:52:08
250,247,475
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
msg = "Hello World" print(msg) x = 2 y = 7232 sum = x + y print(sum) x = 3 print(x) x = 2*y y = 69780 print(x) print(y) print(x) x = 2*y print(x) print"hello world" help
[ "adagioo1993@gmail.com" ]
adagioo1993@gmail.com
291d6c66a8448ced95fc18bbfadb84c49f58a446
323716a35ee2b649031ec8a09b196b8e7b833e8d
/lab9/hhback/api/migrations/0001_initial.py
a18a2d38b64a756ff8b961f72e74525684e761d8
[]
no_license
Zhaisan/WebDev
0377cec0c553900c5126794a8addc16e2e62b558
959ecf5b2e5032ccd2ab704b840e8f680dbcfc42
refs/heads/main
2023-05-27T17:24:17.026750
2021-05-31T15:02:15
2021-05-31T15:02:15
334,424,629
1
0
null
null
null
null
UTF-8
Python
false
false
1,506
py
# Generated by Django 2.1 on 2021-04-13 19:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Company', fields=[ ...
[ "noreply@github.com" ]
Zhaisan.noreply@github.com
ad6818b1cb0641df553b96ea5a6a81a2964f6ddf
1078c61f2c6d9fe220117d4c0fbbb09f1a67f84c
/paws/lib/python2.7/site-packages/euca2ools-3.4.1_2_g6b3f62f2-py2.7.egg/EGG-INFO/scripts/euare-instanceprofilelistbypath
c55ad41537406ff822d69daf820d23cc6176d1e1
[ "MIT" ]
permissive
cirobessa/receitas-aws
c21cc5aa95f3e8befb95e49028bf3ffab666015c
b4f496050f951c6ae0c5fa12e132c39315deb493
refs/heads/master
2021-05-18T06:50:34.798771
2020-03-31T02:59:47
2020-03-31T02:59:47
251,164,945
0
0
null
null
null
null
UTF-8
Python
false
false
229
#!/media/ciro/LOCALDRV/A_DESENVOLVIMENTO/AWS/receitas/paws/bin/python -tt import euca2ools.commands.iam.listinstanceprofiles if __name__ == '__main__': euca2ools.commands.iam.listinstanceprofiles.ListInstanceProfiles.run()
[ "cirobessa@yahoo.com" ]
cirobessa@yahoo.com
4d137f2610e281cad85b0440573d0513db16ccdb
fe3a29aefb4f9bb38d6d4bc61ef9839521823dc2
/server/src/oscarbundles/migrations/0009_auto_20180319_1116.py
f8f0a02a9366aa3258ef06133916ac5a59f7ae57
[ "ISC" ]
permissive
thelabnyc/django-oscar-bundles
a5f73edd26d3c930a32cdaa4a2142cfd44a74294
d8dc00edbcc57cbe18b274905beef533a8a642f7
refs/heads/master
2023-05-25T01:13:10.769112
2023-05-16T15:42:01
2023-05-16T15:42:01
81,470,009
6
3
ISC
2023-03-14T17:27:07
2017-02-09T16:24:45
Python
UTF-8
Python
false
false
1,077
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-19 15:16 from __future__ import unicode_literals from django.db import migrations def make_group_trigger_data_unique(apps, schema_editor): Bundle = apps.get_model("oscarbundles", "Bundle") for bundle in Bundle.objects.order_by("id").all(): ...
[ "crgwbr@gmail.com" ]
crgwbr@gmail.com
d82b63b927f20bd2f9ea34dd627297fedd1bd24d
cb6b1aa2d61b80cba29490dfe8755d02c7b9a79f
/lobbyapp/dbmangr/root.py
68b7357ed39d3aeacd4c771556566af010222663
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
piotrmaslanka/Ninja-Tower
c127a64888bc3306046e4b400ce3a8c6764b5481
7eca86e23513a8805dd42c3c542b7fae0499576b
refs/heads/master
2021-12-06T07:56:13.796922
2015-10-15T08:10:35
2015-10-15T08:10:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,775
py
import MySQLdb from satella.instrumentation.counters import PulseCounter from satella.instrumentation import CounterCollection from satella.db.pool import DatabaseDefinition, ConnectionPool from lobbyapp.selectlayer.api import PDBHelperInterface as SelectLayerInterface from lobbyapp.dbmangr.proxies import SelectLayer...
[ "piotr.maslanka@henrietta.com.pl" ]
piotr.maslanka@henrietta.com.pl
67685bc853b72f28dfc50d9e13c6874b050911f5
0c89b4b021d469f5209753f2ab75de06c4925497
/setup.py
d92ceb35d542fabdf9f5253fce19017a14c8b384
[ "BSD-3-Clause" ]
permissive
mrusoff/sos
6fc474a7a8da49f7d0ff6f4ae11ce8ea3d5283ea
e60f2944d4f4c623191dbe7b1ba6a092f0dc5e94
refs/heads/master
2020-07-01T19:54:28.724508
2019-08-08T13:52:12
2019-08-08T13:52:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,404
py
#!/usr/bin/env python # # Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. import sys from setuptools import find_packages, setup from setuptools.command.bdist_egg import bdist_egg _py_ver = sys.version_info if _py_ver.major == 2 o...
[ "ben.bog@gmail.com" ]
ben.bog@gmail.com
fc03332dcbf0200d0f9e90b5bfe070525ec87bf7
1336896824c8937cc744a112661061c7b89beb73
/Tag02/dozent_pool.py
5500d3d8b5f588eca1e8359d02afe868322021ae
[]
no_license
anna-s-dotcom/python01-python08
df457fc1f93b74d91037fd7d62db5fa53baa8616
cf3d539800ee7e83f1d32010481c7a9ee2d58858
refs/heads/master
2020-12-30T06:12:10.785131
2020-02-07T09:40:01
2020-02-07T09:40:01
238,888,055
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
import os from multiprocessing import Pool import time def quadfunc(n): time.sleep(0.2) return n*n if __name__ == '__main__': print(os.cpu_count()) t = time.time() p = Pool(processes = 5) result = p.map(quadfunc, [1, 2, 3, 4, 5]) p.close() print('Pool time:', time.time(...
[ "noreply@github.com" ]
anna-s-dotcom.noreply@github.com
cf67b46f033723c3e6c4b4a18b3594092ee467a7
53c3462ff265b6273f4a4fa17f6d59688f69def0
/数据结构/quick_sort.py
9b98643d357f31d649bf67308b1db09a87523eb6
[]
no_license
17764591637/jianzhi_offer
b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4
27e420ee302d5ab6512ecfdb8d469b043fb7102d
refs/heads/master
2023-08-03T01:32:51.588472
2019-10-13T07:56:21
2019-10-13T07:56:21
197,692,548
2
0
null
null
null
null
UTF-8
Python
false
false
1,309
py
''' 快速排序使用分治法来把一个串(list)分为两个子串(sub-lists)。 具体算法描述如下: 1.从数列中挑出一个元素,称为 “基准”(pivot); 2.重新排序数列,所有元素比基准值小的摆放在基准前面,所有元素比基准值大的摆在基准的后面(相同的数可以到任一边)。 在这个分区退出之后,该基准就处于数列的中间位置。这个称为分区(partition)操作; 3.递归地(recursive)把小于基准值元素的子数列和大于基准值元素的子数列排序。 时间复杂度:O(nlogn) 不稳定 ''' def quick_sort(nums,start,end): #递归退出的条件 if start >= end: ...
[ "17764591637@163.com" ]
17764591637@163.com
72b224e612831d78026a2b1d1c2e5fa5338f40d2
60f96f12bcac952de88e1f62a785149a4e0a6746
/mixins_views/views.py
b9029128c1818ea8e61d60eadd773cc8c72674d8
[]
no_license
jayednahain/Django-Rest_api-with-mixins.
6242e5d4678ef6b77a4f3ced16f791f8997b6748
4536fad0ded80d70453ab46ce185e9d8ce16d2e1
refs/heads/main
2023-03-24T20:08:58.916183
2021-03-21T14:06:21
2021-03-21T14:06:21
350,015,993
0
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
from django.shortcuts import render # Create your views here. from django.shortcuts import render from mixins_views.models import Student from mixins_views.serializers import StudentSerializer from rest_framework.response import Response from rest_framework import status from rest_framework.views import APIView #use...
[ "jayednahian@yahoo.com" ]
jayednahian@yahoo.com
35b3a29158681480060f348b5446d99387856c6b
998c2105908e0a4463075a84f9e3f1678ffcdfb3
/keras_video_object_detector/library/yolo_utils.py
ca0e5e348b8fcb14721858d241185efece4ba0ac
[ "MIT" ]
permissive
chen0040/keras-video-object-detector
a4bb2a080d62c0ecb56c12096ffe1f161b6d2c71
52f07ff4047dcc8732015c3debba1fa3eb7f2c56
refs/heads/master
2021-09-03T09:38:01.520006
2018-01-08T03:22:42
2018-01-08T03:22:42
116,548,809
15
9
null
null
null
null
UTF-8
Python
false
false
3,459
py
import colorsys import imghdr import os import random from keras import backend as K import numpy as np from PIL import Image, ImageDraw, ImageFont def read_classes(classes_path): with open(classes_path) as f: class_names = f.readlines() class_names = [c.strip() for c in class_names] return class...
[ "xs0040@gmail.com" ]
xs0040@gmail.com
2adc6545b8d6dcc6760907fe667129c5002aca2a
c14debb710242571769587d9e8fb1d0ecfbcd15b
/query_csv/utils.py
ea9bf421ec92f261c090af6872c3e1b44db13cf2
[]
no_license
jayrbolton/query_csv
f464a6ad714372c41390b15f838c99c1e4c250ec
4299f9e179d9fcaf41560c30372cb65b57d1756f
refs/heads/master
2022-10-03T18:23:33.052523
2020-06-06T14:42:36
2020-06-06T14:42:36
270,006,356
0
0
null
2020-06-06T14:42:37
2020-06-06T14:29:59
Python
UTF-8
Python
false
false
2,809
py
import gzip import shutil import tempfile import csv import os from typing import Union, List, Generator # yielded by the CSV parsers below. Generator of lists of column values for # every row in a CSV Rows = Generator[List[str], None, None] def convert_col_type(val: str) -> Union[str, float, int]: """ Conve...
[ "jayrbolton@gmail.com" ]
jayrbolton@gmail.com
ada3a03be028e3b915389cada419c859da69736d
eb42558f56fdb41526cc31ac4ef3a6937bf39e96
/ConfigDefinitions/UserConfigs/SMHTT_2018_Configs_Deep/ST_tW_antitopConfig.py
378774e807e5da7f892c2a679902bc63f061b479
[]
no_license
samhiggie/Jesterworks
6906b042d3e200efb9bd10b70284ccd30661aa53
562e8cbb20d7e4b1d5b9bdba3715578cc66f097d
refs/heads/master
2020-09-11T19:35:59.770456
2019-11-16T12:37:35
2019-11-16T12:37:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
947
py
from ConfigDefinitions.JesterworksConfigurations import JesterworksConfiguration as Config from ConfigDefinitions.BranchAdditions.UserDefinedCollections.SMHTT_2018_MC_Collection import MCCollection as BranchCollection from ConfigDefinitions.CuttingDefinitions.UserCutConfigs.SMHTT2018Cuts_MC_NoEmbeddedOverlap_wDeep imp...
[ "aloelige@cern.ch" ]
aloelige@cern.ch
cdd87b5b84d7dc7c907de04cbd185430dfb253e2
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/ThirteenTeV/Taustar/Taustar_TauG_L10000_m4000_13TeV_pythia8.py
9cdc43d01bf5f29ac69ce08fdf5c53e3f219175d
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
1,257
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", maxEventsToPrint = cms.untracked.int32(1), pyth...
[ "dnash@cern.ch" ]
dnash@cern.ch
cc3756f9d748169d46b374c902c181e512a382fa
eafabc5e332f5fc0153e166d992ac0711cf90cd6
/BOJ/11021/11021.py
196aea58fa768861cb7e5f8f574957c8f0801695
[]
no_license
PARKINHYO/Algorithm
96038ce21bd9f66208af0886208ef6ed925c23e2
0ed8687fe971fc2b05e2f50f62c0d0e47c368a6c
refs/heads/master
2021-12-23T23:48:25.247979
2021-08-20T01:52:50
2021-08-20T01:52:50
196,219,508
8
0
null
null
null
null
UTF-8
Python
false
false
167
py
T = int(input()) AB = [[int(x) for x in input().split()] for y in range(T)] for i in range(T): C = AB[i][0] + AB[i][1] print("Case #%d: %d" % (i+1, C))
[ "you@example.com" ]
you@example.com
323135bcedfd94ec7cd2eae4703e33dde6537de0
ab1c920583995f372748ff69d38a823edd9a06af
/shultais_courses/data_types/type_conversion/type_conversion.py
1adc77061b934ef1b1a664bba675429f0fe1b226
[]
no_license
adyadyat/pyprojects
5e15f4e33892f9581b8ebe518b82806f0cd019dc
c8f79c4249c22eb9e3e19998d5b504153faae31f
refs/heads/master
2022-11-12T16:59:17.482303
2020-07-04T09:08:18
2020-07-04T09:08:18
265,461,663
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
salary = "50000" salary1 = "50000.5" year_salary = int(salary) * 12 year_salary1 = float(salary1) * 12 print(year_salary, year_salary1) print("Ваша годовая зарплата: " + str(year_salary)) # Преобразование типов
[ "omorbekov.a@gmail.com" ]
omorbekov.a@gmail.com
632df10af90453376bd5a9c07308d6d702f9eab6
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_318/ch23_2019_03_31_22_15_03_222154.py
ababaf32eacb836c1ef4fd1dcb5fe1051412ae6a
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
def verifica_idade(x): if(x>20): print("Liberado EUA e BRASIL") return x elif(x>17 and x<21): print("Liberado BRASIL") return x else: print("Não está liberado") return x
[ "you@example.com" ]
you@example.com
e731f34764d4a0c183cb174840d6cc907ce618bd
b4a58df63b7e42085d7b4a90cce184bab4039e97
/src/config_29.py
0b783d5a2b9d9b38f8b373fc503a67e5a2acd268
[]
no_license
shinglyu/MusicPupil
4f82a2240b99c98ec7eb8db1017cfa232cf21bb9
edfc6da085e9433f347301d7f6ccc49eab45d14f
refs/heads/master
2021-01-10T03:50:32.670628
2013-08-14T08:52:37
2013-08-14T08:52:37
51,300,212
1
0
null
null
null
null
UTF-8
Python
false
false
2,595
py
import os.path #DEBUG = True DEBUG = False defaultTrainSampleList= "../training_samples/trainSampleList.txt" unittestTrainSampleList="../training_samples/trainSampleList.txt" defaultGenScore= "../testing_scores/chop_nc_phrase001" #defaultTrainFeatsFilename="../output/trainFeats.json" #may need to prepend file...
[ "shing.lyu@gmail.com" ]
shing.lyu@gmail.com
8c9f827f7dd01ae5a14d2a256505ffc43d563601
605c10db2f950a506af60d57a2074f97ebcf89ab
/code/MODULE/img_processing/record.py
224137ab62610a7abcbd7067dcc47e6f658b24e3
[]
no_license
MulongXie/Research-ReverselyGeneratingWebCode
928f90d6b4f80ebff40a9a3a48f8b564277a0987
2c1598a765166f30786b0e6a22c485358ca2e98d
refs/heads/master
2020-05-17T18:14:02.241209
2020-04-10T00:19:16
2020-04-10T00:19:16
183,857,077
0
3
null
2020-02-03T04:31:34
2019-04-28T04:51:24
Python
UTF-8
Python
false
false
2,173
py
import cv2 import numpy as np def find_contour(): img = cv2.imread('0.png') img = cv2.blur(img, (3,3)) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) ret, binary = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY) cv2.imwrite('bb.png', binary) binary, contours, hierarchy = cv2.findContours(binary,...
[ "dsh15325@163.com" ]
dsh15325@163.com
6fd957dec3b88887df1e62ab9b4bc131e1c557b1
b8461afd9d11457a91ae803987bde74337ad4fd1
/docs/source/reference-core/channels-shutdown.py
dcd35767ae1921678a10099dd6e99150a70a52b7
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
abispo/trio
d9750920091fc4b77e4d8386def45ea727eb2218
5bcfb1b9b90cc6bbf517468251597e8b262ca789
refs/heads/master
2020-06-20T21:10:38.474717
2019-07-15T05:56:33
2019-07-15T05:56:33
197,250,586
1
0
NOASSERTION
2019-07-16T18:53:03
2019-07-16T18:53:03
null
UTF-8
Python
false
false
582
py
import trio async def main(): async with trio.open_nursery() as nursery: send_channel, receive_channel = trio.open_memory_channel(0) nursery.start_soon(producer, send_channel) nursery.start_soon(consumer, receive_channel) async def producer(send_channel): async with send_channel: ...
[ "njs@pobox.com" ]
njs@pobox.com
5d1f056703f1b727bc1edd6a7ae06a89636722a4
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/BlendLuxCore/ui/halt.py
07a3ec885fcf3cd6db5a21ef53e0815aa858c782
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,668
py
from bl_ui.properties_render import RenderButtonsPanel from bl_ui.properties_render_layer import RenderLayerButtonsPanel from bpy.types import Panel from ..utils import ui as utils_ui from . import icons def draw(layout, context, halt): layout.active = halt.enable row = layout.row() row.prop(halt, "use_t...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
adc9e3d8973dbb3380952f23d6606d8fea4fa7a0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03425/s431844808.py
f6ac9253a929b3316b46eab8732c3022a81c6fb6
[]
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
386
py
n = int(input()) s = [input() for i in range(n)] l = [0] * 5 for i in range(n): if s[i][0] == "M": l[0] += 1 elif s[i][0] == "A": l[1] += 1 elif s[i][0] == "R": l[2] += 1 elif s[i][0] == "C": l[3] += 1 elif s[i][0] == "H": l[4] += 1 ans = 0 for j in range(3): for k in range(j+1, 4): ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
5ef99950fd6011c61d4088bd8fe2d21e6a1acc15
f2601a5678fbc04738eff8393a42c07c87ca4d9c
/licenses/management/commands/upload_license_messages.py
e69e87ba92c4d6da391efd55cd87d58d77121df6
[ "LicenseRef-scancode-free-unknown", "MIT", "LicenseRef-scancode-public-domain", "CC0-1.0", "CC-BY-NC-4.0", "CC-BY-NC-ND-4.0", "LicenseRef-scancode-unknown" ]
permissive
sp35/cc-licenses
1c2e713fbc4ec96a90bdb6f5c8b5c4750fee3632
42573273bac4136adf9f482db75314d81efdcdcf
refs/heads/main
2023-03-08T11:28:06.885986
2021-02-25T21:23:14
2021-02-25T21:23:14
342,029,287
0
0
MIT
2021-02-24T20:38:45
2021-02-24T20:38:45
null
UTF-8
Python
false
false
303
py
from django.core.management import BaseCommand from licenses.models import License class Command(BaseCommand): def handle(self, **options): for license in License.objects.filter( version="4.0", license_code__startswith="by" ): license.tx_upload_messages()
[ "dpoirier@caktusgroup.com" ]
dpoirier@caktusgroup.com
ec737f98eaab6f5935ea821568169b9097114b80
cfd9fa1af735ac3572954704a47e35543850b244
/run.py
5dcf8a98e292f9b7dbf746fb300f36d20052741f
[]
no_license
xingyueGK/hjsg
c1844ea8161d254f6d6cf70f42d1ac849e117438
be0c4c457bdfaa9178f25f9f722dc78d88f24540
refs/heads/master
2022-12-12T08:28:55.823357
2020-12-05T12:02:06
2020-12-05T12:02:06
147,184,573
0
1
null
2022-01-06T22:26:48
2018-09-03T09:47:04
HTML
UTF-8
Python
false
false
2,701
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/5/21 11:15 # @Author : xingyue # @File : run.py #运行方法 import threading import os,time,apscheduler from task.base import SaoDangFb from task.talent import Talent from task.hero_soul import DragonBoat,GoBoat from task.glory_front import glory_fro...
[ "a413728161@vip.qq.com" ]
a413728161@vip.qq.com
4bf49fded33b7c4a27f087f75b6783e70d7a0f6f
4ec1eda7669dbe2dd67ac7218421fae62b5ef741
/userauth/urls.py
d8645c6d93d55fb5f15ec3a2f8a0d8f8793391d7
[]
no_license
atul8727/medical_helper
075284335644343d71d4c4d92f1e4e92b67089aa
2e03f70b82834b95cb4d424d22f2bd5b82f652c8
refs/heads/master
2023-07-01T03:15:46.146540
2021-08-01T19:06:03
2021-08-01T19:06:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
from django.urls import path,include from .views import dashboard_view,register_user from app.views import * urlpatterns = [ path('dashboard/', dashboard_view, name='dashboard'), path('register/',register_user, name='register'), path('oauth/',include('social_django.urls')), ]
[ "xaidmetamorphos@gmail.com" ]
xaidmetamorphos@gmail.com
9696a8447135bae26d4e81268979efa949782a04
cc8416a20b3aa9832dabf29112e52b5dfb367157
/stable_nalu/layer/regualized_linear_nac.py
295fd28e4264cbe51423d12d827218e558f7c0b5
[ "MIT" ]
permissive
AndreasMadsen/stable-nalu
ff877592ec965dca49a48bf94b38e343ba407411
b3296ace137ffa4854edeef3759f1578b7650210
refs/heads/master
2023-05-22T04:53:17.495712
2021-08-19T18:15:14
2021-08-19T18:23:45
177,330,156
149
19
MIT
2020-01-15T08:06:12
2019-03-23T19:13:34
HTML
UTF-8
Python
false
false
1,824
py
import scipy.optimize import numpy as np import torch from ..abstract import ExtendedTorchModule from ._abstract_recurrent_cell import AbstractRecurrentCell class RegualizedLinearNACLayer(ExtendedTorchModule): """Implements the RegualizedLinearNAC Arguments: in_features: number of ingoing features ...
[ "amwebdk@gmail.com" ]
amwebdk@gmail.com
a2f9ac6a7a2e1e0f0409cdcdb101ee1a3326ccff
ca1e432c66ca9289cc25039f6c035c292e298d15
/content_management_portal/migrations/0002_auto_20200629_1454.py
98fb46bcc42bd507c329ea7f4728238c6de54c3e
[]
no_license
raviteja1766/ib_mini_projects
9bf091acf34e87d7a44bec51a504bdb81aceae27
3fa36b97cfa90b5f5853253480934cf27714aa15
refs/heads/master
2022-11-19T07:08:27.061315
2020-07-02T16:54:42
2020-07-02T16:54:42
272,033,119
1
0
null
null
null
null
UTF-8
Python
false
false
371
py
# Generated by Django 2.2.1 on 2020-06-29 14:54 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('content_management_portal', '0001_initial'), ] operations = [ migrations.RenameField( model_name='question', old_name='user'...
[ "ravitejak125@gmail.com" ]
ravitejak125@gmail.com
14fa26d61098fd50e84ed8cab47b9e770689805e
8f8498bb6f56b19d45a1989c8113a077348c0a02
/백준/Silver/미로 탐색.py
d234250c529ddb20d32d95135c9f6906a5932cda
[]
no_license
gjtjdtn201/practice
a09b437c892b0b601e156c09cb1f053b52fab11b
ea45582b2773616b2b8f350b927559210009d89f
refs/heads/master
2021-01-01T13:29:46.640740
2020-11-28T00:55:37
2020-11-28T00:55:37
239,299,485
0
1
null
null
null
null
UTF-8
Python
false
false
739
py
import sys sys.stdin = open('미로 탐색.txt', 'r') from collections import deque def BFS(y,x): queue = deque() queue.append((y,x)) visit[y][x] = 1 while queue: a, b = queue.popleft() if (a, b) == (N-1, M-1): print(visit[a][b]) return for i in range(4): ...
[ "gjtjdtn201@naver.com" ]
gjtjdtn201@naver.com
8a5a13a59d69a8b4e360050051c66440c9475be8
00b1fe62aff1bbad885a1b13354239b07925c5c1
/catalyst_rl/dl/callbacks/inference.py
0e865e1f3b6ece6a4f57fa06a27b1a96f3d7c224
[ "Apache-2.0" ]
permissive
catalyst-team/catalyst-rl
a78675c477bef478d73cd1e7101be6dbb7b586aa
75ffa808e2bbb9071a169a1a9c813deb6a69a797
refs/heads/master
2021-09-22T08:36:12.161991
2021-09-13T05:59:12
2021-09-13T05:59:12
247,928,934
50
8
null
null
null
null
UTF-8
Python
false
false
4,901
py
from collections import defaultdict import os import imageio import numpy as np from skimage.color import label2rgb import torch import torch.nn.functional as F from catalyst_rl.dl import Callback, CallbackOrder, State, utils # @TODO: refactor class InferCallback(Callback): def __init__(self, out_dir=None, out...
[ "scitator@gmail.com" ]
scitator@gmail.com
807ce2ef2b7594044dfcedb3be33a7a555fbea60
f24c35bb0919f9ad75f45e7906691c3189536b33
/chengbinWorkSpace/droneLanding/python/Tello/path-plan.py
a09ea6ba4b28dcee3cbd474fc8a53b485a698cdf
[]
no_license
mfkiwl/supreme-xcb
9b941f49bab5a811d23a0cd75790d1e5722aa9f0
d1287657607bf86d4b1393acf285951760670925
refs/heads/main
2023-03-07T12:10:28.288282
2021-03-02T11:46:00
2021-03-02T11:46:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
''' brief: Version: Autor: shuike Date: 2021-01-12 19:23:39 LastEditors: shuike LastEditTime: 2021-01-12 19:23:39 FilePath: /droneLanding/python/Tello/path-plan.py ''' #!/usr/bin/python import pygame import json import math """ how many pixel = actual distance in cm 70px = 360cm --> 360/70 = MAP_SIZE_COEFF """ MAP_...
[ "xiechengbinin@gmail.com" ]
xiechengbinin@gmail.com
c9316b33117f1c9cc1e359f48d5e48384095555c
a34ec07c3464369a88e68c9006fa1115f5b61e5f
/N_Queue/MonotonicQueue/L3_862_Shortest_Subarray_with_Sum_at_Least_K.py
75b2d94429dd60dfa0b738814446722e2d7d5e6d
[]
no_license
824zzy/Leetcode
9220f2fb13e03d601d2b471b5cfa0c2364dbdf41
93b7f4448a366a709214c271a570c3399f5fc4d3
refs/heads/master
2023-06-27T02:53:51.812177
2023-06-16T16:25:39
2023-06-16T16:25:39
69,733,624
14
3
null
2022-05-25T06:48:38
2016-10-01T10:56:07
Python
UTF-8
Python
false
false
813
py
""" https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/ Transform the problem to find the shortest sliding window with sum >= k, we can use a monotonic increasing queue to maintain the prefix sum, and try to make queue head as small(but larger than k) as possible and queue tail as large as possible. ""...
[ "zhengyuan.zhu@mavs.uta.edu" ]
zhengyuan.zhu@mavs.uta.edu
d79b390ee107b353b56586cffd43e1fbeba7d65e
8998a6cf66578453249544ca10b4239615751c53
/setup.py
6b66ea18fd958460305ba03c5534b4cbfac428fa
[ "MIT" ]
permissive
kwaegema/jicirodsmanager
be7c3857989c78a0cde4d8d41da45559dcc15499
aca97415acb8f1b40bbb72c1c05b25fe20808d84
refs/heads/master
2021-04-15T18:39:25.766088
2017-11-15T11:19:57
2017-11-15T11:19:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from setuptools import setup url = "https://github.com/JIC-CSB/jicirodsmanager" version = "1.1.0" readme = open('README.rst').read() dsc = "Python tools to manage users/groups/quotas/namespaces in an iRODS zone", setup(name="jicirodsmanager", packages=["jicirodsmanager"], version=version, descriptio...
[ "tjelvar.olsson@jic.ac.uk" ]
tjelvar.olsson@jic.ac.uk
ed67f09cdd0c79e6d529bf5923da918fd286314f
5492374aeb1df9fb5a2cbef8eb8a48af47556f18
/galaga/galaga.py
794facec78d3a8fd39356a25dad30224681820b0
[]
no_license
HeeeeeJinJeong/Practice_Python
136397f43a7ba525ff2561adb85de353c1f1cc21
1e8a0c525bf35324d5e9f3f1ff7747b2352de7b3
refs/heads/master
2020-08-07T02:59:55.583054
2019-10-16T03:40:29
2019-10-16T03:40:29
213,265,800
0
0
null
null
null
null
UTF-8
Python
false
false
6,075
py
import pygame # pygame 라이브러리 임포트 import random # random 라이브러리 임포트 from time import sleep # 게임에 사용되는 전역변수 정의 BLACK = (0, 0, 0) # 게임 바탕화면의 색상 RED = (255, 0, 0) pad_width = 480 # 게임화면의 가로크기 pad_height = 640 # 게임화면의 세로크기 player_width = 36 player_height = 38 enemy_width = 26 enmey_height = 20 # 적을 맞춘 개수 계산하는 함수 def ...
[ "misakiyoshikuni@gmail.com" ]
misakiyoshikuni@gmail.com
8dcb9d84c112c2909facdc43f23f166eb593f67d
9a9e739dcc559476ba796510182374ad460f2f8b
/PA2/PA2 2013/PA2-12/Asitha/pa2-12-2013.py
417b2661135cadcac82806c583d3fe2709b266e0
[]
no_license
Divisekara/Python-Codes-First-sem
542e8c0d4a62b0f66c598ff68a5c1c37c20e484d
e4ca28f07ecf96181af3c528d74377ab02d83353
refs/heads/master
2022-11-28T01:12:51.283260
2020-08-01T08:55:53
2020-08-01T08:55:53
284,220,850
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
def getText(): try: FileOpen=open("FileIn.txt","r") L=[] while True: L.append(FileOpen.readline().split()) if L[-1]==[]: break FileOpen.close() except IOError: print "File Not Found" else: L.pop(-1) retur...
[ "9asitha7@gmail.com" ]
9asitha7@gmail.com
cd0d6330ebfe7555e50056381334270665abfb7c
30a2a924eb32e7297b5a99785950467f25ea785d
/ppgmle.py
65d92e6491d2764ae34a67f18c76334f0b21e094
[]
no_license
zshwuhan/Reinforcement-Learning-of-Spatio-Temporal-Point-Processes
1a794e83491b52dea5db3926de91779a9e661a17
a3f98e77b56c03839dcdb545b17b3675e7c43878
refs/heads/master
2020-07-22T16:18:10.020860
2019-07-02T18:49:02
2019-07-02T18:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,065
py
import sys import arrow import utils import numpy as np import tensorflow as tf from tfgen import SpatialTemporalHawkes from ppgrl import RL_Hawkes_Generator from stppg import GaussianMixtureDiffusionKernel, HawkesLam, SpatialTemporalPointProcess, StdDiffusionKernel class MLE_Hawkes_Generator(object): """ Rei...
[ "woodielove@163.com" ]
woodielove@163.com
28acd089a5318eca2c288aeb6b39ea6b02b19415
c036befbd9a4b81c0f082273dd0eb007e7f9582d
/dort-core/protocols/full_node_protocol.py
79a277910c3f61ce22c0a990b22b93f0b6596264
[ "Apache-2.0" ]
permissive
Dortchain/dort-blockchian
889f52f36dcdeffe0f852b413cdd32879741462f
14f16e321a60f9d70f849f58e4e9964fa337a084
refs/heads/main
2023-06-16T01:31:30.718415
2021-07-11T03:03:12
2021-07-11T03:03:12
384,694,718
1
0
null
null
null
null
UTF-8
Python
false
false
4,240
py
from dataclasses import dataclass from typing import List, Optional from Dort.types.blockchain_format.sized_bytes import bytes32 from Dort.types.blockchain_format.vdf import VDFInfo, VDFProof from Dort.types.end_of_slot_bundle import EndOfSubSlotBundle from Dort.types.full_block import FullBlock from Dort.types.peer_i...
[ "welllinks@outlook.com" ]
welllinks@outlook.com
64c8fbf46fb22fc14a9bf06a229215fef2968c1d
bd87d8947878ccb2f5b720e70a22493b00868fd3
/fluent/17_concurrency_with_futures/flags2.py
8f780b17b279566b83594808af0ab947b0b18362
[]
no_license
damiansp/completePython
4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac
3f5e2f14d79c93df5147b82d901190c054535158
refs/heads/master
2023-09-01T20:50:03.444440
2023-08-28T00:27:57
2023-08-28T00:27:57
99,197,610
0
1
null
null
null
null
UTF-8
Python
false
false
2,351
py
'''Download 20 flag images sequentially (synchronous) for baseline comparison''' import os import sys import time import requests POP20_CC = ('CN IN US ID BR PK NG BD RU JP MX PH VN ET EG DE IR TR CD FR')\ .split() BASE_URL = 'http://flupy.org/data/flags' DEST_DIR = 'images' def save_flag(img, filename)...
[ "damiansp@gmail.com" ]
damiansp@gmail.com
27dcf8647fd0983da8e44125393eb3cc04a7340d
9dfb3372a1e4516d970a6e9d0a9fd8360580eae7
/python patten find/patten_find_of_know_type.py
5c17066891d4009fc74c65a7643b516f6664d7aa
[]
no_license
clambering-goat/cameron_pyton
d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c
df0b0365b86e75cfcfc2c1fc21608f1536a3b79f
refs/heads/master
2021-07-14T20:37:37.021401
2019-02-28T07:52:11
2019-02-28T07:52:11
137,251,669
0
0
null
null
null
null
UTF-8
Python
false
false
3,049
py
#works but if the tail data is in the data packet the code will think that is the end of the data packet import random data="" head="123" tail="789" parrton_data="456646849861" parrton=head+parrton_data+tail lenth_data=len(parrton) print("looking for",parrton) #data maker #v1 ''' random_noise=5 parrt...
[ "camerondrain@gmail.com" ]
camerondrain@gmail.com