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
ebc299fc609c9f70d3b6bb73526b7c530b6aad85
f65be296b831982b187cb3c3a1c82740fec15b5a
/ineco_tax_include/account.py
bd62769cf187b9dbca6b460bc4eff50915aaa2f6
[]
no_license
nitikarnh/bpe_module
ab05af81f7dae10129ec584233423d4e5c3c7f3d
6b1057495b277dc69023554d5d4e7bf172ba07c1
refs/heads/master
2020-05-21T16:40:05.291099
2017-10-24T09:11:01
2017-10-24T09:11:01
64,814,809
0
0
null
null
null
null
UTF-8
Python
false
false
7,151
py
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
[ "thitithup@gmail.com" ]
thitithup@gmail.com
a534743075eff3bc484d4ecb49af2297db59755c
8ded62b315fc3e325833d91caa885776e46ebead
/geatpy/demo/single_objective_demo5/main.py
3fea0027833b9470ad3502501703584c2e785879
[]
no_license
CL-White/geatpy
46079c501d72763b629b9654e07d38adefa2f848
3921306b310c91f0bb7aab22f718ab0ba44d600b
refs/heads/master
2020-04-13T23:59:03.770713
2018-12-21T06:55:07
2018-12-21T06:55:07
163,521,396
1
0
null
2018-12-29T15:30:55
2018-12-29T15:30:55
null
UTF-8
Python
false
false
1,629
py
# -*- coding: utf-8 -*- """ 执行脚本main.py 描述: 该demo是展示如何计算带约束的任务指派问题 其中目标函数和约束条件写在aimfuc.py文件中 问题如下: 设有5个人,5个任务。 已知这5个人每小时工作要求的工资分别是1,2,3,4,5元, 而这5个任务分别耗时1,2,3,4,5小时。 此外,已知工人1无法完成第2和第4个任务;工人3无法完成第1和第4个任务。 现要求给每个人分配去完成不同的任务,要求老板一共支付工人的工钱数最少。 因为问题需要用排列编码的染色体来解决,因此本案例调用了“sga_new_permut_temple...
[ "jazzbin@geatpy.com" ]
jazzbin@geatpy.com
ac0e03f089553008be7076ba6ad23656ff3032d2
00540621f1ce1038a6fd5550b868931d9d02829a
/IPProxyPool/util/compatibility.py
9e21c93b7aaeba3210dd4c79fda013c91eea4603
[ "Apache-2.0" ]
permissive
MisterZhouZhou/pythonLearn
392a3c0f31d0d3a61a43ae27b4a24c6d15316722
8933c7a6d444d3d86a173984e6cf4c08dbf84039
refs/heads/master
2020-05-19T18:53:08.451360
2019-07-18T07:01:51
2019-07-18T07:01:51
185,164,702
1
0
null
null
null
null
UTF-8
Python
false
false
442
py
# coding:utf-8 import sys PY3 = sys.version_info[0] == 3 if PY3: text_type = str binary_type = bytes else: text_type = unicode binary_type = str def text_(s, encoding='utf-8', errors='strict'): if isinstance(s, binary_type): return s.decode(encoding, errors) return s def bytes_(s, e...
[ "m15038960016@163.com" ]
m15038960016@163.com
179e8aa96fbd0a11d883b2da40dc69431c00f40e
f8da830331428a8e1bbeadf23345f79f1750bd98
/msgraph-cli-extensions/v1_0/devicescorpmgt_v1_0/azext_devicescorpmgt_v1_0/vendored_sdks/devicescorpmgt/aio/operations_async/_device_app_management_managed_app_registration_applied_policy_operations_async.py
8fb43691c6645917a280dbc32ead62781233dd0b
[ "MIT" ]
permissive
ezkemboi/msgraph-cli
e023e1b7589461a738e42cbad691d9a0216b0779
2ceeb27acabf7cfa219c8a20238d8c7411b9e782
refs/heads/main
2023-02-12T13:45:03.402672
2021-01-07T11:33:54
2021-01-07T11:33:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,249
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "japhethobalak@gmail.com" ]
japhethobalak@gmail.com
b2545483337881d35bc202af30352ec1f39361c6
a44b918826fcbeccb6b70a295d98ca0a31007c13
/Koudai/Server/release/Script/PyScript/Action/action12057.py
568de94028d8a9ba6a5488d3dd22f347debf6ba1
[]
no_license
Pattentively/Scut-samples
a5eff14506f137e409aa7f6139825fbff09e40a2
824037857450ca6e580d2bf6710679331132e6fe
refs/heads/master
2021-01-22T01:05:22.578877
2015-04-27T01:53:53
2015-04-27T01:53:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,223
py
import clr, sys import random import time import datetime import ReferenceLib from lang import Lang from action import * from System import * from System.Collections.Generic import * from ZyGames.Framework.Common.Log import * from ZyGames.Tianjiexing.Model import * from ZyGames.Tianjiexing.BLL import * f...
[ "wzf_88@qq.com" ]
wzf_88@qq.com
d9d2239e1b1af794739b1c6def6e3cfe648785d9
ddda55fcfc84ac5cd78cfc5c336a3df0b9096157
/projects/gd32f303-demo/board/SConscript
060557bb0a4e56f4bc0b79aa63de2f2cbaa77954
[ "Apache-2.0" ]
permissive
liu-delong/lu_xing_xiang_one_os
701b74fceb82dbb2806518bfb07eb85415fab43a
0c659cb811792f2e190d5a004a531bab4a9427ad
refs/heads/master
2023-06-17T03:02:13.426431
2021-06-28T08:12:41
2021-06-28T08:12:41
379,661,507
2
2
Apache-2.0
2021-06-28T10:08:10
2021-06-23T16:11:54
C
UTF-8
Python
false
false
1,037
import os import osconfig from build_tools import * sys.path.append(Env['OS_ROOT'] + '/drivers/hal/gd/scripts/') pwd = PresentDir() LIBS = [] LIBPATH = [] # add general drivers src = Split(''' board.c CubeMX_Config/Src/gd32f30x_it.c CubeMX_Config/Src/system_gd32f30x.c ''') # path include path in project path =...
[ "cmcc_oneos@cmiot.chinamobile.com" ]
cmcc_oneos@cmiot.chinamobile.com
d9ae372f842f837ad2873725740adc882eeccff2
684a9016bf00e132eab3c9cf4534639ae096cfc5
/Main/dlnaupnpserver/ServerClass.py
ab0249376c9d385dcead51ad84cea188e86f85d2
[ "BSD-3-Clause", "MIT" ]
permissive
pszafer/dlna_upnp_invention
d97a0c641d1d7b170378f0fad5b978d8e5576966
497d173a9e3883412dbbb17cafa826a0394ff849
refs/heads/master
2021-01-02T09:35:04.628203
2012-07-10T15:02:53
2012-07-10T15:02:53
1,980,638
4
1
null
null
null
null
UTF-8
Python
false
false
3,922
py
''' Created on 05-07-2011 @copyright: 2011, @author: Pawel Szafer @license: Licensed under the BSD license http://www.opensource.org/licenses/bsd-license.php @contact: pszafer@gmail.com @version: 0.8 @note:this is only test module ''' from twisted.internet import reactor from modCoherence.base import Coherence ...
[ "pszafer@gmail.com" ]
pszafer@gmail.com
15ba5830a4ff5c10b5f9b04726ad9ef517dec34e
0e647273cffc1fb6cbd589fa3c7c277b221ba247
/configs/hpt-pretrain/chexpert_rm_color/base-chexpert_rm_color-config.py
bf0ba57feabab69c163a32da34d296ce91df454b
[ "Apache-2.0" ]
permissive
Berkeley-Data/OpenSelfSup
e9976bf011b69ebf918506ba184f464b1073ec13
221191b88d891de57725b149caf237ffef72e529
refs/heads/master
2023-05-12T07:34:52.268476
2021-04-08T00:58:37
2021-04-08T00:58:37
343,654,823
0
1
Apache-2.0
2021-04-08T00:58:37
2021-03-02T05:20:27
Python
UTF-8
Python
false
false
2,019
py
_base_ = '../../base.py' # model settings model = dict( type='MOCO', pretrained=None, queue_len=65536, feat_dim=128, momentum=0.999, backbone=dict( type='ResNet', depth=50, in_channels=3, out_indices=[4], # 0: conv-1, x: stage-x norm_cfg=dict(type='BN')),...
[ "taeil.goh@gmail.com" ]
taeil.goh@gmail.com
ce2901dd98d7ea783a9d14e70295121f5c69db4c
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-dli/huaweicloudsdkdli/v1/model/export_sql_job_result_request.py
ce6445aee0752af2e044cada575e4d159696ae5d
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,877
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ExportSqlJobResultRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is at...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
19788b4aba6724c127c6db8862d91a21a8586c99
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_08_01/models/__init__.py
e592b28040ea7a510acc836e19f07934db25ff4d
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
2,077
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
Azure.noreply@github.com
96855b7975e0f1672164b652aaf3d0254e458dfe
271c7959a39f3d7ff63dddf285004fd5badee4d9
/venv/Lib/site-packages/alembic/testing/mock.py
08a756cbc27e1fab3cda7021d4cbb7b54f3f0187
[ "MIT" ]
permissive
natemellendorf/configpy
b6b01ea4db1f2b9109fd4ddb860e9977316ed964
750da5eaef33cede9f3ef532453d63e507f34a2c
refs/heads/master
2022-12-11T05:22:54.289720
2019-07-22T05:26:09
2019-07-22T05:26:09
176,197,442
4
1
MIT
2022-12-08T02:48:51
2019-03-18T03:24:12
Python
UTF-8
Python
false
false
791
py
# testing/mock.py # Copyright (C) 2005-2017 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Import stub for mock library. NOTE: copied/adapted from SQLAlchemy master f...
[ "nate.mellendorf@gmail.com" ]
nate.mellendorf@gmail.com
ea7556a795f4b376364386c416a52e7d6026666c
ace30d0a4b1452171123c46eb0f917e106a70225
/filesystems/vnx_rootfs_lxc_ubuntu64-16.04-v025-openstack-compute/rootfs/usr/lib/python2.7/dist-packages/nova/conf/notifications.py
0fbb4593cda237954c01736736ed53ac75382305
[ "Python-2.0" ]
permissive
juancarlosdiaztorres/Ansible-OpenStack
e98aa8c1c59b0c0040c05df292964520dd796f71
c01951b33e278de9e769c2d0609c0be61d2cb26b
refs/heads/master
2022-11-21T18:08:21.948330
2018-10-15T11:39:20
2018-10-15T11:39:20
152,568,204
0
3
null
2022-11-19T17:38:49
2018-10-11T09:45:48
Python
UTF-8
Python
false
false
3,947
py
# Copyright (c) 2016 Intel, Inc. # Copyright (c) 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/li...
[ "jcdiaztorres96@gmail.com" ]
jcdiaztorres96@gmail.com
a446f60b5e3cc2db0a5399fdccafb587ed11a532
c8c855a6ebb3b3101e5c3a80b94514c36b103495
/semana_2/serie_tv.py
b9a2da939fc0ae024cc6661b2e2a9305923e2f70
[]
no_license
K-A-R-L-A-Robles/poo-1719110219
835965c0e3100c9d6770678eb67920945942fa80
7d1fc57cd4157e5b52a153210311821d8290144d
refs/heads/master
2022-11-03T04:54:42.675869
2020-06-15T03:46:42
2020-06-15T03:46:42
265,970,361
0
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
class serie_tv: "Atríbuto" genero= "drama" actores= "30" horario= "7-8pm" canal= "308" difinicion = "hd" edad= "mayores_13" capitulos = "10" idioma= "inglés-español" duracion= "1hora" trama="tristeza" "Métodos" def entretener(self): print("entretener") def emociones(self): print("...
[ "replituser@example.com" ]
replituser@example.com
fa88201c4c9b2211e6fc5b0e29819c8d8cb30a1e
4ff94bdde94640d65c5a429be78cff5c8169689f
/spacescoops/compile.py
371b1473878434d170213dfa66c1a19ebe30e789
[]
no_license
unawe/spacescoop
db91058af55fcc51bb6535e89bb3b5f29fb75493
35caab11c556c124d04ea8fcb3ad012af7e5e39f
refs/heads/main
2021-07-24T18:39:09.931385
2021-06-14T16:09:38
2021-06-14T16:09:38
315,893,040
2
1
null
2021-06-14T16:01:23
2020-11-25T09:40:44
JavaScript
UTF-8
Python
false
false
717
py
import os from django.conf import settings from django_ext.compiler import PdfCompiler from .models import Article OUT_PATH = os.path.join(settings.MEDIA_ROOT, 'articles', 'download') OUT_URL = os.path.join(settings.MEDIA_URL, 'articles', 'download') PRINT_PREVIEW_URLPATH = 'scoops:print-preview' def pdf_filename...
[ "edward@gomez.me.uk" ]
edward@gomez.me.uk
a29a1f36d0199651c392bdc7122776de7e49a978
d1f1f05e4713c4011634f0e4247798f31d58c3a6
/scanning/base_raster_slow_scan.py
3fc9545e482a9605f3f36e04c9fb64000623039b
[ "BSD-3-Clause" ]
permissive
patrickurban/ScopeFoundry
8463695277bfb9c0b267b3b6f02fe5a1d20b4fd9
4c5a9430fad0b63d39014bed81a6ffc0af07c4df
refs/heads/master
2021-01-01T16:48:24.432671
2017-06-08T23:26:26
2017-06-08T23:26:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,841
py
from .base_raster_scan import BaseRaster2DScan from ScopeFoundry import h5_io import numpy as np import time import os class BaseRaster2DSlowScan(BaseRaster2DScan): name = "base_raster_2Dslowscan" def run(self): S = self.settings #Hardware # self.apd_counter_hc = sel...
[ "esbarnard@lbl.gov" ]
esbarnard@lbl.gov
4666470fddd067baae63e9674af988c217531a52
ff7d3116024c9df01b94191ddfa334e4a6782ae6
/arbeid/wsgi.py
7e7bcbe2174f9dbca3af07aa337ee738a4dfd3fc
[ "MIT" ]
permissive
jhnnsrs/arbeider
f5f708ee1026a9e9573a6f8a87c3b9e2fd6b5e33
4c5637913331c998a262ae0deca516b236845200
refs/heads/master
2021-05-26T10:31:16.279628
2020-04-08T13:40:26
2020-04-08T13:40:26
254,095,863
0
0
MIT
2020-04-08T13:40:28
2020-04-08T13:29:31
null
UTF-8
Python
false
false
389
py
""" WSGI config for arbeid project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTIN...
[ "jhnnsrs@gmail..com" ]
jhnnsrs@gmail..com
cea6a9d224a588d0e6741186eb9b225d866a0cf1
06292f96cba132ca57777672a447cfff7c5abee6
/week5/tut/submit/2.py
965de3af9b37ce5f09db1489af166faccca72298
[]
no_license
kietteik/ppl
1746440b12affe71e67d6f958922b32b1fdaab5c
2ee60582e81595b8d8b5d0f8212d20151cfe9264
refs/heads/master
2023-03-01T00:24:36.969189
2021-01-31T05:15:13
2021-01-31T05:15:13
305,802,556
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
from functools import reduce def flatten(lst): '''2. a''' return [item for sub_lst in lst for item in sub_lst] def flatten(lst): '''2. b''' if not lst: return [] return lst[0] + flatten(lst[1:]) def flatten(lst): '''2. c''' return list(reduce(lambda x, y: x + y, lst, []))
[ "kietteikdoi@gmail.com" ]
kietteikdoi@gmail.com
c5e0d6a51c84cd160f45fb4691d64910fd51cf86
2579f37a13cfbb47944c5b81c6e83ca710b29f88
/Server/core/Server_commication_User.py
df8157c2a18a3c9ad89863727fd336831b399315
[]
no_license
YangQian1992/FTP
932f32d5ed934bae295bd674757f7af23d0ad1ba
87d3a78522e7eb8058def1d74d7f32f0f61f1b86
refs/heads/master
2020-03-31T16:28:35.146329
2018-10-10T06:53:12
2018-10-10T06:53:12
152,376,641
0
0
null
null
null
null
UTF-8
Python
false
false
3,942
py
import sys import os import hashlib from Server.config.Server_config_info import server_config_info #建立基础常量 IP_PORT = (server_config_info['SERVER_IP'],server_config_info['SERVER_PORT']) class user_info: def __init__(self): #sys.path[0]='G:\\PycharmProjects\\项目\\ftp_proj_base\\Server\\core' serve...
[ "1289089651@qq.com" ]
1289089651@qq.com
863e8c47634a573e339090752dad971e80cb3be0
795b68819d51af14dfabb8dbe40c9e8153029188
/make_spiral.py
e65ca25352a9beeefce09d476853f079e5c97963
[]
no_license
MotazBellah/Code-Challenge
507f1fd3d5b3265e54905979c80d609afd81c54d
c38c95239193e26c1a88f6736d2ab9ee37185964
refs/heads/master
2022-02-25T02:54:10.216892
2022-02-19T19:28:05
2022-02-19T19:28:05
193,115,018
1
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
# https://www.codewars.com/kata/534e01fbbb17187c7e0000c6/train/python # Your task, is to create a NxN spiral with a given size. # For example, spiral with size 5 should look like this: # 00000 # ....0 # 000.0 # 0...0 # 00000 # Return value should contain array of arrays, of 0 and 1, for example for given size 5 result ...
[ "engineer.android@yahoo.com" ]
engineer.android@yahoo.com
6036c62127661ec04d262385fa810421752a0bde
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02647/s587144244.py
32c73c2e731aa2116ac14b30639794e570dcf3d6
[]
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
465
py
def action(A, N): B = [0] * N for i, bright in enumerate(A): s = max(0, i - bright) B[s] += 1 e = min(N, i + bright) if e < N - 1: B[e + 1] -= 1 for i in range(N - 1): B[i + 1] += B[i] return B def main(): N, K = map(int, input().split()) A = list(map(int, input().split())) ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
99fd7c389db08acda41a846ad6ffa8cc4039453c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/D6XfxhRobdQvbKX4v_13.py
5561fb6cf05642ceb60cb7daef49927c53d87e6a
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,088
py
""" You are given three inputs: a string, one letter, and a second letter. Write a function that returns `True` if every instance of the first letter occurs **before** every instance of the second letter. ### Examples first_before_second("a rabbit jumps joyfully", "a", "j") ➞ True # Every instance of "a" ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
89a3190c1a4237cb81fa42e43e1b2a8bf7ff2925
27d92b640d3814fa5dc8040b79a99d077cba3aae
/cpython/Tools/scripts/combinerefs.py
e10e49ad7c72b37991ca927e805f40223ee75636
[ "GPL-1.0-or-later", "Python-2.0", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi" ]
permissive
ms-iot/python
99a0f4d3dd3926703d49b75910c78c69cdb7aed7
a8f8fba1214289572713520f83409762a4446fea
refs/heads/develop
2022-12-07T23:26:31.339811
2017-11-17T02:24:32
2017-11-17T02:24:32
31,045,533
73
39
BSD-3-Clause
2022-11-16T20:24:24
2015-02-20T01:01:09
Python
UTF-8
Python
false
false
4,414
py
#! /usr/bin/env python3 """ combinerefs path A helper for analyzing PYTHONDUMPREFS output. When the PYTHONDUMPREFS envar is set in a debug build, at Python shutdown time Py_Finalize() prints the list of all live objects twice: first it prints the repr() of each object while the interpreter is still fully intact. Af...
[ "juanyaw@exchange.microsoft.com" ]
juanyaw@exchange.microsoft.com
d521134ee74c8fcdabfbf01d11310000cd770fd8
5e55858ef75c62921f8be2f2f6d19ebfe98a2d88
/5kyu/two_strings.py
3d70a10b12c4e90f6d10caddd13f76cfbe11546d
[]
no_license
Uthaeus/codewars_python
63abd96b66cb81f86e05b244a24c2c4de2f321e4
4b00c74ce0173bcf8527da7e4ef381d6802dde16
refs/heads/master
2021-06-01T10:34:30.688941
2020-11-01T19:17:32
2020-11-01T19:17:32
134,450,817
0
0
null
null
null
null
UTF-8
Python
false
false
998
py
# Input Strings a and b: For every character in string a swap the casing of every occurrence of the same character in string b. Then do the same casing swap with the inputs reversed. Return a single string consisting of the changed version of a followed by the changed version of b. A char of a is in b regardless if it'...
[ "romanlavery@gmail.com" ]
romanlavery@gmail.com
69bbcb51206c9a2dcbff2e6cc1eaf45346263a7a
191a7f83d964f74a2b3c7faeb4fc47d9c63d521f
/.history/main_20210529113936.py
21e3cf9871b43012cc06f98807e2c0817b4cbdec
[]
no_license
AndreLiu1225/Kinder-Values-Survey
2a317feee8d5b17c27da2b2116742656e35d8ab9
090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3
refs/heads/master
2023-05-03T00:26:00.481423
2021-06-04T03:24:19
2021-06-04T03:24:19
371,989,154
0
0
null
null
null
null
UTF-8
Python
false
false
6,921
py
from flask import Flask, render_template, redirect, url_for, flash, request from flask_sqlalchemy import SQLAlchemy from flask_wtf import FlaskForm from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati...
[ "andreliu2004@gmail.com" ]
andreliu2004@gmail.com
98dea60f0782c91c98ee5568018f96a7c2856a04
532e4cdd9c0b72c444b13ef669b788f3c629074d
/expo/scheduler/data_transfer.py
c893cfa4ba5327b4d2a2c5fedbf8f0ed2460ac61
[]
no_license
bethlakshmi/GBE2
3b2b5a677637759fd22220f3272336d9dfc5750e
e8e030a12946901ccb9f56a9a3c6a022a6a8c5c8
refs/heads/master
2021-01-23T09:02:40.253304
2019-05-01T01:39:51
2019-05-01T01:39:51
17,325,575
7
3
null
2019-04-29T03:52:18
2014-03-01T22:14:43
Python
UTF-8
Python
false
false
4,791
py
class Person(object): def __init__(self, booking_id=None, user=None, public_id=None, public_class="Performer", role=None, label=None, worker=None): if worker: self.role = work...
[ "bethlakshmi@gmail.com" ]
bethlakshmi@gmail.com
965cf3b5c4d6b07442c90621692a3c7c1c91d249
729243a020efed22445849c5cd95e78506f9845d
/Semana02/prog07.py
e9f57ada5268f62c217a8b7dbd7690afb0d86dd5
[]
no_license
yuri-almeid/SEII-YuriLimaAlmeida
6f031667943f469827bcb89db968d5b7a0188c2f
81fbf275fcc74a99d8b3630c953aece416546416
refs/heads/main
2023-08-10T19:49:18.162469
2021-10-07T11:02:25
2021-10-07T11:02:25
347,435,913
0
1
null
null
null
null
UTF-8
Python
false
false
1,005
py
def pass_func(): pass def hello_func(): return 'Hello Function' def hello_func_greeting(greeting, name='You'): return '{}, {}'.format(greeting, name) print(pass_func) print(hello_func()) print(hello_func().upper()) print(hello_func_greeting('Bye')) def student_info(*args, **kwargs): print(ar...
[ "yurilima95@gmail.com" ]
yurilima95@gmail.com
906f027f40c8a6910f73ee7bc7f3b9e2a224bb64
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/tlm/training/debugging_model/run_ck_lr_opt_copied.py
f06da55e5bada644bbbda70ee07688dfe9b8d142
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
1,400
py
from my_tf import tf from taskman_client.wrapper import report_run from tf_util.tf_logging import tf_logging, MuteEnqueueFilter from tlm.model.base import BertConfig from tlm.training.debugging_model.classification_opt_copied import model_fn_classification from tlm.training.flags_wrapper import get_input_files_from_fl...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
c40b20a7acd6aaddf25f265954ebe8ee03ced8d1
396d5838873d84145e5b125a8c1bc3db2313ac8f
/tests/conftest.py
cbca1a49f99b4a6ca40353b42289414df64a8a97
[ "MIT" ]
permissive
magnologan/sqlalchemy_aio
96480d2be46bae804b6bdc0e59568fb240d12b0e
915b00bd024b29afa712749695c0ad4ced0e9c37
refs/heads/master
2023-05-26T18:44:48.870565
2016-12-19T01:36:00
2016-12-19T01:36:00
77,687,272
0
0
NOASSERTION
2023-05-17T01:59:44
2016-12-30T13:17:13
Python
UTF-8
Python
false
false
1,110
py
import pytest from sqlalchemy import Column, Integer, MetaData, Table, create_engine, event from sqlalchemy_aio import ASYNCIO_STRATEGY def fix_pysqlite_transactions(engine): """See http://docs.sqlalchemy.org/en/latest/dialects/ sqlite.html#serializable-isolation-savepoints-transactional-ddl """ @ev...
[ "frazer@frazermclean.co.uk" ]
frazer@frazermclean.co.uk
cbc9e2fa617c023d59f637da868347726bef60c7
7ba5ec9aa9ddca3f9b3384fc4457b0a865c2a0a1
/src/397.py
536dc63ec74a520ba95396ed731a8cdb9ac5918e
[]
no_license
ecurtin2/Project-Euler
71f79ee90a9abd0943421677d78a6c087419e500
79479da7a45b3ae67c0c7ea24da5f7d43c6f25d3
refs/heads/master
2021-03-19T14:52:57.045443
2018-04-12T22:05:37
2018-04-12T22:05:37
100,059,180
0
1
null
null
null
null
UTF-8
Python
false
false
355
py
""" On the parabola y = x2/k, three points A(a, a2/k), B(b, b2/k) and C(c, c2/k) are chosen. Let F(K, X) be the number of the integer quadruplets (k, a, b, c) such that at least one angle of the triangle ABC is 45-degree, with 1 ≤ k ≤ K and -X ≤ a &lt; b &lt; c ≤ X. For example, F(1, 10) = 41 and F(10, 100) = 124...
[ "ecurtin2@illinois.edu" ]
ecurtin2@illinois.edu
fb1fc36e9c6ef029516926c94dcb77ea38e889f8
d3efc82dfa61fb82e47c82d52c838b38b076084c
/StructuredFund/creationRedemption/YW_GPMM_SZXJ_068.py
b95472014ee745c0484b0c9227976c740b7b3614
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
2,515
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/StructuredFund/serviceCreationRedemption") from mainService import * from QueryStructuredFundInfo import * sys.path.append("/home/yh...
[ "418033945@qq.com" ]
418033945@qq.com
fcd715b6160b971e53992a3d28a0a9732a3fc8b2
a893537a71aa285071a68035c968ba6f5c0ca57d
/ch08/79/79_one_layer_linear.py
920abd33cdaa3671c3f03e7b8b86fca8e0ed3ea2
[]
no_license
sinchir0/2020_NLP100
0a1810b0c299c29fa1a811f68fa87be74f9b3cf9
772123da5b5ac4094c26fdce2e192637dc55190a
refs/heads/main
2023-07-18T04:03:04.123302
2021-09-08T22:54:44
2021-09-08T22:54:44
257,416,868
0
0
null
null
null
null
UTF-8
Python
false
false
5,181
py
# 79. 多層ニューラルネットワーク # 問題78のコードを改変し,バイアス項の導入や多層化など,ニューラルネットワークの形状を変更しながら,高性能なカテゴリ分類器を構築せよ. from typing import Union import matplotlib.pyplot as plt import numpy as np import torch from torch import nn from torch.utils.data import DataLoader, Dataset from tqdm import tqdm class TextDataset(Dataset): def __init__(...
[ "s-saito@chic.ocn.ne.jp" ]
s-saito@chic.ocn.ne.jp
fd004e23d8775a14f91d226e6f75843c058b5f43
369b7f114f9bd9b45dd5fef77a070cb73abb68d1
/handle/itl/temp/handleForWh.py
adbc5ffe74a6e805871bce67b303dfa25a1570e6
[]
no_license
lyjloveabc/thor_handle
d790ee25317f724825c94a6b346a034ec0ae6e3d
8b9eda97ec873f3bf1732a428898a04d6a55c0af
refs/heads/master
2021-12-27T10:15:16.668264
2021-08-16T13:45:34
2021-08-16T13:45:34
84,824,162
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
base_sql = 'INSERT INTO itl_job_title VALUES ("{id}", now(), now(), "{name}", "", "{remark}", "公司总部");' with open('hehe.txt', 'r') as f: index = 19 for line in f.readlines(): hehe = line[:-1].split(' ') print(base_sql.format(id=index, name=hehe[0], remark=hehe[1])) index += 1
[ "546223592@qq.com" ]
546223592@qq.com
ae227652a174fe7076a5a971d1021bb31d494c08
e2c84bbefe728e20042a6befdf9effd0480b6cf0
/Text_processing/2. Character Multiplier.py
e2632389cf8db53afacd592a70c798b43c0c9eee
[]
no_license
vmakksimov/PythonFundamentals
ffe5f606f592a9f0650f45f225936f13f4659992
4a5b74e40cfaa19f777187404428e0dff9d66a16
refs/heads/main
2023-08-22T03:33:15.002041
2021-10-15T00:07:58
2021-10-15T00:07:58
410,258,308
0
0
null
null
null
null
UTF-8
Python
false
false
1,112
py
strings = input().split() string1 = strings[0] string2 = strings[1] total_sum = 0 first_sting = [] second_digit = [] for chr in string1: first_sting.append(ord(chr)) for chr in string2: second_digit.append(ord(chr)) cycle_iterations = min(len(first_sting), len(second_digit)) max_cycle = max(len(first_sting), l...
[ "vmakksimov@gmail.com" ]
vmakksimov@gmail.com
911acf65537c8dd5a41f4d656e1c3818bae26905
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2307/60581/234662.py
d8aff6f4b42dcf471b1cc7a0261a810c5e9f8fef
[]
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
602
py
import sys lst = [] for line in sys.stdin: if line.strip() == '': break lst.append(line) number = lst[0] wholeCount = 0 beginNumber = 1 while wholeCount < int(number): answer = [] numberOfList = int(lst[beginNumber]) numberList = lst[beginNumber+1].split() for i in range(0,len(numberLi...
[ "1069583789@qq.com" ]
1069583789@qq.com
a3a2782843a392afae3025bc78ecd02479d01184
19d9d25bf1de4007f42abc43acaa23d66c3428ab
/apps/about/admin.py
8eeb24983365004463d91b92632619725eadc495
[]
no_license
od-5/enjoy-sa
aa567268941d818212cf1e0b3358df470f4c29e9
5e3600aaab3e4f405680f9f32bffb4be0f2bf601
refs/heads/master
2021-01-10T05:48:06.442696
2016-03-23T11:48:49
2016-03-23T11:48:49
45,059,910
1
0
null
null
null
null
UTF-8
Python
false
false
204
py
# coding=utf-8 from django.contrib import admin from .models import About __author__ = 'alexy' class AboutAdmin(admin.ModelAdmin): list_display = ('title',) admin.site.register(About, AboutAdmin)
[ "od-5@yandex.ru" ]
od-5@yandex.ru
ba7472cea52dbd9a622962746d153fa5d21696f7
4723fed48970c7bcc50eaa3acbe1c66577f8f3cb
/ss/download/ss_coroutine.py
b939bdb56235bd2575c73012a01e8d8d6d4be429
[]
no_license
myetc4/spider
c03157f2203ea3c0ae0af30dc66e810f0ca20d06
4ffb36bc2551c1494ebdf0357da69ebb1c6c524d
refs/heads/master
2020-04-02T01:44:23.358947
2018-10-20T03:43:35
2018-10-20T03:43:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/10/18 22:07 # @Author : SmallStrong # @Des : # @File : ss_coroutine.py # @Software: PyCharm import sys import os # 被逼无奈 sys.path.append(os.getcwd().replace('/ss', '')) from ss.spider_core import go from ss.common.func import exe_time from gevent ...
[ "393019766@qq.com" ]
393019766@qq.com
4374be84930a4f11eb60ad2e0cdd4aaf8ed777ac
bbf744bfbfd9a935bd98c7cf54152a5d41194161
/chapter_05/e5-7_favorite_fruit.py
784ea00cac661066d715db00f0f223d403b8582c
[]
no_license
terranigmark/python-crash-course-projects
65a7863be2d26fe8b91ac452b12203386eb0259a
79ed9ed8e6a1bf015990a9556689379274231d13
refs/heads/master
2022-12-05T21:59:00.352140
2020-08-21T04:59:50
2020-08-21T04:59:50
266,263,493
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
def main(): favorite_fruits = ['melon', 'watermelon', 'apple', 'pineapple', 'banana', 'cranberry'] for times in range(5): fruit = str(input("Pick a fruit to know if it's on my list: ")) if fruit in favorite_fruits: print(f"You really like {fruit}") if __name__ == "__main__": ...
[ "linnk99@gmail.com" ]
linnk99@gmail.com
ae46917b4e5e1ee29516b367b756951f1ce8df78
f60b964dc39ba54bb84f1c4949be3b91a92b8346
/issue_order/tasks.py
c521a2ede5ab11c2f598a398a3bee9e017fc01e6
[ "Apache-2.0" ]
permissive
jiejiang/courier
4b0b4fc56c5510228ffcc4de51b074c7aff9502f
6fdeaf041c77dba0f97e206adb7b0cded9674d3d
refs/heads/master
2022-11-30T14:24:53.950502
2019-12-06T16:42:00
2019-12-06T16:42:00
195,387,643
0
0
Apache-2.0
2022-11-22T01:22:33
2019-07-05T10:08:19
Python
UTF-8
Python
false
false
2,650
py
# *- coding: utf-8 -* from __future__ import absolute_import from django.utils.translation import ugettext as _ import datetime, sys from celery import shared_task from django.db import transaction from mezzanine.conf import settings from .models import CourierBatch, Profile from .courier_systems import query_courier_...
[ "mail.jie.jiang@gmail.com" ]
mail.jie.jiang@gmail.com
f75e0e32e45291a28fc904599882abe66c9d2750
e8ae11e5017507da59e2e92d423b6a1994490de4
/env/lib/python2.7/site-packages/azure/mgmt/compute/models/virtual_machine_scale_set_ip_configuration.py
191b9e2ebb24995c979775a4515a352dcd782cd6
[]
no_license
teopeurt/ansible-ubuntu-server
613d00cea28bc6531acf4a39aeeb9cd0baa2a391
b5b6127d2ee9723c5088443efe2ffb8ae30cfea7
refs/heads/master
2021-06-28T12:49:50.935753
2017-07-31T17:34:33
2017-07-31T17:34:33
98,912,808
0
1
null
2020-07-24T00:05:31
2017-07-31T17:32:56
Makefile
UTF-8
Python
false
false
3,399
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 co...
[ "me@teopeurt.com" ]
me@teopeurt.com
a1de48a0569407301769af6688ace732cfce8112
f9248ec00b661ee4790a780b7adaec79c0d68ec8
/sumDigit.py
ed3440baa63aed50363a7e23b2a7dcc418c05215
[]
no_license
michaelzh17/6001_Python
0ec463f02840bf3162cd3247d76494d1592e82e3
53833604db4d769f71e63044813e3500f3e0fb6f
refs/heads/master
2021-01-11T22:31:17.832117
2018-12-21T10:34:18
2018-12-21T10:34:18
78,979,863
0
0
null
2017-04-06T02:54:57
2017-01-15T00:07:38
Python
UTF-8
Python
false
false
366
py
#!/usr/bin/env python3 def sumDigits(s): """Assumes s is a string Returns the sum of the decimal digits in s For example, if s is 'a2b3c' it returns 5""" sum_digit = 0 for e in s: try: sum_digit += int(e) except ValueError: continue return sum_di...
[ "macalzhang@gmail.com" ]
macalzhang@gmail.com
be37b4349655bde35cdd96eb797c2a72b4d8bc78
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/pypy/module/test_lib_pypy/ctypes_tests/test_cfuncs.py
5d3d816ee52701354d65e960dff269715097ef56
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
6,882
py
# A lot of failures in these tests on Mac OS X. # Byte order related? from ctypes import * import py from .support import BaseCTypesTestChecker def setup_module(mod): import conftest mod._ctypes_test = str(conftest.sofile) # this means you cannot run tests directly without invoking this mod.TestCFunct...
[ "mssun@mesalock-linux.org" ]
mssun@mesalock-linux.org
d3f4dc5383a82d4848dd5b8c53976b56998b176c
cbed9822648c05601fb84803c4cbfb63b3f9f6f5
/supervised_learning/0x06-keras/5-main.py
e105ddb4ab40795846f405606c414ac52ea1abb9
[]
no_license
thomasmontoya123/holbertonschool-machine_learning
793ba1f732ccaf2e08b832f3c57e10d12eabe808
8f0f2ce67339e574b21d7dfbba7f88545adac807
refs/heads/master
2022-12-26T09:55:07.302952
2020-10-04T23:38:23
2020-10-04T23:38:23
279,631,927
1
1
null
null
null
null
UTF-8
Python
false
false
1,087
py
#!/usr/bin/env python3 import numpy as np import tensorflow as tf build_model = __import__('1-input').build_model optimize_model = __import__('2-optimize').optimize_model one_hot = __import__('3-one_hot').one_hot train_model = __import__('5-train').train_model if __name__ == '__main__': datasets = np.load('super...
[ "tomasmontoya123@gmail.com" ]
tomasmontoya123@gmail.com
0ecc04c7a3bebfd4f58ae6f8a34d8d47d464687f
05e590af914370c3fe02526794ce9b41be893d2c
/day03/BMI多筆計算.py
c2dc0a100071d9bad093d8913fc909a910f75bed
[]
no_license
vincenttuan/yzu_python_20210414
bf0f1d9f8549086008fe15701204dfc3a9ebf85a
b464c4691ce12e9076c8c2ab74158aeb4edc5bc7
refs/heads/master
2023-06-09T19:30:24.930453
2021-06-30T13:31:29
2021-06-30T13:31:29
362,433,389
2
1
null
null
null
null
UTF-8
Python
false
false
425
py
import math # 有三組資料 170, 50 ; 180, 70; 160, 60 def printBMI(h, w): bmi = w / math.pow(h/100, 2) #result = "過重" if bmi > 23 else "過輕" if bmi <= 18 else "正常" result = "過輕" if 18 < bmi <= 23: result = "正常" elif bmi > 23: result = "過重" print("h= %.1f w=%.1f bmi=%.2f result=%s" % (h, ...
[ "vincentjava@yahoo.com.tw" ]
vincentjava@yahoo.com.tw
b453077a97c2032779a9f82f95ec352f4048fa05
065e4cdb3b79c3697f323cbc3d29a79ca696b47f
/src/stomp/exc.py
d2e6aa7b1c92d9d1e93fd4c0dc3bd58ed9ee7f1b
[]
no_license
sousouindustries/python-stomp
59aaa47884013ebdc3bfb6c7f4756ef3ee03547e
b2de7aa2f1658eaa49bffd977bd1c9630ef58f0c
refs/heads/master
2021-01-10T03:35:04.103347
2016-01-08T16:35:10
2016-01-08T16:35:10
44,618,975
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
class FatalException(Exception): pass class InvalidCommandType(FatalException): pass class MalformedFrame(FatalException): pass class StompException(FatalException): @classmethod def fromframe(cls, frame): return cls(frame) class FrameNotConfirmed(Exception): pass
[ "cochiseruhulessin@gmail.com" ]
cochiseruhulessin@gmail.com
236b411cb4481023898e177f51e21412dc57c3ff
48a7b266737b62da330170ca4fe4ac4bf1d8b663
/molsysmt/form/openmm_Topology/to_openmm_System.py
ec0c582b7538b5b681e118cc0f7c1a1197793d15
[ "MIT" ]
permissive
uibcdf/MolSysMT
ddab5a89b8ec2377f383884c5169d147cab01322
c3d713ba63db24eb8a2426115cf8d9cb3665d225
refs/heads/main
2023-08-08T15:04:16.217967
2023-08-04T05:49:56
2023-08-04T05:49:56
137,937,243
15
3
MIT
2023-06-04T20:27:06
2018-06-19T19:38:44
Python
UTF-8
Python
false
false
1,223
py
from molsysmt._private.digestion import digest @digest(form='openmm.Topology') def to_openmm_System(item, atom_indices='all', forcefield=None, water_model=None, implicit_solvent=None, non_bonded_method=None, constraints=None, switch_distance=None, dispersion_correction=None, ewald_error_tolerance=None)...
[ "prada.gracia@gmail.com" ]
prada.gracia@gmail.com
6a23f800b0642149d86c1b273e549390add95953
09fd456a6552f42c124c148978289fae1af2d5c3
/Greedy/1046.py
38cf41d0ce78d7ec9ca4fb81ad2f34904cf89bd5
[]
no_license
hoang-ng/LeetCode
60b4e68cbcf54cbe763d1f98a70f52e628ab32fb
5407c6d858bfa43325363503c31134e560522be3
refs/heads/master
2021-04-10T11:34:35.310374
2020-07-28T10:22:05
2020-07-28T10:22:05
248,932,393
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
# 1046. Last Stone Weight # We have a collection of stones, each stone has a positive integer weight. # Each turn, we choose the two heaviest stones and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is: # If x == y, both stones are totally destroyed; # If ...
[ "hoang2109@gmail.com" ]
hoang2109@gmail.com
a54e35e05166aadbfab0c2e00094afb31d34ea9e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/38/usersdata/74/15433/submittedfiles/decimal2bin.py
2762553aa515ae3fd3d920e2479efa3f6bf9e8d9
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
# -*- coding: utf-8 -*- from __future__ import division n = input('Digite o numero binario: ') k = n cont = 0 d = 0 while n>1: n = n/10 cont = cont+1 while n>=1: n = n*10 j = n//1 d = d+j*2**cont cont = cont-1 n = n-j print('%d'% d)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f630dbcad916b681dfd873c5ff8309f1c6505c2d
82ed0cacf82da9a89fb65d9ddda6e603070aa639
/reaper/__init__.py
379855b02338d5c05153e42e2ad57c947ba033cc
[ "MIT" ]
permissive
pombredanne/reaper
243dd08e8f570f9493c007face1cf2d4a7413f27
52f64d3e7d9a658df54475973796b48267f5c8a1
refs/heads/master
2021-01-24T03:36:30.781446
2015-11-12T03:48:46
2015-11-12T03:48:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,629
py
""" Reaper Deprecation warnings that turns automatically to Exception once your package version is bumped. """ __version__ = '0.0.1' import warnings import semver import traitlets class DeprecationException(DeprecationWarning):pass class DeprecationReaper: """ Decorator for a function to be deprecated and...
[ "bussonniermatthias@gmail.com" ]
bussonniermatthias@gmail.com
dde1a97b3865fb7a6766da26d1bc744f1ce5fca6
500047f47a6b372fa7ff1e96b11315ee26acf5ef
/Chapter-07/text_ctrl.py
bbf85947f6e09f04be5a8a4f152c8b65751618ee
[]
no_license
ra2003/Tkinter-In-Action
9f3a80bb2cab8dccf78621915f234f80cf79c58d
2a35ae029c2cfabb53adee8dae5fd0a7c6db817f
refs/heads/master
2022-03-02T16:25:26.146299
2019-10-07T06:36:41
2019-10-07T06:36:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
916
py
#!/usr/bin/python3 import tkinter as tk class TextFrame(tk.Frame): def __init__(self, parent): super().__init__() parent.title('Text Entry Example') parent.geometry("300x100") panel = tk.Frame() basicLabel = tk.Label(panel, text="Basic Control:").grid(row=0, colum...
[ "noreply@github.com" ]
ra2003.noreply@github.com
21e477ad9b77ff873b0306759123da5fac5fd96d
3a6d382503e11753dd81b291145847a2eabb8ec6
/experimental/dsmith/lab/autotest/opencl.py
7607641290ba1f03b1ffb994ec921ded7b2218a1
[]
no_license
QuXing9/phd
7e6f107c20e0b3b1de2b25eb99e0b640a4a0bfcf
58ba53b6d78515ed555e40527f6923e28941cc19
refs/heads/master
2022-02-27T03:29:05.126378
2019-10-22T02:46:57
2019-10-22T02:46:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,609
py
#!/usr/bin/env python3 import json import logging import sys from pathlib import Path from typing import List import autotest import cldrive from dsmith.opencl import clsmith from labm8 import crypto class OpenCLTestcase(object): def __init__(self, path: Path): self.path = path @property def src(self): ...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
e82d51daf8991cd5a31f5ce012cfc827ab74503f
a829617f9ad158df80a569dd02a99c53639fa2c6
/test/hep/cut2.py
889f316c9b7b192c2057c2917c3f6a0e06e5ca90
[]
no_license
alexhsamuel/pyhep
6db5edd03522553c54c8745a0e7fe98d96d2b7ae
c685756e9065a230e2e84c311a1c89239c5d94de
refs/heads/master
2021-01-10T14:24:08.648081
2015-10-22T13:18:50
2015-10-22T13:18:50
44,745,881
1
0
null
null
null
null
UTF-8
Python
false
false
2,409
py
#----------------------------------------------------------------------- # imports #----------------------------------------------------------------------- import cPickle import hep.cuts from hep.draw import Line import hep.hist from hep.hist import ezplot from numarray import array, Float32 from random import...
[ "alex@alexsamuel.net" ]
alex@alexsamuel.net
34ca8c73e475540d5a16ca14550bb83107603dd5
7eb67443c603719458f67f7ea369b55c6854bccb
/assignment7/mapper.py
1d63425582c2c6ca752f28a5d700538581efaf32
[ "MIT" ]
permissive
IITDU-BSSE06/ads-demystifying-the-logs-Arafat123-iit
bf85971cb35543734118d744a419baf8b722f886
2c7b9132eab2161162fc7ac0e9761990ffbaea8f
refs/heads/master
2021-08-07T12:51:11.703193
2017-11-08T07:04:34
2017-11-08T07:04:34
109,237,783
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
#!/usr/bin/python import urlparse import sys for line in sys.stdin: data = line.strip().split(" ") if len(data) == 10: a0, a1 ,a2 ,a3 ,a4 ,a5 ,a6 ,a7 ,a8 ,a9= data # path = urlparse.urlparse(a6).path print "{0}\t{1}".format(a5,a5)
[ "noreply@github.com" ]
IITDU-BSSE06.noreply@github.com
887284504418d7fb5752e642ca499b54970ebb22
82352d4737a87f62328aa061853d544820f417f7
/utils/sample_statistics.py
4605586f1da692068bb8f9b2fa3487316847c40c
[]
no_license
zuiyueyin/python-learning-notes
054162c25db881f0f2133088099b5ca217143952
f45f0879cc70eb59de67a270a6ec8dbb2cf8e742
refs/heads/master
2023-05-29T21:50:04.702395
2020-06-09T04:00:19
2020-06-09T04:00:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
# -*-coding: utf-8 -*- """ @Project: python-learning-notes @File : sample_statistics.py @Author : panjq @E-mail : pan_jinquan@163.com @Date : 2019-07-13 15:09:33 """ from utils import file_processing, plot_utils import numpy as np import pandas as pd from modules.pandas_json import pandas_tools ...
[ "panjinquan@dm-ai.cn" ]
panjinquan@dm-ai.cn
feaa2e232a12eb04ca4a8f06a89234c1a1fb0dbc
e34ba843cf682892462aec8b477d4a708968286d
/dlgo/reinforce/experience_test.py
1d6a67e69a72733b4a649f9e599cc802f65cb0df
[]
no_license
mecha2k/mygo
e088e4abff292aa225dd22655ef9032cd89ddabc
db77aeade0ef25b9cd8d0097aff7dd7cc7d78ef6
refs/heads/master
2023-01-21T21:37:57.930762
2020-11-26T14:02:33
2020-11-26T14:02:33
303,343,049
0
0
null
null
null
null
UTF-8
Python
false
false
1,744
py
import unittest import numpy as np from dlgo.reinforce import experience class ExperienceTest(unittest.TestCase): def test_combine_experience(self): collector1 = experience.ExperienceCollector() collector1.begin_episode() collector1.record_decision( state=np.array( ...
[ "mecha2k@naver.com" ]
mecha2k@naver.com
37e9ec85ea551c5a0f77ba61a24f955da77d0426
6b3b61d2c5ba4998e7390c76be87be569c713f7a
/Exercicio_022/desafio_022.py
7091a3a066c9a597d33f70c27ebb69bd37711884
[]
no_license
loc-dev/CursoEmVideo-Python-Exercicios
22a8b4621eb4bd95ddfca2553693eccca4a0786e
9bceec567e653c1fbaa01b9668cd0e7a828e53a9
refs/heads/master
2022-12-02T18:46:18.506684
2020-08-22T20:50:15
2020-08-22T20:50:15
256,840,996
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
# Desafio 022 - Referente aula Fase09 # Crie um programa que leia o nome completo de uma pessoa # e mostre: # - O nome com todas as letras maiúsculas e minúsculas. # - Quantas letras no total (sem considerar espaços). # - Quantas letras tem o primeiro nome. nome = input("Digite o seu nome completo: ") print('') print...
[ "leonardoc.developer@gmail.com" ]
leonardoc.developer@gmail.com
60994e422d1fdc9199f7d90ae6cd7856ef8e3102
c1f60f28cbd74a639dc89b22518ae33765267af4
/ravem/indico_ravem/__init__.py
cbc2ba2885adce70b301cb3a688236fbcc23aee4
[ "MIT" ]
permissive
DalavanCloud/indico-plugins-cern
b0a97dbbd7fb4dc272977b121ec92931ee316ad7
bb67d2fb9e3d24faeeff2b78a5e9bcff52ac5f26
refs/heads/master
2020-04-22T08:58:17.025951
2019-01-21T14:25:08
2019-01-21T14:25:54
170,255,750
1
0
null
2019-02-12T05:08:40
2019-02-12T05:08:40
null
UTF-8
Python
false
false
376
py
# This file is part of the CERN Indico plugins. # Copyright (C) 2014 - 2018 CERN # # The CERN Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; see # the LICENSE file for more details. from __future__ import unicode_literals from indico.util.i18n impo...
[ "adrian.moennich@cern.ch" ]
adrian.moennich@cern.ch
d37b2518c4bf1cc6aac3deab5e80bfaa2e4e17a7
f897f0e594a9157b9e56cee8b24f68bb9c9221f8
/aml_workspace/src/AML/aml_io/src/aml_io/tf_io.py
7edd96ff4f34235b45528fe63e5db611b68b9503
[]
no_license
HDClark94/Honeycomb
b1056a0f8b41312d0a87d5cd80803a2baf613bae
96899e6b362358d0ce1e3671cbc77f30856c80ac
refs/heads/master
2020-03-29T19:48:29.330790
2018-10-22T07:50:01
2018-10-22T07:50:01
150,281,789
0
0
null
null
null
null
UTF-8
Python
false
false
352
py
import tensorflow as tf def load_tf_check_point(session, filename): saver = tf.train.Saver() saver.restore(session, filename) print("Model restored.") def save_tf_check_point(session, filename): saver = tf.train.Saver() save_path = saver.save(session, filename) print("tf checkpoint...
[ "harrydclark91@gmail.com" ]
harrydclark91@gmail.com
202679d52735c93032e4fa601cba695539c3a1ba
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/AaSXX4SKNdZ7mgqK7_14.py
83c2bdb8a06c274f5040c0a84f78e2868910eb94
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
""" Check the principles of minimalist code in the [intro to the first challenge](https://edabit.com/challenge/2XLjgZhmACph76Pkr). In the **Code** tab you will find a code that is missing a single character in order to pass the tests. However, your goal is to submit a function as **minimalist** as possible. Use the...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8ca9448dc3b945debb5c81ca77e931b7ffa80336
683d81b0d0ac10e3782b42f1ea6007124d72a663
/1. Problems/c. Array/a. 1D 2 - Sequence - Split Array into Conscutive Subsequences.py
02ae577f943539e02833f37b9170ed94defdd809
[]
no_license
valleyceo/code_journal
4b5e6fcbd792fedc639f773ca2bbf6725a9b9146
0191a6623e7a467c2c0070c4545358301a5e42ba
refs/heads/master
2022-09-16T17:47:55.343712
2022-09-03T23:46:38
2022-09-03T23:46:38
129,997,935
0
0
null
null
null
null
UTF-8
Python
false
false
2,435
py
# LC 659. Split Array into Consecutive Subsequences ''' You are given an integer array nums that is sorted in non-decreasing order. Determine if it is possible to split nums into one or more subsequences such that both of the following conditions are true: Each subsequence is a consecutive increasing sequence (i.e. ...
[ "ericjkim9@gmail.com" ]
ericjkim9@gmail.com
7192fd53903767f99c7e0de95b447794230dc45d
658849ce4adc682e403631df460d886c21c55146
/pyQt/02_pdfText.py
19a44069fc908e8973ddfdbe273a462d091b29ad
[]
no_license
gsrr/Python
eec6b6d1189a5a08ab913925cc5428e9cac0e4ce
d412a7a40bc7875d2fce58311f099945698569f5
refs/heads/master
2023-02-11T12:36:49.346289
2023-02-01T17:28:52
2023-02-01T17:28:52
40,101,541
0
1
null
null
null
null
UTF-8
Python
false
false
314
py
from PyQt4.QtGui import * import sys app = QApplication(sys.argv) text_file_path = open('02_sample.txt').read() doc = QTextDocument(text_file_path) printer = QPrinter(QPrinter.HighResolution) printer.setOutputFormat(QPrinter.PdfFormat) printer.setOutputFileName('02_sample.pdf') doc.print_(printer)
[ "jerrycheng1128@gmail.com" ]
jerrycheng1128@gmail.com
10b44701f84e0e8b55cff95887fbae486fc399ff
a6fae33cdf3d3cb0b0d458c2825a8d8cc010cd25
/l3/z3/.history/moves_manager_20200522163947.py
86bb3edd1e5a58526cd512533dea3531b6a94f81
[]
no_license
Qabrix/optimization_amh
12aab7c7980b38812ec38b7e494e82452a4176b4
6a4f5b897a4bef25f6e2acf535ba20ace7351689
refs/heads/main
2022-12-28T10:57:00.064130
2020-10-17T22:57:27
2020-10-17T22:57:27
304,983,340
0
0
null
null
null
null
UTF-8
Python
false
false
2,169
py
from random import choice, randint class MovesManager(): def __init__(self, grid=[], start_pos=[], n=0 , m=0): self.n = n self.m = m self.grid = grid self.start_pos = start_pos self.possible_moves = ['U', 'D', 'L', 'R'] def validate_move(self, step, pos=start_pos, grid=...
[ "kubabalicki@gmail.com" ]
kubabalicki@gmail.com
49cff15efb1486afccf82fc66324d9b682b7fe42
1a2828536c57242cd72e96ed887dfea48f250715
/divide_dataset.py
ca7d0a9cba3b47d3402e698566ee56132108c56c
[]
no_license
Frostmoune/FaseSR
2f5f4dd421b2b6e5315d4ee55977015198dff5ff
137837e2c79957f70f4c2546e27733290506459e
refs/heads/master
2020-08-10T18:40:07.722703
2019-10-11T09:28:30
2019-10-11T09:28:30
214,397,691
0
0
null
null
null
null
UTF-8
Python
false
false
3,832
py
from models import networks from data import create_dataloader, create_dataset import argparse import torch from sklearn.cluster import MiniBatchKMeans import os import numpy as np import shutil import pickle if __name__ == '__main__': opt = { 'gpu_ids': [0, 1, 2, 3], 'network_F': { ...
[ "810343087@qq.com" ]
810343087@qq.com
1f0d272239f6f020cfd64030a8469292477a9b34
1800155dcdb48bf956fa423858a8cc20ed27e6cb
/game-of-life.py
97937b7282f8adfcc28d8545dbd7e53f5206f1d9
[]
no_license
gitprouser/LeetCode-3
1cc2d1dbbf439af4b3768da388dafd514cc5432b
530ea79f0377e1fc3fbfb5c5cfe7768159144e57
refs/heads/master
2021-06-06T16:30:14.795093
2016-08-22T21:40:01
2016-08-22T21:40:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,380
py
""" According to the Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway in 1970." Given a board with m by n cells, each cell has an initial state live (1) or dead (0). Each cell interacts with its eight neighbors (horizonta...
[ "tohaowu@gmail.com" ]
tohaowu@gmail.com
416bc0ae6a2a36ec1c764d24e4f594644b0a7bec
13800b7827598e76428a335559b7bf11867ec2f0
/examples/py/binance-fetch-all-trades.py
ac56fca50cf98cd41c5da62c1b4310aafb80abd7
[ "MIT" ]
permissive
ccxt/ccxt
b40a0466f5c430a3c0c6026552ae697aa80ba6c6
e4065f6a490e6fc4dd7a72b375428b2faa570668
refs/heads/master
2023-09-04T03:41:29.787733
2023-09-03T19:25:57
2023-09-03T19:25:57
91,253,698
30,798
8,190
MIT
2023-09-14T21:59:09
2017-05-14T15:41:56
Python
UTF-8
Python
false
false
1,686
py
# -*- coding: utf-8 -*- import os import sys import csv root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.append(root + '/python') import ccxt # noqa: E402 exchange = ccxt.binance() markets = exchange.load_markets() symbol = 'ETH/BTC' market = exchange.market(symbol) one...
[ "igor.kroitor@gmail.com" ]
igor.kroitor@gmail.com
a7177ae8e232a76fe17c2554369f3bd1be1b0acb
4951103d1a112fbb90059a977582f0642546c4cb
/mitmproxy/__init__.py
9697de8780ca420e99c33da5d4d5716bcbe6ce7d
[ "MIT" ]
permissive
takeratta/mitmproxy
9d114f221e99e7c522fd8bdd51561753c974ae6e
569d275d763f499cce9673fcf118dcc8d59d2eeb
refs/heads/master
2022-01-22T05:23:46.978493
2017-10-22T16:06:44
2017-10-22T16:06:44
108,022,306
0
0
MIT
2019-07-29T09:05:59
2017-10-23T18:26:23
Python
UTF-8
Python
false
false
137
py
# https://github.com/mitmproxy/mitmproxy/issues/1809 # import script here so that pyinstaller registers it. from . import script # noqa
[ "git@maximilianhils.com" ]
git@maximilianhils.com
ded616fccd10707347213e409fa9449335737283
3f576989246ddadc3ae9c9d48007a4866245a5f2
/music_controller/api/urls.py
ae82696637729eec3a595c489018492417018065
[]
no_license
raghavendra-musubi/django-react-house-party-app
d536fbc92508656685e36974a1cec7dca6d4b07d
b90780f993dbd90a66f6b83564854a8e6dbae3cc
refs/heads/main
2023-03-05T14:37:59.809471
2021-02-17T21:52:10
2021-02-17T21:52:10
339,756,020
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
from django.urls import path from .views import RoomView, CreateRoomView urlpatterns = [ path('room/',RoomView.as_view()), path('create-room/',CreateRoomView.as_view()) ]
[ "raghavendra@techis.io" ]
raghavendra@techis.io
c374f75d167d32f720369055aac7da3cfd415292
d5af5459d0a68d8934219cdd516a23d73c7c52fb
/examples/08 functions/search-with-fns.py
39a2639219179d057192c5701011f4efaf2e778a
[]
no_license
flathunt/pylearn
1e5b147924dca792eb1cddbcbee1b8da0fc3d055
006f37d67343a0288e7efda359ed9454939ec25e
refs/heads/master
2022-11-23T23:31:32.016146
2022-11-17T08:20:57
2022-11-17T08:20:57
146,803,991
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
#!/usr/local/bin/python import re import sys UNDERLINE = '=' def get_arguments(): # check for correct number of arguments... if len(sys.argv) != 3: print("Usage: review2-search.py search_terms_file data_file", file=sys.stderr) sys.exit(1) # return... terms_file, data_...
[ "porkpie@gmail.com" ]
porkpie@gmail.com
3b3b79f20e26193d04e460d59f4bf45b4d13b244
5453dee97da45be8e316150a65d3308c408dd3c7
/backend/satchel_wallet_24918/urls.py
8241ee333f54e43e7463188a70a915a993844224
[]
no_license
crowdbotics-apps/satchel-wallet-24918
22d4599b199e99297a3ccf2236917b951db9fe38
524e2432f97334bc25760aa3c18e464f972998a0
refs/heads/master
2023-03-13T07:56:43.770159
2021-03-09T01:11:51
2021-03-09T01:11:51
345,825,869
0
0
null
null
null
null
UTF-8
Python
false
false
2,247
py
"""satchel_wallet_24918 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/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'...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
80d41ea8cf356fba8438c715a87477396443a76b
9d81d0484cd0954abb1a83079904e65c850f88e6
/plugins/tmp/client.py
1d84a120b5721fe9d0e227077192d3c262789c02
[ "MIT" ]
permissive
GPrathap/OpenBCIPython
802db7e1591769e7f3e3ca1f347bf78083d7579f
0f5be167fb09d31c15885003eeafec8cdc08dbfa
refs/heads/master
2021-09-04T01:12:04.106419
2018-01-13T21:52:49
2018-01-13T21:52:49
82,319,921
1
2
null
null
null
null
UTF-8
Python
false
false
593
py
import json import cPickle as pickle import socket import sys # Create a UDP socket sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) server_address = ('localhost', 5678) message = [45,67,89] try: data_string = json.dumps(message) # Send data print >>sys.stderr, 'sending "%s"' % data_string s...
[ "ggeesara@gmail.com" ]
ggeesara@gmail.com
1a9bb4a9ec638420d1a783e974812f7852f907a5
9b96c37db1f61065094d42bc5c8ad6eb3925961b
/level1/touching_keypad.py
2df7bd27291cf9f98825fbcaf987970825dc0d85
[]
no_license
Taeheon-Lee/Programmers
a97589498c866c498c1aa9192fdf8eec9f8e31f4
c38b1c7dc4114c99191b77e5d19af432eaf6177e
refs/heads/master
2023-07-09T21:10:25.064947
2021-08-30T05:17:49
2021-08-30T05:17:49
394,327,802
0
1
null
null
null
null
UTF-8
Python
false
false
3,851
py
"카패드 누르기" # 문제 링크 "https://programmers.co.kr/learn/courses/30/lessons/67256" dic_loc = {"left":[1,4,7],"right":[3,6,9],"middle":[2,5,8,0]} # 위치 딕셔너리 dic_dis_2 = {1:1,2:0,3:1,4:2,5:1,6:2,7:3,8:2,9:3,0:3,'*':4,'#':4} # 2 키버튼...
[ "taeheon714@gmail.com" ]
taeheon714@gmail.com
9fc68de1b0bedb730f5d41555ddc9324c38376a3
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/sagemaker_write_2/code-repository_create.py
5da5051aff1f842a5568c68ab8c4d651925c6d51
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,391
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_two_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/create-code-repository.html if __name_...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
a4d8767d31d8277c1bad4b172829568c721c2d11
130a98632d2ab4c171503b79e455b7aa27a1dda4
/models/official/modeling/optimization/configs/learning_rate_config.py
520a0b96141526382f8e29e733505d62273d5a1f
[ "Apache-2.0", "MIT" ]
permissive
aboerzel/German_License_Plate_Recognition
d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787
6fc53292b1d3ce3c0340ce724c2c11c77e663d27
refs/heads/master
2023-01-30T18:08:37.339542
2023-01-07T07:41:36
2023-01-07T07:41:36
245,586,430
34
12
MIT
2023-01-07T07:41:37
2020-03-07T07:16:51
Python
UTF-8
Python
false
false
7,705
py
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "andreas.boerzel@gmx.de" ]
andreas.boerzel@gmx.de
03b84161a9f04f4dc964e751a7e9211dfacfe61b
9fa8c280571c099c5264960ab2e93255d20b3186
/algorithm/mobo/solver/parego/parego.py
490b74696692c48610a556675780573a6df09a4e
[ "MIT" ]
permissive
thuchula6792/AutoOED
8dc97191a758200dbd39cd850309b0250ac77cdb
272d88be7ab617a58d3f241d10f4f9fd17b91cbc
refs/heads/master
2023-07-23T16:06:13.820272
2021-09-08T14:22:18
2021-09-08T14:22:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,560
py
import numpy as np from ..base import Solver from pymoo.optimize import minimize from pymoo.algorithms.so_cmaes import CMAES from pymoo.decomposition.tchebicheff import Tchebicheff from .utils import ScalarizedEvaluator from multiprocess import Process, Queue def optimization(problem, x, weights, queue): ''' ...
[ "yunsheng@mit.edu" ]
yunsheng@mit.edu
78a6f5a2d7d2673a30b6fdfc1170f493c07e7a3d
87eb72edb890c22cc230a3e5511a4d745f2e6f72
/evaluation/workflow/utils.py
b1a72074d62716c97d62f632372232bdb527a091
[ "MIT" ]
permissive
QuantumMisaka/GLUE
a16c84ec9978daa75117f607b06c1d52259c5d13
e84cb6483971dcb1e2485080f812899baaf31b5b
refs/heads/master
2023-07-27T17:53:51.720504
2021-09-14T08:21:45
2021-09-14T08:21:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,301
py
r""" Utility functions for snakemake files """ # pylint: disable=missing-function-docstring, redefined-outer-name from functools import reduce from operator import add from pathlib import Path def conf_expand_pattern(conf, placeholder="null"): expand_pattern = "-".join(f"{key}:{{{key}}}" for key in conf) re...
[ "caozj@mail.cbi.pku.edu.cn" ]
caozj@mail.cbi.pku.edu.cn
4414de7c5cbc56534a03fc689dfd90f5e8a113b2
7952f66758b685f4bf045c7eb28efa3a22412a89
/HackerRank/sol5-BigSorting.py
88a72735750e92995e64feed6799a635fc038d8a
[]
no_license
PingPingE/Algorithm
b418fa13528c27840bb220e305933800c5b4c00a
89a55309c44320f01d2d6fe5480181a4c5816fd2
refs/heads/master
2023-08-31T01:43:09.690729
2023-08-27T13:12:22
2023-08-27T13:12:22
172,465,200
1
0
null
null
null
null
UTF-8
Python
false
false
546
py
#!/bin/python3 import math import os import random import re import sys def sol(arr): return [a for a in sorted(arr, key= lambda x: [len(x),x])]#각 숫자의 길이 정보 추가 if __name__ == '__main__': unsorted = [ input() for _ in range(int(input()))] for s in sol(unsorted): print(s) #드디어 성공!! #하지만 discussions...
[ "ds03023@gmail.com" ]
ds03023@gmail.com
860c310e893e8bb4727c39195f129cd71807aabb
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/sample/str_cat-135.py
d0cec0551a65ecaa83019d37eaa5fd104c69b8f3
[]
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
280
py
a:str = "Hello" b:str = "World" c:str = "ChocoPy" def cat2(a:str, b:str) -> str: return a + b def cat3(a:str, b:str, c:str) -> str: return a + b + c print(cat2(a, b)) print(cat2("", c)) print($ID(a, " ", c)) print(len(a)) print(len(cat2(a,a))) print(len(cat2("","")))
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
3eb38bf3600a44172b0241a3218341a0d711cdea
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03732/s795942587.py
80267c847271bc1bc6a9c984f1299245239a189a
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,363
py
# https://atcoder.jp/contests/abc060/tasks/arc073_b # 典型的なナップサック。だけど配列が大きいので素直に実装するとTLEになる # 成約により、w1以上は必ず前のjを見ることに注意するとテーブルのサイズがぐっと減ることに気がつくがこれを実装するのはなかなかめんどくさそう。 # defaltdictを利用した再帰メモ化なら比較的実装可能では? import sys sys.setrecursionlimit(1 << 25) read = sys.stdin.readline def read_ints(): return list(map(int, read().s...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9046a3da2df23840c71d7b015bc6bd1ebb645ffe
070ede418be70e376da2fd1ed18a567098c951c9
/junk/src/libs/alphavantage/windowed_dataset.py
6599e7882ed075cb2d742f3861492b2d5ba1fcee
[]
no_license
jmnel/neuralsort
b647f745c7c7e33f4d79400493fb974aeb818426
9efbeac8c8c98895f2bf930e33d45ebfeffb54c7
refs/heads/master
2020-12-30T03:13:18.135533
2020-09-21T02:51:40
2020-09-21T02:51:40
245,709,197
2
1
null
null
null
null
UTF-8
Python
false
false
1,444
py
import sys from pathlib import Path sys.path.append(str(Path(__file__).absolute().parents[1])) from random import randint from pathlib import Path import torch from torch.utils.data import Dataset import numpy as np from pprint import pprint from db_connectors import SQLite3Connector class WindowedDataset(Dataset)...
[ "jmnel92@gmail.com" ]
jmnel92@gmail.com
6429729d36074089835ef04f458ea4cf6e124765
5f4aab3f1aef88e57bf1676af6ee4d7fd0ec4f08
/src/SConscript
bc3d26df08583e242278f4869e8687651f95b506
[ "BSD-3-Clause" ]
permissive
chunkified/kl-iostream
38167841c781c0052c08c1a5342da31592b6ba81
b9f4c90b09e0b353971a35d8adc779822e186f03
refs/heads/master
2021-01-20T09:41:30.729656
2014-05-07T08:03:41
2014-05-07T08:03:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
855
# # Copyright 2010-2014 Fabric Software Inc. All rights reserved. # Import('parentEnv', 'kl2edk', 'kl', 'extSuffix') extName = 'kliostream' env = parentEnv.Clone() env.Append(CPPPATH = [env.Dir('.').abspath]) sources = [ env.File('kliostream.fpm.json'), env.File('kliostream.codegen.json') ] sources += env.Glob('...
[ "helge.mathee@fabricengine.com" ]
helge.mathee@fabricengine.com
e33fa54f4a66204c553c8ba94a758e368c1d509b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03606/s347687358.py
de597f3f689f815591d9348faf868bf8955f2a95
[]
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
803
py
import sys, re, os from collections import deque, defaultdict, Counter from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians from itertools import permutations, combinations, product, accumulate from operator import itemgetter, mul from copy import deepcopy from string import ascii_lowercase, ascii_upper...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
843ed043d892d76779ec0a0ceb2832bd406da3c6
6fa0c051f742c3f9c99ee2800cd132db5ffb28c7
/src/Collective/forms.py
ff624db36622f3fa0e9d6b70808263ea96555afe
[]
no_license
MCN10/NXTLVL
9c37bf5782bfd8f24d0fb0431cb5885c585369b0
76d8818b7961e4f0362e0d5f41f48f53ce1bfdc5
refs/heads/main
2023-06-02T13:51:34.432668
2021-06-02T14:19:21
2021-06-02T14:19:21
328,625,042
1
0
null
2021-06-16T10:16:17
2021-01-11T10:19:44
Python
UTF-8
Python
false
false
664
py
from django.forms import ModelForm from .models import * class CollectiveOrderForm(ModelForm): class Meta: model = CollectiveOrder fields = '__all__' exclude = ['customer', 'transaction_id'] class CollectiveOrderItemsForm(ModelForm): class Meta: model = CollectiveOrderItem fields = '__all__' class Coll...
[ "mcn10.foxx@gmail.com" ]
mcn10.foxx@gmail.com
2454d230d571ade8339803b76c3950c86b824968
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/StudentProblem/10.21.9.70/2/1569574502.py
e1c6a7512ff955c929417dcb142233ae751ca36e
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
4,040
py
import functools import typing import string import random import pytest ## Lösung Teil 1. a = 123 b = list(str(a)) print (b) def is_palindromic(n): """ Funktion testet ob eine positive ganze Zahl n>0 ein Palindrom ist. Definition Palimdrom: Eine natürliche Zahl ist ein Palindrom, falls die Ziffernfo...
[ "lenni.elbe@gmail.com" ]
lenni.elbe@gmail.com
6950bd92117c53aac7dea84e5af24b34e63e4288
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/gui/wgnc/actions.py
d0262b6d2850bb671b76223b5c7361d4da1ffa7e
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
5,812
py
# 2015.11.18 11:57:06 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/wgnc/actions.py import BigWorld from adisp import process from debug_utils import LOG_CURRENT_EXCEPTION, LOG_ERROR, LOG_WARNING, LOG_DEBUG from gui.game_control import getBrowserCtrl from gui.shared.utils.decorators import ReprInj...
[ "info@webium.sk" ]
info@webium.sk
e5aec4b02d12cbe033e4c663271b013101e6589c
57c64723003e8228338b4d2314cb12c011c0f169
/deprecated/levelset.py
7f6b54b83ce38e09ccd85e165b0b22027acc04d8
[]
no_license
gmaher/tcl_code
d02fa0cafb9aa491f1d5d6197cd94fd9d7dbd37c
13c18dcdbe265490b3a47916cb22d904d79da54f
refs/heads/master
2020-04-03T22:03:36.024349
2017-05-12T21:35:58
2017-05-12T21:35:58
56,552,391
0
1
null
null
null
null
UTF-8
Python
false
false
2,287
py
import SimpleITK as sitk from utility import * import plotly as py ########################### # Set some input parameters ########################### sliceid = 50 impath = '/home/marsdenlab/Dropbox/vascular_data/OSMSC0006/OSMSC0006-cm.mha' xstart = 200 ystart = 10 dim = 64 sigma = 0.1 seedx = dim/2 seedy = dim/2 ##...
[ "gmaher2@hotmail.com" ]
gmaher2@hotmail.com
f5b03bd3ee32d9828c0d98b5d4816615fc75d3ec
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_21190.py
3a5c164eb892a8ba8703cc71a1a8a76d07736d16
[]
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
175
py
# Beautiful Soup conversion of Unicode characters to HTML entities from bs4 import BeautifulSoup soup = BeautifulSoup(html_doc) print(soup.prettify(formatter="html"))
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
59fd1d2c4e96308cb0779dd99f018e612155737c
94724578994ab1438dcefb51b7ef4d8570da5d4c
/z42/z42/lib/heartbeat.py
0abfd51795aeb2616810c5976bd73069d5e46a41
[]
no_license
PegasusWang/collection_python
6648d83203634abf44fd42c0b37b0bf7cc406d8f
9ef019a737a0817860d3184924c67a0833bd1252
refs/heads/master
2023-09-01T23:15:39.813635
2023-08-24T06:46:12
2023-08-24T06:46:12
43,693,872
130
90
null
2021-04-26T15:12:55
2015-10-05T15:28:15
JavaScript
UTF-8
Python
false
false
1,422
py
#coding:utf-8 import os from threading import Timer import socket import sys import requests from datetime import datetime def sendmail(to, subject, html): url = 'https://sendcloud.sohu.com/webapi/mail.send.xml' params = { 'api_user': 'postmaster@42.sendcloud.org', 'api_key' : 'kMCzqBPv', ...
[ "tianma201211@gmail.com" ]
tianma201211@gmail.com
b86130502764734456319cc9163ee400ecd16c61
99ca151c59afd9c0e7091b6919768448e40f88a2
/numpy_ex1.py
88f8860666a2f9c6e91be892b051a4713d8161c4
[]
no_license
zainabnazari/Python_note
1b6a454f6e7b3aca998d87a201823a600ec28815
3beb52beb3a0ebe17a6ac8c5695670e9dde59269
refs/heads/main
2023-02-10T22:32:33.160428
2021-01-12T18:36:54
2021-01-12T18:36:54
304,724,221
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
# file name: numpy_ex1.py list1=[1,2,3,4] list2=[1,2,3,4] list3=[[1,2,3,4],[1,2,3,4]] #print("list1*list2= ",list1*list2) # this will give error, the operation of multiplication on lists is not defined! print("list1+list2= ",list1+list2) print("list3+list1= ",list3+list1) import numpy as np numpyarray1=np.array([1,2,3,...
[ "nazari.zainab@gmail.com" ]
nazari.zainab@gmail.com
3bdb764fcca8a052da1946ee71d5ca3a8d849cd5
eca0530054fcae936bf6b4b9aaf2fa5201d45588
/final/login.py
a59d31d84d2a2881987fa8bd2c10e8450e96de21
[]
no_license
benaka-tech/sringeri
d2a0e628485c9c221f753de345c4cb31e03c0f3e
99b334e8b84c00a6160749dc7964a3741021c10d
refs/heads/main
2023-03-15T13:57:14.780184
2021-03-12T10:52:49
2021-03-12T10:52:49
347,124,434
0
0
null
null
null
null
UTF-8
Python
false
false
6,138
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'login.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 import QtCore, QtGui,...
[ "cjayanth35@gmail.com" ]
cjayanth35@gmail.com
a7e045ed5e51609b50acf24a6e689a58e64dd02e
635bac115b708864707bbc9a684ce274e88d33a7
/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/canonicalize/__init__.py
1687704b4b97f78d586f0b29853dc7ff904e5baf
[]
no_license
iglunix/WebKit
131807b5c24f1644d8a5d2ffece440bf1b1ed707
92e63de4a92736360ecfd491a3e0e3b28f753b75
refs/heads/main
2023-07-03T08:30:16.089008
2021-03-30T17:34:53
2021-03-30T17:34:53
353,087,887
1
0
null
2021-03-30T17:36:18
2021-03-30T17:36:17
null
UTF-8
Python
false
false
6,750
py
# Copyright (C) 2020, 2021 Apple Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and...
[ "jbedard@apple.com" ]
jbedard@apple.com
c7339fef2a47d86a6fbcf65ffa3761ad4a3d38bd
0e8dd5901b1f98934c44a85b133eb7ca6f44b4b9
/osr2mp4/ImageProcess/PrepareFrames/RankingScreens/ModIcons.py
c87a50b7cd88872d95e0d5011ce4159e07f419f2
[]
no_license
Hazuki-san/osr2mp4-core
dbd2f4d44a3d0e90974214c97b434dcbb2eedd18
83dc5c47bc73dcb0b4d4b6a5ae1924771c13c623
refs/heads/master
2022-11-24T13:41:15.703261
2020-07-03T14:00:54
2020-07-03T14:00:54
279,099,127
1
0
null
2020-07-12T16:02:35
2020-07-12T16:02:34
null
UTF-8
Python
false
false
676
py
from osrparse.enums import Mod from ...PrepareFrames.YImage import YImage selectionmod = "selection-mod-" def prepare_modicons(scale, settings): modnames = { Mod.Perfect: "perfect", Mod.Autopilot: "pilot", Mod.Relax: "relax", Mod.SpunOut: "spunout", Mod.Flashlight: "flashlight", Mod.Hidden: "hidden", ...
[ "snkraishin87@gmail.com" ]
snkraishin87@gmail.com
1074bb30ddb6ffd71876e31fdc25fe977ac16661
1a04e02811c844ecf53cc041b104667e5c987a09
/vgrabber/model/grade.py
4e1a3f467bfe686db281ef1013fcefb6f3d90834
[]
no_license
janjanech/vzdelavanieGui
dff17add6e6946063597d4c1eba5d6d76b6f5374
b2015f41f7cb1be1ecccf1c4778a91f43f8fba12
refs/heads/master
2021-10-24T16:21:24.911817
2019-01-15T17:03:49
2019-01-15T17:03:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
from enum import Enum, auto from .files import FileList from .finalexam import FinalExam class Grade(Enum): A = auto() B = auto() C = auto() D = auto() E = auto() FX = auto() class StudentGrade: final_exam: FinalExam grade: Grade points: float files: FileList def __init...
[ "janik@janik.ws" ]
janik@janik.ws
0a466df321d2357b667e78d7b6f0c6b7799c7321
8c57a6e0f607fc5b0a1d601e4fa5d8e621d73dcc
/Sorting_algorithms/benchmark_sorting.py
6d248cbcf52daef95addfe19a1415d699e8c6193
[]
no_license
anoubhav/Data-Structures-and-Algorithms
eb3b0edd7df64e809bfadf41a86f3bf177965cae
d99bac42a86601570255bae85590fc2e485960fc
refs/heads/master
2021-07-15T07:05:42.034648
2020-05-27T15:33:43
2020-05-27T15:33:43
144,583,921
4
1
null
null
null
null
UTF-8
Python
false
false
2,182
py
from selection_sort import selection_sort from insertion_sort_swapping import insertion_sort_swap from insertion_sort_assignment import insertion_sort_assignment from bubble_sort import bubble_sort from merge_sort import merge_sort from quicksort3 import quicksort3 from time import clock import random def create_array...
[ "anoubhav.agarwaal@gmail.com" ]
anoubhav.agarwaal@gmail.com
a184a13a43f1725ecba70739affc5a1f2e1640e3
e58c6f5ae956fe409c475e2745526c4c4451e509
/TestCode/Spiders/scrapytest/logo/logo/settings.py
d7465747e8870ed7cb1f27e7cb0f825f369d7fee
[]
no_license
pangxie1987/uiautomator2
6d67dd3beeaba5ab3efa85bf6b8eabcad70b17b8
9a818e3b9a68ba4006ec393d5ec095ee2d10572d
refs/heads/master
2022-11-22T17:05:00.580781
2021-03-31T05:17:06
2021-03-31T05:17:06
216,848,204
2
2
null
2022-11-22T03:17:30
2019-10-22T15:31:04
Python
UTF-8
Python
false
false
3,404
py
# -*- coding: utf-8 -*- # Scrapy settings for logo project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/latest/topics/d...
[ "lpb.waln@outlook.com" ]
lpb.waln@outlook.com
6b086af83c2477052676f8a6f31b94fa6ff34d25
5d0b6d45c23337d5d074c62081445e9963b92ba8
/src/component_parser/ranges.py
c4ea461f747c57c8eb0212e7df4e8c81ae0fb1c3
[ "MIT" ]
permissive
ghedwards/sublimetext-cfml
f944fb8f8c35b6acca0c4d0fdc8cec4e726442fd
6b0ef8a325a21f0392b79346a5dd47b7c0d58f30
refs/heads/master
2021-08-26T07:06:57.033755
2017-11-13T17:49:47
2017-11-13T17:49:47
111,625,801
0
0
null
2017-11-22T02:21:35
2017-11-22T02:21:34
null
UTF-8
Python
false
false
5,671
py
import re import collections RangeDefinition = collections.namedtuple('RangeDefinition', ['start', 'end', 'child_ranges', 'pop']) BASE_RANGES = [ 'comma', 'semicolon', 'curly_brackets', 'line_comment', 'multiline_comment', 'parentheses', 'square_brackets', 'string_double', 'strin...
[ "jcberquist@outlook.com" ]
jcberquist@outlook.com
cc5dca56154fe17edb6689970d5221ff59f86751
7ef5bb39938e669b5571a097f01d96ee53458ad6
/maximal_rectangle/solution.py
d7dbfe832161fdefa7ae2748e9dfb64f82dc6ddc
[ "BSD-2-Clause" ]
permissive
mahimadubey/leetcode-python
61cd135515b26644197b4736a92a53bb1a5870a6
38acc65fa4315f86acb62874ca488620c5d77e17
refs/heads/master
2020-08-29T09:27:45.232412
2019-10-28T08:06:52
2019-10-28T08:06:52
217,993,547
0
0
BSD-2-Clause
2019-10-28T07:55:38
2019-10-28T07:55:38
null
UTF-8
Python
false
false
1,258
py
class Solution: # @param matrix, a list of lists of 1 length string # @return an integer def maximalRectangle(self, matrix): # Make a list of heights if not matrix: return 0 n = len(matrix) if not matrix[0]: return 0 m = len(matrix[0]) ...
[ "shichao.an@nyu.edu" ]
shichao.an@nyu.edu
9c4c802cf858874d37d665db3ace105775e64f83
8afb5afd38548c631f6f9536846039ef6cb297b9
/MY_REPOS/INTERVIEW-PREP-COMPLETE/Leetcode/215.py
9ea3591e57858d86cf92438005c6cef00ab4ab09
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
976
py
import heapq class Solution: def findKthLargest(self, nums: List[int], k: int) -> int: def quickSelect(low, high, k): i = low for j in range(low, high): if nums[j] <= nums[high]: nums[i], nums[j] = nums[j], nums[i] i += 1 ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
91935e9f77a4d8bc3c373d76ca627484057b389c
53c3462ff265b6273f4a4fa17f6d59688f69def0
/剑指offer/41_FindContinuousSequence.py
d3586055cdb08c6798a50f5d7375e5ac92d8c85a
[]
no_license
17764591637/jianzhi_offer
b76e69a3ecb2174676da2c8d8d3372a3fc27b5c4
27e420ee302d5ab6512ecfdb8d469b043fb7102d
refs/heads/master
2023-08-03T01:32:51.588472
2019-10-13T07:56:21
2019-10-13T07:56:21
197,692,548
2
0
null
null
null
null
UTF-8
Python
false
false
740
py
''' 他在想究竟有多少种连续的正数序列的和为100(至少包括两个数)。 没多久,他就得到另一组连续正数和为100的序列:18,19,20,21,22。 现在把问题交给你,你能不能也很快的找出所有和为S的连续正数序列? ''' class Solution: def FindContinuousSequence(self, tsum): # write code here res = [] for i in range(1,int(tsum/2)+1): for j in range(i,int(tsum/2)+2): ...
[ "17764591637@163.com" ]
17764591637@163.com
4c55379b54e9cc451df5d9f8c31bbba8c65872df
e72265a8f523cd76e75ac3832e3236917746c96a
/dawp2020/hy-data-analysis-with-python-2020/part01-e06_triple_square/src/triple_square.py
3e16029c04371d878c0a48f86024b73b5e491f6b
[ "MIT" ]
permissive
ored95/data-analysis-course
9bde67f489a16b94f376427331a24efc330877ed
f61a953769b8e7c502f2bec28158ec1bd344f72a
refs/heads/main
2023-04-07T05:19:22.044343
2021-03-30T10:25:52
2021-03-30T10:25:52
346,290,289
1
2
null
null
null
null
UTF-8
Python
false
false
328
py
#!/usr/bin/env python3 def triple(x): return 3 * x def square(x): return x ** 2 def main(): for x in range(1, 11): x2 = square(x) x3 = triple(x) if x > 3: break print("triple({0})=={1} square({0})=={2}".format(x, x3, x2)) if __name__ == "__main__": ...
[ "stepup.ored@gmail.com" ]
stepup.ored@gmail.com
7572a60f3a8fa50ee798286f14595c2f7f470535
99d7765da35926279c4a4fd7313d55908786f4b8
/1/3/13458/13458.py
6ec1bfd94fbbe36f57727f20730dcf70cbc1c8e3
[ "MIT" ]
permissive
chr0m3/boj-codes
b8294c5d4d10a5af25b5276427bccd74d0866ef5
d71d0a22d0a3ae62c225f382442461275f56fe8f
refs/heads/master
2021-08-16T15:24:57.733088
2021-03-22T13:13:10
2021-03-22T13:13:10
91,523,558
3
2
null
null
null
null
UTF-8
Python
false
false
337
py
room = int(input()) people = list(input().split()) a, b = map(int, input().split()) sum = 0 for i in people: if int(i) - a <= 0: sum += 1 continue else: sum += 1 if (int(i) - a) % b: sum += int((int(i) - a) / b) + 1 else: sum += int((int(i) - a) ...
[ "chr0m3@users.noreply.github.com" ]
chr0m3@users.noreply.github.com
bbd400842a93d924ddbd60b272e0bebefb7c0e98
12972f4d9e7de2c38e79ae911f2e7b125965cac9
/virtual/lib/python3.6/site-packages/pip/_internal/commands/show.py
7d714f74c91ba4f1811ca8d37ca6b73ce58d95b4
[ "MIT" ]
permissive
Michellemukami/pitch
b33d0de81cc2a0dfe70ddc1e91affc88af63ff2b
aebb7736d18766343a5a295de0782aa175245c35
refs/heads/master
2022-10-22T03:55:33.364628
2019-08-07T10:15:10
2019-08-07T10:15:10
200,673,234
0
0
null
2022-09-16T18:07:53
2019-08-05T14:38:26
Python
UTF-8
Python
false
false
6,261
py
from __future__ import absolute_import import logging import os from email.parser import FeedParser from pip._vendor import pkg_resources from pip._vendor.packaging.utils import canonicalize_name from pip._internal.cli.base_command import Command from pip._internal.cli.status_codes import ERROR, SUCCESS logger = lo...
[ "you@example.com" ]
you@example.com