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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c56630841c8602bde83bb5f0a0ab2c6ffcd7ceb2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa1/sample/def_func_nonlocal-67.py | 097609d7e0d61bbab6660375189cf84a37495645 | [] | 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 | 172 | py |
def foo(x:int) -> bool:
a:int = 0
b:int = 1
def bar(y: int) -> int:
nonlocal a
a = 2
return y
return bar($Parameters) > a
foo(1)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
75f658448722da512c74e14e4e1266419cd6b885 | b2b9be47ce8c2cd0985eb39fa4489e149c78a085 | /nintendo/common/http.py | 3562997ac828fce35d724486d11d1eb836251c34 | [
"MIT"
] | permissive | SmmServer/NintendoClients | 9e15801f73d35877b5e3a47830c2a5f2778547ad | e1d2fec34e460cd87330a8cc886e54479d701469 | refs/heads/master | 2022-09-10T13:06:35.800799 | 2019-08-29T17:23:46 | 2019-08-29T17:23:46 | 218,143,700 | 0 | 3 | null | 2019-10-28T20:56:14 | 2019-10-28T20:56:13 | null | UTF-8 | Python | false | false | 5,291 | py |
from . import socket, signal, util, scheduler
import logging
logger = logging.getLogger(__name__)
class HTTPFormData:
def __init__(self):
self.fields = {}
def parse(self, data):
fields = data.split("&")
for field in fields:
if not "=" in field:
logger.warning("Malformed form parameter")
return... | [
"ymarchand@me.com"
] | ymarchand@me.com |
6da151bf49ca7542bce2b587f7aa9ae674492dd1 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/databox/azure-mgmt-databox/azure/mgmt/databox/v2020_11_01/models/_models.py | 4da1571b91cc41132abda557cbb0c4d423f413d3 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 160,973 | 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"
] | scbedd.noreply@github.com |
3f0d5dd795c63efece0b18782e3ac5fed79b6dfd | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=9/params.py | c43dddd0986e94512fb896453546bc28545453ac | [] | 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 | 253 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.516595',
'max_util': '2.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 9,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
0afd96d692bfc94c7f5f01bf86770bbc30d98414 | 3e82d54eda4a3dffd350dfbacc3d6486541211fe | /manage.py | 304e50896c1c893186e36e0542a71457742d63ee | [] | no_license | crowdbotics-apps/testapp-dev-1747 | c29cae77cf75a8ced4804e2093aa7dd7800872c5 | 485adfd2b57bd59185c0d2ea9714884e00130750 | refs/heads/master | 2022-04-08T14:08:53.030919 | 2020-02-28T19:19:18 | 2020-02-28T19:19:18 | 243,837,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'testapp_dev_1747.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d05fc8d82d239460c8948bcb2604441baf39c5b5 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/iot/devices/credentials/describe.py | c6e806c9fe1370cae03c45a6ce6d6cc152c4def6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 2,028 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. 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... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
f086c3c60ee2807d697de9ada4ec168df5ca413c | 9eaa2c64a777bd24a3cccd0230da5f81231ef612 | /study/1905/month01/code/Stage1/day15/exercise02.py | 5a783276705d8406f1385d3bdd97764fd8574235 | [
"MIT"
] | permissive | Dython-sky/AID1908 | 4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c | 46cd54a7b36b5f009974f2bbb7005a4ad440ca1a | refs/heads/master | 2022-04-14T12:23:30.426270 | 2020-04-01T18:05:19 | 2020-04-01T18:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | """
练习2:根据生日(年月日),计算活了多少天
思路
年月日 --> 时间
当前时间 --> 出生时间
计算天
"""
import time
def life_days(year, month, day):
"""
根据生日活了多少天
:param year: 年
:param month:月
:param day:日
:return: 活的天数
"""
tuple_time = time.strptime("{}-{}-{}".format(year, month, day), "%Y-%m-%d")
lift_second = time.tim... | [
"dong_1998_dream@163.com"
] | dong_1998_dream@163.com |
578fcf3f4a42677b26d57fc4c57d9470a1df953a | a37c93503ecb205b16f860664629a41b7c48250e | /initiation/migrations/0003_auto_20200913_0148.py | baad8b906b1e677c71d249c5286e339f7fb44344 | [] | no_license | samuelitwaru/PMS | f86681eaec2e34142447c3e66ab8d0939f4e0dd0 | 7bf7c9c511dd727479020540eef2a86ef561369e | refs/heads/master | 2023-01-10T04:35:16.852447 | 2020-10-22T09:03:48 | 2020-10-22T09:03:48 | 290,486,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # Generated by Django 2.2.3 on 2020-09-13 01:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('initiation', '0002_auto_20200912_0001'),
]
operations = [
migrations.RemoveField(
model_name='r... | [
"samuelitwaru@gmail.com"
] | samuelitwaru@gmail.com |
86df83c6ac010a214be5f8c2906b4e742ea73a87 | 5a17226264d9abe7ff99c7da76512551b3df86a5 | /leetcode_algorithm/hacker_rank_easy_grid_challenge.py | 3e9122d701492f26548736c95604398bd5809d3f | [] | no_license | ccubc/DS_self_learning | cfddf6a02926884fae5a0b2798a20a4470674101 | 40725ee6d699c19c25dfbd81363564e15707c448 | refs/heads/small_potato | 2021-06-30T18:35:04.463732 | 2021-02-12T05:59:01 | 2021-02-12T05:59:01 | 219,366,357 | 3 | 2 | null | 2020-11-12T04:34:16 | 2019-11-03T21:13:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,656 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 10 12:50:41 2020
gridChallenge
Given a square grid of characters in the range ascii[a-z], rearrange elements of each row alphabetically, ascending. Determine if the columns are also in ascending alphabetical order, top to bottom. Return YES if they a... | [
"chengchen1215@gmail.com"
] | chengchen1215@gmail.com |
6c60eb36eeb0a4af34726a6095e3e87304254470 | e7300321d37036463fabb4e959d4b22389d3bca8 | /snmpresponder/macro.py | 7c793889037ca6b6e33d4d54f07f1dcf729e02c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | etingof/snmpresponder | e9b3d3ad4ff06be599f6984a280692dda389fa99 | 6e69f6168b0993cbc36e83cb44245c8776f7427a | refs/heads/master | 2023-03-27T16:56:02.021452 | 2019-12-15T18:23:27 | 2019-12-15T18:23:27 | 164,206,184 | 7 | 2 | BSD-2-Clause | 2019-01-30T22:49:07 | 2019-01-05T10:50:45 | Python | UTF-8 | Python | false | false | 544 | py | #
# This file is part of snmpresponder software.
#
# Copyright (c) 2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/snmpresponder/license.html
#
def expandMacro(option, context):
for k in context:
pat = '${%s}' % k
if option and '${' in option:
option = option.repl... | [
"etingof@gmail.com"
] | etingof@gmail.com |
9befa19f962e8ba4171f6cb4701bc4fcf00e3c6f | fc27e1e21ad4891b1d4e769170671da1a4d32ed2 | /aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/CreateCenRequest.py | fb1574c13c4f51a6a4ae5ea1896c4783115ff5c7 | [
"Apache-2.0"
] | permissive | yonzhan2/aliyun-openapi-python-sdk | 3d05f7e83aeb286ad553a6a36c42ce932a1ece3e | e64873f9b528e1a83e3ea27d583f3f7998e7650b | refs/heads/master | 2020-04-11T10:22:48.511973 | 2018-12-13T09:29:21 | 2018-12-13T09:29:21 | 161,712,443 | 1 | 0 | null | 2018-12-14T00:52:39 | 2018-12-14T00:52:39 | null | UTF-8 | Python | false | false | 2,226 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
ee77ce284052c960131e82d10421401c2060f43e | 594f60b6a536b831d0df38abea7f0ffc0a2fd3cb | /utils/caller_var_name.py | 3ef1f66a6d0fe81c11dad3400acbaf9a1f8b60a5 | [] | no_license | mh70cz/py | 1478439fe939076cca3a30be2f2d29fb4e8a3cd9 | 7fc23f2133624c787e1dd4856322d48251cc6f0e | refs/heads/master | 2022-08-12T06:08:30.720164 | 2022-08-08T23:16:19 | 2022-08-08T23:16:19 | 95,386,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | """ get the original variable name of a variable passed to a function """
# https://stackoverflow.com/questions/2749796/how-to-get-the-original-variable-name-of-variable-passed-to-a-function
# %%
import traceback
# %%
def get_arg_var_name(var):
stack = traceback.extract_stack()
filename, lineno, function_nam... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
9caf7213f35a574893e014c7ef43aa54969c1b44 | 299426a473b725df6c58f4b838be65eb7f6b46d2 | /BootloaderCorePkg/Tools/GenCfgDataDsc.py | ae65b633e258b3f55a0b0965810a3f34a21863bb | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause-Patent"
] | permissive | donnayoyo/slimbootloader | ae494e7f2e4e07652fc8c84e57f6f7a24f590310 | 7942790d76a66ef386660e72c61022696d36273e | refs/heads/master | 2023-03-05T03:04:12.822419 | 2023-02-22T15:22:45 | 2023-02-22T22:19:56 | 153,537,980 | 0 | 0 | BSD-2-Clause | 2018-10-17T23:51:58 | 2018-10-17T23:51:57 | null | UTF-8 | Python | false | false | 84,578 | py | ## @ GenCfgData.py
#
# Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
import os
import re
import sys
import struct
import marshal
from functools import reduce
from datetime import date
# Generated file copyright header
__copyright_tmp__ ... | [
"maurice.ma@intel.com"
] | maurice.ma@intel.com |
2ee24922d25333601d8c0ae29ee08155574c5471 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /.c9/metadata/environment/ib_miniprojects_backend/project_management_portal/views/list_of_tasks/tests/test_case_01.py | eaad758981ca57f8218412898bfb5a503d8ccf16 | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | {"filter":false,"title":"test_case_01.py","tooltip":"/ib_miniprojects_backend/project_management_portal/views/list_of_tasks/tests/test_case_01.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":8,"column":0},"end":{"row":8,"column":0},"isBac... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
c58a77cf8ea4664d61a385917b75010f625b5d7e | 0f1c6902dcd6c067a059b4d155d21a885da07a94 | /pre_commit/languages/docker_image.py | 980c6ef3376f6398379306c27f11b5ffa1688a16 | [
"MIT"
] | permissive | andrewhare/pre-commit | 618985e86df8c2db1dde912ca98d9d20137bddea | 1c641b1c28ecc1005f46fdc76db4bbb0f67c82ac | refs/heads/master | 2021-01-06T23:30:11.927884 | 2020-02-18T18:53:53 | 2020-02-18T18:53:53 | 241,513,355 | 0 | 0 | MIT | 2020-02-19T02:20:45 | 2020-02-19T02:20:44 | null | UTF-8 | Python | false | false | 667 | py | from typing import Sequence
from typing import Tuple
from pre_commit.hook import Hook
from pre_commit.languages import helpers
from pre_commit.languages.docker import assert_docker_available
from pre_commit.languages.docker import docker_cmd
ENVIRONMENT_DIR = None
get_default_version = helpers.basic_get_default_versi... | [
"asottile@umich.edu"
] | asottile@umich.edu |
4149bd0580c1c224bd8b0ae991d8f5da06923ea1 | 3123d95637dd6628e7cc58ec1711c965b8aa911c | /dataset_clustering/dataset_clustering/sample_map.py | bd65f8ddc77fe62f2d7ba26b1827233ef81e24f3 | [] | no_license | ConorFWild/pandda_2_tools | d9e27e33d231982dfaf09644a81a0259df332762 | 9b95c3005153a3ae8ba2bcffc699a07a139ca6df | refs/heads/master | 2021-05-24T11:52:30.107356 | 2020-04-06T16:01:28 | 2020-04-06T16:01:28 | 253,547,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | import numpy as np
import mdc3
from mdc3.types.real_space import interpolate_uniform_grid
class Sampler:
def __init__(self, xmap,
alignment_moving_to_ref,
res_centre_coords,
grid_params=[20, 20, 20],
offset=[10, 10, 10],
):
... | [
"conor.wild@sky.com"
] | conor.wild@sky.com |
673dd580d8d3ff7e098704d6b2d67bf18eb392a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03128/s516473124.py | 57bfe64ffea6df0a31f4b06a5dc26e6f1fbefec3 | [] | 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 | 853 | py | # ABC 118 D
def resolve():
N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
costs = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6]
dp = [-1] * (N+1)
dp[0] = 0
for i in range(1, N+1):
for a in A:
if i - costs[a] < 0:
continue
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0c4046bc68016ff8a5b2fbb659c8fef091ab302e | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/aio/operations/_private_endpoint_connections_operations.py | 5f74a513e84b21f5ac0ebd375fbf235578069a0f | [
"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 | 23,283 | 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"
] | yunhaoling.noreply@github.com |
c1eb625c0c3ac788a3bdba3802974dba9f5a8fec | 149baa65329d0e13ae3189b8127d2eff5f5fdf77 | /bot_ws/devel/lib/python2.7/dist-packages/rbt_baxter_msgs/msg/_AssemblyStates.py | a9e882da171b4221de92892bbf8f8e1754454571 | [] | no_license | mtbthebest/imitation_learning | 20b990aa7396fecbe5433c7703f353bf99fa5f2c | 4c08192e31062f69056cc36efffb7a2ce0264244 | refs/heads/master | 2020-05-21T17:05:26.567273 | 2019-09-16T12:20:19 | 2019-09-16T12:20:19 | 186,111,790 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,949 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rbt_baxter_msgs/AssemblyStates.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import rbt_baxter_msgs.msg
class AssemblyStates(genpy.Message):
_md5sum = "63427318d... | [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
63d50ed88e8feba8f6c649ad99ca81e355a046ac | 6ddcb131e5f2806acde46a525ff8d46bfbe0990e | /enaml/backends/qt/qt_widget_component.py | 822390d1671b5cb169b41e7f6b48f38c0d128bb9 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agrawalprash/enaml | 5ce1823188eb51e5b83117ebee6c3655f53e5157 | 96828b254ac9fdfa2e5b6b31eff93a4933cbc0aa | refs/heads/master | 2021-01-15T23:35:21.351626 | 2012-09-05T03:40:07 | 2012-09-05T03:40:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,833 | py | #------------------------------------------------------------------------------
# Copyright (c) 2011, Enthought, Inc.
# All rights reserved.
#------------------------------------------------------------------------------
from .qt.QtCore import QRect
from .qt.QtGui import QFrame, QWidgetItem, QApplication
from .qt_bas... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
befdbf9d49ecbacc576d8f26b2fa4fffff3aa151 | 82f36fc7f70a63499c9c29d031dc7b07a4e4ab88 | /vi/mappings.py | 9ba29b7af38016b203d195ebaede821278469584 | [
"MIT"
] | permissive | theicfire/Vintageous | f89ca1463b452c6a53eb1bd26595149a23359197 | 43cf37ac2cc2494f6f73102e4157442b5ae56925 | refs/heads/master | 2021-01-17T22:54:34.991987 | 2015-01-23T18:45:44 | 2015-01-23T18:45:44 | 18,224,457 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,431 | py | from Vintageous.vi import utils
from Vintageous.vi.keys import mappings
from Vintageous.vi.keys import seq_to_command
from Vintageous.vi.keys import to_bare_command_name
from Vintageous.vi.keys import KeySequenceTokenizer
from Vintageous.vi.utils import modes
from Vintageous.vi.cmd_base import cmd_types
from Vin... | [
"guillermo.lopez@outlook.com"
] | guillermo.lopez@outlook.com |
f3d28c67ce3c204281fba9eb03139289dcd94557 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02699/s566880500.py | 34fe2afaf3ca8701fbe528eff12accbc101faa8a | [] | 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 | 109 | py | n_sheep, n_wolves = map(int, input().split())
if n_sheep <= n_wolves:
print('unsafe')
else:
print('safe')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
67f6d7067c52342313b9cecb20a8d9484514d1d9 | 3ffeeae8a9a3245d8998d94aa08f680f00056cad | /669.修剪二叉搜索树.py | 1ea81092b2bc054b50373284e38fc7407cf9e7ad | [] | no_license | Ezi4Zy/leetcode | 6e293e5c07a7d8c3e38f9445ff24330134ef6c48 | 9d394cd2862703cfb7a7b505b35deda7450a692e | refs/heads/master | 2022-04-09T14:11:36.957861 | 2022-03-09T10:30:30 | 2022-03-09T10:30:30 | 57,290,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #
# @lc app=leetcode.cn id=669 lang=python
#
# [669] 修剪二叉搜索树
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def trimBST... | [
"Ezi4zy@163.com"
] | Ezi4zy@163.com |
6666429918f78cf1993fab4ef0d3566b40ccef19 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_059/ch72_2020_05_01_19_49_54_675529.py | 0dc9d236a9b58259317b460efad32d9f49830dd5 | [] | 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 | 108 | py | def lista_caracteres(x):
l = []
for i in range(len(x)):
l.append(x[i])
return l
| [
"you@example.com"
] | you@example.com |
5fbe7e26275eff558ad4458bfb01001b4d60fc28 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_33338.py | 0aa8b984c1e2deefa8ec5567f59cb26c119abed1 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,838 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
daa21c4b97b6966cef4a6950ad18f755e47dd0be | 8f6c9203b260d832860aa6e434ab668e170cfb1d | /test/conftest.py | e855b32ee851a344a6029c086ad23319e6cab159 | [
"Apache-2.0",
"FSFAP",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | igalic/mod_md | 66ad0938d4ca71f995f61a7d487ce5ade0d8c5cc | 105fca1a8a87c46c105cb9b38d13f998318c1db2 | refs/heads/master | 2023-08-15T11:01:24.290650 | 2021-10-19T12:27:17 | 2021-10-19T12:27:17 | 419,234,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | import logging
import os
import time
from datetime import timedelta
import pytest
from md_certs import CertificateSpec, MDTestCA
from md_conf import HttpdConf
from md_env import MDTestEnv
from md_acme import MDPebbleRunner, MDBoulderRunner
def pytest_report_header(config, startdir):
env = MDTestEnv()
return... | [
"stefan.eissing@greenbytes.de"
] | stefan.eissing@greenbytes.de |
db2aa6414dc0fb9d7936579b117bce3f7587c9cc | ef4749b76a1dbb79e664c8fe1c3a13c6197c1557 | /seleniumbase/fixtures/constants.py | 37a036def8261360cebd61de644111f9964dfc17 | [
"MIT"
] | permissive | PrabhuLoganathan/Python-SeleniumBase | 78f493ad4433c33b9e3171036b9edf1f1c2fd336 | 86fc61ad083b6dd5c7cce18b7ecfb87f73f16f56 | refs/heads/master | 2021-09-02T03:27:20.327020 | 2017-12-24T23:40:42 | 2017-12-24T23:40:42 | 115,760,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | """
This class containts some frequently-used constants
"""
class Environment:
QA = "qa"
STAGING = "staging"
PRODUCTION = "production"
MASTER = "master"
LOCAL = "local"
TEST = "test"
class Files:
DOWNLOADS_FOLDER = "downloaded_files"
ARCHIVED_DOWNLOADS_FOLDER = "archived_files"
cla... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
b2d7423066c6259571568c9d3141fefe06959f0d | cf06fdf4fada6a39c661b890c184d2a3dea9d23f | /programs/pgm0A_12.py | 88945b331e21e4f0f5437ce6c44e593feda16b48 | [
"Apache-2.0"
] | permissive | danielsunzhongyuan/python_practice | f11d582c2147ad3d07ace1b31e6d7ace1da31e7c | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | refs/heads/master | 2021-01-25T13:12:07.950283 | 2019-06-12T09:36:02 | 2019-06-12T09:36:02 | 123,542,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | #
# This file contains the Python code from Program A.12 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm0A_12.txt
#
class Rectangle(... | [
"sunzhongyuan@lvwan.com"
] | sunzhongyuan@lvwan.com |
27024f2ab6b8e5c801b2575bf0e11ff404c9d1a7 | 8457291a531a08e6249c674f6b4943388d110f77 | /程序员面试经典/面试题 16.01. 交换数字 .py | a2f484604c3ee24053fd93149faa8f6601c014d8 | [
"Apache-2.0"
] | permissive | oscarhscc/algorithm-with-python | e190511844aaeacff14381000e371945f74aba14 | 2d67e2da11045199b9ab6c0b2f01e239255196ef | refs/heads/master | 2020-12-03T12:31:37.764545 | 2020-11-13T03:01:04 | 2020-11-13T03:01:04 | 231,317,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | '''
编写一个函数,不用临时变量,直接交换numbers = [a, b]中a与b的值。
示例:
输入: numbers = [1,2]
输出: [2,1]
提示:
numbers.length == 2
'''
class Solution(object):
def swapNumbers(self, numbers):
"""
:type numbers: List[int]
:rtype: List[int]
"""
numbers[0], numbers[1] = numbers[1], numbers[0]
r... | [
"noreply@github.com"
] | oscarhscc.noreply@github.com |
5c0f0d1e84727690497ad03f096246c4ec7d966e | 12fd778ef6756a3fcb6dc5fc2b59a0ba4a4cb911 | /aosd/downloader/update.py | 9eb2992674871673ee079c11be67eff8590bcf47 | [] | no_license | jevinskie/AOS-Downloader | ce66b024485d3a3eb05e89da8f7077cc96b49f2f | d956c8652f0a3caab3a56f441218b766b08e9130 | refs/heads/master | 2021-01-18T14:49:20.887713 | 2015-12-19T23:37:27 | 2015-12-19T23:37:27 | 57,457,504 | 1 | 0 | null | 2016-04-30T19:06:41 | 2016-04-30T19:06:41 | null | UTF-8 | Python | false | false | 1,151 | py | from ..helpers.logging_helper import logging_helper
import os
from .utilities import utilities
from .releases import releases
from .config import config
from .manager import manager
class update(object):
@classmethod
def fetch(cls):
logging_helper.getLogger().info('Updating package data...')
... | [
"me@samdmarshall.com"
] | me@samdmarshall.com |
e7a8ebdffb9c5478b1fc4030ede408f87828012e | 09fc5379e5ecafc66eee7eac5ba8cf51244c7aa9 | /min_max.py | a95e8b684a7360eda42ca80a1a91de96fbacd8cb | [] | no_license | aquibjamal/hackerrank_solutions | 8a9317afc3fc8c6b2f4d0542e5c979ad2c93f849 | bc27ea787743893c60d00c517ce133b6cea84942 | refs/heads/master | 2020-07-24T07:40:23.877863 | 2020-02-29T02:03:55 | 2020-02-29T02:03:55 | 207,850,323 | 0 | 0 | null | 2020-02-29T02:03:56 | 2019-09-11T15:50:47 | Python | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 12 02:21:03 2019
@author: aquib
"""
import numpy
N,M=map(int,input().split())
x=numpy.array([input().split() for _ in range(N)], int)
mn=numpy.min(x,1)
mx=numpy.max(mn)
print(mx)
| [
"noreply@github.com"
] | aquibjamal.noreply@github.com |
ab0980d94ceabd9eb0d539c1426b2ae2af479c47 | 7610169c08da66ddb69084a01569e688c294b0a6 | /economic_indicators_spider.py | 74abcb32f31885089204969fd0517ab39e8f90c8 | [] | no_license | radoslawkrolikowski/financial-market-data-analysis | 87c96bb7202c0c13cbdc11e92d7115c9592f1c01 | 97ccee60c79608285b3865f806844ce81a257862 | refs/heads/master | 2023-08-23T12:39:09.065633 | 2022-03-17T07:55:36 | 2022-03-17T07:55:36 | 243,983,526 | 59 | 26 | null | 2023-07-23T07:13:45 | 2020-02-29T14:30:52 | Python | UTF-8 | Python | false | false | 9,145 | py | from billiard import Process
from scrapy import Spider
from scrapy import signals as scrapy_signals
from scrapy.crawler import Crawler
from twisted.internet import reactor
from kafka import KafkaProducer
from config import user_agent, time_zone, empty_ind_dict
from datetime import datetime
from collections import defau... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
70a088e26aa79a50b83df760efc130cc5271b932 | 449175eb373ebc622221552e43b46c9378adb618 | /week_6/6210545611_lab6.py | 88a233dc9603dac335e2b915df12bb4ec5e7fc8a | [] | no_license | NutthanichN/grading-helper | 911d39211e070eafc9ffee6978f9270a0be38016 | 971c605effb4f59e9e22a32503337b3e671f120c | refs/heads/master | 2022-12-12T22:46:15.062462 | 2020-09-08T06:50:12 | 2020-09-08T06:50:12 | 293,724,530 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,290 | py |
# 1. Write a function called ll_sum that takes a list of lists of integers and adds up the elements from all of the
# nested lists. For example:
# >>> t = [[1, 2], [3], [4, 5, 6]]
# >>> ll_sum(t)
# 21
def ll_sum(t):
"""
:param t: a list of integers
:return: an add up elements of integers list
>>> s ... | [
"monaprom134@gmail.com"
] | monaprom134@gmail.com |
35607a345ddf69b06bdf279af5cf89bc391593ae | 46096a52c39cb6b32923e6a968a5538579e6d73b | /18nov20_tae.py | 9fad529a54004e123a2e73d140a7772b2d699b3d | [] | no_license | JoinNova/practice_py | 16671c4b91af77a492a089b1d7a48d029da91cf8 | 5fbd8ac0b5c46c68d2a84b7e35454982ae6d637a | refs/heads/master | 2020-04-16T18:19:02.709408 | 2019-01-15T08:35:23 | 2019-01-15T08:35:23 | 165,814,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.Chrome()
driver.implicitly_wait(3)
driver.get('http://www.google.com')
driver.find_element_by_xpath('//*[@id="tsf"]/div[2]/div[1]/div[1]/div/div[1]/input').click
driver.find_element_by_name('q').send_keys('제주 여행지')
driver.find_element_by_x... | [
"noreply@github.com"
] | JoinNova.noreply@github.com |
1ac32f1684de191dbb46b89dec66aee789ae73d8 | b7492b70e345e248f5562393ce4fe98e043ea1b9 | /data/config.py | c4c2e33bd25591173e8d4b7ae12282cf4b748bcd | [] | no_license | wobjtushisui/S3FD_pytorch | 3037176716d0b29d1f86f43da133614d451f619b | d5616dc1a08d11a670497b68a9a26cbd97adaed1 | refs/heads/master | 2020-12-29T05:04:08.873873 | 2019-11-18T09:13:56 | 2019-11-18T09:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
import os
from easydict import EasyDict
import numpy as np
_C = EasyDict()
cfg = _C
# data augument config
_C.expand_prob = 0.5
_C.expand_max_ratio = 4
_C.hue_prob = 0.5... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
4fe30dd6b39027cb6a61d01ba798443b17b266b1 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/sensibo/conftest.py | 48c9317a5cb1150d6d6a59e6b99082a44cd6f666 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 2,342 | py | """Fixtures for the Sensibo integration."""
from __future__ import annotations
import json
from typing import Any
from unittest.mock import patch
from pysensibo import SensiboClient
from pysensibo.model import SensiboData
import pytest
from homeassistant.components.sensibo.const import DOMAIN
from homeassistant.conf... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
e7e9f173951e4d55eb410c0db31bc9387a456169 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /uhd_restpy/testplatform/sessions/ixnetwork/topology/requestid_4bb823de2302ea46c48b53652c8059b5.py | 9127928006cf5c5a3d16daeb18104885ad73ebf9 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 1,793 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
ecc0b19eed4f3e7af2208b9c8c88f72640608edb | d0e083ce351b9680f1fe46a5216f605aefc47018 | /Everything/bp/bpp_pisces.py | 03e9ad09c8743b034684ec8c75f062b7fe84c4b5 | [] | no_license | bhishanpdl/Backups | ebfad64cc4f0a0999064f5f4dccf2320c7db8329 | e041a6c3f4a15c9e1f3eee88b6ea745fd0ea9add | refs/heads/master | 2020-04-27T09:18:32.444634 | 2019-03-06T19:51:29 | 2019-03-06T19:51:29 | 174,209,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,136 | py | #!/usr/bin/env python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-#
#
# Author : Bhishan Poudel; Physics PhD Student, Ohio University
# Date : Jun 19, 2017 Mon
# Last update : Jun 19, 2017 Mon
#
# Note: Put this file in /usr/local/bin/bpp
# sudo -H cp MYFILE.py /usr/local/bin/bpp
# sudo -H ch... | [
"bhishantryphysics@gmail.com"
] | bhishantryphysics@gmail.com |
b70ba83ab08390530f1a3a3b414fe878234a746f | e86e65380c81e2459c803a51719124faaf1ad660 | /theano_workspace/function.py | edc95a835248d2a70b12e6fda55ad8f5a54ee096 | [] | no_license | jaberg/theano_workspace | 83e79a45216a1a3e98521c823eef8cd698c714dd | 913e2d443cd23b2a4c746e7cd12d3a97947fee63 | refs/heads/master | 2021-01-20T11:59:51.899982 | 2013-05-03T05:49:48 | 2013-05-03T05:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # XXX COMPLETELY UNTESTED, DEFINITELY NOT FUNCTIONAL
class Function(object):
"""
Special case of Workspace for implementing a single callable expression
TODO: Provides support for structuring outputs as nested list, dict, etc.
"""
# XXX COMPLETELY UNTESTED
def __init__(self, ws, inputs, output... | [
"james.bergstra@gmail.com"
] | james.bergstra@gmail.com |
c70dbc1ca64f2452a61d661e32d7cec9f0a63094 | facf0d5a66ba0b762f4d74bb99e568a948a76bc3 | /chat/consumers.py | 416465a4185b0c805d5e81ad97db4b384f057649 | [] | no_license | KennyDaktyl/chat_ws | bddd9bb042a31a2a54d5ac0a916a13c87649e634 | 0dfd5c2dd3a3252635adff18b54a70d7e6c77b50 | refs/heads/main | 2023-03-06T20:35:18.035734 | 2021-02-19T12:57:59 | 2021-02-19T12:57:59 | 340,362,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | # import json
# from asgiref.sync import async_to_sync
# from channels.generic.websocket import AsyncWebsocketConsumer
# from datetime import datetime
# from django.utils import timezone
# from .models import Message
# from django.conf import settings
# from account.models import Profile
# from django.contrib.auth imp... | [
"krakow@miktelgsm.pl"
] | krakow@miktelgsm.pl |
779879dc262374b487ad7cf2413495b8e0a213e6 | 63ce62eb08e54c0e1fc93787d23d30ed38a80d19 | /giveaways/urls.py | 5f529a455d759445a26dc5a21a77515ac9ca1487 | [] | no_license | prettyirrelevant/giveawayy | 597581fee7e4e8ab209014594c670660827661e4 | 81e345466ffe9887a262caa0b5fd23d95d620f53 | refs/heads/main | 2023-08-24T11:40:17.916940 | 2021-10-17T23:47:01 | 2021-10-17T23:47:01 | 408,027,551 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from django.urls import path
from . import views
app_name = "giveaways"
urlpatterns = [
path("giveaways/new/", views.CreateGiveawayView.as_view(), name="create-giveaway"),
path("giveaways/search/", views.SearchGiveawayView.as_view(), name="search-giveaway"),
path("giveaways/<slug>/", views.DisplayGiveaway... | [
"ienioladewumi@gmail.com"
] | ienioladewumi@gmail.com |
70a516f5a592ce86deea9bbd83cf59612cedb837 | 0869d7edac80e8aebe951682a2cc311a083eade3 | /Python/tdw/proc_gen/arrangements/side_table.py | 0b2ade721bc8dd0ff79ebba56f2188ac280ad961 | [
"BSD-2-Clause"
] | permissive | threedworld-mit/tdw | 7d5b4453832647733ff91ad7a7ce7ec2320454c1 | 9df96fba455b327bb360d8dd5886d8754046c690 | refs/heads/master | 2023-09-01T11:45:28.132298 | 2023-08-31T16:13:30 | 2023-08-31T16:13:30 | 245,492,977 | 427 | 75 | BSD-2-Clause | 2023-09-14T17:36:12 | 2020-03-06T18:42:09 | Python | UTF-8 | Python | false | false | 3,372 | py | from typing import List
from tdw.tdw_utils import TDWUtils
from tdw.cardinal_direction import CardinalDirection
from tdw.proc_gen.arrangements.arrangement_along_wall import ArrangementAlongWall
class SideTable(ArrangementAlongWall):
"""
A small side table with objects on it.
- The side table model is cho... | [
"alters@mit.edu"
] | alters@mit.edu |
f7866615db4088601b520ceb0509c4eb8ed8a28e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_120/713.py | 24cfd7c29cd4cf82e619addf3c3a2ef74f627af3 | [] | 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 | 343 | py | import math
T = int(raw_input())
for i in xrange(T):
r, t = raw_input().split()
r = int(r)
t = int(t)
n = ((1.0 - 2*r) + math.sqrt( (2*r - 1.0)**2 + 8*t ))/4.0
n = int(n)
total = (2*r + 1) * n + n*(n-1)*2
if total <= t:
print 'Case #%s: %s' % (i+1, n)
else:
print 'Case... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f77ef9ebe4b1bb015901d003bfa80073a0be69f0 | 5c1531b47fb4dc4d7e5998d44f7200bf1786b12b | /__UNSORTED/139_word_break/word_break.py | 2de3f3f3df7205cae92ad800b5382c18f49e4c3a | [] | no_license | Web-Dev-Collaborative/Leetcode-JS-PY-MD | d1f560051aad1896a80eccdd4b4fbb389e7033e3 | 675b94fa5da8d40f0ea79efe6d3ef1393221425f | refs/heads/master | 2023-09-01T22:30:32.313793 | 2021-10-26T02:17:03 | 2021-10-26T02:17:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | class Solution:
# @param s, a string
# @param wordDict, a set<string>
# @return a boolean
def wordBreak(self, s, wordDict):
self.tree = {}
self.memo = {}
for word in wordDict:
self.buildNode(word, self.tree)
return self.traverse(s)
def traverse(self, s):
... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
03dd76a38abe323de5bb3342d57232631262aac6 | d7e4be3752a3b659d198893ebc4347c77f56a3b8 | /flaskr/repair/forms.py | 0e67749642c7c5607e0314eb0d443010e35c3527 | [] | no_license | maria-j-k/library_v2 | c76aa0b77f3103aab43e5339d5e468e28c9e485c | fdc292d152aec1ea596733b79126caecca8b93ac | refs/heads/main | 2023-03-19T20:13:06.104296 | 2021-03-11T12:16:37 | 2021-03-11T12:16:37 | 322,952,448 | 0 | 0 | null | 2021-01-19T13:13:38 | 2020-12-19T22:52:37 | Python | UTF-8 | Python | false | false | 4,328 | py | from flask_wtf import FlaskForm
from wtforms_sqlalchemy.fields import QuerySelectField
from wtforms import BooleanField, FieldList, FormField, HiddenField, IntegerField, TextAreaField, SelectField, StringField, SubmitField
from wtforms.widgets import HiddenInput
from wtforms.validators import DataRequired, AnyOf, Opti... | [
"maria77julia@gmail.com"
] | maria77julia@gmail.com |
9231b8accb452303eaa0880663dfeca5728f031a | 5ba97bd2f02e4a608b70ad2c4997079f6147dab4 | /Other_Market_Places/Etsy/product_urls_collectors/weddings_products_url_collector.py | 58869e52b56225611d3ecf282d7b6bc2f2c90ef7 | [] | no_license | akhilreddyyeredla/Web_Crawlers | d4131b622a378787c3bcdec4e64ac5be60ad78b0 | d86a2ca19a2ed2b3275e4cd506a8df67d71686ec | refs/heads/master | 2020-03-22T00:12:23.214849 | 2018-07-31T09:40:37 | 2018-07-31T09:40:37 | 139,230,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,468 | py | from Common.Etsy_common_imports import *
class Workers:
PRODUCTS_PAGE_URLS_QUEUE_FILE = ''
categories_queue = Queue()
NUMBER_OF_THREADS = DataCollectors_Configuration.NO_OF_THEARDS
starting_time = 0
ending_time = 0
products_page_url_queue_file = path_CONSTANTS.WEDDINGS_QUEUE_PATH
products... | [
"akhil@eunimart.com"
] | akhil@eunimart.com |
54821036ba2b8e70d4b99ed197052849563ad187 | ba1e183a41bdfc203acb41c96a8e9d9b6e94dcbb | /feature_build/extend_info_feature_g2_l0.py | 9285a60fb7313aed65864dc0105ff7ab68016f3b | [] | no_license | tianjiansmile/model_build | bf80abfc55ff5452470dc0388bb08fa952c14d80 | 5d4b4a3cf924a5841e61259ef8ab6838e889747a | refs/heads/master | 2020-11-30T13:44:59.419957 | 2020-01-10T01:34:02 | 2020-01-10T01:34:02 | 230,409,430 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,091 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
# lh copy from SloopScoreCard and modify it to use online
__author__ = 'Dan'
# todo add log
from feature_build.extend_info_data import ExtendInfoData
from feature_build.utils import *
import pandas as pd
import itertools
import collections
import time
class RiskFeatureGroupE... | [
"1635374633@qq.com"
] | 1635374633@qq.com |
3d234d7165a31b1417beb07a6b0b397816453f99 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/facebook-real-time-proxy/allPythonContent.py | 170a2d11fb6f6b255ad362bc171f9c2f5fc07313 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,277 | py | __FILENAME__ = apps
#
# Copyright 2010 Facebook
#
# 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 ... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
baa23174ec0a53364cec169399118e44e0da551e | 5c668379197a236d3a961dbba32aba606d661111 | /chapter13/brother1.py | 5ddb4a359161e1d5221298537cb7ab4a76b44356 | [] | no_license | RobbiNespu/wargames.unix-heaven.org | a7cf1afbc7f5983a85638c0a63dfd5764fd74b4e | 6ad914d020f696bf6148bf33d66de72aaf001589 | refs/heads/master | 2021-04-05T23:27:17.027998 | 2015-06-26T14:38:28 | 2015-06-26T14:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,357 | py | #!/usr/bin/env python
# code taken from the examples from the Python documentation on SocketServer
# daemon1 returns base64'd message, which is xxd'ed
import SocketServer
class MyTCPHandler(SocketServer.BaseRequestHandler):
"""
The RequestHandler class for our server.
It is instantiated once per connect... | [
"dnaeon@gmail.com"
] | dnaeon@gmail.com |
bab2a8a108c7ebf93bc6405b7b31741a934d2815 | 54147931d6e9eecb797c4d3665337a6c2b27160c | /chapter2_string_text/2_2.py | c5d96d4ab2ab814774508068c66f69d48702b497 | [] | no_license | miniyk2012/python_cookbook | 1fefe857f22d1145e7335c15c45e8b12356d7a49 | c01daee2d5349ea018a0a8768be7b011df70b566 | refs/heads/master | 2020-06-10T19:53:45.749970 | 2017-01-16T15:23:51 | 2017-01-16T15:23:51 | 75,891,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # -*- coding:utf-8 -*-
import logging
_logger = logging.getLogger(__name__)
url = 'http://www.python.org'
print(url.startswith('http:'))
import os
filenames = os.listdir('../')
print(filenames)
print([name for name in filenames if name.endswith(('algorithm', '.md'))])
print(any(name.endswith('.idea') for name in fi... | [
"yangk@ersoft.cn"
] | yangk@ersoft.cn |
0b14592d0ba3665b7175831dfac9b89160af3f0e | 414239752b2bfc4cb3a947474f2662af7588b6eb | / protobufeditor/Tests/MarathonTests/TestCases/ProtoSearch/ProtoSearch6.py | 53ffee71fcdf81ff114b1db15c02e1c24c9934ad | [] | no_license | dtracers/protobufeditor | 8c7f9671c3b3a7d1cd3094321d030f6e6afcc7e8 | b65d06bce93165eebf9798c533e2447a5992d384 | refs/heads/master | 2020-12-24T19:28:22.486207 | 2016-04-19T23:41:57 | 2016-04-19T23:41:57 | 56,340,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | useFixture(default)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_22'
if window('Protocol Buffer Editor'):
select('FileChooser', commonBits.sampleDir() + 'Ams_LocDownload_20041228.bin')
click('Proto Search')
assert_p('Table1', 'Content', r'[[' + commonBits.stdCopybookDir() + 'Ams_... | [
"bm_tas@yahoo.com.au"
] | bm_tas@yahoo.com.au |
56066d9682621cee113110a61f8dfb2d3fa90623 | a6e13bbb722b9eacf4e8d25f9a44cf01a41eb99b | /arelle/plugin/validate/EFM/__init__.py | df968023841965dd2aefe8453f89e4d1a83cc428 | [
"Apache-2.0"
] | permissive | michalczubek/Arelle | b13771c23c6d90ca79be646057c944b91629b2b3 | be0dca986e5451902092b6dfd43a1079ebecb22a | refs/heads/master | 2022-04-23T17:09:13.075773 | 2020-04-23T00:43:23 | 2020-04-23T00:43:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,223 | py | '''
Created on Dec 12, 2013
@author: Mark V Systems Limited
(c) Copyright 2013 Mark V Systems Limited, All rights reserved.
Input file parameters may be in JSON (without newlines for pretty printing as below):
[ {# current fields in JSON structure from Arelle Wrapper, per instance
"file": "file path to instance ... | [
"fischer@markv.com"
] | fischer@markv.com |
a804d5d5ce3df83393ae6bff5898fb1f6cc6e43b | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/form.py | 5f38b7215aa23d0fecdc261c29372fd0c2f0f2dc | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,316 | py | # -*- coding: utf-8 -*-
from plone.autoform.base import AutoFields
from plone.autoform.interfaces import IAutoExtensibleForm
from plone.autoform.interfaces import IAutoObjectSubForm
from plone.z3cform.fieldsets.extensible import ExtensibleForm
from zope.interface import implementer
_marker = object()
@implementer(I... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
95135697228d557cb3d8a41bb0ecbf01bf2709f0 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/python/util/compat.py | a24a52eea9710e98bd56025457e6fda5449a5197 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 4,224 | py | # Copyright 2015 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... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
5bace3fe8c8b3966f2c6c49d67a01a79ff42c1a1 | 4bc6028ed8ba403b69adfd6f5cbd139baece0f4d | /basic/hello_world.py | 2bc192cf9dc891b27de6eabd3ffdaa95d2fe90f4 | [] | no_license | xrw560/learn-pyspark | 0ef9ed427ff887ceed1c5e5773bf97ed25ecae04 | 618d16dafd73165e714111670119d9cdecc0bf1f | refs/heads/master | 2020-03-07T00:12:36.885000 | 2019-01-04T09:51:32 | 2019-01-04T09:51:32 | 127,152,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/python
# -*- encoding:utf-8 -*-
if __name__ == '__main__':
"""
Hello World 程序
"""
print "hello world!!!!!!!!!!!!!!!"
| [
"ncutits@163.com"
] | ncutits@163.com |
c1a1eebde481557cb5e8673730e08fa7eff20636 | d191a04a3ded41175ea84ae88ebddb4f262b7fb1 | /Dynamic_program/33_palindromic_substring.py | d7e049406dc272a2923b0bce1e168fc05b3c3c98 | [] | no_license | YLyeliang/now_leet_code_practice | ae4aea945bae72ec08b11e57a8f8a3e81e704a54 | 204d770e095aec43800a9771fe88dd553463d2f7 | refs/heads/master | 2022-06-13T20:22:51.266813 | 2022-05-24T05:29:32 | 2022-05-24T05:29:32 | 205,753,056 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | # Given a string, your task is to count how many palindromic substrings in this string.
#
# The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters.
#
# Example 1:
#
# Input: "abc"
# Output: 3
# Explanation: Three palindromic strings: "a", "b",... | [
"k87974@163.com"
] | k87974@163.com |
e1a70e8fa8ccf663700a94f2d16d3b20110080f5 | 03d07de94fc22d1583c45ca84c711a06df8a40ff | /lc/graph/lc_207_course-schedule.py | f5045d8a606e37fc0a05f3d15c5182ff10bcd859 | [] | no_license | gaopenghigh/algorithm | 94e04293c69a2ad6903495e1cf6e1b75556535bb | f5d78c98c7201c56f9d4c3a9c0c76e9447a17985 | refs/heads/master | 2022-03-11T18:46:38.712923 | 2022-02-20T14:20:54 | 2022-02-20T14:20:54 | 54,484,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | # 207. 课程表
# 你这个学期必须选修 numCourses 门课程,记为 0 到 numCourses - 1 。
# 在选修某些课程之前需要一些先修课程。 先修课程按数组 prerequisites 给出,其中 prerequisites[i] = [ai, bi] ,表示如果要学习课程 ai 则 必须 先学习课程 bi 。
# 例如,先修课程对 [0, 1] 表示:想要学习课程 0 ,你需要先完成课程 1 。
# 请你判断是否可能完成所有课程的学习?如果可以,返回 true ;否则,返回 false 。
# 抽象为判断一幅有向图是否有环
# 抽象为判断一幅有向图是否有环
# 使用 DFS 遍历
# 不能简单地记录哪些... | [
"jh.gao@ucloud.cn"
] | jh.gao@ucloud.cn |
c55a5ab14f9f3d22bf01db0767cfa494e6709ed6 | 8cb0ace888d6dfe0b781e21906cab598cfb3783d | /apps/wop/wop/widgets/level_widget.py | c5349c5c427f2b346893af999b365c1f790900e3 | [] | no_license | DerThorsten/appdev | fefe1929af15f33d7848f03664b345df0f2aeaaf | 5c24328b8ba08ad57aa6b77296d68ece00b4154b | refs/heads/master | 2021-01-17T05:10:48.033350 | 2016-08-06T21:01:49 | 2016-08-06T21:01:49 | 33,121,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | from kivy.logger import Logger
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.lang import Builder
from kivy.uix.widget import Widget
from kivy.clock import Clock
from kivy.graphics import *
from kivy.properties import NumericProperty, ReferenceListProperty,\
ObjectProperty
im... | [
"thorsten.beier@iwr.uni-heidelberg.de"
] | thorsten.beier@iwr.uni-heidelberg.de |
8fdb45f49bc6c12d0a768ded289224f400e0a7cc | d37b1eb2dd6a0e917c4a01b55771e45c5f3374a8 | /web/regression/runtests.py | 8d2a886ac2427bf8a75e091fae4f319f8afc3747 | [
"PostgreSQL"
] | permissive | dmrub/pgadmin4 | 33715dc0e9637bb311922f857c80148602ef2930 | 8765db918b566a6984b7218640a599507f60942c | refs/heads/master | 2021-01-20T04:29:05.860660 | 2017-01-11T15:03:06 | 2017-01-11T15:03:06 | 78,627,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,677 | py | #############################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##############################################################
""" This file collect all modules/files pr... | [
"dpage@pgadmin.org"
] | dpage@pgadmin.org |
b2f8c3bb75ab6abe1aa0d310e6488a8a92ac25e9 | 12c18d9d0b210698f61f70f458a46647fc99356c | /bsp53.py | 91b6673439d0382aa616430a2978e32aa0cc3d8a | [] | no_license | ddgvv/dd | 503a64b08e12de79b5812fd39a76c826aadbd06c | 2e07d92123960e9625198a454ad3973671761fda | refs/heads/master | 2021-07-04T16:40:01.904529 | 2019-05-17T08:10:30 | 2019-05-17T08:10:30 | 110,428,294 | 1 | 10 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | #53 problem
l=list(input("Enter Number"))
print(sum(map(int,l)))
| [
"noreply@github.com"
] | ddgvv.noreply@github.com |
d45809a86a61969897ea0f9adf6b683a1732e968 | 79839ab9d00afabdaeb9e4ea0ffdb50db8fdde4e | /LudoGame/controller.py | 4b1be36912f187cbdb11bff8a34564d2e27f4406 | [
"Apache-2.0"
] | permissive | surajsinghbisht054/LudoGame | 85968d57d6432e9d56edab1b71f9eb967ef5d5be | 20352646230bc541208e93dfbf0818e42eb0c6b3 | refs/heads/master | 2021-01-11T13:54:12.932791 | 2018-01-09T10:18:32 | 2018-01-09T10:18:32 | 94,885,322 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,260 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Written By:
# S.S.B
# surajsinghbisht054@gmail.com
# bitforestinfo.blogspot.com
#
#
#
#
##################################################
######## Please Don't Remove Author Name #########
############### Thanks ###########################
#############################... | [
"surajsinghbisht054@gmail.com"
] | surajsinghbisht054@gmail.com |
95f27ad073deba4419d29e314fd828507e60ea62 | 0cb46d3c14ed82627ca7ffb4de2a80e9c3013c50 | /model/base.py | 21accadb14e32119bdef0da1932da4ef01752672 | [] | no_license | five3/zyw | 40533cd6eb1d17f98c055893d9cdfba30fa69696 | 7fcd4d7a4a877c907d59df153e42360fc616f9a5 | refs/heads/master | 2020-12-24T08:55:11.207216 | 2017-08-18T13:12:03 | 2017-08-18T13:12:03 | 38,229,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#coding=utf-8
from model.db.database import *
class base:
def getTable(self):
return self.__class__.__name__
def getDb(self):
return database()
def insert(self,data):
return self.getDb().insert(self.getTable(),data)
d... | [
"five3@163.com"
] | five3@163.com |
1afd17c2c1370a54520917228db7e4bd9cc00e5c | 1a114943c92a5db40034470ff31a79bcf8ddfc37 | /stdlib_exam/strop-example-1.py | d9e343e3aa7690e690e6a82f444da61173972665 | [] | no_license | renwl/mylinux | 1924918599efd6766c266231d66b2a7ed6f6cdd1 | 0602fc6d2b0d254a8503e57310f848fc3e1a73b4 | refs/heads/master | 2020-07-10T22:12:03.259349 | 2017-01-02T12:32:04 | 2017-01-02T12:32:04 | 66,467,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import strop
import sys
# assuming we have an executable named ".../executable", add a
# directory named ".../executable-extra" to the path
if strop.lower(sys.executable)[-4:] == ".exe":
extra = sys.executable[:-4] # windows
else:
extra = sys.executable
sys.path.insert(0, extra + "-extra")
import mymodule
| [
"wenliang.ren@quanray.com"
] | wenliang.ren@quanray.com |
4513fb0f5b0c0dacd59247201f0afd9c4f9b4c5b | 05e0429c617209530b212987f169640e6b75c8f0 | /Chapter 8/powerballLottery.py | 7fdd170731091cdea9226f01a1bb878352f84a87 | [] | no_license | nishantchaudhary12/Starting-with-Python | ac33baf01e3cf869cc1cf7f97991ecda4ee893bd | 9031fa64b19698c060d134cb0416812db01f1f7b | refs/heads/master | 2020-04-24T00:06:15.177647 | 2019-05-28T23:12:16 | 2019-05-28T23:12:16 | 171,555,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,186 | py | #powerball lottery
def records(file):
number_dict = dict()
pow_num_dict = dict()
overdue_num = list()
line = file.readline()
line = line.rstrip('\n')
while line != '':
num_list = line.split(' ')
for each in num_list:
if each in overdue_num:
overdue_n... | [
"chaudharynishant025@gmail.com"
] | chaudharynishant025@gmail.com |
a62a9c5b492057a1f8eaf18d3667012243bed748 | ad080bd1612b980490ef2d1b61647cbc6beddf5d | /my_game/administrator/asteroid_generation.py | bface5faa562653e2b5a47965d18e18a78871d13 | [] | no_license | rokealva83/my_game | 8f915076986144234950aa4443e8bc51ad019664 | 76ecc1dbf60c7f93621ddca66d62d5fea2826d0e | refs/heads/master | 2020-12-24T17:54:59.491881 | 2016-05-10T20:06:53 | 2016-05-10T20:06:53 | 29,264,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | # -*- coding: utf-8 -*-
import random
from django.shortcuts import render
from my_game.models import System, AsteroidField
# функция генерации астероидных полей
def asteroid_generation(request):
if request.method == "POST" and request.POST.get('add_button') is not None:
asteroid = int(request.POST.get('... | [
"tolik20002@bigmir.net"
] | tolik20002@bigmir.net |
a1edb59f7e7e2fce8ac3afcefcb050ea596661c7 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/blueprint/v20181101preview/outputs.py | 1acabbfdd2ea65bb9cf93d72b6073ee60cd85ea5 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 26,621 | 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"
] | morrell.noreply@github.com |
6df00727a21728a05316441890050263c914ffd5 | f47626fd3b236dd42f335952a3f3edf55f7e6075 | /region-app/app/tools/constants.py | 1b3a6661296e13c1420a27b4a2ce3b33edcd6574 | [] | no_license | reritom/region-app-example | da541afee5faf04bac65cceda15b6d2c265b7e79 | d0f4c2507c62755f8bbdc1400fb2fc538646ee76 | refs/heads/master | 2022-12-02T20:04:32.028450 | 2020-08-15T08:19:46 | 2020-08-15T08:19:46 | 287,619,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | # Constants related to the application should be located here
# Currently we only have one constant used by the RegionController, but this allows us to scale.
COUNTRY_FRANCE = "France"
| [
"reikudjinn@gmail.com"
] | reikudjinn@gmail.com |
74a66ecda7c167ce393132bd9d092d8ca7413ac3 | 1cb97b0fe8b275efd540716cb6e742fc44e927bf | /setup.py | 3b851f54849494044ef8725faa00a353b62ae451 | [
"MIT"
] | permissive | khushjammu/rljax | 31e4d0f9c6aa57a0a07a35f7f8854cc78360ae5a | f2d5e81240d99187fcb625d2caa630c3c7deecfc | refs/heads/master | 2023-06-27T17:15:43.437065 | 2021-07-30T16:55:47 | 2021-07-30T16:55:47 | 391,125,669 | 0 | 0 | MIT | 2021-07-30T16:18:23 | 2021-07-30T16:18:22 | null | UTF-8 | Python | false | false | 2,890 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import os
import sys
from shutil import rmtree
from setuptools import Command, find_packages, setup
NAME = "rljax"
DESCRIPTION = "A collection of RL algorithms written in JAX."
URL = "https://github.com/ku2482/rljax"
EMAIL = "watanabe.toshiki@outlook.jp"
AUTHO... | [
"kuboy2482@gmail.com"
] | kuboy2482@gmail.com |
ccc0c4a0baf39caf1e00f362fe8192eb9b77a0ee | 0635da394505415471efd89d542f225cae3e668b | /networkapi/api_environment_vip/facade.py | 38fb69529f25b6633b6b2dfd9aa6273ac730bec2 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | enterstudio/GloboNetworkAPI | 5e2fbe7ef3f4a70aaa0ae474a0c5493e5568cb24 | ea8eebc0337636f9250e628cc392514934db8edd | refs/heads/master | 2023-07-25T20:36:40.717818 | 2017-01-27T20:22:40 | 2017-01-27T20:22:40 | 82,249,922 | 0 | 0 | Apache-2.0 | 2023-09-04T21:56:15 | 2017-02-17T02:48:54 | Python | UTF-8 | Python | false | false | 2,827 | py | # -*- coding: utf-8 -*-
import logging
from networkapi.ambiente.models import EnvironmentVip
from networkapi.requisicaovips.models import OptionVip
from networkapi.requisicaovips.models import OptionVipEnvironmentVip
log = logging.getLogger(__name__)
def get_option_vip_by_environment_vip_ids(environment_vip_ids):
... | [
"ederson.brilhante@corp.globo.com"
] | ederson.brilhante@corp.globo.com |
69231c247f485ff9007070af890fa3965a1f4c62 | 8447b5f83be675c5de085d8824783ec0739690b0 | /tests/test_sampler.py | 9b68ced7cf583e92366ac91fd00cf2d8f0e2aa27 | [] | no_license | jie311/mmdetection_lite | bca7070ad88a04e4f6650292642f98f24f7ebeba | 1c151a7c44759d022fea1d85fb036a5b39409449 | refs/heads/master | 2022-04-19T06:18:42.282754 | 2020-04-13T07:41:10 | 2020-04-13T07:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,320 | py | import torch
from mmdet.core import MaxIoUAssigner
from mmdet.core.bbox.samplers import OHEMSampler, RandomSampler
def test_random_sampler():
assigner = MaxIoUAssigner(
pos_iou_thr=0.5,
neg_iou_thr=0.5,
ignore_iof_thr=0.5,
ignore_wrt_candidates=False,
)
bboxes = torch.Floa... | [
"760997646@qq.com"
] | 760997646@qq.com |
60417ad7a9157ae72a147b6ef908a2afe7e87952 | b523a7d337ce60e1e1ca779be396eeeaab786b7d | /Python/leetcode_075_sort_colors_2nd.py | 41d2d71cf4a12c7dd6fea12fced690b2be118682 | [] | no_license | bakker4444/Algorithms | 3a65f83fde6a22a82646f6ee463a487f889291d0 | 453e92109494c962c36280cd0d32fb28aa771615 | refs/heads/master | 2021-05-25T11:56:18.424622 | 2019-05-08T22:07:15 | 2019-05-08T22:07:15 | 127,337,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | ## 75. Sort Colors
#
# Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.
# Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively.
# Note: You are not... | [
"bakker4444@gmail.com"
] | bakker4444@gmail.com |
635ff42ad41b2d8a6c0bda55e9fabefb122925cf | ba59629d53d9500ff620387d8bcbadd639796719 | /code_examples/pytorch/mnist/test_mnist.py | d860a89a1604f92dba036e6cf333c20f03eb83fd | [
"MIT"
] | permissive | Joejiong/examples-2 | 7d423e9bd4e68b29613903158a50d391ffc72ef8 | 553b90b57d2ed8c996c74cbe5d48bb2b7dba5a88 | refs/heads/master | 2023-03-08T02:54:32.583139 | 2021-01-22T18:29:13 | 2021-01-22T18:29:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | # Copyright (c) 2020 Graphcore Ltd. All rights reserved.
import inspect
import os
import subprocess
import unittest
import torch
from mnist_poptorch import accuracy
def run_poptorch_mnist(**kwargs):
cwd = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))
cmd = ["python3", 'mnist_poptorch.py']
out = ... | [
"philb@graphcore.ai"
] | philb@graphcore.ai |
ecd1837e2da77b2be6d2f8094e2424221ab60afb | 7a7a818f482b4781e15948bb64ea6ae79a631175 | /deephyper/benchmark/nas/candleP1B3/data_utils.py | 3e360a5f557773f482433a7ca850a8b4ea64eb0c | [
"BSD-2-Clause"
] | permissive | BethanyL/deephyper | 85157a856b8a35a180d5b56e2b00321ea384ebcc | 42cbb846f2815223c6843e92e234c3b0a765aeb6 | refs/heads/master | 2020-04-11T00:36:49.519366 | 2019-01-13T16:35:11 | 2019-01-13T16:35:11 | 161,391,202 | 1 | 1 | null | 2018-12-11T20:41:41 | 2018-12-11T20:41:41 | null | UTF-8 | Python | false | false | 4,665 | py | from __future__ import absolute_import
from __future__ import print_function
import tarfile
import os
import sys
import shutil
import hashlib
from six.moves.urllib.request import urlopen
from six.moves.urllib.error import URLError, HTTPError
from deephyper.benchmark.candleP1B3Nas.generic_utils import Progbar
# Unde... | [
"romainegele@gmail.com"
] | romainegele@gmail.com |
6376c69e303c4688ca205d4b3661e35929db601a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Yfm3h3nT3apARd4gC_13.py | fdf5b9abdb03a54e6ec2254ddc78f755dd346d28 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | """
Create a function that takes a list consisting of dice rolls from 1-6. Return
the sum of your rolls with the following conditions:
1. If a 1 is rolled, that is bad luck. The next roll counts as 0.
2. If a 6 is rolled, that is good luck. The next roll is multiplied by 2.
3. The list length will always be 3... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e7e4db5403fa269998ca5914755f189c589de9c1 | 3c847175b995991414bda789eabda8c9b150af4a | /raspberry_pi_unit/opencv_ball_tracking.py | 1eb8096cb52c8b781bf8e6e7eb78f2df29b566d3 | [] | no_license | DamoM73/10-Digital-Technologies | 4ed0149b1c94eecf31e4f6060d79219ad8690832 | 5bf20cacf2b323bee8fcf1ee2260808e86d8f7c2 | refs/heads/master | 2023-05-01T07:02:29.146224 | 2021-05-20T03:17:42 | 2021-05-20T03:17:42 | 294,894,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,869 | py | # import necessary packages
from collections import deque
from imutils.video import VideoStream
import numpy as np
import argparse
import cv2
import imutils
import time
# construct the argument parse and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-v", "--video",
help="path to t... | [
"damomurtagh@gmail.com"
] | damomurtagh@gmail.com |
6c15f08b036a6a77f7b91f708de56490fb8b681c | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc070/C/answers/504659_wi.py | d7d7a14e475b780741e10f7ddca3d9fa61389074 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | import sys
stdin = sys.stdin
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline()
def gcd(a, b):
while(b > 0):
c = a % b
a = b; b = c
return a
n = ni()
g = 0
for i in range(n):
v = ni()
if g == 0:
g = v
else:
g... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
509671c52ef3aab37220d37a55e97f13b9680c63 | 41f7085fffd12bb53222fdba00d033a43b9d7081 | /users/apps.py | b776938c9d4d9c5d420b841f16abfb29baea989c | [] | no_license | arifgafizov/online_store | b852e1bd32149268bbed9159f1037561a3d7e9a0 | 25c32f0ae65469e904509772d414a79a743ae31b | refs/heads/master | 2023-08-01T06:28:47.302377 | 2021-09-18T18:30:28 | 2021-09-18T18:30:28 | 345,300,892 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'users'
def ready(self):
from .signals import post_save_signup
| [
"agafizov@gmail.com"
] | agafizov@gmail.com |
10c4c8bcbc5ddcf5716aa35f9122b26965c9d62e | 2d80791a21a049243dd2bf7dd95a46c4d4b2510b | /domains/algorithms/warmup/TimeConversion.py | a7612996332e029de98c463eec1bd8e7fe9209aa | [] | no_license | jayrav13/jr-hackerrank | 909346d101fdf08a54ff75ec2ee39c90e661b251 | b7e0130fdd1c2eb4436871be3255200eac8ca3d9 | refs/heads/master | 2021-01-15T15:36:16.772814 | 2016-11-21T18:59:15 | 2016-11-21T18:59:15 | 48,657,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | #!/bin/python
import sys
time = raw_input().strip().split(':')
if time[2][-2:] == 'PM' and int(time[0]) < 12:
time[0] = str(int(time[0]) + 12)
if time[2][-2:] == 'AM':
if time[0] == '12':
time[0] = '00'
if int(time[0]) == 24:
time[0] = "00"
time[2] = time[2][:-2]
print ":".join(time)
| [
"jayrav13@gmail.com"
] | jayrav13@gmail.com |
0742aaed6d2a00c0265fa9c84921f8017affaa93 | 6630694f401f6f475dd81bb01ff9368db844ccff | /configs/_base_/models/mobilevit/mobilevit_s.py | f6a4e05d2c8f1fc4f7b6a6b5953ff52cdfc7a2c6 | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 339 | py | # model settings
model = dict(
type='ImageClassifier',
backbone=dict(type='MobileViT', arch='small'),
neck=dict(type='GlobalAveragePooling'),
head=dict(
type='LinearClsHead',
num_classes=1000,
in_channels=640,
loss=dict(type='CrossEntropyLoss', loss_weight=1.0),
t... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
dd98d05f369e5f312af1cbd5ef5826092fa4e837 | 24a9f32ae09cb545caf9984cedfad3ff89c0aad0 | /supportsystem/admin.py | c6edd541c0ab347389ef7d8782acc547463ce7be | [] | no_license | Jordonguy/TechCPRSupportSystem | 8bf81708ee3873795a76ad9ff5f79422c9a64d82 | e035fc0cd7502a726d8946f17e4d025ce3a83988 | refs/heads/master | 2020-04-27T13:43:39.318886 | 2019-10-24T23:48:15 | 2019-10-24T23:48:15 | 174,381,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.contrib import admin
# Register your models here.
from .models import Role, Company, Post, Comment, ExtendedUserProfile
admin.site.register(ExtendedUserProfile)
admin.site.register(Role)
admin.site.register(Company)
admin.site.register(Post)
admin.site.register(Comment)
| [
"you@example.com"
] | you@example.com |
fa75cf84f7c515ac5987b1a3387c4d6f759455b9 | 34745a8d54fa7e3d9e4237415eb52e507508ad79 | /Python Fundamentals/03 Lists Basics/More exercises/03_Josephus_Permutation.py | be8fe4e63778f129a03973856fc846ee279e0ba4 | [] | no_license | DilyanTsenkov/SoftUni-Software-Engineering | 50476af0dc88b267d72c56fa87eeb88d841164b2 | fe446e3a50a00bb2e48d71ab8f783e0a4a406094 | refs/heads/main | 2023-08-12T18:18:42.144210 | 2021-09-25T11:10:38 | 2021-09-25T11:10:38 | 317,235,419 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | elements = input().split(" ")
number = int(input())
new_elements_list = []
counter = 0
while len(elements) != 0:
for i in range(len(elements)):
counter += 1
if counter % number == 0:
new_elements_list.append(elements[i])
elements[i] = None
elements = [... | [
"noreply@github.com"
] | DilyanTsenkov.noreply@github.com |
2885153df53235cefe140f7a4cd0be1e421959a6 | 5cd740c36bff792dec540f02ee95336b12808f36 | /account/views.py | eef1484898abccb1e4ecaa69fd7b5cbc5853f694 | [] | no_license | Pyxic/swipe | b4362a9e17d23b4b9f7d9cfcb3a63900119eb9e8 | 584062dfd5c8a5328c22bfcd2e194bb2f94a078c | refs/heads/master | 2023-09-03T21:38:34.577685 | 2021-11-17T12:23:06 | 2021-11-17T12:23:06 | 422,495,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,428 | py | from datetime import date
from django.conf import settings
from django.shortcuts import render, get_object_or_404
from django.utils.decorators import method_decorator
from drf_yasg.utils import swagger_auto_schema
from rest_framework import viewsets, permissions
from rest_framework.permissions import AllowAny
from ac... | [
"mishakalita3@gmail.com"
] | mishakalita3@gmail.com |
478ebf23b298e716de7e6cb64c4e04d287263c94 | 9994709e43d108ca49af5f5961f56a6492c84eb1 | /src/RegistrationWithConfirmation/settings.py | c1340257f4d192671f4dacebc9156788531fa0de | [] | no_license | achiengcindy/RegistrationWithConfirmation | f115bc8d5dc0ac6f3e832d4d159bc24c41e80915 | a47cca9bd519894684a8b2dbcb1a909c23fed40a | refs/heads/master | 2020-04-11T11:34:57.184708 | 2018-12-14T08:14:42 | 2018-12-14T08:14:42 | 161,752,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,459 | py | """
Django settings for RegistrationWithConfirmation project.
Generated by 'django-admin startproject' using Django 2.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settin... | [
"achiengcindy36@gmail.com"
] | achiengcindy36@gmail.com |
89070d14e64f9f1511324e3516874a9b389fcbeb | a87810b7abad09b642399e6b83ceabea17a6d9f2 | /lock.py | c6b4ce6650ff9655be2b4a325fb0ebb652ac12e1 | [] | no_license | Sendhub/sh_util | 452fb85386b669657c9c8cadffdfb3520c0ab7e4 | 739c14cdcfeebac2fab9a2e5f76f98ecd524d7bd | refs/heads/master | 2023-07-20T06:43:46.212443 | 2019-06-24T23:24:26 | 2019-06-24T23:24:26 | 10,512,240 | 0 | 0 | null | 2021-06-29T13:45:29 | 2013-06-05T20:35:28 | Python | UTF-8 | Python | false | false | 615 | py | __author__ = 'brock'
import settings
_redis = settings.REDIS
def acquireLock(lockId, timeout=60):
# make sure these redis locks always have a valid timeout
assert timeout > 0
acquired = _redis.setnx(lockId, "true")
if acquired:
_redis.expire(lockId, timeout)
else:
# if there is ... | [
"outtatime@gmail.com"
] | outtatime@gmail.com |
17e2629a616b6de3e7c6b1f78079b754c52ef6ea | 862588320887ec451870fb35856d4315bd2b9685 | /simple_operations/generate_backrub_ensemble.py | 8aae652d80bb8410c64e9cb270f782ef186394d3 | [] | no_license | xingjiepan/pyrosetta_scripts | 6522aa8fef43b89adac6fba1bc6072f0df2425d2 | 640ea455319d55a0cb167c50f2722778dbdde1f1 | refs/heads/master | 2021-03-16T05:35:52.560752 | 2020-05-12T22:58:54 | 2020-05-12T22:58:54 | 111,063,960 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | #!/usr/bin/env python3
'''Generate a backbrub ensemble for a given protein.
Usage:
./generate_backrub_ensemble.py input_pdb
'''
import sys
import pyrosetta
from pyrosetta import rosetta
if __name__ == '__main__':
pyrosetta.init()
input_pdb = sys.argv[1]
pose = rosetta.core.pose.Pose()
rose... | [
"xingjiepan@gmail.com"
] | xingjiepan@gmail.com |
7e6cd1bfda829bc0090b0db86435f83cc639abda | d1aa6e7d5631d7806531660febbd1f856eaeece7 | /python/paddle/distributed/ps/utils/ps_factory.py | ddf5c1e3ec0315397d52c93cfb4eb2b01c3ccb4e | [
"Apache-2.0"
] | permissive | gongweibao/Paddle | 510cd4bc0ef89bc6ccee7b6b8eca52c00e014b77 | 60f9c60cd8196c66c391d79c35d341e9072f8838 | refs/heads/develop | 2023-03-13T17:43:35.675875 | 2022-09-20T08:46:15 | 2022-09-20T08:46:15 | 82,279,237 | 3 | 2 | Apache-2.0 | 2021-05-26T06:17:43 | 2017-02-17T09:16:16 | Python | UTF-8 | Python | false | false | 1,880 | py | # Copyright (c) 2022 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | gongweibao.noreply@github.com |
654ea14d4f78784922eedf0686a4f756d0dd078a | cbe264842df4eae3569b28ed4aae9489014ed23c | /books/PythonCleanCode/ch7_generator/generators_coroutines_1.py | 65fbfdd9702000177e66d098a1a4ad1ae29048ae | [
"MIT"
] | permissive | zeroam/TIL | 31e176c2f4c3e1ef72b1155353690cc2f7160f96 | 43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1 | refs/heads/master | 2021-07-23T01:43:34.135033 | 2021-07-10T06:47:17 | 2021-07-10T06:47:17 | 167,952,375 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | """Clean Code in Python - Chapter 7: Using Generators
> Methods of the Generators Interface.
"""
import time
from log import logger
class DBHandler:
"""Simulate reading from the database by pages."""
def __init__(self, db):
self.db = db
self.is_closed = False
def read... | [
"imdff0803@gmail.com"
] | imdff0803@gmail.com |
eac8016636cfd014537c66a16982d00c21173836 | ade45967ee95ba61217658b479604bb97e86770e | /isint.py | b13dbef9269d8217ec1be98c8f2ae0469f7a8094 | [] | no_license | parkseohui/git | fb0c3b41e4efd8b7a5220864c935fff7a32523db | 238580378df8772bc47045843db52baac49e658c | refs/heads/master | 2020-04-17T10:45:07.983727 | 2019-02-27T14:27:13 | 2019-02-27T14:27:13 | 166,512,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | #문자열을 제거한뒤 숫자만반환
'''난이도:(쉬움) 현우는 축구를보다가 우리나라선수들의몸값을 알고싶었다
그래서 검색을해서 메모장에 적는데 키보드가 조그만하고 안좋은지라
자꾸 숫자가아닌 문자를 같이입력해버린다
ex: xxx : 1627000000 > xxx : 1w627r00o00p00 만 (특수문자제외)
현우는 왜인지모르지만 뜻대로안되는것에
너무화가나서 자신이수량을입력하면 문자열만 딱빼서 숫자만 반환하는 코드를 만들고싶어한다
화가난 현우를위해 코드를 만들어보자!
'''
print(''.join(i for i in input('') if i.isdigi... | [
"skfhddl003@gmail.com"
] | skfhddl003@gmail.com |
4de909fdf690d158215c7a5f55c16f8c14efc0df | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/3-OO-Python/5-encapsulaton_20200415212038.py | 120d237cce96f90aac71a89b9a9b9197e28bc4e1 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | class PlayerCharacter:
def __init__(self, name, age):
self.name = name
self.age = age
def run (self):
print('run')
def speak(self):
print(f'my name is {') | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
753ab077a5840cea3bc5b736b02cdb6ba8ab9c6a | 8fe833d3751486cf03130bfdfafffeaf60c01ff8 | /hwilib/devices/trezorlib/btc.py | f9c56cf0a74ad3b604cc460f66e6170a3fc5193f | [
"MIT"
] | permissive | fmr-llc/HWI | 50726924292c92e857c1ad13458af92a2ca23037 | 4c13daed3b62635320e2411c1dd6a8ee307012e5 | refs/heads/master | 2020-12-11T14:18:51.610966 | 2020-01-13T14:57:30 | 2020-01-13T14:57:40 | 233,870,798 | 1 | 1 | MIT | 2020-01-14T15:20:33 | 2020-01-14T15:20:32 | null | UTF-8 | Python | false | false | 5,700 | py | # This file is part of the Trezor project.
#
# Copyright (C) 2012-2018 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distrib... | [
"achow101-github@achow101.com"
] | achow101-github@achow101.com |
a2a8f7739a9aee7ce46c3440d4a2914bb62cb20f | 1c4a19c0d1953280f79193f30ad8c4759e3aff58 | /ansys/dpf/core/operators/math/cos_fc.py | 877e5d8eb4f4e277d7a79f318f9792673e6c3de6 | [
"MIT"
] | permissive | hoangxuyenle/DPF-Core | d02c843b678560f12715ea90dc8c9764b3bffc99 | a404dd290c7b3ee75463b2487cafb8bf48468691 | refs/heads/master | 2023-06-15T15:27:02.597938 | 2021-06-22T15:19:04 | 2021-06-22T15:19:04 | 381,611,135 | 0 | 0 | MIT | 2021-06-30T07:18:30 | 2021-06-30T07:18:30 | null | UTF-8 | Python | false | false | 4,828 | py | """
cos_fc
======
"""
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs, _modify_output_spec_with_one_type
from ansys.dpf.core.operators.specification import PinSpecification, Specification
"""Operators from Ans.Dpf.Nat... | [
"lea.paradis@ansys.com"
] | lea.paradis@ansys.com |
acda52f070fb154262908ba31dbace2d0a3c92c6 | 93b8a4be20a0a6b56bc7709b3ab4690135257ebe | /BrowserSession.py | 51cf187550b12d8774319d4032fed37519c2acfc | [] | no_license | kordless/crawlapart | 1c551b300b91d7da245a76dc0e13cde63d7bea00 | da308154be03a08bd752e37a3c6088a356f48208 | refs/heads/master | 2021-04-22T23:16:32.699117 | 2020-03-26T20:49:33 | 2020-03-26T20:49:33 | 249,879,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,609 | py | #!/usr/bin/env python3
import webdriver
import json
import base64
import sys
import requests
import traceback
import logging
import time
# TODO Setup Interaction with DB rather than with flags and config files
# ideally we just want something like -> LookUpWord -> Provider -> Google
# ideally we just want somethi... | [
"kordless@gmail.com"
] | kordless@gmail.com |
65688770c987a1408b9f67e406c13f7a8164b3c4 | 3b94782b680ca9a847b48e1a38c56b88823f6992 | /microesc/train.py | 2ee9de4f8287b92c4a81347e96318c7043f75c72 | [] | no_license | ShamsNafisaAli/ESC-CNN-microcontroller | 48e1db3ade88ff79c4a66793d0f992e165917842 | 572c319c7ad4d0a98bf210d59b26f6df923c8e7b | refs/heads/master | 2023-08-23T18:02:52.323459 | 2021-10-09T19:49:12 | 2021-10-09T19:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,801 | py |
import os.path
import math
import sys
import uuid
import json
import functools
import datetime
import csv
import pandas
import numpy
import keras
import librosa
import sklearn.metrics
from . import features, urbansound8k, common, models, stats
from . import settings as Settings
def dataframe_generator(X, Y, loade... | [
"jononor@gmail.com"
] | jononor@gmail.com |
cfd3122f8016f9ea2f13eeb32f84937b90620619 | 743e3ab9bc94ada35913d03b77bf159c1ec75930 | /ZIJIE复习/11.py | 305043a736f576cc494d81217b9306b9ce2da630 | [] | no_license | Stella2019/leetcode- | 04d3978ba97ab321a5cefc061beefbf3c76cf795 | 60c8a20af961a57f73feb4ccd883dfc73370d994 | refs/heads/main | 2023-03-31T04:08:20.450791 | 2021-04-01T05:38:00 | 2021-04-01T05:38:00 | 353,585,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,674 | py | # 给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。##给定一个按照升序排列的整数数组 nums,和一个目标值 target。找出给定目标值在数组中的开始位置和结束位置。
"""
def binarySearch(nums, target);
return binarySeachHelper(nums, target, 0, len(nums) -1 )
def binarySearchHelper(nums, target, left, right):
if left > right:
return -1
middle = ... | [
"noreply@github.com"
] | Stella2019.noreply@github.com |
e6cddbae4354c8af9c9d5145300b7091f44a9e8b | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/speech/v1/speech-v1-py/google/cloud/speech_v1/services/speech/__init__.py | 8eac4b03e1638030b4c04ae995e4d7fff0aa0ebf | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
2fd671f0c486f88eddcb6ce484cf4129ba4f765f | 2d4af29250dca8c72b74e190e74d92f1467120a0 | /TaobaoSdk/Request/MallEaiOrderRefundGoodReturnRefuseRequest.py | 4efc69ca0a81e8aeb3c00f91dc7995a2141a3370 | [] | no_license | maimiaolmc/TaobaoOpenPythonSDK | 2c671be93c40cf487c0d7d644479ba7e1043004c | d349aa8ed6229ce6d76a09f279a0896a0f8075b3 | refs/heads/master | 2020-04-06T03:52:46.585927 | 2014-06-09T08:58:27 | 2014-06-09T08:58:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,457 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 卖家拒绝退货
# @author wuliang@maimiaotech.com
# @date 2013-09-22 16:52:42
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardi... | [
"chenke@maimiaotech.com"
] | chenke@maimiaotech.com |
a791ffb684d9822daae88a7e46235dfc22417c67 | 1efeed0fa970b05801a29ccfdc90c52bb571dd02 | /venv/lib/python3.7/site-packages/oslo_policy/tests/test_policy.py | 9a7f6a4146e0f71073bf2429c5cfdc965b61fbe8 | [] | no_license | williamwang0/MusicGen | 2e7fe5d9b2d35d1406b8951a86a5eac6d704571e | b6411505d1fd29e13ca93e3975f3de106ad4a7d0 | refs/heads/master | 2020-07-08T15:48:33.840412 | 2020-05-27T17:30:38 | 2020-05-27T17:30:38 | 203,717,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,923 | py | # Copyright (c) 2012 OpenStack Foundation.
# All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | [
"albertczhang@berkeley.edu"
] | albertczhang@berkeley.edu |
3782a988c01ab621e1dad4030dbdac9d132b01e0 | 824b582c2e0236e987a29b233308917fbdfc57a7 | /sdk/python/pulumi_google_native/compute/alpha/get_global_address.py | 917177dfb4772220fcaa71f62ff92d5c6aa6d182 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | 24601/pulumi-google-native | ce8faf8455609a9572a8cbe0638c66427bf0ae7f | b219a14201c6c58eaa10caaeacbdaab528931adf | refs/heads/master | 2023-08-23T05:48:31.819709 | 2021-10-08T18:50:44 | 2021-10-08T18:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,292 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | 24601.noreply@github.com |
cf54b3ebe7c2041a3817e65718bd1ffbe5bd3061 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03372/s980518099.py | 89fcc36b313a8f6192a1d4f6805dda59e1da0858 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,800 | py | def main():
from collections import namedtuple
import sys
input = sys.stdin.readline
Sushi = namedtuple('Sushi', 'x cal')
n, c = map(int, input().split())
a = []
for _ in range(n):
x, v = map(int, input().split())
a.append(Sushi(x=x, cal=v))
# x昇順ソート済
clock = [0] ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e7bd3908c39dac626bf71a69c7afdbf3231e9f2a | ba80ca143ba35fd481730786a27ebdb1f88ce835 | /algorithm/backjoon/35.DFS/1890.py | aca1cfcee092c960fd8624f4d28c8de0c983167f | [] | no_license | uiandwe/TIL | c541020b65adc53578aeb1c3ba4c6770b3b2e8b3 | 186544469374dd0279099c6c6aa7555ee23e42fe | refs/heads/master | 2022-02-15T08:33:07.270573 | 2022-01-01T15:22:54 | 2022-01-01T15:22:54 | 63,420,931 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | map = [
[2, 3, 3, 1],
[1, 2, 1, 3],
[1, 2, 3, 1],
[3, 1, 1, 0]
]
min_step = float('inf')
position_x = [0, 1]
position_y = [1, 0]
def dfs(x, y, step):
global min_step
if x == 3 and y == 3:
if step < min_step:
min_step = step
return
c = map[x][y]
for i in range(2):
d... | [
"noreply@github.com"
] | uiandwe.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.