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
5dacc908061af45c9cdd386cefd44c6f23e9bea9
1bc2a635a93b5bc84606edf9ac2226851cac9e6d
/rolling-gui.py
94053a32749bb8af8a2ce44486ab7997863fc25d
[ "MIT" ]
permissive
coolkat64/rolling
819149cbb1e11a455b93a030477f9da91e2f93e4
4c3ee2401128e993a52ac9b52cdbd32e17728129
refs/heads/master
2022-11-29T00:35:14.058665
2020-07-31T20:37:15
2020-07-31T20:37:15
285,312,272
0
0
MIT
2020-08-05T14:25:48
2020-08-05T14:25:47
null
UTF-8
Python
false
false
204
py
# coding: utf-8 from sqlalchemy.sql import default_comparator def main(): from rolling.gui.run import main as photographer_gui_run photographer_gui_run() if __name__ == "__main__": main()
[ "sevajol.bastien@gmail.com" ]
sevajol.bastien@gmail.com
8cc25453f6a74c516925cd6336d6cfc5fb51e5c1
515a97129ce1b2b8eecca4b2087fde8985b82d5b
/Code-Scraps/old_modules/SpiceFeeds/Advertisements.py
beda188c44933632d7b4f61293836275184facc7
[]
no_license
SpiceBot/scraps
3ad6e81ac75e2b6a684fea64eb7e75477b0f4f63
90125e1397b57ac87cae5f3e506363aa04ddffdc
refs/heads/master
2020-05-02T21:51:01.297114
2019-03-28T15:38:28
2019-03-28T15:38:28
178,232,887
0
0
null
null
null
null
UTF-8
Python
false
false
3,619
py
#!/usr/bin/env python # coding=utf-8 from __future__ import unicode_literals, absolute_import, print_function, division import sopel.module import sys import os from random import randint moduledir = os.path.dirname(__file__) shareddir = os.path.dirname(os.path.dirname(__file__)) sys.path.append(shareddir) from BotShar...
[ "sam@deathbybandaid.net" ]
sam@deathbybandaid.net
4d58aeda11c26fdd95e76fa20027c44e07eed599
b13ca274b4463c9900840ee6516094b7509b6041
/empower/apps/e2eqosmanager/algorithms/exponentialquantumadaptation.py
1a72f07dda32cb9d4c2b1b07847109214c2d15c8
[ "Apache-2.0" ]
permissive
imec-idlab/sdn_wifi_manager
09d206f2f649aa715752d3c44e011d3f54faf592
eda52649f855722fdec1d02e25a28c61a8fbda06
refs/heads/master
2021-06-23T08:03:22.482931
2020-12-03T11:30:10
2020-12-03T11:30:10
162,106,793
0
0
Apache-2.0
2019-03-27T16:23:31
2018-12-17T09:33:47
Python
UTF-8
Python
false
false
2,940
py
#!/usr/bin/env python3 # # Copyright (c) 2019 Pedro Heleno Isolani # # 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 app...
[ "pedroisolani@gmail.com" ]
pedroisolani@gmail.com
5c462392b871c1e216a91cdc40e909732cc9f8cd
e238db1ae3e641d84af17e9cf6a881eb43b20039
/a.py
6f737a52fd3c1d8d2e2e590d51737e14a909dc53
[]
no_license
RevathiRathi/Revat
1aa478f51b147e7b044d7519f54938eda0149619
792757fb56243846e3049889bf502014c62d658e
refs/heads/master
2020-04-15T05:01:36.873956
2019-07-18T13:40:34
2019-07-18T13:40:34
164,406,245
0
4
null
null
null
null
UTF-8
Python
false
false
147
py
#revs s=input() t=[] for i in s: t.append(s.count(i)) for i in range(0,len(t)): a=max(t) if t[i]==a: print(s[i]) break
[ "noreply@github.com" ]
RevathiRathi.noreply@github.com
74928235472f4f38d3c6323b463e1066f86919bf
fdb9bdc6c4ab2f14ba71e544493706d5e275899f
/fhir/resources/R4B/messageheader.py
80532470000078ea827d5b65e46dee0791e92402
[ "BSD-3-Clause" ]
permissive
nazrulworld/fhir.resources
6ae8aea8180c611b0c5050759c6dcdf63e4cb061
1fd6ea476b27b3fcb8c4ef8f23bc51cf161e69e3
refs/heads/main
2023-08-30T18:27:27.277249
2023-07-03T19:57:06
2023-07-03T19:57:06
165,297,877
256
83
NOASSERTION
2023-08-24T15:34:05
2019-01-11T19:26:41
Python
UTF-8
Python
false
false
26,908
py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/MessageHeader Release: R4B Version: 4.3.0 Build ID: c475c22 Last updated: 2022-05-28T12:47:40.239+10:00 """ import typing from pydantic import Field, root_validator from pydantic.error_wrappers import ErrorWrapper, ValidationError from pydant...
[ "connect2nazrul@gmail.com" ]
connect2nazrul@gmail.com
f0b562001a2fdb11fa8dc1bab18cd321327500b1
4546398a18590e4e182629fb55d185547dd6df0a
/2023/problems/guillaume/data/random_generator.py
0b2cd7f91cca91dc4c3ec1c4b0aedb4eb8066aa8
[]
no_license
ForritunarkeppniFramhaldsskolanna/Keppnir
352341fa97c6349af65b513c03171f3e706f7db2
65c8eb5358d8a49f956edf76c2d47b9372accc3c
refs/heads/master
2023-04-28T15:33:36.396225
2023-04-23T15:00:15
2023-04-23T15:00:15
78,303,702
1
2
null
null
null
null
UTF-8
Python
false
false
1,347
py
#!/usr/bin/python3 import sys import random random.seed(int(sys.argv[-1])) min_n = eval(sys.argv[1]) max_n = eval(sys.argv[2]) min_non_draws = eval(sys.argv[3]) max_non_draws = eval(sys.argv[4]) tp = sys.argv[5] n = random.randint(min_n, max_n) min_non_draws = min((min_non_draws, n)) max_non_draws = min((max_non_dr...
[ "bjarki.agust@gmail.com" ]
bjarki.agust@gmail.com
214b28f3d904980ec408c9cf9c6bc8e5727d741a
8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6
/venv/Lib/site-packages/mypy/typeshed/stdlib/3/_importlib_modulespec.pyi
a3cf0197992e4fc82dffb75581e346cf586ef642
[]
no_license
RodrigoNeto/cursopythonyt
fc064a2e6106324e22a23c54bdb9c31040ac9eb6
279dad531e21a9c7121b73d84fcbdd714f435e7e
refs/heads/master
2023-07-03T00:54:09.795054
2021-08-13T12:42:24
2021-08-13T12:42:24
395,646,798
0
0
null
null
null
null
UTF-8
Python
false
false
1,636
pyi
# ModuleSpec, ModuleType, Loader are part of a dependency cycle. # They are officially defined/exported in other places: # # - ModuleType in types # - Loader in importlib.abc # - ModuleSpec in importlib.machinery (3.4 and later only) # # _Loader is the PEP-451-defined interface for a loader type/object. from ...
[ "rodrigoneto.forseti@gmail.com" ]
rodrigoneto.forseti@gmail.com
612589466e47db3874b810aa5c365e41273ef98f
42efe06c233479b1882cc6e0e418c9ef6e0a1434
/CodingTest_Study1/week06/ex1149.py
8f2567cd9a2925229f49bd1b41e1bb474b224f59
[]
no_license
KimTaesong/Algorithm
146d53cb24b12355330b212edb87ec9d22123359
4c32275dd21fa692258e5348a02ce0c1c0b4ec91
refs/heads/master
2023-06-23T16:46:52.495443
2021-07-21T00:30:49
2021-07-21T00:30:49
194,765,200
8
2
null
2021-07-21T00:30:49
2019-07-02T01:20:10
Python
UTF-8
Python
false
false
511
py
n = int(input()) painting_cost = [[0, 0, 0]] dp_cost = [[0] * 3 for _ in range(n+1)] for i in range(n): painting_cost.append(list(map(int, input().split()))) for i in range(3): dp_cost[1][i] = painting_cost[1][i] for i in range(2, n+1): dp_cost[i][0] = painting_cost[i][0] + min(dp_cost[i-1][1], dp_cost[i-...
[ "taesongweb@gmail.com" ]
taesongweb@gmail.com
85c0b27292ad066cf2bf4e1ce48054ec9373c3aa
236d1d029767e4aa342df6d9dc425cb5a5247707
/wheelwhere_server/search/views.py
86d4b42815c8bff955f457ee768c888676655473
[]
no_license
KilJaeeun/wheelwhereserver
2f3ed05cbea4d34bde7af52acebbff01645be052
9428876a12ea2a8480f2811de793132555282db9
refs/heads/master
2022-12-08T02:51:53.357391
2020-08-27T05:59:41
2020-08-27T05:59:41
285,256,970
0
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
from django.shortcuts import render from django.db.models import Q # Create your views here. from facility.models import post from rest_framework.response import Response from rest_framework import permissions from rest_framework.views import APIView class SearchView(APIView): permission_classes = [permissions.All...
[ "rha3122@naver.com" ]
rha3122@naver.com
1ca24d79f42173ecdb2eae95b6d1da39aedafcb7
a72724b201b24f287555a695840d662b13a8dee5
/tv/models.py
1bb02afc9510c8b7f12d828a6732c17baa19cf0d
[]
no_license
webmalc/fh-django
f2bdfe63e2322abaf3523aff5d259495d3b1e1d9
0d11ba23c8def6dd1b03d8362730f8665915bd34
refs/heads/master
2020-05-14T02:38:37.757625
2016-01-29T14:45:28
2016-01-29T14:45:28
37,921,701
2
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
from django.db import models from fh.models import CommonInfo from django.core.urlresolvers import reverse class Channel(CommonInfo): """ Channel model """ CATEGORIES = { 'Kids': 'fa fa-child', 'Educational': 'fa fa-flask', 'Public': 'fa fa-group', 'Music': 'fa fa-music', ...
[ "webmalc@gmail.com" ]
webmalc@gmail.com
e7efc7032b31a23c99ddf62da954832182c4d66e
32965ef1ebf4f7a274db451ce1745ba1cb217b96
/dataapi_client/__init__.py
08f2f614418be8e958499695c0bc954c65ed4c1e
[ "MIT" ]
permissive
jmnel/dataapi-client
00cfc0025705b86ca0c9991938d85ead1bee9e27
808a1e20b5d9e21fb7348729442ff73d1fd7345d
refs/heads/master
2023-01-04T10:42:46.961907
2020-09-30T04:50:27
2020-09-30T04:50:27
297,760,515
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
from .api import ApiConfig from . import topk
[ "jmnel92@gmail.com" ]
jmnel92@gmail.com
c5f052cdc5e5b9335853d117d7cb4f7e9fc51bfd
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/update_topic_replica_response.py
b7c0fd01ef65b9330f0a828a975b3b977bb94d44
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
2,223
py
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class UpdateTopicReplicaResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
c5ff01e1f225a025e4de230512deabdb29b1f23d
36e555fb543c3ee4e1adb2959e6017a44af06538
/venv-creataku/bin/elbadmin
7c1928a3b695b6a2f8fa08bffdbff8fc34971be1
[]
no_license
sangyeob/creataku
0d55d1f603b7988035d2d3eedd0e522a53beca0f
05abe4b02723455b67a0b751711ed5873b14e643
refs/heads/master
2020-03-24T20:22:36.594111
2018-07-31T08:34:42
2018-07-31T08:34:42
142,974,886
0
1
null
null
null
null
UTF-8
Python
false
false
9,742
#!/Users/Sang/OneDrive/Developments/creataku/venv-creataku/bin/python # Copyright (c) 2009 Chris Moyer http://coredumped.org/ # # 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 restric...
[ "sy0414@gmail.com" ]
sy0414@gmail.com
cbdfece7cf5dd2fac0ad8e0e0cb8964e9e079a55
ddf3d1d82def56f4c176e4b07b8ee164ca7d8698
/glue/core/tests/test_state_objects.py
9fded0c4b63235316f80fca8f01df90374744687
[ "BSD-3-Clause" ]
permissive
sergiopasra/glue
1b604d32f4a5098278a44ca3bb9ada5b19a499ca
c25a217a122a11818382672c99cb21f57a30636f
refs/heads/master
2021-01-18T14:18:47.103223
2018-06-21T10:58:48
2018-06-21T10:58:48
24,183,011
0
0
null
null
null
null
UTF-8
Python
false
false
13,059
py
from __future__ import absolute_import, division, print_function import numpy as np from numpy.testing import assert_allclose from glue.external.echo import CallbackProperty, ListCallbackProperty from glue.core import Data, DataCollection from glue.utils import nanmedian from .test_state import clone from ..state_o...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
fcd45042b397c3fd5d3c2009a394807a3bdf8735
1b5f653955779f45e78ca6dda925518779d09e8f
/submissions/1029.py
509d2f71c2c5d9cfde862b3fbe5d8ef3da0849b1
[]
no_license
LeonardoSaid/uri-py-solutions
ad285f552934ead54ad2410e23113e84b0724f72
43c10c0e99e99d22b4b5ae2871e5d897f8823b42
refs/heads/master
2020-08-11T00:28:48.661578
2020-04-23T20:21:39
2020-04-23T20:21:39
214,453,627
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
#fast fib using memorization (https://stackoverflow.com/questions/18172257/efficient-calculation-of-fibonacci-series) def fib(n, computed = {0: 0, 1: 1}): if n not in computed: computed[n] = fib(n-1, computed) + fib(n-2, computed) return computed[n] def fib_numcalls(n): return 2*fib(n+1...
[ "noreply@github.com" ]
LeonardoSaid.noreply@github.com
da897abaf6951a947d5ed46d46c2df569d6e8f84
b21e073975c0f7a4f94c9f3523b8f5dcbf98a521
/pt/105/python/main.py
392d9a0de4cfd4ca9168a1beb26056c80b83cde8
[ "MIT" ]
permissive
franciscogomes2020/exercises
3ed6877f945463ed01c7fcd55271689171b0ad9d
8b33c4b9349a9331e4002a8225adc2a482c70024
refs/heads/master
2023-07-04T15:54:38.919185
2021-08-19T20:03:54
2021-08-19T20:03:54
396,992,428
3
0
null
null
null
null
UTF-8
Python
false
false
335
py
# Faça um programa que tenha uma função notas() que pode receber várias notas de alunos e vai retornar um dicionário com as seguintes informações: - Quantidade de notas - A maior nota - A menor nota - A média da turma - A situação (opcional) Adicione também as docstrings dessa função para consulta pelo desenvolvedor....
[ "71292537+franciscogomes2020@users.noreply.github.com" ]
71292537+franciscogomes2020@users.noreply.github.com
5e126dbaf3ae10daba0e35b740c00f217bfdbb10
d19cbf8a0483c17a9d9779535b99bd340c4c5712
/application/modules/transfert/api_trans.py
5c8549d57aed5f0a1f80b5b53d9fbad165cc2e66
[]
no_license
wilrona/CarryUp
1273eb7f0432f1cc33410853f4ebf3940c705b1c
3d4f65f45bf7859d10f2938559447559f3a5fa0a
refs/heads/master
2022-12-10T15:16:22.096920
2020-08-31T13:30:29
2020-08-31T13:30:29
291,722,947
0
0
null
null
null
null
UTF-8
Python
false
false
5,050
py
__author__ = 'User' from ...modules import * from ..bcmd.models_bcmd import Documents, LigneDoc from ..article.models_item import Articles, Variantes from ..magasin.models_mag import Magasins from ..compte.models_compte import Comptes prefix = Blueprint('api_transfert', __name__) def make_public(data): new_task...
[ "wilrona@gmail.com" ]
wilrona@gmail.com
b5df12202c5be1e05f8601f51ec94e42fcf45652
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_194/ch29_2019_03_11_18_45_05_167488.py
4861c2cff3d2bee950f8c15d4e416cd85e3bd815
[]
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
131
py
def calcula_aumento(x): if x > 1250: y == 1.10*x - x elif x <= 1250 and x > 0: y == 1.15*x - x return y
[ "you@example.com" ]
you@example.com
902c76802cddf915b918bec8411079d44a6b97fe
23b5337bf410415b7b150e3ad60cafc1578a0441
/05-Databases/03-Databases-in-Views/forms.py
46d0f70c26385f98a9d58e484797ab8fb4d5fd4c
[]
no_license
VerdantFox/flask_course
b8de13ad312c14229f0c3bc2af70e8609a3b00fb
47b167b54bc580734fa69fc1a2d7e724adfb9610
refs/heads/master
2021-09-10T05:01:47.385859
2020-02-24T21:07:05
2020-02-24T21:07:05
241,973,705
0
0
null
2021-09-08T01:40:59
2020-02-20T19:40:42
Python
UTF-8
Python
false
false
324
py
from flask_wtf import FlaskForm from wtforms import StringField, IntegerField, SubmitField class AddForm(FlaskForm): name = StringField("Name of Puppy:") submit = SubmitField("Add Puppy") class DelForm(FlaskForm): id = IntegerField("Id Number of Puppy to Remove:") submit = SubmitField("Remove Pupp...
[ "verdantfoxx@gmail.com" ]
verdantfoxx@gmail.com
6dc8f8821937127ecb968d5c8e6366ad6ad177f2
cd23b0457bc02a60b89f1f52783e56cc36d85b5e
/mutl_process/thread_context.py
0943d30e34be0cd4bf6b3790559039473f0fc2f9
[]
no_license
cluo/learingPython
65c7068613e1a2ae0178e23770503043d9278c45
54609288e489047d4dd1dead5ac142f490905f0e
refs/heads/master
2020-04-01T13:04:15.981758
2015-02-23T13:21:31
2015-02-23T13:21:31
28,440,969
4
0
null
null
null
null
UTF-8
Python
false
false
478
py
import threading import logging logging.basicConfig( level=logging.DEBUG, format = '(%(threadName)-10s) %(message)s' ) def worker_with(lock): with lock: logging.debug('Lock acquired via with') def worker_no_with(lock): lock.acquire() try: logging.debug('Lock acquired directly') finally: lock.release() l...
[ "luosheng@meizu.com" ]
luosheng@meizu.com
4bf2511aa7bcff09b14328f19d375bbb949a767e
3235145c84c48535bbf27dabfb3faa7359ed6fef
/google-cloud-sdk/lib/surface/ml_engine/models/create.py
31cf5ef3f4d2f8ba6cae149bbb0830eb0e2c4ab8
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
paceuniversity/CS3892017team1
b69fb10f5194f09748cd5bca48901e9bd87a55dc
f8e82537c84cac148f577794d2299ea671b26bc2
refs/heads/master
2021-01-17T04:34:04.158071
2017-05-09T04:10:22
2017-05-09T04:10:22
82,976,622
2
8
null
2020-07-25T09:45:47
2017-02-23T22:13:04
Python
UTF-8
Python
false
false
2,203
py
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "hanastanojkovic@gmail.com" ]
hanastanojkovic@gmail.com
4dbadf4946762250b2114648b1717804055f5d63
032021f2604815f8a71bbfb55af41d7fc8cfab9c
/crawlib/tests/dummy_site_crawler/sql_backend/db.py
e5c00da079bfb355ff6967330726daba635f7215
[ "MIT" ]
permissive
MacHu-GWU/crawlib-project
ddf5ad8f9971c87b51c618860be967e11f8f9700
b2963b7f6a36ee7f1ef95a6bf9d8cb746d9da991
refs/heads/master
2020-04-18T03:11:12.219272
2019-12-31T03:34:10
2019-12-31T03:34:10
66,882,484
1
1
MIT
2019-12-31T03:34:11
2016-08-29T21:35:35
Python
UTF-8
Python
false
false
449
py
# -*- coding: utf-8 -*- from sqlalchemy.orm.session import sessionmaker from sqlalchemy_mate import EngineCreator from .config_init import config engine = EngineCreator( host=config.DB_HOST.get_value(), port=config.DB_PORT.get_value(), database=config.DB_DATABASE.get_value(), username=config.DB_USERN...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
bb954328311c88612b3a3eab48ae0a1f1f911e36
e0fa466605d4031260fb2401244ad2de2a07c393
/ch16/tsUclnt.py
1dd0749fd68163e671e4ef314af51b6ecde08014
[]
no_license
saturnisbig/corepynotes
aef2f9ed8d387d51ccb64bb264891be6c8f909d7
c6d883b57e5ffc485f997e87178243a8b71441c2
refs/heads/master
2020-04-29T10:36:15.608223
2019-03-17T08:19:39
2019-03-17T08:19:39
176,066,065
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
#!/usr/bin/env python # _*_ coding: utf-8 _*_ from socket import * REMOTE_HOST = '66.112.209.81' PORT = 21566 BUFSIZE = 1024 ADDR = (REMOTE_HOST, PORT) udpCliSock = socket(AF_INET, SOCK_DGRAM) while True: data = raw_input('> ') if not data: break udpCliSock.sendto(data, ADDR) data, addr = ud...
[ "i.kenting@gmail.com" ]
i.kenting@gmail.com
faa137f479e796189e99c7f83a8f08674f538903
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/51/usersdata/75/20050/submittedfiles/listas.py
7cec7cbdbc35e7ae3247f73e35ff47a5122308f5
[]
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
603
py
# -*- coding: utf-8 -*- from __future__ import division def maior_grau (lista): if i in range (0,len(lista)-1,1): diferenca=lista[i]-lista[i+1] if diferenca<0: diferenca=diferenca*(-1) if diferenca>diferenca: return diferenca n=int(inpu...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
003c2447926534f7845b1498c135b13d428a1509
481a65ea079ca021e06f0fd4efa707ec91fa0131
/setup.py
02b0c9463f47bbe61561d30c4e464ba0ec6700cc
[]
no_license
maejie/scholarNetwork
3c51576c7bfc2623b6ad4ad83f6add3dc9546c9c
11ccd802f9825cfbcfad70b864ac28f2634df593
refs/heads/master
2020-02-26T13:32:28.348775
2015-05-14T03:43:11
2015-05-14T03:43:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,226
py
from setuptools import setup, find_packages # Always prefer setuptools over distutils from codecs import open # To use a consistent encoding from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the relevant file with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8...
[ "wangchj04@gmail.com" ]
wangchj04@gmail.com
cf8c8154324e44e0388b650a8c2a31eb18d9c4c3
e4d3d4d93b9d575a87126bd7d2fb20870d83684c
/manage.py
5aff1a887b296848e41adbc73c42ef9c7d381455
[]
no_license
ByAvatarOff/Tourizm-django-site
8a02cb9d8185ab8ae77480a1c7c86a25d226fe0f
dd2066b379bbee3d6e2ce4d24c81556c85fc3d49
refs/heads/master
2022-12-21T23:37:37.276395
2020-10-01T13:00:21
2020-10-01T13:00:21
300,279,983
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Gosha.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
[ "tsp7439@gmail.com" ]
tsp7439@gmail.com
56f64bbca3a06b504a457f609ba0d51093b8b8fb
8ed4bf9fbead471c9e5f88e4d18ac432ec3d628b
/hackerrank/algorithm/implementation/kangaroo.py
1352c7d1ad39190658665eb1a53de08a7bdc6bfe
[]
no_license
hizbul25/programming_problem
9bf26e49ed5bb8c9c829d00e765c9401222fb35c
2acca363704b993ffe5f6c2b00f81a4f4eca7204
refs/heads/master
2021-01-10T22:28:26.105787
2018-01-21T16:45:45
2018-01-21T16:45:45
65,394,734
1
0
null
null
null
null
UTF-8
Python
false
false
195
py
import sys x1, v1, x2, v2 = input().strip().split(' ') x1, v1, x2, v2 = [int(x1), int(v1), int(x2), int(v2)] if v1 > v2 and ((x2 - x1) % (v2 - v1) == 0): print("YES") else: print("NO")
[ "hizbul.ku@gmail.com" ]
hizbul.ku@gmail.com
573a830546c745be9960037efcde0ebaa64e58a4
f9a8aecd848bcc79052ca068cc73850a63e6dfcf
/inference/model/latent_features/joint/__init__.py
faa17fa207426457c747d56774c5c4ab99d36d90
[ "MIT" ]
permissive
khoehlein/fV-SRN-Ensemble-Compression
537981a1cd31565bb504b00ca730e8bf87e7e0ef
2780b83d2594c1b38b57ab58087b46bee4b61e8b
refs/heads/master
2023-04-17T09:42:48.037397
2022-09-07T08:55:01
2022-09-07T08:55:01
532,983,107
4
1
null
2022-09-06T14:39:26
2022-09-05T16:43:24
Python
UTF-8
Python
false
false
81
py
from .joint_latent_space import JointLatentFeatureVector, JointLatentFeatureGrid
[ "kevin.hoehlein@tum.de" ]
kevin.hoehlein@tum.de
232e12f3a83cc3ace60e4e2722e476b207515369
60e4baae4d6b323b3d3b656df3a7b0ea3ca40ef2
/project/apps/community/forms.py
eaf8d51edeca2b91c5abcef583e9295120a73913
[]
no_license
Burzhun/Big-django-project
a03a61a15ee75f49324ad7ea51372b6b013d1650
1a71f974b7b5399a45862711b5f858c0d4af50d2
refs/heads/master
2020-04-11T00:16:06.211039
2018-12-11T19:13:38
2018-12-11T19:13:38
161,381,283
0
0
null
null
null
null
UTF-8
Python
false
false
7,514
py
from django.contrib.auth import password_validation from django.conf import settings from django import forms from .models import User from .choices import COUNTRY_CHOICES from django_resized.forms import ResizedImageField from .fields import ReCaptchaField from .widgets import ReCaptchaWidget class UserCreationForm(...
[ "burjunov@yandex.ru" ]
burjunov@yandex.ru
2bb31beed6b284eb1d71957618d1eb8c31c56355
035c7cfbd62a9c06f8dbbb4a92607cf2b2570689
/src/systemidentification/coefficient_plot.py
9c94331149a3134488ea65b674b5ea5794be7296
[ "BSD-3-Clause", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
NikhilPappu/dissertation
60001328c619caf5f966368ea4a87f3086a29129
0a93ada92fa1a964c9de89bcdb558c82a9ef252b
refs/heads/master
2020-03-24T00:50:05.493962
2017-02-07T02:01:17
2017-02-07T02:01:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,846
py
#!/usr/bin/env python import sys sys.path.append('..') from load_paths import read import os import cPickle from numpy import linspace, sqrt, zeros from scipy.io import loadmat import matplotlib.pyplot as plt from matplotlib import rcParams from bicycleid import data, plot, model import dtk.bicycle params = {'axes.l...
[ "moorepants@gmail.com" ]
moorepants@gmail.com
2327963633982b1d2c2485fd724170e257c0d587
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/enums/types/ad_group_type.py
13af772070562ce5a6957bdb7c6b267f66fab80e
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,675
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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
ff30f41fe00254920a0ae30820c764f2d75508fc
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_8015.py
7c024cd497964fc77ff02bd55b75202e8c8baea2
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
104
py
# Using a struct as a function argument with the python ctypes module # WCHAR ReparseTarget[1];
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
ab3c6b1ef110de9dfe5e006d756c82f119ae6354
72b00923d4aa11891f4a3038324c8952572cc4b2
/python/test/socket/socket_sockpair.py
d3c8cc0437efa47725e06fd162ddc41a9c0dc352
[]
no_license
taowuwen/codec
3698110a09a770407e8fb631e21d86ba5a885cd5
d92933b07f21dae950160a91bb361fa187e26cd2
refs/heads/master
2022-03-17T07:43:55.574505
2022-03-10T05:20:44
2022-03-10T05:20:44
87,379,261
0
0
null
2019-03-25T15:40:27
2017-04-06T02:50:54
C
UTF-8
Python
false
false
505
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import socket import os parent, child = socket.socketpair() pid = os.fork() if pid: print('in parent, sending message') child.close() parent.sendall(b'ping') response = parent.recv(1024) print('response from child:', response) parent.close() el...
[ "taowuwen@gmail.com" ]
taowuwen@gmail.com
a51792d4ad92eaaec45651912b1cd8c976ed9d40
dafaa64cf49c76ff00ef86d77f162f98279c0bc6
/chef/tests/test_data_bag.py
5cc2ae3321f922e1cc7d6cbb924cfbe9e84a4896
[]
no_license
SeanOC/pychef
93c08992d4a85b3002348aa588cf5e460e69402a
bc1b39586f567a5539b92570c4d38ceb02b23b6e
refs/heads/master
2021-01-21T01:16:02.079784
2011-01-30T16:57:37
2011-01-30T16:57:37
1,309,387
0
0
null
null
null
null
UTF-8
Python
false
false
1,047
py
from chef import DataBag, DataBagItem, Search from chef.exceptions import ChefError from chef.tests import ChefTestCase class DataBagTestCase(ChefTestCase): def test_list(self): bags = DataBag.list() self.assertIn('test_1', bags) self.assertIsInstance(bags['test_1'], DataBag) def test_...
[ "noah@coderanger.net" ]
noah@coderanger.net
31ead3576d9ce5a12d1a4e90600d913aa66b6126
70cdf0741a22c678401a306229003bf036ffe5a6
/ocbind/network_instances/network_instance/protocols/protocol/ospfv2/areas/area/interfaces/interface/mpls/igp_ldp_sync/__init__.py
4054eb3c475093190086733a41aabe692f6bccdb
[]
no_license
zsblevins/nanog81-hackathon
5001e034339d6b0c6452ae2474f06916bcd715cf
1b64fd207dd69837f947094fbd6d6c1cea3a1070
refs/heads/main
2023-03-03T09:39:28.460000
2021-02-15T13:41:38
2021-02-15T13:41:38
336,698,856
2
0
null
null
null
null
UTF-8
Python
false
false
29,830
py
# -*- coding: utf-8 -*- from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListTy...
[ "zblevins@netflix.com" ]
zblevins@netflix.com
08c01252c948b5f3627cadfc766dcc902d5bbeae
85b102bc9c0dcc04dd469297b32bad9e38065e28
/backend/auth_app/serializers.py
44c75c927350cf2d7ac29e284add714b855212dc
[]
no_license
ahrisagree/AHRIS
60fc58279bf594ba9830e21df25aa7c3c90e6bb9
73c480b3d44231acfcc43c0292e0b514654aeb27
refs/heads/master
2023-06-06T11:55:33.100575
2021-06-29T06:26:08
2021-06-29T06:26:08
354,016,384
0
0
null
2021-06-29T06:26:09
2021-04-02T12:43:21
JavaScript
UTF-8
Python
false
false
2,782
py
from rest_framework import serializers from django.utils.translation import ugettext_lazy as _ from allauth.account.adapter import get_adapter from allauth.account.utils import setup_user_email from rest_auth.registration.serializers import RegisterSerializer as RestRegisterSerializer from backend.utils import get_or_n...
[ "leonardoeinstein2000@gmail.com" ]
leonardoeinstein2000@gmail.com
b487cd0e45417baac21ff8cc5b41865294c11429
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp/CISCO-SESS-BORDER-CTRLR-STATS-MIB.py
7bb8ff71ed4c748fe583cd4d198ff53dfbaa86ca
[ "Apache-2.0" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
38,853
py
# # PySNMP MIB module CISCO-SESS-BORDER-CTRLR-STATS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-SESS-BORDER-CTRLR-STATS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 17:55:14 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using P...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
2196245cde307d3cbc0fd7166ef4b6dbe19e8cbf
5339440a3c9f1318f8feef223d88955617eb2b93
/apps/its_quote_dash/views.py
c686b63a2d05576076586418e8165cbf85156c68
[]
no_license
Komaldhall/Quodophile
372c8872ac93aae23817e834557697882f4bcc64
a14d230b993ef282fb63369f1994ff4896c0157c
refs/heads/master
2020-04-16T09:29:55.882991
2019-01-13T08:44:39
2019-01-13T08:44:39
165,466,388
1
0
null
null
null
null
UTF-8
Python
false
false
8,568
py
from django.shortcuts import render, redirect from django.contrib import messages from .models import * import datetime import bcrypt import re EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') now = datetime.datetime.today().strftime("%Y-%m-%d") def register(request): if request.method =...
[ "komal.dhall7@gmail.com" ]
komal.dhall7@gmail.com
cc70794577262d87f2821ca1dedabcafa9149ed5
b09bb602f921064a00835038ce593ed237ae9b16
/home/forms.py
ba0c456654920c24a92c72f6ce6894c646294b79
[]
no_license
gauravsaxena1997/Karyavahi
03f04febe4d726b348c38bc3b8e0e3e7e0113b68
6f240234579153aced358d225b45c81b1bc87888
refs/heads/master
2020-03-21T06:10:18.854809
2018-06-28T18:16:36
2018-06-28T18:16:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
from django.contrib.auth.models import User from django import forms class userinput(forms.Form): q=forms.CharField(required=True,max_length=25,label='Input #hashtag') class UserForm (forms.ModelForm): password = forms.CharField (widget=forms.PasswordInput) class Meta: model = User fields = ...
[ "gauravsaxena.cs@gmail.com" ]
gauravsaxena.cs@gmail.com
965b1741916b9fc0c678a0f919e49d5749144d7e
72dc7d124cdac8f2dcab3f72e95e9a646154a6a0
/byceps/services/ticketing/ticket_user_management_service.py
e9bf08d17b9df30a3c46ca20e8084f70f9bad11c
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
m-ober/byceps
e6569802ee76e8d81b892f1f547881010359e416
4d0d43446f3f86a7888ed55395bc2aba58eb52d5
refs/heads/master
2020-11-30T23:31:33.944870
2020-02-12T23:53:55
2020-02-12T23:56:04
40,315,983
0
0
null
2015-08-06T16:41:36
2015-08-06T16:41:36
null
UTF-8
Python
false
false
3,084
py
""" byceps.services.ticketing.ticket_user_management_service ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2020 Jochen Kupperschmidt :License: Modified BSD, see LICENSE for details. """ from ...database import db from ...typing import UserID from ..user import service as user_service fro...
[ "homework@nwsnet.de" ]
homework@nwsnet.de
bb0772a6c4a86996f2c626ca4c8586ad3b56e2e6
4946ea045878d30d8c68ac9b867e1b624608a0c7
/users/migrations/0002_create_profile_existing_users.py
0869a8e3da799fd2beb72ff0db752677b963f69b
[ "MIT" ]
permissive
jeanettemariemurphy/directory-cms
6f4a7f5cdd24b891745d4f2dd5f8aa94d3b9b298
25c98d13e409c28998724d19fe1c352f7dc19f1d
refs/heads/master
2020-06-13T12:25:52.083225
2019-06-27T10:19:11
2019-06-27T10:19:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-05-07 10:51 from __future__ import unicode_literals from django.contrib.auth import get_user_model from django.db import migrations from users.models import APPROVED def set_existing_users_as_approved(apps, schema_editor): User = get_user_model() ...
[ "alessandro.denoia@digital.trade.gov.uk" ]
alessandro.denoia@digital.trade.gov.uk
eba28d061f1ca38c49e2d42e932da20989443234
661721fa052febc3bb955a04888fdf770e1727b9
/read_10_buf.py
37a969d42aca7ea51ef7f5f4ee0fdeb8d32b4d36
[]
no_license
sumitparw/leetcode_practise
3f25366996702609e9644eff7b0e8f24de05a2e0
c98b49c4a29b05ac21b6ae66b5d0e6b7f25a2c1a
refs/heads/master
2020-08-12T12:24:25.092547
2020-02-01T19:36:53
2020-02-01T19:36:53
214,766,546
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
filename = "xyz.txt" buffer = '' with open(filename) as f: while True: c = f.read(10) if not c: break buffer = buffer + c print(buffer)
[ "46736751+sumitparw@users.noreply.github.com" ]
46736751+sumitparw@users.noreply.github.com
a730f5aec6b1037e07a94eedf86850ee5d5da30f
01857ef455ea60eccaf03b5a9059ec83e9803c2e
/nicegui/tailwind_types/background_color.py
501965091cc66d3eafcc5126673744ea5026a591
[ "MIT" ]
permissive
zauberzeug/nicegui
f08312cc1f393deca79e0e84a2506d3a35efff16
c61b1315f29d51e26cc1168207f5616b302f8df0
refs/heads/main
2023-08-18T18:09:30.937322
2023-08-18T15:04:00
2023-08-18T15:04:00
365,250,183
5,128
271
MIT
2023-09-14T01:50:56
2021-05-07T13:55:05
Python
UTF-8
Python
false
false
4,213
py
from typing import Literal BackgroundColor = Literal[ 'inherit', 'current', 'transparent', 'black', 'white', 'slate-50', 'slate-100', 'slate-200', 'slate-300', 'slate-400', 'slate-500', 'slate-600', 'slate-700', 'slate-800', 'slate-900', 'slate-950', ...
[ "falko@zauberzeug.com" ]
falko@zauberzeug.com
8c5b8f0340d21b17ae0804ac332a38a50c15baa9
a0556d5e8368bf171b9019aba03e65b06e8c12e4
/secao12_modulos_e_pacotes/geek/university/geek3.py
5c1e707e9535d9582c50e3c9ac27f866491b0e98
[]
no_license
RianMarlon/Python-Geek-University
f1c9db588f23ce8e6699d1352ebfb3428e0ab1ec
3be7ec5c35bf74b1b2152de63db95bee33ee1719
refs/heads/master
2020-06-25T04:41:52.911513
2020-02-01T16:18:35
2020-02-01T16:18:35
199,204,603
23
8
null
null
null
null
UTF-8
Python
false
false
36
py
def funcao3(): return 'Geek'
[ "rianmarlon20@yahoo.com" ]
rianmarlon20@yahoo.com
5f040b82054005a76c51c1006456b5a72c0e283a
ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31
/repos/indico-master/indico/modules/events/editing/models/editable.py
d1328c69f73c9fb4e11e59e28f4f86e16a39990c
[ "MIT" ]
permissive
babiato/flaskapp1
84de2d0b26a54f5820d3bbe97926782ad41e005c
530beb9e3b8516e0e93960b99521c23a523ef546
refs/heads/master
2023-02-26T16:36:49.760632
2021-02-04T09:08:40
2021-02-04T09:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,774
py
# This file is part of Indico. # Copyright (C) 2002 - 2021 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from sqlalchemy import orm from sqlalchemy.event import listens_for from sqlalchemy.orm import column_prop...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
91a43d6b4ce8483705b6463ee0ce47c2bcb62dfd
ee6acbd5fcd0fcd16230e96a4a539de41a02c97e
/operators/kubefed/python/pulumi_pulumi_kubernetes_crds_operators_kubefed/scheduling/v1alpha1/_inputs.py
151deeb1cd170868eccfa41ce88d7e5f05c7c50b
[ "Apache-2.0" ]
permissive
isabella232/pulumi-kubernetes-crds
777e78137aaf6525a44b61a02dccf91bf0d87a14
372c4c0182f6b899af82d6edaad521aa14f22150
refs/heads/master
2023-03-15T04:29:16.039753
2020-12-30T19:35:54
2020-12-30T19:35:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,116
py
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ '...
[ "albertzhong0@gmail.com" ]
albertzhong0@gmail.com
2e5b09aa02c5be1df2acfd4bd03e9c17cfc49f4a
741ee09b8b73187fab06ecc1f07f46a6ba77e85c
/AutonomousSourceCode/data/raw/squareroot/9bc2ac9b-fa9f-4fac-a960-1f9639102269__Babylon_sqrt.py
1a10bb951e4c04d378758c4a075585b5a4778d26
[]
no_license
erickmiller/AutomatousSourceCode
fbe8c8fbf215430a87a8e80d0479eb9c8807accb
44ee2fb9ac970acf7389e5da35b930d076f2c530
refs/heads/master
2021-05-24T01:12:53.154621
2020-11-20T23:50:11
2020-11-20T23:50:11
60,889,742
6
1
null
null
null
null
UTF-8
Python
false
false
295
py
def square_root(a): """Return the square root of a. >>> square_root(9) 3.0 """ x = 1 while x * x != a: x = square_root_update(x, a) return x def square_root_update(x, a): return average(x, a/x) def average(x, y): return (x + y)/2
[ "erickmiller@gmail.com" ]
erickmiller@gmail.com
8f6cbe3b5a97cfbd4419a1be1795d359956892fa
53eee7eb899cb518983008532257037fb89def13
/51.n-queens.py
a39e73f83fcbef748541b1370f3597e7ac75d757
[]
no_license
chenxu0602/LeetCode
0deb3041a66cb15e12ed4585bbe0fefce5dc6b26
3dc5af2bc870fcc8f2142130fcd2b7cab8733151
refs/heads/master
2023-07-05T19:26:21.608123
2023-07-02T08:35:35
2023-07-02T08:35:35
233,351,978
2
0
null
null
null
null
UTF-8
Python
false
false
1,532
py
# # @lc app=leetcode id=51 lang=python3 # # [51] N-Queens # # https://leetcode.com/problems/n-queens/description/ # # algorithms # Hard (43.46%) # Likes: 1437 # Dislikes: 63 # Total Accepted: 177.9K # Total Submissions: 408.2K # Testcase Example: '4' # # The n-queens puzzle is the problem of placing n queens on ...
[ "chenxu@Chens-iMac.local" ]
chenxu@Chens-iMac.local
8ece111453a17615bb8a45167b123bf01ff41168
4bfc3c184e736bb68dccbb6d5657f11c950df002
/tests/operators/vector/test_scatter_nd_ad_001.py
895444892735fed5ec3577c5ba74bc149e31e5f8
[ "Apache-2.0", "Zlib", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference", "Unlicense", "BSD-2-Clause" ]
permissive
laekov/akg
159aa64ef6135222b5af784c408731275dfa9bdb
5316b8cb2340bbf71bdc724dc9d81513a67b3104
refs/heads/master
2022-12-01T04:09:03.548063
2020-08-19T08:38:57
2020-08-19T08:41:28
288,678,192
0
0
Apache-2.0
2020-08-19T08:41:30
2020-08-19T08:36:53
Python
UTF-8
Python
false
false
2,249
py
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
[ "ckey.chengbin@huawei.com" ]
ckey.chengbin@huawei.com
55513fc2b5ef956726d964dc9117f62ffa961065
bfe394e1b7d8a2ff34e37ae65df8cc52070c69d8
/Source/External/DataProject/Data_PIREP.py
be0e8ee121eef155004d8c07ca2cb9b6d629a481
[]
no_license
Jack-GVDL/PredictModel
bb32d37a5c18a656d5ebed36098ba3fac435fb96
20495072fb776c31c4bb5f2ddeecda1b43fcc52e
refs/heads/main
2023-04-30T05:47:34.364328
2021-05-11T09:25:13
2021-05-11T09:25:13
366,314,664
0
0
null
null
null
null
UTF-8
Python
false
false
4,396
py
from typing import * from ..DataChain import * from .Data_Raw import DataKeyLib_Raw class DataKey_PIREP(DataKey): def __init__(self): super().__init__() # data self._name = "PIREP" # key-index self.date: int = -1 self.time: int = -1 self.latitude: int = -1 self.longitude: int = -1 self...
[ "33114105+Jack-GVDL@users.noreply.github.com" ]
33114105+Jack-GVDL@users.noreply.github.com
186471bfecb77345d925d923453b48eb33a11159
666a077ce8ba97d8d234bd18d5d02cdc8ccb11e0
/src/opencmiss/neon/ui/delegates/spinboxdelegate.py
f6c2141213f50bd10b94a5d3a27028d88f73428e
[ "Apache-2.0" ]
permissive
rchristie/neon
1c8a4c428991d4a6d872c00e3336b4fb1fa005f0
3d59f24f680cf981d7221375a34cdff8d73f82a2
refs/heads/develop
2021-01-21T07:45:01.603190
2016-08-01T03:46:23
2016-08-01T03:46:23
47,146,276
0
0
null
2015-11-30T21:09:46
2015-11-30T21:09:46
null
UTF-8
Python
false
false
1,491
py
''' Copyright 2015 University of Auckland 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 agre...
[ "h.sorby@auckland.ac.nz" ]
h.sorby@auckland.ac.nz
16d624c7e137c1f1d6d1854d6e049c5ddbc7b9b7
2d293a15dd64916f1f1e33e5a894d8ee96757072
/questions/q26_rmDuplicFromSortedArray.py
5cd4e53679c35656dc0e76ddbb61b3e529a22162
[]
no_license
liang12k/leetcodeoj
66238b76cf64ae0aeef7454fe2d449a781f461a7
d432d1ac17e96f8a6f6a2d327020b58c46c34ecb
refs/heads/master
2021-01-10T08:39:01.181646
2016-02-26T04:08:50
2016-02-26T04:08:50
36,776,738
0
0
null
null
null
null
UTF-8
Python
false
false
1,258
py
''' ::KEY:: need to edit 'nums' list input! Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place with constant memory. For example, Given input array nums = [1,1,2], Your functi...
[ "kenneth.liang12@gmail.com" ]
kenneth.liang12@gmail.com
37baf800877b4e64c1ed930a78180a30033ad4d9
7730655277bcb97ce0f36e2a9cb022e0706c9c19
/mltoolkit/mlmo/utils/helpers/computation.py
a9752cd94c1e5754e3e7113531587750cac06b5a
[ "MIT" ]
permissive
developerdrone/Copycat-abstractive-opinion-summarizer
9de3ade697936934a0a9804bf35ddadaf55ce3f0
04fe5393a7bb6883516766b762f6a0c530e95375
refs/heads/master
2023-07-29T07:54:14.955146
2021-09-02T06:08:24
2021-09-02T06:08:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
import numpy as np def cosine_sim(a, b): return np.dot(a, b) / (np.linalg.norm(a) * np.linalg.norm(b)) def score_candidates(target_reprs, cand_reprs, score_func): """ Scores every target repr against every candidate repr using a provided score function. :return: scores: [target_count, candidate_...
[ "bulletdll@gmail.com" ]
bulletdll@gmail.com
cb1e3e04477b93b669491773c0448f16baa2508d
460b4ec7a8e9332567bae637797c3cf29619d651
/tfbrain/loss.py
467da923941aeb65a45b3c83f617940b8c432dde
[]
no_license
agajews/tfbrain-v2
e1a79d805007913afb91dd60c73bdf64beba4122
86f595bf61d41f70af2bcc6ac3cd6abd6aa0615f
refs/heads/master
2021-01-13T09:10:02.249595
2016-09-26T13:04:02
2016-09-26T13:04:02
69,250,088
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
import tensorflow as tf class Loss(object): def __init__(self, **kwargs): pass def get_loss(self): return self.loss def build(self, net, y, mask=None): '''y_hat: Layer subclass y: a TF placeholder representing the expected output''' self.net = net self.y_h...
[ "agajews@gmail.com" ]
agajews@gmail.com
0e3087a5b0ef8ba6523aa05734fbd7b086d58c40
90f8f9d7a854861d1aed8f10ee8c15c0b41235b5
/aliyun-python-sdk-green/aliyunsdkgreen/request/v20180509/DeleteSimilarityLibraryRequest.py
9224c04b650407a9fc43d68c0d1aa02d06f76952
[ "Apache-2.0" ]
permissive
playbenz/aliyun-openapi-python-sdk
3c0c5e60f49047a97003998634e68b279a294034
c74f9a9c6ae751a49c2b19744cf2c8b47ddba47e
refs/heads/master
2020-07-02T20:30:04.063558
2019-08-08T08:13:07
2019-08-08T08:13:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,253
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
10d5a8b188c002f1aac4ded62f1e0871aafb0b34
f4384a8cc6444ee6036e52be86be3b3a7e1a411f
/src/build/openai_/openai_examples_projects/cartpole_openai_ros_examples/catkin_generated/pkg.installspace.context.pc.py
fe88093a9a5b0d8ae481c91470d02c7655479c9f
[]
no_license
ava6969/BaxterDRL
ad1ba4693d86747c4bfe9f0f11ca8899f9ae16d4
1a38a2d4ff697d0b0312582fb944feae9a293b23
refs/heads/master
2023-01-23T13:53:09.791157
2020-11-16T02:11:24
2020-11-16T02:11:24
309,526,742
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "cartpole_openai_ros_examples" PROJECT...
[ "ava6969@rit.edu" ]
ava6969@rit.edu
7b351dc5896f7459d7a71a80439a10c009299a66
b80b5026d926acd9c5128c04e14f725301c7aa87
/tests/test_dynamodb.py
8324b3a016f4dc7da9dda7e0f34f06c48d54daf3
[ "MIT" ]
permissive
sxencon/slam
3d209ae87f0f6fc21fef5b0498a49641679994ed
e76153211a128e2600d4fb887126dfe2a0b10ea2
refs/heads/master
2021-01-23T13:10:13.300442
2017-05-24T06:39:31
2017-05-24T06:39:31
93,233,179
2
0
null
2017-06-03T07:59:43
2017-06-03T07:59:42
null
UTF-8
Python
false
false
7,356
py
from copy import deepcopy import mock import unittest from slam.plugins import dynamodb from .test_deploy import config as deploy_config config = deepcopy(deploy_config) config.update({'dynamodb_tables': dynamodb.init.func(config, 't1,t2')}) class DynamoDBTests(unittest.TestCase): def test_init(self): p...
[ "miguel.grinberg@gmail.com" ]
miguel.grinberg@gmail.com
c88c7232837375bcd124d5f36ef61d3163ab3c82
576f7b951191d6095df8bc2691c8ad7045d55447
/Django/banglai_django/mysite/polls/urls.py
15e54bb54c302350a6a471eb238f97f49460855a
[]
no_license
golam-saroar/Python_Learning
f555368420ef65ceef9a80349b9c3bae2c6842b9
c077a8c2e5738b47cb301f07806af5a4c6714dff
refs/heads/master
2021-09-22T09:31:35.907800
2018-09-07T09:14:25
2018-09-07T09:14:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
from django.conf.urls import url from polls import views
[ "golamsaroar89@gmail.com" ]
golamsaroar89@gmail.com
019b11de4d0556da2167bfff1479169d920b15fd
bd62843278ffc297ef8f6d75a931f1f4ca4caaa7
/exercises/staircase_20180720.py
9c1efaa04e361e3b7f18cf159a72fc529678d5b8
[]
no_license
raysmith619/Introduction-To-Programming
d3bae042b4fc17bd56e8631a4d660233d8cd165b
bedc16eb5f6db0ad3b313355df6d51b5161c3835
refs/heads/master
2023-07-19T08:43:41.229893
2023-07-15T19:22:28
2023-07-15T19:22:28
132,622,195
3
0
null
null
null
null
UTF-8
Python
false
false
377
py
#staircase.py 18Jul2018 """ Write a function staircase(first_n, last_n) """ def staircase(first_n, last_n): sum = 0 n = first_n while n <= last_n: sum = sum + n n = n + 1 return sum print("1,10 ==> ", staircase(1,10)) print("1,100 ==> ", staircase(1,100)) print("5,5 ==> ...
[ "noreply@github.com" ]
raysmith619.noreply@github.com
8b80a972bf22566cb02c31aa33521f89c7fc9fcd
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/retail/v2beta/retail-v2beta-py/google/cloud/retail_v2beta/types/purge_config.py
c9e1d7f387900608f425ea6351450c0f5396b4cc
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,516
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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
b06aa32802ade3e4e698ad2bc91fb6f89b5526cd
537d28fb2142331e27c84ebf2c16bad77aceb24e
/keras/keras16_lstm_test.py
501629772dd401f2859619456181d656aad3964b
[]
no_license
gema0000/bit2019
c27c3cec8d8d3a0907ade41523ce1c5ee86337b6
2f44ad3956b387186935374d9a488ad40a13bcaf
refs/heads/master
2020-07-03T05:19:41.051447
2019-10-26T23:56:25
2019-10-26T23:56:25
201,796,021
4
2
null
null
null
null
UTF-8
Python
false
false
79
py
## keras15_lstm 의 test값을 ## 최대한 근접한 predict값을 만든다.
[ "gema0000@naver.com" ]
gema0000@naver.com
dc23c83e5ce4c01426137b74d439e7617662dd9f
5cdcae079a912011d177457bb4da31f298d53354
/lab4/env_makers.py
09438dd0e0fab116c94706a8e04422194c5c38a1
[ "MIT" ]
permissive
sobamchan/drl-camp
cb7afedea86ed0236d291cc187803d902439dc5a
d469cc9732d4c150e9625c710cbeeaeb016357b6
refs/heads/master
2022-03-03T23:19:23.480865
2019-11-10T11:30:12
2019-11-10T11:30:12
108,625,985
0
0
null
2019-11-10T11:30:13
2017-10-28T06:39:51
Jupyter Notebook
UTF-8
Python
false
false
10,817
py
""" This project was developed by Rocky Duan, Peter Chen, Pieter Abbeel for the Berkeley Deep RL Bootcamp, August 2017. Bootcamp website with slides and lecture videos: https://sites.google.com/view/deep-rl-bootcamp/. Copyright 2017 Deep RL Bootcamp Organizers. Permission is hereby granted, free of charge, to any per...
[ "oh.sore.sore.soutarou@gmail.com" ]
oh.sore.sore.soutarou@gmail.com
673d7f0e04cc9e9c02c82b6768fae6be6935b77b
f0755c0ca52a0a278d75b76ee5d9b547d9668c0e
/atcoder.jp/abc045/abc045_a/Main.py
e44b5fc83bf98e6706bdb781e618d50a697f7393
[]
no_license
nasama/procon
7b70c9a67732d7d92775c40535fd54c0a5e91e25
cd012065162650b8a5250a30a7acb1c853955b90
refs/heads/master
2022-07-28T12:37:21.113636
2020-05-19T14:11:30
2020-05-19T14:11:30
263,695,345
0
0
null
null
null
null
UTF-8
Python
false
false
61
py
a, b, h = [int(input()) for _ in range(3)] print((a+b)*h//2)
[ "g1620535@is.ocha.ac.jp" ]
g1620535@is.ocha.ac.jp
aba27c928883760a8e56fefdbca4f15230131d0b
443406462ab99481ed1ccfa1e1ed483a242fed78
/test/test_val_match.py
4ced5e55541ea7b820747d29197dc15902923a36
[ "MIT" ]
permissive
RiftNemesis/Pyot
4343334fd2e2cde29d78d9a0025eb0b4c177c323
7c34bbd4bcdad37ec512dcdaac43ae5f69f12975
refs/heads/master
2023-05-29T13:05:27.106176
2021-06-17T15:24:30
2021-06-17T15:24:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,371
py
from datetime import datetime, timedelta from pyot.utils import loop_run from pyot.models import val, riot async def async_match_history(): account = await riot.Account(name="Tuxedo", tag="AYAYA", region="AMERICAS").get(pipeline="val") history = await val.MatchHistory(puuid=account.puuid, platform="NA").get() ...
[ "paaksingtech@gmail.com" ]
paaksingtech@gmail.com
f185a7c8f9a3cd84146c245ef42ae3dd162ea955
3f4f40fede22e93d64c5b7c687461d6fdcf11202
/binder/jupyter_notebook_config.py
2ee53857ae141ce9d98154c80e950799c26dc939
[]
no_license
mamba-org/mamba-navigator
2fb682354b9a318866de4c79ccd3e2dd3b859c14
6c7c8bda9897b08f63b41578c7cac30e60417255
refs/heads/master
2022-12-18T16:49:10.599377
2020-09-16T09:56:23
2020-09-16T09:56:23
263,335,713
4
1
null
2020-09-16T09:56:25
2020-05-12T12:53:10
TypeScript
UTF-8
Python
false
false
595
py
import sys c.ServerProxy.servers = { "mamba": { "command": [ sys.executable, "main.py", "--no-browser", '--port={port}', "--ip=0.0.0.0", "--NotebookApp.token=''", "--NotebookApp.base_url={base_url}mamba", "--Not...
[ "jeremy.tuloup@gmail.com" ]
jeremy.tuloup@gmail.com
9641ebd3537d79835e97f84a1d8756a5a9a55f1c
e6b1ad137a9bd3d39ae7c61cb5c7f7956ce095b9
/bruteforce/sum_of_evens.py
82a04c6dc86d97e9cdd498226df324d34a360b6e
[]
no_license
jadenpadua/Data-Structures-and-Algorithms
d9ba8ece779a2d564a7d66fcbacc9fb7fa1f7205
838c29112fec4beb9d9cc3f54db00492b4a480b0
refs/heads/master
2021-07-17T13:10:52.029327
2020-07-08T02:00:14
2020-07-08T02:00:14
186,896,842
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
Create a function that returns the sum of all even elements in a 2D matrix. def sum_of_evens(lst): sum = 0 for i in range (len(lst)): for j in range (len(lst[i])): if (lst[i][j]%2==0): sum += lst[i][j] return sum
[ "noreply@github.com" ]
jadenpadua.noreply@github.com
5b760d12cea3f25316b2a67a254ec6f4f3401c7c
bc233c24523f05708dd1e091dca817f9095e6bb5
/bitmovin_api_sdk/encoding/configurations/audio/opus/customdata/customdata_api.py
a54550e92efdc897ff0f7a3687a09d7c143398eb
[ "MIT" ]
permissive
bitmovin/bitmovin-api-sdk-python
e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd
b0860c0b1be7747cf22ad060985504da625255eb
refs/heads/main
2023-09-01T15:41:03.628720
2023-08-30T10:52:13
2023-08-30T10:52:13
175,209,828
13
14
MIT
2021-04-29T12:30:31
2019-03-12T12:47:18
Python
UTF-8
Python
false
false
1,364
py
# coding: utf-8 from __future__ import absolute_import from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase from bitmovin_api_sdk.common.poscheck import poscheck_except from bitmovin_api_sdk.models.custom_data import CustomData from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope from ...
[ "openapi@bitmovin.com" ]
openapi@bitmovin.com
2a8ac7c9d2d3078b808eb31de461bd7522a12385
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2374/58585/316440.py
cac23d042dd5f238056bfb6df4de059e5a5494be
[]
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
433
py
a=int(input()) b=int(input()) c=input() d=int(input()) e=input() if a==2 and b==5 and c=='5 5 4 6 4': print('4 4 5 5 6 ') print('9 9 9 2 5 ') elif a==2 and b==5 and c=='5 5 4 5 4' and d==5 and e=='9 5 2 2 5': print('5 5 5 4 4 ') print('2 2 5 5 9 ') elif a==2 and b==5 and c=='5 5 4 5 4' and d==5 and e=='...
[ "1069583789@qq.com" ]
1069583789@qq.com
c4614e23b2b15bb0e0061871ae7895e8cfa3bc7e
9d6817b67f7993b3a43319894ebd508b1fa92f9f
/python/WJ_MiNNLO_NNLOPSLike_withPhotos_cff.py
096f9df590fd8bcf688719768b8893f11d1394a9
[]
no_license
kdlong/WMassNanoGen
b7c5c12df52862d7dd9d9554d7654b9e5d701167
d1e0c6db75f671eb593cf907307189cd95aa31f6
refs/heads/master
2023-06-27T07:21:53.971633
2023-06-19T13:32:41
2023-06-19T13:32:41
235,908,488
2
7
null
2023-06-12T09:10:10
2020-01-23T23:43:11
Python
UTF-8
Python
false
false
3,194
py
import FWCore.ParameterSet.Config as cms externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.vstring('/afs/cern.ch/work/m/mseidel/public/MiNNLO-gridpacks/Wj_slc6_amd64_gcc700_CMSSW_10_2_16_WplusJToMuNu-nnlopslike-powheg-MiNNLO.tgz'), nEvents = cms.untracked.uint32(5000), numberOfParamete...
[ "kdlong@hep.wisc.edu" ]
kdlong@hep.wisc.edu
f16c43bebdb7978fe5f3a18d22a34eb59fe7c6d6
1e4eefff1c19ffb81016ce99f2284fb657293f65
/special/src/paths.py
67debb8325148760c72f41298431e8cf52493132
[]
no_license
Solero93/bcn-algorithm-club-py
5e1edf15f087e0edf2cf7ba0859fb5e4523525ad
1edf407498756e7ba36534387bb4241b8b455c4f
refs/heads/master
2020-03-28T09:06:30.328130
2019-03-25T10:38:48
2019-03-25T10:38:48
148,014,386
3
1
null
null
null
null
UTF-8
Python
false
false
548
py
""" /** * 5 points * * * Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. * * * Note: A leaf is a node with no children. * * Example: * * Given the below binary tree and sum = 22, * * 5 * / \ * 4 8 * / ...
[ "solero93@gmail.com" ]
solero93@gmail.com
9b6f6f24e900ff1e3448bfbaa608c7b3bf20aa6b
c03b6ed252fb3120b5972f39f980b717901a9cea
/app.py
a47506455a61a455b9320186cae0105530842bce
[]
no_license
vvalotto/autenticacion_flask
69f79fd191921184c7a04c8db26a849edd047341
3b2db225b2445817a50429692b01e50d2a97a2d5
refs/heads/master
2020-05-18T07:16:36.140013
2019-04-30T17:42:35
2019-04-30T17:42:35
184,260,040
0
0
null
null
null
null
UTF-8
Python
false
false
1,106
py
from flask import Flask from flask import Flask, flash, redirect, render_template, request, session, abort import os from sqlalchemy.orm import sessionmaker from table import * engine = create_engine('sqlite:///tutorial.db', echo=True) app = Flask(__name__) @app.route('/') def home(): if not session.get('logged...
[ "vvalotto@gmail.com" ]
vvalotto@gmail.com
3d3127cc236021f4c7634594ae93a4e47381a056
cdcd00bc69f4e37958ae1c0619f198a156a02e2e
/data_integration/parallel_tasks/sql.py
fd439deb4be2441f7bcf517d9dd71759b0334150
[ "MIT" ]
permissive
willyhakim/data-integration
57321727ec850f973ce24ae32092be25347331aa
1f87ae2cef824d2347885dc64b11ddbdc95082eb
refs/heads/master
2020-03-14T21:24:03.693810
2018-04-30T11:45:18
2018-04-30T11:45:18
131,795,287
1
0
null
2018-05-02T03:50:57
2018-05-02T03:50:57
null
UTF-8
Python
false
false
3,344
py
import inspect import re import typing from data_integration import config, pipelines from data_integration.commands import sql from mara_page import _, html class ParallelExecuteSQL(pipelines.ParallelTask, sql._SQLCommand): def __init__(self, id: str, description: str, parameter_function: typing.Callable, param...
[ "martin.loetzsch@gmail.com" ]
martin.loetzsch@gmail.com
307db3e1ccfca58bf0b28885aa59bcb0b3115648
b38247a5d84d8b52ce8363f8dd81629cfbe17f65
/reagent/mab/mab_algorithm.py
07775d12175593e73e44add2ddc1055ad8299afa
[ "BSD-3-Clause" ]
permissive
facebookresearch/ReAgent
7f2b82eaaf7a19e58cc50aacc307d7b001231440
c5f1a8371a677b4f8fb0882b600bf331eba5259d
refs/heads/main
2023-09-05T15:56:49.175072
2023-08-29T21:48:40
2023-08-29T21:48:40
98,565,575
1,480
290
BSD-3-Clause
2023-09-12T23:09:30
2017-07-27T17:53:21
Python
UTF-8
Python
false
false
8,530
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. from abc import ABC, abstractmethod from typing import List, Optional, Tuple import torch from torch import Tensor def get_arm_indices( ids_of_all_arms: List[str], ids_of_arms_in_batch: List[str] ) -> List[int]: ar...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
0df74f09405291abe27edf78b7b4e06bb4ee8b14
e942cafaf64f6354e1f9ebd4a84bcf236ad93004
/yawast/_static_version.py
2df3a4a6275a3ae95963ccbac54a9ee4d0e3f762
[ "MIT" ]
permissive
Prodject/yawast
9a441a0576012dc5f0664cd23cfa0a803fd7a477
044309709cf3782de75a35f77297f2d2850d8e1c
refs/heads/master
2020-03-23T02:32:12.357082
2020-01-21T18:13:19
2020-01-21T18:13:19
140,978,938
0
0
BSD-3-Clause
2020-01-21T18:13:20
2018-07-14T21:23:05
Ruby
UTF-8
Python
false
false
627
py
# -*- coding: utf-8 -*- # Copyright (c) 2013 - 2020 Adam Caudill and Contributors. # This file is part of YAWAST which is released under the MIT license. # See the LICENSE file or go to https://yawast.org/license/ for full license details. # This file is part of 'miniver': https://github.com/jbweston/miniver # # T...
[ "adam@adamcaudill.com" ]
adam@adamcaudill.com
87a309cb82702de33083d597c32f97b9f550b950
6c816f19d7f4a3d89abbb00eeaf43dd818ecc34f
/apps/account/migrations/0055_auto_20210414_2208.py
0a9881008c4515c36c8979af88d753d8ec9147de
[]
no_license
reo-dev/bolt
29ee6aa7cfc96bd50fa7a7dae07fbaafc2125e54
d1a7859dd1ebe2f5b0e6e295047b620f5afdb92e
refs/heads/master
2023-07-13T04:05:57.856278
2021-08-27T09:07:03
2021-08-27T09:07:03
382,195,547
0
0
null
null
null
null
UTF-8
Python
false
false
2,201
py
# Generated by Django 3.0.8 on 2021-04-14 13:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('category', '0011_auto_20210219_1901'), ('account', '0054_auto_20210413_1634'), ] operations = [ migrations.RemoveField( ...
[ "75593016+reo-dev@users.noreply.github.com" ]
75593016+reo-dev@users.noreply.github.com
365ba771af380e6b95fbad2e044704d6ec5cc9fa
0987f31e64bcacb41ba3a1e20054d7b8ac0d7346
/practice/algorithm_datastructure_for_programming_contest/309_ALDS1_12_C_AtCoder.py
98b22cbaed6fa9c73066ce9865cb9924191fd201
[]
no_license
masakiaota/kyoupuro
81ae52ab3014fb2b1e10472994afa4caa9ea463b
74915a40ac157f89fe400e3f98e9bf3c10012cd7
refs/heads/master
2021-06-27T04:13:52.152582
2020-09-20T03:21:17
2020-09-20T03:21:17
147,049,195
1
0
null
null
null
null
UTF-8
Python
false
false
1,402
py
# https://onlinejudge.u-aizu.ac.jp/courses/lesson/1/ALDS1/12/ALDS1_12_C # これに関してもAtCoderではすでにある実装が使える https://note.nkmk.me/python-scipy-shortest-path/ # じゅっぴーさんの記事 https://juppy.hatenablog.com/entry/2019/06/04/scipy%E3%81%AEFloyd-Warshall%E3%81%A8Dijkstra%E3%81%AE%E3%81%99%E3%81%99%E3%82%81_Python_%E7%AB%B6%E6%8A%80%E3...
[ "aotamasakimail@gmail.com" ]
aotamasakimail@gmail.com
554d1fdcac2ae51244747b651cfd9c9970d8637f
e6ef2915c35faa8d09e846708323b4b79786a5fe
/nobrainer/cli_click.py
9d82f7e8bb816f394ee7ee8983f2047cbdb5e71d
[ "Apache-2.0" ]
permissive
yarikoptic/kwyk
1bbe1ed795ffecac1157d67c5f3f40003dc5e379
7e2b2bdee58962f229befe9375fc5afeadd4aa3c
refs/heads/master
2020-07-09T01:44:37.646045
2019-08-21T02:32:41
2019-08-21T02:32:41
203,839,875
0
0
null
2019-08-22T17:13:21
2019-08-22T17:13:20
null
UTF-8
Python
false
false
4,726
py
from pathlib import Path import subprocess import tempfile import click import nibabel as nib import numpy as np from nobrainer.io import read_volume from nobrainer.predict import _get_predictor from nobrainer.predict import predict_from_filepath from nobrainer.volume import from_blocks from nobrainer.volume import t...
[ "satra@mit.edu" ]
satra@mit.edu
38b6bb516de9c2d2385e25f78767678751d1db75
853d4cec42071b76a80be38c58ffe0fbf9b9dc34
/venv/Lib/site-packages/pandas/core/internals/concat.py
665bce34f0e7273f1c6ba1fb6f5a04b20ef93095
[]
no_license
msainTesting/TwitterAnalysis
5e1646dbf40badf887a86e125ef30a9edaa622a4
b1204346508ba3e3922a52380ead5a8f7079726b
refs/heads/main
2023-08-28T08:29:28.924620
2021-11-04T12:36:30
2021-11-04T12:36:30
424,242,582
0
0
null
null
null
null
UTF-8
Python
false
false
17,160
py
# TODO: Needs a better name; too many modules are already called "concat" from collections import defaultdict import copy import numpy as np from pandas._libs import internals as libinternals, tslibs from pandas.util._decorators import cache_readonly from pandas.core.dtypes.cast import maybe_promote from p...
[ "msaineti@icloud.com" ]
msaineti@icloud.com
300dff9d384f9c06e0d02144aa0010462b222687
b4c6013f346e178222cc579ede4da019c7f8c221
/src/main/python/doctest.py
6b678a3dd4209afbafcef117928385a788855d32
[ "BSD-3-Clause", "OpenSSL", "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain", "GPL-1.0-or-later", "LicenseRef-scancode-unicode" ]
permissive
cafebabepy/cafebabepy
e69248c4f3d9bab00e93ee749d273bc2c9244f8d
4ab0e67b8cd79f2ca7cab6281bc811d3b9bc69c1
refs/heads/develop
2022-12-09T21:14:56.651792
2019-07-01T09:05:23
2019-07-01T09:05:23
90,854,936
9
1
BSD-3-Clause
2018-01-02T02:13:51
2017-05-10T11:05:11
Java
UTF-8
Python
false
false
104,531
py
# Module doctest. # Released to the public domain 16-Jan-2001, by Tim Peters (tim@python.org). # Major enhancements and refactoring by: # Jim Fulton # Edward Loper # Provided as-is; use at your own risk; no warranty; no promises; enjoy! r"""Module doctest -- a framework for running examples in docstrings. In...
[ "zh1bvtan1@gmail.com" ]
zh1bvtan1@gmail.com
8954a181b5e8d7b31145e5c139935b9780e4d1eb
a7f442bc306d1a8366a3e30db50af0c2c90e9091
/blockchain-env/Lib/site-packages/Cryptodome/Util/number.pyi
f9864ae390b6a99941307c3bfa0524d8bd651e30
[]
no_license
Patreva/Python-flask-react-blockchain
cbdce3e0f55d4ba68be6ecfba35620585894bbbc
474a9795820d8a4b5a370d400d55b52580055a2e
refs/heads/main
2023-03-29T01:18:53.985398
2021-04-06T08:01:24
2021-04-06T08:01:24
318,560,922
1
0
null
null
null
null
UTF-8
Python
false
false
994
pyi
from typing import List, Optional, Callable def ceil_div(n: int, d: int) -> int: ... def size (N: int) -> int: ... def getRandomInteger(N: int, randfunc: Optional[Callable]=None) -> int: ... def getRandomRange(a: int, b: int, randfunc: Optional[Callable]=None) -> int: ... def getRandomNBitInteger(N: int, randf...
[ "patrickwahome74@gmail.com" ]
patrickwahome74@gmail.com
1e02a37c7f9aaf6c82b9607e145b16c47b81a547
5280cb50a8b61615a2b92474944c721b1f222aba
/main_projects/aspaceify_extents/scripts/test_aspace_split.py
dddc7a655aa138304b44e7ad6f462b6a471a3104
[]
no_license
bentley-historical-library/bentley_code
944125c58c0b9bceef5f424fd58a5282fea52a6f
61bdfc5b12c088b605e25c9835bf50ab14cfbc14
refs/heads/master
2020-07-10T01:05:32.433263
2015-07-24T20:58:44
2015-07-24T20:58:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,868
py
from __future__ import absolute_import import unittest from collections import namedtuple from aspaceify_extents.scripts.make_aspace_extent_distinctions import split_into_aspace_components class TestASpaceSplit(unittest.TestCase): def setUp(self): self.ASpaceExtent = namedtuple("ASpaceExtent", ["type_", ...
[ "wboyle13@gmail.com" ]
wboyle13@gmail.com
f81c8d924008de759cda6f47958157a9921dd4e6
a5c4ea16042a8078e360c32636c00e3163ac99a8
/PractitionerBundle/practice/chap11-deepergooglenet/pyimagesearch/nn/conv/minigooglenet.py
04f4ebdcd102bf3c334524029ba9bb8cd187c6f9
[]
no_license
lykhahaha/Mine
3b74571b116f72ee17721038ca4c58796610cedd
1439e7b161a7cd612b0d6fa4403b4c8c61648060
refs/heads/master
2020-07-15T05:16:13.808047
2019-06-01T07:30:01
2019-06-01T07:30:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,760
py
from keras.layers import Conv2D, BatchNormalization, Dropout, MaxPooling2D, concatenate, Dense, AveragePooling2D, Flatten from keras.models import Input, Model from keras.regularizers import l2 from keras import backend as K class MiniGoogLeNet: @staticmethod def conv_module(x, K, k_x, k_y, stride, padding='sa...
[ "ITITIU15033@student.hcmiu.edu.vn" ]
ITITIU15033@student.hcmiu.edu.vn
e566df7e4fc327591338117e75ad0087079d75cc
174a186359880f1f9999686fbda5b70f1bc3d28a
/prototypes/newmethod.py
3b6ac95fbd9ea9a5291736420b4ed3d3c6d3540e
[]
no_license
SuguruChhaya/snake_game_tkinter
1da8bde533865917aedea6d99ee919cc34e29996
4c1c4d6b309c196a1b13666320202b824746e95a
refs/heads/master
2022-12-03T07:33:41.504751
2020-08-25T15:27:32
2020-08-25T15:27:32
287,422,844
0
0
null
null
null
null
UTF-8
Python
false
false
11,449
py
from tkinter import * import random class Snake(): def __init__(self): self.root = Tk() Snake.my_canvas = Canvas(self.root, height=375, width=375, bg='black') Snake.my_canvas.grid(row=0, column=0) # *I am going to make a grid system by lines # *15 by 15 grid for h...
[ "suguruchhaya@gmail.com" ]
suguruchhaya@gmail.com
e5bf07685aa283a83e0748b3c2bb4bfe06af782e
0e0cb55fb13e5ee6c60869a4da7812120817eb33
/ruantong/概率分布/几何分布.py
c274c6b72d37a529e680cbb0eb23ecdd2a6fab97
[]
no_license
xjwhhh/Probability-Theory
7d2a89fdeb37b4112da5a52583df149ce119d389
1ce2e7843de9c5ed44c189992003f88c66abd13b
refs/heads/master
2020-12-02T18:12:51.775550
2017-08-09T05:42:42
2017-08-09T05:42:42
96,496,383
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
import numpy as np import matplotlib.pyplot as plt from scipy.stats import geom as G rv=G(0.2)#p=0.2 x=np.arange(1,11,1) y=rv.pmf(x) plt.bar(x,y,width=0.6,color='grey') plt.show() print(y)
[ "151250171@smail.nju.edu.cn" ]
151250171@smail.nju.edu.cn
df118c794a0cc62832e6333daf6389c9a655c01d
b87f66b13293782321e20c39aebc05defd8d4b48
/maps/build/Traits/enthought/traits/ui/editors/dnd_editor.py
22afe66e05115ed4899e7412692ac979d6dcade2
[]
no_license
m-elhussieny/code
5eae020932d935e4d724c2f3d16126a0d42ebf04
5466f5858dbd2f1f082fa0d7417b57c8fb068fad
refs/heads/master
2021-06-13T18:47:08.700053
2016-11-01T05:51:06
2016-11-01T05:51:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,986
py
#------------------------------------------------------------------------------ # # Copyright (c) 2008, Enthought, Inc. # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in enthought/LICENSE.txt and may be redistributed only # under the conditions ...
[ "fspaolo@gmail.com" ]
fspaolo@gmail.com
d0a119ae6529af7f07541b10b9c8ecb1ff6390ed
26d802852cdfef2b57902a350b4fa17d5aa07f50
/13_revp/solution3_revp.py
018e307228530fa71eb403b8b57157332268547b
[ "MIT" ]
permissive
Vstrains/biofx_python
7f5e27707f11e77f08d1516381a08a267fd81a1c
7a2821dba36f1dae8404efbe35f44242833d6180
refs/heads/main
2023-03-12T09:51:57.766441
2021-02-25T03:22:15
2021-02-25T03:22:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
#!/usr/bin/env python3 """ Locating Restriction Sites """ import argparse import sys import operator from typing import List, NamedTuple, TextIO from Bio import SeqIO, Seq from common import find_kmers class Args(NamedTuple): """ Command-line arguments """ file: TextIO # -----------------------------------...
[ "kyclark@gmail.com" ]
kyclark@gmail.com
64cb85a8ce03348ff0b349a19422abd9fe6515af
1aa357433cad86c1c42eeaece7109094cdf790a6
/12_extensions/ext/custom_ext_pygments.py
134a984984bcae1b2676618d0b6ef706fa115976
[ "MIT" ]
permissive
hooj0/jinja2-template-examples
89ab4466d69ad2232922126a3f208f02b0ed3798
20481153a964d46e007e807fd2be9a0c42201dd0
refs/heads/master
2020-03-28T11:02:13.451556
2018-09-12T07:50:40
2018-09-12T07:50:40
148,171,173
6
1
null
null
null
null
UTF-8
Python
false
false
4,559
py
#!/usr/bin/env python3 # encoding: utf-8 # @author: hoojo # @email: hoojo_@126.com # @github: https://github.com/hooj0 # @create date: 2018-09-12 # @copyright by hoojo @2018 # @link http://www.bjhee.com/jinja2-extension.html # @changelog user custom extension # ========================================...
[ "hoojo@qq.com" ]
hoojo@qq.com
adf58aff82e8028fa40481c8c506bcd1b433c7bb
5cb7627fc47d57ba7c1fc402a3671c17625c8965
/python/paddle_fl/mpc/examples/test_add.py
05895b3a832912e4b5bfaa0c77eb5f68b1854ad7
[]
no_license
NetHole/PaddleFL
c5951e32027dff714baead6e7a6f6135e1ca01a0
e0c7192c90dda91f64167cf01e79628fd81dc981
refs/heads/master
2022-06-24T19:41:42.640865
2020-05-11T01:57:07
2020-05-11T01:57:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
# Copyright (c) 2020 PaddlePaddle 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 appli...
[ "jingqinghe@baidu.com" ]
jingqinghe@baidu.com
72a6652e0e2791748a30e32624658798735448df
0b9e588b3d6ddf95d87a0a0f02d10ef6efcccf51
/eduapi/api/migrations/0053_auto_20151215_1221.py
12e1e5e1a4431fdff8d44dbe908b16b8fc5b03a4
[]
no_license
omni360/inspiration-edu-api
b5d07a7fe3a473689d5323e60e6f88dd3d6fb4cb
6e1bbf8d895082d4c44af4ae35b9f5aa5cc9addc
refs/heads/master
2022-01-22T23:30:09.879433
2016-04-28T02:02:46
2016-04-28T02:02:46
57,559,736
0
0
null
2022-01-06T22:24:03
2016-05-01T06:35:12
Python
UTF-8
Python
false
false
5,507
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import django.contrib.postgres.fields class Migration(migrations.Migration): dependencies = [ ('api', '0052_merge'), ] operations = [ migrations.RenameField( model_name='...
[ "frida.cai@autodesk.com" ]
frida.cai@autodesk.com
b57083b227bffa9c51f22350ea8dd8f0c59f70d7
11c00c704a3d1171d1bf4474be7ff1779a1dcb69
/LSTM_Stateful/lstm_stateful.py
cdc73c77595b3b9e4ffd03df41d1fab30057cbf8
[]
no_license
mikechen66/LSTM-TF2
89bd67ca481ded7264191e240e45f792cc5546c3
741250374509c332d9f4f5ddebcb1a966e268df0
refs/heads/main
2023-04-08T15:59:46.999735
2021-04-20T01:53:34
2021-04-20T01:53:34
305,043,822
0
0
null
null
null
null
UTF-8
Python
false
false
8,545
py
""" How to use a stateful LSTM model, stateful vs stateless LSTM performance comparison [More documentation about the Keras LSTM model](/layers/recurrent/#lstm) The models are trained on an input/output pair, where the input is a generated uniformly distributed random sequence of length = `input_len`, and the output...
[ "noreply@github.com" ]
mikechen66.noreply@github.com
fcca02f2f1adbc8f766107ecdaa0c0ff86a0d061
d4e573e8eae32db155fe5931b3e2dcd3aa48969b
/indigo/bin/rocon_uri
5eb4af63dbf48f015786da051418f1767653e6b9
[]
no_license
javierdiazp/myros
ee52b0a7c972d559a1a377f8de4eb37878b8a99b
7571febdfa881872cae6378bf7266deca7901529
refs/heads/master
2022-11-09T09:24:47.708988
2016-11-10T16:56:28
2016-11-10T16:56:28
73,733,895
0
1
null
2022-10-25T05:16:35
2016-11-14T18:19:06
C++
UTF-8
Python
false
false
5,048
#!/usr/bin/python # # License: BSD # https://raw.github.com/robotics-in-concert/tools/license/LICENSE # ############################################################################## # Imports ############################################################################## import argparse import os import copy import ...
[ "javier.diaz.palacios@gmail.com" ]
javier.diaz.palacios@gmail.com
3c1f6f4f9674dcd0e8d8e3bc8a5cfece6c2d762c
9b722ca41671eb2cea19bac5126d0920639261bd
/.history/app_20201126190857.py
0337e34e3eeeed73fd0d77cb0603c145682dcff3
[]
no_license
thawalk/db_flask_server
7928fd481f99d30bdccc60d97f02db78324cfdbe
cd55f1c9bf84c734457ee02d9f64a6833e295fad
refs/heads/master
2023-01-25T02:40:19.097457
2020-12-06T07:45:50
2020-12-06T07:45:50
314,229,480
0
0
null
null
null
null
UTF-8
Python
false
false
8,163
py
import json import pymongo from flask import Flask, jsonify, url_for, request, redirect,Response,Request import pymongo from bson.json_util import dumps import mysql.connector from werkzeug.serving import run_simple import os from dotenv import load_dotenv import datetime import time from flask_cors import CORS app = ...
[ "akmal_hakim_teo@hotmail.com" ]
akmal_hakim_teo@hotmail.com
a8e2942c9f26c11e10d17a96fc317b0a47531ceb
08e052c0c2ee4ad0cd4980fbc8a692c407118659
/Ex. do Paca/Aula 6/P_6.8.py
3efaea60835d67a96b62049edab2f317739b66ae
[]
no_license
miltonleal/MAC0110_Introduction_Computer_Science_IME_USP
6fad182f7fbb3e83403080800074bf57456cb0b5
b47936ce66e715dba79dff44779a750d795192a0
refs/heads/master
2023-03-04T11:06:48.092980
2021-02-17T14:47:46
2021-02-17T14:47:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
'''Dado um valor inteiro em reais (R$), determinar quantas notas de R$100, R$50, R$20, R$10, R$5, R$2 e R$1 são necessárias para compor esse valor. A solução procurada é aquela com o máximo de notas de cada tipo.''' N = int(input("Digite o valor total em R$: ")) total_100 = N // 100 total_50 = N % 100 // 50 total_2...
[ "milton.leal@usp.br" ]
milton.leal@usp.br
24c4ca54be9905e365f6ef7fb5630cad21cabfb9
d1aa3a3dc4b05a82ccc6497a75d243c89ecf3c95
/example-scripts/fitsextract.py
0f8f9ce4c028d7366b3b399ffc04edefbf4dd60c
[ "MIT" ]
permissive
barentsen/dotastro-argparse-tutorial
d8926ddb1ed1eac943985dc414e40f09da3460a0
d57a155af428ab1c0c2bf918f09f5381b09a3ad4
refs/heads/master
2020-12-24T06:36:19.129131
2016-06-20T13:17:23
2016-06-20T13:17:23
61,532,871
5
4
null
null
null
null
UTF-8
Python
false
false
655
py
import argparse from astropy.io import fits def write_fits_extension(input_fn, extension, output_fn): fits.open(input_fn)[extension].writeto(output_fn) if __name__ == '__main__': parser = argparse.ArgumentParser(description='Writes a FITS extension to a new file') parser.add_argument('filename', help='FI...
[ "geert@barentsen.be" ]
geert@barentsen.be
7c9a871b78369da66f4ca93a6817a8b15af9723e
67309cbca4ead3623c86647ac7bfaa067b029fdc
/BOJ/dp_greedy/12869.py
d8b6744243185aae3a4e6b6fb2eec5a373ed8816
[]
no_license
Jeukoh/OJ
b6df132927ec15ab816fee8681952240b5a69e13
182b54554896d9860d5e5d09f8eccc07d99aa8e8
refs/heads/master
2023-08-30T19:18:10.812225
2021-10-15T09:57:14
2021-10-15T09:57:14
402,799,549
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
import math N = int(input()) K = [0,0,0] tmp = list(map(int,input().split())) dp = [[[0]*61 for __ in range(61)] for _ in range(61)] for _ in range(N): K[_] = tmp[_] def sol(N,K): if N == 1: return math.ceil(K[0]/9) min_cnt = 500 def recur(s1,s2,s3,n): nonlocal min_cnt if s1 ...
[ "jeukoh@gmail.com" ]
jeukoh@gmail.com
6ca34e5f4844fa6cb43b8dd01c856368d7d5d6f7
c4939f03996ba18b678813ba7c65f519a6532051
/home/migrations/0003_auto_20200608_1229.py
0e33b523bd15faee5f21ad9b8f00623ee9b88ac0
[]
no_license
crowdbotics-apps/tony-template-1-dev-5633
030f99cfe366bcbde9506b3679dd104d052f2bcf
e127168ad7a08be5805e9da73530f1ddd8c6ad0e
refs/heads/master
2022-10-04T19:07:46.565100
2020-06-08T12:29:10
2020-06-08T12:29:10
270,660,116
0
0
null
null
null
null
UTF-8
Python
false
false
2,142
py
# Generated by Django 2.2.13 on 2020-06-08 12:29 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('home', '0002_load_initi...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
184cce916b7a1eff4b9fb73c933cb7878194682c
726a548766a9db586806ef540dcf8ea4d0a82a60
/Python3/examples/bin/loop_for.py
f097bfd41a67b0094776eed6b5cbc71de54d37ab
[]
no_license
ArseniD/learn_python
6fd735a594ff83ea97888d6688e474e94182ea74
d73fc790514f50a2f61c5cc198073299b0c71277
refs/heads/master
2022-05-28T04:53:54.603475
2019-08-27T10:15:29
2019-08-27T10:15:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
#!/usr/bin/env python3.6 colors = ['blue', 'green', 'red', 'purple'] for color in colors: if color == 'blue': continue elif color == 'red': break print(color) point = (2.1, 3.2, 7.6) for value in point: print(value) ages = {'kevin': 59, 'bob': 40, 'kayla': 21} for key in ages: pri...
[ "arsenidudko@mail.ru" ]
arsenidudko@mail.ru
39aadb1cb4d1a708dd82fba9aa3b7584f07754e0
122f9bf0d996c104f541453ab35c56f6ff3fc7cd
/z수업용문제/JunminLim/2445_별찍기8.py
ef4a526df4d72399eb817e24a5b6ee5a8395f8bd
[]
no_license
JannaKim/PS
1302e9b6bc529d582ecc7d7fe4f249a52311ff30
b9c3ce6a7a47afeaa0c62d952b5936d407da129b
refs/heads/master
2023-08-10T17:49:00.925460
2021-09-13T02:21:34
2021-09-13T02:21:34
312,822,458
0
0
null
2021-04-23T15:31:11
2020-11-14T13:27:34
Python
UTF-8
Python
false
false
410
py
n=int(input()) manh=n-1 a=[] m=2*n-1 p=2*n paper=[[' ']*p for _ in range (m)] ''' for i in range (len(paper)): print(''.join(paper[i])) ''' y1, x1 = n-1, 0 y2, x2= n-1, 2*n for i in range (m): for z in range (p): if abs(x1-z)+abs(y1-i)<n: paper[i][z]='*' elif abs(x2-z)+abs(y2-i)<n+1...
[ "baradamoh@gmail.com" ]
baradamoh@gmail.com
d467c2620d84b57c8dbb8f3d38b8aa65aa49a062
3d88748960deb31c674525df2bd9d79ba1d2db1a
/pythonlib/bin/mcmcint
bfd0d1f647224043bd373dc5c1c16f030af8f49f
[ "BSD-2-Clause" ]
permissive
johnkerl/scripts-math
1a0eb6ce86fd09d593c82540638252af5036c535
cb29e52fec10dd00b33c3a697dec0267a87ab8bb
refs/heads/main
2022-01-31T17:46:05.002494
2022-01-17T20:40:31
2022-01-17T20:40:31
13,338,494
5
3
null
null
null
null
UTF-8
Python
false
false
410
#!/usr/bin/python -Wall from __future__ import division import random # ---------------------------------------------------------------- def f(x): return 1 / (1 + x**2) # ---------------------------------------------------------------- N = 100000 x0 = 1000.0 b = 10 x = x0 for i in range(0, N): print x y = random...
[ "kerl.john.r@gmail.com" ]
kerl.john.r@gmail.com
7867d807e90f24148853f20bc485ff8b66158e3a
01f7ed47677805e3dcf39b75c657ebdfdf1e89a5
/scripts/test_cartpole.py
f6802b2fe76a487f2d899151cb8276f40f5d3eb9
[]
no_license
aoyan27/openai_gym_tutorial
3d59a1080be8925cc7242128066dff4e4fcfb895
4015b4b9b3c2b38948909e4d20e37dca67e6ed19
refs/heads/master
2021-09-08T01:21:38.534371
2018-03-05T03:23:57
2018-03-05T03:23:57
98,200,900
0
0
null
null
null
null
UTF-8
Python
false
false
4,702
py
#!/usr/bin/env python #coding:utf-8 ################################################# # # Tutorial-1('Running an environment' section) # ################################################# # import gym # env = gym.make('CartPole-v0') # env.reset() # for _ in range(1000): # env.render() # observation, re...
[ "ce62001@meiji.ac.jp" ]
ce62001@meiji.ac.jp