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
e06edc9ef4206d01ba268cd77e82b51af3988588
00f3468d8917ac0c1b4df8b4dc50e82c0d9be3fa
/seqsfromfasta.py
f7aa0be287db92eee1959c13a03c700c3416c9e7
[]
no_license
berkeleyphylogenomics/BPG_utilities
4e332bb401b8c057502a1a0a1d532396bfff9542
bbf5df137a0a459598c3f9073d80f0086e5f7550
refs/heads/master
2021-01-01T19:21:13.740575
2014-11-05T18:40:31
2014-11-05T18:40:31
24,867,074
1
0
null
null
null
null
UTF-8
Python
false
false
572
py
#!/usr/bin/env python from Bio import SeqIO def seqpull(h, *args): #should use 'any' in py > 2.3 return ''.join([seq.format('fasta') for seq in SeqIO.parse(h,'fasta') \ if sum([seq.id.count(arg) for arg in args])]) if __name__ == '__main__': import sys if len(sys.argv) < 3: print "%s: get...
[ "afrasiabi@berkeley.edu" ]
afrasiabi@berkeley.edu
0de765120183e963c96ef35cf7a5098d79f772b4
21e5825959a886787a3915ff0d3efa86d9cd3702
/combat/finishers/impale.py
7b32166eb2c800a2409971f38f6bb0c6ea4ef7f5
[ "MIT" ]
permissive
ChrisLR/Python-Roguelike-Template
e0df37752907377e606197f2469fda61202129d5
9b63742b0111c7e9456fb98a96a3cd28d41a1e10
refs/heads/master
2021-06-26T07:48:39.215338
2017-09-14T21:46:08
2017-09-14T21:46:08
69,761,175
0
0
null
2017-09-14T21:46:09
2016-10-01T20:09:24
Python
UTF-8
Python
false
false
2,188
py
from combat.enums import DamageType from combat.finishers.base import Finisher from echo import functions from util import gridhelpers class Impale(Finisher): name = "Impale" description = "Impale your enemy with a slashing or piercing weapon." attacker_message = "You impale {defender}'s {defender_bodypar...
[ "arzhul@gmail.com" ]
arzhul@gmail.com
145ae6eef5a9c9e0b2b158275aa8d8b2b504fd31
58df224689ab08c99359b1a6077d2fba3728dc61
/lamda-ocr/merge-files/borb/pdf/canvas/font/simple_font/true_type_font.py
c0b6112c2b259f0d2c80c3ef2231a518f87ed377
[]
no_license
LIT-Midas/LITHackathon
2b286728c156d79d3f426f6d19b160a2a04690db
7b990483dd48b91cf3ec3452b78ab67770da71af
refs/heads/main
2023-08-13T05:22:59.373965
2021-08-16T01:09:49
2021-08-16T01:09:49
395,024,729
0
1
null
null
null
null
UTF-8
Python
false
false
13,861
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The TrueType font format was developed by Apple Computer, Inc., and has been adopted as a standard font format for the Microsoft Windows operating system. Specifications for the TrueType font file format are available in Apple’s TrueType Reference Manual and Microsoft’s...
[ "trevordino@gmail.com" ]
trevordino@gmail.com
0fd9070e7532c771b9766a91098a73150dfb5d01
d308fffe3db53b034132fb1ea6242a509f966630
/pirates/leveleditor/worldData/shipUndeadInterceptor3.py
acc6d9d173dd1413dd886408aaa47773ffbce77e
[ "BSD-3-Clause" ]
permissive
rasheelprogrammer/pirates
83caac204965b77a1b9c630426588faa01a13391
6ca1e7d571c670b0d976f65e608235707b5737e3
refs/heads/master
2020-03-18T20:03:28.687123
2018-05-28T18:05:25
2018-05-28T18:05:25
135,193,362
3
2
null
null
null
null
UTF-8
Python
false
false
3,664
py
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.shipUndeadInterceptor3 from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Objects...
[ "33942724+itsyaboyrocket@users.noreply.github.com" ]
33942724+itsyaboyrocket@users.noreply.github.com
106b49f1d09d2c07ec615d4ff6eada48156bac0f
ed3c924c42baa3ab825a482efc15f85a32c06eaa
/boj16649.py
471eee9a27c32f61b4009e52d88b52912bb2b19c
[]
no_license
JoinNova/baekjoon
95e94a7ccae51103925e515d765ebda7b6fffeed
33b900696ecf2a42b8e452fdeae6ee482143e37e
refs/heads/master
2020-04-16T22:25:31.577968
2019-04-28T04:25:24
2019-04-28T04:25:24
165,966,949
2
0
null
null
null
null
UTF-8
Python
false
false
469
py
#boj16649 Building a Stair def stair(cube): cnt=cube row=(cube+1)//2 print(row+1) pic='.'*(row+1)+'\n' for i in range(row): for j in range(row): if j==0 or i==row-1: pic+='o';cnt-=1 elif cube%2==0 and i==row-2 and j==1: pic+='o';cnt-=1;...
[ "noreply@github.com" ]
JoinNova.noreply@github.com
3f861b0b4904d9b72b34ade2c2fae8f9932ec493
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/testData/inspections/GoogleDocStringRemoveKeywordVararg.py
2ff1604bc7d53ec8b7c1992b258b97e54edb35a8
[ "Apache-2.0" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
57
py
def f(): """ Args: **kwar<caret>gs: """
[ "mikhail.golubev@jetbrains.com" ]
mikhail.golubev@jetbrains.com
65e9e8ebbf9a9682f5fb9acfd790fad23e123824
99e44f844d78de330391f2b17bbf2e293bf24b1b
/pytorch/caffe2/quantization/server/group_norm_dnnlowp_op_test.py
b6acc900437ce89c4bd5c4ea17a400c9b8d47839
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
raghavnauhria/whatmt
be10d57bcd6134dd5714d0c4058abd56a1b35a13
c20483a437c82936cb0fb8080925e37b9c4bba87
refs/heads/master
2022-12-04T05:39:24.601698
2019-07-22T09:43:30
2019-07-22T09:43:30
193,026,689
0
1
MIT
2022-11-28T17:50:19
2019-06-21T03:48:20
C++
UTF-8
Python
false
false
4,517
py
from __future__ import absolute_import, division, print_function, unicode_literals import collections import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as np from caffe2.python import core, dyndep, utils, workspace from caffe2.quantization.server import utils as dnnlowp_u...
[ "rnauhria@gmail.com" ]
rnauhria@gmail.com
2095829a72d1af19ee231c7ec670bf65766c274d
fd625e2ea155455c96261c8656a51be22fe420c8
/Python/euler035.py
4400059a3e93b485f3924881b3fe16cd51c435bb
[ "MIT" ]
permissive
AnuragAnalog/project_euler
9b84a6aa0061ad4582c8d0059c3c1eaddd844fd2
8babbefbd5b7008ad24509f24a9d5f50ba208f45
refs/heads/master
2021-12-12T12:07:29.338791
2021-11-01T04:26:44
2021-11-01T04:26:44
210,749,964
6
16
MIT
2021-11-01T04:26:45
2019-09-25T03:44:37
Python
UTF-8
Python
false
false
1,240
py
#!/usr/bin/python3 """ The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13, 17, 31, 37, 71, 73, 79, and 97. How many circular primes are there below one million? """ import numpy as n...
[ "anurag.peddi1998@gmail.com" ]
anurag.peddi1998@gmail.com
1cb72016f9c456c6294bdc18ee3bb15e889e96e0
fcb7030ae6da44d6f36a9a166a614952a66937db
/11 user's functions/03 - max 2.py
b7b20317783541603811f5a4b06304305483c54f
[]
no_license
Immaculated/educational_basic
4b931bb515343a67bf2132a9b97c029c8b8e7e4c
8ef0de14f0acc12ac172dcaf0ece8bd81b6ade83
refs/heads/main
2023-04-22T01:22:54.999075
2021-05-02T05:38:26
2021-05-02T05:38:26
320,326,316
2
0
null
null
null
null
UTF-8
Python
false
false
68
py
def max_two(a,b): return a if a > b else b print(max_two(3,5))
[ "noreply@github.com" ]
Immaculated.noreply@github.com
a7114ae73b29642ae1b3b76a8eca40595de9439d
df7f13ec34591fe1ce2d9aeebd5fd183e012711a
/hata/discord/embed/embed/tests/test__parse_author.py
fb71e365acb11fa7c73817ca0ef5c02ff77884b6
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
HuyaneMatsu/hata
63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e
53f24fdb38459dc5a4fd04f11bdbfee8295b76a4
refs/heads/master
2023-08-20T15:58:09.343044
2023-08-20T13:09:03
2023-08-20T13:09:03
163,677,173
3
3
Apache-2.0
2019-12-18T03:46:12
2018-12-31T14:59:47
Python
UTF-8
Python
false
false
481
py
import vampytest from ...embed_author import EmbedAuthor from ..fields import parse_author def test__parse_author(): """ Tests whether ``parse_author`` works as intended. """ author = EmbedAuthor(name = 'hell') for input_data, expected_output in ( ({}, None), ({'author': Non...
[ "re.ism.tm@gmail.com" ]
re.ism.tm@gmail.com
df22c26d03c9eb5404718fa0aee45e5b9bfd5116
9b422078f4ae22fe16610f2ebc54b8c7d905ccad
/xlsxwriter/test/comparison/test_image01.py
81559d51c09a291a0dd6ef1c9b9f4f8d5f70ee88
[ "BSD-2-Clause-Views" ]
permissive
projectsmahendra/XlsxWriter
73d8c73ea648a911deea63cb46b9069fb4116b60
9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45
refs/heads/master
2023-07-21T19:40:41.103336
2023-07-08T16:54:37
2023-07-08T16:54:37
353,636,960
0
0
NOASSERTION
2021-04-01T08:57:21
2021-04-01T08:57:20
null
UTF-8
Python
false
false
1,149
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org # from ..excel_comparison_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
d3553bdebfba88789aa4678fd67bb97396e9767d
79fa6f3a9c0c07b2768b5c67d48cd2d3ada921c7
/kikimr/public/api/protos/draft/persqueue_error_codes_pb2.py
97b818110b3a6a275934558ce54cac8287566409
[ "Apache-2.0" ]
permissive
clumpytuna/ydb-python-sdk
8dd951a532045587fcba1d541b3fb8798c358318
f09d8db19f62032738ed77dabb3672c3e0f86cc3
refs/heads/master
2023-06-09T22:38:29.747969
2021-06-30T08:09:14
2021-06-30T08:09:14
319,103,389
0
0
NOASSERTION
2020-12-06T18:32:35
2020-12-06T18:32:34
null
UTF-8
Python
false
true
6,378
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: kikimr/public/api/protos/draft/persqueue_error_codes.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descrip...
[ "arcadia-devtools@yandex-team.ru" ]
arcadia-devtools@yandex-team.ru
002efcfadbaaadc2cad01fb292a4a4ad65565a90
ca3a1b6386e44f8222b0f9d93dcb382027d26018
/choix/ep.py
a457f2efc0712505ba7e9b6db3a815a10f126aac
[ "MIT" ]
permissive
pkrouth/choix
80ef6fceaffbbc618fb6496217f4e077b3d8e6d4
05a57a10bb707338113a9d91601ca528ead7a881
refs/heads/master
2020-04-27T15:34:29.404796
2018-08-08T13:17:01
2018-08-08T13:17:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,314
py
import functools import numpy as np import numpy.random as nprand from numpy.linalg import norm from math import exp, log, pi, sqrt # Faster than numpy equivalents. from scipy.misc import logsumexp from .utils import normal_cdf, inv_posdef, SQRT2, SQRT2PI # EP-related settings. THRESHOLD = 1e-4 MAT_ONE = np.array...
[ "lucas@maystre.ch" ]
lucas@maystre.ch
82e5f74cb9e4d564e4c9db40175c77111f664934
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5630113748090880_1/Python/Hichamdz38/b.py
ec503006a405070048db8b02218200889a3eaef9
[]
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
309
py
import numpy as np for i in xrange(1,input()+1): N=input() z=np.array(N**2*2-N) SS=[] for j in xrange(N*2-1): S=map(int,raw_input().split()) SS.extend(S) f=[] for j in SS: if SS.count(j)%2!=0: if j not in f: f.append(j) f.sort() print "Case #{}:".format(i), for j in f: print j, print
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
4570d38cc342698b9f5e6bcaaca77a8459c0408c
b385fc2f18bbb43ec1bca1606b62ae83f33dcb2d
/Programming-Basics/While Loop/Sequence 2k+1/Sequence 2k+1.py
d1b977f06e673eb316811f75cd6f44e4799f9e5f
[]
no_license
rishinkaku/Software-University---Software-Engineering
d9bee36de12affc9aed7fcc0b8b6616768340e51
b798a0c6927ef461491c8327451dd00561d836e4
refs/heads/master
2023-06-10T19:52:51.016630
2021-07-08T00:45:06
2021-07-08T00:45:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
n = int(input()) i = 1 while True: print(i) i = 2 * i + 1 if i > n: break
[ "66394357+DimAntDim@users.noreply.github.com" ]
66394357+DimAntDim@users.noreply.github.com
9f2797f7ec61e1beba2df83d4671a275d44af30c
a0c53168a4bdcfb0aa917d6d2c602f0999443a10
/projexui/widgets/xcalendarwidget/xcalendarscene.py
6f9462a72e6858bc49065498b0206a2d26eb0e3a
[]
no_license
kanooshka/DPS_PIPELINE
8067154c59ca5c8c9c09740969bb6e8537021903
df2fcdecda5bce98e4235ffddde1e99f334562cc
refs/heads/master
2021-05-24T04:32:03.457648
2018-09-07T13:25:11
2018-09-07T13:25:11
29,938,064
3
2
null
2020-07-23T23:06:37
2015-01-27T22:26:01
Python
UTF-8
Python
false
false
19,573
py
#!/usr/bin/python """ Defines a calendar widget similar to the ones found in outlook or ical. """ # define authorship information __authors__ = ['Eric Hulser'] __author__ = ','.join(__authors__) __credits__ = [] __copyright__ = 'Copyright (c) 2011, Projex Software' __license__ ...
[ "kanooshka@gmail.com" ]
kanooshka@gmail.com
b9be26523a79e0ed4ebc0819a2cf4003d2b1ee59
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02838/s053367568.py
d3c49f223dc225bd9cca1700aa01ef3296ab9707
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
# coding: utf-8 import sys #from operator import itemgetter sysread = sys.stdin.buffer.readline read = sys.stdin.buffer.read #from heapq import heappop, heappush #from collections import defaultdict sys.setrecursionlimit(10**7) #import math #from itertools import product, accumulate, combinations, product #import bisec...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4fd3ad15ddd33c92cdffecb72052595b15ddd601
4beabdb5089e3284251dcaf046366c35d3afe02f
/rectangles.py
06768e5dd0cb13903384183826b1e5920a411701
[]
no_license
AndrewFendrich/Mandelbrot
c3fa2b1463d6e01b91ac0a3c53ef88c8e1716641
074ebd9028c13a9f840c2436ab2c8c3d2275dbf6
refs/heads/master
2021-01-13T00:52:24.060863
2017-05-08T14:30:02
2017-05-08T14:30:02
50,623,517
1
0
null
null
null
null
UTF-8
Python
false
false
212
py
# -*- coding: utf-8 -*- """ Created on Fri Nov 27 23:25:48 2015 @author: User """ import pygame pygame.init() rectangle = pygame.Rect(50,50,100,100) print(rectangle) rectangle.inflate_ip(2,2) print(rectangle)
[ "admin@admin.com" ]
admin@admin.com
80a1c18f8e69671ebde216c7d4f3665ff8b2181b
b281dd9e711d737579745914c6611d8cfaddb07d
/phones_media_files_demo/phones_media_files_demo/phones/migrations/0001_initial.py
c64a49f588e99ab5a1c3d237694ae76464f853d7
[ "MIT" ]
permissive
Beshkov/Python-web-fundamentals
daf76f3765cb56e02bdaba8ea7df675990dd3885
6b0e9cc9725ea80a33c2ebde6e29f2ab585ab8d9
refs/heads/main
2023-08-03T07:04:22.238320
2021-09-12T18:57:36
2021-09-12T18:57:36
392,644,888
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
# Generated by Django 3.2.6 on 2021-08-06 20:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Phone', fields=[ ('id', models.BigAutoField...
[ "alexander.beshkov@gmail.com" ]
alexander.beshkov@gmail.com
54b5f81c202a4a9d48f25271d4ba743e2e4d049f
4015e9d9cc72889b3494ae8b58e81dc507ae8d31
/venv/Lib/site-packages/celery/bin/beat.py
faddd256a6bad3001f11a3074518b1a34db1463b
[]
no_license
Unlimit78/Test_For_DevelopsToday
675676d3a477f590485722019bc1b1e1412b3926
dc4e4ae887edf243adaca3a03c5fd3209ee60300
refs/heads/master
2022-12-17T18:41:33.511674
2020-09-15T18:13:53
2020-09-15T18:13:53
295,706,782
0
0
null
null
null
null
UTF-8
Python
false
false
3,625
py
# -*- coding: utf-8 -*- """The :program:`celery beat` command. .. program:: celery beat .. seealso:: See :ref:`preload-options` and :ref:`daemon-options`. .. cmdoption:: --detach Detach and run in the background as a daemon. .. cmdoption:: -s, --schedule Path to the schedule database. Defaults to `c...
[ "taras_ilyashchuk161@ukr.net" ]
taras_ilyashchuk161@ukr.net
936b7b10e86cdeeaefe0e6f870ba20839b804f3d
04a0614b8c2a893dab29bc4ffb0aaf82364fdf3f
/53. Maximum Subarray.py
2fd8f5e141461dfc091e452ab1ffef6fc179a75e
[]
no_license
sharmaji27/Leetcode-Problems
716bcb4a36b9e4f45274c4d551967e15c40ddbd2
0f878933b17df170c18f0b67b7200cec76c276e0
refs/heads/master
2021-10-20T17:35:35.175757
2021-10-20T05:33:17
2021-10-20T05:33:17
218,299,755
1
1
null
null
null
null
UTF-8
Python
false
false
367
py
class Solution: def maxSubArray(self, nums: List[int]) -> int: if len(nums)==1: print(nums[0]) global_max = nums[0] current_sum = nums[0] for i in range(1,len(nums)): current_sum = max(current_sum+nums[i],nums[i]) global_max = max(curre...
[ "asharma70420@gmail.com" ]
asharma70420@gmail.com
21d3e4137877c5c962c0a372bcf51516c5d5cab3
32233acff831abdd290f4168a982b694f9f95393
/src/util.py
5aa9b1fda0b49ea8cf671313917c63a379a0a966
[]
no_license
CarsonScott/onlinestats
e2dfa7ceca21e99b828eb1fd0149fc34e2b9c2ce
48a8024a4c5c0f8ddbc7ec4f1b1eef3485ae95e7
refs/heads/master
2020-04-26T22:36:06.471611
2019-03-06T22:02:45
2019-03-06T22:02:45
173,877,356
7
0
null
null
null
null
UTF-8
Python
false
false
103
py
import math from copy import copy def iterable(X): return isinstance(X, list) or isinstance(X, tuple)
[ "carsonjscott14@gmail.com" ]
carsonjscott14@gmail.com
fcfdfb2bf143fbabd9e7882777ff096eaec7745c
eeee18e2769766c550fb5e0948977a016b48e15a
/Creational/abstract-factory.py
72d108161a2fa85440dac2ece3f9d6bf79735986
[]
no_license
MoeinGhbh/DesignPattern
19aff7bd09f4161d11af2662b1be7962fb692989
b543a5c4eaf9da1341f95e9c777310d4f25ddeaf
refs/heads/master
2022-11-18T17:49:56.101880
2020-07-22T07:54:23
2020-07-22T07:54:23
266,117,271
0
0
null
null
null
null
UTF-8
Python
false
false
1,740
py
""" Abstract Factory Car => Benz, Bmw => Suv, Coupe benz suv => gla, glc bmw suv => x1, x2 benz coupe => cls, E-class bmw coupe => m2, m4 """ from abc import ABC,abstractclassmethod class Car(ABC): @abstractclassmethod def call_suv(self): pass @abstractclassmethod def call_coupe...
[ "=" ]
=
99a2478cea3c8d541d34c24dfcb9bc4ca59b0605
73b8aba05ee1424f38a8598a9f1305185588075f
/0x04-python-more_data_structures/9-multiply_by_2.py
6a475a580fe3f50723c6e049968a98f01637a6dd
[]
no_license
nicolasportela/holbertonschool-higher_level_programming
0d176c0e56f4f703c1e9a98b430fc6120f22f675
e1537b81f21118456e5cfa0e4ed89520b232adb6
refs/heads/master
2023-04-20T21:30:22.693434
2021-05-13T01:47:30
2021-05-13T01:47:30
319,397,633
1
0
null
null
null
null
UTF-8
Python
false
false
153
py
#!/usr/bin/python3 def multiply_by_2(a_dictionary): new_dic = {} for k, v in a_dictionary.items(): new_dic[k] = v * 2 return new_dic
[ "2103@holbertonschool.com" ]
2103@holbertonschool.com
aa2ad8ba0ff14340d3d7d30cd9b8fb24c00f071c
6820e74ec72ed67f6b84a071cef9cfbc9830ad74
/plans/tasks.py
22acd6cb6cb911b7571adefb4585bd699ce306c6
[ "MIT" ]
permissive
AppforallHQ/f5
96c15eaac3d7acc64e48d6741f26d78c9ef0d8cd
0a85a5516e15d278ce30d1f7f339398831974154
refs/heads/master
2020-06-30T17:00:46.646867
2016-11-21T11:41:59
2016-11-21T11:41:59
74,357,925
0
0
null
null
null
null
UTF-8
Python
false
false
3,047
py
from celery import task from django.utils import timezone from datetime import timedelta import requests import json class EndpointNotAvailabe(Exception): pass def call_external_endpoint_to_update_status(the_task, action, subscription): payload = {"uuid": subscription.uuid, "plan": subscriptio...
[ "hi@appforall.ir" ]
hi@appforall.ir
753271955f78deae3afbada6c0d93276ade8e340
03bca281c8bb3ba69c3a01252cc7c9e35cd675bd
/django/DCC/dccApp/migrations/0001_initial.py
63c611642310e159928a36aac3c2066355be6090
[]
no_license
satish15625/pythonwork
380fef04170064aef8aeb919a4e30f65db9a097f
12d776152689a84f1560d08f35987f8ca4ea3fb0
refs/heads/master
2023-07-07T15:12:48.355226
2021-08-13T06:33:13
2021-08-13T06:33:13
374,058,740
0
0
null
null
null
null
UTF-8
Python
false
false
562
py
# Generated by Django 3.0.7 on 2020-12-15 12:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='UploadImages', fields=[ ('id', models.AutoF...
[ "kumarsatish@dryicelabs.com" ]
kumarsatish@dryicelabs.com
4eec63edb5849bedfb3c1094f0944238a960f578
a81d84fdb57e1b90812fc5b5b523685ba5b663c0
/python/2021_04/Question0769.py
648c3a58f644d02e661df59e3decc996ad812c3d
[]
no_license
KujouNozom/LeetCode
1919081001126924daa7549493a0823702631a37
4de1e601274de1336d669e41f732a8cb056880b9
refs/heads/master
2023-07-17T12:17:45.156451
2021-09-04T11:57:40
2021-09-04T11:57:40
268,075,373
3
0
null
null
null
null
UTF-8
Python
false
false
516
py
# 769. 最多能完成排序的块 [双指针] from typing import List class Solution: def maxChunksToSorted(self, arr: List[int]) -> int: min_value, max_value, start = 10, -1, 0 ans = 0 for index in range(len(arr)): min_value = min(min_value, arr[index]) max_value = max(max_value, arr[in...
[ "438767738@qq.com" ]
438767738@qq.com
8e902e4e628a8d138844e6ee81c87d0dc785a0b1
4674b8088ffdf55905d44995f08a0792a3e4cd5c
/tests/hwsim/test_monitor_interface.py
bfc9a1562ff2e5c9fb7ee4dc4b08dfa12334195f
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
vanhoefm/krackattacks-scripts
41daca791638a92aa4cfa68a582e46119037560e
4b78669686f74efe664c6543b1b5b1616b22f902
refs/heads/research
2022-10-29T20:21:11.512335
2022-10-16T18:44:41
2022-10-16T18:44:41
107,408,514
2,184
577
NOASSERTION
2021-07-06T12:43:49
2017-10-18T12:58:08
C
UTF-8
Python
false
false
3,271
py
# AP mode using the older monitor interface design # Copyright (c) 2013, Jouni Malinen <j@w1.fi> # # This software may be distributed under the terms of the BSD license. # See README for more details. from remotehost import remote_compatible import logging logger = logging.getLogger() import time import hwsim_utils i...
[ "j@w1.fi" ]
j@w1.fi
efc0ff16e064e56e714719076065e0481806106e
951e433b25a25afeea4d9b45994a57e0a6044144
/LeetCode/Q187_HM_findRepeatedDnaSequences.py
4be93e56f1f5ce25527e7b244bc6bc2c45797d72
[]
no_license
EricaEmmm/CodePython
7c401073e0a9b7cd15f9f4a553f0aa3db1a951a3
d52aa2a0bf71b5e7934ee7bff70d593a41b7e644
refs/heads/master
2020-05-31T14:00:34.266117
2019-09-22T09:48:23
2019-09-22T09:48:23
190,318,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,045
py
# 重复的DNA序列 # 所有 DNA 由一系列缩写为 A,C,G 和 T 的核苷酸组成,例如:“ACGAATTCCG”。在研究 DNA 时,识别 DNA 中的重复序列有时会对研究非常有帮助 # 编写一个函数来查找 DNA 分子中所有出现超多一次的10个字母长的序列(子串)。 # # 示例: # 输入: s = "AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT" # 输出: ["AAAAACCCCC", "CCCCCAAAAA"] class Solution(object): def findRepeatedDnaSequences(self, s): """ :type...
[ "1016920795@qq.com" ]
1016920795@qq.com
6c172d1d135b205d3134c570b5fea04025c05ba2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02578/s304732693.py
fd8ac3cded43971a72e3cf659d1486c121afa2f5
[]
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
234
py
n = int(input()) input_line = input().split() member = [int(input_line[i]) for i in range(n)] stands = 0 for i in range(1,n): stand = member[i-1] - member[i] if stand > 0: stands += stand member[i] += stand print(stands)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b594ea5d9c012feedfb6dd74228118ce0300906b
8d9318a33afc2c3b5ca8ac99fce0d8544478c94a
/Books/Casandra DB/opscenter-5.1.0/lib/py/html5lib/treebuilders/__init__.py
50c8deeb08c187d8b51fcfdcb742e414c6ee52ab
[]
no_license
tushar239/git-large-repo
e30aa7b1894454bf00546312a3fb595f6dad0ed6
9ee51112596e5fc3a7ab2ea97a86ec6adc677162
refs/heads/master
2021-01-12T13:48:43.280111
2016-11-01T22:14:51
2016-11-01T22:14:51
69,609,373
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:b2a0b8030b4449b4e227ef389f48544f1136f27d0fc657128ee58812e529f7d3 size 4478
[ "tushar239@gmail.com" ]
tushar239@gmail.com
dda213c37af2f9c9c79342b1e51e552411080ec5
49ab501632b0a8336058406e7daa3afce6be6e93
/python_server/run_keras_server.py
14a25f5c8f258346bcedf3cf308c98eb4e1fbf53
[]
no_license
CharlesFauman/meme_server
3ab73e9788b9fea26f6ea270563381515d4b0d47
75b0d6fc041c1e2b04e260e9eecbff160225a0f6
refs/heads/master
2020-03-25T08:58:32.780593
2018-08-05T19:24:58
2018-08-05T19:24:58
143,640,946
0
0
null
null
null
null
UTF-8
Python
false
false
4,029
py
# USAGE # Start the server: # python run_keras_server.py # Submit a request via cURL: # curl -X POST -F image=@jemma.png 'http://localhost:5000/predict' # Submita a request via Python: # python simple_request.py # import the necessary packages import numpy as np from threading import Thread import flask import redi...
[ "you@example.com" ]
you@example.com
8f9536c2451f1c553693aed0b4015a05647789bf
4b95aeb2533f0a582cea2fb26d6177e94aabb21f
/2020/src/lobby_layout.py
3bba605d05757a8dc9695996a0304392f18ef81b
[]
no_license
MarcoBurgos/advent_of_code
0d9984e0fa47f68e52ef0f5cdf7681e23767bd16
81ac54bfe200cc348efbe860bd95aae4270f03b7
refs/heads/main
2023-02-09T14:40:38.204271
2020-12-26T00:09:36
2020-12-26T00:09:36
317,739,393
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
import sys from utils import read_and_load_input VECTORS = { 'w' : (-4, 0), 'e' : ( 4, 0), 'nw': (-2, -3), 'ne': ( 2, -3), 'sw': (-2, 3), 'se': ( 2, 3), } def parse(line): result = [] while line: stepLength = 1 if line[0] in ('e', 'w') else 2 result.append(line[:s...
[ "marko_burgos@gmail.com" ]
marko_burgos@gmail.com
7ce9f25d9e4a88e41687b206e6a0bd9b74daa432
d89a482aaf3001bbc4515f39af9ba474e1ae6062
/trex/trex_output.py
f0d835f8b948280acec5897964ce1cb142978ed3
[]
no_license
hongtao510/u_tool
2925e3694aba81714cf83018c3f8520a7b503228
98c962cfb1f53c4971fb2b9ae22c882c0fae6497
refs/heads/master
2021-01-10T20:40:24.793531
2014-03-14T22:57:37
2014-03-14T22:57:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,924
py
# -*- coding: utf-8 -*- # TREX import os os.environ['DJANGO_SETTINGS_MODULE']='settings' #from trex import trex_input import webapp2 as webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext.webapp import template import numpy as np import cgi import cgitb cgitb.enable() from trex i...
[ "hongtao510@gmail.com" ]
hongtao510@gmail.com
04c0a9aa06b8567653908c8159d470bb3be89b2d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/5468.py
063e5c8d196c9bfcca7a5d638432897002ca1793
[]
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
290
py
dirt=[] k=1 t=input() for j in range(t): n=input();w=n while(w): c=0;g=n%10 n=w;q=(n)%10;m=-2 while(n): d=n%10 if c>=1: if q<d: break q=d;n/=10; c+=1;g=d if n==0: dirt.append(w) break w=w-1 for i in dirt: print "Case #{0}: {1}".format(k,i) k+=1
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
a5ddd507e15815aaad86ceaaa47e2a295133f13d
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/devices/v20160203/list_iot_hub_resource_keys.py
42ce719ca651ad316e0363197087b52eff4ffe47
[ "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
3,383
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
e7f28841c3cab7b1b034f5d0de68744734459162
f8c35a47c7199aed0747e91e5c36ec97e7543de1
/custom/icds_reports/management/commands/generate_migration_tables.py
868e4fe59a2acf305643ee8eed39d62f19f82f18
[]
no_license
dr-aryone/commcare-hq
13a3f2a39382e3f6fe1f19d6c08bb61b808c146d
3e7e09247fc8d1246ccfc77c1fff8603c9f65228
refs/heads/master
2020-05-27T14:29:48.923458
2019-05-26T00:01:33
2019-05-26T00:01:33
188,650,727
2
1
null
2019-05-26T07:03:18
2019-05-26T07:03:18
null
UTF-8
Python
false
false
6,056
py
from __future__ import absolute_import, print_function from __future__ import unicode_literals import logging import re import sqlite3 from django.core.management import CommandError from django.core.management.base import BaseCommand from sqlalchemy import inspect as sqlinspect from corehq.apps.userreports.models i...
[ "skelly@dimagi.com" ]
skelly@dimagi.com
19aab88df7aec32b7971ae1f9f4d9863c192e9e8
965fe92b03b37d2e6fa700281c4ef383fb104ada
/sciencebeam_trainer_delft/sequence_labelling/debug.py
53a1befadf92215d50210611fddba0ded0508508
[ "MIT" ]
permissive
elifesciences/sciencebeam-trainer-delft
1591bebb7f5b9ed178329f4e9e02a9d893ab228d
2413fe7f0801869208741e4ab6c4096db8d53b5e
refs/heads/develop
2022-05-20T21:55:13.210432
2022-03-28T17:32:31
2022-03-28T17:32:31
192,557,708
5
1
MIT
2022-03-28T17:33:14
2019-06-18T14:34:50
Python
UTF-8
Python
false
false
3,133
py
import os import logging import time from contextlib import contextmanager from pathlib import Path from typing import IO, Iterator, Optional import numpy as np from sciencebeam_trainer_delft.sequence_labelling.tag_formatter import ( TagOutputFormats, format_tag_result ) LOGGER = logging.getLogger(__name__)...
[ "noreply@github.com" ]
elifesciences.noreply@github.com
d4ee6961649aca8865294008a94b35181bbe50bc
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/14/03/5.py
44713545f4a1f6d56fb33b4f7f95aaa4764dea56
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,620
py
def trans(a): return map(lambda x: ''.join(list(x)), zip(*a)) def can(r, c, m): if r > c: r, c = c, r safe = r * c - m if r == 1 or safe == 1: return True elif r == 2: return safe % 2 == 0 and safe >= 4 else: return not safe in [2, 3, 5, 7] def solve(r, c, m): if n...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
b6176db9cf906b94b069180306ba7dc935c84b19
4061f9f2a7dc2acde4c4c630fbe10ac8f5913f5d
/user/views.py
6059ac2806bf2a9c4bcdc72bc67893bae2b34d3b
[]
no_license
eibrahimarisoy/tasty_dishes
8b9db3129c4d670f71a9e64025b25f51646c9e36
ddfa3286bca06e153fbbd1e1a0d914c9f31d008e
refs/heads/master
2022-12-04T00:45:55.607207
2020-04-03T09:42:31
2020-04-03T09:42:31
252,424,641
0
0
null
2022-11-22T05:27:25
2020-04-02T10:29:54
JavaScript
UTF-8
Python
false
false
4,511
py
from django.contrib import messages from django.contrib.auth import authenticate, login, logout, update_session_auth_hash from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth.models import User from django.shortcuts import get_object...
[ "eibrahimarisoy@gmail.com" ]
eibrahimarisoy@gmail.com
fa3f5466ad8bcab2dadb823615e08fc9e14db94a
c0795000de54a26956efe1a87afba507bb328b81
/docs/conf.py
ccd96e7307cb1b7e20bed096c7eb0dfae85de6c9
[ "MIT" ]
permissive
steinitzu/beets
ff6c24d9e072b3d86f889e2b9af66a6ca2374d09
1fbbe6154698ce50f1a7e8d32af9a6376e2c7ede
refs/heads/master
2021-01-16T20:26:07.732280
2013-02-28T18:43:02
2013-02-28T18:43:02
7,949,551
1
0
null
null
null
null
UTF-8
Python
false
false
972
py
AUTHOR = u'Adrian Sampson' # -- General configuration ----------------------------------------------------- extensions = [] #templates_path = ['_templates'] exclude_patterns = ['_build'] source_suffix = '.rst' master_doc = 'index' project = u'beets' copyright = u'2012, Adrian Sampson' version = '1.1' release = '1....
[ "adrian@radbox.org" ]
adrian@radbox.org
2ea747e7a97063f59f0d0d4584ff5c12e534398b
90deb98bd63bdc0f08d80954d3edb3a277e63cd1
/arq/jobs.py
1d4c756caae0842df1a7973d086f698534b73085
[ "MIT" ]
permissive
filmor/arq
93a97852eb2aa554ce2c6d548fcfa7dac35b74b4
f0b4b8b4db2df0c950069f98d5d62c104912e48d
refs/heads/master
2020-03-13T21:08:36.514480
2018-01-10T15:36:23
2018-01-10T15:36:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,365
py
""" :mod:`jobs` =========== Defines the ``Job`` class and descendants which deal with encoding and decoding job data. """ import base64 import os from datetime import datetime import msgpack from .utils import DEFAULT_CURTAIL, from_unix_ms, timestamp, to_unix_ms_tz, truncate __all__ = ['JobSerialisationError', 'Job...
[ "s@muelcolvin.com" ]
s@muelcolvin.com
f7b3033abbffc59bb77ce0801784a595aa9821d1
4be5c172c84e04c35677f5a327ab0ba592849676
/python/leetcode/unique_paths_ii/unique_paths_ii.py
3cdf92f1c359c3b7d2a6b32488d8026d34b9638a
[]
no_license
niranjan-nagaraju/Development
3a16b547b030182867b7a44ac96a878c14058016
d193ae12863971ac48a5ec9c0b35bfdf53b473b5
refs/heads/master
2023-04-06T20:42:57.882882
2023-03-31T18:38:40
2023-03-31T18:38:40
889,620
9
2
null
2019-05-27T17:00:29
2010-09-05T15:58:46
Python
UTF-8
Python
false
false
3,955
py
''' https://leetcode.com/problems/unique-paths-ii/ 63. Unique Paths II A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' ...
[ "vinithepooh@gmail.com" ]
vinithepooh@gmail.com
9cf5ec04d45c55aa2d077d17107a6832fd095729
f8166c72c0514f39ff4fc6bbb3d56ac2d8089fb0
/whileInput.py
46d75a3531d93d86855555c132488e21d76b1ddc
[]
no_license
KahlilMonteiro-lpsr/class-samples
5f2a1dd68971b0c5ad342c709454493275f6138a
6ed5e8fa37ca2bda53f4bc387a829a97d20b8f2c
refs/heads/master
2021-01-18T22:08:13.251542
2016-06-08T22:07:53
2016-06-08T22:07:53
48,007,815
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
# purposely an infinite loop myInput = "LPS" while myInput != "leave": myInput = raw_input() print("You said: " + myInput)
[ "lps@lps-1011PX.(none)" ]
lps@lps-1011PX.(none)
9c916129fe72fbdc76aaf2997d9bbdfa460fd235
de54e5ddf4d350176d70c2bb1501b878285a18b8
/fpn.py
04a74603728490c73565dff2f7b4854aee3e9411
[]
no_license
lizhe960118/find-star
e1d73b78b29087ca2e83990354b96b7406eaedf4
e233dca4fe9a5faf6df9b6a4e0b2f29a7eb096b0
refs/heads/master
2020-05-18T10:55:52.008399
2019-05-01T03:49:32
2019-05-01T03:49:32
184,363,943
1
0
null
null
null
null
UTF-8
Python
false
false
6,390
py
'''RetinaFPN in PyTorch.''' import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class Bottleneck(nn.Module): expansion = 4 def __init__(self, in_planes, planes, stride=1): super(Bottleneck, self).__init__() self.conv1 = nn.Conv2d(in_planes, ...
[ "2957308424@qq.com" ]
2957308424@qq.com
b96bfac9435a26fb0dac083564d3a9020962e566
e4d4149a717d08979953983fa78fea46df63d13d
/Week8/Day1/projects/animals_project/manage.py
a880c80321ea81b2c1b015e806c82f0971f83302
[]
no_license
fayblash/DI_Bootcamp
72fd75497a2484d19c779775c49e4306e602d10f
a4e8f62e338df5d5671fd088afa575ea2e290837
refs/heads/main
2023-05-05T20:55:31.513558
2021-05-27T06:48:40
2021-05-27T06:48:40
354,818,813
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'animals_project.settings') try: from django.core.management import execute_from_command_line exc...
[ "fayblash@gmail.com" ]
fayblash@gmail.com
95ad4fd20d715d2b592087416dd9db29358e23b9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02407/s580407099.py
11041f9012ef0a39f8fbc696d88e6c36fe254b03
[]
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
173
py
n = int(input()) a = list(map(int,input().split())) a.reverse() for i,elem in enumerate(a): if i != 0: print (" ", end='') print (elem, end='') print ('')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
37416ae207a95ca269005d08f020dd3f0e703430
14de7abd1267122ad128c130f45ff86a087ed5cd
/nlp/match_blocks.py
7e4efbe57c5b3b8a5ce86ca674e74a43cecd808f
[ "MIT" ]
permissive
saurabhXcode/tf-attentive-conv
64124c470acdb26125680d903cc97ae1cc68a4b9
8dcc403575392c8e5c6c287432272a781410c49c
refs/heads/master
2020-04-12T12:21:35.091291
2018-08-11T00:26:44
2018-08-11T00:26:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,308
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Han Xiao <artex.xh@gmail.com> <https://hanxiao.github.io> import tensorflow as tf from nlp.encode_blocks import CNN_encode from nlp.nn import linear_logit, dropout_res_layernorm def AttentiveCNN_match(context, query, context_mask, query_mask, sc...
[ "hanhxiao@tencent.com" ]
hanhxiao@tencent.com
827370360a0c207ac6273117c06be4bf6b0b163e
882be627c49870ae6f2f81963a3cfc9b719c0011
/wscript
601c17dd013a3c54bc088dbbc86fb37531affd98
[]
no_license
brettviren/cogs
794142a04c87ce148e939f8ded852dfa1f6df9bc
681d1ed7e12cd2e7469a5ba3fd7261dc4f8f4c26
refs/heads/master
2022-11-30T12:26:19.624956
2020-08-10T12:34:44
2020-08-10T12:34:44
273,746,410
0
1
null
2020-08-10T12:34:45
2020-06-20T16:40:57
JavaScript
UTF-8
Python
false
false
2,954
#!/usr/bin/env waf VERSION='0.0.0' APPNAME='cogs' import os.path as osp def options(opt): opt.load('compiler_cxx') opt.load('waf_unit_test') opt.add_option('--quell-tests', action='store_true', default=False, help='Compile but do not run the tests (default=%default)') opt.add_option...
[ "brett.viren@gmail.com" ]
brett.viren@gmail.com
cdc237084299675f5c218544154e89c2be810335
980434e03e722eaf3a5ff4ab4f1971c8d1cde4c5
/宝石与石头.py
a2ae90f7262a28b814a440bfe3b1d2cf7a48bc01
[]
no_license
arry-lee/arryleetcode
c9c548b0defc9771e4e488b3e760809364456c99
b4b9b971ec81a921cca606dfa46ea4109d975dfb
refs/heads/master
2020-07-26T14:11:27.645307
2019-09-15T23:31:09
2019-09-15T23:31:09
208,670,826
1
0
null
null
null
null
WINDOWS-1252
Python
false
false
172
py
#±¦Ê¯Óëʯͷ #2019-08-17 06:20:13 class Solution: def numJewelsInStones(self, J: str, S: str) -> int: return len([stone for stone in S if stone in J])
[ "arry_lee@qq.com" ]
arry_lee@qq.com
d21ab71fd92fd043000de53f2cc733961ddbb79f
2e2843ead0186fca5f124743395cf1f65f8e579f
/father/urls.py
5cec4ad8f2d3b6e146074d7c02489928bf232b00
[]
no_license
django-spain/django-father-rest-framework
5ce003569d3bdc3d7873de791c25e4a98b6ae57c
0dd1cd61dd1a624f0baa27320fc99388ca7ca620
refs/heads/master
2022-02-21T23:02:23.972257
2019-08-27T00:45:11
2019-08-27T00:45:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
"""father URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based ...
[ "falconsoft.3d@gmail.com" ]
falconsoft.3d@gmail.com
ced152ee74e1836bdeb08bcfe32e146b988939d7
556db265723b0cc30ad2917442ed6dad92fd9044
/tensorflow/python/training/experimental/mixed_precision_global_state.py
6f0a179db65b1ebb31c2cbc1265eaf71b2a09fd6
[ "MIT", "Apache-2.0", "BSD-2-Clause" ]
permissive
graphcore/tensorflow
c1669b489be0e045b3ec856b311b3139858de196
085b20a4b6287eff8c0b792425d52422ab8cbab3
refs/heads/r2.6/sdk-release-3.2
2023-07-06T06:23:53.857743
2023-03-14T13:04:04
2023-03-14T13:48:43
162,717,602
84
17
Apache-2.0
2023-03-25T01:13:37
2018-12-21T13:30:38
C++
UTF-8
Python
false
false
2,635
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
09018e0be0d1189db97fad7103f982719fe99170
e25b917f2f0ce28f6d046afaa9c0faddf0aeae34
/Tutorials/split_and_merging.py
0e4d372a63ff7e204d74bc9d502e062c6df0682b
[]
no_license
pmusau17/ComputerVision
d9344c22ed1fe1bf8a8c6166a060c307c08529a5
2fcdce0a967567c15232fe3c9f02982ca95e5796
refs/heads/master
2020-12-11T00:30:20.292943
2020-06-03T21:54:36
2020-06-03T21:54:36
233,751,710
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
import numpy as np import argparse import cv2 #create argument parser ap=argparse.ArgumentParser() ap.add_argument('-i','--image', required=True) args=vars(ap.parse_args()) #load the image image=cv2.imread(args['image']) (B,G,R)=cv2.split(image) #this will display each of the channels as grayscale cv2.imshow("Red"...
[ "pmusau13ster@gmail.com" ]
pmusau13ster@gmail.com
17237a95039c4b7a5d68f70a91b7049b857dfa02
52b5773617a1b972a905de4d692540d26ff74926
/.history/kmp_20200716201539.py
c0ccf11ea7faea0cd681296187ca576428e15267
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
''' Given a text txt[0..n-1] and a pattern pat[0..m-1], write a function search(char pat[], char txt[]) that prints all occurrences of pat[] in txt[]. You may assume that n > m. ''' def pattern(txt,pat): # Catepillar algorithm # we have a left and right pointer # then the length of the search string ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
d6db78cbc8e88ec12c049d25fffbbe429655373c
c22b9c7c4a854ed985e777bcbecd18870439b334
/byteofpy/file.py
b2c51954e6226494b8066a0e68daaff28ff6f548
[ "BSD-3-Clause" ]
permissive
pezy/python_test
ceb35a8a63ca8ebe26ffa5c72ace664718c7b328
b019a0d9f267b5071c37fc85c9acaf27e9146625
refs/heads/master
2021-01-19T01:09:20.820202
2016-07-30T08:35:15
2016-07-30T08:35:15
18,096,404
0
2
null
null
null
null
UTF-8
Python
false
false
415
py
poem = '''\ Programming is fun When the work is done if you wanna make your work also fun: use Python! ''' # Open for writing f = open('poem.txt', 'w') # Write text to file f.write(poem) f.close() # If no mode is specified # Read mode is assumed by default f = open('poem.txt') while True: line = f.readline() ...
[ "urbancpz@gmail.com" ]
urbancpz@gmail.com
6809085f9885e6f57126dab2ff54953c84d4801d
77aa8c9213cfb5c44c2d62579b7e92f64a479800
/player9.py
d5a6ef4b0c069ffa2b1b79aeed242fbdf9e6d372
[]
no_license
aiswarya98/programs
9761f0ab0cb5c7b93e34f7ed534af012a9bfffdb
96ffb4c3b0c32ea54bd769bfa4c728ac9710bb5a
refs/heads/master
2020-06-13T23:58:37.756727
2019-08-14T05:03:51
2019-08-14T05:03:51
194,829,076
0
3
null
null
null
null
UTF-8
Python
false
false
114
py
x,y=map(str,input().split()) a=x.lower() b=y.lower() z=a[0].upper()+a[1:] q=b[0].upper()+b[1:] print(z,q,end=' ')
[ "noreply@github.com" ]
aiswarya98.noreply@github.com
2d5ee23a8cba0fea02e4f205bafc24f5c98fc027
375e5bca82843647941068bd7634cf7adf2015ca
/tests/test_transforms_resize_modulo_pad_crop.py
f72a33b918735569e106f2221c7a10a6e1392d92
[ "MIT" ]
permissive
civodlu/trw
cd57e7bded7fdb0a9d623ed9cd50645fab96583b
11c59dea0072d940b036166be22b392bb9e3b066
refs/heads/master
2023-02-08T09:56:39.203340
2023-02-07T14:22:16
2023-02-07T14:22:16
195,147,670
12
2
MIT
2020-10-19T15:24:11
2019-07-04T01:19:31
Python
UTF-8
Python
false
false
1,864
py
import unittest import trw import torch import numpy as np class TestTransformsResizeModuloPadCrop(unittest.TestCase): def test_crop_mode_torch(self): batch = { 'images': torch.rand([2, 3, 64, 64], dtype=torch.float32) } tfm = trw.transforms.TransformResizeModuloCropPad(60) ...
[ "civodlu@gmail.com" ]
civodlu@gmail.com
a6159c8300fb0b87abae3a18443aa2a0f5289589
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02909/s153186210.py
30d874e36f07b14826fef70e4615890c76d5b77a
[]
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
96
py
s=input() if s=="Sunny": a="Cloudy" elif s=="Cloudy": a="Rainy" else: a="Sunny" print(a)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
03a3ca057562ab99e7a7f7fa9b400e945b6c94f8
2293c76c3d18e2fcd44ded90bd40113d26285663
/pyeccodes/defs/grib2/tables/14/4_2_0_1_table.py
f018e05360c37820a130d303e43efa4aad77138d
[ "Apache-2.0" ]
permissive
ecmwf/pyeccodes
b1f121dbddf68d176a03805ed5144ba0b37ac211
dce2c72d3adcc0cb801731366be53327ce13a00b
refs/heads/master
2022-04-23T10:37:40.524078
2020-04-18T06:30:29
2020-04-18T06:30:29
255,554,540
9
3
null
null
null
null
UTF-8
Python
false
false
11,096
py
def load(h): return ({'abbr': 0, 'code': 0, 'title': 'Specific humidity', 'units': 'kg/kg'}, {'abbr': 1, 'code': 1, 'title': 'Relative humidity', 'units': '%'}, {'abbr': 2, 'code': 2, 'title': 'Humidity mixing ratio', 'units': 'kg/kg'}, {'abbr': 3, 'code': 3, 'title': 'Precipitab...
[ "baudouin.raoult@ecmwf.int" ]
baudouin.raoult@ecmwf.int
2ebcefcec2c64fbf9f76368c9e52f2c4f6031297
1a80c38ea020a8b18bb2c61b55caff8a38f553b9
/SWEA/sol/5356.py
ad8db3bcc47a8c35ae33aab7759fffd9c7fb8cff
[]
no_license
jiwookseo/problem-solving
775a47825dc73f8a29616ef7011e8ee7be346f80
eefbefb21608ae0a2b3c75c010ae14995b7fc646
refs/heads/master
2020-04-19T03:11:02.659816
2019-08-14T08:59:06
2019-08-14T08:59:06
167,926,883
1
0
null
null
null
null
UTF-8
Python
false
false
275
py
for tc in range(1, int(input())+1): s = [input() for _ in range(5)] l = [len(i) for i in s] ml = max(l) temp = "" for c in range(ml): for r in range(5): if l[r] > c: temp += s[r][c] print("#{} {}".format(tc, temp))
[ "spjo21@naver.com" ]
spjo21@naver.com
952f0ccca47807b4540c47e2a8a72c32c763961a
a8a5772674e62beaa4f5b1f115d280103fd03749
/persistence.py
00a776c4f7564a2e7aae6994a1f3c1b497b94024
[]
no_license
tahentx/pv_workbook
c6fb3309d9acde5302dd3ea06a34ad2aee0de4b7
08912b0ef36a5226d23fa0430216a3f277aca33b
refs/heads/master
2022-12-12T20:39:35.688510
2021-03-30T03:20:54
2021-03-30T03:20:54
172,827,250
0
1
null
2022-12-08T16:47:39
2019-02-27T02:25:24
Python
UTF-8
Python
false
false
188
py
n = 38941 value = [int(x) for x in str(n)] persist = value[0] * value[1] next_value = [int(x) for x in str(persist)] persist_again = next_value[0] * next_value[1] print(str(persist_again)
[ "hendricks.ta@gmail.com" ]
hendricks.ta@gmail.com
05f6da044977d12f49574500ccb24d84c43ab32d
88ae8695987ada722184307301e221e1ba3cc2fa
/third_party/webdriver/pylib/selenium/webdriver/common/desired_capabilities.py
0f97e7273aeda07105d9a8c34258dad8554e9e60
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later" ]
permissive
iridium-browser/iridium-browser
71d9c5ff76e014e6900b825f67389ab0ccd01329
5ee297f53dc7f8e70183031cff62f37b0f19d25f
refs/heads/master
2023-08-03T16:44:16.844552
2023-07-20T15:17:00
2023-07-23T16:09:30
220,016,632
341
40
BSD-3-Clause
2021-08-13T13:54:45
2019-11-06T14:32:31
null
UTF-8
Python
false
false
2,994
py
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "jengelh@inai.de" ]
jengelh@inai.de
7d4aaa5e2ea4a2279deba143f873f693f7394bc4
c5148bc364dac753c0872bd5676027a30b260486
/biosteam/_facility.py
be6ea781f47ebbbb09b743864d6630a54816bf2b
[ "MIT", "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ecoent/biosteam
86f47c713a2cae5d6261b6c2c7734ccf7a90fb4e
f1371386d089df3aa8ce041175f210c0318c1fe0
refs/heads/master
2021-02-24T14:10:23.158984
2020-03-05T03:43:17
2020-03-05T03:43:17
245,433,768
1
0
NOASSERTION
2020-03-06T13:59:27
2020-03-06T13:59:26
null
UTF-8
Python
false
false
270
py
# -*- coding: utf-8 -*- """ Created on Sat Jul 13 02:24:35 2019 @author: yoelr """ from ._unit import Unit __all__ = ('Facility',) class Facility(Unit, isabstract=True, new_graphics=False): @property def system(self): return self._system
[ "yoelcortes@gmail.com" ]
yoelcortes@gmail.com
6d031f1f4dcbd9c766182a6e3f257ba19b599a3e
562d4bf000dbb66cd7109844c972bfc00ea7224c
/addons-clarico/clarico_product/model/__init__.py
ab1cc71c7f627b65c753c486e16b42d63d131315
[]
no_license
Mohamed33/odoo-efact-11-pos
e9da1d17b38ddfe5b2d0901b3dbadf7a76bd2059
de38355aea74cdc643a347f7d52e1d287c208ff8
refs/heads/master
2023-03-10T15:24:44.052883
2021-03-06T13:25:58
2021-03-06T13:25:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
from . import product_template from . import website from . import res_config
[ "root@vmi414107.contaboserver.net" ]
root@vmi414107.contaboserver.net
ef4ace6d77e93557af3874532ced9981d737fdd6
a5a4cee972e487512275c34f308251e6cc38c2fa
/examples/Ni__eam__born_exp_fs__postprocessing/CCA_param_clusters_in_qoi_space/configuration/configure_qoi_pca_transform.py
7c3b9ff7b710945bd9e4fc499cce2f5621fb418b
[ "MIT" ]
permissive
eragasa/pypospack
4f54983b33dcd2dce5b602bc243ea8ef22fee86b
21cdecaf3b05c87acc532d992be2c04d85bfbc22
refs/heads/master
2021-06-16T09:24:11.633693
2019-12-06T16:54:02
2019-12-06T16:54:02
99,282,824
4
1
null
null
null
null
UTF-8
Python
false
false
2,110
py
from collections import OrderedDict from pypospack.pyposmat.data.pipeline import PyposmatPipeline pipeline_configuration = OrderedDict() # define first segment (normalization) pipeline_configuration[0] = OrderedDict() # int keys indicate step number pipeline_configuration[0]['segment_type'] = 'preprocess' pipeline_co...
[ "seatonullberg@gmail.com" ]
seatonullberg@gmail.com
777b2f147135a023870de3cce3193786a5c9b525
55f60b7ec448eb48b75118b01b3878c8345242bb
/tests/scripts/waf-tools/f_guidelines/__init__.py
de2b6d8f5507598e6072beabb216d9c336060fc1
[ "BSD-3-Clause", "CC-BY-4.0" ]
permissive
dd-rrc-ps/foxbms-2
cd8d272afa24187c85c6fa747226bebed4cefc5e
555704a9c4af3dd1c2213e6f0be9860f34e2b1b3
refs/heads/master
2023-08-18T13:49:42.503755
2021-10-21T12:15:09
2021-10-21T12:15:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,136
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # # Redistribution and use in source and binary forms, with or without # modification, are permitted provid...
[ "info@foxbms.org" ]
info@foxbms.org
2ae2ad897bb8822cbdc7b5ce0e30b526761062cd
00cb5907750926f1a9b0fde97301f10d01f49645
/tf_quant_finance/experimental/local_stochastic_volatility/local_stochastic_volatility_model.py
0502cc8f587b533bfd4c7c39c011e4add8ee24ea
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-generic-cla" ]
permissive
dannyb2018/tf-quant-finance
63761e4a39b615da6a5258e48030d2b12a142b26
668b4fb0f91b1f60c9015cef087b3e879ee2a4f7
refs/heads/master
2023-07-07T20:00:59.529305
2021-08-18T13:05:11
2021-08-18T13:05:51
284,707,826
0
0
Apache-2.0
2020-08-03T13:29:15
2020-08-03T13:29:14
null
UTF-8
Python
false
false
33,519
py
# Lint as: python3 # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
[ "tf-quant-finance-robot@google.com" ]
tf-quant-finance-robot@google.com
fe6aaab1a8339dd6dc8d16d83021eb02079bdd3c
cc352b04dc8eb5033399a8925274f23be51ae3bf
/leonardo/__init__.py
778f36dfa838719fd5e13576cde4c652cb4a8cd6
[ "BSD-2-Clause" ]
permissive
lukaszle/django-leonardo
1dcb16f0155495d4ef0e52f667450ee53f2b58be
a54dd0822c3d8fbf4a52547d0ad3ae17c04b88b7
refs/heads/master
2021-01-18T09:36:08.203184
2016-02-01T20:25:37
2016-02-01T20:25:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
default_app_config = 'leonardo.apps.LeonardoConfig' __import__('pkg_resources').declare_namespace(__name__) try: from leonardo.base import leonardo # noqa except ImportError: import warnings def simple_warn(message, category, filename, lineno, file=None, line=None): return '%s: %s' % (category...
[ "6du1ro.n@gmail.com" ]
6du1ro.n@gmail.com
2d6fced001982c85bda4c3008e1f9051ce24ffda
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_14387.py
1a3c8e77f0bda5b6a8b9a9699422269adf3d924c
[]
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
83
py
# Python Celery Task.update_state potentially blocks forever BROKER_POOL_LIMIT=100
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
c86b19c4c30e2fabbe0d81972a65af9e5be88efe
de6dc75873bd8615d22dd25c51f2fe3bc82cd7f8
/069.猜数字游戏.py
07de0ac470912f9fd6bb2e924865ff59a1419c0a
[]
no_license
cuimin07/LeetCode-test
b9e87b4e353b09dfa84f62c24c2950d57656fff2
8f02b78dcbdefa154bb52c14a271998361e92a86
refs/heads/master
2020-08-14T13:37:27.799071
2020-01-13T03:11:40
2020-01-13T03:11:40
215,178,295
0
0
null
null
null
null
UTF-8
Python
false
false
1,670
py
''' 你正在和你的朋友玩 猜数字(Bulls and Cows)游戏:你写下一个数字让你的朋友猜。 每次他猜测后,你给他一个提示,告诉他有多少位数字和确切位置都猜对了(称为“Bulls”, 公牛), 有多少位数字猜对了但是位置不对(称为“Cows”, 奶牛)。你的朋友将会根据提示继续猜,直到猜出秘密数字。 请写出一个根据秘密数字和朋友的猜测数返回提示的函数,用 A 表示公牛,用 B 表示奶牛。 请注意秘密数字和朋友的猜测数都可能含有重复数字。 示例 1: 输入: secret = "1807", guess = "7810" 输出: "1A3B" 解释: 1 公牛和 3 奶牛。公牛是 8,奶牛是 0, 1 和 7。 示例 2:...
[ "noreply@github.com" ]
cuimin07.noreply@github.com
e686b01403ab17049ad212cde428b766ca9b55f6
973b40c806bfcfdfbe4258b3decd9e52f8d4b574
/vmware_exporter/helpers.py
e6df9262e3710f638050d836a6405a66c56421ae
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
gitter-badger/vmware_exporter
467507e83551134f2e89b7fb3125bccb949113d4
d805dde7ff768d55e96719fcd727a6f4b5e81dc7
refs/heads/master
2020-04-13T17:06:59.370635
2018-12-24T05:19:48
2018-12-24T05:19:48
163,339,090
0
0
null
2018-12-27T21:53:31
2018-12-27T21:53:31
null
UTF-8
Python
false
false
1,375
py
from pyVmomi import vmodl def batch_fetch_properties(content, obj_type, properties): view_ref = content.viewManager.CreateContainerView( container=content.rootFolder, type=[obj_type], recursive=True ) PropertyCollector = vmodl.query.PropertyCollector # Describe the list of pr...
[ "noreply@github.com" ]
gitter-badger.noreply@github.com
7fe4ba0f5ad62a80601a216373746ad51ac9e09f
2e00398c4b77ab6e1996dbbefa167e13a8ad40a9
/products/urls.py
fab0250699fb90757ba44b5592f3d12ac5e94b7e
[]
no_license
cleliofavoccia/PurBeurre
d754b83ed28b1240447243f149080058a60ccdfb
e2b5a51fbd91412e68ddb1c3c785713c7988cc41
refs/heads/main
2023-03-20T11:06:32.466520
2021-03-12T16:02:22
2021-03-12T16:02:22
331,650,830
0
2
null
null
null
null
UTF-8
Python
false
false
266
py
"""URLS of products app""" from django.urls import path from . import views app_name = 'products' urlpatterns = [ path('<int:pk>/', views.ProductDetailView.as_view(), name='product'), path('results/', views.ResultsListView.as_view(), name='results') ]
[ "favoccia.c@live.fr" ]
favoccia.c@live.fr
d7347ded155d726c1280eaa8b4a1b75779976483
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_169/ch167_2020_06_19_15_17_32_858494.py
a7645291dc1cbd46804f0758f0845bbdbddb6e65
[]
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
436
py
def bairro_mais_custoso(dicionario): dicionario2={} lista=[] dicionario3={} for i in dicionario: dicionario2[i]=0 for e in dicionario[i][6:]: dicionario2[i]+=e for k in dicionario2: lista.append(dicionario2[k]) dicionario3[dicionario2[k]]=k f...
[ "you@example.com" ]
you@example.com
5b04d15420f559f7c75a1cf772a31cb8aa898403
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2566/60627/239561.py
e69aa50e41e94e98b56e97cd11efa5bf495bf257
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
441
py
# 20 n = int(input()) s = '[' for i in range(n): inp = input() s += ('[' + inp + '],') s = s[:-1] + ']' from ast import literal_eval num = literal_eval(s) l = [] def f(num,i,j,t): lis = range(len(num)) global l t += num[i][j] if i==len(num) - 1 and j==len(num) - 1: l.append(t) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
c1da5d4f2e2d43b82c977f498ea155098ae2e99d
c77a40408bc40dc88c466c99ab0f3522e6897b6a
/Programming_basics/Exercise_1/VacationBooksList.py
3ce9b5265267af70f22eb065be20cff43206264f
[]
no_license
vbukovska/SoftUni
3fe566d8e9959d390a61a4845381831929f7d6a3
9efd0101ae496290313a7d3b9773fd5111c5c9df
refs/heads/main
2023-03-09T17:47:20.642393
2020-12-12T22:14:27
2021-02-16T22:14:37
328,805,705
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
book_pages = int(input()) reading_speed = int(input()) time_limit = int(input()) tot_hours = book_pages / reading_speed per_day = tot_hours / time_limit print(per_day)
[ "vbukovska@yahoo.com" ]
vbukovska@yahoo.com
1189ee43148ae71e4e63174d6f48d775698a66d8
235c4b3aa630737b379050a420923efadd432da8
/1stRound/Easy/599 Minimum Index Sum of Two Lists/Heap.py
509359ed759a98a80c7b55d98f9e9ee6e90ae456
[ "MIT" ]
permissive
ericchen12377/Leetcode-Algorithm-Python
4e5dc20062280ef46194da5480600b2459fd89f8
eb58cd4f01d9b8006b7d1a725fc48910aad7f192
refs/heads/master
2023-02-22T22:43:55.612650
2021-01-28T04:00:20
2021-01-28T04:00:20
258,058,468
2
0
null
null
null
null
UTF-8
Python
false
false
971
py
import heapq class Solution: def findRestaurant(self, list1, list2): """ :type list1: List[str] :type list2: List[str] :rtype: List[str] """ interest = dict() for i, l in enumerate(list1): interest[l] = [i, 100000] for j, l in enumerate(lis...
[ "suiyaochen@mail.usf.edu" ]
suiyaochen@mail.usf.edu
6d36d7e25b88308e58d0b8062d820079f9529fc8
8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4
/pyobjc-framework-Metal/PyObjCTest/test_mtlaccelerationstructuretypes.py
c3bd2771327be119bf00faa1fd5e34797066345f
[ "MIT" ]
permissive
strogo/pyobjc
ac4201c7742eb75348328eeecb7eedf4e3458de3
2579c5eaf44b0c5af77ee195c417d2c65e72dfda
refs/heads/master
2023-07-13T00:41:56.448005
2021-08-24T06:42:53
2021-08-24T06:42:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
import Metal from PyObjCTools.TestSupport import TestCase class TestMTLAccelerationStructureTypes(TestCase): def test_structs(self): self.assertNotHasAttr(Metal, "MTLPackedFloat3") self.assertNotHasAttr(Metal, "MTLPackedFloat4x3") self.assertNotHasAttr(Metal, "MTLAccelerationStructureInsta...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
04e5c29fd3536e5ffc4f03ada2434ad4101b1362
e9d7689655887232b652ef369c7eaf3a1ef06955
/old/ePhy/in vivo multi/convert v3.py
30b7047a231015b6843c8b5de6d3593611be8041
[]
no_license
Gilles-D/main
81ac13cdb1614eb0c82afb3d0e847a30b78cad30
f3714d2cbe4aae22ab36f4f94c94067159270820
refs/heads/master
2023-08-31T06:20:48.554237
2023-08-30T20:33:27
2023-08-30T20:33:27
222,518,250
0
0
null
null
null
null
UTF-8
Python
false
false
3,954
py
# -*- coding: utf-8 -*- """ Created on Thu Mar 28 11:57:30 2019 @author: lspaeth (modified by flareno) Created on Mon Nov 12 14:14:18 2018 This class loads HdF5 recordings from MCS acquisition system as matrices of shape ((channel,data)) Allows to load Raw signals + associated time vectors + associated sampling rates A...
[ "gillesdelbecq@hotmail.fr" ]
gillesdelbecq@hotmail.fr
2c8834ff912fd0b52c11a67b58347b14e20a59c2
18310e7bb4e7c46d7d3fd51046a5bd92ca5f9c48
/gaping/parameters.py
6509d009f0bbb6100dfbd4420f7302283a6bba73
[]
no_license
shawwn/gaping
c91b6b4b2e2ef2ab6b868403f02e0e237b7b2761
41d477c79814b37f8a09715433c0c489a56c92d2
refs/heads/master
2023-03-15T05:42:37.086420
2021-03-16T21:21:01
2021-03-16T21:21:01
323,994,300
11
1
null
null
null
null
UTF-8
Python
false
false
163
py
import gin import gin.tf.external_configurables import tensorflow as tf from .util import EasyDict @gin.configurable def options(**kws): return EasyDict(kws)
[ "shawnpresser@gmail.com" ]
shawnpresser@gmail.com
48c663aa2a5710c161b3eb746a960ff8252ec051
709b1549033c9a547c67ee507fdc10b7e5d234ad
/test/test_worker_pools_api.py
a9689158dab784197bf9245cf0d64ca7dd1eb230
[ "Apache-2.0" ]
permissive
cvent/octopus-deploy-api-client
d622417286b348c0be29678a86005a809c77c005
0e03e842e1beb29b132776aee077df570b88366a
refs/heads/master
2020-12-05T14:17:46.229979
2020-01-07T05:06:58
2020-01-07T05:06:58
232,135,963
0
1
null
null
null
null
UTF-8
Python
false
false
5,971
py
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
[ "d.jain@cvent.com" ]
d.jain@cvent.com
dd65e49ac4e5d72ad391c44fe86fbec7470da58a
754f71f70dfd6a22944d8d872c6d2f1d6983ac14
/sensirion_shdlc_driver/device.py
26dc53bb4e13555ba24e995327b14f5e2a84b6c7
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
Sensirion/python-shdlc-driver
052685da8db5629fa5929da65000210db82358e7
31e9683c27004ee05edf89996d656bc50f5bdb3a
refs/heads/master
2021-06-10T10:35:47.299481
2021-03-19T08:47:12
2021-03-19T08:47:12
144,961,065
6
1
null
null
null
null
UTF-8
Python
false
false
12,213
py
# -*- coding: utf-8 -*- # (c) Copyright 2019 Sensirion AG, Switzerland from __future__ import absolute_import, division, print_function from .device_base import ShdlcDeviceBase from .commands.device_info import ShdlcCmdGetProductType, \ ShdlcCmdGetProductName, ShdlcCmdGetArticleCode, ShdlcCmdGetSerialNumber, \ ...
[ "urban.bruhin@sensirion.com" ]
urban.bruhin@sensirion.com
cfb080d14c05e5ba70f3611fba5c7802c11373c9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02882/s256412363.py
88b565ca18c9c84c582fb7237d25bd5927bd6b85
[]
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
166
py
from math import atan,pi a,b,x=map(int,input().split()) if b-x/a**2 <= x/a**2:print(atan((b-x/a**2)/(a/2))*(180/pi)) else: y = x/a*2/b print(atan(b/y)*(180/pi))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e99a386905b70424a8de735bdb86b29c0631b254
d4e573e8eae32db155fe5931b3e2dcd3aa48969b
/indigo/lib/python2.7/dist-packages/rocon_std_msgs/srv/_GetPlatformInfo.py
9632cf90da8b4370fa3f61a096c961f655bcb6dd
[]
no_license
javierdiazp/myros
ee52b0a7c972d559a1a377f8de4eb37878b8a99b
7571febdfa881872cae6378bf7266deca7901529
refs/heads/master
2022-11-09T09:24:47.708988
2016-11-10T16:56:28
2016-11-10T16:56:28
73,733,895
0
1
null
2022-10-25T05:16:35
2016-11-14T18:19:06
C++
UTF-8
Python
false
false
13,022
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from rocon_std_msgs/GetPlatformInfoRequest.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class GetPlatformInfoRequest(genpy.Message): _md5sum = "d41d8cd98f00b204e9800...
[ "javier.diaz.palacios@gmail.com" ]
javier.diaz.palacios@gmail.com
14de914eafa10449b77e6e446ba593c4617271a1
12d007b50d20030c4a0d8ecceaeb532b3de4f966
/setup.py
1ccbc3c4e37c98f182e6b3eedb9ea81800bdaf3a
[ "MIT" ]
permissive
Tygs/ayo
8be03cf1854d122b763272ba256e3fa87135e776
27b2225770581e19f3abdb8db0721776f0cfb195
refs/heads/master
2021-11-08T02:09:37.979755
2021-11-01T10:44:35
2021-11-01T10:44:35
136,607,852
32
2
null
null
null
null
UTF-8
Python
false
false
203
py
""" Install: python setup.py install Dev mode: python setup.py develop Test: pip install pytest && pytest tests All the config is in setup.cfg """ import setuptools setuptools.setup()
[ "lesametlemax@gmail.com" ]
lesametlemax@gmail.com
a9b33f6c6c2f40ad46017f0a75775c17579f1e0a
0b98732dcd3dd94a97555a8f3e8dd3524bb8ec86
/configs/ms_rcnn/ms_rcnn_x101_64x4d_fpn_1x.py
a6b720332cf33263295dcfeeae0d85b793e5166d
[ "Apache-2.0" ]
permissive
hasanirtiza/Pedestron
e89fea2ec676f150a7266f6b65963dd6c4ec35c9
8ab23ec38982cfaf0ae82c77c30f10b2fff62d12
refs/heads/master
2023-08-06T02:53:06.368937
2023-04-06T13:46:27
2023-04-06T13:46:27
247,410,025
723
161
Apache-2.0
2022-10-02T10:17:44
2020-03-15T05:52:52
Python
UTF-8
Python
false
false
5,628
py
# model settings model = dict( type='MaskScoringRCNN', pretrained='open-mmlab://resnext101_64x4d', backbone=dict( type='ResNeXt', depth=101, groups=64, base_width=4, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, style='pytorch'), ...
[ "chenkaidev@gmail.com" ]
chenkaidev@gmail.com
52dc6364b0481881b567046e1443faf02235b238
75491989e021c515461ae94dd9e069c0e3cebd48
/Etc/CodeUp_basic/1079.py
795c6ba6a8bfcf45ba6538395c8b796605650995
[]
no_license
Girin7716/PythonCoding
c60db97d269aa4a90159ae83f40c332244af6b41
7ac4f942aed727b5290f18ce252c5f99ad657c72
refs/heads/master
2023-04-20T23:33:36.077633
2021-05-07T11:51:16
2021-05-07T11:51:16
291,244,802
1
0
null
null
null
null
UTF-8
Python
false
false
102
py
chars = input().split() for i in chars: if i == 'q': print(i) break; print(i)
[ "k3832580@naver.com" ]
k3832580@naver.com
2b09af06835e7474ad61e8d98f0c2a72f6f3ed6b
dc37f36199b107933e33486761125cef2f492ae2
/export_contacts.py
9eb70ffd28bd589f83971c6a335fa94871265327
[]
no_license
spookylukey/christchurch_django
ca3acd67df1695a1cd7cb462b729ad72a37e43b7
d489e400b201b8ac56ee4065b3d6bc0f861f92f2
refs/heads/master
2022-12-20T03:27:26.081809
2015-10-15T18:36:20
2015-10-15T18:36:20
300,521,884
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
#!/usr/bin/env python from __future__ import unicode_literals import os os.environ['DJANGO_SETTINGS_MODULE'] = 'christchurch.settings' import csv writer = csv.writer(open("contact-list.csv", "w")) writer.writerow(["First Name", "Last Name", "Gender (M/F)", "Student (Y/N)", "Address", "Email Address", "Phone Number...
[ "L.Plant.98@cantab.net" ]
L.Plant.98@cantab.net
77af41358982c08950c144fac88c03820ae1a378
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/battle_control/controllers/feedback_events.py
745d8091451fb08bc693fbe8f33885b44f3694f5
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
16,113
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_control/controllers/feedback_events.py import logging from BattleFeedbackCommon import BATTLE_EVENT_TYPE as _BET, NONE_SHELL_TYPE from gui.battle_control.battle_constants import FEEDBACK_EVENT_ID as _FET from constants im...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
6a5d15682bbaa458fe83a7acb7339950b92acdcb
795caca6c497891e2fcd2b0253a209500744c56d
/src/models/continuous_encoder_decoder_models/encoder_decoder_variants/enc_dec_out.py
fe36585660ddbd55eae5ad88b1e6f06abb913378
[]
no_license
RitaRamo/remote-sensing-images-caption
29c0e0a6b5352b9b3d62c7315cd4d7ac6b0b7076
426d97b5d3688f6c52c51ef6e33872554d55751a
refs/heads/master
2021-11-24T03:02:00.238003
2021-11-04T09:23:20
2021-11-04T09:23:20
244,619,672
3
2
null
null
null
null
UTF-8
Python
false
false
6,534
py
import torchvision from torch import nn import torch from torch.nn.utils.rnn import pack_padded_sequence from models.basic_encoder_decoder_models.encoder_decoder import Encoder, Decoder from models.abtract_model import AbstractEncoderDecoderModel import torch.nn.functional as F from embeddings.embeddings import get_emb...
[ "rita.mparada.ramos@gmail.com" ]
rita.mparada.ramos@gmail.com
4a2fb9f16742d3718a5490b53140ab00b8c65f5a
f6ed7bc808f5536bc77166fe5c3571e5c028f308
/neptune/internal/common/utils/files.py
c694ca7a2144941196bdd9a68e8df828c7b73206
[ "Apache-2.0" ]
permissive
jiji-online/neptune-cli
d086bb59725b7545f3e0f80bd89e8f99ff3851a0
50cf680a80d141497f9331ab7cdaee49fcb90b0c
refs/heads/main
2023-07-18T17:56:10.671562
2021-09-14T07:54:13
2021-09-14T07:54:13
406,275,162
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
# # Copyright (c) 2016, deepsense.io # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in w...
[ "serhii.freidin@jiji.ng" ]
serhii.freidin@jiji.ng
3034b0e2dc2f6fae511f9a14f1f4e669ce99bf43
b8e6b9ac7d92941e3b8ee2f97952ff8048d9fed6
/django_app/config/celery.py
5f2ee85922eaca996254f9a6b2d7da3b932d1cf8
[]
no_license
LeeHanYeong/Elasticbeanstalk-Celery-Redis-Elasticache
00e571d90141ecf987ed5d86a90797f3de7ccae1
63c0b8f519a2c90f82d796affa884d3b1a440732
refs/heads/master
2020-06-26T10:00:30.498364
2017-11-16T19:59:16
2017-11-16T19:59:16
97,014,281
1
0
null
null
null
null
UTF-8
Python
false
false
319
py
import os from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.debug') app = Celery('config') app.config_from_object('django.conf:settings', namespace='CELERY') app.autodiscover_tasks() @app.task(bind=True) def debug_task(self): print('Request: {0!r}'.format(self.request))
[ "dev@azelf.com" ]
dev@azelf.com
21bc6ecaca89a962b6c47a14a1809fc53cb6ae5e
ed90fcbfd1112545fa742e07131159bb3a68246a
/smry/server-auth/ls/google-cloud-sdk/lib/googlecloudsdk/compute/subcommands/firewall_rules/list.py
8d62e0bafc6eecf56466830a10565be1b2193749
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
wemanuel/smry
2588f2a2a7b7639ebb6f60b9dc2833f1b4dee563
b7f676ab7bd494d71dbb5bda1d6a9094dfaedc0a
refs/heads/master
2021-01-10T21:56:55.226753
2015-08-01T13:37:06
2015-08-01T13:37:06
40,047,329
0
1
Apache-2.0
2020-07-24T18:32:40
2015-08-01T13:26:17
Python
UTF-8
Python
false
false
441
py
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing firewall rules.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.GlobalLister): """List Google Compute Engine firewall rules.""" @property def service(self): return self.compute.firewalls @property d...
[ "wre@thenandchange.org" ]
wre@thenandchange.org
ef8050413a53ba46fbf7838ae42ee7b94417348b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03304/s635103583.py
df29bcaa3b5769da632eaa3ea1863d89e01068ee
[]
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
851
py
import sys import math import copy from heapq import heappush, heappop, heapify from functools import cmp_to_key from bisect import bisect_left, bisect_right from collections import defaultdict, deque, Counter # sys.setrecursionlimit(1000000) # input aliases input = sys.stdin.readline getS = lambda: input().strip() ge...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6470e5104a790f16c984bcde668a934317ac2e95
1e8142725aa06844713d18fa38c6779aff8f8171
/tndata_backend/notifications/migrations/0018_gcmmessage_queue_id.py
64dd06bd40b6ed39edc8bd2ae0a208bec73ed197
[ "MIT" ]
permissive
tndatacommons/tndata_backend
8f4db3e5cf5272901c9087a85e21d7560240bb3b
3d22179c581ab3da18900483930d5ecc0a5fca73
refs/heads/master
2020-12-03T07:53:17.339769
2017-03-27T06:18:58
2017-03-27T06:18:58
68,407,220
1
2
null
2017-03-27T06:18:59
2016-09-16T18:59:16
Python
UTF-8
Python
false
false
437
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('notifications', '0017_auto_20151217_2000'), ] operations = [ migrations.AddField( model_name='gcmmessage', ...
[ "brad@bradmontgomery.net" ]
brad@bradmontgomery.net
7b122931a2d1665b2d483991ac0a54efe644b77e
612325535126eaddebc230d8c27af095c8e5cc2f
/src/net/log/stitch_net_log_files.py
aea6d7b0f58ca282bcb4daf53c9837ae3b963544
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,998
py
#!/usr/bin/env python # Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. ''' This script stitches the NetLog files in a specified directory. The complete NetLog will be written to net-internals-log.j...
[ "2100639007@qq.com" ]
2100639007@qq.com
c279470529493caf6dca7d09df9d96753ca09dc2
d4280eca1a9badb0a4ad2aa22598616eedece373
/Automate The Boring Stuff With Python/03/04-sameName.py
c723f7c075712db216aaaf5d638a7face06363b8
[]
no_license
Little-Captain/py
77ec12bb2aaafe9f709a70831266335b03f63663
74ba3c3449e7b234a77500a17433e141e68169f7
refs/heads/master
2021-06-09T11:33:23.205388
2019-11-22T01:17:44
2019-11-22T01:17:44
131,844,918
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
#!/usr/bin/env python def spam(): eggs = 'spam local' print(eggs) def bacon(): eggs = 'bacon local' print(eggs) spam() print(eggs) eggs = 'global' bacon() print(eggs)
[ "littlecaptain@foxmail.com" ]
littlecaptain@foxmail.com
1bbc11411983c07e73a6f0ab5f9eff30995621b0
a6f8aae8f552a06b82fe018246e8dcd65c27e632
/pr089/__init__.py
159be3c3aebc785921f28b14145490cf183d1d97
[]
no_license
P4SSER8Y/ProjectEuler
2339ee7676f15866ceb38cad35e21ead0dad57e9
15d1b681e22133fc562a08b4e8e41e582ca8e625
refs/heads/master
2021-06-01T09:22:11.165235
2016-05-06T14:02:40
2016-05-06T14:02:40
46,722,844
1
0
null
null
null
null
UTF-8
Python
false
false
57
py
from .pr089 import run as pyRun run = pyRun #run = cRun
[ "beobachter70@163.com" ]
beobachter70@163.com
269e0ffaa05096b410f812324e38587094ee38df
24a52b2b363417a8bdfeb8f669ee53b7ee19f4d6
/playa/conf.py
7579c8aef6242a240ea812a489b5517cb84d0ca7
[ "Apache-2.0" ]
permissive
isabella232/playa
e203997e2660babe333d4915f294530cde57ccb0
a93335e592aa596645a60497a7c030a36ae7fec2
refs/heads/master
2023-03-18T23:51:35.577746
2011-07-15T01:07:53
2011-07-15T01:07:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
""" playa.conf ~~~~~~~~~~ Represents the default values for all settings. :copyright: (c) 2011 DISQUS. :license: Apache License 2.0, see LICENSE for more details. """ import os import os.path class PlayaConfig(object): ROOT = os.path.normpath(os.path.dirname(__file__)) DEBUG = True AUDIO_PATHS = [] ...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
2013df2811af303bf28b622389c22251a0e40bff
99cd943ad5deed305608a516c0596cf3e1b552e5
/src/py/VendingMachine/vending_machine1.py
c9767d0aef06e0102daeaf59a770b9d458689ecd
[]
no_license
koukyo1994/algorithms
da8beebafe95768890a88babdba5951b01a3f975
6cb3350f89ddbc244071c1bc3e1a10ec9e0760ed
refs/heads/master
2021-06-23T19:04:22.618607
2021-04-24T08:33:01
2021-04-24T08:33:01
200,551,709
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
import sys if __name__ == "__main__": insert_price = input("insert: ") if not insert_price.isdecimal(): print("整数を入力してください") sys.exit() product_price = input("product: ") if not product_price.isdecimal(): print("整数を入力してください") sys.exit() change = int(insert_price) - i...
[ "arabiannight1994@yahoo.co.jp" ]
arabiannight1994@yahoo.co.jp
9492454662d9baa6149dbe4c257a23c9a281b4af
4fc6fdad6c0f52ff0f15186e411b106b7500fd4d
/osipkd/views/tu_ppkd/ap_advist.py
18a3f920b7295924590b5854cd16890da12ceafd
[]
no_license
aagusti/osipkd-pdpt
03e01e327d7df26da4f4dcdd82a35ba8cfa1ce40
130abc77292f2f3023da6f8b785fb7ccf337a374
refs/heads/master
2021-01-10T14:44:35.409216
2015-06-01T08:19:34
2015-06-01T08:19:34
36,646,345
0
0
null
null
null
null
UTF-8
Python
false
false
9,868
py
import os import uuid from osipkd.tools import row2dict, xls_reader from datetime import datetime,date from sqlalchemy import not_, func from pyramid.view import (view_config,) from pyramid.httpexceptions import ( HTTPFound, ) import colander from deform import (Form, widget, ValidationFailure, ) from osipkd.m...
[ "aa.gustiana@gmail.com" ]
aa.gustiana@gmail.com