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
f2fddef03eb7aa0db6fad892205d42abb4d2a3e3
53e0e6b3bd5130aca5a129b3db4c1b6c401a9114
/NewFile/Manage_OutFile/build/lib/telegram/ext/choseninlineresulthandler.py
00c07c9254fb9a5f6f929f33799d4250ec0bed0a
[]
no_license
GeonwooVincentKim/Search_Artist_Locations
90e41344209b51e4bef585f46ced203540036673
5a31502dfd0c03767800d7fda49a8c5253f7d74a
refs/heads/master
2022-04-14T20:40:19.266617
2020-04-11T14:28:40
2020-04-11T14:28:40
202,111,040
0
0
null
null
null
null
UTF-8
Python
false
false
4,430
py
#!/usr/bin/env python # # A library that provides a Python interface to the Telegram Bot API # Copyright (C) 2015-2018 # Leandro Toledo de Souza <devs@python-telegram-bot.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser Public License as publish...
[ "kdsnop@gmail.com" ]
kdsnop@gmail.com
73898d0990e1e7730652535e387ff28290c7fe62
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2700486_0/Python/ZILIANG/B.py
52e786f2b53c392b7f3348fd16eda6e287ceeab1
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,650
py
from Queue import Queue, Empty from threading import Thread from collections import defaultdict def read_array(convertor=None): ret = raw_input().split() if convertor: ret = map(convertor, ret) return ret work_queue = Queue() result_queue = [] class Work: def __init__(self, id): self.id = id ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
8ca242946e2f3ac27eec257913cc9190a68bd167
383283b9fdb21435ac61c45ebdc7be8cdf352ff6
/scrapper_with_Flask/main.py
67d328b380b8819ad4fcd74d1eced1bfa96c036a
[]
no_license
donhwi94/NomadCoders_WebScrapper_with_Python
ec64e74a685b2e1dd2c2d98964a63b31e86de1b5
6c96a59b653932851f412a64e369af1a89e6ec89
refs/heads/main
2023-04-04T19:58:10.810687
2021-04-21T06:17:41
2021-04-21T06:17:41
349,979,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,637
py
from flask import Flask, render_template, request, redirect, send_file from so import get_jobs as so_get_jobs from id import get_jobs as id_get_jobs from exporter import save_to_file app = Flask("SuperScrapper") # fake DB 만들기 # 라우트의 바깥에 있어야 한다 # DB에 저장해놓으면 사용자가 같은 단어를 검색했을때, 스크래퍼를 다시 돌릴 필요없이 DB에 있는 데이터를 보여주면 된다 db ...
[ "ehsgnl123@naver.com" ]
ehsgnl123@naver.com
c9cbb260f6b5fc5ebe3c121acab8f0440e9404e9
aaa9733e139bf1b544da62ea7414222273e2c273
/eptools/badges/printer.py
513d29347df742763ccd117e588b6709ce85cc3b
[ "MIT" ]
permissive
alanderex/ep-tools
3a5948c52bb7f6e0acc90cb0f285d226de4ec9a2
a66df41d369ee92949fad4f2202f13ce77a2f426
refs/heads/master
2020-04-05T18:58:52.688600
2016-03-03T15:37:31
2016-03-03T15:37:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,781
py
# coding: utf-8 """ Helper functions to add content and setup one badge file. """ import svgutils.transform as sg from docstamp.svg_utils import merge_svg_files, replace_chars_for_svg_code from docstamp.pdf_utils import merge_pdfs from docstamp.vcard import create_vcard3_str from .utils import split_in_tw...
[ "alexsavio@gmail.com" ]
alexsavio@gmail.com
2415ad8292f993fb5a91e4d28b533de1f7018f6c
9405aa570ede31a9b11ce07c0da69a2c73ab0570
/aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/DescribeClusterServiceConfigForAdminRequest.py
112c6b16172490c7b78f4493eb1d337015baf37d
[ "Apache-2.0" ]
permissive
liumihust/aliyun-openapi-python-sdk
7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b
c7b5dd4befae4b9c59181654289f9272531207ef
refs/heads/master
2020-09-25T12:10:14.245354
2019-12-04T14:43:27
2019-12-04T14:43:27
226,002,339
1
0
NOASSERTION
2019-12-05T02:50:35
2019-12-05T02:50:34
null
UTF-8
Python
false
false
2,706
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may ...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
f87e55469c4c8888fca419808cf4a23996b17eff
bb767bfc9db2b0ab7f24d3561b168a829c4eb0bc
/1st_Year/1st_Semestre/Fpro/Python/saved files/Triangles.py
a41320b1848b62c89111d2f68339084e5694fe29
[]
no_license
Hugomguima/FEUP
7e6e0faf5408d698a34c3b5aed977b20aa76c067
f26887e2b8e92e41ae5050515cd0b3cdf94d6476
refs/heads/master
2023-06-09T05:21:38.897094
2021-06-29T17:00:01
2021-06-29T17:00:01
272,567,282
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
n1 = int(input('Introduce the first side of the triangle: ')) n2 = int(input('Introduce the second side of the triangle: ')) n3 = int(input('Introduce the third side of the triangle: ')) result = "" if n1 <= 0 or n2 <= 0 or n3 <= 0: result = "The numbers must be positive!!" return result if (n1 + n2 <= n3) or (...
[ "50011557+Hugomguima@users.noreply.github.com" ]
50011557+Hugomguima@users.noreply.github.com
3415fc9d369bc1720d7baa4d6bd182656441ebf0
25476f58ab74593902c0db71dd8e560dafa5442a
/tools/platform-tools/systrace/catapult/common/py_utils/py_utils/tempfile_ext.py
ba68c52b9f02fabfd62c12b375e672efe5fa2a46
[ "MIT", "ISC", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause", "BSD-3-Clause", "NCSA", "LicenseRef-scancode-unicode", "LGPL-2.1-only", "OpenSSL", "blessing", "NICTA-1.0", "LicenseRef-scancode-protobuf", "GPL-2.0-or-later", "LicenseRef-scancode-openssl"...
permissive
CanciuCostin/android-spyware
859771d8ba17b434f3f330b08d6b28f9b26a5068
be9c2989a76214462b9fe5869c79ffbe86151f13
refs/heads/master
2023-04-11T11:34:01.983825
2023-03-26T12:25:01
2023-03-26T12:25:01
253,235,389
360
104
MIT
2023-03-03T12:59:41
2020-04-05T12:58:20
HTML
UTF-8
Python
false
false
2,251
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import contextlib import os import shutil import tempfile @contextlib.contextmanager def NamedTemporaryDirectory(suffix='', prefix='tmp', dir=None): """A...
[ "costin.canciu@ibm.com" ]
costin.canciu@ibm.com
3c9a6212f5a94b7f6caca6a63ed4c556c9c5ca80
d57b51ec207002e333b8655a8f5832ed143aa28c
/.history/1/PyGame/game_20200606103856.py
49ed990c51c945ec3bde0a143f84fc35ea1ac77a
[]
no_license
yevheniir/python_course_2020
b42766c4278a08b8b79fec77e036a1b987accf51
a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b
refs/heads/master
2022-11-15T07:13:24.193173
2020-07-11T15:43:26
2020-07-11T15:43:26
278,890,802
0
1
null
null
null
null
UTF-8
Python
false
false
7,341
py
# 1 - Import library import pygame from pygame.locals import * import math import random import os import json # 2 - Initialize the game pygame.init() width, height = 640, 480 screen=pygame.display.set_mode((width, height)) keys = [False, False, False, False] playerpos=[100,100] acc=[0,0] arrows=[] badtimer=100 badtim...
[ "yevheniira@intelink-ua.com" ]
yevheniira@intelink-ua.com
3b2fc4f9913d4a5855093c0002284657f1b3ef95
933fe062db72baad7b9349dea28ad6990f048f4a
/datapackage_pipelines_budgetkey/pipelines/budget/municipal/datacity-budget-fetcher.py
889c73903da05b155815a14bbec6ee9ec36a2a0d
[]
no_license
odedsh/budgetkey-data-pipelines
6b0e37d47b52cb7d67628abae1e24b59fc7ad683
8028bfc5c3768408a02388a0ebcb3a52564dcfef
refs/heads/master
2022-11-08T23:54:34.994061
2022-11-01T12:59:19
2022-11-01T12:59:19
129,750,528
0
0
null
2018-04-16T13:47:56
2018-04-16T13:47:56
null
UTF-8
Python
false
false
7,534
py
import dataflows as DF from pathlib import Path from decimal import Decimal DATACITY_DB = 'postgresql://readonly:readonly@db.datacity.org.il:5432/datasets' def get_code_to_entity_id_map(): rows = DF.Flow( DF.load('https://next.obudget.org/datapackages/lamas-municipal-data/datapackage.json'), DF.s...
[ "adam.kariv@gmail.com" ]
adam.kariv@gmail.com
dfbe7ffdffc6e351e23bf2e77cdfb123bf13f5da
b4166044870d1c026e86c95ac41e3e3613ee424f
/python_basic/abc118_b_answer.py
8972d1a421a4f1a54460ddc221b5e0fad439c5c3
[]
no_license
nsakki55/AtCoder
2cbb785415a7c0b9df9953ddc3706c90a5716a03
03c428e8eb8f24b8560d00e2388ba75509619690
refs/heads/master
2020-05-31T04:33:06.400697
2020-01-19T13:41:41
2020-01-19T13:41:41
190,099,669
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
n,m=map(int,input().split()) S=set(range(1,m+1)) for i in range(n): K,*A=map(int,input().split()) S =S & set(A) print(len(S))
[ "n.sakki55@gmail.com" ]
n.sakki55@gmail.com
7a0ecaa29bc96b1953272f96b90e383f863d3c49
e6611443e946d1129985a95bc2dd2afc610f8292
/CMS/apps/ivr_templates/migrations/0001_initial.py
33231f2120ccfdc6e9150ace76204d7f7558ee7a
[]
no_license
Indus-Action/Campaign-Management-System
a761dd9bbc7967f8302bb3283230f87ccc2bd2a6
9c6f1193ff897b8cc53f2a1c3bca8d70a890e70f
refs/heads/master
2020-03-12T19:49:19.329764
2018-05-15T06:37:41
2018-05-15T06:37:41
130,792,314
1
1
null
null
null
null
UTF-8
Python
false
false
1,141
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-10-12 08:51 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migration...
[ "madhav.malhotra3089@gmail.com" ]
madhav.malhotra3089@gmail.com
3662af007093be7214fb2ed3b2d24599c6921657
b35f80114ad96928ccce44d40840177e0b5158aa
/dfvfs/vfs/cpio_file_entry.py
691d6298046b26487757ebc682d129568cc091d5
[ "Apache-2.0" ]
permissive
ryanmjones/dfvfs
7b62bab127cb201e679331fa808ec79e8ef03bd9
29ae5baddbf285260a596a67a199d0f5077214c1
refs/heads/master
2020-03-29T23:47:49.363000
2018-09-03T11:43:03
2018-09-03T11:43:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,515
py
# -*- coding: utf-8 -*- """The CPIO file entry implementation.""" from __future__ import unicode_literals import stat from dfdatetime import posix_time as dfdatetime_posix_time from dfvfs.lib import definitions from dfvfs.lib import errors from dfvfs.path import cpio_path_spec from dfvfs.vfs import file_entry cla...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
18fdd1da339a723e8a6f53fe69654d26a6f881b1
b8ee76250770ba628b818a26b6f894347ff2e390
/Python Requests Post.py
373807aed52a7a16be25baeed82410fd82f8643e
[]
no_license
SimonGideon/Journey-to-Pro
77c77bd1a5de387c41bc8618100bbb3957d15706
1591310891c7699710e992fe068b8fa230ac3d56
refs/heads/master
2023-04-28T19:31:53.155384
2021-05-18T19:18:32
2021-05-18T19:18:32
358,926,411
2
0
null
null
null
null
UTF-8
Python
false
false
2,297
py
# Simple post. from requests import post foo = post('http://httpbin.org/post',data= {'key': 'value'}) # Form encoded Data. from requests import post payload = {'key1' : 'value1' 'key2' 'value2'} # File Upload. from requests import post files = {'file': open('data.txt', 'rb')} foo = post('http://http.org/p...
[ "simongideon918@gmail.com" ]
simongideon918@gmail.com
2108381a4645c969584a176821fa30904709f6ae
37931e80bebf17f175ab2bcf720b2b66a9f02e1f
/micropython/tools/insert-usb-ids.py
a8f5d3e065d5ee39691d7244d313e3d59aa9a0e2
[ "MIT" ]
permissive
jiapei100/Stereo
f9ef718533074155eb0ca26afe6d30da44187982
3c569d05545c8ad8fd3d86f9eabacc536ac0105e
refs/heads/master
2020-12-31T00:18:46.272842
2016-10-12T03:10:23
2016-10-12T03:10:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
# Reads the USB VID and PID from the file specifed by sys.arg[1] and then # inserts those values into the template file specified by sys.argv[2], # printing the result to stdout from __future__ import print_function import sys import re import string def parse_usb_ids(filename): rv = dict() if fi...
[ "llb0536@aliyun.com" ]
llb0536@aliyun.com
b72e1753ccf6be4b350864dd5927462eeee31448
284f3fe8c6005a668eec2dba510e333160f66174
/Further Study/arithmetic.py
b25d455ea573ee778e47c9e351f1358496f50d05
[]
no_license
AmyYang1799/HackbrightCalculator-2
ef0b1c9dad86903dc1497ab6f099cf3c62e44b3f
b3ff4b09c34b8db3bda5853e945fa9a18c27a35d
refs/heads/master
2022-12-24T08:10:32.182651
2020-09-30T21:26:26
2020-09-30T21:26:26
300,055,473
0
0
null
null
null
null
UTF-8
Python
false
false
1,423
py
"""Functions for common math operations.""" def add(numbers): """Return the sum of the two input integers.""" total = 0 for number in numbers: total = total + number return total def subtract(numbers): """Return the second number subtracted from the first.""" total = n...
[ "vagrant@vagrant.vm" ]
vagrant@vagrant.vm
430b5b2c88bfb51a3992fecc7a1cd77faf1ff894
de01cb554c2292b0fbb79b4d5413a2f6414ea472
/algorithms/Easy/374.guess-number-higher-or-lower.py
e03fc2f75e91dd404886b2556124a08d12a9c415
[]
no_license
h4hany/yeet-the-leet
98292017eadd3dde98a079aafcd7648aa98701b4
563d779467ef5a7cc85cbe954eeaf3c1f5463313
refs/heads/master
2022-12-10T08:35:39.830260
2020-09-02T23:12:15
2020-09-02T23:12:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
# # @lc app=leetcode id=374 lang=python3 # # [374] Guess Number Higher or Lower # # https://leetcode.com/problems/guess-number-higher-or-lower/description/ # # algorithms # Easy (43.23%) # Total Accepted: 162.7K # Total Submissions: 376.4K # Testcase Example: '10\n6' # # We are playing the Guess Game. The game is a...
[ "kevin.wkmiao@gmail.com" ]
kevin.wkmiao@gmail.com
daf94b89f383acb7e83c61d5363f94a96304fe19
609582ee37a01ac6a67fb9c957825dcd3c9a5b3a
/LeetCode_Array/697_Degree_Of_An_Array.py
4d90db9d6afb6e5a7351acf2a5972e62b17d321d
[]
no_license
captainjack331089/captainjack33.LeetCode
a9ad7b3591675c76814eda22e683745068e0abed
4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7
refs/heads/master
2022-03-07T19:53:40.454945
2019-11-06T19:32:00
2019-11-06T19:32:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,567
py
""" 697. Degree of an Array Category: Array Difficulty: Easy """ """ Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements. Your task is to find the smallest possible length of a (contiguous) subarray of nums, that has the same d...
[ "qfhjack@gmail.com" ]
qfhjack@gmail.com
324dc32613a0fe4638504a4d7e9bb442bc10bbcc
ecf7aeadcbe98d8e781fd013660a62fd091e9981
/models/experimental/mnist_keras/mnist_tf2_with_summary.py
cecc35840a6722933b1efd139e38a4965c877153
[ "Apache-2.0" ]
permissive
imcaspar/tpu
c3463d06885e7b0a7440911c9b5d1d9908d9b6be
11ca61b1f9fc4521395a6efcebafdd289d718ae0
refs/heads/master
2020-08-22T20:40:11.077436
2019-10-22T07:53:39
2019-10-22T07:53:39
216,473,554
1
0
Apache-2.0
2019-10-21T03:53:39
2019-10-21T03:53:39
null
UTF-8
Python
false
false
5,955
py
# Copyright 2019 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...
[ "allencwang@google.com" ]
allencwang@google.com
1fe85e4aa1f083510f191779f51c323129d73688
91c994e77bb4cc4616e1835a008ae114a450056b
/models/embedding.py
b2b1b824cd8f1ce7a8c8d83c1685ed430ffda15b
[]
no_license
wanwanaa/bert
9cd73f5a305ed7b81ecee832bdeaa07432a5653d
4c3868c69b73e2b66d9c6c3887f3a4ed836c74b6
refs/heads/master
2020-05-09T16:56:56.469102
2019-04-18T02:52:12
2019-04-18T02:52:12
181,290,050
1
0
null
null
null
null
UTF-8
Python
false
false
558
py
import torch.nn as nn class Embeds(nn.Module): def __init__(self, config, vocab_size, embedding=None): super().__init__() self.vocab_size = vocab_size self.embedding_dim = config.model_size if embedding: self.embeds = nn.Embedding.from_pretrained(embedding) else...
[ "1551612415@qq.com" ]
1551612415@qq.com
b07159c7ffcc64d94e0f427d012661aaa7d2267c
69b6459aa19ae1485b984f7ff66fbed2fdd296a3
/cleaning data for analysis/6 Custom functions to clean data.py
819cd4f0bb488b5932a2c572f98d28e0271cffbe
[]
no_license
AnkitaDeshmukh/Cleaning-data-in-Python
3c61bd3641022d0f3f72c1b162161fe9ff7bcda6
25075fb5d4160c1d3f2c4b57a3388c55379128bb
refs/heads/master
2020-03-28T06:44:19.698129
2018-09-21T01:36:23
2018-09-21T01:36:23
147,856,279
0
0
null
null
null
null
UTF-8
Python
false
false
1,839
py
Custom functions to clean data You'll now practice writing functions to clean data. The tips dataset has been pre-loaded into a DataFrame called tips. It has a 'sex' column that contains the values 'Male' or 'Female'. Your job is to write a function that will recode 'Male' to 1, 'Female' to 0, and return np.nan for a...
[ "noreply@github.com" ]
AnkitaDeshmukh.noreply@github.com
b4b177c9d364144771115faf7efc602649c7374c
d94378b0e39b93dded78995e74dd42ffbee28087
/.metadata/.plugins/org.eclipse.core.resources/.history/57/80a30545cb0c001518bdffb267654626
df33add05ee2049d423f178a75d39a0a4fa8bbfd
[]
no_license
anthonywittemann/Python-Workspace
ef34752150bcf8c5cef975125f2f3131fdcf8b7f
81a652423bf46f68bf52910c55d0ebd9c2f915f7
refs/heads/master
2021-01-10T13:49:12.686306
2015-06-09T05:43:30
2015-06-09T05:43:30
36,406,225
0
0
null
null
null
null
UTF-8
Python
false
false
811
#!/usr/bin/python3 # functions.py by Bill Weinman [http://bw.org/] # This is an exercise file from Python 3 Essential Training on lynda.com # Copyright 2010 The BearHeart Group, LLC def main(): testfunc(42) passFunc() manyArgsFunc(23, 24) # optional arguments have default values def testfunc(number, anoth...
[ "awittema@usc.edu" ]
awittema@usc.edu
071e07814226a0f75483d97b7dbaed2e0d068ee4
8ecedb5075e19481cbe44875e033aff8a12bda24
/env/bin/tkconch
de4c72394f98b948ed7f7ba315bb11f172aac5d7
[]
no_license
eyeduh/webcrawler
c6e3495737bb11106c41582e0c08f07032f17ea5
0772dae527dbca37320649195ba722a481efc43c
refs/heads/master
2023-07-18T13:26:43.765257
2021-09-07T08:42:02
2021-09-07T08:42:02
402,523,971
0
0
null
null
null
null
UTF-8
Python
false
false
254
#!/Users/ida/Desktop/myproject/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from twisted.conch.scripts.tkconch import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "ida@Aidas-MacBook-Pro.local" ]
ida@Aidas-MacBook-Pro.local
28eaf71cad2b564bd82327243ca01360ed92ab6f
82aee3211216f55392d5a757eb57f02c859e9a28
/Medium/576_outOfBoundaryPaths.py
ef8a876e410c9518a38d534a0278b622094cc65b
[]
no_license
Yucheng7713/CodingPracticeByYuch
505d18095d4b9a35c1f3b23632a90a76d811b64a
1461b10b8910fa90a311939c6df9082a8526f9b1
refs/heads/master
2022-05-01T11:51:00.612603
2022-04-18T09:46:55
2022-04-18T09:46:55
198,961,132
0
0
null
null
null
null
UTF-8
Python
false
false
1,678
py
from functools import lru_cache class Solution: # DFS with LRU cache def findPaths(self, m: int, n: int, N: int, i: int, j: int) -> int: @lru_cache(None) def dfs(i, j, k): if k < 0: return 0 if i < 0 or i >= m or j < 0 or j >= n: return 1 ...
[ "yuchengh@usc.edu" ]
yuchengh@usc.edu
3991d859f17ccd5217aba6618f1bb856c906b935
b7d1922311613b2dc47bc5c0284ff48bc5294f8c
/10-Text_Processing/Exercises/2-Character_Multiplier.py
5cd769005b4ac0e1c00d884c6bbf82a387ddacff
[ "MIT" ]
permissive
eclipse-ib/Software-University-Fundamentals_Module
c32bfa5f249f79de622016269a026d1114341e11
994ef75c70d1bae8e615dbb789aeffd6e0a42c34
refs/heads/main
2023-01-30T08:51:26.239640
2020-12-13T19:54:18
2020-12-13T19:54:18
306,145,841
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
strings = input() final_sum = 0 string_one, string_two = strings.split() index = 0 if len(string_one) == len(string_two): for i in range(len(string_two)): current_sum = ord(string_one[index]) * ord(string_two[index]) final_sum += current_sum index += 1 else: rng = 0 if len(string_o...
[ "65770519+eclipse-ib@users.noreply.github.com" ]
65770519+eclipse-ib@users.noreply.github.com
3216056c4a6878fe74129077a5ad87185d7a2b05
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/k8s-extension/azext_k8s_extension/vendored_sdks/v2022_03_01/aio/operations/_operations.py
3131058170ae9202905abbf1a6400ff3ec4dead1
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/azure-cli-extensions
c1615b19930bba7166c282918f166cd40ff6609c
b8c2cf97e991adf0c0a207d810316b8f4686dc29
refs/heads/main
2023-08-24T12:40:15.528432
2023-08-24T09:17:25
2023-08-24T09:17:25
106,580,024
336
1,226
MIT
2023-09-14T10:48:57
2017-10-11T16:27:31
Python
UTF-8
Python
false
false
4,967
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
c8378053359a710560f3984ba7b4504c6eb23ff8
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/452/usersdata/295/103712/submittedfiles/avenida.py
754e715e1e096323b5a891852f5346cd3b3553c8
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
# -*- coding: utf-8 -*- matriz = [] m = int(input("Digite um numero de quadras n-s:")) n = int(input("Digite um numero de quadras l-s:")) i = 0 j = 0 if 0<= m <=1000: if 0<= i <=m-1: if 2<= n <=1000: if 0<= j <=n-1: for i in range(0,m,1): linha = [] ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
6e1ca81cb76a9349a0a26e540b5438a483c6c66b
380dfac9b68ef8663db5a9d1b30fc75636dec3d3
/test/test_stripe_token_paged_metadata.py
e2bde38319df00ddd8c4aca651a1b8b97f942450
[ "Apache-2.0" ]
permissive
billforward/bf-python
d2f549e0c465d0dc78152b54413cac4216025a64
d2b812329ca3ed1fd94364d7f46f69ad74665596
refs/heads/master
2021-12-13T22:10:16.658546
2018-06-19T14:44:45
2018-06-19T14:44:45
63,268,011
2
1
Apache-2.0
2021-12-06T12:59:41
2016-07-13T17:57:37
Python
UTF-8
Python
false
false
1,372
py
# coding: utf-8 """ BillForward REST API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git 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...
[ "alexander.birch@billforward.net" ]
alexander.birch@billforward.net
23e5f69bc605865be30d48876b1d3b09503511f7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_321/ch87_2020_06_22_18_03_40_269273.py
52592aa724ec505812ce428f4af807c6671f47cd
[]
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
195
py
with open('churras.txt','r') as texto: conteudo = texto.read() valor = 0 n = conteudo.strip() print(n) for i in conteudo: e = n.split(',') valor += int(e[1])*float(e[2]) print(valor)
[ "you@example.com" ]
you@example.com
f848e3d507aaad9c30b0042a17542dc6225e5945
d723bb8bc5ebe9a0094ae4352b87916e47f08e28
/Python 3 Essential Training/04 Syntax/object.py
4d63e3b16fecd15096b57995c2a68717be654257
[]
no_license
rajatsachdeva/Python_Programming
c8b22cc3942a6ea945906e6cc316ca3aa6e9063a
c02afde76b7d47cbacd1bc9052eac370cd262432
refs/heads/master
2021-01-20T00:51:14.580525
2018-10-27T17:28:23
2018-10-27T17:28:23
89,198,567
1
0
null
null
null
null
UTF-8
Python
false
false
921
py
#!/bin/python3 # python is fundamentally an object oriented language # In python 3 everything is an object # class is a blueprint of an object # encapsulation of variables and methods class Egg: # define a constructor # with special name __init__ # All methods within classes have first argument as self ...
[ "rajat.sachdeva621@gmail.com" ]
rajat.sachdeva621@gmail.com
ac6c159930ec241ddf5d9614aab62550603307e4
3c982f9e570f8185770adbfb0540e22f6d0f3c28
/mp_calc/virtenv/lib/python3.8/site-packages/transcrypt/modules/org/transcrypt/static_check/pyflakes/setup.py
5a7b546f30088ebfe6b4f0a43b7cacf52e048c43
[ "MIT", "Apache-2.0" ]
permissive
azkmee/fip_powerx_mini_projects
48bcf4adca952e70dcb61603eb5ac60522dafebc
fbf3385f11893160770896236ee012927cb092d4
refs/heads/master
2023-07-11T03:01:43.433303
2021-08-04T13:42:31
2021-08-04T13:42:31
392,509,672
0
0
MIT
2021-08-04T13:42:32
2021-08-04T01:37:54
Python
UTF-8
Python
false
false
1,702
py
#!/usr/bin/env python # Copyright 2005-2011 Divmod, Inc. # Copyright 2013 Florent Xicluna. See LICENSE file for details from __future__ import with_statement import os.path try: from setuptools import setup except ImportError: from distutils.core import setup extra = {'scripts': ["bin/pyflakes...
[ "kaiying.fu@gmail.com" ]
kaiying.fu@gmail.com
481bf7cdd52c26f187d6333354067533489ab971
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02629/s301668790.py
2be6b3631514141e19c4392b540f2016eb69301b
[]
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
251
py
d = {chr(i):i-96 for i in range(97,123)} D = {val:key for key,val in d.items()} N = int(input()) x = "" while N>0: a = N%26 if a!=0: x += D[a] N = N//26 else: x += "z" N = N//26 N -= 1 print(x[::-1])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e4d5760c6a160e54935554abad28831a9ecdb151
fb1be09460a43e089156c8e330ed4e8e4f131d69
/sdk/python/kfp/v2/compiler/compiler_utils_test.py
0b5a703573125f92e7c03d0691fa82606904fcbd
[ "Apache-2.0" ]
permissive
isabella232/pipelines
aa6251b05c1c8c68b8c18cf48308e273d21771ab
9a20fc5137578df511645a2192a1908683184ab8
refs/heads/master
2023-03-08T02:13:37.674505
2020-11-27T10:26:48
2020-11-27T10:26:48
316,469,963
0
0
Apache-2.0
2021-02-23T19:27:21
2020-11-27T10:27:15
null
UTF-8
Python
false
false
3,047
py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "noreply@github.com" ]
isabella232.noreply@github.com
d936c5d7dc0d0de7b86cdb17bb7205a1376d8023
aa0270b351402e421631ebc8b51e528448302fab
/sdk/network/azure-mgmt-network/generated_samples/azure_firewall_delete.py
2f9223aa23d1d5d8fa3845317c30269c26bbf0a5
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
fangchen0601/azure-sdk-for-python
d04a22109d0ff8ff209c82e4154b7169b6cb2e53
c2e11d6682e368b2f062e714490d2de42e1fed36
refs/heads/master
2023-05-11T16:53:26.317418
2023-05-04T20:02:16
2023-05-04T20:02:16
300,440,803
0
0
MIT
2020-10-16T18:45:29
2020-10-01T22:27:56
null
UTF-8
Python
false
false
1,545
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
fangchen0601.noreply@github.com
e3d39be05805e455c1deccffc6cef710eacbaed6
e74e89592d8a3b1a0b465a7b1595708b224362d2
/pset_pandas_ext/101problems/solutions/p53.py
fc29ede178d0773c6601ea51c71e5190051737f6
[ "MIT" ]
permissive
mottaquikarim/pydev-psets
016f60f1e9d9a534bd9a66ecde8eb412beee37d1
9749e0d216ee0a5c586d0d3013ef481cc21dee27
refs/heads/master
2023-01-10T11:15:57.041287
2021-06-07T23:38:34
2021-06-07T23:38:34
178,547,933
5
2
MIT
2023-01-03T22:28:27
2019-03-30T11:09:08
Jupyter Notebook
UTF-8
Python
false
false
489
py
""" 53. How to get the last n rows of a dataframe with row sum > 100? """ """ Difficulty Level: L2 """ """ Get the last two rows of df whose row sum is greater than 100. """ """ df = pd.DataFrame(np.random.randint(10, 40, 60).reshape(-1, 4)) """ # Input df = pd.DataFrame(np.random.randint(10, 40, 60).reshape(-1, 4)) ...
[ "taqqui.karim@gmail.com" ]
taqqui.karim@gmail.com
9222b943bd41edb76c4f1ec9c79bba60456819be
9b54e3d58447e917a238b85891020c392c4ac601
/acmicpc/2476/2476.py
6f5794e08e79743902671e4a55a00f562436c563
[ "MIT" ]
permissive
love-adela/algorithm-ps
ea0ebcd641a4c309348b389b8618daa83973f4b2
c92d105d8ad344def001160367115ecf99d81c0d
refs/heads/master
2023-05-11T03:37:11.750692
2023-04-30T17:31:30
2023-04-30T17:31:30
174,651,672
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
n = int(input()) result = 0 result_list = [] for _ in range(n): a, b, c = map(int, input().split()) if a == b == c: result = 10000 + a * 1000 elif a == b or a == c: result = 1000 + a * 100 elif b == c: result = 1000 + c * 100 else: result = max(a, b, c) * 100 resu...
[ "love.adelar@gmail.com" ]
love.adelar@gmail.com
31d476a2720970e9db1a515c43928bde53261d05
c88aa1d1f85d58226015510537153daa73358dce
/2/basic_console_output.py
34fd2d446d135668266e2b832eb9e60c00abaaaf
[]
no_license
kmollee/2014_fall_cp
e88ca3acf347a9f49c8295690e4ef81c828cec6b
fff65200333af8534ce23da8bdb97ed904cc71dc
refs/heads/master
2021-01-01T17:56:33.442405
2015-01-07T10:44:32
2015-01-07T10:44:32
24,130,641
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
#!/usr/bin/env python3 # print([object, ...], *, sep=' ', end='\n', file=sys.stdout) # \n Insert a newline in the text at this point # print out single string print("hello this is computer programming section") print("have fun!") # print out mutiple string print("National Formosa University", "Department of Mechani...
[ "10073105@gm.nfu.edu.tw" ]
10073105@gm.nfu.edu.tw
39e056c4570104b905e4df8a5bbee6594c137c8b
ba3a318c72accd9987846966cb8c8fe4d74a9add
/dump/json_to_csv.py
e2526c3701f6bd37af7272f527f910d444245ccc
[]
no_license
ahujadevansh/Te-_first_review
00b5999fae0d56d40255ced75ea66bd1f89c83fe
75de5a2ca419560b4baecb69580d96fd9c7a2394
refs/heads/master
2020-12-26T10:28:00.807350
2020-01-31T17:38:23
2020-01-31T17:38:23
237,480,970
0
0
null
null
null
null
UTF-8
Python
false
false
1,481
py
import json import csv # Opening JSON file and loading the data # into the variable data with open('AMAZON_FASHION.json') as json_file: data = [json.loads(line) for line in json_file] with open('meta_AMAZON_FASHION.json') as meta_json_file: meta_data = [json.loads(line) for line in meta_json_file] ...
[ "ahuja.devansh2@gmail.com" ]
ahuja.devansh2@gmail.com
5550b076d01acfb60a2106360943b8964906e3a0
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/BlendLuxCore/ui/render.py
6e9341ccb51da934b33f3e8d2ac3739d2c8368d1
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
from bl_ui.properties_render import RENDER_PT_render from . import icons # Note: The main LuxCore config UI is defined in ui/config.py # Each of the other render panels is also defined in their # own specific files in the ui/ folder. def luxcore_render_draw(panel, context): layout = panel.layout scene = cont...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
5e3321417a79e959f6588e624265a6600319b625
e06e0f3a58ab25cfd94ffc8ca4446928746a68b8
/Tools/ShowViewDuplicates.py
d36871673239d3043d8ffa380718b1ecc2d48447
[]
no_license
redhog/argentum
ee4b3b33a64a28daca89f4dd3342a1c015934d72
14dfbfb7f43b52e943aa38b3781b364215e0ba6d
refs/heads/master
2020-12-24T18:23:13.068809
2013-04-06T21:16:34
2013-04-06T21:16:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,301
py
#!/usr/bin/env python import sys, types import Argentum, sqlalchemy def parse_options(argv): # Parse options kws = dict([arg[2:].split('=', 1) for arg in argv if arg.startswith('--') and '=' in arg]) options = set([arg[2:] for arg in argv ...
[ "egil.moller@freecode.no" ]
egil.moller@freecode.no
d4f36541b6b351e21e92b3698f00f66aed8d11e2
43b6bffc820d26dfd223728bed71241fb3d54983
/abc/060/b.py
a0863adcecbc3ab7e97d0e3b912a0c430993d8b5
[]
no_license
kiccho1101/atcoder
3a163b6a38a62c578dad6d15ccb586d0fcd1e004
c86cb8e08b881a0a01dc2ef538f0699f3951e897
refs/heads/master
2023-03-02T13:27:17.747402
2022-05-30T13:51:00
2022-05-30T13:51:00
223,152,693
1
0
null
2023-02-11T01:29:47
2019-11-21T10:52:49
Python
UTF-8
Python
false
false
129
py
A, B, C = map(int, input().split()) ans = "NO" for i in range(1, 101): if (i * A) % B == C: ans = "YES" print(ans)
[ "yodai.a.kishimoto@rakuten.com" ]
yodai.a.kishimoto@rakuten.com
30db3f9403a1e810b364e964b23326df303408cf
8e474618e7d74c1205b08e913241889c50d20ce9
/lm_atm/__init__.py
b245fdeda24e5c8ba321a43a350f46a29f528cae
[ "BSD-3-Clause" ]
permissive
mojiastonybrook/pyro2
b3b0092ea49215e3d0f7e32aebbdca4d9ed0fd81
050eacac7fcf4d5fc28e9fa356c445777fa7585c
refs/heads/master
2020-03-21T08:26:58.447950
2018-08-03T20:33:49
2018-08-03T20:33:49
138,344,283
0
0
BSD-3-Clause
2018-06-22T20:12:52
2018-06-22T20:12:51
null
UTF-8
Python
false
false
732
py
"""The pyro solver for low Mach number atmospheric flow. This implements as second-order approximate projection method. The general flow is: * create the limited slopes of rho, u and v (in both directions) * get the advective velocities through a piecewise linear Godunov method * enforce the divergence constrain...
[ "michael.zingale@stonybrook.edu" ]
michael.zingale@stonybrook.edu
ff5f350b14c41c7e9dbac3c1fdb4a1a16644243e
c9396af9d8effc7dc9b1d11707f1bc2eba1f8e60
/mysite/users/migrations/0057_auto_20190402_1230.py
d526e499a43e22aa7991194df1c38972bdee5a60
[]
no_license
nevergofullretard/easylearn
4af352db1dad480aa88adfe84ed7c2f6d0ec8102
6520bcf7d3e5dc27f512a95034105f98459d9f82
refs/heads/master
2022-01-23T04:27:50.105433
2019-07-28T08:12:29
2019-07-28T08:12:29
194,724,510
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
# Generated by Django 2.1.2 on 2019-04-02 10:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0056_profile_unittest'), ] operations = [ migrations.RemoveField( model_name='profile', name='unittest', ...
[ "jagermaxi1@gmail.com" ]
jagermaxi1@gmail.com
b83def3d85d615938c904397095bdebf7c50a149
e754934d3b33995d9037d28eba7b3c4d10e43574
/src/Reporter/urls.py
66e1970d4e1827dde9477013e16a8b8fcfed0c11
[]
no_license
raselcse07/Online-Newsportal-with-Django
903e8c2845dad7ee8397d7fa2afc2f6d919b02f4
1b728fc969b4e716ed461e97376bf0233d58269a
refs/heads/master
2020-03-16T12:05:04.274960
2018-10-31T16:57:25
2018-10-31T16:57:25
132,659,181
4
1
null
null
null
null
UTF-8
Python
false
false
1,918
py
from django.conf.urls import url from . import views app_name="Reporter" urlpatterns = [ url(r'^enter/$', views.UserLogin,name="user_login"), url(r'^logout/$', views.UserLogout,name="user_logout"), url(r'^add_new/$', views.Register,name="user_register"), url(r'^all_reporters/$', views.AllUsers,name="reporte...
[ "rasel_cse07@yahoo.com" ]
rasel_cse07@yahoo.com
7ce8ab3768ccdc816eb6c4fadc8df818083cfc56
17ca5bae91148b5e155e18e6d758f77ab402046d
/analysis_SWarp/CID1174/analysis/analysis.py
b455fb7ad3c672af167a02f8b07ecd05577d097c
[]
no_license
dartoon/QSO_decomposition
5b645c298825091c072778addfaab5d3fb0b5916
a514b9a0ad6ba45dc9c3f83abf569688b9cf3a15
refs/heads/master
2021-12-22T19:15:53.937019
2021-12-16T02:07:18
2021-12-16T02:07:18
123,425,150
0
0
null
null
null
null
UTF-8
Python
false
false
6,263
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Mar 29 20:17:41 2018 @author: Dartoon On the analysis of CID1174 """ import numpy as np import astropy.io.fits as pyfits import matplotlib.pylab as plt import glob import sys sys.path.insert(0,'../../../py_tools') from psfs_average import psf_ave from ...
[ "dingxuheng@mail.bnu.edu.cn" ]
dingxuheng@mail.bnu.edu.cn
92878413e3672770f5f5324733f95c5ea9c8fd8e
fb25f4455f32e0895a2ff1f0c83dfee9ca5e2857
/new Sample MQ/utils.py
66b9eef8801ed8d3014a303ce2cd30dd9a146f0d
[ "MIT" ]
permissive
MrRezoo/rabbitmq-python
c4e6154d8d9f1a62b85d718091eea00f9487f1f3
bb3029343f8d78bba7f7b6dfb657f25f0896109c
refs/heads/main
2023-05-07T07:17:23.200593
2021-05-29T10:16:10
2021-05-29T10:16:10
361,524,085
1
0
null
null
null
null
UTF-8
Python
false
false
153
py
def greeting_callback(channel, method, properties, body): print(f"Message received:{body}") # channel.basic_ack(delivery_tag=method.delivery_tag)
[ "rezam578@gmail.com" ]
rezam578@gmail.com
1b44b7d33cec0f09af495b06de7c65c824e347d6
78d351297d85860d8344833fe6b59f66d8d2f56e
/tests/test_node.py
091bea87442feedaaf11ceb6d343c9f23d411159
[]
no_license
diegodelemos/yadage
0f28ba343a291250ed9425447f8d019d73101e5e
9bb69bd87b503d040b45775966e9964dd3390b7b
refs/heads/master
2021-03-27T20:13:54.275449
2017-06-29T22:04:53
2017-06-29T22:04:53
97,604,200
0
0
null
2017-07-18T13:53:38
2017-07-18T13:53:38
null
UTF-8
Python
false
false
1,753
py
import pytest from yadage.wflownode import YadageNode from yadage.yadagestep import yadagestep def test_create(basic_packtivity_spec,localfs_state): step = yadagestep('myname',basic_packtivity_spec,localfs_state) node = YadageNode('myname',step,'identiifer') def test_result_prepub(basic_packtivity_spec,localfs_st...
[ "lukas.heinrich@gmail.com" ]
lukas.heinrich@gmail.com
c548290b2071fb334249b31664e500b88b040687
a722faf9fb50c794555861bb4858c3ed8a7a25f3
/sandbox/py_opt_book_practice/2.tutorial/lp.py
e3e17c6c6fe8eb77d22ec1a33a1aac75b6f89a46
[]
no_license
ar90n/lab
31e5d2c320de5618bc37572011596fee8923255d
6d035e12f743e9ba984e79bfe660967b9ca8716b
refs/heads/main
2023-07-25T17:29:57.960915
2023-07-22T12:08:18
2023-07-22T12:08:18
77,883,405
4
0
null
2023-07-17T08:45:14
2017-01-03T04:15:49
Jupyter Notebook
UTF-8
Python
false
false
454
py
# %% import pulp from functools import reduce from operator import iadd x = pulp.LpVariable("x", cat="Continuous") y = pulp.LpVariable("y", cat="Continuous") problem = reduce( iadd, [1 * x + 3 * y <= 30, 2 * x + 1 * y <= 40, x >= 0, y >= 0, x + 2 * y], pulp.LpProblem("LP", pulp.LpMaximize), ) status = pro...
[ "argon.argon.argon@gmail.com" ]
argon.argon.argon@gmail.com
1bf05fc9c8883387c1b48ad76d25eca55a62796d
78f3fe4a148c86ce9b80411a3433a49ccfdc02dd
/2016/11/trump-tax-rates-20161111/graphic_config.py
c0db52114d8aae7650de6a5c2f538bd9e8092490
[]
no_license
nprapps/graphics-archive
54cfc4d4d670aca4d71839d70f23a8bf645c692f
fe92cd061730496cb95c9df8fa624505c3b291f8
refs/heads/master
2023-03-04T11:35:36.413216
2023-02-26T23:26:48
2023-02-26T23:26:48
22,472,848
16
7
null
null
null
null
UTF-8
Python
false
false
305
py
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '1U3QKQCsvnoj1YS3Z71koL5EjbSjmHJwCoj0k4m9_mcA' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
[ "ahurt@npr.org" ]
ahurt@npr.org
9c41def0cdfc3f1ec062c7bf85e599b2a65ea764
041ee8262fc76caa89b031f95de18b3dcac75399
/eve/io/mongo/__init__.py
f2616c72b392b9d5c0dc250df4a2c0e707909d75
[ "BSD-3-Clause" ]
permissive
pyeve/eve
cfbd7645c6775b77083fc4a607b05fa64bb64e3b
dfce5710bbf9c807209c773775bc09fa1b34d387
refs/heads/master
2023-08-29T01:55:28.404940
2023-07-10T07:05:49
2023-07-10T07:05:49
6,331,139
3,369
481
NOASSERTION
2023-09-14T12:17:35
2012-10-22T07:39:33
Python
UTF-8
Python
false
false
403
py
# -*- coding: utf-8 -*- """ eve.io.mongo ~~~~~~~~~~~~ This package implements the MongoDB data layer. :copyright: (c) 2017 by Nicola Iarocci. :license: BSD, see LICENSE for more details. """ # flake8: noqa from eve.io.mongo.mongo import Mongo, MongoJSONEncoder, ensure_mongo_indexes from eve.io.m...
[ "nicola@nicolaiarocci.com" ]
nicola@nicolaiarocci.com
121a20bfd53daf32bafeef078d9487c453a61e43
5f65e12a62b59aea9263f35240c960b7e6009aa5
/cb_scripts/swapi.py
98905d56b099a62229de293cc09ee77c780cb856
[ "MIT" ]
permissive
christopher-burke/python-scripts
23e80b8e7f26a74ab68dc7d0ad1a8093d900cf8b
f5dceca0bdbe9de6197b26858600b792f6adff8a
refs/heads/main
2022-05-20T01:36:04.668447
2022-04-25T20:31:33
2022-04-25T20:31:33
6,054,247
1
1
MIT
2022-03-16T02:24:45
2012-10-03T01:49:53
Python
UTF-8
Python
false
false
1,029
py
#!/usr/bin/env python3 """Python Generator - Crawl Star Wars API (swapi.io). Example using Python Generator to crawl an API and display results to the terminal. """ import requests import json import logging logging.basicConfig(level=logging.DEBUG) logging.disable(logging.CRITICAL) def crawl(link): """Crawl ...
[ "christopherjamesburke@gmail.com" ]
christopherjamesburke@gmail.com
53bc46370437bd8bcdd205a293d556e37d5298b0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03325/s905035150.py
c447a8b02f15a6a87165ac70796f5cf3a17d4210
[]
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
906
py
import sys import math from collections import defaultdict, deque, Counter from copy import deepcopy from bisect import bisect, bisect_right, bisect_left from heapq import heapify, heappop, heappush input = sys.stdin.readline def RD(): return input().rstrip() def F(): return float(input().rstrip()) def I(): return...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8ae446e40ef439e740011d559bef9d6481ec4f0d
ae8e083cc3f7cf50449633c1d18cd3ffd184ba78
/Add_to_Sprint.py
1b69026484ba3244bfe8a371fa9ddd88d0ecc54e
[]
no_license
jrodens/Halogen_Reporting
8577e0817555b4c48d9cf27bdd080599def37275
48ce2891c96cb6aacb50b3f28a4f63834a0147ac
refs/heads/master
2021-06-19T07:33:50.376807
2021-06-17T18:30:27
2021-06-17T18:30:27
221,496,157
1
0
null
null
null
null
UTF-8
Python
false
false
661
py
from jira import JIRA import openpyxl, pprint import pandas as pd import json import getpass print('start') username = input('Enter your user name: ') password = getpass.getpass(prompt='Enter password: ') jira = JIRA(basic_auth = (username, password), options = {'server': 'https://jira.troweprice.com'}) li...
[ "noreply@github.com" ]
jrodens.noreply@github.com
c7a8b7c8164f4f45ffa657b19d299bf8c9e2219b
ed3eb650e54ae21752022e91c5e2bcb525c3b531
/timer.py
1159b68c952d7887eb96f16e1101952cfb3f02d3
[]
no_license
JellyWX/Minesweeper
f9a7d4a9b17cdce2b6310b1cf6b379484a9b058e
78d243a4b09b7853d5ae12d336d532c80d99bf08
refs/heads/master
2020-05-21T05:08:09.197866
2017-04-28T13:48:06
2017-04-28T13:48:06
84,574,393
2
0
null
null
null
null
UTF-8
Python
false
false
615
py
import time class Timer(): def __init__(self,paused=False): self.count = 0.0 self.paused = paused self.start_time = time.time() self.time = time.time() - self.start_time self.bookmarks = {} def Time(self): if not self.paused: self.time = time.time() - self.start_time return self....
[ "judewrs@gmail.com" ]
judewrs@gmail.com
64fac536ef0a90d802f82e9f466262d5cc46e1d6
473fc28d466ddbe9758ca49c7d4fb42e7d82586e
/app/src/main/java/com/syd/source/aosp/external/dhcpcd-6.8.2/dbus/test/introspection
772a1db7ba21a54316b6f22ff69b5d0eb5bc5d60
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "ISC" ]
permissive
lz-purple/Source
a7788070623f2965a8caa3264778f48d17372bab
e2745b756317aac3c7a27a4c10bdfe0921a82a1c
refs/heads/master
2020-12-23T17:03:12.412572
2020-01-31T01:54:37
2020-01-31T01:54:37
237,205,127
4
2
null
null
null
null
UTF-8
Python
false
false
193
#!/usr/bin/python import dbus bus = dbus.SystemBus() object = dbus.Interface(bus.get_object("org.chromium.dhcpcd", '/'), "org.freedesktop.DBus.Introspectable") print object.Introspect()
[ "997530783@qq.com" ]
997530783@qq.com
76b05811d89ceb68df764c7fc9e0753371ba0d6f
cb7c3673ad937c282a39be74d0aee8628e75928d
/tests/test_issues/output/importee.py
79e067f7364c9a9d4f49fae1e0a3b964e7db2437
[ "CC0-1.0" ]
permissive
bpow/linkml
649d6d48f39a8c51efa92fba7eb25c1d8854b472
ab83c0caee9c02457ea5a748e284dee6b547fcd6
refs/heads/main
2023-05-05T18:46:04.501897
2021-05-13T21:17:03
2021-05-13T21:17:03
371,163,928
0
0
CC0-1.0
2021-05-26T20:42:13
2021-05-26T20:42:12
null
UTF-8
Python
false
false
2,589
py
# Auto generated from importee.yaml by pythongen.py version: 0.9.0 # Generation date: 2021-03-26 14:21 # Schema: importee # # id: https://example.org/importee # description: A minimal element to import # license: https://creativecommons.org/publicdomain/zero/1.0/ import dataclasses import sys import re from typing imp...
[ "action@github.com" ]
action@github.com
b631b23d61acac1bdb836c8355d8749bac2ef508
e698b045d43cb4ab1a220fb2cd741f181aa2a71d
/methodiki/methods/feeds.py
6edf6acbc9b62008ce1c4cbbc8068b190b00a61e
[ "MIT" ]
permissive
lemonad/methodiki
b9037256f6831ebf69cc7a6da31521305ac964d4
6fcb0ae7256da0eac1f468d4a76033d719393c37
refs/heads/master
2016-08-05T09:16:40.891376
2013-04-19T13:45:36
2013-04-19T13:45:36
1,135,265
0
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
# -*- coding: utf-8 -*- from django.contrib.auth.models import User from django.contrib.syndication.feeds import Feed from django.core.cache import cache from django.core.urlresolvers import reverse from django.db.models import Count, Q from django.utils.translation import ugettext_lazy as _ from models import Method ...
[ "jonasnockert@gmail.com" ]
jonasnockert@gmail.com
14dab761c957fa8f76e28418b802dd838eccd3e7
38a9e2780ac8b800c336207a5c0a621eb1277a53
/src/olympus/objects/abstract_object.py
05b23e2b6dd6c742f61afd6d819e6428ba815921
[ "MIT" ]
permissive
priyansh-1902/olympus
2454850413bb0562a1bfe20ab35fa7e770367323
f57ad769918c0d5d805c439ab5ffbd180af698fa
refs/heads/main
2023-06-21T05:58:49.118264
2021-08-07T22:19:41
2021-08-07T22:19:41
342,454,516
0
0
MIT
2021-08-07T22:19:41
2021-02-26T03:43:08
Python
UTF-8
Python
false
false
7,322
py
#!/usr/bin/env python #=============================================================================== import os import json from olympus import Logger from abc import ABCMeta as NativeABCMeta # ==================== # Olympus Object class # ==================== class Object: """ Abstraction of a dictionary ...
[ "hase.florian@gmail.com" ]
hase.florian@gmail.com
e24186035a400786cc9e7db5190629d098309fe0
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/subnet_paged.py
5d32aa914aa15eaab8dceab680c5a37f4ee25cb3
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
922
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
10a0cbe5a5c712e626fd331a191daf2b5ce1a739
c04db5c5592c0a3b87135ea0b271fd1bc1551031
/slicer-build-base/update.py
df88f06f0bcf7e613ca4d5131ff41ee23596991b
[ "BSD-3-Clause", "LicenseRef-scancode-3dslicer-1.0" ]
permissive
ihnorton/SlicerDocker
1f9a66ec43aa75bdefe5258a4cfc3473eb347448
a7ddd36ef5cec105ecd567598dadbd506ad60595
refs/heads/master
2021-01-17T14:38:53.906156
2016-07-20T14:48:49
2016-07-20T14:48:49
64,945,374
0
0
null
2016-08-04T15:20:47
2016-08-04T15:20:46
null
UTF-8
Python
false
false
1,426
py
#!/usr/bin/env python import argparse import os import subprocess # # Usage: # # $ ./update.py svn_revision svn_revision_date # # Example: # # $ ./update.py 25199 2016-06-19 # def update_dockerfile(dockerfile, svn_revison, svn_revision_date): lines = [] with open(dockerfile) as f: for line in f: ...
[ "jchris.fillionr@kitware.com" ]
jchris.fillionr@kitware.com
77c802fb94d839900a9c00602e7bba9246422592
2680056f7b196d591082485327cd0ac9c9681000
/gooey/gui/client_app.py
893c6b6fe31de7eaa3be0575ce294bbd0d0ef4b9
[ "MIT" ]
permissive
craffel/Gooey
24f32263a28d63676bd7d14bd988caefe1476be9
a1b6f0c8389b9e7db12c82891632e34a7831ef9b
refs/heads/master
2020-12-26T04:37:34.146576
2014-08-26T16:10:57
2014-08-26T16:10:57
23,358,229
1
0
null
null
null
null
UTF-8
Python
false
false
1,417
py
''' Created on Jan 23, 2014 @author: Chris ''' import sys from gooey.monkey_parser import ArgumentError from gooey.gui.action_sorter import ActionSorter class ClientApp(object): def __init__(self, parser, payload): self._parser = parser self.description = parser.description self.actio...
[ "audionautic@gmail.com" ]
audionautic@gmail.com
6213bf17abdacd748f9440be2a169adb191ddaeb
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/playground/murat/applications/games/nimuh-data/actions.py
f433ab040e9b0bade258079b399ae8312884756a
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools NoStrip = ["/usr/share/nimuh"] def setup(): autotools.configure()...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
f6cf40032c7058130b6a60c0a46535752736fcd0
66e15a587af77b6459fb357df7bbb24c484f1a50
/profile_bluesky/startup/instrument/devices/fourc_device.py
2181929a4bd18a82ae8fcef039dcf06e4d2a9258
[]
no_license
prjemian/ipython-vm7
a3f42459aeae631393e289999a5c02504f7ef8d6
47d2a5e6c92e4f79cf2c189a62d9b36fe11fc1fa
refs/heads/main
2021-06-17T04:04:00.964129
2021-03-17T16:45:21
2021-03-17T16:45:21
172,103,731
1
0
null
2021-03-17T16:41:44
2019-02-22T17:06:35
Python
UTF-8
Python
false
false
1,513
py
"""Four circle diffractometer (simulated)""" __all__ = [ "fourc", ] from ..session_logs import logger logger.info(__file__) import gi gi.require_version("Hkl", "5.0") from apstools.diffractometer import DiffractometerMixin from bluesky import plan_stubs as bps from bluesky import plans as bp from hkl.diffract...
[ "prjemian@gmail.com" ]
prjemian@gmail.com
2ef4dc58909580fc43e200acbd80acd664477898
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_136/2647.py
356f60323ef5ba65a838607fa6bf412f53e4d4e3
[]
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
470
py
fin = open("input", "r") fout = open("output", "w") t = int(fin.readline()) for test in range(t): c,f,x = [float(x) for x in fin.readline().split(" ")] s = 0.0 min_T = None n = -1 T = x/2.0 while min_T == None or T < min_T: min_T = T n += 1 r = x / (2+(n+1)*f) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
eaf2fa809fbe9f364983085101903709adac499a
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/RuwpKTa8grNSQkqX5_2.py
c919aa2277c8c6d9319da0f7562e476af1f2d92b
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
import re from fractions import Fraction def fractions(decimal): digits = re.findall(r'\d+',decimal) left = int(digits[0]) if len(digits) == 2: x = 1 y = pow(10,len(digits[1])) left = int(digits[0]) right = int(digits[0] + digits[1]) else: x = pow(10,len(digits[1])) y = pow(10,len(digit...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
6be9e8f10b271c5212471d66df7bdd804d24227d
606a141e99d61576c8aa795bce4298215250a75c
/chamados/models.py
d5d03ac2ee49e68bd20d16148e16fce30de5ca4d
[]
no_license
rodrigues87/escolarapp
3dee027deb74f833953f77d6bee3e524d64b381e
f7ed0d2679a6bc763156cb4f1c436ae4aa6e62de
refs/heads/master
2023-03-03T02:59:52.250777
2021-02-11T04:20:15
2021-02-11T04:20:15
303,896,100
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
from django.db import models from usuarios.models import User class Impressora(models.Model): nome = models.CharField(max_length=40) usuario = models.ForeignKey(User, on_delete=models.CASCADE) STATUS_CHOICES = ( ("F", "FUNCIONANDO"), ("D", "DEFEITO"), ("R", "REPARO") ) sta...
[ "pedroh.mix@gmail.com" ]
pedroh.mix@gmail.com
29c54c9ad7f52eb9f62cdb46c72b2ec6250b32ea
09996c147d498e61352683c5e7df0f3cd517ea27
/test/ElMu/crabMCTTHad3_ElMu.py
fb9eb79310f334865ed0fe5371e61a2d49f7f90a
[]
no_license
shchenarani/whelicityAnalyzer
3e3320a6d03eab21de6d51dad60f057b6a2f3d47
8b4586f7210c6a166b949470c22310b25683da4f
refs/heads/master
2021-09-10T12:22:52.088849
2018-03-26T07:52:54
2018-03-26T07:52:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = config() config.General.requestName = 'TTHad27Feb' #config.General.requestName = 'TTJetsDiLepOut04' #config.General.requestName = 'DataMuEG' config.General.workArea = 'crab_projects' config.General.transferOutputs = True config.General.t...
[ "hesam.kaveh@gmail.com" ]
hesam.kaveh@gmail.com
a48c125885c6ca5ebc58af05eb696aae642ef0f9
ce5b7b967eb5597eee5087c3a1a7d1a7b36fe2cb
/05.Web Scraping with Beautiful Soup/scraper6_scraping_multiple_pages.py
a505755d81ed7a72ac0d3808544e52e1b68f2ea5
[ "MIT" ]
permissive
Manya-Singh/Web-Scraping-and-API-in-Python
09d00f7a48863529489db5a3d83528b754cf4245
9595bc418866642143eaf4a1f700dd646d81d427
refs/heads/master
2023-03-14T18:14:00.755597
2020-04-15T10:19:26
2020-04-15T10:19:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
import requests from bs4 import BeautifulSoup from urllib.parse import urljoin base_url = "https://en.wikipedia.org/wiki/Music" response = requests.get(base_url) html = response.content soup = BeautifulSoup(html, 'html.parser') div_notes = soup.find_all('div', {'role':'note'}) div_links = [div.find('a') for div in ...
[ "ptyadana@users.noreply.github.com" ]
ptyadana@users.noreply.github.com
009e8fc6710992aadbe6962d6d2d6f85eb12bc24
57fbfb0fdc5be06cd3596718bb0f2e8325a08534
/blogproject/settings/__init__.py
ab22c95af228b6c14038f3fc978c679fb435be2c
[]
no_license
tangkaiyang/HelloDjango-blog-tutorial
e54fccc29f5323900260df496e74589e2611f03c
085649ff5f3c2dde6ef98943cbde9653202a9ebf
refs/heads/master
2022-05-06T09:31:35.845827
2020-04-01T11:20:52
2020-04-01T11:20:52
250,714,022
0
0
null
2022-04-22T23:13:43
2020-03-28T04:28:21
CSS
UTF-8
Python
false
false
165
py
# !/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2020/3/30 13:10 # @Author : tangky # @Site : # @File : __init__.py.py # @Software : PyCharm
[ "945541696@qq.com" ]
945541696@qq.com
0e1df4bf45bb65e7081571d4ffa984f9583dbd5b
48cfe3e405cdc964d652b47d2ec3e4dc1e074540
/underage.py
07dd291498390cee1590ef40ba3750c4a9b489b3
[]
no_license
DennisMufasa/mongodb
b2753ee50a84f86ddb399cffe111e6c1f07b2566
39d866cc03d0a3dc4d7cfa9f8462bd85cb521783
refs/heads/master
2020-07-28T07:20:00.997227
2019-09-19T06:35:47
2019-09-19T06:35:47
209,349,689
1
0
null
null
null
null
UTF-8
Python
false
false
647
py
# import python driver for mongodb import pymongo # import datetime import datetime # create client to communicate with the database client = pymongo.MongoClient("mongodb://localhost:27017") # select database Students = client["students"] # select collection info = Students["info"] # current year current_year = da...
[ "denny.muasa@gmail.com" ]
denny.muasa@gmail.com
39bc2c5a2071bd16b20773683295ddf4c36b9594
62b04f9f2cc8ec5c4ccaaf918bbc48c32367a3a3
/spotty/providers/gcp/helpers/gcp_credentials.py
7eeab8df3f553f2234f8dedd3ab2c0a10f32a447
[ "MIT" ]
permissive
spotty-cloud/spotty
80e9bb703df505c9f9c11e9efa0466bda6e419bd
bdbacd4e893bbc5e5372f11cac4658dc683a4904
refs/heads/dev
2023-08-11T00:32:52.906420
2022-06-25T19:46:14
2022-06-25T19:46:14
108,915,261
234
17
MIT
2023-06-18T16:27:56
2017-10-30T22:26:37
Python
UTF-8
Python
false
false
411
py
from google.auth import default class GcpCredentials(object): def __init__(self): credentials, effective_project_id = default() self._credentials = credentials self._project_id = effective_project_id @property def project_id(self): return self._project_id @property ...
[ "apls777@gmail.com" ]
apls777@gmail.com
a9bd2ab769d0af7d3244111204ad8b0704b939d6
44722fb1541645937f17e8e920f4954ff99cc046
/src/gamesbyexample/pegsolitaire.py
e5d0c13da9acd0c11c75dd8ff4dc03f061423cf6
[]
no_license
asweigart/gamesbyexample
a065d21be6c2e05a4c17643986b667efae0bc6de
222bfc3b15ade1cf3bde158ba72a8b7a969ccc5a
refs/heads/main
2023-07-16T12:12:58.541597
2021-09-01T21:24:35
2021-09-01T21:24:35
343,331,493
89
10
null
null
null
null
UTF-8
Python
false
false
6,097
py
"""Peg Solitaire, by Al Sweigart al@inventwithpython.com A single-player, peg-jumping game to eliminate all the pegs. More info at https://en.wikipedia.org/wiki/Peg_solitaire Tags: large, game, board game""" __version__ = 0 import sys # Set up the constants: EMPTY = '.' PEG = 'O' NORTH = 'N' SOUTH = 'S' EAST = 'E' WES...
[ "asweigart@gmail.com" ]
asweigart@gmail.com
9fabfca87e245aacf977fdc18728e889106a30ef
b6ee3ca85e2ef799d2c51e14a52f6574ab34fa68
/q39.py
3b99e7ba2527c24c314b9b5190e875b6d00db59e
[]
no_license
maples1993/Strike-to-Offer
b857f08acdd39697ee44ad28a6835352607d4582
b86f464026a222b1b9accccf0b123319e85f4390
refs/heads/master
2020-03-27T23:10:09.276866
2018-09-04T06:16:07
2018-09-04T06:16:07
147,297,160
1
0
null
null
null
null
UTF-8
Python
false
false
756
py
""" Date: 2018/9/1 """ class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def process(self, root): if not root: return 0 if not root.left and not root.right: return 1 depth_l = self.pr...
[ "panchao1993@126.com" ]
panchao1993@126.com
19ae276177a2ea3f3a172fe024f7d23b2b84e71a
0da7b2dcec230172dd8a8cbbefa7125ea13f8969
/freight/notifiers/__init__.py
ca4cb7ec247bda8aa385861aab9dad3a832dce2d
[ "Apache-2.0" ]
permissive
nicolasbaer/freight
4e364480ae0dad0dcc7a8ddf9219def18f942a0d
e305486394b5295d7c5e1126e4d2661c837cd66b
refs/heads/master
2021-01-24T22:15:23.196067
2015-04-20T17:40:56
2015-04-20T17:40:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
from __future__ import absolute_import, unicode_literals from .base import Notifier, NotifierEvent # NOQA from .manager import NotifierManager from .slack import SlackNotifier manager = NotifierManager() manager.add('slack', SlackNotifier) get = manager.get
[ "dcramer@gmail.com" ]
dcramer@gmail.com
4fbcb44fd9740deb775b52f1313c3fa32706ebda
08504fcf3bb8032d087008a05d309111ec29fd42
/foodcartapp/migrations/0020_auto_20200619_0959.py
cbf4c2f501fd1f109d1faa5b9aa29c47660738bd
[]
no_license
Zed-chi/star-burger
0e4b29bd0bdf4289a6205dc4d4844510a9b13469
660d39f2d34aed4c7604160a794a4b1f04b47aa3
refs/heads/master
2023-03-12T00:05:16.611599
2021-02-13T17:01:47
2021-02-13T17:01:47
320,936,255
0
0
null
2020-12-21T22:33:04
2020-12-12T22:24:44
Python
UTF-8
Python
false
false
812
py
# Generated by Django 3.0.7 on 2020-06-19 09:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("foodcartapp", "0019_auto_20200619_0948"), ] operations = [ migrations.AlterField( model_name="order", name="status",...
[ "zed-chi@mail.ru" ]
zed-chi@mail.ru
3ffcf195a83f2d5d2f4f98da14ba63df3a5a8fe7
3b5d0c88a747baccf62f6c189ab001cf192181cb
/1/single_number2.py
01f10ee7154243765f6fa77f6d1dda2a78a373c3
[ "Apache-2.0" ]
permissive
OZ-T/leetcode
273f652ae39017026f517a9c4a81b60cfaa5bc4c
c70489f82876107f51f43cee9cdcbf25bb43145b
refs/heads/master
2023-07-23T19:59:57.092165
2021-08-28T09:23:51
2021-08-28T09:23:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
class Solution(object): def singleNumber(self, nums): """ :type nums: List[int] :rtype: int """ res = 0 for i in xrange(32): sum = 0 for j in xrange(len(nums)): if (nums[j] >> i) & 1 == 1: sum += 1 ...
[ "guotiexin@gmail.com" ]
guotiexin@gmail.com
1da9a59638bb2bf5ba6aa261650f6613ee1762f7
8518388434af72be420927477044139d47ca2d1d
/src/streamlink/plugins/kingkong.py
e50b8144878724cc6825cc2bed590bab838c6a05
[ "BSD-2-Clause", "CC-BY-SA-2.0", "MIT", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-proprietary-license" ]
permissive
e2pluginss/streamlink
3b126b8cbcf53ed95bff6795366e6fcea99eb51b
955a97c646bc608f070d9ac1c8cebf75afd8cdb8
refs/heads/master
2023-09-01T00:54:28.553000
2018-06-13T19:21:37
2018-06-13T19:21:37
137,282,441
1
0
BSD-2-Clause
2021-02-21T20:45:32
2018-06-13T23:32:00
Python
UTF-8
Python
false
false
2,561
py
import re from streamlink.plugin import Plugin from streamlink.plugin.api import http, validate from streamlink.stream import HTTPStream, HLSStream API_URL = "https://g-api.langlive.com/webapi/v1/room/info?room_id={0}" VOD_API_URL = ( "https://g-api.langlive.com/webapi/v1/replayer/detail?live_id={0}") STATUS_ONLI...
[ "gravyboat@users.noreply.github.com" ]
gravyboat@users.noreply.github.com
4d9c1f577eec2cd8ce0af9cf91407788a6f49d34
159aed4755e47623d0aa7b652e178296be5c9604
/data/scripts/templates/object/draft_schematic/space/armor/shared_mass_reduction_kit_mk5.py
cf8f4b2faf2ce5c9b5156047cf141a62bf2f5b18
[ "MIT" ]
permissive
anhstudios/swganh
fb67d42776864b1371e95f769f6864d0784061a3
41c519f6cdef5a1c68b369e760781652ece7fec9
refs/heads/develop
2020-12-24T16:15:31.813207
2016-03-08T03:54:32
2016-03-08T03:54:32
1,380,891
33
44
null
2016-03-08T03:54:32
2011-02-18T02:32:45
Python
UTF-8
Python
false
false
463
py
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Intangible() result.template = "object/draft_schematic/space/armor/shared_mass_reduction_kit_mk5.iff" result.attr...
[ "rwl3564@rit.edu" ]
rwl3564@rit.edu
74c4e7ccc1b44963fae2919bc87c3272c0f1d3e8
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Pytest/pluggy/src/pluggy/__init__.py
b822ed7b66e29a82341dcd5b2ce2de03bfb0172e
[ "MIT" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:3e3cf07040ad53c088f15aceef27e2e8a9231aed432d85b8ac47d3035e548640 size 504
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
bcbcbdaa1002da6b67de32f1118ab1884008f6f5
7519cca3b4179cc394ece0fff5121b82c012cfc7
/accounts/swagger_params.py
afed867cc324fcdd04b6d7bc4879ec85939d3619
[ "MIT" ]
permissive
timgates42/Django-CRM
fc0e27b0e1edaac9554b0e9d94f7a6cd29348926
52d972be3e95c5bd2068cd15490774e7b2f0c4f7
refs/heads/master
2023-03-21T12:31:19.681108
2022-03-09T04:14:39
2022-03-09T04:14:39
245,112,328
0
0
MIT
2020-03-05T08:51:49
2020-03-05T08:51:48
null
UTF-8
Python
false
false
3,943
py
from drf_yasg import openapi organization_params_in_header = openapi.Parameter( 'org', openapi.IN_HEADER, required=True, type=openapi.TYPE_INTEGER) organization_params = [ organization_params_in_header, ] account_get_params = [ organization_params_in_header, openapi.Parameter("name", openapi.IN_QUERY...
[ "noreply@github.com" ]
timgates42.noreply@github.com
806f7eed2c7690161376825075a875eaf78b6803
9b7d002cc1969b8f2c9985a9cc1e96340c294db5
/zeeguu/content_retriever/quality_filter.py
0926d5f9db14bb7ac43cffd5df1101d96b799e9f
[ "MIT" ]
permissive
alinbalutoiu/Zeeguu-Core
12c367f3f4df0920a5833f68e429591ce5f25988
348f0aa05603fb9d2b06e1f38dbf6bb9fdcaac6d
refs/heads/master
2020-04-02T03:59:08.771594
2018-10-31T18:06:57
2018-10-31T18:06:57
153,993,899
0
0
MIT
2018-10-21T09:53:35
2018-10-21T09:53:35
null
UTF-8
Python
false
false
1,842
py
import zeeguu import newspaper from zeeguu.model import Article html_read_more_patterns = [ "To continue reading this premium" # New Scientist ,"Cet article est réservé aux abonnés" #Le Figaro ,"L’accès à la totalité de l’article est protégé" #Le Monde , "Ces informations sont destinées au groupe Baya...
[ "mircea.lungu@gmail.com" ]
mircea.lungu@gmail.com
f1e0c2b53a59f49b57baf4525821480584d97b49
627b050148e767be12cfc7dfa81b1c6368cf3104
/BaekJoonOnlineJudge/SolvedACClass/Class2/baekjoon_10250.py
c1eaf5ec32506f0cbdf9b795f0f85b76e6616ddb
[]
no_license
imn00133/algorithm
6ce5d10491bde853eb9e4d6a69bde3124723875c
40d7bbe6e3cfe932122c32a9f730f951e948ef2d
refs/heads/master
2022-08-13T20:26:06.200622
2022-07-31T08:54:26
2022-07-31T08:54:26
231,281,731
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
# https://www.acmicpc.net/problem/10250 # Solved Date: 20.04.06. import sys read = sys.stdin.readline def main(): test_case_num = int(read().strip()) for _ in range(test_case_num): height, width, num = (int(x) for x in read().split()) floor = (num - 1) % height + 1 if num == 1: ...
[ "imn00133@gmail.com" ]
imn00133@gmail.com
991dafb4002fe4b859fd35c5bb490c7384fd907a
90472e8c726dea65d85f3747bdfb2cdb88bb6edd
/setup.py
6e155a2fde7040c1ab25099e39d9dee15d4d8ce0
[]
no_license
frbuccoliero/kindle_maker
9f67b3d650a6d1f5d01bcfc76aabf1d7aa3d0adc
745bc1a39e5794f42a5a63792ac6bb24b9566ad1
refs/heads/master
2023-01-21T14:01:31.369325
2020-11-27T15:12:23
2020-11-27T15:12:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
#!/usr/bin/env python # coding=utf-8 from setuptools import setup from wheel.bdist_wheel import bdist_wheel as _bdist_wheel class bdist_wheel(_bdist_wheel): def finalize_options(self): _bdist_wheel.finalize_options(self) self.root_is_pure = False def get_tag(self): python, abi, pl...
[ "jachin1992@hotmail.com" ]
jachin1992@hotmail.com
08f6fd3d344ce7916c78504c5ab5b8864398bb93
14ddda0c376f984d2a3f7dcd0ca7aebb7c49648d
/bnn_mcmc_examples/examples/mlp/mnist/hmc/constants.py
6f44e075ad10967af90a69770f663789aec7f855
[ "MIT" ]
permissive
papamarkou/bnn_mcmc_examples
62dcd9cc0cf57cda39aa46c2f2f237bbcd2d35bb
7bb4ecfb33db4c30a8e61e31f528bda0efb24e3d
refs/heads/main
2023-07-12T20:51:28.302981
2021-08-22T13:06:17
2021-08-22T13:06:17
316,554,634
1
1
null
null
null
null
UTF-8
Python
false
false
410
py
# %% Import packages from bnn_mcmc_examples.examples.mlp.mnist.constants import num_chains, output_path # %% Define sampler-specific output directories sampler_output_path = output_path.joinpath('hmc') sampler_output_pilot_path = sampler_output_path.joinpath('pilot_run') sampler_output_run_paths = [ sampler_outp...
[ "theodore.papamarkou@gmail.com" ]
theodore.papamarkou@gmail.com
b2b8f09cb38d46f94a35b943a988e9fe20646fa2
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/icicle/marker/colorbar/_minexponent.py
5b104b90a66c9e0cab80a8505fe0863da609c369
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
481
py
import _plotly_utils.basevalidators class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name="minexponent", parent_name="icicle.marker.colorbar", **kwargs ): super(MinexponentValidator, self).__init__( plotly_name=plotly_name, ...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
9f50b9e4f07fa302758cf1c51d0170144ad83665
2354fdd6a2457bd81bc17f1ec2b58fd25540a52f
/setup.py
dc4dbee18896a987124aa5597df3ad2291b5d86d
[ "MIT" ]
permissive
mattdennewitz/lshhdc
83629a5ec17bd6bdc28d757e1bc34f07a5cd7709
fdc34b0c984986b2b80eaeb83a35c575dff14fe5
refs/heads/master
2020-12-13T20:55:42.371084
2014-11-15T17:52:25
2014-11-15T17:52:25
26,686,707
0
1
null
null
null
null
UTF-8
Python
false
false
902
py
from setuptools import Command, setup, find_packages class PyTest(Command): user_options = [] def initialize_options(self): pass def finalize_options(self): pass def run(self): import sys, subprocess errno = subprocess.call([sys.executable, 'runtests.py']) ra...
[ "mattdennewitz@gmail.com" ]
mattdennewitz@gmail.com
4228b377a324d9df8d63f24d5fed567259266e2d
c358cc70e9e8c73ca3f9193de1d045c7f539b6ce
/fermipy/scripts/quickanalysis.py
86cf8556f4fd6a762b04e068eb2275330be772ff
[ "BSD-3-Clause" ]
permissive
sarabuson/fermipy
9d8295f9459c990781e57cc6c56d4d1cb273a2d8
9bdd290d7b1c4d20b1bfa75f16942a2dc10870e9
refs/heads/master
2021-07-17T11:17:42.276447
2017-10-18T20:08:14
2017-10-18T20:08:14
106,459,653
0
0
null
2017-10-10T19:12:06
2017-10-10T19:06:00
Python
UTF-8
Python
false
false
5,296
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import absolute_import, division, print_function import os import copy import yaml from fermipy import utils from fermipy.gtanalysis import GTAnalysis import argparse def run_analysis(config): print('Running analysis...') gta = G...
[ "mdwood137@gmail.com" ]
mdwood137@gmail.com
cb8f01856167c1ce23b4544df02f4e9324e4e171
b347bc4b850dee4a8a9a171b563a3f31230ce1c7
/sktime/clustering/tests/test_k_shapes.py
99bbe310056ea14ff2c9662ba9cfad9e60e030c8
[ "BSD-3-Clause" ]
permissive
sktime/sktime
5963962df338c5931a2f9f1794d1203c50ddc27e
70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f
refs/heads/main
2023-08-22T18:20:08.022950
2023-08-22T15:24:39
2023-08-22T15:24:39
156,401,841
1,117
268
BSD-3-Clause
2023-09-14T20:44:21
2018-11-06T15:08:24
Python
UTF-8
Python
false
false
1,799
py
"""Tests for time series k-shapes.""" import numpy as np import pytest from sktime.clustering.k_shapes import TimeSeriesKShapes from sktime.datasets import load_basic_motions from sktime.tests.test_switch import run_test_for_class expected_results = [ 0, 1, 0, 1, 1, 0, 0, 1, 0, ...
[ "noreply@github.com" ]
sktime.noreply@github.com
4ad07d7d4557022dfac73161606825c4ad8234f9
5801a6c01f86a47aeac4c37c1199703f3e006acc
/dbutils/statistics_redis_onedb.py
7b0dd9dcc9cf172e73b2a3839c9fa00187893685
[]
no_license
w495/ngrm-emt
45b02016bcd2a4f558d49a8916ea4470056f588d
2b95e26dd1f1416c12aaa3b12846e633c614602d
refs/heads/master
2020-05-09T19:27:58.097627
2011-12-09T04:32:17
2011-12-09T04:32:17
2,945,171
0
1
null
null
null
null
UTF-8
Python
false
false
1,135
py
# -*- coding: utf-8 -*- import redis import statistics_ex_nosql as stens class Statistics_redis(stens.Statistics_ex_nosql): ''' Для Redis Server 2.4.2 ''' def __init__(self): self.server = redis.Redis(db=stens.Statistics_ex_nosql.STATISTICS_INDEX) def flush(self): ...
[ "w@w-495.ru" ]
w@w-495.ru
07797620d94bb53777163e1aeca4e878ee2b1332
38d93c5fd72fee380ec431b2ca60a069eef8579d
/Baekjoon,SWEA, etc/프로그래머스/저울.py
64d5e4751f5c51935694a77e980da5f709e30ca7
[]
no_license
whgusdn321/Competitive-programming
5d1b681f5bee90de5678219d91cd0fa764476ddd
3ff8e6b1d2facd31a8210eddeef851ffd0dce02a
refs/heads/master
2023-01-01T01:34:22.936373
2020-10-24T11:05:08
2020-10-24T11:05:08
299,181,046
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
def solution(weight): weight.sort() if 1 not in weight: return 1 else: a = 0 for i in range(len(weight)): if weight[i] - 1 <= a: a += weight[i] else: break return a + 1
[ "blackgoldace@naver.com" ]
blackgoldace@naver.com
ceb667c2b4a0328a0a479835b9a5d36d6ecf4e89
0691ac1d8f2e90d1048548576b57dc5b457b91ee
/tests/unitary/LiquidityGaugeWrapperUnit/conftest.py
1db95995e4b24c992213fa8b2018935236eb6dc6
[ "MIT" ]
permissive
bcamacho/mobi-dao-contracts
8815ed5b7d398b4f1785405358dd7aade57344dd
60c53a91d63301d1947e506d19679e7b91ee1ba4
refs/heads/master
2023-08-11T19:02:55.050251
2021-09-19T01:19:48
2021-09-19T01:19:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
import pytest @pytest.fixture(scope="module") def unit_gauge(LiquidityGaugeWrapperUnit, alice, liquidity_gauge, vault): contract = LiquidityGaugeWrapperUnit.deploy( "Tokenized Gauge", "TG", liquidity_gauge, {"from": alice} ) vault.set_token(contract, {"from": alice}) yield contract @pytest.f...
[ "ben@hauser.id" ]
ben@hauser.id
5c11dd4ae5035a54298b8ac7909903e7d37bfb5a
07533e47a08b41fd96eabc4ca735e0f166a50a0c
/backend/app/main/utils/toSignTranslator/main.py
c507ae60e480c5cb12a458503ecae94c6fb210b0
[]
no_license
thebhatman/ConnectAll
20eae2e441ae16d11dd2dfd55dda9f355d18be41
0fb540685f378878ed51431673c527ae28f91d90
refs/heads/master
2022-12-14T03:36:13.063101
2020-05-20T17:38:26
2020-05-20T17:38:26
216,511,208
0
1
null
2022-12-08T06:45:10
2019-10-21T08:04:21
Python
UTF-8
Python
false
false
5,357
py
import speech_recognition as sr import numpy as np import cv2 from easygui import * import os from PIL import Image, ImageTk from itertools import count import tkinter as tk import string import os import base64 import requests #import selecting # obtain audio from the microphone dir_path = os.path.dirname(os.path.real...
[ "shivam.cs.iit.kgp@gmail.com" ]
shivam.cs.iit.kgp@gmail.com
d4b69c48f8fea6f8a10ea8d1ab90523f1cb7a926
bd4812ba7af196d2e866cbf2935b2e7308d95066
/python/leetcode/061_rotate_list.py
9b988df187914eb823ebf5cf29739a8d5914764c
[ "Apache-2.0" ]
permissive
yxun/notebook
f507201e15c4376f0655121724254c0d5275c3b1
00eb1953d872a9a93a13d7cf23d8e4ed641d1ce7
refs/heads/master
2023-09-01T03:50:48.142295
2023-08-17T12:11:25
2023-08-17T12:11:25
207,569,654
2
2
Apache-2.0
2023-08-17T12:11:26
2019-09-10T13:38:49
Java
UTF-8
Python
false
false
1,630
py
#%% """ - Rotate List - https://leetcode.com/problems/rotate-list/ - Medium Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1->2->3->NULL Explanation: rotate 1 steps to the right: 5->1->2->3->4->NULL rotate 2 steps to ...
[ "yuanlin.yxu@gmail.com" ]
yuanlin.yxu@gmail.com
b3ad6f9acc8516ffebf3606166be012b59906751
3834a683bc7f3eb66615fad8c95d2f9400ca825a
/Arrayed.py
a395d58916a075731a7bee27242b51c6bf5b1f06
[]
no_license
balajimanikandanm/python3
5d0ae2a0fd2e20426ee9ac5dfc8a26eb0117aa29
ed151ee91c935dc7ecb2c0e54c4e7b107a32c5e7
refs/heads/master
2020-05-31T22:37:44.534017
2019-08-14T10:24:00
2019-08-14T10:24:00
190,523,807
0
1
null
null
null
null
UTF-8
Python
false
false
523
py
n1,m1=map(int,input().split()) li=[] ui=0 for i in range(n1): li.append(list(map(int,input().split()))) for i in range(n1): for j in range(m1-1): for k in range(j+1,m1+1): if li[i][j:k]==[1]*len(li[i][j:k]): if all(li[p+i][j:k]==[1]*len(li[p+i][j:k]) for p in range(len(li...
[ "noreply@github.com" ]
balajimanikandanm.noreply@github.com
7f47a5abdaa3b9f3335796342b62baa33d206f6e
1fe6972bbf44ccad991c25c801a8bd6462bdc02b
/test.py
8ec04bbbbbd4011c770ec3adc380407abed2d806
[]
no_license
bayerj/chopmunk
a86c61c1e163c2e30b81985daf9648c0eed61504
fca0a4a086c8ceec0e07a6bebfc0dd54f990654c
refs/heads/master
2016-09-06T14:05:17.038503
2012-09-19T09:56:56
2012-09-19T09:56:56
3,226,213
1
0
null
null
null
null
UTF-8
Python
false
false
4,402
py
import cStringIO import json import tempfile import os import chopmunk as L def test_timing(): lst = [] pipe = L.list_sink(lst) pipe = L.timify(pipe) pipe.send({}) assert len(lst) == 1, 'nothing added to sink' assert 'datetime' in lst[0] def test_tagging(): lst = [] pipe = L.list_si...
[ "bayer.justin@googlemail.com" ]
bayer.justin@googlemail.com
987f30e8e9b401bc021c7e8d8d2b735c3b314334
37da9405056d8c77296aeebcab168439fe3e378a
/bika/uw/extenders/client.py
fd9ed54dd5ee2c21d302f7e1319acb094bed885d
[]
no_license
mikejmets/bika.uw
b2ffff3e34ce7c01653df46d177d93613d213668
d8c024064cf9af0961ced787d10eb61d85bb467a
refs/heads/master
2021-01-20T13:22:56.281486
2017-06-14T13:31:36
2017-06-14T13:31:36
82,688,689
0
0
null
2017-02-21T14:24:46
2017-02-21T14:24:45
null
UTF-8
Python
false
false
1,108
py
from archetypes.schemaextender.interfaces import IOrderableSchemaExtender from archetypes.schemaextender.interfaces import ISchemaModifier from bika.lims.interfaces import IAnalysisService from zope.component import adapts from zope.interface import implements class AnalysisServiceSchemaExtender(object): adapts(I...
[ "campbell@bikalabs.com" ]
campbell@bikalabs.com
69f750d9a1694a4127aabe4724ef06df52abfc42
1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5
/pluralSight/pythonFundamentals/6_collections/3_string.py
ae50864af6aca2fbf933bf4c3b69d75c2a66d492
[ "MIT" ]
permissive
sagarnikam123/learnNPractice
f0da3f8acf653e56c591353ab342765a6831698c
1b3b0cb2cff2f478006626a4c37a99102acbb628
refs/heads/master
2023-02-04T11:21:18.211654
2023-01-24T14:47:52
2023-01-24T14:47:52
61,184,927
2
1
MIT
2022-03-06T11:07:18
2016-06-15T06:57:19
Python
UTF-8
Python
false
false
1,905
py
# String ################################################################################ # homogeneous immutable sequence of unicode codepoints(characters) len('llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch') # concatenate using '+' operator "New" + "found" + "land" # += operator re-binds the reference...
[ "sagarnikam123@gmail.com" ]
sagarnikam123@gmail.com
e9e5d98734c30d8d9231141fdccc3d9955a7b6a4
8b2af3cff75ba2a6f8557cdea0d852b9076ff6a3
/day016-day020/day018/venv/Scripts/easy_install-script.py
ffb39cf2a600a79820246e56d15e4284020681c2
[]
no_license
AlexYangLong/Foundations-of-Python
98e5eaf7e7348120049f1ff4bb3d31393ad05592
bcf3a1fe526140fd2b05283c104488698ebc99fd
refs/heads/master
2020-03-16T21:45:34.232670
2018-05-11T10:19:21
2018-05-11T10:19:21
133,013,526
3
0
null
null
null
null
UTF-8
Python
false
false
432
py
#!"D:\for python\0418\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install' __requires__ = 'setuptools==28.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
[ "alex@alex.com" ]
alex@alex.com
5a1d5079f921f81a7e814fc92670762f4160c707
902dd320731f40e27281ae81b3a2336b03653275
/cgcs-patch/bin/sw-patch-controller-daemon
282dbd888dcf75829aedac9c0f81fdcd7c2b2b86
[ "Apache-2.0" ]
permissive
MarioCarrilloA/x.stx-update
ca49f46bb9988e1cbb73a9756643889372adb378
2fc8ef2f21d6ff952ba48bbc67d9b57c1d57aa7e
refs/heads/master
2020-04-28T23:47:26.377615
2019-03-13T18:25:14
2019-03-13T18:25:14
175,669,571
0
1
null
null
null
null
UTF-8
Python
false
false
211
#!/usr/bin/env python """ Copyright (c) 2014 Wind River Systems, Inc. SPDX-License-Identifier: Apache-2.0 """ import sys from cgcs_patch.patch_controller import main if __name__ == "__main__": main()
[ "dtroyer@gmail.com" ]
dtroyer@gmail.com
9d0f5319b5902886eb94b2ad1bc9f919a88d2d12
c200e553ea1e52740cbf07e7df1da666e7ea36f5
/slack_simbot/batch_msg_handle.py
a5e2eb5007a27e1420444f743a4754141215d660
[]
no_license
aarondewindt/slack_simbot
29dbccc0436815470ce3dacb736cd35043a036ed
1bb3565abef493ef29f1a0d3b02b3cd6c71127c7
refs/heads/master
2021-01-22T02:40:30.220890
2017-10-23T01:50:02
2017-10-23T01:50:02
81,065,402
0
0
null
null
null
null
UTF-8
Python
false
false
7,974
py
import datetime import os import shutil import sys import time from traceback import format_exception from slack_simbot.msg_handle import MsgHandle from slack_simbot.exception_guard import guard from scp import SCPClient class RunningAverage: def __init__(self, initial=None, weight=0.8): self.value = ini...
[ "aaron.dewindt@gmail.com" ]
aaron.dewindt@gmail.com
c8a8711e44168869bb92b245c8c65e819c0f8e68
0f97f6ad4a8b69cba9dd4f0a078881e69c2cc9a9
/nb2pdf/__init__.py
cf6f343474faee24f71a5164462901da8f7e9b92
[ "BSD-3-Clause" ]
permissive
jgwerner/nb2pdf
6c65bbfbd29f25191738ac3109a3bcfab50cfce4
809a315bfc9a21396b1878a82a7a7f9b2b0b456e
refs/heads/master
2022-11-21T02:33:41.206924
2020-07-28T17:13:50
2020-07-28T17:13:50
283,605,307
0
0
BSD-3-Clause
2021-08-11T13:28:53
2020-07-29T21:23:41
null
UTF-8
Python
false
false
2,176
py
################################## ##### IPYNB to PDF Converter ##### ################################## import argparse import os import time from IPython import get_ipython from IPython.display import display from .filter_cells import * from .pdf import * # check for IPython IN_IPYTHON = get_ipython() is not None...
[ "cpyles@berkeley.edu" ]
cpyles@berkeley.edu