blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
56445322501190b3b0b8e035e05ca07c105bdbf1
94c5a95092c6dd082222e9f4d07000563cc8450f
/jaxnerf/nerf/utils.py
9ed74535e42b090c1ba356eb0a619b0f8e1517d9
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
cxzyoung/google-research
0e92f42e5d9b60c40c0e4134105f12d241cbdcd8
14deb9ae9a1ee67b15dd9f6ec9f6142f3a529458
refs/heads/master
2023-02-14T22:41:24.274950
2021-01-17T18:13:35
2021-01-17T18:21:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,136
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
1dc2bf42e11407ccbe6aaf84da52930177aa0f9f
19333aed645a4721108a67ba4d90292d2383314e
/246isStrobogrammatic.py
c641de42f4030dd319cf68a2c386312d6df36668
[]
no_license
qinzhouhit/leetcode
f39f8720a19259310293c1eb2975ce459f7cf702
502e121cc25fcd81afe3d029145aeee56db794f0
refs/heads/master
2023-06-24T09:18:25.715450
2021-07-21T07:21:42
2021-07-21T07:21:42
189,679,632
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
''' keys: Solutions: Similar: T: S: ''' class Solution: # S and T: O(N) # reverse and flip upside down, if equal then true def isStrobogrammatic(self, num: str) -> bool: string_builder = [] for c in reversed(num): if c in {'0', '1', '8'}: string_builder.append(c) ...
[ "qinzhouhit@gmail.com" ]
qinzhouhit@gmail.com
c8077a9221fc0ead4d87798cce5c581c5bd19ed7
0911846a1bd88a3ac631d79213cea6af94d66252
/pywikibot/plural.py
d6dbf35e071fe8a548fea565a1acc6bb1d37e1bb
[]
no_license
lnls-fac/tools
9617e100926f99cfdde1c7db411800c9fa52b329
e611185c0bcbff803481ee09d986370a67e37636
refs/heads/master
2019-01-19T06:40:25.390756
2018-05-24T20:51:18
2018-05-24T20:51:18
33,892,414
3
0
null
null
null
null
UTF-8
Python
false
false
6,226
py
# -*- coding: utf-8 -*- # # (C) xqt, 2011 # (C) Pywikibot team, 2011 # # Distributed under the terms of the MIT license. # __version__ = '$Id: 2b0204628cee8e59b09ba951802fa85f5720d241 $' # plural_rules = { '_default': {'nplurals': 2, 'plural': lambda n: (n != 1)}, 'ach': {'nplurals': 2, 'plural': lambda n: (n...
[ "xresende@gmail.com" ]
xresende@gmail.com
3de7efeb2e17aad9d4ffb5c6c86012494819fedc
6250be4dcf519d0f0b152b10a641b2d12a35c53f
/jump_to_python/chapter04/Practice.py
7bc597ffb250013551f22a2bfb52c680ce17b6ea
[]
no_license
heechul90/study-python-basic-2
babd01f6a7c2b1fbed4aa31030bb40128960a989
94780478e59dfc998baa6e3069ab2473c5df74db
refs/heads/master
2022-10-27T14:44:00.688509
2022-10-24T10:55:33
2022-10-24T10:55:33
196,142,410
0
0
null
null
null
null
UTF-8
Python
false
false
2,622
py
### 04장. 프로그램의 입력과 출력은 어떻게 해야 할까? ## 연습문제 ## Q1 ## 주어진 자연수가 홀수인지 짝수인지 판별해 주는 함수(is_odd)를 작성해 보자. def is_odd(number): if number % 2 == 1: # 2로 나우었을 때 나머지가 1이면 홀수이다. return True else: return False print(is_odd(3)) print(is_odd(4)) ## Q2 ## 입력으로 들어오는 모든 수의 평균 값을 계산해 주는 함수를 작성해 보자. def avg...
[ "heechul4296@gmail.com" ]
heechul4296@gmail.com
5608f8dc23263c1490045d0b87b953daf23dd286
d94be223f733daa58ce03f6f2dd701c55355f044
/docs/data/sweethearts_on_parade-2.py
eb6afcc3b152968e5e15e6177dcb30733fd4d6aa
[]
no_license
emirdemirel/JAAH
7bb4f9c2a434e1df34d99596dd294b7c96836bfe
8c065c3b043ad7ac95241c242bb468fe4c731ec7
refs/heads/master
2023-02-10T14:10:52.755206
2021-01-07T23:11:02
2021-01-07T23:11:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
import siteUtils siteUtils.showTopNGramsForFileList(['../../../annotations/sweethearts_on_parade.json'])
[ "seva@ringrows.ru" ]
seva@ringrows.ru
9955ba94aad0de818b1d1ef7b1e691166adc9d7c
0544ff7fc0736d2f6dded68e5ae27f4e2ddf7a06
/sdk/redisenterprise/azure-mgmt-redisenterprise/azure/mgmt/redisenterprise/aio/operations/_private_endpoint_connections_operations.py
2d48b182996cf1e8b01a8b0050e68b087ee749e5
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
dhanizael/azure-sdk-for-python
160469181f80593b0dff9104a8eb0d5b781722a9
17a1d048a8be4c869c7b943b2aff5a0c8213652e
refs/heads/master
2023-03-04T14:47:54.334635
2021-02-10T20:16:40
2021-02-10T20:16:40
337,845,515
0
0
MIT
2021-02-10T20:37:41
2021-02-10T20:30:09
null
UTF-8
Python
false
false
19,629
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" ]
dhanizael.noreply@github.com
dc01a505c92afafb17c55c09e346bb1688e1775e
64fa49a9a2c0b157aec3224530d7f61ddf9d24fa
/v6.0.2/web_proxy/fortios_web_proxy_forward_server_group.py
4890b3e6e58f74e40d53cbcf814abc8e28673349
[ "Apache-2.0" ]
permissive
chick-tiger/ansible_fgt_modules
55bee8a41a809b8c5756f6b3f5900721ee7c40e4
6106e87199881d1d4c3475a4f275c03d345ec9ad
refs/heads/master
2020-03-31T11:05:12.659115
2018-10-04T10:20:33
2018-10-04T10:20:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,320
py
#!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2018 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lic...
[ "magonzalez@fortinet.com" ]
magonzalez@fortinet.com
c06da8f80bbd03b09bd1e5ed8d8ccfecc1dad6ee
841ad26ec31cd4339792c46513109d76c58161e9
/aula 04/exercicio 6.py
fa5d7ac9d3014e639dd9baa9de7d0dfe334edb5f
[]
no_license
Elvis-Lopes/Ci-ncias-de-Dados-Uni9
ab5537bfc0f570d639e9763bb80b9654838e76d2
2939216c6adef7c64c8a7045b99c117753baaae8
refs/heads/master
2021-02-11T12:54:56.248564
2020-03-30T23:24:03
2020-03-30T23:24:03
244,492,799
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
num = float(input('Insira o número: ')) res = 0 soma = 0 while soma < num: res += 1 soma = soma + res if soma == num: print('Numero triangular') else: print('Não triangular')
[ "elvislopes1996@hotmail.com" ]
elvislopes1996@hotmail.com
b7ab702fb8c4a173ccc360e85cb90f0690ac242d
8b82cde7593acb7371285dd210a1101e3c04d4d9
/docs/conf.py
fc281bf4bc597e83c9c5dd43cc9e05e601117dc2
[ "MIT" ]
permissive
vijeycreative/cartesian-explorer
a914f4ca994bd8a7427f9a04cccf743d4f011c87
fa7b9b3a3a7d6da3caf55f9c311e6069b27c70d8
refs/heads/master
2023-03-21T22:23:52.762581
2021-03-17T02:13:19
2021-03-17T02:13:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,911
py
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
[ "lkv97dn@gmail.com" ]
lkv97dn@gmail.com
4c79abab1b34a7651893d88ac36235c7fd211045
d69acff1c03a593a87956122b8eb518cf87f7507
/Python_Basic_Fastcampus/section13_1.py
ab3571a162427273303d378174e4144484091940
[]
no_license
jbro321/Python_Basic_Fastcampus
f81e926c9f22309b2e8a11281e75f481ddca687d
3bd7d071aedd3f62afd87371b781cb412d6e08a7
refs/heads/main
2023-05-14T02:00:44.277906
2021-06-07T13:06:38
2021-06-07T13:06:38
374,655,189
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
# section13_1 # 업그레이드 타이핑 게임 제작 # 타이핑 게임 제작 및 기본 완성 import random import time words = [] # 영어 단어 리스트(1000개 로드) n = 1 # 게임 시도 횟수 cor_cnt = 0 # 정답 개수 with open('C:/Workspace/Python/Python/Fastcampus_Python/Fastcampus_Python_Basic/resource/word.txt', 'r') as f: for c in f: words.append(c.strip()) # strip()...
[ "jaehyung0321@gmail.com" ]
jaehyung0321@gmail.com
dd7f0fdae1950e549f6a53ebb6a704e841392a0e
07e8eaeaa6f3493546ba6b499be1593252f3c773
/opytimizer/optimizers/science/wdo.py
c09781e9fdd1b3efd008734e7a36ce48c1e1db4d
[ "Apache-2.0" ]
permissive
himanshuRepo/opytimizer
91dd848fffbe85736d8074169d515e46a8b54d74
09e5485b9e30eca622ad404e85c22de0c42c8abd
refs/heads/master
2023-07-20T18:16:00.565759
2021-09-02T19:40:43
2021-09-02T19:40:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,034
py
"""Wind Driven Optimization. """ import numpy as np import opytimizer.math.random as r import opytimizer.utils.exception as e import opytimizer.utils.logging as l from opytimizer.core import Optimizer logger = l.get_logger(__name__) class WDO(Optimizer): """A WDO class, inherited from Optimizer. This is t...
[ "gth.rosa@uol.com.br" ]
gth.rosa@uol.com.br
de5ee58593f93e09b973f006d4d194b61938bad4
4e9855ab1f1ce0e3e6aa23dca1dd716e2e027e3b
/6-Image_Processing/4-flipping.py
f86748cd03140a7673581904ffecd8384b73cd9d
[]
no_license
Md-Hiccup/python-opencv
f913649cdb4ceb9f29ad1c423a5839b39f09e193
759fc344f59e1888acc91909a0f7f2f725cb0f8f
refs/heads/master
2020-04-04T09:41:54.710374
2018-12-11T09:18:54
2018-12-11T09:18:54
155,828,315
0
0
null
2020-01-03T07:18:25
2018-11-02T07:15:02
Python
UTF-8
Python
false
false
706
py
import argparse import cv2 ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=True, help="Path to the image") args = vars(ap.parse_args()) image = cv2.imread(args["image"]) cv2.imshow("Original Image", image) # cv2.flip(image, flip_code(1, 0, -1)) # 1 = flip the image horizontally around th...
[ "ask2md@gmail.com" ]
ask2md@gmail.com
c2e976ecf7575598ad016eb6047bae8696bf9527
551e1190a7b1da5694ecb812eecf0ed44a4025ee
/con0to10.py
ff25bea8c0b4d730541202f0e37ec1ff593a3c13
[]
no_license
Destroyer4114/Python
5dc3d85a31c7d1867e71f050bdc84209d08a945c
82fbdc75f367cecb16166b2e03a0e6fc38da2c62
refs/heads/main
2023-08-11T19:01:09.588798
2021-10-09T11:13:12
2021-10-09T11:13:12
351,766,636
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
t= int(input()) n= int(input()) for i in range(t): s=0 m= int(input()) if n!=32: i=0 while m>0: s=s+ (m%10)*((n)**i) m= int(m/10) i=i+1 print(s)
[ "mehul.20204114@mnnit.ac.in" ]
mehul.20204114@mnnit.ac.in
5bcb7d6e117d314fec14e7a1cebaf1d5e9fdc5ee
d659810b24ebc6ae29a4d7fbb3b82294c860633a
/aliyun-python-sdk-cloudauth/aliyunsdkcloudauth/request/v20190307/CreateFaceConfigRequest.py
b18355cf3cc80ffc9c42e6e3e5227dcd8b5e2760
[ "Apache-2.0" ]
permissive
leafcoder/aliyun-openapi-python-sdk
3dd874e620715173b6ccf7c34646d5cb8268da45
26b441ab37a5cda804de475fd5284bab699443f1
refs/heads/master
2023-07-31T23:22:35.642837
2021-09-17T07:49:51
2021-09-17T07:49:51
407,727,896
0
0
NOASSERTION
2021-09-18T01:56:10
2021-09-18T01:56:09
null
UTF-8
Python
false
false
1,880
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
11ba398240c0d61cf8a400421179686e9edd31b1
17e813f4f20a6ce2d82619be9fac517b5176a74b
/Graphs/smallestMultipleWith01.py
8d26870a72ed8c9baf1e578f825e4e3f9c28476a
[]
no_license
AryanGanotra07/DSALGO
0ee86bbca4b345d21f5d6eb60d96c7aff6f1fc93
8cbac991ceec43522a57c65d68f00b54ccb6ea3f
refs/heads/master
2022-12-08T22:33:14.031636
2020-09-13T14:05:41
2020-09-13T14:05:41
283,800,432
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
class Solution: # @param A : integer # @return a strings def multiple(self, A): if A == 1: return "1" from collections import deque visited = set() q = deque() q.append("1") while len(q): t = q.popleft() if int(t)%A==0: ...
[ "aryanganotra7@gmail.com" ]
aryanganotra7@gmail.com
1ed3a4f42bacf9b2ed9d688d2d72d54d8c645c6f
080c13cd91a073457bd9eddc2a3d13fc2e0e56ae
/MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/data/experimental/kernel_tests/make_csv_dataset_test.py
ac64443368379877058ccb9f4ce9e29525d94e78
[ "Apache-2.0" ]
permissive
Portfolio-Projects42/UsefulResourceRepo2.0
1dccc8961a09347f124d3ed7c27c6d73b9806189
75b1e23c757845b5f1894ebe53551a1cf759c6a3
refs/heads/master
2023-08-04T12:23:48.862451
2021-09-15T12:51:35
2021-09-15T12:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,065
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 applica...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
7ae8e03295047397dae7237b1106e0f32fa070e7
232411e5462f43b38abd3f0e8078e9acb5a9fde7
/build/rqt_rotors/atomic_configure/hil_plugin
9460a2d879c38e9828403f179fd4ef3849e62a87
[]
no_license
Fengaleng/feng_ws
34d8ee5c208f240c24539984bc9d692ddf1808f9
a9fa2e871a43146a3a85a0c0a9481793539654eb
refs/heads/main
2023-03-29T17:25:42.110485
2021-03-30T14:50:24
2021-03-30T14:50:24
353,034,507
0
0
null
null
null
null
UTF-8
Python
false
false
568
#!/usr/bin/python2 # -*- coding: utf-8 -*- # generated from catkin/cmake/template/script.py.in # creates a relay to a python script source file, acting as that file. # The purpose is that of a symlink python_script = '/home/fechec/feng_ws/src/rotors_simulator/rqt_rotors/scripts/hil_plugin' with open(python_script, 'r')...
[ "chenfy1998@gmail.com" ]
chenfy1998@gmail.com
573490df6a72775df60471ded30db08da158b1bc
795435350d2e4fe415acd1fb846abb1c0cf94911
/socket/monitor/code/Python3实现TCP端口扫描器/tutorial/test2.py
d51f46cb365d0e3b02fbc9eedf1cb43984e4673f
[]
no_license
gaoxinge/network
c3575c7f0d95f7458a4ec74880ca5b8a0bff773e
68d307ec0756abff60914225fd38d69fa4b2a37c
refs/heads/master
2021-06-06T05:49:36.521243
2021-06-02T15:42:39
2021-06-02T15:42:39
84,033,128
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
from time import * from socket import * import threading import argparse lock = threading.Lock() threads = [] def portScanner(host, port): try: s = socket(AF_INET, SOCK_STREAM) s.connect((host, port)) lock.acquire() a = localtime() print '[%d:%d:%d]port %d open' % (a[3], a[...
[ "gaoxx5@gmail.com" ]
gaoxx5@gmail.com
134f9eba1e80c90c90a60a36550d29b5177c1121
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03326/s284430841.py
8a061a5302bda2aa56e46e77f58fbecf34682793
[]
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
476
py
N, M = map(int, input().split()) a = [] maxn = 0 for i in range(N): a.append([int(i) for i in input().split()]) maxn = 0 for i in range(8): A = [] tm = [1, 1, 1] for j in range(N): for k in range(3): # x, y, zの符号決定 if i & (1 << k): tm[k] = a[j][k] else: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
667b23922ac79ddc090e942d23ddfa58519e1eea
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/N5JhvabK6DTD5t6gS_21.py
cba656da1519b118162065315bdbecc6d5f4652b
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,415
py
""" In Edabit, you can surround text with asterisks, double asterisks, underscores and tildes to add _formatting_ to certain words. Complete the function `markdown()` so it takes a symbol as input, and returns a **function** which applies _that formatting_ to a _given word_ in a _given sentence_. ### Examples ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
cab4987439c339a7017203cd690b90ca5dda2c93
ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1
/res/packages/scripts/scripts/common/Lib/unittest/main.py
b4c0f7b7f2a832cb7698cde42cebc370bb77df7a
[]
no_license
webiumsk/WOT-0.9.20.0
de3d7441c5d442f085c47a89fa58a83f1cd783f2
811cb4e1bca271372a1d837a268b6e0e915368bc
refs/heads/master
2021-01-20T22:11:45.505844
2017-08-29T20:11:38
2017-08-29T20:11:38
101,803,045
0
1
null
null
null
null
WINDOWS-1250
Python
false
false
8,599
py
# 2017.08.29 21:59:08 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/unittest/main.py """Unittest main program""" import sys import os import types from . import loader, runner from .signals import installHandler __unittest = True FAILFAST = ' -f, --failfast Stop on first failure\n' CATCHBREAK =...
[ "info@webium.sk" ]
info@webium.sk
8885ac5a0449137291622c71c82659086bd13344
5868e652af3850e042855ea1f316ebbb511fcd69
/OverlapSeg/chromosome_dataset.py
2e15222723529b22267e2eee7bd48ac8d2ce3be3
[ "MIT" ]
permissive
PingjunChen/ChromosomeSeg
f80c4e2dd32df5fd32c126ef2c6b960cb051eb52
4b5e576696e9998558478fd4ec6b74809ceea49c
refs/heads/master
2022-01-08T07:29:16.687790
2019-07-10T02:42:49
2019-07-10T02:42:49
192,790,622
2
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
# -*- coding: utf-8 -*- import os import numpy as np from torch.utils.data import Dataset from skimage import io, transform class ChromosomeDataset(Dataset): def __init__(self, data_dir, transform=None): self.data_dir = data_dir self.img_list = [ele for ele in os.listdir(self.data_dir) if "img" i...
[ "chenpingjun@gmx.com" ]
chenpingjun@gmx.com
db48978e41fb3b536d39e8c5f478a1991db742d9
07607a38ba6ffd20054d0af26e46b1cd9ccf661b
/software/python/basic_led_strip/examples/run_tests.py
834a7258bc675f8a7a509a2016ce44ac4e58f915
[ "MIT" ]
permissive
willdickson/basic_led_strip
55bfe6cb36a48e8e30f22ced28cc5d1cc3cb7545
5194d1027fa89bb4ff640a4c7578cd06fdc7a915
refs/heads/master
2020-04-18T16:20:04.350104
2019-01-26T00:25:55
2019-01-26T00:25:55
167,631,636
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
from __future__ import print_function import time import random from basic_led_strip import BasicLedStrip led_strip = BasicLedStrip('/dev/ttyUSB0') num_led = led_strip.number_of_leds() led_strip.off() # Test set all for c in ('r', 'g', 'b'): for i in range(0,100): if c == 'r': rgb = i, 0, 0...
[ "wbd@caltech.edu" ]
wbd@caltech.edu
6c084c85c76fcfe37de930994bb1b5208eaad847
d17bf19c4285c07938c95a578c58b0b9a72a79e9
/calculate_age1.py
067ee8ace1dff7544432aaa4f628de699df04f1d
[]
no_license
hasnatosman/calculate_age
5e317f1c908db4b27d7bc678097c059e5e29b5d2
178ff421f2dcfa062a46ee8f904ee05598be6129
refs/heads/main
2023-01-28T19:28:16.834543
2020-12-07T10:10:52
2020-12-07T10:10:52
319,275,543
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from datetime import date def calculateAge(birthDate): today = date.today() age = today.year - birthDate.year - ((today.month, today.day) < (birthDate.month, birthDate.day)) return age print(calculateAge(date(1995, 12, 3)), 'years')
[ "noreply@github.com" ]
hasnatosman.noreply@github.com
cca52f5b7e6a194477e1d1671a6c4ccbe3d1cc6d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_155/1406.py
e9cb7bfc703b1b5d3ae0481e35d658c9f33329c7
[]
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
341
py
#!/usr/bin/env python #coding=utf8 tests = input() for test in range(0, tests): line = raw_input() sall = line.split()[1] friend = 0 audience = 0 for s, c in enumerate(sall): if int(c)>0 and int(s) > audience + friend: friend += int(s) - audience - friend audience += int(c) print "Case #" + str(test+1) +...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
478723a155d9f0d80f1aa69519436fcddfc5de53
bedae10cbaf676d8f309fa593028558d9a6e9c6b
/Algorithm/Easy/1-500/13ImplementstrStr().py
2cf013010350be1fd9856f94eb3a4d56d51e4d83
[ "MIT" ]
permissive
MartinYan623/Lint-Code
5800d61a54f87306c25ff2e3d535145312b42c66
57d2fa441d6496234615736e3f55d0b71aaa51dc
refs/heads/master
2021-06-06T13:51:19.587424
2021-04-21T12:23:19
2021-04-21T12:23:19
139,412,536
0
0
null
2020-08-08T10:28:52
2018-07-02T08:18:11
Python
UTF-8
Python
false
false
1,282
py
class Solution: """ @param: source: source string to be scanned. @param: target: target string containing the sequence of characters to match @return: a index to the first occurrence of target in source, or -1 if target is not part of source. """ def strStr(self, source, target): # wri...
[ "Maitong_y@163.com" ]
Maitong_y@163.com
9b44f457c89c74f98cbc0e4ad3412c474b14bcdc
779c62bc48e0d53c88ed7b090846fbd554a2f115
/lightreid/losses/label_smooth_cross_entropy_loss.py
fab7f8670c96881f4a4d1afe5f4bae2c5cd08166
[]
no_license
fightseed/light-reid
b366e7780700bec8a1099bcf3aec77ec0da56e0b
f69dbf03cbacb3776468ffc5508d4ed4c22272be
refs/heads/master
2023-02-11T07:27:06.008606
2021-01-05T07:31:28
2021-01-05T07:31:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
""" @author: Guan'an Wang @contact: guan.wang0706@gmail.com """ import torch import torch.nn as nn from .build import LOSSes_REGISTRY @LOSSes_REGISTRY.register() class CrossEntropyLabelSmooth(nn.Module): """Cross entropy loss with label smoothing regularizer. Reference: Szegedy et al. Rethinking the Incepti...
[ "guan.wang0706@gmail.com" ]
guan.wang0706@gmail.com
66de383a8e146d6e63ca5798f083186c0652d4ee
41c605bf3a002a757cb2344cff526d7a7ae56ea9
/plotly/graph_objs/cone/colorbar/__init__.py
93a90c439ff0f7a7279e4f4cca1b42e1f42a989d
[ "MIT" ]
permissive
Jonathan-MW/plotly.py
9674b90b5de11fd9089e6afefd04b57bc4587829
7528c00772f44dee24c0df7e15d70a4852f171a8
refs/heads/master
2020-05-30T06:04:13.621478
2019-05-31T10:34:15
2019-05-31T10:34:15
189,571,988
2
0
MIT
2019-05-31T09:59:53
2019-05-31T09:59:53
null
UTF-8
Python
false
false
24,768
py
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): # font # ---- @property def font(self): """ Sets this color bar's title font. Note that the title's font used to be set by the now de...
[ "noreply@github.com" ]
Jonathan-MW.noreply@github.com
14b88c73b98adf16c059ab36df20994bc7239bca
9eb4da8fe0eb56a0b0e4c4d660f52f52838c91da
/tests/modules/contrib/test_prime.py
8ccb0e39af0fec8a38f8621216e458a02349ee25
[ "MIT" ]
permissive
tobi-wan-kenobi/bumblebee-status
bf53b44341f4d84c4684675af3dcb8c675579f23
d03e6307f5e8c0b1c0451636ac9b1e84f3529a73
refs/heads/main
2023-08-31T11:52:12.140284
2023-07-21T12:18:17
2023-07-21T12:18:17
72,353,166
1,345
361
MIT
2023-09-13T19:25:17
2016-10-30T14:07:20
Python
UTF-8
Python
false
false
80
py
import pytest def test_load_module(): __import__("modules.contrib.prime")
[ "tobi-wan-kenobi@users.noreply.github.com" ]
tobi-wan-kenobi@users.noreply.github.com
5f92f2f0ba5edf1769c4806478b31e3750e27357
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v1/model/run_workflow_widget_definition.py
455346b52c006a4c163a39a611da9c57dd71f52b
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
4,037
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import List, Union, TYPE_CHECKING from ...
[ "noreply@github.com" ]
DataDog.noreply@github.com
b4c0d91a277148e74347757fa60fd9e7a28af954
99dcb18a9e3ea367272f740b8cbf3c34285a0c08
/samples/generated_samples/aiplatform_generated_aiplatform_v1_metadata_service_add_context_artifacts_and_executions_sync.py
9d5d58249739171bce778068629f2ebff76154fe
[ "Apache-2.0" ]
permissive
googleapis/python-aiplatform
926a4873f35dbea15b2fd86c0e16b5e6556d803e
76b95b92c1d3b87c72d754d8c02b1bca652b9a27
refs/heads/main
2023-08-19T23:49:02.180075
2023-08-19T13:25:59
2023-08-19T13:27:27
298,017,988
418
240
Apache-2.0
2023-09-14T21:08:33
2020-09-23T15:43:39
Python
UTF-8
Python
false
false
1,612
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
googleapis.noreply@github.com
6d33440a619c9c7929da7c3fcd56a8d3368cf1ac
0c5b767eb9a5f2597f2e46cf705eb4a63a481413
/imagepy/menus/Process/Hydrology/hydrology_plgs.py
f8a7bc20dc3b1b50f0fd1cebb923da50196a7f18
[ "BSD-2-Clause" ]
permissive
gideshi/imagepy
badf4490549ed96b618532a4d6b66e15e3c5e40e
10640645e89f715d60b78b1e8a93036381e7d372
refs/heads/master
2021-08-31T22:09:34.229185
2017-12-23T04:13:41
2017-12-23T04:13:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,549
py
import scipy.ndimage as ndimg import numpy as np from numba import jit from imagepy.core.engine import Filter from imagepy.ipyalg import find_maximum, ridge, stair, isoline, watershed from imagepy.core.roi import PointRoi #from skimage.morphology import watershed, disk from skimage.filters import rank from skimage.filt...
[ "imagepy@sina.com" ]
imagepy@sina.com
f63c002d51f63d22ced760c41e3f9d874053d991
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/Ablation4_ch016_ep003_7/Gather1_W_change_C_fix_2blk/train/pyr_4s/L7/step09_4side_L7.py
f1c74f78b0f74b8bf291ed3c3b16f50080c0047b
[]
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
156,495
py
############################################################################################################################################################################################################# from step08_c_use_G_generate_I_w_M_to_Wx_Wy_Wz_focus_to_Cx_Cy_focus_combine import I_w_M_to_W_to_C from step08_b_u...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
21dc043d2032660dec665d25980c8cf35bde76ff
c8dc80a0082b2d59de0e1df24b25483f55510c57
/0x0A-python-inheritance/2-is_same_class.py
2a3b15032d397bace1d9b48cb44988e2d4d8b220
[]
no_license
Daransoto/holbertonschool-higher_level_programming
51d81fac1dc3a6bd0799283332a3bcf5e2480330
4fa5f95b462f0e22b1e87189d162f0cb8c5625b6
refs/heads/master
2020-07-22T23:03:01.184032
2020-02-13T21:36:18
2020-02-13T21:36:18
207,358,507
0
4
null
null
null
null
UTF-8
Python
false
false
260
py
#!/usr/bin/python3 """ This module contains the class is_same_class. """ def is_same_class(obj, a_class): """ Function that tells if the obj is exactly an instance of a_class. """ if type(obj) is a_class: return True return False
[ "901@holbertonschool.com" ]
901@holbertonschool.com
d4a61a6dc348df2e0f0aa40dd0bb334114522159
163808746e51d378f69a966645b8bb8a855b4625
/MyMain0906/MyMain0906/MyMain0906.py
31a815bff79aa96ebb40ffbfd3b9d944a76ae3b9
[]
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
292
py
import MyModules import mislHrf import matplotlib.pyplot as plt import numpy as np df1=MyModules.getDF("nirs.xlsx","Sheet1") df1=MyModules.extractDF(df1,400,901) s1=MyModules.getS(df1,2) x=np.arange(0,len(s1)*0.1,0.1) plt.plot(x,s1) plt.show() s1.to_excel("data0906.xlsx",index=False)
[ "“0024thiroshi@gmail.com”" ]
“0024thiroshi@gmail.com”
09b544b163cf717293ed87bbbc1b6e21f88dc586
32c09619aeb058c3642d279952f3f2069eff400f
/.venv/Scripts/rst2html5.py
33a6325788ea90e155ac1e84539930f7fb351397
[ "MIT" ]
permissive
LuckJMG/RealFractions
8aa01e6474e42a3f34dd6b10899ebbcf7b0aea04
8393d7643db06db7630ae708fb3f40d242ac6b53
refs/heads/main
2023-03-01T08:55:46.492319
2021-02-02T03:05:11
2021-02-02T03:05:11
235,677,039
1
0
null
null
null
null
UTF-8
Python
false
false
1,190
py
#!C:\Users\Luck\Projects\Scripts\RealFractions\.venv\Scripts\python.exe # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium wi...
[ "lucas.mosquera13@gmail.com" ]
lucas.mosquera13@gmail.com
78f712ae065439bd09ce0609b073edc4763b2b1e
e174e13114fe96ad2a4eeb596a3d1c564ae212a8
/Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_09_Code/4375_09_11_bs_call_with_dividend.py
63e6815f6e7b50fc519b544b5e5725a399d6fc02
[]
no_license
Kevinqian0501/python_books
c1a7632d66dceb46db439f7cbed86d85370aab42
0691e4685af03a296aafb02447e3585db55ce461
refs/heads/master
2021-08-30T19:27:03.985464
2017-12-19T05:56:31
2017-12-19T05:56:31
104,145,012
1
0
null
null
null
null
UTF-8
Python
false
false
849
py
""" Name : 4375OS_09_11_bs_call_with_dividend.py Book : Python for Finance Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 12/26/2013 email : yany@canisius.edu paulyxy@hotmail.com """ from scipy import log,exp,sqrt,stats def bs_call_div(S0,X,T,r,sigma,d...
[ "kevin@Qians-MacBook-Pro.local" ]
kevin@Qians-MacBook-Pro.local
7014e8ebecfa2a9a43093a781882268645c14805
c5b062551f2131b4d9d68de44d0eceebb57403d9
/tests/test_relay.py
9f582562c9ae391ee6364a0375d795eec506ac44
[ "MIT" ]
permissive
PedroBern/django-graphql-jwt
e78437257e6d948ba48c32107596742c4e9753b9
6e816445b72e7582d0595fda9e7e5d0486026045
refs/heads/master
2020-12-05T10:12:20.893450
2019-12-05T15:28:42
2019-12-05T15:28:42
232,077,280
1
0
MIT
2020-01-06T10:28:28
2020-01-06T10:28:28
null
UTF-8
Python
false
false
1,098
py
import graphene import graphql_jwt from . import mixins from .testcases import RelaySchemaTestCase class TokenAuthTests(mixins.TokenAuthMixin, RelaySchemaTestCase): query = ''' mutation TokenAuth($input: ObtainJSONWebTokenInput!) { tokenAuth(input: $input) { token clientMutationId ...
[ "domake.io@gmail.com" ]
domake.io@gmail.com
520e8abcce60819a17350b89de8dad5d68edc0f5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03720/s533845039.py
d08b27efd13c837e376a25f69a807ea676984d50
[]
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
137
py
n, m = map(int, input().split()) l = [] for i in range(m): l.extend(map(int, input().split())) for i in range(n): print(l.count(i+1))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
58e53bfd4341d0b1856d7af8205bbc6dca7727b5
2da6b95fe4237cc00014f80c45d268ab62fc90cd
/OSR/DFP_cosine/distance_ploter.py
d8966314a10b2492b77ca591485d7fe2e14fe9e3
[]
no_license
lvzongyao/Open-Set-Recognition-1
7e26cd1d97f67b6c075f4e64296ce7a82d479168
26a8a1cca199f4e23df98abca6893e3eef3307da
refs/heads/master
2023-08-19T09:15:16.119377
2021-09-13T04:21:18
2021-09-13T04:21:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,217
py
from __future__ import print_function import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import matplotlib from tqdm import tqdm matplotlib.use('Agg') import matplotlib.pyplot as plt import torchvision import numpy as np import torchvis...
[ "xuma@my.unt.edu" ]
xuma@my.unt.edu
3f8f64191f2e8b9b865f6fbdf73442e03f410b64
6ccf65d1411e1274eaacf3a1055db3cf6b3cd91a
/libs/networkx/algorithms/shortest_paths/dense.py
27a651e06d99ec7f6a38c2c0ab19502953cf44e9
[]
no_license
Xukum/pycdb
2b7be32b04fcdb2251e846f2b14129e2408846d5
34e41c2a5f7e861b7ef358deff938adcff8c02ea
refs/heads/master
2020-12-03T09:18:00.898750
2014-04-21T07:13:27
2014-04-21T07:13:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,001
py
# -*- coding: utf-8 -*- """Floyd-Warshall algorithm for shortest paths. """ # Copyright (C) 2004-2012 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import networkx as nx __author__ = """Aric Hagberg <aric.h...
[ "alexmak@hare.(none)" ]
alexmak@hare.(none)
de4ae668ce01a197be3d49992b286dee95e745de
b068af2d1010ebb96e159d0118b4feb256972a4d
/torch/_lobpcg.py
02b666493f9a17038991acf9e95aec363138bc8a
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
418sec/pytorch
bc40efe5aa5157515fe658d6344446de36b643f8
134fe7426230a8f8ee49c2bf1f85123b2e3e30d3
refs/heads/master
2023-02-20T10:11:29.570719
2021-01-22T07:19:12
2021-01-22T07:19:12
323,314,217
0
2
NOASSERTION
2021-01-22T07:25:40
2020-12-21T11:19:52
C++
UTF-8
Python
false
false
43,980
py
"""Locally Optimal Block Preconditioned Conjugate Gradient methods. """ # Author: Pearu Peterson # Created: February 2020 from typing import Dict, Tuple, Optional import torch from torch import Tensor from . import _linalg_utils as _utils from .overrides import has_torch_function, handle_torch_function __all__ = ['...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
70dbc63ff133b8706d187bc032592c71a6acdff6
c9fe7a29cceffeed3823609b5f4b2dfe401c2e19
/Line/line_markline.py
005731eb35bbd9da441230bc59688b787a9fa67d
[ "MIT" ]
permissive
pyecharts/pyecharts-gallery
79ece0cc4fb037ceb36346a8e4558a8522265e3a
2ced79907ec2c16af50b18457ba615898e65e126
refs/heads/master
2023-04-15T05:21:14.544668
2023-04-07T08:09:52
2023-04-07T08:09:52
183,432,412
1,042
627
MIT
2021-03-22T09:57:50
2019-04-25T12:43:50
HTML
UTF-8
Python
false
false
555
py
import pyecharts.options as opts from pyecharts.charts import Line from pyecharts.faker import Faker c = ( Line() .add_xaxis(Faker.choose()) .add_yaxis( "商家A", Faker.values(), markline_opts=opts.MarkLineOpts(data=[opts.MarkLineItem(type_="average")]), ) .add_yaxis( "...
[ "379978424@qq.com" ]
379978424@qq.com
e92fac3e6816f38fd542b5fb8607f19d62e272a5
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_179/ch25_2020_03_23_14_31_38_627938.py
dc86e06f9be85e0b93e0c9c8f04145ec6ae6d0ee
[]
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
235
py
import math def calcula_distancia (velocidade, angulo): g = 9.8 distancia = ((velocidade**2) * math.sin(2*angulo))/g if distancia < 98: return 'Muito perto' elif distancia > 102: return 'Muito longe' else: return 'Acertou!'
[ "you@example.com" ]
you@example.com
46b824904c2c3f3012a3c613abdd80bf7a63d6cc
ddd2b44eecfcdc3d221ac3ccea552eae69e037d8
/test/test_xadc.py
fc13cfb41d63c9bd88dee9c44ae5ca8dc86da559
[]
no_license
mithro/arty-soc
4ca9b8e423d8a8ea95d52c0239c4a2a69a8c2fbf
592f77ede21a7049e1b00badeacc34c15b4098d8
refs/heads/master
2021-01-22T22:04:05.822695
2017-03-19T20:18:47
2017-03-19T21:18:43
85,505,513
2
0
null
2017-03-19T20:13:51
2017-03-19T20:13:51
null
UTF-8
Python
false
false
393
py
#!/usr/bin/env python3 from litex.soc.tools.remote import RemoteClient wb = RemoteClient() wb.open() regs = wb.regs # # # print("temperature: %f°C" %(regs.xadc_temperature.read()*503.975/4096 - 273.15)) print("vccint: %fV" %(regs.xadc_vccint.read()/4096*3)) print("vccaux: %fV" %(regs.xadc_vccaux.read()/4096*3)) prin...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
933095c00737b9ce87f03c065b14e0f1107e0825
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/400/usersdata/299/81380/submittedfiles/av1_programa1.py
8a017b1cb18abb4c8e9dbb88b5b86436f1ab9304
[]
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
434
py
# -*- coding: utf-8 -*- x=input('NUM:') if x=='1': print('JAN') elif x=='2': print('FEV') elif x=='3': print('MAR') elif x=='4': print('ABR') elif x=='5': print('MAI') elif x=='6': print('JUN') elif x=='7': print('JUL') elif x=='8': print('AGO') elif x=='9': print('SET') elif x=...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e19f4bc6f2b5f127c1d252aae9f939e7e07effaf
a45d90bfb891daba2e13a703e1dc667a1bc42143
/Course_1/W3/5_maximum_number_of_prizes/different_summands.py
e9785fa731eced5e72a6277b5b2d3d6c7039aa6e
[]
no_license
piecesofreg09/DSA
9c89f597dbfad973f7e701fe11b722cf0232c7d5
8e33712026513625b86b05dd917aa5bf91a6bb61
refs/heads/master
2020-04-09T11:10:35.517086
2019-01-14T22:43:56
2019-01-14T22:43:56
160,298,589
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
# Uses python3 import sys def optimal_summands(n): summands = [] last = 1 while n > 0: if (n - last) <= last: last = n n -= last summands.append(last) else: n -= last summands.append(last) last += 1 ...
[ "noreply@github.com" ]
piecesofreg09.noreply@github.com
86639188ef74050b776a8003c82f471cc523d4d5
76ec0fdf7eecb60be750fb2793335c1d072ad1a1
/tests/test_integer_field.py
57dd199c4384c24d52c8ee709f667c32c4e19de4
[ "MIT" ]
permissive
GabLeRoux/django-localized-fields
2096915b4c45ab2935dbd2fd55e825f0dcaba0bd
f0ac0f7f2503317fde5d75ba8481e34db83512bd
refs/heads/master
2020-05-16T12:15:57.805928
2019-02-21T10:54:04
2019-02-21T10:54:04
183,041,193
0
0
MIT
2019-04-23T15:12:15
2019-04-23T15:12:15
null
UTF-8
Python
false
false
5,950
py
from django.test import TestCase from django.db.utils import IntegrityError from django.conf import settings from django.db import connection from django.utils import translation from localized_fields.fields import LocalizedIntegerField from .fake_model import get_fake_model class LocalizedIntegerFieldTestCase(Test...
[ "swen@sectorlabs.ro" ]
swen@sectorlabs.ro
e98441ddc51a59063ecb801cb9324f4747de0c01
f3b233e5053e28fa95c549017bd75a30456eb50c
/jnk1_input/34/34-37_MD_NVT_rerun/set_6.py
d3590a0c8e3ea32b5709e03b153ca1dee2517c13
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/jnkl/L634/MD_NVT_rerun/ti_one-step/34_37/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_6.in' temp_pbs = filesdir + 'temp_6.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in la...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
dd6ec4d37126ef3dc6363335fdf4f2bfd46d756a
cca5ceb42b09e567d79fcb46f298757c1ff04447
/Advanced/decorators/4_memo.py
c533ecaa987c85ac8774239b32c6cf6ea56f5116
[]
no_license
NishantGhanate/PythonScripts
92933237720e624a0f672729743a98557bea79d6
60b92984d21394002c0d3920bc448c698e0402ca
refs/heads/master
2022-12-13T11:56:14.442286
2022-11-18T14:26:33
2022-11-18T14:26:33
132,910,530
25
15
null
2022-12-09T09:03:58
2018-05-10T14:18:33
Python
UTF-8
Python
false
false
796
py
import time def memo(wrapped_func): cached = {} def inner(n1, n2): nonlocal cached params = '{}{}'.format(n1, n2) if params not in cached: value = wrapped_func(n1, n2) cached[params] = value return value return cached[params] return inne...
[ "nishant7.ng@gmail.com" ]
nishant7.ng@gmail.com
8caf97de56066b00f82d00a8a907a2cd7534e13e
f7481417df5f79c804c3d596012defa7e637ad3f
/musichans/musichans/wsgi.py
7ba96d3c41576e8b0dd95a919aaf95fd11b846ce
[]
no_license
helder-a-reis/musichans
aea4c193158da7a1526ba4131b5ca3e096c83ddf
12b673f5eda3fe2ffb42c28a9e5bc15cd578b7f4
refs/heads/master
2022-12-25T21:49:36.242264
2022-12-17T10:16:26
2022-12-17T10:16:26
136,511,657
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for musichans project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "helderreis78@gmail.com" ]
helderreis78@gmail.com
dd52972a361556352ecc1bd6a6bde3c131b4c2fe
9af204535dfc39d5c9a2dc4e2daf538cb2454caf
/src/glimpse.py
7a4eac40d11ec3cd8dff53b63b157105a777a3af
[]
no_license
kevinyu/reimagined-robot
c94f51e1b025dc3636a40b06cf8d914238596f9e
970e451a70b43d1cd7ac7f8f3700ea8e9eb88aa3
refs/heads/master
2021-01-20T15:57:41.095221
2017-05-24T01:40:25
2017-05-24T01:40:51
90,803,707
0
0
null
null
null
null
UTF-8
Python
false
false
5,831
py
import numpy as np import theano import config from utils.complex import ComplexTuple def accumulate_glimpses(S_0, glimpse_vectors, glimpse_positions): """Accumulate information into scene representation S over multiple glimpses Will build up and return intermediate states of the scene representation af...
[ "thekevinyu@gmail.com" ]
thekevinyu@gmail.com
ba80899e88de84851bbbe7e4c9e15f668fa7c433
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/redis/azure-mgmt-redis/generated_samples/redis_cache_firewall_rule_create.py
d43334714a7f568799052cbd0e7a7bdde075d930
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,645
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" ]
Azure.noreply@github.com
839b86311845b289db77f3b897ac4b0023dc7e0a
32823c634a1b22907198374df86610255a25aa78
/arbittaryparam.py
9d3b66d79586b577a32a5f9b2a3d90b7190f6e5a
[]
no_license
prabhatpal77/Complete-core-python-
7dc5747773e985a9d8af425de349bdb1c3e32e8f
b5076231367a67edc54c8e8d7017cec8fa54f300
refs/heads/master
2020-07-27T21:07:23.375701
2019-09-18T04:39:32
2019-09-18T04:39:32
209,216,484
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# any parameter which is preceeded by * or ****.....* is known as a arbittary parameter. # single * arbittary parameter type will be taken as a tuple. # At the time of calling the function we can pass 0 or mare values to the single star arbittary parameter.. def add(*a): print(a) print(type(a)) print(len(a)...
[ "noreply@github.com" ]
prabhatpal77.noreply@github.com
fbdb21e2a0dfc861312e9dd265c0f81149656dcc
66988c8953532d2c295e5815cfeaa60ed01fcaac
/chainer_/chainercv2/model_provider.py
0280ba2c7849b0e7022a775a1ec47c605d7dc232
[ "MIT" ]
permissive
KJW-bq/imgclsmob
24fa204a81456908e7b6eb600a4085d0fa498db2
402f49058c3ad39eea5a81b5a630875c0edfa683
refs/heads/master
2023-06-06T21:58:40.213803
2021-07-01T12:30:44
2021-07-01T12:30:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,335
py
from .models.alexnet import * from .models.zfnet import * from .models.vgg import * from .models.bninception import * from .models.resnet import * from .models.preresnet import * from .models.resnext import * from .models.seresnet import * from .models.sepreresnet import * from .models.seresnext import * from .models.s...
[ "osemery@gmail.com" ]
osemery@gmail.com
4af531bf96cd338debe7249d0f6263955d9f870b
7b4e9342d42be2b55af5dc23a8abedd672d68e99
/MobileApps/libs/flows/android/morelangs/morelangs.py
404e02849f1022218eda7a0109fe56e81237d71b
[]
no_license
Amal548/QAMA
af5bb335c92a90b461f1ee9a3870435d83d46802
b5230c51d3bc7bb04b3448d1a1fe5a076d8898d5
refs/heads/master
2023-07-12T09:17:04.624677
2021-08-06T08:01:11
2021-08-06T08:01:11
389,595,655
0
0
null
null
null
null
UTF-8
Python
false
false
2,055
py
from MobileApps.libs.flows.android.android_flow import AndroidFlow from MobileApps.resources.const.android.const import * from selenium.common.exceptions import NoSuchElementException, TimeoutException import logging """ Prerequisite: - App must have installed MoreLangs (manually) - Execute "adb shell pm grant...
[ "amal.muthiah@hp.com" ]
amal.muthiah@hp.com
c4633c028ff2167f988435a837cf702dab9aa6c7
bbebd95ce007baf3be20ca14fc8fe696c4c7dd96
/L8 Python Scripts/LaunchMod_b994/ConfigurableButtonElement.py
a653bdbda130bf0f97c60ef0b0c9e8b466b8238c
[]
no_license
spiralune/monomodular
70eeabcb5a9921b7bab30d8c5fd45ca237cde9c3
862bb02067c2fbc9816795904b2537a9b5e1c7b6
refs/heads/master
2020-12-11T04:06:25.390424
2014-07-09T19:45:41
2014-07-09T19:45:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
# emacs-mode: -*- python-*- import Live from _Framework.ButtonElement import * class ConfigurableButtonElement(ButtonElement): __module__ = __name__ __doc__ = ' Special button class that can be configured with custom on- and off-values ' def __init__(self, is_momentary, msg_type, channel, identifier): But...
[ "aumhaa@gmail.com" ]
aumhaa@gmail.com
a586c2b1340660b9b3f2a06e2ab3e6d018050bf1
e247d9261676f257752c0c6beac161954137a81c
/src/0003.longest-substring-without-repeating-characters/longest-substring-without-repeating-characters.py
7cfcb7fe2c370cd03dce930928aa982d06823974
[ "MIT" ]
permissive
henrymorgen/Just-Code
8fbbd8288b485372a44e10b0078b5edb8af61a3b
fa03ebb89edd8f2292de7c0644dbab88dc1d924c
refs/heads/master
2022-10-19T05:59:53.134092
2020-06-10T02:26:43
2020-06-10T02:26:43
273,656,532
1
2
MIT
2020-06-20T07:02:38
2020-06-20T07:02:38
null
UTF-8
Python
false
false
360
py
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: used = {} start = maxlength = 0 for i, v in enumerate(s): if v in used and start <= used[v]: start = used[v] + 1 else: maxlength = max(maxlength, i - start + 1) ...
[ "yaxe522@163.com" ]
yaxe522@163.com
859db736190db222180195c85e465a19b9e45106
d7faf47825b6f8e5abf9a9587f1e7248c0eed1e2
/python/ray/serve/tests/test_http_routes.py
d532dd8e4eed1d8cef417aa0fa5a12fff2fdc6a2
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
ggdupont/ray
7d7c7f39a8f99a09199fab60897da9e48b8e2645
15391026c19f1cbbb8d412e46b01f7998e42f2b9
refs/heads/master
2023-03-12T06:30:11.428319
2021-12-07T05:34:27
2021-12-07T05:34:27
165,058,028
0
0
Apache-2.0
2023-03-04T08:56:50
2019-01-10T12:41:09
Python
UTF-8
Python
false
false
6,387
py
import time import pytest import requests from fastapi import FastAPI, Request from starlette.responses import RedirectResponse import ray from ray import serve def test_path_validation(serve_instance): # Path prefix must start with /. with pytest.raises(ValueError): @serve.deployment(route_prefix=...
[ "noreply@github.com" ]
ggdupont.noreply@github.com
8db0ef4f1510611b28f62ba72ff6453dac304c18
872f24199d847f05ddb4d8f7ac69eaed9336a0d5
/gcwrap/python/scripts/regressions/tests/ngc5921redux.py
3c0bf90df01258492590c067b85ddae965d6302a
[]
no_license
schiebel/casa
8004f7d63ca037b4579af8a8bbfb4fa08e87ced4
e2ced7349036d8fc13d0a65aad9a77b76bfe55d1
refs/heads/master
2016-09-05T16:20:59.022063
2015-08-26T18:46:26
2015-08-26T18:46:26
41,441,084
1
1
null
null
null
null
UTF-8
Python
false
false
883
py
import sys import os import string from locatescript import locatescript import inspect a=inspect.stack() stacklevel=0 for k in range(len(a)): if (string.find(a[k][1], 'ipython console') > 0): stacklevel=k break gl=sys._getframe(stacklevel).f_globals def description(): return "NGC 5921, VLA D-...
[ "darrell@schiebel.us" ]
darrell@schiebel.us
a69e40ec67ca7ddaa45f7f648383b255ddfc79e9
a5599f90f1b278916fac6bdb31035403f32314d5
/0x0B-python-input_output/10-class_to_json.py
97b403bcc2e404b11e7159d127671371f5390e4c
[]
no_license
veromejia/holbertonschool-higher_level_programming
46294a47a91771c9b36e8221d070d60516132539
aab2ea538a45ae72e006e52730886fd45b85fe78
refs/heads/master
2020-07-23T02:14:40.652029
2020-02-14T05:50:57
2020-02-14T05:50:57
207,412,376
2
0
null
null
null
null
UTF-8
Python
false
false
299
py
#!/usr/bin/python3 """returns the dictionary description with simple data structure""" def class_to_json(obj): """Returns the dictionary description with simple data structure (list, dictionary, string, integer, boolean) for JSON serialization of an object """ return obj.__dict__
[ "veromejia.q@gmail.com" ]
veromejia.q@gmail.com
1677e5670281a59e271296af911cf0e53db40f24
eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429
/data/input/avelino/bottle-admin/bottle_admin/helpers.py
00162fe0a63dee7249d77ca510f2fe37779d8fb9
[]
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
463
py
# coding: utf-8 def get_object_as_list(model, obj): """Get the SQLAlchemy query result as a list of tuples""" list_display = model.get_list_display() result = [('id', obj.id)] result += [(col, getattr(obj, col)) for col in list_display] print(result) return result def get_objects_as_list(mo...
[ "rares.begu@gmail.com" ]
rares.begu@gmail.com
ca3a19add72587d281a0a1c9c40a0cb9d143d62d
603519e0d087967caac72cce854dc7f1dfaa5262
/algorithmic heights/PAR3.py
e1635f86c63db3b55145ed44f0beb2169ce4a0ca
[]
no_license
Morpheus2112/Rosalind-exercise
e591570521a12905864cb7e7f72b66816da7ae3a
e1047a5f6725e07c8cbf17594bfe4969cbc5d708
refs/heads/master
2022-07-25T00:07:17.316099
2020-02-16T07:18:21
2020-02-16T07:18:21
240,848,262
1
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
# -*- coding: utf-8 -*- """ Created on Sun Dec 31 01:06:44 2017 @author: Memphis """ def par(): with open("rosalind_par3.txt") as f: n = int(f.readline().strip()) A = map(int, f.readline().split()) B = [A[0],] C = [] D = [] for i in range(1,len(A)): if A[i] > A[0]: ...
[ "palandswd@gmail.com" ]
palandswd@gmail.com
64d6a2bffbdc9132744d3a11e8537354cd3d4579
5525752dc7a5545c75e27f486f174b82a1bfd540
/xba/xba/common/tenjin.py
84f45572fd3468dd55419b3f33f2f29ca49a80b8
[]
no_license
sxwailyc/nbasimulate
3ee1cc415cfb0ecf565144303e1e6d3ce4544b57
dfd19edf53290b931588ae81bac28c74c3b57da3
refs/heads/master
2021-01-11T20:16:12.893715
2014-11-10T16:29:11
2014-11-10T16:29:11
79,078,143
0
0
null
2017-01-16T03:10:05
2017-01-16T03:10:05
null
UTF-8
Python
false
false
38,652
py
## ## $Rev: 137 $ ## $Release: 0.6.2 $ ## copyright(c) 2007-2008 kuwata-lab.com all rights reserved. ## ## Permission is hereby granted, free of charge, to any person obtaining ## a copy of this software and associated documentation files (the ## "Software"), to deal in the Software without restriction, including ## wi...
[ "shixiangwen03@566361fc-23ee-11de-9d52-39b120432c5d" ]
shixiangwen03@566361fc-23ee-11de-9d52-39b120432c5d
0aa316e88079c3a3a585ec4e79e087db0469fedf
4936c1d20aef7a93ad2ded2f5731b102631ad8b2
/Tablas/tablas/Ruido30/maxVotos/IPF/menu_6.py
fd22e2343ccb0c6f9f6d834a769ac6c613ba533e
[ "LicenseRef-scancode-other-permissive" ]
permissive
jcarlosorte/pyMIL-BNF
530f60081607deecfee7c72264000c0ba34984fe
36e282e35242815bf57310db98707da70d69b183
refs/heads/master
2022-11-12T20:58:49.058513
2020-07-06T15:35:01
2020-07-06T15:35:01
182,646,512
0
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
# -*- coding: utf-8 -*- """ Created on Fri May 10 10:11:00 2019 @author: Usuario """ import sys,os,warnings os.chdir('../../../../MILpy') sys.path.append(os.path.realpath('..')) warnings.filterwarnings('ignore') #from funciones import fvc from filters import EF from filters import CVCF from filters import IPF folds...
[ "jcarlosorte@ugr.es" ]
jcarlosorte@ugr.es
394d4bd97c0d16c256078993b41c03fd14417945
6df0d7a677129e9b325d4fdb4bbf72d512dd08b2
/PycharmProjects/my_practice/python_practice/prac_70.py
8067d6861878bafc551fad7235efce522fbcbc5b
[]
no_license
yingxingtianxia/python
01265a37136f2ad73fdd142f72d70f7c962e0241
3e1a7617a4b6552bce4a7e15a182f30e1bae221e
refs/heads/master
2021-06-14T15:48:00.939472
2019-12-13T05:57:36
2019-12-13T05:57:36
152,200,507
0
0
null
2021-06-10T20:54:26
2018-10-09T06:40:10
Python
UTF-8
Python
false
false
185
py
#!/usr/bin/env python #--coding: utf8-- def count(strings): return len(strings) if __name__ == '__main__': strings = raw_input('请输入字符串:') print count(strings)
[ "root@room8pc205.tedu.cn" ]
root@room8pc205.tedu.cn
ec97b4be619572e56f2870379d7112a274d8c4fa
ffa58fe72c842607033a8d82fd60081275eef593
/반복/반복(4).py
6bfdb4625e92a8205bec2865e400629a820fed68
[]
no_license
wjdwls0630/Khlug-Python
744a89cdac6a259ae976a4f615c175895058c98b
352dbe4effb905148618958f35e255e7dd8a6929
refs/heads/master
2020-03-21T05:05:30.386635
2018-06-21T08:44:14
2018-06-21T08:44:14
138,143,743
0
0
null
null
null
null
UTF-8
Python
false
false
1,644
py
#while문 도전과제 1 print("="*60) number1=int(input("정수 입력 : ")) a=0 while a<number1 : print(a, end=" ") a=a+1 print("\n"+"="*60) #while문 도전과제 2 number2=int(input("정수 입력 : ")) b=0 sum=0 while b<=number2 : sum=sum+b b = b + 1 print("합계 :",sum) print("="*60) #whil문 도전과제 3 number3=int(input("정수를 입력하세요 : "...
[ "wjdwls0630@gmail.com" ]
wjdwls0630@gmail.com
c29c69b75318eb424f337cdc565ca09f95b4e9f1
4685d390be9e64ed39549332093aa3265e4f5c5c
/solutions/number-of-students-doing-homework-at-a-given-time.py
9f16b8f7e2c2b821e7f05d3e50f6e2fedbc7e6ec
[]
no_license
rushirg/LeetCode-Problems
dee8e82940e082460c03243044c9024b726a64e4
073d01c88efd58a6b8d463407a4b25b6ee3c278d
refs/heads/master
2023-06-08T08:28:30.350526
2023-05-25T05:34:21
2023-05-25T05:34:21
215,902,531
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
""" 1450. Number of Students Doing Homework at a Given Time https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/ """ class Solution: def busyStudent(self, startTime: List[int], endTime: List[int], queryTime: int) -> int: count = 0 for i in range(len(startTime)): ...
[ "gaidhani.rushikesh@gmail.com" ]
gaidhani.rushikesh@gmail.com
8a72f61d759053dff9c65844db7c218ee666cf0e
5a749b479778a3885594c9b3c43afcbab1dedf1a
/mission/framework/search.py
69690266bca8314cd115e3bd5c29ca457aa2a491
[ "BSD-3-Clause" ]
permissive
16vishalsharma/software
78ecabd4a041652106fb4b83e982a4d89245be43
78fd52f6a167a29d0558bec4a34eded8b5198f2c
refs/heads/master
2021-01-22T14:45:50.253753
2017-08-17T13:41:46
2017-08-17T13:41:46
100,717,475
0
1
null
null
null
null
UTF-8
Python
false
false
12,472
py
import numpy as np import math import shm from auv_math.math_utils import rotate from auv_math.quat import quat_from_axis_angle from auv_python_helpers.angles import abs_heading_sub_degrees from mission.framework.combinators import Sequential, While from mission.framework.helpers import call_if_function, ConsistencyC...
[ "software@cuauv.org" ]
software@cuauv.org
4c9ba09164cc5b61ec4c15cfd1130d439a1fc7c8
673e829dda9583c8dd2ac8d958ba1dc304bffeaf
/data/multilingual/Laoo.LAO/Sun-ExtA_8/pdf_to_json_test_Laoo.LAO_Sun-ExtA_8.py
6a89c059fd4c4afa3349150af1fe720557244603
[ "BSD-3-Clause" ]
permissive
antoinecarme/pdf_to_json_tests
58bab9f6ba263531e69f793233ddc4d33b783b7e
d57a024fde862e698d916a1178f285883d7a3b2f
refs/heads/master
2021-01-26T08:41:47.327804
2020-02-27T15:54:48
2020-02-27T15:54:48
243,359,934
2
1
null
null
null
null
UTF-8
Python
false
false
309
py
import pdf_to_json as p2j import json url = "file:data/multilingual/Laoo.LAO/Sun-ExtA_8/udhr_Laoo.LAO_Sun-ExtA_8.pdf" lConverter = p2j.pdf_to_json.pdf_to_json_converter() lConverter.mImageHashOnly = True lDict = lConverter.convert(url) print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
f1d8da4b9e77fc366884db5a1cd841073f61718f
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/recollect_waste/calendar.py
c439f647da5414e91a3bbc1945595c92ea2e44a4
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
3,128
py
"""Support for ReCollect Waste calendars.""" from __future__ import annotations import datetime from aiorecollect.client import PickupEvent from homeassistant.components.calendar import CalendarEntity, CalendarEvent from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, ca...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
6dc1fb741febd2827cefcb84ec6f09b30206104e
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/formatter/alignInParenthesizedExpression.py
ea97ade4ee9239b30cb17f95c88bc8ade85d4221
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
134
py
print(1 + (1 + (1 + x .calc()) + x. calc() ))
[ "dmitry.trofimov@jetbrains.com" ]
dmitry.trofimov@jetbrains.com
2766cba2e6b9c14e2b47f4f6764aa3ff4db5e3c3
4b89a7de426fb53b999b5f3834404215a90817df
/pyobjc-core/PyObjCTest/test_method_prototypes.py
a70fe4732f9329d40c1e1ac3fc37c33c753a036a
[ "MIT" ]
permissive
peeyush-tm/pyobjc
a1f3ec167482566ddc7c895cfa2aca436109cf66
da488946f6cc67a83dcc26c04484ca4f10fabc82
refs/heads/master
2021-01-20T19:26:06.015044
2016-05-22T14:53:37
2016-05-22T14:53:37
60,502,688
2
0
null
null
null
null
UTF-8
Python
false
false
18,005
py
""" These tests check if method prototypes match method signatures. TODO: a separate test file that tests calls with optional arguments in method defintions: class MyClass (NSObject): def myMethod_(self, arg=1): pass o = MyClass.alloc().init() o.myMethod_(2) ...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
72d848927f5fe5827db31d54be4d5390ca38aea0
99d8895888ab093b06a3ba03594f2a74cb97758f
/Scripts/Course2/WEEK3/example1.py
9c3949e41f3f01121e0cc6a7a474e5206b4518e8
[]
no_license
AlekseyAbakumov/PythonLearn
4c35efeb0996f4a3221f228b57e30d595bb62637
fdd2cc9bdaa0fac3d582ddd5f2fbf9018218bda5
refs/heads/master
2023-03-23T20:12:42.603817
2021-03-16T18:22:48
2021-03-16T18:22:48
265,309,409
1
1
null
null
null
null
UTF-8
Python
false
false
3,910
py
# применяем паттерн ДЕКОРАТОР # описываем животных, которые живут в нашей игре # чтобы не описывать каждый вид, применим паттерн декоратор from abc import ABC, abstractmethod class Creature(ABC): # принимать пищу @abstractmethod def feed(self): pass # двигаться @abstractmethod def m...
[ "a-starostin@mail.ru" ]
a-starostin@mail.ru
57ef697e1db39c56937c44d038de16b825c9294e
a766f6ee10be86bd33d2cfc06c19d94247b6ad08
/tests/test_package_loading.py
4f3717bc120eabfbcef18b42db5e7b4b8f8e9db6
[ "Apache-2.0" ]
permissive
ejfitzgerald/agents-aea
3b07db6c1f9f5fc8fded4ce497a2283ae88f0b84
6411fcba8af2cdf55a3005939ae8129df92e8c3e
refs/heads/master
2022-12-07T05:53:55.379150
2020-08-14T15:22:19
2020-08-14T15:22:19
288,688,666
0
0
Apache-2.0
2020-08-19T09:24:07
2020-08-19T09:24:06
null
UTF-8
Python
false
false
1,726
py
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
[ "marco.favorito@gmail.com" ]
marco.favorito@gmail.com
1aaf459c00444f2ed743afbb6c471239b6c9f359
b562bd43d767102e0eae81ae8e4c07ea05d81d5e
/apps/core/context_processors.py
cede0bd0e046e7c7caecb0af6909a5f7d3fea2d9
[]
no_license
bkawan/django-simple-blog-system
3464a96b81e6928daa60d5c8d90d2f8137718d30
d08947adaef4fb57d093e8616399218671dd9c79
refs/heads/master
2021-01-22T05:01:10.498140
2017-11-06T05:08:15
2017-11-06T05:08:15
102,276,913
1
0
null
null
null
null
UTF-8
Python
false
false
683
py
from django.conf import settings from config.settings import COMPANY_NAME, COMPANY_DESCRIPTION if settings.DEBUG: from config.settings.dev import ( HTTP_HOST_NAME_WITH_PROTOCOL, FACEBOOK_APP_ID, ) else: from config.settings import ( HTTP_HOST_NAME_WITH_PROTOCOL, FACEBOOK_AP...
[ "bikeshkawang@gmail.com" ]
bikeshkawang@gmail.com
26cf37e1bf29f268f9a6044a7cb86e19285b31b6
49812e663d0033700af72c4f451581d1f05791ef
/scons/scons-time.py
3fdb8f2ebce2e6df874a4c728804f6f2342b03c0
[ "Apache-2.0", "MIT", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unknown-license-reference" ]
permissive
faustus123/JANA
1d9f6af0976b45eb9ceade584f3c0faeacf19b2c
38ca14e79deeb4c13042c60d948356ab8e98cf0c
refs/heads/master
2023-01-09T04:18:06.795419
2020-11-14T16:00:10
2020-11-14T16:00:10
103,759,870
0
2
Apache-2.0
2020-11-14T15:57:50
2017-09-16T14:50:58
Python
UTF-8
Python
false
false
48,855
py
#!/usr/bin/env python # # scons-time - run SCons timings and collect statistics # # A script for running a configuration through SCons with a standard # set of invocations to collect timing and memory statistics and to # capture the results in a consistent set of output files for display # and analysis. # # # Copyrigh...
[ "davidl@jlab.org" ]
davidl@jlab.org
a044acc20d60cdf2288f94791f53537e4e2629aa
86d499787fb35024db798b0c1dbfa7a6936854e9
/py_tools/example/psutil_demo/psutil_test.py
56dc92328b7900a86404fa9968bc01d8cdaaa6c5
[]
no_license
Tomtao626/python-note
afd1c82b74e2d3a488b65742547f75b49a11616e
e498e1e7398ff66a757e161a8b8c32c34c38e561
refs/heads/main
2023-04-28T08:47:54.525440
2023-04-21T17:27:25
2023-04-21T17:27:25
552,830,730
0
1
null
null
null
null
UTF-8
Python
false
false
609
py
import psutil cpu_login_nums = psutil.cpu_count() print(cpu_login_nums) cpu_login_nums = psutil.cpu_count(logical=False) print(cpu_login_nums) # cpu性能 print(psutil.cpu_times().idle) print(psutil.cpu_times()[2]) # 内存信息 print(psutil.virtual_memory()) print(psutil.virtual_memory().percent) # 虚拟内存信息 print(psutil.swap_mem...
[ "gogs@fake.local" ]
gogs@fake.local
50bc2d44a87fc0f289e2115e2d5248690692123f
f7147dcfcc1504dea9b4143094ea7cd3b6c2e417
/dashboard_api/models.py
c9744248c4813fcc748fdf2b1c8a0e286dfacf2d
[ "MIT" ]
permissive
hjlarry/flask-vue-cms
b6e534bd7eb50a0b781a636f03118377c4df0c4b
3c7bc5d2c0fe743fe6df9d7c35328925e28374fa
refs/heads/master
2023-03-22T19:58:01.055255
2023-03-13T06:41:14
2023-03-13T06:41:14
124,205,311
63
20
MIT
2022-12-17T07:49:52
2018-03-07T08:38:08
Vue
UTF-8
Python
false
false
3,379
py
import datetime from sqlalchemy import ForeignKey, String, func, Table, Column, Integer, Boolean from sqlalchemy.orm import Mapped, mapped_column, relationship from werkzeug.security import generate_password_hash, check_password_hash from ext import db class Base(db.Model): __abstract__ = True id: Mapped[in...
[ "hjlarry@163.com" ]
hjlarry@163.com
5cf7af548b9f88b3465760fcac926980b50d1c12
1610e03bc2b9b8419e11824079de3c8636f3a039
/0x0B-python-input_output/8-load_from_json_file.py
02dba92f46d50124bb3f9e0b918fe51b9a3461e0
[]
no_license
Andresmelek/holbertonschool-higher_level_programming
12afc1d94b1cd8dcdcfbeb1f9dc819999506afb8
a1969506f346b808450e33f91d37790732ee7c57
refs/heads/master
2020-09-28T23:40:49.866556
2020-05-14T17:52:53
2020-05-14T17:52:53
226,893,592
0
1
null
null
null
null
UTF-8
Python
false
false
220
py
#!/usr/bin/python3 import json """ function that creates an Object from a “JSON file”: """ def load_from_json_file(filename): with open(filename, 'r', encoding='UTF8') as file: return (json.load(file))
[ "candres.isaza@gmail.com" ]
candres.isaza@gmail.com
d5189d57d627cabcb3f3dc9163ef4757a68b093f
c7e028d71b5dd72eb18b72c6733e7e98a969ade6
/src/algoritmia/semirings/viterbi.py
807d0ab416c59c42bf39ce3e221a457f4e1f7e26
[ "MIT" ]
permissive
antoniosarosi/algoritmia
da075a7ac29cc09cbb31e46b82ae0b0ea8ee992f
22b7d61e34f54a3dee03bf9e3de7bb4dd7daa31b
refs/heads/master
2023-01-24T06:09:37.616107
2020-11-19T16:34:09
2020-11-19T16:34:09
314,302,653
8
1
null
null
null
null
UTF-8
Python
false
false
361
py
from algoritmia.semirings.interfaces import IIdempotentSemiRing class _ViterbiSemiRing(IIdempotentSemiRing):#[class zero = property(lambda self: 0.0) one = property(lambda self: 1.0) def plus(self, left, right): return max(left, right) def times(self, left, right): return left * right Vite...
[ "amarzal@localhost" ]
amarzal@localhost
46e89189a9d68aaad7c1a3794a0a8eac5bfc5842
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03160/s482722634.py
98275351303d48da2225abec3822d70ce0e9bbc5
[]
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
263
py
n=int(input()) H=list(map(int,input().split())) INF=float('inf') dp=[0]*(n+1) dp[0]=INF dp[1]=0 for i in range(2,n+1): if i-3<0: dp[i]=dp[i-1]+abs(H[i-1]-H[i-2]) else: dp[i]=min(dp[i-1]+abs(H[i-1]-H[i-2]),dp[i-2]+abs(H[i-1]-H[i-3])) print(dp[n])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
57c28b899a05935f45f99b3018eb7ad1a8ca502c
eece8cbe3641df4ba7e8934d3fc0ba8a481dd5c9
/LesFuncties/Oefeningen.py
6d8f9be5ae83aa74d8332dd571f7be41ab30064b
[]
no_license
svspeybr/lessons
d66b676719f54da9092484dbe0f747774f6bd474
8d1721ced44f42c7a2aad7e7c6c7be73f6dd1a74
refs/heads/master
2023-07-09T14:48:06.844516
2021-08-24T14:53:15
2021-08-24T14:53:15
399,497,687
0
0
null
null
null
null
UTF-8
Python
false
false
1,985
py
# module voor het getal pi te verkrijgen (en functies als sin(), cos()...) import math def cilinderVol(r, h): return math.pi * (r ** 2) * h def cilinderOpp(r, h): mantelOpp = 2 * math.pi * r * h grondvlakOpp = math.pi * (r ** 2) return mantelOpp + 2 * grondvlakOpp # abs def telWoorden(string): s...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
f7b0d7bb1a961bd7014de1671af5c6a0a4af64f3
63768dc92cde5515a96d774a32facb461a3bf6e9
/jacket/tests/compute/functional/api_sample_tests/test_images.py
1a7cf9be370a7ee722c67f76bb87c594742c8495
[ "Apache-2.0" ]
permissive
ljZM33nd/jacket
6fe9156f6f5789e5c24425afa7ce9237c302673d
d7ad3147fcb43131098c2a5210847634ff5fb325
refs/heads/master
2023-04-16T11:02:01.153751
2016-11-15T02:48:12
2016-11-15T02:48:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,593
py
# Copyright 2012 Nebula, Inc. # Copyright 2013 IBM Corp. # # 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...
[ "nkapotoxin@gmail.com" ]
nkapotoxin@gmail.com
cbd9a95479388a5a16208405ec8eceb86ea7fc38
a7b175357e1ed29dc8332a950e320e64f5db6703
/venv/Lib/site-packages/tqdm/_tqdm_gui.py
ad46d8bdd4e059cb6956e5b4929411b15673c6be
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
saleguas/deskOrg
f65b8603464dbb0e17363ca8a724c12d45da8116
c21d9abf56e1756fa8073ccc3547ec9a85d83e2a
refs/heads/master
2022-12-13T18:06:33.029636
2020-04-05T20:19:56
2020-04-05T20:19:56
164,255,371
3
1
MIT
2022-12-08T01:42:51
2019-01-05T22:15:27
Python
UTF-8
Python
false
false
13,205
py
""" GUI progressbar decorator for iterators. Includes a default (x)range iterator printing to stderr. Usage: >>> from tqdm_gui import tgrange[, tqdm_gui] >>> for i in tgrange(10): #same as: for i in tqdm_gui(xrange(10)) ... ... """ # future division is important to divide integers and get as # a result preci...
[ "salvadoraleguas@gmail.com" ]
salvadoraleguas@gmail.com
90996e68c77d9bb89ddf48c9ae6e5286f8827279
8f4dac64e98c292f2a7a1ed8aade65f350d86f64
/builder/frameworks/arduino/stm32duino.py
33347dc5e63603527a3de9f54f6a1db66a4c2023
[ "Apache-2.0" ]
permissive
victorpv/platform-ststm32
8c0ce44c315b0dafaac027965e49861cf183c918
787ca07adaddb9243241d8af2b19ad54c99e5e8b
refs/heads/develop
2022-01-11T23:36:47.928197
2017-12-17T19:38:50
2017-12-17T19:38:50
114,563,222
0
0
Apache-2.0
2019-05-23T02:27:18
2017-12-17T19:37:08
Python
UTF-8
Python
false
false
4,151
py
# Copyright 2014-present PlatformIO <contact@platformio.org> # # 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 applicabl...
[ "me@ikravets.com" ]
me@ikravets.com
3af2feef4d33f6de480341681b119aa745d234e2
148125096da896fd93292d2cd408265d159fec28
/qa/rpc-tests/uahf.py
e0ffe97afb5a8ba279e4132252e4c914552dcafd
[ "MIT" ]
permissive
lycion/lkcoinse
7cfbcbdfc1e98f20d9dfc497ea65fd75ca6de25d
9cf9ed5730217566b44466c22dc255f0134ad1bb
refs/heads/master
2020-03-30T03:24:44.245148
2018-09-28T04:55:30
2018-09-28T04:55:30
150,548,883
0
0
null
null
null
null
UTF-8
Python
false
false
25,380
py
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Lkcoinse Unlimited developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import test_framework.loginit import time import shutil import random from binascii import hexlify f...
[ "lycion@gmail.com" ]
lycion@gmail.com
3933cabb8e3a1ab02ed42d697f2ce20a33c6af2e
a6d48cfa5e60ff635e7a6e87c49c5626b5cd9cc6
/official/nlp/tools/export_tfhub_lib_test.py
d2fade8e9580bb9c7df80de21a523fae38fab0d8
[ "Apache-2.0" ]
permissive
jyshin0926/models
4b0c107ca4170992e8a26370414a950413a59904
02574bc3dfbbf913c13937865e6609f4a0be3dc9
refs/heads/master
2023-03-28T09:12:50.138751
2021-03-23T00:53:09
2021-03-23T00:53:09
350,530,029
2
0
Apache-2.0
2021-03-23T00:27:57
2021-03-23T00:27:57
null
UTF-8
Python
false
false
45,010
py
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
4536ff80231d77cce9ab9732cfde2a2dc8c2abfc
56d6257e932e1397ab03b1e7ccc6231378665b04
/pushbase/session_recording_component.py
380008c8b3cd6dda1dd974a35e3c88454a3eedd9
[]
no_license
gluon/AbletonLive10.1_MIDIRemoteScripts
e6c8dc4956cff9630aaa36f3667994387ad1d0cf
2468b51eba7e5082b06f9e381b3e72027c5f272c
refs/heads/master
2023-01-10T18:37:46.504180
2022-12-23T09:21:48
2022-12-23T09:21:48
213,423,555
205
59
null
2021-02-12T16:15:01
2019-10-07T15:44:52
Python
UTF-8
Python
false
false
8,369
py
#Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/pushbase/session_recording_component.py from __future__ import absolute_import, print_function, unicode_literals from itertools import ifilter import Live from ableton.v2.base import listens, liveobj_...
[ "julien@julienbayle.net" ]
julien@julienbayle.net
624c1c42e4224cbdd88caac898a041736a134cd7
382df78024f588acea08039a0b0a9e24f297b6a3
/python/sklearn/official/classification/plot_classification.py
9756f09bc95b0a6fa179da9c360da2a89ac354bf
[]
no_license
id774/sandbox
c365e013654790bfa3cda137b0a64d009866d19b
aef67399893988628e0a18d53e71e2038992b158
refs/heads/master
2023-08-03T05:04:20.111543
2023-07-31T14:01:55
2023-07-31T14:01:55
863,038
4
1
null
2020-03-05T06:18:03
2010-08-26T01:05:11
TeX
UTF-8
Python
false
false
1,827
py
""" ================================ Nearest Neighbors Classification ================================ Sample usage of Nearest Neighbors classification. It will plot the decision boundaries for each class. """ print(__doc__) import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColorm...
[ "idnanashi@gmail.com" ]
idnanashi@gmail.com
9e6856d90f514444d8bf6223f75175a155729223
bf02905eba909dd6ae878482895acf8363018dd3
/observers/simpleDrawAndObserver.py
2b217e8f034e7d384f16933d526a4da1537e13a4
[ "MIT" ]
permissive
typemytype/RoboFontExamples
0bf5e74a3a5664bbdbbc6064702ce4d4b98af8d5
cc5668de3d27ce996cff5eadb32d0b905c2aff65
refs/heads/master
2023-09-04T03:36:33.047077
2021-07-08T09:51:39
2021-07-08T09:51:39
3,391,070
13
3
null
2015-01-02T13:45:02
2012-02-08T20:36:27
Python
UTF-8
Python
false
false
327
py
from mojo.drawingTools import * from mojo.events import addObserver class DrawTest: def __init__(self): ## add an observer for the draw event addObserver(self, "drawSomething", "draw") def drawSomething(self, info): ## draw something the glyph view rect(100, 100, 100, 100) Dra...
[ "frederik@typemytype.com" ]
frederik@typemytype.com
3784ba0ec67e669069776950827e99ce9d6c87bb
28d5174b51d43ade5e57dc6498473e8029356b1a
/src/openfermion/transforms/_bravyi_kitaev_test.py
7659ccf8f8447ae2bdf3b78d1a890656cbbad49e
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
Strilanc/OpenFermion
2b350ae7ea464460e1f422a59c8d7033dc5774ef
3a0a57b8b545acd2a2ff6b61e88f7c8a8a4437c8
refs/heads/master
2021-01-25T13:59:21.177659
2018-03-02T15:47:22
2018-03-02T15:47:22
123,639,421
1
0
null
2018-03-02T22:55:29
2018-03-02T22:55:28
null
UTF-8
Python
false
false
7,735
py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distribu...
[ "ryanbabbush@gmail.com" ]
ryanbabbush@gmail.com
bebaf5a8dfea5e45a19b8f08f2797938f6da973b
850d778687e3692ab2a38d4d2227391d92c21e6b
/atcoder.jp/abc159/abc159_a/Main.py
8d3091722e5b0345e8b46b6de03d6e03b03e9f8c
[]
no_license
Valkyrja3607/AtCoder
77e2e5e66c0e8e12bb902c35f679119c6576fad7
9218a50b1eb83e4498845d15d9dda41fab90ed73
refs/heads/master
2023-07-15T20:38:52.911301
2018-05-30T17:56:22
2018-05-30T17:56:22
294,980,006
0
0
null
null
null
null
UTF-8
Python
false
false
58
py
a,b=map(int,input().split()) print(a*(a-1)//2+b*(b-1)//2)
[ "purinjolly@gmail.com" ]
purinjolly@gmail.com
8c84367c09298b37b965a4c7acedaadceb72ecda
294b330355b5eae17b44d6ee51c6f6ef287cf2a8
/dask_gdf/groupby.py
ad384ca714af9179df4a6680ca34b44c872f8215
[ "Apache-2.0" ]
permissive
jrhemstad/dask_gdf
91d687c20cb02f53667fb8feecbcb1be58f2a4dc
c49933d72ce39ca720662b5d5124072e63087a62
refs/heads/master
2020-03-28T12:45:24.882134
2018-07-30T21:25:57
2018-07-30T21:25:57
148,331,266
0
0
Apache-2.0
2018-09-11T14:34:18
2018-09-11T14:34:18
null
UTF-8
Python
false
false
5,887
py
import numpy as np from dask.delayed import delayed import pygdf from .core import from_delayed class Groupby(object): """The object returned by ``df.groupby()``. """ def __init__(self, df, by): self._df = df self._by = tuple([by]) if isinstance(by, str) else tuple(by) self._grou...
[ "michael.lam.sk@gmail.com" ]
michael.lam.sk@gmail.com
cfed5fbcc7bba789f18151d832f8dfd09948ea9a
e89309b66ac7950508aba78247d0776435b7e0f2
/py/services/deeplinks/deeplinks/routers/probe.py
9f20482645539aeac5ebb8f72a81ff7fcc2cb974
[]
no_license
adalekin/otusdemo
2bdcab1191d4985b0da0c5d15f0a2d96149cbc65
60b4dbb664c3fe7c2068b9c8691ce99b7c0d1780
refs/heads/master
2023-08-05T08:38:17.359421
2021-09-15T16:53:51
2021-09-15T16:53:51
406,182,186
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
from fastapi import APIRouter router = APIRouter() @router.get("/liveness/", tags=["probe"]) async def liveness(): return {}
[ "adalekin@gmail.com" ]
adalekin@gmail.com
87615aafa707610b7095f597f9ce3d4f3c8f4a5b
cfc386fdc545f834722f24af85df0d87c77ad9f8
/set_computationparameters.py
4f081694648dd87478760725d2cd3319a48a306f
[ "MIT" ]
permissive
tgquintela/FirmsLocations
5f694c531e0d195d0b0177c0c1d13c1c734ca1d0
476680cbc3eb1308811633d24810049e215101a0
refs/heads/master
2021-06-10T01:50:50.977200
2016-12-11T11:44:36
2016-12-11T11:44:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,475
py
""" set computation parameters -------------------------- Computation parameters which depends now in the path of files. """ import numpy as np from sklearn.ensemble import RandomForestRegressor from sklearn.metrics import r2_score from sklearn.cross_validation import KFold from pySpatialTools.Retrieve import KRet...
[ "tgq.spm@gmail.com" ]
tgq.spm@gmail.com
87d2a54a73979bf3e891f1765c10fa896c8de1f5
7ae0ffa2168cf6ac22aca623f6d92ff84bf82a9e
/python/p096.py
2b533b835ed1ab5af7320c47c5ec41f5ac770732
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
nttan/Project-Euler-solutions
a4e53783ae5da36cb45ea33bd2f33aed277db627
5e7d16559bd9ad072448a35f8edac576081056f6
refs/heads/master
2021-01-18T13:40:53.315063
2016-01-06T04:49:16
2016-01-06T04:49:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,991
py
# # Solution to Project Euler problem 96 # by Project Nayuki # # http://www.nayuki.io/page/project-euler-solutions # https://github.com/nayuki/Project-Euler-solutions # def compute(): def extract(sudoku): # For example: extract([3, 9, 4, 1, ...]) = 394 return int("".join(map(str, sudoku[ : 3]))) ans = sum(e...
[ "nayuki@eigenstate.org" ]
nayuki@eigenstate.org
514bd7f688e7e54450edb783fa6a6e3743ecf33d
7358653d0c2be6c53456980d7ce2db46ec14e556
/shop/middleware.py
464304a07ce0371c443c9c40077a8398b884ded3
[ "MIT" ]
permissive
dokenzy/rakmai
81fec1b87e2274d94932691edff8b709ae82caa6
f5cd4ff9f946cc61170832c8e85c7ce246a58b8c
refs/heads/master
2021-07-18T16:22:30.810066
2020-06-06T08:24:44
2020-06-06T08:24:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,847
py
import logging from django.conf import settings from ipware.ip import get_ip from .models import NaverAdvertisementLog class AdvertisementLogMiddleware: logger = logging.getLogger(__name__) def __init__(self, get_response): self.get_response = get_response # One-time configuration and initi...
[ "pincoins@gmail.com" ]
pincoins@gmail.com
fb5e04d101ffbd423a66104ce54f8b223f5d2085
de4d88db6ea32d20020c169f734edd4b95c3092d
/aiotdlib/api/functions/search_chats_on_server.py
9e19a58bacce548541dbf9e8f824dd77b6ab0f45
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
thiagosm/aiotdlib
5cc790a5645f7e4cc61bbd0791433ed182d69062
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
refs/heads/main
2023-08-15T05:16:28.436803
2021-10-18T20:41:27
2021-10-18T20:41:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
[ "pylakey@protonmail.com" ]
pylakey@protonmail.com
7eca2526cb34dd34507f0c2704a5154c3edaffff
8a7a5fc0142d5be907cf873bc96a300eb3d9d646
/prescription/models.py
7eb1face6b48ba4ab40d85e5e34a2bdfdfd895ee
[]
no_license
dev1911/life_plus_plus
b73e8a1407d53968dd94e89b8a99e8f38c149faf
c6cd571c761dba925797eceff7cb3fcfa5d24cb3
refs/heads/master
2020-06-27T14:02:25.635431
2020-06-19T18:57:30
2020-06-19T18:57:30
199,971,702
1
7
null
2020-06-04T12:41:56
2019-08-01T03:44:07
Python
UTF-8
Python
false
false
982
py
from django.db import models from users.models import (User) class Prescriptions(models.Model): record = models.CharField(max_length=100)#check out about the unique field image = models.ImageField(upload_to='documents/',blank=False) username = models.ForeignKey(User,default=None,on_delete=models.PROTECT) text = mod...
[ "shlokashah0603@gmail.com" ]
shlokashah0603@gmail.com