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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adcdb736a04343aee2b82354b6768bff029aee72 | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /INBa/2014/ANDREEV_F_I/task_2_2.py | b49c50f813e899c70ba34d543a4bab7547de04a6 | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 832 | py | # Задача 2, Вариант 2
# Напишите программу, которая будет выводить на экран наиболее понравившееся вам высказывание, автором которого является Эсхин. Не забудьте о том, что автор должен быть упомянут на отдельной строке.
# Андреев Ф.И.
# 23.05.2016
print (''' Речи благородного человека, даже если они составлены кор... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
28e27c9f4914fd674afde924cf91fb55dd0c4dd5 | df5bb77fd83e143d30a004fb96980027a625b9aa | /menu/models.py | 4dc861f26ac5d8247134f8eb9fc5ab5c3696e4de | [] | no_license | arjunjiji95/Thetastyspoon | 3f9c61635e4ab53d58c0d986cc0579335994c7c5 | 9ae50b88fea58f47cb651466f367537d0053dcc5 | refs/heads/master | 2020-04-06T22:47:20.056652 | 2018-11-22T10:15:39 | 2018-11-22T10:15:39 | 157,847,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | from django.db import models
from foodtype.models import Foodtype
class Menu(models.Model):
menuname = models.CharField(max_length=100, default='')
menuprice = models.CharField(max_length=20, default='')
menudescription = models.CharField(max_length=500, default='')
menupic = models.ImageField(default... | [
"45094127+arjunjiji95@users.noreply.github.com"
] | 45094127+arjunjiji95@users.noreply.github.com |
9782a7484709c541762cb0bc9bee3e3a70db06b0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_toys.py | b07b6cab57527717934e03682743aa4b703ddd0d | [
"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 | 227 | py |
from xai.brain.wordbase.adjectives._toy import _TOY
#calss header
class _TOYS(_TOY, ):
def __init__(self,):
_TOY.__init__(self)
self.name = "TOYS"
self.specie = 'adjectives'
self.basic = "toy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
63e6b74f6908eeb68da328d167df63e1402ffbd4 | 243581567f3758648e98a9e77a561f5962a20b61 | /mysite/settings.py | 4e8e718b5e3544830dee550628ce1877b1b8a112 | [] | no_license | m-keita0413/my-first-blog | d720e26d718034457abd33c8b60d67b6d8cf7425 | 615d86a33c51bcc28d2cc1a45ff0c7ed9868147c | refs/heads/master | 2021-01-08T21:49:35.741717 | 2020-02-22T14:13:49 | 2020-02-22T14:13:49 | 242,152,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,202 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.10.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"you@example.com"
] | you@example.com |
eb4fee5d3b78e46cf6f2ee5a1477c697bc425651 | 0a7baf41b0b94749ee923bb01b87ed759cda1453 | /compressible_react/problems/rt.py | b031d7654a52ff1fb56450dd87e2171fa0609790 | [
"BSD-3-Clause"
] | permissive | DeepHydro/pyro2 | a12f9b5a6d9b756df588155ec882a15d6b46e07a | 40ff5fd7fce04fbef8721b48448ad80a9eeb33b9 | refs/heads/master | 2021-04-28T18:03:03.157973 | 2018-02-15T14:40:27 | 2018-02-15T14:40:27 | 121,864,060 | 2 | 0 | null | 2018-02-17T14:59:31 | 2018-02-17T14:59:31 | null | UTF-8 | Python | false | false | 2,138 | py | from __future__ import print_function
import numpy as np
import sys
import mesh.patch as patch
from util import msg
def init_data(my_data, rp):
""" initialize the rt problem """
msg.bold("initializing the rt problem...")
# make sure that we are passed a valid patch object
if not isinstance(my_data,... | [
"michael.zingale@stonybrook.edu"
] | michael.zingale@stonybrook.edu |
ee0ffe8f55109139a8c94cb2968de64d76d5c19e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/394/usersdata/316/74856/submittedfiles/ex11.py | 13ac204303020b6669d3d1434dcd1ffb8f8f1db5 | [] | 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 | 387 | py | # -*- coding: utf-8 -*-
dia=int(input("digite um dia:"))
mes=int(input("digite um mês:"))
ano=int(input("digite um ano:"))
dia2=int(input("digite um dia:"))
mes2=int(input("digite um mês:"))
ano2=int(input("digite um ano:"))
if ano==ano2 and mes==mes2 and dia==dia2:
print('IGUAIS')
if ano>=ano2 and mes>=mes2 and d... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4f2f5c875fb222c6eb020f06711715e072b8020a | a939e018333a9ecd26ddc618f99835b7eb381686 | /deploy/headline_album/le_crawler/core/scheduler.py | ae823541f9640487c9801bb7577a1b1b061fb618 | [] | no_license | cash2one/crawl_youtube | bff5ba254001c2f31f770e55a4aca39bc54e45ee | 0dc40186a1d89da2b00f29d4f4edfdc5470eb4fc | refs/heads/master | 2021-01-16T22:30:17.800282 | 2016-02-18T11:50:09 | 2016-02-18T11:50:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,998 | py | #!/usr/bin/python
#
# Copyright 2014 LeTV Inc. All Rights Reserved.
"""One-line documentation for scheduler module.
A detailed description of scheduler.
"""
__author__ = 'xiezhi@letv.com (Xie Zhi)'
import connection
from scrapy.utils.misc import load_object
from le_crawler.core.dupefilter import RFPDupeFilter
fro... | [
"zjc0516@126.com"
] | zjc0516@126.com |
6c4c711846284757bbe9068ca0c273e7ee28568a | d27a97334691bd4dcce72f772b382aacda5ab26f | /vgmdb/parsers/product.py | 118fd597d2dfdbb1f9f6905dd89d1b3755f01e17 | [] | no_license | qood/vgmdb | e238c19d437eeb609466504d2a5d92416f936987 | 978f2245be746ea37faed2707e56c6002b8a0426 | refs/heads/master | 2021-01-24T01:11:25.427263 | 2015-08-05T05:41:50 | 2015-08-05T05:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,534 | py | import bs4
from . import utils
fetch_url = lambda id: utils.url_info_page('product', id)
fetch_page = lambda id: utils.fetch_info_page('product', id)
def parse_page(html_source):
product_info = {}
soup = bs4.BeautifulSoup(html_source)
soup_profile = soup.find(id='innermain')
soup_right_column = soup.find(id='rig... | [
"hufman@gmail.com"
] | hufman@gmail.com |
3c8b24561b7442583b38e1096816391ef035056c | 4b773103a5000a0a980739dd65426878c90dc098 | /curriculum/migrations/0003_auto_20161209_0934.py | 6069ebc87a9ddaa2a2d7fbcbf920cdbe06f6713c | [] | no_license | gpchelkin/grading_system | 6ef693a89700fb86ce9567e33f697fb529c34297 | e34f85fd1d9ac6bad892222d68516bbab5d7cf23 | refs/heads/master | 2020-06-15T07:10:27.193190 | 2016-12-20T14:12:32 | 2016-12-20T14:12:32 | 75,315,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2016-12-09 06:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('curriculum', '0002_auto_20161205_2321'),
]
operations = [
migrations.AlterF... | [
"a.s.maratkanov@gmail.com"
] | a.s.maratkanov@gmail.com |
0fffdd01b44ed511558d459dc34e224ce723bbda | b9a1be2835bf81a59c46220569b32cfeb9535822 | /MusicSegment/Utility.py | 6c7c3bc00a5e7f80d8afa6a8d609bb35282720fe | [] | no_license | gifts1912/Project | 838b9c52eb7564679969ecc44933296fa46401ab | bf486420e6ec9f54420747481f7b0fbe60bc7825 | refs/heads/master | 2021-01-12T16:16:19.333663 | 2017-03-31T12:51:52 | 2017-03-31T12:51:52 | 71,970,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,231 | py | import pandas as pd
import numpy as np
import os
import sys
def StableSortDocBasedOnScore(docFn, docFnStableSorted):
docStableSortedList = []
fr = open(docFn, 'r', encoding='utf-8')
docList = fr.read().splitlines()
fr.close()
columns = docList[0].split('\t')
docStableSortedList.append(columns)... | [
"hengyliu@hotmail.com"
] | hengyliu@hotmail.com |
04cfdb0974d4ad5c5ac07965106028f4681147a0 | f074fe742b1b242c75872e64a1196ba539066609 | /verres/architecture/layers/global_pooling.py | 2c3407779186168677c7df2ec677b8df34856b91 | [
"MIT"
] | permissive | csxeba/Verres | 63f31d82b4e12b4da8b5fa5cc930eb874f1aa60d | 04230d22b7791f84d86b9eb2272a6314a27580ed | refs/heads/master | 2023-04-07T02:07:26.863612 | 2021-12-09T20:15:12 | 2021-12-09T20:15:12 | 176,881,974 | 0 | 0 | MIT | 2023-03-18T19:56:38 | 2019-03-21T06:17:58 | Python | UTF-8 | Python | false | false | 424 | py | import tensorflow as tf
class GlobalSTDPooling2D(tf.keras.layers.Layer):
def __init__(self, **kwargs):
super().__init__()
self.data_format = tf.keras.backend.image_data_format()
def call(self, inputs, **kwargs):
if self.data_format == 'channels_last':
return tf.keras.back... | [
"csxeba@gmail.com"
] | csxeba@gmail.com |
b247eecfbb747904ff829d06d0ab3da5b6d2f61a | be9e6e9b85120025e9fd95ea2711235199d41bf9 | /libra_client/lbrtypes/on_chain_config/registered_currencies.py | b68b9d0debb8b8499a99d41d0c110b139b38ecd4 | [] | no_license | palliums-developers/pypay | 0ca18e8006c5ecc654e810e6e8436b6c8ac1f833 | 7a4482bf9fd90e2ec6377d7bf34db5a3240d5a7d | refs/heads/master | 2023-05-03T02:43:45.017358 | 2021-03-25T08:56:41 | 2021-03-25T08:56:41 | 275,402,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from libra_client.canoser import Struct
from libra_client.lbrtypes.on_chain_config import OnChainConfig
class RegisteredCurrencies(Struct, OnChainConfig):
IDENTIFIER = "RegisteredCurrencies"
_fields = [
("currency_codes", [str])
]
def __len__(self):
return len(self.currency_codes)
... | [
"zhang_zhao_fu@sina.com"
] | zhang_zhao_fu@sina.com |
32e9e8cb09e2e451663691e55a5ae0dcf34b3891 | a45c6e565fe5425f2929cf9db502075569412c01 | /concurrency/async_io.py | 4103931582510cd4215cb4e4f606fc41cb958bf3 | [] | no_license | Harshad-Chavan/Python_OOPS | bbfc567e9b24352dd0929b5af9dcf7368baaf4eb | ec99531da7f2dabda88468c5bc1911f467c40fb6 | refs/heads/master | 2022-05-07T16:15:46.960266 | 2022-03-08T17:48:54 | 2022-03-08T17:48:54 | 254,291,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | import asyncio
import time
import aiohttp
async def download_site(session, url):
async with session.get(url) as response:
print("Read {0} from {1}".format(response.content_length, url))
async def download_all_sites(sites):
async with aiohttp.ClientSession() as session:
tasks = []
for... | [
"you@example.com"
] | you@example.com |
8bc96a1dcbf519e1f935cf1d876b41ea1702061f | d7e811747519835aaaa5b10e0632c4ffd792684e | /example_repo/example/trainer.py | bc172669b6a6b9e56b3c714afeab456738b1e5dc | [
"MIT"
] | permissive | pkulwj1994/pointers | 0f3804b0f99455ee36697cadf50c43ce6270a6a0 | bc4439a9d2316071a250c68893912bbf16c5046e | refs/heads/main | 2023-02-03T04:53:58.276695 | 2020-12-16T10:21:30 | 2020-12-16T10:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,205 | py | import torch
from torch.utils.data import DataLoader, TensorDataset
from tqdm import trange
import logging
from torch import nn
import copy
from example import utils
logger = logging.getLogger(__name__)
class Trainer(object):
""" Trainer class. Any subclass has to implement the forward_pass() function. """
... | [
"mail@johannbrehmer.de"
] | mail@johannbrehmer.de |
10f156d0e25e6850a73e2c1dda356d08fe6116e3 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /raw_scripts/132.230.102.123-10.21.9.71/1569575061.py | 3e63d050f922c1f3f7843aa713daf2f2614ad654 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,752 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def nwords(s:str) -> int:
result = 0
k = 0
for i in range(0, len(s)):
if s[i] == string.whitespace:
if k < i - 1:
result = result + 1
k = i
def test_nwords():
asse... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
0f668ae263cf57b7a123cfc78dfec85c3b8b2181 | d62e47107acbfa6d315aec41b9c514de38cb24bf | /blog/modules/article/__init__.py | 0fdc77c50a469e448c8be8b4c99afd706616bccd | [] | no_license | chengaddone/fblog | 1eb2e06a769358d53cec632c12ca13570ef87225 | 95ebadd615fb900de04fdde5f3ae09e42be7bf5b | refs/heads/master | 2020-11-30T14:03:43.183456 | 2020-01-09T14:02:09 | 2020-01-09T14:02:09 | 230,412,628 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | # 文章模块
from flask import Blueprint
article_bp = Blueprint("article", __name__, url_prefix="/article")
from . import views | [
"email"
] | email |
1dbcdfe1f36f6a17492554c5a1f9c653317d9be5 | d96787f92bd86c8d8bcf01a4e7ec8f7feec24194 | /kattis/bestrelayteam/solution.py | c8bcff259072cc37090860e29baf5bc4f68a160f | [] | no_license | iandioch/solutions | 133cbc3af58fadcde0b2e981fb0e7d05801070a7 | 8b3e458b3c01179ddf776bfbb897f263f22f3693 | refs/heads/master | 2023-04-09T03:39:16.952817 | 2023-03-15T20:00:53 | 2023-03-15T20:00:53 | 47,693,495 | 48 | 40 | null | 2019-10-22T14:52:59 | 2015-12-09T13:36:55 | Python | UTF-8 | Python | false | false | 575 | py | d = {}
e = {}
n = int(input())
for _ in range(n):
who, first, other = input().split()
first, other = float(first), float(other)
d[who] = other
e[who] = first
s = sorted(d, key = lambda x:d[x])
best_time = e[s[-1]]*4
best_team = []
for c in s:
team = [c]
time = e[c]
for o in s:
if ... | [
"iandioch11@gmail.com"
] | iandioch11@gmail.com |
3fe4ad134930572b818711c5afb5f7e29675d925 | 6bb433db849f55913d8be6b5aa6527951788090f | /chapter_2_strings_and_text/binary_octal_hexadecimal/packing_and_unpacking.py | 1a02808f953993e4fbf3df377b545d32b197c32a | [] | no_license | pranavchandran/redtheme_v13b | 7fe7404cd6f8e5b832824c4b2db7ff23db69b7d8 | e4927e296c24b4861a5e8b8ebe26e13c66c2ece4 | refs/heads/main | 2023-04-03T10:12:46.750224 | 2021-04-09T09:16:01 | 2021-04-09T09:16:01 | 344,432,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | # packing and unpacking large integers from bytes
data = b'x00\x124V\x00x\x90\xab\x00\xcd\xef\x01\x00#\x004'
print(len(data))
print(int.from_bytes(data, 'little'))
print(int.from_bytes(data, 'big'))
# to bytes
x = 94522842520747284487117727783387188
print(x.to_bytes(16, 'big'))
print(x.to_bytes(16, 'little'))
# i... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
30d670c7bf50e0d7679ecd05a1f01ba4b9dce03f | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/smith/_domain.py | 594942cc902a0e1421830e4342051e8df40c5ab1 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 1,045 | py | import _plotly_utils.basevalidators
class DomainValidator(_plotly_utils.basevalidators.CompoundValidator):
def __init__(self, plotly_name="domain", parent_name="layout.smith", **kwargs):
super(DomainValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
94537260230442caf9aa296130471e210936f5ba | 7f10673010c55fcf59b94b87cf9e66c40bb60a2c | /Page/UIElements.py | 17acc72c17437ceb7ec39cd04479cb7355695d3e | [] | no_license | suyunhong1996/sh-day11-test | b8b4b359d4648680dd203370d6dbab93945ac9e0 | c8f1e350e4569e203e6b460d99020a99d74d96fe | refs/heads/master | 2020-05-29T20:42:21.312786 | 2019-05-31T01:58:33 | 2019-05-31T01:58:33 | 189,360,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from selenium.webdriver.common.by import By
class UIElements:
"""管理所有页面元素"""
"""首页"""
# 首页我的按钮
home_my_btn_id = (By.ID, "com.yunmall.lc:id/tab_me")
# 关闭更新按钮
home_close_btn_id = (By.ID,"com.yunmall.lc:id/img_close")
"""注册页面"""
# 已有账号去登录
sign_exits_account_btn_id = (By.ID, "com.yun... | [
"you@example.com"
] | you@example.com |
f64472c1798bd6cf113e9ffbb8e1d4d1b6212f04 | d815c4755e6f98098452528d8ab69a8f82096b78 | /day5/time_test/time模块.py | 5ccf2329916b5d774f28f2ab186dbe6723a6629b | [] | no_license | immortalmin/csk | 081f1baddde43f74151f08a7d701d4c611845f7f | aca509a03bb88ae2911c1611350decdf68a4419a | refs/heads/master | 2020-04-07T22:51:59.907665 | 2018-12-04T08:53:22 | 2018-12-04T08:53:22 | 158,788,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #Author:immortal luo
# -*-coding:utf-8 -*-
import time
# x = time.localtime()
# print(time.localtime())#将一个时间戳转换为当前时区的struct_time
# print(time.gmtime())#和localtime()方法类似,gmtime()方法是将一个时间戳转换为UTC时区(0时区)的struct_time
# print(time.time())#返回当前时间的时间戳
# print(time.mktime(x))#将一个struct_time转化为时间戳
# time.sleep(1)#线程推迟指定的时间运行。单... | [
"1608725226@qq.com"
] | 1608725226@qq.com |
c33521fea7eb79e9cd5d2aa0923a93ee6c290241 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2546/60632/242545.py | 4d1cb335925579d1668c526b68d31e83839a8d87 | [] | 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 | 252 | py | def padovan(x):
if x == 0 or x == 1 or x == 2:
return 1
else:
return padovan(x-2) + padovan(x-3)
t = int(input())
result = []
for i in range(t):
n = int(input())
result.append(padovan(n))
for i in result:
print(i)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
d4a11536c8b50f9b4ebcc70be927b4614bd5d927 | 544d3499c97f1d5c38572c3098e76d82ec167e70 | /eafya/celery.py | ed630ccc83330356074d5dac4f67db6ae6ed7bfc | [] | no_license | manulangat1/eafya | dd2652055ad90423ccec27e98c36cbd6779f4b3a | 6ac59a7a7a82e930cef36ec350b5e7134f1c8e3d | refs/heads/master | 2022-12-23T12:09:41.222430 | 2019-03-12T20:47:59 | 2019-03-12T20:47:59 | 175,624,182 | 1 | 0 | null | 2022-12-08T04:52:14 | 2019-03-14T13:08:14 | Python | UTF-8 | Python | false | false | 214 | py | import os
from celery import Celery
os.environ.setdefault('DJANGO_SETTINGS_MODULE','eafya.settings')
app = Celery('eafya')
app.config_from_object('django.conf:settings',namespace='CELERY')
app.autodiscover_tasks()
| [
"emmanuelthedeveloper@gmail.com"
] | emmanuelthedeveloper@gmail.com |
256bfd89174bdac670dcb324b2e6e2c69d376267 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_11_01/aio/operations/_disk_encryption_sets_operations.py | 776516fe17aa152c3f33e4880645bf3f49046367 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 31,512 | 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"
] | scbedd.noreply@github.com |
fbb71f2c4a4b7d0b5f0caa8721f1a8b2ccf3e0f7 | 242db3b1be70960cdde38fa8a1565745d6372405 | /test_app_24193/urls.py | faa31a3e7464cc954e979b7541f63208cbc969ee | [] | no_license | crowdbotics-apps/test-app-24193 | df70e32943516f31e42053e1d0ceed30dfb7b85d | 7ee48dc68a139443915d9450acc04249bc0bb62d | refs/heads/master | 2023-03-04T18:43:52.946434 | 2021-02-01T20:41:54 | 2021-02-01T20:41:54 | 335,072,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | """test_app_24193 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
497cb67b1f2cbe0f8a479f5a97e69e96fc706d66 | 86726b80bfb48b241d277b3c3673c54b602d2b27 | /util/byteconvert.py | 8a3539f0d5474d670e536c5ad5013f72f6d3b821 | [] | no_license | TYP30/apptools | 2cf1524dd3fb29fb7d2ba2b02dc8ea1b70325982 | 13fb2543a7c218ab050822eb0097aea650059a68 | refs/heads/master | 2021-01-21T00:00:37.307655 | 2011-11-02T17:19:16 | 2011-11-02T17:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,140 | py | # -*- coding: utf-8 -*-
## {{{ http://code.activestate.com/recipes/577081/ (r2)
from __future__ import division
import doctest
def humanize_bytes(bytes, precision=1):
"""Return a humanized string representation of a number of bytes.
Assumes `from __future__ import division`.
>>> humanize_bytes(1)
'... | [
"sgammon@bluestatedigital.com"
] | sgammon@bluestatedigital.com |
9406015d1dc99205d5a626a3d19b0314bbf92dbe | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /ui/file_manager/externs/compiled_resources2.gyp | 9de99e4ba6b1758992c0f2acad38b4b114d4d036 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 2,942 | gyp | # 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.
{
'targets': [
{
'target_name': 'audio_player_foreground',
'includes': ['../../../third_party/closure_compiler/include_js.gypi'],
},
... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
2a77560368d4d8a586dc8c9f800787c7743811ff | 1125345341e496920b661e612cd67cdb96a1d170 | /createCampaign/parameter_tests/QUANTITY/test03_1_p.py | 77b12b0c1b535aab5ef6d2b35099aabe2c860d41 | [] | no_license | Stephen-Williams/swarm-qa | 0bac526f0ee44b8c3677fb35959e6f7d0e258be2 | 90e36b5eab475788d9ab54051ad9c2736f3633ec | refs/heads/master | 2021-01-01T20:11:51.033059 | 2015-07-08T16:07:06 | 2015-07-08T16:07:06 | 38,764,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | { 'all' :
{ '0':
{ 'ADOMAIN': 'abc.com',
'ADVERTISER_CATEGORY': 'IAB8-5',
'APP_FILTER': 'sites',
'CREATIVE_ATTR': '0',
'CREATIVE_BASE_64': 'iVBORw0KGgoAAAANSUhEUgAAAUAAAAAyCAIAAACib5WDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAD2EAAA9hAag/p2kAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuNWWFMmUAAAYHSURBVHhe... | [
"stephen.williams@juicemobile.com"
] | stephen.williams@juicemobile.com |
2bed22d82c837e0de4d072febba69f154ac37f07 | a3206bbfc28a31badfb0d8459d2cfa9f1b214856 | /torch_geometric/nn/conv/cheb_conv.py | 7b3afbf6f714be8f119000a36aec3eb7dc74d179 | [
"MIT"
] | permissive | chenyilun95/pytorch_geometric | bd0f2d533d142ebdc6b0cb85eb54f6e7d0ac69a9 | f752674dc2b0e750661fb362ddb09af559298bdf | refs/heads/master | 2020-04-28T14:14:35.531332 | 2019-03-12T19:32:35 | 2019-03-12T19:32:35 | 175,332,045 | 1 | 1 | MIT | 2019-03-13T02:32:24 | 2019-03-13T02:32:24 | null | UTF-8 | Python | false | false | 3,228 | py | import torch
from torch.nn import Parameter
from torch_sparse import spmm
from torch_geometric.utils import degree, remove_self_loops
from ..inits import uniform
class ChebConv(torch.nn.Module):
r"""The chebyshev spectral graph convolutional operator from the
`"Convolutional Neural Networks on Graphs with Fa... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
f3d110ecaa81e0a23cb7747b340a6e27098325c5 | 410579316d954a3594beda2a807b269f8764372f | /pyina/tools.py | 5535d7355359be294e6a20af42428820d5aedb5a | [
"BSD-3-Clause"
] | permissive | hpparvi/pyina | 752d526e76ca97539d3308414c429ab77f9b299d | 846c824999dcd36c763497b56367df2420a159e9 | refs/heads/master | 2021-01-17T21:12:35.691192 | 2016-07-18T09:15:16 | 2016-07-18T09:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,028 | py | #!/usr/bin/env python
#
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
# Copyright (c) 1997-2016 California Institute of Technology.
# License: 3-clause BSD. The full license text is available at:
# - http://trac.mystic.cacr.caltech.edu/project/pathos/browser/pyina/LICENSE
"""
Various mpi python tools
... | [
"mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df"
] | mmckerns@8bfda07e-5b16-0410-ab1d-fd04ec2748df |
d1f71f6fe3abf814031d53090bfa474e6ed1025b | 530b180c3aade8e67cc61ad2baddff018f7d59a8 | /robotframework-interactive/src/robotframework_interactive/server/rf_interpreter_ls_config.py | de6888d274009c57099f90f0dc3bad14fc0f7358 | [
"Apache-2.0"
] | permissive | robocorp/robotframework-lsp | 67a1f35b9268d349045eb8fe930ea381c2d94cae | d72e5310ed4a8165d7ee516d79e0accccaf7748c | refs/heads/master | 2023-08-17T05:12:43.598270 | 2023-08-12T12:11:22 | 2023-08-12T12:13:21 | 235,202,865 | 167 | 72 | Apache-2.0 | 2023-09-13T22:39:09 | 2020-01-20T21:31:20 | Python | UTF-8 | Python | false | false | 197 | py | from robocorp_ls_core.config import Config
from .rf_interpreter_generated_lsp_constants import * # @UnusedWildImport
class RfInterpreterRobotConfig(Config):
ALL_OPTIONS = ALL_ROBOT_OPTIONS
| [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
14024be9103648d8dd0a4e587662d030fefbd481 | 05b0162d5ee7ab74f71ad4f21d5188a8735dfaef | /plugins/action/system_certificate.py | 0a6687a9ceb4260cd2f9114bfa17e8a72f909d2a | [
"MIT"
] | permissive | steinzi/ansible-ise | 567b2e6d04ce3ca6fbdbb6d0f15cd1913a1e215a | 0add9c8858ed8e0e5e7219fbaf0c936b6d7cc6c0 | refs/heads/main | 2023-06-25T15:28:22.252820 | 2021-07-23T14:21:40 | 2021-07-23T14:21:40 | 388,820,896 | 0 | 0 | MIT | 2021-07-23T14:03:07 | 2021-07-23T14:03:06 | null | UTF-8 | Python | false | false | 8,491 | py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.action import ActionBase
try:
from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import (
AnsibleArgSpecValidator,
)
except ImportError:
ANSIBLE_UTILS_IS_INST... | [
"wastorga@altus.co.cr"
] | wastorga@altus.co.cr |
867d46bbb9f1c6b5b6cec7ce093912b97424db33 | e1ee8e7c4e92fef77277cbd0c19079ddd769069e | /docs/runtimes/Python27/Lib/distutils/tests/test_upload.py | 79cdd0545dc0cf70e5080832c8e2a34d6d421293 | [] | no_license | van7hu/fanca | 3c278f0ea0855eb2f0f7a7394788088e7e1c1ad2 | a8864116246bcfe2d517c48831d38e02f107e534 | refs/heads/master | 2021-01-10T02:04:04.361617 | 2015-10-18T15:34:34 | 2015-10-18T15:34:34 | 43,810,422 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,092 | py | # -*- encoding: utf8 -*-
"""Tests for distutils.command.upload."""
import os
import unittest
from test.test_support import run_unittest
from distutils.command import upload as upload_mod
from distutils.command.upload import upload
from distutils.core import Distribution
from distutils.errors import DistutilsE... | [
"van7hu@gmail.com"
] | van7hu@gmail.com |
2f831a4c25dd756f88e4cc3ea84ad8cd47feb776 | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1000147.黑盒光线反射.py | 51441c7eb6127d231e3657b758bedd142d234688 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1000147.黑盒光线反射.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
4f6dd67d5a71165b332902714575e0ff80e9ef50 | 7952f66758b685f4bf045c7eb28efa3a22412a89 | /Programmers/summer_winter_coding~2018/스티커모으기(2).py | be818d1884094b5d21eed59936ad363545eb4140 | [] | no_license | PingPingE/Algorithm | b418fa13528c27840bb220e305933800c5b4c00a | 89a55309c44320f01d2d6fe5480181a4c5816fd2 | refs/heads/master | 2023-08-31T01:43:09.690729 | 2023-08-27T13:12:22 | 2023-08-27T13:12:22 | 172,465,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,512 | py | def solution(sticker):
answer = 0
N = len(sticker)
if N <= 3:
return max(sticker)
# memo[idx]: sticker 리스트에서, idx-1번째 원소를 뜯었을 때 현재까지의 최댓값 저장
memo1 = [0 for _ in range(N + 1)] # 0번째 원소 뜯
memo2 = [0 for _ in range(N + 1)] # 안뜯
# 0번째 원소 뜯 -> N-1까지만 봄(못뜯으니)
memo1[1] = sticker[0]
... | [
"ds03023@gmail.com"
] | ds03023@gmail.com |
484aa9c60965d59c526a87e2db8983ae888d588e | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/11102422.py | d379a9d699e0d3555761429db891537126d67ffa | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/11102422.py generated: Fri, 27 Mar 2015 15:48:06
#
# Event Type: 11102422
#
# ASCII decay Descriptor: {[[B0]nos -> K+ K- (pi0 -> gamma gamma)]cc, [[B0]os -> K- K+ (pi0 -> gamma gamma)]cc}
#
from Configurables import Generation
Generation().EventType = 111... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
eda358112e2838be30390ae7ac1aec488cfb7063 | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /mergeTrees_617.py | 3820da58ee6c74cdb9fb28f7c08e32499998d446 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def mergeTrees(self, t1: TreeNode, t2: TreeNode) -> TreeNode:
if not t1:
return t2
if not t2:
ret... | [
"yadavallisasank@gmail.com"
] | yadavallisasank@gmail.com |
c02ed3d7295dfcfe321dd6915175eb9b12257969 | 77685b9285c5284817745f1f3535d43b669f49dd | /tests/utils/skip.py | b452cf8792ca65602e0744be024b1350da43b478 | [
"MIT"
] | permissive | M0r13n/pyais | 86307edae1dd2719dac2561f3bf550983c120dbc | 13633baec383d024028e40592391ea7348dd3ff5 | refs/heads/master | 2023-08-03T10:48:08.275587 | 2023-07-30T08:28:14 | 2023-07-30T08:28:14 | 212,847,903 | 124 | 62 | MIT | 2023-09-09T08:54:11 | 2019-10-04T15:32:17 | Python | UTF-8 | Python | false | false | 74 | py | import platform
def is_linux():
return platform.system() == 'Linux'
| [
"31622033+M0r13n@users.noreply.github.com"
] | 31622033+M0r13n@users.noreply.github.com |
9eba6a809c66441bdccab0f0ee95b57bbf46e5c7 | 1e7ac62fdf4771f86c0b8078e18bfa368ee883bf | /horizon/src/ptext.py | 248e9f714729568135ed3bbb518f018ba28086de | [
"CC-BY-4.0"
] | permissive | cosmologicon/pyjam | ef2bd1e18b0ae1c5b3a650809d96bee88a759df1 | d4edeb937df6a0c5296587a3bc631869c2c56918 | refs/heads/master | 2023-04-30T02:29:04.183301 | 2023-04-15T16:10:44 | 2023-04-15T16:10:44 | 39,986,042 | 6 | 6 | null | 2019-09-13T23:54:30 | 2015-07-31T04:08:58 | Python | UTF-8 | Python | false | false | 15,186 | py | # ptext module: place this in your import directory.
# ptext.draw(text, pos=None, **options)
# Please see README.md for explanation of options.
# https://github.com/cosmologicon/pygame-text
from __future__ import division
from math import ceil, sin, cos, radians
import pygame
DEFAULT_FONT_SIZE = 24
REFERENCE_FONT_... | [
"cosmologicon@gmail.com"
] | cosmologicon@gmail.com |
4f6566c9001152e7e38273b93ae736de9ac66bfa | 314cf05e7acdfb2b83bf4a56de4ee65310bd28f2 | /tests/outcomes/infinite_loop/infinite_loop_test_line_7/main.py | 52558c78c85c61ff699f39c46162002f93964f7b | [] | no_license | hyperskill/hs-test-python | 9f0201904cb68f3eb35275bb0c3b9bb70164a1e7 | 260313395d0534d148738e031753eb8f60de2e13 | refs/heads/master | 2023-05-10T17:49:26.400853 | 2023-04-26T11:49:52 | 2023-04-26T11:49:52 | 214,279,373 | 20 | 7 | null | 2023-04-26T11:49:53 | 2019-10-10T20:28:03 | Python | UTF-8 | Python | false | false | 145 | py | while True:
print("Line1")
print("Line2")
print("Line3")
print("Line4")
print("Line5")
print("Line6")
print("Line7")
| [
"aaaaaa2493@yandex.ru"
] | aaaaaa2493@yandex.ru |
009bd56e3b9aa980d28d841b4f221325f4f4bc25 | 6e9d6a682f20054e13d3764e95b8bd3b7b64fabf | /dailychallenge593.py | cd2e481ac5b2fc38015f6b32ac053750adcb3c0e | [] | no_license | SeanyDcode/codechallenges | 30a271e04bc2b360bca923ae868be65a9533c8db | 947cf3034911b381afaf777794d22d2af06aa5ba | refs/heads/master | 2022-11-07T21:22:56.927863 | 2022-10-18T23:33:13 | 2022-10-18T23:33:13 | 154,498,776 | 1 | 0 | null | 2022-10-18T23:02:05 | 2018-10-24T12:38:45 | Python | UTF-8 | Python | false | false | 590 | py | # from dailycodingproblem.com
#
# Daily Challenge #593
# You are given an array representing the heights of neighboring buildings on a city street, from east to west. The city assessor
# would like you to write an algorithm that returns how many of these buildings have a view of the setting sun, in order to properly
... | [
"noreply@github.com"
] | SeanyDcode.noreply@github.com |
06749057405d4b1c1135ceeb225bc2e58210161c | bbb8d941d0aa439ca435e0f00ddbd7330ad2db79 | /Practise/sqTrans.py | 37193e06f95deba6c764a5215bee42f23e565c57 | [] | no_license | dimritium/Code | 7ca940124074d7f7bca28559e0fe2f3cba24f846 | e6678b3dabe21fcd05e362bb8115f7812ad9abb8 | refs/heads/master | 2021-07-25T06:35:22.755474 | 2017-11-04T15:07:50 | 2017-11-04T15:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | n=int(raw_input())
li=list(map(int,raw_input().split()))
nli=[0]*n
nli[0]=li[0]
for i in range(1,n):
nli[i]=li[i]+nli[i-1]
print nli
| [
"dimrishubhi@gmail.com"
] | dimrishubhi@gmail.com |
a573a69329ba090e987d2a929cd0a1a9c2367f90 | 67acf4ede0399af234e9ffb25ede44e675c54eb9 | /src/main/python/ezbakeBaseProcedures/BaseProcedure.py | 253ac4d84d57bea83bcf40130bf8b27a62f5fb35 | [
"Apache-2.0"
] | permissive | ezbake/ezbake-base-thrift | 426cc92651a88b58005cd9d352657131a9a558fd | c50c68f01eae4d58c590fd37a47b163ef01eb9f5 | refs/heads/master | 2020-05-20T00:39:09.851084 | 2014-10-13T14:10:56 | 2014-10-13T14:12:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,747 | py | # Copyright (C) 2013-2014 Computer Sciences Corporation
#
# 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 a... | [
"jhastings@42six.com"
] | jhastings@42six.com |
a7ab241a632b24dfc40fa275247ccb3978710054 | 462e52636f351a30da5bf2159bc9b30719bbe79b | /stuff/finished libraries/statsmodels/ets.py | 8c01b6b4ffb4e13170b6bc39831ca0447100c5ad | [] | no_license | SoutiRini/Top-20-Python-Libraries | c27b1ae77e11209bfe97405f8e324c54d4d49db4 | 1adcc6255dc59b25a831df2d23fa759e1e7c3264 | refs/heads/master | 2022-12-08T11:09:19.587218 | 2020-08-28T22:16:41 | 2020-08-28T22:16:41 | 291,153,411 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 69,215 | py | r"""
ETS models for time series analysis.
The ETS models are a family of time series models. They can be seen as a
generalization of simple exponential smoothing to time series that contain
trends and seasonalities. Additionally, they have an underlying state space
model.
An ETS model is specified by an error type (E... | [
"auau@oregonstate.edu"
] | auau@oregonstate.edu |
0167b33b778049cb1f365ff1e356b0af7271dbf8 | 704976ea552111c6a5af9cd7cb62b9d9abaf3996 | /rpython/rlib/rsre/test/test_char.py | ce30266d3f46e08eae8e894a7773845a216081d4 | [
"LicenseRef-scancode-unicode",
"BSD-3-Clause"
] | permissive | mesalock-linux/mesapy | 4f02c5819ce7f2f6e249d34840f1aa097577645d | ed546d59a21b36feb93e2309d5c6b75aa0ad95c9 | refs/heads/mesapy2.7 | 2023-08-16T21:33:02.239581 | 2019-08-13T10:29:43 | 2019-08-13T18:06:45 | 136,080,721 | 396 | 33 | NOASSERTION | 2020-04-01T03:05:18 | 2018-06-04T20:45:17 | Python | UTF-8 | Python | false | false | 8,524 | py | from rpython.rlib.rsre import rsre_char, rsre_core
from rpython.rlib.rsre.rsre_char import SRE_FLAG_LOCALE, SRE_FLAG_UNICODE
def setup_module(mod):
from rpython.rlib.unicodedata import unicodedb
rsre_char.set_unicode_db(unicodedb)
def check_charset(pattern, idx, char):
p = rsre_core.CompiledPattern(patte... | [
"mssun@mesalock-linux.org"
] | mssun@mesalock-linux.org |
c42fd867faaf832c3e8f90cd39e79366faa677ad | 122b98ff24e0b37180dc3dd63709a845ac1f68eb | /tools/unassign_inactive_bugs.py | aa65c127b59208c87df3d7f2b612367a33512d4e | [
"Apache-2.0"
] | permissive | lbragstad/launchpad-toolkit | d40c054e967a10a6bdaf64d630d699f7efce5a77 | 8c8b86caf0f551a3a21821e96e361fbac2f14437 | refs/heads/master | 2021-07-18T16:08:07.902077 | 2019-09-17T18:07:42 | 2019-09-17T18:07:42 | 99,164,174 | 1 | 1 | Apache-2.0 | 2021-02-08T20:32:38 | 2017-08-02T21:56:00 | Python | UTF-8 | Python | false | false | 2,004 | py | import argparse
import datetime
import os
from launchpadlib import launchpad
from . import conf
from . import constants
DRY_RUN = False
NOW = datetime.datetime.utcnow()
def unassign_if_inactive(task, date_threshold):
if task.assignee is not None:
date_assigned = task.date_assigned.utctimetuple()
... | [
"lbragstad@gmail.com"
] | lbragstad@gmail.com |
301ef242b07d85f1b0ab1e6b3e8df5c3483d8711 | f958e503837b0649df78d66bac14d963610dde2e | /test.py | eb3d3d649ecfae39f94cd98a17fed1ae56797bbb | [] | no_license | Junaid522/Tesseract | cb2fe3aed568813694d85f6ef1b66a8f9f8384fe | 9f866f3ebd1429532d77b76a37237984ab97d209 | refs/heads/master | 2022-12-11T21:19:47.581284 | 2021-12-21T21:17:00 | 2021-12-21T21:17:00 | 196,369,614 | 1 | 0 | null | 2022-12-08T06:22:35 | 2019-07-11T10:04:27 | Python | UTF-8 | Python | false | false | 92 | py | from pyresparser import ResumeParser
data = ResumeParser('RESUME.pdf').get_extracted_data()
| [
"junaidtariq166@gmail.com"
] | junaidtariq166@gmail.com |
033b05f276f13b6cf3e19593cd6e9920216ed3f0 | 7f20b1bddf9f48108a43a9922433b141fac66a6d | /csplugins/trunk/ucsd/rsaito/rs_Progs/rs_Python/rs_Python_Pack/tags/rs_Python_Pack080114/IVV_Packages/ANALYSIS_SCR1/PredictPPI4_Scer.py | 201e601e16649753f482a4b1eb29218334d93313 | [] | no_license | ahdahddl/cytoscape | bf783d44cddda313a5b3563ea746b07f38173022 | a3df8f63dba4ec49942027c91ecac6efa920c195 | refs/heads/master | 2020-06-26T16:48:19.791722 | 2013-08-28T04:08:31 | 2013-08-28T04:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,563 | py | #!/usr/bin/env python
import sys
sys.path.append("../")
import string
from PPI_Pred.PPIPred3 import PPIPred2
import IVV_info.IVV_info
import IVV_info.Prey_info
import IVV_info.PullDown
from Motif.Motif_info1 import Motif_info
from Motif.MMI2 import MMI2
import Homology.Homology3_descr
from Homology.Prey_intra_homol... | [
"rsaito@0ecc0d97-ab19-0410-9704-bfe1a75892f5"
] | rsaito@0ecc0d97-ab19-0410-9704-bfe1a75892f5 |
3e7f675086eb163afd16e905ad86e45bd86d0663 | 800b5bf7a2bf4abbc4f5890bc07bd67e1e55f91c | /woot/apps/img/admin.py | ebd0932317f2fc3e32b6dbffb083af4fc0298f46 | [] | no_license | apollo-dev/img | 6dcbc46a3f9a7ffd8221d34fbdb009e50565979d | c00cfd414684b2be2e76d4845f7a0a246a7ee626 | refs/heads/master | 2021-04-29T03:31:57.970127 | 2018-01-05T11:51:46 | 2018-01-05T11:51:46 | 78,010,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | # woot.apps.img.admin
# django
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User
from apps.img.models import *
# local
# util
### Model admins
| [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
2d6639cebca1e1c69746b3e5488cc39c083ed65f | 040d06c7ce7c69df4b0356686a840afffa1774de | /backend/apps/accounts/tasks.py | e8e1a53fb5273076add5bc44ae095ba1b992e39d | [] | no_license | bangrobe/django-step-by-step | c1b9e481835f7ecf2f2e90303d4967c2686fccee | 469b24f491665c1922413e1d046fa85febb4d500 | refs/heads/master | 2023-06-27T00:10:14.292253 | 2021-03-30T01:35:40 | 2021-03-30T01:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | import logging
import os
from backend.celery_app import app
from django.conf import settings
from django.core.mail import EmailMessage
from django.contrib.auth import get_user_model
from django.template.loader import render_to_string
from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_... | [
"briancaffey2010@gmail.com"
] | briancaffey2010@gmail.com |
073cec9079975189ede51201f83e5ee9c11e69d6 | 0ea2ec1bf5cb593e64d04223852322c8bf716a58 | /clients/python-flask/generated/openapi_server/test/test_sling_controller.py | 9a3d9d017928ecacc4e1bf47e3fc4ff10909b9a9 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem | ffbe967858cb5fe909d126872210fffc78893e31 | 49c1d653763b272b06823cdd1572d08efb29173f | refs/heads/main | 2022-12-11T11:57:35.977016 | 2022-11-28T09:21:03 | 2022-11-28T09:21:03 | 61,857,466 | 40 | 23 | Apache-2.0 | 2022-09-05T10:05:35 | 2016-06-24T04:45:15 | Java | UTF-8 | Python | false | false | 27,311 | py | # coding: utf-8
from __future__ import absolute_import
from flask import json
from six import BytesIO
from openapi_server.models.keystore_info import KeystoreInfo # noqa: E501
from openapi_server.models.truststore_info import TruststoreInfo # noqa: E501
from openapi_server.test import BaseTestCase
class TestSlin... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
5f522721ab762475be91484028c6b9e553bba674 | 89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04 | /tools/gn/gn.gyp | b006f686a77fc487359a1a852469f3ce7fcc2956 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-unknown",
"MIT"
] | permissive | bino7/chromium | 8d26f84a1b6e38a73d1b97fea6057c634eff68cb | 4666a6bb6fdcb1114afecf77bdaa239d9787b752 | refs/heads/master | 2022-12-22T14:31:53.913081 | 2016-09-06T10:05:11 | 2016-09-06T10:05:11 | 67,410,510 | 1 | 3 | BSD-3-Clause | 2022-12-17T03:08:52 | 2016-09-05T10:11:59 | null | UTF-8 | Python | false | false | 9,775 | gyp | {
'variables': {
'chromium_code': 1,
},
'targets': [
{
'target_name': 'gn_lib',
'type': 'static_library',
'dependencies': [
'../../base/base.gyp:base',
],
'sources': [
'action_target_generator.cc',
'action_target_generator.h',
'action_values.cc... | [
"bino.zh@gmail.com"
] | bino.zh@gmail.com |
8cf15648037f81cc8db4baf864c20e5d6fb82e5f | 7c0026e4e6e47114c93bd8a49c4d2759cf7a8613 | /starter_code_section_5/tests/unit/models/test_item.py | 2b70ed642d14a483a6105e3f03c17b3e8fd810fd | [] | no_license | ikostan/automation_with_python | 5edf9bca971629fc7621af2957d26c3f0f73fe9e | 131a0699f927ac40ea625a3526c9193863b1cc1c | refs/heads/master | 2020-05-05T09:42:14.360826 | 2019-07-03T01:49:38 | 2019-07-03T01:49:38 | 179,913,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | import unittest
import os
from starter_code_section_5.models.item import ItemModel
class ItemModelTestCase(unittest.TestCase):
# printing out the running unit test file location/name
print("Running unit tests from: " +
os.path.dirname(__file__) +
'\\' + os.path.basename(__file__) +
... | [
"igorkostan@gmail.com"
] | igorkostan@gmail.com |
c95bb69cbfb3a690417340bcbebec5c366355b1a | 264ff719d21f2f57451f322e9296b2f55b473eb2 | /tools/nntool/quantization/qtype_base.py | def379e611c606a3b7e2d7ec3b835921974f0f41 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | knmcguire/gap_sdk | 06c9537c16fa45dea6b7f5c6b162b53953262915 | 7b0a09a353ab6f0550793d40bd46e98051f4a3d7 | refs/heads/master | 2020-12-20T06:51:19.580497 | 2020-01-21T14:52:28 | 2020-01-21T14:52:28 | 235,992,961 | 0 | 0 | Apache-2.0 | 2020-01-24T11:45:59 | 2020-01-24T11:45:58 | null | UTF-8 | Python | false | false | 650 | py | # Copyright (C) 2019 GreenWaves Technologies
# All rights reserved.
# This software may be modified and distributed under the terms
# of the BSD license. See the LICENSE file for details.
from abc import ABC, abstractmethod
from numpy import array
class QTypeBase(ABC):
@abstractmethod
def quantize(self, ... | [
"noreply@github.com"
] | knmcguire.noreply@github.com |
e405a8cf8e3b975edcf79b8fa1ab6824ae255830 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/LIVINGSTON-SNMP.py | b1f876aa6073a187ffd39ced85c26de827019cf4 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 59,012 | py | #
# PySNMP MIB module LIVINGSTON-SNMP (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/LIVINGSTON-SNMP
# Produced by pysmi-0.3.4 at Mon Apr 29 19:56:59 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
1eb49d773f5ba4c0cf7f554fe8be8af6e6f1f2f9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_superfluous.py | 7508eb632415d5a9587856d5854883537d74542c | [
"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 | 399 | py |
#calss header
class _SUPERFLUOUS():
def __init__(self,):
self.name = "SUPERFLUOUS"
self.definitions = [u'more than is needed or wanted: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4d3ebe279c5b1cc8353afc6024e48188be968805 | 1fc45a47f0e540941c87b04616f3b4019da9f9a0 | /tests/sentry/api/endpoints/test_organization_repositories.py | c98c14ffffa0da337e8c32d72fb0d7ca31e90f0e | [
"BSD-2-Clause"
] | permissive | seukjung/sentry-8.15.0 | febc11864a74a68ddb97b146cc1d2438ef019241 | fd3cab65c64fcbc32817885fa44df65534844793 | refs/heads/master | 2022-10-28T06:39:17.063333 | 2018-01-17T12:31:55 | 2018-01-17T12:31:55 | 117,833,103 | 0 | 0 | BSD-3-Clause | 2022-10-05T18:09:54 | 2018-01-17T12:28:13 | Python | UTF-8 | Python | false | false | 1,459 | py | from __future__ import absolute_import
import six
from django.core.urlresolvers import reverse
from sentry.models import Repository
from sentry.testutils import APITestCase
class OrganizationRepositoriesListTest(APITestCase):
def test_simple(self):
self.login_as(user=self.user)
org = self.crea... | [
"jeyce@github.com"
] | jeyce@github.com |
b36fadc6cbebf484940dd84f1cd085a1d38aad4a | a49b277b41404bf87db54ec62288872665422f6a | /tests/forms/table.py | fde4a0d6350c702668715d460c0df631ecdaa698 | [
"BSD-3-Clause"
] | permissive | pombredanne/djpcms | 070aa27d31bbb9e721ebd0b0c766f7511864e72c | 13c6363fc75029c5d37fd13f0139802f5b69abf2 | refs/heads/master | 2021-01-14T09:42:23.640244 | 2014-02-19T18:56:32 | 2014-02-19T18:56:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | '''Test form table layouts'''
from djpcms.utils import test
class TestTableLayout(test.TestCase):
def form(self):
'''Build the form and the form layout'''
from djpcms import forms
from djpcms.forms import layout as uni
class testForm(forms.Form):
entry1__col... | [
"luca.sbardella@citi.com"
] | luca.sbardella@citi.com |
78d2a42f67382dd6e955fa3820af032cfb696761 | ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c | /venv/Lib/site-packages/pylatexenc/latexwalker/__main__.py | 3c8afcb16d7df44917c97c98c80ebcf3fc97a79a | [
"MIT",
"Apache-2.0"
] | permissive | shivam675/Quantum-CERN | b60c697a3a7ad836b3653ee9ce3875a6eafae3ba | ce02d9198d9f5a1aa828482fea9b213a725b56bb | refs/heads/main | 2023-01-06T20:07:15.994294 | 2020-11-13T10:01:38 | 2020-11-13T10:01:38 | 330,435,191 | 1 | 0 | MIT | 2021-01-17T16:29:26 | 2021-01-17T16:29:25 | null | UTF-8 | Python | false | false | 6,193 | py | # -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) 2018 Philippe Faist
#
# 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 t... | [
"vinfinitysailor@gmail.com"
] | vinfinitysailor@gmail.com |
e3ee6af91c194503033dcafd7f55ff9dfed4f143 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /22_专题/离线查询/并查集/Dynamic Graph Vertex Add Component Sum-子树和.py | b5c0163cdc810c50e45e52f853218c7b5617a0a1 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 5,383 | py | # Dynamic Graph Vertex Add Component Sum
# 连接断开边/单点修改权值/查询子树和
# 0 root1 root2 root3 root4 断开(root1-root2) 连接(root3-root4)
# 1 root x 将root的值加上x
# 2 root1 root2 输出root1所在子树的和,其中root2是root1的父亲节点
# 离线查询
# n<=2e5
# !技巧:查询子树和=断开父亲边+查询连通块和+连回父亲边
from typing import Tuple
class ATCRevocableUnionFindArray:
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
de9c59725548670a8d689ad5b4849bece4efaddb | 3b8013a29b6800f0f15569d74603346cef62e4e7 | /Reinforcement_learning_TUT/9_Deep_Deterministic_Policy_Gradient_DDPG/DDPG.py | aa428fdfa16f104fc8a72dcc87bac13ae5973037 | [] | no_license | pentium3/tutorials | 3978140a2038a988b6043cb4efcb5cab67e7ca89 | abf2ea80ba0e5c6800701908367aeb4b5ee2369b | refs/heads/master | 2021-01-22T22:28:32.828169 | 2017-03-20T03:05:18 | 2017-03-20T03:05:18 | 85,548,010 | 3 | 0 | null | 2017-03-20T07:38:15 | 2017-03-20T07:38:15 | null | UTF-8 | Python | false | false | 9,780 | py | """
Deep Deterministic Policy Gradient (DDPG), Reinforcement Learning.
DDPG is Actor Critic based algorithm.
Pendulum example.
View more on [莫烦Python] : https://morvanzhou.github.io/tutorials/
Using:
tensorflow 1.0
gym 0.8.0
"""
import tensorflow as tf
import numpy as np
import gym
np.random.seed(1)
tf.set_random_s... | [
"morvanzhou@hotmail.com"
] | morvanzhou@hotmail.com |
eaf85d24d936e423881a9738391b2e85e9006764 | 1f5bf7b22bdb1d0c1856c323fcd3a5ed70938ba2 | /牛客小白月赛25/E.py | 150b5e8972e41d2d819f57f514edcbd157d66c1f | [] | no_license | yu-hanyang/my-newcoder-ans-by-python | ec7c6d7765fc65969b4798a93437712980429ec2 | fb5ee012c4615dc5198278d4349705403c2d4bae | refs/heads/main | 2023-05-03T07:00:01.398542 | 2021-05-29T11:43:48 | 2021-05-29T11:43:48 | 369,950,165 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | s=input()
stack=[]
for i in s:
if stack:
if stack[-1]==i:
stack.pop()
else:stack.append(i)
else:stack.append(i)
if stack:
print(''.join(stack))
else:print(0) | [
"2522821183@qq.com"
] | 2522821183@qq.com |
c6188b1b2e10c2d3057394bd09aadf696ff97631 | 7c82c07aeca87c6193e8c13f05aa039100e216ae | /pyFeaEng/__init__.py | ff92715c5d6d841e6c0b46c7616f915af2e179f8 | [] | no_license | chixujohnny/pyFeaEng | 7e4847d2c7a4ed71e4203ae56a3bb5889844d776 | 1b1148179a7950757254d418677fd9dc08fe62f2 | refs/heads/master | 2020-08-23T21:27:07.878126 | 2019-10-29T02:43:21 | 2019-10-29T02:43:21 | 216,708,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,504 | py | ######################## BEGIN LICENSE BLOCK ########################
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later ve... | [
"1390463349@qq.com"
] | 1390463349@qq.com |
c100e86e1bff1cab652d6c3c7839caa18e4a311f | 1154075d79d5d24aa4093daf3f886b5a7e446a30 | /examples/common_scenarios/sequence_without_restriction_sites.py | 3e85719f59fab85be732e8cc9346b07942954d10 | [
"MIT"
] | permissive | Edinburgh-Genome-Foundry/DnaChisel | 8548f48aec9d2f57b25bb301dda476e48696e27f | 4be08c2696710387ae6d5b0346e6680a69d88c64 | refs/heads/master | 2023-08-28T12:50:05.308622 | 2023-06-06T15:30:28 | 2023-06-06T15:30:28 | 102,761,506 | 172 | 44 | MIT | 2023-05-30T02:20:23 | 2017-09-07T16:37:36 | Python | UTF-8 | Python | false | false | 639 | py | """In this script we create a random sequence rid of the 6pb enzyme restriction
sites listed in Biopython."""
from dnachisel import DnaOptimizationProblem, AvoidPattern, random_dna_sequence
from Bio.Restriction import AllEnzymes
# CREATE AN AvoidPattern CONSTRAINT FOR EACH ENZYME SITE OF LENGTH 6
constraints = [
... | [
"valentin.zulkower@gmail.com"
] | valentin.zulkower@gmail.com |
326675b74d101be1617920775b546ceee402f313 | 9ac207f918da95441b7ecfa53ac1442aa2ca5d83 | /icefit/em.py | a11454d8628baeee92341da72a830d0fb21c788d | [
"MIT"
] | permissive | bainbrid/icenet | d825d27df76f8e03c5da8f74cc8f3027c6cb0e5a | 0b261dc97451fd7f896ed27f2b90dd2668e635ca | refs/heads/master | 2021-02-05T10:33:34.801983 | 2020-10-13T13:09:25 | 2020-10-13T13:09:25 | 243,770,528 | 0 | 0 | MIT | 2020-02-28T13:37:41 | 2020-02-28T13:37:40 | null | UTF-8 | Python | false | false | 2,165 | py | # Expectation-Maximization and mixture density algorithms
#
# m.mieskolainen@imperial.ac.uk, 2020
import numpy as np
import numba
import copy
@numba.njit
def gausspdf(x,mu,sigma):
""" Gaussian pdf """
return 1/np.sqrt(2*np.pi*sigma**2) * np.exp(-0.5 * ((mu-x)/sigma)**2)
@numba.njit
def mixture_nll(pdf, frac):
""... | [
"mikael.mieskolainen@cern.ch"
] | mikael.mieskolainen@cern.ch |
f83209968389ac4442a0311742d17c60232c7eaa | b785d87c1c6019df33ecbe4e8acc2b582796787a | /runRiboRL.py | db6698b020b89b850c7aae5251018c0accc52287 | [] | no_license | Liuxg16/RiboRL | 3fcb7526b4e0e7f081044dd64de7c77602fe31f1 | 7d1fef763077b64a0f4796af0fabdbb87a4d8be5 | refs/heads/master | 2020-04-04T16:34:45.717002 | 2018-11-04T13:28:43 | 2018-11-04T13:28:43 | 155,054,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # coding=utf-8
# python2
import sys, time, os , random, math,logging
import cPickle as pickle, json
import numpy as np
import scipy.stats
from collections import Counter
from os.path import dirname, join
import torch
import torch.nn as nn
from torch.autograd import Variable
import torch.optim as optim
from networks im... | [
"you@example.com"
] | you@example.com |
7de30a27aa7d043b34373234b4bbdf86f130fc92 | 6b25a2c0564f90494ff9c4801e63fe870aa10b9e | /scripts/test_rpi_abb_irc5_rapid | 784c70f4da792ca823c527b1074c446cb9f2b7a5 | [
"BSD-3-Clause"
] | permissive | rpiRobotics/rpi_abb_irc5 | 83f0223523767525d11d967dc0cd15621dacf069 | 4b440b1fdb31114ade43ef89976f07e1d9168094 | refs/heads/master | 2023-01-05T16:25:11.616541 | 2022-12-27T21:56:04 | 2022-12-27T21:56:04 | 114,304,830 | 24 | 8 | BSD-3-Clause | 2018-07-18T17:57:10 | 2017-12-14T23:08:23 | Python | UTF-8 | Python | false | false | 346 | #!/usr/bin/env python
import rpi_abb_irc5
import sys
def main():
if (len(sys.argv) >= 2):
rapid=rpi_abb_irc5.RAPID(sys.argv[1])
else:
rapid=rpi_abb_irc5.RAPID()
print rapid.get_execution_state()
rapid.resetpp()
rapid.start()
print rapid.get_execution_state()
if __name__ == '_... | [
"wason@wasontech.com"
] | wason@wasontech.com | |
33096ccd1a029adc4fd36d8ecbc44a953b7c3634 | c9fde4576216a22e8d5711bbe97adda1aafa2f08 | /model-optimizer/extensions/front/onnx/unsqueeze_ext.py | 676d3daa2328b515c6c8801ea81cc496db470832 | [
"Apache-2.0"
] | permissive | dliang0406/dldt | c703d6a837de3f996528fc8a9543f9530b23342c | d9b10abcebafe8b10ba81e09e433de7a366c072c | refs/heads/2018 | 2020-04-03T08:24:47.723353 | 2018-10-29T07:58:05 | 2018-10-29T07:58:05 | 155,132,108 | 3 | 1 | Apache-2.0 | 2019-10-10T08:39:46 | 2018-10-29T01:03:54 | C++ | UTF-8 | Python | false | false | 1,205 | py | # """
# Copyright (c) 2018 Intel Corporation
#
# 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... | [
"openvino_pushbot@intel.com"
] | openvino_pushbot@intel.com |
f7a87eb4888faac1f402c5f1435b1c55a2b3497c | e37b415b6ca0042fa793265f138ad68c78d38b39 | /fifa.py | 626cc84f22d3a8432c62cc41c6dfae30c4ec72ec | [] | no_license | italomaia/ingressos.fifa | 3675bf1d39954bbbefe6361d6a1362e034fc5c3d | 94f07691e009c1f4223da788586f31b99b1e9069 | refs/heads/master | 2021-01-22T06:59:22.780973 | 2014-06-29T21:47:07 | 2014-06-29T21:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,397 | py | # coding:utf-8
from urllib import urlopen
import argparse
import json
import re
import subprocess
from time import sleep
# returns json (same used by ingresso site)
uri_available_games = 'https://fwctickets.fifa.com/TopsAkaCalls/Calls.aspx/getBasicData?l=pt&c=BRA'
date_c = re.compile('(\d{4})(\d{2})(\d{2})')
mp3 = '... | [
"italo.maia@gmail.com"
] | italo.maia@gmail.com |
2a372e8ad7217d76783f105023e081db1888bde4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/56/usersdata/138/23742/submittedfiles/av2_p2_m2.py | 43a223ad5ef163fe7d086e77883e4caa75167851 | [] | 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 | 595 | py | # -*- coding: utf-8 -*-
from __future__ import division
def somavida(p,pe,ps):
i=0
soma=0
while b<=c:
soma=soma+p[i]
i=i+1
return soma
'''
def maiorlista(b,ent,saida):
for i in range(0,len(b),1):
if b[i]>b[i+1]:
maior = b[i]
if b[i]>maior:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aec7edd5ba914433dc5213bce8def39935c6f9b0 | b8a13ecb7c0999954807e80c7470d8f752a3653b | /cryptopals-python3/md4.py | cc0122ad988aabd32192efedfa1ba8b2c562a98a | [] | no_license | jbarcia/Python-Books | 59ca3d7b7fb1f2c1e3d1659f846032382af557a9 | 2106a2e5f56cdd4261bf870798a0a427d6137249 | refs/heads/master | 2021-01-19T00:24:59.727307 | 2017-01-05T00:07:13 | 2017-01-05T00:07:13 | 62,562,390 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,046 | py | #=========================================================================
#imports
#=========================================================================
#core
from binascii import hexlify
import struct
from warnings import warn
#local
__all__ = [ "md4" ]
#==========================================================... | [
"jbarcia99@yahoo.com"
] | jbarcia99@yahoo.com |
769938ec8de40a61e0e55c498aeeb6c4b7b4c590 | e87524319ee0e610c451f1777a5a90883f508fe3 | /top/clearlight/reptile/bilibili/bj_tech_mooc/example_02.py | a01a31800afdb8c3d29d7820fa2993cd5d34226a | [
"Apache-2.0"
] | permissive | ClearlightY/Python_learn | 3a805bbe8883d58d0e60bd73f985b6093b983248 | 93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232 | refs/heads/master | 2020-12-11T06:58:17.984184 | 2020-07-30T18:10:20 | 2020-07-30T18:10:20 | 233,794,474 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | import requests
'''r = requests.get(
'https://www.amazon.cn/dp/B083ZDFFBF/ref=s9_acsd_hps_bw_c2_x_0_i?pf_rd_m=A1U5RCOVU0NYF2&pf_rd_s=merchandised-search-2&pf_rd_r=CXA8TNPZGFFV8EZR28NM&pf_rd_t=101&pf_rd_p=5a80bc03-4726-4991-ae28-f18724016e76&pf_rd_i=116169071')
print(r.status_code)
print(r.encoding)
print(r.apparen... | [
"lxy12531@163.com"
] | lxy12531@163.com |
04ea3eb3d38a9493af86ecfcceae2b1eb14bcac7 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/c6045414ee11b3446b9f200aabb1d796c911dac3plugins.py | c6045414ee11b3446b9f200aabb1d796c911dac3 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 865 | py | # -*- coding: utf-8 -*-
from tg import session
from tg.controllers import redirect
from tg.decorators import expose, validate
from brie.config import ldap_config, plugins_config
from brie.lib.ldap_helper import *
from brie.lib.aurore_helper import *
from brie.lib.plugins import *
from brie.model.ldap import *
from br... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
9711ed8d3b89f4381e749fd1bfbbda508e7f8eac | 6816f051d281e854f4eb1a2c5c15af4e488ebb2c | /data-science-python/introducao_datacience.py | 19e923007172633b26b43c8c3a23e613ec6b50c0 | [] | no_license | andre23arruda/learning-python | da42d3a09e73f41640a77cd1567cf1f7579f64a8 | fc3f701cd2fd57551a040b04216e507a3f08a3ce | refs/heads/master | 2020-05-31T17:47:58.822096 | 2019-11-26T19:40:58 | 2019-11-26T19:40:58 | 190,417,914 | 0 | 0 | null | 2019-10-08T18:26:54 | 2019-06-05T15:12:05 | null | UTF-8 | Python | false | false | 3,901 | py | #%% Aula 1 -carregar pandas e ler arquivo
import pandas as pd
notas = pd.read_csv(r"csv/ratings.csv")
notas.head()
notas.shape
#%% Aula 1 - renomear colunas
notas.columns = ['usuarioID','filmeId','nota','momento']
notas.head()
#%% Aula 1 - series
nota = notas['nota'] # ou notas.nota
nota_unica = nota.unique()
nota_co... | [
"andre23arruda@gmail.com"
] | andre23arruda@gmail.com |
3a5142199588f10f12790f7bca20d6f0fefc46d2 | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/reppic/exploring-passenger-nationality/exploring-passenger-nationality.py | 206cb28e347eb6462c96771f0fd4525198a903cf | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,911 | py | #!/usr/bin/env python
# coding: utf-8
# I thought it might be interesting to see what (if any) impact nationality/ethnicity had on survival. The training/test data supplied doesn't contain any explicit nationality info. Let's see if we can infer it from passengers' names.
#
# # Getting Nationalities from Names
# To ... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
7b240713dfedae28cf9fbe9f4dc332e115714977 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03605/s608647899.py | 8a60da3e168638804ec01215cb6fcdfa17d8c0fc | [] | 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 | 45 | py | n=input()
print('Yes' if '9' in n else 'No')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
deb15eb4fd2ee27e4fe786cc2e91e2bfcfe32f9d | 37c3c6fd1b05b6cf0c5f5ab89120562d7a8a40f8 | /pro19.py | a46e3ea6bd54832fffb48551ec256744de7eb961 | [] | no_license | kaviraj333/python | e4b480adfcbec383c1228e07426833b9c02f4296 | 7110b6e153c4ef4afe7ade8ce20104b26ea4cc8f | refs/heads/master | 2020-05-22T23:17:48.540550 | 2019-04-09T05:04:31 | 2019-04-09T05:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | amu=[]
n=[]
k=int(raw_input())
for x in range(k):
n.append(raw_input().split())
for x in n:
for y in x:
amu.append(int(y))
amu.sort()
s=" ".join(map(str,amu))
print(s)
| [
"noreply@github.com"
] | kaviraj333.noreply@github.com |
5f1b60b5ff218d1231b6fd96f5437423dab7a34e | 7fa3038e6870a2e77bc9ce2c6a6b1326bf0d1659 | /emailfwd/admin.py | 9f6189ee221ab52bc394ac1a1bdcbf646e32f90e | [
"Apache-2.0"
] | permissive | snswa/swsites | 63c54415c26e5bcdba2b8ac9b0dbac66d9e444ac | 4eaf79de924efd257d68fbea88df20546a711c02 | refs/heads/master | 2020-06-01T14:09:00.153618 | 2011-05-03T23:10:32 | 2011-05-03T23:10:32 | 1,056,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from django.contrib import admin
from emailfwd.models import ForwardedEmailAddress, EmailDestination
class EmailDestinationInline(admin.TabularInline):
model = EmailDestination
class ForwardedEmailAddressAdmin(admin.ModelAdmin):
inlines = [
EmailDestinationInline,
]
list_display = ['name'... | [
"gldnspud@gmail.com"
] | gldnspud@gmail.com |
ecae67cd859c28f222ecd8151f87c0ec3df92aa4 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/databoxedge/v20190701/user.py | e5e99d3807b277286235e7f2842bb6244a523e3d | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 5,884 | 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... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
51add28f71771159dcf09d197dfb23629a145531 | 40132307c631dccbf7aa341eb308f69389715c73 | /OLD/idmt/maya/commonPerform/renderLayers/dod_renderLayers(1).py | 20c293f1a65522a66d0c54595ed921d79fe352db | [] | no_license | Bn-com/myProj_octv | be77613cebc450b1fd6487a6d7bac991e3388d3f | c11f715996a435396c28ffb4c20f11f8e3c1a681 | refs/heads/master | 2023-03-25T08:58:58.609869 | 2021-03-23T11:17:13 | 2021-03-23T11:17:13 | 348,676,742 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 56,790 | py | # -*- coding: utf-8 -*-
'''
Created on 2014��1��24��
@author: shenkang
'''
import maya.cmds as mc
import maya.mel as mel
class dod_renderLayers(object):
def __init__(self):
pass
# Occlusion层Arnold版
# No Lights
def dodRLAOArnoldCreate(self, layerType, selectObjType= 1 ,transMode = 1):
... | [
"snakelonely@outlook.com"
] | snakelonely@outlook.com |
689c14fb47217fbf36308c8dd911a86deb7231ec | a1232023595eed48bf3d56c0c1dcb8f05cdc261a | /6.ZigZag Conversion/6.py | 9d72f753ecbb5a025d7df79d9930daa76887ac26 | [] | no_license | NKcell/leetcode | 2393ec3f8dc0e26b9ff098a592e4ffa9d7b774b8 | 88dec1c2106950e82819a0dd16425a9ee8fdaca4 | refs/heads/master | 2020-07-24T05:27:42.269903 | 2020-05-06T07:45:07 | 2020-05-06T07:45:07 | 207,814,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | def convert(s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
if numRows == 1:
return s
s_length = len(s)
flag = []
for i in range(s_length):
tem = i%(2*numRows-2)
if tem < numRows:
flag.append(tem)
else:
flag.... | [
"517343690@qq.com"
] | 517343690@qq.com |
8b83457d61f1f1945bff13308965ae03c934f2b7 | e3137dcc13024ca204f6c22fbd3159d9bb4e3f22 | /src/foods/models/serving.py | 0c7a7e4d0b6b4369e5c73b6acc4b8cddea819172 | [] | no_license | hemantic/mechanical-curator-bot-telegram | 52be41a905a9fcda58c0b5e09f873f2269ccf5d6 | 7c11fcdde1f67870f7efbd832022fdd794b26528 | refs/heads/master | 2023-04-20T09:53:06.070652 | 2021-05-08T23:18:48 | 2021-05-08T23:18:48 | 365,442,412 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | from django.db import models
class Serving(models.Model):
serving_id = None
food_entry_id = None
food_id = None
food_entry_description = None
food_entry_name = None
meal = None
number_of_units = models.FloatField(null=True)
calories = models.FloatField(null=True)
protein = mod... | [
"artem.kiselev@gmail.com"
] | artem.kiselev@gmail.com |
44d9c1078647c5d189210eb59aab567bf3b42d76 | ebacdc5b2370b70a481f317de88a662b428c4de9 | /diploma_store/articles/__init__.py | a603dd784592e33d233912b4a900375fd18d0732 | [] | no_license | MaliYudina/dj-4 | 076cd9cfd10b141009bb50dc1bba0908c832d23e | d67423d75cf617241de2669eaa8a9d12c4426acb | refs/heads/master | 2022-12-07T06:26:53.745695 | 2019-08-15T16:21:30 | 2019-08-15T16:21:30 | 191,433,031 | 1 | 2 | null | 2022-11-22T03:14:54 | 2019-06-11T18:59:41 | Python | UTF-8 | Python | false | false | 52 | py | default_app_config = "articles.apps.ArticlesConfig"
| [
"maliyudina@gmail.com"
] | maliyudina@gmail.com |
819a929887439fef2cd05bf80b5806b507fc4443 | 4c424214344a3d8cc6fe0978f462410597619e71 | /archer_apps/accounts/urls.py | 34432e023673b06cc3dc3de965ac511b736f797c | [] | no_license | SergeZazik/Archer-Test | 65e903b7859c4f9a852d0a88c31a2222f0aebd43 | 6c858f401b95f52551fbf8096cdb17507da399cf | refs/heads/master | 2020-04-08T12:17:49.941503 | 2018-11-27T15:33:09 | 2018-11-27T15:33:09 | 159,340,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from django.urls import path
from .views import (CustomObtainJSONWebToken, CustomUserProfileApiView, CustomUserCreateAPIView)
urlpatterns = [
path('api/registration/', CustomUserCreateAPIView.as_view(), name='registration'),
path('api/profile/', CustomUserProfileApiView.as_view(), name='profile'),
path('... | [
"zavizionsergey@gmail.com"
] | zavizionsergey@gmail.com |
896495d43b63c8c2ff1c342b73e2103518a07239 | 2c7f99ff86d1786d133df13a630d62e7dcc63fab | /google/cloud/dialogflow_v2beta1/types/__init__.py | 1b5381fee90ecadb7e88a8b74b40f310368bfe9d | [
"Apache-2.0"
] | permissive | rlindao/python-dialogflow | 2141b7181506210c6cfffb27bb9599ad21261c28 | 8958e562bb159b00bb1fc0fa97e5ffd35dea058d | refs/heads/master | 2023-04-06T15:09:14.888871 | 2021-04-16T21:34:24 | 2021-04-16T21:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,651 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | rlindao.noreply@github.com |
8c59a8ad646d5f3a0042d0f077d3ed6ff6392d06 | 8a780cb47eac9da046bdb5d6917f97a086887603 | /problems/linked_list_cycle_ii/solution.py | 8f0167fd2992e3d1c8f489ca3ce13376e706afd1 | [] | no_license | dengl11/Leetcode | d16315bc98842922569a5526d71b7fd0609ee9fb | 43a5e436b6ec8950c6952554329ae0314430afea | refs/heads/master | 2022-12-20T03:15:30.993739 | 2020-09-05T01:04:08 | 2020-09-05T01:04:08 | 279,178,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def detectCycle(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
dummy = ListNode(None)
dum... | [
"ldeng1314@gmail.com"
] | ldeng1314@gmail.com |
7aca1e58951f7eeb50281444f2533c1723624215 | fdbda73cc7861ada1a0f826f85ad1ee126b3713b | /anchor/danmuSpider/test.py | dba8c1899ced330da754ed7bc0a3f6968e9480fe | [] | no_license | wsqat/308 | db7712bad1603ce76c511035e4463e8f336b6e17 | 8ff70ffda686bc92f6ec9d60094613e60e6d4296 | refs/heads/master | 2021-04-26T07:31:11.834186 | 2018-04-08T05:55:25 | 2018-04-08T05:55:25 | 106,892,993 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,539 | py | #!/usr/bin/env python3
# coding=utf-8
import socket
import sys
import time
import uuid
import hashlib
import requests
from lxml import etree
import re
import sys
import threading
import pickle
import copy
import sqlite3
import queue
import logging
class DouyuTV(threading.Thread):
"""docstring for DouyuTV"""
... | [
"786607676@qq.com"
] | 786607676@qq.com |
958674fa64d4ff2cb24fcdd2a9b30ad1b677ee0c | f0c402d3858f0643561886797578b1e64655b1b3 | /utils/regression/applications/lsf/__init__.py | 3a09b9e9d411bc9c0d28c48fdfaac5e84eec16b6 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Leo-Wang-JL/force-riscv | 39ad2a72abd814df4b63879ce9825b6b06a9391a | deee6acaaee092eb90ac2538de122303334e5be3 | refs/heads/master | 2023-01-28T00:06:58.135651 | 2020-11-18T02:54:10 | 2020-11-18T02:54:10 | 271,873,013 | 0 | 0 | NOASSERTION | 2020-06-28T00:51:26 | 2020-06-12T19:15:26 | C++ | UTF-8 | Python | false | false | 838 | py | #
# Copyright (C) [2020] Futurewei Technologies, Inc.
#
# FORCE-RISCV is 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
#
# THIS SOFTWARE IS PRO... | [
"jwang1@futurewei.com"
] | jwang1@futurewei.com |
a85fce3d901e0d6da7b149755bf7389097482d84 | 4069b1edef7c31a9005e63331d42abf5b1964a7d | /google/cloud/dialogflow_v2/services/documents/transports/grpc_asyncio.py | 1ffc2d5e4847f41f9fb621ef7e05c8ffa0019458 | [
"Apache-2.0"
] | permissive | renovate-bot/dialogflow-python-client-v2 | 77e93d4a6f25fbcf539907510bd385342fc0d589 | 84294856a06ac8d29c9cacb90be689c3bfa225e4 | refs/heads/master | 2023-08-31T21:29:24.516813 | 2021-08-18T13:40:35 | 2021-08-18T13:40:35 | 198,908,273 | 0 | 0 | null | 2019-07-25T22:20:52 | 2019-07-25T22:20:51 | null | UTF-8 | Python | false | false | 19,222 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
22e24ddfba163236fce1764610c8395200ea6616 | 3529ecaa44a53172094ba13498097057c8972723 | /Questiondir/665.non-decreasing-array/665.non-decreasing-array_115700802.py | 228a3a1790984f470783ce6fdb66e25734f985dc | [] | no_license | cczhong11/Leetcode-contest-code-downloader | 0681f0f8c9e8edd5371fd8d0a1d37dcc368566b6 | db64a67869aae4f0e55e78b65a7e04f5bc2e671c | refs/heads/master | 2021-09-07T15:36:38.892742 | 2018-02-25T04:15:17 | 2018-02-25T04:15:17 | 118,612,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | class Solution(object):
def checkPossibility(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
def check(g):
for i in range(1, len(g)):
if g[i-1] > g[i]:
return False
return True
if check(nums):
... | [
"tczhong24@gmail.com"
] | tczhong24@gmail.com |
5219a782d537db28be25313e542f8df31f0e4cd1 | ecd2aa3d12a5375498c88cfaf540e6e601b613b3 | /SortsCollection/HeapSort.py | 5df329e10ca52c81a257b974438f0034569880f4 | [] | no_license | YoyinZyc/Leetcode_Python | abd5d90f874af5cd05dbed87f76885a1ca480173 | 9eb44afa4233fdedc2e5c72be0fdf54b25d1c45c | refs/heads/master | 2021-09-05T17:08:31.937689 | 2018-01-29T21:57:44 | 2018-01-29T21:57:44 | 103,157,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,841 | py | '''
堆节点的访问
通常堆是通过一维数组来实现的。在数组起始为 0 的情形中,如果 i 为当前节点的索引,则有
父节点在位置 floor((i-1)/2);
左子节点在位置 (2*i+1);
右子节点在位置 (2*i+2);
堆的操作
在堆的数据结构中,堆中的最大值总是位于根节点。堆中定义以下几种操作:
最大堆调整(Max-Heapify):将堆的末端子节点作调整,使得子节点永远小于父节点,保持最大堆性质的关键。运行时间为 O(lg n)。
创建最大堆(Build-Max-Heap):在无序的输入数组基础上构造出最大堆。运行时间为 O(n)。
堆排序(HeapSort):对一个数组进行原地排序,卸载位在第一个数据的根节点... | [
"yoyinzyc@gmail.com"
] | yoyinzyc@gmail.com |
c87b492261d4de5eebaacb5603942071583940b4 | e998d7e095e0f52f8a1ed072743f2c38ec2e6ab9 | /gallery/virtual/bin/django-admin | 001357d6cdc02d90a4d73cb4ff502b42c71aa84e | [
"MIT"
] | permissive | amiinegal/Gallery-app | 702a1bfe95a6a29659ab9b6da9b55ec59ad0eba6 | 3619f1717e8f813e151f7a178f0789f06bd52c02 | refs/heads/master | 2020-05-21T09:05:20.674789 | 2019-05-14T11:40:21 | 2019-05-14T11:40:21 | 185,985,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | #!/home/amin/Documents/moringa-school-projects/Gallery/gallery/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command... | [
"you@example.com"
] | you@example.com | |
bc80732f4a9bf67b3bd4d7aac53c58d70943ccc1 | a262151ecb151b4c8335354c972fb166b81f4635 | /sdk/netapp/azure-mgmt-netapp/azure/mgmt/netapp/aio/operations/_operations.py | 367b60b17873a25a1d03732d69d60e74bc8bd9b9 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | fenwickt/azure-sdk-for-python | 5fc8f3383caa4e5e7a61f5b497a73635c4377935 | 0d1f644925d2472c72b195588508bd0efc4baf0c | refs/heads/master | 2023-03-31T08:02:37.322485 | 2021-03-29T07:48:41 | 2021-03-29T07:48:41 | 319,299,226 | 0 | 0 | MIT | 2020-12-07T11:31:48 | 2020-12-07T11:31:48 | null | UTF-8 | Python | false | false | 4,677 | 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"
] | fenwickt.noreply@github.com |
4f4d08c4a138ae19b4c0c43f38f78f2c06c42617 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2641/60636/252647.py | 62791932aabd0e22ddaa7722e50122c7f114de59 | [] | 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 | 391 | py | from itertools import permutations
s1=list(input())
s2=list(input())
if(len(s1)>len(s2)):
print(False)
else:
target=list(permutations(s1,len(s1)))
have=False
for i in target:
for j in range(len(s2)-len(s1)+1):
if(s2[j:j+len(s1)]==i):
have=True
if(have):
pr... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
92fde20ce26ddb4df8e6bbbeca8fa2e6f36af1b9 | eaf550155b0a96b4d4596474c18c1e415ef5ae77 | /INEPYGAME/pghello.py | 3961cbbe515d4d2c75ba0c4b780b0221837a7dec | [] | no_license | panumas300/project1 | 64580a4ec1a29add6bf7da288e94861a6a4c02c1 | 80d9294397082ff1a764e1425ebcc2c9f2483a98 | refs/heads/master | 2023-03-27T10:22:23.104016 | 2021-03-30T07:32:18 | 2021-03-30T07:32:18 | 279,528,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | import pgzrun
#define size of windows
WIDTH = 400
HEIGHT = 300
#function for draw graphics
def draw():
screen.fill((100, 200, 150))
screen.draw.text('Hello World', topleft=(100, 100), fontsize=30)
pgzrun.go()
| [
"INE-02@Admins-iMac-5.local"
] | INE-02@Admins-iMac-5.local |
56017f2790353918f7199135d154cdacb1988d6b | 55ce26d8aa16d5a4cf1ae301fbed249e2caf4875 | /mummi_core/utils/cmdClient.py | c4f745ae090e4b00c2a93440fa57a1700fe935b3 | [
"MIT"
] | permissive | RodenLuo/mummi-core | eb11977d08fb231fc1e42a713b213f047c62eeb8 | 0d378819e125e15abe7c0ccc156a14248d598b33 | refs/heads/main | 2023-09-04T18:20:46.859464 | 2021-11-16T07:12:24 | 2021-11-16T07:12:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,477 | py | # Copyright (c) 2021, Lawrence Livermore National Security, LLC. All rights reserved. LLNL-CODE-827197.
# This work was produced at the Lawrence Livermore National Laboratory (LLNL) under contract no. DE-AC52-07NA27344 (Contract 44) between the U.S. Department of Energy (DOE) and Lawrence Livermore National Security, L... | [
"bhatia4@llnl.gov"
] | bhatia4@llnl.gov |
753cca33f75c53c69c870f6c4e1872152ae55861 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/labels/bundle_to_label_test.runfiles/pypi__apache_beam_2_9_0/apache_beam/runners/runner_test.py | d0c17ce602edcea45162f52beef6183dabe9fae2 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__apache_beam_2_9_0/apache_beam/runners/runner_test.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
0f3a451e118c81d2f327c6d98c60fe96ae924771 | 98b1956594921aeef6e4b3c0f5b15703c3eee6a7 | /integration/python/test/test_nucleus_transfer_fields_co.py | a6efb6ed1a0487ecef14bfbc2eef9ece8fdac0c4 | [
"Apache-2.0"
] | permissive | sumit4-ttn/SDK | d4db3dcac077e9c9508a8227010a2ab764c31023 | b3ae385e5415e47ac70abd0b3fdeeaeee9aa7cff | refs/heads/master | 2022-11-25T14:05:16.911068 | 2020-08-09T17:31:55 | 2020-08-09T17:31:55 | 286,413,715 | 0 | 0 | Apache-2.0 | 2020-08-10T08:03:04 | 2020-08-10T08:03:03 | null | UTF-8 | Python | false | false | 987 | py | # coding: utf-8
"""
Hydrogen Integration API
The Hydrogen Integration API # noqa: E501
OpenAPI spec version: 1.2.1
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import integration... | [
"hydrogen@Hydrogens-MacBook-Pro.local"
] | hydrogen@Hydrogens-MacBook-Pro.local |
bd184f5c30bfd82983fa8fd7932f1d181011b647 | 13f4a06cd439f579e34bf38406a9d5647fe7a0f3 | /nn_ns/math_nn/constants/pi/calc pi[Rabinowitz_and_Wagon_spigot_algorithm][base10000].py | c946de2d4eefa7267784ce21bb6cae95a0f05043 | [] | no_license | edt-yxz-zzd/python3_src | 43d6c2a8ef2a618f750b59e207a2806132076526 | 41f3a506feffb5f33d4559e5b69717d9bb6303c9 | refs/heads/master | 2023-05-12T01:46:28.198286 | 2023-05-01T13:46:32 | 2023-05-01T13:46:32 | 143,530,977 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,512 | py | '''
calc pi[Rabinowitz_and_Wagon_spigot_algorithm][base10000]
"Pi Unleashed (2001).djvu"
[page 77] 6. spigot algorithm
pi = SUM 2^(k+1) * (k!)^2 / (2*k+1)! {k <- 0..}
==>>
pi/2 = SUM k! / (2*k+1)!! {k <- 0..}
= 1 + 1/3 + (1*2)/(3*5) + (1*2*3)/(3*5*7) + ...
= ... | [
"wuming_zher@zoho.com.cn"
] | wuming_zher@zoho.com.cn |
bc61985ee9309a484fc5d8dc4aaa2305e9c6b3c1 | d2996e57ba82cc40e42d39f7b3416642aefcb304 | /datasets/datafeeder.py | 1ac3529f86283d62afe9ddbb6ddf6d0b7e9e6a5b | [
"CC-BY-4.0",
"LicenseRef-scancode-public-domain",
"CC-BY-3.0",
"MIT"
] | permissive | gaoyu1983/mandarin_tacotron_GL | f9a0c395ead87adc65b7269c394b0e816a44b704 | 2db2dd339dd74519e6360db0d50f40bc6c1dbfd7 | refs/heads/master | 2022-09-29T04:29:07.507455 | 2020-06-05T06:41:38 | 2020-06-05T06:41:38 | 269,268,543 | 0 | 0 | MIT | 2020-06-04T05:28:18 | 2020-06-04T05:28:18 | null | UTF-8 | Python | false | false | 6,432 | py | import numpy as np
import os
import random
import tensorflow as tf
import threading
import time
import traceback
from hparams import hparams
from text import cmudict, text_to_sequence
from util.infolog import log
_batches_per_group = 32
_p_cmudict = 0.5
_pad = 0
_stop_token_pad = 1
class DataFeeder(threading.Thread... | [
"CCS695146667@163.com"
] | CCS695146667@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.