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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a23df6de654d24c8cfd4468b5bb389cc25b8f20 | 3a93a50bf80668a6ede701534f1567c3653729b0 | /Full-time-interview-preparation/Graph/redundant_connection.py | 8b8b2bb52cc5b8bd3f503e7f63d43db58f4c181e | [] | no_license | Tadele01/Competitive-Programming | c16778298b6c1b4c0b579aedd1b5f0d4106aceeb | 125de2b4e23f78d2e9f0a8fde90463bed0aed70f | refs/heads/master | 2023-09-01T06:00:09.068940 | 2021-09-13T18:04:30 | 2021-09-13T18:04:30 | 325,728,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | from typing import List
class Solution:
def findRedundantConnection(self, edges: List[List[int]]) -> List[int]:
self.parents = [-1 for _ in range(len(edges)+1)]
for u,v in edges:
if not self.union(u,v):
return [u,v]
def find(self, x)... | [
"tadeleyednkachw@gmail.com"
] | tadeleyednkachw@gmail.com |
d22ab5a62f8a9bbd77dc270f6a368adcf4a6a639 | 9c16d6b984c9a22c219bd2a20a02db21a51ba8d7 | /chrome/test/media_router/media_router_tests.gypi | c1211c49edbec838fba1408930357c7773b8918d | [
"BSD-3-Clause"
] | permissive | nv-chromium/chromium-crosswalk | fc6cc201cb1d6a23d5f52ffd3a553c39acd59fa7 | b21ec2ffe3a13b6a8283a002079ee63b60e1dbc5 | refs/heads/nv-crosswalk-17 | 2022-08-25T01:23:53.343546 | 2019-01-16T21:35:23 | 2019-01-16T21:35:23 | 63,197,891 | 0 | 0 | NOASSERTION | 2019-01-16T21:38:06 | 2016-07-12T22:58:43 | null | UTF-8 | Python | false | false | 1,115 | gypi | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'media_router_integration_test_resources': [
'resources/basic_test.html',
'resources/common.js',
'resources/fail_cre... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
c49e277824f5d81797c03152796abe6a7b4fb545 | d4cd7da93ef93b32ae30c6c96b0612ffca758c0b | /0x0F-python-object_relational_mapping/5-filter_cities.py | e1edee838b931fa9c1737f3e78038bf11adce3a0 | [] | no_license | jfangwang/holbertonschool-higher_level_programming | afde26b71104b1a0ecb6cb1c99736a5286a51f08 | 32f7396181fac7c7495def24af72346d6ba07249 | refs/heads/master | 2023-04-24T17:16:38.731772 | 2021-05-06T15:49:39 | 2021-05-06T15:49:39 | 319,357,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | #!/usr/bin/python3
""" Filter states """
if __name__ == "__main__":
import MySQLdb
import sys
argv = sys.argv
state_id = 0
index = 0
if len(argv) != 5:
print("USAGE: ./0-select_states.py username password\
database_name state_name")
exit()
try:
db = MySQLd... | [
"qbs1864@gmail.com"
] | qbs1864@gmail.com |
4855001625f98e9d580537235844adc6d370c7db | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2500/60621/258426.py | 9373b12868d7d20dccd2542fe5e09e61dd730079 | [] | 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 | 485 | py | a=list(eval(input()))
b=[x for x in a]
c=[i+1 for i in range(len(a))]
d=[]
for i in range(len(a)):
if a==c:
break
index=a.index(len(a)-i)
if index==len(a)-i-1:
continue
else:
if index+1!=1:
d.append(index+1)
temp=[x for x in a[0:index+1]]
temp.... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ee6d90c3bc03a44f8fa4910336872a00a09153e6 | 9519f459f8622ce209ba61f601df6b567b321f1a | /metrics/migrations/0001_initial.py | 910358f99305fbaf34be89da0e5ba842ae1dc1c1 | [
"MIT"
] | permissive | compsoc-ssc/compsocssc | 3b478b2a9542ac62e0b3a0c8e13b84f289a5eb40 | b61d490077b6ddf4798ce9ac30ca60bc63923080 | refs/heads/master | 2020-04-05T22:57:38.698446 | 2017-08-04T09:25:21 | 2017-08-04T09:25:21 | 30,790,913 | 7 | 8 | MIT | 2017-12-29T10:43:21 | 2015-02-14T08:05:48 | Python | UTF-8 | Python | false | false | 673 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Hit',
fields=[
('id', models.AutoField(verbose_... | [
"arjoonn.94@gmail.com"
] | arjoonn.94@gmail.com |
bb1016bce463941647fcdb119e9254f4af8aff17 | a867b1c9da10a93136550c767c45e0d8c98f5675 | /D3_LC_74_Search_a_2D_Matrix.py | 08d04637b85bca5f33d4a675c5a8fa58d6c01547 | [] | no_license | Omkar02/FAANG | f747aacc938bf747129b8ff35b6648fb265d95b6 | ee9b245aa83ea58aa67954ab96442561dbe68d06 | refs/heads/master | 2023-03-25T19:45:08.153403 | 2021-03-28T07:13:08 | 2021-03-28T07:13:08 | 280,783,785 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | # import __main__ as main
# from Helper.TimerLogger import CodeTimeLogging
# fileName = main.__file__
# fileName = fileName.split('\\')[-1]
# CodeTimeLogging(Flag='F', filename=fileName, Tag='Matrix', Difficult='Medium')
"""Integers in each row are sorted from left to right."""
def searchMatrix(matrix, target):
... | [
"omkarjoshi4031@live.com"
] | omkarjoshi4031@live.com |
61297baec7f9634e81732d93964cde44437a232f | 1c790b0adc648ff466913cf4aed28ace905357ff | /applications/vision/data/mnist/__init__.py | e4bdf2b45dfba9e56aea7e90fcee004bb9fd170b | [
"Apache-2.0"
] | permissive | LLNL/lbann | 04d5fdf443d6b467be4fa91446d40b620eade765 | e8cf85eed2acbd3383892bf7cb2d88b44c194f4f | refs/heads/develop | 2023-08-23T18:59:29.075981 | 2023-08-22T22:16:48 | 2023-08-22T22:16:48 | 58,576,874 | 225 | 87 | NOASSERTION | 2023-09-11T22:43:32 | 2016-05-11T20:04:20 | C++ | UTF-8 | Python | false | false | 2,472 | py | import gzip
import os
import os.path
import urllib.request
import google.protobuf.text_format
import lbann
# Paths
data_dir = os.path.dirname(os.path.realpath(__file__))
def download_data():
"""Download MNIST data files, if needed.
Data files are downloaded from http://yann.lecun.com/exdb/mnist/
and unc... | [
"noreply@github.com"
] | LLNL.noreply@github.com |
a14567cc685925ddb6144b5bcefab69fcbc2dd61 | 7cf8cc1f944946f0378da2e6af4ba1c89466dfb4 | /dbselectprgrm.py | 36776142444cd630a74ce82002009a999d6df7f8 | [] | no_license | ashilz/pythonnew | 8abd164f757efaefa2216d663db2082c241cf4f5 | 5b57e0f1211a67671999bd3a1cae064318ab1e2f | refs/heads/master | 2022-12-10T21:22:02.597080 | 2020-09-16T06:01:53 | 2020-09-16T06:01:53 | 292,829,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import mysql.connector
db=mysql.connector.connect(
host="localhost",
user="root",
password="Ashil333!",
auth_plugin="mysql_native_password",
database="luminarpython"
)
print(db)
cursor=db.cursor()
try:
query="SELECT * FROM EMPLOYEE"
cursor.execute(query)
result=cursor.fetchall()
f... | [
"ashilantony333@gmail.com"
] | ashilantony333@gmail.com |
acfe4f324a502158f5c16d5b7d61048a3e4eac8c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_jimmied.py | ab4838861245bf47f9fd504bf6da78a0bd7b2e15 | [
"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 | 233 | py |
from xai.brain.wordbase.verbs._jimmy import _JIMMY
#calss header
class _JIMMIED(_JIMMY, ):
def __init__(self,):
_JIMMY.__init__(self)
self.name = "JIMMIED"
self.specie = 'verbs'
self.basic = "jimmy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9d55651d7155c6be5e3d04e0bb02204342ea9cd5 | 49afe5ff0a10354e0c2c91f805f57dd02a24537d | /cashe/s4day118/s4.py | 8c42aac83a3c6c7986e6689b0b09cb758182bd9f | [] | no_license | shaoqianliang/scrapy | d155f103fdda0553981649aa7fa9aa9c9457b9a6 | 9aba8835640ddddd9ab4e1e54b83f6cafaeb8b9e | refs/heads/master | 2020-03-07T05:12:49.933792 | 2018-04-25T07:59:28 | 2018-04-25T07:59:28 | 127,289,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | import redis
pool = redis.ConnectionPool(host='192.168.11.81', port=6379)
conn = redis.Redis(connection_pool=pool)
# r.set('foo', '友情并阿斯顿发生地方')
# print(r.get('foo'))
# v = r.getrange('foo',0,3)
# print(v)
# v = r.strlen('foo')
# print(v)
#
# r.lpush('names','alex')
# r.lpush('names','eric')
# r.lpush('names','egon')
... | [
"1132424753@qq.com"
] | 1132424753@qq.com |
e079a60a0203f845eb514f4beba68b66be5303fa | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/309/103346/submittedfiles/jogoDaVelha_BIB.py | e2a9991dee25881eef4f01f86be054f83d14d35f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,485 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from random import randint
# autenticação do simbolo para a jogada humano
def solicitaSimboloDoHumano():
# nome=input('Qual seu nome(ou apelido)? ')
simbH= (input("Qual o simbolo que você deseja utilizar no jogo? "))
while simbH!="X" and simbH!="O" and ... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ffd2dbbfe0e5759bc19b443279803a036bc898b0 | dbdf5d6e9e1e04066bcf13b3e81d00578c6dc25d | /Trakttv.bundle/Contents/Libraries/Shared/shove/caches/memcached.py | f3c2064a367f862001df0ba1a9826389eee781be | [] | no_license | cnstudios/Plex-Trakt-Scrobbler | 59dfd0b1361d5b1d0f638b1a2009cffe0d5da421 | 73557f52bdba172c0b7261454536641d9c65edb8 | refs/heads/master | 2021-01-22T11:04:06.080191 | 2015-03-29T23:58:35 | 2015-03-29T23:58:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | # -*- coding: utf-8 -*-
'''
"memcached" cache.
The shove URI for a memcache cache is:
memcache://<memcache_server>
'''
try:
import memcache
except ImportError:
raise ImportError("requires 'python-memcached' library")
from shove.base import Base
__all__ = ['MemCache']
class MemCache(Base):
'''Memcach... | [
"gardiner91@gmail.com"
] | gardiner91@gmail.com |
6fa2dd1b962d93710df683eaac29099f951a25c2 | 786232b3c9eac87728cbf2b5c5636d7b6f10f807 | /Leetcode/medium/162.py | b6de70d172ced69a49525fc35b79a96011180de2 | [] | no_license | luoyanhan/Algorithm-and-data-structure | c9ada2e123fae33826975665be37ca625940ddd4 | fb42c3a193f58360f6b6f3b7d5d755cd6e80ad5b | refs/heads/master | 2021-12-22T15:45:28.260386 | 2021-12-02T03:08:35 | 2021-12-02T03:08:35 | 251,007,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | class Solution:
def findPeakElement(self, nums: List[int]) -> int:
length = len(nums)
if length == 1:
return 0
for i in range(length):
if i == 0 and nums[i] > nums[i+1]:
return i
elif i == length-1 and nums[i] > nums[i-1]:
... | [
"707025023@qq.com"
] | 707025023@qq.com |
36738b0db03c6d09b59fe47a634737de972a1946 | ea622960f82fbc374ff3ac300ef670b56820af4e | /f2b_venv/bin/gunicorn | 6e02cafa859287fd91e63e48b1999cf57e125ead | [] | no_license | Zacharilius/Food2Beer-Django | d1b22e58d5d4c8fab914915428063d66d23958cd | 691f30822cc80b47cb1bf58eb8521bcf19720b98 | refs/heads/master | 2021-01-19T00:44:44.093599 | 2015-04-10T13:59:08 | 2015-04-10T13:59:08 | 32,464,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | #!/home/zacharilius/Documents/GitHub/Food2Beer-Django/f2b_venv/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())
| [
"zabensley@gmail.com"
] | zabensley@gmail.com | |
932d9be49faba3e76429f78de93191bcabbaa964 | 6fab071f4b3f3852a3f7fb7f87e7d033d5ea9425 | /4_Demo_Django/2_Django_Test/1_Django_login/APPS/4_Django项目实战.py | ebdf6404cd02fc9bc3b921d1de0831d2ff6784fd | [] | no_license | pythonzhangfeilong/Python_WorkSpace | 5d76026d0553bb85346264fc6375b1fc0a388729 | 646b460c79bedc80010185a240c8cd23342093bc | refs/heads/master | 2020-08-26T09:51:43.763751 | 2020-07-07T07:23:20 | 2020-07-07T07:23:20 | 216,998,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,520 | py | # 1、Django安装:直接采用的是pip install Django
'''
1、如果之前安装的Django版本较低,可以采用pip uninstall Django卸载,再重新安装
2、安装过程中出现问题是,要记得更新pip,更新命令python -m pip install --upgrade pip
3、pip安装时要使用系统的最高管理员权限,否则会出错
'''
# 2、使用pycharm创建项目时,注意在More Settings中加上app的名字,这样的项目直接就有app,不用再次命令行创建
'''
1、创建好Diango文件后,个文件夹的名字含义:
__init__... | [
"feilong@feilongdeMacBook-Pro.local"
] | feilong@feilongdeMacBook-Pro.local |
4455e95b78174d01b70882d3db82c199191ef89c | f1be5da6283270803c3f0cbb80f7d11ff9260655 | /scripts/vectorize.py | cddbfbce4c15edf2d095fa082351dc434767d35e | [
"Apache-2.0"
] | permissive | mogproject/tutte-polyn | 1a1cf371dd434991a41c73ab4e9a3936d9b93d5c | 991ce12619f86484ffac8a57186b5eea22d01f0a | refs/heads/master | 2022-07-12T05:00:35.493640 | 2020-05-12T07:25:07 | 2020-05-12T07:25:07 | 247,176,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | #!/usr/bin/env python3
"""
Converts output from the tuttepoly program into coefficient vectors for each graph.
"""
__author__ = 'Yosuke Mizutani'
__version__ = '0.0.1'
__license__ = 'Apache License, Version 2.0'
# imports standard libraries
import sys
import argparse
def get_parser():
"""Argument parser."""
... | [
"mogproj@gmail.com"
] | mogproj@gmail.com |
633868dbf7071b0ab8e9a8d69163295e0e39e2f9 | 146cd740649b87032cbbfb97cde6ae486f76230b | /venv/lib/python3.6/site-packages/matplotlib/backends/__init__.py | 06cad2d1ad10fdbfb2c19ff6f42036aef101cece | [] | no_license | shellyhuang18/plank-filter-master | 8b7024c46334062496f05d31eefc618ebae50b4e | 8993a5b00f45841c3385fe997857bfdd10b71a84 | refs/heads/master | 2020-03-30T18:14:45.017957 | 2018-12-27T20:51:25 | 2018-12-27T20:51:25 | 151,490,556 | 0 | 1 | null | 2018-12-19T22:42:26 | 2018-10-03T22:50:58 | Python | UTF-8 | Python | false | false | 3,720 | py | import importlib
import logging
import os
import sys
import traceback
import matplotlib
from matplotlib import cbook
from matplotlib.backend_bases import _Backend
_log = logging.getLogger(__name__)
# NOTE: plt.switch_backend() (called at import time) will add a "backend"
# attribute here for backcompa... | [
"shellyhuang81@gmail.com"
] | shellyhuang81@gmail.com |
f5fcee0e713532c5d2bae4ea721d31bb5f801dea | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /next_child_and_first_case/bad_way/group/right_problem.py | 33aff9e2e1183bf56ce9cb9ad48a6b8731a0d934 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py |
#! /usr/bin/env python
def able_government(str_arg):
day(str_arg)
print('eye')
def day(str_arg):
print(str_arg)
if __name__ == '__main__':
able_government('right_case')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e2e86cef61265cda1718cdef84254ca06d3b8814 | 56fe9508764866a9bab08d1e13bc34777fb50e1b | /tests/mock_commands/nextpnr-gowin | f967efea61107e7fd199a3213e20b3395417e115 | [
"BSD-2-Clause"
] | permissive | GregAC/edalize | 402970d32a708fb2268cc8c03c88527e958ebc7a | f4b3cc5bccf0c10375a4dcd101273423de470a08 | refs/heads/master | 2021-09-08T06:06:10.281868 | 2021-07-07T11:39:27 | 2021-07-28T22:05:51 | 247,763,731 | 0 | 0 | BSD-2-Clause | 2020-03-16T16:27:06 | 2020-03-16T16:27:05 | null | UTF-8 | Python | false | false | 245 | #!/usr/bin/env python3
import os
import sys
output_file = sys.argv[sys.argv.index('--write')+1]
with open(output_file, 'a'):
os.utime(output_file, None)
with open('nextpnr-gowin.cmd', 'w') as f:
f.write(' '.join(sys.argv[1:]) + '\n')
| [
"olof.kindgren@gmail.com"
] | olof.kindgren@gmail.com | |
a1d224b156b32482685c38df145d7ec196174f7f | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/mojo/public/tools/manifest/manifest_collator.py | 9a6d0e9b01049681a0f8e0c309faa288aeea1b23 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 2,909 | py | #!/usr/bin/env python
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" A collator for Mojo Application Manifests """
import argparse
import json
import os
import shutil
import sys
import urlparse
eate... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
0b7c562f6f37bd3f506e5bbdc00055ef7da3bb3b | ddb185b0cf581d85a1dd733a6d1e5d027ba3e0ca | /phase4/260.py | 651673aea432957ccfbb450b4c912f91b85e1222 | [] | no_license | GavinPHR/code | 8a319e1223a307e755211b7e9b34c5abb00b556b | b1d8d49633db362bbab246c0cd4bd28305964b57 | refs/heads/master | 2020-05-16T04:09:19.026207 | 2020-04-30T10:00:06 | 2020-04-30T10:00:06 | 182,766,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | # Single Number III
from typing import List
class Solution:
def singleNumber(self, nums: List[int]) -> List[int]:
s = set()
for n in nums:
if n in s:
s.remove(n)
else:
s.add(n)
return list(s) | [
"gavinsweden@gmail.com"
] | gavinsweden@gmail.com |
b7bc73e1f99352427bf7b271d7a94b320b253ffb | a4deea660ea0616f3b5ee0b8bded03373c5bbfa2 | /executale_binaries/register-variants/vmovapd_ymm_ymm.gen.vex.py | 2c67bcd6beddc36d418754a140f4a9d4de0e869a | [] | no_license | Vsevolod-Livinskij/x86-64-instruction-summary | 4a43472e26f0e4ec130be9a82f7e3f3c1361ccfd | c276edab1b19e3929efb3ebe7514489f66087764 | refs/heads/master | 2022-02-02T18:11:07.818345 | 2019-01-25T17:19:21 | 2019-01-25T17:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | import angr
proj = angr.Project('vmovapd_ymm_ymm.exe')
print proj.arch
print proj.entry
print proj.filename
irsb = proj.factory.block(proj.entry).vex
irsb.pp() | [
"sdasgup3@illinois.edu"
] | sdasgup3@illinois.edu |
4bde09ff5b4dcd8af235f043ea5b05674c5e581d | 35b6013c1943f37d1428afd2663c8aba0a02628d | /functions/v2/log/helloworld/main_test.py | 4a2633ea2fdedff862401585737661a6830f6308 | [
"Apache-2.0"
] | permissive | GoogleCloudPlatform/python-docs-samples | d2a251805fbeab15d76ed995cf200727f63f887d | 44e819e713c3885e38c99c16dc73b7d7478acfe8 | refs/heads/main | 2023-08-28T12:52:01.712293 | 2023-08-28T11:18:28 | 2023-08-28T11:18:28 | 35,065,876 | 7,035 | 7,593 | Apache-2.0 | 2023-09-14T20:20:56 | 2015-05-04T23:26:13 | Jupyter Notebook | UTF-8 | Python | false | false | 715 | py | # Copyright 2023 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 agreed to in writing, s... | [
"noreply@github.com"
] | GoogleCloudPlatform.noreply@github.com |
b3ed0d89e201a0a78da0131558224b973b5b5960 | 80b2700b6f9940ee672f42124b2cb8a81836426e | /exception/test1.py | a4c837a4d50be53be15bca32d9979f2a5b1b85fd | [
"Apache-2.0"
] | permissive | Vayne-Lover/Python | 6c1ac5c0d62ecdf9e3cf68d3e659d49907bb29d4 | 79cfe3d6971a7901d420ba5a7f52bf4c68f6a1c1 | refs/heads/master | 2020-04-12T08:46:13.128989 | 2017-04-21T06:36:40 | 2017-04-21T06:36:40 | 63,305,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | #!/usr/local/bin/python
#class MuffledCalculator:
# muffled=False
# def calc(self,expr):
# try:
# return eval(expr)
# except (ZeroDivisionError,TypeError):
# if self.muffled:
# print "There are errors."
# else:
# raise
#a=MuffledCalculator()
#print a.calc('2/1')
##print a.calc('2/"d... | [
"406378362@qq.com"
] | 406378362@qq.com |
af969107fa1b60317809a206e8afae54a0ac999b | 25e989e986522cf91365a6cc51e3c68b3d29351b | /app/http/controllers/TeamController.py | 1f26e8f10cb79cc093d37b55e0170ed7b77e05c1 | [
"MIT"
] | permissive | josephmancuso/gbaleague-masonite2 | ff7a3865927705649deea07f68d89829b2132d31 | b3dd5ec3f20c07eaabcc3129b0c50379a946a82b | refs/heads/master | 2022-05-06T10:47:21.809432 | 2019-03-31T22:01:04 | 2019-03-31T22:01:04 | 136,680,885 | 0 | 1 | MIT | 2022-03-21T22:16:43 | 2018-06-09T01:33:01 | Python | UTF-8 | Python | false | false | 898 | py | ''' A Module Description '''
from app.Team import Team
from masonite import Upload
class TeamController:
''' Class Docstring Description '''
def show(self):
if request().has('back'):
request().session.flash('back', request().input('back'))
return view('create/team')
... | [
"idmann509@gmail.com"
] | idmann509@gmail.com |
188bb4f99769e74fbcea03d37051f0bf96544b9b | 51885da54b320351bfea42c7dd629f41985454cd | /abc181/d.py | 9a094d524253759e71cbe9da0075af9308c3e941 | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | #
# abc181 d
#
import sys
from io import StringIO
import unittest
from collections import Counter
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.se... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
cbeb14309190629a8358f2fec79c0b07079b6bd8 | 1f620140538728b25fd0181e493975534aa0e1fb | /project/basis/test/test_admin.py | b83678eb911cbb41cdc1dfa79cf4df613d45e9b4 | [] | no_license | YukiUmetsu/recipe-app-api-python-django | 2a22f63871489cd073d5c312e20fd9fe49eee5a5 | abaf4a0826e840e990781b20aaa5d7f0577c54c5 | refs/heads/master | 2022-11-30T03:11:16.129881 | 2020-03-03T20:04:00 | 2020-03-03T20:04:00 | 244,045,701 | 0 | 0 | null | 2022-11-22T05:21:23 | 2020-02-29T21:41:25 | Python | UTF-8 | Python | false | false | 1,344 | py | from django.test import TestCase, Client
from django.contrib.auth import get_user_model
from django.urls import reverse
class AdminSiteTests(TestCase):
def setUp(self):
"""set up admin user (logged in) and normal user"""
self.client = Client()
self.admin_user = get_user_model().objects.cr... | [
"yuuki.umetsu@gmail.com"
] | yuuki.umetsu@gmail.com |
da9bbbbba39f5dc6085d921ab3cf3fe4c283bf0e | f3b5c4a5ce869dee94c3dfa8d110bab1b4be698b | /controller/src/xmpp/test/SConscript | 8358c3272343acd70e14c431f4e7437de65829ec | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | pan2za/ctrl | 8f808fb4da117fce346ff3d54f80b4e3d6b86b52 | 1d49df03ec4577b014b7d7ef2557d76e795f6a1c | refs/heads/master | 2021-01-22T23:16:48.002959 | 2015-06-17T06:13:36 | 2015-06-17T06:13:36 | 37,454,161 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | #
# Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
#
# -*- mode: python; -*-
Import('BuildEnv')
import sys
env = BuildEnv.Clone()
env.Append(LIBPATH = ['#/' + Dir('..').path,
'../../base',
'../../base/test',
'../../bgp',
... | [
"pan2za@live.com"
] | pan2za@live.com | |
cad3020fe5ed05dd5f2adb766e25e7be8f6dbf96 | 9d41f4df737dc2e6fd3fcf4c6f50028fd483cdd0 | /python_basic/section08.py | c3e3a9de8ba928d719982f41ef6e0dcd6599505e | [] | no_license | Ha-Young/byte_degree_python | 33a730f4c1f4a99fea03fb923ad73edee2dd1d48 | 7fcbfed832dec3d7cb8503b86d9457e1f2ae0ccf | refs/heads/master | 2022-11-16T16:54:52.978443 | 2020-07-04T14:32:16 | 2020-07-04T14:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | # Section08
# 파이썬 모듈과 패키지
# 패키지 예제
# 상대 경로
# .. : 부모 디렉토리
# . : 현재 디렉토리
# 사용1(클래스)
#from 폴더 import 클래스
from pkg.fibonacci import Fibonacci
Fibonacci.fib(300)
print("ex2 : ", Fibonacci.fib2(400))
print("ex2 : ", Fibonacci("hoho").title)
# 사용2(클래스) -> 메모리 사용 많이하여 권장X
from pkg.fibonacci import * # 전부 가져온다
Fibonac... | [
"hayeong28@naver.com"
] | hayeong28@naver.com |
096024ea08a007418474f21229662d03091ef468 | 5253ecc76e493afea8935be6ed7926a431f1721d | /sovrin_client/test/cli/test_pool_upgrade.py | a088aed75e7690e92fb0e012c68ff4dd722c0fd2 | [
"Apache-2.0"
] | permissive | peacekeeper/sovrin-client | a34f7d1edc1722e4805cbe36e61d031dc6574dc4 | 4d408d16ee2d8aca2d3065c0302431cc5c5386c1 | refs/heads/master | 2021-01-11T14:43:46.240473 | 2017-02-16T10:02:21 | 2017-02-16T10:02:21 | 80,198,885 | 2 | 1 | null | 2017-01-27T10:31:04 | 2017-01-27T10:31:03 | null | UTF-8 | Python | false | false | 1,916 | py | from copy import copy
import pytest
from plenum.common.eventually import eventually
from plenum.common.txn import VERSION
from sovrin_common.txn import ACTION, CANCEL, JUSTIFICATION
from sovrin_node.test.upgrade.helper import checkUpgradeScheduled, \
checkNoUpgradeScheduled
from sovrin_node.test.upgrade.conftest ... | [
"lovesh.harchandani@evernym.com"
] | lovesh.harchandani@evernym.com |
c3122503563ac8940d8246dba442f246f956d3bb | 6f560247d031db5ab0bbf5d1d3ad6bd7b12f6e14 | /aiormq/tools.py | 42ec7dd8b7d84c995a3b6330edebcf611edb79ae | [
"Apache-2.0"
] | permissive | tchalupnik/aiormq | c7482a224447aabac734e5963e8ffba9c80872c0 | 8aea0ecd15f695ae74fdafe0dfb1626a56412130 | refs/heads/master | 2023-09-04T11:42:16.178616 | 2021-10-03T19:23:12 | 2021-10-03T19:23:12 | 422,150,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,634 | py | import asyncio
from functools import wraps
from typing import AsyncContextManager, Awaitable, TypeVar
from yarl import URL
from aiormq.abc import TimeoutType
T = TypeVar("T")
def censor_url(url: URL):
if url.password is not None:
return url.with_password("******")
return url
def shield(func):
... | [
"me@mosquito.su"
] | me@mosquito.su |
d50c1835fb54d1533e75bd2db34d814ec732a697 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02613/s924626133.py | 1ea35f5c1bd5d4cd2ec8b5efdd1f5791376114f6 | [] | 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 | 235 | py | def judge_status_summary():
N = int(input())
res = {"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(N):
res[input()] += 1
for k in res:
print("{} x {}".format(k,res[k]))
judge_status_summary() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6547446b3422447b4e2918a7979c12e3681e4daa | 5a3547772b61f7d1b3a81f76dd1397eb92c68e7b | /lunzi/config.py | c2d1f52b43355983c9b8b2247f0da3a96e3fa5db | [
"MIT"
] | permissive | suen049/AdMRL | 483440f0ded14e471d879b300da9afbab68fbe66 | 50a22d4d480e99125cc91cc65dfcc0df4a883ac6 | refs/heads/master | 2023-03-12T23:15:05.154003 | 2021-03-06T15:31:21 | 2021-03-06T15:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,745 | py | import argparse
import os
import yaml
from lunzi.Logger import logger
_frozen = False
_initialized = False
def expand(path):
return os.path.abspath(os.path.expanduser(path))
class MetaFLAGS(type):
_initialized = False
def __setattr__(self, key, value):
assert not _frozen, 'Modifying FLAGS aft... | [
"linzichuan12@163.com"
] | linzichuan12@163.com |
05ee44b1e5c2c238d8118d81872b9810cb17608a | cd64e9076ab81f4b2b42215289b1791c8cc3a1dd | /LogHadoopJob/py/MR/MR_KWLIVEAD_POPUP_CLICK.py | 94452bf28c31743ea62110d84f629538799e61c3 | [] | no_license | tonygodspeed/py | a8396c31fa31cfeb47ebc98dc86e3298e76d5dfa | eb38514c540b92903d53434bddc26d35bf67148d | refs/heads/master | 2020-04-02T13:26:27.029232 | 2018-10-24T10:28:35 | 2018-10-24T10:28:35 | 154,481,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | #!/usr/bin/env python
#coding=utf8
from MR_BASE import *
reload(sys)
sys.setdefaultencoding("utf-8")
str_act = "ACT_KWLIVEAD_POPUP_CLICK"
class MR_KWLIVEAD_POPUP_CLICK(mr_base_ex):
def __init__(self):
mr_base_ex.__init__(self,str_act)
self.res_type = ["s","s","s","i","i"];
self.res_name = [... | [
"412291198@qq.com"
] | 412291198@qq.com |
ee191ec954ac1f34e4ac8adcfa289258e03fb944 | b3f8a351f5d92469c987302661a3dcb0328de609 | /fit_2D_LeastSq/fit_2Dpoly_mpfit.py | 8712f33d9e1b3e64fe131f375ded4672311fbe7f | [
"MIT"
] | permissive | Chloe20-cyber/PythonFitting | 87412e5fd7c956f4bf0da77b0c235ad5f5059bff | 54315e336593f7f105f516766fb323662eadd5e3 | refs/heads/master | 2022-04-24T02:46:38.224828 | 2020-03-31T05:04:50 | 2020-03-31T05:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,033 | py | #!/usr/bin/env python
# Initial model parameters
inParms=[ {'value': 5.1,
'fixed': False,
'parname': 'amp',
'limited': [False, False]},
{'value': 1.0,
'fixed': False,
'parname': 'x1',
'limited': [False, False]},
{'value': 1.0,
... | [
"cormac.r.purcell@gmail.com"
] | cormac.r.purcell@gmail.com |
fe75e56c1ef7300cbd5ff394f09c7970355079b6 | 51ec37fc8b633e90f699d4372e1301cf30b9d960 | /angrmanagement/ui/toolbars/toolbar_action.py | b5297339032d4abc06afc2f05896b3ca27b13d43 | [
"BSD-2-Clause"
] | permissive | angr/angr-management | b7deffdefd53a99336c8da2cd21bd17f1eb689d7 | f28bfb1c34313c74f99691d0b47de1d90ebfd4ec | refs/heads/master | 2023-09-02T11:53:13.869102 | 2023-08-31T23:38:12 | 2023-08-31T23:38:12 | 40,425,410 | 727 | 125 | BSD-2-Clause | 2023-09-11T22:09:39 | 2015-08-09T04:35:26 | Python | UTF-8 | Python | false | false | 585 | py | class ToolbarAction:
def __init__(self, icon, name, tooltip, triggered, checkable=False, shortcut=None):
self.icon = icon
self.name = name
self.tooltip = tooltip
self.triggered = triggered
self.checkable = checkable
self.shortcut = shortcut
def __hash__(self):
... | [
"noreply@github.com"
] | angr.noreply@github.com |
fd30b09fe8bc3641f1b3def960bfbf914b20883d | 1d1f173d67a04b78f732aee99ef0e2d4e8284d63 | /dev/phylografter_workaround.py | c2afcd323e6a6731ab85836b191cd5292163b922 | [
"Python-2.0",
"BSD-2-Clause"
] | permissive | rvosa/peyotl | 8767165ec85129c8f25c56a572f0bd879158aa2a | 98154af9832d18cbcb079f7e2db3b0e45893e1da | refs/heads/master | 2021-01-18T19:48:31.273061 | 2015-09-03T15:30:13 | 2015-09-03T15:30:13 | 41,867,598 | 0 | 0 | null | 2015-09-03T15:29:00 | 2015-09-03T15:29:00 | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/env python
import sys, json, codecs
from peyotl.phylografter.nexson_workaround import workaround_phylografter_export_diffs
inpfn = sys.argv[1]
outfn = sys.argv[2]
inp = codecs.open(inpfn, mode='rU', encoding='utf-8')
obj = json.load(inp)
workaround_phylografter_export_diffs(obj, outfn) | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
ee9ca801490c9efbd0feeb7b4aef729657168eb5 | cb0bde8ab641d5e411e91477728ade090836b729 | /sdk/python/pulumi_azure_nextgen/web/latest/web_app_metadata.py | 20a633976d48076e3187f390ed68311e3b95e47e | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | rchamorro/pulumi-azure-nextgen | 7debd444063f0f9810ac0ee5fe11e7e8913b4886 | 09987cba1c466657730a23f5083aa62ec3dc8247 | refs/heads/master | 2023-03-03T09:32:59.634185 | 2021-02-10T16:13:24 | 2021-02-10T16:13:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,534 | 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
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | rchamorro.noreply@github.com |
e6ba30f501ef7ca6789ce6408a5692531d2ee3fa | 14a913fce4b538b22f28409645cd6abe3455808f | /bigtable/quickstart_happybase/main_test.py | 5f08c30b8b7bf068b92a8642ce32bef179ddf70a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iamLoi/Python-Random-Number-Generator | 8da7dbd37cb13a01232c8ed49b9df35a99c63d73 | 7579e8b15130802aaf519979e475c6c75c403eda | refs/heads/master | 2022-08-29T19:05:32.649931 | 2019-09-14T14:48:58 | 2019-09-14T14:48:58 | 208,454,877 | 2 | 1 | Apache-2.0 | 2022-08-05T21:57:49 | 2019-09-14T14:51:05 | Python | UTF-8 | Python | false | false | 873 | py | # Copyright 2018 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | iamLoi.noreply@github.com |
e7648cbf466cc94ea89fc72b4f47f5aa9e8ef1c9 | 301ff8012353185db7d1ad76f05e1b7972306f19 | /pickup/pickup2ground.py | 6a81bcf215cca8cf7db2c4c578143fa76cc5bcaf | [] | no_license | msyriac/tenki | 36cc9e7cee8f5bbc688ac0c946e0cc5c3be1df2c | b727f0f40f00a431679fea41e5dd693f07cc496b | refs/heads/master | 2021-01-22T07:32:03.015010 | 2017-08-23T14:15:28 | 2017-08-23T14:15:28 | 102,306,661 | 0 | 0 | null | 2017-09-04T01:36:40 | 2017-09-04T01:36:40 | null | UTF-8 | Python | false | false | 2,095 | py | # Project a single pickup map into horizontal coordinates
import numpy as np, os
from enlib import enmap, utils, config, array_ops
from enact import actdata, filedb
parser = config.ArgumentParser(os.environ["HOME"] + "/.enkirc")
parser.add_argument("pickup_map")
parser.add_argument("template")
parser.add_argument("sel_... | [
"sigurdkn@astro.uio.no"
] | sigurdkn@astro.uio.no |
db082c6ccc44d72a76219a522cda7b5f8c59f543 | b9acbd83aca1f147db64620127a5ea2518910265 | /calvin-base-master/calvin/runtime/north/control_apis/runtime_api.py | 9d6fb6a3278a678546f6b9dea69e960f54ec8238 | [
"Apache-2.0"
] | permissive | skyjan0428/WorkSpace | c1484bde0e4a79a02486f45c518113ba4e3072bf | 837be7be75f06b6823df1cb63128506d9ce0016e | refs/heads/main | 2023-02-27T11:15:56.974778 | 2021-01-31T16:53:42 | 2021-01-31T16:53:42 | 321,545,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,959 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018 Ericsson AB
#
# 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 ... | [
"skyjan0428@gmail.com"
] | skyjan0428@gmail.com |
b7486ff523640c2dc9848f2de261a32473eedb3a | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pylint/test/functional/bad_continuation.py | 34c7c864c86ed2230807c6ccdf8b1eb41b67afdf | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 3,862 | py | """Regression test case for bad-continuation."""
# pylint: disable=print-statement,implicit-str-concat-in-sequence,using-constant-test,missing-docstring,wrong-import-position
# Various alignment for brackets
from __future__ import print_function
LIST0 = [1, 2, 3]
LIST1 = [1, 2, 3]
LIST2 = [1, 2, 3] # [bad-continuatio... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
e7ad02c46c836321fc801c6337ecc6989ac40f3a | 6a609bc67d6a271c1bd26885ce90b3332995143c | /exercises/array/kth_largest_element_in_a_stream.py | 9e85a56efb00d9c855375c9d8927a296ae770bdc | [] | no_license | nahgnaw/data-structure | 1c38b3f7e4953462c5c46310b53912a6e3bced9b | 18ed31a3edf20a3e5a0b7a0b56acca5b98939693 | refs/heads/master | 2020-04-05T18:33:46.321909 | 2016-07-29T21:14:12 | 2016-07-29T21:14:12 | 44,650,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # -*- coding: utf-8 -*-
"""
Design a data structure that supports the following two operations:
void addNum(int num) - Add a integer number from the data stream to the data structure.
int findKthLargest() - Return the Kth largest number.
"""
class StreamData(object):
def __init__(self, k):
self.heap = ... | [
"wanghan15@gmail.com"
] | wanghan15@gmail.com |
1b8071621e5a807dfbf32f489db90293f1e03389 | 96148bf17555c028f5650d51f496f349c89e8c79 | /build/cob_common/cob_srvs/catkin_generated/pkg.develspace.context.pc.py | e9d6f4abd9b3c97cf7a0411b20a4e7c5eea11669 | [] | no_license | kerekare/ros_hydra_libphidgetsupdated | 239daed94a95f60743c5659f1102183641761240 | e05e58417fb03a14d627bc80d09af3b2a0fcceab | refs/heads/master | 2016-09-05T23:35:43.792883 | 2014-03-25T16:32:01 | 2014-03-25T16:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kerekare/workspace/care-o-bot/devel/include".split(';') if "/home/kerekare/workspace/care-o-bot/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;trajectory_msgs;geo... | [
"kerekare@i60sr2.(none)"
] | kerekare@i60sr2.(none) |
76fe0a3f5aa81d72157f8f98e1075cbfe5e407f8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_243/ch170_2020_06_15_20_16_56_108338.py | 806f3ed123f5f56aca42de8307af5b88fd84f731 | [] | 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 | 218 | py | def apaga_repetidos(letras):
dic = {}
novas = ""
for letra in letras:
if letra in dic:
novas += "*"
else:
novas += letra
dic[letra]=letra
return novas | [
"you@example.com"
] | you@example.com |
4c2b7947b41201f8cef1f67b6c56bb5f479c0730 | 993cf64df4795e7912a7f9157bd8bf02aa985506 | /Tasks/2_AD/190401-5251-MinDis.py | fc43dbd939d9cd03400ba6661775334357519819 | [] | no_license | jiwonjulietyoon/Algorithm | b541e630c5b01b47cc05b538970d2b73d452baf5 | a11be16f4700e7e55382d4dcfd88d534a232f024 | refs/heads/master | 2020-04-24T01:54:05.200538 | 2019-11-09T03:56:47 | 2019-11-09T03:56:47 | 171,616,523 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # 5251. [파이썬 S/W 문제해결 구현] 7일차 - 최소 이동 거리
import sys
sys.stdin = open('../Input/5251.txt', 'r')
"""
# source, destination, length
# start: node 0
# goal: node N
"""
def min_not_vis(vis, dis):
min_idx = -1
min_dis = 11111
for i in range(N+1):
if vis[i]:
continue
else:
... | [
"jiwonjulietyoon@gmail.com"
] | jiwonjulietyoon@gmail.com |
94bb0ba1f6e517ca8fff0ea8bc4b7a8fea66af16 | a0e0bd0aacc93aa1b494a220aa79a6f99f6e8565 | /trunk/src/appserver/lib/console.py | 6306dba962b50cf2a5d9b94cd759694065dd53be | [] | no_license | newguangzhou/now-hello | b3f21c5b07c7f5b0b69eb91430c760d059499a03 | a0b970711318547afaa5d6ce1b500c089a2ded59 | refs/heads/master | 2021-08-20T03:21:42.927049 | 2017-11-28T02:40:59 | 2017-11-28T02:40:59 | 112,283,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | # -*- coding: utf-8 -*-
import logging
import tornado.tcpserver
import tornado.ioloop
from tornado import gen
class Console(tornado.tcpserver.TCPServer):
def __init__(self):
tornado.tcpserver.TCPServer.__init__(self)
@gen.coroutine
def _read_line(self, stream, address):
yield stream... | [
"bingodongtian@gmail.com"
] | bingodongtian@gmail.com |
38ac9b5d20a5a72d267ad789829aecd19e2a9e44 | c492c405f0535cb4eada74d9099b395f8e9701c3 | /demo/migrations/0002_auto_20191124_1646.py | 1c60f482747ab41c3f3a68ea11fd2022d3aa6277 | [] | no_license | Spirovanni/PyTut | a6a0713dcd100bbd35af21022e5b95f0894badf0 | 51489b7550ad8b4a70548de268624f806f827dc4 | refs/heads/master | 2020-09-16T15:39:55.081384 | 2019-11-29T03:39:42 | 2019-11-29T03:39:42 | 223,816,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.7 on 2019-11-25 00:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('demo', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='book',
name='title',
field=m... | [
"blackshieldsx@gmail.com"
] | blackshieldsx@gmail.com |
6155e5faa1425f554bea5aec1808a9bf81438e7b | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /tests/layer_tests/tensorflow_lite_tests/test_tfl_ReverseV2.py | 66a615945471d1c82044abccff6a5518cdc6b829 | [
"Apache-2.0"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | Python | false | false | 1,671 | py | import pytest
import tensorflow as tf
from common.tflite_layer_test_class import TFLiteLayerTest
test_params = [
{'shape': [1], 'axis': [-1]},
{'shape': [1], 'axis': [0]},
{'shape': [2, 6], 'axis': [-1, -2]},
{'shape': [2, 6], 'axis': [1]},
{'shape': [2, 4, 6], 'axis': [0, -2]},
{'shape': [2, ... | [
"noreply@github.com"
] | openvinotoolkit.noreply@github.com |
cbb758a402a190f2d6e6f0bac3ba7dba9a42a43b | 3e24611b7315b5ad588b2128570f1341b9c968e8 | /pacbiolib/pacbio/pythonpkgs/pysiv2/bin/testkit_to_json | d59af355fd78ac17429a55e647e303afeb146872 | [
"BSD-2-Clause"
] | permissive | bioCKO/lpp_Script | dc327be88c7d12243e25557f7da68d963917aa90 | 0cb2eedb48d4afa25abc2ed7231eb1fdd9baecc2 | refs/heads/master | 2022-02-27T12:35:05.979231 | 2019-08-27T05:56:33 | 2019-08-27T05:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,634 | #! python
import os
import argparse
import sys
import logging
from logging import log
from pysiv2 import utils
__author__ = 'gconcepcion'
log = logging.getLogger()
def setup_log(alog, file_name=None, level=logging.DEBUG):
if file_name is None:
handler = logging.StreamHandler(sys.stdout)
else:
... | [
"409511038@qq.com"
] | 409511038@qq.com | |
b4982047c820e343197ea0f6d3ad9ca252d41425 | 5984fdb0c07861f3d3b3a3b1944201b1b7217c1b | /github_contents.py | 135e27621a92afa23f802f284642b8de6771eb77 | [
"Apache-2.0"
] | permissive | jaywgraves/github-contents | 3e9db50f235b3a7a79551d5c48cd76d94f4cca33 | 8bb91a13d6d483227839a603489c67a83325ce63 | refs/heads/master | 2021-04-02T03:27:28.165486 | 2020-03-13T21:48:55 | 2020-03-13T21:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,781 | py | import base64
from requests import Session
class GithubContents:
class NotFound(Exception):
pass
class UnknownError(Exception):
pass
def __init__(self, owner, repo, token, branch=None):
self.owner = owner
self.repo = repo
self.token = token
self.branch = b... | [
"swillison@gmail.com"
] | swillison@gmail.com |
0ea25180c5dc115b5b37177068603cec2d6827f4 | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/agc016_a2.py | 750469c7c38ef8a70ef749bb3d8fa1439c1b0a6b | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | s = input()
n = len(s)
res = 10**5
for c in set(list(s)):
ss = list(s)
cnt = 0
while len(set(ss))>1:
cnt += 1
for i in range(len(ss)-1):
if c==ss[i+1]:
ss[i] = c
ss.pop()
res = min(res, cnt)
print(res) | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
733ae494a4ecbad01c04af80d49ec3f90f6c6b46 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/44/usersdata/98/14637/submittedfiles/desvpad.py | 070c267968854b9ffecc983f6ff646f40f3e8c8c | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#comece abaixo
n=input('Digite a quantidade de valores: ')
l=[]
soma=0
soma2=0
for i in range(0,n,1):
l.append(input('Digite um valor: '))
soma=soma+l[i]
media= soma/n
for i in range(1,n+1,1):
soma2=(i-media)**2
s= ((1/(n-1))*soma2)**(1/... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
2e06e1980cde49ce41b1e7da5a288d1e723ff451 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/kpi/csv/scouteventgachapointconsume.py | 3e3e67c5ad7740f436e5a8d6a34b403592ebd208 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | # -*- coding: utf-8 -*-
import settings
from platinumegg.app.cabaret.util.db_util import ModelRequestMgr
from platinumegg.app.cabaret.kpi.models.scoutevent import ScoutEventGachaPointConsumeHash
from platinumegg.app.cabaret.kpi.csv.scoutevent import ScoutEventCSVBase
backup_db = getattr(settings, 'DB_BACKUP', settings... | [
"shangye@mail.com"
] | shangye@mail.com |
8e77edd8dbfd0120efcb306a4b71746957ff489b | 3bed14fe6abcd8370916de178daff9746335b999 | /PythonProjects/02-ObjectsFunctionsAndMethods/src/m4_functions.py | 0e66614b27a449f865d2e95fd574fa3359682bc4 | [
"MIT"
] | permissive | sanaebrahimi/csse120-public | 346912d13aa1721dd780bfb9f0403c8ea2e5c9d0 | 128199b278e5cc5386bdfe5a9151b738ce09f8ff | refs/heads/master | 2022-12-14T12:58:45.803734 | 2020-09-08T03:33:44 | 2020-09-08T03:33:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,907 | py | """
Practice DEFINING and CALLING
FUNCTIONS
Authors: David Mutchler, Sana Ebrahimi, Mohammed Noureddine, Vibha Alangar,
Matt Boutell, Dave Fisher, their colleagues, and
PUT_YOUR_NAME_HERE.
""" # TODO: 1. PUT YOUR NAME IN THE ABOVE LINE.
#########################################################... | [
"mutchler@rose-hulman.edu"
] | mutchler@rose-hulman.edu |
d356ff767d243dca741ca1a7a526a9ab397e7661 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_11_01/aio/operations/_load_balancer_network_interfaces_operations.py | 5e351840793d45108df3555656e21cf0f89b9bd3 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 5,623 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
e5cbe4defe3eb48759672a185f2e75739378bb9d | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/tablib-0.10.0/tablib/packages/openpyxl/writer/excel.py | b95245ec2ba4408c6f85a9b4e3915339b51d9ddc | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-Advertising-Acknowledgement",
"MIT"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 6,332 | py | # file openpyxl/writer/excel.py
# Copyright (c) 2010 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, m... | [
"abraham@elmahrek.com"
] | abraham@elmahrek.com |
0d69b1cca7ac402b2bf0126e0fbc92837503b45f | 0f85db2a2bda863359ad7c81ec6ebba5b42ad939 | /36-challenges/ex115.py | 590d9cf00f800827b703040bb59b5bcfdda09f1e | [] | no_license | ferreret/python-bootcamp-udemy | 894a08ba086bad41ba02f2015112956545f3b581 | ce499458d7da9ff64f9113114cf855afbc6f8163 | refs/heads/master | 2022-11-18T00:12:24.613797 | 2020-07-15T19:46:45 | 2020-07-15T19:46:45 | 257,936,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py |
'''
includes([1, 2, 3], 1) # True
includes([1, 2, 3], 1, 2) # False
includes({ 'a': 1, 'b': 2 }, 1) # True
includes({ 'a': 1, 'b': 2 }, 'a') # False
includes('abcd', 'b') # True
includes('abcd', 'e') # False
'''
def includes(collection, value, start_index=0):
if (isinstance(collection, dict)):
return ... | [
"ferreret@gmail.com"
] | ferreret@gmail.com |
a1f84e1cd613f2db636b17cd80dc027b0d1e3c59 | d43100d78daa1a8167e462e0faaa7d2a0fe97671 | /touchtechnology/common/tests/test_models.py | a7a26375da8cde01ddd7115cf63998b17a077224 | [
"BSD-3-Clause"
] | permissive | goodtune/vitriolic | 1d6ee4758ed41f1674b70311be88c7135b2d1ed0 | d4b3da0a8c9b5ccbda4d898003d82934ccad6a7b | refs/heads/main | 2023-08-22T21:29:05.488534 | 2023-07-23T03:00:16 | 2023-07-23T03:00:16 | 73,355,905 | 0 | 0 | BSD-3-Clause | 2023-09-04T16:25:44 | 2016-11-10T07:06:41 | Python | UTF-8 | Python | false | false | 355 | py | from django.utils.encoding import smart_str
from test_plus import TestCase
from touchtechnology.common.tests import factories
class SitemapNodeTests(TestCase):
def setUp(self):
self.object = factories.SitemapNodeFactory.create()
def test_string_representation(self):
self.assertEqual(self.obj... | [
"gary@touch.asn.au"
] | gary@touch.asn.au |
ca12ea91f5c1cfafc228d306af427cdb5e2fd9fe | 5b28005b6ee600e6eeca2fc7c57c346e23da285f | /nomadic_recording_lib/ui/qt/bases/qtsimple.py | b93a45beb012474f93e49d848144358df034b7e6 | [] | no_license | nocarryr/wowza_logparse | c31d2db7ad854c6b0d13495a0ede5f406c2fce3f | d6daa5bf58bae1db48ac30031a845bf975c7d5cc | refs/heads/master | 2021-01-17T07:19:00.347206 | 2017-06-24T16:57:32 | 2017-06-24T16:57:32 | 25,835,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py |
from ...bases import simple
class Color(simple.Color):
pass
class EntryBuffer(simple.EntryBuffer):
pass
class Spin(simple.Spin):
pass
class Radio(simple.Radio):
pass
class Toggle(simple.Toggle):
pass
class Fader(simple.Fader):
pass
class ScaledFader(simple.ScaledF... | [
"matt@nomadic-recording.com"
] | matt@nomadic-recording.com |
030b8a4210f6316bcd16d65f28a93e647afdd838 | 7d58cb5bb403d394e609a1f4be8f438cfcaa3895 | /queue/arrayqueue.py | 1f9d7b91dcefda86a4f23f09064ecd934caeccc8 | [] | no_license | TechInTech/dataStructure | 7a07a0ca3f4ccf4b60f766df536908a36520dd51 | eb4d6c315867ebb676a1119a5099024aa37988eb | refs/heads/master | 2020-05-03T04:23:55.319238 | 2019-05-24T07:27:47 | 2019-05-24T07:27:47 | 178,420,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,129 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2019/2/21 11:04
# @Author : Despicable Me
# @Email :
# @File : arrayqueue.py
# @Software: PyCharm
# @Explain :
from arrays import Array
from abstractqueue import AbstractQueue
class ArrayQueue1(AbstractQueue):
"""移动队尾rear"""
DEFAULT_CAPACITY ... | [
"wdw_bluesky@163.com"
] | wdw_bluesky@163.com |
00e1101a2d4dffa2fae86d26f0dbd14410a93620 | 5d5b6a7bd7fffe46980d41e452fe92c28a08d5d1 | /UDP--/asyncio-queue.py | 57c5600728289fcd7729ba4f31fd87e3791cea9d | [] | no_license | calllivecn/testing | ce21442f1398b177675ca2b655c4ed3aaf1edcb3 | 05c1d335d54bb12fbbcf3721260763e4537dcaf4 | refs/heads/master | 2023-08-20T21:51:15.511595 | 2023-06-13T13:26:37 | 2023-06-13T13:26:37 | 49,574,572 | 0 | 1 | null | 2022-12-08T09:29:09 | 2016-01-13T13:11:57 | Python | UTF-8 | Python | false | false | 1,523 | py | #!/usr/bin/env python3
# coding=utf-8
# date 2022-09-09 21:21:12
# author calllivecn <c-all@qq.com>
import queue
import asyncio
import threading
async def customer(q):
while (task := await q.get()) is not None:
q.task_done()
print(f"customer: {task}")
async def producter(q):
for i in range... | [
"calllivecn@outlook.com"
] | calllivecn@outlook.com |
688d5d0aa4a544d0b6ebdd24b9ca3c2c5ebfae91 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/iothub/azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/models/iot_dps_properties_description_py3.py | c8f57abf34739bf39900f01dedfbe64c8f796761 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 3,854 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
1c83b0d6834355f9d556f510537c7ebea1b4ac9f | 3fd8eae327323ea45d31909d537fd7ee8f49c2de | /torch_stft/util.py | e1a92295009ab8e82ce1f2060b0da5cb790e44c7 | [
"BSD-3-Clause"
] | permissive | taeminlee/torch-stft | 4f61c754f8a953d51d492404de602310bfaa38ca | c6236f77af113207a78feff93b4b9cbeeccb9143 | refs/heads/master | 2020-11-29T19:55:50.041494 | 2019-12-26T06:15:14 | 2019-12-26T06:15:14 | 230,204,083 | 0 | 0 | BSD-3-Clause | 2019-12-26T05:58:20 | 2019-12-26T05:58:19 | null | UTF-8 | Python | false | false | 1,657 | py | import numpy as np
from scipy.signal import get_window
import librosa.util as librosa_util
def window_sumsquare(window, n_frames, hop_length=200, win_length=800,
n_fft=800, dtype=np.float32, norm=None):
"""
# from librosa 0.6
Compute the sum-square envelope of a window function at a gi... | [
"prem@u.northwestern.edu"
] | prem@u.northwestern.edu |
5c9b1176bbf81a0b9b815632de912c5e83333052 | 2e60bdaf03181f1479701efebbb495f88615df4c | /nlp/ner/lstm/dataset/dataset.py | b55fb2e52e9c0e63d501499eba7771fc0cb3eac0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | whatisnull/tensorflow_nlp | dc67589ee4069f7a71baa1640d796bac3445bb5c | 0ecb1e12bbe1fc3d5a63e68d788547d0ae92aeef | refs/heads/master | 2023-04-23T08:23:55.914154 | 2019-09-15T03:47:55 | 2019-09-15T03:47:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | # -*- coding:utf-8 -*-
import numpy as np
class Dataset(object):
def __init__(self, word_data, tag_data):
self._start = 0
self._cursor = 0
self._num_samples = word_data.shape[0]
self._word_data = word_data
self._tag_data = tag_data
@property
def word_data(self):
... | [
"endymecy@sina.cn"
] | endymecy@sina.cn |
84064f13bfdd302ead83e4bef54ded511537fc93 | 87dae6d55c66df1d40d6881272009319a1600cb3 | /Practica_6__Ejercicio_4__Inmigrantes2.py | f10e29a73ebd529401d44818335e229ff2f34447 | [] | no_license | abaldeg/EjerciciosPython | 92a30a82c05ec75aa7f313c8a6fa0dd052a8db11 | c8a3238587ebf6b10dbff32516c81bf00bb01630 | refs/heads/master | 2021-07-09T07:46:11.584855 | 2020-11-09T11:51:50 | 2020-11-09T11:51:50 | 210,438,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # Practica 6 - Ejercicio 4
try:
entrada = open("Apellidos.txt")
armenia = open("armenia.txt", "wt")
italia = open("italia.txt", "wt")
españa = open("españa.txt", "wt")
print("\nLeyendo datos...")
datos = entrada.readline()
while datos:
if datos.upper().find("IAN,")!=-1:
... | [
"abaldeg@gmail.com"
] | abaldeg@gmail.com |
a84a3a1979c3cf029fedadcb95908324fb1a010c | fd4fac4c6001dcedee7d5e87327368b5050c45d5 | /htseq/db/archive/fusion-tables-client-python-read-only/src/sql/sqlbuilder.py | 799056bbeb57353eadef5ef07793ae90e6830b53 | [] | no_license | nickloman/omicsmaps | 6b92e4dbe568287af1049d8d2814a5bad934942b | fd17a2f84d3dc4be86539e223c77f5e4bc5880ed | refs/heads/master | 2021-01-23T13:32:07.623246 | 2015-01-04T12:55:11 | 2015-01-04T12:55:11 | 28,738,982 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | #!/usr/bin/python
#
# Copyright (C) 2010 Google Inc.
""" Builds SQL strings.
Builds SQL strings to pass to FTClient query method.
"""
__author__ = 'kbrisbin@google.com (Kathryn Hurley)'
class SQL:
""" Helper class for building SQL queries """
def showTables(self):
""" Build a SHOW TABLES sql statement.
... | [
"n.j.loman@bham.ac.uk"
] | n.j.loman@bham.ac.uk |
83a367b329229b92477b1a88fa5d6ed59bce7bf3 | 9577a61a677142067b9c9f9b60e192e66904d8aa | /docs/images/plot.py | 7879ac19e771ef5dbef1c2416913ed4a67c88706 | [
"Apache-2.0"
] | permissive | QuantumBFS/YaoAD.jl | 9e9a8409e927564ebecaaae1218b9757e17c6abc | e591ccbe6927a907d6454458676e6035a966f09b | refs/heads/master | 2020-05-26T10:01:25.824430 | 2020-03-11T02:09:47 | 2020-03-11T02:09:47 | 188,196,347 | 2 | 1 | Apache-2.0 | 2020-02-23T21:54:54 | 2019-05-23T08:49:21 | Julia | UTF-8 | Python | false | false | 534 | py | #!/usr/bin/env python
import fire
from plotlib import *
class PLT(object):
def fig1(self, tp='pdf'):
nsite = 4
data = np.loadtxt("../data/loss_history_%d.dat"%nsite)
EG = -8
with DataPlt(figsize=(5,4), filename="fig1.%s"%tp) as dp:
plt.plot(np.arange(len(data)), data/nsi... | [
"cacate0129@gmail.com"
] | cacate0129@gmail.com |
80f65c753fd32363d2f48a628df5baae43e116fe | 22e6dcbebad329b32579e531af8b33bc657088c9 | /AtCoder/ABC111/ProbC.py | 7857a4a06712c062e6574447a30cb76569137f91 | [] | no_license | daigo0927/ProgrammingContest | a63b74bb79ece46181b03dc359bf665604b11ea5 | f54aa8f485ebfd30d5ee84fd74fa9e0661c2a7df | refs/heads/master | 2021-06-21T09:26:23.699668 | 2019-06-22T18:51:32 | 2019-06-22T18:51:32 | 132,655,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | n = int(input())
v = list(map(int, input().split()))
ans = 0
even = v[::2]
nums_e = {}
for e in even:
if not e in nums_e.keys():
nums_e[e] = 1
else:
nums_e[e] += 1
e_sorted = []
for key, value in nums_e.items():
e_sorted.append([value, key])
e_sorted = sorted(e_sorted, reverse = True) + [[... | [
"Daigo@Daigo-no-MacBook-Air.local"
] | Daigo@Daigo-no-MacBook-Air.local |
8be6496c26ae7209b534e5a00a5f87083b90ed55 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1674486_0/Python/Epcylon/diamonds.py | 2e2157e6604aa88f7abc29801ac943c856abe3e6 | [] | 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 | 5,430 | py | #!/usr/bin/python
"""
Author: Morten Lied Johansen - mortenjo@ifi.uio.no
Google CodeJam 2012
Round: 1C
Problem: Diamond inheritance
"""
import collections
import os
import sys
import time
from pprint import pformat
from cStringIO import StringIO
import unittest
import logging
from logging import in... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
336de6e435da28ab320f65a19b891c0a296eeb6b | 39398e12e41dd9574488af872c2a06546ddca4ad | /factory-ai-vision/EdgeSolution/modules/WebModule/backend/vision_on_edge/notifications/consumers.py | 2638d7ce68bdebcf6c1321c2bb511b38216a4d8d | [
"MIT"
] | permissive | piyushka17/azure-intelligent-edge-patterns | 612dc2ff9442fe37343844ca642308cf3d892240 | 0d088899afb0022daa2ac434226824dba2c997c1 | refs/heads/master | 2022-12-01T03:04:14.881931 | 2020-08-11T14:38:10 | 2020-08-11T14:38:10 | 286,632,773 | 0 | 0 | MIT | 2020-08-11T03:07:46 | 2020-08-11T03:07:46 | null | UTF-8 | Python | false | false | 1,408 | py | # -*- coding: utf-8 -*-
"""Notification Consumer
"""
# pylint: disable=unused-import
import asyncio
# pylint: enable=unused-import
import logging
from channels.generic.websocket import AsyncJsonWebsocketConsumer
# from .models import Notification
logger = logging.getLogger(__name__)
class NotificationConsumer(Asy... | [
"peteeelol@gmail.com"
] | peteeelol@gmail.com |
54cc4616d2c462da1ff90769d605ca3f52d839c6 | d6a0cc09c0fd86d95bc0ee8034acf09334a2c377 | /plant/크롤링2.py | 847846c5eb4d4617364ebcee452fe8201ec28bfc | [] | no_license | Kimuksung/bigdata | e2b0e04e817a7113cba8c5d4acdd8cf20b664147 | e7cce223eb55709d9ebcb631e39360b347a02764 | refs/heads/master | 2021-07-13T10:16:54.498961 | 2021-03-08T02:27:28 | 2021-03-08T02:27:28 | 241,530,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
# 습도 - https://www.weather.go.kr/weather/observation/currentweather.jsp?tm=2020.06.19.01:00&type=t13&mode=0®=100&auto_man=m&stn=129
# 이슬점 - https://www.weather.go.kr/weather/observation/currentweather.jsp?tm=2020.06.19.01:00&type=t12&mode=0®=100&a... | [
"kimuksung2@gmail.com"
] | kimuksung2@gmail.com |
0e38d2a2bdbcdc5299f5b0bd9fd4047035b1acff | d88868386b529a7adecb1f0caf1db6cdf743951f | /triematcher.py | 2bbfb3bf0e5e2006e2004960a8ad0aa5c738a320 | [] | no_license | hldai/ks-studio-el | 4b87476846a8aa987203d882e51562b1847445f9 | 995ae4af67c360744170125da63472e940bed87d | refs/heads/master | 2020-12-24T21:21:25.911325 | 2016-12-01T10:56:38 | 2016-12-01T10:56:38 | 58,045,365 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,897 | py | class TrieNode:
def __init__(self):
self.ch = None
self.child = None
self.next_child = None
self.rid = None
def add_child(self, ch):
if not self.child:
self.child = TrieNode()
self.child.ch = ch
return self.child
cur_child = s... | [
"hldai@outlook.com"
] | hldai@outlook.com |
da5596d54ac00268281f5b368ce5bdb61bbf3e85 | 1575d5acc07eb67cb4e3cd523a24bb1d39efcb84 | /pattenRecognition/mnist/demo-p2/train.py | 6fa6b5694e1fb2743ed1bdcf92262344f744728e | [] | no_license | ChenLiangbo/DeepLearning | 4bd80ddb2a41b883ef70947a8b1fdb3b19656df0 | 3464c27116dc00bd597d2b9c25313964e1d89797 | refs/heads/master | 2020-12-24T12:39:27.666215 | 2017-05-09T13:49:44 | 2017-05-09T13:49:44 | 72,974,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | #!usr/bin/env/python
# -*- coding: utf-8 -*-
import numpy as np
import input_data
from cnnModel import MyCNNmodel
trainNumber = 55000
mnist = input_data.read_data_sets("../MNIST_data/", one_hot=True)
x_train, y_train, x_test, y_test = mnist.train.images, mnist.train.labels, mnist.test.images, mnist.test.labels
print ... | [
"chenlb@polarwin.cn"
] | chenlb@polarwin.cn |
c2d224c8012c4eab20df0ed6980600ceaa4e0906 | e1f941604b7a8bf4b86b700a2a0fd302dbe70434 | /add_extinction_column_rejected.py | 8f288639ed8d6c93a2bbc7373188bbcdf20a6e05 | [] | no_license | frenchd24/gt | fcc0bfee6b7f3c68871218f237e31c395889b5de | e0840800d8a3f906844b30701b294f102b030243 | refs/heads/master | 2021-06-03T18:05:10.797021 | 2020-07-06T04:22:37 | 2020-07-06T04:22:37 | 109,777,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,074 | py | #!/usr/bin/env python
'''
By David French (frenchd@astro.wisc.edu)
$Id: add_extinction_column_rejected.py, v 2.1 09/08/17
does the thing below but on file rejected_results_redo.csv
Based on:
Id: add_extinction_column.py, v 2.0 04/24/17
Add extinction column to return_basic_full.csv based on new IRSA values
Re... | [
"frenchd24@gmail.com"
] | frenchd24@gmail.com |
125eda5c2ea26724993805d2bdd9694df6fbe0fb | ab9eac7d27788b98bd3d43577bf11658fa6c67c5 | /src/clean_data.py | 2e7beaeb134717e44de0b902f242bee563130bad | [] | no_license | IkeyBenz/Instagram-Network-Graph | 1b0d5163b945a56ec024af77419bc03c3088bbac | 82ca93b94cb7b75b341683d4c20b489960c7378d | refs/heads/master | 2023-02-02T01:52:44.235220 | 2020-12-20T21:12:00 | 2020-12-20T21:12:00 | 321,414,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,355 | py | from os import listdir, path
from util import get_data_dir, get_mutual_followship_path, get_user_connections_path, get_authenticated_username
data_dir = get_data_dir()
authenticated_username = get_authenticated_username()
connections_path = get_user_connections_path()
def get_users_connections():
return set(open... | [
"ikey.benz@gmail.com"
] | ikey.benz@gmail.com |
0afc429868366eb8eadd730a1566d020e31b6f46 | dbb32a7d5b96a94533b27a6ccf2474c660a863b7 | /containers/actor/sources/utils/__init__.py | 756cad2b8abb42638833a16139c9961fc42fd77d | [] | no_license | ankurhcu/FogBus2 | 772e8346c5e01e2aa8a02da9ef91fd696dd587a7 | 2cefabdd1d131fc8e9015ca31d414665e6014a69 | refs/heads/main | 2023-08-07T15:33:54.039724 | 2021-09-21T05:02:49 | 2021-09-21T05:02:49 | 410,610,212 | 1 | 0 | null | 2021-09-26T16:57:23 | 2021-09-26T16:57:22 | null | UTF-8 | Python | false | false | 1,823 | py | from .component import BasicComponent
from .component import PeriodicTaskRunner
from .config import ConfigActor
from .config import ConfigMaster
from .config import ConfigRemoteLogger
from .config import ConfigTaskExecutor
from .config import ConfigUser
from .connection import BasicMessageHandler
from .connection impor... | [
"plocircle@live.com"
] | plocircle@live.com |
1a29ed7174a5e46688668e138299e976917f4743 | 34a9a91e6c3fbf427826d2cb2ad3d7c7a00ad0c0 | /collision_detection_program/SBI/beans/__init__.py | 87e717e7f04422002fd6fbaeabcf242107d76132 | [
"MIT"
] | permissive | structuralbioinformatics/SPServer | 015d7ede4b2c439c648b663b9af56a0ca98e277b | 946b7afdac16aef391ddd162daabfcc968eb9110 | refs/heads/master | 2021-04-23T14:02:10.935764 | 2020-07-24T09:00:19 | 2020-07-24T09:00:19 | 249,930,917 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | __all__ = [
"Singleton",
"Butler",
"File",
"FileError",
"StorableObject",
"Executable",
"Path",
"IndexedNum",
"JSONer"
]
from .singleton import Singleton
from .butler import Butler
from .file import (File, FileError)
from .StorableObject import StorableObject
... | [
"quim.aguirre@hotmail.com"
] | quim.aguirre@hotmail.com |
090b01787d67ad38963fba38a99e8b1e8a557d7c | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2021/June/Pascal's Triangle.py | d5f72948364fa07f9c70d38dfef7769ff10d9ebb | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from typing import List
class Solution:
def generate(self, numRows: int) -> List[List[int]]:
if numRows == 1:
return [[1]]
rows = [[1], [1, 1]]
for i in range(2, numRows):
row = [1]
for j in range(1, i):
row.append(rows[-1][j] + rows[-1][... | [
"mariandanaila01@gmail.com"
] | mariandanaila01@gmail.com |
d9450370110654bbba361d0adb0ff18def6f3bf6 | 52f0984561895b48f3e6e40658a6e52c97705715 | /python-folder/year-grade.py | 5b6647ed5326a8d753ec1092b8476883e8bf511b | [] | no_license | jsanon01/python | 8da2755e7724850875518455c1760bb9f04dd873 | edd52214e3578f18b71b0ad944c287411fb23dfb | refs/heads/master | 2022-05-20T00:29:10.550169 | 2022-05-10T01:08:48 | 2022-05-10T01:08:48 | 165,682,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # This script prints a while-loop with if-elif statement
year = " "
while year != 'q':
year = input('Enter a grade from 0 - 13 or q to quit: ')
if year.isdigit():
year = int(year)
if year == 0:
print('You are in Pre-School')
elif year == 1:
print('You are in ... | [
"jeansanon180@gmail.com"
] | jeansanon180@gmail.com |
005fc965039152d62022c24120d51fc81fda661b | 4bde2d1e2282014f71b8cfec4440cb062db172cb | /euler_021.py | 1bbf96ecb93e58589edeffbbaf5d3fcf9c7699a2 | [] | no_license | MrDeshaies/NOT-projecteuler.net | 6b107a515b1322fcd5f7d88e187ca2ea97edddcf | c6f0bd38d074b427345b4f5b41733bda38fbcdb4 | refs/heads/master | 2022-11-17T18:39:43.321814 | 2022-11-13T11:35:10 | 2022-11-13T11:35:10 | 201,793,983 | 0 | 0 | null | 2019-08-18T19:50:45 | 2019-08-11T17:20:18 | Python | UTF-8 | Python | false | false | 923 | py | from euler import *
import math
# Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
# If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called
# amicable numbers.
#
# For example, the proper divisors of 220 are 1, 2, ... | [
"benoit.deshaies@gmail.com"
] | benoit.deshaies@gmail.com |
206043e6d4c95bbf4afa57ff9b6d0fa29d8d4d3d | bc441bb06b8948288f110af63feda4e798f30225 | /resource_monitor_sdk/model/resource_manage/filter_strategy_instance_data_pb2.py | 754fef25b2c606e53ea2f232404bda2034096d3d | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,615 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: filter_strategy_instance_data.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
fr... | [
"service@easyops.cn"
] | service@easyops.cn |
52cc436d976d9ead1d13b314196b6be9d9d8fc4c | c29eba01ce299ebb27b886a83e19e59add7e2f6b | /tests/pytest_extension/fixtures/test_issue_github_54.py | 34ceadfa56fc64602d0e04f8a54879098f489c44 | [
"BSD-3-Clause"
] | permissive | smarie/python-pytest-cases | e87516e73d5067d5c307c7fdb37cc5f1f97c417e | ab3b7190d728b18512141b9f5f3a1c3dfc7cedf2 | refs/heads/main | 2023-07-08T11:41:57.278697 | 2023-02-23T13:11:25 | 2023-02-23T13:11:25 | 138,296,136 | 286 | 40 | BSD-3-Clause | 2023-07-03T14:57:02 | 2018-06-22T11:42:19 | Python | UTF-8 | Python | false | false | 600 | py | # Authors: Sylvain MARIE <sylvain.marie@se.com>
# + All contributors to <https://github.com/smarie/python-pytest-cases>
#
# License: 3-clause BSD, <https://github.com/smarie/python-pytest-cases/blob/master/LICENSE>
import pytest
from pytest_cases.fixture_core1_unions import InvalidParamsList
from pytest_cases... | [
"sylvain.marie@se.com"
] | sylvain.marie@se.com |
a3e9a18765fad1e19b88ac4df2ef46b6ddef4d9b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/configs/guided_anchoring/ga_faster_r50_caffe_fpn_1x.py | eba5902c5acd2a9c3bbb92f63de00ac450eb4f6b | [
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 6,718 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
861755d3c8cbf83029189ac9a98f4896f67dafad | b0110e27e3162e2092259dd299481de1dafb4ea8 | /parallel/p7red.test.key.py | 44867a6a942964cfe29d902c74675fd2ad65708f | [
"MIT"
] | permissive | mobarski/sandbox | f9be203bf7015f6df70badd605a40172b63a90f8 | f9054fb3252488208e503a87efba5df74fc70538 | refs/heads/master | 2023-05-29T14:51:00.125028 | 2023-05-14T21:02:38 | 2023-05-14T21:02:38 | 86,854,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from __future__ import print_function
import sys
lines = sys.stdin.readlines()
rows = [str.partition(x,' ') for x in lines if x.strip()]
key_sum = 0
key = rows[0][0]
for k,_,x in rows:
if k!=key:
print(key,key_sum)
key_sum = 0
key = k
key_sum += int(x)
print(key,key_sum)
| [
"mobarski@pl.grupa.iti"
] | mobarski@pl.grupa.iti |
06bd77a00c108cd3162f43c0b8c735e395c7c330 | a12a4be7e8c792b4c1f2765d3e7a43056e9196b0 | /399-evaluate-division/399-evaluate-division.py | 317cbb08733f23f1593c0c5e5836a04b160ea65c | [] | no_license | fdas3213/Leetcode | d4b7cfab70446b3f6a961252a55b36185bc87712 | 1335d5759c41f26eb45c8373f33ee97878c4a638 | refs/heads/master | 2022-05-28T16:24:15.856679 | 2022-05-19T21:56:35 | 2022-05-19T21:56:35 | 94,024,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | class Solution:
def calcEquation(self, equations: List[List[str]], values: List[float], queries: List[List[str]]) -> List[float]:
#step 1. initialize a graph
graph = defaultdict(defaultdict)
for pair, value in zip(equations, values):
v1, v2 = pair[0], pair[1]
graph[v1... | [
"szx9404@gmail.com"
] | szx9404@gmail.com |
4749db7324c75666dd8e25a25566092e3b09963e | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/plone.app.kss-1.6.2-py2.7.egg/plone/app/kss/demo/bbb_oldkssdemo.py | 112c7267a425cbc4ada948bfe06706153dd4619d | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py |
# XXX future BBB
# Provide a way for the old kss.demo version, not to fail
# with import error - even if it cannot execute these tests.
# This enables that the package can contain application level
# test setup, but it still does not fail with the old version.
try:
import kss.demo
from kss.demo import (
... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
10688edc40347097c51ecda235be420e4c48ecaa | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/led_animation_group.py | 011a019ee803683432760c85a49cbbacb6bfd77c | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | """
This example shows three different ways to use AnimationGroup: syncing two animations, displaying
two animations at different speeds, and displaying two animations sequentially, across two separate
pixel objects such as the built-in NeoPixels on a Circuit Playground Bluefruit and a NeoPixel strip.
This exampl... | [
"nams@nist.gov"
] | nams@nist.gov |
e6aa1fc31893a65606e16abf84d605a55a52173a | e5a20362b2f9b17055cb95d56dc8dea2059205fb | /arrays_manipulations_algorithms/is_str_equal.py | 4c1d539801e17f907e0371055984660ed94ffd56 | [] | no_license | uchenna-j-edeh/dailly_problems | 0c97d1ab3c91756abf625a04e3bb6e0cd6e3405c | 7bd47232704297851f8acdd9331f90da96c732af | refs/heads/master | 2023-08-17T12:27:00.640834 | 2023-08-07T17:03:00 | 2023-08-07T17:03:00 | 158,981,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # write a code to check if two str are equal
def is_equal(s1, s2):
for i in range(len(s1)):
# if len(s2) - 1 >= i:
# return False
if len(s2) - 1 >= i or (s1[i].lower() != s2[i].lower()):
return False
for i in range(len(s2)):
# if len(s1) - 1 >... | [
"uedeh@bethel.jw.org"
] | uedeh@bethel.jw.org |
edd919cfe5efef37c9386e8f94227f5bb2b80185 | 09ba5ae2edc51f3fd812b9205188b1b01e6bea77 | /test/src/CPMel/core/metaclass.py | 61cec13411e956af6f67e786d3014ce281188ff7 | [] | no_license | cpcgskill/Maya_tools | c6a43ad20eab3b97e82c9dfe40a1745b6098e5c4 | 93f9e66e5dc3bb51f33df0615415a56a60613ff1 | refs/heads/main | 2023-02-26T16:20:52.959050 | 2021-01-28T06:12:18 | 2021-01-28T06:12:18 | 325,512,423 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #!/usr/bin/python
# -*-coding:utf-8 -*-
u"""
:创建时间: 2020/5/18 23:57
:作者: 苍之幻灵
:我的主页: https://cpcgskill.com
:QQ: 2921251087
:爱发电: https://afdian.net/@Phantom_of_the_Cang
:aboutcg: https://www.aboutcg.org/teacher/54335
:bilibili: https://space.bilibili.com/351598127
"""
import functools
def newClass(name, bases, attrs... | [
"www.cpcgskill.com"
] | www.cpcgskill.com |
053b8628f236c89b6e4071334424c1a57a3c1d50 | 5cbde24d02eea9e762994af976aff8b4fdc731b3 | /actus/wsgi.py | 657d6f36c1718379520c54b937aa9fb42599d2c5 | [] | no_license | paulo-romano/actus | f94e874ef3351181c79539ba69df9f7bbdb9e90f | d424afa6672f6f714f094b2080d0255bad257268 | refs/heads/master | 2021-01-17T15:06:40.486493 | 2016-12-17T00:47:03 | 2016-12-17T00:59:53 | 70,018,546 | 2 | 1 | null | 2016-11-04T00:05:47 | 2016-10-05T00:41:06 | JavaScript | UTF-8 | Python | false | false | 424 | py | """
WSGI config for actus project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from dj_static import Cling
os.envi... | [
"pauloromanocarvalho@gmail.com"
] | pauloromanocarvalho@gmail.com |
a8e18dcbe6113a775bc2a7239cc76ff8420db740 | 3fb0ce33f00b96ae3808a32da44de3e887434afb | /.提出一覧/AtCoder/ABC156/b/main.py | 54120439e9bf75e86574bad0f396250ddd7c9bf0 | [] | no_license | Yukikazari/kyoupuro | ca3d74d8db024b1988cd0ff00bf069ab739783d7 | 343de455c4344dbcfa4524b492f7f6205c9db26f | refs/heads/master | 2023-02-21T01:53:52.403729 | 2021-01-27T03:55:01 | 2021-01-27T03:55:01 | 282,222,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/env python3
#import
#import math
#import numpy as np
#= int(input())
#= input()
N, K = map(int, input().split())
for i in range(1, 10 ** 6):
if K ** i > N:
print(i)
exit()
| [
"haya_nanakusa793@yahoo.co.jp"
] | haya_nanakusa793@yahoo.co.jp |
263d88bc1127e17bd9788a19259e6a996b95f48f | 8ce2b8314fd2e11f3118f7b57f15d1aeb661eec9 | /backend/bagel_buoy_1801/settings.py | e5641f87d26096e7d8b6da1fdacf8134eb1580ba | [] | no_license | crowdbotics-apps/bagel-buoy-1801 | 2b4f17b3ea8f56fc574f01736900a9d15a216ca8 | d053cf93ff55a0dab5d6af49a6351fe740022ac0 | refs/heads/master | 2022-12-09T00:33:29.351845 | 2019-03-30T22:14:51 | 2019-03-30T22:14:51 | 178,616,820 | 0 | 0 | null | 2022-12-03T04:13:29 | 2019-03-30T22:14:47 | JavaScript | UTF-8 | Python | false | false | 4,758 | py | """
Django settings for bagel_buoy_1801 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d7600096286394a49b83fc56e6f04ee102c8d3b4 | 53e58c213232e02250e64f48b97403ca86cd02f9 | /16/mc/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM3000_R_0-9.py | fa92ea4e8a878d40f96c26dc962f729463d22f78 | [] | no_license | xdlyu/fullRunII_ntuple_102X | 32e79c3bbc704cfaa00c67ab5124d40627fdacaf | d420b83eb9626a8ff1c79af5d34779cb805d57d8 | refs/heads/master | 2020-12-23T15:39:35.938678 | 2020-05-01T14:41:38 | 2020-05-01T14:41:38 | 237,192,426 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | from WMCore.Configuration import Configuration
name = 'WWW/sig'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M3000_R0-9_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Su... | [
"XXX@cern.ch"
] | XXX@cern.ch |
624480f7f2ed0cbdd5c554530d35447d513dcd1b | 02778455d6c88a4e83bbad836f4598d49ebe81e5 | /recipes/shared_logging/server.py | 70d9aafd35f8e98eb1fdfc2509c9dea385db9c5a | [
"MIT"
] | permissive | stjordanis/easyrpc | d703ad81e7c2a5cb83dab2e5a424baeea5d997c6 | 1c0d6f8c33aaf70ccf62d75777f5e4ca8c55fedc | refs/heads/main | 2023-08-13T05:52:18.459507 | 2021-10-13T20:15:44 | 2021-10-13T20:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # central logging server
import logging
from fastapi import FastAPI
from easyrpc.server import EasyRpcServer
logging.basicConfig()
server = FastAPI()
@server.on_event('startup')
async def setup():
logger = logging.getLogger()
rpc_server = EasyRpcServer(server, '/ws/server', server_secret='abcd1234', debug... | [
"joshjamison1@gmail.com"
] | joshjamison1@gmail.com |
ce0994b51ccee45b1b6cb2f4bcb1f11296c7c002 | 538833a15b119ca835b82886ca047dc25e71f134 | /app/bin/file/text_remove_duplicate.py | 76f01c83d8fd0252f6345e396e259a54a5368c1d | [] | no_license | buxizhizhoum/tool_scripts | 901ffb3749aa9521912636039bc897f969759d67 | d13b9217b4cde6b626451e9638d737911a0911c5 | refs/heads/master | 2021-01-01T15:39:01.396282 | 2018-12-11T06:53:29 | 2018-12-11T06:53:29 | 97,667,877 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
def text_remove_duplicate(original_file, processed_file):
file_buffer = []
with open(original_file, "r") as f:
for line in f.readlines():
if line not in file_buffer:
file_buffer.append(line)
with open(processed_file, "... | [
"mapeaks@126.com"
] | mapeaks@126.com |
5cd33b20e5bc4c1c4b6e25e9df92b6fdc8d17e1a | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/com_adobe_granite_system_monitoring_impl_system_stats_m_bean_impl_info.py | 3e05ccd3726996c38d3fdaef1f4e610603a6ae96 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 7,630 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
e7eda5397bfd521186cf038a7a0de9700c42024a | 871d2a367e45164f21ecdbefe52bf442b563b33c | /tests/tests/correctness/EPLAnalytics/Streaming_Calculations/FFT/fft_cor_003/run.py | 9d18dc0589837f3b625b0e287ef5aa58bf669523 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | SoftwareAG/apama-industry-analytics-kit | c0f6c30badf31411a29bc6daa4a7125b76f4e737 | a3f6039915501d41251b6f7ec41b0cb8111baf7b | refs/heads/master | 2022-02-19T20:47:27.180233 | 2022-02-02T12:58:23 | 2022-02-02T12:58:23 | 185,572,282 | 3 | 2 | Apache-2.0 | 2022-02-02T12:58:24 | 2019-05-08T09:14:07 | Python | UTF-8 | Python | false | false | 2,472 | py | # $Copyright (c) 2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel an... | [
"Richard.Peach@softwareag.com"
] | Richard.Peach@softwareag.com |
a25599fcc363658ae14985fb1168f14a33ecb67e | ef7a5e1445706482a0e20d2632f6cd3d0e279031 | /amy/extrequests/migrations/0026_auto_20201107_1428.py | f1264cda61cc04a509b387aff45fb9e84eeac2d9 | [
"MIT"
] | permissive | pbanaszkiewicz/amy | 7bf054463f4ecfa217cc9e52a7927d22d32bcd84 | f97631b2f3dd8e8f502e90bdb04dd72f048d4837 | refs/heads/develop | 2022-11-17T18:56:18.975192 | 2022-11-03T23:19:41 | 2022-11-03T23:19:41 | 28,005,098 | 0 | 3 | MIT | 2018-03-20T18:48:55 | 2014-12-14T19:25:22 | Python | UTF-8 | Python | false | false | 714 | py | # Generated by Django 2.2.13 on 2020-11-07 14:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('extrequests', '0025_auto_20201105_1949'),
]
operations = [
migrations.AddField(
model_name='selforganisedsubmission',
... | [
"piotr@banaszkiewicz.org"
] | piotr@banaszkiewicz.org |
c298137ca5f8ba3d23d361dc3cc858f6eb4f2f2e | 15a0797f087a9c05b7a679f47fefeeb875affab5 | /fermipy/validate/utils.py | af79b178f1eb202b6ff272a7d3fa1304526c98b8 | [
"BSD-3-Clause"
] | permissive | XanAstia/fermipy | 2496a6a07980faff20958f1a20ad1a3171bf7b35 | 8d9995934fd44959d51ad7bdcd2981b3694fa35e | refs/heads/master | 2021-01-05T20:03:15.590334 | 2020-07-22T12:35:18 | 2020-07-22T12:35:18 | 257,225,629 | 0 | 0 | BSD-3-Clause | 2020-06-24T13:45:52 | 2020-04-20T09:00:16 | Python | UTF-8 | Python | false | false | 4,675 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import absolute_import, division, print_function
import os
import copy
import re
import yaml
import sys
import mimetypes
import tempfile
import string
import random
from os.path import splitext, basename
import xml.etree.cElementTree as E... | [
"mdwood137@gmail.com"
] | mdwood137@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.