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
797aaff83b73703d3f4c8ec7b645f7e0e382d611
59166105545cdd87626d15bf42e60a9ee1ef2413
/dbpedia/models/birth.py
86c075f122a90e61e71a1be57b5d74e77274a9d4
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,442
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from dbpedia.configuration import Configuration class Birth(object): ...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
c2e62e1fed4a5cfe95ae15e61a259807f50e7916
f3a0f6fa4aea4a3f03594b7c2b863fc0ab9955ae
/plaid/model/sandbox_income_fire_webhook_request.py
a38b0d609e7b15992d81f5de2960349b027c7b18
[ "MIT" ]
permissive
DougVaderJr/plaid-python
78aac933703e5bc58e0a3e924dc9933c9954f825
e9aee4f492c14c3eeda8158f84aafcd7e9c3ba0b
refs/heads/master
2023-07-12T16:44:25.289248
2021-08-16T21:27:42
2021-08-16T21:27:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,285
py
""" The Plaid API The Plaid REST API. Please see https://plaid.com/docs/api for more details. # noqa: E501 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from plaid.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal...
[ "noreply@github.com" ]
DougVaderJr.noreply@github.com
7dc6169ff09acd315578b8f111952fafd2380428
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/dev/cv/image_classification/Swin-Transformer_ID2377_for_PyTorch/logger.py
ffb47f2fd264aaa1749ce089aabd768a7b50cbad
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
2,695
py
# # BSD 3-Clause License # # Copyright (c) 2017 xxxx # All rights reserved. # Copyright 2021 Huawei Technologies Co., Ltd # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
1890a6e4eb9ea623fd1b3048b6bdd2df43af873f
a7058080e41af37eb77c146fc09a5e4db57f7ec6
/Solved/10817/10817.py
b367bcb33c195c11704251209f5f52883256727a
[]
no_license
Jinmin-Goh/BOJ_PS
bec0922c01fbf6e440589cc684d0cd736e775066
09a285bd1369bd0d73f86386b343d271dc08a67d
refs/heads/master
2022-09-24T02:24:50.823834
2022-09-21T02:16:22
2022-09-21T02:16:22
223,768,547
0
0
null
null
null
null
UTF-8
Python
false
false
202
py
# Problem No.: 10817 # Solver: Jinmin Goh # Date: 191120 # URL: https://www.acmicpc.net/problem/10817 a = input() a = a.split() for i in range(3): a[i] = int(a[i]) a.sort() print(a[1])
[ "eric970901@gmail.com" ]
eric970901@gmail.com
9cdaa82fda89ad9951a6b8d5c94f1ebd93c88177
2f963d7989749037a3ec27aaa39b31416b33cbb2
/ib_action/views/user_action_counts/tests/test_case_01.py
afa4eddc49ff53e95a58568a880e84464e0d4139
[]
no_license
migsantos121/phd3-backend
3cd014908856c995de3c4473d82059bc9c1b5794
9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e
refs/heads/master
2022-12-12T17:25:59.334509
2020-03-09T09:24:08
2020-03-09T09:24:08
245,991,086
0
0
null
2022-06-28T14:45:50
2020-03-09T09:17:18
Python
UTF-8
Python
false
false
1,559
py
from . import APP_NAME, OPERATION_NAME, REQUEST_METHOD, URL_SUFFIX from django_swagger_utils.drf_server.utils.server_gen.custom_api_test_case import CustomAPITestCase request_body = """ { "action_types": [ "RATE", "RATE" ], "source": "string", "action_values": [ "string", ...
[ "migsantos121@outlook.com" ]
migsantos121@outlook.com
69975169bb1b1827b925e00ea4eae20831cca216
7950c4faf15ec1dc217391d839ddc21efd174ede
/problems/0342.0_Power_of_Four.py
a0a5a32e27c28c00543bc71d410f6523723b5a68
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
772
py
''' Success Details Runtime: 16 ms, faster than 83.07% of Python online submissions for Power of Four. Memory Usage: 11.9 MB, less than 11.11% of Python online submissions for Power of Four. ''' class Solution(object): def isPowerOfFour(self, num): """ :type num: int :rtype: bool "...
[ "838255715@qq.com" ]
838255715@qq.com
005ac079befb88d6eec83627239178a0d305530e
fd513d0ef02231526fc8225dfdb1bf84752b3541
/jaraco/packaging/depends.py
ebeddfe0fef449ba636d347cc3a54377cd87d3f4
[ "MIT" ]
permissive
artynet/jaraco.packaging
810bfb83238a9075de6001deec9eaaca56db64a9
d68128b9c8c12334364128aec05b038102515159
refs/heads/master
2022-11-15T10:50:18.224592
2020-02-16T15:56:37
2020-02-16T15:56:37
277,494,378
0
0
null
2020-07-06T09:08:05
2020-07-06T09:08:04
null
UTF-8
Python
false
false
3,245
py
""" This module should only import modules from stdlib and setuptools """ from __future__ import print_function, unicode_literals import os import re import argparse import subprocess import setuptools import pkg_resources text_type = getattr(__builtins__, 'unicode', str) req_help = "A setuptools requirement spec ...
[ "jaraco@jaraco.com" ]
jaraco@jaraco.com
1a44630bcc49abc465f08b79db51861073294d16
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/284/284.peeking-iterator.233519966.Accepted.leetcode.py
363695e26d3e5481086fc95101ac8197fd2fcef5
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
454
py
class PeekingIterator(object): def __init__(self, iterator): self.front = None self.it = iterator if self.it.hasNext(): self.front = self.it.next() def peek(self): return self.front def next(self): temp = self.front self.front = None if s...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
13ad90a72e1503b0419dd453068d2ddfbf4c2ed3
71e5ce7abbf5f9e8887c16e7a89219a98a5827cf
/Python-for-everyone/01_For_Everyone/05_Loop_Iterations/06_count.py
1882c6ed7cd3efc4bb7006b59f6552575a63ad71
[]
no_license
Python-Repository-Hub/Learn-Online-Learning
f62c9965b34c050abcc4b2ef9a4d09600a0e52ec
2845a0d66b1f7fa416182b99cef25cda871b3360
refs/heads/master
2023-07-27T17:00:44.498987
2021-09-14T06:10:37
2021-09-14T06:10:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
zork = 0 print('Before', zork) numbers = [9, 41, 12, 3, 74, 15] # 강의와는 달리 numbers라는 int를 원소로 가지는 list를 선언하였습니다. for thing in numbers : zork = zork + 1 print(zork, thing) print('After', zork) # Before 0 # 1 9 # 2 41 # 3 12 # 4 3 # 5 74 # 6 15 # After 6
[ "danghyeona0113@gmail.com" ]
danghyeona0113@gmail.com
d7e643eac7eefa815456f66073d2a633d5e65bc2
8fc2707bc30c8e56a607e0fd97122d3509ce6dbd
/Pithon/pithon-game/core/Player.py
89d02f6bf8ba37de6cc6a14df1ee70ebc16438f7
[]
no_license
pithon/pithon
8c0239f527866ce05b327b436350dcc0e7fab4cb
9a183be17464a810c0c047fbc29b52451d39f641
refs/heads/master
2021-01-18T14:10:18.606353
2013-02-23T04:41:38
2013-02-23T04:41:38
7,985,688
0
1
null
null
null
null
UTF-8
Python
false
false
970
py
import pygame, constants from Tail import Tail class Player(object): def __init__(self, color): self.tail=[] head=Tail(pygame.color.Color(255,255,255), self, 116,100, constants.RIGHT) self.tail.append(head) self.color=color self.direction=constants.RIGHT se...
[ "louis@goessling.com" ]
louis@goessling.com
8229bbf974f9c0d3d5cfb6455f6d0e95c0bc8258
d6617514df849a77b491159c4cc8a3bfc6599d83
/hw2/DecryptDES.py
7f2088a9af6d0c0cc5ae44fca4c41c088699bebb
[]
no_license
LJP-TW/Information_Security_Class
409cc852480c611d89b60139705bc9de4374670d
d195b99c62e653ec551ce50077c6d29b23668b8c
refs/heads/master
2020-08-01T19:26:54.886014
2019-12-22T14:10:04
2019-12-22T14:10:04
211,090,532
2
0
null
null
null
null
UTF-8
Python
false
false
4,145
py
#!/usr/bin/python3 import sys import numpy as np key = bin(int(sys.argv[1], 16))[2:] text = bin(int(sys.argv[2], 16))[2:] key = '0' * (64 - len(key)) + key text = '0' * (64 - len(text)) + text ##### table IP = [int(x)-1 for x in ('58 50 42 34 26 18 10 2 60 52 44 36 28 20 12 4 62 54 46 38 30 22 14 6 64 56 48 40 32 ...
[ "accr94238@gmail.com" ]
accr94238@gmail.com
d493b4b047bfc276bb5effed4193ae083b59c65b
e44c83395d2ddd1e1b7c1e521d360f2ef8d585d0
/gitlab-new/tt/bus8684/items.py
4c8f025a4aa785fb80e448fde15776b7fd3226b0
[]
no_license
zhoujx4/Crawls
63ebcac5b4c0bbccdde56e6a2f5efbc4091d03e0
94b3ac88d7e49cb4a03e7b211a9437709d1c371c
refs/heads/master
2020-12-23T15:25:48.041965
2020-01-30T10:35:19
2020-01-30T10:35:19
237,189,197
3
1
null
null
null
null
UTF-8
Python
false
false
432
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy from scrapy.item import Item, Field class Bus8684Item(scrapy.Item): # define the fields for your item here like: content = Field() page_type = Field(...
[ "673760239@qq.com" ]
673760239@qq.com
499d2b9e316af87f449192a3c3de07b8cf55b4f0
03de685efae7d8f6de0e98c3008cb89f87825fb4
/test/compare/compare.py
c11c4504dcda17b5e254ee24b4672cc0d22cea78
[]
no_license
gedeschaines/robotics-toolbox-python
161f7af8be91c51e1902021ba9f9dc3f6fc5b766
22eb2394172e60b1dbca03d4be9bb0ecaf49b183
refs/heads/master
2021-06-14T00:42:24.468518
2021-02-17T22:20:36
2021-02-17T22:20:36
140,235,483
13
3
null
2019-01-06T13:30:23
2018-07-09T05:29:19
Python
UTF-8
Python
false
false
1,522
py
""" Compare the RNE implementations of Matlab and Python. We take the Matlab results as the gold standard since they were cross-checked against a Maple and other implementations a long time ago. The process: 1. genpath.m creates random q, qd and qdd data and saves to path.dat. Random values in the q, qd and qdd st...
[ "peter.i.corke@gmail.com" ]
peter.i.corke@gmail.com
a330d906dd0cdf05fc80449ad1547096442e3b8f
c5be188cf1231d62f7ad69c98ee71b4bc181f6f2
/image_resize.py
b94f3f35d8941b74d58a8b394552b06f0b5a1b6d
[]
no_license
ashish1sasmal/OPENCV-Python
e2d81e4472413ba79c5cdd4fcaad534225a5d394
589accc3c16eb4bf515ba85ee46ae6fdc2347bc6
refs/heads/master
2021-07-17T17:56:30.438576
2020-10-16T17:12:09
2020-10-16T17:12:09
217,500,976
2
0
null
null
null
null
UTF-8
Python
false
false
557
py
import cv2 l=[] def click_event(event,x,y,flags,param): global l # print(l) if event == cv2.EVENT_LBUTTONDOWN: l.append([x,y]) if len(l) == 3: print(l,l[2][0]+l[1][0]-l[0][0],l[2][1]+l[1][1]-l[0][1]) img[l[2][1]:l[2][1]+l[1][1]-l[0][1], l[2][0]:l[2][0]+l[1][0]-l[0][...
[ "ashishsasmal1@gmail.com" ]
ashishsasmal1@gmail.com
fa69246e9b983af79f51aa0df615d294d267d396
0ba2c3776618b5b8b76f4a23f21e9c6ad3f6e2e1
/part2/04.py
278a036d3564d1aaba49d2e49151f5a96d565b99
[]
no_license
WangDongDong1234/python_code
6dc5ce8210b1dcad7d57320c9e1946fd4b3fe302
6a785306a92d328a0d1427446ca773a9803d4cc0
refs/heads/master
2020-04-15T12:35:03.427589
2019-09-16T15:38:25
2019-09-16T15:38:25
164,681,323
1
0
null
null
null
null
UTF-8
Python
false
false
760
py
class GameRole: def __init__(self,name,ad,hp): self.name=name self.ad=ad self.hp=hp def attack(self,p): p.hp=p.hp-self.ad print("%s 攻击了%s,%s掉了%s,还剩%s" %(self.name,p.name,p.name,self.ad,p.hp)) def equip_weapon(self,wea): self.wea=wea self.ad=self.ad+w...
[ "827495316@qq.com" ]
827495316@qq.com
81da510db2f778bb19fac6ba41f0d921b840fc1a
0a6cd8461a8964daf237ebc50811cfd87555980e
/codingbat/string-2/1.py
25bc1074d3eb34c9d5e4724d4ee2766d942ac815
[]
no_license
Galymbekov/WebDev-Python
e3ef9ed5240f5df60226e0dc821e3a035bdb9017
0a3a3286deef392efb177f3efd37dac1eab101d3
refs/heads/main
2023-03-28T13:40:17.851821
2021-04-03T07:13:59
2021-04-03T07:13:59
353,316,046
0
0
null
null
null
null
UTF-8
Python
false
false
107
py
def chars(a): res = '' for i in a: res = res + i * 2 return res print(chars('Dastan'))
[ "47265977+Galymbekov@users.noreply.github.com" ]
47265977+Galymbekov@users.noreply.github.com
1bdffd60464eb5d1d0a4aa03bd1f51e6778e9f08
47eccd2a6b844bce32012017e2ad3eb62221763c
/producers/models/line.py
dc48f215d8734108a64ee764d036d040425954c1
[]
no_license
zxy-zxy/udacity_data_streaming_traffic_optimization
953b95536e62a18e9bdd9fd8244fbef2966789fb
3bb8d0e6f5e4b78b0c0a9e0b3e85a3f8788f3c65
refs/heads/master
2023-03-07T07:42:20.397271
2021-02-20T07:57:41
2021-02-20T07:57:41
340,464,004
0
0
null
null
null
null
UTF-8
Python
false
false
7,097
py
"""Defines functionality relating to train lines""" from enum import IntEnum import logging from producers.models.station import Station from producers.models.train import Train logger = logging.getLogger(__name__) class Line: """Contains Chicago Transit Authority (CTA) Elevated Loop Train ("L") Station Data"""...
[ "sinitsinvanya@gmail.com" ]
sinitsinvanya@gmail.com
1321ca6e8b06bce640ef7a93d92acd4a9d7814d7
9f0f5816b9d810c9ce01c56588024e1c804809fe
/study/day9/9-1.py
1061d19b08630454e68f6d7886f13dbd06d09571
[]
no_license
parkwisdom/Python-Study-step1
bf8cc8c5f89bfb9ccbb395a3827e23d4f0d6ae9a
bae2f5653c5a0d1eac1d4b89476ece7e0802d33b
refs/heads/master
2020-04-03T13:49:58.990930
2018-10-30T00:37:29
2018-10-30T00:37:29
155,300,210
2
0
null
null
null
null
UTF-8
Python
false
false
479
py
# x=dict(zip(range(1,11),[2**i for i in range(1,11)])) # print(x) # print(len(x)) # # test={'gildong':{'w':70,'h':170,'b':'a'},'donggil':{'w':75,'h':160,'b':'ab'},'gildo':{'w':72,'h':150,'b':'o'}} # print(test) # print(test['gildong']) # print(test['gildong']['h']) # # test['gildong']['h']+=10 # print(test['gildong']) ...
[ "43980901+parkwisdom@users.noreply.github.com" ]
43980901+parkwisdom@users.noreply.github.com
f68d9f01c4273c795a53da9a7898f803f20f55ef
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/ICalGLib/ErrorEnum.py
cb339c0d2892d8b1eb6b268094f725e78eced2eb
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
14,208
py
# encoding: utf-8 # module gi.repository.ICalGLib # from /usr/lib64/girepository-1.0/ICalGLib-3.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes o...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
8111196f57b743d2a02a94455bf1cf97b16635dc
4b7e282fe480415f5d52c0fc0429f144156190fe
/google/ads/googleads/v8/services/services/conversion_adjustment_upload_service/client.py
bc6631bba483e25a44732ac56157c21f43e72e1b
[ "Apache-2.0" ]
permissive
Z2Xsoft/google-ads-python
c4750357bb19da91bb3b6bf2fa84bef9d2df36d3
1779d52a0446c8afb2437b0a9e103dcb849f5590
refs/heads/main
2023-08-18T15:22:17.840364
2021-09-26T04:08:53
2021-09-26T04:08:53
410,444,398
0
0
Apache-2.0
2021-09-26T04:08:53
2021-09-26T03:55:38
null
UTF-8
Python
false
false
19,751
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
Z2Xsoft.noreply@github.com
d4f12ad333b598e5780635248dd3309ec65023be
8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f
/0001_0599/238.py
15a9a2eef432e94fcbe8a8a74aab146a918dbe24
[]
no_license
renjieliu/leetcode
e1caf13c18a8107ed9252588b339fb76bcb1b246
4668b64fcb9320b6c316d8608fc61911ce43b6c7
refs/heads/master
2023-03-18T18:16:06.187741
2023-03-14T20:31:59
2023-03-14T20:31:59
128,823,819
7
0
null
null
null
null
UTF-8
Python
false
false
1,217
py
class Solution: def productExceptSelf(self, nums: 'List[int]') -> 'List[int]': zeroloc = -1 # record the location of 0. total = 1 for i, n in enumerate(nums): if n == 0: if zeroloc == -1: zeroloc = i else: r...
[ "anlrj@qq.com" ]
anlrj@qq.com
7d3d9f6ca55f346b1a58b8b0bed7311a7c5743e0
98590747113ca3022c67c8bc6332b2bf48d7073e
/maximum_depth_of_binary_tree.py
7ce50d022a3ba784b2b41b94dbb425e71483882f
[]
no_license
buxizhizhoum/leetcode
a54291519a23fe82e9f9620e5a2266833696f005
cf4235170db3629b65790fd0855a8a72ac5886f7
refs/heads/master
2022-06-04T02:54:26.381077
2022-04-01T06:58:19
2022-04-01T06:58:19
116,791,542
1
0
null
null
null
null
UTF-8
Python
false
false
2,030
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Note: A leaf is a node with no children. Example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9...
[ "mapeaks@126.com" ]
mapeaks@126.com
461d2c40bb4f8a3b5ab23a90655470e60eda5a32
f663f7baa042c6d5e71ceb22ce3d304d5bcbfd15
/archived_lectures/Fall_2019/old_lectures/2018/Week_5/test_util.py
cbd0d779dd67ed6a702944cc723c2e001dbf44e6
[ "MIT" ]
permissive
ModelEngineering/advancing-biomedical-models
2dcf0fb35629a4cce2b30b5c18490c9837875b64
7469576d484d894febb161c3cb48b723dfbcaf1b
refs/heads/master
2022-11-12T10:24:23.407006
2022-10-19T08:33:29
2022-10-19T08:33:29
132,825,741
2
9
null
null
null
null
UTF-8
Python
false
false
1,974
py
""" Tests for simulation utility functions. To run: python test_util.py """ import util import lmfit import numpy as np import unittest ka = 0.4 v0 = 10 kb = 0.32 kc = 0.4 PARAMETERS = lmfit.Parameters() NAMES = ["ka", "v0", "kb", "kc"] for name in NAMES: if name[0] == "v": maxval = 20 else: maxval = 2 ...
[ "jlheller@uw.edu" ]
jlheller@uw.edu
d511b1176c1de153e70e4026276b2a5fe5ff9283
f2d6b7a38a2a36ec57902f5a5704c2d3f9f444cd
/ROS/build/simple_topic_publisher/catkin_generated/pkg.installspace.context.pc.py
48352a6c8885e6e25aa470d909f60132a9935240
[]
no_license
gbattra/RobotIgniteAcademy
3c4a9b531cd7a4b2582a9aaf30899e363c771c68
4fe009333a49c813e2022f1b9f478410d2fe665b
refs/heads/master
2022-12-08T09:41:27.911885
2020-08-25T01:37:45
2020-08-25T01:37:45
290,082,460
1
0
null
null
null
null
UTF-8
Python
false
false
384
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "simple_topic_publisher" PROJECT_SPACE...
[ "greg.attra@gmail.com" ]
greg.attra@gmail.com
3bfa5d1ece68242a859e084e744aa07bd4cd031b
c7027edceeae907ce7d21112336e84f101eeb89b
/airflow/providers/google/cloud/transfers/gcs_to_sftp.py
964b365fc40020f9d33d0f46fd572479e6138a6a
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
jao6693/airflow
0a8027ce33e20ee8f6032facb1b8ab453c2d20d4
269b608246b015c55e6cae4ed0f50b1e2bb0fa95
refs/heads/main
2023-01-30T18:53:23.431745
2022-11-05T14:59:27
2022-11-05T14:59:27
320,338,180
0
0
Apache-2.0
2020-12-10T17:08:36
2020-12-10T17:08:35
null
UTF-8
Python
false
false
8,437
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "fabien.beuret@delaware.pro" ]
fabien.beuret@delaware.pro
0856a12681340f456cc6cc7d768fd51a3f9de6b1
0d76ba0da5446f20e500b7e31f53821b14cb49d8
/Rosalind/python/revc.py
5f9a8f42871395c24b14702d4eb8085fa05e2fe5
[]
no_license
filwaitman/playground
948aa687be06d456c86b65ee3ab5fb9792149459
dfdfab9002bff3a04f37e0c161363a864cd30f3e
refs/heads/master
2021-01-12T12:59:49.057832
2020-01-26T18:51:02
2020-01-26T18:51:02
68,865,259
0
0
null
null
null
null
UTF-8
Python
false
false
402
py
# -*- coding: utf-8 -*- # http://rosalind.info/problems/revc/ import sys def reverse_complement(string): reversed_ = string[::-1] reversed_ = reversed_.replace('A', 'X').replace('T', 'A').replace('X', 'T') reversed_ = reversed_.replace('C', 'X').replace('G', 'C').replace('X', 'G') return reversed_ i...
[ "filwaitman@gmail.com" ]
filwaitman@gmail.com
ca5283b55effaf4bcd77fe732ae29fc5c471bee6
7233716fbf9fff94240d14770b3fc3f3ada10d9b
/devel/lib/python2.7/dist-packages/ur_msgs/msg/_RobotStateRTMsg.py
deb51da650ecaf1eab4673427a0d7e51809f05b6
[]
no_license
shashankseth01/E-yantra
58d42dce90667ca37f31f2cf111ee98c39468617
23432e058fce7733bd1a8399fd6edc20967fa6a3
refs/heads/main
2023-02-04T00:36:57.230996
2020-12-21T09:55:23
2020-12-21T09:55:23
316,716,460
2
1
null
null
null
null
UTF-8
Python
false
false
106
py
/home/shashank/ws_task3/devel/.private/ur_msgs/lib/python2.7/dist-packages/ur_msgs/msg/_RobotStateRTMsg.py
[ "shashankseth3@gmail.com" ]
shashankseth3@gmail.com
acacce0291355a9534ff0563af6514333051fb77
b6aa9768dbac327943e0220df1c56ce38adc6de1
/91_decode-ways.py
039d1992172f104ffa65150443dd06340ea20d3c
[]
no_license
Khrystynka/LeetCodeProblems
f86e4c1e46f70f874924de137ec5efb2f2518766
917bd000c2a055dfa2633440a61ca4ae2b665fe3
refs/heads/master
2021-03-17T00:51:10.102494
2020-09-28T06:31:03
2020-09-28T06:31:03
246,954,162
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
# Problem Title: Decode Ways class Solution(object): def numDecodings(self, s): """ :type s: str :rtype: int """ lst = map(int, s) p_1 = 1 res = 1 for i in range(len(lst)): p_2 = p_1 p_1 = res if lst[i] == 0: ...
[ "khrystyna@Khrystynas-MacBook-Pro.local" ]
khrystyna@Khrystynas-MacBook-Pro.local
523230368fdadb0448796ee631c05daf2fe86381
8d0be6bdb480caa895b6cea1884b40c51cf25156
/experiment/python/convert-json-and-yaml.py
ed765819326d33d274bdfd85e90245538e9aa335
[ "MIT" ]
permissive
atb00ker/scripts-lab
8642138574ac3403278c004b2c67f0200b29a83d
71a5cc9c7f301c274798686db4a227e84b65926a
refs/heads/master
2021-09-09T22:15:36.133142
2021-09-04T18:30:31
2021-09-04T18:30:54
163,108,084
2
0
MIT
2019-10-08T19:44:00
2018-12-25T19:54:54
Python
UTF-8
Python
false
false
318
py
import json import yaml with open('input.json') as js: data = json.load(js) with open('output.yaml', 'w') as yml: yaml.dump(data, yml, default_flow_style=False, allow_unicode=True) with open('input.yml') as yml: data = yaml.load(yml) with open('output.json', 'w') as js: js.write(json.dumps(data))
[ "ajay39in@gmail.com" ]
ajay39in@gmail.com
d33a22fa1084f81223eba1e0e845c919e416ab5f
713f9168a7ba68740bb9b4ea6994e853a56d2d5c
/2022-05-30-python/day1/save_wikipedia.py
3e83f5e8c22cdae5d35f0f32144e67b89203c3cc
[]
no_license
marko-knoebl/courses-code
ba7723c9a61861b037422670b98276fed41060e2
faeaa31c9a156a02e4e9169bc16f229cdaee085d
refs/heads/master
2022-12-29T02:13:12.653745
2022-12-16T09:21:18
2022-12-16T09:21:18
142,756,698
16
10
null
2022-03-08T22:30:11
2018-07-29T11:51:04
Jupyter Notebook
UTF-8
Python
false
false
270
py
from urllib.request import urlopen # make a HTTP request req = urlopen("https://en.wikipedia.org") # read content as utf-8 string content = req.read().decode("utf-8") # save to file file = open("wikipedia.html", "w", encoding="utf-8") file.write(content) file.close()
[ "marko.kn@gmail.com" ]
marko.kn@gmail.com
17e90b8c30eaba457e03faf76fca9908aaf1b8b0
32cf9c3099c36a46804e393dd1491a8954f50263
/2019.04.11 - 프로필, 인스타 생성/PROJECT05_10/PROJECT05/boards/migrations/0001_initial.py
871a328c5df4bde811a7395a602cfaa923694ed8
[]
no_license
ash92kr/s_code
ce3bda6a403600892750e181dca5ed8c4caebcb1
92eace551d132b91ee91db6c0afd38b93f9b647b
refs/heads/master
2020-04-12T00:27:07.043091
2019-05-21T08:17:39
2019-05-21T08:17:39
162,200,447
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
# Generated by Django 2.1.7 on 2019-03-21 11:37 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Board', fields=[ ('id', models.AutoField(au...
[ "ash92kr@gmail.com" ]
ash92kr@gmail.com
9150360bc6801d8550fa7251315721013196303e
34d8cbc0471be7e051466fbd14a0fc7730bff133
/peer_recieve.py
e8884c30547531ab674cc7f82cbb8b65bbe95427
[]
no_license
jk-programs/basiccoin
59e35c1fb547add8d2fe1156fbc7fc348a1d8f0f
6fd285525febd82733b7e7ef604428c3a8fe3ff4
refs/heads/master
2021-01-18T18:45:19.900004
2014-09-04T21:01:31
2014-09-04T21:01:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
"""When a peer talks to us, this is how we generate a response. This is the external API. """ import networking, custom, tools, blockchain, time def security_check(dic): if 'version' not in dic or dic['version'] != custom.version: return {'bool': False, 'error': 'version'} else: #we could add se...
[ "zack.bitcoin@gmail.com" ]
zack.bitcoin@gmail.com
7dfa2ddf781a50a0947412c4c7840743bc9f8eff
e3c6087ce7178c0608b1501e14c8f905fd14c3d2
/src/app/push/user/user_manager.py
d23e38bdf3b2d4b20ea7c0717b71d2bff3d2b60d
[]
no_license
campanulamediuml/iot_server
314fcef9b6bec2f1354390ecad2d0acb18dcf06e
6657ad9895445fb668f027affc6346eeeda58e67
refs/heads/master
2022-12-14T02:53:05.007754
2020-02-01T08:12:02
2020-02-01T08:12:02
237,582,696
1
0
null
2022-12-08T07:03:48
2020-02-01T08:04:25
Python
UTF-8
Python
false
false
2,820
py
from app.push.user.user import User from app.push.relay import Relay from data.server import Data import time class UserManager(object): def __init__(self): self._user_dict = {} self._user_handler_dict = {} self._admin_dict = {} def update(self): # print('kill') del_lis...
[ "campanulamediuml@gmail.com" ]
campanulamediuml@gmail.com
64114d8d6de771147d00d1ce7e7e5513c4b883ea
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_photostats.py
b655b753c702e900bf321ce1a12133ccbdddb3c3
[ "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
234
py
#calss header class _PHOTOSTATS(): def __init__(self,): self.name = "PHOTOSTATS" self.definitions = photostat self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['photostat']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
0199c7123b0f48afe8371149ef949d0f1f1808d2
f662aa3ce7896ca0283cae38df8ef824c1b80c9a
/library/tests/test_setup.py
9579313b7b5b97b052f09122ff03f5decae81e69
[ "MIT" ]
permissive
pimoroni/plasma
bd7ddebbc60ae7cc9c2561408b52fc46bf810672
7857c44255285aac061a9064dd033fd63bbbda29
refs/heads/master
2023-02-10T13:27:17.565867
2023-01-30T17:27:28
2023-01-30T17:27:28
155,544,928
12
9
MIT
2021-11-06T04:14:19
2018-10-31T11:17:40
Python
UTF-8
Python
false
false
369
py
"""Test Plasma basic initialisation.""" import mock def test_legacy_setup(GPIO): """Test init succeeds and GPIO pins are setup.""" from plasma import legacy as plasma plasma.show() GPIO.setmode.assert_called_once_with(GPIO.BCM) GPIO.setup.assert_has_calls([ mock.call(plasma.DAT, GPIO.OUT)...
[ "phil@gadgetoid.com" ]
phil@gadgetoid.com
ce67b4c7a1213011dedbd40bb03a735ddee6c245
93a7db386dfa0ac0dc369cc7f4b974224c801d8d
/deploy/ngram-all/scripts/ngram-30.py
4575b6d9056180b9f17d03dcdbc9ea32e3fb42f8
[]
no_license
lingxiao/good-great-combo
e051f20c89b7317a14ca5cee357bda7b095ce174
4d2691866bc21e2c542354ad3aae6f369eb86c87
refs/heads/master
2021-01-19T19:30:43.391759
2017-04-09T12:35:15
2017-04-09T12:35:15
83,699,772
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
############################################################ # Module : A series of measures on the graph for experiments # Date : April 2nd, 2017 # Author : Xiao Ling ############################################################ import os import re import networkx as nx from utils import * from scripts import ...
[ "lingxiao@seas.upenn.edu" ]
lingxiao@seas.upenn.edu
1b2a2f389775c77ff7576d08af07d659dab43a09
63350ed1a8d2de2f7d16687b20c93e76f5a9f5a6
/fk_partner_banks/models/__init__.py
6b6c75e8a174a9eeda2ca09225807df59090fedf
[]
no_license
rosalesdc/fukuoka_testing
bb91277f489c02d492bfa26ba6377007f9cf2701
6004845e9359ccf33fb6159b826120499bc8c104
refs/heads/master
2020-04-17T01:20:57.455110
2019-12-04T23:07:42
2019-12-04T23:07:42
166,088,573
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
# -*- coding: utf-8 -*- from . import res_partner from . import res_partner_bancos
[ "rosales9146@gmail.com" ]
rosales9146@gmail.com
7418fe42514906ca3b54fe3292c0e73322f20b47
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/referer_rsp.py
5e464eeb471ed9c49f7aa9e96766d4e22f3f2f69
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,440
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class RefererRsp: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attr...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
53cfa943c71da187b76615b9e210acd591c177fb
e616ea35ead674ebb4e67cae54768aaaeb7d89c9
/project/alma/groups/migrations/0001_initial.py
ea300a72ba26028fa8b8e7cb76ef846668025ebd
[]
no_license
VWApplications/VWAlmaAPI
12bb1888533cf987739b0e069737afa6337141e1
3a8009b17518384c269dfee3c8fe44cbe2567cc0
refs/heads/master
2022-04-02T10:26:49.832202
2020-02-12T04:46:31
2020-02-12T04:46:31
161,098,215
1
0
null
null
null
null
UTF-8
Python
false
false
1,648
py
# Generated by Django 2.1.4 on 2019-10-20 03:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('disc...
[ "victorhad@gmail.com" ]
victorhad@gmail.com
14aeae04e3c6f6a5a94f8f36cffad0f269855994
68f757e7be32235c73e316888ee65a41c48ecd4e
/백준_python/2000/2500_2599/2501.py
c49d55d4f683ab54758e774c9f7bb12d31669f5c
[]
no_license
leejongcheal/algorithm_python
b346fcdbe9b1fdee33f689477f983a63cf1557dc
f5d9bc468cab8de07b9853c97c3db983e6965d8f
refs/heads/master
2022-03-05T20:16:21.437936
2022-03-03T01:28:36
2022-03-03T01:28:36
246,039,901
1
0
null
null
null
null
UTF-8
Python
false
false
192
py
def f(N): for i in range(1, N//2+1): if N % i == 0: yield i yield N N, K = map(int, input().split()) L = list(f(N)) try: print(L[K - 1]) except: print(0)
[ "aksndk123@naver.com" ]
aksndk123@naver.com
bb3964e9c470d43dd2e31774435b4096a7129340
37ba62db61fc4ec62634638763a984cbfbe40fe3
/day09/02 作业讲解.py
5caee326901bbae6f5a9b2598f304b118ebe05ef
[]
no_license
lt910702lt/python
ca2768aee91882c893a9bc6c1bdd1b455ebd511f
c6f13a1a9461b18df17205fccdc28f89854f316c
refs/heads/master
2020-05-09T22:54:22.587206
2019-09-17T09:02:53
2019-09-17T09:02:53
181,485,866
0
0
null
null
null
null
UTF-8
Python
false
false
2,316
py
###第一题: 有如下文件,里面的内容如下,分别完成以下功能: ''' 老男孩是一个培训机构 为学生服务, 为学生未来, 都是骗人的,哈哈 ''' ## 1.1. 将原文件全部读出来并打印 # f = open("oldboy", mode="r", encoding="utf-8") # s = f.read() # f.flush() # f.close() # print(s) # 1.2. 在原文件后面追加一行内容:信不信由你,反正我信了 # f = open("oldboy", mode="a", encoding="utf-8") # f.write("\n信不信由你.反正我信了") # f.flush() # f.c...
[ "1103631738@qq.com" ]
1103631738@qq.com
c8b3a630c7f0945eab12bd6d869373ec854be477
f1324b8a6da3a9ba8fc51c7dd268c2c788aaf796
/Gardener/python/variables/qq2zzEWKcorrectionsWeight.py
d329f7fc9659ae57c87d3822c490f30e2530d773
[]
no_license
scodella/LatinoAnalysis
82ad4df70d971902254f73036ed0b07687411bdf
5c1ba282f683d9d7a1f7dd3a5eec59cba619955d
refs/heads/master
2023-09-05T04:08:21.554924
2022-08-04T10:36:36
2022-08-04T10:36:36
69,543,022
0
15
null
2023-07-18T07:51:14
2016-09-29T07:38:38
Python
UTF-8
Python
false
false
10,954
py
from LatinoAnalysis.Gardener.gardening import TreeCloner import numpy import ROOT import sys import optparse import re import warnings import os.path from array import array; class qq2zzEWKcorrectionsWeightFiller(TreeCloner): def __init__(self): pass def help(self): return '''Add weight to cope...
[ "massironi.andrea@gmail.com" ]
massironi.andrea@gmail.com
8552b00e5269659b7760cfaf3cb055f996f35ec2
ff853d7b3773db8de783fd26a76bd92742f85384
/0x05-python-exceptions/4-list_division.py
ed4e25621fd48459d5909c213142dd2a0c614a32
[]
no_license
stuartses/holbertonschool-higher_level_programming
1b3315f624f9c2dc0c63ee3481021c5ed093a81d
40497b632bf71c3b877cb61fce79b9d82b4519da
refs/heads/master
2020-09-29T00:51:57.791491
2020-05-14T16:51:44
2020-05-14T16:51:44
226,905,912
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
#!/usr/bin/python3 def list_division(my_list_1, my_list_2, list_length): div = 0 div_list = [] for i in range(list_length): try: div = my_list_1[i] / my_list_2[i] except ZeroDivisionError: print("division by 0") div = 0 except TypeError: ...
[ "stuart.ses@hotmail.com" ]
stuart.ses@hotmail.com
4f6bf8ff33c458c8a330b0f138aae35a6a15d02d
6a7645b58b68c1f04a75055c0ec638086986d522
/test/test_preprocessing.py
a2407a3d04fb9eba847ba3e25f37bcfc56ef2b85
[ "MIT" ]
permissive
DamLabResources/crseek
1832f0fa7111dd9ae491af947dc9052203a4f2da
13d8870dc1d3bba6c58ef23772c1a2504e817198
refs/heads/master
2021-03-30T17:35:50.061326
2018-08-09T12:56:03
2018-08-09T12:56:03
88,295,772
8
0
null
null
null
null
UTF-8
Python
false
false
14,270
py
from itertools import product from functools import partial import numpy as np import pandas as pd import pytest from Bio.Alphabet import generic_dna, generic_rna, IUPAC from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord from crseek import exceptions from crseek import preprocessing from crseek import utils f...
[ "judowill@gmail.com" ]
judowill@gmail.com
2dae655d7f22efba5c7f9cf43a1aba9ceec09a15
48eb84be45129c5904447e36a66170e739a8f8a0
/Gconnect/housename/migrations/0005_auto_20180925_1333.py
adbd8659975c5a028fa555fbcdeceab9df929f0d
[]
no_license
anjuz1/project
efd806e8fff976168d70711eda36fcf42e3e9dbc
295ed8efcfff622a64e9072bd2607fe8c147a957
refs/heads/master
2020-04-07T00:15:41.259953
2018-11-16T16:52:37
2018-11-16T16:52:37
157,896,677
0
0
null
null
null
null
UTF-8
Python
false
false
1,283
py
# Generated by Django 2.0.7 on 2018-09-25 08:03 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('housename', '0004_housename_house_mail'), ] operations = [ migrations.AlterField( model_name='housename', name='hous...
[ "45093924+anjuz1@users.noreply.github.com" ]
45093924+anjuz1@users.noreply.github.com
c7799f2cf6e1db8acdd8381d627ce3b1219455b2
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/nnn798.py
681e1df8097c5b9ea1017e8214cb670235faa582
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
316
py
ii = [('CookGHP3.py', 1), ('AubePRP2.py', 1), ('UnitAI.py', 1), ('WilbRLW5.py', 1), ('ClarGE2.py', 1), ('WestJIT2.py', 1), ('DibdTRL2.py', 1), ('WadeJEB.py', 3), ('BackGNE.py', 2), ('MereHHB3.py', 6), ('MereHHB.py', 1), ('CoolWHM3.py', 1), ('FitzRNS.py', 1), ('StorJCC.py', 2), ('JacoWHI2.py', 1), ('SomeMMH.py', 1)]
[ "varunwachaspati@gmail.com" ]
varunwachaspati@gmail.com
3d9fda9f714066e6e0a6180fd2b6f1e16e7b078f
377317f5aed0299d10dee4d8f1f2879b75a3d78e
/tf_agents/agents/data_converter.py
e359f8f8d084829f78d8662b8829c159bccaf1d1
[ "Apache-2.0" ]
permissive
emma-resor/agents
4e3fe14f91f287fe56f2d97fe4ce9e38904d4438
464a5118e44056db8981a33c9efe43014adabc69
refs/heads/master
2023-08-14T16:23:50.989936
2021-09-22T17:31:58
2021-09-22T17:31:58
409,240,525
0
0
Apache-2.0
2021-09-22T17:31:59
2021-09-22T14:38:42
null
UTF-8
Python
false
false
24,382
py
# coding=utf-8 # Copyright 2020 The TF-Agents 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 la...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
39747d390ebf9258de2c348aaf0ca675559bdadf
ad553dd718a8df51dabc9ba636040da740db57cf
/.history/app_20181219015549.py
513904db7cccff06529a8549bb896f3c180c0921
[]
no_license
NergisAktug/E-Commerce-PythonWithFlask-Sqlite3
8e67f12c28b11a7a30d13788f8dc991f80ac7696
69ff4433aa7ae52ef854d5e25472dbd67fd59106
refs/heads/main
2023-01-01T14:03:40.897592
2020-10-19T20:36:19
2020-10-19T20:36:19
300,379,376
0
0
null
null
null
null
UTF-8
Python
false
false
17,009
py
import time import os from flask import Flask,flash, request, render_template from flask import Flask, url_for, redirect, session from flask_sqlalchemy import SQLAlchemy from sqlalchemy.sql import table, column, select import hashlib class ConfigClass(object): SECRET_KEY = 'This is an INSECURE secret!! DO NOT u...
[ "nergis.aktug2014@gmail.com" ]
nergis.aktug2014@gmail.com
6f9382fca59ef7eb65bcb7683c81b7757f35b90d
f65163f0670b04ed3d68632b2d020186947cf2d7
/bundology/urls.py
69855c319f387c9c03135ffd03a1dd629ac94df2
[ "MIT" ]
permissive
ImmaculateObsession/bundology
92fb23527b642c70393e710ed042c3e661d014b7
cbf3859fc51f4fcf7f0da608af37aeb55671aed4
refs/heads/master
2021-01-01T06:50:43.114328
2013-09-29T18:43:32
2013-09-29T18:43:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
589
py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() from bundles.views import HomeView urlpatterns = patterns('', # Examples: url(r'^$', HomeView.as_view(), name='home'), # url(r'^bundology/', includ...
[ "pjj@philipjohnjames.com" ]
pjj@philipjohnjames.com
2384c8e026b668140c8d5cad60d9811e0246ad3a
e6f144ff524a5e28bb9a3effe55f0e8b3d3f9d72
/less14/chat_v2/chat/chatApp/validators.py
321bd980636d9847dab114791bd09061c52d777d
[]
no_license
an4p/python_oop
614382989914513b60b87d10e78c21a34debe162
5cff48072f30460df6e7300fa85038e18e986d4b
refs/heads/master
2021-01-23T03:27:09.496370
2017-06-08T12:14:24
2017-06-08T12:14:24
86,077,237
0
1
null
null
null
null
UTF-8
Python
false
false
397
py
from django.core.exceptions import ValidationError import re def not_null(data): if data == None: raise ValidationError("This field cannot be null") def email_validation(data): pattern = re.compile(r'\w{1,}') isemail = pattern.match(data) #print("isemail"+str(isemail.group(0))) ...
[ "anna@3g.ua" ]
anna@3g.ua
9acbf3882c7fd6e2cdd0af5022f6f471245c0b6e
c0032b63a0220bfd0fe8592b8f6d8382b808417c
/0x06-python-classes/3-square.py
e6a1ab3e3e526c71a4ae6b5ce0d8dd39fac0f71f
[]
no_license
Arkadington/alx-higher_level_programming
2104d200aa3b8ff5026476d975fc7dfabe9db660
36d4aa2f25416b94cf2fca5598717bcec98d6211
refs/heads/master
2023-05-23T11:24:42.750209
2021-05-26T07:19:26
2021-05-26T07:19:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
#!/usr/bin/python3 """defining a square based on 2-square.py""" class Square: """defines a square by size""" def __init__(self, size=0): """initializing size argument""" self.__size = size if not isinstance(size, int): raise TypeError('size must be an integer') if ...
[ "atienofaith12@gmail.com" ]
atienofaith12@gmail.com
61c5a2c0cbafcf79a81a70720540685f9d224f30
82573b51d1188f653b673e1261e02fc9e4e12e66
/etc/beam_search.py
6feed3d5cdd861462535b44d844fc11b60a17694
[]
no_license
JeeYz/git_from_the_hell
94a55b1c922c993383927d5aaa7cad066d645ddb
0826ab6b1fd760c145ac5dcab6a8aaa9e9af9e02
refs/heads/master
2022-09-25T02:17:55.636721
2022-09-17T18:03:26
2022-09-17T18:03:26
152,916,026
0
0
null
null
null
null
UTF-8
Python
false
false
3,084
py
import random import copy input_data = list() for i in range(10): temp_val = random.random() input_data.append(temp_val) print(input_data) beam_search_size = 3 def gen_beam_list(input_data): arrange_list = copy.deepcopy(input_data) global beam_search_size idx_num = 0 flag_num = 0 ...
[ "jkdspiegel@gmail.com" ]
jkdspiegel@gmail.com
d66e5f3155ea380201b01e010d93e3f7459d1d9b
0de4549263e75a7614e7c430dac68822b18b0876
/med1_med12_example/before_redefine/group.py
8753e406ce81b7829d66cb354ff2fe1a00e8d5ae
[]
no_license
oaxiom/redefine_peaks
7213630f021c69de5520300fe2121074159aa788
c62abfc2702bca5172f58563ff7c478035c697f6
refs/heads/master
2020-07-30T14:10:11.671975
2019-09-26T02:17:22
2019-09-26T02:17:22
210,259,020
1
0
null
null
null
null
UTF-8
Python
false
false
893
py
import glob from glbase3 import * config.draw_mode = ["png", 'pdf'] filenames = [os.path.split(f)[1] for f in glob.glob("../clus/*.bed")] trks = [ flat_track(filename='../flats/esc_med1.flat'), flat_track(filename='../flats/esc_med12.flat'), ] peaks = [ genelist(filename="../peaks/esc_med1.rp1_summ...
[ "oaxiom@gmail.com" ]
oaxiom@gmail.com
e7c60a0ec63f5654ae032c35925d7ffd99117de3
a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea
/tests/system/providers/apache/druid/example_druid_dag.py
0552e10588950e78a6fc57488119b0e9bdf65845
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
ishiis/airflow
4305794e36b611d01f49e3f2401be3dc49782670
292440d54f4db84aaf0c5a98cf5fcf34303f2fa8
refs/heads/master
2022-07-30T00:51:28.806940
2022-07-14T12:07:11
2022-07-14T12:07:11
209,801,072
1
0
Apache-2.0
2019-09-20T13:47:26
2019-09-20T13:47:26
null
UTF-8
Python
false
false
1,992
py
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
[ "noreply@github.com" ]
ishiis.noreply@github.com
046821a28fcd0f8c07500a8e1002b4d2c26a518c
c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5
/Competition/vision1/0203_8_private3.py
5739dd3f67dbb144f198fea38d30aec58e244ef2
[]
no_license
89Mansions/AI_STUDY
d9f8bdf206f14ba41845a082e731ea844d3d9007
d87c93355c949c462f96e85e8d0e186b0ce49c76
refs/heads/master
2023-07-21T19:11:23.539693
2021-08-30T08:18:59
2021-08-30T08:18:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,056
py
# private 3등 코드 # train / test / validation (0.95) 분리 # batch_size = 16 # loss 줄었음, score 동일 import numpy as np import pandas as pd import matplotlib.pyplot as plt from keras.preprocessing.image import ImageDataGenerator from numpy import expand_dims from sklearn.model_selection import StratifiedKFold, cross_validate,...
[ "hwangkei0212@gmail.com" ]
hwangkei0212@gmail.com
ac7aa470914c9dcd181660f70288c52307f34e56
17889c693624186593a64bb2220035760316980b
/setup.py
bbc213031ca0fa6fb214a151fa3d269b11f6787b
[]
no_license
vahtras/pdpack
f0b50931ce7c987c8f6a151b8529f2175f6de990
5fe9c377ebadaff82e5db0650db60709a8065720
refs/heads/master
2021-01-10T02:08:53.424347
2016-04-08T08:54:34
2016-04-08T08:54:34
55,702,170
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
try: import numpy except ImportError: import subprocess subprocess.call("pip install numpy", shell=True) from numpy.distutils.core import setup, Extension ext = Extension( name='linextra', sources=['pdpack/linextra.F', 'pdpack/linpack.F'], include_dirs=['pdpack/include'], libraries=['blas']...
[ "vahtras@kth.se" ]
vahtras@kth.se
69be95888037623078a6dcbdfe8f36e773a65944
d3e31f6b8da5c1a7310b543bbf2adc76091b5571
/Day24/vd1/app.py
563c66af2f3efd4d2c19b03b41765d7162a81322
[]
no_license
pytutorial/py2103
224a5a7133dbe03fc4f798408694bf664be10613
adbd9eb5a32eb1d28b747dcfbe90ab8a3470e5de
refs/heads/main
2023-07-14T06:31:18.918778
2021-08-12T14:29:16
2021-08-12T14:29:16
355,163,185
1
0
null
null
null
null
UTF-8
Python
false
false
183
py
#pip install flask from flask import Flask, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') #'Hello' app.run(debug=True)
[ "duongthanhtungvn01@gmail.com" ]
duongthanhtungvn01@gmail.com
d7ef042d180c534b37eea101e0c194f1a9ff0e20
5d2bc0efb0e457cfd55a90d9754d5ced9c009cae
/venv/lib/python2.7/site-packages/tests/test_024_ForeignKeys.py
d1e1d2981a54530173a85a1af5462ba6c56c0d9f
[]
no_license
michaelp1212/paxton
dafe08eca55557d036189d5242e47e89ec15bf2d
0bd1da471c3a594c0765a4bc5cd1288404791caf
refs/heads/master
2021-03-25T07:17:06.523340
2020-03-19T01:38:24
2020-03-19T01:38:24
247,598,121
0
0
null
null
null
null
UTF-8
Python
false
false
5,878
py
# # Licensed Materials - Property of IBM # # (c) Copyright IBM Corp. 2007-2008 # # NOTE: IDS requires that you pass the schema name (cannot pass None) from __future__ import print_function import sys import unittest import ibm_db import config from testfunctions import IbmDbTestFunctions class IbmDbTe...
[ "smartwebdev2017@gmail.com" ]
smartwebdev2017@gmail.com
eb4b3921a93a20d061cc44081c98fc02a0a9321e
3bc4b502fdb5ffecdbecc9239a0c25746dc31022
/Ch03/p69.py
c164e5529ca7a074b8d57aedb66553a6e4e56930
[]
no_license
pkc-3/python
68da873bbe7ad9a3e0db4e22ddaa412a9377720f
d8410d897c3784c6017f7edc215ce8763e557518
refs/heads/master
2023-05-31T06:40:30.279748
2021-06-10T09:00:09
2021-06-10T09:00:09
361,634,592
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
# break, continue 예 i = 0 while i < 10: i += 1 if i == 3: continue if i == 6: break print(i, end=' ')
[ "pkc_3@naver.com" ]
pkc_3@naver.com
712fdaba5b3b039c11c0a907327177ff5bd9909d
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/1219692/snippet.py
72feef967aeb0d54cf1d96dad510906647484037
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,383
py
#!/usr/bin/env python """ This script looks up how many followers two different Twitter accounts do have in common. Usage: twitter_follower_intersect.py username username You'll need Python and the Python Twitter Tools to get this running. http://pypi.python.org/pypi/twitter/ Also you will have to create a...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
79807977daf7baeaa71f2944fdd760df505aaf6f
bcabce262e54a6ac38948a4717254cdc3ce65874
/mealpy/physics_based/NRO.py
50aba440638bb516c9bae21d4ad0b3dca935f137
[ "MIT" ]
permissive
ibrahim85/MEta-heuristics-ALgorithms-in-PYthon
4ab6e6ef54127b6f4721178a1f855d1be91f9b42
47fb428e8378fc52cd5fe6eff20cec1c68ba5039
refs/heads/master
2023-06-03T05:23:31.993100
2021-06-28T14:48:38
2021-06-28T14:48:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,908
py
#!/usr/bin/env python # ------------------------------------------------------------------------------------------------------% # Created by "Thieu Nguyen" at 07:02, 18/03/2020 % # ...
[ "nguyenthieu2102@gmail.com" ]
nguyenthieu2102@gmail.com
a25550e858dae0bcc5b99adae2e16dcac185d00c
6e57bdc0a6cd18f9f546559875256c4570256c45
/external/toolchain-utils/build_tool.py
3bd357c084263497145de778971668962d3eed1d
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dongdong331/test
969d6e945f7f21a5819cd1d5f536d12c552e825c
2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e
refs/heads/master
2023-03-07T06:56:55.210503
2020-12-07T04:15:33
2020-12-07T04:15:33
134,398,935
2
1
null
2022-11-21T07:53:41
2018-05-22T10:26:42
null
UTF-8
Python
false
false
31,006
py
#!/usr/bin/env python2 """Script to bootstrap the chroot using new toolchain. This script allows you to build/install a customized version of gcc/binutils, either by specifying branch or a local directory. This script must be executed outside chroot. Below is some typical usage - ## Build gcc located at /local/gcc/...
[ "dongdong331@163.com" ]
dongdong331@163.com
529b9a96885880408cf9b4499a0d6e5912c55327
87e88e72991cc83eff200fb87cc3985d383e3292
/FPV_ANN/utils/resBlock.py
d64ec3238350a96644f8811f0ab578ff8330b10e
[ "MIT" ]
permissive
ppbreda/combustionML
c04f3418d891a91af07c4522c507fef186743f1e
b441907276c39f127b8914b78656581b0bcde359
refs/heads/master
2020-04-29T18:05:47.425570
2019-03-15T08:40:36
2019-03-15T08:40:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,400
py
from keras.models import Model from keras.layers import Dense, Activation, Input, BatchNormalization, Dropout, concatenate from keras import layers from keras.callbacks import ModelCheckpoint def res_block_org(input_tensor, n_neuron, stage, block, bn=False): conv_name_base = 'res' + str(stage) + block + '_branch...
[ "maximilian.hansinger@unibw.de" ]
maximilian.hansinger@unibw.de
90e6ad0aa33ddfa5468bf5f1af143002cab456a2
cc1d44cf04e5b2b15bb296a434aad4ae4bcfc4be
/python3/euc_dist.py
e6536e74111caf0ec86e96ef6f4469cb1453d3bf
[]
no_license
ericosur/ericosur-snippet
dda2200546b13fb9b84632d115a0f4ca5e3d5c47
0309eeb614612f9a35843e2f45f4080ae03eaa81
refs/heads/main
2023-08-08T04:54:05.907435
2023-07-25T06:04:01
2023-07-25T06:04:01
23,057,196
2
1
null
2022-08-31T09:55:19
2014-08-18T03:18:52
Perl
UTF-8
Python
false
false
217
py
#!/usr/bin/python3 # coding: utf-8 ''' euclidean distance ''' import numpy as np def main(): ''' main ''' m = np.array([3, 4]) d = np.linalg.norm(m) print(d) if __name__ == '__main__': main()
[ "ericosur@gmail.com" ]
ericosur@gmail.com
f4d95a2a12b33964de49a3d66afb8e7ab64907f9
1b42b04a27c33bfa704f4f108c9986cd558d7545
/external_libs/pyzmq-14.5.0/python3/ucs4/32bit/zmq/green/core.py
b3b8b89819bff69a02d830fe6da2dcd4026e6008
[]
no_license
Nandan307/trex_stl_lib
addbe9e42cc69a84fba59b385b108f4f22165534
8b3a204308475bff79a6bb7dd1419bbf18c10ffd
refs/heads/master
2021-01-25T00:33:17.552192
2018-02-28T14:41:56
2018-02-28T14:41:56
123,301,115
0
3
null
null
null
null
UTF-8
Python
false
false
10,477
py
#----------------------------------------------------------------------------- # Copyright (C) 2011-2012 Travis Cline # # This file is part of pyzmq # It is adapted from upstream project zeromq_gevent under the New BSD License # # Distributed under the terms of the New BSD License. The full license is in # the fi...
[ "nakulkar@nakulkar.bos.csb" ]
nakulkar@nakulkar.bos.csb
b714c4900618c7eaaade3b45b921035c9bc2929a
222dbb2f43dccbd4538ef76798a26457edffe07c
/MFVI/distributions.py
805669cb27a08efcecf3874559184aaabb9b9751
[]
no_license
MJHutchinson/PytorchBayes
9699351822416deeb61e95a34653580fdfbbb5ae
e95a9bd308c595b9603bdfb799288a0ed50cc7c6
refs/heads/master
2020-04-09T18:39:57.643468
2019-01-15T16:06:05
2019-01-15T16:06:05
160,519,698
1
0
null
null
null
null
UTF-8
Python
false
false
1,433
py
import torch import numpy as np log_2pi = np.log(2*np.pi) class Distribution(object): def pdf(self, x): raise NotImplementedError def logpdf(self, x): raise NotImplementedError def cdf(self, x): raise NotImplementedError def logcdf(self, x): raise NotImplementedErro...
[ "hutchinson.michael.john@gmail.com" ]
hutchinson.michael.john@gmail.com
8ec1b7d766ec47742ccc9d987470864ab0da2c88
33338ccfe04112e7b7ea09aea240187cee5bab3f
/examples/motion.py
35867e74d44317195e2ecb4b470fc58a09d5d516
[ "MIT" ]
permissive
levkovigor/pmw3901-python-pimoroni
b944e7e3f1b4b43fcd0259cbdd4d6548148fbacb
bf798f6d58a1527563822d152d2650cc72e06e09
refs/heads/master
2023-08-02T22:53:24.578868
2021-09-16T15:05:11
2021-09-16T15:05:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
#!/usr/bin/env python import time import argparse from pmw3901 import PMW3901, PAA5100, BG_CS_FRONT_BCM, BG_CS_BACK_BCM print("""motion.py - Detect flow/motion in front of the PMW3901 sensor. Press Ctrl+C to exit! """) parser = argparse.ArgumentParser() parser.add_argument('--board', type=str, ch...
[ "phil@gadgetoid.com" ]
phil@gadgetoid.com
dfbd20650f4b6a5afeb3dfbebec177b237cde843
2682d6f8d8e5740b0dee8fe7fbf939ff78dc1b3b
/tests/unit/test_parser.py
c164306fa7e3333b77e1faa5e7920d0d1bef684f
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
skornev/apacheconfig
c5bb443538c2b03cf9069962595487460ac20568
7126dbc0a547779276ac04cf32a051c26781c464
refs/heads/master
2020-06-10T02:04:56.042451
2018-12-29T21:21:22
2018-12-29T21:21:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,430
py
# # This file is part of apacheconfig software. # # Copyright (c) 2018-2019, Ilya Etingof <etingof@gmail.com> # License: https://github.com/etingof/apacheconfig/LICENSE.rst # import sys from apacheconfig import * try: import unittest2 as unittest except ImportError: import unittest class ParserTestCase(uni...
[ "etingof@gmail.com" ]
etingof@gmail.com
2c5b6c337f6de90230dea0f80085dee7f5c7bcbe
c8b541ea4fa7d159b80bef116e5cd232ac61b8c1
/venv/Lib/test/test_importlib/test_abc.py
56a14ad90c71993bff5f3474c9d38130fb76bf32
[]
no_license
shengmenghui/knowledge_building
7a2d8eef040c2d3a45726b3a908be301e922024b
04fd7784f15535efed917cce44856526f1f0ce48
refs/heads/master
2022-12-31T14:18:05.282092
2020-10-23T02:51:37
2020-10-23T02:51:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,243
py
import contextlib import inspect import io import marshal import os import sys from sql_mode import support import types import unittest from unittest import mock import warnings from . import util as test_util init = test_util.import_importlib('importlib') abc = test_util.import_importlib('importlib.abc') machinery ...
[ "15173342800@163.com" ]
15173342800@163.com
664688d7026deca7dfe13f826be489819a058db9
f188379dc9c1e5b63e432d434c782a4d6997872b
/7_Dictionaries/Exercises and More Exercises/11. Ranking.py
c8393f218b168b6acce06f6453a3b75ba56c95c2
[]
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
1,479
py
data = input() contest_with_pass = {} while not data == "end of contests": contest, password = data.split(":") contest_with_pass[contest] = password data = input() data = input() submissions = {} while not data == "end of submissions": contest, password, username, points = data.split("=>") points...
[ "galyaborislavova888@gmail.com" ]
galyaborislavova888@gmail.com
d1c81615bd1d6e2713ae67c7f872c618bd7c96c9
174ad2b84041ee9dface6f822737cd30e39aa04d
/toRRentSeaRcher/Enviroments/Scripts/pip3.7-script.py
d3e3a76c9c075f0b26ffd2ab609440029926da9b
[]
no_license
duk1edev/projects
88f26830ac16f0fc889cace8ffab756788ee0b24
74bdea8b56bee9e1c0d8a78405ad0ca7bad38543
refs/heads/master
2020-06-24T17:15:17.891008
2019-11-29T17:23:54
2019-11-29T17:23:54
199,027,173
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
#!C:\Users\duk1e\Desktop\toRRentSeaRcher\Enviroments\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ...
[ "duk1e.ptc.ua@yandex.ru" ]
duk1e.ptc.ua@yandex.ru
60be12b528080a1558cd6e0f9d842020db02dc29
5a1a695829a2d1dbf4daa0736f0fbd6feffc7e63
/0830/palindrome2.py
0042014807add9a1a311863e8d36a88cf927c9d9
[]
no_license
juyi212/Algorithm_study
f5d263c5329c994a457bbe897e5e1405d2b1d67a
f225cc593a50b74686111f654f7133707a1d1310
refs/heads/master
2023-03-21T20:02:36.138688
2021-03-16T14:16:40
2021-03-16T14:16:40
325,008,034
0
0
null
null
null
null
UTF-8
Python
false
false
648
py
import sys sys.stdin=open("pal_input.txt","r") def check(m): global zwords for i in range(100): for j in range(100-m+1): temp=words[i][j:j+m] c_temp=zwords[i][j:j+m] if temp==temp[::-1] or c_temp==c_temp[::-1]: return True return False for tc in ra...
[ "dea8307@naver.com" ]
dea8307@naver.com
4a7aae79d4dfa0b6ec639291564a1c9cc372c6c2
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc005/C/4909327.py
2ce013dfa84bbabf437e5d6940c4493bb010db06
[]
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
483
py
t = int(input()) n = int(input()) a_list = sorted(list(map(int, input().split()))) m = int(input()) b_list = sorted(list(map(int, input().split()))) if n < m: print('no') else: count = 0 for b in b_list: for a in range(len(a_list)): if b-a_list[a] <= t and b-a_list[a] >= 0: ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
644a771174d5da427ab20d060a04b6064d28e480
7aec5d22b50ce8d4a18572396a4ab28d45dfcbef
/examples/coreir-tutorial/shift_register.py
668484a02603c8bb433e6a21b40527233274e552
[ "MIT" ]
permissive
phanrahan/magmathon
db4ad04bd37034d5cee9ee0b507ec64ca9d0f204
68c9be1df0569a9d5d076b1bd986ed5ee3562d54
refs/heads/master
2020-09-15T08:16:36.985371
2020-03-04T17:50:27
2020-03-04T17:50:27
66,949,165
13
3
MIT
2020-03-02T18:14:35
2016-08-30T14:39:43
Jupyter Notebook
UTF-8
Python
false
false
1,654
py
# coding: utf-8 # In[1]: import magma as m m.set_mantle_target("coreir") import mantle def DefineShiftRegister(n, init=0, has_ce=False, has_reset=False): class _ShiftRegister(m.Circuit): name = 'ShiftRegister_{}_{}_{}_{}'.format(n, init, has_ce, has_reset) IO = ['I', m.In(m.Bit), 'O', m.Out(m.B...
[ "lenny@stanford.edu" ]
lenny@stanford.edu
9aaa1431d7deb1edfcc6b43a72e07036fdc7127d
72863e7278f4be8b5d63d999144f9eaec3e7ec48
/venv/lib/python2.7/site-packages/git/util.py
1dbbd35de70c5055b20ce511be046584c5cf97b0
[ "MIT" ]
permissive
sravani-m/Web-Application-Security-Framework
6e484b6c8642f47dac94e67b657a92fd0dbb6412
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
refs/heads/master
2020-04-26T11:54:01.334566
2019-05-03T19:17:30
2019-05-03T19:17:30
173,532,718
3
0
null
null
null
null
UTF-8
Python
false
false
32,135
py
# utils.py # Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php import contextlib from functools import wraps import getpass import logging import os import platform i...
[ "sravani.manukonda7@gmail.com" ]
sravani.manukonda7@gmail.com
8c3071706a8894ff8207c463c10c2281dd7b7f1c
1139841f6451c0e9e2a53a808966139dbde60f54
/nlp_tools/nlp_postprocessor/postprocessing_rule.py
43a30de044312219c39aedddaf33a6d6edb89b2b
[]
no_license
abchapman93/nlp_tools
6728d158aa3bb06e2d5e6fa58d8924315e42ce09
876aac6203d596569983ca9920fde888f34cc3f3
refs/heads/master
2022-10-23T18:05:02.267427
2020-06-16T16:17:43
2020-06-16T16:17:43
251,348,604
0
0
null
null
null
null
UTF-8
Python
false
false
2,407
py
class PostprocessingRule: def __init__(self, patterns, action, name=None, description=None, action_args=None): """A PostprocessingRule checks conditions of a spaCy Span entity and executes some action if all patterns are met. patterns (list): A list of PostprocessingPatterns, e...
[ "abchapman93@gmail.com" ]
abchapman93@gmail.com
f2d6974ca6d35f5e54f4a11c60c50b255be0fc3a
c67f2d0677f8870bc1d970891bbe31345ea55ce2
/zippy/lib-python/3/multiprocessing/heap.py
0a25ef05c7f2ce14d67f1e292b2b07881fa9e953
[ "BSD-3-Clause" ]
permissive
securesystemslab/zippy
a5a1ecf5c688504d8d16128ce901406ffd6f32c2
ff0e84ac99442c2c55fe1d285332cfd4e185e089
refs/heads/master
2022-07-05T23:45:36.330407
2018-07-10T22:17:32
2018-07-10T22:17:32
67,824,983
324
27
null
null
null
null
UTF-8
Python
false
false
8,582
py
# # Module which supports allocation of memory from an mmap # # multiprocessing/heap.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributi...
[ "thezhangwei@gmail.com" ]
thezhangwei@gmail.com
411947a1984c31f8fbdb8e6f9394716a8adaf64c
14956dbed8ae4fba1d65b9829d9405fcf43ac698
/Cyber Security/Capture the Flag Competitions/2020/DSTA CDDC 2020/Warp Gate 4/(UNDONE) What Time Is It [1]/solve.py
9ba0fc4d6cf73be6d252a5672169fe10759bb934
[]
no_license
Hackin7/Programming-Crappy-Solutions
ae8bbddad92a48cf70976cec91bf66234c9b4d39
ffa3b3c26a6a06446cc49c8ac4f35b6d30b1ee0f
refs/heads/master
2023-03-21T01:21:00.764957
2022-12-28T14:22:33
2022-12-28T14:22:33
201,292,128
12
7
null
2023-03-05T16:05:34
2019-08-08T16:00:21
Roff
UTF-8
Python
false
false
718
py
datesString = '''\ 2005.10.06 05:23:15 2020.10.05 22:39:46 2020.08.29 05:16:57 2020.08.12 10:05:39 2020.09.29 06:36:38 2020.09.27 00:41:56 2020.09.30 18:43:24 2020.08.10 03:54:13 2020.09.24 00:09:37 2020.09.16 09:20:23 2020.08.10 22:06:44 2020.08.10 23:19:09 2020.08.13 22:08:52 1987.04.11 00:43:13\ ''' ...
[ "zunmun@gmail.com" ]
zunmun@gmail.com
bf984644b822f43a0a3dabb801c8a47cc73ebe50
225bc8ac617a721ae79e8287ca0df47439740c6b
/strip_tags.py
62fa10f4d5cf0c2ed91f72923096389502b6475f
[ "Artistic-2.0" ]
permissive
rec/strip-tags
558228d1e24679822a6c3ec9130d9d1867657251
4f6568fa26089275d77c82d4c55c6a0f05bbebd1
refs/heads/master
2020-04-14T21:28:04.464951
2014-05-17T18:51:22
2014-05-17T18:51:22
19,893,626
1
0
null
null
null
null
UTF-8
Python
false
false
330
py
#!/usr/bin/env python from BeautifulSoup import BeautifulSoup def strip_all_tags(html): return html and ''.join(BeautifulSoup(html).findAll(text=True)) def join_inputs(): results = [] while True: try: results.append(raw_input()) except EOFError: return ''.join(results) print(strip_all_ta...
[ "tom@swirly.com" ]
tom@swirly.com
4f9db7146b298561b8def897b45f7e3ecbd7e31a
28f3e82c99fe3628f3d0b361f627408a2fdacfc2
/driver/migrations/0003_auto_20190316_2209.py
5fd2ff7c7dc5ae639e7af43cb2f363d6084df126
[]
no_license
aballah-chamakh/Delivery_Tracker
09957eae173f30406eb285256bfb07b119ddce22
ffb07027e81aeb0fab90fc41963544625dd84fea
refs/heads/master
2020-04-27T22:31:49.854344
2019-04-09T18:11:05
2019-04-09T18:11:05
174,740,268
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
# Generated by Django 2.0 on 2019-03-16 21:09 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('driver', '0002_driver_image'), ] operations = [ migrations.AlterField( model_name='driver', ...
[ "chamakhabdallah8@gmail.com" ]
chamakhabdallah8@gmail.com
1cd7578ae2c49e8fc2d355e4c3815d9c7ca0f211
384efc85a7845caa10c1090c80243a9a29215d8a
/02_RE_Objects_Methods/05_findall.py
b7b39951a5c4adbf13b0a3637478ed0cd36154dd
[]
no_license
Do-code-ing/Python_Module_RE
032754e8c5b9e619d83602bdff4b91747b419b21
01bdd0202fdc7040971f3132d4cbbbde11175bb9
refs/heads/master
2023-06-02T22:32:37.543180
2021-06-20T05:07:34
2021-06-20T05:07:34
358,269,215
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
# Pattern.findall(string[, pos[, endpos]]) # findall() 함수와 유사한데, 컴파일된 패턴을 사용한다. # 하지만 search() 처럼 검색 영역을 제한하는 선택적 pos와 endpos 매개 변수도 받아들인다. import re p = re.compile("a") print(p.findall("abcabc")) # ['a', 'a']
[ "zxcvbn658@naver.com" ]
zxcvbn658@naver.com
9cafa8166e85879b279933c5a3f29dae772a0331
57cb9fef5efac78758f5d151b959ca2216c94083
/edx/app/certs/venvs/certs/bin/wheel
5c46be6ad93ddedd93efd28f3d94527801ee7e4d
[]
no_license
JosiahKennedy/openedx-branded
9751d5362088276a87b2e0edca0913568eeb1ac4
d16a25b035b2e810b8ab2b0a2ac032b216562e26
refs/heads/master
2022-12-21T02:39:17.133147
2020-03-25T06:03:23
2020-03-25T06:03:23
249,895,218
0
1
null
2022-12-08T01:23:48
2020-03-25T05:33:05
null
UTF-8
Python
false
false
233
#!/edx/app/certs/venvs/certs/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "josiahk@phyziklabs.com" ]
josiahk@phyziklabs.com
90ce63a11f08d9fa3007f7ad5fc753a346e978e4
88c5045676e32eb7ca1a40d8a4379c7c83f6faca
/tests/trinity/integration/test_plugin_discovery.py
b462334b35106f5d31d7acd6159c76f62dfeba05
[ "MIT" ]
permissive
cd4761/ecc-trinity
9983a4f29c9262293379ff03931e652b00f398a3
ed27c5c8bc2b94b796e74f271594f138c2aa5b36
refs/heads/master
2020-06-23T21:23:50.829092
2019-07-29T10:45:20
2019-07-29T10:45:20
198,756,315
1
0
null
null
null
null
UTF-8
Python
false
false
438
py
from trinity.plugins.registry import ( discover_plugins ) # This plugin is external to this code base and installed by tox # In order to install it locally run: # pip install -e trinity-external-plugins/examples/peer_count_reporter from peer_count_reporter_plugin import PeerCountReporterPlugin def test_plugin_dis...
[ "christoph.burgdorf@gmail.com" ]
christoph.burgdorf@gmail.com
3ebf29cec10ec32a1feaddd87586c0b85af2e132
90cea58e80309d2dff88f73f3a43ed5f943ff97d
/MaxSubArray.py
aa062ccb2dac884a1a93196e6e3675cdc0c47d68
[]
no_license
SaiSujithReddy/CodePython
0b65c82b0e71dba2bbd4c1aefec4e6cd6fd42341
4c05b7909092009afffa4536fd284060d20e462d
refs/heads/master
2022-02-24T09:21:15.284745
2019-10-07T23:36:17
2019-10-07T23:36:17
106,611,251
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import sys def max_sub_array(array): max_sum = -sys.maxsize - 1 temp_sum = 0 for x in range(len(array)): print("entered for loop") if array[x] >= 0: temp_sum += array[x] if temp_sum > max_sum: max_sum = temp_sum else: temp_sum +=...
[ "sai.marapareddy@gmail.com" ]
sai.marapareddy@gmail.com
f9d3e18d03b7ad0e4bff8ac8ad3eda798bb6f2e8
5d6365f4cc81272f8c481ee31f1111e8eca6dca5
/alipay/aop/api/domain/AlipayCommerceOperationPromoterRankingQueryModel.py
f9cf8ced33270bccfe1a08deb642d7a7987eeba1
[ "Apache-2.0" ]
permissive
barrybbb/alipay-sdk-python-all
9e99b56138e6ca9c0b236707c79899d396ac6f88
1b63620431d982d30d39ee0adc4b92463cbcee3c
refs/heads/master
2023-08-22T20:16:17.242701
2021-10-11T08:22:44
2021-10-11T08:22:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceOperationPromoterRankingQueryModel(object): def __init__(self): self._pid = None self._type = None self._user_id = None @property def pid(self): ...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
a40f3a2fe76ca92d94c31c07ec545abcd156d9e2
bd696223aaf5404987df11832b4c17c916b9690f
/nlp_sample/fugashi_generic_tagger_sample/main.py
575cf1bca8948151845f4b8df85265ae91a5b162
[]
no_license
wararaki718/scrapbox3
000a285477f25c1e8a4b6017b6ad06c76f173342
9be5dc879a33a1988d9f6611307c499eec125dc2
refs/heads/master
2023-06-16T08:46:32.879231
2021-07-17T14:12:54
2021-07-17T14:12:54
280,590,887
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
from fugashi import Tagger, GenericTagger def main(): text = 'softbank' tagger = Tagger() gtagger = GenericTagger() print('Tagger:') print(tagger.parse(text)) for word in tagger(text): print(word.surface) print(word.feature) print() print('GenericTagger:') print(g...
[ "ky7.ott.w@gmail.com" ]
ky7.ott.w@gmail.com
8fee0875e9f03699c64938e05824c350f5061964
b9c7c3433675278dcbd6e52056a299ccd2a2a122
/sword/match.py
e41aa854102ee47f79dadfacd3c8871d0e16ec4b
[]
no_license
smileshy777/practice
3d6b8412138c94e75810298bc2dcde52d374826b
a0bc7d7fb9fe2db958c3ee2671df927ce136ecff
refs/heads/master
2020-03-31T15:44:45.868628
2018-11-29T05:08:02
2018-11-29T05:08:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
class Solution: # s, pattern都是字符串 def match(self, s, pattern): len_s = len(s) len_p = len(pattern) if len_s == 0 and len_p == 0: return True if len_s > 0 and len_p == 0: return False if len_p > 1 and pattern[1] == '*': if len_s > 0 and...
[ "13141462249@163.com" ]
13141462249@163.com
58bf681835fc8bcacc6ed3c4562095a2cf0b809d
d1c67f2031d657902acef4411877d75b992eab91
/swagger_client/models/xmpp_integration.py
649d87606c8f04247adedf1b96b0924b65914aa9
[]
no_license
Certn/opsgenie-python
c6e6a7f42394499e5224d679cc9a449042fcf9c3
bd5f402f97d591e4082b38c938cbabca4cf29787
refs/heads/master
2023-01-01T10:45:13.132455
2020-10-27T17:40:01
2020-10-27T17:40:01
307,769,432
0
0
null
null
null
null
UTF-8
Python
false
false
28,507
py
# coding: utf-8 """ Opsgenie REST API Opsgenie OpenAPI Specification # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class XmppIntegration(object): """NOTE: This class is auto...
[ "john@oram.ca" ]
john@oram.ca
6b341716384a6651d588424bc560a8f0568282bc
fc089cc607c2ae12108c74541605c5de3ff6b162
/virtual/bin/gunicorn
1e2bb101cb1b94145b1ae2942f40a455337f8173
[ "MIT" ]
permissive
sirrotich/Awwards
bb5b77a1fe160ca3604eacace3522b17c4c4dfa5
121071b11fe70c7e9f74a52038344219f313f1e1
refs/heads/master
2022-12-11T08:05:39.801685
2019-05-28T15:07:57
2019-05-28T15:07:57
188,370,445
0
0
null
2022-12-08T05:10:33
2019-05-24T07:04:01
Python
UTF-8
Python
false
false
256
#!/home/kipngeno/Documents/awwwards/virtual/bin/python # -*- coding: utf-8 -*- import re import sys from gunicorn.app.wsgiapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "rotichtitus12@gmail.com" ]
rotichtitus12@gmail.com
790b229755e6c18385e27601143ce131475c697b
a1cd1135cd7bc3255e29632fe6c025cffd231285
/rpc/retrying.py
34ab31def9d6707643ec0c70eb3fa9ad7a504739
[]
no_license
liguopeng80/gcommon.py27
5f8d3ac9fe85c7134cfbb557ec06a61184b58fd1
900cd0717c7a9db90793752fd5cbf9a576286497
refs/heads/master
2023-08-11T16:01:16.566945
2021-10-10T07:08:54
2021-10-10T07:08:54
404,542,040
2
1
null
null
null
null
UTF-8
Python
false
false
3,579
py
#!/usr/bin/python # -*- coding: utf-8 -*- # created: 2015-05-19 """对失败的操作进行重试 TODO: 为 RPC 调用增加超时检测 - 当 rabbitmq 或者 rpc server 出现问题时,客户端不能长久等待。 """ import time import logging from twisted.internet.defer import inlineCallbacks, maybeDeferred, returnValue from gcommon.rpc import RpcServerException from gcommon.utils.c...
[ "liguopeng@liguopeng.net" ]
liguopeng@liguopeng.net
fe3d52f03d805c065f4d5d608a4a3edca9d48773
739e19aea52a747a818ccaa1e941f11328ca9783
/PatternRecognitionPractice/opencv-python/opencv_test0.py
c32ce4c4f68f1071569db1fa4e71bb065257ddeb
[]
no_license
MoCuishle28/python-practice
d12edb4866361f55354da53875475f05c209254c
cc557fcdd3fec2cb67efeb1f875b4d7d9d85b5b4
refs/heads/master
2020-03-28T03:52:36.060049
2019-01-19T11:53:15
2019-01-19T11:53:15
147,677,371
0
0
null
null
null
null
UTF-8
Python
false
false
2,817
py
import cv2 as cv import numpy as np from matplotlib import pyplot as plt from sklearn.decomposition import PCA SZ=20 bin_n = 16 # Number of bins affine_flags = cv.WARP_INVERSE_MAP|cv.INTER_LINEAR # 使用二阶矩矫正图像 def deskew(img): m = cv.moments(img) if abs(m['mu02']) < 1e-2: return img.copy() skew = ...
[ "20164706@s.hlju.edu.cn" ]
20164706@s.hlju.edu.cn
e2f402bfc9e62ee0c6c90852bd8a66c383ce4be4
c09e0d3dd9105e131b5c9cc0c2076e7103263d9f
/bigiq/tests/unit/mock/procenv.py
5359764b2fe65685847374c18a884ad5ba39a9e9
[]
no_license
gundalow-collections/f5
693166aa8f270df37a763084d45d7f318b1c63e4
cdd14055c1615225e0050b6e7b47c38513bcd4c6
refs/heads/master
2020-07-24T05:51:08.722791
2019-09-16T20:11:07
2019-09-16T20:11:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,728
py
# (c) 2016, Matt Davis <mdavis@ansible.com> # (c) 2016, Toshio Kuratomi <tkuratomi@ansible.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of ...
[ "brian.coca+git@gmail.com" ]
brian.coca+git@gmail.com
5e33b27fa72491228a4057a288364b7805bb6d9e
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/자료구조_20200628162237.py
fbca173ec511a428e941dea3044ae6928b57b31c
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
# 자료구조의 변경 # 커피숍 menu = {"커피", "우유", "주스"} print(menu, type(menu)) menu = list(menu) print(menu, type(menu)) menu = tuple(menu) print(men)
[ "sangha0719@gmail.com" ]
sangha0719@gmail.com
ce4d41938b683c109eff56cd7cd1d6056ec7302c
14aed8f5a144bd8b3833e7a9d5a1c8fddaeb1590
/sparkSQL/venv/bin/pip3.6
dbb1c08a0d63fc2102890a5377d12067f5fc537d
[]
no_license
TorpidCoder/BigData-Autoscaling
2cc393fcb05b9b09a637302770bdf367f162425f
7ee3538c7ccf877fd6868698891f29dcd9947df4
refs/heads/master
2021-06-22T11:02:27.667140
2020-12-04T04:14:10
2020-12-04T04:14:10
159,915,768
0
0
null
null
null
null
UTF-8
Python
false
false
414
6
#!/Users/sahilnagpal/PycharmProjects/sparkSQL/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0...
[ "sahilexemplary@gmail.com" ]
sahilexemplary@gmail.com
3686c5bf4ae77bfa15f56b8cddff65549105c820
ded0c895f6e1f8853f2222ae498bdc7ae52ef0e4
/week-09/colori_quad.py
727580ef3a1faf286bfeb82c09060522fe57c161
[]
no_license
LorenzoLMP/TD2015
6a8846b4592b32db81338b8522a10a2dc52531c1
e39b51d48149d07c3cea682a02eeec4e69ffbabd
refs/heads/master
2021-01-17T14:47:20.378339
2016-05-31T11:33:50
2016-05-31T11:33:50
43,302,288
0
0
null
2015-09-28T13:58:46
2015-09-28T13:23:45
null
UTF-8
Python
false
false
4,251
py
from pylab import * from scipy import * from scipy import optimize from scipy import misc import math data = genfromtxt('col_mon_precisi_3.txt') coeff = genfromtxt('coeffic_matrix_315') xdata = data[:,0] ydata = data[:,1] cr = coeff[:,0] cg = coeff[:,1] cb = coeff[:,2] #zdata = sfasa #############################...
[ "lorenzo.perrone.lmp@gmail.com" ]
lorenzo.perrone.lmp@gmail.com
6bcffb1fb992aa4432f982b6faf84cacf761eb87
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2824/60891/284880.py
8c2661ffda0fed50b0e0e907e437fd1d941f63fa
[]
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
500
py
n_t_c = [int(i) for i in input().split()] n = n_t_c[0] t = n_t_c[1] c = n_t_c[2] p = [int(i) for i in input().split()] list_index = [] for i in range(n): if p[i] > t: list_index.append(i) list_num = [] if len(list_index) == 0: ans = n - (c - 1) else: list_num = [list_index[0] - 0] for i in range...
[ "1069583789@qq.com" ]
1069583789@qq.com
882da9b06c3c8215bad47901f52fb0b1a2f538be
9e201dfe87446274995add9a1436d392ced616c9
/draco2/draco/__init__.py
0d19522fdb4d56bebbbeb78c05eaa465d8784dc1
[ "MIT" ]
permissive
geertj/draco2
9da00f68016a16a82be9c7556e08ca06611bba9b
3a533d3158860102866eaf603840691618f39f81
refs/heads/master
2021-01-01T06:45:37.111786
2007-04-30T13:37:00
2007-04-30T13:37:00
2,787,375
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# vi: ts=8 sts=4 sw=4 et # # __init__.py: draco2.draco package definition # # This file is part of Draco2. Draco2 is free software and is made available # under the MIT license. Consult the file "LICENSE" that is distributed # together with this file for the exact licensing terms. # # Draco2 is copyright (c) 1999-2007 ...
[ "geertj@gmail.com" ]
geertj@gmail.com
9156bc3c57f454eadadfdd4973c2129250dd9c13
8246e9fbdecdb37651e0d09497fd9428e434f33c
/SubscriptionPlan/tests.py
5f2a8d977297e1657b4b0c439101b8974c6bc3cc
[]
no_license
rajeev1234/Landing-Page
479995026ab01fc504a1e9502e7763dc04266009
4bfd22a6a1776907ba78b3dc9037064c820b049e
refs/heads/master
2020-03-08T13:37:20.253252
2018-04-05T06:33:26
2018-04-05T06:33:26
128,162,519
0
0
null
null
null
null
UTF-8
Python
false
false
10,609
py
from django.test import TestCase,SimpleTestCase from django.urls import reverse,reverse_lazy from .models import SubscriptionPlan from django.conf import settings from django.contrib.auth import get_user_model from django.utils import timezone # Test Class for SubscriptionPlan Application class SubscriptionPlanTest...
[ "ccrcian.rajeev1@gmail.com" ]
ccrcian.rajeev1@gmail.com
0a724a2e65e58755be2cbd93ecc23710dc2da8e5
0d4139330dda389664df2e79b397f8153e6c1189
/backend/site_management_25562/urls.py
726931ba898e10c60a17c2b354ef452b4cc09a43
[]
no_license
crowdbotics-apps/site-management-25562
d7a4d08ed286838814d892096510ca642e59a574
704d21f8eeec8f4bc20d4478e34e5196e76c03d0
refs/heads/master
2023-04-08T11:40:14.414118
2021-04-08T18:13:21
2021-04-08T18:13:21
356,007,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,253
py
"""site_management_25562 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...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
edcb661a53d5e24b760420759edcc68d6943de55
0523136530c8caf2a7aacbc52aae43dc8998ca18
/ship.py
5b3fb775270d8b76d0692d8664f7cd786c3d7505
[]
no_license
irfan87/alien_invasion_pygame
1d90eb1914e16a84b8318af92dd102f3a4201313
71587cbb13d5ea157e325e19c439ceb94c029d5d
refs/heads/master
2020-07-06T17:13:44.520471
2019-08-20T03:12:58
2019-08-20T03:12:58
203,088,226
0
0
null
2019-08-20T03:12:59
2019-08-19T03:00:27
Python
UTF-8
Python
false
false
1,519
py
import pygame from pygame.sprite import Sprite class Ship(Sprite): # a class to manage the ship def __init__(self, ai_game): # initialize the ship and set its statring position super().__init__() self.screen = ai_game.screen self.screen_rect = ai_game.screen.get_rect() ...
[ "nerve2009@yahoo.com" ]
nerve2009@yahoo.com