blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
470ce8862eb06700eb7ec3afcc26e0ae4b1527eb
fd7ed3266a6f802289508e5721b2bcd354763748
/notification_manager.py
fc2cf1ea95668dd6ad20c23f5b0c8a9269fcf244
[]
no_license
ec500-software-engineering/exercise-1-modularity-jbw0410
817628ca81cb784c6da372ed3637bace4f36180b
9bbc6beb322c245fd4bca1d2d355861fd16d9d98
refs/heads/master
2020-04-22T02:57:27.675676
2019-02-14T19:28:11
2019-02-14T19:28:11
170,068,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
from common_types import MessageUrgency class NotificationManager(object): """ :developer: Josh This class uses urgency to dictate which messaging mediums get used LOW_URGENCY = 0 MEDIUM_URGENCY = 1 HIGH_URGENCY = 2 """ def __init__(self, main_contact): ...
[ "noreply@github.com" ]
ec500-software-engineering.noreply@github.com
4a4353352eab6a8cc98894df3052e0b68d2b8232
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_121/ch35_2020_09_21_13_25_01_007144.py
62b79e7010a777c8f5bf1e3e2107e925f0d9c7cc
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
num=int(input('Digite seu número para adicionar: ')) while num!=0: numero=int(input('Digite seu número para adicionar ou 0 para somar: ')) if numero==0: print(num) break else: num+=numero
[ "you@example.com" ]
you@example.com
2dc0b1f1f82ad169a5d289da8a02dec624e5d2d1
92a619c043e0c26fb65e58619a0e1c5090a9efe0
/Useful_Code_Snippets/pramp_k_messed_array_sort.py
17542c02521c6a1bc4bb97355d7544669599c472
[]
no_license
curieshicy/My_Utilities_Code
39150171f8e0aa4971cfc3d7adb32db7f45e6733
8b14a5c1112794d3451486c317d5e3c73efcd3b5
refs/heads/master
2022-06-22T06:06:39.901008
2022-06-20T16:00:51
2022-06-20T16:00:51
177,379,409
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
''' 0 1 2 3 4 5 6 7 8 9 arr = [1, 4, 5, 2, 3, 7, 8, 6, 10, 9] k = 2 i i ''' import heapq def sort_k_messed_array(arr, k): heap = [i for i in arr[:k + 1]] heapq.heapify(heap) res = [] i = k + 1 while heap and i < len(arr): min...
[ "noreply@github.com" ]
curieshicy.noreply@github.com
2fb286b4006fe0afb28353f2573285435e790b8a
194a1e2ac246c5f9926b014c00d4c733f0cdaf0c
/btcgreen/wallet/did_wallet/did_info.py
553e00112df673b80a38510c0e18345282c7f978
[ "Apache-2.0" ]
permissive
chia-os/btcgreen-blockchain
03e889cd0268284b7673917ab725ad71f980b650
2688e74de423ec59df302299e993b4674d69489e
refs/heads/main
2023-08-29T14:40:11.962821
2021-08-17T06:33:34
2021-08-17T06:33:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
from dataclasses import dataclass from typing import List, Optional, Tuple from btcgreen.types.blockchain_format.sized_bytes import bytes32 from btcgreen.util.ints import uint64 from btcgreen.util.streamable import streamable, Streamable from btcgreen.wallet.lineage_proof import LineageProof from btcgreen.types.blockc...
[ "svginsomnia@gmail.com" ]
svginsomnia@gmail.com
d1f5e089482a623098d9cb6844fe079e8a317992
707d67f58b55cae19d3b1431d3c1fb2d5f283800
/withoutrest/test.py
7440a0d374410355bceeefda45974cbe4c0cced9
[]
no_license
lipun111/API
c52954cfd604ee567e4033ba971ca2f2fd8fb48d
57e66c74ef8e0bb519fe9ba316c1cb2503d901ad
refs/heads/master
2021-01-06T08:16:05.342444
2020-02-23T10:32:49
2020-02-23T10:32:49
241,257,877
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
import requests BASE_URL='http://127.0.0.1:8000/' ENDPOINT='apijson' resp = requests.get(BASE_URL+ENDPOINT) data = resp.json() print('Data From Django Application:') print('#'*50) print('Employee Number:', data['eno']) print('Employee Name:', data['ename']) print('Employee Salary:', data['esal']) print('Employee Addre...
[ "lipunkumarmajhi95@gmail.com" ]
lipunkumarmajhi95@gmail.com
e94e070e67a00687f1e3cae94b5554d4983e1d11
10cb11f83e1c8b51b9d72c28d6259a56ff1a97c8
/samcli/commands/pipeline/init/pipeline_templates_manifest.py
e9729511faa9af0042539a4c326e6ef6b34eece4
[ "Apache-2.0", "BSD-3-Clause", "MIT", "BSD-2-Clause" ]
permissive
aws/aws-sam-cli
6d4411aacf7f861e75e5cf4882a32858797a276d
b297ff015f2b69d7c74059c2d42ece1c29ea73ee
refs/heads/develop
2023-08-30T23:28:36.179932
2023-08-30T21:58:26
2023-08-30T21:58:26
92,205,085
1,402
470
Apache-2.0
2023-09-14T21:14:23
2017-05-23T18:16:23
Python
UTF-8
Python
false
false
2,398
py
""" Represents a manifest that lists the available SAM pipeline templates. Example: providers: - displayName:Jenkins id: jenkins - displayName:Gitlab CI/CD id: gitlab - displayName:Github Actions id: github-actions templates: - displayName: jenkins-two-environment...
[ "noreply@github.com" ]
aws.noreply@github.com
d2ad9b7101aa89fa36b056759a88442ffeb4d1d3
349949e6652378606e60a72263ad8afd32a59259
/debit_credit_note/wizard/account_invoice_debit.py
7557809b36c35d21848e4dd7760868df84e45d21
[]
no_license
Parkash067/custom_ci_addons
54180c68ab95dd0f0ed49b9caae10f7e2b950425
491f8783cc7c1ff98e2648994b9320cefa4c327b
refs/heads/master
2021-04-12T10:02:18.091495
2018-07-22T20:50:09
2018-07-22T20:50:09
126,322,636
1
1
null
null
null
null
UTF-8
Python
false
false
12,468
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 Affero ...
[ "pk_bscs@yahoo.com" ]
pk_bscs@yahoo.com
ce7e0ede156a3e7de7e03da065961056d48b7863
148d623f5c85e8bb4cb736c1f20dfa6c15108ee0
/notebooks/cross_validation_ex_01.py
170688985da17b8a32c3299bb15f65b29d117fe5
[ "CC-BY-4.0" ]
permissive
castorfou/scikit-learn-mooc
996cec1a8c681c4fb87c568b2fa62d9ce57518f9
235748eff57409eb17d8355024579c6df44c0563
refs/heads/master
2023-06-02T16:31:26.987200
2021-06-24T09:54:56
2021-06-24T09:54:56
369,466,156
1
0
CC-BY-4.0
2021-05-21T08:24:07
2021-05-21T08:24:06
null
UTF-8
Python
false
false
6,263
py
#!/usr/bin/env python # coding: utf-8 # # 📝 Exercise M2.01 # # The aim of this exercise is to make the following experiments: # # * train and test a support vector machine classifier through # cross-validation; # * study the effect of the parameter gamma of this classifier using a # validation curve; # * study ...
[ "guillaume.ramelet@gmail.com" ]
guillaume.ramelet@gmail.com
068373acc18149e0bd38c83af1aff1cc0290a92b
519ffdab70c5cddc81da66af4c3ddd4007e637bc
/src/midterm/exam.py
0dae271ee20bc47d14f446ea449af8dc42852649
[ "MIT" ]
permissive
acc-cosc-1336/cosc-1336-spring-2018-Aronpond
6b55ce38943117015a108b8a4544a22346eef670
b37a6be8c0b909859ccf5ac2ce5eaf82c4ba741b
refs/heads/master
2021-05-11T09:14:22.013454
2018-05-09T22:27:24
2018-05-09T22:27:24
118,071,080
0
0
MIT
2018-05-07T06:09:48
2018-01-19T03:22:41
Python
UTF-8
Python
false
false
3,079
py
''' 5 points Create a function named get_miles_per_hour with parameters kilometers and minutes that returns the miles per hour. Use .621371 as conversion ratio. Return the string error 'Invalid arguments' if negative kilometers or minutes are given. RUN THE PROVIDED TEST CASES TO VALIDATE YOUR CODE ''' def get_miles_pe...
[ "noreply@github.com" ]
acc-cosc-1336.noreply@github.com
23f9757ad8e9bebd6108e84a02155e77f6b93f00
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/secretsmanager_write_1/secret_create.py
7e5010bb0e9275c9dd9b04a37ca96724ca1518c4
[]
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,892
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_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/secretsmanager/create-secret.html if __name__ ==...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
5a164ae6608208666333aadb44adb89d47eb77e1
e97e727972149063b3a1e56b38961d0f2f30ed95
/test/test_activity_occurrence_resource.py
95329d1bb8176f1da196bd830cac7f467f098361
[]
no_license
knetikmedia/knetikcloud-python-client
f3a485f21c6f3e733a864194c9acf048943dece7
834a24415385c906732437970db105e1bc71bde4
refs/heads/master
2021-01-12T10:23:35.307479
2018-03-14T16:04:24
2018-03-14T16:04:24
76,418,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
# coding: utf-8 """ Knetik Platform API Documentation latest This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com. OpenAPI spec version: latest Contact: support@knetik.com Generated by: https://github.com/swagger-api/swagger-codeg...
[ "shawn.stout@knetik.com" ]
shawn.stout@knetik.com
282cd019ef9be186971ea4b2b29c2b727caf3c2f
ed454f31cf5a3d2605f275cc83ec82f34f06bb33
/zerver/lib/events.py
d925e7e4d05427eeb4baa0c1793af046fdc88d8f
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
18-2-SKKU-OSS/2018-2-OSS-L5
b62a3ce53eff63ed09395dc1f8296fef089d90e2
190bc3afbf973d5917e82ad9785d01b2ea1773f2
refs/heads/master
2020-04-08T11:44:14.468373
2018-12-11T04:35:30
2018-12-11T04:35:30
159,317,980
3
4
Apache-2.0
2018-12-09T14:14:21
2018-11-27T10:30:18
Python
UTF-8
Python
false
false
34,269
py
# See https://zulip.readthedocs.io/en/latest/subsystems/events-system.html for # high-level documentation on how this system works. import copy import ujson from collections import defaultdict from django.utils.translation import ugettext as _ from django.conf import settings from importlib import import_module from ...
[ "ulla4571@gmali.com" ]
ulla4571@gmali.com
6fc0c48ca6a5e0811c61ffb490b39d781ac8d4f5
eb7c49c58cab51248b249a9985cb58cfefc1cd90
/distillation/distillation.py
1a1c4732cc7e8e884caedf26d93070b2aa130ba0
[]
no_license
kzky/reproductions
5b6c43c12ec085586d812edfa8d79ae76750e397
28fdb33048ea1f7f1dbd8c94612513d4714a6c95
refs/heads/master
2021-01-18T01:59:51.435515
2017-09-10T11:58:21
2017-09-10T11:58:21
68,796,105
1
0
null
null
null
null
UTF-8
Python
false
false
4,196
py
from __future__ import absolute_import from six.moves import range import os import nnabla as nn import nnabla.logger as logger import nnabla.functions as F import nnabla.parametric_functions as PF import nnabla.solvers as S import nnabla.utils.save as save from args import get_args from mnist_data import data_itera...
[ "rkzfilter@gmail.com" ]
rkzfilter@gmail.com
907069c4e874872e63285e89411fa6c7850e9249
49f1dabc455e78716f35240eb0d88bb8d3d51798
/tests/unit/modules/storage/netapp/test_netapp_e_volume.py
fa2503f9326a03bb6a204d427bd715b6c4bbf074
[]
no_license
ansible-collection-migration/netapp.netapp
b4bad4b22081a945e335c29193b7758192715a8d
ce88524a7d260b8a941aaab532a938b514600a26
refs/heads/master
2020-12-18T13:02:18.854497
2020-01-22T13:10:07
2020-01-22T13:10:07
235,393,037
0
0
null
null
null
null
UTF-8
Python
false
false
59,414
py
# coding=utf-8 # (c) 2018, NetApp Inc. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type try: from unittest import mock except ImportError: import mock from ansible_collections.neta...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
3d3247e759523d5a191a42471586868ee3cb0831
69f4d47bef0e3b4150891127717d6f4d52193b47
/sinaSpider/sinaSpider/spiders/sina.py
356db6054c3f6ed71e0e9e53f2492f805c8423ad
[]
no_license
hyhlinux/stu_scrapy
27e45ad10eb9b85aada5ced34d29f00923555bf2
36afdb88f84a82453bf03070ed049599386a83c0
refs/heads/master
2020-06-12T11:55:19.986569
2016-12-10T03:18:37
2016-12-10T03:18:37
75,581,107
0
0
null
null
null
null
UTF-8
Python
false
false
4,378
py
# -*- coding: utf-8 -*- import scrapy import sys import os from sinaSpider.items import SinaspiderItem as SinaItem reload(sys) sys.setdefaultencoding("utf-8") class SinaSpider(scrapy.Spider): name = "sina" allowed_domains = ["sina.com.cn"] start_urls = ["http://news.sina.com.cn/guide/"] def parse(s...
[ "2285020853@qq.com" ]
2285020853@qq.com
954fa3a0875b17570658a68818a3a968463ec410
c1bb9a11278e28d074eb77fc179bf80ccd298f0d
/zinnia/feeds.py
1bf8d3ee7457d59fb389acc7e84e53c01bfee050
[]
no_license
ljarufe/mp100
394f6fbf76837b7fa6abf5de2901faa8c5561008
a68d39a3e3b93c0b81f2893d61773b5a6453d108
refs/heads/master
2021-07-09T23:18:39.722196
2013-10-21T17:21:07
2013-10-21T17:21:07
13,749,228
0
1
null
2020-07-25T20:23:01
2013-10-21T17:14:12
Python
UTF-8
Python
false
false
10,162
py
"""Feeds for Zinnia""" from urlparse import urljoin from BeautifulSoup import BeautifulSoup from django.contrib.auth.models import User from django.contrib.sites.models import Site from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404 from django.utils.feedgenerator import Atom1Fe...
[ "luisjarufe@gmail.com" ]
luisjarufe@gmail.com
a80d8b96674191feb176a2faa0f67317a629e280
e0ae697de14078f97287ad2b917af050805085bc
/swan/utils/plot.py
dc1a1ff5f1ac1d0bf94d888067d3fc84c323d007
[ "Apache-2.0" ]
permissive
nlesc-nano/swan
08204936e597017cff517c9a5b8f41262faba9c1
4edc9dc363ce901b1fcc19444bec42fc5930c4b9
refs/heads/main
2023-05-23T21:50:45.928108
2023-05-09T13:35:58
2023-05-09T13:35:58
191,957,101
15
1
Apache-2.0
2023-05-09T13:36:29
2019-06-14T14:29:57
Python
UTF-8
Python
false
false
2,809
py
"""Miscellaneous plot functions.""" from pathlib import Path from typing import Any, Iterator, List import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from scipy import stats from ..modeller.gp_modeller import GPMultivariate plt.switch_backend('agg') def create_confidence_...
[ "tifonzafel@gmail.com" ]
tifonzafel@gmail.com
224bd1bc8c27e6c4399377783026c3ecac538f61
06813e2a80e35fad2abc334f291ca201dd10a762
/torchTools/detectionv2/loss/centerLoss.py
5a26f9c5ca9c6fe143696fa1ea767cabce9d00f9
[]
no_license
wucng/torchTools
0f912fbdc60a1373e26c6a4775d6b7be934b9f4f
fcabdbc4de4217addd87534c2ef8272e47958581
refs/heads/master
2021-05-21T08:46:24.096012
2020-06-10T02:02:46
2020-06-10T02:02:46
252,623,300
0
0
null
null
null
null
UTF-8
Python
false
false
15,047
py
""" # 结合SSD的思想 # yolov2,v3内置的先念框,以网格左上角为中心,预设置的w,h作为先念框的大小 # 统一都缩减到输入 图像上 # 在结合SSD的方式筛选正负样本(根据IOU计算) try: from .boxestool import batched_nms except: from boxestool import batched_nms """ from .nms_pytorch import nms,nms2 from torch import nn import torch from torch.nn import functional as F import random imp...
[ "gzcl_wcon@126.com" ]
gzcl_wcon@126.com
aa6b4b76ac5f339ebfaaa0326ce457417d479c95
fb8cbebdf034b2f478943752d5443afc82c6eef5
/tuirer/venv/lib/python3.6/site-packages/IPython/testing/tests/test_decorators.py
be8bb30f24658acafa1b8a18bf0f3b6ce66ddae9
[]
no_license
fariasjr/CitiTuirer
f64e0ec93ef088f8140bb0961d2ad4ed3b59448a
deb3f7a9c2d45b8a7f54639037f097b99abdac11
refs/heads/master
2020-03-24T05:10:36.261050
2018-08-01T20:24:30
2018-08-01T20:24:30
142,477,521
0
0
null
null
null
null
UTF-8
Python
false
false
3,903
py
"""Tests for the decorators we've created for IPython. """ # Module imports # Std lib import inspect import sys from IPython.testing import decorators as dec # Third party import nose.tools as nt #----------------------------------------------------------------------------- # Utilities # Note: copied from OInspect...
[ "jornadaciti@ug4c08.windows.cin.ufpe.br" ]
jornadaciti@ug4c08.windows.cin.ufpe.br
c93b63bb6a2ee9bde97722c20735dd3e19260a1f
2be3ad1c6413c9eb74819773e82c9cfe973f2fbb
/mama_cas/cas.py
2057a703a19b10904887a217008626fee552bf60
[ "BSD-3-Clause" ]
permissive
ilCapo77/django-mama-cas
271d706eae24ea87c9280e46e5ddcfb1fd5c3d7f
42ec942c207e5c4e7e40d7bb74551682c2803d81
refs/heads/master
2020-12-28T04:49:05.463591
2016-08-22T16:41:14
2016-08-22T16:41:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,549
py
import logging from django.contrib import messages from django.contrib.auth import logout from django.utils.module_loading import import_string from django.utils.translation import ugettext_lazy as _ from mama_cas.compat import is_authenticated from mama_cas.exceptions import InvalidTicketSpec from mama_cas.exception...
[ "jason.bittel@gmail.com" ]
jason.bittel@gmail.com
6d7ad8317951def58ca9c5faab64df8b4f880b25
ef54d37f8a3303013ca7469871a320d303957ed7
/robo4.2/fusion/tests/RIST/API/Deprecated/OVF2458_Q2_NFR_Ring_Backup_Restore/Daisy_Data.py
5ee611da9574225b303821b27cf89552a579824b
[]
no_license
richa92/Jenkin_Regression_Testing
d18badfcf16bda682dfe7bcbbd66f54a9a27a58d
24a74926170cbdfafa47e972644e2fe5b627d8ff
refs/heads/master
2020-07-12T10:01:59.099137
2019-08-27T12:14:53
2019-08-27T12:14:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,409
py
admin_credentials = {'userName': 'Administrator', 'password': 'Wpst@hpvse123#!'} # Existing Resources from previous test\ ENC1 = "CN754404R9" ENC2 = "CN754406WS" ENC3 = "CN754406WB" Bay = "5" SH = ENC2 + ", bay " + Bay LIG_Exist = "LIG1" EG_Exist = "EG1" # Created "extra" resources LIG_NAME = "BR_LIG" EG_NAME = "BR...
[ "akul@SAC0MKUVCQ.asiapacific.hpqcorp.net" ]
akul@SAC0MKUVCQ.asiapacific.hpqcorp.net
3749352f2804e412ae11dd21cac151c55e754eeb
bda2cafa8a5f0adb702aa618ff18372428ad9f84
/artie.py
5565427bac48805feff8e2e480cc82942fb78ed2
[]
no_license
rogerhoward/artie3000
eb2d5968d9b2fc19cb8ca75836ea4d0911ba3f87
ec2afc6341029b0279b58b917a0e473e7462c5c5
refs/heads/master
2022-02-12T03:29:36.614009
2019-10-23T15:26:50
2019-10-23T15:26:50
177,835,173
1
0
null
2022-02-04T15:11:34
2019-03-26T17:13:53
HTML
UTF-8
Python
false
false
715
py
#!/usr/bin/env python import asyncio import websockets import random, string import simplejson as json def random_id(len=10): return ''.join(random.choices(string.ascii_lowercase + string.digits, k=len)) class Artie(object): def __init__(): pass async def bot(): async with websockets.connect( ...
[ "rogerhoward@mac.com" ]
rogerhoward@mac.com
473c4a2f4ee207e7a6e8c1b283db66b9a56da53c
e4d421593cfff40520c33559028754de3acf7be5
/loki/redis/api.py
d05ad23060a924eaac33c823d5fbc24c55bc7034
[]
no_license
dongzerun/wloki
341d38982d950e526e7039336e4cb32f8cff5fca
e39819a5f5854795bf90f6a37c870f442ac16c60
refs/heads/master
2020-06-21T01:25:23.078936
2016-11-16T16:46:54
2016-11-16T16:46:54
74,812,144
1
1
null
2016-11-26T07:46:03
2016-11-26T07:46:03
null
UTF-8
Python
false
false
17,574
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # jiangchangchun@nosa.me import re import json import requests from torext import params from sqlalchemy import and_, or_ from .models import RedisInstance, CodisInstance from ..db import get_redis from ..base.handlers import APIHandler from ..privilege import require_no...
[ "liningning@wandoujia.com" ]
liningning@wandoujia.com
2c387465d98034a84512b41c9b90e62a486f5c44
05a9e0bb7e33099f94dfc8af53b4837bc5c9d287
/python/small_impls/particle_energy_minimize/energy.py
229e8a9b9ee860b91ef46a307ee5c45819fce34d
[]
no_license
HiroIshida/snippets
999c09efadae80397cb82a424328bb1dbda4915f
f64dcd793184be64682b55bdaee7392fd97a0916
refs/heads/master
2023-09-01T08:18:42.523625
2023-09-01T04:08:20
2023-09-01T04:08:20
207,662,767
7
2
null
2022-08-01T23:20:42
2019-09-10T21:04:01
C++
UTF-8
Python
false
false
2,903
py
import numpy as np from scipy.optimize import OptimizeResult, minimize, Bounds import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import copy import time from typing import Callable, Tuple def compute_distance_matrix(points: np.ndarray): assert points.ndim == 2 n_point, n_dim = points.sha...
[ "spitfire.docomo@gmail.com" ]
spitfire.docomo@gmail.com
7b9ea24050935fa3ba59d49aa6dfd419a7ee5dac
a1615563bb9b124e16f4163f660d677f3224553c
/LI/lib/python3.8/site-packages/astropy/wcs/wcsapi/low_level_api.py
418e38efe4dc325575c8638caa1cb045fccce3b9
[ "MIT" ]
permissive
honeybhardwaj/Language_Identification
2a247d98095bd56c1194a34a556ddfadf6f001e5
1b74f898be5402b0c1a13debf595736a3f57d7e7
refs/heads/main
2023-04-19T16:22:05.231818
2021-05-15T18:59:45
2021-05-15T18:59:45
351,470,447
5
4
MIT
2021-05-15T18:59:46
2021-03-25T14:42:26
Python
UTF-8
Python
false
false
15,474
py
import os import abc import numpy as np __all__ = ['BaseLowLevelWCS', 'validate_physical_types'] class BaseLowLevelWCS(metaclass=abc.ABCMeta): """ Abstract base class for the low-level WCS interface. This is described in `APE 14: A shared Python interface for World Coordinate Systems <https://doi.o...
[ "honey.bhardwaj.18cse@bmu.edu.in" ]
honey.bhardwaj.18cse@bmu.edu.in
64ad7132ad974153f6145736b5dcf757c148bb1b
0d55bde6f4784f6dea9e8e6945d05bbf627e1e7d
/Packs/GSuiteAdmin/Integrations/GSuiteAdmin/GSuiteAdmin_test.py
7e202d339ad3241b43c8c2daba464dd02f2c007f
[ "MIT" ]
permissive
crestdatasystems/content
d7040415431b5d06d1569433a49869afcb0292bd
5f0f00840c39f028dca8377551bbd725d8ee8a2d
refs/heads/master
2023-08-16T19:35:38.150912
2023-07-11T05:59:59
2023-07-11T05:59:59
280,669,011
2
1
MIT
2023-03-10T16:00:35
2020-07-18T14:06:44
Python
UTF-8
Python
false
false
45,957
py
import json from unittest.mock import patch import pytest import demistomock as demisto from GSuiteAdmin import MESSAGES, GSuiteClient, OUTPUT_PREFIX, HR_MESSAGES, Client with open('test_data/service_account_json.txt') as f: TEST_JSON = f.read() MOCKER_HTTP_METHOD = 'GSuiteApiModule.GSuiteClient.http_request' ...
[ "noreply@github.com" ]
crestdatasystems.noreply@github.com
07619507d6a85885836511e0715e4e168a19bafe
fd67592b2338105e0cd0b3503552d188b814ad95
/test/test_models/test_unremovable_entry.py
b845f33b47466443e973f4d1d51dc0fcccaee15e
[]
no_license
E-goi/sdk-python
175575fcd50bd5ad426b33c78bdeb08d979485b7
5cba50a46e1d288b5038d18be12af119211e5b9f
refs/heads/master
2023-04-29T20:36:02.314712
2023-04-18T07:42:46
2023-04-18T07:42:46
232,095,340
5
2
null
null
null
null
UTF-8
Python
false
false
5,051
py
# coding: utf-8 """ APIv3 (New) # Introduction This is our new version of API. We invite you to start using it and give us your feedback # Getting Started E-goi can be integrated with many environments and programming languages via our REST API. We've created a developer focused portal to give your organiza...
[ "integrations@e-goi.com" ]
integrations@e-goi.com
168587159267fcc2bcfa812c45b2ad9b99b148ba
78c3082e9082b5b50435805723ae00a58ca88e30
/03.AI알고리즘 소스코드/venv/Lib/site-packages/caffe2/python/parallel_workers_test.py
b1822ec259538d2302294aeadf78f99766856b06
[]
no_license
jinStar-kimmy/algorithm
26c1bc456d5319578110f3d56f8bd19122356603
59ae8afd8d133f59a6b8d8cee76790fd9dfe1ff7
refs/heads/master
2023-08-28T13:16:45.690232
2021-10-20T08:23:46
2021-10-20T08:23:46
419,217,105
0
1
null
null
null
null
UTF-8
Python
false
false
3,620
py
import unittest from caffe2.python import workspace, core import caffe2.python.parallel_workers as parallel_workers def create_queue(): queue = 'queue' workspace.RunOperatorOnce( core.CreateOperator( "CreateBlobsQueue", [], [queue], num_blobs=1, capacity=1000 ...
[ "gudwls3126@gmail.com" ]
gudwls3126@gmail.com
1afac3048abf80eaca5946d636d71eb80156108e
e3cf1af904b97af7fd35b7e972e5e6a7e13af8d3
/TCPServer/neuroScanToolbox.py
0789676aa01146eccebac44613ee796b150b8df2
[ "MIT" ]
permissive
listenzcc/BCIMiddleware
6da7449562d9128a40708b5d9a8e6f0f94e5c760
80f74731b4df7f6da84c5df0c67e0ca4e6af7102
refs/heads/main
2023-05-05T04:12:09.199424
2021-05-31T03:17:14
2021-05-31T03:17:14
352,538,624
0
0
null
null
null
null
UTF-8
Python
false
false
8,978
py
import time import struct import socket import threading import numpy as np from . import logger class NeuroScanDeviceClient(object): '''NeuroScan Device Client. The communication is in TCP socket, the process is: 1.1. Connect to the device, @connect; 1.2. Send start scan request ...
[ "listenzcc@mail.bnu.edu.cn" ]
listenzcc@mail.bnu.edu.cn
521b2928efcb138c4ef38d26f04b6f9b956f728e
88863cb16f35cd479d43f2e7852d20064daa0c89
/HelpingSantasHelpers/download/eval_code/hours.py
92c418e0a8a4828e94b1d7876b0ac4442d3fda3b
[]
no_license
chrishefele/kaggle-sample-code
842c3cd766003f3b8257fddc4d61b919e87526c4
1c04e859c7376f8757b011ed5a9a1f455bd598b9
refs/heads/master
2020-12-29T12:18:09.957285
2020-12-22T20:16:35
2020-12-22T20:16:35
238,604,678
3
1
null
null
null
null
UTF-8
Python
false
false
4,379
py
import datetime class Hours: """ Hours class takes care of time accounting. Note that convention is 9:00-9:05 is work taking place on the 00, 01, 02, 03, 04 minutes, so 5 minutes of work. Elf is available for next work at 9:05 Class members day_start, day_end are in minutes relative to the day ...
[ "c.hefele@verizon.net" ]
c.hefele@verizon.net
c037677bd40802d525c9b0cc48e7980d0d9370cd
cb73fe89463892c8c147c6995e220f5b1635fabb
/AtCoder Beginner Contest 157/q4.py
2f3997be6ae6197dd3f841423ebfccc58d44d5dc
[]
no_license
Haraboo0814/AtCoder
244f6fd17e8f6beee2d46fbfaea6a8e798878920
7ad794fd85e8d22d4e35087ed38f453da3c573ca
refs/heads/master
2023-06-15T20:08:37.348078
2021-07-17T09:31:30
2021-07-17T09:31:30
254,162,544
0
0
null
null
null
null
UTF-8
Python
false
false
1,430
py
class UnionFind(): def __init__(self, n): self.n = n self.parents = [-1] * n def find(self, x): if self.parents[x] < 0: return x self.parents[x] = self.find(self.parents[x]) return self.parents[x] def unite(self, x, y): x = self.find(x) y...
[ "harada-kyohei-fj@ynu.jp" ]
harada-kyohei-fj@ynu.jp
d637b21e1ece6c029c4c29138a0c0a4fab9eb9c0
e0731ac7bd6a9fcb386d9c5d4181c9d549ab1d02
/desafio81.py
b0763c623e58fc03a19757c78b94ebd4003ba32e
[]
no_license
lportinari/Desafios-Python-Curso-em-Video
3ab98b87a2178448b3e53031b86522558c31c099
cd7662ddfe371e48e5aabc6e86e23dc6337405fb
refs/heads/master
2020-04-29T11:09:25.689901
2019-06-23T23:58:06
2019-06-23T23:58:06
176,087,390
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
"""Crie um programa que vai ler vários números e colocar em uma lista. Depois disso, mostre: A) Quantos números foram digitados. B) A lista de valores, ordenada de forma decrescente. C) Se o valor 5 foi digitado e está ou não na lista.""" lista = [] while True: lista.append(int(input('Digite um valor: '))) ...
[ "noreply@github.com" ]
lportinari.noreply@github.com
b60d9811abfaa3ba27b15660b09b51606387d2df
f907f8ce3b8c3b203e5bb9d3be012bea51efd85f
/cakes_and_donuts.py
79ab95d0266b3498fe901472d27b5c41b4c5c0eb
[]
no_license
KohsukeKubota/Atcoder-practice
3b4b986395551443f957d1818d6f9a0bf6132e90
52554a2649445c2760fc3982e722854fed5b8ab1
refs/heads/master
2020-08-26T15:17:29.344402
2019-10-26T11:14:24
2019-10-26T11:14:24
217,052,829
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
N = int(input()) cnum = 25 dnum = 14 res = 0 for i in range(cnum): for j in range(dnum): amm = 4 * i + 7 * j if amm == N: res += 1 if res > 0: print('Yes') else: print('No')
[ "kohsuke@KohsukeKubotas-MacBook-Air.local" ]
kohsuke@KohsukeKubotas-MacBook-Air.local
0ee14c848c8249d51d714cc4ece8833ee0d8baa6
a7ded5d3d19a98e61a44189cffe3703f7938e0db
/xero_python/payrolluk/models/employee_statutory_sick_leave.py
f19c0b3a4659dd3bb73d7a6d4b8dcc3c663ae293
[ "MIT" ]
permissive
liseekeralbert/xero-python
dfd1076344f763d74f81f701e32600cf88bcc7b2
d27ab1894ecd84d2a9af0ca91583593756b21ab3
refs/heads/master
2022-12-16T07:41:14.331308
2020-09-18T17:12:35
2020-09-18T17:12:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,845
py
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 OpenAPI spec version: 2.3.0 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class EmployeeStatutor...
[ "sid.maestre@gmail.com" ]
sid.maestre@gmail.com
c882d325f55029694257bdc9f8142cef5ca05acf
0c0168a4676bce7453836a7509e7133044aa8975
/byceps/services/page/dbmodels.py
c6d87ca51e5d385a04bb0f4730c934f43332f5b6
[ "BSD-3-Clause" ]
permissive
byceps/byceps
0aad3c4d974f76c6f8c3674d5539a80c9107b97a
eaee2b7fdc08c76c16ddf7f436110e0b5f1812e5
refs/heads/main
2023-09-01T04:03:13.365687
2023-09-01T03:28:18
2023-09-01T03:28:18
40,150,239
44
23
BSD-3-Clause
2023-05-16T18:41:32
2015-08-03T22:05:23
Python
UTF-8
Python
false
false
3,850
py
""" byceps.services.page.dbmodels ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Pages of database-stored content. Can contain HTML and template engine syntax. :Copyright: 2014-2023 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from __future__ import annotations from datetime import datetime from ...
[ "homework@nwsnet.de" ]
homework@nwsnet.de
12ab1ca8d4888e9bc31dde1f5c9c0d2d9e71550c
ebf5c43e530f450d7057823f62cb66fe7013126a
/homebot/modules/ci/projects/aosp/constants.py
911a51dc039330a86e4c07c4e38bfdf29859f1db
[]
no_license
dinhsan2000/HomeBot1
ee58ce35fc20522660d024cb454a478cd25a84a4
a3729d981b2aadeb05fd1da5ed956079ac3105d1
refs/heads/master
2023-06-07T16:38:25.256832
2023-05-26T04:53:51
2023-05-26T04:53:51
343,099,642
0
0
null
2023-05-26T04:55:24
2021-02-28T12:27:23
Python
UTF-8
Python
false
false
313
py
ERROR_CODES = { 0: "Build completed successfully", 4: "Build failed: Missing arguments or wrong building path", 5: "Build failed: Lunching failed", 6: "Build failed: Cleaning failed", 7: "Build failed: Building failed" } NEEDS_LOGS_UPLOAD = { 5: "lunch_log.txt", 6: "clean_log.txt", 7: "build_log.txt" }
[ "barezzisebastiano@gmail.com" ]
barezzisebastiano@gmail.com
5e956a4be4f7164ed845671d2ae9afa55c976131
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/slxos/v17s_1_02/brocade_fcoe_ext_rpc/fcoe_get_login/output/__init__.py
7448cde7e7dce8096c58c337285dce0083bcb99c
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,172
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
3980dfc43f8a80ea5205df2679fb75913c1ac86f
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p3BR/R1/benchmark/startCirq246.py
b790fec452d5179bbb0820b6e56a6a7ce9cf6fef
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
3,399
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=3 # total number=46 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np #thatsNoCode from cirq.contrib.svg import SVGCircuit # Symbols for...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
59fae6464fad58ccfcab0782982ac6ed75f7aa20
e33c95326f6800d435125427a73460a009532a12
/kotti/tests/test_util.py
124bd71b4fdf038cd8d2f2aafb5adcc6c6dff055
[ "BSD-3-Clause-Modification" ]
permissive
stevepiercy/Kotti
839269f6dc1c45645e5d868b0f17e27bea04b5ac
45c1627ae9fedbc24d1b817048e153f4d7a2d06d
refs/heads/master
2021-01-17T21:33:02.795714
2012-03-17T22:06:04
2012-03-17T22:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,134
py
from unittest import TestCase from mock import MagicMock from pyramid.registry import Registry from kotti.testing import DummyRequest from kotti.testing import UnitTestBase class TestNestedMutationDict(TestCase): def test_dictwrapper_basics(self): from kotti.util import NestedMutationDict data ...
[ "daniel.nouri@gmail.com" ]
daniel.nouri@gmail.com
0d7d1a2e5a75a423baf17920318f62326ef3922d
e116a28a8e4d07bb4de1812fde957a38155eb6df
/shuidi.py
9e44887d29f123ec7c6581e5ae7720927105ca78
[]
no_license
gl-coding/EasyPyEcharts
5582ddf6be3158f13663778c1038767a87756216
f9dbe8ad7389a6e2629643c9b7af7b9dc3bfccd5
refs/heads/master
2020-09-29T20:48:46.260306
2019-12-10T12:52:24
2019-12-10T12:52:24
227,119,587
0
0
null
null
null
null
UTF-8
Python
false
false
319
py
#encoding=utf-8 from pyecharts import Liquid liquid =Liquid("水球图示例") arg = 1 if arg == 1: liquid.add("Liquid", [0.6]) liquid.show_config() liquid.render() else: liquid.add("Liquid", [0.6, 0.5, 0.4, 0.3], is_liquid_animation=False, shape='diamond') liquid.show_config() liquid.render()
[ "1451607278@qq.com" ]
1451607278@qq.com
023f6ae6a4a24897cfab217ea9ff439c94ea5592
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-sblp-obt/sblp_ut=3.5_rd=1_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=44/params.py
f73081fbfcea69ca72664c1d6db95d6e68538d5e
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
{'cpus': 4, 'duration': 30, 'final_util': '3.626000', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '1', 'res_nmb': '4', 'res_weight': '0.04', 'scheduler': 'RUN', 'trial': 44, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
96ab5a91a79d6f425b4e374341b5abea30dd9603
715135613fe4030fc265d6ed5903608a2e98811d
/hue/phue.py
d081eb08a6b16c013cbc45fe4a4645192e737710
[ "MIT" ]
permissive
tanyan-tanyan/Trusty-cogs
f10027350e8a9325ff277519a77f1cd74b1f7692
bcdf5f22448bb6741db1775c7df4b2f124e2ca66
refs/heads/master
2022-11-26T04:05:48.665570
2020-07-27T00:49:10
2020-07-27T00:49:10
282,751,933
0
1
MIT
2020-07-26T23:40:03
2020-07-26T23:40:02
null
UTF-8
Python
false
false
63,787
py
#!/usr/bin/python # -*- coding: utf-8 -*- ''' phue by Nathanaël Lécaudé - A Philips Hue Python library Contributions by Marshall Perrin, Justin Lintz https://github.com/studioimaginaire/phue Original protocol hacking by rsmck : http://rsmck.co.uk/hue Published under the MIT license - See LICENSE file for more details...
[ "TrustyJAID@gmail.com" ]
TrustyJAID@gmail.com
e2d024f8f3608a4e08ea97e099b8e312e786e31b
0860284b9a76ac1921c65ea8694dab8c9b2d6eb1
/shop/migrations/0003_item_image.py
6e550bf2d4f303bf92abe55dae13c4465589d7f9
[]
no_license
alphashooter/tms-z30
10dd2f32ab7c9fd150f27883456f5a00f2c2b8fc
6ce7a93e00b52432dfed22d524e2a377fceed619
refs/heads/master
2022-11-21T18:29:37.014735
2020-07-29T19:27:12
2020-07-29T19:27:12
281,730,996
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
# Generated by Django 3.0.8 on 2020-07-17 17:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0002_order_name'), ] operations = [ migrations.AddField( model_name='item', name='image', field=...
[ "a.p.strelkov@gmail.com" ]
a.p.strelkov@gmail.com
1001282a57ffd9fe8fc30ddec023555f6f51e18f
fef8f43025cff430d9aea080885173d9c22b3cb6
/etalia/nlp/migrations/0007_userfingerprint_state.py
a6ea1a7be2e4ec6595a5e55ede3e01cd5c623ca8
[]
no_license
GemmaAA1/etalia-open
30a083141330e227ac1de9855894bfb6e476e3cc
260ce54d2da53c943d8b82fa9d40bb0c0df918a6
refs/heads/master
2023-03-28T03:33:13.771987
2017-10-30T00:55:27
2017-10-30T00:55:27
351,120,827
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('nlp', '0006_auto_20160608_1959'), ] operations = [ migrations.AddField( model_name='userfingerprint', ...
[ "nicolas.pannetier@gmail.com" ]
nicolas.pannetier@gmail.com
fba761f2efbcc2139b8f5aad36b10c495f326002
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/slxos/v17r_2_00/mac/access_list/__init__.py
67b9066f535f1a6930530d79af07eb76648b8b95
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,123
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
c89d3efc23bc0b5fcc1e8a00c036bb63a7b47892
2f63688febd21dc3ae6b19abfa79ad313c820154
/0654_Maximum_Binary_Tree/try_1.py
8c0bfb903b3d382b63155f8803749062365dcbb9
[]
no_license
novayo/LeetCode
cadd03587ee4ed6e35f60294070165afc1539ac8
54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7
refs/heads/master
2023-08-14T00:35:15.528520
2023-07-30T05:56:05
2023-07-30T05:56:05
200,248,146
8
1
null
2022-11-19T04:37:54
2019-08-02T14:24:19
Python
UTF-8
Python
false
false
2,129
py
class Node: def __init__(self, val, l_index, r_index, left=None, right=None): self.val = val self.l_index = l_index self.r_index = r_index self.left = left self.right = right class SegmentTree: def __init__(self, arr): self.root = self.build(arr) def bui...
[ "eric_shih@trendmicro.com" ]
eric_shih@trendmicro.com
24e92581df17f8b0acfef9c6d17c0bd76fe68dcc
36132d1a4a2669775fbf1f86f6c4b1f341c6a85e
/aliyun-python-sdk-edas/aliyunsdkedas/request/v20170801/ListSwimmingLaneGroupRequest.py
2f72af50804a591551a515bfd49d9c3cbd17b700
[ "Apache-2.0" ]
permissive
ghosthgy/aliyun-openapi-python-sdk
0f676e47d0df51d9e0727a0ae00ed9c86fe756f8
eb809a296864f29f8fce6e82adf29fdeedb41c0a
refs/heads/master
2023-03-26T00:49:11.347883
2021-03-25T09:25:14
2021-03-25T09:25:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,552
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
6841fc1c51d3d8f1979c9ba3c3f3f3710cdf8a50
1819b161df921a0a7c4da89244e1cd4f4da18be4
/WhatsApp_FarmEasy/env/lib/python3.6/site-packages/tests/integration/api/v2010/account/usage/record/test_monthly.py
86bba622608f61100272a0416d541f1e3a226cbb
[ "MIT" ]
permissive
sanchaymittal/FarmEasy
889b290d376d940d9b3ae2fa0620a573b0fd62a0
5b931a4287d56d8ac73c170a6349bdaae71bf439
refs/heads/master
2023-01-07T21:45:15.532142
2020-07-18T14:15:08
2020-07-18T14:15:08
216,203,351
3
2
MIT
2023-01-04T12:35:40
2019-10-19T12:32:15
JavaScript
UTF-8
Python
false
false
5,301
py
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from tests import IntegrationTestCase from tests.holodeck import Request from twilio.base.exceptions import TwilioException from twilio.http.response import Response class MonthlyTestCase(Integratio...
[ "sanchaymittal@gmail.com" ]
sanchaymittal@gmail.com
32daf9deafe8d3b0a6f9ae47d1cb9f06a97df5d7
9766c2e479e99cca5bf7cc834c949fc4d5286275
/SRC/common/IO/menuparser.py
b991253676f3cd18d9d14651d625bd780cf3b437
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
UstbCmsPjy/OOF2
4c141e8da3c7e3c5bc9129c2cb27ed301455a155
f8539080529d257a02b8f5cc44040637387ed9a1
refs/heads/master
2023-05-05T09:58:22.597997
2020-05-28T23:05:30
2020-05-28T23:05:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,260
py
# -*- python -*- # This software was produced by NIST, an agency of the U.S. government, # and by statute is not subject to copyright in the United States. # Recipients of this software assume all responsibilities associated # with its operation, modification and maintenance. However, to # facilitate maintenance we as...
[ "lnz5@rosie.nist.gov" ]
lnz5@rosie.nist.gov
7affcc21533613ea034e2ccd858ddcbe1173fcbd
b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4
/toontown/src/golf/BuildGeometry.py
56cbde4b8910179665112162a273d7c82d244497
[]
no_license
satire6/Anesidora
da3a44e2a49b85252b87b612b435fb4970469583
0e7bfc1fe29fd595df0b982e40f94c30befb1ec7
refs/heads/master
2022-12-16T20:05:13.167119
2020-09-11T16:58:04
2020-09-11T17:02:06
294,751,966
89
32
null
null
null
null
UTF-8
Python
false
false
13,234
py
from direct.distributed import DistributedObject from direct.directnotify import DirectNotifyGlobal from toontown.toonbase import ToontownGlobals from pandac.PandaModules import * from math import * import math GEO_ID = 0 def circleX(angle, radius, centerX, centerY): x = radius * cos(angle) + centerX return x...
[ "66761962+satire6@users.noreply.github.com" ]
66761962+satire6@users.noreply.github.com
0b34cc86c76f4247a8f4201fd28777566b4f57b8
9a5dcad85a9bd9ad020ba25577301ffcaf9ed1a3
/scripts/cnes_grace_sync.py
6ad1fd1759774760da55549ba7c0c1dffd6811ac
[ "CC-BY-4.0", "MIT" ]
permissive
yaramohajerani/read-GRACE-harmonics
7c8a6a6788d162bf807321bfc07aacb00a8e32fc
aa48506a64860809249164a9bcaebf679d41f6ff
refs/heads/main
2023-01-24T08:17:52.900192
2020-12-10T00:16:10
2020-12-11T23:00:25
307,516,301
0
0
MIT
2020-10-26T22:06:22
2020-10-26T22:06:22
null
UTF-8
Python
false
false
14,562
py
#!/usr/bin/env python u""" cnes_grace_sync.py Written by Tyler Sutterley (12/2020) CNES/GRGS GRACE data download program for gravity field products http://grgs.obs-mip.fr/grace Downloads the tar file containing the CNES/GRGS GRACE data for a given release Iterates through files to determine if any are not in the ...
[ "tsutterl@uw.edu" ]
tsutterl@uw.edu
be67615eecbd94519a382643f0573620f7f41288
5985dde8b1fd6e1f40bf51ccc9a4759cceff4f5a
/MobileNet/handler.py
2a370fb1f9e8e6d4c98f5e5f8bd9ca067ed4dd04
[]
no_license
johndpope/Session3-FaceRecognition
9297811f337c24b3c5c999a8f31b17c5e4d915d6
66cc77a42b6e85c7e5d967fe660954ff4e097349
refs/heads/master
2022-12-04T09:56:53.323310
2020-08-16T18:03:15
2020-08-16T18:03:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,957
py
try: import unzip_requirements except ImportError: pass import torch import torchvision import torchvision.transforms as transforms from PIL import Image import boto3 import os import io import json import base64 from requests_toolbelt.multipart import decoder print("Import End...") S3_BUCKET = os.enviro...
[ "noreply@github.com" ]
johndpope.noreply@github.com
1554bdd605c0aae62a8a75aebbd755fc93e965bd
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2444/60763/297365.py
38960911bc45bebc5c79af9980fd6a246755bedb
[]
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
458
py
t = (''+input()) s = [] s.append(t[0:t.find('k')-2]) s.append(t[t.find('k'):t.find('t')-2]) s.append(t[t.find('t'):len(t)]) s1 = eval(s[0][s[0].find('['):len(s[0])]) k = int(s[1][s[1].rfind(' '):len(s[1])]) t = int(s[2][s[2].rfind(' '):len(s[2])]) isFit = False for i in range(len(s1)): for j in range(i+1,min(i+k,le...
[ "1069583789@qq.com" ]
1069583789@qq.com
f4319ed7847d2e481fad2b86448abaaccce5248e
87e70b50a582c2bed372e2858438493ee1105905
/Description/extracter.py
26e7fa1f838684647bdef9800d1013df8d4dc72e
[ "MIT" ]
permissive
adi-797/AIAMI
868b96545ffa5ef9ddb214960147c312a956d119
37ea2bf61e85bf879a0f4a1014f2e93b87301582
refs/heads/master
2020-04-10T13:07:43.580065
2017-05-18T22:39:38
2017-05-18T22:39:38
161,041,442
1
0
MIT
2018-12-09T13:19:48
2018-12-09T13:19:48
null
UTF-8
Python
false
false
7,042
py
# -*- coding: utf-8 -*- import numpy as np import scipy.stats from pylab import imshow, show, figure import essentia.standard from utils import config def extractAllDescriptors(signal): """ Extracts the descriptors expected for the analysis of a given audio file. """ described = {} described[...
[ "andimarafioti@gmail.com" ]
andimarafioti@gmail.com
41764b41e79692b1c50cae5f31e2951e9799da89
aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4
/Q05__/29_Minesweeper/test.py
e58826b09c60caa3dfe49e81f51a85d1227372c6
[ "Apache-2.0" ]
permissive
hsclinical/leetcode
e9d0e522e249a24b28ab00ddf8d514ec855110d7
48a57f6a5d5745199c5685cd2c8f5c4fa293e54a
refs/heads/main
2023-06-14T11:28:59.458901
2021-07-09T18:57:44
2021-07-09T18:57:44
319,078,569
0
0
null
null
null
null
UTF-8
Python
false
false
210
py
#!/usr/bin/python from Solution import Solution obj = Solution() A = [["E","E","E","E","E"],["E","E","M","E","E"],["E","E","E","E","E"],["E","E","E","E","E"]] B = [3,0] out = obj.updateBoard(A, B) print(out)
[ "luhongisu@gmail.com" ]
luhongisu@gmail.com
4c7e8d890fdb26a9cb63bf0c0f019cabf548f029
ae33eba00ff1e0742d74948a38a779cabb825a84
/tests/spdx/test_main.py
00e0910044d704a32244bf58fc1231526e67f6f7
[ "LicenseRef-scancode-proprietary-license", "LGPL-3.0-or-later", "LicenseRef-scancode-free-unknown", "LGPL-3.0-only", "MIT" ]
permissive
renovate-tests/poetry
a687672448c4baa1027b2b36bf46c1f9af5107e7
7c9569cd13c151c7682a7bfda0f1ec9e2ff07100
refs/heads/master
2020-12-15T14:13:40.895896
2020-06-30T13:34:46
2020-06-30T13:34:46
233,995,693
0
0
MIT
2020-01-15T11:24:06
2020-01-15T04:07:17
Python
UTF-8
Python
false
false
1,111
py
import pytest from poetry.spdx import license_by_id def test_license_by_id(): license = license_by_id("MIT") assert license.id == "MIT" assert license.name == "MIT License" assert license.is_osi_approved assert not license.is_deprecated license = license_by_id("LGPL-3.0-or-later") asse...
[ "sebastien@eustace.io" ]
sebastien@eustace.io
03f4010173fe4b454467e5826a41e957adbd509e
27ff56afaeff7cf6f38cf457896b50dee90b1397
/test_code.py
eec8fe0efeceeec91ee94e8978ef8d89f7e7c3dd
[]
no_license
romulovitor/Dica_Python_Linkedin
55352bdc7c76c1ce7b88d0e5e36be37bca7dd466
9c1e5cf26681188935e0b3a41070960fe5dfd9b8
refs/heads/master
2023-03-13T04:14:37.778946
2021-03-01T10:43:04
2021-03-01T10:43:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
import socket import sys from geolite2 import geolite2 host = ' '.join(sys.argv[1:]) ip = socket.gethostbyname(host) reader = geolite2.reader() def get_ip_location(ip): location = reader.get(ip) try: country = location["country"]["names"]["en"] except: country = "Unknown" try: ...
[ "ofc.erickson@gmail.com" ]
ofc.erickson@gmail.com
fc06980868a73d533603e5f088b0902c2a59e497
0c4e5d83718644a0698c8a9faf08eab80932403d
/spacy-en_core_web_sm/test_data.py
3bba0e85c799f67adf1912a8d8da079ddba8123e
[ "Apache-2.0" ]
permissive
danielfrg/conda-recipes
8a00f931345fce1d8e0f5f07a78314290c4766d8
1d4f4ae8eba54d007659b359f0c9e0ea2c52eb0a
refs/heads/master
2021-01-01T19:49:46.149994
2019-05-17T04:42:46
2019-05-17T04:42:46
98,701,788
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
import sys import spacy from spacy import util from spacy.deprecated import resolve_model_name def is_present(name): data_path = util.get_data_path() model_name = resolve_model_name(name) model_path = data_path / model_name return model_path.exists() assert is_present('en') is True # Test for english...
[ "df.rodriguez143@gmail.com" ]
df.rodriguez143@gmail.com
40527f639f34417df017ec57ac702370d48eec2b
5af277b5819d74e61374d1d78c303ac93c831cf5
/meta_reward_learning/semantic_parsing/table/wtq/evaluator.py
9be5311c098cdf6e92c6ab57719614b77386feab
[ "Apache-2.0" ]
permissive
Ayoob7/google-research
a2d215afb31513bd59bc989e09f54667fe45704e
727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7
refs/heads/master
2022-11-11T03:10:53.216693
2020-06-26T17:13:45
2020-06-26T17:13:45
275,205,856
2
0
Apache-2.0
2020-06-26T16:58:19
2020-06-26T16:58:18
null
UTF-8
Python
false
false
13,718
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
cb4ebb211a087c41d1a00d5f5749e3a1bf9ef481
27c9b374a75550252ddfe5da400fad891c6de590
/chars/link_scripts/Camera.py
ca10858645dead4a643555b156084f88dd92eff2
[]
no_license
Dynamique-Zak/Zelda_BlenderGame
03065416939deb3ce18007909ccc278c736baad0
0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21
refs/heads/master
2016-08-13T00:12:34.746520
2016-02-19T23:18:27
2016-02-19T23:18:27
49,572,402
30
16
null
null
null
null
UTF-8
Python
false
false
354
py
from bge import logic scene = logic.getCurrentScene() def obstacle(cont): ray = cont.sensors["RayForward"] if ray.positive: hitObj = ray.hitObject if hitObj.name != "Link": cam = scene.objects['MainCam'] logic.camObstaclePosition = ray.hitPosition cam.worldPosition = logic.camObstaclePosition else: ...
[ "schartier.isaac@gmail.com" ]
schartier.isaac@gmail.com
dd6f62558664e5e4b170e264cc8c392da2512c42
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/peering/v20210601/get_connection_monitor_test.py
3a6694d9417c7518103e56ca0869515a10726815
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,852
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
dc07aacdc0cad289a408330ade332418e2a6e981
ddd466457316662a1455bae429740eb3c8411444
/intro/3_6_cond_if_bonus_pints.py
9deed81970a0407735ec582a44c78263e764d6b5
[]
no_license
fingerman/python_fundamentals
9ef46e51d6e9b8328e9c949fa0f807f30bd6e482
1fb604220922530d1171200a3cf3a927c028a6ed
refs/heads/master
2023-01-09T12:02:26.712810
2020-01-22T16:12:32
2020-01-22T16:12:32
151,728,846
0
0
null
2022-12-27T15:34:12
2018-10-05T13:58:10
Python
UTF-8
Python
false
false
197
py
a = int(input()) b = 0 if a <= 100: b = 5 if a > 100: b = 0.2*a if a > 1000: b = 0.1*a if a % 2 == 0: b += 1 if a % 10 == 5: b += 2 print(b) print(a+b)
[ "adamov.george@gmail.com" ]
adamov.george@gmail.com
18b6b603c569eb741010cb429b1f20452ae52845
ee427ddfe0514ec7bc8ebe94013a52bc29385728
/manage.py
86865ec4b74232d772e1bdcc83aadb618dc5418a
[]
no_license
Saviodiow95/django-popup
ed6705bab6f9d2875c9bd274ffca76d399e465a7
12e3f83f08da93abb64d18fe2e228e525914b901
refs/heads/master
2021-05-25T20:37:28.998639
2020-04-07T21:05:38
2020-04-07T21:05:38
253,911,561
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'popup.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
[ "saviodiowflamengo@gmail.com" ]
saviodiowflamengo@gmail.com
ab916be697d2f95c148df57c3d60fd791d1f76dd
ca6efbd1754b4d65ef9595c648b9d766c96abcbe
/douyin_spider/handler/video.py
0a67086353e78e9db4d0f1aa2ac8d7eb91403367
[]
no_license
JaleeLi/douyin_spider
cc30b7bceb62d1440b97de99406b035c0aff9c06
aa3df5b0fddc633d4c6ae21c509514ccb664fbb2
refs/heads/master
2020-05-25T03:52:51.863799
2019-05-16T12:49:00
2019-05-16T12:49:00
187,615,023
1
0
null
2019-05-20T09:59:25
2019-05-20T09:59:25
null
UTF-8
Python
false
false
442
py
from douyin_spider.handler.media import MediaHandler from douyin_spider.models.video import Video class VideoHandler(MediaHandler): """ video handler,handle video item """ async def handle(self, item, **kwargs): """ handle item use VideoHandler :param item: :param kwarg...
[ "344616042@qq.com" ]
344616042@qq.com
46fb77e37f4b85850d94f91b29ec1d63e33535c5
0901a62c11d1ba11df4cee28bb3fa2b32398a7d8
/django_blog/users/views.py
3a24e8b5fc8be5121b2b36f0ec416cbd5d68b871
[]
no_license
mattg317/django_blog
80df4e46b687edf83ddd67e9cbda1f62c62ec6a0
bf60759e252f1f169a8ee26e5fba70c73ecc48fa
refs/heads/master
2022-12-21T21:26:24.401316
2019-03-08T16:16:57
2019-03-08T16:16:57
166,888,718
0
0
null
null
null
null
UTF-8
Python
false
false
1,857
py
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth.decorators import login_required from .forms import UserRegisterForm, UserUpdateForm, ProfileUpdateForm def register(request): if request.method == 'POST': form = UserRegisterForm(request.POST) ...
[ "mattg317@gmail.com" ]
mattg317@gmail.com
9f07ff6a092fb565e50403ae26d8059fc6a6a492
ae81b16cf4242d329dfcb055e85fafe87262cc7f
/leetcode/NoIdea/383. 赎金信.py
20c36c9cacc2ffd270e4a627f23bd2d4438920e1
[]
no_license
coquelin77/PyProject
3d2d3870b085c4b7ff41bd200fe025630969ab8e
58e84ed8b3748c6e0f78184ab27af7bff3778cb8
refs/heads/master
2023-03-18T19:14:36.441967
2019-06-19T02:44:22
2019-06-19T02:44:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
'''给定一个赎金信 (ransom) 字符串和一个杂志(magazine)字符串,判断第一个字符串ransom能不能由第二个字符串magazines里面的字符构成。如果可以构成,返回 true ;否则返回 false。 (题目说明:为了不暴露赎金信字迹,要从杂志上搜索各个需要的字母,组成单词来表达意思。) 注意: 你可以假设两个字符串均只含有小写字母。 canConstruct("a", "b") -> false canConstruct("aa", "ab") -> false canConstruct("aa", "aab") -> true''' # class Solution: # def canC...
[ "zhangyiming748@users.noreply.github.com" ]
zhangyiming748@users.noreply.github.com
816535d45c0c52df62f91b8f07462791b8636d11
0547d1826e99eedb959a3463520d73985a3b844e
/Data Science for Everyone Track/21-Supervised Learning with scikit-learn/01-Classification/06-The digits recognition dataset.py
fbce23254c4a24f165f8aa42379d00b6e1fd15e8
[]
no_license
abhaysinh/Data-Camp
18031f8fd4ee199c2eff54a408c52da7bdd7ec0f
782c712975e14e88da4f27505adf4e5f4b457cb1
refs/heads/master
2022-11-27T10:44:11.743038
2020-07-25T16:15:03
2020-07-25T16:15:03
282,444,344
4
1
null
null
null
null
UTF-8
Python
false
false
2,828
py
''' The digits recognition dataset Up until now, you have been performing binary classification, since the target variable had two possible outcomes. Hugo, however, got to perform multi-class classification in the videos, where the target variable could take on three possible outcomes. Why does he get to have all the ...
[ "abhaysinh.surve@gmail.com" ]
abhaysinh.surve@gmail.com
9ee6c69083ccaf093a1dbc5105d1ea6cc399ede3
0e91030c47071029d978dbfb9e7a30ae6826afe5
/web/web_po/web_po_v4/Common/basepage.py
de7e3e53144ca52b72036ecc9720f8e8233391b4
[]
no_license
liqi629/python_lemon
095983fadda3639b058043b399180d19f899284b
bc5e6e6c92561ba9cec2798b7735505b377e9cd6
refs/heads/master
2023-02-04T00:57:09.447008
2020-12-27T14:46:31
2020-12-27T14:46:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,440
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import logging import time import os from web.web_po.web_po_v4.Common.dir_config import screens...
[ "396167189@qq.com" ]
396167189@qq.com
253f5a0085daaac0ec6ef0174ac93391d02e11f3
5d0ebc19b778ca0b2e02ac7c5d4a8d5bf07d9b23
/astropy/cosmology/tests/test_units.py
130aa03c830c0fba759cb6eddf1ee7ade2ae00a5
[ "BSD-3-Clause" ]
permissive
adivijaykumar/astropy
8ea621f20b9c8363b2701c825c526d650c05258c
0fd7ae818fed3abe4c468170a507d52ef91dc7e8
refs/heads/main
2021-12-03T08:12:33.558975
2021-09-03T15:07:49
2021-09-03T15:07:49
402,863,896
0
1
BSD-3-Clause
2021-09-03T18:25:55
2021-09-03T18:25:54
null
UTF-8
Python
false
false
8,121
py
# -*- coding: utf-8 -*- """Testing :mod:`astropy.cosmology.units`.""" ############################################################################## # IMPORTS import contextlib import pytest import astropy.cosmology.units as cu import astropy.units as u from astropy.cosmology import Planck13, default_cosmology fro...
[ "nstarkman@protonmail.com" ]
nstarkman@protonmail.com
1efcba01d6b7890c5dfab687f6d1b9fd2ee7078e
00453a0be06ecc8760a3c36ea302bc1f047a644f
/convoy/validator.py
71f599c7cbcf201ed971c30366577c93774384e2
[ "MIT" ]
permissive
Nepomuceno/batch-shipyard
40c40e01bb49550eb1090f56cdf3da91b21a1bbb
2d67411257e0501ac4443f44e4d27e4a8262be8d
refs/heads/master
2020-03-18T18:53:47.824023
2018-05-30T05:55:50
2018-05-30T06:04:43
135,121,497
0
0
null
2018-05-28T06:54:56
2018-05-28T06:54:56
null
UTF-8
Python
false
false
3,388
py
#!/usr/bin/env python3 # Copyright (c) Microsoft Corporation # # All rights reserved. # # MIT License # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without...
[ "fred.park@microsoft.com" ]
fred.park@microsoft.com
ad980ce29098e193a27877629a6e43235f3d06e7
19768aa46de8fa5a52639826a80959e65f7b8e66
/authapp/banned.py
2096d5f8efc79aeb3f85391923d07dd43f713383
[]
no_license
hongmingu/macawl
0aff0a0d55acb11f06e979df2dee995941cdd5d0
49acead1290dd977263cb4086a621feed083fc40
refs/heads/master
2020-04-13T02:09:44.228294
2019-02-13T11:24:38
2019-02-13T11:24:38
162,822,145
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
BANNED_PASSWORD_LIST = [ 'password', 'qwerty', 'superman', '123456', '1234567', '12345678', '123456789', '1234567890', '012345', '0123456', '01234567', '012345678', '0123456789', 'macawl', '111111', 'aaaaaa' ] BANNED_USERNAME_LIST = [ 'macawl', 'robots.txt', ]
[ "gmh397@nate.com" ]
gmh397@nate.com
ae9d90732494a776b87eca0fe505628f0a211f2c
8a7ef686efdd9add693986be08d9a1b8f561236e
/core/RestAPI/utils.py
46c1af8a9eb7902cfbec167e5ed9f51ba1307bba
[ "MIT" ]
permissive
thebao/kalliope
3b0cffdcd746f107e4557e53407196eae1194f5e
a820e85ee56c9e3a34e1130e32ccef52cd58e9f9
refs/heads/master
2021-01-13T13:58:46.217018
2016-11-04T11:02:34
2016-11-04T11:02:34
72,927,345
0
0
null
2016-11-05T13:19:11
2016-11-05T13:19:11
null
UTF-8
Python
false
false
1,045
py
from functools import wraps from flask import request, Response from core.ConfigurationManager import SettingLoader def check_auth(username, password): """This function is called to check if a username / password combination is valid. """ settings = SettingLoader.get_settings() return username ==...
[ "nico.marcq@gmail.com" ]
nico.marcq@gmail.com
d48efa115fb2ec6bccb9a0f884cb915557399918
e8d42df817835b5fa83829ac6937887de127faa1
/images6/exif.py
4e1cb31848eda13e9290f99fb92271bf13c288c8
[ "BSD-2-Clause", "MIT" ]
permissive
eblade/images6
98f8dda84b1754ee1a306914dd2cf57a56d251bd
d68f79988a2b195a870efcc0bb368a7de474a2bc
refs/heads/master
2020-04-03T22:04:45.715969
2019-07-29T17:25:57
2019-07-29T17:25:57
59,519,861
0
0
null
2016-11-02T23:23:57
2016-05-23T21:33:37
Python
UTF-8
Python
false
false
1,989
py
"""Helper functions to convert exif data into better formats""" orientation2angle = { 'Horizontal (normal)': (None, 0), 'Mirrored horizontal': ('H', 0), 'Rotated 180': (None, 180), 'Mirrored vertical': ('V', 0), 'Mirrored horizontal then rotated 90 CCW': ('H', -90), 'Rotated 90 CCW': (None, -90), ...
[ "johan@egneblad.se" ]
johan@egneblad.se
6ef7593eaf4523b81bda588bc7f80fcb2b2b1983
a680b681210a070ff6ac3eab4ed3ea5a125991d6
/setup.py
971ef4d637bfcefe9f5b51d97ad073c92ddc4408
[ "BSD-2-Clause" ]
permissive
moonbirdxp/PSpider
bb6da1de6a78d86ee8704b6eb8981773a1a31d8c
4d7238b4ebafd129ecc5dd1095ce1ece313945ec
refs/heads/master
2020-06-22T03:46:17.320420
2019-07-16T03:26:20
2019-07-16T04:44:17
197,624,496
0
0
BSD-2-Clause
2019-10-15T01:04:19
2019-07-18T16:48:09
Python
UTF-8
Python
false
false
502
py
# _*_ coding: utf-8 _*_ """ install script: python3 setup.py install """ from setuptools import setup, find_packages setup( name="spider", version="2.4.1", author="xianhu", keywords=["spider", "crawler", "multi-threads", "multi-processes", "proxies"], packages=find_packages(exclude=("test.*",)), ...
[ "qixianhu@qq.com" ]
qixianhu@qq.com
8665cf78ce4dd184cdd2109946d8f8d25e435330
b26c41926fa3a7c2c061132d80e91a2750f2f468
/tensorflow_probability/python/experimental/nn/variational_base.py
d6493e1392c98610b0dde840bd906e29b61b0ba5
[ "Apache-2.0" ]
permissive
tensorflow/probability
22e679a4a883e408f8ef237cda56e3e3dfa42b17
42a64ba0d9e0973b1707fcd9b8bd8d14b2d4e3e5
refs/heads/main
2023-09-04T02:06:08.174935
2023-08-31T20:30:00
2023-08-31T20:31:33
108,053,674
4,055
1,269
Apache-2.0
2023-09-13T21:49:49
2017-10-23T23:50:54
Jupyter Notebook
UTF-8
Python
false
false
7,602
py
# Copyright 2019 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
22e0763bb5fdccc77c69692bfef9870bcca55aca
3481356e47dcc23d06e54388153fe6ba795014fa
/comprehensive_test/BaseStruct/BaseStruct/BaseStruct.py
b17d76fdf85e1568f29014674e40ae6663232196
[]
no_license
Chise1/pyhk
c09a4c5a06ce93e7fe50c0cc078429f7f63fcb2f
44bdb51e1772efad9d0116feab1c991c601aa68a
refs/heads/master
2021-01-03T08:24:47.255171
2020-02-29T04:05:30
2020-02-29T04:05:30
239,998,705
1
0
null
2020-02-28T07:35:46
2020-02-12T11:40:39
C
UTF-8
Python
false
false
7,927
py
# This file was automatically generated by SWIG (http://www.swig.org). # Version 3.0.12 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def...
[ "chise123@live.com" ]
chise123@live.com
b95fc2cc946058c79099fb52b43c4dd92c36b741
0b86600e0288c0fefc081a0f428277a68b14882e
/tortue/tortue_2.py
c2f8f226561cdee9a094b36f6cc92224f645b31b
[]
no_license
Byliguel/python1-exo7
9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350
fbf6b08f4c1e94dd9f170875eee871a84849399e
refs/heads/master
2020-09-22T10:16:34.044141
2019-12-01T11:52:51
2019-12-01T11:52:51
225,152,986
1
0
null
2019-12-01T11:51:37
2019-12-01T11:51:36
null
UTF-8
Python
false
false
849
py
############################## # Tortue ############################## ############################## # Activité 2 - Boucle "pour" ############################## ############################## # Question 1 from turtle import * # Un pentagone width(5) color('blue') for i in range(5): forward(100) left(72) ...
[ "arnaud.bodin@math.univ-lille1.fr" ]
arnaud.bodin@math.univ-lille1.fr
2220848f9b639102050af94c3eaf9af3d8c8c619
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/oF8T7Apf7jfagC4fD_10.py
1b90b98f9bbbebbad5d49653d4c2612e67ba78bc
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
def antipodes_average(lst): lst1, lst2 = lst[:len(lst) // 2], lst[len(lst) // 2:][::-1] return [(x + y) / 2 for x, y in zip(lst1, lst2)]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
15e9b01fef356ff7e0ed0f51586e912e135b0326
d4a88e52bb2b504208fc8b278400791409c69dbb
/src/pyaC/mtools/sanityOfmtools.py
090f52e68939621761d3f293755fe1ba6dad9178
[ "MIT" ]
permissive
pcschneider/PyAstronomy
23253ca57a35c2c4ed2ae01037f6512581e784bb
42c2200e4d45832935b7a3d9b3b05aeb30c54b50
refs/heads/master
2020-04-05T22:53:02.187609
2017-03-02T12:14:56
2017-03-02T12:14:56
52,076,073
0
0
null
2016-02-19T09:17:26
2016-02-19T09:17:25
null
UTF-8
Python
false
false
5,123
py
from __future__ import print_function import unittest import os class SanityOfmtools(unittest.TestCase): def setUp(self): pass def tearDown(self): if os.path.isfile("test.tmp"): os.remove("test.tmp") def sanity_numericalDerivative(self): """ mtools: Checking accuracy of numerical...
[ "stefan.czesla@hs.uni-hamburg.de" ]
stefan.czesla@hs.uni-hamburg.de
5c805124bb7ea1d536d8e28ac2d185d90ef5a508
d17403d0e6ffb7e32798df921e287ff60c8461f8
/GuoMei/spiders/shop.py
4a6f840433f0dd2f6da216f1748df92eb095dc3c
[]
no_license
beautifulmistake/GuoMeiMall
7d29c67bb153f7f9b5924e9277fc13580b483fad
9537c926c2891905732972fc061f8a3da2af6439
refs/heads/master
2020-05-31T06:43:41.858288
2019-06-11T08:45:30
2019-06-11T08:45:30
190,148,927
0
0
null
null
null
null
UTF-8
Python
false
false
4,851
py
""" 此爬虫是根据关键字采集国美的店铺信息 响应的数据为 json 格式 """ import json import os import scrapy from scrapy.exceptions import CloseSpider from scrapy.signals import spider_closed from scrapy.spidermiddlewares.httperror import HttpError from scrapy_redis.spiders import RedisSpider from twisted.internet.error import TCPTimedOutError, DNS...
[ "17319296359@163.com" ]
17319296359@163.com
b92f9667ab1f08bc8ef15d2340b5e322bfb3e78d
522edf49c560a9d8857888d81500ecfd9d106933
/WayneBlog/WayneBlog/autocomplete.py
e1968bfa4787e65f20e6208c09f6649e4e1b27c5
[]
no_license
WayneChen1994/WayneBlog
d5590b48151ef6ffef5b6e461069bbd0113aefc6
79355c11976fdf84e5dc35bda628a2c4756676d0
refs/heads/master
2020-04-29T07:29:01.977198
2019-04-19T15:22:56
2019-04-19T15:22:56
175,945,954
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
from dal import autocomplete from blog.models import Category, Tag class CategoryAutocomplete(autocomplete.Select2QuerySetView): def get_queryset(self): if not self.request.user.is_authenticated(): return Category.objects.none() qs = Category.objects.filter(owner=self.request.user) ...
[ "waynechen1994@163.com" ]
waynechen1994@163.com
40cfecdd4710615953024f1d17a719922c50da7a
3365e4d4fc67bbefe4e8c755af289c535437c6f4
/.history/src/core/app/GUI_20170808112214.py
a41ca5b589222a9d9f1ef86e53b552cdda38bb1b
[]
no_license
kiranhegde/OncoPlotter
f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1
b79ac6aa9c6c2ca8173bc8992ba3230aa3880636
refs/heads/master
2021-05-21T16:23:45.087035
2017-09-07T01:13:16
2017-09-07T01:13:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,793
py
#! python3 import ctypes import os import sys from PyQt5 import QtCore, QtGui from PyQt5.QtWidgets import (QAction, QApplication, QFileDialog, QFrame, QMainWindow, QPushButton, QSizePolicy, QSplitter, QTextEdit, QVBoxLayout, QWidget) #GUI import core.gui.mai...
[ "ngoyal95@terpmail.umd.edu" ]
ngoyal95@terpmail.umd.edu
4a6477389290b79cec799eb18a7fb2e6883e2a89
42f418a4535c269ea1fbf2a023acf9805ee72c0a
/exploration/executables/December17/parabola_configurations.py
934f2503cab59c915d941033f4c014dc5cf8b03f
[]
no_license
yumilceh/artificialbabbling
10e6fe2fe19edbc0263c61b2897514cbae9a1c1f
680b720e48b787bac1c626c597fd690159edd777
refs/heads/master
2022-11-12T22:21:38.606407
2018-04-24T14:37:20
2018-04-24T14:37:20
270,961,611
0
0
null
null
null
null
UTF-8
Python
false
false
3,850
py
""" Created on May 17, 2017 @author: Juan Manuel Acevedo Valle """ from exploration.algorithm.utils.competence_funcs import comp_Moulin2013_expl as comp_func_expl from exploration.algorithm.utils.competence_funcs import comp_Moulin2013 as comp_func_ # from exploration.models.sensorimotor.ExplautoSM import ExplautoSM...
[ "jmavbpl@gmail.com" ]
jmavbpl@gmail.com
ded8721ccec0deb754fd31df06a0b48f471fc4e1
7312266874e50682cf909f4b77260c9a69f13999
/python/packages/scipy-0.6.0/scipy/sparse/setup.py
9d54d45325a529b3cddd812510c4297bb0f15697
[]
no_license
mbentz80/jzigbeercp
e354695b90a72c7fe3c5c7ec7d197d9cbc18d7d9
1a49320df3db13d0a06fddb30cf748b07e5ba5f0
refs/heads/master
2021-01-02T22:44:16.088783
2008-08-27T23:05:47
2008-08-27T23:05:47
40,231
1
1
null
null
null
null
UTF-8
Python
false
false
1,323
py
#!/usr/bin/env python from os.path import join import sys def configuration(parent_package='',top_path=None): import numpy from numpy.distutils.misc_util import Configuration config = Configuration('sparse',parent_package,top_path) config.add_data_dir('tests') # Adding a Python file as a "sourc...
[ "mb434@cornell.edu" ]
mb434@cornell.edu
96f690a53f749d69fdfe0fbb6ef5e7280b753b9e
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/app/util/bin/format/coff/CoffSectionHeader3.pyi
2d208f75241a47f7c45a55cecba6be313298d43c
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
7,087
pyi
from typing import List import ghidra.app.util.bin import ghidra.app.util.bin.format.coff import ghidra.program.model.address import ghidra.program.model.data import ghidra.program.model.lang import java.io import java.lang class CoffSectionHeader3(ghidra.app.util.bin.format.coff.CoffSectionHeader): """ A 0x2...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
523591afd5c27c3429d387457b5d75979d089531
824f831ce0921b3e364060710c9e531f53e52227
/Leetcode/Dynamic_Programming/LC-053. Maximum Subarray.py
e6b7d456cfe91003151f2a49f92a98deefd53cc7
[]
no_license
adityakverma/Interview_Prepration
e854ff92c10d05bc2c82566ea797d2ce088de00a
d08a7f728c53943e9a27c33f8e4249633a69d1a6
refs/heads/master
2020-04-19T19:36:06.527353
2019-06-15T23:02:30
2019-06-15T23:02:30
168,392,921
0
2
null
null
null
null
UTF-8
Python
false
false
2,000
py
# Tags: Array, Dynamic Programming, Divide & Conquer, Microsoft, LinkedIn # ======================================================================== # Given an integer array nums, find the contiguous subarray # (containing at least one number) which has the largest sum and # return its sum. # Example: # Input: ...
[ "noreply@github.com" ]
adityakverma.noreply@github.com
dd539a1c149d1e02e104ac2f58495f0374684f81
bdeb707894a4647cf46ab136e2ed5e7752094897
/hive/server/condenser_api/tags.py
a75c6be3d711cd4314f922d71ff246c9fa559459
[ "MIT" ]
permissive
Jolly-Pirate/hivemind
e5f636070b1e51bcd047678b758d5617ad4d83ec
2bd91ece6c32f355bca40a156f2a5dc3d4d882bb
refs/heads/master
2020-05-30T09:01:22.910947
2019-04-11T19:25:48
2019-04-11T19:25:48
189,629,870
0
0
MIT
2019-05-31T17:05:18
2019-05-31T17:01:27
Python
UTF-8
Python
false
false
1,902
py
"""condenser_api trending tag fetching methods""" from aiocache import cached from hive.server.condenser_api.common import (return_error_info, valid_tag, valid_limit) @return_error_info @cached(ttl=7200, timeout=1200) async def get_top_trending_tags_summary(context): """Get top 50 trending tags among pending post...
[ "roadscape@users.noreply.github.com" ]
roadscape@users.noreply.github.com
f27caf7428d9cbda9fc1a6c9fffb03dc2afaec0b
83cf4aedab8f8b54753dfca1122346a88faa3c05
/prysm/__init__.py
7028af45080d8151982adc1e43a33f7bf9e984b8
[ "MIT" ]
permissive
tealtortoise/prysm
073c2a6bea10c390fb7be1d708ecab666a91bdb1
3c17cb7b6049a36a1f8b6a0035c216ca1078aee1
refs/heads/master
2022-05-08T05:30:21.819821
2019-04-12T11:49:48
2019-04-12T11:49:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
"""prysm, a python optics module.""" from pkg_resources import get_distribution from prysm.conf import config from prysm.convolution import Convolvable from prysm.detector import Detector, OLPF, PixelAperture from prysm.pupil import Pupil from prysm.psf import PSF, AiryDisk from prysm.otf import MTF from prysm.interf...
[ "brandondube@gmail.com" ]
brandondube@gmail.com
c6ddd34116e222c160be95243b8b1df1eb4c67b3
411d9c64d2f2142f225582f2b4af1280310426f6
/sk/logistic.py
b193e93f1811528873b0dbd74620a83c1a463b8f
[]
no_license
631068264/learn-sktf
5a0dfafb898acda83a80dc303b6d6d56e30e7cab
4ba36c89003fca6797025319e81fd9863fbd05b1
refs/heads/master
2022-10-15T03:29:38.709720
2022-09-24T12:56:41
2022-09-24T12:56:41
133,602,172
0
0
null
2022-09-24T12:57:23
2018-05-16T02:57:01
Python
UTF-8
Python
false
false
1,522
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author = 'wyx' @time = 2018/5/13 18:27 @annotation = '' """ import numpy as np from matplotlib import pyplot as plt from sklearn import datasets iris = datasets.load_iris() # petal width X = iris["data"][:, 3:] # 1 if Iris-Virginica, else 0 y = (iris["target"] == 2).a...
[ "l631068264@gmail.com" ]
l631068264@gmail.com
e812462a5f03c13652d8da807578cfd1734c6036
316bbaec3cd0e1d11aa2a6df417714f568b71b8d
/dm6/wrappers/macs2/.snakemake.pzzkm37x.wrapper.py
29b280403b9d233af358914288300621a7d9ec98
[]
no_license
HussainAther/optimizepeakcallers
dfe34574943ac56d06dc8a0463435585ce75629f
5f40a2700bbad9f5d6f93676a4c377ea2da214f4
refs/heads/master
2020-03-08T07:20:00.949265
2018-04-09T17:36:16
2018-04-09T17:36:16
127,991,713
0
0
null
null
null
null
UTF-8
Python
false
false
1,970
py
######## Snakemake header ######## import sys; sys.path.insert(0, "/home/athersh/miniconda3/envs/snakemake/lib/python3.5/site-packages"); import pickle; snakemake = pickle.loads(b'\x80\x03csnakemake.script\nSnakemake\nq\x00)\x81q\x01}q\x02(X\x04\x00\x00\x00ruleq\x03X\x05\x00\x00\x00macs2q\x04X\x06\x00\x00\x00paramsq\x...
[ "shussainather@gmail.com" ]
shussainather@gmail.com
e12e3975e4e78c3b035185b63e0267d080e2e194
366c30997f60ed5ec19bee9d61c1c324282fe2bb
/deb/openmediavault/usr/sbin/omv-mkaptidx
b4820779bddb8f05d68daeb91a1c9571cb97b67d
[]
no_license
maniacs-ops/openmediavault
9a72704b8e30d34853c991cb68fb055b767e7c6e
a1c26bdf269eb996405ce6de72211a051719d9e7
refs/heads/master
2021-01-11T17:28:04.571883
2017-01-19T22:06:35
2017-01-19T22:06:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,989
#!/usr/bin/env python3 # # This file is part of OpenMediaVault. # # @license http://www.gnu.org/licenses/gpl.html GPL Version 3 # @author Volker Theile <volker.theile@openmediavault.org> # @copyright Copyright (c) 2009-2017 Volker Theile # # OpenMediaVault is free software: you can redistribute it and/or modify # ...
[ "votdev@gmx.de" ]
votdev@gmx.de
fb3357f74e50b16b2e9ff2a5c707a1cd76f60390
d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86
/disturbance/migrations/0102_sitetransferapiarysite_customer_selected.py
244cec5a7829e05fb0fa9710029b020299d7fdb4
[ "Apache-2.0" ]
permissive
Djandwich/disturbance
cb1d25701b23414cd91e3ac5b0207618cd03a7e5
b1ba1404b9ca7c941891ea42c00b9ff9bcc41237
refs/heads/master
2023-05-05T19:52:36.124923
2021-06-03T06:37:53
2021-06-03T06:37:53
259,816,629
1
1
NOASSERTION
2021-06-03T09:46:46
2020-04-29T03:39:33
Python
UTF-8
Python
false
false
483
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-07-08 02:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('disturbance', '0101_auto_20200708_1021'), ] operations = [ migrations.AddFi...
[ "brendan.blackford@dbca.wa.gov.au" ]
brendan.blackford@dbca.wa.gov.au
bb2be937acf8912948c17324039d31f3142c2686
10fbe5526e5f0b8588b65f70f088cd86b6e9afbe
/rqwywo/migrations/0007_mahcgzunnb.py
b7a865d124c035fd8b4fe42e8e9ea49a6e5daaa5
[]
no_license
MarkusH/django-migrations-benchmark
eb4b2312bb30a5a5d2abf25e95eca8f714162056
e2bd24755389668b34b87d254ec8ac63725dc56e
refs/heads/master
2016-09-05T15:36:45.250134
2015-03-31T23:44:28
2015-03-31T23:44:28
31,168,231
3
1
null
null
null
null
UTF-8
Python
false
false
619
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('digmcd', '0014_auto_20150218_1625'), ('rqwywo', '0006_auto_20150218_1623'), ] operations = [ migrations.CreateModel(...
[ "info@markusholtermann.eu" ]
info@markusholtermann.eu
05a061fd125b2b45d56a164419cb1734443f7bcd
21b4585de4a0eacdb0d1e488dfae53684bb6564e
/111. Minimum Depth of Binary Tree.py
8df278cffa42331ca4af1a0e9c38c21b64172b2d
[]
no_license
gaosq0604/LeetCode-in-Python
de8d0cec3ba349d6a6462f66286fb3ddda970bae
57ec95779a4109008dbd32e325cb407fcbfe5a52
refs/heads/master
2021-09-15T23:14:14.565865
2018-06-12T16:30:40
2018-06-12T16:30:40
113,881,474
1
0
null
null
null
null
UTF-8
Python
false
false
425
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def minDepth(self, root): """ :type root: TreeNode :rtype: int """ if not root: retur...
[ "gaosq0604@gmail.com" ]
gaosq0604@gmail.com
a50d73c260c8760f213ba7dc25fe02ae4536540b
350f0721f490a7fd9ab532b666bed72108a2be81
/src/classes/list.py
2ad41e74260ae9b201ff5753e06a981494e00e68
[ "MIT" ]
permissive
810Teams/mal-chart-maker
bced08ee223e8cda66de52fdbf6d172e5352563f
7a5570d2bc7cd23e1dee6631e62a73c959587c04
refs/heads/main
2023-05-25T00:52:13.596168
2023-05-13T10:22:27
2023-05-13T10:22:27
349,377,549
1
0
null
null
null
null
UTF-8
Python
false
false
10,092
py
""" `data.py` """ from src.utils import error from src.classes.entry import Entry, Anime, Manga from math import ceil, floor, sqrt class List: """ User anime/manga list class """ def __init__( self, data: list=list(), include_current: bool=False, include_onhold: bool=Fals...
[ "teerapat_saint@hotmail.com" ]
teerapat_saint@hotmail.com
6476a4bce704d3c37f77b64321d4174453e2cdc5
5d069aa71e5cd242b4f1f29541dc85107822cbda
/mc_states/modules/mc_www.py
319be1cb2d7aa0ca54f2980cd05641837f59532c
[ "BSD-3-Clause" ]
permissive
h4ck3rm1k3/makina-states
f22a5e3a0dde9d545108b4c14279451198682370
3f2dbe44867f286b5dea81b9752fc8ee332f3929
refs/heads/master
2020-02-26T13:17:09.895814
2015-01-12T21:45:02
2015-01-12T21:45:02
29,172,493
0
0
null
2015-01-13T04:23:09
2015-01-13T04:23:07
null
UTF-8
Python
false
false
1,230
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' .. _module_mc_www: mc_www / www registry ============================================ If you alter this module and want to test it, do not forget to deploy it on minion using:: salt '*' saltutil.sync_modules Documentation of this module is available with:: sal...
[ "kiorky@cryptelium.net" ]
kiorky@cryptelium.net
35df2d756e2076153f711a103a0783d15316232b
ce29884aa23fbb74a779145046d3441c619b6a3c
/all/217.py
280394e1b4abf3d78e10998357c12d53a005a8c9
[]
no_license
gebijiaxiaowang/leetcode
6a4f1e3f5f25cc78a5880af52d62373f39a546e7
38eec6f07fdc16658372490cd8c68dcb3d88a77f
refs/heads/master
2023-04-21T06:16:37.353787
2021-05-11T12:41:21
2021-05-11T12:41:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2020/12/1 22:48 # @Author : dly # @File : 217.py # @Desc : class Solution(object): def containsDuplicate(self, nums): """ :type nums: List[int] :rtype: bool """ if len(nums) == len(set(nums)): retur...
[ "1083404373@qq.com" ]
1083404373@qq.com
a7e95404a37e153e6cdf62771caf3112de8d8ed3
08a3833ec97e33c4a40bf1d1aa403da7836e0df0
/demo/urls.py
d4a707b0083f84bce11751e79741ea699a02c9cf
[]
no_license
srikanthpragada/PYTHON_02_AUG_2018_WEBDEMO
ae667e154abcc05acaaf0d18d45be4ebc995c6cc
e34019102f5c8159beef35a2e3665028aea509ce
refs/heads/master
2020-03-28T06:10:43.303938
2018-09-27T12:33:35
2018-09-27T12:33:35
147,818,803
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
from django.contrib import admin from django.urls import path from . import views from . import dept_views from . import book_views from . import ajax_views from . import rest_views from . import class_views urlpatterns = [ path('product/', views.show_product), path('products/', views.show_products_list), ...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
c8f45e7bb4f13bb13d66ece65007b8bf2f16e966
c7f7600a703cb5a7a7cab8c0d2a03f125d8208c8
/spektral/layers/pooling.py
f4ee6dd6a66d634a3e6f9858f8a6b6efec6b189d
[ "MIT" ]
permissive
XIAOLONG-YUN/spektral
72a0a9bef576ecec6347e720c5651c691b287f7d
a3883117b16b958e2e24723afc6885fbc7df397a
refs/heads/master
2020-05-31T17:34:51.764888
2019-05-31T10:10:41
2019-05-31T10:10:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,887
py
from keras import backend as K from keras import regularizers, constraints, initializers from keras.backend import tf from keras.engine import Layer ################################################################################ # Global pooling layers ################################################################...
[ "daniele.grattarola@gmail.com" ]
daniele.grattarola@gmail.com
30675a30aad98c9bf2aec0cb940be25c5c0449d1
2cde0b63638ac8bad6a2470a4ec1cbbdae8f7d39
/percentilesandquartiles17.py
9066c301ed8954ed980881cb9437211cbe66d357
[]
no_license
PhuongThuong/baitap
cd17b2f02afdbebfe00d0c33c67791ade4fc61ff
012c609aa99ba587c492b8e6096e15374dc905f2
refs/heads/master
2023-08-22T21:39:57.527349
2021-10-09T10:54:48
2021-10-09T10:54:48
415,281,667
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
import numpy as np scores = np.array([8, 6, 4, 3, 9, 4, 7, 4, 4, 9, 7, 3, 9, 4, 2, 3, 8, 5, 9, 6]) print("Bách phân vị thứ 70: ", np.percentile(scores, 70, interpolation='lower')) print("Bách phân vị thứ 70: ", np.percentile(scores, 70, interpolation='higher')) print("Bách phân vị thứ 70: ", np.percentile(scores, 70,...
[ "you@example.com" ]
you@example.com