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
17c928e3cafbcf5f45ca353e1f379ba1e9e04da5
01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1
/python_exercises/19others/fun4.py
6f9ac6e1fda53a3f6312dd5622e67ea3388ae8c9
[]
no_license
vineel2014/Pythonfiles
5ad0a2b824b5fd18289d21aa8306099aea22c202
0d653cb9659fe750cf676a70035ab67176179905
refs/heads/master
2020-04-28T03:56:22.713558
2019-03-11T08:38:54
2019-03-11T08:38:54
123,681,939
1
0
null
null
null
null
UTF-8
Python
false
false
190
py
def product(numbers): sum_so_far=1 for number in numbers: sum_so_far*=number return sum_so_far print(product([1,2,3])) print(product([7,-4,1,6,0])) print(product([]))
[ "vineel2006@gmail.com" ]
vineel2006@gmail.com
aaef040f57542efbf767c69d734449770a943986
8cdc63b549f5a7f1aca7b476a5a918e5c05e38c5
/app/adm/tests/test_view_permission.py
ff2d71f4af8b26e48e27a3ff79c8e1c2b6854ac7
[ "MIT" ]
permissive
rogeriopaulos/gep
984e3bcd8bd4569031577e1d28a8c47c6aace91f
e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2
refs/heads/main
2023-08-14T08:41:19.558899
2021-09-15T02:51:46
2021-09-15T02:51:46
402,270,601
0
1
null
null
null
null
UTF-8
Python
false
false
12,575
py
from account.tests.factories import ProfileFactory from adm.tests.factories import AdministrativoFactory from adm.tests.utils import SetUpTestViewAtoData from core.permissions import GRUPO_ADMINISTRATIVO from django.contrib.auth.models import Group from django.test import TestCase from django.urls import reverse from ...
[ "rogeriopaulos@gmail.com" ]
rogeriopaulos@gmail.com
d4d95744592b24613ab6bfde2b48befb4f83d4c9
2e6309c8f2126a6196adf9288c31162e6a949c1d
/backend/djabgoBlog-master/blog/subscribe/forms.py
90898d74a085347109f8f89fa6ee3117df4562b4
[]
no_license
triest/codeExample2
7ff87908caed3c4f58ff1609187a5af78ce11663
6d8a20fdd710d1560a3dbc2dfb4455fcc4d862b1
refs/heads/master
2020-04-02T03:12:21.027401
2018-10-21T11:22:14
2018-10-21T11:22:14
153,951,115
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
from django.contrib.auth.decorators import login_required from django.shortcuts import render from inspect import getmembers from pprint import pprint from django.forms import modelform_factory from django import forms from django.contrib.auth.models import User; from . import models #from blog.articles.models import S...
[ "you@example.com" ]
you@example.com
1913f94db48508d534a35b09a05eec732f312e5f
2be43fdc9f328895b949c92ec4e7602fbbbf2ca3
/tests/test_feeds.py
20932f520aba76a42d6876c404625f2a4259e97f
[]
no_license
gjxlu/feedhq
418a75ef68de759e7f85cf8b14f827b3fd5e5f27
3027b192e2c6f35ebb7f821c6d64e8eca49e4c44
refs/heads/master
2020-12-25T02:01:24.035251
2013-07-16T21:20:01
2013-07-16T21:36:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
35,214
py
# -*- coding: utf-8 -*- import feedparser import json from datetime import timedelta from django.core.cache import cache from django.core.urlresolvers import reverse from django.utils import timezone from django_push.subscriber.signals import updated from django_webtest import WebTest from httplib2 import Response fr...
[ "buburno@gmail.com" ]
buburno@gmail.com
884b687ae12296554a2ae41f29b26bf4382a86c2
e2230f57dd5bb508b5c0f7bf4df6af8ae7b36f83
/sympycore/matrices/__init__.py
95ab7a348b3211d44be60bb7007659916c36a1b0
[ "Apache-2.0" ]
permissive
wenyifdu/pymaclab
2fd40192d9dff4fda488f3f9a61e584c1adafd49
e5100ad4201bdf59c01dd600ac7e8865664075c3
refs/heads/master
2021-09-16T11:16:00.680933
2018-06-20T07:29:29
2018-06-20T07:29:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
""" Provides matrix support. """ __docformat__ = "restructuredtext" from .algebra import Matrix, MatrixBase from .functions import eye, concatenate, jacobian from .polyhedra import Polyhedron
[ "emscheffel@gmail.com" ]
emscheffel@gmail.com
854d50100ce45aef6d69f163a46a0fc3b8619b8c
b65d3777372d25402f11814288d992e6cb29c0a5
/tools/Ui_couput.py
986eea054ca7ed3f9226970215929d3410e40c05
[]
no_license
JoeChen999/tools
082ee56982650b0fee9e26aea9baa7c762a0ceed
090215568c41beabd6f1fa6b2d0cf253a29ba913
refs/heads/master
2020-05-25T14:58:51.564658
2016-09-22T06:31:30
2016-09-22T06:31:30
68,891,625
0
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/chenbiao/Documents/workspaces/tools/couput.ui' # # Created: Thu Sep 5 15:37:23 2013 # by: PyQt4 UI code generator 4.10.2 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUt...
[ "chenbiao@elex-tech.com" ]
chenbiao@elex-tech.com
20c80bd801a815a348f93512423abbf0ad984c81
82228ee4e8941d67bb71020a2917706ba6962989
/tests/utils/test_constants.py
aa54516e4bb5f8c500795b241090fda9839c7b05
[ "MIT" ]
permissive
haoziyeung/puzzle
2daccf618347e29980daf4ef7fd25ca431d86ca5
9476f05b416d3a5135d25492cb31411fdf831c58
refs/heads/master
2021-06-17T13:07:27.916154
2017-05-17T13:03:10
2017-05-17T13:03:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
from puzzle.utils.constants import HGNC_TO_OMIM, SEVERITY_DICT def test_HGNC_TO_OMIM(): assert HGNC_TO_OMIM['CACNA1F'].get('mim_nr') == 300110 assert HGNC_TO_OMIM['ADK'].get('mim_nr') == 102750 def test_SEVERITY_DICT(): assert SEVERITY_DICT['transcript_ablation'] == 0 assert SEVERITY_DICT['start_lost'...
[ "robin.andeer@gmail.com" ]
robin.andeer@gmail.com
5267ef629b697a6f0f4684057928eb7df6bedada
1c4de938e068c8967288ae06e15d1ea148d92ace
/Python_parallel/lu_mpi.py
8701770bf65cd8e545e449987031ca7b2c78b8e4
[ "MIT" ]
permissive
610yilingliu/LU_Decomposition_MPIVersion
3d5ddd578dc703ea830c35a421aab89d9ae614d2
0bd8af0e86b5fcc36970bea7bb045c129fdd2238
refs/heads/master
2023-01-07T22:25:57.883027
2020-10-16T08:28:27
2020-10-16T08:28:27
297,609,839
0
0
null
null
null
null
UTF-8
Python
false
false
1,484
py
import mpy4py import random def generate(sz, rg, sl): """ :type int sz: size of square matrix(sz * sz) :type int rg, int sl: range and scale of data. For example if the value field will be [-0.2, 0.2], than rg = 2, sl = 10 :rtype: (matrix List[List[float]], vector List[float]), float in Python equa...
[ "yilingliu1994@gmail.com" ]
yilingliu1994@gmail.com
999644e397b32cffa2e52edc374bbe9efd5e6866
bc8ebbdb5d67658387be1d65a9f00a927664ac1c
/backend/new_18912/settings.py
6eaf60be047de7422162e25b7eda34eaa1b9676d
[]
no_license
crowdbotics-apps/new-18912
3b499157a967673dc12ad7e5c9ee4a7b8bfb9ddc
b9aa5b270bbc72718b98ccc68257ef17448359c9
refs/heads/master
2022-11-18T00:47:55.053181
2020-07-15T04:00:56
2020-07-15T04:00:56
279,758,892
0
0
null
null
null
null
UTF-8
Python
false
false
4,722
py
""" Django settings for new_18912 project. Generated by 'django-admin startproject' using Django 1.11.16. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
55d046dd1d43409f967db43d069619a1b9a92d5f
d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f
/modules/app_email/lib/delphi.py
d6e8461d29ca1decad1b18441f6a42b08596eed7
[ "Apache-2.0" ]
permissive
dfrc-korea/carpe
e88b4e3bcb536355e2a64d00e807bccd631f8c93
f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac
refs/heads/master
2023-04-28T01:12:49.138443
2023-04-18T07:37:39
2023-04-18T07:37:39
169,518,336
75
38
Apache-2.0
2023-02-08T00:42:41
2019-02-07T04:21:23
Python
UTF-8
Python
false
false
1,235
py
# # delphi.py, 200611 # import os import errno def CreateDir(dir): try: if not os.path.isdir(dir): os.makedirs(os.path.join(dir)) return True except OSError as e: if e.errno != errno.EEXIST: raise return False def DirectoryExists(dir): return os.path.isdir(dir) ...
[ "jbc0729@gmail.com" ]
jbc0729@gmail.com
8ba102ebdd7f92dc9a0e9dc574bebbf7da51e6a9
058ed13ab33e8af7f5c7f6cfb985edcc1f0075b8
/.history/application/controllers/sinhvien_20201006230934.py
c35efabcab728dece922a76da4e6ab65c34212a1
[]
no_license
thinhpayer123/learning-python-vinacomi
e89a0b5302fbc42d1998aea82bba8ebea594eee6
f4d11998911360e25f68c2c6c0336d32a8c25c65
refs/heads/master
2023-03-27T08:57:48.600710
2020-12-13T15:43:53
2020-12-13T15:43:53
353,254,388
0
0
null
null
null
null
UTF-8
Python
false
false
5,765
py
from application.extensions import apimanager from application.models.model import QRUser, User, UserWallet from application.extensions import auth from application.database import db from gatco.exceptions import ServerError from sqlalchemy import create_engine import os import random import string import aiofiles im...
[ "cuongnd@upstart.vn" ]
cuongnd@upstart.vn
987f92a7554c420a41bb61e75372a9b7d318c61d
a7ed4da896faab105ff08259a82ae822548d1c2c
/6/6_1.py
7ed377a9d8fe394412cc185b039795c97bc0a055
[]
no_license
nemesmarci/Advent-of-Code-2019
e8e59d89be8ed43ce046fd7854b1c9b779a8930e
251dc4dc62777a7c0daf7a74d832c0be3d75140e
refs/heads/master
2021-12-31T10:53:35.924253
2019-12-27T17:17:06
2021-12-29T19:17:13
225,252,265
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
from space import read_data objects = read_data() root = objects['COM'] def traverse(current, level=1): n = len(current.orbiters) * level for child in current.orbiters: n += traverse(child, level + 1) return n print(traverse(root))
[ "nemes@sch.bme.hu" ]
nemes@sch.bme.hu
6db39aefe0474c81e6a6a24d7b3c79f3ab7553e7
456ca4570118e2944eb46c439b9d8090750af1b1
/Lab8/smtp_master.py
2fdf64fc00e0f49fd1a6ecce04ec52e53ab84898
[]
no_license
goreckinj/Network-Protocols-Labs
e34bb5c7b44d5dc43e5580c09830ec891740ca36
9c5e2185e6a298a6eca3c01b3ae1d69d529ca869
refs/heads/master
2020-04-25T05:26:54.197232
2019-02-25T16:38:45
2019-02-25T16:38:45
172,543,520
0
0
null
null
null
null
UTF-8
Python
false
false
11,136
py
""" - CS2911 - 0NN - Fall 2017 - Lab N - Names: - Jason Gao - Nick Gorecki - Alex A simple email sending program. Thanks to Trip Horbinski from the Fall 2015 class for providing the password-entering functionality. """ # GUI library for password entry import tkinter as tk # Socket library import socket # SSL...
[ "=" ]
=
0ad05c0dfd6e48742b121e8c44fddf8a92224af1
dd770e697daddab20e09fbf8ce199c97ee540c37
/bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py
99c604f9ffd781c069a3d253e4eb43d243ba046e
[ "Apache-2.0", "FreeBSD-DOC", "MIT", "DOC" ]
permissive
PKConsul/bigtop
0e7b5133be17a2093c0d5279b000c60b67072a16
2f8311b184bf0c5d25756b098895e43b1dbc3c2e
refs/heads/master
2021-01-20T02:08:29.012667
2017-04-22T17:44:30
2017-04-23T06:27:13
89,379,381
1
0
null
2017-04-25T15:53:29
2017-04-25T15:53:29
null
UTF-8
Python
false
false
3,718
py
#!/usr/bin/python3 # 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...
[ "kevin.monroe@canonical.com" ]
kevin.monroe@canonical.com
fc3ef945c17fc0a2cc07ebc2bd0847622a35d8e1
778a420262c8d1547cbcbbe3143cd73a94d9cff6
/test/test_common.py
bea1a3d8c600fa0d2718f9889976a7f6782f3467
[ "Apache-2.0" ]
permissive
ddierkes/bdbag
a59ef7c4a7207dd9a90374a021c682b0b4642c54
bc35ddcb544f7fa923d4649835ad99a15a778bce
refs/heads/master
2020-03-17T22:06:22.942490
2018-05-03T11:05:57
2018-05-03T11:05:57
133,989,136
0
0
null
2018-05-18T18:14:03
2018-05-18T18:14:03
null
UTF-8
Python
false
false
4,281
py
import os import gc import sys import shutil import tempfile import unittest class BaseTest(unittest.TestCase): def setUp(self): if sys.version_info < (3,): self.assertRaisesRegex = self.assertRaisesRegexp self.tmpdir = tempfile.mkdtemp(prefix="bdbag_test_") shutil.copytree(...
[ "mikedarcy@users.noreply.github.com" ]
mikedarcy@users.noreply.github.com
e209a95d690abfd4189adb9be07986331f77a9b4
f889bc01147869459c0a516382e7b95221295a7b
/test/test_customer_data_customer_search_results_interface.py
edf62d3b5d9ee180f4386a1c633555c9f563ed2b
[]
no_license
wildatheart/magento2-api-client
249a86f5c0289743f8df5b0324ccabd76f326512
e6a707f85b37c6c3e4ef3ff78507a7deb8f71427
refs/heads/master
2021-07-14T16:01:17.644472
2017-10-18T13:33:08
2017-10-18T13:33:08
107,412,121
1
1
null
null
null
null
UTF-8
Python
false
false
1,167
py
# coding: utf-8 """ Magento Community No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sy...
[ "sander@wildatheart.eu" ]
sander@wildatheart.eu
26a913ad3667d31c973daeb7828df81b0f4ab511
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/134.py
085bae10457bf1468888eded9f5f112884ecf5f6
[]
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
398
py
import numpy as np def mainFunc(S, K): ret = 0 for i in range(len(S)-K+1): if S[i]=="-": ret+=1 for j in range(K): if S[i+j]=='-': S[i+j]='+' else: S[i+j]='-' for i in range(K): if S[len(S)-1-i]=='-': return "IMPOSSIBLE" return str(ret) T = int(raw_input()) for t in range(T): P = raw_input()....
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
2dbd39a7be367e0af9174da5b1b0cbfe9ed4b588
8d30f2d627eb15bf0a3ff541812af3a289fffcfc
/backend/yfkyfkfu_1352/settings.py
bed71fd8664c0a8b11e6d92e1c95522d7680c020
[]
no_license
crowdbotics-apps/yfkyfkfu-1352
2eda6d948adf2fd9fcace7997d606ff057168e03
fd53b7f60397737ad99e7cae6e81c1b91c4ae22c
refs/heads/master
2022-12-15T03:23:19.526405
2019-03-13T18:48:22
2019-03-13T18:48:22
175,480,158
0
0
null
2022-12-06T15:10:19
2019-03-13T18:48:19
JavaScript
UTF-8
Python
false
false
4,746
py
""" Django settings for yfkyfkfu_1352 project. Generated by 'django-admin startproject' using Django 1.11.16. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ im...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
f3234921e0a1cd9eaf4c40340a44f85a9b4c646b
74c8f10bfc82e762d83db424e5d4f4b3681ffba0
/venv/Lib/site-packages/winrt/windows/security/cryptography/certificates/__init__.py
df6f418b8fd0c94949f27c7b4d23e5ac4cb7a211
[]
no_license
meghnaraswan/HEARTLabHapticSleeveProject
1e7bd0710c26dad6588f73f6b1f0741c8e31334d
6c2c9a227aaacf34b2205bcb1a856cc70ceccd55
refs/heads/main
2023-07-04T01:51:01.462007
2021-08-17T13:34:43
2021-08-17T13:34:43
390,823,593
0
0
null
null
null
null
UTF-8
Python
false
false
2,949
py
# WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1 import typing, winrt import enum _ns_module = winrt._import_ns_module("Windows.Security.Cryptography.Certificates") try: import winrt.windows.foundation except: pass try: import winrt.windows.foundation.collections ex...
[ "raswan@chapman.edu" ]
raswan@chapman.edu
f7ad37c473eb788222d0d0e5934e021dc5afeffc
238e46a903cf7fac4f83fa8681094bf3c417d22d
/VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/lore/_version.py
c81adaac2b5e3ff5d0fc8545fdf68c50dfda705d
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-3-Clause" ]
permissive
baojunli/FastCAE
da1277f90e584084d461590a3699b941d8c4030b
a3f99f6402da564df87fcef30674ce5f44379962
refs/heads/master
2023-02-25T20:25:31.815729
2021-02-01T03:17:33
2021-02-01T03:17:33
268,390,180
1
0
BSD-3-Clause
2020-06-01T00:39:31
2020-06-01T00:39:31
null
UTF-8
Python
false
false
271
py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # This is an auto-generated file. Do not edit it. """ Provides Twisted version information. """ from twisted.python import versions version = versions.Version('twisted.lore', 14, 0, 0)
[ "l”ibaojunqd@foxmail.com“" ]
l”ibaojunqd@foxmail.com“
cd4d183ad4e4c95ed4724893de2871e7b5527640
f26ea24cebb60b8b6176ee4d3ecbec477be9b7c6
/native_tags/contrib/mapreduce.py
50346ee6e3655e78113e5d8117322daf7447de1a
[ "BSD-3-Clause" ]
permissive
lukaszb/django-native-tags
994fcc0e382ebfd8dfed868a4caeeb33aa78aee5
e1987497b652b1939d152cbc6bc281daf727b34c
refs/heads/master
2021-01-09T06:13:18.485447
2010-05-04T20:08:15
2010-05-04T20:09:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,172
py
from native_tags.decorators import function def get_func(func_name, op=True): import operator from native_tags.registry import register try: return register['function'][func_name] except KeyError: pass if func_name in __builtins__: return __builtins__[func_name] elif has...
[ "justquick@gmail.com" ]
justquick@gmail.com
e0222454928efa8bc1dbb30a24c6055737fc0f20
9a7550dc49afa11b1bb900b8e22752cfb9e941ed
/oauth/urls.py
92ffdbb5ec9cbb586ee9683ea9d549b451ee25c1
[]
no_license
SunmoonSan/MapleBlog
862c4e3631a07ab4e6edb1fd934a4f4768ddd1f3
bc61d42f3927016f7e9e7fb86534639c70cb6479
refs/heads/master
2020-03-22T08:46:52.563003
2018-07-05T03:29:48
2018-07-05T03:29:48
139,790,441
1
0
null
null
null
null
UTF-8
Python
false
false
897
py
"""sunmoon URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based...
[ "18814184179@163.com" ]
18814184179@163.com
808cf496a8bf650c2d81d9c2043e69ea1f1164d0
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/legacy_test/test_dataset_cifar.py
1fca233d3be786b2a42f7dea6aed8dae58d6c25b
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
4,284
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...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
cf0672b04e3ad7d5240dff6351e4a75134aff575
a66460a46611483dfbdc94c7996893f427e60d97
/ansible/my_env/lib/python2.7/site-packages/ansible/modules/cloud/amazon/aws_direct_connect_connection.py
40aede0d048137aeaccca9bd1a9ea0bc41ad91cc
[ "MIT" ]
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
12,050
py
#!/usr/bin/python # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = """ --- module...
[ "theyashkins@gmail.com" ]
theyashkins@gmail.com
a108c73292745efbb8c63a7021a928c423ba5f28
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/3242.py
f20b77deb7902b6a054756552bf203772edf07d0
[]
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,299
py
#!/usr/bin/python def solve_n(case, C, F, X): t = 0.0 # Time stamp cc = 0.0 # Number of cookies cookie_rate = 2.0 solved = False while not solved: time_to_next_event = C / cookie_rate ## Will I solve in this round time_to_solve = t + (X - cc) / cookie_rate if cc + co...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
b270e0997d1a0890099ab916b7ac8762bc7f9c20
3fa27b3ad1c1ca90f2bcf311d89fe8c2ca241cb4
/Stores/migrations/0002_auto_20201004_2348.py
9df9d2685983fb78f3531d6d90e5557aaf8fa728
[]
no_license
emperorDuke/django-backend-for-ecommerce
717e15d7be899abcd5a4b7a7d2203c612f001aeb
83c1ca4d016d876a5c8711ac5cdc448d5a4a533d
refs/heads/master
2023-02-10T08:57:17.852721
2021-01-02T15:49:07
2021-01-02T15:49:07
271,039,012
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
# Generated by Django 2.2.7 on 2020-10-04 22:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('Users', '0001_initial'), ('Stores', '0001_initial'), mi...
[ "effiomduke@gmail.com" ]
effiomduke@gmail.com
9b71bfc82bf69157a0a2f7f8ecb174d1811970bd
f5d4863b6a62ef19ffc98e4f94f6ade1bc8810d3
/Hash Table/274_H-Index.py
76ba54016e28d234d66981f9499e284a2c30bef6
[]
no_license
xiaomojie/LeetCode
138808eb83938f9bd3c2e8a755d908509dff0fd3
eedf73b5f167025a97f0905d3718b6eab2ee3e09
refs/heads/master
2021-06-12T09:26:01.257348
2019-10-23T10:41:06
2019-10-23T10:41:06
76,184,467
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
""" Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. According to the definition of h-index on Wikipedia: "A scientist has index h if h of his/her N papers have at least h citations each, and the other N − h papers have no more...
[ "519399762@qq.com" ]
519399762@qq.com
77a18bf8239b47b8f953066ffb358acd3967a8d0
129e65b23a172ea686f220868c923eb4b08493c7
/game/PyGame/Others/memorypuzzle_buggy4.py
0d3542bc9379b6b5f7d4f9b764be8fc0b21c0128
[]
no_license
urstkj/Python
8dcf434858f9eb171204e064237bb10d76fe7f16
5a41df7c57c1975e0d335f59b528e28ba63cab85
refs/heads/master
2023-01-01T14:15:42.833144
2020-10-12T15:00:55
2020-10-12T15:00:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,234
py
#!/usr/local/bin/python #-*- coding: utf-8 -*- # This version of the game has a bug in it. See if you can figure out how to fix it. # http://inventwithpython.com/pygame/buggy # Bug Description: Icons don't show up # Memory Puzzle # By Al Sweigart al@inventwithpython.com # http://inventwithpython.com/pygame # Released...
[ "ricol@opensimsim.com" ]
ricol@opensimsim.com
8ae50cd6b83ea1fc1e05b6127155a800c38eb5e1
a3f1e80179c23d9202d72b75dd37a49b44785f45
/api/client/swagger_client/models/api_model_script.py
a86fc78a1cbbdf8bc28909ede0b049bcda2e34cf
[ "Apache-2.0" ]
permissive
pvaneck/mlx
b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27
6edaa0bd77787c56b737322a0c875ae30de6cd49
refs/heads/main
2023-05-14T06:08:38.404133
2021-05-04T01:41:11
2021-05-04T01:41:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,189
py
# Copyright 2021 IBM Corporation # # 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 writi...
[ "82406273+mlx-bot@users.noreply.github.com" ]
82406273+mlx-bot@users.noreply.github.com
7c432b6ff53b6f2d2ff8f063dc48ade3a4c92cd1
e2e08d7c97398a42e6554f913ee27340226994d9
/pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Administrator/test_c139330.py
0952f34469d1beb7cbb7b7a29b6cc088aec4bbac
[]
no_license
lizhuoya1111/Automated_testing_practice
88e7be512e831d279324ad710946232377fb4c01
b3a532d33ddeb8d01fff315bcd59b451befdef23
refs/heads/master
2022-12-04T08:19:29.806445
2020-08-14T03:51:20
2020-08-14T03:51:20
287,426,498
0
0
null
null
null
null
UTF-8
Python
false
false
1,662
py
import pytest import time import sys from os.path import dirname, abspath sys.path.insert(0, dirname(dirname(abspath(__file__)))) from page_obj.scg.scg_def_sys import * from page_obj.scg.scg_def import * from page_obj.scg.scg_button import * from page_obj.scg.scg_def_log import * from page_obj.common.rail impo...
[ "15501866985@163.com" ]
15501866985@163.com
fc28ed8f4facbaccd5cc5e51818b7b8af618bc45
cedfdd1398b947b15eccf4473e9bbaddccb878d7
/SDK/openstack/tests/unit/cloud/test_flavors.py
6f44544b37e1975cbe596bede8bcf381013844f4
[]
no_license
Doctor-DC/CMP-Recycle
36fb1fdcf7c3a396bfef89d03948bd0ce626b053
e3e6421f0b5dc28a075bc5bf91be9a45bcbe97c6
refs/heads/dev
2022-12-15T06:28:12.695868
2019-02-26T06:22:21
2019-02-26T06:22:21
142,127,512
0
0
null
2022-12-08T02:29:44
2018-07-24T08:18:46
Python
UTF-8
Python
false
false
11,881
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "8920622362@qq.com" ]
8920622362@qq.com
d330833cb9b420e93029ecd1df3e12af203a3a9d
ee05d803ee01c939d7324db8e8ff2b8990877d69
/e_单词规律/290.py
f5edbac5e8f0297cffaf85541074befd5136adb1
[]
no_license
Nostalogicwh/Leetcode
7660153ffe56b1a348d2bb145bbd77c9c46a5525
5004d6b7157dc6a21666c7f79a38e95fa0ca092f
refs/heads/master
2023-02-26T10:23:26.575572
2021-02-01T09:05:04
2021-02-01T09:05:04
295,983,019
2
0
null
null
null
null
UTF-8
Python
false
false
498
py
class Solution: def wordPattern(self, pattern: str, s: str) -> bool: t = s.split() if len(pattern) != len(t): return False dct = {} for i in range(len(pattern)): if pattern[i] not in dct: if t[i] in dct.values(): return Fals...
[ "apocalypsewh@163.com" ]
apocalypsewh@163.com
e13b84b29a8d28f05463a7eab4ee596dc1714cae
5b7af6548668085da9a6ab86f564538ee73c4865
/build/scripts/slave/recipe_modules/luci_config/example.py
ddbd1f0ab8890cf00a7b52766c5d291be3d044b2
[ "BSD-3-Clause" ]
permissive
elastos/Elastos.APP.Android.ShiJiuTV
463a986450a915f7b3066e6a03aca903cf56f69b
f77189a2b8df86028adc68105988710d16ce012b
refs/heads/master
2023-03-18T03:11:58.337349
2018-03-12T08:50:57
2018-03-13T11:10:27
124,007,751
0
1
null
2022-10-03T03:30:29
2018-03-06T02:21:25
null
UTF-8
Python
false
false
1,504
py
# Copyright 2016 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. from recipe_engine.recipe_api import Property DEPS = [ 'luci_config', 'recipe_engine/properties', 'recipe_engine/step' ] PROPERTIES = { 'auth_token...
[ "xiaokun.mengxk@qcast.cn" ]
xiaokun.mengxk@qcast.cn
e9fac787cd491026568ab5aa63c583c3cc349c1c
78ea634c53a3b52cbc379b5509d99f6729e1644b
/user/forms.py
04c395cf518eb98c1946fa41c4eb578ee10656ab
[]
no_license
TapanManu/Todo-Backend
56a2999a8139a967e1f59d346d22b902f5ed151a
4ed02cbbf2c843fc248edb4a4027e3491fa800c9
refs/heads/master
2022-03-30T10:21:49.165029
2020-02-02T18:45:39
2020-02-02T18:45:39
226,716,615
1
0
null
null
null
null
UTF-8
Python
false
false
666
py
from django import forms from .models import UserProfile from django.contrib.auth.models import User class UserForm(forms.ModelForm): username=forms.CharField(label=("Username"),widget=forms.TextInput( attrs={'placeholder': ('Username'), ...
[ "you@example.com" ]
you@example.com
2109b2bc169fb2b076bbf069f2ef187f1e7baab8
df328969e8d61a02603374c0cb3450556a51c184
/tests/runtests.py
f0f367a3d3e63c7eff09f034e8fdb67b71a9796e
[ "BSD-2-Clause" ]
permissive
samuderapase/django-comments-xtd
c5dd8641e8ca6933a124ae91377f003dd1dfc7a6
5ac29f5269c18acb1709a35b30de3decff7a59fe
refs/heads/master
2020-12-24T23:49:33.382692
2012-10-17T20:07:09
2012-10-17T20:07:09
6,543,617
1
0
null
null
null
null
UTF-8
Python
false
false
610
py
import os import sys def setup_django_settings(): os.chdir(os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, os.getcwd()) os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings" def run_tests(): if not os.environ.get("DJANGO_SETTINGS_MODULE", False): setup_django_settings() ...
[ "danirus@eml.cc" ]
danirus@eml.cc
1b002ff27e79f71f469b0ebe1a940084049bd552
52c8d7594de49e3ba47573c50c95bd112c3c8828
/cycles.py
67f8843f2dd44172c7166fbadb936912a45fed0f
[]
no_license
vitroid/LiqChemSummerSchool2014
bcf592be419bccb6e972c11ffff95a7eff355213
23a29acbc13548c702518448f52f0f8336b167e2
refs/heads/master
2021-06-03T10:29:56.428479
2021-02-15T05:34:56
2021-02-15T05:34:56
21,470,973
0
0
null
null
null
null
UTF-8
Python
false
false
3,020
py
#!/usr/bin/env python # coding: utf-8 ############# functions ############################################### #cycles def all_cycles(graph, maxc=6): #local functions def self_avoiding_cycle(graph,vertex_list): #迷走して経路長が長くなりすぎた時は if len(vertex_list) == maxc+1: #あきらめる。(結果なし) ...
[ "vitroid@gmail.com" ]
vitroid@gmail.com
e062c0a4d1a6c48d574c1f5205d0a19e1c11e9be
6fff0893ef43f1018d65f2e8e1bf27d9f8accf5b
/pw_package/py/pw_package/package_manager.py
1254121126b21ce292b55127abe72651f6f4487a
[ "Apache-2.0" ]
permissive
isabella232/pigweed
eeb68a4eda6f0a9b5ef0b8145d0204bc9f85bfdc
53c2f3e2569d7e582d3dd3056ceb9b2c3b8197b2
refs/heads/main
2023-06-03T10:32:29.498066
2021-06-17T06:38:15
2021-06-17T20:44:55
378,165,913
0
0
Apache-2.0
2021-06-18T13:54:37
2021-06-18T13:53:40
null
UTF-8
Python
false
false
6,156
py
# Copyright 2020 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com
54c9a65d15786c181c4f835eedac784926e7b84a
ce745254ee1c55f06c90b2c0739a4db29efa9913
/src/test/python/cpython-3f944f44ee41/Lib/warnings.py
a427e3510ecaaa6dadeb2a4e957bb6d4880576c7
[ "MIT" ]
permissive
bkiers/python3-parser
5deb0c681e42b07d459758d864fd0689bf26dbad
5a7e097f2dba8d38fa41ebfc95c8bdf4da3042dd
refs/heads/master
2022-10-31T22:02:07.484767
2021-11-17T09:31:49
2021-11-17T09:31:49
20,738,250
39
25
MIT
2022-12-13T08:42:28
2014-06-11T19:34:28
Python
UTF-8
Python
false
false
13,725
py
"""Python part of the warnings subsystem.""" import sys __all__ = ["warn", "showwarning", "formatwarning", "filterwarnings", "resetwarnings", "catch_warnings"] def showwarning(message, category, filename, lineno, file=None, line=None): """Hook to write a warning to a file; replace if you like.""" ...
[ "bkiers@gmail.com" ]
bkiers@gmail.com
f0e7c0414602a99eb49b99e2deeb7a13c9cef635
1b2a1f807b98034567e936b9b5c76c2fc89b908a
/adj_stf/experimental/classification/multi_label_classification_model.py
6cb7fefe4e9aa02a3c55a5373d8693d745ffdb73
[]
no_license
Adreambottle/Transformer2GP
48c955d8eb155caef4c24a3c03ee3aa9ab0bd3da
5ba1a5005c2ad21066304cdeb1d7c2587c8191da
refs/heads/main
2023-07-07T14:17:51.673437
2021-08-17T14:14:56
2021-08-17T14:14:56
397,279,894
0
0
null
null
null
null
UTF-8
Python
false
false
6,051
py
from multiprocessing import cpu_count import torch from adj_tf import ( WEIGHTS_NAME, AlbertConfig, AlbertTokenizer, BertConfig, BertTokenizer, DistilBertConfig, DistilBertTokenizer, RobertaConfig, RobertaTokenizer, XLMConfig, XLMTokenizer, XLNetConfig, XLNetTokenize...
[ "adreambottle@outlook.com" ]
adreambottle@outlook.com
1657f47f0d775612c12560663e94a60de071eab1
7d096568677660790479d87c22b47aae838ef96b
/stubs-legacy/System/Diagnostics/__init___parts/DebuggerBrowsableState.py
43d462d3dfbd7bf6c6f0f09f2a3384a2c0254e67
[ "MIT" ]
permissive
NISystemsEngineering/rfmx-pythonnet
30adbdd5660b0d755957f35b68a4c2f60065800c
cd4f90a88a37ed043df880972cb55dfe18883bb7
refs/heads/master
2023-02-04T00:39:41.107043
2023-02-01T21:58:50
2023-02-01T21:58:50
191,603,578
7
5
MIT
2023-02-01T21:58:52
2019-06-12T16:02:32
Python
UTF-8
Python
false
false
999
py
class DebuggerBrowsableState(Enum,IComparable,IFormattable,IConvertible): """ Provides display instructions for the debugger. enum DebuggerBrowsableState,values: Collapsed (2),Never (0),RootHidden (3) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """...
[ "sean.moore@ni.com" ]
sean.moore@ni.com
ba1dcb17a6e7d524f9f07edc2b67b588720faaad
c25a17f0f82c2eebca55bbe180f4c2ccbbf00292
/01_Jump_to_python/Chap06/6장_practice/practice4_메모장.py
786b7b2f7c82951b7ad1f09ccb24176b86c390b9
[]
no_license
superbeom97/jumpjump
a0a4da6f0df0483ef0cef9833b5fe0402ec63c9c
fc45efce2a2b00c614aa5aa54b36be1572ed40ce
refs/heads/master
2021-09-15T09:35:16.903857
2018-05-30T00:00:59
2018-05-30T00:00:59
111,883,402
0
0
null
null
null
null
UTF-8
Python
false
false
1,901
py
import sys args = sys.argv args_one = args[1] args_two = args[2:] if args_one == "-a": try: f = open("memo.txt", 'r') f = open("memo.txt", 'a') f.write(" ".join(args_two)) f.write("\n") f.close() except: number = int(input("memo.txt 파일이 없습니다. 아래 중 선택하세요\n1. mem...
[ "beom9790@naver.com" ]
beom9790@naver.com
e67af2421558b2a196f0c5584ac66fb0e1dd4252
8f0fc0f4ac44e85e87ade78ac3f8d3b1996587e5
/Model_1.py
ae103fcd74ce05a1803a2d225dbbde006b88ee19
[]
no_license
Data-drone/Kaggle_Allstate
91bc9d2400866f58813f4ba6f04009647d90fd0a
70b7f63eefea55ec9f0c8da6217b7f9ee8f12e76
refs/heads/master
2021-06-30T09:57:59.864482
2017-09-21T17:48:43
2017-09-21T17:48:43
74,899,326
0
0
null
null
null
null
UTF-8
Python
false
false
3,111
py
# -*- coding: utf-8 -*- """ Created on Tue Nov 29 23:23:27 2016 @author: Brian """ """ Build model 1 script """ import os import pandas as pd import numpy as np """ feat table_1 """ #### standard functions def Find_Low_Var(frame): sizes = [] low_var_col = [] for column in frame: data_sets = fram...
[ "bpl.law@gmail.com" ]
bpl.law@gmail.com
ad0646d8b6725f5fb875510a1944d2a4c900e23d
c89e59b4d018e8a2d7dc0dbc3bb7a3768024f849
/before2021/python/문제풀이/day5/3_숫자카운팅.py
a21ba81101844a7fb5f88a171cfd12bc1c5fbafa
[]
no_license
leeiopd/algorithm
ff32103a43e467a5a091257cc07cf35365ecbf91
e41647d3918c3099110d97f455c5ebf9a38d571e
refs/heads/master
2023-03-08T23:46:34.919991
2023-02-22T09:39:46
2023-02-22T09:39:46
166,131,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
import sys sys.stdin = open("3_input.txt") ''' 첫째 줄에 N 이 입력된다. (1≤N≤200,000) 둘째 줄에 배열에 저장 되어있는 N개의 숫자가 순서대로 공백으로 구분되어 입력된다. 셋째 줄에 M 이 입력된다. (1≤M≤200,000) 넷째 줄에 M개의 탐색할 숫자가 순서대로 공백으로 구분되어 입력된다. (이 숫자는 정렬 되어있지 않다) 입력 넷째 줄에서 주어진 탐색할 숫자의 배열 내 저장된 개수를 차례대로 출력한다. ''' N = int(input()) arr = list(map(int, in...
[ "leeiopd@hanmail.net" ]
leeiopd@hanmail.net
9c7e0ec9ac281a7e422bfd1d6657a9deae3fdd71
5b9035dbfe0750e9933728f9631ad7a183dd3429
/18/01/Pool.py
370cc9e9856dfee8cce0818fc689057d3fd7a977
[ "CC0-1.0" ]
permissive
pylangstudy/201709
271efbd4f337d912d0ca958a621eb2a040091528
53d868786d7327a83bfa7f4149549c6f9855a6c6
refs/heads/master
2021-01-21T12:16:21.950493
2017-09-30T00:02:34
2017-09-30T00:02:34
102,058,300
0
0
null
null
null
null
UTF-8
Python
false
false
1,791
py
import weakref import csv class ConstMeta(type): class ConstError(TypeError): pass def __init__(self, name, bases, dict): super(ConstMeta, self).__init__(name, bases, dict) import sys sys.modules[name]=self()#ConstMetaを継承したクラスのモジュールに、そのクラスのインスタンスを代入する def __setattr__...
[ "pylangstudy@yahoo.co.jp" ]
pylangstudy@yahoo.co.jp
07b293d229357fb7a30af429f26cc27c3258bcc2
a7fd2ed77661ed0e32d75678bdfbb448a4b1a38d
/ABC/ABC169/E.py
83299df85f453d27cbba2a130895d08c020b6e77
[]
no_license
Rikuo-git/AtCoder
218a976a96f961371f4c1f4a8bf0e4ef7a78e09c
e7fe5db837acba11aed890181d429517c0f4bedc
refs/heads/master
2023-03-03T10:07:09.825074
2021-02-15T11:37:10
2021-02-15T11:37:10
266,530,674
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
# my solution import numpy as np (n,),*l = [[*map(int,i.split())]for i in open(0)] a,b = np.median(l,axis=0) if n%2>0: print(int(b-a+1)) else: print(int(b*2-a*2)+1) # 奇数の時は中央値の間、偶数の時は中央値の間かける2倍 # shortest fsdshn 数学的にやっていることは同じ n,*l=map(int,open(0).read().split()) m,M=sorted(l[::2]),sorted(l[1::2]) d=n//2 print...
[ "rikuo.takahashi@keio.jp" ]
rikuo.takahashi@keio.jp
43d4c7d2d7bb6f1ecbf5e63561d6f9a6cec1f7ee
b891b6f5f51750a95c4b4ad5766cc63431ad2799
/config.py
0618a3ed2bdd25bc6efb6da48cbc927c5bb0eb49
[ "MIT" ]
permissive
dennisnyamweya/pitching
b12a75f5681289ee70cab65eeb19da5c35c7e718
9c338d3f496f9855b0a9233579f9aa4d3c0d6464
refs/heads/master
2022-09-26T13:55:22.784323
2019-08-06T04:27:52
2019-08-06T04:27:52
200,616,118
0
0
MIT
2022-09-16T18:07:47
2019-08-05T08:36:44
Python
UTF-8
Python
false
false
821
py
import os class Config: """Main configurations class""" SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://moringa:123@localhost/pitchy' SECRET_KEY = "try harder" UPLOADED_PHOTOS_DEST = 'app/static/photos' MAIL_SERVER = 'smtp.gmail.com' MAIL_PORT = 58...
[ "denisnyamweya813@gmail.com" ]
denisnyamweya813@gmail.com
c0f84c701d6083a055c56a3db2f06fafc53a65f1
19ec1116024bebfe16d099f273bd3997b212f594
/FinancePython/strategy_tester/ResultsAnalyser.py
c5e023ef831ce5f75993d87f3206530e38a5596c
[]
no_license
GBelzoni/BigGits
6058f3e89016ad8d39dfe4de339c76e547529032
daa538eca30459bd38a6d7332a27a3b38fac5875
refs/heads/master
2016-09-05T16:06:33.263000
2014-05-10T17:54:19
2014-05-10T17:54:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,357
py
''' Created on Jun 23, 2013 @author: phcostello ''' import pandas as pd import numpy as np class ResultsAnalyser(object): ''' This class analyses fitted trade strategy object ''' def __init__(self, data, valueIndex = 'Value', referenceIndex = None): ''' Takes a pandas dataframe objec...
[ "patrickhcostello@gmail.com" ]
patrickhcostello@gmail.com
da2d02b896509df95c30e65c5bf1e3d25ed7b51d
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/watttime/config_flow.py
4f4206da6ec6ff93b3340a48f97d4137be234a68
[ "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
8,742
py
"""Config flow for WattTime integration.""" from __future__ import annotations from collections.abc import Mapping from typing import TYPE_CHECKING, Any from aiowatttime import Client from aiowatttime.errors import CoordinatesNotFoundError, InvalidCredentialsError import voluptuous as vol from homeassistant import c...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
4bb5fe491298503041491de635624ead25c64fe4
55fb8b448831a0aee6b7f5ff050616da3eee9f8d
/network/AI_net.py
110b24c5fd1cf3bd76cffdc1aacbb1cd8d08ede8
[]
no_license
xsir317/Renju-AI
0f502ab9bab278e0601377004513c8596a465223
92350f0a99a9adcfb4617ebc872c9120a3f02569
refs/heads/master
2021-05-31T17:42:44.153725
2016-06-29T13:12:45
2016-06-29T13:12:45
114,357,155
0
1
null
2017-12-15T10:12:54
2017-12-15T10:12:54
null
UTF-8
Python
false
false
13,424
py
#!/usr/bin/python # -*- coding: utf-8 -*- # author: <yao62995@gmail.com> import os import re import simplejson as json import tensorflow as tf TOWER_NAME = "tower" def weight_variable(shape, stddev=1.0, name=None): initial = tf.truncated_normal(shape, stddev=stddev) return tf.Variable(initial, name=name) ...
[ "yao62995@gmail.com" ]
yao62995@gmail.com
431b96040b15421c2067d65fcbc5cc24243089f3
3929d28489c8cf53b7d828998ba48e618ee08d08
/example_django_react_templatetags/runtests.py
89cce13f9e26c82c47c886b3fc007c977217adc1
[ "MIT" ]
permissive
EriSilver/django-react-templatetags
89e0c08ff54a1a4b5cf96e4848a44fd173172072
b11dd2f1802015589621c3c173850355969c88cf
refs/heads/main
2023-05-27T04:07:29.710783
2021-05-25T19:22:06
2021-05-25T19:22:06
386,394,693
1
0
MIT
2021-07-15T18:52:56
2021-07-15T18:52:55
null
UTF-8
Python
false
false
392
py
import os import sys import argparse from django.core.management import execute_from_command_line os.environ["DJANGO_SETTINGS_MODULE"] = "django_react_templatetags.tests.demosite.settings" def runtests(): args, rest = argparse.ArgumentParser().parse_known_args() argv = [sys.argv[0], "test"] + rest exec...
[ "martin@marteinn.se" ]
martin@marteinn.se
6aba396a479895a42694694b4f4d0f13154ed4bc
da687718aa8ce62974090af63d25e057262e9dfe
/cap18-Interface-GUI-Tkinter/extras/02_tutopoint/08_listBox.py
2d5af720f62d7bbd09ee2a26784e198af2b8b98a
[]
no_license
frclasso/revisao_Python_modulo1
77928fa4409c97d49cc7deccdf291f44c337d290
1e83d0ef9657440db46a8e84b136ac5f9a7c556e
refs/heads/master
2020-06-25T05:37:28.768343
2019-07-27T22:23:58
2019-07-27T22:23:58
199,217,969
1
0
null
null
null
null
UTF-8
Python
false
false
236
py
#!/usr/bin/env python3 from tkinter import * top = Tk() Lb1 = Listbox(top) Lb1.insert(1, "Python") Lb1.insert(2, "Perl") Lb1.insert(3, "C") Lb1.insert(4, "Julia") Lb1.insert(5, "Djago") Lb1.insert(6, "Go") Lb1.pack() top.mainloop()
[ "frcalsso@yahoo.com.br" ]
frcalsso@yahoo.com.br
521b4bf3657fd33b18f0dd8c026ee69df493d283
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-vpc/huaweicloudsdkvpc/v2/model/batch_create_subnet_tags_request.py
9c6ab367a7d382993a6806837feaf9a13b280a97
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,003
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class BatchCreateSubnetTagsRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
e6790effcd437b560f2f787aba0b6d9062b9e38e
6437a3a4a31ab9ad233d6b2d985beb50ed50de23
/PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/paramiko/sftp.py
075e6e9b4e62c0ecd9c3279fdf58e28f5b90d4e0
[]
no_license
sreyemnayr/jss-lost-mode-app
03ddc472decde3c17a11294d8ee48b02f83b71e7
3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa
refs/heads/master
2021-05-02T08:50:10.580091
2018-02-08T20:32:29
2018-02-08T20:32:29
120,813,623
1
0
null
null
null
null
UTF-8
Python
false
false
13,534
py
#\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo #\input texinfo ...
[ "ryanmeyersweb@gmail.com" ]
ryanmeyersweb@gmail.com
cffe50dd97a932ebc3250fdbf9a6349b509f3431
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/powerbidedicated/azure-mgmt-powerbidedicated/generated_samples/create_auto_scale_vcore.py
67ad65f12c53cbe937f4d46b56b858ef521762f8
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,885
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
3739f0b84f86b376235cade51f9071d7d62c8b18
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/eraBhwF8HkJDAa2pS_7.py
4d28a63e1772e975610e4ed6a58348f01d38c9a7
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
""" A group of pirates each have a distribution of gold coins, which can be represented as a list: [3, 9, 4, 5, 5] # Pirate 1 has 3 gold, Pirate 2 has 9 gold, etc. The difference between each pirate's share of gold and that of the richest pirate is represented as: [6, 0, 5, 4, 4] # Since 6 = 9 - 3...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
412354dd10998bf72bc427f1882857eed5d7345a
b4b95c1e3ab70b332596bda4f008cd077fda6b66
/week4/day4/hero_project/hero_project/settings.py
21c5ca234a53139ed25c0c958d84d8c99e7dc311
[]
no_license
johnjdailey/wf-2020-11-15
863952f0267a90191d0cf36869d870746530545f
2f4f6789914be8f5ae2e107c8b2d3762c8330b01
refs/heads/main
2023-03-20T19:14:31.403918
2021-02-24T08:08:10
2021-02-24T08:08:10
364,556,774
1
0
null
2021-05-05T11:40:07
2021-05-05T11:40:07
null
UTF-8
Python
false
false
3,123
py
""" Django settings for hero_project project. Generated by 'django-admin startproject' using Django 3.0.2. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ import ...
[ "CBaut@users.noreply.github.com" ]
CBaut@users.noreply.github.com
1a7a445a0183da5b57d25a858acc8af2e8320d0d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02833/s059211372.py
ed4bbbaccfabc03d67edc5bcf26aebe9e1659cf8
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
n = input() m = len(n) n = int(n) if n%2==1: print(0) else: if m==1: print(0) else: ans = 0 i = 1 while True: ans_plus=n//(2*5**i) if ans_plus==0: break ans += ans_plus i += 1 print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ee7358a3297e1b86ffe16f03447bbb5fa211b7df
b99b32fb0b4597bee94809ebd3b2ddae43064bee
/landmark_detection/menpofit/math/correlationfilter.py
2b80d9e1b419f80ff46311e072543bc34e8aa2a5
[]
no_license
HongwenZhang/ECT-FaceAlignment
c0129dc2aa20bc2bdba03a9ed1cabebcd5e5d848
e94b446db73fca5ba751d6d9a81d42633208f228
refs/heads/master
2023-01-29T14:25:19.502350
2020-12-13T09:18:55
2020-12-13T09:18:55
111,511,579
31
19
null
null
null
null
UTF-8
Python
false
false
14,354
py
import numpy as np from numpy.fft import fft2, ifft2, ifftshift from scipy.sparse import spdiags, eye as speye from scipy.sparse.linalg import spsolve from menpofit.math.fft_utils import pad, crop def mosse(X, y, l=0.01, boundary='constant', crop_filter=True): r""" Minimum Output Sum of Squared Errors (MOSSE...
[ "hongwen.zhang@cripac.ia.ac.cn" ]
hongwen.zhang@cripac.ia.ac.cn
896dfb5f50363046d705420cf1d4635764de6422
b1c271e8c69c5dad361ddf4b9415a0818db061ea
/Brain-Tumor-Segmentation-3D-UNet-CNN-master/create_predictions.py
7777d835a1742a3e1ce6a456d8f788c922f4ccab
[]
no_license
ssh6189/2020.05.12
105e9947d9a6f340120d90aae5edf7c90de44379
a12fab4c477c54ee11a1b58fa207b548ad5e310d
refs/heads/master
2022-07-23T13:07:18.240311
2020-05-14T12:34:19
2020-05-14T12:34:19
263,185,804
0
0
null
null
null
null
UTF-8
Python
false
false
8,663
py
import pickle import numpy as np import copy import nibabel as nib from tifffile import imsave from unet_utils import crop_img, weights_dir, data_dir, pred_dir, DataGenerator, create_model from keras.models import load_model from keras import backend as K from keras.engine import Model K.tensorflow_backend.set_image_di...
[ "ssh6189@naver.com" ]
ssh6189@naver.com
f76e2a9511e5d7f982695f3e4c56ae5960b336e7
771d7c30e9984eb07ba88f0feb2a52c0ee510549
/备份/1804爬虫/爬虫文件/第三天 (1)/mzcookie_opener.py
c7d9dc7b5c5721f122a7802a30b94c735c19698d
[]
no_license
1615961606/-test
5eae5cab4e82136ecf8f4cbdb9990c3bb9e4839f
81a822d303a07310dafe2af612f932d9f34503c3
refs/heads/master
2020-03-19T01:07:01.851584
2019-04-08T10:54:35
2019-04-08T10:54:35
135,523,902
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
#有时候我们需要将获取到的cookie保存在本地文件中, # 我们需要使用到MozillaCookieJar from http import cookiejar from urllib import request #1设置一个文件名,将cookie保存在这个文件下 filename = 'cookie.txt' #2.创建一个cookiejar对象,用来管理和存储cookie mz_cookiejar = cookiejar.MozillaCookieJar(filename) #3.创建一个HTTPCookieprocessor处理器对象,管理cookiejar handler = request.HTTPCookiePr...
[ "c1615961606@163.com" ]
c1615961606@163.com
0e26073101df751e8d715c82ccaac37a322f3dc8
43ec1c06825a39c31b976906f7bded21c19b6019
/google/cloud/talent_v4beta1/services/company_service/transports/grpc_asyncio.py
32721d7b8b24d7c2b9346e0eda6240b2ea168341
[ "Apache-2.0" ]
permissive
renovate-bot/python-talent
b70b036c9d5a6b2887ef428fca853940df067c4b
0413f5114256b8a8c2c157b33aa0cbc1eb9feca5
refs/heads/master
2023-06-07T05:27:59.879356
2021-08-30T16:12:17
2021-08-30T16:12:17
238,039,237
0
0
Apache-2.0
2020-02-03T19:01:22
2020-02-03T19:01:22
null
UTF-8
Python
false
false
16,345
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
renovate-bot.noreply@github.com
d76568dec057241b650414033a7585fd422344b3
549317bc0a7230ec163914c75f75dd008900c57b
/pyroomacoustics/tests/test_room_is_insided.py
3d49962456b8076f646ddc7bbaee2b7887245503
[ "MIT" ]
permissive
oucxlw/pyroomacoustics
0bb633427cd7ce3e93392cdc9d0bc3afc5f2dbf3
0adc91579c9c6daf1b73d2c4863a9fc66b308dbb
refs/heads/master
2023-06-17T17:43:49.743201
2021-07-21T05:36:46
2021-07-21T05:36:46
288,884,904
1
0
MIT
2021-07-21T05:36:47
2020-08-20T02:22:54
Python
UTF-8
Python
false
false
2,248
py
import numpy as np import pyroomacoustics as pra def test_room_is_inside(): # fix the seed for repeatable testing np.random.seed(0) # This was a problematic case # if the source is placed at the same height as one of the corners # the test would fail, even though the source is in the room fl...
[ "fakufaku@gmail.com" ]
fakufaku@gmail.com
f832f81e49e1c70f75a87ad822f0a71408bcd878
dc221edce0ad617aac3b9ad8f4f347ff84f56bf9
/.history/env/sim_20200805143251.py
242268c2da33aec8fc7e1b122fd06d49cdc6e028
[]
no_license
zlm05170/cacontroller
310014c83ecf130643230eba87990e635fe1575f
e76d2eb5d58d6adfe7823e0dcd0059027c52b6bc
refs/heads/master
2022-12-21T08:05:58.315017
2020-09-23T11:45:07
2020-09-23T11:45:07
284,527,141
1
0
null
null
null
null
UTF-8
Python
false
false
332
py
class Sim(): def __init__(self): self.running = True self.actor_list = [] def isRunning(self): return self.running def update(self): for actor in self.actor_list: actor.update() def add_actor(self): print(0) sim = Sim() while sim.isRunning(): ...
[ "angelxx05170@gmail.com" ]
angelxx05170@gmail.com
e35f76e578a9be895bc6fe5bd17d24525b6c2d83
5ae01ab82fcdedbdd70707b825313c40fb373fa3
/scripts/charonInterpreter/parsers/MaterialBlock/IncompleteIonizationDonor/charonLineParserIonizationEnergy.py
2ef6d351a57e960f50d56e19dfefba626502aca9
[]
no_license
worthenmanufacturing/tcad-charon
efc19f770252656ecf0850e7bc4e78fa4d62cf9e
37f103306952a08d0e769767fe9391716246a83d
refs/heads/main
2023-08-23T02:39:38.472864
2021-10-29T20:15:15
2021-10-29T20:15:15
488,068,897
0
0
null
2022-05-03T03:44:45
2022-05-03T03:44:45
null
UTF-8
Python
false
false
5,602
py
from __future__ import print_function import copy class charonLineParserIonizationEnergy: "IonizationEnergy parser" def __init__(self): # Register the parsing keys self.parserName = "IonizationEnergy" self.parsingKey = "ionization energy" self.parsingKeyOptional = [] ...
[ "juan@tcad.com" ]
juan@tcad.com
a50c8907cabee913bacdeff6e3fb16fbd0d147ca
47b49ee4d14254cea00a839123fe5d68f0938959
/notifierlib/channels/jabber.py
109b7df750b2db4e45884d0d3509212e97fcd8d8
[ "MIT" ]
permissive
wefner/notifierlib
35d8b9c754803821462e647239bfd0be564c0a40
0eeec7aef278f66262b1dceab296b5f115e372c3
refs/heads/master
2021-06-30T22:27:06.147554
2017-09-19T13:14:37
2017-09-19T13:14:37
104,245,027
0
0
null
2017-09-20T17:12:26
2017-09-20T17:12:26
null
UTF-8
Python
false
false
6,372
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # File: jabber.py import sleekxmpp import logging from notifierlib.notifierlib import Channel __author__ = '''Costas Tyfoxylos <costas.tyf@gmail.com>, Argiris Gounaris <agounaris@gmail.com>''' __docformat__ = 'plaintext' __date__ = '''19-09-2017''' class XmppClient(slee...
[ "costas.tyf@gmail.com" ]
costas.tyf@gmail.com
d8458f6e25f605602bc2ada1071b2c5365b26943
54c08823016949aa23ff1d372cf70778e6f88758
/raylab/policy/model_based/sampling_mixin.py
bea9c129c44620da8d861320dda315db82a141cb
[ "MIT" ]
permissive
jCrompton/raylab
b4d41c446bc4d8d9ea42ebfdfad59c61956bfe98
9773d6fb942c06c65fe5297a8275f86649966abd
refs/heads/master
2022-11-05T21:59:06.704075
2020-06-08T15:36:20
2020-06-08T15:36:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,338
py
"""Environment model handling mixins for TorchPolicy.""" from dataclasses import dataclass from typing import List import numpy as np import torch from dataclasses_json import DataClassJsonMixin from numpy.random import Generator from ray.rllib import SampleBatch from torch.nn import Module @dataclass(frozen=True) c...
[ "angelolovatto@gmail.com" ]
angelolovatto@gmail.com
88c81310c694092a2f288b858519b4dc9d54fdca
0b38b3d237044b605a519e1aadb298e254c96a6a
/app.py
98eaa7437e240c19d9f07fb20498e32121e58693
[]
no_license
imapex/boilerplate
100355bec3414bd0874fc47e5ff8cdad4464b054
810a2de2ceb6120dd57a64324c6b8581113d348f
refs/heads/master
2023-02-03T19:54:25.074233
2019-08-22T15:13:21
2019-08-22T15:13:21
64,156,013
2
4
null
2023-02-02T06:13:08
2016-07-25T17:53:14
HTML
UTF-8
Python
false
false
862
py
from flask import Flask, render_template, request from flask_restful import Api from views.topology import topology from views.dashboard import dashboard from views.device import device_list from views.patterns import patterns from api.device import Device from api.topology import Topology app = Flask(__name__) api = ...
[ "kecorbin@cisco.com" ]
kecorbin@cisco.com
84442f858cf23a277156002041062239855c2fd2
b8fe7c1769a274964d289d05c1594f2d9f702560
/devel/lib/python2.7/dist-packages/mavros_msgs/msg/_Param.py
f381bb69fd314372e108aa5a3242a0ff31759278
[]
no_license
amilearning/mavros_ws
f3f19c98562cb6fab00e3735b5798dc8fc65652f
b822676abb0a36fe34f7e4064a162db0ddd75fe5
refs/heads/master
2023-06-30T08:27:45.134723
2021-07-16T06:52:35
2021-07-16T06:52:35
386,538,954
0
0
null
null
null
null
UTF-8
Python
false
false
119
py
/home/hojin/drone_ws/ethz_ws/mavros_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_Param.py
[ "hojin.projects@gmail.com" ]
hojin.projects@gmail.com
7d41b30ed78b8b2b0274008e2dd827b812ad3c4b
69e6c93e5d9cc0ad3fcc8d595aff95c71609f13e
/tests/test_nh_32bit.py
2fe18a2a1d465780ee3c2bc08a8405deba44d4fa
[ "GPL-2.0-only", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
atsgen/tf-vrouter
2d27e233774bc5116e964c403f3332df7633afc7
c95daa24744bdeb4839f63ebd057552f18404171
refs/heads/master
2023-02-16T15:37:58.986288
2021-01-15T06:45:23
2021-01-15T06:45:23
290,211,517
0
0
BSD-2-Clause
2020-08-25T12:40:00
2020-08-25T12:39:59
null
UTF-8
Python
false
false
3,288
py
#!/usr/bin/python import os import sys sys.path.append(os.getcwd()) sys.path.append(os.getcwd() + '/lib/') from imports import * # noqa # anything with *test* will be assumed by pytest as a test class TestNh32(unittest.TestCase): @classmethod def setup_class(cls): ObjectBase.setUpClass() O...
[ "andrey-mp@yandex.ru" ]
andrey-mp@yandex.ru
37b53d420486df7030ee6727a9bb4e5d031b98de
d5463d1efdf17941ca3fd79ef106a3db9be48fbc
/booktest/admin.py
61b22a340409278043c70630021506ed840b0214
[]
no_license
holyzhang1314/test11
8d81a408f67bbd010c15429eecfe70ce82ab60c8
24f927a87d4e96a0a5632e73408c9c5abce5c8ab
refs/heads/master
2020-03-19T00:13:35.110758
2018-05-30T15:39:18
2018-05-30T15:39:18
135,464,185
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
from django.contrib import admin from booktest.models import BookInfo,HeroInfo # Register your models here. class BookInfoAdmin(admin.ModelAdmin): list_display = ['id','btitle','bpub_date'] class HeroInfoAdmin(admin.ModelAdmin): list_display = ['id','hname','hgender','hcomment'] admin.site.register(Boo...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
fa3a1c7dc5841b9a1f6b5f0dc876c827ea15a115
9e84a433007ed4f6b2f9fc40f17a6fc5deb8603c
/frontbackend/Polaris/migrations_bak/0032_auto_20190514_1130.py
5143de7c52d0c09775f5fb48da2b2e4d6aa5af9b
[]
no_license
wellwang1993/glbs
8a654bcd2b5e06a823112b6f07f324753f8a1034
a96cd8a949bfae06026c2b9f9fa2ec0230997932
refs/heads/master
2020-05-16T04:56:07.019399
2019-07-26T11:22:21
2019-07-26T11:22:21
182,794,117
0
1
null
null
null
null
UTF-8
Python
false
false
425
py
# Generated by Django 2.1.2 on 2019-05-14 11:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Polaris', '0031_tb_fact_dnszone_info'), ] operations = [ migrations.RemoveField( model_name='tb_fact_view_info', name='view_...
[ "root@localhost" ]
root@localhost
141cdf073eba87447e04afe683e7d304141d170d
10920b11a22a20f9a7f63157818327f3c4e41888
/Final_Project_BIR/Robot_arm/demo_002.py
1a17f31ef610acdfaaa212131cad6479e3b77a34
[]
no_license
dsall/computerv
e331b3d025c8cec0119b789107d1fef18d08f02a
40671d618c31ad9d9b20fc902a218a8e281098bc
refs/heads/master
2021-09-15T09:33:08.495580
2018-05-29T23:41:42
2018-05-29T23:41:42
135,363,332
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
import numpy from arm import Arm from board import Board a = Arm.connect() b = Board.connect(verbose=True) while 1: pot = b.get_pot() pho = b.get_photo() fx = round(numpy.interp(pot, [0, 1], [190, 210])) fy = round(numpy.interp(pot, [0, 1], [-200, 200])) fz = round(numpy.interp(pot, [0, 0.5, 1], ...
[ "djiby45@outlook.com" ]
djiby45@outlook.com
c6aabf9bb04b6c5f151ac01e844bdefdc7b49cb2
6a2a4f97009e31e53340f1b4408e775f3051e498
/Iniciante/p2139.py
4fe3e0111f40176ba65920fe08df23ba24da9d0c
[]
no_license
rafacasa/OnlineJudgePythonCodes
34c31f325cccb325f074492b40591ad880175816
030c18f9020898fdc4f672f9cc17723236e1271d
refs/heads/master
2023-07-15T12:09:45.534873
2023-06-27T00:24:03
2023-06-27T00:24:03
250,595,994
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
from datetime import datetime while True: try: mes, dia = map(int, input().split()) data = datetime(day=dia, month=mes, year=2016) natal = datetime(day=25, month=12, year=2016) if data > natal: print('Ja passou!') continue if data == natal: ...
[ "rafaelluizcasa@gmail.com" ]
rafaelluizcasa@gmail.com
f85638ba486b3870c34ad06f582151b51107b7b2
56470dbd199578f73f9c5b676d19b4774960a68d
/src/CNVRepeat/main.py
af7442c4e6be8f0a2d80549918df51ca5b995614
[ "MIT" ]
permissive
bioCKO/CNVRepeat
a646fa729db6f2b8cca718b0a1dc78b5b848b149
e6b9b90599bf973f523a879ad66f836f82a45bf2
refs/heads/master
2021-03-12T01:26:51.315608
2017-09-15T22:56:20
2017-09-15T22:56:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,856
py
#the package use modules from grocsvs (https://github.com/grocsvs/grocsvs) as basis for designing the pipeline. from __future__ import print_function import argparse import collections import json import logging import sys import os from CNVRepeat import log from CNVRepeat import options as opts from CNVRepeat import...
[ "jinfeng7chen@gmail.com" ]
jinfeng7chen@gmail.com
95de5df7a22b6a56135887f66ed343865118bf9f
ea2b40a2b2209db1c363833e33d77086e1a4b023
/tests/robust/test_min_param_perturbation.py
aeed86f73b1fcb5e15fcf33cf1dd469ca4ea4944
[ "BSD-3-Clause" ]
permissive
kopalgarg/captum
3ecb8de09c2a0e0efa487c67638abb0bb7870d1f
67a3ddcb627f008cf0c23df7b10bc50d75324efe
refs/heads/master
2023-06-15T18:00:54.449011
2021-07-04T21:45:58
2021-07-04T21:46:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,092
py
#!/usr/bin/env python3 from typing import List import torch from torch import Tensor from captum.robust import MinParamPerturbation from tests.helpers.basic import BaseTest, assertTensorAlmostEqual from tests.helpers.basic_models import BasicModel, BasicModel_MultiLayer def inp_subtract(inp: Tensor, ind: int = 0, a...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b7ab6b965d93d7f35c0afff80685ffb4a1e42305
f115984d89ee91e1fefa7bd0546f60db251dfee6
/herg-real-data/fit-full2vclinleak.py
4acedcf938ceadc4884a65115c703c0a6b52626b
[ "BSD-3-Clause" ]
permissive
CardiacModelling/VoltageClampModel
f483fc3ad2129f75e377df210b9b91b1cdcb7565
f30271da75e3c70526e53fb51dc12b317ab3b714
refs/heads/master
2023-07-05T10:07:59.771334
2021-03-03T11:05:35
2021-03-03T11:05:35
227,666,074
3
0
BSD-3-Clause
2021-03-03T11:04:46
2019-12-12T17:58:13
Python
UTF-8
Python
false
false
8,270
py
#!/usr/bin/env python2 from __future__ import print_function import sys sys.path.append('../lib/') import os import numpy as np import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import pints import model as m from parameters import full2vc from parameters import full2vc_fix, full2vc_fix_typical_v...
[ "chonloklei@gmail.com" ]
chonloklei@gmail.com
4517a2973ced5a7f7821ef8b9c39134321bf76b9
24e7e0dfaaeaca8f911b40fcc2937342a0f278fd
/venv/Lib/site-packages/pandas/tests/frame/methods/test_replace.py
83dfd42ae2a6ee2db8dd44070761be1616e746d0
[ "MIT" ]
permissive
BimiLevi/Covid19
90e234c639192d62bb87364ef96d6a46d8268fa0
5f07a9a4609383c02597373d76d6b6485d47936e
refs/heads/master
2023-08-04T13:13:44.480700
2023-08-01T08:36:36
2023-08-01T08:36:36
288,455,446
1
0
MIT
2021-01-22T19:36:26
2020-08-18T12:53:43
HTML
UTF-8
Python
false
false
58,773
py
from datetime import datetime from io import StringIO import re from typing import Dict, List, Union import numpy as np import pytest import pandas as pd from pandas import DataFrame, Index, Series, Timestamp, date_range import pandas._testing as tm @pytest.fixture def mix_ab() -> Dict[str, List[Union[int, str]]]: ...
[ "50989568+BimiLevi@users.noreply.github.com" ]
50989568+BimiLevi@users.noreply.github.com
17ab9fad59ece529f0f67bb4d297210e473db480
c2f92d75d235ff5ed7b213c02c4a0657545ba02f
/newchama_web/2/newchama/repository/migrations/0020_auto__add_field_keyword_is_delete.py
14c0317f746a4890034163cc993cdb2a38deb7d8
[]
no_license
cash2one/tstpthon
fab6112691eb15a8a26bd168af3f179913e0c4e0
fc5c42c024065c7b42bea2b9de1e3874a794a30d
refs/heads/master
2021-01-20T01:52:06.519021
2017-04-14T09:50:55
2017-04-14T09:50:55
89,338,193
0
1
null
2017-04-25T08:46:06
2017-04-25T08:46:06
null
UTF-8
Python
false
false
10,751
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Keyword.is_delete' db.add_column('repository_keyword', 'i...
[ "yxlz_0910@163.com" ]
yxlz_0910@163.com
151f7484ec7c130b4403dd08c90830b52368805d
4202a7c678e0ec25ab2065c4c2804b0296f94480
/MOMI_FCS2/momi_priorset_8_stoch_asym.py
9d14d73e818b29893f66b4c9d5195a512cecadac
[]
no_license
kaiyaprovost/whole_genome_pipeline
f1c479536560c5b8c68fe3a5ba0917140fbb0793
8e605d855c9f0cd6e11e1b73a97260e0d4aa3fae
refs/heads/master
2023-04-22T20:51:01.344297
2023-04-06T19:12:11
2023-04-06T19:12:11
237,044,399
0
0
null
null
null
null
UTF-8
Python
false
false
4,387
py
import momi ## momi2 analysis import logging ## create log file import numpy as np import datetime print("-----\n-----\n-----") now = datetime.datetime.now() print("start logging\n") logging.basicConfig(level=logging.INFO, filename="momi_log_priorset_8_stoch_asym.txt") print("load s...
[ "17089935+kaiyaprovost@users.noreply.github.com" ]
17089935+kaiyaprovost@users.noreply.github.com
7eee6af617335a2d6c8c407680e67b2cc2e81dea
55f6a9b8f90ae308a90739fd8f77f4e7cd10ff19
/spacy/tests/lang/sk/test_tokenizer.py
247847284ad16613d04423f16cb12d3f7d98d573
[ "MIT" ]
permissive
explosion/spaCy
cce07ee403aa398de7ba8941a2c11d22aea68021
3e4264899c3b12f8eabc5cd700146177a34824d0
refs/heads/master
2023-08-31T07:18:13.598768
2023-08-30T09:58:14
2023-08-30T09:58:14
21,467,110
26,348
4,983
MIT
2023-09-13T17:56:22
2014-07-03T15:15:40
Python
UTF-8
Python
false
false
453
py
import pytest SK_BASIC_TOKENIZATION_TESTS = [ ( "Kedy sa narodil Andrej Kiska?", ["Kedy", "sa", "narodil", "Andrej", "Kiska", "?"], ), ] @pytest.mark.parametrize("text,expected_tokens", SK_BASIC_TOKENIZATION_TESTS) def test_sk_tokenizer_basic(sk_tokenizer, text, expected_tokens): tokens =...
[ "noreply@github.com" ]
explosion.noreply@github.com
f16f5035356d1ce85a7038be04e25800a6524e58
12d05a7f65e6ca8ffa701670ed1bec209af77a51
/capsule_biblosa/models/biblosa/nn_utils/integration_func.py
aa4c5160c77aa2c81ae964a4097d76df63f6a1d5
[]
no_license
Bobby-Han/text-classification
ec8015e6bb438fceb8d7b61117519e2d6469c57d
2fa6d3ed4f3b9288ff7fb385c9cced44daf522ca
refs/heads/master
2023-02-24T13:27:36.761439
2021-02-01T06:27:53
2021-02-01T06:27:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,921
py
# coding: utf-8 from models.biblosa.nn_utils.general import exp_mask_for_high_rank, mask_for_high_rank from models.biblosa.nn_utils.nn import linear, get_logits, softsel, dropout, bn_dense_layer from models.biblosa.nn_utils.rnn_cell import SwitchableDropoutWrapper from models.biblosa.nn_utils.rnn import bidirectional_d...
[ "2501967525@qq.com" ]
2501967525@qq.com
92b74d7f6090a1d0b0e6e8984b12d6284c13a25c
2063a057c3ff7b78d93e7bcc041e65eaa05bd86d
/pyglet_utils/platformer/player.py
efcec024a90d637cc3827c79f01b82d2cf7ee8d0
[]
no_license
cm107/pyglet_utils
c45025237bc21bec6f8e0f0d6007428ed6cde559
c20dc6a7658a1f7de4784c3b6ab69bffe9f33a79
refs/heads/master
2022-11-19T20:07:21.326211
2020-07-24T15:09:14
2020-07-24T15:09:14
262,519,884
0
0
null
null
null
null
UTF-8
Python
false
false
10,291
py
from typing import List, cast from .resources import PlayerImages from .game_obj import GameObject from .frame import Frame from .render import RenderBox from .grid import Grid, GridObject from ..lib.exception_handler import Error from pyglet.graphics import Batch from pyglet.shapes import Circle, Rectangle from comm...
[ "mork.clayton3@gmail.com" ]
mork.clayton3@gmail.com
25a66089f805038eee267a2ad15f97dabe903290
ccdbe6e17022aae05e6bee60b37fd92a0b44a6d8
/python/kivyapp/clock.py
b938a8ed87cc8a63c2595f40e017430675c55b3f
[ "Apache-2.0" ]
permissive
bdastur/notes
e580c45ef38abd2b104dce3ec6898031e9c79f27
74341d8de88c8817c557af02c6e8bd470e56151f
refs/heads/master
2023-08-15T19:59:54.631621
2023-07-24T15:27:08
2023-07-24T15:27:08
92,065,482
4
1
Apache-2.0
2023-08-27T19:00:14
2017-05-22T14:52:34
JavaScript
UTF-8
Python
false
false
958
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import datetime from kivy.app import App from kivy.uix.label import Label from kivy.clock import Clock from kivy.uix.gridlayout import GridLayout class MyClock(GridLayout): def __init__(self, **kwargs): super(MyClock, self).__init__(**kwargs) self.col...
[ "bdastur@gmail.com" ]
bdastur@gmail.com
2adcff104db81c7a2defe60c9f677882631fe561
88ae8695987ada722184307301e221e1ba3cc2fa
/chrome/browser/ash/arc/PRESUBMIT.py
9b7c9a6ae4bf8c95ebee88233e1d5518e78f4fe7
[ "BSD-3-Clause" ]
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
535
py
# Copyright 2017 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. USE_PYTHON3 = True def CheckChangeOnUpload(input_api, output_api): # Apply the same PRESUBMIT for components/arc. presubmit_path = ( input_api.change.RepositoryRoot() +...
[ "jengelh@inai.de" ]
jengelh@inai.de
c92082561955960009d752e4ffe94a930beeedb3
eeaf323a92254190195ecbb61c03171aae8f28ee
/accounts/migrations/0002_usercompanies_company_name.py
decf6fe96a53b78ea09b7794c2145c537e0264d5
[]
no_license
abdullakn/job-portal1
44295db5c1169494454fa407ad5716f119e6017b
c5d299acae4262eb9d02317f3358aaa6d4314b13
refs/heads/master
2023-07-18T07:45:54.610627
2021-09-04T11:37:36
2021-09-04T11:37:36
403,040,146
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# Generated by Django 3.2.5 on 2021-07-21 18:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0001_initial'), ] operations = [ migrations.AddField( model_name='usercompanies', name='company_name', ...
[ "abdudebanjazz@gmail.com" ]
abdudebanjazz@gmail.com
7b7d347149ddda0cbc9c618459c6c1fa0741bc89
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/virtual-wan/azext_vwan/vendored_sdks/v2018_08_01/v2018_08_01/aio/operations/_load_balancer_frontend_ip_configurations_operations.py
006f819fc5baa437f0da30dd80a00996d1cbf621
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
8,921
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
821d5e38bb6bc7cd626ca8d67a825d1a4dc3d9fd
eb8b5cde971573668800146b3632e43ed6e493d2
/python/oneflow/nn/modules/random_ops.py
fb7503bc898688f8a370e6cae07c381d2f619987
[ "Apache-2.0" ]
permissive
big-data-ai/oneflow
16f167f7fb7fca2ce527d6e3383c577a90829e8a
b1c67df42fb9c5ab1335008441b0273272d7128d
refs/heads/master
2023-07-08T21:21:41.136387
2021-08-21T11:31:14
2021-08-21T11:31:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,176
py
""" Copyright 2020 The OneFlow 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 applicable law or agr...
[ "noreply@github.com" ]
big-data-ai.noreply@github.com
16bd10b11e4d259ea0624fbef79cfa7bedb25b02
78c4ccb183a99ebaabcdc3a3a69f029e4aee0f5c
/AlgorithmStudy/백준/무지성 랜덤풀이/9월/9.19/1057 토너먼트.py
3ebf3c81fb50fc00a0a769e5763627af7126e159
[]
no_license
cladren123/study
ef2c45bc489fa658dbc9360fb0b0de53250500e5
241326e618f1f3bb1568d588bf6f53b78920587a
refs/heads/master
2023-09-02T02:21:24.560967
2021-11-05T12:20:06
2021-11-05T12:20:06
368,753,950
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
""" 문제유형 : 수학 브루트포스 1 1 3 1 2 3 4 두 수를 2로 나눈 몫을 서로 같아질때까지 빼다보면 라운드 수가 나온다. """ import sys input = sys.stdin.readline n, p1, p2 = map(int, input().split()) count = 0 while p1 != p2 : p1 -= p1//2 p2 -= p2//2 count += 1 print(count)
[ "48821942+cladren123@users.noreply.github.com" ]
48821942+cladren123@users.noreply.github.com
0051f0b263c771d0d796d609592be3b693a8b0bf
446571f13b3c1604cdfbcee8fdc2f956568d7c8d
/geeksforgeeks/arrays/zero_flip.py
dfa147be96fa075eaaa1e5a24d01659937c19f41
[]
no_license
ssarangi/algorithms
2e8f0a4be6bf0f4a3d75b224ed993e1fb0ca0229
e151307f2706214cf8cefa6231290aeb2e5cfd82
refs/heads/master
2021-01-17T02:28:23.291588
2018-01-06T18:35:13
2018-01-06T18:35:13
51,458,833
1
1
null
null
null
null
UTF-8
Python
false
false
1,125
py
def flip_zeros(arr, m): current_not_flipped = m start = 0 max_till_now = 0 positions = [] best_positions = None cons_zero = 0 end_of_zeros = -1 while 0 <= start < len(arr): i = start while (i < len(arr)) and (current_not_flipped != 0 or arr[i] != 0): if arr[i...
[ "satyajit.sarangi@gmail.com" ]
satyajit.sarangi@gmail.com
6ca7f5d24c91b078fc989d351c41a011332afca9
099deeb2c308bdc00a2c423743e4b2aacdac866c
/week7/tuple/youngyun.py
890eaa5146674579d96aa1f65f6d9eff1b6cb958
[]
no_license
Joonsun-Hwang/coding-test-study-lamda
76fed2f18a3220f6731775984425dff49b4379eb
0632ec9dd60024203ed10ebeab07aa7da4782806
refs/heads/main
2023-05-01T21:31:48.174944
2021-05-05T09:48:23
2021-05-05T09:48:23
329,205,708
0
1
null
null
null
null
UTF-8
Python
false
false
317
py
import re def solution(s): s = eval(s[1:-1]) s = list(s) if len(s) > 1: s.sort(key=lambda x: len(x)) else: return list(s) answer = [] for sg in s: for ssg in sg: if ssg not in answer: answer.append(ssg) return answer
[ "fightnyy@naver.com" ]
fightnyy@naver.com
11b31f35dc668112d0124a59dd723b8cb872acea
535a4d3c3f57f5f67d36be3d7d54fdbf9fc30a92
/やってみよう_必修編/chapter09/9_10_imported_restaurant.py
5ef1486dd7e1b597ed37100f39228f9f6ac49553
[]
no_license
kyuugi/saitan-python
4d28c6ecacb4d0b846292ab94f54814dde1cbab0
8196a91a9aac5011bc29782381b93f143b0ae25a
refs/heads/master
2022-12-06T05:49:13.363864
2020-09-01T23:19:32
2020-09-01T23:19:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
from restaurant import Restaurant restaurant = Restaurant('malaychan', '東南アジア料理') restaurant.describe_restaurant() restaurant.open_restaurant()
[ "takanori@takanory.net" ]
takanori@takanory.net
be9c7f1407518d5042bb9f9141452c9827f5bc14
693c76bf548ad67232dba7951be51274a1d6e7d0
/CodeChef/forgotten language.py
eb4eaa2796a22da44e9b55467ed31e12f3533067
[]
no_license
Kartavya-verma/Competitive-Pratice
7958e3034e5e766d6e1186fee2f23562fac70a9b
8c684996410b376263082a7421d4a14a85cf624b
refs/heads/master
2022-12-22T10:38:37.981529
2020-09-14T12:22:50
2020-09-14T12:22:50
295,405,048
0
1
null
null
null
null
UTF-8
Python
false
false
288
py
for i in range(int(input())): n, k = map(int, input().split()) a = input().split() res = ['NO']*(n) for j in range(k): s = input().split() s = s[1:] for j in s: if j in a: res[a.index(j)] = 'YES' print(' '.join(res))
[ "vermakartavya2000@gmail.com" ]
vermakartavya2000@gmail.com
915c97efaf9ef352a967f2d1bed523eda5004a13
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02994/s580686016.py
a70a698f4cc8e26a206d2c2f0cdf4a1574d17b2c
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
n,k=map(int,input().split());a=[k+i for i in range(n)] sumA=sum(a);min_num=float('inf');result=0 for i in a: if min_num > abs(sumA-(sumA-i)): min_num=abs(sumA-(sumA-i)) result=sumA-i print(result)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
48943f3f567ebfe249a08dc5ebe90c5e9841dd43
d68ca034018d66f73024223d4b2266b3c3c901d7
/prev/myworks/onelifefitness/chainxy/spiders/onelifefitness.py
446dae58b98362a5967083b62453bedc1b6f9e84
[]
no_license
GoodyIT/scrapy
caff30d26660f778008ad50532e364ab36aba4c2
5ae80cf83dc62c4e1bd2bfa11049ca39a3ca3488
refs/heads/master
2021-01-20T10:10:18.365194
2017-07-22T13:09:07
2017-07-22T13:09:07
90,330,210
4
0
null
null
null
null
UTF-8
Python
false
false
6,546
py
import scrapy import json import re import csv import requests from scrapy.spiders import Spider from scrapy.http import FormRequest from scrapy.http import Request from scrapy.selector import HtmlXPathSelector from chainxy.items import ChainItem import pdb import usaddress class Onelifefitness(scrapy.Spider): na...
[ "johnsondavid489@yahoo.com" ]
johnsondavid489@yahoo.com
68fbb29c364a4f6b17cf269f611afac8fb2b7027
956f13e160b8381d3f8bbbb4b97bf66981ce0490
/index/migrations/0012_auto_20181119_1617.py
b89c05a472c13c4b6b1a52e677e55b53234dfbd9
[]
no_license
yzp0111/zyogo
e910d0ad029fb1a3f95beb8422336fee474c635a
b4807f4418d8cb1d195097f87e4e74637346cb6d
refs/heads/master
2020-04-07T23:46:44.946618
2018-11-23T11:43:50
2018-11-23T11:43:50
158,824,828
1
0
null
null
null
null
UTF-8
Python
false
false
798
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-11-19 08:17 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('index', '0011_auto_20181119_0852'), ] operations =...
[ "tarena@tedu.cn" ]
tarena@tedu.cn
cde2edf4a10c79aa2209df50159f375a1a6b8a53
3d37f595a8aaaa7c5723ddbd6758ecac5147dce2
/factorial-trailing-zeroes/factorial-trailing-zeroes.py
7087830bf6b61d0261c4e9cb1b2af12cdc58875f
[]
no_license
baggy2797/Leetcode
ec218b155ebb972cd793253f25c3e18117216703
469c1541579401768f7a1da55d504a9e8656b21e
refs/heads/main
2023-06-24T17:03:42.708935
2021-07-16T22:31:24
2021-07-16T22:31:24
342,979,700
1
0
null
null
null
null
UTF-8
Python
false
false
295
py
class Solution: def trailingZeroes(self, n: int) -> int: count = 0 for i in range(5,n+1,5): temp = 5 while i% temp == 0: count = count + 1 temp = temp * 5 return count
[ "bhagwataditya226@gmail.com" ]
bhagwataditya226@gmail.com
e82c5392a6049ce180717cc3145908adaa3f3fc4
01fdd206c8c825b30870bdd3f6e75f0aa113b849
/test/record/parser/test_response_whois_sgnic_sg_property_nameservers_schema_2.py
8a8146c2727ea7d9dd262c2deba6226bf92c8635
[ "MIT" ]
permissive
huyphan/pyyawhois
0fbc5a7d64a53ae6e3393fdc1c7ff0d0ac5f22b5
77fb2f73a9c67989f1d41d98f37037406a69d136
refs/heads/master
2021-01-23T22:42:55.989651
2015-09-19T16:40:06
2015-09-19T16:40:06
23,335,785
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.sgnic.sg/property_nameservers_schema_2 # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser...
[ "dachuy@gmail.com" ]
dachuy@gmail.com
9111ff6d364693b213af14c932a89fef59ae75aa
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5658571765186560_0/Python/Verum/D-OminousOmino.py
fc2ac8e040f5e876b4f9b9ae8a8a363707c04c6b
[]
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
1,118
py
#input_filename = "D-test.txt" #output_filename = "D-test-out.txt" input_filename = "D-small-attempt0.in" output_filename = "D-small-attempt0.out" #input_filename = "D-large.in" #output_filename = "D-large.out" def solve(x,r,c): r, c = min(r,c), max(r,c) if (r*c) % x != 0: return False elif x ==...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
33fa2896293d944a73e801b87353e72d965ebd79
385c027fc4b9c09706a4d880bdb8aa5897d0ebca
/tests/greedy/test_transforms.py
b8189adbd88900a9f717953dc14be5efddba0e93
[ "MIT" ]
permissive
rodluger/starry
076d46324473a6ac634781a3382021d02a5f4fdd
b72dff08588532f96bd072f2f1005e227d8e4ed8
refs/heads/master
2023-05-23T16:37:07.835744
2022-07-14T15:38:11
2022-07-14T15:38:11
120,621,593
131
31
MIT
2021-11-16T16:48:10
2018-02-07T13:54:20
Python
UTF-8
Python
false
false
639
py
import numpy as np import starry def test_latlon_grid(): # Just check that these don't cause errors map = starry.Map(10) lat, lon = map.get_latlon_grid(projection="rect") lat, lon = map.get_latlon_grid(projection="ortho") lat, lon = map.get_latlon_grid(projection="moll") def test_pixel_transform...
[ "rodluger@gmail.com" ]
rodluger@gmail.com
ee4c3fe497c236a93beff8da80c41af918eabd5c
1cd37c59751344c0f89fe9102e25121e50f4cdfa
/python/ZvvHbb13TeVmacros/launchFakeMET.py
8255ef80ffa75f80954f890b1646c569a6eb13c5
[]
no_license
jmduarte/Xbb
7bd2f919c320e4cda1306c0282f1d4c0df220b05
2f23c163b81c0d4d3f979369b86690ddfb7920fd
refs/heads/master
2021-01-12T16:57:59.009289
2016-06-15T09:43:41
2016-06-15T09:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,485
py
import sys from doFakeMET import * #from doFakeMETStupid import * try: fileNames = sys.argv[1] outName = sys.argv[2] print print "Launching doFakeMET with:" print "fileNames:", fileNames print "outName:", outName print except: print print "example:" print "python launchFakeMET.py tree_100_*...
[ "silvio.donato@cern.ch" ]
silvio.donato@cern.ch