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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a14162e5b6a13393930258a65f239c5258f998cc | 68eb441faf3f9415fbcbc8330f9b01ad6933bede | /ebook/machinelearningdemo/MachineLearningDemo/python_day03/Demo02_Dataframe.py | 05cda830db9ce800c5ec102716c80ec285d7354b | [] | no_license | OrriO/jupyter_myworkspace | fb8e97865f15abe2fb3aa01985fdb4f34317f15f | a592ab92f38a1cd466c454bb36fd0002c75202a9 | refs/heads/master | 2023-06-01T02:00:36.986439 | 2021-07-08T13:44:26 | 2021-07-08T13:44:26 | 381,997,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # -*- coding: utf-8 -*-
# @Time : 2018/12/5 9:18
# @Author : Z
# @Email : S
# @File : Demo02_DataFrame.py
import pandas as pd
df1 = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(df1)
print("hello git")
# 添加修改内容
###23点26分
| [
"guojj1@guahao.com"
] | guojj1@guahao.com |
0fd66913e4d6500654e1346a6071f0e86c16f33c | 7b870523b8e432384cff27fd50056da8c6a5b1e3 | /leetcode/083删除排序链表中的重复元素.py | f8238ba6c934f92a34234fd778fd7e26f68308a3 | [] | no_license | ShawDa/Coding | 93e198acdda528da608c62ca5b9e29bb0fb9e060 | b8ec1350e904665f1375c29a53f443ecf262d723 | refs/heads/master | 2020-03-25T09:20:08.767177 | 2019-09-01T06:25:10 | 2019-09-01T06:25:10 | 143,660,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | # -*- coding:utf-8 -*-
__author__ = 'ShawDa'
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head: 'ListNode') -> 'ListNode':
if not head or not head.next:
return h... | [
"1315193735@qq.com"
] | 1315193735@qq.com |
948b205c20464b1078bce436cc5f9b6691697db2 | 8ec910de801b424540abb4e6e955838a287663b6 | /CursoPython/Unidad10/Ejemplos/archivo_writable.py | 0e2f86d2c2f512256f01be061874c555b02eacdf | [] | no_license | hector81/Aprendiendo_Python | f4f211ace32d334fb6b495b1b8b449d83a7f0bf8 | 9c73f32b0c82f08e964472af1923f66c0fbb4c22 | refs/heads/master | 2022-12-28T03:41:20.378415 | 2020-09-28T09:15:03 | 2020-09-28T09:15:03 | 265,689,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | from io import open
f = open("Unidad10\\Ejemplos\\archivo.txt", "a")
print(f.writable()) | [
"noreply@github.com"
] | hector81.noreply@github.com |
f8e8d4ca4ac680377c3eb67bf278605933850dba | c289ba5d699ce015c7f7b7176621057bb8dfe1fa | /Python/algorithm/hanoi_tower/하노이의탑.py | bec0986a931b07758de7dcad219cfe58a5898788 | [] | no_license | sug5806/Upload | abd44985281b7aeadc39c654db099451a285a360 | c7e8ca38b04bdf2076862226cceaeff5ff3cfbc6 | refs/heads/master | 2020-05-03T00:48:53.763042 | 2019-04-08T10:00:11 | 2019-04-08T10:00:11 | 178,318,964 | 0 | 0 | null | 2019-04-01T02:03:14 | 2019-03-29T02:37:45 | Jupyter Notebook | UTF-8 | Python | false | false | 314 | py | n = 0
a = "A" # 출발
b = "B" # 중간
c = "C" # 도착
def hanoi(n, a, b, c):
if n == 1:
print("{}번째 원반을 {}로 이동".format(n, c))
return
hanoi(n-1, a, c, b)
print("{}번째 원반을 {}로 이동".format(n, c))
hanoi(n-1, b, a, c)
hanoi(3, a, b, c) | [
"sug5806@gmail.com"
] | sug5806@gmail.com |
26fccac5a29754168d7ea75db7369492bf854d46 | e669b3fe7da2698da4ce02e98325ce154d2aa546 | /swaps/model/wallet/withdraw.py | 4baa2eb3a0cc154ae15f13a3bd987a77ee669be8 | [
"Apache-2.0"
] | permissive | marcellinamichie291/cash_carry_leveraged_futures_arbitrageur | 0834a911fdd6c9f1462f6f2f59926f715fc51461 | 1120ebfb487ce4987fe70e6645b36e0d7ce041ec | refs/heads/main | 2023-03-16T18:35:28.730554 | 2020-12-04T07:46:13 | 2020-12-04T07:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,040 | py | from swaps.constant import *
class Withdraw:
"""
The latest status for withdraws.
:member
id: The transfer id.
currency: The crypto currency to deposit.
tx_hash: The on-chain transaction hash.
amount: The number of crypto asset transferred in its minimum unit.
addr... | [
"jare@coindexlabs.com"
] | jare@coindexlabs.com |
51f4f5dc31c811838a7775de5000e66f98945f1b | 1b01dec8c454337232a6cf1046412ec98269fe5d | /examples/sync_example.py | e60390356bcbce9b05c4461bb86460e1f002efa9 | [
"BSD-3-Clause"
] | permissive | lietu/shylock | d38710220306af1e4fac638b2d24df8a8fdc3801 | 5ada3cb4bf75e2395fadb19f68ceff5ff92e6a65 | refs/heads/master | 2023-08-09T06:58:47.653545 | 2023-03-05T16:27:30 | 2023-03-05T16:27:30 | 243,951,853 | 5 | 8 | NOASSERTION | 2023-07-25T21:10:23 | 2020-02-29T10:55:05 | Python | UTF-8 | Python | false | false | 1,196 | py | from time import time
from pymongo import MongoClient
from shylock import Lock, ShylockPymongoBackend, configure
from shylock.backends.pymongo import DOCUMENT_TTL
CONNECTION_STRING = "mongodb://localhost:27017"
def main():
print("Start")
c = MongoClient(CONNECTION_STRING)
configure(ShylockPymongoBacke... | [
"janne.enberg@lietu.net"
] | janne.enberg@lietu.net |
efe2fd91d27dab3e24d2bc319c21afca1f2a83e6 | c309e7d19af94ebcb537f1e8655c0122dbe0cb13 | /Chapter03/01-chapter-content/argparse_positional_arguments.py | 41c0ebbfbbc78a0e5b576c61eab36691762b9e38 | [
"MIT"
] | permissive | PacktPublishing/Mastering-OpenCV-4-with-Python | 0fb82c88cb7205c7050c8db9f95a6deb3b1b3333 | 4194aea6f925a4b39114aaff8463be4d18e73aba | refs/heads/master | 2023-03-07T04:51:16.071143 | 2023-02-13T10:17:48 | 2023-02-13T10:17:48 | 151,057,527 | 375 | 226 | MIT | 2022-08-27T13:32:19 | 2018-10-01T08:27:29 | Python | UTF-8 | Python | false | false | 784 | py | """
Example to introduce argparse with a positional argument
"""
# Import the required packages
import argparse
# We first create the ArgumentParser object
# The created object 'parser' will have the necessary information
# to parse the command-line arguments into data types.
parser = argparse.ArgumentParser()
# We ... | [
"fernandezvillan.alberto@gmail.com"
] | fernandezvillan.alberto@gmail.com |
21ef6f2b8e9d65d3486b9995043fba33e64b7ee2 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_205/ch38_2020_03_17_21_32_21_644302.py | 2e02b97d73747423301a36c3f31f3d55c3ad3ac1 | [] | 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 | 193 | py | def quantos_uns(x):
n = 0
x_str=str("x")
while(n<x_srt):
if "1" in x_str:
n+=1
return n
else:
return None
| [
"you@example.com"
] | you@example.com |
a7e8541c94ddc02f2d6400690083c360a1be0115 | e9fa62b4173b83ec0804329e7821a58624d3eb9f | /core/nodes/groupNode.py | c58a9a427c2692759591226e641652614218b466 | [] | no_license | UIKit0/meShaderEd | af5f0c4dc524b8be12ec6336a86c28439f1f3b1a | 683756f9c66d4613d89afdff4d1d014488b199f7 | refs/heads/master | 2021-01-17T21:16:27.037070 | 2013-12-26T12:30:26 | 2013-12-26T12:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,420 | py | #===============================================================================
# groupNode.py
#===============================================================================
import os, sys
from PyQt4 import QtCore
from core.node import Node
from core.nodeParam import NodeParam
from core.nodeNetwork import NodeNetwo... | [
"Yuri.Meshalkin@gmail.com"
] | Yuri.Meshalkin@gmail.com |
35a6990ff5ac68e8cbda235af7ac71de5d442e3d | 7d56ddd456613b77872598360494edd411366a79 | /tests/test_is_adjacent.py | adf62949215be3e2c359bd244b743528413b6fa4 | [] | no_license | andrewswan/lwotai | 3bf6629eaed86c945fdd65f221320bd743dc18ac | 33c6435ce3f0f85668cc5414cf78c1e9c614f6a9 | refs/heads/release | 2021-01-19T10:38:55.939281 | 2017-09-17T03:38:33 | 2017-09-17T03:38:33 | 87,885,218 | 1 | 0 | null | 2017-04-11T03:41:12 | 2017-04-11T03:41:12 | null | UTF-8 | Python | false | false | 620 | py | from labyrinth_test_case import LabyrinthTestCase
from lwotai.labyrinth import Labyrinth
class IsAdjacent(LabyrinthTestCase):
"""Test isAdjacent"""
def test_is_adjacent(self):
app = Labyrinth(1, 1, self.set_up_blank_test_scenario)
self.assertTrue(app.is_adjacent("Iran", "Iraq"))
self.... | [
"andrew.i.swan@gmail.com"
] | andrew.i.swan@gmail.com |
38d4016261da034fd1ad2793b4f25832785265f8 | 2670452749c6299386a33391f9fb5014db0203ec | /meraki/aio/api/mg_lan_settings.py | e71f434d300a7ebdeef9def563dca0cc0a6c628d | [
"MIT"
] | permissive | npappin-wsu/dashboard-api-python | f9d3fc682b517e6bac437cd54101afd09b653274 | 5aedfc740f676fbf34e5f79269e8ece73421e3da | refs/heads/master | 2020-06-28T17:49:44.911294 | 2020-04-14T04:27:38 | 2020-04-14T04:27:38 | 255,509,439 | 0 | 0 | MIT | 2020-04-14T04:24:55 | 2020-04-14T04:24:54 | null | UTF-8 | Python | false | false | 1,508 | py | class AsyncMGLANSettings:
def __init__(self, session):
super().__init__()
self._session = session
async def getDeviceCellularGatewaySettings(self, serial: str):
"""
**Show the LAN Settings of a MG**
https://api.meraki.com/api_docs#show-the-lan-settings-of-a-mg
... | [
"shiychen@cisco.com"
] | shiychen@cisco.com |
78de78847f7852c794ae07579f9696246ae7fe59 | 02bae0ffc4dea8e65cceb5ef49b8ec30ed3ab0fe | /week5/count_pairs.py | 92d77c4f651c0da25c5fb40badf33e4e6fa641f6 | [] | no_license | Gambrinius/Python_Course | 030ae41a129aa6a4ded06cc1ed9ca852bcf1c756 | 0d7529fa3dcc012b117241900d9d564d4096208b | refs/heads/master | 2020-03-06T16:01:33.322266 | 2018-06-15T17:49:40 | 2018-06-15T17:49:40 | 126,965,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | numList = list(map(int, input().split()))
# print(sum(numList.count(x) - 1 for x in numList) // 2)
counter = 0
for i in range(len(numList)):
for j in range(i + 1, len(numList)):
if numList[i] == numList[j]:
counter += 1
print(counter)
| [
"ilya.konon.95@gmail.com"
] | ilya.konon.95@gmail.com |
ec38145aaa3b9dba8286dd421d20ebdb7df5390f | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/list_authorized_db_users_request.py | 71cbb2d260e258c598a2112f6a4543e44ec3d044 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,237 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListAuthorizedDbUsersRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
4d2747bd95007d60e79741f0a86d8d7132ffc21f | 8ce5ad4d2c6fdf94f34ced61c87e080a54869924 | /ch5/buy_apple_orange.py | fd20dab3d4f17f9ab9957459224cd9f642057ba1 | [] | no_license | fuchami/zero-deep-learning | dabc70841a6ae5b92d9a353a47c10ee0a3d17609 | de423b143ca071530fa64b3efc18b92387932169 | refs/heads/master | 2020-07-03T10:35:37.085132 | 2019-09-06T07:50:40 | 2019-09-06T07:50:40 | 201,879,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | # coding:utf-8
from layer_naive import *
apple = 100
apple_num = 2
orange = 150
orange_num = 3
tax = 1.1
# layer
mul_apple_layer = MulLayer()
mul_orange_layer = MulLayer()
add_apple_orange = AddLayer()
mul_tax_layer = MulLayer()
# forward
apple_price = mul_apple_layer.forward(apple, apple_num)
orange_price = mul_or... | [
"famichiki.yuuki@gmail.com"
] | famichiki.yuuki@gmail.com |
ffdd91659d06d727143545bb500513b60ea0f9c5 | 4869f79cedcb8aef7f4d064bb8927ed3595c4c5e | /AnonymousGroupLogin/RegisterUser/RegisteringComponent/sleekxmpp/__init__.py | 1057895dfac385044b7f120be85a8ee7c23a037c | [] | no_license | mpetyx/xmpp-padgets-development | 622fef069e2b8f6beb15296b0d3fdd554d13535f | a0ca9ed2dd513f83ebb8cb4f4836708c82975713 | refs/heads/master | 2021-01-25T07:34:33.869597 | 2012-03-27T12:45:40 | 2012-03-27T12:45:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
from sleekxmpp.basexmpp import BaseXMPP
from sleekxmpp.clientxmpp import ClientXMPP
from sleekxmpp.componentxmpp import ComponentXMPP
from sleek... | [
"mpetyx@gmail.com"
] | mpetyx@gmail.com |
588015cc847c31ca5a2a70db1437035557d1592b | 1284718203be50b23dcd1f6159746cfa42a04163 | /tensorflow_data/sawyer/online_data1_fine/conf.py | 27d247ce2a2ed6774e7a2e912beab6b918db7255 | [] | no_license | febert/robustness_via_retrying | 8fe4106d7705228ff339f9643518a80c0a243d36 | 1def282dc22f24b72c51ff1ef9ea1a7a83291369 | refs/heads/master | 2020-03-31T19:33:39.664525 | 2018-11-07T21:52:56 | 2018-11-07T21:52:56 | 152,502,702 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | import os
current_dir = os.path.dirname(os.path.realpath(__file__))
# tf record data location:
DATA_BASE_DIR = '/'.join(str.split(current_dir, '/')[:-3]) + '/pushing_data'
BASE_DIR = '/'.join(str.split(current_dir, '/')[:-3])
# local output directory
OUT_DIR = current_dir + '/modeldata'
from python_visual_mpc.video_p... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
126b9836584a362317e832bf74cc2bbc7a083f1b | 18d51ac0a6ca14c8221c26f0dacd8d3721ca28e9 | /hun59.py | baa5b5f1fb712f457c9f7d03882e9ee6df6b936d | [] | no_license | mahakalai/mahak | 05f96d52880ed7b2e5eb70dd1dbf14fc533236e8 | 613be9df7743ef59b1f0e07b7df987d29bb23ec7 | refs/heads/master | 2020-04-15T05:01:58.541930 | 2019-07-15T16:28:32 | 2019-07-15T16:28:32 | 164,406,486 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | n=int(input())
l=[int(x) for x in input().split()]
l2=[int(x) for x in input().split()]
c=[]
for i in range(len(l)):
s=l[i]+l2[i]
c.append(s)
print(*c)
| [
"noreply@github.com"
] | mahakalai.noreply@github.com |
ecfed22a55a201c3f82849c3350765d7d6ff4eba | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/gender-of-subject-officers-compared-to-new-york-city-police-department-demographics-2005-2009/depositor.py | 9a7c26eb798400b152d2480a759e5404a12e4edc | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/views/jhq9-vaec/rows.csv?accessType=DOWNLOAD")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/gender-of-subject-officers-compared-to-new-york-city-police-department-demographics-2005-2009/data.csv", "wb") as f:
f.write(r.content... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
dc310ccf36c09943bcf439e31b5b6381c1913d7e | 52ab2da7b131643a344ee5344d8f35aebd6e2eed | /WebProject1/myvenv/lib/python3.6/site-packages/sqlalchemy/sql/__init__.py | 8968d2993b0f5da270970be936ef2021846d8b59 | [
"MIT"
] | permissive | ucsb-cs48-w19/5pm-findtheroommate | cd6db6c4cf3ee6f159b04456ba13b1ef684c7546 | d9d01b95c478e7493b5b32c8b56ceed00578b188 | refs/heads/master | 2020-04-16T01:00:16.617610 | 2019-03-19T20:42:38 | 2019-03-19T20:42:38 | 165,158,037 | 2 | 1 | MIT | 2019-03-05T00:46:12 | 2019-01-11T01:28:11 | Python | UTF-8 | Python | false | false | 3,753 | py | # sql/__init__.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from .expression import Alias # noqa
from .expression import alias # noqa
from .ex... | [
"tengyue@umail.ucsb.edu"
] | tengyue@umail.ucsb.edu |
bfa7b1112caec573c39a7a869fab1368f335267a | 14c9f543d540d318d30d7acffb636e47b5d62f0a | /ctrl/ctrl/session_parameters/temi/robot_axioms.py | 3af95e75a3eae08a9f59e0ac3f2ffa37f12f4be8 | [] | no_license | Wisc-HCI/Figaro | cecd71d0f179bcfe413b657e9a8dc02be015eff6 | 20ae549dc53064d3d4f203e623e71220a3cde1e7 | refs/heads/master | 2023-04-27T11:40:02.969537 | 2021-05-19T16:26:12 | 2021-05-19T16:26:12 | 358,723,686 | 0 | 1 | null | 2021-05-17T20:54:53 | 2021-04-16T21:29:01 | Python | UTF-8 | Python | false | false | 3,917 | py | class RobotAxioms:
def __init__(self):
pass
def ensure_position_and_movement_overlap(self,moments):
# if movement is currently True and position is SOMETHING, and (1) the next movement is False and (2) the next position is ["X"], then add "movement" to the nexr position
for i in range(len(moments)-1):
curr... | [
"dporfirio@wisc.edu"
] | dporfirio@wisc.edu |
3a5ced59755c9071387459bf7015cf54c2e95827 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnvoila.py | dfe94dfc59bad8caffd2aabc270d1f9a193b666d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 102 | py | ii = [('CarlTFR.py', 6), ('IrviWVD.py', 1), ('MedwTAI2.py', 2), ('MackCNH2.py', 1), ('RogeSIP.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
42a5eabd43a28f32e8d007c07ca5aae29e454e35 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/1165/codes/1756_1576.py | 83c8a894e2fa689875e700b54fc225283acbf3c8 | [] | 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 | 587 | py | from numpy import*
#Sequencia de jogadas de Eusápia
v1 = array(eval(input("Insira a sequencia: ")))
#Sequencia dejogadas de Barsanulfo
v2 = array(eval(input("Insira a sequencia: ")))
i = 0
ve = 0
vb = 0
while(i < size(v1)):
if(((v1[i]== 11) and (v2[i]==33)) or ((v1[i]==22) and (v2[i]==11)) or ((v1[i]==33) and (v2[... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
03901fefe164445132e86bddd2aa7e411d6aeea7 | 9124e66c8ec04e61537473437a92b53daa32ce20 | /rojas/app19.py | 65d6e760247d6d6473079299176ccd573657bac7 | [] | no_license | erick1984linares/t10_linares_rojas | 28618baccb3472fb8d48b34f5d1107b702c399d0 | ba9462b3b881dbd3665907a7a33c4c7d80aa4251 | refs/heads/master | 2020-12-04T06:38:06.929626 | 2020-01-10T11:52:29 | 2020-01-10T11:52:29 | 231,661,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from Rojas import libreria
oppcn=0
limit=3
while (oppcn != limit):
print("########################")
print("# MENU #")
print("########################")
print("# 1. Agregar anotacion #")
print("# 2. Ver agregados #")
print("# 3. Salir #")
print("############... | [
"ylinares@unprg.edu.pe"
] | ylinares@unprg.edu.pe |
5856fc7d02728c47ba6b6baf94230d6063b3e862 | 55c64c7a78c5f78f35f84ae1fce60d387ba11040 | /bc4py/chain/workhash.py | 9d2a80975c3daa597969793d516bf0fa1df853e0 | [
"MIT"
] | permissive | kmn/bc4py | df580de46456fed860e7fc0a812f5b46e04483c3 | 8f9ee09ed1325faad8c361a9b6c1b5abbc93cbc1 | refs/heads/master | 2020-04-13T06:04:32.273534 | 2018-12-18T02:48:41 | 2018-12-18T02:48:41 | 163,010,903 | 0 | 0 | null | 2018-12-24T17:16:21 | 2018-12-24T17:16:21 | null | UTF-8 | Python | false | false | 7,130 | py | from bc4py.config import C, BlockChainError
from multiprocessing import get_context, current_process
import threading
import logging
from os import urandom
from time import time, sleep
from yespower import hash as yespower_hash # for CPU
from x11_hash import getPoWHash as x11_hash # for ASIC
from hmq_hash import getP... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
8c1eb68dd152c81f80eb1ecdfc66c0b3e21895bd | cc6f0e69703e8900c99cd0c15d1df10e81d24909 | /PiGlassBetaTesting.py | db69570a289dfaabd0f0499a9a8d3dadd3c2f948 | [
"MIT"
] | permissive | iCodeIN/piglass | 789c72a6f68542c4954ce0185f40f31f5da2fffc | eaf84d4620908848e3b9e835f027d450153ab37c | refs/heads/master | 2022-04-16T13:41:24.489525 | 2018-05-16T19:01:43 | 2018-05-16T19:01:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,361 | py | from subprocess import call
import RPi.GPIO as GPIO
import picamera
import time
import sys
import datetime
import cv2
import numpy as np
import KeyboardPoller
import subprocess
import thread
import re
height = 600
width = 800
alphaValue = 75
o = None
recording = 0
buttoncounter = 0
camera = picamera.PiCamera()
global... | [
"noreply@github.com"
] | iCodeIN.noreply@github.com |
2f41fce2486a6fd898fa969a55cd13b94650392e | 882c865cf0a4b94fdd117affbb5748bdf4e056d0 | /python/BOJ/08_DP/1915_가장큰정사각형.py | 553f36b68765d60dd1500395a58dfec90db8a5c6 | [] | no_license | minhee0327/Algorithm | ebae861e90069e2d9cf0680159e14c833b2f0da3 | fb0d3763b1b75d310de4c19c77014e8fb86dad0d | refs/heads/master | 2023-08-15T14:55:49.769179 | 2021-09-14T04:05:11 | 2021-09-14T04:05:11 | 331,007,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | n, m = map(int, input().split())
arr = [[0 for _ in range(m+1)] for i in range(n+1)]
DP = [[0 for _ in range(m+1)] for i in range(n+1)]
ans = 0
for i in range(n):
for idx, j in enumerate(list(map(int, list(input())))):
arr[i+1][idx+1] = j
for i in range(1, n+1):
for j in range(1, m+1):
if arr[... | [
"queen.minhee@gmail.com"
] | queen.minhee@gmail.com |
a1ef0772f64128312a6b795eea2b2e63a7a6c374 | e8a48749014f372633de65d79bfa26a3ad743d89 | /src/transformers/models/unispeech_sat/configuration_unispeech_sat.py | bc8663587d96d8a070a3832872ff53a64827a6f1 | [
"Apache-2.0"
] | permissive | pvcastro/pytorch-pretrained-BERT | 183b7291972c8d8c66c995647df66c1fe439a763 | 49cd736a288a315d741e5c337790effa4c9fa689 | refs/heads/master | 2022-08-19T08:55:16.332585 | 2022-06-30T16:11:08 | 2022-06-30T16:11:08 | 168,367,637 | 1 | 0 | Apache-2.0 | 2019-01-30T15:39:42 | 2019-01-30T15:39:41 | null | UTF-8 | Python | false | false | 18,400 | py | # coding=utf-8
# Copyright 2021 The Fairseq Authors and The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/... | [
"noreply@github.com"
] | pvcastro.noreply@github.com |
9e81fd44c79e908e7b9db8f27e74f9b6311874d5 | 2c7de112498f65c7b6a74888490266ec6c772e47 | /PDSim/core/journal_bearing.py | 04b5ebc907b447af1da97d9e2d092cf83768c42a | [] | no_license | bansal16/pdsim | 16c83dfc1af9816c369e07b6ef50e74658359c22 | 9098086c558d6b23c25d1b9e45ea86186905f41a | refs/heads/master | 2020-12-31T01:48:08.672061 | 2015-04-08T02:14:09 | 2015-04-08T02:14:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | from __future__ import division
import numpy as np
from math import pi, atan
import scipy.optimize
import matplotlib.pyplot as plt
N = 61
#e_mat=[0.2,0.25,0.3,0.35,0.4,0.5,0.6,0.7,0.8,0.9];
phi_star = pi
def TwoDGriddedIntegrate(I,N):
# Average the center of each cell based on its neighboring nodes
... | [
"ian.h.bell@gmail.com"
] | ian.h.bell@gmail.com |
146eda27bba2e7af27bc4756c5c0cd8650510af9 | 60e38d3122cfb18cf8901e0d7fba02ef2a32affa | /notebooks/converted_notebooks/rotate_and_crop_images.py | 3f4def955ba5f7466af281090a2d737a65fe3d19 | [
"BSD-3-Clause"
] | permissive | earnestdl/python_notebooks | ac11b40d9d5e721b947b083b2f4c301079f206a8 | 4ef31711b70b90cf621e9e9d094fa2a43eeeae16 | refs/heads/master | 2023-03-12T19:41:44.229158 | 2021-02-22T15:41:57 | 2021-02-22T15:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,223 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.5.0
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# [:
pass
@command
def do_pause(self, arg, arguments):
"""
Usage:
pause [MESSAGE]
Displays the specified text then waits for the user to press RETURN.
Arguments:
MESSAGE mes... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
bbc7675acc7ac35bcfd976febc56886686fd3b6c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_317/ch19_2020_10_07_12_53_37_322833.py | b1a16cdb8cabc49234e4f11bf87e85323c500893 | [] | 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 | 225 | py | def classifica_triangulo(a,b,c):
if a == b and b==c and c==a:
return "equilátero"
elif a!=b and b!=c and c!=a:
return "escaleno"
elif a==b and b==c and c!=a:
return "isósceles" | [
"you@example.com"
] | you@example.com |
f69dafe7e3cd2bba8f46924f56fc36ccaeb49bb1 | a3d0e224a2a8487f8d271991b3cf1981b9e58791 | /python/PoissonDistribuition/solution/PoissonDistribII.py | 4c246a2f1086dd71d25a654cf77052b7b7aca74e | [] | no_license | chrislucas/hackerrank-10-days-of-statistics | c66306f55ca7e0080cecebfed497b5032f8a0007 | 94fce754274ad706b44b06f9d6ff8d96838c80d0 | refs/heads/master | 2020-03-25T23:48:11.992249 | 2018-12-05T17:35:21 | 2018-12-05T17:35:21 | 144,293,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | '''
https://www.hackerrank.com/challenges/s10-poisson-distribution-2/problem
'''
from math import e as E
def factorial(n):
acc = 1
for i in range(n, 1, -1):
acc *= i
return acc
def poisson_distribution(success, avg):
return ((avg ** success) * (E ** (-avg))) / factorial(success)
'''
a = 0... | [
"christoffer.luccas@gmail.com"
] | christoffer.luccas@gmail.com |
736fc586eeb80e5b1b5a212f088fc98d4a063837 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/python/ops/array_grad.pyi | 0ce04ead67f2347cf2ccd72e01a31d5ad3c5b6c6 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | pyi | # Stubs for tensorflow.python.ops.array_grad (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python import pywrap_tensorflow as pywrap_tensorflow
from tensorflow.python.eager import context as context
from tensorflow.python.framework import constant_op as consta... | [
"matangover@gmail.com"
] | matangover@gmail.com |
5c899471a1f6911eedcac4f5185958ee38057e03 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/blis/tests/common.py | 643d09ec1fd370778e9270a7a94dc2d2f13b6eea | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:9047f9d9f85d18d5f16a141581ac46738f83c8e1b9d1ceff33a90c06e9979143
size 2577
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
7a220d54cfeb7e621203b6f09cdc08c108375b43 | 5f5c6809e9e68127262c843602185f3d6d6d556b | /thejoker/tests/test_data.py | e8cf4dcbd7dfbe01bb76eec800c6f88f20866519 | [
"MIT"
] | permissive | minaskar/thejoker | e195bd361d4eadf051fb29380d110d214ea65a1b | b7ba1d094ce3d4d61c1db80da37981327f280d34 | refs/heads/master | 2023-03-16T02:55:04.644778 | 2020-06-15T19:39:29 | 2020-06-15T19:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,712 | py | """Tests for data.py and data_helpers.py"""
# Third-party
from astropy.table import Table
from astropy.time import Time
from astropy.timeseries import TimeSeries
import astropy.units as u
import numpy as np
import pytest
try:
import matplotlib.pyplot as plt
HAS_MPL = True
except ImportError:
HAS_MPL = Fal... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
aac470ddd0fd3c5e81d63ee500ed64596d8d060c | d9b2805a8b39f147bd77e35c8e96e0cbd5eaa726 | /학교 공부/3학년1학기/운영체제 - 김정준/텀과제/osProject_피드.py | 28c84c62698c8a349e6894f628b2c94152b2f5c3 | [] | no_license | LeeInHaeng/Study | ca8e3e2d4111dc3f742eefea541a67739d729e75 | 96bdb1d224702cebb8a6de6bbd596b075ee33f7b | refs/heads/master | 2020-03-28T11:03:03.848316 | 2019-04-20T08:33:26 | 2019-04-20T08:33:26 | 148,172,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import threading
import random
import time
customCnt = int(input("전체 고객의 수를 입력하세요 : "))
bank = int(input("은행 창구의 수를 입력하세요 : "))
sem = threading.Semaphore(bank) # 세마포 객체 생성, ~개의 쓰레드로 제한
vip_sem = threading.Semaphore(1)
class RestrictedArea(threading.Thread):
def run(self):
# self.getName() : T... | [
"lih0420@naver.com"
] | lih0420@naver.com |
17382c82886a6f79476e82a3746c9219c595aa7c | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /product/models/res_partner.py | 9d36b9fcfddf842d91ea1defac36b635e4999208 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | # -*- coding: utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api
class Partner(models.Model):
_name = 'res.partner'
_inherit = 'res.partner'
# NOT A REAL PROPERTY !!!!
property_product_pricelist = fields.Many2one(
'prod... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
cc9344aa970edeb891170348018e4f20b39b2bc2 | 1581bacbb7e7ed2f97aa1fb903ca0cf1a351be14 | /lib/framework/__init__.py | e7df70e79c346c3778f3fc2b43c63503b14059ef | [] | no_license | COOHU-Kr/SJVA3 | f5b7287aaa658287b003300e1973b63d2f6ac567 | ef68c085d980d0eb395da21f89cf999eeca8f980 | refs/heads/main | 2023-04-12T08:58:29.074902 | 2021-05-16T12:30:02 | 2021-05-16T12:30:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,488 | py | # -*- coding: utf-8 -*-
version = '0.2.20.10'
#########################################################
# python
import os
import sys
import platform
path_app_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
path_data = os.path.join(path_app_root, 'data')
flag_system_loading ... | [
"cybersol@naver.com"
] | cybersol@naver.com |
c132e2ae4180e29a9a299525b1e4ec34899ea39a | d2eaacf8189655051d0d078e39a4d924df215b96 | /termtables/__about__.py | 699d5d53309c216bc4352884aae952bc2dc24cd2 | [
"MIT"
] | permissive | jayvdb/termtables | 4fdee11ec5b713c542c0d26aa00be0103db55787 | 5508afa6d813081355d95d80f5471f2d9ada738a | refs/heads/master | 2020-08-20T12:01:02.779004 | 2019-09-26T08:48:31 | 2019-09-26T08:48:31 | 216,020,488 | 0 | 0 | MIT | 2019-10-18T12:36:25 | 2019-10-18T12:36:22 | null | UTF-8 | Python | false | false | 267 | py | __author__ = "Nico Schlömer"
__email__ = "nico.schloemer@gmail.com"
__copyright__ = "Copyright (c) 2019 {} <{}>".format(__author__, __email__)
__license__ = "License :: OSI Approved :: MIT License"
__version__ = "0.1.0"
__status__ = "Development Status :: 4 - Beta"
| [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
6785637051cfb8ea05984b5fe150317fe94fb5fb | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /zRm6YDfQHoesdc3rb_23.py | f98bf044cde1ef882771ddac94ca7a7d1163f5aa | [] | 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 | 691 | py | """
Let there be a square matrix, where each square is a rectangle, and a
combination of more squares are also rectangles. To find the number of
rectangles, Pete sat down and started counting... but that's highly
inefficient.
Create a function that takes the order of the matrix as input and returns the
number of re... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3d72b403ae7bfb81b3d7bc29b76b7c477254a591 | d25a8b0e9f8a4f48504a49e094085f92d8d8e08a | /doc_db/db_utility.py | 7e8a6fd740a58b26dbba23e873fb50e127b99381 | [
"MIT"
] | permissive | William-Lake/doc_db | c7ad963bc0ff3a75b9a690bf44025e2aa6d1773b | 022b3e08d10d104fd838c7a094091e78d771ebe1 | refs/heads/master | 2020-03-31T01:34:59.815672 | 2019-01-30T18:36:39 | 2019-01-30T18:36:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import logging
from peewee import *
from database import *
class DatabaseUtility(object):
def __init__(self):
self.logger = logging.getLogger()
self.logger.info('DatabaseUtility Loaded')
def get_saved_doc_names(self): return [Doc.name for doc in Doc.select(Doc.name)]
def get_doc_by_nam... | [
"noreply"
] | noreply |
45392b0540f4de029b377456a799b8585ff10c7b | 764ce53fd708bb3f81d67cc9a2366265c9a685b9 | /Week1/Factors.py | aa00fbffd99894f7d3cca1da5f13b82509bf51a8 | [] | no_license | Vaishnavi-Gajinkar/Bridgelabz | 3d17b8399432ac5643059e822ccad9a90f919e9f | e51551ab675dbb5444ba222cc88ac05fbeab49d2 | refs/heads/master | 2020-12-28T02:45:18.517627 | 2020-03-09T13:42:37 | 2020-03-09T13:42:37 | 238,153,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | print("Enter a number")
num=int(input())
l=[]
for i in range(1, num+1):
if num%i==0:
l.append(i)
print(l) | [
"vaishnavi.gajinkar@gmail.com"
] | vaishnavi.gajinkar@gmail.com |
d4128909b323bf4c9ffdb7a50cb441e3b45941ec | 2eff7fdb6b4d61341c66e6afbf1ba63c67394d72 | /.history/codes_20201115144555.py | 079c1938cbf7e8425a8f965983bbb47a1a63132e | [] | no_license | E-STAT/speech_datacamp | 6b07390954b733d78768b24e18002579d744b58a | 8999629b0053e8662fc54ebb161f3a8a4f74d09d | refs/heads/master | 2023-01-21T06:13:40.909833 | 2020-11-23T12:32:42 | 2020-11-23T12:32:42 | 315,310,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | import wave
import numpy as np
import matplotlib.pyplot as plt
# Create audio file wave object
good_morning = wave.open('good_morning.wav', 'r')
# Read all frames from wave object
signal_gm = good_morning.readframes(-1)
# View first 10
print(signal_gm[:10])
########################Converting Soundwave byte to inte... | [
"owojori.tolulope@gmail.com"
] | owojori.tolulope@gmail.com |
0d8aded2a3e9f49e4ad86a5be226ec743735d1d2 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-dlf/huaweicloudsdkdlf/v1/model/list_resources_request.py | 5716faaafbd2ec1d1739014329eae634757f0efb | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,110 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListResourcesRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribu... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
64f66b71e952e997146063c90f70b2ed49cfa209 | 38a9e2780ac8b800c336207a5c0a621eb1277a53 | /src/olympus/analyzer/__init__.py | 839899b2886be83bce8b5b9e17bc248f3c111b4b | [
"MIT"
] | permissive | priyansh-1902/olympus | 2454850413bb0562a1bfe20ab35fa7e770367323 | f57ad769918c0d5d805c439ab5ffbd180af698fa | refs/heads/main | 2023-06-21T05:58:49.118264 | 2021-08-07T22:19:41 | 2021-08-07T22:19:41 | 342,454,516 | 0 | 0 | MIT | 2021-08-07T22:19:41 | 2021-02-26T03:43:08 | Python | UTF-8 | Python | false | false | 54 | py | #!/usr/bin/env python
from .analyzer import Analyzer
| [
"hase.florian@gmail.com"
] | hase.florian@gmail.com |
c9e642a44b968079964309823b5b11beb0050205 | 905020fce75b4b63517ec31c601e721f5c260cd1 | /Тестирование is_prime().py | f87456f26c0167831c8087dac86c87e727c705f9 | [] | no_license | Dimaed90800/Python_Y | 7858ad46309281a89c5c1e83a0f09030996182a4 | 04092b854605cb05df439eeeb52003e585bb5a29 | refs/heads/main | 2023-01-24T04:11:17.858281 | 2020-11-17T20:42:45 | 2020-11-17T20:42:45 | 313,731,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from yandex_testing_lesson import is_prime
ans = ''
prime_nums = ['2', '3', '5', '7', '11', '13', '17', '19', '23', '29', '31',
'83', '89', '97', '101', '103', '107', '109']
for i in prime_nums:
if is_prime(i) in prime_nums:
ans = 'YES'
else:
ans = 'NO'
complicated... | [
"noreply@github.com"
] | Dimaed90800.noreply@github.com |
9036422dcea82e711dfe2869f7bd5fd22ae042fc | 38fb82ff9f5ecee937cb950889335402aba2c7a6 | /route/migrations/0003_suggest_description.py | 18fdd3df086e6356dcde63674aefc2a8cd5563c2 | [] | no_license | squallcs12/vivu2017 | abe9c42cfd831de3411c1b986b6d5c4c4099808a | c6a3f37ee238464c9bf9de61a1c6e9f5be21f40f | refs/heads/master | 2021-01-11T22:36:21.289404 | 2017-02-02T08:11:19 | 2017-02-02T08:11:19 | 78,998,307 | 0 | 0 | null | 2017-02-02T08:11:20 | 2017-01-15T04:55:01 | Python | UTF-8 | Python | false | false | 486 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-24 05:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('route', '0002_auto_20170124_0431'),
]
operations = [
migrations.AddField(
... | [
"daotranbang@gmail.com"
] | daotranbang@gmail.com |
06080b3fb0a23b3b4bc63e89f195003d3c5f50f8 | 9a9088713c917ac47c0b8713d6969b2cfcdbadac | /leetcode_python/829.Consecutive_Numbers_Sum.py | 2b564ef821aabab0906660d0a0f99482b9bb0ad7 | [] | no_license | zihuaweng/leetcode-solutions | 615fdcb9178b19764b4d30bcfe65a9f785e77270 | e431ff831ddd5f26891e6ee4506a20d7972b4f02 | refs/heads/master | 2023-02-06T03:58:26.413711 | 2020-12-26T05:23:03 | 2020-12-26T05:23:03 | 311,418,790 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | #!/usr/bin/env python3
# coding: utf-8
# Time complexity: O()
# Space complexity: O()
# https://leetcode.com/problems/consecutive-numbers-sum/
# https://leetcode.com/problems/consecutive-numbers-sum/discuss/129015/5-lines-C%2B%2B-solution-with-detailed-mathematical-explanation.
class Solution:
def consecutiveNum... | [
"zihuaw2@uci.edu"
] | zihuaw2@uci.edu |
4b3fe77e2e0a1432c7500cff79ec5504e9928a0f | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenSearchboxDowngradePreconsultModel.py | 6939163275bc9a2554845ced061bb3ab165d749c | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 883 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenSearchboxDowngradePreconsultModel(object):
def __init__(self):
self._box_id = None
@property
def box_id(self):
return self._box_id
@box_id.setter
def b... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
5170e8a9d1354e33d0bbb1a8e191b448f5397bdd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03167/s315916496.py | 8af060443edca9f35df49dadab2a2d70859c258b | [] | 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 | 508 | py | #dt = {} for i in x: dt[i] = dt.get(i,0)+1
import sys;input = sys.stdin.readline
inp,ip = lambda :int(input()),lambda :[int(w) for w in input().split()]
M = 10**9+7
h,w = ip()
grid = [input().strip() for i in range(h)]
dp = [[0]*w for i in range(h)]
dp[0][0] = 1
for i in range(h):
for j in range(w):
if i-1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
568313b9e57d494a2f69cf8e3b087d4be843b081 | d0fe291905e1be001b3407c38e4d9702e94d7d42 | /ar/register_device.py | c5ee21483d7a3f300f479fe1124ef28a36308029 | [] | no_license | storvik/pythonremote | f508a4913fe653e51006a8456bbbf5b0aced9fd7 | a880a585a70c8a853b736ecb09f0712c96f2614b | refs/heads/master | 2021-01-01T06:33:18.628235 | 2015-09-21T04:46:34 | 2015-09-21T04:46:34 | 25,593,912 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | import os
import string
import requests
import urllib
from .gcm import Gcm_req
from .color import color, green, red, yellow
from .load_device import load_device
from .load_computer import load_computer
from .unshorten_url import unshorten_url
# Register new device to autoremotedevices.txt
def register_device(config_p... | [
"="
] | = |
09a981fcec8dd6271c17d600235d3a7be9caba06 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_325/ch42_2020_03_26_19_44_19_862731.py | 030854db3859bd46deaf4ce4de9d234c5a682e3a | [] | 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 | 194 | py | palavra = input("Digite sua palavra: ")
lista = []
i = 0
while palavra != "fim":
palavra = input("Digite sua palavra: ")
if palavra[i] == "a":
lista.append(palavra[i])
i += 1 | [
"you@example.com"
] | you@example.com |
2cc97c38877aae8391444fa04b9a9e8252833132 | 2a1b8a671aceda6bc446f8ce26400aa84fa444a6 | /Packs/CommonScripts/Scripts/ExtractHTMLTables/ExtractHTMLTables.py | 992e12ef7d173e3f43d201634fe78157ba9c1345 | [
"MIT"
] | permissive | demisto/content | 6d4722d46f0ff0beea2748e9f7de585bf91a78b4 | 890def5a0e0ae8d6eaa538148249ddbc851dbb6b | refs/heads/master | 2023-09-04T00:02:25.618032 | 2023-09-03T21:56:22 | 2023-09-03T21:56:22 | 60,525,392 | 1,023 | 1,921 | MIT | 2023-09-14T20:55:24 | 2016-06-06T12:17:02 | Python | UTF-8 | Python | false | false | 2,217 | py | import demistomock as demisto # noqa: F401
from bs4 import BeautifulSoup
from CommonServerPython import * # noqa: F401
def extract_html_table(html, indexes):
soup = BeautifulSoup(html, 'html.parser')
tables = []
for index, tab in enumerate(soup.find_all('table')):
if len(indexes) > 0 and index n... | [
"noreply@github.com"
] | demisto.noreply@github.com |
785c3cc0af72cc2637877e9c6a612a0a81a3389b | 30eb942d849dab9250bbd541a8d7128d15be8556 | /host/EcoBTCentralManagerWorker.py | 20eb62f8ea031115606c95ce53db5940223fcd9f | [] | no_license | cjhuo/Lab_projects-EcoBT-HOST-N-SERVER | 55e42b1e4d5f88bc978f5b6c07ab3798626a88fa | 396cb823ed74552985f4afa157fe3887afe48b65 | refs/heads/master | 2020-06-06T12:25:23.111232 | 2014-01-31T07:03:02 | 2014-01-31T07:03:02 | 26,940,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,181 | py | '''
@summary:
monitor the input queue where command sent from UI is stored, and send to where the worker belongs to\
A manager worker has members as below:
instance of central manager,
instance of central manager delegate,
list of discovered peripheral workers
'''
from Foundation import *
#from PyObjCTools import A... | [
"chengjia.huo@gmail.com"
] | chengjia.huo@gmail.com |
d6309c0542fa1789c852ee9441c523c99edc7a90 | bf57ccabb586e624ec33f0aa2cdce298c99459e1 | /python/lsst/meas/extensions/simpleShape/__init__.py | 185b138198bdc79b230f2ed8bc985197b1c91488 | [] | no_license | jonathansick-shadow/meas_extensions_simpleShape | 3ac60daef4f5f878cd13bb341630af1ea3d2934f | 556670ae1ca6d4c6fbbef52c4837fafb245c00c3 | refs/heads/master | 2020-04-05T23:09:11.347445 | 2014-06-20T22:43:32 | 2014-06-20T22:43:32 | 54,810,102 | 0 | 0 | null | 2016-03-27T03:00:37 | 2016-03-27T03:00:36 | null | UTF-8 | Python | false | false | 214 | py | from .simpleShapeLib import *
from .version import * # generated by sconsUtils
from lsst.meas.algorithms.algorithmRegistry import AlgorithmRegistry
AlgorithmRegistry.register("shape.simple", SimpleShapeControl)
| [
"jbosch@astro.princeton.edu"
] | jbosch@astro.princeton.edu |
b2f419d19da9a9fcdc4e997e3782e947b7dfb813 | 46fb9eea28f92c637273b2065cb8c38abe5a2007 | /tbjh/jupyterhub_config.py | 746ca8fb6be519a7ce3ad49cc49e9b5d278a5c76 | [
"BSD-3-Clause"
] | permissive | yuvipanda/the-batchiest-jupyterhub | 0337838e2f094bcee21c6a8a0a1ed261c4e3970d | c3d34f55f844f307850e879ce8e464e7f367d1e3 | refs/heads/master | 2022-10-02T20:23:07.252736 | 2020-06-04T13:04:21 | 2020-06-04T13:04:21 | 264,124,457 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | import json
import pwd
import os
import pathlib
import asyncio
import subprocess
from glob import glob
from jupyterhub_traefik_proxy import TraefikTomlProxy
from tbjh import constants
# Don't kill servers when JupyterHub restarts
c.JupyterHub.cleanup_servers = False
# Traefik should be started by systemd
c.JupyterHu... | [
"yuvipanda@gmail.com"
] | yuvipanda@gmail.com |
f2149e2231b00c5ed68eeabea58a9727811fe6b8 | a0eb6744e6f7f509b96d21f0bc8b3f8387f6861c | /notebook/os_stat.py | 2ac10452705a12d3368f8ecb6e8cc6cfde8f5ca3 | [
"MIT"
] | permissive | nkmk/python-snippets | a6c66bdf999502e52f4795a3074ced63bf440817 | f9dd286a9cf93f474e20371f8fffc4732cb3c4d5 | refs/heads/master | 2023-08-03T04:20:05.606293 | 2023-07-26T13:21:11 | 2023-07-26T13:21:11 | 98,900,570 | 253 | 77 | MIT | 2020-10-25T01:12:53 | 2017-07-31T14:54:47 | Jupyter Notebook | UTF-8 | Python | false | false | 2,890 | py | import os
import pathlib
import datetime
import time
import platform
p = pathlib.Path('data/temp/test.txt')
p.write_text('test')
time.sleep(10)
p.write_text('update')
# 6
print(p.stat())
# os.stat_result(st_mode=33188, st_ino=8728494137, st_dev=16777220, st_nlink=1, st_uid=501, st_gid=20, st_size=6, st_atime=15490... | [
"nkmk.on@gmail.com"
] | nkmk.on@gmail.com |
858748ae013e2904d796045042e9433ef8f91d9c | b47a619f6ccd0f76ccce989e62d0c963a1c14ab4 | /Python/String general/Remove All Adjacent Duplicates In String.py | f29cbb7022b54f28f8b3c440b9a95d36bd92b889 | [] | no_license | GreatTwang/lccc_solution | 0799d19097549ef3c9beeebf6dc9960db9f9eb54 | e75899634f45b0d60f8b3cb854ab9e503d676a57 | refs/heads/master | 2020-07-07T02:45:18.984502 | 2019-10-09T04:53:35 | 2019-10-09T04:53:35 | 203,219,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # O(N) O(N)
# if c==stack top one then pop, else push into stack
class Solution:
def removeDuplicates(self, S: str) -> str:
stack=[]
for c in S:
if stack and c==stack[-1]:
stack.pop()
else:
stack.append(c)
return ''.join(stack))
... | [
"tianwang@bu.edu"
] | tianwang@bu.edu |
c8b5bad84514b74417ff2eb13f76d4404db322ca | fe096ed06c34ae3adf958760886dd5f2fc64fa90 | /Heap (Priority Queue)/kClosestPointsToOrigin.py | 8b49044cf7e3c6b3a888bdad5e1abcf7473f227d | [] | no_license | harshmalviya7/LeetCode_Coding_Questions | c9d8a93f4a5664dcf57098cd58f3f1d95667b0c0 | 47edb51e55e390861ed539972d8bf66b41b4cdd7 | refs/heads/master | 2023-08-23T01:09:40.110710 | 2021-10-21T12:53:36 | 2021-10-21T12:53:36 | 373,072,675 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # 973. K Closest Points to Origin
# https://leetcode.com/problems/k-closest-points-to-origin/
import heapq
class Solution:
def kClosest(self, points: List[List[int]], k: int) -> List[List[int]]:
out = 0
e = []
for j, i in enumerate(points):
heapq.heappush(e, (-(i[0] * i[0] + i... | [
"harsh.malviya.9869@gmail.com"
] | harsh.malviya.9869@gmail.com |
834321d61bdd025df9f0b9f1bf249d10cdfcb5b4 | c28ac3e0dd887e25d40e019dde062e73cb4a433c | /scripts/TargetTaxaGenes/TargetTaxaGenes.py | 4c96216dec48f4715b883e77e28fb2b29d58b027 | [] | no_license | ZhikunWu/Bioinformatic-resources | 16abc66f19d95dd14c11b2a453f7b3df0ed1fa16 | 2695dd0e249a49b948ac56cd71574b84c24cbf8a | refs/heads/master | 2021-06-01T22:29:40.731595 | 2020-10-10T01:41:07 | 2020-10-10T01:41:07 | 134,114,964 | 10 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | #!/usr/bin/env python
import collections
import argparse
#usage: python TargetTaxaGenes.py --gene /home/wzk/Project/C128/NCyc/representive.faa.annotation.xls --taxonomy /home/wzk/Project/C128/NR/representive.faa.diamond_taxonomy_species.txt --out representive.faa.diamond_taxonomy_species_NCyc.txt
def get_NCyc_... | [
"598466208@qq.com"
] | 598466208@qq.com |
d581043ac8d2272090dc353c9017bcb459065be1 | b99b32fb0b4597bee94809ebd3b2ddae43064bee | /landmark_detection/menpofit/error/human/face.py | 5aa7f554748c565e7cf57e1e939a3b1c9827b545 | [] | no_license | HongwenZhang/ECT-FaceAlignment | c0129dc2aa20bc2bdba03a9ed1cabebcd5e5d848 | e94b446db73fca5ba751d6d9a81d42633208f228 | refs/heads/master | 2023-01-29T14:25:19.502350 | 2020-12-13T09:18:55 | 2020-12-13T09:18:55 | 111,511,579 | 31 | 19 | null | null | null | null | UTF-8 | Python | false | false | 15,076 | py | import numpy as np
from menpo.shape import PointCloud
from menpo.landmark import (face_ibug_68_to_face_ibug_49,
face_ibug_68_to_face_ibug_68,
face_ibug_49_to_face_ibug_49)
from menpofit.error import euclidean_error
from menpofit.error.base import (distance_norma... | [
"hongwen.zhang@cripac.ia.ac.cn"
] | hongwen.zhang@cripac.ia.ac.cn |
39b8024b1f674cfea0f2b7a50c585c89ddc5546a | 13a70bdc3ac997d0d6c839fe633deed3ca7fc5ab | /ch07-Linear_regrs/Ridge_regre.py | bbec67ae57bb14c87fff6654ab05b19258ddceb5 | [] | no_license | Y1ran/Machine-Learning-in-Action-Python3 | 5546a777d78aee6445da1621b2deaddb099ae6ef | 5aca5f9b865be449793e50ce32cba7c9b1ef286b | refs/heads/master | 2022-10-09T06:30:08.122526 | 2022-09-30T10:04:53 | 2022-09-30T10:04:53 | 139,533,418 | 403 | 233 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 14 15:04:10 2018
@author: Administrator
"""
def ridgeRegres(xMat,yMat,lam=0.2):
'''
#岭回归
@xMat:样本数据
@yMat:样本对应的原始值
@lam:惩罚项系数lamda,默认值为0.2
'''
#计算矩阵内积
xTx=xMat.T*xMat
#添加惩罚项,使矩阵xTx变换后可逆
denom=xTx+eye(shape(xMat)[1])*lam
#判断行列式... | [
"deanyuton@gmail.com"
] | deanyuton@gmail.com |
41e006767298bb8cdc28e9c8887b69e6fe238271 | d11f077623502b9ff682ddb38effba388b248f0a | /sdk/search/azure-search-documents/azure/search/documents/_search_client.py | 79fce398aad8b53f89e2056f08cf3ebae8346a29 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | digimaun/azure-sdk-for-python | a840d2e8a125e0e9ed966ab78e28528186dafa3e | 9f91027314715209d7a483d8a439651c38b71272 | refs/heads/main | 2023-08-25T12:35:35.687748 | 2021-10-19T00:10:05 | 2021-10-19T00:10:05 | 418,723,546 | 0 | 0 | MIT | 2021-10-19T01:12:10 | 2021-10-19T01:12:09 | null | UTF-8 | Python | false | false | 31,804 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typin... | [
"noreply@github.com"
] | digimaun.noreply@github.com |
05dc4db4abdbe277bd748d7b419322f0001a5306 | 6bd9d7679011042f46104d97080786423ae58879 | /1204/a/a.py | d8d5e6116795f57a81dca052975687f30ae9b0d3 | [
"CC-BY-4.0"
] | permissive | lucifer1004/codeforces | 20b77bdd707a1e04bc5b1230f5feb4452d5f4c78 | d1fe331d98d6d379723939db287a499dff24c519 | refs/heads/master | 2023-04-28T16:00:37.673566 | 2023-04-17T03:40:27 | 2023-04-17T03:40:27 | 212,258,015 | 3 | 1 | null | 2020-10-27T06:54:02 | 2019-10-02T04:53:36 | C++ | UTF-8 | Python | false | false | 81 | py | t = int(input(), 2) - 1
ans = 0
while t > 0:
ans += 1
t //= 4
print(ans)
| [
"qqbbnease1004@126.com"
] | qqbbnease1004@126.com |
13a9675c88f2c319982ff7d6f346121a7255f7ed | 80b7f2a10506f70477d8720e229d7530da2eff5d | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/groupbucketdescstatlearnedinformation_c5c1fdcf0cd8750ead47c9919177d367.py | 6b312374bb89b93e31c3fff29a61dbf52b7037cc | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 8,164 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
b360b1b3eb8df1b4bdb56e27bd41976012314685 | 4dde2454c42df46eb519743ddb7a7db05697b4a6 | /alexa/remindMeOfXWhenZone/remindMeOfXWhenZoneIntent.py | 3f8dddf1c2722ae1034c0d7c95721f162f99f5ef | [
"MIT"
] | permissive | pippyn/appdaemon-scripts | 7e4231e9c28c8f906f97e8bb7d353d4297453426 | 615cdfeaaf039ffbe1be041eb07c35a2494f008d | refs/heads/master | 2020-04-20T22:14:07.608237 | 2019-02-26T10:16:21 | 2019-02-26T10:16:21 | 169,133,019 | 0 | 0 | MIT | 2019-02-19T14:49:54 | 2019-02-04T19:11:20 | Python | UTF-8 | Python | false | false | 2,881 | py | import appdaemon.plugins.hass.hassapi as hass
import datetime
import globals
__ZONE_ACTION_ENTER__ = "kommen"
__ZONE_ACTION_LEAVE__ = "verlassen"
class RemindMeOfXWhenZoneIntent(hass.Hass):
def initialize(self):
self.timer_handle_list = []
self.listen_state_handle_list = []
self.device_t... | [
"k.eifinger@googlemail.com"
] | k.eifinger@googlemail.com |
8c3da2bbe7f5f87820bcb9005c4e3ef16da39be2 | 13f78c34e80a52442d72e0aa609666163233e7e0 | /Other/Kattis/Waterloo 2004-06-12/workreduction.py | c80361090eb8f0fba8bb708dfdf2b4d4c124c2a4 | [] | no_license | Giantpizzahead/comp-programming | 0d16babe49064aee525d78a70641ca154927af20 | 232a19fdd06ecef7be845c92db38772240a33e41 | refs/heads/master | 2023-08-17T20:23:28.693280 | 2023-08-11T22:18:26 | 2023-08-11T22:18:26 | 252,904,746 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | # https://open.kattis.com/problems/reduction
import re
C = int(input())
for c in range(C):
print('Case', c+1)
N, M, L = map(int, input().split())
A = []
for i in range(L):
name, a, b = re.compile('(.*):(.*),(.*)').match(input()).groups()
a = int(a)
b = int(b)
# print(na... | [
"43867185+Giantpizzahead@users.noreply.github.com"
] | 43867185+Giantpizzahead@users.noreply.github.com |
1c94a0c295b12369a8682ebb5c180c3eae6f1936 | 7a09af404f29389504742a3d5f1727bfbe562750 | /TrekBot2_WS/build/razor_imu_9dof/catkin_generated/generate_cached_setup.py | 1190411b71f9bdcde84c39269e3159441d673eab | [
"MIT"
] | permissive | Rafcin/TrekBot | 4baa2ed93b90920b36adba0b72384ac320d2de01 | d3dc63e6c16a040b16170f143556ef358018b7da | refs/heads/master | 2020-03-30T02:15:35.361254 | 2018-12-14T03:30:25 | 2018-12-14T03:30:25 | 150,622,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.... | [
"Rafcin.s@gmail.com"
] | Rafcin.s@gmail.com |
d8dc6570935d4aa953a40d069eed60b9c1bd97c3 | b174893c1b90296e0e4612c4b28901970f643bbb | /manage.py | 54c3cc035f32d428c9a6383877a5189ae555dae8 | [
"MIT"
] | permissive | laetitia123/akikatest | 63628f4ed9ad69c8660b37ac4bb86f9ff1a17360 | 812f26155b6e3d003ac7e48c08c16df406e11086 | refs/heads/master | 2023-01-28T17:04:03.650586 | 2020-12-10T08:37:57 | 2020-12-10T08:37:57 | 312,552,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "akikaproject.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"uwizelaetitia@gmail.com"
] | uwizelaetitia@gmail.com |
e390b936805ed8e4841c5543cf4ce0d3c7ddee54 | ef0e9cf79347ecde056d947fe157da95c39b1bac | /mundo_3/exercicios/ex115/115.py | 83de4f5643ad7dca477b9d3aa4baee5f3c681b33 | [] | no_license | Iuri-Almeida/CeV-Python | 0c78a1b365bdbd3345ea894ddd6c01b4c81761e7 | cfc3ff1853fdc998a9ea2301d86165263d0f216d | refs/heads/master | 2023-04-20T17:07:39.454125 | 2021-05-11T21:04:29 | 2021-05-11T21:04:29 | 329,114,163 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from lib import menu, opc_0, opc_1, opc_2, opc_3
print(f'{" Exercício 115 ":=^31}')
# Programa Principal
while True:
menu()
opc = opc_0()
if opc == '1':
opc_1()
elif opc == '2':
opc_2()
elif opc == '3':
opc_3()
break
| [
"iurilopesalmeida.gmail.com"
] | iurilopesalmeida.gmail.com |
64166d1e37d47f49e54088c204e381b2bbb42098 | 845e3c428e18232777f17b701212dcbb1b72acc1 | /lib/fast_rcnn/cg_train.py | 8efe4947ae0b657239f2bfe57734ef2cf645a678 | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | chuanxinlan/ohem-1 | dd10b2f5ff15e81ab9e42e936bb44d98e01c6795 | b7552ceb8ed1e9768e0d522258caa64b79834b54 | refs/heads/master | 2021-09-16T18:31:25.651432 | 2018-06-23T10:09:24 | 2018-06-23T10:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,760 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Train a Fast R-CNN network."""
import google.protobuf.text_format
i... | [
"cg@example.com"
] | cg@example.com |
aeeff36ea48d96733e9ec151a94c9382d4596cc6 | f72fe33d1a181f89d2464cc07744dbd275a7d071 | /CNNectome/networks/custom_ops.py | 989abdd29eae6ad7b3e40f2b0ca1ec7239ace8f0 | [
"BSD-2-Clause"
] | permissive | saalfeldlab/CNNectome | 6c8d44d8cc2e161a91b10abb7b4a425d7fc64d1b | c043e3111ff5ec6707a68edffae54eb902a1652d | refs/heads/master | 2023-04-03T15:11:36.586030 | 2022-06-15T14:12:17 | 2022-06-15T14:12:17 | 124,144,317 | 8 | 10 | BSD-2-Clause | 2023-03-24T22:16:04 | 2018-03-06T22:04:16 | Python | UTF-8 | Python | false | false | 1,672 | py | import numpy as np
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import graph_util
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.framework import tensor_util
from tensorflow.python.ops import array_ops
from tens... | [
"heinrichl@janelia.hhmi.org"
] | heinrichl@janelia.hhmi.org |
73551d725e67569eda29757bfcb488d0f9880e01 | a74418a8adacfdf67ecf172310d3c13905466f08 | /pg/tests/test_pg.py | 087ad38046799ae1b1b18a481cd1e28922484e7a | [
"BSD-3-Clause"
] | permissive | eduardolujan/sqlalchemist | ac98cf67c78d367df2f3627f068500b4bc908431 | 7d0d04051ad11fe046fbb6295d9ecec72912d3a4 | refs/heads/master | 2022-07-19T13:53:45.326090 | 2020-05-22T11:12:24 | 2020-05-22T11:12:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import pytest
import psycopg2
from ..config import get_config
from ..models import Session
@pytest.fixture
def config():
return get_config()
def test_configuration(config):
assert "database" in config
assert "conn_str" in config.database
def test_connection(config):
config = get_config()
psy... | [
"pmav99@gmail.com"
] | pmav99@gmail.com |
96ef7908b5993d5104612be601d4c170f6ea3135 | a234ecbf8a71075ba90c84f19443d2235c0f4234 | /test_numpy/test_sklearn/lightgbm/lightgbm_cv.py | 4b9befec8d5a724d9b9d2a1dffd05f1b79465ee7 | [] | no_license | hkxIron/hkx_tf_practice | b9b58f7c52b07d4f10709804efc964cf17e5e3ff | 76d0c12750d66b17e71a7102263e1d1fc637611a | refs/heads/master | 2023-08-04T16:51:30.852650 | 2023-08-04T13:05:35 | 2023-08-04T13:05:35 | 118,223,247 | 10 | 13 | null | 2022-12-07T23:32:58 | 2018-01-20T08:14:06 | Jupyter Notebook | UTF-8 | Python | false | false | 5,940 | py | import time
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import StratifiedKFold, RepeatedStratifiedKFold, KFold, cross_val_predict, cross_validate
from sklearn.metrics import roc_auc_score
from lightgbm import LGBMClassifier
import... | [
"hukexin0000@126.com"
] | hukexin0000@126.com |
fa4a6b6fafa904dd6b8f73b059e98f06cc017a3d | cc2029f40a12e82712072275fc76a07ac59b5940 | /levelup/practice/python/introduction/05_python_division.py | 2a18c52f2b3f31ea8c46490d14b69dcfef6dc1e2 | [
"MIT"
] | permissive | heitorchang/learn-code | d3fb8e45d539d302372126fe28e85032590b5707 | 5e6e56f7257de1910830619c01d470e892d7f9d8 | refs/heads/master | 2023-08-09T13:46:18.623772 | 2023-07-21T16:57:11 | 2023-07-21T16:57:11 | 147,522,837 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | def solution(a, b):
print(a // b)
print(a / b)
if __name__ == "__main__":
a = int(input())
b = int(input())
solution(a, b)
| [
"heitorchang@gmail.com"
] | heitorchang@gmail.com |
56bfe735a21870f3ff4b0bfa624cdd7cda45126a | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/grid_rnn/python/ops/grid_rnn_cell.pyi | 67a5259cffa6ae62b64e32131f4ff72733496071 | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | pyi | # Stubs for tensorflow.contrib.grid_rnn.python.ops.grid_rnn_cell (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from collections import namedtuple as namedtuple
from tensorflow.contrib import layers as layers, rnn as rnn
from tensorflow.python.ops import array_ops as array_ops... | [
"matangover@gmail.com"
] | matangover@gmail.com |
8ce9a4c443487d77f258782e07d82452b044ae5a | 3fc029440f5d6c2ae2e9f2402ce8d92906d4a789 | /betomax_shop/celery.py | ea647618bddb84d4ab230bdc41232a6285a011e6 | [] | no_license | NickVazovsky/betomax-app | 8d832986202165483d222de9fe53f88bc4476c8e | 4a99a990f5e162948592e18bb595aa6b05375c80 | refs/heads/master | 2020-05-22T08:22:25.083415 | 2019-05-12T16:02:25 | 2019-05-12T16:02:25 | 186,273,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import os
from celery import Celery
from django.conf import settings
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'betomax_shop.settings')
app = Celery('betomax_shop')
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
| [
"nvazovsky@gmail.com"
] | nvazovsky@gmail.com |
c42df29bc0afa54406c074c4736e6481149e8f18 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/19496b5b7395085ac068dfd071ec6773b471d1fa-<main>-fix.py | ba56216710ec092e27b73c3fe73ccd79f93bfc99 | [] | 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 | 5,521 | py | def main():
module = AnsibleModule(argument_spec=dict(name=dict(required=True, type='str', aliases=['unit', 'service']), state=dict(choices=['started', 'stopped', 'restarted', 'reloaded'], type='str'), enabled=dict(type='bool'), masked=dict(type='bool'), daemon_reload=dict(type='bool', default=False, aliases=['daem... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
35b7ce4b755869a2e037875ab1b19018617ee3aa | fdf1e1f4efc51bc024311d44a2fa4524f9b88bce | /girleffect/solutions/migrations/0035_auto_20171121_1708.py | 0b2c8358c706a6809388d3d9448629bd84fda80b | [] | no_license | girleffect/girleffect.org | 8327ffd6bbd1103033c92fbd4cbe5461aa1c7f03 | 55731b1c024f207211a161fd6d3ca796beea7a61 | refs/heads/master | 2023-04-07T21:40:43.910892 | 2022-06-14T11:50:21 | 2022-06-14T11:50:21 | 112,452,828 | 1 | 2 | null | 2023-04-01T12:05:55 | 2017-11-29T09:13:18 | Python | UTF-8 | Python | false | false | 7,882 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-21 17:08
from __future__ import unicode_literals
from django.db import migrations
import girleffect.utils.models
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields
import wagtail.wagtaildocs.blocks
import wagtail.wagtailembeds.blocks
impo... | [
"francesca.sargent@torchbox.com"
] | francesca.sargent@torchbox.com |
e882ef3aee4b0683d0a470824ba429a2bde7b12e | 39206c42c70818066839a6a6edbd63057a9636cf | /tfx/examples/chicago_taxi_pipeline/taxi_pipeline_simple_test.py | 59c22ea10e876ac11d2589725371affb12020288 | [
"Apache-2.0"
] | permissive | azrin-dev/tfx | 8e55d6ddad5490f39eacbbef85eb56ea71c78954 | 88d999b1ab767940aef96805e29bc7784652e8f0 | refs/heads/master | 2020-08-30T09:30:52.528197 | 2019-10-29T15:46:51 | 2019-10-29T15:47:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | # Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
5a6fda791aaf455984c75d0b4a48e62137ce6558 | d8fe3b5243bec2b61fd7907c4ff799b24bb617e5 | /Bloomberg_codecon/2015_Finals/conference_room_scheduler.py | 4bb1db33982bbc78e65bad6fc5afe88eb073136e | [
"Unlicense"
] | permissive | SelvorWhim/competitive | b89ed252512d88d9346d168dc6b48e0a42a6142d | 1c73a5c7b2d0dc1b6c4f3f06ace69cdf5c6a34c0 | refs/heads/master | 2023-04-13T01:02:52.083519 | 2023-04-11T10:14:38 | 2023-04-11T10:14:38 | 96,573,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,358 | py | ### INSTRUCTIONS ###
'''
Bloomberg needs a new system to schedule conference rooms! To keep things simple, the system operates in 15 minutes blocks, and only during an 8 hour workday, so that there are 32 available time slots per day for each room.
Users will submit one of two different commands: Create Booking, and Q... | [
"Carmeverre@gmail.com"
] | Carmeverre@gmail.com |
0b0a70e9f2d420767ef23ff86c91c8e79597d405 | 3ec9d3aa7e59475683dba30a87ca68242a7ec181 | /cn/study/days100/days09/10扑克游戏.py | 04ac207e67cdf30f300135ee8f51d0247c5e8d5b | [
"Apache-2.0"
] | permissive | Jasonandy/Python-X | 58bf36499572cdfb7d7bf80c6a3cd0c818f62c1e | 2f02b9a17bd5495dd1f8746b191f11ec2d7bccbe | refs/heads/master | 2021-06-16T17:07:29.277404 | 2021-03-07T14:17:05 | 2021-03-07T14:17:05 | 175,353,402 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | """
扑克游戏
"""
import random
class Card(object):
"""一张牌"""
def __init__(self, suite, face):
self._suite = suite
self._face = face
@property
def face(self):
return self._face
@property
def suite(self):
return self._suite
# 类似于重写str方法?
def __str__(self)... | [
"jasonandy@hotmail.com"
] | jasonandy@hotmail.com |
2ddfd5c25378e7cf46008dcc0ac1fd74913231a8 | 3f9f7fe32c655e612f351302ad1945e92e514a31 | /ut/ml/diag/multiple_two_component_manifold_learning.py | 2f4cbcb18311d9b8895f4644319128008c5f0fc5 | [
"MIT"
] | permissive | thorwhalen/ut | 12ea7e0fd9bc452d71b0cc3d8ecdb527335a3c17 | 72dbdf41b0250708ad525030128cc7c3948b3f41 | refs/heads/master | 2023-02-17T06:44:11.053826 | 2023-02-07T13:22:07 | 2023-02-07T13:22:07 | 32,152,452 | 6 | 4 | MIT | 2023-02-16T00:34:33 | 2015-03-13T11:32:31 | Python | UTF-8 | Python | false | false | 9,197 | py | __author__ = 'thor'
"""
An illustration of various embeddings, based on Pedregosa, Grisel, Blondel, and Varoguaux's code
for the digits dataset. See http://scikit-learn.org/stable/auto_examples/manifold/plot_lle_digits.html
The RandomTreesEmbedding, from the :mod:`sklearn.ensemble` module, is not
technically a manif... | [
"thorwhalen1@gmail.com"
] | thorwhalen1@gmail.com |
3b3c4b37598cbee3b7cd1bdeb617baa477c1b5b0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_285/ch63_2019_09_04_16_30_36_096314.py | de45a44ec20c2bdaed00b6cd7662603836b4dfb8 | [] | 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 | 200 | py | def pos_arroba(email):
for i in len(email):
for e in range(len(email)):
if e == "@":
return i
| [
"you@example.com"
] | you@example.com |
ddba12613afd79a75b8623640c9173ad91938b85 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /azure-mgmt-resource/azure/mgmt/resource/policy/operations/policy_definitions_operations.py | d3be1bc6002c5d4c4415488a8d18e752af0343d8 | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 12,400 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
a905870f281dc4a19eaf29a250bc1be566801d46 | bdccb54daf0d0b0a19fabfe9ea9b90fcfc1bdfbf | /Language Proficiency/Python/Math/Polar Coordinates/polar_coordinates.py | b946928570014778c1eaafad4530b5403724398a | [
"MIT"
] | permissive | xuedong/hacker-rank | aba1ad8587bc88efda1e90d7ecfef8dbd74ccd68 | 1ee76899d555850a257a7d3000d8c2be78339dc9 | refs/heads/master | 2022-08-08T07:43:26.633759 | 2022-07-16T11:02:27 | 2022-07-16T11:02:27 | 120,025,883 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | #!/usr/bin/env python3
import cmath
if __name__ == "__main__":
print(*cmath.polar(complex(input())), sep="\n")
| [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
34d0876905040aa34d7ff199773c19627d21f202 | 61b475c33745dbe11d88ea288cbdee279f89c610 | /src/izi/apps/analytics/models.py | 881f973e80cc48cc81f2c745f541d7868235c9ee | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | izi-ecommerce/izi-core | a092ea285d0dbd83d17427de3157a9f1e77d6c51 | 21176be2d41f0cf54ca954f294209c585f643dba | refs/heads/master | 2020-03-30T08:37:39.045514 | 2018-10-08T02:58:46 | 2018-10-08T02:58:46 | 151,029,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | from izi.apps.analytics.abstract_models import (
AbstractProductRecord, AbstractUserProductView,
AbstractUserRecord, AbstractUserSearch)
from izi.core.loading import is_model_registered
__all__ = []
if not is_model_registered('analytics', 'ProductRecord'):
class ProductRecord(AbstractProductRecord):
... | [
"diepdt@izi.asia"
] | diepdt@izi.asia |
8b0779994b8a00dc87933b5788fc4e363116d694 | 67583749bab9e87fe2b890dd0aee2c09e8f4bbfb | /yandex-algorithm-training/dz5-b-e.py | 857af6911b1a88bdcb9e2b9def7ab77864cb8e69 | [] | no_license | allburov/codeforces | 41e6d0f5155a0ee635d864053aad996b5880aabe | e7455f9fc85e66988b2a195234efdec155c5f8a6 | refs/heads/master | 2023-04-13T07:28:00.920469 | 2023-04-06T11:53:01 | 2023-04-06T11:53:01 | 160,622,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,360 | py | def read_input():
with open('threesum.in') as input_:
s = int(input_.readline())
_, *num1 = list(map(int, input_.readline().split()))
_, *num2 = list(map(int, input_.readline().split()))
_, *num3 = list(map(int, input_.readline().split()))
return s, num1, num2, num3
def findMid... | [
"allburov@gmail.com"
] | allburov@gmail.com |
d45c49565c362994196ebddf86e40e55475ec38f | 21e1d00c48c1732cc44af077572299831b93ffc2 | /DATA_SCIENCE/NumPy/NUM-PY_02/Array/Ravel.py | 3bfb3c88cdf34985886d177ec21e60040c816a27 | [] | no_license | GolamRabbani20/PYTHON-A2Z | 7be72041407e4417359b3a610ced0919f3939993 | 7c89223f253aa559fa15caacb89c68e0b78ff915 | refs/heads/master | 2023-05-09T00:43:03.012963 | 2021-05-26T07:56:56 | 2021-05-26T07:56:56 | 317,953,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import numpy as np
x = np.array([[1,2],[3,4],[5,6]])
x.ravel()
print(x)
print(x.min()) | [
"mdgolamrabbani96@gmail.com"
] | mdgolamrabbani96@gmail.com |
1386d20539b4efddf945c6345a59b476a6126afa | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/read_pyexcal_20201111164148.py | ea7974f00258d36f2ceeacd3dc9d4247825542bd | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | >>> from openpyxl import load_workbook
>>> wb = load_workbook(filename = 'empty_book.xlsx')
>>> sheet_ranges = wb['range names']
>>> print(sheet_ranges['D18'].value) | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
334a1f105f8d090005013ca75b048975e5761708 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-eip/huaweicloudsdkeip/v2/model/list_resource_resp.py | a4d35a9e336cac44e1b8ff9b5883573a8a79921f | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 6,036 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListResourceResp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
9f804e8a2a3a3536690acaf7823502557f6006c1 | 28eafbc96006c307d4c7994908cb8caf0e37e69c | /Python_recap/Unpacking_keyword_arguments.py | 98b9cfa033b35331a7e8760e76b077d917b714eb | [] | no_license | mikaelbeat/The_Complete_Python_and_PostgreSQL_Developer_Course | aa2f3369c78a92a74cb71ec701e7b1b83e0c41a8 | b731bd2c1b3202c1fadf61e6b5516d84fc354fbb | refs/heads/master | 2022-12-12T05:10:47.327480 | 2020-09-14T07:28:19 | 2020-09-14T07:28:19 | 265,159,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py |
def named(**kwargs):
print(kwargs)
details = {"name": "Bob", "age": 25}
named(**details)
| [
"ryynanenphm@gmail.com"
] | ryynanenphm@gmail.com |
1abee88f62ba11f1b8ce3c0bc2b45fa598623743 | 228ebc9fb20f25dd3ed2a6959aac41fd31314e64 | /samples/model-builder/predict_text_entity_extraction_sample_test.py | 3b123ff148acf504c79c9b0b9e72bba761b9628e | [
"Apache-2.0"
] | permissive | orionnye/python-aiplatform | 746e3df0c75025582af38223829faeb2656dc653 | e3ea683bf754832340853a15bdb0a0662500a70f | refs/heads/main | 2023-08-03T06:14:50.689185 | 2021-09-24T03:24:14 | 2021-09-24T03:24:14 | 410,091,957 | 1 | 0 | Apache-2.0 | 2021-09-24T20:21:01 | 2021-09-24T20:21:00 | null | UTF-8 | Python | false | false | 1,184 | py | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | orionnye.noreply@github.com |
4ee899fc7c2d5bbf7189cb564d06e4bb4594a523 | 41898ee4cc597a19540d64c333687610d5792168 | /Problems/1200. Minimum Absolute Difference.py | 889e116531cce0b35ad923e6d519e77d91b0f6d4 | [] | no_license | aidardarmesh/leetcode | 82c4e09a85dc5b6cf05bceb089b57b3a81e2406e | 4509f4b2b83e172e6ccc21ff89fc1204e0c6b3f3 | refs/heads/master | 2021-07-06T15:56:04.244369 | 2020-11-15T20:47:16 | 2020-11-15T20:47:16 | 205,086,346 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from typing import *
class Solution:
def minimumAbsDifference(self, arr: List[int]) -> List[List[int]]:
min_delta = 9999999
result = []
n = len(arr)
arr = sorted(arr)
for i in range(0, n-1):
delta = arr[i+1] - arr[i]
if delta < min_delta:
... | [
"darmesh.aidar@gmail.com"
] | darmesh.aidar@gmail.com |
49367f0e5d32687bdb5d111a90ac1d482dacc060 | 6121da376efe804fc8d9a5b33731c7c35f6d5fc0 | /python_basics/ex35.py | f0442bfb4afd630f3417b06b74b0aadd4bcdfe64 | [] | no_license | Gitus-Maximus/Skills | 4e67b5cdc19d695aef0ab1f768d9ab5c2a9591ac | 1ba6bd63de18afe2ca698430aaa4b5bd5434351b | refs/heads/main | 2023-04-30T18:35:31.654718 | 2021-05-22T11:56:06 | 2021-05-22T11:56:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | week = ["Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota", "Niedziela"]
print("$".join (week[1:3])) #metoda .join sprawia, ze mozemy wyświetlić dowolony tekst pomiędzy argumentami z listy.
print("Pozbywam się:", week.pop(4))
print(week) | [
"kakulinski@wp.pl"
] | kakulinski@wp.pl |
a30bc5873f3cbe1ae76f71b47f868d176dd3823c | 998a965258a75e4a9d48805d7b2873afafae2f7d | /dpoll/polls/migrations/0012_auto_20190125_0654.py | 1458061d046401d3c9263a40b9998a90ad538f70 | [
"MIT"
] | permissive | emre/dpoll.xyz | af64cb7d933c579d9cb8720e456fa3d3b7ae8d5e | 15927cb82bc525f99068a0ab92c14087e88f7950 | refs/heads/master | 2022-12-12T18:35:56.351060 | 2022-04-24T22:11:36 | 2022-04-24T22:11:36 | 149,586,879 | 23 | 9 | MIT | 2021-06-10T20:48:55 | 2018-09-20T09:42:45 | Python | UTF-8 | Python | false | false | 449 | py | # Generated by Django 2.1.1 on 2019-01-25 06:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('polls', '0011_auto_20190125_0649'),
]
operations = [
migrations.AlterField(
model_name='promotiontransaction',
name=... | [
"mail@emreyilmaz.me"
] | mail@emreyilmaz.me |
fcf15e9c3d995c4b3e8db9f4b5975fb0ed8484a7 | 240dc81851dd0243c0b14511f6d8b563ab91c890 | /libs/reportlab/graphics/charts/barcharts.py | a31a66ceebf7b9c44c0fe6cb90ea077b3e6297ee | [] | no_license | prcek/TSReg | 0aac7ffc7992b731d12dc3959d661bc8c3639744 | ea6eac514d8e783ddaeeed6181b9ab45d5673c05 | refs/heads/master | 2020-05-30T03:19:46.737202 | 2017-06-08T08:14:00 | 2017-06-08T08:14:00 | 2,208,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,608 | py | #Copyright ReportLab Europe Ltd. 2000-2004
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/barcharts.py
__version__=''' $Id$ '''
__doc__="""This module defines a variety of Bar Chart components.
The basic flavors are stacked ... | [
"tomas.hluchan@gmail.com"
] | tomas.hluchan@gmail.com |
502af0bed2bbfa2a50d2e1de9e7666692457d803 | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/EGL/EXT/NOK/swap_region.py | b2fd2f88da1733562175c045d1e5ec660dfd4f1c | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | from OpenGLCffi.EGL import params
@params(api='egl', prms=['dpy', 'surface', 'numRects', 'rects'])
def eglSwapBuffersRegionNOK(dpy, surface, numRects, rects):
pass
| [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
db00213220f441f8ccbfbb9ed9c1465e73391f49 | 3233629117c8672a6ec001c673191a5bfbab609e | /hikyuu/admin/dialog/__init__.py | 47834a88dca817cb29cd6fa6e07ac95d370e3f1c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | haoyong1232002/hikyuu | efc5ae72b42caa47650c553922af3b0dae20cf78 | 9f93dd9374e2b9f3098176ea9c8f18f2cda24185 | refs/heads/master | 2023-04-23T02:58:19.034029 | 2021-05-12T17:52:08 | 2021-05-12T17:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | # -*- coding: utf-8 -*-
from .HkuEditSessionDialog import HkuEditSessionDialog | [
"fasiondog@163.com"
] | fasiondog@163.com |
615957840ee474ac9841f70c54cafc727ca1a5c4 | 0e4df81fb59129d23ccc820b11117ba78a372099 | /inheritance.py | e263c9de3b6611c8d780899f66d55edec7963e15 | [] | no_license | crishonsou/hackerrank_30_days_of_code | ffdb51163a4e14d2b8438a8e01183f31b4d9a138 | aa267d82915dd7d3cfb6f5cbfb52b86497044b84 | refs/heads/main | 2022-12-22T18:06:51.595103 | 2020-10-06T15:07:15 | 2020-10-06T15:07:15 | 301,764,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | ## Inheritance
class Person:
def __init__(self, firstName, lastName, idNumber):
self.firstName = firstName
self.lastName = lastName
self.idNumber = idNumber
def printPerson(self):
print('Name:', self.lastName + ',', self.firstName)
print('ID:', self.idNumber)
... | [
"noreply@github.com"
] | crishonsou.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.