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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
863976cffa3215b748389ba234369b05b9f0744e | 7b74696ff2ab729396cba6c203984fce5cd0ff83 | /analysis/migrations/0037_auto_20200607_0718.py | dddc4b555fc3bd70f1b908f9416c415ba8af42b5 | [
"MIT"
] | permissive | webclinic017/investtrack | e9e9a7a8caeecaceebcd79111c32b334c4e1c1d0 | 4aa204b608e99dfec3dd575e72b64a6002def3be | refs/heads/master | 2023-06-18T12:57:32.417414 | 2021-07-10T14:26:53 | 2021-07-10T14:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # Generated by Django 3.0.2 on 2020-06-06 23:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('analysis', '0036_auto_20200607_0708'),
]
operations = [
migrations.AlterField(
model_name='stockstrategytestlog',
na... | [
"jie.han@outlook.com"
] | jie.han@outlook.com |
8cbbde7d34292bb5bf0c07f8ab017014d576d25b | 9f2fff8239e0026f99d8477d1b477cac23ce62f7 | /multiscale_affinities_python/ms_affinities_dense.py | f0cd8937c42cc20b6e92ae2a0b1d24ce28613fce | [] | no_license | constantinpape/affinities | c4cf571c963abb931619a8243b5187cdb6677457 | 3889fd97af8c9f620af37e8701f10a28048a8963 | refs/heads/master | 2020-03-12T01:48:16.727673 | 2018-06-24T13:52:20 | 2018-06-24T13:52:20 | 130,384,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | import numpy as np
import nifty.tools as nt
def compute_histograms(blocking, labels):
histograms = []
n_blocks = blocking.numberOfBlocks
for block_id in range(n_blocks):
if block_id % (n_blocks // 100) == 0:
print(block_id, '/', n_blocks)
block = blocking.getBlock(block_id)
... | [
"constantin.pape@iwr.uni-heidelberg.de"
] | constantin.pape@iwr.uni-heidelberg.de |
278ab43f839d0d3a461037b55ec5edf6aaf166c9 | 972be801215790ba193804d2eca0fee95f67ca34 | /codechef/medium/solved/COINS.py | f476dd099c2ed26df111b3da1722a4bfd9af0f33 | [] | no_license | rikithreddy/codeinpy | 6f4a998e707a83349a19ed4e014eebcafbe4f6d0 | 4ec9668dd15d9ab501e7fd43946474638ac64cd0 | refs/heads/master | 2021-06-29T22:41:25.249869 | 2020-10-01T11:18:56 | 2020-10-01T11:18:56 | 164,993,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py |
def max_val(num):
if num == 0 or num == 1:
return num
if num in dp:
return dp[num]
maxval = max(num,max_val(num//2)+max_val(num//3)+max_val(num//4))
dp[num] = maxval
return maxval
if __name__=='__main__':
global dp
dp = {}
for i in range(10):
try:
n = int(input())
print(max_val(n))
except:
... | [
"rikith.legend@gmail.com"
] | rikith.legend@gmail.com |
7696aea1af5d04d5c170863940af3c18d90b4034 | 2d841eef1cdda9ed67073fac83196282ecc3aa0c | /zoonado/protocol/request.py | 908b8a467d2f1ebb3ca9426c0005f8c11f2113bd | [
"Apache-2.0"
] | permissive | cybergrind/zoonado | a130dfb2a2d9867784a81056ff307d97eee68128 | c51457b997e0b9500c7bbdaa1be0693a0185fa5e | refs/heads/master | 2020-12-03T02:27:41.417566 | 2016-08-31T19:19:35 | 2016-08-31T19:19:35 | 67,051,910 | 0 | 0 | null | 2016-08-31T15:50:16 | 2016-08-31T15:50:15 | null | UTF-8 | Python | false | false | 999 | py | import logging
import struct
from six import BytesIO
from .part import Part
from .primitives import Int
log = logging.getLogger(__name__)
class Request(Part):
"""
Returns a bytesring representation of the request instance.
# TODO(wglass): specify how xid and type preamble goes in
Since this is a... | [
"william.glass@gmail.com"
] | william.glass@gmail.com |
223a3a99bbd7d4ba7c99c9e91a9e98bf218afc69 | 91fb65972d69ca25ddd892b9d5373919ee518ee7 | /pibm-training/sample-programs/py_everything_is_an_obj_001.py | 0e6612549b1013f3e183fce673a9182048163007 | [] | no_license | zeppertrek/my-python-sandpit | c36b78e7b3118133c215468e0a387a987d2e62a9 | c04177b276e6f784f94d4db0481fcd2ee0048265 | refs/heads/master | 2022-12-12T00:27:37.338001 | 2020-11-08T08:56:33 | 2020-11-08T08:56:33 | 141,911,099 | 0 | 0 | null | 2022-12-08T04:09:28 | 2018-07-22T16:12:55 | Python | UTF-8 | Python | false | false | 364 | py | #py_everything_is_an_obj_001.py
a = "spam"
b = "spam"
#
print(id(a))
print(id(b))
#
# id() returns the actual memory location where the variable is stored.
# Since id(a) = id(b), we know that a and b both point to a single variable,
# that resides in a single memory location.
# This is what we mean by “multiple na... | [
"zeppertrek@gmail.com"
] | zeppertrek@gmail.com |
cd9b705a28433bf72c9fcf5e19b36c5865b6b741 | 87c1d94465696d2373b69858fe70f300975a62da | /glycresoft_app/application_server.py | 3fb511380d8de124158ad2b65f0022bdb1d0b9c3 | [] | no_license | mobiusklein/glycresoft_app | a3a119c2693be0fdadac3afeaf137a297ee8d7a0 | 64d0d65680b36d52cb431733adce44e8bed577fa | refs/heads/master | 2023-09-06T00:09:55.314850 | 2023-08-30T01:40:21 | 2023-08-30T01:40:21 | 71,012,403 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,991 | py | import re
import logging
from typing import Callable, Union
import waitress
from flask import request, Flask
from werkzeug.serving import run_simple
from werkzeug.wsgi import LimitedStream
logger = logging.getLogger("glycresoft")
class StreamConsumingMiddleware(object):
def __init__(self, app):
self.ap... | [
"mobiusklein@gmail.com"
] | mobiusklein@gmail.com |
a37aff3cdf0d53e29d93e00e6dd191d81b661662 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa2/sample/class_def_methods-139.py | b4ff2a30618b166adbb2cfa8393b73915e5fdeb7 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class A(object):
x:int = 1
def get_A(self: "A") -> int:
return self.x
class B(A):
def __init__(self: "B"):
pass
class C(B):
z:bool = True
def set_A(self: "C", val: int) -> object:
self.x = val
a:A = None
b:B = None
c:C = None
a = A()
$Target = B()
c = C()
b.x = a.get_A... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
892d737a042d3d46a559c275e9a923acf3530294 | c3ff891e0e23c5f9488508d30349259cc6b64b4d | /python练习/django exercise/luffy_permission/rbac/service/middlewares.py | 1d0238ecf25eeee9606cd4855644b05469d43173 | [] | no_license | JacksonMike/python_exercise | 2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53 | 7698f8ce260439abb3cbdf478586fa1888791a61 | refs/heads/master | 2020-07-14T18:16:39.265372 | 2019-08-30T11:56:29 | 2019-08-30T11:56:29 | 205,370,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | from django.utils.deprecation import MiddlewareMixin
from django.shortcuts import HttpResponse, redirect
from rbac.models import Permission
import re
class PermissionMiddleWare(MiddlewareMixin):
def process_request(self, request):
current_path = request.path
# 设置白名单放行
for item ... | [
"2101706902@qq.com"
] | 2101706902@qq.com |
c416adf9692fb2e0f6a93c4bfd6cc646de67eca2 | 9faf145ffc23b218166ac220b5a01fe4d6fc19c3 | /clients/forms.py | 784f472f8eabf43814ee31f07f1b4d7273d36392 | [] | no_license | yrrodriguezb/Admin_Projects | 58ddd5a185c6c2b9ab72a9d2c066113d484e43f8 | 098ffb03a4585a11d2d31842e5340c5806749983 | refs/heads/master | 2023-07-06T05:01:45.644989 | 2023-06-26T23:25:37 | 2023-06-26T23:25:37 | 199,576,321 | 0 | 0 | null | 2023-06-26T23:25:39 | 2019-07-30T04:46:24 | CSS | UTF-8 | Python | false | false | 4,020 | py | from django import forms
from django.contrib.auth.models import User
from .models import Client, SocialNetwork
# Constantes
ERROR_MESSAGE_USER = {
'required': 'El usuario es requerido',
'unique': 'El usuario ya esta registrado',
'invalid': 'El nombre de usuario es incorrecto'
}
ERROR_MESSAGE_PASSWOR... | [
"yrrodriguezb@gmail.com"
] | yrrodriguezb@gmail.com |
6b655752d5a07872aa9b40b1be3100bf3f294a8e | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Tfng.ZGH/Sun-ExtA_16/pdf_to_json_test_Tfng.ZGH_Sun-ExtA_16.py | 03ebec36e784299d747ea13f2b53ed8ab0ce2501 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Tfng.ZGH/Sun-ExtA_16/udhr_Tfng.ZGH_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
f72af601f3b63516b5874e61cdeae9cbef9a53ab | a4bb0cde9697aa0c85375764d8353da0e1422525 | /deep_fm_combined.py | eaf479bdbd3b272c2aa29334683100a0f63db897 | [] | no_license | JanzYe/KDD_CUP_2012_Track2 | 5dd529eb1ca0592ab2ea71bda9416a756fc3a0b5 | 027f4a6025814278c82f68da1cb19ef8f3fb1f1a | refs/heads/master | 2020-04-16T06:23:21.419074 | 2019-01-14T06:55:29 | 2019-01-14T06:55:29 | 165,344,529 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 34,953 | py | # -*- coding:utf-8 -*-
import pandas as pd
from sklearn.utils import shuffle
from sklearn.feature_extraction.text import sp
from deepctr.models import DeepFM
from deepctr.models import MDFM
from tensorflow.keras.callbacks import ModelCheckpoint, Callback
import auc
import numpy as np
import operator
import time
from co... | [
"1173865843@qq.com"
] | 1173865843@qq.com |
8e8fc36db20a6b5e3d356b04c4033f97b1883151 | 0b40232eb2395c27353c892ef4ccb5c604bb75be | /Top Amazon Questions 2020-21/238. Product of Array Except Self.py | 697114e68bea8899ecfa0f9455b060d0d72e1387 | [] | no_license | HareshNasit/LeetCode | 971ae9dd5e4f0feeafa5bb3bcf5b7fa0a514d54d | 674728af189aa8951a3fcb355b290f5666b1465c | refs/heads/master | 2021-06-18T07:37:40.121698 | 2021-02-12T12:30:18 | 2021-02-12T12:30:18 | 168,089,751 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | def productExceptSelf(self, nums: List[int]) -> List[int]:
# Runtime: O(n), Space: O(1)
output = []
product = 1
for i in range(len(nums) - 1, 0, -1):
product *= nums[i]
output.append(product)
output.reverse()
output.append(1)
product = 1
... | [
"harsh.nasit@mail.utoronto.ca"
] | harsh.nasit@mail.utoronto.ca |
ea24decd785a80733d8f26101e938ff9a02b6c9c | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eihealth/huaweicloudsdkeihealth/v1/model/create_label_page_req.py | 102091db306ef21d76697a22ec8d70ef018cf23e | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,831 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateLabelPageReq:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
2dcbbfb4014b45830d78eb1b8756b0b5e01236c6 | 650b6208bdd745fd83138ed2fa849cc81b23c47f | /scripts/test02.py | 49c4541d6d33ef02b62303bf24dcdba26c7ee831 | [] | no_license | LGY2008/SZ08005 | 7fb47739a2c971acf028026627bfdaae4ef3501b | dd111ecdf03e30dfc58de1044d1f429e4233f0aa | refs/heads/master | 2020-04-29T23:22:14.224474 | 2019-03-19T09:30:15 | 2019-03-19T09:30:15 | 176,474,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py | class Test02:
def test001(self):
print("test001被执行") | [
"150691555@qq.com"
] | 150691555@qq.com |
475493057c7e0d1637b93954a04ade1890b51625 | b37c027a3f63305345f266e8f4f944721adbb956 | /BASES/Metricas_Esquema_Rec/LDPC_RLS/rx.py | 3ac5717a19c70eb3cebf61f66469e4ae1c10e0bc | [] | no_license | andrehoracio97/investigacao | fdfb663867e6fe9f240bb828b7b96b99323f8be3 | 5dd1fad12f4991bb737ed236426247dfb52333eb | refs/heads/master | 2022-10-11T02:08:30.478893 | 2020-06-16T09:58:13 | 2020-06-16T09:58:13 | 193,519,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,257 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Rx
# Author: andresilva
# GNU Radio version: 3.7.13.5
##################################################
if __name__ == '__main__':
import ctypes
import sys
if sys.platfo... | [
"andresilvamail@gmail.com"
] | andresilvamail@gmail.com |
70d797fbbba0be7ea46b8cff2d12b561c3fe0d80 | 12e50c27715f436b61513fbdce29b8f3c10b44b5 | /misc/math-functions-nikki.py | acc79e7d875f96f5c7bf98b9dc73fcf5dc677934 | [] | no_license | jitto/pi-rover | 790c3f76fecf07270a4b1d8d532babd21397e694 | f2d55224a2af69d8d20b7c148ca6ea0889b70fbc | refs/heads/master | 2020-05-18T06:28:27.082033 | 2015-09-06T18:04:55 | 2015-09-06T18:04:55 | 15,832,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | def fib(n):
a, b = 0, 1
while a < n:
print a,
a, b = b, a+b
def cube_volume(n):
return n ** 3
def cube_area(n):
return n * n * 6
def triangle_area(height, basewidth):
return (height * basewidth) /2
def pyramid_area(triangleheight, basewidth):
d=(triangleheight * basewidth) /... | [
"pi@raspberrypi.(none)"
] | pi@raspberrypi.(none) |
88c2c069b40c0c7e8cfa578508a3a7a67b35e7d9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-4645.py | 36d75444ae04188fb7a31f149441b075319667fd | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,349 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
4293d7edf5e9d6f308b33e9de2ed4d3e96fb7536 | 2a8abd5d6acdc260aff3639bce35ca1e688869e9 | /telestream_cloud_qc_sdk/telestream_cloud_qc/models/imf_conformance_test.py | e05c079cfee8684235503293e616459bf08a8fd8 | [
"MIT"
] | permissive | Telestream/telestream-cloud-python-sdk | 57dd2f0422c83531e213f48d87bc0c71f58b5872 | ce0ad503299661a0f622661359367173c06889fc | refs/heads/master | 2021-01-18T02:17:44.258254 | 2020-04-09T11:36:07 | 2020-04-09T11:36:07 | 49,494,916 | 0 | 0 | MIT | 2018-01-22T10:07:49 | 2016-01-12T11:10:56 | Python | UTF-8 | Python | false | false | 4,135 | py | # coding: utf-8
"""
Qc API
Qc API # noqa: E501
The version of the OpenAPI document: 3.0.0
Contact: cloudsupport@telestream.net
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from telestream_cloud_qc.configuration import Configuration
class... | [
"cloudsupport@telestream.net"
] | cloudsupport@telestream.net |
b64770ff542be1e4d9164dcb5118b683f7b128a2 | 7ec92031e28b1a92a10a9f252f99211663e0d8f9 | /src/py/l0590.py | c3a8b6f335216c7c92b7764c9b5ab5b13567f52c | [] | no_license | SS4G/leetcode_2020 | 4eb63f6afd59f84e44334e78cb06c7b33a89dd15 | 9a9a8fc779e7456db77f88e7dcdcc1f5cae92c62 | refs/heads/master | 2020-06-29T17:12:39.488350 | 2020-02-08T01:07:08 | 2020-02-08T01:07:08 | 200,575,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | from typing import List
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
#from collections import namedtuple
#NamedNode = namedtuple("NamedNode", ["node", "children_isin_stack"])
class NamedNode:
def __init__(self, node=None, children_isin_stack=... | [
"zihengs@opera.com"
] | zihengs@opera.com |
02f628303b7dc91de251f6326cedaae0298a9587 | 51b6d2fc53d5c632fcf01319842baebf13901e84 | /atcoder.jp/abc188/abc188_d/Main.py | 1e5d9d645f2e9ffab7410054740a1fd8aab111ac | [] | no_license | mono-0812/procon | 35db3b2c21eff74fbd7b52db07f249380f6834ef | 68a4b53880a228a0164052b23d1326363efcbc20 | refs/heads/master | 2023-05-30T17:02:58.935074 | 2021-06-27T12:15:10 | 2021-06-27T12:15:10 | 345,896,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | N,C=map(int,input().split())
event=[]
for i in range(N):
a,b,c=map(int,input().split())
a-=1
event.append((a,c))
event.append((b,-c))
event.sort()
ans=0
price=0
time=0
for x,y in event:
if x!= time:
ans += min(C,price) * (x-time)
time=x
price += y
print(ans)
| [
"frisk02.jar@gmail.com"
] | frisk02.jar@gmail.com |
fd7d1a0aadcbf9d32eac81b046c5d50502c583b7 | 5d1f629e27ad4663e4f7ba9d24d9704ef5ea5f78 | /TodoList/venv/bin/django-admin | 2110729b1c2a6e3bb3349bc69420a2e87a5ce35b | [] | no_license | marri88/django-base-projects | bc4648d6e099c8d18a11cae1e73ac5ac44255ed7 | cb5e30b1f4d15f51504df195e8d1435a4e7d25ff | refs/heads/master | 2023-06-28T00:52:35.785555 | 2021-07-30T15:02:57 | 2021-07-30T15:02:57 | 386,541,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | #!/home/aimira/Pycharm/TodoList/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com | |
64826084a3a388930cb6ac612e49b7b0bd430cbd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2193/60769/290055.py | 5b7ecddc8355fa25593ec20850b2d615a4c64e30 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | def solve(stri, start, end):
arr = []
for i in range(start, end + 1):
arr.append(stri[:i])
temp = []
# print(arr)
for i in range(end - start, 0, -1):
for item in arr:
if len(item) >= i:
if item[-i:] in temp:
return i
els... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
31a01a998d47903bb644c847826883ea15e847c2 | c309e7d19af94ebcb537f1e8655c0122dbe0cb13 | /Chapter05/01-chapter-content/bitwise_operations_images.py | 7d0d64e2babad2a125a12bfc9b713a529d967d77 | [
"MIT"
] | permissive | PacktPublishing/Mastering-OpenCV-4-with-Python | 0fb82c88cb7205c7050c8db9f95a6deb3b1b3333 | 4194aea6f925a4b39114aaff8463be4d18e73aba | refs/heads/master | 2023-03-07T04:51:16.071143 | 2023-02-13T10:17:48 | 2023-02-13T10:17:48 | 151,057,527 | 375 | 226 | MIT | 2022-08-27T13:32:19 | 2018-10-01T08:27:29 | Python | UTF-8 | Python | false | false | 1,151 | py | """
Bitwise operations (AND, OR) between two loaded images
"""
import cv2
import matplotlib.pyplot as plt
def show_with_matplotlib(color_img, title, pos):
"""Shows an image using matplotlib capabilities"""
# Convert BGR image to RGB:
img_RGB = color_img[:, :, ::-1]
ax = plt.subplot(2, 2, pos)
p... | [
"fernandezvillan.alberto@gmail.com"
] | fernandezvillan.alberto@gmail.com |
ebdb16b36720ebed78c849afaa5fd45b5292a99b | 67ce1c8496e0484d3db2e68fbc5de7a98b3f3a16 | /tests/valid_keys.py | 759c7cf6a5305e647d59189a87865e1f0e60ceb1 | [
"BSD-3-Clause"
] | permissive | svpcom/python-sshpubkeys | b76c86cdf46874d30b9ac63cf3178b6a191a8a37 | 74a872bfc916036b5a9b647a0fd634f123e859fa | refs/heads/master | 2020-12-02T08:44:24.413763 | 2019-11-07T04:51:26 | 2019-11-07T04:51:26 | 230,947,631 | 0 | 1 | BSD-3-Clause | 2019-12-30T16:35:54 | 2019-12-30T16:35:53 | null | UTF-8 | Python | false | false | 34,391 | py | keys = [[
'ssh-dss AAAAB3NzaC1kc3MAAACBAPlHIP5sD+T8/Sx1DGEiCzCXqpl7ww40jBg7wTkxu44OH6pNog5PjJt5M4NBULhKva/i+bhIM3ba+H1Or+aHWWFHACV6W2FCGk/k37ApRF8sIa4hsnN0P9qn6VfhbJKee+DBxa21WjjY/MZiljmJz7IQHx5RTxX9I/hJ7cL+aNmrAAAAFQCKteqc4IkgIrjpcpStsxYAhb3MqQAAAIEA+SfIKuTr7QPcinsZQDdmZOXqcg+u9TLzHA4c47y0Kns3T3BVPr9rWdmuh6eImzLO4... | [
"olli@jarva.fi"
] | olli@jarva.fi |
131babc22aa61f003930bc3c092db73b94b4f001 | ffa27c48912792a5cbb22abd1b27a7b047efec83 | /yacon/models/users.py | a22a3fa63fb1ba879f864cb767b31069d4fd8366 | [
"MIT"
] | permissive | cltrudeau/django-yacon | ac325829a25b343b2a7eb604886e019b33efc098 | d462c88cf98bf8eef50a0696b265fa28dfdb40eb | refs/heads/master | 2022-12-02T18:15:10.075815 | 2017-10-29T21:39:08 | 2017-10-29T21:39:08 | 31,387,194 | 0 | 0 | MIT | 2022-11-22T02:03:55 | 2015-02-26T20:28:18 | Python | UTF-8 | Python | false | false | 3,834 | py | # yacon.models.users.py
import logging, copy
from django.db import models
from django.db import connection
from django.db.utils import IntegrityError
from django.contrib.auth.models import User
from yacon.models.common import TimeTrackedModel
logger = logging.getLogger(__name__)
# ==================================... | [
"ctrudeau@arsensa.com"
] | ctrudeau@arsensa.com |
2da4ba03d5dd2a0245241774909cb880bcf89abe | 182480ab7335a0ca44830b2b05f53de71ed27262 | /wasienv/wasienv.py | 18b731bedece14baaa0f475d2fb4a02d706c760d | [
"MIT"
] | permissive | torch2424/wasienv | d6fb8a166badca0a635894640d65ad18cd989a50 | 1984e395af875563d28e8e7879181d56d51f7fff | refs/heads/master | 2020-09-04T01:07:13.218804 | 2019-11-02T00:57:16 | 2019-11-02T00:57:16 | 219,626,231 | 0 | 0 | MIT | 2019-11-05T00:55:24 | 2019-11-05T00:55:24 | null | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import os
from .tools import execute
from .sdk import download_and_unpack, CURRENT_SDK, SDKAlreadyExists, set_default_sdk
def run(args):
if len(args) <= 1:
print("wasienv command line tool")
return
... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
7211b81a695ca974186217a73606ab6f37003dff | 3694563be043a2d555bacb1abff51a77a17eb4e6 | /common/mRequests.py | fcbbdd30f91994267313d6dde04614e0c7ea7fa5 | [] | no_license | smallsharp/mInterface | 1911e99c9482c0450e2d72dc6b1f2c8c32fa000b | b8c0be069b7cdf9812b42895a0919a78719aad4b | refs/heads/master | 2020-03-10T00:28:23.170196 | 2018-05-23T09:57:16 | 2018-05-23T09:57:16 | 129,082,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,587 | py | import requests
import mParser
from common.mLog import MyLog
import os
PATH = lambda p: os.path.abspath(
os.path.join(os.path.dirname(__file__), p)
)
class MyRequests:
# config.ini配置文件的路径
iniParser = mParser.MyIniParser(PATH('../config.ini'))
def __init__(self):
# self.protocol = self.iniPar... | [
"464625206@qq.com"
] | 464625206@qq.com |
5921562e15c831eb22dffd20f69df93f583b47d3 | 514ee614185baa2df0489a5c4353d02fb9e4d0c2 | /myapp/models.py | c60102f6bc350790c1bc6d5f2b027e12da7db00d | [] | no_license | adiram17/django-admin-custom-action | 841dca3a9e6e8c23abd6431773c98afd6f4e49e1 | 7b139e186b2d705d54c619655a31669e7cdfec67 | refs/heads/master | 2022-11-19T09:07:31.626528 | 2020-07-09T03:14:23 | 2020-07-09T03:14:23 | 278,250,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.db import models
# Create your models here.
class Book(models.Model):
STATUS_CHOICES = (
('instock','In Stock'),
('outstock','Out of Stock')
)
title = models.CharField(db_column='title', max_length=100, blank=False)
description = models.TextField(db_column='description', max... | [
"adi.ramadhan@sigma.co.id"
] | adi.ramadhan@sigma.co.id |
65dac723902b87c20fd7a4587915f63e5e8c1dcb | 78b009f92845282db420895c8336db2aab6b293b | /tests/api2/nfs.py | 0abec5fbe4e2f8d6b5c8176b47043e3bd578c558 | [] | no_license | stilez/freenas | 00eae76c2f97aa4a1d1b8edb2706a973395036ae | 5b576f2fa899c89f660f41a20fab0d07e204aca4 | refs/heads/master | 2021-07-03T04:51:24.294951 | 2018-05-22T02:54:49 | 2018-05-22T02:54:49 | 134,390,321 | 0 | 0 | null | 2018-05-22T09:15:27 | 2018-05-22T09:15:27 | null | UTF-8 | Python | false | false | 7,534 | py | #!/usr/bin/env python3.6
# Author: Eric Turgeon
# License: BSD
# Location for tests into REST API of FreeNAS
import pytest
import sys
import os
apifolder = os.getcwd()
sys.path.append(apifolder)
from functions import PUT, POST, GET, SSH_TEST
from auto_config import ip
from config import *
if "BRIDGEHOST" in locals(... | [
"ericturgeon.bsd@gmail.com"
] | ericturgeon.bsd@gmail.com |
ed34b4061a235eb40a137794dc28449b27e5436b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/simulator/startQiskit325.py | 33adb47f5c3fce107177c1c0a20149f4ec2ba249 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | # qubit number=2
# total number=18
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy a... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
402e49337ebaac414f6ea61412b70dfe273df041 | 4bab98acf65c4625a8b3c757327a8a386f90dd32 | /ros2-windows/Lib/site-packages/test_msgs/msg/_w_strings.py | 23af0af165b3eb3908a4ba2ded337cf31b6556ee | [] | no_license | maojoejoe/Peach-Thinning-GTRI-Agricultural-Robotics-VIP | e2afb08b8d7b3ac075e071e063229f76b25f883a | 8ed707edb72692698f270317113eb215b57ae9f9 | refs/heads/master | 2023-01-15T06:00:22.844468 | 2020-11-25T04:16:15 | 2020-11-25T04:16:15 | 289,108,482 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,690 | py | # generated from rosidl_generator_py/resource/_idl.py.em
# with input from test_msgs:msg\WStrings.idl
# generated code does not contain a copyright notice
# Import statements for member types
import rosidl_parser.definition # noqa: E402, I100
class Metaclass_WStrings(type):
"""Metaclass of message 'WStrings'.... | [
"aidencfarrar@gmail.com"
] | aidencfarrar@gmail.com |
7109e8e13667c1c7f696373dc35820f9bd770370 | cd9f819b968def4f9b57448bdd926dc5ffa06671 | /B_物件導向Python與TensorFlow應用_鄭仲平_廣稅文化_2019/Ch06/ex06-03.py | 8976d4215762f50fb806716b35b3a5f7f1364038 | [] | no_license | AaronCHH/jb_pyoop | 06c67f3c17e722cf18147be4ae0fac81726e4cbc | 356baf0963cf216db5db7e11fb67234ff9b31b68 | refs/heads/main | 2023-04-02T05:55:27.477763 | 2021-04-07T01:48:04 | 2021-04-07T01:48:13 | 344,676,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | class Person():
def setValue(self, na, a):
self.name = na
self.age = a
def birthYear(self):
return 2019 - self.age
def display(self):
print("Name:", self.name, ", Age:", self.age)
class Teacher(Person):
def tr_setValue(self, na, a, sa):
super().setValue(na, a)
self.sal... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
2417b0dacd42b601502daf42ade13a577665c1f0 | 9e71cb3d1a25395d05563c5ac08f748c585984e3 | /doc/conf.py | 47dd257f479921cc611ab60c817b5b0a3fd19e4c | [
"BSD-3-Clause"
] | permissive | hydratk/hydratk-ext-security | 6a4ae65acd7da3a4be5a8b87d7d4e132d102dcf7 | 620acd849dd61c7c30b22b14973adf76b81b394a | refs/heads/master | 2020-05-28T09:39:30.091058 | 2018-02-26T15:08:37 | 2018-02-26T15:08:37 | 93,994,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | # -*- coding: utf-8 -*-
#
# HydraTK DataGen extension documentation build configuration file
# All configuration values have a default values that are commented out
# serve to show the default.
import sys
import os
import sphinx_rtd_theme
# If extensions (or modules to document with autodoc) are in another directory,... | [
"bowman@hydratk.org"
] | bowman@hydratk.org |
c46ebf8cdb0a24a044fd4e262375317feee5ce94 | a2b20597759990445081057d35d113434cfcf970 | /stubs/typeshed/typeshed/stdlib/xml/sax/handler.pyi | 63b725bd6da65689b17b801b7aeb9354f6b0496b | [
"Apache-2.0",
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 1,799 | pyi | import sys
from typing import NoReturn
version: str
class ErrorHandler:
def error(self, exception: BaseException) -> NoReturn: ...
def fatalError(self, exception: BaseException) -> NoReturn: ...
def warning(self, exception: BaseException) -> None: ...
class ContentHandler:
def setDocumentLocator(self... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
0a6e1928c5a8d6b03676229221eef8aeaf78eb07 | d8ab545c7fc6b30b52151f2193953a98e73648dc | /inverboy/views_proyecto/views_modulo_usuario.py | 4db0f440694a81d2015c1e83b664f7e7460a9dcf | [] | no_license | direyes71/planes | 4b649d8367ba6edc0a079213048181db4747ea0d | 232288ab12f1e6e9953365635993c8b5c60990f6 | refs/heads/master | 2020-05-17T22:23:55.317489 | 2015-05-13T07:14:27 | 2015-05-13T07:14:27 | 35,532,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85,810 | py | # -*- encoding: utf-8 -*-
from funciones_views import *
from django.shortcuts import render_to_response, HttpResponseRedirect, HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.models import Permission
from inverboy.models import *
from inverboy.forms import *
from dateti... | [
"direyes71@hotmail.com"
] | direyes71@hotmail.com |
3d78850b8ff8792dfc1607704edd24477fcdc30e | 2c94c322b5e1f53e131f7d680bcd4413ff11a10b | /boards_mark.py | a5125f21bd64a986d9abb1c41f4b3913096806e8 | [] | no_license | Nehanavgurukul/list | 66996ad6f30183f8d6c758ab824fd5a7840ba4dd | e4aa2686c0f007477e147c733ac98708773570cb | refs/heads/main | 2023-01-11T23:38:15.450749 | 2020-10-29T16:10:29 | 2020-10-29T16:10:29 | 308,381,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | marks_list = [70, 80, 75, 65, 68]
print (marks_list)
print (type(marks_list)) | [
"nehay19@navgurukul.org"
] | nehay19@navgurukul.org |
6ed656d22e34c2dc9dcb2f294cb3055988dfdf00 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_169/ch44_2020_03_25_20_16_39_893946.py | 784575c0785aa795f3087944dc42a9aac186e797 | [] | 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 | 492 | py |
lista_mes = [0]*13
lista_mes [1] = "janeiro"
lista_mes [2] = "jevereiro"
lista_mes [3] = "março"
lista_mes [4] = "abril"
lista_mes [5] = "maio"
lista_mes [6] = "junho"
lista_mes [7] = "julho"
lista_mes [8] = "agosto"
lista_mes [9] = "setembro"
lista_mes [10] = "outubro"
lista_mes [11] = "novembro"
lista_mes [12] = "de... | [
"you@example.com"
] | you@example.com |
087679b41aee1885a60bb037f5cca27319cde741 | ac1bbabc7c1b3149711c416dd8b5f5969a0dbd04 | /Programming Basics/exams/balls.py | 43f9e211ba23edf1b8f3e5887a29124833f8f148 | [] | no_license | AssiaHristova/SoftUni-Software-Engineering | 9e904221e50cad5b6c7953c81bc8b3b23c1e8d24 | d4910098ed5aa19770d30a7d9cdf49f9aeaea165 | refs/heads/main | 2023-07-04T04:47:00.524677 | 2021-08-08T23:31:51 | 2021-08-08T23:31:51 | 324,847,727 | 1 | 0 | null | 2021-08-08T23:31:52 | 2020-12-27T20:58:01 | Python | UTF-8 | Python | false | false | 889 | py | N = int(input())
points = 0
red_balls = 0
orange_balls = 0
yellow_balls = 0
white_balls = 0
others = 0
black_balls = 0
for i in range(1, N + 1):
color = input()
if color == 'red':
points += 5
red_balls += 1
elif color == 'orange':
points += 10
orange_balls +=1
elif color ... | [
"assiaphristova@gmail.com"
] | assiaphristova@gmail.com |
1a6b8ba604f0daa92e8b7444c4245498b70e2cdf | 01242a981b234d7dd178ceb3d4b2fb4e4d939935 | /catalog/migrations/0003_auto_20201007_1652.py | 8d8ca31e5b75572fc2d5ccd9c4bb1fc9fd0da945 | [] | no_license | nouhben/locallibrary | 701b986eb7527919ffbc8eda762c16dd57fa8469 | 20d4b93c392d718c5262f80f0c9335e5bcacecc2 | refs/heads/main | 2023-01-11T14:41:36.114039 | 2020-10-10T15:05:22 | 2020-10-10T15:05:22 | 302,029,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Generated by Django 3.1.2 on 2020-10-07 16:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('catalog', '0002_auto_20201007_1650'),
]
operations = [
migrations.AlterField(
model_name='bookinstance',
name='due_b... | [
"benkadi.nouh@icloud.com"
] | benkadi.nouh@icloud.com |
6a4a4ffa0166b2771f2e7ab9f445a71e837d9f9f | 6496d7ab505ab1df594d373c0c58206d580302f6 | /1005.py | 447d6a8a6c69083477cf033be4fdcd383c3a654a | [] | no_license | alicesilva/P1-Python-Problemas | 7050f323a073ff51c51cd94d451bddfac71bf30b | eade521a3c7f740bb901a6714385d91356a37835 | refs/heads/master | 2020-03-09T21:04:32.211493 | 2018-08-25T19:50:53 | 2018-08-25T19:50:53 | 129,000,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | #coding: utf-8
A = float(raw_input())
B = float(raw_input())
MEDIA = (A*3.5 + B*7.5)/ 11.0
print "MEDIA = %.5f" %MEDIA
| [
"alice.silva@ccc.ufcg.edu.br"
] | alice.silva@ccc.ufcg.edu.br |
1dcebde42e7512b66620deb4ab99c6491a7c2060 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02256/s461624254.py | 6ce0966053c0fbeceeee1a0932ea3a140e293ab9 | [] | 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 | 240 | py | def gcd(x, y):
if x < y:
tmp = x
x = y
y = tmp
while y > 0:
r = x % y
x = y
y = r
return print(x)
x_y = input()
tmp = list(map(int, x_y.split()))
x = tmp[0]
y = tmp[1]
gcd(x, y)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a0f645c5cebd63e21b309ab7d2d78f3fbef7d247 | e97e727972149063b3a1e56b38961d0f2f30ed95 | /knetik_cloud/models/stripe_create_payment_method.py | 8f7a7c5158f2b60f7ce8ec8fd15357909c2e39bf | [] | no_license | knetikmedia/knetikcloud-python-client | f3a485f21c6f3e733a864194c9acf048943dece7 | 834a24415385c906732437970db105e1bc71bde4 | refs/heads/master | 2021-01-12T10:23:35.307479 | 2018-03-14T16:04:24 | 2018-03-14T16:04:24 | 76,418,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,219 | py | # coding: utf-8
"""
Knetik Platform API Documentation latest
This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
OpenAPI spec version: latest
Contact: support@knetik.com
Generated by: https://github.com/swagger-api/swagger-codeg... | [
"shawn.stout@knetik.com"
] | shawn.stout@knetik.com |
3659a2b734a8ae7a6fb2ade9e3989db5b07aa27a | b6bcaae5169cf20a84edafae98ba649dab6fc67c | /crowdsourcing/migrations/0031_auto_20150814_1743.py | 44b83d71cb9a9fb2a1703c1b2b240fc19baec9be | [
"MIT"
] | permissive | shriyanka/daemo-forum | b7eb84a46799d8c6bcb29a4f5c9996a3d2f40351 | 58c555f69208beedbb0c09f7b7d1e32ab741b2c5 | refs/heads/master | 2023-01-12T05:13:48.804930 | 2015-09-20T01:52:29 | 2015-09-20T01:52:29 | 40,193,653 | 1 | 0 | MIT | 2022-12-26T19:49:24 | 2015-08-04T15:42:57 | Python | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('crowdsourcing', '0030_module_is_prototype'),
]
operations = [
migrations.AlterField(
model_name='taskworker',
... | [
"vnarwal95@gmail.com"
] | vnarwal95@gmail.com |
ed2696ece2c7f11ae5a1804ceebdb5ac0c189e4b | 1b5802806cdf2c3b6f57a7b826c3e064aac51d98 | /tensorrt-basic-1.10-3rd-plugin/TensorRT-main/tools/Polygraphy/tests/util/test_util.py | 603cfe59290d516f76cf0746061529cd2862496a | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"ISC",
"BSD-2-Clause"
] | permissive | jinmin527/learning-cuda-trt | def70b3b1b23b421ab7844237ce39ca1f176b297 | 81438d602344c977ef3cab71bd04995c1834e51c | refs/heads/main | 2023-05-23T08:56:09.205628 | 2022-07-24T02:48:24 | 2022-07-24T02:48:24 | 517,213,903 | 36 | 18 | null | 2022-07-24T03:05:05 | 2022-07-24T03:05:05 | null | UTF-8 | Python | false | false | 4,759 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. 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 appl... | [
"dujw@deepblueai.com"
] | dujw@deepblueai.com |
1114c5c8cae950b5a1a32610189346dec1a28cab | e2de3f6fe4373f1d98b67af61dd558a813250d54 | /Algorithm/SWEA/1979_어디에단어가들어갈수있을까.py | 93175b21e67cf70eb4adb26f4ef9209d87578ccf | [] | no_license | Hansung-Lee/TIL | 3fd6d48427a8b24f7889116297143855d493535b | c24ebab8b631f5c1b835fdc8bd036acbebc8d187 | refs/heads/master | 2020-04-14T11:18:54.035863 | 2019-04-05T07:26:55 | 2019-04-05T07:26:55 | 163,810,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | T = int(input())
for t in range(T):
N, K = map(int, input().split())
li = []
for n in range(N):
li.append(list(map(int, input().split())))
result = 0
# 가로 탐색
for i in range(N):
cnt = 0
li_cnt = []
for j in range(N):
if li[i][j]:
... | [
"ajtwlsgkst@naver.com"
] | ajtwlsgkst@naver.com |
7c158c148002d2ebe9ee4647540dd9f396d08fc4 | 4331b28f22a2efb12d462ae2a8270a9f666b0df1 | /.history/dvdstore/webapp/views_20190913160111.py | 23580636abd046ab2c04d9f05ea280491fdd173f | [] | no_license | ZiyaadLakay/csc312.group.project | ba772a905e0841b17478eae7e14e43d8b078a95d | 9cdd9068b5e24980c59a53595a5d513c2e738a5e | refs/heads/master | 2020-07-26T23:30:22.542450 | 2019-09-16T11:46:41 | 2019-09-16T11:46:41 | 200,703,160 | 0 | 0 | null | 2019-08-05T17:52:37 | 2019-08-05T17:52:37 | null | UTF-8 | Python | false | false | 5,616 | py | from django.shortcuts import render
from .models import DVD, Transaction, Customer
from django.core.paginator import EmptyPage,PageNotAnInteger, Paginator
from django.db.models import Q
from django.contrib.auth.models import User, auth
from django.shortcuts import render, redirect
from django.contrib import messages
fr... | [
"uzairjoneswolf@gmail.com"
] | uzairjoneswolf@gmail.com |
3d644648c2733aa00d7462798422065a61ce7275 | 6dc4d2b5abe4317f154dd0e81f45fda3501e7e52 | /Arrays/change_value_of_ele.py | 813154e01efb7231c263a5c9188664d9c9a0aec7 | [] | no_license | Sanket1228/pythonBasics | 89376a7bbd3292d0f19fbbc8b3baae576abf9d75 | 94f68fa888cb1d8f61c2466ad8b395c769fe6f37 | refs/heads/master | 2023-06-26T22:54:03.774872 | 2021-07-22T12:31:10 | 2021-07-22T12:31:10 | 280,104,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | cars = ["Ford","Volvo","BMW"]
cars[0] = "Toyota"
print(cars) | [
"sanketpatil1228@gmail.com"
] | sanketpatil1228@gmail.com |
f03a7eab93285755d3e953c76c98e043ae312ed6 | 3345eb032afa159a5b4b32fe0b62e4435dac523f | /dingtalk/api/rest/OapiWorkrecordGetbyuseridRequest.py | d717bd7a3da8a6c204e0b0fb304418cb8cfb37c8 | [] | no_license | xududu/dingDingApi | ada6c17e5c6e25fd00bdc4b444171b99bc9ebad7 | b1e7c384eb8fb7f79f6f5a6879faadfa95d3eda3 | refs/heads/master | 2023-08-31T03:04:48.438185 | 2021-10-13T08:52:13 | 2021-10-13T08:52:13 | 416,558,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | '''
Created by auto_sdk on 2021.04.12
'''
from dingtalk.api.base import RestApi
class OapiWorkrecordGetbyuseridRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.limit = None
self.offset = None
self.status = None
self.userid = None
def getHttpMethod(self):
return 'POST'
def ... | [
"739893589@qq.com"
] | 739893589@qq.com |
04555a00292a4fcd962bc617a3d285383b9fc443 | 72ce57d187fb6a4730f1390e280b939ef8087f5d | /tests/programs/multiprocessing_using/foo/entry.py | afae227cf29a41243320848b45366e758e91565f | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tommyli3318/Nuitka | c5b7681b73d96cb8859210ed1a78f09149a23825 | ae52b56024d53159a72a5acbfaac792ca207c418 | refs/heads/develop | 2020-05-02T17:02:10.578065 | 2019-10-27T15:53:32 | 2019-10-27T15:53:32 | 178,086,582 | 1 | 0 | Apache-2.0 | 2019-06-06T00:32:48 | 2019-03-27T22:53:31 | Python | UTF-8 | Python | false | false | 1,758 | py | # Copyright 2019, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the ... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
02d21508b93f498e1bd78a092c39577fe979db7f | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/PostenMapping/Model/Post060352180.py | 00f34193546de433cc344122133141ebd1cbd094 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 3,848 | py | # coding=utf-8
from OTLMOW.PostenMapping.StandaardPost import StandaardPost
from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping
# Generated with PostenCreator. To modify: extend, do not edit
class Post060352180(StandaardPost):
def __init__(self):
super().__init__(
nummer... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
ad4309aaad99aafddfef6960b654f2844af01886 | 2d13b3206b04d663eed9c5cfe7b6d273abaab33e | /APS/pycharm/humming_bird/1952_swim.py | 7dca279aac14b2798c75f9db2208bd11c860a6c3 | [] | no_license | hdp0545/TIL | 0ba5378274f0076cd2b029581b292785a77207da | 6d6e5e54373bd71606823e97b3a5fb2d63a2784e | refs/heads/master | 2023-05-24T12:37:33.690750 | 2023-05-19T06:57:49 | 2023-05-19T06:57:49 | 235,004,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | import sys
sys.stdin = open('input.txt', 'r')
def backtrack(check, i, r, k=0):
c = []
global min1
if r > min1:
return
if i == k:
min1 = r
else:
for i in range(10):
if check[i]:
c.append(i)
for i in range(10):
check[c[i]] = Fal... | [
"hdp0545@gmail.com"
] | hdp0545@gmail.com |
47cd6abdbcf8ebced0d5301d75c1383d027e6fc8 | 638fdc6e95bee246cd8784a3a442bda584295d77 | /prj/main/migrations/0002_auto_20180831_0843.py | 39b0ad364fba271386daa465b8e7e9a307a358c6 | [] | no_license | zdimon/loyer | ac00faf94c4277eb77d6cdc51e8bf99ef2f7ecb2 | 6df6bc76599bc0fab9ef2bdb600cc3b92daf38c1 | refs/heads/master | 2020-03-27T16:03:36.358793 | 2019-04-18T10:05:18 | 2019-04-18T10:05:18 | 146,757,036 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-08-31 08:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AlterField(
m... | [
"zdimon@example.com"
] | zdimon@example.com |
1978453a158a8692ae863d135c40bf2facb82ad3 | cc9a87e975546e2ee2957039cceffcb795850d4f | /venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_internal/utils/glibc.py | 33451aaf3fdfaf6db9a7dd2b7050ff08b8be2151 | [] | no_license | CodeHunterDev/Belajar-Python | 304d3243801b91b3605d2b9bd09e49a30735e51b | 9dd2ffb556eed6b2540da19c5f206fedb218ae99 | refs/heads/master | 2023-03-19T22:12:46.330272 | 2020-02-04T08:02:00 | 2020-02-04T08:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,339 | py | # Copyright (c) 2020. Adam Arthur Faizal
from __future__ import absolute_import
import ctypes
import re
import warnings
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Optional, Tuple # noqa: F401
def glibc_version_string():
# type: () -> Optional[str]... | [
"adam.faizal.af6@gmail.com"
] | adam.faizal.af6@gmail.com |
753c4c3e24bac3182235acb0a7cee84059e81741 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /r9y4yrSAGRaqTT7nM_15.py | 7b62749e1863b060425e123beb46d6163901c3ca | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | """
Create a function that takes a list of lists and return the length of the
missing list.
### Examples
find_missing([[1], [1, 2], [4, 5, 1, 1], [5, 6, 7, 8, 9]]) ➞ 3
find_missing([[5, 6, 7, 8, 9], [1, 2], [4, 5, 1, 1], [1]]) ➞ 3
find_missing([[4, 4, 4, 4], [1], [3, 3, 3]]) ➞ 2
### Notes
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f112df2231e948cf0244cc3c56d20923a3597f51 | 982539edb302b6bee5dd9285e9de00ad866b4cfd | /Transform/TransformH5/main.py | b3e608eb7900102705e76ae1dcd40c31ba29d973 | [] | no_license | chennqqi/OpenSaaSProj | 2149a2066c607636ce2106801be2cb722cc0934d | 0f861a61d1bd1499599207a70a8e180930d96573 | refs/heads/master | 2020-04-04T16:14:08.943396 | 2017-06-01T06:50:32 | 2017-06-01T06:50:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,101 | py | # -*- coding: utf-8 -*-
import sys
import time
import gzip
from Transform import Transform
from LogStore import LogStore
import json
import re
ip_pattern = re.compile(r'''"((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))"''')
def main(timestamp, src_logpath_format="/dat... | [
"sudazhuang1@163.com"
] | sudazhuang1@163.com |
fa408f0d646001c72d5862e1fca3ef6a15a7a714 | 3851d5eafcc5fd240a06a7d95a925518412cafa0 | /Django_Code/gs122/gs122/asgi.py | c85136de3ebbdca091f1249ffba5478c629e3e76 | [] | no_license | Ikshansaleem/DjangoandRest | c0fafaecde13570ffd1d5f08019e04e1212cc2f3 | 0ccc620ca609b4ab99a9efa650b5893ba65de3c5 | refs/heads/master | 2023-01-31T04:37:57.746016 | 2020-12-10T06:27:24 | 2020-12-10T06:27:24 | 320,180,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
ASGI config for gs122 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('D... | [
"ikshan3108@gmail.com"
] | ikshan3108@gmail.com |
d589011ac89500a27079781cb8e2f5df0d7c1348 | b1d8ae9f007b45075c67fc7c4006e9e72a604544 | /clases-daniel_python/ejercicios/2_ejercicio.py | 092d942e4605afabc4426c97e34c89f50800cbab | [] | no_license | WilliamPerezBeltran/studying_python | 019b488818934c471c9322d9a1cb16f095df193e | 4b4140bfce41192506b569787ba7aae50baeae62 | refs/heads/master | 2023-02-07T11:26:37.190849 | 2020-12-26T02:31:12 | 2020-12-26T02:31:12 | 263,965,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | """
valor suministrado 5
resultado 1335555777777779999999999999999
n = 5 => 1 33 5555 77777777 9999999999999999
tenemos que 1,3,5,7,9 son impares
1. la secuencia esta formada por numeros impares
2. cada numero impar se escribe tantas veces como lo indique
la potencia de 2 correspondiente
2**0 = 1
2**1 = 2... | [
"williampbeltranprogramador@gmail.com"
] | williampbeltranprogramador@gmail.com |
cfdd02f3fa46bf4d815b93c065a34ccc6a1de9da | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/269/sol.py | 5e90e005dcb2da2d492583fdd25737e164210050 | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 2,689 | py |
16/18 lines Python, 30 lines C++
https://leetcode.com/problems/alien-dictionary/discuss/70137
* Lang: python3
* Author: StefanPochmann
* Votes: 74
Two similar solutions. Both first go through the word list to find letter pairs `(a, b)` where `a` must come before `b` in the alien alphabet. The first solution j... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
b4d44bc8958e2e1127f9bec0857c5cb993327ab9 | 4e4e18eb93925ff60b35632e09e93ab1ed1f583b | /schedule_sim/tools/graphic_utils.py | e2255614289b463a1a137fd1d97ddbffde1f6455 | [
"MIT"
] | permissive | DanielLSM/schedule-sim | 47d440356268622b2c962ff8950098f2397e674b | 9230ea3db774105eebe643c8baf054a518f4f7e7 | refs/heads/master | 2020-04-17T08:59:13.640648 | 2019-03-19T14:23:25 | 2019-03-19T14:23:25 | 166,437,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | colors = {
'white': [255] * 4,
'black': [0] * 4,
'red': [255, 0, 0, 255],
'yellow': [255, 255, 0, 255],
'blue': [0, 0, 255, 255],
'green': [0, 255, 0, 255]
}
RESOURCES_PATH = "../../resources/"
def state_to_color(state):
if state < 0:
return colors['red']
elif 0 <= state < 0.1... | [
"daniellsmarta@gmail.com"
] | daniellsmarta@gmail.com |
73011ee72cca0a99a4d1f0535d01af66c35d80e6 | 674b823a735f9fffa7a20fbb1ef977a6c9652667 | /Lesson_6/some test/log.py | a69c64b50eac96be6bf881dd1aa1eb3f6ebf06ad | [] | no_license | igoregizarov/clientservapp | fc141cc093037c4442a650291e137e1369584752 | 1c6b9f37acf1c173001a1237d8b0d21b23005b57 | refs/heads/master | 2023-03-25T06:14:00.291558 | 2021-03-21T06:57:54 | 2021-03-21T06:57:54 | 334,572,078 | 0 | 0 | null | 2021-03-21T09:33:51 | 2021-01-31T04:29:05 | Python | UTF-8 | Python | false | false | 513 | py | import logging
logger = logging.getLogger('app')
format = logging.Formatter('%(levelname)-10s %(asctime)s %(message)s')
file_handler = logging.FileHandler('app.log', encoding='utf-8')
file_handler.setLevel(logging.INFO)
file_handler.setFormatter(format)
logger.addHandler(file_handler)
logger.setLevel(logging.INFO)
... | [
"i_gor88@mail.ru"
] | i_gor88@mail.ru |
82255cdf9bcd48495c4ee433b8774864f47e88d5 | 29c3595a4e1f8de9382650610aee5a13e2a135f6 | /venv/Lib/site-packages/twisted/conch/test/test_session.py | f2d85511afaea5f0000bc736bf5dee4b337634da | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zoelesv/Smathchat | 1515fa56fbb0ad47e1859f6bf931b772446ea261 | 5cee0a8c4180a3108538b4e4ce945a18726595a6 | refs/heads/main | 2023-08-04T14:47:21.185149 | 2023-08-02T15:53:20 | 2023-08-02T15:53:20 | 364,627,392 | 9 | 1 | MIT | 2023-08-02T15:53:21 | 2021-05-05T15:42:47 | Python | UTF-8 | Python | false | false | 44,793 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for the 'session' channel implementation in twisted.conch.ssh.session.
See also RFC 4254.
"""
import os
import signal
import struct
import sys
from unittest import skipIf
from zope.interface import implementer
from twisted.internet ... | [
"ZoomLee@users.noreply.github.com"
] | ZoomLee@users.noreply.github.com |
4fa932368de8c1a9a54b7f71b537ee4dc62ff0ba | fd1dba8223ad1938916369b5eb721305ef197b30 | /AtCoder/ABC/abc089/abc089d.py | 7b074ee3fa719b25e44bdebb03df55da23940c2d | [] | no_license | genkinanodesu/competitive | a3befd2f4127e2d41736655c8d0acfa9dc99c150 | 47003d545bcea848b409d60443655edb543d6ebb | refs/heads/master | 2020-03-30T07:41:08.803867 | 2019-06-10T05:22:17 | 2019-06-10T05:22:17 | 150,958,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | import numpy as np
H, W, D = map(int, input().split())
grid = np.array([[0, 0]] * (H * W))
for i in range(H):
Ai = list(map(int, input().split()))
for j in range(W):
grid[Ai[j] - 1] = [i, j]
Q = int(input())
tasks = [list(map(int, input().split())) for _ in range(Q)]
accum = [0] * (H*W)
for ... | [
"s.genki0605@gmail.com"
] | s.genki0605@gmail.com |
40d0d4730eca07faba09f725f7b01a531e1bfcdf | 9abe914e718155f3a560915c56a55996155159fb | /billing_profiles/models.py | a5dcaf5c9fc4962638c32d5531865441525d0eae | [] | no_license | Chaoslecion123/Tienda-Django | 07c8e2abe8cf659a4fce910c2b8fc858d9276e3b | d06e0c789bab69472d0931b2322e7da4f2eaa3bd | refs/heads/master | 2022-03-28T18:07:38.083362 | 2019-12-11T20:01:59 | 2019-12-11T20:01:59 | 227,241,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | from django.db import models
from users.models import User
from stripeAPI.card import create_card
class BillingProfileManager(models.Manager):
def create_by_stripe_token(self,user,stripe_token):
if user.has_customer() and stripe_token:
source = create_card(user,stripe_token)
retur... | [
"chaoslecion71@gmail.com"
] | chaoslecion71@gmail.com |
306cff00aa1430a3834005bd05e292ce9a245b64 | 39689ee725bc7183d5d59fb34f7d2ffe5fd6ad36 | /ARC_A/ARC039A.py | 784579704af3c60ba55bb0c218f9b23ceaf8e357 | [] | no_license | yu5shi8/AtCoder | b6eb920a9046bdfa98012dd3fc65f75f16214ffe | f9ca69001ece8379e3a70c993c44b540f8be2217 | refs/heads/master | 2021-06-15T17:58:07.027699 | 2021-03-20T14:04:03 | 2021-03-20T14:04:03 | 177,757,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
# A - A - B problem
# https://atcoder.jp/contests/arc039/tasks/arc039_a
A, B = input().split()
ans = []
ans.append(int('9' + A[1:]) - int(B))
ans.append(int(A[:1] + '9' + A[2:]) - int(B))
ans.append(int(A[:2] + '9') - int(B))
ans.append(int(A) - int('1' + B[1:]))
ans.append(int(A) - int(B[:1]... | [
"royal_unicorn411@hotmail.co.jp"
] | royal_unicorn411@hotmail.co.jp |
98a3ab3e8df522600ef831b277ba9c4a7a5c8943 | 291ac7422666f016b62be0d6fafc96b02372b02a | /models/representation/keras/LocalMixtureNN.py | b990343e5f5b2828fc116527199437ad7f08fc40 | [] | no_license | qiuchili/qnn_text | d9adaab759d48778b95ca04e924d3bb2af9287f1 | 3fbc866b3ef95274e4f36f0560b0a7b88d53d48e | refs/heads/master | 2020-05-07T19:16:15.965522 | 2019-04-11T14:15:54 | 2019-04-11T14:15:54 | 180,806,260 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,019 | py | # -*- coding: utf-8 -*-
from keras.layers import Embedding, GlobalMaxPooling1D,GlobalAveragePooling1D, Dense, Masking, Flatten,Dropout, Activation,concatenate,Reshape, Permute
from keras.models import Model, Input, model_from_json, load_model
from keras.constraints import unit_norm
from layers.keras.complexnn import *... | [
"qiuchi.li@studenti.unipd.it"
] | qiuchi.li@studenti.unipd.it |
d2071f73be7b293cffa348e5572eabc7ab442d13 | 7f4b1d5e9963d63dd45b31c6cad8ced70d823217 | /Crypto/websockets_btcusd.py | b81750d26f341253848c146deaa7a67c4c3c3f05 | [] | no_license | mdhatmaker/Misc-python | b8be239619788ed343eb55b24734782e227594dc | 92751ea44f4c1d0d4ba60f5a1bb9c0708123077b | refs/heads/master | 2023-08-24T05:23:44.938059 | 2023-08-09T08:30:12 | 2023-08-09T08:30:12 | 194,360,769 | 3 | 4 | null | 2022-12-27T15:19:06 | 2019-06-29T03:39:13 | Python | UTF-8 | Python | false | false | 2,327 | py | import websocket
import ast
import json
import sqlite3
class DataFeed():
def __init__(self):
#create database
file = "myDB.db"
self.path = "/Users/michael/Dropbox/dev/PROJECTS/python-projects/data/"+file
self.db = sqlite3.connect(self.path)
self.cursor = self.db.cursor()
... | [
"mhatmaker@gmail.com"
] | mhatmaker@gmail.com |
16a14bff5aa9f07ed71308781b1bd002d0347f1a | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/sympy-1.0-py27_0/lib/python2.7/site-packages/sympy/plotting/pygletplot/plot.py | 49690406edc18d48204c7a67906e123b94ea27a0 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 13,256 | py | from __future__ import print_function, division
from sympy import Integer
from sympy.core.compatibility import is_sequence
from threading import RLock
# it is sufficient to import "pyglet" here once
try:
from pyglet.gl import *
except ImportError:
raise ImportError("pyglet is required for plotting.\n "
... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
87aea39f12b2409411d0d135b8b3d23715f8c1dd | 93ebc4c7a8ebb82fe54838c28fa8b70008cdf4cd | /src/lib/Bcfg2/Server/FileMonitor/Fam.py | d1420c105b1c60af9cda5c4a3ccf695a32e9a243 | [
"mpich2",
"LicenseRef-scancode-other-permissive",
"BSD-2-Clause"
] | permissive | psteinbachs/bcfg2 | 74026df83522a358b8f720010f833bfdd6742159 | be3b4dc28b8e4adfb9e0de86d7297599adac77f5 | refs/heads/master | 2020-12-25T10:23:54.687681 | 2012-10-11T17:13:21 | 2012-10-11T17:13:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | """ Fam provides FAM support for file alteration events """
import os
import _fam
import stat
import logging
from time import time
from Bcfg2.Server.FileMonitor import FileMonitor
LOGGER = logging.getLogger(__name__)
class Fam(FileMonitor):
""" file monitor with support for FAM """
__priority__ = 90
d... | [
"chris.a.st.pierre@gmail.com"
] | chris.a.st.pierre@gmail.com |
43e02b8e529339b6e6fc7eb8cef2a4f061e9dc65 | 2161711dcdc06abe39d96082edcc91ba4de95668 | /swagger_client/models/inline_response_200_45.py | 4a9e83e87873419314bec5a1ecd0cf3556609bdd | [] | no_license | PriceTT/swagger-piwebapi-python | 7eb25c329b33a76785cdb0484fae0dfb354722e2 | 20a4a47a38dfe7051b1a35831fb6cd3d2a19679a | refs/heads/master | 2021-06-18T21:21:48.808589 | 2017-06-15T18:44:48 | 2017-06-15T18:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,417 | py | # coding: utf-8
"""
PI Web API 2017 Swagger Spec
Swagger Spec file that describes PI Web API
OpenAPI spec version: 1.9.0.266
Contact: techsupport@osisoft.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
cla... | [
"eng@dstcontrols.com"
] | eng@dstcontrols.com |
f2fe34339d878e77d9419f0c501fb8660eb39dc6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FCOS/configs/_base_/models/cascade_rcnn_r50_fpn.py | 303276b845fecd041d093e240046de08b6016638 | [
"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 | 6,001 | py | # model settings
model = dict(
type='CascadeRCNN',
pretrained='torchvision://resnet50',
backbone=dict(
type='ResNet',
depth=50,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_cfg=dict(type='BN', requires_grad=True),
norm_eval=True,
... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
b43f026cb592af4b22ac9eaf0451a1c813df7f99 | 9b82b0275f7b8365fbe8437c1b59b492e8ac0f82 | /speech_recog.py | ae0d69f3aacff9470419c4029f1ccf53c0f46232 | [] | no_license | aspiringguru/FastAI_Part1_Version2_2018 | 6414f80adf26efe32785add68d0f7cf845376c38 | d1a215fa8ec2cc70807976f46b45cba9c1eb4cd9 | refs/heads/master | 2021-04-15T14:50:16.542383 | 2018-04-02T10:51:16 | 2018-04-02T10:51:16 | 126,747,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #pip install SpeechRecognition
#https://github.com/Uberi/speech_recognition
#https://stackoverflow.com/questions/41525200/convert-mp4-sound-to-text-in-python?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
import urllib
import speech_recognition as sr
import subprocess
import os
#url = 'https... | [
"bmatthewtaylor@gmail.com"
] | bmatthewtaylor@gmail.com |
9db36c59cd13dc2a71fedd9cc08cc17c83185b33 | 678e276a81c6b9f7c58b4e8e40d35ac7a9c3d770 | /apps/core/urls.py | 7cd68d43bd12a9835e6e47eef036f2344bb32512 | [] | no_license | jaimeceballos/tp_final | dd030d6876f7a59d8ef66f9ff58e26589c0fa2ee | 614b8f6d30fe23f75df69399088b317c68f600c8 | refs/heads/master | 2021-03-30T19:45:54.376363 | 2016-07-06T14:01:20 | 2016-07-06T14:01:20 | 59,871,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | from django.conf.urls import include, url
from .views import *
urlpatterns = [
#url(r'^$', auth_views.login, {'template_name': 'login.html'},name='login'),
url(r'^contacto/$',contacto_emergencia,name='contacto'),
url(r'^contacto_save/$',save_contacto,name='contacto_save'),
url(r'^obtenerciudades/(?P<provin... | [
"jaimeceballos_rw@hotmail.com"
] | jaimeceballos_rw@hotmail.com |
1874145a72763c8aa4602740c393977087dc6406 | fbfb724f8d0c3a6b64b2d6773c6f723bedb9f7f5 | /Python/Django/time_display/apps/time_control/urls.py | 50f25b1442f483cab26646021110dc41aad34b0d | [] | no_license | eddieverity/DojoAssignments | 32ae4a1de768069d6636d1f109845e86bb20dec5 | 8860b4ca87633e722fa5aa93952ea719e9e95413 | refs/heads/master | 2020-04-06T03:59:56.185985 | 2017-04-26T18:04:41 | 2017-04-26T18:04:41 | 83,149,714 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.conf.urls import url, include
from views import *
urlpatterns = [
url(r'^$', index)
]
| [
"eddieverity@gmail.com"
] | eddieverity@gmail.com |
e259c562d3d0b337f7e3a471f7f3367b280a26ee | a001987fbdf7b81b2da938574b5c86332578f054 | /json/dump.py | 12d3311fbab9d56f0fb9500268ed463558a02d07 | [] | no_license | mr-kaveh/serverManagement | 5229b6c446d0e5504a1468d59dff1045a37c75a5 | 500d17acca6b8a23b35f2cd706be50abbc5a7102 | refs/heads/master | 2020-03-17T18:49:35.752087 | 2019-08-05T08:09:02 | 2019-08-05T08:09:02 | 133,835,071 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python3.6
import json
import requests
data = {
"president": {
"name": "Ghazanfar Darko",
"species": "GoldenMiner"
}
}
json_string = """
{
"researcher": {
"name": "Ford Prefect",
"species": "Betelgeusian",
"relatives": [
{
"... | [
"mr.hdavoodi@gmail.com"
] | mr.hdavoodi@gmail.com |
4cf20cd5c5d4053b816f8409f2a5b5c22f95abe3 | 7d90019c8f480a4dd65202a901b37dae1c1f6064 | /dump_hparams_to_json.py | d67e88d3e864fdff9536acf19cc9909e989c0c71 | [
"MIT"
] | permissive | r9y9/deepvoice3_pytorch | d3e85f54d46e809f6fffc0d619e0b4a9d1b13488 | f90255c96177c344cd18b5a52651b420a4d8062d | refs/heads/master | 2023-08-23T08:00:32.174896 | 2023-06-29T18:32:26 | 2023-06-29T18:32:26 | 108,992,863 | 1,964 | 511 | NOASSERTION | 2023-08-11T16:51:15 | 2017-10-31T12:31:44 | Python | UTF-8 | Python | false | false | 725 | py | # coding: utf-8
"""
Dump hyper parameters to json file.
usage: dump_hparams_to_json.py [options] <output_json_path>
options:
-h, --help Show help message.
"""
from docopt import docopt
import sys
import os
from os.path import dirname, join, basename, splitext
import audio
# The deepvoice3 model
f... | [
"zryuichi@gmail.com"
] | zryuichi@gmail.com |
a2acde9176b09457b3dc8099b13181a26403fa40 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/misdemeanor.py | 72c7250ec69b54a6d883d1648fa8c223b8c07a53 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 449 | py | ii = [('CookGHP3.py', 2), ('CookGHP.py', 5), ('AubePRP.py', 4), ('ClarGE2.py', 1), ('CookGHP2.py', 2), ('MarrFDI2.py', 2), ('ClarGE.py', 1), ('WadeJEB.py', 1), ('WheeJPT.py', 13), ('MereHHB3.py', 1), ('BailJD3.py', 1), ('MereHHB.py', 2), ('HogaGMM.py', 1), ('FitzRNS4.py', 1), ('BentJRP.py', 1), ('ThomGLG.py', 3), ('Sto... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
945b83811bb1aaf75f2fc46cc91172afbf54d095 | e08cdae39a5aae8ec95abc6aa36169bc367eebec | /15_pandas_data_aggregation.py | 9a2cce690c6e4806665ff2c37de1165927083350 | [
"MIT"
] | permissive | rohit98077/python_wrldc_training | 9784d4f49a583da34489c78e02983ca62af4dc22 | ec65392aa2cfa3e8564a852f380bf8d1da9f172a | refs/heads/master | 2022-12-22T14:50:41.923278 | 2020-09-21T05:46:31 | 2020-09-21T05:46:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | '''
Lesson 4 - Day 3 - perform aggregation on pandas dataframe
'''
# %%
import pandas as pd
# %%
# read dc data from csv and skip first 2 rows and skip last 6 rows
df = pd.read_csv('data/dc_data.csv', skipfooter=6, skiprows=2)
# %%
# calculate average value of a column using mean() function
avgVal = df['KHARGONE-I(3... | [
"nagasudhirpulla@gmail.com"
] | nagasudhirpulla@gmail.com |
c0f3a2427f4911be79d4b7017a0521b24d21b3c6 | dc7a8662a40b6e71997f4fa11db454868c4cb70e | /CodingRacing/decorators.py | 528555d8aa9677ad610a50de81bdb07a222eb06e | [] | no_license | kingmonstr/codingracing | 79ca55164019e15c82004d0740eadb8a4c101b14 | 77eaa33f6555d1b62f6e7931135515e8860d6f4e | refs/heads/master | 2020-03-10T09:09:41.690654 | 2017-03-31T06:07:45 | 2017-03-31T06:07:45 | 129,303,627 | 0 | 0 | null | 2018-04-12T19:48:58 | 2018-04-12T19:48:57 | null | UTF-8 | Python | false | false | 1,568 | py | import hashlib
import django.http
import CodingRacing.models as models
import CodingRacing.local_settings as local_settings
def get_auth_cookie(user_id):
data = str(user_id) + local_settings.COOKIE_HASH
return hashlib.md5(data.encode()).hexdigest()
def get_user_by_request(request):
if 'vk_id' not in r... | [
"andgein@yandex.ru"
] | andgein@yandex.ru |
c50712be4a37db4cc840fe67d3d72745f78da896 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/dynatrace/azure-mgmt-dynatrace/generated_samples/tag_rules_get_maximum_set_gen.py | d58364b9693128d29182fa8bc30109d734b7a057 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,632 | 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 |
9ecb0567e7023936d815976c6f093f774c7dc47a | a33368744a38bed09eca6230b651653874f89f6b | /Physics/P441/Homework/HW5/hw_5.py | 8c07236fc7566e8393dafea6a669bcec2b034ccc | [] | no_license | IanMadlenya/BYUclasses | 797be225ff7d6a4dccd2151f2be2526eb80ccace | 9f61a6f0d6f42032518fe43e21d8b080a49ee666 | refs/heads/master | 2020-05-31T10:46:28.442186 | 2013-07-06T21:08:59 | 2013-07-06T21:08:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # Problem 4.2
import sympy as sym
r, a, q, z = sym.symbols('r, a, q, z, d')
epsilon_0 = sym.symbols('epsilon_0')
pi = sym.pi
Q = 4*pi*q / (pi*a**3) * sym.integrate(sym.exp(-2*r / a) * r **2 , (r, 0, r))
print sym.latex(sym.factor(Q))
E = 1 / (4*pi*epsilon_0*r**2) * sym.factor(Q)
print sym.latex(E)
expansion = sym.... | [
"spencerlyon2@gmail.com"
] | spencerlyon2@gmail.com |
31619ebbd664533dd4bb165fbf6bcd18c860bea9 | ef1d38cfef63f22e149d6c9dd14e98955693c50d | /webhook/protos/pogoprotos/settings/poi_global_settings_pb2.py | c1c85d746e535dd00a17df25d6feb4b2e695bdcd | [] | no_license | Kneckter/WebhookListener | 4c186d9012fd6af69453d9d51ae33a38aa19b5fd | ea4ff29b66d6abf21cc1424ed976af76c3da5511 | refs/heads/master | 2022-10-09T04:26:33.466789 | 2019-11-24T17:30:59 | 2019-11-24T17:30:59 | 193,372,117 | 2 | 0 | null | 2022-09-23T22:26:10 | 2019-06-23T16:39:34 | Python | UTF-8 | Python | false | true | 2,136 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/settings/poi_global_settings.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.prot... | [
"kasmar@gitlab.com"
] | kasmar@gitlab.com |
15529e07ef78dfe0cb345b4d0c4d9897155632ef | 9452f681ea486fc53ad88d05392aed5fc450805c | /data_language_all/python/python_570.txt | 6d3567b6740fc02b535044b10dae8878bd9c560e | [] | no_license | CoryCollins/src-class | 11a6df24f4bd150f6db96ad848d7bfcac152a695 | f08a2dd917f740e05864f51ff4b994c368377f97 | refs/heads/master | 2023-08-17T11:53:28.754781 | 2021-09-27T21:13:23 | 2021-09-27T21:13:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | txt | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
http://code.activestate.com/recipes/131499-observer-pattern/
*TL;DR80
Maintains a list of dependents and notifies them of any state changes.
"""
from __future__ import print_function
class Subject(object):
def __init__(self):
self._observ... | [
"znsoft@163.com"
] | znsoft@163.com |
421c419391645d8a1437c9143a65d5cb1c949a40 | 5b24b236bff794520e8139913a9b976f5cc5ab9f | /ptsites/sites/torrentleech.py | cee27285b27aeb827eb4ba8826e43f3bd69ca13e | [
"MIT"
] | permissive | SKIYET/flexget_qbittorrent_mod | 2868ad02c179172d242ab0e24087e5b8d477c10c | d66b904542126e9d4fc99c7e0f2acb8de923725f | refs/heads/master | 2023-04-22T01:52:19.689554 | 2021-05-22T07:29:29 | 2021-05-22T07:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | from dateutil.parser import parse
from ..schema.site_base import SiteBase, Work, SignState
class MainClass(SiteBase):
URL = 'https://www.torrentleech.org/none.torrent'
USER_CLASSES = {
'uploaded': [54975581388800],
'share_ratio': [8],
'days': [364]
}
@classmethod
def buil... | [
"12468675@qq.com"
] | 12468675@qq.com |
b02815d7d98abe5a29e03add4285f3b2640dadbc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02975/s102896717.py | 3b8174d5d10f55a0dcd65cf9092907fe558a04c3 | [] | 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 | 327 | py | from collections import*
n=int(input())
a=list(map(int,input().split()))
ans=a[0]
for i in a[1:]:
ans^=i
a=dict(Counter(a))
ak=list(a.keys())
if len(a)==1 and ak[0]!=0:ans=1
elif len(a)==2 and a.get(0)!=n//3:ans=1
elif len(a)==3 and not(a[ak[0]]==a[ak[1]]==a[ak[2]]==n//3):ans=1
elif len(a)>3:ans=1
print(['Yes','No'][... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eb4d8e5a068ff180c7d923d4807432eb5f66273d | 7a88fc18f30d5dd3ac935877d4d9268a56c296be | /di_website/events/migrations/0008_auto_20190809_1012.py | e259eff1c07ded7e0cd1655fdfdc4f4476d402c9 | [] | no_license | devinit/DIwebsite-redesign | 745a480b7ba0feffa34dc664548ee4c5a7b4d470 | 9ec46823c67cdd4f35be255896bf30d8f6362666 | refs/heads/develop | 2023-08-30T04:06:20.951203 | 2023-08-07T12:06:07 | 2023-08-07T12:06:07 | 184,287,370 | 1 | 0 | null | 2023-08-28T14:34:57 | 2019-04-30T15:29:25 | HTML | UTF-8 | Python | false | false | 4,521 | py | # Generated by Django 2.2.3 on 2019-08-09 10:12
from django.db import migrations
import wagtail.blocks
import wagtail.fields
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('events', '0007_auto_20190806_1248'),
]
operations = [
... | [
"edwinm_p@yahoo.com"
] | edwinm_p@yahoo.com |
af1fa368e6829805ff9834e16d7133e46450ea17 | df19ee4c9e1233de395eedf1900d0dd5ce5988fc | /dj_menu/manage.py | 59208c56795ebbd434a1c62317da9b83a3f4594f | [] | no_license | padznich/dj_menu | 1ebcb21976d670636559f30bc63ac7a3db00cfc4 | a25de5795f3a4977e2dd58d1db82ea1cb4170a44 | refs/heads/master | 2021-08-28T15:30:24.226708 | 2017-12-12T16:20:54 | 2017-12-12T16:20:54 | 114,011,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dj_menu.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"slabkopg@gmail.com"
] | slabkopg@gmail.com |
a5fe78ca5b4490b9053350ad2f3fb8f0804569c6 | e0b50a8ff40097b9896ad69d098cbbbbe4728531 | /dcorch/db/sqlalchemy/migration.py | 168c47fcfe8d30009d2e70c403a0f2e51b7de340 | [
"Apache-2.0"
] | permissive | aleks-kozyrev/stx-distcloud | ccdd5c76dd358b8aa108c524138731aa2b0c8a53 | a4cebb85c45c8c5f1f0251fbdc436c461092171c | refs/heads/master | 2020-03-27T11:11:09.348241 | 2018-08-27T14:33:50 | 2018-08-27T14:33:50 | 146,470,708 | 0 | 0 | Apache-2.0 | 2018-08-28T15:47:12 | 2018-08-28T15:47:08 | Python | UTF-8 | Python | false | false | 1,383 | py | # Copyright (c) 2015 Ericsson AB.
# 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 applicab... | [
"scott.little@windriver.com"
] | scott.little@windriver.com |
fc3b875d97c771bc0686a51aa56902a739c751bc | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/additional/enum1_xsd/__init__.py | 2fb178cb32a77e13a2bbf3dad700855bbba78d2e | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 130 | py | from output.models.ms_data.additional.enum1_xsd.enum1 import (
Doc,
EnumType,
)
__all__ = [
"Doc",
"EnumType",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
2fd2475ea5421f3afe7c767cc58c0ebb7d2b5b66 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03722/s529252608.py | 70cd01b9d97eb5f7c13c9b324f7e0ee5d76b27cc | [] | 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 | 1,008 | py | n,m = map(int,input().split( ))
E = [[] for _ in range(n+1)]
for i in range(m):
ai,bi,ci = map(int, input().split( ))
ai-=1;bi-=1
E[ai].append((bi,-ci))
#「nまでの経路で」負閉路が要る
#https://tjkendev.github.io/procon-library/python/graph/bellman-ford.html
# V: グラフの頂点数
# r: 始点
# G[v] = [(w, cost), ...]: 頂点vからコストcostで到達... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e6a8311326a5e15a1f50408cd7987d9f47a33969 | cac090af84fae158a9e4c62a384578ba30b93c15 | /project_week/manage.py | 1215c647ce069eb0797a17d7c3c1e06032d90ffc | [] | no_license | micnem/developers_institute | ed316a3754dd48ed54741387430ff1dd436ae1d9 | aea6154a896407336c665d4ad531f124078bc001 | refs/heads/main | 2023-02-06T00:53:41.078983 | 2020-12-31T14:04:07 | 2020-12-31T14:04:07 | 305,331,313 | 0 | 0 | null | 2020-10-22T11:18:21 | 2020-10-19T09:29:00 | CSS | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'f1_game.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"michael.nemni@gmail.com"
] | michael.nemni@gmail.com |
8f2f1b1565e3a73148c21fd46d79f30418a682f0 | f62fd455e593a7ad203a5c268e23129473d968b6 | /glance-14.0.0/glance/api/middleware/version_negotiation.py | 62a26c08cebc3bb9bdaaf1a291779a59d2de861e | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 4,653 | py | # Copyright 2011 OpenStack Foundation
# 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... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
a7e36e6c5f69c8f5ffc59d85782cad36bf8e5448 | d051c100fcebd9c73a9e7ca85f8af6fefe24c854 | /group_buying/profiles/urls.py | 5f8686796ff4ecf49e12cbeac565e3028ec14634 | [] | no_license | kvenkataharsha/group_buying | 2837e6a7868aee074c2459eb7700bc46d044727c | f219dd6291cc2a1533e46ed79c5effba406a4d36 | refs/heads/master | 2022-11-17T18:10:55.937752 | 2020-07-14T13:34:52 | 2020-07-14T13:34:52 | 279,548,803 | 0 | 0 | null | 2020-07-14T13:34:53 | 2020-07-14T10:02:00 | null | UTF-8 | Python | false | false | 460 | py | from django.urls import path,include
from django.conf.urls import url
from . import views
# app_name = 'home'
urlpatterns = [
# path('update',)
path('update',views.update,name='update'),
path('view/<name>',views.profile,name='view'),
path('create/',views.create,name='create'),
path('phone',views.ph... | [
"saisantosh.c17@iiits.in"
] | saisantosh.c17@iiits.in |
60f8432b399946de8ef4a18f76687f30530c26e5 | 47243c719bc929eef1475f0f70752667b9455675 | /bungeni.main/branches/njoka-transcripts/bungeni/ui/file.py | 9123e55ff05d29e128444418efbd9dd4a42a1992 | [] | no_license | malangalanga/bungeni-portal | bbf72ce6d69415b11287a8796b81d4eb6520f03a | 5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d | refs/heads/master | 2021-01-19T15:31:42.943315 | 2014-11-18T09:03:00 | 2014-11-18T09:03:00 | 32,453,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,900 | py | # encoding: utf-8
# download view to download a file or image
from zope.interface import implements
from zope.publisher.interfaces import IPublishTraverse
from zope.publisher.browser import BrowserView
from zope.security import proxy
from tempfile import TemporaryFile
class RawView(BrowserView):
implements(IPubli... | [
"ashok.hariharan@fc5d704a-7d24-0410-8c4a-57ddeba10ffc"
] | ashok.hariharan@fc5d704a-7d24-0410-8c4a-57ddeba10ffc |
ddc93608d06834edf31a2e8118767a6cc5f1b952 | a4a44ad46cd1306e2da72ff89483b0102fc9787d | /SamplePython/samplePython/Networking/dari_buku_python_network_programming/Bab2_multiplexing_socket/_03_penggunaan_select_select.py | 5fb880ea695f27d87080899c3908107640bc4fce | [] | no_license | okipriyadi/NewSamplePython | 640eb3754de98e6276f0aa1dcf849ecea22d26b1 | e12aeb37e88ffbd16881a20a3c37cd835b7387d0 | refs/heads/master | 2020-05-22T01:15:17.427350 | 2017-02-21T04:47:08 | 2017-02-21T04:47:08 | 30,009,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,904 | py | """
We would like to run this script thrice: once for the chat server and twice for two chat clients.
For the server, we pass -name=server and port=8800 . For client1 , we change the name
argument --name=client1 and for client2 , we put --name=client2 . Then from the
client1 value prompt we send the message "Hello from... | [
"oki.priyadi@pacificavionics.net"
] | oki.priyadi@pacificavionics.net |
b8d860e435180eb9f1ef5fcdaffb9382b3a35115 | 9a93258702bc92121e39ebb6ff8a5bd89d482207 | /cvsfileread.py | 55506990871f848fe2f9e6c9d2616c2405b28017 | [] | no_license | Python-lab-cycle/swetha | d476e174094620d7f2eadfba5590157edd4e2fb9 | 59e8f371db1deca36374ff11704bb34d7b92782a | refs/heads/main | 2023-06-10T16:18:59.946931 | 2021-07-02T09:48:18 | 2021-07-02T09:48:18 | 325,941,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import csv
with open('employee.csv','r')as file1:
reader1=csv.reader(file1)
for row in reader1:
print(row)
| [
"noreply@github.com"
] | Python-lab-cycle.noreply@github.com |
7af2579af4523010983f8361d20189ac00598d07 | 43842089122512e6b303ebd05fc00bb98066a5b2 | /interviews/amazon/647_palindrome_substrings.py | 3dacd8be72e5dc2fd6a972286565fe9cd85e6186 | [] | no_license | mistrydarshan99/Leetcode-3 | a40e14e62dd400ddb6fa824667533b5ee44d5f45 | bf98c8fa31043a45b3d21cfe78d4e08f9cac9de6 | refs/heads/master | 2022-04-16T11:26:56.028084 | 2020-02-28T23:04:06 | 2020-02-28T23:04:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | """
647. Palindromic Substrings
Medium
1248
65
Favorite
Share
Given a string, your task is to count how many palindromic substrings in this string.
The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters.
Example 1:
Input: "abc"
Output: ... | [
"maplesuger@hotmail.com"
] | maplesuger@hotmail.com |
6d1cb66bca1662f5c23093dcabd5295b55e3ed7f | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/usersfunctions_beta/azext_usersfunctions_beta/vendored_sdks/usersfunctions/operations/_user_calendar_group_calendar_event_exception_occurrence_operations.py | 9f3ca13f99e10ad7e4cea48478fe14c024239b64 | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,915 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
d57024cb703b0eb76a58d7de3f91e1adb8483029 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/investig.py | 51dca160421f9ea4c43e7cf935cb91aff9a0de11 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 2,163 | py | ii = [('BentJDO2.py', 12), ('CookGHP3.py', 6), ('LyelCPG2.py', 11), ('MarrFDI.py', 8), ('RogePAV2.py', 17), ('CoolWHM2.py', 2), ('GodwWSL2.py', 14), ('ChanWS.py', 2), ('RogePAV.py', 16), ('SadlMLP.py', 2), ('WilbRLW.py', 3), ('RennJIT.py', 15), ('ProuWCM.py', 13), ('AubePRP2.py', 23), ('CookGHP.py', 5), ('ShawHDE.py', ... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
339f558d55f3c5101ee4acfe12f55fcf2f9f9db5 | aa0270b351402e421631ebc8b51e528448302fab | /sdk/network/azure-mgmt-frontdoor/azure/mgmt/frontdoor/aio/operations/_rules_engines_operations.py | 82f9ea2984ccb2c79e37d2c78a20bdcb88a5c29d | [
"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 | 27,626 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
6dbd8b33926dfe3f130dc3387a490099717baac2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634947029139456_0/Python/nrpeterson/A.py | fd90569bbd059e400924efd8359b3d3ecae02be4 | [] | 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,037 | py | import sys
from itertools import product
def check(flows, reqs, choice):
flows2 = [tuple(int(flow[i] != choice[i]) for i in range(L)) for flow in
flows]
return set(reqs) == set(flows2)
basename = "A-small-attempt2"
input_filename = basename + ".in"
output_filename = basename + ".out"
input_fil... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.