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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5b4e9ce0f406faab229650c97a698c4b6b9abf81 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 10810 - Ultra Quicksort/main.py | 83c6a91b9f5f98b1a70a14ed5bf4242f4eedd5cd | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | '''
Created on Jun 18, 2013
@author: Yubin Bai
All rights reserved.
'''
import time
import bisect
from multiprocessing.pool import Pool
parallelSolve = False
INF = 1 << 31
def solve(par):
def invIndex(left, right):
if left >= right:
return 0
mid = (left + right) // 2
c1 = i... | [
"xenron@outlook.com"
] | xenron@outlook.com |
189d5437b385b0447b378f7431351eb3aad277ed | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pfnet_chainer/chainer-master/tests/chainer_tests/function_hooks_tests/test_debug_print.py | b5736a42a4f718215400630872452bbbd0233386 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,022 | py | import unittest
import chainer
from chainer import cuda
from chainer import function_hooks
from chainer import functions
from chainer import gradient_check
from chainer import links
from chainer import testing
from chainer.testing import attr
import numpy
class TestPrintHookToLink(unittest.TestCase):
def setUp(... | [
"659338505@qq.com"
] | 659338505@qq.com |
13c3104802285960ae6b1f0eaa4190ce20618728 | b9008dc6326b30de1a16ba01a1f3143aa248f7c3 | /인터페이스 실습코드/workspace/workspace/01_python/chapter12/ex05.py | 30d7c31e8a6a316023c66e874dbce5920119e9da | [] | no_license | wonjongah/multicampus_IoT | ce219f8b9875aa7738ef952a8702d818a571610e | 765a5cd7df09a869a4074d8eafce69f1d6cfda4a | refs/heads/master | 2023-02-13T12:30:19.924691 | 2021-01-08T10:17:42 | 2021-01-08T10:17:42 | 292,800,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | import calendar as cal
print(cal.calendar(2020))
print(cal.month(2020,8)) | [
"wonjongah@gmail.com"
] | wonjongah@gmail.com |
eae0da8249cafa76a62967f136587d6ea30c6de8 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/unsignedLong/Schema+Instance/NISTXML-SV-IV-atomic-unsignedLong-minInclusive-1-1.py | d6929619929bdf0f20fb36345429cb74d05f044c | [
"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 | 300 | py | from output.models.nist_data.atomic.unsigned_long.schema_instance.nistschema_sv_iv_atomic_unsigned_long_min_inclusive_1_xsd.nistschema_sv_iv_atomic_unsigned_long_min_inclusive_1 import NistschemaSvIvAtomicUnsignedLongMinInclusive1
obj = NistschemaSvIvAtomicUnsignedLongMinInclusive1(
value=0
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
a3997c99d17ae7c5e6b3ae8315eecd0ce3e0994b | 3044d26f03f23e8e8c5fcec57b78bfffe0fa0bd3 | /case/Wokflow/test_flow_new_product/workflow_PurchasingClass_newproduct_flowNewProduct_return_GM.py | ceb56281b68169e34f10f1c1863cc4ad4f1fb48b | [] | no_license | tian848-tim/trunk | de50a153c8cab3c81c79c523256a6f1b4c2f049d | cd52afdd003f094056dc2ea877c823a38e6a26fd | refs/heads/master | 2022-11-20T06:43:35.540105 | 2020-07-20T07:48:26 | 2020-07-20T07:48:26 | 281,048,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,785 | py | '''
测试用例标题:新品开发测试
测试场景:新品开发申请业务流程测试——采购经理退回
创建者:Tim
创建日期:2018-7-25
最后修改日期:2018-7-25
输入数据:审批流程各个角色账号
输出数据:无
'''
# -*- coding: utf-8 -*-
import sys,os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
#sys.path.append(rootPath)
import unittest
from cgitb import text
import selen... | [
"tim.long@Newaim01.com"
] | tim.long@Newaim01.com |
e2c0bffad42cca895dc047464441f0a0f2a9e293 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_frothing.py | 307e6a0124c42aed819d8337748447c942105261 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py |
from xai.brain.wordbase.nouns._froth import _FROTH
#calss header
class _FROTHING(_FROTH, ):
def __init__(self,):
_FROTH.__init__(self)
self.name = "FROTHING"
self.specie = 'nouns'
self.basic = "froth"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
10bda6979c6cdc4e37ae4980900bcb9251682357 | b8d9bba87ffb1c6945fb1c9268a986587e672785 | /A_Mendez/adviserinfo/adviserinfo.py | 709007c7de9fcdf7fc671e216abf7f2f2924fde8 | [] | no_license | patilanup246/Projects | 4f510f5965a2b5c1ca72dd94e70f53e14c7dac59 | b41aaa052a9f211065c184b7a0e167c089aefbc5 | refs/heads/master | 2021-02-28T00:14:01.330374 | 2018-09-01T12:26:29 | 2018-09-01T12:26:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,621 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
import re, time, csv, pyautogui
from pyquery import PyQuery
# driver = webdriver.Chrome()
# driver.get('https://www.adviserinfo.sec.gov/IAPD/IAPDSearch.aspx')
# time.sleep(5)
# try:
# driver.find_element_by_css_selector('[title="No, thanks"]').click()
# dr... | [
"tasneemrangwala@users.noreply.github.com"
] | tasneemrangwala@users.noreply.github.com |
1aa94b425e7849cb3163cf0460267cfbe65a47f5 | dc1bc9336cc8e1ff300472e7a4194a514195f0a4 | /ex114.py | 0fb84fc6a54a793a8da03e33eb114456f7874911 | [] | no_license | Kanefav/Modules | b7f0f36f2aaf2c8ff22e1289467d34a5084fe1a6 | d5b2e1ad810bad0812ced41b23b177cce19f5be3 | refs/heads/master | 2023-05-08T04:39:57.949839 | 2021-06-04T13:00:15 | 2021-06-04T13:00:15 | 367,135,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import urllib
import urllib.request
try:
site = urllib.request.urlopen('http://www.pudim.com.br')
except urllib.error.URLE:
print('O site não está acessível no momento', end='')
else:
print('O site está acessível no momento', end='')
finally:
print('.') | [
"gabrielfav12@gmail.com"
] | gabrielfav12@gmail.com |
afe9d24f3d0471307c561d02d940ac608746d72a | 8f64d50494507fd51c0a51010b84d34c667bd438 | /BeautyForMe/myvenv/Scripts/rst2odt.py | f0b73d725993e02f245f8e07e2b6132f77de9df7 | [
"MIT"
] | permissive | YooInKeun/CAU_CSE_Capstone_3 | 5a4a61a916dc13c8635d25a04d59c21279678477 | 51405c4bed2b55661aa0708c8acea17fe72aa701 | refs/heads/master | 2022-12-11T15:39:09.721019 | 2021-07-27T08:26:04 | 2021-07-27T08:26:04 | 207,294,862 | 6 | 1 | MIT | 2022-11-22T04:52:11 | 2019-09-09T11:37:13 | Python | UTF-8 | Python | false | false | 833 | py | #!c:\users\keun0\appdata\local\cau_cse_capstone_3\beautyforme\myvenv\scripts\python.exe
# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
A front end to the Docutils Publisher, producing OpenOffice docum... | [
"keun0390@naver.com"
] | keun0390@naver.com |
932267fcbc456589fc7debfd6cbe64b90eb569ff | c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb | /SelectDemo/server_select.py | 9c6542e0a3118f471159e0b781c8f806ece41bcd | [] | no_license | GIS90/python_base_use | e55d55f9df505dac45ddd332fb65dcd08e8e531f | 7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1 | refs/heads/master | 2020-04-02T08:33:49.461307 | 2018-10-23T03:33:41 | 2018-10-23T03:33:41 | 154,249,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # -*- coding: utf-8 -*-
import select
import socket
import Queue
SERVER_IP = ("127.0.0.1", 40001)
input_list = []
output_list = []
message_queue = {}
print "select server start"
print "select server end"
| [
"mingliang.gao@qunar.com"
] | mingliang.gao@qunar.com |
8d2417c202aa785d0cc41681e11c153996919397 | ed6e98d1eca1af6f173331bc3181e1ceb132fded | /infra_macros/macro_lib/convert/d.py | e53baf022443905d25a4611200b82e9f922428bd | [
"BSD-3-Clause"
] | permissive | elaa0505/buckit | 38fce4f2b9e8aba1cfb86eda50e57bc4f8bef3bf | 08406fc4255796bf038e7b4747596ccbb48317c6 | refs/heads/master | 2020-04-02T13:21:48.311606 | 2018-10-23T23:54:11 | 2018-10-23T23:57:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #!/usr/bin/env python2
# Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
427d0fe246841fb899e1c6a215393baecd71edd3 | 1bc88efc5e2e547fa4ce1c1dde52194009a2ca4f | /forecasting/__init__.py | 244394259c36a8968ee68837daf9767a8d7d5312 | [
"MIT"
] | permissive | YetingWen/energy_management_system | 8e8f8c0d0252d56556fc1989b89f67449dd3d534 | b2af6a3cfa71173f33d798e943f605d802aed19f | refs/heads/master | 2021-09-05T07:33:50.606107 | 2018-01-25T08:03:25 | 2018-01-25T08:03:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # Forecasting package for local energy management system
# There are three stages of forecasting, i.e., short, middle and long term operation.
# The load profile is forecasted by using the database in United States.
# There is a weather station in Nanyang Technological University, where the database is used.
# The for... | [
"matrixeigs@gmail.com"
] | matrixeigs@gmail.com |
9629125cadaa77800354e9b1d760caf864b71a05 | 277f976227c7590f6de5e7991d8fbed23b6646fe | /euler/solution/p101.py | 6b16be08ff55cfb7b560a0555d801136a5ee5e80 | [] | no_license | domspad/euler | ca19aae72165eb4d08104ef7a2757115cfdb9a18 | a4901403e442b376c2edd987a1571ab962dadab2 | refs/heads/master | 2021-01-17T14:04:39.198658 | 2016-07-25T23:40:10 | 2016-07-25T23:40:10 | 54,561,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py |
# 25 mins (wiht sympy)
# In [43]: %time %run p101.py
# 37076114526
# CPU times: user 120 ms, sys: 5.69 ms, total: 125 ms
# Wall time: 132 ms
from sympy.abc import x
from sympy import interpolate
def f(n):
return sum( (-n)**i for i in xrange(11))
def optimal_poly(values):
"""
given [1,8,27]
assume F(1) == 1,
... | [
"domspad@umich.edu"
] | domspad@umich.edu |
c043274d70091dc84951be820844ff7ce07392ab | 3cd36f39313046622b205964b67dc68deb94a64c | /setup.py | 9943a596484c6f01bd627e6c061a739a629fa7d0 | [] | no_license | dunossauro/grupy-locaweb-2018 | ed969882c4750eb666fe1442dda0ecb6e17a4358 | 1109f0875b4555a45dbbd7b244b29ac2c3622590 | refs/heads/master | 2020-04-04T17:47:10.956688 | 2018-11-04T23:36:46 | 2018-11-04T23:36:46 | 156,135,635 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from setuptools import setup
setup(name='locaweb',
packages=['app'],
zip_safe=False)
| [
"mendesxeduardo@gmail.com"
] | mendesxeduardo@gmail.com |
8a29cc8ee20a8ff539d3352a798fb75ca09556bb | 609085edf06f3091ecd639007480fb7cba15126f | /napari/_tests/test_interactive_transforms.py | 23f5ab2b31ef2a0533ba82c5b29ce1acfba9d526 | [
"BSD-3-Clause"
] | permissive | jojoelfe/napari | c7432daa6672045e95a58946c90ed0a5c779ef2d | c871c319247b79d4c5cc9270c0fec04740aed9d0 | refs/heads/master | 2023-05-12T17:08:48.145360 | 2022-12-21T16:25:43 | 2022-12-21T16:25:43 | 241,278,044 | 0 | 0 | BSD-3-Clause | 2023-05-01T02:58:28 | 2020-02-18T05:11:42 | Python | UTF-8 | Python | false | false | 4,384 | py | import numpy as np
import pytest
from vispy import keys
from napari.components.overlays._interaction_box_constants import Box
from napari.utils.transforms import Affine
def check_corners_of_axis_aligned_interaction_box(
box, *, top_left_corner=[0, 0], bottom_right_corner=None
):
if not np.allclose(box[Box.TO... | [
"noreply@github.com"
] | jojoelfe.noreply@github.com |
53b329963d1cf1221ea00c14da6e5ea1b13df5e9 | 010d94b2f9716f70b465df5dbb6118f9aa16dd31 | /adv/jurota.py | 595e525b4f616793552ea4bafc958502be87c6ca | [
"Apache-2.0"
] | permissive | CarelessParsley/dl | aa24c8f6216eba2de8e055e9768d4a0133b37159 | 6a72178be3abe7a2bce7ad480c81303cdc463e63 | refs/heads/master | 2020-05-19T08:09:22.971090 | 2019-05-05T02:14:30 | 2019-05-05T02:14:30 | 184,914,167 | 0 | 0 | null | 2019-05-04T15:45:17 | 2019-05-04T15:45:17 | null | UTF-8 | Python | false | false | 409 | py | import adv_test
import adv
from slot.a import *
def module():
return Jurota
class Jurota(adv.Adv):
a1 = ('bk',0.2)
comment = 'reach 100 resist with Saintly Delivery'
conf = {}
conf['slots.a'] = Saintly_Delivery()+RR()
if __name__ == '__main__':
conf = {}
conf['acl'] = """
`s1
... | [
"bblues@live.cn"
] | bblues@live.cn |
7410c51686ff38947b7ccab67477456ddec554da | 14449108de18a8e956830cd7d5107bb38de41c5d | /workshopvenues/venues/migrations/0002_auto__del_venues__add_facility__add_venue.py | e2963ae962cf7271b3be91d971baaae1276025b2 | [
"BSD-3-Clause"
] | permissive | andreagrandi/workshopvenues | 736e53ccb6ff0b15503e92a5246b945f615d2ff8 | 21978de36f443296788727d709f7f42676b24484 | refs/heads/master | 2021-05-16T03:00:23.879925 | 2014-03-18T15:10:00 | 2014-03-18T15:10:00 | 8,843,235 | 1 | 3 | null | 2015-10-26T11:11:20 | 2013-03-17T23:19:33 | Python | UTF-8 | Python | false | false | 3,771 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Venues'
db.delete_table(u'venues_venues')
# Adding model 'Facility'
db.cr... | [
"a.grandi@gmail.com"
] | a.grandi@gmail.com |
618f96c35a74480c68a05e72c6b1d39cc4eeee18 | 003b08dc74bc0bd60af20e29e1328eabd7f44b52 | /astropy_healpix/tests/test_bench.py | de235170c96d19b01de5fd4eb0bef06d9572bcb5 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | astropy/astropy-healpix | d8ef64589f0d67e49cb5003707d7cd9dd29bbeed | 37060030c3d8e8b022bcdf3b73efc9a11f0eea28 | refs/heads/main | 2023-08-21T00:44:24.103904 | 2023-08-15T20:39:28 | 2023-08-15T20:39:28 | 65,684,521 | 41 | 17 | BSD-3-Clause | 2023-09-11T15:22:19 | 2016-08-14T20:13:51 | C | UTF-8 | Python | false | false | 65 | py | from ..bench import main
def test_bench():
main(fast=True)
| [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
d42b6370100dd8acd77cac0be7234f8eef3f2736 | e770f16ec1d5e32bd220866e363f9793e0e1eab6 | /promotores/urls.py | 87993aed64aa890e64b34c3e3790413ae557383a | [
"MIT"
] | permissive | charlieweb/simasinnovacion | 1f17cbb3570482e1a3c821b263a6a1b6ba58bc76 | a662b67283f8aa38c7005418005d685d8ccbeef9 | refs/heads/master | 2020-12-25T09:09:00.807478 | 2013-10-04T21:42:18 | 2013-10-04T21:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from django.conf.urls import patterns, url
from django.views.generic import TemplateView
urlpatterns = patterns('promotores.views',
url(r'^$', TemplateView.as_view(template_name="index.html")),
url(r'^inicio/$', 'inicio', name="inicio"),
url(r'^promotores/$', 'promotor_index', name="lista_promotor"),
u... | [
"crocha09.09@gmail.com"
] | crocha09.09@gmail.com |
a22fe712a63450672e25df83f29b7c63f2d0f861 | 365e8e1f6bc5dfaddd8691f023c9ff022fbc77fe | /pyqs/worker.py | 98b4f726b1ebb9df6112ad730868463394407502 | [] | no_license | andrewgross/PyQS | 40b4862a07e38e92092a61a57d9b1a3f762ffccc | 9a49e8157c6582f45b4239f1be25a5136dfe4321 | refs/heads/master | 2020-12-28T21:17:17.522593 | 2013-04-30T02:41:32 | 2013-04-30T02:41:32 | 37,163,195 | 0 | 0 | null | 2015-06-09T23:00:08 | 2015-06-09T23:00:07 | null | UTF-8 | Python | false | false | 5,348 | py | #!/usr/bin/env python
import fnmatch
import importlib
import logging
from multiprocessing import Event, Process, Queue
from optparse import OptionParser
import os
from Queue import Empty, Full
import signal
import sys
import traceback
import boto
from pyqs.utils import decode_message
PREFETCH_MULTIPLIER = 2
logger ... | [
"spulec@gmail.com"
] | spulec@gmail.com |
7f56537afe6b9249c2e699da40f5fca896a21016 | de6dc75873bd8615d22dd25c51f2fe3bc82cd7f8 | /090.字符串相加.py | 1cbad002b24eacbb60ef963c9b55d4b24a8ea186 | [] | no_license | cuimin07/LeetCode-test | b9e87b4e353b09dfa84f62c24c2950d57656fff2 | 8f02b78dcbdefa154bb52c14a271998361e92a86 | refs/heads/master | 2020-08-14T13:37:27.799071 | 2020-01-13T03:11:40 | 2020-01-13T03:11:40 | 215,178,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | '''
给定两个字符串形式的非负整数 num1 和num2 ,计算它们的和。
注意:
num1 和num2 的长度都小于 5100.
num1 和num2 都只包含数字 0-9.
num1 和num2 都不包含任何前导零。
你不能使用任何內建 BigInteger 库, 也不能直接将输入的字符串转换为整数形式。
'''
#答:
class Solution:
def addStrings(self, num1: str, num2: str) -> str:
res = ""
i, j, carry = len(num1) - 1, len(num2) - 1, 0
whi... | [
"noreply@github.com"
] | cuimin07.noreply@github.com |
034ab8dc5efc4205cb70c474a64810190d043eb0 | 5b63850c1b6772f06db31f692e0e109ba7a1a3e5 | /setup.py | c06caecc84c2771bed61cbf42c872a3bdabf6b0d | [
"MIT"
] | permissive | wukong4430/TensorPy | 65530f7e9cae432a2c6b2888d051910767a63071 | ab8c48a7685899ef095b0ba4feeab864ac3fedc3 | refs/heads/master | 2021-01-20T07:18:36.562237 | 2017-04-07T06:17:09 | 2017-04-07T06:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | """
The setup package to install TensorPy dependencies.
*> This does NOT include TensorFlow installation.
*> To install TensorFlow, use "./install.sh"
"""
from setuptools import setup, find_packages # noqa
setup(
name='tensorpy',
version='1.0.13',
url='http://tensorpy.com',
author='Michael Mintz',
... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
0489af32270b115b76f01c38d2aaba44e9cc4300 | 73208473ead4c2483e3685765fc000bd9972b506 | /python/helpers/typeshed/stdlib/3/resource.pyi | f93f2b747b6757e839ce4612e28453b6c8ae5963 | [
"MIT",
"Apache-2.0"
] | permissive | code-general/intellij-community | a72bda439b374a08a2fb753e32ddeb4d494b0b98 | a00c61d009b376bdf62a2859dd757c0766894a28 | refs/heads/master | 2023-02-12T04:29:56.503752 | 2020-12-30T04:29:00 | 2020-12-30T04:29:00 | 320,182,339 | 1 | 0 | Apache-2.0 | 2020-12-30T06:58:32 | 2020-12-10T06:36:43 | null | UTF-8 | Python | false | false | 1,253 | pyi | import sys
from typing import NamedTuple, Optional, Tuple, overload
RLIMIT_AS: int
RLIMIT_CORE: int
RLIMIT_CPU: int
RLIMIT_DATA: int
RLIMIT_FSIZE: int
RLIMIT_MEMLOCK: int
RLIMIT_NOFILE: int
RLIMIT_NPROC: int
RLIMIT_RSS: int
RLIMIT_STACK: int
RLIM_INFINITY: int
RUSAGE_CHILDREN: int
RUSAGE_SELF: int
if sys.platform == "... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
1c4b760c132293f3dadaf732ef8bd0e19ba9efc3 | 1dfd0cfa78f8feb7f22537e3043650b17374866d | /client_side/data_share/Nodes.py | 85cabfac007aff16caa7dd82c0b077ff7b522b0a | [
"MIT"
] | permissive | dawidsielski/medical-data-share | dcfa718ca9f2b57dec46937dced1383cd80f6897 | e462ffcfe0650b4fed2bb113c331a2a7438a8509 | refs/heads/master | 2020-04-18T02:30:03.007252 | 2019-05-26T11:51:03 | 2019-05-26T11:51:03 | 167,165,192 | 0 | 0 | MIT | 2019-02-21T11:51:18 | 2019-01-23T10:36:31 | Python | UTF-8 | Python | false | false | 1,372 | py | import os
import json
import requests
import urllib
NODES_PATH = os.path.join('..', 'nodes')
class Node(object):
def __init__(self, ip_address=None, name=None, public_key=None):
self.ip_address = ip_address
self.name = name
self.public_key = public_key
def __str__(self):
re... | [
"dawid.sielski@outlook.com"
] | dawid.sielski@outlook.com |
81cdfce15fbc853215de5d8e7ed0081fbaa2b0ed | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayCommerceTransportAdPlanCertifyModel.py | 5137b890f81de98352d1d28a0b4b6125f74a5f6e | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,393 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayCommerceTransportAdPlanCertifyModel(object):
def __init__(self):
self._ad_user_id = None
self._plan_id = None
@property
def ad_user_id(self):
return self._a... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
2020bb908b5edfbed6276d05582f865fb21c70a2 | a92d2add8aea04da46f94c6ab1f0d1af0ee843aa | /qytPytorch/dataset/cv/image_classification/fashion_mnist.py | 99f461f488a3b4ae85905b06db1c86aace54c731 | [
"Apache-2.0"
] | permissive | q759729997/qytPytorch | 34280445fb527b76b99b7b03c9f74eac34182d96 | b9b4b6aeff67596c493871c0842dc72c5b66c548 | refs/heads/master | 2021-03-22T19:05:46.089603 | 2020-04-19T15:39:37 | 2020-04-19T15:39:37 | 247,394,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
module(fashion_mnist) - FashionMNIST数据集常用.
Main members:
# get_dataset - 获取数据集.
# get_data_iter - 获取数据集迭代器.
# get_labels_by_ids - 根据标签id获取标签具体描述.
# show_fashion_mnist - 展示图像与标签.
"""
import sys
import torch
import torchvision
from matplotlib import pyplot as p... | [
"qiaoyongtian@qq.com"
] | qiaoyongtian@qq.com |
daae63e431ab91c4e341c2efc1f9829fec71fde7 | 701bdfbdfb686e95d28ad9ddcf14030229948a15 | /src/python/samplegen/imggen/RandomImgGen.py | 4271446e5cc52ac55fee3922865343b7ab993563 | [] | no_license | phildue/datagen | 14f5ee5a1b279c8f3f2ce7225d28edddb6dd3d10 | 5e25dd1977ca5c200c5d4f304326289de6b96c64 | refs/heads/master | 2020-03-28T10:40:47.280523 | 2018-11-22T08:09:30 | 2018-11-22T08:09:30 | 148,133,586 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,937 | py | import glob
import random
from scipy import signal
import numpy as np
from samplegen.imggen.ImgGen import ImgGen
from utils.imageprocessing.Backend import imread, replace_background, blur, noisy, convert_color, COLOR_BGR2YUV, resize
from utils.imageprocessing.Image import Image
from utils.imageprocessing.transform.Im... | [
"phild@protonmail.com"
] | phild@protonmail.com |
2707779324a7597860f1fb3a414e4781b2e34981 | 2b5d81665eb7908663b5d684e3711b90d48ffe79 | /0x00-lockboxes/0-lockboxes.py | 0ef8177e6996bb20afa64701e986b584dc6b0b88 | [] | no_license | jdarangop/holbertonschool-interview | 5bdd3ae782911bf41a6e6d58c3f9a5b48798cf89 | 2398cc92a3b11d65fde3993799f28a104183dcdb | refs/heads/master | 2023-02-14T15:18:49.998459 | 2021-01-02T18:58:19 | 2021-01-02T18:58:19 | 256,920,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | #!/usr/bin/python3
""" lockboxes 0 """
def inspectboxes(box, boxes, keys):
""" Inspect every box recursively
box: list
keys: set
"""
# if type(box) != list:
# return
for i in box:
if i not in keys and i < len(boxes):
keys.add(i)
print(keys)
... | [
"juandiegoap33@gmail.com"
] | juandiegoap33@gmail.com |
0e8c46f510046244f76d979f1f5182c9b44bfd87 | 4dbbd3f9d9ef6321b8cffde7168bc36b5798f17b | /precisely/feature_matchers.py | a815fae67859acda7e7e246f7ab1863ff5fd372c | [
"BSD-2-Clause"
] | permissive | Python-Repository-Hub/python-precisely | 51b713e18218de0effb25e05c304925c3e5a5845 | 7fad8a7e38fb626dfd42f9f788a0d92dc38ccdee | refs/heads/master | 2023-03-16T09:39:41.654441 | 2021-03-06T16:28:11 | 2021-03-06T16:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from .base import Matcher
from .results import matched, unmatched
from .coercion import to_matcher
def has_feature(name, extract, matcher):
return HasFeatureMatcher(name, extract, to_matcher(matcher))
class HasFeatureMatcher(Matcher):
def __init__(self, name, extract, matcher):
self._name = name
... | [
"mike@zwobble.org"
] | mike@zwobble.org |
2a21663fd644e2105673362599aaca7331c63bdf | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_5734.py | 8d2cce131cc875018bf3a23691250d58bb86f28e | [] | 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 | 46 | py | # Getting a number of digits
"%.3f" % math.pi
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
16b01b46ede7ac832987030822c21425ba517303 | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW5/hw5_429.py | ffc9b590f14c9da4632b58b352d39f5c956b366f | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | def main():
width = int(input("Enter width: "))
height = int(input("Enter height: "))
outline = input("Enter symbol for outline: ")
fill = input("Enter symbol for fill: ")
box = [None]*height
n = 0
for i in box:
box[n] = outline * width
n = n + 1
for i in range(1, height-... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
5d4f20807e8aa67f96b7f3b59d1f700d90282a99 | affebfdede11ce995dbbe7bcba177985ff80bee4 | /BParkingNano/python/particlelevelBPark_cff.py | fe27b8cab934c848cb7eab02e1ecc6ae68e28d92 | [
"Apache-2.0"
] | permissive | sarafiorendi/BParkingNANO | 5b24702b1c65cbbd6b90646714decc7f1c3c2931 | e6d72440b9db887f5ba426a299fa07eb8c7b2ba5 | refs/heads/master | 2020-06-29T22:24:09.488125 | 2019-09-12T09:18:56 | 2019-09-12T09:18:56 | 200,642,115 | 0 | 0 | Apache-2.0 | 2019-08-05T11:25:14 | 2019-08-05T11:25:14 | null | UTF-8 | Python | false | false | 254 | py | import FWCore.ParameterSet.Config as cms
from PhysicsTools.NanoAOD.particlelevel_cff import *
particleLevelBParkSequence = cms.Sequence(mergedGenParticles + genParticles2HepMC + particleLevel)
particleLevelBParkTables = cms.Sequence(rivetLeptonTable)
| [
"arabella.martelli@cern.ch"
] | arabella.martelli@cern.ch |
ca131774e526652ac833c574177b04d6056d53b7 | aa160afbc98824d4b41ac9812026027a90997a96 | /lib/pymedphys/_streamlit/apps/wlutz/main.py | cd75260434134e808fefecd6778fb6e3c6c5b083 | [
"Apache-2.0"
] | permissive | dzwiedzn7/pymedphys | eb0d4ef37cc072db9aa4babb5b167143a0be78ef | df8c3f683012ad5d1d6f11fac1dec9762e09c8a7 | refs/heads/main | 2023-01-11T17:38:59.978936 | 2020-11-15T11:44:29 | 2020-11-15T11:44:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,768 | py | # Copyright (C) 2020 Cancer Care Associates
# 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 ... | [
"me@simonbiggs.net"
] | me@simonbiggs.net |
92f28c556463558c6c1a6f356fb40825efafd18e | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage3-model/pytz/zoneinfo/Indian/Mauritius.py | b18b9edafe1be8a08642998d53db24c88d917e2c | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | '''tzinfo timezone information for Indian/Mauritius.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Mauritius(DstTzInfo):
'''Indian/Mauritius timezone definition. See datetime.tzinfo for details'''
zone = 'Indian... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
b5a43216a846621555f6f31246f16bc79570df50 | bb225e111e620a8a43152ff356db62dc11c3d5e4 | /allyears_plot_graphs_accuracies.py | 6ec0ddcf11e40bbc5b2f01bfc088e221d3a90638 | [] | no_license | Bharathkumar-nb/Spam-classification | 70e060215e23dbaf91aba753a23ed3e55355b85f | f64166c2d5d4bfb94513f0c375ce03920ad6856c | refs/heads/master | 2021-05-15T20:51:38.404751 | 2018-06-29T15:29:29 | 2018-06-29T15:29:29 | 107,911,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | # imports
import sys
import os
import matplotlib
matplotlib.use('Agg')
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.metrics import confusion_matrix, accuracy_score, zero_one_loss, classification_report, roc_curve, auc, roc_auc_score... | [
"bharathkmr.nb@gmail.com"
] | bharathkmr.nb@gmail.com |
29055017028394978f877933474c89444e2c0e37 | cd06c7710fa5f824d203fd15aaf377c39521ae56 | /chainer/functions/pooling/roi_pooling_2d.py | e2eb0373a45ce70271d14eac865646fcdaf77f68 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | prajdabre/chainer | 16158f6c55e4c92e6fa07bcb27323772ab4a4975 | d6392dd70f4f5dfe4c023e2f673b6ef33088fdfe | refs/heads/master | 2020-04-06T04:33:46.568773 | 2016-06-02T06:31:18 | 2016-06-02T06:31:18 | 56,295,529 | 1 | 0 | null | 2016-04-15T06:11:11 | 2016-04-15T06:11:11 | null | UTF-8 | Python | false | false | 15,236 | py | # Modified work:
# -----------------------------------------------------------------------------
# Copyright (c) 2015 Preferred Infrastructure, Inc.
# Copyright (c) 2015 Preferred Networks, Inc.
# -----------------------------------------------------------------------------
# Original work of _roi_pooling_slice, forwa... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
0f0b84e439d9e0b1a10af2b03364afcb43e5e29a | e4cf70d4584c2e070f9f4813d19d3c570fcae5a7 | /SKIN_LESION/GRAD_CAM/load_model.py | 31af5a407e38d4f2945e2c31353a4e7b7a029725 | [] | no_license | Jimut123/drrmsan_tests | ef16294655886f44eac81884196eb298f29f5bf5 | 5629a50641e039200b75fc53019e27602dc81302 | refs/heads/main | 2023-04-05T21:14:44.170485 | 2021-05-10T10:14:44 | 2021-05-10T10:14:44 | 343,124,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,506 | py | import glob
import os
import cv2
import glob
import numpy as np
import pandas as pd
from tqdm import tqdm
import matplotlib.pyplot as plt
from keras.layers import Input, Conv2D, MaxPooling2D, Conv2DTranspose, concatenate, BatchNormalization, Activation, add
from keras.models import Model, model_from_json
from keras.opt... | [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
ecc70e9d7304d6028a999f454597ef077603d228 | 4541467aa479aed7b77dc02bb0c10f83b435cbc9 | /Project8/Project8/urls.py | f5325cddafd583107b02b4c9aa7f3cbedd58bbb0 | [] | no_license | ashokreddy7013/Django | 2b41c777269838a59a90ffb84e2f32f17abdd6bc | 54e7a102491d8062edd743726d1d561d3a5b1edb | refs/heads/master | 2020-04-23T19:38:12.351011 | 2019-02-19T05:33:38 | 2019-02-19T05:33:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 841 | py | """Project8 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"45504918+ashokreddy7013@users.noreply.github.com"
] | 45504918+ashokreddy7013@users.noreply.github.com |
15a3049df3b3050a99b6d93aee87bd042eae3df6 | 2f590fc0566816c26c9893000c3079bc974cc298 | /basis/data/dict_1.py | bc73ff7751cd7f824e8b676e899868cbb3f808ac | [] | no_license | renyi1314/Source-code | 760ead67d948781d6859412d9f66a8c87f4dc094 | 2acc68486fb8be6d42bb043633d3e2297744d4c7 | refs/heads/master | 2021-04-12T09:55:37.983379 | 2019-11-09T03:18:08 | 2019-11-09T03:18:08 | 126,342,536 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # employees = [
# {"id": "0001", "name": "zs", "sex": "man", "age": "34"},
# {"id": "0002", "name": "ls", "sex": "women", "age": "20"},
# {"id": "0003", "name": "xs", "sex": "man", "age": "19"},
# ]
# print("id\tname\tsex\tage\t")
# for employee in employees:
# print("%s\t%s\t%s\t%s" % (employee["id"], ... | [
"541421397@qq.com"
] | 541421397@qq.com |
f50ff40d44e8bf8ef885df2a1821b2d6b81a0042 | 37db56765276c0835a2c7e3955c412ce204836c1 | /496.py | c377b06ce34dce1bbe2a69fdce41fe97365c6378 | [] | no_license | supperllx/LeetCode | 9d0a3a7258d1cff6afa6e77f61a2e697834914ca | df3a589ea858218f689fe315d134adc957c3debd | refs/heads/master | 2023-05-01T06:57:17.403568 | 2021-05-19T18:29:25 | 2021-05-19T18:34:03 | 288,351,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | class Solution:
def nextGreaterElement(self, nums1: List[int], nums2: List[int]) -> List[int]:
# d = dict(zip(nums2, range(len(nums2))))
# i2 = 0
# for i1 in range(len(nums1)):
# n1 = nums1[i1]
# nums1[i1] = -1
# for i2 in range( d[n1],len(nums2) ):... | [
"supperllx@outlook.com"
] | supperllx@outlook.com |
0bc4db2a3172d2ec98691955988bcadfe63b9989 | 59a5344ce4898110a182c5c48519fd6232f0f39c | /notebooks/_solutions/pandas_01_data_structures5.py | 11d616dfcff63b7323612d573d9f8103bce92c03 | [
"BSD-3-Clause"
] | permissive | jorisvandenbossche/FLAMES-python-data-wrangling | 30f40a59a40efca3220ae12109f69c0d694f2392 | 24a6dbe8637264f010c47affd3a8dcbe2b493e00 | refs/heads/main | 2023-08-20T23:26:55.607554 | 2021-10-19T13:58:51 | 2021-10-19T13:58:51 | 310,404,982 | 0 | 1 | BSD-3-Clause | 2021-10-19T13:43:40 | 2020-11-05T20:03:00 | Jupyter Notebook | UTF-8 | Python | false | false | 27 | py | df['Fare'].plot(kind='box') | [
"noreply@github.com"
] | jorisvandenbossche.noreply@github.com |
914a830bb2360823d2676ad7c64db38c188eb53a | b8d80a23cb27af08a1c4d34b478c76228ae5fbb4 | /insights/tests/test_add_component.py | 77ee995d33cb86e81a62a2449fddb3b4bc26cd25 | [
"Apache-2.0"
] | permissive | RedHatInsights/insights-core | bb243e2bf8a52446fefb95ebe05478d6e35efe2e | b0ea07fc3f4dd8801b505fe70e9b36e628152c4a | refs/heads/master | 2023-09-04T21:15:40.456257 | 2023-09-04T10:46:56 | 2023-09-04T10:46:56 | 92,518,221 | 144 | 290 | Apache-2.0 | 2023-09-14T02:40:13 | 2017-05-26T14:23:11 | Python | UTF-8 | Python | false | false | 341 | py | from insights import combiner
from insights.tests import archive_provider, InputData
@combiner()
def one():
return 1
@combiner()
def two():
return 2
@combiner(one, two)
def three(x, y):
return x + y
@archive_provider(three)
def integration_tests():
data = InputData()
data.add_component(two, ... | [
"noreply@github.com"
] | RedHatInsights.noreply@github.com |
417260f4dc7a27a628093014bb1ddfab2c6c4e58 | 53e2254b83ac5ac71ff390a7c77070ff97b31c0b | /pos.py | 043c22d391cd991e50cda74e792dccbff65e941d | [] | no_license | Ponkiruthika112/codekataset1 | 83a02b96a6b35c33ae7c5a6d6b21c34e63a7eef4 | 4f164864a59e22122b647dd62d36d24e7ace7dac | refs/heads/master | 2020-04-15T04:58:44.427824 | 2019-09-06T10:10:12 | 2019-09-06T10:10:12 | 164,404,367 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | n=int(input())
if n>0:
print("Positive")
elif n<0:
print("Negative")
else:
print("Zero")
| [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
9834822eff9e5bba16cc219595322861c8b86fda | 2510867dee64eac4bb0a516c526fe8eec26f439d | /L1Trigger/L1THGCal/test/testHGCalL1TBestChoice_cfg.py | 8f79f81a7ca6d330fd4d91e65454c0622fae93f5 | [] | no_license | Alex2671/cmssw | ad7a59b6b108cfe3544ed77466fc3a32fbf3f140 | 84aecc72f7d2daafdc7ddff8960e5eac4619f172 | refs/heads/CMSSW_8_1_X | 2021-01-21T18:43:45.759124 | 2016-07-28T09:58:54 | 2016-07-28T09:58:54 | 64,415,926 | 1 | 0 | null | 2016-07-28T17:42:17 | 2016-07-28T17:42:17 | null | UTF-8 | Python | false | false | 5,543 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process('SIMDIGI')
# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventCo... | [
"lindsey.gray@gmail.com"
] | lindsey.gray@gmail.com |
0dfba420d8dba0fee27e3b15c2895125a62e3fbb | c6f4432843df7a1b11bccc669c50999b1ce50d04 | /code/abc118_c.py | 283f212b09e3f51f2d7b371f88ea0ee871609122 | [] | no_license | RyujiTamaki/atcoder | 201c1f4ccaf312ae2a9ef055a1373b37ed0b1c4d | eccd89bb1b4860ffb1ef39ad7230c17e7d6690a8 | refs/heads/master | 2022-11-19T13:34:37.587892 | 2020-07-26T11:05:36 | 2020-07-26T11:05:36 | 259,202,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import math
from functools import reduce
def gcd_list(numbers):
return reduce(math.gcd, numbers)
N = int(input())
A = list(map(int, input().split()))
print(gcd_list(A))
| [
"e44119rt@gmail.com"
] | e44119rt@gmail.com |
17c1c1a330e679635893e8507b0744f738fc14bf | 72f5ae3c71085c7c364a3c5cfe2587fe9542828d | /src/briefcase/commands/dev.py | e930200eb0803130c2e1fb8c622b1be2fecfc6c6 | [
"BSD-3-Clause"
] | permissive | paulproteus/briefcase | f8d712b51a0105002af9f47695276b5f6bb3bd40 | 9d00dc9300cb00ef5dcd766e3a625a94b0462e51 | refs/heads/master | 2021-02-05T22:11:54.182550 | 2020-02-22T02:29:46 | 2020-02-22T02:29:46 | 243,840,856 | 0 | 0 | BSD-3-Clause | 2020-02-28T19:38:35 | 2020-02-28T19:38:34 | null | UTF-8 | Python | false | false | 4,796 | py | import os
import subprocess
import sys
from typing import Optional
from briefcase.config import BaseConfig
from briefcase.exceptions import BriefcaseCommandError
from .base import BaseCommand
from .create import DependencyInstallError, write_dist_info
class DevCommand(BaseCommand):
cmd_line = 'briefcase dev'
... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
daa34cdfe4f6913dca6626e0b05766a01ea7a935 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3149.py | 6a114f5fdd5a72552b8c8e6695156092dbbc1fc2 | [] | 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 | 800 | py | T = int(raw_input())
for i in xrange(0, T):
#read line by line only
#skip lines based on displacement
guess = int(raw_input())
for g in xrange(0, guess):
row1 = raw_input().split()
row1 = set(row1)
#get second guess
for g in xrange(0, 4-guess):
raw_input()
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0c9f5b1f0d0f0506f87894b555e6b3a6bda4ac7a | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/.spack/py-pynvim/repos/builtin/packages/gdbm/package.py | ffc497bd02ab9e78c361dc3687fbf849b389196e | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-pynvim-0.4.1-wmkdu6qklerkumwvik5m6bpyvtmyhbvv/.spack/repos/builtin/packages/gdbm/package.py | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
cdde17e7eb916bc2e0a0771dadee101784dc5eac | 3591ab22e1cc0fc1362f909017a8aa5c2b53bd92 | /FundNavSpiders/20180530_sxh_JiaMoZiBenInvest.py | 38e44e32c41d3523ae7a681995661e760dc8f5b3 | [] | no_license | Wnltc/ggscrapy | ef7e9559ce6140e7147f539778e25fc7f6cbee4c | bf929112e14b875a583803fe92980fe67129bdac | refs/heads/master | 2023-03-15T22:00:45.377540 | 2018-06-06T02:19:14 | 2018-06-06T02:19:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | # -*- coding: utf-8 -*-
# Department:保障部
# Author:宋孝虎
# Create_Date:2018-05-30
from datetime import datetime
from FundNavSpiders import GGFundNavItem
from FundNavSpiders import GGFundNavSpider
class JiaMoZiBenInvestSpider(GGFundNavSpider):
name = 'FundNav_JiaMoZiBenInvest'
sitename = '嘉谟资本'
channel = '投顾... | [
"songxh@go-goal.com"
] | songxh@go-goal.com |
195088819905003da0665f9a9045e97873b12b85 | 390a50c30a23e869c87a4a7a3fef2828bc4baf9c | /news/email.py | 121101e4d53d7788121ed826ad7314f57a94c976 | [] | no_license | GeGe-K/Tribune | d519c007eba0e2418c17c317e658fb2b9cae9c23 | 4fdeec619bfe2e9b4cb4c7eee14a3218f735fae9 | refs/heads/master | 2020-04-09T23:32:09.033505 | 2018-12-10T12:46:33 | 2018-12-10T12:46:33 | 160,659,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from django.core.mail import EmailMultiAlternatives
from django.template.loader import render_to_string
def send_welcome_email(name,receiver):
# Creating message subject and sender
subject = 'Welcome to the MoringaTribune NewsLetter'
sender = 'james@moringaschool.com'
# passing in the context vai... | [
"gloriagivondo@gmail.com"
] | gloriagivondo@gmail.com |
f14822c3a70662d7471b11fdf9704a167b194425 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_21194.py | 0668fc27b3462bf3febcdfedc61b924713b7b93d | [] | 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 | 92 | py | # How to retrieve values of list in browser using web2py?
path=[1,2,3,4,5]
return str(path)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4b3979e8dedb73533f1845db0b419e2926fd1b27 | fcdbf22231739b61bbd4da531fcacf0c6f08c4bf | /services/random_forest_classifier/src/ml_models/models/random_forest_classifier.py | 290ed030a534af7ecc1a36196e53b412cd0e4c01 | [] | no_license | revotechUET/wi-uservice | 2a3f169a4a9735bb3167d8bef75baceab11b2a04 | 33f2ad2f0a329fc1f54153b0ebb775f2bd74d631 | refs/heads/master | 2023-04-15T14:58:36.183521 | 2023-04-07T09:39:48 | 2023-04-07T09:39:48 | 179,446,650 | 0 | 1 | null | 2022-12-08T01:51:59 | 2019-04-04T07:39:07 | Python | UTF-8 | Python | false | false | 1,299 | py | from src.ml_models import result
from src.ml_models import validator
from typing import List, Dict
#from sklearn.base import BaseEstimator
from .random_forest_classifier_estimator import WiEstimator as RandomForestClassifierEstimator
RandomForestClassifierParameters = [
{
"name": "num_trees",
"typ... | [
"thinhlevan2015@gmail.com"
] | thinhlevan2015@gmail.com |
d2f7cf8dbeb59f78ce5e81901064b151cb4b46a4 | edb10a06f56d9bd19b0b60581728900a03d9732a | /Python/leetcode/BestTimeToBuyAndSellStockIii.py | 6767f09611f7e55a62317b76a61f774e95c0337a | [
"MIT"
] | permissive | darrencheng0817/AlgorithmLearning | 3ba19e6044bc14b0244d477903959730e9f9aaa8 | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | refs/heads/master | 2021-01-21T04:26:14.814810 | 2019-11-22T06:02:01 | 2019-11-22T06:02:01 | 47,100,767 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | '''
Created on 1.12.2016
@author: Darren
''''''
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete at most two transactions.
Note:
You may not engage in multiple transactions at the same time (ie, you... | [
"darrencheng0817@gmail.com"
] | darrencheng0817@gmail.com |
4cb32482470a9518e33709e13e68a1b2d9050b47 | 2b3e9b32a38f4992c529de56b4baa51e1a674c4e | /ccui/core/management/commands/create_company.py | e497fc91508f566d58491379e3f3f9b1136f0a34 | [] | no_license | camd/caseconductor-ui | 2c4f63fd6c20ee421012d8770b3b873c1b4f4232 | deb6b22ed417740bf947e86938710bd5fa2ee2e7 | refs/heads/master | 2021-01-18T05:36:22.647236 | 2011-10-10T14:48:29 | 2011-10-10T14:48:29 | 2,447,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | from django.core.management.base import BaseCommand, CommandError
from ...auth import admin
from ...models import Company, CompanyList
from ....users.models import Role, RoleList, PermissionList
DEFAULT_NEW_USER_ROLE_PERMISSIONS = set([
"PERMISSION_COMPANY_INFO_VIEW",
"PERMISSION_PRODUCT_VIEW",
... | [
"carl@oddbird.net"
] | carl@oddbird.net |
d06e52bbc7cec5ef8b2d9808c6ba04c8c53fe4b9 | f18d14f21c9a06162804751a3fcc01c86e8e3fc8 | /examples/caffe2/export.py | 3d4f5b4d8d39fbd84b366adab23361af74024a95 | [
"MIT"
] | permissive | Hakuyume/onnx-chainer | 8d6cc61a06ada52aba73b3bf526cd16c4e277a15 | 3c46bd692ef38a7c0f45a2a09795d2023364e12b | refs/heads/master | 2020-03-22T05:19:12.619953 | 2018-04-26T04:59:56 | 2018-04-26T05:12:13 | 139,557,461 | 0 | 0 | MIT | 2018-07-03T09:08:18 | 2018-07-03T09:08:17 | null | UTF-8 | Python | false | false | 1,205 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import chainer
import chainer.links as L
import numpy as np
from onnx_caffe2.backend import Caffe2Backend
from onnx_caffe2.backend import run_model
from onnx_caffe2.helper import save_caffe2_net
import onnx_chainer
# Instantiate a Chainer model (Chain object)
model = L.V... | [
"shunta.saito@gmail.com"
] | shunta.saito@gmail.com |
bb70586cce826a46bba16a89c9bfae19787e8dcd | eb7047d5a8c00d4370a55c2806a2f051287b452d | /tests/pytests/apps/TestEqInfoApp.py | 6a8b4a6e575b4142ff9b02418b41b74ca8f6996c | [
"MIT"
] | permissive | mousumiroy-unm/pylith | 8361a1c0fbcde99657fd3c4e88678a8b5fc8398b | 9a7b6b4ee8e1b89bc441bcedc5ed28a3318e2468 | refs/heads/main | 2023-05-27T18:40:57.145323 | 2021-06-09T19:32:19 | 2021-06-09T19:32:19 | 373,931,160 | 0 | 0 | MIT | 2021-06-04T18:40:09 | 2021-06-04T18:40:09 | null | UTF-8 | Python | false | false | 1,064 | py | #!/usr/bin/env nemesis
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
7347075ae797bd68b0366d78ff118f361983299d | 396f93d8e73c419ef82a94174815a2cecbb8334b | /.history/tester2_20200321194526.py | 6002ea86827eaf7212db65c6affeca178424df3a | [] | no_license | mirfarzam/ArtificialIntelligence-HeuristicAlgorithm-TabuSearch | 8c73d9448b916009c9431526864a4441fdeb682a | 90b2dca920c85cddd7c1b3335344ac7b10a9b061 | refs/heads/master | 2021-03-26T21:16:42.561068 | 2020-04-17T21:44:26 | 2020-04-17T21:44:26 | 247,750,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import os
import subprocess
import re
from datetime import datetime
import time
final_solution = []
print("Test for 5 0 10")
for i in range(0, 10):
process = subprocess.Popen(['./algo_tabou.exe', '20', '0', '10', 'distances_entre_villes_10.txt'],stdout=subprocess.PIPE,stderr=subprocess.PIPE)
stdout, stderr ... | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
15d93b24a24ec01154184f0bdb7661d86b9d2983 | 5f6d362dd4ac60de398b12169acd10201593a2ca | /moonshot/commission/__init__.py | f24c26a5b3bdafed798bb19da524a85436fdbec4 | [
"Apache-2.0"
] | permissive | beeqb/moonshot | 32af42c0f73edfa342fdc3de5614f8db5375eae0 | 2b30df9d232cd3fac0e34cb09e01aea7bf8b0a8d | refs/heads/master | 2022-08-12T18:36:15.440169 | 2020-05-25T13:56:18 | 2020-05-25T13:56:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | # Copyright 2017 QuantRocket LLC - All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"brian@quantrocket.com"
] | brian@quantrocket.com |
9dee1d280590009e3bf6223420277ebb9ac2d138 | 74b6523512f17f4c18096b956e4c3c074b53cf4c | /system/classPredict/newsPredict.py | f638051a05abd6dd65baeb97177a175774ae1093 | [] | no_license | howie6879/getNews | f7fdbd310c0e48a8a2c74504aa27893d25354ba1 | ab5ad56c8520e60d5f568deed0081dfc127b7cd9 | refs/heads/master | 2020-05-21T23:49:40.805281 | 2017-04-02T03:51:33 | 2017-04-02T03:51:33 | 59,347,631 | 49 | 23 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py |
import os
import jieba
import jieba.analyse
from config.n_conf import dirPath
class NewPredict(object):
def __init__(self,data_list):
self.data_list = data_list
self.ft = open(dirPath + "/system/classPredict/NavieBayesInfo/predict_new_word.txt", 'w')
#存放 单词:对应唯一id 的字典
... | [
"xiaozizayang@gmail.com"
] | xiaozizayang@gmail.com |
89683ab9c35f01aab56e2f95fe2fac0368f2522e | f4d5a8935ffcb78e4dc82814e030686f887e6675 | /BinaryTreeImplementation.py | d2dda1d3d5238428d18b3b91fb392b9bc0f21745 | [] | no_license | INNOMIGHT/data-structures-using-python | dc2e72fb2f8ad0f6f14520c38210c723b9f85c6a | 91a05b35abc505b8287d15628e3736c0059f6bd8 | refs/heads/master | 2023-02-11T23:30:09.640597 | 2021-01-09T08:03:11 | 2021-01-09T08:03:11 | 287,344,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | def BinaryTree(r):
return [r, [], []]
def insertLeft(root, newBranch):
t = root.pop(1)
if len(t) > 1:
root.insert(1, [newBranch, t, []])
else:
root.insert(1, [newBranch, [], []])
return root
def insertRight(root, newBranch):
t = root.pop(1)
if len(t) > 1:
root... | [
"iammagnificient@gmail.com"
] | iammagnificient@gmail.com |
c41d1525b8d11b8b6b95c948b9ac572ecc545868 | b5d6219ac738ed05485439540f38d63d21694c51 | /DAT/ED6_DT01/T1401.柏斯.py | 5ec0141be47fa681c78460016a54333f7d9ddfbe | [] | no_license | otoboku/ED6-FC-Steam-CN | f87ffb2ff19f9272b986fa32a91bec360c21dffa | c40d9bc5aaea9446dda27e7b94470d91cb5558c5 | refs/heads/master | 2021-01-21T02:37:30.443986 | 2015-11-27T07:41:41 | 2015-11-27T07:41:41 | 46,975,651 | 1 | 0 | null | 2015-11-27T10:58:43 | 2015-11-27T10:58:42 | null | UTF-8 | Python | false | false | 5,721 | py | from ED6ScenarioHelper import *
def main():
# 柏斯
CreateScenaFile(
FileName = 'T1401 ._SN',
MapName = 'Bose',
Location = 'T1401.x',
MapIndex = 1,
MapDefaultBGM = "ed60084",
Flags = 0,
... | [
"Hiromi.Kaede@gmail.com"
] | Hiromi.Kaede@gmail.com |
067465392bfa4f5fa02dc95957d86dffd2faf4c5 | 875bb84440094ce058a2ec25a661a7da6bb2e129 | /algo_py/boj/bj1541.py | 9feb0a3d9d9c33ee588f08d7db7c0e50f82af440 | [] | no_license | shg9411/algo | 150e4291a7ba15990f17ca043ae8ab59db2bf97b | 8e19c83b1dbc0ffde60d3a3b226c4e6cbbe89a7d | refs/heads/master | 2023-06-22T00:24:08.970372 | 2021-07-20T06:07:29 | 2021-07-20T06:07:29 | 221,694,017 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | s = input()+' '
v = 0
minus = False
t = 0
for idx in range(len(s)):
if s[idx] == '+' or s[idx] == ' ':
if not minus:
v += t
else:
v -= t
t = 0
elif s[idx] == '-':
if not minus:
v += t
else:
v -= t
minus = True
... | [
"shg9411@naver.com"
] | shg9411@naver.com |
5d45ae9e62a75215a688453f4baddd4431a2640a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1122.py | 8f7b7ab5d4b9099dbab9dc89e71c6ef8a55177aa | [] | 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 | 635 | py | def istidy(n):
n = str(n)
for i in range(len(n)-1):
if n[i] > n[i+1]:
return False
else:
return True
for case in range(1, int(input()) + 1):
n = input()
tidy_n = int(n)
while not istidy(tidy_n):
N = [int(c) for c in str(tidy_n)]
for i in range(len(N... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3e50cd77fb1a0c426b48d2fb3b05e6aa7848f401 | 3738cfe016e577588cd1b04315a01ed4b5755363 | /deps/sphinxbase/src/libsphinxbase/fe/make_log_sub_table.py | 5a1009df6a062eb5014b86744d7748ecf27be2f5 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | synesthesiam/pocketsphinx-python | fb3b07a0d0b0b6a2b5f4249d9886123176aa0634 | 4bc446c11c8aa7e968d1ed27ee86f822b5aba830 | refs/heads/master | 2020-04-09T01:21:02.254770 | 2018-12-01T02:19:39 | 2018-12-01T02:19:39 | 159,900,799 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #!/usr/bin/env python
import math
radix = 8
scale = 1<<radix
out_radix = 10
out_scale = 1<<out_radix
byx = 0.
logtab = []
while True:
if byx < 1:
lobyx = (math.log(-math.expm1(-(byx + 1.)/scale)) - math.log((byx + 1.)/scale)) / 2.0
else:
lobyx = (math.log(-math.expm1(-byx/sca... | [
"hansen.mike@gmail.com"
] | hansen.mike@gmail.com |
97a8ca35a390a961f1ee910e82cd0f07dc0459ca | 97e557d328b89adbd1459f8988a12ec3a9f4adc7 | /flume/setup.py | 88eee05fee6deaa01a5d6e3f081b40a7bdcb7968 | [] | permissive | DataDog/integrations-extras | 1b9c9928af4e5a146b9611aed29db206f420710c | 1d20f8d945ef802fa6e01b41b6ba99148ac508a4 | refs/heads/master | 2023-08-31T04:01:33.555722 | 2023-08-30T18:51:09 | 2023-08-30T18:51:09 | 51,574,196 | 221 | 667 | BSD-3-Clause | 2023-09-14T16:07:56 | 2016-02-12T07:55:28 | Python | UTF-8 | Python | false | false | 2,300 | py | from codecs import open # To use a consistent encoding
from os import path
from setuptools import setup
HERE = path.dirname(path.abspath(__file__))
# Get version info
ABOUT = {}
with open(path.join(HERE, 'datadog_checks', 'flume', '__about__.py')) as f:
exec(f.read(), ABOUT)
# Get the long description from the... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
8f78e6f59d70830d473578321232c7add142d678 | f43d06f21185c86dca64be6ae84c20660c2ba722 | /terrain/management/commands/update_terrains.py | e1227e66f00e2a5c97a3831cd9af6b6c8d73baa0 | [] | no_license | bartromgens/petanque-map-server | 2f91eb75d50565cfca6065696ee3fd79f37b43cf | 0b9078f4f129e52322c7e7d5782ca57c3e2ee434 | refs/heads/master | 2022-05-05T21:11:42.785104 | 2020-05-16T09:35:01 | 2020-05-16T09:35:01 | 133,956,427 | 0 | 0 | null | 2022-04-22T20:52:50 | 2018-05-18T13:14:44 | Python | UTF-8 | Python | false | false | 409 | py | from django.core.management.base import BaseCommand
from terrain import factory
from terrain import overpass
class Command(BaseCommand):
help = 'Get all petanque terrains in the world'
def handle(self, *args, **options):
responses = overpass.get_terrains_world(responseformat='json')
for resp... | [
"bart.romgens@gmail.com"
] | bart.romgens@gmail.com |
0239c5fa2fe8dc621bbf71f6cd56aecd44e59bdc | 33d95a2e5222f1ab9993480a8bdc354aa6dc672f | /world/migrations/0003_auto_20200526_1429.py | 2f5c168ddff4f460bb3f0f753d010036888312e4 | [] | no_license | JackSnowdon/die-master | ab3eb7b1dbbe8b16031515c09b843aaba879aef5 | d0af9fb8d6851904d466165d190dc9ec3700f2fd | refs/heads/master | 2023-07-29T13:20:18.171612 | 2020-06-19T18:27:56 | 2020-06-19T18:27:56 | 265,283,325 | 0 | 0 | null | 2021-09-22T19:14:04 | 2020-05-19T15:16:26 | Python | UTF-8 | Python | false | false | 845 | py | # Generated by Django 3.0.6 on 2020-05-26 13:29
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('game', '0004_auto_20200522_1754'),
('world', '0002_auto_20200526_1428'),
]
operations = [
migration... | [
"jacksnowdondrums@gmail.com"
] | jacksnowdondrums@gmail.com |
bd96e52e284a42ccd47db68bae4f6f2bc3776e5b | 45667cce995a6052869f12121c6368dc2afd38e3 | /docs/examples/alias_generator_config.py | c4f207c643f1eccb12b567d392e013679d0e938e | [
"MIT"
] | permissive | rdpli/pydantic | b67da3de25f7de216806468b6256278c3ffefbe9 | 806eba3810d4bc0ed02e0060521a779f12d16416 | refs/heads/master | 2020-08-15T12:21:08.689819 | 2019-10-15T10:24:46 | 2019-10-15T10:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from pydantic import BaseModel
def to_camel(string: str) -> str:
return ''.join(word.capitalize() for word in string.split('_'))
class Voice(BaseModel):
name: str
gender: str
language_code: str
class Config:
alias_generator = to_camel
voice = Voice(Name='Filiz', Gender='Female', Language... | [
"s@muelcolvin.com"
] | s@muelcolvin.com |
8a313cb6922eb9d5735021b07931bcf4ce5072ff | 4c3e992678341ccaa1d4d14e97dac2e0682026d1 | /addons/website_quote/models/sale_quote.py | a32f99f4aa2fb34122cb12a02c81c8c46460d1b8 | [] | no_license | gahan-corporation/wyatt | 3a6add8f8f815bd26643e1e7c81aea024945130d | 77e56da362bec56f13bf0abc9f8cf13e98461111 | refs/heads/master | 2021-09-03T18:56:15.726392 | 2018-01-08T02:54:47 | 2018-01-08T02:54:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,583 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from gerp import api, fields, models
from gerp.tools.translate import html_translate
from gerp.addons import decimal_precision as dp
class SaleQuoteTemplate(models.Model):
_name = "sale.quote.template"
_descrip... | [
"duchess@gahan-corporation.com"
] | duchess@gahan-corporation.com |
74fbe595067b8788bfcfed01d9cf40d6cf1a44b6 | 0c9b8e5fbb9dcb240adb3c2536b452a9c68807d5 | /sites/us/apps/checkout/forms.py | 6b1f681d2d9bebc382727ab62d7e6fdfb21d0aa9 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | drama-ostrich/django-oscar | 5d9390fdb4a7126282f8abf226295c907ccf3467 | a15165b8adac887c33c94ff48f0ac367b5e8f46c | refs/heads/master | 2021-05-27T10:24:49.270333 | 2014-05-21T10:44:55 | 2014-05-21T10:44:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from django.utils.translation import ugettext_lazy as _
from localflavor.us import forms as us_forms
from oscar.apps.checkout import forms as checkout_forms
class ShippingAddressForm(checkout_forms.ShippingAddressForm):
state = us_forms.USStateField(label="State", widget=us_forms.USStateSelect)
def __init__... | [
"david.winterbottom@gmail.com"
] | david.winterbottom@gmail.com |
85c146d9eafd0e80585d107c16d0d7ab970cbcc6 | ef66e297a49d04098d98a711ca3fda7b8a9a657c | /OOD/BlackJack/card.py | b23e9bdf8d38070d08c0d45ea759f9a26b8d0dd8 | [] | no_license | breezy1812/MyCodes | 34940357954dad35ddcf39aa6c9bc9e5cd1748eb | 9e3d117d17025b3b587c5a80638cb8b3de754195 | refs/heads/master | 2020-07-19T13:36:05.270908 | 2018-12-15T08:54:30 | 2018-12-15T08:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from suit import Suit
class Card:
_value = 0
_suit = None
_available = True
def __init__(self, value, suit):
'''Initialize card instance.
params
------
value: int
1 for ace, 11, 12, 13 for Jack, Queen, King, 15, 16 for Jokers.
suit: Suit
''... | [
"youchen.du@gmail.com"
] | youchen.du@gmail.com |
361bdee7835d78ff203dc8a3a49c74231800754e | e3b5e20bcb560a3c37c09f728b9340b1715c1818 | /venv/lib/python3.7/site-packages/plotly/graph_objs/_scatterpolar.py | 444a80c39e0b70e0a37f7e9d95257062381194d6 | [
"MIT"
] | permissive | 180Studios/LoginApp | 63bc50b1f91e7221c7581627ab166eeb01758f5c | 66ff684a81b23d8f45eef2c56be19a2afd95ab29 | refs/heads/master | 2022-12-24T00:33:08.481826 | 2020-02-03T05:14:41 | 2020-02-03T05:14:41 | 144,414,562 | 0 | 1 | MIT | 2022-12-08T01:38:26 | 2018-08-11T19:57:44 | Python | UTF-8 | Python | false | false | 72,188 | py | from plotly.basedatatypes import BaseTraceType
import copy
class Scatterpolar(BaseTraceType):
# cliponaxis
# ----------
@property
def cliponaxis(self):
"""
Determines whether or not markers and text nodes are clipped
about the subplot axes. To show markers and text nodes above... | [
"kylenahas@gmail.com"
] | kylenahas@gmail.com |
a2601efe0958daa9755c008c2276daa68ae75045 | 285a49c05fb331b6cf0157ff6d9f0e5084c32b79 | /python/ApplyLeptonSFs_cfi.py | e6d28e41aa3a6da4796f59c58a588f4f51beef68 | [] | no_license | dmajumder/VLQAna | 5c17d1284a1e248c13777599ae7c5ea631c2b321 | bff7c8898786e1c1cf5a78699cccb0c0a3e13378 | refs/heads/CMSSW_8_0_X_NewB2GAnaFW | 2020-04-01T22:23:49.441334 | 2018-03-15T22:22:25 | 2018-03-15T22:22:25 | 37,709,562 | 2 | 6 | null | 2021-07-28T20:52:46 | 2015-06-19T08:00:10 | C++ | UTF-8 | Python | false | false | 139 | py | import FWCore.ParameterSet.Config as cms
defaultWP = cms.PSet(
lepidtype = cms.string("TIGHT"),
zdecayMode = cms.string("zelel"),
)
| [
"skhalil@fnal.gov"
] | skhalil@fnal.gov |
b4167866cbc17e41e675926686d9050dff1c23a8 | 9ac0866eee361bfee730ae87d2f413b5ad82e23a | /lfd/registration/settings.py | 4a458a149bfabd63af51b0523cec6265198af7fb | [
"BSD-2-Clause"
] | permissive | jeffmahler/lfd | e6cb2c309eec6276d51372eca0170ccb72c4a2b0 | ecc6b934db098c0b1af9946454917b6dc911cb74 | refs/heads/master | 2020-12-26T00:35:37.302745 | 2015-01-15T17:27:10 | 2015-01-15T17:27:10 | 27,498,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import numpy as np
# registration
#: number of outer iterations for RPM algorithms
N_ITER = 20
#: number of inner iterations for RPM algorithms
EM_ITER = 1
#: initial and final smoothing regularizer coefficient for RPM algorithms
REG = (.1, .0001)
#: initial and final temperature for RPM algorit... | [
"alexleegk@gmail.com"
] | alexleegk@gmail.com |
5be4483949a5e6ebd3a62270e206aa839df6fc59 | 2d227925231be797cc78b644358ecd3adf00fba7 | /pcc3/ch04/e4_tuple.py | 85bcbf207f4624ff82ee3460038d011f49ecec85 | [] | no_license | egalli64/pythonesque | 6bb107189d4556d832175d41366ea0b18ed6ea1d | 154042c5ae5cf43a0ae2c03d509fc48d1dc19eb8 | refs/heads/master | 2023-07-07T05:50:14.711023 | 2023-07-01T10:52:24 | 2023-07-01T10:52:24 | 53,720,525 | 21 | 7 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | """
Python Crash Course, Third Edition https://ehmatthes.github.io/pcc_3e/
My notes: https://github.com/egalli64/pythonesque/pcc3
Chapter 4 - Working With Lists - Tuples
A tuple is an immutable list
"""
dimensions = (200, 50)
print(dimensions[0], dimensions[1], dimensions)
try:
dimensions[0] = 42
except TypeErro... | [
"egalli64@gmail.com"
] | egalli64@gmail.com |
9f3e694581dac2948e42867879e737abdcaf486a | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /test/ut/sdk/mutable/test_frozen.py | da8e380409ff8827b05a42bc832bd96a58ce286f | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 2,858 | py | import pytest
from nni.mutable import *
def _frozen_context_middle():
assert frozen_context.current() == {'a': 1, 'b': 2}
with frozen_context.bypass():
assert frozen_context.current() is None
def test_frozen_context():
with frozen_context({'a': 1, 'b': 2}):
_frozen_context_middle()
... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
a038f716fe5873d8938c78c4e0b335a3da85f842 | dec494542217437afa7f38e8703328b25b183cb8 | /234.py | 96790deb04307bc93c67bf75789a5fdd3994fd49 | [] | no_license | Transi-ent/LeetcodeSolver | ee44c9c4d5bce9f11c079c5b27b4b967790cb5cd | a89e19753666657a6f15c1be589b9b2dbd4b6c84 | refs/heads/master | 2021-04-16T20:37:34.710175 | 2021-02-24T03:51:43 | 2021-02-24T03:51:43 | 249,383,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def isPalindrome(self, head: ListNode) -> bool:
# 使用 O(n)的时间复杂度和 O(n)的空间复杂度,判断列表内的元素是否回文
lyst = []
cur = head
while cur:
lyst.ap... | [
"1305113016@qq.com"
] | 1305113016@qq.com |
f1dccbdcfb1da2093cf6af30613dd783bccbba79 | 8e23bb0db70619d9db02fc3ad29b77918554af20 | /examples/00-load/create-poly.py | 3d61ac8aa997ddb177b76ed2b244b5db84e3299e | [
"MIT"
] | permissive | zaknbur/pyvista | 77dccd6dde1b6c349d5f3aeb5f9cda9a26caf91f | f9c19b33d50b6e6c13d290eb899d2e908896e3c5 | refs/heads/master | 2020-06-15T20:40:59.845763 | 2019-07-03T05:03:48 | 2019-07-03T05:03:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | """
.. _ref_create_poly:
Create PolyData
~~~~~~~~~~~~~~~
Creating a PolyData object from NumPy arrays
"""
import numpy as np
import pyvista as pv
###############################################################################
# A PolyData object can be created quickly from numpy arrays. The vertex array
# contain... | [
"banesullivan@gmail.com"
] | banesullivan@gmail.com |
882b8f02e25e3701f34badd97473ab3bdb0c2f52 | f527e8a2e6df0621fc3d2916574e8a2f59418c98 | /test/test_mobile_optimizer.py | b6e9764c379ae08becf6dd5e45b7b46ac8033880 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | NirmalSilwal/pytorch | a8c2b70bb207b324eecbd56f391fdc986f5010c0 | 4b4184fc69e224701529b84d2f182c1d65cea74a | refs/heads/master | 2022-11-19T11:08:09.413489 | 2020-07-11T23:48:21 | 2020-07-11T23:49:56 | 279,022,720 | 3 | 0 | NOASSERTION | 2020-07-12T08:25:38 | 2020-07-12T08:25:37 | null | UTF-8 | Python | false | false | 9,996 | py | import unittest
import torch
import torch.backends.xnnpack
import torch.utils.bundled_inputs
from torch.testing._internal.jit_utils import get_forward, get_forward_graph
from torch.utils.mobile_optimizer import *
from torch.nn import functional as F
from torch._C import MobileOptimizerType
FileCheck = torch._C.FileChe... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
32b9227ebe3c5a52281596a9230afff9f1137612 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_011/ch42_2019_06_04_20_34_03_004455.py | 726bbf6be79f9a610956ec9682867edee5085153 | [] | 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 | 183 | py | def quantos_uns(numero):
n = str(numero)
uns = 0
i = 0
while i < len(n):
a = n[i]
if a == 1:
uns +=1
i += 1
return uns | [
"you@example.com"
] | you@example.com |
b5de15749f1ea3aa5a34888be92f5bd1f6636c74 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-1914.py | e79c53940e93812b0ec70abb6575795cf6a20708 | [] | 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,347 | 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 |
5f57f6744cecc5ccb19fdc0d75e2d1247e3a1f8a | bb2684d78f13554ba72ae067dddad1241d0e33cc | /tests/test_doc_document.py | 0ebec6ae682ead7f8e4ca0abff03a099a311690d | [
"MIT"
] | permissive | alvarovm/ChemDataExtractor | 27abe785a5465c2e7668c3308aa820b13817cc63 | f5422824b1dfc6976d88b79b789c53d1bbcfa230 | refs/heads/master | 2021-01-11T14:38:40.220851 | 2017-01-22T22:49:18 | 2017-01-22T22:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | # -*- coding: utf-8 -*-
"""
test_doc_document
~~~~~~~~~~~~~~~~~
Test the Document class.
:copyright: Copyright 2016 by Matt Swain.
:license: MIT, see LICENSE file for more details.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import ... | [
"m.swain@me.com"
] | m.swain@me.com |
361b2120abf1b5f0c0bb605b46f29ea77d1f68ae | 05100b9198327653489f36280edaa944f4e6065d | /OmegaBlynkTest.py | a520d1e1405a1bfcc1d7a9eb2823c0348a206448 | [] | no_license | youngsoul/BlynkLib | 794c0e7165e1a7335928c035652ce14e94695fa7 | c5745add2d121866a6a6ed3fce88b6b47cca414f | refs/heads/master | 2021-01-17T15:03:45.803019 | 2017-06-23T15:28:56 | 2017-06-23T15:28:56 | 83,621,770 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import BlynkLib
import time
import logging
import random
import OmegaGPIOHelper
logging.basicConfig(level=logging.DEBUG)
gpio = OmegaGPIOHelper.OmegaGPIOHelper()
def user_task_handler_2(task_state, blynk_ref):
logging.getLogger().debug("user_task_handler_2: {}".format(time.time()))
logging.getLogger().debug... | [
"theyoungsoul@gmail.com"
] | theyoungsoul@gmail.com |
a775ddd9040bd17a2865af46792d03bc7776a187 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_vulvae.py | de05de65fd4fa30e90822d49ddd4869af93baae8 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.nouns._vulva import _VULVA
#calss header
class _VULVAE(_VULVA, ):
def __init__(self,):
_VULVA.__init__(self)
self.name = "VULVAE"
self.specie = 'nouns'
self.basic = "vulva"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cffa7e64f2a68046cf5255c296ebdb0fd4fe9a8d | fc8137f6a4df69640657a0af5d7201de3c6eb261 | /accepted/Shortest Palindrome.py | 3d2d52334bd8eab2f837d01f54e3c5f1339f04e4 | [] | no_license | hustlrr/leetcode | 68df72b49ee3bbb9f0755028e024cc9fea2c21aa | 56e33dff3918e371f14d6f7ef03f8951056cc273 | refs/heads/master | 2020-04-12T08:14:25.371761 | 2017-01-01T12:19:34 | 2017-01-01T12:19:34 | 77,119,341 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | # coding=utf-8
class Solution(object):
def shortestPalindrome(self, s):
"""
:type s: str
:rtype: str
"""
concate = s + '#' + s[::-1]
p = [0 for _ in range(len(concate))] # 记录前后缀共同字串长度
for j in range(1, len(concate)):
i = p[j - 1]
while ... | [
"823729390@qq.com"
] | 823729390@qq.com |
bce5d696589a5e06944791664c977389c3a1dbf5 | 7137161629a1003583744cc3bd0e5d3498e0a924 | /tests/providers/samba/hooks/test_samba.py | 4fb36d8ca9f9442f5d87b38d087e14e5067ec111 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | jbampton/airflow | 3fca85975854eb916f16143b659a9119af143963 | dcfa14d60dade3fdefa001d10013466fe4d77f0d | refs/heads/master | 2023-05-25T22:31:49.104069 | 2021-09-18T19:18:32 | 2021-09-18T19:18:32 | 247,645,744 | 3 | 0 | Apache-2.0 | 2020-03-16T08:12:58 | 2020-03-16T08:12:57 | null | UTF-8 | Python | false | false | 4,500 | 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... | [
"noreply@github.com"
] | jbampton.noreply@github.com |
7e3463c3990c906b931a640fd5e26d44e1d2c235 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/Google/Documents/ToggleProperties.py | f57d563696bc71a6501cdb36a87b4c0fbbaa8a74 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# ToggleProperties
# Toggle settings for a document or file on or off, depending on its current state.
#
# Python version 2.6
#
###############################################################################
from... | [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
fffd4f4968592092e78bf2996c9f4ad13ea2e360 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/GL/NV/vertex_buffer_unified_memory.py | 3bd5a5ba44c47da6d2913ab8aaaa3db5078ff84a | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 1,516 | py | '''OpenGL extension NV.vertex_buffer_unified_memory
This module customises the behaviour of the
OpenGL.raw.GL.NV.vertex_buffer_unified_memory to provide a more
Python-friendly API
Overview (from the spec)
This extension provides a mechanism to specify vertex attrib and
element array locations using GPU addresse... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
17331523b2b62de18c32fc142d83491dbcb562e6 | 60b6513e607187e9886e0239ba9e430cdb8926ca | /python/2VideoCapture.py | 4a1b7d3a895bc6666bff05805da02829e94ead9d | [] | no_license | ydwisroad/opencvinaction | 81f32eb590070d66b47d92a089ea97b54b346eb6 | cc98409f08b70a6abd14549b06de4c285332f917 | refs/heads/master | 2022-11-30T04:27:47.192664 | 2020-08-08T08:21:11 | 2020-08-08T08:21:11 | 282,236,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import cv2 #opencv读取的格式是BGR
import matplotlib.pyplot as plt
import numpy as np
videoPath = '../data/tliangsetvideo.mp4'
vc = cv2.VideoCapture(videoPath)
open = False
# 检查是否打开正确
if vc.isOpened():
open, frame = vc.read()
else:
open = False
while open:
ret, frame = vc.read()
if frame is None:
... | [
"wandf12345@163.com"
] | wandf12345@163.com |
0d28badcc55ae6d273fd0a2b4941876dad11876b | 61587071621eefd6dd0f549d618753d769eededc | /src/pages/gabriel/esporteemidia.py | 881a42ce660501f192e1bc013e94099e0dfeeeb8 | [] | no_license | diegothuran/rss3 | df1e9e07b0552eb8bdbe6131235df3b991ddbabc | 3177cf768047ced21e38a060d2306cd028e752fb | refs/heads/master | 2022-12-07T19:53:14.609867 | 2019-02-10T20:15:13 | 2019-02-10T20:15:13 | 145,567,411 | 0 | 0 | null | 2022-11-22T02:50:19 | 2018-08-21T13:25:00 | Python | UTF-8 | Python | false | false | 715 | py | # coding: utf-8
import sys
sys.path.insert(0, '../../src')
from bs4 import BeautifulSoup
import requests
GLOBAL_RANK = 171807
RANK_BRAZIL = 6506
NAME = 'esporteemidia.com'
def get_urls():
try:
urls = []
link = 'https://www.esporteemidia.com/'
req = requests.get(link)
n... | [
"victor.lorena@gmail.com"
] | victor.lorena@gmail.com |
fa59aaafec24a3d481af30884e88e1836d4ee31f | fe85138c949c6198184c591780831fd2e183a24a | /Hotel_Everland/project/appliances/stove.py | 7cf45b6edbaf841a72f51d8cfb51c258dee9b809 | [] | no_license | valeri1383/Personal-Python-Projects | e98f6b7171298def019db4e28f6d176a709615cc | b7db81cb44668f549a7fd15de84c0cb23654ac3d | refs/heads/main | 2023-05-26T09:02:24.260700 | 2023-05-22T14:40:28 | 2023-05-22T14:40:28 | 337,518,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | #from Personal_Projects.Hotel_Everland.project.appliances.appliance import Appliance
from project.appliances.appliance import Appliance
class Stove(Appliance):
def __init__(self):
super().__init__(0.7) | [
"noreply@github.com"
] | valeri1383.noreply@github.com |
298c3542e5192643aad1ecb0ecbddd069bc410f7 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658282861527040_0/Python/jeroenvw/B.py | 8e0058be192a772ab673665d68c1e3cb2f709625 | [] | 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 | 1,359 | py | #!/usr/bin/python
from __future__ import division
import sys, os, subprocess, time, ctypes
def line():
return sys.stdin.readline().strip()
def doit():
N = int(line())
for i in range(N):
print 'Case #%d:' % (i+1),
res = go()
print res
def go():
A, B, K = map(int, line().split... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
fa673ed779bda8b2811f46093de8ce8c680a86c5 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/meta/MinimapGridMeta.py | 5af523c50cdb07d90c5540d27e8b105390151436 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 975 | py | # 2017.05.04 15:24:32 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/MinimapGridMeta.py
from gui.Scaleform.framework.entities.BaseDAAPIComponent import BaseDAAPIComponent
class MinimapGridMeta(BaseDAAPIComponent):
"""
DO NOT MODIFY!
Generated with yaml.
__... | [
"info@webium.sk"
] | info@webium.sk |
7e1ee4d26c6edf6a7d1531d590177accb0944f88 | d8c93d81898012d6a1e9fb8cfa31e69b8cc783d2 | /tools/afl/harness.py | eb24f1d0c954bb346a2499091f811b5d822a8ed4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | weijl6819/httpolice | 94488095a5ab22078248d288d1367957c1447b7d | 1abb20ce3a23dd70109014b2aec0b18bb0f191b0 | refs/heads/master | 2020-05-02T19:39:44.087345 | 2019-03-03T11:10:45 | 2019-03-03T11:10:45 | 178,165,119 | 1 | 0 | NOASSERTION | 2019-03-28T08:59:59 | 2019-03-28T08:59:58 | null | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8; -*-
import os
import sys
import httpolice.cli
if __name__ == '__main__':
args = httpolice.cli.parse_args(sys.argv)
import afl
while afl.loop(100):
httpolice.cli.run_cli(args, sys.stdout, sys.stderr)
# As suggested by python-afl docs.
os._exit(0) # pylint: disa... | [
"vfaronov@gmail.com"
] | vfaronov@gmail.com |
14d64591cd234c16e11bc44dedf7c294292fcf6c | 6b53c21a39236ab70af63df2a93568958f23ba46 | /polls/migrations/0001_initial.py | f6c1499b162e485e7519a169021bbeaa80374294 | [] | no_license | uiandwe/django_tutorial | bb86ad7a6dd5d5cfca68fab5f93e4f99f3a59ecc | 017569117f6091e12cb6bb29400b49debf435ad2 | refs/heads/master | 2020-04-13T06:00:29.602809 | 2019-01-19T22:24:53 | 2019-01-19T22:24:53 | 163,009,174 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | # Generated by Django 2.1.2 on 2018-12-23 18:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Choice',
fields=[
... | [
"uiandwe@gmail.com"
] | uiandwe@gmail.com |
0c65cee9aa4865e8a98e31d80b37ad270d0aed1a | e7cda761ff052fba042407966da869dbbfce32c4 | /Jmeter2Blade/adapter/JcsvAdapter.py | 4974f0fcbd1cd158e3ed78fddcf8151be880d611 | [] | no_license | zengln/script | e95e28fd2cf4d6df0ce9789bbf14480fd7a18142 | b965b5e634172ecde7c23320ded047919a4d692e | refs/heads/master | 2021-09-10T22:07:33.404059 | 2021-09-06T08:21:34 | 2021-09-06T08:21:34 | 123,128,472 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 13,933 | py | # -*- coding:utf-8 -*-
# @Time : 2021/3/18 10:55
# @Author : zengln
# @File : JcsvAdapter.py
import os
import xml.etree.ElementTree as ET
import json
import re
from Jmeter2Blade.socket.PostBlade import VariableData, PostBlade, dealScriptData, importOfflineCase
from Jmeter2Blade.util.log import logger
from Jmet... | [
"zengln@zln.com"
] | zengln@zln.com |
e9d2488f2f34b6461b4fcfc6ce2a14492eba16dc | cd4f7d491168a14719ad36537e9d2a756814b18f | /celery/tests/app/test_annotations.py | 20897ff5d35d1ad1cc3bc41e7152aab1454cf0e0 | [
"BSD-3-Clause"
] | permissive | westurner/celery | 1b9123fac906800c08ef0a74dd78eeaf4f8667d9 | 41964f24df4c8ca5d96bf0d644e40778212e10cb | refs/heads/master | 2021-01-17T05:35:29.421048 | 2012-06-07T20:13:06 | 2012-06-07T20:13:06 | 4,592,043 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | from __future__ import absolute_import
from celery.app.annotations import MapAnnotation, prepare
from celery.task import task
from celery.utils.imports import qualname
from celery.tests.utils import Case
@task()
def add(x, y):
return x + y
@task()
def mul(x, y):
return x * y
class MyAnnotation(object):
... | [
"ask@celeryproject.org"
] | ask@celeryproject.org |
51b9a24471cfffb49d5feb54ed5ed9e75ea16279 | 9704ae2f88071b40f7584c8391b897275342c940 | /tests/features/capture_output_test.py | 571c89cd3a7edf8ebd3f0e5dfda973cbc926b469 | [
"MIT"
] | permissive | vivster7/pyupgrade | 9860ab31eb6a8725a33e147c28c185892a4f5758 | de7be58e4b0b34111d7096ddcae957153b697cb9 | refs/heads/master | 2023-08-12T09:08:28.498344 | 2021-10-12T02:10:35 | 2021-10-12T02:10:36 | 412,884,076 | 0 | 0 | MIT | 2021-10-02T18:46:24 | 2021-10-02T18:46:24 | null | UTF-8 | Python | false | false | 3,885 | py | import pytest
from pyupgrade._data import Settings
from pyupgrade._main import _fix_plugins
@pytest.mark.parametrize(
('s', 'version'),
(
pytest.param(
'import subprocess\n'
'subprocess.run(["foo"], stdout=subprocess.PIPE, '
'stderr=subprocess.PIPE)\n',
... | [
"asottile@umich.edu"
] | asottile@umich.edu |
a671b850fe8ac949e0e097967a6f942cdb7eb87d | b2d202223b0c16897f656122cd8bebaab618eb19 | /simple_function.py | 3c32984015780f4f959479b4ec87ed0a7dc6c928 | [] | no_license | aambrioso1/HCC-Programming-Project | be4ff1535776b839c197fd496afcabbceb0642a5 | a6215207a381e862369adb4d799cb1fcbb7918f0 | refs/heads/master | 2022-02-03T10:52:43.172015 | 2022-01-21T22:04:26 | 2022-01-21T22:04:26 | 156,882,613 | 0 | 1 | null | 2020-05-08T14:39:54 | 2018-11-09T15:41:55 | Python | UTF-8 | Python | false | false | 116 | py | def add_strings(a,b):
c = a + b
return c
str1 = "Alex "
str2 = "Ambrioso"
print(add_strings(str1, str2))
| [
"aambrioso1@gmail.com"
] | aambrioso1@gmail.com |
1543ab66dad9e4e936685c3f19a08a36afe352dd | 43e303f0a00f7854b9405bb2a2a9ecbad18ae0fa | /venv/lib/python3.7/site-packages/objc/_dyld.py | 5a00cb7ef22c839c2102c02e1529425bf9c1aaeb | [
"MIT"
] | permissive | ykhade/Advent_Of_Code_2019 | f64005c6e8872c17468f00eac2b247b6fa77c7f5 | 375ab43104712c5e1c782e5ea5f04073b5f8916c | refs/heads/master | 2023-02-26T03:43:47.668384 | 2022-06-21T03:31:22 | 2022-06-21T03:31:22 | 224,943,590 | 1 | 1 | MIT | 2023-02-08T00:45:15 | 2019-11-30T01:27:48 | Python | UTF-8 | Python | false | false | 4,036 | py | """
dyld emulation
"""
__all__ = [
"dyld_framework",
"dyld_library",
"dyld_find",
"pathForFramework",
"infoForFramework",
]
import os, sys
from objc._framework import infoForFramework
# These are the defaults as per man dyld(1)
#
DEFAULT_FRAMEWORK_FALLBACK = ":".join(
[
os.path.expan... | [
"ykhade@nevada.unr.edu"
] | ykhade@nevada.unr.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.