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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
123d610b04b8cb8328ed1b6faa51e01b3cf9a9f5 | f62fd455e593a7ad203a5c268e23129473d968b6 | /python-cloudkittyclient-1.0.0/cloudkittyclient/common/base.py | 6212817e7747c35c8debdac13765dfa3e5a4de3b | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 5,032 | py | # Copyright 2012 OpenStack Foundation
# Copyright 2015 Objectif Libre
# 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/license... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
c07e6dc436df4a4558ff006c558c77a4e4786279 | 3cd9fc36f4abba93bffb11dc43f145db6c6f5408 | /azure-iot-device/azure/iot/device/common/models/x509.py | 8f5fdb82b63978aca852862ac2b91a43558562a9 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-iot-sdk-python | 457eb035e772268559ee8fa3310c210c84e52aa6 | 5d343d5904aaa98c6a88101e0dc40263acff4db2 | refs/heads/main | 2023-09-01T05:19:57.710222 | 2023-08-28T16:52:26 | 2023-08-28T16:52:26 | 70,936,068 | 441 | 438 | MIT | 2023-08-28T16:52:28 | 2016-10-14T18:17:15 | Python | UTF-8 | Python | false | false | 1,463 | py | # --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""This m... | [
"noreply@github.com"
] | Azure.noreply@github.com |
3f9790b1a071e752f9653f18146064f75ac9a59f | 86d31b4e897555d67a7aed7302717c56c94bd538 | /0x08-python-more_classes/9-rectangle.py | 499f3b50d9e00af6c7990fd7618c17de0fc66ec3 | [] | no_license | jalondono/holbertonschool-higher_level_programming | bcefda6ea75d26cb44726fc74c396b1a1c22664d | a347138e3a214aa497c8a12dca702374dcd65f0d | refs/heads/master | 2020-07-22T22:53:32.929374 | 2020-02-13T20:10:08 | 2020-02-13T20:10:08 | 207,357,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | #!/usr/bin/python3
class Rectangle:
"""Create a Rectangle class"""
number_of_instances = 0
print_symbol = '#'
def __init__(self, width=0, height=0):
self.width = width
self.height = height
Rectangle.number_of_instances += 1
@property
def width(self):
return self... | [
"juanlondono151776@hotmail.com"
] | juanlondono151776@hotmail.com |
ac8be09ebd049d3bd03c35dfc7fc5a611fa2221a | 54bd004dd18f23b46fd75288823977a93d6c7c9d | /Python_basics/if_else_break.py | 21716c863210d80f7d34277f758adc8226939154 | [] | no_license | Gagangithub1988/Python | 13f914a200f6f4750c1b7da1467ca7e3f48814d0 | 8c9ba1902ac45841fd3145d49b08547420f15f2d | refs/heads/master | 2022-11-03T22:12:51.799829 | 2020-06-20T06:46:45 | 2020-06-20T06:46:45 | 273,642,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | numbers = [386, 462, 47, 418, 907, 344, 236, 375, 823, 566, 597, 978, 328, 615, 953, 345,399, 162, 758, 219, 918, 237, 412, 566, 826, 248, 866, 950, 626, 949, 687, 217, 815, 67, 104, 58, 512, 24, 892, 894, 767, 553, 81, 379, 843, 831, 445, 742, 717, 958,743, 527]
for i in numbers:
if i==237:
print(i)
... | [
"noreply@github.com"
] | Gagangithub1988.noreply@github.com |
ecd12e83553b2c3605eb45cc536613b3ad79f4e8 | a450d455fc1da6f3a89eebb562cc2fb28784b129 | /games/views.py | 7edd5b3cae8a794ad0217bb7a542db339aa24716 | [
"MIT"
] | permissive | hawkthorne/bearweb | 6c62e0143ab6a19bee6cf340dfec81664f201dcb | 1533acd9c7610d9ea01e8413853cca70843b9d63 | refs/heads/master | 2021-05-28T05:54:55.533462 | 2014-03-16T23:12:01 | 2014-03-16T23:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,156 | py | from django.http import Http404
from django.http import HttpResponse
from django.http import HttpResponseBadRequest
from django.core.urlresolvers import reverse
from django.utils.cache import patch_response_headers
from django.template.defaultfilters import slugify
from django.shortcuts import get_object_or_404
from dj... | [
"kyle@kyleconroy.com"
] | kyle@kyleconroy.com |
335250ce21813f53a167005fc2ebda740610ebd1 | d1fb76c0fdb08dc998a01e8eeca8bd8806db82a0 | /onionstudio/manual.py | b0e6ba28292f0d1c24853ba9d0a8445831e24cc1 | [
"MIT"
] | permissive | jarret/onionstudio | 822613dec0f72ef5db717ffdc8761dccb912de43 | 5ebf0a75cf1e7960822c96a987668be5ed82aa41 | refs/heads/master | 2020-12-03T08:45:44.808961 | 2020-07-18T16:49:57 | 2020-07-18T16:49:57 | 231,258,649 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # Copyright (c) 2020 Jarret Dyrbye
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php
import sys
from onionstudio.pixel import Pixel
class ManualToPixels:
def __init__(self, pixels_string):
self.pixels_string = pixels_stri... | [
"jarret.dyrbye@gmail.com"
] | jarret.dyrbye@gmail.com |
4855f4a63ce71ad5e80edbc3a6a41419c24b5520 | 13ea58f72fa96e2455609fb452b5f3b98e94f846 | /examples/diffusion/poisson_field_dependent_material.py | 4f2225b3311fd8d5dd012e8c40b8f44a9b27ba83 | [
"BSD-3-Clause"
] | permissive | vondrejc/sfepy | 4284ee47979b89d9e504b72b91689a9ce0c3a5ec | 8e427af699c4b2858eb096510057abb3ae7e28e8 | refs/heads/master | 2021-01-24T00:09:18.722674 | 2014-08-20T12:37:03 | 2014-08-20T14:25:56 | 12,810,199 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,370 | py | r"""
Laplace equation with a field-dependent material parameter.
Find :math:`T(t)` for :math:`t \in [0, t_{\rm final}]` such that:
.. math::
\int_{\Omega} c(T) \nabla s \cdot \nabla T
= 0
\;, \quad \forall s \;.
where :math:`c(T)` is the :math:`T` dependent diffusion coefficient.
Each iteration calculates... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
5f746eab98d95e889f73892fc9d177b490c27480 | 5a017fc861db92e3a2919f260d54f1301afbb3e5 | /MIDI Remote Scripts/Akai_Force_MPC/scene_list.py | e178c94e8d3079a95f83763cd4dc3dedfafe3dce | [] | no_license | kera67/livepy_diff_ten | 8d8d0f3b76048f1fe5d4c0fbc02549dc922c7d5b | 12a0af9e9c57d0721af5036ce23af549df2c95f0 | refs/heads/master | 2023-07-14T18:26:33.591915 | 2020-11-19T07:50:28 | 2020-11-19T07:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from __future__ import absolute_import, print_function, unicode_literals
from itertools import izip_longest
from ableton.v2.base import listens
from ableton.v2.control_surface import Component
from .scene import MPCSceneComponent
class SceneListComponent(Component):
def __init__(self, session_ring = None, num_sce... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
1e40ba7fc6198751838b104388ecf529c831ea09 | 52ec517d8a990120b0e807e0c8f76056672c4ee1 | /python/hashing/internationalPhoneBookDynamicArray.py | 465c1d7268ceca51aa3b7302a0ee1413cb5baa86 | [] | no_license | macoto35/Data_Structures_Fundamentals | aaae053d270b6cd5472d755354b4b15d336c3c06 | f4cb82380f3b807889365514439b1a83afa07035 | refs/heads/master | 2020-03-20T20:41:15.437091 | 2019-08-20T07:10:27 | 2019-08-20T07:10:27 | 137,700,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,850 | py | import re
class InternationalPhoneBookDynamicArray:
def __init__(self):
self.arr = [None] * 1
self.size = 0
self.maxSize = 1
class Pair:
def __init__(self, number, name):
self.number = number
self.name = name
def _binarySearch(self, number, st, ed):... | [
"sohee.um@mercer.com"
] | sohee.um@mercer.com |
072672d8fa7bf5988279befb5a3ba45eff6aafeb | 6a0a634265957e9dcd26bc80e3304e107fb004d0 | /venvflask/lib/python3.7/site-packages/Crypto/Cipher/AES.pyi | 159c4af2e9ea3f88a1f25e4b80981d6dce07c073 | [] | no_license | ogutiann/PythonEthereumSmartContracts | 8bd81aa14eab567d41b5dad74b67aba92a405ebd | d870e9fd1c7f68b8493db4c2b2af224f966d8e51 | refs/heads/master | 2023-01-04T14:23:12.396898 | 2020-10-29T12:12:46 | 2020-10-29T12:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | pyi | from typing import Union, Tuple, Optional, Dict
from Crypto.Cipher._mode_ecb import EcbMode
from Crypto.Cipher._mode_cbc import CbcMode
from Crypto.Cipher._mode_cfb import CfbMode
from Crypto.Cipher._mode_ofb import OfbMode
from Crypto.Cipher._mode_ctr import CtrMode
from Crypto.Cipher._mode_openpgp import OpenPgpMode... | [
"sijoythomas@pop-os.localdomain"
] | sijoythomas@pop-os.localdomain |
48603d6812cdc33953ca8edc661c65f26addb1f2 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/Products.PluginRegistry-1.3b1-py2.7.egg/Products/PluginRegistry/exportimport.py | 0cf253c067eca3dc9ba6c34b21277a858a5aaa2e | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,876 | py | ##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors
# Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this
# distribution.
# THIS SOFTWARE IS P... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
9f0dd34ffaa2659b3d64db3c510cf958661ce188 | 6086817f6614063ac3c4ce148a3737820cca0d44 | /tests/test_python_library.py | fdcef75a8f7f509ce4f5bb381c2a2b150c4a679b | [
"Apache-2.0"
] | permissive | Tryweirder/synthtool | 0a42a5e5e60bbe6362e4e3c489a2a29b52d9b9eb | 082e1ca0863b13ada8594fe91845380765da5b70 | refs/heads/master | 2023-04-03T03:51:38.260575 | 2021-04-13T00:00:05 | 2021-04-13T00:00:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,828 | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | Tryweirder.noreply@github.com |
271210fe7b439920554148561f2c82e2d4a01235 | 3bde5908bc285abb545be0f8dc7fe698fed908ba | /Dag1/live_koding/variabler.py | 90b1202e01df2749bb8d0c9f2e246068706bd688 | [] | no_license | kodeskolen/inspiria_h21 | cdac18e9ea45845b2f5c0d820f17f7c68e2cb222 | bd7070add6675754962632f58b01bcce8b847fdc | refs/heads/main | 2023-07-13T01:56:01.118767 | 2021-08-20T07:00:51 | 2021-08-20T07:00:51 | 371,284,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 18 07:29:44 2021
@author: Marie
"""
navn = "Marie"
print("Hei", navn)
x = 5
y = 2
resultat = x % y
print(resultat) | [
"roald.marie@gmail.com"
] | roald.marie@gmail.com |
5395949eb11a74f63a417d29d597799633103517 | 91f30c829664ff409177e83776c9f4e2e98d9fc4 | /manage.py | 90058a6e64433bcd765b52dfcbb015079c97e687 | [] | no_license | TotalityHacks/madras | 3ac92dc6caf989efcb02590f6474ab333d1f93fa | 2395a703eed1a87cca3cdd6c0fb9162b69e8df27 | refs/heads/master | 2021-08-17T15:29:41.055074 | 2018-07-18T23:05:29 | 2018-07-18T23:05:29 | 105,232,414 | 4 | 5 | null | 2021-03-31T18:58:56 | 2017-09-29T05:13:41 | Python | UTF-8 | Python | false | false | 249 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "madras.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jreinstra@gmail.com"
] | jreinstra@gmail.com |
14da2992936439bfeab57f9548a5e32508e2378d | ea1ece02e9ff9981d7a28ef1944d2dbf06110e93 | /16_find_compact/combine_several_post.py | 438816000c33195429fa8b486386a0cab0d369e3 | [] | no_license | Spritea/Hotkey | 377bf5f820b076bb21cb21ce5655e10a805b9a82 | 14df02daabc26195f8f3969e27c68bc62791f4c3 | refs/heads/master | 2022-08-27T21:11:14.597257 | 2020-05-20T15:48:07 | 2020-05-20T15:48:07 | 178,776,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,884 | py | import cv2 as cv
import numpy as np
from pathlib import Path
import natsort
from PIL import Image
from tqdm import tqdm
#包括边边也拼起来
def combine_one(imgs_list, img_path, imgwidth, imgheight):
im = Image.fromarray(imgs_list[0])
width, height = im.size
row_res = imgheight % height
col_res = imgwidth % width... | [
"461158649@qq.com"
] | 461158649@qq.com |
4e7326d8f0782d2450e71723a4e875d33608d65f | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/314/103216/submittedfiles/jogoDaVelha_BIB.py | b06d282cfbb729c7fadf5f046a39ffe6c78fd471 | [] | 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 | 551 | py | # -*- coding: utf-8 -*-
# Minha bib
def solicitaSimboloDoHumano ():
simboloJogador = input('Qual simbolo deseja ultilizar no jogo? ')
while (simboloJogador != 'O') and (simboloJogador != 'X'):
simboloJogador = input('Qual simbolo deseja ultilizar no jogo? ')
return simboloJogador
def mostraTabule... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6bfd57cf8429b4aba8742d9762d3b57922129d71 | c7979f4f6435fe8d0d07fff7a430da55e3592aed | /ABC015/D.py | 3bfd86c65ff0d9c6196a1bb441bc21f026524029 | [] | no_license | banboooo044/AtCoder | cee87d40bb98abafde19017f4f4e2f984544b9f8 | 7541d521cf0da848ecb5eb10ffea7d75a44cbbb6 | refs/heads/master | 2020-04-14T11:35:24.977457 | 2019-09-17T03:20:27 | 2019-09-17T03:20:27 | 163,818,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #高橋くんの苦悩
#動的計画法
# dp[i][width] := (maxValue,useNum)
if __name__ == "__main__":
INF = float('inf')
W = int(input())
N,K = map(int,input().split(" "))
dp = [[0]*(W+1) for _ in range(K+1)]
A = [0] * N
B = [0] * N
for i in range(N):
a , b= map(int,input().split(" "))
A[i] = a
B[i] = b
past_max = 0
for... | [
"touhoucrisis7@gmail.com"
] | touhoucrisis7@gmail.com |
515b90f6751473f9ac482175b57299289a9c2859 | 2b3365bf01a910436edaf1448f182549ffd44525 | /_12_wikipedia.py | 6ca92cc80335bc89912f23a7a4b58cc5477fcc0a | [] | no_license | wlgud0402/croller | 2f1cb93f969d87890d2fb35992833ce3070c95dc | 56339880081042a25b8057caaca67f64a1f20df5 | refs/heads/master | 2021-05-20T23:29:57.503376 | 2020-04-29T06:41:06 | 2020-04-29T06:41:06 | 252,453,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | #위키백과 수집과 출력이 가능한 프로그램
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
pages = set()
def getLinks(pageUrl):
global pages
html = urlopen('http://en.wikipedia.org' + pageUrl)
bs = BeautifulSoup(html, 'html.parser')
try:
print(bs.h1.get_text()) #태그없이 안의 텍스트만 출력해주는 함... | [
"wlgudrlgus@naver.com"
] | wlgudrlgus@naver.com |
786752a2164cf9e296256aef2ffb9e724b2159c2 | 6ead0d3997aa3470fc6f49c6ccc0ac8f808ae5d7 | /problems/python/tests/test_topKFrequent.py | ff3276cafa50cdee80f65c10f1b42103e8ab649e | [] | no_license | ikedaosushi/leetcode | d405455bfffda3057259da78783901feb56d9f76 | d378f2dc5f0b2df1f00208e304979ac0f53ab385 | refs/heads/master | 2021-06-24T04:31:56.586685 | 2020-12-08T13:51:18 | 2020-12-08T13:51:18 | 178,659,078 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import pytest
from topKFrequent import Solution
@pytest.mark.parametrize("nums, k, expected", [
([1, 1, 1, 2, 2, 3], 2, [1, 2]),
([1], 1, [1]),
])
def test_topKFrequent(nums, k, expected):
actual = Solution().topKFrequent(nums, k)
assert actual == expected
| [
"yutaro.ikeda@kaizenplatform.com"
] | yutaro.ikeda@kaizenplatform.com |
a4ef4b4d7cd9ed4952e319fab4b7a38c79db702c | c7cbbd4b1c1e281cef5f4a0c4e3d4a97cee2241e | /froide/document/models.py | 5a8eb1e966fd65554b6679d2fd3c8159cf5c00d1 | [
"MIT"
] | permissive | manonthemat/froide | 078cf78a6eb35226512c0bdfa2ac9043bcc81ad9 | 698c49935eaf2e922f3c9f6a46af0fd545ccbbbb | refs/heads/master | 2020-08-14T08:19:36.215473 | 2019-10-14T19:43:16 | 2019-10-14T19:43:16 | 215,129,869 | 0 | 0 | MIT | 2019-10-14T19:35:49 | 2019-10-14T19:35:49 | null | UTF-8 | Python | false | false | 2,203 | py | from django.db import models
from filingcabinet.models import (
AbstractDocument,
AbstractDocumentCollection,
get_page_image_filename
)
class Document(AbstractDocument):
original = models.ForeignKey(
'foirequest.FoiAttachment', null=True, blank=True,
on_delete=models.SET_NULL, related... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
ce3dcdb6d1d8778e7ef14a5fadca90b5f9c643d5 | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /plugins/cliconf/dellos9.py | ea36ef5694e8fa93800086746101687f43395068 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,293 | py | #
# (c) 2017 Red Hat Inc.
#
# (c) 2017 Dell EMC.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ve... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
82324002112c69c793b3a471952ab9a99b8d73c8 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/timmahrt_pyAcoustics/pyAcoustics-master/pyacoustics/speech_rate/dictionary_estimate.py | 3f9a3d8036bf21e8df109bb47e85b80b53cafc9f | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 3,916 | py | '''
Created on Jan 28, 2015
@author: tmahrt
'''
import os
from os.path import join
from pyacoustics.utilities import utils
from pysle import isletool
def percentInside(startTime, endTime, cmprStartTime, cmprEndTime):
if (float(startTime) <= float(cmprEndTime) and
float(endTime) >= float(cmprSt... | [
"659338505@qq.com"
] | 659338505@qq.com |
64d3e39bc45f23a960c5d92793d0f167df8476e7 | b366806c99ac30e77789f80417978902e25628da | /boto3_exceptions/workmail.py | ef7317ccd08714c962e809adfcdbf095c1236e52 | [
"MIT"
] | permissive | siteshen/boto3_exceptions | 9027b38c238030859572afec7f96323171596eb7 | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | refs/heads/master | 2020-04-19T03:15:02.525468 | 2019-10-23T07:37:36 | 2019-10-23T07:37:36 | 167,928,540 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | import boto3
exceptions = boto3.client('workmail').exceptions
DirectoryServiceAuthenticationFailedException = exceptions.DirectoryServiceAuthenticationFailedException
DirectoryUnavailableException = exceptions.DirectoryUnavailableException
EmailAddressInUseException = exceptions.EmailAddressInUseException
EntityAlrea... | [
"xiaojiang@actwill.com.cn"
] | xiaojiang@actwill.com.cn |
270085783dfae395dfed329ee1efc4d371fe5491 | bccd16717d20d673cb514d6ac68e624c2c4dae88 | /sdk/python/pulumi_gcp/endpoints/outputs.py | bc1adc66e71939c4a0506decc6499354e78b3c93 | [
"MPL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | dimpu47/pulumi-gcp | e78d228f7c2c929ad3e191331b75c6e4c4cc4fa9 | 38355de300a5768e11c49d344a8165ba0735deed | refs/heads/master | 2023-07-07T13:00:15.682157 | 2020-09-23T18:43:11 | 2020-09-23T18:43:11 | 173,437,663 | 0 | 0 | Apache-2.0 | 2023-07-07T01:05:58 | 2019-03-02T11:06:19 | Go | UTF-8 | Python | false | false | 5,387 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
d8327f24f64ffc940857d0a3ef0f3bfcf4d1ceb2 | 8ca19f1a31070738b376c0370c4bebf6b7efcb43 | /office365/communications/operations/update_recording_status.py | 562e461d09952648e16c8272843d786b126ccdf4 | [
"MIT"
] | permissive | vgrem/Office365-REST-Python-Client | 2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3 | cbd245d1af8d69e013c469cfc2a9851f51c91417 | refs/heads/master | 2023-09-02T14:20:40.109462 | 2023-08-31T19:14:05 | 2023-08-31T19:14:05 | 51,305,798 | 1,006 | 326 | MIT | 2023-08-28T05:38:02 | 2016-02-08T15:24:51 | Python | UTF-8 | Python | false | false | 203 | py | from office365.communications.operations.comms import CommsOperation
class UpdateRecordingStatusOperation(CommsOperation):
"""Describes the response format of an update recording status action."""
| [
"vvgrem@gmail.com"
] | vvgrem@gmail.com |
9383aacff23eec6d52cef01ce4e047d49be74540 | 2ea5efd9ccc926e368e7132d7709f48265dae5f3 | /Codes/02_Input.py | 6290817714e68706d9ccddf2c6420490316a7f6a | [] | no_license | ravi4all/PythonWE_Morning_2020 | a843f3fde886b0be42d5f935daecada17cf4ff1c | 87d4f84ef8142ac2c7e08d70a9fab359da08287b | refs/heads/master | 2020-12-14T19:26:37.538793 | 2020-03-21T08:00:51 | 2020-03-21T08:00:51 | 234,846,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | # by default python takes input in strung format
name = input("Enter your name : ")
print("Hello "+name)
# we need to type cast the input()
num_1 = int(input("Enter first number : "))
num_2 = int(input("Enter second number : "))
result = num_1 + num_2
print("Sum is",result)
# Multiline Print
print("""
1. ... | [
"noreply@github.com"
] | ravi4all.noreply@github.com |
b6ce66b2673cdd275ddff44c827d484ceec0c153 | 4fe0ed5e592641b272aa2167ae591155a9cad416 | /pyqtgraph_ex/data_tree.py | 929a705c3d51eebc6dc80cf3b7130a49086f8e52 | [] | no_license | AlexandreMarcotte/test_code | cf715caee730cfdafa7cf97bd011ac15443872f3 | 07e115055befd55d4598dd8a4b33bbdd00ba6f5a | refs/heads/master | 2021-06-07T05:06:12.085390 | 2019-05-06T23:45:38 | 2019-05-06T23:45:38 | 137,810,297 | 0 | 0 | null | 2021-06-01T23:44:40 | 2018-06-18T21:50:39 | Python | UTF-8 | Python | false | false | 722 | py | # -*- coding: utf-8 -*-
"""
Simple use of DataTreeWidget to display a structure of nested dicts, lists, and arrays
"""
import pyqtgraph as pg
from pyqtgraph.Qt import QtCore, QtGui
import numpy as np
app = QtGui.QApplication([])
d = {
'list1': [1,2,3,4,5,6, {'nested1': 'aaaaa', 'nested2': 'bbbbb'}, "seven"],
... | [
"alexandre.marcotte.1094@gmail.com"
] | alexandre.marcotte.1094@gmail.com |
9979efac15eedc30be1b3f32a462d0c9599d248b | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/eventgrid/get_domain_topic.py | cbdaf3633482a6ab8964a94e6381f42ff672dead | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,056 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | morrell.noreply@github.com |
2933cb872811c4d984c9ae6d1e0c0d305ec26d27 | fc0eda8560a26c88b790d236070ed0559d0dc4a4 | /leetcode/basicDS06_tree/b04_lc105_build_tree.py | 72aa63933b0ddc9b7bc22fb7b3cf578bb94f79e5 | [] | no_license | pankypan/DataStructureAndAlgo | b4bd417a16cdb594bbed2ca0220dbd63eb60f3c1 | 6c5d40d57d378994236549f8dea906c75121eadf | refs/heads/master | 2021-08-03T01:22:08.442709 | 2021-07-19T14:56:44 | 2021-07-19T14:56:44 | 279,599,190 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # https://leetcode-cn.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
from typing import List
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def buildTree(self, preorder: List[int], inorder: List[int]) ->... | [
"1356523334@qq.com"
] | 1356523334@qq.com |
84049e1555a83e8bb2650ff6e600098232396841 | 271812d493b7e23550cbc17490d48a882c3179b1 | /brubeck/timekeeping.py | 8ba9e2e3df86fff907271bcd9a853c743de493b3 | [] | no_license | droot/brubeck | 69a5d86fc996ba367bda8d2bc9eb1075a36701fd | 35a44d62d590a5108eb4d5ba2f9f15f780cb99ce | refs/heads/master | 2021-01-16T22:49:46.263829 | 2011-09-06T14:18:49 | 2011-09-06T14:18:49 | 2,334,831 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | import time
from datetime import datetime
from dateutil.parser import parse
from dictshield.fields import LongField
###
### Main Time Function
###
def curtime():
"""This funciton is the central method for getting the current time. It
represents the time in milliseconds and the timezone is UTC.
"""
r... | [
"jd@j2labs.net"
] | jd@j2labs.net |
4e3e1bd04cab8cfc321de73eaf5575d9c21fcb92 | 6b4f38370ce1126a7f74e13c2012ab238a01df93 | /azure-mgmt-sql/azure/mgmt/sql/operations/recoverable_databases_operations.py | d6bf1308fcf3724fd6009628fc5a06a4b35b5127 | [
"MIT"
] | permissive | action/azure-sdk-for-python | 52d8a278bfb2fbc9c7e11297e3bd21c604f906b1 | f06553e45451f065c87ee9ed503ac4be81e64a71 | refs/heads/master | 2020-12-03T02:13:52.566291 | 2017-06-30T18:42:49 | 2017-06-30T18:42:49 | 95,917,797 | 1 | 0 | null | 2017-06-30T19:25:58 | 2017-06-30T19:25:58 | null | UTF-8 | Python | false | false | 7,933 | 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 |
ee2019bff22f3d1aaa540ff78f7cad8ea8ce1e34 | 461c02a8aa79654dc85a1750a29661c95f2c3939 | /src/devilry/devilry/apps/developertools/tests.py | 948fdd077cfa007c11b86aa97a2d172767148ef6 | [] | no_license | espenak/devilry-django | 13bfdc5625218a453c336f296aff6a22d18ae03f | 0e033ebf44c03d864d0457918cf221cfcc704652 | refs/heads/master | 2021-01-23T21:11:01.651800 | 2013-08-05T13:01:23 | 2013-08-05T13:01:23 | 1,915,118 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import unittest
from .management.commands.dev_build_extjs import SimpleJsFile
class TestJsFile(unittest.TestCase):
def testMultilineCommentPattern(self):
self.assertEquals(SimpleJsFile.MULTILINE_COMMENT_PATT.sub('', 'hello /**some \n\n comments \n\t here*/world'),
'hello world')
... | [
"post@espenak.net"
] | post@espenak.net |
b1210e5ee7ae62fa2c2d7ee61167ac2dc2fc80cf | 2f55769e4d6bc71bb8ca29399d3809b6d368cf28 | /Miniconda2/Lib/site-packages/sklearn/neighbors/setup.py | 92a2feb67ef0ea142e80503de7cee7e03cb2ba54 | [] | no_license | jian9695/GSV2SVF | e5ec08b2d37dbc64a461449f73eb7388de8ef233 | 6ed92dac13ea13dfca80f2c0336ea7006a6fce87 | refs/heads/master | 2023-03-02T03:35:17.033360 | 2023-02-27T02:01:48 | 2023-02-27T02:01:48 | 199,570,103 | 9 | 16 | null | 2022-10-28T14:31:05 | 2019-07-30T03:47:41 | Python | UTF-8 | Python | false | false | 1,300 | py | import os
def configuration(parent_package='', top_path=None):
import numpy
from numpy.distutils.misc_util import Configuration
config = Configuration('neighbors', parent_package, top_path)
libraries = []
if os.name == 'posix':
libraries.append('m')
config.add_extension('... | [
"JLiang@esri.com"
] | JLiang@esri.com |
102e52e69cd85959fcc145cd9158976a012b9b5a | 40132307c631dccbf7aa341eb308f69389715c73 | /OLD/idmt/maya/ZoomWhiteDolphin/zm_batchrender.py | 202ca2a0e7840da7848d6ffed9d438ffb477b17d | [] | no_license | Bn-com/myProj_octv | be77613cebc450b1fd6487a6d7bac991e3388d3f | c11f715996a435396c28ffb4c20f11f8e3c1a681 | refs/heads/master | 2023-03-25T08:58:58.609869 | 2021-03-23T11:17:13 | 2021-03-23T11:17:13 | 348,676,742 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | # -*- coding: utf-8 -*-
'''
Created on 2013-8-5
@author: liangyu
'''
import maya.cmds as mc
import maya.mel as mel
def zm_batchFX():
#导入相机
from idmt.maya.py_common import sk_infoConfig
reload(sk_infoConfig)
shotInfo = sk_infoConfig.sk_infoConfig().checkShotInfo()
camFile = '... | [
"snakelonely@outlook.com"
] | snakelonely@outlook.com |
594f066131d1f193284788d929b0b60281ba0d9e | 54020c34ed23a086e2bfbfb874a400f3a11293cb | /ST_vars_and_ic.py | 4761d35359cfcd43ec36389e847eb4c71dc719e3 | [] | no_license | ModelDBRepository/187605 | bd26e6b9af407f157a1d9baae42a9d4fe6157a20 | 739605333f3768f9684b217f52a375e6ddd32bb1 | refs/heads/master | 2020-05-29T18:27:58.771998 | 2019-05-31T04:56:54 | 2019-05-31T04:56:54 | 189,300,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,243 | py | # -*- coding: utf-8 -*-
# (c) 2016 - Ilya Prokin - isprokin@gmail.com - https://sites.google.com/site/ilyaprokin
# INRIA Rhone-Alpes
# STDP model : variables' names and initial values
import numpy as np
ST_vars_and_ic = {
'h_caL13': 0.99182137906713796,
'm_caL13': 0.0036977671871038817,
'o_AMPA': 0.0,
... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
a9992f4f561abbeb7842d4945ff18b0ff57b5493 | 0b8575873d696562c8279c9361433d38626bc6cc | /qa/rpc-tests/python-bogcoinrpc/bogcoinrpc/authproxy.py | e686f50b95493df4ad6b8326839167e87f4e7056 | [
"MIT"
] | permissive | colombiacoin/newbogcoin | 1be9b8f432a1281457b33a0313cef8f0127c3ea8 | d36069738e7e514b3f6d8c5b58bd4692b70b1a2e | refs/heads/master | 2020-07-24T15:27:04.311029 | 2019-09-13T12:16:24 | 2019-09-13T12:16:24 | 207,967,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,784 | py |
"""
Copyright 2011 Jeff Garzik
AuthServiceProxy has the following improvements over python-jsonrpc's
ServiceProxy class:
- HTTP connections persist for the life of the AuthServiceProxy object
(if server supports HTTP/1.1)
- sends protocol 'version', per JSON-RPC 1.1
- sends proper, incrementing 'id'
... | [
"rishabhshukla@opulasoft.com"
] | rishabhshukla@opulasoft.com |
45202ab545dae9546344b844321a47b93b3fe7ab | 5bc369d49b16bc46e23b76621144223dc4226997 | /model/valueset.py | 204d668f16ce93ac8d577d91ca0b5aedbefd6d55 | [
"MIT"
] | permissive | beda-software/fhir-py-experements | 90d8e802f92f9e691d47d6ea4b33fda47957383a | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | refs/heads/master | 2022-12-17T05:19:59.294901 | 2020-02-26T03:54:13 | 2020-02-26T03:54:13 | 241,292,789 | 0 | 0 | MIT | 2022-12-08T03:38:55 | 2020-02-18T06:53:02 | Python | UTF-8 | Python | false | false | 6,429 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/ValueSet) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .backboneelement import BackboneElemen... | [
"ir4y.ix@gmail.com"
] | ir4y.ix@gmail.com |
f904c5c7289553d7bb7d0f03975aa6101230c77f | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /bin/Python27/Lib/site-packages/scipy-0.14.0-py2.7-win32.egg/scipy/sparse/linalg/isolve/tests/test_lsmr.py | 519d4498fffe9e1262b2432c530da07a2eddc333 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 4,754 | py | """
Copyright (C) 2010 David Fong and Michael Saunders
Distributed under the same license as Scipy
Testing Code for LSMR.
03 Jun 2010: First version release with lsmr.py
David Chin-lung Fong clfong@stanford.edu
Institute for Computational and Mathematical Engineering
Stanford University
Micha... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
ba29ed82314cae6ed3ee61c684bfe1f5a68b82f6 | 5ca5a7120c3c147b3ae86c2271c60c82745997ea | /my_selenium/web_driver_three/data_frame/pageObjects/LoginPage.py | ba2b5ecb7dc39b416962ddc7f40bc3d108534d64 | [] | no_license | JR1QQ4/auto_test | 6b9ea7bd317fd4338ac0964ffd4042b293640af3 | 264b991b4dad72986e2aeb1a30812baf74e42bc6 | refs/heads/main | 2023-03-21T01:32:29.192030 | 2021-03-16T14:07:11 | 2021-03-16T14:07:11 | 321,591,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,437 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
from my_selenium.web_driver_three.data_frame.util.ObjectMap import *
from my_selenium.web_driver_three.data_frame.util.parse_configuration_file import ParseConfigFile
from selenium import webdriver
class LoginPage(object):
def __init__(self, driver: webdriver):
se... | [
"chenjunrenyx@163.com"
] | chenjunrenyx@163.com |
20234811a48b9100c4a4d892de7cbdf8b671601c | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/20상반기 코딩테스트/네트워크연결/bj3780.py | 81a9c28d91d9f9bda43b57b0f9ea4cab4770f1c5 | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import sys
sys.stdin = open('bj3780.txt','r')
def find(x):
if P[x]==x:return Dis[x]
Dis[x]+=find(P[x])
P[x]=P[P[x]]
return Dis[x]
T=int(input())
for t in range(T):
N=int(input())
P=list(range(N+1))
Dis=[0]*(N+1)
while True:
L=list(map(str,input().split()))
if len(L)==1:b... | [
"choo0618@naver.com"
] | choo0618@naver.com |
78b0a50ab9ca8a2b3bdda54f39c9760a8e3ba0f5 | cda2c95ee6167a34ce9ba3ea25707469a2c357ca | /neural_augmented_simulator/old-code/data-collection/3-collect_mujoco_episodes_cheetah.py | 4496daf7cbcffb9a7fc72bdaaf3d5687de2c0805 | [] | no_license | fgolemo/neural-augmented-simulator | f43d9a88187fbef478aba9b4399eaa59d8795746 | eb02f20d92e6775824dbac221771f8b8c6dda582 | refs/heads/master | 2020-06-23T15:50:35.957495 | 2020-03-06T21:16:34 | 2020-03-06T21:16:34 | 198,666,041 | 0 | 1 | null | 2019-12-04T22:19:27 | 2019-07-24T15:49:48 | Jupyter Notebook | UTF-8 | Python | false | false | 5,037 | py | #import torch
import math
import h5py
from fuel.datasets.hdf5 import H5PYDataset
import gym
import gym_throwandpush
import numpy as np
from scipy.misc import imresize
from utils.buffer_images import BufferImages as Buffer
import matplotlib.pyplot as plt
from tqdm import tqdm
from hyperdash import Experiment
env = gym... | [
"fgolemo@gmail.com"
] | fgolemo@gmail.com |
1f076e31be7002240dc6cc7edc06f527821ec557 | de4d88db6ea32d20020c169f734edd4b95c3092d | /aiotdlib/api/functions/set_custom_language_pack.py | dd86e04e684d5f47e8ed95dcffb27b3d5a653339 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | thiagosm/aiotdlib | 5cc790a5645f7e4cc61bbd0791433ed182d69062 | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | refs/heads/main | 2023-08-15T05:16:28.436803 | 2021-10-18T20:41:27 | 2021-10-18T20:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | [
"pylakey@protonmail.com"
] | pylakey@protonmail.com |
2be4b98c022d59fb74c3e543370f9f90e68cf785 | d28f0c984bbd4f80b770259ceb884f38e1cc0db8 | /bin/find-image-dirs.py | 54be7c595d65e0f9836b50b9be5cb1327028f05c | [] | no_license | cloudmesh-community/book | 435a96e2a8d2b8438428880b5f39a56d2c1c63b7 | f971bc1d15c82375d4c765b33c6fbe383b5819de | refs/heads/main | 2022-11-09T16:57:26.495231 | 2022-10-27T21:27:37 | 2022-10-27T21:27:37 | 135,431,595 | 29 | 134 | null | 2022-02-01T02:04:03 | 2018-05-30T11:14:59 | Jupyter Notebook | UTF-8 | Python | false | false | 494 | py | #!/usr/bin/env python
import sys
import glob
import os
directories = [".", "chapters"]
for root, dirs, files in os.walk("../chapters", topdown=False):
for name in dirs:
path = os.path.join(root, name)
if 'images' in path:
path = os.path.dirname(path)
# hack to remove ../ ... | [
"laszewski@gmail.com"
] | laszewski@gmail.com |
a7ddf9fb5c1a07cb43829f558c8bec12271f05fa | 2391ff81d33e05efb1f38f7a67eff13dbb6a7b23 | /open_seq2seq/model/slstm.py | a93beee9507c8799bf6946c38afd75c4d0d30998 | [
"MIT"
] | permissive | matanhs/OpenSeq2Seq | 3b79222e114db75c1bf0f6b4b1eb0d231b8f0d0b | 540a1a230eff7c4cefcbb094ddc65aa11f64c9b3 | refs/heads/master | 2021-08-31T01:49:01.519514 | 2017-12-20T02:43:24 | 2017-12-20T04:47:16 | 113,621,881 | 1 | 0 | null | 2017-12-08T22:10:20 | 2017-12-08T22:10:20 | null | UTF-8 | Python | false | false | 6,106 | py | """Implement https://arxiv.org/abs/1709.02755
Copy from LSTM, and make it functionally correct with minimum code change
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import tensorflow as tf
from tensorflow.python.ops import array_ops
from tensorflow.... | [
"okuchaiev@nvidia.com"
] | okuchaiev@nvidia.com |
1e067717037ea679c74fa4d55b9080f7baba735a | bade79e88dd32b42b4841a1e1a94eddfc86652bf | /communication/communicationWindow.py | b1145de35a61d32076eb03a2f4d120f36de0285e | [] | no_license | a452669850/DCSNEW | 927171b10f455b396b50e8400001efcdb5fd1217 | 7578b6b18e021108c3e8b31c5dab2a17ac16a79d | refs/heads/master | 2023-01-04T11:25:09.787625 | 2020-10-20T13:16:54 | 2020-10-20T13:16:54 | 305,712,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,057 | py | import sys
from pathlib import Path
sys.path.append('D:\\dcstms')
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QApplication, QMainWindow, QMdiArea, QHBoxLayout
from communication import skio, iomapping
from communication.view.IntermediateVariable import intermediateVarWindow
from communication.view.databa... | [
"a452669850@outlook.com"
] | a452669850@outlook.com |
0d6be0c4188a1d84cc9f5b5b16671e49c1e36a28 | eb66f122da246af7e5f342c5a3be3a02d0957d04 | /oldBoy/upload_client.py | b80d3719e98c46debe6404bff1dbc93271e267d8 | [] | no_license | zhchwolf/pylearn | 00838be6f5f68176ba3d0131f223839469a16a55 | 5dc2d39a90dd064ac88669d4535ad08b082bf04f | refs/heads/master | 2022-08-27T03:25:10.854780 | 2019-09-27T09:38:47 | 2019-09-27T09:38:47 | 157,136,924 | 0 | 1 | null | 2022-08-06T05:22:44 | 2018-11-12T00:56:12 | Python | UTF-8 | Python | false | false | 690 | py | import socket
import os
sk = socket.socket()
address =('127.0.0.1',8000)
sk.connect(address)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
while True:
inp = input('>>>') # post|123.jpg
cmd,path = inp.split('|')
path = os.path.join(BASE_DIR,path)
filename = os.path.basename(path)
fil... | [
"zhchwolf@sina.com"
] | zhchwolf@sina.com |
47afd7e643d3c1fb17daceaa3e205522b12cb9b4 | 13ce655f82b93fb4089b29e62a8e33dd7ff05493 | /src/wai/json/error/_RequiredDisallowed.py | 5305a58f8080b5fe1c0cc7bf695504fde72de1f4 | [
"MIT"
] | permissive | waikato-datamining/wai-json | 603b90b13155114bbfb60b40f45100248c03d710 | cb013fb16e7c1b8d91e040a387a143d29d4ced96 | refs/heads/master | 2021-01-07T15:06:22.957223 | 2020-03-17T23:59:14 | 2020-03-17T23:59:14 | 241,736,670 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | from ._JSONPropertyError import JSONPropertyError
class RequiredDisallowed(JSONPropertyError):
"""
Error type for when trying to set a property as required,
but it is not allowed.
"""
pass
| [
"coreytsterling@gmail.com"
] | coreytsterling@gmail.com |
59789cb9c983d28dc952d267e6db4245284bedb2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/132/usersdata/260/41472/submittedfiles/al14.py | c446200a7c5705038df4fc037e84245344b06221 | [] | 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 | 224 | py | # -*- coding: utf-8 -*-
n=int(input("digite o número de pessoas:"))
altura=0
for i in range (1,n+1,1):
alturas=int(input("digite a altura dessas pessoa:"+str(i)))
total=alturas+total
media=total//n
print(media)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
017d4a1b0484ade3ebe995b017041b678fbe1c5d | 5c00df958c8010c3bea2e5d5ef63d63642526495 | /setup.py | 278b6215ba952ddf33240cd2b2bf597c3adf6e25 | [
"MIT"
] | permissive | ppdebreuck/matbench | 32e9be021349c8bcb04efd992205f21e9850912f | 4bc373d86671e17aeba3ecdd8a49c3ad555d4513 | refs/heads/main | 2023-08-25T19:05:55.508133 | 2021-10-11T15:39:47 | 2021-10-11T15:39:47 | 393,661,109 | 0 | 0 | MIT | 2021-08-07T11:11:38 | 2021-08-07T11:11:38 | null | UTF-8 | Python | false | false | 1,468 | py | import os
from setuptools import setup, find_packages
MODULE_DIR = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(MODULE_DIR, "requirements.txt"), "r") as f:
requirements = f.read().replace(" ", "").split("\n")
# source of version is in the constants file
VERSION_FILE = os.path.join(MODULE_DIR,... | [
"ardunn@lbl.gov"
] | ardunn@lbl.gov |
62f74a9cfefeb751139c8a1fb60850c830101bfb | 287792543e5f15cd912661ffe0575d4fc3d03a49 | /backend/src/baserow/core/registries.py | c5f640f0e9fe3b433d04f42104a84869f0fef686 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jacklicn/baserow | 27f7566a164127d8b4571be4493447347d8aa3ed | 978d9462ededbaa96674a6653028ba19876ea273 | refs/heads/master | 2023-04-02T19:06:20.961729 | 2021-04-08T16:00:37 | 2021-04-08T16:00:37 | 357,790,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,506 | py | from .registry import (
Instance, Registry, ModelInstanceMixin, ModelRegistryMixin, APIUrlsRegistryMixin,
APIUrlsInstanceMixin, ImportExportMixin
)
from .exceptions import ApplicationTypeAlreadyRegistered, ApplicationTypeDoesNotExist
class Plugin(APIUrlsInstanceMixin, Instance):
"""
This abstract clas... | [
"bramw@protonmail.com"
] | bramw@protonmail.com |
58b07d55f2442753f0175fb19c79c359c7b655d5 | 2f0d56cdcc4db54f9484b3942db88d79a4215408 | /.history/Python_Learning/Condiion_20200410231844.py | 807f9f0e50b806d27bf01dda56519bf8f565b699 | [] | no_license | xiangxing98/xiangxing98.github.io | 8571c8ee8509c0bccbb6c2f3740494eedc53e418 | 23618666363ecc6d4acd1a8662ea366ddf2e6155 | refs/heads/master | 2021-11-17T19:00:16.347567 | 2021-11-14T08:35:01 | 2021-11-14T08:35:01 | 33,877,060 | 7 | 1 | null | 2017-07-01T16:42:49 | 2015-04-13T15:35:01 | HTML | UTF-8 | Python | false | false | 3,178 | py | import time
print('如果你想拥有读心术,那选择X教授')
time.sleep(2)
print('如果你想干扰地球磁场,那选择万磁王')
time.sleep(2)
print('如果你想急速自愈能力,野兽般的感知能力,那选择金刚狼')
time.sleep(2)
print('如果你想拥有拥有念力移位和心电感应,那选择凤凰女')
time.sleep(2)
print('如果你想拥有拥有能随意控制气候的能力,那选择暴风女')
time.sleep(2)
print('那么,如果让你来选择的话,你想选择哪个人物?')
time.sleep(2)
print('请在以下六个选项【1 X教授... | [
"xiangxing985529@163.com"
] | xiangxing985529@163.com |
3886165407d0ba5f66efa43613de88aafdc77bbe | 5e8e4ca2205ccecf3b5b1ce12ae202883d4a5237 | /anchore_engine/clients/policy_engine/__init__.py | 481856d7a178a192d14edd75658cd2fa2d624924 | [
"Apache-2.0"
] | permissive | jasonwilk/anchore-engine | e6fb35060942688164e93a099559aa9be8900502 | 3b587a597be985cf5895f4a249418855d4be3fae | refs/heads/master | 2020-03-28T04:02:00.007092 | 2018-09-06T14:55:43 | 2018-09-06T14:55:43 | 147,689,738 | 0 | 0 | Apache-2.0 | 2018-09-06T14:53:27 | 2018-09-06T14:52:01 | Python | UTF-8 | Python | false | false | 1,577 | py | import random
import anchore_engine.clients.common
from anchore_engine.subsys.discovery import get_endpoints
from .generated import DefaultApi, configuration, ApiClient
from anchore_engine.subsys import logger
import anchore_engine.configuration.localconfig
SERVICE_NAME = 'policy_engine'
def get_client(host=None, us... | [
"nurmi@anchore.com"
] | nurmi@anchore.com |
8153e6afaf7e26c90c5d6e9b2a1aa321af0382d5 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /grafeas/v1/grafeas-v1-py/grafeas/grafeas_v1/types/deployment.py | 69ac2dac990e1a4f42b3f2fae3580581b4827d37 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | # -*- coding: utf-8 -*-
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
0251b865943a31f95d2d8fcca8ff63221627c2f1 | 59e59cbc24650b557f41c041cbeb8dad10c4d2b1 | /01 Array/169. Majority Element.py | 718cf01d75ceb6a3273c129b36510ee9634562bf | [] | no_license | stungkit/Leetcode-Data-Structures-Algorithms | 5345211f4ceb7dc7651360f0ca0a7f48f2434556 | a3a341369a8acd86c29f8fba642f856d6ea2fd0a | refs/heads/master | 2023-07-26T18:14:17.993112 | 2021-09-13T15:40:47 | 2021-09-13T15:40:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | # Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.
# You may assume that the array is non-empty and the majority element always exist in the array.
# Example 1:
# Input: [3,2,3]
# Output: 3
# Example 2:
# Input: [2,2,1,1,1,2,2]
#... | [
"noreply@github.com"
] | stungkit.noreply@github.com |
fc679ef509cb54b6f6526cdeede624b74324deaa | e5f194129752f3f89eed53478416d2c92cde0259 | /.cache/Microsoft/Python Language Server/stubs.v4/RAbd3hOzVRIjl5T9N_Z-WymMnylM5TJUMWmbys-xAPg=/speedups.cpython-38-x86_64-linux-gnu.pyi | 227c530185cbd8d826a94731aef6899a79524680 | [] | no_license | stepin-s/st | 1677fc25cb42c36afd76d2e3a48a1c0a5daf1b93 | b4cf346a446d57210197ee7f6f809cbc0a5b8799 | refs/heads/master | 2023-07-27T17:37:39.268414 | 2021-05-25T12:08:10 | 2021-05-25T12:08:10 | 405,090,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | pyi | __doc__ = None
__file__ = '/home/st/.local/lib/python3.8/site-packages/tornado/speedups.cpython-38-x86_64-linux-gnu.so'
__name__ = 'tornado.speedups'
__package__ = 'tornado'
def websocket_mask():
pass
| [
"stpn.s@yandex.ru"
] | stpn.s@yandex.ru |
3af7a3b933bf513f93b14404512dd68ad5d4de48 | a689a72d3699883d7b58bd4ee3103373270bd0d5 | /BOJ/Python/BOJ1020.py | 12f8f79a460103398fcfb7620d39798d82a6ee6c | [] | no_license | Oizys18/Algo | 4670748c850dc9472b6cfb9f828a3ccad9c18981 | 45caafe22a8a8c9134e4ff3b227f5f0be94eefe7 | refs/heads/master | 2022-05-11T08:35:06.812539 | 2022-05-07T01:30:41 | 2022-05-07T01:30:41 | 202,690,024 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import sys
sys.stdin = open('BOJ1020.txt','r')
from pprint import pprint as pp
time = [int(i) for i in input()]
N = len(time)
cnt = {
1:2,
2:5,
3:5,
4:4,
5:5,
6:6,
7:3,
8:7,
9:5,
0:6
}
def count(time):
total = 0
for t in time:
total += cnt[t]
return total
d... | [
"oizys18@gmail.com"
] | oizys18@gmail.com |
38528b4c400b8e661dc7ca3250f4afcfea523742 | f1e9f557c5d724dcabbfa17903de93bb82767e35 | /py_ffmpeg_snapshot_mp4.py | 260b61a4ce66d6d9b5ea7477b98639ad3e9ab092 | [] | no_license | gregsheu/python | e5e9ff83dc0ce90541591e726c940e8a1f71a3d4 | 4a77295d58a522974ee85b201ab99cdbe410fd08 | refs/heads/master | 2023-08-18T08:30:15.611727 | 2023-08-08T06:55:44 | 2023-08-08T06:55:44 | 181,270,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,075 | py | import requests
import urllib
import ffmpeg
import os
import time
import threading
from requests.auth import HTTPDigestAuth
def convert_jpgmp4(ip):
t = 0
k = 'KingSolarman'
while t < 6:
t = t + 1
for i in range(1, 5):
try:
#r1 = ffmpeg.input('rtsp://admin:admin12... | [
"greg@mymacpro.bluefinops.io"
] | greg@mymacpro.bluefinops.io |
034aa04bd4df8e40af2fcc06330674f531b2564b | 1061216c2c33c1ed4ffb33e6211565575957e48f | /python-blueplanet/app/openapi_server/models/realm_domain.py | 5d2b636ee80ac8d5bad11d57f9865d8f0818a6ce | [] | no_license | MSurfer20/test2 | be9532f54839e8f58b60a8e4587348c2810ecdb9 | 13b35d72f33302fa532aea189e8f532272f1f799 | refs/heads/main | 2023-07-03T04:19:57.548080 | 2021-08-11T19:16:42 | 2021-08-11T19:16:42 | 393,920,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,622 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from app.openapi_server.models.base_model_ import Model
from openapi_server import util
class RealmDomain(Model):
"""NOTE: This class is auto generated by the swa... | [
"suyash.mathur@research.iiit.ac.in"
] | suyash.mathur@research.iiit.ac.in |
853844b8902491afe57cebbbb509d1c6a63f6d96 | 8a1144dd38388992c7e35a4cc84002e381f2cf1f | /python/django_fundamentals/login_and_registration/apps/login_registration/migrations/0001_initial.py | 9ea1b5fcdbc6512bea58f815ae55408d3fa91aa6 | [] | no_license | vin792/dojo_assignments | 18472e868610bacbd0b5141a5322628f4afefb5b | 449b752f92df224285bfd5d03901a3692a98562e | refs/heads/master | 2021-01-20T00:20:09.896742 | 2017-05-26T17:37:09 | 2017-05-26T17:37:09 | 82,735,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-17 20:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"vin792@gmail.com"
] | vin792@gmail.com |
21816f17050910e9e18ccd56d0411ceab4b65bd8 | a8139ccd50a27861d3c5a4168fd0e4b351c0a514 | /material/code/advanced_oop_and_python_topics/4_ManagedAttributeDemo/ManagedAttributeDemo2.py | 79ffd4b1f17b51ffde72f399ac413b1c616988d1 | [] | no_license | shambhand/pythontraining | a124aa1485c3ce0e589fc2cd93c1e991746432e4 | 24dd923e2b2c07c70500775e3665e2a527240329 | refs/heads/master | 2021-05-17T22:54:45.331127 | 2019-01-11T03:12:59 | 2019-01-11T03:12:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # Attribute properties are inherited by the
# derived class
import sys
class Person:
def __init__(self, name):
self._name = name
def getName(self):
print('fetch...')
return self._name
def setName(self, value):
print('change...')
self._name = value
def delName(self):
print('remove...')
del self._na... | [
"amit2766@gmail.com"
] | amit2766@gmail.com |
4ffaf02529c48182b78088a71725d0fd48b1e682 | b945118b1344f05921af1f9974e5d6e370967253 | /cloudflu/r0.5/cloudflu/amazon/apps/reservation_rm.py | e97806bf40cf663f3ed7a01019d84af190e32399 | [
"Apache-2.0"
] | permissive | asimurzin/balloon-testing | aab85316d2a63c3a497b5afe46467c78c17a2691 | 35d72685a319fa66ee7006841b75c54bd62434e0 | refs/heads/master | 2016-09-06T20:16:59.157112 | 2011-07-26T11:51:49 | 2011-07-26T11:51:49 | 989,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,803 | py | #!/usr/bin/env python
#--------------------------------------------------------------------------------------
## Copyright 2010 Alexey Petrov
##
## 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... | [
"asimurzin@gmail.com"
] | asimurzin@gmail.com |
ee05403c9afac4b0de051068d81af1443f0da820 | 9b0babcf6849e11b3f208e702d2b36fd049f63f2 | /Nov03/04Pattern638.py | 3c7b60988e41f0991146ca7c16ac43e3bf4cb094 | [] | no_license | nish235/PythonPrograms | d5ec56647d06136aef9501d732e7da32e82f3947 | f657c1263098665a50b1b1fcbfc49bea6ce7af6f | refs/heads/main | 2023-03-18T23:02:34.974009 | 2021-03-13T06:18:00 | 2021-03-13T06:18:00 | 302,834,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | n = 5
a = n
b = n
for x in range(1, n+1):
for y in range(1, n * 2 + 1):
if y == a or y == b:
print(chr(a+64), end="")
else:
print(" ", end="")
a -= 1
b += 1
print()
| [
"noreply@github.com"
] | nish235.noreply@github.com |
7b52b03525110b80daf809be6771e62af13a65de | b1ddcf4bac9ca603a7a2333912eb29da8bf2cb7b | /ReadOnlyModelViewset/ReadOnlyModelViewset/wsgi.py | f5e6d48aa8a7cf1cd91df179630338e674686911 | [] | no_license | sankethalake/django_practice | e9477ae0beee4923cd6758cc6d37517ea5979610 | 9877304f0c6415ae8979e5cc13a49559155fdd9d | refs/heads/main | 2023-07-07T07:07:35.598657 | 2021-08-14T06:26:23 | 2021-08-14T06:26:23 | 389,917,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | """
WSGI config for ReadOnlyModelViewset project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.enviro... | [
"sankethalake@gmail.com"
] | sankethalake@gmail.com |
eef03c572aa4c91aa3ca9b0b876c4ab34a9a2947 | 677ccdf2a0459179f03ef543c83d52f3b3174b98 | /django_app/wishlist/apis/wishlist.py | 060cb3d166eb89bc386295e20f2cbc039960e8f1 | [] | no_license | wps5-airbnb/airbnb | 6c4de1d5d6e7f9b2bd9190a9a84b8e19e845b761 | 68068def521bd911fbc462cb10eae23aa7b9b436 | refs/heads/master | 2021-01-01T16:18:43.854381 | 2018-10-29T06:22:18 | 2018-10-29T06:22:18 | 97,808,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | from rest_framework import authentication, status
from rest_framework.response import Response
from rest_framework.views import APIView
from house.models import House
from house.serializers.house import HouseSerializer
from ..models import Wishlist
__all__ = [
'WishlistView',
]
class WishlistView(APIView):
... | [
"gaius827@gmail.com"
] | gaius827@gmail.com |
3b8f928c5a21247a282fb340146ff95376ee343a | ad05a747dc8f23822c51b02486b29c5cd2001369 | /releases/cws_toolbox/cws_tbx_1.4.6/cws_toolbox/transform_lidar/remove_blanks.py | 107baf1cd1f503a0dda18928dbbd91e908e0ea23 | [] | no_license | nickrsan/sierra-code-library | 9e2bcb51135b2f33c1ff4230ec21c0f30ab19c2c | 91abf016b63da901d4cc182f4761fe1d7f46cfe4 | refs/heads/master | 2022-04-11T10:53:17.439366 | 2020-03-24T00:32:06 | 2020-03-24T00:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | import sys
import arcpy
from cws_toolbox.transform_lidar.cwslidar import *
class func_wrapper:
def __init__(self):
pass
def processor(self,data,mm,output = None): # mm is the minmax object
output.write("x y z i r g b\n")
for line in data:
match = re.search('^(\d*)\s*$',line) # if this line i... | [
"nickrsan@users.noreply.github.com"
] | nickrsan@users.noreply.github.com |
95f0622de154b99f837e5337ee28442eac324b12 | bb7909c8b1906d43836d798e3bf6e5d3aa12a2ea | /groovebox/utils/__init__.py | 2d84afcc8d1cf4cd0542eec3dbb20bca74d8ac5c | [] | no_license | thegroovebox/api.groovebox.org | 9e55002f22196ae4a94b05d3e6297de0d9d33c4f | 99701d24e686b5d2d0c339e5dbe6cb74a939b3d9 | refs/heads/master | 2021-01-22T14:11:44.163885 | 2016-07-30T07:47:21 | 2016-07-30T07:47:21 | 38,858,649 | 4 | 2 | null | 2016-07-30T07:47:21 | 2015-07-10T03:22:56 | Python | UTF-8 | Python | false | false | 1,795 | py | #!/usr/bin/env python
# -*-coding: utf-8 -*-
"""
utils
~~~~~
Various utilities (not groovebox specific)
:copyright: (c) 2015 by Mek
:license: see LICENSE for more details.
"""
from datetime import datetime, date
import json
import string
def subdict(d, keys, required=True):
"""Create a dic... | [
"michael.karpeles@gmail.com"
] | michael.karpeles@gmail.com |
32d7879356d81e175fd2276ed3fce8cab3d00e97 | 34ed44cdbbb641c6ace37b5caa05a850b5928980 | /impression_client/backends.py | 1ac8234b840f4300a722991080bc09b743d9a274 | [
"MIT"
] | permissive | gregschmit/django-impression-client | 627dfe89a2053e9965dc7e3ad8069e16dad55e4f | a2f4328024a67865eccaeff79567320842ab5d5c | refs/heads/master | 2020-12-01T13:35:35.092702 | 2019-12-29T02:17:15 | 2019-12-29T02:17:15 | 230,642,917 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,287 | py | """
This module implements our remote email backend.
"""
import requests
from django.core.mail.backends.base import BaseEmailBackend
from .settings import get_setting
class RemoteEmailBackend(BaseEmailBackend):
"""
This backend sends a RESTful request to the target Impression server, and allows
that re... | [
"schmitgreg@gmail.com"
] | schmitgreg@gmail.com |
641d4a77c65b117c530880486b96976994997758 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/core/framework/variable_pb2.py | d039b2253deae01739d32df4de63b92afd561ed4 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:44f055eb2279cd13afd13956996ab45ffe6357c2bc77bbe30d0d98318245f426
size 11678
| [
"business030301@gmail.com"
] | business030301@gmail.com |
d09592cff798e5f6b30194c839b285354a53054a | 28a124b6a2f22a53af3b6bb754e77af88b4138e1 | /DJANGO/DjangoRestFramework/intro/comment/api/views.py | ec8c91dabbf7cefb14cd4267f581b6dfe6440a51 | [] | no_license | mebaysan/LearningKitforBeginners-Python | f7c6668a9978b52cad6cc2b969990d7bbfedc376 | 9e1a47fb14b3d81c5b009b74432902090e213085 | refs/heads/master | 2022-12-21T03:12:19.892857 | 2021-06-22T11:58:27 | 2021-06-22T11:58:27 | 173,840,726 | 18 | 4 | null | 2022-12-10T03:00:22 | 2019-03-04T23:56:27 | Python | UTF-8 | Python | false | false | 1,924 | py | from rest_framework.generics import CreateAPIView, ListAPIView, DestroyAPIView, RetrieveUpdateAPIView
from comment.models import Comment
from comment.api.serializers import CommentCreateSerializer, CommentListSerializer, CommentDeleteUpdateSerializer
from comment.api.permissions import IsOwner
from rest_framework.permi... | [
"menesbaysan@gmail.com"
] | menesbaysan@gmail.com |
eb9f93c41f17e6c67016513077e632e91c2443b2 | 8ee5dcbdbd407eb5f294d430813b16eca22f571c | /data/HW5/hw5_308.py | 2c3b780ef113894c2152aaba21d6a3219530477f | [] | no_license | MAPLE-Robot-Subgoaling/IPT | 5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9 | f512ea3324bfdceff8df63b4c7134b5fcbb0514e | refs/heads/master | 2021-01-11T12:31:00.939051 | 2018-08-13T23:24:19 | 2018-08-13T23:24:19 | 79,373,489 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | def main():
width = int(input("Please enter the width of the box: "))
height = int(input("Please enter the height of the box: "))
outline = str(input("Please enter a symbol for the box outline: "))
fill = str(input("Please enter a symbol for the box fill: "))
for i in range(height):
line = "... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
c56630841c8602bde83bb5f0a0ab2c6ffcd7ceb2 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa1/sample/def_func_nonlocal-67.py | 097609d7e0d61bbab6660375189cf84a37495645 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py |
def foo(x:int) -> bool:
a:int = 0
b:int = 1
def bar(y: int) -> int:
nonlocal a
a = 2
return y
return bar($Parameters) > a
foo(1)
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
75f658448722da512c74e14e4e1266419cd6b885 | b2b9be47ce8c2cd0985eb39fa4489e149c78a085 | /nintendo/common/http.py | 3562997ac828fce35d724486d11d1eb836251c34 | [
"MIT"
] | permissive | SmmServer/NintendoClients | 9e15801f73d35877b5e3a47830c2a5f2778547ad | e1d2fec34e460cd87330a8cc886e54479d701469 | refs/heads/master | 2022-09-10T13:06:35.800799 | 2019-08-29T17:23:46 | 2019-08-29T17:23:46 | 218,143,700 | 0 | 3 | null | 2019-10-28T20:56:14 | 2019-10-28T20:56:13 | null | UTF-8 | Python | false | false | 5,291 | py |
from . import socket, signal, util, scheduler
import logging
logger = logging.getLogger(__name__)
class HTTPFormData:
def __init__(self):
self.fields = {}
def parse(self, data):
fields = data.split("&")
for field in fields:
if not "=" in field:
logger.warning("Malformed form parameter")
return... | [
"ymarchand@me.com"
] | ymarchand@me.com |
3f0d5dd795c63efece0b18782e3ac5fed79b6dfd | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=9/params.py | c43dddd0986e94512fb896453546bc28545453ac | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.516595',
'max_util': '2.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 9,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
d05fc8d82d239460c8948bcb2604441baf39c5b5 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/surface/iot/devices/credentials/describe.py | c6e806c9fe1370cae03c45a6ce6d6cc152c4def6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 2,028 | py | # -*- coding: utf-8 -*- #
# Copyright 2017 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
f086c3c60ee2807d697de9ada4ec168df5ca413c | 9eaa2c64a777bd24a3cccd0230da5f81231ef612 | /study/1905/month01/code/Stage1/day15/exercise02.py | 5a783276705d8406f1385d3bdd97764fd8574235 | [
"MIT"
] | permissive | Dython-sky/AID1908 | 4528932f2ca66b844d8a3fcab5ed8bf84d20eb0c | 46cd54a7b36b5f009974f2bbb7005a4ad440ca1a | refs/heads/master | 2022-04-14T12:23:30.426270 | 2020-04-01T18:05:19 | 2020-04-01T18:05:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | """
练习2:根据生日(年月日),计算活了多少天
思路
年月日 --> 时间
当前时间 --> 出生时间
计算天
"""
import time
def life_days(year, month, day):
"""
根据生日活了多少天
:param year: 年
:param month:月
:param day:日
:return: 活的天数
"""
tuple_time = time.strptime("{}-{}-{}".format(year, month, day), "%Y-%m-%d")
lift_second = time.tim... | [
"dong_1998_dream@163.com"
] | dong_1998_dream@163.com |
578fcf3f4a42677b26d57fc4c57d9470a1df953a | a37c93503ecb205b16f860664629a41b7c48250e | /initiation/migrations/0003_auto_20200913_0148.py | baad8b906b1e677c71d249c5286e339f7fb44344 | [] | no_license | samuelitwaru/PMS | f86681eaec2e34142447c3e66ab8d0939f4e0dd0 | 7bf7c9c511dd727479020540eef2a86ef561369e | refs/heads/master | 2023-01-10T04:35:16.852447 | 2020-10-22T09:03:48 | 2020-10-22T09:03:48 | 290,486,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # Generated by Django 2.2.3 on 2020-09-13 01:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('initiation', '0002_auto_20200912_0001'),
]
operations = [
migrations.RemoveField(
model_name='r... | [
"samuelitwaru@gmail.com"
] | samuelitwaru@gmail.com |
86df83c6ac010a214be5f8c2906b4e742ea73a87 | 5a17226264d9abe7ff99c7da76512551b3df86a5 | /leetcode_algorithm/hacker_rank_easy_grid_challenge.py | 3e9122d701492f26548736c95604398bd5809d3f | [] | no_license | ccubc/DS_self_learning | cfddf6a02926884fae5a0b2798a20a4470674101 | 40725ee6d699c19c25dfbd81363564e15707c448 | refs/heads/small_potato | 2021-06-30T18:35:04.463732 | 2021-02-12T05:59:01 | 2021-02-12T05:59:01 | 219,366,357 | 3 | 2 | null | 2020-11-12T04:34:16 | 2019-11-03T21:13:49 | Jupyter Notebook | UTF-8 | Python | false | false | 1,656 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Jan 10 12:50:41 2020
gridChallenge
Given a square grid of characters in the range ascii[a-z], rearrange elements of each row alphabetically, ascending. Determine if the columns are also in ascending alphabetical order, top to bottom. Return YES if they a... | [
"chengchen1215@gmail.com"
] | chengchen1215@gmail.com |
6c60eb36eeb0a4af34726a6095e3e87304254470 | e7300321d37036463fabb4e959d4b22389d3bca8 | /snmpresponder/macro.py | 7c793889037ca6b6e33d4d54f07f1dcf729e02c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | etingof/snmpresponder | e9b3d3ad4ff06be599f6984a280692dda389fa99 | 6e69f6168b0993cbc36e83cb44245c8776f7427a | refs/heads/master | 2023-03-27T16:56:02.021452 | 2019-12-15T18:23:27 | 2019-12-15T18:23:27 | 164,206,184 | 7 | 2 | BSD-2-Clause | 2019-01-30T22:49:07 | 2019-01-05T10:50:45 | Python | UTF-8 | Python | false | false | 544 | py | #
# This file is part of snmpresponder software.
#
# Copyright (c) 2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/snmpresponder/license.html
#
def expandMacro(option, context):
for k in context:
pat = '${%s}' % k
if option and '${' in option:
option = option.repl... | [
"etingof@gmail.com"
] | etingof@gmail.com |
9befa19f962e8ba4171f6cb4701bc4fcf00e3c6f | fc27e1e21ad4891b1d4e769170671da1a4d32ed2 | /aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/CreateCenRequest.py | fb1574c13c4f51a6a4ae5ea1896c4783115ff5c7 | [
"Apache-2.0"
] | permissive | yonzhan2/aliyun-openapi-python-sdk | 3d05f7e83aeb286ad553a6a36c42ce932a1ece3e | e64873f9b528e1a83e3ea27d583f3f7998e7650b | refs/heads/master | 2020-04-11T10:22:48.511973 | 2018-12-13T09:29:21 | 2018-12-13T09:29:21 | 161,712,443 | 1 | 0 | null | 2018-12-14T00:52:39 | 2018-12-14T00:52:39 | null | UTF-8 | Python | false | false | 2,226 | 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... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
ee77ce284052c960131e82d10421401c2060f43e | 594f60b6a536b831d0df38abea7f0ffc0a2fd3cb | /utils/caller_var_name.py | 3ef1f66a6d0fe81c11dad3400acbaf9a1f8b60a5 | [] | no_license | mh70cz/py | 1478439fe939076cca3a30be2f2d29fb4e8a3cd9 | 7fc23f2133624c787e1dd4856322d48251cc6f0e | refs/heads/master | 2022-08-12T06:08:30.720164 | 2022-08-08T23:16:19 | 2022-08-08T23:16:19 | 95,386,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | """ get the original variable name of a variable passed to a function """
# https://stackoverflow.com/questions/2749796/how-to-get-the-original-variable-name-of-variable-passed-to-a-function
# %%
import traceback
# %%
def get_arg_var_name(var):
stack = traceback.extract_stack()
filename, lineno, function_nam... | [
"mh70@mh70.cz"
] | mh70@mh70.cz |
c58a77cf8ea4664d61a385917b75010f625b5d7e | 0f1c6902dcd6c067a059b4d155d21a885da07a94 | /pre_commit/languages/docker_image.py | 980c6ef3376f6398379306c27f11b5ffa1688a16 | [
"MIT"
] | permissive | andrewhare/pre-commit | 618985e86df8c2db1dde912ca98d9d20137bddea | 1c641b1c28ecc1005f46fdc76db4bbb0f67c82ac | refs/heads/master | 2021-01-06T23:30:11.927884 | 2020-02-18T18:53:53 | 2020-02-18T18:53:53 | 241,513,355 | 0 | 0 | MIT | 2020-02-19T02:20:45 | 2020-02-19T02:20:44 | null | UTF-8 | Python | false | false | 667 | py | from typing import Sequence
from typing import Tuple
from pre_commit.hook import Hook
from pre_commit.languages import helpers
from pre_commit.languages.docker import assert_docker_available
from pre_commit.languages.docker import docker_cmd
ENVIRONMENT_DIR = None
get_default_version = helpers.basic_get_default_versi... | [
"asottile@umich.edu"
] | asottile@umich.edu |
4149bd0580c1c224bd8b0ae991d8f5da06923ea1 | 3123d95637dd6628e7cc58ec1711c965b8aa911c | /dataset_clustering/dataset_clustering/sample_map.py | bd65f8ddc77fe62f2d7ba26b1827233ef81e24f3 | [] | no_license | ConorFWild/pandda_2_tools | d9e27e33d231982dfaf09644a81a0259df332762 | 9b95c3005153a3ae8ba2bcffc699a07a139ca6df | refs/heads/master | 2021-05-24T11:52:30.107356 | 2020-04-06T16:01:28 | 2020-04-06T16:01:28 | 253,547,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,020 | py | import numpy as np
import mdc3
from mdc3.types.real_space import interpolate_uniform_grid
class Sampler:
def __init__(self, xmap,
alignment_moving_to_ref,
res_centre_coords,
grid_params=[20, 20, 20],
offset=[10, 10, 10],
):
... | [
"conor.wild@sky.com"
] | conor.wild@sky.com |
673dd580d8d3ff7e098704d6b2d67bf18eb392a0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03128/s516473124.py | 57bfe64ffea6df0a31f4b06a5dc26e6f1fbefec3 | [] | 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 | 853 | py | # ABC 118 D
def resolve():
N, M = map(int, input().split())
A = list(map(int, input().split()))
A.sort(reverse=True)
costs = [0, 2, 5, 5, 4, 5, 6, 3, 7, 6]
dp = [-1] * (N+1)
dp[0] = 0
for i in range(1, N+1):
for a in A:
if i - costs[a] < 0:
continue
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c1eb625c0c3ac788a3bdba3802974dba9f5a8fec | 149baa65329d0e13ae3189b8127d2eff5f5fdf77 | /bot_ws/devel/lib/python2.7/dist-packages/rbt_baxter_msgs/msg/_AssemblyStates.py | a9e882da171b4221de92892bbf8f8e1754454571 | [] | no_license | mtbthebest/imitation_learning | 20b990aa7396fecbe5433c7703f353bf99fa5f2c | 4c08192e31062f69056cc36efffb7a2ce0264244 | refs/heads/master | 2020-05-21T17:05:26.567273 | 2019-09-16T12:20:19 | 2019-09-16T12:20:19 | 186,111,790 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,949 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from rbt_baxter_msgs/AssemblyStates.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import rbt_baxter_msgs.msg
class AssemblyStates(genpy.Message):
_md5sum = "63427318d... | [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
befdbf9d49ecbacc576d8f26b2fa4fffff3aa151 | 82f36fc7f70a63499c9c29d031dc7b07a4e4ab88 | /vi/mappings.py | 9ba29b7af38016b203d195ebaede821278469584 | [
"MIT"
] | permissive | theicfire/Vintageous | f89ca1463b452c6a53eb1bd26595149a23359197 | 43cf37ac2cc2494f6f73102e4157442b5ae56925 | refs/heads/master | 2021-01-17T22:54:34.991987 | 2015-01-23T18:45:44 | 2015-01-23T18:45:44 | 18,224,457 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,431 | py | from Vintageous.vi import utils
from Vintageous.vi.keys import mappings
from Vintageous.vi.keys import seq_to_command
from Vintageous.vi.keys import to_bare_command_name
from Vintageous.vi.keys import KeySequenceTokenizer
from Vintageous.vi.utils import modes
from Vintageous.vi.cmd_base import cmd_types
from Vin... | [
"guillermo.lopez@outlook.com"
] | guillermo.lopez@outlook.com |
67f6d7067c52342313b9cecb20a8d9484514d1d9 | 3ffeeae8a9a3245d8998d94aa08f680f00056cad | /669.修剪二叉搜索树.py | 1ea81092b2bc054b50373284e38fc7407cf9e7ad | [] | no_license | Ezi4Zy/leetcode | 6e293e5c07a7d8c3e38f9445ff24330134ef6c48 | 9d394cd2862703cfb7a7b505b35deda7450a692e | refs/heads/master | 2022-04-09T14:11:36.957861 | 2022-03-09T10:30:30 | 2022-03-09T10:30:30 | 57,290,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #
# @lc app=leetcode.cn id=669 lang=python
#
# [669] 修剪二叉搜索树
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def trimBST... | [
"Ezi4zy@163.com"
] | Ezi4zy@163.com |
daa21c4b97b6966cef4a6950ad18f755e47dd0be | 8f6c9203b260d832860aa6e434ab668e170cfb1d | /test/conftest.py | e855b32ee851a344a6029c086ad23319e6cab159 | [
"Apache-2.0",
"FSFAP",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | igalic/mod_md | 66ad0938d4ca71f995f61a7d487ce5ade0d8c5cc | 105fca1a8a87c46c105cb9b38d13f998318c1db2 | refs/heads/master | 2023-08-15T11:01:24.290650 | 2021-10-19T12:27:17 | 2021-10-19T12:27:17 | 419,234,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,118 | py | import logging
import os
import time
from datetime import timedelta
import pytest
from md_certs import CertificateSpec, MDTestCA
from md_conf import HttpdConf
from md_env import MDTestEnv
from md_acme import MDPebbleRunner, MDBoulderRunner
def pytest_report_header(config, startdir):
env = MDTestEnv()
return... | [
"stefan.eissing@greenbytes.de"
] | stefan.eissing@greenbytes.de |
db2aa6414dc0fb9d7936579b117bce3f7587c9cc | ef4749b76a1dbb79e664c8fe1c3a13c6197c1557 | /seleniumbase/fixtures/constants.py | 37a036def8261360cebd61de644111f9964dfc17 | [
"MIT"
] | permissive | PrabhuLoganathan/Python-SeleniumBase | 78f493ad4433c33b9e3171036b9edf1f1c2fd336 | 86fc61ad083b6dd5c7cce18b7ecfb87f73f16f56 | refs/heads/master | 2021-09-02T03:27:20.327020 | 2017-12-24T23:40:42 | 2017-12-24T23:40:42 | 115,760,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | """
This class containts some frequently-used constants
"""
class Environment:
QA = "qa"
STAGING = "staging"
PRODUCTION = "production"
MASTER = "master"
LOCAL = "local"
TEST = "test"
class Files:
DOWNLOADS_FOLDER = "downloaded_files"
ARCHIVED_DOWNLOADS_FOLDER = "archived_files"
cla... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
b2d7423066c6259571568c9d3141fefe06959f0d | cf06fdf4fada6a39c661b890c184d2a3dea9d23f | /programs/pgm0A_12.py | 88945b331e21e4f0f5437ce6c44e593feda16b48 | [
"Apache-2.0"
] | permissive | danielsunzhongyuan/python_practice | f11d582c2147ad3d07ace1b31e6d7ace1da31e7c | 79bc88db1c52ee2f5607f6f9fec1bbacea2804ff | refs/heads/master | 2021-01-25T13:12:07.950283 | 2019-06-12T09:36:02 | 2019-06-12T09:36:02 | 123,542,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | #
# This file contains the Python code from Program A.12 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm0A_12.txt
#
class Rectangle(... | [
"sunzhongyuan@lvwan.com"
] | sunzhongyuan@lvwan.com |
27024f2ab6b8e5c801b2575bf0e11ff404c9d1a7 | 8457291a531a08e6249c674f6b4943388d110f77 | /程序员面试经典/面试题 16.01. 交换数字 .py | a2f484604c3ee24053fd93149faa8f6601c014d8 | [
"Apache-2.0"
] | permissive | oscarhscc/algorithm-with-python | e190511844aaeacff14381000e371945f74aba14 | 2d67e2da11045199b9ab6c0b2f01e239255196ef | refs/heads/master | 2020-12-03T12:31:37.764545 | 2020-11-13T03:01:04 | 2020-11-13T03:01:04 | 231,317,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | '''
编写一个函数,不用临时变量,直接交换numbers = [a, b]中a与b的值。
示例:
输入: numbers = [1,2]
输出: [2,1]
提示:
numbers.length == 2
'''
class Solution(object):
def swapNumbers(self, numbers):
"""
:type numbers: List[int]
:rtype: List[int]
"""
numbers[0], numbers[1] = numbers[1], numbers[0]
r... | [
"noreply@github.com"
] | oscarhscc.noreply@github.com |
5c0f0d1e84727690497ad03f096246c4ec7d966e | 12fd778ef6756a3fcb6dc5fc2b59a0ba4a4cb911 | /aosd/downloader/update.py | 9eb2992674871673ee079c11be67eff8590bcf47 | [] | no_license | jevinskie/AOS-Downloader | ce66b024485d3a3eb05e89da8f7077cc96b49f2f | d956c8652f0a3caab3a56f441218b766b08e9130 | refs/heads/master | 2021-01-18T14:49:20.887713 | 2015-12-19T23:37:27 | 2015-12-19T23:37:27 | 57,457,504 | 1 | 0 | null | 2016-04-30T19:06:41 | 2016-04-30T19:06:41 | null | UTF-8 | Python | false | false | 1,151 | py | from ..helpers.logging_helper import logging_helper
import os
from .utilities import utilities
from .releases import releases
from .config import config
from .manager import manager
class update(object):
@classmethod
def fetch(cls):
logging_helper.getLogger().info('Updating package data...')
... | [
"me@samdmarshall.com"
] | me@samdmarshall.com |
e7a8ebdffb9c5478b1fc4030ede408f87828012e | 09fc5379e5ecafc66eee7eac5ba8cf51244c7aa9 | /min_max.py | a95e8b684a7360eda42ca80a1a91de96fbacd8cb | [] | no_license | aquibjamal/hackerrank_solutions | 8a9317afc3fc8c6b2f4d0542e5c979ad2c93f849 | bc27ea787743893c60d00c517ce133b6cea84942 | refs/heads/master | 2020-07-24T07:40:23.877863 | 2020-02-29T02:03:55 | 2020-02-29T02:03:55 | 207,850,323 | 0 | 0 | null | 2020-02-29T02:03:56 | 2019-09-11T15:50:47 | Python | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 12 02:21:03 2019
@author: aquib
"""
import numpy
N,M=map(int,input().split())
x=numpy.array([input().split() for _ in range(N)], int)
mn=numpy.min(x,1)
mx=numpy.max(mn)
print(mx)
| [
"noreply@github.com"
] | aquibjamal.noreply@github.com |
35607a345ddf69b06bdf279af5cf89bc391593ae | 46096a52c39cb6b32923e6a968a5538579e6d73b | /18nov20_tae.py | 9fad529a54004e123a2e73d140a7772b2d699b3d | [] | no_license | JoinNova/practice_py | 16671c4b91af77a492a089b1d7a48d029da91cf8 | 5fbd8ac0b5c46c68d2a84b7e35454982ae6d637a | refs/heads/master | 2020-04-16T18:19:02.709408 | 2019-01-15T08:35:23 | 2019-01-15T08:35:23 | 165,814,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from selenium import webdriver
from bs4 import BeautifulSoup
driver = webdriver.Chrome()
driver.implicitly_wait(3)
driver.get('http://www.google.com')
driver.find_element_by_xpath('//*[@id="tsf"]/div[2]/div[1]/div[1]/div/div[1]/input').click
driver.find_element_by_name('q').send_keys('제주 여행지')
driver.find_element_by_x... | [
"noreply@github.com"
] | JoinNova.noreply@github.com |
1ac32f1684de191dbb46b89dec66aee789ae73d8 | b7492b70e345e248f5562393ce4fe98e043ea1b9 | /data/config.py | c4c2e33bd25591173e8d4b7ae12282cf4b748bcd | [] | no_license | wobjtushisui/S3FD_pytorch | 3037176716d0b29d1f86f43da133614d451f619b | d5616dc1a08d11a670497b68a9a26cbd97adaed1 | refs/heads/master | 2020-12-29T05:04:08.873873 | 2019-11-18T09:13:56 | 2019-11-18T09:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | #-*- coding:utf-8 -*-
from __future__ import division
from __future__ import absolute_import
from __future__ import print_function
import os
from easydict import EasyDict
import numpy as np
_C = EasyDict()
cfg = _C
# data augument config
_C.expand_prob = 0.5
_C.expand_max_ratio = 4
_C.hue_prob = 0.5... | [
"jianzhnie@126.com"
] | jianzhnie@126.com |
4fe30dd6b39027cb6a61d01ba798443b17b266b1 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/sensibo/conftest.py | 48c9317a5cb1150d6d6a59e6b99082a44cd6f666 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 2,342 | py | """Fixtures for the Sensibo integration."""
from __future__ import annotations
import json
from typing import Any
from unittest.mock import patch
from pysensibo import SensiboClient
from pysensibo.model import SensiboData
import pytest
from homeassistant.components.sensibo.const import DOMAIN
from homeassistant.conf... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
e7e9f173951e4d55eb410c0db31bc9387a456169 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /uhd_restpy/testplatform/sessions/ixnetwork/topology/requestid_4bb823de2302ea46c48b53652c8059b5.py | 9127928006cf5c5a3d16daeb18104885ad73ebf9 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 1,793 | 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, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
b70ba83ab08390530f1a3a3b414fe878234a746f | e86e65380c81e2459c803a51719124faaf1ad660 | /theano_workspace/function.py | edc95a835248d2a70b12e6fda55ad8f5a54ee096 | [] | no_license | jaberg/theano_workspace | 83e79a45216a1a3e98521c823eef8cd698c714dd | 913e2d443cd23b2a4c746e7cd12d3a97947fee63 | refs/heads/master | 2021-01-20T11:59:51.899982 | 2013-05-03T05:49:48 | 2013-05-03T05:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # XXX COMPLETELY UNTESTED, DEFINITELY NOT FUNCTIONAL
class Function(object):
"""
Special case of Workspace for implementing a single callable expression
TODO: Provides support for structuring outputs as nested list, dict, etc.
"""
# XXX COMPLETELY UNTESTED
def __init__(self, ws, inputs, output... | [
"james.bergstra@gmail.com"
] | james.bergstra@gmail.com |
c70dbc1ca64f2452a61d661e32d7cec9f0a63094 | facf0d5a66ba0b762f4d74bb99e568a948a76bc3 | /chat/consumers.py | 416465a4185b0c805d5e81ad97db4b384f057649 | [] | no_license | KennyDaktyl/chat_ws | bddd9bb042a31a2a54d5ac0a916a13c87649e634 | 0dfd5c2dd3a3252635adff18b54a70d7e6c77b50 | refs/heads/main | 2023-03-06T20:35:18.035734 | 2021-02-19T12:57:59 | 2021-02-19T12:57:59 | 340,362,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,216 | py | # import json
# from asgiref.sync import async_to_sync
# from channels.generic.websocket import AsyncWebsocketConsumer
# from datetime import datetime
# from django.utils import timezone
# from .models import Message
# from django.conf import settings
# from account.models import Profile
# from django.contrib.auth imp... | [
"krakow@miktelgsm.pl"
] | krakow@miktelgsm.pl |
779879dc262374b487ad7cf2413495b8e0a213e6 | 63ce62eb08e54c0e1fc93787d23d30ed38a80d19 | /giveaways/urls.py | 5f529a455d759445a26dc5a21a77515ac9ca1487 | [] | no_license | prettyirrelevant/giveawayy | 597581fee7e4e8ab209014594c670660827661e4 | 81e345466ffe9887a262caa0b5fd23d95d620f53 | refs/heads/main | 2023-08-24T11:40:17.916940 | 2021-10-17T23:47:01 | 2021-10-17T23:47:01 | 408,027,551 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from django.urls import path
from . import views
app_name = "giveaways"
urlpatterns = [
path("giveaways/new/", views.CreateGiveawayView.as_view(), name="create-giveaway"),
path("giveaways/search/", views.SearchGiveawayView.as_view(), name="search-giveaway"),
path("giveaways/<slug>/", views.DisplayGiveaway... | [
"ienioladewumi@gmail.com"
] | ienioladewumi@gmail.com |
70a516f5a592ce86deea9bbd83cf59612cedb837 | 0869d7edac80e8aebe951682a2cc311a083eade3 | /Python/tdw/proc_gen/arrangements/side_table.py | 0b2ade721bc8dd0ff79ebba56f2188ac280ad961 | [
"BSD-2-Clause"
] | permissive | threedworld-mit/tdw | 7d5b4453832647733ff91ad7a7ce7ec2320454c1 | 9df96fba455b327bb360d8dd5886d8754046c690 | refs/heads/master | 2023-09-01T11:45:28.132298 | 2023-08-31T16:13:30 | 2023-08-31T16:13:30 | 245,492,977 | 427 | 75 | BSD-2-Clause | 2023-09-14T17:36:12 | 2020-03-06T18:42:09 | Python | UTF-8 | Python | false | false | 3,372 | py | from typing import List
from tdw.tdw_utils import TDWUtils
from tdw.cardinal_direction import CardinalDirection
from tdw.proc_gen.arrangements.arrangement_along_wall import ArrangementAlongWall
class SideTable(ArrangementAlongWall):
"""
A small side table with objects on it.
- The side table model is cho... | [
"alters@mit.edu"
] | alters@mit.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.