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
f89c2bef07b20a5b88a18fc7237a8db40c9581f0
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_1482494_0/Python/Decs/b.py
0f263000841a7dcbb8b18269a13a7f97da46664b
[]
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
795
py
tests = int(raw_input()) for test in xrange(1, tests + 1): n = int(raw_input()) needed = [map(int, raw_input().split()) for i in xrange(n)] finishes = 0 total = 0 completed = [0] * n changed = True while changed: changed = False for level in xrange(n): if completed[level] < 2 and total >= needed[leve...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
aa500d76845c40a3d72f123894af915ff7dbc08a
e59fe240f0359aa32c59b5e9f581db0bfdb315b8
/galaxy-dist/lib/galaxy/util/memdump.py
25558ca4d47da9d18a9d786248dcd19f8de0f6c8
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
subway/Galaxy-Distribution
dc269a0258471597d483687a0f1dd9e10bd47448
d16d6f9b6a8b7f41a218c06539863c8ce4d5a73c
refs/heads/master
2021-06-30T06:26:55.237251
2015-07-04T23:55:51
2015-07-04T23:55:51
15,899,275
1
2
null
2020-10-07T06:17:26
2014-01-14T10:47:28
Groff
UTF-8
Python
false
false
1,541
py
# Attempt to load guppy module, and only define Memdump class # if available try: import pkg_resources pkg_resources.require( "guppy" ) except: import sys print >> sys.stderr, "No guppy module, Memdump not available" Memdump = None else: import os, sys, signal, time, guppy class Memd...
[ "sabba_88@hotmail.com" ]
sabba_88@hotmail.com
cfd2a5beceab1fefa9ef31478b2edfd1df1dc1bd
c15e8eb4911bb3422324c6cbfe4ed35b3da33934
/kiosk_api/views/process_payments.py
c039a4982b344f96b2cb81ca7fa2391a461fedbd
[]
no_license
adam1978828/webapp1
6d839fbd0974e2f6861ae5a88f0170529d9edd3a
a27cb847ea7698872b64f9c58e43ebf5aad5590d
refs/heads/master
2020-05-29T14:41:21.240267
2016-06-01T20:11:01
2016-06-01T20:11:01
60,207,343
1
0
null
null
null
null
UTF-8
Python
false
false
8,940
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import datetime from django.http import JsonResponse from django.views.decorators.csrf import csrf_exempt from sqlalchemy import or_ from libs.utils.list_functions import partition_by from coupons.helpers.processor import CouponProcessor from Model impor...
[ "adam1978828@gmail.com" ]
adam1978828@gmail.com
1a7633f93b0824f775592709fc99a1d901708513
cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc
/Python Books/Python-3-Video-Tutorial/Exercise Files/Exercise Files/02 Quick Start/function.py
730ac95decd51740673e575dccced4204c40da21
[]
no_license
theGreenJedi/Path
df24fca355590efef0c6cb5c52e7216c6b5d2464
b5ed2805dbb046480929e49e550bfd8af5bb4d6f
refs/heads/master
2023-07-27T14:23:37.694546
2021-07-16T01:38:55
2021-07-16T01:38:55
87,686,563
8
2
null
2023-07-11T22:49:03
2017-04-09T05:57:30
Jupyter Notebook
UTF-8
Python
false
false
344
py
#!/usr/bin/python3 def isprime(n): if n == 1: print("1 is special") return False for x in range(2, n): if n % x == 0: print("{} equals {} x {}".format(n, x, n // x)) return False else: print(n, "is a prime number") return True for n in range(...
[ "GreenJedi@protonmail.com" ]
GreenJedi@protonmail.com
3089cbd516c8333275c4d4d1c89c91ddcf6f27d1
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/octal/88c13780af7b419e8a9f1b81c23ca0df.py
815521fd47687557af3468c72421c673042ff834
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
866
py
def Base(base_, name_): all_digits = "0123456789" + "".join(chr(i) for i in xrange(ord('a'), ord('z')+1)) if base_ > len(all_digits): raise ValueError("Cannot create a numbering base {}: not enough digits".format(base_)) class Base(object): digits = all_digits[:base_] base = base_ ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
88c5eb693664e13eaf85f607287f78a60cfd3cef
915bfb55c32999a39807b5364c6fa48d0d0b0bb0
/OMS/saltstack/scripts/copy_anything.py
53d97b77fa03a43466f000f89d9e2b974a0d6055
[]
no_license
rysinal/pythonnote
fd761d67fcf41fc009a5724ecd666db63cfef62a
90245323b1d6fcfdec89c1abefbc34ef6fa0946d
refs/heads/master
2021-12-23T11:39:29.580329
2017-11-13T08:31:07
2017-11-13T08:31:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
348
py
#!/usr/bin/python import shutil import errno # import os def do_copy(src, dst): try: # if os.path.exists(dst): # shutil.copyfile(src, dst) # else: shutil.copytree(src, dst) except OSError as exc: if exc.errno == errno.ENOTDIR: shutil.copy(src, dst) ...
[ "754267513@qq.com" ]
754267513@qq.com
1d807c3ac02c9f70b4c9b2e471a6204a41b1ed38
f7a20374403b55189cc5db6e8fa34d0ba290387c
/modules/everyday_report/report_mp.py
9b3f45580f58891e6f10da07b88711f3cea0d088
[]
no_license
dark-ice/upink_modules
1a7b5a165cc5e05396c62cf33c261b907c23e33c
c497bf87a39796f1df3877542359b1927bec3a76
refs/heads/master
2021-05-01T04:40:16.436666
2014-04-12T15:09:31
2014-04-12T15:09:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,658
py
# coding=utf-8 __author__ = 'andrey' from openerp import tools from openerp.osv import fields from openerp.osv.orm import Model class ReportMP(Model): _name = 'day.report.mp' _description = u'Ежедневные отчеты - МП' _auto = False _order = 'date' _columns = { 'date_start': fields.date('c',...
[ "karbanovich.andrey@gmail.com" ]
karbanovich.andrey@gmail.com
6088e141228743b67ea1602b028a24c111010e3a
e96461c5711974aee2401aad3206131b84e7b665
/library/piglow.py
f4539f48cab58c387be9fc2b9a33bc3b879a7e34
[]
no_license
sbelyea/piglow
0a06507ef4859711a47027b09e58f22b7e42c5eb
d8599be3998521a3d211e38ac61043f717d74d40
refs/heads/master
2020-12-11T04:00:40.815366
2015-05-12T09:45:32
2015-05-12T09:45:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,444
py
import sn3218 import atexit import time sn3218.enable() sn3218.enable_leds(0b111111111111111111) clear_on_exit = True auto_update = False _legs = [ # r o y g b w [ 6, 7, 8, 5, 4, 9 ], [ 17, 16, 15, 13, 11, 10 ], [ 0, 1, 2, 3, 14, 12 ] ] _values = [0] * 18 colours = { "red" :...
[ "phil@gadgetoid.com" ]
phil@gadgetoid.com
39fcde1335024ee652d7a7165f81f5e842678cd7
ef3d4130f28c7c589c646b15d19010cf426fc0f6
/doc/Programs/Regression/p1_arianna.py
a198ded283fcfff48233d99ca3bbe3735e696c90
[ "CC0-1.0" ]
permissive
CompPhysics/MachineLearning
54e1123a96060d824307f270415646494783cff5
00a2bd1a7efde5fbfd9b9d6d6c365dcd82fe8baf
refs/heads/master
2023-09-06T02:34:28.559589
2023-09-05T13:16:27
2023-09-05T13:16:27
103,986,991
154
136
CC0-1.0
2022-11-18T11:01:02
2017-09-18T20:11:45
null
UTF-8
Python
false
false
15,632
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Sep 20 15:53:35 2019 @author: Ary """ import numpy as np import pandas as pd import sklearn.linear_model as skl from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error import math ...
[ "morten.hjorth-jensen@fys.uio.no" ]
morten.hjorth-jensen@fys.uio.no
1ab2dafa56e225f40ea46f42f12efa3c77ff3108
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/51/usersdata/120/20281/submittedfiles/listas.py
396d08af8cee48625cc848246acf170897a490a0
[]
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
400
py
# -*- coding: utf-8 -*- from __future__ import division def degrau(lista): maior=0 for i in range(0,len(a)-1,1): degrau=math.fabs(a[i]-a[i+1]) if degrau>maior: maior=degrau return maior a=[] n=input('insira o numero de termos da lista:') for i in ra...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d28272660bc611a21f54875f44785e95cb7bd842
d27af9d58b91b8cd998ac0eb87d980d304ff0670
/Beginner-Contest/ABC003/ABC003_B.py
c3ac6ff2bfbccf826db9fcbc15c453d1c64bd7f8
[]
no_license
mongesan/Atcoder-m0_ngesan-py
29dd79daab149003ffc8b6b6bad5fa2e7daa9646
6654af034d4ff4cece1be04c2c8b756976d99a4b
refs/heads/master
2023-08-20T19:50:04.547025
2021-10-27T12:24:51
2021-10-27T12:24:51
258,486,105
1
0
null
null
null
null
UTF-8
Python
false
false
9
py
#ABC003_B
[ "syun1.mongesan@gmail.com" ]
syun1.mongesan@gmail.com
10b048dcdfba609dde36b77f50d00d1d7bdb14c4
ba7134468cb18014fe2e3e1513382fa52aafd4eb
/03_Python_network_programming/003_HTTP_Web服务器/004_Web静态服务器_多线程threading.Thread_多任务高并发.py
e24ff1c71c9bed28feb84b9f632b5cd39fd8d1ff
[]
no_license
FelixZFB/Python_advanced_learning
4e44616b390e1c6e7da37229c7ad48c069cee71b
a71a6d733ed2134a79f02a6488807862b23438b8
refs/heads/master
2021-06-27T11:15:07.754719
2020-11-20T02:41:25
2020-11-20T02:41:25
183,116,714
2
2
null
null
null
null
UTF-8
Python
false
false
5,039
py
# -*- coding:utf-8 -*- # 创建一个Web服务器,客户端请求后,返回显示所需要的页面 # 下面代码中已经加入了html文件夹的系统路径 # 打开一个网页后,自连接都可以打开了 # 程序会根据请求提取出名字,然后进入到html文件中查找匹配相关文件 # 然后再浏览器中显示出来 import socket import re import threading def service_client(new_socket): "为一个客户端进行服务,为这个客户端返回数据" # 1. 接收浏览器发送过来的请求,即HTTP请求 request_data = new_socket.recv(...
[ "18200116656@qq.com" ]
18200116656@qq.com
b601ab4cd9d6945c2924065d897b8602b0755205
50dd2a43daa8316fc11e0c176b5872738fcc5dde
/Learning/103_Tableaux/fusion.py
580e9aa10bfa32f0c6630f48ce9e9bebfdb0224a
[]
no_license
FrenchBear/Python
58204d368e3e72071eef298ff00d06ff51bd7914
b41ab4b6a59ee9e145ef2cd887a5fe306973962b
refs/heads/master
2023-08-31T18:43:37.792427
2023-08-26T15:53:20
2023-08-26T15:53:20
124,466,047
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
# fusion.py # fusion de listes triées # Programmer efficacement chap 4 # Mon implémentation sans regarder cette du livre! # 2022-05-25 PV def fusion(l1: list[int], l2: list[int]) -> list[int]: f = [] len1 = len(l1) len2 = len(l2) i1 = i2 = 0 while i1 < len1 and i2 < len2: if l1[i1] <= l2...
[ "FrenchBear38@outlook.com" ]
FrenchBear38@outlook.com
39c9cae21ab1ee0cf7cdede5d4282ed5af383a1c
f28bf07217731a8d97fa3d7029df11b2a0506650
/maddpg/buffer.py
78c8abeac3863a7af9c51688bc94145d155c2fbf
[ "MIT" ]
permissive
postBG/deep-reinforcement-learning
7465f7698d91363c8bacd791467f1dbb44bee9a9
5df5662b091c4c3f00beba1aa6f9ce8a52001c93
refs/heads/master
2022-12-18T20:06:08.245460
2021-09-05T09:26:17
2021-09-05T09:26:17
169,988,821
2
0
MIT
2022-12-08T01:44:34
2019-02-10T14:48:16
Jupyter Notebook
UTF-8
Python
false
false
666
py
from collections import deque import random from utilities import transpose_list class ReplayBuffer: def __init__(self,size): self.size = size self.deque = deque(maxlen=self.size) def push(self,transition): """push into the buffer""" input_to_buffer = transpose_list(t...
[ "profile2697@gmail.com" ]
profile2697@gmail.com
71f85e3a685ada74364b5df598a424a483de3dc9
d7e160a2512b9d70b18adbffde4c6d9a61521a12
/DFS/타겟 넘버.py
4b22f473b59b4c2309755e984a9b52cd37ed5ce7
[]
no_license
EoJin-Kim/CodingTest
14b6cf7a3bb45954c065efdf9d1e05143cb321a3
975c753ee572f605f4d9a12a3dc54ab0d437dade
refs/heads/master
2023-06-19T16:06:50.625143
2021-07-14T13:10:17
2021-07-14T13:10:17
356,877,598
0
0
null
null
null
null
UTF-8
Python
false
false
877
py
from itertools import permutations,product ''' def solution(numbers, target): answer = 0 length = len(numbers) expression = [(0,1) for i in range(length)] for exp in product(*expression): result=0 for i in range(length): if exp[i]==0: result+=-numbers[i] ...
[ "62640679+EoJin-Kim@users.noreply.github.com" ]
62640679+EoJin-Kim@users.noreply.github.com
5e414e62692567069edb6c5a647221bd64902bba
aea8fea216234fd48269e4a1830b345c52d85de2
/fhir/resources/devicemetric.py
ed3ffc3f990d216dd34ff39c1317ddd8efaf505f
[ "BSD-3-Clause" ]
permissive
mmabey/fhir.resources
67fce95c6b35bfdc3cbbc8036e02c962a6a7340c
cc73718e9762c04726cd7de240c8f2dd5313cbe1
refs/heads/master
2023-04-12T15:50:30.104992
2020-04-11T17:21:36
2020-04-11T17:21:36
269,712,884
0
0
NOASSERTION
2020-06-05T17:03:04
2020-06-05T17:03:04
null
UTF-8
Python
false
false
6,904
py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/DeviceMetric Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ import sys from . import backboneelement, domainresource class DeviceMetric(domainresource.DomainResource): """ Measurement, ...
[ "connect2nazrul@gmail.com" ]
connect2nazrul@gmail.com
c94938e0933471f0917f589c92279f67677f80c3
4492b8daf969f839f7803d1af1d3f80858dddd98
/docs/source/webobapp.py
28a0fe44c2dea7a8cea687116296c4bdba372815
[]
no_license
aodag/my-pyramid-katas
59af3b25dfdf68bcd7434cdcb4258c08c43b1012
99cf99ffb646c428cfb3c9d6eec7e593d865d576
refs/heads/master
2020-04-06T03:31:59.912229
2016-06-12T13:14:07
2016-06-12T13:14:07
34,158,089
0
1
null
2016-06-12T13:14:09
2015-04-18T08:14:55
null
UTF-8
Python
false
false
241
py
from webob import Request, Response def application(environ, start_response): request = Request(environ) response = Response(request=request) response.text = "Hello, world!" return response(environ, start_response)
[ "aodagx@gmail.com" ]
aodagx@gmail.com
7bad46d3469e4d662073157681c56a6dcbe87753
a5c33ac6d89b0445ff011d24943d441681fa4af3
/tests/test_gino_sanic.py
7f1f80f0573cb99af36c6eabaffd70e15dc209ec
[ "BSD-3-Clause" ]
permissive
python-gino/gino-sanic
b34490c879d02b163da468d8567bedea70a3afa7
7bc7e98989f1936a17f38ec352a3a7dc7d217753
refs/heads/master
2021-08-24T13:53:16.353243
2020-04-18T17:43:26
2020-04-18T17:43:26
229,087,530
5
7
NOASSERTION
2021-06-02T06:17:14
2019-12-19T15:47:24
Python
UTF-8
Python
false
false
4,512
py
import asyncio import os import ssl import gino import pytest import sanic from gino.ext.sanic import Gino from sanic.response import text, json DB_ARGS = dict( host=os.getenv("DB_HOST", "localhost"), port=os.getenv("DB_PORT", 5432), user=os.getenv("DB_USER", "postgres"), password=os.getenv("DB_PASS",...
[ "fantix.king@gmail.com" ]
fantix.king@gmail.com
cf097de52c3b6aa3b00f61889614ee3666b50615
70fa6468c768d4ec9b4b14fc94fa785da557f1b5
/lib/surface/ml_engine/versions/__init__.py
c540906a54c9770851a877bd986b742229cbf2d1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kylewuolle/google-cloud-sdk
d43286ef646aec053ecd7eb58566ab2075e04e76
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
refs/heads/master
2020-04-20T22:10:41.774132
2019-01-26T09:29:26
2019-01-26T09:29:26
169,131,028
0
0
NOASSERTION
2019-02-04T19:04:40
2019-02-04T18:58:36
Python
UTF-8
Python
false
false
1,229
py
# -*- coding: utf-8 -*- # # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
2982561042ff6a5c182705c130d0c7657f1b9216
1b94c7cfd66804fe8d40b5def35e4b9b18d69ba2
/stubs/google/appengine/api/taskqueue/taskqueue_stub.pyi
7fd103268159098ac1c4bf312540530a305e7979
[ "MIT" ]
permissive
the-blue-alliance/the-blue-alliance
3dc210a9611ce9b240907ffd420f78040318dcdc
6d42f3cdb2f785d192f2871419e58aaae3445029
refs/heads/py3
2023-08-22T21:02:36.398100
2023-08-22T19:14:01
2023-08-22T19:14:01
888,427
344
263
MIT
2023-09-14T18:35:20
2010-09-04T20:34:11
HTML
UTF-8
Python
false
false
5,278
pyi
from google.appengine.api import api_base_pb2 as api_base_pb2, apiproxy_stub as apiproxy_stub, apiproxy_stub_map as apiproxy_stub_map, queueinfo as queueinfo, request_info as request_info from google.appengine.api.taskqueue import taskqueue as taskqueue from google.appengine.runtime import apiproxy_errors as apiproxy_e...
[ "noreply@github.com" ]
the-blue-alliance.noreply@github.com
c161cc50cda53afee625d9ee9fece3ab6a44a0f4
bc550f6966e30de27987bc803b2447bf02a2e44b
/task/Task.py
3686337943d2de5eaa7959a023885159c81b507d
[]
no_license
v-komarov/psv3
afe2a50a5498ee66f4146802ecbbb62bef5a9173
deca97a9fac0865163f7c2d4fd5110caccb00a80
refs/heads/master
2021-01-18T10:52:35.444429
2016-06-06T09:19:27
2016-06-06T09:19:27
59,651,228
0
0
null
null
null
null
UTF-8
Python
false
false
14,602
py
#coding:utf-8 """ Изменение заявки """ import wx import DBTools import wx.lib.masked as masked from WList import ListTaskWorker from WList import ChWorker from MList import ChMate from MList import ListTaskMate from task.RunSQL import GetListNameTask from task.RunSQL import GetTask from task.RunSQL import GetLis...
[ "komarov-krsk@mail.ru" ]
komarov-krsk@mail.ru
916a1b892d9ee34ba3b09ce362ccd49f91b02fb8
c10ef416832b3e99e58fb93c85f414d94bbdbc2e
/py3canvas/tests/peer_reviews.py
3f74127f0550f90e37aece9a9ce32d0dd96a9fde
[ "MIT" ]
permissive
tylerclair/py3canvas
83bab26d1624a11acffaeb0392c6a9a38f995f16
7485d458606b65200f0ffa5bbe597a9d0bee189f
refs/heads/master
2021-10-26T03:27:48.418437
2021-10-23T15:07:26
2021-10-23T15:07:26
92,841,638
0
0
null
null
null
null
UTF-8
Python
false
false
3,518
py
"""PeerReviews API Tests for Version 1.0. This is a testing template for the generated PeerReviewsAPI Class. """ import unittest import requests import secrets from py3canvas.apis.peer_reviews import PeerReviewsAPI from py3canvas.apis.peer_reviews import Peerreview class TestPeerReviewsAPI(unittest.TestCase): ""...
[ "tyler.clair@gmail.com" ]
tyler.clair@gmail.com
84c9536f5e1f78dd08f4468969601dbc75a7253a
68e2b4177c7bf74460f5bd58671d406aa2f4ff85
/tools/solver_diagnostics.py
4e3f19c100fcebcd167b7ba5e4872447f4361b19
[ "MIT" ]
permissive
mjgpinheiro/pynosh
8eaefcb1cad16e7707cf02c9c36cfe9cd5ce98eb
331454b29246e6c009878589aad2dccb9fda6c30
refs/heads/master
2021-09-21T19:18:34.340558
2018-08-30T15:25:30
2018-08-30T15:25:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,156
py
# -*- coding: utf-8 -*- # from scipy import rand, zeros, log10, argsort, inf from numpy import ones, array, abs, kron, eye, random from scipy.sparse import csr_matrix, isspmatrix_bsr, isspmatrix_csr from pyamg.aggregation import smoothed_aggregation_solver from pyamg.util.linalg import _approximate_eigenvalues, isherm...
[ "nico.schloemer@gmail.com" ]
nico.schloemer@gmail.com
018066b50c689152a24b32c9026365c72603e07e
398d6a7fb50a2485ef17319028da73a94b166ef8
/01Factory/1-8.py
d11ca0024613770a0e91a31efae0333d0a306ce1
[]
no_license
Yuanoung/TemplateOfDesign
3e7675de97d90f354b32de6863ad8c4b7e2b338a
ea1635ec42d12b1c869db20a31292e063e5d200e
refs/heads/master
2021-04-30T14:28:08.961904
2018-02-12T09:52:36
2018-02-12T09:52:36
121,216,410
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
class Operation(object): @staticmethod def getResult(numberA, op, numberB): if op == "+": return numberA + numberB elif op == "-": return numberA - numberB elif op == "*": return numberA * numberB else: return numberA / numberB
[ "yuanoung@outlook.com" ]
yuanoung@outlook.com
da4403af4ed8be3e36cf4bb7252b4e9888b00a01
93c02201c60da7f9f231f0a87ffe8b32729ce229
/Array/kth-smallest-element.py
a00353263dc369f7777f5c84e850f8a1c7eefbd2
[]
no_license
sudo-hemant/curated_questions_dsa
54aebe021f58f757e519f508f9269798127c7495
8f1097274bfd1d2c6f25def6c16982bbf6d7461c
refs/heads/master
2023-03-14T07:53:00.652525
2021-02-27T07:16:22
2021-02-27T07:16:22
339,599,669
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
# NOTE: it is min heap, every time we pop element, it pops minimum element # and we need smallest element, so we are going to push element by changing its sign import heapq def kthSmallest(arr, l, r, k): ''' arr : given array l : starting index of the array i.e 0 r : ending index of the array i.e s...
[ "sudohemant@gmail.com" ]
sudohemant@gmail.com
10d8de2da1b5848136bd6aa8f35b12ce3cfa57a3
a39f8f5b66314b1084f3a88d8d7a1a791292ea2c
/examples/comboBox1.py
e32adc5343234eac78948d372b4ffc33fa5dc491
[]
no_license
zwlyn/pyqt5try
6d62e28795390c3049ddb6cbb6b761002149e47a
21931c26f0d87b2aa3ba80eef5f0fcd46d54bcdd
refs/heads/master
2020-08-01T02:57:17.683792
2019-10-09T11:10:11
2019-10-09T11:10:11
210,837,208
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
# -*- coding: utf_8 -*- import sys from PyQt5.QtWidgets import (QWidget, QLabel, QComboBox, QApplication) class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.lbl = QLabel("Ubuntu", self) combo ...
[ "1666013677@qq.com" ]
1666013677@qq.com
42ecacc92a7a98c20a2a14c5f509bf7fb1ac7325
060c340a1f0d24fbf7a3aae573f59ebe2f8a6bbf
/dynamics.py
9a83bedf9d84c999329aba22c4ccc2d70c7cbfba
[ "MIT" ]
permissive
pj1138/MayaToolbox
0052f070de12b34820c4ef107a587b602afe94de
8eabd96eeedcb4242dba4ec15617bad3b81496d7
refs/heads/master
2021-01-13T11:57:57.638751
2017-09-24T18:11:27
2017-09-24T18:11:27
29,816,700
0
0
null
2015-01-25T14:29:02
2015-01-25T14:29:01
null
UTF-8
Python
false
false
1,067
py
# DYNAMICS import pymel.core as py import maya.cmds as mc import maya.mel as mel from math import * from xml.dom.minidom import * from random import uniform as rnd import os import re #~~ from mayatoolbox import * from animation import * def quickDyn(spread=5, num=10, joints=False, bake=False): target = [] g ...
[ "nick@fox-gieg.com" ]
nick@fox-gieg.com
8924478933f7a7524dcaab4f3c7882e74a847575
01fdd206c8c825b30870bdd3f6e75f0aa113b849
/test/record/parser/test_response_whois_nic_tr_status_registered.py
58c44cf2045188ef955e413f45503f6c8c2d0294
[ "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
5,978
py
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.nic.tr/status_registered # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.parser import parse ...
[ "dachuy@gmail.com" ]
dachuy@gmail.com
5bc5b5cfffe723fe4f784cb6707c7b054ae384ae
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-imageenhan/aliyunsdkimageenhan/request/v20190930/RecolorImageRequest.py
ff730d30e823cf7d8caf5085eb77484efb0abc51
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,317
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
76fbb1b839f66900f0ee35447d47bdd4a00613bb
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03785/s325179868.py
b238757b012a1f39080269d6ad3146db49516bb8
[]
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
402
py
import sys def input(): return sys.stdin.readline().strip() def resolve(): n,c,k=map(int, input().split()) l=[int(input()) for i in range(n)] l.sort() saisyo=l[0] ninzu=1 ans=0 for j in range(1,n): x=l[j]-saisyo if x<=k and ninzu<c: ninzu+=1 else: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a308321b6894a652f10d50f0e278a3312baaee0a
9fe1c431568746622ae9533d4694097e576f960c
/prophyle/increment_version.py
0c14ee5978e3dcb21724d129abcae06d142371b3
[ "MIT" ]
permissive
prophyle/prophyle
819cc062714838cd543d99e65ec5075b5a54400c
aa1ed8eebe74d8557090422255f42ee18aaef839
refs/heads/master
2023-08-07T18:47:15.649605
2023-07-26T12:47:36
2023-07-26T12:47:36
49,076,502
13
3
MIT
2023-09-01T18:12:12
2016-01-05T16:03:04
Python
UTF-8
Python
false
false
435
py
#! /usr/bin/env python3 import os import sys vfn = os.path.join(os.path.dirname(sys.argv[0]), "version.py") exec(open(vfn).read()) numbers = VERSION.split(".") numbers[-1] = str(int(numbers[-1]) + 1) version = ".".join(numbers) with open(vfn, "w") as f: f.write('try:\n') f.write(' from __commit import ...
[ "karel.brinda@gmail.com" ]
karel.brinda@gmail.com
1ca42c506eb72546a2daffbb5711eb10f61b711d
1869655b39f57d0240bd08ed19df5f789264ee8e
/domino_puzzle_test.py
e9bca8ef6795f00cd1c2de90f0a3656297614c35
[ "MIT" ]
permissive
binoliMhatre/moonside
d75a8bb0f1fd91ea2eb0fe36de199d9f8ee4fd74
b046c2281e5c4b02ce535b0d523b94e166ebafa3
refs/heads/master
2021-01-21T15:43:32.853940
2016-03-11T03:16:47
2016-03-11T03:16:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,537
py
import unittest from domino_puzzle import Domino, Cell, Board, BoardError, BoardGraph,\ CaptureBoardGraph class DummyRandom(object): def __init__(self, randints=None, choiceDominoes=None, otherChoices=None): self.randints = randints or {} # {(min, m...
[ "donkirkby@gmail.com" ]
donkirkby@gmail.com
909cd365350879c5c496c6bb6d5c9e72bffcfcbd
dbd387349cdbe73200f3a3ab1023abd8a885ad93
/oauth/models.py
786d8b3271d8b0689e94fe0f8368ffe54198c956
[]
no_license
AS207960/oauth
5cb81eaea656f52c39ab2b0f9619bcbc0941661d
3304d2deac926e6de35fe7f0af71bd78e70423e8
refs/heads/master
2023-07-24T01:38:43.116526
2023-07-15T22:11:24
2023-07-15T22:11:24
330,265,651
0
0
null
null
null
null
UTF-8
Python
false
false
4,960
py
from django.db import models from django.urls import reverse from django.conf import settings from django.contrib.auth import get_user_model import uuid import django_keycloak_auth.clients import as207960_utils.models def sync_resource_to_keycloak(self, display_name, resource_type, scopes, urn, view_name, super_save,...
[ "q@misell.cymru" ]
q@misell.cymru
affd3c9683fcd45c1d12c534f88df28b264321b8
60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24
/IronPythonStubs/release/stubs.min/System/__init___parts/UriFormat.py
87f1c147e2e568c5bda247aa1f44e7aca4eb4f3f
[ "MIT" ]
permissive
shnlmn/Rhino-Grasshopper-Scripts
a9411098c5d1bbc55feb782def565d535b27b709
0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823
refs/heads/master
2020-04-10T18:59:43.518140
2020-04-08T02:49:07
2020-04-08T02:49:07
161,219,695
11
2
null
null
null
null
UTF-8
Python
false
false
946
py
class UriFormat(Enum,IComparable,IFormattable,IConvertible): """ Controls how URI information is escaped. enum UriFormat,values: SafeUnescaped (3),Unescaped (2),UriEscaped (1) """ def __eq__(self,*args): """ x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """ pass def __format__(self,*args...
[ "magnetscoil@gmail.com" ]
magnetscoil@gmail.com
dbdaecc9c92364b03753ac08fe2fbbe65a16f506
8205128a5a3564a826b4ae432f082a9ed4134316
/algo/binary-search/_0081_SearchInRotatedSortedArray2.py
25bb149045c8c612cc771884a7e6fafa3dfd3833
[]
no_license
ianlai/Note-Python
507094bda9fefa0fe2f45a629076c679178a2c74
ca95110b77152258573b6f1d43e39a316cdcb459
refs/heads/master
2023-03-19T03:26:35.532874
2021-03-10T16:10:51
2021-03-10T16:10:51
68,308,972
0
0
null
null
null
null
UTF-8
Python
false
false
1,300
py
class Solution: def search(self, nums: List[int], target: int) -> int: # Edge cases if nums is None or len(nums) == 0: return False # mset = set(nums) # nums = list(mset) start, end = 0, len(nums)-1 if nums[start] == target: ...
[ "ian.explore.world@gmail.com" ]
ian.explore.world@gmail.com
3514a6464e59eb60826de67c90f064f388efa269
c960c1bf7fd094c031a77a3545bcc797b845edcd
/backend/home/migrations/0002_load_initial_data.py
82ffbac62de87f64c4e07131f4f9260d1101b9ae
[]
no_license
crowdbotics-apps/chatter-22176
e6e67efb11219b9ad5b0a680e2fe75263335e961
a9a30ab3887dc3a766fb99398c3c114ecbd8be99
refs/heads/master
2023-01-02T06:00:27.746009
2020-11-01T03:15:59
2020-11-01T03:15:59
309,014,557
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Chatter" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage") h...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
92660bcaac41f821096bf113adae2d40568e80c3
0d2f636592dc12458254d793f342857298c26f12
/7-15.py
112be3b6c1452fb33aa38df5d6f4edefdae54996
[]
no_license
chenpc1214/test
c6b545dbe13e672f11c58464405e024394fc755b
8610320686c499be2f5fa36ba9f11935aa6d657b
refs/heads/master
2022-12-13T22:44:41.256315
2020-09-08T16:25:49
2020-09-08T16:25:49
255,796,035
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
buyers = [["Jamase",1030],["Curry",893], ["Durant",2050],["Jordan",990], ["David",2110],["Kevin",15000], ["Mary",10050],["Tom",8800],] infinite = list() VIP = list() Gold = list() while buyers: fall_out_buyer = buyers.pop() if fall_out_buyer[1] >= 10000: infinite.append(f...
[ "kkbuger1523@gmail.com" ]
kkbuger1523@gmail.com
4eed67d321cba99d1ee8fd552901b941afb1d2ef
417f6a92e6179e9da3bc65ae5f56bb274cb47152
/vindauga/types/vindauga_object.py
b88066e8a0be97c059dd2c3e90d72d7c53085592
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
gabbpuy/vindauga
6504540f79afa0abed7677103ae50c848a1d18b8
04c4def7c1bea135b1b97fdc18f8f45ccd63c40a
refs/heads/master
2023-06-07T23:01:14.918105
2023-06-05T02:07:48
2023-06-05T02:07:48
194,688,774
7
1
null
null
null
null
UTF-8
Python
false
false
515
py
# -*- coding: utf-8 -*- import gettext import logging logger = logging.getLogger(__name__) gettext.install('vindauga') class VindaugaObject: _registry = {} def __init_subclass__(cls, **kwargs): super().__init_subclass__() try: VindaugaObject._registry[cls.name] = cls ex...
[ "akm@unyx.net" ]
akm@unyx.net
66df3c0242eaf51dfc0f6b3c9c7880f5fb7e500e
bf6e7fba9eca62f40ba1a9532994c14e751fdfeb
/test/unit/test_internal_casing.py
b673b60e26e3cd3d9eca90225fd686fc2745b06f
[ "Apache-2.0" ]
permissive
CyberGRX/py2neo
11f1a765d2b629c7b6c3e86cb24e842638b3eec9
e6a50a80f769f21d8024733c4bf83e899443d672
refs/heads/v4.2-grx
2023-04-20T06:46:39.158143
2023-04-05T22:04:27
2023-04-05T22:04:27
171,706,053
0
0
Apache-2.0
2019-02-20T17:42:36
2019-02-20T16:13:12
Python
UTF-8
Python
false
false
1,796
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2019, Nigel Small # # 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 # # Unle...
[ "nigel@neo4j.com" ]
nigel@neo4j.com
1a01b7e712420553340256f4f54e33c95365a01b
474285a15bf21ac3638249397fe8045b150b1aa5
/usage/bdrc/download_ocr_output.py
7338e331e57b439d6491dd68e15773e2a7aec735
[]
no_license
noncapture1/img2opf
641f40d2db22823deae99ea83789d346940cb82d
af1f2bbcdfed39032fc44292d8105009120fd066
refs/heads/master
2023-04-17T14:12:00.180754
2021-04-29T04:25:27
2021-04-29T04:25:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,975
py
import argparse import logging import sys from pathlib import Path from typing import Mapping from bdrc_ocr import ( BATCH_PREFIX, IMAGES, OUTPUT, SERVICE, get_s3_bits, get_s3_image_list, get_s3_prefix_path, get_volume_infos, get_work_local_id, ocr_output_bucket, save_file, ...
[ "ten13zin@gmail.com" ]
ten13zin@gmail.com
613c451c771753b53f7b622d95595e42af3924d2
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/agfoodplatform/v20200512preview/get_farm_beats_model.py
69a86e25db7b166badd191892f7224c7ea92a20c
[ "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
6,205
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 fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
7aa3c98c1a1bde5aa1b86eb6281f3263d0d886e7
6f67606189b27ab3dfd20d9fa4b5dab00beb4302
/MetamorphicTests/all_mutants/sales_forecasting_file/202.py
92e5351ace082148914d990a9829630f4c2666b3
[ "Apache-2.0" ]
permissive
fjgao/Sales-forecasting-with-RNNs
b8d468946d5df8d694178ef0664717c62bf156b8
22b4639ecbb48381af53326ace94a3538201b586
refs/heads/master
2022-02-09T11:29:04.815900
2019-02-08T08:51:23
2019-02-08T08:51:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,615
py
def gen_mutants(): import tensorflow as tf import pandas import numpy as np DATAFILE_TRAIN = 'mock_kaggle_edit_train.csv' DATAFILE_VALIDATE = 'mock_kaggle_edit_...
[ "anurag.bms@gmail.com" ]
anurag.bms@gmail.com
b3e8729afa74fa57bf0fd12250cb52c0b8caf17f
aeb2f0bb7b01f87a1b6c65b88b216bed47025fe5
/experiment/model056_2.py
d6f2c7c470fb71e74ff55e8b640e598b04925467
[]
no_license
kurupical/riiid
7e68239cd50243fbb734bf433d60ebd7469cb180
7bab580ce03d03873748a6afc91092c11871465f
refs/heads/master
2023-03-30T04:15:54.109815
2021-04-04T01:20:33
2021-04-04T01:20:33
302,828,112
2
1
null
null
null
null
UTF-8
Python
false
false
20,996
py
import numpy as np import pandas as pd import gc import random from tqdm import tqdm from sklearn.metrics import roc_auc_score from sklearn.model_selection import train_test_split import seaborn as sns import matplotlib.pyplot as plt import torch import torch.nn as nn import torch.nn.utils.rnn as rnn_utils from torc...
[ "kurupical@gmail.com" ]
kurupical@gmail.com
e9f8d7fa5afb1585c089bd9b3b7619c57d787d28
291f0aa9a40eeca26fb08106c952b9347db7dba7
/apps/views/main.py
1d6a6abd023956c00c22858049b0c5c03ba4415f
[ "Apache-2.0" ]
permissive
gaohj/nzflask_bbs
fad10b93f8f495a94d5d6db6f5c60d85c1c85518
36a94c380b78241ed5d1e07edab9618c3e8d477b
refs/heads/master
2022-12-12T21:43:17.417294
2020-03-20T10:28:22
2020-03-20T10:28:22
239,702,874
0
2
Apache-2.0
2022-12-08T03:50:07
2020-02-11T07:34:01
JavaScript
UTF-8
Python
false
false
1,235
py
from flask import Blueprint,render_template,flash,redirect,url_for,request from apps.forms import PostsForm from flask_login import current_user from apps.models import Posts from apps.extensions import db #实例化蓝本对象 main = Blueprint('main',__name__) @main.route('/',methods=['GET','POST']) def index(): form = PostsF...
[ "gaohj@163.com" ]
gaohj@163.com
61e2092b0af89c531bc53eaf2804e05cce81e5ac
be9046ba8823cc5fbb6064db33b195481985cd0e
/hindsight1/management/commands/import_info.py
3015ebe26bc6a091b3104d89038397aff8642223
[ "MIT" ]
permissive
jcaguirre89/mysite
9f692c6f2cd8dc427aba6d9dd3e4e9dc2a349fb2
3b118747d7129d7a249ea2ad7b6644e46e9816f1
refs/heads/master
2022-04-02T22:53:39.107234
2018-12-10T03:16:50
2018-12-10T03:16:50
115,764,839
0
0
MIT
2020-02-11T23:49:34
2017-12-30T01:04:00
Python
UTF-8
Python
false
false
638
py
# -*- coding: utf-8 -*- """ Created on Sat Nov 18 15:44:31 2017 @author: crist """ from hindsight1.models import Sp100 from django.core.management.base import BaseCommand import os #flip directory in production directory = 'C:\\Users\\crist\\mysite\\hindsight1\\static\\hindsight1' #directory = '/home/cristobal/mysi...
[ "cristobal.aguirre89@gmail.com" ]
cristobal.aguirre89@gmail.com
41d8ef2dda318ee3978e8bc8f7e4e6dfeef99995
a52dbc76680dbe4938c4ae81290f2f36f2eae68d
/workflowrepository/urls.py
a41d5bf8d73d619cd0770f7c38858d147acc1f32
[]
no_license
RodriGuerra98/psi
4a9969e71a98b1aaf9b0a74d1cbd1d8ced19b425
b90293c001e65465e6880fe4aaccf0d2d03262b0
refs/heads/master
2022-12-01T01:25:50.234245
2019-05-30T09:54:51
2019-05-30T09:54:51
154,207,653
0
0
null
2022-11-22T02:37:05
2018-10-22T19:55:28
JavaScript
UTF-8
Python
false
false
1,289
py
"""workflowrepository URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home...
[ "you@example.com" ]
you@example.com
ff3d80ceee2e30e015c033c3b4658ab7e99e95cc
a9386fd8a14e66c27b5059f562dc239f2c4b0ff7
/shared/aspace_agent_mapping/agent_parsers/Famname.py
a14f1904186ea9393cba3b3a0afbb7705a741163
[]
no_license
bentley-historical-library/vandura
20f93e2f9cf2370e40537f863da9f2f19db329a0
0fefc0bf92c2487987a9c23e70187718c3b949f0
refs/heads/master
2021-01-17T00:54:08.023435
2016-11-04T20:00:04
2016-11-04T20:00:04
37,206,505
0
18
null
2016-11-04T20:00:05
2015-06-10T15:45:33
Python
UTF-8
Python
false
false
358
py
import json from vandura.shared.aspace_agent_mapping.agent_parsers.create_famname_json import parse_famname class Famname: def __init__(self, string, auth_id="", auth_source=""): self.data_dict = parse_famname(string, auth_id, auth_source) def get_aspace_json(self): return json.dumps({"publis...
[ "djpillen@umich.edu" ]
djpillen@umich.edu
b9030902f019e9dce354e517634e289a787183b0
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano3138.py
a30090de7d71ac0ade926757914e98e21dbc05e7
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era...
[ "rsk146@scarletmail.rutgers.edu" ]
rsk146@scarletmail.rutgers.edu
511e8fdfa552d15099fcd6f6e830d64f5431b14c
f4d9f4f267743ced708c891193d584615afebeda
/ch05/ch05.py
57b40afa49903bc6642d19146b7167a8e48e6081
[ "MIT" ]
permissive
rongpenl/python-machine-learning-book-3rd-edition
44766a4293d9d41d9e9e1d0df4823a46b0c8ccf7
18b0fe75f7f74bcc59e2258120c6338e2c3cd113
refs/heads/master
2023-03-27T03:20:12.986966
2021-03-31T04:59:43
2021-03-31T04:59:43
301,573,449
1
0
MIT
2021-03-31T04:59:44
2020-10-06T00:31:04
null
UTF-8
Python
false
false
26,659
py
# coding: utf-8 import pandas as pd from sklearn.model_selection import train_test_split from sklearn.preprocessing import StandardScaler import numpy as np import matplotlib.pyplot as plt from sklearn.decomposition import PCA from matplotlib.colors import ListedColormap from sklearn.linear_model import LogisticRegre...
[ "mail@sebastianraschka.com" ]
mail@sebastianraschka.com
94d8ad77d72ccf80b5d64fa32c4ea8bcb9553559
5ea1216c24b62c6beab3c6d9d2e2e06a9c58c796
/总题库/105.ConstructBinaryTreefromPreorderandInorderTraversal.py
1bdc7e3cc68a120486922f2d5225c61b60ba3b78
[]
no_license
xiami2019/LeetCode
596de2f093d52b58cf80421f67de03757578cd5f
8d09a56672553ecee4af731796980b2c61c52df2
refs/heads/master
2021-01-02T15:15:13.984178
2020-07-08T01:20:15
2020-07-08T01:20:15
239,675,873
2
0
null
null
null
null
UTF-8
Python
false
false
855
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def buildTreeHelper(self, preorder: List[int], inorder: List[int], inStart: int, inEnd: int) -> TreeNode: if inEnd - inStart < 0:...
[ "435350193@qq.com" ]
435350193@qq.com
c6bcd3805327404ac9bc97517bc70adb46ae2a6b
52855d750ccd5f2a89e960a2cd03365a3daf4959
/ABC/ABC46_B.py
8301ae439c95268a2db1f06d809ef3d503da3f4d
[]
no_license
takuwaaan/Atcoder_Study
b15d4f3d15d48abb06895d5938bf8ab53fb73c08
6fd772c09c7816d147abdc50669ec2bbc1bc4a57
refs/heads/master
2021-03-10T18:56:04.416805
2020-03-30T22:36:49
2020-03-30T22:36:49
246,477,394
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
n,k = map(int,input().split()) s = k while(n>1): s *= (k-1) n-=1 print(s)
[ "takutotakuwan@gmail.com" ]
takutotakuwan@gmail.com
c6879728d54c08d070de5533473c59cb546bae77
4266e9b1c59ddef83eede23e0fcbd6e09e0fa5cb
/vs/gyp/test/mac/gyptest-type-envvars.py
b75e094636a0f57ec51dcaf30ca221e66a904e25
[ "BSD-3-Clause" ]
permissive
barrystudy/study
b3ba6ed652d1a0bcf8c2e88a2a693fa5f6bf2115
96f6bb98966d3633b47aaf8e533cd36af253989f
refs/heads/master
2020-12-24T14:53:06.219236
2017-10-23T02:22:28
2017-10-23T02:22:28
41,944,841
0
0
null
null
null
null
UTF-8
Python
false
false
577
py
#!/usr/bin/env python # Copyright (c) 2012 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Test that MACH_O_TYPE etc are set correctly. """ import TestGyp import sys if sys.platform == 'darwin': test = TestG...
[ "2935973620@qq.com" ]
2935973620@qq.com
01eecb6722bbf993c6ea5ee09043fc12c6f5c5aa
5afcc3b02b7f4fe14e90f33b0a42bfc51b278e19
/matlab_ext/measurement/mc-assistant/projects/py_hw_models/test_sensor_channals.py
f1d57724af0694d74b3bcfb6ffb9bfafd0ed9a71
[ "MIT", "Apache-2.0" ]
permissive
zaqwes8811/micro-apps
c9e51fa7931c9d5625e1517bad7b1593104a50c0
bb1643562751dda70ae4f8bd632a171f1de05df5
refs/heads/master
2023-04-27T21:04:09.457192
2023-04-25T08:41:23
2023-04-25T08:41:23
11,820,285
1
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
#-*- coding: utf-8 -*- import random import unittest # App import models.sensors.one_sensor as sensor_channal class TestSequenceFunctions(unittest.TestCase): def setUp(self): self.seq = range(10) def test_shuffle(self): # make sure the shuffled sequence does not lose any elements r...
[ "ilugansky@arrival.com" ]
ilugansky@arrival.com
d817e562bc6c67af216ebf7ecd5e1a2ab53daf12
f9b3b867abfbfb01ab57cb249a2e0fcb372e435b
/examples/hcaptcha_request_proxy.py
f271ac3797a79202e129afa48a77d6d1ebc8801c
[ "MIT" ]
permissive
ad-m/python-anticaptcha
af615cfd7549d48829adb441b837eed1373fe782
076922ee646483328c580c6623f7cb49a2ea4493
refs/heads/master
2022-05-17T17:18:51.638547
2022-03-28T03:44:41
2022-03-28T03:44:41
95,789,669
241
66
MIT
2022-03-28T03:38:57
2017-06-29T15:05:36
Python
UTF-8
Python
false
false
1,564
py
from six.moves.urllib import parse import re import requests from os import environ from python_anticaptcha import AnticaptchaClient, HCaptchaTask api_key = environ["KEY"] proxy_url = environ["PROXY_URL"] # eg. socks5://user:password/123.123.123.123:8888/ site_key_pattern = 'data-sitekey="(.+?)"' url = "http://hcap...
[ "naczelnik@jawnosc.tk" ]
naczelnik@jawnosc.tk
c3ab1e1ec0477a77f93cd10d4c0a7d9ae3f4be26
43acaf9718b0a62594ed8e42b6c01099acd2d075
/apps/lista/migrations/0030_auto_20200402_1450.py
8d2059b1ff3c88db1f6e081b9f5468bc816c8f87
[]
no_license
JmSubelza/Demo
2f357889975c183b4a0f627330a80e535823faea
affceeadb87f1f14fb4e481851a1ac107e512f48
refs/heads/master
2023-05-14T18:16:38.153963
2020-04-28T16:15:27
2020-04-28T16:15:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2020-04-02 19:50 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('lista', '0029_auto_20200331_1704'), ...
[ "Chrisstianandres@gmail.com" ]
Chrisstianandres@gmail.com
beb7d60cedbda9144e4ee017272c8d5542552808
ec8414291c40bbdef2b43d4360ad2e046109056a
/datashape/promote.py
20ba0884261dec8c8e714d97c0957577faadf5e5
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
llllllllll/datashape
bd1b2ad09b01bae014af438c754d21ee87bf72c5
891e397b3facceede5f277ef578cccdd2319fd6f
refs/heads/master
2020-12-26T03:56:35.854808
2015-08-14T15:29:49
2015-08-14T15:29:49
37,879,722
0
0
null
2015-06-22T20:46:14
2015-06-22T20:46:14
null
UTF-8
Python
false
false
1,561
py
from __future__ import absolute_import import numpy as np import datashape __all__ = ['promote', 'optionify'] def promote(lhs, rhs): """Promote two scalar dshapes to a possibly larger, but compatible type. Examples -------- >>> from datashape import int32, int64, Option >>> x = Option(int32) ...
[ "cpcloud@gmail.com" ]
cpcloud@gmail.com
3b314af16cc710d4bbcdf1d55df86397678882d4
99e65ad1427b8997a6d433f233bcc60ef2b9bc92
/tests/contrib/test_dropbox.py
5693d59696509d92837fedf07c9f98dcca8036e8
[ "MIT" ]
permissive
gregorynicholas/flask-dance
29ea359ab98a661cf0920328132700399d32c7fb
eb3f947340a372cd596cb743353b7e3ed5682e76
refs/heads/master
2020-12-29T00:41:40.345560
2015-05-13T03:25:37
2015-05-13T03:25:37
36,555,631
1
1
null
2015-05-30T11:37:05
2015-05-30T11:37:05
null
UTF-8
Python
false
false
3,767
py
from __future__ import unicode_literals import pytest import responses from urlobject import URLObject from flask import Flask from flask_dance.contrib.dropbox import make_dropbox_blueprint, dropbox from flask_dance.consumer import OAuth2ConsumerBlueprint from flask_dance.consumer.backend import MemoryBackend def te...
[ "david@davidbaumgold.com" ]
david@davidbaumgold.com
12bef43bcb86da9e884cb5399a3449a2dfefee0a
57e3e8e7beb7029297c34449f73e4f76b7a08643
/third_party/nucleus/io/genomics_reader.py
e2e661ceb2fa477e87108a191960cd8a6fb03ee5
[ "BSL-1.0", "Apache-2.0", "BSD-3-Clause" ]
permissive
gunjanbaid/deepvariant
d477b44f87961183b2ffa8e2bece617c4e210e3b
c2167e7c90f016905f309f118eb3897935ee7c5f
refs/heads/r0.7
2021-12-01T23:10:28.492723
2018-12-12T18:45:43
2018-12-12T18:47:06
168,020,350
3
1
BSD-3-Clause
2019-09-04T17:21:44
2019-01-28T19:13:04
Python
UTF-8
Python
false
false
8,751
py
# Copyright 2018 Google LLC. # # 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 conditions and the following disclaimer. # #...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
b0236f7b445c282954c5e14cd077d6706480f485
c81d7dfef424b088bf2509a1baf406a80384ea5a
/venv/Lib/site-packages/twilio/rest/chat/v2/credential.py
e4678bd5de9eb5063b8a8661ef0187dffd60d614
[]
no_license
Goutham2591/OMK_PART2
111210d78fc4845481ed55c852b8f2f938918f4a
cb54fb21ebf472bffc6ee4f634bf1e68303e113d
refs/heads/master
2022-12-10T01:43:08.213010
2018-04-05T02:09:41
2018-04-05T02:09:41
124,828,094
0
1
null
2022-12-07T23:43:03
2018-03-12T03:20:14
Python
UTF-8
Python
false
false
15,346
py
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from ...
[ "amatar@unomaha.edu" ]
amatar@unomaha.edu
2b3eb61d8eb886e3d08f7c5dec4b7027976b0bfb
bda0ecadb1fdede0a8935b35d5bb6eaa745d092a
/src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/operations/_cassandra_clusters_operations.py
a0e0f51b58da94c859d01cc51253568275b472bd
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
jongio/azure-cli-extensions
059c785e01c6dc5ec89bf7f4d9d2c42ed8cebea3
c2f1e4be94c65451a1d060291ae661a597531fd2
refs/heads/master
2021-11-23T23:49:26.690924
2021-10-23T14:09:49
2021-10-23T14:09:49
224,203,634
0
0
MIT
2020-06-16T16:26:32
2019-11-26T13:52:09
null
UTF-8
Python
false
false
50,424
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" ]
jongio.noreply@github.com
47ab0810b795e184979408bc0e50bdf7fa92bd5c
3a891a79be468621aae43defd9a5516f9763f36e
/desktop/core/ext-py/urllib3-1.22/setup.py
35e02aabe194d0fa87fe0847dc389aeb4b9afb9a
[ "Apache-2.0", "MIT" ]
permissive
oyorooms/hue
b53eb87f805063a90f957fd2e1733f21406269aa
4082346ef8d5e6a8365b05752be41186840dc868
refs/heads/master
2020-04-15T20:31:56.931218
2019-01-09T19:02:21
2019-01-09T19:05:36
164,998,117
4
2
Apache-2.0
2019-01-10T05:47:36
2019-01-10T05:47:36
null
UTF-8
Python
false
false
2,693
py
#!/usr/bin/env python from setuptools import setup import os import re import codecs base_path = os.path.dirname(__file__) # Get the version (borrowed from SQLAlchemy) with open(os.path.join(base_path, 'urllib3', '__init__.py')) as fp: VERSION = re.compile(r".*__version__ = '(.*?)'", re...
[ "ranade@cloudera.com" ]
ranade@cloudera.com
64f963a102feff0ad493f232bb9d0efc6d262257
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/leetenki_YOLOv2/YOLOv2-master/yolov2.py
1a79bcae8f93a445e44d9f865d432feaf9cdbd67
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
18,676
py
import numpy as np from chainer import cuda, Function, gradient_check, Variable, optimizers, serializers, utils from chainer import Link, Chain, ChainList import chainer.links as L import chainer.functions as F from lib.utils import * from lib.functions import * class YOLOv2(Chain): """ YOLOv2 - It takes ...
[ "659338505@qq.com" ]
659338505@qq.com
799aa43fab6f27917a139268f410d8f5eff2f188
9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56
/google/ads/googleads/v9/services/types/campaign_draft_service.py
d35741458258a92a1854440473c3973b5687e633
[ "Apache-2.0" ]
permissive
GerhardusM/google-ads-python
73b275a06e5401e6b951a6cd99af98c247e34aa3
676ac5fcb5bec0d9b5897f4c950049dac5647555
refs/heads/master
2022-07-06T19:05:50.932553
2022-06-17T20:41:17
2022-06-17T20:41:17
207,535,443
0
0
Apache-2.0
2019-09-10T10:58:55
2019-09-10T10:58:55
null
UTF-8
Python
false
false
9,560
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" ]
GerhardusM.noreply@github.com
7f97e535826d343972a73c7e1377a0d2fcd7d1e0
ce7da62e2d6e7820fd66031299702b08bf1260fd
/15-Threading/print_time.py
c8143269ef6cb4acee35a93cd26224c9677a4b4f
[]
no_license
philipz/fasttrack-python
f0644aacf62d0130fa4631f4973fa6d64c46989c
cb4cafebbd04e9b66353fec4919f9cd0e161e84e
refs/heads/master
2021-01-17T08:50:38.702044
2014-07-16T14:26:14
2014-07-16T14:26:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
import time import threading def print_time(): while True: print time.ctime() time.sleep(1) t = threading.Thread(target=print_time) t.setDaemon(True) t.start() time.sleep(10)
[ "rick@arborian.com" ]
rick@arborian.com
df2a22532f04f775815daf02c36c2768d748d1d9
3c59b7bde01cfbc1fbd170883393e8ebf7a0a92f
/백준/1074번 Z.py
0b07500773bb2212f4d32f574c05561e7542de28
[]
no_license
gf234/python_problem_solving
93ae00d940091131d8f8b06e478e385e4c2a4503
4c95751f5a687215c14bf61c37e6dc2e7e752342
refs/heads/main
2023-05-10T07:28:12.351006
2021-06-14T04:59:33
2021-06-14T04:59:33
314,479,583
1
0
null
null
null
null
UTF-8
Python
false
false
397
py
n, r, c = map(int, input().split()) answer = 0 while n: mid = 2**(n-1) sum = 4**(n-1) if r < mid: if c < mid: pass else: c -= mid answer += sum else: if c < mid: r -= mid answer += sum*2 else: r -= m...
[ "gf265@naver.com" ]
gf265@naver.com
dc41a632cd458f4e263f559d9c3c0c90d16474d1
f3b233e5053e28fa95c549017bd75a30456eb50c
/mcl1_input/L54/54-23_MD_NVT_rerun/set_1ns_equi_1.py
d5950a09373a0929e4576ed73deb39bcd3249847
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
import os dir = '/mnt/scratch/songlin3/run/mcl1/L54/MD_NVT_rerun/ti_one-step/54_23/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_1.in' temp_pbs = filesdir + 'temp_1ns_equi_1.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
338ce5bfb6eb581344b48a4f6403e87e9de8d671
a74cabbe1b11fc8ef575ea86f2543cd95db78ec9
/python_program/q1296_Divide_Array_in_Sets_of_K_Consecutive_Numbers.py
e29aed5088a3550289b744c6e3c78f9e8e068699
[]
no_license
tszandy/leetcode
87e3ccf291b2879637d2d8238935a455b401a78a
f1f4361541dcffbb291285663c8820d7ffb37d2f
refs/heads/master
2023-04-06T15:34:04.847875
2023-03-26T12:22:42
2023-03-26T12:22:42
204,069,234
0
0
null
null
null
null
UTF-8
Python
false
false
1,492
py
from typing import List from collections import Counter,defaultdict,deque from math import * from functools import reduce,lru_cache,total_ordering import numpy as np from heapq import * from bisect import bisect_left,bisect_right from itertools import count,zip_longest import queue class Solution: def isPossibleDi...
[ "444980834@qq.com" ]
444980834@qq.com
2370bf29a494f7f47ab8a1880ffe74984620fb45
2ca9e61829dd28113abb971d7db1c46cec64f10c
/app.py
9244898c8240111091aa08a35e372220a5d2c367
[]
no_license
Fordalex/task_manager
90b8591591ea49be16dd32805de21cd8a939ccea
4f9ba9057ddb2b1fdd52ce5d664796dd07529ced
refs/heads/master
2023-05-10T05:49:20.194423
2020-01-14T11:05:38
2020-01-14T11:05:38
232,828,008
0
0
null
2023-05-01T21:19:27
2020-01-09T14:29:17
HTML
UTF-8
Python
false
false
3,117
py
import os from flask import Flask, render_template, redirect, request, url_for from flask_pymongo import PyMongo from bson.objectid import ObjectId app = Flask(__name__) app.config["MONGO_DBNAME"] = 'task_manager' app.config["MONGO_URI"] = 'mongodb+srv://root:r00tUser@myfirstcluster-fbkah.mongodb.net/task_manager?ret...
[ "alex96ford19@gmail.com" ]
alex96ford19@gmail.com
48a6fe8f5a0e1c8b1711c0c50824fa37bf0d24f2
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_207/336.py
8db68177c284762ccb22195d0da91c770b0ce592
[]
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
2,801
py
#Name: Robin Park #Username: robinp #Google Code Jam Round 1B 2017 import random import math def isValid(arr): length = len(arr) for k in range(length): if arr[k%length] == arr[(k+1)%length]: return False return True def solve(N, R, O, Y, G, B, V): if R > N/2 or Y...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
53f6236b4cdfc792e33b41c54cf098a380b42ad8
cdc95cd7cbce8d9e904bb769b981f8b87d86ca7e
/Geeks for geeks/Dynamic Programming/Subset Sum Problem.py
91572f0834aad557afef3571b28d5cc6dd656c0a
[]
no_license
amit-kr-debug/CP
c99ba608edf943b807d9cb707a9f10820ef1d6d6
1423a558904c4497c505c34ec38345ee979a036b
refs/heads/master
2023-05-10T15:51:35.905745
2021-06-13T15:59:15
2021-06-13T15:59:15
291,243,005
5
0
null
null
null
null
UTF-8
Python
false
false
862
py
""" Given an array of non-negative integers and a value sum, determine if there is a subset of the given set with sum equal to given sum. Examples: Input : arr[] = {4, 1, 10, 12, 5, 2}, sum = 9 Output : TRUE {4, 5} is a subset with sum 9. Input : arr[] = {1, 8, 2, 5}, sum = 4 Output : FALSE There...
[ "amitkr0819@gmail.com" ]
amitkr0819@gmail.com
c6c8f87d0f8a443a9de6ef96207e645fd2b836e0
527fd39d3a1555800c2c32025fdd15fd86ba6672
/Decorators/decorator.py
a11513c818b71b811384630675baface6261b694
[]
no_license
rohanwarange/Python-Tutorials
cfd39551f7ff62bd032946976ba3820474e42405
53d8fb226f94d027ae7999f9678697206d37d83a
refs/heads/master
2023-06-18T10:45:36.884324
2021-07-07T17:44:22
2021-07-07T17:44:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
def decorator_func(any_function): def wrapper_function(*args,**kwargs): print("this is awasom function") return any_function(*args,**kwargs) return wrapper_function # this is awasom function @decorator_func def func(a): print(f"This is function with argument{a}") # def func(): # ...
[ "rohanwarange24@gmail.com" ]
rohanwarange24@gmail.com
44c089e6367d19a106156ab03e0795e412f567ef
c1f205b4cc86456ad9d8c4b05c2c7a2a09818ec5
/10_preprocessing.py
272dfa9b82bd04c39cab4cf3a7a7f4a972d66de0
[]
no_license
GINK03/deep-recommnder
d6c7c41188224c721f31b72333167cba16c11a4e
3039c03755b73a04adde6ef84ff2c7da6987dddb
refs/heads/master
2020-04-22T14:38:32.307010
2019-02-05T02:13:19
2019-02-05T02:13:19
170,450,796
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
import glob from io import StringIO import pandas as pd def get_movie(fn): lines = open(fn).readlines() movie = lines.pop(0).strip() csv = ''.join(lines) csv = StringIO(csv) df = pd.read_csv(csv, header=None, sep=',') df.columns = ['userId', 'score', 'date'] df['movieId'] = movie.replace(':', '') df = df.drop(...
[ "gim.kobayashi@gmail.com" ]
gim.kobayashi@gmail.com
5d61a7e605d2e57dbf982682dbb8931f9342f0fd
9b6632b532c1ece623c8c0bd81fc1fac88ee423c
/gluster/peer_op.py
0939576d9edbe310fb6b3f1e8847fc094ab297c6
[]
no_license
sun7shines/GlusterFS
8542bc213d97e001952606881e0e3c42941901f9
1e1b3da72fe030307bb45b4c42260477fc826902
refs/heads/master
2021-01-20T13:48:42.785399
2015-09-08T07:11:30
2015-09-08T07:11:30
42,085,677
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
# -*- coding: utf-8 -*- import operation.gluster.peer_db import operation.gluster.peer_cmd import operation.gluster.volume_clr import operation.gluster.volume_ifo import system.network.dns_service_op import vmd_utils import support.uuid_op import os def create_peer(param): #没有错误返回,如果增加错误返回可以添加新的事件 #检查...
[ "sheshisheng@163.com" ]
sheshisheng@163.com
369eeecbf665af61fc172953556fb50eddc111be
69142ca100a022b73d96f467fb6944b17a2cbc2b
/myapp/myapp/__init__.py
9d573a723f9bb8c7bbee476b7bbbaa8b72f30258
[]
no_license
toscawidgets/tw2.core-docs-turbogears
40a3b0189a68b2b30ce216a46c3e990454bfe25f
535a715c22ac389207ef0c5d8ef6821ab505ebb2
refs/heads/master
2021-01-02T22:39:39.704822
2013-08-26T21:18:59
2013-08-26T21:18:59
1,913,325
0
0
null
null
null
null
UTF-8
Python
false
false
48
py
# -*- coding: utf-8 -*- """The myapp package"""
[ "ralph.bean@gmail.com" ]
ralph.bean@gmail.com
84e58d3da90fb71cd6644555c0120c70d49027a7
e0a51ac08f13f4d3d89ccd770225a9ca0cecb80a
/seucorretor/seucorretor/settings/localtests.py
f9f76f542e0e0c472e4eea530a8fba85bc505816
[]
no_license
MarcosDihl/corretaza-buscador
8bbc94a81f7414a3cbc4a1b7ce7b841431209b1c
a3579059839f32c585dda05775fa525fdd34121e
refs/heads/master
2022-04-04T03:36:47.360708
2018-01-31T03:05:13
2018-01-31T03:05:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
""" Make the tests run faster on localmachines IMPORTANT: Avoid using this settins on staging and CI environments """ from .base import * ADMINS = ( ('', ''), ) DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': join(BASE_DIR, 'dbtest.sqlite3'), } } ALLOWED_...
[ "huogerac@gmail.com" ]
huogerac@gmail.com
e5f484cd73d29d1f7bd4fc93cb9787b6732685cd
f4a1c3157b2544cf0240579607acb116de0818bd
/lookups/v1/phone_number/fetch-payfone-tcpa-compliance/fetch-payfone-tcpa-compliance.6.x.py
2c83bf73afdc86fe9c84bbbc668dc323c1508bfb
[]
no_license
raybanain/sample-code
31568cc3bcfd87ca33937740d7c264ab40f23b04
8778483e064ba571523fa5cc32e677fe5844e7a5
refs/heads/master
2020-03-22T05:02:54.452336
2018-06-28T18:23:04
2018-06-28T18:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
# Download the helper library from https://www.twilio.com/docs/python/install from twilio.rest import Client # Your Account Sid and Auth Token from twilio.com/console account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' auth_token = 'your_auth_token' client = Client(account_sid, auth_token) phone_number = client.looku...
[ "jose.oliveros.1983@gmail.com" ]
jose.oliveros.1983@gmail.com
edcdc247341adbfd4332e2863e2faae3274b9082
8353888e4970dda70b2f4dbd7944e948ff024b94
/games/migrations/0012_leaderboard.py
b6a42f52663f11dd7ff44ee2b5b66ad4ef2ec530
[ "MIT" ]
permissive
munisisazade/diplom_isi
fa420f8f7d960c65dc193d50b5989a69e2d43491
767531ef3a4b090d1bc0963e687b5215d6f92f53
refs/heads/master
2022-12-08T11:02:16.618962
2018-05-01T15:46:04
2018-05-01T15:46:04
131,720,529
1
1
MIT
2022-12-08T00:44:33
2018-05-01T14:09:30
CSS
UTF-8
Python
false
false
734
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-16 13:40 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('games', '0011_auto_20170810_1759'), ] operations =...
[ "munisisazade@gmail.com" ]
munisisazade@gmail.com
963de42e51d86c314d88dc61b8a532258341648c
2377f54ac0450a8ed3f09ca54bda972b8ff654f6
/src/Monotonic_Manual.py
e2b7915e192f2a49860969db8e4d9ca6fe4cdeec
[]
no_license
jeffalstott/technologytimeseries_forecasting
2d45bfe88d3c1206372130e6ab4412d4098f6109
cc3c11a781d18ef45ba140d4eadf09005ed5bc86
refs/heads/master
2021-09-18T06:22:40.038626
2018-01-15T20:05:46
2018-01-15T20:05:46
65,255,996
1
0
null
null
null
null
UTF-8
Python
false
false
40,129
py
# coding: utf-8 # In[ ]: from pystan import StanModel n_jobs = 4 import pandas as pd import seaborn as sns sns.set_color_codes() import pickle get_ipython().magic('pylab inline') models = pickle.load(open('model.pkl', 'rb')) # In[ ]: def test_model_inference(model_name, Y=None, predictors=None, generated_data='da...
[ "jeffalstott@gmail.com" ]
jeffalstott@gmail.com
f05da529322bfe042d838fae947143e6c3dae144
4f04ce5667f895889cfe54ed5f0dec6f5e7d4e4e
/bert_brain/data_sets/choice_of_plausible_alternatives.py
3dcaca9a9b92be43edf07b18daef78b2337f1dc4
[]
no_license
danrsc/bert_brain
e172859b7ab93b0a05ed7c5b936778fae134eabb
eca204f163018270ac6b6687c2f3b6b5b158a89c
refs/heads/master
2022-11-28T14:32:45.420452
2020-08-03T00:14:42
2020-08-03T00:14:42
167,277,920
0
0
null
null
null
null
UTF-8
Python
false
false
4,219
py
import os import json from dataclasses import dataclass import numpy as np from .input_features import RawData, KindData, ResponseKind, FieldSpec from .corpus_base import CorpusBase, CorpusExampleUnifier, path_attribute_field __all__ = ['ChoiceOfPlausibleAlternatives'] @dataclass(frozen=True) class ChoiceOfPlausi...
[ "daniel.robert.schwartz@gmail.com" ]
daniel.robert.schwartz@gmail.com
96a0b1057d72d29888d23095ba8c569604278730
27be1bab83751703d94a5d2387cc316fcad5192e
/bin/thresholder.py
9199f1cc0653afc4e891dba5b7188dbf489ce885
[]
no_license
golamrabbii/rapido-env
b57ebad1f04dcaef60943f097bb976391428eb94
8c0f533a49f76e293af96822459f2cdc42c87def
refs/heads/main
2023-05-22T01:06:26.180692
2021-06-07T12:09:25
2021-06-07T12:09:25
374,652,187
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
#!/home/rapido-live/rapido-env35/bin/python3.5 # # The Python Imaging Library # $Id$ # # this demo script illustrates how a 1-bit BitmapImage can be used # as a dynamically updated overlay # try: from tkinter import * except ImportError: from Tkinter import * from PIL import Image, ImageTk import sys # # an ...
[ "root@ip-172-31-28-98.ap-southeast-1.compute.internal" ]
root@ip-172-31-28-98.ap-southeast-1.compute.internal
e462ebb803471d1bf3b942ca4c3a191aa1d00f36
910590eef6ef4dbccd73f5a3c665e4e06ebd58a3
/sklearn_porter/classifier/BernoulliNB/__init__.py
7c61f2d7115ac5da83585a7cfac9a4815b6c2230
[ "MIT" ]
permissive
prashanthgedde/sklearn-porter
9a6226dd443fd76171d275a84712bae7fe58339e
70f2fc7e9e924b803c896035840c4c28c5c4007f
refs/heads/master
2021-01-23T04:59:45.676275
2017-03-23T23:56:08
2017-03-23T23:56:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,295
py
# -*- coding: utf-8 -*- import numpy as np from ...Template import Template class BernoulliNB(Template): """ See also -------- ... """ SUPPORTED_METHODS = ['predict'] # @formatter:off TEMPLATES = { 'java': { 'type': '{0}', 'arr': '{{{0}}}', ...
[ "darius.morawiec@nok.onl" ]
darius.morawiec@nok.onl
198860c44630bb080bcbf2da9c6818be18e5abfc
e755453c853ae400d94f562ad215b59166b63782
/tests/trees_tests/strategies.py
bb194a8823fc239f882e0ca9573791bea619c9fe
[ "MIT" ]
permissive
lycantropos/dendroid
0cb3e276dd9c476b82b0b7a17c25c2e05616a993
fd11c74a395eb791caf803c848805569869080f6
refs/heads/master
2023-04-07T11:07:55.550796
2023-03-27T00:46:03
2023-03-27T00:46:03
215,369,321
0
1
MIT
2020-09-24T05:02:02
2019-10-15T18:29:36
Python
UTF-8
Python
false
false
4,990
py
from functools import partial from operator import attrgetter from typing import (Callable, List, Tuple) from hypothesis import strategies from dendroid import (avl, binary, red_black, splay) from dendroid.hints ...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
3909bfd514fec87c30a31354c2ca587966716117
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_23518.py
096795b280f800dbed9b6a50ed385dffc35215e3
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
# Python multiprocessing within mpi mpirun -np 1 --bind-to none junk.py
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
9711398bdfc3dc34609e4442b4e41256f5e89cec
2f114ea4068b47949532955ef52d54478cb322fa
/venv/Lib/site-packages/sqlalchemy/dialects/mysql/__init__.py
067d00386e1363160144b7d7f2d3abe719673497
[]
no_license
tgkaiching/tgcb
b8f7fcd6761d3a772df13964527c89412ffa8045
d0dec634191eb26fb5fa875e5ab608981b79f7f7
refs/heads/master
2022-10-09T17:25:50.604485
2018-08-16T00:55:56
2018-08-16T00:55:56
139,693,981
1
2
null
2022-10-02T04:37:09
2018-07-04T08:40:35
Python
UTF-8
Python
false
false
1,185
py
# mysql/__init__.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php from . import base, mysqldb, oursql, \ pyodbc, zxjdbc, mysqlconnector, pymysql...
[ "kc.suen@towngas.com" ]
kc.suen@towngas.com
9eed196e985af87474e283f2699e0539d16aef11
c6414efe635bc5ea4680252f66dd24e2ce3bd087
/test/test_eigen.py
a4653627b63d47f5e8e345cfcc9b7ce168516102
[]
no_license
nicolasfauchereau/spectrum
7e180dc625c8a9c486df5399246593acb7b69ca2
de3fea857f2d8e883258b6999ec1a43a230602db
refs/heads/master
2021-01-19T13:45:47.786187
2017-03-08T13:07:00
2017-03-08T13:07:00
88,107,023
2
1
null
2017-04-13T00:01:52
2017-04-13T00:01:52
null
UTF-8
Python
false
false
560
py
from spectrum import * import numpy #from spectrum import MINEIGVAL from nose.tools import assert_almost_equal def test_mineigval(): tol = 1e-10 T0=3 T = numpy.array([-2+.5j, .7-1j],dtype=complex) eigval, eigvec = MINEIGVAL(T0 , T, tol) print('Eigenvalue=',eigval) print('Eigenvector=',eigvec)...
[ "cokelaer@gmail.com" ]
cokelaer@gmail.com
dfd5fe1cc7aa6d241684d6759ef0894b6ec15e4f
87ced16167203723557f75dc005c3aaae7e3f404
/online-judges/leetcode/making-a-large-island.py
3207a4b14ad2c990a0669813a191359769dcac11
[]
no_license
joao-conde/competitive-programming
87e0c46f06bc017eea2701b9be860ee614c0e159
0d2d7375f0603142febab69707496d3b5b985054
refs/heads/master
2023-08-07T01:47:19.864827
2023-07-25T11:43:39
2023-07-25T11:43:39
132,962,490
6
3
null
2020-04-20T23:15:25
2018-05-10T22:55:01
C++
UTF-8
Python
false
false
1,802
py
# https://leetcode.com/problems/making-a-large-island/ from collections import defaultdict class Solution: def find_island(self, grid, si, sj, seen): points = set() if (si, sj) in seen: return points if si < 0 or sj < 0: return points if si >= len(grid) ...
[ "joaodiasconde@gmail.com" ]
joaodiasconde@gmail.com
b1bf4084761434d71fa9e9b667adbfd207cd9ffd
51108a50ffb48ad154f587c230045bb783f22240
/bfgame/attacks/melee.py
d8a34595ca3b6e66cc6ad08e789a13ab8b479c5a
[ "MIT" ]
permissive
ChrisLR/BasicDungeonRL
c90bd0866c457557cccbad24e14689d5d6db7b00
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
refs/heads/master
2021-06-15T13:56:53.888646
2019-08-05T16:33:57
2019-08-05T16:33:57
104,269,987
3
0
MIT
2019-08-05T16:28:23
2017-09-20T21:35:19
Python
UTF-8
Python
false
false
1,899
py
import inspect from bflib import dice from core.attacks.base import Attack class MeleeAttack(Attack): base_attack = None needs_weapon = False @classmethod def make_melee_hit_roll(cls, attacker, defender, sneak_attack=False): target_ac = defender.combat.armor_class if target_ac is Non...
[ "arzhul@gmail.com" ]
arzhul@gmail.com
c81c476ebf8843aad428297899a3c6fe89568a1a
1ebf64e6526b050bb770ac401ba21d4d44bca495
/Testing/demo files/veQ/marl.py
b62f5c8b8cf79ccf3d1a660a0ae806ec6b4e4875
[]
no_license
sihaanssr/BE-major-MARL
1b928a44cc38a9319d512b0a89d767ece9747fd0
8427c7ffbabd0bae085bf1cf4259210b619d6f20
refs/heads/main
2023-05-05T02:49:25.179793
2021-05-28T13:45:12
2021-05-28T13:45:12
368,431,309
2
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
''' Created on 7/10/2016 @author: CarolinaHiguera ''' import var exec(compile(open("./var.py", "rb").read(), "./var.py", 'exec')) # import arrivalRateGen # exec(compile(open("./arrivalRateGen.py", "rb").read(), "./arrivalRateGen.py", 'exec')) # import fun # exec(compile(open("./fun.py", "rb").read(), "./fun....
[ "anup20joseph@gmail.com" ]
anup20joseph@gmail.com
850456b7d377656d9b88254f9b4014dc903358f5
6e4e6b64c035881f1cff39db616b0a80e1568c51
/fes2016QualA/q3.py
3f46237051c316ebde9c9bd3a46679ec69f95363
[]
no_license
Lischero/Atcoder
f7471a85ee553e3ae791e3e5670468aea1fa53cc
f674d6a20a56eebdafa6d50d5d2d0f4030e5eace
refs/heads/master
2020-05-21T16:23:36.095929
2018-10-18T04:27:55
2018-10-18T04:27:55
60,671,810
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
# -*- coding:utf-8 -*- s = list(input()) k = int(input()) for tmp in range(len(s)): if k == 0: break a = 26-(ord(s[tmp]) - ord('a')) if s[tmp] != 'a' and k >= a: k -= a s[tmp] = 'a' else: pass if k > 0: s[len(s)-1] = chr((ord(s[len(s)-1])+k%26)) print(''.join(s))
[ "vermouth.lischero@gmail.com" ]
vermouth.lischero@gmail.com
257bc81119c88a14a85b2ca30ba61dca1c79409b
8c1b8ef19c55de8da1341995053769b03af433a4
/code/processing/growth_curves_plate_reader/20200708_r1_O1_T_beta-thujaplicin/growth_plate_reader_analysis.py
fa5c3b78a45ecd67ec2238eb1e7b5b006c20f759
[ "MIT", "CC-BY-4.0", "CC-BY-ND-4.0", "CC-BY-ND-3.0" ]
permissive
mrazomej/evo_mwc
badb78238a129cc0c863af3ca424691a188cb87b
b69c800c5518d906cd2c65334c6feffdbab5acf1
refs/heads/master
2023-07-20T04:13:53.025102
2021-05-19T01:57:59
2021-05-19T01:57:59
185,700,015
0
1
MIT
2023-07-06T21:42:28
2019-05-09T00:49:59
Jupyter Notebook
UTF-8
Python
false
false
7,762
py
# -*- coding: utf-8 -*- # %% import numpy as np import pandas as pd import string import os import matplotlib import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages import evo_mwc.viz import evo_mwc.fitderiv import seaborn as sns import statsmodels.api as sm import git # Import libraries ...
[ "manuel.razo.m@gmail.com" ]
manuel.razo.m@gmail.com
85bd3c963b228d902b75d1155a4d7c4abe708fdd
586383ed657389cc67ca6c822b3ebd7e91e4d5a9
/app_page_cap_img/models.py
38ed270aeb636e415f69df0ba512aa59a72cbf83
[]
no_license
idelfrides/app_capturepage_django
d510e824ca57e598ec7c8bcc2e9e7c7fa04099f6
6ad6d87e76deb6075195ee2117c0974a6b480b5f
refs/heads/master
2022-06-14T17:44:15.945803
2022-06-07T20:30:18
2022-06-07T20:30:18
225,614,573
1
0
null
null
null
null
UTF-8
Python
false
false
2,651
py
from distutils.command.config import config from django.db import models from django.conf import settings from .managers import Manager POSITION_CHOICES = ( ('E', 'Esquerda'), ('D', 'Direita'), ('C', 'Centralizado'), ) TYPE_MIDEA_CHOICES = ( ('I', 'Imagem'), ('V', 'Vídeo') ) class PageCapImag...
[ "idelfridesjorgepapai@gmail.com" ]
idelfridesjorgepapai@gmail.com
e4569c644f81db0fc0225544d6c4b3d580442a12
e5329001263e67a4d3c13d57bb91f2502280e206
/InvTL/lm_py/py/apigen/source/html.py
a63ac7682d1d66ccb1f8647f5feb7f48d5f1d7fc
[ "MIT" ]
permissive
yanhongliu/DARLAB
d9432db6e005a39e33501d7ffffe6e648b95b3fc
f739318c9620b44ef03d155f791c7ed4111d80fa
refs/heads/master
2021-05-27T19:58:58.458846
2014-02-04T12:09:26
2014-02-04T12:09:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,751
py
""" html - generating ad-hoc html out of source browser """ import py from py.xml import html, raw from compiler import ast import time from py.__.apigen.source.color import Tokenizer, PythonSchema from py.__.apigen.source.browser import parse_path class CompilationException(Exception): """ raised when something...
[ "mickg10@gmail.com" ]
mickg10@gmail.com
07bb340293a0865e794ea8be4102ebb9ec0411d2
b1e785280635716d50d68d628d0d76b20dc4c386
/game_tracker/wsgi.py
3cf1c1ee788b8014eb824d61ad71b6c4b652404d
[]
no_license
CoreyWilson319/game_tracker
17f684c59a466bcbc47a3940a434bd1cbba78c3b
e1f8962159f87d603bb0d928633876509ce76bdd
refs/heads/main
2023-02-21T13:27:44.377667
2021-01-27T14:17:04
2021-01-27T14:17:04
331,335,068
1
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" WSGI config for game_tracker project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_...
[ "you@example.com" ]
you@example.com
f3b2527f458a0a0722b5b65fafc85ecc6248a55a
f54070cd3048a3645cb25f301592a904d387a1c9
/python_prgrams/testpython/func5.py
a2728d09a5097957477c0ba6bffc8d4ef0ec27dd
[]
no_license
mak705/Python_interview
02bded60417f1e6e2d81e1f6cde6961d95da2a8e
aff2d6018fd539dbcde9e3a6b3f8a69167ffca0d
refs/heads/master
2020-03-22T21:03:34.018919
2019-11-15T08:51:34
2019-11-15T08:51:34
140,653,056
0
0
null
null
null
null
UTF-8
Python
false
false
64
py
def even(x): if x % 2 == 0: print "Yes" else: print "No"
[ "mak705@gmail.com" ]
mak705@gmail.com
71fe7e8212514b76527330fe88222c93e5297c78
157d2a2f4031c58e5504bcbac5348ff53883facc
/rDj48/enroll/forms.py
9b2ec9d69b4dcf64f0fc4ebc028105648ccddbd1
[]
no_license
optirg-39/Django_gekSh
d78b635fd3ee88addd084b68ec35c6284adfb55c
1129a6df35c110dfeeeaaf1a76b2ebc192a5f1ce
refs/heads/master
2023-04-15T13:09:03.067099
2021-04-26T12:15:35
2021-04-26T12:15:35
352,018,795
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
from django import forms from .models import User from django.forms import ModelForm class UserForm(forms.ModelForm): class Meta: model=User fields=['name','email','password']
[ "opti39rg@gmail.com" ]
opti39rg@gmail.com
750ef2857f71cdbfb166b0d44ab0fb803c25890c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_2/232.py
75a478a83dc3509f3ffb15597d23d5c54bbb573b
[]
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
2,768
py
#!/usr/bin/env python "train timetable" import sys class Event(dict): "Event" LOC_A, LOC_B = "A", "B" TYP_DEP, TYP_ARR = '1departure', '0arrival' def __init__(self, time, orig, type, turnaround): super(Event, self).__init__() self['time'] = self.parse_time(time) if type == Ev...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d2f0fb47039e9ea4a28cea4462aa8c961e1c6681
2bc7659be83178c43b1592efbe1d79c62fc4fa36
/Python/1156 홀수 짝수 구별.py
01b65d2728a07c3e51224d626ee60cbb6a70d8f1
[]
no_license
KIMSUBIN17/Code-Up-Algorithm
ede6f443fcf640ecf58282c582da43e124ca44af
831180c28d234366a1d3cf118bd2a615dc404f00
refs/heads/master
2023-07-22T21:42:06.990542
2021-09-05T08:36:32
2021-09-05T08:36:32
286,932,400
0
0
null
null
null
null
UTF-8
Python
false
false
78
py
n = int(input()) if n % 2 == 0: print('even') else : print('odd')
[ "tnqls24860@naver.com" ]
tnqls24860@naver.com
14d1fcc9d5916920ca2b2c816f8c4fd4d335dcf8
ed44c039862c6bde4c790c29f49d4e1012ae04ff
/sep11/venv/bin/rst2xml.py
e63dbdf9839a7860856a699d0d912f53ddf6e6f3
[]
no_license
ravijaya/sep13
983bc2fc62a03c607478400dbdf9f91acc028b5d
fca95700ec9e3b56fc99621396d72ae411b3be92
refs/heads/master
2022-09-19T05:04:29.422670
2019-09-13T13:17:21
2019-09-13T13:17:21
208,267,991
0
0
null
2022-09-13T23:02:52
2019-09-13T13:15:15
Python
UTF-8
Python
false
false
646
py
#!/home/ravijaya/Trainings/Python-Devops/sep11/venv/bin/python # $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Docutils XML. """ try: impo...
[ "ravijaya@localhost.localdomain" ]
ravijaya@localhost.localdomain
65d8dad340c685fb2a9eb0d09bd3e8560bf36bc5
fd02e8924ba325f2a62bbf97e460740a65559c74
/PythonStart/Blackhorse/HM_Class/384封装案例-需求分析01.py
b7dc1e8c2a808237cebcf1689430d8d72663d433
[]
no_license
ShiJingChao/Python-
51ee62f7f39e0d570bdd853794c028020ca2dbc2
26bc75c1981a1ffe1b554068c3d78455392cc7b2
refs/heads/master
2020-07-08T00:05:16.532383
2019-10-14T15:19:49
2019-10-14T15:19:49
203,512,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,553
py
# CLASS 384——385-386面向对象封装案例 # 1.封装是面向对象编程的一大特点 # 2.面向对象编程的第一个步——将属性和方法封装到一个抽象的类中 # 3.外界使用类创建对象,然后让对象调用方法 # 4.对象方法的细节都被封装在类的内部 # 一个对象的属性可以是另一个类创建的对象 # 01 士兵突击 class Gun: def __init__(self, model): # 1.枪的型号 self.model = model # 2.子弹的数量 self.bullet_count = 0 def add_bullet(self...
[ "1015174363@qq.com" ]
1015174363@qq.com
ae52c62a6fcd0663134cd4a812fc27643c009470
2a120a15321101c09fbc2016f28f49662a64a692
/Codes/AdS/First try/pyeq2/ExtendedVersionHandlers/ExtendedVersionHandler_Offset.py
1a22f5514e1488978c538a26039acc3d71bd853e
[ "BSD-2-Clause" ]
permissive
afarahi/QFT
ba7abd1f3520faa31a521d1db4ce313e684e478e
d8e676b8e80033b69d7df99f5ed2897273a8055f
refs/heads/master
2021-01-16T18:21:11.210549
2012-09-16T11:54:05
2012-09-16T11:54:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,885
py
# pyeq2 is a collection of equations expressed as Python classes # # Copyright (C) 2012 James R. Phillips # 2548 Vera Cruz Drive # Birmingham, AL 35235 USA # # email: zunzun@zunzun.com # web: http://zunzun.com # # License: BSD-style (see LICENSE.txt in main source directory) # Version info: $Id:...
[ "aryaf66@gmail.com" ]
aryaf66@gmail.com