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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
468645e9619fb25182bf7c27b275edf40ec84218 | afa4ad9cefeb12f78fa7176d2c80d71cc5a76d1c | /clastic/tests/common.py | e1327a4596c8a3033fab40fdefe4c40417973191 | [
"BSD-3-Clause"
] | permissive | slaporte/clastic | 0d88fdc56570de578efcd221d1a5182be661ac97 | d7734040160ece0bf2dd6ef10770be838776056f | refs/heads/master | 2021-01-16T22:36:30.852244 | 2013-09-15T01:43:11 | 2013-09-15T01:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,119 | py | # -*- coding: utf-8 -*-
import clastic
from clastic import Middleware
def hello_world(name=None):
if name is None:
name = 'world'
return clastic.Response('Hello, %s!' % name)
def hello_world_str(name=None):
if name is None:
name = 'world'
return 'Hello, %s!' % name
def hello_world... | [
"[email protected]"
] | |
b4a0be1470e467285d734202a3faced0aa92de3a | 954ceac52dfe831ed7c2b302311a20bb92452727 | /python/tvm/relax/dpl/__init__.py | e0bbdaff05127fcefdd39e14799047773730be0e | [
"Apache-2.0",
"LLVM-exception",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Zlib",
"Unlicense",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | tqchen/tvm | a0e4aefe8b8dccbdbe6f760549bed6e9545ad4a1 | 678d01dd4a4e75ef6186ce356bb1a20e584a7b24 | refs/heads/main | 2023-08-10T02:21:48.092636 | 2023-02-25T18:22:10 | 2023-02-25T18:22:10 | 100,638,323 | 23 | 8 | Apache-2.0 | 2023-02-20T16:28:46 | 2017-08-17T19:30:37 | Python | UTF-8 | Python | false | false | 876 | 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... | [
"[email protected]"
] | |
57ee62c2b454803a41896a4bf9ceef507af16a53 | fa06915cb1f1d49d636ee2137889cfd66c6e55af | /metodos_confinamentos/secante.py | 18e79f85bf7e3f67cb40920e9a009f43320520b7 | [] | no_license | DarknessRdg/mat-computacional | 7ed45dd333bec52b509128e6d106efaa4a205cea | 30fd0dd144a10a91f3a11055d20ebdab72be3620 | refs/heads/main | 2023-04-03T10:27:35.510285 | 2021-04-16T04:30:38 | 2021-04-16T04:30:38 | 329,485,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | import math
from utils import trunc
def secante(x1, x2, funcao, tolerancia):
f_x1 = 0
loop = 0
while loop == 0 or abs(f_x1) > tolerancia:
loop += 1
f_x1 = funcao(x1)
f_x2 = funcao(x2)
x3 = x2 - ((f_x2 * (x1 - x2)) / (f_x1 - f_x2))
feedback = (
'loop ... | [
"[email protected]"
] | |
0e3558e47561e850419df0c5701c93bfd1818048 | 2772f804bae2bf1dad1c9fcab435c98696465c65 | /二刷+题解/每日一题/minCameraCover.py | aba1966661634456e10dc88a4eea8520e49f8eee | [] | no_license | 1oser5/LeetCode | 75e15a2f7a1a7de1251fe5f785ad06a58b4b8889 | 40726506802d2d60028fdce206696b1df2f63ece | refs/heads/master | 2021-07-19T04:40:17.637575 | 2020-09-30T00:16:39 | 2020-09-30T00:16:39 | 211,662,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | # -*- encoding: utf-8 -*-
'''
@File : minCameraCover.py
@Time : 2020/09/22 08:52:25
@Author : Xia
@Version : 1.0
@Contact : [email protected]
@License : (C)Copyright 2019-2020, HB.Company
@Desc : None
'''
# here put the import lib
# Definition for a binary tree node.
# class TreeNode:
# def ... | [
"[email protected]"
] | |
db6ba2fc2635e56052c35ca36a819d6348f32bd3 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/common/Lib/ctypes/macholib/dylib.py | 55b791f15df2416f3ae4ab32269899edf999a3d8 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,276 | py | # 2017.05.04 15:31:20 Střední Evropa (letní čas)
# Embedded file name: scripts/common/Lib/ctypes/macholib/dylib.py
"""
Generic dylib path manipulation
"""
import re
__all__ = ['dylib_info']
DYLIB_RE = re.compile('(?x)\n(?P<location>^.*)(?:^|/)\n(?P<name>\n (?P<shortname>\\w+?)\n (?:\\.(?P<version>[^._]+))?\n (... | [
"[email protected]"
] | |
0eb91115050dd84862b4b5adc45e51414a098dc9 | 5faa3f139f30c0d290e327e04e3fd96d61e2aabb | /mininet-wifi/SIGCOMM-2016/hybridVirtualPhysical.py | a318efac432e79db502409c7800249359668848f | [] | no_license | hongyunnchen/reproducible-research | c6dfc3cd3c186b27ab4cf25949470b48d769325a | ed3a7a01b84ebc9bea96c5b02e0c97705cc2f7c6 | refs/heads/master | 2021-05-07T08:24:09.586976 | 2017-10-31T13:08:05 | 2017-10-31T13:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,853 | py | #!/usr/bin/python
"""Code created to be presented with the paper titled:
"Rich Experimentation through Hybrid Physical-Virtual Software-Defined Wireless Networking Emulation"
authors: Ramon dos Reis Fontes and Christian Esteve Rothenberg"""
"""Topology
(2)ap2(3)
/ \
... | [
"[email protected]"
] | |
21d3f37f0ebe4ec592d700a1d4acdf2080efe131 | c77a40408bc40dc88c466c99ab0f3522e6897b6a | /Programming_basics/Exercise_6/PasswordGenerator.py | d16198682725a9db48d9d7f698aaecd4211c4375 | [] | no_license | vbukovska/SoftUni | 3fe566d8e9959d390a61a4845381831929f7d6a3 | 9efd0101ae496290313a7d3b9773fd5111c5c9df | refs/heads/main | 2023-03-09T17:47:20.642393 | 2020-12-12T22:14:27 | 2021-02-16T22:14:37 | 328,805,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | num = int(input())
let = int(input())
for i_1 in range(1, num+1):
for i_2 in range(1, num+1):
for i_3 in range(97, 97+let):
for i_4 in range(97, 97+let):
for i_5 in range(max(i_1, i_2)+1, num+1):
print(f'{str(i_1)+str(i_2)+chr(i_3)+chr(i_4)+str(i_5)}', end=' ... | [
"[email protected]"
] | |
6d63bfb92c5a72e38f2a7c3c8ebbe32b7e9ad516 | 457e2f5b2a26877df739e314ec1560e8a3ecfb97 | /controllerMaker/controllerMaker.py | 80cee9d6f2d79933805ee707da01d112e70e8ee8 | [] | no_license | mappp7/tools | f6685d9a682bd540d59c1bff0cebb60f79fd6556 | c537e7648112c51ba4f44225418e773ee6b8be6c | refs/heads/master | 2021-01-14T16:40:44.450790 | 2020-10-30T05:30:27 | 2020-10-30T05:30:27 | 242,682,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,757 | py | #encoding=utf-8
#!/usr/bin/env python
#-------------------------------------------------------------------------------
#
# Dexter Rigging Team
#
# yunhyuk.jung
#
# 2017.11.21 ver.1.2.3
#-------------------------------------------------------------------------------
import os
import site
import maya.cmds a... | [
"[email protected]"
] | |
ec3279a0d583a81c3f3babb1c9cf24cf74075378 | 2e4023d59718d87e1940b27ada9155a9a47a7668 | /tests/serialization/serializers_test.py | 78ee84a4e45f73535abd4bd8f1ecd15917121351 | [
"Apache-2.0"
] | permissive | olukas/hazelcast-python-client | c71038a22b73de894320d641dbf617509049c63d | 63bcbaaef0bf755e4e94e8e536d19d964e02144a | refs/heads/master | 2020-03-20T21:27:02.460282 | 2018-06-18T11:50:39 | 2018-06-19T12:02:37 | 137,741,377 | 0 | 0 | null | 2018-06-18T11:02:55 | 2018-06-18T11:02:55 | null | UTF-8 | Python | false | false | 3,526 | py | import binascii
from hzrc.ttypes import Lang
from hazelcast.config import SerializationConfig, INTEGER_TYPE
from hazelcast.serialization.data import Data
from hazelcast.serialization.serialization_const import CONSTANT_TYPE_DOUBLE
from hazelcast.serialization.service import SerializationServiceV1
from tests.base impo... | [
"[email protected]"
] | |
23033e06f849b85dadc20b94437ee03c24802976 | c7f43c4cc0ee84a5fe246b67f51e30b8d726ebd5 | /keras/keras09_mlp.py | 44099b84aa0e9f80008f67c742b96110ca820afa | [] | no_license | 89Mansions/AI_STUDY | d9f8bdf206f14ba41845a082e731ea844d3d9007 | d87c93355c949c462f96e85e8d0e186b0ce49c76 | refs/heads/master | 2023-07-21T19:11:23.539693 | 2021-08-30T08:18:59 | 2021-08-30T08:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import numpy as np
# x = np.array([1,2,3,4,5,6,7,8,9,10]) # 스칼라가 10개인 벡터 x
x = np.array([[1,2,3,4,5,6,7,8,9,10],
[1,2,3,4,5,6,7,8,9,10]]) # 스칼라가 10개인 벡터가 두 개인 행렬
y = np.array([1,2,3,4,5,6,7,8,9,10])
print(x.shape) #(10,) - 스칼라가 10개라는 의미 ----> (2, 10)
| [
"[email protected]"
] | |
5bb5c4b02a0bc44e5dc8e8d0385746704ce0e2bf | d989c42f7122b783bbf330fbb194c8872c947424 | /deutschland/dwd/model/warning_nowcast.py | ed2f3f91637ac4e2040d7329d57b3e024f96839d | [
"Apache-2.0"
] | permissive | auchtetraborat/deutschland | 3c5c206cbe86ad015c7fef34c10e6c9afbc3b971 | fdc78d577c5c276629d31681ffc30e364941ace4 | refs/heads/main | 2023-08-24T08:17:51.738220 | 2021-10-20T19:35:46 | 2021-10-20T19:35:46 | 403,704,859 | 0 | 0 | Apache-2.0 | 2021-09-06T17:19:21 | 2021-09-06T17:19:20 | null | UTF-8 | Python | false | false | 11,997 | py | """
Deutscher Wetterdienst: API
Aktuelle Wetterdaten von allen Deutschen Wetterstationen # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from deutschland.dwd.model_utils import ( # noqa: F401... | [
"[email protected]"
] | |
a01bdca1898fdadec08676b45c4bfbf7d587cc88 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_397/ch6_2020_03_04_19_39_52_514053.py | d80fe50cbca06aa26b98b832df81cd9961a2fad3 | [] | 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 | 61 | py | def celsius_para_fahrenheit (C):
F= C*9/5+32
return F | [
"[email protected]"
] | |
e2bcbcc8eabdb541cdd13185af9f8b4f40943c05 | 79bf34ad2894c92a8ad887404225295595313958 | /ex44d.py | 3641234825b4c46314357fee5adaa74cce562d33 | [
"MIT"
] | permissive | sogada/python | 98ac577a18d709a13ace2a56d27e675edeeb032b | 4bdad72bc2143679be6d1f8722b83cc359753ca9 | refs/heads/master | 2020-04-21T00:12:44.872044 | 2015-10-29T20:18:02 | 2015-10-29T20:18:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | class Parent(object):
def override(self):
print "PARENT override()"
def implicit(self):
print "PARENT implicit()"
def altered(self):
print "PARENT altered()"
class Child(Parent):
def override(self):
print "CHILD override()"
def altered(self):
print "CHIL... | [
"[email protected]"
] | |
5bdd168eca6ca9a05b5765cb0375fb4bd7b45dc1 | 16f0171b1aecb8d104a208df4953884a9ab97b26 | /googlenet_regression/get_regressions_batch.py | 5412aac0db52a3a1cebf4611c8f5168f70565739 | [] | no_license | gombru/LearnFromWebData | 97538dd91822a0e2a7d12084cde0d9dbf64f3c70 | 163447027c856004836abe40d9f653ec03da0702 | refs/heads/master | 2020-03-24T23:12:43.819864 | 2018-08-01T12:25:10 | 2018-08-01T12:25:10 | 143,123,717 | 13 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,341 | py | import caffe
import numpy as np
from PIL import Image
import os
caffe.set_device(0)
caffe.set_mode_gpu()
test = np.loadtxt('../../../datasets/SocialMedia/word2vec_mean_gt/test_InstaCities1M.txt', dtype=str)
# test = np.loadtxt('../../../datasets/WebVision/info/test_filelist.txt', dtype=str)
#Model name
model = 'WebV... | [
"[email protected]"
] | |
d9bb751f34c8e257138dea53f4f9867ddfaf4d38 | 522ef4ac3fcf82c54cec31e494f3ad86fb2fa0cf | /apps/users/views.py | 151cdac264a1a0aa4b565f6d81d01517b973dd07 | [] | no_license | yanshigou/hydrology_mgmt | 845b124ee7fc726db83024458d222ca6edd71acf | 701149c7beebaca169ad7183434dc2004963e6cf | refs/heads/master | 2022-04-09T00:28:15.470710 | 2019-12-30T02:56:55 | 2019-12-30T02:56:55 | 209,734,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,325 | py | # -*- coding: utf-8 -*-
from django.views import View
from django.contrib.auth import authenticate, login, logout
from django.http import HttpResponseRedirect, JsonResponse
from django.contrib.auth.hashers import make_password
from django.shortcuts import render
from rest_framework.views import APIView
from .forms impo... | [
"[email protected]"
] | |
db6f9e619cc3eb6af96cb90589f32f741554459c | c78ce4f66cc964c230ad60fbf2ced6b4811eab89 | /0x10-python-network_0/6-peak.py | ab8163dbefd2215b422669954178d075b0be06a2 | [] | no_license | jebichii/holbertonschool-higher_level_programming-1 | 89026557909851dd775ae355f036db89ebd9adb9 | 741953aa479af90e8eac6f1315415eff4a20224f | refs/heads/master | 2023-03-15T14:58:27.062528 | 2020-06-11T07:21:23 | 2020-06-11T07:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/python3
"""
Provides a function to find a peak element in an unsorted list of integers
"""
def find_peak(integers):
"""
Finds a peak element in an unsorted list of integers
"""
if not integers:
return None
if len(integers) == 1:
return integers[0]
if len(integers) ==... | [
"[email protected]"
] | |
d3644245fbb6e118e01fef312221feff42ab5904 | 892c35f72f46f145c3f3860c1c29f1f4503ef9a6 | /solid/management/commands/solid_utils.py | bf76df8227f11afddcb1cdf4ef3e92ed3ccaa1ab | [] | no_license | pymmrd/tuangou | aaa2b857e352f75f2ba0aa024d2880a6adac21a8 | 8f6a35dde214e809cdd6cbfebd8d913bafd68fb2 | refs/heads/master | 2021-01-10T20:31:55.238764 | 2013-11-13T13:53:53 | 2013-11-13T13:53:53 | 7,911,285 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | import os
from django.conf import settings
def gen_dest_tmpl(html, tmpl, flag=None):
tmpl = tmpl.replace('dy_tags', 'tags')
sub_dir, filename = tmpl.rsplit('/', 1)
if flag:
filename = flag
tmpl_dir = os.path.join(settings.TEMPLATE_DIRS[0], sub_dir)
if not os.path.exists(tmpl_dir):
... | [
"zg163@zg163-Lenovo-IdeaPad-Y470.(none)"
] | zg163@zg163-Lenovo-IdeaPad-Y470.(none) |
e3ae61193e0a2880e6eb878f379a07f656630931 | a722faf9fb50c794555861bb4858c3ed8a7a25f3 | /contest/atcoder/abc095/D/main.py | 7f2f0044567a122b8832c3dbfb0972c08712b132 | [] | no_license | ar90n/lab | 31e5d2c320de5618bc37572011596fee8923255d | 6d035e12f743e9ba984e79bfe660967b9ca8716b | refs/heads/main | 2023-07-25T17:29:57.960915 | 2023-07-22T12:08:18 | 2023-07-22T12:08:18 | 77,883,405 | 4 | 0 | null | 2023-07-17T08:45:14 | 2017-01-03T04:15:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,428 | py | #!/usr/bin/env python3
import sys
from collections.abc import Iterable
from math import *
from itertools import *
from collections import *
from functools import *
from operator import *
try:
from math import gcd
except Exception:
from fractions import gcd
def solve(N: int, C: int, x: "List[int]", v: "List[in... | [
"[email protected]"
] | |
5edbe851415c7f12fe01314ef03eec162a7e5354 | 1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e | /configs/deeplabv3plus/deeplabv3plus_r101-d8_512x512_40k_voc12aug.py | 9e3cd3501becb0dd284113d675963a2c474b247b | [
"Apache-2.0"
] | permissive | CAU-HE/CMCDNet | 2328594bf4b883384c691099c72e119b65909121 | 31e660f81f3b625916a4c4d60cd606dcc8717f81 | refs/heads/main | 2023-08-08T17:21:57.199728 | 2023-07-28T07:34:40 | 2023-07-28T07:34:40 | 589,927,845 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | _base_ = './deeplabv3plus_r50-d8_512x512_40k_voc12aug.py'
model = dict(pretrained='open-mmlab://resnet101_v1c', backbone=dict(depth=101))
| [
"[email protected]"
] | |
f925b0bbc8dff7cade5763ea534cd301ea570730 | d36471a481ff0ff71aa277d14928a48db9b6140b | /melons.py | 1ecfacead0e3930d7b11d129e6adb944e4fa10f5 | [] | no_license | Quynhd07/melons-classes | ca0e47f694cc6337136ca2431f7a856e9135b3ea | f668d5fd97dd7c3a37bd26bbfe2310324fdd388c | refs/heads/master | 2020-12-30T00:40:33.897567 | 2020-02-07T21:05:17 | 2020-02-07T21:05:17 | 238,799,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | """Classes for melon orders."""
class AbstractMelonOrder():
"""An abstract base class that other Melon Orders inherit from."""
def __init__(self, species, qty):
"""Initialize melon order attributes."""
self.species = species
self.qty = qty
self.shipped = False
def get_to... | [
"[email protected]"
] | |
2d283c29a7787686b4bcf6f95235d830ff3d30c7 | 2359121ebcebba9db2cee20b4e8f8261c5b5116b | /configs/d4_16.py | 9cb1b39825a598c084e3817351bc0cf9c8b9f6e7 | [] | no_license | EliasVansteenkiste/plnt | 79840bbc9f1518c6831705d5a363dcb3e2d2e5c2 | e15ea384fd0f798aabef04d036103fe7af3654e0 | refs/heads/master | 2021-01-20T00:34:37.275041 | 2017-07-20T18:03:08 | 2017-07-20T18:03:08 | 89,153,531 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,394 | py |
#config a6 is equivalent to a5, except the normalization
import numpy as np
import lasagne as nn
from collections import namedtuple
from functools import partial
import lasagne.layers.dnn as dnn
import lasagne
import theano.tensor as T
import data_transforms
import data_iterators
import pathfinder
import utils
import... | [
"[email protected]"
] | |
c0a323d6563dda7c8ac2b49d827352f6379ba03d | caed98915a93639e0a56b8296c16e96c7d9a15ab | /DP/stocks/Stock_II.py | 5ec46fcd78856a48fdfcf6ebdb61c059e7384e15 | [] | no_license | PiyushChandra17/365-Days-Of-LeetCode | 0647787ec7e8f1baf10b6bfc687bba06f635838c | 7e9e9d146423ca2c5b1c6a3831f21dd85fa376d5 | refs/heads/main | 2023-02-13T10:41:36.110303 | 2021-01-17T11:58:51 | 2021-01-17T11:58:51 | 319,974,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | class Solution:
def maxProfit(self, prices: List[int]) -> int:
return sum(max(prices[i+1]-prices[i],0)for i in range(len(prices)-1))
| [
"[email protected]"
] | |
5acd1660ba5455bc1084047dc66d3485dde5efb6 | fb9c24e1e27c930881f54a0d609683983c726cec | /main/migrations/0032_auto_20210326_1139.py | 9fac8da7459eaeeeeff9e17fe2d1e1408b18388e | [] | no_license | Safintim/flower-shop | 6ba28f3f82912bcedd8c7d1e259557cda729410e | 92c0b7488b5370fc5512d6ce85f0e76a2a55bdbd | refs/heads/master | 2023-04-08T18:48:43.866959 | 2021-04-14T10:18:06 | 2021-04-14T10:18:06 | 254,976,051 | 0 | 0 | null | 2020-06-06T08:55:36 | 2020-04-11T23:50:58 | Python | UTF-8 | Python | false | false | 371 | py | # Generated by Django 3.1.7 on 2021-03-26 11:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0031_auto_20210326_1118'),
]
operations = [
migrations.DeleteModel(
name='Callback',
),
migrations.DeleteModel(
... | [
"[email protected]"
] | |
6895432cdb44dcd345003bed6d3af69f1745cbce | 2c7f99ff86d1786d133df13a630d62e7dcc63fab | /google/cloud/dialogflow_v2/services/conversation_profiles/transports/base.py | 5768948c216410b18bbda0988ae8fa09340f5c83 | [
"Apache-2.0"
] | permissive | rlindao/python-dialogflow | 2141b7181506210c6cfffb27bb9599ad21261c28 | 8958e562bb159b00bb1fc0fa97e5ffd35dea058d | refs/heads/master | 2023-04-06T15:09:14.888871 | 2021-04-16T21:34:24 | 2021-04-16T21:34:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,312 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"[email protected]"
] | |
0b9347644b1ad62f3f1deb8668c660a135c70885 | e89509b453632747077bc57dbec265a7703d5c7c | /list/listappend.py | a2ddb719341f157c2047747bdda0aa142f51df03 | [] | no_license | Madhav2108/udemy-python-as | a9dcfdbfdc1bb85471aa66de77957e962a7c5486 | 0bc6a501516618fb3c7ab10be6bc16c047aeec3f | refs/heads/master | 2023-03-30T11:25:16.064592 | 2021-03-30T18:10:46 | 2021-03-30T18:10:46 | 286,001,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | List = []
print(List)
List.append(1)
List.append(2)
List.append(4)
print(List)
for i in range(1, 4):
List.append(i)
print(List)
List.append((5, 6))
print(List)
List2 = ['For', 'Geeks']
List.append(List2)
print(List)
List.insert(3, 12)
List.insert(0, 'Geeks')
print(List)
List.extend([8... | [
"[email protected]"
] | |
1ac4822dd02e34f946f4183122d8a6b5ec804d02 | ba949e02c0f4a7ea0395a80bdc31ed3e5f5fcd54 | /problems/greedy/Solution678.py | f37f62721d5aa37063dd666a0d011a7ac22e9daa | [
"MIT"
] | permissive | akaliutau/cs-problems-python | 6bc0a74064f6e9687fe58b13763da1fdf2e1f626 | 9b1bd8e3932be62135a38a77f955ded9a766b654 | refs/heads/master | 2023-05-11T22:19:06.711001 | 2021-06-04T11:14:42 | 2021-06-04T11:14:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | """ Given a string containing only three types of characters: '(', ')' and '*',
write a function to check whether trightBoundarys string is valid. We define
the validity of a string by these rules:
Any left parenthesis '(' must have a corresponding right parenthesis ')'. Any
right parenthesis ')' must... | [
"[email protected]"
] | |
9ea9323c06957ea63a4699fe72b9431a47cd9117 | e35fd52fe4367320024a26f2ee357755b5d5f4bd | /leetcode/problems/313.super-ugly-number.py | 704a9e40a9a97991c2693e51d1623cb6c3511bc7 | [] | no_license | liseyko/CtCI | a451967b0a0ce108c491d30b81e88d20ad84d2cd | c27f19fac14b4acef8c631ad5569e1a5c29e9e1f | refs/heads/master | 2020-03-21T14:28:47.621481 | 2019-11-12T22:59:07 | 2019-11-12T22:59:07 | 138,658,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | #
# @lc app=leetcode id=313 lang=python3
#
# [313] Super Ugly Number
#
# https://leetcode.com/problems/super-ugly-number/description/
#
# algorithms
# Medium (43.02%)
# Total Accepted: 67.2K
# Total Submissions: 156.3K
# Testcase Example: '12\n[2,7,13,19]'
#
# Write a program to find the n^th super ugly number.
#
... | [
"[email protected]"
] | |
81f2637a8ed5c8510fcc5945d5235d911e45462f | 7c68212791621363da7f007b1ef449597937d20c | /day_1/operator_shorthand.py | 7070ebe9f8fe49ba7490762189795e3db53c65f3 | [
"MIT"
] | permissive | anishLearnsToCode/python-workshop-8 | c1ad5c2f06b435b612acc28544180b47c86fb24f | 0f64bfa7cf175283181b6e7f51a5e3b80d4b6b60 | refs/heads/main | 2023-02-07T11:55:48.372944 | 2021-01-03T08:41:33 | 2021-01-03T08:41:33 | 325,730,441 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | # variable [operator]= var_2 / value
# i = i + 1 --> i += 1
# result = result + i --> result += i
# var /= 5 --> var = var / 5
# i *= 3--> i = i * 3
# prod %= 10 --> prod = prod % 10
| [
"[email protected]"
] | |
33fbb86f0c1d4774178156a30d673684559ba579 | ced56909016fb7c2175c3911fc8481bd5fdf0800 | /pytext/metric_reporters/disjoint_multitask_metric_reporter.py | 83d419bc152137138df46faa0ff3715e14e05512 | [
"BSD-3-Clause"
] | permissive | coderbyr/pytext | e258a3aae625e6a2fd386b60f25ac44a7b4149fe | 72c1ad835a30bef425494b02a6210f2e3232b1a4 | refs/heads/master | 2022-11-20T09:11:44.991716 | 2020-07-20T22:05:42 | 2020-07-20T22:07:15 | 281,286,078 | 1 | 0 | NOASSERTION | 2020-07-21T03:32:42 | 2020-07-21T03:32:41 | null | UTF-8 | Python | false | false | 4,013 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import Dict, Optional
from pytext.common.constants import BatchContext
from .metric_reporter import MetricReporter
AVRG_LOSS = "_avrg_loss"
class DisjointMultitaskMetricReporter(MetricReporter):
lower_is_... | [
"[email protected]"
] | |
a566a7e2e4d20ec72b89062af4c532ed1123f14f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-hss/huaweicloudsdkhss/v5/model/list_port_statistics_response.py | 13b10f29de59c0c0d34e2530004b515adf013fcb | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,349 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListPortStatisticsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and ... | [
"[email protected]"
] | |
3eab1b761be0160d622ff707caaff063326f4b71 | 6c5ce1e621e0bd140d127527bf13be2093f4a016 | /ex021/venv/Scripts/easy_install-3.7-script.py | e7deca8d0b6f3b28588ce8d8072d461ed000115f | [
"MIT"
] | permissive | ArthurAlesi/Python-Exercicios-CursoEmVideo | 124e2ee82c3476a5a49baafed657788591a232c1 | ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd | refs/heads/master | 2022-12-31T13:21:30.001538 | 2020-09-24T02:09:23 | 2020-09-24T02:09:23 | 268,917,509 | 0 | 0 | null | null | null | null | ISO-8859-2 | Python | false | false | 508 | py | #!C:\Users\User\Documents\github-MeusRepositórios\Python-Exercicios-CursoEmVideo\ex021\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__... | [
"[email protected]"
] | |
a4e86864532a808b15b5e79338f65769c9f59ef7 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/Default/FPythonCode/FOperationsGenerators.py | d6dd072a59bc78f8da23b710047f349b73f6dd9e | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | """ Compiled: 2020-09-18 10:38:53 """
#__src_file__ = "extensions/operations/etc/FOperationsGenerators.py"
#-------------------------------------------------------------------------
# Generator for generating pairs of related objects.
#-------------------------------------------------------------------------
class Pa... | [
"[email protected]"
] | |
d2ec78700adbdabb41836c5003016d18c394db8a | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /test/promotesale/QueryFullReductionTest.py | 872c46b84243b6ed269a15938975388fe619df59 | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 2014-10-17
@author: suning
'''
import sys
import os
basepath = os.path.dirname(os.path.abspath(sys.argv[0]))+"/../../"
sys.path.append(basepath)
import suning.api as api
a=api.QueryFullReductionRequest()
a.pageNo='1'
a.pageSize='2'
a.startTime='2014-09-09 12:... | [
"[email protected]"
] | |
bc91f6c3d59ca8f650fe1a4456caba86df29ab50 | bee9d96912078d68877aa53e0c96537677ec3e6a | /peakpo/control/jcpdscontroller.py | 45d17941513eb3e86946eed8c7238ac55fde688b | [
"Apache-2.0"
] | permissive | SHDShim/PeakPo | ce0a637b6307787dd84fd3dcb3415e752d180c32 | 4c522e147e7715bceba218de58ee185cccd2055e | refs/heads/master | 2022-06-26T11:26:45.097828 | 2022-06-19T22:03:24 | 2022-06-19T22:03:24 | 94,345,216 | 17 | 3 | null | null | null | null | UTF-8 | Python | false | false | 11,139 | py | import os
import copy
from PyQt5 import QtWidgets
from PyQt5 import QtCore
from PyQt5 import QtGui
# import matplotlib.pyplot as plt
from matplotlib import colors
import matplotlib.cm as cmx
from .mplcontroller import MplController
from .jcpdstablecontroller import JcpdsTableController
from utils import xls_jlist, dial... | [
"[email protected]"
] | |
ee987dc97b5aa0a7529752d0e719651d989c6283 | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/d0d3b906-00e8-4b06-aa81-423fdf44d307__mergesort.py | 4121ebe48ffcab855687335df0292d65e95b9edb | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | # nlogn, divide and conquer
# recursive
def merge_sort(int_array):
# base case
if len(int_array) == 0:
return None
elif len(int_array) == 1:
return int_array
# recursive step
else:
l = len(int_array)/2
first_half = int_array[:l]
second_half = int_array[l:]
... | [
"[email protected]"
] | |
d8e84cf721c759a8fde3138782a033b35746d27f | c09a4b4f02849c03ba536edda2bf920b655be6bc | /wyl/mvis2uvd.py | 915db718f98decc67ab738874bf2d62bda69f28b | [] | no_license | jpober/brownscripts | 33bcc70a31694dfb06f1314adb1402316540108c | c25789ec765b018eaad59d99a0a4264c75655265 | refs/heads/master | 2021-01-23T22:01:19.004636 | 2020-11-12T18:39:14 | 2020-11-12T18:39:14 | 57,912,669 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | import sys,optparse,aipy,glob
import numpy as np, mp2cal
import pyuvdata.uvdata as uvd
o = optparse.OptionParser()
o.set_usage('mvis2uvd.py [options] obsid') #only takes 1 obsid
o.set_description(__doc__)
o.add_option('-d',dest='datpath',default='/users/wl42/data/wl42/FHD_out/fhd_MWA_PhaseII_EoR0/',type='string', hel... | [
"[email protected]"
] | |
1713babd927c9dfa4224e1ad3277567e37cb7907 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/util/bin/format/pdb2/pdbreader/symbol/AbstractUnknownMsSymbol.pyi | 09fd912dc8f16775243884f29d4f2ce850338007 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 702 | pyi | import ghidra.app.util.bin.format.pdb2.pdbreader.symbol
import java.lang
class AbstractUnknownMsSymbol(ghidra.app.util.bin.format.pdb2.pdbreader.symbol.AbstractMsSymbol):
def emit(self, __a0: java.lang.StringBuilder) -> None: ...
def equals(self, __a0: object) -> bool: ...
def getClass(self) -> ... | [
"[email protected]"
] | |
cfa3740ba18f9384af22770130b7148306057883 | a96f603b34525f97c4b2fdca9f329aa38ffcc18c | /models/result_time_table_model.py | a705bdd8dd445e922470a4421768a1975e585705 | [] | no_license | mparlaktuna/capraz_sevkiyat2.0 | d1fbdaaeeec4c4113448aa18b0e58457ca2ad0e5 | 3d350826084230e2c71b57e0b587e193d72b2985 | refs/heads/master | 2020-04-06T07:11:14.641477 | 2016-08-26T14:43:25 | 2016-08-26T14:43:25 | 59,899,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class ResultTimeTableModel(QAbstractTableModel):
def __init__(self, results, number_of_trucks, truck_name):
super(ResultTimeTableModel, self).__init__()
self.times = results.times
try:
self.v_hea... | [
"[email protected]"
] | |
dbdda969b4f93ff83be9126e3528a31fdc8bacf4 | cbc3c3e602996fe5561b06545593f1a9a2401f42 | /heranca/EmpregadoHorista.py | 607bc67e665402c8d950d86dc556ddda133ded26 | [] | no_license | ricdtaveira/poo-python | fc06040acd032975e355edf62a8c2983f1d37972 | 3ecba2ccfcc84f79cfc1ef5247c017e58f36c8d4 | refs/heads/master | 2021-10-24T17:57:57.051213 | 2019-03-27T00:10:47 | 2019-03-27T00:10:47 | 105,895,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | '''
Classe Empregado Horista
'''
from Empregado import Empregado
class EmpregadoHorista(Empregado):
'''
Empregado Horista
'''
def __init__(self, primeiro_nome, ultimo_nome, salario):
super().__init__(primeiro_nome, ultimo_nome, salario)
self.__horas = 0
def calcular_pagamento(self):
'''
Calcula o Pagam... | [
"[email protected]"
] | |
4ebdf94e0d8f96f9ac8d65ae46ad57e3e7daeee4 | 73332abdcadb62f4f262d0c30856c3c257a9ee7d | /tests/environments/__init__.py | d8f2ee2ede569a4f0b62f68bcf1956da8c7c993e | [
"BSD-2-Clause"
] | permissive | code-google-com/oyprojectmanager | 454435604cc150c1b54ec2c54294e0fa05490f82 | 3085ecbe1cc04a73ec69b4848b789009546feae7 | refs/heads/master | 2021-01-19T02:40:56.342086 | 2015-01-26T16:40:00 | 2015-01-26T16:40:00 | 32,266,400 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2012, Erkan Ozgur Yilmaz
#
# This module is part of oyProjectManager and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
| [
"[email protected]"
] | |
63530f10dc7fdc29a90fb8237fa885a8b7cc9f3b | 590facf811b9ad0e55e5eafbe6a5ed796d76b521 | /apps/meetup/migrations/0003_auto_20190428_1649.py | 607f35d32482cdf39d2c2855c8736906f8e3ef7c | [] | no_license | wangonya/questioner_django | 6193fa779121135b5c903fef599a5bc873107b52 | b598d4337b3acc39adf3ef972e50f2d750376ac0 | refs/heads/develop | 2020-05-16T11:59:16.778797 | 2019-05-01T16:43:29 | 2019-05-01T16:43:29 | 183,032,935 | 2 | 1 | null | 2019-05-01T16:43:30 | 2019-04-23T14:29:33 | Python | UTF-8 | Python | false | false | 1,083 | py | # Generated by Django 2.2 on 2019-04-28 16:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('meetup', '0002_auto_201904... | [
"[email protected]"
] | |
50be68b9ed14bc6e7cfa7d618467ffe4b3831cf6 | 1fc35e54ee4723cfa3d13de713895eac30616847 | /baekjun/stage solve/14.sort/2750.py | 5c0dafb7b9d7c5d8d8c61146fee82535d5d55b6e | [] | no_license | yhs3434/Algorithms | 02f55a5dc21085c0a17d9eaec5e3ba0cbd6d651d | 24d234a301077aac1bc4efbb269b41a963cedccf | refs/heads/master | 2021-07-12T19:21:00.446399 | 2021-01-20T01:44:27 | 2021-01-20T01:44:27 | 226,431,877 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # 수 정렬하기
# https://www.acmicpc.net/problem/2750
import sys
sys.setrecursionlimit(1000000)
def solution(nums):
quickSort(nums, 0, len(nums)-1)
return nums
def quickSort(arr, left, right):
if left>=right:
return
pivot = arr[right]
i = left
j = left
while j<right:
if arr[j] ... | [
"[email protected]"
] | |
ac33194bffd378e21c7449116b073668876615e6 | d99ac626d62c663704444a9cce7e7fc793a9e75e | /windows_asm_dump/dump_asm.py | 919d0f476a5fa34c1e8c990412b5ca361122bb57 | [] | no_license | Experiment5X/CryptoFunctionDetection | 3ab32d5573a249d24db1faf772721bc80b8d905d | dac700193e7e84963943593e36844b173211a8a1 | refs/heads/master | 2023-04-19T09:12:35.828268 | 2021-05-13T22:39:27 | 2021-05-13T22:39:27 | 355,299,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | import os
import re
import subprocess
from pathlib import Path
from collections import OrderedDict
class BinaryCollection:
def __init__(self, in_directory, out_directory):
self.in_directory = in_directory
self.out_directory = out_directory
def process_all(self, limit=500):
binarie... | [
"[email protected]"
] | |
b6f72bb86b3a305dc12f17daf5ed00670c12a129 | 485b781c6000259f4f27a9380e75ef76b04dd79d | /tests/expectdata/statements/load_stockrow_cat_quarterly.py | 0ea5ee39e665b3c4d3c63adda507d1df4f0a1294 | [
"MIT"
] | permissive | azafrob/py-finstmt | 5858693d2d78647c69dff46802d56a4e143ca9e1 | 7903bce83b31e4425ac680020bf7d3536ed1ed11 | refs/heads/master | 2023-08-25T02:39:50.898489 | 2020-12-30T22:57:10 | 2020-12-30T22:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,768 | py | import pandas as pd
LOAD_STOCKROW_CAT_Q_INDEX_str = ["2009-12-31 00:00:00", "2010-03-31 00:00:00", "2010-06-30 00:00:00", "2010-09-30 00:00:00", "2010-12-31 00:00:00", "2011-03-31 00:00:00", "2011-06-30 00:00:00", "2011-09-30 00:00:00", "2011-12-31 00:00:00", "2012-03-31 00:00:00", "2012-06-30 00:00:00", "2012-09-30 0... | [
"[email protected]"
] | |
f9f574a4d00a771aa40f9ddee1222b2e1cf2f25b | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/lib/python3.9/site-packages/pylint/checkers/refactoring/recommendation_checker.py | b1175f03e03853db4ae7d542287abf40d715df6b | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 4,749 | py | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
import astroid
from pylint import checkers, interfaces
from pylint.checkers import utils
class RecommendationChecker(checkers.BaseChecker):
__implements__ = (inter... | [
"[email protected]"
] | |
47633761925b05cb7b78e248675293d5b8f9b673 | c74c907a32da37d333096e08d2beebea7bea65e7 | /kaikeba/cv/week6/Week 6 coding/model/network.py | 0d65271f2868c98a4052e0036c292fdbae18f056 | [] | no_license | wangqiang79/learn | 6b37cc41140cc2200d928f3717cfc72357d10d54 | e4b949a236fa52de0e199c69941bcbedd2c26897 | refs/heads/master | 2022-12-25T06:24:39.163061 | 2020-07-13T15:43:13 | 2020-07-13T15:43:13 | 231,796,188 | 2 | 2 | null | 2022-12-08T07:03:05 | 2020-01-04T16:45:33 | Jupyter Notebook | UTF-8 | Python | false | false | 1,057 | py | import torch.nn as nn
import torchvision.models as models
from model.module import Block, Bottleneck, DownBottleneck, Layer
#pytorch Torchvision
class ResNet101v2(nn.Module):
'''
ResNet101 model
'''
def __init__(self):
super(ResNet101v2, self).__init__()
#下采样2倍
self.conv1 = Bl... | [
"[email protected]"
] | |
67b5e8386db8e4569b1d1edacc6de547975d3b74 | af626ade966544b91fbfe0ea81fc887f1b8a2821 | /qa/rpc-tests/python-bitcoinrtxrpc/setup.py | fdfe9d34717f62f28824291c40f42b658d4ca311 | [
"MIT"
] | permissive | kunalbarchha/bitcoinrtx-old | 91f2b36a50e009151c61d36e77a563d0c17ab632 | 42c61d652288f183c4607462e2921bb33ba9ec1f | refs/heads/master | 2023-03-13T22:46:36.993580 | 2021-03-04T13:01:00 | 2021-03-04T13:01:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python2
from distutils.core import setup
setup(name='python-bitcoinrtxrpc',
version='0.1',
description='Enhanced version of python-jsonrpc for use with Bitcoinrtx',
long_description=open('README').read(),
author='Jeff Garzik',
author_email='<[email protected]>',
ma... | [
"[email protected]"
] | |
a54826ebaa280ca23aad774cb3f6aec445632e62 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2561/60639/261665.py | 65b5061f633e844981dc12f1881df53161da5a40 | [] | 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 | 446 | py | def solution(n,x,arr1,arr2):
sum=0
for i in range(n*n):
if x-arr1[i] in arr2:
sum+=1
else:
continue
print(sum)
t=int(input())
for i in range(t):
inp=input().split()
n=int(inp[0])
x=int(inp[1])
arr1=[]
arr2=[]
for i in range(n):
arr1+=l... | [
"[email protected]"
] | |
6c8789550af13191f5d64b9eb7d8bbbced53484a | d2f6140a45b234711c0b6bce9ab98c9468d6041e | /homework/2014-20/similar_hw_3/HenryRueda_primos.py | d98f69dad28fbfccad7005e984d6a50995f81e42 | [] | no_license | ComputoCienciasUniandes/MetodosComputacionalesDatos | 14b6b78655ed23985ecff28550934dec96f6373b | ecc7c21ca13a3b7bbdc7a8ef5715e8c9bf6e48cf | refs/heads/master | 2020-04-10T14:17:03.465444 | 2017-06-09T15:02:57 | 2017-06-09T15:02:57 | 12,526,572 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,369 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys,math
if len(sys.argv)<2:
print('\nNo hay suficiente información\n'.format(sys.argv[0]))
sys.exit(0)
Maximo=1000000
n=int(sys.argv[1])
if n<0:
print('\nEl número ingresado es negativo\n'.format(Maximo))
if n == 0:
print ('\n{} no es un... | [
"[email protected]"
] | |
d6246ef699c47ce3d1bbcf801835f3fac4236d8f | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/third_party/2and3/werkzeug/test.pyi | 764b76d8e78bf0f973af8fbcc504bf8dfd79edde | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 5,957 | pyi | import sys
from wsgiref.types import WSGIEnvironment
from typing import Any, Generic, Optional, Text, Tuple, Type, TypeVar, overload
from typing_extensions import Literal
if sys.version_info < (3,):
from urllib2 import Request as U2Request
from cookielib import CookieJar
else:
from urllib.request import Re... | [
"[email protected]"
] | |
5478f0ed6e84d36a081197e9e17ed5b0e151144f | 7fa08c93ff0caa4c86d4fa1727643331e081c0d0 | /brigid_api_client/models/__init__.py | 116e0784876b77021f16b674f520d34edb77dc10 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | caltechads/brigid-api-client | 760768c05280a4fb2f485e27c05f6ae24fbb7c6f | 3e885ac9e7b3c00b8a9e0cc1fb7b53b468d9e10a | refs/heads/master | 2023-03-23T03:11:02.446720 | 2021-03-13T00:47:03 | 2021-03-13T00:47:03 | 338,424,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,175 | py | """ Contains all the data models used in inputs/outputs """
from .action_response import ActionResponse
from .action_response_errors import ActionResponseErrors
from .application import Application
from .applications_list_expand import ApplicationsListExpand
from .applications_retrieve_expand import ApplicationsRetrie... | [
"[email protected]"
] | |
ec5779ee0e273f9ab8b597108e3e042acb1ccd27 | 591900bf248906d0c80fbb02174b0c3be6de376f | /torch_scatter/__init__.py | e43f88eefbc902eb16d43b425fbd5f348a6e202f | [
"MIT"
] | permissive | xychen9459/pytorch_scatter | 0e02a2028faa98acc30fa3b7b082ea52cab5f70c | b9570ccd71622f9a7b2d311a1607bb3914801743 | refs/heads/master | 2020-04-17T00:09:30.541736 | 2018-12-27T11:37:55 | 2018-12-27T11:37:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | from .add import scatter_add
from .sub import scatter_sub
from .mul import scatter_mul
from .div import scatter_div
from .mean import scatter_mean
from .std import scatter_std
from .max import scatter_max
from .min import scatter_min
__version__ = '1.1.0'
__all__ = [
'scatter_add',
'scatter_sub',
'scatter... | [
"[email protected]"
] | |
9d5d983d5ff01859848e01029c4cf4bd7a80dd09 | 730a0291d90bf220d162791287e422bc4225d164 | /pymodel/__init__.py | 4963a551029dcecb2c1fe1c933778d788cf10017 | [
"BSD-3-Clause"
] | permissive | jon-jacky/PyModel | 27442d062e615bd0bf1bd16d86ae56cc4d3dc443 | 457ea284ea20703885f8e57fa5c1891051be9b03 | refs/heads/master | 2022-11-02T14:08:47.012661 | 2022-10-16T09:47:53 | 2022-10-16T09:47:53 | 2,034,133 | 75 | 36 | NOASSERTION | 2021-07-11T21:15:08 | 2011-07-12T04:23:02 | Python | UTF-8 | Python | false | false | 87 | py | """
Make this directory a package so it can be installed with one line in setup.py
"""
| [
"[email protected]"
] | |
a771d28bdbf0a941f858c851bbe836950980bc83 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Python/Core/Lib/idlelib/Bindings.py | 896d83102673640507f98caa05d20c390622944e | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 3,003 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: Bindings.py
"""Define the menu contents, hotkeys, and event bindings.
There is additional configuration informati... | [
"[email protected]"
] | |
3992e4cfa297274e2d85355c42f979d6de7326c2 | f52997ac7e1b41f34018c3a0028ced8638072b2b | /src/peoplefinder/migrations/0090_data_person_new_country.py | 1745636c4926fcb0b87247bd92c8f80294e57bf4 | [
"MIT"
] | permissive | uktrade/digital-workspace-v2 | 49fae1fca819b625c6f6949fb5ce51b89fbcab96 | 7e328d0d55c9aa73be61f476823a743d96e792d0 | refs/heads/main | 2023-09-03T12:03:47.016608 | 2023-09-01T12:07:55 | 2023-09-01T12:07:55 | 232,302,840 | 6 | 0 | MIT | 2023-09-13T15:50:24 | 2020-01-07T10:41:18 | Python | UTF-8 | Python | false | false | 820 | py | # Generated by Django 3.2.13 on 2022-05-23 13:15
from django.db import migrations
def insert_person_new_country(apps, schema_editor):
Person = apps.get_model("peoplefinder", "Person")
Country = apps.get_model("countries", "Country")
all_people = Person.objects.select_related("country").all()
country... | [
"[email protected]"
] | |
03960f0f3fa5ef588fe7de7fb3dff054e493b677 | 90e1f9d99ab05ce34380f7b63ec3c6a2f02f3d62 | /src/team503/src/traffic_sign_detect/CNN_3channels_4conv.py | 18f641b42ae797f3a77c79becae44d8dd3b29087 | [] | no_license | sihcpro/The-Number1c-Rac1ng | eb038099c8deb6fbb6e88cde60c7a7f25474e5da | 856434acec52f52a8784199180692abbdb4a49e8 | refs/heads/master | 2020-04-12T10:07:24.182205 | 2019-01-15T22:21:43 | 2019-01-15T22:21:43 | 162,419,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | import pickle
import cv2
from sklearn.utils import shuffle
import tensorflow as tf
TRAIN_DATA_DIR = "data/raw/training/augmented/"
TEST_DATA_DIR = "data/raw/testing"
# TEST_DATA_DIR = "data/raw/testing/00014"
CNN_MODEL_DIR = "model/CNN/3cnn_4conv.ckpt"
PICKLE_IMGS_DIR = "data/pickle/train_imgs_56.pkl"
PICKLE_LABELS_DI... | [
"[email protected]"
] | |
89fbdba1b70cdb22da26e68b9978fd3abcd9e436 | 6e3e1834eaad3a0c97bf645238e59a0599e047b4 | /blog/feeds.py | 720465e3999af4b68079e03f4bb4db306ed758e4 | [
"JSON"
] | permissive | davogler/davsite | 2dc42bfebb476d94f92520e8829999859deae80b | edd8ceed560690fa2c3eefde236416ffba559a2e | refs/heads/master | 2021-01-19T06:31:20.655909 | 2014-01-03T19:04:13 | 2014-01-03T19:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from django.core.exceptions import ObjectDoesNotExist
from django.utils.feedgenerator import Atom1Feed
from django.contrib.sites.models import Site
from django.contrib.syndication.views import Feed
from blog.models import Category, Entry
current_site = Site.objects.get_current()
class LatestEntriesFeed(Feed):
aut... | [
"[email protected]"
] | |
408be7c9835520057e0fd69759857a3e3bc02f1d | b0b87924d07101e25fa56754ceaa2f22edc10208 | /workspace/python_study/Woojae_nam/Wu/Day11-05.py | e07fe32103a8b2b11607f10373a2d4d795669ccd | [] | no_license | SoheeKwak/Python | 2295dd03e5f235315d07355cbe72998f8b86c147 | e1a5f0ecf31e926f2320c5df0e3416306b8ce316 | refs/heads/master | 2020-04-02T13:49:58.367361 | 2018-11-23T09:33:23 | 2018-11-23T09:33:23 | 154,499,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,792 | py | ## 영상 처리 및 데이터 분석 툴
from tkinter import *; import os.path ;import math
from tkinter.filedialog import *
from tkinter.simpledialog import *
## 함수 선언부
def loadImage(fname) :
global window, canvas, paper, filename, inImage, outImage, inW, inH, outW, outH
fsize = os.path.getsize(fname) # 파일 크기 확인
inH = inW = ... | [
"[email protected]"
] | |
2746f2bfab9222260e2d22482a7b2408971cda51 | f7ba8dfe90d5ddf2c2f90950fc36a91cf43f84c6 | /data/create_server.py | 7d3c811bc2a978c4baf1577fab5339a0e7767aaa | [] | no_license | Sazxt/asu-ngentod | 7e9f5c3fd563d9cc52eb886e697f3344b7e19b25 | cc3d4f830efb383bef3c3eda9e30b528ca7ce7f9 | refs/heads/master | 2020-07-27T21:48:52.966235 | 2019-09-18T05:32:13 | 2019-09-18T05:32:13 | 209,225,278 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 33,006 | py |
d=[35, 45, 42, 45, 99, 111, 100, 105, 110, 103, 58, 117, 116, 102, 45, 56, 45, 42, 45, 10, 35, 32, 67, 111, 100, 101, 100, 32, 66, 121, 32, 68, 101, 114, 97, 121, 10, 39, 39, 39, 10, 9, 32, 82, 101, 98, 117, 105, 108, 100, 32, 67, 111, 112, 121, 114, 105, 103, 104, 116, 32, 67, 97, 110, 39, 116, 32, 109, 97, 107, 101,... | [
"[email protected]"
] | |
6d935daa518bfb71dc1ec9c4b2da0127e0dcea10 | 2d5d13c4bdc64202a520f32e7d4a44bb75e2004f | /week-02/d04/substr.py | ebcf9c90389536fc31a978afb81cdf52ff7d22e8 | [] | no_license | green-fox-academy/andrasnyarai | 43b32d5cc4ad3792ef8d621328f9593fc9623e0b | 19759a146ba2f63f1c3e4e51160e6111ca0ee9c3 | refs/heads/master | 2021-09-07T16:19:34.636119 | 2018-02-26T00:38:00 | 2018-02-26T00:38:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # Create a function that takes two strings as a parameter
# Returns the starting index where the second one is starting in the first one
# Returns -1 if the second string is not in the first one
input = "this is what I'm searching in"
input_word = "searching"
def searching(sentence, word):
s_index = sentence.fin... | [
"[email protected]"
] | |
27e4ddb0ceff016becbe4500d30ff6f059b91134 | 9fb13659c6c73996581fb252ef33ef589392770b | /test_utilities/src/d1_test/mock_api/tests/test_create.py | ad6d8382c9c6dd166ce7ff5c8bbaf0ca676a6362 | [
"Apache-2.0"
] | permissive | xlia/d1_python | ea9585c462cb1e4f2d50ff1c9ce17a33e7649265 | c4745e70a00b14fc1d8c66c6995a2d150ef69956 | refs/heads/master | 2021-09-07T08:48:02.123106 | 2018-02-20T14:59:33 | 2018-02-20T14:59:33 | 113,352,728 | 0 | 0 | null | 2018-02-20T14:39:00 | 2017-12-06T18:28:20 | Python | UTF-8 | Python | false | false | 2,064 | py | # -*- coding: utf-8 -*-
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2016 DataONE
#
# Licensed under the Apache License, Version 2.0 ... | [
"[email protected]"
] | |
45a1455cad84d3b82f52be1726c8da09b1788c0b | 1b8a99a4ff80da51dc81dd8354bf9bf1cbd25a8b | /2022/special_array_with_x_elements_greater_than_or_equal_x.py | 1eed93272f0a62c0218b8b94b721fe028f723576 | [] | no_license | eronekogin/leetcode | ea639eebe0cd70af9eb4cba59bc68f636d7b3e0c | edb870f83f0c4568cce0cacec04ee70cf6b545bf | refs/heads/master | 2023-08-16T10:35:57.164176 | 2023-08-14T11:25:33 | 2023-08-14T11:25:33 | 163,679,450 | 0 | 0 | null | 2021-09-09T12:04:44 | 2018-12-31T15:33:06 | Python | UTF-8 | Python | false | false | 624 | py | """
https://leetcode.com/problems/special-array-with-x-elements-greater-than-or-equal-x/
"""
class Solution:
def specialArray(self, nums: list[int]) -> int:
sortedNums = sorted(nums, reverse=True)
N = len(nums)
for i in range(N):
x = i + 1
if sortedNums[i] >= x: # ... | [
"[email protected]"
] | |
55d553eca6268f2d5ec4ae4a218148c431371d37 | 68ac39d3f59988f3a5e581041a76d8d6c2f00d5d | /happy/HappyNodeTcpReset.py | 0ff3935eb6ed51ce7a5d6958029ecaa0617f4a7c | [
"Apache-2.0"
] | permissive | emargolis/happy | 62f274ff21e8be66922e239acaf7bbb6f53cea27 | 40d6e216d1a671c14b72e7e59f23b98cbda5d954 | refs/heads/master | 2021-01-16T15:16:25.950683 | 2020-02-26T20:04:06 | 2020-02-26T20:07:05 | 243,164,644 | 0 | 0 | Apache-2.0 | 2020-02-26T04:02:20 | 2020-02-26T04:02:19 | null | UTF-8 | Python | false | false | 4,586 | py | #!/usr/bin/env python
#
# Copyright (c) 2016-2017 Nest Labs, 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/licen... | [
"[email protected]"
] | |
f135199afee7f107d21a2bfe38d95e98e0ca3a85 | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_Mchi-1_Mphi-250_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_260000_2_cff.py | 2cc85603244e7765849bf89b190cab40e038ff29 | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,893 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:34673', '1:12127', '1:12785', '1:18734', '1:18816', '1:18193',... | [
"[email protected]"
] | |
4f410a564f81eef398f188eb979ce9c032a2ffb0 | a2c90d183ac66f39401cd8ece5207c492c811158 | /Solving_Problem/daily_222/1205/4991.py | 93e9003c98ad92771f5ba370d3f2e866995051df | [] | no_license | kwoneyng/TIL | 0498cfc4dbebbb1f2c193cb7c9459aab7ebad02a | c6fbaa609b2e805f298b17b1f9504fd12cb63e8a | refs/heads/master | 2020-06-17T11:53:38.685202 | 2020-03-18T01:29:36 | 2020-03-18T01:29:36 | 195,916,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,848 | py | from collections import deque
from heapq import heappop, heappush
near = [[-1,0], [0,1], [1,0], [0,-1]]
def val_cha(st,ed):
temp = [i[:] for i in bd]
sx,sy = ht[st]
ex,ey = ht[ed]
serve = deque()
serve.append([sx,sy])
cnt = 0
while serve:
cnt += 1
for i in range(len(serve))... | [
"[email protected]"
] | |
7c65675d6822a7edaf6bb50bacade930252936a7 | 6e3b8a04a074c30cf4fc43abe7a208f772df795b | /Data Types and Variables - Exercise/Task1.py | c017814f490a499fbf7b164e9cedce6713f5cc9e | [] | no_license | majurski/Softuni_Fundamentals | dc0808fdaab942896eebfb208fb6b291df797752 | bf53a9efdcb45eb911624ab86d762a6281391fb8 | refs/heads/master | 2022-11-29T06:06:06.287984 | 2020-08-10T19:36:18 | 2020-08-10T19:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | a = int(input())
b = int(input())
c = int(input())
d = int(input())
sum = a + b
division = int(sum / c)
ends = division * d
print(ends) | [
"[email protected]"
] | |
e67f7e37e6cce0a557a8d702c6bab8d31037acd8 | 5b764b91be0016ee703fca41927b1438487e797b | /pygamerogue/tile.py | eda25d37c3805ae806fde03cb4b3db35b0634853 | [
"BSD-3-Clause"
] | permissive | mikolasan/pyroguelike | b33b7a959144b9b115ae4876da0d620b33a28eb3 | d51b01a566b5edb39792b59d683b4bf827399ba4 | refs/heads/master | 2021-07-23T23:06:28.822059 | 2021-01-11T16:57:58 | 2021-01-11T16:57:58 | 179,420,626 | 0 | 1 | BSD-3-Clause | 2021-07-07T15:32:36 | 2019-04-04T04:20:26 | Python | UTF-8 | Python | false | false | 3,755 | py | import pygame
rogue_size = (48, 48)
def map_to_pixel(x, y):
return x * rogue_size[0], y * rogue_size[1]
class Tile:
def __init__(self, size, map_pos, pos, background_color, border_color, symbol, padding, text_color):
self.size = size
self.pos = {}
if map_pos is not None:
... | [
"[email protected]"
] | |
fe98cd8e2fe048a0813b442454d71bc1d015a7fc | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/heatmap/legendgrouptitle/font/_color.py | 992adc73b123157b72fc2cd128fd797dbab38c2d | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 427 | py | import _plotly_utils.basevalidators
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="color", parent_name="heatmap.legendgrouptitle.font", **kwargs
):
super(ColorValidator, self).__init__(
plotly_name=plotly_name,
parent... | [
"[email protected]"
] | |
b104bc898e027c3443ab38096375afb2acb94686 | 9da8754002fa402ad8e6f25659978bd269bbcec8 | /src/25B/cdf_25B.py | 1a7bf3d9cd25f7a4eea1b9be350dfa6db25c93c0 | [
"MIT"
] | permissive | kopok2/CodeforcesSolutionsPython | a00f706dbf368ba0846c8ae86d4145b5dd3e1613 | 35bec0dbcff47765b123b5fe60476014376153df | refs/heads/master | 2023-02-02T03:08:22.097651 | 2020-12-17T22:00:50 | 2020-12-17T22:00:50 | 196,035,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | class CodeforcesTask25BSolution:
def __init__(self):
self.result = ''
self.n = 0
self.number = ''
def read_input(self):
self.n = int(input())
self.number = input()
def process_task(self):
result = []
if self.n % 2:
result.append(self.numb... | [
"[email protected]"
] | |
8074f01904bff39c1ebfd7683a6d575784de2172 | e0fc7493f4339145792f54bcd7124acea500ca45 | /cpc/utils/ErrorHandler.py | a4971a3eda2ee541bbc19b681e53610fa2d843b3 | [
"BSD-3-Clause"
] | permissive | U-Ar/Cpresto | d52d99e8d44ed01c87c8911614d744cae695d6aa | f723458fb237c9e3e8bc8a6afdf7c81858a65363 | refs/heads/main | 2023-05-14T15:28:38.449783 | 2021-06-06T15:07:14 | 2021-06-06T15:07:14 | 364,445,894 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | import sys
class ErrorHandler:
def __init__(self,progid,stream=None):
if stream == None:
self.stream = sys.stderr
else:
self.stream = stream
self.program_id = progid
self.n_error = 0
self.n_warning = 0
def error(self,msg,loc=None):
if... | [
"[email protected]"
] | |
a0ef8d57867120d76e7dd3c1b572137bdeb51bf6 | f7550c4964dc8f3c59dbcebe39e947bd6a264dba | /2.OOPS/Exception Handling.py | 05dac8b2c108980738fc273289f4f8795461eb72 | [] | no_license | Jashwanth-k/Data-Structures-and-Algorithms | db5e2e30932e0a35db578c19ae6cff9f147b7c3d | 1ebf9986999a474cb094f3ab04616a46f2887043 | refs/heads/main | 2023-08-25T02:57:17.394322 | 2021-10-11T15:27:56 | 2021-10-11T15:27:56 | 402,448,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | while True:
try:
n = int(input('enter the numerator :'))
num = int(n)
n = int(input('enter the denominator :'))
denom = int(n)
value = (num / denom)
print(value)
break
except ValueError:
print('Numerator and Denominator must be integers... | [
"[email protected]"
] | |
9404e5e1138ec41fc2bad63449226d1cd0cc38c6 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/domain_category_service_client_config.py | db4f358f4636c9982c5622eefbd7626ab8796369 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 815 | py | config = {
"interfaces": {
"google.ads.googleads.v4.services.DomainCategoryService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_retry_delay_... | [
"[email protected]"
] | |
4142964e5405ab44216a3c53d6d75234942ac6d4 | 76a8ea60480331f0f61aeb61de55be9a6270e733 | /downloadable-site-packages/Bio/Phylo/TreeConstruction.py | c6c95154385d69c86f76450b142cbf940399a862 | [
"MIT"
] | permissive | bhagyas/Pyto | cd2ec3f35bec703db4ac29b56d17abc4bf03e375 | 907024a9b3e04a2a9de54976778c0e1a56b7b83c | refs/heads/master | 2022-11-19T13:05:07.392454 | 2020-07-21T17:33:39 | 2020-07-21T17:33:39 | 281,886,535 | 2 | 0 | MIT | 2020-07-23T07:48:03 | 2020-07-23T07:48:02 | null | UTF-8 | Python | false | false | 42,982 | py | # Copyright (C) 2013 by Yanbo Ye ([email protected])
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Classes and methods for tree construction."""
import itertools
import copy
from Bio.Phylo im... | [
"[email protected]"
] | |
9cb938048f68b47602170f1e3f23275c9c1e5941 | 9594585cc05dded72740774a3d6058971386dd9a | /boss/core/exc.py | 80e4e91c50c60fee37aa3030542ce45190324e3a | [
"BSD-3-Clause"
] | permissive | derks/boss | 3a22044d9542ba249f95fd7081e86f3451c16134 | 8b81ddfb9b44dab018329a304a5e5a75fa20b060 | refs/heads/master | 2021-01-18T05:37:47.894064 | 2013-06-27T21:01:20 | 2013-06-27T21:01:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | """Boss core exceptions module."""
class BossError(Exception):
"""Generic errors."""
def __init__(self, msg):
Exception.__init__(self)
self.msg = msg
def __str__(self):
return self.msg
class BossConfigError(BossError):
pass
class BossRuntimeError(BossError):
... | [
"[email protected]"
] | |
9bf5e88c23ba62c7ced22432faab87c0a1c3156b | 7a73fef9ae426c48573bae41447cef7cb2b97bf6 | /dynamicserialize/dstypes/com/raytheon/uf/common/activetable/request/MergeActiveTableRequest.py | b3377e84d97d8c41ce0f2b475a4807acc2653016 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mjames-upc/python-awips | 7f0a80a04457224c9e195b82a95eef4d9b2b3091 | e2b05f5587b02761df3b6dd5c6ee1f196bd5f11c | refs/heads/master | 2020-03-31T03:00:49.540816 | 2018-10-05T23:15:42 | 2018-10-05T23:15:42 | 53,707,817 | 0 | 0 | null | 2017-04-12T18:00:59 | 2016-03-12T01:46:57 | Python | UTF-8 | Python | false | false | 2,304 | py | ##
##
# File auto-generated against equivalent DynamicSerialize Java class
class MergeActiveTableRequest(object):
def __init__(self, incomingRecords=[], tableName='PRACTICE', site=None,
timeOffset=0.0, xmlSource=None, fromIngestAT=False,
makeBackups=True):
self.incomingR... | [
"[email protected]"
] | |
7a5c1835b9399907b133264cb54216162991db72 | 0a775e8d1057b2608a8d46499124105776ff4062 | /web/manage.py | c5cff1a9dce87821e9827c52812f60cd4df2e7c3 | [
"MIT"
] | permissive | x5g/CubeSolver | f3a1ad6e5e3bd5a2becc10a002d473f2902ec867 | 451ae8f580038d3840cd9279cbdbcd2c13f5045d | refs/heads/master | 2022-07-19T06:59:53.505115 | 2021-04-30T16:09:47 | 2021-04-30T16:09:47 | 217,885,447 | 1 | 1 | MIT | 2022-06-22T02:38:46 | 2019-10-27T16:44:49 | Python | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'CubeSolver.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"[email protected]"
] | |
5a2be43121e2fbabfc3199ed5c3014b5bf1cd034 | 803ff496aff9eef77f3186991878b6f16e54ba0a | /customer_support/views.py | 83fd375d8b727d67dc000ab4457b99c6ea137792 | [] | no_license | gopal1992/ssadmin | c54dae22dd69e48730affc1cdba0c0ee17b1e48c | 96370e8fc108843a70b326d5b136be94ae0b3084 | refs/heads/master | 2016-09-09T22:44:35.003945 | 2015-01-24T10:15:12 | 2015-01-24T10:15:12 | 29,772,729 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,570 | py | # -*- coding: utf-8 -*-
from django.contrib import messages
from django.core.urlresolvers import reverse
from django.shortcuts import render, redirect
from django.views.decorators.http import require_http_methods
from django.views.generic import TemplateView
from django.views.generic.edit import FormView, UpdateView
... | [
"[email protected]"
] | |
fa828b53566c090450afc3f58298ab733534ac3e | 11cf40946c55b47886cfe8777916a17db82c2309 | /conways1.py | a2da35410469f1db5aecd4755355f109e8add686 | [] | no_license | dalalsunil1986/python_the_hard_way_exercises | fc669bf2f823a4886f0de717d5f1ca0d0233f6af | bc329999490dedad842e23e8447623fd0321ffe0 | refs/heads/master | 2023-05-03T01:35:24.097087 | 2021-05-16T00:43:56 | 2021-05-16T00:43:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | # Conway's Game of Life
import random, time, copy
WIDTH = 60
HEIGHT = 20
# Create a list of list for the cells:
nextCells = []
for x in range(WIDTH):
column = [] # Create a new column.
for y in range(HEIGHT):
if random.randint(0, 1) == 0:
column.append('O') # Add a living cell.
els... | [
"[email protected]"
] | |
c86c98ae72815124b24d3ae32ec5d6a1d90a7dca | 324d9bc6747873173cf457d563665f59005c0efc | /apps/users/views.py | ff8c38e6a8d915aa28bdd5f5db1eb3e22a995a8c | [] | no_license | jzxyouok/movie-1 | fd220618ce8c03bc3dc33d5b39a81547097653b2 | 650c05389aaefb84544d2246bf8436bed7157547 | refs/heads/master | 2020-06-03T16:00:01.479269 | 2018-05-30T09:22:43 | 2018-05-30T09:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,829 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse
from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.hashers import... | [
"[email protected]"
] | |
4b3999bceb135ae43088f2acd45fd813a32aa724 | 330899fd4a9653e05e2a09e0a4f30c119af97ad4 | /python/hidet/tos/modules/nn.py | 3d1c65c10d426d6b2298130ea875a54bbf014694 | [
"Apache-2.0"
] | permissive | yaoyaoding/hidet-artifacts | f8a4707c7fc28aa7bfa4dab3a9f2a9387c020f99 | f2e9767bb2464bd0592a8ec0b276f97481f13df2 | refs/heads/main | 2023-04-30T13:12:57.350002 | 2023-04-24T19:37:34 | 2023-04-24T19:37:34 | 551,692,225 | 3 | 1 | Apache-2.0 | 2022-11-01T23:25:17 | 2022-10-14T22:40:28 | Python | UTF-8 | Python | false | false | 5,063 | py | from typing import Optional, Union, List
import math
from hidet.tos import ops
from hidet.tos.common import normalize
from hidet.tos.module import Module, Tensor
from hidet.tos.tensor import randn, zeros, ones
from hidet.tos.modules.container import Sequential, ModuleList
class Conv2d(Module):
def __init__(self, ... | [
"[email protected]"
] | |
a3b7d2043d073baae61c82a62a7baf513e5463d4 | 117aaf186609e48230bff9f4f4e96546d3484963 | /others/FilterTable/main.py | c18d99d897d4e53baba8675c35fbb4fd3a1f0667 | [
"MIT"
] | permissive | eyllanesc/stackoverflow | 8d1c4b075e578496ea8deecbb78ef0e08bcc092e | db738fbe10e8573b324d1f86e9add314f02c884d | refs/heads/master | 2022-08-19T22:23:34.697232 | 2022-08-10T20:59:17 | 2022-08-10T20:59:17 | 76,124,222 | 355 | 433 | MIT | 2022-08-10T20:59:18 | 2016-12-10T16:29:34 | C++ | UTF-8 | Python | false | false | 1,326 | py | import csv
import sys
from PyQt4 import QtGui
from PyQt4 import uic
from PyQt4.QtCore import QString
from PyQt4.QtGui import QTableWidgetItem
filter_class = uic.loadUiType("filter.ui")[0]
class Filter_window(QtGui.QWidget, filter_class):
def __init__(self, parent=None, *args, **kwargs):
QtGui.QMainWindo... | [
"[email protected]"
] | |
240e6d72e883cd5d44adc7bc87f9e6646c36762c | aa0270b351402e421631ebc8b51e528448302fab | /sdk/paloaltonetworks/azure-mgmt-paloaltonetworksngfw/generated_samples/post_rules_delete_minimum_set_gen.py | 37e8eb6f0bb63131b561033cfb6c8b88a6e137ab | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 1,613 | 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 ... | [
"[email protected]"
] | |
9a05bb883ba068c5b2d77669562c68b4b2037e4b | 9d2d6b29662ee32dfaef72504cc85981f29b5fca | /volat.py | 6fe5fee87019a4ae22e903cdb5163b91378e111a | [] | no_license | jingmouren/Volatility-Prediction | 63e9ed1705e23330a34e3bb4bf5091b1f680cff2 | 36d1dd79ffa8f2af6baed12f81b6003c58aea4c4 | refs/heads/main | 2023-08-26T06:51:43.204776 | 2021-10-31T17:01:51 | 2021-10-31T17:01:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,592 | py | # The function below takes the file name corresponding to a stock and returns the stock_id
def stock_id(name):
import re
i = re.search(r'\d+', name).group(0)
i = int(i)
return i
# The function below takes the path of a folder containing stock files and returns a list of the contained file paths
# sort... | [
"[email protected]"
] | |
cbe5f43ddfbfbe7b436a28d4810339b2291dcf95 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-1706.py | e71fa3edcf5b892e227597f755678d3066f64bc5 | [] | 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,349 | 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,... | [
"[email protected]"
] | |
0eafa771e434cc47da07d9832275df08bc7e0215 | ccd27037d13c0288aae5d94e616c659ce2a713a0 | /donor/migrations/0001_initial.py | b2964b3233b6f9785178e02fc623f4e664a5e3c9 | [] | no_license | AniketShahane/ZeroDay-01 | 99ce4dad366b778851518a07a34ab9d100246ed5 | 2a12c6965fdbc9c1f1db3d2f207861a7ddcb62e8 | refs/heads/master | 2020-04-21T11:14:03.077996 | 2019-02-11T13:21:31 | 2019-02-11T13:21:31 | 169,516,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | # Generated by Django 2.1.5 on 2019-02-06 08:07
import datetime
from django.db import migrations, models
import django.db.models.deletion
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"[email protected]"
] | |
f8f7e6aff74349c59cce9401e12149fb28ed8f8b | 208bc8b87cb20fc6e57c8c8846cbe947b2eec1f3 | /pyocd/coresight/cortex_m_v8m.py | ca01e71819f240e6e35497dc4209539e8afd50ac | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | canerbulduk/pyOCD | 28c545f25ef9b2949a1cd49c00faeeda986a26fe | a61e8b8dc2050309510d9fe7ca63680aafe06749 | refs/heads/main | 2023-08-24T21:10:52.427697 | 2021-11-09T15:13:48 | 2021-11-09T15:13:48 | 426,275,463 | 0 | 0 | Apache-2.0 | 2021-11-09T15:08:22 | 2021-11-09T15:08:21 | null | UTF-8 | Python | false | false | 7,538 | py | # pyOCD debugger
# Copyright (c) 2019-2020 Arm Limited
# Copyright (c) 2021 Chris Reed
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"[email protected]"
] | |
964be754ef86bec5917a57c625ad4ed6a31349f8 | dcafbc9a6eea2b0e9aabc527b93cd97d270a67af | /tests/test_cli.py | 1cc1282f4575e65d72cfcb43033f27022e631d72 | [
"MIT"
] | permissive | bfontaine/edt2ics | 83fbd51540d7887e049be90efb70f382110dafaf | 1245f174694c30a42c489d831970c32ae42c0b0d | refs/heads/master | 2021-05-15T01:55:46.595212 | 2015-01-05T11:31:48 | 2015-01-05T11:31:48 | 24,652,011 | 1 | 0 | MIT | 2021-03-23T09:20:53 | 2014-09-30T19:18:04 | Python | UTF-8 | Python | false | false | 1,722 | py | # -*- coding: UTF-8 -*-
import sys
from tempfile import NamedTemporaryFile
from os import remove
try:
import unittest2 as unittest
from cStringIO import StringIO
except ImportError:
from io import StringIO
import unittest
from edt2ics.cli import write_ical, main, ScheduleScraper
def ctrlC(self, *arg... | [
"[email protected]"
] | |
4344d7b0f4c19f27896dd13ab0f65e65e0e64627 | 7f523c407d45d116860eff67f079e807f2b53339 | /src/third_party/beaengine/tests/0f46.py | 6ad6b5dec2522c38575bfec34ef1d56a52f05929 | [
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"MIT"
] | permissive | 0vercl0k/rp | a352c96bfe3715eb9ce8c5942831123e65289dac | b24e7f58a594aaf0ce3771745bf06862f6ecc074 | refs/heads/master | 2023-08-30T08:03:14.842828 | 2023-08-09T00:41:00 | 2023-08-09T00:41:00 | 3,554,173 | 1,557 | 239 | MIT | 2023-08-09T00:41:02 | 2012-02-26T19:26:33 | C++ | UTF-8 | Python | false | false | 2,862 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# 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 later version.
#
# This progra... | [
"[email protected]"
] | |
b6c2ce08804c66b293ae4e13ba70f17d93dcfbed | 5465ed0ea2401a8e70d4bbc0ce1e78ca26813c54 | /Dash/example_dropdown.py | 432c0e12326a232ef545016451102df8cf8aca00 | [] | no_license | josephchenhk/learn | 36c49ceb7c8cf8f944ad401b2c7adabf688981a1 | b216bb17570e272555e9da475e4c85eb18139c2a | refs/heads/master | 2023-09-01T04:22:00.984837 | 2023-08-20T01:00:01 | 2023-08-20T01:00:01 | 178,778,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # -*- coding: utf-8 -*-
# @Time : 29/3/2021 3:41 PM
# @Author : Joseph Chen
# @Email : [email protected]
# @FileName: example_dropdown.py
# @Software: PyCharm
import dash
import dash_html_components as html
import dash_core_components as dcc
app = dash.Dash(__name__)
app.layout = html.Div(
[
h... | [
"[email protected]"
] | |
0b6e59dc34a33b978dbcf8b8704dd35cdf33c4d7 | f97a38640cce46a0fa4f2e4c05590004cde14d61 | /projectTS/modeControl/automaticFlexibleTime.py | d5e522fff3913cae6daf005105a5ec1dae1889c4 | [] | no_license | nch101/thesis-traffic-signal-control | bb9dcb43836e69fc4cd5954119b58fe74a03b445 | b3bd1676fb2ab440b74d6d7a1846bd4ce6cc4c63 | refs/heads/master | 2023-08-31T11:29:19.415019 | 2020-08-17T05:07:10 | 2020-08-17T05:07:10 | 249,964,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # ** automatic control mode **
# * Author: Nguyen Cong Huy *
# ****************************
# - *- coding: utf- 8 - *-
import projectTS.vals as vals
def automaticFlexibleTime():
for index in range(0, vals.nTrafficLights):
if index%2:
setTimeLight(vals.timeGreenFlexibleNS, vals.timeGreenFlexi... | [
"="
] | = |
c8c2388aacf9a93e788c79f3183bb7a4304a4f40 | c6ee7be1479797788dd9f9d3a29c0e76ea020db8 | /apscheduler_yqt/MyTestFile/16celery_rabbitmq/01/test.py | 9f8dba3fe0e8b813e291b135506fa9d9d5a7a897 | [] | no_license | hikekang/apscheduler_yqt | 2966e7231fff1f81c4fa4a75459cf638592aae6a | 0d30c2ef721b8ffeba98dca6b2441613b4ed608d | refs/heads/master | 2023-08-17T05:19:34.345553 | 2021-09-26T03:21:11 | 2021-09-26T03:21:11 | 406,217,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | #!/usr/bin/python3.x
# -*- coding=utf-8 -*-
"""
Time : 2021/8/24 14:24
Author : hike
Email : [email protected]
File Name : test.py
Description:
Software : PyCharm
"""
from tasks import add
result=add.delay(4,4)
print(result)
print(result.get()) | [
"[email protected]"
] | |
82750c37529a17c849542e16db8487e588de28bf | 5edf9131cfe45f8f901aaed62f6528fc3774df3b | /clevros/primitives.py | 7825a022aca00f76abeda9520c47a14231aaef90 | [] | no_license | hans/clevr-oneshot | a07147ea4b9a17d3006904f07b2e5d93dbfc97e5 | e2aecee1718443714a9aad897bdbe973a974f4b9 | refs/heads/master | 2021-07-10T00:20:04.831270 | 2019-02-27T18:16:14 | 2019-02-27T18:26:24 | 105,565,520 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,485 | py | from frozendict import frozendict
import operator
class Event(object):
def __init__(self):
pass
def __eq__(self, other):
if isinstance(other, Event):
return True
return False
def __hash__(self):
return hash(Event)
def __getitem__(self, attr):
return EventOp(self, getattr, attr)
... | [
"[email protected]"
] | |
104c925bd6314e637d48b9ae42bec366a68dc578 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /snapshot_demo_updated_link_failure/interactive_replay_config.py | 8829a94407e3072b87c050c553795abd1f1be3a8 | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import InteractiveReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_... | [
"[email protected]"
] | |
37546155301527fa3625423441749a7d2847e9f0 | 6a89644ca479e1980b88c768bf868a1422fdee8b | /poptimizer/data/adapters/db.py | 0535645631c3afb07276e3d0291c9c74ede11c70 | [
"Unlicense"
] | permissive | chekanskiy/poptimizer | 82e664c2208b54cac63e0c5dac0680ec038da702 | e5d0f2c28de25568e4515b63aaad4aa337e2e522 | refs/heads/master | 2022-12-20T15:09:40.111678 | 2020-10-06T17:11:49 | 2020-10-06T17:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | """Реализации сессий доступа к базе данных."""
import asyncio
from typing import Iterable, Optional, Tuple, Union
import pandas as pd
from motor import motor_asyncio
from poptimizer.data.adapters import logger
from poptimizer.data.ports import outer
# Коллекция для одиночный записей
MISC = "misc"
def _collection_a... | [
"[email protected]"
] | |
22cb1afffa9f329ebfcbe75c0c93d8c82eaccab7 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /ABC/abc251-abc300/abc291/a/main.py | 271121f05c994fc6965d9d50bef5b54640e06764 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 255 | py | # -*- coding: utf-8 -*-
def main():
import sys
input = sys.stdin.readline
s = input().rstrip()
for i, si in enumerate(s, 1):
if si.isupper():
print(i)
exit()
if __name__ == "__main__":
main()
| [
"[email protected]"
] | |
f4889ab3192e5b2391525b80f2cd647d5ffb097f | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/ScenarioCharacterAction.py | a9f4a598c4032f027b4141bed04cca067ccf7dac | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
class ScenarioCharacterAction(object):
Idle = 0
Shake = 1
Greeting = 2
FalldownLeft = 3
FalldownRight = 4
Stiff = 5
Hophop = 6
Jump = 7
| [
"[email protected]"
] | |
4507b0a0250c6b95f949cf60bfc101f8efbe17ef | 17124c2268d7d7b0e9545a1ddaf293a49fafcf72 | /seq2seq/evaluation/meteor/meteor.py | 4a9c0696a513d24b74e15736ecb66a7501dbe317 | [] | no_license | haxzie-xx/code-to-comment | 56fadaf3b1be36daf2450159740cbd7d660fa438 | 5007d96c0e5ced57dcee7485a200a0e0a2c11e7d | refs/heads/master | 2020-04-28T15:22:14.721580 | 2019-03-13T08:35:06 | 2019-03-13T08:35:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | #!/usr/bin/env python
# Python wrapper for METEOR implementation, by Xinlei Chen
# Acknowledge Michael Denkowski for the generous discussion and help
import os
import sys
import subprocess
import threading
# Assumes meteor-1.5.jar is in the same directory as meteor.py. Change as needed.
METEOR_JAR = 'meteor-1.5.ja... | [
"[email protected]"
] | |
3fb6596f25e82ad3306342bc206831a44c1a8f19 | 16f50a812eca90748e87bfe471e0c05f178337fd | /4to_Semestre/Metodos computacionales/Racket/Actividad 3.4 Final/Examples/example.py | 4fb7031bd1d767a5b0850a0aeefe25131ea51227 | [] | no_license | SeaWar741/ITC | 65f73365762366f56cfbd6d0bc788cd384672d12 | 5f75716be58ca6e00bcd8dae7546fd19fe37657f | refs/heads/master | 2023-02-05T23:25:13.972031 | 2022-09-29T10:38:32 | 2022-09-29T10:38:32 | 205,020,772 | 4 | 2 | null | 2023-01-19T15:28:45 | 2019-08-28T20:48:35 | Jupyter Notebook | UTF-8 | Python | false | false | 288 | py | # Python Program to find the factors of a number
# This function computes the factor of the argument passed
def print_factors(x ) :
print( " The factors of " , x , " are: " )
for i in range( 1 , x + 1 ) :
if x % i == 0:
print( i )
num = 320
print_factors( num ) | [
"[email protected]"
] | |
b2c14211005aacceb7b237f92d39b72c2fba2218 | 93ed8dd9576a397912dad7693d63fc081f7651db | /tests/contracts/test_contract_estimateGas.py | 24f7f4f3f3524f15111d642ecfcfbe6c4ad24f7b | [
"MIT"
] | permissive | XertroV/web3.py | 3cf1a1265aa9225fe0391feb99bf6088ecfd1937 | 1c6ead0c271da7b648d20dba8c880b76b436a03c | refs/heads/master | 2021-01-24T20:25:36.578888 | 2016-07-16T19:00:10 | 2016-07-16T19:00:10 | 64,264,819 | 0 | 0 | null | 2016-07-27T00:46:25 | 2016-07-27T00:46:24 | null | UTF-8 | Python | false | false | 1,476 | py | import pytest
from web3.providers.rpc import TestRPCProvider
from web3.utils.abi import (
function_abi_to_4byte_selector,
)
@pytest.fixture(autouse=True)
def wait_for_first_block(web3, wait_for_block):
wait_for_block(web3)
@pytest.fixture()
def math_contract(web3, MATH_ABI, MATH_CODE, MATH_RUNTIME, MATH_SO... | [
"[email protected]"
] | |
31a9497b36cd6a4d54d6959b49c2445df08feb30 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/python_re_test_file/regexlib_3613.py | 7fbb386b0c1adfa1f8ca79e8518568b2dc33d7fb | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # 3613
# <(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>
# EXPONENT
# nums:4
# EXPONENT AttackString:"<>"+"\t"*16+"! _1◎@! _1! _1! _1!\n_SLQ_3"
import re
from time import perf_counter
regex = """<(?<tag>\w*|\w*\.+\w*)>+((.|[\n\t\f\r\s])*?)<\/\k<tag>>"""
REGEX = re.compile(regex)
for i in range(0, 150000):
... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.