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
4d1159ac55e0ab29af26af53f03f4c763a25fa07
f188379dc9c1e5b63e432d434c782a4d6997872b
/1_Basic Syntax, Conditional Statements and Loops/Exercises and More Exercises/13. Wolf in Sheep's Clothing.py
0a86fc9d8b82e583409b0b0e9d877702426fb9d8
[]
no_license
GalyaBorislavova/SoftUni_Python_Fundamentals_January_2021
39d7eb8c28f60ff3c293855b074c49ac622a6036
7d479fd6c8e4136fb07b765458cc00088e09767a
refs/heads/main
2023-06-15T04:16:17.084825
2021-06-30T18:05:42
2021-06-30T18:05:42
381,785,764
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
str1 = input() str1 = list(str1.split(", ")) for n in range(len(str1)): if str1[-1] == "wolf": print("Please go away and stop eating my sheep") break if str1[n] == "wolf": wolf_position = n sheep_position = len(str1) - (n + 1) print(f"Oi! Sheep number {sheep_position}! ...
[ "galyaborislavova888@gmail.com" ]
galyaborislavova888@gmail.com
7913cf35886e3d7953c71ebd3df8270546dd505c
6c58da2c54a3d35273e7984313d181f1da9981fc
/Courses/djangoEnv/bin/wheel
74de7676dbdadcb36998f4bc9103287d5ef5b489
[ "MIT-0" ]
permissive
py1-10-2017/rgero215_PY1-10-2017
e582cb12cc63f84b1c0c14d09a922cb6cb228016
f455b335ec9c8c850571f3a75dcd95759b4cfdad
refs/heads/master
2021-09-04T03:23:48.062326
2018-01-14T21:07:26
2018-01-14T21:07:26
105,612,652
1
0
null
null
null
null
UTF-8
Python
false
false
269
#!/Users/RGero13/Desktop/rgero215_PY1-10-2017/Courses/djangoEnv/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "rgero215@gmail.com" ]
rgero215@gmail.com
9a9b8085b30ebfc1f52ffb7039db4e59a96e15ae
ac6f3ab88c67b09e187c92652e29fabd5bf5ffd5
/code/297_solution.py
ebed6724c364c56bce14531a01e6e2c4ed872e65
[]
no_license
YanjiaSun/leetcode-3
f3c87ef6961220c39d48094ef65db921f34d070f
59d323161dba8d250d6dd7f31c40731845356f21
refs/heads/master
2022-12-05T17:15:55.601506
2020-08-03T11:38:39
2020-08-03T11:38:39
284,863,415
1
0
null
2020-08-04T03:05:05
2020-08-04T03:05:04
null
UTF-8
Python
false
false
2,430
py
# [1,2,null,null,3,4,null,null,5,null,null] # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None # 1byte for flag indicating type of node # 4byte for the node value # [1byte flag][4byte data] # 0x0 -> ...
[ "ryanzjlib@gmail.com" ]
ryanzjlib@gmail.com
883e577e9bb60c24235055b372351aacc0fd4d7d
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/cloud/securitycenter/v1beta1/securitycenter-v1beta1-py/google/cloud/securitycenter_v1beta1/types/organization_settings.py
cdaa630daf514ff7d92881335a9f7ef728e391a6
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,404
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
982a7abd44228d666181097642ad439bfc09d8df
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/databoxedge/azure-mgmt-databoxedge/generated_samples/device_capacity_request_post.py
babc7191b2d590269fcd350833e7124d164d5123
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,757
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
bad21589dd683a9c11ecd6f70487925c565aa18d
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/27573004.py
9dbbeaafd48b3898ab5f41075b129db32a0eea64
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
2,429
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/27573004.py generated: Fri, 27 Mar 2015 15:48:06 # # Event Type: 27573004 # # ASCII decay Descriptor: [D*+ -> (D0 -> K- mu+ nu_mu) pi+]cc # from Configurables import Generation Generation().EventType = 27573004 Generation().SampleGenerationTool = "SignalP...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
8f5f198e8b44bd0602397256ad45501427ca6303
0f24270e3c305c3ffb984a631ec4ab5c9d7609d7
/conscrap/settings.py
86ce010a18f022aaa4ef0d327ebb103996387313
[]
no_license
desertSniper87/constitution_scraper
0c4364588cb6baa300657a603a3848b6eb4fa0b5
74219fe351f4e42a8e38a2ae875d29dc4a06594a
refs/heads/master
2023-03-06T19:00:05.286203
2021-02-20T14:03:23
2021-02-20T14:03:23
340,588,325
0
0
null
null
null
null
UTF-8
Python
false
false
3,079
py
# Scrapy settings for conscrap project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://docs.scrapy.org/en/latest/topics/settings.html # https://docs.scrapy.org/en/latest/topics/downloader-middlewar...
[ "torshobuet@gmail.com" ]
torshobuet@gmail.com
d8dc0309bcacaac6086ea61524144db2590e0239
f1383139241526c0c0ebf4be416d511d1defc0dd
/neighbour/models/info.py
3006f7679cf6b1f0f519c8fbbb0c1b6f4e43b986
[]
no_license
qitianchan/neighbour_0.1
585b8c4178eb6d9b002b88a568541ec325ac2282
c4c4f5a3539f6476c30a7bbda63674cbe2ddc57f
refs/heads/master
2021-01-10T04:47:45.257828
2015-10-11T05:53:07
2015-10-11T05:53:07
43,542,360
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
# # -*- coding: utf-8 -*- # from neighbour.extensions import db # from neighbour.utils.database import CRUDMixin # # # class Info(db.Model, CRUDMixin): # """ # 消息,用于通知小区管理员的消息 # """ # __tablename__ = 'info' # id = db.Column(db.Integer, primary_key=True, autoincrement=True) # description = db...
[ "qitianchan@sina.com" ]
qitianchan@sina.com
bb7a9168385bfc81e0f47f45b6efb88401afdeea
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/rtctrl/setrtmetricdef.py
2c82a53240eaf7cb65426132bcef5cdf02b83c01
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
5,969
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
412abdd7697fc315f0c599bfb46285125b661bf5
8c549ca2cff2dae4a1106d96962ce528ade70b8c
/mpcontribs/rest/_apidoc.py
998e549ab8b462059e060395051b56db6280d22f
[ "MIT" ]
permissive
Tinaatucsd/MPContribs
4422e55cfca9071cff08466547988407dccf3692
dca8e085c6576f3dc3d45c53328ae58c20ed7b5b
refs/heads/master
2020-03-23T06:19:26.572769
2018-07-11T20:49:41
2018-07-11T20:49:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,509
py
""" @api {post} /query?API_KEY=:api_key Query contributions @apiVersion 0.0.0 @apiName PostQueryContributions @apiGroup Contribution @apiDescription Query the contributions, materials, or compositions collections given specific criteria and projection @apiParam {String} api_key User's unique API_KEY @apiParam {String...
[ "phuck@lbl.gov" ]
phuck@lbl.gov
2337a268f0de5561a457f11c702d3da446695439
c2f35e5d3cfbbb73188a0cd6c43d161738e63bd1
/12-Django框架学习/bj18/test5/booktest/templatetags/filters.py
27b5063ae10a38fcb8b120d1592ca588999bcb88
[]
no_license
yangh-zzf-itcast/Python_heima_Study
2a7cd0d801d9d6f49548905d373bb409efc4b559
7d753c1cdd5c46a0e78032e12b1d2f5d9be0bf68
refs/heads/master
2020-04-30T06:59:04.000451
2019-04-19T12:15:30
2019-04-19T12:15:30
176,670,172
1
0
null
null
null
null
UTF-8
Python
false
false
404
py
# 自定义过滤器 # 过滤器的本质就是Python的函数 from django.template import Library # 创建一个Library对象 register = Library() # 自定义过滤器最少一个参数,最多两个参数 @register.filter def mod(num): """判断是否为偶数""" return num%2 == 0 @register.filter def mod_val(num, val): """判断num是否可以被val整除""" return num%val == 0
[ "2459846416@qq.com" ]
2459846416@qq.com
f22536b5dec2ebcca1d11deb860eff0b084b6613
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/program/database/data/BuiltinDBAdapter.pyi
2ba32b15927c38c29d9bc4bb0f86b675febe3c55
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
579
pyi
import java.lang class BuiltinDBAdapter(object): """ Database adapter for managing built-in data types. """ def __init__(self): ... def equals(self, __a0: object) -> bool: ... def getClass(self) -> java.lang.Class: ... def hashCode(self) -> int: ... def notify(self) -> None:...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
04ce7867c5d27e732b3116c6f49f676cd1363925
3e879618053d86aa6c3d1a3a4de76a8337ed4ff8
/lecture08.py
2131f0cce7685c8bc4ffb922c46e638ec0b643ae
[]
no_license
robertvandeneynde/parascolaire
a3bad82e420dfc2a9d2ed72b717453a388dc8b3e
444a7b8ea862571d120e8e165943ae5c034ede70
refs/heads/master
2021-04-29T00:02:21.674614
2021-02-01T06:09:32
2021-02-01T06:09:32
77,689,850
1
1
null
null
null
null
UTF-8
Python
false
false
228
py
#!coding: utf-8 L = [1,2,7,2] c = 7 # Que valent les valeurs de i au cours du temps ? # Qu'affiche ce code ? # Essayez aussi avec c = 5 i = 0 while i < len(L) and L[i] != c: i = i + 1 if i == len(L): i = -1 print(i)
[ "robertvandeneynde@hotmail.com" ]
robertvandeneynde@hotmail.com
8d87dcae6ea5bfbc283968604bc826d7dbef06ee
095c0f8b5a67f19ff9bd987b1442992f208cb842
/gocode/src/cuauv.org/shm/cli/configure.py
442815a26b66c27526dd0ccc6741071d71562bfe
[ "BSD-3-Clause" ]
permissive
forbesk/software
484d5fc5e57be2e12a384fc06e2349c65a390045
abadfa65bb5ad3d1d14c49079baeefa1ab8f2604
refs/heads/master
2021-01-14T12:40:37.081869
2016-05-11T22:58:13
2016-05-11T22:58:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
#!/usr/bin/python from build import ninja_common build = ninja_common.Build('gocode/src/cuauv.org/shm/cli') build.go_build('auv-go-shm-cli', pkg='shm/cli', inputs=['main.go'], go_deps=['shm'])
[ "software@cuauv.org" ]
software@cuauv.org
19b60bcd4bde9ed924f5391ef6d626950c7d2c98
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-cdn/azure/mgmt/cdn/models/resource_usage.py
ba216e259427144d7f81c7c6e8cf1ecc7d587fb3
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
1,712
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
bf8c9fd5570fc727dddb1fac505d8329ba5a9e74
9a0d178a9128b8b3f33334f10d65abc7c2d8ed6e
/main/backend/capstone_project/chat/migrations/0003_chatroom_creator.py
8d30f897dccb99b6e35e8be647adf721444bb7ca
[]
no_license
kookmin-sw/capstone-2021-5
b19917d3d9fe5d2edfd8ebea5745a2806414aff3
322a2cd5d79d8bfd639f60e015af5db5dd7bc4a1
refs/heads/master
2023-05-06T01:24:00.457598
2021-05-26T14:43:28
2021-05-26T14:43:28
329,216,184
0
9
null
2021-05-24T05:05:41
2021-01-13T06:35:50
JavaScript
UTF-8
Python
false
false
594
py
# Generated by Django 3.1.6 on 2021-05-17 01:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('chat', '0002_chatroom_pa...
[ "you@example.com" ]
you@example.com
18f985ccb1d9420af7b4500834d34586a472f96f
1898456162422859f8b7da7902582e43ed3afffb
/1_Algorithmic_Toolbox/week5_dynamic_programming1/3_edit_distance/edit_distance.py
10a06499aa83da88dda2f8c88002d1d75bba037c
[ "MIT" ]
permissive
AnthonyRChao/UCSD-DSA
275a5e668d3c54e0e27c8530280ad3c234f93933
877d7f1d7f3d3d9d6a0c6cda2421ec130b64da3d
refs/heads/master
2020-04-22T14:34:18.824210
2019-05-06T06:46:09
2019-05-06T06:46:09
170,448,258
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
# Uses python3 def edit_distance(s, t): a = len(s) b = len(t) # Handle any empty strings if a * b == 0: return a + b # Initalize the DP Matrix D = [] for _ in range(a + 1): D.append([0] * (b + 1)) # Populate null string row and column of DP Matrix for i in range(a...
[ "anthony.r.chao@gmail.com" ]
anthony.r.chao@gmail.com
ec0d6b61579afd118e71f88edd55cf8038987096
2c1280bd276bef207b748c89a50c4ee51ef3afa5
/src/tweetme/settings/base.py
0a3ffdc4cf723ac23e9c1fccf18d45d46c76a012
[]
no_license
apabhishek178/error
4c86cfeea8cb5d7c49be0fa34545f15715d40ed6
f2d6db18d20dc2dfdd146dcead506b3ce2c23770
refs/heads/master
2022-11-09T14:04:12.094851
2018-07-29T06:03:45
2018-07-29T06:03:45
142,734,788
0
1
null
null
null
null
UTF-8
Python
false
false
3,260
py
""" Django settings for tweetme project. Generated by 'django-admin startproject' using Django 1.9.13. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os ...
[ "apabhishek178@gmail.com" ]
apabhishek178@gmail.com
908abf0242604a1f94e69785b9d33108151c7de0
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/LArCalorimeter/LArCellRec/share/LArCell_jobOptions.py
dd7cc676a6be6d345c0d26c17d4ef02f8b7cd56e
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
182
py
# default jobOptions file for LAr Cell Reconstruction # with full corrections and with the possibility to add the noise. include( "LArCellRec/LArCellFromLArHit_MC_jobOptions.py" )
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
628b91914b18e0aa460f72f80a7c2ae896b439bf
e70477993d2940e224e79938752fef4550040896
/02.neural-network/05.mnist-neural-network/test.py
b9f5056271299f1d068c86c580593cf7179fb0c3
[]
no_license
et0511/deep-learning
00f56f585c18307ebce670f7b591c24c033c0930
68e424e101b364a7832c9de5c315ec92f260e68e
refs/heads/master
2023-01-22T02:20:02.541719
2020-12-04T06:51:52
2020-12-04T06:51:52
315,176,127
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
import numpy as np a1 = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]) a2 = np.array([ [1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 20, 30, 40, 50, 60, 70, 80, 90] ]) b1 = np.max(a1) b2 = np.max(a2) print(b1, b2)
[ "shinwon0511@gmail.com" ]
shinwon0511@gmail.com
44f5340fde7989132da87e83760f3a05510a5452
01fdd206c8c825b30870bdd3f6e75f0aa113b849
/test/record/parser/test_response_whois_register_com_registered_without_updated_on.py
0a709ff624f86b3d571b4e77a8bf994ebb857dcd
[ "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
812
py
# This file is autogenerated. Do not edit it manually. # If you want change the content of this file, edit # # spec/fixtures/responses/whois.register.com/registered_without_updated_on # # and regenerate the tests with the following script # # $ scripts/generate_tests.py # from nose.tools import * from dateutil.pa...
[ "dachuy@gmail.com" ]
dachuy@gmail.com
4314155f446e639f6f34059661897f2bd410e605
004924ff440299e20b1bee95941a8d045a098173
/01-basic-python/04-lists/06-includes/tests.py
5a3b23767897a391505fb6269f1e4d5176e7b7d5
[]
no_license
UCLeuvenLimburg/scripting-exercises
cfc5afaf9c5767063500ca11106c2fc49a0b2526
3a21c99b9e389bbad6b4c52df36dcb70fb9dc48d
refs/heads/master
2022-05-01T02:23:42.012534
2022-03-30T12:44:39
2022-03-30T12:44:39
168,198,257
10
20
null
2020-10-19T14:32:28
2019-01-29T17:36:36
Python
UTF-8
Python
false
false
654
py
from contextlib import contextmanager from scripting.testing import test from scripting.quick import reference_based_test from scripting.reference import active_reference_implementation_from_id, reference_file with reference_file('solution.py'): with reference_based_test('includes') as testcase: testcase(...
[ "frederic.vogels@ucll.be" ]
frederic.vogels@ucll.be
f499620a3ca7e770c2cdf58ee982bff94dd07371
c1036fa9241f6f9e832cf62e65b96e3f1b6aecab
/pythonFiles/Front_BackYard_calculation.py
0bbd36ec810223ba69cf1037c92d7ac2d2b20885
[]
no_license
Skunkler/ImageClassification2016
386cfe0f4e7ccaf24ab5a35a3c07f41bfeea634b
37dbff2af14373aca474c5085895246fed3e1aaa
refs/heads/master
2021-01-16T15:30:07.345611
2020-02-26T04:58:22
2020-02-26T04:58:22
243,168,252
0
0
null
null
null
null
UTF-8
Python
false
false
4,558
py
import arcpy, string, os, sys, time, datetime from arcpy import env ws = r'H:\missing_sets\workSpace.gdb' env.workspace = ws arcpy.env.overwriteOutput = True fcs = arcpy.ListFeatureClasses() roads_layer = r"E:\2016_ClarkCounty_imageryclassification\las\Road_Work.gdb\GISDBA_roadparc_no_major_buf15" GISDBA...
[ "noreply@github.com" ]
Skunkler.noreply@github.com
67b889ce695fbdf28bed3ed725fd652e01c8631d
c8b18f0530f290fcd451b2a34d8e64d62477c3e5
/codes/SmartBook/pages/ReaderListPage.py
14369c277595adae9ac4663dde5695c28f9d226a
[]
no_license
YorkFish/hello-world
a8e2e019e51a814bae4dbb134abce90fd02317d4
31f8b807c57bd942fc805466ad9d5ff9b9614b55
refs/heads/master
2021-10-23T00:41:09.867934
2021-10-12T01:25:20
2021-10-12T01:25:20
165,218,921
0
0
null
2019-01-11T11:19:18
2019-01-11T09:42:33
null
UTF-8
Python
false
false
379
py
# coding: utf-8 """ author: York date: 2021-10-02 """ from pages.SuperPage import SuperPage class ReaderListPage(SuperPage): PAGE_MESSAGE = [ "---读者管理---", "注册读者{len(UserinfoDAO.select(level='reader'))}", ] PAGE_ACTIONS = [{ "KEY": "rl", "DESC": "读者列表", "ACTION": ...
[ "18258788231@163.com" ]
18258788231@163.com
cd996c544bc5328835666bc32ec1d1a6e609c359
479696ed99f10e449308bf3379e8b3d167365ebe
/spa/models/event.py
20048b75ac993c6adfa9c5796c66efc6b25a1050
[ "BSD-2-Clause" ]
permissive
fergalmoran/dss
7c690ba0b858c3d7d115af54655954ecee64407e
684fb4030e33212c3ecde774ca86cb74a1ffc8ac
refs/heads/master
2021-07-06T02:46:49.064282
2015-01-04T22:19:31
2015-01-04T22:19:31
5,353,985
0
0
BSD-2-Clause
2021-06-10T17:35:38
2012-08-09T10:03:17
JavaScript
UTF-8
Python
false
false
841
py
from datetime import datetime from django.contrib.auth.models import User from django.db import models from spa.models import Recurrence from spa.models.venue import Venue """ class Event(views.Model): class Meta: app_label = 'spa' event_venue = views.ForeignKey(Venue) event_date = v...
[ "fergal.moran@gmail.com" ]
fergal.moran@gmail.com
4042e466a3eb603b0f15ea0853780d60e29d4b56
c2ee9d6d84e2270ba4c9d6062460a2be0ff5f19c
/98. Validate Binary Search Tree.py
ca57f62a6b28617a1ecccf1ebda77282e5f421f2
[]
no_license
Peiyu-Rang/LeetCode
0dd915638e8c41c560952d86b4047c85b599d630
f79886ed3022664c3291e4e78129bd8d855cf929
refs/heads/master
2021-11-27T23:48:39.946840
2021-11-09T12:47:48
2021-11-09T12:47:48
157,296,661
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
# -*- coding: utf-8 -*- """ Created on Mon May 31 18:11:02 2021 @author: Caven """ # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def helper(self, node, ...
[ "prang3@gatech.edu" ]
prang3@gatech.edu
d5dce9668304124ade6e0b1166123275b79f19ce
14e1fd11ecf21781314d0d169e4f36996f5cf85f
/MxOnline/apps/organization/migrations/0006_auto_20180103_1230.py
ae0744301dec844fee141c326b95e2a000b981f7
[]
no_license
lixiang007666/Education
6dcdd5f91c9fba264a488afa4ff86b10d6a44cab
715823a7d7430641e9c1ef0b7843d52912998057
refs/heads/main
2023-06-08T18:38:10.137472
2021-07-05T07:18:13
2021-07-05T07:18:13
383,049,832
3
0
null
null
null
null
UTF-8
Python
false
false
491
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-01-03 12:30 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('organization', '0005_auto_20180103_1229'), ] operations = [ migrations.Alte...
[ "54010254+lixiang007666@users.noreply.github.com" ]
54010254+lixiang007666@users.noreply.github.com
e847dc089e3fd9bc2c94e855bb092e51f5a04f37
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_328/ch116_2020_04_11_22_46_59_350080.py
2c8836c8db8d0acac69713fe4478eaa9ad8741de
[]
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
240
py
def raiz_quadrada(numero): tempo = 0 i=0 x= True while i <= numero: numero -= i print('Valor do contador: ', i) if numero == 0: x = False i += 2 tempo += 1 return tempo
[ "you@example.com" ]
you@example.com
553e8441edbc1e04cfe0ade13fc8a1bc115d684d
f9308d5a8efe2dbb48e9cc87cd06405b60a9dc7b
/samples/python/apidocs/ee_number_evaluate.py
3c3571d53e90e1ce27a8b1c273fe768b16906b9c
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
google/earthengine-community
4e054b421f66f03507d58668084aee981062fc24
ce931040c518860f8788b4888c0acfdebd2952fc
refs/heads/master
2023-09-01T14:47:54.812703
2023-08-31T23:01:00
2023-08-31T23:01:39
200,732,820
428
552
Apache-2.0
2023-09-13T21:46:51
2019-08-05T21:42:11
Jupyter Notebook
UTF-8
Python
false
false
867
py
# Copyright 2023 The Google Earth Engine Community Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
1b013aa166f1371b7d9898014bc979a53684b15a
d2fdd6b10b0467913971d1408a9a4053f0be9ffb
/datahub/event/migrations/0005_change_additional_teams_to_teams.py
fb2c5da36113c704840a783c684e9a8dacc154d5
[]
no_license
jakub-kozlowski/data-hub-leeloo
fc5ecebb5e4d885c824fc7c85acad8837fcc5c76
7f033fcbcfb2f7c1c0e10bec51620742d3d929df
refs/heads/master
2020-05-18T13:29:14.145251
2019-04-30T12:12:50
2019-04-30T12:12:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-09-05 08:27 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('metadata', '0001_squashed_0011_add_default_id_for_metadata'), ('event', '0004_add_lo...
[ "reupen@users.noreply.github.com" ]
reupen@users.noreply.github.com
28d11949f58eec3d88f321522a815b96a8b4190c
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/era5_scripts/02_preprocessing/concat82/846-tideGauge.py
a2bebdebb0de53238dd8f42d482a3f5cf77e5090
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
2,482
py
# -*- coding: utf-8 -*- """ Created on Tue May 13 10:02:00 2020 --------------------------------------------------------- This script concatenates yearly predictor files Browses the predictor folders for the chosen TG Concatenates the yearly csvs for the chosen predictor Saves the concatenated csv in a separate dire...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
7719719f82aff135688104cefe1e2eaefce194dc
d16365c668a224c33842336c14150e73195b741a
/prepare_static.py
42e90c0b41c17a2ab93d1e87bbabeabedc5b61e0
[]
no_license
imbolc/aiorest-angular-template
1216acec2f27f27718cd2079ca988ee009fd0b3c
fcbd76df749b3d8ba5bb68e133c2f6ef1f2ce982
refs/heads/master
2016-09-05T13:23:42.457819
2014-08-15T13:23:06
2014-08-15T13:23:06
22,904,545
2
0
null
null
null
null
UTF-8
Python
false
false
414
py
import os import lib.fs import lib.jinja def client_config(**config): content = lib.jinja.render_string('client_config.js', config=config) lib.fs.update_file('client/cfg.svc.js', content) def render_html(*templates): for template in templates: html = lib.jinja.render_string(template) fi...
[ "imbolc@imbolc.name" ]
imbolc@imbolc.name
1db72aecc7397a0ab3a2ca0d82d5d917e603ddab
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/GL/VERSION/GL_1_3.py
1e3e5dde5adcef0cad7ac221ec74788633b4eb68
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
4,874
py
'''OpenGL extension VERSION.GL_1_3 This module customises the behaviour of the OpenGL.raw.GL.VERSION.GL_1_3 to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/VERSION/GL_1_3.txt ''' from OpenGL import platform, constant, arrays fro...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
aaa32c4b4bf2b4417290c5fef5fb8c6ec91f8ef8
2c45a9d0fe239c9bb5f7541a4d2cf4a30a084cfa
/week4/Lagrange_theorem.py
b7a3107db0db8f32ce0256b2a5f272b8795bba90
[ "MIT" ]
permissive
nkuraeva/python-exercises
22e71a94bbf45968978a7da9887b47adb4795fbd
45bfc179f7f3402ff32bae8e9828ec8fa24345c9
refs/heads/master
2022-07-04T11:02:37.839214
2020-05-15T09:44:31
2020-05-15T09:44:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
# Lagrange theorem realized through recursion import math n = int(input()) A = list() i = 1 N = n def Lagrange(n): global A global i if n != 0: if len(A) < 4: a = math.floor(n ** 0.5) A.append(a) n = n - a ** 2 Lagrange(n) elif len(A) == 4: ...
[ "57593042+NK-Natalia@users.noreply.github.com" ]
57593042+NK-Natalia@users.noreply.github.com
ef0290f1b16e487fc39ea435da566a1801d529f0
36568b9928866b0056e2ae8da9315cd96ae16215
/cs/lambda_cs/02_algorithms/Sprint-Challenge--Algorithms/recursive_count_th/count_th.py
7afae0c44cffc26bf5b2c1e80204b3dd9ff83dc2
[ "MIT" ]
permissive
tobias-fyi/vela
90de580a17114194273b9a655d3239c020ba8ada
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
refs/heads/master
2023-01-12T19:40:45.290898
2021-05-14T03:10:05
2021-05-14T03:10:05
218,124,737
0
0
MIT
2020-03-31T09:06:08
2019-10-28T19:07:01
null
UTF-8
Python
false
false
1,001
py
""" Algorithms :: Sprint Challenge - "th" counter Your function should take in a single parameter (a string `word`) Your function should return a count of how many occurences of ***"th"*** occur within `word`. Case matters. Your function must utilize recursion. It cannot contain any loops. """ def count_th(word: str...
[ "tobyreaper@gmail.com" ]
tobyreaper@gmail.com
d12ee7fe0dedb7375ae78740eb80181711065f15
97605f605a74403638cb27bffe5e9cf5b1054778
/Scripts/RoboFabUtils/RewriteDemoFont.py
feb49fec3499b6c1521d6921bd1aade48901da29
[ "BSD-3-Clause" ]
permissive
twardoch/robofab
9d2aa7d2acbf56b8acf7c67392d526236b0f1f18
2ea0b6201cf67be866f6b6afa9574ef7219fd140
refs/heads/master
2023-04-01T14:49:56.867518
2018-03-16T14:29:53
2018-03-16T14:29:53
111,296,889
0
0
NOASSERTION
2023-03-21T05:35:45
2017-11-19T13:18:44
Python
UTF-8
Python
false
false
883
py
"""Read all glyphs from the demo font, and write them out again. This is useful for testing round-tripping stability, but also to update the font when the GLIF format changes. The third application is to update the contents.plist file in case glyphs have been added or removed. """ import os from robofab.test.testSupp...
[ "erik@letterror.com" ]
erik@letterror.com
5ba496e32fdbc6c4b4610edc4a78da98a8eb1b1f
09884a4c4977c990b2e7ea7f4620e314545e36ed
/restful_api/views.py
b27c4de076b86c96f776adb9893bc3b7660a58d4
[]
no_license
wekesa254/restapi
560541a0ceecee258163c3ee5e755bdab45a3f01
0a205a805ef0274d10bc3446aaddd09c48642416
refs/heads/main
2023-04-23T03:07:40.607891
2020-12-31T12:36:44
2020-12-31T12:36:44
325,805,569
1
0
null
null
null
null
UTF-8
Python
false
false
4,389
py
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from rest_framework.parsers import JSONParser from .models import Article from .serializer import ArticleSerializer from django.views.decorators.csrf import csrf_exempt from rest_framework.decorators import api_view from rest_framewo...
[ "you@example.com" ]
you@example.com
3b82b650a56b8bc97f07911a2f1f6c9201e30c06
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/do/host_non_compliant_event.py
bcd3e5b2e4e408cb1b71af9f3fe4e46993777594
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,151
py
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def HostNonCompliantEvent(vim, *args, **kwargs): '''This event records that host went out...
[ "jmb@pexip.com" ]
jmb@pexip.com
7b6e9561fccf55a66cdd9c8a054237a7b14cd261
916480ae24345193efa95df013f637e0a115653b
/web/transiq/authentication/apps.py
f0f8b19adf118e71a63997b3fa270f1a239e512d
[ "Apache-2.0" ]
permissive
manibhushan05/tms
50e289c670e1615a067c61a051c498cdc54958df
763fafb271ce07d13ac8ce575f2fee653cf39343
refs/heads/master
2022-12-11T07:59:30.297259
2021-09-08T03:24:59
2021-09-08T03:24:59
210,017,184
0
0
Apache-2.0
2022-12-08T02:35:01
2019-09-21T16:23:57
Python
UTF-8
Python
false
false
178
py
from __future__ import unicode_literals from django.apps import AppConfig class AuthenticationConfig(AppConfig): name = 'authentication' verbose_name = 'User Details'
[ "mani@myhost.local" ]
mani@myhost.local
59aeff83b336b1eb6e0ecce25913a67c185755e7
63fe5eeecde055889edfa507cb05c764b6be8850
/0x01-python-if_else_loops_functions/5-print_comb2.py
5b7bb86b030b2a6e7303b501ef3c6986bb0209d0
[]
no_license
Haroldov/holbertonschool-higher_level_programming
7eecac6788578f93a18304c0fc2cfd178ead530c
0014d908c3721e2e39df81cf574c1abdb7f350b0
refs/heads/master
2020-05-18T03:15:11.928936
2019-09-24T21:27:37
2019-09-24T21:27:37
184,139,468
0
1
null
null
null
null
UTF-8
Python
false
false
134
py
#!/usr/bin/python3 for number in range(99): print("{0:d}{1:d}".format(number // 10, number % 10), end=", ") else: print("99")
[ "hvelez020@gmail.com" ]
hvelez020@gmail.com
893a845132a26b1e042367356e6d31439a1d7460
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/scattergl/error_x/_value.py
1b9c9ad0a5bf17fec2fdc88e3211fc1ec8218301
[ "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
438
py
import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="value", parent_name="scattergl.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, ...
[ "noreply@github.com" ]
hugovk.noreply@github.com
8766d61bda6a97177133060928f81fe4e9aa75eb
3345eb032afa159a5b4b32fe0b62e4435dac523f
/dingtalk/api/rest/OapiTdpTaskBasicGetRequest.py
d504026bf9da2f8d6a6f4cfcac9e407be79d7d7a
[]
no_license
xududu/dingDingApi
ada6c17e5c6e25fd00bdc4b444171b99bc9ebad7
b1e7c384eb8fb7f79f6f5a6879faadfa95d3eda3
refs/heads/master
2023-08-31T03:04:48.438185
2021-10-13T08:52:13
2021-10-13T08:52:13
416,558,271
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
''' Created by auto_sdk on 2020.12.23 ''' from dingtalk.api.base import RestApi class OapiTdpTaskBasicGetRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.microapp_agent_id = None self.task_id = None def getHttpMethod(self): return 'POST' def getapiname(self): return 'dingtal...
[ "739893589@qq.com" ]
739893589@qq.com
1dc204af03cca177b18b27f7fad375159f8521b0
9d454ae0d5dd1d7e96e904ced80ca502019bb659
/1399_countLargestGroup.py
20a249d43c95eb87253ed83c0cc39fe45fc7065a
[]
no_license
zzz686970/leetcode-2018
dad2c3db3b6360662a90ea709e58d7facec5c797
16e4343922041929bc3021e152093425066620bb
refs/heads/master
2021-08-18T08:11:10.153394
2021-07-22T15:58:52
2021-07-22T15:58:52
135,581,395
3
0
null
null
null
null
UTF-8
Python
false
false
283
py
import collections def countLargestGroup(n): groups = collections.Counter(map(lambda x: sum(map(int, str(x))) , range(1, n+1))) # group = groups.most_common() # sum(v == group[0][1] for k, v in group.items()) mx = max(groups.values()) return sum(v==mx for k,v in groups.items())
[ "1564256031@qq.com" ]
1564256031@qq.com
24c98f313c93eba60b285dd1340305049a7de582
ae798812ea0af0c929d440209cbbcd3d7cb06677
/chapter7/default_param.py
5b48b438c120903e0e39d8825bcd0d8ed324fd74
[]
no_license
liuyuzhou/python3.7sourcecode
d791a0e3ac2c85fdcd39228e005eb82aa94fdd90
ce0f8c2fd6f565ad0d8e23d6181d504c9bc45d57
refs/heads/master
2023-02-20T07:17:21.961950
2022-04-20T11:09:37
2022-04-20T11:09:37
129,906,657
46
23
null
2023-02-15T21:47:05
2018-04-17T13:11:56
HTML
UTF-8
Python
false
false
207
py
#! /usr/bin/python3 # -*- coding:UTF-8 -*- def default_param(name, age=23): print(f'hi,我叫:{name}') print(f'我今年:{age}') return default_param('小萌') default_param('小萌',21)
[ "liuyuzhou@banggood.com" ]
liuyuzhou@banggood.com
873678f48e18cff674b7aa86d6f28e515d7ec13b
e7cffb86ed2787789fc79d41bc6d846a2ccf5cdc
/coursebuilder/common/users.py
5f2b24339e99110d89be5bacf5125bf322a61113
[ "CC-BY-3.0", "Apache-2.0" ]
permissive
shan/course-builder
ca4e5dda5ed902f6323aba1894eec77b298e8444
8bdf7ffab3b3b42a87df0ead691d134d7d9d6039
refs/heads/master
2021-01-10T04:16:08.725206
2015-06-02T23:29:45
2015-06-02T23:29:45
36,749,739
0
0
null
null
null
null
UTF-8
Python
false
false
7,188
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
[ "psimakov@google.com" ]
psimakov@google.com
8ee8f808a540ccc1ed0fdfdcec5d795124959a8a
7c444608e2d8f3bfb4afdb50ace9a6d0a2514a2d
/manage.py
e44879e18b3bf3285d5de372684cb157954f86f2
[]
no_license
lukeshiner/awenarum
8272153ad7c638c1d7dbee79584cfceabbcde9e2
3967eeb1a9b19b44c35b20522a9cd983bff0da48
refs/heads/master
2021-06-11T08:24:09.021318
2016-06-25T15:08:29
2016-06-25T15:08:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
251
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "awenarum.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "luke@lukeshiner.com" ]
luke@lukeshiner.com
12249efa73a8459e8749edf9ef158c2b1e91c657
8a55f44391a843dcea11be1c8144aeb745137a4a
/flask/migrations/versions/c3832ddad82e_.py
66a982ff31b43bccf55b89ab3af42885faa5c8c0
[]
no_license
hvarg/dockerpedia
30e4592e56e16c9fa0af26fabd93dea5e2dce0fe
aa97fca3433254c17ae5ca859b4d6cc4aa527bb4
refs/heads/master
2020-03-16T10:05:01.542504
2018-08-17T04:38:27
2018-08-17T04:38:27
132,629,083
1
0
null
2018-08-16T20:00:14
2018-05-08T15:29:59
Python
UTF-8
Python
false
false
644
py
"""empty message Revision ID: c3832ddad82e Revises: 8fcba8c805b5 Create Date: 2018-05-18 20:40:33.137276 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c3832ddad82e' down_revision = '8fcba8c805b5' branch_labels = None depends_on = None def upgrade(): # ...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
789ac62cb74acb973ee1ad01b51b7711408b6d05
1fffa1e7101b7a4ecab83b8b0c1aa31683d0ff58
/Codeforces/135/a.py
8c2ae423100e5a913c56cc9cc66b4f94d6b776d3
[]
no_license
build3r/programming-contest
5c438a218bf45a5fa6725b77ff7bb4b1b9af6324
72a02e3498ecefcc731b97c7802a52f6e7c5a727
refs/heads/master
2021-01-17T21:39:47.527011
2012-11-27T21:49:46
2012-11-27T21:49:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
882
py
import sys from collections import defaultdict count = defaultdict(int) n = int(sys.stdin.readline()) s = sys.stdin.readline().strip() for c in s: count[c] += 1 def get_string(): l = len(s) result = "" for c, cnt in count.items(): if cnt % n == 0: result += c * (cnt / n) ...
[ "piotrek.kaleta@gmail.com" ]
piotrek.kaleta@gmail.com
bab8b3f5b252dfb4004e1034138d0c7da3ebc3e6
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/GL/VERSION/GL_2_1.py
35b75ae4c2761d5e1d4a874f678f523c4f565f27
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
1,728
py
'''OpenGL extension VERSION.GL_2_1 This module customises the behaviour of the OpenGL.raw.GL.VERSION.GL_2_1 to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/VERSION/GL_2_1.txt ''' from OpenGL import platform, constant, arrays fro...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
af1f4d9e4f2d85c464f41393a05e4ab5fed68075
8f7615603d4d923fd2cda41a2105b85b596ab4c5
/leetcode/medium/454-4Sum_II.py
330f23e54b8a49a9ce86d102548e87ea6ef79c94
[ "MIT" ]
permissive
shubhamoli/solutions
e7ec922047c16cfdc10070aa5b884a278b12d8c5
5a24fdeb6e5f43b821ef0510fe3b343ddda18f22
refs/heads/master
2021-01-05T04:13:35.302613
2020-06-27T18:28:18
2020-06-27T18:28:18
240,875,585
1
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
""" Leetcode #454 """ from typing import List from collections import Counter class Solution: # O(N^3) def fourSumCount_BRUTE(self, A: List[int], B: List[int], C: List[int], D: List[int]) -> int: if len(A) == len(B) == len(C) == len(D) == 0: return D_set = set(D) co...
[ "oli.shubham@gmail.com" ]
oli.shubham@gmail.com
994d3f9a907bf4db60a28922a205ef2f1a7bba42
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_enveloping.py
94b99bf79cdce3a5b77edf3e8e01480f286ede1f
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from xai.brain.wordbase.verbs._envelop import _ENVELOP #calss header class _ENVELOPING(_ENVELOP, ): def __init__(self,): _ENVELOP.__init__(self) self.name = "ENVELOPING" self.specie = 'verbs' self.basic = "envelop" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
5dbeca5ba7d5268b70f8aa69e17720e580dd0617
6413fe58b04ac2a7efe1e56050ad42d0e688adc6
/tempenv/lib/python3.7/site-packages/plotly/validators/area/marker/_color.py
53ecd04a8a899c855410c8cae0ae52fde731a60c
[ "MIT" ]
permissive
tytechortz/Denver_temperature
7f91e0ac649f9584147d59193568f6ec7efe3a77
9d9ea31cd7ec003e8431dcbb10a3320be272996d
refs/heads/master
2022-12-09T06:22:14.963463
2019-10-09T16:30:52
2019-10-09T16:30:52
170,581,559
1
0
MIT
2022-06-21T23:04:21
2019-02-13T21:22:53
Python
UTF-8
Python
false
false
549
py
import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): def __init__( self, plotly_name='color', parent_name='area.marker', **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name...
[ "jmswank7@gmail.com" ]
jmswank7@gmail.com
7b8b9ad85edd4342de8f1e262edeeef0e32455e2
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_penning.py
259fe9dc0c1da9f35842839e10558f6a4d9d2a59
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
223
py
from xai.brain.wordbase.nouns._pen import _PEN #calss header class _PENNING(_PEN, ): def __init__(self,): _PEN.__init__(self) self.name = "PENNING" self.specie = 'nouns' self.basic = "pen" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
65caa4c17174e419835d5ff3a13b779781b3cd80
a39d0d1f0e257d0fff5de58e3959906dafb45347
/Lutts/Gui/Tour/menu/menu_frm-multi.py
179da6f9cc5a12b307465cb11e3116db190a4c05
[]
no_license
Twishar/Python
998d7b304070b621ca7cdec548156ca7750ef38e
1d1afa79df1aae7b48ac690d9b930708767b6d41
refs/heads/master
2021-09-23T14:18:36.195494
2018-09-24T12:33:36
2018-09-24T12:33:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from Lutts.Gui.Tour.menu.menu_frm import makemenu from tkinter import * root = Tk() for i in range(2): mnu = makemenu(root) mnu.config(bd = 2, relief = RAISED) Label(root, bg = 'black', height = 5, width = 25).pack(expand = YES, fill = BOTH) Button(root, text='Bye', command = root.quit).pack() root.mainlo...
[ "stognienkovv@gmail.com" ]
stognienkovv@gmail.com
b3f6861db0d20f25293768964cbbdeb364e67e14
56803feaa0cbcc484d23d96240fe50013013495d
/tests/test_expression_tree/test_variable.py
173c0dc86afa0254fbbc0b9dd4e061f53ece7096
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
whiteboxbatteries/PyBaMM
bd6b65f2d91430d95607a6cb62ebaa0c3a2d2367
144cb5de79f1c9903886975c6ec0c7d4025d163d
refs/heads/master
2020-04-28T02:18:08.503033
2019-03-07T13:02:37
2019-03-07T13:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
# # Tests for the Parameter class # from __future__ import absolute_import, division from __future__ import print_function, unicode_literals import pybamm import unittest class TestVariable(unittest.TestCase): def test_variable_init(self): a = pybamm.Variable("a") self.assertEqual(a.name, "a") ...
[ "valentinsulzer@hotmail.com" ]
valentinsulzer@hotmail.com
bf624ef5b5256ecebf5bef119c37ff6feccceedc
1bff22bcc681c9024818bc2a7e453c6fe0bc1e93
/scripts/lowercase_log_nids.py
f0ce7e9b130916e4c85329b17f144d426266adb8
[ "BSD-2-Clause", "BSD-3-Clause", "LGPL-2.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
hmoco/osf.io
b1f04ab02299375ca5f1a9a2684b8bca295849a2
a02869f9b5c198bafae7cea0c216674bbcba62f7
refs/heads/develop
2020-04-05T10:15:08.544806
2017-05-09T22:18:21
2017-05-09T22:18:21
36,302,791
1
0
Apache-2.0
2018-08-13T16:03:00
2015-05-26T14:49:58
Python
UTF-8
Python
false
false
1,565
py
import sys from framework.mongo import database as db from framework.transactions.context import TokuTransaction from website.app import init_app def lowercase_nids(): for log in db.nodelog.find({'$or': [ {'params.node': {'$regex': '[A-Z]'}}, {'params.project': {'$regex': '[A-Z]'}}, {'pa...
[ "sloria1@gmail.com" ]
sloria1@gmail.com
cd89830d092bbc9630a5089cd2c83d9f90da2458
d024ccbb4cc04af3866a4db1ac1d8c1d7395d909
/boj/1166.py
c4c0b0afcacd3bc31c445394149d0dc826f68fb0
[]
no_license
demetoir/ps-solved-code
ff0418dddd10f3b053c9b8d32af48027b10c8481
f4d4fd2183176b083f2287c9d89c6d5a1e983cc5
refs/heads/master
2022-10-14T20:11:34.581439
2020-06-12T11:24:11
2020-06-12T11:24:11
68,782,768
1
0
null
null
null
null
UTF-8
Python
false
false
326
py
from decimal import * n,l,w,h=map(int,raw_input().split()) getcontext().prec=30 l,w,h=Decimal(l),Decimal(w),Decimal(h) lo=Decimal(0.0) hi=Decimal(98765432100.0) ans=Decimal(0.0) for i in range(10000): mid=Decimal((lo+hi)/2) a=(l//mid)*(w//mid)*(h//mid) if n<=(l//mid)*(w//mid)*(h//mid): lo=mid else: hi=mid prin...
[ "wnsqlehlswk@gmail.com" ]
wnsqlehlswk@gmail.com
93bb782337d16cf6ba130d5e618582c9826a1d04
a9434881d2261339fb692de8a9553020ccbd0d8c
/examples/01_add_product.py
17472baee9df3f2cad0234fb7e8c303f32d4eb8e
[]
no_license
FanapSoft/pod-product-python-sdk
49ea59d76626fb1deef7bb9fb1ac27503a5cd8c8
10ebcfad79fbfe67b1f5834f9ef7c62d2f75fd93
refs/heads/master
2021-01-02T06:21:32.289868
2020-02-29T09:43:47
2020-02-29T09:43:47
239,527,171
0
0
null
null
null
null
UTF-8
Python
false
false
8,338
py
# coding=utf-8 from __future__ import unicode_literals from pod_base import APIException, PodException from examples.config import * from pod_product import PodProduct try: pod_product = PodProduct(api_token=API_TOKEN, server_type=SERVER_MODE) print(pod_product.add_product(name="محصول تستی", price=150.08, des...
[ "rz.zare@gmail.com" ]
rz.zare@gmail.com
48aeffe1ae0e29fb63767d0f3061484f3d10eb70
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/11104124.py
44953699ab86d0ec9d165c9bbf766633fd160800
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11104124.py generated: Fri, 27 Mar 2015 16:10:18 # # Event Type: 11104124 # # ASCII decay Descriptor: [B0 -> pi+ pi- (KS0 -> pi+ pi-)]cc # from Configurables import Generation Generation().EventType = 11104124 Generation().SampleGenerationTool = "SignalRe...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
325e5756dc1b2b5a4b1ee1ca65397967cd339a76
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/2cfb30fc910ad7f40df93d8f0b9f05cb3f11cf86-<get>-fix.py
ecff0c823100c28344b61ed545f628cbf452f666
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
def get(self, key): url = ('%s/%s?recursive=true' % (self.baseurl, key)) data = None value = { } try: r = open_url(url, validate_certs=self.validate_certs) data = r.read() except: return None try: item = json.loads(data) if (self.version == 'v...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
02ac87c0a39e4eb708ebf623c7de27d3e030805c
588b28e9be045543a22f0a8ca99ba527199dc429
/chapter03/demo_3_2_3_7.py
1357513079e5c496bce8b1b20ad15c53ce75ac5e
[ "MIT" ]
permissive
NetworkRanger/python-spider-project
7404d4e36ac6a2cd70584d78dd81fec65a320628
f501e331a59608d9a321a0d7254fcbcf81b50ec2
refs/heads/master
2020-04-15T06:05:53.374965
2019-01-28T13:35:14
2019-01-28T13:35:14
164,448,396
2
0
null
null
null
null
UTF-8
Python
false
false
189
py
#!/usr/bin/python2.7 # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/1/10 上午1:33 """ Timeouts超时设置 """ import requests requests.get('http://github.com', timeout=2)
[ "17346503142@163.com" ]
17346503142@163.com
220135a5b328544a0fea760f94a2b114a64ab7de
fc1c1e88a191b47f745625688d33555901fd8e9a
/meraki_sdk/models/mapping_model.py
deceb1a47445ec4a4385c3ef00fa07154bb731f4
[ "MIT", "Python-2.0" ]
permissive
RaulCatalano/meraki-python-sdk
9161673cfd715d147e0a6ddb556d9c9913e06580
9894089eb013318243ae48869cc5130eb37f80c0
refs/heads/master
2022-04-02T08:36:03.907147
2020-02-03T19:24:04
2020-02-03T19:24:04
416,889,849
1
0
null
null
null
null
UTF-8
Python
false
false
2,088
py
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class MappingModel(object): """Implementation of the 'Mapping' model. TODO: type model description here. Attributes: dscp (int): The Di...
[ "api-pm@meraki.com" ]
api-pm@meraki.com
224931fc98c9fe5cba750912c628c6074006c9be
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/589.py
1f20ce7aa176c39401ce1a94ea62d5abcd9fc59b
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
from collections import defaultdict inf = open( 'C-large.in', 'rb' ) outf = open( 'output.txt', 'wb' ) def runCase( caseId ): n, k = inf.readline().split(' ') n = int( n ) k = int( k ) - 1 intervals = { n : 1 } total = 1 while ( total < k ): new_intervals = defaultdi...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
806b45fb9e9f8144a029d04d0269b1945558c060
d3bb10af7c7426116e3052e0d2dea44889f30ab9
/Programmers/12921.py
1b4e9ac133239f20f658feeae49ce4659d076da7
[]
no_license
limdongjin/ProblemSolving
d9c73a1481b6b225eccf26c0b3879261ed1d5c75
b3e72f270b8e47618fe546a413c33b754eedd227
refs/heads/master
2022-08-24T21:44:11.796317
2022-07-24T11:02:21
2022-07-24T11:02:21
131,372,343
1
0
null
null
null
null
UTF-8
Python
false
false
623
py
# # https://programmers.co.kr/learn/courses/30/lessons/12921 # 문제 제목: 소수 찾기 # def solution(n): if n == 2: return 1 primes = [0, 0, 1, 1] for i in range(4, n + 1): primes.append(-1) for i in range(4, n + 1, 2): primes[i] = 0 for i in range(6, n + 1, 3): primes[i] = 0...
[ "geniuslim27@gmail.com" ]
geniuslim27@gmail.com
2b2776ab09a16cb570adf6da5bd0ca2ad05b7fc4
93134d8429cc7c5251ea76e19bf1856466bd2b48
/tests/test_lstm_modules.py
a7ec7681735e5244ffbdd0fff250ca1571cd9118
[ "MIT" ]
permissive
vita-epfl/trajnetplusplusbaselines
0bd7ce75740f3ed39ba82d1bfaa5d3c279da474f
99a6e9d8675face1aeeb17227b73dd3d1267f463
refs/heads/master
2023-04-14T23:21:54.217111
2022-10-04T09:52:01
2022-10-04T09:52:01
218,013,163
221
83
MIT
2023-04-04T15:07:11
2019-10-28T09:42:36
Python
UTF-8
Python
false
false
577
py
import torch import trajnetbaselines def test_start_enc(): input_embedding = trajnetbaselines.lstm.modules.InputEmbedding(2, 4, 1.0) obs = torch.Tensor([[0.0, 0.0], [0.0, 0.0]]) # obs with two vel entries assert input_embedding.start_enc(obs).numpy().tolist() == [[0, 0, 1, 0], [0, 0, 1, 0]] def test_st...
[ "me@svenkreiss.com" ]
me@svenkreiss.com
058fe46e23a49a6dbe99ce448d5a87d2e6c619d9
696e35ccdf167c3f6b1a7f5458406d3bb81987c9
/services/tracing/DEPS
265033b684a9ce71d15493927e7121004c8a758e
[ "BSD-3-Clause" ]
permissive
mgh3326/iridium-browser
064e91a5e37f4e8501ea971483bd1c76297261c3
e7de6a434d2659f02e94917be364a904a442d2d0
refs/heads/master
2023-03-30T16:18:27.391772
2019-04-24T02:14:32
2019-04-24T02:14:32
183,128,065
0
0
BSD-3-Clause
2019-11-30T06:06:02
2019-04-24T02:04:51
null
UTF-8
Python
false
false
205
include_rules = [ "+services/service_manager/public", "+third_party/perfetto/include", "+third_party/perfetto/protos/perfetto", "+third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h", ]
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
bfdd361405183e99938348e278cac306690ecf30
73715bc42b333cfec449ffb5e4325116e0233533
/codes/model/vae.py
30481a6056693f5aae28a3f233f9df759bd56bd0
[ "MIT" ]
permissive
johndpope/Singing-Voice-Conversion-with-conditional-VAW-GAN
1058be9255fea59c7240e2f0c6ba5dcbc6f76e63
53abb1c66d29a8622d1a85e221fdcae09077186f
refs/heads/master
2022-12-05T02:28:11.627442
2020-08-12T00:07:41
2020-08-12T00:07:41
286,873,980
12
1
MIT
2020-08-12T00:04:26
2020-08-12T00:04:26
null
UTF-8
Python
false
false
4,906
py
import tensorflow as tf from tensorflow.contrib import slim from util.image import nchw_to_nhwc from util.layers import (GaussianKLD, GaussianLogDensity, GaussianSampleLayer, Layernorm, conv2d_nchw_layernorm, lrelu) # from model.wgan import GradientPenaltyWGAN class ConvVAE(object): def __...
[ "noreply@github.com" ]
johndpope.noreply@github.com
b84ef2ad46eae019e06a8c53201162bf621c7431
097f624986f3368feb8d80e065e21d80892f2cbd
/tests/parser/grounding.backjump.16.test.py
b15eceafaf50a06abb31d260923a32e732fe6805
[ "Apache-2.0" ]
permissive
veltri/DLV2
553032f03fe8004fa41e44a8ae398741a9cd499a
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
refs/heads/master
2020-04-06T07:05:01.919642
2014-10-30T11:14:43
2014-10-30T11:14:43
17,247,012
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
input = """ a(Z,P):-p(X), p(Y), #count{S:w(X,S)} = P, #count{R:r(R,Y)} = Z, 0<#count{T:s(T,Y)}<Z. p(1). p(2). w(1,1). w(2,1). w(2,2). r(1,1). r(2,1). r(0,2). r(2,2). r(3,2). r(4,2). s(1,1). s(2,1). s(2,1). s(2,2). """ output = """ a(Z,P):-p(X), p(Y), #count{S:w(X,S)} = P, #count{R:r(R,Y)} = Z, 0<#coun...
[ "veltri@mat.unical.it" ]
veltri@mat.unical.it
26898befead6485c1613d7fbb3ac9b1ff8876ee1
e39baffbade6cab7d7167cc89c663dd931769b7f
/test_ext.py
60e7ba1ad7efdd81dd728e6d97a88ae076246c78
[ "MIT" ]
permissive
vaexio/vaex-arrow-ext
1bea5cf4d11c4de5549ac490353a11042b045dd2
1257b251318f334ff938dced14931e78f56f99f3
refs/heads/master
2022-11-13T11:08:53.910388
2020-07-02T19:01:54
2020-07-02T19:01:54
276,642,625
11
3
MIT
2020-07-02T13:09:22
2020-07-02T12:39:17
C++
UTF-8
Python
false
false
546
py
import pytest import pyarrow as pa import numpy as np from vaex_arrow_ext import ext def test_madd(): a = pa.array([1, 2, 3], type=pa.float64()) b = pa.array([0, 2, 4], type=pa.float64()) c = pa.array([1, 1, 5], type=pa.float64()) assert ext.madd(a, b, c).to_pylist() == [1, 4, 23] with pytest.r...
[ "maartenbreddels@gmail.com" ]
maartenbreddels@gmail.com
6710e77503344d1e19d1003b00ea8c486c23ee53
5ae4faed34e12607930cf7294f0a4a1b3fe484d7
/code/020 Valid Parentheses.py
3b43d2e77eabd35b94b90a689395d48d84fc3745
[ "MIT" ]
permissive
Hehwang/Leetcode-Python
9c09ee838699fea471bda9a694c0248073dfa3fb
1e53d6575143aac2ea8424f3f4830f1b1eb0aaee
refs/heads/master
2022-03-27T12:42:44.089866
2020-01-08T07:44:12
2020-01-08T07:44:12
105,106,700
0
1
null
null
null
null
UTF-8
Python
false
false
474
py
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ tmpDict={'(':')','{':'}','[':']'} stack=[] for i in range(len(s)): if len(stack)==0: stack.append(s[i]) continue if stack[...
[ "565182282@qq.com" ]
565182282@qq.com
0e1f6e19c74a856d032018db8aca54262aa36278
993c39d7ed1bab5e30f7541f3309f854f704be4a
/lists/migrations/0002_auto__add_unique_item_list_text.py
a9937dc7304e23182ba4b6157c92a9f047c21294
[]
no_license
ropable/tdd-python
5e879dff50aadceafd992cc4433138011734768c
d92962535eebc0d811fbe40c04b82c65cb89df0d
refs/heads/master
2021-01-20T19:21:33.432139
2014-02-15T13:05:38
2014-02-15T13:05:38
61,597,175
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding unique constraint on 'Item', fields ['list', 'text'] db.create_u...
[ "ashley@ropable.com" ]
ashley@ropable.com
b42125cd69a01e395b850d1d8a7d2311199d3100
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_03_01/aio/_container_service_client.py
8b81c448ece2697f682f1c9d59234bb3a9efebaa
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
6,653
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" ]
test-repo-billy.noreply@github.com
f2c4bfcb59d704c2e51d6464e9747ce7b6426cd0
b646db8f8cd2bc2488caaf0aa164be2be4048a45
/kodla/apps/program/models.py
ab464ceba127ee798fa6aaf511a13ee318df3d4a
[]
no_license
alperbek/kodla-website
0b160b3d8ea9289d2f78439de41272bdc715bf73
0aef95c8d87e19883d194ae3582091d943d01405
refs/heads/master
2021-10-24T18:21:51.323042
2019-03-24T12:32:55
2019-03-24T12:35:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,935
py
# Django from django.db import models from django.utils.translation import ugettext_lazy as _ # Local Django from core.models import DateModel class Program(DateModel): date = models.DateField(verbose_name=_('Date')) description = models.CharField(verbose_name=_('Description'), max_length=256, blank=True) ...
[ "kenansubasiceng@gmail.com" ]
kenansubasiceng@gmail.com
327b9225cb3d0debb2f480b9f53a659c73f7e6fa
2da72c9f9bbb0b5db33710cddbdee28503e5a606
/pyAudio_wav_example.py
698bf46b907605d0f7ec4617ec9da99681951c90
[]
no_license
gddickinson/python_code
2e71fb22b929cb26c2a1456b11dc515af048c441
dbb20e171fb556e122350fb40e12cc76adbb9a66
refs/heads/master
2022-10-26T15:20:40.709820
2022-10-11T16:06:27
2022-10-11T16:06:27
44,060,963
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
import pyaudio import wave #import sys # length of data to read. chunk = 1024 # validation. If a wave file hasn't been specified, exit. # if len(sys.argv) < 2: # print "Plays a wave file.\n\n" +\ # "Usage: %s filename.wav" % sys.argv[0] # sys.exit(-1) ''' *******************************************...
[ "george.dickinson@gmail.com" ]
george.dickinson@gmail.com
623e259411b6feca5ce3b0980d282461f4efaaa0
1e0fd0c9aa855d9249ccdcd7c81607c73743421b
/src/scripts/lsd_fitcontinum.py
33702650ea2e6fac051029a9b26bc44606b10d5e
[]
no_license
tribeiro/LSD
b0aaf5342ffe97d8dbc1bd1b8663712e5adce88d
62a1eae9084b9df8bbd9c3cb1505145e3dd87ec2
refs/heads/master
2021-01-01T17:57:30.025753
2015-06-05T15:56:24
2015-06-05T15:56:24
35,565,607
0
0
null
null
null
null
UTF-8
Python
false
false
3,000
py
#! /usr/bin/env python ''' An experimental script to fit spectra continum using PyMC ''' __author__ = 'tiago' import sys import numpy as np from astropy.table import Table import pymc from lsd.core.continum_factory import continumFactory import logging from astropysics import spec import pylab as py def main(argv)...
[ "tiago.astro@gmail.com" ]
tiago.astro@gmail.com
29193d42c4c6b6a7207725398715ba2ea9edf8b7
09d3599c8e53b38104e96d479b2b40ac549d0bef
/Rakesh/Codility and HackerRank/non-divsors.py
00c1ae1a450b65bc8e99e495b80604097fc0ce7c
[]
no_license
rakeshsukla53/interview-preparation
54764c83c86a52c566899ec87d74dad84216764d
09355094c85496cc42f8cb3241da43e0ece1e45a
refs/heads/master
2016-09-06T02:08:50.436414
2016-02-01T00:31:52
2016-02-01T00:31:52
40,916,511
9
3
null
2015-12-31T05:00:55
2015-08-17T17:59:55
HTML
UTF-8
Python
false
false
718
py
import math import bisect def divisorGenerator(n): large_divisors = [] for i in xrange(1, int(math.sqrt(n) + 1)): if n % i is 0: yield i if i is not n / i: large_divisors.insert(0, n / i) for divisor in large_divisors: yield divisor def solution(A):...
[ "rakesh.sukla53@gmail.com" ]
rakesh.sukla53@gmail.com
9316d71c5627eb3aef85d8449e56fbcb32e6a50a
b885eaf4df374d41c5a790e7635726a4a45413ca
/LeetCode/Session3/MaximumDepth.py
613e4cf5ce14214dd2147b2bfc03cd24bb242ee2
[ "MIT" ]
permissive
shobhitmishra/CodingProblems
2a5de0850478c3c2889ddac40c4ed73e652cf65f
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
refs/heads/master
2021-01-17T23:22:42.442018
2020-04-17T18:25:24
2020-04-17T18:25:24
84,218,320
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def maxDepth(self, root: TreeNode) -> int: if not root: return 0 return 1 + max([self.maxDepth(root.left), self.maxDepth(root.right)]) ob = Solution() root...
[ "shmishra@microsoft.com" ]
shmishra@microsoft.com
61ce3144a27395ba1db587df834a0dd1f21f3761
27e3d320585bc5ff993aab33703ada61518790ef
/account_debit_credit/account_extended.py
e2237860728770710b96ad8cae2d5293103d66ff
[]
no_license
odoopruebasmp/productions_stage_venv
54f7a49f129810d22a1628f088bf19cfb50f011c
81f4f0e5b3e434183f0f8fc1923adca4c8d753d5
refs/heads/master
2023-07-15T06:49:29.230924
2021-08-23T16:15:10
2021-08-23T16:15:10
389,649,884
0
0
null
2021-08-23T16:15:10
2021-07-26T13:52:17
Python
UTF-8
Python
false
false
1,556
py
# -*- coding: utf-8 -*- from datetime import datetime, timedelta, date from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP, float_compare from openerp import addons from openerp import SUPERUSER_ID import itertools from dateutil.relativedelta import relativedelta f...
[ "soporteerp@moreproducts.com" ]
soporteerp@moreproducts.com
6901ff55c7bf5b19687eca2a1ade9bbd6e9f8052
bcc199a7e71b97af6fbfd916d5a0e537369c04d9
/leetcode/solved/384_Shuffle_an_Array/solution.py
921017e73192e3ab9d97e6509a8351b9f450d0b5
[]
no_license
sungminoh/algorithms
9c647e82472905a2c4e505c810b622b734d9d20d
1389a009a02e90e8700a7a00e0b7f797c129cdf4
refs/heads/master
2023-05-01T23:12:53.372060
2023-04-24T06:34:12
2023-04-24T06:34:12
87,406,513
0
0
null
null
null
null
UTF-8
Python
false
false
3,976
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2020 sungminoh <smoh2044@gmail.com> # # Distributed under terms of the MIT license. """ Given an integer array nums, design an algorithm to randomly shuffle the array. All permutations of the array should be equally likely as a result of t...
[ "smoh2044@gmail.com" ]
smoh2044@gmail.com
4bacc811a391de5e94d1772d4f2418fd6daa6a37
d8c50195fe04a09bd98e12f0b18a84dbe4a3dfe2
/zeus/factories/api_token.py
14365f0bb4b2bb6d81081da8aadb78cbb00ac709
[ "Apache-2.0" ]
permissive
keegancsmith/zeus
44eeac0e9c99635f21bfa7ec744c84be7b40525e
e7bfe3db564ad1bbf449d8197f7d663fe41dd60a
refs/heads/master
2021-09-04T04:34:47.747175
2018-01-12T17:24:11
2018-01-12T21:55:31
117,591,379
0
0
null
2018-01-15T20:19:57
2018-01-15T20:19:57
null
UTF-8
Python
false
false
445
py
import factory from datetime import datetime, timedelta, timezone from zeus import models from .base import ModelFactory from .types import GUIDFactory class ApiTokenFactory(ModelFactory): id = GUIDFactory() class Meta: model = models.ApiToken class Params: expired = factory.Trait( ...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
3a5590c35ff850fb71d57df415ba049d93e3f3c6
747feb7805942f15e5027864b99a4b24c4a7d569
/catkin_ws/src/levy_cs69_a2/scripts/readService.py
7f7eb50939e701381e02a22001eae279a439a4e6
[]
no_license
oliverlevy110/CS69
94a6a1daddcda4ec20de3e11900af4fb098c9676
31e17db1f2bdd5fe9a8d3e72bb9de518de1e522e
refs/heads/master
2020-05-17T21:18:47.957672
2019-05-06T04:42:46
2019-05-06T04:42:46
183,967,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,456
py
#!/usr/bin/python import time import rospy from levy_cs69_a2.msg import Signal from levy_cs69_a2.srv import FindSignalStrength """ Read the wifi signal from /turtle/signal_strength topic When receive a call from Robot(), average the signal strengths over 5 seconds and return the value """ class Read: def __init...
[ "you@example.com" ]
you@example.com
ddb84113ce4476341a61436f1712e60111dbff5a
6bce631b869a8717eed29eae186688a7fdb7f5c8
/venv/Lib/site-packages/test/test_crypto_api.py
a3e36186581401f6c70b4a32ccee30766d41ed51
[]
no_license
singhd3101/CS5100-Stock-Market-Prediction
6d43bd39633dd80bb1141dc550302874a5bc0939
2804a6270a05155e168d0f2518bcd97f1c9bcb3e
refs/heads/master
2020-11-26T03:56:02.613630
2019-12-19T02:22:13
2019-12-19T02:22:13
228,958,401
0
0
null
null
null
null
UTF-8
Python
false
false
2,461
py
# coding: utf-8 """ Intrinio API Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ...
[ "singh3101div@gmail.com" ]
singh3101div@gmail.com
c97a598981b364b574ec41c07eb8d573f93da004
9460a3d89f8d5acd525d9cde7229d56ee71d4261
/lib/engines/__init__.py
8e83f8b41f122d7438d52dd703f7c635313dcd0e
[]
no_license
opengi/Change-Clothes-ReID
4659d0717d0528b6ca03aff93dca8b201015e50d
acf4c7e36ae50117aabf8db9969c291284cffbab
refs/heads/main
2023-02-26T21:23:14.382761
2021-01-25T15:43:53
2021-01-25T15:43:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,334
py
import sys import os.path as osp from apex import amp import torch from torch import nn from lib.utils import save_checkpoint, visactmap from .trainer import Trainer from .evaluator import Evaluator from .evaluatorMarket import EvaluatorMarket from .evaluatorLTCC import EvaluatorLTCC class Engine(object): def __...
[ "jacenchen228@gmail.com" ]
jacenchen228@gmail.com
a2857c017effd563fba38ef60fbb306ca8a7afc8
bc6508a1dde1e61a8b2f61e70044c074aeeb4406
/whoiser/servers/PE.py
8e373a05563fe431f4773f93bd7fc7c1cee35fb9
[]
no_license
krikulis/whoiser
7eca72260dc061a91c7630901557264b80c5263e
27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40
refs/heads/master
2021-01-10T19:10:53.915622
2012-06-24T23:50:28
2012-06-24T23:50:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
#TODO: write implementation from servers.generic import GenericWhoisQuery class WhoisQuery(GenericWhoisQuery): server = 'kero.yachay.pe' def parse_response(self, response): return response
[ "kristaps.kulis@gmail.com" ]
kristaps.kulis@gmail.com
fd5ad83924e295825baa3f441c5f3750ecbc7be2
ab07c82d082f5f46f33937dd9638272895ffd890
/sample-apps/contacts-app/src/auth.py
9b3e15ab4ace53fdba34ff79b49ebab1e72ae395
[]
no_license
atanasiuk-hubspot/hubspot-api-python
a42d7d418664790afff0b8b11364e832855a793c
57899aa2f6f6a5320a4ba7c9c87977e1cc8a8e22
refs/heads/master
2022-06-06T04:43:06.902240
2020-05-04T07:50:05
2020-05-04T07:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
import os from flask import redirect, url_for from functools import wraps from helpers.oauth import is_authenticated as is_oauth_authenticated def is_authenticated(): if is_oauth_authenticated(): return True api_key = os.environ.get('HUBSPOT_API_KEY') return api_key is not None def auth_required...
[ "atanasiuk@hubspot.com" ]
atanasiuk@hubspot.com
8643e180348884040dc6c94423737e283f5be813
1594574e2ff0f354e588c3037cf8de7d251dad58
/downstream/voxceleb2_ge2e/model.py
bf20abd25db1d97df8821177be362e3430b77bec
[ "MIT", "CC-BY-NC-4.0" ]
permissive
OlegJakushkin/s3prl
4e5607e9acefe933364cf9d031605b9e0db450d1
c0e41f07fa56f0f79b5bf3839b4d0a4cf7c421bf
refs/heads/master
2023-06-17T05:51:32.696783
2021-07-14T19:04:41
2021-07-14T19:04:41
376,370,641
0
0
MIT
2021-06-22T19:58:10
2021-06-12T19:36:38
Python
UTF-8
Python
false
false
7,718
py
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ model.py ] # Synopsis [ the linear model ] # Author [ S3PRL ] # Copyright [ Copyleft(c), Speech Lab, NTU, Taiwan ] """**************************************...
[ "aapp1420@gmail.com" ]
aapp1420@gmail.com
003042d0d6cbd0b361de94fbbbdf4abbcea8e8e0
cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5
/programmers/정수삼각형.py
3dacbc6370c32a79868d79fca1f1e5d6c0d3e326
[]
no_license
jbsam2/algo_problem
141c17003e88a69afdeea93a723e7f27c4626fdc
18f2cab5a9af2dec57b7fd6f8218badd7de822e4
refs/heads/master
2023-05-18T10:03:00.408300
2021-06-02T10:36:50
2021-06-02T10:36:50
282,104,637
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
def solution(triangle): n=len(triangle) d=[[0]*i for i in range(1,n+1)] a=d[0][0]=triangle[0][0] for i in range(1,n): for j in range(i+1): d[i][j]+=triangle[i][j] if j==0:d[i][j]+=d[i-1][0] elif j==i:d[i][j]+=d[i-1][i-1] else:d[i][j]+=max(d[i-1][j-...
[ "kbsam2@gmail.com" ]
kbsam2@gmail.com
ea03ae5d750c6f4ed385b0d0ef05128e8079435d
61673ab9a42f7151de7337608c442fa6247f13bb
/tkinter/thread-queue/main .py
948fcf9e8135c1420a8b6952fabff0f752de64a0
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
1,042
py
import threading import tkinter as tk from tkinter import messagebox import time import queue def running(queue): for x in range(5): text = 'message ' + str(x) print('PUT:', text) queue.put(text) time.sleep(4) queue.put('last') def check_queue(): global t tex...
[ "furas@tlen.pl" ]
furas@tlen.pl
f51de7a4a5261e9f21ca069746ad1c1e4843f3ee
09cead98874a64d55b9e5c84b369d3523c890442
/py210110c_python1a/day15_210418/input_ex_leonj.py
d17197ca856c1155709ed5adecc2fd78ca3afd5d
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
""" Leonj """ print("=== Login Form ===") username = input('Please enter your username:') # input ('please enter your password') password = input('Please enter your password:') number = input('Please enter your number:') print("Welcome back, ", username, "!") print("=== Done, ===")
[ "lada314@gmail.com" ]
lada314@gmail.com
ae410138192e057c6e99539c766851b0d90c4ff5
113b962bd5e2eb770067bd374a15dfe8a1c2d09f
/py_scripts/pyplot/seq_length_boxplot3.py
b80bc5ee8068dfd7615c95715e72e9a3c47e3253
[]
no_license
aungthurhahein/biotech_script
ecce51950bcef69405843da12ece2f84ea5541d6
2fda699343e6c46543fa1df2412c8ca2f2622cda
refs/heads/master
2020-12-24T06:20:13.028141
2016-07-06T15:23:34
2016-07-06T15:23:34
25,574,741
5
0
null
null
null
null
UTF-8
Python
false
false
2,904
py
__author__ = 'Aung' import numpy as np import plotly.plotly as py from plotly.graph_objs import * il_pe_path = "/home/aung/server_downloads/all_lngth/" il_mira_path = "/home/aung/server_downloads/length_distribution/PV/SRA_Lvannamei/PE_MIRA/" trinity_1 = np.genfromtxt(il_pe_path+"1.txt") trinity_2 = np.genfromtxt(il_...
[ "aungthurhahein@gmail.com" ]
aungthurhahein@gmail.com
9286e3f397757a04855417295a893f4f618c84ec
d6b0b087b9ddc636e51bae2c1b14631a29f1c72d
/Exercise22.py
01360564161c6ba6aec5f6739f05b68d8c378f05
[]
no_license
ErenBtrk/PythonRegularExpressionsExercises
5ac1dc18e17dc7c25c9c64bb02f32c335d2f8e8f
6c53da125ed6167b6eaac99c78e762b36f1b1f92
refs/heads/master
2023-05-15T10:15:02.015947
2021-06-06T16:33:19
2021-06-06T16:33:19
374,325,364
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
''' 22. Write a Python program to find the occurrence and position of the substrings within a string ''' import re str1 = "Hello World.This is yarasa reis calling.yarasa" result = re.finditer("yarasa",str1) for match in result: print(match.group(),match.span())
[ "=" ]
=
4cb0cb4a8fbdad79facd28213642e7fa88a8abbb
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/3560.py
ffff0eeb115962dd186a46688afaf803c56a1b64
[]
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
695
py
#!usr/bin/python import re def negate(a): return "+" if a == "-" else "-" n = int(raw_input()) for line in range(n): flips = 0 cakes, size = str(raw_input()).split(" ") cakes = [str(i) for i in cakes] size = int(size) #print str(size) + " |", for char in range(len(cakes) - (size - 1)):...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
31dfcbcfd2d3e863ccf514aaa530bde14b9313a1
ea22929e5bf39e685e08587cc71b1b3b76eea421
/db/add_department.py
480f7be2ee654cfcac50ff0ee4007d1a8cc7c808
[]
no_license
srikanthpragada/PYTHON_02_AUG_2018_DEMO
533d5e4aa67bb3d0405458bcb256398842e93f81
fa7f9be2d5b6ede07576a93f7ae78f69b5b6ac04
refs/heads/master
2020-03-25T06:50:02.606434
2018-09-04T12:32:32
2018-09-04T12:32:32
143,526,487
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
import sqlite3 try: con = sqlite3.connect(r"e:\classroom\python\aug2\hr.db") cur = con.cursor() # take input from user name = input("Enter department name :") loc = input("Enter department location :") cur.execute("insert into departments(deptname,location) values(?,?)", (...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
2808dc9b064b7fb0eb9aa91a916447a08d897d8c
7387b73d06e61e90d5acc07f8a9b7716f6c247a0
/HW4/fashion_template.py
eea026843691cce1f32d5cef5d192cf795fd2300
[]
no_license
aobo-y/uva-ml
fd69f5360224889bacfc3e430e0070c60fb00049
97fe90817c85751fc60a2c9a170b072617d8a614
refs/heads/master
2020-07-24T15:23:32.938099
2020-02-17T23:12:37
2020-02-17T23:12:37
207,968,136
0
1
null
null
null
null
UTF-8
Python
false
false
4,569
py
# Machine Learning Homework 4 - Image Classification __author__ = '**' # General imports import numpy as np import matplotlib.pyplot as plt from sklearn.utils import shuffle from sklearn.model_selection import GridSearchCV import os import sys import pandas as pd # Keras import keras from keras.models import Sequent...
[ "yangaobo@gmail.com" ]
yangaobo@gmail.com
689255d438ceaf1ba2e77f27b115a9438c4d0bc2
b63e42047081bc2be186d506bc08417cd13d547c
/rice/deps/prompt_toolkit/input/defaults.py
fb0ae01f0ac777f0f8fdb1c905e6489fb5884f43
[ "MIT" ]
permissive
Arrendi/rice
dbd999aa632b4dacae10c6edd18c3eb31fd3ffde
5bebd14556127613c9af4ac3fc1f95063110077d
refs/heads/master
2021-08-28T15:25:49.239846
2017-12-12T15:56:51
2017-12-12T15:56:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
from __future__ import unicode_literals from prompt_toolkit.utils import is_windows from prompt_toolkit.eventloop.context import TaskLocal, TaskLocalNotSetError from .base import Input import sys __all__ = ( 'create_input', 'get_default_input', 'set_default_input', ) def create_input(stdin=None): std...
[ "randy.cs.lai@gmail.com" ]
randy.cs.lai@gmail.com
aedd5b064848059b576e3778b9a5e65d82e59f29
9848a719ddfdd21b5fe1fa2f55da290c0f6952dc
/3sum-closest.py
8cd5c9b109d9ae0dc42e1bf56559faee30a3e5b6
[]
no_license
maomao905/algo
725f7fe27bb13e08049693765e4814b98fb0065a
84b35ec9a4e4319b29eb5f0f226543c9f3f47630
refs/heads/master
2023-03-13T12:38:55.401373
2021-03-25T01:55:48
2021-03-25T01:55:48
351,278,248
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
""" 3sum -> sort O(NlogN) and two pointers O(N^2) -> N * hashset 2sum O(N) -> it cannot apply to this problem (closest) sort O(NlogN) and two pointers O(N^2) [-1,2,1,-4] -> sort [-4,-1,1,2] -4 fixed -1 + 2 = -3 < 1 left +1 1 + 2 = -1 > 1 right -1 left==right x -> best is -1 -1 fixed 1 +...
[ "maoya.sato@gmail.com" ]
maoya.sato@gmail.com
2e8e440bae9ecb36d9b160640e885a07bfc24466
e23a4f57ce5474d468258e5e63b9e23fb6011188
/140_gui/pyqt_pyside/_exercises/_templates/PyQt5/Chapter02_Event Handling - Signals and Slots/calldemoSpinner.pyw
0a53c16f757222c02303e761e32e6b9db94c4942
[]
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
877
pyw
# _____ ___ # # ____ ?.?W.. _____ ?D.., ?A.. # # ____ demoSpinBox _____ _ # # c_ MyForm ?D.. # ___ - # s__. - # ui _ ? # ?.sU.. # ?.sBBQ__.eF__.c.. ?1 # ?.dSBSW__.eF__.c.. ?2 # s.. # # ___ result1 # __ le. ?.lEBP__.t.. !_0 # bookPrice_in. ?.lE...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
47edab51795807f5caf82730ca4660e96302d7f4
f87f51ec4d9353bc3836e22ac4a944951f9c45c0
/.history/HW04_20210712135951.py
181fa00086ba23d7ce2fb32684a252e914019a7e
[]
no_license
sanjayMamidipaka/cs1301
deaffee3847519eb85030d1bd82ae11e734bc1b7
9ddb66596497382d807673eba96853a17884d67b
refs/heads/main
2023-06-25T04:52:28.153535
2021-07-26T16:42:44
2021-07-26T16:42:44
389,703,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,660
py
""" Georgia Institute of Technology - CS1301 HW04 - Lists and Tuples Collaboration Statement: """ ######################################### """ Function Name: roadTrip() Parameters: state (str), list of tuples (list) Returns: list of crops (list) """ ######################################### #####...
[ "sanjay.mamidipaka@gmail.com" ]
sanjay.mamidipaka@gmail.com
b345b9d12dd1b84f498c2040ba8181948a0858e2
29dcd6c3475acde11bfc8dd7b6826ffddb40e1ab
/week3Python/Week3/RightFacingArrow.py
9f2e5dd54b4ba4b4b7d6e1a91b519b4b5c550e18
[]
no_license
quangdbui9999/CS-171
24ca7f7f27847c7b729d74b2c85abc0464cd8c1a
963b2e83e6939703ca2b7617941e5fc04d374570
refs/heads/master
2022-09-18T13:11:38.619101
2020-06-07T22:51:51
2020-06-07T22:51:51
270,453,427
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
base_char = input() head_char = input() row1 = ' ' + head_char row2 = base_char * 5 + head_char * 2 row3 = base_char * 5 + head_char * 3 row4 = base_char * 5 + head_char * 2 row5 = ' ' * 5 + head_char ''' Type your code here. ''' print(row1) print(row2) print(row3) print(row2) print(row1)
[ "noreply@github.com" ]
quangdbui9999.noreply@github.com
3b40a86a9ca030a453233b61a0121df7d77b1e71
c917004bdd665903338c3115bd6821fc7208242b
/python1/factorial.py
9466f56b102ba48d0105a779d96871f127df68ee
[]
no_license
paulrefalo/Python-2---4
408ad018ccc8161b801031f8d15df2154c5d25cb
049c654ed626e97d7fe2f8dc61d84c60f10d7558
refs/heads/master
2021-01-10T05:30:25.502795
2016-02-19T02:08:39
2016-02-19T02:08:39
52,054,382
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
#!/usr/local/bin/python3 """Print all factorials less than 1000.""" c = 1 f = 1 while (f < 1000): print(f) c += 1 f *= c
[ "paul.refalo@gmail.com" ]
paul.refalo@gmail.com