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
7fce23fad73eef87764eb03fa8ba29525fc2d8bc
6e1ea8d65052f025060453f66819ac446a7592d8
/archive/yitu_190823_1.py
9bc62d7f4f5d998540148b96c2c20dc9588cbdf5
[]
no_license
csJd/oj-codes
bc38b79b9227b45d34139c84f9ef1e830f6b996c
2bd65d0070adc3400ee5bee8d1cf02a038de540b
refs/heads/master
2022-03-21T20:21:40.153833
2019-11-28T13:11:54
2019-11-28T13:11:54
47,266,594
2
0
null
null
null
null
UTF-8
Python
false
false
916
py
""" 某市新建了一条N个站的单向地铁(0,1 2...N-1,第i站和第i+1站相邻), 对于每个乘 客,假设从第S站上车,在第T站下车,需要支付(T-S)元。目前地铁公司准备通过车 站的进出人数统计应该收取的总车费,用于验证收费系统。现在这个计算总车费的 任务就交给了你。 输入描述: 第一行输入为N,表示有N个车站。 第二行输入为N个整数ai,表示第i-1个车站有ai个人进入 第三行输入为N个整数bi,表示第i-1个车站有b;个人离开 输出描述: 输出一个整数sum,表示总车费 3 1 2 0 0 0 3 4 """ if __name__ == "__main__": n = int(input()) ...
[ "d.vay@qq.com" ]
d.vay@qq.com
a023174f1155d3d84e42e629850e0714f3296d62
9dd665b950ff86c82f3ea74b6c1216bc42c7c1df
/Python-Advanced/Function_Advanced/function_executor.py
1c028d1b2bd62a4045759c86f5a5c5c8d2ae3aa3
[]
no_license
toshhPOP/SoftUniCourses
464c63a92e6594654a223cd764dc425f2990918b
b17021edd87d03b903567bf383ee71dce9a484cb
refs/heads/main
2023-08-27T20:37:07.849185
2021-11-06T08:28:52
2021-11-06T08:28:52
394,772,063
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
def sum_numbers(num1, num2): return num1 + num2 def multiply_numbers(num1, num2): return num1 * num2 def func_executor(*args): result = [] for i in range(len(args)): for func_name, data in args: result.append(func_name(*data)) return result # print(func_executor((sum_numbe...
[ "toshopz26@gmail.com" ]
toshopz26@gmail.com
418ad7deaa49c5131bf0f0d60c9e43fb6f58463d
c149f1263b41f89eb03201044c16e47476f7e79f
/Rootfs/opt/ros/jade/bin/catkin_test_results
4b7ddcb91a744d87a87bb73927a1adb6a0ed4a5a
[]
no_license
BasJ93/Zybo_Ubuntu
d596511dd7820aeb545a426e9c395b27b60028f9
2a50f4171a5469e0e96f0c0e75c528af0908758c
refs/heads/master
2022-12-22T00:17:54.522038
2017-02-02T13:15:16
2017-02-02T13:15:16
72,639,835
2
1
null
2022-12-16T08:57:26
2016-11-02T12:54:53
C++
UTF-8
Python
false
false
1,720
#!/usr/bin/python from __future__ import print_function import argparse import os import sys # find the import relatively if available to work before installing catkin or overlaying installed version if os.path.exists(os.path.join(os.path.dirname(__file__), '..', 'python', 'catkin', '__init__.py')): sys.path.inse...
[ "r.halvaei@gmail.com" ]
r.halvaei@gmail.com
1f846500b996a975044c57bba5447aa40d8c11f0
c3ff891e0e23c5f9488508d30349259cc6b64b4d
/python练习/网络编程练习/python高级3/10-pdb调式.py
4dcdcef47e8e8144faa86dc77715c122fdb9991f
[]
no_license
JacksonMike/python_exercise
2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53
7698f8ce260439abb3cbdf478586fa1888791a61
refs/heads/master
2020-07-14T18:16:39.265372
2019-08-30T11:56:29
2019-08-30T11:56:29
205,370,953
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
# pdb调式 ''' l list显示当前代码 n next向下执行一行代码 c continue继续执行代码 b break添加断点 c clear删除断点 p print打印一个变量的值 a args打印所有的形参数据 s step进入到一个函数 q 退出调试 IDE 集成开发环境 r return快速执行到函数的最后一行 '''
[ "2101706902@qq.com" ]
2101706902@qq.com
149650f6dc3ec87cc81f1dbd63d7cbe0c3f1625e
9887a323145380f5c866121bad78a311a6fdfd63
/tests/test_stateless.py
25f5bd88ffe88c808377212fc0acc99d33ecd4b9
[]
no_license
teh/pyoidc
f27df0cfce0698c4dbbed9b14b1934df18ea7aea
77df9ea28d403f0065b68f85f8f2c7577822929f
refs/heads/master
2021-01-14T09:36:36.961355
2014-12-12T17:39:58
2014-12-12T17:39:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
from oic.utils.stateless import StateLess __author__ = 'roland' def _eq(l1, l2): return set(l1) == set(l2) def test_access_code(): keys = {"OCT": ["symmetric key123"]} st = StateLess(keys, enc_alg="A128KW", enc_method="A128CBC-HS256") con = st.create_authz_session("subject", ...
[ "roland.hedberg@adm.umu.se" ]
roland.hedberg@adm.umu.se
a112044b675ee8d69166debce62ac2bcb55d999e
9f495456202ecbfdcbc17aae96f8db47116f7adf
/myenv/lib/python3.6/site-packages/django_extensions/management/color.py
a6c893701d4e152a761c86a35d767d21671b95d6
[]
no_license
nknaveenkumar760/pythontutorial
8dfae178e5ffa1942722a3754bd1b0c1fc99aa3b
22df07acad252040c6b9b68c935fef5add9cf974
refs/heads/master
2022-02-19T18:06:40.386333
2019-08-02T08:12:11
2019-08-02T08:12:11
171,852,495
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
# -*- coding: utf-8 -*- """ Sets up the terminal color scheme. """ from django.core.management import color from django.utils import termcolors def _dummy_style_func(msg): return msg def no_style(): style = color.no_style() for role in ('INFO', 'WARN', 'BOLD', 'URL', 'MODULE', 'MODULE_NA...
[ "nknaveenkumar760@gmail.com" ]
nknaveenkumar760@gmail.com
ca84fb9ad8f7c98892e0ac88b8fd6cbd03a8d62e
cf546730d2eada1fa876fd6990303535b970ddaa
/cross_product.py
c8fbc7b2decebd4e3c3c02a82917b05235a7ec15
[]
no_license
ibnahmadCoded/how_to_think_like_a_computer_scientist_Chapter_5
7f3bb2dfb879641cb2fde819526ddd99269ae2e5
e477bfa9d7ff681e7c7440b8f98db5b642797781
refs/heads/master
2021-05-21T05:28:17.843714
2020-04-02T21:20:01
2020-04-02T21:20:01
252,566,063
0
0
null
null
null
null
UTF-8
Python
false
false
651
py
def cross_product(vector1, vector2): """calculates cross product of two vectors of length 3""" if len(vector1) == len(vector2) == 3: #check if both vector lengths are 3 #create new_vector containing all lsit values new_vector = vector1[:] new_vector.extend(vector2) #calculate de...
[ "alegeaa@yahoo.com" ]
alegeaa@yahoo.com
55f43a17228fc9de9dd1c3b45bdabcdcb5455f66
e965adf3c062c4e8af4a113d5bcbb046ecc9ae94
/torchocr/losses/det_pse_loss.py
9199bbeb69ffbe4079f6406b8fdf71c3178bc169
[]
no_license
WenmuZhou/PytorchOCR
fc043af60a4fe05d29739d0320b9aa7c1e945af4
ad0e4d6026f35e71c6a27651e7348d613c845fac
refs/heads/dev
2023-08-31T04:32:07.536836
2023-08-30T15:52:16
2023-08-30T15:52:16
263,868,388
1,178
281
null
2023-09-04T09:47:16
2020-05-14T09:14:43
Python
UTF-8
Python
false
false
4,867
py
import torch from torch import nn from torch.nn import functional as F from .det_ct_loss import iou class PSELoss(nn.Module): def __init__(self, alpha, ohem_ratio=3, kernel_sample_mask='pred', reduction='sum', eps=1e-6, ...
[ "572459439@qq.com" ]
572459439@qq.com
254537eab236ca67e4b962d2717065d0d9047574
9d764e43207cc0bef3c613406154f05018979381
/core/read_results.py
ede212309df7a46264c0a355438eb82f43ef6538
[]
no_license
mwalling/RaceDB
a1a1ba5fcfcd6aa934b871f0182bb9865c1dd1df
5540c23e62dfca608a9f34f6c82767fe2a4d50b0
refs/heads/master
2023-03-22T01:58:49.193018
2023-02-23T14:38:38
2023-02-23T14:38:38
189,480,775
0
0
null
2019-05-30T20:50:04
2019-05-30T20:50:04
null
UTF-8
Python
false
false
7,988
py
import re import pytz import datetime from collections import defaultdict from .models import * from .DurationField import formatted_timedelta reNonDigit = re.compile( r'[^\d]' ) def get_event_from_payload( payload ): raceScheduledLocalList = [int(f) for f in reNonDigit.sub( ' ', payload['raceScheduledStart'] ).spli...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
eba47dbe34cb021576261b31016d3e5db65b8155
adf66a4b3c92bd38f5532fb4792c8e6b84c55ca5
/manage.py
b2dfee2ca97ccd0ab958fb60fe14038845cd0478
[]
no_license
nicpottier/call
502d15bfb3412826aaaff7cb5cda521ee96cdc4e
11e833959c6c00429939a94cf6e66541daa770da
refs/heads/master
2020-04-14T20:39:39.419658
2013-11-10T09:51:21
2013-11-10T09:51:21
14,273,365
0
1
null
null
null
null
UTF-8
Python
false
false
247
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "call.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "nicpottier@gmail.com" ]
nicpottier@gmail.com
f2140221343410ae1f1f059697cc237f9c6fbbc9
1978a9455159b7c2f3286e0ad602652bc5277ffa
/exercises/17_serialization/task_17_2.py
72b1b10d76e9b7339a888d368b87d3d1e094aec8
[]
no_license
fortredux/py_net_eng
338fd7a80debbeda55b5915dbfba4f5577279ef0
61cf0b2a355d519c58bc9f2b59d7e5d224922890
refs/heads/master
2020-12-03T17:32:53.598813
2020-04-08T20:55:45
2020-04-08T20:55:45
231,409,656
0
0
null
null
null
null
UTF-8
Python
false
false
1,993
py
# -*- coding: utf-8 -*- ''' Задание 17.2 Создать функцию parse_sh_cdp_neighbors, которая обрабатывает вывод команды show cdp neighbors. Функция ожидает, как аргумент, вывод команды одной строкой (не имя файла). Функция должна возвращать словарь, который описывает соединения между устройствами. Например, если как арг...
[ "fortunaredux@protonmail.com" ]
fortunaredux@protonmail.com
9c92b0a145b262d193e04316e60dc6fae61d6911
060c559cdfe39e3ff37bcc4f5113f30901a605d7
/tf2onnx/tflite/ConcatenationOptions.py
8f8281e5634b361f0715652758770364a4424a7c
[ "Apache-2.0" ]
permissive
onnx/tensorflow-onnx
4402bc3416b1e191b122120aafcce5a5f396b160
d5b7f39de66f3b4ff8731fd23b3f379ae731e601
refs/heads/main
2023-09-01T08:47:00.417130
2023-08-29T03:57:16
2023-08-29T03:57:16
125,098,252
2,068
454
Apache-2.0
2023-08-29T03:57:18
2018-03-13T18:39:56
Jupyter Notebook
UTF-8
Python
false
false
2,443
py
# SPDX-License-Identifier: Apache-2.0 # automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class ConcatenationOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf,...
[ "noreply@github.com" ]
onnx.noreply@github.com
0b698208cfdb527b6d10310aa139e9ba2561ef02
187a6558f3c7cb6234164677a2bda2e73c26eaaf
/jdcloud_sdk/services/jdro/models/Change.py
92811c40be406b3cabcf8f70d168540d284dd466
[ "Apache-2.0" ]
permissive
jdcloud-api/jdcloud-sdk-python
4d2db584acc2620b7a866af82d21658cdd7cc227
3d1c50ed9117304d3b77a21babe899f939ae91cd
refs/heads/master
2023-09-04T02:51:08.335168
2023-08-30T12:00:25
2023-08-30T12:00:25
126,276,169
18
36
Apache-2.0
2023-09-07T06:54:49
2018-03-22T03:47:02
Python
UTF-8
Python
false
false
920
py
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
[ "oulinbao@jd.com" ]
oulinbao@jd.com
e0f3d58dc2a660f703a3de9c29ea1eeafca629d7
4bf6ccc2f6d0eeefcb51a946e871d352d6b8e910
/functions/1-even-numbers.py
b9f07d2bc941f9c060926e7cc370b384f454b18d
[]
no_license
KalinHar/Advanced-Python-SoftUni
81764cb3c2f3560950b884dd562d9658cc8fcff4
2887e6dfbda23478bf56a4f796392eaeb63b9987
refs/heads/main
2023-06-03T21:31:04.972260
2021-06-27T13:22:47
2021-06-27T13:22:47
357,142,736
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
print(list(filter(lambda x: x % 2 == 0, map(int, input().split())))) def is_even(num): return num % 2 == 0 even_nums = list(filter(is_even, [1,2,3,4,5,6]))
[ "kalix@abv.bg" ]
kalix@abv.bg
f60d1f2cef2a6a6c2ef615e6d7647781af500928
c45c1716137226bed2c3dc91400516b62038df32
/conftest.py
f22a49b0af7a2c504fed559d4d063ccb05658952
[ "Apache-2.0" ]
permissive
alkahan/testinfra
a30489377307c709b25f0dff6c1a0ce16a351774
a68908c46bffe447f4fb1ef2b1796b6ff1f7e672
refs/heads/master
2021-01-14T11:52:18.569036
2016-04-25T17:08:58
2016-04-25T17:08:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
# -*- coding: utf8 -*- # Copyright © 2015 Philippe Pepiot # # 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 ...
[ "phil@philpep.org" ]
phil@philpep.org
8f5918a19bac39c53ebf800dcb52c51094a100d5
ef187d259d33e97c7b9ed07dfbf065cec3e41f59
/work/atcoder/abc/abc049/C/answers/019021_rishizek.py
75f66df89435a327110c0eb0d6a8221d54d1517a
[]
no_license
kjnh10/pcw
847f7295ea3174490485ffe14ce4cdea0931c032
8f677701bce15517fb9362cc5b596644da62dca8
refs/heads/master
2020-03-18T09:54:23.442772
2018-07-19T00:26:09
2018-07-19T00:26:09
134,586,379
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
s = input() words = ['dream','dreamer','erase','eraser'] while len(s) > 4: if s[-5:] == 'dream': s = s[:-5] continue elif s[-7:] == 'dreamer': s = s[:-7] continue elif s[-5:] == 'erase': s = s[:-5] continue elif s[-6:] == 'eraser': s = s[:-6] ...
[ "kojinho10@gmail.com" ]
kojinho10@gmail.com
a8500b9bf61e3a69138366cd38ecb3ed68aef855
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02923/s599656381.py
51ea3d985a29d3978fb8f300827cd433959e4128
[]
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
383
py
n=int(input()) h=list(map(int,input().split())) step=[] for i in range(n-1): if h[i]<h[i+1]: step.append(0) else: step.append(1) a=[i for i, x in enumerate(step) if x==0] ans=[] for i in range(len(a)): if i==0: d=a[0] ans.append(d) else: b=a[i]-a[i-1] ans.append(b) if not a: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ab0babad06021b638f09a56fde129ae57ac2ee67
da2c6eed934559fae4258353c6bbbda10f160f1d
/GroupNumber/GetNumber.py
d0ca582bba3aa24ea55365b17ef3d9e3fec1bbeb
[]
no_license
Romanov-Niko/crazywork
b7ddfe6f8195a8411953eada8742835ab866ad5d
01ef7b0613870bfd538f027447d1dd5682d279ff
refs/heads/master
2020-09-03T15:52:01.899251
2019-11-04T14:00:38
2019-11-04T14:00:38
219,503,196
0
0
null
2019-11-04T13:39:45
2019-11-04T13:03:24
Python
UTF-8
Python
false
false
285
py
import re def getNumber(text): """ Функція зчитує рядок та повертає номер групи :param test: str, str, KM-91 :return: str, str, 91 """ group_number = re.findall('\d{2}', text) return group_number print( getNumber())
[ "you@example.com" ]
you@example.com
e05091315c6652d7036f48ac7247c81e18690652
41777d4d219ea97b4632f4a8a31ab6c82a60772c
/kubernetes_typed/client/models/v1beta1_api_service_condition.py
1afbe83e38cd1a725f1582ad516f5b1ec312d1f3
[ "Apache-2.0" ]
permissive
gordonbondon/kubernetes-typed
501d9c998c266386dc7f66f522f71ac3ba624d89
82995b008daf551a4fe11660018d9c08c69f9e6e
refs/heads/master
2023-07-18T12:06:04.208540
2021-09-05T19:50:05
2021-09-05T19:50:05
319,183,135
24
2
Apache-2.0
2021-09-05T19:50:06
2020-12-07T02:34:12
Python
UTF-8
Python
false
false
402
py
# Code generated by `typeddictgen`. DO NOT EDIT. """V1beta1APIServiceConditionDict generated type.""" import datetime from typing import TypedDict V1beta1APIServiceConditionDict = TypedDict( "V1beta1APIServiceConditionDict", { "lastTransitionTime": datetime.datetime, "message": str, "re...
[ "noreply@github.com" ]
gordonbondon.noreply@github.com
3baddc6ef84c3ac4d1921f12ae7b676a9d5b328d
d8574d8ca5c571fd7ed3b67dac00c55df2ac6580
/tools/forklift/python/forklift/arlcm/task_planner_status_t.py
a76bfd712eeab6d447086b2f6ea20d4d7418ceb0
[]
no_license
h2r/slu_core
19de87e55e84dd4dada65b4d7b65857bdae740e8
e30c0245177e8481397fd4987422e3d35d79ec08
refs/heads/master
2021-07-09T18:19:33.424551
2020-07-06T18:49:18
2020-07-06T18:49:18
143,929,984
0
0
null
null
null
null
UTF-8
Python
false
false
3,860
py
"""LCM type definitions This file automatically generated by lcm. DO NOT MODIFY BY HAND!!!! """ import cStringIO as StringIO import struct import task_summary_t import task_planner_state_enum_t class task_planner_status_t(object): __slots__ = ["utime", "current_task_active_utime", "current_job_active_utime", "n...
[ "stefie10@alum.mit.edu" ]
stefie10@alum.mit.edu
35c410482e50a8fff0b6d6ede08ecb6337f04481
d2df2313410c73456f5ba5e27b3b38dd161b4708
/data_engine/rebuild_dataset_from_config.py
aced9cb467350f1485f323992a85202a023f805b
[ "MIT" ]
permissive
DeepaliVerma/interactive-keras-captioning
d3d26b14efae9ee807b95c5b4943ec7f10a2ae61
9791f0e96aeb89c9b4d97f2f3352b50f18f14df9
refs/heads/master
2021-04-18T09:27:57.679293
2019-08-02T10:39:14
2019-08-02T10:39:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
# -*- coding: utf-8 -*- from __future__ import print_function import argparse import logging import ast logging.basicConfig(level=logging.INFO, format='[%(asctime)s] %(message)s', datefmt='%d/%m/%Y %H:%M:%S') logger = logging.getLogger(__name__) def parse_args(): parser = argparse.ArgumentParser("Rebuilds a data...
[ "lvapeab@gmail.com" ]
lvapeab@gmail.com
146fd2c4ef1974cdd780d9da975e19f2a851ea0f
6411acb3828fec8cc79f6f2630a4d99e8352a9aa
/983*.py
9fce268a1dc9e6aed339b0a7413740038e75d1e1
[]
no_license
zhouliuling/Leetcode_Task
95f55a3ca33b561a130fc15272e513d9af2c0317
0230d31351a4093e8ae6be5fe0c175f3f41e08ac
refs/heads/master
2020-05-25T18:44:59.377953
2019-09-12T02:14:22
2019-09-12T02:14:22
187,935,297
0
1
null
null
null
null
UTF-8
Python
false
false
1,317
py
## 最低票价 # 动态规划,dp[i]为截至到days[i]天所需要的最小花费,双指针i为当前截至到的天数,j为向前遍历寻找最小值的指针 # 如下 class Solution(object): def mincostTickets(self, days, costs): """ :type days: List[int] :type costs: List[int] :rtype: int """ n = len(days) dp = [float("inf") for i in range(n)] ...
[ "noreply@github.com" ]
zhouliuling.noreply@github.com
51d6635031513e7e4c0ce91cedc7498850c7b58e
007cd60ca84623c5ace8b50e846be659ae2e8c85
/migrations/versions/20161007222818_create_cochrane_reviews_table.py
3397e090d60d4302b51ad66e0ddb0927da16521c
[ "MIT" ]
permissive
kenferrara/collectors
412a97f0475747a206cbe68890774c0c37e9fc1a
e6c1f45df3a1ffd5d60dada1816484812eb51417
refs/heads/master
2023-04-16T22:01:19.899692
2020-04-23T02:31:24
2020-04-23T02:31:24
258,073,992
0
0
MIT
2023-04-04T00:19:23
2020-04-23T02:30:59
Python
UTF-8
Python
false
false
1,076
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import sqlalchemy as sa from sqlalchemy.dialects.postgresql import UUID, JSONB from alembic import op # revision identifiers, used by Alembic. r...
[ "vitor@vitorbaptista.com" ]
vitor@vitorbaptista.com
516e24a492609350cabd5054a920292e6ee19afc
aba00d6272765b71397cd3eba105fc79b3a346e0
/Digisig/digsigvenv/lib/python3.6/site-packages/ufl/algorithms/ad.py
9f170982653f08b3b60d6a1d00c51eeba8540a94
[]
no_license
JosteinGj/School
a2c7cc090571b867637003fe6c647898ba9d8d24
3b5f29846e443b97f042241237dbda3208b20831
refs/heads/master
2023-05-02T11:07:29.517669
2021-04-26T09:04:57
2021-04-26T09:04:57
295,340,194
3
1
null
null
null
null
UTF-8
Python
false
false
1,653
py
# -*- coding: utf-8 -*- """Front-end for AD routines.""" # Copyright (C) 2008-2016 Martin Sandve Alnæs # # This file is part of UFL. # # UFL is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either versi...
[ "jostein.gj@gmail.com" ]
jostein.gj@gmail.com
fcecee171166f9dc803e588c855551fc6627391c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02630/s465870770.py
4458288c9b39c96f5cb2465230274515cf7364ea
[]
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
396
py
n = int(input()) a = list(map(int, input().split())) q = int(input()) total = sum(a) dct = {} for i in range(n): if a[i] in dct: dct[a[i]] += 1 else: dct[a[i]] = 1 for i in range(q): b, c = map(int, input().split()) if b not in dct: dct[b] = 0 if c not in dct: dct[c] = 0 total +...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
54b6520320b80f11584dedf5e51c8584f3620532
41dbb27af3a3ecabeb06e2fb45b3440bcc9d2b75
/reglog/migrations/0019_product_review.py
0410a5c982b4000f015615b0d5791b7ac570303d
[]
no_license
joypaulgmail/Dookan
4df83f37b7bcaff9052d5a09854d0bb344b9f05a
7febf471dd71cc6ce7ffabce134e1e37a11309f7
refs/heads/main
2023-03-02T04:10:19.611371
2021-02-09T11:45:32
2021-02-09T11:45:32
336,476,910
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
# Generated by Django 3.1 on 2021-02-06 13:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reglog', '0018_product_rating'), ] operations = [ migrations.AddField( model_name='product', name='review', ...
[ "joypaul650@gmail.com" ]
joypaul650@gmail.com
c27367a698276e9b4b5a34e98a65ec813aede320
afb16c3188bf06af65ae0d998e114c72342bd8be
/note/demo/pyd_package/my_module/my_module.py
644afe9a07a2d8dcd1e542e5dc323cd1932db422
[]
no_license
onsunsl/onsunsl.github.io
aa75f399f1c647bc2e62314633bfe35187e59ad4
4ed2b1b9a2407afcbffdf304020d42b81c4c8cdc
refs/heads/master
2023-05-26T12:33:11.167270
2023-04-01T10:18:05
2023-04-01T10:18:05
237,595,319
1
0
null
2023-05-23T20:13:11
2020-02-01T10:02:58
Python
UTF-8
Python
false
false
254
py
from my_module.sub_folder import sub_module def hello() -> None: print("hello " + sub_module.world()) def py_fib(n: int) -> int: a, b = 0, 1 for _ in range(n): a, b = a + b, a return a if __name__ == '__main__': hello()
[ "onsunsl@foxmail.com" ]
onsunsl@foxmail.com
335e6efc58aed21929c3eb4982bcacb78343b2ed
8ee5dcbdbd407eb5f294d430813b16eca22f571c
/data/HW3/hw3_159.py
32978210857e87995a16470d63e23dfa5c040a32
[]
no_license
MAPLE-Robot-Subgoaling/IPT
5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9
f512ea3324bfdceff8df63b4c7134b5fcbb0514e
refs/heads/master
2021-01-11T12:31:00.939051
2018-08-13T23:24:19
2018-08-13T23:24:19
79,373,489
1
1
null
null
null
null
UTF-8
Python
false
false
442
py
def main(): temperature=float(input("Please enter the temperature: ")) scale=str(input("Please enter 'C' for Celcius, or 'K' for Kelvin: ")) if scale=='k': temperature=(temperature-273.15) if temperature>=100: print("At this temperature, water is a gas.") elif temperature>0: ...
[ "mneary1@umbc.edu" ]
mneary1@umbc.edu
2cdd105f9d28b8e4d7a69e65868a50b1fe35222d
2f989d067213e7a1e19904d482a8f9c15590804c
/lib/python3.4/site-packages/storages/backends/gs.py
9899bba41afaff02cf13e8619f592fc1aa83e9e3
[ "MIT" ]
permissive
levabd/smart4-portal
beb1cf8847134fdf169ab01c38eed7e874c66473
2c18ba593ce7e9a1e17c3559e6343a14a13ab88c
refs/heads/master
2023-02-18T05:49:40.612697
2022-08-02T09:35:34
2022-08-02T09:35:34
116,001,098
0
1
MIT
2023-02-15T21:34:01
2018-01-02T10:00:07
Roff
UTF-8
Python
false
false
3,986
py
from django.core.exceptions import ImproperlyConfigured from storages.backends.s3boto import S3BotoStorage, S3BotoStorageFile from storages.utils import setting from storages.compat import BytesIO try: from boto.gs.connection import GSConnection, SubdomainCallingFormat from boto.exception import GSResponseErr...
[ "levabd@gmail.com" ]
levabd@gmail.com
b9079933929522586488dd9420adb5598d7e1abc
5d07564d0dbf02d084ba4a7f8fa942c328305400
/ebooks_api/migrations/0001_initial.py
f5f749f0a4764daf73d061236943b445c85330af
[]
no_license
PythonDjangoJavascript/ebook_api
860bc9347fdba687e07186f7f0aa2d69711e0591
ce6cad441c119ea3537f30fe90f8a8ca0ef1b263
refs/heads/main
2023-04-19T13:07:30.198177
2021-05-12T14:52:18
2021-05-12T14:52:18
365,871,430
0
0
null
null
null
null
UTF-8
Python
false
false
1,686
py
# Generated by Django 3.2.2 on 2021-05-12 08:46 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
[ "nuruddinsayeed@gmail.com" ]
nuruddinsayeed@gmail.com
d571872c7236522dd6f3efad9845a1671b44d80b
ac0ec91101136ce016d1fc34d43c457517f469e6
/ptm/mysite/urls.py
9244a5840f9058497efecacb8be62a4cb72a491f
[]
no_license
SardarDawar/Real-estate
df907f79a7d7e7dd9e40ed8ded3e4203a3a041ab
3772e06fec19234b7ee51f431c6bb265c02d4051
refs/heads/master
2020-09-17T10:46:01.316330
2019-11-26T15:25:09
2019-11-26T15:25:09
223,478,751
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
from django.conf.urls import url from django.urls import path , include from . import views #REST API URLS from django.contrib.auth.views import PasswordResetView,PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView urlpatterns = [ url(r'^$', views.home, name="home"), url(r'login/', v...
[ "dawarsardar786@gmail.com" ]
dawarsardar786@gmail.com
9076afc6f5538a1b3ccd3255fe127761e9c4b40e
4738129b25fceb5c8fdc83eebdd7621e41910230
/python-leetcode/sw_62.py
056b0beb7bc48a50a18db4a23273c036222b99c2
[ "MIT" ]
permissive
MDGSF/JustCoding
43aa20773b9c8325e6ba632e9941d235e9e285aa
2faa46323df991a12014021b49d568387a882233
refs/heads/master
2023-07-21T19:07:15.899019
2023-07-09T07:29:59
2023-07-09T07:29:59
201,714,062
15
2
null
null
null
null
UTF-8
Python
false
false
227
py
class Solution: def lastRemaining(self, n: int, m: int) -> int: last = 0 for i in range(2, n + 1): last = (last + m) % i return last n = 5 m = 3 s = Solution() result = s.lastRemaining(n, m) print(result)
[ "1342042894@qq.com" ]
1342042894@qq.com
2337b079f445c7b808ef0ef98557f64a72f60385
28b405b8a538187367e019e45dd7fff3c5f4f296
/src/rocks-pylib/rocks/commands/set/host/interface/ip/__init__.py
0d32ba3c98962558e03437da5e8d2d4275171a7e
[]
no_license
rocksclusters/core
95c84cbe4d9f998eea123177e43b25fa0475c823
7fb7208aa4a532e64db83e04759d941be9b96d91
refs/heads/master
2023-04-08T16:30:45.931720
2023-03-23T17:18:54
2023-03-23T17:18:54
58,084,820
21
11
null
2019-08-22T21:17:23
2016-05-04T21:21:17
Python
UTF-8
Python
false
false
6,507
py
# $Id: __init__.py,v 1.16 2012/12/21 17:52:10 clem Exp $ # # @Copyright@ # # Rocks(r) # www.rocksclusters.org # version 6.2 (SideWinder) # version 7.0 (Manzanita) # # Copyright (c) 2000 - 2017 The Regents of the University of California. # All rights reserved. # # Redistribution...
[ "ppapadopoulos@ucsd.edu" ]
ppapadopoulos@ucsd.edu
1f95ebd23ce80076bb3ee433cf0263f278430888
80efa0b81c8b94187e5e31fd8cc1a49dea1bf9f5
/returns/_generated/pointfree/unify.pyi
131ea4ee39ca810089a5d4f6f2ef05ba2d429f36
[ "BSD-2-Clause" ]
permissive
orsinium-forks/returns
3958dd085207819d2d456c5ad9fe3be5b182fe36
d3a24e0ccd73b5a9d06a071b5e026dfbe70f7d23
refs/heads/master
2022-09-28T20:40:43.368647
2020-04-21T21:14:00
2020-04-21T21:14:00
257,868,138
0
0
null
null
null
null
UTF-8
Python
false
false
739
pyi
from typing import Callable, TypeVar, Union, overload from returns.io import IOResult from returns.result import Result _ValueType = TypeVar('_ValueType') _ErrorType = TypeVar('_ErrorType') _NewValueType = TypeVar('_NewValueType') _NewErrorType = TypeVar('_NewErrorType') # Bind: @overload def _unify( function:...
[ "mail@sobolevn.me" ]
mail@sobolevn.me
958224618ebebc8a8c7df9328ff5ce2953f3a4b3
eba3644b3eb66932aec7dbcf69eb034475c582e1
/waiter/users/apps.py
0defa08218a486f2852eeb911861f7185ed50740
[ "MIT" ]
permissive
ivanistheone/waiter
d8528b9b67150b50aa2eccba56d01eb48499389a
b4a36632e8fe16aa406594a5a3a371578e3268e9
refs/heads/master
2021-01-23T15:59:20.845681
2017-07-06T19:35:23
2017-07-06T19:35:23
93,280,147
1
1
null
2017-06-29T15:46:17
2017-06-03T23:58:37
Python
UTF-8
Python
false
false
272
py
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'waiter.users' verbose_name = "Users" def ready(self): """Override this to put in: Users system checks Users signal registration """ pass
[ "ivan.savov@gmail.com" ]
ivan.savov@gmail.com
a80bf119152a078988b2e44b99248fb0af1bb798
5533b221b59665e7b933f29f5113bb91cb194c96
/LocalNews/downloadPic.py
46f28eb4b327bf9122bd63e4383e2ed234c7a390
[]
no_license
realzhengyiming/LocalNews
841a868447a95c3eaca32a2ebb1a25ada52018a8
77bba475b13c2cede55692242648007d87ae90a0
refs/heads/master
2020-05-09T15:55:16.954356
2019-10-07T08:00:18
2019-10-07T08:00:18
181,250,122
1
1
null
null
null
null
UTF-8
Python
false
false
2,269
py
#下载到的一个路径中去,把图片下载下来,并且把新闻里面的 import os import time import requests ##导入requests # url = '//www.jb51.net/images/logo.gif' # filename = os.path.basename(url) # print(filename) #这儿是python 3 的一个下载没有防止盗链的东西的一个小demo # for page in range(1, int(max_span) + 1): ##不知道为什么这么用的小哥儿去看看基础教程吧 # page_url = href + '/' + str(page) ##同...
[ "realzhengyiming@outlook.com" ]
realzhengyiming@outlook.com
0c3b8d127ad4eb36e2bcedc6238a7cf46d1fafad
3c1c447bb1de89094dcd3cb2e85b227d3d6aa2fb
/lesson28part2/mysite/urls.py
8d2498788ef0e62229dcc3f1c5c7f36583357e1d
[]
no_license
kirigaikabuto/Python13Lessons
ebd9431314fc4ab8bd470cfe137dfc60000b90a0
6ab8390fd1cc0aac87d373cb1a50d2c9b4405391
refs/heads/main
2023-06-03T00:29:36.791865
2021-06-15T15:17:29
2021-06-15T15:17:29
314,754,425
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
from django.contrib import admin from django.urls import path, include urlpatterns = [ path('admin/', admin.site.urls), path("", include("todos.urls")), ]
[ "tleugazy98@gmail.com" ]
tleugazy98@gmail.com
f1440456899cfebadd8165b15e032b6053eac003
e35fd52fe4367320024a26f2ee357755b5d5f4bd
/leetcode/p0062 - Unique Paths.py
758c67fc4bcd53c2e29803e588d343dd47c8a7a8
[]
no_license
liseyko/CtCI
a451967b0a0ce108c491d30b81e88d20ad84d2cd
c27f19fac14b4acef8c631ad5569e1a5c29e9e1f
refs/heads/master
2020-03-21T14:28:47.621481
2019-11-12T22:59:07
2019-11-12T22:59:07
138,658,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,454
py
class Solution: """ dfs: slow, but with details def uniquePaths(self, m, n): self.paths = 0 def dfs(i=0, j=0,path=[]): #print(i,j) if i==m-1 and j==n-1: #paths.append(path) self.paths += 1 else: ...
[ "liseyko@gmail.com" ]
liseyko@gmail.com
bd1feb3ab758aa609dc4166a4007f56be95736d4
0d52e1f243c08937a081613e2f8c340aa8ffe46f
/dit/other/renyi_entropy.py
8242f3b2819cf2503f752282b0427dfcea8cc675
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mpeaton37/dit
b7a2ff96588e791231f55cb91cc1a2336febcd9d
d2c2bb566257dff86d60184868b05e4d8e3cba90
refs/heads/master
2021-09-02T13:03:24.242861
2018-01-02T22:02:42
2018-01-02T22:02:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,914
py
""" Renyi Entropy """ from __future__ import division import numpy as np from ..helpers import normalize_rvs from ..utils import flatten from ..multivariate import entropy __all__ = ('renyi_entropy', ) def renyi_entropy(dist, order, rvs=None, rv_mode=None): """ Compute the Renyi entropy of order ...
[ "ryangregoryjames@gmail.com" ]
ryangregoryjames@gmail.com
1bf57db0a191fd84ff11ddd327d95f06daa47489
b9360389f3345c550250a1bd5a5fe58bd7410a71
/wlct/migrations/0010_auto_20190423_1427.py
e4ba429f1fce5752a43018153c99f018769275f9
[]
no_license
JustinR17/wzclot
d6f4bd8b46240abbeaa51837c1de1f3115554f17
4fa29666eb72aafee28bf57898fecc679fb3d4bb
refs/heads/master
2023-02-07T22:43:13.827383
2021-12-30T22:34:39
2021-12-30T22:34:39
241,187,417
0
0
null
2020-02-17T19:14:01
2020-02-17T19:14:00
null
UTF-8
Python
false
false
1,399
py
# Generated by Django 2.1.4 on 2019-04-23 21:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wlct', '0009_tournament_game_creation_allowed'), ] operations = [ migrations.CreateModel( name=...
[ "brendanflynn@outlook.com" ]
brendanflynn@outlook.com
bfe36febdce53a7ba2c4d5dfa2a2dd571fe4e3f7
c537d58577d5766d9d05752a5e0b8ad409af6be2
/2019/Day_12/day12p1.py
336c0769c89a66eae323c17344ed14528f2e3b59
[]
no_license
Whitie/AdventOfCode
c642fdeb16624144d5b575e8883a11f77e06931f
525e7aa923fc55f749ce800e18e1f685a8b433ee
refs/heads/master
2022-12-08T15:10:39.733380
2022-12-08T10:06:28
2022-12-08T10:06:28
226,948,154
0
0
null
null
null
null
UTF-8
Python
false
false
3,010
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import sys from itertools import combinations MOONS = ('Io', 'Europa', 'Ganymede', 'Callisto') STEPS = 1000 POS_RE = re.compile(r'<x=(-?\d+).+?y=(-?\d+).+?z=(-?\d+)>') class Position: def __init__(self, x=0, y=0, z=0): self.x = x self.y ...
[ "weimann.th@yahoo.com" ]
weimann.th@yahoo.com
55fee205a51523c9de8cf6ac37eb4711684c7257
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/zoofIO_flexx/flexx-master/flexx/util/minify.py
57003eee3deb2041fc77b3a7e115e0b531cd3179
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
3,433
py
""" JavaScript minification tools. """ def minify(code, remove_whitespace=False): """ Very basic minification of JavaScript code. Will likely support more advanced minifcation in the future. Parameters: code (str) : the JavaScript code to minify. remove_whitespace (bool) : if True, rem...
[ "659338505@qq.com" ]
659338505@qq.com
c54cafb303601a6f0965f1d6850b9f73b8c106fb
c0631f0c4f02f2ed750ec4c48341f87885fbe4ff
/GRACE_Loading/parse_configfile.py
ff80a09103bb3c79f0239971c6ced5d393938356
[]
no_license
whigg/GRACE_loading
bdac4ee5a0087d219ef47813f87170d90bde446d
a5ef26c35854d30a3a0e61fd471675ac519d2e3d
refs/heads/master
2023-03-21T11:00:34.187732
2021-03-11T23:00:46
2021-03-11T23:00:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,991
py
# Read the config file import os import configparser import collections Params = collections.namedtuple("Params", ["input_file", "output_dir", "grace_dir", "datafile", "scalefile", "grace_dates_file", "gracetype", "max_distance", "d...
[ "kathrynmaterna@gmail.com" ]
kathrynmaterna@gmail.com
b1e16e926baa5d753f1ae181f8d730dd8388c1fb
1d1a21b37e1591c5b825299de338d18917715fec
/Mathematics/Data science/Mathmatics/06/Pgmpy_package.py
fc622493dae1b9221d42e0c658b617193ba9bc27
[]
no_license
brunoleej/study_git
46279c3521f090ebf63ee0e1852aa0b6bed11b01
0c5c9e490140144caf1149e2e1d9fe5f68cf6294
refs/heads/main
2023-08-19T01:07:42.236110
2021-08-29T16:20:59
2021-08-29T16:20:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
import pgmpy import numpy as np from pgmpy.factors.discrete import JointProbabilityDistribution as JPD px = JPD(['X'], [2], np.array([12, 8]) / 20) print(px)
[ "jk04059@naver.com" ]
jk04059@naver.com
1c55fa0f616bcb4814c49ec336397c511987c1d5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03623/s773120734.py
ba660e328a9a37552eee26aa8bb55766b1773586
[]
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
286
py
import sys input = sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 x,a,b=MI() if abs(x-a)<abs(x-b): print("A") else: print("B") main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d77d031d5fbc46cbba04d2a8783edd00a3e969d8
aacd5b8e2174a09b2ee2b933338a4c52063386c7
/tests/integration/test_concurrent_ttl_merges/test.py
1ca303a6dcc1b730c064f521abb7095f4067cb13
[ "Apache-2.0" ]
permissive
mcheshkov/ClickHouse
1cdeb2445149c4743ac92284a92fad17a9d760ed
0a0f79487412a7c9a3c39655c541551d742495bb
refs/heads/master
2022-12-10T07:04:20.431800
2020-09-09T14:08:06
2020-09-09T14:08:06
294,139,420
0
0
Apache-2.0
2020-09-09T14:35:59
2020-09-09T14:35:59
null
UTF-8
Python
false
false
6,832
py
import time import pytest import helpers.client as client from helpers.cluster import ClickHouseCluster from helpers.test_tools import TSV from helpers.test_tools import assert_eq_with_retry cluster = ClickHouseCluster(__file__) node1 = cluster.add_instance('node1', main_configs=['configs/fast_background_pool.xml'],...
[ "alesapin@gmail.com" ]
alesapin@gmail.com
972d7ed7cb10c00c20acd8f983d516517eb23cb2
fbcf396625e2e07ea0d9cbadf8b65abd055acdc0
/2019/day_6.py
47851260620d9e3720704fffa01e7b025d52f1c3
[]
no_license
XinnuoXu/AdventofCode
8a1cbcb94f2c540ccf3f42ed343d47317aafaa99
a5e32d3ff31da9f46e7a947420dffefe05a53d48
refs/heads/master
2021-06-21T09:22:33.244345
2020-12-27T13:03:09
2020-12-27T13:03:09
160,044,653
3
0
null
null
null
null
UTF-8
Python
false
false
1,648
py
#coding=utf8 def read_orbit(filename): orbits = {} for line in open(filename): flist = line.strip().split(')') left = flist[0] right = flist[1] if left not in orbits: orbits[left] = [] orbits[left].append(right) return orbits def part_1(orbits): core...
[ "xuxinnuo@yahoo.com" ]
xuxinnuo@yahoo.com
1314e2450897f0b2532bdfa02cbde1322d007826
6097c67f364f8fb2cfc6afb693512eba35a9d1a6
/Project 4 Sudoku/wrapper_driver.py
25358b6c15f3d15ca0b4d86208dae0627d0681f0
[]
no_license
asheeshcric/ai-columbiax-edx
e23054588372bfbdabd58edd85a71bb8b09af0b0
7cc1b2d8392e604f2b6d321d47d90e71f1c421d9
refs/heads/master
2021-09-12T21:47:10.267045
2018-04-21T08:37:42
2018-04-21T08:37:42
129,256,187
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
import os path_for_script = os.path.abspath('driver_3.py') file = open('sudokus_start.txt', 'r') for line in file: os.system("python3 driver_3.py " + line)
[ "ashiz2013@gmail.com" ]
ashiz2013@gmail.com
63a25673eae0879eac0e36be00158c94fe8cf596
7bc8807c261adccb2e71c97e01ce48b8c13d529d
/Lecture_Nlp/Day_21_01_CnnFirst.py
231da9eb5b6b37030cfb4ebe915eee1739d8ff3f
[]
no_license
yunhui21/CB_AI_3_NLP
4e090f028123621978164ad29d9789767c1ec0b0
20485ce5bae472d1b63b58adf69207a2837bb96a
refs/heads/main
2023-01-30T11:10:41.385293
2020-12-17T03:56:53
2020-12-17T03:56:53
309,216,161
0
0
null
null
null
null
UTF-8
Python
false
false
2,941
py
# Day_21_01_CnnFirst.py import tensorflow.compat.v1 as tf tf.disable_eager_execution() import numpy as np (x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data() print(x_train.shape, x_test.shape) # (60000, 28, 28) (10000, 28, 28) print(y_train.shape, y_test.shape) # (60000,) (10000,) pr...
[ "yunhui21@gmail.com" ]
yunhui21@gmail.com
16d2019c15f3d026f815a93fa3ab6c9b12a2e717
97240370ffad2552c350cb7bee0227c0fba30e6d
/usuarios/apps.py
78c5ce51c265549b5aa0ffd466fad27511644b30
[ "Apache-2.0" ]
permissive
ypicoleal/Citas
59d181333acfcd5997bf491d350bb5ba5fd1eb50
9535e57616e2af460a3dab1ebc585090d7184bb6
refs/heads/master
2021-07-20T18:51:05.482956
2017-10-25T04:07:02
2017-10-25T04:07:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
261
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class UsuariosConfig(AppConfig): name = 'usuarios' icon = '<i class="material-icons">account_circle</i>' #def ready(self): # import signals
[ "mariobarrpach@gmail.com" ]
mariobarrpach@gmail.com
cd342fb6dad32204f04b1c8f71f65d5faa5eb650
b56eaf7a603cbb850be11dbbed2c33b954dedbcb
/ctools/pysc2/lib/renderer_ascii.py
6f1b1bfd9197b62229ad1dee2c5f986d2ebde865
[ "Apache-2.0" ]
permissive
LFhase/DI-star
2887d9c5dd8bfaa629e0171504b05ac70fdc356f
09d507c412235a2f0cf9c0b3485ec9ed15fb6421
refs/heads/main
2023-06-20T20:05:01.378611
2021-07-09T16:26:18
2021-07-09T16:26:18
384,499,311
1
0
Apache-2.0
2021-07-09T16:50:29
2021-07-09T16:50:28
null
UTF-8
Python
false
false
3,697
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ "opendilab@gmail.com" ]
opendilab@gmail.com
d710618260efbbad78d861529968e93798e97488
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/FXJSMM/YW_FXJSMM_SHXJ_106_1.py
8f6b7dfce93e96a25b42fb476d783e25bb59d638
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,031
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from ServiceConfig import * from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/h...
[ "418033945@qq.com" ]
418033945@qq.com
f6e3adabb0d907c6a66ec6ec140d19d03814d984
8d8437138900d30012b0aa293c220228b039e979
/twitter.py
96e2d1ba9058dd6e65dc8412a2a7bd343ba89f4e
[ "MIT" ]
permissive
justinhachemeister/tweet-transcriber
6b0f7f0ebf7c637fab594926b907ed36424be957
eb47a66c0d032baeb5d420bc211c5a301b496173
refs/heads/master
2020-07-12T05:42:15.406950
2019-08-27T14:20:50
2019-08-27T14:20:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,386
py
""" This script has 2 functions, one is used to extract the values we need from a Tweet HTML source. The other one creates a Markdown text with the previous generated values and mirrors the tweet's images to Imgur. """ from datetime import datetime import requests from bs4 import BeautifulSoup from imgur import upl...
[ "phantom@phantom.im" ]
phantom@phantom.im
4c7d7a5c5ee3fef47ebf07decba6c832d0487548
f2b27ea4b474916e5b7cf1f55901cf6e01b6ee3c
/13-introduction-to-databases-in-python/05-putting-it-all-together/05-build-a-query-to-determine-the-average-age-by-population.py
ce3af3f3f521e1900026e79be5416b799e7a51ca
[]
no_license
ariscon/DataCamp_Files
a21f1265b6ad5aed04d9724be78b08634f81312e
f7e496391b1d4649bf1186b9a1c9b83fa9a50044
refs/heads/master
2020-04-13T04:27:01.650215
2018-12-30T22:51:43
2018-12-30T22:51:43
162,962,035
2
1
null
null
null
null
UTF-8
Python
false
false
1,676
py
''' Build a Query to Determine the Average Age by Population In this exercise, you will use the func.sum() and group_by() methods to first determine the average age weighted by the population in 2008, and then group by sex. As Jason discussed in the video, a weighted average is calculated as the sum of the product of...
[ "noreply@github.com" ]
ariscon.noreply@github.com
00961b4406c68bc02aee79a80bc623c9b4c449de
5c94e032b2d43ac347f6383d0a8f0c03ec3a0485
/_Arturia/SessionComponent.py
721e6cd8b2a8d19fadd1e353d3e949ffaad0f6ac
[]
no_license
Elton47/Ableton-MRS-10.1.13
997f99a51157bd2a2bd1d2dc303e76b45b1eb93d
54bb64ba5e6be52dd6b9f87678ee3462cc224c8a
refs/heads/master
2022-07-04T01:35:27.447979
2020-05-14T19:02:09
2020-05-14T19:02:09
263,990,585
0
0
null
2020-05-14T18:12:04
2020-05-14T18:12:03
null
UTF-8
Python
false
false
2,326
py
# uncompyle6 version 3.6.7 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33) # [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)] # Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Arturia/Se...
[ "ahmed.emerah@icloud.com" ]
ahmed.emerah@icloud.com
3368daf49f5a741e0d8ba0d4f17c9f8931e210fb
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_bout.py
a4fc852816a1ae2be5fb22ffa1b82e277a5f6b0e
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
#calss header class _BOUT(): def __init__(self,): self.name = "BOUT" self.definitions = [u'a short period of illness or involvement in an activity: ', u'a boxing or wrestling match: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'nouns' def run(self,...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
98d01f197eb6937be226c67016c6767c2adb3e84
e2834071bdb39650c9395e6c4edf8c95b8cd3c20
/examples/voc/infer.py
dab775bf7592694ed2234615a3493b985b03a441
[ "MIT" ]
permissive
mjiansun/fcn
5c9b5798889282f8484d35bdb352909fd99f2a6e
b4929e1e8ff2d53af7326f77409480262988d175
refs/heads/master
2020-12-02T22:55:23.570778
2017-06-29T14:03:51
2017-06-29T14:03:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,214
py
#!/usr/bin/env python import argparse import os import os.path as osp import re import chainer import numpy as np import skimage.io import fcn def infer(n_class): parser = argparse.ArgumentParser() parser.add_argument('-g', '--gpu', default=0, type=int) parser.add_argument('-m', '--model-file') par...
[ "www.kentaro.wada@gmail.com" ]
www.kentaro.wada@gmail.com
5b4a5911ee91a7a2de2dbe980d5c4e8ee070dc93
b0c391ecf351e2317ac61c257dd6bfa5b10d4015
/pymotifs/core/__init__.py
f7e18dc2a739eaca3e97affc75ca093e0fea9744
[]
no_license
BGSU-RNA/RNA-3D-Hub-core
57db94bfff9b338b3a751f545699f4117150b921
1982e10a56885e56d79aac69365b9ff78c0e3d92
refs/heads/master
2023-05-26T09:41:38.397152
2023-05-23T05:50:10
2023-05-23T05:50:10
6,049,336
3
1
null
2022-06-21T21:27:52
2012-10-02T18:26:11
Python
UTF-8
Python
false
false
648
py
"""This is the base module that contains the core and essential classes for the pipeline. This is basic module that all other stages and modules inhert from. It contains: base The most basic classes for the pipeline. exceptions Exceptions common across the pipeline. db Common tools for interacting with the...
[ "blakes.85@gmail.com" ]
blakes.85@gmail.com
bc26b205bec8e1ae6dd8a202e260455eebe2070a
523fb785bda41e33546c929a5c2de6c93f98b434
/LeetCode/213.HouseRobberII.py
72ea19b8465b3e01a932ee0cd66fd0bb69f5f131
[]
no_license
lizhe960118/TowardOffer
afd2029f8f9a1e782fe56ca0ff1fa8fb37892d0e
a0608d34c6ed96c9071cc3b9bdf70c95cef8fcbd
refs/heads/master
2020-04-27T10:33:21.452707
2019-05-02T10:47:01
2019-05-02T10:47:01
174,259,297
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
class Solution: def rob(self, nums): """ :type nums: List[int] :rtype: int """ length = len(nums) if length == 0: return 0 elif length == 1: return nums[0] else: return max(self.rob_no_circle(nums[:-1]), self.rob_no_...
[ "2957308424@qq.com" ]
2957308424@qq.com
c5ceb755dfb284e55b670ffcdccc1bf152da4192
90ab0e6878ff58cd20794f1b4a32a460567940ae
/venv/Scripts/player.py
a5b2a19f416f5142208be356b8fefc6aa7a1ddf6
[]
no_license
Deanwinger/django_project
e6208574b59c612bf14a5ab1cf0768eb86c909e6
8b990abb83558d0742ee1d17e7c4ee6dbb6bf756
refs/heads/master
2022-11-02T01:02:20.270010
2017-11-29T02:58:11
2017-11-29T02:58:11
107,872,700
0
1
null
2022-10-21T10:49:20
2017-10-22T14:22:30
Python
UTF-8
Python
false
false
2,052
py
#!d:\django_application\venv\scripts\python.exe # # The Python Imaging Library # $Id$ # from __future__ import print_function import sys if sys.version_info[0] > 2: import tkinter else: import Tkinter as tkinter from PIL import Image, ImageTk # -------------------------------------------------------------...
[ "a541203951@163.com" ]
a541203951@163.com
dc1141704a7647cef213815c91c04397099da290
17c280ade4159d4d8d5a48d16ba3989470eb3f46
/16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM2000_R_0-5.py
e826ad4e57ede4e18d883cd64ee9a755a750c34a
[]
no_license
chengchen1993/run2_ntuple
798ff18489ff5185dadf3d1456a4462e1dbff429
c16c2b203c05a3eb77c769f63a0bcdf8b583708d
refs/heads/master
2021-06-25T18:27:08.534795
2021-03-15T06:08:01
2021-03-15T06:08:01
212,079,804
0
2
null
null
null
null
UTF-8
Python
false
false
2,517
py
from WMCore.Configuration import Configuration config = Configuration() config.section_("General") config.General.requestName = 'M2000_R0-5' config.General.transferLogs = True config.section_("JobType") config.JobType.pluginName='Analysis' config.JobType.sendExternalFolder=True# = 'Analysis' config.JobType.inputFil...
[ "c.chen@cern.ch" ]
c.chen@cern.ch
69584b563b927f23da52c207d1e8dd3bd0bd5ff7
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/greynoise/icon_greynoise/actions/__init__.py
39469776ab43c9978976a4cd3ab1e4e00ea05dfc
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
321
py
# GENERATED BY KOMAND SDK - DO NOT EDIT from .community_lookup.action import CommunityLookup from .context_lookup.action import ContextLookup from .get_tag_details.action import GetTagDetails from .gnql_query.action import GnqlQuery from .quick_lookup.action import QuickLookup from .riot_lookup.action import RiotLookup...
[ "noreply@github.com" ]
rapid7.noreply@github.com
9bcff948fb44b732a0ab2c633419b392ab200b12
773dc03117f8b0d51f7a10e2a4577229c8be6ba3
/migrations/models/47_20230219145958_update.py
8f7a6d6eb7d3af259fd97abadb55ba92be05703f
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
tcprescott/sahasrahbot
382cdff058d63feb5f42dbbd7729eb4b08c4d1bd
64a125d948873d0faa5ea3f2d306075ad9e013be
refs/heads/master
2023-08-31T15:33:01.533206
2023-08-31T01:58:48
2023-08-31T01:58:48
178,310,225
22
43
MIT
2023-09-01T08:45:52
2019-03-29T01:34:45
Python
UTF-8
Python
false
false
339
py
from tortoise import BaseDBAsyncClient async def upgrade(db: BaseDBAsyncClient) -> str: return """ ALTER TABLE `asynctournamentrace` ADD `status` VARCHAR(45) NOT NULL DEFAULT 'pending';""" async def downgrade(db: BaseDBAsyncClient) -> str: return """ ALTER TABLE `asynctournamentrace` DROP C...
[ "tcprescott@gmail.com" ]
tcprescott@gmail.com
7d1f97043c50fe77b4bcd8be661bbe1df61fc5ba
5d61565651b7ba5fa8fade3313a5e82fca8b6686
/videocockpit/views.py
dc690240f50dbf3870b8c7d0f2bc23dc805abc9d
[]
no_license
lonelyxmas/ISMS
d597b00072bfa77907875f575b866fbb1fb53295
08c5e2f3518fc639cf1a1f2869f4b2f3ae58e306
refs/heads/master
2023-08-14T12:02:59.001215
2021-03-22T03:34:58
2021-03-22T03:34:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,212
py
from django.shortcuts import render import urllib.parse import urllib.request import hmac import base64 import hashlib from hashlib import sha256 from django.shortcuts import render from django.shortcuts import HttpResponse from django.http import HttpRequest from django.db.models import Q, Sum, Count from basedata.mod...
[ "11325818@qq.com" ]
11325818@qq.com
17078f54497146ec0f19c217e4a886b0cdc7f005
cd1a6ce76271e1ef532a5b0432d8408157c03d30
/ver-1.4/serial_receive.py
60b47c5e56cede51ee5a0cc7bbdae4cb4bda10dd
[]
no_license
edgecollective/lora-image
03e3cae5424113a442c47a63e2881346fe7240e7
17cdc9421762a5957e4c7b06b13b05dd383b920d
refs/heads/main
2023-04-07T05:21:10.860828
2021-04-16T13:05:14
2021-04-16T13:05:14
356,066,115
0
0
null
null
null
null
UTF-8
Python
false
false
1,629
py
import serial import time import subprocess #chunk_file=open('chunkfile_receive.png','wb+') #serialPort = '/dev/ttyUSB0' serialPort = '/dev/ttyACM0' filenum = 0 #chunk_file=open('image_in.bmp','wb+') with serial.Serial(serialPort, 115200, timeout=1) as ser: while True: ser.reset_input_buffer() s...
[ "donblair@gmail.com" ]
donblair@gmail.com
e4acddc031fd0fe26f8a44a973fdb65f78c611f6
471479fd33215ffd088e09940c78cc8b2f65ffcd
/docs/source/01-AWS/01-All-AWS-Services-Root/24-Analytics/06-AWS-Glue-Root/AWS-Glue-Job/debug-best-practice/create_test_data.py
dcc78b51e2de06d5a7c3f9e49874acd8b4075660
[ "MIT" ]
permissive
MacHu-GWU/Dev-Exp-Share
a25ec59f9402e56c3bd9d98269634894fa452537
0b659c62bf795374ea981953b25119ca30007e7d
refs/heads/master
2023-08-22T05:28:52.536090
2023-08-14T13:37:31
2023-08-14T13:37:31
84,245,070
3
1
MIT
2023-02-13T23:44:03
2017-03-07T20:53:18
Shell
UTF-8
Python
false
false
1,126
py
# -*- coding: utf-8 -*- from pathlib_mate import Path import numpy as np import pandas as pd from datetime import datetime, timedelta here = Path(__file__).parent dir_events = Path(here, "datalake", "events") n_file = 10 n_row_per_file = 1000 * 1000 bad_file_index = [2, 6] bad_row_index = [3, 7] for ith_file in ra...
[ "MacHu-GWU@users.noreply.github.com" ]
MacHu-GWU@users.noreply.github.com
169097b99c51df6b23ddc186edc1b2a25a461417
edc591edd7eb670d4f34f485239ddb588d6510d4
/tiebacommon/tiebacommon/spiders/tieba.py
95a28416383a64df32608cc9fb05eaf20feee719
[]
no_license
renxil/scrapy
7d4c94fefee07b8ab3a014ed0c11d2e088c613c4
52d339620534dff89dd8b800583a61ae87ca4759
refs/heads/master
2021-06-17T20:40:50.301463
2017-06-11T07:54:54
2017-06-11T07:54:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,632
py
# -*- coding: utf-8 -*- from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from scrapy.linkextractors.sgml import SgmlLinkExtractor from scrapy.selector import HtmlXPathSelector from tiebacommon.items import SubjectItem from tiebacommon.items import CommentItem from tiebacommo...
[ "root" ]
root
8fe939e30b21cc8a880ea86b9d9929f795bcd584
eb1a2e24ecdbe9be8a6aac153fe1980b19dcbe4a
/rangeprime.py
0ccb01326fee7730ddd37b65342b2fd19d853706
[]
no_license
sushmithasushi/playerlevel
1e7363e63bd75deba79b96a659db7736c93ed6a2
612ea4483a5c5d7c3c3a8564e0b7ce0df08a686a
refs/heads/master
2020-06-19T07:03:06.457910
2019-07-24T04:28:31
2019-07-24T04:28:31
196,608,802
0
0
null
2019-07-12T16:08:51
2019-07-12T16:08:51
null
UTF-8
Python
false
false
211
py
lower,upper=input().split() lower=int(lower) upper=int(upper) count = 0 for num in range (lower, upper+1): if num>1: for i in range (2,num): if num % i==0: break else: count += 1 print (count )
[ "noreply@github.com" ]
sushmithasushi.noreply@github.com
5e015b36ab34a9c83ff4637c0f7943df738c7d80
a44a9279258ace54be0ea6d410e6ddb5a2d72bcb
/project-addons/stock_transfer_only_available/models/stock.py
ba22116290b0d6ab4713f2193cb5be3a85eb1f13
[]
no_license
athlontado/PXGO_00064_2014_PHA
346f33185a07c2e1766a7cc79cd300252d9b2480
3086baba490e47a5dcc7942c7c5fee9fc047ddcd
refs/heads/master
2020-04-06T03:56:15.828784
2016-04-18T12:24:53
2016-04-18T12:24:53
59,216,028
0
0
null
2016-05-19T14:50:54
2016-05-19T14:50:54
null
UTF-8
Python
false
false
2,175
py
# -*- coding: utf-8 -*- ############################################################################## # # Copyright (C) 2016 Comunitea All Rights Reserved # $Jesús Ventosinos Mayor <jesus@comunitea.com>$ # # This program is free software: you can redistribute it and/or modify # it under the terms of the GN...
[ "jesus@comunitea.com" ]
jesus@comunitea.com
6b2684b65aba86336ab877743807c2c308b6a15a
201aa2c55b40897e87dd548251363f67800a56bf
/django_pjt4/accounts/models.py
ccc5bb549ecf97f7f8173fe04c6cf4710dd9b7b9
[]
no_license
Jeonseoghyeon/Django_PJT4
3f69edf05f298ac247f70729c1ba7c057991faa7
3021035b8b83e743341f88fa2e950a9798a12885
refs/heads/master
2022-07-12T04:31:22.793867
2020-05-15T09:43:54
2020-05-15T09:43:54
263,517,534
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from django.db import models from django.contrib.auth.models import AbstractUser from django.conf import settings from movies.models import Review # Create your models here. class User(AbstractUser): profile_picture = models.ImageField(blank=True) followers = models.ManyToManyField(settings.AUTH_USER_MODEL, re...
[ "jsh28592@gmail.com" ]
jsh28592@gmail.com
2eab15bda78fd2ea49a48537c6379d72fe39a2e5
e5d030d76b6cf448fe7dcbdd5fcc1ee0e8b5cf20
/tumbler/actions.py
90a6403946fce999207d69d14bfc70bbd39c6153
[]
no_license
suvari/suvari
c41eadb4f9244fe84420a251f7ca099a627715b5
5bedeb75930aeab55fde5d5dea0badca615ce75c
refs/heads/master
2021-01-25T03:54:56.816402
2013-11-01T18:21:21
2013-11-01T18:21:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
792
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get def setup(): autotools.configure("--disable-depende...
[ "suvarice@gmail.com" ]
suvarice@gmail.com
c9dda9f37b588b4f0c4a28a672eb837ef111dba3
e5e489e404c8755c031588f3484fd819dbb3fb0c
/tests/test_readme.py
9a1cedeb484bb99d85531cca334b204cb55c96e7
[ "BSD-3-Clause" ]
permissive
2017JTM2023/pyecore
72ac0871e180ed3adaa437f87bcb06039d4ecafb
1ca956de8ba36c67762a5e8016824d8ead7903c6
refs/heads/master
2021-06-28T07:39:46.259145
2017-07-27T08:24:31
2017-07-27T08:24:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
import pytest from pyecore.ecore import * def test_intro(): A = EClass('A') # We create metaclass named 'A' A.eStructuralFeatures.append(EAttribute('myname', EString, default_value='new_name')) a1 = A() # We create an instance assert a1.myname == 'new_name...
[ "vincent.aranega@gmail.com" ]
vincent.aranega@gmail.com
5343aaba13ea4ef11eedde2e13ea1112eafe987c
6ed01f4503fc9de234a561c945adff7cf4b1c81b
/ead/boxes.py
34b8c85c1ca5dec3d05265d7329690b224ed5afb
[]
no_license
ostwald/python-lib
b851943c913a68424a05ce3c7b42878ff9519f68
9acd97ffaa2f57b3e9e632e1b75016549beb29e5
refs/heads/master
2021-10-28T06:33:34.156095
2021-10-21T23:54:49
2021-10-21T23:54:49
69,060,616
0
1
null
2018-06-21T16:05:30
2016-09-23T21:04:46
Roff
UTF-8
Python
false
false
917
py
import sys,os from EadRecord import EadRecord ## def getBoxes (collection): def foo (ead): best = ead.getCollection ("ref59") best.report() box = best.getBox("4") for folder_key in box.keys(): print "FOLDER: ", folder_key folder = box[folder_key] for item in folder.getItems(): item.report() def ...
[ "ostwald@ucar.edu" ]
ostwald@ucar.edu
ee490ed80de9508ea747093506f10c236fabff2a
eb2ebaf1c53cfeb5a1abbc05e6423c5fdc27ca8a
/.history/ship_20200118115235.py
813b2783e394fddf2bbc752012a4bc4ba976b47d
[]
no_license
HeperW/VSCO
8120bde36c73601e5b956955c0b68b599c9a663d
4c3ee4aa45424313e335ff05934fbb6df7950304
refs/heads/master
2022-05-08T00:51:44.618385
2022-03-16T03:18:34
2022-03-16T03:18:34
233,367,724
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
import pygame class Ship(): def __init__(self,screen): """初始化飞船并设置其初始位置""" self.screen = screen #
[ "hgym300400@126.com" ]
hgym300400@126.com
f6288cbea9dcd5d96ed305135afa0539b6ca0f82
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_79/24.py
63fc62a79b8dc3a047824a5364269204e9186c0a
[]
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
1,127
py
def pattern(s,c): pl=[(c if x==c else '_') for x in s] return ''.join(pl) T=int(input()) for i in range(T): N,M=[int(x) for x in input().split()] di=[input() for j in range(N)] orders = [input() for j in range(M)] ans = [] maxl = max([len(x) for x in di]) for order in orders: value=[1]*N state=...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c688ba0761422c853c9c1ffebc62ce0e349def57
435a1ad7f073008f303668b68645c137e06d49ab
/rx/concurrency/mainloopscheduler/tkinterscheduler.py
c4472af843073f99ac56b7b9942af9ed472f0873
[ "Apache-2.0" ]
permissive
tanwanirahul/RxPY
cf9f447006a5a74c515080f470d4ef1b85ae8731
e5e8d80c77e03601bf5fe167b747e9ff3ea0afa8
refs/heads/master
2020-12-11T05:51:36.627984
2014-09-30T18:52:40
2014-09-30T18:52:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,441
py
import logging from datetime import datetime, timedelta from rx.disposables import Disposable, SingleAssignmentDisposable, \ CompositeDisposable from rx.concurrency.scheduler import Scheduler log = logging.getLogger("Rx") class TkinterScheduler(Scheduler): """A scheduler that schedules work via the Tkinter m...
[ "dag@brattli.net" ]
dag@brattli.net
ea9e32f89a9c6376f5c486590da0e573e9d905e0
01822d2ae38a95edcd188a51c377bb07b0a0c57d
/Assignments/Sprint3/bt_inOrderTraversal.py
f65e4f8705ad0aae9b7f6256ff6846fa01b99d6c
[ "MIT" ]
permissive
mark-morelos/CS_Notes
bc298137971295023e5e3caf964fe7d3f8cf1af9
339c47ae5d7e678b7ac98d6d78857d016c611e38
refs/heads/main
2023-03-10T11:56:52.691282
2021-03-02T15:09:31
2021-03-02T15:09:31
338,211,631
1
1
null
null
null
null
UTF-8
Python
false
false
1,061
py
""" You are given a binary tree. Write a function that returns the binary tree's node values using an in-order traversal. Example: Input: [2,None,3,4] 2 \ 3 / 4 Output: [2,4,3] [execution time limit] 4 seconds (py3) [input] tree.integer root [output] array.integer [Python 3] Syntax Tips """ # ...
[ "makoimorelos@gmail.com" ]
makoimorelos@gmail.com
2ee7d9a00222d83ecd62b1eea0e63f63c871043f
94a2c4417c1fdd8577a75b09a17912ebae129e6c
/test/test_path.py
b9d402a493b6050e6f9631c908fce009081dcfce
[ "MIT" ]
permissive
slavaGanzin/ramda.py
ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8
634bfbe0dcb300315ded327756cb3e33241589b8
refs/heads/master
2023-01-23T04:43:48.485314
2023-01-06T10:11:53
2023-01-06T10:11:53
142,413,822
68
7
MIT
2021-12-22T13:59:56
2018-07-26T08:43:31
Python
UTF-8
Python
false
false
420
py
from ramda import path from ramda.private.asserts import assert_equal test_dict = {"a": {"b": {"c": "foo"}}} def test_path_nocurry(): assert_equal(path(["a", "b", "c"], test_dict), "foo") def test_path_curry(): get_abc = path(["a", "b", "c"]) assert_equal(get_abc(test_dict), "foo") def test_path_thr...
[ "slava.ganzin@gmail.com" ]
slava.ganzin@gmail.com
da43139bfce7f48fb9c284661286731b9da35d3c
7bc529b7c074f14fd2f726d285f6453f2be4f07e
/PycharmProjects/python/venv/Lib/site-packages/atx/cmds/doctor.py
619b726871237c1e1b1671a561eb8dbc983e9b0a
[]
no_license
bopopescu/test-for-life
52bc2bcb05c9f12c34311c5d8c7d69fac769fc20
c65a13e16dcdcd1f9d91659b32a8b82794f40985
refs/heads/master
2022-11-17T17:45:47.382185
2020-04-01T08:31:47
2020-04-01T08:53:13
281,324,697
0
0
null
2020-07-21T07:17:22
2020-07-21T07:17:22
null
UTF-8
Python
false
false
782
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # check symbols are from: # http://www.i2symbol.com/symbols/check import os import subprocess from colorama import init, Fore, Back, Style init() def print_info(message, success): fore_color = Fore.GREEN symbol = '✔' if os.name != 'nt' else '[GOOD]' if no...
[ "3176832432@qq.com" ]
3176832432@qq.com
12e0e2b3f513743d2ab8f98786710ca7bdfc0fcd
887c436e86c8e5d8e63f4b3018c57988d00fb074
/src/oictest/provider.py
14e71025da42b00e8b88d761aa93d74c6c963495
[]
no_license
calh/oictest
0f7da976d960c95e7c70c6c33097de9d2deb0bc7
b1055203bc86a6d3f5b46edc9032998ae2e2c3d2
refs/heads/master
2021-01-15T11:03:23.580579
2015-04-06T14:25:08
2015-04-06T14:25:08
33,488,373
0
0
null
2015-04-06T15:12:53
2015-04-06T15:12:53
null
UTF-8
Python
false
false
4,774
py
from oic import oic from oic.oauth2 import Message, rndstr from oic.oic import provider, ProviderConfigurationResponse __author__ = 'roland' def sort_string(string): _l = list(string) _l.sort() return "".join(_l) class Server(oic.Server): def __init__(self, keyjar=None, ca_certs=None, verify_ssl=Tr...
[ "roland.hedberg@adm.umu.se" ]
roland.hedberg@adm.umu.se
04324d82333af7550ed27e95a14fec26fdd9d0fd
ebc7607785e8bcd6825df9e8daccd38adc26ba7b
/python/leetcode/datastructure/array/15. 3Sum.py
73637a527d38d45823e2accee1472dda02f44ba1
[]
no_license
galid1/Algorithm
18d1b72b0d5225f99b193e8892d8b513a853d53a
5bd69e73332f4dd61656ccdecd59c40a2fedb4b2
refs/heads/master
2022-02-12T07:38:14.032073
2022-02-05T08:34:46
2022-02-05T08:34:46
179,923,655
3
0
null
2019-06-14T07:18:14
2019-04-07T05:49:06
Python
UTF-8
Python
false
false
832
py
from collections import deque def threeSum(nums): # 빈 리스트 또는 3개 이하 if len(nums) < 3: return [] nums.sort() ans = [] for ti in range(len(nums)-2): if ti > 0 and nums[ti] == nums[ti-1]: continue L, R = ti+1, len(nums)-1 while L < R: sums = n...
[ "galid1@naver.com" ]
galid1@naver.com
d236ffbbd7693e8137cdc65330e107f484734dd7
4e91623e15d3d348259bb08993526e640eb5cba5
/pyramid_signup/tests/__init__.py
029d1c80c69c5df66961917c0237707e11ca2b2e
[]
no_license
whitmo/pyramid_signup
e38f8459068204c54411cce6aa03406d12fb8bdf
2d0fa31b37d901054b4260018a2fe7e7ca6450f4
refs/heads/master
2020-04-02T20:49:06.971432
2012-03-06T03:04:56
2012-03-06T03:04:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,993
py
import unittest from webtest import TestApp from sqlalchemy import engine_from_config from pyramid import testing from pyramid.authentication import AuthTktAuthenticationPolicy from pyramid.authorization import ACLAuthorizationPolicy from pyramid_beaker import session_factory_from_settings from pyramid.response import ...
[ "sontek@gmail.com" ]
sontek@gmail.com
40f91a42dd6dc1f82ba0529cdf229634bfd7e423
1cb5abf0814b028b3ac996d39033a74dbf85753b
/studying_codes/q_num_1904.py
c44df312ca85b3445f18a9007e23da771d845573
[]
no_license
kimsehwan96/studying_python
fd7310204a75b94d95497f1ddb3ad39763340fde
5b22926230f936abbddccb10401d53d6e1bb9934
refs/heads/master
2023-02-09T07:27:39.999164
2021-01-02T09:18:13
2021-01-02T09:18:13
242,378,529
1
0
null
2020-04-22T15:10:14
2020-02-22T17:02:02
Python
UTF-8
Python
false
false
592
py
n = int(input()) dp = [0] * 1000001 #타일은 오직 1, 00 이 두개다. #a[i] = 수열의 길이가 i 일 때의 경우의 수라고 해보자. #a[1] = 1, a[2] = 2 #a[3] = 3 , a[4] = 5 #생각해보면 길이가 i인 수열을 만드는 방법. #i-1 길이의 수열 경우의수 + 1 타일 #i-2 길이의 수열 경우의수 + 00 타일 #즉 a[i] = a[i-1] + a[i-2] dp[1] = 1 dp[2] = 2 for i in range(3, n+1): # 자꾸 햇갈리는데 range(n, m): 하면 n+1, n+2...
[ "sktpghks138@gmail.com" ]
sktpghks138@gmail.com
d0fa566865fce4bc80b5468cb024c91fd0144439
76a8ea60480331f0f61aeb61de55be9a6270e733
/downloadable-site-packages/Bio/GenBank/utils.py
a5d2a43af43584c9bfad6c3a342c161c97f7f2e7
[ "MIT" ]
permissive
bhagyas/Pyto
cd2ec3f35bec703db4ac29b56d17abc4bf03e375
907024a9b3e04a2a9de54976778c0e1a56b7b83c
refs/heads/master
2022-11-19T13:05:07.392454
2020-07-21T17:33:39
2020-07-21T17:33:39
281,886,535
2
0
MIT
2020-07-23T07:48:03
2020-07-23T07:48:02
null
UTF-8
Python
false
false
1,905
py
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Useful utilities for helping in parsing GenBank files.""" class FeatureValueCleaner(object): r"""Provide specialized capabilities for cleani...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
56524c96d567c03a469432502f9d5fcc78fdd0a8
c085578abc19db18ee0766e1f9598d79a3acdbe1
/240-Search-a-2D-Matrix-II/solution.py
9327caa14c736ad71b3e48c684e47c990747e1b8
[ "MIT" ]
permissive
Tanych/CodeTracking
efb6245edc036d7edf85e960972c34d03b8c707a
86f1cb98de801f58c39d9a48ce9de12df7303d20
refs/heads/master
2020-05-21T17:40:10.105759
2016-10-09T18:20:42
2016-10-09T18:20:42
60,616,356
0
0
null
null
null
null
UTF-8
Python
false
false
940
py
class Solution(object): def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ m=len(matrix) n=len(matrix[0]) return self.helper(matrix,0,n-1,0,m-1,target) def helper(...
[ "ychtan@email.gwu.edu" ]
ychtan@email.gwu.edu
9c4d5c37f4079c406cc0df9155b47f03718b9066
d623b8fe1b7e5d49d1c2623fc6ff0356bda50d5d
/homeassistant/components/repairs/issue_handler.py
1201497f0c1586eec30863b7009f7a528f3599f5
[ "Apache-2.0" ]
permissive
piotr-kubiak/home-assistant
02f1ab8195d9111c6d4c96a55715e67de6b103d9
d32f3e359f1fabe2d79b0e07e375b3723b7cb07c
refs/heads/dev
2023-03-03T11:08:25.871531
2022-08-26T19:41:41
2022-08-26T19:41:41
198,906,482
1
0
Apache-2.0
2023-02-22T06:23:51
2019-07-25T22:00:44
Python
UTF-8
Python
false
false
4,037
py
"""The repairs integration.""" from __future__ import annotations from typing import Any import voluptuous as vol from homeassistant import data_entry_flow from homeassistant.core import HomeAssistant, callback from homeassistant.exceptions import HomeAssistantError from homeassistant.helpers.integration_platform im...
[ "noreply@github.com" ]
piotr-kubiak.noreply@github.com
c1a08ef0795a86a8a7a66706882db963d0924eff
c42e9a0f8db81aeaffa2d13471fb4c949a6e113d
/src/utils/elmo/modules/scalar_mix.py
af7a1fccf08a27f3cc1d46e6dca617c625f85b4c
[ "MIT", "Apache-2.0" ]
permissive
square/MimicAndRephrase
13c0beac6b6ea691718a8ed54e3e7ee85a17ad84
bd29a995b211cb4f7933fa990b0bba1564c22450
refs/heads/master
2023-06-15T10:04:50.411232
2019-05-24T06:14:01
2019-05-24T06:14:01
174,596,052
12
5
MIT
2023-03-19T08:31:16
2019-03-08T19:23:24
Python
UTF-8
Python
false
false
3,265
py
from typing import List import torch from torch.nn import ParameterList, Parameter from elmo.common.checks import ConfigurationError class ScalarMix(torch.nn.Module): """ Computes a parameterised scalar mixture of N tensors, ``mixture = gamma * sum(s_k * tensor_k)`` where ``s = softmax(w)``, with ``w`` a...
[ "=" ]
=
c2b36365c71f7fcacff6c001d469158d47cbcbdb
667147b88ec297d648addb26540be07fd06d2fc0
/sudokulib/solvers/naked_singleton.py
23f08897483d016f9529c6b1ce069c1cf4a681cd
[]
no_license
Fantomas42/sudoku-solver
97f76879e613722141f941f13296812c73fd51f2
8d5e55984480abc30874ad763106d2bff41d9ee2
refs/heads/develop
2021-01-25T08:48:26.185805
2017-03-20T20:53:27
2017-03-20T20:53:27
2,557,016
7
2
null
2017-03-20T20:49:42
2011-10-11T17:50:26
Python
UTF-8
Python
false
false
366
py
"""Naked Singleton solver for sudokulib""" from sudokulib.solvers import BaseSolver class NakedSingletonSolver(BaseSolver): """Naked Singleton Solver alias: Sole Candidate""" name = 'Naked Singleton' def _solve(self, layer, index): candidates = layer._candidates[index] if len(candidat...
[ "fantomas42@gmail.com" ]
fantomas42@gmail.com
556ad2319af38b153209f918a202c793a646ed55
496d2f4e71950269e9aba98f56c62f5c4fc52a99
/binary_tree_preorder_traversal.py
4c1c609e0668eda2cad680e32df5f0024acdaeea
[]
no_license
XBOOS/leetcode-solutions
044ddad93f116cd71e11df34120392e06b5cf50b
cd1f1138e85ed69f3ae87b0bd49a1f6b6f343527
refs/heads/master
2020-12-28T20:53:54.408330
2017-01-06T06:04:03
2017-01-06T06:04:03
44,537,161
0
0
null
null
null
null
UTF-8
Python
false
false
2,500
py
#!/usr/bin/env python # encoding: utf-8 """ Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. Note: Recursive solution is trivial, could you do it iteratively?""" """ Method 1 using recursion. adding anothe...
[ "xubinghku@gmail.com" ]
xubinghku@gmail.com
191bd11809060ba58fcf451a0f7958bb36bdc60b
da50dec980964cdfb5143eb42e0078445813a8b7
/IP_proxy/t.py
df99370e21cec45a355bc8b430ab278b9eb1184c
[]
no_license
kidword/spider
cc842bee57f61fc87eefe63a339bff39d2428e93
51613e98dc8229c9b414ed99a69c961007548125
refs/heads/master
2020-04-12T08:32:45.116909
2020-01-13T03:04:18
2020-01-13T03:04:18
162,388,100
2
0
null
null
null
null
UTF-8
Python
false
false
547
py
import random st = "07:30:00" et = "09:30:33" def time2seconds(t): h,m,s = t.strip().split(":") print(h,m,s) return int(h) * 3600 + int(m) * 60 + int(s) def seconds2time(sec): m,s = divmod(sec,60) h,m = divmod(m,60) return "%02d:%02d:%02d" % (h,m,s) sts = time2seconds(st) #sts==27000 ets = ...
[ "xie@123" ]
xie@123
a74bde0893a5302682653398958b04c90b41cb37
9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612
/exercises/1901020006/d09/main.py
42592508b51512ae670f96763788b31a6785b3da
[]
no_license
shen-huang/selfteaching-python-camp
e8410bfc06eca24ee2866c5d890fd063e9d4be89
459f90c9f09bd3a3df9e776fc64dfd64ac65f976
refs/heads/master
2022-05-02T05:39:08.932008
2022-03-17T07:56:30
2022-03-17T07:56:30
201,287,222
9
6
null
2019-08-08T15:34:26
2019-08-08T15:34:25
null
UTF-8
Python
false
false
380
py
from mymodule import stats_word import json from os import path file_path = path.join(path.dirname(path.abspath(__file__)),'tang300.json') with open(file_path,'r',encoding='utf-8') as f: text = f.read() #print(type(text)) print(stats_word.stats_text_cn(text, 100)) #(text,100) try: text except V...
[ "40155646+seven-tears@users.noreply.github.com" ]
40155646+seven-tears@users.noreply.github.com
bd30a84a6bb91b917876f5bb84df79132e38f25d
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok_to_Cxy_focus/Pyr_3UNet/pyr_0s/L3/step10_a.py
7555d178d947c31f0513120a9c845dfda6874925
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
6,844
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
1b7d4ebbcbcd6c71b0ece204a71490b6d0ff6eee
54bc239124576563c1f0c72e381fb2a4fcaa6a9e
/pi_radio/rfm69_check.py
31f5ae921c40cf198b267a1633a9b3c0be8346e3
[ "MIT" ]
permissive
jonsampson/Adafruit_Learning_System_Guides
79359154e26e710b088e0c1cbc9969a26a938a25
b941d8209cec42e3dce5f5e6b533584e3e99ac73
refs/heads/master
2020-07-29T17:43:53.439741
2019-10-14T01:53:01
2019-10-14T01:53:01
209,904,940
3
1
MIT
2019-09-21T01:04:35
2019-09-21T01:04:34
null
UTF-8
Python
false
false
1,901
py
""" Wiring Check, Pi Radio w/RFM69 Learn Guide: https://learn.adafruit.com/lora-and-lorawan-for-raspberry-pi Author: Brent Rubell for Adafruit Industries """ import time import busio from digitalio import DigitalInOut, Direction, Pull import board # Import the SSD1306 module. import adafruit_ssd1306 # Import the RFM69...
[ "robots199@me.com" ]
robots199@me.com
20188289723574f65674d61a6ae6b41fb7ee1fbe
23af1e2b1f29be62926ed6a8e39b4462f07f5f2b
/atcoder.jp/abc083/abc083_b/Main.py
2ff9f3b5baf786a9cda4cec8ef642757cc3f9a95
[]
no_license
IKDrocket/Atcoder
8ef382577a377a8f35890b24a49f681f00f2f047
fc19379de2ddf62a61b67eda33bf8aa29d503685
refs/heads/main
2023-02-09T11:58:00.353304
2021-01-02T12:06:20
2021-01-02T12:06:20
318,876,174
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
n, a, b = map(int, input().split()) sum_all = 0 for i in range(1,n+1): sum = 0 i_ = i while i_ > 0: sum += i_ % 10 i_ //= 10 if a <= sum <= b: sum_all += i print(sum_all)
[ "ikdrocket@IKDrocket.local" ]
ikdrocket@IKDrocket.local
57a6817901465d91a6e6d6f0af55ec0f8352a4a4
94328dfc739d210ebe6eaf3bb6bfb3ce2edaa3e2
/apps/jobbrowser/src/jobbrowser/yarn_models.py
a936b454e79504f99851537a6bec8c57a8f4eed5
[ "Apache-2.0" ]
permissive
anandaverma/hue
edf06a914b76ac96a75f879d8df1710a578375f7
3d6c013e63e844b840189785bec8bd7853936a7d
refs/heads/master
2021-01-18T18:18:09.978337
2013-04-13T00:37:56
2013-04-13T00:37:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,956
py
#!/usr/bin/env python # 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 ma...
[ "romain@cloudera.com" ]
romain@cloudera.com
c76f1886c0e0adbf7a92a50249fc2c981ca83355
cd557e3c2b34f30f2e7caf7c79c07ff6e109fbd3
/k2/addons/k2-consolerunner/consolerunner/consolerunner.py
801d65cee50c7c8e4a58c9cb249ac9b2a1f14ce1
[ "Apache-2.0" ]
permissive
Zenterio/opensourcelib
f005174c049df0f5deddc1269d7c343a8e219ca5
07f0dabffaceb7b6202b5f691cbad46dac5868a8
refs/heads/master
2022-12-09T02:53:36.444094
2021-04-28T18:03:24
2021-05-27T13:14:58
186,092,997
5
6
NOASSERTION
2022-12-07T23:37:26
2019-05-11T05:44:37
Groovy
UTF-8
Python
false
false
5,274
py
""" Runs shell commands and parses the console output. Patterns may be provided for which output lines constitute a test failure and what lines constitute a success. Multiple patterns may be provided. If a pattern provides a match-group called 'name', that match group will be used when generating the test report. Oth...
[ "per.bohlin@zenterio.com" ]
per.bohlin@zenterio.com
4187d2bccab4d53a24c5b3006e87206d36d13e4e
42fbeb5277b5c10a93ea974df4eb78ec73c5d336
/EMBRACE/modules/unrotate_pole.py
aadf48c72699c134da926254725a009598b67dfc
[ "MIT" ]
permissive
peterwilletts24/Python-Scripts
608351959bde26af7e1a9dbe52bff9a976db4991
975d6b2e2923cbde40d2760eb9574acee2e10388
refs/heads/master
2016-09-06T19:42:20.359943
2015-04-15T14:50:29
2015-04-15T14:50:29
21,125,908
4
3
null
null
null
null
UTF-8
Python
false
false
722
py
def unrotate_pole(rotated_lons, rotated_lats, pole_lon, pole_lat): import cartopy.crs as ccrs """ Convert rotated-pole lons and lats to unrotated ones. Example:: lons, lats = unrotate_pole(grid_lons, grid_lats, pole_lon, pole_lat) .. note:: Uses proj.4 to perform the conversion. ...
[ "peterwilletts24@gmail.com" ]
peterwilletts24@gmail.com
0a8a864670fb4f4707f1e3a457e47ff5028da0ad
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_026/ch38_2020_04_09_22_44_27_271414.py
2838560040c5198efb615044be44677c63852f38
[]
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
159
py
def quantos_uns(numero): i=0 n=0 numero = str(numero) while i<len(numero): if numero[n]==1: n+=1 i+=1 print( n)
[ "you@example.com" ]
you@example.com
03f369ef32d51060f4ef394889f4839108c53da3
4855a73f552c79f9123990a66b4fd29f829cd07d
/JZOffer/JZOffer39.py
36b212adaaffe1457169f4300605618e75ed8402
[]
no_license
EmlynQuan/Programming-Python
e2d47de71c4d5981b79bba3b4bf9ac9cf7115484
11bbc8aa58b5f16d7cfadd30c7eea241e6dd7bdd
refs/heads/master
2023-06-24T06:50:27.255834
2021-07-29T15:47:50
2021-07-29T15:47:50
362,500,150
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# coding=utf-8 import collections def majorityElement(nums): """ :type nums: List[int] :rtype: int """ # 哈希表统计 # 将数组 nums 排序,数组中点的元素 一定为半数以上的数 # 摩尔投票法 n = len(nums) myDict = collections.Counter(nums) for key in myDict.keys(): if myDict[key] > n // 2: return k...
[ "2569627904@qq.com" ]
2569627904@qq.com
c5d212685cdcdabaf9664218cdbcc844d1181ef3
c36679186f669c6e3bd1c106c96d4a17be1f5ab1
/University/w3school/1.py
543afd863937048d609046c7004ae068c18623c8
[]
no_license
touhiduzzaman-tuhin/python-code-university-life
60a3d671b200a6f5222c6d176c13c5f20f013509
6d2e3d90d430faa5c83fe79e7fb1ebe516994762
refs/heads/master
2023-03-22T15:18:10.636203
2021-03-06T18:52:04
2021-03-06T18:52:04
332,467,190
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
if 5 > 2: print ("5 is greater than 2") print ("Hello, World!") #comment: #hjhjdhfjdhjh #jfkdjkdjf """ fddjfkjdkfdif jjfjojg kkrekej"""
[ "touhiduzzamantuhin95@gmail.com" ]
touhiduzzamantuhin95@gmail.com