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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c291ea9fcc40f9a2104f72fda45a772db6fc67c3 | 6fce07f704880861ed472706cce973ff81be9ca4 | /tests/test_threadutils.py | bdb8ac5bf21cd304d9f63fe29c2823f749a52ad5 | [
"MIT"
] | permissive | AbdulSaleh/dialog-probing | 6645d5c2be10dc0342d6f6c7a768e46e4080c068 | 12a04e7ca3363d428aca96e8c2c2ce2ec518a767 | refs/heads/master | 2023-04-08T22:29:13.531668 | 2020-06-17T19:27:49 | 2020-06-17T19:27:49 | 210,482,746 | 9 | 2 | MIT | 2023-03-24T23:29:34 | 2019-09-24T01:14:42 | Python | UTF-8 | Python | false | false | 3,078 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.core.thread_utils import SharedTable
from multiprocessing import Process
import parlai.core.testing_utils as ... | [
"a_saleh@matlaber5.media.mit.edu"
] | a_saleh@matlaber5.media.mit.edu |
4dc6472a0122338c0b83a65c1f1562003a7e74ba | 204db0d292bfe63253f737e6a73c443c0359b629 | /HitAnalyzer/test/draw_clustersize.py | 492ee21a02d8d12bd42b8b20cc2db6eee1db8939 | [] | no_license | gitytakahas/DPGAnalysis-SiPixelTools | 69d6de11974be421086ccb19d6fe760ddec986ae | 9088daece2f85f4fd0f5def51cdb30203f4b3b23 | refs/heads/master | 2021-01-17T08:31:08.047601 | 2017-06-28T14:38:01 | 2017-06-28T14:38:01 | 64,846,554 | 0 | 0 | null | 2016-08-03T13:04:29 | 2016-08-03T13:04:29 | null | UTF-8 | Python | false | false | 3,935 | py | from officialStyle import officialStyle
from ROOT import TFile, TTree, TH2F, TCanvas, gROOT, gStyle, TH1F, TLegend
import copy
gROOT.SetBatch(True)
officialStyle(gStyle)
gStyle.SetOptTitle(0)
def LegendSettings(leg):
leg.SetBorderSize(0)
leg.SetFillColor(10)
leg.SetLineColor(0)
leg.SetFillStyle(0)
... | [
"Yuta.Takahashi@cern.ch"
] | Yuta.Takahashi@cern.ch |
8c54cbf7d9b12f2b8648a69b8b076a0ef55f1036 | 7dcd8ca463f3d0d727ed631a35ef112d38d193f2 | /Python/3. Image Processing/negative.py | f4a0f8d1cfbd8b719dda6bc5ee456fa1302eff0d | [
"MIT"
] | permissive | shoaibrayeen/Data-Science-With-Python-And-R | 03b38da9e8b0ebead34c51efa44f7e5052f773c4 | 2f4f398a2ea414395c4ff04b38c777f96f78bab2 | refs/heads/master | 2021-07-10T23:38:10.627283 | 2020-10-06T05:02:32 | 2020-10-06T05:02:32 | 199,718,898 | 0 | 1 | MIT | 2020-10-06T05:02:33 | 2019-07-30T19:59:58 | Jupyter Notebook | UTF-8 | Python | false | false | 263 | py | import numpy as np
from PIL import Image
img = Image.open("./Image/boat.png")
img_array=np.array(img,dtype=np.float32)
img_array[:,:] =255-img_array[:,:]
img_array = img_array.astype(np.uint8)
img=Image.fromarray(img_array)
img.save("./Image/boatNegative.png")
| [
"noreply@github.com"
] | shoaibrayeen.noreply@github.com |
f17f725e2579c9a17a0f4ca272b528a7a3edb257 | 83830aff551b9f9c13a24d602c26cdc6559f2bd2 | /gozerplugs/shakespear.py | 642132cd7800703c2a784e6a17f02b399c51a8fa | [] | no_license | polichism/my-gozerbot | 8182a826aec731e49d44c595fd1dc7837e811db5 | ea86f2b7713457fc7a73f1227b969b230debda48 | refs/heads/master | 2021-01-17T18:03:23.135742 | 2014-04-04T11:44:28 | 2014-04-04T11:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | # plugs/shakespear.py
#
#
""" uses the random lib """
__copyright__ = 'this file is in the public domain'
__revision__ = '$Id: shakespeare.py 517 2006-12-21 05:00:00Z deck $'
from gozerbot.generic import handle_exception
from gozerbot.commands import cmnds
from gozerbot.examples import examples
from gozerbot.plughel... | [
"blaxter@gmail.com"
] | blaxter@gmail.com |
163a84077a6b26e6de2ab3e58360644ced3eac16 | 043160352216a7fc21be4c8a44507e00f523bf80 | /test/functional/rpc_spork.py | 1f5f0298165fba056629b95302833155549086b0 | [
"MIT"
] | permissive | odinyblockchain/odinycoin | 5ef2a1bca374230882c91e8c6717bbb8faf889ad | 183751aac9357455913f1d8a415b1dcb04225ee0 | refs/heads/master | 2022-12-18T14:14:02.535216 | 2020-09-20T22:05:14 | 2020-09-20T22:05:14 | 295,208,711 | 0 | 2 | MIT | 2020-09-18T10:33:17 | 2020-09-13T18:06:52 | C++ | UTF-8 | Python | false | false | 2,830 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Odinycoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# -*- coding: utf-8 -*-
from time import sleep
from test_framework.test_framework import OdinycoinTestFramework
... | [
"71228635+odinyblockchain@users.noreply.github.com"
] | 71228635+odinyblockchain@users.noreply.github.com |
5324cccd48635b974ca2c7204c7c9e487799df0a | 6b14d9a64a578239e5612e6098320b61b45c08d9 | /OCT16/02.py | 57cc74270ae7b19782b96a16b7b3c68a44bd1fac | [
"MIT"
] | permissive | Razdeep/PythonSnippets | 498c403140fec33ee2f0dd84801738f1256ee9dd | 76f9313894f511c487a99bc38bdf0fe5e594caf5 | refs/heads/master | 2020-03-26T08:56:23.067022 | 2018-11-26T05:36:36 | 2018-11-26T05:36:36 | 144,726,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # Styling graphs
import matplotlib.pyplot as plt
plt.plot([1,2,3,4],[5,8,7,25],'r--')
# plt.plot([1,2,3,4],[5,8,7,25],'g^') # Shows green triangles
plt.title('Rain in december')
plt.xlabel('Days in december')
plt.ylabel('Inches in rain')
plt.show() | [
"rrajdeeproychowdhury@gmail.com"
] | rrajdeeproychowdhury@gmail.com |
42824fb36a1dc24acbcb8076fba9574ee8f0bf72 | bc047ab30357479f40f2106af46d9e0c0c1a8bb4 | /accounts/migrations/0008_auto_20200811_1457.py | 5335030c4d28fd3badc63dff70c2fb0ccfad61d6 | [] | no_license | kahdichienja/uniminus2 | 10c838b450ce1c3e2f0f5b840cc060e6fa26a418 | d9243f1654432d16697f4f6d4a8206c2a4179541 | refs/heads/master | 2022-11-30T05:03:38.243675 | 2020-08-11T13:55:35 | 2020-08-11T13:55:35 | 285,979,880 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 2.1.7 on 2020-08-11 14:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0007_personalfileupload'),
]
operations = [
migrations.AlterField(
model_name='personalfileupload',
name... | [
"ago@localhost.localdomain"
] | ago@localhost.localdomain |
ef1098dfcbe246827541db2aefd6c3f8ecc8f4de | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/tapandturn/testcase/firstcases/testcase7_006.py | b91bd32806c9939333a62d141c1f6f768e4e7c5c | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,520 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
d31f9f3dea79d590895bdcac0b013ca328a820d6 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays37CstmLiqEtlp_px_N2.py | f39a795e60701a5238d3eca02648ee7c6712b6ee | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | def LiqEtlp_px_N2(P,T,x_N2):
x = (P-5.41573658e+02)/2.47804900e-01
y = (T--1.78069279e+02)/7.24480000e-03
z = (x_N2-9.96540601e-01)/9.95332218e-04
output = \
1*-8.06034533e+03
liq_etlp = output*1.00000000e+00+0.00000000e+00
return liq_etlp | [
"1052632241@qq.com"
] | 1052632241@qq.com |
665f285f713fce0f55dc8b14e94c2d734e1b98b8 | b891f38eb12eeafdbcec9deee2320acfaac3a7ad | /0x01-python-if_else_loops_functions/7-islower.py | 92a7fd93a6f4dffa58f2d130a83a4dfb40bb188e | [] | no_license | davixcky/holbertonschool-higher_level_programming | bb112af3e18994a46584ac3e78385e46c3d918f6 | fe4cd0e95ee976b93bd47c85c2bc810049f568fa | refs/heads/master | 2023-01-11T00:41:03.145968 | 2020-09-22T22:55:53 | 2020-09-22T22:55:53 | 259,390,611 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | #!/usr/bin/python3
def islower(c):
value = ord(c)
return value >= 97 and value <= 122
| [
"dvdizcky@gmail.com"
] | dvdizcky@gmail.com |
d0fafe1c03d3be10fa89d812b4598501ee240c1a | 1065ec75d9ee668ffd7aafc6a8de912d7c2cee6f | /addons/script.icechannel.extn.extra.uk/plugins/livetv_uk/islam_channel_ltvi.py | 45d34e60e67ec4c94ae5ac0736e202cbe32e6204 | [] | no_license | bopopescu/kodiprofile | 64c067ee766e8a40e5c148b8e8ea367b4879ffc7 | 7e78640a569a7f212a771aab6a4a4d9cb0eecfbe | refs/heads/master | 2021-06-11T17:16:15.498281 | 2016-04-03T06:37:30 | 2016-04-03T06:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveTVIndexer
from entertainment.plugnplay import Plugin
from entertainment import common
class islam_channel(LiveTVIndexer):
implements = [LiveTVIndexer]
display_name = "Islam Channel"
name = "islam_channel"
... | [
"sokasoka@hotmail.com"
] | sokasoka@hotmail.com |
e73fbfaaa91a9301ec2a18d4f2a6130034fe5553 | d5b48163d236ca770be8e687f92192e2971397e8 | /116.py | d7870f37e24c92963d66021b29540135312aafc5 | [] | no_license | Kunal352000/python_program | 191f5d9c82980eb706e11457c2b5af54b0d2ae95 | 7a1c645f9eab87cc45a593955dcb61b35e2ce434 | refs/heads/main | 2023-07-12T19:06:19.121741 | 2021-08-21T11:58:41 | 2021-08-21T11:58:41 | 376,606,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | num=int(input("Enter a number: "))
for i in range(num):
for j in range(num-1-i):
print(" ",end="")
for j in range(num):
print("*",end="")
print()
| [
"noreply@github.com"
] | Kunal352000.noreply@github.com |
dec76e7957ea062e6fdd0bc4d7e16cd9a404bade | 992d0d5e06813f6dff323e4b528cd39b4cbaa955 | /pytorch入门与实践/Fast-Neural-Style/utils.py | e07c2f6fef99b3c70c5e359c84229fa87699be98 | [] | no_license | happy-luck/pytorch-study | 9997d6b92785df4d6b4b0eb8c8f8ab9ee15bfc2b | 137a7eb0d76ad2bc3e731aade2bfda4586e7d21a | refs/heads/master | 2022-11-17T16:34:02.974645 | 2020-07-16T01:32:33 | 2020-07-16T01:32:33 | 279,233,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,629 | py | # coding:utf8
from itertools import chain
import visdom
import torch as t
import time
import torchvision as tv
import numpy as np
IMAGENET_MEAN = [0.485, 0.456, 0.406]
IMAGENET_STD = [0.229, 0.224, 0.225]
def gram_matrix(y):
'''
输入 b,c,h,w
输出 b,c,c
'''
(b, ch, h, w) = y.size()
features = y.vi... | [
"18813129242@163.com"
] | 18813129242@163.com |
27b844b352de333d17ec109d4f30f57512010ac0 | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/month01-shibw-notes/day10-shibw/exercise01-定义类.py | abe7abecd735db16f3f2a77f7971105114d5bfaa | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | #定义 Dog类
#Dog中的数据有 name kinds color
#Dog的行为有
# eat 打印 狗吃xx
# run 打印 狗正在以xxkm/h的速度飞奔
class Dog:
def __init__(self,name,kinds,color):
self.name = name
self.kinds = kinds
self.color = color
def eat(self,food):
print('%s正在吃%s' % (self.name,food))
def run(self,speed):
... | [
"13572093824@163.com"
] | 13572093824@163.com |
ef62508ce0309f54e17c2f9c0bc851c8a77efc7b | 72ce57d187fb6a4730f1390e280b939ef8087f5d | /nuitka/codegen/TryCodes.py | 3aebcda27ebb9915c961fe9c176fade07830c1ea | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tommyli3318/Nuitka | c5b7681b73d96cb8859210ed1a78f09149a23825 | ae52b56024d53159a72a5acbfaac792ca207c418 | refs/heads/develop | 2020-05-02T17:02:10.578065 | 2019-10-27T15:53:32 | 2019-10-27T15:53:32 | 178,086,582 | 1 | 0 | Apache-2.0 | 2019-06-06T00:32:48 | 2019-03-27T22:53:31 | Python | UTF-8 | Python | false | false | 11,134 | py | # Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complianc... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
02ce301afe155e8d1301e152c047e372786ae63a | 43852c47c9bf8f1d7d54f564a7130bb667df5110 | /python/ray/air/util/check_ingest.py | 79ea645049007a3275126cf71523096461375f9d | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | jon-chuang/ray | 654de3518b77a9b4285ef402053a3db3e341ec94 | adf2b92afcb4688251388838210e18b8721871b9 | refs/heads/master | 2023-05-26T09:04:24.349126 | 2023-02-20T02:33:40 | 2023-02-20T02:33:40 | 206,287,690 | 1 | 1 | Apache-2.0 | 2023-05-20T08:02:24 | 2019-09-04T09:55:00 | Python | UTF-8 | Python | false | false | 7,803 | py | #!/usr/bin/env python
import sys
import time
from typing import Optional
import numpy as np
import ray
from ray.air import session
from ray.air.config import DatasetConfig, ScalingConfig
from ray.data import Dataset, DatasetIterator, Preprocessor
from ray.data.preprocessors import BatchMapper, Chain
from ray.train._... | [
"noreply@github.com"
] | jon-chuang.noreply@github.com |
b73a6050107b0d880b9466a83b8d551cad4b616e | 1cca2891740d5ed6925f1ab0b1ade7ff814ff504 | /vcenter/migrations/0013_auto_20161108_1507.py | f4ad2c4c4c8dfb12d7d7e376945182a65457de56 | [] | no_license | sj741231/stockstar-vsa | bac5dd747e3ccfd4c36067b79ae30b1e88dc4597 | f5877567b6d7a0e3ab9895416ea95d02f3b572a4 | refs/heads/master | 2021-01-24T08:32:42.055321 | 2017-06-05T14:57:49 | 2017-06-12T03:15:55 | 93,385,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-11-08 07:07
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vcenter', '0012_racks'),
]
operations = [
migrations.RemoveField(
model_... | [
"shi.jin@126.com"
] | shi.jin@126.com |
5a921dd7bcd488ff6820ab9bfe93341267a5e720 | 6045075c734d65a3cec63d3ae15f8f9f13836559 | /solutions/0331_Verify_Preorder_Serialization_of_a_Binary_Tree/iter_by_degrees.py | e65ad1f91954b9fd44643c2c6c773ed853e9edd4 | [] | no_license | zh-wang/leetcode | c058470fdf84fb950e3d4f974b27826718942d05 | 6322be072e0f75e2da28b209c1dbb31593e5849f | refs/heads/master | 2021-12-28T02:49:11.964213 | 2021-08-25T06:29:21 | 2021-08-25T06:29:21 | 189,919,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | class Solution:
def isValidSerialization(self, preorder: str) -> bool:
arr = preorder.split(',')
# In a binary tree, if we consider null as leaves, then
# all non-null node provides 2 outdegree and 1 indegree (2 children and 1 parent), except root all null node provides 0 outdegree and 1 ind... | [
"viennakanon@gmail.com"
] | viennakanon@gmail.com |
fc72d5ac87d23dad96d62f98d314106ccd272a48 | 2b56aaec923a2e7939734c6743c934ad960aef38 | /Greedy/2847.py | b043bd8d61bc02bfaaa4f0e73e87d66a2974d15e | [] | no_license | SAE-HUN/Algorithms | 461757fd5167fed14d7b5aca88fe004a5892c91a | aa2cc4d04e506d762706ae62e93400f1b57c82f0 | refs/heads/master | 2023-05-11T22:42:32.125790 | 2021-06-01T05:21:06 | 2021-06-01T05:21:06 | 306,549,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | n = int(input())
scores = [int(input()) for _ in range(n)]
answer = 0
for i in range(n-1, 0, -1):
if scores[i-1]>scores[i]-1:
answer += scores[i-1] - (scores[i] - 1)
scores[i-1] = scores[i] - 1
print(answer)
| [
"noreply@github.com"
] | SAE-HUN.noreply@github.com |
d6636ecb60664086132846b70730e5069b161a15 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/dab.py | 3542630063ad129ada276066e3c439c1e3a79a77 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
1e3886af77eaff89de7f75fc44a5c1a6b51b08c1 | 4e1a6d64b16ae560f2930090201f5f529a42215e | /transmute_core/framework/__init__.py | 63f35abe520b5e0fe5ec5a990bb0809d2212dd41 | [
"MIT"
] | permissive | yunstanford/transmute-core | 7f34ccd6e02491cfe944cae6a04b4bb666455eed | a8e5dd055f0f3d39327d71dd61bf0ee147f59ebe | refs/heads/master | 2019-07-18T07:37:34.850956 | 2018-10-06T23:18:36 | 2018-10-06T23:18:36 | 118,862,219 | 0 | 0 | MIT | 2018-10-06T23:18:37 | 2018-01-25T04:28:52 | JavaScript | UTF-8 | Python | false | false | 44 | py | from .request_adapter import RequestAdapter
| [
"yusuke@tsutsumi.io"
] | yusuke@tsutsumi.io |
c7cc71d2629e6981c09a205d398e0048180f2f04 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02628/s935095687.py | 13c1c31e7df5d777d0ddb3c50f0327140819f7c9 | [] | 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 | 174 | py | import itertools
[N, K] = [int(i) for i in input().split()]
price = [int(i) for i in input().split()]
price.sort()
sum = 0
for i in range(K):
sum += price[i]
print(sum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1ce23d141a5c561f7101d4c1db3f247966d83ba3 | 22cec5da2b1fb83dcc9cf7c888f1e2078b05b62e | /flora/cmds/stop.py | 7c8e12aaf6e9946367cbd633d88b76f9ccb049fb | [
"Apache-2.0"
] | permissive | JuEnPeHa/flora-blockchain | 649d351e096e73222ab79759c71e191e42da5d34 | 656b5346752d43edb89d7f58aaf35b1cacc9a366 | refs/heads/main | 2023-07-18T08:52:51.353754 | 2021-09-07T08:13:35 | 2021-09-07T08:13:35 | 399,297,784 | 0 | 0 | Apache-2.0 | 2021-08-24T01:30:45 | 2021-08-24T01:30:44 | null | UTF-8 | Python | false | false | 1,402 | py | import sys
from pathlib import Path
import click
from flora.util.service_groups import all_groups, services_for_groups
async def async_stop(root_path: Path, group: str, stop_daemon: bool) -> int:
from flora.daemon.client import connect_to_daemon_and_validate
daemon = await connect_to_daemon_and_validate(ro... | [
"github@floracoin.farm"
] | github@floracoin.farm |
62b59083ccd6965040babc91013ecbb18ad01d76 | aa8fe9e165df16bd17aa5720b8043c533adde9bb | /source/gui/windows/source_window_disabled.py | aef1201903034c6376f2b28d5af8a51faaa52145 | [] | no_license | teamdiamond/qtlab | 31d2ccaee2ada84a027f2160553f54757e6f6cdf | 67d5bbd58c5f4d4ac3914774b56071d51f121010 | refs/heads/master | 2022-12-14T12:07:35.223055 | 2019-06-25T06:53:57 | 2019-06-25T06:53:57 | 15,255,712 | 0 | 4 | null | 2022-12-07T23:37:45 | 2013-12-17T13:54:53 | Python | UTF-8 | Python | false | false | 11,984 | py | # source_window.py, source edit window for the QT Lab environment
# Reinier Heeres <reinier@heeres.eu>, 2008-2009
#
# 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 2 of the L... | [
"wolfgangpfff@gmail.com"
] | wolfgangpfff@gmail.com |
dccd735aa9fd375a30bffb83d855082c3471c27f | b03e343677a5fd8b8bd0a616d0ef661f78159674 | /feelings/feelings/settings.py | b61574115b933e2fa181ab810410a70e58cb47f6 | [] | no_license | srikarporeddy/projectfeelings | 5407f6d95d7160f6f894081844255e5237306d6d | 122392b6d58d888e82e049efecca4506424af0b6 | refs/heads/master | 2021-01-23T01:26:21.521541 | 2017-06-02T17:56:22 | 2017-06-02T17:56:22 | 92,872,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | """
Django settings for feelings project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"srikarporeddy@gmail.com"
] | srikarporeddy@gmail.com |
c5e03d03ec50a0095dff0e4e1b820f5760f7df64 | e121dcc5d23e225891420e730549b9cc7ebe8e88 | /python/lib/direct/test/ModelScreenShot.py | aa59a44301d37bea98c26ab6ca7d651b90d3a4ea | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | PlumpMath/panda3d-3 | 4f4cf7627eddae9b7f30795e0a0657b01fdf670d | 5c0be0e1cd46b422d28d5b81ffb1e8b28c3ac914 | refs/heads/master | 2021-01-25T06:55:36.209044 | 2014-09-29T14:24:53 | 2014-09-29T14:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | import direct
from panda3d.pandac import loadPrcFileData
from panda3d.direct.showbase.DirectObject import DirectObject
from panda3d.direct.directbase.DirectStart import *
from panda3d.pandac import *
import panda3d.direct.gui.DirectGuiGlobals as DGG
from panda3d.direct.gui.DirectGui import *
from panda3d.direct.task i... | [
"ralf.kaestner@gmail.com"
] | ralf.kaestner@gmail.com |
74dc0aa2f64c2ed5f40a01ad6b6f54b7cf178236 | 46563ccc5da11bb4b68bc2b27a40524af4d241b9 | /Dynamic_Routing_Between_Capsules/params.py | c8bc9eb8b09396b18606467f9d60a5aaed6ec2c2 | [
"MIT"
] | permissive | rahul-c1/Implementations-of-Deep-Learning-Models | e7e974b943782cb8b8afc5b6158ffee27f1a2248 | 4c1fe059b7c46c22790f716ca57d51bddc6248ac | refs/heads/master | 2020-03-24T09:58:46.521183 | 2018-01-20T05:22:55 | 2018-01-20T05:22:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | conv1_params = {
'filters': 256,
'kernel_size': 9,
'strides': 1,
'padding': 'valid',
'activation': 'relu'
}
conv2_params = {
'filters': 256,
'kernel_size': 9,
'strides': 2,
'padding': 'valid',
'activation': 'relu',
}
batch_size = 256
input_shape = [28, 28, 1]
primary_capsules_s... | [
"maxpanziyuan@gmail.com"
] | maxpanziyuan@gmail.com |
5791d354413791123e36b62c42afffb84cb87e3d | eb1eb25dd8c68192b37693c8e0224bf047da9fed | /django_app/utils/fields/__init__.py | f63012d6f3da5fe9ee0e253f78d4615048cfbe26 | [] | no_license | WeatherSound/WeatherSoundTest | bae5e52a88b180f6493d306eac326b52524013af | 8d341a5f9e5c571c441f1e402f7dae8938cabb02 | refs/heads/master | 2021-01-02T08:12:18.722213 | 2017-08-21T07:44:12 | 2017-08-21T07:44:12 | 98,959,749 | 1 | 1 | null | 2017-09-04T05:32:17 | 2017-08-01T04:36:05 | Python | UTF-8 | Python | false | false | 33 | py | from .custom_imagefields import * | [
"qufskan9396@gmail.com"
] | qufskan9396@gmail.com |
e4f81b86df0300aaaa88eb3081f241403e987142 | 183bb8e9998a3eeebdc6dd0a5bf77525ef005a1f | /ribbit/ribbit_app/migrations/0008_auto__del_field_bookpasser_content__del_field_bookpasser_location__add.py | 5124b0c9c3937fa7db6e75d1fb8c501b19ae4227 | [] | no_license | gzpgg3x/SEARSHackPresentable | dcc7d3187bc459af5e8c535af8644d5d0fba7b05 | 0a78b6555f6e126506fa4f684a6b1d93b106d69a | refs/heads/master | 2020-05-30T10:39:29.211767 | 2014-06-08T16:08:05 | 2014-06-08T16:08:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,167 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'bookPasser.content'
db.delete_column(u'ribbit_app_bookp... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
37534e0ae850d4fbd06ebdf37fae551e63e9146a | 44ba7f2c3e396ab2c58ce42763da5c18f5d0db4b | /ethicml/evaluators/evaluate_models.py | ed7b22f01b736f5b26cc799f4a555cd9f848e85d | [] | no_license | anonymous-iclr-3518/code-for-submission | 99e45110d2377c08433b619afb9c14cf645be5b0 | 3aecb7642d9611ae0a61cd47948931f8f47b6f76 | refs/heads/main | 2023-01-13T18:27:03.728542 | 2020-11-25T15:21:49 | 2020-11-25T15:21:49 | 315,338,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,770 | py | """Runs given metrics on given algorithms for given datasets."""
from collections import OrderedDict
from pathlib import Path
from typing import Dict, List, NamedTuple, Optional, Sequence, Union
import pandas as pd
from tqdm import tqdm
from ethicml.algorithms.inprocess.in_algorithm import InAlgorithm
from ethicml.al... | [
"anon@ymo.us"
] | anon@ymo.us |
0465cbce511a108a717722c70a4f8a2073edcec1 | 988fc095bc5487fdbb2b293106e012efde4a35d8 | /tests/functional_tests.py | 4335907934dfd8743b63da981ba201b36988ebb1 | [
"MIT"
] | permissive | Nagasaki45/pathtag | d614ea77ab551be8bae22ce21ae5e65603f4a038 | dfd66186959715f71f6ecd583521f0cd03f2f17e | refs/heads/master | 2020-12-20T22:53:37.714411 | 2018-09-11T23:06:49 | 2018-09-11T23:06:49 | 28,537,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | import unittest
import shutil
import os
import tarfile
import subprocess
from mutagen.easyid3 import EasyID3
MATERIALS_DIR = 'tests/materials'
BACKUP = 'backup.tar'
class MainTest(unittest.TestCase):
def setUp(self):
# Backup MATERIALS_DIR
with tarfile.TarFile(BACKUP, 'w') as backup:
... | [
"nagasaki45@gmail.com"
] | nagasaki45@gmail.com |
e055d3f40ff6a4d1d3f8f95db9dc115b493d590d | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/logic/v20190501/list_integration_account_map_content_callback_url.py | 622e2572a913a2f8a5e4fcf62ea045a1208cb715 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 5,729 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
0124697bac9f6283a8e32edd133b7c0657ef6f02 | 1eb0213140ada1c48edc5fb97b439d6556e6c3a9 | /0x0A-python-inheritance/7-base_geometry.py | 06615bc37e1f43fbd3545438200a215ece54b58c | [] | no_license | HeimerR/holbertonschool-higher_level_programming | 53d2a3c536fd9976bb7fea76dd2ecf9a6ba3297e | 892c0f314611c0a30765cf673e8413dbee567a2d | refs/heads/master | 2020-05-18T02:24:11.829328 | 2020-04-30T03:59:04 | 2020-04-30T03:59:04 | 184,112,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | #!/usr/bin/python3
""" Module base geometry
"""
class BaseGeometry:
""" empty class"""
def area(self):
""" area not defined"""
raise Exception('area() is not implemented')
def integer_validator(self, name, value):
"""validates value"""
if type(value) is not int:
... | [
"ing.heimer.rojas@gmail.com"
] | ing.heimer.rojas@gmail.com |
62d02bad6ba62f87039310864a61db1b7807d6bb | d434f2ceb34b3eaad7d62fb71f01be16cdebd0d0 | /Stock scraping/marketwatch/middlewares.py | f052e93af23329ccfbac91415e77bfe8f744a9c3 | [] | no_license | webclinic017/Stock-scraping | 2f6c60ccc3114cff5f6bd60a267217f4809368a5 | d50800c30562429919882cf81f305ee6716392f7 | refs/heads/master | 2021-12-23T07:16:16.855059 | 2017-11-07T13:14:27 | 2017-11-07T13:14:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class MarketwatchSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scra... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
972e5e970aac49dbfe445b1ed561fc185a32d9b6 | e2992e19ebc728387125a70c72a702a076de7a12 | /Python/01_My_Programs_Hv/02_String/23_More_About_Variable.py | 9a16bce2ae933aba8672f9637575b868e1abc684 | [] | no_license | harsh1915/Machine_Learning | c9c32ed07df3b2648f7796f004ebb38726f13ae4 | c68a973cfbc6c60eeb94e253c6f2ce34baa3686e | refs/heads/main | 2023-08-27T15:01:16.430869 | 2021-11-15T07:53:36 | 2021-11-15T07:53:36 | 377,694,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | name, age = "HarsH", 22
print( "Hello "+ name+ " Your Age is "+ str( age))
a= b= c= 2
print( a+ b+ c) | [
"“hdjethva6@gmail.com”"
] | “hdjethva6@gmail.com” |
8a5dca801b4ec186f2b749ce1e27347e1b1e1750 | 09cead98874a64d55b9e5c84b369d3523c890442 | /py200912b_python2m6/day11_201121/sample/file_3_open.py | d6381dd6d88b7b7cebd514435788b08f725a6bd2 | [] | no_license | edu-athensoft/stem1401python_student | f12b404d749286036a090e941c0268381ce558f8 | baad017d4cef2994855b008a756758d7b5e119ec | refs/heads/master | 2021-08-29T15:01:45.875136 | 2021-08-24T23:03:51 | 2021-08-24T23:03:51 | 210,029,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
python file I/O
Opening Files
open()
first look
"""
# case 3. open file in specified full path
# different way to represent path in windows system
print("[info] open file in specified full path")
print("[info] opening file_open.txt ...")
f = open("D:/workspace/pycharm201803/ceit4101python/module_8_fileio/file_o... | [
"lada314@gmail.com"
] | lada314@gmail.com |
7cbe4efbda319a44a4a563e56cc6bc8cae7c5f04 | c7967ec500b210513aa0b1f540144c931ca687ac | /알고리즘 스터디/개인공부/TwoPointer/PermutationSummation.py | 576694b4fd00b0f800b32c15f1f8c4361e775e12 | [] | no_license | sunminky/algorythmStudy | 9a88e02c444b10904cebae94170eba456320f8e8 | 2ee1b5cf1f2e5f7ef87b44643210f407c4aa90e2 | refs/heads/master | 2023-08-17T01:49:43.528021 | 2023-08-13T08:11:37 | 2023-08-13T08:11:37 | 225,085,243 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | # https://www.acmicpc.net/problem/2143
import sys
# 누적합 구하기
def accumulation(number):
result = dict()
for i in range(len(number)):
total = 0
for j in range(i, len(number)):
total += number[j]
result[total] = result.get(total, 0) + 1 # 이 부분합이 나올 수 있는 경우의 수를 구함
... | [
"suns1502@gmail.com"
] | suns1502@gmail.com |
a36d671af009a8c76753ff5416319589a3318f3c | 1f08436bab6cd03bcfb257e8e49405cbc265195a | /3_list/Sample/list_ex20.py | a063117240f1387a45dd6d1559b3fcf38182856c | [] | no_license | kuchunbk/PythonBasic | e3ba6322f256d577e37deff09c814c3a374b93b2 | a87135d7a98be8830d30acd750d84bcbf777280b | refs/heads/master | 2020-03-10T04:28:42.947308 | 2018-04-17T04:25:51 | 2018-04-17T04:25:51 | 129,192,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | '''Question:
Write a Python program access the index of a list.
'''
# Python code:
nums = [5, 15, 35, 8, 98]
for num_index, num_val in enumerate(nums):
print(num_index, num_val)
'''Output sample:
0 5 ... | [
"kuchunbk@gmail.com"
] | kuchunbk@gmail.com |
c8feaa8ecfa5607b14bf76c8344255b16073b91b | 51ce07a419abe50f49e7bb6a6c036af291ea2ef5 | /3.Algorithm/04. Stack1/DFS.py | d2435fd628dfe83323c14e92d7e2adee161ae3b2 | [] | no_license | salee1023/TIL | c902869e1359246b6dd926166f5ac9209af7b1aa | 2905bd331e451673cbbe87a19e658510b4fd47da | refs/heads/master | 2023-03-10T09:48:41.377704 | 2021-02-24T10:47:27 | 2021-02-24T10:47:27 | 341,129,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # 재귀
def dfs(v):
# 방문체크
visited[v] = 1
print(v, end=' ')
# v의 인접한 정점중에서 방문안한 정점을 재귀호출
for w in range(1, V+1):
if G[v][w] == 1 and visited[w] == 0:
dfs(w)
# --------------------------------------------
V, E = map(int, input().split()) # 정점, 간선
temp = list(map(int, input(... | [
"dltmddk1023@gmail.com"
] | dltmddk1023@gmail.com |
0a364178e1a3a1ca5c09b5d161d750af22a4a947 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20180101/get_virtual_network_gateway_advertised_routes.py | b50d1b09c509d3f5dc2c559d307478ea00d98982 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
51db0a0726ebb48ef9d569a6e69bd653136c424f | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /blend3_pdep/pdep/network173_1.py | 956994280fffb5c4cd7b584a30d905195c414d55 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 51,831 | py | species(
label = 'S(684)(683)',
structure = SMILES('C=C1C=CC(CC1)O[O]'),
E0 = (99.4946,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([492.5,1135,1000,2750,2816.67,2883.33,2950,3016.67,3083.33,3150,900,933.333,966.667,1000,1033.33,1066.67,1100,2950,3100,1380,975,1025,1650,300,800,800,800,8... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
9f935df7a693a88e5ff198c8cdeb82c876498221 | 46404c77e04907225475e9d8be6e0fd33227c0b1 | /max value of exp.py | 97a9e0dd3173d1d935cda977191f6d3427639305 | [] | no_license | govardhananprabhu/DS-task- | 84b46e275406fde2d56c301fd1b425b256b29064 | bf54f3d527f52f61fefc241f955072f5ed9a6558 | refs/heads/master | 2023-01-16T07:41:27.064836 | 2020-11-27T11:52:50 | 2020-11-27T11:52:50 | 272,928,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | """
Given an algebraic expression of the form (x1 + x2 + x3 + . . . + xn) * (y1 + y2 + . . . + ym) and
(n + m) integers. Find the maximum value of the expression using the given
integers.
Consstraint :
n <= 50
m <= 50
-50 <= x1, x2, .. xn <= 50
H 6
T 2000
Tag cisco mathematics
In des
First line contai... | [
"noreply@github.com"
] | govardhananprabhu.noreply@github.com |
0b9eebfc0db17524b69f3646238b25cf55e6c715 | 714a8942a8a761d4ff1aa5cc38f68cd414da295d | /django_restful/wsgi.py | 5f86f0839de9ded1feb6f165af75437128cbd607 | [] | no_license | eliblurr/django-restful | 9e9a1188242439a2486a18a3d6f8dab3f9be4952 | 0fdf688d41ad32a5a63cf34680e6a96c572e5337 | refs/heads/main | 2023-06-04T08:18:25.286212 | 2021-06-23T20:36:39 | 2021-06-23T20:36:39 | 379,537,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for django_restful 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANG... | [
"segbawuel@aiti-kace.com"
] | segbawuel@aiti-kace.com |
3ef7f37ef8d1957487abd9ace0dad6904448428b | edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81 | /Python 300/09. Function/227.py | 42218bd6f628a285d7163e3e929121048f5fcec1 | [] | no_license | narinn-star/Python | 575cba200de35b9edf3832c4e41ccce657075751 | 14eba211cd3a9e9708a30073ba5b31d21d39eeef | refs/heads/master | 2023-05-25T22:57:26.079294 | 2021-06-07T15:29:39 | 2021-06-07T15:29:39 | 331,647,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #functions _ 함수 정의
def print_mxn(line, n):
num = int(len(line)/n)
for i in range(num + 1):
print(line[i * n : i * n + n])
print_mxn("가나다라마바사아자차", 3) | [
"skfls2618@naver.com"
] | skfls2618@naver.com |
f146ecaa2404f714b15e20fe8f193a13c2fd7061 | c6ed9aa97166d4778b89321b580af80c543bacc9 | /randoms/kthlargest.py | 8869a6258042894d7e85fa2c7e867ca9be147be2 | [] | no_license | bradyz/sandbox | 381bcaf2f3719dee142a00858f7062aeff98d1ab | ff90335b918886d5b5956c6c6546dbfde5e7f5b3 | refs/heads/master | 2021-01-23T09:03:54.697325 | 2018-02-27T20:47:48 | 2018-02-27T20:47:48 | 21,292,856 | 10 | 0 | null | 2015-09-03T16:53:15 | 2014-06-28T00:29:18 | Python | UTF-8 | Python | false | false | 1,059 | py | from random import randrange
def kth(a, k):
def pivot(s, e):
val = a[s]
left = s
right = e
while left < right:
while left < right and a[left] <= val:
left += 1
while a[right] > val:
right -= 1
if left < right:
... | [
"brady.zhou@utexas.edu"
] | brady.zhou@utexas.edu |
0ce72dc9c9ccb2c0f733aab21a0e31e378fc45d4 | 2827d7a837eb29c3cb07793ab6d3d5a753e18669 | /alipay/aop/api/request/AlipayOpenPublicMessageContentCreateRequest.py | 72e8bc46aeb5bc88d6817b2321843ee2afd36b85 | [
"Apache-2.0"
] | permissive | shaobenbin/alipay-sdk-python | 22e809b8f5096bec57d2bb25414f64bdc87fa8b3 | 5232ad74dff2e8a6e0e7646ab3318feefa07a37d | refs/heads/master | 2020-03-21T04:51:39.935692 | 2018-06-21T07:03:31 | 2018-06-21T07:03:31 | 138,131,022 | 0 | 0 | null | 2018-06-21T06:50:24 | 2018-06-21T06:50:24 | null | UTF-8 | Python | false | false | 4,016 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenPublicMessageContentCreateModel import AlipayOpenPublicMessageContentCreateModel
class AlipayOpenPublicMessageContentCreat... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
dc89937d05510bc33d593090df17b6f5fabdfb40 | ef0d8fd55fbdb526e20d6c2b05e601f1d86587c5 | /frappe/utils/bench_helper.py | b920347f7af0e8d5ce3bb5003349a9293c47e97f | [
"MIT"
] | permissive | indictranstech/v4_frappe | 8976e84c14346196b8895ad6274740dca7fd6504 | dba708c8aa83f503b9f4a264850307111a2b5f19 | refs/heads/master | 2021-09-26T12:26:29.994294 | 2018-10-30T06:09:36 | 2018-10-30T06:09:36 | 103,262,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from __future__ import unicode_literals
import click
import frappe
import importlib
def main():
click.Group(commands=get_app_groups())()
def get_cli_options():
pass
def get_app_groups():
ret = {}
for app in get_apps():
app_group = get_app_group(app)
if app_group:
ret[app] = app_group
return ret
def get_... | [
"sagarshiragawakar@gmail.com"
] | sagarshiragawakar@gmail.com |
263cb4742e4e6ddcd2bb7b0b9ffff06d93e4e06d | 3c6b3b0a92e5a290ba69d0f73af51ac82aff3509 | /assignments/development/chess-top-100-p2.py | a0f31d9eb1b9a23a30afa30fb6798ba02ba27b67 | [] | no_license | sarae17/2019-T-111-PROG | ba6c6db7075acba16bbcd23e4c0d3db6e2bb374f | 017287b3300ec4fe809bfc81fee856ffb17b4800 | refs/heads/master | 2020-09-10T14:36:53.715479 | 2019-11-13T13:41:04 | 2019-11-13T13:41:04 | 221,722,173 | 1 | 0 | null | 2019-11-14T14:54:15 | 2019-11-14T14:54:14 | null | UTF-8 | Python | false | false | 3,092 | py | # The following constants indicate the position of the respective
# fields in the tuple stored as the value for the key in the players dictionary
RANK = 0
COUNTRY = 1
RATING = 2
BYEAR = 3
def open_file(filename):
''' Open the given file name and returns the corresponding file stream, or None if the file cannot be ... | [
"hrafnl@gmail.com"
] | hrafnl@gmail.com |
3a8d3609a8249080335168e1e422f79f390a3655 | 26762585d08aa774af9f104472c97a8c7a9df181 | /generators/old/gridgen8.py | c386a48438966ef12211b7014278750253ae8e3f | [] | no_license | OxfordSKA/SKA1-low-layouts | 379fbe5c056dc73706b1073f09e485880ecfa180 | 49e3ba2af4a447be38af03dde1d11898e3f8300b | refs/heads/master | 2021-01-17T17:10:41.469929 | 2016-08-12T10:48:24 | 2016-08-12T10:48:24 | 47,823,977 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,177 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import numpy
from numpy.random import rand, seed
from math import ceil, log, exp, floor
import matplotlib.pyplot as pyplot
def grid_position(x, y, scale, r):
jx = int(floor((x + r) * scale))
jy = int(floor((y + r) * scale))
return jx, jy
def ... | [
"benjamin.mort@oerc.ox.ac.uk"
] | benjamin.mort@oerc.ox.ac.uk |
2aee15990e576ff4d1f8ba52fe34188c61efc469 | 056adbbdfb968486ecc330f913f0de6f51deee33 | /277-find-the-celebrity/find-the-celebrity.py | 5d5b0edbef91abbf8d99870dd9924f1dea1c0472 | [] | no_license | privateHmmmm/leetcode | b84453a1a951cdece2dd629c127da59a4715e078 | cb303e610949e953b689fbed499f5bb0b79c4aea | refs/heads/master | 2021-05-12T06:21:07.727332 | 2018-01-12T08:54:52 | 2018-01-12T08:54:52 | 117,215,642 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,646 | py | # -*- coding:utf-8 -*-
#
# Suppose you are at a party with n people (labeled from 0 to n - 1) and among them, there may exist one celebrity. The definition of a celebrity is that all the other n - 1 people know him/her but he/she does not know any of them.
#
#
#
# Now you want to find out who the celebrity is or ver... | [
"hyan90@ucsc.edu"
] | hyan90@ucsc.edu |
3190629752516f8a00989529c3e5b4122ecccdc3 | c2c813717d1ab5df2e912d510595e71eb26d505a | /mineralization/clean code/test_M2-M2_convert.py | c9e69fda0456cdcb52c1b39fb8a98d84aba9b61d | [] | no_license | danielrgreen/toothmin | 7dfaa17dea34c6b42b8196652fb0d1ebcaf4b798 | 307d675225c69340745454ba220df1a5c4089d7a | refs/heads/master | 2020-12-24T16:34:07.595761 | 2017-11-08T19:07:15 | 2017-11-08T19:07:15 | 13,531,025 | 0 | 0 | null | 2014-07-25T19:47:58 | 2013-10-12T23:44:17 | Python | UTF-8 | Python | false | false | 5,230 | py | # Daniel Green, Gregory Green, 2014
# drgreen@fas.harvard.edu
# Human Evolutionary Biology
# Center for Astrophysics
# Harvard University
#
# Mineralization Model Re-Size:
# this code takes a larger mineralization model
# and produces images demonstrating mineral density
# increase over time, total density over time, o... | [
"drgreen@fas.harvard.edu"
] | drgreen@fas.harvard.edu |
e85108788bcb1f5b261f9714053c33ce7a2fa359 | 3f9cfe467c5e5328704188067b15332cc3021f02 | /servic/admin.py | 3795081c8e29739b6ab59c1c4aabff3b616cbdf4 | [] | no_license | mamee93/website-text | c7423cfae9f35c52e2fdc19220912050a76ef013 | e9decd32319b4d1abf39d64dc833d9262b85703a | refs/heads/master | 2022-12-05T00:45:26.004178 | 2020-08-27T09:39:13 | 2020-08-27T09:39:13 | 290,735,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from django.contrib import admin
from .models import Services
# Register your models here.
admin.site.register(Services) | [
"mameeal@gmail.com"
] | mameeal@gmail.com |
6eae2990fa0e566303822d2384af4be325e85c9e | 8d49df8fd04ef5cc5123b956470ab70344d39cc7 | /crash_course/ch17/python_repos.py | cb63fa657aecd488a86f9c05b5e7f4f98cea46e5 | [
"BSD-3-Clause"
] | permissive | dantin/python-by-example | 314c1d97bb527f65e5ada59ee1a72d6df4d881b3 | 5769c7a332ebd60fd54e477b6813f2f2a0f3f37f | refs/heads/master | 2022-12-10T04:49:52.771288 | 2019-03-05T03:41:02 | 2019-03-05T03:41:02 | 143,107,516 | 0 | 0 | BSD-3-Clause | 2022-12-08T02:47:35 | 2018-08-01T05:21:53 | Python | UTF-8 | Python | false | false | 1,487 | py | # -*- coding: utf-8 -*-
import pygal
import requests
from pygal.style import LightColorizedStyle as LCS, LightenStyle as LS
# Make an API call and store the response.
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
r = requests.get(url)
print('Status code:', r.status_code)
# Store A... | [
"noreply@github.com"
] | dantin.noreply@github.com |
fa07e2b4fabebab106934800e1c21dbd1ebddb1a | abfa0fcab2bc9a9c3cccbc3a8142cdd4b2a66ee9 | /251-Flatten 2D Vector.py | f488e83697174a77d26799a5b6cad491014a04f2 | [] | no_license | JinnieJJ/leetcode | 20e8ccf3f8919028c53e0f0db86bcc2fbc7b6272 | 26c6ee936cdc1914dc3598c5dc74df64fa7960a1 | refs/heads/master | 2021-04-15T09:18:08.450426 | 2021-03-06T01:53:27 | 2021-03-06T01:53:27 | 126,275,814 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | class Vector2D(object):
def __init__(self, vec2d):
"""
Initialize your data structure here.
:type vec2d: List[List[int]]
"""
self.stack = vec2d
self.i = 0
self.j = -1
def next(self):
"""
:rtype: int
"""
return self.stack[s... | [
"noreply@github.com"
] | JinnieJJ.noreply@github.com |
b9462913cf8d146f69d2293389e30e4c52a4d3dc | 8e0f89612fb278c07cd871ea29685917caec4e0d | /second_trik_bubble_short.py | a3f219a8bac5489cd00249ab9006136a0bb42ad7 | [] | no_license | amritat123/list_Questions | 169836e87863f1d97776a9f9da0dd14e0512ac8a | d98982fd16a2165d7fd4bea8c89014897a1a0f72 | refs/heads/main | 2023-06-20T06:35:41.533536 | 2021-07-10T07:52:04 | 2021-07-10T07:52:04 | 369,066,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | num=[10,80,50,40,30,20]
l=len(num)
i=0
while i<l:
j=0
while j<i:
if num[i]>num[j]:
pass
j=j+1
i+=1
print(num[-j]) this is buble sort")) | [
"you@example.com"
] | you@example.com |
3671cea80cef5e56d1c8b1e9baab67b8c3992441 | a6803cfd1fad3e8ae7c5f6ee8a34302516f4f3ec | /640_extent/resnet_extent640_4layer_dropout25.py | 611f2d6ffd305f1d41ea5b6d72839634ffaf81d1 | [] | no_license | LasseGoransson/bachelor-code | 906ae4bbd22f6bb73b4727b62268115f186d922a | 016af73719792252bae58b11a2a43a674109abd7 | refs/heads/master | 2022-08-24T11:59:56.017903 | 2020-05-26T08:22:28 | 2020-05-26T08:22:28 | 238,145,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,002 | py | from __future__ import absolute_import, division, print_function, unicode_literals
import neptune
import tensorflow as tf
import tensorflow.keras as keras
from tensorflow.keras.callbacks import Callback
from tensorflow.keras.models import Sequential
from tensorflow.keras import regularizers
from tensorflow.keras.layers... | [
"you@example.com"
] | you@example.com |
fd161207e0b369b7d7a6b1809a4cab6f575b57a7 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sudo/settings.py | 82c6025fc5de974d3bcce10c3ee45c17c23f942a | [
"Apache-2.0",
"BUSL-1.1",
"BSD-3-Clause"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 1,881 | py | """
sudo.settings
~~~~~~~~~~~~~
:copyright: (c) 2020 by Matt Robenolt.
:license: BSD, see LICENSE for more details.
"""
from django.conf import settings
# Default url to be redirected to after elevating permissions
REDIRECT_URL = getattr(settings, "SUDO_REDIRECT_URL", "/")
# The querystring argument to be used for r... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
65b1050ec71da8aaaec7459c66e049e59bb12264 | b007d88e6726452ffa8fe80300614f311ae5b318 | /LeetCode/monthly_challenges/2021/march/27_palindrome_substring_count.py | 8d68e0b1d81402b18b72f054addcaa1466345fa8 | [] | no_license | jinurajan/Datastructures | ec332b12b8395f42cb769e771da3642f25ba7e7f | 647fea5d2c8122468a1c018c6829b1c08717d86a | refs/heads/master | 2023-07-06T14:42:55.168795 | 2023-07-04T13:23:22 | 2023-07-04T13:23:22 | 76,943,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | """
Palindromic Substrings
Given a string, your task is to count how many palindromic substrings in this string.
The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters.
Example 1:
Input: "abc"
Output: 3
Explanation: Three palindromic strin... | [
"jinu.p.r@gmail.com"
] | jinu.p.r@gmail.com |
ac8191849d0491fd40e042225c0b9272cab1af55 | 1af5bbc95a39c505897be519841e02f4ebb0e4f9 | /jtyoui/neuralNetwork/paddle/ernie/run_msra.py | f0b5e8399e4e33de8a7b94c7348cda4d62c0c986 | [
"MIT"
] | permissive | BarryZM/Jtyoui | 037868f7211ee07ddbd4c9c5c3382e290c67fd25 | 08609671237bd5d83d98e1fa796d32ddfc92c274 | refs/heads/master | 2020-09-12T12:10:24.577574 | 2019-11-16T13:52:18 | 2019-11-16T13:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,661 | py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2019/4/11 11:44
# @Author: Jtyoui@qq.com
from jtyoui.neuralNetwork.paddle.ernie.transformer_encoder import encoder, pre_process_layer
from jtyoui.neuralNetwork.paddle.ernie.vocab import vocal
import os
import numpy as np
from paddle import fluid
ERNIE_MODEL_PARAM... | [
"jtyoui@qq.com"
] | jtyoui@qq.com |
81d7753dba35d789f59cee9ca7f6a30e69866f6e | c868d681415d152ba331bd80e0ed542832f20f0e | /week 1/Informatics/2. conditional_operators/b.py | 77bce2b9a69e5fecf01a19fc95c2c9b934653cf9 | [] | no_license | Yeldarmt/BFDjango | a297a6b0c00ffb1a269f05c7e6665c5d34a51097 | b8256ff1d5f2125495df66eabf267fc17e667aeb | refs/heads/master | 2022-11-30T12:45:17.356453 | 2020-04-19T16:50:26 | 2020-04-19T16:50:26 | 233,515,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | n = int(input())
if n%4==0 and n%100!=0 or n%400==0:
print("YES")
else:
print("NO") | [
"eldarmukhametkazin@gmail.com"
] | eldarmukhametkazin@gmail.com |
d26161caf55999dd250bc6d91896d5ba2425d3d6 | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/FrontEnd/server/openmtc-ngsi/lib/futile/string/__init__.py | bb3f869e1ce8737c0fb47dcff6b960676b61f2db | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 414 | py | import string
letters_digits_underscore = string.letters + string.digits + "_"
class InvalidIdentifier(ValueError):
pass
def is_identifier(s):
if not s or s[0] not in string.letters:
return False
for c in s:
if c not in letters_digits_underscore:
return False
return Tr... | [
"sro"
] | sro |
d500b52694b7a8b3507cac32ae78b4c9b63e125c | 21e7753732296bfdfb6dd9a9b58c7c6b8d90a1e5 | /ArraysAndStrings/zSearch/zSearch_test.py | 8e6103cc3afa695d7c5b2498d27d8054250359c9 | [] | no_license | rongfeng-china/python-algorithms-and-data-structures | eb8514b44d7ff97dd7c4deda2d8ea888a5aa8d04 | a69241bb7b684bc7d00acdd46c2fc214f7b61887 | refs/heads/master | 2020-03-13T09:08:13.375870 | 2015-12-11T07:37:30 | 2015-12-11T07:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from zSearch import search
import pytest
def test_zSearch():
string = 'baabaa'
pattern = 'aab'
assert(search(string, pattern) == 1)
| [
"prathamt@outlook.com"
] | prathamt@outlook.com |
1ca9d2844fd7f25bef3d7f66f59a24fc318cab89 | 8da9d3c3e769ead17f5ad4a4cba6fb3e84a9e340 | /src/chila/codexGtk/base/app/connectors/gen/ConnectionPerformer.py | a1ae9d34245a5cb3b3994f97850b732c8cbcaa19 | [] | no_license | blockspacer/chila | 6884a540fafa73db37f2bf0117410c33044adbcf | b95290725b54696f7cefc1c430582f90542b1dec | refs/heads/master | 2021-06-05T10:22:53.536352 | 2016-08-24T15:07:49 | 2016-08-24T15:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | #!/usr/bin/env python
connInstanceSeq = [ ['Application', 'base.application'],
['MainWindow', 'base.mainWindow'],
['FileChooser', 'base.fileChooser.open'],
['FileChooser', 'base.fileChooser.saveAs'],
['ActionExecuter', 'base.actionExecuter... | [
"chilabot@gmail.com"
] | chilabot@gmail.com |
1d03ea638ca2af8b958398f4ea023c74b7a6fa67 | dfb6a80dda5882a1c2be87b0b6e1e7a87a7b4c20 | /test/test_task_status.py | 5a10bfb8adbc5c54b1f995ceca7541743c5b7690 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | artikcloud/artikcloud-python | a090201bea9fadbdf5dd57d94d9085b03b34f927 | c5489b2fca27fd9a8bcea99f309e02cb690dd349 | refs/heads/master | 2020-12-26T03:33:00.657575 | 2017-12-28T20:40:05 | 2017-12-28T20:40:05 | 55,102,598 | 13 | 11 | null | 2017-03-18T03:22:58 | 2016-03-30T22:38:07 | Python | UTF-8 | Python | false | false | 793 | py | # coding: utf-8
"""
ARTIK Cloud API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"jswattonjue@gmail.com"
] | jswattonjue@gmail.com |
548e856a0fa3281825d8b21721b32cb264401c73 | af3ff734866bca30f1821976649d197457f6f66a | /corpus_builder/spiders/newspaper/bhorerkagoj.py | 6f54a1479df963016770b2dd2f87afbaa691e9b6 | [
"MIT"
] | permissive | anwar03/corpus-builder | e69b26e3985ffdc27970117825069b9df2e4387e | 2c3e0d39a0a3dabacda0335d18779a0647bad118 | refs/heads/master | 2022-12-08T21:31:16.051904 | 2020-09-01T08:35:14 | 2020-09-01T08:35:14 | 280,804,773 | 0 | 0 | null | 2020-07-19T06:15:28 | 2020-07-19T06:15:27 | null | UTF-8 | Python | false | false | 1,897 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from corpus_builder.items import TextEntry
from corpus_builder.templates.spider import CommonSpider
class BhorerkagojSpider(CommonSpider):
name = 'bhorerkagoj'
allowed_domains = ... | [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
9231f3551e55d893656a5014bb2189412903f81d | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/operations/_route_filter_rules_operations.py | a484f033d36918f0c61ec5e82a5ba016d1bbadae | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 21,968 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
35715b56113b406fe9d97f7c6d4013cdd75747a5 | 6c2dbc8d4e536220fb3b1cc72aa8104aea8b0698 | /aiogram/methods/copy_message.py | b707580e2d3e903bc6c6470534da52b4c04b5823 | [
"MIT"
] | permissive | aiogram/aiogram | f8f98a0beb63bd4d93ea810638d5792569bf354b | 04bd0c9e7c5421c060183b90d515050f41377bc1 | refs/heads/dev-3.x | 2023-08-30T21:20:13.018174 | 2023-08-28T23:01:54 | 2023-08-28T23:01:54 | 111,210,856 | 4,287 | 1,250 | MIT | 2023-09-10T21:34:03 | 2017-11-18T14:11:13 | Python | UTF-8 | Python | false | false | 5,003 | py | from __future__ import annotations
from typing import TYPE_CHECKING, Any, List, Optional, Union
from ..types import (
UNSET_PARSE_MODE,
ForceReply,
InlineKeyboardMarkup,
MessageEntity,
MessageId,
ReplyKeyboardMarkup,
ReplyKeyboardRemove,
)
from ..types.base import UNSET_PROTECT_CONTENT
fro... | [
"noreply@github.com"
] | aiogram.noreply@github.com |
34f4866b56d43fe79f5e293b9d8e3990e176d8a2 | c3015c988450974e1ab5ea71eac4baf921d9bde7 | /Day_10/2_combination_sum_II.py | fba8d99e8b244e5f2dae28c6bd98d51c8253cc1b | [] | no_license | anoubhav/30-Day-SDE-Challenge | ce758c450e32d0c353e7ba00aaaf37771fe69d32 | 175edd6aba8a8b45482f485dddfafa43c267246c | refs/heads/master | 2023-01-20T09:54:26.685272 | 2020-11-23T18:39:40 | 2020-11-23T18:39:40 | 286,107,830 | 3 | 2 | null | 2020-10-01T16:51:49 | 2020-08-08T19:35:50 | Python | UTF-8 | Python | false | false | 1,301 | py | # Q: https://leetcode.com/problems/combination-sum-ii/
def combSumBackTrackDFS(candidates, target):
# Time complexity: O(2 ^ N), where N is length of candidate. Each element in candidate can be included or not.
ans = []
candidates.sort() # as duplicates are allowed in candidates
n = len(candidates... | [
"anoubhav.agarwaal@gmail.com"
] | anoubhav.agarwaal@gmail.com |
13b0b204500bf8394736ff1df09efa7565a20da4 | af55d33a21cda3e3b9fe10224105eef9f97ad8ec | /saseumn/util.py | 864b43487ac5e322bf4c6226fc1b59b7603e91b7 | [
"MIT"
] | permissive | saseumn/website | 7a06a4a6abafe7da0c5afb0fc4ba2226ab7ce0d7 | 34790dc7db0f7bbb1736761c5738e4d74066f518 | refs/heads/master | 2021-01-01T17:24:49.013633 | 2019-04-03T18:06:32 | 2019-04-03T18:06:32 | 98,065,352 | 3 | 1 | MIT | 2019-03-30T23:12:10 | 2017-07-23T00:26:26 | HTML | UTF-8 | Python | false | false | 2,246 | py | import logging
import random
import re
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from functools import wraps
import hashlib
from urllib.parse import urljoin, urlparse
from flask import abort, flash, redirect, request, url_for
from flask_login import current_user... | [
"failed.down@gmail.com"
] | failed.down@gmail.com |
e50d06dfd3630d296a367aa92bf4288a9c9d0649 | 2a2e503746bd2118047d830a3c2b1910ea7a7b0a | /第七章/1.py | 5efb312df1717a83226bf2a913c2d4fd5afedf0a | [] | no_license | hc973591409/python-auto | dabd1bfae7a5f24b49e25bd855ef8456494aa2b8 | c4182d81693ea93d27965c261ad7dffce2cd180a | refs/heads/master | 2020-04-01T10:53:23.490608 | 2018-10-16T12:58:30 | 2018-10-16T12:58:30 | 153,136,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | ?匹配零次或一次前面的分组。可以关闭贪婪模式
*匹配零次或多次前面的分组。
+匹配一次或多次前面的分组。
{n}匹配 n 次前面的分组。
{n,}匹配 n 次或更多前面的分组。
{,m}匹配零次到 m 次前面的分组。
{n,m}匹配至少 n 次、至多 m 次前面的分组。
{n,m}?或*?或+?对前面的分组进行非贪心匹配。
^spam 意味着字符串必须以 spam 开始。
spam$意味着字符串必须以 spam 结束。
.匹配所有字符,换行符除外。
\d、 \w 和\s 分别匹配数字、单词和空格。
\D、 \W 和\S 分别匹配出数字、单词和空格外的所有字符。
[abc]匹配方... | [
"973591409@qq.com"
] | 973591409@qq.com |
2b8ae9922a31196bcf079263540885dd6b9a5baf | c440ae324c8d5487679b066b62e64176487b4f6a | /mysite/mysite/views.py | 19b9b86888396084e221b42691a1a5db89fabcd3 | [] | no_license | gangyou/python_execrise | d19eef8acf9e6565e56b27204184ca018d0e7712 | 32afdd9b45a0ecc6c966471bda0d3e03ac632aea | refs/heads/master | 2021-01-23T05:35:21.659681 | 2014-02-20T01:24:26 | 2014-02-20T01:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | from django.http import HttpResponse
from django.shortcuts import render_to_response
import datetime
import MySQLdb
def hello(request):
return HttpResponse("Hello World")
def current_datetime(request):
now = datetime.datetime.now()
return render_to_response('dateapp/current_datetime.html', {'current_date': n... | [
"gangyou@gmail.com"
] | gangyou@gmail.com |
cef1ccebbe861a3c2822fb09619b360df1476b15 | 0af55951ccc6da45001bfdc80dad6a9607334849 | /pyvko/aspects/albums.py | d7b7e36da7beb53194a68a3763e99967e169a589 | [
"MIT"
] | permissive | djachenko/pyvko | a1e73095aaa88abc1786f3a1192b3b8ec9dcf85e | 4d2534bd392d073c9ade0ed7c51d021b1d8f6426 | refs/heads/master | 2022-11-14T05:46:30.038235 | 2022-10-08T15:05:31 | 2022-10-08T15:05:31 | 201,685,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,264 | py | from abc import abstractmethod, ABC
from pathlib import Path
from typing import Dict, List
from vk import API
from pyvko.api_based import ApiMixin, ApiBased
from pyvko.attachment.attachment import Attachment
from pyvko.attachment.photo import Photo
from pyvko.shared.photos_uploader import AlbumPhotoUploader
from pyvk... | [
"i.s.djachenko@gmail.com"
] | i.s.djachenko@gmail.com |
81ae7d5d9cb2b61b86e720254a4097c66638524c | 72a58c62d62210e853ef09fdee65bf6ffb8972bd | /src/lib/telegram/utils/webhookhandler.py | 04fc127aaa8840233bc1901e805cff440e5c8e26 | [
"MIT"
] | permissive | thonkify/thonkify | 93ade2489f20fb80c5e8e27fe67b9b231ada62bd | 2cb4493d796746cb46c8519a100ef3ef128a761a | refs/heads/master | 2023-09-01T00:03:10.398583 | 2018-03-16T09:18:24 | 2018-03-16T09:18:24 | 99,354,595 | 17 | 3 | MIT | 2023-09-05T02:27:42 | 2017-08-04T15:10:50 | Python | UTF-8 | Python | false | false | 4,111 | py | import logging
from telegram import Update
from future.utils import bytes_to_native_str
from threading import Lock
try:
import ujson as json
except ImportError:
import json
try:
import BaseHTTPServer
except ImportError:
import http.server as BaseHTTPServer
logging.getLogger(__name__).addHandler(loggi... | [
"david.dellsperger@gmail.com"
] | david.dellsperger@gmail.com |
ba0dd254252f4869fbf6ee211fed3184068abb40 | 78ef0d7736075ee33ac4230f47c078bbf2b0e014 | /news/tests/factories.py | 260f2c6c40c3bea038e82e97e4b5815de433bef0 | [
"Apache-2.0"
] | permissive | PyAr/pyarweb | e22e9350bf107329e5a79c2368fb182958a134d2 | 5f88d1ea0cea9bd67547b70dc2c8bbaa3b8b9d03 | refs/heads/master | 2023-08-31T10:24:53.220031 | 2023-08-29T16:21:57 | 2023-08-29T16:21:57 | 17,032,696 | 64 | 108 | Apache-2.0 | 2023-09-07T04:02:53 | 2014-02-20T19:28:31 | Python | UTF-8 | Python | false | false | 757 | py | from factory import SubFactory, Sequence, post_generation
from factory.django import DjangoModelFactory
from events.tests.factories import UserFactory
from news.models import NewsArticle
class NewsArticleFactory(DjangoModelFactory):
class Meta:
model = NewsArticle
owner = SubFactory(UserFactory)
... | [
"noreply@github.com"
] | PyAr.noreply@github.com |
bdb367c22ca5a5d0cbfd7aeadad6fc5d05cd73de | 38d2ae7fd3ff660704bfeef51087454e6a52191e | /python/prob433/single/prob433.py | 21ef79f73b7c23492a384f457270093fff40d8f0 | [] | no_license | afraenkel/project-euler | 59e8083d4ab3931957e86231636c19ffbc7153d1 | 7db1869f77ca5e5c18f0537b814df2da8175b288 | refs/heads/master | 2020-04-15T17:30:06.586563 | 2016-08-29T22:38:02 | 2016-08-29T22:38:02 | 40,340,384 | 0 | 0 | null | 2015-11-01T09:10:56 | 2015-08-07T04:03:19 | C | UTF-8 | Python | false | false | 1,217 | py |
import itertools as it
# Let E(x0, y0) be the number of steps it takes to determine
# the greatest common divisor of x0 and y0 with Euclid's algorithm.
# Define S(N) as the sum of E(x,y) for 1 ≤ x,y ≤ N.
# We have S(1) = 1, S(10) = 221 and S(100) = 39826.
# Find S(5·10^6).
def E(a, b):
k = 0
while b:
... | [
"aaron.fraenkel@gmail.com"
] | aaron.fraenkel@gmail.com |
65b44cc206dd1be264056206b323a537eee6626f | da1dbb0e1c8c323bbf7ba0eac43b5815ce075282 | /python/ccxt/async_support/bitflyer.py | 62c6dcfde8bd614ee090a59065d8e6b399e31a07 | [
"MIT"
] | permissive | alexander-dev-hub/ccxt | d339662d527bdf0d99380c61ccce233c4475d1a1 | eba5dbe98cf106361c45cec9debda3d2722ea878 | refs/heads/master | 2022-07-10T05:03:35.809978 | 2019-09-02T19:10:10 | 2019-09-02T19:10:10 | 205,919,117 | 1 | 1 | MIT | 2022-06-22T15:56:21 | 2019-09-02T19:00:14 | JavaScript | UTF-8 | Python | false | false | 16,724 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.async_support.base.exchange import Exchange
from ccxt.base.errors import ExchangeError
from ccxt.base.errors import ArgumentsRequ... | [
"wangming19871126@gmail.com"
] | wangming19871126@gmail.com |
a7c06dc93cc7febe105c9c5e02e838264589e283 | bb142df010298fb4fa51d021a869bc99f689541b | /arelle/plugin/security/cryptAES_CBC.py | 47f32f7e35b403f4958f998c77ac43e52b7dc2da | [
"Apache-2.0"
] | permissive | fritzh321/Arelle | 6d7a7363716d52e3bf2f788c43a50de5f84edaa3 | fd585c7a5cef067ae213059bb864c4d32f937eb5 | refs/heads/master | 2020-04-09T22:50:02.115753 | 2018-12-02T16:33:20 | 2018-12-02T16:33:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,957 | py | '''
Created on June 7, 2018
@author: Mark V Systems Limited
(c) Copyright 2018 Mark V Systems Limited, All rights reserved.
Template crypt module using AES CBC mode.
Customize for an integrated security environment
Input file parameters may be in JSON (without newlines for pretty printing as below):
[ {"file": "f... | [
"fischer@markv.com"
] | fischer@markv.com |
6de2299a08c10405b614b3e10584176fc4c0a16f | 6a194f60c57f00d89467a551696a6d12c6494ca5 | /migrations/versions/b67f74365ac0_updated_the_classes.py | 6906146f3c3e3c17f86d5eff34066880f6b860a3 | [
"MIT"
] | permissive | GeGe-K/Pitcher-App | 3479bc41b0dd431592db87dd9bf94ca59645e2d6 | 4a970b37fe0fcd63ad3853a4f764c410a4acb640 | refs/heads/master | 2020-04-06T22:37:58.522524 | 2018-11-26T08:41:18 | 2018-11-26T08:41:18 | 157,842,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | """updated the classes.
Revision ID: b67f74365ac0
Revises: 9d0c25ad18b3
Create Date: 2018-11-20 08:24:19.781368
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b67f74365ac0'
down_revision = '9d0c25ad18b3'
branch_labels = None
depends_on = None
def upgrade():... | [
"gloriagivondo@gmail.com"
] | gloriagivondo@gmail.com |
11a6fe0692f20dd9838d132b112065aff12e988d | 2f30cf20d58e2cde4037441e67213223c69a6998 | /lesson32_接口总结/d2_time_log.py | dc2d95c037ebc1ecda9cf0ab9e2c2fdab64b67c4 | [] | no_license | zengcong1314/python1205 | b11db7de7d0ad1f8401b8b0c9b20024b4405ae6c | da800ed3374d1d43eb75485588ddb8c3a159bb41 | refs/heads/master | 2023-05-25T07:17:25.065004 | 2021-06-08T08:27:54 | 2021-06-08T08:27:54 | 318,685,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # 根据时间生成新文件
import logging
import time
from logging.handlers import TimedRotatingFileHandler
logger = logging.getLogger('python36')
handler = TimedRotatingFileHandler('time12.log',when='s',interval=2,backupCount=100,encoding='UTF-8')
logger.addHandler(handler)
for i in range(100):
logger.warning("生成警告信息{}".format... | [
"237886015@qq.com"
] | 237886015@qq.com |
68b702c7709ce4ab311d3fa7fb54a30b2284e31d | bd3fb18aef0bf47eb6410107d939134cffc3a1ae | /0-jakc/jakc_sale/models/procurement.py | 976173c9d8ebca1145d8f77ed6cb1eee4a2fdaf9 | [] | no_license | rapolebas/project-0021 | 477227f7359c893df891c1d98da82d45b6cfcdbe | 4e65ca034be5ff4c7a9c91a988db85ec37392452 | refs/heads/master | 2020-03-16T02:32:32.213774 | 2017-12-02T07:59:15 | 2017-12-02T07:59:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | from datetime import datetime, timedelta
from openerp import SUPERUSER_ID
from openerp import api, fields, models, _
import openerp.addons.decimal_precision as dp
from openerp.tools import float_is_zero, float_compare, DEFAULT_SERVER_DATETIME_FORMAT
import logging
logging.basicConfig(level=logging.DEBUG)
logger = log... | [
"wahhid@gmail.com"
] | wahhid@gmail.com |
4a80d8be5dbcc1b93e738373fe9b598f7b96a3e3 | ad8de2c69a4d3692af2ce14aaa31ba97de95f24f | /project_code/Example Scripts/plot_oneclass.py | 28048908c1cd94c8c477ae1709fb92532a28fc17 | [
"MIT"
] | permissive | e-koch/Phys-595 | b04f7179879b3f6ff8a6d608be8667b892b874d9 | 44872fa47609242f7aa8671eb75851622516129f | refs/heads/master | 2021-01-25T05:28:09.497201 | 2015-09-10T04:58:26 | 2015-09-10T04:58:26 | 24,083,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | """
==========================================
One-class SVM with non-linear kernel (RBF)
==========================================
An example using a one-class SVM for novelty detection.
:ref:`One-class SVM <svm_outlier_detection>` is an unsupervised
algorithm that learns a decision function for novelty detection:
... | [
"koch.eric.w@gmail.com"
] | koch.eric.w@gmail.com |
a4e6f962ca98d0ce434961e1858aedd883e2937e | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/experimentcode/DrybedHoriz/stabilisationtermuto0/Run.py | 8e13f5080338655f55c6395ecb2358b0a48709d4 | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,880 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 5 14:24:26 2017
@author: jp
"""
from Serre2dc import *
from scipy import *
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
import csv
import os
from numpy.linalg import norm,solve
from time import time
from scipy.interpolate import ... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
f3e82229dd7ad3dce9fa4f95ba275f4f42e1397d | dbf635c24ed9eff228ffaf35e71dcfd3712891a5 | /acoustic/COVAREP/sentence_level_format/archived_models/archived_model_4/load_model.py | a663a69b3fee68df98be40a215253ee114384130 | [] | no_license | aascode/depression_estimation_from_individual_modalities | 57f3b6ebf740585c9cb3d5821028969e2f36e4d1 | 6e1563b4081c4aadc91f7110c684290b7a622167 | refs/heads/master | 2022-01-14T20:41:33.333739 | 2019-05-06T18:30:11 | 2019-05-06T18:30:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | import numpy as np
import keras
from keras.models import Model, Sequential, load_model
from keras.layers import Dense, CuDNNLSTM, Input, Concatenate, Dropout
from keras import regularizers
def load_model(location = None):
if(location != None):
model = keras.models.load_model(location)
print("Loaded the model."... | [
"arbaaz.qureshi29@gmail.com"
] | arbaaz.qureshi29@gmail.com |
340d1b477b1dd67a4c8461aabf6a05268df3064b | 3c358b34811ad9d178e2865336498dde3f3e5032 | /WAFLEX/server/mymail.py | 8db59a99094a40f33d3899b37367ca1491db7699 | [] | no_license | shywj05/WAFLEX-MiddelProject | b255796839c889a16c4900a87f2e5adcd1337a44 | ca8db1e368104f75218a8da9a0f987349d27f755 | refs/heads/master | 2023-06-30T23:50:22.367106 | 2021-08-03T01:15:11 | 2021-08-03T01:15:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | import smtplib
from email.mime.text import MIMEText
import string
import random
class MyMail:
def mysendmail(self, recvEmail, title):
smtpName = "smtp.gmail.com" #smtp 서버 주소
smtpPort = 587 #smtp 포트 번호
sendEmail = "sysojxx@gmail.com"
password = "Qwe123!@#"
... | [
"shywj05@gmail.com"
] | shywj05@gmail.com |
d24d26e9d5ed8d25813644ad2f4e81cb5ebce786 | 82fe367292a7f02a3e0285cf4eb82c64dc1320b3 | /fuchsia/test/common.py | 448b1dfc1d30465375b2ed7fcb49bc16ab58b3af | [] | no_license | denoland/chromium_build | 6644e800214cc080ab38eeaa77bace280c92bc75 | 3d4b0c1e773d659da18710fc4984b8195f6d5aea | refs/heads/upstream | 2023-05-15T07:02:07.545465 | 2022-12-09T21:15:30 | 2022-12-09T21:37:17 | 159,756,845 | 36 | 18 | null | 2023-01-13T15:56:40 | 2018-11-30T02:26:43 | Python | UTF-8 | Python | false | false | 9,905 | py | # Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Common methods and variables used by Cr-Fuchsia testing infrastructure."""
import json
import logging
import os
import re
import subprocess
import time
from argparse import Ar... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
307cd74f01bac3f5f7372ab4a7ad3205c7496789 | 69ff10443014ac749d6e8e5eb8dd65f0ae995e0c | /install/opt/etc/gunicorn/sigproxy_config.py | 4764190e9bef0dfc137545068bab743d1f6bf0fd | [] | no_license | identinetics/d-PVZDweb | 1443051a961c2ffff3cef8fc5326a651d4783443 | 1e269546a505eed121e32cf22b7f2227e6473c95 | refs/heads/master | 2021-07-13T01:46:34.025748 | 2019-05-09T07:20:18 | 2019-05-09T07:22:06 | 160,792,534 | 0 | 1 | null | 2020-06-08T13:27:09 | 2018-12-07T08:10:35 | Shell | UTF-8 | Python | false | false | 786 | py | import os
from seclay_xmlsig_proxy_config import SigProxyConfig as Cfg
# Parameter description: see https://github.com/benoitc/gunicorn/blob/master/examples/example_config.py
bind = Cfg.host + ':' + str(Cfg.port)
access_log_format = '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
accesslog = '/var/log/... | [
"rainer@hoerbe.at"
] | rainer@hoerbe.at |
a50973a8bd1678285d68efd946efa8189a37f8e9 | 39882eebbd9644851e8557507c45a55ccfb00227 | /4-Integrate/integrate.py | ce2e18b034d74746b633ce92fd5888dbee6ef6fb | [] | no_license | ayman-elkassas/Scipy-CrashCode | 8df0ffcbe8074742e90a638c4e35d273b16d83b0 | af655e7752e32430afbc5d3b8bdc2316853d1e4e | refs/heads/master | 2023-04-03T08:37:44.916335 | 2021-04-12T01:12:13 | 2021-04-12T01:12:13 | 357,019,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | import scipy.integrate
from numpy import exp
f= lambda x:exp(-x**2)
i = scipy.integrate.quad(f, 0, 1)
print(i) | [
"aymanelkassas88@gmail.com"
] | aymanelkassas88@gmail.com |
31629044d25bd064c858a57729c27efc7fae6dd7 | 5644bffcb3888788622732d70c4efe9766968e0b | /quotes_api/quotes_api/urls.py | d856b893bc6362c7f0b10ddfc30862ae92669895 | [] | no_license | jordanengstrom/quotes_api | ff341e852ce20f666009d2ae1967273c3e5bdcde | df2949ea7b35fede76eb2a54b96441103f4cc11e | refs/heads/main | 2023-01-01T04:17:45.458913 | 2020-10-26T19:47:30 | 2020-10-26T19:47:30 | 307,486,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | """quotes_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"jordan.engstrom@gmail.com"
] | jordan.engstrom@gmail.com |
cbcfdc0e60f18a05779c713ed704226606269649 | 7950091dfd123b9fbe020cb8c9f529e98f7a89d8 | /weatherenv/Lib/site-packages/pipenv/vendor/backports/__init__.py | 0c64b4c10b513a109244dbb31d44bb616bdcf10c | [
"LicenseRef-scancode-python-cwi",
"Python-2.0",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"MIT",
"BSD-3-Clause"
] | permissive | diyajaiswal11/Weather-App | d0000ebd12fb051cca8a4c56da4418c89714fb3e | f5e1bca505f6643d870b905577a383a10d17b026 | refs/heads/master | 2022-12-11T05:16:38.941949 | 2020-08-25T18:02:18 | 2020-08-25T18:02:18 | 231,254,913 | 3 | 0 | MIT | 2022-12-08T03:22:58 | 2020-01-01T19:25:37 | Python | UTF-8 | Python | false | false | 179 | py | __path__ = __import__('pkgutil').extend_path(__path__, __name__)
from . import weakref
from . import enum
from . import shutil_get_terminal_size
from . import functools_lru_cache
| [
"shubhijaiswal2000@gmail.com"
] | shubhijaiswal2000@gmail.com |
61e6f3a928aa35bcf99f40bd24b1eb37ecbdd5e0 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_07_01/operations/_local_network_gateways_operations.py | 21350c56dcb9f8c6f04581be444f0f4d9fc8807c | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 25,509 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
76d348dd6ae297a33d077ef1b31f5028fbf0cb36 | a8d86cad3f3cc6a977012d007d724bbaf02542f7 | /testsuites_dev/vui/sandbox/parse_test_suite.py | af2cfbb7b8f5b922afabd76a9b2df5c5256e8d27 | [] | no_license | bopopescu/bigrobot | f8d971183119a1d59f21eb2fc08bbec9ee1d522b | 24dad9fb0044df5a473ce4244932431b03b75695 | refs/heads/master | 2022-11-20T04:55:58.470402 | 2015-03-31T18:14:39 | 2015-03-31T18:14:39 | 282,015,194 | 0 | 0 | null | 2020-07-23T17:29:53 | 2020-07-23T17:29:52 | null | UTF-8 | Python | false | false | 345 | py | #!/usr/bin/env python
import sys
from robot.api import TestData
def print_suite(suite):
print 'Suite:', suite.name
for test in suite.testcase_table:
print '-', test.name
for child in suite.children: # recurse through testsuite directory
print_suite(child)
suite = TestData(source=sys.argv... | [
"vui.le@bigswitch.com"
] | vui.le@bigswitch.com |
ccc0c00ee714e842e0109aed656cd984dce4fb0a | b7add0d1b1effc50b27d3316fa5889a5227e5b19 | /Micropython/backups/tests/archieved/servo_driver_test.py | b14cc8b334a2136f39fec59f7d606d07e82b091c | [] | no_license | Woz4tetra/Atlas | efb83a7c7b2698bf8b36b023f7aa573cc38284f6 | c7380868a9efef9d1594ed7aa87187f03a7e4612 | refs/heads/master | 2020-04-04T06:25:50.657631 | 2017-04-05T01:53:15 | 2017-04-05T01:53:15 | 50,269,756 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | import pyb
from libraries.pca9685 import ServoDriver
servo_driver = ServoDriver(2, -90, 90, 150, 600)
assert servo_driver.angle_to_pulse(-90) == 150
assert servo_driver.angle_to_pulse(90) == 600
assert servo_driver.angle_to_pulse(0) == 375
# servo_driver.servo_angle_min =
# servo_driver.servo_angle_max =
# servo_d... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
3159f08ce73dc31e6bc9ee9d40859fdff73dd26b | 7fb87945b77d3adaedd8a155c981e97946734e41 | /cachetools/func.py | 78ec7f632964682cc6be0e5d5585a16cb22d26d7 | [] | no_license | Tony910517/openstack | 916b36368ea9f17958e4eb04bd1f9daf3aba9213 | 4c1380a03c37e7950dcf2bba794e75b7e4a8dfd0 | refs/heads/master | 2020-05-20T01:05:22.499224 | 2019-05-07T01:11:05 | 2019-05-07T01:11:05 | 185,292,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,382 | py | import collections
import functools
import random
import time
from .lfu import LFUCache
from .lru import LRUCache
from .rr import RRCache
from .ttl import TTLCache
try:
from threading import RLock
except ImportError:
from dummy_threading import RLock
_CacheInfo = collections.namedtuple('CacheInfo', [
'h... | [
"471123674@qq.com"
] | 471123674@qq.com |
22fb8faa4caea83148a72dd49a86ee026fd19c42 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02659/s499786056.py | 498c72c7de83f8d871d5f5e2a21764ab75f056b6 | [] | 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 | 86 | py | a, b = map(float, input().split())
a = round(a)
b = round(b*100)
print(a * b // 100) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7943b6a769c17e914c502d093500da05a3a32b96 | 37482bcc34c569b2042cc4f893a92360cb5cbca6 | /shell/userinfo.py | ed06ab41df9ca3fd84acfc2b025e1ee08f2ecb10 | [] | no_license | hustmonk/k21 | 8442b7bdc6eb92282add59a4ee9166a89897d3f4 | 12279e970da57150154ef3a6343afccb8b992870 | refs/heads/master | 2016-09-05T09:22:48.506265 | 2015-07-11T13:01:33 | 2015-07-11T13:01:33 | 35,711,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | #!/usr/bin/env python
# -*- coding: GB2312 -*-
# Last modified:
"""docstring
"""
__revision__ = '0.1'
from common import *
from weekend import *
from Object import *
class Userinfo:
def __init__(self):
self.uid_num = {}
self.uid_days = {}
for line in open("conf/user.info"):
u... | [
"liujingminghust@163.com"
] | liujingminghust@163.com |
f0f5d2e0e0693be10cb308b2a39769d289e2ecbc | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /hoxv8zaQJNMWJqnt3_6.py | 80095df9794340c219bca34f726b867be42b5f8d | [] | 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 | 189 | py |
def is_heteromecic(n, test = 0):
if n==test*(test+1): return True
if test>int(n**.5): return False
return is_heteromecic(n, test+1)
# yet again, I'd hardly call this recursion...
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fb6ce6d5ebf417aab66391b1ce2da8a5afc32d15 | 71bd623429f3b9f3701603836cf91f98436d48a7 | /tests/test_compute_embeddings.py | 0bfee0d2862e82494e0f8b5576c22f2b73997d55 | [
"Apache-2.0"
] | permissive | xiaobiaohust/sentence-transformers | b9f7d41901ef3159cb933e3d7d4f2e7698503975 | 167e4567670d711ef543239d0b922858c796a2fc | refs/heads/master | 2023-03-23T05:46:18.989786 | 2021-03-17T21:20:15 | 2021-03-17T21:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | """
Computes embeddings
"""
import unittest
from sentence_transformers import SentenceTransformer
import numpy as np
class ComputeEmbeddingsTest(unittest.TestCase):
def setUp(self):
self.model = SentenceTransformer('paraphrase-distilroberta-base-v1')
def test_encode_token_embeddings(self):
... | [
"rnils@web.de"
] | rnils@web.de |
ed8a1eaea1d7b77ed9b4b067104c6a228d5336a4 | 6a6984544a4782e131510a81ed32cc0c545ab89c | /src/simprod-scripts/resources/tests/generators/nugen-generator.py | 934c279088774b490b79df7b1f9a5806373d3362 | [] | no_license | wardVD/IceSimV05 | f342c035c900c0555fb301a501059c37057b5269 | 6ade23a2fd990694df4e81bed91f8d1fa1287d1f | refs/heads/master | 2020-11-27T21:41:05.707538 | 2016-09-02T09:45:50 | 2016-09-02T09:45:50 | 67,210,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | #!/usr/bin/env python
"""Ensure that the NuGen API hasn't changed (too much)"""
import os
import tempfile
import shutil
from icecube.simprod.modules.nugen import NuGen
from icecube import icetray, dataclasses, dataio
from I3Tray import I3Tray
try:
tmpdir = tempfile.mkdtemp(dir=os.getcwd())
tmpfile = os.pat... | [
"wardvandriessche@gmail.com"
] | wardvandriessche@gmail.com |
ef990efbcc159fa01bb54f036ae7fdee2768ce9c | b67958ebbde7538f6c5dc0305ed278f7c1a9528a | /networking_tn/common/config.py | 4d6a5bfa7757d4899831213ab593e0c75d393d7d | [
"Apache-2.0"
] | permissive | xjforfuture/networking-ngfw | 4c6b04ede370ba9888422715d5a4be7858335fe0 | 26fa3aa94e0ae733dde47c82f3372afeb07ff24b | refs/heads/master | 2021-05-15T06:34:12.658302 | 2017-12-12T07:01:31 | 2017-12-12T07:01:31 | 113,798,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,819 | py | # Copyright 2015 Fortinet 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 agre... | [
"xjforfuture@163.com"
] | xjforfuture@163.com |
93120f4f678d41f66a3161ce124689235c26903b | 0c6100dc16291986fab157ed0437f9203f306f1b | /2000- 3000/2712.py | 1116e8cbeb79eb95c5222b1816185b7230018b3d | [] | no_license | Matuiss2/URI-ONLINE | 4c93c139960a55f7cc719d0a3dcd6c6c716d3924 | 6cb20f0cb2a6d750d58b826e97c39c11bf8161d9 | refs/heads/master | 2021-09-17T09:47:16.209402 | 2018-06-30T08:00:14 | 2018-06-30T08:00:14 | 110,856,303 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | import re
loops = int(input())
for i in range(loops):
data = input()
placa = re.compile('([A-Z]{3})-([0-9]{4})') # vê se segue o formato AAA-9999
# Tem que checar o tamanho pois placas como AAA-9999x também são aceitas pelo regex
if placa.match(data) and len(data) == 8:
ultimo = data[-1]... | [
"noreply@github.com"
] | Matuiss2.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.