blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0519b9a6c3d736fd51361e9def7cf66c291409c5 | 915ac708aeac53125f29bef90c2c047eaed4940e | /Anaconda/Scripts/rst2xetex.py | 2d9179a588e56dbef11208ccd0ed3621286f9cc3 | [] | no_license | bopopescu/newGitTest | c8c480ddd585ef416a5ccb63cbc43e3019f92534 | 5a19f7d01d417a34170a8f760a76e6a8bb7c9274 | refs/heads/master | 2021-05-31T17:00:26.656450 | 2016-06-08T06:43:52 | 2016-06-08T06:43:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #!C:\aroot\stage\python.exe
# $Id: rst2xetex.py 7038 2011-05-19 09:12:02Z milde $
# Author: Guenter Milde
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing XeLaTeX source code.
"""
try:
import locale
locale.setlocale(locale.LC_ALL, '')... | [
"arvindchari88@gmail.com"
] | arvindchari88@gmail.com |
48f6fab3b18bb1659f37d45e12c7ea01398ed32a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_bunts.py | 41d450a12d291732d8830616446e29d1957fe2d2 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _BUNTS():
def __init__(self,):
self.name = "BUNTS"
self.definitions = bunt
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['bunt']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e662722fad68cff102487d6ba08454d41807ad11 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_Dynamic_ID4069_for_PyTorch/yolox/layers/fast_coco_eval_api.py | 55bfa28a1c06813d48ff90862908a7655239001e | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,464 | py |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"hanjun20@huawei.com"
] | hanjun20@huawei.com |
fe484f2dbfa7363e12c93e00a34759692e113a73 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /test/test_term_session_item.py | 7867f29a7aa4a6fd2bb993565b40f161db7abf86 | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
415935edef31996e2b359804e324f5f7b3d48614 | ab9b75fcdd2b7352968886e5ed41ee7788216226 | /src/gamesbyexample/stickyhands.py | a1af5601756ea83263f3a20e8dd2bb26220102ac | [
"MIT"
] | permissive | mgocken/PythonStdioGames | d7b48cafbc33a027548cab08ad08aea6c0c81abd | 036d2f142581fb74a38400721aecce15a695e1bc | refs/heads/master | 2020-09-29T18:35:34.589307 | 2019-12-06T00:15:46 | 2019-12-06T00:15:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,528 | py | # Sticky Hands, by Al Sweigart al@inventwithpython.com
# A jewel-stealing, movement puzzle game.
__version__ = 1
# Inspired by Herding Cats https://w.itch.io/herding-cats
# TODO - Enter R to reset the entire level.
import copy, os, sys
# Setup the constants:
WALL = chr(9608)
FACE = chr(9786)
DIAMOND = chr(9830)
CHA... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
02e1b1ac9d7ca0fcf0fa59318c57df5d46403f9d | 16809bf25066488f2f32f154dadef3e30c68ae68 | /sine_wave.py | 0ed35aeb1f8d136868fdb4c3053a10605cc1bcdf | [] | no_license | aidiary/signal_processing | 0db6d1a9662ccd0fe232ccc461e9b27174c8ef88 | 4c1cb8ceee3a1527f38b8dbf9ffa1a737d06b577 | refs/heads/master | 2021-01-13T03:44:32.721301 | 2016-12-23T13:40:10 | 2016-12-23T13:40:10 | 77,221,395 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | #coding: utf-8
import wave
import struct
import numpy as np
from pylab import *
def createSineWave (A, f0, fs, length):
"""振幅A、基本周波数f0、サンプリング周波数 fs、
長さlength秒の正弦波を作成して返す"""
data = []
# [-1.0, 1.0]の小数値が入った波を作成
for n in arange(length * fs): # nはサンプルインデックス
s = A * np.sin(2 * np.pi * f0 * n / ... | [
"f2forest@gmail.com"
] | f2forest@gmail.com |
deb27eae24f4cd46475211751438e904854e037a | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /ros/py_ros/kdl_test2.py | 120f3dc29d4eeaee751accf468dd08397df344f3 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #!/usr/bin/python
#\file kdl_test2.py
#\brief certain python script
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
import numpy as np
from kdl_kin import TKinematics
if __name__=='__main__':
np.set_printoptions(precision=3)
print 'Testing TKinematics (robot_description == Yaskawa Motoman is as... | [
"info@akihikoy.net"
] | info@akihikoy.net |
862323cdd250fded22470d58b5b961390e8c4680 | 88748ec85d537e4b50ba45a255a0dcc3c154116f | /tests/unit/test_poll.py | 2810d41f352a9741f36504ab9e9b2f71976b5c96 | [
"MIT"
] | permissive | byrgazov/vanilla | 17c53843b1b2f6b5484e4ff8e2fab54123245cc0 | 2896ae049d9e58ef3b4008a869ebf481951d0780 | refs/heads/master | 2020-07-30T12:30:04.497223 | 2020-07-24T10:08:03 | 2020-07-24T10:08:03 | 210,235,284 | 0 | 0 | MIT | 2019-09-23T00:49:06 | 2019-09-23T00:49:06 | null | UTF-8 | Python | false | false | 1,731 | py | import os
import vanilla.poll
class TestPoll(object):
def test_poll(self):
poll = vanilla.poll.Poll()
r, w = os.pipe()
poll.register(r, vanilla.poll.POLLIN)
assert poll.poll(timeout=0) == []
os.write(w, '1')
assert poll.poll() == [(r, vanilla.poll.POLLIN)]
... | [
"andy@thecablelounge.com"
] | andy@thecablelounge.com |
c008d92d5264518d006a4ff9b43acef4f19e4c38 | 30b004cad2c14b47b5f66c3a4a0015e05ca4a27e | /contrib/data_safety_training/image_classification/submitter.py | 920b60ad8fed2d7ff0b13d17001d8227f3b0abb8 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleFL | 66c26f774eeadc25c12e74056ac389e0c1f61b84 | dcc00c5dff62c3dd0092801f4e9b89d8c0957d3d | refs/heads/master | 2023-08-07T22:05:24.806573 | 2023-03-21T01:15:10 | 2023-03-21T01:15:10 | 210,873,203 | 486 | 136 | Apache-2.0 | 2023-07-26T22:30:57 | 2019-09-25T15:01:39 | Python | UTF-8 | Python | false | false | 1,090 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"jingqinghe@baidu.com"
] | jingqinghe@baidu.com |
a31688d8579cfce253b6dac4f680333340f6b0e4 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_sklearn/pyunit_sklearn_params.py | 2a70a91baafd68393e95b43969166ffea1f8a2ea | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 7,702 | py | from __future__ import print_function
import os, sys
from sklearn.pipeline import Pipeline
from h2o.sklearn import H2OAutoMLEstimator, H2OGradientBoostingEstimator, H2OScaler, H2OPCA
sys.path.insert(1, os.path.join("..",".."))
from tests import pyunit_utils
seed = 2019
def test_all_params_are_visible_in_get_para... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
e9d1caab6dde00c07ce3832efe253d9348ac4a88 | 940dcf18bb1db19610e29902c78ec703690c4297 | /pygame/py002.py | 17a13a71d3e9bdeacc203460516516e052a3e799 | [] | no_license | Sahil4UI/PythonRegular11-12Dec2020 | dc20e8d13d191801301d18d5b92f5775fe9c0674 | 0b22b1d8c703ac21a1f02c2b10f327bcb2e96460 | refs/heads/main | 2023-02-27T13:00:22.415199 | 2021-01-31T06:57:58 | 2021-01-31T06:57:58 | 318,424,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,076 | py | import random
import pygame
import time
from pygame.locals import *
pygame.init()
H= 600
W=800
gameScreen= pygame.display.set_mode((W,H))
color= (255,255,255)
red = (255 , 0 , 0 )
blue = (0,0,255)
w=30
h=30
pygame.time.set_timer(USEREVENT,1000)
frog=pygame.image.load("frog.png")#raw string-path
frog... | [
"noreply@github.com"
] | Sahil4UI.noreply@github.com |
b540a1018ada187e4e6e105e8d050f936df3061b | f416ab3adfb5c641dc84022f918df43985c19a09 | /problems/advent-of-code/2022/05/sol2.py | 78cf7599b31d96f7b01fd8ad778ed956290eda79 | [] | no_license | NicoKNL/coding-problems | a4656e8423e8c7f54be1b9015a9502864f0b13a5 | 4c8c8d5da3cdf74aefcfad4e82066c4a4beb8c06 | refs/heads/master | 2023-07-26T02:00:35.834440 | 2023-07-11T22:47:13 | 2023-07-11T22:47:13 | 160,269,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | import sys
def splitInput(lines):
stack_data = []
moves = []
parsing_stack = True
for line in lines:
if not line:
parsing_stack = False
continue
if parsing_stack:
stack_data.append(line)
else:
moves.append(line)
stack_coun... | [
"klaassen.nico@gmail.com"
] | klaassen.nico@gmail.com |
37be2dd7a036a0d6c20d49738fb4226536c20ac2 | ff21f04b692891b13fa2ed49293e5d99fea742db | /hunt/scripts/job_spider.py | 41015307bdb3af0ba459f972c27a7bd7b13714fd | [] | no_license | yangby-cryptape/job-hunter | 3caf49c9290a077661c8e245565132e2a8671c05 | 1b58b2f23ac7d1aba08feaff29692adb8fe58161 | refs/heads/master | 2021-05-27T17:35:09.370516 | 2012-06-25T07:38:06 | 2012-06-25T07:38:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,263 | py | #!/usr/bin/env python
#coding=utf-8
import hashlib, urllib2, time, re
from datetime import datetime
from pyquery import PyQuery as pq
from models import db, Occupational, Job, Company
def get_headers(gzip=False):
headers = {
"User-Agent":"Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.13) Gecko... | [
"thewawar@gmail.com"
] | thewawar@gmail.com |
521ea38335f0c6bebf7ef64a8d68203c32de69dc | f97cabce5c91238678e159387f03636d4deb90fb | /dajare/crawler_kaishaseikatsu_jp.py | c0bb1bb7c7b5cf459ec22cf9603ddf779b6d4b93 | [] | no_license | vaaaaanquish/dajare-python | 1daa8b4d31a9e3d5e1336d3b31693c1d491ed814 | 150132cef0333a94c9e286c4241af92c630cd7bd | refs/heads/master | 2022-12-10T08:46:42.827279 | 2020-12-11T03:28:54 | 2020-12-11T03:28:54 | 242,304,312 | 16 | 3 | null | 2022-12-08T03:43:06 | 2020-02-22T08:09:23 | Jupyter Notebook | UTF-8 | Python | false | false | 1,010 | py | from tqdm import tqdm
from dajare.crawler import Crawler
class CrawlerKaishaseikatsuJp(Crawler):
def run(self):
output_list = self._run()
self.output(output_list, 'dajare_kaishaseikatsu_jp.json')
def _run(self):
output_list = []
for i in tqdm(range(0, 2200, 100)):
... | [
"6syun9@gmail.com"
] | 6syun9@gmail.com |
879086db133bd1ab22783e38d697afc115869d4f | 71c4a775c81179e920b72bdee87d9af3edfd4d99 | /01_Sintaxe_Basica/10_dicionario.py | 9ea3b3c107c7a83db1b023da9899d434b0a3d0f8 | [] | no_license | frclasso/acate18122018 | 16f4169dbfb0eb8c25e253965642122e6095a211 | 98e4697d4e34c740a537a553b5ae6841159c58f7 | refs/heads/master | 2020-04-08T00:54:59.822648 | 2019-01-24T16:55:42 | 2019-01-24T16:55:42 | 158,873,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | #!/usr/bin/env python3
aluno = {'ID': 1223,
'Nome':'Patricia',
'Idade': 27,
'Curso': 'Sistemas de Informação',
'Turno':'Noturno'
}
print(f"ID: {aluno['ID']}")
print(f"Nome: {aluno['Nome']}")
print(f"Idade:{aluno['Idade']}")
print()
'''Atualizando valores existentes'''
alu... | [
"frcalsso@yahoo.com.br"
] | frcalsso@yahoo.com.br |
01e192a4c835a3d6ec4c29d6fb66176e51359dcb | 7c27898a5f85dedf0dbbb12451b6c635861dc197 | /tornado_overview/chapter03/aiomysql_test.py | 8c3375ad203593d54c3a67dc4692f73aa301b121 | [] | no_license | Asunqingwen/Tornado_test_application | 9323d3289fadf69e7b1e7685da8f631d0e88968f | 4f3a9cda9fc081a8b83f06934bc480cd597d4ad8 | refs/heads/master | 2023-02-18T08:43:58.012236 | 2021-01-21T09:59:57 | 2021-01-21T09:59:57 | 330,935,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import asyncio
import aiomysql
from tornado import gen, ioloop
async def go():
pool = await aiomysql.create_pool(host='192.168.10.69', port=3306,
user='root', password='root',
db='message', charset="utf8")
async with pool.acquire() as... | [
"sqw123az@sina.com"
] | sqw123az@sina.com |
b5346db185ed928a79136d01fd3e7a44a8ff0b6e | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/PackDist/share/python/PackDistCommon.py | 0833847cfd1065059cea672b676003e232021674 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,754 | py | """File: PackDistCommon.py
Common classes and utility functions of the PackDist package.
"""
__author__ = 'Grigori Rybkine <Grigori.Rybkine@cern.ch>'
__version__ = '0.2.1'
__date__ = 'Wed Oct 03 2012'
__all__ = ['Error', 'InputError', 'CommandError', 'exitstatus']
import sys
import os
class Error(Exception):
... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
b0593bc623f07101fd1c4aac9dd0a4ebc0980eb2 | 955b968d46b4c436be55daf8aa1b8fc8fe402610 | /ch04/set_window_size.py | 110459bc02e4e910978194acc115ddfccc6554d7 | [] | no_license | han-huang/python_selenium | 1c8159fd1421b1f0e87cb0df20ae4fe82450f879 | 56f9f5e5687cf533c678a1c12e1ecaa4c50a7795 | refs/heads/master | 2020-03-09T02:24:48.882279 | 2018-04-07T15:06:18 | 2018-04-07T15:06:18 | 128,535,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from selenium import webdriver
driver = webdriver.Firefox()
driver.get("https://mail.google.com")
# 參數字為像素點
print("設定瀏覽器寬480 高800顯示")
driver.set_window_size(480, 800)
# driver.quit()
| [
"vagrant@LaravelDemoSite"
] | vagrant@LaravelDemoSite |
87fa353d224bca02fb3655134746bec120ffc10b | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/compute/v20191201/gallery_application_version.py | 09d6082a067f10eae575fb0b3681e034d10ed7c2 | [
"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 | 7,987 | 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 |
8e4baaae320644a77b9d51ae74ea221201759574 | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/segmented-tree/leon.py | 9b86c455efa6252c088d2e4fb3ac6b44b59e8988 | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 6,843 | py | # https://github.com/yuexihan/leonLPST/blob/master/leonLPST.py
from __future__ import division
from six.moves import xrange
class LPSTree:
"""
LPSTree(n[, value=None[, reducef=None[, modulo=None]]]) -> new LPSTree
Build a new LPSTree with n elements.
If value is provided, all elements are set to value, otherwise 0... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
43a228606e02826830759f5f40418f92e634af34 | 19892b65355f7661cf5e42d2f749904788c1a7d0 | /dailyfresh/daily_fresh/utils/mixin.py | 6174e5aba8081e3b2cf0368084ea7f0853225db5 | [] | no_license | BinXiaoEr/daily_fresh | 35902cb6753851a14517265db3738a008610c7d8 | d8bdc10e80b6b8e2be5f85f6a8293fb1f4695e1d | refs/heads/master | 2021-07-09T16:06:34.809134 | 2020-08-04T01:51:34 | 2020-08-04T01:51:34 | 181,276,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.contrib.auth.decorators import login_required
class LoginRequiredMixin(object):
@classmethod
def as_view(cls, **initkwargs):
# 调用父类的as_view
view = super(LoginRequiredMixin, cls).as_view(**initkwargs)
return login_required(view) | [
"you@example.com"
] | you@example.com |
b05acce5674d36ac8d553f00d5fe010f2061fbdf | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/external_bin/gsutil/gsutil_4.15/gsutil/third_party/boto/tests/unit/dynamodb/test_types.py | e3b913d7eb4a7e8789aa9a1becd8cefa58b17d6a | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,427 | py | #!/usr/bin/env python
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# wi... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
7321ac8c981ab9abb728e9c05fe1a2576ef0d878 | 3c327aa333bbeafacb8d5bd253814776ffcd0012 | /df_user/urls.py | bf6fcb54488289e42e7484712a3e096f56b612be | [] | no_license | 1635848644/shopping | c5d0a1dd2eb5716ece76045d6c2c261ca0f4db18 | d820e828eeed3911ea7741e4f11f4c6d83e993c6 | refs/heads/master | 2023-04-07T20:12:30.382805 | 2018-10-05T15:08:40 | 2018-10-05T15:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | #coding=utf-8
from django.conf.urls import url
from df_user import views
urlpatterns=[
url('register/',views.register),
url('login/',views.login),
url('logout/',views.logout),
url('addHarvsetAddress/',views.addHarvsetAddress),
url('user_center_info/',views.user_center_info),
url('user_center_ord... | [
"1194681498@qq.com"
] | 1194681498@qq.com |
8fd82a02b96ef6922c7ccd498e793df6876f3f49 | 46c2418ecfcf3c7034a267364185208a665be583 | /edb/tools/docs/cli.py | 2c9295564c14536c42a30b9de2055cc410bdcb02 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jankeromnes/edgedb | 3434549fb0731632ed7adb7fcb329480dee50d91 | 40ea3317fe5bfec76d7b46f7b706a4cb8a0d9f94 | refs/heads/master | 2022-02-24T04:56:19.238048 | 2019-05-10T12:24:40 | 2019-06-17T10:29:09 | 185,984,093 | 0 | 0 | Apache-2.0 | 2022-01-28T09:00:32 | 2019-05-10T12:24:55 | Python | UTF-8 | Python | false | false | 1,466 | py | #
# This source file is part of the EdgeDB open source project.
#
# Copyright 2018-present MagicStack Inc. and the EdgeDB authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http... | [
"elvis@magic.io"
] | elvis@magic.io |
81b968c9d9e14ff5772ae28bead91e71f66173d8 | 50e2012ecea8307e278d1132ca0094adb940aff2 | /lib/review/my_process/my_multiprocessing.py | a299b8a3185df0bb568f1c9bc93484f95d15cfcb | [] | no_license | Lewescaiyong/my_library | 6689cae2db4aaa980b4bd5ed9f21691eefbff2fe | 35d0d29097823ccef74fa29ca8756a7f59ceeb78 | refs/heads/master | 2020-11-25T09:20:56.484275 | 2019-12-17T10:58:20 | 2019-12-17T10:58:20 | 228,593,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import multiprocessing
from multiprocessing.dummy import Pool
pool1 = multiprocessing.Pool()
pool2 = Pool()
pool1.map()
pool2.map()
| [
"1351153527@qq.com"
] | 1351153527@qq.com |
1308c8f92d220ac7b01c451288da34696bcbe3f8 | c52ea8af6a4d3c32a0557c39d683a4d01b2188db | /ch10_dash_cytoscape_basic/layout/dash_cyto_grid_option_curve_style.py | 00701dcffe65b44108634f361e1dafb4d3efea61 | [
"MIT"
] | permissive | plotly-dash-book/plotly-dash-book | dcde031766d17adf6fc670c8aec9c8d4e267eeb7 | cc54f7ac6066a741f733facbd002222a87746e02 | refs/heads/master | 2022-06-27T02:46:25.502190 | 2022-06-08T03:21:23 | 2022-06-08T03:21:23 | 197,512,189 | 30 | 18 | MIT | 2021-05-31T04:47:36 | 2019-07-18T04:36:50 | Jupyter Notebook | UTF-8 | Python | false | false | 1,531 | py | import dash
import dash_cytoscape as cyto
import dash_html_components as html
app = dash.Dash(__name__)
# ノードを17個定義
nodes = [{"data": {"id": x, "label": f"{x}"}} for x in range(17)]
# エッジを定義
edges = [
{"data": {"source": 0, "target": 1}},
{"data": {"source": 0, "target": 2}},
{"data": {"source": 0, "targ... | [
"komo.mdrms@gmail.com"
] | komo.mdrms@gmail.com |
805e778f090eb8a26dac37e6725197e259091f56 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /KLke67efuam6ajLrt_2.py | 1dc365bb23d969b5f0f0d4e85f8e8ff90a1cf504 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | """
An **out-shuffle** , also known as an _out faro shuffle_ or a _perfect
shuffle_ , is a controlled method for shuffling playing cards. It is performed
by splitting the deck into two equal halves and interleaving them together
perfectly, with the condition that the top card of the deck remains in place.
Using an ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
49b7c6233cb3d031e79f2710167aae956de76e29 | 55a281d728541773e6eda896599c0cc48dfe5156 | /Advanced/venv/Scripts/easy_install-script.py | 8e473e4d78117e10d75b080582317f8367fd492a | [] | no_license | dhariskov/python-advanced | c0bebd937f3849dd62ae2834cbdf9f8100b2bb56 | 4725070c960d3c234ed2f20ff2156e2f89514a02 | refs/heads/master | 2022-12-04T22:40:18.485552 | 2020-08-28T08:29:25 | 2020-08-28T08:29:25 | 288,775,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!C:\Users\Acer\PycharmProjects\Advanced\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.... | [
"dhariskov@gmail.com"
] | dhariskov@gmail.com |
f636068a81116528616e1f63c07c412447c94e49 | c5be6a92f216957d340474b58507606a38c10f5f | /course-files/tutorials/tutorial04/answers/drawings/d5.py | e0e46a2f538962b9b15a80780794e0fa647bfa31 | [] | no_license | eecs110/winter2019 | 0b314c35e886b8099368ed7dfd51b707ab73c0c2 | f4107207ca1c9c10b78bdbb74fd82410b00ee363 | refs/heads/master | 2020-04-11T10:09:28.100445 | 2019-03-21T18:00:25 | 2019-03-21T18:00:25 | 161,705,160 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | from tkinter import Canvas, Tk
import random
import shapes
import math
gui = Tk()
gui.title('Circle')
canvas = Canvas(gui, width=500, height=500, background='#FFFFFF')
canvas.pack()
########################## YOUR CODE BELOW THIS LINE ##############################
center_x = 250
center_y = 250
distance_from_center =... | [
"vanwars@gmail.com"
] | vanwars@gmail.com |
0bc96e095f2069bc9811ef311b2dee119285ae92 | 9c88b828b783e23b50186a2cbba2c08610d8d10d | /espressodb/documentation/__init__.py | c16020e168c1d82085be018508a3cd3600a84a63 | [
"BSD-3-Clause"
] | permissive | remram44/espressodb | 9a51219c0e7ec6e4c400578d02b97ef95024ba1e | 5aad7222ab81c0f1694b51171e5d197dbcc8a65f | refs/heads/master | 2020-12-08T06:07:43.736419 | 2020-01-12T20:31:20 | 2020-01-12T20:31:20 | 232,909,755 | 0 | 0 | BSD-3-Clause | 2020-01-09T21:29:09 | 2020-01-09T21:29:08 | null | UTF-8 | Python | false | false | 170 | py | """The documentations module provides a web page which summarizes the implemented models
which derive from the EspressoDB :class:`espressodb.base.models.Base` class.
"""
| [
"christopher@ckoerber.com"
] | christopher@ckoerber.com |
0587480993283923fc28a800af3f56fc5d43a1d5 | 34e3147447875b491bd1b50c915f8848ead80792 | /uncertainty/constants.py | f19f8cdc91913b47521873fbed92985edbf59ce3 | [
"MIT"
] | permissive | meyersbs/uncertainty | 680f275ded6aad63012a7ca781d1cf455c66f226 | c12842cda7bea2d604bb9227a6c0baba9830b6fe | refs/heads/master | 2023-07-20T09:00:25.876780 | 2023-07-07T18:17:07 | 2023-07-07T18:17:07 | 87,837,406 | 19 | 5 | MIT | 2023-07-07T18:17:09 | 2017-04-10T17:16:51 | Python | UTF-8 | Python | false | false | 510 | py | from pkg_resources import resource_filename
BCLASS_CLASSIFIER_PATH = resource_filename('uncertainty', 'models/bclass.p')
MCLASS_CLASSIFIER_PATH = resource_filename('uncertainty', 'models/mclass.p')
VECTORIZER_PATH = resource_filename('uncertainty', 'vectorizers/vectorizer.p')
UNCERTAINTY_CLASS_MAP = {
'specul... | [
"nuthan.munaiah@live.com"
] | nuthan.munaiah@live.com |
5865cee0434fa771b0ffd1e3c9bcb56df6e08c4a | 3967e42abb6f497ede6d342e8f74bd8150f9c52d | /src/spiders/qidiancom.py | b70dc6414c2c1f6637e2011d657997aa17ae923f | [
"Apache-2.0"
] | permissive | varunprashar5/lightnovel-crawler | 4886862115c5c3e15a9137e698e14253e14b7423 | 4ca387f3c8f17771befad1d48d417bbc7b9f8bfd | refs/heads/master | 2020-12-01T22:27:33.699798 | 2019-12-29T05:25:09 | 2019-12-29T05:25:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging
from ..utils.crawler import Crawler
logger = logging.getLogger('QIDIAN_COM')
chapter_list_url = 'https://book.qidian.com/ajax/book/category?_csrfToken=%s&bookId=%s'
chapter_details_url = 'https://read.qidian.com/chapter/%s'
class QidianComCrawler(Crawler)... | [
"dipu.sudipta@gmail.com"
] | dipu.sudipta@gmail.com |
8e7ea66678d6525ed22d3dd5952486d8e44cd520 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Fluid_Engine_Development_Doyub_Kim/external/src/pystring/SConscript | b6e8c9660762838555a40f518621f6873e7cf39a | [
"MIT"
] | permissive | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 320 | """
Copyright (c) 2016 Doyub Kim
"""
Import('env', 'os', 'utils')
script_dir = os.path.dirname(File('SConscript').rfile().abspath)
lib_env = env.Clone()
lib_env.Append(CPPPATH = [os.path.join(script_dir, 'pystring'), script_dir])
lib = lib_env.Library('pystring', 'pystring/pystring.cpp')
Return('lib_env', 'lib')
| [
"me@yomama.com"
] | me@yomama.com | |
1d443fcd8a68dc9c0124dcbff16c16d020b695ab | 9e549ee54faa8b037f90eac8ecb36f853e460e5e | /venv/lib/python3.6/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py | 10f2f222d46d9d3c3a69f254940903cb2be1c86b | [
"MIT"
] | permissive | aitoehigie/britecore_flask | e8df68e71dd0eac980a7de8c0f20b5a5a16979fe | eef1873dbe6b2cc21f770bc6dec783007ae4493b | refs/heads/master | 2022-12-09T22:07:45.930238 | 2019-05-15T04:10:37 | 2019-05-15T04:10:37 | 177,354,667 | 0 | 0 | MIT | 2022-12-08T04:54:09 | 2019-03-24T00:38:20 | Python | UTF-8 | Python | false | false | 4,176 | py | import hashlib
import os
from textwrap import dedent
from ..cache import BaseCache
from ..controller import CacheController
try:
FileNotFoundError
except NameError:
# py2.X
FileNotFoundError = (IOError, OSError)
def _secure_open_write(filename, fmode):
# We only want to write to this file, so open i... | [
"aitoehigie@gmail.com"
] | aitoehigie@gmail.com |
6757f60ad54e92de598316caec907e610dd16c53 | e01c5d1ee81cc4104b248be375e93ae29c4b3572 | /Sequence4/DS/Week5/submission/sub-range-4.py | 585c33c2a3133ca7749fcb1568e035d6b909e7e3 | [] | no_license | lalitzz/DS | 7de54281a34814601f26ee826c722d123ee8bd99 | 66272a7a8c20c0c3e85aa5f9d19f29e0a3e11db1 | refs/heads/master | 2021-10-14T09:47:08.754570 | 2018-12-29T11:00:25 | 2018-12-29T11:00:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | # python3
from sys import stdin
import sys, threading
sys.setrecursionlimit(10**6) # max depth of recursion
threading.stack_size(2**27) # new thread will get stack of such size
# Splay tree implementation
# Vertex of a splay tree
class Vertex:
def __init__(self, key, sum, left, right, parent):
(self.key, sel... | [
"lalit.slg007@gmail.com"
] | lalit.slg007@gmail.com |
871f3e48a561c6d3a0a81e78fb26e52f6fa2eb7c | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/gavicharla/codejam1.py | 25da9175da664053709c8d25e93ab4bca77cade7 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 515 | py | def flip(s,l):
str1 = []
for i in range(l):
if(s[i] == '-'):
str1.append('+')
else:
str1.append('-')
return "".join(str1)
test_cases = int(raw_input())
for test in range(test_cases):
s = raw_input()
l = len(s)
count = l
let =0
while (... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f039f11f1012417d425afe36144602e290845663 | dc182e5b4597bdd104d6695c03744a12ebfe2533 | /PythonScripts/cache_decorator.py | 13a86e3faccaa6620f606d3880ecb8559d34a2e1 | [] | no_license | srinaveendesu/Programs | 06fb4a4b452445e4260f9691fe632c732078d54d | f6dbd8db444678b7ae7658126b59b381b3ab0bab | refs/heads/master | 2023-01-27T14:42:40.989127 | 2023-01-18T22:36:14 | 2023-01-18T22:36:14 | 129,948,488 | 1 | 0 | null | 2022-09-13T23:06:04 | 2018-04-17T18:30:13 | Python | UTF-8 | Python | false | false | 404 | py | def cache(func):
"""Keep a cache of previous function calls"""
@functools.wraps(func)
def wrapper_cache(*args, **kwargs):
cache_key = args + tuple(kwargs.items())
if cache_key not in wrapper_cache.cache:
wrapper_cache.cache[cache_key] = func(*args, **kwargs)
return wrapp... | [
"srinaveen.desu@gmail.com"
] | srinaveen.desu@gmail.com |
4a37455d9a0b65a8c4aec6586528fc1fcda1e472 | 085d3f2f8de5442d69962a65b8acd79478599022 | /2.Dictionaries - the root of Python/Safely finding by key.py | e66f37889bfe6d285916f26ea00f6830005db3ba | [] | no_license | Mat4wrk/Data-Types-for-Data-Science-in-Python-Datacamp | bfe8f8c4d4bc3998ef612f0d3137b15e662209d0 | c2eb30d3c500f69486921d26071a2ef2244e0402 | refs/heads/main | 2023-03-13T10:06:10.748044 | 2021-03-07T14:43:25 | 2021-03-07T14:43:25 | 331,574,648 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # Safely print rank 7 from the names dictionary
print(names.get(7))
# Safely print the type of rank 100 from the names dictionary
print(type(names.get(100)))
# Safely print rank 105 from the names dictionary or 'Not Found'
print(names.get(105, 'Not Found'))
| [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
368da12078ad24bb8c1403761b573a5acd4f731c | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/4-bind()-complex_20200412164915.py | 3951d6e1beff4faa4c6fcf2e2f7923a3bcedeff0 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | #complex
z = complex(2, -3)
print(z)
z = complex(1)
print(z)
z = complex()
print(z)
z = complex('5-9j')
print(z)
# output
# (2-3j)
# (1+0j)
# 0j
# (5-9j)
#binary
print(bin(5))
# binary output 0b101
#binary with letter b with python
#non-python binary number of 5 is 101
#convert from binary into an integer
print()... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
782de249b46f09546dcf741a0fc5f71b7f5aca5e | a03303e46f21697c9da87d0bb0f7b0a3077aba5c | /siswa_keu_ocb11/models/biaya_ta_jenjang.py | 8c0710c7ba375eaad0378bdde9362af08f91cddd | [] | no_license | butirpadi/flectra_app_sek | fccd3e47ef261e116478e6da7f0cc544ee67f127 | 00fa36d9176511f8ffe3c7636a8434ee2ed8c756 | refs/heads/master | 2020-04-06T10:26:37.053024 | 2018-11-19T23:59:34 | 2018-11-20T00:17:02 | 157,380,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,290 | py | # -*- coding: utf-8 -*-
from flectra import models, fields, api, _
from pprint import pprint
from datetime import datetime, date
import calendar
class biaya_ta_jenjang(models.Model):
_name = 'siswa_keu_ocb11.biaya_ta_jenjang'
name = fields.Char('Name', related="biaya_id.name")
tahunajaran_jenjang_id = f... | [
"butirpadi@gmail.com"
] | butirpadi@gmail.com |
53bd002833d9a292adb9fc9597fcf51a13a3e702 | ff7d3116024c9df01b94191ddfa334e4a6782ae6 | /mandal/asgi.py | b5b92dc813812b64f6029c072cbb314048f69a23 | [
"MIT"
] | permissive | jhnnsrs/arbeider | f5f708ee1026a9e9573a6f8a87c3b9e2fd6b5e33 | 4c5637913331c998a262ae0deca516b236845200 | refs/heads/master | 2021-05-26T10:31:16.279628 | 2020-04-08T13:40:26 | 2020-04-08T13:40:26 | 254,095,863 | 0 | 0 | MIT | 2020-04-08T13:40:28 | 2020-04-08T13:29:31 | null | UTF-8 | Python | false | false | 318 | py | """
ASGI entrypoint. Configures Django and then runs the application
defined in the ASGI_APPLICATION setting.
"""
import os
import django
from channels.routing import get_default_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mandal.settings")
django.setup()
application = get_default_application()
| [
"jhnnsrs@gmail..com"
] | jhnnsrs@gmail..com |
16573c15b3817ed9f64b13f466428536b50da9d6 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/waypoint_follower/catkin_generated/generate_cached_setup.py | 01cfc657005e5167ef4e8abd08b42b76f522be17 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"907097904@qq.com"
] | 907097904@qq.com |
0a8b93c86f1f59ac957d675eef30b726dc06c777 | 52a4d869976a97498bdf56a8d0ff92cac138a136 | /Algorithmic Heights/rosalind_3_degarray.py | 1ed82de8791f3769afe522fe22c1bee1abb2a87e | [] | no_license | aakibinesar/Rosalind | d726369a787d848cc378976b886189978a60a3a5 | 375bbdbfb16bf11b2f980701bbd0ba74a1605cdb | refs/heads/master | 2022-08-18T09:36:00.941080 | 2020-05-24T18:49:38 | 2020-05-24T18:49:38 | 264,722,651 | 0 | 0 | null | 2020-05-17T17:51:03 | 2020-05-17T17:40:59 | null | UTF-8 | Python | false | false | 380 | py | file = open('rosalind_deg.txt','r').readlines()
vertices, edges = (int(val) for val in file[0].split())
my_data = [[int(val) for val in line.split()] for line in file[1:]]
count = 0
L = []
for k in range(1,vertices+1):
count = 0
for i in range(2):
for j in range(0,edges):
if my_data[j][i] == k:
count+=... | [
"noreply@github.com"
] | aakibinesar.noreply@github.com |
3e677c83fd12cc5c2661147aa8b3dca9d0b689e4 | 15c4278a1a70ad3c842b72cba344f96fca43f991 | /newpro/newapp/admin.py | 37dac0ac21c8bfb1c6e0d008a060f3977faa28a0 | [] | no_license | nivyashri05/Task1 | d9914cf5bb8947ef00e54f77480c6f5f375c76ad | 9e9b03961eb1144d1b1a936159082ad80d32ce31 | refs/heads/master | 2023-01-06T01:04:17.321503 | 2020-11-10T15:31:02 | 2020-11-10T15:31:02 | 311,691,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py |
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from newapp.models import User
class UserAdmin(BaseUserAdmin):
list_display = ('email','username','phone','is_admin','is_staff','timestamp')
search_fields = ('email','username',)
readonly_fields=('date_joined', 'las... | [
"nivyainventateq@gmail.com"
] | nivyainventateq@gmail.com |
16d4ac62c0efe8567434b83a272a3035cd8c8990 | d75371f629cf881de3c49b53533879a5b862da2e | /python/search-a-2d-matrix.py | 3ce6ce1d52b91816fccec4a1e5592f5c548b2cf5 | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,614 | py | def binary_row(rows, target):
if len(rows) == 1:
return 0, None
if len(rows) == 2:
return (1, None) if target >= rows[1] else (0, None)
lo = 0
hi = len(rows)
while lo < hi:
mid = (lo + hi) // 2
if rows[mid] == target:
return mid, True
if mid == len(rows) - 1:
return len(rows) -... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
8f9842cabc131fddc1025c2ab9121b0af86a3297 | d9a65120e6b8d20d3b568acde8ceb66f908d1ffc | /django1/src/vote/urls.py | 68755a03d624470c3b5e239836982709943bda16 | [] | no_license | omniverse186/django1 | aba57d705bd7b3a142f627e566853811038d6d6c | f257c34c9d09467170a5f3bd24598d97dcf64f4f | refs/heads/master | 2020-04-21T23:11:17.677609 | 2019-02-10T03:20:47 | 2019-02-10T03:20:47 | 169,938,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | '''
Created on 2019. 1. 20.
@author: user
'''
#하위 URLConf
#app_name : 하위 URLConf 파일의 등록된 URL들의 그룹명
#urlpatterns : URL과 뷰함수를 리스트 형태로 등록하는 변수
from django.urls import path
from .views import *
app_name = 'vote'
urlpatterns = [
#name : 해당 URL, 뷰함수 등록에 대해서 별칭을 지정
path('', index, name= 'index'),
... | [
"user@DESKTOP-37GULAI"
] | user@DESKTOP-37GULAI |
1c98f010be779b0df3ae626d838b4e5e5e86525c | d24e06a9fb04ada28de067be1b6be50a7a92f294 | /Assignment1/svm_test.py | c916d079fcf86ddccff119130ecb3486e4f6dee4 | [] | no_license | sentientmachine/CS7641 | 3960b3e216f1eddc9a782318a9bf3ae38fed1959 | a9a1369acfdd3e846e311c64498a38c8afd8fcc2 | refs/heads/master | 2020-12-25T03:11:46.621886 | 2017-12-24T12:24:14 | 2017-12-24T12:24:14 | 51,779,034 | 0 | 0 | null | 2016-02-15T19:17:10 | 2016-02-15T19:17:10 | null | UTF-8 | Python | false | false | 4,649 | py | import io
import pydotplus
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from sklearn.svm import SVC
from sklearn.model_selection import StratifiedKFold
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler, StandardScaler, OneHotEncoder, Imputer
#from sklearn.m... | [
"="
] | = |
a688ca2e222977722e0df277f47979059d2e8e1b | 99eb4013a12ddac44042d3305a16edac1c9e2d67 | /test/test_raw_shape_map.py | 1a6b72fc298a5b35beaa25426e64cdf336fc34fa | [
"Apache-2.0"
] | permissive | DaniFdezAlvarez/shexer | cd4816991ec630a81fd9dd58a291a78af7aee491 | 7ab457b6fa4b30f9e0e8b0aaf25f9b4f4fcbf6d9 | refs/heads/master | 2023-05-24T18:46:26.209094 | 2023-05-09T18:25:27 | 2023-05-09T18:25:27 | 132,451,334 | 24 | 2 | Apache-2.0 | 2023-05-03T18:39:57 | 2018-05-07T11:32:26 | Python | UTF-8 | Python | false | false | 4,212 | py | import unittest
from shexer.shaper import Shaper
from test.const import G1, BASE_FILES, default_namespaces
from test.t_utils import file_vs_str_tunned_comparison
import os.path as pth
from shexer.consts import TURTLE
_BASE_DIR = BASE_FILES + "shape_map" + pth.sep
class TestRawShapeMap(unittest.TestCase):
def tes... | [
"danifdezalvarez@gmail.com"
] | danifdezalvarez@gmail.com |
3e034a11bde11aa6a40bca38c774c9dba4dc8ef4 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_format07.py | 45e9369b2bac7462c137134173b1cda4559f1696 | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,582 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
35eada1e6e31e47d1156a2dd8c85c2aada530ebe | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/pacific_atlantic_water_flow.py | 6a5e0384ee2afe8a2dd84a801719431deeaa3b09 | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given an m x n matrix of non-negative integers representing the height of each unit cell in a continent, the "Pacific ocean" touches the left and top edges of the matrix and the "Atlantic ocean" touches the right and bottom edges.
Water can only flow in four directio... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
39f51b8befba9f505afddabff3d6d21823fa7df5 | adb759899204e61042225fabb64f6c1a55dac8ce | /1900~1999/1904.py | 8a490e0cc71ac769e26193e2bc6f97c4d01e51cb | [] | no_license | geneeol/baekjoon-online-judge | 21cdffc7067481b29b18c09c9152135efc82c40d | 2b359aa3f1c90f178d0c86ce71a0580b18adad6f | refs/heads/master | 2023-03-28T23:25:12.219487 | 2021-04-01T09:19:06 | 2021-04-01T09:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # 문제
# 지원이에게 2진 수열을 가르쳐 주기 위해, 지원이 아버지는 그에게 타일들을 선물해주셨다.
# 그리고 이 각각의 타일들은 0 또는 1이 쓰여 있는 낱장의 타일들이다.
# 어느 날 짓궂은 동주가 지원이의 공부를 방해하기 위해 0이 쓰여진 낱장의 타일들을 붙여서 한 쌍으로 이루어진 00 타일들을 만들었다.
# 결국 현재 1 하나만으로 이루어진 타일 또는 0타일을 두 개 붙인 한 쌍의 00타일들만이 남게 되었다.
# 그러므로 지원이는 타일로 더 이상 크기가 N인 모든 2진 수열을 만들 수 없게 되었다.
# 예를 들어, N=1일 때 1만 만들 수 있고, N=2일 ... | [
"alstn2468_@naver.com"
] | alstn2468_@naver.com |
bd0aee949be51e9122bd5c53c9a3f1bed2200067 | 1865a8508bed279961abaef324b434c0e3caa815 | /setup.py | 261fb583f89174f98ea47d3f5b9b3cadf5e81b6b | [
"MIT"
] | permissive | zidarsk8/simple_wbd | de68cbefe94fda52ed5330ff55b97b4a73aedfb4 | 6c2d1611ffd70d3bf4468862b0b569131ef12d94 | refs/heads/master | 2021-01-19T10:54:38.824763 | 2016-08-16T03:58:42 | 2016-08-16T03:58:42 | 59,942,658 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | #!/usr/bin/env python3
"""Simplo wbd setup file.
This is the main setup for simple wbd. To manually install this module run:
$ pip install .
For development to keep track of the changes in the module and to include
development and test dependecies run:
$ pip install --editable .[dev,test]
"""
from setupto... | [
"zidarsk8@gmail.com"
] | zidarsk8@gmail.com |
e0d852a289aa3a8e3aca62072d98ba4f2cf26939 | 33524b5c049f934ce27fbf046db95799ac003385 | /2018/Other/Urok_10_0_классы_объекты/teoriya_class_0.py | 68f7a2ba67558f66e7e39854b191bc7d8ef21224 | [] | no_license | mgbo/My_Exercise | 07b5f696d383b3b160262c5978ad645b46244b70 | 53fb175836717493e2c813ecb45c5d5e9d28dd23 | refs/heads/master | 2022-12-24T14:11:02.271443 | 2020-10-04T04:44:38 | 2020-10-04T04:44:38 | 291,413,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py |
from math import pi
class Circle:
def __init__(self, x=0, y=0, r=0):
self.x = x
self.y = y
self.r = r
def __str__(self):
return "({},{},{})".format(self.x,self.y,self.r)
def read(self):
self.x,self.y,self.r = map(int,input().split())
def area(self):
a = pi*self.r * self.r
return a
def perimetr(s... | [
"mgbo433@gmail.com"
] | mgbo433@gmail.com |
bbf5068fcd5c3270cf2448fddc69044e5fb04048 | ddac7346ca9f1c1d61dfd7b3c70dc6cd076a9b49 | /tests/test_calculators.py | ea4ae7c9ee767f607d8382ac221cc57272a8fee0 | [
"MIT"
] | permissive | gvenus/dftfit | f8cf5e9bef5a173ff0aa7202bacbfee0df61bd14 | a00354f8f0d611bf57c6925f920c749d8628cf98 | refs/heads/master | 2023-03-17T18:58:52.287217 | 2019-10-20T04:07:44 | 2019-10-20T04:07:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,979 | py | import asyncio
import shutil
import pymatgen as pmg
import numpy as np
import pytest
from dftfit.io.lammps import LammpsLocalDFTFITCalculator
from dftfit.io.lammps_cython import LammpsCythonDFTFITCalculator
from dftfit.cli.utils import load_filename
from dftfit.potential import Potential
@pytest.mark.pymatgen_lammp... | [
"chris.ostrouchov@gmail.com"
] | chris.ostrouchov@gmail.com |
bde27465e5215f809b247a635fd24f3186193786 | 0698be34413debeb570e2560072c5696433acd81 | /ForkTube/celeryconfig.py | 1a437d56f6e0390a359e88338fe971e211e45e34 | [] | no_license | Miserlou/ForkTube | 90a057c459fda4b8d92d94f89c9d86bf786549ca | 848fdf4ff81c1d70b03c30a6382c8464dd4f25fe | refs/heads/master | 2020-05-19T07:47:44.130888 | 2012-04-09T19:53:24 | 2012-04-09T19:53:24 | 2,363,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_USER = "myuser"
BROKER_PASSWORD = "mypassword"
BROKER_VHOST = "myvhost"
CELERY_RESULT_BACKEND = "amqp"
CELERY_IMPORTS = ("tasks", )
| [
"rich@anomos.info"
] | rich@anomos.info |
38bae379c04d24789026484a687ef0293b07e1f4 | d346c1e694e376c303f1b55808d90429a1ad3c3a | /medium/61.rotate_list.py | 86f5af201842b8ba886e5132edcc3439263c61a5 | [] | no_license | littleliona/leetcode | 3d06bc27c0ef59b863a2119cd5222dc94ed57b56 | 789d8d5c9cfd90b872be4a4c35a34a766d95f282 | refs/heads/master | 2021-01-19T11:52:11.938391 | 2018-02-19T03:01:47 | 2018-02-19T03:01:47 | 88,000,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def rotateRight(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: ListNode
"""
#
current = head
... | [
"aria@Arias-MacBook-Pro.local"
] | aria@Arias-MacBook-Pro.local |
3610918d2b73d9d7fb9529196d9121b89800d8c4 | 03901933adfaa9130979b36f1e42fb67b1e9f850 | /iotapy/storage/providers/rocksdb.py | a1b6d630c97ebda8f54229ab370820ab8f9b63f1 | [
"MIT"
] | permissive | aliciawyy/iota-python | 03418a451b0153a1c55b3951d18d4cb533c7ff28 | b8d421acf94ccd9e7374f799fbe496f6d23e3cf3 | refs/heads/master | 2020-03-19T04:15:54.594313 | 2018-06-04T18:26:52 | 2018-06-04T18:26:52 | 135,811,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,363 | py | # -*- coding: utf-8 -*-
import struct
import iota
import rocksdb_iota
import iotapy.storage.providers.types
from rocksdb_iota.merge_operators import StringAppendOperator
from iotapy.storage import converter
KB = 1024
MB = KB * 1024
MERGED = ['tag', 'bundle', 'approvee', 'address', 'state_diff']
class RocksDBProvid... | [
"git@louie.lu"
] | git@louie.lu |
710f90e901aebc0be4d31eed525c04c01665c3e0 | 3ad6d731c994813a10801829c45f56c58ff9021d | /src/teleop_bot/src/keys_to_twist_with_ramps.py | f8bf0f492753a4cd8e20f5fa2477366b8f82f090 | [] | no_license | bladesaber/ROS_tutorial | 9b4ae5a9a1bd773ae48d836a87d08bde8a757a5d | 63486048786ebc864bc731eb1b524a72e9267738 | refs/heads/master | 2022-11-16T07:36:15.938433 | 2020-07-07T02:47:50 | 2020-07-07T02:47:50 | 277,693,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/env python
import rospy
import math
from std_msgs.msg import String
from geometry_msgs.msg import Twist
key_mapping = { 'w': [ 0, 1], 'x': [ 0, -1],
'a': [ 1, 0], 'd': [-1, 0],
's': [ 0, 0] }
g_twist_pub = None
g_target_twist = None
g_last_twist = None
g_last_send_time = No... | [
"2510294705@qq.com"
] | 2510294705@qq.com |
73fe66859a65e73496b91d800a11f82a54258308 | a85419f08198548eb6ba4d3df0d181769f810358 | /C_Carray/split_for_singlechannel_tests.py | 4887feeda442f244c49cc385774a1b017c5a6ddf | [] | no_license | keflavich/w51evlareductionscripts | cd0287d750d938bab96f1a7d335b3b84c27a987f | 00cb8085e8fe5c047f53852c8057a1f7457863f6 | refs/heads/master | 2021-01-17T07:26:01.574220 | 2016-07-07T09:02:26 | 2016-07-07T09:02:26 | 8,590,805 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | # June 29, 2015
# Instead, use h2co_cvel_split in ../C_AC
# outputvis_A = 'h2co11_Cband_Aarray_nocal_20to100kms.ms'
# split(vis=outputvis_A, outputvis='h2co11_Cband_Aarray_nocal_20kms_onechan.ms',
# spw='0:0', width=1)
# split(vis=outputvis_A, outputvis='h2co11_Cband_Aarray_nocal_57kms_onechan.ms',
# spw='0... | [
"keflavich@gmail.com"
] | keflavich@gmail.com |
2e5daa13e1b08a262d40a179079d7d11029e9af2 | 5a0d6fff86846117420a776e19ca79649d1748e1 | /rllib_exercises/serving/do_rollouts.py | d2dff98d01aa7e23c66a2e98eb958ee472389934 | [] | no_license | ray-project/tutorial | d823bafa579fca7eeb3050b0a13c01a542b6994e | 08f4f01fc3e918c997c971f7b2421551f054c851 | refs/heads/master | 2023-08-29T08:46:38.473513 | 2022-03-21T20:43:22 | 2022-03-21T20:43:22 | 89,322,668 | 838 | 247 | null | 2022-03-21T20:43:22 | 2017-04-25T05:55:26 | Jupyter Notebook | UTF-8 | Python | false | false | 1,596 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import argparse
import gym
from ray.rllib.utils.policy_client import PolicyClient
parser = argparse.ArgumentParser()
parser.add_argument(
"--no-train", action="store_true", help="Whether to di... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
15701489ab41edd41261b2b31779b163a468529e | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akVs3CaloJetSequence_pPb_mix_cff.py | 3d77c27baa5beb48450caf86750981f27c601170 | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,519 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs3Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs3CaloJets"),
matched = cms.InputTag("ak3HiGenJetsCleaned")
)
akVs3C... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
8f8199b6e1f6dfc54c783f31a9ee7c30b7a68a8b | 86c082438a001ba48617aa756439b34423387b40 | /src/the_tale/the_tale/accounts/jinjaglobals.py | a2404ff781af031fd621d00f6e3091150a03094c | [
"BSD-3-Clause"
] | permissive | lustfullyCake/the-tale | a6c02e01ac9c72a48759716dcbff42da07a154ab | 128885ade38c392535f714e0a82fb5a96e760f6d | refs/heads/master | 2020-03-27T21:50:56.668093 | 2018-06-10T17:39:48 | 2018-06-10T17:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,295 | py | # coding: utf-8
from dext.common.utils import jinja2
from the_tale.accounts import logic
from the_tale.accounts import conf
@jinja2.jinjaglobal
def login_page_url(next_url='/'):
return jinja2.Markup(logic.login_page_url(next_url))
@jinja2.jinjaglobal
def login_url(next_url='/'):
return jinja2.Markup(logic.... | [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
3f0d333958350a92ac434aa6a8017a17d263453d | 2d929ed82d53e7d70db999753c60816ed00af171 | /Python/http/http_proxy.py | 413b48f03f8f201e702d427e39d87f53adca2682 | [] | no_license | nyannko/socket-example | b058e68e8d41a8a9f5b6a29108f7de394751c904 | 934e9791b1ee92f0dd3092bb07541f1e833b4105 | refs/heads/master | 2021-09-10T19:19:24.590441 | 2018-03-14T22:13:49 | 2018-03-14T22:13:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # HTTP proxy
from http.server import BaseHTTPRequestHandler, HTTPServer
from urlpath import URL
import socket
import urllib
HOST = "127.0.0.1"
PORT = 8000
# Run `curl -x http://127.0.0.1:8000 http://www.moe.edu.cn' to test proxy
class ProxyHandler(BaseHTTPRequestHandler):
# GET method
def do_GET(self):
... | [
"9638293+nyannko@users.noreply.github.com"
] | 9638293+nyannko@users.noreply.github.com |
c5ecd02296aa16caffcde786d3ab77fae28405d1 | 28c598bf75f3ab287697c7f0ff1fb13bebb7cf75 | /build/bdist.win32/winexe/temp/OpenSSL.crypto.py | 6acfec583072680d7cf8126acf30df4957600e19 | [] | no_license | keaysma/solinia_depreciated | 4cb8811df4427261960af375cf749903d0ca6bd1 | 4c265449a5e9ca91f7acf7ac05cd9ff2949214ac | refs/heads/master | 2020-03-25T13:08:33.913231 | 2014-09-12T08:23:26 | 2014-09-12T08:23:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py |
def __load():
import imp, os, sys
try:
dirname = os.path.dirname(__loader__.archive)
except NameError:
dirname = sys.prefix
path = os.path.join(dirname, 'crypto.pyd')
#print "py2exe extension module", __name__, "->", path
mod = imp.load_dynamic(__name__, path)
## mod.frozen =... | [
"mixxit@soliniaonline.com"
] | mixxit@soliniaonline.com |
16e0739edad97ed1235596b5089565cd8efa8f70 | 5b314502919bd7e12521ad126752d279912cd33d | /prodcons.py | d5e07a09cc1bdc3dcf283f36db18ea8f09ee3142 | [
"Apache-2.0"
] | permissive | xshi0001/base_function | 68576d484418b4cda8576f729d0b48a90d0258a1 | 77ed58289151084cc20bfc3328d3ca83e6a19366 | refs/heads/master | 2020-12-03T02:24:14.694973 | 2017-06-27T10:51:16 | 2017-06-27T10:51:16 | 95,935,169 | 1 | 0 | null | 2017-07-01T01:39:11 | 2017-07-01T01:39:11 | null | UTF-8 | Python | false | false | 1,533 | py | # -*-coding=utf-8
from Queue import Queue
from random import randint
from MyThread import MyThread
from time import sleep
def queue_test(q):
#q=Queue(10);
for i in range(10):
temp = randint(1, 10)
print temp
q.put("number:", temp)
print "size of queue is %d" % q.qsize()
def w... | [
"jinweizsu@gmail.com"
] | jinweizsu@gmail.com |
b4494671f38f7126a6d2398e2a96b7c336e7f55d | 2a34a824e1a2d3bac7b99edcf19926a477a157a0 | /src/cr/vision/io/videowriter.py | 7277eb9220a2e28a1d27d3f2748e3fc3a6ce7fee | [
"Apache-2.0"
] | permissive | carnotresearch/cr-vision | a7cb07157dbf470ed3fe560ef85d6e5194c660ae | 317fbf70c558e8f9563c3d0ba3bebbc5f84af622 | refs/heads/master | 2023-04-10T22:34:34.833043 | 2021-04-25T13:32:14 | 2021-04-25T13:32:14 | 142,256,002 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | '''
Wrapper for OpenCV video writer
'''
import cv2
class VideoWriter:
'''Wrapper class for OpenCV video writer'''
def __init__(self, filepath, fourcc='XVID', fps=15, frame_size=(640, 480), is_color=True):
'''Constructor'''
self.filepath = filepath
if isinstance(fourcc, str):
... | [
"shailesh@indigits.com"
] | shailesh@indigits.com |
a618bd2571db03d8262b8233c0af56287cb540db | 50dcaae873badd727e8416302a88f9c0bff0a438 | /bookstore/migrations/0002_auto_20170101_0049.py | d3e6f7c0947c25e5f8687afb88146674f49c0239 | [] | no_license | jattoabdul/albaitulilm | 4ae0dc857509012e8aa5d775cda64305de562251 | c5586edaed045fec925a6c0bb1be5e220cbd8d15 | refs/heads/master | 2021-01-13T00:00:01.397037 | 2017-02-12T23:32:42 | 2017-02-12T23:32:42 | 81,761,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-12-31 23:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookstore', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(... | [
"jattoade@gmail.com"
] | jattoade@gmail.com |
fd5c1bace80b13e13c1a052dd0dcd6ce9afea215 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_340/ch4_2020_03_23_19_22_41_022512.py | 4f38805b970b740b4a241620cdc59197c4c64017 | [] | 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 | 174 | py | def idade(x):
x=int(input('digite sua idade'))
return idade
if (idade=<11):
print('crianca')
if (12<=idade<=17):
print('adolescente')
if (idade>=18):
print ('adulto') | [
"you@example.com"
] | you@example.com |
e2db064b4c559a481a1ab0ba635a84b59bd259e2 | 3e19d4f20060e9818ad129a0813ee758eb4b99c6 | /conftest.py | 1b0f10a63a7f6eddd9bf25df6187cc5b35adee18 | [
"MIT"
] | permissive | ReyvanZA/bitfinex_ohlc_import | 07bf85f4de8b0be3dc6838e188160d2b4963f284 | 6d6d548187c52bcd7e7327f411fab515c83faef1 | refs/heads/master | 2020-08-11T14:22:15.832186 | 2019-10-31T17:51:21 | 2019-11-11T11:33:28 | 214,579,369 | 0 | 0 | MIT | 2019-11-11T11:33:29 | 2019-10-12T04:48:12 | null | UTF-8 | Python | false | false | 546 | py | import pytest
@pytest.fixture
def symbols_fixture():
# symbols for testing
return [
"btcusd",
"ltcbtc",
"ethusd"
]
def candles_fixture():
return [[
1518272040000,
8791,
8782.1,
8795.8,
8775.8,
20.01209543
],
[
1518... | [
"arthur@arthurkoziel.com"
] | arthur@arthurkoziel.com |
5790747bf3bb59cf374317ac2044970705d035fb | 3213373f90f10c60667c26a56d30a9202e1b9ae3 | /language/orqa/predict/orqa_eval.py | 1fe260eb6edd190f0e5df545f0ad78f7fc8a06b0 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | Mistobaan/language | 59a481b3ff6a7c7beada2361aef7173fbfd355a4 | 394675a831ae45ea434abb50655e7975c68a7121 | refs/heads/master | 2022-11-29T14:10:37.590205 | 2020-08-13T22:28:13 | 2020-08-13T22:31:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"kentonl@google.com"
] | kentonl@google.com |
81dbc6da5a67a3c9d1cf4e3e4013b93416329c60 | aef08a7c30c80d24a1ba5708f316153541b841d9 | /Leetcode 0071. Simplify Path.py | 7f9fbb46989a724cd62a68c8396c195fbacddb48 | [] | no_license | Chaoran-sjsu/leetcode | 65b8f9ba44c074f415a25989be13ad94505d925f | 6ff1941ff213a843013100ac7033e2d4f90fbd6a | refs/heads/master | 2023-03-19T02:43:29.022300 | 2020-11-03T02:33:25 | 2020-11-03T02:33:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | """
71. Simplify Path
Given an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path.
In a UNIX-style file system, a period . refers to the current directory. Furthermore, a double period .. moves the directory up a level.
Note that the returned canonical path must a... | [
"wangpeng4515@gmail.com"
] | wangpeng4515@gmail.com |
f46600e041a9e3fa1eb90c0961f25917ad284329 | e95fc8c562c050f47ecb6fb2639ce3024271a06d | /medium/46.全排列.py | 60bd223afd3aaf74a76e0693f8cd590cbe521c1d | [] | no_license | w940853815/my_leetcode | 3fb56745b95fbcb4086465ff42ea377c1d9fc764 | 6d39fa76c0def4f1d57840c40ffb360678caa96e | refs/heads/master | 2023-05-25T03:39:32.304242 | 2023-05-22T01:46:43 | 2023-05-22T01:46:43 | 179,017,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | #
# @lc app=leetcode.cn id=46 lang=python3
#
# [46] 全排列
#
# @lc code=start
from typing import List
"""
result = []
def backtrack(路径, 选择列表):
if 满足结束条件:
result.add(路径)
return
for 选择 in 选择列表:
做选择
backtrack(路径, 选择列表)
撤销选择
"""
class Solution:
def permute(self, num... | [
"ruidong.wang@tsingdata.com"
] | ruidong.wang@tsingdata.com |
696b87b0bff7a5bcf494441ef9ff10dbad893cd4 | 8fd07ea363ba4263bafe25d213c72cc9a93e2b3e | /devops/Day4_json_requests_zabbix-api/zabbix/dingtalk.py | 2112181a91ce4aaf534cba9d5b2bc2035ec13296 | [] | no_license | ml758392/python_tedu | 82e12ae014f0fc81230386fab07f901510fc8837 | 9f20798604db0ac8cd7b69d8c7a52ee361ebc7a7 | refs/heads/master | 2020-04-12T08:30:42.354663 | 2019-03-29T11:55:30 | 2019-03-29T11:55:30 | 162,386,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*-coding:utf-8-*-
import json
import requests
import sys
def send_msg(url, reminders, msg):
headers = {'Content-Type': 'application/json;charset=utf-8'}
data = {
"msgtype": "text", # 发送消息类型为文本
"at": {
"atMobiles": reminders,
"isAtAll": False, # 不@所有人
},
... | [
"yy.tedu.cn"
] | yy.tedu.cn |
616469de1aec009732d1ae11d1d7737bda848a16 | 75a2d464d10c144a6226cb5941c86423a1f769cf | /users/views.py | 21cc73b926aab722ac47e1f4965cdb0561c47aff | [] | no_license | Swiftkind/invoice | f5543cbe81b6d42e9938470265d7affb56ab83dd | 17615ea9bfb1edebe41d60dbf2e977f0018d5339 | refs/heads/master | 2021-09-07T18:16:01.647083 | 2018-02-08T08:13:18 | 2018-02-08T08:13:18 | 115,474,697 | 0 | 3 | null | 2018-02-27T06:58:42 | 2017-12-27T02:55:40 | Python | UTF-8 | Python | false | false | 5,494 | py | from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.mixins import LoginRequiredMixin
from django.contrib import messages
from django.http import Http404
from django.shortcuts import get_object_or_404, render, redirect
from django.views.generic import TemplateView
from django.views impor... | [
"michaelpsy71095@gmail.com"
] | michaelpsy71095@gmail.com |
df7db5f6cf855b9e25fa5feb01494b88573aacf4 | c5458f2d53d02cb2967434122183ed064e1929f9 | /sdks/python/test/test_contains_asset_predicate.py | 4fe42254ff5b1cf16affd36b2f5c261675e7f2ab | [] | no_license | ross-weir/ergo-node-api-sdks | fd7a32f79784dbd336ef6ddb9702b9dd9a964e75 | 9935ef703b14760854b24045c1307602b282c4fb | refs/heads/main | 2023-08-24T05:12:30.761145 | 2021-11-08T10:28:10 | 2021-11-08T10:28:10 | 425,785,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | """
Ergo Node API
API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501
The version of the OpenAPI document: 4.0.15
Contact: ergoplatform@protonmail.com
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_cli... | [
"29697678+ross-weir@users.noreply.github.com"
] | 29697678+ross-weir@users.noreply.github.com |
0c77dbbd8fb08d26e300e02084f0f0fbd2f1fcfe | 80c3546d525a05a31d30cc318a44e053efaeb1f1 | /tensorpack/dataflow/imgaug/misc.py | 7fc983d4c9de61f53efc05459cca5493fcaca5a5 | [
"Apache-2.0"
] | permissive | yaroslavvb/tensorpack | 0f326bef95699f84376465609b631981dc5b68bf | 271ffad1816132c57baebe8a1aa95479e79f4ef9 | refs/heads/master | 2021-05-03T11:02:22.170689 | 2018-02-06T08:18:48 | 2018-02-06T08:18:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,419 | py | # -*- coding: UTF-8 -*-
# File: misc.py
import numpy as np
import cv2
from .base import ImageAugmentor
from ...utils import logger
from ...utils.argtools import shape2d
from .transform import ResizeTransform, TransformAugmentorBase
__all__ = ['Flip', 'Resize', 'RandomResize', 'ResizeShortestEdge', 'Transpose']
cl... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
92572d40e11aaec728a9177ec310fa9eb822e9f5 | b6f4e527154b82f4e3fa48f06ca53fc15bf08283 | /Day02/circle.py | 020bf65e82244b1110af1fb98f7a1eaca88e783e | [] | no_license | Light-City/Python-100-Days | 74118e36c658db6c897f847e7e554311af036b9d | 1fe049a1fe1e64082752d2d32cb75c1a4349cded | refs/heads/master | 2020-03-18T12:44:53.191512 | 2018-05-24T09:49:22 | 2018-05-24T09:49:22 | 134,741,794 | 3 | 1 | null | 2018-05-24T16:29:02 | 2018-05-24T16:29:02 | null | UTF-8 | Python | false | false | 288 | py | """
输入半径计算圆的周长和面积
Version: 0.1
Author: 骆昊
Date: 2018-02-27
"""
import math
radius = float(input('请输入圆的半径: '))
perimeter = 2 * math.pi * radius
area = math.pi * radius * radius
print('周长: %.2f' % perimeter)
print('面积: %.2f' % area)
| [
"jackfrued@126.com"
] | jackfrued@126.com |
6df0e64800da4c8a788cf625ac191169d6db205a | 5c4852f02b20c5c400c58ff61702a4f35358d78c | /editor_orig.py | 6a4e667273bf50ee0537555a81df701903e3eec4 | [] | no_license | anovacap/daily_coding_problem | 6e11f338ad8afc99a702baa6d75ede0c15f02853 | e64a0e76555addbe3a31fd0ca0bb81e2715766d2 | refs/heads/master | 2023-02-23T11:04:30.041455 | 2021-01-29T18:10:36 | 2021-01-29T18:10:36 | 302,237,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | class SimpleEditor:
def __init__(self, document):
self.document = document
self.dictionary = set()
# On windows, the dictionary can often be found at:
# C:/Users/{username}/AppData/Roaming/Microsoft/Spelling/en-US/default.dic
with open("/usr/share/dict/words") as input_dictio... | [
"vagrant@localhost.localdomain"
] | vagrant@localhost.localdomain |
6b5be029fd1626d37c9b7f3db3aa07efd58e1011 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_123/627.py | 28c02feb9a393af2190da5d1cd6130c71872869c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | __author__ = 'jeff'
from collections import deque
base = "A-small-attempt2"
#base = "A1_test"
f = open(base+'.in','r')
fout = open(base+'.out','w')
t = int(f.readline())
def proc( a, motes):
while( len( motes ) and motes[0] < a ):
a += motes.popleft()
return a
max_lev = 100000
for case in range(... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
459e8127e4b5cb873a598644dc79c3d2708b3db1 | a9c0a8d815b6453aca945849f3b402f75684bfcb | /project/api/services.py | 95d316eb964a262ab8aa954303e31d09a23b1d26 | [] | no_license | harrywang/my-flask-tdd-docker | 4035b666a3366cd059a3a65c68c7c9ad9b637da3 | 362c33e7caa3bf35a62cff71f3c567c5e8de1fd2 | refs/heads/master | 2022-04-13T23:12:04.725775 | 2020-03-21T18:14:00 | 2020-03-21T18:14:00 | 248,801,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # project/api/services.py
from project import db
from project.api.models import User
def get_all_users():
return User.query.all()
def get_user_by_id(user_id):
return User.query.filter_by(id=user_id).first()
def get_user_by_email(email):
return User.query.filter_by(email=email).first()
def add_user... | [
"harryjwang@gmail.com"
] | harryjwang@gmail.com |
e23633a5a9b66be7ed21624a319c2ac19699c898 | 81a1c5db1f24a7daf4fe51de499e1aea81d8ea05 | /fabfile.py | 94155b79ffeb1d48061ee035c7bbca818b7c3f36 | [] | no_license | Beomi/azure-django-test | cf0d1fe323a63d9ba2672b8ebea2fc3e170980ce | a811afb62501f2fe245226f9bb94cd51bebc6866 | refs/heads/master | 2021-06-19T15:53:18.932591 | 2017-06-08T12:20:34 | 2017-06-08T12:20:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 6,241 | py | from fabric.contrib.files import append, exists, sed, put
from fabric.api import env, local, run, sudo
import random
import os
import json
PROJECT_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# deploy.json파일을 불러와 envs변수에 저장합니다.
with open(os.pa... | [
"latheledusjp@gmail.com"
] | latheledusjp@gmail.com |
5edb0c8e55ee71407031f5baea3676bd34bf5368 | 28ae42f6a83fd7c56b2bf51e59250a31e68917ca | /tracpro/polls/migrations/0015_issue_region.py | ff1c2937af89c2c8ce646673002fd58356fd1f04 | [
"BSD-3-Clause"
] | permissive | rapidpro/tracpro | 0c68443d208cb60cbb3b2077977786f7e81ce742 | a68a782a7ff9bb0ccee85368132d8847c280fea3 | refs/heads/develop | 2021-01-19T10:29:48.381533 | 2018-03-13T12:17:11 | 2018-03-13T12:17:11 | 29,589,268 | 5 | 10 | BSD-3-Clause | 2018-02-23T14:43:12 | 2015-01-21T12:51:24 | Python | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('groups', '0004_auto_20150123_0909'),
('polls', '0014_remove_response_is_complete'),
]
operations = [
migrations.AddF... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
6b10d9a5295db113b96722c8b92c968c83079333 | ef821468b081ef2a0b81bf08596a2c81e1c1ef1a | /Python OOP/Decorators-Exercise/Cache.py | 3630fbd6868ddb28d50316c5fea622d51b440ae5 | [] | no_license | Ivaylo-Atanasov93/The-Learning-Process | 71db22cd79f6d961b9852f140f4285ef7820dd80 | 354844e2c686335345f6a54b3af86b78541ed3f3 | refs/heads/master | 2023-03-30T20:59:34.304207 | 2021-03-29T15:23:05 | 2021-03-29T15:23:05 | 294,181,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | def cache(func):
def wrapper(n):
result = func(n)
wrapper.log[n] = result
return result
wrapper.log = {}
return wrapper
@cache
def fibonacci(n):
if n < 2:
return n
else:
return fibonacci(n - 1) + fibonacci(n - 2)
fibonacci(3)
print(fibonacci.log)
fibonacc... | [
"ivailo.atanasov93@gmail.com"
] | ivailo.atanasov93@gmail.com |
b8fac3e471ae450389961aa1cb49b4834ce1d6cb | 5b565e331073a8b29f997c30b58d383806f7d5a8 | /pizzeria/11_env/bin/easy_install-3.7 | 242566d7d779997c369a8ea2a01c7db939a5250b | [] | no_license | jeongwook/python_work | f403d5be9da6744e49dd7aedeb666a64047b248d | bba188f47e464060d5c3cd1f245d367da37827ec | refs/heads/master | 2022-04-02T23:16:57.597664 | 2020-01-21T08:29:48 | 2020-01-21T08:29:48 | 227,506,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | 7 | #!/Users/jeongwook/Desktop/python/python_work/pizzeria/11_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jeongwook.yu@utexas.edu"
] | jeongwook.yu@utexas.edu |
7d75a5e69d0aeff702d6fe53686e32f47cd01b4e | f1614f3531701a29a33d90c31ab9dd6211c60c6b | /test/menu_sun_integration/handlers/test_status_synchronizer_service.py | 207c451856241312424ce76fdbb72a3f98062b7d | [] | no_license | pfpacheco/menu-sun-api | 8a1e11543b65db91d606b2f3098847e3cc5f2092 | 9bf2885f219b8f75d39e26fd61bebcaddcd2528b | refs/heads/master | 2022-12-29T13:59:11.644409 | 2020-10-16T03:41:54 | 2020-10-16T03:41:54 | 304,511,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | import json
import os
import responses
import pytest
from menu_sun_api.domain.model.customer.customer import Customer
from menu_sun_api.domain.model.order.order import OrderStatusType
from menu_sun_api.domain.model.order.order_repository import OrderRepository
from menu_sun_api.domain.model.seller.seller import Integ... | [
"pfpacheco@gmail.com"
] | pfpacheco@gmail.com |
faf55dcced2172399d37e25d66e39d89868333d0 | 280049c5d363df840e5a2184002e59625f0af61b | /datastructure11-balancedparanthesischeck.py | 26c752c9dfffff64c23a2cf8d5095ae37812d617 | [] | no_license | deesaw/DataSPython | 853c1b36f7185752613d6038e706b06fbf25c84e | c69a23dff3b3852310f145d1051f2ad1dda6b7b5 | refs/heads/main | 2023-02-19T13:36:01.547293 | 2021-01-16T13:15:56 | 2021-01-16T13:15:56 | 330,166,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 12:17:58 2021
@author: deesaw
"""
def balance_check(s):
# Check is even number of brackets
if len(s)%2 != 0:
return False
# Set of opening brackets
opening = set('([{')
# Matching Pairs
matches = set([ ('(',')'), ('[','... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
adec15e7f10d62c6d1a6c1bca83ce174883b2551 | 69f47a6e77fc2a1363fc8713ed83d36209e7cf32 | /deframed/default.py | 997b289bd34920ff3704dc3d241fa7fbc6f6c50e | [] | no_license | smurfix/deframed | f1c4611c597809b53a138b70665430ed080a989d | 9c1d4db2991cef55725ac6ecae44af60a96ff4f2 | refs/heads/master | 2022-07-20T14:08:35.938667 | 2022-07-14T07:05:43 | 2022-07-14T07:05:43 | 259,882,446 | 24 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,184 | py | """
This module contains the default values for configuring DeFramed.
"""
from .util import attrdict
__all__ = ["CFG"]
CFG = attrdict(
logging=attrdict( # a magic incantation
version=1,
loggers=attrdict(
#"asyncari": {"level":"INFO"},
),
root=attrdict(
hand... | [
"matthias@urlichs.de"
] | matthias@urlichs.de |
f794cd1dae5cb4ed8da0fc22286c5a047b86c2fa | d8a541a2953c9729311059585bb0fca9003bd6ef | /Lists as stack ques/cups_and_bottles.py | efc8af013cd606d663a6539b7b98d2807e6c28fc | [] | no_license | grigor-stoyanov/PythonAdvanced | ef7d628d2b81ff683ed8dd47ee307c41b2276dd4 | 0a6bccc7faf1acaa01979d1e23cfee8ec29745b2 | refs/heads/main | 2023-06-10T09:58:04.790197 | 2021-07-03T02:52:20 | 2021-07-03T02:52:20 | 332,509,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from collections import deque
cups = deque(map(int, input().split()))
bottles = list(map(int, input().split()))
wasted_water = 0
while cups and bottles:
current_cup = cups.popleft()
while current_cup > 0 and bottles:
current_bottle = bottles.pop()
current_cup -= current_bottle
if current_cu... | [
"76039296+codelocks7@users.noreply.github.com"
] | 76039296+codelocks7@users.noreply.github.com |
1c6ff28e26ea56bf58d2d64410f7f7ccc128b1c3 | a51854991671a4389902945578288da34845f8d9 | /libs/Utility/__init__.py | 413df21a5385589d95b5c2ec9bf735a694a5e504 | [] | no_license | wuyou1102/DFM_B2 | 9210b4b8d47977c50d92ea77791f477fa77e5f83 | 69ace461b9b1b18a2269568110cb324c04ad4266 | refs/heads/master | 2020-04-13T18:54:20.045734 | 2019-06-17T12:46:23 | 2019-06-17T12:46:23 | 163,387,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # -*- encoding:UTF-8 -*-
from libs.Utility import Logger
import Alert as Alert
import Random as Random
from ThreadManager import append_thread
from ThreadManager import is_alive
from ThreadManager import query_thread
from Common import *
import ParseConfig as ParseConfig
from Serial import Serial | [
"jotey@qq.com"
] | jotey@qq.com |
580dbd15bf43272f28e3f9bd42413a905510cd76 | bef304291f5fe599f7a5b713d19544dc0cecd914 | /todoapp/todo_list/forms.py | 9fe1a617dd0f429fc6c8b3c1fa6885fee975c262 | [] | no_license | coderj001/django-todo-and-air-quality | 9ca847143ea86677a0d54026c060638fabf8c042 | 012ee15fa3cfbf1aa08ae4513c3bf4fa828b3ba3 | refs/heads/master | 2020-12-14T20:20:49.845722 | 2020-01-19T15:06:42 | 2020-01-19T15:06:42 | 234,855,834 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django import forms
from .models import ToDoList
class ListForm(forms.ModelForm):
class Meta:
model=ToDoList
fields=['item','completed'] | [
"amirajubolchi001@gmail.com"
] | amirajubolchi001@gmail.com |
d1877db7913e58c396ec934ebb1dc1c993bcbbb5 | 892dd32ee0be7135cd33c875b06dcc66307dcc99 | /automation/MPTS/verifyIqn.py | b82a09a932deb898ea00bc911d3867e80a4c52da | [] | no_license | cloudbytestorage/devops | 6d21ed0afd752bdde8cefa448d4433b435493ffa | b18193b08ba3d6538277ba48253c29d6a96b0b4a | refs/heads/master | 2020-05-29T08:48:34.489204 | 2018-01-03T09:28:53 | 2018-01-03T09:28:53 | 68,889,307 | 4 | 8 | null | 2017-11-30T08:11:39 | 2016-09-22T05:53:44 | Python | UTF-8 | Python | false | false | 5,429 | py | import json
import sys
import time
from time import ctime
from cbrequest import configFile, executeCmd, executeCmdNegative, resultCollection, getoutput
config = configFile(sys.argv);
stdurl = 'https://%s/client/api?apikey=%s&response=%s&' %(config['host'], config['apikey'], config['response'])
negativeFlag = 0
if len... | [
"karthik.s@cloudbyte.com"
] | karthik.s@cloudbyte.com |
3fccf4fa9600a4a3e7b07d4b28660e603bcef30e | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/triangle/0296cbe043e446b8b9365e20fb75c136.py | 18e84ab880631f7510539ae77e9524b0eda2b632 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 621 | py | # represents a triangle
class Triangle(object):
_kinds=["equilateral","isosceles","scalene"]
def __init__(self,a,b,c):
if a<=0 or b<=0 or c<=0:
raise TriangleError("Triangles cannot have zero or negative side length.")
if a+b<=c or a+c<=b or b+c<=a:
raise TriangleError("Triangles must satisfy the t... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
748f97751e80a2258b78d59ce4a378db9a54d1b5 | b743a6b89e3e7628963fd06d2928b8d1cdc3243c | /bpl_client/Client.py | c9143098c648f30df369d458d22b99d0e6d61a3a | [
"MIT"
] | permissive | DuneRoot/bpl-cli | 847248d36449181856e6cf34a18119cd9fc1b045 | 3272de85dd5e4b12ac5b2ad98bf1e971f3bf5c28 | refs/heads/master | 2020-03-25T17:42:06.339501 | 2019-02-20T19:20:26 | 2019-02-20T19:20:26 | 143,990,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | """
BPL Client
Usage:
bpl-cli network config new
bpl-cli network config use
bpl-cli network config show
bpl-cli network peers
bpl-cli network status
bpl-cli account create
bpl-cli account status <address>
bpl-cli account transactions <address>
bpl-cli account send <amount> <recipient>
bpl-cli accou... | [
"johnyob132@gmail.com"
] | johnyob132@gmail.com |
aa43f40b58364ba1f55d60b52c75f3e4b4bbfeb9 | 7136e5242793b620fa12e9bd15bf4d8aeb0bfe7a | /examples/adspygoogle/dfp/v201101/get_licas_by_statement.py | 9086f2f5d7006a77c1a7b578138725bf4db3479b | [
"Apache-2.0"
] | permissive | hockeyprincess/google-api-dfp-python | 534519695ffd26341204eedda7a8b50648f12ea9 | efa82a8d85cbdc90f030db9d168790c55bd8b12a | refs/heads/master | 2021-01-10T10:01:09.445419 | 2011-04-14T18:25:38 | 2011-04-14T18:25:38 | 52,676,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,266 | py | #!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138"
] | api.sgrinberg@7990c6e4-1bfd-11df-85e6-9b4bd7dd5138 |
405974db9681a1efc9bb65d55fa0ae64ee33d230 | 94470cf07f402b1c7824e92a852cd3203f94ac4a | /polls/apiviews.py | 6f6ca88b9da4638cbf0f4888e4305f24fa9ffee5 | [] | no_license | jbeltranleon/pollsapi_django_rest | c509bf0b0c1e2db870ed8a4aaa1647bf74c5f8cd | 0855820541064ffd77dbd1c6e77f695d4f18e517 | refs/heads/master | 2020-04-14T17:55:02.364183 | 2019-01-04T16:01:46 | 2019-01-04T16:01:46 | 163,999,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | from rest_framework import generics
from rest_framework.views import APIView
from rest_framework import status
from rest_framework.response import Response
from .models import Poll, Choice
from .serializers import PollSerializer, ChoiceSerializer,\
VoteSerializer
class PollList(generics.ListCreateAPIView):
q... | [
"jbeltranleon@gmail.com"
] | jbeltranleon@gmail.com |
cdf669514aaf2c1d7c33248746135d7b0232f29f | 184ab7b1f5d6c4a4382cf4ffcf50bbad0f157ef1 | /library/aht10/aht10_example.py | 46df77a8a71666025fda1409a3c5b7ebdbed9497 | [] | no_license | RT-Thread/mpy-snippets | fdd257bb9f44cdc92e52cd39cdc88a57d736fb26 | 9296d559da275f51845cb9c2f8e2010f66f72cc1 | refs/heads/master | 2023-06-14T02:20:05.449559 | 2020-06-03T02:34:47 | 2020-06-03T02:35:19 | 198,854,793 | 28 | 18 | null | 2020-05-06T11:32:46 | 2019-07-25T15:14:56 | Python | UTF-8 | Python | false | false | 517 | py | from machine import I2C, Pin
from aht10 import AHT10
PIN_CLK = 54 # PD6, get the pin number from get_pin_number.py
PIN_SDA = 33 # PC1
clk = Pin(("clk", PIN_CLK), Pin.OUT_OD) # Select the PIN_CLK as the clock
sda = Pin(("sda", PIN_SDA), Pin.OUT_OD) # Select the PIN_SDA as the data line
i2c = I2C(-1, clk, sda,... | [
"SummerGift@qq.com"
] | SummerGift@qq.com |
e2e44ffd1b8897513aaba446dd704ac14b2c5945 | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /src/sentry_plugins/sessionstack/client.py | 2c50f1bafe960bbe0331c77cff05e234168642de | [
"Apache-2.0",
"BUSL-1.1"
] | 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 | 4,683 | py | import requests
from sentry.http import safe_urlopen
from sentry.utils import json
from .utils import add_query_params, get_basic_auth, remove_trailing_slashes
ACCESS_TOKEN_NAME = "Sentry"
DEFAULT_SENTRY_SOURCE = "sentry"
API_URL = "https://api.sessionstack.com"
PLAYER_URL = "https://app.sessionstack.com/player"
W... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
3a4928e43a8d2eb7a9e58b5e4c3c04eee176b3f5 | 0798277f2706998ab80442ac931579eb47f676e5 | /bin/metric-markdown | ed615b4e0809a60c37d486fe5df8f258f20d47d9 | [
"Apache-2.0"
] | permissive | isabella232/pulse-api-cli | 49ed38b0694ab289802f69ee6df4911cf3378e3f | b01ca65b442eed19faac309c9d62bbc3cb2c098f | refs/heads/master | 2023-03-18T00:23:15.295727 | 2016-05-13T15:44:08 | 2016-05-13T15:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | #!/usr/bin/env python
#
# Copyright 2015 BMC Software, 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 applicabl... | [
"davidg@boundary.com"
] | davidg@boundary.com | |
95d38eb622dd57ea6cf2bba55e5202edeb6e0e3b | 43ff15a7989576712d0e51f0ed32e3a4510273c0 | /tools/pocs/bugscan/exp_679.py | 798104fb95f83ba1ff04752dfd711df064cc3623 | [] | no_license | v1cker/kekescan | f2b51d91a9d6496e2cdc767eb6a600171f513449 | 3daa1775648439ba9e0003a376f90b601820290e | refs/heads/master | 2020-09-19T16:26:56.522453 | 2017-06-15T02:55:24 | 2017-06-15T02:55:24 | 94,495,007 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | # -*- coding: utf-8 -*-
from dummy import *
from miniCurl import Curl
curl = Curl()
# !/usr/bin/dev python
# -*- coding:utf-8 -*-
"""
reference:
http://www.wooyun.org/bugs/wooyun-2015-0104157
http://www.beebeeto.com/pdb/poc-2015-0086/
"""
import re
import urllib
import urllib2
import base64
import r... | [
"liyueke@huobi.com"
] | liyueke@huobi.com |
4aff36fdb71b2bbc4fd29e2773506848f06a1fd6 | 8a7d5d67052892dd5d2a748282958f6244d963c6 | /google-cloud-sdk/lib/surface/app/domain_mappings/delete.py | 32842caf145b27ecec1a4e5410e7656b9643a037 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KisleK/capstone | 7d1d622bd5ca4cd355302778a02dc6d32ed00c88 | fcef874f4fcef4b74ca016ca7bff92677673fded | refs/heads/master | 2021-07-04T03:29:44.888340 | 2017-07-24T16:16:33 | 2017-07-24T16:16:33 | 93,699,673 | 0 | 2 | null | 2020-07-24T22:44:28 | 2017-06-08T02:34:17 | Python | UTF-8 | Python | false | false | 1,812 | py | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"kisle.kuhn1@gmail.com"
] | kisle.kuhn1@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.