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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
338b4b961289c052bab4b6b7559d579e8e15e777 | 853d4cec42071b76a80be38c58ffe0fbf9b9dc34 | /venv/Lib/site-packages/pandas/tests/extension/base/__init__.py | 2b5e5f015acb745d606c525526a88f9e5d43b528 | [] | no_license | msainTesting/TwitterAnalysis | 5e1646dbf40badf887a86e125ef30a9edaa622a4 | b1204346508ba3e3922a52380ead5a8f7079726b | refs/heads/main | 2023-08-28T08:29:28.924620 | 2021-11-04T12:36:30 | 2021-11-04T12:36:30 | 424,242,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | """Base test suite for extension arrays.
These tests are intended for third-party libraries to subclass to validate
that their extension arrays and dtypes satisfy the interface. Moving or
renaming the tests should not be done lightly.
Libraries are expected to implement a few pytest fixtures to provide data
fo... | [
"msaineti@icloud.com"
] | msaineti@icloud.com |
44eb07b4dcb4c2176799f3bb96c5058a0bd24c22 | e095a91a3424ecc364c4532e8fc705b728a0d1b1 | /YouTobe/if_elif_else.py | 78b8f47ce0211bbe12a09990e89f4baf38508b91 | [] | no_license | Anakinliu/PythonProjects | caed257e71d2e52f691abc5095c4aca5c052feb2 | 2246794a88d06eaa381db1b3a72e9bc54a315dd7 | refs/heads/master | 2021-06-03T05:51:09.319613 | 2021-01-26T02:35:38 | 2021-01-26T02:35:38 | 101,546,309 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | name = "liu"
fire = "liu"
number = 6
# is比较两个变量的内容是否相等
if name is fire:
print("you")
elif number is 6:
print("not you")
| [
"gugeliuyinquan@gmail.com"
] | gugeliuyinquan@gmail.com |
880f5f01c2dead94c68feb91730e7140801db088 | 567ce21932a2cf81daee0e179ee00a868014c83a | /RNN/test.py | 7170cbe67be467574c3986d7849716d6e53b3521 | [] | no_license | MasterFishfish/Machinelearning-Native-Code-python- | 975b144ba59ca4b0abc804c868a6eac68092b369 | c69920b4d1c99364efbc51eede3bc621a2f6a968 | refs/heads/master | 2021-04-03T01:29:10.785379 | 2018-10-28T09:29:17 | 2018-10-28T09:29:17 | 125,151,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 972 | py | import numpy as np
def int_to_bin(x, dim=0):
print("bin:",bin(x))
x = bin(x)[2:]
print("x:", x)
k = dim - len(x)
if k > 0:
x = "0" * k + x
return x
def rand(lower, upper):
return (upper - lower) * np.random.random() + lower
if __name__ == '__main__':
#a_int = int(np.random.ran... | [
"tusimplefishfish@foxmail.com"
] | tusimplefishfish@foxmail.com |
869bd2112b42d53846feb8a2a259c2c383c063e3 | cb5230844234ec481bf6c1d9c01f814caea588ac | /rabbitMQ(学习完成)/官方文档(完全消化)/Introduction/send.py | eda59c9d2d5c8da6c0b0f872932cb57dda5c9b83 | [] | no_license | yaodwwy/videosCode | d1d7ab91081c2b8e29e7187f29c0abab8c1cc568 | 5c1da3a0c3155c406cc5288bc609cf05e65f702c | refs/heads/master | 2022-06-21T14:51:12.326310 | 2020-09-02T11:30:51 | 2020-09-02T11:30:51 | 155,160,565 | 0 | 0 | null | 2021-12-14T21:24:03 | 2018-10-29T06:10:34 | TSQL | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/env python
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(host='localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
channel.basic_publish(exchange='',
routing_key='hello',#这里填写的是queue的名字
body='Hello World... | [
"yaodwwy@gmail.com"
] | yaodwwy@gmail.com |
1c7fee6581187f3a3fda1df4d634db63f3c78b6c | 6db1b8b05c6a4fb68f8514f07bc5725e881691ee | /test/test_unsubscribing_subscribers_from_mailing_list_and_a_specified_campaign_request.py | 8c21491b57dc22afe543ec1f6203acfe86659187 | [] | no_license | mooTheo/Python-Moosend-Wrapper | 7cc776dc90a78484b605d33b6e0403fee27f99ac | eaf3b5f82960aef5dfd4201026e57e88ad663005 | refs/heads/master | 2021-07-07T20:55:32.994324 | 2017-10-03T14:17:42 | 2017-10-03T14:17:42 | 104,724,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # coding: utf-8
"""
Moosend API
TODO: Add a description
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import moosend
from moosend.rest import ApiException
from moosend... | [
"theo@moosend.com"
] | theo@moosend.com |
f2b8d84e857457f00505f66849f4dc1fceac99d1 | a9c0daa4a7b9a4d7341afcab270c5b5debb8c13f | /env/bin/jp.py | 5c828ba0b83a60dfca08f743320162d9f4017069 | [] | no_license | phamcong/alienator-plf | bad8c4e003fd189c43243b31ef2b975b6f154754 | ea65628af66fbca51f2248ceb4ba93f858dbddce | refs/heads/master | 2022-11-26T01:28:38.286261 | 2017-11-07T15:12:08 | 2017-11-07T15:12:08 | 109,412,097 | 0 | 1 | null | 2020-07-25T23:43:17 | 2017-11-03T15:30:22 | JavaScript | UTF-8 | Python | false | false | 1,724 | py | #!/Users/cuongpham/Data/Coding/ALIENNOR/aliennor-plf/env/bin/python
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '--filename',
... | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
bf71c84aabf5017747719fdd8a34e0cd8a279466 | 08b93d56d8882666d615bcc89906f3b19e7e5073 | /releaser/__init__.py | 049702970047a0f81c4731919b9a8b3e22bda683 | [
"MIT"
] | permissive | embray/releaser | 56a20ad9e2c4fdcee4df7abd79030760c02b73f9 | 15c278c86ff35c3472779669cf10ebd0002de757 | refs/heads/master | 2021-01-18T04:04:25.491163 | 2013-08-12T10:22:39 | 2013-08-12T10:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,865 | py | # -*- coding: utf-8 -*-
'''Framework for releasing Python software with variable steps in the
release process.
'''
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import subprocess
from sys import platform
from pkg_resources import parse_version
from bag.co... | [
"nandoflorestan@gmail.com"
] | nandoflorestan@gmail.com |
b608d29b0359b09fe781c4f764268cf32a84d8eb | 70bee1e4e770398ae7ad9323bd9ea06f279e2796 | /test/test_types_status.py | def2a789696fdf7ef9017ca0c982877ac08090fe | [] | no_license | hi-artem/twistlock-py | c84b420b1e582b3c4cf3631eb72dac6d659d4746 | 9888e905f5b9d3cc00f9b84244588c0992f8e4f4 | refs/heads/main | 2023-07-18T07:57:57.705014 | 2021-08-22T04:36:33 | 2021-08-22T04:36:33 | 398,637,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,349 | py | # coding: utf-8
"""
Prisma Cloud Compute API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 21.04.439
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_impor... | [
"aakatev@virtru.com"
] | aakatev@virtru.com |
2733565adce332fcc196e3c0d249916e70a85dc6 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/N/NickE/honour_roll.py | 73203f7f860ccb2dd739f067b3c666fd04b556ac | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,736 | py | import scraperwiki
import lxml.html
import mechanize
import re
for i in range(539970, 800000):
url = ("http://www.awm.gov.au/research/people/roll_of_honour/person.asp?p="+str(i))
print url
br = mechanize.Browser()
br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Geck... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
e4aea60b44029925563bddc8901a131db5a4f648 | be652b0b1b255df320d244caf115e6fabb60c77d | /py-web-data-master/urllib1.py | 6016adbd54050a49c77ddca2b078e574c20ed560 | [] | no_license | bpinkert/portfolio | 4b505458bbdca3bada05039ea791c6cba3e58ffd | d8ff0582611f9dabaeee6d6ae94113fd17b98ccb | refs/heads/master | 2022-12-05T08:25:10.105766 | 2019-06-24T22:25:59 | 2019-06-24T22:25:59 | 192,994,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | #!/usr/bin/env python
import urllib
fhand = urllib.urlopen('http://www.py4inf.com/code/romeo.txt')
for line in fhand:
print line.strip()
| [
"bpinkert@gmail.com"
] | bpinkert@gmail.com |
b5a1c9ead29c35ffe80c2249e48b6950a5b028c2 | 717f5324f8d4ce44a94e2c0b654a2d2a4f0a3c74 | /scripts_python/ttst_resume_training_from_checkpoint.py | 030f41d5b842905c790d8765eca76c3bbb8e171c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jhlegarreta/dwi_ml | 3ac7ef28f3bba13f34a8f38a9f910cf2946dcc7b | a7c03f26780677e4eaccff9b381d5a8ec6120293 | refs/heads/master | 2023-03-04T07:22:15.737775 | 2023-02-23T18:20:53 | 2023-02-23T18:20:53 | 242,525,253 | 0 | 0 | MIT | 2020-06-10T00:53:06 | 2020-02-23T13:49:01 | Python | UTF-8 | Python | false | false | 4,344 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import logging
import os
from dwi_ml.data.dataset.utils import prepare_multisubjectdataset
from dwi_ml.experiment_utils.timer import Timer
from dwi_ml.models.projects.transforming_tractography import TransformerSrcAndTgtModel
from dwi_ml.training.projects.t... | [
"emmanuelle.renauld@usherbrooke.ca"
] | emmanuelle.renauld@usherbrooke.ca |
5a9b14b0058889ab230509951fa84e604a6ac34e | c1fe97208afe479b7ae1ee67d69866a6911564ca | /Login/profilecreate/migrations/0003_alumni_name.py | a9a1db57641bc9be5a4730965f8ecec61accdf61 | [] | no_license | jaindhairyahere/Python_Django | a0a46c57b6ca60d0942ae181fe28ea56bb1ee948 | f170a2e38b78df698a02821a454a3baea0c358a6 | refs/heads/master | 2020-06-18T09:17:56.364928 | 2019-11-02T18:34:12 | 2019-11-02T18:34:12 | 196,249,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # Generated by Django 2.2.1 on 2019-07-14 09:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('profilecreate', '0002_auto_20190713_0758'),
]
operations = [
migrations.AddField(
model_name='alumni',
name='name',
... | [
"jaindhairya2001@gmail.com"
] | jaindhairya2001@gmail.com |
2eff7c4aa8efdc6f5de38ddcc613103dc4990ac2 | 1012f61f46ff7aaf37cd3ce0ead64e035ec201dc | /coding-challange/codewars/6kyu/2020-01-19~2020-04-14/unique-in-order/unique-in-order.py | b94146d7942389aa5d54d38d56dfd0e250883ce8 | [] | no_license | polyglotm/coding-dojo | 89efe22f5a34088e94c9e3a4e25cad510b04172a | 43da9c75e3125f5cb1ac317d275475f1c0ea6727 | refs/heads/develop | 2023-08-17T11:59:30.945061 | 2023-08-16T14:13:45 | 2023-08-16T14:13:45 | 188,733,115 | 2 | 0 | null | 2023-03-04T05:49:21 | 2019-05-26T21:26:25 | JavaScript | UTF-8 | Python | false | false | 578 | py | # unique-in-order
# https://www.codewars.com/kata/54e6533c92449cc251001667
from unittest import TestCase
def unique_in_order(iterable=[]):
arr = list(iterable)
result = [arr[0]] if len(arr) else []
for i in range(1, len(iterable)):
if arr[i] != arr[i - 1]:
result.append(arr[i])
... | [
"polyglot.m@gmail.com"
] | polyglot.m@gmail.com |
af1a6be8a17761444fa00179dc4ecd5249584a69 | 22dcd52b6a07e82e8db9bf8b7ad38711d12f69a8 | /venv/Lib/site-packages/sklearn/neural_network/multilayer_perceptron.py | ebab1fc1327c1415ac2ce41255977c49ce8f32e7 | [] | no_license | MrGreenPepper/music_cluster | 9060d44db68ae5e085a4f2c78d36868645432d43 | af5383a7b9c68d04c16c1086cac6d2d54c3e580c | refs/heads/main | 2023-08-15T09:14:50.630105 | 2021-10-01T09:45:47 | 2021-10-01T09:45:47 | 412,407,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py |
# THIS FILE WAS AUTOMATICALLY GENERATED BY deprecated_modules.py
import sys
from . import _multilayer_perceptron
from ..externals._pep562 import Pep562
from ..utils.deprecation import _raise_dep_warning_if_not_pytest
deprecated_path = 'sklearn.neural_network.multilayer_perceptron'
correct_import_path = 'sklea... | [
"sebastian_truemper@posteo.de"
] | sebastian_truemper@posteo.de |
b5f85580fa1323a0920557440d5badef8e4679cf | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/plone.app.dexterity-2.0.18-py2.7.egg/plone/app/dexterity/browser/clone_type.py | 3657f9aa22a789d5cdde48857ec7c824eebc3229 | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | from z3c.form import form, field
from plone.z3cform.layout import wrap_form
from Products.CMFCore.utils import getToolByName
from plone.dexterity.fti import DexterityFTI
from plone.app.dexterity import MessageFactory as _
from plone.app.dexterity.interfaces import ITypeSettings
class TypeCloneForm(form.AddForm):
... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
f39c6917da4351e5e940d4f3051da31ebc653b8d | 9489d14ea85fa72ae83172290ceab59fc9ec323d | /project/core/migrations/0002_auto_20150915_1928.py | 5a557daf86b20c6df98d6f8f8d459043d6bf7840 | [] | no_license | exister/interview_task_appointments_app | 11f95503a37644cdddc33c045e0e05c2060e78bd | 92871cd523524c644a9f09ab9b1d16635ba61853 | refs/heads/master | 2021-01-13T02:22:45.059670 | 2015-09-17T18:38:28 | 2015-09-17T18:38:28 | 42,674,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth import get_user_model
from django.db import models, migrations
def forwards_func(apps, schema_editor):
User = get_user_model()
try:
User.objects.create_superuser('admin', 'admin@example.com', 'admin')
except ... | [
"mkuznetsov.dev@gmail.com"
] | mkuznetsov.dev@gmail.com |
1ab0c492114de3924d5cb67cf6b9b58164351964 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/resources/azure-mgmt-resource/azure/mgmt/resource/links/v2016_09_01/aio/_management_link_client.py | ba9c8130be263defcf09dccc5b3d4f8482eec828 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 4,663 | 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"
] | test-repo-billy.noreply@github.com |
f5a5672c9da94bc11a594e5649ffdb822f496606 | 5dc1c0c8345a8125b6283041c91eb5c9750eb0a3 | /leet/trees/depthSum.py | 8f4bc0e79314b23900439c2228099ce8a22a52d3 | [
"Apache-2.0"
] | permissive | ZNosX/python-cp-cheatsheet | 82bf3985d5ba36df1cb3e7ef352581c076d33187 | c0b9eb5dfdb6fdec7ac66531e674740f1b99e9a3 | refs/heads/master | 2023-07-08T01:39:31.478223 | 2021-08-20T19:21:23 | 2021-08-20T19:21:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | # """
# This is the interface that allows for creating nested lists.
# You should not implement it, or speculate about its implementation
# """
#class NestedInteger:
# def __init__(self, value=None):
# """
# If value is not specified, initializes an empty list.
# Otherwise initializes a single i... | [
"peterrlamar@gmail.com"
] | peterrlamar@gmail.com |
4eb3599b41ac3d8db6566fbbcd973f0949acca48 | 28729bdabcb1c83429752bc15b14f2ac1950028f | /firmware/python_modules/hackerhotel2019/dashboard/_installer_exec.py | 2622ecdf2ac269cd42e105c268606edf9823d25d | [] | no_license | badgeteam/ESP32-platform-firmware | 434020769b36df164fd1719b3bcf996851d55294 | 04282f7fe84ddd0f0c3887fa948da68a9ade8126 | refs/heads/master | 2023-08-17T07:07:51.048777 | 2023-08-14T20:53:37 | 2023-08-14T20:53:37 | 194,534,857 | 31 | 49 | null | 2023-08-15T21:00:09 | 2019-06-30T15:59:30 | C | UTF-8 | Python | false | false | 41 | py | ../../shared/dashboard/_installer_exec.py | [
"renze@rnplus.nl"
] | renze@rnplus.nl |
82e6b92d3c7d34a6bb62ede15c554837f07ced96 | 72094757026691e4f2648f76f8b376b85296dda4 | /Hausaufgabe_9/sorts/Bubble/BubbleSortV3.py | a3d07961c1c3ffc1d6fa212c503509ad19af5ed7 | [] | no_license | 5h3rr1ll/SmallWorks | 7d4808eddbc651d3d6589f2896a7ff5fd98759e1 | 05efea55e0e48eff48e6bc21fd85ac3a8a449441 | refs/heads/master | 2021-01-11T14:18:27.777472 | 2017-02-15T09:30:37 | 2017-02-15T09:30:37 | 81,319,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
def BubbleSort():
""" Sortiert die Zahlen von klein nach groß. Erwartet eine Listen-Objekt, gefüllt
mit Zahlen. """
ZahlenLst = []
ZahlenLst += input("Gib die Zahlen mit komma getrennt, keine Leerzeichen, ein, die sortiert werden sollen: ")
print(Zah... | [
"a@sherrill.de"
] | a@sherrill.de |
dfd0b913f9e7805e74dd2d73d8ac46cfabb6399d | 761f4b629885108941fc02a41593923d1a125e9d | /kakera_core/migrations/0003_theme.py | ff940ac47d6558c6b2ede63eccaeee27c37ac29a | [] | no_license | KazokuCo/kakera | 731ae8853baf353cd3c59de2d2b05c0effa69737 | 36ad76b99676ddbf6ac723e43af2482583e9201d | refs/heads/master | 2021-01-11T08:14:59.713237 | 2020-01-29T11:56:42 | 2020-01-29T11:56:42 | 69,804,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-12-03 19:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailimages', '0015_fill_filter_spec_field'),
('w... | [
"uppfinnarn@gmail.com"
] | uppfinnarn@gmail.com |
e3e88c32d1fb86a7fecfef1f4b988524caa53b04 | 4546398a18590e4e182629fb55d185547dd6df0a | /2023/problems/guillaume/submissions/partially_accepted/reduce_fraction_10.py | a8580631f63046ac431e13392d6733ff72985aa1 | [] | no_license | ForritunarkeppniFramhaldsskolanna/Keppnir | 352341fa97c6349af65b513c03171f3e706f7db2 | 65c8eb5358d8a49f956edf76c2d47b9372accc3c | refs/heads/master | 2023-04-28T15:33:36.396225 | 2023-04-23T15:00:15 | 2023-04-23T15:00:15 | 78,303,702 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | #!/usr/bin/python3
from fractions import Fraction
n = int(input())
results = input()
wins = 0
draws = 0
losses = 0
best = -1
best_output = (0,0)
for i in range(n-1, -1, -1):
if results[i] == 'G':
wins += 1
elif results[i] == 'A':
losses += 1
else:
draws += 1
cur = Fraction(win... | [
"bjarki.agust@gmail.com"
] | bjarki.agust@gmail.com |
bdb5a9f734e592d50b9749a5c18579b71d21ac58 | bd1025d9f0ec2c7a40329010cd109bd68bd43a58 | /tests/org/one.py | 53c57ce1dbcbe75e8023a3ca48e3c1f95cd784a8 | [
"MIT"
] | permissive | cltrudeau/torquemada | 709ecaf2111c59413b55657d21aa009ea605fdd3 | 31a73272fc5496cd720279a5a7620036d004697b | refs/heads/main | 2023-01-24T08:15:04.894789 | 2020-12-06T21:54:13 | 2020-12-06T21:54:13 | 318,828,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import os, json
def long_fn(one, two, three, four, five, six, seven, eight, nine, ten, eleven,
twelve, thirteen, fourteen):
print(one)
print(two)
print(three)
print(four, five, six, seven, eight, nine, ten, eleven, twelve, thirteen,
fourteen)
def print_os():
long_fn(*range(0, 14)... | [
"ctrudeau@arsensa.com"
] | ctrudeau@arsensa.com |
6737c92b9f2af1d85c19ac2cbfbabc4d66e5c10c | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_5308.py | ca55d12752a528b6e4540ea03dd336edde0db18c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | # WSGI - Set content type to JSON
self.response.headers['Content-Type'] = "application/json"
self.response.out.write(json.dumps(response))
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
6244ce839ed8a103b5bfa7745009f1eb85dedb8c | 1c5f80a5f95e609eeac143da854f902297411705 | /lief_transform.py | bc4f3001fa5896a38cf5137823cd35f6c66c5476 | [] | no_license | romainthomas/whitebox | 71eda59d3a303510d5a66d69222a9aee2b5cb717 | 2c66dc8de61073a423aa50ad5b9e2d017c68395a | refs/heads/master | 2020-03-13T03:56:27.432317 | 2018-04-25T08:15:18 | 2018-04-25T08:15:18 | 130,953,693 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | import lief
libnative = lief.parse("./OAES/lib/x86_64/libnative-lib.so")
# Change Symbol version (All to global)
for s in libnative.dynamic_symbols:
if s.has_version:
if s.symbol_version.value > 1:
s.symbol_version.value = 1
# 1. Remove liblog (Android specific)
liblog = libnative.get_lib... | [
"romainthomasc@gmail.com"
] | romainthomasc@gmail.com |
31687cf889fb18cc159e52f4e0ae3938540c679d | 645e9674e78b3c0ae72a7d4dc5f9694f97c035d3 | /Python/Chapter05/plasma_tv.py | e2ad8344f37e8a18ab562d48a78f45e79164ac25 | [
"MIT"
] | permissive | msiplab/EicProgLab | 30cd1b3f45eb86c26a270af5888f6966abaac9ae | aa4b19e59154ce27cda856fa6a615859304bd595 | refs/heads/master | 2023-07-19T22:35:52.457866 | 2023-07-12T20:35:23 | 2023-07-12T20:35:23 | 125,338,699 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | from interface_tv import ITv
class PlasmaTv(ITv):
def __init__(self):
pass
def display(self,channel):
print('プラズマ:', end='')
if self.__region == '新潟':
if channel == 8:
print('NHK総合表示中...')
elif channel == 12:
print('NHK教育表示中..... | [
"shogo@eng.niigata-u.ac.jp"
] | shogo@eng.niigata-u.ac.jp |
7b04bf6d30672c4643b48016c58e96c419b9aab6 | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Strings/FindAndReplaceInString.py | 9159316f3352cbddfa84e6bdf65ca255e2eba018 | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 732 | py | """
LeetCode Problem: 833. Find And Replace in String
Link: https://leetcode.com/problems/find-and-replace-in-string/
Language: Python
Written by: Mostofa Adib Shakib
Time complexity: O(n)
Space Complexity: O(n)
"""
class Solution:
def findReplaceString(self, S: str, indexes: List[int], sources: List[str], target... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
839abf744c3635fdb01d25712a679a01c44ab7ba | a285d3054bd64efaab2f111829aeaba929b0a8aa | /Oddam/settings.py | 59605123917ea2471f3e394725f10a22bf82b3e5 | [] | no_license | rbartosinski/Oddam-w-dobre-rece | 920d2c2e4c72ad03cb64529d1778c6fe8e622735 | a9210c47815ed9bbfcad4e31fb348f76440da8cd | refs/heads/master | 2020-04-19T07:02:34.616144 | 2019-01-30T13:24:37 | 2019-01-30T13:24:37 | 168,035,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,195 | py | """
Django settings for Oddam project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"you@example.com"
] | you@example.com |
e84c9070b1785faaffc84a70b9fd08fe30a1662a | 328397a6ff6e109069e02fa8fe42255910939cb8 | /venvs/edxapp/lib/python2.7/site-packages/config_models/models.py | a69616fb8105180e48ab8a6f2b6b8cd16b26b7a2 | [] | no_license | UOMx/CITeS-VM-edxapp | fd1294367d090314dc46d8517027845fe178a2e7 | de3d1b297fa99d61cf32addb981cdfc55aec9891 | refs/heads/master | 2022-12-03T08:45:26.284451 | 2017-02-13T12:44:17 | 2017-02-13T12:44:17 | 81,821,365 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,847 | py | """
Django Model baseclass for database-backed configuration.
"""
from __future__ import absolute_import, unicode_literals
from django.db import connection, models
from django.contrib.auth.models import User
from django.core.cache import caches, InvalidCacheBackendError
from django.utils.translation import ugettext_la... | [
"menuka.14@cse.mrt.ac.lk"
] | menuka.14@cse.mrt.ac.lk |
ad13e4b19e892d944c7fb446352da23167774d67 | 9b07b7b3b6a2c1bbff2f4be9275ab36ca55fd54b | /kegbot/pycore/flow_meter.py | f3ffc3c3ceff00e592128bff70ca0ea5932f717c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Kegbot/kegbot-pycore | c876eee117cb26e427bc07af3b5c8e229d9c6a49 | 40923e4b359ecccfb773ac76a258f02d3487605f | refs/heads/master | 2022-12-15T21:02:53.110325 | 2020-05-16T22:46:31 | 2020-05-16T22:46:31 | 4,918,468 | 3 | 9 | MIT | 2022-12-08T09:43:53 | 2012-07-06T02:39:47 | Python | UTF-8 | Python | false | false | 1,666 | py | """Utility module for summing flows."""
from builtins import object
import logging
class FlowMeter(object):
"""Represents a tick-accumulating flow sensor."""
def __init__(self, name, max_delta=0):
self._name = name
self._max_delta = max_delta
self._last_ticks = None
self._total_ticks = 0
self.... | [
"opensource@hoho.com"
] | opensource@hoho.com |
96a95c450d15d3e3a103958b5424cff8dafdfb88 | 2e5bda2c9812cd1669ba990762fd96dfc358940e | /Learning/MyPackage/life/animals.py | ea0773c6171001a90ad971d92a215deb7834ff38 | [] | no_license | mj-bvtc/pythonTest | 4fe66bdce084d241f2b2b7897bbe428c502fa08d | 310d3b7941529f3220be26270f97d48fe9dcb884 | refs/heads/master | 2021-01-22T18:15:14.349797 | 2019-12-06T17:07:06 | 2019-12-06T17:07:06 | 85,069,109 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | class Animal:
"""A living terrestrial being"""
def __init__(self):
self.lives_on_earth = None
| [
"mkreidler@bostonvalley.com"
] | mkreidler@bostonvalley.com |
95c32f5d492dd37ec907c20b70434043eaaa4f36 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/ec_12049-2808/sdB_ec_12049-2808_lc.py | 68bb7ff6420c7c638ac9f6ec4ea1b416a6eb7623 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[181.893542,-28.428025], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_ec_12049-2808/sdB_ec_12049-2808_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
1ef61ee7dd6b384e7beaa67286cb3c3483d4d6bf | 0e5291f09c5117504447cc8df683ca1506b70560 | /netbox_client/models/writable_vlan.py | d2079184ab447bed84b643382eebad0edc2be8c6 | [
"MIT"
] | permissive | nrfta/python-netbox-client | abd0192b79aab912325485bf4e17777a21953c9b | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | refs/heads/master | 2022-11-13T16:29:02.264187 | 2020-07-05T18:06:42 | 2020-07-05T18:06:42 | 277,121,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,272 | py | # coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class WritableVLAN(object):
"""NOTE: This class is auto generated by the swag... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
b316e37680c71c4c022c0517df433dcaf44d452b | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-ecs/huaweicloudsdkecs/v2/model/list_server_groups_page_info_result.py | 1af24edca19a97842d36eb0eee9e9d25477f7020 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 2,881 | py | # coding: utf-8
import pprint
import re
import six
class ListServerGroupsPageInfoResult:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8a55543e5813e761685b88eeede96adfdadcf69c | 5e4a25bce2f60ee87f580b64f62697ad9bbbaced | /0109-Convert-Sorted-List-to-Binary-Search-Tree/solution.py | 897c02b8c5139e1105b0b86873edb2b54cd812f1 | [] | no_license | Glitch95/InterviewPrep | e729b88826a257699da9ea07493d705490da7373 | b3a27d34518d77e1e4896af061f8581885ccfed0 | refs/heads/master | 2020-08-02T12:19:58.783302 | 2019-10-09T16:47:34 | 2019-10-09T16:47:34 | 211,348,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
def bst(arr, start, en... | [
"kaleshsingh96@gmail.com"
] | kaleshsingh96@gmail.com |
e6ded9db29412a1c8e25eb13fe366a73ea28d4e9 | 0f79a920cbbeb585d5207496f71ca4750b83bf0f | /bot/urls.py | a755f0d24863e1ee0e718aec4811cffc346ff8b5 | [
"MIT"
] | permissive | mitsei/CLIx_MiTiRobot | 2bf2ecb405a2f7dc0c1d5b306ebffcfbf2d49fb3 | 964a72f4d0b26d830f7fdaf731f692a1e03a7980 | refs/heads/master | 2020-04-09T14:42:00.708434 | 2018-02-22T15:53:11 | 2018-02-22T15:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | from django.conf.urls import url
from django.views.decorators.csrf import csrf_exempt
from . import views
urlpatterns = [
url(r'^$', csrf_exempt(views.index), name='index'),
]
| [
"bhanks@mit.edu"
] | bhanks@mit.edu |
c88eb38d4951801fcbdcfa455557b8b0de37f201 | 4abcde057e0f42390a84e0cd78dad7cae232b574 | /manage.py | ac171fd6ab7edd2d34d07f0e29f1ea3c53ce3d24 | [] | no_license | crowdbotics-apps/infinite-test-2-dev-2335 | 2ee4203c5379f4f59e2030c18c9241b772a4f5fa | d205faefc52b98250b066ae481a51cec326fd05f | refs/heads/master | 2021-07-22T00:28:36.243680 | 2020-04-03T17:25:44 | 2020-04-03T17:25:44 | 252,796,314 | 0 | 0 | null | 2021-06-18T22:37:31 | 2020-04-03T17:24:51 | Python | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "infinite_test_2_dev_2335.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
45ad517e3160e052f374c69c6ab82e0e162b322b | f4b75e06e456dbd065dc57f07d55a2f5ec4ad688 | /openstates/data/migrations/0042_delete_personcontactdetail.py | 3226e905dd5065421e87af97b5810efe099a17a0 | [
"MIT"
] | permissive | openstates/openstates-core | 19bf927a2e72c8808a5601f4454846acaf32218a | 3055632ea7ddab6432cc009989ffb437aed6e530 | refs/heads/main | 2023-09-05T10:30:58.866474 | 2023-09-01T15:43:59 | 2023-09-01T15:43:59 | 251,511,904 | 19 | 27 | MIT | 2023-09-06T19:30:03 | 2020-03-31T05:47:28 | Python | UTF-8 | Python | false | false | 299 | py | # Generated by Django 3.2.2 on 2021-10-13 19:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("data", "0041_personoffice"),
]
operations = [
migrations.DeleteModel(
name="PersonContactDetail",
),
]
| [
"dev@jamesturk.net"
] | dev@jamesturk.net |
1ebeba13fb08123c673b240c631b24d656dedbf6 | 5e6543d360396d02d2e9ae052a88997fde4af61d | /lingvo/core/ml_perf_log.py | d499f5b86d6758cc6dd9c099bf6e02fc9d2a52a8 | [
"Apache-2.0"
] | permissive | saswat0/lingvo | 58b0c044485fe89b33aca22a1c01e81d3be45c8a | 3d0418a896c21240bb75ce1dc4c906da5a6dc757 | refs/heads/master | 2022-12-06T19:24:08.679519 | 2020-09-02T14:30:29 | 2020-09-02T14:30:29 | 279,816,053 | 2 | 0 | Apache-2.0 | 2020-09-02T14:30:30 | 2020-07-15T08:49:42 | null | UTF-8 | Python | false | false | 2,455 | py | # Lint as: python3
# Copyright 2018 MLBenchmark Group. 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 requ... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5bd24a895d252fe524b989a59d660fe1b28db8fb | 3918bdddcd1c78f22f7b67e7864f5a5a914c7951 | /chapter_4/quicksort_randompivot_timer.py | bba7725e48a61c2c0dfc0572c8291944cbad8f14 | [] | no_license | mkoundo/grokking_algorithms | 33998c355b436ed0156e1f72e6dcc40b507bb329 | 3e7099b93cf4ba5b32d2cce2a451b819233e2c92 | refs/heads/master | 2022-12-08T05:09:39.087809 | 2020-08-19T14:41:03 | 2020-08-19T14:41:03 | 288,721,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | #! python3
# quicksort_randompivot.py
# Author: Michael Koundouros
"""
Ref: Chapter 4
Ref: Grokking Algorithms: An illustrated guide for programmers and other curious people, A. Bhargava, 2016.
Quicksort - A sorting routine using divide & conquer and recursion. Runtime is O(n log n)
Choose pivot at random
Assume list h... | [
"michael.koundouros@outlook.com"
] | michael.koundouros@outlook.com |
dbe488fb2101e341742c0a2d8980614f8522683e | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /L9nvCobbYyGgKpWi8_23.py | 160235b83b2da31e0ba3368c74fbfeace809d92a | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | """
Write two functions:
1. `to_list()`, which converts a number to an integer list of its digits.
2. `to_number()`, which converts a list of integers back to its number.
### Examples
to_list(235) ➞ [2, 3, 5]
to_list(0) ➞ [0]
to_number([2, 3, 5]) ➞ 235
to_number([0]) ➞ 0
### No... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
a2554617f9e76ce9866b289c8a09c0fa6cad6f0f | 1f2052bcd11f3f74b74ff94df4841cde171f0039 | /base/models.py | c1b2835fa282e45c434a8d2a2187328603853811 | [
"MIT"
] | permissive | pyprism/Hiren-Bookmark-Server | 90edda76c4d35c71b0b6c0c03e3d45b2a813693c | 7b2a899e99699399d09b13104e8ae3b6d3ab4cc2 | refs/heads/master | 2022-11-14T20:21:55.582660 | 2022-10-21T15:24:49 | 2022-10-21T15:24:49 | 32,663,532 | 1 | 1 | MIT | 2022-10-21T15:24:50 | 2015-03-22T05:38:59 | JavaScript | UTF-8 | Python | false | false | 966 | py | from django.db import models
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import BaseUserManager
class AccountManager(BaseUserManager):
def create_user(self, username=None, password=None, **kwargs):
account = self.model(username=username)
account.set_pa... | [
"git.pyprism@gmail.com"
] | git.pyprism@gmail.com |
635701c51e732c7d1aca93595b7adc834ba19e11 | 97a8da2b863521bdec9cc8b4a8e5fe15c875d524 | /axitom/__init__.py | eb2367afaba97d916feb31d65ff83a531f21ba75 | [
"MIT"
] | permissive | nik849/AXITOM | 7fb7aed6f8fa8a20c4bff2ed737e131f6ddb0f4c | 25f32ec69c467089d263f35f75f374c1de8f99b1 | refs/heads/master | 2020-07-28T18:55:17.659927 | 2019-09-06T10:28:11 | 2019-09-06T10:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from .backprojection import fdk
from .config import *
from .parse import *
from .phantoms import *
from .projection import forward_project
from .utilities import * | [
"sindre.n.olufsen@ntnu.no"
] | sindre.n.olufsen@ntnu.no |
12077fc0d79601eb666aa14e154fbca6b432eb3e | 66869778e8361fabff20ee8003521365bf5f67ae | /termicoder/cli/ls/__init__.py | 9fa2596641a8ab6521c6dc6c444a98ff52509c39 | [
"MIT"
] | permissive | termicoder/termicoder | 752d7c2d70d0258a14991430845f8a8b2c3b497a | e7938113c2090112c9190107266e0e31024500bc | refs/heads/master | 2021-06-29T17:26:39.599001 | 2018-10-14T11:57:36 | 2018-10-14T11:57:36 | 83,844,313 | 15 | 5 | MIT | 2019-10-10T15:18:50 | 2017-03-03T21:46:51 | Python | UTF-8 | Python | false | false | 817 | py | import click
from click_default_group import DefaultGroup
from . import contest
from . import folder
from . import running
from ...utils.logging import logger
from ...utils.exceptions import handle_exceptions
# view command has various subcommands
# default is termicoder view this
# TODO change default_if_no_args to... | [
"diveshuttamchandani@gmail.com"
] | diveshuttamchandani@gmail.com |
97614d71dc9af6b2642538c5ee3bfabb934fb43a | 1d450f4655ae63240e88b474b8a17c1e711e1a81 | /AttributesAndMethods/PhotoAlbum.py | cdb6a7aac3cf316ad3f7e49eb3a5c0db8e14f599 | [] | no_license | RuzhaK/PythonOOP | f2cb396390349e2aac605c90fd7a18039653cf5e | 68cbf321b5947b376459d7397aed36554347d256 | refs/heads/master | 2023-05-30T06:17:42.618984 | 2021-06-17T08:04:46 | 2021-06-17T08:04:46 | 371,284,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import math
class PhotoAlbum:
def __init__(self,pages):
self.pages=pages
self.photos=[[] for _ in range(pages)]
@classmethod
def from_photos_count(cls,photos_count: int):
return cls(math.ceil(photos_count//4))
def add_photo(self,label:str) :
for idx,page in enumerate(sel... | [
"rkaraatanasova@gmail.com"
] | rkaraatanasova@gmail.com |
d0669b6c8d5a893356f14fdc4b2387bd3fde30f5 | 8fe0eeb2b8e02036d4a76e1d27660c56d464e7e9 | /pageheadstate/tests/autopilot/pageheadstate/tests/test_main.py | 7be4be74ff470e1571d1150a5eba348945bfa118 | [] | no_license | UbuntuChina/pageheadstate | cd9d1b394fa5e0c67bba65831dadbf0318286d01 | 4e4b19fe48d7ec6c01f8d1f1a0820a6beaaafe7e | refs/heads/master | 2021-01-19T05:24:01.846412 | 2016-03-10T03:36:51 | 2016-03-10T03:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
from autopilot.matchers import Eventually
from testtools.matchers import Equals
from pageheadstate import tests
class MainViewTestCase(tests.BaseTestCase):
"""Tests for the mainview"""
def setUp(self):
super(MainViewTestCase,... | [
"liu_xiao_guo@yahoo.com"
] | liu_xiao_guo@yahoo.com |
cd47107a470d0f0ad4d81f1d4581d37d31a7fca1 | 6f1e1c378997bf76942ce6e203e720035169ce27 | /172-factorial-trailing-zeroes.py | 0b205d8225023846b59515176940016cb86f1bdd | [
"MIT"
] | permissive | yuenliou/leetcode | a489b0986b70b55f29d06c2fd7545294ba6e7ee5 | e8a1c6cae6547cbcb6e8494be6df685f3e7c837c | refs/heads/main | 2021-06-16T07:47:39.103445 | 2021-05-11T09:16:15 | 2021-05-11T09:16:15 | 306,536,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | #!/usr/local/bin/python3.7
# -*- coding: utf-8 -*-
class Solution:
def trailingZeroes(self, n: int) -> int:
"""
思路:问题转化成n分解成5的因子的个数,5
"""
res = 0
while n:
n = n // 5
res += n
return res
def main():
param = 125
solution = Solution()
... | [
"liuyuan@aplum.com.cn"
] | liuyuan@aplum.com.cn |
905d4105c3c7555786f925f92f001d47bff09490 | 2c00267fb582605ad6cc8071d10be1dbb623d012 | /venv/bin/pip3 | 10b59eff03d4478ae3a439da206e3fa949ce814b | [] | no_license | Abdulrahimch/coding_excersize | 14a741f070dbbbba295eea560407a8eface206e7 | f44f98f2943fe83ba791ead3110d4cb81cec7bac | refs/heads/master | 2023-02-24T23:01:52.282536 | 2021-01-21T13:24:57 | 2021-01-21T13:24:57 | 331,635,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | #!/home/cisco/PycharmProjects/coding_excercise/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"abooodch101@gmail.com"
] | abooodch101@gmail.com | |
4d7bf52de62c21700733600a5eaab247427ce4cb | 50dab5e3b8f74bc547977a60c152f3df65eed884 | /orders/order_database_manager.py | 4027d70599213533c891d4938d00f764989f799f | [] | no_license | Lennoard/online-shop-sample | a98e963b3dc237938e4c549dee39c35827620cf9 | 0a5d9011af52e61e74dd60541864a8585c17cecc | refs/heads/main | 2023-02-23T18:32:50.514439 | 2021-02-02T17:33:11 | 2021-02-02T17:33:11 | 330,277,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | # TODO: Proxima sprint -> persistência de dados
def get_orders():
pass
def save_order(order):
pass
def get_order(order_id):
pass
| [
"lennoardrai@gmail.com"
] | lennoardrai@gmail.com |
0307f93211fbc113bc43e0df6af040b1a33c323a | e3fc83e77e218f7b8df4b14b0753fd65afd4b923 | /downloaded_kernels/house_sales/parsed_kernels/kernel_322.py | b68441113e00629925250a11f71d170fbb3443d2 | [
"MIT"
] | permissive | jupste/wranglesearch | 982684fdaa7914af59758880fdc3a4ff3346477f | a6978fae73eee8ece6f1db09f2f38cf92f03b3ad | refs/heads/master | 2023-06-18T04:46:34.474046 | 2021-07-15T23:43:24 | 2021-07-15T23:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,202 | py | #!/usr/bin/env python
# coding: utf-8
# # House price prediction using multiple regression analysis
#
# # Part 1: Exploratory Data Analysis
#
# The following notebook presents a thought process of predicting a continuous variable through Machine Learning methods. More specifically, we want to predict house prices ba... | [
"jcamsan@rhino.csail.mit.edu"
] | jcamsan@rhino.csail.mit.edu |
1b97b61c7e3864f18af8e2c2d9d207665c4d248e | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/create_or_delete_publish_record_for_api_v2_request.py | 5a3c1e38d8a74367e155f2a115e5e3ddd5d647de | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | # coding: utf-8
import pprint
import re
import six
class CreateOrDeletePublishRecordForApiV2Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fb903a15da85f99727a837f813796531dd55872c | a40084dcc613a27be966940d00d222ad826e6149 | /netbox/secrets/forms.py | 2e08b0b22408efa6ce147801f5cee5f7c3c92d8f | [
"Apache-2.0"
] | permissive | inovex/netbox | 2e8340450e0fb3ac1712f21706e782fdc9b5a23a | ba1a4f06fff7c0f41dcfe4cb2ddf2c797f3f2bf8 | refs/heads/develop | 2021-01-19T12:52:53.772103 | 2017-04-10T14:55:05 | 2017-04-10T14:55:05 | 88,051,715 | 2 | 0 | null | 2017-04-12T12:55:28 | 2017-04-12T12:55:28 | null | UTF-8 | Python | false | false | 4,641 | py | from Crypto.Cipher import PKCS1_OAEP
from Crypto.PublicKey import RSA
from django import forms
from django.db.models import Count
from dcim.models import Device
from utilities.forms import BootstrapMixin, BulkEditForm, BulkImportForm, CSVDataField, FilterChoiceField, SlugField
from .models import Secret, SecretRole,... | [
"jstretch@digitalocean.com"
] | jstretch@digitalocean.com |
0f4c3c70e34efca6db73472ecde0d4d85e118935 | 05c86f7127df61993534f56c5c94c266fb0e4599 | /app/modules/core/activity.py | 974c101ddd7f4229e8f7826eeb1940aa765cefb9 | [
"BSD-3-Clause"
] | permissive | arxcdr/silverback | 88c0f28f9e0a18ff0accd50eba00ae7c5bba048d | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | refs/heads/master | 2020-08-02T10:15:46.136453 | 2019-10-01T08:23:20 | 2019-10-01T08:23:20 | 211,314,562 | 0 | 0 | BSD-3-Clause | 2019-09-27T12:29:22 | 2019-09-27T12:29:22 | null | UTF-8 | Python | false | false | 1,385 | py | """
Activity Module
"""
# Local Library
from app.modules.entity.activity_entity import ActivityEntity
class Activity():
__activity_entity = None
def __init__(self):
self.__activity_entity = ActivityEntity()
def get_one_by_id(self, id):
activity = self.__activity_entity.get_one_by_id(id... | [
"hello@clivern.com"
] | hello@clivern.com |
6a73dc8eada0935c7430204163a333e09949e12b | 7d8cceea2d82e5069dd1f5f99ae487b07e977a2a | /user_app/app.py | 0d7887b98c2c9d33288257fa58562b7be960dec6 | [] | no_license | thingsroot/user_apps_example | af8e34d6741e4def0327adcc3963880ee5425dfc | 708bdea217f274f27000e50c753bf14d3839c674 | refs/heads/master | 2020-03-29T08:51:11.565486 | 2019-10-18T02:31:55 | 2019-10-18T02:31:55 | 149,729,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py |
from __future__ import unicode_literals
import sys
import logging
from utils import _dict
from flask import Flask, request, json
console_out = logging.StreamHandler(sys.stdout)
console_out.setLevel(logging.DEBUG)
console_err = logging.StreamHandler(sys.stderr)
console_err.setLevel(logging.ERROR)
logging_handlers = [... | [
"dirk@kooiot.com"
] | dirk@kooiot.com |
1e6c3d805fa9280a62b51effe7214d4aa1265214 | 11a39b9558fdf7d2bceabc67eb3628daedfb0bc9 | /apps/jetpack/management/__init__.py | 08960a6c2bef11d008eba84699aa656a921aef0b | [] | no_license | davedash/flightdeck | f7fe8e505b4db82992b4d05220798d0f7d607a6c | c68c77a869269b1584e30443a89a2910f3f90edb | refs/heads/master | 2021-01-16T21:13:39.890492 | 2011-06-10T23:08:01 | 2011-06-10T23:08:01 | 1,122,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,845 | py | " Predefined for all Jetpack commands "
import os
import simplejson
import shutil
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist
from django.conf import settings
from jetpack.models import Package, PackageRevision, SDK
from person.models import Profile
from utils.exc... | [
"piotr@zalewa.info"
] | piotr@zalewa.info |
8685f43fdfd0d32533c816c4099bba5215451496 | ddb09330eb51f823c1dc66617b363affd4e23290 | /python/20190311/my_djangos/django_vote_app/polls/admin.py | cc68ae6cbe05c141a533620e9905e65db04effa6 | [
"MIT"
] | permissive | kinghaoYPGE/career | 9df8a1d5303f2981ba0116fa60284945cec03bfd | 50260f6ccf874c7c5f7af23f02ed823645ea7898 | refs/heads/master | 2020-04-04T11:19:44.480173 | 2019-04-17T14:31:37 | 2019-04-17T14:31:37 | 155,886,969 | 3 | 4 | MIT | 2019-03-21T09:12:01 | 2018-11-02T15:39:31 | CSS | UTF-8 | Python | false | false | 657 | py | from django.contrib import admin
from .models import Question, Choice
# admin.site.register(Question)
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
# fields = ['pub_date', 'question_text']
fieldsets = [
('Text information', {'fields... | [
"kinghao1020437855@163.com"
] | kinghao1020437855@163.com |
2651e62cf676d1bf6e35ba078b4c56b6c2430894 | 0738d9f85b98a7e30d7f33b4fe94ceb58f44b123 | /Basic Programming/Dimik oj/Python3/প্রোগ্রামিং সমস্যা 9 - [৫২ সমস্যা বই] পূর্ণবর্গ সংখ্যা.py | a957bbf9cb3e96171bcd22d623155b4af9e66c0e | [] | no_license | arifkhan1990/Competitive-Programming | e51606b6bafc0671e8799df4297529b27eb6488e | 9b8ca6e8f2ec4c74ea314e8d80657ac97489a315 | refs/heads/master | 2022-10-28T19:31:16.818123 | 2022-10-14T21:32:51 | 2022-10-14T21:32:51 | 199,027,360 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # Name : Arif Khan
# Judge: Dimik Oj
# University: Primeasia University
# problem: প্রোগ্রামিং সমস্যা 9 - [৫২ সমস্যা বই] পূর্ণবর্গ সংখ্যা
# Difficulty: Easy
# Time Complexity: 0.3006 সেকেন্ড
# ... | [
"arifkhanshubro@gmail.com"
] | arifkhanshubro@gmail.com |
57fa1444aeaa376cee1543ae85d059aea735cf3c | de428c011b56db862f05ec0ceab17b85f83f94b1 | /print_items.py | 591eb3f248bbb0a693adc66d26a144f0e3515377 | [] | no_license | risooonho/python-2d-game | c6d1fceaf09c72a6f7573230a4a899bf79164b7f | 24b02646ed56f9017069b243b774e0ee46951aea | refs/heads/master | 2021-05-17T06:02:13.538699 | 2020-02-15T23:59:54 | 2020-02-15T23:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | #!/usr/bin/env python3
from typing import List, Tuple, Optional
from pythongame.core.common import ItemType
from pythongame.core.item_data import randomized_item_id, create_item_description, get_items_with_category, \
get_optional_item_level, ItemData, build_item_name
from pythongame.core.item_inventory import Ite... | [
"jonte.murray@gmail.com"
] | jonte.murray@gmail.com |
369d1de91cd0454b4edb04db0a04611c9ca2d352 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Pdf_docx_pptx_xlsx_epub_png/source/reportlab/platypus/tableofcontents.py | b0c1b406855feb9e581f6c0d3c6ac455ed6a0e23 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 21,298 | py | #Copyright ReportLab Europe Ltd. 2000-2017
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/platypus/tableofcontents.py
__version__='3.3.0'
__doc__="""Experimental class to generate Tables of Contents easily
This module defines a single Tabl... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
dbf6137b296d0f47e106a88d063c56e87e60f4e6 | 47bd686ab04d8f6daba2097875dfefdba967d598 | /18_programmers/programmers_33.py | 7b61886f5857e1b8178d9f2b528236fb1edb4be4 | [] | no_license | EmjayAhn/DailyAlgorithm | 9633638c7cb7064baf26126cbabafd658fec3ca8 | acda1917fa1a290fe740e1bccb237d83b00d1ea4 | refs/heads/master | 2023-02-16T17:04:35.245512 | 2023-02-08T16:29:51 | 2023-02-08T16:29:51 | 165,942,743 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | # https://school.programmers.co.kr/learn/courses/30/lessons/120891
# programmers, 코딩테스트 입문
def solution(order):
answer = 0
order = str(order)
for s in order:
if s in ['3', '6', '9']:
answer += 1
return answer
if __name__=='__main__':
test_set = [3, 29423]
for test in test... | [
"emjay.data@gmail.com"
] | emjay.data@gmail.com |
186a902ebf42606a5f30199d783c4c6ccd0bf4cb | d7016f69993570a1c55974582cda899ff70907ec | /sdk/storage/azure-mgmt-storagecache/generated_samples/caches_update.py | fe6e34db445b581b6c0f0be505273883b526b354 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,553 | 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"
] | kurtzeborn.noreply@github.com |
f8390ef457f6dec8c26c8b748c1bad7d770e2263 | 4099874b184134618724eb99a1a907dfd86d4ea8 | /nova/tests/virt/hyperv/test_rdpconsoleutils.py | 2818e5280571d5cc76d696fa72e3a78ea96e93f3 | [
"Apache-2.0"
] | permissive | shahar-stratoscale/nova | 809e710e2744ec31ffd351ada692356089ddb4c1 | 5a4581a2e219669c7841a59acf2f42686e319840 | refs/heads/master | 2021-01-16T21:26:37.503025 | 2014-09-18T00:58:59 | 2015-04-14T08:27:08 | 33,251,708 | 0 | 1 | Apache-2.0 | 2023-08-15T09:20:06 | 2015-04-01T14:19:07 | Python | UTF-8 | Python | false | false | 1,102 | py | # Copyright 2013 Cloudbase Solutions Srl
#
# 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 ... | [
"apilotti@cloudbasesolutions.com"
] | apilotti@cloudbasesolutions.com |
a4ffc456d658a6d303cda4db7da10b9f2892250f | 5943b469fa8683f5eb8be07d595c56636c8a58e8 | /18.4_sum.py | de09ad738ff06f889f65a1c538e3051a8d592eac | [] | no_license | tonyxuxuxu/Leetcode-Training | cd80f7af842639209ba989363b3ef04ea42e941c | 3660b4f96b74df91e0e635cd7d427bbf70819edd | refs/heads/master | 2020-03-21T09:35:46.711196 | 2018-09-11T09:47:32 | 2018-09-11T09:47:32 | 138,407,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | """
Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.
Note:
The solution set must not contain duplicate quadruplets.
Example:
Given array nums = [1, 0, -1, 0, -2... | [
"tonyxu0124@yahoo.com"
] | tonyxu0124@yahoo.com |
a94a10d7108ceedefc9f83c0af769a8994c92d5b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02574/s302773464.py | 3e4c4e4b564ca32399037c5644263ea3bd81aa75 | [] | 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 | 589 | py | from sys import stdin
readline = stdin.buffer.readline
def r_map(): return map(int, readline().rstrip().split())
def r_list(): return list(r_map())
def main():
N = int(readline().rstrip())
A = r_list()
M = max(A)
d = [0] * (M + 1)
g = True
for a in A:
d[a] += 1
for i in range(2, M +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f37e0513a70b55cf8c50487180b2df271455cd71 | 805a795ea81ca8b5cee1dec638585011da3aa12f | /MAIN/2.79/python/lib/test/test_winsound.py | 4a8ab7de582c10ed00e95da03773279f058418e2 | [
"Apache-2.0"
] | permissive | josipamrsa/Interactive3DAnimation | 5b3837382eb0cc2ebdee9ee69adcee632054c00a | a4b7be78514b38fb096ced5601f25486d2a1d3a4 | refs/heads/master | 2022-10-12T05:48:20.572061 | 2019-09-26T09:50:49 | 2019-09-26T09:50:49 | 210,919,746 | 0 | 1 | Apache-2.0 | 2022-10-11T01:53:36 | 2019-09-25T19:03:51 | Python | UTF-8 | Python | false | false | 3,575 | py | # Ridiculously simple test of the winsound module for Windows.
import functools
import os
import subprocess
import time
import unittest
from test import support
support.requires('audio')
winsound = support.import_module('winsound')
# Unless we actually have an ear in the room, we have no idea whether a sound
# act... | [
"jmrsa21@gmail.com"
] | jmrsa21@gmail.com |
5137cc482dc427fbd44ee31618fc67d9c462a47f | f3040bc6962eb5c7890662a23e18d96bd5fd3942 | /competitive coding/singlyLinkedList.py | f55d1cdaf0af63bfc5b40b03c1fb34695a43cbbc | [] | no_license | h0axyboi/practice-scripts | 08f5e036d3d58ac888ae830b8763c3f86601643a | 5d146102481036dfb43f05c7ba23bed9d698c2f0 | refs/heads/master | 2023-04-14T18:23:25.024604 | 2021-05-01T14:51:56 | 2021-05-01T14:51:56 | 292,655,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | class Node:
def __init__(self,data):
self.data=data
self.next=None
class LinkedList:
def __init__(self):
self.head=None
def insert_end(self,nextNode):
if self.head is None:
self.head=nextNode
else:
currentNode=self.head
while True... | [
"sabari15krishna@gmail.com"
] | sabari15krishna@gmail.com |
de84a50ae2cef23825bbaf07ade454d9cdd84229 | 88332700e893553ed52247b83f7ae8e542e67239 | /test/test_rest_version_nagiosplugin.py | 8a14699c4460032aab7ec822726cbacb696a46e6 | [] | no_license | zhuohuwu0603/pylib | 3857a8ec3954d09e58c21c14d683bc95cb7f9d23 | 02b0a343b055dfd6bed4d64c40aa77ed8394c1b2 | refs/heads/master | 2020-08-12T02:55:35.956301 | 2019-10-09T23:08:58 | 2019-10-09T23:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | # vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2014-09-15 20:49:22 +0100 (Mon, 15 Sep 2014)
#
# https://github.com/harisekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
# to help ... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
711ce63dab41b1a4e124e0abcd02bfc7c338c853 | 64a000d42240493e054c39528efca48aca19998a | /distributed/http/utils.py | 19aa834c214ed13efd17ab118f8ba957e772c95e | [
"BSD-3-Clause"
] | permissive | dask/distributed | 1ee853c7d1273a421601247954d242d21330bd3d | ec40daa12dc690e4e33dbe12dc40488633e0f67b | refs/heads/main | 2023-08-30T12:17:49.467926 | 2023-08-29T16:51:52 | 2023-08-29T16:51:52 | 42,408,083 | 1,534 | 982 | BSD-3-Clause | 2023-09-14T17:21:47 | 2015-09-13T18:42:29 | Python | UTF-8 | Python | false | false | 1,184 | py | from __future__ import annotations
import importlib
import os
import toolz
from tornado import web
from distributed.utils import has_keyword
dirname = os.path.dirname(__file__)
class RequestHandler(web.RequestHandler):
def initialize(self, dask_server=None, extra=None):
self.server = dask_server
... | [
"noreply@github.com"
] | dask.noreply@github.com |
4863592b4b5380ac32ca4c446e894cbbb3c31c17 | 67f61e55d4d74a76deef5b826e9cb6c1d9e53c58 | /externals/depot_tools/recipe_modules/bot_update/api.py | 34414257c87dfc817a67900f78e5d6777f6f5543 | [
"BSD-3-Clause",
"MIT"
] | permissive | mono/linux-packaging-skiasharp | e7d0478b0c34c80f341e0224041e3dc076e13d41 | 47dbb2ff9ae01305b190f409ccea00b3b4f0bc79 | refs/heads/master | 2023-08-23T10:22:57.751473 | 2017-04-25T14:28:46 | 2017-04-25T14:28:46 | 89,267,865 | 1 | 5 | MIT | 2020-04-08T02:40:44 | 2017-04-24T17:23:42 | C++ | UTF-8 | Python | false | false | 13,418 | py | # Copyright 2014 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.
"""Recipe module to ensure a checkout is consistent on a bot."""
from recipe_engine import recipe_api
class BotUpdateApi(recipe_api.RecipeApi):
def __... | [
"joshield@microsoft.com"
] | joshield@microsoft.com |
6b0a1921a1c4f63a45f471dacb7c521c4404dbf2 | 01175abc7d44d788a322ad2c6cdc7ea5daee4165 | /vistrails_current/vistrails/core/db/locator.py | 7a54f0c60c77ca6153b42a6ce355a5748cd6c254 | [
"BSD-3-Clause"
] | permissive | lumig242/VisTrailsRecommendation | 917c53fbd940b3075e629d15ed41725c01db6ce3 | 23ef56ec24b85c82416e1437a08381635328abe5 | refs/heads/master | 2020-04-11T01:20:50.193303 | 2016-01-20T23:30:10 | 2016-01-20T23:30:10 | 50,065,923 | 3 | 0 | null | 2016-01-20T22:49:17 | 2016-01-20T22:49:17 | null | UTF-8 | Python | false | false | 31,282 | py | ###############################################################################
##
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## "Redistribution and use in source and binary for... | [
"you@example.com"
] | you@example.com |
8fdc6b703c2650cd743bed91ced85fc4c2c36ce1 | d482b593d7e773b35551e0d6905ed652c8fef272 | /utg/migrations/m_0005_remove_time_participle_property.py | d9fe179da3420444d42a02815317b0cb2d5d72b1 | [
"BSD-3-Clause"
] | permissive | gridl/utg | f69cc027f4e4ea21fec91a25481dc51dd759e597 | b6a25cc99fcf629653369e216c993336a5d2167f | refs/heads/master | 2021-05-17T00:42:38.315311 | 2019-10-12T17:26:20 | 2019-10-12T17:26:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | # coding: utf-8
# receive and return only serialized data
def migrate(word_data):
if word_data['type'] != 4:
return word_data
if '5' in word_data['properties']:
del word_data['properties']['5']
return word_data
| [
"a.eletsky@gmail.com"
] | a.eletsky@gmail.com |
d097859196bbea9627d9658849658b67e060f9fd | e57d7785276053332c633b57f6925c90ad660580 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_07_01/operations/_gallery_sharing_profile_operations.py | 26c36521106ab3dd5d6867d55cf631b9fd2996f9 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 8,664 | 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"
] | adriananeci.noreply@github.com |
96c34dae1034f98bed48e377f57f32aec2c65626 | e5b8a5d93989dd53933c5cd417afa8b2a39ad307 | /ultracart/models/coupon_tiered_percent_off_items.py | 44eedd219430abf58bb292e0cc7f86e2f2197c65 | [
"Apache-2.0"
] | permissive | gstingy/uc_python_api | f3586bfce9c962af2e8c1bc266ff25e0f1971278 | 9a0bd3f6e63f616586681518e44fe37c6bae2bba | refs/heads/master | 2020-03-28T11:13:22.537641 | 2018-09-10T17:07:59 | 2018-09-10T17:07:59 | 148,190,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class CouponTieredPercentOffIte... | [
"perry@ultracart.com"
] | perry@ultracart.com |
fcfef0b4c0aba2697180530ca3fe6804f5efc81a | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/the-smallest-difference.py | f5a01b921fb5debea185194107893292af3f44fa | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | class Solution:
# @param A, B: Two lists of integer
# @return: An integer
def smallestDifference(self, A, B):
if not A or not B:
return 0
A.sort()
B.sort()
ans, i, j = sys.maxint, 0, 0
while i < len(A) and j < len(B):
ans = min(ans, abs(A[i] -... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
ce52479aabd6e20b52df5c7fbdf37336890ce438 | 22bf910b64283b3c15cc4d80542e83fa89e9f09d | /monero_glue/messages/MoneroLiveRefreshStartRequest.py | 0eb390c55bdb9459cf9f21e2c41030849215292a | [
"MIT"
] | permissive | ph4r05/monero-agent | 24ed1aa17d6616b2ae6bcdb7b9997f982f8b7b5d | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | refs/heads/master | 2022-10-18T06:30:43.550133 | 2021-07-01T16:27:56 | 2021-07-01T16:27:56 | 126,215,119 | 24 | 5 | MIT | 2022-09-23T22:53:44 | 2018-03-21T17:18:21 | Python | UTF-8 | Python | false | false | 749 | py | # Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class MoneroLiveRefreshStartRequest(p.MessageType):
MESSAGE_WIRE_T... | [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
5a3ee5ed640ba710ffe38a5746b3e570c452e4ca | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/dceoutsidelinks_448ca86781afc72591d4b730ba434c0d.py | 12fd2081a098327c0db3dfea316a4f8450230db0 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 7,444 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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 use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
cf8e643565af9d06ff36be78da64546ab32f5b7a | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /SW_expert/sw_5251_최소이동거리.py | 6aaf7bd444ca9f72c51b010877473be145ecfb42 | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import sys
sys.stdin = open('./input/input_5251.txt', 'r')
TC = int(input())
for tc in range(TC):
V, E = map(int,input().split())
G = {i : [] for i in range(V+1)}
for _ in range(E):
s,e,c = map(int,input().split())
G[s].append([e,c])
INF = float('inf')
dist = [INF] * (V+1)
sele... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
a85397f986fc41dbd4131d63801657f033fe2a51 | 71c7683331a9037fda7254b3a7b1ffddd6a4c4c8 | /Phys/BsJPsiKst/ganga/gangaSubmit_2012_down.py | 6e78be884e4f3cbab5fdf4716218c292a3b22fb3 | [] | no_license | pseyfert-cern-gitlab-backup/Urania | edc58ba4271089e55900f8bb4a5909e9e9c12d35 | 1b1c353ed5f1b45b3605990f60f49881b9785efd | refs/heads/master | 2021-05-18T13:33:22.732970 | 2017-12-15T14:42:04 | 2017-12-15T14:42:04 | 251,259,622 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | print "Create job"
job=Job(application=DaVinci(version='v33r0p1') , name ='downDimuon' )
print "Specify option files"
job.application.optsfile = ['/lhcb/users/oleroy/public/walaa/code/20121010/BuBdBs_NTUPLE_maker.py']
job.outputsandbox = ['DTT.root'] # Use
#job.outputdata = ['DTT.root'] # if no enough space on lxplu... | [
"liblhcb@cern.ch"
] | liblhcb@cern.ch |
3402e838681f12c4ee7a8e806f0293928f417335 | 696c1a00fbf09da67c37de2406c5394a5edcb166 | /scripts/subset_data/create_subsetData.py | de7d9738bd36d77f91503ee690bba0efc0348945 | [] | no_license | mengyx-work/xgboost_hyperopt | 7f52c5aa3fff81d029e3879630b373d79c4155bb | bbd80c489cb308309d45f1de1cc2676b13e29b6b | refs/heads/master | 2021-01-15T15:41:38.622028 | 2017-05-14T21:05:46 | 2017-05-14T21:05:46 | 55,736,994 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | import os, sys
import pandas as pd
import numpy as np
from os.path import join, isfile
fea_data_path = '/home/ymm/kaggle/bosch/full_data_FE_cross_fit_xgb_models/final_xgb_models/combined_xgb_models_038'
data_path = '/home/ymm/kaggle/bosch_data/bosch_processed_data'
#train_file_name = 'bosch_combined_train_data.csv'
te... | [
"ymeng.ucla@gmail.com"
] | ymeng.ucla@gmail.com |
774414744ded843d5dabcd05e4ce975928733f74 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/classification/FixRes/main_resnet50_scratch.py | 30157dca585775f8305a1d1e1426f2c48c4889f2 | [
"CC-BY-NC-4.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,394 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
436095c7a5b4b9cf2bca32de9a0f3ba914efd7ff | ee5c9849ee189bcaf6650dec6919708df6db6605 | /tensorflow_asr/models/contextnet.py | 0d80b02dc400664ab0a25c241ccf8e5e9fa58ba6 | [
"Apache-2.0"
] | permissive | Sar-Dar/TensorFlowASR | c0dc8bf3c709ee4ab6092dfb8c3ad058ba973d63 | 3eac6c0bbafa1a1149036b4175f83ddaa46f4e3d | refs/heads/main | 2023-02-03T03:05:48.847997 | 2020-12-25T05:55:57 | 2020-12-25T05:55:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,340 | py | # Copyright 2020 Huy Le Nguyen (@usimarit)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"nlhuy.cs.16@gmail.com"
] | nlhuy.cs.16@gmail.com |
78b2ddc8dd594334dc20414cc3578fe112c35a3e | fba45f3289a6de51eb7a9bfbee90d566181963b5 | /pagemat/lib/python3.6/site-packages/paypal/standard/pdt/south_migrations/0006_auto__chg_field_paypalpdt_custom__chg_field_paypalpdt_transaction_subj.py | 5833a4a9476cbdd9f0e6d176649eceb156432b92 | [
"MIT"
] | permissive | bharatpurohit97/PageMatrix | abb580787aecf656e5ff27f0c9d75e89f16e905d | 66ab9b1dd365a34f86dba110fe97c32cb7137bf2 | refs/heads/master | 2022-12-12T01:50:47.230219 | 2018-12-19T09:20:05 | 2018-12-19T09:20:05 | 162,409,793 | 1 | 0 | MIT | 2022-12-08T02:28:13 | 2018-12-19T08:54:22 | Python | UTF-8 | Python | false | false | 15,425 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'PayPalPDT.custom'
db.alter_column(u'paypal_pdt', 'cust... | [
"006.rajpurohit@gmail.com"
] | 006.rajpurohit@gmail.com |
9837d9e0cbe12006d6680d6acb9dd5bbce59dbfd | 091e97bcfe5acc0635bd601aa8497e377b74d41a | /docker/oso-host-monitoring/src/vendor/prometheus_client/core.py | 720efe6ac5b2c5a1d4e75eea3b44b27aee0fef90 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | openshift/openshift-tools | d59b63778f25cb8fb3c7a0253afe22a173e72f9d | e342f6659a4ef1a188ff403e2fc6b06ac6d119c7 | refs/heads/prod | 2023-08-30T01:52:04.108978 | 2022-03-23T21:07:28 | 2022-03-23T21:07:28 | 36,827,699 | 170 | 254 | Apache-2.0 | 2022-06-16T12:11:51 | 2015-06-03T20:09:22 | Python | UTF-8 | Python | false | false | 23,956 | py | #!/usr/bin/python
from __future__ import unicode_literals
import copy
import math
import re
import time
import types
try:
from BaseHTTPServer import BaseHTTPRequestHandler
except ImportError:
# Python 3
unicode = str
from functools import wraps
from threading import Lock
_METRIC_NAME_RE = re.compile(r'... | [
"mwoodson@redhat.com"
] | mwoodson@redhat.com |
320f0ec7ae7cb35dfc7c5ecb56278629595bc6d5 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_203/535.py | 129e697e39731d6156e73e870f727978442875a8 | [] | 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 | 2,116 | py | import os
from copy import deepcopy
def reader(file):
f_out = file[:-2] + "out"
if os.path.isfile(f_out):
with open(f_out, 'w') as f: # clear the output file
f.write('')
with open(file, 'r') as f:
T = int(f.readline())
for t in range(T):
r, c = ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0215b5462d595ce26493b4dfdd7b2aad12a5e63f | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/sharepoint/tenant/administration/theme_properties.py | 70c20753be3eb155555547f3ac2b0315cc21460c | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 218 | py | from office365.sharepoint.base_entity import BaseEntity
class ThemeProperties(BaseEntity):
@property
def entity_type_name(self):
return "Microsoft.Online.SharePoint.TenantManagement.ThemeProperties"
| [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
9b5d4b865b75ab27c41e1d4ef340162cf0344e9e | 159aed4755e47623d0aa7b652e178296be5c9604 | /data/scripts/templates/object/draft_schematic/space/weapon/shared_wpn_light_blaster_green.py | 1fc08a9e541404dc65e34379da7575a46a60bdf7 | [
"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 | 465 | 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/weapon/shared_wpn_light_blaster_green.iff"
result.at... | [
"rwl3564@rit.edu"
] | rwl3564@rit.edu |
d4f5d054080a30e70568442bdbcae109bba99782 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /HDGiiCmSgJeeu3388_9.py | 04989698fe4da04199cd4ef98af5c421cca53cd4 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | """
A fuse melts when a current in an electrical device exceeds the fuse's rating,
breaking the circuit and preventing the heat from building up too much (which
can cause a fire). The ideal fuse to choose is **higher** than the device's
current output, yet **as close as possible** to it as well.
Given a list of _fu... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1615a14895c67ab3f635a653310e6c81a3e4f74a | bd2c2f1c0c2c90992b2edf12c09fe82f9bd98c8f | /activo_fijo/models/account_asset.py | 4fe36c37640e6b71946e15bc2cb5d130d8b6eb29 | [] | no_license | Makelator/ccia-itgrupo | 4e966f3232081b37fa1e4621026a4e21817fa5c8 | dee0f408ef964e216766652830fd4d6af9c533e1 | refs/heads/master | 2020-06-28T16:17:08.438192 | 2019-08-14T18:36:59 | 2019-08-14T18:36:59 | 200,279,452 | 1 | 1 | null | 2019-08-06T03:57:09 | 2019-08-02T18:18:53 | JavaScript | UTF-8 | Python | false | false | 89,274 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import calendar
from datetime import date, datetime
from dateutil.relativedelta import relativedelta
from odoo import api, fields, models, _
from odoo.exceptions import UserError, ValidationError
from odoo.tools import ... | [
"angel_afla@hotmail.com"
] | angel_afla@hotmail.com |
363c9baa2ffb3f251324403e052075cc413d9f6c | 5faafe0b6da50332d02859db2e6c92f27e599de3 | /le2m/questcomp/questcompgui.py | d99307f770236c72f2d8d6e14e6be57973d6cb08 | [] | no_license | dimdub34/le2m-v2.1 | e2dc7e5d0ac9c422d65f08d8350c8be89ba266a5 | 97880d470b0f130250ca15ab153a945ab32f4969 | refs/heads/master | 2020-04-12T05:32:59.820746 | 2020-03-10T08:06:41 | 2020-03-10T08:06:41 | 50,585,248 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,948 | py | # -*- coding: utf-8 -*-
from PyQt4 import QtGui, QtCore
import os
import logging
import random
from xml.etree import ElementTree
import questcomputil
from questcompui import questcompquest, questcompquestedit, \
questcompscreen
from questcomputil import qctrans
import questcompmod
logger = None
class GuiQuestCo... | [
"dimitri.dubois@umontpellier.fr"
] | dimitri.dubois@umontpellier.fr |
c9676837eb6a69c69a606bee153b8348c3fb095e | 9472c7d1608e318e46214f231773fbb3f33de0f1 | /kats/models/reconciliation/__init__.py | 74d6fc7a80ed76d3942fcf2dc71cac0234491686 | [
"MIT"
] | permissive | facebookresearch/Kats | 16eee984bc1c482bd709cb5d62c226d4ad85f216 | 00ab9a3db27218b4817eae2e05dc602e437f634f | refs/heads/main | 2023-08-30T23:33:12.654847 | 2023-08-25T16:02:04 | 2023-08-25T16:02:04 | 342,388,745 | 4,514 | 517 | MIT | 2023-09-14T15:28:43 | 2021-02-25T21:51:06 | Python | UTF-8 | Python | false | false | 227 | py | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from . import base_models, thm # noqa # noqa
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3d8d30c470b0030e773b0d49c6fb531e5397baa3 | aca4f00c884e1d0e6b2978512e4e08e52eebd6e9 | /2021/atcoder.jp/abc/191/proa.py | 48e78f20bdb0006388ba2435b15d45f960f637d7 | [] | no_license | jki14/competitive-programming | 2d28f1ac8c7de62e5e82105ae1eac2b62434e2a4 | ba80bee7827521520eb16a2d151fc0c3ca1f7454 | refs/heads/master | 2023-08-07T19:07:22.894480 | 2023-07-30T12:18:36 | 2023-07-30T12:18:36 | 166,743,930 | 2 | 0 | null | 2021-09-04T09:25:40 | 2019-01-21T03:40:47 | C++ | UTF-8 | Python | false | false | 405 | py | def solution(v, t, s, d):
p, q = t * v, s * v
if d >= p and d <= q:
print('No')
else:
print('Yes')
def main():
while True:
try:
v, t, s, d = [int(i) for i in raw_input().strip().split()]
solution(v, t, s, d)
except EOFError:
break
... | [
"jki14wz@gmail.com"
] | jki14wz@gmail.com |
0adc7c428ee4bd2810ffbb9d05eedf08dd17c5c0 | 7544b9f1b334e50b788ec0fea8e711b5d19585b7 | /handy_helper/settings.py | 7ba297e1fdc0a8925b970ce9a9d80b411cfb20e4 | [] | no_license | HarmsA/practice-two | 8cdee607d341b92297150642f1266c78845e669b | 9890163ddcccf4d024cba780599bbf763900e081 | refs/heads/master | 2020-04-14T06:57:26.292887 | 2018-12-31T22:27:16 | 2018-12-31T22:27:16 | 163,699,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | """
Django settings for handy_helper project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"harms2a@gmail.com"
] | harms2a@gmail.com |
642909a9851975cb54efa38307347fa31981e23b | 8d9318a33afc2c3b5ca8ac99fce0d8544478c94a | /Books/Casandra DB/opscenter-5.1.0/lib/py-unpure/twisted/plugins/twisted_web.py | c8d9f92c59701616cb6bfd50c7dd169a7101c2ea | [] | no_license | tushar239/git-large-repo | e30aa7b1894454bf00546312a3fb595f6dad0ed6 | 9ee51112596e5fc3a7ab2ea97a86ec6adc677162 | refs/heads/master | 2021-01-12T13:48:43.280111 | 2016-11-01T22:14:51 | 2016-11-01T22:14:51 | 69,609,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a9b03d5b05d9392edc279c254a182a50f25ba22f9bbc4f17429dbdf5207ae99f
size 322
| [
"tushar239@gmail.com"
] | tushar239@gmail.com |
cfdb5d452a6534a4a77cb12497e9b0a4747948f8 | 253e75099afeb4385e863aad6918dbcf8fb6fbb2 | /config.py | aa90e00e3dec2cc71e72b373067049860cf4dfef | [
"Apache-2.0"
] | permissive | RobertMarton/seq2seq-keyphrase-pytorch | c810fcba7b70fcaba314bd4dc3dc33b27ca7929f | eeec2b803a495c4386926a60c81f9f50122e2a8c | refs/heads/master | 2020-03-24T00:07:50.945295 | 2018-07-23T01:24:31 | 2018-07-23T01:24:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,281 | py | import logging
import os
import sys
import time
def init_logging(logger_name, log_file, stdout=False):
formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(module)s: %(message)s',
datefmt='%m/%d/%Y %H:%M:%S' )
print('Making log output file: %s' % log_file)
pr... | [
"memray0@gmail.com"
] | memray0@gmail.com |
97cd2e76d2c24bbc051a61d9cef4ac3fdb3bd03a | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/pygments/lexers/boa.py | ce5e09be026e23b5b5a6b8c669421eb7bef82fee | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,963 | py | """
pygments.lexers.boa
~~~~~~~~~~~~~~~~~~~
Lexers for the Boa language.
:copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import re
from pygments.lexer import RegexLexer, words
from pygments.token import String, Comment, Keyword, Name... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
039ca11352d6dc3aebe761266a2772f69d0e975c | 08de348b667e45225a09c76e32fc61581a657ee1 | /prescriptions/backend/migrations/0005_patient_allergies.py | b035180e5f0cc763244d6662a06647d881c574d4 | [] | no_license | JoeTanto2/SimpleOrder1 | d676d34028642ccd38036d01194095029e19ff53 | 9a813c11292af755b560235cda0779d385a2c768 | refs/heads/main | 2023-07-24T02:24:38.309233 | 2021-09-04T16:51:50 | 2021-09-04T16:51:50 | 403,098,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # Generated by Django 3.2.6 on 2021-08-29 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0004_auto_20210829_1527'),
]
operations = [
migrations.AddField(
model_name='patient',
name='allergies',
... | [
"77851879+JoeTanto2@users.noreply.github.com"
] | 77851879+JoeTanto2@users.noreply.github.com |
ec6b00e84829935e4254749fdb2ea9a5e9faf241 | e42795111492d7a2e01e04a476935e40dcde0129 | /tensorflow_probability/python/bijectors/affine_linear_operator_test.py | e7c616f8dec203d4955f8bcb26e40c0f225d4a41 | [
"Apache-2.0"
] | permissive | khaychuk/probability | e804a796394fc2d558ff0e69f93c26b0f2008f10 | 862c005e23c2b2a39c9e20213ca9c290588e14b6 | refs/heads/master | 2020-05-19T23:21:08.093243 | 2018-10-02T20:34:23 | 2018-10-02T20:34:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,859 | 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... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
7416a5a27aca02bc88d4a1839762499cddd04036 | e0768e16b5e7d4dd8a7ad5a6e4832b625f14fbdc | /QiEFengXun/spiders/main.py | 012596a19ab524ac571e3a4702ecd1c208bd881e | [] | no_license | beautifulmistake/WeTest | 92c53f5da77adffa1190ee2da49a1e72f01ee161 | 6cc4e51808c3a3e1c9bfd13acb32a24c48949d46 | refs/heads/master | 2020-05-31T07:21:49.051060 | 2019-06-04T08:50:58 | 2019-06-04T08:50:58 | 190,163,954 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from scrapy import cmdline
# 企鹅风讯爬虫启动命令
cmdline.execute("scrapy crawl wetest".split()) | [
"17319296359@163.com"
] | 17319296359@163.com |
75b28caa2d34e67eb3b3b8098579740e9a35e84e | a39ecd4dce4b14f5d17416233fa16c76d2d3f165 | /Libraries/Python/CommonEnvironment/v1.0/CommonEnvironment/UnitTests/__init___UnitTest.py | 562e1404032d4d6ea58532632f17db2d1032a725 | [
"BSL-1.0",
"Python-2.0",
"OpenSSL",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only"
] | permissive | davidbrownell/Common_Environment_v3 | 8e6bbed15004a38a4c6e6f337d78eb2339484d64 | 2981ad1566e6d3c00fd390a67dbc1277ef40aaba | refs/heads/master | 2022-09-03T19:04:57.270890 | 2022-06-28T01:33:31 | 2022-06-28T01:33:31 | 132,171,665 | 0 | 0 | BSL-1.0 | 2021-08-13T21:19:48 | 2018-05-04T17:47:30 | Python | UTF-8 | Python | false | false | 11,842 | py | # ----------------------------------------------------------------------
# |
# | __init___UnitTest.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2018-04-20 19:31:28
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2018-22.
# | Distri... | [
"db@DavidBrownell.com"
] | db@DavidBrownell.com |
0a09a08c22705633301608f9368fa368f18f91f8 | d659810b24ebc6ae29a4d7fbb3b82294c860633a | /aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/DescribeExposedStatisticsDetailRequest.py | 6d82140ea80993fb184d3cbe7ea97784f14c7f5c | [
"Apache-2.0"
] | permissive | leafcoder/aliyun-openapi-python-sdk | 3dd874e620715173b6ccf7c34646d5cb8268da45 | 26b441ab37a5cda804de475fd5284bab699443f1 | refs/heads/master | 2023-07-31T23:22:35.642837 | 2021-09-17T07:49:51 | 2021-09-17T07:49:51 | 407,727,896 | 0 | 0 | NOASSERTION | 2021-09-18T01:56:10 | 2021-09-18T01:56:09 | null | UTF-8 | Python | false | false | 2,370 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.