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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c8d8667bbb7d76c8500ade144d06c1fc05dc164 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/18_aws_cloud/a_AWS_Lambdas/d_practical_utility_functions/a_generate_UUID.py | 1ec0ac9016b72d7593797b7e96d1ca01b412c14e | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 138 | py | import uuid
def lambda_handler(event, context):
uuid_string = str(uuid.uuid4())
return {"statusCode": 200, "body": uuid_string}
| [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
e8e498fa819d22385364f8ef897e9a87fb8d077d | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/DescribeAvailableClassesRequest.py | 20d6727216e7c4b9b1f853e8ea35564f1be680c2 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,942 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
4631b58c4efae5d477c647e38415a9b413c38dd2 | 85c16e7cfb879866ba53f11eb1c799b3bafffe54 | /doc/conf.py | bec8611a084c122f166fb1fce115f1261d261368 | [
"MIT"
] | permissive | peteowlett/jacquard | bea1c9f471fe38292b53ea4c57846864e87d1b9a | 772fd633e521501688e0933482cba45f48c23ef9 | refs/heads/master | 2020-04-18T02:56:50.591499 | 2018-06-15T12:25:24 | 2018-06-15T12:25:24 | 167,181,731 | 0 | 0 | MIT | 2019-01-23T12:43:50 | 2019-01-23T12:43:50 | null | UTF-8 | Python | false | false | 4,856 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# jacquard documentation build configuration file, created by
# sphinx-quickstart on Fri Jan 13 04:43:44 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# a... | [
"arplynn@gmail.com"
] | arplynn@gmail.com |
521cddebbea4ff56e6404e4172b6abb163d1c2a9 | 392a004ac0877b399aa2c36eed0e896cc6b2ccca | /diffusion_prediction/cron/diffusion-prediction/utils.py | 8336d44fc19c64d1f5b6a60e2d86de8de4e4041d | [] | no_license | Ymm0008/diffusion-prediction | 97d129d98876946b751f753077726d9bad1e950e | 66b3e40d44450d17542b0ab2f355dccce87c0d1e | refs/heads/master | 2021-01-19T09:57:46.393129 | 2017-05-23T02:09:56 | 2017-05-23T02:09:56 | 82,154,182 | 0 | 0 | null | 2017-02-16T07:49:29 | 2017-02-16T07:49:29 | null | UTF-8 | Python | false | false | 7,479 | py | # -*- coding:utf-8 -*-
import sys
import time
import json
reload(sys)
sys.path.append('../')
#from parameter import DAY, HOUR, RUN_TYPE
from global_config import R_BEGIN_TIME,HOUR
from global_utils import key_es
#from time_utils import ts2datetime, datetime2ts
import pinyin
from key_mappings import key_n... | [
"1257819385@qq.com"
] | 1257819385@qq.com |
810af65ae1a0de8745866a598f61161cd4a61a46 | 19cec240505e27546cb9b10104ecb16cc2454702 | /linux/app/web/python/flmkvs/client.py | c006eee2db0aefea6053a34ec249811ddfa30b8e | [] | no_license | imosts/flume | 1a9b746c5f080c826c1f316a8008d8ea1b145a89 | a17b987c5adaa13befb0fd74ac400c8edbe62ef5 | refs/heads/master | 2021-01-10T09:43:03.931167 | 2016-03-09T12:09:53 | 2016-03-09T12:09:53 | 53,101,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | import flmkvs, flmxmlrpc.client, flume
import flume.flmos as flmo
default_query_size = 10
class KVSException (Exception):
pass
class kvsconnection:
"""
This class wraps up the client RPC functionality into convenience
functions that decode responses and throws exceptions etc.
"""
def __init_... | [
"imosts"
] | imosts |
6559d110760e1dba758c5e8bb8bac0cf9ab3f0cf | dc2c245995180e080dc81d04312d75c1d4bdc950 | /qqbot/qcontactdb.py | d1d9067570a374fafbde1a6e79f04c3cc21347a3 | [
"MIT"
] | permissive | lineCode/qqbot | e97369eea3afedffd9eee5b42b0b6a653e1c5db9 | d6cfc872436e660a0c1a16a63957a922197f7472 | refs/heads/master | 2021-01-11T13:47:08.917020 | 2017-03-28T18:39:03 | 2017-03-28T18:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,977 | py | # -*- coding: utf-8 -*-
import sys, os
p = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if p not in sys.path:
sys.path.insert(0, p)
import collections, time, pickle
from qqbot.common import JsonDumps
from qqbot.utf8logger import INFO, DEBUG, WARN
from qqbot.mainloop import Put, PutTo
... | [
"pandolia@yeah.net"
] | pandolia@yeah.net |
fd3ac406aebc23e1fbad038f5dcb0cddafbd1639 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-StoreKit/PyObjCTest/test_skreceiptrefreshrequest.py | ecbd0bd25dc6042af8844b406ffca7d5396e44e5 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from PyObjCTools.TestSupport import *
import StoreKit
class TestSKReceiptRefreshRequest(TestCase):
@min_os_level("10.9")
def test_constants(self):
self.assertIsInstance(StoreKit.SKReceiptPropertyIsExpired, unicode)
self.assertIsInstance(StoreKit.SKReceiptPropertyIsRevoked, unicode)
se... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
a46f564cf8e0491fb23e9b35f330ad34d60522ba | c9d81b5d0b258b57a06a99f43a79dc1ecd219488 | /functio_class_decrator.py | bad4f12aa4dbfb0bde01e2626eda21bdfdd80cae | [] | no_license | babiswas/Python-Design-Patterns | 4f4851cc55ae1bee8828f099f2c2610a36f4e8d5 | ea6e417880bab26bded60c67188a12623f74639f | refs/heads/master | 2020-07-30T05:28:10.030541 | 2019-09-26T17:54:21 | 2019-09-26T17:54:21 | 210,102,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | def decorator(cls):
def wrapper(*args):
print("Wrapper executed")
return cls(*args)
return wrapper
@decorator
class A:
def __init__(self,name):
self.name=name
def __str__(self):
return f"{self.name} is name"
if __name__=="__main__":
a=A("hello")
print(a)
| [
"noreply@github.com"
] | babiswas.noreply@github.com |
74437bc02ca68a3d15790ad77d36bde8b630b039 | 06b2eed882d8d7034fb7c57b648d5aa37d7f617b | /leetCode/25. K 个一组翻转链表.py | bfeb506593cbb7d6c88a63bdfe0d834c1b789730 | [] | no_license | 1974410167/python_projects | 558e2e7a4ea66b083ebd6d2f808b725e1bd153d6 | 81a97cbf41de12bdc3dbc46edf2931075ac4f758 | refs/heads/main | 2023-06-22T09:41:22.038620 | 2023-06-09T15:09:44 | 2023-06-09T15:09:44 | 355,036,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
from typing import Optional
# todo
class Solution:
def reverseKGroup(self, head: Optional[ListNode], k: int) -> Optional[ListNode]:
if not head or not head.next:
... | [
"1974410167@qq.com"
] | 1974410167@qq.com |
92de646bcad1422ed2f3423880572ac1e6e402c8 | d2e80a7f2d93e9a38f37e70e12ff564986e76ede | /Python-cookbook-2nd/cb2_03/cb2_3_5_sol_1.py | ba0ecf2d188855c0a2a1ef674311e9df250de629 | [] | no_license | mahavivo/Python | ceff3d173948df241b4a1de5249fd1c82637a765 | 42d2ade2d47917ece0759ad83153baba1119cfa1 | refs/heads/master | 2020-05-21T10:01:31.076383 | 2018-02-04T13:35:07 | 2018-02-04T13:35:07 | 54,322,949 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from dateutil import rrule
import datetime
def workdays(start, end, holidays=0, days_off=None):
if days_off is None:
days_off = 5, 6 # default to: saturdays and sundays
workdays = [x for x in range(7) if x not in days_off]
days = rrule.rrule(rrule.DAILY, dtstart=start, until=end,
... | [
"mahavivo@126.com"
] | mahavivo@126.com |
1278bfe76935fde06f475cd41c1a5ff5cb96e692 | f9ad2cee558b38244663c1dfeea3ec09b95041d9 | /scripts/install.py | c4eee7e091e6ec2ae5ec203569d3780d45533363 | [
"MIT"
] | permissive | wlsrhdrhks/magmathon | 262769b9588b4fa1dffc009dca7a1e8a5cac252f | b560820802d3ebb54d46f773d69df407f0fadaf7 | refs/heads/master | 2020-06-02T03:02:44.852282 | 2019-01-16T21:29:21 | 2019-01-16T21:29:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import subprocess
def run(command, *args, **kwargs):
print("+ {}".format(command))
subprocess.run(command, *args, **kwargs)
run("git submodule update --init", shell=True)
run("pip install -e magma", shell=True)
run("pip install -e mantle", shell=True)
run("pip install -e loam", shell=True)
run("pip install fa... | [
"lenny@stanford.edu"
] | lenny@stanford.edu |
62db7d7f9b766337f8c7b10fddb4b190e96ac0fb | 53e3e676b66e4ed6bbf7941c7e78c2820fcbed59 | /devel/lib/python2.7/dist-packages/rostopic/__init__.py | 743821d6fefed8386d562ab76b3180b5116ce3f2 | [] | no_license | daichi08/catkin_ws_atPi | 0bdc3e5f2c7073d888a2f6109c0842521c99104e | 9690697e1d432f06c5ee4570a0e7d1a2cc7c44ed | refs/heads/master | 2020-03-22T21:09:04.291933 | 2018-08-02T06:10:41 | 2018-08-02T06:10:41 | 140,661,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | # -*- coding: utf-8 -*-
# generated from catkin/cmake/template/__init__.py.in
# keep symbol table as clean as possible by deleting all unnecessary symbols
from os import path as os_path
from sys import path as sys_path
from pkgutil import extend_path
__extended_path = "/home/pi/catkin_ws/src/ros_comm/rostopic/src".s... | [
"b1504000@planet.kanazawa-it.ac.jp"
] | b1504000@planet.kanazawa-it.ac.jp |
c7becc19164006dcb324a993445cb3f2783afd58 | 2e4810dde93e6a1526421eb1b492980aecf2fbcb | /robocraft/robot/meta.py | 8605436215527dd6cc73b877609347fe35f92d06 | [] | no_license | SnowWalkerJ/Robocraft | c11be5f9c5d9ee1752f7df79eaf0d965bcc4c0bd | d1713dfae8cc5ea4960a180b295dcef7084c843a | refs/heads/master | 2020-05-15T06:27:06.653432 | 2019-04-21T13:37:29 | 2019-04-21T13:37:29 | 182,124,892 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | import asyncio
from functools import wraps
import inspect
from .. import env
class APIMeta(type):
def __new__(cls, name, bases, attrs):
new_attrs = {}
for attr_name, attr in attrs.items():
if hasattr(attr, 'is_api'):
if attr_name.startswith("get"):
... | [
"jike3212001@163.com"
] | jike3212001@163.com |
58e7d57fee19cbb9174e8b6258a75ed66b4b37dd | 4f9a6eec1d3ee781a621b37d96fdba66d56306cb | /tensorflow_data_validation/arrow/decoded_examples_to_arrow.py | fc52ebf6445feb323f8bd9e52ecea382302bfcbc | [
"Apache-2.0"
] | permissive | wsuchy/data-validation | 4e6414de2274c2d1148765e92b700bf2edff6933 | 71dc7d89ecfe7874c6628538bd65e3412f24c0a4 | refs/heads/master | 2020-08-05T16:58:32.165969 | 2019-10-01T20:29:47 | 2019-10-01T20:30:11 | 212,624,674 | 0 | 0 | Apache-2.0 | 2019-10-03T16:19:24 | 2019-10-03T16:19:24 | null | UTF-8 | Python | false | false | 1,006 | py | # Copyright 2018 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, ... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
82c7472de859d1d9f8ba055745c6cd90b758e37c | 4be5c172c84e04c35677f5a327ab0ba592849676 | /cryptography/python/Ciphers/block_ciphers/DES/DES.py | 9f215d6668c8529be7a4d2bb947f0e84fa294acc | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 3,201 | py |
# Initial Permutation
IP = \
[
58, 50, 42, 34, 26, 18, 10, 2,
60, 52, 44, 36, 28, 20, 12, 4,
62, 54, 46, 38, 30, 22, 14, 6,
64, 56, 48, 40, 32, 24, 16, 8,
57, 49, 41, 33, 25, 17, 9, 1,
59, 51, 43, 35, 27, 19, 11, 3,
61, 53, 45, 37, 29, 21, 13, 5,
63, 55, 47, 39, 31, 23, 15, 7
]
# Inverse Init... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
09f3f43f7976a25a0ae7a4787bf672890aff6022 | c7014b5d347d63db9293260173642e41a3c73ccc | /.history/projects/models_20190430164522.py | 16caabfd8f2d38c97694f566a8703e1575596d94 | [] | no_license | helder-a-reis/bacalab | 6f03d218d6234fc656814f443afecf9b28f67e59 | 2b34c9ff6f303561d7b787d766d6f20d849bc3f1 | refs/heads/master | 2023-04-27T09:52:29.493627 | 2019-06-13T14:06:38 | 2019-06-13T14:06:38 | 171,745,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from django.db import models
class Project(models.Model):
projectKey = models.CharField(max_length=20)
title = models.CharField(max_length=100)
teaser = models.TextField(max_length=200)
thumb = models.ImageField(default='project.png', upload_to='project_thumbs')
description = models.TextField(blank... | [
"helderreis78@gmail.com"
] | helderreis78@gmail.com |
9702b599d78d071b2ba592176a87db171d5b3e61 | bb11b43197cdc3293039ba45834eb139cf4f3301 | /bin/energy_printer_sensor.py | 01c7f59195b505f04834a3caba8484c9f7f184f7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jetperch/pyjoulescope_examples | 703bd92659c2890e81ca174033081dec7c530d42 | 0c90a6c3e8caf2d7204daddb4774108ca4c87829 | refs/heads/main | 2023-04-28T23:04:19.258146 | 2023-04-14T15:42:53 | 2023-04-14T15:42:53 | 194,519,880 | 8 | 9 | Apache-2.0 | 2023-04-12T15:00:52 | 2019-06-30T13:36:10 | Python | UTF-8 | Python | false | false | 1,781 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2019-2020 Jetperch 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
#
# Unles... | [
"matt.liberty@jetperch.com"
] | matt.liberty@jetperch.com |
b60eb43e42786f17920cb3f4ec4291ea61b54155 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav214.py | ea685823293a2066726cf32508eea019a59c6fb0 | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = prey[0] - prey[0]
temp1 = min(prey[0], prey[1])
if temp0 > prey[1]:
if prey[1] != 0:
temp1 = prey[1] % prey[1]
else:
temp1 = prey[1]
else:
temp1 = min(prey[1], prey[0])
temp1 = -1 * temp0
temp2 = -1 * temp0
temp0 = temp2 - prey[0]
return [temp... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
b065c89e9cb69704ade049858fab1aa8e9645d19 | 376b2a1d39b2d1a72f5d078121882ad5176c6bf3 | /general_es_match/src/server/base.py | 4a945dafc6b9c331c4811b7f368b29d9e8ee6023 | [] | no_license | wangzb-001/nnga_jxf | bf44fe3837ce1744c82ea61946cc1ad34a95c1a3 | d7a15a5621b92d00fc3820dc5234c89f71c64c4f | refs/heads/main | 2023-04-30T12:54:56.994687 | 2021-05-13T06:28:26 | 2021-05-13T06:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : xinfa.jiang
# @File : base.py
from boltons import tbutils
from logger import logger
from es.ES_Model import ES_Model
def success_response(data):
return {"status": 200, "msg": "服务正常", "data": data}
def error_response(e):
exc_info = tbutils.Excepti... | [
"425776024@qq.com"
] | 425776024@qq.com |
537b38d5d748990e5e28b208aa5e73b25d5d00f0 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/aio/operations/_inbound_nat_rules_operations.py | 34293b349f43e4c4dfa313bcc5e3d8bcdc32cace | [
"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 | 22,226 | 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 |
87fff93e3ca7ef58e89dea6daded144e36ab3608 | 5dafd823d0fd4ae8049f58ead927338edc150eaa | /src/scripts/jnt_fishtank | b9059de63035583e7769def868ca015ad0335fd1 | [] | no_license | bibi21000/janitoo_raspberry_fishtank | e14b345f1a6488bc5d8478f1cb80a6c5834d214b | 1f65dc7c6503ff9c9c0fb8cacef2d41449a6cfc9 | refs/heads/master | 2021-01-21T04:43:10.367628 | 2016-07-06T23:14:31 | 2016-07-06T23:14:31 | 50,456,129 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The init script for Janitoo Raspberry Pi server
"""
__license__ = """
This file is part of Janitoo.
Janitoo is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fou... | [
"bibi21000@gmail.com"
] | bibi21000@gmail.com | |
71318b861e26bf260e6fa0296c90e2c3a839be27 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/scheduler/locations/list.py | e9054520660d8333be502f0be8c3115e7473605a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,536 | py | # -*- coding: utf-8 -*- #
# Copyright 2021 Google LLC. All Rights Reserved.
#
# 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 requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
d23b6fb4e4a64ae62557bbbedbabf643d7b6bb5c | 8032f671147f62ce91d6a42be5bafebdfeb236f9 | /tests/test_01_dxf_entities/test_119_ucs_table_entry.py | 198e61506c5f3b1c370bbe51093751226f888c9d | [
"MIT"
] | permissive | mamofejo/ezdxf | 3ebcd9afae06e53d56a8622f8406e2c9a95e4971 | bd5a08a85608360266eb8702d48638195c72c247 | refs/heads/master | 2023-02-26T22:04:48.798010 | 2021-02-05T14:06:28 | 2021-02-05T14:06:28 | 336,305,662 | 0 | 0 | MIT | 2021-02-05T15:29:09 | 2021-02-05T15:08:54 | null | UTF-8 | Python | false | false | 952 | py | # Copyright (c) 2011-2019, Manfred Moitzi
# License: MIT License
import pytest
from ezdxf.entities.ucs import UCSTable
@pytest.fixture
def ucs():
return UCSTable.new('FFFF', dxfattribs={
'name': 'UCS+90',
'origin': (1.0, 1.0, 1.0),
'xaxis': (0.0, 1.0, 0.0),
'yaxis': (-1.0, 0.0, 0.... | [
"mozman@gmx.at"
] | mozman@gmx.at |
60a58fb24814bf9ffdbc02c165bef18c5ba96f00 | bbeae4a0054a4ad85c7818e32ec22d5a674f0041 | /idaes/tests/test_style.py | b990806c084dbe6651512dfdb950227d4a23d164 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bhattade/idaes-pse | a1785af05f799ba9f617ae8aa4cb4e2856709c62 | 190d097b9594ee5fcbe7bb9e47212264f277893e | refs/heads/master | 2021-03-22T08:28:25.470204 | 2020-03-07T00:09:18 | 2020-03-07T00:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | ##############################################################################
# Institute for the Design of Advanced Energy Systems Process Systems
# Engineering Framework (IDAES PSE Framework) Copyright (c) 2018-2019, by the
# software owners: The Regents of the University of California, through
# Lawrence Berkeley N... | [
"KSBeattie@lbl.gov"
] | KSBeattie@lbl.gov |
da6bdcbfe891932db72f724348a540b0f4eb847f | ebc7607785e8bcd6825df9e8daccd38adc26ba7b | /python/baekjoon/2.algorithm/brute_force/백준_수학은_비대면강의입니다.py | faa471c700628f7af56660ec184520a14825b697 | [] | no_license | galid1/Algorithm | 18d1b72b0d5225f99b193e8892d8b513a853d53a | 5bd69e73332f4dd61656ccdecd59c40a2fedb4b2 | refs/heads/master | 2022-02-12T07:38:14.032073 | 2022-02-05T08:34:46 | 2022-02-05T08:34:46 | 179,923,655 | 3 | 0 | null | 2019-06-14T07:18:14 | 2019-04-07T05:49:06 | Python | UTF-8 | Python | false | false | 286 | py | import sys
def solve():
global a, b, c, d, e, f
for x in range(-999, 1000):
for y in range(-999, 1000):
if a*x + b*y == c and d*x + e*y == f:
return print(x, y)
a, b, c, d, e, f = map(int, sys.stdin.readline().strip().split(" "))
solve() | [
"galid1@naver.com"
] | galid1@naver.com |
d67a09e73eab96a164bab2731ef3c49930deee9b | 6e67b0c683cd7a35ec212d6b9d5dd3474e7df2eb | /rtmtools/lblrtm/tests/test_insert_levels_and_layers.py | 25c0bfda349c57dd94e4e166949368642aa16f7b | [] | no_license | qAp/rtmtools | 98d5c96bbc8dd3bef551a534f242b38fbc112584 | 0c2b56ddab31b9ef3916dec24c74722af104841d | refs/heads/master | 2020-06-14T14:20:34.084721 | 2018-07-11T07:34:07 | 2018-07-11T07:34:07 | 75,172,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | import numpy as np
import aerutils
def test():
xlevels = np.arange(0, 8., 2.)
ylayers = np.arange(1, 7., 2.)
print('xlevels = ', xlevels)
print('ylayers = ', ylayers)
print(aerutils.insert_levels_and_layers(xlevels))
print(aerutils.insert_levels_and_layers(xlevels, xlayerss = [ylayers... | [
"llacque@gmail.com"
] | llacque@gmail.com |
f46afe16df0176b253194d040e7777334a0c396a | ff38fa1a976eed9f4e2d99c7a02ae4f72ca1efc6 | /test/mitmproxy/proxy/test_commands.py | ead32ca3a8b6333d3b0632874a3ea0994a3fe9d5 | [
"MIT"
] | permissive | GX17LuSunSky/mitmproxy | c08e7fbe54c6531ed85d161f584c760b5f2f900d | 46a09df2bdaab0376a4edacc945f2828c55ca399 | refs/heads/main | 2023-07-17T09:00:29.738419 | 2021-09-06T07:52:48 | 2021-09-06T07:52:48 | 403,501,430 | 1 | 0 | MIT | 2021-09-06T05:50:39 | 2021-09-06T05:50:38 | null | UTF-8 | Python | false | false | 778 | py | from dataclasses import dataclass
import pytest
from mitmproxy import connection
from mitmproxy.hooks import all_hooks
from mitmproxy.proxy import commands
@pytest.fixture
def tconn() -> connection.Server:
return connection.Server(None)
def test_dataclasses(tconn):
assert repr(commands.SendData(tconn, b"f... | [
"git@maximilianhils.com"
] | git@maximilianhils.com |
98543fbb5882900b090e5f0b3020d33fca2af5ec | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/5/nlu.py | b1571c4cda4c02bec79e9ad32c239698ee0a2015 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
61a0759f1729d1380405024a598a5390eefc64c4 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_PolyTrend/cycle_12/ar_/test_artificial_128_Anscombe_PolyTrend_12__100.py | 2c8cf67edff0d9cba80a8e77c0073517f5c8c213 | [
"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 | 265 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 12, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
9890d55757758dc5f36b0ee898fbc962ff484feb | fd1c55f83eb94e32aafdda94cea4972a2d703a7d | /CorePython/corepython/c6/exe6-8.py | 41db00838d9da0553e222219f8a1aaf6d23a65a5 | [] | no_license | hxssgaa/LearnPython | b4034b5a1384cb8c68b2692bc9891d4e8aa466bd | 14d2e58f2aa9639a278c7d6e69bf493dacce3779 | refs/heads/master | 2021-01-16T19:24:17.110902 | 2017-08-13T08:04:45 | 2017-08-13T08:04:45 | 100,162,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | from os.path import dirname
from twisted.web import server, resource
from twisted.internet import reactor, endpoints
from sqlalchemy import Column, Integer, String, create_engine, exc, orm
from sqlalchemy.ext.declarative import declarative_base
PORT = 8080
DBNAME = 'pymysql'
FIELDS = ('login', 'userid', 'projid')
DSNs... | [
"hxssg@hxssgdeMacBook-Pro.local"
] | hxssg@hxssgdeMacBook-Pro.local |
cf157fad6038b8dff4daed11642d3d2f26cecc7d | 6b1aaded6a6d7ad8133eb93f5570d087b9ecefc0 | /712.py | 56deab7ce80348e09f0507833bd34ecb676742e8 | [] | no_license | huangyingw/Leetcode-Python | 53a772e1ecf298c829c0f058faa54c420420b002 | 9513e215d40145a5f2f40095b459693c79c4b560 | refs/heads/master | 2021-07-16T10:10:02.457765 | 2020-07-01T05:35:21 | 2020-07-01T05:35:21 | 192,150,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | class Solution:
def minimumDeleteSum(self, s1, s2):
"""
:type s1: str
:type s2: str
:rtype: int
"""
l1, l2 = len(s1), len(s2)
dp = [[0]*(l2+1) for _ in range(l1+1)]
for i in range(l1):
for j in range(l2):
if s1[i] == s2[j]:
... | [
"tiant@qualtrics.com"
] | tiant@qualtrics.com |
563280918e09027342dad736965fd35cc899c528 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/vdd.py | a94f8d9dd89d5508c8d4a0424b5a329942d69669 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
45279527923f5c98cf5eacd88b8fa5671c1fbc88 | 4267039e67f496e7ce87376fbe03d894cc63442f | /schema/update_schema.py | d58721f87e214cb98a031267539d35d16d884f45 | [
"MIT"
] | permissive | DrDos0016/tf2tags | 355274418092abcf5083469697467a2486fb7e98 | ce539a8e0dfc56d37f4efd31a0b4924f7e6e9983 | refs/heads/master | 2021-05-09T02:58:53.905351 | 2019-02-21T23:30:29 | 2019-02-21T23:30:29 | 119,227,267 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,579 | py | #!/usr/bin/python
import json, os, sys
sys.path.append("/var/projects/tf2tags")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tags.settings")
from schema.models import *
from datetime import datetime
ALL_CLASS_VALUE = "0"
SLOT_OVERRIDE = {"building":"pda", "taunt":"action"}
def main():
start = str(datetime.now... | [
"doctordos@gmail.com"
] | doctordos@gmail.com |
7d83922d77e975214c19be767ddafb1bd8bf98ea | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2354/60731/318100.py | 1d998aab13a66607903622ede6a25e602ed211f6 | [] | 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 | 766 | py | l=input().split()
m=l[0]
for i in range(int(m)):
s=input()
l.append(s)
if l==['2', '3', '1', '...', '.#.'] or l==['3', '3', '1', '###', '###', '###'] or l==['3', '3', '3', '###', '#.#', '###']:
print(1)
elif l==['3', '3', '3', '.#.', '###', '#.#']:
print(20)
elif l==['11', '15', '1000000000000000000', '... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0c0ed572544bc1d7b5061455ef4cf9dbef00c6c3 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_RelativeDifference/trend_Lag1Trend/cycle_5/ar_12/test_artificial_128_RelativeDifference_Lag1Trend_5_12_100.py | 3039a8f43d680708b5a346933875a7f7c444f8f2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 280 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 5, transform = "RelativeDifference", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
a732d981fcafe2273675f8e23a6071cd7796d828 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/dhcpv6pdclientglobals/dhcpv6pdoptionset/dhcpv6pdoptiontlv/dhcpv6pdoptiontlv.py | c4e6728faa179922392414514648a9c21b60ab88 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 7,169 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
d0e5109cc637d3b592f7d278479a9b11b1af11d1 | 098fb238c84cd347449d48d5aac8b52be90510fc | /np.py | 224420ee7e3b1b3d43a1a2d55c3e462df48b7580 | [] | no_license | ayush879/python | fc7e756174f649cabcc1efaae0e2e3d8f53b54d0 | e728eccbcafef165c3675c5495998e39b291d28f | refs/heads/master | 2020-07-03T11:08:40.468665 | 2019-08-12T08:24:30 | 2019-08-12T08:24:30 | 201,888,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | import numpy as np
a=np.array([1,2,3])
print(a)
print(type(a))
a=np.array([1,2,3],dtype=complex)
print(a)
print(type(a))
a=np.array(['a','b','c'])
print(a)
print(type(a))
a=np.array([(1,2,3),(4,5,6)])
print(a)
a=np.array([1,2,3,4,5],ndmin=3)
print(a)
a=np.array([1,0,3],dtype=bool)
print(a)
a=np.array([1,0,3],dtyp... | [
"Ayushpratyay19@gmail.com"
] | Ayushpratyay19@gmail.com |
19430343b8dfc259da3f580b3ddade826c74d51f | 28b6e6a35b6591f36140b6cb907ac60c71dbcab1 | /SocialProfile/asgi.py | 44c41082adffb69bf3a6a4e7e0712b2e984c98be | [] | no_license | mahmud-sajib/Social-Profile-Rest-Api | 97c89af42439d08e730b3901fc76ac21cc3a7280 | 5c84ad847ce3303d63284a4363a2b1b4aaf76319 | refs/heads/master | 2023-03-22T09:24:00.439550 | 2021-03-15T08:18:44 | 2021-03-15T08:18:44 | 347,887,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for SocialProfile project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO... | [
"shout.mahmud@gmail.com"
] | shout.mahmud@gmail.com |
c9bef0384b363946cf88ec0833cd3aeb1b0fa6ee | dfe4a7994dd3aea675da3bbd25daf46984c6ca3e | /verilog/dv/common/python/fwnoc_tests/router/smoke.py | 91581c2cf346a46cdf74de2fe207e20953782c9b | [
"Apache-2.0"
] | permissive | Featherweight-IP/fwnoc | ee5ea5c9b5b0e8b8b42ce288b32ab6f991a54d6a | c1d8558e97fff1c125a1ef8f3519bd48735fe1a5 | refs/heads/main | 2023-04-30T13:57:34.369950 | 2021-05-22T01:48:16 | 2021-05-22T01:48:16 | 359,994,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | '''
Created on Apr 25, 2021
@author: mballance
'''
import cocotb
import pybfms
from fwnoc_bfms.fwnoc_channel_bfm import FwNocChannelBFM, FwNocPacket
@cocotb.test()
async def entry(dut):
await pybfms.init()
print("Hello")
h_bfm = FwNocChannelBFM(
pybfms.find_bfm(".*u_hi_bfm"),
pybfms.f... | [
"matt.ballance@gmail.com"
] | matt.ballance@gmail.com |
0d8a9c7faef01ada0986ce81f5cec15867940f4f | ceada1c46e6540f9066f7111f6a0387c24722f5c | /backtracking/5.1(46)permutation.py | 827736f66cae8ebc774eb0e7ff6d89c9346bd861 | [] | no_license | w5802021/leet_niuke | 556c966791e6a5e9a1a8eec61f67973aec9e56ca | 199f2b62101480b963e776c07c275b789c20a413 | refs/heads/master | 2020-06-24T03:30:19.983671 | 2019-12-08T15:46:26 | 2019-12-08T15:46:26 | 180,187,921 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,727 | py | #############################相似题目46#################### 全排列
def permutation(string):
def backtrack(first):
if first == n:
res.append(string[:])
return
for i in range(first,n):
# 字符串是一种不可变的数据类型,不能直接用数组索引修改其值
string[first], string[i] = string[i], string... | [
"w5802022@gmail.com"
] | w5802022@gmail.com |
09ab1bffc6277bb5bbf63bad8a3eb422f2497a9a | 7b3711d4c6d7284255ba0270d49d120f984bf7c6 | /problems/925_long_pressed_name.py | e7f42dc89402c7461b9f6a4f11b5a17b97523cb4 | [] | no_license | loganyu/leetcode | 2d336f30feb55379aaf8bf0273d00e11414e31df | 77c206305dd5cde0a249365ce7591a644effabfc | refs/heads/master | 2023-08-18T09:43:10.124687 | 2023-08-18T00:44:51 | 2023-08-18T00:44:51 | 177,875,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | '''
Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character will be typed 1 or more times.
You examine the typed characters of the keyboard. Return True if it is possible that it was your friends name, with some characters (possibly none... | [
"logan.yu@cadre.com"
] | logan.yu@cadre.com |
902f252f8d15e34066c587614fce008dc691b9d1 | 7800df1d49144e4eec157801fe5a56dcb803de70 | /iOS/iOS_elements.py | adff424edaff2d37c5f18b2cd407300b4a5d2678 | [] | no_license | loveiset/UItest | 41097798faf79ffb7b9aee5130df0721518bb978 | 6e4edc04417e2277508a2daf8b968825bd912b5f | refs/heads/master | 2020-03-27T10:22:16.422838 | 2018-08-23T08:17:07 | 2018-08-23T08:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,036 | py | # -*- coding: utf-8 -*-
"""所有控件集"""
"""首页"""
#创作页按钮
el_home_create = "camerta_n"
#剪辑
el_home_edit = '//XCUIElementTypeStaticText[@name="视频剪辑"]'
#拍摄
el_home_camera = '//XCUIElementTypeStaticText[@name="高清拍摄"]'
#草稿
el_home_draft = "//*/XCUIElementTypeOther[2]/*/XCUIElementTypeButton"
el_studio_draft = '//*/XCUIElementTy... | [
"lixin.zhu@quvideo.com"
] | lixin.zhu@quvideo.com |
f6e5bf04940be4f5bb90f1321ea12cc85e4f977d | 56782846ce12a4aa65c0cdd41231f82fb09bb2e2 | /python/1654.py | 1b5c752e41d30e761c287a7bbfae593afa05d648 | [] | no_license | Zigje9/Algorithm_study | 2eb7255ffae734954944e549ccaab7c4573c3b99 | a6c526b42f8c0e01daf1d699f55c9b0a78741be8 | refs/heads/master | 2023-08-14T02:08:26.395265 | 2021-09-23T01:10:31 | 2021-09-23T01:10:31 | 256,192,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import sys
K, N = map(int, sys.stdin.readline().split())
lan_list = []
for i in range(K):
lan_list.append(int(input()))
lan_list.sort()
global answer
def binary_search(left, right):
while left <= right:
mid = (left+right)//2
count = 0
for lan in lan_list:
count += (lan ... | [
"pjkwprn@gmail.com"
] | pjkwprn@gmail.com |
49b5900d104466416b70723f7aa27d8e5b57e8c1 | 48f092fd8191b0218df8605dc7125e526764e59e | /Pakages/venv/Scripts/pip-script.py | 2c311fc29e9701eb5a72954e04cfe6c6e030b071 | [] | no_license | LalityaSawant/Python-Projects | 2edb430c094fe3d6b4e706cc61f885aa07e24dff | b142708256e26867f09b3063f5f3fffa305ec496 | refs/heads/master | 2020-05-01T03:00:26.012301 | 2019-03-23T22:09:33 | 2019-03-23T22:09:33 | 177,235,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | #!C:\Users\lsawant\Documents\Learning\Python\PycharmProjects\Pakages\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.py... | [
"lalitya.sawant@gmail.com"
] | lalitya.sawant@gmail.com |
75016b734745541745706d4a4e250b18cc5852ec | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/hclhkbu_dlbench/dlbench-master/synthetic/experiments/tensorflow/fc/ffn26752l6.py | 845e0548b134fd19562d7662e6b3ea072d9c5cb8 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 4,201 | py | import tensorflow as tf
import numpy as np
from datetime import datetime
featureDim = 26752
labelDim = 26752
hiddenLayDim = 2048
numMinibatches = 100
FLAGS = tf.app.flags.FLAGS
tf.app.flags.DEFINE_boolean('logDevicePlacement', False,
"""Whether to log device placement.""")
tf.app.flags.DEF... | [
"659338505@qq.com"
] | 659338505@qq.com |
3ea6b769916355470d428796e891748bed000768 | fcc845452a981eeca26e2fbc89192afac0e92bd8 | /hebrew_numbers/tests.py | 5b3aa1f693b4e2315534feb7c8cd675622eaa2b7 | [
"MIT"
] | permissive | enochian/python-hebrew-numbers | 358e2a9be49449fefbf4b04823d42bb7ccc90421 | a64e4b1059a66d81ddde1f1bbb46efd21bd9344b | refs/heads/master | 2020-04-05T23:23:14.777532 | 2015-05-25T19:11:34 | 2015-05-25T19:11:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # -*- coding: utf-8 -*-
import unittest
from . import gematria_to_int
class Test(unittest.TestCase):
def test(self):
for heb, num in (
(u'א', 1),
(u'ב', 2),
(u'אב', 3),
(u'קצ"ח', 198),
(u'אאא', 3),
):
self.assertEqual(gematr... | [
"ori@uumpa.com"
] | ori@uumpa.com |
d88a83c9cf00a0b73bcdd85cd861f65d413a2301 | 0f40272f221acd09932e5e4b7f6287300526c902 | /Programmers/Python/Code/두 정수 사이의 합.py | 6fee8a2acc60d88b57c65e22f72c7d004524dcce | [] | no_license | wansang93/Algorithm | 60cfa0d5a3cda7e41096cb22537a35c4789fc9e8 | 65425d1bf8e49cc3a732680c0c1030a2dc0333ca | refs/heads/master | 2023-08-05T04:35:44.128549 | 2023-07-29T17:57:00 | 2023-07-29T17:57:00 | 225,189,092 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # 풀이1
def solution(a, b):
answer = 0
if a == b:
answer = a
elif a < b:
for i in range(a, b+1, 1):
answer += i
else:
for i in range(b, a+1, 1):
answer += i
return answer
# 풀이2
def solution2(a, b):
answer = 0
if a > b:
a, b = b, a
fo... | [
"wansang93@naver.com"
] | wansang93@naver.com |
a9fbe74250fab0c22cf11e7017c745e569ceba0c | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /shortest-path-in-binary-matrix/solution.py | 920b515c62274ffb17d24e7053904d30731dd741 | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | class Solution(object):
def shortestPathBinaryMatrix(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
if grid[0][0] == 1:
return -1
X = [(0, 0)]
visited = {(0, 0): 0}
arounds = [(-1, -1), (-1, 0), (0, -1), (1, -1), (1, 0), (-1, ... | [
"songlin.lin@yundata.com"
] | songlin.lin@yundata.com |
e4fb91e3a7e72d12853919e20acfb9dc188f5d71 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3763.py | 4467a76fb8e3f6f079371358f364f63ffc19ac7c | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,333 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
017adb158242bc7d4dc297899aac76e035a577b7 | d8a541a2953c9729311059585bb0fca9003bd6ef | /functions/recursive power.py | 7ed681c66ad22f1da7646195b523826b3661a9bc | [] | no_license | grigor-stoyanov/PythonAdvanced | ef7d628d2b81ff683ed8dd47ee307c41b2276dd4 | 0a6bccc7faf1acaa01979d1e23cfee8ec29745b2 | refs/heads/main | 2023-06-10T09:58:04.790197 | 2021-07-03T02:52:20 | 2021-07-03T02:52:20 | 332,509,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | def recursive_power(num, pow):
if pow == 1:
return num
return num*recursive_power(num, pow - 1)
print(recursive_power(2, 10))
print(recursive_power(10, 100))
| [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
af7f724180b339b6a1940063dbd66435e7ba3f32 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_56/203.py | 71fc622832e7b07c6005d0c5192a7e8d669be8a2 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,584 | py | def check_k(board, rb, K):
for row in board:
if rb != 1:
if 'R'*K in row:
rb += 1
if rb != 2:
if 'B'*K in row:
rb += 2
if rb == 3:
break
return rb
T = int(raw_input())
for i in range(T):
[N, K] = map(i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c6aa83f58f1816d223529a5793539aaf3c3f9dfb | 3af94f07461157a49a53688c8ee1a3ef21a77562 | /encryption_util.py | 7d67986b62176a6a052ced699685226fe11fc339 | [
"Apache-2.0"
] | permissive | borisuvarov/snowflake-connector-python | 76d173becfef5496c38fb1b4bb137d54667c5e26 | 26738920ccf008f3734b4c882d82d8c7feb92e9a | refs/heads/master | 2020-03-28T00:19:57.781733 | 2018-08-30T01:01:31 | 2018-08-30T18:43:14 | 147,398,895 | 0 | 0 | Apache-2.0 | 2018-09-04T19:10:06 | 2018-09-04T19:10:06 | null | UTF-8 | Python | false | false | 5,717 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2012-2018 Snowflake Computing Inc. All right reserved.
#
import base64
from logging import getLogger
import json
from Cryptodome.Cipher import AES
import os
import tempfile
from collections import namedtuple
from .compat import (PKCS5_PAD, PKCS5_UNPAD, ... | [
"smtakeda@gmail.com"
] | smtakeda@gmail.com |
1dd86165f9a75a9f4993b4a07ce69d0531ecf2b0 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/collective.fingerpointing-1.1b1-py2.7.egg/collective/fingerpointing/subscribers/iterate_logger.py | 4af088f874477354e24bd5e475a922c62129c719 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | # -*- coding: utf-8 -*-
from collective.fingerpointing.config import AUDIT_MESSAGE
from collective.fingerpointing.interfaces import IFingerPointingSettings
from collective.fingerpointing.logger import log_info
from collective.fingerpointing.utils import get_request_information
from plone import api
from plone.api.exc i... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
ab7c63cd85f64918d012a643cde4dd01586c0dcb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R2/benchmark/startCirq85.py | 1499a9d14bbf6a4bf00fafd6aeb0c36a232c232c | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=3
# total number=13
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f9521cef8bef560513178bb6fbf03183a64340c4 | df20dc807d2d9ba666377a2a23cbe80b268c75cd | /0 Python Fundamental/24.dzate_convert_UTC.py | 3208a615dcd7236f0f384f4c340eb76069f8c449 | [] | no_license | stevenwongso/Python_Fundamental_DataScience | e9bb294017d0fcc05e2079f79f880ac8be726e11 | 706c61c8bdfcec1461328fa7a58a55a2d0f9f2d8 | refs/heads/master | 2021-01-04T07:32:11.856979 | 2020-02-13T05:18:06 | 2020-02-13T05:18:06 | 240,449,486 | 0 | 1 | null | 2020-02-14T07:12:16 | 2020-02-14T07:12:15 | null | UTF-8 | Python | false | false | 235 | py | from datetime import datetime
from dateutil import tz
from_zone = tz.gettz('UTC')
to_zone = tz.gettz('Asia/Jakarta')
utc = datetime.utcnow()
print(utc)
utc = utc.replace(tzinfo=from_zone)
local = utc.astimezone(to_zone)
print(local) | [
"lintangwisesa@ymail.com"
] | lintangwisesa@ymail.com |
ce6ef68d2902d787190efb88a6212ddb10c0b761 | 284a4cdc0e682410dffd715bbb6120f84acfbb31 | /DOM/data/t.py | 314c8729f4e07366bc75ecb6e53649f3b86fca71 | [] | no_license | cash2one/BaiduIntern | b7b06fccb910fc487f1b7662931a1e419688765f | 25778ffce6ab0b739c2b3c966a270b9ce20f7ceb | refs/heads/master | 2021-01-11T21:17:09.906481 | 2016-10-23T14:30:26 | 2016-10-23T14:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | # encoding: utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
s = '''
<pre id="best-content-2489572061" accuse="aContent" class="best-text mb-10" style="min-height: 55px;">电影原声带专辑:《One Day (Original Motion Picture Soundtrack)》<br>发行时间: 2011年08月16日<br>专辑收录了电影中的插曲曲目:<br>01 Sparkling Day-- Elvis Costello<br>... | [
"w51141201062@163.com"
] | w51141201062@163.com |
00c142f06f8ee2fdf159eef61a5e332028a4766b | eca14fd23851cf4e5f1085cbf2de5835ed9a3422 | /tests/test_visitors/test_filenames/test_module/test_module_underscore_number.py | 9fd98b4afb360e1c976e2c2c6e5a63ea25c2f6ae | [
"MIT"
] | permissive | AlekhyaViswanath/wemake-python-styleguide | 1e2de7f4e94753e7e72a4f4cc68412c7c33a05a4 | bfd3a13efe7534e155dd325f419d884c4c667a15 | refs/heads/master | 2021-09-26T08:50:29.479616 | 2018-10-28T11:42:58 | 2018-10-28T11:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # -*- coding: utf-8 -*-
import pytest
from wemake_python_styleguide.violations.naming import (
UnderscoredNumberNameViolation,
)
from wemake_python_styleguide.visitors.filenames.module import (
WrongModuleNameVisitor,
)
@pytest.mark.parametrize('filename', [
'version_2.py',
'custom_2_version.py',
])... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
4695a758bcf616f2427a843f5d671f538ba8dcc0 | c499bb75ac78760a044b7c2d43f62aee43523921 | /testing/web-platform/tests/tools/lint/lint.py | 8a6aadf6da11db64e267c152fa3203ca975e5962 | [
"LicenseRef-scancode-w3c-03-bsd-license",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gbraad/gecko-dev | 8814e99ca54c514e8c1186a7f84aad246a19d1b1 | dd4db53ff621c18cb7a0999fec0b798ae0cc4caa | refs/heads/master | 2023-05-02T23:58:01.982715 | 2015-08-24T02:18:47 | 2015-08-24T02:18:47 | 41,293,502 | 0 | 0 | NOASSERTION | 2023-04-16T17:43:34 | 2015-08-24T09:09:34 | C++ | UTF-8 | Python | false | false | 9,724 | py | import os
import subprocess
import re
import sys
import fnmatch
from collections import defaultdict
from .. import localpaths
from manifest.sourcefile import SourceFile
here = os.path.abspath(os.path.split(__file__)[0])
repo_root = localpaths.repo_root
def git(command, *args):
args = list(args)
proc_kwargs... | [
"james@hoppipolla.co.uk"
] | james@hoppipolla.co.uk |
050476bd109dabbf8b8bad94a3b62b2c9aa62e4a | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/platform/ext-runtime/java/bin/detect | dce5c03a176ab5cccc0c641f77c1a00ba907866c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 3,394 | #!/usr/bin/python
# Copyright 2015 Google Inc. All Rights Reserved.
#
# 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 ap... | [
"toork@uw.edu"
] | toork@uw.edu | |
4740e4f2d3fa8c7320397e33af32b0cf17a0f47f | 4a5d9f129d5129b34c55171c99f83f0893ae5c11 | /archives/migrations/0007_remove_categorie_lien.py | bcb6efd755fb7528cfb5a830a0bbfdcea12e6ac4 | [
"MIT"
] | permissive | fromdanut/syndicat-riviere | ec097cf9bf9aec8829069a2a93d4750a36d87a39 | 0fd099524a2a79d0932dbf8b87f8232d470308ad | refs/heads/master | 2018-09-04T19:14:40.490656 | 2018-06-04T10:52:21 | 2018-06-04T10:52:21 | 103,665,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-15 16:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('archives', '0006_categorie_lien'),
]
operations = [
migrations.RemoveField(
... | [
"remidelannoy@hotmail.com"
] | remidelannoy@hotmail.com |
b2613fde629e0de8a27d9d732803554ff6a1a394 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5640146288377856_1/Python/Tomtomgo/batleship.py | 172c194953af4493a49cc2e2d9a737f4547a9e42 | [] | 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 | 1,014 | py |
# coding: utf-8
# In[1]:
# Template
# In[2]:
get_ipython().magic(u'matplotlib inline')
import numpy as np
import matplotlib.pyplot as plt
from __future__ import division
import time, random, re, copy , pickle
from operator import itemgetter
from math import *
# In[ ]:
# In[12]:
#reading file
f_name = 'A-s... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
77ee8fdcae9320b472e5f0ea0e43f58eb5554a14 | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7_clickhouse/bluedon/bdwafd/newscantools/plugins/JBossCheckJspScript.py | e675c23cab6d9382cb5d63db4773227ed37fa825 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
def run_domain(http,ob):
try:
result=[]
detail = u""
detail = detail.encode('utf8')
domain=ob['domain']
url="zecmd/zecmd.jsp"
geturl="%s://%s%s%s"%(ob['scheme'... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
eb2e1f8dadd4ad913e618cfd2a78bba360dd5dfb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/68/usersdata/170/38385/submittedfiles/crianca.py | fef03dea024c14efc8f505cda3ee296c5501d9cf | [] | 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 | 351 | py | # -*- coding: utf-8 -*-
P1=float(input(´Peso da criança do lado esquerdo:'))
C1=float(input(´Comprimento da gangorra do lado esquerdo:'))
P2=float(input(´Peso da criança do lado direito:'))
C2=float(input(´Comprimento da gangorra do lado direito:'))
if (P1*C1==P2*C2):
print('0')
if (P1*C1>=P2*C2):
print('-1')
e... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
7e5b6c73a23309bc97305cacf87a12b525f34a33 | 08f89d88585fee98118fa1d42b59519d13ecbf17 | /tests/hwsim/test_p2p_invitation.py | fd7d3a4f6f89dd24d17fee898a122a8d08867efb | [
"BSD-3-Clause"
] | permissive | rzr/wpa_supplicant | eb982f7b7d192999332c712734f8b33df04657c6 | 3f7ac05878ba965e941f2b5b80b8cb744e63f506 | refs/heads/master | 2021-01-18T10:37:36.701639 | 2014-10-13T07:40:08 | 2014-10-13T09:24:17 | 31,964,766 | 0 | 0 | NOASSERTION | 2019-08-07T21:56:49 | 2015-03-10T15:19:59 | C | UTF-8 | Python | false | false | 6,739 | py | # P2P invitation test cases
# Copyright (c) 2013, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import logging
logger = logging.getLogger()
import hwsim_utils
def test_p2p_go_invite(dev):
"""P2P GO inviting a client to join"""
... | [
"j@w1.fi"
] | j@w1.fi |
c742b1c4e35872fe32234def3a92cee8cf58cd23 | fc5fa8501e8a62291a48c82611e1b74b961ca561 | /clustering_normalized_cuts/data_loader.py | 020a92cf85a1d8b59d5227d93cb401c19b060f9d | [
"Apache-2.0"
] | permissive | hitesh-hk/google-research | fa3d3e31cce995fa6da89322dab4993bf1c1ead8 | ddc22300c4cb3223654c9a981f892dc0f6286e35 | refs/heads/master | 2021-02-17T18:57:31.267570 | 2020-01-17T14:49:25 | 2020-01-17T14:54:27 | 245,119,290 | 1 | 1 | Apache-2.0 | 2020-03-05T09:24:01 | 2020-03-05T09:24:00 | null | UTF-8 | Python | false | false | 11,618 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
1082f57481e9e3c50cfc5a183154d081e7207108 | 500bca3e22bd0c30c79b74918e9847742b3c428e | /sdk/python/foundation-models/system/inference/text-generation/llama-files/score/default/score.py | 62b70c791997c59f18db722ae0c86ea605cc13ed | [
"MIT"
] | permissive | Azure/azureml-examples | 2304c862fd2e36e6640ecc4d09f69c5ed93b48ab | e5f7b247d4753f115a8f7da30cbe25294f71f9d7 | refs/heads/main | 2023-08-31T00:10:14.107509 | 2023-08-30T17:29:22 | 2023-08-30T17:29:22 | 289,334,021 | 1,219 | 1,074 | MIT | 2023-09-14T16:00:55 | 2020-08-21T18:04:26 | Jupyter Notebook | UTF-8 | Python | false | false | 26,194 | py | import asyncio
import json
import logging
import numpy as np
import os
from copy import deepcopy
from concurrent.futures import ThreadPoolExecutor
from inference_schema.parameter_types.abstract_parameter_type import (
AbstractParameterType,
)
from inference_schema.parameter_types.numpy_parameter_type import NumpyP... | [
"noreply@github.com"
] | Azure.noreply@github.com |
1e93ecc9fab85773160abd1a3ca29424325e3788 | 1e3e731bc1331a9ec35d3c74070ca931f699ea36 | /五月/mysite/liruixiong_app01/urls.py | 86463e7dc7572ad33eadebd4fcf056149e8f647c | [] | no_license | liruixiong/all | 63180a8503b3f72156f041424db79f7be783b837 | 3fcb7280f7bffa2b5b8be2f06c1417a73da113eb | refs/heads/master | 2020-04-27T16:40:28.550885 | 2019-03-08T07:56:06 | 2019-03-08T07:56:06 | 174,490,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.urls import path
from.import views
urlpatterns = [
#path('', views. index),
path('baby/',views.baby)
] | [
"1356703763@qq.com"
] | 1356703763@qq.com |
e6f27b280c4c29f5bed2b851fa6e066c7c0b1391 | d64a4e2e983893633fdbedc407cf0df5a7c27b0a | /django/17workshop/stus/models.py | 9c6def714c28a4e235053225e856960abec29ca3 | [] | no_license | hgkang9/TIL_C9 | b60fa0a228093b542fcc7c57a3174cd6f8684526 | ac06a2a22d23b2dcd8c3d9ccdaea1ed819a5b5a7 | refs/heads/master | 2020-04-17T17:17:55.475230 | 2019-05-02T03:08:37 | 2019-05-02T03:08:37 | 166,777,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | from django.db import models
# Create your models here.
class Student(models.Model): #모델의 이름은 테이블의 이름
name = models.CharField(max_length=100) #최대길이 필수적으로 정해줘야 한다
email = models.CharField(max_length=100)
birthday = models.DateField()
age = models.IntegerField()
def __str__(self):
return... | [
"hgkang822@gmail.com"
] | hgkang822@gmail.com |
8d7c3ad314126891073f4e5b1a81ffbf8067a449 | b8e5ac17df3b11b2e69119816c3e499f513f284b | /dailyfresh_13/apps/goods/models.py | 97d7bc995f5f2c2c3973ec355f7de489852eaa19 | [] | no_license | 1071183139/only-one | f2fa63d0b7228fc4e35423aeab6cd99a55bcd826 | bf67db02c829b49f61710478e35fdb0e1f2d845d | refs/heads/master | 2020-08-28T13:06:37.795745 | 2019-10-26T13:00:24 | 2019-10-26T13:00:24 | 217,708,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,006 | py | from django.db import models
from utils.models import BaseModel
from tinymce.models import HTMLField
from django_celery_results.models import TaskResult
class GoodsCategory(BaseModel):
"""商品类别表"""
name = models.CharField(max_length=20, verbose_name="名称")
logo = models.CharField(max_length=100, verbose_nam... | [
"1071183139@qq.com"
] | 1071183139@qq.com |
306f5c342940b107d8f4bd88eac535c821a71188 | f9608fc044cdf00274bde3e6056682b6db2bcb3f | /ewords/migrations/0018_auto_20161127_1725.py | d97bc2e62d7d5a3fda4c1ea943445971328395df | [] | no_license | kuznetsovav/ewords | da26816ea4281bc6d62d4cb9cde68375aa3c320b | b6d279c7ac7a23a366392ce68d89d879ab42b634 | refs/heads/master | 2021-01-15T15:36:18.671837 | 2016-12-10T14:29:41 | 2016-12-10T14:29:41 | 52,686,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ewords', '0017_mapuserquote'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
nam... | [
"you@example.com"
] | you@example.com |
b894445ba5a0450b01bea67341591b9a5c759588 | c13f85d2f0a3e5d2a10190136a0e7911a98d3198 | /redturtle/bandi/content/bandofolderdeepening.py | bfde222633e204678ebbacbe47908ec335a75e2f | [] | no_license | RedTurtle/redturtle.bandi | d5b65c1861fe1f04033a82ca8f12b4c730ee104f | b74c8335e56413d974dc939efdd730182a428a31 | refs/heads/master | 2023-07-06T10:42:56.654117 | 2023-06-27T14:52:50 | 2023-06-27T14:52:50 | 244,642,902 | 0 | 0 | null | 2023-06-23T15:29:28 | 2020-03-03T13:27:26 | Python | UTF-8 | Python | false | false | 280 | py | # -*- coding: utf-8 -*-
from plone.dexterity.content import Container
from redturtle.bandi.interfaces.bandofolderdeepening import IBandoFolderDeepening
from zope.interface import implementer
@implementer(IBandoFolderDeepening)
class BandoFolderDeepening(Container):
""" """
| [
"andrea.cecchi85@gmail.com"
] | andrea.cecchi85@gmail.com |
3e67fd7ce1cf0438460b8b2f6ed4dea3d2c87a54 | 44fb2fe531a0ff2144e4f0c2d4dd611f86f93cfb | /FuckLeetcode/89. 格雷编码.py | dd07d809e1d92fedc02b61fe08fa36f710d52488 | [] | no_license | Alex-Beng/ojs | d9f1a49f76dc6b6429951330af526e0df2152be8 | 26a467dfe8acd8ae4be0cd2784d79eebf09c06ce | refs/heads/master | 2023-07-12T05:36:36.176271 | 2023-07-07T15:09:39 | 2023-07-07T15:09:39 | 152,544,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | class Solution:
def grayCode(self, n: int) -> [int]:
codes = ['0', '1']
for _ in range(n-1):
codes = ['0'+i for i in codes] + ['1'+i for i in codes][::-1]
# print(codes)
return [int(t, 2) for t in codes]
s = Solution()
print(s.grayCode(2)) | [
"599267065@qq.com"
] | 599267065@qq.com |
13e8f684ec9724767ea1664de6efb6510a8c4862 | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /__REEEEEEEEEEEEEEEEEEEEEEAD/MASTERPIECE/baselines/baselines/her/her.py | 514d3a40c55ea17fa3887adc7abae4b27419a27c | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 7,695 | py | import os
import click
import numpy as np
import json
from mpi4py import MPI
from baselines import logger
from baselines.common import set_global_seeds, tf_util
from baselines.common.mpi_moments import mpi_moments
import baselines.her.experiment.config as config
from baselines.her.rollout import RolloutWor... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
6f0a7e99e9414037d66c86c2ad6f1e7cc38811b7 | b5fb2aa4c2d05b9f9e44583699fe7b2c3d250afe | /api/serializers.py | 34a95e371b4ff80273b6ca70effdeab8badb553a | [
"MIT"
] | permissive | techacademypython/django_api | e91766f719db092548c8a69ee62d19063428199e | 9a1a0209d4ee24ed62695c07ab9c3c72f8afc09f | refs/heads/master | 2022-12-07T20:20:28.500738 | 2019-08-09T20:33:45 | 2019-08-09T20:33:45 | 201,288,780 | 0 | 0 | MIT | 2022-11-22T04:10:57 | 2019-08-08T15:43:46 | Python | UTF-8 | Python | false | false | 237 | py | from rest_framework import serializers
from django.contrib.auth import get_user_model
User = get_user_model()
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ["id", "username"]
| [
"munisisazade@gmail.com"
] | munisisazade@gmail.com |
acddb02bb946b7fbe7b09e2393d4e76bf468597c | cda43bf6a84f7e55fab26aa70cda934683a51fe5 | /NikResearch/train.py | 0951dc1835abf7f78aa7de4a33e0db2640dee565 | [] | no_license | nikolaosdionelis/NeuralNetworksNNs | abb55622882e31c8d130a8986868b3d19ede186f | 8a217490ad5bb3f7fccf4002c6b43a06c1e562fc | refs/heads/master | 2022-11-13T00:50:23.578197 | 2020-07-12T18:52:20 | 2020-07-12T18:52:20 | 279,042,013 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 136,924 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torchvision.utils as vutils
import seaborn as sns
import os
import pickle
import math
import utils
import hmc
import data
import datasets
import torchvision
import torchvision.transforms as transforms
from ... | [
"noreply@github.com"
] | nikolaosdionelis.noreply@github.com |
84ef6e522ca07f9bd8fd17159481d0b9542a0544 | 430791dcde1596a554984e38c554a367b85c9951 | /exam_preparation/sixteen_aug/skeleton/skeleton/project/hardware/heavy_hardware.py | 35bbe9d0a6a0ab7dbbb7ef92af29024b3fc3e928 | [] | no_license | mialskywalker/PythonOOP | 5fa8606cfe7c9ceb72ada8e62ff89513bac10d32 | e7f2d5f46983e9c8c50d9356497fcc9ed9f6d4dc | refs/heads/master | 2023-04-06T05:43:13.408741 | 2021-04-03T13:22:13 | 2021-04-03T13:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from exam_preparation.sixteen_aug.skeleton.skeleton.project.hardware.hardware import Hardware
class HeavyHardware(Hardware):
TYPE = "Heavy"
def __init__(self, name, capacity, memory):
super().__init__(name, HeavyHardware.TYPE, int(capacity * 2), int(memory * 0.75))
| [
"kalqga123@gmail.com"
] | kalqga123@gmail.com |
8507972e758a2ffda7875cf70a47ca39af7ca613 | 25403dd331c6f273190461ed57c12c9f633853b9 | /chiton/rack/migrations/0001_initial.py | 31f3d6f0bfad0a0b22c8a13ff31ba722ab26db41 | [] | no_license | justinlocsei/chiton | d1a91a57ff90f16aa375d0f4c6a0b093a66d2d38 | 6ca38962d08a6ca154434a1f78235155710ffeec | refs/heads/master | 2021-03-27T15:10:07.811691 | 2017-01-30T01:18:33 | 2017-01-30T01:18:33 | 48,400,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,090 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-13 23:35
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('chiton_closet', '0001_initial'),
]
... | [
"justin.locsei@gmail.com"
] | justin.locsei@gmail.com |
15e347d96a7e4d39c016de7ca752be6150a212dd | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /삼성기출/마법사 상어와 토네이도.py | 9564bf5469ef5c286ea030bf590debd057745e83 | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | from copy import deepcopy
dx=[0,1,0,-1]
dy=[-1,0,1,0]
xdx=[[-1,1,-1,1,-1,1,-2,2,0,0],[-1,1,-1,1,-1,1,-2,2,0,0],[0,0,1,1,2,2,1,1,3,2],[0,0,-1,-1,-2,-2,-1,-1,-3,-2]]
ydy=[[0,0,1,1,2,2,1,1,3,2],[0,0,-1,-1,-2,-2,-1,-1,-3,-2],[-1,1,-1,1,-1,1,-2,2,0,0],[-1,1,-1,1,-1,1,-2,2,0,0]]
percent=[1,1,7,7,10,10,2,2,5]
def change_dir... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
002a91710aa9f06ead48f2aec785a8a4b54b76e5 | 19a32440205b2caeec67c73c10d917b5fb30a86a | /test/test_filepool_default_policy_action.py | b5436fc1ab3ba35f56a25f49fde2e4c54cab9222 | [
"MIT",
"Apache-2.0"
] | permissive | marrotte/isilon_sdk_python | 480e84312f5924a506aeb09c9c7cae79a2b9b7f4 | 91039da803ae37ed4abf8d2a3f59c333f3ef1866 | refs/heads/master | 2020-03-23T07:31:40.376316 | 2016-06-07T23:44:31 | 2016-06-07T23:44:31 | 141,277,076 | 1 | 0 | MIT | 2018-07-17T11:02:08 | 2018-07-17T11:02:08 | null | UTF-8 | Python | false | false | 1,355 | py | # coding: utf-8
"""
Copyright 2016 SmartBear Software
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 l... | [
"Alex.Pecoraro@isilon.com"
] | Alex.Pecoraro@isilon.com |
9edfac2e16f5d692d450651acb5332712b152330 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2533/60761/233761.py | 9f9329bfbfcf17065b62f5e278b2563d76beca4f | [] | 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 | 200 | py | A=input("")
A=A.replace('[',"")
A=A.replace(']',"")
A=list(map(int,A.split(",")))
result=[]
for a in A:
if(int(a)%2==0):
result.insert(0,a)
else:
result.append(a)
print(result) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
60098f76f2026ace0ea1b6b8d046f36e35802076 | f6bc15034ee1809473279c87e13cc3131bc3675c | /MangAdventure/converters.py | fce7028342bdc207c06fd9f79f65d52c89695964 | [
"MIT"
] | permissive | mangadventure/MangAdventure | d92e4c184d1ad91983cf650aa7fa584ba9b977ce | e9da91d0309eacca9fbac8ef72356fe35407b795 | refs/heads/master | 2023-07-20T04:54:49.215457 | 2023-07-14T15:34:20 | 2023-07-14T15:34:20 | 144,012,269 | 70 | 16 | MIT | 2022-08-13T12:22:39 | 2018-08-08T12:43:19 | Python | UTF-8 | Python | false | false | 872 | py | """
`Path converters`_ used in URL patterns.
.. _`Path converters`:
https://docs.djangoproject.com/en/4.1/topics/http/urls/#path-converters
"""
class FloatConverter:
"""Path converter that matches a float number."""
#: The pattern to match.
regex = r'\d+(\.\d+)?'
def to_python(self, value: str) ... | [
"chronobserver@disroot.org"
] | chronobserver@disroot.org |
4c86fb50f004b4992fb7040f11684496de2f0639 | 3ab66f3db9fabd54039b72905aa4b985b00f9d8d | /inheritence/project/soul_master.py | abc869934e51db274806786c1d25b2d3334e49ea | [] | no_license | grigor-stoyanov/PythonOOP | 1aade7e62d3d4800fe8a32423b74f8d133d7b17a | 68c30a2cbca8a9f2dc3989a769b52508a222e3f4 | refs/heads/main | 2023-07-09T23:23:49.389160 | 2021-08-24T21:00:39 | 2021-08-24T21:00:39 | 382,026,016 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from project.dark_wizard import DarkWizard
class SoulMaster(DarkWizard):
def __init__(self, name, level):
super().__init__(name, level)
def __str__(self):
return super().__str__()
| [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
e38103288ee76ec7c703c77cc2ec1feb56518eb0 | 7113651d18cc80e0f05682aef5302fb7a3e816c5 | /examples/prompts/history/persistent-history.py | a80ae1468ce77bb595e3c785485d26419f8ddc17 | [
"BSD-3-Clause"
] | permissive | vsajip/python-prompt-toolkit | 74bbcd4d313e553bf7ebd1ba5c2da4a8c2843715 | 3dd592367e5d0605dbf639f9d4ee944be8abae54 | refs/heads/master | 2020-08-27T05:49:25.509206 | 2019-10-20T13:51:01 | 2019-10-20T13:51:01 | 217,261,240 | 1 | 0 | BSD-3-Clause | 2019-10-24T09:25:40 | 2019-10-24T09:25:40 | null | UTF-8 | Python | false | false | 729 | py | #!/usr/bin/env python
"""
Simple example of a CLI that keeps a persistent history of all the entered
strings in a file. When you run this script for a second time, pressing
arrow-up will go back in history.
"""
from prompt_toolkit import PromptSession
from prompt_toolkit.history import FileHistory
def main():
our... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
f38a2bdcb9a989df1a2e90cc280963c71171ac7b | 34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d | /Python/python_and_fortran/example6/using_plain_python.py | 37a910a4ec2ff5e1c1c41248b49c2bece16462ce | [
"MIT"
] | permissive | bhishanpdl/Programming | d4310f86e1d9ac35483191526710caa25b5f138e | 9654c253c598405a22cc96dfa1497406c0bd0990 | refs/heads/master | 2020-03-26T06:19:01.588451 | 2019-08-21T18:09:59 | 2019-08-21T18:09:59 | 69,140,073 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/python3
"""
Pure Python Scientific Hello World module.
"""
import math, sys
def sine_add1(r1, r2):
s = math.sin(r1 + r2)
return s
def sine_add2(r1, r2):
s = math.sin(r1 + r2)
print 'Hello, World! sin(%g+%g)=%g' % (r1,r2,s)
| [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
f17f0ff690e08197dbab4f5f60082672d4cfb74e | 2c5e93e1a67a9d3290db71e732bd209aad2d433e | /.history/poll/views_20191028183843.py | 54d0a78b0f6761362957caa9adf7d08f32eeb01e | [] | no_license | rabar1995/pollisterjango | a727a85e41350037d87d99bf1948dafcf69f0726 | 6cf06ff3ed308945f0a994e6d3a2fce29d6b3842 | refs/heads/master | 2020-09-01T19:45:01.197030 | 2019-11-01T18:38:33 | 2019-11-01T18:38:33 | 219,040,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | from django.shortcuts import render
from rest_framework.viewsets import ModelViewSet
from .models import *
from .serializers import *
from rest_framework.decorators import api_view
from django.db.models import Count
class QuestionViewSet(ModelViewSet):
queryset = Question.objects.all()
serializer_class = Quest... | [
"="
] | = |
896cbfff14f76f3d038f88b1a6d5f25031452b5e | f850e0f75a76c500f5ba8a9ab6fa6d5f40d22b23 | /pyecharts_demo/demos/Pie/pie_scroll_legend.py | 2cffdc8b2f6ad2e776e8f317d8af788f60a7d4da | [
"MIT"
] | permissive | jay20161013/pywebio-chart-gallery | 805afa2643b0d330a4a2f80f1e0a8827e8f61afe | 11fd8a70b2e9ff5482cf5924b110a11f3469edfc | refs/heads/master | 2023-03-20T01:58:30.979109 | 2021-03-18T12:48:31 | 2021-03-18T12:48:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | from pywebio.output import put_html
from pyecharts import options as opts
from pyecharts.charts import Pie
from pyecharts.faker import Faker
c = (
Pie()
.add(
"",
[
list(z)
for z in zip(
Faker.choose() + Faker.choose() + Faker.choose(),
Fa... | [
"wang0.618@qq.com"
] | wang0.618@qq.com |
986c0c3593aa673b4997188c5c1e4dafc750392f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634697451274240_0/Python/Jasonzhang/solution.py | 3042550e138188e74659c827372f869129a45598 | [] | 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 | 1,164 | py | def revenge(pancake):
# print pancake
length = len(pancake)
if pancake == '-':
return 1
elif pancake == '+':
return 0
else:
if pancake[-1] == '-':
if pancake[0] == '-':
return 1 + revenge(flip_pancake(pancake))
else:
... | [
"root@debian"
] | root@debian |
cf4abbc7885de3456172b41b33d83b650e48ecc1 | f504253210cec1c4ec6c3ea50a45564db7d6cd7f | /prettyqt/core/bytearraymatcher.py | 26ff77668e2f53176cf38e204cdc6bfd6c6aa6af | [
"MIT"
] | permissive | phil65/PrettyQt | b1150cb4dce982b9b8d62f38f56694959b720a3e | f00500d992d1befb0f2c2ae62fd2a8aafba7fd45 | refs/heads/master | 2023-08-30T21:00:08.905444 | 2023-08-17T12:24:45 | 2023-08-17T12:24:45 | 177,451,205 | 17 | 5 | MIT | 2020-08-15T22:21:18 | 2019-03-24T18:10:21 | Python | UTF-8 | Python | false | false | 473 | py | from __future__ import annotations
from prettyqt.qt import QtCore
from prettyqt.utils import get_repr
class ByteArrayMatcher(QtCore.QByteArrayMatcher):
"""Holds a sequence of bytes that can be quickly matched in a byte array."""
def __repr__(self):
return get_repr(self, self.get_pattern())
def ... | [
"philipptemminghoff@googlemail.com"
] | philipptemminghoff@googlemail.com |
a088a7b60d95c094cbced0428402b89e02649547 | e04dbc32247accf073e3089ed4013427ad182c7c | /ABC179/A.py | 0f95c8ea4edf8916898705f44ba4dabd3a63961c | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | S = input()
if S[-1]=="s":
print(S+"es")
else:
print(S+"s") | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
08733d7024a741b046813736a978659420127a9d | 31780af7a5558523def1aae5f25df3e0b084be9b | /Ex24.py | 39d6be137e3c3933242b33af488e6faaa6ba3227 | [] | no_license | sevilaybayatli/PYTHS19 | 1796615ff939f2e98ce657feeaa3efd47a2e66c6 | ae0607e215a0d8205475d124c0362c39881e5eda | refs/heads/master | 2020-07-23T16:12:17.922548 | 2020-03-23T22:03:00 | 2020-03-23T22:03:00 | 207,624,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #Question 4: Pick a random charcter from a given String
import sys
import random
sst= "sevilay"
CHAR= random.choice(sst)
print("random character form text: ", CHAR)
| [
"sevilaybayatli@gmail.com"
] | sevilaybayatli@gmail.com |
d596cd70b46a1f43e4af8e9d0d2c83b0a82c4dcd | 1cfb505cfab0962990da33f5e5cd6e6ef5958bbf | /setup_w_cython.py | c722a6d10ea59fefcadfe1c9fc740cb2fb8af0a3 | [] | no_license | lchmo444/MACS | e04470baa6f6b6f39147e805eda8bbf6de3cb9e1 | a0603c7dfaf8d03aace87d5b799bd7d45c564079 | refs/heads/master | 2021-01-17T21:53:55.592563 | 2016-05-16T20:41:38 | 2016-05-16T20:41:38 | 59,175,056 | 1 | 0 | null | 2016-05-19T05:01:53 | 2016-05-19T05:01:53 | null | UTF-8 | Python | false | false | 7,028 | py | #!/usr/bin/env python
# Time-stamp: <2016-03-09 13:36:00 Tao Liu>
"""Description:
Setup script for MACS -- Model Based Analysis for ChIP-Seq data
Use this when you need Cython regenerate .c files.
Copyright (c) 2008,2009,2010,2011 Tao Liu <taoliu@jimmy.harvard.edu>
This code is free software; you can redistribute... | [
"vladimir.liu@gmail.com"
] | vladimir.liu@gmail.com |
7ba5e25f817e66f8f55f59767181c90cd1b181cd | d88f9acfe09d79f06cf251b8cbbb012b55d99f39 | /MatplotlibTasks/Contour3d_demo3.py | 1a095f5fe5777e986150ae0a29444d64fbe4fdf9 | [] | no_license | Twishar/DataAnalysis | 535beb795e30b8ac07767a61f1ebfbc60546271f | e5d5ba9ba0b9a51031e8f1f4225bc35d848159dd | refs/heads/master | 2022-03-04T19:02:30.917729 | 2019-11-15T14:18:53 | 2019-11-15T14:18:53 | 98,515,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py |
from mpl_toolkits.mplot3d import axes3d
import matplotlib.pyplot as plt
from matplotlib import cm
fig = plt.figure()
ax = fig.gca(projection = '3d')
X, Y, Z = axes3d.get_test_data(0.05)
ax.plot_surface(X, Y, Z, rstride = 8, cstride = 8, alpha = 0.3)
cset = ax.contour(X, Y, Z, zdir = 'z', offset = -100, cmap = cm.c... | [
"stognienkovv@gmail.com"
] | stognienkovv@gmail.com |
7765dc480276fee93a1cac31e12dcaaf6feff72e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/1704.py | b364cfb3416e11ec61f4b30bede7e42d7627c44c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | import os
import sys
fname = 'A-large'
with open(fname+'.in') as f:
lines = f.readlines()
T = int(lines[0].replace('\n',''))
t = 1
outfile = open(fname+'.out','w')
while t<=T:
count = 0
line = lines[t]
lineitem = line.split(' ')
smax = int(lineitem[0])
s = list(lineitem[1])
standingCou... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d7263e59fc473874650d804b0759a57fa2b78439 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_256/ch9_2020_03_23_19_52_11_180529.py | 36f8753373b3a25f98410af5f18e811f86693576 | [] | 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 | 82 | py | def calcula_volume_da_esfera(3,14, R):
opa = (4/3)*3,14*(R^3)
return opa
| [
"you@example.com"
] | you@example.com |
8a08724b8b4bc6eeb9174d8366f8afa12704cd3a | f897f0e594a9157b9e56cee8b24f68bb9c9221f8 | /aml_workspace/src/AML/aml_robot/src/aml_robot/box2d/pygame_viewer.py | f5838960ccbe5540ea8c18b5a855ab1634da12cd | [] | no_license | HDClark94/Honeycomb | b1056a0f8b41312d0a87d5cd80803a2baf613bae | 96899e6b362358d0ce1e3671cbc77f30856c80ac | refs/heads/master | 2020-03-29T19:48:29.330790 | 2018-10-22T07:50:01 | 2018-10-22T07:50:01 | 150,281,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,384 | py | import numpy as np
from PIL import Image
import pygame
from pygame.locals import (QUIT, KEYDOWN, K_ESCAPE, K_UP, K_DOWN, K_r, K_f)
import matplotlib.pyplot as plt
import matplotlib
import threading
import Box2D # The main library
# Box2D.b2 maps Box2D.b2Vec2 to vec2 (and so on)
from Box2D.b2 import (world, polygonSh... | [
"harrydclark91@gmail.com"
] | harrydclark91@gmail.com |
96d986b987c0922282f930914bbca182163ffa45 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-r-kvstore/aliyunsdkr_kvstore/request/v20150101/CreateGlobalDistributeCacheRequest.py | 3c3027f5a8fb198b8c7f17b900b0fd44b9bb9572 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,483 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
c20535e7fa1dc172f93b26c490a27f70f9ed3257 | 88906fbe13de27413a51da917ebe46b473bec1b9 | /Part-I/Chapter 10 - Files and Exceptions/c10e6_addition.py | e243b5b9c62fea331143c9eed4651deb276edb18 | [] | no_license | lonewolfcub/Python-Crash-Course | 0b127e40f5029d84ad036263fd9153f6c88c2420 | 322388dfb81f3335eeffabcdfb8f9c5a1db737a4 | refs/heads/master | 2021-01-01T16:45:50.617189 | 2017-10-27T14:23:58 | 2017-10-27T14:23:58 | 97,911,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | first_number = input("\nFirst number: ")
second_number = input("\nSecond number: ")
try:
answer = int(first_number) + int(second_number)
except ValueError:
print("You must input integers!")
else:
print(answer) | [
"lonewolfcub020@gmail.com"
] | lonewolfcub020@gmail.com |
ce31e506e7880b5c70de3f7b472b521ba5edfca7 | 036a41c913b3a4e7ae265e22a672dd89302d3200 | /1501-1600/1583/1583_Python_1.py | d5f057c81f7cf4c4d249dc9b42b55813ab697ff9 | [] | no_license | ChangxingJiang/LeetCode | e76f96ebda68d7ade53575354479cfc33ad4f627 | a2209206cdd7229dd33e416f611e71a984a8dd9e | refs/heads/master | 2023-04-13T15:23:35.174390 | 2021-04-24T05:54:14 | 2021-04-24T05:54:14 | 272,088,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | from typing import List
class Solution:
def unhappyFriends(self, n: int, preferences: List[List[int]], pairs: List[List[int]]) -> int:
# 使用哈希表存储分组关系
group_dict = {}
for pair in pairs:
group_dict[pair[0]] = pair[1]
group_dict[pair[1]] = pair[0]
# 使用哈希表存储亲近程度... | [
"1278729001@qq.com"
] | 1278729001@qq.com |
14203cd263a9be1b6726401dc707497df58ab688 | 60971595b5c6aa20c47839c1f1a9a65e3b5a6262 | /xlsxwriter/test/app/test_docsecurity.py | df61767e87c85006c1b7fcca0e59ebb46df12d61 | [
"BSD-2-Clause-Views"
] | permissive | kws/XlsxWriter | 0c6da72ae7a9e7dcf87f3dea0711808e6862d8c4 | 39505c92aebe70b8900efd904199e05c5605be84 | refs/heads/master | 2022-11-11T02:24:49.436186 | 2020-07-05T14:17:11 | 2020-07-05T14:17:11 | 277,315,229 | 0 | 0 | null | 2020-07-05T14:11:29 | 2020-07-05T14:11:28 | null | UTF-8 | Python | false | false | 1,916 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ..helperfunctions import _xml_to_list
from ...app import App
class TestAssembleApp(uni... | [
"kaj@k-si.com"
] | kaj@k-si.com |
25ae5e1b20a791b78bab83fafe9e2bda40fea193 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/edb6b5fb7e4f1a7ea07b/snippet.py | 7ea90d36bc760344369febbf9295acbdf47fbc40 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,960 | py | '''
Sample usage:
python ytwebm.py https://www.youtube.com/watch?v=dQw4w9WgXcQ -s 01:45 -l 5
This will create webm file from youtube video from 01:45 to 01:50
'''
import youtube_dl, subprocess, os, argparse
class Downloader:
def __init__(self, quality = 43):
initial_settings = {'outtmpl': '%(id)s.%(ext)s... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.