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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c7bb1673981cf1ed24dc3268493e926dbed7325e | 2455062787d67535da8be051ac5e361a097cf66f | /Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_738.py | 9e8620b81cb1403077f96d97129d6c9a48873c8f | [] | no_license | kmtos/BBA-RecoLevel | 6e153c08d5ef579a42800f6c11995ee55eb54846 | 367adaa745fbdb43e875e5ce837c613d288738ab | refs/heads/master | 2021-01-10T08:33:45.509687 | 2015-12-04T09:20:14 | 2015-12-04T09:20:14 | 43,355,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PAT")
#process.load("BBA/Analyzer/bbaanalyzer_cfi")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.load('Configuration.EventContent.EventContent_cff')
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.St... | [
"kmtos@ucdavis.edu"
] | kmtos@ucdavis.edu |
5196d1e64b5fb81e24e750fef2df4b21bee75646 | 479696ed99f10e449308bf3379e8b3d167365ebe | /spa/migrations/0006_auto__chg_field_mix_title.py | dfb4bf030f46410d19c07ad244be39c232dd2b12 | [
"BSD-2-Clause"
] | permissive | fergalmoran/dss | 7c690ba0b858c3d7d115af54655954ecee64407e | 684fb4030e33212c3ecde774ca86cb74a1ffc8ac | refs/heads/master | 2021-07-06T02:46:49.064282 | 2015-01-04T22:19:31 | 2015-01-04T22:19:31 | 5,353,985 | 0 | 0 | BSD-2-Clause | 2021-06-10T17:35:38 | 2012-08-09T10:03:17 | JavaScript | UTF-8 | Python | false | false | 16,256 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Mix.title'
db.alter_column(u'spa_mix', 'title', self.gf('django.db.models.fields.CharFiel... | [
"fergal.moran@gmail.com"
] | fergal.moran@gmail.com |
66ac2692352f0a5f791832e0e94b339c0114130d | 578bdcf2720805c1075ba348764983d99031911f | /Udacity/Hackerrank/Python Generators/prime_number.py | 0cd0ae59c44eb3425187659a67b59dfde8620d90 | [] | no_license | mrudula-pb/Python_Code | 994de4720289ded0a55017407d27b1d0f0b08c65 | 0dcdc6589d3c614bd1e6a03aa5c2b55664b9e6b2 | refs/heads/master | 2023-03-25T16:52:27.420925 | 2021-03-22T21:40:37 | 2021-03-22T21:40:37 | 350,476,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py |
def check_prime(number):
for divisor in range(2, int(number ** 0.5) + 1):
if number % divisor == 0:
return False
return True
value = check_prime(2)
print(value)
| [
"mrudulapolavarapu@gmail.com"
] | mrudulapolavarapu@gmail.com |
6ab7cf510d5d31d1893060487705a171360b9037 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_ltl_infinite_state/18-extending_bound_36.py | e8c0d69e04efe42fc7f242700e8ef7a444fd8601 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,424 | py | from typing import Tuple, FrozenSet
from collections import Iterable
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msat_make_not, msat_mak... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
f8357c5fbc9d1cc8439c6f4dcde1207b8d795b57 | 29f6b4804f06b8aabccd56fd122b54e4d556c59a | /CodeAnalysis/SourceMeter_Interface/SourceMeter-8.2.0-x64-linux/Python/Tools/python/astroid/tests/resources.py | 03d45623fecda846c17a7b4088d054413c44c475 | [
"Apache-2.0"
] | permissive | obahy/Susereum | 6ef6ae331c7c8f91d64177db97e0c344f62783fa | 56e20c1777e0c938ac42bd8056f84af9e0b76e46 | refs/heads/master | 2020-03-27T11:52:28.424277 | 2018-12-12T02:53:47 | 2018-12-12T02:53:47 | 146,511,286 | 3 | 2 | Apache-2.0 | 2018-12-05T01:34:17 | 2018-08-28T21:57:59 | HTML | UTF-8 | Python | false | false | 2,373 | py | # Copyright 2014 Google, Inc. All rights reserved.
# contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
#
# This file is part of astroid.
#
# astroid is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundat... | [
"abelgomezr45@gmail.com"
] | abelgomezr45@gmail.com |
10312512ec5bb50d42a17331847c87905d872535 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2129/60792/251992.py | bb252099bb4818ca24690d96fb3c2ca68175212b | [] | 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 | 123 | py | n=int(input())
count=0
while n!=1:
if n%2==0:
n=n//2
else:
n=n-1
count+=1
print(count)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
2b8be2aeed918c270e1676da965fe5fdcb587c62 | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /BOJ/Python/5430_AC.py | 99d3c6a86c437339ec939eb8199c2b0eed1a0f4d | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | # baekjoon source = "https://www.acmicpc.net/problem/5430"
import sys
T = int(sys.stdin.readline())
for test_case in range(T):
meto = sys.stdin.readline().strip()
count = int(sys.stdin.readline())
len_meto = len(meto)
first = -1
c = sys.stdin.readline()
len_c = len(c)
c = c[1:len_c - 2].s... | [
"djestiny4444@naver.com"
] | djestiny4444@naver.com |
30e1c976566bb28599db9f3287b764540219faef | 30a37ab89a4a8101fb53308301628e8a7458d1fe | /test/functional/mempool_limit.py | cec38f48e5de886c44c4177d801a91ffd1a9f984 | [
"MIT"
] | permissive | BFBCOIN/bfbcoin-core | 1001e55f54a073ac645443c40fd5c7e6d117c07c | 7c3b6dcc8e63f8041331846e0d8230c8db059e23 | refs/heads/master | 2020-04-03T15:31:05.749852 | 2018-10-30T11:36:00 | 2018-10-30T11:36:00 | 155,365,385 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Copyright (c) 2017 The bfb Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mempool limiting together/eviction with the wallet.""... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
1e7107daf91ac3e6cc7dc2170334bdc94649cb89 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5706278382862336_0/Python/AlonH/2014C1A.py | c5e1e86cdaf0c09e44104a4a883bdd4b1e7750b8 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | import math
f = open("A-small-attempt0.in","r")
o = open("A-small-answers.txt","w")
T = int(f.readline())
for t in range(1,T+1):
inp = [float(a) for a in f.readline().split("/")]
p = inp[0]
q = inp[1]
print(p,"/",q)
b = int(math.log(q,2))
print(b)
p = p/(q/(2**b))
print(p)
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
916921a156a5df7facf6056f5dbcab774da038e9 | 0e0cf67455424e68705c428fc2a5cd71e74879f6 | /practico_03/ejercicio_04.py | 378e079e9a55c528232d49537c3db72bfe3d1fce | [] | no_license | JoacoDiPerna/frro-soporte-2019-12 | cf43a3a6f722350891051816aac9d7e50a91add4 | f918c094346ba350c0672596fe316c60ae8fdc7c | refs/heads/master | 2020-04-29T00:29:57.757014 | 2019-08-09T19:39:30 | 2019-08-09T19:39:30 | 175,695,790 | 1 | 0 | null | 2019-08-09T19:39:32 | 2019-03-14T20:38:41 | Python | UTF-8 | Python | false | false | 1,118 | py | # Implementar la funcion buscar_persona, que devuelve el registro de una persona basado en su id.
# El return es una tupla que contiene sus campos: id, nombre, nacimiento, dni y altura.
# Si no encuentra ningun registro, devuelve False.
import datetime
from practico_03.ejercicio_01 import create_connection
from practi... | [
"franmrivera@gmail.com"
] | franmrivera@gmail.com |
b67611e1022940616dfa02c1031329d904b7f33e | 426742533fc90d9240d01f0d0347a1648cc91430 | /freeways/migrations/0002_auto_20150621_0106.py | ddf17e24c9e4270ee812a4c5a5b93968f01785a1 | [] | no_license | kdechant/freeways | 5093a67ad917cf02fab4706ea21b81b05d41e84a | 8a9b73304db06c2423b2729bbe8f72aaa1bff53d | refs/heads/master | 2021-09-29T05:39:48.687864 | 2020-01-08T04:32:42 | 2020-01-08T04:33:46 | 37,783,501 | 0 | 0 | null | 2021-06-10T17:35:47 | 2015-06-20T19:45:57 | Python | UTF-8 | Python | false | false | 1,164 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('freeways', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='routesegment',
name... | [
"keith.dechant@gmail.com"
] | keith.dechant@gmail.com |
b12fd17fff74d25b03c124c311932fb6787afc78 | b34808a8571340dcb3d70bd29d59930a6a3e4463 | /catalogueapp/views.py | eb6bf54a399a469eece4d25c8cec86c633a415a4 | [] | permissive | OpenDataServices/iCAN-Scot-Catalogue | 110ee5030b258555a45e9061feb97a5ce031cc48 | 205cf3e6e8ef984f3f4e3d89537c21bdafb805a1 | refs/heads/master | 2021-08-04T08:31:15.411708 | 2020-06-25T09:24:32 | 2020-06-25T09:34:27 | 191,113,427 | 1 | 1 | BSD-3-Clause | 2020-06-05T21:15:14 | 2019-06-10T06:52:06 | Python | UTF-8 | Python | false | false | 6,626 | py | from django.shortcuts import render, redirect
from django.http import Http404, JsonResponse
from django.contrib.auth.decorators import permission_required, login_required
from catalogueapp.forms import AddForm, EditOrganisationForm
from catalogueapp.tools import ALISS_URL, ALISS_Importer
from catalogueapp.models import... | [
"james.baster@opendataservices.coop"
] | james.baster@opendataservices.coop |
551154a56e6dfddcdd8af08b2bb59c3cdd0641ae | e7c03b71f26c463b2670c52cd2fddbc198e3c8cb | /apps/djing2/apps.py | 5b7f6f1a79897f208bfb04a3f0217bad381fe9a7 | [] | no_license | nerosketch/djing2 | 71cc96f4829fc047d788dd7d8a94f1035e9740f9 | 1fbb0941f26389cbfdc8015527ab0d426c2e2c01 | refs/heads/master | 2023-01-13T15:12:50.492646 | 2022-11-18T11:24:21 | 2022-11-18T11:24:21 | 196,469,351 | 7 | 3 | null | 2020-02-29T19:38:37 | 2019-07-11T21:50:34 | Python | UTF-8 | Python | false | false | 87 | py | from django.apps import AppConfig
class Djing2Config(AppConfig):
name = "djing2"
| [
"nerosketch@gmail.com"
] | nerosketch@gmail.com |
b7e62fcc6d1d6be43665ce941a5acff73bb88b22 | 92207eb2c2d8014da01831c3273efc581929f5c7 | /step1/app.py | 95d48d2908cb9ca1917bf5984e015f3806c89131 | [] | no_license | garetroy/createyourownserver | 8de61511a96f65330056f06c23a5a5d880193248 | 768c587fb14a047ba838caca28f8ff519f10cb4b | refs/heads/master | 2020-03-26T04:18:21.643119 | 2018-08-12T20:37:55 | 2018-08-12T20:37:55 | 144,496,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import flask, os
from flask import render_template, Flask
app = flask.Flask(__name__)
@app.route('/')
def home():
return flask.render_template('home.html')
@app.route('/page2')
def page2():
return flask.render_template('secondpage.html')
if __name__ == '__main__':
port = int(os.environ.get('PORT', 5000))
app... | [
"mygarett@gmail.com"
] | mygarett@gmail.com |
564417eb8bcf4a0b26bad12b6b03cb0d0390b708 | ce6538b5b7da162c1c690a346e7ec9ae0a6291f3 | /glass_mine.py | 6247053e40d8deebcb40be09594181b1019c11c7 | [] | no_license | DaniTodorowa/Softuni | 391f13dd61a6d16cd48ee06e9b35b2fd931375df | f7c875fda4e13ec63152671509aaa6eca29d7f50 | refs/heads/master | 2022-11-25T23:34:49.744315 | 2020-08-02T08:23:44 | 2020-08-02T08:23:44 | 278,938,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Glass:
capacity = 250
def __init__(self):
self.content = 0
def fill(self, ml):
if (self.capacity - self.content) >= ml:
self.content += ml
return f"Glass filled with {ml} ml"
return f"Cannot add {ml} ml"
def empty(self):
self.content = 0
... | [
"danitodorova2106@gmail.com"
] | danitodorova2106@gmail.com |
072e921e8d2f60228a301e318a11571a82146dd8 | c2e49d32b2613d702dd06067bd0ec7846a319fd5 | /arelle/DialogArcroleGroup.py | cc9e7e8f45295a1a9ffd5633177bd3217e776755 | [
"Apache-2.0"
] | permissive | hamscher/Arelle | c9a020a5955a313c14a4db3a4e7122ec9599714c | 64c1beddcc7163e571011faf07a03d8ffe18bb78 | refs/heads/master | 2023-08-24T14:12:49.055954 | 2021-10-17T16:55:56 | 2021-10-17T16:55:56 | 284,703,106 | 0 | 0 | Apache-2.0 | 2020-08-10T15:48:15 | 2020-08-03T13:08:08 | Python | UTF-8 | Python | false | false | 7,702 | py | '''
Created on Jun 15, 2012
@author: Mark V Systems Limited
(c) Copyright 2012 Mark V Systems Limited, All rights reserved.
'''
from tkinter import Toplevel, N, S, E, W, PhotoImage
try:
from tkinter.ttk import Frame, Button
except ImportError:
from ttk import Frame, Button
import os, re
from arelle.UiUtil impo... | [
"fischer@markv.com"
] | fischer@markv.com |
8ddae95edc4c8a92a22c923d4aa6fc4611593209 | 23f59ad45ac6b889f40b029a506fcc310c06aadb | /web/tests/test_request_context.py | 99450ac6e3553a206fe50cc8847514944f406b5b | [] | no_license | ForeverDreamer/im | bac08b9b28fbdd7cc0ced9c4c1f152f318ecb670 | 962c512226422b00d12dbb31de3d448eca4cbbdc | refs/heads/main | 2023-07-17T17:19:34.400825 | 2021-08-12T10:07:11 | 2021-08-12T10:07:11 | 369,503,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | from flask import request
from web.app import app
def test_request_context():
with app.test_request_context('/?name=Peter'):
assert request.path == '/'
assert request.args['name'] == 'Peter'
| [
"499361328@qq.com"
] | 499361328@qq.com |
f0b14cf2d440998ba5c2e88973e4f5352225f39b | 9a44d81e02b02aaf2c27433b4b8ebd15aa1f6279 | /multiples.py | c6058a39363ac9aa463bd9b727bf54a481ba5b51 | [] | no_license | sabareesh123/guvi-2 | 91ce0fba591c7565dd377b038b014988daddd68e | 98c2e22746a8c2c2942b42c256b88e23dafcda39 | refs/heads/master | 2020-06-20T13:43:05.536627 | 2019-07-16T06:42:33 | 2019-07-16T06:42:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | n = int(input())
for i in range(1,6):
s = n*i
print(s,end=" ")
| [
"noreply@github.com"
] | sabareesh123.noreply@github.com |
e44f26b7a18c8d4a5582ff84ed15f48867d9be49 | 2eb779146daa0ba6b71344ecfeaeaec56200e890 | /python/oneflow/test/modules/test_adaptive_pool.py | d8b2c08d0e1713a48de811b2e58505d8ab5d9f1a | [
"Apache-2.0"
] | permissive | hxfxjun/oneflow | ee226676cb86f3d36710c79cb66c2b049c46589b | 2427c20f05543543026ac9a4020e479b9ec0aeb8 | refs/heads/master | 2023-08-17T19:30:59.791766 | 2021-10-09T06:58:33 | 2021-10-09T06:58:33 | 414,906,649 | 0 | 0 | Apache-2.0 | 2021-10-09T06:15:30 | 2021-10-08T08:29:45 | C++ | UTF-8 | Python | false | false | 3,468 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | hxfxjun.noreply@github.com |
79d739837ad0c7eb49a3da4aa3773672688ce62f | 4b3c4878b48b618608d42de1a7b476a37b46b9b8 | /atcoder/abc100c.py | 065fe6541fd2bf67959f14a90eec4756d9e3005f | [] | no_license | zfhrp6/competitive-programming | 3efd2a35717974c5ed9af364181a81144b6c8f19 | 459e7106ac4ba281217ce80cdc014023ce794bc3 | refs/heads/master | 2021-01-10T01:42:20.496027 | 2019-08-03T12:10:43 | 2019-08-03T12:10:43 | 51,929,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | N = int(input())
a = list(map(int, input().split()))
def div2count(num):
ret = 0
while num % 2 == 0:
ret += 1
num = num // 2
return ret
print(sum(map(div2count, a)))
| [
"coricozizi@gmail.com"
] | coricozizi@gmail.com |
870a6ee86f3d3892ed79a10bc1bd26231e441502 | fb8792f0a62f3b3658197a7aabd6aeecf8e311c9 | /news/views.py | 6ea24217bedd4ceae946a571f306a01414e25d96 | [] | no_license | munisisazade/matrix_tutorial | 5ddb3af6ba958e663465356de24ae1e3112f5559 | 22718e2b937bc8856ac024059b9ba2780af38f7e | refs/heads/master | 2020-03-22T06:11:36.399412 | 2018-07-11T17:59:43 | 2018-07-11T18:00:14 | 139,616,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.shortcuts import render
from django.http import HttpResponse
from news.models import Article
from news.forms import ArticleForm
from django.contrib import messages
from django.core.paginator import Paginator
# Create your views here.
def index(request):
if request.method == 'GET':
obj = {}
... | [
"munisisazade@gmail.com"
] | munisisazade@gmail.com |
8ef6aae5ce529d7db5c1522ac34dfb38391949bd | 7bc0075367290ff06565991e19033b13f0604f96 | /Mundo 3/aula16/desafio073.py | 74b06bdc97ec15c23b8957a536d52baf2183d0f8 | [] | no_license | iamtheluiz/curso_em_video_python | 298acd90e36473fbf797ba7bf85d729d0ca28407 | aa4247b7d206771f9c9b08ad5d8585c3813ddaff | refs/heads/master | 2020-04-12T16:17:51.672662 | 2019-01-22T00:10:41 | 2019-01-22T00:10:41 | 162,608,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # imports
print("""
|******************|
| Desafio073 |
|******************|
""")
print("Tabela do Brasileirão!")
# Variáveis
tabela = ('Palmeiras', 'Flamengo', 'Internacional', 'Grêmio', 'São Paulo', 'Atlético-MG', 'Athletico-PR', 'Cruzeiro', 'Botafogo', 'Santos', 'Bahia', 'Fluminense', 'Corinthians', 'Chapeco... | [
"iamtheluiz.dev@gmail.com"
] | iamtheluiz.dev@gmail.com |
dff03e0fa17d53d82ad062bc2d6e9dd9b6101a86 | 24a13b07623ce41e57ea4df1fcce0befb14d3406 | /model/densenet201/model4_val5.py | 55e955e927b2209bb720ad20719f51cf1d10ecd0 | [
"MIT"
] | permissive | shorxp/jd-fashion | 5f37e6c2235200944869e9a0da4d741c89d63b9e | 817f693672f418745e3a4c89a0417a3165b08130 | refs/heads/master | 2021-09-22T18:40:13.030601 | 2018-09-13T13:50:05 | 2018-09-13T13:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | py | """
以model1为原型,新增real crop
"""
import math
import os
import queue
import time
import keras
from keras.layers import Dense, BatchNormalization, Activation
import config
from util import data_loader
from util import keras_util
from util.keras_util import KerasModelConfig
model_config = KerasModelConfig(k_fold_file="1.... | [
"aa531811820@gmail.com"
] | aa531811820@gmail.com |
dd8785c0296e0a16b4aa8fe1670176cd02aefe7c | 2324dea2cb3003c8ab7e8fd80588d44973eb8c77 | /Euler_8_390c.py | 35f9f192188dc8a48a12c80b619a504e65823cbe | [] | no_license | MikeOcc/MyProjectEulerFiles | 5f51bc516cb6584732dc67bb2f9c7fd9e6d51e56 | 4d066d52380aade215636953589bf56d6b88f745 | refs/heads/master | 2021-01-16T18:45:44.133229 | 2015-05-27T18:28:43 | 2015-05-27T18:28:43 | 5,876,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #
#
# Euler 278
#
#
from time import time
from Functions import primes,RetFact
from collections import defaultdict
from math import sqrt
def FactorSieve(n):
n += 1
f = defaultdict(list)
for p in xrange(2, n):
if p not in f:
for i in xrange(p + p, n, p):
j, k = i, 1
while j % p... | [
"mike.occhipinti@mlsassistant.com"
] | mike.occhipinti@mlsassistant.com |
771a4a4a6e322e596debdfb4b5735e6d2913aaa3 | b92adbd59161b701be466b3dbeab34e2b2aaf488 | /.c9/metadata/environment/git_practice/ib_miniprojects_backend/essentials_kit_management/interactors/get_admin_account_details_interactor.py | 99a60864937770d8a0707a63b1ffb2bb5aabc2ca | [] | no_license | R151865/cloud_9_files | 7486fede7af4db4572f1b8033990a0f07f8749e8 | a468c44e9aee4a37dea3c8c9188c6c06e91cc0c4 | refs/heads/master | 2022-11-22T10:45:39.439033 | 2020-07-23T09:31:52 | 2020-07-23T09:31:52 | 281,904,416 | 0 | 1 | null | 2022-11-20T00:47:10 | 2020-07-23T09:08:48 | Python | UTF-8 | Python | false | false | 548 | py | {"filter":false,"title":"get_admin_account_details_interactor.py","tooltip":"/git_practice/ib_miniprojects_backend/essentials_kit_management/interactors/get_admin_account_details_interactor.py","undoManager":{"mark":-1,"position":-1,"stack":[]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":... | [
"r151865@rguktrkv.ac.in"
] | r151865@rguktrkv.ac.in |
6c3bcd0588462a4e5f7f60dd06b5f197d341edf8 | 19049316bb6d769bffcb61d2dfb2b241b65fdb65 | /server/app/ai/mmfashion/mmfashion/models/registry.py | 8cbc143707cb4ee919a9e5b735f1957dcb75e9fe | [
"Apache-2.0"
] | permissive | alveloper/fashion-scanner-v1 | 7e43b515ad329d19982e5dd5fe92dfbab0bad948 | 067d73cbe3417c2ef337e64ca251c4f883713974 | refs/heads/master | 2023-08-12T03:21:32.169558 | 2021-09-07T15:38:58 | 2021-09-07T15:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from ..utils import Registry
BACKBONES = Registry('backbone')
GLOBALPOOLING = Registry('global_pool') # global pooling
ATTRPREDICTOR = Registry('attr_predictor') # predict attributes
CATEPREDICTOR = Registry('cate_predictor') # predict category
LOSSES = Registry('loss') # loss function
PREDICTOR = Registry('predic... | [
"bo373@naver.com"
] | bo373@naver.com |
14c48c22b1e687c04b46200c8bfa69ee603b2a11 | e47bc9571c59b1c6e8aeb4231a286ab8577802d4 | /easy/888-fair-candy-swap.py | 8aee86dc55f4d02630c6b484960f1a8054bca360 | [
"MIT"
] | permissive | changmeng72/leecode_python3 | d0176502dfaf3c8b455ec491c72979dd25b66b3e | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | refs/heads/main | 2023-05-27T10:35:43.465283 | 2021-06-09T00:20:59 | 2021-06-09T00:20:59 | 375,127,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | class Solution:
def fairCandySwap(self, aliceSizes: List[int], bobSizes: List[int]) -> List[int]:
aliceSum = sum(aliceSizes)
bobSum = sum(bobSizes)
diff = (aliceSum - bobSum)/2
bob_dict = {}
for i in range(len(bobSizes)):
bob_dict[bobSiz... | [
"noreply@github.com"
] | changmeng72.noreply@github.com |
99393122c191269914bababfb52fe894d63c4585 | f889bc01147869459c0a516382e7b95221295a7b | /swagger_client/models/bundle_data_bundle_option_extension_interface.py | 186314a8a23389437f249b99836d42fcf7756f20 | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
0a3864ab0e1a31b27abb83ceb06746239bded135 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03600/s387875234.py | e5d97020c3d1d82fca4cb72b6c976aa6b076e6c5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | import heapq
from collections import deque
N = int(input())
A = [[int(a) for a in input().split()] for _ in range(N)]
def dijkstra_heap(s, edge, n):
#始点sから各頂点への最短距離
d = [10**9+1] * n
used = [True] * n #True:未確定
d[s] = 0
used[s] = False
edgelist = []
for a,b in edge[s]:
heapq.heappu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6a7f5db06b119930e8b4142194d3392943046c09 | 3d50cdc1fd01717dbcc43007d96a390631725ab4 | /models/api/backtest/analysis.py | 588e064d6eec6a3962b2eb0095390f9a30caab1e | [] | no_license | danielwangxh/golden_eye | 22540fc9b60e710263d348de2ecce13928b795fc | 1f6c9dc6b5cb806398024e5b678f150c074a689a | refs/heads/master | 2021-06-12T06:02:15.028910 | 2017-02-05T04:31:16 | 2017-02-05T04:31:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,485 | py | # -*- coding: utf8 -*-
import os
from simplejson import loads
import pandas as pd
from models.api.backtest.calculator import FittingDataCalculator
from sell_signals.base import SellSignal
from consts import ema_file_dir, init_point, init_time, init_offset
from libs.utils import ifcode_day_map
def read_df(path):
... | [
"onestar1967@gmail.com"
] | onestar1967@gmail.com |
62ff16334955a6f7413d9d5e053b966753d69de4 | e47bd43968732b55907aa1b8d3530b9ec12bc0e1 | /pipeline/pipeline_stack.py | 91dd67f89f5ee450816f3521282190c65eac6b36 | [
"Apache-2.0"
] | permissive | damshenas/enechobot | 523763c8bb3d54e86fb6586c4883ca3008704014 | 9e346a87433abc1d95c60c3b9ee9401becf7a88f | refs/heads/main | 2023-06-28T16:21:08.637064 | 2021-08-09T10:19:08 | 2021-08-09T10:19:08 | 394,225,747 | 0 | 0 | Apache-2.0 | 2021-08-09T10:19:09 | 2021-08-09T09:15:21 | null | UTF-8 | Python | false | false | 4,368 | py |
import json
from aws_cdk import (core, aws_codebuild as codebuild,
aws_codecommit as codecommit,
aws_codepipeline as codepipeline,
aws_codepipeline_actions as codepipeline_actions,
aws_s3 as s3,
aws_lambda as lambda_)
class PipelineStack(core.Stack):
de... | [
"you@example.com"
] | you@example.com |
effe5703e8df5737683f1cdd5c1f32c9ba9485c3 | 292437b85108504a7ca91571f26a639a313501b6 | /venv2/lib/python2.7/site-packages/monasca_setup/main.py | aa428c7d23431698843c27bc087991f9cd920fb1 | [] | no_license | heekof/monitoring-agent | c86bebcf77091490df7a6b8c881b85fdb2b9e4eb | b1c079efdf2dabe854f2aa3d96f36d2ec7021070 | refs/heads/master | 2021-01-15T15:39:01.512801 | 2016-08-31T20:53:38 | 2016-08-31T20:53:38 | 58,620,098 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,290 | py | #!/usr/bin/env python
# (C) Copyright 2015-2016 Hewlett Packard Enterprise Development Company LP
""" Detect running daemons then configure and start the agent.
"""
import argparse
from glob import glob
import logging
import os
import pwd
import socket
import subprocess
import sys
import agent_config
import monasca_... | [
"bendriss-jaafar@live.fr"
] | bendriss-jaafar@live.fr |
e96ceb65864385e40bf500f14c613be2609612c7 | ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c | /venv/Lib/site-packages/qiskit/chemistry/algorithms/ground_state_solvers/minimum_eigensolver_factories/vqe_uvccsd_factory.py | b6420e3857c9e732031dfb81131ff2bd2a339632 | [
"MIT",
"Apache-2.0"
] | permissive | shivam675/Quantum-CERN | b60c697a3a7ad836b3653ee9ce3875a6eafae3ba | ce02d9198d9f5a1aa828482fea9b213a725b56bb | refs/heads/main | 2023-01-06T20:07:15.994294 | 2020-11-13T10:01:38 | 2020-11-13T10:01:38 | 330,435,191 | 1 | 0 | MIT | 2021-01-17T16:29:26 | 2021-01-17T16:29:25 | null | UTF-8 | Python | false | false | 6,073 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"vinfinitysailor@gmail.com"
] | vinfinitysailor@gmail.com |
a1b924f5f49eed987ae00f6718ac5bb748d24885 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-2962.py | 7ac76ceb1003da851367d979a20444b8c1c279b0 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,740 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
4bc43308877b9e7be2dfda43ed082c330f7aad38 | 16e69196886254bc0fe9d8dc919ebcfa844f326a | /edc/dashboard/search/tests/__init__.py | 18d1d4cedf76dc10af1643019f786e7ccc20952b | [] | no_license | botswana-harvard/edc | b54edc305e7f4f6b193b4498c59080a902a6aeee | 4f75336ff572babd39d431185677a65bece9e524 | refs/heads/master | 2021-01-23T19:15:08.070350 | 2015-12-07T09:36:41 | 2015-12-07T09:36:41 | 35,820,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from .search_methods_tests import SearchMethodsTests
| [
"ew2789@gmail.com"
] | ew2789@gmail.com |
f69e4d4f4288a29c8508e0ac794a2eaa0995a2b8 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week02/1/proxy/proxy/spiders/maoyan_20200705155728.py | f4c680398e9df42ea33eb12d51a8bd6097744c5a | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 2,559 | py | import scrapy
from proxy.items import ProxyItem
import lxml.etree
class MaoyanSpider(scrapy.Spider):
name = 'maoyan'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/']
header = {
'Content-Type': 'text/plain; charset=UTF-8',
'Cookie' : '__mta=251934006.159307299... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
fe29ddbba5045df30a1934eb9bcd7574cdc67eb7 | 71c9bf59320d5a67d1395c02ee7d68805f820db7 | /solutions/A_h_djikshtra's_algorithm.py | 28868dd91a4a652195450a6db4e23dc99f6283b9 | [] | no_license | AnjalBam/iw-assignment-python-iii | 34609eef05f4b57a3cc17166603c121c1635b2a9 | c1a05c1a0091de3b718fcb476bbc906817492294 | refs/heads/master | 2022-11-13T20:23:39.642580 | 2020-07-13T09:45:00 | 2020-07-13T09:45:00 | 279,208,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | """
A. Make pythonic solutions for each of the following data structure
and algorithm problems.
e) Dijkshtra's Algorithm
"""
from collections import deque, namedtuple
# we'll use infinity as a default distance to nodes.
inf = float('inf')
Edge = namedtuple('Edge', 'start, end, cost')
def make_edge(start, end, cost=... | [
"anjalbam81@gmail.com"
] | anjalbam81@gmail.com |
9299880d2374060c24d9a6fd117a920d11784c44 | ea2cf796332879d86561f80882da93b672966448 | /configs/rotated_retinanet/ssdd/rotated_retinanet_hbb_r50_adamw_fpn_6x_ssdd_oc.py | 6b6e85da78c1deeca585141b1fa61f5de0d0f2e7 | [
"Apache-2.0"
] | permissive | yangxue0827/h2rbox-mmrotate | 968c34adf22eca073ab147b670226884ea80ac61 | cfd7f1fef6ae4d4e17cb891d1ec144ece8b5d7f5 | refs/heads/main | 2023-05-23T10:02:58.344148 | 2023-02-14T05:28:38 | 2023-02-14T05:28:38 | 501,580,810 | 68 | 8 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | _base_ = ['./rotated_retinanet_hbb_r50_fpn_6x_ssdd_oc.py']
optimizer = dict(
_delete_=True,
type='AdamW',
lr=0.0001,
betas=(0.9, 0.999),
weight_decay=0.05,
paramwise_cfg=dict(
custom_keys={
'absolute_pos_embed': dict(decay_mult=0.),
'relative_position_bias_table'... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
bfa0210d76e2501a11b68119104d1f8ddab47ced | e76ea38dbe5774fccaf14e1a0090d9275cdaee08 | /src/xwalk/tools/build/win/FILES.cfg | 446675943eaebc95282133c60583a38067c11deb | [
"BSD-3-Clause"
] | permissive | eurogiciel-oss/Tizen_Crosswalk | efc424807a5434df1d5c9e8ed51364974643707d | a68aed6e29bd157c95564e7af2e3a26191813e51 | refs/heads/master | 2021-01-18T19:19:04.527505 | 2014-02-06T13:43:21 | 2014-02-06T13:43:21 | 16,070,101 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,094 | cfg | # -*- python -*-
# ex: set syntax=python:
# Copyright (c) 2012 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.
# This is a buildbot configuration file containing a tagged list of files
# processed by the stage/archive scr... | [
"ronan@fridu.net"
] | ronan@fridu.net |
7ff073702298c100dd9cd88ef17679ad6ee1850e | 412b699e0f497ac03d6618fe349f4469646c6f2d | /env/lib/python3.8/site-packages/Crypto/Util/Padding.py | da69e55987227357a55f8e1b57fae5f7eb8cac74 | [
"MIT"
] | permissive | EtienneBrJ/Portfolio | 7c70573f02a5779f9070d6d9df58d460828176e3 | 6b8d8cf9622eadef47bd10690c1bf1e7fd892bfd | refs/heads/main | 2023-09-03T15:03:43.698518 | 2021-11-04T01:02:33 | 2021-11-04T01:02:33 | 411,076,325 | 1 | 0 | MIT | 2021-10-31T13:43:09 | 2021-09-27T23:48:59 | HTML | UTF-8 | Python | false | false | 4,313 | py | #
# Util/Padding.py : Functions to manage padding
#
# ===================================================================
#
# Copyright (c) 2014, Legrandin <helderijs@gmail.com>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the... | [
"etiennebrxv@gmail.com"
] | etiennebrxv@gmail.com |
fd7b4afd97e2ab6d8426692b6eb6f7be4be4d1e6 | 6b1fd67270b150ec3a4983945f6374c532e0c3b5 | /pymesh/examples/md5/main.py | 6ab99a96b6f2a2fccd3c3a7466c0a19d02bdf929 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | adamlwgriffiths/PyMesh | 8078e2ff4cc93e9def368b4fbbbf52b9f8b3292e | dbed5c7a226b820fc3adb33e30f750ab1ffbd892 | refs/heads/master | 2016-09-05T09:42:43.068368 | 2013-02-03T14:52:11 | 2013-02-03T14:52:11 | 5,817,565 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | import os
from pymesh.md5 import MD5_Mesh, MD5_Anim
def load_mesh( filename ):
print 'Loading', filename
md5 = MD5_Mesh()
md5.load( filename )
# print the data out for verification
print 'version', md5.md5_version
print 'num_joints', md5.num_joints
print 'num_meshes', md5.num_meshes
... | [
"adam.lw.griffiths@gmail.com"
] | adam.lw.griffiths@gmail.com |
1e121291a3990554553ee44c813bbf62b7e065e9 | 8cdbd5986a40eeb0a14099acb0674cfd4ebe5524 | /venv/lib/python2.7/site-packages/textblob/blob.py | d4e53698d0d188b176c256aa2b025a1223ecabb9 | [
"MIT"
] | permissive | saiflakhani/twitter-stock-recommendation | 23a24d330ab15dc1d2c960836e4b68d0f5e66c0d | 50e7177375560895b31371593d03e88b07d24afd | refs/heads/master | 2023-04-22T02:45:53.739377 | 2021-05-05T14:36:25 | 2021-05-05T14:36:25 | 362,073,163 | 0 | 0 | MIT | 2021-04-27T10:33:02 | 2021-04-27T10:33:01 | null | UTF-8 | Python | false | false | 29,309 | py | # -*- coding: utf-8 -*-
"""Wrappers for various units of text, including the main
:class:`TextBlob <textblob.blob.TextBlob>`, :class:`Word <textblob.blob.Word>`,
and :class:`WordList <textblob.blob.WordList>` classes.
Example usage: ::
>>> from textblob import TextBlob
>>> b = TextBlob("Simple is better than c... | [
"alvarob96@usal.es"
] | alvarob96@usal.es |
bdc878fa3955dd1fde5a6902a51dd5a0b6813972 | 4804802271994dc54b8524ab6b22e0ef1dd68dec | /demo/__init__.py | ebc62bbce25fdbfe61be14e55801f8e954806625 | [] | no_license | addron/Django_study | 3393185dd7d6c65445670553e63fe600a36fdfa6 | 885f6e49b4c068090ab443b61723bf9f3e65040c | refs/heads/master | 2020-04-16T09:15:25.774771 | 2019-01-15T12:50:42 | 2019-01-15T12:50:42 | 165,454,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | # 让Django的ORM能以mysqldb的方式来调用PyMySQL
from pymysql import install_as_MySQLdb
install_as_MySQLdb() | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
516e94a8bd08fc5bf28a46f5f4ec6ff8a5dce10d | e7164d44058a06331c034cc17eefe1521d6c95a2 | /tools/tieba/urate/python-wrapper/melt_predict.py | 3805c92f412dc70ce42b65f942925d6170288160 | [] | no_license | chenghuige/gezi | fbc1e655396fbc365fffacc10409d35d20e3952c | 4fc8f9a3c5837e8add720bf6954a4f52abfff8b5 | refs/heads/master | 2021-01-20T01:57:18.362413 | 2016-11-08T15:34:07 | 2016-11-08T15:34:07 | 101,304,774 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | import os
import sys
import glob
from pyplusplus import module_builder
root = '/home/users/chenghuige/rsc/'
name = 'melt_predict'
#define_symbols = ['GCCXML','PYTHON_WRAPPER','NO_BAIDU_DEP']
define_symbols = ['GCCXML','PYTHON_WRAPPER']
files = [
'./gezi.include.python/commo... | [
"29109317@qq.com"
] | 29109317@qq.com |
483e5aadac9f2d40958e1167b76c220a451edcaf | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02403/s798093890.py | f1e8cb17072b4b550e16ce6c68a1df20760dc0e6 | [] | 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 | 173 | py | import sys
x=y=1
while True:
x,y=map(int,input().split())
if x==0: break
for i in range (1,x+1):
for j in range (1,y+1):
sys.stdout.write('#')
print('')
print('') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
38f127795cd68bfa908c221ad7402f05e9488ba3 | bcdb7d8ca25854eaa7f1177504b2f9531872daef | /mvpenv/bin/gunicorn | 0a06c55ea79d0ecb76a532945306cb06a92244bb | [] | no_license | rajinder-esfera/fashion-circle | ba9d8d1612821d9076958a9699a9f9d794ac4f67 | e7876589a19f7f92f95bdb5cb20f07a2b272c2cd | refs/heads/master | 2022-12-12T02:42:59.714131 | 2018-01-29T12:23:05 | 2018-01-29T12:23:05 | 117,091,007 | 0 | 2 | null | 2022-11-18T10:15:01 | 2018-01-11T11:25:06 | Python | UTF-8 | Python | false | false | 241 | #!/var/www/html/mvp/mvpenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"rajinder_mohan@esferasoft.com"
] | rajinder_mohan@esferasoft.com | |
acaa717cc2fa9068d3df78207efae985e278cb90 | ab3d5ea4bf0e48914ed14fcf16e5b1d752f199ba | /pcg_libraries/src/pcg_gazebo/parsers/sdf/type.py | cb1a1eed44a58d4c93e52ce2c604b9f40f8ec665 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | boschresearch/pcg_gazebo_pkgs | 5f1004d0de874d4d1abc4eb695777013027158b2 | 1c112d01847ca4f8da61ce9b273e13d13bc7eb73 | refs/heads/master | 2020-06-11T06:28:36.228431 | 2020-02-07T13:05:28 | 2020-02-07T13:05:28 | 193,876,180 | 44 | 3 | NOASSERTION | 2020-02-07T12:00:55 | 2019-06-26T09:45:05 | Python | UTF-8 | Python | false | false | 862 | py | # Copyright (c) 2019 - The Procedural Generation for Gazebo authors
# For information on the respective copyright owner see the NOTICE file
#
# 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
#
#... | [
"Musa.Marcusso@de.bosch.com"
] | Musa.Marcusso@de.bosch.com |
0e29b7eea6f44cbedda24a54fc2477b33a4ff5fb | 62166473c5b237bbe97c7abcafd2623a1bfc3a77 | /linked_list_queue.py | e2b18155e138b3ebc3ba7bd14cca4538c8bf0f96 | [] | no_license | ananyajana/practice_problems | bc70bd55b9012fa7fafc2037ea606bc34bd63cad | 0071a8a3753c8a9135c21fecf6b175ee3774c177 | refs/heads/master | 2023-05-15T01:23:35.146811 | 2021-06-11T21:27:40 | 2021-06-11T21:27:40 | 109,902,077 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | # problems from geeksforgeeks must do coding questions
T = int(input())
st_list =[]
N_list = []
for t in range(T):
N_list.append(int(input()))
st_list.append(input())
class Node:
# fn to initialize the node object
def __init__(self, data):
self.data = data
self.next = None
class MyQue... | [
"ananya.jana@gmail.com"
] | ananya.jana@gmail.com |
280d995579a3904e0a74306a09310df360636dd4 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2182/61406/303898.py | 0fcb1dffc2380878a68d6135d58d8e3a3cb4ebba | [] | 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 | 569 | py | T = int(input())
for a in range(0,T):
nk = input().split(' ')
n = int(nk[0])
k = int(nk[1])
circle = []
for b in range(0,n):
circle.append(1)
ptr = 0
count = 0
m=0
while count<n-1:
if ptr>n-1:
ptr = ptr-n
while circle[ptr]==-1:
ptr+=1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9eacff23f758535c87a7687002c988a9cad9bb7d | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/RZLT.py | 79c2560d453f46f7fd8351357550d6986f2de632 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://www.rezolutebio.com/news/press-releases'
... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
75ad1cf37bc5ac16b62c19cd737a317a998c3347 | f47ac8d59fe1c0f807d699fe5b5991ed3662bfdb | /binary23.py | 6f1107467849f636bfca3fa944aa05d18d2fb699 | [] | no_license | YanglanWang/jianzhi_offer | 5561d8a29881d8504b23446353e9f969c01ed0c5 | 1c568f399ed6ac1017671c40c765e609c1b6d178 | refs/heads/master | 2020-06-16T10:41:44.979558 | 2019-08-03T09:07:37 | 2019-08-03T09:07:37 | 195,543,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | class Solution:
def VerifySquenceOfBST(self, sequence):
# write code here
if len(sequence) == 0:
return False
if len(sequence) == 1:
return True
root = sequence[-1]
for i in range(len(sequence)):
if sequence[i] > sequence[-1]:
... | [
"yanglan-17@mails.tsinghua.edu.cn"
] | yanglan-17@mails.tsinghua.edu.cn |
f288784a0437bf94488c1a422eb9e0f0ca36f3e1 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/data/kernel_tests/repeat_test.py | 88e83da5bc27a9aeaa9b63ef9e314e6f97cb074f | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 3,445 | 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
b3e56b32c4b8350754af374e43a7c8207d17fd73 | f0f56524d54b924eda0bc1abcc386589ccf2a026 | /dittodemo/settings/defaults.py | 40f9289fd1b893ec30d6ee20799ba3c67e0154ac | [
"MIT"
] | permissive | vanderwal/django-ditto-demo | 052d116419b8f67db40cd7a71b793bd702672c0f | abb251d44de48191b32ef54768f638920d39d081 | refs/heads/master | 2022-02-03T21:07:14.860800 | 2017-02-09T13:50:36 | 2017-02-09T13:50:36 | 66,157,322 | 0 | 0 | null | 2016-08-20T16:43:14 | 2016-08-20T16:43:13 | null | UTF-8 | Python | false | false | 5,235 | py | """
Django settings for dittodemo project.
Generated by 'django-admin startproject' using Django 1.9.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"phil@gyford.com"
] | phil@gyford.com |
916e183c70b1243b4a91f925cfb582f468642add | c8cd63041471e7a20bf3a15c3ca96b7573f5f727 | /load_test_parser.py | 2aa9ecfacbaac77a83ac5488be6c85d639cefd4b | [] | no_license | ansonmiu0214/airbus_prototype | a992b9a04ba35da54088ff399975aac4efc7046a | 0647ec3cee330e4c58a40e10a946e57478e316ad | refs/heads/master | 2020-04-26T09:24:12.565650 | 2019-03-09T11:42:39 | 2019-03-09T11:42:39 | 173,453,998 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/bin/python3
if __name__ == "__main__":
with open('output_2.txt', 'r') as f:
lines = f.readlines()
relevant = [line.strip().split('Current latency')[1] for line in lines if line.startswith('Current latency')]
relevant = list(map(float, map(lambda x: x.strip(), relevant)))
max_latency = max(rele... | [
"ansonmiu0214@gmail.com"
] | ansonmiu0214@gmail.com |
56d0e51585b52f3fa20e1d49f5c8d541621a07ec | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/HUAWEI-PWE3-MIB.py | 3e123a0d7702a64554c396c962cbbcdad8e83ff7 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 126,657 | py | #
# PySNMP MIB module HUAWEI-PWE3-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-PWE3-MIB
# Produced by pysmi-0.3.4 at Wed May 1 13:45:54 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
31e9cd4c46e9ca7dcf3f0bccfa1cf4e7f7aa7945 | 27aaadf435779c29012233cb1dacf27bd9dd0d0f | /imagesearch-20201214/setup.py | 158893f64912b1bb6ea8f0b27a99576256e3835a | [
"Apache-2.0"
] | permissive | aliyun/alibabacloud-python-sdk | afadedb09db5ba6c2bc6b046732b2a6dc215f004 | e02f34e07a7f05e898a492c212598a348d903739 | refs/heads/master | 2023-08-22T20:26:44.695288 | 2023-08-22T12:27:39 | 2023-08-22T12:27:39 | 288,972,087 | 43 | 29 | null | 2022-09-26T09:21:19 | 2020-08-20T10:08:11 | Python | UTF-8 | Python | false | false | 2,842 | py | # -*- coding: utf-8 -*-
"""
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
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2cd72276ffa96c0292769e9e855768fde32ae8b2 | f28b2ec517ac93526ac66b0b4a4fccc8614739d0 | /HRC_arlac_monitor/Save/zinfo.py | 7b806e9f132141ae3ab8e3b52d11d788f490533d | [] | no_license | tisobe/HRC | 8b8f7137e0804d7478da17d0796c0f25c19c04e6 | aaba4e5512b14c92b8d413dd173e9e944041fa4d | refs/heads/master | 2020-03-17T14:43:00.972966 | 2018-05-16T15:28:29 | 2018-05-16T15:28:29 | 133,683,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,944 | py | #!/usr/bin/env /proj/sot/ska/bin/python
#############################################################################################################
# #
# hrc_gain_find_ar_lac.py: find new AL Lac ... | [
"isobe@head.cfa.harvard.edu"
] | isobe@head.cfa.harvard.edu |
a5df9c3956ce741cb2eb6a9c0155d07349363a1d | 7cb626363bbce2f66c09e509e562ff3d371c10c6 | /multimodel_inference/py3_v1/olds/sc3emlsm.py | dd484cd9338ae7f71742e4f7d8a632754eab4a2b | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | z0on/AFS-analysis-with-moments | 76bfd6b0361ab7e9173144dbd21b6fa2c7bf1795 | eea4735b3b6fbe31c4e396da3d798387884a1500 | refs/heads/master | 2023-07-31T20:49:20.865161 | 2023-07-19T06:57:32 | 2023-07-19T06:57:32 | 96,915,117 | 4 | 5 | null | 2020-09-02T17:39:08 | 2017-07-11T16:38:03 | Python | UTF-8 | Python | false | false | 3,249 | py | #!/usr/bin/env python
# split, three epochs in each pop, asymmetric migration at same rates in all epochs
# n(para): 11
import matplotlib
matplotlib.use('PDF')
import moments
import pylab
import random
import matplotlib.pyplot as plt
import numpy as np
from numpy import array
from moments import Misc,Spectrum,Numeri... | [
"matz@utexas.edu"
] | matz@utexas.edu |
e8d46842c93e593d1abf393ca6aab62c76269e13 | 9f35bea3c50668a4205c04373da95195e20e5427 | /third_party/blink/renderer/bindings/scripts/bind_gen/path_manager.py | 84b01c38d33b1cf2e4c6f677ce0cd1442c1f52c8 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"MIT",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | foolcodemonkey/chromium | 5958fb37df91f92235fa8cf2a6e4a834c88f44aa | c155654fdaeda578cebc218d47f036debd4d634f | refs/heads/master | 2023-02-21T00:56:13.446660 | 2020-01-07T05:12:51 | 2020-01-07T05:12:51 | 232,250,603 | 1 | 0 | BSD-3-Clause | 2020-01-07T05:38:18 | 2020-01-07T05:38:18 | null | UTF-8 | Python | false | false | 5,524 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import posixpath
import web_idl
from . import name_style
from .blink_v8_bridge import blink_class_name
class PathManager(object):
"""
Provides a ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
002fe2c73ab39e05e6d94dade6da1b7d05d694a9 | f38db79439185ab6062294e1d82f6e909d2be81e | /avazacli/models/currency.py | 1afe7f4f49b83f587263b664dcf5fb614d8f72a3 | [] | no_license | ContainerSolutions/avazacli | 3a37f8500ad1f1843acbdbb413d4949e00ec6f91 | 49618314f15d8cb2bda36e6019670fdfbed1524f | refs/heads/master | 2020-06-18T18:44:58.594385 | 2019-07-11T14:23:10 | 2019-07-11T14:23:10 | 196,406,206 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,344 | py | # coding: utf-8
"""
Avaza API Documentation
Welcome to the autogenerated documentation & test tool for Avaza's API. <br/><br/><strong>API Security & Authentication</strong><br/>Authentication options include OAuth2 Implicit and Authorization Code flows, and Personal Access Token. All connections should be enc... | [
"riccardo.cefala@container-solutions.com"
] | riccardo.cefala@container-solutions.com |
aadcbf0b94233b17dbea12ad397b0590f1241baf | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/helpers/edgedetectcolorcontroller.py | 65c2877cf2f2b4814e0f3a4c532a57a905ba4be7 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 3,793 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/helpers/EdgeDetectColorController.py
import BigWorld
import Math
from PlayerEvents import g_playerEvents
from Account import PlayerAccount
from helpers import dependency
from skeletons.account_helpers.settings_core import ISettingsC... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
f9ce519233fd2afe6e44f4421dd950aae83bb057 | 9c718b8964d476db4728fc0cf18e24292dd8cf60 | /mxshop/MxShop/apps/goods/migrations/0003_auto_20180623_1326.py | 8a898faf7e1b7893e241d7d7688d7cf50c63bdd5 | [] | no_license | 1400720231/Django-Projects | 960f9226e0f5c01628afd65b9a78e810fdeb1b83 | 72f96788163f7ffe76e7599966ddbfa1d2199926 | refs/heads/master | 2021-06-25T17:41:14.147011 | 2019-04-03T02:24:38 | 2019-04-03T02:24:38 | 114,955,012 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-06-23 13:26
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('goods', '0002_goodscategorybrand_category'),
]
operations = [
migrations.AlterModelOp... | [
"937886362@qq.com"
] | 937886362@qq.com |
40903430884cb63c47a7d28f94fa27d31ac66245 | 92adce9ebf87fc374f6cc093f68d14b7dc7a697f | /read.py | 2a08a459948865f3bdc2e5d27e913a2e6bdb6128 | [
"MIT"
] | permissive | nicolay-r/RuSentRel | 1f4f5678fdcbe342bda82834d6192a70b5c8b94c | 4fc0df1580d3da21f0be1e832e403652f73caed1 | refs/heads/master | 2021-08-27T16:49:34.342494 | 2021-08-03T06:48:39 | 2021-08-03T06:48:39 | 128,990,497 | 6 | 2 | MIT | 2021-08-03T06:48:39 | 2018-04-10T20:22:16 | Python | UTF-8 | Python | false | false | 3,153 | py | #!/usr/bin/python
from reader.common.bound import Bound
from reader.common.entities.collection import EntityCollection
from reader.common.lemmatization.mystem import MystemWrapper
from reader.entities.collection import RuSentRelDocumentEntityCollection
from reader.entities.entity import RuSentRelEntity
from reader.news... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
c7d4ab5c5775b06d53e956773414cb4210cd5023 | c4a3eeabe660e5d6b42f704d0325a755331ab3c5 | /hyperion/hyperion_sedcom.py | 93f0c5a6dcaec34cae9ebd884d6942b366f84b70 | [] | no_license | yaolun/misc | dfcfde2ac4a6429201644e1354912d3a064f9524 | 049b68ce826ddf638cec9a3b995d9ee84bf6075a | refs/heads/master | 2021-01-21T23:54:08.953071 | 2018-06-02T19:46:18 | 2018-06-02T19:46:18 | 26,666,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,970 | py | def hyperion_sedcom(modellist, outdir, plotname, obs_data=None, labellist=None, lbol=False, legend=True, mag=1.5,\
obs_preset='sh', dstar=1, aper=[3.6, 4.5, 5.8, 8.0, 10, 20, 24, 70, 160, 250, 350, 500, 850]):
"""
obs_data: dictionary which obs_data['spec'] is spectrum and obs_data['phot'] is photometry
obs... | [
"allenya@gmail.com"
] | allenya@gmail.com |
6eed42b73bb347a25e6a01089fb43ea62d05b786 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/pandas/tests/scalar/timedelta/test_arithmetic.py | 9fd1780c8ab77d3e11c59fa5cff81d29267a95f1 | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fa4d666d9e29f8945376652f7fb7084c3be064a66d0592c045742bd872cd8934
size 22242
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
5744415b18511a257ef945bcfa2df6f5ae1b04d1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02954/s798759253.py | 36a83144ddfc3b7f136a3c3568e3fead3056d7a7 | [] | 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 | 709 | py | S = input() + 'R'
numbers = [0] * (len(S) - 1)
offset = 0
length = 0
right = 0
left = 0
for index, (s0, s1) in enumerate(zip(S, S[1:])):
length += 1
if s0 == 'R' and s1 == 'L':
right = length - 1
left = length
elif s0 == 'L' and s1 == 'R':
if length % 2 == 0:
numbers[of... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
30331b3f91ed037754998e3d702452ca29ec74bf | fca1edf135c49edf08a51d6758a18b0bffe69309 | /todobackend/todobackend/views.py | 47d0a4f5fcc9bf4b254736902e56b77beafda449 | [] | no_license | BakdauletBolatE/myfirstTodo | 9d1daa8ac08806524dff1cc975d165dca8fb1b1f | c8e9f29afca06ce2198847770c777f96c09eefbb | refs/heads/master | 2023-04-18T04:07:27.684527 | 2021-04-30T20:04:15 | 2021-04-30T20:04:15 | 363,240,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.shortcuts import render
def index(request):
return render(request,'todoapp/index.html') | [
"you@example.com"
] | you@example.com |
c7c6601ede207fab5b186671af8d6270d38078ca | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0451_0500/LeetCode460_LFUCache.py | b209a542f7836f153654b987fa1ac33c01e19f6d | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 4,277 | py | '''
Created on Apr 23, 2017
@author: MT
'''
class Node(object):
def __init__(self, key, val):
self.val = val
self.next = None
self.prev = None
self.freq = 1
self.key = key
class LFUCache(object):
def __init__(self, capacity):
"""
:type capacity: int
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
8b634a88c02b8398beec70c04cb11898abd76653 | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleHub/hub_all_func/test_ID_Photo_GEN.py | f43c8cd99596b00e1f7cb91e1e66c9e5fca71e42 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 642 | py | """ID_Photo_GEN"""
import os
import cv2
import paddle
import paddlehub as hub
if paddle.is_compiled_with_cuda():
paddle.set_device("gpu")
use_gpu = True
else:
paddle.set_device("cpu")
use_gpu = False
def test_ID_Photo_GEN_predict():
"""ID_Photo_GEN"""
os.system("hub install ID_Photo_GEN")
... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
e0993846926170ccec472592ba4c25eadd8b01b5 | 0fa98dbc4d6256121b9f478a13ff2254047fb543 | /12_01_typical_interview_tasks/K. One in a binary number.py | b5aaa9111c3f0e1f571ed9c30e528b3a2e6a41b5 | [] | no_license | vamotest/yandex_algorithms | 48d5b29cb6e2789ea8f7e8024c798851058f1d4c | a588da3d21ff95e2437818493769719600f3eaf7 | refs/heads/master | 2023-03-19T20:44:59.373046 | 2021-01-20T19:06:28 | 2021-01-20T19:06:28 | 330,421,669 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 358 | py |
def binary_convert(number):
binary_number = ''
while number > 0:
binary_number = str(number % 2) + binary_number
number = number // 2
return binary_number
def find_amount(binary_number):
return binary_number.count('1')
if __name__ == '__main__':
count = find_amount(binary_co... | [
"vamotest@gmail.com"
] | vamotest@gmail.com |
de6b02deb9e80be2b82f5b65928b23b1d4744a49 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4029/codes/1643_1054.py | 8a3c8ff612464a89b4701c45ea86a8670cc77b5b | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | x= float(input("Coordenada x: "))
y= float(input("Coordenada y: "))
if (((2 * x) + y == 3)):
print ("ponto pertence a reta")
else:
print ("ponto nao pertence a reta")
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
37591cad599ca130ba2cdf6a22dc5e86d13f686f | ae0f37ebb76bce44c5e366d62424b5ef411f94b3 | /3. OOP/Tutorial/Rational.py | f83ae514fef27d48b4fc04bc06c6667e5dfeaacd | [] | no_license | khangsk/PPL | a30b656a8a70b8f6dd96ce39f57d3540495a5a26 | b8e3a04210796e03ff257c05cd1e60923f016d2f | refs/heads/master | 2023-02-21T09:28:25.216162 | 2021-01-18T09:35:15 | 2021-01-18T09:35:15 | 306,542,959 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import math
class Rational:
def __init__(self, n = 0, d = 1):
assert(d != 0)
g = math.gcd(abs(n), abs(d))
self.numer = int(n / g)
self.denom = int(d / g)
def __str__(self):
return str(self.numer) + "/" + str(self.denom)
def __add__(self, another):
targetTyp... | [
"hoanggiakhangsk@gmail.com"
] | hoanggiakhangsk@gmail.com |
061aebdb29e7c6907a3a9ac112f56e81483271f8 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_156/832.py | 6c50802fc3b768a580b91d24aaf771150f9157d8 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | #!/usr/bin/env python
import sys
from math import ceil, floor
def solve_naive_test(pancakes_per_plate, minute=0):
if not any(pancakes_per_plate):
return minute
else:
splits = xrange(len(pancakes_per_plate))
eaten_one = [(x - 1) if x > 0 else 0 for x in pancakes_per_plate]
sol... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7f635137feec443809b1f3a31a83d1c7aeda4e2d | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/compute/v1/get_node_group.py | 9d5b2f685d300d8534f4e615881b009826f37060 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 10,612 | 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 copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
db6b50f1fb9d0dd10bd09ef05b6d826b4e4dc87e | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /elbv2_read/ssl-policy_list_custom.py | 03504aaa68bf723809ae33af5c520e79b7bfbca0 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,992 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import read_no_parameter_custom
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/elbv2/describe-ssl-policies.html
if __name_... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
c7a70ffaa62499a456c09c3f1f3ef7cd0b05a611 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/pyquil/startPyquil387.py | 06eb003d185853b93d56f5429d08368942bce8d7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,341 | py | # qubit number=2
# total number=20
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1c84b99c1dbcc510063d63711b2450fd162f9f19 | 4f408d65db60911f56110c351cb3b64835e0c5fb | /caffe2/python/predictor/predictor_exporter_test.py | 61e3fb0a5ad87ad8bfa994bb3bffe2727df0a74f | [
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | KeyKy/caffe2_SSD | a02c065aef2dbcfd00faae8be0440d7a4ff0fb76 | 7235688ea5e212dbe8609d780dd94c8c7d9fef54 | refs/heads/master | 2021-09-18T14:36:11.247427 | 2018-07-10T09:59:35 | 2018-07-10T09:59:35 | 89,928,918 | 8 | 5 | null | 2018-07-27T02:14:38 | 2017-05-01T14:04:20 | Jupyter Notebook | UTF-8 | Python | false | false | 4,555 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import tempfile
import unittest
import numpy as np
from caffe2.python import cnn, workspace, core
from caffe2.python.predictor_constants import predictor_constants as pc... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e79c9f4bec7946370a9fb9d8c7ec083d5df103b7 | f02485de5a101f3b69a45b2c4e71bd950ee55eba | /Z_other/del/ncPreprocessNew.py | f15f0e79cda38afbbe7ca272efe385042833c0f5 | [] | no_license | newjokker/PyUtil | ef4266b0ca32157f9de6e2cac1b1a10647190d99 | 32e64be10a6cd2856850f6720d70b4c6e7033f4e | refs/heads/master | 2020-11-28T00:19:02.073391 | 2019-12-23T02:07:40 | 2019-12-23T02:07:40 | 229,654,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | # -*-coding:utf-8 -*-
import os
import sys
import datetime
import xml.dom.minidom
from xml.dom.minidom import Document
import datetime
# from Decorator.time_it import time_this
class NcFileToTiff(object):
"""传入 nc 文件,输出 tiff 文件"""
def __init__(self):
# 需要处理的文件
self.files_to_transform = []
... | [
"18761609908@163.com"
] | 18761609908@163.com |
a3b82adff7f91cff3f104899144e29691bc4658b | cd40b7cc395f36740000ed4a4144b1c0666ab0fd | /tests/test_hstrat/test_auxiliary_lib/test_parse_from_numeral_system.py | 16155f656f410b5cdd20c314308e9e350596ab27 | [
"MIT"
] | permissive | mmore500/hstrat | 94fd22c86a87a5707590b9398ef679444ed82d6d | b2d2caded1db5e2dc681d9f171d7c74b322c55c3 | refs/heads/master | 2023-08-31T03:36:44.457576 | 2023-08-25T14:39:29 | 2023-08-25T14:39:29 | 464,531,144 | 5 | 2 | NOASSERTION | 2023-08-25T13:07:52 | 2022-02-28T15:11:45 | Python | UTF-8 | Python | false | false | 2,824 | py | import random
import string
import pytest
from hstrat._auxiliary_lib import (
parse_from_numeral_system,
render_to_numeral_system,
)
@pytest.fixture
def alphabet():
return string.digits + string.ascii_lowercase
def test_parse_from_numeral_system(alphabet):
assert parse_from_numeral_system("0", alp... | [
"mmore500.login+gpg@gmail.com"
] | mmore500.login+gpg@gmail.com |
04d2d4b1fd96ad5507c4890234ccd8f5a3e0cd22 | 4d2a007fb3810d0b1de676d0193eb24cb0134180 | /site.py | 3d10e3e877d02cd1ca4193ab1643d66aed39797e | [] | no_license | Rossonero/qlin | 241a822402beb4b05fe69f024978148a5758a765 | 02cc017daf3e540cfd9b5bfe7e021c176d5e90e1 | refs/heads/master | 2021-01-18T00:26:45.747983 | 2012-02-13T01:43:12 | 2012-02-13T01:43:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
def Site_infor(request):
'''
站点信息展示前台
将所有信息展示开来
'''
t = get_template('site_infor.html')
#从数据库中将信息进行展示
cx = sq.connect('store/site.sqlite')
cu = self.cx.cursor()
#开始查找信息
strr = "select * from site"
cu.execute(strr)
print cu.fetchone()
html = t.... | [
"superjom@gmail.com"
] | superjom@gmail.com |
8308e473e1a26f517a95db64f71ad6b5fee0cbe0 | faca8866b3c8aca30a915d8cb2748766557ed808 | /object_detection_updata/builders/box_predictor_builder.py | 7fe88e08bc63c355e4f03b45417646d6635acdbc | [] | no_license | yongqis/proposal_joint_retireval | 6899d80f8fb94569c7b60764f6e7de74bcfa9cc8 | 97b086c62473ab1a5baf45743535fce70c3f8c20 | refs/heads/master | 2020-05-25T19:07:22.946008 | 2019-06-03T07:09:04 | 2019-06-03T07:09:09 | 187,943,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,966 | 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 applica... | [
"syq132@live.com"
] | syq132@live.com |
aa3b3557c2779676f7b441397483f7569c7d4901 | 9ca6885d197aaf6869e2080901b361b034e4cc37 | /ElectroWeakAnalysis/ZReco/python/zToTauTau_ETau_EventContent_AODSIM_cff.py | ff21d1bbfb2a6f565db5f6386bf52e4f0df33be0 | [] | no_license | ktf/cmssw-migration | 153ff14346b20086f908a370029aa96575a2c51a | 583340dd03481dff673a52a2075c8bb46fa22ac6 | refs/heads/master | 2020-07-25T15:37:45.528173 | 2013-07-11T04:54:56 | 2013-07-11T04:54:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import FWCore.ParameterSet.Config as cms
from Configuration.EventContent.EventContent_cff import *
from ElectroWeakAnalysis.ZReco.zToTauTau_ETau_EventContent_cff import *
AODSIMZToTauTauETauEventContent = cms.PSet(
outputCommands = cms.untracked.vstring()
)
AODSIMZToTauTauETauEventContent.outputCommands.extend(AOD... | [
"sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch"
] | sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch |
9b9b87f2ae5c5a6e2cebe144fce70e4c548ef29b | 66ab8fac9fb19e5ff470be0fa7b2b73600231f16 | /pyble/const/service/link_loss.py | 069e803e4cc77d7d9397e6abc7ba441d3108fc97 | [
"MIT"
] | permissive | bgromov/PyBLEWrapper | e97bbc2299f880838d246a8c6fdb27b05cb72af1 | 8a5d016e65b3c259391ddc97c371ab4b1b5c61b5 | refs/heads/master | 2020-03-25T21:41:43.702666 | 2018-08-12T23:38:16 | 2018-08-12T23:38:16 | 144,185,816 | 0 | 0 | MIT | 2018-08-09T17:50:12 | 2018-08-09T17:50:12 | null | UTF-8 | Python | false | false | 29 | py | NAME="Link Loss"
UUID=0x1803
| [
"brett.chien@gmail.com"
] | brett.chien@gmail.com |
3a2079455f632c92b4b8d209389e7bd7bd73ee00 | b4a4fa30ae3f857e209356d1a28273b3cbbdc3e3 | /api_basic/views.py | 3b09cd7401a291568f6dc1dda8cbc8a97862ad2f | [] | no_license | sahin88/Django_Rest_Framework_Account_Article_RestAPI | c0fd4b97eb5629c3b65781663dd82edc6f0de384 | f5d7d12c04852392583f881f1e334d71c4582c4d | refs/heads/master | 2023-03-25T19:02:17.427294 | 2020-04-21T09:26:51 | 2020-04-21T09:26:51 | 257,544,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,326 | py | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse ,JsonResponse
from rest_framework.parsers import JSONParser
from .models import Article
from .serializers import ArticleSerializer
from rest_framework.decorators import api_view
from rest_fram... | [
"sahinmuratogur@gmail.com"
] | sahinmuratogur@gmail.com |
141fb7da59e137862d2a34b048d6dee9113a4465 | 6e601105760f09d3c9f5306e18e4cf085f0bb4a2 | /10000-99999/10868.py | f86c7f9e367022589178de78365c22587a18d80c | [] | no_license | WSJI0/BOJ | 6412f69fddd46c4bcc96377e2b6e013f3bb1b524 | 160d8c13f72d7da835d938686f433e7b245be682 | refs/heads/master | 2023-07-06T15:35:50.815021 | 2023-07-04T01:39:48 | 2023-07-04T01:39:48 | 199,650,520 | 2 | 0 | null | 2020-04-20T09:03:03 | 2019-07-30T12:48:37 | Python | UTF-8 | Python | false | false | 768 | py | '''
10868번
최솟값
'''
import sys
input=sys.stdin.readline
def init(start, end, node):
if start==end:
tree[node]=a[start]
return tree[node]
mid=(start+end)//2
tree[node]=min(init(start, mid, node*2),init(mid+1, end, node*2+1))
return tree[node]
def findMin(start, end, node, left, right):... | [
"lifedev@naver.com"
] | lifedev@naver.com |
2d89215d3f25c0013d427f43c8a31bbfa0744d4c | 4d332c45578246847ef2cdcdeb827ca29ab06090 | /modules/Bio/PopGen/GenePop/Controller.py | e9866838933b8ef22e36ba20611c8b64317f340e | [
"MIT"
] | permissive | prateekgupta3991/justforlearn | 616cc297a2a6119fa959b9337a5e91c77a11ebf7 | 3984c64063b356cf89003e17a914272983b6cf48 | refs/heads/master | 2021-03-12T22:09:12.184638 | 2014-01-28T10:37:07 | 2014-01-28T10:37:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | /usr/share/pyshared/Bio/PopGen/GenePop/Controller.py | [
"prateekgupta.3991@gmail.com"
] | prateekgupta.3991@gmail.com |
451f6e60c661a8a37b1823007d8f99a173a8ec2a | 60139399c13b87c150573808d23c8f00542672a2 | /admux/mixins/websites.py | 4d3b238caf36bfa27f567f0d7fc5337f55b466db | [] | no_license | adverserve/admux_client | d4781501b5e8486a072eb3dc6c19580292c517f8 | 1c633072e75d2f3be660565825a5f77c9699e68c | refs/heads/master | 2021-01-10T20:29:45.695490 | 2013-10-24T14:52:21 | 2013-10-24T14:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # coding: utf-8
from admux import helpers
class WebsitesClientMixin(object):
def websites(self, links=None, expand=None):
"""
http://admux-demo.trust-box.at/developer/api/v1/get/websites/
links: Boolean
expand: array of strings
"""
url = '/websites'
params... | [
"stephan.poetschner@gmail.com"
] | stephan.poetschner@gmail.com |
f6f2e5c22f89a074e87d518b68687ad9227a830c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/344/68278/submittedfiles/testes.py | e1878449ad74b2fb2bf5ad590a3c0f974f6d628b | [] | 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 | 82 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
idade = int(input('digite sua idade')) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d3a372d9cda192f974f6edac19afaf207d458e26 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02785/s474912270.py | 3746381a7a22f2e9f041861db8ba3b5bb71bc13a | [] | 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 | 378 | py | import sys
input = sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
def main():
mod=10**9+7
N,K=MI()
h=LI()
h.sort()
if K>=N:
print(0)
exit()
for i in range(K):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
34e433c211df58f96eb9e335278588ea0f8e6417 | 5ddb3d3095ae782671d4592549e1fec38b73eb84 | /spacy/tests/pipeline/test_functions.py | fbb88ade26a6127552ab9bcb9f6ab40c4e39d3ef | [
"MIT"
] | permissive | Ali-Tahir/spaCy | c1ea9c5389044bc1e1f0e30f176b9b6e60a10690 | 9e210fa7fdb8e376655e7a7ab7debd3ffd718a63 | refs/heads/master | 2020-08-30T02:27:16.538275 | 2019-10-28T22:59:03 | 2019-10-28T22:59:03 | 218,234,283 | 0 | 0 | MIT | 2020-02-09T06:47:46 | 2019-10-29T08:05:03 | null | UTF-8 | Python | false | false | 882 | py | # coding: utf-8
from __future__ import unicode_literals
import pytest
from spacy.pipeline.functions import merge_subtokens
from ..util import get_doc
@pytest.fixture
def doc(en_tokenizer):
# fmt: off
text = "This is a sentence. This is another sentence. And a third."
heads = [1, 0, 1, -2, -3, 1, 0, 1, -2... | [
"ines@ines.io"
] | ines@ines.io |
eff19506d086bf10caf3a7ff7cc64b66606e87dd | 888899f0cb3e6e7b28a9de39001a1fd1c177cd35 | /COMPLETE PYTHON-3 COURSE/Chapter-19-READ_WRITE_CSV_FILES/read_write_csv_simultanously.py | 4d67f080dfecfeb586057bc4ec3209854e177e35 | [] | no_license | VivakaNand/COMPLETE_PYTHON_3 | ef162d71d3a44bf661fcc1a8aacce31e7953cd7c | b3b835afe7671fdc3d29d912650fd4ccd3bc83f6 | refs/heads/master | 2023-02-04T10:13:41.881939 | 2020-12-23T08:30:51 | 2020-12-23T08:30:51 | 323,839,528 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | # reader, DictReader
# writer, DictWriter
from csv import DictWriter, DictReader
with open('final.csv', 'r') as rf:
with open('file2.csv', 'w',newline='') as wf:
csv_reader = DictReader(rf)
csv_writer = DictWriter(wf, fieldnames=['first_name','last_name','age'])
csv_writer.writeheader()
... | [
"vivekjetani83@gmail.com"
] | vivekjetani83@gmail.com |
15cada83ac6b82129e73f14015c85f9399b59db6 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2019_12_01/operations/_virtual_machines_operations.py | 86e37d500f8e3ac1ecdf9bcedfff149562445ccb | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 155,767 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | gaoyp830.noreply@github.com |
6f3462b065e1eb0c051d3a4dd2aa4e0fdd81ec81 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_09_01/aio/operations/_azure_firewalls_operations.py | ce7bf9e6e32d162196e02b3f33bf07cfe339d996 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 29,781 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
1a7330518eff453cd30004ae2fb01e90bfe63fbe | 80616a1bfacc2081d983c3d8ec5b3f55295a323b | /serial_coms_list.py | 2bee4f29591ba132b7218896bc837498d8e321c6 | [] | no_license | choyai/kis-personal-space-bot | 47a681b679b7b6caf2c3b10124603e4475e3b73b | 8dbce0b6cd88a1b326a2e9e4c9b3cf5120a083ee | refs/heads/master | 2020-06-07T11:19:19.921167 | 2019-06-24T07:14:15 | 2019-06-24T07:14:15 | 193,010,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,085 | py | # from scipy.spatial import distance as dist
# from imutils import perspective
# from imutils import contours
import numpy as np
# import argparse
# import imutils
# import cv2
import serial
import time
import struct
# from InverseKinematics import *
# from Graph import astar
import pickle
from math import pi
from rand... | [
"choyaichaiyo@gmail.com"
] | choyaichaiyo@gmail.com |
1de6c30ae80ba4c72a4ba8bcee65ddbea304c734 | 747142c31420254647caf85cc8532f4d13b00146 | /django-web/bare-bones-web/adoptions/adoptions/models.py | 96eccf0f66d1489ffac826247486abafdc94a5ca | [] | no_license | jankidepala/machine-learning-IOT | fdf5f9b9c767405a940b1963d5f68b219e437c51 | 125bac2a3a023779e79f89dcf4b7304e6e2601ae | refs/heads/master | 2022-11-19T05:35:50.180173 | 2020-07-25T08:15:28 | 2020-07-25T08:15:28 | 107,033,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from django.db import models
# Create your models here.
class Pet(models.Model):
name = models.CharField(max_length=101)
submitter = models.CharField(max_length=101)
species = models.CharField(max_length=30)
breed = models.CharField(max_length=30, blank=True)
name = models.CharField(max_length=101)... | [
"you@example.com"
] | you@example.com |
140216cf494403c143fccbc18bd45cf02c208cdb | 789a540bbb79c334cbeaf3687876bfd939e4290b | /app/handlers/private/admin/message/menu/message_distribution/distribution_options/wait_confirm_activate_schedule.py | d89fe3846c47add5b6d184ed3e7278c4db191b2a | [] | no_license | ExissBrr/TRIGON-GARANT-BOT | 2cc96f5f6f195f4e76c164db4f8acafbfa5b7662 | 812acf060eb92e6fad21568a75e6dba7ce0da4d9 | refs/heads/main | 2023-07-04T18:22:43.507453 | 2021-08-17T14:51:30 | 2021-08-17T14:51:30 | 392,725,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | from aiogram.dispatcher import FSMContext
from aiogram.types import Message
from app.data import text
from app.loader import dp
from app.states.private.message_distribution import MessageSendingStates
from app.utils.bot import send_main_keyboard
from app.utils.db_api.models.messages_for_sending import MessageForSendin... | [
"vladbelykh2002@gmail.com"
] | vladbelykh2002@gmail.com |
0ce5d4785f5a66c6f189dd549293a858ec245133 | 6a3c2f5d5622ee0e8a58d871efd1cb7344fd5a13 | /extras/scripts/travis_yml_generator.py | e9077b52beeafbee052524ffdeee430a3e52297f | [
"Apache-2.0"
] | permissive | StetHD/fruit | 745e24dbb3d899f56adf3220bb0409470ec853c3 | b9806196a70e9b92ddf90cb255f2d31ea8d6bcae | refs/heads/master | 2020-03-31T01:17:50.610355 | 2018-09-16T08:06:25 | 2018-09-16T08:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,312 | py | #!/usr/bin/env python3
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"poletti.marco@gmail.com"
] | poletti.marco@gmail.com |
faded2f996b520e49df380a399e225a2a20919d5 | f34219ce57fbe6b446fb4f1aa966f136a9b3bf42 | /ex26.py | 6dc076019fe108fa44d2e7b17af7da7080d86319 | [] | no_license | DikranHachikyan/python-programming-20200323 | 467f60c07ac47e4146e63967eeb1acb76b8dd21c | e6d6185561969fc478caaedcd0981476d56d5c5b | refs/heads/master | 2021-04-20T09:52:25.151484 | 2020-04-09T07:24:33 | 2020-04-09T07:24:33 | 249,673,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py |
# 1. декларация
def addNumbers(a, b, c = None):
res = 0
if c:
res = a + b + c
else:
res = a + b
return res
if __name__ == '__main__':
# 2. извикване
x, y = 7, 8
r = addNumbers(x,y)
print(f'{x} + {y} = {r}')
z = 10
r = addNumbers(x, y, z)
print(f... | [
"dhachikian@expert-bg.org"
] | dhachikian@expert-bg.org |
a635b80d79ea126dcfd89d7fcde391bb6f7f0a2e | 42caf42f20b348c3c87d7d4f9cd59e61bc5e9f4e | /result/views.py | 19d1dd5da5edeb9256feb16f0c0e82e38c6bad15 | [] | no_license | Dihfahsih1/Automated-Result-School-Management | cfe43cc37c64a101447e50688f956190c67032ba | 7c4be1b70d26e89939f38f1df3a3ca04e7e3e96e | refs/heads/master | 2022-11-30T02:57:44.827519 | 2020-08-15T12:46:28 | 2020-08-15T12:46:28 | 287,744,827 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,180 | py | from django.shortcuts import get_object_or_404, redirect, render
from django.contrib.auth.decorators import login_required
from .decorators import lecturer_required, student_required
from .forms import *
from .models import User, Student, Course, CourseAllocation, TakenCourse, Session, Semester, CarryOverStudent, Repea... | [
"dihfahsihm@gmail.com"
] | dihfahsihm@gmail.com |
f1c7573bba1a0892112b60e9cdc75fae7385b0fa | e83cfcdf15ddb362b4611488dc4982bf7832464b | /libs/python/test/test_endpoint_indigo_traceroute.py | feff4e323b776909d67c5b7d97dade312242b3e0 | [] | no_license | shivamjaiswal64/api-rest-meetings | ce2b59edb0b588de8a4bd0f6ff6addecc557cca6 | f4750f72ca5f8358c4dc00737abc104a28d62934 | refs/heads/master | 2020-03-22T14:33:39.825474 | 2018-07-07T01:22:40 | 2018-07-07T01:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py | # coding: utf-8
"""
BlueJeans Meetings REST API
## Video That Works Where You Do. This site provides developers access to APIs from BlueJean's Meetings meeting service. From here you will be able to make actual API calls to manage User Accounts, Meetings, and Recordings. Also, you can pull analytical data ... | [
"brandon@fuller.name"
] | brandon@fuller.name |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.