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
7873de2b4692d3ff9b1e48c09365bc144c04070e
53ba0b6f172abcade631ae1f52852c400302559e
/python_developer_tools/cv/bases/attentions/SimAM-master/mmdetection/configs/faster_rcnn/faster_rcnn_r101simam_fpn_1x_coco.py
4f303a3883c2031e6b27de79add6502d76aa9e6a
[ "Apache-2.0" ]
permissive
sssssshf/python_developer_tools
f97c64ee0aa0a7e9d31d173192805771c83abb7f
44d2e67a2e2495a12d6b32da12c76cf0010ac7ea
refs/heads/main
2023-08-19T02:44:53.536200
2021-10-13T02:10:19
2021-10-13T02:10:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
_base_ = './faster_rcnn_r50simam_fpn_1x_coco.py' model = dict(pretrained='checkpoints/simam-net/resnet101.pth.tar', backbone=dict(depth=101))
[ "zengxh@chint.com" ]
zengxh@chint.com
0e4a97c2bc6c7e6c2cfcd660c9c7457f9b9f3029
59fcc364f9a07aa7047824c66645ee406ea8aed4
/tagger.py
ae7402a3284fee0e57f476bcedde92de0efcffb7
[]
no_license
vaastav/VA102
b8f1db3802320c9fd1c83788c0d0b027072439bf
78137946a0325155f7a7cc26b894e79f66c97a00
refs/heads/master
2016-08-08T23:47:33.815551
2016-03-27T02:22:00
2016-03-28T01:36:00
47,371,404
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
from nltk.tokenize import word_tokenize from nltk.tag import pos_tag, map_tag import nltk import csv keywordTags = ['ADJ','ADV','NOUN','NUM','VERB'] def isKeywordTag(tag): return tag in keywordTags def find_keywords(review): text = word_tokenize(review.decode("utf8")) tagged_review = pos_tag(text) simplified_tag...
[ "vaastav.anand05@gmail.com" ]
vaastav.anand05@gmail.com
94f8efdcedc3b47468b0d18a9b274757ad8ba2c1
e638e9fda0e672fa9a414515d0c05a24ab55ad38
/GroupAnagrams.py
233b7f261dff5493b1a06428b1859c3ffd2a8664
[]
no_license
zjuzpz/Algorithms
8d1c7d50429aa5540eb817dc5495a20fc3f11125
2df1a58aa9474f2ecec2ee7c45ebf12466181391
refs/heads/master
2021-01-21T05:55:48.768728
2020-08-04T22:44:08
2020-08-04T22:44:08
44,586,024
2
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
""" 49. Group Anagrams Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: [ ["ate", "eat","tea"], ["nat","tan"], ["bat"] ] Note: For the return value, each inner list's elements must follow the lexicographic order. All inputs will be in l...
[ "zjuzpz@gmail.com" ]
zjuzpz@gmail.com
37f5c70ea8454936494a75f8f31143cebca074ab
b9e295b2ee933d134d0526445eac9ac022e39dde
/contentcuration/contentcuration/utils/sentry.py
aaa3dc10a3b7863e4b023b7159f5b0e8a9509249
[ "MIT" ]
permissive
ivanistheone/studio
b40fb9ab70e8f23e87013985470a8e44df30fe61
47605c51a0b806e580013b2b733f5bf68688aa59
refs/heads/develop
2021-06-04T01:35:05.589507
2020-12-09T00:03:40
2020-12-09T00:03:40
88,676,886
0
2
MIT
2019-04-10T04:43:10
2017-04-18T22:44:48
Python
UTF-8
Python
false
false
210
py
from django.conf import settings def report_exception(exception=None): if getattr(settings, "SENTRY_ACTIVE", False): from sentry_sdk import capture_exception capture_exception(exception)
[ "richard@learningequality.org" ]
richard@learningequality.org
12b14afbdcc78dddb3e1859f8bb22e7a1a08fb43
2d4af29250dca8c72b74e190e74d92f1467120a0
/TaobaoSdk/Response/TradeContactGetResponse.py
fc57445cfc9a3544b5dffda3880e500cfa7b950f
[]
no_license
maimiaolmc/TaobaoOpenPythonSDK
2c671be93c40cf487c0d7d644479ba7e1043004c
d349aa8ed6229ce6d76a09f279a0896a0f8075b3
refs/heads/master
2020-04-06T03:52:46.585927
2014-06-09T08:58:27
2014-06-09T08:58:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,132
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 通过交易号获取单笔订单的联系信息 # @author wuliang@maimiaotech.com # @date 2013-09-22 16:52:43 # @version: 0.0.0 from datetime import datetime import os import sys import time _jsonEnode = None try: import demjson _jsonEnode = demjson.e...
[ "chenke@maimiaotech.com" ]
chenke@maimiaotech.com
bc2651b0aa33406897aec6872ca646ab3015a056
ebe6a5bf993c80c9d3d55e275c1b8a23c456c83b
/abcclassroom/notebook.py
aad12aa764d5faec3f06dfca2f379ae0eb6d50f2
[ "BSD-3-Clause" ]
permissive
betatim/grading-workflow-experiments
fd5d2ec7ea23e460d26644c242034ff11c78a59a
b38742547a43f376724fee1e04e540688b1f5019
refs/heads/master
2020-03-23T22:15:47.125374
2018-12-20T23:04:37
2018-12-20T23:04:37
142,164,781
0
0
null
2018-07-24T13:47:45
2018-07-24T13:47:44
null
UTF-8
Python
false
false
3,333
py
import ast import os import nbformat import papermill as pm from nbclean import NotebookCleaner from .utils import chdir try: from IPython.core.inputsplitter import IPythonInputSplitter except ImportError: raise ImportError('IPython needs to be installed for notebook grading') def split_notebook(notebook...
[ "betatim@gmail.com" ]
betatim@gmail.com
8c4d5fd485c84b3512ba5be24c00b3af11158b39
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/costmanagement/azure-mgmt-costmanagement/generated_samples/generate_cost_details_report_by_subscription_and_time_period.py
fa959fac431751278f479b18f052ba906ad83b60
[ "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,723
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
c664c730762bad69858a72e5f797d0714ba2e6da
f52997ac7e1b41f34018c3a0028ced8638072b2b
/src/extended_search/backends/backend.py
aed89d730ad7c0b675eb42d9352b4874e2ed0828
[ "MIT" ]
permissive
uktrade/digital-workspace-v2
49fae1fca819b625c6f6949fb5ce51b89fbcab96
7e328d0d55c9aa73be61f476823a743d96e792d0
refs/heads/main
2023-09-03T12:03:47.016608
2023-09-01T12:07:55
2023-09-01T12:07:55
232,302,840
6
0
MIT
2023-09-13T15:50:24
2020-01-07T10:41:18
Python
UTF-8
Python
false
false
7,967
py
from wagtail.search.backends.elasticsearch7 import ( Elasticsearch7SearchBackend, Elasticsearch7SearchQueryCompiler, ) from wagtail.search.index import SearchField from wagtail.search.query import MATCH_NONE, Fuzzy, MatchAll, Phrase, PlainText from extended_search.backends.query import Nested, OnlyFields from ...
[ "noreply@github.com" ]
uktrade.noreply@github.com
b6e028147abb5f242c4fbbc9df615e138999ea5a
bba618de189d579c1cc6026a94e0734dc8b89330
/data/data_cluster.py
13df72e75b0e45451decf75fcde1cc7b5f5b0011
[]
no_license
Tetuwo181/KMeans
9f9ab5b04a6d1d730f8db5a40ab99284e82ec444
7fbf62665af79e58df5e8d5bc882ded59f39938a
refs/heads/master
2020-03-28T17:22:03.748501
2018-09-14T12:02:43
2018-09-14T12:02:43
148,782,168
0
0
null
null
null
null
UTF-8
Python
false
false
2,581
py
import numpy as np from typing import Union from typing import Tuple from typing import Optional from typing import Callable from typing import List Position = Union[np.ndarray, Tuple] class AbsData(object): """ データを格納するクラスのベース """ def __init__(self, position: Position): """ :param p...
[ "hamakaze181and189amarube@gmail.com" ]
hamakaze181and189amarube@gmail.com
d0202a7b6d83f2e2b9581177ccc335588b29f1e4
7d1fec7f929c0d80707a8f46a5379abecb513ad8
/crab_horizon_movement.py
a3e02b8fbcc5d67816798a218ddb17d6fbd70beb
[]
no_license
francescofilippini6/Sky_Coverage
4cacdc8f2963d16c61c315772f311e6cc1f12e63
963d0fe18332eb6d0093c36402371b5f74655e82
refs/heads/main
2023-03-11T19:25:49.347341
2021-02-26T08:40:43
2021-02-26T08:40:43
326,218,835
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
import math as m import numpy as np import csv import matplotlib.pyplot as plt import pandas as pd import astropy.coordinates as coord import astropy.units as u from astropy.io import ascii from astropy.coordinates import SkyCoord from astropy.coordinates import SkyCoord, EarthLocation from astropy import coordinates ...
[ "francesco.filippini3@gmail.com" ]
francesco.filippini3@gmail.com
db85707e1b42d9a5d515def686085645078f4212
88be4d5657d19462eb1d74d2d4d98180b423a889
/examples/rl_algos/ddpg/navigation2d_ddpg.py
cf57cc4a5f8d64c938f96c2f197acc556877cb65
[ "BSD-3-Clause" ]
permissive
domingoesteban/robolearn
bc58278fe38894f4ca9ec9e657ee13a479a368b7
0d20125425c352b80ef2eeed1c0b11ab6497b11a
refs/heads/master
2020-04-15T22:38:25.343229
2019-01-29T17:01:42
2019-01-29T17:01:42
165,080,647
1
1
null
null
null
null
UTF-8
Python
false
false
8,299
py
""" Run PyTorch DDPG on Navigation2dGoalCompoEnv. NOTE: You need PyTorch 0.4 """ import os from shutil import copyfile import numpy as np import robolearn.torch.utils.pytorch_util as ptu from robolearn.envs.normalized_box_env import NormalizedBoxEnv from robolearn.utils.launchers.launcher_util import setup_logger fr...
[ "domingo.esteban@iit.it" ]
domingo.esteban@iit.it
7dc858864385ecf5b62f08496f7d9b930736c366
85a9ffeccb64f6159adbd164ff98edf4ac315e33
/pysnmp-with-texts/CTRON-ISDN-CONFIGURATION-MIB.py
7a10208ea9156417294792de483c0c6eef1ba9cf
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-unknown-license-reference" ]
permissive
agustinhenze/mibs.snmplabs.com
5d7d5d4da84424c5f5a1ed2752f5043ae00019fb
1fc5c07860542b89212f4c8ab807057d9a9206c7
refs/heads/master
2020-12-26T12:41:41.132395
2019-08-16T15:51:41
2019-08-16T15:53:57
237,512,469
0
0
Apache-2.0
2020-01-31T20:41:36
2020-01-31T20:41:35
null
UTF-8
Python
false
false
32,939
py
# # PySNMP MIB module CTRON-ISDN-CONFIGURATION-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CTRON-ISDN-CONFIGURATION-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:30:18 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python vers...
[ "dcwangmit01@gmail.com" ]
dcwangmit01@gmail.com
6a342b5c99bf52551cdf9a41ee3935805787d9f3
c1a9da6e041c406edaf419338b46d497071a21f2
/todo/migrations/0003_alter_todo_is_completed.py
58f741a4001e33e16bf101448afed67c4baa85fc
[]
no_license
alex1the1great/learn-todo
a0016b89cebb8c35aaac2e9872be7cee33f99bb8
e2faa1edaac7d450999c7aacb0f335bf40665e89
refs/heads/master
2023-04-20T21:47:23.012887
2021-05-05T13:08:51
2021-05-05T13:08:51
364,278,364
0
1
null
null
null
null
UTF-8
Python
false
false
395
py
# Generated by Django 3.2.1 on 2021-05-05 06:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('todo', '0002_alter_todo_is_completed'), ] operations = [ migrations.AlterField( model_name='todo', name='is_complete...
[ "asimshrestha608@gmail.com" ]
asimshrestha608@gmail.com
503af0c00b4c87db9c91146e7317d4a5a7510834
32c56293475f49c6dd1b0f1334756b5ad8763da9
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/file/v1/file_v1_messages.py
8e519351b2083ba1185d933a75c06f86cb5cca03
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT" ]
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
48,735
py
"""Generated message classes for file version v1. The Cloud Filestore API is used for creating and managing cloud file servers. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding from apitools.base...
[ "jonathang132298@gmail.com" ]
jonathang132298@gmail.com
0691055f7a51776cd005a7d77e800bd1f20c2a0e
a3a3183bc3ae9d3d4bad2f4923e8297bce0ff7d3
/final/python3.5-3.5.2/Lib/test/test_asyncio/test_base_events.py
206ebc69fe4476a81a9bde84c517afde45f5d9e3
[ "Python-2.0" ]
permissive
Nuitka/Nuitka-references
4b78831e6947f1c4b32ef034435a88ecfd27f701
f20d1b5728ec00cf8a5b23d650101c288b2594e9
refs/heads/main
2023-08-06T19:12:11.795836
2023-08-03T14:54:16
2023-08-03T14:55:22
169,884,560
2
1
null
null
null
null
UTF-8
Python
false
false
61,721
py
"""Tests for base_events.py""" import errno import logging import math import os import socket import sys import threading import time import unittest from unittest import mock import asyncio from asyncio import base_events from asyncio import constants from asyncio import test_utils try: from test import support...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
ef06ee1a907c60dea3b5c90465285f9435c942f6
2f5d5149c064dfd18c0456db4326eca8b3cdb843
/pqmf.py
871405affaee1a846645216bf7716d9611fd1e26
[ "MIT" ]
permissive
BridgetteSong/multiband-hifigan
a201cebc29d8d7b0d166303e824aca9651134cff
718a8117211ceb735c8916cfae8662a68dad8876
refs/heads/master
2023-03-11T14:59:26.101235
2021-03-02T11:44:52
2021-03-02T11:44:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,832
py
import numpy as np import torch import torch.nn.functional as F from scipy import signal as sig # adapted from # https://github.com/kan-bayashi/ParallelWaveGAN/tree/master/parallel_wavegan class PQMF(torch.nn.Module): def __init__(self, N=4, taps=62, cutoff=0.15, beta=9.0): super(PQMF, self).__init__() ...
[ "rishikksh20@gmail.com" ]
rishikksh20@gmail.com
337f9585cdba8cf63f1a66aea1d6f63fc308bb21
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/actrl/rulehitparthist1h.py
b44a8ec368fbf77dd7ca080e705c28b55f70581d
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
34,306
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "rrishike@cisco.com" ]
rrishike@cisco.com
7a48086a1a8ce564a8b688393160f9619cc2d920
bfb6ccbcb2707bca5eb44f2b64c0084aa6561b5a
/docs/examples/textbook/stellar_minimal.py
0eb338ca801befefe4cf1b76f358451e7f1a3879
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
cgroeneveld/amuse
79c8ece558f484df4494609e95274cffd5c37c60
9684fd22ce8293b837d2c78f56948e3ec3d04032
refs/heads/master
2020-08-16T16:44:46.702465
2019-10-14T19:16:04
2019-10-14T19:16:04
215,526,071
0
0
Apache-2.0
2019-10-16T10:57:34
2019-10-16T10:57:34
null
UTF-8
Python
false
false
1,591
py
""" Minimal routine for running a stellar evolution code """ ###BOOKLISTSTART### from amuse.lab import * def main(m, z, model_time): stellar = MESA() stellar.parameters.metallicity = z stellar.particles.add_particle(Particle(mass=m)) initial_luminosity = stellar.particles.luminosity dt = 1 | u...
[ "steven@rieder.nl" ]
steven@rieder.nl
52fc3c13de1c7ab9d2f4226fda0f15568c18f21f
b7d01719eb6d5c504747674227df3410b22f75fa
/scripts/ibm/get_activation.py
aa337733f12853b6f6b01afe8d12ac631e6c42f4
[]
no_license
lee212/FaaS-Evaluation
c16c0d5b16ae8ac5d45d6cf6638ba60e712094b1
38876242553d0bf36e262e91da244fd1bdd55121
refs/heads/master
2021-09-23T02:36:41.500656
2018-09-20T01:41:18
2018-09-20T01:41:18
103,572,487
0
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
import sys import json import requests import os import argparse url = 'https://openwhisk.ng.bluemix.net/api/v1/namespaces/_/activations/' auth_string = os.environ['IBM_OPENWHISK_AUTH_STRING'] def argument_parser(): parser = argparse.ArgumentParser("IBM OpenWhisk Activation Results") parser.add_argument("fnam...
[ "hroe.lee@gmail.com" ]
hroe.lee@gmail.com
3da489896f1d4b8481f999e4ab87ffaca902aa69
dfc2c18053b8e7576f88e7b2524d7ca3a8f47282
/ch09/session4/21.py
22f613217b0cbb380b591a0d5e7f7acd6804e7a8
[]
no_license
Xoozi/tchomework
a6eed3bbf697ff12af8d42249ec58a139aed0c4c
627c98b0b652ef20fd93025a17341bba76fbfce6
refs/heads/master
2021-01-23T21:18:15.793703
2018-10-21T11:05:55
2018-10-21T11:05:55
57,583,655
1
2
null
null
null
null
UTF-8
Python
false
false
448
py
#燃烧的箭 #例3中的火炬台直径12英尺. 用方程5和例3c, 求燃烧的箭通过边沿之间的水平距离需要多长时间 #箭在边沿上方时有多高 #由例3c v0 cos α = 90*32/sqrt(68*64) #半程时间为t/2 #期间竖直方向位移为-g(t/2)² v0h = 90.0*32.0/sqrt(68.0*64) t = 12.0/v0h g = 32.15 h = 74-g*(t/2.0)**2 print 't:%f, h:%f' % (t, h) #xoozi 答案是通过时间1.9秒, 这绝对是错了, 我的答案合理
[ "wwfxtt@gmail.com" ]
wwfxtt@gmail.com
8809f892e839ecb6296a61b91988e02177d6fd1e
ef90992dc00640f42ec615075a9b030b771f81e4
/python-machine-learning/ch04/ch04-6/mushroom-download.py
cc4bf516b5258e4e5b4c8be4642807012331b96c
[]
no_license
korea7030/pythonwork
88f5e67b33e9143eb40f6c10311a29e08317b77e
70741acb0477c9348ad3f1ea07a183dda82a5402
refs/heads/master
2023-01-08T01:47:15.141471
2020-09-09T13:28:20
2020-09-09T13:28:20
54,378,053
0
0
null
2022-12-26T20:25:43
2016-03-21T10:00:07
Jupyter Notebook
UTF-8
Python
false
false
523
py
# -*- coding: utf-8 -*- import urllib.request as req local = "mushroom.csv" url = "https://archive.ics.uci.edu/ml/machine-learning-databases/mushroom/agaricus-lepiota.data" req.urlretrieve(url, local) print("ok") """ 첫번째 열 : 독의 유무(독: p / 식용 : e) 두번째 열 : 버섯머리모양(벨 : b / 혹 : k / 오목 : s/ 평평한 : f) 네번째 열 : 머리색(갈색 : n / 황갈색 ...
[ "korea7030@naver.com" ]
korea7030@naver.com
f1c1c9c0f8af90cec5c9def77c68d395a9021266
3e54ca2ad9146c1eaeee8a2497483187d660289c
/Python/dict05.py
6b74a88786ac65d9efdba980ff5b74049c7e199a
[]
no_license
ParvathyGS/My-learnings
438e096dc45d73ac5808a7b77316317dd90942ec
653dac3dc3b46803ab89f07b7c14435f15b3164f
refs/heads/master
2023-01-13T02:53:58.223103
2020-08-09T08:09:08
2020-08-09T08:09:08
227,995,341
0
1
null
2023-01-07T20:48:22
2019-12-14T09:09:53
HTML
UTF-8
Python
false
false
82
py
x = ('key1', 'key2', 'key3') #y = 0 thisdict = dict.fromkeys(x) print(thisdict)
[ "gsparvathy1989@gmail.com" ]
gsparvathy1989@gmail.com
17fec2fc6f5b0c5fd1cd55adb95430ecf92baa2a
9f6ca792f8ef4fac137ddab6b5af3ae4629759d8
/realize_bj_2941.py
18991a5526a58b5a875b70f7f4f0e667d86f1cdf
[]
no_license
pjhq2/Baekjoon
d01374eca0fc0b4d68d2209fc57d83db3349c89c
921822f0cdaca1456f167d271c9efe84ddee2bd4
refs/heads/main
2023-08-11T11:48:30.364066
2021-09-22T12:43:07
2021-09-22T12:43:07
386,900,253
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
word = input() cro = ['c=', 'c-', 'dz=', 'd-', 'lj', 'nj', 's=', 'z='] result = len(word) for c in cro: result -= word.count(c) print(result)
[ "pkonu7@gmail.com" ]
pkonu7@gmail.com
c9aa4f532ea1ce1fd202c31db44912e2f536d887
b3e147ac438246d60644725fa93c16c9bae7fa7e
/Django Social Authentication/msg/communities/migrations/0001_initial.py
deadef4e706daa8a0473ca511f741db8917598ed
[]
no_license
Ehsan-Molavi/teamtreehouse
c55180b3d8eac8c18c03f335056fae1088c769e4
cbe90b2eff0708e4c95a6909d7edec494ddd9615
refs/heads/master
2020-09-09T05:54:49.828487
2017-04-25T16:09:19
2017-04-25T16:09:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,824
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.9 on 2016-08-18 21:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ...
[ "brian@ubuntu.ubuntu-domain" ]
brian@ubuntu.ubuntu-domain
202f31bd6101c6c46f9d68cdc9939ee4c7eeb028
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_108/ch159_2020_04_29_20_03_29_896486.py
802b623ad51afbeffc4e2f040a58867cd5216d33
[]
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
110
py
import json with open("estoque.json","r") as arquivo: print([prod for prod in json.loads(arquivo.read())])
[ "you@example.com" ]
you@example.com
ad16a47079c9d48d939186dd69f791eb8776e562
eba3e4a3935d6422d1ed85aaf69337f5ba15fc74
/tg-build/WebApp/bbwi/bbwi/commands.py
bc1be16efe88e2d957500026b277c85035637373
[]
no_license
arianepaola/tg2jython
2ae74250ca43b021323ef0951a9763712c2eb3d6
971b9c3eb8ca941d1797bb4b458f275bdca5a2cb
refs/heads/master
2021-01-21T12:07:48.815690
2009-03-27T02:38:11
2009-03-27T02:38:11
160,242
1
0
null
null
null
null
UTF-8
Python
false
false
1,737
py
# -*- coding: utf-8 -*- """This module contains functions called from console script entry points.""" import sys from os import getcwd from os.path import dirname, exists, join import pkg_resources pkg_resources.require("TurboGears>=1.0.5") pkg_resources.require("SQLObject>=0.7.1") import cherrypy import...
[ "arianepaola@gmail.com" ]
arianepaola@gmail.com
7026e3a545655b602456d212833fb1d8827ea6eb
df7f13ec34591fe1ce2d9aeebd5fd183e012711a
/hata/discord/message/message/tests/test__validate_reactions.py
9cefa7864a1e54b584a1deb4686712a2d416e78a
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
HuyaneMatsu/hata
63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e
53f24fdb38459dc5a4fd04f11bdbfee8295b76a4
refs/heads/master
2023-08-20T15:58:09.343044
2023-08-20T13:09:03
2023-08-20T13:09:03
163,677,173
3
3
Apache-2.0
2019-12-18T03:46:12
2018-12-31T14:59:47
Python
UTF-8
Python
false
false
1,431
py
import vampytest from ....core import BUILTIN_EMOJIS from ....emoji import ReactionMapping from ....user import User from ..fields import validate_reactions def test__validate_reactions__0(): """ Tests whether ``validate_reactions`` works as intended. Case: passing. """ reactions = Reaction...
[ "re.ism.tm@gmail.com" ]
re.ism.tm@gmail.com
eca9d2184d08829e57c6e53dc200435a62c27dca
077c91b9d5cb1a6a724da47067483c622ce64be6
/fuzz_pyretic_mesh_proactive_firewall_no_close_check_loop_mcs_with_max_replays_5/interreplay_131_l_4/replay_config.py
81dd578b4a0ae58eed76c481e6a8fe40e4d236b9
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import Replayer from sts.simulation_state import SimulationConfig from sts.input_traces.input_logger import InputLogger simulation_config = SimulationConfig(controller_configs=[ControllerConfig(start_cmd='./pyre...
[ "cs@cs.berkeley.edu" ]
cs@cs.berkeley.edu
681d130884fa46cdcf49b775e65fe554d56cf5c8
b5d6219ac738ed05485439540f38d63d21694c51
/DAT/ED6_DT01/T2510.主楼 社会系教室.py
4942a79778d13311086f2c26ebe8eb5ad498883d
[]
no_license
otoboku/ED6-FC-Steam-CN
f87ffb2ff19f9272b986fa32a91bec360c21dffa
c40d9bc5aaea9446dda27e7b94470d91cb5558c5
refs/heads/master
2021-01-21T02:37:30.443986
2015-11-27T07:41:41
2015-11-27T07:41:41
46,975,651
1
0
null
2015-11-27T10:58:43
2015-11-27T10:58:42
null
UTF-8
Python
false
false
110,639
py
from ED6ScenarioHelper import * def main(): # 主楼 社会系教室 CreateScenaFile( FileName = 'T2510 ._SN', MapName = 'Ruan', Location = 'T2510.x', MapIndex = 1, MapDefaultBGM = "ed60014", Flags ...
[ "Hiromi.Kaede@gmail.com" ]
Hiromi.Kaede@gmail.com
13690714d2c28a995bb0fdc95c5e71261ffd971b
091a301b966f3141fc6020c754916ca1828216f9
/exercises/05_basic_scripts/task_5_1c.py
0f175b39c372c5c8c949a367a202937c462f389a
[]
no_license
netproglogic/pyneng-examples-exercises-en
f9d6a9b04873fc79ef6d3362844fb6464715cd3d
299676a575f1d97922d8e60e8773ad9ea0301ce5
refs/heads/main
2023-06-28T23:12:02.153433
2021-07-27T02:38:51
2021-07-27T02:38:51
389,825,380
0
0
null
2021-07-27T02:30:05
2021-07-27T02:30:04
null
UTF-8
Python
false
false
1,413
py
# -*- coding: utf-8 -*- """ Task 5.1c Copy and modify the script from task 5.1b so that when you request a parameter that is not in the device dictionary, the message 'There is no such parameter' is displayed. The assignment applies only to the parameters of the devices, not to the devices themselves. > Try typing a ...
[ "nataliya.samoylenko@gmail.com" ]
nataliya.samoylenko@gmail.com
35a312ce72be62ae3e48ff98179b21d0e9debdf3
425db5a849281d333e68c26a26678e7c8ce11b66
/LeetCodeSolutions/LeetCode_0159.py
84026e92728dd9d32811d5f23f0d556a9e0d1ec8
[ "MIT" ]
permissive
lih627/python-algorithm-templates
e8092b327a02506086414df41bbfb2af5d6b06dc
a61fd583e33a769b44ab758990625d3381793768
refs/heads/master
2021-07-23T17:10:43.814639
2021-01-21T17:14:55
2021-01-21T17:14:55
238,456,498
29
8
null
null
null
null
UTF-8
Python
false
false
681
py
class Solution: def lengthOfLongestSubstringTwoDistinct(self, s: str) -> int: ret, l, r = 0, 0, 0 cnt = dict() hash_set = set() while r < len(s): cs = s[r] # print(hash_set, cnt, l, r) if cs not in cnt: cnt[cs] = 1 else:...
[ "lih627@outlook.com" ]
lih627@outlook.com
bebca619b51381ed8388bff56f2aa99999713b2d
1515e55e6695bf6e385da86e489fddbbe64a667f
/Tree Based/617. Merge Two Binary Trees.py
f66b02c3bde3a1c74686589f056d8aa1764c7a0d
[]
no_license
Stella2019/leetcode_stella
f9d9789ef6815c05feb04587718fb528d1c0331d
253a5cc51394d3c15c64d398af5442ccc65ae7aa
refs/heads/master
2022-12-11T18:18:47.685881
2020-09-07T00:24:23
2020-09-07T00:24:23
293,383,967
1
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
""" 把两个树重叠,重叠部分求和,不重叠部分是两个树不空的节点 """ """ 题目大意 将两个二叉树进行merge操作。操作方式是把两个树进行重叠,如果重叠部分都有值,那么这个新节点是他们的值的和;如果重叠部分没有值,那么新的节点就是他们两个当中不为空的节点。 解题方法 递归 如果两个树都有节点的话就把两个相加,左右孩子为两者的左右孩子。 否则选不是空的节点当做子节点。 时间复杂度是O(N1+N2),空间复杂度O(N)。N = t1 的 t2交集。 """ class Solution: def mergeTrees(self, t1, t2): """ :type t1: Tre...
[ "noreply@github.com" ]
Stella2019.noreply@github.com
c515f19470336115e247a67213a7c931353d56b5
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-dns/huaweicloudsdkdns/v2/dns_client.py
86e64e5dcbcd762c38bfab5246a7c5b18639d697
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
99,284
py
# coding: utf-8 from __future__ import absolute_import import datetime import re import importlib import six from huaweicloudsdkcore.client import Client, ClientBuilder from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkcore.utils import http_utils from huaweicloudsdkcore.sdk_stream_request imp...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
8875cb041f81b6df9792c3edb27badd2bb779332
23ec6adce704bff40d04cd6fc0ba446375405b68
/firstBadVersion.py
f20f5f8d9fe87eb060c05515325ef8b18688ed84
[]
no_license
amoghrajesh/Coding
1845be9ea8df2d13d2a21ebef9ee6de750c8831d
a7dc41a4963f97dfb62ee4b1cab5ed80043cfdef
refs/heads/master
2023-08-31T10:10:48.948129
2023-08-30T15:04:02
2023-08-30T15:04:02
267,779,618
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
def bs(a,l,r,key): while l<r: m= l + (r-l)//2 if a[m]==key: r=m else: l=m+1 return l,a[l] a=[True,True,True,True,True,True,True,True,True,True,False,False,False,False,False,False] n=len(a) print(bs(a,0,n-1,False))
[ "amoghrajesh1999@gmail.com" ]
amoghrajesh1999@gmail.com
9c7d9f922f699e4c8a86df35403e79935cb104eb
4dcf1fe21a730b704a16e7991926510a43ba3f02
/google/cloud/security/privateca_v1beta1/types/resources.py
91f4ca29e8c6e26ede4c9292348dfe3066ddd280
[ "Apache-2.0" ]
permissive
Global19-atlassian-net/python-security-private-ca
9142f8cd0f4604b46714de0fb3c96777841f86c5
bbe17c13e7af03c68f933bc2405522f227c0522e
refs/heads/master
2022-12-21T02:12:53.951027
2020-10-02T22:36:02
2020-10-02T22:36:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
58,446
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 o...
[ "busunkim@google.com" ]
busunkim@google.com
3732d7628f4b49ef7cd4f940283873df9defe2b4
f0b741f24ccf8bfe9bd1950425d83b6291d21b10
/components/aws/sagemaker/workteam/src/sagemaker_workteam_spec.py
5b53cf8749125007f9bca1eb2cf8f0c92c1fadd4
[ "PSF-2.0", "LicenseRef-scancode-python-cwi", "GPL-1.0-or-later", "LicenseRef-scancode-proprietary-license", "MIT", "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-other-copyleft", "Unlicense", "Python-2.0", "Apache-2.0", "Li...
permissive
kubeflow/pipelines
e678342b8a325559dec0a6e1e484c525fdcc8ce8
3fb199658f68e7debf4906d9ce32a9a307e39243
refs/heads/master
2023-09-04T11:54:56.449867
2023-09-01T19:07:33
2023-09-01T19:12:27
133,100,880
3,434
1,675
Apache-2.0
2023-09-14T20:19:06
2018-05-12T00:31:47
Python
UTF-8
Python
false
false
3,485
py
"""Specification for the SageMaker workteam component.""" # 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" ]
kubeflow.noreply@github.com
78f8e900199661a6db3b3bf59925c91f5e739119
ebc00ddf4c8c5f5076471e8b8d56c2b634c51230
/test/functional/wallet_multiwallet.py
79e6ea8665ac6abc878f3b4bab25435d9008730a
[ "MIT" ]
permissive
BlockMechanic/rain
584a9e245cfb7ab5fb1add97b699b86833bfbc5b
e8818b75240ff9277b0d14d38769378f05d0b525
refs/heads/master
2021-07-03T03:48:53.977665
2021-03-04T01:28:20
2021-03-04T01:28:20
228,412,343
0
0
MIT
2019-12-16T15:03:28
2019-12-16T15:03:27
null
UTF-8
Python
false
false
17,250
py
#!/usr/bin/env python3 # Copyright (c) 2017-2019 The Rain Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test multiwallet. Verify that a raind node can load multiple wallet files """ import os import shutil imp...
[ "blockmecha@gmail.com" ]
blockmecha@gmail.com
1f73e465808ce7005cd026a05ec7c9f9142b53dc
4d1039cb53135c002dbee160c13e6a89bf57e57d
/main/migrations/0010_auto_20200901_1742.py
faacead814c375600d0625c3082f60b71c5ad347
[]
no_license
nova-sangeeth/drix-url
235c59c3692c294f84d94bb4bcd633bf20172aaf
1fe32b45397f853e406a3641a23bdd5bb128d346
refs/heads/master
2023-08-06T07:40:55.387540
2021-09-24T04:48:01
2021-09-24T04:48:01
275,612,983
0
0
null
2021-09-24T04:48:02
2020-06-28T15:25:46
HTML
UTF-8
Python
false
false
762
py
# Generated by Django 3.0.7 on 2020-09-01 17:42 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('main', '0009_user_create...
[ "novasangeeth@outlook.com" ]
novasangeeth@outlook.com
e17ffa077e98c9701b914e8fd82a3c615792b1f2
1e17d31c1e8e6db8e42b9c1358b1cbd7d58b1eb9
/examples/readme.py
d559b18c0a0c60d197f7baf168e4fce4fa9656c0
[ "MIT" ]
permissive
pedrogclp/MerossIot
69970526734b7b4762da888d1bcf09567ca8fd3f
5913704375a4a20e7626519dd05d20143001adaf
refs/heads/0.4.X.X
2023-05-27T22:56:48.291245
2021-03-27T10:16:21
2021-03-27T10:16:21
371,523,608
0
0
MIT
2021-05-27T22:58:37
2021-05-27T22:58:36
null
UTF-8
Python
false
false
1,214
py
import asyncio import os from meross_iot.http_api import MerossHttpClient from meross_iot.manager import MerossManager EMAIL = os.environ.get('MEROSS_EMAIL') or "YOUR_MEROSS_CLOUD_EMAIL" PASSWORD = os.environ.get('MEROSS_PASSWORD') or "YOUR_MEROSS_CLOUD_PASSWORD" async def main(): # Setup the HTTP client API fr...
[ "albertogeniola@gmail.com" ]
albertogeniola@gmail.com
2a9d0b5364557a152ab30182bfae2f7f02da9b62
9bbb00c09aaaa19565d3fb8091af568decb5820f
/3_Intro_To_Importing_Data_Python/1_Introduction_To_Flat_Files/7_Importing_with_Mixed_DataTypes.py
eb846cc9f26170ad1f3cd993191f6acb801e650f
[]
no_license
PeterL64/UCDDataAnalytics
4417fdeda9c64c2f350a5ba53b2a01b4bdc36fc7
d6ff568e966caf954323ecf641769b7c79ccb83a
refs/heads/master
2023-06-14T04:10:41.575025
2021-07-07T15:23:50
2021-07-07T15:23:50
349,780,719
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
# Importing with Mixed Data Types 2 # Similar to the np.genfromtxt() function there is another function, np.recfromcsv() for CSV files. # np.recfromcsv has some defaults, so you do not need to enter them. dtype=None, delimiter=',' and names=True # Assign the filename: file file = 'titanic.csv' # Import file using np...
[ "peterlyonscbar@gmail.com" ]
peterlyonscbar@gmail.com
881c471feea196f62aaf175c1faf4a7fcfe47c31
9a1e2f17f4a7677f07a2a062dcfa18659b2429a2
/models/adaCNN.py
b123316d7573a4896ed80ca6f8f330c4329e05be
[]
no_license
greentfrapp/cond-shift-neurons
4b3f78096a2adeba17b0af7b98a344be9f98ca39
7a8d14a6b3d736f5daf8c71d85022065fe5a0ac8
refs/heads/master
2020-03-21T16:01:41.857665
2018-07-08T06:35:01
2018-07-08T06:35:01
138,746,556
29
4
null
null
null
null
UTF-8
Python
false
false
8,194
py
""" models - adaCNN """ import tensorflow as tf import numpy as np from models.utils import BaseModel, MemoryValueModel # CNN used in adaCNN class adaCNNNet(object): def __init__(self, name, inputs, layers, output_dim, parent, is_training, csn): super(adaCNNNet, self).__init__() self.name = name self.inputs...
[ "limsweekiat@gmail.com" ]
limsweekiat@gmail.com
e04dffd49d4e6b770fadf40d765cf2c417a9b93a
6f255449d5790a1124ca56bec0e3dc457c1b3958
/quzzi/quiz-5/z5103095@unsw.edu.au.files/quiz_5.py
3e5b2471c2d36032c333902037e21a3206dfc3af
[]
no_license
tomtang110/comp9021
ac8995f3f558ffdfff7af76a08c67e208fe26aa4
6c9e6404f515a72bc94a185c1c98d5aba49266c8
refs/heads/master
2020-03-23T18:56:41.177586
2018-07-24T04:56:23
2018-07-24T04:56:23
141,943,053
4
1
null
null
null
null
UTF-8
Python
false
false
3,211
py
# Randomly fills a grid of size 10 x 10 with 0s and 1s and computes: # - the size of the largest homogenous region starting from the top left corner, # so the largest region consisting of connected cells all filled with 1s or # all filled with 0s, depending on the value stored in the top left corner; # - the size o...
[ "tomtang110@outlook.com" ]
tomtang110@outlook.com
38a5a0665f4b5838c1c02d622affa06df9ded96a
4191b25485148f003193d556a34b8d3cca2f2e27
/code_testing/visualization.py
893b8df97219af3de336af1efe0f42d194b0f4cf
[]
no_license
anilkunwar/FEA-Net
429b7077d3d4c3a5e8a5edde52c049f2a985b5e7
858d3e3aed8f851082ac6f95756f382118e97908
refs/heads/master
2022-03-17T03:01:59.483998
2019-12-01T17:42:11
2019-12-01T17:42:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
import matplotlib.pyplot as plt import numpy as np SMALL_SIZE = 8 MEDIUM_SIZE = 10 BIGGER_SIZE = 12 plt.rc('font', size=SMALL_SIZE) # controls default text sizes plt.rc('axes', titlesize=SMALL_SIZE) # fontsize of the axes title plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and y labels ...
[ "hope-yao@asu.edu" ]
hope-yao@asu.edu
a77a1d75e259fc62a385e27de488bc5836d93512
bc7d019d3c88cfb637fdcc15ec800ed6e7db565c
/voyage_prevu/migrations/0035_aeroport_port.py
ef2ac653179f3370811641731034e92a65b4d838
[]
no_license
Zaenma/paiement-django
dec9fca85b2cad0c62b7ec3fa416b34420dea31f
7dfb777425320daf5a165dcc36ec7c0df898aa34
refs/heads/master
2023-03-19T07:31:53.409214
2020-11-09T14:58:51
2020-11-09T14:58:51
311,372,216
1
0
null
null
null
null
UTF-8
Python
false
false
905
py
# Generated by Django 3.1.2 on 2020-11-06 18:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('voyage_prevu', '0034_auto_20201105_2023'), ] operations = [ migrations.CreateModel( name='Aeroport', fields=[ ...
[ "zaenma.halidisalim@gmail.com" ]
zaenma.halidisalim@gmail.com
784027b7fe592ac2a4ca726e8c9251121601027f
07306da5b68336715383a705f85f90aefeccfe96
/tests/test_stream_protocol.py
7f9a7d0ce1b20d3e43cd386f75a3f12224c7dcc2
[ "Apache-2.0" ]
permissive
datarobot/aiohttp
ebbb9e3c2af3c1b8a7fddc888195c09ad7ab55f9
19d95a5ad84cf1453b8091b9bd8640317831e15f
refs/heads/master
2021-05-13T17:29:51.844981
2018-06-12T15:24:36
2018-06-12T15:24:36
116,824,901
0
1
Apache-2.0
2018-06-12T15:32:02
2018-01-09T14:15:15
Python
UTF-8
Python
false
false
961
py
from unittest import mock from aiohttp import parsers def test_connection_made(loop): tr = mock.Mock() proto = parsers.StreamProtocol(loop=loop) assert proto.transport is None proto.connection_made(tr) assert proto.transport is tr def test_connection_lost(loop): proto = parsers.StreamProt...
[ "andrew.svetlov@gmail.com" ]
andrew.svetlov@gmail.com
03fef4d8423aa08251d98b642634ce53a2e4542a
607dc8df19fc5248f6289cdda97857b5d58ca16f
/smac/runner/__init__.py
4bda4cb5ebae36ef239b127e1fa675d9cb31b1b9
[ "BSD-3-Clause", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-unknown-license-reference" ]
permissive
automl/SMAC3
7dce243a33023c52d6819deff966f7b502e90ed0
541ee7e0383b491b86d1a23dcff669f2efad616d
refs/heads/main
2023-08-31T17:36:06.067579
2023-08-01T13:02:51
2023-08-01T13:02:51
65,900,469
943
259
NOASSERTION
2023-09-11T02:36:57
2016-08-17T10:58:05
Python
UTF-8
Python
false
false
472
py
from smac.runner.abstract_runner import AbstractRunner from smac.runner.dask_runner import DaskParallelRunner from smac.runner.exceptions import ( FirstRunCrashedException, TargetAlgorithmAbortException, ) from smac.runner.target_function_runner import TargetFunctionRunner __all__ = [ # Runner "Abstrac...
[ "noreply@github.com" ]
automl.noreply@github.com
beb4ebfba4d36ed804bf6dbd3b0fe7eb3512b978
1d61bf0b287533c9eb89bf71e217ead8cffb7811
/System/Tester/tester.py
1463da9e5ee33340fd14192bc1502171fc16b93f
[]
no_license
chukotka12/PP4E-GitHub
2f6bf5e431a211beb9e1b6aa56b495770f07e6e4
c9347ffa20f598b8c469082788a964549cd5df2b
refs/heads/master
2020-05-30T04:43:30.570872
2019-09-10T14:33:14
2019-09-10T14:33:14
189,545,845
0
0
null
null
null
null
UTF-8
Python
false
false
6,056
py
""" ############################################################################## Тестирует сценарии Python в каталоге, передает им аргументы командной строки, выполняет перенаправление stdin, перехватывает stdout, stderr и код завершения, чтобы определить наличие ошибок и отклонений от предыдущих результатов выполнен...
[ "chukreev.g@gmail.com" ]
chukreev.g@gmail.com
bab250c929a45a4303cf4458404b5564c91d3e7e
7374204324f6326663d12b3dd1fecc5bebb6854e
/offer/21.py
92c2b908ffa610098c7214b6d91323a1b69d4e39
[]
no_license
KevinChen1994/leetcode-algorithm
c18b58df398027078b0c0f468c4c873e9419433b
1bcf3206cd3acc428ec690cb883c612aaf708aac
refs/heads/master
2023-02-07T11:35:47.747207
2023-01-29T11:08:49
2023-01-29T11:08:49
230,386,123
2
0
null
null
null
null
UTF-8
Python
false
false
466
py
# !usr/bin/env python # -*- coding:utf-8 _*- # author:chenmeng # datetime:2020/8/27 22:54 class Solution: def exchange(self, nums): right = 0 for i in range(len(nums)): if nums[i] % 2 != 0: nums[i], nums[right] = nums[right], nums[i] right += 1 re...
[ "346521888@qq.com" ]
346521888@qq.com
72edb51cbaee18ff1b5ed216dfe4334d588619c4
7bf617f77a55d8ec23fa8156c1380b563a5ac7f6
/CG/SciPy/7900_08_04.py
347dafa320f3570a8b98232c11f7348e03708ca2
[]
no_license
anyatran/school
c06da0e08b148e3d93aec0e76329579bddaa85d5
24bcfd75f4a6fe9595d790808f8fca4f9bf6c7ec
refs/heads/master
2021-06-17T10:45:47.648361
2017-05-26T12:57:23
2017-05-26T12:57:23
92,509,148
1
1
null
null
null
null
UTF-8
Python
false
false
725
py
#!/usr/bin/python # select a non-GUI backend import matplotlib matplotlib.use('Agg') # import plotting module import matplotlib.pyplot as plt # used to 'fake' file writing from cStringIO import StringIO # used to generate the graph import numpy as np # function called by mod_python upon request on this file def in...
[ "panhtran249@gmail.com" ]
panhtran249@gmail.com
a60335fd3c0161a7831115494dd5523f809e1519
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_8/ndxkee009/question3.py
5bbb84a08292c8d8d7b0d5a8882340aedd384aa1
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
"""Keegan Naidoo NDXKEE009 4 May 2014""" text=input("Enter a message:\n") def Encrypt(text): if text =="": return "" elif text[0]==" ": return " " + Encrypt(text[1:]) elif(ord(text[0])<97): return text[0] +Encrypt(text[1:]) elif(text[0...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
2ebf12f787421a9fff6f50523fcb9c583a664292
680185d233bdc0a1b2f404923d69e1d2e5b94d9d
/rambler/net/compareExpressions.py
6dc3058383d1cf10c04989605ccfdad5836882f0
[]
no_license
pombredanne/rambler.net
e0c5d36d3495d85fa07edbaa2c52c6ce69c2ae70
065d5ec4d1eee086b0b37910e3a6887ae748d83e
refs/heads/master
2020-12-31T02:49:31.666102
2012-04-12T18:24:58
2012-04-12T18:24:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,909
py
import cStringIO REGULAR_EXPRESSION_CHARS='.*+?' IGNORE_CHARS='()' def compareExpressions(exp1,exp2): """Given two strings which represent regular expressions returns compare how greedy an expressin -1 if exp1 is more precicse than than exp2 0 if exp1 is as precise as exp2 1 if exp1 is less precise th...
[ "srobertson@codeit.com" ]
srobertson@codeit.com
7b764c9a795922647c4f3acaf33d0114c1f2c22c
4cdc9ba739f90f6ac4bcd6f916ba194ada77d68c
/剑指offer/第四遍/19.正则表达式匹配.py
e839a9c0ddfc157700ff3f37508a06178b532c62
[]
no_license
leilalu/algorithm
bee68690daf836cc5807c3112c2c9e6f63bc0a76
746d77e9bfbcb3877fefae9a915004b3bfbcc612
refs/heads/master
2020-09-30T15:56:28.224945
2020-05-30T03:28:39
2020-05-30T03:28:39
227,313,730
0
0
null
null
null
null
UTF-8
Python
false
false
2,457
py
""" 请实现一个函数用来匹配包含'. '和'*'的正则表达式。模式中的字符'.'表示任意一个字符,而'*'表示它前面的字符可以出现任意次(含0次)。在本题中,匹配是指字符串的所有字符匹配整个模式。例如,字符串"aaa"与模式"a.a"和"ab*ac*a"匹配,但与"aa.a"和"ab*a"均不匹配。 示例 1: 输入: s = "aa" p = "a" 输出: false 解释: "a" 无法匹配 "aa" 整个字符串。 示例 2: 输入: s = "aa" p = "a*" 输出: true 解释: 因为 '*' 代表可以匹配零个或多个前面的那一个元素, 在这里前面的元素就是 'a'。因此,字符串 "aa" 可被视为 '...
[ "244492644@qq.com" ]
244492644@qq.com
4291138f901a7718cffecda75a832431563fc9a5
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_2453486_0/Python/yakirsudry/solution.py
ea43b0bf5caa42220edc99eeee8ce197f20cdefd
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,058
py
import os input = r"A-small-attempt0.in" output = r"testoutput.txt" def get_solution_str(table): o_wins_string = "O won" x_wins_string = "X won" draw_string = "Draw" not_finished_string = "Game has not completed" o_good_chars = ["O","T"] x_good_chars = ["X","T"] o_wins = False x_wins = False for i in xrange(...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
b6ee2ce9b062a51c42f418699bc88c5290f2d92e
8d3835e39cbc2c74d8535b809686d6ab3033c0d0
/ecommerce/carts/migrations/0001_initial.py
ae9854cb961e0bd4a352d399116cca10ab49b218
[]
no_license
gayatribasude/GayatrisWorld
125698955cd8b98a5aa2377331293587a57f2911
552ea2ef946e95f5bccc4e51d4030484ab0bc438
refs/heads/master
2023-06-25T19:45:03.232059
2021-08-02T16:43:47
2021-08-02T16:43:47
384,343,617
0
1
null
null
null
null
UTF-8
Python
false
false
1,069
py
# Generated by Django 2.1.3 on 2018-12-06 16:23 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), ('prod...
[ "gayatribasude" ]
gayatribasude
6b38251500d3171ba1a90aee8bf9ea0e04f55017
faf45ce5687f45b1c1a9aad272dcec6c2543db24
/imaginet/evaluate.py
2c82c70e8b09db334924e7f825b1d587f5660e18
[ "MIT" ]
permissive
gchrupala/reimaginet
b8b7ee73bfdbf5d4d293bd5704e554fb9800ac1e
f583b62877a62d8c06e2dcd1e39363f4cc4976f9
refs/heads/master
2020-04-12T06:15:43.473654
2017-05-22T15:47:38
2017-05-22T15:47:38
37,725,869
6
3
null
null
null
null
UTF-8
Python
false
false
3,646
py
# encoding: utf-8 # Copyright (c) 2015 Grzegorz Chrupała from __future__ import division import theano import theano.tensor as T import numpy from scipy.spatial.distance import cdist def paraphrase_ranking(vectors, group): """Rank sentences by projection and return evaluation metrics.""" return ranking(vectors...
[ "g.chrupala@uvt.nl" ]
g.chrupala@uvt.nl
ec03231406e390198411099c19d5d3824fc7495c
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/GEM/YW_CYBMM_SZSJ_143.py
13ea7b42f76855712e5a8114bc47a20da2331362
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
3,065
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api") from xtp_test_case import * sys.path.append("/home/yhl2/workspace/xtp_test/service") from ServiceConfig import * from mainService import * from QueryStkPriceQty import * from log import * sys.path.append("/h...
[ "418033945@qq.com" ]
418033945@qq.com
e94b34f7a4b61d2270b468fc4f32388eb0bd1a4b
a8d5cb55b80f4c160323b6c6fbe094c6e6634c75
/users/migrations/0002_user_date_validated.py
f66d0dab256b23098a3db314f10101d8bcfdba4b
[]
no_license
birkoss/mtg-achievements-api
00d5d954e3c5bbf919a44ef49bde9feaf3ceee61
133806c668f92b4b94d0f731edec5c08041010cc
refs/heads/master
2023-03-28T18:16:06.077949
2021-04-03T13:34:15
2021-04-03T13:34:15
347,626,595
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# Generated by Django 3.1.7 on 2021-03-14 13:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='date_validated', ...
[ "admin@birkoss.com" ]
admin@birkoss.com
c432544fd2dcaf1b9c22fc5905cc20ab2b72813e
88bbf27deb0b2a1b96985c0a94ff0b7a3d012820
/hq/wsgi.py
30b1d7a4018f35aa170b75ea1e1d0f1b1cca4721
[]
no_license
Code-Community99/Hiq-django
e8efb7d63bd4fc0bc8e2af193fdec9aaab0975b0
af62622648ad88f6e8d94e86a8dc5d6660e3bbe2
refs/heads/master
2022-12-14T01:12:45.218318
2020-05-18T23:29:35
2020-05-18T23:29:35
233,811,384
2
1
null
2022-12-08T03:34:53
2020-01-14T10:02:55
JavaScript
UTF-8
Python
false
false
163
py
import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hq.settings') application = get_wsgi_application()
[ "duncansantiago18@gmail.com" ]
duncansantiago18@gmail.com
11e3806d74fcbc6ee3de46136854f7d5e113f04a
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/2374.py
daaadf5cd464dc0f520aa0689946e9fa40c58e1b
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,584
py
global flipcounter def flip(line,start,k): global flipcounter for t in range(k): if(line[start + t]) == '+': line[start + t] = '-' else: line[start + t] = '+' flipcounter= flipcounter +1 def myfunc(line,k): global flipcounter flipcount...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
67f81d788c523b73d542f8546f97f8bef336fb9f
13faa0d553ed6c6a57791db3dfdb2a0580a1695b
/CodeChef/Long/August 2017/MATDW.py
45224dc97400725d10522949e774031fc7ef9126
[]
no_license
kautsiitd/Competitive_Programming
ba968a4764ba7b5f2531d03fb9c53dc1621c2d44
a0d8ae16646d73c346d9ce334e5b5b09bff67f67
refs/heads/master
2021-01-17T13:29:52.407558
2017-10-01T09:58:23
2017-10-01T09:58:23
59,496,650
0
0
null
2017-05-20T17:27:18
2016-05-23T15:56:55
HTML
UTF-8
Python
false
false
1,639
py
import sys def printIt(s): print s sys.stdout.flush() def bestDisk(diskInfo): return diskInfo[0]/(diskInfo[3]*1.0) n,h = map(int,raw_input().split()) hardDisksInfo = sorted([map(int,raw_input().split())+[i] for i in range(h)], key=bestDisk) penalty = input() numberOfHardDisk = 0 currentHardDisk = -1 user...
[ "kautsiitd@gmail.com" ]
kautsiitd@gmail.com
53cc9c9f7fc41839ec9ba889a34855ff10ac768b
e5a044708032b853f1cdf8906da63502716fd410
/test/test_payment_tokenization_error_response.py
e86d56dc5ffac418b05c1b6b00de8fdc69fafcad
[]
no_license
GBSEcom/Python
4b93bab80476051fc99f379f018ac9fa109a8a6a
5fa37dba8d0c3853686fdc726f863743376060c9
refs/heads/master
2021-12-04T12:55:29.605843
2021-11-19T22:01:03
2021-11-19T22:01:03
136,058,345
1
2
null
null
null
null
UTF-8
Python
false
false
1,236
py
# coding: utf-8 """ Payment Gateway API Specification. The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501 The ve...
[ "emargules@bluepay.com" ]
emargules@bluepay.com
2fd7d116a398cf706f0f19d4f65963b0537f9d24
0323561eacf19846e7e293d9cbc0b5e0e2de1d91
/Step_8/A3C_NETWORK.py
0203c47f042512a2d9d7c3992d69d133fb3ece7a
[ "Apache-2.0" ]
permissive
LeeDaeil/Process_A3C
77cb3760f579fb1d80e191871bf853e27089bff9
1876fbe1b928e13b9c8766095b2d13abfda94019
refs/heads/master
2020-03-31T15:39:23.567327
2019-07-10T09:40:25
2019-07-10T09:40:25
152,345,573
1
2
Apache-2.0
2018-12-25T02:34:36
2018-10-10T01:39:29
Python
UTF-8
Python
false
false
4,228
py
from keras.layers import Dense, Input, LSTM from keras.models import Model from keras.layers.wrappers import TimeDistributed from keras.optimizers import RMSprop from keras import backend as K from Step_6.Parameter import PARA class A3C_net_model: def __init__(self): if PARA.Model == 'LSTM': # ...
[ "dleodlf1004@naver.com" ]
dleodlf1004@naver.com
4a6e24f762958195452038e9fed1de89efdbd298
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/connectivity_hop_py3.py
1ab3ca4895e26853a60e072edcb9b2dcc90c301e
[ "MIT" ]
permissive
lmazuel/azure-sdk-for-python
972708ad5902778004680b142874582a284a8a7c
b40e0e36cc00a82b7f8ca2fa599b1928240c98b5
refs/heads/master
2022-08-16T02:32:14.070707
2018-03-29T17:16:15
2018-03-29T17:16:15
21,287,134
1
3
MIT
2019-10-25T15:56:00
2014-06-27T19:40:56
Python
UTF-8
Python
false
false
2,122
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 ...
[ "noreply@github.com" ]
lmazuel.noreply@github.com
3cd1756d135e7014c2c7cfd9d5f9e2379b777769
b44ae8c215c7577616ce94bbddda57d46ff46577
/experiments/sparsity/sameK_20repeats_movielens_100K/gaussian_gaussian_univariate.py
4a00a17770a6dc4e784f85d4bedd6be94cbc77c7
[]
no_license
changchunli/BMF_Priors
06a74d89198b11c0c3ba673a1d4869986cd7bc2d
15b20537eefd36347ed84617882eeea1c453e162
refs/heads/master
2020-03-21T07:50:08.081910
2018-06-10T10:22:04
2018-06-10T10:22:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,398
py
''' Measure sparsity experiment on the MovieLens 100K dataset, with the All Gaussian model (univariate posterior). ''' import sys, os project_location = os.path.dirname(__file__)+"/../../../../" sys.path.append(project_location) from BMF_Priors.code.models.bmf_gaussian_gaussian_univariate import BMF_Gaussian_Gaussia...
[ "tab43@cam.ac.uk" ]
tab43@cam.ac.uk
abc95fb4dae6cd5138c5a60bba257d3f577757ee
41c64b0495902c111ab627b71a6a5e54a8e12bcf
/test/subfolder2/module2.py
457f0237bbe47531bf5169f6990b0f8a7550f163
[]
no_license
ZhangRui111/Rui_utils
80c335e3fcfa8e7e88accf7af6079ed7b7b30a25
5e1a303cf2dab26f2ec092d0953f09354a787079
refs/heads/master
2021-10-08T16:03:13.636857
2021-10-08T05:01:20
2021-10-08T05:01:20
160,489,087
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
def func2(): print("This is func2()")
[ "zhangruisg111@163.com" ]
zhangruisg111@163.com
2cb0388f30962d3fce1d5759446ab5384374b8a0
ff4302db00bc503ab86ae02f170b078e1cda2312
/daili/tiantian_cart/urls.py
b8ce4472c71db93b77dd44ee8ad49601cd8f9f76
[]
no_license
pythonIn/dali
28f3eab4f747fa0fc885d21b650e3111a0a88da2
f37ed9a4d3e52cf1dabe454cb434abf736eb04bf
refs/heads/master
2020-03-16T15:48:36.869406
2018-06-01T18:43:57
2018-06-01T18:43:57
132,759,548
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
from django.conf.urls import url, include import views urlpatterns = [ url(r'^cart$',views.cart), url(r"^add(\d+)_(\d+)$", views.add), url(r'^mend(\d+)_(\d+)$', views.mend), url(r'^cart_del(\d+)$', views.cart_del) ]
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
e1156b9394dfbc82e1105de1b18c7c019647151c
10920b11a22a20f9a7f63157818327f3c4e41888
/jibby_opencv/Object Recognition/image.py
51ebc065790ef203d5025db954510b6b13e3513e
[]
no_license
dsall/computerv
e331b3d025c8cec0119b789107d1fef18d08f02a
40671d618c31ad9d9b20fc902a218a8e281098bc
refs/heads/master
2021-09-15T09:33:08.495580
2018-05-29T23:41:42
2018-05-29T23:41:42
135,363,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,968
py
import urllib.request import cv2 import numpy as np import os def store_raw_images(): neg_images_link = 'http://image-net.org/api/text/imagenet.synset.geturls?wnid=n07942152' neg_image_urls = urllib.request.urlopen(neg_images_link).read().decode() pic_num = 877 if not os.path.exists('neg'): ...
[ "djiby45@outlook.com" ]
djiby45@outlook.com
63acd57aecf7e88812cea81b5035339c8601159b
50c2f7d7292bf020bbc70e34b16bebb94eafb208
/django_minishop/settings.py
4cfb4aa72a0488dd7a81fefafd7c60494c2a91e4
[]
no_license
sakkhar/django_minishop
8178a71562a92ac56c37f81200c52661ced22ebe
0427c1519ec18013a0846d642e7f780daec8216a
refs/heads/master
2021-08-11T07:51:21.023070
2017-11-13T10:53:50
2017-11-13T10:53:50
110,529,039
0
0
null
null
null
null
UTF-8
Python
false
false
3,203
py
""" Django settings for django_minishop project. Generated by 'django-admin startproject' using Django 1.11.7. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ i...
[ "sakkhar@mail.com" ]
sakkhar@mail.com
a261fb52ce97eb8401acfc01dd3dd7cc0ab4a979
a0cbae33d175fdf0299eddc775a1b4b84c0addcf
/orquesta/tests/unit/specs/mistral/test_base_spec.py
1559a000d680dcef5ba76c42537c582ccfa6a8bf
[ "Apache-2.0" ]
permissive
batk0/orquesta
240ff95c76c610c52518ee7d2e3eee11b6594a73
f03f3f2f3820bf111a9277f4f6c5d6c83a89d004
refs/heads/master
2020-04-17T10:48:48.016607
2019-01-19T15:40:05
2019-01-19T15:40:05
166,514,957
0
0
Apache-2.0
2019-01-19T06:37:39
2019-01-19T06:37:39
null
UTF-8
Python
false
false
1,958
py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
[ "m4d.coder@gmail.com" ]
m4d.coder@gmail.com
df4fecd88d5cd9e582134ca7ea60cbda93a24e83
1dc0de033e5f4e2471fb0ecdf55cc955e9287836
/lines_bars_and_markers/120-绘制条形图.py
2dacb6031c45e979a4e0de31749212506fa89c36
[]
no_license
weiyinfu/learnMatplotlib
5db2337723751a10d5dc6f077c97bef0fb919c0d
3b173161f96d7b419c1b1be65f09e267141fa385
refs/heads/master
2022-08-29T20:46:26.222042
2022-08-02T02:22:33
2022-08-02T02:22:33
147,894,014
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
# 导入绘图模块 import matplotlib.pyplot as plt # 构建数据 GDP = [12406.8, 13908.57, 9386.87, 9143.64] # 中文乱码的处理 plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False # 绘图 plt.bar(range(4), GDP, align='center', color='steelblue', alpha=0.8) # 添加轴标签 plt.ylabel('GDP') # 添加标题 plt.title('四个直辖市GDP大比拼...
[ "weiyinfu.weiyinfu@bytedance.com" ]
weiyinfu.weiyinfu@bytedance.com
58c292c8901934720c90bda9409969ed438bc743
b1c403ad1211221427dddc80a7f15956da498175
/0x03-caching/0-basic_cache.py
d6dab650de3d655f0aa8fac8482cca3dc26d9587
[]
no_license
oumaymabg/holbertonschool-web_back_end
246dd47b9abdb277d6ef539c9bc38a8f0509554a
dce7ff683d8bce9ad986d72948c9e75ca7b80d2a
refs/heads/master
2023-09-05T22:27:28.961336
2021-11-15T21:05:53
2021-11-15T21:05:53
389,440,104
1
0
null
null
null
null
UTF-8
Python
false
false
562
py
#!/usr/bin/python3 """ Basic dictionary """ from base_caching import BaseCaching class BasicCache(BaseCaching): """ Class that inherits from BaseCaching and is a caching system This caching system doesn’t have limit """ def put(self, key, item): """ Assign to the dictionary """ if key...
[ "oumaymabou257@gmail.com" ]
oumaymabou257@gmail.com
5e1ab4fade27d72a59bf02fb6ddccf1dfefb8530
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.2/tests/regressiontests/views/tests/specials.py
e2a2e4d4bb4e431d00cc394218d62573be10e7f9
[]
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
111
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/views/tests/specials.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
ec5cac4f337e78f90c3b2276496c1e93b970c87c
14baf43101ef0d805bfe287a1498106f9b89580f
/lol.py
77acc4b5075751f88bc3a0b7d258b4fe2d8e00c3
[]
no_license
justinembawomye/python-fun
e10358e1825697d725dd9d11b94bbcc920965800
edabbff26a39fefe36b9800b784fee438fa1b2c8
refs/heads/master
2023-08-27T13:20:56.258556
2021-10-28T20:17:49
2021-10-28T20:17:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
# creating the main function def main(): for a in range(3): meow() def meow(): print('Hey cat!! .....Y.O.L.O') main()
[ "jmbawomye@gmail.com" ]
jmbawomye@gmail.com
c95518e76732e60e2498accc86ec780469776dd4
1e7673cf975dbdafd57cf040b3df00bf62da2f2a
/final_PhonoCi2.0/makegif.py
63954ff3e0d581008d002f990733acea4847b393
[]
no_license
pondjames007/RWET
9771058767e45392537f20d701b772d4ec776ff2
5fbfc46ab3f98336cfa7bd3c1789097a7f8e16b9
refs/heads/master
2021-05-04T00:53:03.212648
2018-05-04T20:42:15
2018-05-04T20:42:15
120,354,507
0
0
null
null
null
null
UTF-8
Python
false
false
2,059
py
import requests from bs4 import BeautifulSoup import os import sys import random from PIL import Image, ImageDraw, ImageFont import textwrap def download_file(url, local_filename=None): if local_filename is None: local_filename = url.split('/')[-1] # if os.path.exists(local_filename): # retur...
[ "jameshuang@nyu.edu" ]
jameshuang@nyu.edu
bf76b641e40e5ae38de03980d78eb5ec4c5cea4e
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/data/__init__.py
fdef948f260e00288a0fd67087f3b7bd58136b7c
[]
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
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:d2c61947afcd5ecdc7b2c49e834ad9feeeed830ece0335e0f29375f7da626b17 size 1506
[ "business030301@gmail.com" ]
business030301@gmail.com
f4167843167e81ed9d67f4244251831321f65ce7
d8a9b88f4087ebfe97b462e589071222e2261e47
/189. Rotate Array.py
e4112871d60ef56e0896ddb710f0ccab9299cc03
[]
no_license
rohitpatwa/leetcode
a7a4e8a109ace53a38d613b5f898dd81d4771b1b
f4826763e8f154cac9134d53b154b8299acd39a8
refs/heads/master
2021-07-07T12:40:30.424243
2021-03-31T00:21:30
2021-03-31T00:21:30
235,003,084
1
0
null
null
null
null
UTF-8
Python
false
false
611
py
# Create 2 parts of the array of size n-k and k. Reverse these two parts individually and then reverse the whole array. class Solution: def reverse(self, nums, start, end): while start<end: nums[start], nums[end] = nums[end], nums[start] start += 1 end -= 1 ...
[ "rohitpatwa@gmail.com" ]
rohitpatwa@gmail.com
909cc6f34cdde8891f13255f83a6b221376d03b9
27e18001bd40f6fe5b9f675130e359147ce3519a
/20.py
e2bcaa0ba31c60aa60680cbbbe23bd056d298725
[]
no_license
jsomers/project-euler
6934a5d4eb2c116b08face308a010ddb74e0c123
61cc4cd7978deeed9d071f678c786f991e05d8a7
refs/heads/master
2021-01-01T05:39:39.568380
2014-08-21T04:05:10
2014-08-21T04:05:10
10,680,061
4
2
null
null
null
null
UTF-8
Python
false
false
431
py
# Give the sum of the digits in 100! def mul(x, y): return x*y def fact(n): facts = [] for i in range (1, n+1): facts.append(i) a = reduce(mul, facts) return a print fact(100) string = '9332621544394415268169923885626670049071596826438162146859296389521759999322991560894146397615651828625369792082722375825118...
[ "jsomers@gmail.com" ]
jsomers@gmail.com
b1c6f8d3d478e51f7e01b828c0c84f8246095111
25b9a5040f6458877f7eb992af9d5fc11769258d
/honahlee/profile_template/appdata/config.py
66d3ed9938809b0a01f37fa0b4c8cc5aeebb7b25
[ "BSD-3-Clause" ]
permissive
volundmush/honahlee
612399adf21ffaf2dca15e8de8853085a4308939
da536fb3813621b624f6b3d8b79fe5e7cb73dbc8
refs/heads/master
2023-05-31T02:08:04.231953
2021-05-12T14:31:37
2021-05-12T14:31:37
270,115,326
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
from honahlee.core import LauncherConfig class Launcher(LauncherConfig): pass
[ "volundmush@gmail.com" ]
volundmush@gmail.com
7a7281413d8c98326a014edb808a6254dad9ba1e
919e74f05976d9ea5f28d5dcf0a3e9311a4d22b2
/conans/test/functional/toolchains/gnu/autotools/test_apple_toolchain.py
c9217eac77c70998abec202599110b89c924298c
[ "MIT" ]
permissive
thorsten-klein/conan
1801b021a66a89fc7d83e32100a6a44e98d4e567
7cf8f384b00ba5842886e39b2039963fc939b00e
refs/heads/develop
2023-09-01T12:04:28.975538
2023-07-26T10:55:02
2023-07-26T10:55:02
150,574,910
0
0
MIT
2023-08-22T14:45:06
2018-09-27T11:16:48
Python
UTF-8
Python
false
false
4,435
py
import os import textwrap import platform import pytest from conans.client.tools.apple import to_apple_arch from conans.test.assets.autotools import gen_makefile from conans.test.assets.sources import gen_function_h, gen_function_cpp from conans.test.utils.tools import TestClient makefile = gen_makefile(apps=["app"]...
[ "noreply@github.com" ]
thorsten-klein.noreply@github.com
d7dc9495b41fb3a5a17dc56d9095b637106ff390
3aab11d445011f4a0de1376886dd3899aba44e68
/opps/db/models/fields/__init__.py
e3f983a62a7edb7d7eff888dad217bb39a40c82c
[ "MIT" ]
permissive
opps/opps
4ba6a08ac5aa31be48c245b2e8f9d9a714a5e473
5552924fa34ea40d24febeac5046bd59f62e0e4f
refs/heads/master
2023-08-24T21:09:23.489540
2023-05-22T20:07:33
2023-05-22T20:07:33
7,712,379
166
76
MIT
2022-01-06T22:53:23
2013-01-20T03:56:15
Python
UTF-8
Python
false
false
90
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from .jsonf import JSONField, JSONCharField
[ "thiagoavelinoster@gmail.com" ]
thiagoavelinoster@gmail.com
f149b88f3ad064c0087ca3f578642aea3bc5c4ed
c4af67db4c523d20f2d55aef90ba77db1fb53c38
/Archetypes/tests/test_construction.py
5e11425921baaa08285bc4c4a19308a46ef93964
[ "BSD-3-Clause" ]
permissive
dtgit/dtedu
e59b16612d7d9ea064026bf80a44657082ef45a3
d787885fe7ed0de6f9e40e9b05d852a0e9d60677
refs/heads/master
2020-04-06T05:22:50.025074
2009-04-08T20:13:20
2009-04-08T20:13:20
171,351
1
0
null
null
null
null
UTF-8
Python
false
false
779
py
import unittest from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase class FactoryTest(ATSiteTestCase): def testSimplePortalType(self): self.folder.invokeFactory(id="dummy", type_name="SimpleType") self.assertEqual(self.folder.dummy.getPtype(), "Simple Type") def XXXtestCopiedF...
[ "ron@domU-12-31-39-02-65-03.compute-1.internal" ]
ron@domU-12-31-39-02-65-03.compute-1.internal
560b1cb677c6f79c4127fb6c7433e86b2f01752a
6320fef2ea7376c2b35f97f1a5af004e90f09098
/1-2주차 실습(복습)/venv/Lib/site-packages/bleach/utils.py
1163bd3e732017cd74fb3402832980ffcaa22fa2
[]
no_license
Dplo1514/ploaistudy
7aa08d7f71653748a9e32dcc09ee8f6cec0aaed9
e35e42b1e5f0c90cc1e2a59993a1ef73d8872d0c
refs/heads/master
2023-09-03T00:45:55.601651
2021-10-24T12:19:38
2021-10-24T12:19:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
from collections import OrderedDict def _attr_key(attr): """Returns appropriate key for sorting attribute names Attribute names are a tuple of ``(namespace, name)`` where namespace can be ``None`` or a string. These can't be compared in Python 3, so we conver the ``None`` to an empty string. ...
[ "dladlsgur3334@gmail.com" ]
dladlsgur3334@gmail.com
b3caaba13db1b1269a90e25161e1dace19a05ba5
f7d0c32b8d29dcff788d439c2b7051734afbbfc6
/meiduo1/apps/user/utils.py
3f1156f45390d1d7a949de53e45f59034719129f
[ "MIT" ]
permissive
woobrain/nginx-uwsgi-web
dcf5159ba3f3332108c2d351ef3dac0cc504ade7
5b3ca1fba8205c2c0a2b91d951f812f1c30e12ae
refs/heads/master
2022-12-22T21:08:00.758841
2019-11-13T12:31:20
2019-11-13T12:31:20
221,447,696
0
0
MIT
2022-12-11T19:51:54
2019-11-13T11:52:19
JavaScript
UTF-8
Python
false
false
664
py
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from meiduo1 import settings def generic_active_email_url(id, email): # 实例化加密对象 s = Serializer(secret_key=settings.SECRET_KEY,expires_in=3600) # 组织数据 data = { "id":id, "email":email } # 加密数据 serect_dat...
[ "xwp_fullstack@163.com" ]
xwp_fullstack@163.com
f8eec1a3c5a02a18416e5676f7d9647bf0fd199e
35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6
/200_NumberOfIslands/200_NumberOfIslands_1.py
88b82c01ab92a45cbcc835225055f670d848f1c6
[]
no_license
H-Cong/LeetCode
0a2084a4845b5d7fac67c89bd72a2adf49f90c3d
d00993a88c6b34fcd79d0a6580fde5c523a2741d
refs/heads/master
2023-03-19T15:22:00.971461
2021-03-11T00:33:00
2021-03-11T00:33:00
303,265,129
0
0
null
null
null
null
UTF-8
Python
false
false
1,435
py
class Solution: def numIslands(self, grid: List[List[str]]) -> int: ''' BFS ''' row = len(grid) col = len(grid[0]) count = 0 for i in range(row): for j in range(col): if grid[i][j] == "1": count += 1 ...
[ "nych1989@gmail.com" ]
nych1989@gmail.com
46737b82df4a556766e1e833e4e748b0474f551c
2136701f48ad131084b331039d864f85988cf451
/spider/work/media_huadong/somenew/spiders/zhongguojiangxiwang.py
a15ce477adf94d9e61ca22cfee9bc5f1b8e94dbf
[]
no_license
cuiyulin77/other
9d374a47d482f1c3f9ef0f3ac4429487643b04b9
c00cafaf7607452966fa523c4d0b04edb7f153e6
refs/heads/master
2020-05-18T04:24:26.095929
2019-04-30T06:37:53
2019-04-30T06:37:53
184,169,488
0
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
# -*- coding: utf-8 -*- import scrapy from somenew.items import SomenewItem import hashlib import datetime class DezhouxinwenSpider(scrapy.Spider): # 中国江西网 name = 'zhongguojiangxiwang' allowed_domains = ['jxnews.com.cn'] start_urls = ['http://www.jxnews.com.cn/'] # start_urls = ['http://fc.jxnews.c...
[ "494658565@qq.com" ]
494658565@qq.com
121ee74bb7d8df6823b01dac06b94931eb309d1a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03043/s556042691.py
4e6f577175da4a7f55616baa41faeb4da62a38fa
[]
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
178
py
n,k=map(int, input().split()) ans=0 import math for i in range(1,n+1): sikou=math.ceil(math.log((k/i),2)) if sikou<0: sikou=0 ans+=(1/n)*0.5**sikou print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
afd23e3eaa95e013ad89a9c3b5e91281ab263ef3
3147bb3457617842c24210c9c7e5a0d07fc548a6
/guardianCrossword.py
3e8b9aa7b1dcf1ebf5c095422550004651768d48
[]
no_license
rashley2712/tools
4378a062276e4c5c52563842d7a077e3a5e84f42
e361abce89bfd4cf9e11d0e575c5d12c2c530e13
refs/heads/master
2023-01-10T12:52:50.744164
2022-12-21T14:19:01
2022-12-21T14:19:01
40,479,653
0
0
null
null
null
null
UTF-8
Python
false
false
7,040
py
#!/usr/bin/env python3 import argparse import datetime import datetime import sys import urllib.request import os # Google Cloud libraries from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request from google.oauth2.credentia...
[ "rashley@gmail.com" ]
rashley@gmail.com
2c064571b166c16d2e2162eb550f4acddc9755a2
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/artificial/transf_BoxCox/trend_Lag1Trend/cycle_0/ar_12/test_artificial_128_BoxCox_Lag1Trend_0_12_100.py
69be51d0ac616d981af16e76ed8ffa0a59aeca1f
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
263
py
import pyaf.Bench.TS_datasets as tsds import tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 0, transform = "BoxCox", sigma = 0.0, exog_count = 100, ar_order = 12);
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
5cbd9b759b68b1c777c5a8035820707a318f8074
dd449ad8388847779b265f49f2339c9681376c60
/rl-lapan-book/chap6_dqn_pong/model.py
12c593bc41d537299d8fb3ee85ce5990e5c10f0d
[]
no_license
whoji/training-ground
478d76a8c274050eb910b28729ca1d1cdb47eae9
b107cc47c4a04bb8868c410ab207bacab5a86e4c
refs/heads/master
2020-05-16T16:13:26.788156
2019-12-04T01:56:01
2019-12-04T01:56:01
183,154,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,301
py
import torch import torch.nn as nn import numpy as np class DQN(nn.Module): """docstring for DQN""" def __init__(self, input_shape, n_actions): """assumes input_shape is of CHW shape (4,84,84)""" super(DQN, self).__init__() self.conv=nn.Sequential( nn.Conv2d(in_channels=inp...
[ "minli1985@gmail.com" ]
minli1985@gmail.com
e1ac6ff44e858e2564178ff72f096851718b1ac2
7f8b266b1b175f62a5d9608a0028f2265f294233
/guild/commands/operations.py
0e51d3f6f25d165f93eb42a4dc169732d4f1fe81
[ "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
jukiewiczm/guildai
7d1cd4e324e1f2bd70a90156e254e9e4d00c6e4c
478cc29cb102a8bd0bed693ce9626fe4949257a2
refs/heads/master
2020-10-01T22:47:39.595549
2019-12-12T15:38:06
2019-12-12T15:38:06
227,639,644
0
0
Apache-2.0
2019-12-12T15:37:39
2019-12-12T15:37:38
null
UTF-8
Python
false
false
1,875
py
# Copyright 2017-2019 TensorHub, Inc. # # 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 writ...
[ "g@rre.tt" ]
g@rre.tt
c612b7d7805ae1cdcd762fbafa0515f4f0c61507
7d8f344949755664850cf50c070e0442fecc3e89
/glynt/apps/company/admin.py
3c3aae49ccc3c059c5fa6793e2f9b1c147bc59ba
[]
no_license
rosscdh/glynt
7ac24c74c3ddeee2f6af584f54f548c662a13f18
a6a083704f300ed2f9fa4cd4e666d07199f52d1e
refs/heads/master
2020-04-15T00:33:04.930549
2016-06-14T08:37:30
2016-06-14T08:37:30
4,831,016
0
0
null
null
null
null
UTF-8
Python
false
false
117
py
# -*- coding: UTF-8 -*- from django.contrib import admin from models import Company admin.site.register([Company])
[ "ross@lawpal.com" ]
ross@lawpal.com
e43043403f1e2a603fa3fac290b06c7c435e8f11
fa0ee3daeed8edb10e98b6772fa39923243d53c5
/algorithms/hard_all_pairs_that_sum_to_number.py
56976bc27cc4888ec8cdbc2a9df5029dab6ab0f5
[ "Apache-2.0" ]
permissive
ppinko/python_exercises
8a93664b6a8fc75d1088d67cd8e5f5ba3f39364a
d4ef2ddb28834ef49ac8060ce16f6b1446b6713e
refs/heads/master
2022-07-21T13:39:39.694515
2022-07-06T18:46:49
2022-07-06T18:46:49
254,176,710
1
0
null
2020-04-08T19:13:45
2020-04-08T19:05:39
Python
UTF-8
Python
false
false
836
py
""" https://edabit.com/challenge/8LZdBwmpBiLJ5Sobt """ def all_pairs(lst: list, num: int) -> list: lst.sort() ans = [] for i, v in enumerate(lst[:-1]): for j in lst[i+1:]: if v + j == num: ans.append([v, j]) return ans assert all_pairs([2, 4, 5, 3], 7) == [[2, 5]...
[ "p.pinkowicz@gmail.com" ]
p.pinkowicz@gmail.com
699cfc5f42f72a4fd6018d7cf3cb617c55697fac
953fc3064e82231d1c5b7fb3be6563113e3c1483
/examples/dfa/authentication/create_dfa_client_without_yaml.py
3cc547e12209647629f680aa25f4f657827a493f
[ "Apache-2.0" ]
permissive
hshore29/googleads-python-lib
08a3dc093b76b16c7b84026360e89793a1a5e4c9
14de75b8400aa4c1c0920d8edda6bb6e46b858cc
refs/heads/master
2021-01-15T12:50:43.278667
2014-03-20T14:47:01
2014-03-20T14:47:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,108
py
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "api.jdilallo@gmail.com" ]
api.jdilallo@gmail.com
0bac18c144a8f3e3cda2c0e7f688d90bd8534da6
8189650954de2c4cc78f67cc60300b51cd4bccfa
/gpu_frites/benchmark.py
d313c6c783d23d1bffc538deebc002a5a98daf1e
[]
no_license
EtienneCmb/gpu_frites
7a890cb9de9e7b309233d770f82dafa864a453f6
b9325c4b1d995a849fb716837f830b1b73d45198
refs/heads/main
2023-01-21T01:03:45.556346
2020-12-04T14:52:22
2020-12-04T14:52:22
317,906,684
1
0
null
null
null
null
UTF-8
Python
false
false
8,916
py
"""Benchmarking CPU and GPU codes.""" import xarray as xr from mne.utils import ProgressBar from time import time as tst # profiling function def tmt(method, n_loops=100): def timed(*args, **kw): # dry run method(*args, **kw) # timing run ts = tst() for n_l in range(n_loops)...
[ "e.combrisson@gmail.com" ]
e.combrisson@gmail.com
c02e1231cabab17604214697637c98b264de8add
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_396/ch54_2019_09_23_14_18_10_668876.py
7c95795017287e26da8a69a6e6f64707dd17edcc
[]
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
129
py
def junta_nome_sobrenome(x, y): i = 0 lis = [] while i < len(x): lis.append(x[i] + " " + y[i]) return lis
[ "you@example.com" ]
you@example.com
0c3fd2bef7b4cd1a6f18d706cdf63c1576257b8d
6c8a590bac5d39d95034127f0f47a84e71d298a7
/game_element.py
e3dcefbe2fc5a99445c3f617772db566b601c6ac
[]
no_license
UO-CIS211/FiveTwelve
3f57c40d401588f89370676679dd03f5ce35f42e
eca5d58e4c09189b873a6ce04fe109b6ac711a2e
refs/heads/master
2022-01-12T18:58:30.185373
2022-01-11T23:11:09
2022-01-11T23:11:09
117,500,226
1
13
null
2020-10-01T17:16:05
2018-01-15T05:16:11
Python
UTF-8
Python
false
false
2,087
py
""" Board game element: Relates the model component of a grid game to the view component. Neither the game logic (in the model component) nor the display logic (n the view component) is defined here; this is the notification logic for sending events from the model component to the view component. The 'model' componen...
[ "michal.young@gmail.com" ]
michal.young@gmail.com
116f54ce54861411c14fc2fd70b69e2b5b4e04c4
6d4f60b000d3b00561c439c5faceaa9931e20a9d
/fast_arrow/resources/option_order.py
de9ab50509c11638544e980be5ecac9f567d2ab9
[ "MIT" ]
permissive
Jiacli/fast_arrow
25485c6712e3e2f5e8dea7de7cc40e932d372381
beb95fc402fca12670a6c39cdb4abe524937d321
refs/heads/master
2020-03-28T03:12:59.549434
2018-09-06T02:45:37
2018-09-06T02:45:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
from fast_arrow import util from fast_arrow.resources.option import Option class OptionOrder(object): @classmethod def all(cls, client): """ fetch all option positions """ url = 'https://api.robinhood.com/options/orders/' data = client.get(url) results = data["...
[ "westonplatter@gmail.com" ]
westonplatter@gmail.com
d041fcbf0b0deb2cb6fe89389f6891c487588d7a
8d402df39c18eba7e1c86c762f205c944357c5df
/www/src/Lib/test/test_email/test_message.py
4c754bf40fc300826bf2fbbdd206c3b94f8e8477
[ "BSD-3-Clause" ]
permissive
brython-dev/brython
87cc023e25550dec9ce459ba68774189f33712b6
b33958bff0e8c7a280babc30232dc389a2500a7a
refs/heads/master
2023-09-04T04:49:29.156209
2023-09-01T06:36:08
2023-09-01T06:36:08
24,046,239
6,569
625
BSD-3-Clause
2023-07-05T06:13:32
2014-09-15T06:58:21
Python
UTF-8
Python
false
false
34,896
py
import unittest import textwrap from email import policy, message_from_string from email.message import EmailMessage, MIMEPart from test.test_email import TestEmailBase, parameterize # Helper. def first(iterable): return next(filter(lambda x: x is not None, iterable), None) class Test(TestEmailBase): polic...
[ "pierre.quentel@gmail.com" ]
pierre.quentel@gmail.com
aba91413f1139d347b5032c4f60dae2b8e713d84
2ac77ba91b0972516aea272d24faad85a53e229a
/ProfileReviews.py
e31c1ed97473faafbc7c570b420f4a925172d989
[ "MIT" ]
permissive
Blue-IT-Marketing/cloud-jobs
f98cdb80f61a1b85230025696dab432b423f7c21
99f577fe963aeaaaad6a6c6139563648a1fb3b03
refs/heads/master
2020-03-18T19:28:22.313288
2019-02-27T07:28:39
2019-02-27T07:28:39
135,156,777
0
0
null
null
null
null
UTF-8
Python
false
false
7,548
py
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = 'Justice Ndou' __website__ = 'http://jobcloud.freelancing-seo.com/' __email__ = 'justice@freelancing-seo.com' # Copyright 2014 Freelancing Solutions. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com...
[ "mobiusndou@gmail.com" ]
mobiusndou@gmail.com
0651a0df3619054f72a838d5ca3e1adf32cbab8d
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/1.5.0/examples/user_interfaces/embedding_in_qt5.py
6f35d7745d3b7dae338f30a786f1cece1338a65e
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
4,328
py
#!/usr/bin/env python # embedding_in_qt5.py --- Simple Qt5 application embedding matplotlib canvases # # Copyright (C) 2005 Florent Rougon # 2006 Darren Dale # 2015 Jens H Nielsen # # This file is an example program for matplotlib. It may be used and # modified with no restriction; raw copi...
[ "quantum.analyst@gmail.com" ]
quantum.analyst@gmail.com