blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b84d3b11fa6dfbb8473a9b3f047db072ab6e4e1c | 733496067584ee32eccc333056c82d60f673f211 | /idfy_rest_client/models/lei_extension.py | 1450e531f5c6749b7d897d4b93f8308aab8171d1 | [
"MIT"
] | permissive | dealflowteam/Idfy | 90ee5fefaa5283ce7dd3bcee72ace4615ffd15d2 | fa3918a6c54ea0eedb9146578645b7eb1755b642 | refs/heads/master | 2020-03-07T09:11:15.410502 | 2018-03-30T08:12:40 | 2018-03-30T08:12:40 | 127,400,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # -*- coding: utf-8 -*-
"""
idfy_rest_client.models.lei_extension
This file was automatically generated for Idfy by APIMATIC v2.0 ( https://apimatic.io )
"""
import idfy_rest_client.models.lei_normalizations
class LeiExtension(object):
"""Implementation of the 'LeiExtension' model.
TOD... | [
"runes@unipluss.no"
] | runes@unipluss.no |
b04fa65ba521b2aebad06173fd2eff8204459b7f | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/io/test_spss.py | 0cf9168a66d613bfa9649ed5cfc46d95a4139ef2 | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:ee5880b545343d135efe088b0a70ff099001d051e96f7319293415e05e61e458
size 2821
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
7ae557cb0c4814beab359729b85cd437ee2b1ccc | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/81640a2c67e9ab8088a72ca02d8d58ecf41abcd1-<set_bios_attributes>-fix.py | 0206fc5bbd8980d4bd0678cff66cf7da3a9a9cef | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | def set_bios_attributes(self, attr):
result = {
}
key = 'Bios'
response = self.get_request((self.root_uri + self.systems_uri))
if (response['ret'] is False):
return response
result['ret'] = True
data = response['data']
if (key not in data):
return {
'... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
ba5e3d97a8dc58bac13af5ebf5ddf5edc2160f80 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02748/s008643234.py | bb6afcb3d80563b76660339227a400095939720e | [] | 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 | 296 | py | a,b,m = map(int,input().split())
a_list = [int(x.strip()) for x in input().split()]
b_list = [int(x.strip()) for x in input().split()]
ans = min(a_list)+min(b_list)
for i in range(m):
ai,bi,ci = map(int,input().split())
ch = a_list[ai-1]+b_list[bi-1]-ci
if ch < ans:
ans = ch
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
51dd909f38145255ef950fa9793e47e41c6a99a5 | 0b7e418fc63cf0ed65c0feeee6b749a89e7f4972 | /untitled/app.py | c070463e6be460209603a911dd7193811fe99409 | [] | no_license | pipoted/bs | 7e7a46942d7b37cada3de8e834c6c67050733505 | a4091eb54dbe74e86defdee89f729e3c73ad3ed1 | refs/heads/master | 2020-04-28T06:36:44.745625 | 2019-04-18T04:57:01 | 2019-04-18T04:57:01 | 175,065,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/', methods=['GET', 'POST'])
def hello_world():
if request.method == "POST":
print('test')
return render_template('test.html')
else:
return render_template('test.html')
if __name__ == '__main__':
... | [
"32660879+pipoted@users.noreply.github.com"
] | 32660879+pipoted@users.noreply.github.com |
d864a2019c0937083b6ed018af1078af20af7e7f | aae8d348ea13956cfa6136ad711b0d3a40116101 | /test_client.py | 91ef95c8bcc222e9086805621489b79c860293b9 | [
"MIT"
] | permissive | TrendingTechnology/supabase-client | b15b76cb1135abcb239907690351e9cd3f97f8d0 | 5ba6b9c5753d20c506cd5f7f6abbd887dc29295b | refs/heads/master | 2023-07-06T12:32:38.502579 | 2021-08-08T13:35:50 | 2021-08-08T13:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,579 | py | import asyncio
import unittest
from supabase_client.supabase_client import Client
from dotenv import dotenv_values
config = dotenv_values(".env")
def async_test(async_func):
def wrapper(*args, **kwargs):
loop = asyncio.get_event_loop()
loop.run_until_complete(async_func(*args, **kwargs... | [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
1933bbc98fbf6522dea9c65b084743453763dc35 | 59fbeea017110472a788218db3c6459e9130c7fe | /watering-plants-ii/watering-plants-ii.py | 45a13807ec424f5749b3d29c04c8beef1be12a74 | [] | no_license | niufenjujuexianhua/Leetcode | 82b55d9382bc9f63f4d9da9431194e20a4d299f1 | 542c99e038d21429853515f62af51a77deaa4d9c | refs/heads/master | 2022-04-27T16:55:00.035969 | 2022-03-10T01:10:04 | 2022-03-10T01:10:04 | 79,742,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | # Alice and Bob want to water n plants in their garden. The plants are arranged
# in a row and are labeled from 0 to n - 1 from left to right where the iᵗʰ plant
# is located at x = i.
#
# Each plant needs a specific amount of water. Alice and Bob have a watering
# can each, initially full. They water the plants ... | [
"wutuo123@yeah.net"
] | wutuo123@yeah.net |
8ba9ee326fed8b16c26ba53c76e76b2f9a085003 | 6b5242766c7c199d82064f7b7b244ed16fa4275c | /venv/bin/pip | 70e778de2da6d5e7974433f74fa165b38be7bdb8 | [] | no_license | uuboyscy/tibame-db105 | 55822b30bb4b1b30d759e6010f83944be7f1cbaf | 2a6b3ebb0aee49369621da099fa457dcb5ea48f6 | refs/heads/master | 2022-11-21T09:57:00.086000 | 2019-11-10T14:20:33 | 2019-11-10T14:20:33 | 219,315,128 | 1 | 1 | null | 2022-11-04T05:40:00 | 2019-11-03T14:41:29 | Python | UTF-8 | Python | false | false | 410 | #!/Users/uuboy.scy/PycharmProjects/tibame-db105/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"aegis12321@gmail.com"
] | aegis12321@gmail.com | |
f9761d545344e24746558d32496fc7ac83279c2b | 696f501c25bb5059c8f6d184cff2e17e1da164a7 | /testing/testing_journaling.py | 253b018c560fc2855cd171b87e7bbaa49520113d | [
"MIT"
] | permissive | ibosity/flow-dashboard | 92a1a515f23ff4d684d93067c79581c22c2e109c | db1e9d3cc91bbbf5c41758710b4837128269bff3 | refs/heads/master | 2020-03-19T16:02:25.239699 | 2018-06-03T19:00:13 | 2018-06-03T19:00:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | #!/usr/bin/python
# -*- coding: utf8 -*-
from google.appengine.api import memcache
from google.appengine.ext import db
from google.appengine.ext import testbed
from datetime import datetime, timedelta
from google.appengine.ext import deferred
from base_test_case import BaseTestCase
from models import JournalTag, MiniJ... | [
"onejgordon@gmail.com"
] | onejgordon@gmail.com |
f44cfb7716ed0ebdfc46ee6555adc9770d503a4b | c6b38205d6c722b4646f5410b8d9bd5f3b3ffeb0 | /account/migrations/0007_auto_20200218_1625.py | d1da78c25d42df4a988730a7c2aef9b44bc8f67e | [] | no_license | MehdioKhan/proman-back | bd6f3be0cec34236c63260eaf1215bd9c538e89c | 2c894df943d89aaebcbaf5717958fd7962fd897b | refs/heads/master | 2022-12-21T13:43:40.117989 | 2020-02-18T16:29:34 | 2020-02-18T16:29:34 | 230,323,480 | 0 | 0 | null | 2021-09-22T18:26:34 | 2019-12-26T20:20:14 | Python | UTF-8 | Python | false | false | 1,068 | py | # Generated by Django 3.0 on 2020-02-18 16:25
import django.contrib.postgres.fields
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('account', '0006_auto_20200217_0659'),
]
operations = [
migrations.AlterField(
model_name='ro... | [
"mehdiokhan@gmail.com"
] | mehdiokhan@gmail.com |
fd967bef434e7a35d437f8eab4c13f0a6d4c05bb | c819e434d642670ad02c1b3919a5300568dc8b99 | /lib/python3.8/site-packages/ib_common/constants/language_choices.py | 726d8139589f0450579c41ea8cc5e185684e2de8 | [] | no_license | ushatirumalasetty/venv | c8dcf002c8259501cb745b65d38fe753d4ae2da1 | 7c892873c1221a816a62cdba0fb9ad491cfba261 | refs/heads/master | 2022-11-27T18:54:54.643274 | 2020-07-23T09:54:42 | 2020-07-23T09:54:42 | 281,914,259 | 0 | 1 | null | 2022-11-20T15:47:34 | 2020-07-23T09:54:18 | Python | UTF-8 | Python | false | false | 656 | py | from enum import Enum
from .base_enum_class import BaseEnumClass
__author__ = 'vedavidh'
class LanguageEnum(BaseEnumClass, Enum):
ENGLISH = 'ENGLISH'
HINDI = 'HINDI'
TELUGU = 'TELUGU'
TAMIL = 'TAMIL'
KANNADA = 'KANNADA'
class Languages(BaseEnumClass, Enum):
"""
Enum class representing a... | [
"rayvaleshusha@gmail.com"
] | rayvaleshusha@gmail.com |
dc75f176215a65bfeed775933dcc25c9bfd0a06f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02771/s302588631.py | 3c08a44ee3a970eb4bad4bd40e4b66271cd4ab8b | [] | 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 | 128 | py | A,B,C=map(int,input().split())
if (A==B and A!=C) or (B==C and B!=A) or (C==A and C!=B):
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cc6d22ecfcd67fde6b613179f16017076a966161 | 17a3418a6143ea2d953cf6509aeca7cc6e074686 | /Final-Project/backend/venv/bin/aws_completer | 3a97357ae88d3f6bd91dfee2589a1bd515f52d17 | [] | no_license | francolmenar-USYD/Internet-Software-Platforms | addb69a5582a63877e5f3408d64485a7ca942721 | 9e82ab6e7d0f8d4b3d55789cf5cfcd8e524a85df | refs/heads/master | 2022-04-22T02:07:25.419086 | 2020-04-22T10:02:43 | 2020-04-22T10:02:43 | 256,714,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | #!/mnt/c/Shared/ELEC3609/bird-repo/backend/venv/bin/python3
# Copyright 2012 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
# http://... | [
"francolmenar@outlook.es"
] | francolmenar@outlook.es | |
72848852e83be523f39f31f32ac0dcfc34edae11 | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /AE_Datasets/R_A/datasets/CWRUFFT.py | 254be0baee6bfeaa9abd1637485dccf4ee008772 | [
"MIT"
] | permissive | wuyou33/DL-based-Intelligent-Diagnosis-Benchmark | eba2ce6f948b5abe68069e749f64501a32e1d7ca | e534f925cf454d07352f7ef82d75a8d6dac5355c | refs/heads/master | 2021-01-02T15:06:29.041349 | 2019-12-28T21:47:21 | 2019-12-28T21:47:21 | 239,673,952 | 1 | 0 | MIT | 2020-02-11T04:15:21 | 2020-02-11T04:15:20 | null | UTF-8 | Python | false | false | 5,624 | py | import os
import torch
import numpy as np
import pandas as pd
from scipy.io import loadmat
from sklearn.model_selection import train_test_split
from datasets.SequenceDatasets import dataset
from datasets.sequence_aug import *
from tqdm import tqdm
#Digital data was collected at 12,000 samples per second
s... | [
"646032073@qq.com"
] | 646032073@qq.com |
0c1c7c59a90d3a47d0f88a3cbbd025f0cc467d3a | 74482894c61156c13902044b4d39917df8ed9551 | /cryptoapis/model/validate_address_request_body_data_item.py | 734ae14dc2265ee6ebf43f95b063cbf521ca71fa | [
"MIT"
] | permissive | xan187/Crypto_APIs_2.0_SDK_Python | bb8898556ba014cc7a4dd31b10e24bec23b74a19 | a56c75df54ef037b39be1315ed6e54de35bed55b | refs/heads/main | 2023-06-22T15:45:08.273635 | 2021-07-21T03:41:05 | 2021-07-21T03:41:05 | 387,982,780 | 1 | 0 | NOASSERTION | 2021-07-21T03:35:29 | 2021-07-21T03:35:29 | null | UTF-8 | Python | false | false | 7,042 | py | """
CryptoAPIs
Crypto APIs 2.0 is a complex and innovative infrastructure layer that radically simplifies the development of any Blockchain and Crypto related applications. Organized around REST, Crypto APIs 2.0 can assist both novice Bitcoin/Ethereum enthusiasts and crypto experts with the development of thei... | [
"kristiyan.ivanov@menasoftware.com"
] | kristiyan.ivanov@menasoftware.com |
80faed9b37a683651a800576bdc93c0757087338 | 6b19ed8845f7cb020ad49da57a0c0fe85314a274 | /zerver/migrations/0170_submessage.py | 751932249a3011674f642f189788660cb10396ba | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | jahau/zulip | eb4da13858892065591caced88fc9a086fa0e0d2 | 51a8873579b9d4bb95219cd4a5c859fa972fa06b | refs/heads/master | 2021-05-18T03:44:32.003307 | 2020-03-27T22:29:55 | 2020-03-28T19:04:36 | 251,087,399 | 1 | 0 | Apache-2.0 | 2020-03-29T17:11:42 | 2020-03-29T17:11:42 | null | UTF-8 | Python | false | false | 931 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-01-26 21:54
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('zerver', '0169_stream_is_a... | [
"tabbott@zulipchat.com"
] | tabbott@zulipchat.com |
a9cbb2646e980b7d6c69201039cc77287c106129 | a59dcdb8e8b963a5082d4244889b82a4379510f6 | /bemani/tests/test_CardCipher.py | b290ec9ee4bbd90cdec566f7689dae3218fe85c2 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | vangar/bemaniutils | 9fdda035eb29e5e0b874d475fdbfdc8b99aeb003 | 284153ef2e2e40014656fbfeb254c05f3a8c61e8 | refs/heads/trunk | 2023-04-04T04:00:21.088088 | 2023-02-17T03:32:27 | 2023-02-17T03:40:07 | 332,388,243 | 1 | 0 | null | 2021-01-24T07:07:34 | 2021-01-24T07:07:33 | null | UTF-8 | Python | false | false | 1,596 | py | # vim: set fileencoding=utf-8
import unittest
from bemani.common import CardCipher
class TestCardCipher(unittest.TestCase):
def test_internal_cipher(self) -> None:
test_ciphers = [
(
[0x68, 0xFC, 0xA5, 0x27, 0x00, 0x01, 0x04, 0xE0],
[0xC7, 0xD0, 0xB3, 0x85, 0xA... | [
"dragonminded@dragonminded.com"
] | dragonminded@dragonminded.com |
154cc575312b41fe86166cc220dbc83fdd0a36cd | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/fishnet99/src/config.py | 09542e1e0df894872cd2291de2ec208e8be86557 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 1,681 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
15d9fcafc6d3e710f817f1f63f034500a2afd560 | f4bc045760aa9017ff08dfabd7eb8dd2134e9da8 | /src/security/errorHandlers.py | e38e1dcbbad4081d13de896d04afde638fd374be | [
"MIT"
] | permissive | nagasudhirpulla/wrldc_mis_flask_ui | 196aab28eb1120e682f2d58c01b1261236da2145 | fc438a01ba29200591f9f1ae53fab3d716169ffd | refs/heads/master | 2023-03-10T22:31:07.317901 | 2021-02-25T05:44:55 | 2021-02-25T05:44:55 | 291,735,397 | 0 | 3 | MIT | 2020-12-07T06:16:39 | 2020-08-31T14:19:26 | Python | UTF-8 | Python | false | false | 674 | py | from flask import render_template
def page_forbidden(err):
return render_template('message.html.j2', title='403 Forbidden',
message='You must be logged in to access this content.'), 403
def page_unauthorized(err):
return render_template('message.html.j2', title='401 Unauthorized',... | [
"nagasudhirpulla@gmail.com"
] | nagasudhirpulla@gmail.com |
3b362a09495427acbe39d45d7eb9a5175fe36c3b | 83179c14ae81a2ed0733812195747340c9ef0555 | /Takahashi_Unevoleved.py | 9b54d332f59c6ad8eaf04e41b44dac034d700298 | [] | no_license | susami-jpg/atcoder_solved_probrem | 20f90ba2e3238c6857e370ed04a8407271ccc36f | 741a4acd79f637d6794c4dbcc2cad1c601b749fc | refs/heads/master | 2023-07-21T12:38:27.460309 | 2021-08-29T10:26:31 | 2021-08-29T10:26:31 | 375,561,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jun 19 00:37:30 2021
@author: kazuk
"""
x, y, a, b = map(int, input().split())
def is_ok(t):
cost = x
cnt = 0
while 1:
if cnt == t:
break
if cost * a < b:
cost *= a
cnt += 1
else:
... | [
"kazuki_susami@icloud.com"
] | kazuki_susami@icloud.com |
91f123874a66cec1442164b3cc12adf9525b11a9 | 2fa102b20ea99d796cc3677c9305f1a80be18e6b | /cf_977_a.py | 6432622d333ee0d5453c12b811960b283a09f017 | [] | no_license | pronob1010/Codeforces_Solve | e5186b2379230790459328964d291f6b40a4bb07 | 457b92879a04f30aa0003626ead865b0583edeb2 | refs/heads/master | 2023-03-12T11:38:31.114189 | 2021-03-03T05:49:17 | 2021-03-03T05:49:17 | 302,124,730 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | a,b = list(map(int, input().split()))
for i in range(b):
c = a%10
if c == 0:
a //= 10
else:
a = a - 1
print(a) | [
"pronobmozumder.info@gmail.com"
] | pronobmozumder.info@gmail.com |
f55908dbef33fc48ad2e595c0ff179d825e7d76f | 3ca1a812ab4e7278e88a9bc6a183e341803cb9ad | /2022/06/main.py | cbf8d1ad542bad6d1a84954a42298b0f10a5285a | [] | no_license | acarlson99/advent-of-code | 11608a436e3fd4eadc8a3960811b6e495859d024 | be7c0cf337a5c70be12df6812cbddb48d7207495 | refs/heads/master | 2023-05-25T14:57:28.883802 | 2023-05-20T01:36:48 | 2023-05-20T01:36:48 | 225,130,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #!/usr/bin/env python3
import fileinput
if __name__=='__main__':
lines = []
for line in fileinput.input():
lines.append(line.strip())
s = lines[0]
print(s)
for i in range(4,len(s)):
rl = s[i-4:i]
if len(set(rl))==4:
print(rl)
print(set(rl))
... | [
"a@a.a"
] | a@a.a |
7870dadc7fcf4f57d56e72d69ef936c12785c0d2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02725/s087554992.py | 731dabb171585e41f2a3d2db76f359d80c174b9b | [] | 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 | 185 | py | import sys
from array import array
read = sys.stdin.buffer.read
k, n, *A = map(int, read().split())
A += [k + A[0]]
far = max(array("l", [x - y for x, y in zip(A[1:], A)]))
print(k-far) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e445505e34d8a75cf9f93fe8268057531f532fa4 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/common/Lib/ctypes/test/test_errcheck.py | e5cdb39ddec7c316011427cc60216299774d573d | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 153 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/common/Lib/ctypes/test/test_errcheck.py
import sys
from ctypes import *
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
842aaeca36cb8fe937d897dc527eb11e4f3aafd3 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /Luhb2KStP2wiX6FMp_7.py | 03174c243680289a3989162ffdf71abc0d1a5d1b | [] | 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 | 259 | py | """
Create a function to return the amount of potatoes there are in a string.
### Examples
potatoes("potato") ➞ 1
potatoes("potatopotato") ➞ 2
potatoes("potatoapple") ➞ 1
### Notes
N/A
"""
potatoes=lambda p:p.count('p')
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f46d78197be08429fc60e17a7d504549e4bbc2ad | e9f9e38f935748ee043647452a2bfb949c30ff46 | /backend/event/migrations/0001_initial.py | d859b916059be0a1c063e392df533f02287ed429 | [] | no_license | crowdbotics-apps/test2-19679 | 19ff09828e3c4241bc48ff827cf22586b68718d5 | 788c724e16b87cbf21d980b1baf777f84751d388 | refs/heads/master | 2022-12-01T04:41:52.053674 | 2020-08-20T08:10:21 | 2020-08-20T08:10:21 | 288,945,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,766 | py | # Generated by Django 2.2.15 on 2020-08-20 08:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b5555f4a7a53a167eaca76b9c45cdc9e564dcdde | ee880f62a8ffc1b8544695d3bc1f4bcf809965ab | /load.py | a992777614213450331b4e97154455b4acf0eff7 | [] | no_license | kosyachniy/twianalysis | 1ba3ba6319cbeedf4f19e83ff31f01ced8b26e54 | 514a0ebb7829a4abb340d499e1151b5c55f26f80 | refs/heads/master | 2021-01-01T16:01:29.477061 | 2017-07-29T18:31:25 | 2017-07-29T18:31:25 | 97,756,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import requests, time, json
from bs4 import BeautifulSoup
url='http://mfd.ru/news/company/view/?id=3&page='
with open('db.txt', 'w') as file:
for s in range(893):
query=str(s)
page = requests.get(url + query).text
soup = BeautifulSoup(page, 'lxml')
table = soup.find('table', id='issuerNewsList')
tr=table.f... | [
"polozhev@mail.ru"
] | polozhev@mail.ru |
c9f649966413184912b0a18b36262eb636f1c1bc | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/win32/test/test_win32rcparser.py | 02510974cd502991311d8e0bd3161538cefaf9e1 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | import os
import sys
import tempfile
import unittest
import win32con
import win32rcparser
class TestParser(unittest.TestCase):
def setUp(self):
rc_file = os.path.join(os.path.dirname(__file__), "win32rcparser", "test.rc")
self.resources = win32rcparser.Parse(rc_file)
def testStrings(self):
... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
cdff15de0b8ec7264a8c9b69e2d3a96475f6c8de | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/mongodb/apis/DescribeSecurityIpsRequest.py | b2c3816b3457164790bb60201ef3ace536c5987e | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,347 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"oulinbao@jd.com"
] | oulinbao@jd.com |
9b3a33eba56dd2a09d23dcb118330a360473d9ab | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/93704/kaggle-allstate-purchase-master/pre_parse.py | 2e32dced90c7215c9210ca3e6123bde503f8189e | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,057 | py | """
Project: http://www.kaggle.com/c/allstate-purchase-prediction-challenge
Ranking: 9th from 1571 teams
Work Period: 12-may-2014 to 19-may-2014
Author: Euclides Fernandes Filho
email: euclides5414@gmail.com
"""
import numpy as np
import pandas as pd
from os import path
import conv
from time import sleep,... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
0f294442352392103ed94eb88fc76668f87af676 | 41acd1d7fcfba63d3b06b82d18d8a4d97dd40927 | /old/test_selenium.py | 9e85c7310eb625b00eacc66736b190a955884302 | [] | no_license | wancy86/learn_python | a33e3091b271840c8bf89cbbf991fe33b951a266 | 44e45a91361d6d46b9ab4a172af7e48e0f6df7dd | refs/heads/master | 2021-01-15T15:42:45.377381 | 2016-12-06T00:36:46 | 2016-12-06T00:36:46 | 55,651,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from selenium import webdriver
# 创建一个chrome实例
driver = webdriver.Chrome()
#这个是制定google浏览器,
#指定IE webdriver
#driver webdriver.Ie(),
#指定Firefox webdriver driver webdriver.Firefox()
# 到百度主页
driver.get("http://www.baidu.com")
# 定位到搜索输入框
inputElement = driver.find_element_by_xpath ("//input[@name='wd']")
# 输入查找内容
i... | [
"wancy86@sina.com"
] | wancy86@sina.com |
7280a8c038a404bc9a0f451fcc58c89c88927b29 | 5a8c7a330d6be1fcc90ee0ef298fcecfe204951b | /lectures/class_two/classes.py | 83a85c6c964abf2971c24b6e5a15be413b8f2201 | [] | no_license | EricSchles/nyu_python_class | 299448b55c03dcd90a8606de1df13f52982628eb | 2b19bf70f6b233e00fadfe7664ebd3b635e9df44 | refs/heads/master | 2021-01-25T05:45:11.997409 | 2017-05-17T15:40:00 | 2017-05-17T15:40:00 | 80,680,329 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | import math
import statistics as st
class DescribeData:
def __init__(self, List): #stands for initialize
self.List = List
def describe(self):
print("Here are some statistics about our data")
print("---------------------------------------")
print("Our list has ",len(self.List),... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
2bd407814b0f7d9875e56a9543aa05be1470ed27 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/keras/applications/vgg16.py | 76c77c1f512a4b52134aed97846b7a911effe39e | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d16551dce42289cab53b58657d749a6e4322069372faf4930082d8bd2d661d1e
size 518
| [
"github@cuba12345"
] | github@cuba12345 |
00ebdf6d66acc5dca1a037cfbaf180fb57b81fa0 | ad5ad404d24f1ef195d069b2e9d36b1a22cfd25d | /libs/llvm-meta/clang-tools-extra/clang-tools-extra.py | 6e159d72f9efac1c8dc04b7f11484ed7b6b2585c | [
"BSD-2-Clause"
] | permissive | arruor/craft-blueprints-kde | 6643941c87afd09f20dd54635022d8ceab95e317 | e7e2bef76d8efbc9c4b84411aa1e1863ac8633c1 | refs/heads/master | 2020-03-22T17:54:38.445587 | 2018-07-10T11:47:21 | 2018-07-10T11:47:21 | 140,423,580 | 0 | 0 | null | 2018-07-10T11:43:08 | 2018-07-10T11:43:07 | null | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
import info
class subinfo(info.infoclass):
def setTargets(self):
self.versionInfo.setDefaultValues(packageName="clang-tools-extra", gitUrl="[git]https://git.llvm.org/git/clang-tools-extra.git")
def setDependencies(self):
self.runtimeDependencies["virtual/base"] = "defa... | [
"vonreth@kde.org"
] | vonreth@kde.org |
bb9d04bc3c077bf44239e3310d88723efd751376 | d1ad7bfeb3f9e3724f91458277284f7d0fbe4b2d | /python/002-tcp-server/server.py | 496f0090ef0b35aa6ca74b4f0ea938f3a4f0629a | [] | no_license | qu4ku/tutorials | 01d2d5a3e8740477d896476d02497d729a833a2b | ced479c5f81c8aff0c4c89d2a572227824445a38 | refs/heads/master | 2023-03-10T20:21:50.590017 | 2023-03-04T21:57:08 | 2023-03-04T21:57:08 | 94,262,493 | 0 | 0 | null | 2023-01-04T21:37:16 | 2017-06-13T22:07:54 | PHP | UTF-8 | Python | false | false | 459 | py | import socket
server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = socket.gethostbyname()
port = 444
server_socket.bind((host, port))
server_socket.listen(3) # max num of connections
while True:
client_socket, address = server_socket.accept()
print(f'Received connection from {address... | [
"qu4ku@hotmail.com"
] | qu4ku@hotmail.com |
3366f2acd4ae0124323c631d854eb5b0713dc2b2 | 7b8d505758cbadb002c9aa4449caf643836a829e | /tbkt/apps/task/urls.py | d2465afd980e2c934d98983da8ae0114cf218d0b | [] | no_license | GUAN-YE/myproject | 455a01dcc76629fc33d8154efcba9ef1af0faaa9 | 21e48a150dd6009a6bf2572b2d42eee20fbcbdfc | refs/heads/master | 2020-03-07T22:51:41.821356 | 2018-04-02T14:13:19 | 2018-04-02T14:13:19 | 127,765,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # coding: utf-8
from django.conf.urls import include, url, patterns
# 照顾老版本语文,修改老接口保证参数、返回数据不变
urlpatterns = patterns('apps.task.views',
(r"^sms$", "p_givesms"), # 发短信作业
(r"^checkNum$", "p_check_num"), # 带检查作业数
) | [
"15670549987@163.com"
] | 15670549987@163.com |
a396dee88c812cab4ef400af373230a30d9681b9 | 59a7f64d91b8466074630f0006f048cad66f01e8 | /focuslock/noneWidgets.py | 19b199146ee8eff83e006db7a537ec2367e25328 | [] | no_license | amancebo/acadia_new | cda1eafba65af71e0c4889f25c7dd527aa06abdc | 0c4bbd382140b92a85338b8b3335b2b660b8266b | refs/heads/master | 2021-03-30T16:49:46.252851 | 2015-06-01T23:46:22 | 2015-06-01T23:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/python
#
# Dummy classes for use when you have some but not all
# of the focus lock functionality.
#
# Hazen 12/09
#
# Fake QPD
class QPD():
def __init__(self):
pass
def qpdScan(self):
return [1000.0, 0.0, 0.0]
def shutDown(self):
pass
# Fake nano-p... | [
"amancebo8@gmail.com"
] | amancebo8@gmail.com |
b752d574ddacb2a426c671af560d8757f88254a7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03434/s582963555.py | 202b3b79bca8e1fc753461f081b5a5eff838303c | [] | 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 | 447 | py | """Boot-camp-for-Beginners_Easy010_B_Toll-Gates_29-August-2020.py"""
import numpy as np
N = int(input())
a = list(map(int, input().split()))
a = sorted(a, reverse=True)
Alice = [a[i] for i in range(0, len(a), 2)]
Bob = [a[i] for i in range(1, len(a), 2)]
#print(Alice)
#print(Bob)
s_max = 0
for i in range(len(Alice))... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b263b1252c936c5b02eccbceeade34b685d6ea60 | bc2effb57e82128b81371fb03547689255d5ef15 | /백준/다이나믹 프로그래밍/2579(계단 오르기).py | 8007584be6e6c9eadf04a66b339c98f4460e1283 | [] | no_license | CharmingCheol/python-algorithm | 393fa3a8921f76d25e0d3f02402eae529cc283ad | 61c8cddb72ab3b1fba84171e03f3a36f8c672648 | refs/heads/master | 2023-03-01T11:00:52.801945 | 2021-01-31T13:38:29 | 2021-01-31T13:38:29 | 229,561,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | """
1.패턴 찾기
- 높이가 1인 경우
> nums[0]을 출력시킨다
- 높이가 2인 경우
> nums[0] + nums[1]을 출력시킨다
> 한칸씩 올라온 경우이기 때문
- 높이가 3이상인 경우
> case1 = nums[index] + nums[index - 1] + dp[index - 3]
case2 = nums[index] + dp[index - 2]
dp[index] = max(case1, case2)
"""
import sys
size = int(sys.stdin.readline())
nums =... | [
"54410332+chamincheol@users.noreply.github.com"
] | 54410332+chamincheol@users.noreply.github.com |
8127e734bff3bf1170acb97c2ed2a4638f4c4742 | 78e1a576b128c25b0e85234675f820a1d2d54595 | /urls_collector/migrations/0001_initial.py | a6930c1d867a6a24ca22fefa6f704642d985ef9d | [] | no_license | Evgenus/comeet-pdf-challenge | 7e0e3af9ddfd4558c37284d14c87ff5923b53e93 | 9dc3a3b1bbab0b06ed4f1a35f86fbb2826b64858 | refs/heads/master | 2021-05-10T10:20:26.112256 | 2018-01-22T13:32:36 | 2018-01-22T13:32:36 | 118,379,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,894 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-20 12:14
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Create... | [
"chernyshov.eugene@gmail.com"
] | chernyshov.eugene@gmail.com |
9ea3a93d380538a95060def4a48b25f559346ddf | c8836d495a97c1c5183169d7c33c909ae579f69d | /worldcup/worldcup/matches/load_stage2_matches.py | db3ed408225dfda250c4b39e72393539ba1e7be8 | [
"MIT"
] | permissive | raprasad/worldcup | 4042f54231083d627d9cb9c9ed764eaf5914984e | e993bb3345d4be339211fac2698832886973ec7c | refs/heads/master | 2021-01-01T19:42:49.034715 | 2014-05-23T20:39:30 | 2014-05-23T20:39:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,269 | py | from datetime import datetime
from worldcup.matches.models import *
"""
# match num team 1 team 2 grid group date time
matches = '''49 1a 2b 1 6/26 16:00 Nelson Mandela Bay
50 1c 2d 1 6/26 20:30 Rustenburg
51 1d 2c 2 6/27 16:00 Mangaung / Bloemfontein
52 1b 2a 2 6/27 20:30 Johannesburg
53 1e 2f 3 6/28 16:00 ... | [
"raman_prasad@harvard.edu"
] | raman_prasad@harvard.edu |
3beb0061ecb0b50b4fea93fde1963afe43fda6aa | 2b16a66bfc186b52ed585081ae987e97cab8223b | /test/db/test_APIAliasGenerate.py | c488b48d65177957b58186d5b9fd019dedf7f3cd | [] | no_license | OldPickles/SKnowledgeGraph | d334000c7a41dd5014fd59154bbe070fcc754e4c | 6d131ad6bf3a09a5ce6461fa03690117d703c9e8 | refs/heads/master | 2022-01-09T11:27:00.043712 | 2019-06-06T07:57:06 | 2019-06-06T07:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,717 | py | from unittest import TestCase
from db.alias_util import APIAliasGeneratorFactory
from db.model import APIAlias, APIEntity
class TestAPIAliasGenerate(TestCase):
def test_get_method_qualifier_parameter_type(self):
generator = APIAliasGeneratorFactory.create_generator(
APIAlias.ALIAS_TYPE_SIMPLE... | [
"467701860@qq.com"
] | 467701860@qq.com |
bec3c4222a01732f770d2e955ab9729e86491cfe | e0b6b5708aa81fcb6f9bae26be06b7f15984274c | /leetcode/most-common-word/epicarts.py | 35e87f0d0999a72290e69ce5e72d45587680d89f | [] | no_license | DongLee99/algorithm-study | aab021b71f04140bbad2842b868ef063e7bf1117 | aebe1bc4e461be47b335337c6f05d6a25e19e80a | refs/heads/master | 2023-03-18T05:39:52.708544 | 2021-03-17T14:56:05 | 2021-03-17T14:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import re
from typing import List
import collections
class Solution:
def mostCommonWord(self, paragraph: str, banned: List[str]) -> str:
words = re.sub('[^\w]', ' ', paragraph).lower().split()
words = [word for word in words if word not in banned]
counts = collections.Counter(words)
... | [
"0505zxc@gmail.com"
] | 0505zxc@gmail.com |
2b585ec0903bda35bd59d65a1be1bd1fa14c9967 | a2c7bc7f0cf5c18ba84e9a605cfc722fbf169901 | /python_1001_to_2000/1167_Minimum_Cost_to_Connect_Sticks.py | 54e5622039c7c0898974b8651fd030e7ebadff08 | [] | no_license | jakehoare/leetcode | 3bf9edd499034ce32be462d4c197af9a8ed53b5d | 05e0beff0047f0ad399d0b46d625bb8d3459814e | refs/heads/master | 2022-02-07T04:03:20.659422 | 2022-01-26T22:03:00 | 2022-01-26T22:03:00 | 71,602,471 | 58 | 38 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | _author_ = 'jake'
_project_ = 'leetcode'
# https://leetcode.com/problems/minimum-cost-to-connect-sticks/
# You have some sticks with positive integer lengths.
# You can connect any two sticks of lengths X and Y into one stick by paying a cost of X + Y.
# You perform this action until there is one stick remaining.
# Re... | [
"jake_hoare@hotmail.com"
] | jake_hoare@hotmail.com |
219c8305644dc74a59f5c9a419b18ef748fdc326 | 8af3b7ed8c4694dd0109de50e9b235ec35838d02 | /src/purchase/utils.py | a9ae4a00cd9510a7c0bd6b8a62347aad8bb1895f | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | vishalhjoshi/croma | 9b8640a9ce46320e865211c31fb3b4b503d47f6f | 5b033a1136a9a8290118801f0e7092aebd9d64cc | refs/heads/master | 2020-06-19T14:57:42.909264 | 2019-05-16T20:10:58 | 2019-05-16T20:10:58 | 196,753,381 | 1 | 0 | MIT | 2019-07-13T18:23:29 | 2019-07-13T18:23:29 | null | UTF-8 | Python | false | false | 1,979 | py |
def create_PurchaseInvDtl_JSON_QuerySet(PurInvDtl_queryset):
sale_dtl_item_arr = []
for item in PurInvDtl_queryset:
item_set = {}
batch_instance = item.get_batch_instance()
item_set['item_name'] = str(item.get_item_name())
item_set['item_id'] = str(item.get_item_id())
item_set['batch_no'] = str(item.batc... | [
"jaisinghal48@gmail.com"
] | jaisinghal48@gmail.com |
dd4bd950a39ea20b33814bbe7e882ba1ea2b1bc3 | f4e8c8294b23fe070a763b527bc2f75ccdebaab1 | /leetCodePython/83.remove-duplicates-from-sorted-list.py | f829f2439febd64241b2d38c02332bae0a292c3b | [] | no_license | HOZH/leetCode | aff083b33e9b908490e7e992a0ad192ee31cc2e5 | a0ab59ba0a1a11a06b7086aa8f791293ec9c7139 | refs/heads/master | 2023-08-17T08:44:07.884861 | 2023-08-08T19:47:42 | 2023-08-08T19:47:42 | 136,558,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #
# @lc app=leetcode id=83 lang=python3
#
# [83] Remove Duplicates from Sorted List
#
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head):
current = head
if current:
... | [
"hong.zheng@stonybrook.edu"
] | hong.zheng@stonybrook.edu |
7453eac3ad4a2c9b553a59c2694a0a7c020a5d8a | 0343de40021f8dd72fb9a6cb31b5d2f24ccd7971 | /utilities/wake_models_mean/util.py | 17331324b776f80e56a804d954b718b2ef2a65bd | [] | no_license | sebasanper/WINDOW_dev | 47ae9252e6fadb2a3b1a0aae3383681a7955f4ea | 3c6437a777f2fc3be1dfd3d53b5d2ed25281c55c | refs/heads/master | 2021-01-01T19:45:02.555727 | 2018-05-21T20:27:56 | 2018-05-21T20:27:56 | 98,670,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | def interpolate(minx, miny, maxx, maxy, valx):
# print maxx, minx
return miny + (maxy - miny) * ((valx - minx) / (maxx - minx))
| [
"s.sanchezperezmoreno@tudelft.nl"
] | s.sanchezperezmoreno@tudelft.nl |
f98901e3b2917cb13dcbd40a6f3479c0b87c6840 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s120646921.py | 522b4214f36258ffb62506f2aa2bb22339794d1f | [] | 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 | 260 | py | K,A,B= map(int,input().split())
ans = 1
if (B-A) <= 2:
ans += K
else:
if B - A <=2:
ans += K
else:
ans += A - 1
if (K-(A-1)) % 2 == 0:
ans += (((K-(A-1))//2)) * (B - A)
else:
ans += (((K-(A-1))//2)) * (B - A) + 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ce5e7eeed67ed5e94efb5bf6fec120007d0c6a1f | b35f86d9746f782dca05765a3c2d31e1e7a511b8 | /src/tubesite/models.py | df26a20d6bdd7017711e39e94258e224d255cf08 | [] | no_license | jccode/cutetube | 5f28f5c242c5213c91590ef82f97934257cb2b42 | 0a91745ca9adccab68ffb3d742d8fcc5c4b52f2b | refs/heads/master | 2020-12-13T21:47:30.129097 | 2017-07-31T01:36:53 | 2017-07-31T01:36:53 | 95,474,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.safestring import mark_safe
# from django.contrib.postgres.fields import JSONField
# from jsonfield import JSONField
from .utils import JSONField
from filer.fields.image import FilerImageField
# Create your... | [
"junchangchen@gmail.com"
] | junchangchen@gmail.com |
6f96e83991bae143e3344852c09a992a151e54a7 | fe3759747f709a41e5ff3acf78872dd6b74f772a | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog_all_of.py | 82cee4c2f86b5e935a3f34a13f73fa89ec48000a | [
"Apache-2.0"
] | permissive | Januson/openapi-generator | c50e3b52765e41adba9712d745918cea39dfa490 | 5b6b4c9d4829b57716741dc35b3f1033e5483784 | refs/heads/master | 2022-10-19T04:16:38.042495 | 2022-04-23T08:42:21 | 2022-04-23T08:42:21 | 238,659,737 | 0 | 0 | Apache-2.0 | 2023-09-05T01:01:23 | 2020-02-06T10:12:38 | Java | UTF-8 | Python | false | false | 1,945 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | Januson.noreply@github.com |
3492b0d6ce2c684a730e99b0b923f6eb900e6355 | b30216e0e7d5181da3430087c1deb121f0c58dd5 | /Accounts/migrations/0003_usernames_image.py | c4ccec940e692346590414372a99b33347dc62fd | [
"MIT"
] | permissive | kurianbenoy/ShareGoods | ac360f7523636f3d0f5c758aac19ccd7de6769d8 | 5231a0ec2ad3ef22fa5da1c2ab2ba5a654ba75e0 | refs/heads/master | 2020-03-24T12:08:16.263168 | 2018-08-10T17:48:24 | 2018-08-10T17:48:24 | 142,704,517 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-07-29 03:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Accounts', '0002_auto_20180729_0818'),
]
operations = [
migrations.AddField... | [
"kurian.pro@gmail.com"
] | kurian.pro@gmail.com |
0ecfe9bc8614ef986ade28e1ce80d6929d627709 | 187ba0b860c1311e1e931825ad207b57d673d46d | /docs/conf.py | e64e7747d4c0c6f6ba851b43f3e40d6cbf5cbc0e | [
"MIT"
] | permissive | acgh213/jaraco.nxt | 698a230f7fd80e046741300182f283065900a3cd | 954f7dc95ac7c82e06b8d21a26b5d654ced31c9f | refs/heads/master | 2021-05-30T02:10:10.287918 | 2015-11-30T01:14:47 | 2015-11-30T01:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
]
# General information about the project.
project = 'jaraco.nxt'
copyright = '2015 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', relative_to=__file__)
# The full... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
407869ec28a72c22c3176031a91d984739fd1356 | a0757f4148f4bcc0ae2a499267c884e2c04c389d | /posts/migrations/0001_initial.py | 9da7662c853bb3787e6740e2f5c0c1441eb711f9 | [] | no_license | hkailee/sequencinggo | 7a1a11889e46b4b4aba0aeda6e50ff5d74c8f65b | e118f5815ac6ad41053a7edcaacb00f4a414f2a2 | refs/heads/master | 2021-01-21T03:21:46.672069 | 2016-12-03T05:58:33 | 2016-12-03T05:58:33 | 69,310,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import taggit.managers
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),... | [
"leehongkai@gmail.com"
] | leehongkai@gmail.com |
b886898739062d97e735446d5063b42c56bd703c | b385f39c5b701fb6f22796ab951872257ae8398a | /exercicios-secao04/exercicio10.py | 366c4faf0f212965a046781b9c4425271372735f | [
"MIT"
] | permissive | EhODavi/curso-python | 5c97a6913bad198ae590519287ed441c95399d80 | cf07e308be9d7516f2cfe7f21c539d214c836979 | refs/heads/main | 2023-08-07T13:44:46.608118 | 2021-06-14T21:40:50 | 2021-06-14T21:40:50 | 356,542,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | velocidade_km_h = float(input('Informe a velocidade em km/h: '))
velocidade_m_s = velocidade_km_h / 3.6
print(f'{velocidade_km_h} km/h corresponde à {velocidade_m_s} m/s')
| [
"davi.miau@gmail.com"
] | davi.miau@gmail.com |
c8e3877940df449f6b89f121031545c98b5c2f26 | 4a36b5979b0753b32cff3956fd97fb8ed8b11e84 | /0.22/_downloads/6448e1cdd25e7f92168993a74b81b311/plot_psf_ctf_vertices.py | 26db8d8e8b32a53e728539452c6217f69cca5f9b | [] | permissive | mne-tools/mne-tools.github.io | 8aac7ae10bf2faeeb875b9a351a5530dc0e53154 | 495e878adc1ef3374e3db88604504d7542b01194 | refs/heads/main | 2023-09-03T07:06:00.660557 | 2023-09-03T04:10:18 | 2023-09-03T04:10:18 | 35,639,371 | 12 | 16 | BSD-3-Clause | 2023-05-05T19:04:32 | 2015-05-14T22:04:23 | HTML | UTF-8 | Python | false | false | 3,440 | py | # -*- coding: utf-8 -*-
"""
Plot point-spread functions (PSFs) and cross-talk functions (CTFs)
==================================================================
Visualise PSF and CTF at one vertex for sLORETA.
"""
# Authors: Olaf Hauk <olaf.hauk@mrc-cbu.cam.ac.uk>
# Alexandre Gramfort <alexandre.gramfort@inr... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
a0be7c11d79e85d00ece19127980488c6049cee5 | 2933b8f123981f88e576e7ba5baa5143c3667019 | /_testing/utils/subscription.py | cce06a6f7d97a2c2279aed54db1c9095aa986f69 | [
"MIT"
] | permissive | MatthiasLienhard/pysmartnode | c6a9b4819cddcf1b928eecc385cef087a832e5cb | f853efb3378d881dd2e62eec2ca1621898953c19 | refs/heads/master | 2020-09-04T09:31:45.302398 | 2019-07-07T06:14:55 | 2019-07-07T06:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | '''
Created on 18.02.2018
@author: Kevin K�ck
'''
__version__ = "0.2"
__updated__ = "2018-03-09"
import gc
from pysmartnode.utils.wrappers.timeit import timeit
memory = gc.mem_free()
gc.collect()
def printMemory(info=""):
global memory
memory_new = gc.mem_free()
print("[RAM] [{!s}] {!s}".format(info, ... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
f72325a934916e12a434f42884e773a3cba383ff | 18e10db2ac29420dadf40fc1185091a1e827d6b8 | /tools/auto_freeze.py | 7585016ac6fde70896d9e67ce36bcbfb70d0f881 | [
"Apache-2.0"
] | permissive | liuxiaoliu321/faceboxes-tensorflow | a853fb86b8c1ee895028e4ce35f141f8f3ff158c | 39d12704cf9c1da324bb439b6e8a72c8b4d01d34 | refs/heads/master | 2020-08-08T08:05:57.379527 | 2019-09-25T04:06:25 | 2019-09-25T04:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py |
import os
import tensorflow as tf
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
model_folder = './model'
checkpoint = tf.train.get_checkpoint_state(model_folder)
##input_checkpoint
input_checkpoint = checkpoint.model_checkpoint_path
##input_graph
input_meta_graph = input_checkpoint + '.meta'
##output_node_names
output_n... | [
"2120140200@mail.nankai.edu.cn"
] | 2120140200@mail.nankai.edu.cn |
6164a6e1eeaf57eb5e6c08c6f244aee8f956ada5 | 36943501114b8c6bfd59d248507140956a0d7c29 | /PSCC20/diagram2.py | 08914fee7ab952f524ee6b2c67f9f772837cc2c6 | [] | no_license | Constancellc/Demand-Model | 9c45ea1a9d9779c9da093f221a5851b168a45eac | e261371b7aa9aea113617a7cbe8176a5c5d9591c | refs/heads/master | 2021-01-13T10:32:40.243847 | 2020-08-21T09:49:14 | 2020-08-21T09:49:14 | 76,476,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | import matplotlib.pyplot as plt
import numpy as np
import random
from scenarios import generate
from cvxopt import matrix, spdiag, sparse, solvers, spmatrix
scen = generate(5,10)
def optimise(scen,en):
Q = spdiag([1.0]*48)
p = [0.0]*48
for i in range(len(scen)):
for t in range(48):
... | [
"constancellc@gmail.com"
] | constancellc@gmail.com |
4bb38afed0529d45e57f2e7e834157f55f5bfa9c | c660ae5554a682790061c4ed62a4bc19b4890250 | /PruDigital/Django_project/Testform/student_formapp/views.py | 580578a31939097c7bf71f85a499323d13acb9f1 | [] | no_license | saurabhshukla01/Best-wsbsite | 4a63d8e21307cf7f93e240e7ef871477a23cd912 | 04f5baba1807f71309bebfd2b6675ff408b7e25e | refs/heads/master | 2022-05-30T03:32:03.609791 | 2020-04-21T09:06:23 | 2020-04-21T09:06:23 | 257,498,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
'''
def register(request):
return HttpResponse('index form')
'''
def register_student(request):
return render(request,'register_student.html')
def show_student(request):
stu_dict ={}
stu_fname= request.POS... | [
"ss7838094755@gmail.com"
] | ss7838094755@gmail.com |
f72a1cbc16ee408ae31c70d2d7b8fbbc2a467f92 | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /TriAquae/TriAquae/sbin/tri_service.py | 6a274b9873ac6a2e90ebaec04a55f064edb39479 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,813 | py | #!/usr/bin/env python
import os,sys,time
import logger,tri_config,tri_module
import django
triaquae_path = tri_config.Working_dir
working_dir = logger.cur_dir
status_check_script = 'host_status_check.py'
snmp_monitor_script = 'multiprocessing_snmpMonitor.py'
service_log = '%s/tri_service.log' % tri_config.Log_dir
snmp... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
3014be40eabec0a1d1eeadd68d766eda03badafa | 6e42ce3512cefa970163bb105a736eba5c9bf902 | /cw/cw_9/cw_9_1_1.py | fa811bd2a26807f7c1b7471c3b21ca19b929c6d0 | [] | no_license | SKO7OPENDRA/gb-algorithm | 32f483e095b57d8c71cd5de9fa9bd2c00f0b6bc1 | 366ae8e58beae267d84baf8a28e6d4055e3a5bdb | refs/heads/master | 2020-12-26T22:40:34.640445 | 2020-02-27T16:16:44 | 2020-02-27T16:16:44 | 237,667,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Что такое дерево
# Классификация дерева
# Создание деревьев в Python
# Самый простой способ создать дерево - создать свой собственный класс
from binarytree import tree, bst, Node, build
class MyNode:
def __init__(self, data, left=None, right=None):
self.data = data
self.left = left
sel... | [
"58439768+SKO7OPENDRA@users.noreply.github.com"
] | 58439768+SKO7OPENDRA@users.noreply.github.com |
83715fa1d47f3fc83e0b62ba1acc085c58e59ecd | 40c2bce56832d97797c115f60d1e0459fd4ebf93 | /Eclipse_Project_2/Single_Ton_Pattern_Class/test_exampleOne.py | dc3a8820461af7567fb646cf3d32ba7fabdd7054 | [] | no_license | amanoj319319319/Eclipse_Python_LastSeleniumTest | 0be2e7f615160248f329b4df0e9d109612b29560 | 4d0978e4c2dfe9c3a9d4b429f7ff6340278c0252 | refs/heads/master | 2023-04-27T09:14:38.726807 | 2021-05-19T08:18:40 | 2021-05-19T08:18:40 | 267,038,244 | 0 | 0 | null | 2021-05-19T08:17:45 | 2020-05-26T12:35:36 | Python | UTF-8 | Python | false | false | 2,889 | py | #working very fine
'''
import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
@pytest.mark.usefixtures("setup")
class TestExampleOne:
def test_title... | [
"a.manoj16@gmail.com"
] | a.manoj16@gmail.com |
5f9b268af9cb8089a970308ee8aa501616c68bbc | 6d80ce7a1f44ddf5741fd190ddfe0d9be8e5f162 | /model/detection_model/PSENet/util/__init__.py | 0851e4c84d2992a68efd02e1726176aecf9e3fbb | [
"MIT"
] | permissive | dun933/FudanOCR | dd8830ca4b8ebb08acd31326fcf5aa3c961886a0 | fd79b679044ea23fd9eb30691453ed0805d2e98b | refs/heads/master | 2021-04-03T19:50:47.646099 | 2020-03-16T08:43:59 | 2020-03-16T08:43:59 | 248,391,401 | 1 | 0 | MIT | 2020-03-19T02:23:11 | 2020-03-19T02:23:10 | null | UTF-8 | Python | false | false | 1,335 | py | import log
import dtype
# import plt
import np
import img
_img = img
import dec
import rand
import mod
import proc
# import test
import neighbour as nb
#import mask
import str_ as str
import io as sys_io
import io_ as io
import feature
import thread_ as thread
import caffe_ as caffe
# import tf
import cmd
import ml
imp... | [
"576194329@qq.com"
] | 576194329@qq.com |
1ccd46595657e4e3591261fd55aab390e27ec8a7 | bc68b28995103a45c5050a418a009f5f0c075bdc | /Rosalind1/Prob26/deBruijn.py | 201c46d46d9c2452c65c16307a2d005cd80b2a5e | [] | no_license | kedarpujara/BioinformaticsAlgorithms | 71ca191c18ff8260d9edcd594c337b282b2a7188 | 4a8919d03af767704525e8a5610af5b811d5c873 | refs/heads/master | 2020-03-13T08:41:45.361941 | 2018-04-25T18:39:00 | 2018-04-25T18:39:00 | 131,048,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | class Vertex:
def __init__(self, n):
self.name = n
self.neighbors = list()
def add_neighbor(self, v):
if v not in self.neighbors:
self.neighbors.append(v)
self.neighbors.sort()
class Graph:
vertices = {}
def add_vertex(self, vertex):
if isinstance(vertex, Vertex) and vertex.name not in self.verti... | [
"kedarpujara@gmail.com"
] | kedarpujara@gmail.com |
2cac0ac3790b90127a38572fbc918208c45b1259 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /buildtools/third_party/libc++abi/libc++abi.gyp | c3e6c07e1f9e77e7a1da0892ab9edadcfe7a0916 | [
"NCSA",
"MIT",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,576 | gyp | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'libc++abi',
'type': 'static_library',
'toolsets': ['host', 'target'],
'dependencies=': [],
... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
6e082aea8360e7905c61b42c01eb77a38ed8b56c | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/documentdb/v20191212/list_database_account_keys.py | f639451de463da06e7decaaaabefad7426574541 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,464 | 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
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
2337d1dc5879ef718152539d26f659496418ac42 | 7b75735b6d894d0c3bb40d657dc4c4eb436716c1 | /decompiled_code/library/encodings/mac_cyrillic.py | 107b50c3a389093639823c79c0bad8ba23a86f8b | [] | no_license | anton-shipulin/TRISIS-TRITON-HATMAN | fe54fb994214e35f80d39c26fbc5289f0b57b2bd | 1b167a9414b479331fb35a04eace75bb0e736005 | refs/heads/master | 2020-04-06T23:57:38.833044 | 2018-11-16T22:12:01 | 2018-11-16T22:12:01 | 157,886,273 | 3 | 0 | null | 2018-11-16T15:30:59 | 2018-11-16T15:30:58 | null | UTF-8 | Python | false | false | 2,383 | py | # uncompyle6 version 2.14.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.12 (default, Nov 19 2016, 06:48:10)
# [GCC 5.4.0 20160609]
# Embedded file name: encodings\mac_cyrillic.pyc
# Compiled at: 2016-06-25 21:46:06
""" Python Character Mapping Codec mac_cyrillic generated from 'MAPPINGS/VENDORS/APPLE/C... | [
"ICSrepo"
] | ICSrepo |
7d2f40e4bd6adcc02a6d9b06df433d2786224b34 | 78a179ad824b6c70a33e0c6885e8d15e91cdbbdc | /correlation_sgd.py | a45a05f571ef8b9b87fc18bf8f728e5ced0288e2 | [] | no_license | bio-ontology-research-group/pgsim | 50ea74c9a0505e1a737a62441833aa6e3f2a8b8c | 4461828923431235fb6bcd65025aff6522fd267b | refs/heads/master | 2020-04-02T02:38:49.243292 | 2017-02-02T11:34:44 | 2017-02-02T11:34:44 | 49,642,348 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | #!/usr/bin/env python
import os
import sys
import numpy as np
from scipy.stats import spearmanr, pearsonr
from data import (
get_total_average_sims,
get_diff_average_sims,
DATA_ROOT)
def get_correlations(measures, filename):
'''
Calculates spearman and pearson correlations for
annotation size ... | [
"coolmaksat@gmail.com"
] | coolmaksat@gmail.com |
8b06cec79bca3f45e98d3df7c4466d5424a30695 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/261/29578/submittedfiles/ex1.py | a8820f3dba06441ddcf5f5bb2dec3cd767f23e17 | [] | 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 | 333 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = int(input('Digite a: '))
b = int(input('Digite b: '))
c = int(input('Digite c: '))
#COMECE A PARTIR DAQUI!
delta = ((b*b) - (4*a*c))**(1/2)
if delta <0:
print (str("SRR"))
else:
x1 = (-b+delta)/2*a
x2 = (-b-delta)/2*a
print ("x1=",x1)
prin... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
edda0fd39872ba56cf1cbc2084decebee6a9348f | 6737ca32fe093c6ac6b203fc71dbc177853bfaee | /curate_orthogene/scripts/calc_identity_from_orthologs.py | 5d3aa1e3d635a4b1c9a3209b01f684125c133c40 | [] | no_license | lhui2010/bundle | 56a47bcdd2d41718b51da8c8cf23ab43577dfb4e | e31c8f2f65260ceff110d07b530b67e465e41800 | refs/heads/master | 2022-08-31T17:12:26.081984 | 2022-08-03T08:37:38 | 2022-08-03T08:37:38 | 74,002,474 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | #!/usr/bin/env python
import logging
import os
import sys
from multiprocessing import Pool
import argparse
import subprocess
#TODO
#Remove global variable
#OptParser
usage = """Calculate Identity from orthologs
Usage:
{} -o workdir REF_TAG Ortho_File QRY.fa REF.fa >A188.identity
""".format(__file__)
parser = a... | [
"lhui2010@gmail.com"
] | lhui2010@gmail.com |
77674c66ad7d3b0b071716b52e09cf66241e1953 | 7abbcd16dcf2e639e53665d50ec113e1374b79eb | /checkout/urls.py | c05c00460f8ef6e05ed8dd59477e3f5d3f254c8b | [] | no_license | srajsonu/ROIIM-Assignment-Paysafe | ab6f160641adb69cef2f78bde594322f286ff089 | 1d9586e29f1871e4e9577ff2befd594c8a9cbbe4 | refs/heads/main | 2023-01-04T23:42:53.403941 | 2020-10-31T17:17:57 | 2020-10-31T17:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.urls import path
from . import views
app_name = 'checkout'
urlpatterns = [
path('checkout/', views.checkout, name='checkout'),
path('payment_successful/', views.payment_successful, name='payment_successful')
]
| [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
b29c08e430263fddd494f44cf1aa620f7cdf25de | 5b70fbd53b534306c146ffb98a0f99d2343a948f | /src/Python/Problem99.py | 8e774a09fb35eba85b4bcfd02776deb92c9fcb7f | [] | no_license | aniruddhamurali/Project-Euler | 1f4ff3aa1e9c4efbc2a85026821e19a28b5edf90 | 408b3098fbc98ff3954679602c0468ddb56ea0ac | refs/heads/master | 2020-03-20T23:07:22.178103 | 2018-07-27T01:40:46 | 2018-07-27T01:40:46 | 137,830,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | def max_exp():
name = "Problem99.txt"
file = open(name, 'r')
maxNum = None
track = 1
for line in file:
comma = line.find(',')
base = line[:comma]
exp = line[comma+1:]
base = float(base)
exp = (int(exp))/700000
num = float(base**exp)
if maxNum... | [
"aniruddha.murali@gmail.com"
] | aniruddha.murali@gmail.com |
4c7b091a0abe71c1c798652c3b184644b1afa2b9 | 325bee18d3a8b5de183118d02c480e562f6acba8 | /india/india_c/india/ScriptDir/Initialization.py | 6c7a76d5cc4ccf59d06d3fe9407de58d01d1dac9 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 508 | py | #coding:utf-8
import shutil
import os
class Initialization(object):
def InitializeMain(self):
shutil.rmtree('D:\item\OPDCMS\listed company update\india\data\zip/full')
shutil.rmtree('D:\item\OPDCMS\listed company update\india\data\pdf/full')
print("*"*93)
for i in range(2):
... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
de126b11e439484e7edf1502679f25c9f872f105 | fba9dd10028ae22eadc6da307f6df66d3c658d2e | /Modulo02/Desafio037-Condicoes-Aninhadas.py | 4e3fbc6f1abb423c280f4450d0de158de58b86eb | [] | no_license | GabrielCardoso2019/Curso-de-Python | bbf52330236a5847e6c48fe8ed01efd767a2f92e | 2e3b4066d72d0dc599aa68b8ee2ab2571324a372 | refs/heads/master | 2023-02-25T03:41:35.906086 | 2021-02-01T17:31:57 | 2021-02-01T17:31:57 | 335,028,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | num = int(input('Digite um número inteiro: '))
print('-=-' * 20)
print('''Escolha uma das bases para conversão:
[ 1 ] Converter para BINÁRIO
[ 2 ] Converter para OCTAL
[ 3 ] Converter para HEXADECIMAL''')
opcao = int(input('\nEscolha uma opção: '))
print('-=-' * 20)
if opcao == 1:
print('{} converção para BINÁRI... | [
"gabrielcardososs2016@hotmail.com"
] | gabrielcardososs2016@hotmail.com |
d5ff0cf688e5fbed28f798dfc48819ae4b88c02e | 53d4a3f2ec628c5482c78580064b5a36f85b5a70 | /spider/__init__.py | fb47e17d5503683245603b58b54feaf52009f917 | [
"BSD-2-Clause"
] | permissive | yaoxiaokui/PSpider | e4e883b4c01abd1f40e99473e1164b9f8508799f | 6b1ea034541ea0317aae48d800e348a9a90ff798 | refs/heads/master | 2020-03-21T12:29:21.859903 | 2018-06-13T08:38:37 | 2018-06-13T09:20:45 | 138,554,987 | 0 | 1 | BSD-2-Clause | 2018-06-25T06:55:08 | 2018-06-25T06:55:07 | null | UTF-8 | Python | false | false | 284 | py | # _*_ coding: utf-8 _*_
"""
define WebSpider, WebSpiderDist, and also define utilities and instances for web_spider
"""
__version__ = "1.3.0"
from .utilities import *
from .instances import Fetcher, Parser, Saver, Proxieser
from .concurrent import TPEnum, WebSpider, WebSpiderDist
| [
"qixianhu@qq.com"
] | qixianhu@qq.com |
1736498bb96ef9719b6fdac3e8f5e3b846b361c3 | 947ccd64444a225caec6811a74747bd070a3cfe6 | /shop/models.py | 9f9b9617feb48ca113d8c2ff15c2855bf8743cf7 | [] | no_license | mishaukr7/eschools | a6bca6118f62af6d90badd77848311a7bc3964cf | 5dd5bf07901a6871470b54df763164dda67c5f19 | refs/heads/master | 2020-04-10T00:50:41.555444 | 2019-01-08T09:14:20 | 2019-01-08T09:14:20 | 160,697,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.db import models
# Create your models here.
class News(models.Model):
title = models.TextField(max_length=400)
content = models.TextField(max_length=4096)
video = models.URLField(blank=True, null=True)
| [
"mishaukr22@gmail.com"
] | mishaukr22@gmail.com |
9d8166fa1ed04426e1ea570b534c19fd26448bfd | f636e71f45170e6cf197bcfc14a50af45fd828ed | /Lesson 7/examples/example1.py | 50389e99a91e8bbac016e25a61b26af0bf0949bc | [] | no_license | mcgokable/Cources | 872640c62fdb82f19ec7f5d20700fed85c4a3447 | 960ef7d4e72af0ec29c9a78220b44873f2ef2d35 | refs/heads/master | 2022-04-06T23:35:30.477455 | 2019-11-29T13:22:40 | 2019-12-05T07:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import smtplib
from email.message import EmailMessage
server = smtplib.SMTP()
server.connect('localhost')
if __name__ == '__main__':
message = EmailMessage()
message['From'] = input('Email From: ')
message['To'] = input('Email To: ')
message['Subject'] = input('Subject: ')
message.set_content(inp... | [
"19941510metalhead@gmail.com"
] | 19941510metalhead@gmail.com |
4fe960c3b3305e438c3d415d14a910f867aea18b | dbb32a7d5b96a94533b27a6ccf2474c660a863b7 | /containers/user/sources/utils/types/component/identity.py | fcfde17dd53b6c70d4fcd4381112bc7db3a823c4 | [] | no_license | ankurhcu/FogBus2 | 772e8346c5e01e2aa8a02da9ef91fd696dd587a7 | 2cefabdd1d131fc8e9015ca31d414665e6014a69 | refs/heads/main | 2023-08-07T15:33:54.039724 | 2021-09-21T05:02:49 | 2021-09-21T05:02:49 | 410,610,212 | 1 | 0 | null | 2021-09-26T16:57:23 | 2021-09-26T16:57:22 | null | UTF-8 | Python | false | false | 2,321 | py | from .role import ComponentRole
from ..basic import Address
class ComponentIdentity:
def __init__(
self,
addr: Address,
role: ComponentRole = ComponentRole.DEFAULT,
hostID: str = None,
componentID: str = None,
name: str = None,
na... | [
"plocircle@live.com"
] | plocircle@live.com |
c4cfc248eac8fcc9673f45a9e0869b6854d36951 | 8eff7e195a9cb4aba3700ff933782240fc5dfacf | /context-managers/change_path_context.py | bd75c25b168780b2de840c23346872b737fa9309 | [] | no_license | ThiaguinhoLS/Code | 58ec668df799f10b245267c3184c138d8434878c | 8b3c6fb9eeb1479ccf92ae05ed578a9c44fa7138 | refs/heads/master | 2020-03-22T01:01:07.081909 | 2018-07-19T04:23:48 | 2018-07-19T04:23:48 | 139,278,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
from contextlib import contextmanager
import os
@contextmanager
def change_path(path):
'''
Altera o path atual e depois do fechamento do contexto retorna o path
Como usar:
with change_path('../'):
do something
'''
actual = os.getcwd()
os.chd... | [
"tthiaguinho638@gmail.com"
] | tthiaguinho638@gmail.com |
4c05bef3beda374eb0b8d163120cc24ec35bae39 | cbbdbdfa3d69a11de5dbd80f860986c97ec10b67 | /test/validate/test_base.py | 279edbf7dd38a809869867722912f8a8cb73961a | [
"MIT"
] | permissive | lokeshmeher/schema | 757cbc837c91f124774d3a1562ceccc255f17026 | 3c7478d27f87a2f1a7f2c2da67beced4a76704cc | refs/heads/master | 2021-06-04T18:50:42.461646 | 2016-02-24T04:15:04 | 2016-02-24T04:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,512 | py | # encoding: utf-8
from __future__ import unicode_literals
import re
from marrow.schema import Attribute, Container
from marrow.schema.compat import unicode
from marrow.schema.testing import ValidationTest
from marrow.schema.validate.base import *
class TestAlways(ValidationTest):
validator = Always().validate
va... | [
"alice@gothcandy.com"
] | alice@gothcandy.com |
69056d35e2d53095946c30eb093026ce866e92e3 | 72f37dabe9cddde460c5f5afad802d7d3d972af7 | /data_storage/transform.py | 0ac0ff439cc65b183b2945f6b93d14ac2e70b27c | [
"Apache-2.0"
] | permissive | dbca-wa/data-storage | fdf6de6735f9e18688ad8a3d1755295b3c11fa2d | ff8c93978d78042117a9c04217a31c3d7ecb2a3f | refs/heads/master | 2023-08-28T20:14:47.823353 | 2021-11-05T01:22:33 | 2021-11-05T01:22:33 | 263,812,682 | 0 | 2 | Apache-2.0 | 2021-03-15T03:17:36 | 2020-05-14T04:13:51 | Python | UTF-8 | Python | false | false | 2,554 | py | import tempfile
import os
import json
from .utils import remove_folder,JSONEncoder,JSONDecoder
from .resource import ResourceConstant
def change_metaindex(repository_metadata,f_metaname_code):
"""
Change the index calculating logic of the indexed resource repository
repository_metadata: the current resou... | [
"rocky.chen@dpaw.wa.gov.au"
] | rocky.chen@dpaw.wa.gov.au |
e26e05796f0d6099c19bcd248bd8e34c70b566f3 | c5fedd852a93dd20bd1ab4db41997e3eeae64e63 | /sites/dev/settings.py | 3bb980b38c96fc6e417092022163f6ba1fbc5356 | [
"MIT"
] | permissive | rishikant42/django-business-logic | deab4e300f243da6428e19cc7c96d3af16375adc | 6f3d0774d7d30b64dc73ed32736ec045afb5de48 | refs/heads/master | 2020-03-31T07:28:24.664684 | 2018-09-17T13:55:28 | 2018-09-17T13:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | from ..settings import *
DEBUG = True
ALLOWED_HOSTS = ['*']
INSTALLED_APPS += [
# 'django_extensions',
'bootstrap3',
'sites.dev.books',
]
ROOT_URLCONF = 'sites.dev.urls'
WSGI_APPLICATION = 'sites.dev.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | [
"dgk@dgk.su"
] | dgk@dgk.su |
2e1c064f2f9ec480216bc2fec17ee9324f1500a7 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/override/methodWithOverloadsInTheSameFile.py | 70f8f8ba8877cc6015e8c1b173c3c5aa3f88a862 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 211 | py | from typing import overload
class Foo:
@overload
def fun(self, s:str) -> str: pass
@overload
def fun(self, i:int) -> int: pass
def fun(self, x):
pass
class B(Foo):
<caret>pass | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
e46ebbee527c297550cc6be199c7e3e85394ba22 | 061684e59ba5c816419f763a25629af987f60d52 | /CashAlgo/weighted_rsi_intraday_strategy.py | 61ca7e5b7316c417ea7bfebdcb4aa5cb41feda39 | [] | no_license | wangyouan/PythonTest | 8d798fc5cde3ecaeb64301c3290fe51ea8577523 | 62177829b81e918cadb4a24527c4cdcaff734d7d | refs/heads/master | 2021-06-17T11:18:11.973935 | 2017-03-26T07:07:18 | 2017-03-26T07:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,498 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# File name: weighted_rsi_intraday_strategy
# Author: warn
# Date: 27/12/2015 10:20
import numpy
import talib
import cashAlgoAPI
class Strategy:
long_flag = False
short_flag = False
def __init__(self):
self.close_data = []
self.cnt = 0
... | [
"wangyouan0629@hotmail.com"
] | wangyouan0629@hotmail.com |
f4a3e6d8a542ab88facff6b22770e3ff898d3050 | f6f29c2fa719c53eee73de2acd86db9e1278182e | /design_patterns/observor/event_system.py | 6661d910ed6e4bf7106b6ddb905dac47ca3f201a | [] | no_license | byt3-m3/python_code_practice | ca08320e1778449d30204b65f15903d5830b7975 | 40e215c4d4ab62cf7d55d2456d94550335825906 | refs/heads/master | 2023-07-24T08:29:06.624850 | 2021-09-04T02:39:32 | 2021-09-04T02:39:32 | 256,984,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | from dataclasses import dataclass
from enum import Enum
from queue import Queue
from typing import List, Tuple, Any
import asyncio
class RegisteredMethods(Enum):
""""""
message_que = Queue()
@dataclass
class Event:
event_name: str
data: Any
class EventManager:
subscribers = dict()
def __init... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
7ae1ccf015cbb9f6702d6dbac4c89554e20e7909 | ba9e1fc7797ebc55a61a40ee66c51b467f353ff1 | /web_scraping_with_python_demos/docx-parser.py | d56bc005da5bfc4c2d478182efe0cc74e860b49e | [] | no_license | sanpianye/the-little-python | 77c938164d43cbb120063a6d17d0705cc9e92e93 | c04898bf0812afb53b71567699ee523d1bc56a29 | refs/heads/master | 2021-06-14T01:55:31.452777 | 2017-03-09T13:31:59 | 2017-03-09T13:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
''''''
__author__ = 'Engine'
from zipfile import ZipFile
from urllib.request import urlopen
from io import BytesIO
from bs4 import BeautifulSoup
# 从.docx文件读取xml的步骤
# 1. 读取.docx文件
wordFile = urlopen("http://pythonscraping.com/pages/AWordDocument.docx").read()
# 2. 转... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
a2a3894ce8cbaf1c0878ecb12053cf13cd82f539 | edfcd96f0010ea068a4c046bdcf7067ff92d3f9b | /Cryptography/Find_Files_5.py | c6fe25661616e3f39926bcb2020522f17adf1491 | [] | no_license | afsanehshu/python-project | a99ff558f375c1f5e17ea6ffc13af9216ec4733f | 48905cfd24df6d1f48460d421ed774f19403cf53 | refs/heads/main | 2023-08-03T01:53:32.812949 | 2021-09-22T19:36:25 | 2021-09-22T19:36:25 | 409,303,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | from subprocess import check_output
def find_drive():
drive = ["A:","B:","C:","D:","E:","F:","G:","H:","Z:","N:","K:","L:","X:","P:","U:","J:","S:","R:","W:","Q:","T:","Y:","I:","O:","V:","M:"]
system_drive = []
cmd = check_output("net share",shell=True)
for i in drive:
if i in ... | [
"afsanehshu@gmail.com"
] | afsanehshu@gmail.com |
5bae2dd0b98a698b47ecc1b62c9b3f817edb250c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02706/s376556276.py | 52d2b727b08cf6404ff408485c8063321452bc56 | [] | 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 | 242 | py | def main():
n, m = map(int, input().split())
a_lst = list(map(int, input().split()))
total = sum(a_lst)
if total > n:
ans = -1
else:
ans = n - total
print(ans)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1c67c11e8d837208916769996d99f60998ebd5a2 | 431963e431a277ec5682973f275f7d43f8b2b4de | /hackrankoj/strings/design_door_mat.py | 85161e85275b6c0c9e950c9dafe9bfb223d3ae88 | [] | no_license | gitter-badger/python_me | 168e1fd126f42c92de7e82833251abce63fe2d0a | 8f31da00530e7132e58d0c1c06b5805a6b0f96e6 | refs/heads/master | 2020-12-03T01:56:38.909715 | 2017-03-15T01:02:04 | 2017-03-15T01:02:04 | 95,884,399 | 0 | 0 | null | 2017-06-30T11:59:27 | 2017-06-30T11:59:27 | null | UTF-8 | Python | false | false | 602 | py |
N, M = map(int,raw_input().split())
#主要是这个输入的,map返回的是一个list,如果只有一个变量接受,那那个变量就是指向一个list,
#如果好几个,那就是unpack赋值,此时list当中元素的个数要和变量个数是一致的!
for i in xrange(1,N,2):
print ('.|.'*i).center(3*N,'-')
print 'WELCOME'.center(3*N,'-')
for i in xrange(N-2,-1,-2): #还有这个,range的范围到-1为止截止,不要和切片里面的-1混淆,好老是想怎么到最后一个元素去了,这里是一个概念么?!!
... | [
"chenye626@gmail.com"
] | chenye626@gmail.com |
0edbee8ebd09aff5b83eced5e5ffea2cae7567eb | 1860aa3e5c0ba832d6dd12bb9af43a9f7092378d | /modules/xlwt3-0.1.2/examples/formulas.py | 460a7b22c17dd8037a1feebf63797f1a29d9c3c6 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | agz1990/GitPython | d90de16451fab9222851af790b67bcccdf35ab75 | 951be21fbf8477bad7d62423b72c3bc87154357b | refs/heads/master | 2020-08-06T18:12:26.459541 | 2015-07-05T14:58:57 | 2015-07-05T14:58:57 | 12,617,111 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #!/usr/bin/env python
# -*- coding: windows-1251 -*-
# Copyright (C) 2005 Kiseliov Roman
from xlwt3 import *
w = Workbook()
ws = w.add_sheet('F')
ws.write(0, 0, Formula("-(1+1)"))
ws.write(1, 0, Formula("-(1+1)/(-2-2)"))
ws.write(2, 0, Formula("-(134.8780789+1)"))
ws.write(3, 0, Formula("-(134.8780789e-10+1)"))
ws.w... | [
"522360568@qq.com"
] | 522360568@qq.com |
cab031ae11fb3718e0a6baeb7ec9c3ccfef1d7e9 | b92e187f60b1bc8bd74eaa0ffc6e1ac50911a08e | /python/randperson.py | 34f0715c975e12cabe2b53093dfeccf3c4ab59a7 | [] | no_license | code-xD/codefundo-hack | ad5b149726188bd15be7476f14adf90f08ff33d7 | f4883015d2d5f4b1b6a493ffa58249c46fc544a1 | refs/heads/master | 2022-12-10T10:41:30.388439 | 2019-08-20T12:06:19 | 2019-08-20T12:06:19 | 195,676,080 | 0 | 1 | null | 2022-05-25T03:12:11 | 2019-07-07T16:56:28 | CSS | UTF-8 | Python | false | false | 1,305 | py | from random import randint
import json
def genper():
randperlist = []
with open("randomdata/names.dat", 'r') as names:
with open("randomdata/address.dat", 'r') as address:
with open("randomdata/pin.dat", 'r') as pins:
for i in range(50):
randpersonDict =... | [
"shivansh586@gmail.com"
] | shivansh586@gmail.com |
2faad1676557dc4b03d872486ecf0b9987f89875 | 9a5b0bcc1302373fc37315e15def172e2d5a8e3a | /demo/libdemo/list_mobiles.py | ce3c4a8aad9f7232493144ebd7556683338cf873 | [] | no_license | srikanthpragada/PYTHON_06_APR_2020 | b74a7d2e80d8a8ffe203ba5bd562484e80b3502b | f999c5ca001137d21b9cd6ca55f3e35dd0e6c3ca | refs/heads/master | 2021-05-25T15:02:38.057653 | 2020-05-07T13:29:01 | 2020-05-07T13:29:01 | 253,799,331 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | f = open("mobiles.txt", "rt")
mobiles = []
for line in f.readlines():
parts = line.strip().split(',')
mobiles.extend(parts)
f.close()
for mobile in sorted(mobiles):
print(mobile)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
2c5cac0cff0f1ded9317a146c18bfbd93283ec12 | b4166044870d1c026e86c95ac41e3e3613ee424f | /python_basic/abc083_b.py | 2601012108b74d5bd9f1837c7d3fee4758f9b704 | [] | no_license | nsakki55/AtCoder | 2cbb785415a7c0b9df9953ddc3706c90a5716a03 | 03c428e8eb8f24b8560d00e2388ba75509619690 | refs/heads/master | 2020-05-31T04:33:06.400697 | 2020-01-19T13:41:41 | 2020-01-19T13:41:41 | 190,099,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
if a<=sum(map(int,list(str(i))))<=b:
ans+=i
print(ans) | [
"n.sakki55@gmail.com"
] | n.sakki55@gmail.com |
b2081078ee4bfd2203caa42da05edebc5a56f1d9 | 34bfa980bf04365bde38f30506c4e375a5e40186 | /Question3.py | 60192f77eb5e5a9f96e621ac29b7a136b6039461 | [] | no_license | krishnabojha/Insight_workshopAssignment4 | a797f6fa650c099f3d2f3e86dce82bc670d158e6 | dcc2b9bae8ada46dc440b73406cea7b79796cff8 | refs/heads/master | 2022-11-10T15:12:22.742117 | 2020-07-05T12:55:46 | 2020-07-05T12:55:46 | 277,301,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | ############## find Anagram word of paragraph
from collections import defaultdict
def find_anagram(words):
groupedWords = defaultdict(list)
for word in words:
groupedWords["".join(sorted(word))].append(word)
print("The word and it's anagram : ")
for group in groupedWords.valu... | [
"ojhakrishna010@gmail.com"
] | ojhakrishna010@gmail.com |
11def6de3c772d0ff5c0f3a581b1122036c21c10 | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0918_Maximum_Sum_Circular_Subarray/try_1.py | d4bcafd84f354962e6ea4f78b507e82d76e60c5c | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 653 | py | class Solution:
def maxSubarraySumCircular(self, A: List[int]) -> int:
# Kadane's algorithm : https://www.youtube.com/watch?v=86CQq3pKSUw
def Kadane(A):
cur_max = max_sum = A[0]
cur_min = min_sum = A[0]
sum = A[0]
for i in range(1, len(A)):
... | [
"f14051172@gs.ncku.edu.tw"
] | f14051172@gs.ncku.edu.tw |
799897d2411998aa3a754bb8328495b8a607867c | 74cafb5c10a700fb7aca1447edff45235563b304 | /Exercises_2/loops/l12.py | d2c7ddfe1173577eabb409c9819df25394b2d98b | [] | no_license | marcinpgit/Python_exercises | 68be4e0e731ba5efb48c4d5cf28189ed7df8d179 | 149fc3a811c743c2e32d04960f682f158fd34c1f | refs/heads/master | 2021-07-04T16:07:38.001001 | 2017-09-27T21:42:27 | 2017-09-27T21:42:27 | 104,941,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # Write a Python program that accepts a sequence of lines (blank line to terminate) as input and
# prints the lines as output (all characters in lower case)
lines = []
while True:
l = input()
if l:
lines.append(l.upper())
else:
break;
for l in lines:
print(l) | [
"marcinp2012@gmail.com"
] | marcinp2012@gmail.com |
0a9067acff6d6d906b49a2d4d1295289d14610ad | d1ad901e1e926d9c92ce4dc7a7ba3c6ee91a65e2 | /tests/portstat/test_portstat.py | 3750cfd7d64c998e2098e254e336ab52960060f4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | SubhajitPalKeysight/sonic-mgmt | ff59c2c5baf53cc2575aea2d541278fc9cf56977 | e4b308a82572996b531cc09cbc6ba98b9bd283ea | refs/heads/master | 2022-12-31T01:03:47.757864 | 2020-10-15T11:04:37 | 2020-10-15T11:04:37 | 286,815,154 | 1 | 1 | NOASSERTION | 2020-08-11T18:08:34 | 2020-08-11T18:08:33 | null | UTF-8 | Python | false | false | 7,977 | py |
import logging
import pytest
from tests.common.helpers.assertions import pytest_assert
from tests.common.utilities import wait
logger = logging.getLogger('__name__')
pytestmark = [
pytest.mark.topology('any')
]
def parse_column_positions(separation_line, separation_char='-'):
'''Parse the position of each ... | [
"noreply@github.com"
] | SubhajitPalKeysight.noreply@github.com |
b2c183b7fdf094d29b43ebc5e76045156e4d658c | 8930d3c7a4c8441c4129b49fc98c5c88c395fa67 | /deepy/core/disconnected_grad.py | 49a2afa2ff44e3371c9e54710a7d8925594c2d59 | [
"MIT"
] | permissive | degerli/deepy | 2b5d1f456cdd025b609aad4a47eaa55494960bdc | 090fbad22a08a809b12951cd0d4984f5bd432698 | refs/heads/master | 2020-04-15T00:27:30.637696 | 2017-01-10T04:27:39 | 2017-01-10T04:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from theano.compile import ViewOp
from theano.gradient import DisconnectedType
class DisconnectedGrad(ViewOp):
def grad(self, args, g_outs):
return [ DisconnectedType()() for g_out in g_outs]
def connection_pattern(self, node):
return [[False]]
... | [
"raphael@uaca.com"
] | raphael@uaca.com |
297e61e05829aff2550077a269e98ab8d80e37cd | a60e81b51935fb53c0900fecdadba55d86110afe | /MachineLearning/Softmax Regression/main.py | 0835b6604536cd468caf7d5d2807bb8b80fecde4 | [] | no_license | FrankieZhen/Lookoop | fab6855f5660467f70dc5024d9aa38213ecf48a7 | 212f8b83d6ac22db1a777f980075d9e12ce521d2 | refs/heads/master | 2020-07-27T08:12:45.887814 | 2019-09-16T11:48:20 | 2019-09-16T11:48:20 | 209,021,915 | 1 | 0 | null | 2019-09-17T10:10:46 | 2019-09-17T10:10:46 | null | UTF-8 | Python | false | false | 4,138 | py | # 2018-9-30
# Softmax Regression
# python 机器学习算法
import numpy as np
import random as rd
import matplotlib.pyplot as plt
def loadData(file_name, skip=True):
"""
载入数据
"""
feature = []
label = []
file = open(file_name)
for line in file.readlines():
feature_tmp = []
label_tmp = ... | [
"33798487+YangXiaoo@users.noreply.github.com"
] | 33798487+YangXiaoo@users.noreply.github.com |
4d9848e2c6c4c0920d5eb8244bab8e9739ce5e48 | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/command_lib/kuberun/flags_test.py | be981d4155210013659894e9e3bedb5c88470db0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 5,681 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 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... | [
"actions@github.com"
] | actions@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.