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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
54b49280506de442fdd26700c04d43daacef03fb | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_sdk/public/platform-tools/systrace/catapult/devil/devil/android/valgrind_tools/base_tool.py | 135b050d20315bdbfc2dc8460220b3ec93c165a3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 136 | py | ../../../../../../../../../../../.cipd/pkgs/82/_current/platform-tools/systrace/catapult/devil/devil/android/valgrind_tools/base_tool.py | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
06409b3f8d41206942c65aa5d15f4a9c29d20919 | 351175b725ac71e28b5e2811b3ad47052a352923 | /onnx/backend/test/case/node/sequenceinsert.py | 619043d45a333758b8fe047670bfb5f3327c6f6f | [
"Apache-2.0"
] | permissive | take-cheeze/onnx | 99bf73cdde80da357a7eb3e18d542c2d58ec084d | ee7d2cdfa34b8b3c7e0b68b70daf72aaa48c23ac | refs/heads/master | 2023-08-24T05:36:45.737517 | 2022-12-15T17:24:47 | 2022-12-15T17:24:47 | 189,348,215 | 0 | 0 | MIT | 2019-05-30T04:58:40 | 2019-05-30T04:58:40 | null | UTF-8 | Python | false | false | 2,470 | py | # SPDX-License-Identifier: Apache-2.0
from typing import Any, List
import numpy as np
import onnx
from ..base import Base
from . import expect
def sequence_insert_reference_implementation(
sequence: List[Any], tensor: np.ndarray, position: np.ndarray = None
) -> List[Any]:
# make a copy of input sequence
... | [
"noreply@github.com"
] | take-cheeze.noreply@github.com |
3a26364f1b038b02eb40aad2454fd6fb3cb36c07 | 7f52724110a12d7721f3bbb7a0fce0c4b1c3dd97 | /gameserver/ResPrice.py | 6e09ece6c606661689b5cf79c23b24e13872cfe9 | [
"MIT"
] | permissive | cssp1/assignment1 | 896cb69e8ff43e26658c65ea16b079f87eebef9a | 0839fc589cb52e7384c446593db79e0c2ea737d5 | refs/heads/master | 2023-03-10T08:03:56.954064 | 2022-07-20T04:02:15 | 2022-07-20T04:02:15 | 29,496,198 | 0 | 2 | null | 2023-02-17T17:56:53 | 2015-01-19T20:52:53 | JavaScript | UTF-8 | Python | false | false | 3,885 | py | #!/usr/bin/env python
# Copyright (c) 2015 Battlehouse Inc. All rights reserved.
# Use of this source code is governed by an MIT-style license that can be
# found in the LICENSE file.
# this is a library for use by the game server and analytics code to calculate
# the price for a bundle of fungible resources.
# When... | [
"dmaas@spinpunch.com"
] | dmaas@spinpunch.com |
9569faaeef0944b297f019a3868299475553cfa7 | 3468fe20cd1128eb8e18354c30490421e504e4af | /portal/apps/videologue/templatetags/videologue_tags.py | 3b8b0d5eac75b16567487b0cda7de58bf28361bb | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | djpeluca/utopia-cms | 7da45422ffc4f1f397f385ea37243f2745a758de | 1e444afea565fdc734abf449b8ebe9b7c2c47d80 | refs/heads/main | 2023-08-19T23:04:44.666527 | 2021-10-27T01:55:11 | 2021-10-27T01:55:11 | 387,323,009 | 0 | 0 | BSD-3-Clause | 2021-07-19T03:03:48 | 2021-07-19T03:03:48 | null | UTF-8 | Python | false | false | 1,663 | py | # -*- coding: utf-8 -*-
from videologue.models import YouTubeVideo
from django.template import (Context, Library, loader, Node, TemplateSyntaxError)
from string import lower
register = Library()
TPL_DIR = 'videologue/templates/'
class RenderLatestVideoNode(Node):
def __init__(self, kwcontext):
self.kw ... | [
"apacheco@ladiaria.com.uy"
] | apacheco@ladiaria.com.uy |
d4acfecc03cbaee58f18dace5a929be206713d9f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch76_2020_04_12_20_47_41_177110.py | 048734f0d57c078395eafd03c2ef252a0ed91c86 | [] | 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 | 189 | py | def aniversariantes_de_setembro(dicionario):
dicionario2={}
for i in dicionario:
if dicionario[i][2:4]=='09':
dicionario2[i]=dicionario[i]
return dicionario2 | [
"you@example.com"
] | you@example.com |
1fec1f837a84009fd62bc40d7396ed04597bd931 | 76b7eb861bdaf84dc5cb7e8945de95c7605ae4bf | /campfin/efilings/management/commands/process_skede_lines.py | 815f82f0150ea0446563f6152d1ada3d1e64e1c2 | [] | no_license | jsfenfen/paper_fec | 60e4587d41b183be9a2a714d326bbcbe69657aa0 | f05d37ef78a22e2f0c071408914e6667f4d4b988 | refs/heads/master | 2018-12-28T04:20:16.589236 | 2015-09-01T06:28:07 | 2015-09-01T06:28:07 | 27,084,007 | 5 | 1 | null | 2015-08-19T16:19:43 | 2014-11-24T16:27:23 | Python | UTF-8 | Python | false | false | 4,917 | py | from django.core.management.base import BaseCommand, CommandError
from datetime import date
from fec_alerts.models import new_filing
from formdata.models import SkedE
from summary_data.models import Candidate_Overlay
from reconciliation.fec_reconciler import match_by_name, run_fec_query
from add_committees_to_skede im... | [
"jfenton@sunlightfoundation.com"
] | jfenton@sunlightfoundation.com |
2ed31607d5a3eb7e3e91fa0eba51db90b0af3268 | a81c1492783e7cafcaf7da5f0402d2d283b7ce37 | /google/ads/google_ads/v6/services/transports/campaign_bid_modifier_service_grpc_transport.py | 9c627ba77a44921e7a3dd9698c767432afb6e484 | [
"Apache-2.0"
] | permissive | VincentFritzsche/google-ads-python | 6650cf426b34392d1f58fb912cb3fc25b848e766 | 969eff5b6c3cec59d21191fa178cffb6270074c3 | refs/heads/master | 2023-03-19T17:23:26.959021 | 2021-03-18T18:18:38 | 2021-03-18T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,322 | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | VincentFritzsche.noreply@github.com |
08f1767b3ce113050caf9f37a0fb334135b09bb5 | 2b0a565a2e3078c53ecdfb7ad16d38516b965746 | /src/bilm/encoder_base.py | 889b7cfd43e2b0c87d6b421fb180030199de42d2 | [] | no_license | Oneplus/ELMo | 8f2093c23fdf77205ac7a0ddc4dce829832b4850 | 8a9dfe987dd0551641bf4d023d61014ce9640a0b | refs/heads/master | 2020-04-07T21:30:13.186554 | 2019-05-20T00:40:55 | 2019-05-20T00:40:55 | 158,729,674 | 10 | 3 | null | 2018-11-22T17:02:22 | 2018-11-22T17:02:21 | null | UTF-8 | Python | false | false | 16,500 | py | from typing import Tuple, Union, Optional, Callable
import torch
from torch.autograd import Variable
from torch.nn.utils.rnn import pack_padded_sequence, PackedSequence
from allennlp.nn.util import get_lengths_from_binary_sequence_mask, sort_batch_by_length
# We have two types here for the state, because storing the ... | [
"oneplus.lau@gmail.com"
] | oneplus.lau@gmail.com |
db3f0149082015ad2e316bc5ffa3e4203d75ed58 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/tram_submode_enumeration.py | 21e98e1f17bfaf27cc43a6cf15270a4c5b5075be | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 355 | py | from enum import Enum
__NAMESPACE__ = "http://www.netex.org.uk/netex"
class TramSubmodeEnumeration(Enum):
UNKNOWN = "unknown"
UNDEFINED = "undefined"
CITY_TRAM = "cityTram"
LOCAL_TRAM = "localTram"
REGIONAL_TRAM = "regionalTram"
SIGHTSEEING_TRAM = "sightseeingTram"
SHUTTLE_TRAM = "shuttle... | [
"chris@komposta.net"
] | chris@komposta.net |
47cc84638073c784a1f807c048912002bf7587f6 | 780b01976dad99c7c2ed948b8473aa4e2d0404ba | /scripts/alphas_archive/zs_callspread/alpha_ichimokucloud_long_bullish_dec13.py | 61e52350abd7d1776b0b7786ea4b29869a6c59b1 | [] | no_license | trendmanagement/tmqrexo_alexveden | a8ad699c2c3df4ce283346d287aff4364059a351 | 4d92e2ee2bc97ea2fcf075382d4a5f80ce3d72e4 | refs/heads/master | 2021-03-16T08:38:00.518593 | 2019-01-23T08:30:18 | 2019-01-23T08:30:18 | 56,336,692 | 1 | 1 | null | 2019-01-22T14:21:03 | 2016-04-15T17:05:53 | Python | UTF-8 | Python | false | false | 1,425 | py | #
#
# Automatically generated file
# Created at: 2016-12-16 11:13:41.634827
#
from backtester.strategy import OptParam
from backtester.swarms.rebalancing import SwarmRebalance
from backtester.strategy import OptParamArray
from backtester.swarms.rankingclasses import RankerBestWithCorrel
from backtester.costs i... | [
"i@alexveden.com"
] | i@alexveden.com |
c3259cc6b10289095af347d864f6e9ffaaad2ed2 | c3feebac5afce89b0261168286cc5052c20a89b7 | /gui/imageViewWidget.py | 6a4a745cec118d0a796e5de7fd5846cca2c62e7f | [] | no_license | iHaD/meShaderEd | 6252337ba8d152f89854186b468ff3ce226a254e | f305ae7aaf669317eb0470af18ee82b4b62a3e7d | refs/heads/master | 2021-01-18T02:31:06.974282 | 2014-07-14T11:05:52 | 2014-07-14T11:05:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,902 | py | #===============================================================================
# imageViewWidget.py
#
#
#
#===============================================================================
import os, sys
from PyQt4 import QtCore, QtGui
from PyQt4.QtCore import QDir, QString, QModelIndex
from PyQt4.QtGui import QFile... | [
"Yuri.Meshalkin@gmail.com"
] | Yuri.Meshalkin@gmail.com |
bb775d1214a866c4b577069f0c4dc8e59ea5672e | 90386753276ced3360e76f5551d25f6618613a23 | /Python 100例/44.py | 4a489a499ad6870560b2f7f32b7732f19f290c0b | [] | no_license | yflfly/funny-python | 5d69dbcafd1c98c5e4046b85f8678e4bcf53870c | ff42b84b46152234e3bc824ae8016f354af450c4 | refs/heads/master | 2023-03-09T16:58:27.116227 | 2021-03-01T14:07:46 | 2021-03-01T14:07:46 | 280,602,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
'''
两个 3 行 3 列的矩阵,实现其对应位置的数据相加,并返回一个新矩阵:
X = [[12,7,3],
[4 ,5,6],
[7 ,8,9]]
Y = [[5,8,1],
[6,7,3],
[4,5,9]]
程序分析:创建一个新的 3 行 3 列的矩阵,使用 for 迭代并取出 X 和 Y 矩阵中对应位置的值,相加后放到新矩阵的对应位置中。
'''
X = [[12, 7, 3],
[4, 5, 6],
[7, 8, 9]]
Y = [[5, 8, 1],
[6, 7, ... | [
"yangfengling@inttech.cn"
] | yangfengling@inttech.cn |
7aff24db643aa477df397dca2c7229896579646e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03032/s079897721.py | f427a2d0ce6513e4da77d12dc104cf67a5636e74 | [] | 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 | 625 | py | import sys
input = sys.stdin.readline
def main():
N, K = map(int, input().split())
V = list(map(int, input().split()))
ans = -float("inf")
for t in range(min(N, K) + 1):
s = K - t
for l in range(t + 1):
r = t - l
gem = V[:l]
gem += V[-r:] if r != 0... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3a96c3ae0d08fa37f2a0225887bc6118277e5fdc | 4eee7b0e53818bd21ca009d742ac8391202620ba | /home/three/num_nd.py | e73b8254580d1b8166605ff2b113fb765d64cf50 | [] | no_license | mysqlf/python | e7c44bafee5abefc1356da9fb123fe3d6b3d2e7c | e8aacf30e046d71681a93a5f333de72e48410ebf | refs/heads/master | 2020-05-21T13:33:28.289668 | 2017-11-09T02:13:48 | 2017-11-09T02:13:48 | 61,173,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @author Greedywolf
print(round(1.23, 1))
# 1.2
print(round(11.27, -1))
# 10.0
print(round(16.27, -1))
# 20.0
print(round(-1.27, -1))
#-0.0
tmpr = round(1.25361, 3)
print(tmpr)
# 1.254
tmp = 1.25361
tmpf = format(tmp, '0.3f')
print(tmpf)
print(tmp)
a = 1627731
# 传给 ... | [
"1154505909@qq.com"
] | 1154505909@qq.com |
342c27c478778c9c198081a0a88745f5c731d310 | c61b87703a2e385815cf4abc7cf62221fe6f0d70 | /build/lib/tugalinhas/util.py | 139f04d0127d749bd90670555bc2e5a9db0d1052 | [] | no_license | griselgrisel/pytuga | 39f89c24826e46685da34ec912e56c735d4b786e | e9596ac81a0c563130462ac71bfe96dd01120001 | refs/heads/master | 2020-12-28T20:41:48.815642 | 2015-11-11T20:15:30 | 2015-11-11T20:15:30 | 45,982,808 | 0 | 0 | null | 2015-11-11T13:17:41 | 2015-11-11T13:17:41 | null | UTF-8 | Python | false | false | 7,838 | py | '''A random collection of utility functions'''
import os
import math
from random import randrange
from math import copysign
from PyQt4 import QtSvg, QtGui, QtCore
from tugalinhas import SHARED_ART_PATH, NODEFAULT
#
# Custom errors
#
class TooManyPens(RuntimeError):
pass
#
# Custom functions
#
def as_qpoint(pt)... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
2ee0e724dff3317c1dfc707c560983a8e24f7cb5 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/communication/azure-communication-administration/samples/phone_number_capabilities_sample.py | 44b9dcb1a8796731fbe8b24846fef0450db96aee | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 2,811 | py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | yunhaoling.noreply@github.com |
22623047d1de9e48c8ead3eabedeac514d5c8f48 | f4c4e131ce63ce795822d1ff27c9294e4b00887d | /modules/common.py | 6acd27d318860603203386fe30940b0eaa62dcb4 | [] | no_license | shundev/ruscorpora_tagging | d77196b75808743a41f5ecfb3ee5ef204db72c44 | b6d41d1a33ad25cf6a1f24e6fe94c0816e378fa0 | refs/heads/master | 2021-05-30T17:18:37.065460 | 2015-10-20T13:41:37 | 2015-10-20T13:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | # All rights belong to Non-commercial Partnership "Russian National Corpus"
# http://ruscorpora.ru
# editor marks inside a word
editor_brackets = ur'\[\]\<\>'
def quotetext(s):
if not s:
return u""
return s.replace(u'&', u'&').replace(u'<', u'<').replace(u'>', u'>')
def quoteattr(s):
return quote... | [
"ishalyminov@gmail.com"
] | ishalyminov@gmail.com |
5852301d44f5755d54598d0a6b389ab9759a8f16 | 636ba2700eaf3a151b73144b510f38c75ab1919d | /Kaggle2/02_image.py | 6fbe71238c67a7659f02cd543a3d79a6841ab069 | [] | no_license | Taerimmm/ML | 17997f388e18c28dfd9de83af98a6d4bebe7e1f0 | 6147cede81ebcc95f21adebf75731fbbb11edfab | refs/heads/master | 2023-06-10T14:26:45.335219 | 2021-07-05T15:30:47 | 2021-07-05T15:30:47 | 324,874,959 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from PIL import Image
import tifffile as tiff
import cv2
import os
from tqdm.notebook import tqdm
import zipfile
import rasterio | [
"xofla7560@naver.com"
] | xofla7560@naver.com |
7095b4a9a2e2976486cba6762f2b417aa67ed27e | 910d4dd8e56e9437cf09dd8b9c61167673140a1f | /0521/경로찾기.py | 812e5313e58abf8a17e66ba6912e44000ace33d7 | [] | no_license | nopasanadamindy/Algorithms | 10825b212395680401b200a37ab4fde9085bc61f | 44b82d2f129c4cc6e811b651c0202a18719689cb | refs/heads/master | 2022-09-28T11:39:54.630487 | 2020-05-29T09:49:56 | 2020-05-29T09:49:56 | 237,923,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | import sys
sys.stdin = open('경로찾기.txt')
def dfs(v):
stack = []
visited = [0 for _ in range(N)]
while 1 :
for w in range(len(G)):
if G[v][w] == 1 and visited[w] == 0:
stack.append(w)
visited[w] = 1
if len(stack) == 0:
return visited
... | [
"iuui21@snu.ac.kr"
] | iuui21@snu.ac.kr |
9738d62381adf8b93b9b3f7c29b65d7326b5ba7e | 312dc11233a147e01b01ad42166eca7e8ebf3c66 | /testing/parabolic.py | a0ecc42c218bbf69486a64e488db627605a33d55 | [] | no_license | byronwasti/GuitarTuner | 622f64f21f913f537fffe8c0fd04970fac99af75 | 1a748c436b01b399cc57d24070bddfb61d2f61f8 | refs/heads/master | 2016-09-05T12:24:45.663439 | 2015-04-21T17:50:45 | 2015-04-21T17:50:45 | 32,682,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | # -*- coding: utf-8 -*-
#
from __future__ import division
from numpy import polyfit, arange
def parabolic(f, x):
"""Quadratic interpolation for estimating the true position of an
inter-sample maximum when nearby samples are known.
f is a vector and x is an index for that vector.
Returns (... | [
"byron.wasti@gmail.com"
] | byron.wasti@gmail.com |
654ba558a2d92208ff911b919fba2a9cb2e848c5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03105/s703688480.py | 95f7be8e7125a8046c346b3209e2a73e83397228 | [] | 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 | 91 | py | a, b, c = [int(i) for i in input().split()]
if b > a*c:
print(c)
else:
print(b//a) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8adf40e302cbe5a0093ac6c8e47055eef1a47754 | 2d445c21e58e80841b0ac99cc678137812f0a670 | /lib/python/adjacency_matrix_graph_bfs.py | 8b98b321ead9a21fae4e993e7057258d2c35ff22 | [] | no_license | kajyuuen/programming_contest | 65c9bc7b7101d7b5fb35cd0cf3fdc6b4213fd0f6 | d2b29edf655f64d018947773a29c9a7e3c4a3456 | refs/heads/master | 2020-04-23T09:51:04.554152 | 2020-03-06T08:09:29 | 2020-03-06T08:09:29 | 171,083,409 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,074 | py | from collections import deque
INF = float("inf")
def bfs(G, i, visited = []):
if len(visited) == 0:
visited.append(i)
queue = deque()
queue.append(i)
while queue:
i = queue.popleft()
for j in range(len(G)):
if (G[i][j] != INF) and (G[i][j] != 0) and (j not in visite... | [
"kajyuuen@gmail.com"
] | kajyuuen@gmail.com |
c2dba4555aa853c5706f495c56459e3efea80e93 | 799a0af9c05deabe5d5250a10e480ec15ae0216e | /Xpath_test/xpath_test_2.py | a097fbf67eebc5c9494a6c7e014742b599bcfbbe | [
"MIT"
] | permissive | waws520waws/waws_spider | 9b2be28834c08166463fe265e0f5c37a874369c8 | c6a5988121f32619a5c5134c09fdfd556c696fe7 | refs/heads/master | 2021-03-20T06:01:22.041937 | 2020-03-28T02:49:16 | 2020-03-28T02:49:16 | 247,183,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # encoding:utf-8
import lxml
"""
lxml.etree.HTML() 处理文本字符串
lxml.etree.parse() 处理的是文件内容
"""
import lxml.etree
html = lxml.etree.parse("1.html") # 处理文件
print(html)
print(type(html))
print(lxml.etree.tostring(html))
"""
报错:
lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: meta line 4 and head, line 6... | [
"16601203140@163.com"
] | 16601203140@163.com |
9623ef12cdf511e3619a20585d60b7650ee1a19b | 7a1b08c64b29522d4bbb913475275c1bc8ad61a4 | /diag/doc_diag4/diag_read.py | a8fe6e0e0eca9a9bd598badc98c0dfb99f4dd8a9 | [
"MIT"
] | permissive | erichilarysmithsr/time-track | 8f84d4cc92cebaedce550b3741982d204e734a6c | dc0a7b63c937d561309f9b1c84af65fb581a8e18 | refs/heads/master | 2023-03-27T08:07:46.717221 | 2021-03-30T16:45:50 | 2021-03-30T16:45:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
from tkinter import *
from tkinter import messagebox
import os
import subprocess
fen=Tk()
fen.title("Diagnostics and ATCD")
fen.configure(background='cyan')
# To place side by side labelo + entrylab
top = Frame(fen, bg='cyan')
bottom = Frame(fen, bg='cyan')
top.pack(side=... | [
"philogenie@protonmail.com"
] | philogenie@protonmail.com |
82b7d1c5796f6c1174bf3088591602482f1c4054 | fd21d6384ba36aa83d0c9f05f889bdbf8912551a | /a10sdk/core/network/network_vlan_global.py | 0777512fc463e065ad6d609790980c39208eecad | [
"Apache-2.0"
] | permissive | 0xtobit/a10sdk-python | 32a364684d98c1d56538aaa4ccb0e3a5a87ecd00 | 1ea4886eea3a1609b2ac1f81e7326758d3124dba | refs/heads/master | 2021-01-18T03:08:58.576707 | 2014-12-10T00:31:52 | 2014-12-10T00:31:52 | 34,410,031 | 0 | 0 | null | 2015-04-22T19:05:12 | 2015-04-22T19:05:12 | null | UTF-8 | Python | false | false | 1,242 | py | from a10sdk.common.A10BaseClass import A10BaseClass
class VlanGlobal(A10BaseClass):
"""Class Description::
Configure global options for vlan.
Class vlan-global supports CRUD Operations and inherits from `common/A10BaseClass`.
This class is the `"PARENT"` class for this module.`
:param l3_vl... | [
"doug@parksidesoftware.com"
] | doug@parksidesoftware.com |
c3798284253165b3bbdb13b0f739fe26d1a2a201 | 495cbf24ca6db5702b023d5476de91f881f477bf | /bulletin_board/bboard/views.py | 833e6fa25452d5b70d450d57bc2b891a16c6cb8e | [] | no_license | Nikola1001/bulletin_board_django | 29b08368848137628534c3c305c8890632708021 | 32a6e89cc2257329aa314deec58e05531c52c9a0 | refs/heads/master | 2022-12-10T13:18:28.205733 | 2020-09-13T09:46:57 | 2020-09-13T09:46:57 | 295,108,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views.generic.edit import CreateView
from .models import Bb, Rubric
from .forms import BbForm
def index(request):
bbs = Bb.objects.all()
rubrics = Rubric.objects.all()
context = {'bbs': bbs, 'rubrics': rubrics}
return ... | [
"you@example.com"
] | you@example.com |
0c28571a296e24bae9794871056eb8085fb3f316 | f8ac0d9c2954ee131bb7358441974a6809c7a323 | /tests/compute/lorentz/test_Mt2.py | 140237939a75b259c2d2c83a8923653d292139bf | [
"BSD-3-Clause"
] | permissive | scikit-hep/vector | 38d285deae1ef9b9cae14eec3cf38e9b5c8d35ae | a79ccfb9574421870029506895dcb9c2162ac59d | refs/heads/main | 2023-08-31T10:49:57.311014 | 2023-08-29T17:55:09 | 2023-08-29T17:55:09 | 217,698,030 | 64 | 25 | BSD-3-Clause | 2023-09-12T05:13:17 | 2019-10-26T11:20:23 | Python | UTF-8 | Python | false | false | 4,032 | py | # Copyright (c) 2019-2023, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/vector for details.
from __future__ import annotations
import pytest
import vector.backends.object
def test... | [
"noreply@github.com"
] | scikit-hep.noreply@github.com |
1fb584988286f1cd09e42691e0dfa71985ff579d | 74912c10f66e90195bf87fd71e9a78fa09f017ec | /execroot/syntaxnet/bazel-out/local-opt/bin/dragnn/python/evaluation_test.runfiles/org_tensorflow/tensorflow/contrib/keras/python/keras/layers/convolutional_recurrent.py | 549a540f9dbae47ca107b6cfa2a8b9d8061abacb | [] | no_license | koorukuroo/821bda42e7dedbfae9d936785dd2d125- | 1f0b8f496da8380c6e811ed294dc39a357a5a8b8 | 237fcc152ff436f32b2b5a3752a4181d279b3a57 | refs/heads/master | 2020-03-17T03:39:31.972750 | 2018-05-13T14:35:24 | 2018-05-13T14:35:24 | 133,244,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | /root/.cache/bazel/_bazel_root/821bda42e7dedbfae9d936785dd2d125/external/org_tensorflow/tensorflow/contrib/keras/python/keras/layers/convolutional_recurrent.py | [
"k"
] | k |
d5e8384f5d233327669f8bdad3a26c03cbc9eac4 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventgrid/azure-mgmt-eventgrid/generated_samples/domains_list_by_subscription.py | 5f604daa1c5b83f0174a44c3eebdcc116e2d7681 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,543 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
89a56284bc3930a3a7e104fbbcddb3349ebd68bb | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/monoprice/__init__.py | 9bceff1531c142933a839999f0e1fedc053c9141 | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 2,378 | py | """The Monoprice 6-Zone Amplifier integration."""
import asyncio
import logging
from pymonoprice import get_monoprice
from serial import SerialException
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_PORT
from homeassistant.core import HomeAssistant
from homeassistant.except... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
3b75be4e050249e7eaafd24415499319c3bce4d2 | c236fd1f3d54fa79ac79d5154d31f220cfd63ace | /setup.py | 87bb3b45e3d99a7461e84cc32ae233928061cfd2 | [
"MIT"
] | permissive | mmmika/fcn | 46b6e7959d39f68280ca00626dfb1c6ca44ebcd1 | 876ce009d37ca36f65a3c2128102ac04fca47898 | refs/heads/master | 2020-06-10T05:38:16.261089 | 2016-11-27T16:46:13 | 2016-11-27T16:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | #!/usr/bin/env python
import shlex
import subprocess
import sys
from setuptools import find_packages
from setuptools import setup
version = '5.3.0'
if sys.argv[-1] == 'release':
commands = [
'python setup.py sdist',
'twine upload dist/fcn-{0}.tar.gz'.format(version),
'git tag v{0}'.for... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
6b5c04de0172a279af1ce7e32c289d8968fe2ed4 | e8ae11e5017507da59e2e92d423b6a1994490de4 | /env/lib/python2.7/site-packages/azure/mgmt/network/operations/express_route_circuits_operations.py | e8da1a662f5ed4d4643510020ff1f0b0f86f9693 | [] | no_license | teopeurt/ansible-ubuntu-server | 613d00cea28bc6531acf4a39aeeb9cd0baa2a391 | b5b6127d2ee9723c5088443efe2ffb8ae30cfea7 | refs/heads/master | 2021-06-28T12:49:50.935753 | 2017-07-31T17:34:33 | 2017-07-31T17:34:33 | 98,912,808 | 0 | 1 | null | 2020-07-24T00:05:31 | 2017-07-31T17:32:56 | Makefile | UTF-8 | Python | false | false | 38,321 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a co... | [
"me@teopeurt.com"
] | me@teopeurt.com |
2e495fb99b1432842a9429eca1429da37cf0ff2a | 1e65ca80032b1b5a4ab3631044c3d41a9f3dd035 | /01_Jump_to_Python/Chapter07/321.py | 2c4c9f6ab079a7f22ee78e41b397caec449e2e37 | [] | no_license | bj730612/Bigdata | cdd398c56023c67a2e56c36151e9f2bca067a40a | 9bb38e30bb3728b4a4e75bc763fa858029414d4e | refs/heads/master | 2020-03-15T09:27:23.995217 | 2018-10-02T00:07:38 | 2018-10-02T00:07:38 | 132,075,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | import re
p = re.compile('.+:')
m = p.search('http://google.com')
print(m.group())
p = re.compile('.+(?=:)')
m = p.search('http://google.com')
print(m.group())
| [
"USER@test.com"
] | USER@test.com |
65656cd0f8cace0bcc0fb1f5113f197aa36b12b7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_benefactions.py | d23b224a84c6e58631f4000da88b4c70a68ff6df | [
"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 | 242 | py |
#calss header
class _BENEFACTIONS():
def __init__(self,):
self.name = "BENEFACTIONS"
self.definitions = benefaction
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['benefaction']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e91ddeb3e191e0e42abe3dff6ea872f61d02497f | a17bb550574747585f36ba159c4415d5e42835e7 | /handle/class_list_handle.py | 8c583d55aa8194a70a6d4b3be5275f6174fc0efc | [] | no_license | z1069867141/sjh | 36895969bc472c9608c14fee84f800adf6ff4af3 | 197b3a7fab135f7a277ba4260dcf3ca10bb7c53e | refs/heads/master | 2022-11-15T19:32:16.934370 | 2020-07-09T10:01:49 | 2020-07-09T10:01:49 | 261,260,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__),".."))
from base.FindElement import FindElement
from selenium import webdriver
import time
class class_list(object):
def __init__(self,driver):
self.driver = driver
self.file_path = os.path.join(os.getcwd()+"/config/"+"clas... | [
"919824370@qq.com"
] | 919824370@qq.com |
bc28a05454e5f28444f62d7d5ce5b39db48ee9f3 | cb9f816c672a55d0e6b0109f368358a6276a11d9 | /noseapp/core/suite/performers/gevent.py | 59ee046682d668d64df451c72af4d48ec6386a7f | [] | no_license | noseapp/noseapp | ef3d361f6a7505d822b05c2dc6d40c662b3ba285 | 7c3e2e38b6b9fe027847a466615f7d72ed4ea334 | refs/heads/master | 2020-05-17T20:12:14.213873 | 2015-10-06T14:47:30 | 2015-10-06T14:47:30 | 30,531,499 | 3 | 2 | null | 2015-10-01T13:44:16 | 2015-02-09T10:54:26 | Python | UTF-8 | Python | false | false | 872 | py | # -*- coding: utf8 -*-
from __future__ import absolute_import
from multiprocessing import cpu_count
from gevent.pool import Pool
from noseapp.core.suite.base import BaseSuite
from noseapp.core.suite.base import SuitePerformer
class GeventSuitePerformer(SuitePerformer):
"""
Run tests with gevent pool
"... | [
"mikhail.trifonov@corp.mail.ru"
] | mikhail.trifonov@corp.mail.ru |
49ce32e81a63bc46de29e7eb1cd17f6fe3f229f6 | 2ffd079c34cb07c738f7e5f703764fed68f2c8c0 | /Solutions/Evaluate_Reverse_Polish_Notation.py | 708a3f4dc84222f8e3a3a9ac462cf0dc57d6c3db | [] | no_license | WuIFan/LeetCode | bc96355022c875bdffb39c89a2088457b97d30ab | 689a100ada757bc20334d5f0084587af3039ca7b | refs/heads/master | 2022-05-24T07:13:01.023733 | 2022-04-03T15:26:23 | 2022-04-03T15:26:23 | 202,471,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from typing import List
class Solution:
def evalRPN(self, tokens: List[str]) -> int:
nums = []
for t in tokens:
if t.lstrip('-').isnumeric():
nums.append(int(t))
else:
second = nums.pop()
first = nums.pop()
if t ... | [
"denny91002@gmail.com"
] | denny91002@gmail.com |
14a313d6bc063b870815b658c0cc5045efd8eae0 | 038e6e13ad4a81cee5dbbd6ccc322d48330d15d7 | /AnswerCode/083RemoveDuplicatesfromSortedList.py | 6ebe8ac3b56ba15d5779fcf189dd251a77daac8c | [] | no_license | aistoume/Leetcode | ad69dae6d9f41a03c883fc2582d0afd6997f83d6 | d8dc574b611d0e3d42367ccd47a44fd8443b0b27 | refs/heads/master | 2021-01-12T14:27:18.245818 | 2018-11-09T00:21:04 | 2018-11-09T00:21:04 | 70,066,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # 83. Remove Duplicates from Sorted List
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def deleteDuplicates(self, head):
if not head: return None
curr = head
while curr.next:
if curr.val==curr.next.val:
curr... | [
"ais.yb.mo@gmail.com"
] | ais.yb.mo@gmail.com |
80a0b1e0442bbe0ac5cd82a59fd965b1e3ee8dfd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-8004.py | 9d19e79ac406f55e889ca9bcb3ccb2b5e5d58030 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,758 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
51938e7c55f9356b7ec6b93bcda53735d7801af7 | 4cc75836f13b9829afd59eb9b2ac3a5f6b85c543 | /models/final_experiment_scripts/tpc.py | 4caf041f1b06ce575758e8d7cf03393137faa64a | [
"MIT"
] | permissive | TanmDL/eICU-LoS-prediction | 71316bf072b3bd47e61e22df71631f6d7996e583 | eb19fc84c5702595b052f436408570af314418a2 | refs/heads/master | 2022-11-29T04:14:11.929595 | 2020-08-15T10:33:46 | 2020-08-15T10:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | from eICU_preprocessing.split_train_test import create_folder
from models.run_tpc import TPC
from models.initialise_arguments import initialise_tpc_arguments
if __name__=='__main__':
c = initialise_tpc_arguments()
c['mode'] = 'test'
c['exp_name'] = 'TPC'
c['model_type'] = 'tpc'
log_folder_path =... | [
"ecr38@cam.ac.uk"
] | ecr38@cam.ac.uk |
debe0aa51bb68d9ac0a6d202b03091d9d134df10 | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /HUN105.py | 49c07262edd2b69c9d246bc431227e0a2f30f73a | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | n=int(input())
sum=0
s=str(n)
l=len(s)
while n>0:
rem=n%10
sq=rem**l
sum=sum+sq
n=n//10
print(sum)
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
ab9caac8043a3d31ccc062a0bc33b43c65f5d2e0 | d4e219c07379a08f37dff8ed9b889a1c75531e90 | /pasahero/commuters/migrations/0002_allowed_routes.py | 39780cec580f66546b71b54c3365d415dbe520f7 | [] | no_license | SanCampos/anti-covid | c9d306f584d61b9a1e1e1bc5cda4ac7497acee55 | 4f4ae5f63abfb1c59e29ad4bfc8a16a4e88ff6ad | refs/heads/master | 2021-05-22T16:30:55.933727 | 2020-04-01T14:55:14 | 2020-04-01T14:55:14 | 253,004,388 | 1 | 1 | null | 2020-04-04T14:38:33 | 2020-04-04T13:30:27 | null | UTF-8 | Python | false | false | 850 | py | # Generated by Django 2.2.5 on 2020-03-20 10:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('transportations', '0015_auto_20200320_0644'),
('commuters', '0001_initial'),
]
operations = [
migra... | [
"benvillabroza1999@gmail.com"
] | benvillabroza1999@gmail.com |
04df278d4e43bf1c8ed2fdc7f1a049f8cacf1c9a | d6e65aa23ff8b2344dacac93fe00fcfcd64cc414 | /ac_div.py | a1266114bf5958a013167ab61cfa310c6a59d1fd | [] | no_license | diwadd/sport | c4b0ec3547cde882c549fa7b89e0132fdaf0c8fb | 220dfaf1329b4feea5b5ca490ffc17ef7fe76cae | refs/heads/master | 2023-05-29T13:17:23.516230 | 2023-05-20T22:08:28 | 2023-05-20T22:08:28 | 223,636,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py |
n = int(input())
print(n-1) | [
"dawid.dul@gmail.com"
] | dawid.dul@gmail.com |
1a3283004646eabd4e8de4243225147a2f252f8c | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x0A-python-inheritance/2-is_same_class.py | 21c3ccee88f486cb44c6c4084c015a32a21f6fc8 | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | #!/usr/bin/python3
"""
2-is_same_class module that tests if an object is an
instance of the specified class
"""
def is_same_class(obj, a_class):
"""
returns True if obj is instance of a_class, False otherwise
"""
if type(obj) != a_class:
return False
else:
return True
| [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
8a9223c0a0896e8c858df8c838ce1237053174f0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2951/60714/272996.py | 9cd79dd531efc7ba42812797b13c7e90adcf7421 | [] | 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 | 480 | py | a = input()
b = input()
ans1 = 0
for i in range(len(a) - 1, -1, -1):
ans1 += int(a[i]) * pow(2, len(a) - i - 1)
ans2 = 0
for i in range(len(b) - 1, -1, -1):
ans2 += int(b[i]) * pow(3, len(b) - i - 1)
flag = True
if ans1 > ans2:
temp = ans1 - ans2
else:
temp = ans2 - ans1
flag = False
while True:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4706b93e3604fba7a00dd32cb2c085a8d838a2bd | f03155acea2660fb04576e3ed60f248b57f43d68 | /migrations/versions/2e1382ecc795_.py | 3c15acd95cf280dafae28d698527e449f60c6cc3 | [] | no_license | hreeder/SlackInSpace | 22ecb413fd31dad8707afd7ae968f895b425e452 | cc44ad0834343f0616f9d5bd5f6820546b105d77 | refs/heads/master | 2020-04-01T23:02:27.078901 | 2015-05-07T13:58:26 | 2015-05-07T13:58:26 | 33,796,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | """empty message
Revision ID: 2e1382ecc795
Revises: 21ca2aa72535
Create Date: 2015-04-12 13:34:58.152000
"""
# revision identifiers, used by Alembic.
revision = '2e1382ecc795'
down_revision = '21ca2aa72535'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
3da62f1e1a192e84a4f600ef64a2e48ec708cb18 | fee9bae88bf4ed22b93e3e9df7806f8c897f5f25 | /manage/cli_utils.py | af579c32d5dec42317b115e3f7262a4a77f93dd8 | [] | no_license | fake-name/xA-Scraper | 4123378c5ed87896fc389a90dfd8836cca7a5923 | 9eae8d1220fd0c7cabc97cef9378e4efe3361061 | refs/heads/master | 2023-01-27T15:33:05.349679 | 2023-01-22T11:39:57 | 2023-01-22T11:39:57 | 23,865,307 | 76 | 12 | null | 2019-06-11T12:38:27 | 2014-09-10T07:39:43 | Python | UTF-8 | Python | false | false | 3,271 | py |
#pylint: disable-msg=F0401, W0142
import logging
import psycopg2
import urllib.parse
import traceback
from xascraper import db
from xascraper import database
from settings import settings
from plugins import JOBS
from plugins import JOBS_DISABLED
from plugins import JOBS_NO_CONF
PLUGINS = {
key : (cls_def, cls... | [
"something@fake-url.com"
] | something@fake-url.com |
648ef60602eb9eba9c4caeb8a2ac8a960cb43412 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=10/sched.py | 6b1fdcf3ee82164a4757179b8107b4b603c7ba07 | [] | 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 | 316 | py | -X FMLP -Q 0 -L 5 119 400
-X FMLP -Q 0 -L 5 86 400
-X FMLP -Q 0 -L 5 86 400
-X FMLP -Q 1 -L 2 59 175
-X FMLP -Q 1 -L 2 44 150
-X FMLP -Q 2 -L 1 38 200
-X FMLP -Q 2 -L 1 31 200
-X FMLP -Q 3 -L 1 30 125
-X FMLP -Q 3 -L 1 30 125
29 150
25 100
24 175
18 125
17 175
14 100
12 100
12 100
11 100
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
4ddae7c4756405d61f6100fe0848351c7b1e0d1b | 7426522061b222e8d3336b18ff941bb98ff9626c | /qtoggleserver/core/api/funcs/backup.py | bf69f7ad08788ba2632330bd4b703b90bcaa9ddb | [
"Apache-2.0"
] | permissive | DigitEgal/qtoggleserver | 82833aaeb6f0bdad5f28243f132a639f4b406001 | 54b6ac53742af9529fd349d4fc207b0dc8a38d3b | refs/heads/dev | 2023-05-07T14:49:11.273023 | 2021-04-30T20:40:08 | 2021-04-30T20:40:08 | 360,039,836 | 0 | 0 | Apache-2.0 | 2021-04-21T05:18:08 | 2021-04-21T05:13:07 | null | UTF-8 | Python | false | false | 862 | py |
import logging
from qtoggleserver.conf import settings
from qtoggleserver.core import api as core_api
from qtoggleserver.core.typing import GenericJSONList
from qtoggleserver.system import conf as system_conf
logger = logging.getLogger(__name__)
@core_api.api_call(core_api.ACCESS_LEVEL_ADMIN)
async def get_backup... | [
"ccrisan@gmail.com"
] | ccrisan@gmail.com |
fc19c1f114424cc9ab63e7e87a0966cc3ab775aa | 4a48593a04284ef997f377abee8db61d6332c322 | /python/graph_and_tree/tree_structure/iterative_dfs_left_right_tree_traversal.py | 56f0871fee7900fab3ae3d614ed12845a1c9b031 | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 2,119 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2014 Jérémie DECOCK (http://www.jdhp.org)
# 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 witho... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
b9908c2801383dd89cbb0c3a1b75c7acaeba368a | e4cae3759a053ca88a936e87e3329aec203608db | /sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py | 0dafc2b5b76c122df008680dc360e1d5e5d4f9fd | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | a-santamaria/azure-sdk-for-python | c9413858747ccfcec2fbbefd50922c515cb4f634 | 9dec418ad621ac75f217e56e901f15b6624800b0 | refs/heads/master | 2022-05-19T00:01:07.604118 | 2021-02-01T22:52:25 | 2021-02-01T22:52:25 | 202,599,021 | 0 | 0 | MIT | 2019-08-15T19:22:33 | 2019-08-15T19:22:32 | null | UTF-8 | Python | false | false | 6,215 | py | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# ---------------------------------------------------------------------... | [
"noreply@github.com"
] | a-santamaria.noreply@github.com |
702475d5c06c0afe6130323ed6491fb661057ae9 | 8d472f9facb895dda9e1df81f3bb6c2f81b9c357 | /master/bt5/slapos_wechat/SkinTemplateItem/portal_skins/slapos_wechat/PaymentTransaction_updateWechatPaymentStatus.py | faad8b2197c8500892082735e31629a8166b80c4 | [] | no_license | SlapOS/slapos.core | 852485eed9382685f3df6ba8532f8192bb1389c4 | 369e8d56636e1c59a745e68dc68154abfc5b7840 | refs/heads/master | 2023-08-31T04:42:34.722241 | 2023-08-30T15:13:08 | 2023-08-30T15:13:08 | 1,825,920 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | state = context.getSimulationState()
if (state != 'started') or (context.getPaymentMode() != 'wechat'):
return "state not started (%s)" % state
else:
# ???
_, transaction_id = context.PaymentTransaction_getWechatId()
if transaction_id is not None:
# so the payment is registered in wechat
context.Paymen... | [
"rafael@nexedi.com"
] | rafael@nexedi.com |
57a5992e8ab69bc124ae719a7a981da9a13774a3 | 8b3bc4efea5663b356acbabec231d1d647891805 | /214/Solution.py | cd011e9d4d6cb6afbfd0f914ff3c954c02a9140e | [] | no_license | FawneLu/leetcode | 9a982b97122074d3a8488adec2039b67e709af08 | 03020fb9b721a1c345e32bbe04f9b2189bfc3ac7 | refs/heads/master | 2021-06-18T20:13:34.108057 | 2021-03-03T05:14:13 | 2021-03-03T05:14:13 | 177,454,524 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | class Solution:
def shortestPalindrome(self, s: str) -> str:
n = len(s)
t =s[::-1]
if n == 0:
return ""
for i in range(n, 0 ,-1):
if s[:i] == t[n-i:]:
break
return t[:n-i] + s | [
"tracylu1996@gmail.com"
] | tracylu1996@gmail.com |
b86f3709de8bb3479af18ab8d8a462010242978a | 4038af23324241fe74ef0604af395cac6da68b26 | /Hackerrank/minimum_time_required/min_time.py | a746548f3b8f028071988d16ee4c7389c30ffae3 | [] | no_license | narnat/algorithms_and_datastructures | 4fd5b0fa401d3f441c522f61eceecd4f8f17010d | f319f64f1774c92ce2a94cc6106eec68215f573b | refs/heads/master | 2020-09-29T05:38:41.099526 | 2019-12-22T21:12:53 | 2019-12-22T21:12:53 | 226,966,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/usr/bin/python3
import math
""" Minimum time required problem """
def minTime(machines, goal):
l_bound = math.ceil(min(machines) * goal / len(machines))
r_bound = math.ceil(max(machines) * goal / len(machines))
while l_bound < r_bound:
mid = (l_bound + r_bound) // 2
s = sum(mid // i fo... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
1924cf501b9069a7dcfd9aa0c4af61bae2945b6d | 6093dca86097633d337a8a8d13c0f7513dd33db6 | /defining_classes_lecture1/LAB/02. Scope Mess.py | 0afb2155d65faddf8ed0ef0538a74e99e8c08802 | [] | no_license | tony-andreev94/Python-OOP | 7b1e862f793193aae7be5a759314b214eef7a8c6 | 26c2143da12ae93f515d9e2823c0e46e0fffbaad | refs/heads/master | 2023-01-28T10:18:25.901244 | 2020-12-10T19:40:43 | 2020-12-10T19:40:43 | 254,870,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # https://judge.softuni.bg/Contests/Practice/Index/1934#1
x = "global"
def outer():
x = "local"
def inner():
nonlocal x
x = "nonlocal"
print("inner:", x)
return x
def change_global():
global x
x = "global: changed!"
print("outer:", x)
inner()
... | [
"tony.andreev94@outlook.com"
] | tony.andreev94@outlook.com |
590af1c251015ae9d7f6be2d779f44f1e6addb1c | 3fc4cac282465350d9b2983527140fc735a0d273 | /0903/12_updowntest.py | 3621b0dc8af94837fbda6ae7399450f1efa3502e | [] | no_license | Orderlee/SBA_STUDY | 2cfeea54d4a9cbfd0c425e1de56324afcc547b81 | 4642546e7546f896fc8b06e9daba25d27c29e154 | refs/heads/master | 2022-12-25T01:08:05.168970 | 2020-09-27T14:57:23 | 2020-09-27T14:57:23 | 299,050,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # 모듈을 사용하고자 할때 import 키워드 사용
import random # random 모듈 : 랜덤한 데이터를 추출하고자 할 때 사용하는 모듈
# for idx in range(1,11):
# answer = random.randint(1,100);
# print(answer)
# answer = 컴퓨터가 기억한 값
answer = random.randint(1,100)
print('정답: %d' % answer)
cnt=0 #시도 횟수
while True:
# su 우리가: 입력한 숫
su = int(input('1부터 10... | [
"61268230+Orderlee@users.noreply.github.com"
] | 61268230+Orderlee@users.noreply.github.com |
a4e78b137f746516856f31f699789563c337e5e2 | 444a9480bce2035565332d4d4654244c0b5cd47b | /official/recommend/Wide_and_Deep_Multitable/src/config.py | 7c268bc3ca56e954a9f8d298c9e674960db089b2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 4,013 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
0f82bf000b4eb72c2fdb98ee606bbd51f9eb88b8 | ebbf6e6db50bc26326075b38d95e42859c48b271 | /ptpdb/__init__.py | c0341ee5c1fd4a103cc585fdd4ad10993b90d231 | [] | no_license | msabramo/ptpdb | 83b7f353325b47bc912a8b5abd07596b63c57232 | acb1345616ecd5422f029ab672023b7e74c82dfb | refs/heads/master | 2023-06-09T15:56:37.879305 | 2015-01-26T21:49:25 | 2015-01-26T21:49:25 | 30,851,304 | 0 | 0 | null | 2015-02-16T02:47:12 | 2015-02-16T02:47:12 | null | UTF-8 | Python | false | false | 9,308 | py | #!/usr/bin/env python
"""
Python debugger prompt.
Enhanced version of Pdb, using a prompt-toolkit front-end.
Usage::
from prompt_toolkit.contrib.pdb import set_trace
set_trace()
"""
from __future__ import unicode_literals, absolute_import
from pygments.lexers import PythonLexer
from prompt_toolkit import Abo... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
f078e52815b8d620a3bc948a26f081c1548b83be | 20c4868b88fd20402ef4a6d589d7382122e48e26 | /python/L1PFProducer_cff.py | 315177ef15fdbf97b3a0fecf3b94d7cd6060f38f | [] | no_license | isobelojalvo/phase2Demonstrator | 7134c526da7e47c67b5a32c70fe76e561b66276c | 64c07512c01593d9e324fea33c61957d8e5fe6fd | refs/heads/master | 2021-01-20T09:27:09.928037 | 2018-07-12T12:51:16 | 2018-07-12T12:51:16 | 90,258,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | import FWCore.ParameterSet.Config as cms
L1PFProducer = cms.EDProducer("PFObjectProducer",
debug = cms.untracked.bool(False),
EoH_cut = cms.untracked.int32(50),
HoE_cut = cms.untracked.int32(2),
... | [
"ojalvo@wisc.edu"
] | ojalvo@wisc.edu |
3c3e9c924344cc2a78174033eb88efdd0652695c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03665/s598490894.py | 27c1418aa65f1383e6daecca8d1c52215b4074ec | [] | 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 | 222 | py | n, p = map(int, input().split())
A = list(map(int, input().split()))
U = n*100
dp = [0]*(U+1)
dp[0] = 1
for a in A:
for j in reversed(range(U+1)):
if 0 <= j-a:
dp[j] += dp[j-a]
print(sum(dp[p::2]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ad70f7d8ca908f1273ae019f830e9ac792c4f170 | 1b30905742e50f8e45494c847c2bacdd43da21e7 | /src/test50_02.py | cc5f2ee905dd75bc496c56fcdfcb1f880495e42a | [] | no_license | choijaehoon1/baekjoon_workbook | e57e30f84fafa3ffcd8da9a2238260eab29f7d9f | 26966e9fc814c2099408a6b96906522f432aa602 | refs/heads/main | 2023-07-20T18:54:36.727559 | 2021-08-20T14:39:54 | 2021-08-20T14:39:54 | 352,350,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | from collections import deque
import sys
def island(x,y,cnt):
visit[x][y] = 1
q = deque()
q.append([x,y])
new_board[x][y] = cnt
while q:
x,y = q.popleft()
for k in range(4):
nx = x + dx[k]
ny = y + dy[k]
if 0<=nx<N and 0<=ny<N:
if... | [
"wogns_20@naver.com"
] | wogns_20@naver.com |
e548e0467e9821fefcefe8959ce76648d0c8d5b6 | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/sms/migrations/0034_auto_20191007_0756_noop.py | 2022476a223562183c944ac937d5515939d06c95 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 3,062 | py | from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sms', '0033_starfishbackend'),
]
operations = [
migrations.AlterField(
model_name='messagingevent',
name='content_type',
field=models.CharField(choices=[... | [
"skelly@dimagi.com"
] | skelly@dimagi.com |
d74903f5c33364fcf7a60715f24a8920190c6ec7 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShObligationPut/YW_GGQQ_YWFSJHA_GU_082.py | 3a8a856158287639128a7453120a01d573d4397e | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import json
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/option/service")
from OptMainService import *
from OptQueryStkPriceQty import *
sys.path.append("/home/yhl2/workspace/xt... | [
"418033945@qq.com"
] | 418033945@qq.com |
4fcee9011b31911038eb69bd7ab3d6f7f2911743 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/gaming/v1beta/gaming-v1beta-py/google/cloud/gaming_v1beta/services/game_server_clusters_service/transports/grpc_asyncio.py | e5aa514582076b0bea2b051bf03da0b7d8f279aa | [
"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 | 22,342 | 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 |
6b9fc9a69050a9b0c6db9f8b90649613a52e8654 | 077c91b9d5cb1a6a724da47067483c622ce64be6 | /fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs/interreplay_53_l_6/openflow_replay_config.py | 451f2b5836e94a2683df01ee2a01405c012fc4bd | [] | no_license | Spencerx/experiments | 0edd16398725f6fd9365ddbb1b773942e4878369 | aaa98b0f67b0d0c0c826b8a1565916bf97ae3179 | refs/heads/master | 2020-04-03T10:11:40.671606 | 2014-06-11T23:55:11 | 2014-06-11T23:55:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow import OpenFlowReplayer
from sts.simulation_state import SimulationConfig
from sts.input_traces.input_logger import InputLogger
simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd... | [
"cs@cs.berkeley.edu"
] | cs@cs.berkeley.edu |
f697f4f21e50a268bb9b96f4632268b6cd769f87 | a36eb4685fd050c8e1ecb4a333470724bd76df60 | /Leetcode/Jul20/260720/q3/q3.py | 1f406db0251d7cdda7716651a8d622110954fbbd | [] | no_license | phibzy/Contests | c9cff976909234cfafc51db9d9dde01c26123168 | 24aac4c81f34916945be03ed0b7c916dae4dbbb4 | refs/heads/master | 2023-01-20T06:23:06.837937 | 2020-11-30T06:54:58 | 2020-11-30T06:54:58 | 265,750,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/python3
"""
@author : Chris Phibbs
@created : Sunday Jul 26, 2020 13:14:31 AEST
@file : q3
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = rig... | [
"phibzy@gmail.com"
] | phibzy@gmail.com |
1d71e6128516fc6148c21ca11b9959d94edff31c | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/communication/azure-communication-phonenumbers/test/_shared/testcase.py | fa09dc67deb019afa1bced230916cbee2dc65c51 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 3,389 | py |
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import re... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
5bcf0dda20970a9d1a8e0b883d785cd389b0b7f1 | b853c16efafa74a9e1cb076008a17c9d85389fca | /HOME/笔记/待整理笔记/线程/12.23-t/alarm.py | f1cf5c62caf9f6032bd2f21d19cba926cd7085c8 | [] | no_license | Jason0221/backup | 14c48f1adb871b915d6f0ba49a26396e7cf0cd64 | dfd54cbcf7c27b0df6249104747e9a7ceffcb392 | refs/heads/master | 2020-06-03T13:14:39.751679 | 2017-05-15T08:50:38 | 2017-05-15T08:50:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #!/usr/bin/python
import signal
import time
signal.alarm(5)
time.sleep(3)
num = signal.alarm(4)
print num
#signal.pause()
while True:
time.sleep(1)
print "wait....."
| [
"jasonlearning@outlook.com"
] | jasonlearning@outlook.com |
566258060889cb72a0fb1766a1d2280c6a668f14 | 3f1ba75a78568754f221988e69c17df20d69aa8d | /day07/03-函数嵌套.py | 2ebe517f1f2fe89e1c2c4612d6eee9c92c05275e | [] | no_license | itkasumy/LNHPython | 8d2a961c6446923cebc4e4bb99ed4631a90cf3d5 | 4a5c0e7991e167b0406c1e56bae73899dd90390b | refs/heads/master | 2020-04-15T10:16:51.981833 | 2019-01-25T08:34:07 | 2019-01-25T08:34:07 | 164,589,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def father(name):
print('from father %s' %name)
def son():
print('from son')
def grandson():
print('from grandson...')
grandson()
son()
father('ksm')
| [
"18500682038@163.com"
] | 18500682038@163.com |
14bf7a46bf9a6a287a37ba5287a064e071cc029e | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/cli/commands/test_kubernetes_command.py | 8a0045f27d86d7adcb69635d21d26a3171d916f3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 11,834 | 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... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
74de8906c049b86432a83972f2d2a1cd447e69ad | 835db5ec0fc127df1de58a9a3af4a869a1a7cd84 | /assignments/functions/every_other_chr.py | 5720eb6ef06ff3a5f6025e13d3a57aff21b84fc7 | [] | no_license | thorhilduranna/2020-3-T-111-PROG | 3ba097e1b54d68bdd6efbf1d7f90911a9336fa5a | c9758b61256aa6e39a3308e576c8ad0bf2b6d027 | refs/heads/master | 2023-02-09T23:39:22.879653 | 2021-01-07T12:59:19 | 2021-01-07T12:59:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | def every_other_chr(a_str):
'''Returns a new string containing every other character in a_str.'''
return a_str[::2]
input_str = input("Enter a string: ")
print("Every other character:", every_other_chr(input_str))
| [
"hrafnl@gmail.com"
] | hrafnl@gmail.com |
37f2ba7809ae2039b8567f6cd6be0f8f8ebe2447 | 88eeba6df8382687f36a4765bb298f76465c8e81 | /general/chainerrl/chainerrl/chainerrl/q_function.py | b47c78e34912c52abd9195222df91db7c7c75e7c | [
"MIT"
] | permissive | daniellawson9999/quick_start | db0b6e382efd640754ca1e7800753c94e668423a | 947d61f118433dcd4cb845f27649ebfbc8062ecc | refs/heads/master | 2022-02-23T21:54:16.273530 | 2019-09-27T01:46:41 | 2019-09-27T01:46:41 | 197,873,032 | 0 | 0 | null | 2019-07-20T03:12:34 | 2019-07-20T03:12:31 | null | UTF-8 | Python | false | false | 673 | py | from __future__ import division
from __future__ import unicode_literals
from __future__ import print_function
from __future__ import absolute_import
from builtins import * # NOQA
from future import standard_library
standard_library.install_aliases() # NOQA
from abc import ABCMeta
from abc import abstractmet... | [
"daniellawson9999@gmail.com"
] | daniellawson9999@gmail.com |
73f8720174f8e6518ef3716c337664d59c628864 | 82f6a6c50a1fef2d7522a43cc4f60e5ff80b37a8 | /solutions/Ambiguous Coordinates/solution.py | 309717524e6eb2befded94b0bafc3907f4e2069b | [
"MIT"
] | permissive | nilax97/leetcode-solutions | ca0f9545ce70975617738f053e0935fac00b04d4 | d3c12f2b289662d199510e0431e177bbf3cda121 | refs/heads/master | 2023-05-14T02:21:48.893716 | 2021-06-08T13:16:53 | 2021-06-08T13:16:53 | 374,466,870 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | class Solution:
def ambiguousCoordinates(self, S: str) -> List[str]:
def make(frag):
N = len(frag)
for d in range(1, N+1):
left = frag[:d]
right = frag[d:]
if ((not left.startswith('0') or left == '0')
and (not r... | [
"agarwal.nilaksh@gmail.com"
] | agarwal.nilaksh@gmail.com |
4291ea8563309410ba811f227c3159ae6c856f88 | cc0e381fde5cc6870770396d990d2bad66a3186c | /PythonExercicios/ex006.py | 653eff93c4c8ecd980c2238d4ae97cf870bd2c40 | [] | no_license | jnthmota/Python-PySpark-Cursos | 2c7fac79867059e0dfe4f0c4b6b6e1d32260530f | 680a4c422e14a26036379f49f0de6b5e73d7e431 | refs/heads/main | 2023-08-15T00:22:59.189649 | 2021-09-12T23:00:39 | 2021-09-12T23:00:39 | 373,610,471 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #06)CRIE UM ALGORITMO QUE LEIA UM NÚMERO E MOSTRE O SEU DOBRO, TRIPLO E RAIZ QUADRADA
a = int(input('Digite um valor: '))
d = a * 2
t = a * 3
#rq = a ** (1/2)
#OU
rq = pow(a, (1/2)) #POW BASE EXPONENCIAL **
print('O seu dobro de {} é: {} \n O seu triplo de {} é: {} \n A raiz Quadrada de {} é: {:.4}'.format(a, d, a, t,... | [
"jonathan.mota@outlook.com"
] | jonathan.mota@outlook.com |
21e359d18b7e8e9f78fb251a5fb993843cc4ce54 | 762bd83dd4c96a6a5890e21b14252104fcfdc51f | /hw_2/code/conftest.py | 24d17a5bcb26cb484469f373c9bd8b63c1ad7deb | [] | no_license | Batroff/2021-1-MAILRU-SDET-Python-S-Savranskii | 1c1207bd9b22e9f2bd99af40767d6507e63c7380 | 133efd2960ddacc51ec7cba29bd7fce5e29223d9 | refs/heads/main | 2023-06-02T18:06:05.752307 | 2021-06-16T15:23:03 | 2021-06-16T15:23:03 | 349,384,217 | 0 | 0 | null | 2021-06-11T13:14:27 | 2021-03-19T10:28:47 | Python | UTF-8 | Python | false | false | 1,976 | py | import logging
import os
import shutil
import allure
from ui.fixtures import *
def pytest_addoption(parser):
parser.addoption('--url', default='http://www.target.my.com')
parser.addoption('--browser', default='chrome')
parser.addoption('--debug_log', action='store_true')
def pytest_configure(config):
... | [
"savran46@mail.ru"
] | savran46@mail.ru |
49e700cbe29de94dcbe30c3986931889084d727b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert_Chinese_ID3433_for_PyTorch/transformers/tests/xlm/test_tokenization_xlm.py | bd056b69d430916d4db4caa60fd158aa3492ff77 | [
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 3,292 | py | # coding=utf-8
# Copyright 2020 The HuggingFace Team. 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 requir... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
6bfede719838e1bfce9c066b0dcf798a99fe4c9f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_23405.py | 3acd2d2d0d8cd4d8d381f05872a1405cf1eb80bc | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | # Interactive matplotlib/ipython figures on Windows
git pull && python setup.py install
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
e95654a88cccfe3a701fa50cef273760697ac47e | 1b5d39f9dd5126b6f21e83efe58b7e86ef8d94f2 | /CodeForces/round633/A.py | 75c2d2dad491cacb5df76cb375b625d7a1b16a9c | [] | no_license | jai-dewani/Competitive-Programming | dfad61106a648b80cc97c85cc5c8bc5d1cd335d9 | a2006e53b671ba56d4b0a20dd81fd0e21d0b0806 | refs/heads/master | 2021-07-03T16:08:02.466423 | 2020-09-24T16:22:28 | 2020-09-24T16:22:28 | 178,812,685 | 1 | 2 | null | 2019-10-18T14:43:19 | 2019-04-01T07:51:47 | Python | UTF-8 | Python | false | false | 65 | py | for _ in range(int(input())):
n = int(input())
print(n) | [
"jai.dewani.99@gmail.com"
] | jai.dewani.99@gmail.com |
6d72fc5e1fd1df9222164bb3be5e6ec1ec3b123e | 81c344b8df43ed550cb9496c664a8de2687eda3e | /venv/lib/python3.8/site-packages/ansible_collections/fortinet/fortios/plugins/modules/fortios_switch_controller_system.py | 3a8271b6b43f3bd147ba71128a63cce53822870d | [] | no_license | anhdoan-ntt/cisco-aci | dc0e52b6d19ee0bafb2b24e0febe955952bf39ef | 185be6d6f13eabd65fb0ff328ea54f6507ccf0d4 | refs/heads/main | 2022-12-20T00:07:27.465096 | 2020-10-05T08:15:29 | 2020-10-05T08:15:29 | 300,500,699 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,062 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019-2020 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of th... | [
"dc.anh.doan@gmail.com"
] | dc.anh.doan@gmail.com |
50e593e5345382e1c4b44ea0718549de7998cc89 | d3eec7a516ffca4620206f23d399fa085660fb3c | /demo/settings.py | 48a2c62a6757f3a8fb08ef27522fb303d0295091 | [] | no_license | anykate/extend_user_demo | 90c5bff2e973d22d0976e495d2ca4e686be86cf1 | bffce102cefffad30975032c378ce3efbbfb0b5d | refs/heads/master | 2020-11-28T09:52:20.453293 | 2019-12-23T15:21:19 | 2019-12-23T15:21:19 | 229,775,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | """
Django settings for demo project.
Generated by 'django-admin startproject' using Django 3.0.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"aryamane.aniket@gmail.com"
] | aryamane.aniket@gmail.com |
13f3dd0325d622f22a952ada5c8b888c11b78111 | d9a4cecfdcccdb60f55b5e3a5670d178f4cf2211 | /copyjunctions_simple.py | d6190e6d10a0be188019de1fac8a00b6d9bfe112 | [
"Apache-2.0"
] | permissive | geng-lee/BAM-to-Junction-BED | e75426f919bbe1781abe8dc6be2de3f83157585b | a878710ee395b2bf7f2eb7e4df84f8383d39d662 | refs/heads/master | 2023-03-17T01:08:20.040686 | 2017-02-28T20:39:23 | 2017-02-28T20:39:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | ### hierarchical_clustering.py
#Copyright 2005-2012 J. David Gladstone Institutes, San Francisco California
#Author Nathan Salomonis - nsalomonis@gmail.com
#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 ... | [
"nsalomonis@gmail.com"
] | nsalomonis@gmail.com |
fca91a107b5e307a442b5bceeab6a80e12a5c2d9 | 6df76f8a6fcdf444c3863e3788a2f4b2c539c22c | /django code/p25/enroll/forms.py | 81abe59143f26d866e689893095a339e98c74dbb | [] | no_license | basantbhandari/DjangoProjectsAsDocs | 068e4a704fade4a97e6c40353edb0a4299bd9678 | 594dbb560391eaf94bb6db6dc07702d127010b88 | refs/heads/master | 2022-12-18T22:33:23.902228 | 2020-09-22T13:11:01 | 2020-09-22T13:11:01 | 297,651,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django import forms
class StudentRegistration(forms.Form):
name = forms.CharField()
email = forms.EmailField()
first_name = forms.CharField()
| [
"36443209+basantbhandari@users.noreply.github.com"
] | 36443209+basantbhandari@users.noreply.github.com |
de9c252d46aa0d2b94e2e420716e08d4b131d555 | fc195da9608a52dc298f2fea74d38260425ba829 | /examples/translations/japanese_test_1.py | c45ba7a97b67466613e62ddb3d4f77b38e8dd496 | [
"MIT"
] | permissive | kawarada-san/SeleniumBase | 9f824992911d0eade63df6ab877ae9fd9d6f5b5e | 8e601717fdef0814aae01c6411ea0e1fb114a269 | refs/heads/master | 2021-04-08T21:26:08.663911 | 2020-03-20T04:37:28 | 2020-03-20T04:37:28 | 248,811,137 | 0 | 0 | MIT | 2020-03-20T17:11:45 | 2020-03-20T17:11:45 | null | UTF-8 | Python | false | false | 845 | py | # Japanese Language Test - Python 3 Only!
from seleniumbase.translate.japanese import セレンテストケース # noqa
class テストクラス(セレンテストケース): # noqa
def test_例1(self):
self.URLを開く("https://ja.wikipedia.org/wiki/")
self.テキストを確認する("ウィキペディア")
self.要素を確認する('[title="メインページに移動する"]')
self.テキストを更新("#... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
19ae610a39764ccc48ee3fdcc09812438be053ca | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/concat82/612-tideGauge.py | 1815baf705abdb18d06e84f33cb97d92e2e83887 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,482 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 13 10:02:00 2020
---------------------------------------------------------
This script concatenates yearly predictor files
Browses the predictor folders for the chosen TG
Concatenates the yearly csvs for the chosen predictor
Saves the concatenated csv in a separate dire... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
70fac4fbeee5e3465e7135ca016d3e4c35c96452 | 89b4fb1cbaa472e1b19c2e5b024c8ba788e27a3d | /tests/test_pyppeteer.py | e74a7f06d263451334d7f6b6ec968d79c6aafa89 | [
"MIT",
"Apache-2.0"
] | permissive | moe-m/pyppeteer | 330dbfc2774fb25e3f9b57641a4d09a08bb52ed4 | caf4d3a9e50d1ccb93d4219eed169471b1783bc0 | refs/heads/dev | 2021-04-24T21:55:59.722124 | 2018-01-09T23:58:00 | 2018-01-09T23:58:00 | 116,884,402 | 0 | 0 | null | 2018-01-09T23:58:01 | 2018-01-09T23:52:55 | Python | UTF-8 | Python | false | false | 13,314 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_pyppeteer
----------------------------------
Tests for `pyppeteer` module.
"""
import asyncio
from pathlib import Path
import time
import unittest
from syncer import sync
from pyppeteer.launcher import launch
from pyppeteer.util import install_asyncio, get_fre... | [
"miyako.dev@gmail.com"
] | miyako.dev@gmail.com |
f2ec83131298fd44f3966e637b944e3667885a12 | 3940b4a507789e1fbbaffeb200149aee215f655a | /lc/review_629.KInversePairsArray.py | 8a4cbd070efefb7b9865f42b2eb8fafcf752eaa7 | [] | no_license | akimi-yano/algorithm-practice | 15f52022ec79542d218c6f901a54396a62080445 | 1abc28919abb55b93d3879860ac9c1297d493d09 | refs/heads/master | 2023-06-11T13:17:56.971791 | 2023-06-10T05:17:56 | 2023-06-10T05:17:56 | 239,395,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,635 | py | # 629. K Inverse Pairs Array
# Hard
# 1131
# 136
# Add to List
# Share
# For an integer array nums, an inverse pair is a pair of integers [i, j] where 0 <= i < j < nums.length and nums[i] > nums[j].
# Given two integers n and k, return the number of different arrays consist of numbers from 1 to n such that there a... | [
"akimi.mimi.yano@gmail.com"
] | akimi.mimi.yano@gmail.com |
954aed68a50f07d377742c0dd09e93768493af8f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_018/ch118_2020_03_31_17_12_49_349131.py | 5b8e656f9a0736224a9852ea334e20ccbbe25997 | [] | 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 | 224 | py | import math
def reflexao_total_interna(n1,n2,teta2graus):
teta2rad = math.radians(teta2graus)
teta1rad = (n2*math.sin(teta2rad))/n1
if math.sin(teta1rad) > 1:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
566f6d1dd1cf89383dcf07c36cdd66d48a63be8f | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_RelativeDifference/trend_PolyTrend/cycle_30/ar_12/test_artificial_32_RelativeDifference_PolyTrend_30_12_20.py | 3d4e035ecfec1b335fef8fbde0e7c83cbacb5489 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 279 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 30, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
deb2f2b6d8483b552b2f4314ce7f5ba958462d3a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_171642.81+412622.3/sdB_SDSSJ_171642.81+412622.3_coadd.py | 269e76e3327b7a8949217536052e70c5b6397b16 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[259.178375,41.439528], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_SDSSJ_171642.81+412622.3/sdB_SDSSJ_171642.81+412622.3_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
8971f4fa9b187ce6b2424fd1736169682efe90b2 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/1012_NumbersWithRepeatedDigits.py | 4f0a1b3cd50e2f10a2e76bc5453f8c25bb8a6125 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | """
Given a positive integer N, return the number of positive integers less than or equal to N that have at least 1 repeated digit.
Example 1:
Input: 20
Output: 1
Explanation: The only positive number (<= 20) with at least 1 repeated digit is 11.
Example 2:
Input: 100
Output: 10
Explanation: The positive numbers ... | [
"here0009@163.com"
] | here0009@163.com |
2d7c27442952fe478807ed74d7c022de2f10b28c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_208/111.py | fb1d05f6613af1be13458ff9e2ba26f08ea8805e | [] | 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 | 2,654 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 22 11:51:27 2017
@author: pellowes
"""
import numpy as np
import sys
fileIn = '/Users/pellowes/test.in'
fileIn = '/Users/pellowes/Downloads/C-small-attempt1.in'
#fileIn = '/Users/pellowes/Downloads/A-large(3).in'
fileOut = fileIn.split('.')[0]+'.out'
f = open(fileIn,'... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9da04c099883870e8ad931318365f288003451d8 | 9ed4d46aedd4d4acadb48d610e940594b5b7b3fd | /project_euler/problem_046/sol1.py | 07dd9bbf84c8046f193eae040861fc196b7ae147 | [
"MIT",
"CC-BY-NC-4.0",
"CC-BY-NC-SA-4.0"
] | permissive | TheAlgorithms/Python | 7596a0e236ed12a61f9db19a7ea68309779cc85b | 421ace81edb0d9af3a173f4ca7e66cc900078c1d | refs/heads/master | 2023-09-01T17:32:20.190949 | 2023-08-29T13:18:10 | 2023-08-29T13:18:10 | 63,476,337 | 184,217 | 48,615 | MIT | 2023-09-14T02:05:29 | 2016-07-16T09:44:01 | Python | UTF-8 | Python | false | false | 2,808 | py | """
Problem 46: https://projecteuler.net/problem=46
It was proposed by Christian Goldbach that every odd composite number can be
written as the sum of a prime and twice a square.
9 = 7 + 2 × 12
15 = 7 + 2 × 22
21 = 3 + 2 × 32
25 = 7 + 2 × 32
27 = 19 + 2 × 22
33 = 31 + 2 × 12
It turns out that the conjec... | [
"noreply@github.com"
] | TheAlgorithms.noreply@github.com |
c95316ed88c4eb8b6507da52be9580434e57786d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_divination.py | 6d43fd05084eaeeb1cd6871ad852cdf779c77057 | [
"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 | 360 | py |
#calss header
class _DIVINATION():
def __init__(self,):
self.name = "DIVINATION"
self.definitions = [u'the skill or act of saying or discovering what will happen in the future']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 =... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d254ebfbaeafdb969c9d4440d84ce4d00f4001b8 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOfflineProviderIndirectisvActivityEffectModel.py | cac8ed6d796184997fe5f3aa98dbb056ba0bbc8a | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,002 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOfflineProviderIndirectisvActivityEffectModel(object):
def __init__(self):
self._effective_time = None
self._ext_info = None
self._merchant_id = None
@property
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
6c409fcaa252b26079a41244cd21a989f55251bc | 4d2cc76dbceff9eded071ba542ab2a1dd8c19f7b | /bhp056/apps/mpepu_lab/migrations/0002_auto__add_field_infantrequisition_sample_type__add_field_infantrequisi.py | 61675964e87a72884b15d72cd9cd71918dec3590 | [] | no_license | botswana-harvard/mpepu | 5d436638b760150ed76ec223121f5ac7aeee1020 | 6aa29c91f4fab50782b27e5f55aa33b30aee1dd0 | refs/heads/master | 2021-01-16T23:15:44.335940 | 2016-08-12T14:30:17 | 2016-08-12T14:30:17 | 65,557,693 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 39,317 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'InfantRequisition.sample_type'
db.add_column('mpepu_lab_infantrequisition', 'sample_type',... | [
"ew2789@gmail.com"
] | ew2789@gmail.com |
a9595644a256d97d832d311804226c979060f5e6 | 351fa4edb6e904ff1ac83c6a790deaa7676be452 | /misc/maxAreaOfCake/Solution.py | 3facaa570babac01ef0de3db2aefe3661017d523 | [
"MIT"
] | permissive | shahbagdadi/py-algo-n-ds | 42981a61631e1a9af7d5ac73bdc894ac0c2a1586 | f3026631cd9f3c543250ef1e2cfdf2726e0526b8 | refs/heads/master | 2022-11-27T19:13:47.348893 | 2022-11-14T21:58:51 | 2022-11-14T21:58:51 | 246,944,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from typing import List
class Solution:
def maxArea(self, h: int, w: int, horizontalCuts: List[int], verticalCuts: List[int]) -> int:
hc , vc = sorted(horizontalCuts) +[h], sorted(verticalCuts) + [w]
mh , p = 0 , 0
for h in hc :
mh = max(mh,h-p)
p = h
mw , p ... | [
"email.shanu@gmail.com"
] | email.shanu@gmail.com |
ef80cd1299365e03fba1fc377ac924f891081870 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Hindi/8.py | dea37b09eac4d20e8cdc9749fa9f9f0062527b90 | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | # This is Comment
print("Tuhin") | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
35289460658e0ee7b729775ed7615e52d9c16be0 | 1525eeb085814724cd2678d1d81871c5c4b6eaee | /urls.py | 9570812ad1ee668bdf30070e089f4461d26c9d29 | [] | no_license | djangorobert/datauploader | b6156b4de7490ae9669ce724f6f727d7b5a68a5c | 381edfc76b293038ccabea134face10f15ec1310 | refs/heads/master | 2020-03-28T07:17:45.135728 | 2018-09-13T15:41:21 | 2018-09-13T15:41:21 | 147,892,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from django.conf.urls import url
from datauploader.views import UploadFileView, SubmissionListView
from datauploader import views
urlpatterns = [
url(r'^upload/$', UploadFileView.as_view(), name='upload'),
url(r'^list/$', SubmissionListView.as_view(), name='list'),
url(r'^(?P<pk>\d+)\$', views.Submissio... | [
"djangocharm2020@gmail.com"
] | djangocharm2020@gmail.com |
1350572da4d56758a9a53a26cec9c22952a3686a | cecd66e056674fe0e8f83eb24f0f8f076304ef02 | /meidoo/meidoo/apps/payment/models.py | d05bd14d345e128c9c918f07188544b66e2394ce | [
"MIT"
] | permissive | amourbrus/meiduo_mall | 30b2aac92685df5ef119b57cb653ff5f7eabcb3a | 965b3d4685d1a8fe18a3177cc864f27eeb516081 | refs/heads/master | 2020-03-23T17:42:54.552801 | 2018-07-22T09:23:37 | 2018-07-22T09:23:37 | 141,871,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | from django.db import models
# Create your models here.
from orders.models import OrderInfo
from meidoo.utils.models import BaseModel # check
class Payment(BaseModel):
"""
支付信息
"""
order = models.ForeignKey(OrderInfo, on_delete=models.CASCADE, verbose_name='订单')
trade_id = models.CharField(max_l... | [
"2338336776@qq.com"
] | 2338336776@qq.com |
1a8f4c33617b29b06b3d18836ddac3326c605b11 | 09e5cfe06e437989a2ccf2aeecb9c73eb998a36c | /modules/cctbx_project/libtbx/command_line/create_unzipsfx.py | 726675faa9cac376b1054e69d2966926e398a772 | [
"BSD-3-Clause-LBNL",
"BSD-3-Clause"
] | permissive | jorgediazjr/dials-dev20191018 | b81b19653624cee39207b7cefb8dfcb2e99b79eb | 77d66c719b5746f37af51ad593e2941ed6fbba17 | refs/heads/master | 2020-08-21T02:48:54.719532 | 2020-01-25T01:41:37 | 2020-01-25T01:41:37 | 216,089,955 | 0 | 1 | BSD-3-Clause | 2020-01-25T01:41:39 | 2019-10-18T19:03:17 | Python | UTF-8 | Python | false | false | 1,342 | py | from __future__ import absolute_import, division, print_function
import libtbx.path
import sys
buf_size = 1000000
def copy(src, dest):
while True:
buf = src.read(buf_size)
if (buf == ""): break
dest.write(buf)
def find_unzipsfx():
for command in ("unzipsfx_autorun_yes.exe",
"unzipsf... | [
"jorge7soccer@gmail.com"
] | jorge7soccer@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.