blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e36507f3d63923eb57400ad49739a789d61554b9 | 28de23d33b3bb699b2ded093e650f9862806f0be | /modules/test/test_wuvt.py | 5271f9d2d5e1d3bf8f22a90d9b2c75906492ba5a | [] | no_license | LordTroan/phenny | e4356e74e691953119c717d47bd23967ed755e37 | c702d7bc59e82fc1f23badd366081df9c3fc3dd6 | refs/heads/master | 2021-01-18T18:48:05.708630 | 2012-06-05T04:42:56 | 2012-06-05T04:42:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | """
test_wuvt.py - tests for the wuvt module
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
"""
# add current working directory to path
import sys
sys.path.append('.')
import re
import unittest
from mock import MagicMock
from modules.wuvt import wuvt
class TestWuvt(unittest.TestCase):
def setUp(self):
... | [
"mutantmonkey@mutantmonkey.in"
] | mutantmonkey@mutantmonkey.in |
9c8378a5436a2f7524f340d6729e66b5a01dc487 | 38d295459f3a2477dbff5b0599a2ae0b5f4a918b | /App_40/node_modules/agenda/node_modules/mongodb/node_modules/kerberos/build/config.gypi | 59035b4bb11f11c04e61c68c4d82dec774ae74e6 | [
"MIT",
"Apache-2.0"
] | permissive | vibhatha/mean | b70ddf783d2ac8cc144c6655a5bb6ec14990f12f | ad394cfbc66d7694280925f81e9e0104a4e1623d | refs/heads/master | 2016-09-05T10:48:57.335816 | 2015-12-01T19:37:31 | 2015-12-01T19:37:31 | 38,182,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"vibhatha@gmail.com"
] | vibhatha@gmail.com |
7a25a18a36bce3e2874cf0734a3ea45b0cd8a92b | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_7173.py | 5ae6c8b76296c9bc93091f57eeacd6642bcf92d5 | [] | 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 | 215 | py | # Django or python manipulate email addresses and reason about domains
>>> import tldextract
>>> tldextract.extract('foo@bar.baz.org.uk')
ExtractResult(subdomain='bar', domain='baz', tld='org.uk')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
542fbeff58119b8639a419115c0aec3e37f1700b | e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a | /Systest/tests/DHCP_FUN_REL_003.py | e3237c1b885ed88647af62334fc16c0439b03c7d | [] | no_license | muttu2244/MyPython | 1ddf1958e5a3514f9605d1f83c0930b24b856391 | 984ca763feae49a44c271342dbc15fde935174cf | refs/heads/master | 2021-06-09T02:21:09.801103 | 2017-10-10T07:30:04 | 2017-10-10T07:30:04 | 13,803,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,621 | py | #!/usr/bin/env python2.5
"""
#######################################################################
#
# Copyright (c) Stoke, Inc.
# All Rights Reserved.
#
# This code is confidential and proprietary to Stoke, Inc. and may only
# be used under a license from Stoke.
#
####################################################... | [
"muttu2244@yahoo.com"
] | muttu2244@yahoo.com |
cc255fea3eb314dd5de652f9fbdd4c6b64bacd48 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634697451274240_1/Python/bananaphone/2.py | 1fe9a4cd0843f042be335dbc4d3a6e03c2f532a3 | [] | 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 | 328 | py | T = int(raw_input())
def doprob():
read = raw_input()
start = read[0]
current = start
length = 1
for i in read:
if i == current:
continue
current = i
length += 1
if current == '+':
length -= 1
# if length == 0:
# return 0
return length
for qq in xrange(T):
print "Case #" + str(qq+1) + ": " + str(d... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
a55cd74ca8710f5c4bff9835f8b38bd3baea5d72 | 5c3d487c1f48e33c507a8aca1c2fc178cf95e17f | /interview/leet/761_Special_Binary_String_v2.py | cc2f94a5639966b3f2d152855610f267dc86dc5d | [
"MIT"
] | permissive | eroicaleo/LearningPython | 52f9bcda796ea8fcc40a2971f30102d2847c93a4 | ebebd1104b1947324fbaae304b44465f80803c8b | refs/heads/master | 2023-07-20T04:34:51.465451 | 2023-07-13T06:43:31 | 2023-07-13T06:43:31 | 14,948,231 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | #!/usr/bin/env python3
class Solution:
def makeLargestSpecial(self, S: str) -> str:
self.ix = 0
def dfs(S, level):
tokens, sub_level_done = [], 0
print(f'{" "*level}before level = {level}, S = {S}, self.ix = {self.ix}, tokens = {tokens}')
while self.ix < len(S):... | [
"eroicaleo@gmail.com"
] | eroicaleo@gmail.com |
cd511e03a93a083d4439ca686fdd3a5a96f3f1d3 | 0987f31e64bcacb41ba3a1e20054d7b8ac0d7346 | /contests/abc160/f.py | 6d09d630608f1808398bd9d2ef8dd10b33a6f7a2 | [] | no_license | masakiaota/kyoupuro | 81ae52ab3014fb2b1e10472994afa4caa9ea463b | 74915a40ac157f89fe400e3f98e9bf3c10012cd7 | refs/heads/master | 2021-06-27T04:13:52.152582 | 2020-09-20T03:21:17 | 2020-09-20T03:21:17 | 147,049,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | import sys
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline
def read_ints():
return list(map(int, read().split()))
def read_a_int():
return int(read())
def read_tuple(H):
'''
H is number of rows
'''
ret = []
for _ in range(H):
ret.append(tuple(map(int, read().split())))... | [
"aotamasakimail@gmail.com"
] | aotamasakimail@gmail.com |
3c235f49514a9af952f5569bfccf589dda7c6eeb | bbf874cf4abb20e7ec5c66e808e97ae6f2043c3f | /0X0C-python-almost_a_circle/models/square.py | 51de7879982594927dfb0f2e43d3d6035392ea02 | [] | no_license | imperfectskillz/holbertonschool-higher_level_programming | 105fd80c2bea8fbb60eb786ce9019b3f63188342 | 704e99b29125d6449db32b9d52ede443318df620 | refs/heads/master | 2021-09-14T10:44:22.551896 | 2018-05-12T03:38:59 | 2018-05-12T03:38:59 | 113,130,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #!/usr/bin/python3
"""
Module contains class Square
"""
from models.rectangle import Rectangle
class Square(Rectangle):
"""
class Square
"""
def __init__(self, size, x=0, y=0, id=None):
"""
initalizes above
"""
super().__init__(size, size, x, y, id)
def __str__(se... | [
"j.choi.89@gmail.com"
] | j.choi.89@gmail.com |
c477e171fce91afdea998ee0e40e5fda535a8134 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry/api/serializers/models/doc_integration_avatar.py | 0e261b4a3a0495391b95df2cdae0cee389599411 | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 504 | py | from typing import MutableMapping
from sentry.api.serializers import Serializer, register
from sentry.models import DocIntegrationAvatar
from sentry.utils.json import JSONData
@register(DocIntegrationAvatar)
class DocIntegrationAvatarSerializer(Serializer):
def serialize(
self, obj: DocIntegrationAvatar,... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
9c422f89610ca5d94f19c1460bcaeb9e9d1aba2c | ffc3984194d723774dd01a7e83fa96b21c36d33c | /bs_sample.py | fa1be494f9d8a71228bf29187ceb16154d07267c | [] | no_license | suhjohn/Python-Study | 7aa430d79d3ff4c1161ab10f136b75b9ec53f6e4 | f18531b82ac6b550a9c3eaac3898ef4364cd8961 | refs/heads/master | 2021-07-05T14:00:44.950339 | 2017-09-30T14:34:24 | 2017-09-30T14:34:24 | 103,229,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from bs4 import BeautifulSoup
f = open('sample.txt', 'rt')
source = f.read()
soup = BeautifulSoup(source,'lxml')
print(soup.prettify())
| [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
451a9d5dd1951cc36ad91c25005bf8a8843f0c9f | 30565cf0e75783f3d342202ce61807698d4906e0 | /scripts/extract_keywords.py | 3bff74666a9f918c7c201c481b80c2a1bf6bc83b | [] | no_license | medialab/polarisation-espace-public | 428623b2787d9d601df2c11d076713f13ce4f4e7 | a5bb9687b6e9091c982f81903fc1afaf645b4c07 | refs/heads/master | 2022-05-25T08:59:36.410966 | 2022-05-23T08:47:47 | 2022-05-23T08:47:47 | 126,503,536 | 0 | 0 | null | 2018-11-21T10:10:21 | 2018-03-23T15:21:57 | Python | UTF-8 | Python | false | false | 1,547 | py | #!/usr/bin/env python3
import csv
from collections import defaultdict
from urllib.parse import urlparse
# Parameters
INPUT_FILE = './data/sources_mediacloud.csv'
DEBUG = False
# NOTE: blogs.mediapart is problematic... being in both inclusion/exclusion
PROBLEMATIC_HOSTS = frozenset([
'blogs.',
'blogspot',
... | [
"guillaumeplique@gmail.com"
] | guillaumeplique@gmail.com |
6f297f154dcb204cd2029d03d0e9dd0ced72cc37 | 29f8b7f92eb22cc3134a16c439d3180e254df4bb | /chp17_flasktaskr_part09/project/tasks/views.py | 07cfd074dea3e9d5725219ee8496249b27b2cec0 | [] | no_license | Hemie143/realpython2 | 7df80dd5f61ce7cd8c31b8bf78111b8507cbdb36 | b8535ffe97594e1b18233bcd9aa0de664257cb09 | refs/heads/master | 2022-12-12T04:51:53.120131 | 2021-01-03T19:52:32 | 2021-01-03T19:52:32 | 208,735,855 | 0 | 0 | null | 2023-08-17T05:45:32 | 2019-09-16T07:22:16 | Python | UTF-8 | Python | false | false | 3,168 | py | import datetime
from functools import wraps
from flask import flash, redirect, render_template, \
request, session, url_for, Blueprint
from .forms import AddTaskForm
from chp14_flasktaskr_part07.project import db
from chp14_flasktaskr_part07.project.models import Task
################
#### config ####
##########... | [
"hemie143@gmail.com"
] | hemie143@gmail.com |
b238e6a904ba088c4713fad8772a0917042a5db6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03296/s543531293.py | 8506d7aaa131dc9339cb85e25bdb34ac7ba85e65 | [] | 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 | 520 | py | N = int(input())
a = list(map(int, input().split()))
ans = []
count = 0
for i in range(0,N):
if i == 0:
count = 1
elif i == N-1:
if a[i] == a[i-1]:
count += 1
ans.append(count)
else:
ans.append(count)
count = 1
ans.append(count... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e48d0f2931eaf88234bc666fc8c46f5d8940da0c | 51d348426c6e5fa79f2e77baf59bdbf8357d9f12 | /week10/HakerRank/6.py | b25ef65eba239debad244d853e25312dd352eb6b | [] | no_license | Zhansayaas/webdev | c01325b13abf92cef13138d7ffc123cf9bc4f81a | dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f | refs/heads/main | 2023-04-10T23:33:30.469465 | 2021-04-17T10:21:53 | 2021-04-17T10:21:53 | 322,049,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # Complete the solve function below.
def solve(s):
for i in s.split():
s = s.replace(i,i.capitalize())
return s
if __name__ == '__main__':fptr = open(os.environ['OUTPUT_PATH'], 'w')
s = input()
result = solve(s)
fptr.write(result + '\n')
fptr.close()
| [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
addefad5ca9698f2983e129b6753bfe6c453da05 | 9120120ee0b52f24c627759b0901afbc55347529 | /pygis_src/ch02_gdal/sec5_create_raster/test_2_create_x_x.py | 3f9e6d25d9dbaca801a3941aca09cb96d3e353ee | [] | no_license | xiaomozi/book_python_gis | d999b17833abe746a7be2683595f48b54071cd59 | 754fa10c17a20506146d8f409e035e4d4869ad3e | refs/heads/master | 2020-03-11T18:36:40.739267 | 2018-01-04T16:31:23 | 2018-01-04T16:31:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
###############################################################################
import gdal
driver = gdal.GetDriverByName( 'GTiff' )
dst_filename = '/tmp/x_tmp.tif'
dst_ds = driver.Create( dst_filename, 512, 512, 1, gdal.GDT_Byte )
#########################################... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
d757e041d478f07d9f189c85d7d702d03a90b65e | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /ps프로젝트/Gd/책나눠주기.py | bcadd77863d37ac61df814be6726ea3ce974234e | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | if __name__ == '__main__':
T=int(input())
for _ in range(T):
n,m=map(int,input().split())
arr=[]
for _ in range(m):
a,b=map(int,input().split())
arr.append((a,b))
arr.sort(key=lambda x:x[1])
res=[0]*(n+1)
for s,e in arr:
fo... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
2e712bda8928bcb667a32cc67ddc2d6db86ba260 | fbb141c9b99c4c08ce2c0acfe13630d694d98744 | /3-chain/10-insert_sort_list.py | 6ad13954cad05360f141307c572a805e5c4db4d2 | [] | no_license | huixian3/algorithm017 | 1534bc8a0364595b056e0f346cfe9fa8b8fee3bd | f43c99dc7810de863f8cd79115e272ac65ce9257 | refs/heads/master | 2023-04-02T07:10:03.670003 | 2021-04-13T14:38:36 | 2021-04-13T14:38:36 | 297,989,771 | 0 | 0 | null | 2020-09-23T14:05:41 | 2020-09-23T14:05:40 | null | UTF-8 | Python | false | false | 1,678 | py | class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
# 头插法 需多复习,没看太明白
'''
147. 对链表进行插入排序
插入排序 时间复杂度O(N^2)
需要知道插入位置的前一个节点所以要判断next指针
'''
class Solution(object):
def insertionSortList(self, head):
"""
:type head: ListNode
:rtype: ListNode
... | [
"zhanhuixian@meituan.com"
] | zhanhuixian@meituan.com |
6a24148d02b99d8456bd6059f35565a294418816 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/scaleform/daapi/view/meta/fortwelcomeviewmeta.py | f4116a91f37f5f2643d31a2d68c19fbbf6ef77f6 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 595 | py | # 2015.11.18 11:55:04 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FortWelcomeViewMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class FortWelcomeViewMeta(BaseDAAPIComponent):
def onViewReady(self):
self._printOve... | [
"info@webium.sk"
] | info@webium.sk |
249d8379acdb90ecc7eeec1a3455beb22a009726 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2699/60648/318906.py | 4abcd8423ee106a207db4c2dd7b16026d8b8b0f8 | [] | 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 | 310 | py | n=int(input())
s=''
for i in range(n):
s+=input()
if s=='mom omomom ommnomoom':
print(3)
print(mom)
print(mom)
print(oom)
else:
print(s) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
b02064ad03d568a5c295ad0dbb19f1cb14d108ff | 5f7c40860e584cb86e140d0819397a75f93e28ea | /word_count.py | 4404aea85f2758a0adccbce8c9c2bd0150858dd1 | [] | no_license | bailijiang/Python_exercise | cb149db1bc770fc684bf461ebae1b6dd53bf10a5 | 744a2a3b44036495ae28ec87fea98c04d008b099 | refs/heads/master | 2021-09-02T03:30:21.512752 | 2017-12-29T23:39:05 | 2017-12-29T23:39:05 | 114,254,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | __author__ = 'Bryan'
#coding=utf-8
def count_words(filename):
try:
with open(filename) as file_obj:
contents = file_obj.read()
except FileNotFoundError:
msg = "Sorry, the file " + filename + " does not exsit."
print(msg)
else:
words = contents.split()
nu... | [
"bailijiang@hotmail.com"
] | bailijiang@hotmail.com |
d204a9ba4b9a26326219f9faa023ce656a460c10 | 285e244795836b9ab725383f34bac5f1d1fd08e7 | /Competitive Coding/interesting_numbers.py | 2688d15698987c05b83deb29702f597b21613390 | [] | no_license | Swarajk7/Programs | 2ef5d98d9d1fddefcde6147af7e9404f229f759f | 9fb7224058c6d20963d3562a8bc16124dc2e7742 | refs/heads/master | 2020-05-16T08:41:50.251925 | 2017-05-19T11:29:41 | 2017-05-19T11:29:41 | 32,454,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | n=int(input())
a=map(int,raw_input().split())
a.sort()
diff=[0]*(n-1)
if n==1: print "0 0"
else:
for i in range(0,n-1):
diff[i]=a[i+1]-a[i]
x=diff.count(min(diff))
ans1=1
ans2=1
if x==n-1:
ans1=n*(n-1)/2
ans2=n*(n-1)/2
else:
#print diff
y=min(diff)
... | [
"swarajk7@gmail.com"
] | swarajk7@gmail.com |
780914be772c680a00fe840ecb238a20001ff0a7 | a893d00bae0c0fa7db1d42cd14c368033e1c3d3f | /5-4/toppings.py | 40180010e9f171ef15b6982333eb166c2a419ca0 | [] | no_license | taozhenting/python_introductory | 71ac4b5fe4aa45a9008c9510c77e34e31226f849 | f88afa0b4232e7ba79b42c370f2266fde85e7462 | refs/heads/master | 2020-04-27T06:02:20.169314 | 2019-05-22T09:17:40 | 2019-05-22T09:17:40 | 174,096,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #简单for循环
requested_toppings = ['mushrooms','green peppers','extra cheese']
for requested_topping in requested_toppings:
print("Adding " + requested_topping + ".")
print("\nFinished making your pizza!")
#青椒用完
requested_toppings = ['mushrooms','green peppers','extra cheese']
for requested_topping in requested_toppin... | [
"taozt@ichile.com.cn"
] | taozt@ichile.com.cn |
c314c56b7330ab1942f4692f8ea8e198b650304a | 4e007a75031c6e20c8a8f1de54be4442d1699b0a | /glue/core/data_factories/tests/test_misc.py | 8be3639c7f2f49dee47b4c39b27e03b12c92e432 | [
"BSD-3-Clause"
] | permissive | tiagopereira/glue | 9e77aa1936cba3ad70fff34c6ceea0e5b01c0983 | 85bf7ce2d252d7bc405e8160b56fc83d46b9cbe4 | refs/heads/master | 2020-06-28T02:22:29.828115 | 2019-08-01T20:54:35 | 2019-08-01T20:54:35 | 200,117,440 | 0 | 1 | NOASSERTION | 2019-08-01T20:50:05 | 2019-08-01T20:50:04 | null | UTF-8 | Python | false | false | 487 | py | from __future__ import absolute_import, division, print_function
import os
from glue.core import data_factories as df
from glue.tests.helpers import requires_astropy
DATA = os.path.join(os.path.dirname(__file__), 'data')
@requires_astropy
def test_load_vot():
# This checks that we can load a VO table which in... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
3399af08c1f59bf6dc1737f8ca3868b3550d22ca | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.KTU/Sun-ExtA_16/pdf_to_json_test_Latn.KTU_Sun-ExtA_16.py | d8a96c6bb59825f62bef9634682e882ceb2d4f6d | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.KTU/Sun-ExtA_16/udhr_Latn.KTU_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
86608accc1694ee74d3fc8518bbc4a350dbc18dd | e755453c853ae400d94f562ad215b59166b63782 | /tests/views_tests/values_view_tests/test_len.py | 8c80d18c5c7cb8ff0787e696c73abba7010806d8 | [
"MIT"
] | permissive | lycantropos/dendroid | 0cb3e276dd9c476b82b0b7a17c25c2e05616a993 | fd11c74a395eb791caf803c848805569869080f6 | refs/heads/master | 2023-04-07T11:07:55.550796 | 2023-03-27T00:46:03 | 2023-03-27T00:46:03 | 215,369,321 | 0 | 1 | MIT | 2020-09-24T05:02:02 | 2019-10-15T18:29:36 | Python | UTF-8 | Python | false | false | 331 | py | from hypothesis import given
from tests.utils import (ValuesView,
equivalence)
from . import strategies
@given(strategies.values_views)
def test_properties(values_view_: ValuesView) -> None:
result = len(values_view_)
assert result >= 0
assert equivalence(bool(result), bool(valu... | [
"azatibrakov@gmail.com"
] | azatibrakov@gmail.com |
ff849fd72a4bb6972cbd34fa83863f3e15304775 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03523/s566237496.py | 7a2b110dfa1d3a6cba05b48a8077cf3ea6a8fc9b | [] | 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 | 339 | py | S = input()
if S == 'KIHBR' or S == 'KIHBRA' or S == 'AKIHBR' or S == 'KIHABR' or S == 'KIHBAR' or S == 'AKIHABR' or S == 'AKIHBAR' or S == 'AKIHBRA' or S == 'KIHABAR' or S == 'KIHABRA' or S == 'KIHBARA' or S == 'AKIHABAR' or S == 'AKIHABRA' or S == 'AKIHBARA' or S == 'KIHABARA' or S == 'AKIHABARA':
print('YES')
el... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
458260a5770f14b06445f8ab7e907081ba4a0e5b | ca55dcaa64ea9db4068e13091321cfebecc0ff41 | /codeUp/codeUp100/1061.py | d3a3a245f7c4453903ab7801a1d0f9ab03b7cca4 | [] | no_license | gomtinQQ/algorithm-python | 8fb8343594b945099ae2a4dfa794ecb47e54ab0b | 751562922b66e335f621d366bb73dacdc7125140 | refs/heads/master | 2022-12-07T23:05:44.535593 | 2020-08-21T12:29:58 | 2020-08-21T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 359 | py | '''
1061 : [기초-비트단위논리연산] 비트단위로 OR 하여 출력하기(설명)
입력된 정수 두 개를 비트단위로 or 연산한 후 그 결과를 정수로 출력해보자.
비트단위(bitwise) 연산자 |(or, vertical bar, 버티컬바)를 사용하면 된다.
'''
x, y = input().split()
x = int(x)
y = int(y)
result = x|y
print(result) | [
"minhyeonlee1@gmail.com"
] | minhyeonlee1@gmail.com |
8fcad89ba57e050a0e7e4ae03a5ff368078c5b9c | ffa5fdcda15cd6132f286edb5023876aa91ed7f6 | /Plotly/05. Box Plots/py_code_3.py | 3165bd996411ee2dcaad9e33c0bb55f9c0f68054 | [] | no_license | Slothfulwave612/Python | b5684915a9cf8ffdeb60f621d571d576ad6fd322 | a61b27b3cc6f7b39690027ba480a14ca6bc20418 | refs/heads/master | 2023-04-10T04:50:59.401004 | 2021-04-17T07:33:38 | 2021-04-17T07:33:38 | 264,513,613 | 0 | 1 | null | 2021-04-17T07:33:39 | 2020-05-16T19:42:02 | Jupyter Notebook | UTF-8 | Python | false | false | 897 | py | '''
Author: @slothfulwave612
Box plot to compares sample distributions of three-letter words in
the works of Quintus Curtius Snodgrass and Mark Twain
'''
## importing libraries
import plotly.offline as pyo
import plotly.graph_objs as go
## the data points
snodgrass = [.209,.205,.196,.210,.202,.207,.224,.223,.220,.20... | [
"noreply@github.com"
] | Slothfulwave612.noreply@github.com |
0e2cfddc7114fd48cf34896507ffdecf64672cbe | 571a728adb695a4939901abc5db45ac2ad422bae | /code/data_set.py | 27f4739aa67f2665823c382e417a7d26dbd09cc2 | [] | no_license | bcaitech1/p2-klue-dlrgy22 | 2dfc392e48713567d37bddf9fa0c7e518d66aadc | 3695bb881cbbf58d63d1f2018e0ffc1110f055b2 | refs/heads/main | 2023-04-15T19:08:53.564548 | 2021-04-26T06:02:53 | 2021-04-26T06:02:53 | 360,470,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | import os
import pandas as pd
import torch
from torch.utils.data import Dataset
from torch.utils.data import DataLoader
from transformers import AutoTokenizer, BertForSequenceClassification, Trainer, TrainingArguments, BertConfig, ElectraForSequenceClassification, AdamW
class RE_Dataset(Dataset):
def __init__(self... | [
"dlrgy22@gmail.com"
] | dlrgy22@gmail.com |
12b3b76ea34a6257e46ef38db4e051e67d38032c | 25e99a0af5751865bce1702ee85cc5c080b0715c | /python/src/ptt/pttbase.py | e97991138f1a2fea8db58a5e633a52f456dd97b5 | [] | no_license | jasonblog/note | 215837f6a08d07abe3e3d2be2e1f183e14aa4a30 | 4471f95736c60969a718d854cab929f06726280a | refs/heads/master | 2023-05-31T13:02:27.451743 | 2022-04-04T11:28:06 | 2022-04-04T11:28:06 | 35,311,001 | 130 | 67 | null | 2023-02-10T21:26:36 | 2015-05-09T02:04:40 | C | UTF-8 | Python | false | false | 2,371 | py | # coding=UTF-8
import time
from datetime import datetime
import requests
import time
import sys
from bs4 import BeautifulSoup
requests.packages.urllib3.disable_warnings()
Board = ''
payload={
'from':'/bbs/'+ Board +'/index.html',
'yes':'yes'
}
def getPageNumber(content) :
startIndex = content.find('index')
... | [
"gigi"
] | gigi |
e6c3eaf133b518de070011f21d2920bd5bd4ec43 | 0a46b027e8e610b8784cb35dbad8dd07914573a8 | /scripts/venv/lib/python2.7/site-packages/cogent/maths/stats/histogram.py | 8c6588ce5b6191b867c2de41b84d0dcbf46a5141 | [
"MIT"
] | permissive | sauloal/cnidaria | bb492fb90a0948751789938d9ec64677052073c3 | fe6f8c8dfed86d39c80f2804a753c05bb2e485b4 | refs/heads/master | 2021-01-17T13:43:17.307182 | 2016-10-05T14:14:46 | 2016-10-05T14:14:46 | 33,726,643 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | #!/usr/bin/env python
"""Provides Histogram, which bins arbitrary objects.
"""
from cogent.maths.stats.util import Freqs
__author__ = "Sandra Smit"
__copyright__ = "Copyright 2007-2012, The Cogent Project"
__credits__ = ["Sandra Smit", "Rob Knight"]
__license__ = "GPL"
__version__ = "1.5.3"
__maintainer__ = "Sandra Sm... | [
"sauloal@gmail.com"
] | sauloal@gmail.com |
6ad7868e9d8adcc6e31c8874ea6317e3b4e8abc0 | 1c21fa248091e31c362b95afafc5021211e85e63 | /invensis_pmc/inhouseapp/middleware.py | d94db034d3e8aa83d1185ffa194cd498e8171c35 | [] | no_license | anudeepnaidu95/dev5 | 3d3252a51fccbb794e78a91681708e1b3c1ce0d4 | 7351244b79be242aa2cad36dbe1adca22a744edc | refs/heads/master | 2021-01-20T12:28:07.286078 | 2017-05-05T11:08:37 | 2017-05-05T11:08:37 | 90,365,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from inhouseapp.logic import ViewPage
class CoreMiddleware(object):
def process_request(self, request):
page_logic = ViewPage(request)
page_logic.store_request()
return None # Continue processing request
| [
"anudeepnaidu95@gmail.com"
] | anudeepnaidu95@gmail.com |
15992887749792a91893efdc868b466abfc69271 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/10/43/17.py | a3634453184472db4862522e0d3ba5512728d8a8 | [] | 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 | 677 | py | f = open('c.in', 'r')
T = int(f.readline())
for t_no in range(T):
n = int(f.readline())
P = []
A = [[0] * 102 for x in range(102)]
for ii in range(n):
x1, y1, x2, y2 = [int(x) for x in f.readline().split()]
for i in xrange(x1, x2 + 1):
for j in xrange(y1, y2 + 1):
A[i + 1][j + 1] = 1
sol... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
00210397585e0607e792cb67b96b608fee73e76f | cf57cd3355471f035ca429302742b4eb4baf1214 | /Desempenho/Arquivos_Desempenho/FAST/FAST_sift/parserSiftMemoria.py | 438545d16bfe401d998e5afd39a9f4238b7aec3b | [] | no_license | RobotColony-UEFS/feature-match | c56d78230d86948e5612a9645c71a0647eb94604 | ac421989aa1ee3893243122a0cf041b30e038a28 | refs/heads/master | 2022-11-27T15:31:20.570505 | 2020-08-04T19:24:17 | 2020-08-04T19:24:17 | 285,063,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | import math
nImg = 1
con=0
l9 = []
l11 = []
l12 = []
l13 = []
l15 = []
l16 = []
l18 = []
l20 = []
l21 = []
l22 = []
while(nImg <= 13):
teste = 1
while(teste <= 10):
linhas = []
f = open("img"+str(nImg)+"/teste"+str(teste)+".txt", 'r')
dados = f.readlines()
for inf in dados:
linhas.append(inf.split()) ... | [
"samuelreboucas07@hotmail.com"
] | samuelreboucas07@hotmail.com |
334b4b21258315b1668ea273a6ba95dcf8c9fafe | b8d89bd2b0a4464146b349c6702d13caf776127b | /resticus/models.py | 7d5af8bff08ae5449261576139d4963497432bab | [
"MIT"
] | permissive | ssteinerx/django-resticus | 7683d20dbf30fe68f5c5ab04219d40f6b8f4627b | 772a89d7bbe3ae72b2551f2dd5b823405460ddf8 | refs/heads/develop | 2020-12-24T06:44:54.998362 | 2016-11-11T14:17:39 | 2016-11-11T14:17:39 | 73,331,769 | 0 | 0 | null | 2016-11-10T00:06:54 | 2016-11-10T00:06:54 | null | UTF-8 | Python | false | false | 927 | py | import binascii
import os
from django.conf import settings
from django.db import models
from .compat import AUTH_USER_MODEL
from .settings import api_settings
class BaseToken(models.Model):
key = models.CharField(max_length=40, primary_key=True)
created = models.DateTimeField(auto_now_add=True)
def __s... | [
"derek.payton@gmail.com"
] | derek.payton@gmail.com |
31732184ab2b0c36adf08720f95635e46b04932c | b5ca0a2ce47fdb4306bbdffcb995eb7e6eac1b23 | /Python/Numpy/Transpose and Flatten/Transpose_and_Flatten.py | 93c5cc9d43ee42a4d10db5e735d7c517595f5de7 | [] | no_license | rsoemardja/HackerRank | ac257a66c3649534197b223b8ab55011d84fb9e1 | 97d28d648a85a16fbe6a5d6ae72ff6503a063ffc | refs/heads/master | 2022-04-14T22:46:03.412359 | 2020-04-03T07:44:04 | 2020-04-03T07:44:04 | 217,687,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import numpy
inp = input()
N, M = int(inp[0]), inp[1]
running_list = []
for i in range(0, N):
line = input().split()
running_list.append([c for c in line])
arr = numpy.array(running_list, int)
print((numpy.transpose(arr)), (arr.flatten()), sep='\n') | [
"rsoemardja@gmail.com"
] | rsoemardja@gmail.com |
1a7d696de64bb4c69bd8089c683504ab86905eff | 7bf39a70b426b376e15183333bf78344d48d7f0f | /subliminal/converters/addic7ed.py | cb892abccb1707b0bea4253c20fbd69fed1d0543 | [
"MIT"
] | permissive | porroto/subliminal | d00330351d54a4465088103f4e9a14f115fefc3b | 60610e203290c4d51fb72e6972e394cdce67e907 | refs/heads/master | 2020-12-28T23:05:16.315422 | 2013-10-29T11:43:20 | 2013-10-29T11:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from babelfish.converters.name import NameConverter
class Addic7edConverter(NameConverter):
def __init__(self):
super(Addic7edConverter, self).__init__()
self.from_addic7ed = {'Català': ('cat', None), 'Chinese (Simplified)': ('zho', N... | [
"diaoulael@gmail.com"
] | diaoulael@gmail.com |
c4ed03cb5064d49c1a530b18e305eb5c8fd697b0 | dbde211b68ba49790e664764cca6029790297f7c | /LeetCode/1209. Remove All Adjacent Duplicates in String II(Medium).py | eedd1b206ed37c671b248ba783b2f12276c8e3ed | [] | no_license | ineed-coffee/PS_source_code | 6706eb29e7d38336ee98875589596e760ab46686 | 4ecd0a40cc73207d19d43c558983943b86a929aa | refs/heads/master | 2023-05-22T07:34:15.407371 | 2021-06-14T09:59:44 | 2021-06-14T09:59:44 | 279,225,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | class Solution:
def removeDuplicates(self, s: str, k: int) -> str:
flag=1
while flag:
cnt=0
flag=False
adj=set()
for i,letter in enumerate(s):
if (not i) or (letter!=cur):
cur=letter
cnt=... | [
"leey93ssu@gmail.com"
] | leey93ssu@gmail.com |
72af8506cb60287f8f764fd18e135370a4a4a133 | 9b2255e0a474555d8a4d90f586e280d40224a181 | /apps/webtheme/templatetags/theme_tags.py | 91ab1936d210691d280546d404123a9e223cac2e | [] | no_license | rogeriofalcone/redirector | 85f496f7c3a3c755b2d9f86f90d25ace783842e4 | 8255be80ce4e3245317864dcc580a1ef68a7c244 | refs/heads/master | 2020-04-08T07:03:19.053680 | 2012-08-12T19:13:35 | 2012-08-12T19:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,790 | py | import re
from django.conf import settings
from django.template import Library, Node, TemplateSyntaxError
from django.utils.safestring import mark_safe
from webtheme.conf import settings as web_theme_settings
register = Library()
class GetThemeNode(Node):
def __init__(self, var_name, *args):
self.var_n... | [
"Roberto.Rosario.Gonzalez@gmail.com"
] | Roberto.Rosario.Gonzalez@gmail.com |
ed7a0c455a965c19802b9b25844fd26094b6eb05 | 5caee0aea844d1024dadb1a3a551ed347c4ce534 | /Amazon_interview/Array/array longest subsequent increasing order.py | e9654021cfc1f7af56df29cd1e93bea5f5aac8a4 | [] | no_license | Shikhar0907/Algo-and-data-structure-questions | 840c004acb93d7f97615d87fc8c69d73434b380d | 27d24cd18a9878cb59a81ef8b39aa4e31d8b8a7a | refs/heads/master | 2020-03-27T18:28:52.707843 | 2018-11-02T05:08:19 | 2018-11-02T05:08:19 | 146,924,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | N = len(X)
P = [0] * N
M = [0] * (N+1)
L = 0
for i in range(N):
lo = 1
hi = L
while lo <= hi:
mid = (lo+hi)//2
if (X[M[mid]] < X[i]):
lo = mid+1
else:
hi = mid-1
newL = lo
P[i] = M[newL-1]
M[newL] ... | [
"shikharsuman59@gmail.com"
] | shikharsuman59@gmail.com |
fbda42abca6e1fd0dfc99068021aea1d589084a5 | a5597d74049fcbe1e1e3afca1f4196243f2e7c90 | /glyce/dataset_readers/lm_char_data.py | f95e17bd672710c7c0158769907f92c462a1c5ea | [
"Apache-2.0"
] | permissive | YuChen17Heaven/glyce | 72759d8699bbe37ecd2221e90b8ec06a8844fd29 | 62369e3cc37442ed191862b77d87d0c17c8454f8 | refs/heads/master | 2020-06-14T01:52:41.111642 | 2019-06-30T10:52:10 | 2019-06-30T10:52:10 | 194,857,610 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,387 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
root_path = "/".join(os.path.realpath(__file__).split("/")[:-3])
if root_path not in sys.path:
sys.path.insert(0, root_path)
import torch
from torch.utils import data as D
from torchvision import transforms as TF
from PIL import Image
... | [
"xiaoyli@outlook.com"
] | xiaoyli@outlook.com |
f339af70fed9ee27c81c6724b54c8d7faf9d9b61 | dfa5a7a41a9c6837a76b42764315c74a3960fcb8 | /deeplearning_from_scratch/mnist_test/mnist_show.py | 9f9cf241617455154b08f4c58494c0ee1c022413 | [] | no_license | sff1019/b4_startup_program | fb244bead08c89e764b191bffeb5747ca4cd9c63 | 91416b06b40855cecf47ef38eac4b2db84ee779e | refs/heads/master | 2022-01-27T11:32:23.883754 | 2019-05-26T13:27:22 | 2019-05-26T13:27:22 | 181,627,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | import sys, os
sys.path.append(os.pardir)
import numpy as np
from PIL import Image
from dataset.mnist import load_mnist
def img_show(img):
pil_img = Image.fromarray(np.uint8(img))
pil_img.show()
if __name__ == '__main__':
# Load image in 1d array and normalize input image
(x_train, t_train), (x_tes... | [
"starfield1019@gmail.com"
] | starfield1019@gmail.com |
06ba10add53d11f111afb9f5654806ef56ade38b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s076785723.py | 812c92287c00c0ed50f0692b3b950b351bdce781 | [] | 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 | 367 | py | # 解説動画みた: https://www.youtube.com/watch?v=XI8exXVxZ-Q
# 最小公倍数
# ユーグリッドの互除法
import math
def lcm(x, y):
return (x * y) // math.gcd(x, y)
def f(x, c, d):
res = x
res -= x//c
res -= x//d
res += x//lcm(c, d)
return res
a, b, c, d = map(int, input().split())
ans = f(b, d, c) - f(a-1, c, d)
print(a... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e2cb402bf11205c85bda100c7ff32856f42dac7c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_210/ch133_2020_04_01_11_51_20_705270.py | 504f7c5b21b52745945548f66c0d49178b72e841 | [] | 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 | 383 | py | resp = input("Está funcionando? ")
if resp == "s":
print("Sem problemas")
else:
resp = input("Você sabe corrigir? (n/s) ")
if resp == "s":
print("Sem problemas")
else:
resp = input("Você precisa corrigir? (n/s) ")
if resp == "s":
print("Apague tudo e tente ... | [
"you@example.com"
] | you@example.com |
8596ab0220ddd8a68f6bca3a4a58592d020220ab | 045bd3dde7c88d6daa3015d22f1f37669e175b45 | /session4/solutions_makefile.py | c8cdb8f715cbd8a8afca29fd9a6cad27ac47c6bc | [] | no_license | ynonp/basic-python-for-developers | 723c46d1936b3a9ada9598c348c86170530fc154 | 8f016a1d1968acbac08397ef971649ccb5c6f157 | refs/heads/main | 2023-01-30T08:48:12.154495 | 2020-12-09T10:26:21 | 2020-12-09T10:26:21 | 313,548,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | """
Lab:
Create a class called "BuildTarget" that represents an object file we're building. Each build target has "Dependencies" which are other "BuildTarget" objects. When building a BuildTarget we should first build all of its dependencies.
Let's assume that to build a "BuildTarget" we just need to print its name.
... | [
"ynonperek@gmail.com"
] | ynonperek@gmail.com |
eb694b5c6c60f4d07599d54f8b76daaffaef6465 | a5768474918a82eec6b4ce82081c94e9782fb2a2 | /nabu/neuralnetworks/classifiers/lm/lm_decoders/lstm_decoder.py | 1e4e8548a70f2f0bc3b29edff9c2e289944ab191 | [
"MIT"
] | permissive | mattsoundswitch/nabu | 5755fb19a979f7881c28ab22e5b95de253ecf04c | f4000dcfed0b76dd54c9dd354db6a74cb1a9964f | refs/heads/master | 2021-01-22T19:48:24.436311 | 2017-03-06T18:34:03 | 2017-03-06T18:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | '''@file lstm_decoder.py
contains the LstmDecoder class'''
import tensorflow as tf
from nabu.neuralnetworks.classifiers.layer import Linear
class LstmDecoder(object):
'''The decoder object used in a LSTM language model'''
def __init__(self, numlayers, numunits, dropout=1, name=None):
'''speller constr... | [
"vincent.renkens@esat.kuleuven.be"
] | vincent.renkens@esat.kuleuven.be |
125d22f79a20bc27865b9d2a43915893a54826e2 | a57d514510af29c8ddfffd808331312c0f073275 | /polyaxon/spawner/utils/jobs.py | ee5062a93e2e17debf0714ad165fb7858abd7f65 | [
"MIT"
] | permissive | Africa-AI-Engineers/polyaxon | 38d2d3e5ea287620100eb8c984d2d75d64b48925 | d46fc3ba85d9ff2b680966cc940839eb02287021 | refs/heads/master | 2021-04-26T16:24:54.294968 | 2018-02-12T09:54:44 | 2018-02-12T09:54:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,922 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from polyaxon_schemas.experiment import JobStateConfig
from spawner.utils.constants import PodLifeCycle, JobLifeCycle, ContainerStatuses, PodConditions
from spawner.utils import pods
def get_job_status(pod_state, job_container_... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
92ee3d9b215d1a63978db705a118eb6f6d422fb3 | 00820b522cc16bf996f1ef44a94a2f31989c4065 | /abc/abc133/b.py | bbb85ca39e26ff73d6c527c7cc8f2eb75bd7ceb2 | [] | no_license | yamato1992/at_coder | 6dffd425163a37a04e37507743a15f67b29239fc | 6e0ec47267ed3cae62aebdd3d149f6191fdcae27 | refs/heads/master | 2020-08-31T11:17:03.500616 | 2020-06-12T15:45:58 | 2020-06-12T15:45:58 | 218,678,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | import math
N, D = map(int, input().split())
x = [list(map(int, input().split())) for _ in range(N)]
cnt = 0
for i in range(N - 1):
for j in range(i + 1, N):
total = 0
for (y, z) in zip(x[i], x[j]):
total += abs(y - z) ** 2
dist = math.sqrt(total)
if dist.is_integer():
... | [
"yamato.mitsui.orleans@gmail.com"
] | yamato.mitsui.orleans@gmail.com |
5d98a510336d1a4286a0bbf68af78d9060e05391 | b5ced559324aa6ac19d7323c49024005455749e6 | /examples/dql/lunarlander/lunarlander.py | 8e1d0bb35bee8cd7b5900d85ad88634aa01c8c2d | [] | no_license | BlakeERichey/RLToolkit | ea55814de7a9271d5a3a628f06830b976ba7ae37 | af9e6908b5fead755060fddae8fa4f8012c61cbc | refs/heads/master | 2023-02-01T15:11:30.483873 | 2020-12-16T23:07:54 | 2020-12-16T23:07:54 | 237,295,029 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | import gym
import keras
from keras.models import load_model
from rltoolkit.agents import ANN
from rltoolkit.methods import DQL
from rltoolkit.utils import test_network
from rltoolkit.callbacks import Checkpoint, Graph
env = gym.make('LunarLander-v2')
try:
print(env.unwrapped.get_action_meanings())
except:
pass
#B... | [
"blake.e.richey@gmail.com"
] | blake.e.richey@gmail.com |
4d28b93c82e11faa1acf2c54d7e3ebebcff15eca | f96953dd079bdc0f28769d16f422a5e669b4c4f7 | /web_flask/3-python_route.py | 9edf1141d49e221e7eae1f5a08fd04ce961f2232 | [] | no_license | jozsa/AirBnB_clone_v2 | 68e32d99c2daf1f53c46531b5320a46ab31bee92 | 57410ea8f2c8eb5828274961f389e47f7a966e1c | refs/heads/master | 2020-05-06T20:08:56.375076 | 2019-04-26T16:29:51 | 2019-04-26T16:29:51 | 180,224,124 | 0 | 1 | null | 2019-04-08T20:03:33 | 2019-04-08T20:03:32 | null | UTF-8 | Python | false | false | 1,070 | py | #!/usr/bin/python3
"""
Defines return values for people requesting
various parts of my web app
"""
from flask import Flask
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello():
"""Returns Hello HBNB to anyone who submits
a GET request to my app"""
return 'Hello HBNB!'
@app.route('/hbn... | [
"allisonjoyweiner@gmail.com"
] | allisonjoyweiner@gmail.com |
a4924e7cc0f35188c0c5cf9bc7538f8e1c5c323f | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/fdtd-2d/tmp_files/1748.py | 04ee1847ca446eb06326f40adeda26266cbb9fa3 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/fdtd-2d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/fdtd-2d/tmp_files/1748.c')
procedure('kernel_fdtd_2d')
loop(0)
known(' nx > 1 ')
known(' ny > 1 ')
ti... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
e551eacf155a7b27e6a95566ce98f7b9100ddd18 | 8ad573e455450ce45b8dfd1cb995a8ce43f9a114 | /persistence/database/entity/user/car_owner.py | 423a6ba2ae1348d9cae8ed03804af068d69c7842 | [] | no_license | afsaneh92/dr_autol | 4da458b8a6682603c227e34a1a827a5918d40831 | a1bd6d55ce9b67543ad7387631c48440dd38f68d | refs/heads/master | 2022-12-23T08:32:47.851059 | 2019-12-10T13:51:24 | 2019-12-10T13:51:24 | 227,130,083 | 0 | 0 | null | 2022-12-08T01:05:23 | 2019-12-10T13:38:52 | Python | UTF-8 | Python | false | false | 2,998 | py | from passlib.hash import pbkdf2_sha256
from sqlalchemy.exc import InvalidRequestError
from app import db, global_logger
from core.messages.translator.messages_keys import MessagesKeys
from core.result.success.success_update import SuccessUpdate
from core.validation.helpers import db_error_message
from persistence.data... | [
"forafsaneh.91@gmail.com"
] | forafsaneh.91@gmail.com |
0dbfd008fb034d034343a6a727a3c5c5b9cc5947 | 7cbb47f0e1612c54299773c1cd39ef6b95d457af | /trial.py | eb6c3d224416722f0740ec53ab58a349dcfa298f | [] | no_license | fahimkk/eight_queen_puzzle | 694501827c1cc85999157b0871cac4c9a25e69cb | c14f49ebc2fb3b1c05570a35d833eea4b1ee9b18 | refs/heads/master | 2023-01-05T21:34:13.730457 | 2020-10-25T16:00:11 | 2020-10-25T16:00:11 | 307,129,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | SIZE=8
def checkPlacement (partial, col, spread=1) :
if not partial : return True
else :
if int(partial[-1]) in (col,col-spread,col+spread):
return False
else :
return checkPlacement(partial[:-1], col, spread+1)
def printBoard(partial) :
if partial :
col = int(partial[0])
lin = ". "*... | [
"fahimasharafkk@gmail.com"
] | fahimasharafkk@gmail.com |
2b445e58ada9ff59d6720333cfb0801cf4c528f0 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/philippica/a.py | 1ef6545dbe4326ddb92ca83f176cec8fb18691ef | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 761 | py | f = open ("a.txt",'w')
printable = 1
def isPrime(n):
if n <= 1:
return False
for i in range(2, n):
if i * i > n :
break
if i > 200:
return True
if n % i == 0:
if printable == 0:
f.write (str(i) + " ")
return False
return True
def fun(x,bas):
now = 1
ret = 0
while x != 0... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ec417513e05c3d3c459ad3dee86bf04b08eef291 | b323fe5968aea700322428ba6bd239b45bc88c00 | /sohpen/website/migrations/0010_auto_20170525_0545.py | 23c880420efd367486c17684fdf67ee5c8f394ea | [] | no_license | aakashres/sophen | a1862be0fe4aaac51a03f111c1943c1e44f517cb | d84b8e8640f10eef22a79b8afba3e226405f9e5d | refs/heads/master | 2022-11-08T01:46:05.697691 | 2017-11-06T11:10:22 | 2017-11-06T11:10:22 | 273,651,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-25 05:45
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('website', '0009_auto_20170525_0544'),
]
operations = [
migrations.AlterModelManager... | [
"aakash.shres@gmail.com"
] | aakash.shres@gmail.com |
18b7dbf082d98c3c0cacd9bfe7f3c2026720d065 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/result_kerberos/people_business/city/water/kerberos_air_office/problem_member/law.py | 1381af4cac8558519ac6f903620814e5067a3bb4 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,699 | py | # Luis Translator Bot Sample
This sample shows how to translate incoming and outgoing text using a custom middleware and the [Microsoft Translator Text API](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/). This bot example uses [`restify`](https://www.npmjs.com/package/restify) and [`dotenv`](ht... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
b5f31c3ca74ad7e42cc17270621dfbb57994c057 | 5afa0b8e447bb6b1565a64d201ee38adfa406e44 | /rapidsmsrw1000/apps/ubuzima/reports/bir.py | 4cfec5c580fe2f1a68b1ff2ab982491d9748472d | [] | no_license | daaray/rapidsmsrw1000 | 98ad2cb24a4b5cbbd8b496c64ad357c6ff687874 | 013a06a61987b18e61bdb0da8da09140b8b16d9a | refs/heads/master | 2020-12-25T00:38:29.934693 | 2013-03-26T07:15:11 | 2013-03-26T07:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,756 | py | ####SAMPLE MESSAGE #####
##res_EN = "The correct format message is: BIR MOTHER_ID TWINS CHILD_NUM DOB SEX ACTION_CODE LOCATION_CODE BREASTFEEDING CHILD_WEIGHT"
##res_FR = "Andika: BIR INDANGAMUNTU IMPANGA NUMERO ITARIKI_AVUTSE IGITSINA IBIBAZO AHO_AVUKIYE KONKA IBIRO"
##msg = "BIR 1198156435491265 TW 01 13.02.2011 GI P... | [
"zigdidier@gmail.com"
] | zigdidier@gmail.com |
1012d700a01fa6df1d9b21ced68d9e98c94dc452 | 91de7cc36b94d9667192850681635ca75c08929b | /pelican_manager/views.py | 0b75b4b54aad413b7ac2ba8cac270433159b0694 | [
"Apache-2.0"
] | permissive | xiaojieluo/pelican-manager | 9516e871dc3c7fac8b732bde9ab46f9b57895dfa | 9e0839074d9b50faa3ee6a20df1f415e9ba15b0b | refs/heads/master | 2022-11-17T23:44:43.439166 | 2018-02-20T06:26:36 | 2018-02-20T06:26:36 | 119,359,213 | 1 | 0 | Apache-2.0 | 2022-11-08T14:41:39 | 2018-01-29T09:10:46 | HTML | UTF-8 | Python | false | false | 3,463 | py | from flask import (current_app, render_template, url_for, request, Blueprint,
flash, redirect,abort)
from pelican_manager.utils import iterdir
import sys, os
from pelican_manager.article import article_factory
from pelican_manager.forms import ArticleForm, SettingForm, ServerSettingForm
import copy
... | [
"xiaojieluoff@gmail.com"
] | xiaojieluoff@gmail.com |
7eda86e2301b325d43bc475cd99b699c7dade605 | 32fb781cb6718ef90c4fdfba0469f9278380a256 | /AntShares/Implementations/Wallets/config.py | c9b052e1e83cc4cf25633369f995c3d7a075b15b | [
"MIT"
] | permissive | OTCGO/sync_antshares | 1dcd6f809518ff2f9f89047d7da5efedb14e8625 | 5724a5a820ec5f59e0c886a3c1646db2d07b4d78 | refs/heads/master | 2021-01-22T22:49:26.094742 | 2017-12-14T17:15:33 | 2017-12-14T17:15:33 | 85,582,206 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | #!/usr/bin/env python
class Mongo:
def __init__(self, host='localhost', port=27017, usr=None, pwd=None):
self.host = host
self.port = port
self.usr = usr
self.pwd = pwd
bcdb = Mongo(host='10.0.74.48')
| [
"flowjacky@gmail.com"
] | flowjacky@gmail.com |
c87bf104dab3c0151ad5e8f666ab61bb7a406bf3 | b18e1d3849224dcfbdfbd323128efd7d56fd7a5b | /apps/files/models.py | b93e9b0153c2dd1c0ab6c83db191c08140da0cb4 | [] | no_license | yunmanger/django-coderblog | 2bd6255d9dd5948549d887f8dcffe558d597bc96 | e4f57fa677594136795c77edc3eeccaf3a18b060 | refs/heads/master | 2021-07-04T16:30:01.899151 | 2011-02-01T10:52:40 | 2011-02-01T10:52:40 | 733,646 | 0 | 1 | null | 2020-10-01T14:03:30 | 2010-06-22T10:48:48 | Python | UTF-8 | Python | false | false | 518 | py | from django.db import models
from django.contrib.auth.models import User
import os
class File(models.Model):
def specific_dir(self, filename):
return "files/uploads/%s/%s" % (self.user.username, filename)
user = models.ForeignKey(User)
file = models.FileField(upload_to=specific_dir)
def g... | [
"germanilyin@gmail.com"
] | germanilyin@gmail.com |
5004aa4e306b246de44f4935d744ccc11fd2b679 | 828f1009c1fe37c2240516c9afaaa9f78d9c3da0 | /bin/lib/d3_utils.py | 66ccd895f6f161d05d49a3e67c5a302164d84573 | [
"MIT"
] | permissive | d-gold/data_utils3 | 433a8b82d1264b1d8377f11f190dc7d13ba8db8a | fe478a79a953a411a7607c323d674cedab018545 | refs/heads/master | 2021-01-20T21:53:28.623749 | 2014-10-31T14:24:35 | 2014-10-31T14:24:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import re
def pct_change(old, new):
"""@todo: Docstring for pct_change.
:old: @todo
:new: @todo
:returns: @todo
"""
return (new - old) / old * 100
# return (new != 0 and (new - old) / old * 100) or new
def flatten_expressions(expressions, sep=r'\s*;\s*'):
"""@todo: Docstring for fl... | [
"autowitch@autowit.ch"
] | autowitch@autowit.ch |
7e10a84b18d4f90d7282e68576d6490609f50616 | faa84a83a3d347ac8b17cab2fa0599c65652a85d | /uliweb/utils/ipython_extension.py | 4766acb5dc0e8dd2e88b47a5d04915468048e41a | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limodou/uliweb | 4d829568cb6bab4a807fb80adb84b6aa1d0e76ab | 8bc827fa6bf7bf58aa8136b6c920fe2650c52422 | refs/heads/master | 2023-08-22T09:10:34.609797 | 2021-07-04T01:20:33 | 2021-07-04T01:20:33 | 283,042 | 230 | 65 | BSD-2-Clause | 2019-07-29T11:17:01 | 2009-08-20T13:50:46 | Python | UTF-8 | Python | false | false | 1,288 | py | def make_shell_env(**kwargs):
import os
import sys
from uliweb import functions, settings
from uliweb.core.SimpleFrame import Dispatcher
from uliweb.manage import make_simple_application
project_dir = '.'
application = make_simple_application(project_dir=project_dir)
if project_dir not... | [
"limodou@gmail.com"
] | limodou@gmail.com |
a3d6f90349acaf4d22a605fbc94aa253f2137272 | 11aaeaeb55d587a950456fd1480063e1aed1d9e5 | /.history/ex45-test_20190612200815.py | 66849ae27deb0305a37fd1e846ac2ba4a3565d72 | [] | no_license | Gr4cchus/Learn-Python-3-The-Hard-Way | 8ce9e68f6a91ea33ea45fe64bfff82d65422c4a8 | f5fa34db16cdd6377faa7fcf45c70f94bb4aec0d | refs/heads/master | 2020-05-17T23:18:29.483160 | 2019-06-26T18:42:52 | 2019-06-26T18:42:52 | 184,023,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py |
class Scenes(object):
# def __init__(self):
# # self.starting_room = starting_room
# # self.locations = {
# # 'room1': Room1(),
# # 'room2': Room2()
# # }
map_list = [
'room1',
'room2',
'finish'
]
def start(self):... | [
"ahivent@gmail.com"
] | ahivent@gmail.com |
ab765ee4f0d686eac6a5590ebca214071bd8c4f9 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/domainregistration/v20150401/get_domain_ownership_identifier.py | 5633ea2556dbee8c74665a6791ec0ce114f4325e | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,916 | 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
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
d152f3fb0db181cf5340020baf9f37dfeb47c6f2 | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/user_management/tests/literals.py | 12b44a9f385fb5142a7e9e98aa9b56127d1ad3b8 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | TEST_CASE_GROUP_NAME = 'test case group'
TEST_CASE_SUPERUSER_EMAIL = 'test_case_superuser@example.com'
TEST_CASE_SUPERUSER_PASSWORD = 'test case superuser password'
TEST_CASE_SUPERUSER_USERNAME = 'test_case_superuser'
TEST_CASE_USER_EMAIL = 'test_case_user@example.com'
TEST_CASE_USER_PASSWORD = 'test case user... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
08029c788aedb87a9115070662d376ec3b8c30d7 | 0ea64713582df26190354acc39eeedba513e7548 | /100_days_of_code/70-72-Excel-automation-with-openpyxl/excel_automation.py | 26dddd1b4def12c60e39819fd1f4a886a4f22bf6 | [] | no_license | SimonSlominski/Pybites_Exercises | 38e9fe477a4539f4e96347c19a6b49df40028d48 | 07f95ec7bfd3c3563478e3d161425f8d4e50c945 | refs/heads/master | 2023-08-04T14:56:58.795590 | 2023-08-03T10:03:43 | 2023-08-03T10:29:20 | 241,180,910 | 2 | 0 | null | 2021-04-20T19:47:02 | 2020-02-17T18:39:07 | Python | UTF-8 | Python | false | false | 295 | py | from openpyxl import load_workbook
wb = load_workbook('Financial Sample.xlsx')
ws1 = wb['Finances 2017']
maxrow = ws1.max_row
def insert_sum():
ws1['L' + str(maxrow)] = "=SUM(L2:L" + str(maxrow - 1) + ")"
if __name__ == "__main__":
insert_sum()
wb.save('Financial Sample.xlsx')
| [
"simon.slominski@gmail.com"
] | simon.slominski@gmail.com |
80e7f26655f8f848753768c0cef0c03895943af2 | d7d19d6918029de88bcf060cea23d5b4a1f7efb1 | /xiab/apps/exercises/migrations/0003_auto_20180812_2240.py | d615cc4cf5d8270a7846935e9cf398042eb99be4 | [] | no_license | petercollingridge/xiab | 8abe2b2b7124eeb0cfa06d2f21ce858a4ffbd975 | ae84d3d228f3fe9392d0fd894652e290b219b1d2 | refs/heads/master | 2020-03-26T04:25:28.163381 | 2019-09-29T16:20:25 | 2019-09-29T16:20:25 | 144,503,055 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | # Generated by Django 2.0.8 on 2018-08-12 22:40
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.fields
import wagtail.core.fields
class Migration(migrations.Migration):
dependencies = [
('exercises', '0002_auto_20180812_2238'),
]
operations = [
... | [
"peter.collingridge@gmail.com"
] | peter.collingridge@gmail.com |
9a05ab9c805eb050d9af4b5f59833f1e6830aa82 | 2afb1095de2b03b05c8b96f98f38ddeca889fbff | /My_Module/econometrics/Regression_module.py | 66588c73da20d19c6ef3666f3386d0f76ead8c8f | [] | no_license | draganmoo/trypython | 187316f8823296b12e1df60ef92c54b7a04aa3e7 | 90cb0fc8626e333c6ea430e32aa21af7d189d975 | refs/heads/master | 2023-09-03T16:24:33.548172 | 2021-11-04T21:21:12 | 2021-11-04T21:21:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,816 | py | import pandas as pd
import numpy as np
import re
import statsmodels.api as sm
class Dummies():
'''
This module converts a column data to dummy variables.
Call Dummies(df_array, dummy_name, convert_df = True).make_dummy() to run this module
Parameters:
df_array: a ndarray... | [
"13701304462@163.com"
] | 13701304462@163.com |
e55dafe121a0c1c96e91b0c84da0b82cf638d40f | 3a1f696274e5bc437e57acfd451ae196bdd1b722 | /homework1/AI_homework_1_宋品皓_1901213096/utils.py | 0855a2e2e924ff73a122ccdeaff2f62c71a63652 | [] | no_license | Ryanrenqian/AI_HW | bca8987ac6c787d2ec10efce90449678c7a001ec | a4c9f8abbe158ac591c5755dcc439e6a420923b4 | refs/heads/master | 2020-08-11T12:47:32.568123 | 2019-12-17T03:33:24 | 2019-12-17T03:33:24 | 214,567,342 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,805 | py | import math
import os
import errno
import shutil
def get_grid_dim(x):
"""
Transforms x into product of two integers
:param x: int
:return: two ints
"""
factors = prime_powers(x)
if len(factors) % 2 == 0:
i = int(len(factors) / 2)
return factors[i], factors[i - 1]
i = l... | [
"778315181@qq.com"
] | 778315181@qq.com |
a4838696aa63ea383b8f29b74e63c53220de10f8 | 49b1b98e9bbba2e377d8b5318fcc13776bbcb10b | /museum/spiders/exhibition98.py | 188755638f4122c51e283e5c234a9cc9c2b8ab62 | [] | no_license | BUCT-CS1808-SoftwareEngineering/MusemData_Collection_System | fa4e02ec8e8aaa9a240ba92cf7be33dbc0e8e31f | 023e829c77037ba6d2183d8d64dcb20696b66931 | refs/heads/master | 2023-04-29T05:43:01.627439 | 2021-05-23T03:02:09 | 2021-05-23T03:02:09 | 360,040,880 | 0 | 0 | null | 2021-05-23T03:02:09 | 2021-04-21T05:18:41 | Python | UTF-8 | Python | false | false | 1,124 | py | import scrapy
from museum.items import exhibitionItem
#爬取数据为空
class Exhibition98Spider(scrapy.Spider):
name = 'exhibition98'
#allowed_domains = ['www.xxx.com']
start_urls = ['http://www.lymuseum.com/bencandy.php?fid=60&id=37']
def parse(self, response):
item = exhibitionItem()
... | [
"szqszq00766@163.com"
] | szqszq00766@163.com |
16bd961c7feb7f23094cfc1c3141f95275b3d0af | 2826bdf11463b199f20be351f514bcb16f35d04e | /.history/server_20210407015628.py | 069c0e79fdb149c395ca99b0d5f696c8484aefb6 | [] | no_license | Roarcannotprogramming/Sec_Client_Server | 9efdb7e4c3e729cd6b5052b0ca0e23c14459ebc0 | 38f491e0e643e372c546eca73f9cf16c36513568 | refs/heads/master | 2023-04-11T12:40:12.780834 | 2021-04-17T15:53:47 | 2021-04-17T15:53:47 | 353,070,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import socket
import ssl
from time import sleep
class server_ssl:
def build_listen(self):
CA_FILE = "CA.crt"
KEY_FILE = "Server.key"
CERT_FILE = "Server.crt"
context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
context.load_cert_chain(certfile=CERT_FILE, keyfile=KEY... | [
"z1991998920@gmail.com"
] | z1991998920@gmail.com |
e652a162521ce453ea693182bb8c4af84850cfd5 | bf3a266294c62cafc9508f7d85102c1d318c9bde | /project/spiders/ics/crawler/ktgg/spiders/province/gd/guang_zhou_fa_yuan_ting_shen_zhi_bo_wang.py | 443f0871600c81acc0c7600e417249b3210f90d3 | [] | no_license | stonegithubs/spiders | 417442c94d2531b4b7e58990c5611de8dd9c1789 | eeafe77fc8ab816e946522e99f02ba53b5350484 | refs/heads/master | 2020-07-15T09:17:03.305808 | 2019-08-30T08:40:30 | 2019-08-30T08:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,788 | py | # coding=utf-8
"""
广州法院庭审直播网
"""
__author__ = 'wu_yong'
import re
import sys
import time
import traceback
from bs4 import BeautifulSoup
from ics.utils.exception_util import LogicException
from ics.utils import get_ics_logger
from ics.crawler.ktgg.core.constant import TASK_STATUS
from ics.http.http_downloader import... | [
"31926990@qq.com"
] | 31926990@qq.com |
177ddda496960f421e89f8adcbcd77c235609d21 | 9cd4e3e5c1da2dc8ef577d91d36f3f50110947c6 | /原电脑/study/beidaqingniao/day8/demo11.py | 2f9ec3915433f06381872ed609b5c77a665f4efb | [] | no_license | sczhan/gsdiannao | 459d982c437339af92e775d0fce5236a5d4d18bc | 911736334dc23b03acbb844967ca62c791ef3b59 | refs/heads/main | 2023-06-09T01:00:45.915971 | 2021-06-25T17:52:39 | 2021-06-25T17:52:39 | 374,898,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | from typing import *
def find_local_sink(elevation_map: [List[int]], cell: List[int]) -> List[int]:
if cell[0] > len(elevation_map) or cell[1] > len(elevation_map[0]):
return False
def local(min_map):
return min_map[min(min_map)]
dt = {elevation_map[cell[0]][cell[1]]: [cell[0], cell[1]]}... | [
"5481493@qq.com"
] | 5481493@qq.com |
c9a0f63132e986771977ccb6edbd786fa3ac281c | 81407be1385564308db7193634a2bb050b4f822e | /the-python-standard-library-by-example/codecs/codecs_invertcaps_error.py | 142c40ddf721ffc73bfc38052fdecb56549fbafd | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 489 | py | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2010 Doug Hellmann. All rights reserved.
#
"""Error handling with character map encodings.
"""
#end_pymotw_header
import codecs
from codecs_invertcaps_charmap import encoding_map
text = u'pi: π'
for error in [ 'ignore', 'replace', 'strict' ]:
try:
... | [
"350840291@qq.com"
] | 350840291@qq.com |
05e638b1e752730d3c6a30eb23e1ac03086663f2 | 3c750d4d60660fdf6ef84d7b7ab9663fb76d0fa1 | /tests/test_numeric/test_eulerian_grid_ops/test_stencil_ops_3d/test_vorticity_stretching_timestep_3d.py | 24a857eb4e2d7fcc072e58444c99f3f3a395da29 | [
"MIT"
] | permissive | SophT-Team/SophT | 25d157a17734600e9aa4f522b4574bfefe202bc7 | 99a094e0d6e635e5b2385a69bdee239a4d1fb530 | refs/heads/main | 2023-08-31T21:14:10.304592 | 2023-08-31T17:00:38 | 2023-08-31T17:00:38 | 498,451,510 | 2 | 2 | MIT | 2023-09-12T15:37:31 | 2022-05-31T18:25:12 | Python | UTF-8 | Python | false | false | 5,618 | py | import numpy as np
import psutil
import pytest
from sopht.numeric.eulerian_grid_ops import (
gen_vorticity_stretching_timestep_euler_forward_pyst_kernel_3d,
gen_vorticity_stretching_timestep_ssprk3_pyst_kernel_3d,
)
from sopht.utils.precision import get_real_t, get_test_tol
from tests.test_numeric.test_euler... | [
"bhosale2@illinois.edu"
] | bhosale2@illinois.edu |
a710930a29d0f075721ea3754b40dc24bc48c70a | 48523e13b15451542aa51ece14d2b3c6c4bb1b99 | /Django_apps/school/migrations/0023_auto_20181017_0913.py | f5a1449d0f19e7ee72605d73fa33bd91a5eeb25e | [] | no_license | ss-8y0/SchoolSystem | c7c64695b5ed7979e2d530941f4fbd178d95ca64 | 63298fa495a98c45175904da2820bcfce4a582a4 | refs/heads/master | 2023-03-15T11:07:38.665758 | 2019-05-27T02:52:56 | 2019-05-27T02:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # Generated by Django 2.1.1 on 2018-10-17 09:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0022_auto_20181017_0913'),
]
operations = [
migrations.AlterField(
model_name='schoolinfo',
name='main_cam... | [
"414804000@qq.com"
] | 414804000@qq.com |
419755da54639b284149cffffc8f924a2fd42413 | 1734fd26a9adf7d2580f8bd981babda861944ebd | /location/wifi_simple_model_64_optimize.py | 63bd1e6f936db12bbd92b0defbf5340ad9377733 | [] | no_license | tangzhuochen/Python_ML_Code | 420f4d80552a901b41e368e4e66a06f51ea1b29f | b418fd6a431a77838447ab4736bdf24019276309 | refs/heads/master | 2020-03-28T11:44:50.853941 | 2018-02-08T06:59:31 | 2018-02-08T06:59:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Oct 28 16:16:39 2017
@author: 麦芽的香气
"""
import pandas as pd
import numpy as np
from sklearn import preprocessing
import xgboost as xgb
import lightgbm as lgb
import sys
# make a copy of original stdout route
stdout_backup = sys.stdout
# define the log file that receives yo... | [
"1002937942@qq.com"
] | 1002937942@qq.com |
682dbacceb765cf5e388a02872c740bee4acb1e2 | 999f3f3da1cb70cb5872f99a09d65d7c4df71cf7 | /src/data/228.py | bda3b44723bf35f482d7f5bf153f8edc3cd06343 | [
"MIT"
] | permissive | NULLCT/LOMC | 0f0d1f01cce1d5633e239d411565ac7f0c687955 | 79a16474a8f21310e0fb47e536d527dd5dc6d655 | refs/heads/main | 2023-07-27T17:03:46.703022 | 2021-09-04T08:58:45 | 2021-09-04T08:58:45 | 396,290,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | import sys
sys.setrecursionlimit(10**8)
N, Q = map(int, input().split())
roads = [[] for _ in range(N)]
for i in range(N - 1):
a, b = map(int, input().split())
a -= 1
b -= 1
roads[a].append(b)
roads[b].append(a)
dist = [-1] * N
dist[0] = 0
def count_dist(i):
for j in roads[i]:
if dis... | [
"cockatiel.u10@gmail.com"
] | cockatiel.u10@gmail.com |
3ad9a66b805a0bef9476afb16461e9381739d1ab | 4c9ef500432116da5321c934f35514e82c40e70c | /Selection/test/dibosonBatchConfig.py | 53367b19261744ef2ac23042580d2b94e9a06139 | [] | no_license | wulsin/AnaFwkTest | bed13dec5c21aeb94cbfd7590f06cc901f035c33 | 31daa8bb4c53c2f0d4f200f3e1a69e66e4828072 | refs/heads/master | 2021-01-10T01:52:47.042773 | 2015-07-01T09:07:04 | 2015-07-01T09:07:04 | 36,930,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | #!/usr/bin/env python
# to be run with submitToCondor.py -l protoBatchConfig.py
# import the definitions of all the datasets on the T3
from OSUT3Analysis.Configuration.configurationOptions import *
# specify which config file to pass to cmsRun
config_file = "dibosonConfig_cfg.py"
# choose luminosity used for MC no... | [
"wulsin.1@osu.edu"
] | wulsin.1@osu.edu |
1b6ce28079f09101e455a69b894a774a5f3b43fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03346/s845937103.py | 3ee2d126dc789b41cf26ef9af1e42c212fed349b | [] | 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 | 258 | py | N = int(input())
P = [int(input()) for _ in range(N)]
dp = [0]*N
for i in range(N):
if P[i] == 1:
dp[P[i]-1] = 1
else:
if dp[P[i]-2] == 0:
dp[P[i]-1] = 1
else:
dp[P[i]-1] = dp[P[i]-2]+1
print(N-max(dp)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3f255fd4bb0ef1185f198c7b141666ddc6f9d4b3 | 262b630234a0c7b058a40e24f354fbb72224f7c3 | /Datastructures/recursion/sierpinski.py | 1f674f26ed3ece78367d79b000b493fcccc72ee1 | [] | no_license | cmwaura/DataStructures | 5bdd30080b80c1ddfff65de7edfc839f82239ff6 | be7b0a3ed6056e69c610298119a151a42e643758 | refs/heads/master | 2021-01-10T13:06:22.445186 | 2017-02-28T21:24:16 | 2017-02-28T21:24:16 | 55,702,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,357 | py | import turtle
def drawTriangle(points, color, myTurtle):
myTurtle.fillcolor(color)
myTurtle.up()
myTurtle.goto(points[0][0], points[0][1])
myTurtle.down()
myTurtle.begin_fill()
myTurtle.goto(points[1][0], points[1][1])
myTurtle.goto(points[2][0], points[2][1])
myTurtle.goto(points[0][0]... | [
"cmmwaura@ucdavis.edu"
] | cmmwaura@ucdavis.edu |
0d52d05242e2d025d8794b25f81dd63d117eac11 | 22fe6ed51715486ebbc09e404504ed4d7a28c37d | /python-katas/EdabDayYear.py | 35047392aea6c4e11d56e2bbdac9438b202f6b7a | [] | no_license | Jethet/Practice-more | 1dd3ff19dcb3342a543ea1553a1a6fb0264b9c38 | 8488a679730e3406329ef30b4f438d41dd3167d6 | refs/heads/master | 2023-01-28T14:51:39.283741 | 2023-01-06T10:14:41 | 2023-01-06T10:14:41 | 160,946,017 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | # Create a function that takes the month and year (as integers) and returns
# the number of days in that month.
def day_amount(month, year):
if (year % 4 == 0) and (year % 100 != 0) or (year % 400 == 0) or (year == 1000):
if month == 2:
return 29
if month in [1,3,5,7,8,10,12]:
retur... | [
"henriette.hettinga@gmail.com"
] | henriette.hettinga@gmail.com |
1eb2997775df7e77eb6a9a38219b6cf7d64c550e | 9259591e4794aecd85c199b645ffb05ccbebd993 | /vendor/celery/contrib/testing/manager.py | 4fff6a779b6878e0e7ff347aa15710e4f5d0102d | [
"Apache-2.0"
] | permissive | swdotcom/swdc-sublime | 000e20b2d2d9fa214480d2a94fcb97a88b83f67f | eab2007ab408e44d38163a121bf95c5d2018d6e4 | refs/heads/main | 2022-03-10T05:57:44.701151 | 2022-03-09T23:53:14 | 2022-03-09T23:53:14 | 127,207,312 | 14 | 5 | Apache-2.0 | 2022-03-09T23:53:15 | 2018-03-28T22:47:16 | Python | UTF-8 | Python | false | false | 7,795 | py | """Integration testing utilities."""
from __future__ import absolute_import, print_function, unicode_literals
import socket
import sys
from collections import defaultdict
from functools import partial
from itertools import count
from kombu.utils.functional import retry_over_time
from celery import states
from celery... | [
"bo@software.com"
] | bo@software.com |
f26b8bad99cfc00452d3dfb619d6f781de753c30 | 1b3c73cfd2c183861942d821b5f7b87cfde05687 | /ChannelSelection.py | caa6b2e8bbd7f30274c364db66ce9637aabead67 | [] | no_license | Cheereus/MathModel2020 | d0e77d199701fe752298d3998578be58409c9ce3 | 752811a5550ff3d6ec4dc21f4880986e3fcf08f7 | refs/heads/master | 2023-04-27T15:00:28.332328 | 2021-04-27T02:56:52 | 2021-04-27T02:56:52 | 296,013,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,305 | py | import numpy as np
import joblib
from sklearn import svm
def cos_sim(vector_a, vector_b):
vector_a = np.mat(vector_a)
vector_b = np.mat(vector_b)
num = float(vector_a * vector_b.T)
d = np.linalg.norm(vector_a) * np.linalg.norm(vector_b)
cos = num / d
sim = 0.5 + 0.5 * cos
return sim
# 获... | [
"fanwei1995@hotmail.com"
] | fanwei1995@hotmail.com |
ef957ad698541e32888c90d7cf3a60cab55dd4ee | f1becb34f4e9a873fac6dbe6b3e8cc6d0cc4add6 | /django_app/conf/settings/_installed_apps.py | 527da0e2b060e2dacb86fadd6803eca3341037aa | [] | no_license | assigdev/test_market_place | ca92005281dfa61333f35215a9bc3c9e734c341a | 6fc7862d508e7adac991dc808f8462695b78a719 | refs/heads/master | 2020-04-18T13:27:23.817994 | 2019-01-25T22:46:28 | 2019-01-25T22:46:28 | 167,562,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # Application definition
DJANGO_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
]
MY_APPS = [
'ad',
]
INSTALLED_APPS = [
'cities_li... | [
"assigdev@gmail.com"
] | assigdev@gmail.com |
ccb7d28b032aa29db5f4b3f69a7deb043e0014e3 | ac8ffabf4d7339c5466e53dafc3f7e87697f08eb | /python_solutions/517.super-washing-machines.py | 6ac251a7cb77827e3e2801f37975fd97073412df | [] | no_license | h4hany/leetcode | 4cbf23ea7c5b5ecfd26aef61bfc109741f881591 | 9e4f6f1a2830bd9aab1bba374c98f0464825d435 | refs/heads/master | 2023-01-09T17:39:06.212421 | 2020-11-12T07:26:39 | 2020-11-12T07:26:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,273 | py | from collections import Counter, defaultdict, OrderedDict, deque
from bisect import bisect_left, bisect_right
from functools import reduce, lru_cache
from typing import List
import itertools
import math
import heapq
import string
true = True
false = False
MIN, MAX, MOD = -0x3f3f3f3f, 0x3f3f3f3f, 1000000007
#
# @lc ap... | [
"ssruoz@gmail.com"
] | ssruoz@gmail.com |
7a617b1b8e749f979fd83f656b8592a71c76f287 | c838c53ec5de94af57696f11db08f332ff2a65d8 | /disposition/migrations/0004_auto_20180628_0650.py | 21e927bfefdb63ede3f8c68037e328998fdd6c1e | [] | no_license | memobijou/erpghost | 4a9af80b3c948a4d7bb20d26e5afb01b40efbab5 | c0ee90718778bc2b771b8078d9c08e038ae59284 | refs/heads/master | 2022-12-11T14:47:59.048889 | 2019-01-28T02:30:40 | 2019-01-28T02:30:40 | 113,774,918 | 1 | 1 | null | 2022-11-22T02:02:41 | 2017-12-10T18:53:41 | Python | UTF-8 | Python | false | false | 489 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-06-28 04:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disposition', '0003_employee_truck'),
]
operations = [
migrations.AlterFiel... | [
"mbijou@live.de"
] | mbijou@live.de |
95f4f537e0544459b917ced9efb2b56ba14cc74e | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/3995/codes/1798_2565.py | 47479039705870bf249aea5d34bb94b4deab966e | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | from numpy import*
m=array(eval(input("medias:")))
p=array(eval(input("presenca:")))
v3=int(input("carga horaria:"))
ap=0
rf=0
rn=0
v=zeros(3, dtype=int)
for i in range(size(m)):
y=v3*75/100
if(m[i]>=5 and p[i]>=y):
ap+=1
elif(m[i]<5):
rn=rn+1
elif(p[i]<y):
rf=rf+1
v[0]=ap
v[1]=rn
v[2]=rf
print(v)
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
e69f96ef23b2ff73b585f55fd9d14c0c5606a002 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_393/ch17_2020_09_29_18_07_09_762127.py | 6942221a9a751230cc884d67bacbcc874019e797 | [] | 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 | 205 | py | def eh_bissexto(x):
if x%4 == 0:
return True
elif x%100 == 0:
if x%400 == 0:
return True
else:
return False
else:
return False
| [
"you@example.com"
] | you@example.com |
23a0f42a8687230d7edfccb664ca77653b1c4dfe | 7bf406ae36aa39cd28c24f47d0e3cd63762411a2 | /gui.py | 8f536809d4db3b9e78eea010ca9727ca195de7fa | [] | no_license | vinsmokemau/PSB | c7f5fdaa6ddca3bd3bd3ca749f2131d4cf184935 | fc6be1ef75add6b2fa8ba24f8b63585eec4e86b2 | refs/heads/master | 2022-07-13T10:09:33.078420 | 2019-08-12T21:14:43 | 2019-08-12T21:14:43 | 201,720,501 | 0 | 0 | null | 2022-06-21T22:30:16 | 2019-08-11T05:13:17 | Python | UTF-8 | Python | false | false | 1,544 | py | """Gui for show Sin and Cos."""
import tkinter as tk
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
import numpy as np
root = tk.Tk()
canvas1 = tk.Canvas(root, width=1000, height=350)
canvas1.pack()
button1 = tk.Button(root, text='Exit Application', command=ro... | [
"maumg1196@gmail.com"
] | maumg1196@gmail.com |
46ebf440669f9d4606753af30621a5d29663ccea | 2f898bb332097d11f321186207e94f6d156587f3 | /audio/fourier_an_audio.py | 0dee9f6934a78fe0648c438df34f1250fe720e5b | [
"MIT"
] | permissive | miltonsarria/teaching | ad2d07e9cfbfcf272c4b2fbef47321eae765a605 | 7a2b4e6c74d9f11562dfe34722e607ca081c1681 | refs/heads/master | 2022-01-05T05:58:13.163155 | 2019-05-02T20:45:46 | 2019-05-02T20:45:46 | 102,375,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | #Milton Orlando Sarria
#analisis espectral de sinusoides
#generar audio de forma artificial para simular un instrumento musical
from pandas import Series
import matplotlib.pyplot as plt
import numpy as np
from fourierFunc import fourierAn
import wav_rw as wp
from scipy.signal import get_window
import sounddevice as sd
... | [
"miltonsarria@gmail.com"
] | miltonsarria@gmail.com |
2efc25165727a35d18e217eede7ba2abe510e7ac | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /project1,2/dict/client_bck.py | 21c0722e330ee5d84f58f63d4cdb9c715a3152b9 | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | #!/usr/bin/env python3
#coding=utf-8
from socket import *
import sys
import traceback
import getpass
#主控制流程函数
def main():
if len(sys.argv) < 3:
print('argv is error')
return
host = sys.argv[1]
port = int(sys.argv[2])
s = socket()
try:
s.connect((host,port))
except ... | [
"610079251@qq.com"
] | 610079251@qq.com |
77b634419151be8446a7887c1190714ac514af6e | 72ef41a1066257559c19d7a7760601c3a6fd1b4b | /jpeg_stream.py | e2b127430ed5e178d0dadc7f8a2db2bac0ab0a3f | [] | no_license | sti320a/stream_with_flask | 11705bad97b34a2b78fb40ca353f0b5e5c4145ed | 62966cfd65599cad862585421d628a06530f1908 | refs/heads/master | 2020-04-12T23:19:18.164366 | 2018-12-24T13:24:53 | 2018-12-24T13:24:53 | 162,815,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | from flask import Flask, render_template, Response
# from camera import Camera
# VideoCameraに変更
from camera import VideoCamera
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html')
def generate(camera):
while True:
frame=camera.get_frame()
yield (b'--frame\... | [
"sti320a@gmail.com"
] | sti320a@gmail.com |
ba71387ae3d9091863f67d9e61f5595d92c4edb2 | 7b798a55cf7bd42ab5d2d423ab77814c2564bd44 | /Explore_Google/Longest Substring with At Most Two Distinct Characters.py | b7543e281bfbf41ec7326e16e2f18e1ef24d8b47 | [] | no_license | addherbs/LeetCode | d933839eb0a2eb53c192f76c42152c6f3a6ef3f2 | cadd48225d93aa69745a94a214e55e7751996e19 | refs/heads/master | 2021-04-15T05:12:26.855696 | 2021-02-27T05:53:42 | 2021-02-27T05:53:42 | 126,174,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | """
Longest Substring with At Most Two Distinct Characters
Solution
Given a string s , find the length of the longest substring t that contains at most 2 distinct characters.
Example 1:
Input: "eceba"
Output: 3
Explanation: t is "ece" which its length is 3.
Example 2:
Input: "ccaabbb"
Output: 5
Explanation: t is ... | [
"addherbs@gmail.com"
] | addherbs@gmail.com |
9104cc773715e32c6bd21810fe2e8cbefcfa4955 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-imageprocess/aliyunsdkimageprocess/request/v20200320/RunCTRegistrationRequest.py | 88480b6a21d30cfbf5174c1079e3d48d48061dfd | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,692 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
283e6958f935b87396e6abe02091ef1bc19e01a4 | 056cb597216e8c1eab12f3a7efb188242f49cf5e | /tests/test_rtcrtpreceiver.py | 98b8271ff5203187afb45627779355515394d5b0 | [
"BSD-3-Clause"
] | permissive | MatejLach/aiortc | 92c558b90b94a06731d6f4bb6ab6bad4d1352a23 | ba9b4725cff0b16abdf24491616e7d012ae55ded | refs/heads/master | 2020-03-20T15:06:25.675821 | 2018-06-12T20:00:21 | 2018-06-12T20:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,861 | py | import asyncio
from unittest import TestCase
from aiortc.codecs import PCMU_CODEC
from aiortc.exceptions import InvalidStateError
from aiortc.mediastreams import AudioFrame
from aiortc.rtcrtpparameters import RTCRtpParameters
from aiortc.rtcrtpreceiver import RemoteStreamTrack, RTCRtpReceiver
from aiortc.rtp import Rt... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
463f0003bf7b612c451d8a8173e5ebaf5f81f48b | 9c337ea179ce44d1570219647b60b78c84ed54a7 | /accounts/migrations/0022_auto_20190318_2040.py | 6c7f266b6b8fc2d351f47540c56b1e3f05b00fdf | [] | no_license | timshin43/donaddcom | aa9cb5616907f145b388f290429dd9d1fd61f73b | d372b6677a15d699abc634f8f49581b8aa23f9a0 | refs/heads/master | 2022-12-10T10:10:26.494884 | 2020-12-08T02:10:48 | 2020-12-08T02:10:48 | 180,018,996 | 0 | 0 | null | 2022-12-08T02:31:05 | 2019-04-07T20:20:16 | Python | UTF-8 | Python | false | false | 584 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-03-19 03:40
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('accounts', '0021_auto_20190318_2022')... | [
"timshin.sergei@gmail.com"
] | timshin.sergei@gmail.com |
b9b164e6ca605072a2cfc10b02a0a3dc74703211 | b3dc53182ab10dbb32c6ac5ee406c19a23400356 | /scripts/data_processing/extract_relevant_info_from_extra_user_tweets.py | 469f1e83c4d295a1055bae7db280855c4fd1c8d0 | [] | no_license | ianbstewart/catalan | 765ea756d49688aba1c1a413e30251b9542ce887 | 9d2b09662643cb8e1d64b1f1f73870d6d794f3b7 | refs/heads/master | 2021-12-14T18:41:34.892708 | 2021-12-13T21:27:23 | 2021-12-13T21:27:23 | 128,650,277 | 3 | 1 | null | 2021-12-13T21:26:37 | 2018-04-08T14:35:59 | Jupyter Notebook | UTF-8 | Python | false | false | 2,536 | py | """
Extract username, text, hashtags, and pro/anti label
for all extra user tweets.
"""
import pandas as pd
from langid import classify
import re
from argparse import ArgumentParser
import codecs
import json
def main():
parser = ArgumentParser()
parser.add_argument('--user_tweet_file', default='../../data/twee... | [
"istewart6@gatech.edu"
] | istewart6@gatech.edu |
e1a468915ce7d57a55f0df81fded1f791dbf1cd4 | 07f837d8c5236fe5e75ef510cd296814452370ce | /py/testdir_single_jvm_fvec/test_exec2_ternary_phrases.py | 36457edce9509d4408be78d65eb52a0b594b90df | [
"Apache-2.0"
] | permissive | vkuznet/h2o | 6f9006a5186b964bac266981d9082aec7bc1067c | e08f7014f228cbaecfb21f57379970e6a3ac0756 | refs/heads/master | 2021-08-28T11:37:52.099953 | 2021-08-10T22:43:34 | 2021-08-10T22:43:34 | 20,032,996 | 0 | 0 | Apache-2.0 | 2021-08-10T22:43:35 | 2014-05-21T18:46:27 | Java | UTF-8 | Python | false | false | 4,449 | py | import unittest, random, sys, time
sys.path.extend(['.','..','py'])
import h2o, h2o_browse as h2b, h2o_exec as h2e, h2o_hosts, h2o_import as h2i
initList = [
('r.hex', 'r.hex=i.hex'),
]
DO_COMPOUND = False
phrasesCompound = [
# not going to allow lhs assigns in the ternary clauses
# "a=!0; x=!0",... | [
"kevin@0xdata.com"
] | kevin@0xdata.com |
1e168378dcde9249fa54ca8d1c69013576f6ac2a | c46260c40054c0499e0a6871e4d3fe2d6d8aa9c0 | /Pdf2txt/fd_Acemap.py | c6bef0e6ba5a37fb7317a1e0c6101996b169f2dc | [] | no_license | iiot-tbb/learngit | 1d6f5c234f1c36016be5489c7ec605f666bbba16 | dfa3106d05bcbb0da39b9bf71f7a0698322130f7 | refs/heads/master | 2020-08-30T01:30:07.632602 | 2019-12-07T13:09:59 | 2019-12-07T13:09:59 | 218,225,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,685 | py | #!/usr/bin/env python
# coding=utf-8
import json
import requests
#import test_extra_word
from test_extra_word import extract_keys
from DataBaseConn import database_filtered_chinese
class findyou:
def __init__(self):
self.dic = {}
self.person=[]
self.personDict={}
self.personChinese... | [
"247687157@qq.com"
] | 247687157@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.