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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
51069274b991d4ae2de188fbec89a5d455c35b29 | c5cf46942decbda1c813474edb5a18b9595a8bf1 | /core/constants/default_values.py | a9b45a44b702b7574351ac83c4948842275b9980 | [
"MIT"
] | permissive | AsiganTheSunk/python3-gnosis-cli | 360b4da9fd86a642ec1e399bdb6c39d1dbcbb8ce | c4c2638aa75b8a8268ad899d6cea1e602227ef19 | refs/heads/master | 2023-03-18T17:38:38.594171 | 2019-11-15T00:01:34 | 2019-11-15T00:01:34 | 221,243,913 | 0 | 0 | MIT | 2023-03-03T23:35:41 | 2019-11-12T14:59:00 | JavaScript | UTF-8 | Python | false | false | 230 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# String Size Of Diferent Type of Addresses
CONTRACT_ADDRESS_LENGTH = 42
TX_ADDRESS_LENGTH = 66
# String Size of API Keys
INFURA_API_KEY_LENGTH = 32
ETHERSCAN_API_KEY_LENGTH = 34
| [
"asiganthesunk@gmail.com"
] | asiganthesunk@gmail.com |
87fbf91d172aff23f865bdbf312d2f0c9889d385 | 344f52fe0c84ec3e6f6b655e7cc2309441506650 | /SlaverServer/run_slaver.py | 7586a801df09507a9552f6c7a9ab1c695d3ef21b | [
"MIT"
] | permissive | Hanlen520/BigBoss | f1c0b1b5a30e45149a1d0eefa914a3060640d5db | 8a3cfeace1eb2b852de940a6ba6b4a9d6bc814db | refs/heads/master | 2020-04-04T09:49:44.300429 | 2018-09-29T08:21:31 | 2018-09-29T08:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | from tornado.web import Application
from tornado.ioloop import IOLoop
import argparse
from config import *
from router import SLAVER_ROUTER
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument('--port', type=int, help='set port')
args = parser.parse_args()
port = getattr(... | [
"178894043@qq.com"
] | 178894043@qq.com |
806a9c288ed6c350c6ad1a8a5e89c7587915ab49 | 6d7507b0695c5f704f1367604370f52a1cd60fe6 | /testfarm/test_program/app/honor/teacher/user_center/mine_collection/test_cases/test003_label_manage.py | 1534c47e571eaeaf83a4808cf18597aa790f1721 | [] | no_license | sj542484/test | f88b1f0524e853b24759de1bc8019a643bf11dcc | 908bef52867e3944b76898cfcc018fa403202815 | refs/heads/master | 2022-04-09T17:18:40.847936 | 2020-03-25T07:30:55 | 2020-03-25T07:30:55 | 194,576,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,187 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author : SUN FEIFEI
import unittest
import time
from conf.decorator import setup, teardown, testcase, teststeps
from app.honor.teacher.home.vanclass.object_page.home_page import ThomePage
from app.honor.teacher.login.object_page.login_page import TloginPage
from app.ho... | [
"18330245071@163.com"
] | 18330245071@163.com |
1356618b0fc6adcc984e34e5f8a37827491754d1 | 8cf32a75a8e9a2a2e15b8c6a23694c4213d9a9ef | /horizon/openstack_dashboard/api/rest/keystone.py | d92a0d01bda64299460f03a9e88ef8811dc25590 | [
"Apache-2.0"
] | permissive | swethapts/devstack-controller | 6ae4f179c6dfe9e98aab2869416ed7fdcf4cda9c | ad405679f3b5d4825a3bc4a269fad3ce4c77ef7e | refs/heads/master | 2021-05-16T02:36:44.301793 | 2015-01-30T06:31:51 | 2015-01-30T06:31:51 | 30,010,810 | 0 | 1 | null | 2020-07-24T00:51:05 | 2015-01-29T08:25:40 | Python | UTF-8 | Python | false | false | 17,824 | py | # Copyright 2014, Rackspace, US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"swethapts@gmail.com"
] | swethapts@gmail.com |
764b44f56eb85a9c7ffe5cee4b564152e1b3aa7f | 85bf9a13bf62c1f074894d134c23dd992ae8688c | /javasolutions/p63/Solution.py | 0a7c244f231e3a5f619d33c503578c2873d98f7e | [] | no_license | pololee/oj-leetcode | 4cca3d309b2c9931d15d3cec4b07b5d9d22733ef | 78a8b27ee108ba93aa7b659665976112f48fc2c2 | refs/heads/master | 2020-06-21T02:15:26.882273 | 2020-02-06T04:56:21 | 2020-02-06T04:56:21 | 197,320,113 | 0 | 0 | null | 2020-02-06T04:56:23 | 2019-07-17T05:20:02 | Python | UTF-8 | Python | false | false | 921 | py | class Solution:
def uniquePathsWithObstacles(self, obstacleGrid):
"""
:type obstacleGrid: List[List[int]]
:rtype: int
"""
if not obstacleGrid or len(obstacleGrid) == 0 or len(obstacleGrid[0]) == 0:
return 0
if obstacleGrid[0][0] == 1:
return 0... | [
"pololee1990@gmail.com"
] | pololee1990@gmail.com |
27cbb16e31516b3cb28c074ac4404179beda786c | deafd775f238b2836f77b9140f4d6e14a3f3c06d | /python/ABC/ABC082/082_B.py | 2d02b85f31176d2942aec83f88cd72ff00a2d545 | [] | no_license | knakajima3027/Atcoder | ab8e2bf912173b7523fddbb11b38abd7e296762e | 64cb32fcc4b99501f2f84496e5535e1e7b14c467 | refs/heads/master | 2021-06-22T03:58:03.777001 | 2020-12-19T11:23:49 | 2020-12-19T11:23:49 | 135,173,223 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | s = input()
t = input()
S = []
T = []
for i in range(len(s)):
S.append(s[i])
for i in range(len(t)):
T.append(t[i])
S.sort()
T.sort()
T.reverse()
if S == T:
print('No')
elif min(S, T) == S:
print('Yes')
else:
print('No')
| [
"kamihate1012@gmail.com"
] | kamihate1012@gmail.com |
26d9325e402bf6c5143407c4ebc339e006ab969f | 97aa1181a8305fab0cfc635954c92880460ba189 | /torch/distributions/lowrank_multivariate_normal.py | e6d6879c8d3a1f24c54f31ee0c8ffb8609b78208 | [
"BSD-2-Clause"
] | permissive | zhujiang73/pytorch_mingw | 64973a4ef29cc10b96e5d3f8d294ad2a721ccacb | b0134a0acc937f875b7c4b5f3cef6529711ad336 | refs/heads/master | 2022-11-05T12:10:59.045925 | 2020-08-22T12:10:32 | 2020-08-22T12:10:32 | 123,688,924 | 8 | 4 | NOASSERTION | 2022-10-17T12:30:52 | 2018-03-03T12:15:16 | C++ | UTF-8 | Python | false | false | 9,834 | py | import math
import torch
from torch.distributions import constraints
from torch.distributions.distribution import Distribution
from torch.distributions.multivariate_normal import _batch_mahalanobis, _batch_mv
from torch.distributions.utils import _standard_normal, lazy_property
def _batch_capacitance_tril(W, D):
... | [
"zhujiangmail@hotmail.com"
] | zhujiangmail@hotmail.com |
29819db9f9c77633b810c3ba2978e48537b4e7a3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_209/544.py | 22e6c7236e14da498cdcf8d941798513af589657 | [] | 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,528 | py | # input() reads a string with a line of input, stripping the '\n' (newline) at the end.
# This is all you need for most Google Code Jam problems.
import math
def get_surface(p):
return math.pi * p[0]**2
def get_side_surface(p):
return 2 * math.pi * p[0] * p[1]
def get_area(p):
if p is None:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
c5a1300c883da1921c805a18c66e4dce27d6c66e | c51eef37bb983a9c35635c7ccc96a0cf689a7438 | /lecture/lecture_gn5/week1/03_parameter.py | 21215f034b5e08cd1b40992831d3dda1790f6621 | [] | no_license | Kyeongrok/python_crawler | 0a717b43be36584af1b0f7c1ad0c79108a5d11e0 | 5a5da8af7bb080f752a9a066741ac8adab136a3a | refs/heads/master | 2022-09-13T03:15:08.053639 | 2022-08-02T15:45:03 | 2022-08-02T15:45:03 | 124,719,435 | 40 | 34 | null | 2019-02-27T08:29:52 | 2018-03-11T03:20:32 | HTML | UTF-8 | Python | false | false | 477 | py | # parameter 파라메터 매개변수
# 변수 변하는 수(값) ""가 없음
# 상수 항상 같은 수(값) ""가 있음
def printMessage(message):
print(message)
printMessage("happy spring")
# 차이점
# 1. 함수 이름 옆에 괄호에 뭐가 있다 없다.
# 2. 함수를 호출 할 때 괄호안에 뭐가 있고 없고
# 3. print()함수에 "hello", message
# ctrl + tab 이전 파일로 가기
# ctrl + tab + tab 전전으로 가기
# ctrl + e
# command + e | [
"oceanfog1@gmail.com"
] | oceanfog1@gmail.com |
aeac86300ebab4cf0eff0327474f80f2a6ed7843 | 3f06e7ae747e935f7a2d1e1bae27a764c36a77d1 | /day11.py | f6ef0bfc5790ca1418db1e53ada53842434704b4 | [] | no_license | mn113/adventofcode2016 | 94465f36c46e9aa21d879d82e043e1db8c55c9da | 3a93b23519acbfe326b8bf7c056f1747bbea036a | refs/heads/master | 2022-12-11T22:57:21.937221 | 2022-12-04T16:37:24 | 2022-12-04T16:37:24 | 75,545,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #! /usr/bin/env python
# Transport all items to floor 4, avoiding dangerous situations
# (Missionaries/cannibals problem)
#4:
#3:
#2: lp
#1: E trc LPTRC
trips = 0
elev = 1
state = { # tuple represents: (chip's floor, generator's floor)
'V': (2,1),
'W': (2,1),
'X': (1,1),
'Y': (1,1),
'Z': (1,1... | [
"recyclebing+github@gmail.com"
] | recyclebing+github@gmail.com |
f538641ad09d7696971988e32aa9d00b57082efc | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/furniture/shared_furniture_bookcase_modern.py | f02d735683dbae730eb4a049b73eda113bf64955 | [
"MIT"
] | permissive | anhstudios/swganh | fb67d42776864b1371e95f769f6864d0784061a3 | 41c519f6cdef5a1c68b369e760781652ece7fec9 | refs/heads/develop | 2020-12-24T16:15:31.813207 | 2016-03-08T03:54:32 | 2016-03-08T03:54:32 | 1,380,891 | 33 | 44 | null | 2016-03-08T03:54:32 | 2011-02-18T02:32:45 | Python | UTF-8 | Python | false | false | 464 | py | #### NOTICE: THIS FILE IS AUTOGENERATED
#### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY
#### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES
from swgpy.object import *
def create(kernel):
result = Intangible()
result.template = "object/draft_schematic/furniture/shared_furniture_bookcase_modern.iff"
result.att... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
bd56c0c31c38bfee93331f533c406ffe5b138e9f | 4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947 | /atlas/foundations_rest_api/src/test/filters/parsers/test_number_parser.py | f1fe582e071ade8fc93e52edbe6d1953879e05b3 | [
"BSD-3-Clause",
"MIT",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | yottabytt/atlas | c9d8ef45a0921c9f46d3ed94d42342f11488a85e | b040e574fbc64c833039b003f8a90345dd98e0eb | refs/heads/master | 2022-10-14T11:12:12.311137 | 2020-06-13T13:19:35 | 2020-06-13T13:19:35 | 272,008,756 | 0 | 0 | Apache-2.0 | 2020-06-13T12:55:29 | 2020-06-13T12:55:28 | null | UTF-8 | Python | false | false | 1,438 | py | import unittest
from foundations_rest_api.filters.parsers import NumberParser
class TestNumberParser(unittest.TestCase):
def setUp(self):
self._parser = NumberParser()
def test_random_value(self):
value = 'attack'
self.assertRaises(ValueError, self._parser.parse, value)
def test... | [
"mislam@squareup.com"
] | mislam@squareup.com |
e072b567a6d98e5d00916d792ef4296106d3c78f | 83552e8512ec76739310b2227c57a76b2080eccc | /plotObjects/fittingFunctions.py | f2bd51ae879114fe986fb46e4f0491881adcf19b | [] | no_license | mlink1990/experimentEagle | c4617e0ec1080ca04ec62b39c92f0c977ec28b09 | 90394c2d9c2ac68165647bcc8c57c09099c37cf6 | refs/heads/master | 2022-11-07T09:05:49.134877 | 2020-06-21T13:47:44 | 2020-06-21T13:47:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,180 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 05 09:55:44 2016
@author: User
"""
import scipy
#here is the class definition for fitting funtion
class FittingFunction(object):
"""wrapper for a python fitting function. adds the optional guess functions,
verbal description and allows """
def __init__(s... | [
"Martin.Link90@gmail.com"
] | Martin.Link90@gmail.com |
9f6a4b3cea3a4768b3ed119ba3461165975946c9 | 15e4ea46e2b1944add82746c4b3369184550af1b | /9 Strings/Excersises/21.py | e82a496856e05d43914ebf743eed1cf243c8a9bb | [] | no_license | eduardogomezvidela/Summer-Intro | 53204a61b05066d8b8bc1ef234e83e15f823934d | 649a85b71a7e76eade3665554b03ca65108c648b | refs/heads/master | 2021-04-29T13:34:26.873513 | 2018-02-16T13:35:48 | 2018-02-16T13:35:48 | 121,754,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #Caesar's Cipher
message = "Hello World" #uryyb jbeyq
encrypted_message = ''
for char in message:
o_char = char
char = ord(char)
if char + 13 < 122 and char + 13 > 104: #lowercase letters
char = (char) +13
encrypted_message = encrypted_message + chr(char)
elif (char)... | [
"eduardogomezvidela@gmail.com"
] | eduardogomezvidela@gmail.com |
b5870f9d11d9067baf5434f119b2c389ae719b51 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_asia.py | 1cdcd711f60b6da65ba29fce4d6bf8d63cc4eef0 | [
"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 | 385 | py |
#calss header
class _ASIA():
def __init__(self,):
self.name = "ASIA"
self.definitions = [u'the continent that is to the east of Europe, the west of the Pacific Ocean, and the north of the Indian Ocean']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fdfb29f8d07af2d86a4bb2d860beafb88397900a | bcabce262e54a6ac38948a4717254cdc3ce65874 | /mealpy/swarm_based/SpaSA.py | 7b315ab4cfa31caba129621a65b40fc05eff5414 | [
"MIT"
] | permissive | ibrahim85/MEta-heuristics-ALgorithms-in-PYthon | 4ab6e6ef54127b6f4721178a1f855d1be91f9b42 | 47fb428e8378fc52cd5fe6eff20cec1c68ba5039 | refs/heads/master | 2023-06-03T05:23:31.993100 | 2021-06-28T14:48:38 | 2021-06-28T14:48:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,531 | py | #!/usr/bin/env python
# ------------------------------------------------------------------------------------------------------%
# Created by "Thieu Nguyen" at 17:22, 29/05/2020 %
# ... | [
"nguyenthieu2102@gmail.com"
] | nguyenthieu2102@gmail.com |
5e1ef1d6823ccae17da98b6f30009066aabdf8fc | 01abb5fe2d6a51e8ee4330eaead043f4f9aad99d | /Repo_Files/Zips/plugin.video.streamhub/resources/lib/ssources/dizigold.py | 2cd5ccfebc47753666aeae3c3f62630f4fe00744 | [] | no_license | MrAnhell/StreamHub | 01bb97bd3ae385205f3c1ac6c0c883d70dd20b9f | e70f384abf23c83001152eae87c6897f2d3aef99 | refs/heads/master | 2021-01-18T23:25:48.119585 | 2017-09-06T12:39:41 | 2017-09-06T12:39:41 | 87,110,979 | 0 | 0 | null | 2017-04-03T19:09:49 | 2017-04-03T19:09:49 | null | UTF-8 | Python | false | false | 4,323 | py | # -*- coding: utf-8 -*-
'''
Exodus Add-on
Copyright (C) 2016 Exodus
This program 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 Foundation, either version 3 of the License, or
(at your option) any l... | [
"mediahubiptv@gmail.com"
] | mediahubiptv@gmail.com |
bf3b8692df156e8ab78abcd681ded23c4759b911 | 6230dd7501bb504643cb3b8d8d18889f4bc9e292 | /web_frameworks/templates_advanced/apps.py | ba80c31d12cea247b98e09edde360664c7894e0a | [
"MIT"
] | permissive | Minkov/python-web-frameworks-2020-11 | f83a8560cbbcd06549bcacaca83de3af4824adc6 | 5857bb626792a9efe1f2d06677fa3779f5e2cc1d | refs/heads/main | 2023-01-21T07:02:46.141981 | 2020-12-01T18:30:20 | 2020-12-01T18:30:20 | 310,352,954 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from django.apps import AppConfig
class TemplatesAdvancedConfig(AppConfig):
name = 'templates_advanced'
| [
"DonchoMinkov@gmail.com"
] | DonchoMinkov@gmail.com |
ec3bb5480e949b6d5afe23cab0f0ff0f2bc524ae | 62b75c03509dcd993a28eba2bb7004ae5f427f73 | /astropy/vo/validator/setup_package.py | aceae1de0abb38b79a066bd58d1ede6767e1a321 | [] | permissive | xiaomi1122/astropy | 08aba5592d9bb54e725708352e34db89af2ec289 | 8876e902f5efa02a3fc27d82fe15c16001d4df5e | refs/heads/master | 2020-04-09T12:27:36.768462 | 2018-12-06T01:11:23 | 2018-12-06T01:11:23 | 160,299,140 | 0 | 0 | BSD-3-Clause | 2018-12-04T04:52:22 | 2018-12-04T04:52:22 | null | UTF-8 | Python | false | false | 273 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
def get_package_data():
return {
'astropy.vo.validator': ['data/*.txt'],
'astropy.vo.validator.tests': ['data/*.json', 'data/*.xml',
'data/*.out']}
| [
"lim@stsci.edu"
] | lim@stsci.edu |
2754b656690e5da0db18e71746cd1661d2f373c1 | 9790af3da573b4fd28910ec23da9d877dbddc5e5 | /.history/trang_thai_dau_20210906145049.py | af50a67a1a7d0f670f5deafea2e69773d60efe7e | [] | no_license | KhanhNguyen1308/THIET_BI_CANH_BAO-BUON_NGU | 3e9f16252d21ff0406e7dba44033320542e80b10 | 88f1e8d037125e403b02ffe4ec0e838447aec7bb | refs/heads/main | 2023-07-16T04:48:36.453245 | 2021-09-06T13:29:34 | 2021-09-06T13:29:34 | 403,448,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,867 | py | def trang_thai_dau(thuoc, mui_ten, gd, R, goc_chinh, goc_nghieng):
if thuoc:
if (gd[1]+R/2)<=mui_ten[1]:
trang_thai = 'Cui'
mode = 1
elif mui_ten[1] <= (gd[1]-R/2):
trang_thai = 'Ngang'
mode = 8
else:
if -20 <= goc_nghieng <= 20:
... | [
"khanhnguyenduy1308@gmail.com"
] | khanhnguyenduy1308@gmail.com |
d4d4a6a0e44650a41c9924497d399ebb3be68541 | 913c018e5300ee601cacf0cb0efbe9341e00bbe9 | /slides/slide-22.py | f804b444a6c5e1075fc8cd7a652bd8949251e1d5 | [
"Unlicense"
] | permissive | a-abir/visionProcessingCV | 8eeacad7598b25d50bf9af121c6a45b13c3079e9 | 0ed73c8205684abbe80c660e3d59b2d8d9f310f7 | refs/heads/master | 2020-04-13T03:06:26.503007 | 2019-11-09T16:12:58 | 2019-11-09T16:12:58 | 162,921,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | import cv2
import numpy as np
# Create an instance of camera 0
cap = cv2.VideoCapture(0)
win = 'Result'
nothing = lambda *args, **kwargs: None
# create window with name win
cv2.namedWindow(win, cv2.WINDOW_AUTOSIZE)
# create trackbars
cv2.createTrackbar('Hue Low', win, 27, 179, nothing)
cv2.createTrackbar('Hue Hig... | [
"adam.mcdaniel17@gmail.com"
] | adam.mcdaniel17@gmail.com |
0e56df02e997c91c44b884d463bf5eeb9023aca3 | 8a3f18e44cde5a3495e87e50ec629d0dbc36e84f | /week_02/Day_02/i wont cheat on exam.py | 4ce27cc53c65467f26bd732159af4a3aa3f9f9dc | [] | no_license | green-fox-academy/rohanmeshram5 | 649143959bbb220c9716d9e28d46aabb63199989 | eb18a4b2f5e84e7475f0700b0092515f002ca622 | refs/heads/master | 2023-03-12T00:29:00.808599 | 2021-03-03T18:31:59 | 2021-03-03T18:31:59 | 342,660,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | x = "I won't cheat on the exam \n "
print(x*100)
| [
"you@example.com"
] | you@example.com |
ee993c51f2f4967c8388c89fad243c02b404fb0d | b73104aaee20ca8176bb5b3a85bdad191316793b | /terra_geocrud/migrations/0060_auto_20210122_1132.py | c630746e3bba1a93f2be87c42be33945c6a5d21c | [] | no_license | Terralego/django-terra-geocrud | d28b298d91fef9e0695240beac8dd04e825ea947 | da1e4ffb40220e4a8e76e1ceb75892224869fe53 | refs/heads/master | 2022-07-07T07:15:03.420853 | 2022-06-30T15:56:15 | 2022-06-30T15:56:15 | 198,394,781 | 4 | 1 | null | 2022-06-30T15:49:17 | 2019-07-23T09:10:50 | Python | UTF-8 | Python | false | false | 1,995 | py | # Generated by Django 3.1.5 on 2021-01-22 11:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('geostore', '0044_auto_20201106_1638'),
('terra_geocrud', '0059_auto_20201022_0930'),
]
operations = [
... | [
"timothee.de_montety@isen.yncrea.fr"
] | timothee.de_montety@isen.yncrea.fr |
0c08f0bf76cb7425cd21e1b839311f1a6f18fac6 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02715/s648085853.py | 1690b0179ea73214c86aabcff11e11b6d66648e5 | [] | 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 | 451 | py | MOD = 10**9 + 7
def mod_pow(p, q):
res = 1
while q > 0:
if q & 1:
res = (res * p) % MOD
q //= 2
p = (p * p) % MOD
return res
def solve(n, k):
dp = [0] * (k+1)
ans = 0
for x in range(k, 0, -1):
dp[x] = mod_pow((k // x), n) - sum(dp[y] for y in range(2*... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc1acebbeb60903b4eecac542d49dafb365417e2 | 5e6b385cf34605e9fd606cf8ca70171120c9a789 | /urls.py | 8af044f6507623d51f011b4dbd431366bf082d09 | [] | no_license | jeffedlund/astrokit | 6a8a361ba508a630fb0d0e29bbd389a9fe931650 | bae69b88f6bf2b6cd4a307a1fd7342613eb1981e | refs/heads/master | 2020-07-10T11:18:59.539234 | 2016-06-26T22:51:44 | 2016-06-26T22:51:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 865 | py | """astrokit URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"ianw_git@ianww.com"
] | ianw_git@ianww.com |
f2fd460bcc1d9881b286527a314b6aa57eb2f47c | f023692f73992354a0b7823d9c49ae730c95ab52 | /AtCoderBeginnerContest/2XX/250/A.py | 16a0a7a5857fb59f580771bb332e93d03882271f | [] | no_license | corutopi/AtCorder_python | a959e733f9a3549fab7162023e414ac2c99c4abe | a2c78cc647076071549e354c398155a65d5e331a | refs/heads/master | 2023-08-31T09:40:35.929155 | 2023-08-20T06:19:35 | 2023-08-20T06:19:35 | 197,030,129 | 1 | 0 | null | 2022-06-22T04:06:28 | 2019-07-15T15:57:34 | Python | UTF-8 | Python | false | false | 743 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
# # for pypy
# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
# import bisect
# from collections import deque
# import string
from math import ceil, floor
inf = float('inf')
mod = 10 ** 9 + 7
mod2 = 998244353
# from decorator import stop_watch
#
#
# @stop_w... | [
"39874652+corutopi@users.noreply.github.com"
] | 39874652+corutopi@users.noreply.github.com |
170d4bc8e9ff5699921eb404d75bb4f01be51dd0 | be651253d2aabbf2f5481bbb9f806d85de3c87b8 | /3.0 Attributes and Methods - Lab/03. Calculator.py | 9fd25a160da08ad67f086b7201b1cf06a74e0177 | [] | no_license | byAbaddon/OOP-Course-PYTHON-May-2020 | 49eed98885e610a9aa4f74cc13fee43c78a64ce3 | ee8bdeef9ff15733d11127af45397b723d123a7a | refs/heads/main | 2023-06-24T01:40:10.272556 | 2021-07-25T00:42:16 | 2021-07-25T00:42:16 | 381,504,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | from functools import reduce
class Calculator:
@staticmethod
def add(*args):
return sum(list(args))
@staticmethod
def multiply(*args):
return reduce(lambda a, x: a * x, args)
@staticmethod
def divide(*args):
return reduce(lambda a, x: a / x, args)
@staticmethod... | [
"noreply@github.com"
] | byAbaddon.noreply@github.com |
3017088eeb0b53c19b693decc4dee0679ff5350b | 5ff73a257eed74de87c0279c69552c19420fcc7d | /venv/bin/restauth-user.py | 51addc518270df04d9c412d7b8681ce194d830b0 | [] | no_license | GanapathiAmbore/api_auth_pro | 9109f4fbd50ae0225875daa3f82418b7c9aa5381 | d98e3cf1cade4c9b461fe298f94bdc38625c06aa | refs/heads/master | 2022-06-13T08:31:49.728775 | 2019-07-16T05:16:37 | 2019-07-16T05:16:37 | 196,578,277 | 0 | 0 | null | 2022-04-22T21:55:26 | 2019-07-12T12:47:44 | Python | UTF-8 | Python | false | false | 4,492 | py | #!/home/ganapathi/PycharmProjects/authpro/venv/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of RestAuth (https://restauth.net).
#
# RestAuth 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 Foundation, either ver... | [
"ganapathiambore@gmail.com"
] | ganapathiambore@gmail.com |
11c17b259d3788d26583fa112d9f1480f7a7ddc9 | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/keyword_plan_campaign_service/transports/base.py | f3002492db3249e0f4e6c4c79ceb128094274fca | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
13aae462a5aafa015fb82c45d2a91d4661c6d84d | 3312b5066954cbf96c79ef3e1f3d582b31ebc5ae | /colegend/academy/admin.py | 33500be58723d3916ead15c076b6f986af5748b9 | [] | no_license | Eraldo/colegend | d3f3c2c37f3bade7a3a1e10d307d49db225fe7f5 | 2e7b9d27887d7663b8d0d1930c2397c98e9fa1fc | refs/heads/master | 2021-01-16T23:32:09.245967 | 2020-10-07T12:12:14 | 2020-10-07T12:12:14 | 21,119,074 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from .models import Book, BookReview, BookTag
class TaggedBookInline(admin.TabularInline):
verbose_name = _('tagged book')
verbose_name_plural = _('tagged books')
model = Book.tags.through
extra = 0
show_chang... | [
"eraldo@eraldo.org"
] | eraldo@eraldo.org |
61eba779f71680917adcbb59e6fbd106e63422fa | 481b7922a39c514e12087b8fde1e6595315ecaa3 | /notifications/models.py | b9f022a3adbb347eea69bd15d618db4e150a04e3 | [] | no_license | Zolo-2000/mape-1 | 3ad994b285229924f23a3a895a925b7551ba3ebd | 87651ff08590ff5dd2685fa08956632493ee97c9 | refs/heads/master | 2021-01-19T22:21:46.884952 | 2017-08-31T16:23:57 | 2017-08-31T16:23:57 | 88,803,138 | 0 | 0 | null | 2017-04-20T00:27:07 | 2017-04-20T00:27:07 | null | UTF-8 | Python | false | false | 517 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from social.models import Profile
class Notification(models.Model):
TYPE_CHOICES = (
(1, 'Like'),
(2, 'Amistad'),
(3, 'Invitacion'),
)
from_profile = models.ForeignKey(Profile)
to_profile = models.ForeignKey(Prof... | [
"dbsiavichay@gmail.com"
] | dbsiavichay@gmail.com |
f211453dbbccbeb4172dfdc05ad63a35038e47f2 | ddd7e91dae17664505ea4f9be675e125337347a2 | /unused/2014/distributed/find_optimal_transformation_distributor_script.py | 47787e7d5e351e7c76dd664da9c1f36153dabe6b | [] | no_license | akurnikova/MouseBrainAtlas | 25c4134bae53827167e4b54ba83f215aec9f2d85 | ed1b5858467febdaed0a58a1a742764d214cc38e | refs/heads/master | 2021-07-15T17:17:19.881627 | 2019-02-22T06:00:17 | 2019-02-22T06:00:17 | 103,425,463 | 0 | 0 | null | 2018-04-27T19:08:02 | 2017-09-13T16:45:56 | Jupyter Notebook | UTF-8 | Python | false | false | 299 | py | import os
import time
from preprocess_utility import *
t = time.time()
script_root = os.environ['GORDON_REPO_DIR']+'/notebooks/'
arg_tuples = [[i] for i in range(8)]
run_distributed3(script_root+'/find_optimal_transformation_executable.py', arg_tuples)
print 'total', time.time() - t, 'seconds'
| [
"cyc3700@gmail.com"
] | cyc3700@gmail.com |
2a8ef7d09dd39f175ff581175473aaecc29aa67b | c8a38e65e71de888fc5b22fbd027bbaa0f3f6ef1 | /classic/MergeSort.py | e90a38bdccd7b2e70d6a29f8bfe43220a25d24fa | [] | no_license | skywhat/leetcode | e451a10cdab0026d884b8ed2b03e305b92a3ff0f | 6aaf58b1e1170a994affd6330d90b89aaaf582d9 | refs/heads/master | 2023-03-30T15:54:27.062372 | 2023-03-30T06:51:20 | 2023-03-30T06:51:20 | 90,644,891 | 82 | 27 | null | null | null | null | UTF-8 | Python | false | false | 681 | py | def mergeSort(s, l, r):
if l>=r:
return
mid = (l+r)/2
mergeSort(s, l, mid)
mergeSort(s, mid+1, r)
merge(s, l, mid, r)
def merge(s, l, mid, r):
t = []
i = l
j = mid+1
while i<=mid and j<=r:
if s[i] < s[j]:
t.append(s[i])
i+=1
else:
... | [
"gangzh@uber.com"
] | gangzh@uber.com |
9b47587d53e94ef38b76436bc239d8c7de43f70f | 20d8a89124008c96fa59225926ce39f113522daa | /UL_NanoAODv8/2018/step7_cfg.py | 796ed2f73ea4ff4cc4240bf4fcdd4341af58cff3 | [] | no_license | MiT-HEP/MCProduction | 113a132a2ff440e13225be518ff8d52b0136e1eb | df019d7a15717a9eafd9502f2a310023dcd584f5 | refs/heads/master | 2022-05-06T20:25:34.372363 | 2022-04-12T11:55:15 | 2022-04-12T11:55:15 | 37,586,559 | 5 | 7 | null | 2015-08-24T11:13:58 | 2015-06-17T09:45:12 | Python | UTF-8 | Python | false | false | 3,932 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: --python_filename step7_cfg.py --eventcontent NANOAODSIM --customise Configuration/DataProcessing/Utils.addMonitoring --datatier NANOAODSIM... | [
"andrea.marini@cern.ch"
] | andrea.marini@cern.ch |
ed568aebf7ccfb7ab927a70bb4f56f29f3aadebe | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2908/61519/270339.py | 01ee9a6039d0bea096c53e730e0059e37ea1e6bc | [] | 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 | n=int(input())
a=[]
b=[]
for i in range(n):
s=input()
a.append(s)
for i in range(len(a)):
tem=list(a[i])
tem.sort()
a[i]="".join(tem)
b.append(a[0])
for i in range(len(a)):
if a[i] not in b:
b.append(a[i])
print(len(b)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e18d08fc75cb6a5c7e65786034508a5a6dfae2fb | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /prison-cells-after-n-days/prison-cells-after-n-days.py | 5f5774ff8645fab995636b2a9afdbffacd5365cd | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | // https://leetcode.com/problems/prison-cells-after-n-days
class Solution(object):
def prisonAfterNDays(self, cells, N):
"""
:type cells: List[int]
:type N: int
:rtype: List[int]
"""
cells = [-1]+ cells+[-1]
N -= max(N - 1, 0) / 14 * 14
for _ in range... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
b5cd2ddf1a640e787b53681fe898447ac3fc4544 | 78b8f4f4205350abe9cf8a8b26ba756f65e61a42 | /samples/openapi3/client/petstore/python-nextgen-aiohttp/petstore_api/configuration.py | 12e9a7ef799f6486f58dbd8aeacc0b242fd13071 | [
"Apache-2.0"
] | permissive | borsch/openapi-generator | 9c3791e1ce5356bc64a13a87938a0d030f379c5f | 6d48d7342112f3a4d1c543054575a21424ec8f45 | refs/heads/master | 2023-06-10T22:26:43.941807 | 2023-03-01T07:30:18 | 2023-03-01T07:30:18 | 195,118,780 | 0 | 2 | Apache-2.0 | 2023-05-30T03:57:34 | 2019-07-03T19:57:40 | Java | UTF-8 | Python | false | false | 20,905 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | borsch.noreply@github.com |
31a9e2a3ce29989e3919b81f3ac99a0aa1d53099 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2806/59018/240055.py | 407238dcea42d1b7be172e0c494ea3bb4c414b77 | [] | 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 | 213 | py | n=int(input())
a=[]
p=[]
for i in range(n):
m,k=input().split(' ')
a.appennd(int(m))
p.append(int(k))
count=0
for j in range(n):
count=count+a[i]*min(p[0:i+1])
print(count)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
56ebe08be3499a23b065f9b952dadc0a413e0d4d | 93f47ba04fc18c4e537f0a48fe6232e2a89a4d30 | /examples/adspygoogle/dfp/v201408/placement_service/update_placements.py | 4a5f1ecff2f2c3ac09e479873dc7a7e90ef3069a | [
"Apache-2.0"
] | permissive | jasonshih/googleads-python-legacy-lib | c56dc52a1dab28b9de461fd5db0fcd6020b84a04 | 510fad41ecf986fe15258af64b90f99a96dc5548 | refs/heads/master | 2021-04-30T22:12:12.900275 | 2015-03-06T15:35:21 | 2015-03-06T15:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,538 | py | #!/usr/bin/python
#
# Copyright 2013 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 b... | [
"nicholaschen@google.com"
] | nicholaschen@google.com |
792cf50359d4bf5956925e7c59e425b1dcb9996e | 45a00518abed3ef4796655d8d2a0677f29961aa3 | /example 46/python_venv/lib/python3.8/site-packages/pandas/tests/io/test_parquet.py | 92c86e32ed580a8e052e5a13029d3ce2b96d4624 | [] | no_license | ruiwu1990/CSCI_4710_6710 | 07b92e456d6cda3e63a5b5d078c1718110317555 | 6e32c89ef70fbe4b4a5db14682dc94b13bab6d9e | refs/heads/master | 2023-05-03T21:50:54.943702 | 2023-04-18T21:48:43 | 2023-04-18T21:48:43 | 174,882,138 | 9 | 17 | null | 2023-05-01T20:53:06 | 2019-03-10T21:18:01 | Python | UTF-8 | Python | false | false | 43,737 | py | """ test parquet compat """
import datetime
from io import BytesIO
import os
import pathlib
from warnings import catch_warnings
import numpy as np
import pytest
from pandas._config import get_option
from pandas.compat import is_platform_windows
from pandas.compat.pyarrow import (
pa_version_under7p0,
pa_vers... | [
"raywu1990@nevada.unr.edu"
] | raywu1990@nevada.unr.edu |
2b7ddd09aeac0d38f1ee11ee873acf5ee1e7cb06 | 8a52e36a792e3d22e9ae70a6b261e5fa26195c38 | /wandoujia/spiders/qianliyanSpider.py | d3c9987b193664c9bc92e33fb6e31524d66f5f03 | [] | no_license | beautifulmistake/Whole-app | 77d55a3ced0d43fc5c670d2e86e0e22467df2ca4 | cee208bd67fdddb87f4e58ee22466d722f7adc05 | refs/heads/master | 2020-05-31T07:25:28.080565 | 2019-06-04T08:56:44 | 2019-06-04T08:56:44 | 190,165,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,126 | py | from urllib.parse import urljoin
import scrapy
from wandoujia.items import QianLiYanItem
class QianLiYanSpider(scrapy.Spider):
name = "QianLiYan"
def start_requests(self):
"""
读取文件获取初始url
:return:
"""
with open(r'G:\工作\APP\wandoujia\urls.txt', 'r', encoding='utf-8') a... | [
"17319296359@163.com"
] | 17319296359@163.com |
6edb3d2cddfae5ec7c09ce1b3da816f9fdc28865 | 7680dbfce22b31835107403514f1489a8afcf3df | /Teoria/teoria__lista_4.py | f7bb19bdeb60df58bd01289c6834859a4cb774a9 | [] | no_license | EstephanoBartenski/Aprendendo_Python | c0022d545af00c14e6778f6a80f666de31a7659e | 69b4c2e07511a0bd91ac19df59aa9dafdf28fda3 | refs/heads/master | 2022-11-27T17:14:00.949163 | 2020-08-03T22:11:19 | 2020-08-03T22:11:19 | 284,564,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | teste = list()
teste.append('Gustavo')
teste.append(40)
print(teste)
galera = list()
# galera.append(teste) ISSO AQUI NÃO PODE
galera.append(teste[:])
teste[0] = 'Maria'
teste[1] = 22
galera.append(teste[:])
print(galera)
print()
pessoal = [['Joana', 33], ['Marcelo', 45], ['Otávio', 50], ['Jorge', 12]... | [
"noreply@github.com"
] | EstephanoBartenski.noreply@github.com |
89796e8c58eacdcc25209c3a9e140a8165b53512 | a0830282305fcb38bee60c8b0fbce031c9934ff8 | /app.py | 4ca940ec58e8869e34de864c8a3ca9e23cb68456 | [] | no_license | sailorlg/DemoFlask | 0fdb7effc233e9b6a58b48d938818d766dc4b458 | 63590f0592ee0bd7a928107961a914b1eb1c8a1c | refs/heads/master | 2023-08-23T19:32:27.186166 | 2021-09-27T05:33:24 | 2021-09-27T05:33:24 | 404,283,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,963 | py | #
# import os
#
# from flask import Flask, url_for, request, redirect, make_response, json, jsonify, session, abort, g
# from urllib.parse import urlparse, urljoin
# import click
#
# from ConfigDemo import ConfigDemo
#
# app = Flask(__name__) # 创建FlaskApp
# app = ConfigDemo(app).app # 读入全局配置变量
#
#
# @app.route("/")
#... | [
"admin@example.com"
] | admin@example.com |
2cd393130f9913c27560502518c7ea7a5860ccfe | 5be29c3b055a335120186de58d8d08bab6a4de7a | /KFC_server/regist_Ui.py | 6b85c7875fb7e61f010a51f1cb06a8cd93a92729 | [] | no_license | wangredfei/projects | aabb68f45c661db4d60dc13e34d069c4fa77e423 | 3dfbf4467a10e43296a6397cebbfb2e6d78e684b | refs/heads/master | 2022-12-09T07:19:07.538950 | 2019-03-18T06:57:12 | 2019-03-18T06:57:12 | 176,221,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | from PyQt5.Qt import *
import os
class Regist_Ui(QDialog):
'''这是管理员的注册'''
def newWindowUI(self, dialog):
dialog.resize(300,500)
self.dialog = dialog
self.button()
self.lineEdit()
self.background_show()
def button(self):
self.button1 = QPushButton(se... | [
"1538629795@qq.com"
] | 1538629795@qq.com |
145be8c13b53b68fae56bd1168d4c0ea048dab87 | 24a9c8f2fac4e2b20f731387336ec4e22d5fd2c7 | /project2/L河南/7、南阳市(信用中国).py | 739c30bb476a58b281d9fe6d030203723d60bec9 | [] | no_license | yunli45/pycharmProjectHome | 94833822e3036bf2baf8700c4493132e63177d4c | 9a382c060963eb801a3da07423e84a4132257b02 | refs/heads/master | 2020-05-23T23:35:20.476973 | 2019-05-16T09:45:58 | 2019-05-16T09:49:16 | 186,986,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,286 | py | # coding = utf-8
import threading
import time
from queue import Queue
import requests
import re
from bs4 import BeautifulSoup
from L河南.工具包 import 链接数据库,附件下载程序,预处理模块, 提取信息, 动态访问
class MySpider():
"""
参数说明:
headers:浏览器请求头
index_url: 爬取的首页
page_no: 页码
page_url:每一页对应的网址,post的网址基本是不变... | [
"yunli_45@163.com"
] | yunli_45@163.com |
2bb4211c31bd54a5ab45c2fa8bd7071fb0a2e52c | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.5.0a3/bin/weewx/uwxutils.py | 8ae5cb4f4f05725fc2b120d69c39329239ff64d8 | [
"GPL-1.0-or-later",
"GPL-3.0-only",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 25,248 | py | # Adapted for use with weewx
#
# This source code may be freely used, including for commercial purposes
# Steve Hatchett info@softwx.com
# http:#www.softwx.org/weather
"""
Functions for performing various weather related calculations.
Notes about pressure
Sensor Pressure raw pressure indicated by the baro... | [
"tom@tom.org"
] | tom@tom.org |
5eb5f1b1e17df3c5a4a386f4ebd33e63991af2cd | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/1324501/snippet.py | 1c0cb3d7b8a1a399f9b0fbe7ad92bea55209c524 | [
"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 | 5,926 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
from __future__ import print_function
import os, sys
import struct as st
import time as tm
uint32 = '>I'
int32 = '>i'
uint16 = '>H'
int16 = '>h'
uint8 = 'B'
int8 = 'b'
#file header
file_version_number_fmt = uint32
app_version_number_fmt = uint32
idtag_length_fmt = uint16... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
6e87b1af4210c206f1bb715e1b4a99fe7d50ad0a | 093b9569be9d1c4e5daf92efbebc38f680917b2d | /.history/base/models_20210828170925.py | 1ae5275cea498d2f694b609a8d77a0d76c347858 | [] | no_license | Justin-Panagos/todoList | 95b1e97ff71af1b0be58e7f8937d726a687cea4d | 10539219b59fcea00f8b19a406db3d4c3f4d289e | refs/heads/master | 2023-08-04T13:27:13.309769 | 2021-08-29T14:06:43 | 2021-08-29T14:06:43 | 400,827,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
title =
description =
complete =
create = | [
"justpanagos@gmail.com"
] | justpanagos@gmail.com |
1cfdc64b037a1a5b23091e1f5821332e1768d22a | 32712c478ff9dff44de085cb50a1302bfc2eba67 | /users/migrations/0003_auto_20200409_0846.py | 6d5dd5bce835963096d9c8f9075a6418cf788858 | [
"MIT"
] | permissive | vas3k/vas3k.club | 158af17c329fe693178ca1bce36466922604df3b | b3ff2fd95ef1d6c593c57d3bcd501240f2705fbb | refs/heads/master | 2023-09-03T07:10:10.859004 | 2023-09-01T09:08:32 | 2023-09-01T09:08:32 | 254,190,180 | 697 | 326 | MIT | 2023-09-04T09:02:12 | 2020-04-08T20:11:44 | Python | UTF-8 | Python | false | false | 766 | py | # Generated by Django 3.0.4 on 2020-04-09 08:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0002_auto_20200408_1516'),
]
operations = [
migrations.AlterModelOptions(
name='tag',
options={'ordering': ... | [
"me@vas3k.ru"
] | me@vas3k.ru |
1ef9484581829929eb621c45569e4ed19c1bce55 | 6909de83dd90ee1169d6c453c327ab2ce2687485 | /scheme/abstract_turtle/turtle_class.py | cfdc404d2d77783de78399d470c4e8d41ec12522 | [] | no_license | dantefung/cs61a-2021-summer | 730cb0b9ab7327c32c619779d71882531bf328dd | 4f22f20fcfddfb5bf121081919310413209da1b2 | refs/heads/master | 2023-08-19T14:51:27.380738 | 2021-11-01T06:54:33 | 2021-11-01T06:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,497 | py | from functools import wraps
from math import pi, sin, cos, copysign
from .model import Color, Position, DrawnTurtle, Mode, LineTo, Arc
from .canvas import Canvas
def turtle_method(func):
"""
Marks the given method as one that needs to be placed in global.
"""
func.is_turtle_method = True
return f... | [
"wuyudi1109@gmail.com"
] | wuyudi1109@gmail.com |
6d77d52b9ef9e62676c4faa6684812efe2718167 | 770accfc4da8988db9b91d435623bc4f0860d6e8 | /src/race/scripts/keyboard.py | 79399f36cd172cbb9d8930627d46e9e51bff53a5 | [
"MIT"
] | permissive | mgoli-cav/Platooning-F1Tenth | 82eb4f79296b4e48b27b077ab68ce5d15a9281a0 | f8b929f0669cd721d861333286995b2feef2641e | refs/heads/master | 2022-11-12T00:21:46.348447 | 2020-06-19T22:26:56 | 2020-06-19T22:26:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | #!/usr/bin/env python
import rospy
from race.msg import drive_param
import sys, select, termios, tty
pub = rospy.Publisher('drive_parameters', drive_param, queue_size=10)
keyBindings = {
'w':(1,0),
'd':(1,-1),
'a':(1,1),
's':(-1,0),
}
def getKey():
tty.setraw(sys.stdin.fileno())
select.select([sys.st... | [
"pmusau13ster@gmail.com"
] | pmusau13ster@gmail.com |
32944cfd8beb4be9ec3e8b9a0a5c40fbcdbc8659 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2530/60785/314884.py | 6203abf12fc334b23c624843c641e54b233f7d1e | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | s=list(input())
t=list(input())
indic=[]
others=[]
res=[]
dic=dict()
for i in range(len(s)):
dic.update({s[i]:i})
for i in range(len(t)):
if t[i] not in s:
others.append(t[i])
else:
indic.append(dic[t[i]])
indic.sort()
#or i in range(len(indic)):
#es.append()
print(dic.items()) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
072d0dba6c0ca264afdf8e312adc7a46a009aedc | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/mirroring/tests/literals.py | bf6b4866cd5651e325b438c1c41fa096b2780241 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # -*- coding: utf-8 -*-
TEST_CACHE_KEY_BAD_CHARACTERS = ' \r\n!@#$%^&*()+_{}|:"<>?-=[];\',./'
TEST_DOCUMENT_PK = 99
TEST_KEY_UNICODE = 'áéíóúüäåéë¹²³¤'
TEST_KEY_UNICODE_HASH = 'ba418878794230c3f4308e66c70db31dd83f1def4d9381f379c50f42eb88989c'
TEST_NODE_EXPRESSION = 'level_1'
TEST_NODE_EXPRESSION_INVALID = 'leve... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
4bbee182075a9344afaaa9db03b894910f5cdeda | db58ec54f85fd8d4ef6904529c5b17393ee041d8 | /hacker-rank/30-days-of-code/3-intro-to-conditional-statements.py | a18e87e87351ccafc3ade2a2b6eb8288cf2008aa | [
"MIT"
] | permissive | washimimizuku/python-data-structures-and-algorithms | 90ae934fc7d2bac5f50c18e7fbc463ba0c026fa4 | 537f4eabaf31888ae48004d153088fb28bb684ab | refs/heads/main | 2023-08-28T07:45:19.603594 | 2021-11-08T07:53:52 | 2021-11-08T07:53:52 | 334,213,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #!/bin/python3
'''
https://www.hackerrank.com/challenges/30-conditional-statements
Given an integer, n, perform the following conditional actions:
1. If n is odd, print Weird
2. If n is even and in the inclusive range of 2 to 5, print Not Weird
3. If n is even and in the inclusive range of 6 to 20, print Weird
4. If ... | [
"nuno.barreto@inventsys.ch"
] | nuno.barreto@inventsys.ch |
76ab20b11cb7917130d6313dd70fc7c2204486ac | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /HvsBiHLGcsv2ex3gv_17.py | 9eeb06382887e34dbf89828fd97e2c5c4b26d16d | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py |
import math
def shortestDistance(txt):
x1, y1, x2, y2 = list(map(float, txt.split(',')))
return round(((x1 - x2)**2 + (y1 - y2)**2)**.5, 2)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
8a6bdf502895e1b6a3423a37821464cc67432269 | a1c20ec292350a4c8f2164ba21715414f8a77d19 | /edx/5_Joynernacci.py | 968c322ff5cda6dc679e9a0c92205cd2d9a9b575 | [] | no_license | nowacki69/Python | 2ae621b098241a614836a50cb1102094bf8e689f | e5325562801624e43b3975d9f246af25517be55b | refs/heads/master | 2021-08-22T21:30:39.534186 | 2019-09-03T01:21:11 | 2019-09-03T01:21:11 | 168,528,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,488 | py | #Remember that Fibonacci's sequence is a sequence of numbers
#where every number is the sum of the previous two numbers.
#
#Joynernacci numbers are similar to Fibonacci numbers, but
#with two differences:
#
# - Fibonacci numbers are famous, Joynernacci numbers are
# not (yet).
# - In Joynernacci numbers, even-indexed... | [
"nowacki69@gmail.com"
] | nowacki69@gmail.com |
4b9b8076b1e6d35fef5e2416fbeac00933997a38 | 0ed9a8eef1d12587d596ec53842540063b58a7ec | /cloudrail/knowledge/context/environment_context/environment_context_defaults_merger.py | c0aa6175324c16da21d47dff9af6a602a4d700ef | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | cbc506/cloudrail-knowledge | 8611faa10a3bf195f277b81622e2590dbcc60da4 | 7b5c9030575f512b9c230eed1a93f568d8663708 | refs/heads/main | 2023-08-02T08:36:22.051695 | 2021-09-13T15:23:33 | 2021-09-13T15:24:26 | 390,127,361 | 0 | 0 | MIT | 2021-07-27T21:08:06 | 2021-07-27T21:08:06 | null | UTF-8 | Python | false | false | 308 | py | from abc import abstractmethod
from cloudrail.knowledge.context.base_environment_context import BaseEnvironmentContext
class EnvironmentContextDefaultsMerger:
@staticmethod
@abstractmethod
def merge_defaults(scanner_ctx: BaseEnvironmentContext, iac_ctx: BaseEnvironmentContext):
pass
| [
"ori.bar.emet@gmail.com"
] | ori.bar.emet@gmail.com |
646ef078497ec966d63ba0eeb3fa364d0ebe238c | 6aafb5d3e6204a442c0f1afad02c4ab6cbbc290f | /event/mention/models/rule_detectors.py | 728234afa512dcd4677e2d15c7f148ad2ecf8106 | [
"Apache-2.0"
] | permissive | Aditi138/DDSemantics | 22ae526d91e41b728050b6adae8847c6106b7d91 | c76010ea44b21810057c82a7ddbd1c6a3568f5f4 | refs/heads/master | 2020-03-21T11:21:48.622464 | 2018-06-24T15:39:31 | 2018-06-24T15:39:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,116 | py | import math
from event.io.ontology import OntologyLoader
class MentionDetector:
def __init__(self, **kwargs):
super().__init__()
self.unknown_type = "UNKNOWN"
def predict(self, *input):
pass
class BaseRuleDetector(MentionDetector):
def __init__(self, config, token_vocab):
... | [
"hunterhector@gmail.com"
] | hunterhector@gmail.com |
cead45ed6889c6bfe7441b3f734ec81df2680bf8 | 1ec4cd1417ae392deafd52b187cae61964efc8eb | /pheasant/main.py | 098fb43f7e3ea78e4ada77ada1c8a29c771a699c | [
"MIT"
] | permissive | pkestene/pheasant | 4cdfdfeb8a0529ef4ff589698871aea8ee2d2679 | c9465f4fa1bacd7488c049882cb0663bad33feb9 | refs/heads/master | 2022-10-05T19:46:07.647962 | 2020-06-02T22:21:12 | 2020-06-02T22:21:12 | 269,784,793 | 0 | 0 | MIT | 2020-06-05T21:40:27 | 2020-06-05T21:40:26 | null | UTF-8 | Python | false | false | 6,719 | py | import os
import sys
import click
import yaml
from pheasant import __version__
from pheasant.core.page import Pages
pgk_dir = os.path.dirname(os.path.abspath(__file__))
version_msg = f"{__version__} from {pgk_dir} (Python {sys.version[:3]})."
@click.group(invoke_without_command=True)
@click.pass_context
@click.ver... | [
"daizutabi@gmail.com"
] | daizutabi@gmail.com |
13873d164ca16400626328281f48e76f70139854 | 805a795ea81ca8b5cee1dec638585011da3aa12f | /MAIN/SC8/descriptionSetup8.py | a047dd05fd5ebd1065ff27bbb45d935885f0fc4f | [
"Apache-2.0"
] | permissive | josipamrsa/Interactive3DAnimation | 5b3837382eb0cc2ebdee9ee69adcee632054c00a | a4b7be78514b38fb096ced5601f25486d2a1d3a4 | refs/heads/master | 2022-10-12T05:48:20.572061 | 2019-09-26T09:50:49 | 2019-09-26T09:50:49 | 210,919,746 | 0 | 1 | Apache-2.0 | 2022-10-11T01:53:36 | 2019-09-25T19:03:51 | Python | UTF-8 | Python | false | false | 1,328 | py | import bge, bgl # Game engine i logika
import blf # Upravljanje fontovima
import math # Matematicke operacije
# Kontrolerske varijable
cont = bge.logic.getCurrentController() # Aktivni kontroler
sc = bge.logic.getCurrentScene() # Aktivna scena
own = cont.owner # Vlasnik
# Rekalk... | [
"jmrsa21@gmail.com"
] | jmrsa21@gmail.com |
f77cd4d3705f6836da20c19d301506a78fe19fc0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2511/61132/300621.py | 30fd96a4af0f3d26bfc73805f849f6008ed799d4 | [] | 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 | 327 | py | t,k = map(int,input().split())
l=[]
ans=[]
for j in range(t-1):
l.append(int(input()))
for i in range(len(l)):
for le in range(len(l)-i,1,-1):
if le%2==0 and sum(l[i:i+le//2])<=k and sum(l[i+le//2:i+le])<=k:
ans.append(le)
break
else:
ans.append(0)
for i in ans:
p... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e97fcd99d6872281fac7555bf69f72ad04b23bf8 | aa64c62a3d246b87f3f1e5810a8f75b1d166aaf6 | /paradrop/daemon/paradrop/lib/utils/addresses.py | 39e033f7b0d50df4eacfe5692f24ffa180025536 | [
"Apache-2.0"
] | permissive | ParadropLabs/Paradrop | ca40b3373c0732c781f9c10d38da9b6e9fbd3453 | c910fd5ac1d1b5e234f40f9f5592cc981e9bb5db | refs/heads/master | 2023-02-26T17:51:53.058300 | 2022-03-01T17:46:10 | 2022-03-01T17:46:10 | 37,789,450 | 88 | 31 | Apache-2.0 | 2023-02-16T05:24:46 | 2015-06-20T23:18:38 | Python | UTF-8 | Python | false | false | 4,947 | py | ###################################################################
# Copyright 2013-2014 All Rights Reserved
# Authors: The Paradrop Team
###################################################################
import socket
import struct
from paradrop.lib.utils import pdos
def isIpValid(ipaddr):
"""Return True if ... | [
"hartung@cs.wisc.edu"
] | hartung@cs.wisc.edu |
754e5fbd041f370927f124f57bda6382516aab14 | dde00571d8e65208c0642f009cb1d4bc33460026 | /bigmler/tests/test_35_deepnet.py | dd683a5c4bec2ace5d8cd7e21db50ecb0164d84a | [
"Apache-2.0"
] | permissive | javs0188/bigmler | 44e5505f4751ebdfece7da87e4d4592b0da7ff51 | e411bb292a3c8db4cac6754b2b744ffe27fdb47a | refs/heads/master | 2021-03-01T02:08:29.730986 | 2020-01-25T10:43:01 | 2020-01-25T10:43:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,217 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2017-2020 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
57aff09534e2ac61bab36946cf7f415e0d943545 | f24c35bb0919f9ad75f45e7906691c3189536b33 | /chengbinWorkSpace/droneLanding/python/main1.py | 006ebfa79f8a773cf8017786c92d08d5e4727681 | [] | no_license | mfkiwl/supreme-xcb | 9b941f49bab5a811d23a0cd75790d1e5722aa9f0 | d1287657607bf86d4b1393acf285951760670925 | refs/heads/main | 2023-03-07T12:10:28.288282 | 2021-03-02T11:46:00 | 2021-03-02T11:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,158 | py | '''
brief:
Version:
Autor: shuike
Date: 2020-12-31 17:36:47
LastEditors: shuike
LastEditTime: 2020-12-31 17:39:59
FilePath: /droneLanding/python/main1.py
'''
import numpy as np
import time
import cv2
import cv2.aruco as aruco
#with np.load('webcam_calibration_output.npz') as X:
# mtx, dist, _, _ = [X[i] for i in ... | [
"xiechengbinin@gmail.com"
] | xiechengbinin@gmail.com |
1bba11a9a7d0dd0ee37d1de55d8acf5bf381a26f | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/projectdiscovery/client/const.py | ad0cb4b6c30e1654050e4db0e6c4dbd6ccfdb876 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 3,862 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\projectdiscovery\client\const.py
import os
RESROOT = os.path.dirname(__file__) + '\\res\\'
class Texts:
SelectionsLabel = 'Selections'
TaskImageLabel = 'Jovian Tissue Sample'
RankLabel = 'Rank: '
ScoreL... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
7e0ba785a515715cb0fc0bc4a2a9e33058df31f5 | 682581de9e3674d157877756d1a536f5b028c045 | /script/Analysis3b_NW.py | 581494f743f8299a4ad5ac878e03fb7d41090989 | [] | no_license | wchnicholas/ProteinGFourMutants | 3a81b9175e0e5bb864d5723fa59443a3ba07eda6 | dbdd7639187e0b8f22359f404ce4d1d950fcc8a9 | refs/heads/master | 2023-08-16T19:53:02.475407 | 2023-08-03T12:24:44 | 2023-08-03T12:24:44 | 33,599,807 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,443 | py | #!/usr/bin/python
import os
import sys
import operator
import networkx as nx
import numpy as np
from itertools import imap
def all_shortest_paths(G, source, target, weight=None):
if weight is not None:
pred,dist = nx.dijkstra_predecessor_and_distance(G,source,weight=weight)
else:
pred = nx.pred... | [
"wchnicholas@Nicholass-MacBook-Pro.local"
] | wchnicholas@Nicholass-MacBook-Pro.local |
f11e1e87cc797779c10501b1ba6580ef22410b8b | 4f72e1235675562838c84dc7bfc7c97b9139dfd3 | /src/tmdp/programs/pomdp_list/mdp_builder.py | 2214c2518a806b47b79f8552b6517a072fe09599 | [] | no_license | AndreaCensi/tmdp | dcc590cacd5f146b08c6dced132ca601554597f6 | 28d3103eedcc9370e56c96fff8004b8320b90c43 | refs/heads/master | 2021-01-12T19:24:46.987223 | 2014-06-10T01:39:39 | 2014-06-10T01:39:39 | 16,900,103 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,565 | py | from collections import defaultdict
from contracts import contract
from tmdp.sampled_mdp import SampledMDP
__all__ = ['MDPBuilder']
class MDPBuilder():
@contract(start_dist='ddist')
def __init__(self, start_dist):
self._state2id = {}
self._id2state = {}
self._transitions = []
... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
f5d2df5f01ced18550aabed0aec4b75a5f07bb56 | 97f285b6f8016a8d1d2d675fffb771df3c9e37b9 | /study/checkio/Electronic Station/largest_histogram.py | 55dad59f2bd43ea949dc828d939a716654cfe3ff | [] | no_license | oskomorokhov/python | ef5408499840465d18852954aee9de460d0e7250 | 8909396c4200bd2fca19d3f216ed5f484fb2192a | refs/heads/master | 2021-05-14T09:27:25.413163 | 2019-12-12T21:00:05 | 2019-12-12T21:00:05 | 116,327,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,108 | py | #!/usr/bin/env checkio --domain=py run largest-histogram
# https://py.checkio.org/mission/largest-histogram/
# "Your power to choose can never be taken from you.
# It can be neglected and it can be ignored.
# But if used, it can make all the difference."
# ― Steve Goodier
#
# You have a histogram. Try to find size of... | [
"oskom85@gmail.com"
] | oskom85@gmail.com |
4016ca30ee6ed155a0c52f3a9303bb746026353c | 4193a2c27d55bb9069680d624cbc223d9d2f5c0d | /gqlshop/gqlshop/wsgi.py | 16f47a7aa220f67fe8b8ae6fb19e9844dca971a5 | [] | no_license | r2d2-lex/graphql-example | fa517fb7daf9d6a9d779671a608be8980a5a8804 | 4405b70ccf171cb04e0cd4728c782be20b25e552 | refs/heads/master | 2022-12-23T23:44:28.325216 | 2020-10-07T19:14:03 | 2020-10-07T19:14:03 | 291,699,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for gqlshop project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"r2d2-lex@yandex.ru"
] | r2d2-lex@yandex.ru |
3390e4dc6858eccf14bf91fb2b5b5710b7112ae2 | 8b23c09e4f0220a57273845a505c4f52a32c035f | /gallery/photogall/views.py | 600419b8c721e57e67247ee696bbc5d2a3038c21 | [] | no_license | MaryMbugua/PhotoGallery | ca89131211d55e1ad5cd5adb104605c76de2afc7 | 1c3a75c575d91a764c099092192f1c365a92899d | refs/heads/master | 2020-03-15T12:32:48.993521 | 2018-05-10T09:57:14 | 2018-05-10T09:57:14 | 132,146,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from django.shortcuts import render
from django.http import HttpResponse,Http404,HttpResponseRedirect
from .models import Location,Category,Image
# Create your views here.
def landing(request):
images = Image.get_image_by_id()
return render(request,'index.html',{"images":images}) | [
"marymbugua.nm@gmail.com"
] | marymbugua.nm@gmail.com |
30fa2ca302469ae0002ea5b346973437ab8a20b7 | b05b12abb6116440ded3862214c09d7ec7d007d7 | /pin_is_touched.py | f71628c449def5e2bcf685a7f71810a97b9367ac | [] | no_license | cirosantilli/bbc-microbit-cheat | 22713af05173757f0283316d53023f1db21e07cc | 4e503a5e973851b8fe065fcb86f6be4731fee2cd | refs/heads/master | 2021-07-16T04:42:39.000814 | 2016-10-24T21:44:09 | 2016-10-24T21:44:09 | 71,735,591 | 0 | 2 | null | 2021-02-24T16:33:55 | 2016-10-23T23:21:53 | Python | UTF-8 | Python | false | false | 327 | py | """
Check which electric connector pins are touched.
You must also touch the GND pin at the same time to see anything.
"""
from microbit import *
while True:
val = 0
if pin0.is_touched():
val += 1
if pin1.is_touched():
val += 2
if pin2.is_touched():
val += 4
display.show(str... | [
"ciro.santilli@gmail.com"
] | ciro.santilli@gmail.com |
6a240756c57303c77f96f2c2d6e05dec159770f6 | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /6_tree/前缀树trie/好题/Ghost.py | 2dc01dcb317b3e2726dc22fdb00ccba0a1a2dc4e | [] | 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 | 1,153 | py | from collections import defaultdict
from typing import List
# n ≤ 10,000 where n is the length of dictionary.
# 两人轮流报的字符串必须是某个单词前缀,谁先报到整个单词谁输
# 问第一个玩家是否胜利,在两人都最好发挥下
class Solution:
def solve(self, words: List[str]) -> int:
def dfs(cur) -> bool:
if "#" in cur:
retur... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
13e1b504d533a70e45dfe026bb832bb026f4a5dd | 38a028123c2b49590428f1369dae80c5f68d8f18 | /pike/test_util.py | 42609291af5f33efbf6b2f4ad1663dcceba09251 | [
"MIT"
] | permissive | stevearc/python-pike | 2412969768065b05fbde47abb68d281649382725 | 588fd5fae4da4a69f355279df10a3b4a41078ea2 | refs/heads/master | 2016-09-05T15:01:02.274490 | 2014-05-30T08:09:58 | 2014-05-30T08:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | """ Tests for pike.util """
import six
import os
from .test import BaseFileTest
from pike import util, sqlitedict
class TestFileMatch(BaseFileTest):
""" Tests for recursive file glob matching """
def setUp(self):
super(TestFileMatch, self).setUp()
self.make_files(
'app.js',
... | [
"stevearc@stevearc.com"
] | stevearc@stevearc.com |
6dec4b41ccfe3eeec1c52bc3d20b4dd04b5ba518 | 1bf9f6b0ef85b6ccad8cb029703f89039f74cedc | /src/databox/azext_databox/_validators.py | a4339304141cb13037530ae3fa80a48739c595c6 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | VSChina/azure-cli-extensions | a1f4bf2ea4dc1b507618617e299263ad45213add | 10b7bfef62cb080c74b1d59aadc4286bd9406841 | refs/heads/master | 2022-11-14T03:40:26.009692 | 2022-11-09T01:09:53 | 2022-11-09T01:09:53 | 199,810,654 | 4 | 2 | MIT | 2020-07-13T05:51:27 | 2019-07-31T08:10:50 | Python | UTF-8 | Python | false | false | 3,935 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | VSChina.noreply@github.com |
4122aa86f674ce7e19064a2e472a1fb7a4326c1a | 359f3d8a1a2b5524490c314a44d60cec1d06f658 | /whoweb/campaigns/events.py | 767989d855abd54f18cae6be04b6b6fcbe3b9002 | [] | no_license | sivasuriyangithub/Merket_Intellect-s3.route | ec9d9aa7d4575d5ff8006e1454f69e4033193fc0 | 71a9ab642f9a31f4a318cebec7fe6a075870a83c | refs/heads/master | 2023-08-25T13:51:02.116705 | 2021-10-19T01:06:49 | 2021-10-19T01:06:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | PUBLISH_CAMPAIGN = 100, "Publishing Campaign."
PUBLISH_DRIP_CAMPAIGN = 150, "Publishing Drip Campaign."
PAUSE_CAMPAIGN = 300, "Pausing Campaign."
RESUME_CAMPAIGN = 150, "Resuming Campaign."
CAMPAIGN_SIGNATURES = 110, "Generated signatures for publishing campaign manager."
ENQUEUED_FROM_ADMIN = 120, "Enqueued from Admin... | [
"zach@whoknows.com"
] | zach@whoknows.com |
fad6d9954e6d45a6f1f6d6b53e441cbbf1dfdbd2 | a6bb71f951c104ea9a3eb9d7a4ab413f45e84c5b | /aula48-ex01.py | af20f27cc7c9fed8872d8d98839f46245e52fe40 | [] | no_license | romulorm/udemy-python | 7e15621014c124190c18f3e67d6f6fa1f400e4d1 | 4a03ae860b9febad9f04bba0aabda211ccb0169d | refs/heads/master | 2021-05-24T15:07:01.113977 | 2021-03-13T19:28:32 | 2021-03-13T19:28:32 | 253,619,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | '''
Crie uma função que exiba uma saudação com os parâmetros "saudação" e "nome".
'''
def saudacao(msg='Olá', nome='usuário'):
print(f'{msg}, {nome}.')
# PROGRAMA PRINCIPAL
saudacao('Boa noite', 'Leandro')
saudacao('Boa tarde', 'Maria')
saudacao('Hey', 'Joe')
| [
"62728349+romulorm@users.noreply.github.com"
] | 62728349+romulorm@users.noreply.github.com |
2a697457b8a54b77ebffa2225054966f1aafc36f | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4041/434004041.py | 58a9642917b1bb82347f7247422a5ead994c4d21 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 558 | py | from bots.botsconfig import *
from records004041 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'RJ',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BRR', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 10},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
671ef21cb1eabf8b44e4076470681c54059aab6a | cc3f6702388ee8e2f59ade79d1a09b5977934c5c | /run.py | 4e3bd6c6c0ec3bdc0407c415ae3ec0feeffddad1 | [] | no_license | tonyguesswho/fsk | b95024ce90a81a0e1618b423e72c91306ebcd425 | 18de44b37cf5ee7976029d7b2d97af3108813279 | refs/heads/master | 2020-06-01T10:33:26.570197 | 2019-06-07T15:12:19 | 2019-06-07T15:12:19 | 190,750,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from app import app
from db import db
db.init_app(app)
@app.before_first_request
def create_tables():
db.create_all() | [
"anthonyugwu234@gmail.com"
] | anthonyugwu234@gmail.com |
4628f1a901997ee1e00f6288b3b18bed3cca60c5 | 9172bc5c472a89e62444bfb164689d23fb8f1549 | /zh_spider/spiders/example.py | 60a25b86eb028eccfa6f54a893c9e692b7fe3b1e | [
"Apache-2.0"
] | permissive | szqh97/zspider | 74bde989cb3b83384bbe6b4abaeafaac90f02946 | 204bf44fb6de74f122a8678c8141d2743ef9706e | refs/heads/master | 2021-01-10T03:15:54.088548 | 2016-01-05T06:27:27 | 2016-01-05T06:27:27 | 48,946,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | # -*- coding: utf-8 -*-
"""
TODO
"""
import scrapy
from scrapy.http.request import Request
class example(scrapy.Spider):
"""
This is a zhihu user crawler spider
"""
name = "example"
allowed_domains = ["https://zhihu.com"]
start_urls = (
'https://www.zhihu.com/people/excited-vczh',
... | [
"szqh97@163.com"
] | szqh97@163.com |
debf561cc18693e3e094f31b1cb9df8a948b1a11 | 163fe2b466f3f2b5f3f9f218f3252f2cf78afa65 | /begoodPlus/pages/context_processors.py | 019c457fb3419b411ba317f3d83ac69ffcfaa6bf | [] | no_license | nhrnhr0/BeGoodPlus3 | ec711952efcb267f4a9e72b0fb6e370ef5fea04c | 8acead88ccba6d7427b945a7eb98562922d39cd9 | refs/heads/master | 2023-07-30T15:03:41.524737 | 2021-09-26T10:16:04 | 2021-09-26T10:16:04 | 349,965,663 | 0 | 0 | null | 2021-06-15T06:32:39 | 2021-03-21T10:34:15 | JavaScript | UTF-8 | Python | false | false | 224 | py |
from catalogAlbum.models import CatalogAlbum
from django.conf import settings
def navbar_load(request):
albums = CatalogAlbum.objects.all()
return {'albums': albums,
'domain': settings.MY_DOMAIN,
} | [
"ronionsegal@gmail.com"
] | ronionsegal@gmail.com |
df0718ed19926840558ee2e12230c01ad56baf3d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_repents.py | 93675035cf55791d81d47ce5ead5081fe5e2a5b8 | [
"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 | 222 | py |
#calss header
class _REPENTS():
def __init__(self,):
self.name = "REPENTS"
self.definitions = repent
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['repent']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f7f24236f8bf9fb9ba726c09b19bf01307014a4d | 6450234cc5339e9d05102b25b25ba38e2bd9e4cb | /METAnalysis/python/multiplicityReweightedFits.py | c95d50e5b16041d44fef98f33910734426ce69e3 | [] | no_license | wa01/Workspace | 57b87481005c441ab91a8180ddf6ea00b520aca7 | 47759c6a20473f7a694ca9e3fd4e0e8343c8018c | refs/heads/master | 2021-01-15T10:36:55.429420 | 2014-09-20T17:44:54 | 2014-09-20T17:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,944 | py | import ROOT
import pickle
from commons import label
from Workspace.HEPHYPythonTools.helpers import getVarValue
from math import pi, cos, sin, sqrt, atan2
ROOT.gROOT.ProcessLine(".L ../../HEPHYPythonTools/scripts/root/tdrstyle.C")
ROOT.setTDRStyle()
from commons import *
from optparse import OptionParser
parser = Optio... | [
"robert.schoefbeck@cern.ch"
] | robert.schoefbeck@cern.ch |
cfbb894dced5120522fc3ed37442e6412c55cbb1 | 2a1ce1846dc4430f22c0f07c1d52ce8f0affde62 | /mobi/wsgi.py | aa06d265a04f585da3cdf7e33a778c5f4de0f144 | [] | no_license | Belie06Loryn/MobiCashChallenge | e8708cf475b39722f35540a850eac1adc20cfaac | 58144494160e3dada66374131b317a11a0d5b0e1 | refs/heads/master | 2022-11-27T16:50:53.613486 | 2020-05-14T08:05:14 | 2020-05-14T08:05:14 | 236,824,658 | 0 | 0 | null | 2022-11-22T04:57:48 | 2020-01-28T19:41:51 | Python | UTF-8 | Python | false | false | 386 | py | """
WSGI config for mobi project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTING... | [
"maniralexie@gmail.com"
] | maniralexie@gmail.com |
f597058f292cdfbdc5b9f20f0197c632bca897be | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_mesksr_Counting Sheep.py | c3235f1be7a672b4553acacad7c7fb910a20c4d0 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 412 | py | for t in xrange(int(raw_input())):
print "Case #"+str(t+1)+":",
n = int(raw_input())
if (n==0):
print 'INSOMNIA'
continue
c = [False]*10
i = 1
while(i):
temp = n*i
#print temp,
while(temp>0):
c[temp%10]=True
temp = temp/10
flag = 1
for j in range(10):
if (c[j]==False):
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
c8dd804c964155bd1df00e45fd3bfe5049e4ead0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/ESPCN_ID2919_for_PyTorch/utils.py | a0397e06689a1d6780d3782191eb3493be04b221 | [
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,742 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
b4f1975b22f360941d3c806c66a92cd130121e85 | 6f4e925bf4538d104f1e3e9754d4297c5504ab80 | /python/recall/app/core/filelib.py | 4e63aad8618229b0a6bd6f71d4079d4b5bfecad2 | [
"MIT"
] | permissive | kingreatwill/openself | 7f02282da3e0b1f328c3627d83ba2b5ed4563dc8 | 8517d24e665b39371835ecd2ed0cd3509a5d9d62 | refs/heads/master | 2023-01-23T13:15:49.491402 | 2020-11-19T02:39:52 | 2020-11-19T02:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 875 | py | import hashlib
import magic
# pip install python-magic-bin
# pip install python-magic
def __sha1(f):
sha1obj = hashlib.sha1()
sha1obj.update(f.read())
return sha1obj.hexdigest()
def __md5(f):
md5obj = hashlib.md5()
md5obj.update(f.read())
return md5obj.hexdigest()
# 一定要是rb
def sha1(file):... | [
"kingreatwill@qq.com"
] | kingreatwill@qq.com |
20377d1afff2b99076cac037dae5436eae9bc44d | 6a609bc67d6a271c1bd26885ce90b3332995143c | /exercises/binary-tree/lowest_common_ancester_of_a_binary_tree.py | a97468a75332c15acab7e46d66420ce78c3968f5 | [] | no_license | nahgnaw/data-structure | 1c38b3f7e4953462c5c46310b53912a6e3bced9b | 18ed31a3edf20a3e5a0b7a0b56acca5b98939693 | refs/heads/master | 2020-04-05T18:33:46.321909 | 2016-07-29T21:14:12 | 2016-07-29T21:14:12 | 44,650,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | py | # -*- coding: utf-8 -*-
"""
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes v and w as the lowest node in T that has both v and w as descendants (where we allow a node t... | [
"wanghan15@gmail.com"
] | wanghan15@gmail.com |
098519dba7eb3d90f4913982295bb307463d8fe9 | e47d5da2a947c3b3a834817d0b084ee65d302067 | /atcoder.jp/abc150/abc150_a/Main.py | a485c4008d479ffea1699367b473b4ccc6a9ffa0 | [] | no_license | aki-nlp/AtCoder | 3293b9b183c0a8cefbf20d7f4f491c6f1e7604b8 | 9385805cbb1fa158f6d3c4a2415cdf7ba94547e5 | refs/heads/master | 2023-02-25T06:04:10.913237 | 2020-10-03T12:02:00 | 2020-10-03T12:02:00 | 296,792,313 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | k, x = map(int, input().split())
if 500*k >= x:
print('Yes')
else:
print('No') | [
"akiuo.ou@gmail.com"
] | akiuo.ou@gmail.com |
5dcc87d0ce772cdb6f82fc8e7f36c35aeffb7ffe | 062376f05b517606c0257d4855d8d93d482137c1 | /tests/c/test_rand.py | 0a2c3c11f7ed4dde5c6e0710061033828e451c38 | [
"Apache-2.0"
] | permissive | exarkun/opentls | 7047a68ce48c7d9c7aa67458693f7406a4ce60a9 | cc651c597164b26a3dab2b9dd90dd375554ea74c | refs/heads/master | 2021-01-15T21:09:49.086756 | 2013-05-28T12:14:11 | 2013-05-28T12:14:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,811 | py | """Test RAND API
The objective is to test the API wrapper, not the underlying random number
generators. The tests implemented were derived from John D Cook's chapter
in 'Beautiful Testing' titled 'How to test a random number generator'.
http://www.johndcook.com/blog/2010/12/06/how-to-test-a-random-number-generator-2/... | [
"aaron.iles@gmail.com"
] | aaron.iles@gmail.com |
5714f1085c99c3174fc30c88db97f22834805597 | 1ab52d160b72f4b5bc6776175c1a8aaf3cb86e0a | /fb-posts/01_python/22_format_number.py | a0ce2f73453c4f3fa97910f235202a4bd785d4fa | [] | no_license | krakowiakpawel9/live-python | ea3598ceeafca827b53efdf71a6d3156a6fa25b4 | 237b186b48b51f58450290f5ed0146041e0a1135 | refs/heads/master | 2021-04-17T06:10:53.141136 | 2021-03-06T09:53:47 | 2021-03-06T09:53:47 | 249,418,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | import math
print(f'Pi: {math.pi}')
print(f'Pi: {math.pi:.2f}')
print(f'Pi: {math.pi:.4f}')
| [
"krakowiakpawel9@gmail.com"
] | krakowiakpawel9@gmail.com |
3a598385ff90c8c29086dd7913ffb91721b0b6bd | ea6a9bcf02fe7d72df645302909b1de63cdf7fe0 | /test/functional/wallet_listreceivedby.py | ed70700f50b83a960e284a36d7294e4bcac3a672 | [
"MIT"
] | permissive | durgeshkmr/minicoin | 69a834786413122eb2b85731b20f0fda931c7a72 | 4f082abe13cd34a759bf8ffb344a49244615960e | refs/heads/master | 2020-05-04T22:59:23.367524 | 2019-04-06T16:13:28 | 2019-04-06T16:13:28 | 179,529,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,242 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the listreceivedbyaddress RPC."""
from decimal import Decimal
from test_framework.test_framework ... | [
"durgeshkmr4u@gmail.com"
] | durgeshkmr4u@gmail.com |
52bbc6eb71c3b869b7e93c49b39012fbc7bcf6d7 | 4dc31dd8bfd10945f7a5fee31f30c2e634b0534e | /clark_wright.py | 6687d2af2ef4aac6506b4f9eb43d76d106c12b74 | [] | no_license | cfld/clark_wright | 9b89201e1bde33ca9a89cedaaa45bf123578d3ec | c67019c7fa72d3218c1d598968c3c5983277ffa7 | refs/heads/master | 2022-11-05T05:42:48.484236 | 2020-06-16T03:33:48 | 2020-06-16T03:33:48 | 245,242,814 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,452 | py |
class CW:
def __init__(self, edges, D_depot, demand, cap):
self.edges = edges
self.D_depot = D_depot
self.demand = demand
self.cap = cap
self.visited = set([])
self.boundary = set([])
self.routes = {}
self.node2route... | [
"bkj.322@gmail.com"
] | bkj.322@gmail.com |
74af7e3ff926e3da47aa9b11384fb3e63485b7f9 | 67a48a7a2db56247fdd84474efa35124565fd8b9 | /Codeforces/1699/1699a.py | e2bac4651f38bb954ff4ec2732093493998f0ebe | [] | no_license | qazz625/Competitive-Programming-Codes | e3de31f9276f84e919a6017b2cf781c946809862 | e5df9cdc4714d78b7b6a7535ed7a45e07d3781c3 | refs/heads/master | 2022-08-30T07:57:55.172867 | 2022-08-10T08:02:07 | 2022-08-10T08:02:07 | 242,182,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | t = int(input())
for _ in range(t):
n = int(input())
if n%2:
print(-1)
else:
print(0, 0, n//2) | [
"arun49804@gmail.com"
] | arun49804@gmail.com |
c9b1d958615432b28619694863ab1e102dfdf03a | 90bf5542f285765a523697137ad9159d6afd6cd5 | /angulo/app2.py | fba511a8d6b9559f3e8b16d4c2133718e820700d | [] | no_license | AndersonAngulo/T09.Angulo.Damian | c844f8c2c21572c35ea032d0cad5fe46a9bccef1 | 4f1398dc0f6be9e1764527e9efd92ba30160d30e | refs/heads/master | 2020-11-26T13:46:03.902961 | 2019-12-20T18:46:50 | 2019-12-20T18:46:50 | 229,091,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | #funcion2
import libreria1
import os
resultado=libreria1.saludar(os.sys.argv[1],os.sys.argv[2])
print(resultado) | [
"aangulo@unprg.com.pe"
] | aangulo@unprg.com.pe |
8c9398d7e075b0b3b7ea6961cd9ea1db72ad4eb3 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_2_00/brocade_mpls_rpc/show_mpls_interface_detail/__init__.py | 8d04b38e68d2ceaf5dd2047baec812b4a502c53c | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,377 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
83571e8f8f52a978baf403abc8e05e2ae13a9d0c | 72983931fd4b2408399281e01f146e6cd8c38bc4 | /tests/test_transducer.py | 8a78c678aeaebb5b657621b10c589a3c417094ec | [
"Apache-2.0",
"Python-2.0"
] | permissive | templeblock/TiramisuASR | 3a356a4b72d22a9463f9a9ff8801c39a7d88f0ba | 55b1789d956a6d1821b0ebb9ba53fc41e0fda9c2 | refs/heads/master | 2022-11-26T14:30:21.247362 | 2020-08-09T07:16:07 | 2020-08-09T07:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# 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 t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
1de76da91028d525dbb288656b3b8acce8276384 | b18b01b32e67433a6e749e2aae48fb69bcfc42f9 | /titanic-kaggle-competition/pipeline-components/logisticregression/regression.py | 727696deb98b29a16ba65e63a26725e66584d214 | [
"Apache-2.0"
] | permissive | kubeflow/examples | f83c920cb94b32f0271103afb74b3efaaae35b41 | 40cba72b522ca6879672dca24398973c8f0ef32d | refs/heads/master | 2023-09-01T20:39:26.577041 | 2023-08-05T16:51:33 | 2023-08-05T16:51:33 | 119,894,375 | 1,375 | 813 | Apache-2.0 | 2023-08-30T14:40:56 | 2018-02-01T21:13:10 | Jsonnet | UTF-8 | Python | false | false | 1,199 | py | import numpy as np
import pandas as pd
# import seaborn as sns
from matplotlib import pyplot as plt
from matplotlib import style
import argparse
from sklearn import linear_model
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.linear_model import Perce... | [
"noreply@github.com"
] | kubeflow.noreply@github.com |
1e99d4e34865e1143f39cf81363cc1bc435452b4 | bd67c037639aef544df93b83ed72b4682cfb3e30 | /playhouse/tests/test_query_results.py | eb620e4c16ed43fd52e21753c766eaac25743b32 | [
"MIT"
] | permissive | ewarman/peewee | 80d0101853454ed3fb80ed3ee521ca84ff7d263e | 6cc4248f2dcd2f5f56c199414e619527c76a4784 | refs/heads/master | 2021-01-17T17:22:06.562724 | 2016-03-23T14:51:32 | 2016-03-23T14:51:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,277 | py | import itertools
import sys
from peewee import ModelQueryResultWrapper
from peewee import NaiveQueryResultWrapper
from playhouse.tests.base import ModelTestCase
from playhouse.tests.base import skip_test_if
from playhouse.tests.base import test_db
from playhouse.tests.models import *
class TestQueryResultWrapper(Mod... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
14364c67317679c69633bfef740873388273e709 | e74187c3ccb41042fe35953f081e90f671aca9a4 | /src/103_train_lgbm1.py | 4aac2c6c8e5f10f3353a47bdcdd42a5cccc70bed | [] | no_license | lockbro/KDD-Cup-2019 | 1d2bef17ecc4e164c26f4d18b5233889e559d18e | 07bc25eb5a4d9ec33aa9b90fd1ef56de6da89f9d | refs/heads/master | 2021-04-23T17:26:20.559648 | 2019-08-09T11:51:22 | 2019-08-09T11:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,061 | py |
import gc
import json
import lightgbm as lgb
import matplotlib.pyplot as plt
import numpy as np
import os
import pandas as pd
import seaborn as sns
import sys
import time
import warnings
from contextlib import contextmanager
from glob import glob
from sklearn.metrics import f1_score
from sklearn.model_selection impor... | [
"fujiwara52jp@gmail.com"
] | fujiwara52jp@gmail.com |
1b30a149581d0b5b8db7a100fe659f0611e29ef0 | 73d150e0b7de927948f89aa604537b312c69ef4d | /books/migrations/0006_set_start_end_page.py | 3542211e8232b7d5b3b7eabc8f906c44f0d3e612 | [] | no_license | nonZero/Hagadot | f7090f1348a1dac10e095c5d7bde9700b7241680 | cd1735c1c1167c91efd8201ac84d863ada3373fc | refs/heads/master | 2021-04-25T05:49:20.213406 | 2018-04-26T12:24:12 | 2018-04-26T12:24:12 | 113,889,523 | 0 | 2 | null | 2021-03-18T20:33:32 | 2017-12-11T17:41:47 | Python | UTF-8 | Python | false | false | 566 | py | # Generated by Django 2.0.4 on 2018-04-09 21:55
from django.db import migrations
from django.db.models import F
def forwards(apps, schema_editor):
Book = apps.get_model("books", "Book")
db_alias = schema_editor.connection.alias
m = Book.objects.using(db_alias)
m.filter(start_page=None).update(start_p... | [
"udioron@gmail.com"
] | udioron@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.