blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3785d41263e4b9234ce9fa12094e5c58c4066148 | 14567e2f77d2bf697bb18c3c1e3d6744c11f41c8 | /kfpt/ftp/old/yewubiangeng.py | b6326593df20c37274bbb06c1dd6d1d4c6865c11 | [] | no_license | yanislong/junnan | 268e64c288e18456da621d5485e04bf8eb8f5322 | fc35f32a29a7b6da2a8ea334d0e53a21a81d97f3 | refs/heads/master | 2021-01-01T20:08:05.825407 | 2017-09-08T02:24:40 | 2017-09-08T02:24:40 | 98,772,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,854 | py | #!/usr/bin/python
# -*- coding=utf-8 -*-
import threading
import requests
import chardet
import suds
import sys
sys.path.append('/root/git_20170730/kfpt')
import jiami
import config
import jiemi
reload(sys)
sys.setdefaultencoding('utf-8')
def DI():
num = "1005891"
num2 = "1000213"
token4 = "MTAwNDAwMFQwM1... | [
"335916781@qq.com"
] | 335916781@qq.com |
efb56f8d52f1fa5f6f1068625bd3f62c292a2263 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/move/class/before/src/a.py | 3672729542fb5dc6e6b22bfe999a85b4377e35a4 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 329 | py | from lib1 import URLOpener
import lib1
class C(object):
def __init__(self):
self.opener = lib1.URLOpener(None)
def f(self, x):
o = URLOpener(x)
return o.urlopen()
def g(self, x):
return 'f({0!r}) = {1!r}'.format(URLOpener(x), lib1.URLOpener(x))
def main():
c = C()
... | [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
776c5ce3437a6a7358d8726241ec13c72d739770 | f7346cf6969fb68d157147e91b90584a881ab814 | /tutorials/EI networks/STEP3_ExcInhNet_Brunel2000_brian2.py | e04b4f6bf78e4d5d25d75b7bb94d075b5d40eaae | [
"MIT"
] | permissive | h-mayorquin/camp_india_2016 | d423f330523fafd4320dbce0429ac4eaafc32e3d | a8bf8db7778c39c7ca959a7f876c1aa85f2cae8b | refs/heads/master | 2021-01-20T20:32:50.036961 | 2016-07-15T17:50:34 | 2016-07-15T17:50:34 | 62,492,660 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | from brian2 import *
from data_utils import *
set_device('cpp_standalone', build_on_run=False)
# neuronal parameters
N = 12500 # total number of neurons
NE = 10000 # number of excitatory neurons
vth = 20*mV # threshold potential
vr = 10*mV # reset potential
tau = 20*ms # membrane time constant
eqs_neurons='''
inp : ... | [
"h.mayorquin@gmail.com"
] | h.mayorquin@gmail.com |
4240dcc89fea3086e9ad8bb2404e025a5801990a | b0b566dc3d3df8b60b8ce26d151991700341667f | /cms/custom_settings/models.py | fd4b05b7a5f1c8fae3e729c316734ea79e048e5e | [] | no_license | lorne-luo/hawkeye | cf2f7cbe2494aea92e0fc333217f86d00cf1ecba | 82b633dfc1278ab8f2d25ec699d6034b26c791e2 | refs/heads/master | 2023-01-06T17:28:28.489494 | 2020-01-22T23:53:10 | 2020-01-22T23:53:24 | 185,289,740 | 0 | 0 | null | 2023-01-04T14:03:49 | 2019-05-07T00:13:40 | Python | UTF-8 | Python | false | false | 2,026 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from wagtail.contrib.settings.models import BaseSetting
from wagtail.contrib.settings.registry import register_setting
from core.constants import AU_CITY_CHOICES, AU_STATE_CHOICES
from wagtail.snippets.models import register_snippet
fr... | [
"dev@luotao.net"
] | dev@luotao.net |
720b8b5ad105cefcdea842e54d46b83fb5563320 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/parcoords/_labelangle.py | 13d8fff892a81eaefbdfe73a406fc69782ba9295 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 406 | py | import _plotly_utils.basevalidators
class LabelangleValidator(_plotly_utils.basevalidators.AngleValidator):
def __init__(self, plotly_name="labelangle", parent_name="parcoords", **kwargs):
super(LabelangleValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
8c90dde967a168d19294d7de308bc868f12d2843 | 1719920a92f7194766624474b98d59ef8d6eddaf | /models/workbook_chart.py | e1ff1c8523996a870b6b7be3ab6088101b52548a | [
"MIT"
] | permissive | MIchaelMainer/msgraph-v10-models-python | cfa5e3a65ba675383975a99779763211ed9fa0a9 | adad66363ebe151be2332f3ef74a664584385748 | refs/heads/master | 2020-03-19T12:51:06.370673 | 2018-06-08T00:16:12 | 2018-06-08T00:16:12 | 136,544,573 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,259 | py | # -*- coding: utf-8 -*-
'''
# Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
#
# This file was generated and any changes will be overwritten.
'''
from __future__ import unicode_literals
from ..model.workbook_chart... | [
"mmainer@microsoft.com"
] | mmainer@microsoft.com |
57da4fcb912fee8e7c21d8f1cbf7a1539e0aaf81 | df4ecb12fe9d20cb9fb92014736045425bf57c0d | /setup.py | 19fe4c62ffb2598aeb7ade8be207c6859e5fe45b | [
"MIT"
] | permissive | gecko-robotics/pygecko | a277c717d516de6d836ccfd47ac5b1a6e7dd09ef | a809593a894d8e591e992455a01aa73d8f7b7981 | refs/heads/master | 2022-07-09T09:28:44.500735 | 2019-10-26T23:07:51 | 2019-10-26T23:07:51 | 70,022,547 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,018 | py | from __future__ import print_function
from setuptools import setup
from build_utils import BuildCommand
from build_utils import PublishCommand
from build_utils import BinaryDistribution
from build_utils import SetGitTag
from build_utils import get_pkg_version
# ver = {}
# with open("pygecko/version.py") as fp:
# ... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
5d00565d21a9ad4f8942b1f3c6dd71b679e404a9 | 722386e8cb2be70e3a59e4e4667ad2733d84cb93 | /fishc/列表/test1.py | 0634933ace66d7b1339a02e7d2431af7fe045326 | [] | no_license | yuansuixin/Python_Learning | 15720a33c5d3d4e2e3b2f5214fdbfb4c3d1ed92e | 40aa8d0d034599f448f9125b34897648e87c8f37 | refs/heads/master | 2021-03-31T01:04:10.830905 | 2018-03-11T09:55:49 | 2018-03-11T09:55:49 | 124,743,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | member=['米兔',88,'夜',90,'小甲鱼',87,'意境',56,'求无斜阳',99]
# for i in member:
# print(i)
# temp=0
# for i in member :
# temp+=1
# print(i,end=" ")
# if temp%2==0:
# print()
for i in range(len(member)):
if i%2==0:
print(member[i],member[i+1])
| [
"cyss428@163.com"
] | cyss428@163.com |
33de0048d31e64df7114554ace988932e59ef82a | a61263850fe63de61ec3004519f0d9aa69f104ac | /python_Algorithm/battle16/ArraySideSpin.py | 1608d9afead08d58b4772c40d12f1b9339d25e39 | [] | no_license | Kimhyeonsuk/Programmers_Python | dd0e13ef6690cfab0c46a7c8b07a5f3b40175071 | cc5687c8db2cfa098602829dec3acbf17c5c2177 | refs/heads/master | 2023-07-16T22:30:29.457419 | 2021-09-02T10:40:56 | 2021-09-02T10:40:56 | 355,876,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | def solution(rows, columns, queries):
maplist = [[j+i*columns for j in range(1,columns+1)]for i in range(rows)]
answer=[]
# maplist = [[] for _ in range(rows)]
# for i in range(1, rows + 1):
# for j in range(1, columns + 1):
# maplist[i - 1].append((i - 1) * columns + j)
for que... | [
"philippe10@naver.com"
] | philippe10@naver.com |
aeea0cff7aca2caf25f9f9dd3296fa30bac15a92 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2158/60837/267537.py | f9eb16e1f46295dd50a8fa352db22017d4a5bdca | [] | 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 | 445 | py | def atoi(string):
result=[]
for i in range(len(string)):
if i==0:
if string[i]=='-' or string[i].isdigit():
result.append(string[i])
else:
break
else:
if string[i].isdigit():
result.append(string[i])
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5999d541cfc1bb6b84ba5ce6029f9f926694038a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_116/ch120_2020_03_25_19_26_17_731011.py | 72962cf219a8f0a53e1c3745ee3728e79282ae89 | [] | 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 | 1,087 | py | from random import randint
dinheiro=100
print(dinheiro)
while dinheiro>0:
aposta=int(input("qual o valor da aposta? "))
if aposta !=0:
opcao=input("a aposta é em um número ou paridade? ")
if opcao == "n":
numero=int(input("numero de 1 a 36: "))
roleta=rand... | [
"you@example.com"
] | you@example.com |
c517d6fa8f95cfd54f1582a7435d4da648b9952e | d77cd334b0d05dc12c620d792bf4a1b8382c9cbe | /examples/keras-iris-pipeline/run_pipeline.py | 40c6bb7a3df4745e2e5a2753b981380cba2cec26 | [
"Apache-2.0"
] | permissive | pcrete/skil-python | befc4cdbad78213e6e0221c78e960db5eea16a73 | 672a1aa9e8af020c960ab9ee280cbb6b194afc3f | refs/heads/master | 2020-05-18T17:23:30.325751 | 2019-05-16T07:34:47 | 2019-05-16T07:34:47 | 180,715,194 | 0 | 0 | Apache-2.0 | 2019-04-11T04:39:12 | 2019-04-11T04:39:11 | null | UTF-8 | Python | false | false | 480 | py | import skil
import numpy as np
skil_server = skil.Skil()
work_space = skil.WorkSpace(skil_server)
experiment = skil.Experiment(work_space)
transform = skil.Transform(transform='iris_tp.json', experiment=experiment)
model = skil.Model(model='iris_model.h5', experiment=experiment)
deployment = skil.Deployment(skil_serv... | [
"max.pumperla@googlemail.com"
] | max.pumperla@googlemail.com |
2425a8967772fd09cd8e552026ade42063b6fbd5 | 921f5c21500eb3526d153c6b50fb73bbfe4ecef9 | /1.4 Ad Hoc/Game (Chess)/p278.py | 8a937641efa41281b9c4caa505235964a159317b | [] | no_license | alex-stephens/competitive-programming | c3c2919b1e3978e2f498f2d53837774b490c2a3c | 833363f56ef9ada91952c501829a8f430db0caf5 | refs/heads/master | 2021-09-13T18:25:22.432073 | 2018-05-03T00:46:39 | 2018-05-03T00:46:39 | 119,809,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | # Competitive Programming 3
# Problem 278
T = int(input())
for _ in range(T):
inputStr = input().split()
piece, m, n = inputStr[0], int(inputStr[1]), int(inputStr[2])
if piece == 'k':
print( (m*n + 1) // 2 )
elif piece == 'r' or piece == 'Q':
print(min(m, n))
eli... | [
"alexstephens9@gmail.com"
] | alexstephens9@gmail.com |
9d027ba393e19bf31b550809b6ed0fc83cc038b4 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/verbal-arithmetic-puzzle.py | 0ce93235f4960cf53349882ed8ec47a385473257 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 1,711 | py | # Time: O(10! * n * l)
# Space: O(n * l)
import collections
class Solution(object):
def isSolvable(self, words, result):
"""
:type words: List[str]
:type result: str
:rtype: bool
"""
def backtracking(words, result, i, j, carry, lookup, used):
if j == l... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
63148046f11c2f2384d376fa158a19b4f33f4a5b | ea44a1681e276b3cc85226b53de217f6096a05d4 | /fhir/resources/STU3/documentmanifest.py | 76787d0d214eee4100a2f3e37c06bdfd35bce5fe | [
"BSD-3-Clause"
] | permissive | stephanie-howson/fhir.resources | 69d2a5a6b0fe4387b82e984255b24027b37985c4 | 126e9dc6e14541f74e69ef7c1a0b8a74aa981905 | refs/heads/master | 2020-05-04T22:24:49.826585 | 2019-06-27T15:51:26 | 2019-06-27T15:51:26 | 179,511,579 | 0 | 0 | null | 2019-04-04T14:14:53 | 2019-04-04T14:14:52 | null | UTF-8 | Python | false | false | 7,250 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.1.11917 (http://hl7.org/fhir/StructureDefinition/DocumentManifest) on 2019-01-17.
# 2019, SMART Health IT.
from . import domainresource
class DocumentManifest(domainresource.DomainResource):
""" A list that defines a set of documents.
... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
7e0bca58ce7844776a9d4810c22e4a72cfef623b | a3926c09872e1f74b57431fbb3e711918a11dc0a | /python/array/0766_toeplitz_matrix.py | 3462854c72324c5f85f5dea1c0cc69e7fd5f6b58 | [
"MIT"
] | permissive | linshaoyong/leetcode | e64297dc6afcebcee0614a153a566323bf223779 | 57080da5fbe5d62cbc0b8a34e362a8b0978d5b59 | refs/heads/main | 2022-09-15T00:05:36.476268 | 2022-08-16T14:09:11 | 2022-08-16T14:09:11 | 196,914,051 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | class Solution(object):
def isToeplitzMatrix(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: bool
"""
m, n = len(matrix), len(matrix[0])
for i in range(0, m):
for j in range(0, n):
if i < m - 1 and j < n - 1 and \
... | [
"linshaoyong@gmail.com"
] | linshaoyong@gmail.com |
ebb24c87e2166bd9394bf1a84d7f4ae129ca184b | c970d6543bc17b5a546ae80dc02cbae3f8b3830a | /server/dhcpd.py | d6dba2dcdd1e75ca8d5caebafbfdb0e5f631e0c9 | [] | no_license | Studentergaarden/APsetup | fe0be854f9e74f5ccf4d469d9a448bf8ef5b21cc | b5c2015a87b3ffb904ce13c7e08f656aa839228d | refs/heads/master | 2021-01-10T14:08:54.980350 | 2017-03-06T10:31:44 | 2017-03-06T10:31:44 | 54,288,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/env python2
from __future__ import print_function
navne = ["adm",
"cosmos","kanni","abort","dyt","ug","mg","iv","bzrk","barbar","pharis","psyko"]
vlan_id = range(10,22)
andre = ["priv wifi", "free wifi", "wire"]
andre_id = [30, 32, 40]
ap_id = range(10, 21)
file = "dhcpd.txt"
f = open(file, 'w... | [
"pawsen@gmail.com"
] | pawsen@gmail.com |
ef77160c3cd3e81ca2ba7e4c01584f18b0e7ef73 | f139a99d51cfa01a7892f0ac5bbb022c0cee0664 | /Pythonlogy/ShareYourSystem/Standards/Controllers/Drawer/01_ExampleDoc.py | ffe2e7bb003b595d10f996f43eee1168929bdb9e | [
"MIT"
] | permissive | Ledoux/ShareYourSystem | 90bb2e6be3088b458348afa37ace68c93c4b6a7a | 3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2 | refs/heads/master | 2021-01-25T12:14:34.118295 | 2017-01-12T14:44:31 | 2017-01-12T14:44:31 | 29,198,670 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py |
#ImportModules
import ShareYourSystem as SYS
#Define
MyDrawer=SYS.DrawerClass(
).draw(
{
'|fig1':{
'-Panels':{
'|A':{
'-Axes':{
'|a':{
'-Plots':{
'|0':{
'FiguringDrawVariable':
[
(
'#plot',
{
'#lia... | [
"erwan.ledoux@ens.fr"
] | erwan.ledoux@ens.fr |
216d04773776fc81e9f52786b3e8e6d88651197d | f9f019da9bb01be7e35887082747c4c468a73809 | /enarksh/logger/message/LogFileMessage.py | 5bb11200fb079bca1d1f5fb33a80288aceab3cb2 | [
"MIT"
] | permissive | SetBased/py-enarksh | 63df38ce8622b6b22c0115bbe28630b26de042b7 | ec0c33cdae4a0afeea37928743abd744ef291a9f | refs/heads/master | 2020-04-11T00:14:33.628135 | 2020-01-24T06:52:17 | 2020-01-24T06:52:17 | 60,259,451 | 3 | 2 | null | 2016-08-02T14:42:21 | 2016-06-02T11:43:47 | Python | UTF-8 | Python | false | false | 2,299 | py | """
Enarksh
Copyright 2013-2016 Set Based IT Consultancy
Licence MIT
"""
from enarksh.message.Message import Message
class LogFileMessage(Message):
"""
Message type for notifying the logger that a log file is available for storing into the database.
"""
MESSAGE_TYPE = 'logger:LogFileMessage'
"""... | [
"p.r.water@setbased.nl"
] | p.r.water@setbased.nl |
11decc9e417e1fab8528f8ed17648dc30b41d0c2 | 98be41d34ca238e040408017e1a2af8cfd71a419 | /command_line/aimless_absorption_map.py | 5bb462cc2b80aba1f78ccb44a5aee9b3ce5329e1 | [] | no_license | hainm/xia2 | 338a834fd40aa0a684e4833d34244d6d8f6e0417 | a5ae68c731577f14b8400404e883029d2147c548 | refs/heads/master | 2021-01-24T15:24:44.917551 | 2016-03-10T09:47:27 | 2016-03-10T09:47:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | # LIBTBX_SET_DISPATCHER_NAME dev.xia2.aimless_absorption_map
from __future__ import division
def main(log, png):
from xia2.Toolkit.AimlessSurface import evaluate_1degree, scrape_coefficients
evaluate_1degree(scrape_coefficients(log), png)
return
if __name__ == '__main__':
import sys
main(sys.argv[1], sys.a... | [
"graeme.winter@gmail.com"
] | graeme.winter@gmail.com |
0eb6a2d29b81069f9b412a45ae5e72d5688176c9 | 154ec3de1efcf3c97d154ac2ed0c7cd1c9a25040 | /tests/h/services/delete_user_test.py | 3c3d768d91bc479bf86e39a9e1d7dd833ea1695b | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | Manuelinux/kubeh | 98a9c5c0a98be67c3583dd222bd74046cd5ee484 | a549f0d1c09619843290f9b78bce7668ed90853a | refs/heads/master | 2023-03-16T00:51:43.318292 | 2021-09-17T03:33:14 | 2021-09-17T03:33:14 | 211,371,455 | 0 | 0 | BSD-2-Clause | 2023-03-03T07:20:50 | 2019-09-27T17:37:10 | Python | UTF-8 | Python | false | false | 3,514 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from unittest import mock
import pytest
import sqlalchemy
from h.models import Annotation, Document
from h.services.delete_user import delete_user_service_factory
from h.services.annotation_delete import AnnotationDeleteService
@pytest.mark.usefixtur... | [
"manuelaguirre@Admins-MacBook-Pro.local"
] | manuelaguirre@Admins-MacBook-Pro.local |
4cb25fcb4d4a805d548a5b8cc8fd783cbdf29274 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03378/s823001968.py | 18624fdbcc9f357534760d943dbd2474726acb00 | [] | 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 | 205 | py | N, M, X = map(int, input().split())
A = list(map(int, input().split()))
l_cost = 0
g_cost = 0
for i in A:
if i > X:
l_cost += 1
else:
g_cost += 1
print(min(l_cost, g_cost)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eb0a7405d6d4ee0c550e9d35ccfe74c20a028799 | 648796da46791794ee5de7a8004da437c840323e | /311_calls/p2.py | 4bbbe7466034c4642042a3360d44ed80983f59db | [] | no_license | YulianaGomez/ml_pp | 86530a2ee26bb2f39117ec6a458368a5c1c74104 | 3891350e1ef6fbf2fd29a792387182601f94c250 | refs/heads/master | 2020-03-07T19:09:25.958025 | 2018-05-25T22:34:28 | 2018-05-25T22:34:28 | 127,663,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,906 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import glob
import json
import requests
import sys
"""
Homework 1: Diagnostic
Looking at 311 requests from the Chicago Open Data Portal and
census API's for analysis of Chicago communities
author: Yuliana Zamora
Date: April... | [
"ygomez297@gmail.com"
] | ygomez297@gmail.com |
7a509387928543470805a0bff90e312d0618d154 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/seq2seq/__init__.pyi | 257610d37bf4e559a080c9544edbf012f74b2e01 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | pyi | # Stubs for tensorflow.contrib.seq2seq (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.contrib.seq2seq.python.ops.attention_wrapper import *
from tensorflow.contrib.seq2seq.python.ops.basic_decoder import *
from tensorflow.contrib.seq2seq.python.ops.beam_search_... | [
"matangover@gmail.com"
] | matangover@gmail.com |
0c00c9201ad849dadeaf44789e0b9752180054d1 | b62563d791382e75f65ec9cc281882c58baa1444 | /machine/urls.py | 189042b2c8fa9fb5f6bfb2e68d4fac0d7a3963f7 | [] | no_license | moses-mugoya/Farmers-Machinery-Management-System | 4fda328f1813041c9a6ae64bf618a7eb0b23d78b | 0221c33e5b5936edee3c32baa98f486c9a4726a4 | refs/heads/master | 2020-05-19T03:59:05.148558 | 2019-05-03T20:06:04 | 2019-05-03T20:06:04 | 184,814,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django.urls import re_path
from . import views
app_name = 'machine'
urlpatterns = [
re_path(r'^$', views.product_list, name='product_list'),
re_path(r'^(?P<category_slug>[-\w]+)/$', views.product_list, name='product_list_by_category'),
re_path(r'^(?P<id>\d+)/(?P<slug>[-\w]+)/$', views.product_detail... | [
"mosesmugoya31@gmail.com"
] | mosesmugoya31@gmail.com |
24b53bcc79668b3c8a1ee6b0b5ad11b327473c3d | 842ccd98867d5549884505d18ed1bc7f53a1803e | /Random-Alan-n-Akaash-Puzzles/mystery_2.py | 6f99b554e185fe4a1750db9c0a4030df16940b37 | [] | no_license | AwesomeZaidi/Problem-Solving | dd43593c2a9f5d7ce30c7aaa2575fdd9eaa2ba1d | 28d40a46f415a41b6754378a46ab26e90a094273 | refs/heads/master | 2023-01-09T14:40:10.354981 | 2019-07-10T02:18:26 | 2019-07-10T02:18:26 | 158,969,031 | 3 | 0 | null | 2023-01-03T23:53:00 | 2018-11-24T19:56:50 | Python | UTF-8 | Python | false | false | 932 | py | import string
import sys
def puzzle(binary_input, b):
"""
Create a dictionary values of 1-9-a-z :
Args: ds ? type?
b ? type?
Returns? ?
"""
string_values = {char: index for index, char in enumerate(string.printable[:36])}
# for ... | [
"asimzaidih@gmail.com"
] | asimzaidih@gmail.com |
ebed4b81b88149665e77ef9354a5f98dd58f2dea | 2884e44c7c8b5f1dd7405fba24549e8135605ad8 | /plastiqpublicapi/http/http_response.py | 44ce71985958c313988911f98ecf3550dcaaeec5 | [
"MIT"
] | permissive | jeffkynaston/sdk-spike-python-apimatic | d44d2464ba43c12dabe3ae3ba01ef268f73c16f3 | e1ca52116aabfcdb2f36c24ebd866cf00bb5c6c9 | refs/heads/main | 2023-07-01T15:17:50.623155 | 2021-08-05T22:45:12 | 2021-08-05T22:45:12 | 393,186,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | # -*- coding: utf-8 -*-
"""
plastiqpublicapi
This file was automatically generated by APIMATIC v3.0 (
https://www.apimatic.io ).
"""
class HttpResponse(object):
"""Information about an HTTP Response including its status code, returned
headers, and raw body
Attributes:
stat... | [
"jeff.kynaston@plastiq.com"
] | jeff.kynaston@plastiq.com |
a60935cfa8dae08bce2ff3cda00428329bb70552 | 331ed33890f103ce95318abe0d4bd255929e8f4d | /source/addcode3.py | de77590e3a533f3efb249fe212a7c9c7f61e1647 | [] | no_license | manon2012/e | fa15ce55a72fa6ee20f10d06e9f670ade207209a | c20a345e96ccd702b56a802e2efbd924f1cd808d | refs/heads/master | 2021-01-22T19:25:41.688876 | 2018-09-20T09:59:29 | 2018-09-20T09:59:29 | 102,418,775 | 0 | 0 | null | 2017-09-22T08:21:04 | 2017-09-05T01:30:02 | Python | UTF-8 | Python | false | false | 524 | py | #! /usr/bin/env python
#coding=utf-8
import string, random
#激活码中的字符和数字
field = string.letters + string.digits
#获得四个字母和数字的随机组合
def getRandom():
return "".join(random.sample(field,4))
#生成的每个激活码中有几组
def concatenate(group):
return "-".join([getRandom() for i in range(group)])
#生成n组激活码
def... | [
"manon2012@126.com"
] | manon2012@126.com |
0eef2b6a52956de948410e4e9c6e033167b702c7 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5040/264005040.py | 513841a97cbf65b75f2325a806e4038bc2fd7268 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,104 | py | from bots.botsconfig import *
from records005040 import recorddefs
syntax = {
'version': '00504',
'functionalgroup': 'MG',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'MIS', MIN: 0, MAX: 1},
{ID: 'N1', MIN: 1, MAX: 2, LEVEL: [
{ID: 'N2', MIN: 0... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
be482746b575856b1c3066b076cb0366368f336f | 3abcde3ca444d7612e24a0faf9b89af61d9bad6d | /backend/helpers/basics.py | d2b90f0117484a68d11355657f30f6ecfa701b56 | [] | no_license | cbib/COBRA | fa43d5600beaf36d3dcab98bc7b8faa940a02aea | 54f43d3d2867b4f228dccc6630416808e258be77 | refs/heads/master | 2022-09-25T00:20:57.688447 | 2021-02-16T21:53:28 | 2021-02-16T21:53:28 | 29,740,646 | 2 | 3 | null | 2022-09-01T22:15:54 | 2015-01-23T16:10:43 | HTML | UTF-8 | Python | false | false | 660 | py | # -*- coding: utf-8 -*-
import os
import socket
from configobj import ConfigObj
from helpers.path import config_dir
def get_hostname():
"""
Get host name
:return: host name in lower case
"""
return socket.gethostname().lower()
def load_config(filepath=None):
"""
Load config object from ... | [
"massyah@gmail.com"
] | massyah@gmail.com |
985bcdf1b5a6191154114626de32dee9d23f0777 | 18c99e7d06cb18570a7a2177066e5da2372f895c | /resources/Rougier Tutorial/scripts/contour_ex.py | 7b23fce2fe125487b170f498a7ef97a154bbb519 | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | nstarman/2019-10-22-dotAstronomy-Plotting-Workshop | 00a7d9cc17a32effa0bb6cf758c02efa25d33bd8 | 31e1a10b3d0f051a2cd197ce390bcf96753f153c | refs/heads/master | 2021-07-13T12:14:28.031574 | 2019-10-22T16:00:54 | 2019-10-22T16:00:54 | 214,871,831 | 7 | 0 | MIT | 2020-10-10T07:10:38 | 2019-10-13T18:27:13 | Jupyter Notebook | UTF-8 | Python | false | false | 772 | py | # -----------------------------------------------------------------------------
# Copyright (c) 2015, Nicolas P. Rougier. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -----------------------------------------------------------------------------
import numpy as np
impo... | [
"nstarkman@protonmail.com"
] | nstarkman@protonmail.com |
07550d5e6fdcbc52b17afb6e73ec3d7d63f2f34f | bef2f86cfbf8dd7915c5ec72a6b38e26b5238641 | /application/apps.py | b3e76b61bebbdcea9af4d962559306f250536674 | [] | no_license | rayhancse08/IMS | 19f66ba20b3101ea4ced7d88cd7bd5c8c22b14f6 | 553050a1b6f621a43c1b141459fc1c89c39cfd4a | refs/heads/master | 2023-04-29T23:37:41.202213 | 2019-09-22T10:21:38 | 2019-09-22T10:21:38 | 210,084,538 | 0 | 0 | null | 2023-04-21T20:37:48 | 2019-09-22T03:23:48 | Python | UTF-8 | Python | false | false | 192 | py | from django.apps import AppConfig
class ApiConfig(AppConfig):
name = 'application'
def ready(self):
# noinspection PyUnresolvedReferences
import application.signals
| [
"rayhancse08@gmail.com"
] | rayhancse08@gmail.com |
c0145b7cab1a1625f2d70ee33750828557e05f2d | 4a6e49b33d07c83da9ec56621c27c37a6a28a8ce | /configs/hyper_c32/upernet_swin_small_patch4_window7_4k_hyper_c32.py | b4b092bc4bac1b426b1f12be9915ec6ece9aba54 | [
"Apache-2.0",
"MIT"
] | permissive | DKJJ/Swin-Transformer-Semantic-Segmentation | 213e7516d2abc34b9ecca9dc6037b0ab5499397f | c8707951ddabdc0189451bcbd25c145f1f6cc041 | refs/heads/main | 2023-04-21T12:13:00.624902 | 2021-05-06T12:15:13 | 2021-05-06T12:15:13 | 365,226,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | _base_ = [
'../_base_/models/upernet_swin.py', '../_base_/datasets/hyper_c32.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_4k.py'
]
norm_cfg = dict(type='BN', requires_grad=True)
model = dict(
backbone=dict(
embed_dim=96,
depths=[2, 2, 18, 2],
num_heads=[3, 6, 12... | [
"1395133179@qq.com"
] | 1395133179@qq.com |
a6a678b8ba3327da88bff0b8846c393e3e21ab86 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2606/60622/314959.py | b4aeade74d5cd1b7d707179de1be3c9a40e2440f | [] | 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 | 156 | py | arr=eval(input())
targrt=int(input())
get=False
for i in range(len(arr)):
if arr[i]==target:
get=True
print(i)
if not get:
print(-1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5ef3e003fbc3b211a53280eedf68c8e5c6f2743d | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-dcs/huaweicloudsdkdcs/v2/model/cluster_redis_node_monitored_object.py | e9d88d7507107ddb26464bc9702d96002ef08dc5 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,524 | py | # coding: utf-8
import re
import six
class ClusterRedisNodeMonitoredObject:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
019af73cde0ddb511c0a9d5cb31e3865fc933fd2 | 61f9c7094be028e040d1234f05ee6d7370c2206d | /pytext/models/output_layers/intent_slot_output_layer.py | 1a831b9e0f9fcb261594fa81513bece669755bdb | [
"BSD-3-Clause"
] | permissive | timgates42/pytext | 3ce5473fecca5174108a4eb63209a3eecfb6d8dd | 5f2c3ca6c3ba56e1001e95825abd7ee295de1dff | refs/heads/main | 2023-03-15T07:33:21.217159 | 2022-07-11T16:06:16 | 2022-07-11T16:06:16 | 231,028,915 | 0 | 0 | NOASSERTION | 2019-12-31T05:04:01 | 2019-12-31T05:04:00 | null | UTF-8 | Python | false | false | 7,272 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Any, Dict, List, Optional, Tuple, Union
import torch
import torch.nn as nn
from caffe2.python import core
from pytext.common.constants import DatasetFieldName
from pytext.data.utils import Vocabulary
from ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
429b8aebe0e1a0732958d27d2a34cc2b6c0d64f3 | b28305dab0be0e03765c62b97bcd7f49a4f8073d | /components/cronet/tools/cr_cronet.py | 50a1c371b6c5044149e25ebb99b3029e2786eb66 | [
"BSD-3-Clause"
] | permissive | svarvel/browser-android-tabs | 9e5e27e0a6e302a12fe784ca06123e5ce090ced5 | bd198b4c7a1aca2f3e91f33005d881f42a8d0c3f | refs/heads/base-72.0.3626.105 | 2020-04-24T12:16:31.442851 | 2019-08-02T19:15:36 | 2019-08-02T19:15:36 | 171,950,555 | 1 | 2 | NOASSERTION | 2019-08-02T19:15:37 | 2019-02-21T21:47:44 | null | UTF-8 | Python | false | false | 7,538 | py | #!/usr/bin/python
# Copyright 2014 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.
"""
cr_cronet.py - cr - like helper tool for cronet developers
"""
import argparse
import os
import sys
def run(command, extra_options=''... | [
"artem@brave.com"
] | artem@brave.com |
75d1e9b373c45d4eeb5da68148b4476d955e7fd8 | 0811cd3a37e82eb5175e0c1ffdc13510b256c7de | /bcs-app/backend/apps/configuration/yaml_mode/release.py | 74c76eec59643c3e951e70340e7b17d81810fa86 | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | QiChangYin/bk-bcs-saas-copy-modify | 363d08a64dd860329b8ab051a02f4733a29c33dd | 7ef3b003ff20857a99415d7a3c99d8eb4f5764d9 | refs/heads/master | 2023-02-10T02:30:40.616494 | 2020-01-13T09:23:18 | 2020-01-13T09:23:18 | 233,553,174 | 0 | 0 | NOASSERTION | 2023-02-02T05:12:22 | 2020-01-13T09:01:09 | Python | UTF-8 | Python | false | false | 5,381 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"gejun.coolfriend@gmail.com"
] | gejun.coolfriend@gmail.com |
4cd3b162fb3f2dcf97349017329fb4abb9623ee9 | 327d83545dc9f309de74f4e670cc7a92db954f17 | /python-alg/algorithms/models/node.py | 7c26f409dc734939ce35dd032ac69f064a338444 | [] | no_license | felipe-basina/algoritmos | eb936c45aaa6ae45c514d43e31cabbad5d8ee874 | a4ee5b30801f54f42f71f23c963781d7bed899eb | refs/heads/master | 2023-06-10T17:33:56.420717 | 2021-06-24T01:17:56 | 2021-06-24T01:17:56 | 360,247,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None # References to another node
def __str__(self):
return "[data={}:next={}] ".format(self.data, self.next)
class LinkedList:
def __init__(self):
self.head = None
self.tail = None
def inse... | [
"felipe.basina@gmail.com"
] | felipe.basina@gmail.com |
1462fd76543b2b6609f1a9102b0c572db25685d5 | a1080c28573e1a59ec418ad3b0b0bf18e035dc41 | /LeetCode/Largest Number_366617438.py | 72e6404214711f50d16b2cd8c159aa203f976682 | [] | no_license | AumkarG/Algorithms-and-Data-Structures | 8c6fc21218897d2361fed1512dc6bb13eabd8842 | 03603ad579564ef213c58edd57cb8753cf8f86ba | refs/heads/master | 2023-03-04T09:48:25.167519 | 2021-02-14T17:16:18 | 2021-02-14T17:16:18 | 330,424,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py |
def custom_compare(x, y):
return int(x+y)-int(y+x)
class Solution(object):
def largestNumber(self, nums):
nums=[str(i) for i in nums]
nums=sorted(nums, cmp=custom_compare,reverse=True)
if(nums[0]=='0'):
return '0'
s=""
for i in nums:
s+=i
... | [
"aumkaar,g@gmail.com"
] | aumkaar,g@gmail.com |
3fc636e9d82d6fb11367eecaec1349a89d61de26 | c6969585b7edec377a389da46825a7389b5e8e12 | /examples/twisted/websocket/echo_wsgi/server.py | 55d5c779b9fc775e710c53630db196a5f4ba4dc2 | [
"MIT"
] | permissive | hzruandd/AutobahnPython | 38b35a9d413d53dde9271ec436ccd3d8d07da74e | 942d27eb6a87084cb8964fd2c9abaae67807be13 | refs/heads/master | 2021-01-16T21:43:49.398537 | 2015-09-13T19:16:21 | 2015-09-13T19:16:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | ###############################################################################
#
# The MIT License (MIT)
#
# Copyright (c) Tavendo GmbH
#
# 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 with... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
ad9332db347bf438e8ee4f9c260de6368599a431 | 223c05418090665e9aedb754783cbb55bc3555c1 | /277-Find-the-Celebrity.py | aa6318bbf4b60a4419c8c132d0522012d1b958c3 | [] | no_license | dkrotx/leetcode | 227639030aa62c80adf9412aa50cba4e4ae13034 | 501c347004c140a82a95461e1dbcef6775b3d9da | refs/heads/master | 2021-06-05T23:37:10.369386 | 2019-12-04T17:59:14 | 2019-12-04T17:59:14 | 111,242,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | # The knows API is already defined for you.
# @param a, person a
# @param b, person b
# @return a boolean, whether a knows b
# def knows(a, b):
class Solution(object):
def findCelebrity(self, n):
"""
:type n: int
:rtype: int
"""
guests = list(range(n))
while len(gues... | [
"kisel@corp.mail.ru"
] | kisel@corp.mail.ru |
6ea3185e6c1f56dd935d1047fdc2829d8e96362c | 62b736eff115a6d9cfd323c1b396c94f8a9302fe | /tkinter/simple_grid_window.py | 3c50166b69166d56d82b070fb5b1d328c7360f03 | [] | no_license | ccnelson/Python | dccbb9a2c00f8124216f2f4d4202b94907134083 | ebd0c401b23aee7467332d692588f02cda0ff935 | refs/heads/master | 2023-04-02T09:09:55.716686 | 2021-03-28T18:16:15 | 2021-03-28T18:16:15 | 184,681,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | import tkinter as tk
root = tk.Tk()
tk.Label(root, text="Username").grid(row=0, sticky=tk.W)
tk.Label(root, text="Password").grid(row=1, sticky=tk.W)
tk.Entry(root).grid(row=0, column=1, sticky=tk.E)
tk.Entry(root).grid(row=1, column=1, sticky=tk.E)
tk.Button(root, text="Login").grid(row=2, column=1, sticky=tk.E)... | [
"noreply@github.com"
] | ccnelson.noreply@github.com |
03ac8e612ab1fe00f08e2288e8e207e0a263bd26 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/slim/python/slim/data/dataset_data_provider_test.py | 9b9f6d8b299b60cd67a647e0dc0d0302815a82fb | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,177 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
ae5634dc045f83121134040f072c8b310c823b31 | 9f03e20a34599816358891adc6bcce29cd48aed6 | /test/test_config.py | 7b1fa6d485b48999903d072b0fe69863aaa2e6d9 | [
"MIT"
] | permissive | projg2/flaggie | 9917adf783dca7c18471ad8f822a35e8afec351f | 4485aed08c4e33347d88736fdd4a9914b8349908 | refs/heads/master | 2023-08-08T12:20:58.729741 | 2023-07-27T14:15:01 | 2023-07-27T14:15:01 | 72,996,715 | 14 | 2 | MIT | 2023-03-20T06:05:47 | 2016-11-06T14:40:07 | Python | UTF-8 | Python | false | false | 4,723 | py | # (c) 2022-2023 Michał Górny
# Released under the terms of the MIT license
import dataclasses
import os
import stat
import pytest
from flaggie.config import (TokenType, ConfigLine, find_config_files,
parse_config_file, dump_config_line,
ConfigFile, read_config_... | [
"mgorny@gentoo.org"
] | mgorny@gentoo.org |
00fe334671f8b26e7570ae945446b1944bf41d48 | 9893602fdad77858441c08de15980174e1bd3216 | /examples/gym/tests/test_mp_speed.py | ca36a13a6947aaba69b88c87289009cf7bab731f | [
"MIT"
] | permissive | batermj/TensorArtist | b61a1fa71325b7dc538318160a0924e1b3d5c3d5 | 7654eb026f6d87f64e28ca152d006ef7625b0f45 | refs/heads/master | 2020-03-29T02:28:59.101255 | 2017-11-01T12:37:49 | 2017-11-01T12:37:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | # -*- coding:utf8 -*-
# File : test_mp_speed.py
# Author : Jiayuan Mao
# Email : maojiayuan@gmail.com
# Date : 10/08/2017
#
# This file is part of TensorArtist.
from tartist import image
from tartist.app import rl
import time
import multiprocessing.pool as mppool
def make_player(dump_dir=None):
def resize... | [
"maojiayuan@gmail.com"
] | maojiayuan@gmail.com |
38562e9aaea1b41c2e4b85cc909df95320520890 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /e8TFAMbTTaEr7JSgd_24.py | 1ca289103b566112414504dfb983bcf3e86bd3fb | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py |
def left_digit(num):
num=list(num)
for x in num:
try:
x=int(x)
return x
except ValueError:
continue
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1440e3fdc04667cea54daecb56015389ec30e3d1 | 1e0a8a929f8ea69e476d8a8c5f3455aaf5317de6 | /tests/app/crud/test_dog_crud.py | afd0b8d1e8870ae8f2425c8541e38e56329efd68 | [
"MIT"
] | permissive | jearistiz/guane-intern-fastapi | aa41400fa22076111e96be695fde0a1ff6f118d0 | 269adc3ee6a78a262b4e19e7df291fd920fae2e1 | refs/heads/master | 2023-06-25T08:58:03.729614 | 2023-06-11T15:28:59 | 2023-06-11T15:28:59 | 370,229,796 | 63 | 9 | MIT | 2021-06-11T01:28:52 | 2021-05-24T04:45:23 | Python | UTF-8 | Python | false | false | 625 | py | from sqlalchemy.orm import Session
from app import crud
from mock_data.db_test_data import adopted_dogs_dicts
from tests.utils.handle_db_test import HandleDBTest
from tests.utils.parse_dict import update_dict_fmt_item
class TestDogCrud(HandleDBTest):
def test_get_adopter(self, db: Session):
adopted_dogs_... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
e9d4a1e15e50708818c91043e99270b983a6336f | e66770daf4d1679c735cfab1ac24dd1f5107bd83 | /Chapter02/Ch02_Code/GUI_add_padding.py | ed137f365e58ba1817dfca017a7f893771e77317 | [] | no_license | CodedQuen/Python-GUI-Programming-Cookbook | c038eb6cec4945ff4f2b09e1551f9db712dd2502 | f02b0f9916fb8272edc7ed4704eecce53ae0231c | refs/heads/master | 2022-05-27T19:35:35.004455 | 2020-05-05T01:00:51 | 2020-05-05T01:00:51 | 261,329,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,147 | py | '''
May 2017
@author: Burkhard A. Meier
'''
#======================
# imports
#======================
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
# Create instance
win = tk.Tk()
# Add a title
win.title("Python GUI")
# Modify adding a Label
a_label = ttk... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
7792841836eb91ce3be5aa927a1a37b5f335c11b | ac54aa0127a47fb59211fba9e6cb8431d9d864cd | /muscn/settings/base.py | be10c07ea832ffd447b82e096349324c124e21c9 | [] | no_license | xiringlama/manutd.org.np | 8919e3c1ad0494f88b819089686a756d67d38598 | f394f16edb96c05e2e864dcec1ec52532cd35ac2 | refs/heads/master | 2021-07-12T00:33:17.197706 | 2017-10-16T14:45:10 | 2017-10-16T14:45:10 | 107,222,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,820 | py | import os
BASE_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), '..')
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static'),
]
INSTALLED_APPS = (
'jet',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.m... | [
"xtranophilist@gmail.com"
] | xtranophilist@gmail.com |
948de2c172a457ca55617d1ab99b85b378c019ce | 1840eff4a604161d56fba2747520686a5a008301 | /src/apps/dh/urls.py | 6c7f4b97920cad4dcd334b410b7cf1cbfb3c53eb | [] | no_license | jinchuika/app-suni | f9291fd2e5ecc9915178141039da19444769cb85 | 0e37786d7173abe820fd10b094ffcc2db9593a9c | refs/heads/master | 2023-08-24T21:52:04.490613 | 2023-08-14T21:32:22 | 2023-08-14T21:32:22 | 68,239,483 | 7 | 6 | null | 2023-08-14T21:32:24 | 2016-09-14T20:10:09 | Python | UTF-8 | Python | false | false | 619 | py | from django.conf.urls import url
from apps.dh.views import *
from django.views.decorators.cache import cache_page
urlpatterns = [
url(r'^evento/add/$', EventoDHCreateView.as_view(), name='evento_dh_add'),
url(r'^evento/(?P<pk>\d+)/$', EventoDHDetailView.as_view(), name='evento_dh_detail'),
url(r'^evento/(?... | [
"jinchuika@gmail.com"
] | jinchuika@gmail.com |
2afc06ad0c4f9e8735adae24182886d198a029d3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03284/s870585423.py | e77617648221cc20c5db9167bc932d1b07055052 | [] | 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 | 328 | py | import sys
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
N, K = map(int, readline().split())
if N % K == 0:
print(0)
else:
print(1)
return
if __name__ == '__main__':
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d390872599b775908541f61bca80c5d479995e3e | f900a9f48fe24c6a581bcb28ad1885cfe5743f80 | /Chapter_3/Pg_89_Try_It_Yourself.py | 18af1c66106cd96e52bca0048c6335ef2c061c01 | [] | no_license | Anjali-225/PythonCrashCourse | 76e63415e789f38cee019cd3ea155261ae2e8398 | f9b9649fe0b758c04861dad4d88058d48837a365 | refs/heads/master | 2022-12-03T21:35:07.428613 | 2020-08-18T11:42:58 | 2020-08-18T11:42:58 | 288,430,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,879 | py | #3-4
guest = ['Joe','Eric','Sarah','Helly']
message = f"{guest[0]}, you are invited to dinner"
print(message)
message = f"{guest[1]}, you are invited to dinner"
print(message)
message = f"{guest[2]}, you are invited to dinner"
print(message)
message = f"{guest[3]}, you are invited to dinner\n"
print(message)... | [
"noreply@github.com"
] | Anjali-225.noreply@github.com |
03ee2745ee616d850f07343d7d489f52af1d54c3 | 7d1e23982439f530f3c615f3ac94f59861bc2325 | /controller.py | 70d1ac19194843aea3eac826c23ea21ef5b3ffdb | [] | no_license | daskorod/RPG_project | 3104afafd19038f1c9da0d9aca6f489f9629093b | 3b42a7f3131830d3b728f5d65332750fa032ec03 | refs/heads/master | 2020-05-24T04:24:33.198371 | 2017-11-30T19:29:48 | 2017-11-30T19:29:48 | 84,820,405 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,385 | py | import pygame
import sys
import sounds
class Holy_Spirit ():
def __init__ (self):
self.auto = True
self.k_space = False
self.stage1_flag = False
self.stage2_flag = True
self.flag = 0
self.left = False
self.right = False
self.up = False
self.down = False
self.k_1 = False
self.k_2 = False
self.k... | [
"daskorod@gmail.com"
] | daskorod@gmail.com |
cdbded1453eefce5a9932e58c56c62071e4acfa4 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.65_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=72/params.py | 3e12d7ff33ac0d25b94cbf315139e7c926365d5c | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.518429',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 72,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
374137ee28176ba0c2168a43b68a6388dd3a8e5a | 1dc4fbb38f333c665abd0f7e4f9919ad1b349c37 | /calories/taskapp/celery.py | 2931a91b8d7ded7aebc3e8e3d816fafd07496a4b | [
"BSD-3-Clause",
"MIT"
] | permissive | zulfiyagit/calories | 2dd98a4b160fa88ba592ec150e8e6f640a3fb2e9 | 0719d61891a93eff7c06a9356c26f42b99019444 | refs/heads/master | 2020-12-29T18:52:20.372303 | 2016-03-28T20:54:20 | 2016-03-28T20:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py |
from __future__ import absolute_import
import os
from celery import Celery
from django.apps import AppConfig
from django.conf import settings
if not settings.configured:
# set the default Django settings module for the 'celery' program.
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")... | [
"germanilyin@gmail.com"
] | germanilyin@gmail.com |
fb329c76b6c441fb363aee300ad275687f9b6472 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/MEDIUM/YW_ZXBMM_SZSJ_081.py | 5286dc8bfa248725178097270b3c4f214c05c938 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
662681f8d9d3bea85b90b39c2599f1cef5f7dfc0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03438/s156659931.py | 39826d4f4203b8b35ce295fa8eb7b93a219c170d | [] | 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 | 405 | py | from sys import stdin
n = int(stdin.readline().rstrip())
a = list(map(int,stdin.readline().rstrip().split()))
b = list(map(int,stdin.readline().rstrip().split()))
A = sum(a);B = sum(b)
count_1 = 0
count_2 = 0
total = B-A
for i,j in zip(a,b):
if i < j:
count_1 += (j-i+1)//2
else:
count_2 += i-j
c... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
951bf4d60636cb348271486a74c5e08e4e35b053 | 5d3556043828ec87b4f28b92895904c20b083d2e | /electoral_constituencies/models.py | 0881ebae4ecf60958bfb14f53fce930e1ee322a7 | [] | no_license | Election-Portal/Election-Portal-Webapp | 826c926807bb54568c5db4861a01eaba217fc00b | 90c6a3da19f4bd029f0bd98ea2ca98ab095abbab | refs/heads/master | 2022-12-06T19:38:53.693793 | 2021-05-16T06:16:57 | 2021-05-16T06:16:57 | 139,657,468 | 3 | 3 | null | 2022-11-22T02:48:27 | 2018-07-04T02:16:56 | JavaScript | UTF-8 | Python | false | false | 1,683 | py | from django.db import models
from political_divisions.models import Province, District
from political_parties.models import PoliticalParty
# Create your models here.
class Sabha(models.Model):
name = models.CharField("Name", max_length=50)
district = models.ForeignKey(District,on_delete=models.CASCADE, relat... | [
"aakrist666@gmail.com"
] | aakrist666@gmail.com |
7c874e9bd36d9da166eb7dbe16f7b4208a2ca064 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_55/446.py | 9f01e2cc099049a3b984b3b6a4598d3fb9b46375 | [] | 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 | 872 | py |
FILE = open("C-small-attempt0.in","r")
OUTPUT = open("C-small-attempt0.out","w")
cases = FILE.readline()
def rideCoaster():
global k
global groups
groupsOnCoaster = []
numberOfRiders = 0
while(len(groups) > 0 and numberOfRiders + groups[0] <= k):
groupCount = groups.pop(0)
numberO... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
ae4b4ce6d77449745f49c95d0a0c4c087506107c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/10/usersdata/132/9950/submittedfiles/testes.py | af2fd0de3a5a21e6725e176347e0e0201d8e9097 | [] | 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 | 181 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=input('digite um numero:')
i=1
while(i*i+1*i+2)<a:
if (i*i+1*i+2)==a:
print('s')
else: print('n')
i=i+1 | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
a2d9dd9b79e3f5e7b06713e7c0d82ccb5958531c | 7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0 | /src/igem/neutronics/water/container/borosilicate-glass-backfill/5cm/50wt/plot_all.in.one_cask.thickness_dose.rate_t4045_bottom.py | a45cb45d0aafb14cb4f353d47ae77969fc35a8da | [] | no_license | TheDoctorRAB/plot | dd3b5134c91c8fa7032fcc077c5427b26a80e49d | ed6746d511222c03e79f93548fe3ecd4286bf7b1 | refs/heads/master | 2021-07-11T10:21:19.347531 | 2020-07-16T17:13:15 | 2020-07-16T17:13:15 | 20,462,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,321 | py | ########################################################################
# R.A.Borrelli
# @TheDoctorRAB
# rev.11.March.2015
########################################################################
#
# Plot routine
# All in one file, with no separate control input, lib files
# Plot data is contained in a separate data f... | [
"borrelli@localhost.localdomain"
] | borrelli@localhost.localdomain |
8c420f57c5fe425f7d0fa0dae48e942a44174687 | ceeeb927544c474163347254b11485cc945ea951 | /core/migrations/0002_alter_user_managers.py | ce6eb500dce47749534bad897ccb645b67da9adf | [] | no_license | alisamadzadeh46/filestore | ecc8d84ca16e8a8a51af0b74446a0c3b88cda646 | 4f31e51b2d028cd5f79b6af06d05568a8af7e9e1 | refs/heads/main | 2023-06-22T18:38:08.179128 | 2021-07-26T16:03:19 | 2021-07-26T16:03:19 | 377,806,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | # Generated by Django 3.2.4 on 2021-06-18 16:17
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AlterModelManagers(
name='user',
managers=[
],
),
... | [
"alisamadzadeh46@gmail.com"
] | alisamadzadeh46@gmail.com |
eb105e8f898024dd5992253c0332f1e6987e2698 | 875bb84440094ce058a2ec25a661a7da6bb2e129 | /algo_py/boj/bj1647.py | e51a516645ce66ea00558949de82a9b29f3f55b6 | [] | no_license | shg9411/algo | 150e4291a7ba15990f17ca043ae8ab59db2bf97b | 8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d | refs/heads/master | 2023-06-22T00:24:08.970372 | 2021-07-20T06:07:29 | 2021-07-20T06:07:29 | 221,694,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | import sys
input = sys.stdin.readline
def find(x):
if parent[x] == x:
return x
parent[x] = find(parent[x])
return parent[x]
def union(x, y):
parent[find(y)] = parent[find(x)]
def kruskal():
cnt = res = 0
for c,a,b in q:
if find(a) == find(b):
continue
cnt... | [
"shg9411@naver.com"
] | shg9411@naver.com |
62ac4885dae7b11cc8dde424e4969271cc97bbc6 | 51b838412b7d9d38e398fefff92a0f17b3e040d7 | /enso/enso/utils/strings.py | 64d7d425ff3f7eef188c554f110433ea14749552 | [
"BSD-2-Clause"
] | permissive | thdoan/enso-portable | ed87bb30f3fe5d95e8dc6f3c4fa2a1a3a46f37fc | 2dd6db78f40811d78fe9a162ec95eac14bda2250 | refs/heads/master | 2020-04-05T19:01:50.058547 | 2015-01-11T16:46:56 | 2015-01-11T16:46:56 | 28,119,291 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 5,804 | py | # Copyright (c) 2008, Humanized, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditi... | [
"gchristnsn@gmail.com"
] | gchristnsn@gmail.com |
3562f25f6517f4afb0b4ec5ceb853d99f9d34116 | a331ac86bf0dc281b1b819f70110deb873833698 | /python/higher/test/setup.py | e4e45f1aa39b2122f55e2f893e2600f14fb9fc1a | [] | no_license | sunhuachuang/study-demo | f0c2bbaca78a6735442039a33a051a8b715f8490 | 822dfec043d53678c62f5dce407477f9fdd42873 | refs/heads/master | 2020-07-22T06:16:00.361964 | 2018-01-08T09:50:50 | 2018-01-08T09:50:50 | 66,520,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | from setuptools import setup, find_packages
setup(
name="test",
version="0.0.1",
keywords=("test", ),
description="test package",
url="https://github.com/sunhuachuang",
author="sun",
author_email="huachuang20@gmail.com",
packages=find_packages()
)
| [
"huachuang20@gmail.com"
] | huachuang20@gmail.com |
2aced5c4391eace15eacc74cf045c411483606cb | 17993dcca87d490bc9841437309f309a5592ab38 | /Codes/logistic_regression/mnist_gd_tfdata.py | 73d698f2f762ef720a43606f260da1deb67e8ee2 | [] | no_license | dreamlikexin/machine_learning | bc86ea15ef8552ad1be78a5bc65fb74a2cdb274e | 850e87025270847210b6ad188d2da181983a72c7 | refs/heads/master | 2022-01-16T09:51:20.538340 | 2019-06-19T16:27:26 | 2019-06-19T16:27:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import numpy as np
from tensorflow.examples.tutorials.mnist import input_data
from machine_learning.logistic_regression.lib.logistic_regression_gd import LogisticRegression
import machine_learning.logistic_regression.lib.classification_metrics as metrics
mnist = input_data.read_data_sets("MNIST_data/", one_hot=False)
... | [
"wanglei@wanglei-mbp.local"
] | wanglei@wanglei-mbp.local |
b90c426c5c0356cb66726af358af4424b301208b | 1c83920efda583d0dcedda2ac9d91235094685e2 | /web/appauth/urls.py | 09dc1c47d4ea8a5f66990da9a38e74d9f4098dfe | [] | no_license | eshandas/django_project_template | d866d2d8c5e206b0430e6130bc470042af50b7fa | 09786f6201d8e83199a2c0b7a83b6b6b0c8fd285 | refs/heads/master | 2022-07-22T14:39:50.521081 | 2019-08-06T11:00:19 | 2019-08-06T11:00:19 | 65,455,207 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | from django.urls import path
from .views import (
Login,
Logout,
ForgotPassword,
ResetPassword,
ChangePassword,
UserInfo,
Dashboard,
)
app_name = 'appauth'
urlpatterns = (
path('login/', Login.as_view(), name='login'),
path('logout/', Logout.as_view(), name='logout'),
path('pas... | [
"eshandasnit@gmail.com"
] | eshandasnit@gmail.com |
44d5f850f17713244033a26d848e397da519eccd | af41ca2086f7da6ca036921b2e2cec89e0e5d522 | /src/Pyro4/utils/flameserver.py | 8d278f20be023c123746e028a09a4f2d8f4c0f03 | [
"MIT"
] | permissive | irmen/Pyro4 | 023830905bb0d8fc25aed8e990631268f7fbe52c | 8ec0db055d76ae1512239710b1e30883ee6bd74b | refs/heads/master | 2023-08-22T10:18:47.878310 | 2023-06-04T16:00:32 | 2023-06-04T16:00:32 | 11,037,154 | 667 | 105 | MIT | 2022-06-26T14:23:01 | 2013-06-28T20:25:58 | Python | UTF-8 | Python | false | false | 2,593 | py | """
Pyro FLAME: Foreign Location Automatic Module Exposer.
Easy but potentially very dangerous way of exposing remote modules and builtins.
This is the commandline server.
You can start this module as a script from the command line, to easily get a
flame server running:
:command:`python -m Pyro4.utils.flameserver`... | [
"irmen@razorvine.net"
] | irmen@razorvine.net |
d6a5eef6d6e045d62b9c8acd509ebff2eb2df38e | 1bd073f585706c31c406bceb81eb400f8ac27c1d | /tools/Polygraphy/examples/api/00_inference_with_tensorrt/load_and_run.py | e6a2a4542f7d1efcfc9ee553b1ebadc2d5df6384 | [
"BSD-3-Clause",
"MIT",
"ISC",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | neevaco/TensorRT | 7b5e54c6a7cc6d0fc545e47ab7cf6656f23d5e19 | 650a4a6ed29403bec1a55663b48ef41a075d0b3c | refs/heads/neeva | 2023-05-29T19:20:26.431716 | 2022-08-19T23:09:26 | 2022-08-26T19:09:39 | 526,771,012 | 0 | 0 | Apache-2.0 | 2022-08-19T23:09:27 | 2022-08-19T22:49:25 | null | UTF-8 | Python | false | false | 1,848 | py | #!/usr/bin/env python3
#
# SPDX-FileCopyrightText: Copyright (c) 1993-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
c8b052e45e49f5ed4a2b6da595120102c8858fdf | aef8eb6681e555ecb61ac67151e4c54d6fdd1023 | /plots/plotsTommy/reco/limit_from_plot.py | af021609fd4aa6c7cba619ecabb02483a7fbc6ee | [] | no_license | HephyAnalysisSW/TopEFT | 0e2dc89f7a43bacf50c77a042f56663e9d4f3404 | 53174807c96dffa6654e4dc63bef92f2b71706ee | refs/heads/master | 2022-11-07T02:41:53.120759 | 2020-03-31T08:08:27 | 2020-03-31T08:08:27 | 98,643,866 | 0 | 3 | null | 2019-10-14T09:02:09 | 2017-07-28T11:38:23 | Python | UTF-8 | Python | false | false | 6,928 | py | #!/usr/bin/env python
''' Make limit from plot
'''
#
# Standard imports and batch mode
#
import ROOT, os
ROOT.gROOT.SetBatch(True)
ROOT.gROOT.LoadMacro("$CMSSW_BASE/src/StopsDilepton/tools/scripts/tdrstyle.C")
ROOT.setTDRStyle()
import array
from RootTools.core.standard import *
from TopEFT.Tools.user ... | [
"robert.schoefbeck@cern.ch"
] | robert.schoefbeck@cern.ch |
17d31d1319d4f86626104931e9945e669c8ebd41 | ef41528b736f0ac7927fb110211f016f51362b9a | /Mux_src/aScript_Add_Songs_in_Path.py | de61edc3f4d8b63faeb42e08fd424baa9ff9b05d | [] | no_license | rduvalwa5/Mux | d243edb10121dcd991f5129c367bf918c4bd31e7 | 2dba11861f91e4bdc1ef28279132a6d8dd4ccf54 | refs/heads/master | 2023-05-10T06:53:20.249532 | 2023-04-26T23:53:21 | 2023-04-26T23:53:21 | 73,444,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | '''
Created on Mar 16, 2017
@author: rduvalwa2
'''
from Music_Get_Functions import musicGet_Functions
if __name__ == "__main__":
mux = musicGet_Functions()
myPath = "/Users/rduvalwa2/Music/Music/Media.localized/The Statler Brothers/The Best of the Statler Bros_"
album = "The Best of the Statl... | [
"rduvalwa5@hotmail.com"
] | rduvalwa5@hotmail.com |
9176f63c57c1e41f0f2eda2e4230db2966440a0b | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv2/lib/python3.8/site-packages/ansible/plugins/test/mathstuff.py | b8251ad42ca082239b0a74e1ffec429da98f11f7 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 1,327 | py | # (c) 2016, Ansible, Inc
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is di... | [
"sifang@cisco.com"
] | sifang@cisco.com |
4169ad39d56c6d5f14227d8946f7bbe55d190baf | c3432a248c8a7a43425c0fe1691557c0936ab380 | /2022/two_pointer/1806_부분합.py | b9e0e04008b3c43ba286237ccdafd8891c2652f6 | [] | no_license | Parkyunhwan/BaekJoon | 13cb3af1f45212d7c418ecc4b927f42615b14a74 | 9a882c568f991c9fed3df45277f091626fcc2c94 | refs/heads/master | 2022-12-24T21:47:47.052967 | 2022-12-20T16:16:59 | 2022-12-20T16:16:59 | 232,264,447 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import sys
N, S = map(int, input().split())
arr = list(map(int, input().split()))
def solve():
left = 0
right = 0
sum_value = 0
min_length = sys.maxsize
while left < N:
if sum_value < S:
if right == N:
break
sum_value += arr[right]
right... | [
"pyh8618@gmail.com"
] | pyh8618@gmail.com |
f8455f61ade57470067945166776dbd8bbb6fabf | bec402eb6b6ae6cecf53a6d3190568526584a18c | /coursera/models.py | cc8c7cf0c31d1d9e816567887ed6636eeebeb5ce | [] | no_license | Lozoniuk/bionic_python_django | c29ab730bbeacb7d80be935650a3e9b36be3b679 | 80755b7524d650d99effdf69cc243bd0cdf9b7f5 | refs/heads/master | 2020-04-01T21:25:09.823735 | 2014-11-20T12:23:27 | 2014-11-20T12:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | from django.db import models
from django.contrib.auth.models import User
class Student(User):
group = models.CharField(max_length=200)
def __unicode__(self):
return self.username | [
"bohdan.korniyenko@gmail.com"
] | bohdan.korniyenko@gmail.com |
b243c1eb7fd87338027443c852b9034370f180e6 | cc81cc2e5b52bbfe4d13ed6b37859965f7e9408a | /resources/tests.py | 0bdef30d6c623104d15067e803172c8249d07683 | [] | no_license | youpiyoful/pythonclassmates | edb966e3cdf71d00277e49efb1e16aa4c16bbb5e | 08fae9c919b6376239c150697dc9719520c06b1c | refs/heads/master | 2023-02-14T17:22:09.349226 | 2021-01-14T02:56:16 | 2021-01-14T02:56:16 | 323,906,893 | 0 | 1 | null | 2021-01-14T01:21:34 | 2020-12-23T13:17:05 | Python | UTF-8 | Python | false | false | 2,896 | py | """Integration tests of the resources app pages."""
from wagtail.images.blocks import ImageChooserBlock
from wagtail.tests.utils import WagtailPageTests
from wagtail.tests.utils.form_data import nested_form_data, streamfield
from blog.models import BlogPage, PostPage
from home.models import HomePage
from events.models ... | [
"yoanfornari@gmail.com"
] | yoanfornari@gmail.com |
2be30b19aaefb84da5148586d9978e42bae4eaf9 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/insights/get_activity_log_alert.py | d81b36925eeb8c51d68e403b066ae1877a85315e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,196 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** 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, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
e497ee7c6fc1d99e7cec72d1a9672e3eaba1d033 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04001/s666000652.py | 8febb46752a063e6eaf83e2495a6012824ec9336 | [] | 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 | 1,148 | py | # -*- coding: utf-8 -*-
S = input()
n = len(S)
sum_formula = 0
# bit全探索
for bit in range(2 ** (n-1)):
nums = []
# 何ビットシフトさせるか
num = S[0]
for shift in range(n-1):
if not ((bit >> shift)&1):
num = num + S[shift+1]
else:
nums.append(int(num))
num = S[sh... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
627bfc86c47a4d66c3aa8d88de13b29fe6301b04 | 2a171178942a19afe9891c2425dce208ae04348b | /kubernetes/test/test_v1beta1_job_status.py | cfc5fd57f823f4d33a882fee43bf94f753ee86de | [
"Apache-2.0"
] | permissive | ouccema/client-python | ac3f1dee1c5ad8d82f15aeecb87a2f5f219ca4f4 | d7f33ec53e302e66674df581904a3c5b1fcf3945 | refs/heads/master | 2021-01-12T03:17:54.274888 | 2017-01-03T22:13:14 | 2017-01-03T22:13:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.5.0-snapshot
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Li... | [
"mehdy@google.com"
] | mehdy@google.com |
c24bb6886a48aaa9e47428e2df5af60d5ed73c55 | 63daf225819636397fda6ef7e52783331c27f295 | /taobao-sdk/top/api/rest/ItemcatsAuthorizeGetRequest.py | fd5db84b60c429ab09a6969487e4d598ee750905 | [] | no_license | cash2one/language-Python | e332ecfb4e9321a11407b29987ee64d44e552b15 | 8adb4f2fd2f023f9cc89b4edce1da5f71a3332ab | refs/heads/master | 2021-06-16T15:15:08.346420 | 2017-04-20T02:44:16 | 2017-04-20T02:44:16 | 112,173,361 | 1 | 0 | null | 2017-11-27T09:08:57 | 2017-11-27T09:08:57 | null | UTF-8 | Python | false | false | 310 | py | '''
Created by auto_sdk on 2014.03.04
'''
from top.api.base import RestApi
class ItemcatsAuthorizeGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
def getapiname(self):
return 'taobao.itemcats.authorize.get'
| [
"a@ie9.org"
] | a@ie9.org |
c8085220e7b6b96d11824d7bb4b34a4c007bc174 | 1cceb7c7e6d708dc9de0084739f582ccde2633a3 | /examples/test_no_sensors.py | 647a1dd10226b958ce9207ed3fbddf1dcae15cd9 | [
"BSD-3-Clause"
] | permissive | zjtomy/python-rpi-greenhouse | 5144d0267aecfa2de240832f3350ec67a5e23955 | e263f3b1c933e2d5a174f5b1de1cbb9fc3e8e56f | refs/heads/master | 2020-06-28T08:11:48.233302 | 2015-12-04T13:40:25 | 2015-12-04T13:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from rpi_greenhouse import GreenhouseIndicator
from time import sleep
indicator = GreenhouseIndicator()
while True:
indicator.show_status_on_leds()
sleep(5)
| [
"ben@bennuttall.com"
] | ben@bennuttall.com |
72763d657d04cba848de805950347bceacb614cb | 79aa4b99a48bb16a907916ad63c902443420541a | /0022.py | d6ffc37f8e6df753e4e3fb2d944ef83a56d7bdfd | [] | no_license | mach8686devops/leetcode-100 | 62dec66c719d7cfa120ca9505701df49d8d5b982 | f90526c9b073165b86b933cdf7d1dc496e68f2c6 | refs/heads/main | 2023-04-11T06:28:15.059587 | 2021-04-13T12:11:54 | 2021-04-13T12:11:54 | 329,346,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from functools import lru_cache
from typing import List
class Solution:
@lru_cache(None)
def generateParenthesis(self, n: int) -> List[str]:
if n == 0:
return ['']
ans = []
for c in range(n):
for left in self.generateParenthesis(c):
for right in ... | [
"zhangjohn202@gmail.com"
] | zhangjohn202@gmail.com |
3e2c7d114bfedc67dae2e3410fac2792652dc324 | a7b66311c2ce113789933ec3162f1128b2862f13 | /numeric/scripts/ode_ivp.py | 2441368ba7dc04cf56439a1acc9e817fc837164e | [
"MIT"
] | permissive | ChanJeunlam/geolearn | 214b2c42359ea1164b39117fad2d7470adeb6d35 | 791caa54eb70920823ea7d46714dc8a3e7fa7445 | refs/heads/master | 2023-07-16T04:13:15.526364 | 2021-08-16T05:24:18 | 2021-08-16T05:24:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | import numpy as np
import matplotlib.pyplot as plt
from numeric import ode
# ODE system using euler forwarding
def F(t):
return np.array([t*np.exp(-2*t), np.exp(-t)])
def dF(t, y):
return np.array([-y[0]*2+y[1]**2, y[0]-y[1]-t*y[1]**2])
ny = 2
t = np.arange(0, 10, 0.01)
y = np.ndarray([len(t), ny])
y[0,... | [
"geofkwai@gmail.com"
] | geofkwai@gmail.com |
efaa18429722ce4503c8ba19e35771809d9e0396 | e6e57bf7d4eda37f1188ab72ff249675f40029ee | /algorithms_and_data_structures/strings/Longest Substring Without Repeating Chars.py | eb64961b7d75fe8faebb2d570e7abbd1b9e84eb2 | [] | no_license | juanpedrovel/bomboclap | 4e186331ef1c26c8522e44c21d6a33358471786b | 99db02266c31dd14357ef6a575d35fcf55718617 | refs/heads/master | 2020-04-19T21:16:38.141830 | 2019-01-31T00:31:24 | 2019-01-31T00:31:24 | 168,436,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | class Solution:
def lengthOfLongestSubstring(self, s):
"""
:type s: str
:rtype: int
"""
if not s:
return 0
table = {}
max_lenght = 0
index = 0
for i in range(len(s)):
if s[i] not in table:
table[s[i]] = i... | [
"juanpedrovel@gmail.com"
] | juanpedrovel@gmail.com |
dd8ba826e8603a45322205319804915132768d87 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/SettleCardInfo.py | c423d25f0cd7537346ab3f05842c9ac0b29eede3 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 6,111 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class SettleCardInfo(object):
def __init__(self):
self._account_branch_name = None
self._account_holder_name = None
self._account_inst_city = None
self._account_inst_id ... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
e137ef7c38d70656f375646a2aa4195efccc728c | 6d54a7b26d0eb82152a549a6a9dfde656687752c | /src/controller/python/test/test_scripts/commissioning_window_test.py | 6a113aede20baf05365072828d9a20694ebdf7a0 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | project-chip/connectedhomeip | 81a123d675cf527773f70047d1ed1c43be5ffe6d | ea3970a7f11cd227ac55917edaa835a2a9bc4fc8 | refs/heads/master | 2023-09-01T11:43:37.546040 | 2023-09-01T08:01:32 | 2023-09-01T08:01:32 | 244,694,174 | 6,409 | 1,789 | Apache-2.0 | 2023-09-14T20:56:31 | 2020-03-03T17:05:10 | C++ | UTF-8 | Python | false | false | 4,141 | py | #!/usr/bin/env python3
#
# Copyright (c) 2022 Project CHIP 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/lice... | [
"noreply@github.com"
] | project-chip.noreply@github.com |
d13a948f9a23c48970fce20715c43920dd560cef | cb4cfcece4bc14f591b038adbc7fadccaf447a1d | /FFL.py | ca7c42027fa2499d1ac1f01774358f322ab53de3 | [] | no_license | psycho-pomp/CodeChef | ba88cc8e15b3e87d39ad0c4665c6892620c09d22 | 881edddded0bc8820d22f42b94b9959fd6912c88 | refs/heads/master | 2023-03-21T06:46:14.455055 | 2021-03-11T12:07:48 | 2021-03-11T12:07:48 | 275,214,989 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | # cook your dish here
t=int(input())
for _ in range(t):
n,s=map(int,input().split())
p=list(map(int,input().split()))
a=list(map(int,input().split()))
forward=101
defender=101
for i in range(n):
if a[i]==0:
defender=min(defender,p[i])
else:
forward=min(for... | [
"noreply@github.com"
] | psycho-pomp.noreply@github.com |
ae6f6eb11eddca39b273b09aef1c744440f99616 | a97fb0584709e292a475defc8506eeb85bb24339 | /source code/code/ch1713.py | 6b4765d3aa02f8de2a92852301a82b8975666146 | [] | no_license | AAQ6291/PYCATCH | bd297858051042613739819ed70c535901569079 | 27ec4094be785810074be8b16ef84c85048065b5 | refs/heads/master | 2020-03-26T13:54:57.051016 | 2018-08-17T09:05:19 | 2018-08-17T09:05:19 | 144,963,014 | 0 | 0 | null | null | null | null | BIG5 | Python | false | false | 1,037 | py | #!/usr/bin/env python
# -*- coding: cp950 -*-
# 載入wx模組
import wx
class myApp(wx.App):
def OnInit(self):
frame = myFrame()
frame.Show()
return True
# 定義myFrame並繼承wx.Frame類別
class myFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(
self,
None,
-1,
... | [
"angelak.tw@gmail.com"
] | angelak.tw@gmail.com |
86bd165356c0d04df9db767185f55bfd03bdff46 | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/chapter 10/ex.04.py | 4c70f122bd5ee54fdb03df271fb9de2af6b7e6e9 | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | '''Write a function to count how many odd numbers are in a list.
'''
import random
def countOdd(lst):
odd = 0
for e in lst:
if e % 2 != 0:
odd = odd + 1
return odd
# make a random list to test the function
lst = []
for i in range(100):
lst.append(random.randint(0, 1000))
print(co... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
0b428bafc96d69a7ec8a727903cea42cf0da8fd4 | 3c0f93b707e94b8e1363588a1699ab7d663d8f98 | /bin/extract-extrema | 9c4d337bd4e25c292cd676ab2f7aee1be00d2d98 | [
"MIT"
] | permissive | reedessick/universality | 3b9c39dbf3d15fe6fe824ac124cbecec5d3f1836 | d4eaf5ee6ea1ecf79f0ec32ea5e62093c95d4b57 | refs/heads/master | 2023-07-13T19:31:38.277188 | 2023-06-25T23:03:14 | 2023-06-25T23:03:14 | 118,136,331 | 2 | 2 | MIT | 2023-04-25T17:29:33 | 2018-01-19T14:39:26 | Python | UTF-8 | Python | false | false | 3,553 | #!/usr/bin/env python3
"""an executable to extract extrema from a single CSV
"""
__author__ = "Reed Essick (reed.essick@gmail.com)"
#-------------------------------------------------
import os
import numpy as np
from argparse import ArgumentParser
### non-standard libraries
from universality.utils import io
from u... | [
"reed.essick@ligo.org"
] | reed.essick@ligo.org | |
add0946623b02c0745122b9f79576c4775ae89d3 | be0898ceaee2a7758ffe0365b976f597b2ad26dd | /rls/common/when.py | e669f55384cf6128b09564efcdf3616c92ce3403 | [
"Apache-2.0"
] | permissive | violet712/RLs | 1edaa6427108e3e36d513cb6038be771837ecca4 | 25cc97c96cbb19fe859c9387b7547cbada2c89f2 | refs/heads/master | 2023-08-25T12:04:24.174034 | 2021-10-03T15:37:32 | 2021-10-03T15:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # Added from https://github.com/danijar/dreamerv2/blob/main/dreamerv2/common/when.py
class Every:
def __init__(self, every):
self._every = every
self._last = None
def __call__(self, step):
step = int(step)
if not self._every:
return False
if self._last is N... | [
"keavnn.wjs@gmail.com"
] | keavnn.wjs@gmail.com |
1c8e159794e5cfb1b219726ba7ee4901f03e4a45 | e4ec5b6cf3cfe2568ef0b5654c019e398b4ecc67 | /azure-cli/2.0.18/libexec/lib/python3.6/site-packages/azure/mgmt/monitor/models/log_profile_resource.py | f9ecb885b923e3bdda411b695f0559bb08ac013c | [] | no_license | EnjoyLifeFund/macHighSierra-cellars | 59051e496ed0e68d14e0d5d91367a2c92c95e1fb | 49a477d42f081e52f4c5bdd39535156a2df52d09 | refs/heads/master | 2022-12-25T19:28:29.992466 | 2017-10-10T13:00:08 | 2017-10-10T13:00:08 | 96,081,471 | 3 | 1 | null | 2022-12-17T02:26:21 | 2017-07-03T07:17:34 | null | UTF-8 | Python | false | false | 3,481 | 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 ... | [
"Raliclo@gmail.com"
] | Raliclo@gmail.com |
1374e0b0e8afa74b17c2f850934167d58caa106d | 1ac87c808c33336338f359f0233593a8e603f45e | /allauth/socialaccount/providers/github/models.py | 9db7841b25cbd32da8ff47e04218751cb5eb7996 | [
"MIT"
] | permissive | chhabrakadabra/django-allauth | 140a10de87061f7d60e1fa692b98b64afb9f987e | 19c7070c1b777b7ad69c2c6fd59571cc5a18f4e4 | refs/heads/master | 2021-01-15T20:19:26.777224 | 2012-06-19T04:26:29 | 2012-06-19T04:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from allauth.socialaccount import providers
from allauth.socialaccount.providers.base import Provider, ProviderAccount
class GitHubAccount(ProviderAccount):
pass
class GitHubProvider(Provider):
id = 'github'
name = 'GitHub'
package = 'allauth.socialaccount.providers.github'
account_class = GitHub... | [
"raymond.penners@intenct.nl"
] | raymond.penners@intenct.nl |
0ea1c176cc778405f57d3480c00c550dd52c912d | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /070_oop/001_classes/_exercises/_templates/ITDN Python RUS/002_Nasledovanie i Polimorfizm/07-complex-hierarchy-mro.py | fdcb6405dbda80c5c907ab54361512d72eeb6716 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,916 | py | # # -*- coding: utf-8 -*-
#
#
# """
# Ещё один пример использования super и построения интерпретатором линеаризации.
# Иерархия классов в данном примере:
# object
# / \
# / \
# A B
# \ /|
# \ / |
# \ / |
# ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
3497af07bb08348af9c4922ec8bd53d41bfe1fa4 | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /atcoder/other/lang_test_v1/d.py | 6fd5f61c90ff0b66f7c278d91505477cd77d5fe2 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
N = int(raw_input())
md = [map(int, raw_input().split("/")) for i in xrange(N)]
days = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
day = 1
yobi = 6
hurikae = 0
seq = 0
ans = 0
for month in xrange(1, 13):
... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
bfffbcc498ac8cd37e2b430fca1a96b35ea64a56 | 384d0be5ac54b306b945cf38c10d9b0a44c975ea | /devstack/tools/jenkins/jenkins_home/print_summary.py | 1d71a4a8ebc7b254f088afcd8a132aed0bbd2b19 | [] | no_license | ashokcse/openstack-bill | 05ae313637b3cfecba946d2a9b32e8c7609fc721 | 1a3d7575d4b341f64fa1764ed47e47a7504a9bcc | refs/heads/master | 2021-01-18T14:05:24.696165 | 2012-09-12T11:29:20 | 2012-09-12T11:29:20 | 5,424,267 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | #!/usr/bin/python
import urllib
import json
import sys
def print_usage():
print "Usage: %s [jenkins_url (eg. http://50.56.12.202:8080/)]"\
% sys.argv[0]
sys.exit()
def fetch_blob(url):
return json.loads(urllib.urlopen(url + '/api/json').read())
if len(sys.argv) < 2:
print_usage()
BASE_U... | [
"ashokcse@live.com"
] | ashokcse@live.com |
9f79fa06ef66ddb7cd1d963ace3346532d9816b1 | dfcaf26ef27684c7f1e69b7e90ac55094158115d | /paper/pnoise.py | d921844ebbea85d25dbd7430145b0a9781503021 | [] | no_license | msyriac/halofg | e038bbacf9332091087be657b39f274cb5507c01 | d1aaf54624a3d8bae9eeba667c6e895621a06f24 | refs/heads/master | 2021-01-21T06:10:04.264115 | 2018-04-02T02:26:23 | 2018-04-02T02:26:23 | 101,939,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | from __future__ import print_function
from orphics import maps,io,cosmology
from enlib import enmap
import numpy as np
import os,sys
import healpy as hp
proot = "/gpfs01/astro/workarea/msyriac/data/planck/"
import matplotlib as mpl
from cycler import cycler
mpl.rcParams['axes.prop_cycle'] = cycler(color=['#2424f0','#... | [
"mathewsyriac@gmail.com"
] | mathewsyriac@gmail.com |
c4833fd78cb4f1385717b3b9920ad922d0188f62 | b6b30fb06124883b074144c419b43d9182efcdff | /CV/optical_flow.py | 25910a23c86c039d5993508aecf7a546dac33369 | [] | no_license | JohnnySunkel/BlueSky | da9f5107034289bfbdd3ba40458f9b9bd8d01a13 | 5a20eba9ef7509a5a7b7af86e7be848242e1a72f | refs/heads/master | 2021-07-07T09:57:37.256950 | 2020-09-02T23:06:46 | 2020-09-02T23:06:46 | 166,883,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,754 | py | import cv2
import numpy as np
# Define a function to track the object
def start_tracking():
# Initialize the video capture object
cap = cv2.VideoCapture(0)
# Define the scaling factor for the frames
scaling_factor = 0.5
# Number of frames to track
num_frames_to_track = 5
# N... | [
"noreply@github.com"
] | JohnnySunkel.noreply@github.com |
a0f701624c8c135034af750da087fe9d8ef8866d | 54985d2bc6649272d877bfb10df0572a97fb934e | /tests/record_expert_demonstrations.py | 9fcc1349c43f65519a88ba2dd37a699007a2a190 | [
"MIT"
] | permissive | panlybero/gym-novel-gridworlds | d28a9b282c37327d98bfb19e87a9b1d35bf0aae9 | b375cb674337b6cd3c33b165d323cf98b46095e3 | refs/heads/master | 2022-12-04T23:48:10.462777 | 2020-07-19T23:15:12 | 2020-07-19T23:15:12 | 283,211,610 | 0 | 0 | MIT | 2020-07-28T12:52:44 | 2020-07-28T12:52:43 | null | UTF-8 | Python | false | false | 1,929 | py | import time
import gym
import gym_novel_gridworlds
import keyboard
from stable_baselines import DQN
from stable_baselines.gail import generate_expert_traj
from constant import ENV_KEY
"""
Generate Expert Trajectories from a model
"""
# env_id = 'NovelGridworld-v2'
# model = DQN('MlpPolicy', env_id, verbose=1)
#
#... | [
"gtatiya@live.com"
] | gtatiya@live.com |
b8f64295f2228f7b120165c28fa4d3c69a7d8e41 | 31780af7a5558523def1aae5f25df3e0b084be9b | /reg1.py | 71aae85831ae6835718ea909d9d9ae25a68bd9aa | [] | no_license | sevilaybayatli/PYTHS19 | 1796615ff939f2e98ce657feeaa3efd47a2e66c6 | ae0607e215a0d8205475d124c0362c39881e5eda | refs/heads/master | 2020-07-23T16:12:17.922548 | 2020-03-23T22:03:00 | 2020-03-23T22:03:00 | 207,624,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import re
def checkOfString(string):
chare=re.compile(r'[^a-zA-Z0-9.]')
string=chare.search(string)
return not bool(string)
print(checkOfString('AgfsrWCB12.'))
print(checkOfString('*"q@aQ'))
| [
"sevilaybayatli@gmail.com"
] | sevilaybayatli@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.