blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
c2676e96a5fa3fb235dce65d0cf781e52fa97b0c | 5ecaded45e28c1041c1986c13db446806a28b3ee | /files/learn-python-files/writing-a-file.py | 809ddbc02cfa52f72acd5c1c5abf38e464e07cac | [] | no_license | 109658067/Python3_Codecademy | 12206ec74e8dc95cc1200491b4ed75b856bfb25e | 8480912c6dd15649b3c51f4c205afdd253ea462b | refs/heads/master | 2022-09-15T18:21:26.742741 | 2020-06-04T05:48:58 | 2020-06-04T05:48:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | with open('bad_bands.txt', 'w') as bad_bands_doc:
bad_bands_doc.write("Maroon 5")
| [
"9368802+NiteshMistry@users.noreply.github.com"
] | 9368802+NiteshMistry@users.noreply.github.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 |
d06cf95418eb5d2b103212483966c9976382668e | 70f684acbafbcc009a618ffd1dda78ebecca5d28 | /appendixA/countwordsinfeatures/parsefeaturejsons.py | 4ca481a0bf02eac54f578a1fd1935aea1cacb109 | [
"MIT"
] | permissive | ericayhayes/horizon | d026ee90f356445486a148c7c5798d18b7494163 | 15558246778efd2e5ed915635f3c9e113229bf20 | refs/heads/master | 2020-07-09T04:17:50.540176 | 2019-02-28T21:08:23 | 2019-02-28T21:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,956 | py | #!/usr/bin/env python3
# parsefeaturejsons.py
# classes and functions that can unpack the extracted feature files
# created by HTRC, and convert them into a .csv that is easier to
# manipulate
import csv, os, sys, bz2, random, json
from collections import Counter
import numpy as np
import pandas as pd
# import uti... | [
"tunder@illinois.edu"
] | tunder@illinois.edu |
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 |
5fd7b4bec315d38a946f9058525294c069c76165 | 8fc9520d7224e6179f63f19e668b4b3b6a7d76c5 | /apps/basket/migrations/0003_auto__add_field_line_price_excl_tax.py | b89b7e147321a346aca2d07aaea5281be153f402 | [] | no_license | quantm/custom_django_oscar | 352ef2fd95e7da932958d4aa80d77dff5b6c1e70 | 9205807030ab360884283810e94177440c228a23 | refs/heads/master | 2016-08-09T12:23:39.413677 | 2016-02-08T22:16:53 | 2016-02-08T22:16:53 | 51,326,524 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,084 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from oscar.core.compat import AUTH_USER_MODEL, AUTH_USER_MODEL_NAME
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Line.price_excl_tax... | [
"012kinglight@gmail.com"
] | 012kinglight@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 |
97fd5ad23c8102ca21a0e79c714223f673715934 | 46d1e177dbdd712e539b104b95386ae97247fe30 | /mayaTools/cgm/core/mrs/blocks/organic/muzzle.py | 4baf50a449341c5211e2a18d0b494d11dc2fee36 | [
"BSD-3-Clause"
] | permissive | stephanosterburg/cgmTools | 60986937f9c2bbaab31a2706977dc613d2b572f8 | 473737732ec15fe5966e4f8e850630f4aa153ed9 | refs/heads/master | 2022-12-19T04:46:35.228393 | 2020-08-08T02:51:55 | 2020-08-08T02:51:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345,495 | py | """
------------------------------------------
cgm.core.mrs.blocks.organic.lowerFace
Author: Josh Burton
email: jjburton@cgmonks.com
Website : http://www.cgmonks.com
------------------------------------------
================================================================
"""
__MAYALOCAL = 'MUZZLE'
# From Python ==... | [
"jjburton@gmail.com"
] | jjburton@gmail.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 |
11ad2db84b11bef1ebb51299256895b7dd1552f4 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/periodicities/Semi_Month/Cycle_Semi_Month_400_SM_15.py | 1477a3a264d5e12e25a8d1f21b4d5ceb61a8a02c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 83 | py | import tests.periodicities.period_test as per
per.buildModel((15 , 'SM' , 400));
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
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 | |
c7ff84276f965396f8ecbc2d09c2957ac60f3715 | 832cc2dd023bcb338cdb4da4a914b077448f6adb | /src/nrega/models.py | 2e084ecd64e3c961d122d43c265b7c2563b8bb68 | [] | no_license | rajesh241/libtechDjango | 2a233edbd1f715ac2ee22ce6ceb027cc4258eac3 | 498d31fd5f069fd467c9b0a83ad2a1ffd59c50e5 | refs/heads/master | 2022-12-08T06:34:08.059624 | 2019-07-19T05:52:46 | 2019-07-19T05:52:46 | 154,110,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,611 | py | from django.db import models
from django.conf import settings
# Create your models here.
from django.db.models.signals import pre_save,post_save
from django.utils.text import slugify
from django.core.serializers import serialize
import time
import datetime
import os
import json
telanganaStateCode='36'
#File Uploads
... | [
"togoli@gmail.com"
] | togoli@gmail.com |
afa9598a1738a2e20d6ccb9b9211a51c66351017 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_325/ch36_2020_04_06_19_33_03_105361.py | bf9146896d304b6113439ff62f63713215623c6c | [] | 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 | 78 | py | def factorial(n):
for i in range(1,i):
s+= n*n+1
return(s) | [
"you@example.com"
] | you@example.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 |
6da9f3ca07b76acf4b1a00ae2eb132bb1850ea73 | aec0340716e713b552e894475844b12cdafe90b0 | /env/bin/python-config | dd857d83e1ef789e0a8795da1a307d59810c7b8b | [] | no_license | capt-alien/ReBay | 16bd355129057836364db59bf120b82ff539450f | 37b7498f2abb31a252ad71be51f653d45cf6041c | refs/heads/master | 2020-04-29T20:21:14.777249 | 2019-03-26T04:51:46 | 2019-03-26T04:51:46 | 176,381,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | #!/Users/ericbotcher/dev/projects/ReBay/env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.... | [
"eric.botcher@presidio.edu"
] | eric.botcher@presidio.edu | |
f44824dea67298d1fb010a231b518d09518a8096 | 0464ea852eceb2815af8d327679796f04f6286ac | /ll_env/Scripts/django-admin.py | f005680e29f3b14f0853dbd540edf58f027b3147 | [] | no_license | TrellixVulnTeam/polls_DXZJ | 1a5856c823a86e78f0f31ebe111463fbd00cea61 | 5c91811ec232ab7f3c44a61ae67981f579ad530e | refs/heads/master | 2023-03-16T11:39:50.917803 | 2018-03-12T09:26:07 | 2018-03-12T09:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | #!c:\users\youki\desktop\site\blog\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"eric@example.com"
] | eric@example.com |
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 |
5e43b776594e2a57279cf3a4f4284d4f06de5c57 | 2ca5a1fe5608eb8298d7e142ecca98fd0fa4566b | /venv/lib/python3.7/site-packages/supervisor/tests/test_loggers.py | 0742c1766ca4f699ba70d19c633ead415da0c07a | [
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"MIT"
] | permissive | basemanbase/Animal-Health | 75bd2e4dc4eb29b6466125b197a77a70e14d91a4 | d9741aafd54126f05ba43e6f4ad6517755797c76 | refs/heads/master | 2023-05-30T17:53:19.905594 | 2022-01-30T05:52:53 | 2022-01-30T05:52:53 | 228,593,914 | 0 | 1 | MIT | 2023-05-01T20:37:31 | 2019-12-17T10:41:05 | Python | UTF-8 | Python | false | false | 21,442 | py | # -*- coding: utf-8 -*-
import errno
import sys
import unittest
import tempfile
import shutil
import os
import syslog
from supervisor.compat import PY2
from supervisor.compat import as_string
from supervisor.compat import StringIO
from supervisor.compat import unicode
from supervisor.tests.base import mock
from super... | [
"ogunbaseemmanuel@yahoo.com"
] | ogunbaseemmanuel@yahoo.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 |
b3f938c6553b63f1af5179911a9209f8d462d04d | b56eaf7a603cbb850be11dbbed2c33b954dedbcb | /distar/model/alphastar/actor_critic.py | 5c7a80848e2f26b4577ea731c2614e761e19e771 | [
"Apache-2.0"
] | permissive | LFhase/DI-star | 2887d9c5dd8bfaa629e0171504b05ac70fdc356f | 09d507c412235a2f0cf9c0b3485ec9ed15fb6421 | refs/heads/main | 2023-06-20T20:05:01.378611 | 2021-07-09T16:26:18 | 2021-07-09T16:26:18 | 384,499,311 | 1 | 0 | Apache-2.0 | 2021-07-09T16:50:29 | 2021-07-09T16:50:28 | null | UTF-8 | Python | false | false | 18,036 | py | import os.path as osp
from collections import namedtuple, OrderedDict, defaultdict
from functools import reduce
import torch
import torch.nn as nn
from collections.abc import Sequence, Mapping
from .encoder import Encoder
from .policy import Policy
from .value import ValueBaseline
from ctools.model import ValueActorCr... | [
"opendilab@gmail.com"
] | opendilab@gmail.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 |
bfaae3d582bc3e9ec14ee2a57de5826d6e5818a5 | 907b3bbd44c95be1542a36feaadb6a71b724579f | /files/usr/tmp/pip-build-nyxh8e0k/google-cloud-pubsub/unit_tests/test_topic.py | 0a7e4cede8d7590340ebd96d98b82704b158c62c | [
"Apache-2.0"
] | permissive | vo0doO/com.termux | 2d8f536c1a5dbd7a091be0baf181e51f235fb941 | c97dd7b906e5ef3ec157581fd0bcadd3e3fc220e | refs/heads/master | 2020-12-24T09:40:30.612130 | 2016-11-21T07:47:25 | 2016-11-21T07:47:25 | 73,282,539 | 2 | 2 | null | 2020-07-24T21:33:03 | 2016-11-09T12:33:01 | Python | UTF-8 | Python | false | false | 32,273 | py | # Copyright 2015 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, ... | [
"kirsanov.bvt@gmail.com"
] | kirsanov.bvt@gmail.com |
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 |
73c48dc5a6a99067d2dd379d454a40ba74e6126f | af3ec207381de315f4cb6dddba727d16d42d6c57 | /dialogue-engine/src/programy/dialog/tokenizer/tokenizer_jp.py | 637b63ad0dde65e5653e318e881994284e8bbef4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mcf-yuichi/cotoba-agent-oss | 02a5554fe81ce21517f33229101013b6487f5404 | ce60833915f484c4cbdc54b4b8222d64be4b6c0d | refs/heads/master | 2023-01-12T20:07:34.364188 | 2020-11-11T00:55:16 | 2020-11-11T00:55:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,957 | py | """
Copyright (c) 2020 COTOBA DESIGN, Inc.
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, modify, merge, publish, distri... | [
"cliff@cotobadesign.com"
] | cliff@cotobadesign.com |
d858d233de5baa5b713615d6ef487dd053ac6099 | 6630694f401f6f475dd81bb01ff9368db844ccff | /mmpretrain/models/backbones/vit_sam.py | 0eb46a72adf26cb62b93d5538116bd74f36070fa | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 27,046 | py | # Copyright (c) OpenMMLab. All rights reserved.
from typing import Optional, Sequence, Tuple
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn.bricks.transformer import FFN, PatchEmbed
from mmengine.model import BaseModule, ModuleList
from mmengine.model.weight_init im... | [
"noreply@github.com"
] | open-mmlab.noreply@github.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 |
a1179bc36093f156e41a95c37c819dddcf4e4f9e | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/matplotlib/tests/test_collections.py | 773093100349f07fd31ca250883807222e9f8bfe | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 24,140 | py | """
Tests specific to the collections module.
"""
import io
import platform
import numpy as np
from numpy.testing import assert_array_equal, assert_array_almost_equal
import pytest
import matplotlib.pyplot as plt
import matplotlib.collections as mcollections
import matplotlib.transforms as mtransforms
from matplotlib... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
74f4c2bea2dd68798f8ca1c4e735b0a9dfdc3974 | f8c52776a3e5d3161ee7da4d3efd9c5a12e19102 | /physmath/physnum.py | 6643fc50bb341b05c18d72ed44f9697ffdc7c434 | [
"Apache-2.0"
] | permissive | matthagy/physmath | e26f64b78a919c96a0ceb71e6ab8bd5abd361608 | c3ff3c803cc2202373c6fe22754c8eba664870f2 | refs/heads/master | 2021-01-10T18:30:34.147614 | 2013-04-04T08:02:59 | 2013-04-04T08:02:59 | 2,356,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,221 | py | '''Physical numbers combine a quantity, a unit, and a possible name
'''
from __future__ import division
from __future__ import absolute_import
import re
from decimal import Decimal
from functools import partial
from hlab.bases import AutoRepr
from hlab.memorize import memorize
from jamenson.runtime import atypes
fr... | [
"hagy@gatech.edu"
] | hagy@gatech.edu |
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 |
d0ba4f009a9310ae683d9c5fd9342c0d71e4289b | 4ae0b725cb05f590c502e32b8bf1c7853da11b03 | /servermsg/models.py | 9fa6f6f984265113304a51c15cd6bb8deb49665a | [] | no_license | alingb/ytym | a264ee282b710be2d7fc0529e54c5ef5a3383fac | 8c495dc118ce9d22f8890dc6397bf995b9c825b0 | refs/heads/master | 2021-07-23T11:29:18.674748 | 2018-12-04T02:08:24 | 2018-12-04T02:08:24 | 143,982,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #-*-encoding:utf-8-*-
from django.db import models
# Create your models here.
class ServerMessage(models.Model):
pass
| [
"375272990@qq.com"
] | 375272990@qq.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 |
08c7741d1ab9a6b192780c8e21b5220b9f85ae0b | e0519908caa23bef1873ff69ebd17c5d81f741e1 | /calabiyau/ui/app.py | 5caf54da281f343de9ce80a4140b9b0d0894f596 | [
"BSD-3-Clause"
] | permissive | TachyonicProject/calabiyau | 2fb7af37bd656a686a5f741cadd082b2500718ff | 415a8ada4a93ee84c4776e89c9442af328dcfdd6 | refs/heads/latest | 2020-05-02T04:14:43.953841 | 2019-12-06T04:12:39 | 2019-12-06T04:12:39 | 177,745,608 | 0 | 3 | NOASSERTION | 2019-12-06T04:12:40 | 2019-03-26T08:31:25 | Python | UTF-8 | Python | false | false | 1,634 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2018-2020 Christiaan Frans Rademan <chris@fwiw.co.za>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the ... | [
"christiaan.rademan@gmail.com"
] | christiaan.rademan@gmail.com |
84b205ecd56b768f67dcd221e5a23a7a8cbb4837 | e6e65a6704c20e6e0288cfc54915ee7ea9e1c0a7 | /archive/1recon/gruTrans/model.py | efd9a602f4849f1f9ec47563f78d45059f342e62 | [] | no_license | schatzkara/REU2019 | fbb1f17d860c5d51a7ccae3ba106960d4c733949 | 6de28b5a8992f6122f2e9813de8b92d9e97ccbf3 | refs/heads/master | 2020-06-06T03:50:40.753334 | 2019-11-07T14:11:50 | 2019-11-07T14:11:50 | 192,629,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,635 | py | # phase 3
import torch
import torch.nn as nn
from networks.modifiedVGG import vgg16
from networks.modifiedI3D import InceptionI3d
from networks.expander import Expander
from networks.transformer import Transformer
from networks.kpp import KPPredictor
from networks.convGRU import ConvGRU
from networks.generator import G... | [
"36019128+schatzkara@users.noreply.github.com"
] | 36019128+schatzkara@users.noreply.github.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 |
d4af23600119c1186c95e875df4696286a2d71f7 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/testing/testing_submissions/testing_assignment_004/fb_post/tests.py | 6f28d64abcd696a3c986e70dd17281c6eb809d20 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,119 | py | {"filter":false,"title":"tests.py","tooltip":"/testing/testing_submissions/testing_assignment_004/fb_post/tests.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":940,"column":31},"end":{"row":940,"column":32},"action":"insert","lines":["e"],"id":5546},{"start":{"row":940,"column":32},"end":{"row":9... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.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 |
a7a636860665fb9c84f893ef0e212d3debacf0bc | 4d0e86740237b7261770260905681ae3e679b2e8 | /starry/kepler.py | c4042b4ad12a26f7ba8010f3f90059ac4f74e79d | [
"MIT"
] | permissive | brackham/starry | 8ed5a5fa5f113bcbc45bbc463ae0e17c3bfedd09 | 9c462a2c9591b2d8f2be4ec710d791b88b764ddb | refs/heads/master | 2022-11-21T06:55:00.792202 | 2020-06-26T17:19:07 | 2020-06-26T17:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,474 | py | # -*- coding: utf-8 -*-
from . import config
from ._constants import *
from .maps import MapBase, RVBase, ReflectedBase
from ._core import OpsSystem, math
import numpy as np
from astropy import units
from inspect import getmro
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
from IPython.d... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
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 |
f5a69f68051f5b68b6d2f65567725b63d246bfaa | 8d6f1dc44c0d9cc48842ba694e7e7767c02c7524 | /Learning_python_AnandPython/Start/problem3.py | 399885b1b75a3e9022f1fc43ed46fff930396fd7 | [] | no_license | ccsreenidhin/Practice_Anand_Python_Problems | d91f40359a0d6e08d02d80f4f77137a5e8beb4ad | 8140f615e935b293c1640aeb54d71b4a44373bdb | refs/heads/master | 2022-10-17T20:42:31.130630 | 2017-07-02T16:52:00 | 2020-06-11T12:28:40 | 271,540,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | #Problem 3: Create a python script with the following text and see the output. 1+2
1+2
| [
"ccsreenidhin@gmail.com"
] | ccsreenidhin@gmail.com |
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 |
36a075bdc76b06cadad18921299df41c9f0f1358 | e0980f704a573894350e285f66f4cf390837238e | /.history/menus/models_20201030151703.py | 98dd14774d314d94bec33cfc3bedc340f84a5aba | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | from django.db import models
from django_extensions.db.fields import AutoSlugField
from modelcluster.models import ClusterableModel
from modelcluster.fields import ParentalKey
from wagtail.core.models import Orderable
from wagtail.admin.edit_handlers import FieldPanel, PageChooserPanel, InlinePanel
class MenuItem(O... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.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 |
5f1748a400b64ef1172d106936b097ddee8ac1b9 | b94aa4896a0cef82f70b9d1d1bfde805daa35103 | /app/tag/apps.py | 982271075d9ed2a57e93f378c330b98673792431 | [] | no_license | engrogerio/icontrol | 818ab659ae30f9270c47743ccb6402ef946ff55a | 53944e4c0381cc5e9a5a31ca36e437ee0d17ee67 | refs/heads/master | 2021-11-02T04:07:40.508205 | 2021-04-26T14:44:19 | 2021-04-26T14:44:19 | 90,092,719 | 1 | 0 | null | 2021-09-22T17:37:32 | 2017-05-03T00:56:17 | HTML | UTF-8 | Python | false | false | 89 | py | # from django.apps import AppConfig
#
#
# class TagConfig(AppConfig):
# name = 'tag'
| [
"eng.rogerio@gmail.com"
] | eng.rogerio@gmail.com |
f1b5952e8a7a9ce23248158e8e80096bd678262e | 60f2e437c1918b7c05193ed1bc344f093a86549c | /ex.2.py | 2029cb73ff052f4656a3a7a55dcf485889851903 | [] | no_license | Furyheadgod/Coding-1 | 1e19d2f3cc42f710fcbaf6c2aeafef4da803e80c | 95b455fec7349e45ab53c5e5b10400c317c90fbd | refs/heads/master | 2022-11-27T19:14:19.044317 | 2020-08-03T06:54:03 | 2020-08-03T06:54:03 | 284,621,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | print('Hello,world')
| [
"unknown@example.com"
] | unknown@example.com |
55db3a4364388812f9330dd5cd0b3b3fcbe28cf3 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_25569.py | dd5aa8a33084e83e1ab009429efddba37d8befcf | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,834 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
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 |
4bd4c4e0ff1fbe41880fd8d8a63c1d1e1915ffd3 | 0afd2338fb9ea3f706b305286d05f7496c229797 | /performance_autotest/resultdata.py | 39761b10991397abcbd6b4474cb8b81c919c8c8f | [] | no_license | xuwei13253838782/script | 32ec8ddb9dacde3fcb103c50ba409596204644fc | 051d0f327636d814cdff244decb2078358dbea18 | refs/heads/master | 2022-04-27T23:03:19.797128 | 2020-04-26T11:00:48 | 2020-04-26T11:00:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,908 | py | # -*- coding:utf-8 -*-
# @Time : 2019/8/30 13:56
# @Author : zengln
# @File : resultdata.py
import json
import re
import os.path
from performance_autotest.log import logger
from performance_autotest.customexception import CustomError
class FileAnalyse(object):
"""
文件解析基础接口
"""
def __init__(se... | [
"zengln@zln.com"
] | zengln@zln.com |
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 |
9cc470b1f05b841aacd134bb19085958e4ce42f5 | ea1373d9a58ad198c15d35a6daddb4e06d21aa39 | /netScripts/3DCNN_Voxel/pyScripts/train_3DCNN_Atrous.py | 49f410789f33494add4cf245cea132bbeacb5b00 | [] | no_license | screnary/VoxSegNet | bb2778dfc460dfafdbd923f79755f7f0776dc36f | 264f2efc0a589018a1fc68c111626beacbe095a5 | refs/heads/master | 2020-09-04T03:41:47.067129 | 2019-11-07T06:34:29 | 2019-11-07T06:34:29 | 219,649,857 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,507 | py | """ 3DCNN, Unet and others train """
""" WZJ:20171013-Feature Extraction Network-(Pretrain 3DCNN)"""
""" WZJ:20180122-Feature Extraction Network-(Pretrain 3DCNN_Unet_extract)"""
import argparse
import math
import h5py
import numpy as np
import tensorflow as tf
import socket
import importlib
import json
impor... | [
"screnary@qq.com"
] | screnary@qq.com |
e02ff52237bff0755f85da47d9f1621c003504e9 | 6e9077236ad68b60e1076c3f1ae4a4664235f5b1 | /src/collocate.py | ad7070f75cf2d8e34478d4727dd1ac6f48ed3228 | [] | no_license | julieweeds/Compounds | 084fc203c95a7ef5943c2093e8bced73b79a0c02 | 16b9bdc4a8aafee1e5b041e59b8bcf19954a48b8 | refs/heads/master | 2020-06-04T09:42:05.368744 | 2014-06-26T16:22:18 | 2014-06-26T16:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,082 | py | __author__ = 'juliewe'
import sys,os,random
from operator import itemgetter
from conf import configure
class TaggingException(Exception):
pass
def untag(astring,achar='/'):
parts=astring.split(achar)
if len(parts)==2:
return(parts[0],parts[1])
elif len(parts)>1:
tag=parts.pop()
... | [
"julie.weeds@gmail.com"
] | julie.weeds@gmail.com |
88f48c50255fd52358931c5475225ecf37aff576 | 8994e080d0ec6ef7a680ccc7de8acec475e8f06a | /project_euler/problems/problems1_10.py | 93ecd6bdaaafb14d6d42dae4e2e7cd6f388b9e48 | [] | no_license | lffsantos/codigos_demos | 8bc209ba4378082dfa7e831e2f7d39d4f7cb0239 | bd32a12554d26bccf7f135d939698b332461f50f | refs/heads/master | 2021-01-10T08:43:12.457516 | 2015-11-16T17:15:59 | 2015-11-16T17:15:59 | 45,993,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | """
`` sum_multiples_3_5`` soma valores multiplos de 3 e 5 de uma lista::
>>> sum_values = P1(1000)
>>> result = sum_values.sum_multiples_3_5()
>>> print result
233168
"""
from libutils import check_primos_number
class P1:
def __init__(self, number):
self.number = number
def sum_multiples_3_5(self):
r... | [
"lffsantos@gmail.com"
] | lffsantos@gmail.com |
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 |
69b428753f435a7479a61e841418797a33179325 | 70ad3badf3fa6e2edf1889d8640f25a7ec0d9db1 | /catkin_ws/devel/lib/python2.7/dist-packages/imu_sequenced/msg/_ImuSequenced.py | 99d968d430ecbcb1e2469ea2c47ee3bce764a400 | [] | no_license | MathieuHwei/OldGaitMaven | 758a937dfda2cf4f1aee266dbbf682ef34989199 | 873f7d9089c5d1c0772bd3447e2b0a31dac68b70 | refs/heads/main | 2023-06-17T18:40:06.230823 | 2021-07-19T23:08:20 | 2021-07-19T23:08:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,765 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from imu_sequenced/ImuSequenced.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geometry_msgs.msg
import std_msgs.msg
import sensor_msgs.msg
class ImuSequenced(gen... | [
"giahuy050201@gmail.com"
] | giahuy050201@gmail.com |
455d28a828552783f50ad986c42b3151379aa912 | 1e19cab9c19562477cf561a88949faeee3731015 | /spider/spider/spiders/a360doc.py | a19ef4b2474d1f0ec38f40bef7ecb33f13f2e203 | [] | no_license | sugyli/a_dou | 62f5c3090f4001b68613a0b7c30526a58f512aa7 | 4c3121495416361d7f4bfe97e3ed15c61c28f1e3 | refs/heads/master | 2021-06-24T12:30:44.018193 | 2019-12-02T05:27:41 | 2019-12-02T05:27:41 | 205,197,259 | 0 | 0 | null | 2021-02-08T20:36:17 | 2019-08-29T15:45:23 | JavaScript | UTF-8 | Python | false | false | 11,909 | py | # -*- coding: utf-8 -*-
import scrapy,traceback,json,emoji,html,copy
import logging
logger = logging.getLogger(__name__)
from urllib import parse
import helpers,re
from bigdbs.models import BigDb
from ..items import BigDbSpiderItem
from .. import help
from scrapy.utils.project import get_project_settings
settings = g... | [
"“3101967255@qq.com”"
] | “3101967255@qq.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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.