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
9818f0e63f9b0c45c9dcb71c59a28f89b85268eb
65d693c3c4e12c1930182b82e894bec6b25541f8
/tasks.py
978a3b99cc2574ecef007e17c57a4e009716e024
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
dwillis/openFEC
3c53b82e68cbb0948a19209a91be8df5a7277b16
dae84b0e526eac4a917e80697a7999956f9c96cb
refs/heads/develop
2021-01-17T22:15:06.587053
2015-08-19T20:52:42
2015-08-19T20:52:42
41,208,529
2
0
null
2015-08-22T13:36:24
2015-08-22T13:36:23
null
UTF-8
Python
false
false
5,974
py
import git from invoke import run from invoke import task DEFAULT_FRACTION = 0.5 FULL_TABLES = [ 'dimdates', 'dimparty', 'dimyears', 'dimoffice', 'dimreporttype', ] EXCLUDE_TABLES = [ '*_mv', '*_tmp', '*_old', 'sched_b2', 'sched_e2', 'pacronyms', 'ofec_*', ] # Include r...
[ "jm.carp@gmail.com" ]
jm.carp@gmail.com
d0b9a61ae8804745c3cbebac640bc73ed5218fae
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5706278382862336_0/Python/desseim/elf.py
f293e2ea3e500e0d67fe7c0919a02450f44ff4aa
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
918
py
FILE_NAME_PREFIX = 'A-small-attempt0' def min_gen(num, den, min_val): if (den%2) != 0: return -1 if num == den: return min_val elif (num*2) == den: return min_val+1 elif (num*2) > den: return min(min_val+1, min_gen(num-(den/2), den/2, min_val+1)) else: #num < den/...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
dfe41ff94722ff8ba0f797e0e979e84e86a8a643
a781bdd2dc4b6ee6aa46d65c8bdbd55e75e4e864
/src/Pocheck/preprocessing.py
aa4ee575a50b24f57cb69feca7d7823d95846b0a
[]
no_license
asaf0813/Pocheck-V2-Beta
f3ef9b89631781f3581f27d9ae32e9d2e9cd8815
169d145f346d7d045afa4d4d98009fb62122a24d
refs/heads/master
2023-02-06T12:03:41.541169
2019-05-28T07:53:20
2019-05-28T07:53:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,141
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.colors import imageio import scipy, scipy.misc, scipy.signal import cv2 import sys def build_is_hist(img): hei = img.shape[0] wid = img.shape[1] ch = img.shape[2] Img = np.zeros((hei + 4, wid + 4, ch)) for i in rang...
[ "b8goal@naver.com" ]
b8goal@naver.com
ebbd244ad9b6856d51545ac99c5347c087aed493
ab4b1fab2bec82be1e13f4b7501a046eec4e60b6
/main2/filter_v6.py
ace42c1d3988273289132baf93111371cdb37e80
[ "Apache-2.0" ]
permissive
BioQwer/track2
fc1ead6ce4ffbc49b33b709c695176b925cf2c84
d7d5aa559459963e850f47f9a10357561be0a7b1
refs/heads/master
2021-01-13T14:51:11.202738
2017-01-22T16:45:28
2017-01-22T16:45:28
76,540,565
0
0
null
2016-12-15T08:38:52
2016-12-15T08:38:52
null
UTF-8
Python
false
false
4,013
py
#!/usr/bin/python import re, sys from chinese_name_list_v4 import * def author_name_filter(name): # () name = re.sub(r'\(.*\)', r'', name) # - name = re.sub(r'-', r' ', name) # @ name = re.sub(r'@.*$', r'', name) # ? name = re.sub(r'\?', r'', name) # ' name = re.sub(r'\'', r'', name) # deal with latin character...
[ "you@example.com" ]
you@example.com
fcbe0d52c6584cd52c53c8757eec91c06f56512f
9bd76957feae4b01f961a968c6d89eda0c704a5d
/accounts/serializers.py
448053cb2bf75dc0e274b2f8e5c0b402c3345ba3
[]
no_license
deepakkumar96/flirtjar
4312e64f6d87d9810d96724e0b766521a3a7d8bf
349e65b1b5f994b1efa2829600fbec150c5cf961
refs/heads/master
2020-05-02T22:09:38.316047
2019-04-01T03:36:33
2019-04-01T03:36:33
178,243,629
0
0
null
null
null
null
UTF-8
Python
false
false
2,346
py
from rest_framework import serializers from rest_framework_gis.serializers import GeoModelSerializer from .models import Account class UserSerializer(GeoModelSerializer): email = serializers.EmailField(required=False) # oauth_id = serializers.CharField(required=False) rating = serializers.ReadOnlyField(s...
[ "deepakkumar21120.dk@gmail.com" ]
deepakkumar21120.dk@gmail.com
2830449f7eecd83c8f50057c328895583b0190b5
96f32051b1fcd322534fdf1f590704b7f48e08e3
/otcore/occurrence/migrations/0003_auto_20160504_0937.py
f74cf7e04b78d92e4029b5aebb44fe312293709d
[ "Apache-2.0" ]
permissive
NYULibraries/dlts-enm-tct-backend
0f1ebad7d7334d41b4f24b2243639314c6ed1353
07455a660fb2cb8bc91a54f7f12d150923678157
refs/heads/master
2020-05-18T14:36:31.041830
2017-09-30T17:51:16
2017-09-30T17:51:16
84,251,389
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-04 13:37 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('occurrence', '0002_auto_20160415_1549'), ] operatio...
[ "go.for.dover@gmail.com" ]
go.for.dover@gmail.com
c5404bc24558757683a2f5c68c63f162f185088f
ba9e1fc7797ebc55a61a40ee66c51b467f353ff1
/kgsh_project/kgsh/builtins/cd.py
6e1592c0948a5433262f963d8392703443e3e35d
[]
no_license
sanpianye/the-little-python
77c938164d43cbb120063a6d17d0705cc9e92e93
c04898bf0812afb53b71567699ee523d1bc56a29
refs/heads/master
2021-06-14T01:55:31.452777
2017-03-09T13:31:59
2017-03-09T13:31:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
import os # from ..constants import SHELL_STATUS_RUN, SHELL_STATUS_STOP from kgsh.constants import SHELL_STATUS_RUN, SHELL_STATUS_STOP def cd(args): os.chdir(args[0]) return SHELL_STATUS_RUN
[ "enginechen07@gmail.com" ]
enginechen07@gmail.com
0b30d78e97b2b18669dfe0c499f21f30a501d308
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/754dfc54c890f1785bbc24a15c478ed8f2cf93a6-<set_host_configuration_facts>-fix.py
a6fd2d306f593cf6fef158b244fb0d367cbaa0a2
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,462
py
def set_host_configuration_facts(self): changed_list = [] message = '' for host in self.hosts: option_manager = host.configManager.advancedOption host_facts = { } for s_option in option_manager.supportedOption: host_facts[s_option.key] = dict(option...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
3523325b987771c5c9d053fb3913505083d51c1d
335fd1b91236852ac93ced562a73f2fe157d4afb
/ch7_sequential/q1_in.py
14c9c76f011c4796e86013fd3057e04972cd108b
[]
no_license
plzprayme/study-python-algorithm-interview
d446805710d2bfec6b440ab87667b987b2ecd70a
1829450cb4c4ac240c2587b6efe4e507a40f9a03
refs/heads/master
2022-12-23T12:43:53.031925
2020-10-07T06:26:31
2020-10-07T06:26:31
298,566,865
0
0
null
null
null
null
UTF-8
Python
false
false
489
py
test_cases = [ dict(nums=[2,7,11,15], target=9), ] def main(test_case): nums = test_case["nums"] target = test_case["target"] for idx, item in enumerate(nums): elem = target - item if elem in nums[idx+1:]: return idx, nums[idx+1:].index(elem) + idx + 1 return False ...
[ "dbfpzk142@gmail.com" ]
dbfpzk142@gmail.com
225d352f55cd2c5524fcb67ea1208684c386f53d
184f13269249b08e5b62444ece10af8a3a35c9a5
/extending_streamlit_usage/008_simple_app_spacy_example/simple_app_spacy_example_7.py
cca1b0a0d6e644f60dcbc3f23fb1fffce71c196a
[ "MIT" ]
permissive
bflaven/BlogArticlesExamples
3decf588098897b104d429054b8e44efec796557
aca40bb33f1ad4e140ddd67d6bb39bdd029ef266
refs/heads/master
2023-09-04T16:57:57.498673
2023-09-01T13:14:12
2023-09-01T13:14:12
42,390,873
9
4
MIT
2023-03-02T22:39:06
2015-09-13T09:48:34
HTML
UTF-8
Python
false
false
1,488
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ [path] cd /Users/brunoflaven/Documents/01_work/blog_articles/extending_streamlit_usage/simple_app_spacy_example/ [file] streamlit run simple_app_spacy_example_7.py # more on infos and apps on https://streamlit.io/ https://streamlit.io/gallery https://doc...
[ "bflaven@gmail.com" ]
bflaven@gmail.com
6a4e665e241d7c0ce9338b76d6a573d22d2ca7e1
0eeed46e9b836bfe2fd2075e657af473da270514
/data/scripts/quests/35_FindGlitteringJewelry/__init__.py
c8624e8127bc577b38ada051d953b17e4e3def5c
[]
no_license
RafaelRauber/DataPackL2
4e329c30bfc19f44e8832a86584f2c9914a28077
7bace9dad9ac5b0151d26e6e49d14c42d75eb642
refs/heads/master
2021-05-19T00:22:49.340415
2020-04-10T18:36:27
2020-04-10T18:36:27
251,491,764
0
0
null
null
null
null
UTF-8
Python
false
false
3,728
py
# Made by disKret import sys from com.guardian.util.random import Rnd from com.guardian.gameserver.model.quest import State from com.guardian.gameserver.model.quest import QuestState from com.guardian.gameserver.model.quest.jython import QuestJython as JQuest qn = "35_FindGlitteringJewelry" ROUGH_JEWEL = 7162 ORIHARU...
[ "rrafaelfr2@gmail.com" ]
rrafaelfr2@gmail.com
5055d0f29bfe1e08da42003181a412ac5d6504bb
4678b522b0fbe63a339a616bfbd82342d9ff889f
/lib/exabgp/bgp/message/open/routerid.py
8ae5c99670b6af8170e58efe4c88987dbc6affb4
[]
no_license
nicolas-strina/exabgp
be069deef21b25a100b4041c0866fb8ecce8bcf0
0a9322ae4f0cc223eb52e4f87d8d0b6930bba1c6
refs/heads/master
2021-01-12T20:06:28.533273
2015-01-02T09:39:03
2015-01-02T09:39:03
25,227,066
1
0
null
null
null
null
UTF-8
Python
false
false
376
py
# encoding: utf-8 """ routerid.py Created by Thomas Mangin on 2012-07-17. Copyright (c) 2009-2015 Exa Networks. All rights reserved. """ from exabgp.protocol.ip import IPv4 # ===================================================================== RouterID # class RouterID (IPv4): @classmethod def unpack (cls,data):...
[ "thomas.mangin@exa-networks.co.uk" ]
thomas.mangin@exa-networks.co.uk
21915dd01bd195f2de78252eb36c86e9b95abccd
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_135/ch45_2020_06_21_20_58_38_452719.py
6e224ccf0891d1ece9774b7787a4a4e9ac1b9740
[]
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
215
py
int numero lista = [] lista_invertida = [] while numero > 0: numero = int(input()) lista.append(numero) while len(lista) > 0: lista_invertida.append(lista[-1]) del lista[-1] print(lista_invertida)
[ "you@example.com" ]
you@example.com
04b490cd98dd1fd24f4d08754a055a33962f6632
4de354bbbef93055e89bddf431f31659b1231628
/pkg/tests/upgrade/test_salt_upgrade.py
c5c3771e71ed08b70d2fa0c92330585a75e63c91
[ "Apache-2.0", "MIT", "BSD-2-Clause" ]
permissive
Ch3LL/salt
2faa555f01855f450df032c2be7277b3f3d4235e
64a2ce161041690b96b02978a315ace62b1ff082
refs/heads/pkg-tests
2023-08-21T17:22:32.799887
2023-02-01T20:06:47
2023-02-02T19:21:17
43,173,383
1
0
Apache-2.0
2023-01-25T20:35:34
2015-09-25T20:14:42
Python
UTF-8
Python
false
false
2,824
py
import pytest @pytest.mark.skip_on_windows( reason="Salt Master scripts not included in old windows packages" ) def test_salt_upgrade(salt_call_cli, salt_minion, install_salt): """ Test upgrade of Salt """ if not install_salt.upgrade: pytest.skip("Not testing an upgrade, do not run") #...
[ "mwilhite@vmware.com" ]
mwilhite@vmware.com
c6ec95d16b2f08bd33f8b1a11b6a3b123a6b0899
7cec0bc03100c85ae0dc4f636b92ada46de06802
/cdad/cdadmap/management/commands/import_list_of_partners.py
ef4083393a5e58fc0d8f04fa8d2099144283e0fb
[ "MIT" ]
permissive
NiJeLorg/CDADMap
200040b45510f7965fd1d772f7e9627561311e70
1f03dccf57951748155a0094a5aec3253183c412
refs/heads/master
2021-01-17T10:22:06.865934
2018-11-01T17:12:22
2018-11-01T17:12:22
27,398,037
0
0
null
null
null
null
UTF-8
Python
false
false
860
py
import sys,os from django.core.management.base import BaseCommand, CommandError from cdadmap.models import * import csv """ Loads list for CDAD partners from CSV """ class Command(BaseCommand): def load_partners(self): __location__ = os.path.realpath(os.path.join(os.getcwd(), os.path.dirname(__file...
[ "jd@nijel.org" ]
jd@nijel.org
c42682e4584fffeabb4167626f0c440817fb1f01
1faf574fc2592e8c65043021762ed6eab441feb5
/백준/백준_1260번.py
6562c1178ff2f6d18a0d37a8c0e1ef871d38589b
[]
no_license
YooGunWook/coding_test
4e9c8851a025271f79408fd7a0f097f07351b1e7
2806ecf5db3714d1a4b5dbfaa2b584bb8b6166a0
refs/heads/master
2022-10-15T03:37:46.129384
2022-09-26T13:45:53
2022-09-26T13:45:53
240,265,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,335
py
import collections n, m, v = map(int, input().split(" ")) graph = collections.defaultdict(list) for _ in range(m): g, e = map(int, input().split(" ")) graph[g].append(e) graph[e].append(g) graph[g].sort() graph[e].sort() def recursive_dfs(v, discovered=[]): discovered.append(v) for w in gr...
[ "gunwook0307@yonsei.ac.kr" ]
gunwook0307@yonsei.ac.kr
008868db7db723331751701644e8dc7f707b649a
cc602782a8bdf1c38b1ac21a9c8efefef4d07f6d
/pacientes/migrations/0011_consulta_motivo_de_la_consulta.py
cf6ac3d10696c15babe1aed2f6bfc8b21c6f6b85
[ "BSD-3-Clause" ]
permissive
cluster311/ggg
aa5fb487e40e8e1a54210d499e1d11d54299405c
262173c66fe40ada30083d439a79f16f841f5772
refs/heads/develop
2022-04-28T20:58:17.696122
2020-10-16T01:09:49
2020-10-16T01:09:49
205,560,308
7
4
BSD-3-Clause
2022-04-22T22:11:03
2019-08-31T15:13:56
Python
UTF-8
Python
false
false
411
py
# Generated by Django 2.2.4 on 2019-11-16 19:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pacientes', '0010_auto_20191116_1541'), ] operations = [ migrations.AddField( model_name='consulta', name='motivo_de...
[ "andres@data99.com.ar" ]
andres@data99.com.ar
331e237a879f5199c5e6d3cc7a55d399faf5b506
baaeb8c1d335e258fd49b5ef024ac39790fd660f
/backend/schemas/user_document_tag.py
958cad5d324af99ed9573c631e1537d0d4a7e7ab
[]
no_license
ReactARDev/React_Redux_Python
f0b80a9d2a603b38f8e144966bc899c5aa3690e6
afdb4a55f82fdff86686ad955448a4168d05c739
refs/heads/master
2021-10-10T19:28:05.142652
2019-01-15T21:24:06
2019-01-15T21:24:06
159,198,417
0
0
null
null
null
null
UTF-8
Python
false
false
2,015
py
from .base_users import BaseUsers from sqlalchemy import Column, BigInteger, Sequence, ForeignKey, Boolean, Text, Index from sqlalchemy.orm import relationship from coaster.sqlalchemy import TimestampMixin class UserDocumentTag(TimestampMixin, BaseUsers): __tablename__ = 'user_document_tags' id = Column...
[ "talentmobile9999@gmail.com" ]
talentmobile9999@gmail.com
532b2a5f4ebec5acd6aeca3b59e2cb44fa877311
3c27b86f0165ab24e6b04d505e8471e032594f0b
/pythonAnimations/pyOpenGLChess/engineDirectory/oglc-env/lib/python2.7/site-packages/OpenGL/GLES2/EXT/texture_compression_dxt1.py
90da85cc86e654f1a4538529524f03741d2fdb45
[ "LicenseRef-scancode-warranty-disclaimer", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LGPL-2.1-or-later", "GPL-3.0-only", "LGPL-2.0-or-later", "GPL-3.0-or-later", "MIT" ]
permissive
alexus37/AugmentedRealityChess
8b9ccdfffc8aee93a86a44b8ef53c034ec6a10d1
7f600ad153270feff12aa7aa86d7ed0a49ebc71c
refs/heads/master
2020-12-24T13:29:21.967833
2020-02-27T09:38:50
2020-02-27T09:38:50
31,264,034
1
1
MIT
2020-02-27T09:38:52
2015-02-24T14:36:34
Python
UTF-8
Python
false
false
827
py
'''OpenGL extension EXT.texture_compression_dxt1 This module customises the behaviour of the OpenGL.raw.GLES2.EXT.texture_compression_dxt1 to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/EXT/texture_compression_dxt1.txt ''' from...
[ "alexlelidis@gmx.de" ]
alexlelidis@gmx.de
3828aeb129a656eb50b0045ca664de29ab11e9bc
396f93d8e73c419ef82a94174815a2cecbb8334b
/.history/tester2_20200322173619.py
8e0ccf00df014e34d1d69e79aa08decc94f32ea4
[]
no_license
mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch
8c73d9448b916009c9431526864a4441fdeb682a
90b2dca920c85cddd7c1b3335344ac7b10a9b061
refs/heads/master
2021-03-26T21:16:42.561068
2020-04-17T21:44:26
2020-04-17T21:44:26
247,750,502
0
0
null
null
null
null
UTF-8
Python
false
false
2,363
py
import os import subprocess import re from datetime import datetime import time from statistics import mean numberOfTests = 5 tabuIteration = '1000' tabuDuration = '50' numberOfCities = '50' final_solution = [] list_coverage = [] local_minimum = [] print(f"\n\nTest for Tabu Search with this config: \n\tIterations...
[ "farzam.mirmoeini@gmail.com" ]
farzam.mirmoeini@gmail.com
86b5cac59c4dc4896ace5ea608119b44872ee843
5ee0a9030f6c23118d9e5383c54432d81ed33cec
/Algorithm/backtracking/permute4.py
301464fbe6bdf99c1c4bc3946e84628aebc1c759
[]
no_license
dmlimgo/TIL
49c4c29b29c77dd63762e2b78b082d26362b29b0
9f7439c20a2c8f893c8cb65efbacbc37d2202724
refs/heads/master
2023-01-08T08:43:16.408807
2020-01-28T14:54:03
2020-01-28T14:54:03
162,101,377
1
0
null
2023-01-04T17:44:28
2018-12-17T08:51:55
Python
UTF-8
Python
false
false
1,270
py
def solve(pos, res): global N # if pos == N: # print(res) print(pos, res) for i in range(1, N, 2): if not visit[i] and num[i] > res[-1] + 3: visit[i] = 1 solve(pos + 1, res+[num[i]]) visit[i] = 0 N = 10 num = list(range(N)) visit = [0] * N print(N, nu...
[ "dongmyeong.lim@gmail.com" ]
dongmyeong.lim@gmail.com
afda5d23c3a4667fdf0fe876ff3b56fce6515ba9
c6d852e5842cf6f74123445d20ff03876377ae26
/lemon/python22/lemon_06_190828_for_while_函数/优秀作业_0828/homework5.py
0f56734c34c09cc0589cceb84cd46678143b21dc
[]
no_license
songyongzhuang/PythonCode_office
0b3d35ca5d58bc305ae90fea8b1e8c7214619979
cfadd3132c2c7c518c784589e0dab6510a662a6c
refs/heads/master
2023-02-13T14:06:10.610935
2021-01-14T09:11:32
2021-01-14T09:11:32
327,183,429
0
0
null
null
null
null
UTF-8
Python
false
false
2,735
py
# 第一题、求三个整数中最大值 # 定义一个取最大值的函数 # 引入math库使用负无穷 import math def GetMaxNumber(): while True: temp_list = input("请输入三个整数,以空格分隔开:") number_list = temp_list.split() # 最大值赋值成负无穷 max_number = -math.inf if len(number_list) != 3: print("您输入整数个数不对") continue ...
[ "songyongzhuang9@163.com" ]
songyongzhuang9@163.com
467d7d4e2f10d5e31c3f9e64569a6071632456a3
7997a9581ac4badc53793e32bc85878b8e16094e
/shp2csv_all.py
81e25926f1b4f81e07857a718c9ad39b6b436dd4
[]
no_license
jasonfleming/pputils
78adb832c5860a37e1473a43a5b9a54ad4d5ce55
2b34e47e4c3331d5780019d248e3f37c71164665
refs/heads/master
2022-09-29T13:40:38.657005
2022-08-10T19:40:06
2022-08-10T19:40:06
79,500,881
1
0
null
2017-01-19T22:17:09
2017-01-19T22:17:09
null
UTF-8
Python
false
false
2,025
py
#!/usr/bin/env python3 # #+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+!+! # # # shp2csv_all.py # # ...
[ "pprodano@gmail.com" ]
pprodano@gmail.com
370db36e2a65663811dbd8984e62d118e9b8f8f7
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_recuperating.py
472085219dee000550d740a9a0e0ddad53b1fcdf
[ "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
240
py
#calss header class _RECUPERATING(): def __init__(self,): self.name = "RECUPERATING" self.definitions = recuperate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['recuperate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4190ab1d01e28db72d20239ee865728728a9a8c8
930c207e245c320b108e9699bbbb036260a36d6a
/BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Hot_Water_Differential_Pressure_Integral_Time.py
082381044b4da3f6d92655e2cd3cf78210b15cba
[]
no_license
InnovationSE/BRICK-Generated-By-OLGA
24d278f543471e1ce622f5f45d9e305790181fff
7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2
refs/heads/master
2021-07-01T14:13:11.302860
2017-09-21T12:44:17
2017-09-21T12:44:17
104,251,784
1
0
null
null
null
null
UTF-8
Python
false
false
454
py
from rdflib import Namespace, Graph, Literal, RDF, URIRef from rdfalchemy.rdfSubject import rdfSubject from rdfalchemy import rdfSingle, rdfMultiple, rdfList from brick.brickschema.org.schema._1_0_2.Brick.UndefinedMeasurement import UndefinedMeasurement class Hot_Water_Differential_Pressure_Integral_Time(UndefinedMe...
[ "Andre.Ponnouradjane@non.schneider-electric.com" ]
Andre.Ponnouradjane@non.schneider-electric.com
e0c5d52ee3fa703dd0160c3a4d04a305bb9b52ec
45e23d1db1c1ecd19b4f4055b60b994cf866f240
/源程序/14电子健康/hospital2/profile_test.py
4ab8f0f1819d12b699e5c62f1e8da0c16d88bcca
[]
no_license
hushaoqi/MIS_project
ff8d60ac5461e3be6d1c599378790baa059f43c0
d23aaf791809d912b15277dc057d84c8f2685f8e
refs/heads/master
2022-12-23T21:50:37.024694
2019-07-24T13:05:28
2019-07-24T13:05:28
150,825,940
0
1
null
2022-12-17T11:17:42
2018-09-29T04:53:06
Python
UTF-8
Python
false
false
5,622
py
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QWidget class profile_widget(QWidget): def __init__(self,parent=None): super().__init__(parent)#相当于下面那句 self.setupUI() def setupUI(self): #self=QtWidgets.QWidget(Form)#self不能变 self.setGeometry(QtCore.QRect(259...
[ "1941017133@qq.com" ]
1941017133@qq.com
533f53ab7a41dc706643586d3840595c70b2e493
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2795/60714/236506.py
fb2375dcc432e339a29cfa2477c0ee3aa6b7296c
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
322
py
input() num = [int(x) for x in input().split()] ans = set(num) if len(ans) is 1: print(max(ans)) elif len(ans) is 2: print(max(ans) - min(ans)) elif len(ans) is 3: a = max(ans) b = min(ans) if int((a + b) / 2) in ans: print(int(a - (a + b) / 2)) else: print(-1) else: print(-1...
[ "1069583789@qq.com" ]
1069583789@qq.com
56db4c53233fb017269c2de12548880487eb25ab
9210dad5d84af438b9450bb8a91ae13b30392060
/Notebooks/Combined_interactive_spectra.py
590a0fb442fdb3f1a487a33e5960329e8a4d4767
[ "MIT" ]
permissive
jason-neal/companion_simulations
0ccb4e043ab5bff7e779678f3984aed6bd304c77
036610a902cb11b4c408deb2c0d3be1bb377dee8
refs/heads/master
2023-07-22T17:39:41.340156
2022-04-24T09:24:50
2022-04-24T09:24:50
83,430,578
3
1
MIT
2023-07-06T21:23:12
2017-02-28T12:36:59
Jupyter Notebook
UTF-8
Python
false
false
3,973
py
# coding: utf-8 # # Interactive Spectra combination! # In[1]: from __future__ import print_function from ipywidgets import interact, interactive, fixed, interact_manual import ipywidgets as widgets import os from astropy.io import fits import matplotlib.pyplot as plt import numpy as np # In[2]: import simulato...
[ "jason.neal@astro.up.pt" ]
jason.neal@astro.up.pt
c00305a5d8b2a87bb809e6f45d8e2546a9979981
587b0ac23355ce4238d7a75d058fe53c2ed1a9c6
/notes4chap7/objects_and_values.py
c2944308224cf61d130f2d4d43f2d79f7772ba70
[]
no_license
CyborgVillager/Repetition-Structures
26c33d316e02c7a3cffaa2da1ed3107655b057f0
8482afdf0164a7c45be586c9b7c921559c14c57d
refs/heads/master
2020-08-03T00:53:51.321844
2019-09-30T03:44:38
2019-09-30T03:44:38
211,572,378
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
a = 'banna' b = 'banna' if a is b: print('True') else: print('False') a = [1,2,3,4,5,6] b = [1,2,3,4,5,6] if a is b: print('True') else: print('False') #they have same element, but are not idential #because not same object #a = [1,2,3,4,5,6] refers to a list of object who value is specific in a sequenc...
[ "almawijonathan@gmail.com" ]
almawijonathan@gmail.com
fd5f99a757b2b28b0e4e6862eb5a4d94080f131e
ff9d1c7890cf8e3a8080dd5b4548792f8440772e
/lino_xl/lib/courses/workflows.py
6502cd4420436a4513609a7c79fe498d2ef27dcc
[ "BSD-2-Clause" ]
permissive
TonisPiip/xl
24a7e91bf3fbab5d2b238fb79cc6fe2019505e85
ec517b9ec922e629db18645d7876bd029229b7ae
refs/heads/master
2021-06-10T09:17:29.122585
2017-01-31T10:17:50
2017-01-31T10:17:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,383
py
# -*- coding: UTF-8 -*- # Copyright 2012-2017 Luc Saffre # License: BSD (see file COPYING for details) from __future__ import unicode_literals """Importing this module will install default workflows for `lino_xl.lib.courses`. """ from django.utils.translation import ugettext_lazy as _ from lino.api import dd, rt...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
35c240799d8bb4b24ef4f7b558e13f840d0f57c0
6e8d58340f2be5f00d55e2629052c0bbc9dcf390
/eggs/PasteScript-1.7.3-py2.6.egg/paste/script/cherrypy_server.py
635d9756fd098eaf5d734c2c175c28ea0eca84bf
[ "CC-BY-2.5", "MIT" ]
permissive
JCVI-Cloud/galaxy-tools-prok
e57389750d33ac766e1658838cdb0aaf9a59c106
3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c
refs/heads/master
2021-05-02T06:23:05.414371
2014-03-21T18:12:43
2014-03-21T18:12:43
6,092,693
0
2
NOASSERTION
2020-07-25T20:38:17
2012-10-05T15:57:38
Python
UTF-8
Python
false
false
2,967
py
""" Entry point for CherryPy's WSGI server """ import paste.script.wsgiserver as wsgiserver def cpwsgi_server(app, global_conf=None, host='127.0.0.1', port=None, ssl_pem=None, protocol_version=None, numthreads=None, server_name=None, max=None, request_queue_size=None, ...
[ "root@ip-10-118-137-129.ec2.internal" ]
root@ip-10-118-137-129.ec2.internal
31980bde9de16586f96288f236032b99501dad6e
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/arc099/C/2732781.py
1d3b68701b2e8bf3322b24dd442e00bab6747673
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,044
py
N,M = map(int,input().split()) E = [[False]*N for _ in range(N)] for n in range(N): E[n][n] = True for _ in range(M): a,b = map(int,input().split()) a,b = a-1,b-1 E[a][b] = True E[b][a] = True unvisited = set(range(N)) color = [None]*N components = [] while unvisited: v0 = next(iter...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
2ae57e6bc6ea5bb7969c2325c9831c5043c51054
f13acd0d707ea9ab0d2f2f010717b35adcee142f
/ABC/abc001-abc050/abc015/a.py
d18444c3d8e3a68dffac50307c33f91c68243981
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
KATO-Hiro/AtCoder
126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7
bf43320bc1af606bfbd23c610b3432cddd1806b9
refs/heads/master
2023-08-18T20:06:42.876863
2023-08-17T23:45:21
2023-08-17T23:45:21
121,067,516
4
0
CC0-1.0
2023-09-14T21:59:38
2018-02-11T00:32:45
Python
UTF-8
Python
false
false
265
py
'''input ttttiiiimmmmeeee time ttttiiiimmmmeeee isuruu isleapyear isleapyear ''' # -*- coding: utf-8 -*- # AtCoder Beginner Contest if __name__ == '__main__': a = input() b = input() if len(a) > len(b): print(a) else: print(b)
[ "k.hiro1818@gmail.com" ]
k.hiro1818@gmail.com
52231bb2992a35a87d86eb127c54be37797b359c
2d24c495ba7318c639043095b6bdf4707be29f7e
/test/test_carrier_proposed_assignment_response.py
2ae69451f4d8059c96d4441e29a75b620afe77ed
[]
no_license
samsarahq/samsara-python
e032d72b041f45a142566d7d9756c28e6acb24bd
59704b2e2c8af94a069a512b0bc0db7494c8c10d
refs/heads/master
2021-12-11T08:21:57.218305
2021-11-29T19:13:47
2021-11-29T19:13:47
66,108,617
13
7
null
null
null
null
UTF-8
Python
false
false
3,102
py
# coding: utf-8 """ Samsara API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 2020-06-15 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import un...
[ "ci@samsara.com" ]
ci@samsara.com
db3ee223152fcfdd4ae4443e7276ea81c6ff31a8
55d806500ea02ca951cc0bb1972e02476c9c8db9
/cad/src/cad/cad_export/export.py
7ae817e26029a788cc29b703877797005c6ec3cb
[]
no_license
iorodeo/roscad
95ef4c964f765fad3b1d71e18794ccee2be673b6
f27d58ab92b349e20a6758bfeeb66c5e0e30d62f
refs/heads/master
2022-11-15T02:23:23.751832
2011-12-02T03:52:16
2011-12-02T03:52:16
273,789,696
0
0
null
null
null
null
UTF-8
Python
false
false
3,940
py
""" Copyright 2010 IO Rodeo Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software...
[ "peterpolidoro@gmail.com" ]
peterpolidoro@gmail.com
9dcf757a23ac77586cb0bbe496471debc7d87087
9dc665657115730bae2414e2860d43dce9ab6499
/com/qa/pythonprograms/SumOfElementsInAnArray.py
fe4b32ecc31227ba66bc03aee134932dbabbaae0
[]
no_license
parihar08/SeleniumPythonSession
627771b166b1c74f9178707fdcdb01c63b6d631d
820468ecf75b4dd740a66ec25e9b99b5cd3140cd
refs/heads/master
2022-12-08T12:38:58.252443
2020-09-03T13:59:36
2020-09-03T13:59:36
287,835,501
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
# Input: arr = [1,2,3] # Output: 1+2+3 =6 list = [1,2,3,4] print(sum(list)) print(sum(list,10)) print(sum(list)+10) print(sum(list,-5)) print(sum(list)-5)
[ "sparihar08@yahoo.com" ]
sparihar08@yahoo.com
7b5e04d744a7cf4d3e73f5687bc63f4847195108
e3bc0936873c3472b660cbd50a7ffd9ebf4344cb
/190207/Test05.py
5ee6016eb51d7fe60d907f6a294ea26e9934fc36
[]
no_license
carnad37/python_edu
710e52536d25606571ad572f68c1cfbce681848d
620d59272cbb60318b0220d5d4459633b6f2f55a
refs/heads/master
2020-04-17T23:03:40.065131
2019-05-10T02:34:49
2019-05-10T02:34:49
167,019,508
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
def num_toList(url): openfile = open(url,'r') num_List = [] for line in openfile: line = int(line.strip("\n")) num_List.append(line) openfile.close() return num_List def cal_Avg(cal_List): n_Sum = 0 counter = 0 for i in cal_List: n_Sum += i counter += 1 ...
[ "carnad37@gmail.com" ]
carnad37@gmail.com
3e55aa8e08b99b99132eb73763c98494e88dd8b6
5fe72bb13baf3649058ebe11aa86ad4fc56c69ed
/hard-gists/5071300/snippet.py
ce006750daa3dd3d584426f64cfaa3b4bf6a5cd1
[ "Apache-2.0" ]
permissive
dockerizeme/dockerizeme
8825fed45ff0ce8fb1dbe34959237e8048900a29
408f3fa3d36542d8fc1236ba1cac804de6f14b0c
refs/heads/master
2022-12-10T09:30:51.029846
2020-09-02T13:34:49
2020-09-02T13:34:49
144,501,661
24
20
Apache-2.0
2022-11-21T12:34:29
2018-08-12T21:21:04
Python
UTF-8
Python
false
false
4,567
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- # vim: set et sw=4 ts=4 sts=4 ff=unix fenc=utf8: # Author: Binux<i@binux.me> # http://binux.me # Created on 2013-03-02 20:47:08 import os import re import sys import logging import requests from PIL import Image class PinterestAPI(object): def __init__(self)...
[ "42325807+dockerizeme@users.noreply.github.com" ]
42325807+dockerizeme@users.noreply.github.com
bd8f9c899fc802d1da778c31c84c0b9e4a038b76
65c0564c9f12a4d6b4dc07ec4e78d1254707e86a
/customers/forms.py
9f7b66c87ab12fec303b8497642d8afb3a5b442d
[]
no_license
Umutonipamera/DjangoReactProject
d5d226574a3bc34e7a41473a168d38cf39eaa428
ab8ef37bd9b3833c7b5d73979eb61a1f950ea6d4
refs/heads/master
2023-08-29T08:12:23.695183
2021-11-08T05:16:44
2021-11-08T05:16:44
424,115,164
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
from django import forms from .models import Customer class CustomerRegistrationForm(forms.ModelForm): class Meta: model= Customer fields= "__all__"
[ "umutonipamera@gmail.com" ]
umutonipamera@gmail.com
31d90a9dc24170903f3226432866c2bfd98c5664
399dae0b5ad9ca27cde175d25b5435958674eb50
/System/Collect all the PM Logs and Upload into the SFTP Server/collect-all-the-pm-logs-and-upload-into-the-sftp-server.py
893910547d5b9c9ba2a1a581e5f10f81ad2c73cb
[]
no_license
kannanch/pythonscripts
61e3ea9e8ebf6a6b0ec2a4a829664e4507b803ba
843a522236f9c2cc2aadc68d504c71bb72600bd9
refs/heads/master
2020-06-12T11:18:00.404673
2019-06-28T11:24:37
2019-06-28T11:24:37
194,282,297
1
0
null
2019-06-28T13:55:56
2019-06-28T13:55:56
null
UTF-8
Python
false
false
8,064
py
kayako_ticket_number="Testing" import urllib2 import os import shutil import zipfile import time import ctypes import re import sys from subprocess import PIPE, Popen def copy(source_path, destination_path): if os.path.isfile(source_path): with open(source_path, 'rb') as reader: ...
[ "noreply@github.com" ]
kannanch.noreply@github.com
68ba2885d926baea16fab2b339a1c1945514504f
945cfa8e9128507565de0107762215663bcb7ca4
/dwave_networkx/__init__.py
a0e51d136f9be708c32363de965daade4165c91e
[ "Apache-2.0" ]
permissive
boothby/dwave_networkx
9047b10e27b197d7bd6528168a5fe138d48c773d
1e631b093bc45eb3676f32f84f9cae834caa1c82
refs/heads/master
2023-05-12T02:56:24.122824
2019-12-16T23:07:47
2019-12-16T23:07:47
129,129,963
0
1
Apache-2.0
2019-11-28T18:06:17
2018-04-11T17:26:52
Python
UTF-8
Python
false
false
1,262
py
# Copyright 2018 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "acondello@dwavesys.com" ]
acondello@dwavesys.com
a9f6658d90e0c3663bf81d47eaa0deb4bda4ce09
b76d2b037c2af38edfeb718deae22697444ee121
/proto-chain/client_api.py
10752a04b32eb1f154ac65377b43f5bc2e7df182
[]
no_license
hyo07/proto-chain
e8aa1a5d549310da79e9b28c55683a9361c48fe5
4fd3e91d6f9d4912634759a908f5a2bf0c1f4d47
refs/heads/master
2020-06-06T07:36:27.302334
2019-07-01T07:07:46
2019-07-01T07:07:46
192,679,743
0
0
null
null
null
null
UTF-8
Python
false
false
997
py
import signal from time import sleep import json from libs import call_api import sys from core.client_core import ClientCore from p2p.message_manager import MSG_NEW_TRANSACTION my_p2p_client = None args = sys.argv def signal_handler(signal, frame): shutdown_client() def shutdown_client(): global my_p2p_c...
[ "yutaka727kato@gmail.com" ]
yutaka727kato@gmail.com
eef73802c9fc462a583e16b6d16e0944be749b03
4fd84e0e1097d1153ed477a5e76b4972f14d273a
/myvirtualenv/lib/python3.7/site-packages/adal/util.py
1c84b479ca0527bd52352fd152e945fcb3b556f7
[ "MIT" ]
permissive
peterchun2000/TerpV-U
c045f4a68f025f1f34b89689e0265c3f6da8b084
6dc78819ae0262aeefdebd93a5e7b931b241f549
refs/heads/master
2022-12-10T09:31:00.250409
2019-09-15T15:54:40
2019-09-15T15:54:40
208,471,905
0
2
MIT
2022-12-08T06:09:33
2019-09-14T16:49:41
Python
UTF-8
Python
false
false
3,568
py
#------------------------------------------------------------------------------ # # Copyright (c) Microsoft Corporation. # All rights reserved. # # This code is licensed under the MIT License. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated ...
[ "peterchun2000@gmail.com" ]
peterchun2000@gmail.com
b9382ddd1c3e882cd5d14ff167df30163e12505a
d785e993ed65049c82607a1482b45bddb2a03dda
/nano2017/cfg_fr_2016/DYJetsToTauTau_ForcedMuEleDecay_M-50_cfg.py
c9644504b5c80bb04c4e8408488b4f721361215b
[]
no_license
PKUHEPEWK/ssww
eec02ad7650014646e1bcb0e8787cf1514aaceca
a507a289935b51b8abf819b1b4b05476a05720dc
refs/heads/master
2020-05-14T04:15:35.474981
2019-06-28T23:48:15
2019-06-28T23:48:15
181,696,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
from WMCore.Configuration import Configuration from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = Configuration() config.section_("General") config.General.requestName = 'DYJetsToTauTau_ForcedMuEleDecay_M-50_2016' config.General.transferLogs= False config.section_("JobType") config.JobType.pl...
[ "jiexiao@pku.edu.cn" ]
jiexiao@pku.edu.cn
da8f0604004449ae7b3d971e80e5b21ae69351b0
46aba27a95e821832173c97ac4009d2da0a004b7
/rpost/settings.py
9c0efb5ea5289d87d31db4d739425d7ebbee6a9b
[]
no_license
codervince/rpost
58c0e112386c384df293fba89cb9dc204299ece9
f5ba7ce082518ffe4fbdaf53fe890e0d8fd90300
refs/heads/master
2020-04-10T22:42:29.418917
2016-02-04T06:52:11
2016-02-04T06:52:11
31,486,009
0
1
null
null
null
null
UTF-8
Python
false
false
478
py
# -*- coding: utf-8 -*- # Scrapy settings for rpost project # # For simplicity, this file contains only the most important settings by # default. All the other settings are documented here: # # http://doc.scrapy.org/en/latest/topics/settings.html # BOT_NAME = 'rpost' SPIDER_MODULES = ['rpost.spiders'] NEWSPIDER_...
[ "publicvince102@gmail.com" ]
publicvince102@gmail.com
364cbb326ebf06998419de8b0fa13d96100b3442
c939ff37dd95a5bb149c31c59c3e975d33967108
/stack/stack_pylist.py
cc5d474f974ff734b22db971131cba11d4331e2a
[]
no_license
richnakasato/practice-python
3b7a5633b1e8debcb358611f3d0837afde8d0fd6
ec8b49cda16785b0548f823e5557edb93808f3e9
refs/heads/master
2021-05-11T09:14:46.552069
2018-03-19T12:20:32
2018-03-19T12:20:32
118,071,832
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
class StackPyList(object): """Stack implementation using Python lists.""" def __init__(self): self._data = list() def __str__(self): return str(self._data) def __len__(self): return len(self._data) def top(self): if is_empty(self): raise IndexError('i...
[ "richnakasato@hotmail.com" ]
richnakasato@hotmail.com
643005039b50cd11926426aacdca01d03f2a6898
f144e4876a77cb4e5ae05305ac41b72adec19872
/yelp_web/rating/models.py
67ae3f4c17eaa9d4fb8a4b938e2f9a2f3a570131
[]
no_license
ArnoldLara/Taller3_SR
b2c6645f219d1bddb76aee2a19552c33b9ea198c
23b0018c21e49f204fd1c7d50c7bea7ff8c4cade
refs/heads/master
2023-03-29T07:55:46.066901
2020-06-06T17:54:45
2020-06-06T17:54:45
268,096,510
0
0
null
2021-03-25T23:48:02
2020-05-30T14:32:19
Jupyter Notebook
UTF-8
Python
false
false
525
py
from django.db import models # Create your models here. class ratings(models.Model): user_id = models.CharField(max_length=50) movie_id = models.CharField(max_length=10) rating = models.DecimalField(max_digits=8, decimal_places=0, default=0.0) def __str__(self): return self.user_id class movi...
[ "you@example.com" ]
you@example.com
c36f91aec3113f606e0c4499ab07ea663715640f
6260f75ff0ca71dcef822e030ba2420921cc485c
/main.py
b6cf7dcd4c4a5d583f0078aeec30865630e36548
[]
no_license
JakeHartnell/swale_sensor
eaf8fed798fc586b43060bbd8d2880b542920155
3ed5f83f0b29f2bf19f0e12ffa43709ef8a65b5c
refs/heads/master
2021-01-18T01:26:16.926711
2016-04-16T15:07:01
2016-04-16T15:07:01
58,887,764
1
0
null
2016-05-15T22:29:19
2016-05-15T22:29:17
null
UTF-8
Python
false
false
2,041
py
#!/usr/bin/env python3 import time, json, math, threading, queue, requests from random import random from collections import deque, OrderedDict from housepy import config, log, util from housepy.xbee import XBee RANGE = 0, 1023 TYPE = "moisture" def message_handler(response): try: # print(response['senso...
[ "brian.house@gmail.com" ]
brian.house@gmail.com
9c697eb1a7a4ce91f0f17a284c5c337fc5ec6a2e
67f9fdbe44173c5a756a0905ee86a9a03bce7364
/code/textrank/summa/graph.py
f8790b11940782fc5727423bd622fa59e52f4c2a
[ "MIT" ]
permissive
ziqizhang/texpr
bbe774a968a6e27806be53a5f3eca160ffacf79a
35aa1ae27068ec0994e856e8b0f13c528b638da9
refs/heads/master
2018-12-08T17:24:23.126752
2018-09-11T14:42:13
2018-09-11T14:42:13
111,107,750
3
0
null
null
null
null
UTF-8
Python
false
false
6,482
py
from abc import ABCMeta, abstractmethod class IGraph: """ Represents the interface or contract that the graph for TextRank should implement """ __metaclass__ = ABCMeta @abstractmethod def nodes(self): """ Return node list. @rtype: list @return: Node list. ...
[ "ziqizhang.email@gmail.com" ]
ziqizhang.email@gmail.com
7f13f6678ea810217a5c6f4e13fcd21d829a1b89
13482204549e3ab05f7ed4accdc69bd5d22d4d45
/main/api/permissions.py
1643bb1b7376e964c5adc0891cc00f6fea9c6ce0
[]
no_license
HectorBlisS/DjangoRestFrameworkViewSet
0331fc923412828c4869feda5653725d4034491a
26bf07e6b1f3e924dce31b5c8d6285e4bbfa2d04
refs/heads/master
2020-06-14T08:58:45.589550
2016-11-30T20:07:56
2016-11-30T20:07:56
75,207,592
0
0
null
null
null
null
UTF-8
Python
false
false
203
py
from rest_framework.permissions import BasePermission class IsEnrolled(BasePermission): def has_object_permission(self, request, view, obj): return obj.aplicantes.filter(id=request.user.id).exists()
[ "contacto@fixter.org" ]
contacto@fixter.org
067acb22f15ef93a29ecb2e2894bfe8d6390fa6d
2d7d8f066966357a1a0444a5f37a9cc218ac1c9c
/sceneid/views.py
265095906d6f10c71b5ccfef86c0bc7cc281012a
[ "BSD-3-Clause" ]
permissive
FishGuy876/django-sceneid
8c1487508e89cd6d9ec95bfe2db105efcf540047
5224beb42129e55d326ce829a0a58c0c105ebba2
refs/heads/main
2023-04-17T22:49:20.096990
2021-05-08T17:13:25
2021-05-08T17:13:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,013
py
from django.apps import apps from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth import login as auth_login from django.contrib.auth.forms import AuthenticationForm from django.contrib import messages from django.core.exceptions import SuspiciousOperation from django...
[ "matt@west.co.tt" ]
matt@west.co.tt
d156d19dfc91267c7cd3e84b5c1919c167ad0c64
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/bin/MadGraph5_aMCatNLO/cards/production/2017/13TeV/MonoZLL/DMSimp/lib/DMSimp_lib.py
d56cd67192959564b07b5210a8f83e1c3ad7905c
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
3,707
py
import copy from card_lib import Parameter,ParameterPoint class DMSimp_Spin0_ParameterPoint(ParameterPoint): '''Struct to hold parameters for single DMSimp spin 0 dataset''' def __init__(self,other=None): if other: self.parameters = copy.deepcopy(other.parameters) else: ...
[ "andreas.albert@cern.ch" ]
andreas.albert@cern.ch
cf40e2620a15ae4684a68a396a4f62097cf8a920
1326612e90a772bd6acbf0c9532cbcaefdec9f48
/BiblioPixelAnimations/matrix/AnalogClock.py
6fd72d582a9159602dd41b10a2072661a458d9b0
[ "MIT" ]
permissive
russp81/BiblioPixelAnimations
cc2ad721ed60435950282ce09d95191bf09b1eb3
4184ace37200861cc721e5bd7a43014bd0bbcadf
refs/heads/master
2021-01-17T21:01:22.832174
2016-09-16T06:43:06
2016-09-16T06:43:06
68,341,732
1
0
null
2016-09-16T00:23:29
2016-09-16T00:23:29
null
UTF-8
Python
false
false
3,502
py
from bibliopixel.animation import BaseMatrixAnim import bibliopixel.colors as colors from bibliopixel.util import pointOnCircle import time import math class AnalogClock(BaseMatrixAnim): def __init__(self, led, aa=True): super(AnalogClock, self).__init__(led) self._centerX = (self._led.width - 1) ...
[ "adammhaile@gmail.com" ]
adammhaile@gmail.com
35bd6304f8bb25b214624eb868b89bbeb09553ce
23805cffc86ac4dfb5bcce672b8c7070b4616e41
/Apprendre-Python/vowels-number/scripts/preprocess.py
033f7109a1b2898fab83148e87655679833a4727
[]
no_license
ukonline/pythia-tasks
f90ff90299fe0eedd0e2787bcf666df07c709a00
81a3731eb0cdfe16b26a4e75a165a5071fb48ff5
refs/heads/master
2021-01-25T03:26:33.915795
2016-01-04T20:03:24
2016-01-04T20:03:24
40,974,655
0
2
null
2016-12-21T13:12:14
2015-08-18T13:49:39
Python
UTF-8
Python
false
false
547
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Course: Apprendre Python # Problem: Nombre de voyelles # Preprocessing script import json import sys sys.path.append('/task/static') from lib import pythia # Setup working directory pythia.setupWorkingDirectory('/tmp/work') # Read input data and fill skeleton files data ...
[ "seb478@gmail.com" ]
seb478@gmail.com
6014b0c76a0491a4ba2d8d067f62c9acd0e7204e
3b2cf35a15c4a352b4bb92e08a1aa6511485086a
/backend/app/models/bus.py
db6c7cb60a2b7a9144666f51449d297a108a7057
[]
no_license
debajyotidasgupta/PlanMyTrip
2af0352668b65d3e59fd63c0b8e28c2e070bb39f
6fdfdd405ba1808eda1a79e5da9701382af34f96
refs/heads/master
2023-01-14T09:30:02.226255
2021-06-28T06:53:55
2021-06-28T06:53:55
258,790,205
0
2
null
2023-01-07T08:44:27
2020-04-25T14:04:18
JavaScript
UTF-8
Python
false
false
1,492
py
from app.models.base import Model # For each valid DoJ, add a separate entry. class Bus(Model): SCHEMA = { "bus_id": "bus_id int PRIMARY KEY", "departure": "departure datetime NOT NULL", "arrival": "arrival datetime NOT NULL", "source": "source int NOT NULL", "destination": ...
[ "smishra99.iitkgp@gmail.com" ]
smishra99.iitkgp@gmail.com
a2973a28dccb0f490908116d525cd650a72afdd8
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/playground/memre/armv7l/obsolete/corp2/system/base/mkinitramfs/actions.py
aea2fa481c3d4936afded91f6d751497b51d490f
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
702
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2005-2010 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import crosstools from pisi.actionsapi import pisitools from pisi.actionsapi import get W...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
343df1e38b6db0ca5bb2e48bacb2a6720a563999
1e78076bd3171e009a1230ebb70c03c1e464099c
/src/scripts/m3u2symlinks
9d56f3f64342adfa2b6a5e9be26b676590028a8c
[]
no_license
jldupont/jld_scripts
e8f1c136d5ff502ee0b41dbbe32bbcce34de2130
dae53b57eb9c5ced78a4ca1d947ce13dba60469c
refs/heads/master
2020-04-06T06:57:17.693108
2012-12-27T02:01:17
2012-12-27T02:01:17
815,986
0
0
null
null
null
null
UTF-8
Python
false
false
194
#!/usr/bin/env python """ @author: Jean-Lou Dupont """ from jld_scripts.scripts.m3u2symlinks import main try: main() except KeyboardInterrupt: print "\nExiting..." import sys sys.exit(1)
[ "github@jldupont.com" ]
github@jldupont.com
aeb86ee810c2af727bd9aefe032a84ebafbb13f8
a635b8d51016220a6d84808def431c27dde41b90
/libcms/apps/sso_opac/backend.py
7bf3d3a132462a94c58504bd8795b5d10707cc84
[]
no_license
isergey/chel
aab3ac98ae2a10258f7a5afce88c74f9e13a2d7f
d1a38bfe7ebba80d9c39ae3b0d54ebfd2965046c
refs/heads/master
2023-07-07T02:13:41.363452
2023-06-26T10:25:14
2023-06-26T10:25:14
3,816,204
1
0
null
2023-03-31T14:52:31
2012-03-24T09:33:53
JavaScript
UTF-8
Python
false
false
2,506
py
# encoding: utf-8 import hashlib import logging from django.contrib.auth.models import User from django.db import transaction from opac_global_client.entities import ReaderResponse from sso.models import create_or_update_external_user, find_external_user from .settings import opac_client, AUTH_SOURCE logger = logg...
[ "dostovalov@gmail.com" ]
dostovalov@gmail.com
22642bc82303105c9af4c2cc474c31d20435bb08
dc2682f687a203dcf5f4f4260f857ef5099bbdab
/src/bootstrapping_olympics/utils/natsorting.py
89da5b2b594a9af064c6adc40a8fd47103e1c3b5
[]
no_license
AndreaCensi/boot_olympics
1bc3d0cd887ca6b47a159929b53032c298979450
dc05e283bde01cafc4843d82f17413b13c6ce1af
refs/heads/master
2020-07-08T10:49:37.368104
2013-07-19T07:00:22
2013-07-19T07:00:22
2,098,134
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
# --------------------------------------------------------- # natsort.py: Natural string sorting. # --------------------------------------------------------- # By Seo Sanghyeon. Some changes by Connelly Barnes. def try_int(s): "Convert to integer if possible." try: return int(s) except: ...
[ "andrea@cds.caltech.edu" ]
andrea@cds.caltech.edu
6cb86a4a1b4c9e7c555ec9def9902941d4061150
17e60f61fc82e7369802a1c597b58b0206ad9bec
/lib/resHashpolicyEnvoy.py
20429d0ed219bf10587614c0253328ae57dca0da
[]
no_license
SLB-DeN/opensvc
5e06d42947f51662fa16203a00670a88b9e1fea9
75baeb19e0d26d5e150e770aef4d615c2327f32e
refs/heads/master
2021-05-17T05:35:18.585791
2020-03-19T15:20:05
2020-03-19T15:20:05
250,651,667
1
0
null
2020-03-27T21:29:22
2020-03-27T21:29:22
null
UTF-8
Python
false
false
200
py
from resData import Data class Hashpolicy(Data): def __init__(self, rid, **kwargs): Data.__init__(self, rid, type="hash_policy.envoy", **kwargs) self.label = "envoy hash policy"
[ "christophe.varoqui@opensvc.com" ]
christophe.varoqui@opensvc.com
333ff4279b60ad7da2612ea37ff7798667f8ce6f
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/scrabble-score/13b5810a4d2641b6978663045bd8be5d.py
de6fc156d032ebbfdc147aad38352a3fa0268e0e
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
419
py
def score(word=''): out = 0 letter = { 1: ['a', 'e', 'i', 'o', 'u', 'l', 'n', 'r', 's', 't'], 2: ['d', 'g'], 3: ['b', 'c', 'm', 'p'], 4: ['f', 'h', 'v', 'w', 'y'], 5: ['k'], 8: ['j', 'x'], 10: ['q', 'z'] } for i in word.lower(): ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
c0211d9e90615e285164725a62884dc7513c5680
45f23ed5d9b712107e44e3ae2028176faa8a1f6a
/myproject/2021-04/08-Day20/002-http-post-response-push.py
7848bbc6bcfed68be81cd61227bc11bb37fa99c3
[]
no_license
miku3920/pythonStudyNotes
b02167fc63beb8d52ce2ff0df975e872eb972c23
ea2273ad8fbfb07bf14a195a588c318e6c37653a
refs/heads/main
2023-05-28T01:19:33.024464
2021-06-08T07:05:03
2021-06-08T08:23:35
344,477,491
0
1
null
2021-04-14T06:22:40
2021-03-04T13:06:21
Python
UTF-8
Python
false
false
1,416
py
from cgi import parse_header, parse_multipart import socketserver as socketserver import http.server from http.server import SimpleHTTPRequestHandler as RequestHandler from urllib.parse import parse_qs import json import requests auth_token='???????' class MyHandler(RequestHandler): def do_HEAD(self): sel...
[ "papa964204@gmail.com" ]
papa964204@gmail.com
d914f2bba43c7c3f3b277e591ab95f557e0f6ef7
488845a6b10e9f91b8747d701fa76c29b657728e
/Chap0/project/m.py
32efdd952d04048a50230fdff069c87aef211ad9
[]
no_license
AIHackerTest/lovejennifer_Py101-004
00c41a9a17b43e4437196e56cc4b6840698b2162
87033511ae8cf9526cac87b33b3feef2f01547f5
refs/heads/master
2021-06-26T18:49:46.453046
2017-09-12T08:27:44
2017-09-12T08:27:44
103,240,356
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- from random import (randint, sample ) def generate_randnum(): optional_numbers = [str(i) for i in range(10)] first_num = optional_numbers.pop(randint(1, 9)) three_num_ls = sample(optional_numbers, 3) three_n...
[ "xiaowan5219@gmail.com" ]
xiaowan5219@gmail.com
defcb8df0af5d3a53818d25fec28f6f6b66357e1
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/2769.py
c8765a27a5bb6ec2519e9dfe371c9665df41eff5
[]
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,896
py
# Google Jam code - Yuval Feinstein def game(T): output_file = open('output.txt','w') with open(T) as input_file: test_ammount = int(input_file.readline()) for test_case in range(test_ammount): # Let's get the relevant line from the first matrice first_line_n...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
895978f45fa5815c49b19c2136b61ca2d06dcada
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/knx/number.py
fbf4db3f5b231f0f7d36a6956f816f1b754f97f1
[ "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,579
py
"""Support for KNX/IP numeric values.""" from __future__ import annotations from typing import cast from xknx import XKNX from xknx.devices import NumericValue from homeassistant import config_entries from homeassistant.components.number import RestoreNumber from homeassistant.const import ( CONF_ENTITY_CATEGORY...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
bd05b1072ccc33bab9274a5790f09ba45c2c9cda
08a3848a8e8e431bd05c424d26c462b2e13182ff
/train.py
e40877e4116a9d6ec0382451e73a26518c88b138
[]
no_license
TalentBoy2333/VideoSAR-segmentation
f1ba2b9bb06c2e180cadf3df0dfaf774d174c3bb
db33547167fda6653723a81e04d081d177a42298
refs/heads/master
2022-04-04T11:53:38.407131
2020-02-28T14:01:03
2020-02-28T14:01:03
186,581,063
5
1
null
null
null
null
UTF-8
Python
false
false
4,953
py
import torch import torch.nn as nn import torch.utils.data as Data import numpy as np from dataset import VideoSAR from model import Model import os cuda = True if torch.cuda.is_available() else False os.environ['CUDA_VISIBLE_DEVICES'] = '0,1,2,3' def weights_init(model): """ 设计初始化函数 使用方法: 在创建model后使用P...
[ "957498562@qq.com" ]
957498562@qq.com
30e338049dedf5a163000d4d170ab0b8fa453ac4
14a87a2f1baa58600c29a06bbe8d3875e19d9493
/app/forms/login.py
3dc09bebb2d68f7e314371350ee80e1335be0dda
[]
no_license
damienSeffray/LostInNetwork
1a151238de400111c97f533fa06d158e30a425ea
411e3b81f2a6332fb6b683dd2f3dfd69696d385d
refs/heads/master
2020-12-11T07:53:58.269999
2014-11-28T16:31:21
2014-11-28T16:31:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
# -*- coding: utf-8 -*- from flask_wtf import Form from wtforms import PasswordField, SubmitField, StringField from wtforms.validators import DataRequired, ValidationError from app import db from app.models import User class LoginForm(Form): username = StringField('login', validators=[DataRequired()]) pass...
[ "paul.lhussiez@gmail.com" ]
paul.lhussiez@gmail.com
db04581111574a9d2ed97845d0d59e610ad20d4d
31d972d4e30923c945ba00663eab684777f60ddd
/qa/conf/api-flow.run
7997ec5c41e6bf1ccbf0d0ae9a118427564717de
[]
no_license
plajjan/exabgp
0a366e220cf3efb125af34e68c8e203cd3e1946a
787ae66f9ea6ce90e4b802cabee4eb1fe07d50fe
refs/heads/master
2021-01-21T05:44:47.112151
2015-07-10T19:39:16
2015-07-10T19:39:16
39,240,177
1
0
null
2015-07-17T07:10:54
2015-07-17T07:10:54
null
UTF-8
Python
false
false
1,131
run
#!/usr/bin/env python import sys import time announce_flow_1 = 'announce flow route source 10.0.0.2/32 destination 10.0.0.3/32 destination-port =3128 protocol tcp rate-limit 9600;' withdraw_flow_1 = 'withdraw flow route source 10.0.0.2/32 destination 10.0.0.3/32 destination-port =3128 protocol tcp;' announce_flow_2 =...
[ "thomas.mangin@exa-networks.co.uk" ]
thomas.mangin@exa-networks.co.uk
c9bac942bcb11583fba01b6e42b84639b653ba64
ed7e6b0be2b94b9af11cd82d7794426f5015b749
/util/util.py
7d1fb09d5b48eefcb85481e37e61ec6841bbc8ee
[]
no_license
phymhan/pc-gan
e1d9fca9ce79ef75f73564f5f892814f8a04c968
983ba0f9a3b57d736ae3f823dafd042129aa14e0
refs/heads/master
2020-09-14T05:13:58.855811
2019-11-23T04:06:47
2019-11-23T04:06:47
223,029,479
8
0
null
null
null
null
UTF-8
Python
false
false
6,522
py
from __future__ import print_function import torch import numpy as np from PIL import Image import os import ast import argparse from torch import autograd from torch import optim # Converts a Tensor into an image array (numpy) # |imtype|: the desired type of the converted numpy array def tensor2im(input_image, imtyp...
[ "hanligong@gmail.com" ]
hanligong@gmail.com
778dfef78fb5706abdbb598f2a1f221920d71fb4
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/depot_tools/fetch_configs/infra_superproject.py
51060e42172f135b6e018eeacc2e15a68bc9f3c6
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
1,246
py
# Copyright 2023 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import sys import ast import config_util # pylint: disable=import-error # This class doesn't need an __init__ method, so we disable the warning # pylint:...
[ "jengelh@inai.de" ]
jengelh@inai.de
843b5a38a3083c1d9f15b736a880f14566ec7121
0129b016055daa1aaa1e9e0911f271fa7b38e27e
/programacao_estruturada/20192_186/Bimestral1_186_20192/jose_moreira_antonio_francisco_mendes/numeros.py
60a3f5a43bcc649b508157d1f4cbe8aa06a53e58
[]
no_license
rogeriosilva-ifpi/teaching-tds-course
7c43ff17d6677aef7b42071929b3de8361748870
771ccdc4dc932d0ef5ce6ba61a02b5ee11920d4c
refs/heads/master
2022-04-04T01:08:45.157185
2020-01-30T19:36:57
2020-01-30T19:36:57
206,439,119
1
0
null
null
null
null
UTF-8
Python
false
false
352
py
def programa(): numero = int(input("Digite um numero: ")) contador = 0 soma = 0 while numero > 0: numero = int(input("Digite um numero: ")) soma = soma + numero contador = contador + 1 print("Soma dos numeros, ", soma) print("contador", contador) print("Media sera...
[ "rogerio.silva@ifpi.edu.br" ]
rogerio.silva@ifpi.edu.br
3d6fe871ebaa29b884cbe83e7d1475acc94f931e
84b05857cbe74d190bdbee18d442d0c720b1b84d
/Coderbyte_algorithms/Easy/CheckNums/test_CheckNum.py
6895a7a171aaab7b9b9f0014d202718e8fc739bb
[]
no_license
JakubKazimierski/PythonPortfolio
1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3
3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f
refs/heads/master
2023-06-01T01:16:22.897097
2023-05-15T01:05:22
2023-05-15T01:05:22
311,473,524
9
1
null
null
null
null
UTF-8
Python
false
false
1,094
py
''' Unittests for CheckNums.py October 2020 Jakub Kazimierski ''' import unittest import CheckNums class test_CheckNums(unittest.TestCase): ''' Class contains unittests for CheckNums.py ''' #region Unittests def test_TrueOutput(self): ''' Checks if output is equal ...
[ "j.m.kazimierski@gmail.com" ]
j.m.kazimierski@gmail.com
71dc34ef0ced4c76f929688ac390639435d7efc3
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p2DJ/New/program/qiskit/simulator/startQiskit215.py
679eb176345f1b8013a7cc10a968050606937649
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,181
py
# qubit number=2 # total number=13 import cirq import qiskit from qiskit import IBMQ from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2,floor, sqrt, pi import numpy a...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
2a27a9e9a8adea03451c430f14c7674e8fe481ae
9ac20f22b6041dfd817af91044b0a70309ce99ee
/lrcurve/keras_learning_curve_test.py
d09ee42964e2f48c7da2e31899f24c73d656a906
[ "MIT" ]
permissive
minhlab/python-lrcurve
28b4138b9b0f5771c85e3bafe8f63f60531b0c60
8a63ffa27f6d7ab8c0268a487047b2e0c6e806cb
refs/heads/master
2021-02-06T23:16:32.934770
2019-12-15T15:03:28
2019-12-15T15:03:28
243,955,957
0
0
MIT
2020-02-29T11:25:01
2020-02-29T11:25:00
null
UTF-8
Python
false
false
1,321
py
from nose.tools import * from lrcurve import KerasLearningCurve class DisplayHandle: def __init__(self, display_objects): self.display_objects = display_objects def update(self, obj): self.display_objects.append(obj) def display_replacer(display_objects): def display(obj, display_id=None...
[ "amwebdk@gmail.com" ]
amwebdk@gmail.com
16e83033f60a1af0cee8ebc54a181fc047d70dfc
ed5a082d977aefcecc8c40c76046d26334615a8e
/contest/abc/abc168/d.py
dfd9ba0bc990d250178c6b27a189b7ba1e681e68
[]
no_license
arakoma/competitive_programming
0ff9b9a97d2f37a3a1dac96c157f3235dde96b85
ebbc5621860aca320a6949433f1707f1cbfcf911
refs/heads/master
2021-08-07T10:50:08.890353
2021-07-10T14:10:15
2021-07-10T14:10:15
223,712,828
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
N, M = map(int, input().split()) L = [[] for _ in range(N+1)] for _ in range(M): a, b = map(int, input().split()) L[a].append(b) L[b].append(a) ans = [0 for _ in range(N+1)] now = [1] next = [] while len(now): for x in now: for y in L[x]: if ans[y] == 0: ...
[ "arakoma555@gmail.com" ]
arakoma555@gmail.com
cca9fa6e70c387bf5922145e6ae860488286b729
2d2242addadbd1c7690c964a0c14804b8494e9f9
/cultg/cgapp/templatetags/categories.py
23a29ea905dd31f6cf7cb3b88491bf4f1d17f8cb
[]
no_license
biletboh/culturalgeorgaphies
57720c5ac4a0005bb4953bcd3c4d9171874d323d
8337955447800573d90ee1fa40c2dc8bc0919672
refs/heads/master
2020-07-04T05:16:58.997019
2017-05-27T08:11:20
2017-05-27T08:11:20
67,863,829
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from django import template from django.utils.translation import ugettext as _ register = template.Library() @register.filter def in_category(things, category): return things.filter(category=category) @register.filter def language(things, language_code): if language_code == "en": language = "en" ...
[ "biletskyboh@gmail.com" ]
biletskyboh@gmail.com
3bb3a39242c0a587a22e483bf5893574a50b6b48
024316d7672c7c2b2c558003c586df5116c73731
/wavesynlib/languagecenter/wslinp/modelnode.py
98d4a3f61269c7c7f1c259929d7ddd1d1f331f81
[]
no_license
kaizhongkaizhong/WaveSyn
c305b03e44a961892a792a49601f625a90ae4f70
b7918af5f66dba8c0d63cbb986465febe075cec2
refs/heads/master
2023-04-23T00:20:44.134876
2021-05-03T07:43:10
2021-05-03T07:43:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
from wavesynlib.languagecenter.wavesynscript import ModelNode import hy from .engine import Engine class WSLinp(ModelNode): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) def run(self, program, *files): engine = Engine() engine.run(program, *files)
[ "xialulee@live.cn" ]
xialulee@live.cn
b559cd3a63d9f0c3d81b478e820763498c7f354a
1e987bd8b8be0dc1c139fa6bf92e8229eb51da27
/experimental/deeplearning/clgen/backtracking/logger.py
10c1e52d59843a5dd0723afe67002b5535156379
[]
no_license
tszdanger/phd
c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5
aab7f16bd1f3546f81e349fc6e2325fb17beb851
refs/heads/master
2023-01-01T00:54:20.136122
2020-10-21T18:07:42
2020-10-21T18:09:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,447
py
"""Results logging for backtracking experiments.""" import time from experimental.deeplearning.clgen.backtracking import backtracking_db from experimental.deeplearning.clgen.backtracking import backtracking_model from labm8.py import app from labm8.py import humanize FLAGS = app.FLAGS class BacktrackingLogger(objec...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
c53998cde360109d2db8694cb1e066768a5b5b38
7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3
/yukicoder/400-499/406.py
3aeb6a9055b7aa74348e251414bf783907c003e0
[]
no_license
roiti46/Contest
c0c35478cd80f675965d10b1a371e44084f9b6ee
c4b850d76796c5388d2e0d2234f90dc8acfaadfa
refs/heads/master
2021-01-17T13:23:30.551754
2017-12-10T13:06:42
2017-12-10T13:06:42
27,001,893
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
# -*- coding: utf-8 -*- import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll N = int(raw_input()) x = sorted(map(int, raw_input().split())) if len(set(x)) == N and len(set((x[i + 1] - x[i] for i in xrange(N - 1)))) == 1: print "YES" else: print "NO"
[ "roiti46@gmail.com" ]
roiti46@gmail.com
77da3547e5a2b6ef1636d2f2847c5f95bc4b1039
c5adf2f141a4ab97ba570498cbb27ca96d8f69b5
/lesson2_3_step6.py
3a4d8ea5f214baa1ec4dbf223e95d9c2eda8507c
[]
no_license
jigi-33/selenium_course
5688110285868aba58f885f0c46752732ab8e7b6
ceda11b438cd4207064fd498b6259abd097dbaf0
refs/heads/master
2022-04-16T06:23:13.298254
2020-03-31T05:54:02
2020-03-31T05:54:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
839
py
from selenium import webdriver import time import math browser = webdriver.Chrome() link = 'http://suninjuly.github.io/redirect_accept.html' browser.get(link) try: window_before = browser.window_handles[0] magic_button = browser.find_element_by_css_selector('body > form > div > div > button') ...
[ "pollicier@gmail.com" ]
pollicier@gmail.com
67cb9704df8ac36b2156b328e0c4bc267a474184
174975248ffa04bb0339ace7475a791842e99ffb
/hashtable.py
912691fc68f668f3ed59514c8d22ff490d452039
[]
no_license
KONAPAVANKUMAR/code-library
87a5525dcf71aaba47f233df17ad31227cb3c44b
6839ef596858515119a3c300b031a107c8d72292
refs/heads/main
2023-06-02T09:33:21.382512
2021-06-24T09:49:00
2021-06-24T09:49:00
378,131,322
0
0
null
2021-06-24T09:41:12
2021-06-18T11:39:22
Python
UTF-8
Python
false
false
1,644
py
class HashTable: def __init__(self): self.size = 11 self.slots = [None] * self.size self.data = [None] * self.size def put(self,key,data): hashvalue = self.hashfunction(key,len(self.slots)) if self.slots[hashvalue] == None: self.slots[hashvalue] = key self.d...
[ "pavankumarkona@PAVANs-MacBook-Pro.local" ]
pavankumarkona@PAVANs-MacBook-Pro.local
6c1edc27e50f6663f908ae0040be24bb7de76e9f
d1fb8bb087564052674cb33ac6d75daca4ae586a
/US Giants/Binary Search/28. Search a 2D Matrix.py
29a16ac281b70024b12b35fbcb4cc161d01dc8c5
[]
no_license
YunsongZhang/lintcode-python
7db4ca48430a05331e17f4b79d05da585b1611ca
ea6a0ff58170499c76e9569074cb77f6bcef447a
refs/heads/master
2020-12-24T03:05:43.487532
2020-01-30T19:58:37
2020-01-30T19:58:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
class Solution: """ @param matrix: matrix, a list of lists of integers @param target: An integer @return: a boolean, indicate whether matrix contains target """ def searchMatrix(self, matrix, target): if matrix is None or len(matrix) == 0: return False # m: row; n: c...
[ "haixiang6123@gmail.com" ]
haixiang6123@gmail.com
02543882b4d42b8fb7c7c12dcbecdf787536d4b1
91b80ef798cbcdaab7f6ae0be994f5a3b12f1515
/23_2.py
13cc14580f3f3ad423258a692f38100bb2e13b73
[]
no_license
luckkyzhou/leetcode
13377565a1cc2c7861601ca5d55f6b83c63d490e
43bcf65d31f1b729ac8ca293635f46ffbe03c80b
refs/heads/master
2021-06-21T11:26:06.114096
2021-03-24T21:06:15
2021-03-24T21:06:15
205,568,339
0
1
null
null
null
null
UTF-8
Python
false
false
732
py
# -*- coding: utf-8 -*- import heapq from typing import List class ListNode: def __init__(self, val): self.val = val self.next = None class Solution: def mergeKLists(self, lists: List[ListNode]) -> ListNode: res = ListNode(0) cur = res head = [] for i in range...
[ "luckky_zhou@163.com" ]
luckky_zhou@163.com
715cec911def4ec78f37b1709040fedde168e432
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_motd.py
bfd34bd9fa686a8e3299e87cea70f556b4fa76ba
[ "MIT", "GPL-3.0-or-later" ]
permissive
otus-devops-2019-02/yyashkin_infra
06b57807dde26f94f501828c07503d6bf1d70816
0cd0c003884155ac922e3e301305ac202de7028c
refs/heads/master
2020-04-29T02:42:22.056724
2019-05-15T16:24:35
2019-05-15T16:24:35
175,780,718
0
0
MIT
2019-05-15T16:24:36
2019-03-15T08:37:35
HCL
UTF-8
Python
false
false
4,900
py
#!/usr/bin/python # (c) 2018 Piotr Olczak <piotr.olczak@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'st...
[ "theyashkins@gmail.com" ]
theyashkins@gmail.com
a75aad8f9941ed984d9db36d0eda9d54717c7c84
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2294/60889/294831.py
2955a23b455dc7e7472694ca05934dff3f8ffca8
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,511
py
import sys class Node(): def __init__(self,data,left=0,right=0): self.data = data self.left = left self.right = right def createTree(preOrder,inOrder): rootData = preOrder.pop(0) for i in range(len(inOrder)): if inOrder[i] == rootData: break ...
[ "1069583789@qq.com" ]
1069583789@qq.com
49dd8a605790e3dfd4ac64f288a2f7d4d6ab3214
62922a76e40003f3d3a7d02282853f9a2b76c6fc
/NLP/NLTK2.py
68f77acbc034843328468946ec604058ed2e4319
[]
no_license
cchangcs/ai_learning_record
a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2
235a90ff5fe0205334376a927d462b8ae64e4e70
refs/heads/master
2020-04-01T16:59:31.203223
2018-11-21T11:12:34
2018-11-21T11:12:34
153,408,023
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
import nltk text = open('nothing_gonna_change_my_love_for_you.txt').read() fdist = nltk.FreqDist(nltk.word_tokenize(text)) # 显示累积频率分布图 fdist.plot(30, cumulative=True)
[ "752340690@qq.com" ]
752340690@qq.com
03a5824a903c77adce16ecc2c03e44fb8a2ce0c6
86df529b6f0c90be924d7cc8bb0d92c8b860130a
/specs/simple_spec.py
20a6ef22a1c0864bf19127fc434275a0c4a045c9
[]
no_license
OldhamMade/SimpleBDD
c06f12482fbb34143b9139953ebcbd948aab9909
3fcc55279a2135342c355fd14d3b1e96fe03805b
refs/heads/master
2021-01-18T11:30:27.669437
2016-05-06T16:11:41
2016-05-06T16:11:41
58,219,023
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
try: import unittest2 as unittest except ImportError: import unittest class SimpleSpec(unittest.TestCase): # this will be collected by nose # and will be ignored by pytest def it_should_pass(self): assert True class BasicSpec: # this will be collected by pytest # and will be igno...
[ "phillip.oldham@gmail.com" ]
phillip.oldham@gmail.com
95140908f4be816b799683345ced96c57a02a1b6
5b593bc4d1c90ea85eb9912eeb3977269977b46b
/bin/pip3.5
32f3be467806c6293a77f85d8a40a5bdf606250d
[]
no_license
monetree/djangular
b17ef12bc08d33676fe0e7fc865e2ba5bc4cc36e
abd5b714ab1276061f3ee7f3685eb0f198b8326b
refs/heads/master
2020-03-16T07:39:17.557622
2018-05-10T09:09:58
2018-05-10T09:09:58
132,580,569
0
0
null
null
null
null
UTF-8
Python
false
false
249
5
#!/home/soubhagya/Desktop/django/angular/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "soubhagyakumar666@gmail.com" ]
soubhagyakumar666@gmail.com
6ece91bce144a5dbbdb685aeaffe684c84ab9f10
fcde32709c62b8ee86da459bb7c8eee52c848118
/code/day04/for循环练习.py
8ef0a9d2fc560d91f96bf0f043827b88f9d70036
[]
no_license
klaus2015/py_base
6b92d362c3d7dc0e09205a037f4d580381dac94d
ec32c731c1c2f6a0dab87f1d167397e4fa86b8de
refs/heads/master
2022-07-28T15:49:30.383648
2020-05-11T15:31:43
2020-05-11T15:31:43
261,777,278
0
0
null
null
null
null
UTF-8
Python
false
false
1,369
py
# sum_value = 0 # for item in range(1, 101): # sum_value += item # print(sum) # # for item in range(2, 100, 2): # sum_value += item # print(sum_value) import random score = 0 # for item in range(3): # num01 = random.randint(1, 11) # num02 = random.randint(1, 11) # print("请输入", str(num01), "+",...
[ "598467866@qq.com" ]
598467866@qq.com
9e0b3afc85c7d317960447098fd0ddd36f60a1cd
2b167e29ba07e9f577c20c54cb943861d0ccfa69
/numerical_analysis_backup/small-scale-multiobj/resource_usage2/arch4_new/ru_arch4_9.py
815eecfdf7db9ef532dd7392979d77a2689ef1ca
[]
no_license
LiYan1988/kthOld_OFC
17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f
b1237577ea68ad735a65981bf29584ebd889132b
refs/heads/master
2021-01-11T17:27:25.574431
2017-01-23T05:32:35
2017-01-23T05:32:35
79,773,237
0
0
null
null
null
null
UTF-8
Python
false
false
1,387
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 4 15:15:10 2016 @author: li optimize both throughput and connections """ import csv from gurobipy import * import numpy as np from arch4_decomposition_new import Arch4_decompose np.random.seed(2010) num_cores=3 num_slots=80 filename = 'traffic_matrix.csv' tm = [] wit...
[ "li.yan.ly414@gmail.com" ]
li.yan.ly414@gmail.com
556d7976ac0f94b2734b204a034555558d5d8519
4c534dc33d548acf07edc3e7b826f4bfb9207030
/app/views.py
ae561a4459256762b134e280c5e616af23204852
[]
no_license
Typecraft/valex-backend
a1fdbcdf0f761eca51f7762ec20e57a2feec234b
7c7ca74851bf595e811ffba5b0f5b09fbd5ac19a
refs/heads/develop
2022-12-18T08:22:47.545094
2017-10-24T09:00:58
2017-10-24T09:00:58
102,861,803
0
0
null
2022-12-08T00:38:08
2017-09-08T13:00:09
Python
UTF-8
Python
false
false
128
py
from django.shortcuts import render # Create your views here. def index(request): return render(request, 'app/app.html')
[ "tormod.haugland@gmail.com" ]
tormod.haugland@gmail.com
d00fe8d65e652b8b6550e30b5375f3817f016bf6
ef8b6298ae5d247c65454eeeb7b1198b18fe5580
/CodingDojangPython/quiz_9(for,range).py
7e9f8e3cb2a13ad53bb84641e6db2ac3bc234964
[]
no_license
Supreme-YS/PythonWorkspace
01728fc06b9f1ce9d48de8ab662c0b528c27df1d
9b1d17c805e45285eb3594da84df02939cab2a85
refs/heads/master
2023-07-28T16:44:36.930819
2021-09-06T14:03:50
2021-09-06T14:03:50
289,924,768
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
#구구단 출력하기 #표준 입력으로 정수가 입력됩니다. 입력된 정수의 구구단을 출력하는 프로그램을 만드세요(input에서 안내 문자열은 출력하지 않아야 합니다). 출력 형식은 숫자 * 숫자 = 숫자처럼 만들고 숫자와 *, = 사이는 공백을 한 칸 띄웁니다. # 포매팅 이용 dan = int(input()) for x in range(1, 10): print('{} * {} = {}'.format(dan, x, dan*x)) # 정석 풀이 dan = int(input()) for i in range(1, 10): print(dan, '*', i, '...
[ "dudtjr1225@gmail.com" ]
dudtjr1225@gmail.com
b91b9064e539daef084ab3c295dd5e0e5cf381f5
4869c5e4d4b5ba6af434b62a2369ed58891c4eb0
/addons/script.module.myaccounts/lib/myaccounts/modules/realdebrid.py
51bc1b835dbf24a38836c98cd75f38487c82686e
[]
no_license
JohnnyBlackwater/Zephyr-mod
1bd73a04549da83965a0979a1957ab4f98b03a6d
2e9472793b45287b1114221f5dd1674ce886bca1
refs/heads/master
2023-08-31T22:54:47.827433
2021-11-15T03:01:01
2021-11-15T03:01:01
428,104,158
0
0
null
null
null
null
UTF-8
Python
false
false
7,648
py
# -*- coding: utf-8 -*- """ My Accounts """ import json import requests from myaccounts.modules import control from myaccounts.modules import log_utils FormatDateTime = "%Y-%m-%dT%H:%M:%S.%fZ" rest_base_url = 'https://api.real-debrid.com/rest/1.0/' oauth_base_url = 'https://api.real-debrid.com/oauth/v2/' device_cod...
[ "Johnnyblackx3@aol.com" ]
Johnnyblackx3@aol.com
8ce5ebdcabd08a1c8b6025447379690885f1cf64
8d47af9482444b07b52cf44cebcaf4b992df4d09
/agents/20_MinimumDeletionPRB/20.py
b1b6cc069d54a7b4fde85abf6f7b604dde9851ec
[]
no_license
w0lv3r1nix/retro-agents
f4dbce2db558c880b161062796e5397be65bdd10
c7f93a737dc6c6fc5d8343c099e14bd2bc97aaf1
refs/heads/master
2020-08-01T01:19:41.660018
2018-06-13T04:28:09
2018-06-13T04:28:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
#!/usr/bin/env python """ Train an agent on Sonic using an open source Rainbow DQN implementation. """ import tensorflow as tf from anyrl.algos import DQN from anyrl.envs import BatchedGymEnv from anyrl.envs.wrappers import BatchedFrameStack from anyrl.models import rainbow_models from anyrl.rollouts import BatchedPl...
[ "seungjaeryanlee@gmail.com" ]
seungjaeryanlee@gmail.com
28ae6f95b5d74f8010823e9769537abb4396d2e6
7e86b23ece3b8b1c7dd51f9ef484e27e2e6c28f4
/s3_test.py
1a9043fadceb305cc109fe0971e03e888c8b3a2c
[]
no_license
yu-shvets/nimble_test
3fc117b07fca7cc9f3dbfaf55e4dea53db352253
e53ee6fec60b5fdde26f315f6f17a5470408ed26
refs/heads/master
2022-12-14T17:19:34.996135
2018-11-04T12:08:49
2018-11-04T12:08:49
156,074,204
0
0
null
2022-12-08T01:16:31
2018-11-04T11:16:07
Python
UTF-8
Python
false
false
1,075
py
import boto3 from aws_credentials import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY import requests from botocore.exceptions import ClientError BUCKET_NAME = 'nimble-test' FILE_NAME = 'test.jpg' # A function to create S3 client def get_s3_client(): return boto3.client('s3', aws_access_key_id=AWS_ACCESS_KEY_ID, aws...
[ "andypandy12345@yahoo.com" ]
andypandy12345@yahoo.com
97c88a87831ea5025587eecee6a624e54a02a00d
0c469c4100fe9d352e83731688e388062a3c55c7
/Trees/314. Binary Tree Vertical Order Traversal.py
ad48f67b111efb1e471044713da78f8d225ce136
[]
no_license
asperaa/back_to_grind
9e055c7e6561384e5b7ae52f01063e4beb34a298
5ea1976b9d5c6d04800e296e45e8ff90fdde5001
refs/heads/master
2022-12-16T18:32:01.443743
2020-09-05T13:29:39
2020-09-05T13:29:39
254,910,528
1
0
null
null
null
null
UTF-8
Python
false
false
891
py
"""We are the captains of our ships, and we stay 'till the end. We see our stories through. """ """314. Binary Tree Vertical Order Traversal """ from collections import deque, defaultdict class Solution: def verticalOrder(self, root): if not root: return [] ans = [] queue = d...
[ "adityaankur44@gmail.com" ]
adityaankur44@gmail.com
03fcb65bc2ab9e67c5d78843fb0b948d53722eba
35efa5d80d640b1325193eba1b1abe8f98be7ff9
/examples/01-run-shell-command-on-remove-server/example.py
a2f15be56124dfdf3fceaa5575a7bbbcb6d418ec
[]
no_license
MacHu-GWU/Cloud-Engineer-Development-Best-Practice
4ae9e1b9e1b502bf625587e8b62ad04c3bc41bcf
351fd55f351755b9c30fc8bfe4f2dad39043b9c3
refs/heads/master
2022-05-07T14:28:06.333716
2020-01-23T19:32:05
2020-01-23T19:32:05
235,845,713
0
1
null
2022-03-29T21:57:58
2020-01-23T17:15:40
null
UTF-8
Python
false
false
1,084
py
# -*- coding: utf-8 -*- from fabric2 import Connection from invoke import Result from pathlib_mate import PathCls as Path _ = Result HOST = "ec2-54-165-167-139.compute-1.amazonaws.com" USER = "ec2-user" PEM_PATH = Path.home().append_parts("ec2-pem", "eq-sanhe-dev.pem").abspath # open a ssh session and close automat...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
3a8119658ac60bd471188eebaece5366615885f4
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil1190.py
5f6b2c7c676aa834125b5c9b60f91c4d89713d1f
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,268
py
# qubit number=5 # total number=53 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=3 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
52957ffcbf28fa83df422004325c636981a4af69
92bc2fec93b695a53bfaee5c37922d2b9309f220
/ex_videos/ex-020.py
6072fe772d6f7993a0fffb5c7368c4465c9b8682
[]
no_license
acaciooneto/cursoemvideo
6b95e14b49c93c9aabd936dc85734ddc21387360
c1d12a6625fd401968809286d817f821f21c7759
refs/heads/main
2023-01-05T04:23:07.557372
2020-11-01T16:24:18
2020-11-01T16:24:18
309,129,400
0
0
null
2020-11-01T16:27:53
2020-11-01T15:44:45
Python
UTF-8
Python
false
false
302
py
import random print('Hoje é dia de apresentação, vamos saber a ordem.') a1 = input('Diga um nome: ') a2 = input('Diga outro nome: ') a3 = input('Diga outro nome: ') a4 = input('Diga outro nome: ') lista = [a1, a2, a3, a4] random.shuffle(lista) print('A ordem de apresentação será:') print(lista)
[ "acaciooneto@gmail.com" ]
acaciooneto@gmail.com
e248b6133294bca0e1eccee04d656d81069c1f7f
f77d074e54750119dcfe1072b9651ad5a54185ec
/src/companies/models.py
b793e52b65afb8b2b89d8e283440df661d53be6d
[]
no_license
providenz/td-monitor
ba38e40ebfd04b0f130c80674a006623a8832cd7
87d832ad913b95672f3ca7a76feadc9648046eee
refs/heads/master
2023-03-26T01:27:56.711735
2021-03-22T08:37:24
2021-03-22T08:37:24
350,265,916
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
from django.db import models from model_utils.models import TimeStampedModel, StatusModel import uuid from model_utils import Choices class Company(StatusModel, TimeStampedModel): STATUS = Choices(("unverified", "Non vérifiée"), ("verified", "Vérifiée")) uuid = models.UUIDField( unique=True, default=...
[ "lp@providenz.fr" ]
lp@providenz.fr