blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2a3328efba6ca749dc181e844b07e268f0c32936 | 46a62c499faaa64fe3cce2356c8b229e9c4c9c49 | /taobao-sdk-python-q/top/api/rest/ItemSkuGetRequest.py | 43d7245e14bbea70890b0d317852137bc3cb93f7 | [] | no_license | xjwangliang/learning-python | 4ed40ff741051b28774585ef476ed59963eee579 | da74bd7e466cd67565416b28429ed4c42e6a298f | refs/heads/master | 2021-01-01T15:41:22.572679 | 2015-04-27T14:09:50 | 2015-04-27T14:09:50 | 5,881,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | '''
Created by auto_sdk on 2012-09-23 16:40:21
'''
from top.api.base import RestApi
class ItemSkuGetRequest(RestApi):
def __init__(self,domain,port):
RestApi.__init__(self,domain, port)
self.fields = None
self.nick = None
self.num_iid = None
self.sku_id = None
def getapiname(self):
return 't... | [
"shigushuyuan@gmail.com"
] | shigushuyuan@gmail.com |
b355f95f98f24d6344283b49d8650852f94e5539 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/keyvault/azure-mgmt-keyvault/azure/mgmt/keyvault/v2021_06_01_preview/aio/_configuration.py | 272f7acb4e7f5dcdb1d52dba8188ad9fe5b16818 | [
"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 | 3,672 | 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 |
2ca6ba4e0ddcc4b0c051bc0b9e443c40182b188e | 076015ddf31aed8893a7256c03759ea16bac2769 | /Assignment/ConfidenceInterval.py | 1f440a710609bdd888f96bc57b8547e6dfc187fc | [] | no_license | MCNP-Devel/MCNP-1 | 0922102b9ab1608cd916e4ec05b84ddb4e9c236c | 6ac466c7e805fb68d7ef95c5d8beaf00933332fc | refs/heads/master | 2021-10-28T03:32:13.069373 | 2019-04-21T10:48:30 | 2019-04-21T10:48:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | #!/home/ocean/anaconda3/bin/python3
from numpy import cos, arccos, sin, arctan, tan, pi, sqrt; from numpy import array as ary; import numpy as np; tau = 2*pi
from matplotlib import pyplot as plt
#read the .txt file
fname="KeffvsB.txt"
f=open(fname,"r")
data=f.readlines()
f.close()
B,keff,sl1,su1,sl2,su2,sl3,su3=[],[],... | [
"annoyingamygdala@gmail.com"
] | annoyingamygdala@gmail.com |
9815a42e81e35195bbc3e41e6a5a93096a219691 | 8f2b0e182040d413462c3f65eff7e255f161c3d4 | /SWEA/삼성기출/SWEA_1949_등산로조성.py | 5220352b6e265240c44c1a438c96377e7b4d8cac | [] | no_license | irissooa/Algorithm-with-Python | e68404bcc6e639b0a7b305f6b02a23c5217b9b3c | 941fbf6b05e4f89f46e5a7c90c04f0f7ca98d548 | refs/heads/master | 2023-08-04T06:33:41.073378 | 2023-08-01T15:04:18 | 2023-08-01T15:04:18 | 342,212,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,063 | py | '''
2020-12-02 19:10
NxN 최대한 긴 등산로를 만들 계획
각 숫자는 지형의 높이
등산로를 만드는 규칙
1. 가장 높은 봉우리에서 시작
2. 산으로 올라갈 수 있도록 반드시 높은 지형에서 낮은 지형으로 가로또는 세로 방향으로 연결
즉, 높이가 같은곳 혹은 낮은 지형이나, 대각선 방향의 연결은 불가
3. 긴 등산로를 만들기 위해 딱 한 곳을 정해서 최대 K깊이만큼 지형을 깎는 공사를 할 수 있다
가장 긴 등산로를 찾아 그 길이를 출력
dfs 돌려서 제일 높은 봉우리에서 시작하고, 자기 수보다 낮은 칸으로만 dist센다
K를 같이 들고가면서 하나씩 다 ... | [
"xlalfskdl@naver.com"
] | xlalfskdl@naver.com |
6ea7cca267e461c59103cd81223df4dcecea825f | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/ak3CaloJetSequence_PbPb_data_cff.py | e37e4713dcc474c3f57d0f98731b6199d8a0af7e | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,470 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
ak3Calomatch = patJetGenJetMatch.clone(
src = cms.InputTag("ak3CaloJets"),
matched = cms.InputTag("ak3HiGenJetsCleaned")
)
ak3Calopar... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
deb0c727e90fdb368b69732e37a48318d4e06b27 | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_blocks/__init__.py | 891764f2d8289d1b451ca8cfa0781747bbc42464 | [
"AGPL-3.0-only",
"AGPL-3.0-or-later",
"MIT"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 1,274 | py | """
The Course Blocks app, built upon the Block Cache framework in
openedx.core.djangoapps.content.block_structure, is a higher layer django app in LMS that
provides additional context of Courses and Users (via usage_info.py) with
implementations for Block Structure Transformers that are related to
block structure cour... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
b463bc2d02b57afd9261a280ea0f58f2e2058531 | cb6461bfae8b0935b7885697dad0df60670da457 | /pychron/messaging/handlers/udp_handler.py | f0bbc4a9646a23fd967743be2c5c73a342d101c0 | [
"Apache-2.0"
] | permissive | USGSMenloPychron/pychron | 00e11910511ca053e8b18a13314da334c362695a | 172993793f25a82ad986e20e53e979324936876d | refs/heads/develop | 2021-01-12T14:09:18.983658 | 2018-02-06T14:25:05 | 2018-02-06T14:25:05 | 69,751,244 | 0 | 0 | null | 2016-10-01T16:59:46 | 2016-10-01T16:59:46 | null | UTF-8 | Python | false | false | 1,387 | py | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
5d743fcc9295856f635f417153550efad1523b43 | 2d8645d7ad6330a7aa156474fb454747422907dd | /Classes and Objects/04.pizza_delivery.py | f7a18181c83a59d0db396073945849c24dc97982 | [
"MIT"
] | permissive | milenpenev/SoftUni-OOP | 17008bd70930c58f4801974bfaffc170514783d1 | 90f730cb37713f7ca93b1c0ecd0d12aa351247d2 | refs/heads/main | 2023-08-17T04:16:29.229292 | 2021-09-24T21:17:39 | 2021-09-24T21:17:39 | 384,722,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | class PizzaDelivery:
def __init__(self, name, price, ingredients):
self.name = name
self.price = price
self.ingredients = ingredients
self.ordered = False
def add_extra(self, ingredient, quantity, price_per_ingredient):
if not self.ordered:
if ingredient in s... | [
"milennpenev@gmail.com"
] | milennpenev@gmail.com |
fd21ea7f6db617d60bdbb87acc6790b510b69389 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Selenium_PhantomJS/source/setuptools/py26compat.py | 5778cdf1bae173bdb56f9554860efaaff2ddf049 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 679 | py | """
Compatibility Support for Python 2.6 and earlier
"""
import sys
try:
from urllib.parse import splittag
except ImportError:
from urllib import splittag
def strip_fragment(url):
"""
In `Python 8280 <http://bugs.python.org/issue8280>`_, Python 2.7 and
later was patched to disregard the fragment... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
ac62c8df77bd91fbc6b1c0bd7abe483975ff87d8 | 32e01bc8b5883896a58bdb3c2443028cf61484cf | /RaptAutomation/Test_CLI/Rvirtus_SingleUserTestScripts/test_18_s3_image_classification_manual.py | 8c05340d5121dcca47717a0e557e6ce2b46dfd23 | [] | no_license | Idur69/RaptAutmationWin | df8a55a6c60467ea7d048b7a6856263d5624643c | 1f4faffa75a9cc5bf72c20baec3893d611b9d565 | refs/heads/master | 2022-12-03T21:01:38.841645 | 2020-08-30T08:39:43 | 2020-08-30T08:39:43 | 291,431,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,165 | py | import datetime
import unittest
import os
import time
import multiprocessing
import sys
sys.path.append("..")
from cliEnvSetup.cmdconfig import userTwo,Paths
class Rvirtus_Cli_S3_Image_Manual(unittest.TestCase):
def setUp(self):
print("RunStarted at :" + str(datetime.datetime.now()))
print("Enviro... | [
"shaikidurbasha469@gmail.com"
] | shaikidurbasha469@gmail.com |
1251b48d1e624f9b757acecbac65425cde91eee3 | e6d1bbac91b97ee7a9d028c3aafa5d85a0ee593c | /Python03Month/python0312/logistic02/002.py | fca82d44373e00a574067b58f4e46159b53e9cc5 | [] | no_license | LiuJingGitLJ/PythonSuanFa_2 | 82159043523d6fe69beef7f86421cd4be2242919 | 0afba93c4c29231bc6c2aaf6e4663beee2b5cbbb | refs/heads/master | 2021-09-20T13:49:08.521080 | 2018-08-10T06:13:22 | 2018-08-10T06:13:22 | 124,337,675 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | import numpy as np
a = np.array([1, 2, 3], dtype=int) # 创建1*3维数组 array([1,2,3])
print(type(a)) # numpy.ndarray类型
print(a.shape) # 维数信息(3L,)
print(a.dtype.name) # 'int32'
print(a.size) # 元素个数:3
print(a.itemsize) # 每个元素所占用的字节数目:4
b = np.array([[1, 2, 3], [4, 5, 6]], dtype=int) # 创建2*3维数组 array([[1,2,3],[4,5,6... | [
"15201078137@163.com"
] | 15201078137@163.com |
5a0a0acf3fc79a779112623efa4bdca68a75bb13 | f8826a479f2b9d2f28993ceea7a7d0e3847aaf3d | /apps/reports/custom/all/default.py | 62e271414619df2d034a99789a952a062ab70017 | [] | no_license | icomms/wqmanager | bec6792ada11af0ff55dc54fd9b9ba49242313b7 | f683b363443e1c0be150656fd165e07a75693f55 | refs/heads/master | 2021-01-20T11:59:42.299351 | 2012-02-20T15:28:40 | 2012-02-20T15:28:40 | 2,154,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,453 | py | from blacklist import blacklist as inner_blacklist
from metadata import metadata as inner_metadata
from domain_summary import domain_summary as inner_domain_summary
from chw_summary import chw_summary as inner_chw_summary
"""Where to put default global reports. These behave just like custom reports
except they ar... | [
"michael.champanis@gmail.com"
] | michael.champanis@gmail.com |
255a50b0bd0bef11f9c25fac08663a37f242eb01 | b8b3bf2ca859c8e38709b398c628fba9a79b0112 | /manage.py | 5a5faa9324665d79ec9b8d7f44b984f4b7e63fef | [] | no_license | filipeximenes/pocketgroups | 9ddac6ead4a1c9177ee16042d0587799b2d4ed6a | 038e05918919ea56addcc8ee8a03fdb58a1aefcb | refs/heads/master | 2023-01-31T10:34:44.773305 | 2014-03-11T20:42:32 | 2014-03-11T20:42:32 | 321,978,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "pocket_groups.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"filipeximenes@gmail.com"
] | filipeximenes@gmail.com |
c4d7d75c46ec25a212b1cfbeee50b20600a08d69 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/04aba1caec28dcc7517c85b40addb5a7741683fa-<forward>-bug.py | d3e747f240a2a87fdd136b3ee07c3a22d60075f4 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,193 | py | def forward(fn, input, hx, weight, output, hy):
with torch.cuda.device_of(input):
lib = cudnn.lib
handle = cudnn.get_handle()
fn.datatype = cudnn._typemap[input.type()]
if (fn.mode == cudnn.CUDNN_LSTM):
(hx, cx) = hx
(hy, cy) = hy
else:
(cx... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
841eb95ee6b9c11ffdde9012072e6b231551180c | 413f7768f98f72cef8423c473424d67642f1228f | /examples/19_concurrent_connections/logging_basics.py | 29403ba8c79aec0ee36a0941e54cf9899ba9145a | [] | no_license | easypythoncode/PyNEng | a7bbf09c5424dcd81796f8836509be90c3b1a752 | daaed1777cf5449d5494e5a8471396bbcb027de6 | refs/heads/master | 2023-03-22T01:21:47.250346 | 2022-08-29T18:25:13 | 2022-08-29T18:25:13 | 228,477,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | from datetime import datetime
import logging
import netmiko
import yaml
# эта строка указывает ,что лог-сообщения paramiko юудут выводиться
# только если они уровня WARNING и выше
logging.getLogger("paramiko").setLevel(logging.WARNING)
logging.basicConfig(
format="%(threadName)s %(name)s %(levelname)s: %(message)... | [
"58902135+easypythoncode@users.noreply.github.com"
] | 58902135+easypythoncode@users.noreply.github.com |
22524dddf93a1542d74a2733213b86e31a00e0b1 | 07b37ca45d38edea112895049acf76d96ff07eff | /accessing_wordnet_corpus.py | c3aa0e65995f44694845119c6c752a0d00a29556 | [] | no_license | KRBhavaniSankar/NLTK | e335944de346be72a01c92221b0bf58d85475fb9 | 4b228338566996fbccee72cb6afaa199a6496787 | refs/heads/master | 2020-03-12T23:03:59.981112 | 2018-05-11T01:15:28 | 2018-05-11T01:15:28 | 130,858,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | #load the wordnet corpus
from nltk.corpus import wordnet as wn
word = 'generic' #Taking hike as our word of interest
#get word synsets
word_synsets = wn.synsets(word)
print(word_synsets)
#get details of each synonim in synset
for synset in word_synsets:
print("Synset Name :",synset.name())
print("POS T... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
ea88579c27b7f8a8ef89e82ebcade32178c74eb1 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Chilled_Water.py | 8216f065fd8ec9929686f174599665dcfb228faa | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.UndefinedMeasurement import UndefinedMeasurement
from brick.brickschema.org.schema._1_0_2.Brick.Water import Water... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
0a895d601c0924509bfe1191815c3313619ba43d | b9f1a7d1aba94b23e665389042cd05e3c7ce46f7 | /hw/ip/otbn/dv/otbnsim/sim/ext_regs.py | 42e0020c382ea730c01ffeeb1332e68485a3a71e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alistair23/opentitan | 8b4afd2ee4b1d89bcbb1d9500925b143dabbd0b9 | e7c4b90ed18dea81bc746d4204bf303a404ebe42 | refs/heads/master | 2023-05-06T19:04:27.482175 | 2021-05-21T10:05:23 | 2021-05-23T10:25:56 | 219,881,566 | 0 | 0 | Apache-2.0 | 2019-11-06T01:01:48 | 2019-11-06T01:01:48 | null | UTF-8 | Python | false | false | 7,144 | py | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
from typing import Callable, Dict, List, Sequence
from shared.otbn_reggen import Field, Register, RegBlock, load_registers
from .trace import Trace
class TraceExtRegCha... | [
"rswarbrick@gmail.com"
] | rswarbrick@gmail.com |
7520663142c09e7b6ac6fd8798284023f35b7969 | 92218098622a45ca42d4da67f54f941f717bd7c5 | /frankenflow/flow_graph.py | 3da8dc4777b3e347ec0a6780015c78932ed9c83f | [
"BSD-3-Clause"
] | permissive | krischer/frankenflow | 09b56f508696c07af7d2076f10e55c8f19cd4a65 | b2d6e29330ca2e0e9871c54fd71d6486ca245da7 | refs/heads/master | 2021-05-01T19:28:29.968935 | 2016-09-28T19:33:01 | 2016-09-28T19:33:01 | 45,400,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,728 | py | import datetime
import json
import os
import uuid
import networkx as nx
import networkx.readwrite.json_graph
from . import NoJobsLeft
class FlowGraph():
def __init__(self, filename):
self.filename = filename
if os.path.exists(self.filename):
self.deserialize()
else:
... | [
"krischer@geophysik.uni-muenchen.de"
] | krischer@geophysik.uni-muenchen.de |
cf8c4eebd71c5838c6def0bc9779ca1806c823f2 | 6d7507b0695c5f704f1367604370f52a1cd60fe6 | /testfarm/test_program/app/honor/student/games/sentence_link.py | b7c9e57cb30002aa153e25e084df79ecf4f7afe1 | [] | no_license | sj542484/test | f88b1f0524e853b24759de1bc8019a643bf11dcc | 908bef52867e3944b76898cfcc018fa403202815 | refs/heads/master | 2022-04-09T17:18:40.847936 | 2020-03-25T07:30:55 | 2020-03-25T07:30:55 | 194,576,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,142 | py | # @Author : Vector
# @Email : vectorztt@163.com
# @Time : 2019/8/1 11:47
# -----------------------------------------
from selenium.webdriver.common.by import By
from app.honor.student.games.all_game_common_element import GameCommonEle
from app.honor.student.games.word_restore import RestoreWordGame
from conf.dec... | [
"18330245071@163.com"
] | 18330245071@163.com |
af53fb2532b75c026cd9f5be89848418ca9ea728 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/vnic/VnicIPv4PooledIscsiAddr.py | d33e868096a4d16d60a1988bfafcf7772db150ed | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,913 | py | """This module contains the general information for VnicIPv4PooledIscsiAddr ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class VnicIPv4PooledIscsiAddrConsts():
pass
class VnicIPv4PooledIscsiA... | [
"test@cisco.com"
] | test@cisco.com |
c007398fe337ef1bb8bb70b423bfc2d63d0b6a8a | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Medium/209.minimum-size-subarray-sum.py | 813741f56476bf9d351622d353662599a69cf574 | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | #
# @lc app=leetcode id=209 lang=python3
#
# [209] Minimum Size Subarray Sum
#
# https://leetcode.com/problems/minimum-size-subarray-sum/description/
#
# algorithms
# Medium (38.33%)
# Total Accepted: 285.7K
# Total Submissions: 745.4K
# Testcase Example: '7\n[2,3,1,2,4,3]'
#
# Given an array of n positive integers... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
64edf0fd202d2e38717c0bd45a61b2561157d9ff | 0a6b950b3022dc1afbc1243be572e3dbe5b8b619 | /src/dirbs/api/v2/schemas/msisdn.py | 5b69c62c5705b5761bd614aa4481a3545409ebc4 | [] | no_license | yasirz/DIRBS-Core | dee56bb350b9d511bbdca87afa41bc1f022e534a | ac26dc97c57216dc3c1fed1e1b17aac27d3a1a2d | refs/heads/master | 2023-03-19T01:27:14.390299 | 2021-02-24T11:41:34 | 2021-02-24T11:41:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,378 | py | """
DIRBS REST-ful MSISDN API schema module.
Copyright (c) 2018-2019 Qualcomm Technologies, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the
limitations in the disclaimer below) provided that the following conditions are met:
- ... | [
"awkhan978@gmail.com"
] | awkhan978@gmail.com |
605d2770c781be8febafa6beed2d20b18bfb224c | 3cce418222153054b0395be6757925f5eca26fe2 | /2_code_scripts/utilities_part1.py | 62b39a0797abaa7f01a0a466dc86cac48fd64e51 | [] | no_license | GParolini/learn_IT_girls_python | 7a086d505a086993c6a04e16131c19fc3e120d43 | 2953020fb06cbd3c32f4a46611403a6989518b32 | refs/heads/master | 2020-04-26T23:30:55.138211 | 2019-11-10T21:06:39 | 2019-11-10T21:06:39 | 173,904,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 25 23:37:36 2019
@author: giudittaparolini
"""
"""
These are utilities methods called by main_part1. The utilities include methods to store prints and plots in the correct subfolder, save data to a dictionary
"""
import os
import matplotlib.py... | [
"giudittaparolini@gmail.com"
] | giudittaparolini@gmail.com |
43f0d8a3b3baed05f17baa0ce5bebddd5c528d0e | 1d601297ee17cb0a81d3996fe739502823e3d439 | /SpiderExample/spiders/cd_14selenium_scrapy.py | b795a8d09708568bad6c50768fe5ad7689fcd161 | [] | no_license | cdzm5211314/SpiderExample | 7470c492291f5d0c2fed86e9045a5aa9d6f4db21 | f9f13356462c961f63cefffb94dbf0b775513879 | refs/heads/master | 2020-09-11T12:07:05.963972 | 2019-12-17T10:09:52 | 2019-12-17T10:09:52 | 222,058,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import signals
from selenium import webdriver
class Cd14seleniumScrapySpider(scrapy.Spider):
name = 'cd_14selenium_scrapy'
allowed_domains = ['guazi.com']
start_urls = ['https://www.guazi.com/bj/buy/']
@classmethod
def from_crawler(cls, crawler, *... | [
"123309778@qq.com"
] | 123309778@qq.com |
2ca27b99a197ecfb4ae6ec1df02091060cccefed | d02f9b972dc29160955456d15082e24bf7ec231b | /lumin/nn/__init__.py | 569ee2b6504008af4d4dbe7d73b383186fd2d878 | [
"Apache-2.0"
] | permissive | GilesStrong/lumin | fc644747f77ccfc064cab813b8bf1f5bea965062 | bcaf35731ef48bc6184d090a5180fbc33a3dfe6e | refs/heads/master | 2023-05-26T15:17:47.564892 | 2023-04-28T00:13:10 | 2023-04-28T00:13:10 | 163,840,693 | 48 | 16 | Apache-2.0 | 2023-04-14T01:14:57 | 2019-01-02T12:52:32 | Python | UTF-8 | Python | false | false | 575 | py | # from .callbacks import * # noqa F304
# from .data import * # noqa F304
# from .ensemble import * # noqa F304
# from .interpretation import * # noqa F304
# from .losses import * # noqa F304
# from .metrics import * # noqa F304
# from .models import * # noqa F304
# from .optimisers import * # noqa F304
# from .... | [
"giles.strong@outlook.com"
] | giles.strong@outlook.com |
bfa4b657e3a77b2bc61a2304f1e5386fe7e5db73 | 1328263c26e5344b149a19f4c4ff429d30318981 | /Seção 4/aula_doctest.py | 6cbc04b2b4270a7ba332041c15e7d060d73e9ef2 | [] | no_license | bmsrangel/POO_Python_Udemy | c6cd0c22c71a61ce68377ac637b474a4be89a0b7 | 40c3757c06a6ead7b3dae6e625de22674d080a0c | refs/heads/master | 2020-03-30T22:10:24.141517 | 2019-02-21T04:17:09 | 2019-02-21T04:17:09 | 151,657,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import doctest
class Fib:
def calculo_fib(self, n):
"""
Método para calcular o Fibonacci
>>> f.calculo_fib(10)
55
>>> f.calculo_fib(1)
1
>>> f.calculo_fib(-1)
Traceback (most recent call last):
...
ValueError: O número informado deve ... | [
"bmsrangel@hotmail.com"
] | bmsrangel@hotmail.com |
de6d060829a7c37d12ddc8e931cbc3a3d2fc56f6 | 511a03c30260a06b4b12b04bde31f8c2710e9964 | /nested_reference_otus/nested_reference_workflow.py | 7bfe71201d5721a734c48a73c3516f3188422569 | [] | no_license | wasade/nested_reference_otus | 0c64e80ef44a7da2bdd17848defc2d9af65cbd08 | efa1ef8bf0ba7b71bee7d19c126ffb3bfa888872 | refs/heads/master | 2021-01-15T20:17:55.526486 | 2012-06-28T04:03:02 | 2012-06-28T04:03:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,017 | py | #!/usr/bin/env python
from __future__ import division
__author__ = "Greg Caporaso"
__copyright__ = "Copyright 2011, The QIIME project"
__credits__ = ["Greg Caporaso"]
__license__ = "GPL"
__version__ = "1.5.0-dev"
__maintainer__ = "Greg Caporaso"
__email__ = "gregcaporaso@gmail.com"
__status__ = "Development"
"""Cont... | [
"jai.rideout@gmail.com"
] | jai.rideout@gmail.com |
2cc206bfe7d4ae5d97ccacc807ed74d56bbacad0 | 8f6c9203b260d832860aa6e434ab668e170cfb1d | /test/test_010_store_migrate.py | f50f8043cf20d3ce5d1fba03d9ae45db90494d6d | [
"Apache-2.0",
"FSFAP",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | igalic/mod_md | 66ad0938d4ca71f995f61a7d487ce5ade0d8c5cc | 105fca1a8a87c46c105cb9b38d13f998318c1db2 | refs/heads/master | 2023-08-15T11:01:24.290650 | 2021-10-19T12:27:17 | 2021-10-19T12:27:17 | 419,234,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | # test mod_md acme terms-of-service handling
import os
import pytest
from md_conf import HttpdConf
class TestStoreMigrate:
@pytest.fixture(autouse=True, scope='class')
def _class_scope(self, env):
HttpdConf(env).install()
assert env.apache_restart() == 0
# install old store, start a2md... | [
"stefan.eissing@greenbytes.de"
] | stefan.eissing@greenbytes.de |
0b1b850a0c827160275801b1274b2c3eebf92d48 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/al3tunnelifp.py | a535e037e380698cba88e1ff9670897d39270864 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
fbc6b13158f1958220100d09a8e59ecce5b4ece8 | 59f8e783abe9949cf9e9aef5936d2349f7df7414 | /methyl/ma_analysis/epigenotyping-old/xprobpathsimple.py | ecc9a6d11850fa495e11a6306dba905c98d1c7e0 | [] | no_license | bhofmei/analysis-scripts | c4d8eafde2834b542c71c305e66c4e6f8a6e2c57 | 189bf355f0f878c5603b09a06b3b50b61a11ad93 | refs/heads/master | 2021-01-17T17:26:30.799097 | 2019-10-27T12:49:10 | 2019-10-27T12:49:10 | 56,076,808 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | import pandas as pd
import numpy as np
import math
class ProbPathSimple:
### This implements the Viterbi algorithm that finds the sequnce with
### maximum likehood
def __init__(self, df, transitions ):
self.transMat = transitions #.tolist()
self.data = df
#print(df.iloc[0:4,0:4])
self.size = self.data.sha... | [
"bhofmei@gmail.com"
] | bhofmei@gmail.com |
1a1b2a98023d457f7e9996618421b70baa7efcf9 | ca384188345d5302c450e8a8c8475e691c1e7e66 | /manage.py | 6e33f6e5fee8455b472de55e20dbc0d412955231 | [] | no_license | EdwardOkech/eDarasa | 8b44154596960ebc9cff8eca481f02eadfff3a9d | 1bd94a4337ebc5519a23e55badb022e65a924601 | refs/heads/master | 2020-03-16T23:32:50.299182 | 2018-05-23T22:51:19 | 2018-05-23T22:51:19 | 133,081,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'jm_lms.settings.dev_sample')
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"okechjobs@gmail.com"
] | okechjobs@gmail.com |
9c464d23bf09a24bf83e4fe582246bc345f25463 | 8c1953056a1a606285d41f46f4cc97f77012cdf8 | /xpcom/glue/moz.build | e314b826cf8f251b5536ca5006e3b3a6064ee6c4 | [] | no_license | Patclash/palemoon27 | 26b29ac9b2d7fab01ccfdba8a2ecd7dda240bf6e | 0a2ee1ef299e324292d79dbeebb924c815ca81b1 | refs/heads/master | 2020-06-16T07:49:55.941630 | 2019-07-05T15:17:35 | 2019-07-05T15:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,760 | build | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
with Files('... | [
"roytam@gmail.com"
] | roytam@gmail.com |
d2192b181f31b452a15e37c061ac6e6114b8ea23 | 14948d7efd615b4b25ecdad10ab01eeafc8b82ac | /setup.py | 8352e8c8727496ec5b60650c3b0bb5f7bc712eef | [
"Apache-2.0"
] | permissive | Zed-Wu/ManiSkill | 84619f075a7eb1c6297a68365fd3420c5d4c9850 | 46126731cd9bf4ca0a9f777a2c6d3b7273c2d35e | refs/heads/main | 2023-08-31T16:21:17.000449 | 2021-10-21T13:19:00 | 2021-10-21T13:19:00 | 418,172,498 | 0 | 0 | Apache-2.0 | 2021-10-17T15:23:40 | 2021-10-17T15:23:40 | null | UTF-8 | Python | false | false | 137 | py | from setuptools import setup
setup(
name="mani_skill",
version="1.0",
author="SU Lab at UC San Diego",
zip_safe=False,
) | [
"tongzhou.mu@gmail.com"
] | tongzhou.mu@gmail.com |
7495be7df891972c923c9ee7fda945f6ac26420a | 5c8139f1e57e06c7eaf603bd8fe74d9f22620513 | /PartB/Py华为2020.4.15.py | 8f713148e7ff7eaed2144c7812ffe1eaa9e28e02 | [] | no_license | madeibao/PythonAlgorithm | c8a11d298617d1abb12a72461665583c6a44f9d2 | b4c8a75e724a674812b8a38c0202485776445d89 | refs/heads/master | 2023-04-03T07:18:49.842063 | 2021-04-11T12:02:40 | 2021-04-11T12:02:40 | 325,269,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py |
# 字典的多条件的排序
# list2 = input().strip().split(",")
def fun(str2):
list3 = list(str2)
if ord(list3[0])<65 or ord(list3[0])>90:
return False
for i in (1,len(list3)-1):
if ord(list3[i])<97 or ord(list3[i])>122:
return False
return True
def test(list3):
list2 = list3.strip().split(",")
for i in list2:
i... | [
"2901429479@qq.com"
] | 2901429479@qq.com |
9fc64b7f34a7c1cacf4493a3a816f7acc732db10 | 0adeb7b0af4001d87975a1d6c0147ad7222ecdfd | /creditagricole_particuliers/logout.py | 423511348a4e6b6688cdc8bbecd635661de03518 | [
"MIT"
] | permissive | arkamor/creditagricole-particuliers | eee8f4d092cb4104151f70d75379b0af4c37f7f1 | 6d2ee4a9dd93b8426c309c688494a079d8add85b | refs/heads/master | 2023-09-04T06:45:01.249966 | 2021-10-22T06:06:57 | 2021-10-22T06:06:57 | 424,376,288 | 0 | 0 | MIT | 2021-11-03T20:49:45 | 2021-11-03T20:49:44 | null | UTF-8 | Python | false | false | 651 | py | import requests
class Logout:
def __init__(self, session):
"""logout class"""
self.session = session
self.logout()
def logout(self):
"""logout from remote"""
url += "%s" % self.session.url
url += "/ca-%s/particulier.npc.logout.html?resource=" % self.sess... | [
"d.machard@gmail.com"
] | d.machard@gmail.com |
0a7a7869a1d880b8b7cd9afbbf3e5de36f0bc35b | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /8_heap/MinMaxHeap.py | 1fe82b099f2750731139b1147fb0b729aa1059c6 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 2,806 | py | # https://judge.yosupo.jp/submission/109819
# 懒删除的堆 维护最大最小值
from heapq import heapify, heappop, heappush
from typing import List, Optional
class MinMaxHeap:
__slots__ = ("_max_heap", "_min_heap", "_max_deleted", "_min_deleted", "_size")
def __init__(self, nums: Optional[List[int]] = None):
... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
47217a8c2b6aa6e895fa962397279ce02a51a1fc | 0e51815b524229c7562572f10d178eb446cb7715 | /DB_Relations3/DB_Relations3/settings.py | b9da742f8da7f626f9a3e5b14877aa30d6703e19 | [] | no_license | Eswar0407/Django-10Am | 4d38cc795d7233bf5b6d1792755b018584a7c627 | c668b96dd69c72daba09bc944134302073827fae | refs/heads/master | 2023-07-16T23:52:52.820204 | 2021-09-05T17:57:14 | 2021-09-05T17:57:14 | 374,605,139 | 0 | 0 | null | 2021-06-13T16:20:40 | 2021-06-07T09:16:52 | Python | UTF-8 | Python | false | false | 3,331 | py | """
Django settings for DB_Relations3 project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import ... | [
"eswarbablu@gmail.com"
] | eswarbablu@gmail.com |
e0168e49c2083765debc145720d595eb8e6c944b | 709b1549033c9a547c67ee507fdc10b7e5d234ad | /test/test_scheduled_task_status_resource.py | 425d94e2d2ce8cb34fbbd855dea0070542e41d51 | [
"Apache-2.0"
] | permissive | cvent/octopus-deploy-api-client | d622417286b348c0be29678a86005a809c77c005 | 0e03e842e1beb29b132776aee077df570b88366a | refs/heads/master | 2020-12-05T14:17:46.229979 | 2020-01-07T05:06:58 | 2020-01-07T05:06:58 | 232,135,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | # coding: utf-8
"""
Octopus Server API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a
Generated by: https://github.com/swagger-api... | [
"d.jain@cvent.com"
] | d.jain@cvent.com |
b9b7caf9187f1b2f3c954efa2a85844a68486693 | e423c84898f3fbb1e43c49475aedad0d6547c22f | /tensorflow/lite/python/metrics_nonportable.py | 046fef25a782bf0b9c613107f2f4aef12d314cfb | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | yash982000/tensorflow | 9a9cfd1433bae84a5f197c20f5d3526883f781a2 | 0d09ce8fc82d8eaf9734bd50ea5f0bf739be766c | refs/heads/master | 2023-05-09T07:35:24.800146 | 2021-05-31T16:15:35 | 2021-05-31T16:15:35 | 358,957,873 | 1 | 0 | Apache-2.0 | 2021-05-31T16:15:36 | 2021-04-17T18:50:16 | null | UTF-8 | Python | false | false | 4,168 | py | # Lint as: python2, python3
# Copyright 2021 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
#
... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
0aed2ea561bf0c1b6227f6fe93262efcac3a14d9 | 1264671c77465c47ec4502a58b6918c1182c8a3d | /testsuite/tiff-depths/run.py | fb99a896bd9e0ae664fc6cb6de09bfbc41f73e2f | [
"BSD-3-Clause",
"CC-BY-3.0"
] | permissive | sol-ansano-kim/oiio | 4ecff6edd720b9957952d081afc4460b2fef7012 | 0772aa61f2210682a6a5e720ad74c7cfe62fee45 | refs/heads/master | 2021-01-23T01:18:19.334227 | 2017-03-17T12:56:01 | 2017-03-22T20:52:48 | 85,896,161 | 0 | 2 | null | 2017-03-23T02:07:11 | 2017-03-23T02:07:11 | null | UTF-8 | Python | false | false | 3,086 | py | #!/usr/bin/env python
# FIXME -- eventually, we want more (all?) of these to work
imagedir = parent + "/libtiffpic/depth"
files = [
"flower-minisblack-02.tif", # 73x43 2-bit minisblack gray image
"flower-minisblack-04.tif", # 73x43 4-bit minisblack gray image
"flower-minisblack-06.tif", # 73x43 6... | [
"lg@larrygritz.com"
] | lg@larrygritz.com |
0a4984dbb9a8c7cf837be9f79c2254da38a5437c | 1699300e1225f0994fbfd5e13a7eb4436a5df14d | /13_PFW_Mini_Scans/02_NoSC_Tomo_Lattice_H_21/simulation_parameters.py | eebabd01e5f127c3e8375724c35b43d4c76f9775 | [
"MIT"
] | permissive | HaroonRafique/PyORBIT_MD4224 | 26307a60ed79f3e170fbd655eb8cbe8cc9a0dfa9 | 6f68a80b2f8bf1cbeb9e2fc840925efe8a8b5672 | refs/heads/master | 2023-04-25T13:27:49.756836 | 2020-08-25T10:26:07 | 2020-08-25T10:26:07 | 215,249,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,014 | py | import numpy as np
parameters = {}
parameters['tunex'] = '621'
parameters['tuney'] = '624'
parameters['lattice_start'] = 'BWSH65'
parameters['DistType'] = 'Tomo'
parameters['n_macroparticles'] = int(5E4)
parameters['lattice_version'] = 'Optimised'
parameters['TwissType'] = 'Lattice'
paramet... | [
"haroon.rafique@protonmail.com"
] | haroon.rafique@protonmail.com |
5ce97c4c78cd2e7b1a45f8d34932eabcce63aaa1 | eef6292c0ec65dff001c48246212a276274d3b2c | /Src/settings/dev.py | 6606d7b142a3251d1ca1944f49cfaa4f162f25a0 | [
"Apache-2.0"
] | permissive | DennisMi1024/TinyBlog | 664938cef46307cce807709ee3a1958dadb92635 | 696fe6d3428ac153d5f25ef3f0550cd8be8cddd8 | refs/heads/master | 2021-01-20T17:57:58.287800 | 2016-07-14T10:07:41 | 2016-07-14T10:07:41 | 63,322,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from .base import *
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'MyBlog',
'USER':'root',
'PASSWORD':'dennis',
'HOST':'192.168.10.105',
'PORT':'3306',
}
}
ALLOWED_HOSTS = ['localhost', ]
MIDDLEWARE_CLASSES += (
... | [
"you@example.com"
] | you@example.com |
fc376aab811a299b5a024a7b49d155347740f070 | 30f540cde58a44b1facbb0c9d6c646ce241d12c1 | /sudofire/asgi.py | ede5cfc9e041ef35586532266d08a3606c37c53f | [] | no_license | Ratnambar/sudofire | fea4c4a67cefb25d63079a2031242ef1f627d233 | 49b72061f62fb324f2a221f2cbf55ac644df5f75 | refs/heads/main | 2023-01-07T22:33:19.353581 | 2020-11-04T11:36:45 | 2020-11-04T11:36:45 | 309,981,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for sudofire project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"ratnambar123gupta@gmail.com"
] | ratnambar123gupta@gmail.com |
9723550d9338fac828cacdd4ae5354daadb25a82 | a3f4dd94c89450df3514f282ee0750cb3ddc30c6 | /scripts/undocumentedTemp/fitCCData.py | ad483a0f436079a50abdb559beee7d606346007f | [
"CC-BY-4.0",
"LicenseRef-scancode-public-domain"
] | permissive | wachtlerlab/GJEphys | fda30b6362dbef02f84b40add545606c5548b96c | 93e8099b8192ad8c6940ee8374d40cb50b4d66e6 | refs/heads/master | 2020-03-21T15:24:24.344085 | 2019-05-20T09:36:27 | 2019-05-20T09:36:27 | 138,710,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | from GJEphys.simParamExtract import *
from easygui import fileopenbox
import matplotlib.pyplot as plt
import numpy as np
hdf5 = fileopenbox('Indicate the HDF5 file containing Current Clamp Data', filetypes=['*.hdf5'])
spe = SimulationParameterExtracter()
spe.loadCCData(hdf5)
spe.getTimeConstants() | [
"ajkumaraswamy@tutamail.com"
] | ajkumaraswamy@tutamail.com |
86a1fc45bbf6f01eba7c41861ffbbb5d52c84cd2 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-clouddeploy/huaweicloudsdkclouddeploy/v2/model/update_deployment_host_request.py | fee927f2ffd2748bb4ac92e5834f1f018812e318 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateDeploymentHostRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict)... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cd886f2ef18a6408ff4fe0dd230bc72b8da317d2 | 8b7334be253552c4a2982e3022d211ad8970abf6 | /data/migrations/0026_auto_20170817_1716.py | 6a3bf9f31f8d42400c92cf7032e1c40faf376700 | [
"MIT"
] | permissive | Duke-GCB/bespin-api | e5442bf66471bd9469f8094575a1efc00eafc700 | cea5c20fb2ff592adabe6ebb7ca934939aa11a34 | refs/heads/master | 2021-08-16T05:36:25.323416 | 2019-10-18T15:30:16 | 2019-10-18T15:30:16 | 69,596,994 | 0 | 3 | MIT | 2021-06-10T18:55:46 | 2016-09-29T18:41:56 | Python | UTF-8 | Python | false | false | 754 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2017-08-17 17:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0025_job_cleanup_vm'),
]
operations = [
migrations.AddField(
... | [
"johnbradley2008@gmail.com"
] | johnbradley2008@gmail.com |
4d0f4328a3ef6df871959e28f53ad5198296bb07 | e26cfc715513ae3b4393ea918e78ed5f27664dff | /src/textgrid_tools_cli/grids/grid_paths_exporting.py | ed688bdaa8bfb25e4d1dceac92bf1c275d40246f | [
"MIT"
] | permissive | stefantaubert/textgrid-ipa | f4cd52b2c9d53570587b030dec758176229ee5e0 | ada294513315d76db7e91cbbfb7c386a75f84966 | refs/heads/main | 2023-06-09T01:30:18.159171 | 2023-05-30T15:23:18 | 2023-05-30T15:23:18 | 301,960,070 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | from argparse import ArgumentParser, Namespace
from pathlib import Path
from typing import List
from tqdm import tqdm
from textgrid_tools_cli.globals import ExecutionResult
from textgrid_tools_cli.helper import (add_directory_argument, add_encoding_argument,
get_grid_files, pars... | [
"23339395+stefantaubert@users.noreply.github.com"
] | 23339395+stefantaubert@users.noreply.github.com |
3408782c4915a37d2a699d151e4f6bfe56dc2f0c | 54c08823016949aa23ff1d372cf70778e6f88758 | /examples/SVG(1)/navigation_defaults.py | d645f4652e5b71a4eb4fc2ffb86b96a92a2301df | [
"MIT"
] | permissive | jCrompton/raylab | b4d41c446bc4d8d9ea42ebfdfad59c61956bfe98 | 9773d6fb942c06c65fe5297a8275f86649966abd | refs/heads/master | 2022-11-05T21:59:06.704075 | 2020-06-08T15:36:20 | 2020-06-08T15:36:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | from ray import tune
def get_config():
return {
# === Environment ===
"env": "Navigation",
"env_config": tune.grid_search(
[
{"deceleration_zones": None},
{"deceleration_zones": {"center": [[0.0, 0.0]], "decay": [2.0]}},
]
),
... | [
"angelolovatto@gmail.com"
] | angelolovatto@gmail.com |
339a763309fc15e04ee86586f97ef68c7dac623f | f5a2b612cef1f977f6bc52993f56f5b5196edfa2 | /setup.py | 814e1f871a11ce110faae667587e0bc97a69c873 | [] | no_license | pierre-haessig/mpl-probscale | 04383419c1c7ce7216440abcc39dbcaeb9329b46 | a79713df98154f0bcdedcf7dfcfa892d34c053dd | refs/heads/master | 2021-01-17T06:30:01.267038 | 2016-01-04T02:26:57 | 2016-01-04T02:26:57 | 48,982,899 | 0 | 0 | null | 2016-01-04T08:03:11 | 2016-01-04T08:03:10 | null | UTF-8 | Python | false | false | 1,525 | py | # Setup script for the probscale package
#
# Usage: python setup.py install
import os
from setuptools import setup, find_packages
DESCRIPTION = "mpl-probscale: Probabily scales for matplotlib"
LONG_DESCRIPTION = DESCRIPTION
NAME = "probscale"
VERSION = "0.1.0"
AUTHOR = "Paul Hobson (Geosyntec Consultants)"
AUTHOR_E... | [
"pmhobson@gmail.com"
] | pmhobson@gmail.com |
238d06e96059a2a0aaa1bd2749ad4e765e86d4f8 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/datamgr/datamanager/auth/exceptions.py | cdfef3454adac2195833116706b108c3f990e06a | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 1,721 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
4a53a14c1598f035e7408cfe28b84240005d16c5 | 1515be3015ad988278d5a095416c0a0066a02757 | /src/users/models/microsoftgraphpage_links.py | d2b6aa1063b11422ac98a8f9677107c02c85bb83 | [
"MIT"
] | permissive | peombwa/Sample-Graph-Python-Client | 2ad494cc5b5fe026edd6ed7fee8cac2dd96aaa60 | 3396f531fbe6bb40a740767c4e31aee95a3b932e | refs/heads/master | 2020-12-29T09:50:38.941350 | 2020-02-05T22:45:28 | 2020-02-05T22:45:28 | 238,561,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"peombwa@microsoft.com"
] | peombwa@microsoft.com |
afaba3927afa94096a102e6a5a3c224507486ce8 | b1eac26c0b18bd8ce0a9e51e947bbfb3a90533dc | /lightbulb/changelog.py | 64356142390f09880b58a78f8dcfe12d17ab2e0b | [
"BSD-3-Clause"
] | permissive | mylittlepython/lightbulb | 14b61f4ba83a5888f31a186c36ad0dcbd26f9287 | 1bf13f69e04b23c5a514631ad0fa71015762fd43 | refs/heads/master | 2020-12-25T10:49:46.816483 | 2012-03-29T23:30:38 | 2012-03-29T23:30:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | import re
import os
import time
from config import Path
from utils import execute
from pickledb import PickleDB
# not using JSON because we want to maintain order in the dict
class ChangeLog(PickleDB):
db_name = "changelog"
def initialize(self, config):
self.config = config
self.path = Path(... | [
"james.thornton@gmail.com"
] | james.thornton@gmail.com |
85a4b7c767fbfcf17b14001b5b6e75eac4142368 | b5d968f0436f29a92be7fbaf9b8ee19f698f3b20 | /linked_list/rev_ll_2.py | 40a0bcf88e3a9fb80112eb261f7da3fa82acac17 | [] | no_license | asperaa/programming_problems | 35a2504c6f114812c1cb938f7df1486e84a66636 | d055d93dfb9f7945a4250663a58d0dd0231f2353 | refs/heads/master | 2020-06-02T02:20:09.793839 | 2019-12-05T10:14:42 | 2019-12-05T10:14:42 | 191,003,597 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | """Reverse a linked list (practice 2) """
# class for a node
class Node:
# initialise the node with data and next pointer
def __init__(self, data):
self.data = data
self.next = None
# class for a linked list
class LinkedList:
# initialise the head of the linkedlist
def __init__(self):
... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
70b7aa2bdc2401cc729902a7ff22e5e021d5d00e | bab7c1537a235a5334223f3beb17c904c05c1a36 | /commons/parse.py | ffbc86df09d77c3e482a5b990e68f7d88c8e7411 | [] | no_license | sesmond/labelme | 8c6250c005e2e8d9d8005630ee63257073ba8661 | 476005a64e09257053378511020cf9093dc4f989 | refs/heads/master | 2021-04-01T00:25:37.997196 | 2019-12-25T04:36:02 | 2019-12-25T04:36:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | #coding=utf-8
'''
用于解析ali的调用结果
1. 遍历文件夹读取文件夹中的json文件和image图片
2. 拿出json将坐标信息整理成新的文件
3. 将新的坐标文件和对应的图片文件存入到新的位置
find . -name "*.json"|xargs -I {} cp {} ~/Downloads/ocr_labels
find . -name "*.JPG" |xargs -I {} cp {} ~/Downloads/ocr_images
'''
import os
import json
import shutil
import time
import sys
import logging
from ... | [
"piginzoo@gmail.com"
] | piginzoo@gmail.com |
5dac2d0fea5cca2b67023cf57e22313d070d5831 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/do/datastore_mount_path_datastore_pair.py | 1cff6a490fbd9e28a10aae75183affc20d3dae57 | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py |
import logging
from pyvisdk.exceptions import InvalidArgumentError
########################################
# Automatically generated, do not edit.
########################################
log = logging.getLogger(__name__)
def DatastoreMountPathDatastorePair(vim, *args, **kwargs):
'''Contains a mapping of an ol... | [
"jmb@pexip.com"
] | jmb@pexip.com |
22338eeab97e9255c632bf94bb56d48fc7831127 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/277/84640/submittedfiles/testes.py | 2130d8bf1d4572fae553dcd7aff27e156e681e2f | [] | 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 | 1,182 | py | # -*- coding: utf-8 -*-
n1 = int(input('Digite o n min: '))
n2 = int(input('Digite o n max: '))
for x in range(n1,n2+1,1):
for y in range(n1,n2+1,1):
if (x == 0 and y == 0) :
break
print('(%d,%d) ' % (x,y))
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d55d2c3d49d8132ec0a363b7274313590d3ae23e | ca0c976dea6867242cc79f7b787e7d558fb6873b | /styleguide_example/api/common/errors.py | a798769c7e02979d11265df291a04c7dc6ce5a8e | [
"MIT"
] | permissive | boconlonton/drf-styleguide-sb | 876deb2c36982e590c8de9205af230ddd2d65547 | a67e4edc8bc1ea0edccb5d9c0fef714111ee29dd | refs/heads/master | 2023-08-22T09:11:20.454149 | 2021-10-01T03:44:40 | 2021-10-01T03:44:40 | 410,801,164 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | from rest_framework.views import exception_handler
from rest_framework.settings import api_settings
from rest_framework import exceptions
from styleguide_example.api.common.utils import get_first_matching_attr
def get_error_message(exc):
if hasattr(exc, 'message_dict'):
return exc.message_dict
error... | [
"tan.truong@go2joy.vn"
] | tan.truong@go2joy.vn |
7bceecb66b6c2db293cf6ba6a3e24cf9eef8ec82 | 02f5b2ccdfaca4c0640bd9b4b24861293fdfc52a | /templet/utils/user/userinfo_save.py | 6f325b541c5e6380472fb7da514a4e33fdecaa28 | [] | no_license | django-xxx/django-project-templet-cn | c316b7edf49e477494f545c0e0fc4ec70a12de9b | 67211e4e4dea60dd63c3090fc430c65077086512 | refs/heads/4.x | 2023-04-06T12:13:45.267423 | 2023-02-07T04:08:11 | 2023-02-07T04:08:11 | 97,332,663 | 1 | 0 | null | 2023-03-31T15:33:13 | 2017-07-15T17:48:42 | Python | UTF-8 | Python | false | false | 648 | py | # -*- coding: utf-8 -*-
def userinfo_save(userinfo):
""" Save profile or something else """
# from account.models import UserInfo
# from django.conf import settings
#
# unique_identifier = userinfo.get(settings.WECHAT_UNIQUE_IDENTIFICATION, '')
#
# user, created = UserInfo.objects.select_f... | [
"brightcells@gmail.com"
] | brightcells@gmail.com |
6b42e079d0f23607813ae478170e0fc4097f17e6 | b77c9c5e633c9ac2881c67ba860f0814dabcda69 | /01 - Basics/15-flowcontrol-switch-statements_.py | 1521d7c011b082938a58793c382dbb9c9a325851 | [] | no_license | AdamsGeeky/basics | 943758c3b6fec354f38cd0999218bf04f8df25b3 | 2a151bbff4b528cefd52978829c632fd087c8f20 | refs/heads/master | 2023-02-05T08:22:44.585947 | 2020-12-30T07:14:04 | 2020-12-30T07:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,342 | py | # HEAD
# Python Basics - Implementing Switch statements in Python
# DESCRIPTION
# Describes how to Implement Switch statements in Python
# Python doesnt support switch statement officially
# Only Alternate methods are available
#
# RESOURCES
#
# Alternative methods involve creating a dictionary
# ... | [
"ganeshsurfs@gmail.com"
] | ganeshsurfs@gmail.com |
5080211f30ce723322721b8571bac04a8ac90c64 | 03f1519986ee2b553a7e07ce3193e9d5eae6abde | /saklient/cloud/errors/mustbeofsamezoneexception.py | c5ec7632cfd86eb8f37655431b682f7c539c22c8 | [
"MIT"
] | permissive | sakura-internet/saklient.python | 4343cdedd24532704d7d4b7dfa0745c50fd6f3be | 96174e0adbd5006c9b9519ca4d5924cc492f4262 | refs/heads/master | 2021-01-01T05:06:06.130497 | 2020-12-16T08:10:03 | 2020-12-16T08:10:03 | 23,689,552 | 8 | 3 | null | 2015-08-20T04:10:24 | 2014-09-05T03:53:44 | Python | UTF-8 | Python | false | false | 826 | py | # -*- coding:utf-8 -*-
# This code is automatically transpiled by Saklient Translator
import six
from ...errors.httpbadrequestexception import HttpBadRequestException
import saklient
str = six.text_type
# module saklient.cloud.errors.mustbeofsamezoneexception
class MustBeOfSameZoneException(HttpBadRequestException)... | [
"townewgokgok@gmail.com"
] | townewgokgok@gmail.com |
71fd13d664ad95c744215ecf7429f089b8df7840 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/py00244tutorial_room_4.py | fb3a490a6f8ab9fcff55a5bcb82cfd86d7ba23da | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from toee import *
from combat_standard_routines import *
def san_heartbeat( attachee, triggerer ):
for obj in game.obj_list_vicinity(attachee.location,OLC_PC):
if ( (critter_is_unconscious(obj) == 0) and (obj.distance_to( attachee ) < 15) ):
#attachee.turn_towards(obj)
if not game.tutorial_is_active():
... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
b0a4de9c28ae06b7406e2e484b63b1fd8b31463a | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/special_binary_string.py | 496e03f66a5e6e9ae03d67acb734b9a9196d3ebb | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Special binary strings are binary strings with the following two properties:
The number of 0's is equal to the number of 1's.
Every prefix of the binary string has at least as many 1's as 0's.
Given a special string S, a move consists of choosing two consecutive, no... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
32463aa5b36db9b63161f5c933f49c4c2bfa18d6 | a485be36d674613021c6d6712eb8c0d71fc08c1d | /tweet2vec/csv_to_txt.py | 9b6a1c4d17d9d1ec6894a8f0709b5c76dcb44369 | [
"BSD-2-Clause"
] | permissive | manueltonneau/tweet2vec | 60c9587434b4fd5067364f0faa2a314ff99940bb | 303eda7b8202e08b2853155e4c9a9c344d009692 | refs/heads/master | 2022-07-17T03:13:08.771021 | 2020-05-19T07:15:47 | 2020-05-19T07:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | import csv
import argparse
import os
from pathlib import Path
def get_args_from_command_line():
"""Parse the command line arguments."""
parser = argparse.ArgumentParser()
parser.add_argument("--input_csv_path", type=str)
parser.add_argument("--text_column_order", type=int)
args = parser.parse_args(... | [
"manuel.tonneau@mailbox.org"
] | manuel.tonneau@mailbox.org |
bf93df67f830e2980558a9d9134269245a1e2c05 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/common/types/criterion_category_availability.py | 5dd326119e67b55917a80a570c9a90c2f401ec74 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 5,860 | 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"
] | GerhardusM.noreply@github.com |
7a9187301235cca58d38e6b7f9c967c111e69a7a | 5a9b2bf5b2e1f429fe8ec99d832b17db545ac199 | /19년 8월/day_10/wo/wo.py | 1b8977acb77d477d875fb5a6b9d80d86b488c73a | [] | no_license | pp2pppp2/py_L | 290b548e3bea438b16c1d39f43786a18fb178f74 | d72872be3ede5f789103b83a040f2963f7c91d0b | refs/heads/master | 2020-07-13T08:27:25.045600 | 2019-11-15T08:04:45 | 2019-11-15T08:04:45 | 205,044,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import sys
sys.stdin = open("input.txt")
T = int(input())
for tc in range(1, T+1):
N, M, K = map(int,input().split())
data = [[0 for _ in range(M)] for _ in range(N)]
t = [list(map(int,input().split())) for _ in range(K)]
d = [0 for _ in range(11)]
d[0] = N * M
for a in range(K):
cnt = ... | [
"pjh9736@gmail.com"
] | pjh9736@gmail.com |
79a26f5aa44461ee3bb871a1fa1963214bb2716c | 5527d3854ad0840fb4a0a9893447535cd5e6ad0f | /python/ThirteenTeV/QstarToQZ_M_4000_TuneCUETP8M1_13TeV_pythia8_cfi.py | e5dcf2c1c2e29c1dba16cbe527c3388f2965ff7d | [] | no_license | danbarto/genproductionsSummer16 | ecf2309c1627b4db3e4a1b8785ca612d9a59426f | 655ef31aa5f05d0117aeef82d107f07a1fd5d822 | refs/heads/master | 2020-03-26T23:12:37.115369 | 2018-08-21T14:23:30 | 2018-08-21T14:23:30 | 145,520,233 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(0.1526),
filterEfficiency... | [
"daniel.spitzbart@cern.ch"
] | daniel.spitzbart@cern.ch |
37feb4703d26106f1e44f45658f1683ff8db582c | acb458e670b217d15e837d314c19a49df397a16d | /1780.py | 578e0617dcf6b280bf71658bbe795e2ea53a1aac | [] | no_license | mickymicmouse/Algorithm | 677c5d449b493dfcc077639ef49dda4b144446bb | 12a30c5c34318a57d4bfacead3b58d613104c1ca | refs/heads/main | 2023-06-24T15:36:04.314216 | 2021-07-27T02:12:53 | 2021-07-27T02:12:53 | 324,720,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(40000)
n = int(input())
square= [list(map(int,input().split(' '))) for _ in range(n)]
m_count=0
z_count=0
p_count=0
def cut(x,y,w):
global m_count, z_count, p_count
m_num=0
z_num=0
p_num=0
num = w**2
for i in range(x,x+w):
fo... | [
"mickymicmouse@gmail.com"
] | mickymicmouse@gmail.com |
fe1285cdd99304e521b044ad82e5741f9f6e30c8 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /notifications/common/formatters/structureDestructRequested.py | b0be00f73a8fdc9bdc7214e56b388744aecf529d | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\notifications\common\formatters\structureDestructRequested.py
import gametime
from localization import GetByLabel
from notifications.common.formatters.baseFormatter import BaseNotificationFormatter
STRUCTURE_TYPE_ID = 'structur... | [
"le02005@163.com"
] | le02005@163.com |
7c21f340939f3cd006cb8ce92f573eee844cac12 | 5dec96a4833bea52d5105a77f45022f2c3c3157a | /DEEPLEARNING/DL_SQUEEZESEG/src/kitti_velodyne_to_ros/script/squeezeseg/nets/squeezeSeg.py | b403fb1917176b437dbe924a0d22246278ff8e76 | [
"BSD-3-Clause"
] | permissive | jtpils/DINK | ebb3259d0fb8da0db46f670659bbb98c5b34c317 | 5f6b3eaba279126f79ae6607f965311002d7451c | refs/heads/master | 2020-04-28T23:47:42.726499 | 2019-03-14T15:10:32 | 2019-03-14T15:10:32 | 175,669,731 | 1 | 0 | BSD-3-Clause | 2019-03-14T17:32:06 | 2019-03-14T17:32:06 | null | UTF-8 | Python | false | false | 8,032 | py | #-*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2019, FPAI
# Copyright (c) 2019, SeriouslyHAO
# Copyright (c) 2019, xcj2019
# Copyright (c) 2019, Leonfirst
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the fol... | [
"2281504330@qq.com"
] | 2281504330@qq.com |
5d774dc5b61c345b314509522f53ecf7ba22ff9b | b40d1a26ea04a19ec0da7bf55db84b7ee36cc898 | /algoexpert.io/python/Single_Cycle_Check.py | dbb5372f72bcea562fbbd0fc153a0c53cd97a558 | [
"MIT"
] | permissive | partho-maple/coding-interview-gym | 5e8af7d404c28d4b9b52e5cffc540fd51d8025cf | 20ae1a048eddbc9a32c819cf61258e2b57572f05 | refs/heads/master | 2022-09-11T16:36:01.702626 | 2022-03-14T08:39:47 | 2022-03-14T08:39:47 | 69,802,909 | 862 | 438 | MIT | 2022-08-18T06:42:46 | 2016-10-02T14:51:31 | Python | UTF-8 | Python | false | false | 781 | py | # https://www.algoexpert.io/questions/Single%20Cycle%20Check
# O(n) time | O(1) space - where n is the length of the input array
def has_single_cycle(array):
number_of_elements_visited = 0
current_index = 0
while number_of_elements_visited < len(array):
if number_of_elements_visited > 0 and curren... | [
"partho.biswas@aurea.com"
] | partho.biswas@aurea.com |
705048bfbbb9108a074a3324b87ffc7fc6cdeb9b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2717/60712/321209.py | c9a667f59a983b59b917c64d598067c452a03ed7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | l=[]
for i in range(1):
l.append(input())
if l==['["c==c","b==d","x!=z"]']:
print('true')
elif l==['["a==b","b!=c","c==a"]']:
print('false')
elif l==['[[0,0],[2,0],[1,1],[2,1],[2,2]]']:
print('A')
elif l==['AABAAABBABAAB', '4']:
print(12)
else:
print(l) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7d54918a2b0fa436c9cb133774ca60700e8bba84 | afd2087e80478010d9df66e78280f75e1ff17d45 | /tools/lldb/pytorch_lldb.py | 4907bc1e6854a2b2e76d383a7f85695fa4436bfb | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 3,443 | py | from typing import Any
import lldb # type: ignore[import]
def get_target() -> Any:
target = lldb.debugger.GetSelectedTarget()
if not target:
print("[-] error: no target available. please add a target to lldb.")
return None
return target
class DisableBreakpoints:
"""
Context-man... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
1e9d73f85497670f670f89472a4b1a7f7b9a3bae | 2935db7e302796d72f574ad0ebb62fdf56d1fb37 | /backend/tiny_silence_29182/urls.py | ef32c3a7151b5031d49045bd9dd529023e212bb9 | [] | no_license | crowdbotics-apps/tiny-silence-29182 | e736c58052d4310645ab938cac57c9f13f8ea9ae | 2ad3fc11b3b8c29d53aee3bac8f029456446dc1e | refs/heads/master | 2023-06-26T18:17:09.099364 | 2021-07-26T02:19:35 | 2021-07-26T02:19:35 | 389,484,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,235 | py | """tiny_silence_29182 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
22d66b6c60f2607d094ce92187bfec45c56da208 | c9b5a2cd00764ee4a0b889b5b602eb28fd08e989 | /python/63-unique-paths-II.py | 4947f191881c0af61ac4b51dea4c5334e4b1ac0c | [] | no_license | cwza/leetcode | 39799a6730185fa06913e3beebebd3e7b2e5d31a | 72136e3487d239f5b37e2d6393e034262a6bf599 | refs/heads/master | 2023-04-05T16:19:08.243139 | 2021-04-22T04:46:45 | 2021-04-22T04:46:45 | 344,026,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from typing import List
class Solution:
def uniquePathsWithObstacles(self, obstacleGrid: List[List[int]]) -> int:
"DP, Time: O(mn), Space: O(1)"
m = len(obstacleGrid)
n = len(obstacleGrid[0])
obstacleGrid[0][0] = 0 if obstacleGrid[0][0] == 1 else 1
for j in range(1, n):
... | [
"cwz0205a@gmail.com"
] | cwz0205a@gmail.com |
30bb8e7526f77b0bf40cfe4818de9d57aec62fcf | 194153b962896cc9c2dacb701e10732d71c3a5e2 | /tests/test_urls.py | 15b5534fee1d15d07cc279dfd3fa459c7dea1205 | [
"MIT"
] | permissive | dizhaung/ioc-finder | c0d89b4e57858ff4a61fbc502d99c0cd5c07c02f | fcd19cdeb1178c9fba1fa6ebd7ed5fe358e80a35 | refs/heads/master | 2022-12-24T01:49:21.848928 | 2020-09-25T22:08:28 | 2020-09-25T22:08:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,843 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Test the URL parsing against the urls here: https://mathiasbynens.be/demo/url-regex."""
from ioc_finder import find_iocs
VALID_URLS = [
'http://foo.com/blah_blah',
'http://foo.com/blah_blah/',
'http://foo.com/blah_blah_(wikipedia)',
'http://foo.com/blah... | [
"floyd.hightower27@gmail.com"
] | floyd.hightower27@gmail.com |
75f73f3124ba84b954090f37a00b97a14832151d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_076/ch66_2020_04_27_19_21_00_575265.py | 2b53848061c9b0dcffbf194a7c22182ad3a8984e | [] | 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 | 185 | py | def lista_sufixos (string):
lista_sufixos = []
i = 0
while i < len(string):
sufixo = string[i:]
lista_sufixos.append(sufixo)
return lista_sufixos
| [
"you@example.com"
] | you@example.com |
c456572984820affc8425b8f01adeb10a94a62eb | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN4-M-206.py | 3e8b16525c36e80e65eb870bacad6c6fbcefde56 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | # Tu pišite svoje funkcije:
from math import *
kraji = [
('Brežice', 68.66, 7.04), ('Lenart', 85.20, 78.75),
('Rateče', -65.04, 70.04),
('Ljutomer', 111.26, 71.82), ('Rogaška Slatina', 71.00, 42.00),
('Ribnica', 7.10, -10.50),
('Dutovlje', -56.80, -6.93), ('Lokve', -57.94, 19.32),
('Vinica', 4... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
20fc5da58505833a696174fe55a86a6b0052df51 | a52ce78ae1dcd35343c7c8aa333e8910bc7f437b | /iteraveis/genexp_x_listcomp.py | e680c286e4fadb28bac871c43be296bdb45df6e1 | [] | no_license | oturing/ppqsp | 6990e224a98f9f07e8657b1007b428f5b877cc8d | 5d6b9b9c536cc314c21fb450db5761b746514c40 | refs/heads/master | 2020-06-04T03:04:28.285886 | 2013-08-21T00:32:14 | 2013-08-21T00:32:14 | 2,854,873 | 11 | 6 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
# coding: utf-8
'''
>>> for i in [letra for letra in gera_letra()]:
... print i
...
gerando 'A'...
gerando 'B'...
gerando 'C'...
A
B
C
>>> for i in (letra for letra in gera_letra()):
... print i
...
gerando 'A'...
A
gerando 'B'...
... | [
"luciano@ramalho.org"
] | luciano@ramalho.org |
c15402fe8d25bacde308b1503141d5ba49743c67 | bbd20b6467df5a52737eb5c858fb025605e34fc3 | /03/part_02.py | 6b6af5ef97e2a8f7df5be6f1779d2665c6429603 | [
"MIT"
] | permissive | euribates/advent_of_code_2018 | 7e2709d2b7d1f01c6791b8f7d28c05bc80dfaed0 | 133fac9b01cf46edf9ec8c6ad9cef785d6858c70 | refs/heads/master | 2020-04-09T02:38:18.381985 | 2018-12-27T15:26:14 | 2018-12-27T15:26:14 | 159,948,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python3
import tools
from collections import defaultdict
if __name__ == "__main__":
mapa = defaultdict(int)
max_cols = 0
max_rows = 0
for claim in tools.read_input(transform=tools.parse):
max_cols = max(max_cols, claim.left+claim.width)
max_rows = max(max_rows, claim.to... | [
"euribates@gmail.com"
] | euribates@gmail.com |
1b8cc9cbb23f3bc63340fe898bb0766f6afa0865 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/services/hotel_performance_view_service_client_config.py | de953afee4a344b6d232d5f09adcbefd5959e899 | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | false | 827 | py | config = {
"interfaces": {
"google.ads.googleads.v4.services.HotelPerformanceViewService": {
"retry_codes": {
"idempotent": [
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
},
"retry_params": {
"default": {
"initial_retry_... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
573cf1476feaa7977602385ee176882cd5869fc0 | 78d0bcad3e48d7ba11d2d2bdafc74ce455d2771c | /AI/Genetic Algorithms/Python/Main.py | 4ea0ed4b51ea48e3a92a068603ae97c23fb88c8f | [] | no_license | rakshithvasudev/generic-projects | 8a068375cb6b4d7ceeb7343569dd848c277d0a78 | 2da0e69c3090826a0aecc1ac5e99d5e483e03efe | refs/heads/master | 2021-03-27T20:22:49.342618 | 2018-10-18T20:24:19 | 2018-10-18T20:24:19 | 102,914,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,698 | py | import copy
import time
from Genetic_Algo import initialize_population, breed_population, mutate_population, sort_population
def get_best_pop(init_pop, bred_pop, mutated_pop):
"""
Selects the best population amongst all the population in a given generation.
This reduces the steps to converge to a solution... | [
"rakshithvbharani@gmail.com"
] | rakshithvbharani@gmail.com |
d99a0f2bad9ed5949e4229f701edabe2654cfc4d | fd8be020b3f26feeffc960db2cc4fcec7a6bacd5 | /setup.py | 36baea54a68524b7f3d9334180df93c75e1f0e38 | [
"Apache-2.0"
] | permissive | goofy0530/modlunky2 | cabe5b09a60f7e132138306a1471180ab1c4c2b5 | 8756e7a390716258129c28637773ededd0d603b6 | refs/heads/main | 2023-03-01T04:56:17.365958 | 2021-02-10T06:24:45 | 2021-02-10T06:24:45 | 337,790,792 | 0 | 0 | Apache-2.0 | 2021-02-10T16:55:30 | 2021-02-10T16:55:29 | null | UTF-8 | Python | false | false | 2,990 | py | import pathlib
from setuptools import find_packages, setup
HERE = pathlib.Path(__file__).parent.resolve()
LONG_DESCRIPTION = (HERE / 'README.md').read_text(encoding='utf-8')
VERSION = (HERE / 'VERSION').read_text(encoding='utf-8').strip()
with open('requirements.txt') as fp:
install_requires = fp.read()
setup(
... | [
"gary@byoteki.com"
] | gary@byoteki.com |
8dea85ffc133245fdfe3025cf16db868208762db | 5fb32bc4f1de0dfd2fa22bb92108b27386d77298 | /tools/workspace/boost/repository.bzl | 8783aaa7d7c455cdbbc93e342a5e9ae3524af180 | [
"Apache-2.0"
] | permissive | mjbots/bazel_deps | 5415e61324c6167cba7c3c0917cad387d9e5107a | 6c9ba1867b5d0ab5e59a7f1205adfd750a6c3610 | refs/heads/master | 2023-07-24T05:19:51.945623 | 2023-07-12T18:22:50 | 2023-07-12T18:22:50 | 139,143,430 | 96 | 38 | Apache-2.0 | 2021-01-05T13:02:09 | 2018-06-29T11:52:09 | Python | UTF-8 | Python | false | false | 1,278 | bzl | # -*- python -*-
# Copyright 2018-2020 Josh Pieper, jjp@pobox.com.
#
# 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 a... | [
"jjp@pobox.com"
] | jjp@pobox.com |
cbfd65e341a06a88991aefd6e634b86f00f6e3fc | 01a40dcca5b8105f3131e0df2a58c0c568b6bf52 | /examples/iris-scatterplot.py | 892f492e34f1c51ea5cd0d5db8e5abc8484af78f | [
"MIT"
] | permissive | xy1234552/pyprobml | 72eb2dde10552828178f194cbb2c5981026cd9b5 | 9e7e5e3a8685a3d3ab4d00cc8b0ae9cede4a105f | refs/heads/master | 2020-04-25T14:22:44.471275 | 2019-02-26T06:11:27 | 2019-02-26T06:11:27 | 172,839,749 | 1 | 0 | null | 2019-02-27T03:57:22 | 2019-02-27T03:57:22 | null | UTF-8 | Python | false | false | 320 | py | #https://seaborn.pydata.org/generated/seaborn.pairplot.html
import matplotlib.pyplot as plt
import os
import seaborn as sns; sns.set(style="ticks", color_codes=True)
iris = sns.load_dataset("iris")
g = sns.pairplot(iris)
g = sns.pairplot(iris, hue="species")
#plt.savefig(os.path.join('figures', 'iris-scatterplot.pdf')) | [
"murphyk@gmail.com"
] | murphyk@gmail.com |
07e8d2906794dede85bc3d6593145bdb2ca44335 | 66fe6eb64afeb7313a4c7685a8748455325b6726 | /344-reverse-string.py | 41d03e0bf04c9fcf06dcdf7ca2e81fb2b7cd4a49 | [] | no_license | anantkaushik/leetcode | b54eb27b17ed95b02ab426392208c346f2d87aaa | 06f0a6dbff2e2062fa4568efa5f01ad982d6ac94 | refs/heads/master | 2022-03-07T18:21:35.881943 | 2022-02-23T12:27:24 | 2022-02-23T12:27:24 | 120,501,367 | 40 | 13 | null | 2019-10-11T11:07:22 | 2018-02-06T18:05:51 | Python | UTF-8 | Python | false | false | 818 | py | """
Problem Link: https://leetcode.com/problems/reverse-string/
Write a function that reverses a string. The input string is given as an array of characters char[].
Do not allocate extra space for another array, you must do this by modifying the input array
in-place with O(1) extra memory.
You may assume all the char... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
7b3efd4b6b854ad75fdca4954944575fd0279a25 | 0ca5b8f12662cd67de90095277107d6714628c9d | /OPL_Testing/TC_13256_RFC_2659_Title_of_PVR_RC_bottons.py | 5af38cc482efbf7bfe6b3ad9d717e8818d9042b7 | [] | no_license | OLSTOMASZPOLAND/tvtest | ca777f5f73be668be466386cbfc03d9ce0f08950 | 1b81e5ed5072a5fc6777494c8212060e03f206a3 | refs/heads/master | 2021-08-07T15:26:24.519418 | 2017-11-08T12:51:53 | 2017-11-08T12:51:53 | 105,535,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,661 | py | # -*- coding: utf-8 -*-
import time
from NewTvTesting.Config import *
from OPL_Testing.TC_OPL_template import TC_OPL_template
from NewTvTesting.DataSet import LiveData
class TC_13256_RFC_2659_Title_of_PVR_RC_bottons(TC_OPL_template):
"""Implementation of the HP QC test ID - TC_13256_RFC_2659_Title... | [
"olstomaszpoland@gmail.com"
] | olstomaszpoland@gmail.com |
083424b7745bbc2e58d0480d4dca72a7ebbe3023 | 061a4064a6f856989c3a84038dd1949e89439d87 | /todo/views.py | 226c26f7d383a22a8b419b04d979a67500796d1b | [] | no_license | rgrohit80/todo_uber_scrapper | 446fd192185527e4656c8a407dca7c57bd7c6c54 | 6903d541c3f7633d5f794145e66578bb50f818fb | refs/heads/master | 2022-12-02T05:13:53.952308 | 2020-08-11T07:29:27 | 2020-08-11T07:29:27 | 286,676,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | from rest_framework.views import APIView
from .models import Task, Step
from .serializers import TaskSerializer, StepSerializer
from rest_framework.response import Response
from rest_framework import status
from django.http import Http404
from rest_framework import generics
from rest_framework.authentication import Ses... | [
"rohit.kumar4@happiestminds.com"
] | rohit.kumar4@happiestminds.com |
3fbca9c441e1ebb6ffccd1129820929a8062df1c | 66c94b5e427c0b8f8f7101de9c17af1423f00682 | /keras/keras41_cifar100_2_CNN.py | 4fbb4377986d4b26e2e655f8a43f464f6c873945 | [] | no_license | NamkyuHan/bit_seoul | a34ea3c49666ee2183026e960e45092778643d55 | 3112eb576089cdf906c4f326337b4d2b5e5e4c29 | refs/heads/master | 2023-01-30T19:02:53.323592 | 2020-12-17T01:05:17 | 2020-12-17T01:05:17 | 311,277,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,994 | py | #이미지 종류가 100개 = 100개의 클래스
#1. 데이터
from tensorflow.keras.datasets import cifar100
from tensorflow.keras.utils import to_categorical
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import Dense, Conv2D, LSTM
from tensorflow.keras.layers import Flatten, MaxPooling2D
import matplotlib.py... | [
"rksh333@naver.com"
] | rksh333@naver.com |
519007946e62256b9113cab6d60b195c0e232de0 | 408f8c561a695ac20b792ba0c4a230c154dad347 | /src/agents/smooth_tdc/SmoothTDCadagrad.py | d4bbd48fec0e292c0b54cb26c25b5a97e9a67566 | [] | no_license | andnp/acceleration-v2 | a407888c74a247e6d441259d50d77cf6194f728b | 52b8a42c3e315ddbb4549a3a941afda81e92be9b | refs/heads/master | 2022-11-26T05:42:17.680125 | 2020-08-02T23:25:01 | 2020-08-02T23:25:01 | 204,991,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | import numpy as np
from src.agents.smooth_tdc.SmoothTDC import SmoothTDC
from src.agents.optimizers.AdaGrad import AdaGrad
class SmoothTDCadagrad(SmoothTDC, AdaGrad):
pass
| [
"andnpatterson@gmail.com"
] | andnpatterson@gmail.com |
39595714fb73db112e556490e311f1de1e9bcd32 | 9e28200b71d43de1e122a964e88f1b547bfde465 | /pyfunc/Counter_demo.py | ce5ca8d33c089257c7491326d0d9d5816f81eade | [] | no_license | paul0920/leetcode | 6f8a7086eefd3e9bccae83752ef41cbfee1acaea | 474886c5c43a6192db2708e664663542c2e39548 | refs/heads/master | 2023-08-19T14:10:10.494355 | 2021-09-16T20:26:50 | 2021-09-16T20:26:50 | 290,560,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | import collections
secret = "1211"
guess = "2221"
s = collections.Counter(secret)
g = collections.Counter(guess)
print s
print g
print s & g
# Counter works like a hash table and returns an array
print (s & g).keys()
print (s & g).values()
print (s & g).items()
| [
"39969716+paul0920@users.noreply.github.com"
] | 39969716+paul0920@users.noreply.github.com |
9df01bd952d2383aa54d8a6987d2bb6dcc060627 | be92135c9bacd13a61e2b28092f97fb9b524923d | /blog/mainsite/views.py | bb76630938e3f9e1f231a3e34c8920da831f13b1 | [] | no_license | ChihYunPai/personal-website | 337f3e6d19a2850795633277a4ebab28a89e4fd1 | c002c5d72c2b902ef4efd17fa9426130b032fdf5 | refs/heads/master | 2020-05-16T16:46:34.973963 | 2019-05-10T11:35:28 | 2019-05-10T11:35:28 | 183,172,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,110 | py | from django.shortcuts import render
from django.shortcuts import redirect
from django.http import HttpResponse
from django.http import Http404
from .models import Post
from .models import NewTable
from .models import Product
from .models import PhoneProduct
from datetime import datetime
# Create your views here.
d... | [
"tonypaiwhite@gmail.com"
] | tonypaiwhite@gmail.com |
fb24416793527b08c11002c213a1f0489910f00a | 92ac0059aba240594caacea057310ae5f8dedc72 | /reviewboard/diffviewer/evolutions/add_diff_hash.py | 395671308b0298a03d2a130bbfa5b0df86206b10 | [
"MIT"
] | permissive | asterisk/reviewboard | 3117be93784f137843aa7948fe8ea4da828ff573 | 02aead64a8e3717c0a4a44bf764b80094787372b | refs/heads/master | 2021-01-15T18:08:22.593916 | 2013-04-24T07:55:46 | 2013-04-24T07:55:46 | 1,844,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | from django_evolution.mutations import AddField, RenameField
from django.db import models
MUTATIONS = [
RenameField('FileDiff', 'diff', 'diff64', db_column='diff_base64'),
RenameField('FileDiff', 'parent_diff', 'parent_diff64', db_column='parent_diff_base64'),
AddField('FileDiff', 'diff_hash', models.Fore... | [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
f5f43c1eae79afc7bfd82dbd3bb9fc7e90927d7f | 21e6a09131ac76d734102c829260c3b8e3a0094b | /solutions/17_serialization/task_17_4.py | 6a90343212e5965e53bd53a04969dbe9af5b5b41 | [] | no_license | Egor-Ozhmegoff/Python-for-network-engineers | 5fbe8f3a754263ab65c28093fed667684ae76ded | 6b70f4f9df658698ea0d770a064ee0e12b4e4de2 | refs/heads/master | 2023-08-11T20:52:12.999495 | 2021-09-09T14:42:14 | 2021-09-09T14:42:14 | 306,354,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | # -*- coding: utf-8 -*-
"""
Задание 17.4
Создать функцию write_last_log_to_csv.
Аргументы функции:
* source_log - имя файла в формате csv, из которого читаются данные (пример mail_log.csv)
* output - имя файла в формате csv, в который будет записан результат
Функция ничего не возвращает.
Функция write_last_log_to_c... | [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
fc378b790c6b7c92d7b0251edd362d9fed207734 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/8438da2a347b065054fad0b4e0414c543ddaf42f-<has_expired>-fix.py | 0e9b1d61026a1d38043fa5431157b193b0a7f776 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | def has_expired(self, key):
if (self._timeout == 0):
return False
cachefile = ('%s/%s' % (self._cache_dir, key))
try:
st = os.stat(cachefile)
except (OSError, IOError) as e:
if (e.errno == errno.ENOENT):
return False
else:
display.warning(("error i... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
2c2f9d5784b390b80b60415427ec00816a5f24e2 | 99ba551645dc9beed36f0478b396977c50c3e7ef | /剑指offer/42_连续子数组的最大和.py | 1108d1396dfab0a868dc0dc0f3414ef48d7ac46b | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,065 | py | #!/usr/bin/python
#coding:utf-8
# // 面试题42:连续子数组的最大和
# // 题目:输入一个整型数组,数组里有正数也有负数。数组中一个或连续的多个整
# // 数组成一个子数组。求所有子数组的和的最大值。要求时间复杂度为O(n)。
import heapq
class Solution:
def FindGreatestSumOfSubArray(self, nums):
n = len(nums)
dp = [float('-inf')] * n
maxSubSum = float('-inf')
dp[0] = num... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
ff12e333063aba32bb3abc3e1fee22e1bf6cc360 | 02e5b1240db2ef04b4f8b661a9ac4ce060144d74 | /examples/inference/standard_sgd_demo.py | fb4c7c9757d8096be65f2a2229f7caba464dcba1 | [
"MIT"
] | permissive | jayeshchoudhari/pyhawkes | b3b143a5040730826c23a9b3703159dbeb9bf21d | f4b0e6e3ce7f74e647f0ed2254ea334c22d6e82b | refs/heads/master | 2021-06-12T12:55:54.740142 | 2017-03-27T06:47:16 | 2017-03-27T06:47:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,594 | py | import numpy as np
import matplotlib.pyplot as plt
from pyhawkes.models import DiscreteTimeNetworkHawkesModelSpikeAndSlab, DiscreteTimeStandardHawkesModel
def sample_from_network_hawkes(C, K, T, dt, B):
# Create a true model
p = 0.8 * np.eye(C)
v = 10.0 * np.eye(C) + 20.0 * (1-np.eye(C))
c = (0.0 * (... | [
"scott.linderman@gmail.com"
] | scott.linderman@gmail.com |
bd2fea50e2fe6363cb298e41d0c725b646eb73e4 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/ItemSkuAddRequest.py | 28feea966f9a7dc1f3740b84b17688b3ba49b8fd | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class ItemSkuAddRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.item_price = None
self.lang = None
self.num_iid = None
self.outer_id = None
self.p... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
4778ccecb1b12a11e8b7a188708316d2fe650291 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s600099502.py | d53d5d28a0f7051da50dc8da4887a8ff3f9fb97e | [] | 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 | 974 | py |
def read_int():
return int(input().strip())
def read_ints():
return list(map(int, input().strip().split(' ')))
def solve():
X, Y, Z, K = read_ints()
A = read_ints()
B = read_ints()
C = read_ints()
BC = [b+c for b in B for c in C]
BC.sort(reverse=True)
A.sort(reverse=True)
l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
837e41ca1373d743bd6348b3d77a98a4a5ffd08d | 46b40bbf9433f659cc331457bdfa453a41294c6b | /file handling task/DOB, sales, file handling/Sales Tax Calculation File Handling Task/Reading_CSV.py | 5381b706ba7b6cbb0dff3af0493c515ce074ce82 | [] | no_license | deepsinghsodhi/python-OOPS-assignments | f0f79878c494f48e11120249ae5299de92c1c7b0 | 356c53dd328c6cabcd9f899c2e2edb9ddfd1d95f | refs/heads/master | 2022-12-20T19:57:38.020057 | 2020-09-30T18:43:20 | 2020-09-30T18:43:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
#reading CSV file
f = open('location.txt', 'w')
f.write('asdjkhaskdaskjfhsdkjhcb kbjcc kjkjcnjsjhvlksdjlnvvlkcx')
print(f.read())
# #writing CSV file
# with open('lavda.csv', 'w', newline = '') as f:
# csv_writer = csv.writer(f, delimiter = ',')
# csv_writer.writerow(['Name', 'dep', 'DOB'])
# csv_writer.w... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.