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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
47ca697e284e6664d1e966bda357bb112aa56356 | d3b80b8de39d4bb4bab02b0e8b5092c2e32aff24 | /login-getmileage.py | d3256d39233544095f5551a9f87de3fbfbd22e09 | [] | no_license | brightparagon/learn-python-crawl-scrape | 658a058fee4ecdb31c92be54b5cb684f5d4d4658 | f28769fd469f69a485e560dc42d20aa08c51dc77 | refs/heads/master | 2021-05-02T05:23:13.512441 | 2018-07-02T14:58:54 | 2018-07-02T14:58:54 | 120,919,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin
USER = "<TEST>"
PASS = "<TEST>"
# start a session
session = requests.session()
# login
login_info = {
"m_id": USER,
"m_passwd": PASS
}
url_login = "http://www.hanbit.co.kr/member/login_proc.php"
res = session.post(url_login, data=logi... | [
"kyeongmo2@gmail.com"
] | kyeongmo2@gmail.com |
5c94e0ecd48a3e1e6b1341ab6049f1b1c6cc7455 | e0e55462707e8257559736f212ad086fbb5f9af5 | /util/path_config.py | 47d0bb3fd2df3e4777e54233ca5de1acb9a0a277 | [] | no_license | jtpils/SSRNet | 45e5c97f82e21c4f672d3c7e61de0c6036b7a95c | 05d70706f4ecdecd502890a799b0d316db15ebd3 | refs/heads/master | 2022-11-26T11:46:24.597002 | 2020-07-28T02:56:33 | 2020-07-28T02:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import sys
open3d_path = '/mnt/A/jokery/projects/Open3D_test3/src/build/lib/'
tc_path = '/mnt/A/jokery/projects/08_2/'
sys.path.append(open3d_path)
from py3d import *
def get_tc_path():
return tc_path
| [
"noreply@github.com"
] | jtpils.noreply@github.com |
b306dcb0889d1ec282242b257ade90f599f43fea | 227b02ca30168c31accd1b7d38c3436b737a2f8e | /lenstronomy/Data/image_noise.py | 3ab46bd7ca164bfecd4003235a32c6a0ead736ba | [
"MIT"
] | permissive | Thomas-01/lenstronomy | b7d802c6213f0b7780acb7946b9bb150081b5d34 | 36db4c7f43ba28d6bdecdab1f15c537043f4a286 | refs/heads/master | 2020-06-03T04:22:06.123622 | 2020-03-31T18:33:47 | 2020-03-31T18:33:47 | 191,435,987 | 0 | 0 | MIT | 2019-07-11T03:22:29 | 2019-06-11T19:21:27 | Python | UTF-8 | Python | false | false | 4,711 | py | import numpy as np
class ImageNoise(object):
"""
class that deals with noise properties of imaging data
"""
def __init__(self, image_data, exposure_time=None, background_rms=None, noise_map=None, verbose=True):
"""
:param image_data: numpy array, pixel data values
:param expo... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
ec3e99c49cd07250adacf2d417ff14a17a27c5f3 | eea704186322a0441124bae2eaefc185c75a69f1 | /setup.py | 581f4773531a0ab6f4988a45d2bc94e64bcfe9dd | [
"BSD-3-Clause"
] | permissive | ScottTaing/taolib | ff5c78c8e6ba0522f5d932975fdc8805c0564b4e | fbd4138d1be9a3ef032284a52662213833921efc | refs/heads/master | 2021-01-17T23:27:14.511401 | 2011-05-06T05:04:55 | 2011-05-06T05:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python
import os
import sys
from distutils.core import setup, Extension
def main():
if not float(sys.version[:3])>=2.4:
sys.stderr.write("CRITICAL: Python version must be greater than or equal to 2.4! python 2.6.2 is recommended!\n")
sys.exit(1)
setup(name="taolib",
ve... | [
"vladimir.liu@gmail.com"
] | vladimir.liu@gmail.com |
7bcb803514e2cca016a206f9f03f15936cec735d | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /sleekxmpp/features/feature_starttls/starttls.py | eb5eee1d5f5b8798c4f721522214b325b276dc94 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 2,100 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import logging
from sleekxmpp.stanza import StreamFeatures
from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin
from sleekxmpp... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
73ccc88785e3b447db6019e216b1ee9fca44786e | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /tools/upload/googlecode_upload.py | 7d179f3a0d96db814dd7cef9a9724e7b4579bd08 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py | #!/usr/bin/env python
#
# Copyright 2006 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
# uplo... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
038857cb63e1a53e8498e0e7db5a344f570b070f | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /Networking/socket/socket_echo_client_dgram.py | 9a94a43d153d9f68fb0d97cdb5884623b3572b54 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 439 | py | import socket
import sys
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ('localhost', 10000)
message = b'This is the message, it will be repeated'
try:
print('Sending {!r}'.format(message))
sent = sock.sendto(message, server_address)
print('Waiting for receive')
data, serve... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
f72480accb059522869217f8cf37e191dde1a7b4 | 201f07e3ddfd4f1b24c24fc794aa980a255fb2ab | /barriers/views/assessments/overview.py | e1bd181b2078e37846d386e93ed49544758a1f6b | [
"MIT"
] | permissive | uktrade/market-access-python-frontend | 7dab68eed0b35205f4c78758ab88c815f65631c2 | 9510c31f7264c4092f76fce336d05b6709802b1c | refs/heads/master | 2023-09-05T09:38:42.473232 | 2023-08-31T08:42:49 | 2023-08-31T08:42:49 | 225,406,107 | 7 | 3 | MIT | 2023-09-13T09:41:55 | 2019-12-02T15:20:46 | Python | UTF-8 | Python | false | false | 586 | py | from django.conf import settings
from django.views.generic import TemplateView
from ..mixins import BarrierMixin
class AssessmentOverview(BarrierMixin, TemplateView):
template_name = "barriers/assessments/overview.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwarg... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
71522388895aa9b96e91d33115a18a44030a8f11 | dc182e5b4597bdd104d6695c03744a12ebfe2533 | /Hackerrank Solutions/array.py | 548b0132cc10c538e8612616e21c82103c603c13 | [] | no_license | srinaveendesu/Programs | 06fb4a4b452445e4260f9691fe632c732078d54d | f6dbd8db444678b7ae7658126b59b381b3ab0bab | refs/heads/master | 2023-01-27T14:42:40.989127 | 2023-01-18T22:36:14 | 2023-01-18T22:36:14 | 129,948,488 | 1 | 0 | null | 2022-09-13T23:06:04 | 2018-04-17T18:30:13 | Python | UTF-8 | Python | false | false | 4,002 | py | #QQ# #https://www.hackerrank.com/challenges/array-left-rotation/problem
#!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
nd = input().split()
n = int(nd[0])
d = int(nd[1])
a = list(map(int, input().rstrip().split()))
l = (a[::][d:]+ a[:d])
... | [
"srinaveen.desu@gmail.com"
] | srinaveen.desu@gmail.com |
26d0cb12f5092278fa8ddcee18b2141fd5dd5574 | 9382a3acd3637a1c242045bff8109dee844d869a | /src/webhook_server_for_evaluation.py | 10a64c5634e81ba458af050880bc5ec18bf38dba | [
"MIT"
] | permissive | byeongkyu/dialogflow_dialog | 4cf19133f73d8ea82b8fb98e33a661804217a5db | c7ae5ce65f8fb6fa830817ab186a9851a26473e0 | refs/heads/master | 2020-03-17T20:07:05.222328 | 2018-08-23T23:42:39 | 2018-08-23T23:42:39 | 133,893,838 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,691 | py | #!/usr/bin/env python
#-*- encoding: utf8 -*-
import os
import time
import rospy
import threading
import logging
import json
import requests
import random
from std_msgs.msg import String, Int16, Empty
from flask import Flask, Response, request, make_response, jsonify
WEATHER_TEXT = [
"The weather in {city} now i... | [
"byeongkyu@gmail.com"
] | byeongkyu@gmail.com |
3455029efbae033f2c0da3c1c4522c8c9b33cb33 | e6a90d21e9a983476adda3cccc832a828875cea9 | /Lib/site-packages/ffc/jitobject.py | 19a9d2db3872418e1f60e0ccf70f4753e65356c4 | [] | no_license | maciekswat/dolfin_python_deps | e28c27780d535c961e4b3129bb17628a4ff7167a | 7af15cd0ab522436ca285f8422faa42675345f55 | refs/heads/master | 2021-01-25T12:14:55.779591 | 2014-04-23T22:51:19 | 2014-04-23T22:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | # Copyright (C) 2008-2013 Anders Logg
#
# This file is part of FFC.
#
# FFC 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 Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | [
"maciekswat@gmail.com"
] | maciekswat@gmail.com |
e47ec77483d8ea21ac2c7f17ceca3591cb18192a | df858cb8172f73aad1af25496ac86e637a203bf4 | /Introdução a Programação com Python - exercícios baixados do site oficial/Listagens/07.45 - Jogo da forca.py | bf6002fa6bef2b078f9bd73b91e7c106e5860d59 | [] | no_license | emersonleite/python | 33cd48788e4f641da244ba9fd0460b9a5b1ef0bc | 8157fcd5c7ee7f942a4503ad386e7d2054d5acfc | refs/heads/master | 2020-03-08T04:09:57.857429 | 2019-03-27T14:56:46 | 2019-03-27T14:56:46 | 127,913,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2014
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpressão - ... | [
"emerson.bl@gmail.com"
] | emerson.bl@gmail.com |
7287bd809c049bf9525538a634f1b9f8bb262e56 | 866a3a0b02ad10ba7e0f4db18efd38a213b0e3c5 | /18_0.py | b4b60322a0693c11ff34a160f7ce3c5641122b56 | [] | no_license | SleepwalkerCh/Leetcode- | 6da7f5859184ae86c6f16d10e3570f837f2508d6 | 9472b9dd388a8774339ecf9d8ff6cb61b7ea821f | refs/heads/master | 2021-03-07T10:58:25.086406 | 2020-03-19T07:50:32 | 2020-03-19T07:50:32 | 246,260,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #18. 4Sum18
# 很简陋的做法,大概率会超时,在O(n^4)基础上做了一些小优化,但是结果未进行查重
# WRONG ANSWER
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
nums.sort()
result=[]
print(nums)
for i in range(len(nums)-3):
for j in range(i+1,len(nums)-2):
for k... | [
"1024089291@qq.com"
] | 1024089291@qq.com |
c73ae77ac18bd3d3bd5970245667f5e8fd8b2471 | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /Math/0204_CountPrimes_E.py | e266761a3e920a2ddefc2e292ae002021428d1b4 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 1,430 | py | # https://leetcode.com/problems/count-primes/
# Solution 1: the naive method, time complexity O(n^{1.5})
class Solution(object):
def isPrime(self, num):
if num <= 1:
return False
i = 2
# Use i*i <= num as the ending condition;
# do not use the expensive functi... | [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
478995ae08d50e8625c61409890afdaa49990940 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/polar/angularaxis/_tickcolor.py | c767e805316121395caad30ece9326f5d675e0b8 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 458 | py | import _plotly_utils.basevalidators
class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self,
plotly_name='tickcolor',
parent_name='layout.polar.angularaxis',
**kwargs
):
super(TickcolorValidator, self).__init__(
plotly_name... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
f5048e620a1d249b16bfa06ee8a33bc414722ba4 | 9d831207b43422b40e54cf6258a29b2f92b66290 | /src/boot_navigation/reports.py | 9348679320e16ccddb3aafca90894e6209798d01 | [] | no_license | AndreaCensi/yc1304 | 714e70e972e9ee31ac011bdb94a57a8ab568f853 | 0bc2b759423db7da73fac47572719a37a80fee0e | refs/heads/master | 2020-06-04T12:52:10.902082 | 2013-07-19T07:00:49 | 2013-07-19T07:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | from .navigation_map import NavigationMap
from .plots import plot_arrow_SE2, plot_arrow_se2
from contracts import contract
from geometry import se2_from_linear_angular
from reprep import Report, rgb_zoom, scale
import numpy as np
import warnings
__all__ = ['display_nmap']
@contract(report=Report, nmap=NavigationMap)... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
d364a514127247742d43f012ec5b553a968c4bf0 | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/range.3.test.py | 5291d84363c7b37476ea8dd1fa8f8da8958c4baa | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | input = """
%#maxint=10.
f(a).
% intuitively, one could expect: g(4). g(3). g(2). here
% but this does not produce any g():
%g(4..2).
%h(1..3).
f(b).
intersect(X) :- g(X), h(X).
"""
output = """
%#maxint=10.
f(a).
% intuitively, one could expect: g(4). g(3). g(2). here
% but this does not produce any g():
%g(4..2... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
7220d2c71f026f768b003347430670f8bafceab5 | 9321d3460ffbbb6cd7917b2bac77ce8321e04737 | /contributions/Legacy/MOO/optimization/master/master_to_slave.py | d57ff0e707a482d8afa58f4b3774b4524cec5be3 | [
"MIT"
] | permissive | muehleisen/CEAforArcGIS | b820d837cd5373b95851b4e5dda609d69f054b97 | b6aeca5a9d70835381625a9162d5695714e1a02b | refs/heads/master | 2021-01-11T21:24:18.482264 | 2017-01-06T05:28:48 | 2017-01-06T05:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | """Data required for Slave from Master"""
"""
This File sets all variables for the slave optimization, that have to be set by the Master
"""
#import os
#Energy_Models_path ="/Users/Tim/Desktop/ETH/Masterarbeit/Github_Files/urben/Masterarbeit/EnergySystem_Models"
#Network_Raw_Data_Path = "/Users/Tim/Desktop/ETH/Mastera... | [
"fonseca@arch.ethz.ch"
] | fonseca@arch.ethz.ch |
c15199f76236b5e1a4aa7c00237e9015dab2015a | 9c9512d92f4693a40e80e2dc8df9a74ef34a9b02 | /archive/fibcoll_cmass_pm.py | 0bf73edf6ea47071ec8819e7d74dcb28dacd6166 | [] | no_license | changhoonhahn/FiberCollisions | 9184600bbd596f861755425c46b311b2ab342af5 | ee0bfab26cc0167982822d8bc5c5654eaccbe2ef | refs/heads/master | 2021-01-18T21:19:12.457250 | 2017-01-31T20:33:29 | 2017-01-31T20:33:29 | 34,329,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | import numpy as np
import pylab as py
from scipy.integrate import simps
from scipy.optimize import curve_fit
from matplotlib import rc
rc('text', usetex=True)
rc('font', family='serif')
prismdir = '/global/data/scr/chh327/powercode/data/'
disp_los = np.loadtxt(prismdir+'cmass-dr11v2-N-Anderson-disp_los_pm.dat')
disp_... | [
"chh327@nyu.edu"
] | chh327@nyu.edu |
02256d1be416fd37e092a3e263c29dcedad1ef63 | 78a15793be1ba71ea7eecee33abef4ecbe11d8f2 | /apps/users/migrations/0016_auto_20151102_1457.py | 5a3e982e5c71bdaae3706ce02e4d2db9cbd42842 | [] | no_license | teresaylin/my2009 | f5df9c62492d4c88931f6aa45af31ee88dbe3a1a | 2486750ad73df313d596497b0eb7f4c47518e6a6 | refs/heads/master | 2021-03-21T23:53:55.581074 | 2016-06-01T18:13:44 | 2016-06-01T18:13:44 | 23,392,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0001_initial'),
('users', '0015_auto_20151102_1456'),
]
operations = [
migrations.AddField(
... | [
"jam.hann@gmail.com"
] | jam.hann@gmail.com |
b68b7e14f09c7cdcf1d4e14991aaea2461b218bd | e986ebbf73a6dff7ccc58feb886e54afa57e49d9 | /sdk/python/pulumi_awsx/_utilities.py | 83985732e9f67955c5ab392bc27761660f9323b9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-awsx | 5a5bdd77afaa674e9a5dd9f26540ddea5a1cde1c | 45136c540f29eb3dc6efa5b4f51cfe05ee75c7d8 | refs/heads/master | 2023-09-01T21:47:40.877155 | 2023-08-24T04:14:12 | 2023-08-24T04:14:12 | 132,053,036 | 186 | 107 | Apache-2.0 | 2023-09-13T07:28:54 | 2018-05-03T21:46:28 | TypeScript | UTF-8 | Python | false | false | 8,056 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi-gen-awsx. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import importlib.util
import inspect
import json
import os
import pkg_resources
import sys
import typing
import pulumi
import pulumi.runtime
from semver impo... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
c4674a7fdc765d2349e6a916e2744d418ebef5eb | 97f2852420d6fdc98e5a4a0321c35920ff070d41 | /examples/scripts/csc/cbpdn_ams_clr.py | 9b7714d8854ec1722a6998cd4d1d3d001830f1ee | [
"BSD-3-Clause"
] | permissive | eglxiang/sporco | 93595f3afb6acda758425f7332513eeb892fa51f | e4a716b32b675d6e23ba0bfc3b2d7c6f9bc5d7a3 | refs/heads/master | 2021-05-04T23:03:57.430340 | 2018-01-19T19:03:01 | 2018-01-19T19:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the SPORCO package. Details of the copyright
# and user license can be found in the 'LICENSE.txt' file distributed
# with the package.
"""
CSC with a Spatial Mask
=======================
This example demonstrates the use of :class:`.cbpdn.AddMaskSim... | [
"brendt@ieee.org"
] | brendt@ieee.org |
951f433acec27ae7970c718810065a209f4c17b4 | c2602ec4c504914c0831ab061b6cee779be344a2 | /python/aead/kms_envelope_aead.py | ba9b8f25dc2ed14a763e30b393d4095f7add5406 | [
"Apache-2.0"
] | permissive | shigakio/tink | 85f8da6033139154528bf00bdadd8f3f800f6223 | a61aaeeb5da223357b5ec3513231bc8e493a4ac1 | refs/heads/master | 2021-02-06T14:41:38.074226 | 2020-02-20T06:18:02 | 2020-02-20T06:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | # Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5cc22cbff16ea64707ce2511eef96003aec9056c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_173/ch161_2020_06_15_19_32_40_555261.py | a28363ec0ee02b8ca4432c1e1eb5d32ebf08b4a3 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def PiWallis(elementos):
numerador,denominador = 2,1
i = 0
mul = 1
while i < elementos:
mul*= numerador/denominador
if i%2 == 0:
denominador += 2
else:
numerador +=2
i+=1
oi=mul*2
return oi | [
"you@example.com"
] | you@example.com |
0042cd7ad97726820014cb8b6a3f087d560913d2 | b41da6f351f27bf0d45a4e4d0e1be8f3a86f4b64 | /itsybitsy/leetcode/sliding_window.py | 2ddaef9a489cf95fe6af1b0a16bd1c8ef0f3cf44 | [] | no_license | santoshr1016/WeekendMasala | a5adbabe0b78cde567667376d7ddf05bb505a0ff | e099f9ac9677f7acb8faf620af94a06d76cae044 | refs/heads/master | 2020-03-26T00:26:32.649429 | 2019-08-30T07:32:24 | 2019-08-30T07:32:24 | 144,320,624 | 0 | 0 | null | 2019-06-03T23:08:00 | 2018-08-10T18:36:38 | Python | UTF-8 | Python | false | false | 278 | py | def sliding_window(nums, k):
size = len(nums) - (k-1)
op_list = []
for i in range(size):
op_list.append(max(nums[i: i+k]))
print(op_list)
return op_list
nums = [1, 3, -1, -3, 5, 3, 6, 7, 7, 8, 1, 34, -9]
k = 3
rv = sliding_window(nums, k)
print(rv)
| [
"santosh.ratnala@acquia.com"
] | santosh.ratnala@acquia.com |
3dd7edb585e13d632ba412a0b12b8b9348c2948a | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/hqadmin/migrations/0015_rename_sqlhqdeploy.py | 0b35e450b0a336e0722dad15f4ee9786d7198ab2 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-31 20:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hqadmin', '0014_remove_sqlhqdeploy_couch_id'),
]
operations = [
migrations.RenameM... | [
"orange.jenny@gmail.com"
] | orange.jenny@gmail.com |
41003197a8029e2bdd2fb2389695572510a70bda | 76e9afdf16eabcc9e1a3facd308e56362112efc4 | /plot/lossplot3.py | 22ff012e1ffa7ab7c93816de25e1713f6ecdc95c | [] | no_license | rerejii/pwb_work_2021 | c65c5e787ad98b7d847cb63ebadc24a02f001e90 | 8ecfb2a98d9d396ed505ecc939e384cf6400412d | refs/heads/main | 2023-03-30T10:43:18.115386 | 2021-03-24T05:38:41 | 2021-03-24T05:38:41 | 350,954,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import os
import glob
import csv
import sys
import numpy as np
import pandas as pd
from natsort import natsorted
import matplotlib.pyplot as plt
# import matplotlib
markset = ['A', 'B', 'C', 'D', 'E', 'F']
for mark in markset:
csv_path = 'Z:/hayakawa/binary/20210227/unet_use-bias_beta/unet_use-bias_beta-'+mark+'/C... | [
"hayakawa.shinya.kochi@gmail.com"
] | hayakawa.shinya.kochi@gmail.com |
4255372facaf9a7101262b53db5d91bb11fa70e9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/103/usersdata/222/50669/submittedfiles/av1_3.py | a078720d7ccf91267555d632f67ab1c0ab99e466 | [] | 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 | 188 | py | # -*- coding: utf-8 -*-
import math
a=int(input('a:'))
b=int(input('b:'))
r=1
resto=1
cont=0
while r>0:
r=a%b
a=b
b=r
cont=cont+1
resto=resto+1
print(resto)
print(cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
700c496a84a90d5c782ada2ec88467c3c5ab4266 | a913309bda87feee7f0637cb73901b4bcdca44bd | /0x0C-python-input_output/2-read_lines.py | a37333dfcb5deb5dd181b3116277abe6647cebde | [] | no_license | KamalTaleb/holbertonschool-python | e77b4f88a7ae60db158c0defa6c3f7737ad96562 | 29ffbccf1d02c7cf76a5df04d9386105dc149a81 | refs/heads/master | 2023-01-20T20:24:32.388729 | 2020-11-26T12:22:57 | 2020-11-26T12:22:57 | 292,331,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/python3
"""read lines"""
def read_lines(filename="", nb_lines=0):
"""
read_lines
"""
line_number = 0
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
line_number += 1
if line_number <= nb_lines and nb_lines > 0:
print(line, ... | [
"kamal.talebb@gmail.com"
] | kamal.talebb@gmail.com |
0e365224111f952db09c0c48889ec831a0dc1b5c | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /models/BiLSTM1d.py | 38efbe949140c842932c9d98b0a6c2aa0f9616d9 | [
"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 | 1,692 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class BiLSTM(nn.Module):
def __init__(self, in_channel=1, out_channel=10):
super(BiLSTM, self).__init__()
self.hidden_dim = 64
self.kernel_num = 16
self.num_layers = 2
... | [
"646032073@qq.com"
] | 646032073@qq.com |
e54a254830aa0ee6382ff75d8b3544e326d9c316 | 3b7d82cc23bb9a760e897e881a2cbfb1d4cb954f | /labcoat/attributes.py | 720be9a8f39e048d6a4c02aa7c26741a4478da53 | [] | no_license | gulopine/labcoat | af972a17e7f165d49e9333c7d1a779d6f616d608 | 4a6bfe05f97ad5f63d6c4d097553ae659bad2312 | refs/heads/master | 2021-01-17T06:25:21.033563 | 2011-03-13T15:30:34 | 2011-03-13T15:30:34 | 1,448,589 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | class AttributeTester(object):
def __init__(self, specimen):
self.__dict__['specimen'] = specimen
self.__dict__['instance'] = specimen.instance
self.__dict__['results'] = specimen.results
def __getattr__(self, name):
self.__dict__['name'] = name
result = self.tes... | [
"marty@martyalchin.com"
] | marty@martyalchin.com |
1885e133317728b591d8e215221e805903af13f0 | 867b5d6efc6761e97412613c19d41c4fbe927238 | /demos/callLineEdit.py | b58032c82c1b8cca29274ff8e02ab12d8525c398 | [] | no_license | LouisLu78/pyqt5 | 516bdcd35a6678b1add300a4a14854ef61165a08 | 10e0ab9b186c88131180dba19ded483431c6966f | refs/heads/master | 2020-09-26T13:55:54.350566 | 2020-04-23T14:33:49 | 2020-04-23T14:33:49 | 226,268,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# author: Guangqiang Lu time:2019/12/2
#The codes below are copied from textbook.
import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demos.demoLineEdit import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.... | [
"lewgq@yahoo.com"
] | lewgq@yahoo.com |
8e6086f8659c6e50223d4ade9b087dd525b2aabc | 6294e1613c812612d4463da83cfc24d8c213d3f6 | /arjuna/interact/gui/dispatcher/driver/driver_commands.py | 449247a61e551959f2f3511cbf38eef4b541f5b8 | [
"Apache-2.0"
] | permissive | prabhudatta22/arjuna | 52747bc2d9600f1cd04457b29c919221464a7b88 | 37a9afe3f8f2b2e82da854c3e497a67a77c6749f | refs/heads/master | 2022-12-06T04:10:21.346896 | 2020-08-31T06:03:13 | 2020-08-31T06:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | # This file is a part of Arjuna
# Copyright 2015-2020 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
9b48c9385f3523743bd3f869ee21796c098b6f19 | 728871b962f2a5ec8d8ec7d5b607def074fb8864 | /W261/HW13-Questions/PageRank.py | e2a57722c38f075390050316f7fe32acfb01088f | [] | no_license | leiyang-mids/MIDS | 0191ffbaf9f7f6ec0e77522241c3e76d012850f1 | 918b0d8afc395840626eb31c451ad6c4b2f3bc39 | refs/heads/master | 2020-05-25T15:46:56.480467 | 2019-03-28T16:16:17 | 2019-03-28T16:16:17 | 35,463,263 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from time import time
from datetime import datetime
def initialize(line):
# parse line
nid, adj = line.strip().split('\t', 1)
exec 'adj = %s' %adj
# initialize node struct
node = {'a':adj.keys(), 'p':0}
rankMass = 1.0/len(adj)
# emit pageRank mass and node
return [(m, rankMass) for m in... | [
"ynglei@gmail.com"
] | ynglei@gmail.com |
9bc3b610843612d19d76e61bd47db7d4bfb9af9d | 08b74293c409086681eda77310f61831552478f1 | /instafilter/model.py | 8861ab8fc61abd65f2855c66af97c9cde85038f8 | [] | no_license | jiaxinwang/instafilter | d895928a3c311edf8ce14f49e716334842a51acf | cdc84b1b1055fd3d8b5ba81db69f9abeef5346e7 | refs/heads/master | 2023-07-21T19:57:38.976494 | 2021-09-06T14:17:42 | 2021-09-06T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import torch
from torch import nn
class ColorNet(nn.Module):
def __init__(self):
super().__init__()
self.fc1 = nn.Linear(5, 25)
self.fc2 = nn.Linear(25, 25)
self.fc3 = nn.Linear(25, 25)
self.fc4 = nn.Linear(25, 5)
def forward(self, x):
x = torch.tanh(self.fc1(... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
4f872c0b06702838fd0288d6dcc363e5aa3b0c8a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/4c735f24ea954a5ced87bd0bd1573fa3eb914c18-<save_inference_model>-fix.py | f762eaaca815726528bd1b1c9533f60f924fc3cf | [] | 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,018 | py |
def save_inference_model(self, executor, dirname, feeded_var_names, target_vars, main_program=None, export_for_deployment=True):
'\n Prune the given `main_program` to build a new program especially for inference,\n and then save it and all related parameters to given `dirname` by the `executor`.\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
80b3def3345e608e8f51501194c5d23249ed50dc | 634fb5fe10e8f944da44ab31896acc8471ec5f18 | /hq_env/bin/sphinx-autogen | 42f0972c1ff3e67f0b39e10ebd4c8b542116b016 | [] | no_license | dimagi/commcarehq-venv | 277d0b6fada24f2edd54f74850267201153412a7 | 2c52e3fb0f974cae5c5feaea1d5de851fe530c80 | refs/heads/master | 2021-01-18T14:05:47.931306 | 2015-07-20T10:10:41 | 2015-07-20T10:10:41 | 11,513,855 | 1 | 1 | null | 2015-07-20T10:10:41 | 2013-07-18T21:09:22 | Python | UTF-8 | Python | false | false | 331 | #!/home/travis/virtualenv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Sphinx==1.2b1','console_scripts','sphinx-autogen'
__requires__ = 'Sphinx==1.2b1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('Sphinx==1.2b1', 'console_scripts', 'sphinx-autogen... | [
"droberts@dimagi.com"
] | droberts@dimagi.com | |
276413737c57b3c74b11ccee0d0df56f0c65692a | d802a0793a4a4af0336912932c35499edac16845 | /Python/Python/Regex and Parsing/regex_substitution.py | c7a8c4e9aca66eb624f877498c6606e23f9b07fa | [] | no_license | butterflylady/hackerrank | fb1ca6801855b3956bbfb72a2f7a95db4513aca4 | c42e2c80c41a95eb10d9a061eb8e7132e52a71ac | refs/heads/master | 2021-08-27T21:02:50.512292 | 2021-08-05T08:40:37 | 2021-08-05T08:40:37 | 167,610,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import re
def change_symb(match):
symb = match.group(0)
if symb == "&&":
return "and"
elif symb == "||":
return "or"
n = int(input())
for i in range(n):
line = input()
pattern = '(?<= )(&&|\|\|)(?= )' # Ex. s="A && && && && && && B"
print(re.sub(pattern, change_symb, line)... | [
"mpaluyanava@gmail.com"
] | mpaluyanava@gmail.com |
3df929b6a508a9d626634464b85f4d50299530ae | e88c152d699cef4af64fa5aa4b9c61631c03c8b6 | /Solutions/0949.Largest-Time-for-Given-Digits.py | 816118cebc673cecb74253fdf254dfeec22a97db | [] | no_license | arnabs542/Leetcode-3 | 062af047b1f828b9def2a6e2a4d906e77090b569 | 7e10ff62981db88053b511c3ef8bd284d728d2fc | refs/heads/master | 2023-02-26T19:21:05.037170 | 2021-01-20T07:04:48 | 2021-01-20T07:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | """
949. Largest Time for Given Digits
Given an array arr of 4 digits, find the latest 24-hour time that can be made using each digit exactly once.
24-hour times are formatted as "HH:MM", where HH is between 00 and 23, and MM is between 00 and 59.
The earliest 24-hour time is 00:00, and the latest is 23:59.
Return ... | [
"noreply@github.com"
] | arnabs542.noreply@github.com |
70e3ea01aca468d440c1dbfa13b939fad9364327 | 67bdebd561b19af9bf759b6ed5de8556b93ea91f | /lower_priority.py | ba5a00b47b30c1d9e0248d2c3e339ba751417911 | [] | no_license | rlowrance/re-avm | 91371ec79f6b6f48e17643da4dfb7a4894d0a0ca | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | refs/heads/master | 2021-01-17T07:34:16.876133 | 2017-02-06T21:04:59 | 2017-02-06T21:04:59 | 42,865,972 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | 'lower priority of current process'
import os
import pdb
def lower_priority():
# ref: http://stackoverflow.com/questions/1023038/change-process-priority-in-python-cross-platform
assert os.name in ('nt', 'posix'), os.name
if os.name == 'nt':
import win32api
import win32process
impor... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
d839256a8d0dfd778bd501e3df9f2c3f253c6d65 | e23512edf95ea66640eab85adb8ca0c24ae6e3f7 | /tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 2e75ac226ea74e879edda5e03dff3d53c8a76569 | [
"Apache-2.0"
] | permissive | snuspl/tensorflow | 755ac46c3163adb119de0755ed706b1c960991fb | 212d4e9e5f4093ecb90e5b7837d4e02da7506228 | refs/heads/r1.6 | 2021-06-25T18:03:17.625202 | 2018-12-30T09:35:50 | 2018-12-30T09:35:50 | 134,066,972 | 1 | 3 | Apache-2.0 | 2020-06-10T06:12:19 | 2018-05-19T14:02:25 | C++ | UTF-8 | Python | false | false | 5,508 | 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 applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
860f1791698bd78cf19dfd6b510dded8bfc3d7e6 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/ModifyDBInstanceSSLRequest.py | fa202b9965c36683da32f4164ac33488935281df | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
23d627ec0997959cf1212df3ad37627b2530ced6 | c8abf01fb77b526a0a6af1f7ed5b740d8aec65ba | /user_profile/migrations/0001_initial.py | 486a7471308c7ad448471795d084c1ecd6dd824b | [] | no_license | bitapardaz/diabet | f1cc6e039792c91bfb67754f5c7e18141f2573cc | 8a9b38d81c512148be43ea9cf4d09acbd07c3af0 | refs/heads/master | 2021-07-16T17:08:24.502219 | 2017-10-23T21:56:27 | 2017-10-23T21:56:27 | 108,029,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.AutoField(... | [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
b4825e7c09ac027db28bf8dd543d8e729e4955c0 | f34d3948b707e461151ee33296a61fb23a6d3f44 | /month01/day05/exercise04.py | 594a4d052bb6f40071f72eab8c844809892fe23a | [] | no_license | xiao-a-jian/python-study | f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8 | c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3 | refs/heads/master | 2022-06-09T17:44:41.804228 | 2020-05-05T07:48:07 | 2020-05-05T07:48:07 | 256,927,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
在终端中录入10个疫情省份的确诊人数
最后打印人数最多的、最少的、平均人数.(使用内置函数实现)
"""
list_confirmed = []
for item in range(10):
number = int(input("请输入第%d个省份的疫情人数:" % (item + 1)))
list_confirmed.append(number)
print(max(list_confirmed))
print(min(list_confirmed))
print(sum(list_confirmed) / len(list_confirmed))
| [
"1261247299@qq.com"
] | 1261247299@qq.com |
a6824d7e85b0264d31b1561314abad8654470d27 | 401fc99cefe615f8ebefb6dd9c2b043c506f5bd0 | /tests/conftest.py | 640a86e0d9e1741295eded78699d2d9877f23fe9 | [
"MIT"
] | permissive | atviriduomenys/spinta | 0f85496860ebbcecfccd8dde2bf219564ee66baa | 1fac5b6b75ec65188d815078fd135bc05d49b31c | refs/heads/master | 2023-09-02T13:22:58.411937 | 2023-08-18T12:59:17 | 2023-08-18T12:59:17 | 168,724,854 | 12 | 4 | MIT | 2023-09-14T13:29:39 | 2019-02-01T16:16:11 | Python | UTF-8 | Python | false | false | 4,119 | py | import builtins
import inspect
import os
import re
import sys
import time as time_module
from itertools import chain
from itertools import islice
from traceback import format_stack
from typing import Any
from typing import Dict
from typing import Iterator
from typing import TextIO
from typing import Type
import objpri... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
1ced5c6e0a04b057cee4c476830695a129dc95c5 | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /django_test6maria/myguest/urls.py | 9f02e4a7aca1f6b490e241f6a970eacb04b2142f | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from django.urls import path
from myguest import views
urlpatterns = [
path('', views.ListFunc),
path('insert/', views.InsertFunc),
path('insertok/', views.InsertFuncOk),
]
| [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
b540bb335ba07eb23f656de01bc48f3e0888a51e | 7fc678c2b1a0ef8849364e9c3e272b4509003796 | /py/merge-us-tracts-sql-code-gen.py | 482fce872848f536f179fddb32fdcccd07dcc606 | [] | no_license | nygeog/postgis_reference | ee7a599c2b60d713b5ae67039b5e5f4cfef9d7e8 | d3da41fa91dcd6e667d62cb3cc2439aed99f90a9 | refs/heads/master | 2020-04-05T23:28:14.942786 | 2017-08-12T16:51:29 | 2017-08-12T16:51:29 | 42,251,833 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | mergeTableName = 'tracts_2010_us'
attrList = ['geoid10', 'aland10', 'awater10', 'intptlat10', 'intptlon10', 'shape_leng', 'shape_area', 'geom']
attrListString = ", ".join(attrList)
statesList = ["01","02","04","05","06","08","09","10","11","12","13","15","16","17","18","19","20","21","22","23","24","25","26","27... | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com |
dd0492a4e1c8d9c5c1695bf08f02984c8d021074 | b71a6e7050b0a4368007350d91ee078288a7318c | /examples/issues/issue189_img.py | cb2817ea11871f73a6164e09d73305c788330037 | [
"Apache-2.0"
] | permissive | jarvisteach/appJar | 2dfd0da6cb85ea3535379ed000efd97fb42fe4f8 | 0b59ce041da2197dcff3410e20f298676f1f7266 | refs/heads/appJar | 2023-08-29T09:42:01.812005 | 2019-09-28T18:34:06 | 2019-09-28T18:34:06 | 39,996,518 | 696 | 103 | NOASSERTION | 2023-02-20T01:01:16 | 2015-07-31T08:59:20 | Python | UTF-8 | Python | false | false | 252 | py | import sys
sys.path.append("../../")
from appJar import gui
with gui(useTtk=False) as app:
# app.addImageButton("button2", None, "Capture 2.PNG", align=None) # Uncomment this
app.addIconButton("button", None, "md-play", align="none") # Or this
| [
"jarvisteach@gmail.com"
] | jarvisteach@gmail.com |
de6921dce3a160ae4dad9ee43b7a29ee9f4d8404 | 95a2568c20993bd423791f6796ecff36d6a71d26 | /utils.py | 46c959bcd0ae74ab2155a51327b036899514e5fe | [
"MIT"
] | permissive | kugooer/nazurin-1 | 15dff321436eaf9ca75c79f3be9e41cc958063a2 | 092da0b77e50e3f81cc99ae7d86523efbf691baf | refs/heads/master | 2023-01-19T08:32:11.973482 | 2020-12-01T15:24:23 | 2020-12-01T15:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | from requests.adapters import HTTPAdapter
from mimetypes import guess_type
from shutil import copyfileobj
from functools import wraps
from pathlib import Path
from html import escape
from time import sleep
import requests
import logging
import re
import os
from config import DOWNLOAD_DIR, UA, RETRIES
from telegram impo... | [
"yyoung2001@gmail.com"
] | yyoung2001@gmail.com |
c0b1823a5549769b3efe0b1033816e1186aca332 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A2/python/task/BD_174_261_754_XxLnqgI.py | e6c151bc96e99f32096cdee7f9cd74743a158637 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 2,960 | py | from __future__ import print_function
import re
import sys
from operator import add
from pyspark.sql import SparkSession
def computeContribs(urls, rank):
"""Calculates URL contributions to the rank of other URLs."""
num_urls = len(urls)
for url in urls:
yield (url, rank / num_urls)
def parseNe... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
0d9d45d96dd79d9e1c3bc2408a3f391808380dce | e874e3b4312b2beebaa42fa1489b50c618055190 | /Aula 2 Semana - Turtle - Preenchendo as formas.py | 2c20ce02817224506dde0a83bf5b80e026b47a64 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from turtle import *
fillcolor('purple') # fillcolor() - esta funcao retorna ou defina a cor de preenchimento;
pensize(10) #pensize()- esta funcao defina a espessura da linha para a largura ou retorne-a.
# Se resizemode for definido como “auto” e a forma de tartaruga for um polígono,
#... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
9bd0e691b2cf9e835167a6fa49536ee50961c4f6 | fcf4b584795dbdbb24bfa5e68028f4c9ac070b69 | /useraccount/models.py | 5dc7dd17acbc76bebc82627ebb3fb0ecb9fbeae0 | [] | no_license | vineethjpalatty/testproject | 3e86ae3f030349f4c633a6ac5ef17814bb373ff6 | 1087ca2ecbd5e2fe72a4a5c628e674eeaa4d2b2f | refs/heads/master | 2022-12-01T14:33:30.155041 | 2020-08-13T17:48:27 | 2020-08-13T17:48:27 | 287,338,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
import pytz
# Create your models here.
class DateBaseModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class UserDetai... | [
"you@example.com"
] | you@example.com |
5e3f9f87ef9fec750e839eda115dfd7bb06d500a | 5ee5e19a42417fdfb5248c070d41b61b86465eaf | /abc_243/b.py | 8de66992b8f504c12ab2caefd7c905d55910e476 | [] | no_license | w40141/atcoder | 2e98cfe9fcb33aca8ac4567afecf603084964897 | 3ad74ca71ab77b929a097730047f4cf59ac38604 | refs/heads/master | 2023-08-08T21:37:42.744860 | 2023-08-07T00:50:34 | 2023-08-07T00:50:34 | 179,308,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | n = int(input())
a_li = list(map(int, input().split()))
b_li = list(map(int, input().split()))
same_num = 0
for a, b in zip(a_li, b_li):
if a == b:
same_num += 1
a_s = set(a_li)
b_s = set(b_li)
c = a_s & b_s
print(same_num)
print(len(c) - same_num)
| [
"w.40141@gmail.com"
] | w.40141@gmail.com |
cf5fddbf61aeb35918e576d1a1ac9e69f4b6b4c1 | ea5762e8754d6b039963b0125822afb261844cc8 | /src/compas_rhino/geometry/__init__.py | 443b7cf51d3a306b59d12a71d80dd9480b9c6d76 | [
"MIT"
] | permissive | gonzalocasas/compas | 787977a4712fbfb9e230c4f433b6e2be509e4855 | 2fabc7e5c966a02d823fa453564151e1a1e7e3c6 | refs/heads/master | 2020-03-23T20:17:55.126856 | 2018-07-24T22:30:08 | 2018-07-24T22:30:08 | 142,033,431 | 0 | 0 | MIT | 2018-07-31T14:54:52 | 2018-07-23T15:27:19 | Python | UTF-8 | Python | false | false | 597 | py | """
.. _compas_rhino.geometry:
********************************************************************************
geometry
********************************************************************************
.. module:: compas_rhino.geometry
Object-oriented wrappers for native Rhino geometry.
.. autosummary::
:toct... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
f02f0c07768583e5d8cf8ec015a786ade7c11d29 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /LQgpGFMK9t9MELvph_9.py | 6cae0722546debd006fb3cb38f4989346c5cb5e9 | [] | 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 | 829 | py | """
Given a square list ( _n_ * _n_ size) implement a function that returns a new
list containing two lists equal to the two diagonals, in the following order:
diagonal 1 = from upper-left to lower-right corner
diagonal 2 = from upper-right to lower-left corner
### Examples
get_diagonals([ [1, 2], [3,... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
abd5014fe7f609414f56f0c5502e2ffe8eb72e7b | bc441bb06b8948288f110af63feda4e798f30225 | /user_service_sdk/model/metadata_center/stream_metric_states_pb2.pyi | 9e2b0174cd0abac74c50c620d020df01b5ca5d95 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
8ba61262c059e952b15e3587e40bdf3fe82a14b6 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/BCRX.py | 33bc27bd3c2d590575f2a523774f25c8f3d0e061 | [] | 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,070 | 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://ir.biocryst.com/press-releases'
heade... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
b2038b79165d9711f194bb613dda99871eb2eb4d | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /LeetCode/1464_maximum_prod_of_two_elements_in_array.py | 0a66f0faf3a2108ddb4d63c69809049704a12e67 | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """
Given the array of integers nums, you will choose two different indices i and j of that array.
Return the maximum value of (nums[i]-1)*(nums[j]-1)
"""
nums = [10,2,5,2]
def maxProduct(nums):
maxim = 0
for i in range(len(nums)):
for j in range(len(nums)):
if i != j:
... | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
595f1092a393032fbfe3530084a64011e38ba1be | bbd69601912a3361d788efd03a47f9d4e3bac09e | /demo/agw/HyperLinkCtrl.py | 61df943f9642ce956aea9500436b0dd59655b898 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 4,894 | py | #!/usr/bin/env python
import wx
import os
import sys
try:
dirName = os.path.dirname(os.path.abspath(__file__))
except:
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.path.append(os.path.split(dirName)[0])
try:
from agw import hyperlink as hl
except ImportError: # if it's not there locally,... | [
"robin@alldunn.com"
] | robin@alldunn.com |
4f54d925f1dd8a37f173fcd6da68ed5f39fd2e46 | 909762751929e2fed02311953e15f8a6316efbd0 | /tests/test_oskar/plot_antpos.py | 6987aa1365419f0706b0b734bae1ec105e2b156a | [] | no_license | telegraphic/interfits | a166258459deaeb831d49787952a3e08d2aaaf40 | 0ee46e94b84d405c8381772be05b42e0b9c41158 | refs/heads/master | 2021-01-19T01:57:32.397157 | 2016-07-02T01:38:06 | 2016-07-02T01:38:06 | 10,858,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import numpy as np
import matplotlib
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from test_main import *
def plot3d(x,y,z, xl='X', yl='Y', zl='Z', c='#cc0000'):
ax.scatter(x, y, z, c=c)
ax.set_xlabel(xl)
ax.set_ylabel(yl)
ax.set_zlabel(zl)
l = LedaFits('vis_00.uvfits')
xyz... | [
"dan@thetelegraphic.com"
] | dan@thetelegraphic.com |
0a0481107bc945c99cf9933d981d631dccb91e5d | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/threads/api/postingendpoint/subscribe.py | c158eccbf462feee7a1f7aa449d37b93a4b7ce7f | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from misago.users.models import (
AUTO_SUBSCRIBE_NONE, AUTO_SUBSCRIBE_NOTIFY, AUTO_SUBSCRIBE_NOTIFY_AND_EMAIL)
from ...models import Subscription
from . import PostingEndpoint, PostingMiddleware
class SubscribeMiddleware(PostingMiddleware):
def use_this_middleware(self):
return self.mode != PostingEn... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
e7880e161d34d1259ef590b01aac6ce92b5c121b | ff0b9fad40af0f7a792033884db728756ea83756 | /forge/apps/OptiML/src/NeuralNetwork/examples/mnist/visualize.py | f98383826111dc0c413d51ed09d67edf53958b49 | [] | no_license | das-projects/Grothendieck | 721d7ca60c4838385c43bdc17894cb154507c302 | 4effc374f8050655db4820db3a7deaf63effb2a4 | refs/heads/master | 2020-04-02T06:16:56.494997 | 2016-08-12T10:05:55 | 2016-08-12T10:05:55 | 65,486,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import numpy
import scipy.misc
import sys
# Get the image number to display
if len(sys.argv) < 2:
print 'Specify the training image number to show as an input argument'
print 'Requires that train_data.txt be generated.'
print 'Example: >>> python visualize.py 100'
sys.exit(0)
img_num = int(sys.argv[1])
# Read th... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
3068a726127a93c4aa99d3ed3646918aec29708e | 4389d3bfa4ded480caf5083f410bdd2253fae767 | /20_Project/01_simple_linear_model/test2.py | 74871ccda42383f1a4616b8ad17191981aa2a1ef | [] | no_license | Freshield/LEARN_TENSORFLOW | 4fb7fec0bc7929697549ee52e453b137a24c3383 | 87be0362d24b748c841e5c9e185d2061ffae9272 | refs/heads/master | 2021-01-17T08:06:14.186041 | 2018-06-03T12:42:46 | 2018-06-03T12:42:46 | 83,846,167 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import numpy as np
import tensorflow as tf
import pandas as pd
sess = tf.InteractiveSession()
a = np.arange(10)
print a
np.random.shuffle(a)
print a
ta = tf.range(0, 10)
tb = tf.random_shuffle(ta)
print ta.eval()
print tb.eval()
dataset = pd.read_csv('ciena_test.csv', header=None)
print dataset.shape
| [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
400886929db0a77432f8a35f412a27327f231b80 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/__init__.py | dad149e01c0fae0a0684161a8a1002e405429ccc | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,872 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Keras Applications are canned architectures with pre-trained weights.
"""
from __future__ import print_function as _print_function
import sys as _sys
from . import densenet
from . impo... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
42e0505d50651f07009cd94e32945d6b14075fcd | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_5397.py | 86476955d445acfe52b6e2d808c0b39f9700d356 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import sys
'''
for n in range(int(sys.stdin.readline().rstrip())):
word=[]
cursor = 0
for i in sys.stdin.readline().rstrip():
if i == "<":
if cursor != 0:
cursor-=1
elif i == ">":
if cursor != len(word):
cursor+=1
elif i =="-" a... | [
"k852012@naver.com"
] | k852012@naver.com |
9d09fcf610c797bccf89f3f24ef9afffc8933042 | 67d8173a716da10a7350213d98938aae9f2115ce | /LeetCode/LC_PY_ANSWERS/sort-an-array.py | 0cecad74707c151f8b38b2b110494d2e85eee7de | [
"MIT"
] | permissive | jxie0755/Learning_Python | 94490d41bdf93acf8396f843328e38b6da310b0f | 143422321cbc3715ca08f6c3af8f960a55887ced | refs/heads/master | 2021-11-02T22:47:35.790239 | 2021-09-26T04:26:23 | 2021-09-26T04:26:23 | 101,445,132 | 0 | 2 | null | 2019-02-19T15:48:44 | 2017-08-25T22:00:16 | Python | UTF-8 | Python | false | false | 2,412 | py | # Time: O(nlogn)
# Space: O(n)
# merge sort solution
class Solution(object):
def sortArray(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
def mergeSort(start, end, nums):
if end - start <= 1:
return
mid = start + (end -... | [
"30805062+jxie0755@users.noreply.github.com"
] | 30805062+jxie0755@users.noreply.github.com |
e58e9401d8429723764c02edf926adfbbd8758ca | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_drafts.py | 6da1b4da4e3df04fbf81a9bba113d2c83e568862 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py |
from xai.brain.wordbase.verbs._draft import _DRAFT
#calss header
class _DRAFTS(_DRAFT, ):
def __init__(self,):
_DRAFT.__init__(self)
self.name = "DRAFTS"
self.specie = 'verbs'
self.basic = "draft"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1920724bea68c7268d4dc99408f617f42c248858 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5636311922769920_1/Python/aelg/prob4.py | 4fbd0b4d1fa1da615948253f8fc70a6d1a53b3c0 | [] | 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 | 694 | py | #!/usr/bin/python3
def solve():
inputList = list(map(int, input().split()))
k = inputList[0]
c = inputList[1]
s = inputList[2]
res = []
students = s
originalTile = 0
while students > 0:
studentPos = 0
for i in range(c-1, -1, -1):
studentPos += originalTile*(... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
74f545ddd8aead850b286517ff15de1cb279c2a1 | cbda89443b351bb2047180dad4e300c13dc3df7f | /Crystals/Morpurgo_all_atoms_Polbinds_qsplit_fittedscreens/Jobs_chelpg/PDIF-CN2/PDIF-CN2_cation_neut_inner3_outer0/PDIF-CN2_cation_neut_inner3_outer0.py | 0529c196b51dd6089ab4ee51b1366f451a48a8aa | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 7,012 | py | import sys
sys.path.append('../../../../../')
from BasicElements import *
from BasicElements.Register import GetRegister
from BasicElements.MoleculeFactory import ReadMoleculeType
from BasicElements.MoleculeFactory import GetMolecule
from BasicElements.Crystal import *
from Polarizability.GetDipoles import get_dipoles,... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
ea5b9b937f47326657b9da399ad06bdf9c9d3f9f | 857d2653df85eec7b740a782005da2872d532bff | /training/reco/k_means/k_means.py | d2dc9088e57ba424bc95239998544ce1abec4e40 | [] | no_license | calzonelover/CMS_DC_ANOMALY | 1621924dc66ec2a80a2aa3af3bb29762bb558073 | 5a02ab59ec52c462c37111f83e286149dd86754b | refs/heads/master | 2020-05-31T15:12:50.074681 | 2019-08-22T15:05:42 | 2019-08-22T15:05:42 | 190,348,831 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,406 | py | import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import os
from sklearn import svm
from sklearn.cluster import KMeans
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler, normalize, MinMaxScaler
# customize
from data.prompt_reco.setting import REDUCED_FEATURES, ... | [
"patomporn.pay@gmail.com"
] | patomporn.pay@gmail.com |
260ff632015d6f5932bddcb9cfb80d61bc74add3 | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /codingBat/python/warmup2/stringMatch.py | 885e6c9cdd2dd38ba959c80188a62fe641e07e7d | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 1,024 | py | #######################################################################################################################
#
# stringMatch
#
# Given 2 strings, a and b, return the number of the positions where they contain
# the same length 2 substring. So "xxcaazz" and "xxbaaz" yields 3, since the "xx", "aa",
# ... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
cd9b2621354b41dab2657e8f0bae14493858399f | 6725ff7ad5cbcc1413654c7fbe4d9795a35e50b5 | /L4_task3.py | 9e2c5e6f7a3ba2cb1e763f102fa57d46d7e29e8d | [] | no_license | MaksimKulya/PythonCourse | 59e5a2e67378bfdddf5bd96db8e25782489b7db1 | 40b5559e2fac76d3fb3221ba4b90478dd10f442c | refs/heads/main | 2023-05-03T05:13:05.238092 | 2021-05-18T14:44:44 | 2021-05-18T14:44:44 | 321,064,262 | 0 | 0 | null | 2021-01-20T12:28:47 | 2020-12-13T12:52:01 | Python | UTF-8 | Python | false | false | 414 | py | # Для чисел в пределах от 20 до 240 найти числа, кратные 20 или 21. Необходимо решить задание в одну строку.
# Подсказка: использовать функцию range() и генератор.
import random as rnd
a = [rnd.randint(20, 240) for i in range(100)]
print(a)
b = [n for n in a if n % 20 ==0 or n % 21 ==0]
print(b) | [
"maxk2350@yandex.ru"
] | maxk2350@yandex.ru |
6dd0be9d6b07dba30423d4ecfba393cefadaf205 | 5234bc430c83d616a8214d7f77c2c081543b6b26 | /src/Python/1-100/96.UniqueBinarySearchTrees.py | 6c59f9a19ecaa76aa1eae5a23d0e85ffde46d062 | [
"Apache-2.0"
] | permissive | AveryHuo/PeefyLeetCode | 3e749b962cadfdf10d7f7b1ed21c5fafc4342950 | 92156e4b48ba19e3f02e4286b9f733e9769a1dee | refs/heads/master | 2022-04-26T06:01:18.547761 | 2020-04-25T09:55:46 | 2020-04-25T09:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py |
class Solution:
def numTrees(self, n: int) -> int:
dp = [0] * (n + 1)
dp[0] = 1
dp[1] = 1
for i in range(2, n + 1):
for j in range(1, i + 1):
dp[i] += dp[j - 1] * dp[i - j]
return dp[n]
if __name__ == "__main__":
solution = Solution()
pr... | [
"xpf6677@163.com"
] | xpf6677@163.com |
53fe24223fbffd0f694c4f4c0faf15c15b2809c4 | fdce456e2f0ea12f854e98583cfda95955b9a36b | /manageusers/apps.py | dca42b37dd05993510c3c0ba37e95721d15238d8 | [] | no_license | atifasr/jobportal | e5fdc8058759311e8d4ca2c0291066ad86059fb6 | 3fe211598daa66f2a76c2b3d4d26d73459ac7457 | refs/heads/master | 2023-08-05T02:01:00.870360 | 2021-09-29T11:59:29 | 2021-09-29T11:59:29 | 388,807,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.apps import AppConfig
class ManageusersConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'manageusers'
# def ready(self):
# from .schedulers import scheduler
# scheduler.start()
| [
"atifshafi63@gmail.com"
] | atifshafi63@gmail.com |
fea6f964339fb23f6f9a008d7407e6133306cc04 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/S_EllipsoidTestWaitingTimesACDres.py | af9ab8366b01c94bbb1df7f27d3b20251e3c79dd | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,056 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # S_El... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
255997393c11703c927617a467958a7455c0b86b | c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105 | /vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2and3/Crypto/Hash/SHA256.pyi | 0469b7cb2b4e995bbd9b60c74f5c7d1c887412a6 | [
"MIT",
"Apache-2.0"
] | permissive | ryangniadek/.dotfiles | ddf52cece49c33664b56f01b17d476cf0f1fafb1 | be272baf6fb7d7cd4f4db1f6812b710196511ffe | refs/heads/master | 2021-01-14T07:43:12.516127 | 2020-03-22T20:27:22 | 2020-03-22T20:27:22 | 242,632,623 | 0 | 0 | MIT | 2020-09-12T17:28:01 | 2020-02-24T02:50:06 | Python | UTF-8 | Python | false | false | 399 | pyi | from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA256Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...... | [
"ryan@gniadek.net"
] | ryan@gniadek.net |
47bfc9032bf7353361b1818c44b2797b13363154 | 04d8f0b5a291ec6c3470f4498dd64ab9c1845f96 | /library/third-party/file_formats/pypdf2/pdf_file_merger/info.py | 50f3b155bd7f0b74923a56b302593acd731e7e98 | [] | no_license | volitilov/Python_learn | 8c0f54d89e0ead964320d17eeddeacd5b704b717 | f89e52655f83a9f1105689f0302ef5b0ee30a25c | refs/heads/master | 2022-01-10T13:39:59.237716 | 2019-07-17T11:39:10 | 2019-07-17T11:39:10 | 70,601,503 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | from PyPDF2.PdfFileMerger import *
# Инициализирует объект PdfFileMerger. PdfFileMerger объединяет
# несколько PDF-файлов в один PDF-файл. Он может конкатенировать,
# нарезать, вставить или любую комбинацию из вышеперечисленного
# :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
PdfFileMerger(
stri... | [
"volitilov@gmail.com"
] | volitilov@gmail.com |
f6c63ede371e0271643d28518bd43b3d85636c61 | 0547d1826e99eedb959a3463520d73985a3b844e | /Data Scientist with Python Track Github/22-Statistical Thinking in Python (Part 2)/05-Putting it all together a case study/08-Beak length to depth ratio.py | ee9d31d8f9a75fbdc075f31112ca552fb4842913 | [] | no_license | abhaysinh/Data-Camp | 18031f8fd4ee199c2eff54a408c52da7bdd7ec0f | 782c712975e14e88da4f27505adf4e5f4b457cb1 | refs/heads/master | 2022-11-27T10:44:11.743038 | 2020-07-25T16:15:03 | 2020-07-25T16:15:03 | 282,444,344 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | """
Beak length to depth ratio
The linear regressions showed interesting information about the beak geometry.
The slope was the same in 1975 and 2012, suggesting that for every millimeter gained in beak length,
the birds gained about half a millimeter in depth in both years. However, if we are interested in the
shape... | [
"abhaysinh.surve@gmail.com"
] | abhaysinh.surve@gmail.com |
e1b06b52231c9bcd3a40ec3a68471706dc7781ed | b471470126befc48d61bf3e17c8231b33e8d3e33 | /1117-mid-term-6.py | ff3fe16f7e1178ab27682245ea8b118fe673391a | [] | no_license | Xi-Plus/KUAS-DIIWS-Code | 5ccd5ff512b3aad5fcf9ca37c7ca095e796aca9d | 60e0e6c8c80847b5270d4d0f45028becabd08230 | refs/heads/master | 2021-09-03T21:48:31.755611 | 2018-01-12T08:37:51 | 2018-01-12T08:37:51 | 105,234,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from urllib.request import urlopen
from bs4 import BeautifulSoup
url = "http://www.books.com.tw/activity/gold66_day/?loc=P_021_1_more_001"
f = urlopen(url)
html = f.read()
obj = BeautifulSoup(html, "html.parser")
days = []
for i in obj.findAll("div", {"class":"day"}):
days.append(i.get_text())
names = []
for i in ob... | [
"huangxuanyuxiplus@gmail.com"
] | huangxuanyuxiplus@gmail.com |
72fd0fbf13da481b25826bed1e553261679655c5 | c340835e4444c664fc2b261238e3738cf5bf7196 | /combination_sum.py | 58093ee3ed445d253ce8b136bea5e6b489626c29 | [] | no_license | z-o-e/LeetCode_OJ_Python | 49f2a7378eb98f707c97d7757cc19ef19622db42 | ad7f5152fe404bdd4e91710d9a719f392bec7a96 | refs/heads/master | 2021-03-12T22:39:44.898502 | 2014-10-16T05:30:25 | 2014-10-16T05:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | class Solution:
# @param candidates, a list of integers
# @param target, integer
# @return a list of lists of integers
def combinationSum(self, candidates, target):
candidates = sorted(candidates)
self.res = []
self.dfs(candidates, [], target)
return self.res
... | [
"hyzhang22@gmail.com"
] | hyzhang22@gmail.com |
9b329bf9c03eb7fd5e50cebfbbc7e2fca726f262 | fbc0d5c081dbfead483a1e1e226a380446bcd56e | /TDT4117 - Informasjonsgjenfinning/exercises/2/subtask2.2.py | 88a2dba3adc75dd1a6e69012d2e012ad9648eba4 | [] | no_license | blauks/ntnu-2 | 58eec17a8f6db7424a6cb44d74e029b68256320a | 38fa0ddfaa726408f087d1792fd0e00810f9243c | refs/heads/master | 2020-08-16T11:01:10.946232 | 2019-08-08T11:28:48 | 2019-08-08T11:28:48 | 215,494,235 | 0 | 1 | null | 2019-10-16T08:15:48 | 2019-10-16T08:15:48 | null | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/python3
d1 = 'an apple a day keeps the doctor away.'
d2 = 'the best doctor is the one you run to and can’t find.'
d3 = 'one rotten apple spoils the whole barrel.'
q1 = 'doctor'
q2 = 'apple orange'
q3 = 'doctor apple'
λ = 0.5
| [
"nikasmh@hotmail.com"
] | nikasmh@hotmail.com |
96cd5e74289dadeea430e3920b049093288eb0a1 | fcb628087b05031f2ffec5d6719714d210a9ebd2 | /sukonbu/json_schema_parser.py | 53b2420adf760f6b16937f06af94f854c676e54e | [
"MIT"
] | permissive | ousttrue/sukonbu | 165b4aa0dcbb416367fa51bd2cfb0724dcaa475f | aca6121c3afa1fe404e6208553070895829df780 | refs/heads/master | 2023-08-29T17:30:28.099703 | 2022-03-15T17:21:01 | 2022-03-15T17:21:01 | 224,555,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,741 | py | from typing import Optional, NamedTuple, List
import json
import pathlib
from .json_schema import JsonSchema
class JsonSchemaItem(NamedTuple):
key: str
item: JsonSchema
parent: Optional[JsonSchema] = None
class JsonSchemaParser:
def __init__(self, dir: Optional[pathlib.Path] = None):
... | [
"ousttrue@gmail.com"
] | ousttrue@gmail.com |
df840439989d5650df6e6a7988fa5b59caa9850d | 88994e2e840a70ec702cee09e1a13813aa6f800c | /tests/meta/upload/scout/test_scout_config_builder.py | 811298718aac85b422b13148020a410369823810 | [] | no_license | Clinical-Genomics/cg | 1e9eb0852f742d555a48e8696914ebe177f7d436 | d2ec6d25b577dd6938bbf92317aeff1d6b3c5b08 | refs/heads/master | 2023-09-01T02:04:04.229120 | 2023-08-31T13:50:31 | 2023-08-31T13:50:31 | 82,567,026 | 19 | 8 | null | 2023-09-14T15:24:13 | 2017-02-20T14:29:43 | Python | UTF-8 | Python | false | false | 7,857 | py | """Tests for the file handlers."""
import logging
from housekeeper.store.models import Version
from cg.meta.upload.scout.balsamic_config_builder import BalsamicConfigBuilder
from cg.meta.upload.scout.hk_tags import CaseTags
from cg.meta.upload.scout.mip_config_builder import MipConfigBuilder
from cg.meta.upload.scout... | [
"noreply@github.com"
] | Clinical-Genomics.noreply@github.com |
1461437e9ebeb4c81603608e67f1504f0e628c17 | ad5b72656f0da99443003984c1e646cb6b3e67ea | /tools/mo/openvino/tools/mo/back/offline_transformations.py | d4615aeb524e518a1b292b6c45fd267a8d1ac306 | [
"Apache-2.0"
] | permissive | novakale/openvino | 9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae | 544c1acd2be086c35e9f84a7b4359439515a0892 | refs/heads/master | 2022-12-31T08:04:48.124183 | 2022-12-16T09:05:34 | 2022-12-16T09:05:34 | 569,671,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,184 | py | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import argparse
from typing import List
from openvino.tools.mo.front.extractor import create_params_with_custom_types
from openvino.tools.mo.utils.cli_parser import parse_transform
from openvino.tools.mo.utils.error import Error
from op... | [
"noreply@github.com"
] | novakale.noreply@github.com |
c2fb539bc071787bca42c1d5bdc7550f71769d0f | 7def22f9e61a125a8a02d85018fdc3fa34f4d060 | /superlists/urls.py | 7ba2fb600869500c7397a9c0af482c74b3afb792 | [] | no_license | uglyboxer/superlists | 188e7c659f97e77ebddeba3b07dc1b5bc03c928a | e0cf2e828991f04c4050170c13f9c4b6cc2be0e8 | refs/heads/master | 2021-01-10T02:24:48.031207 | 2015-11-25T00:24:23 | 2015-11-25T00:24:23 | 46,455,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"uglyboxer@gmail.com"
] | uglyboxer@gmail.com |
8384fef2b16fdeea0adf1819f3c0122330a5d974 | e828c22a75dfaa7f3643352d4f1b08559a12edca | /ScrapyProject/TenxunSpider/TenxunSpider/pipelines.py | 8c9505521ec8a1ee4c05f3cdfcfa153491efb9f5 | [] | no_license | csgvsjay1000/spider | 9c545fac9c63f89e7503a7c045ce2b83df044e49 | 10f584440d23b0b17a3486cde6cbc39c9d13692e | refs/heads/master | 2022-02-16T20:29:53.384245 | 2019-08-12T03:06:37 | 2019-08-12T03:06:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import json,codecs
class TenxunspiderPipeline(object):
def __init__(self):
self.file=codecs.open('duty_file.json','... | [
"593956670@qq.com"
] | 593956670@qq.com |
4093735ca3af4a42d6bb8b85700aa046e5c1677c | 52243c4a05a296e7c042663b5942faa47eb66aee | /common_nlp/classifier_legal_phrases_regex.py | e2b84d6ec884fb5abb3de73d4361f5b499d1dbe2 | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import re
from regex_classifier_legal_phrases import palavras_interesse
def break_sentences(text, nlp):
# return re.split(r'\w\.\s',text)
text = re.sub(r"\s+", " ", text)
text = re.sub(r"art\.", "art ", text)
text = re.sub(r"fls?\.", "fls ", text)
text = re.sub(r"inc\.", "inc ", text)
doc = nl... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
0624acb274bdaacc13d24078b701c3efd0584ce4 | 43ab8c000781c073e6723b3e93013e5f509b84ea | /attractors/3D/Pickover.py | b1953fcdf4020eec7d0559a9c3155b2e2c0695d3 | [
"MIT"
] | permissive | tisnik/fractals | e6e25dbbf5675be5a78f15a2504b25f7de504cf6 | 2e852489cb473394e4dd9103d12d717fed53a51d | refs/heads/master | 2023-04-29T03:17:28.897352 | 2023-04-17T14:01:59 | 2023-04-17T14:01:59 | 202,321,272 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,098 | py | """Výpočet a vykreslení Pickoverova podivného atraktoru v 3D."""
# MIT License
#
# Copyright (c) 2020 Pavel Tišnovský
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, i... | [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
c69b864f21b100901da859214899a8f7346b41a7 | 1796043fc26c958b8fc45d9c058e382473c4f3af | /Fabio 01 Parte 02/f1_p2_q2_metro_km.py | 9fa23256bbcf9cb486f2779b637e721651f19242 | [] | no_license | Lucakurotaki/ifpi-ads-algoritmos2020 | a69adec27dbb10aceab1bc7038a0b56a760f99d1 | 34d5fedd5825a85404cf9340e42be618981679c1 | refs/heads/master | 2022-03-22T04:44:14.211359 | 2022-02-19T18:48:36 | 2022-02-19T18:48:36 | 246,585,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #Entrada
m = int(input("Digite a medida em metro: "))
#Processamento
km = m/1000
#Saída
print("O equivalente de {} m em kilômetros é: {} km.".format(m,km))
| [
"noreply@github.com"
] | Lucakurotaki.noreply@github.com |
48d254577be2dfe57ef8a4d19ba7c41709aced4e | 007ae03cfe5abf41a0ad864eade451141c267cca | /auto-docs/executables/python/legend_style.py | 6f09c9c36aef49e5259e1ae46fe2bd16241aee10 | [] | no_license | VukDukic/documentation | ca96eb1994eeb532fe60c542960b017354bcede1 | 8e5aefdc38788956cfe31d8fe8b4b77cdf790e57 | refs/heads/master | 2021-01-18T09:02:27.034396 | 2015-01-20T23:46:58 | 2015-01-20T23:46:58 | 30,007,728 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # Learn about API authentication here: {{BASE_URL}}/python/getting-started
# Find your api_key here: {{BASE_URL}}/settings/api
import plotly.plotly as py
from plotly.graph_objs import *
py.sign_in('TestBot', 'r1neazxo9w')
trace1 = Scatter(
x=[0, 1, 2, 3, 4, 5, 6, 7, 8],
y=[0, 3, 6, 4, 5, 2, 3, 5, 4]
)
trace2 ... | [
"andseier@gmail.com"
] | andseier@gmail.com |
7041bb1082d5baec910b892c4c325173285c5c89 | 572c828b5ef8c17f48cceada08f7a373c2d31e91 | /DES_1_2020/quizG.py | 87ebfa5c0eceb5a8ccb76bec213b13d12a69e9da | [
"MIT"
] | permissive | refeed/PAlgoritmaTRPLA | 4262387011a4942e137674f92c5606eacfec4c1e | e0c79c1d57bee0869e2344651718e8cf053c035f | refs/heads/master | 2023-02-03T19:19:43.210447 | 2020-12-17T03:46:13 | 2020-12-17T03:46:13 | 297,596,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | '''
DESKRIPSI SOAL
Kali ini Adi belajar baris-berbaris. Ada N peserta baris-berbaris yang ikut. Seperti biasa, peserta harus berbaris sesuai urutan tinggi badan (yang paling tinggi di belakang). Setelah berbaris dengan urut, peserta akan diberi no urut. No 1 untuk peserta yang paling pendek dan no N untuk peserta pali... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
e882be5c62481dfe01e05dc2076dc494788b242a | 577ab02be20b264023c86af0b1f7598611b1d3bc | /mysite/urls.py | 98af82e60031a42f6647e718f392a3be3cbfc95f | [] | no_license | yoongyo/festigo | 323316d79796e4fc5a6ad42f26c0c8f181100e1e | 73c3f6c619acb70d8031efb62a90fb8d60acbc66 | refs/heads/master | 2020-05-18T09:49:35.673560 | 2019-04-30T21:56:49 | 2019-04-30T21:56:49 | 184,336,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,252 | py | from django.contrib import admin
from django.urls import re_path, include, path
from . import views
from django.conf import settings
from django.conf.urls.static import static
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
urlpatterns = [
re_path(r'^$', views.main, name='main'),
re_path(r... | [
"jyg0172@naver.com"
] | jyg0172@naver.com |
5dbfdb24f29942128a5169a17742ce17ac9fd1e3 | 89de54a5ee1628bceb08d804407e4d43434fa2e0 | /backend/home/migrations/0002_load_initial_data.py | 83735bcf6368729c0f275f5250287e0dd41ff7e4 | [] | no_license | crowdbotics-apps/tkabs-podcast-20287 | 430f4896c2b5ad2ec2c65ad145151569304469d6 | a3980e01490f67f3bcd2af18e970ba949780c3bb | refs/heads/master | 2022-12-13T02:10:38.199166 | 2020-09-15T15:25:22 | 2020-09-15T15:25:22 | 295,769,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "TKABS - Podcast"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b366a560cc962b8a35af64cdeb311111005dbad4 | 4dade4f29881e99d8602144744e09ed870bd1034 | /Python/path_algorithms/greedy_best_first.py | d4296e908f40cc690cd6ffa05663905c49b40e48 | [] | no_license | alexbaryzhikov/codebase-archive | 9795347c19a82c098983c6d0fe4959c3162ca868 | c78c189002a26296a552f30078578cc0cf72e426 | refs/heads/master | 2023-02-19T21:54:21.310865 | 2021-01-11T15:47:50 | 2021-01-11T15:47:50 | 106,846,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,406 | py | from tkinter import *
import numpy as np
from queue import PriorityQueue
G = {}
MOVE_COST = 10
MOVE_COST_DIAG = 14
class MyCanvas(Canvas):
def __init__(self, master, shape):
self.cwidth = 50
self.shape = shape
Canvas.__init__(self, master, width=shape[0]*self.cwidth, height=sha... | [
"aleksiarts@gmail.com"
] | aleksiarts@gmail.com |
046e48003c5bea511c67085711ae1a3269a8078e | c6fa53212eb03017f9e72fad36dbf705b27cc797 | /SimG4CMS/Calo/test/python/runPhase0_cfg.py | aa9513f0a903b7fd6a2c67f3f7d9056b01e5ae00 | [] | no_license | gem-sw/cmssw | a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608 | 5893ef29c12b2718b3c1385e821170f91afb5446 | refs/heads/CMSSW_6_2_X_SLHC | 2022-04-29T04:43:51.786496 | 2015-12-16T16:09:31 | 2015-12-16T16:09:31 | 12,892,177 | 2 | 4 | null | 2018-11-22T13:40:31 | 2013-09-17T10:10:26 | C++ | UTF-8 | Python | false | false | 3,839 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("PROD")
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
process.load("Geometry.HcalCommonData.testPhase0GeometryXML_cfi")
process.load("Geometry.TrackerNumberingBuilder.trackerNumberin... | [
"sunanda.banerjee@cern.ch"
] | sunanda.banerjee@cern.ch |
08a025d81f80adffff746115fa919a21066a3bdd | a0fb29f99a852089193e4cc9a11e7263dc3f8b5f | /mayan/apps/documents/serializers/document_file_serializers.py | e8d6fe80d51c51303bbc2cb48ba61d4ae2e18e07 | [
"Apache-2.0"
] | permissive | ikang9712/Mayan-EDMS | 0e22a944d63657cea59c78023b604a01a622b52a | d6e57e27a89805329fe0c5582caa8e17882d94e6 | refs/heads/master | 2023-07-28T19:41:55.269513 | 2021-09-07T14:16:14 | 2021-09-07T14:16:14 | 402,884,683 | 1 | 0 | NOASSERTION | 2021-09-03T20:00:09 | 2021-09-03T20:00:09 | null | UTF-8 | Python | false | false | 4,403 | py | from django.utils.translation import ugettext_lazy as _
from rest_framework import serializers
from mayan.apps.rest_api.relations import MultiKwargHyperlinkedIdentityField
from mayan.apps.rest_api.serializer_mixins import CreateOnlyFieldSerializerMixin
from ..literals import DOCUMENT_FILE_ACTION_PAGE_CHOICES
from ..... | [
"roberto.rosario@mayan-edms.com"
] | roberto.rosario@mayan-edms.com |
8348c1ef6bf74078986bbe932cf0607094123add | f7f58aa4ea9ec78b20532971ddebe1e3d985dc23 | /practica11/demo/apps/home/migrations/0001_initial.py | 8e2f4d3cff30b21377b2d4c6bd257cf6e022d8e4 | [] | no_license | guille1194/Django-Practices | 10b9ff4817d41cb086e198c07bb82aee201fb049 | 738cbfdd4a12089d93cd68a0cde8653c490e7fd9 | refs/heads/master | 2021-03-08T19:30:11.229921 | 2016-05-23T05:38:53 | 2016-05-23T05:38:53 | 59,388,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,806 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | [
"guille1194@gmail.com"
] | guille1194@gmail.com |
35c3ec42b0bed2b22113637433c0ccd79369c7e1 | b08b5932c92824b592ac15e73fdffc79a7da18f3 | /cauldron/cli/sync/comm.py | c66d111478c4100ba8854e7e5bc701845c5a0ee9 | [
"MIT"
] | permissive | mlund01/cauldron | 1de7426484d429703382c068c9704929e6c25bad | 9a51cad2e5d528727151e9b60fd5be6a37b70273 | refs/heads/master | 2021-07-10T20:35:14.376399 | 2017-09-30T13:53:31 | 2017-09-30T13:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,019 | py | import requests
from requests import Response as HttpResponse
from cauldron import environ
def assemble_url(
endpoint: str,
remote_connection: 'environ.RemoteConnection' = None
) -> str:
"""
Assembles a fully-resolved remote connection URL from the given endpoint
and remote_connection stru... | [
"swernst@gmail.com"
] | swernst@gmail.com |
2f2580af3e6b347cac1c59f041da72e745bea421 | 8fe440deb4eb66d2fcb222a7c43680dc516394c1 | /src/api/bkuser_core/categories/utils.py | ce77a59d4005ae077ec7e093e24c60a0a708802c | [
"MIT"
] | permissive | robert871126/bk-user | 780e163db76a8a997ed94a1a83389fa4f81ad6a4 | 8c633e0a3821beb839ed120c4514c5733e675862 | refs/heads/master | 2023-08-20T11:05:46.317044 | 2021-10-22T08:44:06 | 2021-10-22T08:44:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic... | [
"bluesedenyu@gmail.com"
] | bluesedenyu@gmail.com |
318d389b6772abd1e5773d73bf64ff401cfbfb8d | 28f088b5356e66780c4bad204564bff92f910f02 | /src/python/pants/backend/docker/subsystems/dockerfile_parser_test.py | 533f9646fc8c9d82356bf8538864bf6be0332c24 | [
"Apache-2.0"
] | permissive | wonlay/pants | 57dcd99f82cdb2e37fcb7c563ec2bccf797ee7b7 | 53c66503b6898e83c9c9596e56cde5ad9ed6a0d3 | refs/heads/master | 2023-03-06T03:23:08.602817 | 2022-05-05T23:41:32 | 2022-05-05T23:41:32 | 24,695,709 | 0 | 0 | Apache-2.0 | 2023-03-01T11:59:58 | 2014-10-01T21:15:29 | Python | UTF-8 | Python | false | false | 6,330 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from textwrap import dedent
import pytest
from pants.backend.docker.subsystems.dockerfile_parser import DockerfileInfo, DockerfileInfoRequest
from pant... | [
"noreply@github.com"
] | wonlay.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.