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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4b2c5301f923624686a881295281c5c597a166af | 98d8b7dd018b95dbf2c81431561546fd9619e391 | /model/CourierModel.py | f95d4f8bd91e9f2bafc9255b73c63b7921b7f5d7 | [] | no_license | c1xfr2e/kkyadmin | 1642c42659724a676000768bab559684581f3b07 | e5cef8b8ed63d3db8c1ff22af0edf44c36c4df63 | refs/heads/master | 2021-09-08T08:55:17.448640 | 2018-03-09T00:07:46 | 2018-03-09T00:07:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,152 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'zh'
__date__ = '2015/01/23'
from third_party.orm import Document
from third_party.orm import EmbeddedDocument
from third_party.orm import EmbeddedDocumentField
from third_party.orm import IntegerField
from third_party.orm import StringField
from third_party.orm ... | [
"gurity@163.com"
] | gurity@163.com |
79daa413b3f273170ae2270d63b40ebcaaafd070 | 0c469c4100fe9d352e83731688e388062a3c55c7 | /Trees/814. Binary Tree Pruning.py | 2356a5ef9f3f6769a299754700cab560c11acd64 | [] | no_license | asperaa/back_to_grind | 9e055c7e6561384e5b7ae52f01063e4beb34a298 | 5ea1976b9d5c6d04800e296e45e8ff90fdde5001 | refs/heads/master | 2022-12-16T18:32:01.443743 | 2020-09-05T13:29:39 | 2020-09-05T13:29:39 | 254,910,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | """We are the captains of our ships, and we stay 'till the end. We see our stories through.
"""
"""814. Binary Tree Pruning
"""
class TreeNode:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class Solution:
def pruneTree(self, root):
if not root:
... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
08cd82e0f8b5a38d422ffe8585ccde83c983e1b8 | b13a786c11d4107206b72be3d986dff32942b4ac | /climbing-stairs/climbing-stairs.py | 33ecabc37c4a39b3d1bc8b15e787e18621d3d402 | [] | no_license | neharani289/leet-code-problems | bee758abdb7da5e8d7f3ca37ee9afafd1d305f11 | ed8e742226ec88b3cbd6302e9afb1b2f2346ae1e | refs/heads/main | 2023-07-17T23:44:41.679135 | 2021-08-28T14:45:21 | 2021-08-28T14:45:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def climbStairs(self, n: int) -> int:
if(n == 1):
return 1
dp = [0]*(n)
dp[0] = 1
dp[1] = 2
for i in range(2 , n):
dp[i] = dp[i-1] + dp[i-2]
return dp[n-1]
| [
"dsrao0712@gmail.com"
] | dsrao0712@gmail.com |
01351a80cdcf697a2dd0fb4ba37351e9cc7b7e45 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Logit/trend_Lag1Trend/cycle_7/ar_12/test_artificial_32_Logit_Lag1Trend_7_12_0.py | 4e39913be0d0f2155bdc941616ed62b9c6c750fa | [
"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 | 264 | 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 = "Lag1Trend", cycle_length = 7, transform = "Logit", sigma = 0.0, exog_count = 0, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
7ff14178ddfcea200d259d13726bac1ebf5e25a0 | 66d1f826e2000f19c850f743961c0d88980e3bc4 | /vidme/blueprints/billing/tasks.py | 309d655e577a890c5f4d220f6b64f2aae1cf7833 | [] | no_license | frankRose1/vidme-movie-rental | 84b240402f99896d505e308f6de219ec2edef934 | cc1e56a29d69ddb8f57bee48007575f1c78f0824 | refs/heads/master | 2022-01-14T11:58:42.477739 | 2019-09-07T23:37:17 | 2019-09-07T23:37:17 | 190,499,308 | 0 | 0 | null | 2022-01-06T22:34:36 | 2019-06-06T02:19:21 | Python | UTF-8 | Python | false | false | 465 | py | from vidme.app import create_celery_app
from vidme.blueprints.billing.models.credit_card import CreditCard
celery = create_celery_app()
@celery.task()
def mark_old_credit_cards():
"""
Mark credit cards that are going to expire soon or that have already
expired. This task will be run every day at midnight... | [
"frank.rosendorf1@gmail.com"
] | frank.rosendorf1@gmail.com |
2bd079a5f1a04c82c3b993dff40446a6e547d63c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03773/s738716789.py | 5ec2b57d9f0180f0c5cc3ec1edbec45f970afc87 | [] | 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 | 93 | py | import sys
input = sys.stdin.readline
A,B = [int(i) for i in input().split()]
print((A+B)%24) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d24039c320abc1ecd6b33b1024cc5fff6be323b1 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Database/IOVDbSvc/share/CondDBConfig.py | 6b343b128fc72bc3bc8d2d94e5abbd5128b8da79 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,828 | py | # IOVDbSvc/CondDBConfig.py
# define conditions database connection configuration class
# Richard Hawkings, 6/12/06
include.block("IOVDbSvc/CondDBConfig.py")
include( "AthenaPoolCnvSvc/AthenaPool_jobOptions.py" )
include( "IOVDbSvc/IOVDbSvc_jobOptions.py" )
class CondDBConfig:
def __init__(self,tech,user,dbna... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
f4b75a0e071efa0caf7d999d8c363e2d4f849080 | d4a469fe2322171afae2452933aa057e1ded67de | /src/python/selectize/strategies/search.py | 63a4096ef46984ff436413db7420f20c38bc5f72 | [] | no_license | ettoreleandrotognoli/django-selectize | d327edf81de3cf5828c24276e7fe4523d641e9b6 | a09f7a801c1f34afbc50f9080c140c2be6b2e351 | refs/heads/master | 2020-04-08T10:10:54.374288 | 2018-12-02T14:20:55 | 2018-12-02T14:20:55 | 159,257,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from functools import reduce
from operator import or_
from typing import Iterable
from django import forms
from django.db.models import Q
from . import SelectizeSearchStrategy, SelectizeCreateStrategy
class SelectizeSearchForm(forms.Form):
q = forms.CharField(
required=False,
)
class SearchFieldsSt... | [
"ettore.leandro.tognoli@gmail.com"
] | ettore.leandro.tognoli@gmail.com |
c8f9b82346981289b8e66f143e6ea63a275a9c1e | 7a8cee032f529ddcd89b9223994527d765b59308 | /UserInterface/Selenium/IM_CEF/IMTestScript/IM_Test/test_case/page_obj/functions/myunit.py | 0b929f18923905652dec6533d5083b4631c16839 | [] | no_license | Simonluepang/Upgrading-is-the-happiest-thing | 9fb613315b16ea2fe26e6a2f2f12493d28018729 | c3af12063eea585afbfb97d1ef933a41f110c919 | refs/heads/master | 2022-12-21T06:23:10.647828 | 2019-10-29T02:28:27 | 2019-10-29T02:28:27 | 181,862,560 | 1 | 0 | null | 2022-12-11T05:22:09 | 2019-04-17T09:45:36 | Python | UTF-8 | Python | false | false | 604 | py | #!\usr\bin\env python
# -*- coding:utf-8 -*-
'''
Title: 继承unittest
Description: 设置setup和teardown
@author: Xushenwei
@update: 2018年6月11日
'''
import os, unittest
from selenium import webdriver
# from Base import *
from page_obj.models import Base
class IMTest(unittest.TestCase):
"""质检计量初始化与清理程序"""
def setUp(sel... | [
"simonluepang@outlook.com"
] | simonluepang@outlook.com |
feb36f0c666c7dcc959c58ace993ebf93b85d407 | 38a972a3cd1fc303b5f877e24d65118912d85d1c | /path/to/virtualenv/project/Lib/site-packages/tensorflow/contrib/distributions/python/ops/vector_exponential_diag.py | 771bd2a9bc3eef1870667bdeb4511040fdbf2f38 | [] | no_license | ZulfikarAkbar/YOLO_ObjectDetection | 0c1015aa987d03329eae48a2053a07dda05d96c0 | 3517d0592a269f79df9afd82e0b1b0123bbe0473 | refs/heads/master | 2022-10-27T05:08:26.734173 | 2019-02-07T17:35:22 | 2019-02-07T17:35:22 | 169,613,306 | 0 | 1 | null | 2022-10-18T02:18:17 | 2019-02-07T17:35:03 | Python | UTF-8 | Python | false | false | 7,970 | py | # Copyright 2017 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... | [
"zulfikar.78.akbar@gmail.com"
] | zulfikar.78.akbar@gmail.com |
8e1946986f69178ddacc7fa4f20826f3b2933e9a | 0e3e780fabd8ff42e4bfefc517de51c4271e1a2a | /langmodels/training/training.py | 89633d95a609d0b588d11573f52e8ca2d368c828 | [
"MIT"
] | permissive | pombredanne/langmodels | 676d9e328e64aeace20485036e00f1448945b169 | 010da7a76f5a215a2c30f0ee3413407fcf5bb34d | refs/heads/master | 2020-06-28T18:46:15.276377 | 2019-08-02T21:36:50 | 2019-08-02T21:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,779 | py | import os
from concurrent.futures.process import ProcessPoolExecutor
from pathlib import Path
from pprint import pprint
from typing import Optional, Dict, Any
import jsons
import numpy as np
import torch
from dataprep.api.corpus import PreprocessedCorpus
from fastai.text import Vocab, TextList, language_model_learner,... | [
"hlibbabii@gmail.com"
] | hlibbabii@gmail.com |
c2e810b4ef2ff6f03a4a49c6e60bdd49b63a912a | 6af36ab3b592baff4db88c103f53979a27b4434f | /matrimonial/matrimonial/asgi.py | ba43215481755480a6f8700d87a628b548de51a1 | [] | no_license | abhijithsaji/matrimonial | 7292d926498a35b99bc537a877c7d27f7c3f0fea | a313fcf1cef2339f248144a54a5ac0662543bd04 | refs/heads/main | 2023-04-30T21:44:27.252443 | 2021-05-21T04:17:32 | 2021-05-21T04:17:32 | 365,408,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
ASGI config for matrimonial project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_S... | [
"007myofficial@gmail.com"
] | 007myofficial@gmail.com |
de3495c0b2c996601058b281ca3978d6fea46f7a | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/dhcp6iapd1.py | 2c6103c9201229cfbf69f45cb3ec69716c60da52 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 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, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
dd997ccf9c9739c0ff8f42075663336220fb062c | 06fae7d8cbe5fb4343addbb21447a00060515224 | /Assignment 12/Assignment12_4.py | fb8bc47ea7808d3cd4d5c113b6836daecbc6d106 | [] | no_license | Jaydeep-07/Python-Automation | 9137f4b3c4ab158efd0334041dfcef4fef069d3f | dae74f338ed399e8abac25d7ff667782f9790b74 | refs/heads/master | 2021-01-01T08:22:07.647596 | 2020-05-09T09:41:00 | 2020-05-09T09:41:00 | 237,487,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | '''4. Design automation script which accept directory name and mail id from user and create log
file in that directory which contains information of running processes as its name, PID,
Username. After creating log file send that log file to the specified mail.
Usage : ProcInfoLog.py Demo Marvellousinfosystem@gmail.com
... | [
"jaydeepvpatil225@gmail.com"
] | jaydeepvpatil225@gmail.com |
2ecf9380b09cfe46da46a9d273c6d80f9c5bc9ab | d366d192f668ecaa0b70b454d7a9866c2888d600 | /src/transformers/models/gpt_neox/configuration_gpt_neox.py | 5d9433ae2f560ed6706c7f1756db2bf718a108f0 | [
"Apache-2.0"
] | permissive | matrogersmtl/transformers | 2bb853dd11907280f667661909ed31825d0b104b | 7e71eb2ef77b0200cd079d0d0383342ed1da2df5 | refs/heads/master | 2023-06-22T10:30:14.688699 | 2023-06-19T14:23:29 | 2023-06-19T14:23:29 | 281,486,776 | 0 | 0 | Apache-2.0 | 2020-07-21T19:32:17 | 2020-07-21T19:32:16 | null | UTF-8 | Python | false | false | 6,109 | py | # coding=utf-8
# Copyright 2022 EleutherAI and The HuggingFace Inc. 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... | [
"noreply@github.com"
] | matrogersmtl.noreply@github.com |
4e61c0d03cb48b5889573e49ec8e501d9783dc8d | c53d57b6ea5b117d8fa260a29942cf9422a46063 | /deepblueai_rewrite/AutoDL_sample_code_submission/AutoCV2/kakaobrain2/skeleton2/optim/scheduler2.py | 64cccebf97f026c37725978b35ee9af18dcb8cde | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-philippe-de-muyter"
] | permissive | zichuan-scott-xu/automl-workflow | c52ee6c7c01347274a6b1d6801a7889daa35a40d | d108e55da943775953b9f1801311a86ac07e58a0 | refs/heads/main | 2023-04-01T16:20:10.885273 | 2021-04-14T05:44:48 | 2021-04-14T05:44:48 | 327,514,705 | 0 | 0 | Apache-2.0 | 2021-01-07T05:41:38 | 2021-01-07T05:41:38 | null | UTF-8 | Python | false | false | 3,359 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import math
import logging
LOGGER = logging.getLogger(__name__)
def gradual_warm_up(scheduler, warm_up_epoch, multiplier):
def schedule(e, **kwargs):
lr = scheduler(e, **kwargs)
lr = lr * ((multiplier - 1.0) * min(e, warm_up_epoch) /... | [
"zhengying.liu@polytechnique.edu"
] | zhengying.liu@polytechnique.edu |
5e75798c28ae29799a9cb5bcfa1d2dfba459bfd1 | f4af064c16f3defc90b2666f7e5783d5821006c7 | /server/app/providers/util.py | ca8e07ed74b2337a63f996479fdccbbfc10b5eb8 | [] | no_license | ml4ai/BioContext_annotator | 1144daad8d3012658663534c9587d7a05f84dff5 | 4ddc8a87ccdd91df60e033c7e3b806e5f1f97486 | refs/heads/master | 2021-07-26T00:56:51.645698 | 2021-06-25T20:15:58 | 2021-06-25T20:15:58 | 149,360,468 | 0 | 0 | null | 2021-06-25T20:17:01 | 2018-09-18T22:39:04 | Python | UTF-8 | Python | false | false | 9,387 | py | """
Common utility functions and classes for data providers
"""
# ==============================================
# SQLAlchemy ORM mappings for application tables
# ==============================================
import sqlalchemy
import sqlalchemy.orm
import sqlalchemy.sql.expression
import sqlalchemy.exc
import sqlalc... | [
"enrique.noriega@gmail.com"
] | enrique.noriega@gmail.com |
a5b14f3d49dc9a78faba2e3d159f47779c24dfb2 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/textanalytics/azure-ai-textanalytics/samples/async_samples/sample_analyze_healthcare_entities_async.py | fa844029af5088e41bf7379485960cafa59e5584 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 5,511 | 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"
] | adriananeci.noreply@github.com |
5e1f2026379e08b7ac89e01976c51774c1df142c | 3a642fa1fc158d3289358b53770cdb39e5893711 | /src/xlsxwriter/test/comparison/test_table10.py | ec3181433db7835ec570b6a3cafe277220f5ee39 | [] | no_license | andbar-ru/traceyourself.appspot.com | d461277a3e6f8c27a651a1435f3206d7b9307d9f | 5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c | refs/heads/master | 2020-07-23T14:58:21.511328 | 2016-12-26T22:03:01 | 2016-12-26T22:03:01 | 73,806,841 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,350 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
import os
from ...workbook import Workbook
from ..helperfunctions import _compare_xlsx_files
class TestCompareXLSXFiles(unittest.TestC... | [
"andrey@voktd-andbar.int.kronshtadt.ru"
] | andrey@voktd-andbar.int.kronshtadt.ru |
1b40466def2e94398d0d717066b2f7eee9c4ca23 | f0d6efe035d4c2ed1ea6bb6d1d5a613b8630a025 | /volttron/platform/vip/agent/example.py | 3cf271f061c3f339e50a06cd406f0259b3b5d966 | [
"BSD-2-Clause-Views",
"BSD-3-Clause"
] | permissive | bemoss/BEMOSS3.5 | d24c1c5587e5081092cc97250db45645363da4e4 | 75a09bc5d0a2ec0ae994ac900a93dc027b527860 | refs/heads/master | 2021-08-15T23:05:40.661118 | 2021-03-29T20:28:14 | 2021-03-29T20:28:14 | 91,000,462 | 81 | 38 | NOASSERTION | 2021-03-29T20:29:54 | 2017-05-11T16:25:43 | Python | UTF-8 | Python | false | false | 2,706 | py |
from __future__ import absolute_import, print_function
import gevent
from volttron.platform.vip.agent import *
def meh():
return 'meh'
class ExampleAgent(Agent):
@Core.receiver('onsetup')
def setup(self, sender, **kwargs):
self.vip.rpc.export(self.foo)
self.vip.rpc.export(self.baz, 'b... | [
"aribemoss@gmail.com"
] | aribemoss@gmail.com |
0bfe72320aa66631e16bd247c18120f9892f5b95 | afc85d75ac2115f33a00d535a0f08104571a1e4a | /Import_funcoes.py | 6a0ad61b4a7023f85f0b15be90928202166e38fd | [] | no_license | BrunoCerberus/Algoritmo | aa80651920705a88248fa32d700555672964dae4 | 8fad13cf936eb7120f26a699bca4a8ad76d1a53f | refs/heads/master | 2016-09-08T01:23:09.210110 | 2015-07-08T06:39:52 | 2015-07-08T06:39:52 | 29,315,141 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,226 | py | """
Este programa nao e um executavel.
Ele consiste de funcoes nas quais importaremos
a partir do interpretador interativo do python.
"""
# Esta funcao ela quebra uma frase ou sequencia em palavras
# para isso, usamos o metodo de strings chamado split()
def break_words(stuff):
"""This function will break up word... | [
"bruno.guitarpro@gmail.com"
] | bruno.guitarpro@gmail.com |
bcaf3d8d7380c15a2e104cfae2f36560e778e28e | 49c986c1a7351d51fd6654f09d4493fa8dffc6cd | /이코테/C15/27-3.py | b8e6e7514d78849a7fe87bae4c74faf654783cef | [] | no_license | beomseok-kang/Algorithms-Python | 53ca2cdbb718e2817eb0086662aea55cd3868559 | e06a015e3a8c909643e2fa60808d5157fbb7c3bd | refs/heads/master | 2022-12-24T04:42:04.586375 | 2020-10-03T09:09:23 | 2020-10-03T09:09:23 | 291,429,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | def count_by_value(array, x):
n = len(array)
a = first(array, x, 0, n - 1)
if a == None:
return 0
b = last(array, x, 0, n - 1)
return b - a + 1
def first(array, target, start, end):
if start > end:
return None
mid = (start + end) // 2
# 해당 값을 가지는 원소 중 가장 왼쪽에 있는 경우에만 인덱스 반환
if (mid == 0 or tar... | [
"beom.kang17@gmail.com"
] | beom.kang17@gmail.com |
b8bae85591037e280747f01053844169a28b5514 | 2e935ca936976d2d2bd4e785e2f3f29c63771542 | /ExPy90101.py | cb331df21e998231b4db8e481f0a9ef788f9d135 | [] | no_license | zoro6908/PY_acamedy | 4a370e866fef19f6d2e7697eb809352b6ac703f5 | 460d26639f7bd8cf2486950dc70feae6a2959ca0 | refs/heads/master | 2023-04-26T18:10:44.691326 | 2021-05-25T00:11:02 | 2021-05-25T00:11:02 | 298,425,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # ExPy9xxxx 파이썬 개인 연습
# MySQL 연결
# 선행작업 : PyMySQL 패키지 install
import pymysql
con = pymysql.connect(
user = 'root',
passwd = 'zoro123',
host = '127.0.0.1',
db = 'testdb',
charset = 'utf8'
)
# 딕셔너리 형태로 결과를 반환해주는 DictCursor를 사용
cursor = con.cursor(pymysql.cursors.DictCursor)
# Insert
# sql = '''INS... | [
"zoro6908@naver.com"
] | zoro6908@naver.com |
7cba60a5bbdaa2d2ac03cdd885eb1d6a716b7ee5 | aaa85418696016fd883830d41738d5eec9da7c05 | /decorators/enforce.py | 22d9b315d96bcc348003ea24676140d80eb5c152 | [] | no_license | TimothyJao/pythonlearning | 1017a68f4320106f04fdb83b7c88a08eb6026236 | d00757bbf09788b6946b9a37468030e1dd1b592b | refs/heads/master | 2020-06-12T14:18:59.363288 | 2019-08-22T02:08:40 | 2019-08-22T02:08:40 | 194,326,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | def enforce(*types):
def decorator(f):
def new_func(*args, **kwargs):
newargs = []
for(a,t) in zip(args, types):
newargs.append(t(a))
return f(*newargs, **kwargs)
return new_func
return decorator
@enforce(str, int)
def repeat_msg(msg, times):
... | [
"timothy.i.jao@gmail.com"
] | timothy.i.jao@gmail.com |
9d1b1ca0c01a38a801eb8a4b558ad7dd58b79d4b | 51970fa793ec7f92164e60c1fcbf17f62aa469d5 | /listcomp.py | e887d6b80658305b67361cdcb4919de4c3a2a77c | [] | no_license | SixStringsCoder/pdx_coding | 6eef25490c74459feafd53a190ab06a0aaf685aa | 5853bb74a247187cec6ac0f4bb8b3a54931372e9 | refs/heads/master | 2021-01-19T20:41:23.268478 | 2017-08-24T06:37:29 | 2017-08-24T06:37:29 | 88,534,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | """
# Test Data Below. Leave these first two line alone.
>>> names = ['Kieran', 'Suki', 'Alex', 'Serada', 'Jeff', 'Fin', 'Alfonzo']
>>> people = [('Kieran', 'Prasch', 'Instructor'), ('Alfonzo', 'Ward', 'Student'), ('Fin', 'Balnik', 'Student')]
# >>> evens = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
>>> evens = range(1, ... | [
"rshanlon@gmail.com"
] | rshanlon@gmail.com |
a69a9a1a020426c1f8788bfa1d752db7993f056c | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/pulkitpahwa/example_config.py | db8b1d9ff1940c6d7599d8351925c28811050e69 | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,105 | py | # Sample Gunicorn configuration file.
#
# Server socket
#
# bind - The socket to bind.
#
# A string of the form: 'HOST', 'HOST:PORT', 'unix:PATH'.
# An IP is a valid HOST.
#
# backlog - The number of pending connections. This refers
# to the number of clients that can be waiting to be
# ser... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
9a3d51050b984417283b8a545724a988840b6830 | f4b212cdb8861238a50a31ce8db2b242ccb5e173 | /archive/utils/coresense/test-coresense-protocol.py | 31d0028f4dceafa5cbd58025579eec91652855d2 | [] | no_license | waggle-sensor/waggle | 1f9a1bc82640b1c6eb6e51c5a53a53bffe668654 | 76fa76e4682cb2d4f5e009ef84ff345fdbb9d99e | refs/heads/master | 2022-10-09T01:38:02.086580 | 2022-09-28T16:02:13 | 2022-09-28T16:02:13 | 37,740,487 | 40 | 21 | null | 2017-01-06T23:13:53 | 2015-06-19T19:01:28 | Perl | UTF-8 | Python | false | false | 1,797 | py | from protocol import CoresenseProtocol
from protocol import create_packet
from protocol import create_packet_from_subpackets
import unittest
class TestProtocol(CoresenseProtocol):
def __init__(self):
self.results = []
def subpacket_received(self, sensor, valid, data):
self.results.append((se... | [
"sean.shahkarami@gmail.com"
] | sean.shahkarami@gmail.com |
5f8944643b7bfbc32963593f393db0278168a05b | 3a8915b0cb3c9d3f034dc991fd148a44e52c4b84 | /ENTREGA_FINAL_con_Json/Clase_RecHum.py | 38658827a93bf2ca751bbe6363a1833bcadcfa7f | [] | no_license | emilianoNM/ProyectoFinal | 186c1aa0e55232b873f9eebcb5746431360a09eb | c6be564d28b33ecda2636ba022004088ece502e4 | refs/heads/master | 2020-03-07T22:38:54.256388 | 2018-06-02T21:59:15 | 2018-06-02T21:59:15 | 127,759,823 | 0 | 4 | null | 2018-06-02T19:34:55 | 2018-04-02T13:27:45 | Python | UTF-8 | Python | false | false | 1,556 | py |
import json
class RecHuman():
idnt=None
Nombre=None
ApellidoP=None
ApellidoM=None
Direccion=None
Telefono=None
Edad=None
Correo=None
RFC=None
Contrasena=None
CodPos=None
Puesto=None
jornada_i=None
jornada_f=None
Salario=None
Permisos... | [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
494f087f02ec6984a4d4312e901efed1d4824c26 | d5f7c85932bd35978f2bc54c2510fb527a5734dd | /movo_common/movo_third_party/wu_ros_tools/manifest_cleaner/scripts/stats.py | 331ace0ef8f10bf037811d2ffdde177153014602 | [
"BSD-3-Clause"
] | permissive | syc7446/kinova-movo | 9bb6911f67c5617015f4550c5224ac7070d26d0d | 28bec5bb61517f970071782a32ac58e92c67f0df | refs/heads/master | 2021-06-27T22:27:46.660127 | 2021-06-19T21:50:14 | 2021-06-19T21:50:14 | 229,503,404 | 1 | 1 | null | 2019-12-22T01:21:56 | 2019-12-22T01:21:56 | null | UTF-8 | Python | false | false | 5,545 | py | #!/usr/bin/python
import rospy
import xml.dom.minidom
import os
import os.path
import sys
import collections
import operator
from urlparse import urlparse
import httplib
def get_code(url):
x = urlparse(url)
try:
conn = httplib.HTTPConnection(x.netloc)
conn.request("HEAD", x.path)
ret... | [
"longfei.zhao@yahoo.com"
] | longfei.zhao@yahoo.com |
ac56dedca269659c43b62f36885d8ef79f3008a1 | b9b06d86d43e738b62ab9289fc13aae4c2b2670b | /weekend1/py0201/userdb.py | 5a3096ed232317e30c3066dff9f714055788915e | [] | no_license | MrZhangzhg/nsd_2018 | 31a7a8d54e2cb3ff4f4eb5c736fbd76601718356 | 458a1fef40c5e15ba7689fcb3a00baf893ac0218 | refs/heads/master | 2020-04-08T19:08:48.237646 | 2019-09-08T04:31:07 | 2019-09-08T04:31:07 | 159,642,127 | 5 | 7 | null | 2019-01-04T05:33:40 | 2018-11-29T09:37:27 | Python | UTF-8 | Python | false | false | 960 | py | import getpass
userdb = {}
def register():
username = input('username: ').strip()
if username in userdb:
print('用户已存在')
else:
password = input('password: ')
userdb[username] = password
def login():
username = input('username: ').strip()
password = getpass.getpass('password... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
76a12c3cf6f6351f0bcdbb17aab9d3b27a718552 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/gigasecond/41405ef7422f4fbab2f0a82dea661f76.py | 1111d14c7585e5c39848c491f1f3a46215d26287 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 106 | py | from datetime import timedelta
def add_gigasecond(original):
return original + timedelta(seconds=10**9)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
70dcf79e046d108d59ef649e88fa51432f1408cd | 54afe0a12b215b6cc7701a1739873a970b09a19a | /tuster/system/bebop/run.py | 38c3bd2c051ff7a3f3cc00fb1123fe174201b4c0 | [
"BSD-2-Clause"
] | permissive | ytopt-team/tuster | 8d41e795487d7d6a21604445d2ef9afbc77ec1b1 | 9ac4edc0ee8ae3e1c6bfd27168917a1afc84e952 | refs/heads/master | 2021-06-23T12:54:35.371689 | 2021-02-18T18:58:43 | 2021-02-18T18:58:43 | 200,914,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,906 | py | #!/usr/bin/env python
import logging
import signal
import socket
import subprocess
import sys
from mpi4py import MPI
# opening ports as suggested in: https://github.com/ray-project/ray/issues/4393
REDIS_PORT = 10100
REDIS_SHARD_PORTS = 20200
NODE_MANAGER_PORT = 30300
OBJECT_MANAGER_PORT = 40400
comm = MPI.COMM_WORLD... | [
"romainegele@gmail.com"
] | romainegele@gmail.com |
16d1a9b21464090435f69466cc09de0aff1b82d2 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2164/49405/256682.py | e34ec2692add52328def06b518247001ec0cbb16 | [] | 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 | 125 | py | import numpy as np
T = int(input())
for t in range(T):
s = input()
t = np.unique(list(s))
print(len(s) - len(t)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
426a82588cf106eec2ee4784a6c7605c0148b8a3 | 1673c6df69c93452eb1ff5a5f06e2cf7b84158c4 | /day11/python/part2.py | aba84e1f8792e3d99ac613f2765b52b52e20ade0 | [
"MIT"
] | permissive | jabbalaci/AdventOfCode2019 | 3baa4b8dd5e8bfa5737342bf9ce4b5979cf6a979 | 893d1c8c6da9c3213cdb0e43c77f0f9a92406a48 | refs/heads/master | 2020-09-21T06:25:59.906916 | 2019-12-28T11:22:32 | 2019-12-28T11:22:32 | 224,709,081 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,058 | py | #!/usr/bin/env python3
from enum import IntEnum
from typing import Dict, List, NamedTuple, Set, Tuple
import helper
from helper import Point
class Color(IntEnum):
BLACK = 0
WHITE = 1
class Direction(IntEnum):
UP = 0
RIGHT = 1
DOWN = 2
LEFT = 3
class Area:
def __init__(self):
... | [
"jabba.laci@gmail.com"
] | jabba.laci@gmail.com |
600680a95f92b367ae39acdd7eacd43dd07f8cfa | 27ad6f41ba80bea9d7808df57f578fcb785f7904 | /handlers/index_handler.py | a1ba36d7fe31cfe7f166f9a01d335453173cea15 | [
"MIT"
] | permissive | magus0219/niner | 216fa5d20de09eb9ea953e9549c492aad47d8ad4 | 0c393ed6cb3760fd650752a470a59e9aaa6fa5c1 | refs/heads/master | 2021-01-21T13:41:59.455303 | 2016-05-19T03:24:30 | 2016-05-19T03:24:30 | 43,408,293 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | __author__ = 'magus0219'
import logging
from tornado.web import authenticated
from .common_handler import CommonHandler
from core.deploy_manager import dms
from utils.enums import *
logger_server = logging.getLogger("DeployServer.IndexHandler")
class IndexHandler(CommonHandler):
@authenticated
def get(self,... | [
"magus0219@gmail.com"
] | magus0219@gmail.com |
211c5b52b0b4cf1dd7cf7d4e520979c87cfdadb5 | ff8436625041bd890b70a3e63345dd4f36b89d4f | /sockets/simple/extra/example5_with.py | 652c07fb78ca6077cf384807dba83f35b229a76c | [] | no_license | amurakho/PythonStarter01 | 32674cd09d84c961de90bc9b464210c920211a3c | da037f7ffbc6f7afcdadae4fbc1d788fda97a6c2 | refs/heads/main | 2023-01-21T05:03:30.887356 | 2020-11-12T17:37:08 | 2020-11-12T17:37:08 | 312,348,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import socket
with socket.socket(socket.AF_INET, socket.SOCK_DGRAM) as sock:
print('8888 is bind')
sock.bind(('127.0.0.1', 8888))
result = sock.recv(1024)
print('Message', result.decode('utf-8'))
| [
"amurakho@gmail.com"
] | amurakho@gmail.com |
7858f8aacc219537793754390120063b99c47d14 | 056863ff17af7121b0348db31bf28836ff584e4a | /60.py | 996c1e5e0a2a09c34c952b1170fc4a8664fb6ce7 | [] | no_license | saranya258/python | 1face016cdd52c55df6fd6493f5f2aa5bcae9212 | df2274ad72bd36b7eb8cf4a4d2360e40dc902ee0 | refs/heads/master | 2020-06-07T14:19:32.476586 | 2019-07-10T08:53:32 | 2019-07-10T08:53:32 | 193,040,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | sa=int(input())
gow=0
for t in range(1,sa+1):
gow=gow+t
print(gow)
| [
"noreply@github.com"
] | saranya258.noreply@github.com |
9e9e84691e8f70b7f934d0e2b28cf5c36e594488 | c0f4104194a7989e44d7f0161b2425c5a5bc3a98 | /solum/api/controllers/v1/datamodel/language_pack.py | c07e250542506ee9d7c9f514c92211f6f4cf2a71 | [] | no_license | bopopescu/Openstack-2 | f65470bdd0ee4736c45b6f869f0453cb8eb446c8 | 6f06133562e3dfd490695a92c9ddf1a322675104 | refs/heads/master | 2022-11-28T09:19:21.633850 | 2016-06-23T07:55:32 | 2016-06-23T07:55:32 | 282,095,817 | 0 | 0 | null | 2020-07-24T01:44:49 | 2020-07-24T01:44:48 | null | UTF-8 | Python | false | false | 9,466 | py | # Copyright 2014 - Rackspace
#
# 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 in writing,... | [
"egonmin@CN00119199"
] | egonmin@CN00119199 |
e042efbbf71ee118d8dc0a9efc888dc20028b52c | f23a0561ed2e1f5192a2933ba3205bbc84e0172c | /ruidun_system/client/location.py | c96d250993942fc664c63c6b9c74c5d151b8ba4d | [] | no_license | TingxieLi/django-restframework | a179a794760830cedcf60c0069cb7c8d4c7127cd | 3645bc3a396727af208db924c6fdee38abc0f894 | refs/heads/master | 2020-12-05T13:13:29.937243 | 2019-07-18T03:33:23 | 2019-07-18T03:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,775 | py | #coding=utf-8
import random
from common.cfg import Config
from common.myfuncs import Funcs
from common.myproxy import Proxy
import requests
'''
location定位客户端接口
'''
class Client:
device='location' #设备类型
token='...' #暂略
apiver = "1.2.0"
#认证参数
username = "admin"
passwordMD5 =... | [
"851864721@qq.com"
] | 851864721@qq.com |
ce9c6349301e6a20273444e71b67fd433aaeca7d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/8/usersdata/145/3848/submittedfiles/imc.py | f68a50d0dd8575760e9214285da8a690060018ef | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # -*- coding: utf-8 -*-
from __future__ import division
#entrada
P=input('digite o valor do peso:')
A=input('digite o valor da altura:')
#processamento
imc=P/(A**2)
if imc <20:
print('abaixo do peso')
if 20<=imc<=25:
print('normal')
if 25<imc<=30:
print('soprepeso')
if 30<imc<=40:
print('ob... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e2c441bf967cf386bae1fb7f4aef46c2d46fa4e9 | aba442afba026d2130c4aeca863308ca26e7e472 | /multimodal/src/autogluon/multimodal/models/fusion/fusion_transformer.py | fa5d376402cb6a54a67d8b16144b00966b7e786c | [
"Apache-2.0"
] | permissive | stjordanis/autogluon | c8fd03a9bf7624911b13e90239e9260dd8885ddf | 6af92e149491f6e5062495d87306b3625d12d992 | refs/heads/master | 2023-08-21T15:16:53.202431 | 2023-08-11T20:15:31 | 2023-08-11T20:15:31 | 228,360,888 | 0 | 0 | Apache-2.0 | 2019-12-16T10:25:32 | 2019-12-16T10:25:30 | null | UTF-8 | Python | false | false | 8,983 | py | import logging
from typing import Optional
import torch
from torch import nn
from ...constants import AUTOMM, FEATURES, LABEL, LOGITS, WEIGHT
from ..ft_transformer import CLSToken, FT_Transformer
from ..utils import init_weights, run_model
from .base import AbstractMultimodalFusionModel
logger = logging.getLogger(__... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
700b94995678e7866720b537803baee6609d79ab | 4db9859cfcbf1f15fbb21f4b020681ba2d4f9fa6 | /app/forms.py | 6bf5be66da3e7c958a45c06ae616f612e2de51fa | [] | no_license | ssssergey/pauk-press | 165055db61d67a7418278fd03902f93718f45bc1 | 95b48c8af3923b8f4345f9f0a27af3ade55ea565 | refs/heads/master | 2016-08-09T05:33:25.241142 | 2016-04-10T17:11:08 | 2016-04-10T17:11:08 | 48,636,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | # -*- coding: utf-8 -*-
from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, PasswordField, TextAreaField
from wtforms.validators import DataRequired,Length,EqualTo
class LoginForm(Form):
username = StringField(u'Имя', validators=[DataRequired(message=u'Обязательное поле')])
password =... | [
"lse1983@mail.ru"
] | lse1983@mail.ru |
2b0887e3dab961db55c49b9a85604a43fc9e91d1 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-servermanager/azure/mgmt/servermanager/models/node_resource_paged.py | 41fcf74d41205c2d1c28772dc205ff7071df8951 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 890 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
de0993f0246e94b18304c01574eadc4a822aab7d | 8cc862aa51d3fec95d094dc4bd3151e1155d240a | /pythonProject/IO/using_stringIO.py | 65346fa216885f43af951a7053af368d970eadcf | [] | no_license | activehuahua/python | bcbf3a2190025e2315399bfd0c725f598211632b | cc36a93c01c53f856426ccf2724848142524d9c0 | refs/heads/master | 2023-04-14T10:23:21.590765 | 2019-08-12T06:52:15 | 2019-08-12T06:52:15 | 160,277,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from io import StringIO
f=StringIO()
f.write('Hello')
f.write(' ')
f.write('World!')
print(f.getvalue())
f=StringIO('Hello!\nHi!\nGoodbye!')
for line in f.readlines():
print(line.strip())
# while True:
# s=f.readline()
# if s=='':
# break
# print(s.strip()) | [
"zhaojianghua@pretang.com"
] | zhaojianghua@pretang.com |
4d9fb401497b6151f88761b810b83ebc239c195e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/AT-SWITCH-MIB.py | 7e7496f470535ddd99104814ffa51b4491db0194 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 18,248 | py | #
# PySNMP MIB module AT-SWITCH-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/AT-SWITCH-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:14:39 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
f19719c03def348e24c0d64db36552bbad41a24b | 63b864deda44120067eff632bbb4969ef56dd573 | /anchor_free/flop/models/py_utils/hrnet_backbone.py | 31313e1c3c3d97fc5f0b12ba43ba5bb37ed82a08 | [] | no_license | lizhe960118/Deep-Learning | d134592c327decc1db12cbe19d9a1c85a5056086 | 7d2c4f3a0512ce4bd2f86c9f455da9866d16dc3b | refs/heads/master | 2021-10-29T06:15:04.749917 | 2019-07-19T15:27:25 | 2019-07-19T15:27:25 | 152,355,392 | 5 | 2 | null | 2021-10-12T22:19:33 | 2018-10-10T03:06:44 | Jupyter Notebook | UTF-8 | Python | false | false | 18,510 | py | # from __future__ import absolute_import
# from __future__ import division
# from __future__ import print_function
import pdb
import torch
import os
import functools
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
from .utils import convolution, residual
from .utils import make_layer, make_l... | [
"2957308424@qq.com"
] | 2957308424@qq.com |
76975cb98f16ea4cbc3b728d65ad02d45449e4c6 | b96ed10d6247e22d4fa1d28bc3314bc319d3109c | /Sample/Sample01/support.py | 2c5dc2478f052c057505f4b9eb9693d6f36ce9fd | [] | no_license | 13555785106/PythonPPT-01 | ac1b22b9b1851f2b3ea6e4ab0a100e5f6896ee8c | 40e5883f248cb342f3a7fc7ad12ba02ebde4c619 | refs/heads/master | 2020-04-26T16:49:59.675964 | 2019-03-04T07:16:21 | 2019-03-04T07:16:21 | 157,095,747 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | # -*- coding: UTF-8 -*-
def print_func(par):
global g
a,b,c=1,2,3
print '全局变量'
globalVars = globals()
for k in globalVars:
print k,'=',globalVars[k]
print '局部变量'
localVars = locals()
for k in localVars:
print k,'=',localVars[k]
print "Hello : ", par
return
| [
"312655424@qq.com"
] | 312655424@qq.com |
8c9eb06537a0e90d935e61408d0004d43a513c1e | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_4/models/policy.py | 9f4ff1a55eab1ec151872385d3a9a51d682463a0 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,587 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.4, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
e1073322510ad590a40f8e0fbdc64efac55003b9 | ab616afb11b5cb2cc2e87f48387f6b8869514518 | /src/client.py | 6960a6374a2dd40b56e64855f636fc96de84fa6f | [
"MIT"
] | permissive | enricobacis/dynenc | 34bf70a958e6011bfde88479a8548bfe7c9cc6b6 | 0134bca49e81d707f73e869650298964ab35e5e9 | refs/heads/master | 2021-06-01T15:28:29.737009 | 2019-06-18T12:45:23 | 2019-06-18T12:45:23 | 59,818,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | #!/usr/bin/env python
from Crypto.PublicKey import RSA
from Crypto.Cipher import AES
from Crypto.Util import Counter
from argparse import ArgumentParser
from requests import get
from base64 import b64decode
import logging
logging.basicConfig(level=logging.DEBUG)
def dynencget(url, rsa):
response = get(url)
... | [
"enrico.bacis@gmail.com"
] | enrico.bacis@gmail.com |
7de6ef22f81917369e961fabba5ecaf55e3a0c28 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-multimediaai/aliyunsdkmultimediaai/request/v20190810/ListFaceGroupsRequest.py | feebb7f4fdd69f9f350ac39bfc690e0476c254e7 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,598 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
57a3cc32fefaf95c693e070bcbcf981d8a6281a7 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /transliterate_widget/__init__.py | 6059bce3c1edcc432b8eb7db49d83020d05a3b45 | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 1,009 | py | # -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
#
# This program is free software: you can modify
# it under the terms of the GNU Affe... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
b1e0c649f762db28b287abd8303c2e20140a48fc | 9ac2716d2db850a674cb8d7e9dba1c1b1c43383c | /manage.py | 04508c73328a9c6c1ee17692ec33f1773773dc54 | [] | no_license | arifbd2221/Car-Parking-Backend | 2c8c685d0a216393dde9d6f0a314dd3de1755023 | 00412192bcff6d90531bccbc3c838afc8c4bfa7b | refs/heads/master | 2020-04-30T10:55:12.841665 | 2019-08-22T04:23:46 | 2019-08-22T04:23:46 | 176,788,840 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'carparking.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"mohidulhoque216@gmail.com"
] | mohidulhoque216@gmail.com |
e36cd83fb75716765abe01817a9f27bb80a5798e | dba6d00af433786f9040f0ffb47f2352395f4ca6 | /2020/day19.py | bc7a8917bb5dc112c1619f7d697402160111ebe5 | [] | no_license | noahmilian/AoC | b7cd1b889ade06fb5103a5a30560d9f335468035 | d8a913007d624286f7cde2c8a4fb65900ea15526 | refs/heads/main | 2023-02-15T13:28:58.241075 | 2020-12-25T06:35:23 | 2020-12-25T06:35:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,844 | py | """
Day 19
https://adventofcode.com/2020/day/19
1st star: 00:30:04
2nd star: 00:34:22
OH GOD I FEEL LIKE SUCH A CHEAT. After struggling to recall how to write
a parsing algorithm, and toying with the idea of simply generating
all possible strings starting from the provided grammar, I just took the
grammar, converted ... | [
"borja@cs.uchicago.edu"
] | borja@cs.uchicago.edu |
1a249aab5250b8b2f26a6a5a74cfd553d23286da | 0fa66774f82e96082b72ad9556543599ee12ddcb | /functional/ml/python/ml/api/trainer.py | f4728fd9d8681cebc127c348ac080edc401a4c99 | [] | no_license | eric-czech/portfolio | 229a6eb662c3b633cda6db357f0f952cfdbb1e46 | d467ae2b3c8b58b35c11bf6aff11ea651e76c1a4 | refs/heads/master | 2021-01-17T03:48:56.571739 | 2018-01-23T21:09:40 | 2018-01-23T21:09:40 | 21,694,456 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,972 | py | import numpy as np
import pandas as pd
from sklearn import base
from sklearn.externals.joblib import Parallel, delayed
from ml.api.constants import *
from ml.api.utils.array_utils import to_data_frame
from ml.model.log import log, log_hr, DEFAULT_LOG_FORMAT, DEFAULT_LOG_FILE, set_logger
from py_utils import arg_utils,... | [
"eric.allen.czech@gmail.com"
] | eric.allen.czech@gmail.com |
a6a1b716648a96ef2aebe18a240d61b88dd0a8d4 | 19c77431e671f02b6f5a5b6cc131a8b71794b33c | /dm_control2gym/recorder.py | e0488313f666d9026b58a83d07784714a4659863 | [
"MIT"
] | permissive | Rowing0914/dm_control2gym | 6a5768c8ddd10b871cb500e4319b655eadca78b4 | 1b901cd8457059ffb74e440a061f59b41ac68cc0 | refs/heads/master | 2022-12-08T19:12:47.274870 | 2021-05-23T02:41:40 | 2021-05-23T02:41:40 | 232,350,935 | 2 | 1 | MIT | 2022-12-08T03:28:57 | 2020-01-07T15:11:57 | Python | UTF-8 | Python | false | false | 15,042 | py | """
Original code is here.
https://github.com/openai/gym/blob/master/gym/wrappers/monitor.py
Since the monitor class seems a bit less flexible for switching on/off of recording functionality
I added two simple APIs
- record_start()
- record_end()
By alternating them, we can switch off/on the recording!!
"""
im... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
10a006609e077381fb2dcf2fa6a458bf0d4e4740 | 1ae9be88f236580f6b76c409e57b01fe0c101a27 | /tools/py/reader/xml.py | c1eb70a67ccbbcaeba9566d4dbb9781957ef4723 | [
"Apache-2.0"
] | permissive | erimille/versa | cb9846155c7cff4f2ff7c06bedf10096ed4ac476 | 43a8a693cf65790322a993704541343f342af1e4 | refs/heads/master | 2021-01-17T23:04:22.396000 | 2014-04-30T17:02:32 | 2014-04-30T17:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | #dendrite.importr
import re
from amara.bindery import parse
from amara.lib import U
ABBR_PAT = re.compile(ur'\$(\w+)')
def import_resources(source, model):
doc = parse(source)
abbrs = {}
curr_context = None
def interpret(text):
'''
Expand any inline abbreviations
'''
... | [
"uche@ogbuji.net"
] | uche@ogbuji.net |
1b9ecb82ab0d25ca7b43913dd60328fe8e32b961 | 7cd6a7bc72f0026056a7238c0feea081bfff13a7 | /bioprocs/scripts/bedtools/pBedMerge2.py | 0cad29d63d845207c9d318e2bc8fe05b38e04506 | [
"MIT"
] | permissive | shijianasdf/biopipen | 8d963ccca38e2a9d7a46582a5eec45c38924655c | d53b78aa192fd56a5da457463b099b2aa833b284 | refs/heads/master | 2023-08-18T18:28:03.306877 | 2019-12-31T16:17:35 | 2019-12-31T16:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from os import remove
from diot import Diot
from bioprocs.utils import shell
infiles = {{i.infile | repr}}
params = {{args.params | repr}}
shell.TOOLS.bedtools = {{args.bedtools | quote}}
mergedtmp = '{{job.outdir}}/mergedtmp.bed'
mergedtmpsorted = '{{job.outdir}}/mergedtmp.sorted.bed'
shell.touch(mergedtmp)... | [
"pwwang@pwwang.com"
] | pwwang@pwwang.com |
1a1f99b49cd3ed29109b3836b02472705956efa0 | 64ec8731553aa08c33373b212bbe431b1a23b97c | /pyrolite/comp/impute.py | 4277eefbc4d72a71ffff3bedadc7227634b65867 | [
"BSD-3-Clause",
"MIT"
] | permissive | ChetanNathwani/pyrolite | 98947fde265b25beea839f24495d68bbdb726eed | 8de9c67855305115517418e127bf26de84ff062d | refs/heads/master | 2023-07-26T18:57:28.024540 | 2021-07-08T09:19:02 | 2021-07-08T09:19:02 | 367,300,779 | 0 | 0 | NOASSERTION | 2021-05-14T09:23:47 | 2021-05-14T08:35:50 | null | UTF-8 | Python | false | false | 12,872 | py | import numpy as np
import scipy.stats as stats
from pyrolite.util.math import nancov, augmented_covariance_matrix
from pyrolite.util.missing import md_pattern
from pyrolite.comp.codata import ALR, inverse_ALR, close
from ..util.log import Handle
logger = Handle(__name__)
def _little_sweep(G, k: int = 0, verify=False... | [
"morgan.j.williams@hotmail.com"
] | morgan.j.williams@hotmail.com |
640975f08674c83efe8755bb758ba48446158696 | cf025ea3bf079748472557304a290593c753b884 | /Algorithm/SWEA/6262_자료구조_셋,딕셔너리_10.py | 40b7bcf99fae6b8fc37ed3a3ba4719a6af111a16 | [] | no_license | Silentsoul04/my_software_study | 7dbb035ceea74f42c7ce2051b2320f6cae75ed88 | c27d33c57f59fe5244a1041c11bbd826dd481546 | refs/heads/master | 2023-03-29T02:43:40.861045 | 2019-07-10T08:09:55 | 2019-07-10T08:09:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | # 다음의 결과와 같이 입력된 문자열의 문자 빈도수를 구하는 프로그램을 작성하십시오.
# 입력 abcdefgabc
# 출력 a,2
# b,2
# c,2
# d,1
# e,1
# f,1
# g,1
# 1. 입력을 받을 변수를 만든다.
# 2. for 문으로 하나씩 돌리면서 if ~ in ~ 문을 사용하여서 안에 있으면 count += 1 해준다.
# 3. 기존 카운트는 1이다.
let = input('')
result = []
result_dict={}
for i in let:
count = 1
... | [
"pok_winter@naver.com"
] | pok_winter@naver.com |
479a03a522419f1263dedd06f820a1c28b981824 | 0f3a0be642cd6a2dd792c548cf7212176761e9b1 | /gms/Testing/Python/GrassAddons/r.div | 6c3df3c20b24c303dd3f2832df0a3c8e765f76c7 | [] | no_license | huhabla/wps-grass-bridge | 63a5d60735d372e295ec6adabe527eec9e72635a | aefdf1516a7517b1b745ec72e2d2481a78e10017 | refs/heads/master | 2021-01-10T10:10:34.246497 | 2014-01-22T23:40:58 | 2014-01-22T23:40:58 | 53,005,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | div | #!/usr/bin/env python
# written by Soeren Gebbert
#
# COPYRIGHT: (C) 1999,2007,2008 by the GRASS Development Team
#
# This program is free software under the GNU General Public
# License (>=v2). Read the file COPYING that comes with GRASS
# for details.
#
#% Module
#% de... | [
"soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202"
] | soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202 |
4610348b049027e26957c9ca019886c674c2de4b | 08b76ed99609725e89338795ddfa73d78ed1c444 | /caffe_io.py | 4e82dad847058461c79d94a90d677e08424bc339 | [] | no_license | savy-91/FoodClassifier | 3de043eadc6707275fa485844e00cacd8b039eeb | ae9af691d5e92f533d7120549260e626753f8af4 | refs/heads/master | 2021-01-18T05:50:38.444648 | 2015-02-12T12:07:39 | 2015-02-12T12:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,158 | py | """
COPYRIGHT
All contributions by the University of California:
Copyright (c) 2014, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, the respective contributors
All rights reserved.
Caffe uses a shared copyright model: each contributor holds cop... | [
"carpedm20@gmail.com"
] | carpedm20@gmail.com |
f6465e21a95ad29a4bec3a27b0ca14e5aabb9423 | 49813760337894f578bd6cf4f3ee76c32bd1d7ba | /guvi103.py | b6028d3e36bee2d8be768df15ace0e747d5db1df | [] | no_license | devigajsrr/codekata | e1256cf7fd88a0c7cefd02dea11305391143253a | a9ae003a7d3c8865b1d4e9aae73723a5fedf79be | refs/heads/master | 2020-05-23T01:01:09.927231 | 2019-07-20T11:31:51 | 2019-07-20T11:31:51 | 186,580,561 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | p=input()
i=0
print(p[i].upper(),end="")
i=1
while i <len(p):
if p[i]==" ":
print(p[i],end="")
i=i+1
print(p[i].upper(),end="")
i=i+1
else:
print(p[i],end="")
i=i+1 | [
"noreply@github.com"
] | devigajsrr.noreply@github.com |
c482bf725394373098018cc9af0c5ec410275459 | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/2061. Number of Spaces Cleaning Robot Cleaned.py | ef1f377dbb3ee36f58db1bdbc5b89c0e95f31fd7 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | class Solution:
def numberOfCleanRooms(self, room: List[List[int]]) -> int:
dxy = [(0, 1), (1, 0), (0, -1), (-1, 0)]
x = y = d = 0
visited = set()
cleaned = set()
M, N = len(room), len(room[0])
while (x, y, d) not in visited:
visited.add((x, y, d))
... | [
"19241008o"
] | 19241008o |
a5568833adcca73dfd18b0ca8a43ca1fa1af31b1 | 6e8d58340f2be5f00d55e2629052c0bbc9dcf390 | /scripts/extract_dataset_part.py | a87f5e829730283bf2a45558cfc6e123ec564a7b | [
"CC-BY-2.5",
"MIT"
] | permissive | JCVI-Cloud/galaxy-tools-prok | e57389750d33ac766e1658838cdb0aaf9a59c106 | 3c44ecaf4b2e1f2d7269eabef19cbd2e88b3a99c | refs/heads/master | 2021-05-02T06:23:05.414371 | 2014-03-21T18:12:43 | 2014-03-21T18:12:43 | 6,092,693 | 0 | 2 | NOASSERTION | 2020-07-25T20:38:17 | 2012-10-05T15:57:38 | Python | UTF-8 | Python | false | false | 1,900 | py | """
Reads a JSON file and uses it to call into a datatype class to extract
a subset of a dataset for processing.
Used by jobs that split large files into pieces to be processed concurrently
on a gid in a scatter-gather mode. This does part of the scatter.
"""
import os
import sys
import logging
logging.basicConfig()
... | [
"root@ip-10-118-137-129.ec2.internal"
] | root@ip-10-118-137-129.ec2.internal |
ab1020c3d922053238e615927dca7aea54bd99ab | c3e857b02695f5c9179d21fbac98966d71722fe9 | /backend/app/serializers.py | d4f587698267d638f0917e43a86a9bd159ba915d | [] | no_license | pytutorial/django_shop_spa | 93ed58d64ca03a96d1a64132023d8470f0d31581 | 65fe771dbac69b3240dcb1ffcf226d97804c7341 | refs/heads/main | 2023-07-13T15:55:44.463562 | 2021-08-17T05:10:27 | 2021-08-17T05:10:27 | 361,408,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | from rest_framework import serializers
from django.core.validators import MinValueValidator
from rest_framework.validators import UniqueValidator
from .models import *
class CategorySerializer(serializers.ModelSerializer):
class Meta:
model = Category
fields = '__all__'
extra_kwargs = {
... | [
"duongthanhtungvn01@gmail.com"
] | duongthanhtungvn01@gmail.com |
61500158f07611598d2450bcf35612ff30108d63 | 9dba277eeb0d5e9d2ac75e2e17ab5b5eda100612 | /exercises/1901040058/1001S02E05_stats_text.py.py | 0e05c14ff6ac238bb66d6d622ec1c7c5af8912a4 | [] | no_license | shen-huang/selfteaching-python-camp | e8410bfc06eca24ee2866c5d890fd063e9d4be89 | 459f90c9f09bd3a3df9e776fc64dfd64ac65f976 | refs/heads/master | 2022-05-02T05:39:08.932008 | 2022-03-17T07:56:30 | 2022-03-17T07:56:30 | 201,287,222 | 9 | 6 | null | 2019-08-08T15:34:26 | 2019-08-08T15:34:25 | null | UTF-8 | Python | false | false | 1,038 | py | import collections
text = '''
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break ... | [
"40155646+seven-tears@users.noreply.github.com"
] | 40155646+seven-tears@users.noreply.github.com |
db5244170741c3c62c1b85ac5f169c51bd53ba48 | 4a84dc50411dc2a423ba7408318522b7c26c9487 | /bzt/modules/java/__init__.py | ae2040e0bfec82d355ead39b62b2098b3112eb3b | [
"Apache-2.0"
] | permissive | Blazemeter/taurus | ffdef9b433d6754e5395f6b42fc6838ef817a763 | 81a114bb10ae0b0827079bb7acc2337db8f0e68d | refs/heads/master | 2023-08-19T00:19:12.036869 | 2023-08-14T11:45:09 | 2023-08-14T11:45:09 | 30,940,272 | 1,976 | 555 | Apache-2.0 | 2023-09-12T09:37:02 | 2015-02-17T22:05:08 | Python | UTF-8 | Python | false | false | 648 | py | """
Copyright 2018 BlazeMeter Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... | [
"apc4@ya.ru"
] | apc4@ya.ru |
a3dc6568e9b21a4819be46c77d42526ca141061e | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc075/B/4900304.py | f5d040a81eec59ae5168ef64bd9851190f596bf5 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | H, W = list(map(int, input().split(' ')))
S = [[] for i in range(H)]
for i in range(H):
S_temp = input()
for s in S_temp:
S[i].append(s)
T = [[0 for j in range(W)] for i in range(H)]
for i in range(H):
for j, sj in enumerate(S[i]):
if sj != '.':
T[i][j] = sj
... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
720bc42a09c230c2461963fd8ee828f8389c862e | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/client/apis/batch_v1_api.py | f7a922355d9771412bc38cfacca15927956c716a | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75,270 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
im... | [
"mehdy@google.com"
] | mehdy@google.com |
b008c640b830cae55cb6d92b3662307b273b8e45 | d3a9c3abf1821cb7e5326eeb272773f6649ba6a5 | /python/ray/train/tests/test_transformers_checkpoint.py | 557b237d7fa7590e754b225ea79b6e79d58cb321 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | vishalbelsare/ray | 692739f5865f5c50254ad9367b9c236526fedf8c | a0e318ba784d4cd5a53ed0e94bb21f299e2bdd5a | refs/heads/master | 2023-08-31T06:14:39.421512 | 2023-05-15T17:21:20 | 2023-05-15T17:21:20 | 120,221,098 | 0 | 1 | Apache-2.0 | 2023-07-01T07:27:57 | 2018-02-04T20:37:56 | Python | UTF-8 | Python | false | false | 2,095 | py | import os
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
from transformers.pipelines import pipeline
import ray
from ray.train.hf_transformers import (
TransformersCheckpoint,
TransformersPredictor,
)
from ray.train.tests.dummy_preprocessor import DummyPreprocessor
from test_transfo... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
d10ad9d62b3bfd21f8089ebd41f1381f5c0fef68 | 52585c8d95cef15199c18ba1a76899d2c31329f0 | /Doing Math with Python/ch2visualiztion data with graphs/i3making_points_on_graph.py | f4cad2c11bc28a70d478af6b450f62f52d9548e0 | [] | no_license | greatabel/PythonRepository | c7a952257303a21083ed7d535274c339362bd126 | 836fcdd3f5c1b150122302685104fe51b5ebe1a3 | refs/heads/master | 2023-08-30T15:56:05.376391 | 2023-08-26T03:34:14 | 2023-08-26T03:34:14 | 29,392,599 | 33 | 6 | null | 2023-02-14T13:33:21 | 2015-01-17T13:54:58 | Python | UTF-8 | Python | false | false | 121 | py | from pylab import plot, show
x_numbers = [1, 2, 3]
y_numbers = [2, 4, 6]
plot(x_numbers, y_numbers, marker='o')
show() | [
"greatabel1@126.com"
] | greatabel1@126.com |
b3b9d8716a93000f4837d9f6179e6e278cab74d3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /nzc3MX32Mwx4qAya3_11.py | 6097f5784b0326d302566d4d991956212003cb7c | [] | 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 | 751 | py | """
Write a function that reverses the sublist between the start and end index (
**inclusive** ). The rest of the list should be kept the same.
### Examples
ranged_reversal([1, 2, 3, 4, 5, 6], 1, 3) ➞ [1, 4, 3, 2, 5, 6]
ranged_reversal([1, 2, 3, 4, 5, 6], 0, 4) ➞ [5, 4, 3, 2, 1, 6]
ranged_rev... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9e3274da0524c73579dda279b2597939de9e8578 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/pandas/tests/indexes/datetimes/test_tools.py | f1aa1a92023f12c58dd16951de7fe0911e86f021 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 68,049 | py | """ test to_datetime """
import sys
import pytz
import pytest
import locale
import calendar
import dateutil
import numpy as np
from dateutil.parser import parse
from datetime import datetime, date, time
from distutils.version import LooseVersion
import pandas as pd
from pandas._libs import tslib
from p... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
c1c6b98950f8edde6acad21ec53bb172f58e709c | 1b78ca7f3250ebed418717c6ea28b5a77367f1b8 | /370.range-addition/range-addition.py | a97c2b0aff26945c6a9ef3d04923a63c6c6577f8 | [] | no_license | JaniceLC/lc-all-solutions | ced854f31b94f44c0b03a0677988805e3b9ee718 | 3f2a4ee8c09a8890423c6a22c73f470eccf979a2 | refs/heads/master | 2020-04-05T19:53:31.307528 | 2018-11-12T04:18:45 | 2018-11-12T04:18:45 | 157,155,285 | 0 | 2 | null | 2018-11-12T04:13:22 | 2018-11-12T04:13:22 | null | UTF-8 | Python | false | false | 560 | py | class Solution(object):
def getModifiedArray(self, length, updates):
"""
:type length: int
:type updates: List[List[int]]
:rtype: List[int]
"""
ans = [0] * length
for update in updates:
start, end, delta = update
ans[start] +=... | [
"jedihy@yis-macbook-pro.local"
] | jedihy@yis-macbook-pro.local |
91aeb90e4bd9e73f4aef0ce286ee2994a78f6b7d | be367c5e5c11284a3d9890610f8d7a08224b62a1 | /grpc_pytools/pythonic.py | 2b3c6c9825f34a9a3da585818c6e4551bcfe495d | [
"MIT"
] | permissive | hetuhui/grpc-pytools | 38992592be9595f22fa429b947dda8dc1e14c5dc | e1ae5a02b154074a32a1e5a65051cd9cd9380172 | refs/heads/master | 2020-12-02T07:59:36.887364 | 2017-05-24T12:54:51 | 2017-05-24T12:54:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,071 | py | # -*- coding: utf-8 -*-
"""Generate more Pythonic services for all gRPC services defined in the xx_pb2.py file.
Usage:
$ python -m grpc_pytools.pythonic -h
Example:
$ python -m grpc_pytools.pythonic --proto-ast-file=/path/to/xx_ast.json --pb2-module-name=python.path.to.xx_pb2
"""
import argparse
import sys
... | [
"luopeng.he@gmail.com"
] | luopeng.he@gmail.com |
9398646ae3d1879c47426cf2ec6c52498b03ab11 | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /smoke-test/tests/containers/containers_test.py | 575e3def6cf2328877e5fe77e81e892bf7d374e7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Python | false | false | 10,021 | py | import pytest
from tests.utils import delete_urns_from_file, get_frontend_url, ingest_file_via_rest
@pytest.fixture(scope="module", autouse=False)
def ingest_cleanup_data(request):
print("ingesting containers test data")
ingest_file_via_rest("tests/containers/data.json")
yield
print("removing containe... | [
"noreply@github.com"
] | RyanHolstien.noreply@github.com |
e6f0879307399a10b540914a279da0595718099c | 3c794fac47ca571cb61a1ba7bd941a84eaf70d22 | /scripts/npc/adin_enter.py | c6ab16a85c9bcc3218407777949158347346a996 | [
"MIT"
] | permissive | Rukh7427/v204.1 | dc393b92cb966ca299f6db10519e5b5c4ef68584 | 359d6575ef8256bb2d6df87bf4156c4608243232 | refs/heads/master | 2023-08-25T11:41:38.831773 | 2021-10-27T21:08:11 | 2021-10-27T21:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # Ardin (2101003) | The Town of Ariant (260000200)
duel = 3933
backStreet = 926000000
if sm.hasQuest(duel):
response = sm.sendAskYesNo("Are you ready to fight my other self?")
if response:
sm.sendNext("Good. I like your confidence.")
sm.warpInstanceIn(backStreet, False)
else:
sm.se... | [
"varenty.x@gmail.com"
] | varenty.x@gmail.com |
f64497c0b1f2bc7ac52ff209059a63c7f9f8062a | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/proprement.py | ef0207791945e4c844a3835fa0f7115ac4087a48 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('PettTHE.py', 1), ('WestJIT2.py', 1), ('BabbCEM.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
e55cdb3d377c87c023db7c77fe51ded81ea16bce | 5e43051cd107fc2604aa7a0f452345d781ed4f57 | /tests/test_convert.py | 85d4c83acb15a5b9cad5f5b9e80df1cc6b0d2c45 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | ossdev07/python-libarchive-c | 68b6b900660ce8bb1217fd10f9afc04f1d3be37a | 8d0bab4047c2d231703095c8222c1bbb29929189 | refs/heads/master | 2020-11-26T12:25:42.595232 | 2019-12-19T14:28:48 | 2019-12-19T14:28:48 | 229,071,123 | 0 | 0 | NOASSERTION | 2019-12-19T14:27:09 | 2019-12-19T14:27:08 | null | UTF-8 | Python | false | false | 784 | py | from __future__ import division, print_function, unicode_literals
from libarchive import memory_reader, memory_writer
from . import check_archive, treestat
def test_convert():
# Collect information on what should be in the archive
tree = treestat('libarchive')
# Create an archive of our libarchive/ di... | [
"changaco@changaco.oy.lc"
] | changaco@changaco.oy.lc |
081f015479a49440638b16d864fd4a2d342b6c48 | d68cb993f5011ac2f6fe6be298a14ba370d4a661 | /cleanrl/experiments/docker/aws/batch.py | d094575d9a35d1b735d38afe32775c2e3a16c07e | [
"MIT"
] | permissive | lydia99992/cleanrl | b6cb196a11730e89068a179d27ec99ccc85e9be1 | 418bfc01fe69712c5b617d49d810a1df7f4f0c14 | refs/heads/master | 2022-10-21T08:30:00.561062 | 2020-06-15T18:18:16 | 2020-06-15T18:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py | # pip install boto3
import boto3
import re
import time
import os
client = boto3.client('batch')
# get env variable values
wandb_key = os.environ['WANDB_KEY']
assert len(wandb_key) > 0, "set the environment variable `WANDB_KEY` to your WANDB API key, something like `export WANDB_KEY=fdsfdsfdsfads` "
# extract runs fro... | [
"costa.huang@outlook.com"
] | costa.huang@outlook.com |
0cabe0f0cd1822b5f94988256a25ecbc6c9b3329 | 55a273347cb103fe2b2704cb9653956956d0dd34 | /code/tmp_rtrip/mimetypes.py | 6b1109d439a5d475a7a995473c59a1282b65a8a9 | [
"MIT"
] | permissive | emilyemorehouse/ast-and-me | 4af1bc74fc967ea69ac1aed92664f6428acabe6a | 3f58117512e125e1ecbe3c72f2f0d26adb80b7b3 | refs/heads/master | 2022-11-18T03:50:36.505882 | 2018-05-12T17:53:44 | 2018-05-12T17:53:44 | 115,035,148 | 25 | 1 | MIT | 2022-11-04T11:36:43 | 2017-12-21T18:27:19 | Python | UTF-8 | Python | false | false | 18,458 | py | """Guess the MIME type of a file.
This module defines two useful functions:
guess_type(url, strict=True) -- guess the MIME type and encoding of a URL.
guess_extension(type, strict=True) -- guess the extension for a given MIME type.
It also contains the following, for tuning the behavior:
Data:
knownfiles -- list ... | [
"emily@cuttlesoft.com"
] | emily@cuttlesoft.com |
d73bc8e44066d9b9f111eddbfe7f789f6410e5a1 | a38180435ac5786185c0aa48891c0aed0ab9d72b | /S4/S4 Library/simulation/interactions/interaction_queue.py | a203504b7b16196a915600bc660d616c58e4d716 | [
"CC-BY-4.0"
] | permissive | NeonOcean/Environment | e190b6b09dd5dbecba0a38c497c01f84c6f9dc7d | ca658cf66e8fd6866c22a4a0136d415705b36d26 | refs/heads/master | 2022-12-03T13:17:00.100440 | 2021-01-09T23:26:55 | 2021-01-09T23:26:55 | 178,096,522 | 1 | 1 | CC-BY-4.0 | 2022-11-22T20:24:59 | 2019-03-28T00:38:17 | Python | UTF-8 | Python | false | false | 137,469 | py | from _weakrefset import WeakSet
from contextlib import contextmanager
import weakref
from carry.pick_up_sim_liability import PickUpSimLiability
from clock import ClockSpeedMode
from event_testing.resolver import InteractionResolver
from event_testing.results import TestResult
from interactions import ParticipantType, P... | [
"40919586+NeonOcean@users.noreply.github.com"
] | 40919586+NeonOcean@users.noreply.github.com |
e5748dd960a52f1da969ff3d73107cd9a7aec0ca | c59dd094c4f262683add929bb3a4d1137816b5c7 | /692. Top K Frequent Words.py | 2a29be438ddbb3db440b2d070386a8d84f53b18a | [] | no_license | thakur-nishant/LeetCode | 2cb81ee10f26f7f26df79573f3af8d224ec4acb8 | 9ac82100d8bd5618b22f24945c486c92f3e455d3 | refs/heads/master | 2021-06-21T16:44:58.405380 | 2019-06-05T06:45:15 | 2019-06-05T06:45:15 | 115,187,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | """
Given a non-empty list of words, return the k most frequent elements.
Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first.
Example 1:
Input: ["i", "love", "leetcode", "i", "love", "coding"], k = 2
Outpu... | [
"nt.nishantt@gmail.com"
] | nt.nishantt@gmail.com |
9f9372ab6920207d68c00f03b35675feec1e2770 | ff6f11f06fbe8f23962baf687950702e36dbc143 | /heatsequer/analysis/analyse.py | 777eb036bf5d102e7155afade8f1968c494e4b5f | [
"BSD-3-Clause"
] | permissive | tanaes/heatsequer | 86970a6bd49fa1f17b57dc1a49f23837d45141d9 | 35d5f8a4506bc5a0d375b1170bcc7483d7981513 | refs/heads/master | 2021-01-22T15:04:22.044894 | 2016-03-08T01:15:18 | 2016-03-08T01:15:18 | 44,138,126 | 0 | 0 | null | 2016-01-21T01:30:26 | 2015-10-12T22:40:02 | Python | UTF-8 | Python | false | false | 53,435 | py | #!/usr/bin/env python
"""
heatsequer analysis module
"""
# amnonscript
__version__ = "0.9"
import heatsequer as hs
import numpy as np
from scipy import stats
from scipy import spatial
from collections import defaultdict
import matplotlib as mpl
mpl.use('Qt4Agg')
import matplotlib.pyplot as plt
from matplotlib.pyp... | [
"amnonim@gmail.com"
] | amnonim@gmail.com |
4171aec8ca4971d823650fa62ca6a376e3279a1b | c3132612a7ac311e501e432e1a4c7592bbd7a713 | /day15/homework/Day15作业/01_作业-归属地查询.py | 077eeff90147ce87d6ca6e4c3d0011975b64da4f | [] | no_license | everqiujuan/python | 7b8e169107012c3d7829d4ebd9860482fc0d8fec | b0a98de943217e24da60f79dec4fe8ebf4f1c713 | refs/heads/master | 2020-06-21T16:57:22.260311 | 2019-07-18T05:58:44 | 2019-07-18T05:58:44 | 184,990,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py |
#
# 题目:创建函数, 从文件guishudi.txt中获取数据,输入完整手机号11位,匹配前7位,输出对应的地址和卡类型
#
# 60268|1340475|0431|吉林省长春市|吉林移动大众卡
# 手机号前7位 :1340475
#
| [
"1748636236@qq.com"
] | 1748636236@qq.com |
cca360240db1d51f3015871069b76a41ecdfe8e6 | c4dce67928657703f7d0a45b2e67ae4f96106ad8 | /Python-Crash-Course/第一部分 基础知识/第03章 列表简介/3-9 晚餐嘉宾.py | 2f6e1ba451089c2ef0825d9601ef65f9e41fb977 | [] | no_license | YilK/Notes | fafd30ff9ddf1ebfd22c0c521a5fad5df9f31bb0 | c14cefaf8e37c66afeaf0a77ac13cdce59e06fbe | refs/heads/master | 2023-01-29T11:24:56.781941 | 2020-12-08T13:29:28 | 2020-12-08T13:29:28 | 155,809,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | '''
在完成练习3-4~练习3-7时编写的程序之一中,
使用len() 打印一条消息,指出你邀请了多少位嘉宾来与你共进晚餐
'''
people = ['hjk', 'wy', 'llq', 'ghd', 'wll']
print(people)
print('一共有'+str(len(people))+'个人参加')
| [
"huangjk0311@126.com"
] | huangjk0311@126.com |
0d4f96ebb65447ef9aa33bc9aa761a8c3237c75f | 955f9d3fb34af54de2f046d17bbac11c1474819e | /abc061/a.py | a685ff659ff63d5f8482c10dbdfeb209dbfaa5f3 | [] | no_license | shimewtr/AtCoderPracticePython | 5bb4c28119fced2d111bd1810e0e290f25b6a191 | f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6 | refs/heads/master | 2023-01-12T17:28:44.770138 | 2020-11-19T22:50:22 | 2020-11-19T22:50:22 | 204,830,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
a, b, c = map(int, input().split())
if a <= c <= b:
print("Yes")
else:
print("No")
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
... | [
"wawawatataru@gmail.com"
] | wawawatataru@gmail.com |
b750f940171352fe36faeabbb02eab714bff1714 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_62/78.py | f1d50799051e5bd4ab24b79ce5af887000313cbf | [] | 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 | 613 | py | inf = open('a-large.in', 'r')
outf = open('wireAns.txt', 'w')
T = int(inf.readline())
for i in xrange(T):
relation = {}
A = []
B = []
ans = 0
counting = [1 for j in xrange(10001)]
c = inf.readline()
for j in xrange(int(c)):
d = inf.readline()
d = map(int, d.split())
relation[d[0]] = d[1]
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
1b7b2cfc11d210d3d8660e1302f6368a42202169 | 7b4cbaa1e7bab897e34acba06f73ac17760d394a | /sdks/python/client/argo_workflows/model/event_series.py | ed02b56037cc498546cae274605eb8cb02c10381 | [
"Apache-2.0"
] | permissive | nHurD/argo | 0fab7f56179c848ad8a77a9f8981cb62b4a71d09 | f4a65b11a184f7429d0615a6fa65bc2cea4cc425 | refs/heads/master | 2023-01-13T04:39:54.793473 | 2022-12-18T04:48:37 | 2022-12-18T04:48:37 | 227,931,854 | 0 | 2 | Apache-2.0 | 2019-12-13T22:24:19 | 2019-12-13T22:24:18 | null | UTF-8 | Python | false | false | 11,655 | py | """
Argo Workflows API
Argo Workflows is an open source container-native workflow engine for orchestrating parallel jobs on Kubernetes. For more information, please see https://argoproj.github.io/argo-workflows/ # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-g... | [
"noreply@github.com"
] | nHurD.noreply@github.com |
76553dabff3bcb028e9a82c2b66e02d45671a339 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/rooms_to_go_us.py | dfd42d21dfbcb05a6d9c0e2530d56ce8c3961cb6 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 432 | py | from locations.storefinders.stockist import StockistSpider
class RoomsToGoUSSpider(StockistSpider):
name = "rooms_to_go_us"
item_attributes = {"brand": "Rooms To Go", "brand_wikidata": "Q7366329"}
key = "u11672"
def parse_item(self, item, location):
if "RTG KIDS" in item["name"].upper():
... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
d8e8f0c4b0313f9d32a855fe2f5f2a04a81404d4 | 66e048e60bcd5687b1a59749b1e75425814f1c13 | /psmdlsyncer/utils/Singleton.py | a8f7ac6666659f4e5b9125fca816209d84e8e31f | [] | no_license | brainysmurf/ssispowerschoolsyncer | 5df310e5cabc262942c474c618f2e90fb3ea65d1 | 0ae7eae1adb5e0e433bb0bd0b140fa15ae0422c4 | refs/heads/master | 2021-01-24T09:51:56.759213 | 2017-02-16T12:00:57 | 2017-02-16T12:00:57 | 5,550,371 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | class Singleton:
"""
A non-thread-safe helper class to ease implementing singletons.
This should be used as a decorator -- not a metaclass -- to the
class that should be a singleton.
The decorated class can define one `__init__` function that
takes only the `self` argument. Other than that, the... | [
"amorris@mistermorris.com"
] | amorris@mistermorris.com |
80c42fe9c031b917cbb03938e019148474a52da6 | a451c9f6b4e0fad4efdc7440e6a180fbed580a15 | /DB_lab1/database.py | 9b3da78774924f41a863b6d31de9bbdd7e0d78e2 | [] | no_license | serhiisad/DB-labs-2018 | 0124c6b997ad641fb952e62f9caee6e63ff0459f | 8316d2ce6a7cfa2b45a567d4e981260435893d44 | refs/heads/master | 2020-03-29T19:51:52.931565 | 2018-12-27T20:54:52 | 2018-12-27T20:54:52 | 150,284,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,910 | py | import psycopg2
from pprint import pprint
import datetime
from entities.entities import *
import pandas
from texttable import Texttable
class Database:
def __init__(self):
try:
self.connection = psycopg2.connect("dbname='test_db' user='postgres' host='localhost' "
... | [
"serhiisad.kpi@gmail.com"
] | serhiisad.kpi@gmail.com |
a4fcf78fb6f9b1a710d4b307e24a279368f9d5b0 | 7981ba3bdf66d8844ff8fa6263859dc8e5cff8ad | /aliennorDjangoBackend/ecocases/admin.py | c67fbb373e91c8e295a46d2da58dd92b200cd2ae | [] | no_license | phamcong/aliennor | 456e3b4c8aac866b8e5deaf593c10e2d6ce28aac | f4862951d94e10c4599a5084456c0a84398d04ae | refs/heads/master | 2021-04-26T23:44:25.582888 | 2018-07-12T00:33:39 | 2018-07-12T00:33:39 | 123,848,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from django.contrib import admin
from django.contrib.auth.models import Group, User
from .models import *
# Register your models here.
class Ecocase2ESMInline(admin.TabularInline):
model = Ecocase2ESM
extra = 0
class EcocaseImageInline(admin.TabularInline):
model = EcocaseImage
extra = 0
class EcocaseInline(... | [
"ccuong.ph@gmail.com"
] | ccuong.ph@gmail.com |
7a656599c51b12d4c9c7bddb2b3b10d1d57cb87a | e5fa113d598f3289c0ff7ef957f7c8eae0959459 | /test_generate.py | 09233031b96d60fafa64bca4bae15ffd9c139add | [
"MIT"
] | permissive | jtauber/greek-inflexion | 41d3a98e0c8b232892cf4556615c2394175a6bcd | 872e59507003b17b746f78d85ee1f69c3edf7dcf | refs/heads/master | 2023-01-23T18:52:29.507336 | 2020-03-14T03:11:21 | 2020-03-14T03:11:21 | 64,105,348 | 34 | 13 | MIT | 2023-01-21T21:34:52 | 2016-07-25T05:12:54 | Python | UTF-8 | Python | false | false | 4,353 | py | import yaml
from accent import strip_length
from greek_inflexion import GreekInflexion
def output_detail(detail):
print(" -")
if "stem" in detail:
print(" stem: {}".format(detail["stem"]))
if "stemming" in detail:
print(" stemming:")
print(" ... | [
"jtauber@jtauber.com"
] | jtauber@jtauber.com |
59ff6991faf38329b9e67effef2771e874a6ff3a | b64fcb9da80d12c52bd24a7a1b046ed9952b0026 | /tests/integration/go_ethereum/test_goethereum_ws.py | 7386d4c4b4eb9b9103923f9df758cfa4b1fc878e | [
"MIT"
] | permissive | PlatONnetwork/client-sdk-python | e59f44a77690806c8763ed6db938ed8447d42417 | 94ad57bb34b5ee7bb314ac858071686382c55402 | refs/heads/master | 2022-07-09T08:49:07.312759 | 2021-12-24T08:15:46 | 2021-12-24T08:15:46 | 173,032,954 | 7 | 16 | MIT | 2022-08-31T02:19:42 | 2019-02-28T03:18:03 | Python | UTF-8 | Python | false | false | 1,538 | py | import pytest
from tests.integration.common import (
MiscWebsocketTest,
)
from tests.utils import (
get_open_port,
wait_for_ws,
)
from client_sdk_python import Web3
from .common import (
GoEthereumEthModuleTest,
GoEthereumNetModuleTest,
GoEthereumPersonalModuleTest,
GoEthereumTest,
GoE... | [
"hietel366435@163.com"
] | hietel366435@163.com |
82fb434497b50d6e2fd09a3756b98dd4e8610c7a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /mHLAmj4vmRuXrT8Nb_18.py | 05dc923d40d4c6ecf82486ec875358bd9209cb2b | [] | 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 | 763 | py | """
Write a function that returns `True` if two arrays, when combined, form a
**consecutive sequence**. A consecutive sequence is a sequence without any
gaps in the integers, e.g. `1, 2, 3, 4, 5` is a consecutive sequence, but `1,
2, 4, 5` is not.
### Examples
consecutive_combo([7, 4, 5, 1], [2, 3, 6]) ➞ True
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3bb006d850109a97c63df88ca05a31cdc0f47bfd | 9b428d40e0966136f82351e06abd9a77eb9576dd | /Python fundamentals/lamdas.py | 47ab3050f105ec5f57ea5b738b7c1a9384f7eb9f | [] | no_license | CEsarABC/Python-CI- | a438d64d689d9cf428b2b3577f4246e43046502b | 0455e61f72c3a1b747759030e685239be83e73a6 | refs/heads/master | 2021-06-06T09:18:00.944074 | 2020-04-16T10:35:35 | 2020-04-16T10:35:35 | 149,114,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | '''anonimus functions'''
def square(x):
return x**2
print(square(4))
result = (lambda x: x**2)(16)
print(result)
calculation = (lambda x: x*(x+5)**2)(5)
print(calculation)
| [
"cesarbworkmail@gmail.com"
] | cesarbworkmail@gmail.com |
ab3e49c01494c2c99fe42e7bdc73c6c6cdbfd064 | 74c6059e165087cc21a3907ba72222df10cdfc24 | /reviewboard/reviews/management/commands/fixscreenshots.py | 41ee7ace3af048784f70b4da7aa21a19b402f75a | [
"MIT"
] | permissive | dorothyk/reviewboard | 0e6122899b08df2ec1557041cc8046268e87b64a | 2095bcf4e36961ad12f8917a14f5670a4ec1408c | refs/heads/master | 2020-05-29T14:10:42.852562 | 2011-02-09T09:26:35 | 2011-02-09T09:26:48 | 1,347,965 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | import os
from django.core.management.base import NoArgsCommand
from reviews.models import Screenshot
class Command(NoArgsCommand):
def handle_noargs(self, **options):
prefix = os.path.join("images", "uploaded")
new_prefix = os.path.join("uploaded", "images")
for screenshot in Screensho... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
4f4d01c24a10969478ec10e78cda46a0e660a756 | 66e77a30b0764530861ff62afbb97f568e37e242 | /backend/round_water_26385/wsgi.py | 0be678841d3428ed46e21ac62927d314ddbe5448 | [] | no_license | crowdbotics-apps/round-water-26385 | 2dd2eadf0d6537e9aea1b8089d0aa1794f8ec7be | 0204f977276b0e2254b549802dcc4b0749b6a1a5 | refs/heads/master | 2023-04-06T02:15:59.634730 | 2021-05-08T13:46:32 | 2021-05-08T13:46:32 | 365,525,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """
WSGI config for round_water_26385 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJ... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
15a0fa186bf529b806bf492aa93e66da222504d8 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc004/B/4553996.py | d9a7fb61f29fa52e51be02d6af1e5c62e279b5f4 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | N, x = map(int, input().split())
A = [int(a) for a in input().split()]
M = [a for a in A]
mi = 10**100
for j in range(N):
s = 0
for i in range(N):
s += M[i]
mi = min(mi, s+x*j)
M = [min(M[i], A[(i-j-1) % N]) for i in range(N)]
print(mi) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.