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
3e412ca5a6f8dcd4a7e5cd5480f0fdea0dfdf770
cdb790c9f37c36bd885c36a348df906424393e6b
/Doudizhu/Server/release/Script/PyScript/Action/Action9001.py
f0e3fdeace48c8298c0ee7d61a44baef542c3048
[]
no_license
HongXiao/Scut-samples
855eb33a3d0ec858b7e1c9d53f1b252e737fc2e0
ea2acd478de7ba58c2800dcf52fe56bbeb4b55fa
refs/heads/master
2022-07-13T15:16:45.550367
2015-05-19T02:48:10
2015-05-19T02:48:10
36,568,782
1
0
null
2022-06-23T00:19:32
2015-05-30T17:46:38
C#
UTF-8
Python
false
false
1,632
py
import ReferenceLib from action import * from System import * from mathUtils import MathUtils from System.Collections.Generic import * from ZyGames.Framework.SyncThreading import * from ZyGames.Framework.Common import * from ZyGames.Framework.Game.Cache import * from ZyGames.Framework.Game.Com.Rank import * f...
[ "wzf_88@qq.com" ]
wzf_88@qq.com
d609d362c0f38066fe98e12a45f5b3b6e21b1606
6ff318a9f67a3191b2a9f1d365b275c2d0e5794f
/购物车/class_system老师版本/interface/school_interface.py
59034f8e52192141e350091a5d015eb66d3035f1
[]
no_license
lvhanzhi/Python
c1846cb83660d60a55b0f1d2ed299bc0632af4ba
c89f882f601898b5caab25855ffa7d7a1794f9ab
refs/heads/master
2020-03-25T23:34:00.919197
2018-09-13T12:19:51
2018-09-13T12:19:51
144,281,084
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
# Author : Albert Ma from lib import common from conf import settings import os def check_all_school(): ''' :return: ''' base_dir_school = os.path.join(settings.BASE_DB, 'school') school_list = common.get_all_file(base_dir_school) return school_list
[ "1541860665@qq.com" ]
1541860665@qq.com
a1ae004b06e8376d03a17d19100728e96146dcac
a1daac8349e70d6041f7b886efccc88481c1aa7b
/python/RO-3.6.9/Astro/Tm/LASTFromUT1.py
42f004049a8922b4dfe2dfb50f47530d0769b29d
[]
no_license
Subaru-PFS/tron_actorcore
5c60492457c863d517bdb4e11252c80f462cb1ac
fe5578ba978e8a9cd81c08be271c2ef874a84927
refs/heads/master
2023-06-07T12:28:22.147758
2023-05-24T16:14:36
2023-05-24T16:14:36
56,026,928
3
0
null
2023-03-22T18:52:21
2016-04-12T03:13:30
Python
UTF-8
Python
false
false
1,058
py
from __future__ import absolute_import, division, print_function __all__ = ["lastFromUT1"] import RO.PhysConst import RO.MathUtil from RO.Astro import llv from .LMSTFromUT1 import lmstFromUT1 def lastFromUT1(ut1, longitude): """Convert from universal time (MJD) to local apparent sidereal time (deg). Inp...
[ "cloomis@astro.princeton.edu" ]
cloomis@astro.princeton.edu
a768a30b7c34f738d37aad8d4f2341b5f5c90d05
1ffbdfff2c9632fa8ecd6288578e1d02f740ee23
/2020_/05/LeetCode/KidsWithCandies.py
431e100274c86e474b093506757ffbb17eea789e
[]
no_license
taesookim0412/Python-Algorithms
c167c130adbe04100d42506c86402e729f95266c
c6272bbcab442ef32f327f877a53ee6e66d9fb00
refs/heads/main
2023-05-01T09:40:44.957618
2021-05-12T10:52:30
2021-05-12T10:52:30
366,682,846
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
# -*- coding: utf-8 -*- from typing import List #05-10-2020_ #Getting used to python again #Switching projects due to incapabilities of my previous one #This one has ml so here I am! class Solution: def kidsWithCandies(self, candies: List[int], extraCandies: int) -> List[bool]: max = 0 for i in ra...
[ "taesoo.kim0412@gmail.com" ]
taesoo.kim0412@gmail.com
5b26dcda287d8fbf858129d96aa66fb1d97dc65f
bca6e5728aa041d348482e4265fd2c6f1f4a67d3
/ucsmsdk/mometa/equipment/EquipmentPoolable.py
d0e1146a146f6682c6639a13473d9a92198ae71f
[ "Apache-2.0" ]
permissive
psterdale/ucsmsdk
fc7c519ea1a43c5e77a015e3605bc2acfe3c917a
821b805c18ad7652a79d4f581f4695558f17e943
refs/heads/master
2020-12-03T08:11:54.382427
2017-06-28T12:46:52
2017-06-28T12:46:52
95,667,187
1
0
null
2017-06-28T12:33:27
2017-06-28T12:33:27
null
UTF-8
Python
false
false
2,401
py
"""This module contains the general information for EquipmentPoolable ManagedObject.""" from ...ucsmo import ManagedObject from ...ucscoremeta import MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class EquipmentPoolableConsts: pass class EquipmentPoolable(ManagedObject): """This is EquipmentPoo...
[ "vijayvikrant84@gmail.com" ]
vijayvikrant84@gmail.com
07c09c903f02a6ecc5fe561ca23b514bacf27f0f
6a0f10129e8babc176e4ce055827a8c30409797b
/dependancies/yapsy/package/test/plugins/ConfigPlugin.py
642fe0a6da2f4aff88bc84f01b60292a379113c4
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
mikehulluk/python-devtools
be2124df71a3f8d8c7a550fe7247e14b43a60484
8c6e0676cc662fbe4b4dacd1d6d386c7ebe5d4df
refs/heads/master
2021-01-17T13:07:43.869012
2016-04-01T12:56:29
2016-04-01T12:56:29
5,450,849
1
0
null
null
null
null
UTF-8
Python
false
false
930
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ This is certainly the second simplest plugin ever. """ import test_settings import main from yapsy.IPlugin import IPlugin class ConfigPlugin(IPlugin): """ Try to use the methods with which it has been decorated. """ def __init__(self): """ init """ # initi...
[ "mikehulluk@googlemail.com" ]
mikehulluk@googlemail.com
6286ee3a044cc4b1f64d35904a787142639902bf
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/securityinsights/v20210301preview/list_source_control_repositories.py
c60577a837dcc447e23098e1b965efe2dc3426cc
[ "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
4,028
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 fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
a63c1189c566154d20498eb2800ee75459c76bde
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/algorithm/hard_algo/1_3.py
629cc83efc3be273752e924aba3c344b23847368
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
6,357
py
Applications of String Matching Algorithms String matching algorithms have greatly influenced computer science and play an essential role in various real-world problems. It helps in performing time- efficient tasks in multiple domains. These algorithms are useful in the case of searching a string within anoth...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
395a33d2e8d9acf8b945729792a59bfd53615ae2
33356466bfba85f7fcf38ce0187264e9909643b5
/정적메서드.py
d8c239b08fc2041564a28cb6f9cddd08143b055f
[]
no_license
papasmf1/python1006
1748e2db43c4795ee5b910bf3bb0ad6591631180
6dfc551f3520384a8181423d6f2b2ae6b1be5fc2
refs/heads/master
2023-08-12T05:06:51.470173
2021-10-08T07:31:41
2021-10-08T07:31:41
414,036,476
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
# 정적메서드.py class MyCalc(object): #어노테이션:살아있는 주석 @staticmethod def my_add(x,y): return x+y #인스턴스 메서드 def methodA(self): print("인스턴스 메서드 실행") #클래스에서 직접 호출한다. a = MyCalc.my_add(5,7) print(a) #인스턴스를 생성 calc = MyCalc() calc.methodA()
[ "papasmf1@gmail.com" ]
papasmf1@gmail.com
219b978339946cd8d326b65006f435769c06892c
02f6dd52e7f2063c091fca1055358a4a3a8f56f8
/PreCruiseRoutines/CruiseTimelinePlanning/CruiseTimeline.py
1efb69e9b4f5ad6105ea14afea87bbc55a97ad0d
[ "MIT" ]
permissive
NOAA-PMEL/AtSeaPrograms
a7029c12b347d7f1b47d00136bbeab0f2b936374
839ee4dc1cf7a85bce1de82b04379c6d1670c414
refs/heads/master
2023-04-09T11:58:02.358161
2021-04-22T18:19:58
2021-04-22T18:19:58
63,967,041
1
1
null
null
null
null
UTF-8
Python
false
false
9,606
py
#!/usr/bin/env """ Background: -------- CruiseTimeline.py Purpose: -------- Reads csv/google earth file with lat/lon and operations and determines distance and time for cruise planning purposes From given locations and operations, depth is retrieved from ETOPO5 dataset. Great circle distance is cal...
[ "shaun.bell@noaa.gov" ]
shaun.bell@noaa.gov
a3a60c3db2ee946aa248e85e0f9351e6dd522602
66276325d623c894c9e6344bb161f3c25974a838
/LeetCode/0145.Binary-Tree-Postorder-Traversal/Binary-Tree-Postorder-Traversal.py
f75d29bf4f76aa1a817181d108cc435263ac0090
[]
no_license
htingwang/HandsOnAlgoDS
034b5199b394ca82fd4fb16614ddabb45f3325e2
5b14b6f42baf59b04cbcc8e115df4272029b64c8
refs/heads/master
2021-07-11T15:50:30.944794
2020-09-27T05:08:02
2020-09-27T05:08:02
192,391,446
12
2
null
2019-07-03T04:09:35
2019-06-17T17:36:01
Jupyter Notebook
UTF-8
Python
false
false
687
py
class Solution(object): def postorderTraversal(self, root): """ :type root: TreeNode :rtype: List[int] """ res = [] cur = root while cur: if cur.right: pre = cur.right while pre.left and pre.left != cur: ...
[ "49448790+htingwang@users.noreply.github.com" ]
49448790+htingwang@users.noreply.github.com
aa0fc3836dbb3412855cd57ea85310d2ac819e54
93a13468fd34692ca58ec5aad8f923a5097a19a5
/users/forms.py
f06c714aa99e210ec20db25236e0f85010b498ee
[]
no_license
Ryanden/AirBnB-Clone
0734735a5f1e38b2670db12a4aeb81a2ccb8dc71
a9be3a6f2cda3c11f036c5f8a31b0c972ed77905
refs/heads/master
2023-04-29T07:10:10.177262
2021-02-16T13:48:33
2021-02-16T13:48:33
232,119,018
0
0
null
2023-04-21T21:14:19
2020-01-06T14:32:18
Python
UTF-8
Python
false
false
1,955
py
from django import forms from . import models class LoginForm(forms.Form): email = forms.EmailField() password = forms.CharField(widget=forms.PasswordInput) def clean(self): email = self.cleaned_data.get("email") password = self.cleaned_data.get("password") try: user ...
[ "lockstom@gmail.com" ]
lockstom@gmail.com
e7552d2a47ab1ea3493bf692bdc26d3451cac464
bf039c5288cb6396cf4075cec0640089b7ae7919
/devil/devil/android/apk_helper_test.py
5cd33ea23dd81d8c0d8b52cce477caaaf4873c12
[ "BSD-3-Clause" ]
permissive
ibelem/catapult
759b4f8dec2d1d341e5e5bea43f4d6367b2903e6
c979465c52c6af934e3e787a677383f4da58622b
refs/heads/master
2020-07-24T15:54:09.800235
2019-08-30T09:40:38
2019-09-11T23:59:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,026
py
#! /usr/bin/env python # Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import os import unittest from devil import devil_env from devil.android import apk_helper from devil.android.ndk ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
bebc7c2c46ba1179302e672de8e21b86f7e7d93a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2127/48117/237006.py
c5e2296d8258baf8960ef8c32d8b8db8701928bb
[]
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
184
py
a = int(input()) bList = input().split(',') b = 0 count = 0 for num in bList: num = int(num) b += num * pow(10, len(bList) - 1 - count) count += 1 print(pow(a, b) % 1337)
[ "1069583789@qq.com" ]
1069583789@qq.com
d61787143fb040dbfaa6e88495648de96c0f222e
814a3954540c13777bce9839214a9fe5804acda3
/app/__init__.py
13854b686f7f2281d756a89c2f13a9fbef7d1a38
[ "MIT" ]
permissive
cynthiaoduol/Pitch
7d0d78714d3991f7e7703473029e3e734d2360ab
aa3b5bb642ab436e10badb5a40b92bfc57145dc5
refs/heads/master
2022-10-01T17:11:55.302424
2019-10-27T15:46:27
2019-10-27T15:46:27
216,023,063
0
0
MIT
2022-09-16T18:11:53
2019-10-18T12:50:26
Python
UTF-8
Python
false
false
1,215
py
from flask import Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager from flask_uploads import UploadSet,configure_uploads,IMAGES from flask_mail import Mail from flask_simplemde import SimpleMDE from config import config_options login_manager = Lo...
[ "cynthiaobu940@gmail.com" ]
cynthiaobu940@gmail.com
6a9bd5392da9aacc4f0dce7e0d6feeda63d2e965
1453de0ce64e2ffbfeb519a778cae9d4020114e7
/feature33.py
b806956e311eef609023eb6efa1f3b60f7bf10a9
[ "BSD-2-Clause" ]
permissive
QuLogic/czi-eoss-2020-mpl
b4843b171758d0b767757fb4dddff6b34b363b43
9ae8d3ff598df7372c6ea833e1e560838463db87
refs/heads/master
2023-01-28T11:05:49.085700
2020-12-10T09:24:33
2020-12-10T11:24:33
320,333,405
0
0
null
null
null
null
UTF-8
Python
false
false
1,389
py
""" Feature highlights for Matplotlib 3.3.0. """ from mplslide import new_slide, slide_heading, annotate_pr_author CODE = dict(fontfamily='monospace', fontsize=40, verticalalignment='top', alpha=0.7) def identify_axes(ax_dict): """ Mark Axes using their name passed to ``subplot_mosaic``. ""...
[ "quantum.analyst@gmail.com" ]
quantum.analyst@gmail.com
508a91edccccb5a81ea8b9b6a210eb19e7e20b79
3546dd5dbcffc8509440c820faa7cf28080c5df7
/python35/Lib/site-packages/matplotlib/dates.py
5c279f5fd612db0bc2571bb4f0d8c280e5c6e692
[ "Apache-2.0", "MIT", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
Matchoc/python_env
55ad609c8270cc6148eda22d37f36709d73b3652
859d84d1717a265a4085ad29706b12c19c62d36f
refs/heads/master
2022-02-13T11:05:51.825544
2020-06-05T02:42:08
2020-06-05T02:42:08
75,793,921
0
1
Apache-2.0
2018-12-14T07:30:28
2016-12-07T03:06:13
Python
UTF-8
Python
false
false
52,923
py
#!/usr/bin/env python """ Matplotlib provides sophisticated date plotting capabilities, standing on the shoulders of python :mod:`datetime`, the add-on modules :mod:`pytz` and :mod:`dateutil`. :class:`datetime` objects are converted to floating point numbers which represent time in days since 0001-01-01 UTC, plus 1. ...
[ "matchoc@hotmail.com" ]
matchoc@hotmail.com
75e1adbd143aa4cf096917f784c706ef6dcc6618
1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e
/xcp2k/classes/_interaction_potential3.py
f19e531afdb6f598b3fbda2fa25ca91b40d381ba
[]
no_license
Roolthasiva/xcp2k
66b2f30ebeae1a946b81f71d22f97ea4076e11dc
fc3b5885503c6f6dc549efeb4f89f61c8b6b8242
refs/heads/master
2022-12-23T06:03:14.033521
2020-10-07T08:01:48
2020-10-07T08:01:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
436
py
from xcp2k.inputsection import InputSection class _interaction_potential3(InputSection): def __init__(self): InputSection.__init__(self) self.Potential_type = None self.Truncation_radius = None self.Tshpsc_data = None self._name = "INTERACTION_POTENTIAL" self._keywo...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
77d5477e8708f6632bb971d1e37912667765856a
c5a618ab198a7cc93b35715af2575ad4932f8dbb
/1_numpy/j_GAN/a.py
dba4beea1e4ddb54bda832c1a02525ca6083687d
[]
no_license
JaeDukSeo/Personal_Daily_NeuralNetwork_Practice
f33808a0413e130beae27f80fb4cc524834a8cc5
f83ad23faefd726c647cc1d78021c25e086581be
refs/heads/master
2021-09-12T07:20:49.212032
2018-04-15T08:15:37
2018-04-15T08:15:37
114,972,816
1
0
null
null
null
null
UTF-8
Python
false
false
4,730
py
import numpy as np,sys from sklearn.utils import shuffle from sklearn.preprocessing import OneHotEncoder from mnist import MNIST import matplotlib.pyplot as plt import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec np.random.seed(45678) def ReLu(x): mask = (x>0) * 1.0 return mask *x def d_Re...
[ "jae.duk.seo@ryerson.ca" ]
jae.duk.seo@ryerson.ca
ddd318b6721b5000e087c2762d05acb8e993cf19
fd780d0bc77c8880c73e67a996528ff00611dbb2
/tests/test_wps_plot_timeseries.py
f83c5e209be7f8691c629539cdab4cff85f5f92a
[ "Apache-2.0" ]
permissive
bird-house/flyingpigeon
859cac9c3a3e009ed0a2ac26a7be42b8d33654ad
f445055857d6243a5a1db60040cef173e9932574
refs/heads/master
2022-11-08T10:03:22.273140
2022-11-01T13:42:18
2022-11-01T13:42:18
23,613,598
21
17
Apache-2.0
2023-09-07T20:06:12
2014-09-03T09:03:59
Python
UTF-8
Python
false
false
691
py
import pytest from pywps import Service from pywps.tests import assert_response_success from .common import TESTDATA, client_for, CFG_FILE try: from flyingpigeon.processes import PlottimeseriesProcess except Exception: pytestmark = pytest.mark.skip @pytest.mark.slow def test_wps_plot_timeseries(): clien...
[ "info@nilshempelmann.de" ]
info@nilshempelmann.de
fddfc32700d10b071ec02f4efb6d459c4069692a
9206e405e9be5f80a08e78b59d1cb79c519ae515
/algorithms/dict_to_json.py
b58bc0f434a16ea4c619c5fcf420eedd9510f5bd
[]
no_license
mfbx9da4/mfbx9da4.github.io
ac4e34f0e269fb285e4fc4e727b8564b5db1ce3b
0ea1a0d56a649de3ca7fde2d81b626aee0595b2c
refs/heads/master
2023-04-13T22:15:19.426967
2023-04-12T12:14:40
2023-04-12T12:14:40
16,823,428
2
0
null
2022-12-12T04:36:08
2014-02-14T01:30:20
SCSS
UTF-8
Python
false
false
2,242
py
# convert dict to json # import json simple_types = set([int, float]) def solve_iter(obj): # couldn't work it out # https://stackoverflow.com/questions/49060962/convert-dict-to-json-iteratively-without-standard-libraries out = '' levels = {0: 1} stack = [(None, obj, 0, str(type(obj)))] path = [] prev_l...
[ "dalberto.adler@gmail.com" ]
dalberto.adler@gmail.com
cfd80bdf803bc0394de46cfb13fd5473f1e34b62
8cfe6d0c51687a5ac9eff83be8efb09610a671cb
/example/market/get_market_detail.py
1cce2fdcd29dd6b06b0b11e9a86f06f588d6a422
[ "Apache-2.0" ]
permissive
cryptodogofmax/huobi_Python
e4afc1e121009d38c8509af5dd7fbeb86ef16bd2
958df8b22ce774329c7e15a1ecf2f52eea5f6af8
refs/heads/master
2023-04-29T01:05:53.827265
2021-05-20T11:49:56
2021-05-20T11:49:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
from huobi.client.market import MarketClient market_client = MarketClient() obj = market_client.get_market_detail("btcusdt") obj.print_object()
[ "devin0thinking@gmail.com" ]
devin0thinking@gmail.com
9bbef0a8ba5764370fa6e6a8a9008b122bacab86
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_326/ch41_2020_03_25_17_56_42_260510.py
61b399819bb2dbf242939574248d4603fcb8ea25
[]
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
281
py
def zera_negativos(lista): n_elementos = len(lista) -1 bloco = 0 while n_elementos >= 0: bloco = lista[n_elementos] if bloco < 0: lista[n_elementos] = 0 n_elementos -= 1 else: n_elementos -= 1 return lista
[ "you@example.com" ]
you@example.com
73e2389d49c6b1ad156ac2db4cc705b5c4866377
19ed724002351006b25175ad584c89f774bd9527
/cvmodels/train_detector.py
f6cf9ecd1eca80c6f63d5de76768ad5e05d8da31
[ "MIT" ]
permissive
welkin-feng/ComputerVision
60df6aa36c26c630bcb3676c4ef0df6762d5329f
667488e41878d7f0376142a7ae9e1b43c0edd68a
refs/heads/master
2021-06-25T07:56:07.238130
2021-02-02T05:37:23
2021-02-02T05:37:23
193,149,801
3
0
null
null
null
null
UTF-8
Python
false
false
702
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Project Name: ComputerVision File Name: train_detector.py """ __author__ = 'Welkin' __date__ = '2019/10/11 15:05' import argparse from cvmodels.trainer import DetectionTrainer def parse_args(): parser = argparse.ArgumentParser(description='PyTorch VOC Dat...
[ "382523558@qq.com" ]
382523558@qq.com
9befe4f511f1b0ee611a5d662756be9125cb0409
9b5597492e57313712c0a842ef887940f92636cd
/judge/sessions/2018Warmup/ar.7@ucla.edu/PA_01.py
52326f46bccee703200a540bd5b542767a037e4a
[]
no_license
onionhoney/codesprint
ae02be9e3c2354bb921dc0721ad3819539a580fa
fcece4daf908aec41de7bba94c07b44c2aa98c67
refs/heads/master
2020-03-11T11:29:57.052236
2019-05-02T22:04:53
2019-05-02T22:04:53
129,971,104
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
n = input() cache = {} cache[1] = 1 cache[2] = 1 for i in range(3,100001): if i in cache: continue else: cache[i] = (cache[i-1]+cache[i-2])%100000007 for i in range(n): print cache[input()]
[ "root@codesprintla.com" ]
root@codesprintla.com
eafb6baaeda2ea5b225f83481784f83288e8120b
1f41b828fb652795482cdeaac1a877e2f19c252a
/maya_tools_backup/3dGroupTools/python/basic/connection/ui/view.py
0279dd29fe5817f5644dd08cb7c41e1f80290613
[]
no_license
jonntd/mayadev-1
e315efe582ea433dcf18d7f1e900920f5590b293
f76aeecb592df766d05a4e10fa2c2496f0310ca4
refs/heads/master
2021-05-02T07:16:17.941007
2018-02-05T03:55:12
2018-02-05T03:55:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
import maya.cmds as cmds class ConnectionUI: def __init__(self): pass def Show(self): cmds.window( )
[ "kimsung9k@naver.com" ]
kimsung9k@naver.com
1074924d08c716194c6c4379e8e04cdb8846ef2e
acefaec5fa8ba859033caac16ba36a77f330fae0
/app.py
0cb20673b0bbca6c8db5a0609b8693dc5927015f
[]
no_license
andre23arruda/init-flask
cf7f88274ca16bf7997f3b48a50a705186997e7d
c5f7c6906d94bca49be3b1bdcd209c7e37a25f44
refs/heads/main
2023-06-03T17:50:45.351808
2021-06-23T21:35:51
2021-06-23T21:35:51
379,708,064
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
from flask import Flask from models import Jogo, Usuario import os, sqlite3 from database import dao # config app = Flask(__name__) app.secret_key = 'mestra' debug = True # sqlite db = sqlite3.connect('database/database.db', check_same_thread=False) # database tables jogo_dao = dao.JogoDao(db) usuario_dao = dao.Usu...
[ "andre23arruda@gmail.com" ]
andre23arruda@gmail.com
0b845aa3c340d57f2cd96dbdf16f2ffab39b16b6
69bddfed30a487aca7b23f6f42b96698add6715e
/flask_jinja_tutorial/routes.py
3179b6980263bbb58099f962c51f97fc694fa907
[ "MIT" ]
permissive
hackersandslackers/flask-jinja-tutorial
db0fdea6a67912039858d9d2503ba33c2a226802
fd335cab74cb45208d59b32b4e04d2a1c8c7d089
refs/heads/master
2023-05-11T08:13:18.134362
2020-10-22T04:25:40
2020-10-22T04:25:40
240,763,051
59
22
MIT
2023-05-01T21:38:02
2020-02-15T18:02:43
HTML
UTF-8
Python
false
false
520
py
"""Route declaration.""" from flask import current_app as app from flask import render_template @app.route("/") def home(): """Landing page route.""" nav = [ {"name": "Home", "url": "https://example.com/1"}, {"name": "About", "url": "https://example.com/2"}, {"name": "Pics", "url": "ht...
[ "toddbirchard@gmail.com" ]
toddbirchard@gmail.com
6c22bae0d931e6788167fe1a9e37677057667dcd
73185944d6e7ec558dd7da69d3f5edefa64c1c96
/memos/python/ftp.py
69634220c9ea1844b56ea16870792563245dae43
[ "BSD-2-Clause" ]
permissive
Bingwen-Hu/hackaway
b5a233b6a1a4865389f0be04bcb63db88809e4c7
69727d76fd652390d9660e9ea4354ba5cc76dd5c
refs/heads/master
2020-08-06T01:17:39.135931
2019-10-28T11:46:55
2019-10-28T11:46:55
212,782,128
0
0
BSD-2-Clause
2019-10-28T11:46:57
2019-10-04T09:43:01
Python
UTF-8
Python
false
false
532
py
import ftplib import os.path host = 'localhost' username = 'mory' password = '2Foralfv' server = ftplib.FTP(host) server.login(username, password) def upload(server, filename, bufsize=1024): pwd = server.pwd() basename = os.path.basename(filename) ftp_path = os.path.join(pwd, f"ftp_{basename}") with...
[ "mory2016@126.com" ]
mory2016@126.com
3957ccc234288aee543d5d77d785c04f07ed6fb4
dd16dd241cf127eea916fb4fa1570a41dda120c0
/solutions/python/330.py
784f8f43447321dcd884f155c845193134876fad
[]
no_license
lilsweetcaligula/sandbox-codewars
1919a6364e00fedfcb830137c4e9736bbb411a64
8384ee0914a679c7f5ff7b49a499787ba98ec4c9
refs/heads/master
2021-06-09T19:35:58.997417
2016-12-20T03:34:03
2016-12-20T03:34:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
def ordered_count(data): from collections import OrderedDict occurences = OrderedDict() for char in data: occurences[char] = occurences.get(char, 0) + 1 return list(occurences.items())def ordered_count(data): occurences = {} for index, char in enumerate(data): if char not in occu...
[ "profit234@gmail.com" ]
profit234@gmail.com
fa0e573850ee725b47aec6801bc1151aa5e531e1
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_009/ch22_2019_08_22_21_56_31_736725.py
00a0807b6dd06956491ecb59b2036c5c115aebfa
[]
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
123
py
def eh_bissexto(x): if x%100 != 0 and x%4 == 0 or x >= 400 and x%400 == 0: return True else: return False
[ "you@example.com" ]
you@example.com
ee457909b9ff4ff93ef2e306733ce30acf03aafe
891127dfec1e5255cd403f4aedbe0ef18b5c8567
/vim-rust-git/lilac.py
1fb4ab959d6702ec00b71cfdb3973b33042c6486
[]
no_license
kktt007/repo
df708b5841474fbbf720994f9278a906a908b63b
fc039d08425081834384f84c8ffe9d3923849165
refs/heads/master
2020-04-03T06:03:10.517303
2018-10-28T11:23:08
2018-10-28T11:23:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
208
py
#!/usr/bin/env python3 from lilaclib import * build_prefix = 'extra-x86_64' pre_build = vcs_update def post_build(): git_add_files('PKGBUILD') git_commit() if __name__ == '__main__': single_main()
[ "lilydjwg@gmail.com" ]
lilydjwg@gmail.com
78ac1ca4db8bbac0fe2fa10ae488dea118e0b0e2
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_158/ch164_2020_06_22_03_33_44_148056.py
ebb8f6c73d3f9b6c73be68fb191b1c548c2fc843
[]
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
177
py
def traduz(lista,dic): traducao = [] for i in lista: for k,v in dic.items(): if k == lista[i]: traducao.append(v) return traducao
[ "you@example.com" ]
you@example.com
f1500bff82e038e6263b80b9f08de6fb5efe1169
633b695a03e789f6aa644c7bec7280367a9252a8
/samplepy/3-20_while_example.py
8841b85032f2dcb48104d5798f632919e7bc6528
[]
no_license
tnakaicode/PlotGallery
3d831d3245a4a51e87f48bd2053b5ef82cf66b87
5c01e5d6e2425dbd17593cb5ecc973982f491732
refs/heads/master
2023-08-16T22:54:38.416509
2023-08-03T04:23:21
2023-08-03T04:23:21
238,610,688
5
2
null
null
null
null
UTF-8
Python
false
false
48
py
i = 0 while i < 5: print('こんにちは')
[ "tnakaicode@gmail.com" ]
tnakaicode@gmail.com
a2ae47bade76daa690c83a9b331768ba1c841d2e
a6316e4bab288148980c1448f5fc46ec572892d5
/.history/app/main/__init___20210923044154.py
a8f0c445e7d307446a616e6aca6e66c51d785fbb
[ "MIT" ]
permissive
GraceOswal/News
74f439c912a647c55d4466043b899271ab73102c
bb2890ea1ca475db1928116f8bc7847dd8ee871d
refs/heads/master
2023-07-30T11:01:26.298536
2021-09-23T10:51:01
2021-09-23T10:51:01
409,505,360
0
0
null
null
null
null
UTF-8
Python
false
false
91
py
from flask import Blueprint main = Blueprint("main", __name__) from . import views, error
[ "graceoswal88@gmail.com" ]
graceoswal88@gmail.com
867dd0734156aa8a4b63b44b7625fbc007b21bcf
ecd34c399f31cc3fb44b433d328201248a5eda97
/batch_5pm/design/django_applications/grras/student/migrations/0003_auto_20181127_1143.py
028bd8efeea36a873bca1b41d3cebfbae0b7721f
[]
no_license
tiashasarkar26/Python_Codes
d651c1e1c9f29cff06b3f89e7ba271b18e4ea3e8
b163169900a8bdb7777db7ce592fc2e11745a36a
refs/heads/master
2021-05-26T01:30:28.555519
2019-01-07T11:28:06
2019-01-07T11:28:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
# Generated by Django 2.1.3 on 2018-11-27 06:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('student', '0002_auto_20181127_1129'), ] operations = [ migrations.RemoveField( model_name='student', name='email', ...
[ "sachinyadav3496@gmail.com" ]
sachinyadav3496@gmail.com
c394b2e2f8c00261d1dd125539a3929ae3dad829
d7e6a3ff6ecd722619fd6e620fa190ee012f81e6
/docker-initialize.py
0cf2f263bd5d3f8da7f3ca871ac4acaf7d191b71
[]
no_license
IMIO/server.urban
c0bd9085c54d1f83ab2eeab9bebde90068393815
3fdeff96b505125493ca2b037588e47a7718bde8
refs/heads/master
2023-09-04T11:01:09.343892
2021-10-07T14:49:56
2021-10-07T14:49:56
125,059,532
0
0
null
2023-05-22T08:24:32
2018-03-13T13:54:41
Python
UTF-8
Python
false
false
3,882
py
#!/usr/local/bin/python # -*- coding: utf-8 -*- import re import os import warnings warnings.simplefilter("always", DeprecationWarning) class Environment(object): """ Configure container via environment variables """ def __init__( self, env=os.environ, zope_conf="/home/imio/serv...
[ "delcourt.simon@gmail.com" ]
delcourt.simon@gmail.com
858793fe77e0ee32d5f14bf0429af142756d1f6f
5154dbf4eee6ea6499957bd1e6b6860abcb3d85a
/Barcode-Detector/detect_barcode.py
aab22c95e3694fe20d831944056cb669622f5dd1
[]
no_license
sayands/opencv-implementations
876c345a6842335d70b2d9b27e746da5a6fd938f
c8f0c7b9dca5e6d874b863bd70e4ec3898f6e7d5
refs/heads/master
2020-03-19T11:51:54.513186
2018-12-22T05:48:48
2018-12-22T05:48:48
136,481,409
2
3
null
null
null
null
UTF-8
Python
false
false
1,942
py
# import the necessary packages import cv2 import numpy as np import imutils import cv2 import argparse # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required = True, help = "Path to the image file") args = vars(ap.parse_args()) # load the ima...
[ "sayandsarkar.1997@gmail.com" ]
sayandsarkar.1997@gmail.com
cccfeaa512491377324e86a169af8626540c49fd
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v7/googleads-py/tests/unit/gapic/googleads.v7/services/test_feed_item_target_service.py
5cf68232c3f20205091b753c908914b5a55128b6
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
38,828
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
34b7d88ab40172e9658b80ac7bdca5d59ce989b3
9942e5bf9b3124325daed0b917e9ce3caf07d6c0
/main.py
61da84cc9da72b897884e660bddc8800c73f49db
[]
no_license
NotAnAmbiTurner/allow-comments
5fe3bf151e3c264e6087b6c5dbe53cb48996c6c0
a42f0bbc9cf13ea65500f40ed0f4a8a0315f58b5
refs/heads/master
2021-01-10T15:51:30.050261
2015-06-05T21:49:52
2015-06-05T21:49:52
36,957,097
0
0
null
null
null
null
UTF-8
Python
false
false
10,853
py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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...
[ "root@ip-10-47-174-141.ec2.internal" ]
root@ip-10-47-174-141.ec2.internal
9efc2c257a823e823162a87229dac7cef84fc386
5b5a49643c75aa43d5a876608383bc825ae1e147
/python99/btree/p410.py
931e867b1b13bc7de8c8b7e7ab3ae95f1d23dbe2
[]
no_license
rscai/python99
281d00473c0dc977f58ba7511c5bcb6f38275771
3fa0cb7683ec8223259410fb6ea2967e3d0e6f61
refs/heads/master
2020-04-12T09:08:49.500799
2019-10-06T07:47:17
2019-10-06T07:47:17
162,393,238
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
def internals(t): if t is None: return [] if t[1] is None and t[2] is None: return [] return [t[0]] + internals(t[1]) + internals(t[2])
[ "ray.s.cai@icloud.com" ]
ray.s.cai@icloud.com
914550d7a40e14d962db2000ff3cf862edc97f21
2163bb148d7bae8006eea473fe3de3ebeb0f6879
/modules/crlibm/script/asinpi.py
8fde79703d8dd112ea1b91abdbe1ad4608ce7c7b
[ "BSL-1.0" ]
permissive
pcaruan/nt2
b6226a745e4bf56449aae25d9801a959e04e001b
cc36110fb3db9849156c5ab625b5b44c8c4c3c8f
refs/heads/master
2021-01-18T05:50:28.768185
2012-07-02T12:40:02
2012-07-02T12:51:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,229
py
[ ## this file was manually modified by jt { 'functor' : { 'arity' : '1', 'call_types' : [], 'ret_arity' : '0', 'rturn' : { 'default' : 'T', }, 'simd_types' : [], 'special' : ['crlibm'], 'type_defs' : [], 'types' :...
[ "jtlapreste@gmail.com" ]
jtlapreste@gmail.com
0940664d6213de6aaa1e63991a890a55b9d2d2a6
3345eb032afa159a5b4b32fe0b62e4435dac523f
/dingtalk/api/rest/OapiReportCommentListRequest.py
7f06deaf681364916f9309295ef38df4df0bff9e
[]
no_license
xududu/dingDingApi
ada6c17e5c6e25fd00bdc4b444171b99bc9ebad7
b1e7c384eb8fb7f79f6f5a6879faadfa95d3eda3
refs/heads/master
2023-08-31T03:04:48.438185
2021-10-13T08:52:13
2021-10-13T08:52:13
416,558,271
0
0
null
null
null
null
UTF-8
Python
false
false
360
py
''' Created by auto_sdk on 2020.06.19 ''' from dingtalk.api.base import RestApi class OapiReportCommentListRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.offset = None self.report_id = None self.size = None def getHttpMethod(self): return 'POST' def getapiname(self): ret...
[ "739893589@qq.com" ]
739893589@qq.com
b434625738fde374f8777c41d035a0253262cd07
3a1c5ae00324fc26728ad9549cd4cf710a6dfcca
/trackmeapp/urls.py
b9edb12a83b05686606e2f504bd361daf3547807
[]
no_license
EnockOMONDI/TRACK-ME
c39b3f6ed04957a011c96735526475dae596941c
aff6704f2ce1645a6b7f044a52abf0769de7d604
refs/heads/master
2021-06-24T22:26:49.841861
2019-06-24T07:19:22
2019-06-24T07:19:22
193,167,979
0
0
null
2021-06-10T21:37:58
2019-06-21T22:46:08
Python
UTF-8
Python
false
false
450
py
from django.contrib import admin # urls for manipulating a specific item # PUT or DELETE /api/v1/items/:id # urls for general list / post # POST or GET /api/v1/items/ from trackmeapp import views from django.conf.urls import url urlpatterns = [ url('', views.index), url(r'^api/v1/items/$',views.get_post_it...
[ "enockomondike@gmail.com" ]
enockomondike@gmail.com
52de9a0ce5e42d888974ef2c9c2fd4d4f106fc1c
a8ccad537213e0d5e4b6e2df69483e0446f03ef0
/tubee/models/channel.py
06bc21723bbd541d1ce7e3f0bbd98fdc5de1712e
[ "MIT" ]
permissive
TrendingTechnology/Tubee
b3a90f58c57e190ee6a35ad7fce6d4da4c139172
ce85ce2b049e310ab83d080370c401fcfb3e7201
refs/heads/master
2023-06-26T14:45:09.534710
2021-07-25T19:48:01
2021-07-25T19:48:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,793
py
"""Channel Model""" import json from datetime import datetime, timedelta from urllib.parse import urlencode from flask import current_app, url_for from googleapiclient.errors import Error as YouTubeAPIError from .. import db from ..exceptions import APIError, InvalidAction from ..helper import try_parse_datetime from...
[ "tomy0000000@gmail.com" ]
tomy0000000@gmail.com
5634419c5c03bf57d1aadbd9cf0981bd59b8da07
90bf47df1e02910e7aa64ecf26ce2620065e8655
/scripts/telegram-upload
d9dd90e8f48ecfae130b62f153190844ec1b27b0
[ "MIT" ]
permissive
KyonLi/telegram-upload
65b306e80a3dd70e50f4d656020f285762b7d051
f02f42825b71416d6b05641055e1b1658d24899d
refs/heads/master
2021-02-05T12:20:40.417894
2020-02-28T16:19:32
2020-02-28T16:19:32
243,779,688
0
0
MIT
2020-02-28T14:21:58
2020-02-28T14:21:57
null
UTF-8
Python
false
false
161
#!/usr/bin/env python from telegram_upload.exceptions import catch from telegram_upload.management import upload if __name__ == '__main__': catch(upload)()
[ "contacto@nekmo.com" ]
contacto@nekmo.com
b23b0f2c910930fca1c5dca16e9bd389b72974c6
039f2c747a9524daa1e45501ada5fb19bd5dd28f
/第7回日本情報オリンピック 本選(オンライン)/d.py
a903f225f35ea62d79485c515796971bbda31647
[ "Unlicense" ]
permissive
yuto-moriizumi/AtCoder
86dbb4f98fea627c68b5391bf0cc25bcce556b88
21acb489f1594bbb1cdc64fbf8421d876b5b476d
refs/heads/master
2023-03-25T08:10:31.738457
2021-03-23T08:48:01
2021-03-23T08:48:01
242,283,632
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
n, m = map(int, input().split()) WIDTH = 5 stones = [[-1]*WIDTH for _ in range(n)] for i in range(n): t = list(map(int, input().split())) for j in range(0, t[0]*2, 2): stones[i][t[j+1]-1] = t[j+2] print(stones) def dfs(i, j, tobaseru): if i == n-1: return 0 print(i, j, tobaseru) co...
[ "kurvan1112@gmail.com" ]
kurvan1112@gmail.com
9678776fcbeeedb77e358725a3a3e62711e2e57e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/480/usersdata/316/110329/submittedfiles/Av2_Parte2.py
2266beec7fc65118f02ec82898f3f4e50d2967d9
[]
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
277
py
# -*- coding: utf-8 -*- n=int(input('digite um numero maior ou igual a um: ')) while n<1: print('digite um numero maior ou igual a um: ') ct=0 while ct<=n: ct=ct+1 if ct==n: al=n print(al) else: ct=ct+1 al=n//ct print(al)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
b1b383285783c21b864984451ca92c490541ea88
9aea1b19a8681b4c6b15d628a080982fb2d98b39
/mianJing111111/Google/Print N*N two-dimensional matrix in zigzag form.py
494a7b78f5b21bfda4d9c4348df57addee493d2d
[]
no_license
yzl232/code_training
ee7612efc6f166742fcf48e1af715f57a624d3aa
fc165027c3d7b1fec58ebfad2f9ada275a6b8c03
refs/heads/master
2021-01-21T04:32:02.522931
2016-07-01T21:35:29
2016-07-01T21:35:29
26,989,266
2
0
null
null
null
null
UTF-8
Python
false
false
884
py
# encoding=utf-8 ''' Print N*N two-dimensional matrix in zigzag form ''' #http://www.sumeetkataria.com/2012/12/print-two-dimensional-matrix-in-zigzag-form/ # 和diagonal一脉相承 class Solution: def diag(self, matrix): if not matrix:return m= len(matrix); n= len(matrix[0]) ret = [[]for i in range(...
[ "buptyuzhenglin@gmail.com" ]
buptyuzhenglin@gmail.com
01cefa58531e75a6d39361c7c0a768bd43f83baf
cd876d32aa66112892dc9550837ad843e3e03afd
/env_carzone/Lib/site-packages/django/db/models/sql/subqueries.py
2c67e0fd1f137729cefeeab7e81c1eba28b68149
[ "BSD-3-Clause" ]
permissive
viplavdube/Car-Yard-App
7665b7e6e54f3b0e4a4da563151f85d65c225cef
65381a50f828e80f31d25d4f35e497f51c2d224d
refs/heads/master
2023-04-19T03:49:18.991604
2021-04-27T17:51:10
2021-04-27T17:51:10
349,094,392
0
0
null
null
null
null
UTF-8
Python
false
false
7,480
py
""" Query subclasses which provide extra functionality beyond simple data retrieval. """ from django.core.exceptions import FieldError from django.db import connections from django.db.models.query_utils import Q from django.db.models.sql.constants import ( CURSOR, GET_ITERATOR_CHUNK_SIZE, NO_RESULTS, ) fro...
[ "viplav45@gmail.com" ]
viplav45@gmail.com
b8fc3a848f91b830424fc9bdcc7e4d41814df353
b517b4e67f098e5ae4fd838e1a63b14251948c30
/tools/gen_projects_json.py
035873fc84520c75f0af762fb74121fb3fe81450
[ "BSD-3-Clause" ]
permissive
greut/zerover
8df933033dbacf2473f31262205f8c0c5d0868f8
48cd2e0d54d74fa5f1355dc8812e57f4650548d4
refs/heads/master
2023-08-29T22:15:01.930813
2021-10-25T00:28:40
2021-10-25T00:28:40
283,958,278
0
0
NOASSERTION
2020-07-31T06:16:55
2020-07-31T06:16:54
null
UTF-8
Python
false
false
7,554
py
# for now, run like: # GH_USER=user GH_TOKEN=$(cat /path/to/token/file) python tools/gen_entry_json.py # get a token from here: https://github.com/settings/tokens import os import re import sys import json import time import base64 import urllib2 import datetime from pprint import pprint import yaml from boltons.ur...
[ "mahmoud@hatnote.com" ]
mahmoud@hatnote.com
3ab159c524c4451cc111e986411d130253aa8977
421f6ce9490876be113e5ed1ac173b1f6d70cb66
/newYork/new_york_analysis/recursive_top_level/k_craigslist4237950944/craigslist4237950944scraper/craigslist4237950944scraper/settings.py
0f86c17e8706bfe25577699056f325a942f97a02
[]
no_license
EricSchles/humanTraffickingTalk
a1f4770c4380ea0424663baac79686be5b74733a
f399e6e6188601f34eab3fd8e7fc4a3ca30d9b14
refs/heads/master
2021-01-01T06:11:24.424134
2014-08-14T18:51:23
2014-08-14T18:51:23
14,879,906
17
5
null
2019-10-15T11:10:13
2013-12-03T01:15:11
Python
UTF-8
Python
false
false
466
py
# Scrapy settings for craigslist4237950944scraper project # # For simplicity, this file contains only the most important settings by # default. All the other settings are documented here: # # http://doc.scrapy.org/topics/settings.html # BOT_NAME = 'craigslist4237950944scraper' BOT_VERSION = '1.0' SPIDER_MODULES =...
[ "ericschles@gmail.com" ]
ericschles@gmail.com
41566985deecd863ddefa9a5efca5f7d012fd748
ad69effc17464cd8d0b903271e49665fe355056e
/Example/Level_1/HCNOT_Cloud.py
044f377c731cbd13bd2de564e64754366c5a47e2
[ "Apache-2.0" ]
permissive
yunfan/QCompute
73e53745c30d33147ee017b2807e925c0899b166
588b46020af209938f370032185ee8fe3e300795
refs/heads/master
2022-12-16T03:21:57.886604
2020-09-14T10:49:12
2020-09-14T10:49:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,181
py
#!/usr/bin/python3 # -*- coding: utf8 -*- # Copyright (c) 2020 Baidu, Inc. 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...
[ "quantum@baidu.com" ]
quantum@baidu.com
e02898c5aeba4b5b90de60c8136fcb386812fb4b
32cb0be487895629ad1184ea25e0076a43abba0a
/LifePictorial/top/api/rest/InventoryOccupyAdjustRequest.py
0fcfccbc81d0d90d2e843083437d07eb30662653
[]
no_license
poorevil/LifePictorial
6814e447ec93ee6c4d5b0f1737335601899a6a56
b3cac4aa7bb5166608f4c56e5564b33249f5abef
refs/heads/master
2021-01-25T08:48:21.918663
2014-03-19T08:55:47
2014-03-19T08:55:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
''' Created by auto_sdk on 2014-02-10 16:59:30 ''' from top.api.base import RestApi class InventoryOccupyAdjustRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.biz_unique_code = None self.items = None self.operate_time = None self.tb_...
[ "poorevil@gmail.com" ]
poorevil@gmail.com
3989002146b9df5e87783f6dde069fd2e71af4c0
c9b5ed2eb5d596f141004f7b82e79bc2fb36072d
/equipes/api/viewsets.py
95c43c0e89cc7516650c34931f889ccf7910c4f4
[]
no_license
jocsakesley/encontrocomcristo
3fd670544a42abfc43f2c2d6a34c8e3fdd9d2550
8e9bbf41f6d80f2ac15fc4240ff4b108957d5cd6
refs/heads/master
2023-02-24T15:20:01.129002
2021-02-04T17:33:06
2021-02-04T17:33:06
330,020,768
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from rest_framework.viewsets import ModelViewSet from .serializers import EquipesSerializer from equipes.models import Equipe class EquipesViewSet(ModelViewSet): queryset = Equipe.objects.all() serializer_class = EquipesSerializer
[ "jocsadm@gmail.com" ]
jocsadm@gmail.com
2f6349c4d049536f740fc23b86649ebf46271558
0144575d1dd48e24315d9f46c11242210e03dbd2
/performance_table.py
1ceacc6c7af6b7e160107d4bfcdda3e2fc9cbcf2
[]
no_license
eglrp/semseg
6aed63f8a501e9ce353129e5f49cbea400081ad2
fb589e209449a5d77fbb6597f497b710e41eb3ba
refs/heads/master
2020-04-09T16:44:10.110715
2018-12-01T17:30:52
2018-12-01T17:30:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,263
py
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-_resnet18_32s import torch import os import argparse import cv2 import time import numpy as np import visdom from torch.autograd import Variable from semseg.dataloader.camvid_loader import camvidLoader from semseg.dataloader.cityscapes_loader import cityscapesLoader fro...
[ "guanfuchen@zju.edu.cn" ]
guanfuchen@zju.edu.cn
6d31d0780c83c6398728440afd64bc17dcf343b3
5686d1a31b87a47a4774270c00cd141c221cf065
/axonius_api_client/projects/cert_human/all_logs_list.py
17073e00b86e58c886a5fc71d879710ef1908897
[ "MIT" ]
permissive
Axonius/axonius_api_client
e7eec0845eee9e1b314446121551c584655c2631
be49566e590834df1b46494c8588651fa029b8c5
refs/heads/master
2023-08-19T04:43:13.717989
2023-08-10T18:49:40
2023-08-10T18:49:40
194,601,817
17
22
MIT
2023-08-30T18:45:15
2019-07-01T04:52:21
Python
UTF-8
Python
false
false
62,965
py
# -*- coding: utf-8 -*- """Fallback for all_logs_list.json.""" import datetime import dateutil.parser UPDATED: str = "2022-02-15 20:54:41.901119+00:00" FALLBACK_UPDATED: datetime.datetime = dateutil.parser.parse(UPDATED) FALLBACK_JSON: str = """{ "operators": [ { "name": "Google", "email": [ ...
[ "jim@axonius.com" ]
jim@axonius.com
c589c759c1731443ec9495101156e93e9dd654cb
4c9c2940ef3a07e2756fcceddf01acd384ebde01
/Python/[7 kyu] find min and max.py
2117f593a215a37d98a9659770af5f8c22eb1a20
[ "MIT" ]
permissive
KonstantinosAng/CodeWars
7d3501a605f7ffecb7f0b761b5ffe414e2f1983a
157818ece648454e882c171a71b4c81245ab0214
refs/heads/master
2023-04-11T09:44:27.480064
2023-03-26T21:37:07
2023-03-26T21:37:07
245,296,762
6
6
null
null
null
null
UTF-8
Python
false
false
320
py
# see https://www.codewars.com/kata/57a1ae8c7cb1f31e4e000130/solutions/python from TestFunction import Test def get_min_max(seq): seq = sorted(seq) return (seq[0], seq[-1]) Test((1, 1)).assert_result(get_min_max([1])) Test((1, 2)).assert_result(get_min_max([1,2])) Test((1, 2)).assert_result(get_min_max([2,1]))
[ "kwstantinos.agelopoulos@outlook.com" ]
kwstantinos.agelopoulos@outlook.com
9d0452686d70748cb23ab6c975137fbb3c5fcaae
d281aed005dae06a723c01be4d516b8b5333bc15
/CodingInterview/25_MergeSortedLists.py
599802befc5b73d6e774a6c77caa6263440a7246
[]
no_license
tcandzq/LeetCode
4133d17245b2ff14e06ce69ee640a786fad5186d
af5dc310534f12a6ded10226ce05aba65ec119d9
refs/heads/master
2022-08-25T13:57:07.350906
2022-08-21T09:46:09
2022-08-21T09:46:09
200,478,099
23
6
null
null
null
null
UTF-8
Python
false
false
1,042
py
# -*- coding: utf-8 -*- # @File : 25_MergeSortedLists.py # @Date : 2020-04-01 # @Author : tc """ 剑指 Offer 25. 合并两个排序的链表 输入两个递增排序的链表,合并这两个链表并使新链表中的节点仍然是递增排序的。 示例1: 输入:1->2->4, 1->3->4 输出:1->1->2->3->4->4 限制: 0 <= 链表长度 <= 1000 注意:本题与主站 21 题相同:https://leetcode-cn.com/problems/merge-two-sorted-lists/ 参考:https:/...
[ "2448424636@qq.com" ]
2448424636@qq.com
e5c8a6c29205cff9058db3074874fb636ff7c7eb
16e75b823e6705e4b40ab1a6529b3af7ca8affd0
/python/calculating_with_Functions.py
714e78504f04bcbcf9f09e3eecfc7e3035df8d9c
[]
no_license
RedSnip8/Codewars
18be89a4b47ec66e2222a06f73d7e0f759928ab0
ac91aeabdf5876db86cc861fdfee732eaf179da4
refs/heads/master
2020-06-11T13:48:57.304829
2019-08-16T15:23:01
2019-08-16T15:23:01
193,987,151
0
0
null
null
null
null
UTF-8
Python
false
false
932
py
def zero(y= None): x = 0 return x if y == None else eval(y) def one(y = None): x = 1 return x if y == None else eval(y) def two(y = None): x = 2 return x if y == None else eval(y) def three(y = None): x = 3 return x if y == None else eval(y) def four(y = None): x = 4 return x...
[ "FCipolone@gmail.com" ]
FCipolone@gmail.com
f39c7a5b943b876a2ffe52d9fdf5e2617c517899
620f2f9777cf02c7098970165a1510c13aea9b58
/HelloDjango/publications/forms.py
9a8d58397fc4d89d1a9ff68e3de9478e35130b4b
[]
no_license
Eldar1988/Petronews
2a91dcb8fc4a50086a32e2ec69fa446f1be08032
7f8119308fbc89237c31cad4432a5a61bc0ff824
refs/heads/master
2023-04-30T21:01:26.225505
2021-05-14T15:47:15
2021-05-14T15:47:15
312,032,840
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
from django import forms from .models import Review class ReviewForm(forms.ModelForm): """Форма комменатриев""" class Meta: model = Review exclude = ('pub_date', 'public')
[ "elfarych@gmail.com" ]
elfarych@gmail.com
4d1a0c1e2c3bf38b9435b0496dffd18c16e87b1f
5963c12367490ffc01c9905c028d1d5480078dec
/tests/components/broadlink/test_heartbeat.py
de47a16c0b971186457f04a3c2a7da17c3b2f974
[ "Apache-2.0" ]
permissive
BenWoodford/home-assistant
eb03f73165d11935e8d6a9756272014267d7d66a
2fee32fce03bc49e86cf2e7b741a15621a97cce5
refs/heads/dev
2023-03-05T06:13:30.354545
2021-07-18T09:51:53
2021-07-18T09:51:53
117,122,037
11
6
Apache-2.0
2023-02-22T06:16:51
2018-01-11T16:10:19
Python
UTF-8
Python
false
false
3,344
py
"""Tests for Broadlink heartbeats.""" from unittest.mock import call, patch from homeassistant.components.broadlink.heartbeat import BroadlinkHeartbeat from homeassistant.util import dt from . import get_device from tests.common import async_fire_time_changed DEVICE_PING = "homeassistant.components.broadlink.heartb...
[ "noreply@github.com" ]
BenWoodford.noreply@github.com
18e5ec91b09ede0ac142fbfac554fef3763e3fa7
5f8a3fcdb92b5065e8bda79e5b729f9c103ff37a
/utils/jobs/tests/testjob.py
58369524ea7a466ade2eedf0b6d7eafa5e6cacbd
[ "BSD-3-Clause" ]
permissive
iLaus/ave
ba9662f5279d5aa1d66aeb1c28b0bde6304424d5
07c5914091880998bd18c54d1aa391efbe178e35
refs/heads/master
2023-06-11T04:23:30.290261
2016-11-16T12:35:11
2016-11-16T12:35:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,072
py
#!/usr/bin/python2 # Copyright (C) 2014 Sony Mobile Communications AB. # All rights, including trade secret rights, reserved. from __future__ import print_function import sys import vcsjob import common from ave.utils.testjob import TestJob def print(string): """ Redefining print to write to stderr instea...
[ "quanhao.xu@sonymobile.com" ]
quanhao.xu@sonymobile.com
437c70c527198968c3e9d81d9169408e2b0ff5a0
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_surrounded.py
08c24207761d01aaae3c74fa6bdb9923e1e15813
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
254
py
from xai.brain.wordbase.nouns._surround import _SURROUND #calss header class _SURROUNDED(_SURROUND, ): def __init__(self,): _SURROUND.__init__(self) self.name = "SURROUNDED" self.specie = 'nouns' self.basic = "surround" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
f4da534ba4057c87292dc9c91e0c932e9bfce702
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/WH400_Dark_3step_25_12_8TeV_Tune4C_pythia8_cfi.py
69431ae4f23b6050470c565ac2271bb9d3c0877b
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
1,377
py
import FWCore.ParameterSet.Config as cms generator = cms.EDFilter("Pythia8GeneratorFilter", crossSection = cms.untracked.double(0.000296e-03), maxEventsToPrint = cms.untracked.int32(0), pythiaPylistVerbosity = cms.untracked.int32(1), filterEfficiency = cms.untracked.double(1.0), pythiaHepMCVerbosit...
[ "sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch" ]
sha1-481a5a2ac9973b7cab990140e7a395466f50a31e@cern.ch
9a21672e4ff1339f1ead29ff5b9b0a2d31c17485
c7cce6315bf8439faedbe44e2f35e06087f8dfb3
/Data Structure/Swapping Variables.py
59e6c77020f729c454e3dd63520d6f9b86dcd6a7
[]
no_license
sipakhti/code-with-mosh-python
d051ab7ed1153675b7c44a96815c38ed6b458d0f
d4baa9d7493a0aaefefa145bc14d8783ecb20f1b
refs/heads/master
2020-12-26T13:05:06.783431
2020-07-08T07:00:59
2020-07-08T07:00:59
237,517,762
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
x = 10 y = 11 # z = x # x = y # y = z # exactly the same as above x, y = y, x x, y = (y, x) print("x", x) print("y", y) one = 1 two = 2 three = 3 one, two, three = three, two, one print("One", one) print("two", two) print("three",three)
[ "476061@gmail.com" ]
476061@gmail.com
c9fe9cc88a0b92aef879669764c3c1e256bc8836
f2d99d437f29af7bd2d4a5ea8af57f49e3d30871
/data/lib-dynload/_collections.py
2d420c11e3ace2227483b24b664bff7c371ac007
[]
no_license
terrence2/millipede
6d68a09773f83e304702d72a38475946590e3079
3e1d63899f54f1154cb6a0bc3634815623803246
refs/heads/master
2020-04-01T14:28:06.810699
2011-05-30T20:15:30
2011-05-30T20:15:30
839,748
0
0
null
null
null
null
UTF-8
Python
false
false
75
py
class defaultdict: pass class deque: pass def _count_elements(): pass
[ "terrence@zettabytestorage.com" ]
terrence@zettabytestorage.com
aa89c1d6a5f8024b7dc1f15ed37ed9edee6d4c30
9cec93a18ea94504947820205d0faae4d67ecd8d
/TTHAnalysis/python/tools/bbvars.py
180fdf2e687695cd72d84e065469010612de80b6
[]
no_license
DESY-CMS-SUS/cmgtools-lite
de88b1d5dc20a925ed5b7c7be69fa3ef677955c6
db52d50047178563a0eb7f5858ae100aa408ec68
refs/heads/8_0_25
2021-05-23T04:36:22.900460
2017-11-09T10:32:41
2017-11-09T10:32:41
60,184,794
3
9
null
2021-02-17T23:22:12
2016-06-01T14:37:18
Python
UTF-8
Python
false
false
1,920
py
from CMGTools.TTHAnalysis.treeReAnalyzer import * class bbVars: def __init__(self): self.branches = [ "minDrbbLoose", "minMbbLoose", "minDrbbMedium", "minMbbMedium" ] self.branches += [ "JetPt_%d" % i for i in xrange(1,9) ] def listBranches(self): return self.branches[:] def jjvals(...
[ "gpetruc@gmail.com" ]
gpetruc@gmail.com
6be7c9fe7d446ad34d69fd13ba2238b3bf047baa
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_206/1475.py
d87c6cb57a9eac7bff971611910ed5fc47035226
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
720
py
def ratatuj(input): lines = input.split('\n') cases = int(lines.pop(0)) for case in range(cases): destination, num_horses = (int(x) for x in lines.pop(0).split(' ')) horses = [] for i in range(num_horses): horses.append([float(x) for x in lines.pop(0).split(' ')]) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
eacb8d68240bb4e7c2787ad97c723754766f9aa3
17ba39d104403a36ecdfe83da0d5424feb3fdf24
/ologytalks/permissions.py
b1ab1e6d66e9a92407167f80bceecffe3cbbb7d8
[]
no_license
bellomusodiq/obs
46bc3bfc316d224c732a8747649016ca2fdf9493
a207bf51c2e21c10996e53f01e56368b648c7e6e
refs/heads/master
2020-04-02T21:35:46.813250
2018-10-30T11:11:38
2018-10-30T11:11:38
151,956,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,444
py
from rest_framework.permissions import BasePermission class IsOwnerOrAdminOrReadOnly(BasePermission): message = "you must be an admin or owner of this object" def has_permission(self, request, view): if request.method == 'GET': return True try: if(request.user): ...
[ "bmayowa25@gmail.com" ]
bmayowa25@gmail.com
a0efde970cb98aa825313ebbb6067553c95ab9d6
71f767a09d16ae694f9b20b5a1dc32d53b15f44c
/tensorflow/python/framework/auto_control_deps.py
2e656857e873f31f975dcdf91cc87c78a40fb3e9
[ "Apache-2.0" ]
permissive
an9111998/tensorflow
379a7d2f4737fe2cc6828534bed3174b598ba471
e54190d1ce02f400b13b002c00258fc82b9f0c1c
refs/heads/master
2022-01-24T19:45:40.848674
2019-07-20T00:11:27
2019-07-20T00:27:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,418
py
# Copyright 2018 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...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
8d3e84da19780be4e79587e6f35ae7648659bf04
25279384025751b3b400aea006f164d66c167104
/GUI/pyQt/Qpen直线、曲线和形状的轮廓.py
77ddd1b6f90097193c8f94da9fa70690617e44f1
[]
no_license
linruohan/my_study
6fda0b49f4c671919ec7a7fc6ba596b49ec66e59
7666f93259495b6928751d50eb1bab114e118038
refs/heads/master
2020-03-28T18:26:47.776943
2018-09-17T05:52:17
2018-09-17T05:52:17
148,882,060
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
#coding=utf-8 import sys from PyQt5.QtWidgets import QWidget, QApplication from PyQt5.QtGui import QPainter, QColor, QPen from PyQt5.QtCore import Qt class Example(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setGeometry(300,300,250,150) ...
[ "mjt1220@126.com" ]
mjt1220@126.com
f1bff66ca17856d7daa38615e4d6cde69c8fe393
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_335/ch25_2019_08_21_17_44_46_298543.py
be25e478e572401ef41e3d5f280eda85102adb81
[]
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
252
py
def PrecoPassagem(d): if (d<=200): v = d*0.50 return v else: v = 100 + ((d - 200)*0.45) return v distancia = int(input("Quantos km você deseja percorrer? ")) print ("Você pagará R$:",PrecoPassagem(distancia))
[ "you@example.com" ]
you@example.com
3982069487a47412aa7da1bbc082538c3a898785
b5fb45288ed2a204692051ab78e72d8aa6e5accd
/mmdet/apis/inference.py
1156f4793490870539aeaa8377e577375f0c32db
[ "Apache-2.0" ]
permissive
nithinksath96/MMdetection_TensorRT_FP16
d4987f003798f5d6d4fe5bde2f30dd5ee2e8596d
c8379b209d4deeff9350baf5bbedfc95fb8941f4
refs/heads/master
2023-02-13T20:00:21.834541
2021-01-06T09:24:20
2021-01-06T09:24:20
327,260,988
0
0
null
null
null
null
UTF-8
Python
false
false
7,048
py
import warnings import matplotlib.pyplot as plt import mmcv import numpy as np import pycocotools.mask as maskUtils import torch from mmcv.parallel import collate, scatter from mmcv.runner import load_checkpoint from mmdet.core import get_classes from mmdet.datasets.pipelines import Compose from mmdet.models import b...
[ "nsathish@compute-0-32.local" ]
nsathish@compute-0-32.local
feee11da0661cbf0802e5ac76ac8a38821bbc122
59166105545cdd87626d15bf42e60a9ee1ef2413
/dbpedia/api/amateur_boxer_api.py
c227c6cf706017cfa8ac1453e48024018cee3c02
[]
no_license
mosoriob/dbpedia_api_client
8c594fc115ce75235315e890d55fbf6bd555fa85
8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc
refs/heads/master
2022-11-20T01:42:33.481024
2020-05-12T23:22:54
2020-05-12T23:22:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,905
py
# coding: utf-8 """ DBpedia This is the API of the DBpedia Ontology # noqa: E501 The version of the OpenAPI document: v0.0.1 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six f...
[ "maxiosorio@gmail.com" ]
maxiosorio@gmail.com
68dbafde1e9ecd9adcc41f8edda01ab84bbb373f
d61f7eda203a336868c010abb8f9a6f45dd51adb
/112. Path Sum.py
23fa2d90f64714304161e59c34bc215b99630415
[]
no_license
Mschikay/leetcode
b91df914afc728c2ae1a13d3994568bb6c1dcffb
7c5e5fe76cee542f67cd7dd3a389470b02597548
refs/heads/master
2020-04-17T12:11:38.810325
2019-10-06T02:37:32
2019-10-06T02:37:32
166,570,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
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 hasPathSum(self, root: TreeNode, sum: int) -> bool: if root is None: return False de...
[ "chikaytong@gmail.com" ]
chikaytong@gmail.com
02b05f51a18eff009e4ca6ac028d86c3662f4307
a5aed538803796128067d9d37ca6ec1bca9aa0c3
/modin/core/io/text/fwf_dispatcher.py
63440776cfa97888287decbe2995341730802307
[ "LicenseRef-scancode-generic-cla", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
yutiansut/modin
6ae06897e05a929c757e25061f304c16922a821d
75f698cdcb63a027a4fe5032755ac2502ed5c763
refs/heads/master
2023-08-30T10:54:31.942919
2021-11-19T01:31:36
2021-11-19T01:31:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
[ "noreply@github.com" ]
yutiansut.noreply@github.com
e8411b35069ed25cdedb918feebadb22f0528595
e515187a9e5c822bacef8b4792105da8512ba39e
/packages/graphx/src/graphx/configurations/infrastructure/db/__init__.py
a18b977c10d3cd41c8d10c5280318bca61c4e3a7
[ "Apache-2.0" ]
permissive
0mars/graphx
2f486bf96932fc5c6630986fd0f512532db9e15b
8f58df3979b5fd96e4183811c9d8339c92367d00
refs/heads/master
2022-12-18T15:22:05.405999
2019-09-03T08:21:51
2019-09-03T08:21:51
205,663,133
0
1
Apache-2.0
2022-12-08T06:06:28
2019-09-01T10:49:40
Python
UTF-8
Python
false
false
604
py
from graphx.configurations.infrastructure.db.definitions import GraphConfigurator from registry.services import BootableService, Container class DataBaseService(BootableService): def boot(self, container: Container): from graphx.configurations.app.settings import Props url = container.get(Props....
[ "omars@php.net" ]
omars@php.net
8b9734df3e725ec5fb691592a7e724c541b204a5
f72c9e46af5ce5ac738693daf65e67a0962a229a
/sdk/lusid/models/barrier.py
c02a585a2af106a4017e6989b472e1dde36b5e69
[ "MIT" ]
permissive
finbourne/lusid-sdk-python
db8ce602f8408169f6583783c80ebbef83c77807
32fedc00ce5a37a6fe3bd9b9962570a8a9348e48
refs/heads/master
2023-08-29T18:22:49.488811
2023-08-29T15:57:26
2023-08-29T15:57:26
125,082,278
11
11
NOASSERTION
2023-04-28T07:16:48
2018-03-13T16:31:54
Python
UTF-8
Python
false
false
7,904
py
# coding: utf-8 """ LUSID API FINBOURNE Technology # noqa: E501 The version of the OpenAPI document: 1.0.463 Contact: info@finbourne.com Generated by: https://openapi-generator.tech """ try: from inspect import getfullargspec except ImportError: from inspect import getargspec as getful...
[ "concourse@finbourne.com" ]
concourse@finbourne.com
fa7e6ec31a063094899f63ab0cf62f6dd72ffb28
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_97/1346.py
ca07568f834fc7719a52debba1dd336b352b1e97
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
from sys import stdin, stderr L = stdin.readlines() n = int(L[0]) N = 2000000 R = {} for i in range(1, N + 1): l = len(str(i)) s = str(i) * 2 q = min(map(int, [s[j:j + l] for j in range(l) if s[j] != '0'])) if (not q in R): R[q] = [] R[q].append(i) if i % 10000 == 0: print(q, i,...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
5f75ac2ecb15eea81243c025e8ba3d1a02127730
8d4e50b2aee0f1e95150d6d0a4f367b74be9ecef
/chapter_9/vector2d.py
82955d542c3b98164c82d6a687a3bec038b631c5
[]
no_license
navill/TIL_fluent_python
c953f2103bf4efe9f8061dc29ab7c59aff1c3aae
007c9510251fb740d12d611b8a995ea5eee3bd1c
refs/heads/master
2020-07-25T08:16:17.823262
2019-11-11T12:38:09
2019-11-11T12:38:09
208,227,623
0
0
null
null
null
null
UTF-8
Python
false
false
2,018
py
# vector2d.py import math from array import array class Vector2d: typecode = 'd' # 아래의 속성들이 이 클래스에 속함을 인터프리터에게 제공한다. # 인터프리터는 이 속성들을 각 객체의 튜플형 구조체에 저장한다. __slots__ = ('__x', '__y') # 만일 __slots__을 정의한 상태에서 이 객체를 약한 참조로 사용하고 싶을 경우 # __weakref__ 속성을 slots 리스트에 추가해야한다. def __init__(self, x, ...
[ "blue_jihoon@naver.com" ]
blue_jihoon@naver.com
d87680f20f549f97ba99bd1930d17b07b6818f09
e53cfac2eadeaf9727ec055b4cd524320cf8ded5
/Программы Хирьянова/урок 24/prod_recursive.py
9a0057b92f0411db74ed4e2f23096d493ae2c406
[]
no_license
NevssZeppeli/my_ege_solutions
55322d71dcc9980e2cf894ea2b88689dca807943
7a25c93b8a58b03d0450627f1217972fbf7d04f6
refs/heads/master
2023-06-17T19:58:28.388391
2021-07-03T16:03:36
2021-07-03T16:03:36
380,223,538
3
1
null
null
null
null
UTF-8
Python
false
false
121
py
def production(n: int): if n == 0: return 1 else: return int(input()) * production(n - 1)
[ "root@NevssPC.localdomain" ]
root@NevssPC.localdomain
d7ee77e3d8ad0f6c23b3cb7b41aaad7fd1906696
478de38a95c2729ee2ef8c77b1c5a81f23aedb59
/Programming-Algorithm/Spiral Matrix.py
27cd82292876a56bf1c778ad1c982c640a3f1508
[]
no_license
shuzhancnjx/leetcode-
0c711f720ef653ddff2af3af697a453122c28403
12093c92ef33707ad8ccdd59ad040c04cad1ee3b
refs/heads/master
2020-12-24T16:32:25.976747
2016-03-03T15:36:44
2016-03-03T15:36:44
37,101,621
0
0
null
null
null
null
UTF-8
Python
false
false
966
py
# -*- coding: utf-8 -*- """ Created on Tue Sep 08 13:20:38 2015 @author: ZSHU """ class Solution(object): def spiralOrder(self, matrix): """ :type matrix: List[List[int]] :rtype: List[int] """ if matrix==[]: return [] l, w=len(matrix[0])-1,...
[ "zshu@ets.org" ]
zshu@ets.org
6f8178fea181b97a7e695ff4f93922dfa44a0917
57cb9fef5efac78758f5d151b959ca2216c94083
/edx/app/analytics_api/venvs/analytics_api/lib/python2.7/site-packages/vertica_python/tests/test_timezones.py
4d355c6b57297212ccede1b64f159f562b7998b5
[]
no_license
JosiahKennedy/openedx-branded
9751d5362088276a87b2e0edca0913568eeb1ac4
d16a25b035b2e810b8ab2b0a2ac032b216562e26
refs/heads/master
2022-12-21T02:39:17.133147
2020-03-25T06:03:23
2020-03-25T06:03:23
249,895,218
0
1
null
2022-12-08T01:23:48
2020-03-25T05:33:05
null
UTF-8
Python
false
false
2,022
py
from __future__ import print_function, division, absolute_import from collections import namedtuple from datetime import datetime import pytz from .base import VerticaPythonTestCase TimeZoneTestingCase = namedtuple("TimeZoneTestingCase", ["string", "template", "timestamp"]) class TimeZoneTestCase(VerticaPythonTest...
[ "josiahk@phyziklabs.com" ]
josiahk@phyziklabs.com
0f5ed3b5de4777aba2aee99f042db573a2f5b344
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/228/28946/submittedfiles/swamee.py
306a8bc42c38f847da8190215924591b8e721db7
[]
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
504
py
# -*- coding: utf-8 -*- import math f=float(input('digite um valor para f:')) l=float(input('digite um valor para l:')) q=float(input('digite um valor para q:')) H=float(input('digite um valor para variação de altura:')) O=float(input('digite um valor para O:')) g=9.81 e=0.00002 D=((8*f*l(q**q))**(0.25))/((math.pi*g*H)...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
27000961ba8076f809d658fa2e28d4e5ab84a297
942ee5e8d54e8ebe9c5c841fbfdd1da652946944
/2001-2500/2426.Number of Pairs Satisfying Inequality.py
3b7028b3a52618de8e98abafe451e46b4cfbb6eb
[]
no_license
kaiwensun/leetcode
0129c174457f32887fbca078fb448adce46dd89d
6b607f4aae3a4603e61f2e2b7480fdfba1d9b947
refs/heads/master
2023-08-31T07:30:50.459062
2023-08-27T07:59:16
2023-08-27T07:59:16
57,526,914
69
9
null
2023-08-20T06:34:41
2016-05-01T05:37:29
Python
UTF-8
Python
false
false
419
py
from sortedcontainers import SortedList # (nums1[i] - nums2[i]) - (nums1[j] - nums2[j]) <= diff # d[i] <= diff + d[j] class Solution: def numberOfPairs(self, nums1: List[int], nums2: List[int], diff: int) -> int: sl = SortedList() res = 0 for d in map(lambda num: num[0] - num[1], zip(nums...
[ "skw_kevin@126.com" ]
skw_kevin@126.com
b9e8b99fbfbc307a4e9ea6e662aa66a56d9122d3
7177693e2e12f510bf1d3af38e091b749693a0ab
/kafkatest/b.py
401db2ef4d2777f1d29f0de0dc4f3ba440d30e43
[]
no_license
fjl121029xx/MyPyspark
4725560861b27a10579ff0ad244684b195fee8bc
edeeb024cd168e111eeba6af5aca9d5674e7685c
refs/heads/master
2021-07-12T00:55:40.178353
2020-07-15T03:53:41
2020-07-15T03:53:41
159,476,636
2
0
null
null
null
null
UTF-8
Python
false
false
3,126
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'fjl' """ consumer b.py 消费者B """ import pickle import uuid import time from mykafka import KafkaConsumer from mykafka.structs import TopicPartition, OffsetAndMetadata from mykafka import ConsumerRebalanceListener consumer = KafkaConsumer( bootstrap_server...
[ "sishengqikuo_xx@163.com" ]
sishengqikuo_xx@163.com
7795c50652ed6a2675da6eae8ed846b238471dd8
b5c2571948d1e7fd6a21cfe3267cb7de9088cf56
/Bytecode Decompile/DirectScrolledList.py
3ff9ef15fe66afa4cf73faa6fc71dd4ea74262b3
[]
no_license
C0MPU73R/Toontown-2003-Bytecode
ff32042d4da5894ec3a4fb7da43614df26d25a9d
aa6862f86034f342d5fee9934cd6ed3e83de99f3
refs/heads/master
2023-05-03T11:55:57.959617
2018-12-02T00:05:43
2018-12-02T00:05:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,909
py
from DirectFrame import * from DirectButton import * import Task, types class DirectScrolledList(DirectFrame): __module__ = __name__ def __init__(self, parent=aspect2d, **kw): self.index = 0 self.forceHeight = None if kw.has_key('items'): for item in kw['items']: ...
[ "flamingdog101@gmail.com" ]
flamingdog101@gmail.com
46aaa15b9701d09c9ff46aaff56711dfc90cc758
319e76db32207acf2328a7165e0959f5a8b23500
/Halite3_Python3_Linux-AMD64/sendetrain.py
a95b01fa09ef2f8c65b13e020fcb7d0defaca647
[]
no_license
ogu83/MachineLearningPythonExercise
0270e5b4aa659696f310decc8467e7e24520cbda
69c4860d04e4caa13b2b741d088634aac1e5a283
refs/heads/master
2020-04-09T18:58:06.341741
2020-02-21T08:04:17
2020-02-21T08:04:17
160,529,891
0
0
null
null
null
null
UTF-8
Python
false
false
4,991
py
import tensorflow as tf import os import numpy as np import time import random import keras from tqdm import tqdm from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Dropout, Activation, Flatten from tensorflow.keras.layers import Conv2D, MaxPooling2D from tensorflow.keras.callba...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
30117f673a8ee0d22905561068715ecacb8c205f
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2/zzzander.w/pancakes.py
4512821996272dc58fecec59df54b677078f07dd
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
498
py
def flipStack(stack): stack = stack.replace('-', '1') stack = stack.replace('+', '-') stack = stack.replace('1', '+') return stack input = file('B-large.in', 'r') T = int(input.readline().strip()) for X in range(1,T+1): stack = list(input.readline().strip()) pancakes = ''.join(map(str, stack)) flips = 0 for y ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
1ed13d46dadf8f38f2fa77b47f5be24cdbb3e04c
562b78959d7e317e1601c3bb2bf1fca9052ba16e
/publish-scripts/shared/constants.py
6a926eb56f5a97f5f6e0eb2b03ad17d59f94ef6b
[ "MIT" ]
permissive
Azure/azure-functions-core-tools
b1a36047dcc1f82c7a56255adc266e09fb56d733
464bdc415587e20ae0aba671cfcf2b909bda8846
refs/heads/v4.x
2023-09-03T01:10:25.850052
2023-08-30T20:37:29
2023-08-30T20:37:29
77,990,768
1,062
386
MIT
2023-09-14T19:30:10
2017-01-04T07:09:00
C#
UTF-8
Python
false
false
815
py
#! /usr/bin/env python3 # same for all different OSes PACKAGENAME = "azure-functions-core-tools" CMD = "func" ARTIFACTFOLDER = "artifact" BUILDFOLDER = "build" TESTFOLDER = "test" # to be set in driver.py # do not use it as default argument!! VERSION = NotImplementedError DRIVERROOTDIR = NotImplementedError # linux ...
[ "noreply@github.com" ]
Azure.noreply@github.com
32ba2e238fc979009e48f25896a68859954085af
6aa2dbf07e3e9b677d834626cd066d2215fb0a92
/django_app/blog/migrations/0002_auto_20170529_1050.py
f402b1389dcd97933e5822bf570b305739473e0b
[]
no_license
GAIUS8/djangogirls-Tutorial2
713c9d7216511c88e710c39f9d5dba8c0583bb75
a66f490d450182574ac775dc6d935c3a922b83d7
refs/heads/master
2021-01-22T12:25:27.985223
2017-05-30T09:13:23
2017-05-30T09:13:23
92,724,242
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-29 10:50 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.RenameField( model_...
[ "gaius827@gmail.com" ]
gaius827@gmail.com
e935c810aaaa663eac8d2a8bc7f00e69035dfe2d
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/kvfrans_draw-color/draw-color-master/ops.py
24171e389b23984fe56a8a3758594c05e97f1a9c
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
3,368
py
import numpy as np import tensorflow as tf class batch_norm(object): """Code modification of http://stackoverflow.com/a/33950177""" def __init__(self, epsilon=1e-5, momentum = 0.9, name="batch_norm"): with tf.variable_scope(name): self.epsilon = epsilon self.momentum = momentum ...
[ "659338505@qq.com" ]
659338505@qq.com
2ee2420a5c90f403b130470a746337340791479f
b609b49c3d2223925115dfc90ed5d1fa95dff34f
/project/migrations/0048_auto_20190920_2351.py
092e4de4d1db0951036ca685fc183804db03c6c3
[]
no_license
prajwalahetti/CLASH
5a1ffc02eb5f80649dc89dc0d7d6abb9467ff3ea
ac8413e7666a516c806e4c0ae4da1fdbfdab05db
refs/heads/master
2023-03-24T03:06:23.365187
2021-02-02T18:46:07
2021-02-02T18:46:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
# Generated by Django 2.2.3 on 2019-09-20 18:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('project', '0047_auto_20190920_0946'), ] operations = [ migrations.AddField( model_name='profile', name...
[ "tanmaypardeshi@gmail.com" ]
tanmaypardeshi@gmail.com
d5235a398c3ae797f0cdb8b06797275c19061345
ae7e9dbd7492ffce78c68a077a85a74084a92c42
/mysite/settings.py
ce3d98fb6767ed7bd96ba65da2570af88ebe7938
[]
no_license
nvkhai/my-first-blog
3d410f60e6ccf6df95c8cbc4f925b60747a37a6f
0bc7af44e206e93c12b9f23db4b49703cfb205a8
refs/heads/master
2021-01-10T05:47:16.705000
2016-03-08T04:10:42
2016-03-08T04:10:42
53,381,718
0
0
null
null
null
null
UTF-8
Python
false
false
3,176
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Bu...
[ "you@example.com" ]
you@example.com
9764ab31c16e68d674cf69424d15a4852f6cf658
74b97e20b06a58ada94278f82ce511403fcddf21
/test/scenarios/synapse/output/extflatten/src/synapse/azext_synapse/generated/custom.py
8529cbce18301e0f92d621366d0151f83ad6e719
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Azure/autorest.az
b171eb495efdb815dc051dface3800c3e5e35b8e
64f403a5fe74be28e46a90b6b77f8d2bc9a12baf
refs/heads/master
2023-09-01T13:22:21.784354
2022-11-01T02:34:12
2022-11-01T02:34:12
226,059,721
24
17
MIT
2023-02-08T00:46:07
2019-12-05T09:04:00
Python
UTF-8
Python
false
false
67,640
py
# -------------------------------------------------------------------------- # 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 cause incor...
[ "noreply@github.com" ]
Azure.noreply@github.com
2141e3ec3931bbb34f658858fbd01b5befd31569
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc012/B/2593767.py
999d8468b61aac8db041bf8c06aa9c68aab28625
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
979
py
#!/usr/bin/env python3 import sys, math, copy # import fractions, itertools # import numpy as np # import scipy HUGE = 2147483647 HUGEL = 9223372036854775807 ABC = "abcdefghijklmnopqrstuvwxyz" MAX = 100001 dp = [0 for i in range(MAX)] color = [0 for i in range(MAX)] e = [[] for i in range(MAX)] def paint(v, d, c): ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
d8723664106644a67127483daf9e6c0cd40c9b71
eb87c8b1ce8591d207643d3924b7939228f1a4fe
/conformance_suite/test_unknown_isinstance_bool_ret.py
791faf29be30240f5fa2762e934a960f99b4332c
[]
no_license
brownplt/insta-model
06543b43dde89913c219d476ced0f51a439add7b
85e2c794ec4b1befa19ecb85f2c8d2509ec8cf42
refs/heads/main
2023-08-30T19:06:58.083150
2023-05-03T18:53:58
2023-05-10T22:29:18
387,500,638
5
0
null
2022-04-23T23:06:52
2021-07-19T14:53:09
Racket
UTF-8
Python
false
false
670
py
# test_unknown_isinstance_bool_ret.py # This should pass. from typing import Any class C: def __init__(self, x: str): self.x: str = x def __eq__(self, other: Any) -> bool: return isinstance(other, C) # def test_unknown_isinstance_bool_ret(self): # codestr = """ # from typing import ...
[ "lukuangchen1024@gmail.com" ]
lukuangchen1024@gmail.com
1835c096a610621e8a4e35e5cd520dead6d8298e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03463/s454556762.py
2da6cda636a79239b352df261fb4234bcb77b274
[]
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
232
py
import sys read = sys.stdin.read readlines = sys.stdin.readlines def main(): n, a, b = map(int, input().split()) if abs(a - b)&1: print('Borys') else: print('Alice') if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a8478694ab1ee57fd2bef53674302541bb56f391
7aac370bbd217d716ba53f0efd70047879bb1444
/homeassistant/components/lyric/api.py
3b23f802dedfd95aa594e93c136ee501003ec44b
[ "Apache-2.0" ]
permissive
OverloadUT/home-assistant
c6bd63edb7c087eaf81ff507fdeb3e1420062d3a
7ccfaed7361604aa83cc55f059015327b544b5a7
refs/heads/dev
2023-02-23T01:04:13.441125
2021-10-25T16:26:03
2021-10-25T16:26:03
78,159,098
5
1
Apache-2.0
2023-02-22T06:18:15
2017-01-06T00:21:06
Python
UTF-8
Python
false
false
1,738
py
"""API for Honeywell Lyric bound to Home Assistant OAuth.""" from typing import cast from aiohttp import BasicAuth, ClientSession from aiolyric.client import LyricClient from homeassistant.helpers import config_entry_oauth2_flow from homeassistant.helpers.aiohttp_client import async_get_clientsession class ConfigEn...
[ "noreply@github.com" ]
OverloadUT.noreply@github.com