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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
caebc96905c867de05d81224bade830c83107c4d | f155033606399eadfb5fe694479af36e14115467 | /search/count-luck.py | 864e7fa09d1fb7d76cbb2459998881d63f70875f | [] | no_license | KadirEmreOto/hackerrank | 7925e5b49f90bbe6fef41cfe4fd980b6ffd9e3f1 | 143d49adc45e4e3e3d9424168b2fdac80b2155d6 | refs/heads/master | 2021-01-11T02:56:03.535273 | 2017-08-11T13:41:55 | 2017-08-11T13:41:55 | 70,905,859 | 10 | 2 | null | 2022-03-16T09:19:13 | 2016-10-14T11:55:02 | Python | UTF-8 | Python | false | false | 1,772 | py |
def PossiblePath(coordinate, previous=(-1,-1)):
paths = []
if coordinate[0] > 0:
x, y = coordinate[0] - 1, coordinate[1]
if matrix[x][y]: paths.append((x,y))
if coordinate[0] < len(matrix) - 1:
x, y = coordinate[0] + 1, coordinate[1]
if matrix[x][y]: paths.append((x,y))
... | [
"emrekadiroto@hotmail.com"
] | emrekadiroto@hotmail.com |
d2dcecbd16eb669b76cbad8a7ca40301a63b91c7 | ed1ec951e77f5274abf49247cd5469d4154aad3d | /src/noobit/models/data/websockets/stream/parse/kraken/__init__.py | 25f53fa17571110d324821f5cc91d2797ff3abdd | [] | no_license | webclinic017/noobit-backend | c7356d019cd5ddcc5c7e99592b609d66f309b6f3 | dce2a18a694ccd53f71fe1a89635340db553634a | refs/heads/master | 2023-05-31T01:57:58.165155 | 2020-06-28T14:28:45 | 2020-06-28T14:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from .parser import KrakenStreamParser | [
"maximousse@protonmail.com"
] | maximousse@protonmail.com |
3ebe04477594e70a68b2ff3824aa3b709130096b | c17ca7a7824056f7ad58d0f71abc25670b20c1fc | /spirit/views/comment.py | 44ff77c50c4531c55d98605ee20b44df27545ddf | [
"Apache-2.0"
] | permissive | Si-elegans/Web-based_GUI_Tools | cd35b72e80aa400105593c5c819355437e204a81 | 58a9b7a76bc46467554192a38ff5329a94e2b627 | refs/heads/master | 2023-01-11T09:11:21.896172 | 2017-07-18T11:10:31 | 2017-07-18T11:10:31 | 97,445,306 | 3 | 1 | Apache-2.0 | 2022-12-26T20:14:59 | 2017-07-17T07:03:13 | JavaScript | UTF-8 | Python | false | false | 4,269 | py | #-*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from django.contrib import messages
from django.utils.translation import ugettext as _
from django.conf import settings... | [
"gepelde@vicomtech.org"
] | gepelde@vicomtech.org |
5abd7fd948ee42c0a1f5aad7e6272901fda1b717 | 6147d3da9c7f31a658f13892de457ed5a9314b22 | /array/python/leaders_in_an_array.py | da581bee51336682cf9065a22348a890f6c009de | [] | no_license | ashish-bisht/must_do_geeks_for_geeks | 17ba77608eb2d24cf4adb217c8e5a65980e85609 | 7ee5711c4438660db78916cf876c831259109ecc | refs/heads/master | 2023-02-11T22:37:03.302401 | 2021-01-03T05:53:03 | 2021-01-03T05:53:03 | 320,353,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | def leaders_in_an_array(nums):
leaders = [nums[-1]]
max_so_far = nums[-1]
for i in reversed(range(len(nums))):
if max_so_far < nums[i]:
max_so_far = nums[i]
leaders.append(nums[i])
return leaders
print(leaders_in_an_array([16, 17, 4, 3, 5, 2]))
print(leaders_in_an_ar... | [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
c569953334a30750a41f8d2c940875dafd72c345 | a8be4698c0a43edc3622837fbe2a98e92680f48a | /SSAFY알고리즘정규시간 Problem Solving/그 외 Problems 및 시험문제/난이도 D1/2070큰놈,작은놈,같은놈.py | 0b7c52214e1da3fa260041a55288f189c1018045 | [] | no_license | blueboy1593/algorithm | fa8064241f7738a12b33544413c299e7c1e1a908 | 9d6fdd82b711ba16ad613edcc041cbecadd85e2d | refs/heads/master | 2021-06-23T22:44:06.120932 | 2021-02-21T10:44:16 | 2021-02-21T10:44:16 | 199,543,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import sys
sys.stdin=open("input.txt", "r")
T = int(input())
def compare(x, y):
if x < y:
return '<'
elif x == y:
return '='
elif x > y:
return '>'
for tc in range(1, T+1):
x, y = map(int, input().split())
print('#%d %s' %(tc, compare(x,y))) | [
"snb0303@naver.com"
] | snb0303@naver.com |
caaef2f7730030cf4ed729244d949d8bcd17575e | 0afc11e9d079c2dfc5cc1b7a856d53075ebd9f6d | /serverless/th.py | 9e5ae4208a83c5d0473d9bd2a780ca1b1fbe12b7 | [] | no_license | luzi82/telegram_hub | 17b4c1a363717f93dc70b094e0bc0edced03ea8f | 86c49b42b022b5529e1c0c5d57ddab4d09238f96 | refs/heads/master | 2021-07-17T12:53:04.485138 | 2021-02-21T14:26:37 | 2021-02-21T14:26:37 | 240,918,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | import datetime
import futsu.aws.s3
import futsu.hash
import futsu.storage
import hashlib
import json
import logging
import os
import telegram
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def listench(chat_id, word_list):
now = int(datetime.datetime.now().timestamp())
err_msg = 'lis... | [
"luzi82@gmail.com"
] | luzi82@gmail.com |
fe8ddd291773d492b0dac92622714eb70182c058 | 3bea736c556024175fff13901bc0e9105adca771 | /help_utils/help_utils.py | 050fc68079b171a3e9dabe799c0af4f60aeb2dbe | [] | no_license | liuguiyangnwpu/R2CNN_FPN_Tensorflow | 69fba96c6ff71490ebb6efeabed96c0dcee6b98c | aa8fcc53d569f87bdd73ecde94d5185d108802ca | refs/heads/master | 2021-09-10T05:34:15.029141 | 2018-03-21T05:46:41 | 2018-03-21T05:46:41 | 126,128,857 | 2 | 0 | null | 2018-03-21T05:42:45 | 2018-03-21T05:42:44 | null | UTF-8 | Python | false | false | 5,934 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import cv2
from libs.label_name_dict.label_dict import LABEl_NAME_MAP
def show_boxes_in_img(img, boxes_and_label):
'''
:param img:
:param boxes: must be int
:return:
'''
boxes_and_label = boxes_and_label.astype(np.int64)
... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
09b79d5ec8ce71ca3a317ce6e8f3b4d2425827e5 | 2b3bc6b3f489e1b72d6665e933a83b3825b38282 | /api/migrations/0001_initial.py | 0cab112e89899e0cf09a959fb57b77c35d30d0cf | [] | no_license | WilliamColmenares/testrss | 498f029937c56f828610a001cebe1b92dfe4c0a9 | f760bb6cce2b59aa07db0eceb2e19f9bfd3ffde5 | refs/heads/master | 2022-04-30T22:30:53.055727 | 2019-06-01T05:13:33 | 2019-06-01T05:13:33 | 188,421,924 | 0 | 0 | null | 2022-04-22T21:17:51 | 2019-05-24T12:56:20 | Python | UTF-8 | Python | false | false | 507 | py | # Generated by Django 2.2.1 on 2019-05-24 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='News',
fields=[
('id', models.PositiveInteg... | [
"colmenares.william@gmail.com"
] | colmenares.william@gmail.com |
2ae8e46c38bc715d510baac082bd5a0562b34aa0 | 31278065777090757e7fe2fbb7b2c9af80442378 | /textToy/ptm/utils.py | 0fa6891e2a3357edeb682bd2f8e5161c0cb8ad1e | [] | no_license | 823858275/textToy | 92ebf7734dfe6f4f3eddf31508c09e005e52e31b | 96f5e838daf7deffc04a40eb59b12a98ceb6dfe6 | refs/heads/master | 2022-12-11T15:22:40.903246 | 2020-09-24T03:14:52 | 2020-09-24T03:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,785 | py | # -*- coding: UTF-8 -*-
"""
@author: huanghui
@file: utils.py
@date: 2020/09/08
"""
import six
import numpy as np
import tensorflow.compat.v1 as tf
import tensorflow.contrib.layers as contrib_layers
def gelu(x):
"""Gaussian Error Linear Unit.
This is a smoother version of the RELU.
Original paper: https:... | [
"m13021933043@163.com"
] | m13021933043@163.com |
d7af6dcb22ea2b6de064644dce3204b402ac9d9c | fd44e1d9e52491b87e51037d8edb329ec76927be | /五、读写文本数据/5.9 读取二进制数据到可变缓冲区中.py | 8ccaacee2c6c4cf697f0ee41ff8f12be7b9f9076 | [] | no_license | Vaileung/coobook_test | ff2f685d6237acd5ca93275223f41c023e862548 | 14bd836a5cd559a4ff56bed9104c596e79fd6212 | refs/heads/master | 2021-10-19T21:40:42.061728 | 2019-02-24T08:05:28 | 2019-02-24T08:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import os.path
def read_into_buffer(filename):
buf = bytearray(os.path.getsize(filename))
with open(filename, 'rb') as f:
f.readinto(buf)
return buf | [
"951352875@qq.com"
] | 951352875@qq.com |
64a42e9f391680e0af435f384436f0bf42178044 | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/comparison/test_cond_format07.py | 47ee1ff087c4e9f890168fae13b71d0f845e522b | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
b10f2c0774bd2ccc566cb7d20bc3705516dfc521 | 4e2117a4381f65e7f2bb2b06da800f40dc98fa12 | /024_yolov3-lite/model/head/yolov3.py | 45ee73ed6fc979d84e5f469f8e9c1c0f6dfa7c19 | [
"AGPL-3.0-only",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | PINTO0309/PINTO_model_zoo | 84f995247afbeda2543b5424d5e0a14a70b8d1f1 | ff08e6e8ab095d98e96fc4a136ad5cbccc75fcf9 | refs/heads/main | 2023-09-04T05:27:31.040946 | 2023-08-31T23:24:30 | 2023-08-31T23:24:30 | 227,367,327 | 2,849 | 520 | MIT | 2023-08-31T23:24:31 | 2019-12-11T13:02:40 | Python | UTF-8 | Python | false | false | 13,709 | py | # coding:utf-8
import config as cfg
import numpy as np
import tensorflow as tf
from model.layers import *
from model.backbone.MobilenetV2 import MobilenetV2
from utils import tools
class YOLOV3(object):
def __init__(self, training):
self.__training = training
self.__classes = cfg.CLASSES
... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
a09af1464e6b81d253b84f46406f77f78fca3ed0 | 8cc62e7a856593ff2daafc0c3cc932709334ebb2 | /tensorflow_examples/lite/model_maker/third_party/efficientdet/keras/eval_tflite.py | 3150f7a45643b34bce28ff2b494af36875e864f6 | [
"Apache-2.0"
] | permissive | Saiprasad16/examples | f996f10233e79ed6280e6e144332314ba3304aaa | 0dc02a1e62d93a7e7b86708099e657b6883fbbaf | refs/heads/master | 2023-04-26T11:58:55.135629 | 2021-05-10T10:25:26 | 2021-05-10T10:27:15 | 366,007,377 | 1 | 0 | Apache-2.0 | 2021-05-10T10:45:00 | 2021-05-10T10:41:39 | null | UTF-8 | Python | false | false | 8,255 | py | # Copyright 2020 Google Research. 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c5486fde69e1587d828896c82ebbbe85c497cc4d | c452b223adf390edddf4339dd7360fe6de66b8d8 | /common/models/abstract/checkable_model.py | 9115032a42dfa36585583a5af6570268041d7008 | [] | no_license | dev1andriy/creditbase_server | a321b16976c7cfe87d3ee5cfaf700850ea1b689c | 4ee067e175a1cca3f907a61ebc3d369ecdcebd66 | refs/heads/master | 2023-05-13T17:13:23.486966 | 2020-07-16T07:50:56 | 2020-07-16T07:50:56 | 280,089,440 | 0 | 0 | null | 2021-06-10T23:10:15 | 2020-07-16T07:49:41 | Python | UTF-8 | Python | false | false | 255 | py | from django.db import models
class CheckableModel(models.Model):
CheckerId = models.IntegerField(default=None, blank=True, null=True)
CheckDate = models.DateTimeField(default=None, blank=True, null=True)
class Meta:
abstract = True
| [
"dev1@azon5.com"
] | dev1@azon5.com |
f41e7c057be1b5b9684b225db0f785787631f1a2 | e5e9ee9e4db2e400e7f87647501ee412c13d76e5 | /python/python-base/turtle/basic.py | 1ab1dd5cf9d12f51e53dbef2f7be090190e2833d | [] | no_license | beingveera/whole-python | 524441eec44379c36cb1cfeccdbc65bf1c15d2f6 | 3f2b3cb7528afb9605ab6f9d4d2efc856a247af5 | refs/heads/main | 2023-05-15T06:28:03.058105 | 2021-06-05T09:37:47 | 2021-06-05T09:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import turtle as t
import time
ts=t.Turtle()
t.shape('turtle')
t.color('blue','red')
t.bgcolor('black')
for i in range(200):
t.forward(i)
t.left(100)
# time.sleep(.001)
quit() | [
"sharma.lokesh.222001@gmail.com"
] | sharma.lokesh.222001@gmail.com |
408094a9578faa9eaa26ffcaa28113d302d1618e | ffa1a2eb6cc7dc53e2dac529253d063e4a07aba3 | /taobao.py | d08ae6029a342bc176f0f0da42e65b0d8aaa2c8b | [] | no_license | meijida258/python_test | 48ca275538a29a1bf15f5f34f06801e352e72ce0 | 422f5c07ff217d834caa262f87f1c87c04d8cfbb | refs/heads/master | 2021-01-10T07:29:57.084983 | 2017-05-11T12:39:44 | 2017-05-11T12:39:44 | 55,590,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | from pyspider.libs.base_handler import *
class Handler(BaseHandler):
crawl_config = {
}
def __init__(self):
self.base_url = 'https://mm.taobao.com/json/request_top_list.htm?page='
self.page_num = 1
self.total_num = 30
@every(minutes=24 * 60)
def on_start(self):
... | [
"meijida123@163.com"
] | meijida123@163.com |
7d2f24b612d8c087a2c6112a0c70409c1770e4d5 | 2eb3a386999f79e1f5488a6fb321e020191f08b4 | /Codility/cyclicRotation.py | 1ab79c05eb4041f08872585eda5c9f80e89d1e4d | [] | no_license | webclinic017/MachineLearning-1 | 8bd17cff10eac6ee4402a94575e2efb2811d89ef | 83c880930fa402950de0fc58186fc588f82b6a77 | refs/heads/master | 2023-03-28T10:56:14.026623 | 2021-03-31T16:36:55 | 2021-03-31T16:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | ### Cycle rotation
def cyclicRotation(A,K):
l = len(A)
if(l==0):
return A
K = K%l
if(K==0):
return A
return (A[-K:] + A[:l-K])
| [
"noreply@github.com"
] | webclinic017.noreply@github.com |
9bfba8de728b2bc1a89ec15f47bb4562535a5b8e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/maps/v20210201/__init__.py | a26edba4485ca997ad881b8aeb2ce52033ddc9ea | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 454 | 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! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .account import *
from .creator import ... | [
"noreply@github.com"
] | morrell.noreply@github.com |
1eb570e57034938054230418a83b395859fc3ddd | 3b8fd5b73337b3cd70b283644c266d4ec962ad54 | /2020-2021/DEV1/Chapter 4/BA1.py | 1d107589160dce6677342efc404bbbad580514cf | [] | no_license | Andy00097/hrinf-development | 20f4604ca5637c710d9d25e7e218a2ae1233498b | 464ca039537d6b8ca04bf95ba070b8f1f7b81188 | refs/heads/main | 2023-01-09T03:52:54.214472 | 2020-11-11T10:11:57 | 2020-11-11T10:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | money = 100
if money >= 1000000:
millionaire = True
else:
millionaire = False
# Are you a millionaire?
answer = 'That is most definitely ' + str(millionaire)
print() | [
"stijn@kolkies.dev"
] | stijn@kolkies.dev |
5d9700320eacaed2523d4f316585b9ec492a3b76 | 20a9787564f76ae0fcf2332a8655b21bae0646a3 | /30DayLeetcodeChallenge_April/Week1/7_countElements.py | dab7c42f7bba60969ca6c15ecccdab627e88c3e0 | [] | no_license | nidhiatwork/Python_Coding_Practice | 3b33a40c947413c2695d3ee77728fa69430f14cd | 9d5071a8ddcda19181d3db029fb801d4e3233382 | refs/heads/master | 2023-02-08T20:50:47.522565 | 2023-02-04T10:04:10 | 2023-02-04T10:04:10 | 194,607,759 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | '''
Given an integer array arr, count element x such that x + 1 is also in arr.
If there're duplicates in arr, count them seperately.
Example 1:
Input: arr = [1,2,3]
Output: 2
Explanation: 1 and 2 are counted cause 2 and 3 are in arr.
'''
def countElements(arr):
seen = set()
for item in arr:
if i... | [
"nidhi.bhushan123@gmail.com"
] | nidhi.bhushan123@gmail.com |
fd35ac73a517797bfad6c3ca79657193172b7b54 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncrank.py | 79a0e55e501794c661de098c31bb830999c487a6 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 139 | py | ii = [('AdamWEP.py', 5), ('GilmCRS.py', 1), ('BachARE.py', 1), ('FitzRNS.py', 1), ('FitzRNS2.py', 1), ('BeckWRE.py', 1), ('WaylFEP.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
49519c0f283e35a90d2667836f7ba768b97ae253 | 79ec8c0c3d03eba1eb02e2e1df831b07fd7c0023 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akVs5PFJetSequence_PbPb_data_cff.py | 902cda7bb926fa74554deb36cc6e7e95419bc894 | [] | no_license | enazarova/cmssw | a1febaae0e0d39a1ca3c625ee2cdec56830d10ed | fab2e599665c334ab8c8d0bac8f931c71fa4becb | refs/heads/master | 2021-01-16T22:02:12.424115 | 2013-12-18T13:42:50 | 2013-12-18T13:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,334 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs5PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs5PFJets"),
matched = cms.InputTag("ak5HiGenJetsCleaned")
)
akVs5PFpar... | [
"yetkin.yilmaz@cern.ch"
] | yetkin.yilmaz@cern.ch |
ce5d2cf0e0f7a17fbff6de956fc1eff34941a0ab | dcd30bb8c7935893933a8618fc058d6e442a7908 | /inst/examples/geoquery.py | 2775d85fa2e9de65f644f8ac99ddcb6417fb3313 | [
"MIT"
] | permissive | julianflowers/UKCensusAPI | 0dd146391eaffc725ea610d58948d7efa4e769ef | 38cea3cc419c9bef2e4aa09e06544159fced7329 | refs/heads/master | 2021-09-03T03:58:12.894590 | 2018-01-05T11:16:09 | 2018-01-05T11:16:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | #!/usr/bin/env python3
import ukcensusapi.Nomisweb as Api
def main():
api = Api.Nomisweb("/tmp/UKCensusAPI")
print("Nomisweb census data geographical query example")
print("See README.md for details on how to use this package")
# In the previous example we had a predefined query using Leeds at MSOA resoluti... | [
"a.p.smith@leeds.ac.uk"
] | a.p.smith@leeds.ac.uk |
9c7c2fceb543a420f5cf9e302f4bab21b6f24b66 | 9b61b60dd6db1291170b9656c540290c70e3326c | /tensorflow/contrib/layers/python/layers/encoders_test.py | 81c6a66b222eed014565e3abac4943f5f08ce00b | [
"Apache-2.0"
] | permissive | gauravgupta1/tensorflow | dfbbafb68be5a86fd0b18f458f2b94fd7cdda657 | 501b7137a9f5389d2319bc748fec9bd93a5b5940 | refs/heads/master | 2021-01-11T04:57:37.146627 | 2016-11-03T20:37:37 | 2016-11-03T20:37:37 | 72,789,273 | 1 | 0 | null | 2016-11-03T21:39:09 | 2016-11-03T21:39:09 | null | UTF-8 | Python | false | false | 4,969 | py | # Copyright 2016 The TensorFlow 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b0a56e9d9f7dd2605aed4a3aa4f4035fe879744f | 155cbccc3ef3b8cba80629f2a26d7e76968a639c | /thelma/tools/libcreation/base.py | 4bbf2346f598c196e1841c0e86f625cca73c956c | [
"MIT"
] | permissive | papagr/TheLMA | 1fc65f0a7d3a4b7f9bb2d201259efe5568c2bf78 | d2dc7a478ee5d24ccf3cc680888e712d482321d0 | refs/heads/master | 2022-12-24T20:05:28.229303 | 2020-09-26T13:57:48 | 2020-09-26T13:57:48 | 279,159,864 | 1 | 0 | MIT | 2020-07-12T22:40:36 | 2020-07-12T22:40:35 | null | UTF-8 | Python | false | false | 10,770 | py | """
This file is part of the TheLMA (THe Laboratory Management Application) project.
See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information.
Base classes and constants for library creation ticket.
AAB
"""
from thelma.tools.iso.poolcreation.base import StockSampleCreationLayout
from thelma.tools.u... | [
"fogathmann@gmail.com"
] | fogathmann@gmail.com |
92a1049eea243951ce4f1d8ff0cdc2ad1a86e5ba | b4d2c3bd5def6faed90178f683e853190855b625 | /blog/urls.py | b19156f4bb449400428af1ec86b0bb3bac20637e | [] | no_license | tz2614/my-first-blog | cfe7a26742924efd229dbe43a007d368cb7a7c75 | 41397b651e80256bcaef2748215c73182f266f4f | refs/heads/master | 2021-05-13T11:23:51.655339 | 2018-01-26T17:44:00 | 2018-01-26T17:44:00 | 117,122,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | #from django.urls import path, re_path
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>\d+)/edit/$', vi... | [
"tony_zheng35@hotmail.com"
] | tony_zheng35@hotmail.com |
7c07cba7a667d0e91b0310f872c1b33047a8ca05 | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/comparison/test_cond_format11.py | d26271e0299a0be9fb5808e8a412535aed84862b | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
994ff47f96bdf8e35bbdc5761de94deeed01f717 | 8da7b2ea7e64ea307d913aa304847e5a466ff016 | /alchemist.project/trunk/alchemist/project/templates.py | 08629c259154a26dc60b5d80497c1c0ef589ac22 | [] | no_license | BGCX261/zope-alchemist-svn-to-git | 5ac3f6f07fc01a8f114527f553462af157a1a0a0 | 60d6be6e584b433b49c4b681a0a9d48c6d8e6a44 | refs/heads/master | 2020-06-04T04:59:09.581952 | 2015-08-25T15:35:13 | 2015-08-25T15:35:13 | 41,594,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import sys
import os.path
import shutil
from ConfigParser import ConfigParser
from paste.script.templates import var, NoDefault, Template, BasicPackage
HOME = os.path.expanduser('~')
def get_buildout_default_eggs_dir():
default_cfg = os.path.join(HOME, '.buildout', 'default.cfg')
if os.path.isfile(default_cfg... | [
"you@example.com"
] | you@example.com |
411f700d61fbfd535ec1d20defbc59e5d8b04cd9 | de702e4f4a2344c891d396bb8332a90d042b0971 | /Back-End/Django/Django For Beginners/2/pages_3/pages_3/settings.py | 27b8a0ad81e2ec39bd435aefc0cd45fc76c5dd9c | [] | no_license | ScarletMcLearn/Web-Development | 3bf093a261ddad4e83c3ebc6e724e87876f2541f | db68620ee11cd524ba4e244d746d11429f8b55c4 | refs/heads/master | 2022-12-17T10:56:56.238037 | 2021-01-18T14:13:33 | 2021-01-18T14:13:33 | 88,884,955 | 0 | 0 | null | 2022-12-08T06:47:35 | 2017-04-20T16:03:19 | HTML | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for pages_3 project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"noreply@github.com"
] | ScarletMcLearn.noreply@github.com |
33b57717a14223c1f04080091fb5a073a1dd3895 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129091444.py | 5f61fdb5f8ad783ef8389abbdc231e31f061af75 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,324 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
from bs4 import BeautifulSoup
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Ap... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
56cfac5f606f2726f69bf7ae855d21d37aa3632f | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/scikits/statsmodels/datasets/sunspots/data.py | 32597f6ba9d11211e494500393368a584cb8155b | [
"Unlicense",
"BSD-3-Clause"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 1,727 | py | """Yearly sunspots data 1700-2008"""
__all__ = ['COPYRIGHT','TITLE','SOURCE','DESCRSHORT','DESCRLONG','NOTE', 'load']
__docformat__ = 'restructuredtext'
COPYRIGHT = """This data is public domain."""
TITLE = __doc__
SOURCE = """
http://www.ngdc.noaa.gov/stp/SOLAR/ftpsunspotnumber.html
The original datas... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
fae69e899ca92c3460628e68699f1ccb94f21ce8 | 8491f88256632514d6ac446122f29f14a2a9614d | /program/viewport.py | 5bab24e342e6449f9257fb34585cd9c788e827ce | [] | no_license | joeclark-phd/roguestate | 47d3de09d342dad933a16d686694286fc66a798f | 6f6ac3799e839eb1a6cd42c524ac06359c558c00 | refs/heads/master | 2020-04-06T06:39:51.557536 | 2014-08-03T01:03:20 | 2014-08-03T01:03:20 | 18,340,106 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,313 | py | "renders the GameData as Sprite objects"
import pyglet
import geometry, gamedata, tiles
# The best way to keep this decoupled from the GameData but still speedy was
# to have the Level (i.e. map) objects maintain sets of tile numbers that need
# updating: terrain_changes, thing_changes, and critter_changes. The... | [
"joseph.w.clark@asu.edu"
] | joseph.w.clark@asu.edu |
ad5e2da0d6d3e7b4b8498d26e2a59bdd6f027632 | 13696a9691b173d75b11b4aee22b79d4ea6b7c0b | /squareconnect/models/get_employee_wage_response.py | ab9a92e1babbf65858b2d78368c2fa9dc169f295 | [
"Apache-2.0"
] | permissive | square/connect-python-sdk | 410613bc4b04f0f70176275591a16c9e49e25ede | e00e2889b2dd2c55048219cbe64db79962a68633 | refs/heads/master | 2023-06-15T09:24:17.190416 | 2019-08-15T17:44:41 | 2019-08-15T17:44:41 | 64,772,029 | 53 | 45 | Apache-2.0 | 2020-12-20T18:41:31 | 2016-08-02T16:07:17 | Python | UTF-8 | Python | false | false | 4,217 | py | # coding: utf-8
"""
Copyright 2017 Square, 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 la... | [
"noreply@github.com"
] | square.noreply@github.com |
e3809cd44d9b69fec9eaaeea63c36f04461b023c | 497b9456d3fa7da1d2ee1c27a8305e228a11b33d | /manage.py | 2ee8645750608bd492abd6f148dc4a33a24b11be | [] | no_license | arunthankachan07/todosProject | 2e9787b81e23489bafd5b93c35e6c75d27a8b41b | e33c416c840bec1e2307e7fd09c8ee65d05b6b80 | refs/heads/master | 2023-04-28T06:55:28.125190 | 2021-05-12T14:49:30 | 2021-05-12T14:49:30 | 366,752,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'todosProject.settings')
try:
from django.core.management import execute_from_command_line
except... | [
"arunkaripuzha07@gmail.com"
] | arunkaripuzha07@gmail.com |
d964a0c1efc744827a866549cff47108fdf1dda9 | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2023_02_02_preview/operations/_snapshots_operations.py | eee15a49ad0e59017d490c919ccfd2b13b6903b7 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 36,863 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | rdomenzain.noreply@github.com |
29920f81abc397d7c077ce3110a5d48393684d7e | d2cffc0a371f9e4d587951755c0eb370ca491d2a | /mod_repair_extended/source/auto/mod_repair_extended.py | 57660105a2b82a4763eff0296182f17d9723b187 | [
"WTFPL"
] | permissive | Havenard/spoter-mods | 633d06fa6202a8bd390f642f4847f321b7d3bbb8 | a8c8c143d744d4fe5838fbd92e2f188f5dbffe62 | refs/heads/master | 2020-05-01T08:16:12.138415 | 2019-03-21T17:50:08 | 2019-03-21T17:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,089 | py | # -*- coding: utf-8 -*-
import random
from functools import partial
import BattleReplay
import BigWorld
import Keys
import SoundGroups
from Avatar import PlayerAvatar as PlayerAvatar
from gui import TANKMEN_ROLES_ORDER_DICT
from gui.Scaleform.daapi.view.battle.shared.consumables_panel import ConsumablesPanel
from gui.... | [
"spoter@mail.ru"
] | spoter@mail.ru |
ff72bd26a71f70419b0cf4d97f43a8a51b3cb284 | a82418f3d62b944a27b6e9000829af54b7575893 | /psets_gensim_v1/2018/cfg_hiddenValleyGridPack_darkphoton_m_5_ctau_50_xiO_1.py | c52f6156c2266400d578db9a9456b165b65dd137 | [] | no_license | mcitron/hiddenValleyGeneration | abb347a30319ce5f230e0e1248a4259bf4cc4b1b | 5d165be91ae082fdba790506bfb11a026d602787 | refs/heads/master | 2023-04-08T13:34:56.835752 | 2021-04-28T17:14:46 | 2021-04-28T17:17:14 | 362,550,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,858 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/hiddenValleyGridPack_darkphoton_m_5_ctau_50_xiO_1.py --python_filename cfg_hiddenValleyGridPack_darkphot... | [
"mcitron@cern.ch"
] | mcitron@cern.ch |
e54845bac5a479fbcefeca86839768f9e6f5d5ef | 08c837e0e77930f94cd2a6466d38a6d6b38e11ef | /api/urls.py | 641852f464ec89d063fc46f44af29a01a10ba976 | [] | no_license | platzhersh/musicmashup-jukebox-backend | e47d4eaa2ecdea21c20d0a4cc98f8fe1086ac987 | f0fb5d560ff19b0f9298496847e807925be16917 | refs/heads/master | 2021-01-17T14:28:33.095410 | 2016-09-17T14:58:41 | 2016-09-17T14:58:41 | 68,416,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
from django.conf.urls import include, url
from rest_framework.urlpatterns import format_suffix_patterns
from api import utils
from api import views
jukebox = [
url(r'^rooms/?$', views.RoomListView.as_view(), name="eventcategories"),
url(r'^rooms/(?P<pk>[0-9]+)/?$', utils.get_retrievevi... | [
"chregi.glatthard@gmail.com"
] | chregi.glatthard@gmail.com |
7f79643b9684999f72efd9615865d7dd67d8e314 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/codeabbey/_Python_Problem_Solving-master/Random Generator.py | 7d6a95bfd54b47b91cd9d894449ec41c199a573a | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,334 | py | #accept the number of the element to generate random numbers
data i..(input
#accept the numbers from which random numbers will be generated
a l.. m..(s..,i.. ).s..()))
#traverse through the list of the numbers
___ i __ a:
#to store the current value of i and this is used if the numbers are repeating then print the ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
22c8ea021a301422c3e6055ded494c2c2ac691af | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03141/s223022597.py | 4b728e329753edf2c4fdd8274948dfacf44ff235 | [] | 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 | 431 | py | def main():
dishes = int(input())
aoki_happiness = []
difference = []
for i in range(dishes):
t, a = map(int, input().split())
aoki_happiness.append(a)
difference.append(t + a)
difference.sort(reverse=True)
answer = -sum(aoki_happiness)
for i in range(dishes):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed16de2849ffa18e3bb2cfac7efd20a8e82d4f90 | ab0e9b543852bc2d3c828b2351c30d1626f0b321 | /CustomProceduralRiggingTool/CustomProceduralRigTool/rigLib/base/controlShape/SliderControl.py | c9be68cee3e09fa618d2da5c2adc0503578bb9a2 | [] | no_license | tHeBeStXu/CustomProceduralRigTool | 397011b9519a3e5382aec5aee6115f3e6a14a802 | 003fa61b460d8e76c026f47913ebdab5c0cbfef8 | refs/heads/master | 2021-07-13T09:02:07.697909 | 2020-07-09T07:28:27 | 2020-07-09T07:28:27 | 157,082,564 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | import maya.cmds as cmds
def createShape(prefix='', scale=1.0):
curve6 = []
curve6.append(cmds.curve(n=prefix, p =[(2.0, 0.0, 0.0), (2.0, 1.0, 0.0), (-2.0, 1.0, 0.0), (-2.0, 0.0, 0.0), (2.0, 0.0, 0.0)],per = False, d=1, k=[0, 1, 2, 3, 4]))
sel1 = curve6[0]
cmds.setAttr(sel1 + '.s', scale, scale, scale... | [
"328665042@qq.com"
] | 328665042@qq.com |
6c098d5e655be7b827043de2784822653a2260c7 | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /BAEKJOON/정렬/1431_시리얼 번호.py | d0a14199eab04150f0860531be40f5a286f97b8a | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | N = int(input())
array = []
for _ in range(N):
n = input()
sum = 0
for i in n:
if i.isdigit():
sum += int(i)
array.append((n, sum))
1. A와 B의 길이가 다르면, 짧은 것이 먼저 온다.
2. 만약 서로 길이가 같다면, A의 모든 자리수의 합과 B의 모든 자리수의 합을 비교해서 작은 합을 가지는 것이 먼저온다.
3. 1, 2번 조건으로도 비교할 수 없으면, 사전순으로 비교한다.
array = so... | [
"shjang113@gmail.com"
] | shjang113@gmail.com |
2f38353f58352beb81d91c0b725f1dee9b3f7a4c | 931ba0367d004a43d258430050283c1f4d350d5f | /dask/array/random.py | 9283d1863cdaf1cc43496468ffae16a96d292616 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | philipppahl/dask | dbc8d51da7dcc1f4a1b28492e2265b7479922882 | a591d7a9752e21f8b5b7d22861c7e5c0dff93881 | refs/heads/master | 2021-01-15T15:03:57.494711 | 2015-06-22T17:11:23 | 2015-06-22T17:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,965 | py | from __future__ import absolute_import, division, print_function
import numpy as np
from itertools import product
from toolz import curry
from .core import normalize_chunks, Array, names
def doc_wraps(func):
""" Copy docstring from one function to another """
def _(func2):
func2.__doc__ = func.__doc__... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
24d31502914f3b41f15ecb35a206841750e7d298 | 69d407235771f364277f78aeb3a03896804cb690 | /setup.py | 669930846e04f4eeb362c460f252ac27591cd477 | [] | no_license | Hoseung/astroBF | 1bb16de1c867b943751ff0d73dfabc5ab7e723c6 | e04efff26e99886c8b7eba42a897277318338d61 | refs/heads/main | 2023-07-17T12:27:10.184080 | 2021-09-01T05:42:05 | 2021-09-01T05:42:05 | 313,825,096 | 0 | 0 | null | 2021-07-22T15:16:58 | 2020-11-18T04:44:01 | Jupyter Notebook | UTF-8 | Python | false | false | 965 | py | """A setuptools based setup module.
They say, "Always prefer setuptools over distutils
See:
https://github.com/pypa/sampleproject
https://github.com/pypa/sampleproject/blob/master/setup.py
"""
from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
... | [
"hopung@gmail.com"
] | hopung@gmail.com |
46524fbf2a219d76e7cd01f987bb7a2e1999334b | e823bc36af457f229f6879d6e6a3ef6247c129aa | /virtualenv/Lib/site-packages/twisted/web/client.py | 9f8c4a5549f685697dd39693a94b5c79200dc91a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | William-An/DFB_Final | e772fa979c41f2f83a4bf657cde499456215fb3b | 49a9244c98116574676992ebecd1d9435e1d5b1e | refs/heads/master | 2022-11-07T15:47:36.189057 | 2017-07-22T01:01:37 | 2017-07-22T01:01:43 | 97,426,562 | 1 | 1 | MIT | 2022-10-15T02:45:57 | 2017-07-17T02:21:42 | Python | UTF-8 | Python | false | false | 73,766 | py | # -*- test-case-name: twisted.web.test.test_webclient,twisted.web.test.test_agent -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
HTTP client.
"""
from __future__ import division, absolute_import
import os
import warnings
try:
from urlparse import urlunparse, urljoin, urldefrag
e... | [
"China_Aisa@live.com"
] | China_Aisa@live.com |
99d262fa5ccd06328ab8368b3fc44507adfd9830 | 111b4a8e40afb25fe9c906e89b3d31ccde18447b | /04 - Variabelen/De gestopte klok.py | 75b8511c072d53f4aa614bade996b002b4087d81 | [] | no_license | astilleman/Informatica5 | 722276619b5c2a80e03ad97a6c67bdb25f12bda2 | 9cbd82055c621c25ec372547c179bcf045f6629f | refs/heads/master | 2020-03-28T03:19:12.206052 | 2019-05-16T08:05:54 | 2019-05-16T08:05:54 | 147,637,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | #invoer
uur_vertrek_thuis = int(input('Geef uur vertrek thuis: '))
minuten_vertrek_thuis = int(input('Geef minuten vertrek thuis: '))
uur_aankomst_bij_vriendin = int(input('Geef uur aankomst bij vriendin: '))
minuten_aankomst_bij_vriendin = int(input('Geef minuten aankomst bij vriendin: '))
uur_vertrek_van_vriendin = i... | [
"43027764+astilleman@users.noreply.github.com"
] | 43027764+astilleman@users.noreply.github.com |
2e25dd0e11173270d164c356eea4f6b482181bb0 | 6b182d6fc7ffb421ef1614613ce2aeda20fa5dc7 | /rl4circopt/cirq_converter.py | a9fb8256f6765637143f628d47bbb29f5c638358 | [
"Apache-2.0"
] | permissive | KtechB/google-research | 348768d150ffbb0255795ac1cb1b07561c811db3 | a2d9c1b2555682ef4842bbf41ecfaee3761e75a0 | refs/heads/master | 2020-12-21T18:39:21.280371 | 2020-01-27T02:39:57 | 2020-01-27T02:44:34 | 236,524,702 | 1 | 0 | Apache-2.0 | 2020-01-27T15:38:03 | 2020-01-27T15:38:02 | null | UTF-8 | Python | false | false | 4,434 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
004c2e018a751009f967eec07c3a382994381fa3 | 3024cafafbfc75193105af7f225d3b12eb2aea46 | /DjangoProjects/project21/project21/asgi.py | 4493c94e64c71197d7bdabd4b9b3e0422aa3308d | [] | no_license | jaishankarg24/Django-Rest-Framework | 33266f6825d51abb8a512426baedf59f2ee957c8 | 809ee9208ffbef4202a8f4058a84f5322793af52 | refs/heads/master | 2023-03-02T20:56:38.051060 | 2021-02-12T05:37:48 | 2021-02-12T05:37:48 | 338,233,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for project21 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"jaishankarg24@gmail.com"
] | jaishankarg24@gmail.com |
fbc5b25f5e0fbcfd516caa525b16260a788e142a | 5d58a98697a48894639e2117af1656f35f45eb16 | /classify.py | 146909cbfaeccc10929267e720844066151e6909 | [] | no_license | sahiljajodia01/Galaxy-Classification | 443f266a2cf68960d940bb0b48ec92031d20f2a7 | 5d0cbcd79e3da34800f180d177e864a022a7e39f | refs/heads/master | 2020-03-26T02:25:31.160586 | 2018-08-16T14:02:57 | 2018-08-16T14:02:57 | 144,409,625 | 0 | 1 | null | 2019-10-26T17:24:35 | 2018-08-11T18:34:45 | Python | UTF-8 | Python | false | false | 767 | py | import tensorflow as tf
import sys
image_path = sys.argv[1]
image_data = tf.gfile.FastGFile(image_path, 'rb').read()
label_lines = [line.rstrip() for line in tf.gfile.GFile("tf_files/retrained_labels.txt")]
with tf.gfile.FastGFile("tf_files/retrained_graph.pb", "rb") as f:
graph_def = tf.GraphDef()
graph_def.P... | [
"sahil.jajodia@gmail.com"
] | sahil.jajodia@gmail.com |
db83872b18fb3e6fa9bf775b6b7bd738e1c00555 | f12f299984060186ad8422913ed591cac1fd918d | /graph/count_servers_that_communicate.py | 85ea83d9ba7132538d07286d282861c92fcea856 | [] | no_license | pitikdmitry/leetcode | 775f9163850dd5d6cdb971603c6fd4615c7f89d7 | f82a36be6d8dcf842354d759bab98dd915173fd5 | refs/heads/master | 2023-01-23T23:42:01.568390 | 2020-12-07T09:03:45 | 2020-12-07T09:03:45 | 240,458,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | '''
You are given a map of a server center, represented as a m * n integer matrix grid,
where 1 means that on that cell there is a server and 0 means that it is no server.
Two servers are said to communicate if they are on the same row or on the same column.
Return the number of servers that communicate with any other... | [
"pitik.dmitry@mail.ru"
] | pitik.dmitry@mail.ru |
7d3eb3957a3618ff4474c1476cc87f6c0b6753c6 | 76462e0a338eea3ef56d46a5e4961cb4ca3dfafe | /test.py | cb7053a0e1145bed321fec76dc6ababd7d670800 | [] | no_license | chengyang317/information_pursuit | 7183f3b893027b014bb4a99c91599af15604489f | c0ccbb7c64bac9ba69e7c0326f6146cf2a39c8fa | refs/heads/master | 2021-01-10T13:36:32.436830 | 2016-04-16T06:50:45 | 2016-04-16T06:50:45 | 55,868,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | import os
import numpy as np
caffe_root = '../caffe/' # this file is expected to be in {caffe_root}/examples
import sys
sys.path.insert(0, caffe_root + 'python')
import caffe
def calculate_mean(txt_file, out_path):
crop_dim = (227, 227)
with open(txt_file) as txt_fd:
lines_list = txt_fd.readlines(... | [
"chengyang317@gmail.com"
] | chengyang317@gmail.com |
b44180d326fa9728aebbf715701748983bab301a | 2abefb9b5df4a5fdd782ac43cd1f6e94198fe43a | /B461 Databases/homework3/formatdata.py | 1ef3ab83e3ef2949cba6fcd1faf5d8a96a971111 | [] | no_license | jb1361/Class-files-repo | e63d339fd9c9add23b78571b2258d6c836c329d4 | b29b80a93655348067a5146a6c7d2d5186ba184a | refs/heads/master | 2023-01-30T09:38:45.786561 | 2021-06-14T22:42:04 | 2021-06-14T22:42:04 | 92,340,613 | 0 | 0 | null | 2023-01-06T11:20:52 | 2017-05-24T22:05:32 | Python | UTF-8 | Python | false | false | 1,854 | py | import pandas as pd
import json
import xml
import csv
import xmltodict
inp = str(input())
def open_csv():
jsonfile = open('parsedjsoncsv.json', 'w')
jsonfile.write('{"Tweets": ')
jsonfile.close()
csvf = open(inp, encoding="utf8")
jsonfile = open('parsedjsoncsv.json', 'a')
fields = ('Tweet','ID','QuotedID','R... | [
"justinbutler4@hotmail.com"
] | justinbutler4@hotmail.com |
59b9ade2bf90e8af5c536433d45602e807e86bb9 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /leetcode/longest-increasing-subsequence.py | 68a1a53b3e33d5361b8717a6a29e2b374dd7b243 | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution(object):
def lengthOfLIS(self, nums):
if len(nums) < 1:
return 0
t = [0] * len(nums)
t[0] = 1
for i in range(1, len(nums)):
v = 0
for j in range(i):
if nums[i] <= nums[j]:
continue
... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
f5e19e74de4b57d8177ec959dc4c03a29d9cfe80 | 0a9ff5a17c268e2cf7fbbb41012d33f7920cf881 | /QMODELNEW/Optimize/atlasz_batch_robotsim.py | fa814a54284ef5272506ede09b9ebd3ea2270b92 | [] | no_license | milanjanosov/success_engine | b6a44b454ec06d918a31922a59316e344b3adb15 | 7292577f64225568af2292cc4448bd266c0d2a59 | refs/heads/master | 2021-10-10T12:09:02.216649 | 2019-01-10T11:46:13 | 2019-01-10T11:46:13 | 103,768,651 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,049 | py | """
Run flyingrobots/simulations/robotsim/robotflocksim_main scripts on atlasz
as sbatch scripts, sweeping through parameter ranges.
"""
# external imports
from __future__ import print_function
import os
import sys
import argparse
import datetime
import subprocess
import collections
import shutil
impor... | [
"janosovm@gmail.com"
] | janosovm@gmail.com |
ef39aeb95c406ec174f1d91899b8a5c14daffa7d | fae307fd5271fcf4123617169c502f58fa41cf51 | /rockload/version.py | 13acc672015f3f4c841294ed6dfe6bf0c0965adf | [] | no_license | cobrateam/rock-load | 32a275f819b595befd1b802100b144f32061b19a | 6c4d4e588e51f665c0a4321413dc727a0b54af57 | refs/heads/master | 2021-01-23T03:05:22.987692 | 2012-01-09T16:18:45 | 2012-01-09T16:18:45 | 2,079,684 | 6 | 2 | null | 2018-05-04T03:38:24 | 2011-07-20T18:43:32 | Python | UTF-8 | Python | false | false | 67 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__version__ = (0, 4, 1)
| [
"heynemann@gmail.com"
] | heynemann@gmail.com |
15d7253f2cf0e765c727338295ad829deca970b6 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/urls_20201113170258.py | 877fe5946a5bec48c0855dd3c16fdcc90563e847 | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
]
| [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
7e2d7fc460fe318a780c71767bb908876958ea00 | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/enums/situation_jobs_enum.py | b396ea7c4e8553f13a6e2cc4a35fab1c8994f0c9 | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 75,588 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from sims4communitylib.enums.enumtypes.common_int import Co... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
55646beacfaa792246fb14ecde6c7bf1d4afc6e3 | 1393b088958301a6c2f6766df2864c61365e9d4b | /orchestrator/processor/l2_pipelines/cloud_mask_computation.py | 23f77a0cd292e78d0fad7c13fd4f35dab0362e9b | [
"Apache-2.0"
] | permissive | alexgoussev/maja_gitlab | f6727468cb70e210d3c09453de22fee58ed9d656 | 9688780f8dd8244e60603e1f11385e1fadc90cb4 | refs/heads/develop | 2023-02-24T05:37:38.769452 | 2021-01-21T16:47:54 | 2021-01-21T16:47:54 | 332,269,078 | 0 | 0 | Apache-2.0 | 2021-01-23T18:17:25 | 2021-01-23T17:33:18 | C++ | UTF-8 | Python | false | false | 40,863 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2020 Centre National d'Etudes Spatiales (CNES)
#
# 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
#
# ... | [
"julie.brossard@c-s.fr"
] | julie.brossard@c-s.fr |
5488323da9dcc43e1a7d7efeb4d494c155df037a | 3b3cafd0357a67f1d4b7640e16d50c67d3cf275c | /host/greatfet/peripherals/led.py | 0ed85b8346f0629234ed43d236652cd963e304cf | [
"BSD-3-Clause"
] | permissive | wchill/greatfet | aa82fdbd3a5c4a9d2440f949542ea47768c487a9 | a76e0ccc2794686407840b11093d460a0ba29825 | refs/heads/master | 2020-03-30T04:14:31.002850 | 2018-09-19T04:45:15 | 2018-09-28T02:39:33 | 150,731,978 | 0 | 0 | BSD-3-Clause | 2018-09-28T11:39:18 | 2018-09-28T11:39:18 | null | UTF-8 | Python | false | false | 1,921 | py | #
# This file is part of GreatFET
#
from ..protocol import vendor_requests
from ..peripheral import GreatFETPeripheral
class LED(GreatFETPeripheral):
""" Simple periheral that allows control of an LED through the GreatFET HAL."""
# The LED request codes supported by the GreatFET.
LED_REQUEST_TOGGLE = 0
... | [
"k@ktemkin.com"
] | k@ktemkin.com |
ce6fc5299a3a05141296f93094540620ac7b7456 | 1c492b3f92834bd778839f6f34cd1551de9fdcde | /__init__.py | 5283c431fa62d710a83e1369d657303eea2a8669 | [] | no_license | argeweb/plugin-payment-middle-layer | ecdc20504cd18ba3f3b32aa67d9ba98e9d426a97 | afb143244d42d5e01a225fb01470f59b78477cc0 | refs/heads/master | 2021-01-20T17:12:55.788498 | 2017-08-29T08:57:21 | 2017-08-29T08:57:21 | 90,867,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created with YooLiang Technology (侑良科技).
# Author: Qi-Liang Wen (温啓良)
# Web: http://www.yooliang.com/
# Date: 2017/5/10.
from argeweb import ViewDatastore
from argeweb.core.events import on
from models.payment_type_model import PaymentTypeModel
@on('create_payment')
d... | [
"cwen0708@gmail.com"
] | cwen0708@gmail.com |
5a11b740d6114fc41ea6c68653a27e7cacc5b651 | 94b603a26fd0942181d4a3da2f9f830034c74ce0 | /leetcode/weekly179/3_inform_employees.py | b8c151cc164c59af5d6682a7fd93ead1207fceb7 | [
"Unlicense"
] | permissive | jan25/code_sorted | 55336e10bb9ee74610ce1ba62617db979ddf8e26 | 2a5af4f8c95a66ccca3223a261362a17be05728f | refs/heads/master | 2023-01-25T00:50:56.846461 | 2022-12-21T17:40:30 | 2022-12-21T17:40:30 | 34,155,896 | 3 | 0 | Unlicense | 2019-02-07T23:07:10 | 2015-04-18T06:54:30 | C++ | UTF-8 | Python | false | false | 540 | py | '''
https://leetcode.com/contest/weekly-contest-179/problems/time-needed-to-inform-all-employees/
'''
class Solution:
def numOfMinutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:
maxt = [-1] * n
maxt[headID] = 0
def dfs(c):
if c... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
53072fee65af46ce7f28eca762c1ed14c3fbfca1 | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p114.py | 2b24da6439517a965369798473569b3052a56e05 | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def flatten(self, root):
"""
:type root: TreeNode
:rtype: void Do not return anything, modify root in-place... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
336344a4ce71add77a669f93938abd8b351ecfde | dacf092e82b5cc841554178e5117c38fd0b28827 | /day18_v2/conf/setting.py | 04d2da84b121624328d77a7fb280d129e3b731ed | [] | no_license | RainMoun/python_programming_camp | f9bbee707e7468a7b5d6633c2364f5dd75abc8a4 | f8e06cdd2e6174bd6986d1097cb580a6a3b7201f | refs/heads/master | 2020-04-15T11:27:09.680587 | 2019-04-06T02:21:14 | 2019-04-06T02:21:14 | 164,630,838 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import logging
import os
manager_db = 'C:/Users/Administrator/Desktop/python_programming_camp/day18_v2/db/manager_message.pk'
teacher_db = 'C:/Users/Administrator/Desktop/python_programming_camp/day18_v2/db/teacher_message.pk'
student_db = 'C:/Users/Administrator/Desktop/python_programming_camp/day18_v2/db/student_mes... | [
"775653143@qq.com"
] | 775653143@qq.com |
f6e9aca2fc8616aee3ab9cb63fab22c0f77ab585 | 414b21e4645117e92582fb3ad76026a10c6d00d5 | /Python150Challenges/Random/Challenges 52 - 59/Challenge53.py | d6564b86b72b16307168a090d012afe368bd3cb4 | [] | no_license | srinivasskc/Python-Programming-Learning | 1a8caf1a4fc602ef5b819d6168377fcfe6ba7351 | 4d4523473521b94f76709b204251bd4ef6ab5f1e | refs/heads/master | 2022-11-14T20:10:02.453767 | 2020-07-07T03:58:03 | 2020-07-07T03:58:03 | 272,511,628 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | # 053 Display a random fruit from a list of five fruits.
import random
fruits = random.choice(["Apple","Orange","Grapes","Pineapple","Strawberry"])
print(fruits)
| [
"srinivas.skc30@gmail.com"
] | srinivas.skc30@gmail.com |
41034de98dbf6b88d42a721c8a23bf056c416169 | 325783a2f52acc85490f6191d2f56ee315a1cc7d | /success_project_manager/settings.py | af37c44ad901ccd63d20f018ccbba0a2adb8fce1 | [
"MIT"
] | permissive | DarishkaAMS/Dj_Projects-Success_Project_Manager | 3ef64abf5b7dbac26d5c08dc07bfa261c3f31573 | 5ea78cee729d629a4bc7d1d65d7307dfed6323de | refs/heads/master | 2022-12-17T16:59:05.569736 | 2020-09-20T14:56:53 | 2020-09-20T14:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | """
Django settings for success_project_manager project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""... | [
"d.nikolaienko@yahoo.co.uk"
] | d.nikolaienko@yahoo.co.uk |
1ee956601be4c9d84823bd192e5fa73403d2ce12 | b5d968f0436f29a92be7fbaf9b8ee19f698f3b20 | /tree/bottom_view_of_tree.py | 119a41fb25021b628c733c64581681c33548a794 | [] | no_license | asperaa/programming_problems | 35a2504c6f114812c1cb938f7df1486e84a66636 | d055d93dfb9f7945a4250663a58d0dd0231f2353 | refs/heads/master | 2020-06-02T02:20:09.793839 | 2019-12-05T10:14:42 | 2019-12-05T10:14:42 | 191,003,597 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """Bottom view of the tree"""
from collections import deque
class TreeNode:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class BottomView:
def __init__(self):
self.hd_dict = {}
self.maxx = 0
self.minn = 0
self.node_hd = {}
... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
3fc1c3a137e2f89ffc1c11d4e2bae709db4ed3c3 | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/494.target-sum.py | f4268680a9d4b6a560b45e134bc4c7b1bf32a1aa | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 90 | py | class Solution:
def findTargetSumWays(self, nums: List[int], S: int) -> int:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
b4551d08221a8ae4bc93f7a7561120e35dc2f8e8 | 523d6d93c8a12e384c5b2794289f004e40451423 | /bdbag/__init__.py | ac9d1371903fcee96c9494cdddd62b1149bf5719 | [] | no_license | kylechard/bdbag | a5fc9af3c1caaadb57f3df860de281a1c996f9ea | 874946ab6f560f4f0184a5fcf8b3341bae6d1d22 | refs/heads/master | 2021-01-17T08:01:57.727158 | 2016-05-10T03:12:48 | 2016-05-10T03:12:48 | 58,425,987 | 0 | 0 | null | 2016-05-10T03:10:25 | 2016-05-10T03:10:25 | null | UTF-8 | Python | false | false | 667 | py | import os
import getpass
DEFAULT_CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.bdbag')
DEFAULT_CONFIG_FILE = os.path.join(DEFAULT_CONFIG_PATH, 'bdbag.json')
DEFAULT_CONFIG = {
'bag_config':
{
'bag_algorithms': ['md5', 'sha256'],
'bag_archiver': 'zip',
'bag_processes': 1,
... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
0de36f90c3bc010c741c49829338869e15733710 | aab7639fdca115185675c3bceb13fb3cb1d58e62 | /Tree/144. Binary Tree Preorder Traversal (medium).py | 363237d179087d13a2f263dfd13db8153dffa526 | [] | no_license | xilixjd/leetcode | 0cfc9c32e790e88084e484c369d450fb4619c52c | 71a02a2c6bc12e86119502c9c4a4b2047b9f3966 | refs/heads/master | 2021-01-19T15:46:26.554583 | 2018-06-02T05:22:31 | 2018-06-02T05:22:31 | 88,227,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # -*- coding:utf-8 -*-
'''
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
\
2
/
3
return [1,2,3].
Note: Recursive solution is trivial, could you do it iteratively?
'''
# Definition for a binary tree node.
class TreeNode(obje... | [
"349729220@qq.com"
] | 349729220@qq.com |
af24d6ae73c3aab889f74db7bb8140eba2534c1b | f07a42f652f46106dee4749277d41c302e2b7406 | /Test Set/Open Source Projects/flask/03a2996bb89a0f35f82beb389788539ceb58ba46-40-bug.py | f1e5eba72efcb9c778c3ed4fd0c67ac32d083729 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,849 | py | # -*- coding: utf-8 -*-
"""
tests.test_cli
~~~~~~~~~~~~~~
:copyright: (c) 2016 by the Flask Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
#
# This file was part of Flask-CLI and was modified under the terms its license,
# the Revised BSD License.
# Copyright (C) 2... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
27fe4fa915185e9a264cc810167eb8dedfa98dfe | 5fb7d49fbeada4a44ebe2ae81ef98343af625868 | /problem_28_alternative.py | eb9e1ce3c9b9cb7b1b74aedd8f4faf2bda19766e | [] | no_license | qq854051086/46-Simple-Python-Exercises-Solutions | 575fcfd20a131636d4c3d215f43ca765e9ccf172 | fd1c83e2247322a32aeb89f959043fb42f47a199 | refs/heads/master | 2020-11-28T18:20:29.953521 | 2019-09-10T04:13:46 | 2019-09-10T04:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | '''
Write a function find_longest_word()that takes a list of
words and returns the length of the longest one.
Use only higher order functions
'''
def find_longest_word(list_a):
return max(list(map(lambda x:len(x),list_a)))
ab = ['sadswesdf','cat','meaow','to','asdeqw']
print(find_longest_word(ab))
| [
"shovon.sylhet@gmail.com"
] | shovon.sylhet@gmail.com |
ae2dc1722aa7c1d62ad9811c785588b2d39e0f7d | 6f463f598c246faf7127b2fef6c594024324eee3 | /pyaudio3/setup.py | 0ec7c5a1498889659fb8e397c2b4401e376054b7 | [
"CC0-1.0",
"MIT"
] | permissive | totalgood/python-manylinux-demo-pyaudio | e264d96259a4d403759dc88dd87d82bc39ef9bea | a3f347a299d7ad9bc706bde8c693dd04ad588eac | refs/heads/master | 2021-01-24T03:25:15.998053 | 2018-02-26T03:40:25 | 2018-02-26T03:40:25 | 122,888,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | """
PyAudio v0.2.11: Python Bindings for PortAudio.
Copyright (c) 2006 Hubert Pham
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to ... | [
"github@totalgood.com"
] | github@totalgood.com |
e6160fb7aede7f61c4a1103da50cf651a5c59bff | 9a8f49df431717c5db28a704fd50909de3928985 | /test/distributed/fsdp/test_fsdp.py | b9e3426c373c511bac7fee882adf57a95b1c940e | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | yadhukartha/pytorch | 770954c976af362b2959ae5db8224193b984319b | d1a5612a3ea501b83a80b9ecfd6b4dd5eb125181 | refs/heads/master | 2023-08-24T09:32:01.065274 | 2021-10-22T08:32:59 | 2021-10-22T08:34:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,776 | py | # Owner(s): ["oncall: distributed"]
import functools
import sys
import torch
import torch.distributed as dist
import torch.nn as nn
from torch.distributed._fsdp import FullyShardedDataParallel
from torch.distributed._fsdp.fully_sharded_data_parallel import TrainingState_
from torch.testing._internal.common_distribute... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7ddfd877eb969811f98360c8ab0f34058652c80d | 73c8db3c12be5187b5d8944d4f1c17cb75a8a3c0 | /01_Beginner/bi_service_server_python/src/add_two_ints_server.py | e235189f0e4e188752bfbf28a5df23d06a4b68ff | [] | no_license | wildenali/ROS_Kinetic_Basics | e712885b560aece7c9bfc87d33653bd956f590f5 | 4c2d1d3411f935d627efffe19951abf03c3536dd | refs/heads/master | 2020-04-28T16:18:51.973808 | 2019-06-23T04:22:16 | 2019-06-23T04:22:16 | 175,405,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
import rospy
# from bi_service_server_python.srv import AddTwoInts
from rospy_tutorials.srv import AddTwoInts # ini adalah contoh service bawaan si ros
def handle_add_two_ints(req):
result = req.a + req.b
rospy.loginfo("Penjumlahan dari "+ str(req.a) + " dan " + str(req.... | [
"wildeeeeen@gmail.com"
] | wildeeeeen@gmail.com |
9eeef58c6c3a5fcd72c9dc3e8eee40322bc2f5e5 | 7cd6950ab3034cb0cf403ee1b8410bf475360a8d | /venv/bin/rdf2dot | d0e4292952c87c77cf314f18869dc24fe765506f | [] | no_license | mr-c/george_murray | ef6d5f77a4f4c0b64cbc64534ce23d7546a3cee0 | 612c68c6b27ed2d8097f1309820ccdbb05530176 | refs/heads/master | 2022-09-20T11:12:58.582547 | 2019-08-15T19:32:34 | 2019-08-15T19:32:34 | 268,844,811 | 0 | 0 | null | 2020-06-02T15:55:27 | 2020-06-02T15:55:26 | null | UTF-8 | Python | false | false | 268 | #!/Users/George1/Documents/GitHub/george_murray/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rdflib.tools.rdf2dot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"george.c.murray@maine.edu"
] | george.c.murray@maine.edu | |
cf9ff1a6c2f26571086f1fdbde36659568355a8b | 7cd988bfc55f9ff71e1c490a5a31d0c2b189a789 | /env/bin/pip2 | b40165fe6b85ed74cc1fbf6f1f300bcb915cd3ea | [] | no_license | lacoski/pasteme | c96dbaab92de13ca276733d5d2bd24e086aa0df4 | 4d4e7a04aee9a8e54797b06ea726699240eae8b7 | refs/heads/master | 2020-03-07T11:03:52.879087 | 2018-04-10T07:25:06 | 2018-04-10T07:25:06 | 127,446,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | #!/home/lacoski/Project/pastebin/pastebin-env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"123xuzu@gmail.com"
] | 123xuzu@gmail.com | |
b5411a32e1e1d8b15803ef3c570471167eb59cf6 | 41b77a1a17244a727aa6acd95e91e8c674986049 | /leagueOfDrivers_BE/wx_league/migrations/0071_auto_20180902_1140.py | e395cf7a8c585676bf64a05edbc3359ba01bcfe8 | [] | no_license | DataSecretbase/Renjiu | 24424ca1742a3987a395bc5da54afa1e7f34fc84 | aa90d58d92d0c1936b0ee23e4f9c970135b480d5 | refs/heads/master | 2022-12-08T05:28:09.192623 | 2019-03-10T09:44:19 | 2019-03-10T09:44:19 | 140,274,553 | 1 | 2 | null | 2022-12-08T02:21:56 | 2018-07-09T11:15:07 | Python | UTF-8 | Python | false | false | 1,509 | py | # Generated by Django 2.1 on 2018-09-02 11:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wx_league', '0070_auto_20180901_1952'),
]
operations = [
migrations.AddField(
model_name='order',... | [
"2144799613@qq.com"
] | 2144799613@qq.com |
dc224cc7abc0ad0e72896f960a41a0a063cf1cac | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startCirq16.py | 275ba67e4c4756b2a353530a6dec6e751ec234b8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=2
# total number=6
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
27df7838fa6eaf545421dacdccf2236d0eb5468f | 4be96ec1670297ae71efa6c5c4a830255f893743 | /Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/adodbapi/test/adodbapitestconfig.py | e1a36e6676174520d79ca9f3a378e825816c87a4 | [
"BSD-3-Clause",
"MIT",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | zooba/PTVS | 7dbcc0165ded98d077040a6b367fd71a1eb1e6bd | 0c213e901168fee368a32939256174077a8d4dfa | refs/heads/master | 2021-05-23T03:58:11.007138 | 2021-01-26T00:20:40 | 2021-01-26T00:20:40 | 42,481,352 | 1 | 0 | Apache-2.0 | 2018-11-19T19:30:24 | 2015-09-14T22:47:51 | C# | UTF-8 | Python | false | false | 6,597 | py | # Configure this to _YOUR_ environment in order to run the testcases.
"testADOdbapiConfig.py v 2.6.0.A00"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# # TESTERS:
# #
# # You will need to make numerous modifications to this file
# # to adapt it to your own testing environment.
... | [
"huvalo@microsoft.com"
] | huvalo@microsoft.com |
d1d0251aad2d6029d018d7fb1d3b6f58f7af942b | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/view/lobby/server_events/QuestsTab.py | 945792f17302730516208263f4b78c5c64f90281 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 904 | py | # 2016.11.19 19:50:55 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/server_events/QuestsTab.py
from gui.Scaleform.daapi.view.meta.QuestsTabMeta import QuestsTabMeta
from gui.server_events import caches
class QuestsTab(QuestsTabMeta):
def __init__(self):
sup... | [
"info@webium.sk"
] | info@webium.sk |
80d100d75c783f3e7bd19971bb60d6f3b8207fd1 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /91/91.decode-ways.234347632.Accepted.leetcode.py | 7239e92faa9e6c3e82c424c82fe6f04ef63d190a | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | class Solution:
def numDecodings(self, s):
n = len(s)
dp = [0] * (n + 1)
dp[0] = 1
if 0 < int(s[0]) <= 26:
dp[1] = 1
else:
dp[1] = 0
for i in range(1, n):
if 0 < int(s[i]) <= 26:
dp[i + 1] += dp[i]
if 0 <... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
064707be2a563c8a66955c510ad7b45b8d0b877a | 04c21e01c7dd002d0d66f26f17294bbe25ab30c1 | /src/core/apps.py | 04a6b9d5efbe56928edddc35ff4c49e9f0adbba2 | [] | no_license | unbrokenguy/Q-n-A-rest-api | 29d1a7614d761bf68f38bbbbbd731c3692afccf7 | dd483993e304d6660c8c8f7518bf7414efd8ec28 | refs/heads/master | 2023-06-03T20:19:52.606677 | 2021-06-18T09:35:27 | 2021-06-18T09:35:27 | 376,749,787 | 0 | 0 | null | 2021-06-18T09:35:27 | 2021-06-14T08:08:44 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class AuthenticationConfig(AppConfig):
name = "core"
| [
"khazievbulatphanzilovich@gmail.com"
] | khazievbulatphanzilovich@gmail.com |
7f9e8a93dd6829b43c31837ef5f9b201978979da | 8fc7ddc21af003f9cbe77f1461f3d10ae897d125 | /Python自動処理sample/chapter08/janome_parse.py | 5c65e7159253026705c2749692eb8e4a7332707d | [] | no_license | shige-horiuchi/auto | 34d538a0c542f9d56f5c368075cca0068baccbfd | 31087f49b09598eab56145cddf397ce4828571d0 | refs/heads/master | 2020-06-29T19:10:41.396690 | 2019-11-08T06:59:14 | 2019-11-08T06:59:14 | 198,361,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from janome.tokenizer import Tokenizer
t = Tokenizer()
text = 'すもももももももものうち'
for token in t.tokenize(text):
print(token)
| [
"shige33717@gmail.com"
] | shige33717@gmail.com |
d5a2f6439c7e6c62021a22e9a8dfc1239f1668fe | da52c51cbbd97ee30472eeea69d36ab037d68fe5 | /store/online_store/migrations/0007_auto_20210429_1844.py | 43f14ca9b56b4c84fadc14f134ee3084b15320dc | [] | no_license | A-miin/hw_48 | 29ed69a098973661e3e18d32fda59cc7869d138b | 56e4f3e69937ffaf0ca376ecddb822d3da4b8c53 | refs/heads/master | 2023-05-06T10:59:17.342437 | 2021-05-27T12:57:53 | 2021-05-27T12:57:53 | 345,091,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # Generated by Django 3.1.7 on 2021-04-29 18:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('online_store', '0006_aut... | [
"zulaykaisaeva@gmail.com"
] | zulaykaisaeva@gmail.com |
7f238fe92b9dbbf74b8bf85c879ade8c231c6aff | 98e79aff0c504ae703df1b4b6a621caedb5be4de | /v1.1/client/tcp_client.py | 708dbcb4ff652a6515f39c70b5481ae830da6f74 | [] | no_license | lotaku/board-game | 26b97b3f6cb241e55852b6d60da3073a9347e4d3 | d90fe5ffabef0cdfa0538be14f69afdc0ca0badc | refs/heads/master | 2020-06-03T05:00:59.617051 | 2014-05-18T14:44:00 | 2014-05-18T14:44:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | #!/usr/bin/env python
# encoding: utf-8
from select import select
from socket import socket
from socket import AF_INET, SOCK_STREAM
from recv_packet import RecvPacket
from opccode import handlePacket
class TcpClient:
def __init__(self):
self.connectSocket=socket(AF_INET, SOCK_STREAM)
self.sendDat... | [
"317399510@qq.com"
] | 317399510@qq.com |
d38b079f728afebd5b37971fc7a3cc2caf7e7ca2 | 153faf12b378a53208e8ecd9b8ab2aa0e8803df3 | /preprocess_recovered_hormuud_messages.py | b225e753ad8acf630f5ce1140df9a63dd91f1e43 | [] | no_license | AfricasVoices/Project-EU-PCVE | b37019839c0936f3164fad171604efa3dd9e705b | 5f1f8b3587802f19f3881fc1f2ff4b83c2ba0a5c | refs/heads/main | 2023-08-31T14:33:56.620812 | 2021-10-20T14:28:18 | 2021-10-20T14:28:18 | 394,345,045 | 0 | 0 | null | 2021-10-18T12:26:46 | 2021-08-09T15:31:28 | Python | UTF-8 | Python | false | false | 15,349 | py | import argparse
import csv
import pickle
import re
from datetime import datetime, timedelta
from decimal import Decimal
import pytz
from core_data_modules.logging import Logger
from dateutil.parser import isoparse
from rapid_pro_tools.rapid_pro_client import RapidProClient
from storage.google_cloud import google_cloud... | [
"as2388@cam.ac.uk"
] | as2388@cam.ac.uk |
e24147247fc053f8a7b844f840adbeb6c81fa259 | 237cc38de0cf7a6e3661ed552ae771bd972d7438 | /base/obj7.py | 9c80b1fb7ecb50c88365ee881d96c268f470f7d0 | [] | no_license | chydream/python | af5ad8a98c78de71e255f7b776f936c4b89c616e | e5bfef53a7770d4f323bd2877f93c8166c563695 | refs/heads/master | 2020-05-07T17:00:33.558178 | 2020-05-05T13:45:19 | 2020-05-05T13:45:19 | 180,708,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # 1.异常处理 异常类 Exception
def test_divide():
try:
5/0
except:
print("报错了,除数不能为0")
def test_div(num1,num2):
return num1 / num2
# 2.自定义异常
class ApiException(Exception):
err_code = ''
err_msg = ''
def __init__(self, err_code = None,err_msg = None):
self.err_code = self.err_co... | [
"yong.chen@doone.com.cn"
] | yong.chen@doone.com.cn |
b03246541ceeba8bf9dc568c3c57610a7d35f600 | bc332a269280b5bd4e1bee65ef397d58aef15884 | /bites/account.py | 18d4c05f27e61b7e10ea163aaecc9746b3cc69c0 | [] | no_license | romu42/practice | 4edfe96421bf580ad17947763a5976b8ca56b2c7 | 08b6b3cc4b1f6cbeabdf09e73a9c55c09c6f8ff1 | refs/heads/master | 2020-09-05T12:14:39.894539 | 2020-01-27T21:39:30 | 2020-01-27T21:39:30 | 220,101,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/usr/bin/env python3
# by rog
class Account:
def __init__(self, name, start_balance=0):
self.name = name
self.start_balance = start_balance
self._transactions = []
@property
def balance(self):
return self.start_balance + sum(self._transactions)
# add dunder methods ... | [
"roger.murray@iis.se"
] | roger.murray@iis.se |
a24dfe14931251116b4294f7b25b61a94229c333 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/PostenMapping/Model/Post060379901.py | aadd23a35487148bbadd3e8cf0630f668b673929 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 1,052 | py | # coding=utf-8
from OTLMOW.PostenMapping.StandaardPost import StandaardPost
from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping
# Generated with PostenCreator. To modify: extend, do not edit
class Post060379901(StandaardPost):
def __init__(self):
super().__init__(
nummer... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
2f198c0fae75dbdd5b6821f92c5b94954c6b14c9 | d2a4f3d8d3e95adf869ad0b8e1a3784f3a1254a6 | /DMVProject/DMVProject/urls.py | e2cfe04ad50b15c70038ba0ebda999b37a52c17e | [
"Apache-2.0"
] | permissive | cs-fullstack-2019-fall/django_imageUploader | 3153e8a7ba1fd5d84562b4fd34fbc33c714f3bf4 | 9863f4ac3291bd425c75065dc307d3b80ff4cae5 | refs/heads/master | 2020-08-10T06:03:55.524534 | 2019-10-10T20:39:52 | 2019-10-10T20:39:52 | 214,277,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """DMVProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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... | [
"kenn+git@code-crew.org"
] | kenn+git@code-crew.org |
3e4cd6fb9fd110d20cd453edb8077097edd993fd | 22ffa2a2df4218c12d6324fe602ec20617445dc1 | /draw/nn/single_layer/generator.py | 0fc2f7c8b9f97433f2b15ab3d12432d07ffd7fed | [] | no_license | musyoku/convolutional-draw | 367f0269f2df69ac6480d1de7edf2bdf80259ef0 | 3f384feb7b0d1a2138bd758713ed2745c216df3c | refs/heads/master | 2020-03-21T08:55:18.630043 | 2018-10-09T05:19:17 | 2018-10-09T05:19:17 | 138,373,875 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,423 | py | import math
import chainer
import chainer.functions as cf
import chainer.links as nn
import cupy
from chainer.backends import cuda
from chainer.initializers import HeNormal
class LSTMCore(chainer.Chain):
def __init__(self, chz_channels, batchnorm_enabled, batchnorm_steps):
super().__init__()
with... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
17385bde8e8405a61525c7f05836d022b1745cbd | 02b0a37e2b3881e80842d3a638be3c20d70b7392 | /lesson_07/logging_mod.py | 6b701b6b8bd0bb0a3c711706a529d88ab5138cdf | [] | no_license | mr-Robot-777/Python_architecture | e3aec17250a31aec4bd45712471c16359ed3f765 | 5a5dfd6edfd1ca5a4bbb9ffac6d84e54cbeaf009 | refs/heads/master | 2023-04-26T20:58:07.575918 | 2021-05-26T06:31:47 | 2021-05-26T06:31:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | from reuse_patterns.singletones import SingletonByName
import time
# Заметка, можно применить стратегию если добавить стратегию логирования
class Logger(metaclass=SingletonByName):
def __init__(self, name):
self.name = name
def log(self, text):
print('log--->', text)
# декоратор
def debug(... | [
"ershgun@mail.ru"
] | ershgun@mail.ru |
d7d7f19059ff94dd7697cbdcc3fc24ed9f5fcefb | cb2196987bccb39fd75366955b4eb364ffbf7a39 | /atcoder/ABC/057/C.py | f8c6258d76c7c79fbf49bbdd43db13f74efd5700 | [] | no_license | whisper0077/programming-contests | c21332faf54fcef6eb955e9f5837917e10572cf9 | 6e6220ed8c4f51092ea0bb7690ea0fba3e26bec7 | refs/heads/master | 2023-04-27T13:00:37.968467 | 2023-04-15T16:47:48 | 2023-04-15T16:47:48 | 187,431,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import math
N = int(input())
ans = N
for i in range(1, int(math.sqrt(N))+1):
if N % i == 0:
a, b = i, N//i
c = max(a, b)
if c < ans:
ans = c
print(len(str(ans)))
| [
"tubosaki.shun@gmail.com"
] | tubosaki.shun@gmail.com |
8e23a595f660379bb6679eeaa21e410123503d1e | 03f1519986ee2b553a7e07ce3193e9d5eae6abde | /saklient/cloud/errors/accountnotfoundexception.py | 91c1c69462043c27277cbb469969131ce2ffe959 | [
"MIT"
] | permissive | sakura-internet/saklient.python | 4343cdedd24532704d7d4b7dfa0745c50fd6f3be | 96174e0adbd5006c9b9519ca4d5924cc492f4262 | refs/heads/master | 2021-01-01T05:06:06.130497 | 2020-12-16T08:10:03 | 2020-12-16T08:10:03 | 23,689,552 | 8 | 3 | null | 2015-08-20T04:10:24 | 2014-09-05T03:53:44 | Python | UTF-8 | Python | false | false | 791 | py | # -*- coding:utf-8 -*-
# This code is automatically transpiled by Saklient Translator
import six
from ...errors.httpbadrequestexception import HttpBadRequestException
import saklient
str = six.text_type
# module saklient.cloud.errors.accountnotfoundexception
class AccountNotFoundException(HttpBadRequestException):
... | [
"townewgokgok@gmail.com"
] | townewgokgok@gmail.com |
07e18ec09f20dace57d8d43903aaba26f06f4cf4 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/objects/slot_elements.py | 530595144721151c90ee10cc35dda3a5173217c9 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,135 | py | from event_testing.tests import TunableTestSet
from interactions import ParticipantType
from interactions.utils.interaction_elements import XevtTriggeredElement
from objects.gardening.gardening_tuning import GardeningTuning
from objects.slot_strategy import SlotStrategyVariant
from sims4.tuning.tunable import HasTunabl... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
008a8bbf1a3de400dcc891b387c5fc257b1ab0d0 | 7a2ad6c274add0f88cab8f6f89de551ff86597c9 | /AOC2020/days/day12/Day12Puzzle2.py | 9ca0ddbba3bbb95881051e83734da6a9f4587a7e | [] | no_license | Akivashi/AOC | 8b66cecc9c6cf32c318d5b605f7f9ee952aad373 | cbd3a766db1a4b6560c4adcf978ec79b30707032 | refs/heads/master | 2023-01-29T17:57:39.704089 | 2020-12-08T18:41:15 | 2020-12-09T18:55:10 | 318,249,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import argparse
class Day12Puzzle2(object):
def __init__(self):
self.day = 12
self.puzzle = 2
def solution(self, inputfile):
with open(inputfile,"r") as file:
lines = file.readlines()
for line in lines:
print(line)
return 2
def main():
ap = argparse.ArgumentParser()
ap.add_arg... | [
"rene@infi.nl"
] | rene@infi.nl |
3ab130ab52097b5a1d36e3e88cac8bd5cfd0c76b | 129e65b23a172ea686f220868c923eb4b08493c7 | /python/data_structures/heap/heap.py | 4fa1fb5032298a30573cf82a0329342528b59413 | [] | no_license | urstkj/Python | 8dcf434858f9eb171204e064237bb10d76fe7f16 | 5a41df7c57c1975e0d335f59b528e28ba63cab85 | refs/heads/master | 2023-01-01T14:15:42.833144 | 2020-10-12T15:00:55 | 2020-10-12T15:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | #!/usr/local/bin/python
#-*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
import random
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
class Heap:
def __init__(self):
self.h = []
self.currsize = 0
def left... | [
"ricol@opensimsim.com"
] | ricol@opensimsim.com |
13542997d51570e643c520ce4976c7f76664fc6c | 97e6e2af5c4767b53d16bc3e50b5cd5f98e13150 | /venv/lib/python3.6/site-packages/phonenumbers/__init__.py | 3c713a5ff485e1be52fc3b0b0c66a832fe0e044c | [] | no_license | Sarathsathyan/Hospital-Management | 9f8ac2533ba35088cc130d304f96baa9ffecccef | 8166de74333ff6e5ed9583018a72719ae4ddb67b | refs/heads/master | 2022-09-06T00:48:11.764272 | 2020-05-25T14:32:58 | 2020-05-25T14:32:58 | 266,417,262 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,802 | py | """Python phone number parsing and formatting library
Examples of use:
>>> import phonenumbers
>>> from phonenumbers.util import prnt # equivalent to Py3k print()
>>> x = phonenumbers.parse("+442083661177", None)
>>> prnt(x)
Country Code: 44 National Number: 2083661177
>>> type(x)
<class 'phonenumbers.phonenumber.Ph... | [
"sarathsathyan98@gmail.com"
] | sarathsathyan98@gmail.com |
0b7dd6eb78c7a5851583003956820f544ff11ee9 | 27b599eabf8f5e8088e30c0d2baa6682f1661be4 | /tensorflow_probability/python/mcmc/nuts_test.py | adabeb3925151c39c74d35a8a837ae6d16f2b56c | [
"Apache-2.0"
] | permissive | adriang133/probability | b6ecf28f737c44f19df3a4893e6d1cf0351bc4a0 | edfc4585f38017153fe7bf1a7287fcdd237912c4 | refs/heads/master | 2022-12-12T05:02:04.247859 | 2020-09-16T21:06:03 | 2020-09-16T21:07:27 | 296,163,707 | 0 | 0 | Apache-2.0 | 2020-09-16T22:47:07 | 2020-09-16T22:47:06 | null | UTF-8 | Python | false | false | 21,628 | py | # Copyright 2018 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
647f4ea163e0768784ade751359579ce68071880 | 603d37a05bada0fae1d468cc36d80d6b9d10ac09 | /randlov1998/balance_qlinfa_sep_agent.py | fc789fd691b575eb9f4a5a1e30c32a5f851b85b4 | [
"MIT"
] | permissive | eejd/agent-bicycle | 8b8b5162177e21f27889ca0b89348000c1f724d8 | 1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6 | refs/heads/master | 2020-12-31T06:23:01.487407 | 2013-12-11T04:48:16 | 2013-12-11T04:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | """Using the agent found in the xor example, rather than in linearfa.py.
"""
from pybrain.rl.learners.valuebased.linearfa import Q_LinFA
from pybrain.rl.experiments import EpisodicExperiment
from environment import Environment
from tasks import LinearFATileCoding3456BalanceTask
from training import LinearFATraining
f... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.