blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
f3b2c26d670bdf99872a36fac0256ef8de57e280
47f4e3aabb6dcb0f9a48c8a5634eac1523b71b2c
/11.0/website_payment_weixin/__manifest__.py
00f54fb4bd14c49e9f65384ad6836b05da5f5f82
[]
no_license
marvin981973/odoo-2
485b7815b639da17400f38ab2200fb6956486451
f45a562b1bd962697f096e7f7bc57b131b3e11f3
refs/heads/master
2020-06-26T06:22:16.520775
2018-03-11T13:26:04
2018-03-11T13:26:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
# -*- coding: utf-8 -*- { 'name': '微信支付', 'category': 'Website', 'summary': '微信支付', 'version': '11.1.0', 'description': """商城微信支付""", 'author': "Gavin Gu", 'website': "http://www.bankcall.net", 'depends': ['payment'], 'data': [ 'templates/payment_weixin_templates.xml', ...
[ "guwenfengvip@163.com" ]
guwenfengvip@163.com
1c69d9a65c51c15f6490b26a2f7d5e246e02163a
d5a82c882160e73e4dce5b0dd02d7ec42c0a8c25
/DataCamp_Introduction_to_Linear_Modeling_in_Python/1.1.1.Reasons_for_Modeling:Interpolation.py
2076f3676e6e74620c19d682eb45595a285832d4
[]
no_license
ContangoRango/Machine_Learning_AI_Blockchain
d31e57682f4b70988f60bfa9d1be598421e9a9eb
2161721493c14ed89f09a81140c4622dd31bebab
refs/heads/master
2022-03-22T03:33:23.333076
2019-12-08T12:12:49
2019-12-08T12:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,517
py
'''One common use of modeling is interpolation to determine a value "inside" or "in between" the measured data points. In this exercise, you will make a prediction for the value of the dependent variable distances for a given independent variable times that falls "in between" two measurements from a road trip, where ...
[ "buryj666@gmail.com" ]
buryj666@gmail.com
f352b6bc800e5edee3a813d50bc102e4410a8372
8be02b6f29dc79c3d6eb279266f98b1206e9748a
/newone/apps/autos/api/views/auto_views.py
b8c0dc33e067b66c9a9d36bfd9262eddede47d66
[]
no_license
nachovidondo/CarSales
803842559875ca83add03b1620e787f563f04825
b4d5cbca64d81bb1df35cf5f7b360dc3d43507e4
refs/heads/master
2023-03-11T05:55:11.698425
2021-02-17T23:19:38
2021-02-17T23:19:38
339,881,101
0
0
null
null
null
null
UTF-8
Python
false
false
2,580
py
from django.utils.module_loading import autodiscover_modules from rest_framework import generics from rest_framework.response import Response from rest_framework import status from apps.autos.api.serializers.auto_serializers import CarSerializer class CarListCreateAPIVIew(generics.ListCreateAPIView): serializer_cl...
[ "ignaciovidondo@hotmail.com" ]
ignaciovidondo@hotmail.com
0242a0d21a63922df3bfa30ddf9dda8823c7b193
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/eventhub/azure-eventhub/azure/eventhub/aio/_eventprocessor/in_memory_checkpoint_store.py
bfee2e6b46f2f5d23c08dac25c1f8674ec6efdfd
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
1,604
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
YijunXieMS.noreply@github.com
6e1fafae016c192848ad9c7aedc9c4acce6d6317
9ab9d9a3883471763edbceea59a0e83170581b5f
/tools/data_source/data_source.py
df1137bad05c7997e7f83ba8883abeeef5fb8677
[ "CC-BY-2.5", "AFL-2.1", "AFL-3.0", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
asmmhossain/phyG
24dc211dad5b3e89c87ff384e841f2e98bbd52db
023f505b705ab953f502cbc55e90612047867583
refs/heads/master
2022-11-21T12:43:46.172725
2014-02-14T12:33:08
2014-02-14T12:33:08
13,800,552
0
1
NOASSERTION
2020-07-25T21:05:41
2013-10-23T11:04:25
Python
UTF-8
Python
false
false
5,757
py
#!/usr/bin/env python # Retrieves data from external data source applications and stores in a dataset file. # Data source application parameters are temporarily stored in the dataset file. import socket, urllib, sys, os from galaxy import eggs #eggs needs to be imported so that galaxy.util can find docutils egg... from...
[ "mukarram819@gmail.com" ]
mukarram819@gmail.com
d13b7960bbeb646f94578f03d18f281afd98f87e
64ff8e45e2a0afb1cea4da11a6d0b461865f6881
/0x05-personal_data/encrypt_password.py
9ca2c948c7ebada0c95fbece5f3f83cf717badc1
[]
no_license
Caroll1889/holbertonschool-web_back_end
0e5289002b10fb4c379bdb0204cf5ace526147ab
970dcead135d8072afb45e120078c209d769a49e
refs/heads/master
2023-06-07T22:26:43.471102
2021-06-26T17:58:55
2021-06-26T17:58:55
305,270,759
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
#!/usr/bin/env python3 """Encrypting passwords""" import bcrypt def hash_password(password: str) -> bytes: """Hashed a password""" salt = bcrypt.gensalt() password = bytes(password.encode('utf-8')) return bcrypt.hashpw(password, salt) def is_valid(hashed_password: bytes, password: str) -> bool: ...
[ "diahancaroll@hotmail.com" ]
diahancaroll@hotmail.com
1a766c468b57dd691a681d1512e84b4b30be6979
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2539/60638/276594.py
63c148b6e1f2cc7018bd670bdfd1659572eebc8a
[]
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
295
py
numbers=list(map(int,input()[1:-1].split(","))) begin=0 end=len(numbers) while begin<len(numbers) and numbers[begin]==min(numbers[begin:end]): begin=begin+1 if begin==end: print(0) else: while end>0 and numbers[end-1]==max(numbers[begin:end]): end=end-1 print(end-begin)
[ "1069583789@qq.com" ]
1069583789@qq.com
c2ac8f3e8a5c0fd079fddeed8157caba26067db9
851b57b99cc50c3070bfcb635beb25935dc0f222
/generic_account/models/__init__.py
d2260c362f3a0556da34b6a9ef9717e2bc2ec91d
[]
no_license
pragmatic-lab/custom-holandapets
140ce67daca30b09683ab52bd19b8e88b31c02b9
a1b99ddbffc23dbbdc66b2fdecd07b0ae966225a
refs/heads/12.0
2023-04-19T04:51:30.067882
2021-05-10T00:19:37
2021-05-10T00:19:37
320,437,847
1
3
null
2021-05-10T00:19:38
2020-12-11T01:48:38
Python
UTF-8
Python
false
false
234
py
from . import account_journal from . import account_move from . import account_move_line from . import account_invoice from . import account_payment from . import res_company from . import account_config from . import product_template
[ "lsoto@pragmatic.com.ar" ]
lsoto@pragmatic.com.ar
e1485dbdc7fc4531801be70e2c28cf9a56b39de5
5cc064d6c0dd2f4b2de8adbca4813b2ed7431973
/.virtualenvs/invenio/lib/python2.7/site-packages/invenio_oauth2server/config.py
33516bacb1b9f62e4da523914ae9d4581256c78a
[]
no_license
N03/invenio
3a3dec6e6ab58ba86d9fb70ef8e052fe771dfbfe
54eb34c7e1594cc50a5347ba93e12a991ba8b7f3
refs/heads/master
2021-04-26T23:12:30.676806
2018-03-06T16:42:10
2018-03-06T16:42:10
123,946,569
0
0
null
null
null
null
UTF-8
Python
false
false
2,493
py
# -*- coding: utf-8 -*- # # This file is part of Invenio. # Copyright (C) 2014, 2015, 2016 CERN. # # Invenio is free software; you can redistribute it # and/or modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # License, or (at your optio...
[ "noe.zufferey@gmail.com" ]
noe.zufferey@gmail.com
35ff995c16f81cee40b7b42ee46609136eb4435b
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/model_control/detailed/transf_BoxCox/model_control_one_enabled_BoxCox_PolyTrend_Seasonal_WeekOfYear_SVR.py
cc0d9f69c9b6fafab53098dcb0d399d9e04270c6
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
159
py
import tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['BoxCox'] , ['PolyTrend'] , ['Seasonal_WeekOfYear'] , ['SVR'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
e41b21f1a3bb4d7788dac3793284e205f8a50abd
4ede275efc8bc9f9ef121dc37215d2f0d8453e36
/prolongsub.py
fb410b05501c24854087419f6975980e0d7d4818
[]
no_license
shanthivimalanataraajan01/code
bfa8a441b0c360aebd02248ad4433cc21889c3d2
ea467ae1eefd68a5dceaa53aab7149d31bd5faf6
refs/heads/master
2020-04-15T05:01:03.625422
2019-05-17T09:35:45
2019-05-17T09:35:45
164,405,963
0
2
null
null
null
null
UTF-8
Python
false
false
199
py
# your code goes herems n=input() a="" b=[] for i in range(len(n)): if n[i] not in a: a=a+n[i] elif n[i] in a: b.append(len(a)) a="" if i==len(n)-1: b.append(len(a)) a="" print(max(b))
[ "noreply@github.com" ]
shanthivimalanataraajan01.noreply@github.com
2d0f26cefaa710e2d33cf80d6c211c7f6880d435
6e899df09aa69584e35ccb9ef09b6e1a3c07f5aa
/setup.py
15d780b3afa650cc1ca9d6f5c554ebc884fbbce7
[ "MIT" ]
permissive
xiaowu5255/django-comment-migrate
3ba6720a6cf38acdc662260b77cea3d9dfab74ee
1475d1e180cf1853cf0a0cb017873a6bfa68360a
refs/heads/master
2023-07-15T14:16:09.074619
2021-08-09T09:20:36
2021-08-09T09:20:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
from setuptools import setup readme = open('README.rst', encoding='utf-8').read() setup( name='django-comment-migrate', version='0.1.5', description="""An app that provides Django model comment migration """, long_description=readme, author='starryrbs', author_email='1322096624@qq.com', ur...
[ "1322096624@qq.com" ]
1322096624@qq.com
b042a789e85aaf1f26ab0d12061f992819017ada
9c50f57a9cb32b44e86a0cdcbf61ead34754b085
/杂物间/备课/面向对象/main.py
6aef213cb53be3ca32f00e2c15a402140ff5508b
[]
no_license
a1403893559/rg201python
c3f115011981393c86a0150e5281096651712ad4
448f04c86e4c7fd30e3a2a4f9121b934ae1d49be
refs/heads/master
2020-03-15T23:32:17.723403
2018-03-18T12:59:43
2018-03-18T12:59:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
# import msg.sendmsg # import msg.receivemsg # from msg import sendmsg # from LS import haha from msg import * receivemsg.receive() sendmsg.send() # msg.sendmsg.send() # msg.receivemsg.receive() # sendmsg.send() # haha.haha()
[ "wengwenyu@aliyun.com" ]
wengwenyu@aliyun.com
1f17e5931cc5cae6adc9cbd496a1526aa0d3aebc
6ebb170bebdb09f7f662f42e92a9e36ab289c700
/riakasaurus/riak_index_entry.py
f49db83df82c21f843d0f6feda6a08c5f1dc5b59
[]
no_license
ypsilon-net/riakasaurus
b37392850c0efecea95d2c1a89a63027fb22bffb
8708ea4a55803a14edc99fcc1dd8cb23e75ab80c
refs/heads/master
2021-01-11T23:10:57.566165
2016-11-20T16:20:11
2016-11-20T16:20:11
6,920,282
0
0
null
null
null
null
UTF-8
Python
false
false
1,876
py
""" Copyright 2010 Rusty Klophaus <rusty@basho.com> Copyright 2010 Justin Sheehy <justin@basho.com> Copyright 2009 Jay Baird <jay@mochimedia.com> This file is provided to you 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 o...
[ "colin.alston@gmail.com" ]
colin.alston@gmail.com
aae4ed9dabc3ba432d8cb37fc27a730ffd73eeae
5864e86954a221d52d4fa83a607c71bacf201c5a
/carbon/common/lib/cherrypy/tutorial/tut01_helloworld.py
50c22472141c5ca4c66daa9356b2580d9c44b35f
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\lib\cherrypy\tutorial\tut01_helloworld.py import cherrypy class HelloWorld: def index(self): return 'Hello world!' index.exposed = True import os.path tutconf = os.path.join(os.path.dirname(__file__), ...
[ "le02005@163.com" ]
le02005@163.com
4a18271ed687aee2919cc967574b34f6c927bba7
f023f1b025a49968c1050e7726054e2d69eaddd8
/item/interview/answer/migrations/0005_auto_20200420_1507.py
ff544edd3bdfa076c06c1b85d4230be0c05791ea
[]
no_license
soulorman/Python
225444cab3ce65511ab91db753f07ce28e5bd239
4febccac57bfa5f7ef46f5f57e52206c8b0a57ac
refs/heads/master
2023-05-11T01:50:08.012001
2020-06-22T07:14:24
2020-06-22T07:14:24
149,143,223
0
0
null
2023-04-29T10:08:28
2018-09-17T15:03:08
Python
UTF-8
Python
false
false
578
py
# Generated by Django 2.0 on 2020-04-20 15:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('answer', '0004_auto_20200407_1408'), ] operations = [ migrations.AddField( model_name='interview_options', name='flag'...
[ "2379797392@qq.com" ]
2379797392@qq.com
dd27f9028a9191539f2d19ecf62904e564473e36
d7ae245eca631a5c0e3868bb95d7c40f26768fa8
/deploy/project.wsgi
02208bdb90af8c2cd49e49d266aa1c4c8a0672c4
[]
no_license
ingenieroariel/agromapas
8a82aa0ad1a1a3b555becd1de92f035d810f2aac
7eb751b6d2ea8a18fdabccbd1b53053f5710b8fe
refs/heads/master
2021-08-18T14:05:36.945431
2009-04-23T01:39:02
2009-04-23T01:39:02
180,139
3
1
null
2021-06-10T20:22:45
2009-04-19T16:55:03
Python
UTF-8
Python
false
false
538
wsgi
import os import sys # redirect sys.stdout to sys.stderr for bad libraries like geopy that uses # print statements for optional import exceptions. sys.stdout = sys.stderr from os.path import abspath, dirname, join from site import addsitedir sys.path.insert(0, abspath(join(dirname(__file__), "../../"))) from django...
[ "ingenieroariel@gmail.com" ]
ingenieroariel@gmail.com
3db1bd66611152ae07ca6ebad16a76a453b4d4a7
bc441bb06b8948288f110af63feda4e798f30225
/file_repository_sdk/model/topboard/attachment_pb2.pyi
143133b3e76ab09b674c057218a08c5c80ceac4e
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
2,787
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from file_repository_sdk.model.topboard.issue_basic_pb2 import ( IssueBasic as file_repository_sdk___model___topboard___issue_basic_pb2___IssueBasic, ) from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor___...
[ "service@easyops.cn" ]
service@easyops.cn
d717ac0f4f2fa24d7616238e6f0c6d6c1426c871
e94b622f9bc85e7928e326538ab5daa6b0dd0ad4
/jarbas/chamber_of_deputies/twitter.py
f8a4514cc62643bdd7036f06d939ef5ef3681012
[ "MIT" ]
permissive
llenroc/serenata-de-amor
266449e16f8f5cd970bf7e8ded5c2dffab038b8b
0620260b854093c85bfb6e55edbfc0187c478dda
refs/heads/master
2020-03-29T01:02:11.545003
2018-09-13T17:33:16
2018-09-13T17:33:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,009
py
import twitter from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from jarbas.chamber_of_deputies.models import Reimbursement, SocialMedia, Tweet class Twitter: """Twitter target. Maintains the logic for posting suspicious reimbursements in a Twitter account. """ ...
[ "cuducos@users.noreply.github.com" ]
cuducos@users.noreply.github.com
27732345903d90f13954b37ea3733efd4b89d1d8
7bf617f77a55d8ec23fa8156c1380b563a5ac7f6
/CG/SciPy/RainDropsAnimation.py
0d0298b10d15106ad8f38e91090c45bdcaf00754
[]
no_license
anyatran/school
c06da0e08b148e3d93aec0e76329579bddaa85d5
24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec
refs/heads/master
2021-06-17T10:45:47.648361
2017-05-26T12:57:23
2017-05-26T12:57:23
92,509,148
1
1
null
null
null
null
UTF-8
Python
false
false
4,775
py
#------------------------------------------------------------------------------- # @author: Ninad Sathaye # @copyright: 2010, Ninad Sathaye email:ninad.consult@gmail.com. # @license: This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
[ "panhtran249@gmail.com" ]
panhtran249@gmail.com
493b624d55adc939d3b00fc459888cf2a1d996d8
35c026801051bde86c9f93332d8d594922352ac9
/video_yyz/scheduler.py
e10e61b48b317ff0e69b3b5f0f0f8f496b297340
[]
no_license
yiyuezhuo/video_yyz
00479f5960e4b33f6decdb46f40fc9ad54f45502
30471323f5109a52d7a78eaf48927cac4185e953
refs/heads/master
2022-04-09T13:47:34.561467
2020-03-22T12:07:56
2020-03-22T12:07:56
234,685,245
0
0
null
null
null
null
UTF-8
Python
false
false
1,623
py
import torch from bisect import bisect_right class WarmupMultiStepLR(torch.optim.lr_scheduler._LRScheduler): def __init__( self, optimizer, milestones, gamma=0.1, warmup_factor=1.0 / 3, warmup_iters=5, warmup_method="linear", last_epoch=...
[ "616271835@163.com" ]
616271835@163.com
4a05c7afee9f49d15136c24f3d446188128e0f90
ebd9c249d446d809abc9a0f3e4593f34922a1b93
/lintcode/110_minimum_path_sum.py
f2cf570eb9979fe7439fa6c7f1ba2391d04e920c
[]
no_license
jaychsu/algorithm
ac7a9dc7366f58c635a68bc46bf1640d2f5ff16d
91892fd64281d96b8a9d5c0d57b938c314ae71be
refs/heads/master
2023-05-11T00:40:39.237813
2022-09-14T07:43:12
2022-09-14T07:43:12
106,277,156
143
39
null
2022-09-14T07:43:13
2017-10-09T11:51:48
Python
UTF-8
Python
false
false
803
py
class Solution: """ @param: grid: a list of lists of integers @return: An integer, minimizes the sum of all numbers along its path """ def minPathSum(self, grid): if not grid: return 0 m, n = len(grid), len(grid[0]) dp = [[0] * n for _ in range(m)] for ...
[ "hi@jaych.su" ]
hi@jaych.su
6f59a982f39b6c551466c25852c0e0bd8ac4ef7c
d2e69d4d3d1e11a87f5a377e4a423422fe0a7058
/pandas_code/hierarchical_indexing/intro.py
ffc624322af15ce384e3f5d6cdfe81102066bbef
[]
no_license
oJacker/_python
6f30dd4a60c1593d27c00ac485163fc0ba77dd8c
8086d0cd78e156abfff9819a56384149dd431c56
refs/heads/master
2021-05-06T03:13:29.167281
2018-02-01T09:41:42
2018-02-01T09:41:42
114,827,084
1
0
null
null
null
null
UTF-8
Python
false
false
1,073
py
# -*- coding: utf-8 -*- import numpy as np from pandas import Series, DataFrame, MultiIndex print('Series的层次索引') data = Series(np.random.randn(10), index=[['a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'd', 'd'], [1, 2, 3, 1, 2, 3, 1, 2, 2, 3]] ) print(data) print(data.ind...
[ "623657285@qq.com" ]
623657285@qq.com
6279509647f56878024c85eb3fe869684bd96af0
e3cdf3d7dbc8020af9ed918296de8addb924f23f
/setup.py
64ec0c2b81667d2cb2ca1172c2f4f569f550bf4d
[]
no_license
abal09/django-munin
e459127b157b5dd9efe7339a363fe9ab2306b4e1
902b279ab9c21feafb3e5b2a20028220c960402a
refs/heads/master
2021-01-15T11:29:49.215529
2013-10-21T15:20:29
2013-10-21T15:20:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,114
py
# Copyright (c) 2011, Columbia Center For New Media Teaching And Learning (CCNMTL) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copy...
[ "anders@columbia.edu" ]
anders@columbia.edu
c62b3f347e9a918b11512d44c22f31ecaec06faf
98ca37f5dd2751efaa060cca19e0b83f871d7765
/sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_actions_async.py
5f15ca8fc8e8707a1460c8d2c25703589a05b16a
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
jayhebe/azure-sdk-for-python
5ea99732ebb9929d3f6f77c08cc640d5915970b1
f4455f85d9fe747fa4de2fdc691b975c07bfeea5
refs/heads/main
2023-06-24T01:22:06.602194
2021-07-28T02:12:25
2021-07-28T02:12:25
390,290,984
1
0
MIT
2021-07-28T09:23:46
2021-07-28T09:23:46
null
UTF-8
Python
false
false
7,880
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. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
jayhebe.noreply@github.com
8d5f3b5e38a25f1e0718243455da54d38ec416b0
ef243d91a1826b490e935fa3f3e6c29c3cc547d0
/PyQt5/QtCore/QAbstractAnimation.py
503ed9402b809ea69225f16f38b548f96dab63cc
[]
no_license
VentiFang/Python_local_module
6b3d0b22399e817057dfd15d647a14bb1e41980e
c44f55379eca2818b29732c2815480ee755ae3fb
refs/heads/master
2020-11-29T11:24:54.932967
2019-12-25T12:57:14
2019-12-25T12:57:14
230,101,875
0
0
null
null
null
null
UTF-8
Python
false
false
5,105
py
# encoding: utf-8 # module PyQt5.QtCore # from F:\Python\Python36\lib\site-packages\PyQt5\QtCore.pyd # by generator 1.147 # no doc # imports import enum as __enum import sip as __sip from .QObject import QObject class QAbstractAnimation(QObject): """ QAbstractAnimation(parent: QObject = None) """ def childE...
[ "5149528+ventifang@user.noreply.gitee.com" ]
5149528+ventifang@user.noreply.gitee.com
2aed3738deae636c8e9a3647238d2db78bfc5248
2071cf1aec8e9762a70b8c932943d8769da7f37a
/python_source/mgetcontent.py
6bb2221323fafc391af86679cb42d99cb7dfc6fb
[]
no_license
rinkeigun/linux_module
70581a793d1f170ad1a776fd1acf4cda1abecd52
94450fb2c6af0fc56f451ae9bf74f7aca248d0a6
refs/heads/master
2020-05-21T17:49:15.608902
2018-09-18T22:57:40
2018-09-18T22:57:40
60,572,658
0
0
null
null
null
null
UTF-8
Python
false
false
968
py
# -*- coding: utf-8 -*- # File name : mcontent.py # Date : 2017/11/04 # Author : Huiqun Lin # Ver : 0.1 #----------------------------------------------- #import mbase from mbase import mBase # クラスの説明 # このクラスは、ファイルを取り扱う例 class run(mBase): #関数リスト def __init__(self): com_list = [ ['ページ全体','fwholepag...
[ "huiqun.lin@gmail.com" ]
huiqun.lin@gmail.com
cf5472af804820c0aa98fb5b8833ad4181c3fafe
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2875/60765/266888.py
f3da7f19f034de9469a20df58106be984c4191ff
[]
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
229
py
#!/usr/bin/env python # -*- coding:utf-8 -*- n=int(input()) serial=input().split() #serial=list(map(int,input().split())) result=[0]*n for i in range(n): result[int(serial[i])-1]=i+1 print(' '.join([str(n) for n in result]))
[ "1069583789@qq.com" ]
1069583789@qq.com
f30ff31127b0d411873c47c50f3fb2332126cca0
66738cf02020d979410bf65be524ed9bb622e7c5
/lianxi/day0218/demo17-1.py
d0ab00f422058fd3d77ec5b1f487eb8072914a82
[]
no_license
Liu-Zhijuan-0313/pythonAdvance
882a2c19cf611f068e4549a8b06bdfd0036d3624
e5b794f8d0fa0da5465fe123ac179ac09d62cf24
refs/heads/master
2020-04-22T09:15:57.963165
2019-02-23T08:02:49
2019-02-23T08:02:49
170,261,598
0
0
null
null
null
null
UTF-8
Python
false
false
2,663
py
""" 总结垃圾回收的三种机制 引用计数:(指内存的技术) a = [1,2] 引用计数+1 其实是【1,2】列表所在内存的引用+1 标记清楚:(就是为了解决引用计数的循环引用问题) 分代回收:(目的是为了确定 对哪些对象进行标记清除) """ """ 引用计数+1的情况 1、对象被创建时,例如a="hello zzy" 2、对象被copy引用时,例如 b=a,此时a引用计数+1 3、对象被作为参数,传入到一个函数中时 4、对象作为一个子元素,存储到容器中时,例如 list=[a,b] 引用计数-1的情况 1、对象别名被显示销毁,例如 del a ...
[ "1602176692@qq.com" ]
1602176692@qq.com
130a78bba2dc3bd46813b9b21cca30f529fbee65
1c490d54d2b0a599c4709faaa6c867e856928d4c
/HelloWorld/build/Debug/HelloWorld.app/Contents/Resources/main.py
546f16b5739a82056a6d9c94df197e3f8a3bf8a6
[]
no_license
jyr/pythoncocoa-examples
8948fb58b1c06b7d2333da37e54c83628c8a48fb
361cdd9a81f718dd68bb189951d5730357860b84
refs/heads/master
2020-12-24T15:23:27.025755
2011-09-25T18:25:46
2011-09-25T18:25:46
285,995
6
0
null
null
null
null
UTF-8
Python
false
false
438
py
# # main.py # HelloWorld # # Created by Jair Gaxiola on 23/08/09. # Copyright __MyCompanyName__ 2009. All rights reserved. # #import modules required by application import objc import Foundation import AppKit from PyObjCTools import AppHelper # import modules containing classes required to start application and ...
[ "jyr.gaxiola@gmail.com" ]
jyr.gaxiola@gmail.com
0b1dd1f4418ebd4c598ae249930951f3080d667c
6086d87363225fb74a3013a53578ab955635a3e9
/scripts/r/rename_batch.py
bc23a0ac6416e1e11fa04275e1f4fe5a0115005c
[]
no_license
rossning92/MyScripts
9cb940b99fa69c2d3daafad4f65c54c261e9af82
d70d11fc5914d147c7910c5db8493901fa8af51b
refs/heads/master
2023-09-01T00:08:57.966457
2023-08-31T05:30:23
2023-08-31T05:30:23
136,868,420
16
1
null
2022-08-26T06:24:19
2018-06-11T03:11:16
Python
UTF-8
Python
false
false
816
py
import os import time from _editor import open_in_editor from _shutil import get_files, write_temp_file def wait_until_file_modified(f): last_mtime = os.path.getmtime(f) while True: time.sleep(0.2) mtime = os.path.getmtime(f) if mtime > last_mtime: return if __name__ == ...
[ "rossning92@gmail.com" ]
rossning92@gmail.com
106be3f9656de13bac4180946e451e43531c6302
2db5bf5832ddb99e93bb949ace1fad1fde847319
/beginLearn/googleclass/class6/sigmoidVector.py
feb035a31b9f9444b731dadad3050c7bd1d8ff3d
[]
no_license
RoderickAdriance/PythonDemo
2d92b9aa66fcd77b6f797e865df77fbc8c2bcd14
98b124fecd3a972d7bc46661c6a7de8787b8e761
refs/heads/master
2020-04-06T17:36:46.000133
2018-11-15T07:07:03
2018-11-15T07:07:03
157,666,809
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
import numpy as np ### One reason why we use "numpy" instead of "math" in Deep Learning ### # x = np.array([1,2,3]) # exp = np.exp(x) # print(exp) #矩阵的sigmoid函数 def sigmoid_vector(X): exp = 1 / (1+np.exp(-X)) print(exp) X = np.array([1,2,3]) vector = sigmoid_vector(X)
[ "1371553306@qq.com" ]
1371553306@qq.com
0e65c9ce75d93cba4168c65683c05903d0b8c9bb
a09c0690d3b90da1991cb836270d6f3010a773fe
/amplify/agent/containers/system/collectors/meta/centos.py
680de6d57fc9d1d81426924ac57168972ec21003
[ "BSD-2-Clause" ]
permissive
heartshare/nginx-amplify-agent
723ae2e753e2f25c5bdd5f9297deefb9fc8235a2
66d15b16302ea81ac927f0c0dc41d66e47f482f3
refs/heads/master
2021-01-15T08:08:53.386878
2015-11-18T19:09:51
2015-11-18T19:09:51
46,457,987
0
1
null
2015-11-19T01:03:29
2015-11-19T01:03:29
null
UTF-8
Python
false
false
1,257
py
# -*- coding: utf-8 -*- import re from amplify.agent.util import subp from amplify.agent.containers.system.collectors.meta.common import SystemCommonMetaCollector __author__ = "Mike Belov" __copyright__ = "Copyright (C) 2015, Nginx Inc. All rights reserved." __credits__ = ["Mike Belov", "Andrei Belov", "Ivan Poluyano...
[ "dedm@nginx.com" ]
dedm@nginx.com
9d2245ee3300ec4e741301c5fab8ee83e32f46e8
9a9088713c917ac47c0b8713d6969b2cfcdbadac
/leetcode_python/facebook_robot_move_left_right.py
a198f36254cf2aba7f710976b743c4462b1c003d
[]
no_license
zihuaweng/leetcode-solutions
615fdcb9178b19764b4d30bcfe65a9f785e77270
e431ff831ddd5f26891e6ee4506a20d7972b4f02
refs/heads/master
2023-02-06T03:58:26.413711
2020-12-26T05:23:03
2020-12-26T05:23:03
311,418,790
4
7
null
null
null
null
UTF-8
Python
false
false
1,716
py
#!/usr/bin/env python3 # coding: utf-8 # Time complexity: O() # Space complexity: O() # 一个机器人在一条长的线段原点上可以左移动/右移动/不动,问有多少种情况可以在k步以内回到原点 # 三种情况 # 左移动/右移动/不动 # 0 0 0 0 0 0 0 0 0 # i # | (dis = 0, k-1) # | (dis =1, k-1) # # | # | (dis=1, k-1) # | (dis=0, k-1) # # base case: # k == 0: idx == 0:...
[ "zihuaw2@uci.edu" ]
zihuaw2@uci.edu
0d99091dd60bbb9fee2f88ce4487ade1163df7d4
41d68948807032cbbfe2f3aa9aa1483e7ed62a22
/ABC_problems/abc146_a.py
e777e8acc13629dcc5794304cee31805168b31b2
[]
no_license
yamabook37/atcoder
5d587eb6b1893eaad34983fde85dc7d0bdcbffdc
6ea98c48f4f326fb693623f32283732eed4b770e
refs/heads/master
2023-08-05T06:49:09.502564
2023-07-30T15:08:05
2023-07-30T15:08:05
248,848,495
2
0
null
null
null
null
UTF-8
Python
false
false
139
py
S = input() day = ['SUN','MON','TUE','WED','THU','FRI','SAT'] ss = 0 for i in range(7): if S==day[i]: ss = abs(7-i) print(ss)
[ "yuki.yamamoto0711@gmail.com" ]
yuki.yamamoto0711@gmail.com
ea9f3f1c716d4943b75ad4c715e5b3e0826a9a53
0de7538a16f54dfc5d2d6fbf078af1558d30086d
/iterable_unpacking.py
122f5c3ea6f7ff323ecbfe9f22b58cedbf62534f
[]
no_license
feleHaile/20181127EliLilly
c15535a60d66c42998fb5b14e5f3a6f2e13a3fc2
27390c5af4e4bd70e0a3a6e338a26c7963f4f8fe
refs/heads/master
2020-05-15T22:31:38.551113
2018-11-30T02:14:25
2018-11-30T02:14:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
849
py
#!/usr/bin/env python # iterable unpacking person = 'Bill', 'Gates', 'Microsoft' first_name, last_name, product = person people = [ ('Melinda', 'Gates', 'Gates Foundation'), ('Steve', 'Jobs', 'Apple'), ('Larry', 'Wall', 'Perl'), ('Paul', 'Allen', 'Microsoft', 'Seahawks'), ('Larry', 'Ellison', 'Or...
[ "jstrickler@gmail.com" ]
jstrickler@gmail.com
bc97987f6c49975220c2c95bf71911e5b1bd96a1
d95dab93687c050a967fd758a013b185c3388502
/01-aiohttp/爬虫高级aiohttp/baidu_img/baidu_img_normal.py
58e2df205c1bdd2fdc9609c692d953e757f80377
[]
no_license
zx490336534/Senior_spider
ff9d508522adc1fcf71f4b37b6ced37069bfbc87
b3e41f37b47db53198fbbf72b9d422a5706987d3
refs/heads/master
2020-03-06T23:33:35.877319
2018-09-15T09:36:18
2018-09-15T09:36:18
127,135,090
1
0
null
null
null
null
UTF-8
Python
false
false
1,293
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import requests import time import urllib3 from h1.baidu_img.baidu_img_url import get_img urllib3.disable_warnings() __author__ = 'Terry' def download_img_normal(img_list, file_path): if not os.path.exists(file_path): os.mkdir(file_path) sta...
[ "490336534@qq.com" ]
490336534@qq.com
aead2fdc384c299bb43401053fe962d6a0fa0516
abc3eedd33579c38dcd62cdd2252b760b9c99661
/example.py
bb77615fd063c83f25f1a6ae0077a4a6ee7b7fd2
[ "Unlicense" ]
permissive
quigongene/AO_Scripts
23c397088943d5d7c4a40149961031598699ac4a
7d9d8ad6708e2e83b4bc300a4cd781e2997dd680
refs/heads/master
2021-01-12T06:59:52.456286
2016-12-23T01:04:08
2016-12-23T01:04:08
76,890,145
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
# coding: utf-8 from aoclient import AOClient if __name__ == '__main__': # example usage # Example 1 # client = AOClient() # client.connect() # client.authenticate("username", "password") # client.close() # Example 2 # Using a with block to open and close the connection # Same as...
[ "theys@kayak.com" ]
theys@kayak.com
a9588c3f1edba1407570a4dbb2157ff8c3bed103
001ce2094fc67394d754fba9a620ad8f7435ebbf
/cppimport/cpprun.py
cf6ed4e2ff5d63f01acff8f868ae13ccd7315a41
[ "MIT" ]
permissive
zmoon111/cppimport
ba9e7471493e97080f42301031ad21a192c9612d
eb5fc6d034032041956d61f456894ff99e420128
refs/heads/master
2020-12-03T02:10:17.986649
2016-05-20T17:01:36
2016-05-20T17:01:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,158
py
import os import sys import tempfile import mako.template import argparse import cppimport cppimport.install() tmpl = """ ${code} #include <pybind11/pybind11.h> namespace py = pybind11; PYBIND11_PLUGIN(runnable) { py::module m("runnable", ""); m.def("main", main); return m.ptr(); } """ def cpp_run(): ...
[ "t.ben.thompson@gmail.com" ]
t.ben.thompson@gmail.com
dea19c134a47eb48498e92a0e6f55fd0b60bcc23
13f78c34e80a52442d72e0aa609666163233e7e0
/USACO/Practice Problems/December 2018/Gold/cowpatibility.py
77a337bffbf6fb7e9f361c81d53551e9d9e1d91e
[]
no_license
Giantpizzahead/comp-programming
0d16babe49064aee525d78a70641ca154927af20
232a19fdd06ecef7be845c92db38772240a33e41
refs/heads/master
2023-08-17T20:23:28.693280
2023-08-11T22:18:26
2023-08-11T22:18:26
252,904,746
2
0
null
null
null
null
UTF-8
Python
false
false
3,207
py
''' USACO 2018 December Contest (Gold) Problem 2: Cowpatibility Hey, an efficiency problem! I love efficiency problems! Definitely! I'm not sure this is going to go well. Guess what? It didn't go so well. ''' def main(): # Input parsing file_in = open("cowpatibility.in", mode='r') input = file_in.readli...
[ "43867185+Giantpizzahead@users.noreply.github.com" ]
43867185+Giantpizzahead@users.noreply.github.com
5de239599cdbf58c7b50a193584c9e7ba7309ad0
5cc204e2ecb9a756127e7c71633a1edcdb3e989b
/pyvasp/vasp/vdelsingleatom.py
000da135c343b1edc391b0357d26b2132fe194c3
[]
no_license
hopefulp/sandbox
1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8
4d26767f287be6abc88dc74374003b04d509bebf
refs/heads/master
2023-06-27T17:50:16.637851
2023-06-15T03:53:39
2023-06-15T03:53:39
218,209,112
1
0
null
2022-09-13T13:22:34
2019-10-29T05:14:02
C++
UTF-8
Python
false
false
7,462
py
#!/usr/bin/python2.7 #heejin import sys import os import re import math import subprocess import operator #usage description if len(sys.argv) < 5: print("Usage: [POSCAR file] [chg file] [Atom name] [# Remaining] [# Max Conf.]") sys.exit() posfilename=sys.argv[1] chgfilename=sys.argv[2] targetname=sys.argv[3] nrmngs...
[ "hopefulp@gmail.com" ]
hopefulp@gmail.com
fbd140f0cd23ac554bedf77684606c785ee94495
558ab845ee13fc10a6b4a7b842981f35632e7d61
/qa/rpc-tests/walletbackup.py
1e72a83b7ec424efa37c663a68697624219bd662
[ "MIT" ]
permissive
shitcoindev/luckyblockcoin
a866d91f10d538d73565137fe82c875ea4783ed9
3e27d72f3a629e567654a8c76d3064b7b274bcba
refs/heads/master
2020-05-22T07:09:33.261376
2017-03-11T21:05:15
2017-03-11T21:05:15
84,679,788
0
0
null
null
null
null
UTF-8
Python
false
false
7,318
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """ Exercise the wallet backup code. Ported from walletbackup.sh. Test case is: 4 nodes. 1 2 and 3 send...
[ "root@vultr.guest" ]
root@vultr.guest
0bb590c97f250a378e4289123bcba17408c688fc
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/resources/azure-mgmt-resource/azure/mgmt/resource/subscriptions/v2018_06_01/aio/_configuration_async.py
353f6a8fd369c40d598ae007e7d123d2b2d1e551
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
2,784
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" ]
YijunXieMS.noreply@github.com
5ac869e4be75ded8578798f0aaee96938743b41b
03f58679c393c1e7f0640cce290587bacbb0eb65
/python/slim/movielens.py
6d145d8391d242c8f3368ff764265e0b5eb9cd58
[]
no_license
lovehoroscoper/tmp
cc515b6992e82d07b8be6a4e250514f364c708f1
0e4c51db111eaee30bcc4f84ac670ed928500330
refs/heads/master
2021-01-25T09:20:11.738070
2017-06-06T23:58:26
2017-06-06T23:58:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,689
py
import numpy as np import scipy.sparse as sp import multiprocessing as mp from sklearn.utils.extmath import safe_sparse_dot def load_data(): """ # ML1M n_user, n_item = 6040, 3900 PATH = '/Users/kitazawa/data/ml-1m/ratings.dat' with open(PATH) as f: lines = list(map(lambda l: l.rstrip().s...
[ "k.takuti@gmail.com" ]
k.takuti@gmail.com
4241094be21578c4a3598a7cd57cbef679279da4
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/733/733.flood-fill.234404773.Accepted.leetcode.py
d74dda52e91c5b042b72fb3a684fccf0979e014a
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
591
py
class Solution(object): def floodFill(self, image, sr, sc, newColor): R, C = len(image), len(image[0]) color = image[sr][sc] if color == newColor: return image def dfs(r, c): if image[r][c] == color: image[r][c] = newColor if r...
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
25ce193066a78b1ee48b2161e17dcefbf3b23705
a982d8f9fd99c4af077dcafc1092a0f3779d9b39
/web_pjt/web_pjt/articles/migrations/0001_initial.py
c3981ccf9ca7d83033f7af9a7c50ba7c3ac4c2dd
[]
no_license
do-park/DDDJ
cbe4586a583618b616eaab19014ba16e69b38f06
22b53bb4822d7e0b61f5a8226bbadb9b9cb20ea0
refs/heads/master
2023-01-12T14:30:16.303107
2020-11-07T16:09:11
2020-11-07T16:09:11
273,131,598
1
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
# Generated by Django 2.1.15 on 2020-06-11 04:26 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] op...
[ "dohee.pa@gmail.com" ]
dohee.pa@gmail.com
b030d031baa157e46e73168cd43dd5b7bb5f84e3
bf6f3ccaab26e66c9eac45c78cf2c6f4ee6fa814
/x_websocket/manage.py
6bec5ae69cfb740e0da65fb5f66fab4542a582d6
[ "MIT" ]
permissive
Strangemother/python-simple-websocket-server
40871050c1890b5c2f6e3dfe2828b3b3818a59c6
1586a9e934c1b671636cfad9fbaba8c213b18a1e
refs/heads/master
2020-05-05T12:16:05.411957
2019-04-14T21:35:39
2019-04-14T21:35:39
180,020,839
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "websocket.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
[ "jay@strangemother.com" ]
jay@strangemother.com
a06c510141855730f9fab6d297a73b71da41a284
2449715d42e89f51bd352b3f3a311ef41f3f04f2
/exercise/news_test/nginx_learn.py
8f6bda4a777525438f17dd942e757a4a922935c7
[]
no_license
SmallPuddingComing/PycharmProjects
d0d900c94691efe98d7d0e147f2968c28546f61c
28965e9e2524cb26449a30a237665f404c5aab70
refs/heads/master
2021-01-10T15:47:21.968541
2016-05-03T11:23:27
2016-05-03T11:23:27
54,554,420
0
0
null
null
null
null
UTF-8
Python
false
false
1,619
py
#coding:utf8 from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer import socket import urllib class MyHandler(BaseHTTPRequestHandler): def do_GET(self): uri = self.path # print uri proto, rest = urllib.splittype(uri) host, rest = urllib.splithost(rest) # print hos...
[ "1076643147@qq.com" ]
1076643147@qq.com
86fded52ed52bdc7cedb0a3cfb2a672fc7dcd5a6
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/DescribeAssetsSecurityEventSummaryRequest.py
b9d51030398847af68aea0592c0b51ce4816e150
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,369
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
0ccef4b9113c7d207e706e11c94041d1527ab091
07fed53761a86734229866d457159c781d8db9c5
/model_generator/vgg16_transfer.py
6c58b510b569fb52cc5a58ecd036c4fc084cc8f4
[]
no_license
ko7suke/classification
81ead3f2df3c585903c961860bb7a388be6d08f8
6e297d8819bfad2ea9e0bee9df5588bbca9d35ac
refs/heads/master
2023-03-16T20:17:51.222550
2021-03-07T10:31:57
2021-03-07T10:31:57
340,521,606
0
0
null
null
null
null
UTF-8
Python
false
false
1,606
py
import numpy as np from tensorflow.keras.models import Sequential, Model from tensorflow.keras.layers import Dense, Dropout, Flatten from tensorflow.keras.optimizers import Adam from tensorflow.python.keras.utils import np_utils from tensorflow.python.keras.applications import VGG16 MODEL_NAME = "your_model" C...
[ "you@example.com" ]
you@example.com
df8a4fac6d83dcab78c2012432601edf8f3d38d6
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2652486_1/Python/jbctaka/C.py
b97685a844cb75e90fa347aafdfa94b237009f6b
[]
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
936
py
#!python # -*- coding: utf-8 -*- import sys sys.stdin.readline() (R, N, M, K) = [int(x) for x in sys.stdin.readline().split()] print "Case #1:" for index in range(R): P = [int(x) for x in sys.stdin.readline().split()] counts_max = [0] * (M + 1) for p in P: counts = [0] * (M + 1) for n in range(...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
018327e4568a719d2186690e69fda16e8b0e06a5
431a1f738b1edfba7dad8d10a6b7520d51d917cb
/Samples/UserSamples/2017/jetFakes_Splits/Fakes1_Config.py
c8ded1249d244a1467e43ab1dbab1d107576699f
[]
no_license
aloeliger/DatacardCreator
5ce702e46fbb77e843b44d8fe088c2645a4a8f66
5c7e890276a5be079ed3b677a471c1dcadcba52d
refs/heads/master
2022-02-26T19:52:30.563747
2022-02-16T20:24:48
2022-02-16T20:24:48
215,602,523
0
1
null
null
null
null
UTF-8
Python
false
false
658
py
from Samples.SampleDefinition import Sample from Samples.Uncertainties.UserUncertainties.FakeFactorUncertainty import FakeFactorUncertainty from Samples.EventDefinition.UserEventDictionaries.MuTauEventDictionary import MuTauEventDictionary FakeSample = Sample() FakeSample.name = 'jetFakes' FakeSample.path = '/data/a...
[ "aloelige@cern.ch" ]
aloelige@cern.ch
8ea3ef4564f48761d7d8ad388d422cdca738d513
f085af63a93cb12feca75a3d9e855c3373d2b78e
/Arrays/Arrays_buy_and_sell_stock_once.py
c014b55281ae23c05edd7f9d685046d307a8e64a
[]
no_license
zjxpirate/Daily-Upload-Python
9542f1a3491ac5c843bc80266523bc06c37be20e
d5efcfdaf7e632e1f0cb8b21c505c0c0a5325eb0
refs/heads/master
2020-04-03T08:10:55.667410
2019-06-27T01:15:36
2019-06-27T01:15:36
155,124,951
2
0
null
null
null
null
UTF-8
Python
false
false
430
py
list1 = [122, 110, 320, 550, 130, 600, 120, 160, 240] def buy_and_sell_stock_once(prices): min_price_so_far, max_profit = float('inf'), 0.0 for price in prices: max_profit_sell_today = price - min_price_so_far max_profit = max(max_profit, max_profit_sell_today) min_price_so_far = ...
[ "j_zhang21@u.pacific.edu" ]
j_zhang21@u.pacific.edu
e99f76a3e07cf85a97e13d57d5cd36013a8c6fab
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03496/s452031472.py
8b1566bf24775d280b74153c0fedf475999ad505
[]
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
477
py
N = int(input()) A = [int(_) for _ in input().split()] B = [abs(a) for a in A] absmaxv = -1 absmaxi = -1 for i, v in enumerate(B): if v > absmaxv: absmaxi, absmaxv = i, v print(2 * N) if A[absmaxi] > 0: print(absmaxi + 1, 1) print(absmaxi + 1, 1) for i in range(1, N): print(i, i + 1) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a55ceee6a5947916423ac59161b9d3245848c0c0
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/python2/LC_1338.py
056aab20c7d5c529de621afee054bae9c6a09211
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
331
py
import collections class Solution: def minSetSize(self, arr) -> int: count = collections.Counter(arr) n = len(arr) res = 0 for i, freq in enumerate(sorted(count.values(), reverse=True)): res += freq if res >= n // 2: return i + 1 retur...
[ "taocheng984@gmail.com" ]
taocheng984@gmail.com
58f19a5bc0bac8f15b474a2498fb245f8c95d24a
dd4f097e7f350a1a42de1f0e5faec8439cffc603
/week 7/OnlineShop/OnlineShop/urls.py
fde56b150b2a7e61477367f5a23e1f09c8055072
[]
no_license
maymashd/BFDjango
0f4a30b05061ac4f3beac411a80cc0b41e532d9a
a462101889522caed8a6795f7322b6062e265244
refs/heads/master
2022-12-15T00:40:37.510789
2020-04-19T15:51:35
2020-04-19T15:51:35
234,296,298
0
0
null
2022-12-08T05:31:54
2020-01-16T10:35:50
Python
UTF-8
Python
false
false
255
py
from django.contrib import admin from django.urls import path, include from rest_framework_jwt.views import obtain_jwt_token urlpatterns = [ path('admin/', admin.site.urls), path('login/', obtain_jwt_token), path('',include("main.urls")), ]
[ "maymashd@mail.ru" ]
maymashd@mail.ru
897a4263030e308dbf73eb3877444a0e91a3682d
9936666e04e9036491eb841c0a173f808246788f
/rlextra/radxml/tt2xml.py
e2b2bdd4f4de7dc98fa01baea6a3460719c53d09
[]
no_license
Xhiffer/Lama-projet-l2
c53527ef64c5ff0aa036e85422613cda9d173033
4521369f923f458cc95a3d567c17d47dd41391c9
refs/heads/master
2020-03-31T17:30:34.389624
2019-01-06T15:25:09
2019-01-06T15:25:09
152,425,686
1
0
null
null
null
null
UTF-8
Python
false
false
1,765
py
#copyright ReportLab Inc. 2000-2016 #see license.txt for license details __version__='3.3.0' __all__=('tt2xml',) from xml.sax.saxutils import escape, quoteattr from reportlab.lib.utils import isBytes, isUnicode, isStr def tt2xml(tt): '''convert tuple tree form to unicode xml''' if tt is None: return '' if i...
[ "matthew.iqbal@u-psud.fr" ]
matthew.iqbal@u-psud.fr
4e0bbd3df55d1abd292cb5bd3755aa6f8b9f037f
c4fd46deb031983501c26c980e77cb859f20ad5c
/IPython/config/profile/ipython_config_pysh.py
ba20354c368f5825efb6bc183742eb7f2709204d
[ "BSD-3-Clause" ]
permissive
omazapa/ipython
74cd2fdc3e2d8a74d8c6821794dac457fda483b9
1cf44de3833929a4cf9e0069e8c75ef9086eeaca
refs/heads/master
2021-01-17T09:27:18.511150
2010-12-08T23:03:24
2010-12-08T23:06:21
664,018
3
0
null
null
null
null
UTF-8
Python
false
false
882
py
c = get_config() # This can be used at any point in a config file to load a sub config # and merge it into the current one. load_subconfig('ipython_config.py') c.InteractiveShell.prompt_in1 = '\C_LightGreen\u@\h\C_LightBlue[\C_LightCyan\Y1\C_LightBlue]\C_Green|\#> ' c.InteractiveShell.prompt_in2 = '\C_Green|\C_LightG...
[ "ellisonbg@gmail.com" ]
ellisonbg@gmail.com
94b279499154889b3783dcb07efc7e55c2e24d05
ec00584ab288267a7cf46c5cd4f76bbec1c70a6b
/offline/__Digital_Twin/Iotic_Labs/py-application-examples-master/agent_tutorial_code/getting_started/3.3_connect_thing_following.py
1782bfe4b12ee64ec0e5f07f5f88a905e0e2dfc1
[ "Apache-2.0" ]
permissive
rahuldbhadange/Python
b4cc806ff23953389c9507f43d817b3815260e19
7e162117f1acc12537c7eeb36d6983d804122ff3
refs/heads/master
2021-06-23T05:04:20.053777
2020-01-28T10:34:28
2020-01-28T10:34:28
217,307,612
0
0
null
2021-06-10T22:44:11
2019-10-24T13:35:42
Python
UTF-8
Python
false
false
5,503
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2016 Iotic Labs Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://github.com/Iotic-Labs/py-application-examples/...
[ "46024570+rahuldbhadange@users.noreply.github.com" ]
46024570+rahuldbhadange@users.noreply.github.com
90d0d2c5885749e4e19c566fb0b4d522339b9367
b8fe1fbe36bff3f05cceecbe9811699ba1fb6765
/python_processThreading/threading/threading_setDaemon.py
2702289f42c35907df0d57bffedeff9c4d174de6
[]
no_license
xiaotiankeyi/PythonBase
c2edfeac9fe8d116a68725a784bcb183b1308af9
8f1377eb03135e8ee9c047f6e7762a0d69601ca1
refs/heads/master
2023-03-16T19:43:45.589440
2023-03-13T06:05:53
2023-03-13T06:05:53
219,412,971
0
0
null
2022-02-27T18:57:30
2019-11-04T03:51:29
JavaScript
UTF-8
Python
false
false
978
py
"""关于setDaemon(守护线程) 需求:主线程完成了,子线程不管你完成没完成也结束,所以子线程要设置为守护线程 """ import threading from time import ctime, sleep def ListenMusic(name): print("Begin listening to %s. %s" % (name, ctime())) sleep(3) print("end listening %s" % ctime(), "结束") def RecordBlog(title): print("Begin recording the %s! %s" % (t...
[ "laizhitian163@163.com" ]
laizhitian163@163.com
133828c128c2be4a5d76e6cb74f70bc0082818dc
af45eaf1e992e4b426f5cfcd04e96d828cbd4f1d
/cudeform/cudeformpy/setup.py
2686b4f28586ecd73665070b39e69506a40d9a9d
[]
no_license
adler-j/cudeform
9b6f95bfe5d7681929aa11b68dbdeffdca8136a5
0f5264f04401da62f8d44c6cd90a17e76e7c1e1f
refs/heads/master
2016-08-12T07:58:34.724375
2016-02-17T13:03:54
2016-02-17T13:03:54
51,922,350
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
from future import standard_library standard_library.install_aliases() from distutils.core import setup setup(name='cudeformpy', version='0.0.0', author='Jonas Adler', author_email='jonasadl@kth.se', url='https://github.com/adler-j/cudeform', description='Python bindings for the cudeform...
[ "jonasadl@kth.se" ]
jonasadl@kth.se
e45907430774d35fef871ee88f9cd74f9bf44750
abc72a2f2072ab7a5a338e41d81c354324943b09
/MC 102 (Exemplos de aula)/10 - Eficiência de algoritmos/busca_binaria.py
ee37fa8ae8a7c9d93b8484bc013d433524cb742c
[]
no_license
gigennari/mc102
a3d39fd9a942c97ef477a9b59d7955f4269b202a
fce680d5188a8dfb0bc1832d6f430cbcaf68ef55
refs/heads/master
2023-04-05T01:40:58.839889
2020-07-27T20:33:56
2020-07-27T20:33:56
354,130,720
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
""" Usado para lista ordenadas; conjutos Mas basta coonhecermos os limitates inf e sup da estrutura É mais eficiente que a busca sequencial """ def busca_binaria(lista, valor_procurado): """ Busca um valor em uma lista, avaliando sempre a metade de um intervalo. Toda vez que atualizamos um limintante, descart...
[ "g198010@dac.unicamp.br" ]
g198010@dac.unicamp.br
8665cdccb47d98d9d9145cb46186f361b23b44df
941403731d543182703d5f81589cd4454acf557f
/notebooks/4. purity subclonal/run_notebooks.py
2392afffd7d0a58a5c8c77b2ff8ac05c48dd9145
[]
no_license
bardin-lab/somatic-transposition-fly-intestine
445c7da52413162fba44878a0a646c77c3566397
ddeaac5ba2c44a9246e28a780b2ab2b7f22944b3
refs/heads/master
2023-01-22T03:28:10.755219
2020-12-07T09:29:53
2020-12-07T09:29:53
276,682,679
2
0
null
null
null
null
UTF-8
Python
false
false
662
py
import papermill as pm gff_files = [ '0.5.21.filtered_calls_delta_guts.gff', '0.5.21.filtered_calls_prosgfp_guts.gff', ] DELETION_READ_RATIOS = [ 'delta_purity_estimates_deletion.tab', 'pros_purity_estimates_deletion.tab', ] INSERTION_SET = ['Delta guts', 'ProsGFP guts'] for gff_file, insertion_set,...
[ "m.vandenbeek@gmail.com" ]
m.vandenbeek@gmail.com
12ae31e1cfbe674cfe83124c4fbba5c9061f4080
f3b5c4a5ce869dee94c3dfa8d110bab1b4be698b
/controller/src/config/utils/provision_physical_device.py
6f19fb4ae0e2534d69793e81947366566f1381aa
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
pan2za/ctrl
8f808fb4da117fce346ff3d54f80b4e3d6b86b52
1d49df03ec4577b014b7d7ef2557d76e795f6a1c
refs/heads/master
2021-01-22T23:16:48.002959
2015-06-17T06:13:36
2015-06-17T06:13:36
37,454,161
2
0
null
null
null
null
UTF-8
Python
false
false
7,877
py
#!/usr/bin/python # # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # import sys import time import argparse import ConfigParser from vnc_api.vnc_api import * from cfgm_common.exceptions import * class VrouterProvisioner(object): def __init__(self, args_str=None): self._args = None ...
[ "pan2za@live.com" ]
pan2za@live.com
46fbf4de63cd28c0c6beca53dabda0bbb5fee322
6518c74441a68fc99b2b08423b5ea11480806499
/examples/shap/binary_classification.py
7cf78dabb2e0b988d576b64038ebce777d56e261
[ "Apache-2.0" ]
permissive
criteo-forks/mlflow
da58e64d09700623810da63999a1aca81b435b90
499284d8dc9e9ec79d8d9dbd03c58d162a2b7eaa
refs/heads/master
2023-04-14T17:59:29.997458
2022-01-11T09:50:26
2022-01-11T09:50:26
191,391,769
5
4
Apache-2.0
2023-04-07T15:16:20
2019-06-11T14:44:00
Python
UTF-8
Python
false
false
1,052
py
import os import numpy as np from sklearn.datasets import load_breast_cancer from sklearn.ensemble import RandomForestClassifier import shap import mlflow from utils import to_pandas_Xy # prepare training data X, y = to_pandas_Xy(load_breast_cancer()) X = X.iloc[:50, :8] y = y.iloc[:50] # train a model model = Ran...
[ "noreply@github.com" ]
criteo-forks.noreply@github.com
096e19cf177328f8de7c74ba89c84e2a3325b75c
df7f13ec34591fe1ce2d9aeebd5fd183e012711a
/hata/discord/activity/activity_assets/tests/test__put_image_large_into.py
9eaf533e30b7069d35e71b3795a2b8e9c1ab244d
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
HuyaneMatsu/hata
63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e
53f24fdb38459dc5a4fd04f11bdbfee8295b76a4
refs/heads/master
2023-08-20T15:58:09.343044
2023-08-20T13:09:03
2023-08-20T13:09:03
163,677,173
3
3
Apache-2.0
2019-12-18T03:46:12
2018-12-31T14:59:47
Python
UTF-8
Python
false
false
423
py
import vampytest from ..fields import put_image_large_into def test__put_image_large_into(): """ Tests whether ``put_image_large_into`` is working as intended. """ for input_value, defaults, expected_output in ( (None, False, {}), ('a', False, {'large_image': 'a'}), ): dat...
[ "re.ism.tm@gmail.com" ]
re.ism.tm@gmail.com
fca16ce15c5dc3c586f38a918caad2c4413a58de
700ab97f790003c81d88ecc55498364effdb9cc1
/test_io.py
a13521ebe1bebca9fd36e8890f7588af19e77eba
[ "MIT" ]
permissive
p-p-m/eye
6a3aee3f42020dc696eb5611271701b0f17121b2
ce48a30913052472eff91830356ccf476e2f0f25
refs/heads/master
2021-01-22T08:29:09.703316
2017-05-27T19:47:31
2017-05-27T19:47:31
92,620,364
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
import asyncio @asyncio.coroutine def my_coroutine(task_name, seconds_to_sleep=3): print('{0} sleeping for: {1} seconds'.format(task_name, seconds_to_sleep)) yield from asyncio.sleep(seconds_to_sleep) print('{0} is finished'.format(task_name)) loop = asyncio.get_event_loop() tasks = [ my_coroutine('...
[ "marchukpavelp@gmail.com" ]
marchukpavelp@gmail.com
2f9bf4435f6e21406dd503c7de4e5993d1aac3d7
8cc72f1e6a0162e37e2a093916b100db5dcf2997
/csf_tz/csf_tz/report/accounts_receivable_summary_multi_currency/accounts_receivable_summary_multi_currency.py
bdf9091858b6a0553cd29e78d0cbdee52da48a22
[ "MIT" ]
permissive
questerp/CSF_TZ
c6f9b8fa2022e833ccf4c267c7d088d9647cb6da
38127a5f2d2127b54b29194b2f082f39012d9424
refs/heads/master
2023-07-12T07:05:03.498285
2021-08-20T07:30:35
2021-08-20T07:30:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,908
py
# Copyright (c) 2013, Aakvatech and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _, scrub from frappe.utils import flt from erpnext.accounts.party import get_partywise_advanced_payment_amount from csf_tz.csf_tz.report.accounts_r...
[ "info@aakvatech.com" ]
info@aakvatech.com
e5d11bcdc6b50f7e824da9b44fcbf23070b5c67f
89f3169a2393bff8880f657d9bb4c12b40729e9a
/2021-06/abc060_b.py
fa9bcf4d9dadc1d8e0e78b9a42157fe9677eeefa
[]
no_license
YutaGoto/daily_atcoder
c087adbb7fa03f0cdc4291c806f21b1b93130d86
113d4e25f1d3bb0e665f9154bc0afaecae5ea7bf
refs/heads/main
2023-06-19T00:56:12.359473
2021-07-16T12:33:06
2021-07-16T12:33:06
273,282,766
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
a, b, c = map(int,input().split()) t = a while t < 10000: if t % b == c: print("YES") exit() t += a print("NO")
[ "you.goto.510@gmail.com" ]
you.goto.510@gmail.com
7ee9b44415d7791e7ed755e55619507f19ae3164
0a98fae9bef3dbaa8fcb00edd7ac5f163b7aa633
/maze.py
29f095ca0ac2d075c57dcca2d38501c0d94787e3
[]
no_license
acollier88/maze_test
79255b6a7592f859b4b016b003d5e42ff31c6bab
74139a2ad465c4b961e669e2178ee2f50cef3a8b
refs/heads/master
2021-01-19T04:11:25.720019
2017-04-06T05:43:43
2017-04-06T05:43:43
87,356,382
0
0
null
null
null
null
UTF-8
Python
false
false
2,942
py
class Maze(object): def __init__(self, width, height, grid_data, definitions=None): self.width = width self.height = height self.grid_data = grid_data if definitions is not None: self.data_enum = definitions else: self.data_enum = { 1:...
[ "andrew@Andrews-MacBook-Pro.local" ]
andrew@Andrews-MacBook-Pro.local
665ac4c419ef14e0b2e01bbfbf987989c3eeb8ac
d0bdf444c71b724ecfd59b5bc6850962c56494cb
/homeworks/02-arrays_tables/tests/q4_3.py
46a582703b8f14e59cb0fde6db42d6a6b34fa0ff
[]
no_license
ucsd-ets/dsc10-su20-public
10e3d0ff452b337f222baee330fe60d1465b0071
38787e6cc3e6210b4cc8a46350e5120845971c9f
refs/heads/master
2022-12-13T23:28:20.512649
2020-09-03T19:28:06
2020-09-03T19:28:06
275,905,339
0
1
null
null
null
null
UTF-8
Python
false
false
435
py
test = { 'name': 'Question 4_2', 'hidden': False, 'points': 1, 'suites': [ { 'cases': [ { 'code': r""" >>> import numbers >>> isinstance(second_deadliest_year, numbers.Integral) True """, 'hidden': False, 'locked': False ...
[ "eldridgejm@gmail.com" ]
eldridgejm@gmail.com
b70bdc5fcc5e57880db3fcc6855b3233d73f001f
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_Anscombe/model_control_one_enabled_Anscombe_Lag1Trend_Seasonal_Second_LSTM.py
c525513ed3118885e239452f4e29256aa06af73a
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
163
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Anscombe'] , ['Lag1Trend'] , ['Seasonal_Second'] , ['LSTM'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
ea63bc24a209dfe4c40231d80ac2be522b9166ad
2f0cb310e2ec8fb176ee240aa964a7eef5ed23b4
/giico/quality_control_and_material_testing/doctype/soundness_loss/soundness_loss.py
564748565d11e219d5c68768bad8c5130bc415ee
[ "MIT" ]
permissive
thispl/giico
b96cf6b707f361275f8723d15f8ea1f95f908c9c
14c5631639ab56a586a7962be9871d722c20e205
refs/heads/master
2021-06-18T03:56:02.928303
2021-04-27T06:42:59
2021-04-27T06:42:59
200,183,753
0
0
null
null
null
null
UTF-8
Python
false
false
256
py
# -*- coding: utf-8 -*- # Copyright (c) 2021, VHRS and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class SoundnessLoss(Document): pass
[ "hereabdulla@gmail.com" ]
hereabdulla@gmail.com
6aea18a5c17d7b60d01ed27a80fa31d35885b765
49d02c64b699ed1c64d8e92369c7860c6e952277
/src/zojax/widget/googlemap/configlet.py
85f26b7cc2228a5e0482c548b4bb067cb334ce78
[ "ZPL-2.1" ]
permissive
Zojax/zojax.widget.googlemap
4bd6b26ae53da9b2f7357ae2e2f754983d7327aa
2d8954df84a6f5ab0827fac2fc8bbebf18d82c49
refs/heads/master
2020-06-03T06:35:28.247511
2014-02-13T15:55:25
2014-02-13T15:55:25
2,035,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "bubenkoff@gmail.com" ]
bubenkoff@gmail.com
9f1904fa49033633aa2a5229798705e5851fbae5
e1e6a36870270ef0f3f5b132fb7a2c233250e444
/tests/integration_tests/parse_flags_tests/test_members.py
63fccd7894c6d8410a343e377b48c88835c2e16f
[ "MIT" ]
permissive
lycantropos/rei
02a9715fc67dbb8187a51cfea69d9ecc5775afa7
65889cbd7aa844a0f077d455947f5e3a6f43d004
refs/heads/master
2023-09-02T03:37:10.232771
2021-11-12T16:32:35
2021-11-12T16:32:35
349,946,006
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
from tests.binding_tests.hints import BoundParseFlag from tests.integration_tests.utils import are_enumerations_equivalent from tests.port_tests.hints import PortedParseFlag def test_basic() -> None: assert are_enumerations_equivalent(BoundParseFlag, PortedParseFlag)
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
1bff16f23bd3351800a53cc3027af5daf14364e8
9596e8b90bfd17df2e24468e10210d3fe22e5973
/Binary Search Tree/construct_BST_from_preorder_recursive.py
1104cd473c91ed83d7b02e1a4ce457138a293000
[]
no_license
BhargavReddy461/Coding
bb66581b7f6a8b54a5b6edb4f4ac0599a930b46d
1084099489185926227172aa77221831c0017cbb
refs/heads/main
2023-03-11T19:57:10.144922
2021-02-28T10:17:33
2021-02-28T10:17:33
338,948,166
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
INT_MIN = float("-infinity") INT_MAX = float("infinity") class Node: def __init__(self, data): self.data = data self.left = None self.right = None def constructTreeUtil(pre, key, preindex, mini, maxi, n): if preindex[0] >= n: return None root = None ...
[ "noreply@github.com" ]
BhargavReddy461.noreply@github.com
731b4753781490a4cc31126a597e7eaf792c589d
6a3deb38999bb284e8dfa27e3612ea73e92fe1ed
/src/main/python/document_classification/topic_classification/classif/mainleave1out_svm.py
b0ba0220c761ddbfe002a72fa602acf40c3ec485
[]
no_license
pszostek/research-python-backup
c7d1bf56dc4b1ab9412fcecb1a9222f2a8dbe6ca
e38508de91f8a7bda3096c6f0a361734207357a5
refs/heads/master
2020-05-20T08:50:05.306294
2012-09-28T13:24:43
2012-09-28T13:24:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
''' Created on Nov 16, 2011 @author: mlukasik ''' import sys sys.path.append(r'../') from wordsfreq import select_descriptive_words from features import records_to_words_weights_converter from zbl2py import record_read from classifier_tester import LeaveOneOutAllCategories from classifier_svm import SvmWordsClassifie...
[ "mateuszn@bd31ee22-090f-0410-9135-988eccef8701" ]
mateuszn@bd31ee22-090f-0410-9135-988eccef8701
83ab8453e66449eae4a48bc3ea203ea2ad30d927
ea99a5ec02c72c72d422f0a93d9e0fc054e1daf4
/openacademy/tests/test_openacademy_session.py
db0f3e33bd5d0ce3d08c69e2995cedcc81f63208
[]
no_license
moylop260/demo08
2926f15c524b33f2fc4fded044e232bfb583d042
33e4843a2283e2f84b99c1a94b491c4759810f17
refs/heads/master
2022-12-28T00:40:30.168024
2020-10-07T16:23:59
2020-10-07T16:23:59
298,601,431
0
0
null
2020-10-07T16:28:07
2020-09-25T14:49:16
Python
UTF-8
Python
false
false
2,835
py
import psycopg2 from odoo.exceptions import ValidationError from odoo.tests import TransactionCase from odoo.tools import mute_logger class OpenacademySessionTest(TransactionCase): def test_session_same_instructor_constraint(self): with self.assertRaisesRegex( ValidationError, "A session's in...
[ "moylop260@vauxoo.com" ]
moylop260@vauxoo.com
078de54ef63bf02e43af6351706f132841322ea2
3474b315da3cc5cb3f7823f19a18b63a8da6a526
/scratch/KRAMS/src/stats/pdistrib/sinus_distribution.py
d0f9ce32d4cf03911ff297408443f9e1d6df173e
[]
no_license
h4ck3rm1k3/scratch
8df97462f696bc2be00f1e58232e1cd915f0fafd
0a114a41b0d1e9b2d68dbe7af7cf34db11512539
refs/heads/master
2021-01-21T15:31:38.718039
2013-09-19T10:48:24
2013-09-19T10:48:24
29,173,525
0
0
null
2015-01-13T04:58:57
2015-01-13T04:58:56
null
UTF-8
Python
false
false
460
py
from scipy.stats.distributions import rv_continuous from numpy import pi, cos, sin, log, arccos class sin_gen( rv_continuous ): def _pdf( self, x ): return sin( x ) def _cdf( self, x ): return 1 - cos( x ) def _stats( self ): return 1.0, pi - 3.0, 0.0, 0.0 def ppf( self, x, *ar...
[ "Axel@Axel-Pc" ]
Axel@Axel-Pc
f5c7a7be252a27494e0c3cb0494e88ef0ba1380a
c97fc7658c39feb51c0ed42c04783797c8675b8a
/pyside2_pyqt/pys2/59-2-QTableWidget-放置控件.py
e8f3781231d76e3404d5246f5452a53c6b2bb308
[]
no_license
githubvit/study
8bff13b18bea4954e8ed1b4619a091b134b8ff97
845e19d1225f1aa51c828b15effac30be42fdc1b
refs/heads/master
2023-02-20T15:59:19.635611
2021-12-15T08:30:54
2021-12-15T08:30:54
241,928,274
1
1
null
2023-02-02T06:18:48
2020-02-20T16:08:06
Python
UTF-8
Python
false
false
1,645
py
''' 扩展的表格控件 QTableWidget 放置控件 setCellWidget ''' from PySide2.QtWidgets import QApplication, QWidget, QTableWidget, QPushButton,\ QVBoxLayout,QTableWidgetItem,QAbstractItemView,QComboBox from PySide2.QtCore import * class Window(QWidget): def __init__(self): super().__init__() self.setWind...
[ "sgq523@163.com" ]
sgq523@163.com
30069523845016dd0d9bcfd358757f83560cc1cc
514df3b61cce4262259826d06d9eb8f751ab538f
/raiden/tests/unit/api/test_encoding.py
9c54c1e4693a4e124b4b3c96d6ba8d1e6c75d079
[ "MIT" ]
permissive
christianbrb/raiden
c7fa2cd4ccbb4d9013f2768204e5fff6baf4b994
64f0715af076747b293671157e2cbbd235cab81b
refs/heads/master
2020-04-05T12:27:27.454823
2020-01-16T08:44:29
2020-01-16T08:44:29
156,870,814
0
0
MIT
2020-01-16T08:44:30
2018-11-09T14:10:57
Python
UTF-8
Python
false
false
584
py
import datetime from raiden.api.v1.encoding import BaseSchema, TimeStampField class SchemaTest(BaseSchema): timestamp = TimeStampField() class Meta: fields = ("timestamp",) strict = True decoding_class = dict def test_timestamp_field(): now = datetime.datetime.now() assert ...
[ "lefteris@refu.co" ]
lefteris@refu.co
0aeedc590224748103e6bd4670c94e4faf40ffcb
60fa442ae76b960ab21b10fb527c0eac85cdc587
/python/python_def.py
2295834afff884149525c5ad5647210fce6e82fd
[]
no_license
pjanowski/Pawel_PhD_Scripts
8e6c2b92b492f9cacf425327a01faaceb27bb87d
5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e
refs/heads/master
2021-01-10T06:15:30.287053
2015-11-16T04:04:07
2015-11-16T04:04:07
46,250,317
0
1
null
null
null
null
UTF-8
Python
false
false
3,284
py
#! /usr/bin/python import sys import os from numpy import * #read mdcrd file, return vector of all coordinates and vector of boxsize (last line of file) def readmdcrd(filename): with open(filename) as f: x = f.readlines() boxsizeline=x[len(x)-1] x=x[1:len(x)-1] #delete first and last line of file coords =[] fo...
[ "pawelrc@gmail.com" ]
pawelrc@gmail.com
26e28d33c8c6297563c4468806296897064bb2f9
cf49100e92667054215a325a53a90168e45aa09a
/pages/urls.py
20b46dc6fc07428bcf95e2c8d069c077cd3a87b7
[]
no_license
cmrajib/django_Car_Dealer
81ec72f3059253786dde4eed924a5a9ac0951c26
7862e883bfe1afcacf9f825ce23c38361c17e23f
refs/heads/main
2023-02-06T13:52:11.218256
2020-12-28T08:39:54
2020-12-28T08:39:54
324,939,718
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
from django.urls import path from . import views from django.conf import settings from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns urlpatterns = [ path('',views.home, name='home'), path('about/',views.about, name='about'), path('services/',views.services, name='services'), p...
[ "cmrajib@gmail.com" ]
cmrajib@gmail.com
ad6092b48c4f94bceb34cd6cdf1cf5d42d5c2ceb
67b7e6d2c08f08403ec086c510622be48b8d26d8
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/persistent_tables/PTRebuild/persistent_rebuild_utility.py
212367e2f8cdb90651e2455a926e83e9e22412e6
[ "Apache-2.0", "PostgreSQL", "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-mit-modification-obligations", "OpenSSL", "MIT", "LicenseRef-scancode-other-copyleft", "bzip2-1.0.6"...
permissive
sshyran/gpdb
41012411d22b0294204dfb0fe67a1f4c8d1ecaf6
2d065ecdd2b5535cb42474f17a0ee6592b4e6837
refs/heads/master
2023-04-09T14:05:44.030212
2016-11-12T08:33:33
2016-11-12T08:34:36
73,544,159
0
0
Apache-2.0
2023-04-04T00:30:10
2016-11-12T09:43:54
PLpgSQL
UTF-8
Python
false
false
2,870
py
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
[ "jyih@pivotal.io" ]
jyih@pivotal.io
71b3ff10a96ff0146225b660a1259e34747d41a8
36222fc73431a89d41a342aa176158b8868bc41a
/accounts/migrations/0018_auto_20170403_1641.py
92ed6bc2e80b2c4c68ece263f59e13a20acf03b5
[]
no_license
dxviidmg/CITNOVA
9e3f555e192d4e875fc4b990b70c52e3f6fc8bc0
f18d6e74082d0ddf58eaba439d5e20f2d48af7b9
refs/heads/master
2021-01-18T23:34:41.179481
2017-05-20T13:59:11
2017-05-20T13:59:11
87,117,216
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-04-03 21:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0017_auto_20170403_1633'), ] operations = [ migrations.AlterFie...
[ "dmg_92@hotmail.com" ]
dmg_92@hotmail.com
11ea09cd5d200d805b08ebfee2cea27826e7292f
a10e0b699e9cf34eba277913baee54d6747351d0
/user/middleware/jwt_auth_middleware.py
e494a3a8cf75238209ad03a1376acc6b1e640518
[]
no_license
Guya-LTD/user
dcbffe4768ed1152e166ae47113cea30b09078e0
f4c06aeb10d01d62d1cb14ce2c21cfbc926310a6
refs/heads/master
2023-02-13T02:49:29.575648
2021-01-01T19:50:18
2021-01-01T19:50:18
287,047,309
0
0
null
null
null
null
UTF-8
Python
false
false
3,575
py
# -*- coding: utf-8 -*- """Copyright Header Details Copyright --------- Copyright (C) Guya , PLC - All Rights Reserved (As Of Pending...) Unauthorized copying of this file, via any medium is strictly prohibited Proprietary and confidential LICENSE ------- This file is subject to the terms and conditi...
[ "simonbelete@gmail.com" ]
simonbelete@gmail.com
8eb679c828ab3ce4ab8c1f89cb6a845643a54337
8f29859477f94d156f0f7012db051f97f0ac20dc
/session3/homework3/lesson_9.py
45799a9babc7805c8ba3df3f3e6d36662679b3a0
[]
no_license
akien1998/trungkien-fundamental-c4e22
c0cf7848eb167eee251ceb976448806c8ee16ab4
aa4a18c883ca3d0daeef0c1942fb3f12dd3ab898
refs/heads/master
2020-03-29T17:24:57.851594
2018-11-23T16:14:47
2018-11-23T16:14:47
150,161,455
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
print("hello , my name is kien and here is my flock") items=[5,7,300,90,24,50,75] print(*items,sep=", ") print("now my biggest sheep has size 300 let's shear it After shearing ,here is my flock") items[2]=8 print(*items,sep=", ") # Month1: print("Month 1") for i in range(len(items)): items[i] += 50 print("One mon...
[ "abc@example.com" ]
abc@example.com
d8319ebe343f65f66d8b697333b0f7f613b1fa82
1b9075ffea7d4b846d42981b41be44238c371202
/2008/devel/applications/science/electronics/iverilog/actions.py
a231e08f2897e8332ed3500d303fc0f88ad3d041
[]
no_license
pars-linux/contrib
bf630d4be77f4e484b8c6c8b0698a5b34b3371f4
908210110796ef9461a1f9b080b6171fa022e56a
refs/heads/master
2020-05-26T20:35:58.697670
2011-07-11T11:16:38
2011-07-11T11:16:38
82,484,996
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get WorkDir = "verilog-%s" % get.srcVERSIO...
[ "MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2" ]
MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2
29863db2599a66d029437d57697ec0e70828cb84
5a5bcfe21defcaf6b050b0c92e8ec03cee7eb50f
/gencrud/gen/task/admin/base_task_image.py
41d9dde29acd489998e9eb8cf3154d0f9acb05d1
[]
no_license
marychev/gencrud
dc146c570a81ed0665f6bec309f106d966be349a
d6dc478b9a079aba5589591fa2e79665179e28a2
refs/heads/master
2023-01-06T18:50:13.417451
2020-10-23T18:05:38
2020-10-23T18:05:38
262,617,213
2
0
null
2020-05-10T18:35:19
2020-05-09T16:55:28
Python
UTF-8
Python
false
false
477
py
from django.contrib import admin from gen.abstract.admin import AbstractDefaultAdmin, AbstractImageAdmin from task.models.task_image import TaskImage from gen.task.strings import NAME_APP as TASK_NAME_APP @admin.register(TaskImage) class BaseTaskImageAdmin(AbstractDefaultAdmin, AbstractImageAdmin): raw_id_fields ...
[ "marychevmihail3737@gmail.com" ]
marychevmihail3737@gmail.com
b87269f3a6463b33a2243782abeca0bd8ffef7eb
0eb3cb7493b6cc604a1aea9afc7af02e89b38602
/course_3_assessment_2.py
5cd818976ab1a685b2577b745ea4631fa59cc9cf
[]
no_license
ec4sug4/i
8b7c2d21ff3e7c763464f3a77ea009683eb17d51
1dbd58bb12729749c220b9f1f92f63389e7a886c
refs/heads/master
2023-05-10T17:08:57.966542
2020-07-02T09:33:01
2020-07-02T09:33:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,192
py
# 1. Write code to assign to the variable map_testing all the elements in lst_check while adding the string “Fruit: ” to the beginning of each element using mapping. lst_check = ['plums', 'watermelon', 'kiwi', 'strawberries', 'blueberries', 'peaches', 'apples', 'mangos', 'papaya'] map_testing = map(lambda word: "Fru...
[ "subham.kumar032@gmail.com" ]
subham.kumar032@gmail.com
743049b5d49a16b369d7c94a8635c0f45fdb2bff
ff05d0221defcb9cacf4497381d6353a6b2d0853
/gpytorch/lazy/matmul_lazy_variable.py
e4eb0d8a4966c755ea85e57319c6eb4a3b1ac95d
[ "MIT" ]
permissive
ediphy-dwild/gpytorch
5685ee673fd3f1836942fc7b23b4b540421d4f80
559c78a6446237ed7cc8e1cc7cf4ed8bf31a3c8a
refs/heads/master
2021-04-09T15:07:43.952159
2018-03-16T14:48:51
2018-03-16T14:48:51
125,529,576
0
0
MIT
2018-03-16T14:46:08
2018-03-16T14:46:06
Python
UTF-8
Python
false
false
4,560
py
import torch from torch.autograd import Variable from .lazy_variable import LazyVariable from .non_lazy_variable import NonLazyVariable def _inner_repeat(tensor, amt): return tensor.unsqueeze(-1).repeat(amt, 1).squeeze(-1) def _outer_repeat(tensor, amt): return tensor.unsqueeze(-1).repeat(1, amt).view(-1) ...
[ "gpleiss@gmail.com" ]
gpleiss@gmail.com
b65fca0fa7588a1a07a2b75d02f9515d64a2423c
48377e027a031036b9ebc5c9dcfc9a35ceed76d7
/common/event.py
092896175b292a1f4f66855398e25f47671c925b
[ "MIT" ]
permissive
MichioY/bilibiliupload
ed83a3836b09365f801ba93d5de818c2de147fbf
623e0d06e6acb4b5f2c3d6291450f27bbf83667e
refs/heads/master
2020-06-25T21:22:15.097945
2019-07-28T09:54:29
2019-07-28T09:54:29
199,425,286
1
0
MIT
2019-07-29T09:48:56
2019-07-29T09:48:56
null
UTF-8
Python
false
false
5,202
py
# encoding: UTF-8 # 系统模块 import inspect from concurrent.futures.thread import ThreadPoolExecutor from queue import Queue, Empty from threading import * import functools class EventManager: def __init__(self): """初始化事件管理器""" # 事件对象列表 self.__eventQueue = Queue() # 事件管理器开关 sel...
[ "34411314+ForgQi@users.noreply.github.com" ]
34411314+ForgQi@users.noreply.github.com
db6a891092593473920b15dcde556e7f6311783e
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/do/storage_profile.py
2eaa9f97219613ab1fa64b1ed2d1cff243d158bb
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,232
py
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def StorageProfile(vim, *args, **kwargs): '''The StorageProfile data object represents th...
[ "jmb@pexip.com" ]
jmb@pexip.com
c238f3543c137e495f335fafc7a38f7a9ca1998a
01c98f61835397c0a24f1169e022a3d37bde1d1d
/随手记/类型提示.py
f02013ee7bb41e1fdc8fd3c804ffd4b077dd6e41
[]
no_license
legolas-zeng/scripts
a342d72712eda51104f73a2c785c5569ce8cdec9
b2a1670dfea4277696a549bce79da79bbfc11258
refs/heads/master
2021-07-20T05:20:09.187685
2021-07-15T11:43:24
2021-07-15T11:43:24
117,564,259
3
0
null
null
null
null
UTF-8
Python
false
false
1,577
py
# coding=utf-8 # @Time : 2019/4/23 11:15 # @Author : zwa from typing import TypeVar, Iterable, Tuple, Dict, List,MutableMapping,Text ''' 对于较复杂的内置类型、泛型、生成器、自定义类型等,需要引入标准库typing typing常用的类型: int,long,float: 整型,长整形,浮点型; bool,str: 布尔型,字符串类型; List, Tuple, Dict, Set:列表,元组,字典, 集合; Iterable,Iterator:可迭代类型,迭代器类型; Generator...
[ "814382690@qq.com" ]
814382690@qq.com
af9158ff1514ee96dc92338871873897acc7dfad
6b6f68f507746e3e39b0e8789af5d044e27d6b0a
/Array/0011_ContainerWithMostWater_M.py
6a8526e5b5663eca53b6397adc38cf07275426a5
[]
no_license
PFZ86/LeetcodePractice
bb0012d8b3120451dda1745875836278d3362e45
6db9db1934bc0a8142124d8b56bf6c07bdf43d79
refs/heads/master
2021-08-28T08:43:27.343395
2021-08-17T20:38:32
2021-08-17T20:38:32
230,925,656
1
1
null
2021-08-17T20:38:32
2019-12-30T14:01:27
Python
UTF-8
Python
false
false
574
py
# https://leetcode.com/problems/container-with-most-water/ # Solution 1: the two-pointer method class Solution(object): def maxArea(self, height): """ :type height: List[int] :rtype: int """ res = 0 left, right = 0, len(height)-1 while left < right...
[ "pengfeizang@pengfeis-iMac.fios-router.home" ]
pengfeizang@pengfeis-iMac.fios-router.home
deef72765b58a4ed2bae8afba4b9ba5610f01b0c
712d957a3712bdca502dfabf8845e5b1eb35eb56
/ai/ants_stats.py
3e390870c95fab061b1cad5b42351db775b2395f
[]
no_license
skytreader/pydagogical
726e1f32d3096a53eded7a9c70608fa67929998e
ac246ddb37b04ceb7cdf226e56f780af4be60a2b
refs/heads/master
2023-02-03T09:53:50.604923
2023-01-31T17:30:24
2023-01-31T17:30:24
15,190,973
1
0
null
null
null
null
UTF-8
Python
false
false
1,877
py
#! /usr/bin/env python3 from ai.ants import TravellingSalesAnts from stats.avg import mean, standard_deviation import argparse if __name__ == "__main__": parser = argparse.ArgumentParser(description="statistics for ant colonies.") parser.add_argument( "--ants", "-a", type=int, default=100, required=Fa...
[ "chadestioco@gmail.com" ]
chadestioco@gmail.com
2514503ddd942a7b58035a517877e5d858a0ca0b
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/contrib/framework/python/framework/graph_util.py
8136ea823f367fbb49ce362c4994b920242b85a5
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:bb5b2844afc27b5a3578d4c6ae8655fd67f626fbc8a2bd734c52a977c9b334b6 size 6314
[ "github@cuba12345" ]
github@cuba12345
c9bf088d260bd1d1677eb18a25e7a02114648f72
3011e024b5f31d6c747a2bd4a143bb6a0eeb1e1d
/chapter03/db_operation_demo/venv/Scripts/pip3.7-script.py
1071be04f55f2425c9dd75d385ec3d62eacc654a
[]
no_license
yingkun1/python-django
a3084460a83682f3e0848d5b40c881f93961ecc2
08c9ed3771eb245ee9ff66f67cf28730d2675bbe
refs/heads/master
2022-12-11T12:33:20.788524
2019-06-12T09:30:59
2019-06-12T09:30:59
189,977,625
1
0
null
2022-11-22T02:57:01
2019-06-03T09:43:30
Python
UTF-8
Python
false
false
423
py
#!E:\python-django\chapter03\db_operation_demo\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7' __requires__ = 'pip==10.0.1' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s...
[ "925712087@qq.com" ]
925712087@qq.com
623561c66907e9f47dee5e5cf621f14fbe7302eb
20f138b4b71cf70b75637124f0aedf57ad8f3e4e
/tests/test_sensors_events.py
2e30f6e4e958a60b3d2b12247326244bcace7bda
[ "MIT" ]
permissive
ellezdi0808/garbevents
4556a406b282b5c39ce468a3be9bc0f59043f47e
845f14c29087465cb97e9874ea4aaf50cd879530
refs/heads/master
2023-01-22T13:58:16.780113
2020-12-10T15:01:17
2020-12-10T15:01:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
# -*- coding: utf-8 -*- from garbevents.sensors_events import GetData from garbevents.settings import Settings as ST 'mitmdump -p 8889 -s test_sensors_events.py' ST.url = 'http://sensor.wodidashi.com' ST.report_path = 'report' ST.all_events = ['LX_CONVERSATION_MSG_ITEM_FORWAR_CLICK', 'LX_CONVERSATION_SETTING_TOPS_C...
[ "1456470136@qq.com" ]
1456470136@qq.com
e4a47ecffbd510d97ecb76393985930660ef8eab
a9006c71d2470ad66f48004b06970c4033644e84
/1-ndarray/ndarray.py
b1bd166a7d973f28390481abfa19f15c5e192cd9
[]
no_license
ayman-elkassas/Numpy-CrashCode
1797558bdcec01143e58db5141bcbad883e97d1d
da6a4deb7ed28bfc937c5f371e88574ba4e354af
refs/heads/master
2023-03-30T23:34:27.649014
2021-04-11T17:52:27
2021-04-11T17:52:27
356,939,452
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
# N-Dimensional array import numpy as np # 1 dim a=np.array([1,2,3]) print(a) # 2 dim a = np.array([[1, 2], [3, 4]]) print(a) # minimum dimensions a=np.array([1, 2, 3,4,5], ndmin=2) print(a) # minimum dimensions a=np.array([1, 2, 3,4,5],dtype=complex) print(a)
[ "aymanelkassas88@gmail.com" ]
aymanelkassas88@gmail.com