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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3257a02fdedde18d2ee57e46c39cb25c3a94ca4 | 48aa9436bdd738cbbd09cfa381b6a5f60d18525d | /bricks/api/controllers/v1/collection.py | 9df7cc8d3f68106278f3d18874acaedc040f0e01 | [
"Apache-2.0"
] | permissive | CloudBrewery/bricks-service | b41b302d88b7dead01440e39c6e6765a169c1140 | e905c324b062bfd8a8b3917c788849ea0d497e54 | refs/heads/master | 2020-05-17T20:18:40.431719 | 2014-11-06T20:59:50 | 2014-11-06T20:59:50 | 33,747,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | import pecan
from wsme import types as wtypes
from bricks.api.controllers.v1 import base
from bricks.api.controllers.v1 import link
class Collection(base.APIBase):
next = wtypes.text
"A link to retrieve the next subset of the collection"
@property
def collection(self):
return getattr(self, ... | [
"thurloat@gmail.com"
] | thurloat@gmail.com |
e890f020340d8a5784365fb83846f9a7bf9c1578 | 555c82ee0b0ec25f4043609a71540a3a36d5b4e8 | /.gdb/cpp/printers.py | d2703ca7d6cdb3e4a819422bbfdd23a56ca98cae | [] | no_license | hackaugusto/dotfiles | c48babb7f80f8519553abbe597c25b2a0762ca33 | 42b3c56bf83fcc55c054f1e4ec1be2486a28891c | refs/heads/main | 2023-08-06T14:58:24.223360 | 2023-07-27T11:54:31 | 2023-07-27T11:54:31 | 5,831,372 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 68,273 | py | # Pretty-printers for libstdc++.
# Copyright (C) 2008-2018 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option)... | [
"hack.augusto@gmail.com"
] | hack.augusto@gmail.com |
311dbec004401cec15cad17549d8de3f2ad7eb49 | d992fcabff6508e4f53fb3f688d0ea67fd2047a5 | /similarity/similarity.py | e1e809c042df02db0d50b63240a63b8c880f9c0a | [] | no_license | turgunyusuf/car-datascience-toolkit | 5924fe9e9d930e864ce72a7f3b3090e042efa7ea | 0e62c55ddf24affc7a7ba406081bb78bac0a9da0 | refs/heads/master | 2021-01-23T04:53:27.051286 | 2012-06-05T00:05:08 | 2012-06-05T00:05:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,460 | py | """
similarity.py
Below are implementations of five common similarity metrics used in data and text
mining applications. Each of the metrics takes two vectors as input, represented
by Python lists.
Most of the similarity metrics in this package are most easily conceptualized in
geometric spaces. As such, each vector ... | [
"chase.davis@gmail.com"
] | chase.davis@gmail.com |
34a73aed387f0db4ed22acfd612bae35e1b641b8 | 6d79783fa490d209e19639276051fc9e7e470fba | /integration-test/1716-reduce-surface-tag-precision.py | 8bb7a4dc0d16043b38e6f80507865999e25ce2c7 | [] | permissive | va2ron1/vector-datasource | d9007c2558d6866f75679d1a711a62044fdc81ab | 0145844e27d1e3cb3256b449040511b6791febd7 | refs/heads/master | 2021-05-10T15:30:59.456868 | 2019-06-18T00:36:58 | 2019-06-18T00:36:58 | 118,549,672 | 0 | 0 | MIT | 2019-06-18T00:36:59 | 2018-01-23T03:03:00 | Python | UTF-8 | Python | false | false | 2,369 | py | # -*- encoding: utf-8 -*-
from . import FixtureTest
class ResidentialTest(FixtureTest):
def test_z16(self):
self._check(zoom=16, expect_surface='fine_gravel')
def test_z15(self):
self._check(zoom=15, expect_surface='fine_gravel')
def test_z14(self):
self._check(zoom=14, expect_s... | [
"zerebubuth@gmail.com"
] | zerebubuth@gmail.com |
f01d5f25df457c208e4a9f78f2e18acd215147e4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/95/usersdata/247/55410/submittedfiles/desvpad.py | 63111cc38a63a095f561ae87d03e3f43789c25ed | [] | 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 | 497 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite: '))
a=[ ]
for i in range(1,n+1,1):
valor=float(input(digite: '))
a.append(valor)
def media(a):
soma=0
for i in range(0,n,1):
soma=soma+a[i]
media=soma/n
return media
def desvio(a):
soma=0
for i in range(0,n,1):
soma... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
20687736946c26be718d24ed3116934822fa70fe | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/eager/memory_tests/memory_test_util.py | cb832711a91cac223f68426854d04e9f0512ffcf | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 2,061 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
3a66fa87dd85dd96fde2365bf84703081018a24e | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Extras/ThirdPartyNotUE/emsdk/Win64/python/2.7.5.3_64bit/Lib/idlelib/ReplaceDialog.py | 54c270df23c5fbeac5a15d60957aa9887164f042 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"NCSA",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-mit-nagy",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"Python-2.0",
"TCL",
"OpenSSL",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"Lice... | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | Python | false | false | 5,828 | py | from Tkinter import *
from idlelib import SearchEngine
from idlelib.SearchDialogBase import SearchDialogBase
import re
def replace(text):
root = text._root()
engine = SearchEngine.get(root)
if not hasattr(engine, "_replacedialog"):
engine._replacedialog = ReplaceDialog(root, engine)
dialog = ... | [
"tungnt.rec@gmail.com"
] | tungnt.rec@gmail.com |
26f368da117167af0a9e48e402d0d679c4e07cad | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_lamas.py | f27558af565dc9b3033bcd91b54bd03bbf64294f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _LAMAS():
def __init__(self,):
self.name = "LAMAS"
self.definitions = lama
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['lama']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
bf7c7c43328db2905603a199681bbfbc80b31c94 | 3950cb348a4a3ff6627d502dbdf4e576575df2fb | /.venv/Lib/site-packages/numba/tests/npyufunc/test_ufuncbuilding.py | 60035bfd7fa42ef7b082b893fa20fc2d9c00c7e7 | [] | no_license | Bdye15/Sample_Programs | a90d288c8f5434f46e1d266f005d01159d8f7927 | 08218b697db91e55e8e0c49664a0b0cb44b4ab93 | refs/heads/main | 2023-03-02T04:40:57.737097 | 2021-01-31T03:03:59 | 2021-01-31T03:03:59 | 328,053,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,933 | py | import sys
import numpy as np
from numba.np.ufunc.ufuncbuilder import GUFuncBuilder
from numba import vectorize, guvectorize
from numba.np.ufunc import PyUFunc_One
from numba.np.ufunc.dufunc import DUFunc as UFuncBuilder
from numba.tests.support import tag, TestCase
from numba.core import config
import unit... | [
"brady.dye@bison.howard.edu"
] | brady.dye@bison.howard.edu |
84465fe9bd15ea6d49c60d6d6db45dfb641ce5e0 | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /653/Solution.py | ad29035086ba2a7376d88da8ca49f33fac1dcbfe | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | """
Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target.
Example 1:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 9
Output: True
Example 2:
Input:
5
/ \
3 6
/ \ \
2 4 7
Target = 28
Output... | [
"zrc720@gmail.com"
] | zrc720@gmail.com |
3cab9af1c0e2c5f36c1fea5f7f757921493c2980 | 959a7b17884aa9af1d38d9c6b0afe2045a9be5d2 | /Ransom Note.py | d4edb311d8c0e26b54aae2eba9195da4712b596c | [] | no_license | dumavit/leetcode | a1c998f4c56411b061995d939093b03f7aae366b | 866689f564125ca4152dc1b6b3d268991d7ec89a | refs/heads/master | 2022-02-07T20:44:17.388121 | 2022-01-31T21:02:28 | 2022-01-31T21:02:28 | 252,981,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | class Solution:
def canConstruct(self, ransomNote: str, magazine: str) -> bool:
store = {}
for char in magazine:
store[char] = store.get(char, 0) + 1
for char in ransomNote:
if store.get(char, 0) > 0:
store[char] -= 1
else:
... | [
"vitalii.duma@corva.ai"
] | vitalii.duma@corva.ai |
08702a21dc5a84441037de8ff3cab67f6650f2e0 | c4c81058dd9fa111f706a5db7ee80064873271ba | /HLTrigger/special/hltPixelActivityHFSumEnergyFilter_cfi.py | f69d1b345cc86cb56cdc7ff23cc07a1165849e0f | [] | no_license | fwyzard/cmssw-cfipython | e142c3a3e707c599dae491333ec48522de3f2f34 | cae55b22a46433b55ea6ff5b36aecc043792d16c | refs/heads/master | 2021-07-25T21:04:42.950199 | 2017-10-24T06:29:00 | 2017-10-24T06:29:00 | 109,701,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import FWCore.ParameterSet.Config as cms
hltPixelActivityHFSumEnergyFilter = cms.EDFilter('HLTPixelActivityHFSumEnergyFilter',
inputTag = cms.InputTag('hltSiPixelClusters'),
HFHitCollection = cms.InputTag('hltHfreco'),
eCut_HF = cms.double(0),
eMin_HF = cms.double(10000),
offset = cms.double(-1000),
slope ... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
8864d2e4c0c87bcd58c979ef808fef7caf77bb93 | a8c76e503df527445b14163f74faa8aca7e90ecd | /tests/integration/test_payout.py | ae0fccbf167afe5babb69638fb0682e7c75496f5 | [
"MIT"
] | permissive | baseup/xendit-python | c2a4f0766886f6124a86810e0831653e1ca1e1f4 | 8b677fbbad5fe3bbcd0a2b93e30e8040543b8f61 | refs/heads/master | 2023-03-09T02:56:53.513101 | 2021-03-04T08:06:44 | 2021-03-04T08:06:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | import pytest
import time
from .base_integration_test import BaseIntegrationTest
from tests.sampleresponse.payout import payout_response
from tests.sampleresponse.payout import void_payout_response
class TestPayout(BaseIntegrationTest):
@pytest.fixture
def Payout(self, xendit_instance):
re... | [
"adyaksa.wisanggeni@gmail.com"
] | adyaksa.wisanggeni@gmail.com |
6cbf4bccbc63df688a85042dc3db41248b453259 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1KuHk7XKYJG2sVJGyKjPHK31rMS5ZBQJxX.py | da5742485aadf4888556c9366f0094e88875748c | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,130 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1KuHk7XKYJG2sVJGyKjPHK31rMS5ZBQJxX(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
b453ed931a9687416706178c9088025bdd601664 | 46ef1b8df9551c02c273ed39bd057daadca0e1fe | /parts/wrapper/repoze/lru/tests.py | ccc471e1741493fbe7e841448e949bac663992cf | [] | no_license | topiaruss/bfg-gae-logger | 18f5a25168656afcabe1c89a9c7e0e25aa060c56 | f2944f2c009007efd0fd09426111e4dfdab30098 | refs/heads/master | 2021-01-20T04:40:05.194810 | 2010-05-26T20:31:02 | 2010-05-26T20:31:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | /Users/russ/.common/sh/.buildout/eggs/repoze.lru-0.3-py2.5.egg/repoze/lru/tests.py | [
"russf@topia.com"
] | russf@topia.com |
bca8bffd28c10e681ff68b383a3ec34b1b0b62ab | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_5/matchzoo/metrics/normalized_discounted_cumulative_gain.py | 717656f01ad1b197a4867fb92421ea4a164b590e | [
"Apache-2.0"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 2,037 | py | """Normalized discounted cumulative gain metric for ranking."""
import numpy as np
from scripts.study_case.ID_5.matchzoo.engine.base_metric import (
BaseMetric, sort_and_couple, RankingMetric
)
from .discounted_cumulative_gain import DiscountedCumulativeGain
class NormalizedDiscountedCumulativeGain(RankingMetric... | [
"793679547@qq.com"
] | 793679547@qq.com |
b4eeb865fbb20dabe31c8f0c642c599191d62606 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/LittleSis/Relationship/__init__.py | ddbf6033d3017e3e5cabde990150f61bd63cd7ca | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from GetOneRelationship import *
from GetRelationships import *
from GetBatchRelationships import *
| [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
81f5445a17b6faf6a97f2acbc8f3b4b938fd885f | f836c4b262c533a56d90439f80a12a586367ddf4 | /kuaishou_v2/models/BasicModule.py | ca98633b7836c2f2162af6526f06ab7387e23c65 | [] | no_license | yuanyuanzijin/learn-pytorch | eba6a3d9f5347c80d9b6e934a272f4ea1537cd87 | 0038a420fa83c5a0f1e3145ce49ee98c70f71725 | refs/heads/master | 2020-03-14T17:12:55.233173 | 2018-06-28T11:01:16 | 2018-06-28T11:01:16 | 131,714,344 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 978 | py | #coding:utf8
import torch as t
import time
class BasicModule(t.nn.Module):
"""
封装了nn.Module,主要是提供了save和load两个方法
"""
def __init__(self):
super(BasicModule, self).__init__()
self.model_name = "LSTM"
def load(self, path):
"""
可加载指定路径的模型
"""
self.load_s... | [
"jinluyuan@vip.qq.com"
] | jinluyuan@vip.qq.com |
a3805777eaa83c36284767a84475fcd19fcd3e48 | 404aaad6742aa0702ceee2895830f29fadedf35e | /NotYetCurated/PlottingSurfaceValuesWithPysurfer/pysurfer_plot_surface_values.py | d48e0587d7592ae79ae540bf73cc1176389c0f76 | [
"MIT"
] | permissive | manfredg/BrainsForPublication | 6de9afa5e69e1cdb0cbab90c2b25576e423c593a | ce1b69cc1b633e0d10915f54261c7d03732f31cf | refs/heads/master | 2020-06-30T14:42:37.901730 | 2019-08-06T14:07:38 | 2019-08-06T14:07:38 | 200,860,003 | 0 | 0 | MIT | 2019-08-06T13:44:28 | 2019-08-06T13:44:27 | null | UTF-8 | Python | false | false | 13,067 | py | #!/usr/bin/env python
#=============================================================================
# Created by Kirstie Whitaker
# September 2014
# Contact: kw401@cam.ac.uk
#=============================================================================
#===============================================================... | [
"kw401@cam.ac.uk"
] | kw401@cam.ac.uk |
faa1fba06fd5432415ed81c7aa2d39851ef6a7f5 | 84d0a95c577a978e916fdcf35448d585c679cf33 | /colordetection.py | a70488485c63d70076622d4f4f647e58d68013ef | [] | no_license | wonderfulsuccess/fcCubeSolver | 436a91bcb7a12894a10ff60cf50ddf8ef71175a2 | 0969e1aa89f3dc2b7689e6e70f6b8c297bda8def | refs/heads/master | 2021-05-08T10:53:10.024365 | 2018-02-01T17:32:40 | 2018-02-01T17:32:40 | 119,869,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,002 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Filename : colordetection.py
# Author : Kim K
# Created : Tue, 26 Jan 2016
# Last Modified : Sun, 31 Jan 2016
# from recognize import Cubereg
from sys import exit as Die
try:
import sys
import numpy as np
import pickle
exce... | [
"wonderfulsuccess@163.com"
] | wonderfulsuccess@163.com |
1189b36781d1447cec78f4b7ded925743adecca3 | 7c98dd4ef5e16abe1f9c27732f6c08c68545c203 | /Arquivos Exercicios/Exercicios/Ex036.py | 6eb0983ea1298aaf38716e2c7f2ae4ed24702a10 | [] | no_license | ronaldoedicassio/Pyhthon | ba79164e0c663fc89b384c95da7b29793adeb28a | 63fd77d968ff44394637c513b9e3188319ccd8e6 | refs/heads/master | 2023-03-21T08:15:43.123215 | 2021-03-01T16:46:12 | 2021-03-01T16:46:12 | 330,780,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | """
Escreve um programa para aprovar o empréstimo bancário para a compara de
uma casa. O programa vai perguntar:
- valor da casa
- Salario
- Quantos anos ele vai pagar
Calcule o valor da prestação mensal, sabendo que nao pode ultrapassar
30% do salario
desconsidere os juros de financiamento, somente considere o ... | [
"75760249+ronaldoedicassio@users.noreply.github.com"
] | 75760249+ronaldoedicassio@users.noreply.github.com |
237264a96257e7ff1531821900dd2bcb382d806b | 4f1fae975df7c8f116bd78ccca80aaad2375180b | /test/test_stats_single_season_stat.py | 5fee9bcf643dd2dc2873b05a64a75f88315cfc4f | [] | no_license | phwissmann/nhl_openapi_py | 5604d8dc05600fa5b1df8a2dd89a285104fe44c9 | 9924820ffb8b3a3fa5bfbee9780685a124257113 | refs/heads/master | 2021-06-03T06:33:56.097813 | 2020-12-30T13:47:34 | 2020-12-30T13:47:34 | 149,875,820 | 0 | 0 | null | 2021-06-01T22:48:26 | 2018-09-22T12:43:32 | Python | UTF-8 | Python | false | false | 923 | py | # coding: utf-8
"""
NHL API
Documenting the publicly accessible portions of the NHL API. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import openapi_client
from openapi_client.models.stats_single_... | [
"phwissmann@posteo.ch"
] | phwissmann@posteo.ch |
588a819b02d87bceffe66b42f3fadd706c1cf0de | 0953f9aa0606c2dfb17cb61b84a4de99b8af6d2c | /python/ray/tests/test_reference_counting_2.py | 11193a93f582313ff86c031ad3551a7ce7bddee7 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | oscarknagg/ray | da3dc03e24945ff4d5718fd35fc1b3408d8907eb | 20d47873c9e8f5bbb80fe36e5d16256c337c4db3 | refs/heads/master | 2023-09-01T01:45:26.364731 | 2021-10-21T07:46:52 | 2021-10-21T07:46:52 | 382,402,491 | 2 | 1 | Apache-2.0 | 2021-09-15T12:34:41 | 2021-07-02T16:25:05 | Python | UTF-8 | Python | false | false | 21,978 | py | # coding: utf-8
import logging
import os
import platform
import random
import signal
import sys
import time
import numpy as np
import pytest
import ray
import ray.cluster_utils
from ray.internal.internal_api import memory_summary
from ray._private.test_utils import SignalActor, put_object, wait_for_condition
SIGKIL... | [
"noreply@github.com"
] | oscarknagg.noreply@github.com |
1b14fa4e2b95069ca788746fa06ee1ac002aa259 | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/程序员练级+Never/想研究的/编译原理/scheme-interp/3.tail recursion.py | 89639e7b708ee77f7f5ac8958f81c88a95ed04f5 | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 43 | py |
#Passing Intermediate Values as Arguments
| [
"643472092@qq.com"
] | 643472092@qq.com |
c4328ca74b588af87ae19e83a8235af735671787 | caa16eb083841e91a70603653928564f9fd3fed2 | /Python/read-n-characters-given-read4.py | 912eb1c250339f639e57a4573dbbbbfe9941989a | [] | no_license | guker/letcode | ea5198a3678c5f6ab2aebd61dc882153a4af1199 | a8c93ead3db7fe86c66b4aee9a8c67cc71cf95ec | refs/heads/master | 2021-01-24T04:08:33.839243 | 2015-08-11T11:19:24 | 2015-08-11T11:19:24 | 40,593,439 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | # Time: O(n)
# Space: O(1)
#
# The API: int read4(char *buf) reads 4 characters at a time from a file.
#
# The return value is the actual number of characters read. For example, it returns 3 if there is only 3 characters left in the file.
#
# By using the read4 API, implement the function int read(char *buf, int n) ... | [
"kamyu104@gmail.com"
] | kamyu104@gmail.com |
32d3258b396f01d9edf0b1cebbf45e45bcf3c375 | ed5a082d977aefcecc8c40c76046d26334615a8e | /contest/abc/abc060/ABC060B.py | 20e20152e98eabc99fcd3a2785868d34887330ee | [] | no_license | arakoma/competitive_programming | 0ff9b9a97d2f37a3a1dac96c157f3235dde96b85 | ebbc5621860aca320a6949433f1707f1cbfcf911 | refs/heads/master | 2021-08-07T10:50:08.890353 | 2021-07-10T14:10:15 | 2021-07-10T14:10:15 | 223,712,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | A, B, C = map(int, input().split())
sum_A = A
for i in range(B):
sum_A += A
if sum_A % B == C:
print("YES")
break
else:
print("NO") | [
"arakoma555@gmail.com"
] | arakoma555@gmail.com |
36d568e8f41524bd7e38a34f4c350bf4959fddf5 | 43d138375c9068b3ea9dc0f75bab9d3f3bc0b8f1 | /polling_stations/apps/data_collection/management/commands/import_midlothian.py | ca62caf2dc9e941745002f483770a8386eb0c6af | [] | permissive | dantagg/UK-Polling-Stations | 69da767c934dd38d74d7ff632fefacdae82053cb | 2271b3fbfe5242de659892d24fad4d8851c804ba | refs/heads/master | 2023-01-03T20:19:58.315246 | 2020-09-28T11:09:40 | 2020-09-28T11:10:29 | 300,301,660 | 0 | 0 | BSD-3-Clause | 2020-10-01T14:07:00 | 2020-10-01T14:06:59 | null | UTF-8 | Python | false | false | 225 | py | from data_collection.management.commands import BaseScotlandSpatialHubImporter
class Command(BaseScotlandSpatialHubImporter):
council_id = "S12000019"
council_name = "Midlothian"
elections = ["parl.2019-12-12"]
| [
"chris.shaw480@gmail.com"
] | chris.shaw480@gmail.com |
101bcc4ec5a1e173bae4c70f4048463537e40d00 | d4a569dcf616b7f05e53a44803e38196b436b8b9 | /Thesis@3.9.1/Lib/site-packages/isort/utils.py | 83840872513ed9b6e83a88e0ed2f6aeeeb1facdc | [
"MIT"
] | permissive | nverbois/TFE21-232 | ac3178d24939c872c02a671c0f1d8cc471af516b | 7113837b5263b5c508bfc6903cb6982b48aa7ee4 | refs/heads/main | 2023-06-05T18:50:59.207392 | 2021-06-25T19:54:40 | 2021-06-25T19:54:40 | 337,691,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import os
import sys
def exists_case_sensitive(path: str) -> bool:
"""Returns if the given path exists and also matches the case on Windows.
When finding files that can be imported, it is important for the cases to match because while
file os.path.exists("module.py") and os.path.exists("MODULE.py") both ... | [
"38432529+nverbois@users.noreply.github.com"
] | 38432529+nverbois@users.noreply.github.com |
81510181cb9cd72445000d65553f3fb0960ff2ec | cedfdd1398b947b15eccf4473e9bbaddccb878d7 | /SDK/openstack/tests/unit/cloud/test_domain_params.py | cc0ce12cafa64fd04fe16c75cbbff91c2f2bef47 | [] | no_license | Doctor-DC/CMP-Recycle | 36fb1fdcf7c3a396bfef89d03948bd0ce626b053 | e3e6421f0b5dc28a075bc5bf91be9a45bcbe97c6 | refs/heads/dev | 2022-12-15T06:28:12.695868 | 2019-02-26T06:22:21 | 2019-02-26T06:22:21 | 142,127,512 | 0 | 0 | null | 2022-12-08T02:29:44 | 2018-07-24T08:18:46 | Python | UTF-8 | Python | false | false | 2,911 | 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 t... | [
"8920622362@qq.com"
] | 8920622362@qq.com |
4cf8c925f2e9225d1ac343a71090b100d96d56c9 | 358519772669c73092f625f630722c38e1d33783 | /examples/moltools/setup-complex-leap/computeangles.py | 08d92650857de44fcaab5bc2d8a7c8ef7f6e7918 | [] | no_license | minghao2016/mmtools | e7e61aca084498408ceae965dd6c9450ad89eafa | 3ade988afb51cd54ee5a4067d8deaad88afbb0fe | refs/heads/master | 2021-09-21T01:02:22.522187 | 2014-09-19T03:40:03 | 2014-09-19T03:40:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,573 | py | #!/usr/bin/python
"""Script to compute angles/distances describing the ligand's six degrees of freedom relative to the protein. Prompts for reference atoms."""
#python computeangles.py -f system.g96 -s minimization-constrained.tpr
import os
import re
import random
import sys
from optparse import OptionParser
parser=... | [
"choderaj@mskcc.org"
] | choderaj@mskcc.org |
552a95dfbf95aa6428f482703c486df89bfb443b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02731/s029782114.py | 2ff05cf88d197cb85737741e1796daf4201166dc | [] | 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 | 36 | py | n = int(input())
a = n/3
print(a**3) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ba695391a4e019b68076275b6a4992840df0599e | 93e55f080779f16f47a7382a3fb0b29a4189e074 | /convertor/huawei/impl/asin.py | 7806afea7dd526d423fe8359766439f01b3f30ed | [] | no_license | jizhuoran/caffe-huawei-atlas-convertor | b00cfdec3888da3bb18794f52a41deea316ada67 | 148511a31bfd195df889291946c43bb585acb546 | refs/heads/master | 2022-11-25T13:59:45.181910 | 2020-07-31T07:37:02 | 2020-07-31T07:37:02 | 283,966,371 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the Apache License Version 2.0.You may not use
this file except in compliance with the License.
This progra... | [
"jizr@connect.hku.hk"
] | jizr@connect.hku.hk |
3083ff3740a96314421e611c3e4efa5932e7f215 | a2e638cd0c124254e67963bda62c21351881ee75 | /Extensions/ABSA NeoX Activity Reporting/FPythonCode/NeoXActivityReportsHookBase.py | 1a0a8136974c4a71867f3bba56efb05672aa77c3 | [] | no_license | webclinic017/fa-absa-py3 | 1ffa98f2bd72d541166fdaac421d3c84147a4e01 | 5e7cc7de3495145501ca53deb9efee2233ab7e1c | refs/heads/main | 2023-04-19T10:41:21.273030 | 2021-05-10T08:50:05 | 2021-05-10T08:50:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,116 | py | """---------------------------------------------------------------------------------------------------------------------
MODULE
NeoXActivityReportsHookBase
DESCRIPTION
This module contains STP logic to terminate manually settled full returns.
-------------------------------------------------------------------... | [
"nencho.georogiev@absa.africa"
] | nencho.georogiev@absa.africa |
d054346c87be5b288789161df7aab86f6529a381 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02618/s735365678.py | 8420da1520836f214d193d40cdff980b0cf6ba93 | [] | 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 | 927 | py | day = int(input())
costlist = input().split() #int型
costs = []
for cost in costlist:
costs.append(int(cost))
satisfactions = []
for i in range(day):
satisfactions.append(input().split())
for i in range(day):
for j in range(26):
satisfactions[i][j] = int(satisfactions[i][j])
type_output = []
las... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed7c107962c8afadcbe032e3adf1ec694165e874 | e9757274ddb8484e27590ff0cc3f24550776c6cc | /Solved/0332/0332.py | b8e1940ab67ca07b91ba21270c3e0854482ab6e7 | [] | no_license | Jinmin-Goh/LeetCode | 948a9b3e77eb03507aad6f3c78640aa7f00e6ad5 | d6e80b968032b08506c5b185f66d35c6ff1f8bb9 | refs/heads/master | 2020-09-22T10:22:18.443352 | 2020-09-06T06:34:12 | 2020-09-06T06:34:12 | 225,153,497 | 1 | 1 | null | 2020-01-29T15:16:53 | 2019-12-01T11:55:25 | Python | UTF-8 | Python | false | false | 1,590 | py | # Problem No.: 332
# Solver: Jinmin Goh
# Date: 20200628
# URL: https://leetcode.com/problems/reconstruct-itinerary/
import sys
class Solution:
def findItinerary(self, tickets: List[List[str]]) -> List[str]:
if len(tickets) == 1:
return tickets[0]
posDict = {}
... | [
"eric970901@gmail.com"
] | eric970901@gmail.com |
ee6749ee770a3fd4f2931fe24b75704624443202 | 478e5ee3c6ae59718e6c8dfe4ed577b61e7807a8 | /webooks/scripts/zhangbook.py | d8b861b46cdb14d664b8d262b5aa9bed018ce074 | [] | no_license | sunhuang163/webooks | 538ff34f5b94a22f04734b0eddddbc23f82fcd73 | 2d1592cea8b58f2b367efcad2d69001d7b4fb735 | refs/heads/master | 2021-01-11T07:57:49.922957 | 2013-09-28T03:59:39 | 2013-09-28T03:59:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # -*- coding: utf-8 -*-
# __author__ = chenchiyuan
from __future__ import division, unicode_literals, print_function
import requests
from xml.etree import cElementTree as ET
from webooks.utils.spiders import SpiderHelper
helper = SpiderHelper()
categories = {
u"玄幻·奇幻": 1,
u"武侠·仙侠": 2,
u"竞技·游戏": 3,
u"... | [
"chenchiyuan03@gmail.com"
] | chenchiyuan03@gmail.com |
c35366e7f4f451ac4c2be9245d09199e758419e6 | bb32566f0c4688292b8f37d29630e0b7a18be24b | /checkio/test.py | bd98cfbffc9068ea7359e5f02a91ad8efd3daedf | [] | no_license | Chencheng78/python-learning | 4c7dd3a5ad39ac2e96b9ff0a1b9aabb56e863f7f | 63eb7ee9e547f899eafa698556f6adeb518795bb | refs/heads/master | 2022-07-27T02:40:03.067820 | 2022-07-12T09:05:47 | 2022-07-12T09:05:47 | 55,224,905 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | def div2(num,size=2):
l = []
for i in range(1,num //2 +1):
l.append([i,num-i])
if size != 2:
size -=1
for i in l:
i[-1] = div2(i[-1],size)
return l
#
# def flat(l):
# for i in l:
# if len(i)==1:
# l2.append(l[i][0])
# if type(l[i][1]) == list:
# flat(l[i][1])
print(div2(20))
print(div2(10,3))
print(d... | [
"geniuscc7@163.com"
] | geniuscc7@163.com |
e669bdac41a9f08c4cacd7a2039a8804bd8b0c14 | d4c720f93631097ee048940d669e0859e85eabcf | /tools/rust/build_crubit.py | a4470c672d00d8733fc1fa655dadba6fee96544b | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 3b920d87437d9293f654de1f22d3ea341e7a8b55 | refs/heads/webnn | 2023-03-21T03:20:15.377034 | 2023-01-25T21:19:44 | 2023-01-25T21:19:44 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 7,807 | py | #!/usr/bin/env python3
# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
'''Builds the Crubit tool.
!!! DO NOT USE IN PRODUCTION
Builds the Crubit tool (an experiment for Rust/C++ FFI bindings generation).
This script clones the... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
d15029009e83d30e08cbf7f44e678d402f135d54 | 68bad4b3d92872bb5b77b4ee503e588d20511a27 | /python/scripts_inhibition/old_script/simulate_slow_wave_ZZZ33_slow_sw.py | 6c004604f872b3248e1b1c9640823ae64211d643 | [] | no_license | mickelindahl/bgmodel | 647be626a7311a8f08f3dfc897c6dd4466fc0a92 | 78e6f2b73bbcbecd0dba25caf99f835313c914ee | refs/heads/master | 2023-08-29T13:57:04.122115 | 2022-02-11T14:28:23 | 2022-02-11T14:28:23 | 17,148,386 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | '''
Created on Aug 12, 2013
@author: lindahlm
'''
from core import monkey_patch as mp
mp.patch_for_milner()
from scripts_inhibition.base_simulate import (get_path_rate_runs,
get_path_logs, get_args_list_oscillation,
get_kwargs_list_indv_nets,
par_pro... | [
"mickelindahl@gmail.com"
] | mickelindahl@gmail.com |
fd3b6bcd15d022a5ab129d6512ca3262d9b18dfc | 81313cbd75bbd29cd48632d3cfc6b84884884650 | /LimitHelpers/ModelIndependent/ModelIndependentExcl_sr_ht_1100_mbl_400_all_unblind.py | 4e42c3752592292f08417118c98a9eac1c4eac94 | [] | no_license | UPenn-SUSY/PennSUSYFrame | ee93fd299e4e36ebc74e0065db0740451309682a | 41303b163dbc05451b22c19b00b436cc25440cf6 | refs/heads/master | 2019-01-19T10:28:47.417027 | 2015-05-08T15:07:24 | 2015-05-08T15:07:24 | 13,934,522 | 2 | 0 | null | 2015-05-08T15:07:24 | 2013-10-28T18:23:35 | C++ | UTF-8 | Python | false | false | 165 | py | test_sr = 'sr_ht_1100_mbl_400'
flavor_channel = 'all'
is_blind = False
execfile('/'.join([os.environ['BASE_WORK_DIR'], 'LimitHelpers', 'ModelIndependentExcl.py']))
| [
"bjack3@gmail.com"
] | bjack3@gmail.com |
1a42507992db088bfcb8a7e98e127f1a23b03cad | 2d6d256c88cfc984de80431263eb3e872d00a96c | /glue/viewers/image/tests/test_composite_array.py | a9e45d3450daf12b8d135d7e346191bc33833bfa | [
"BSD-3-Clause"
] | permissive | shreyasbapat/glue | c37b06c9d52cc7fd9b82b0bb0502ca52f63e957a | 06ad71cd80b2ed1ee85c02819461a727032f0f72 | refs/heads/master | 2020-04-11T04:35:37.095942 | 2018-11-28T07:55:15 | 2018-11-28T07:55:15 | 161,517,892 | 1 | 0 | null | 2018-12-12T16:49:24 | 2018-12-12T16:49:24 | null | UTF-8 | Python | false | false | 5,053 | py | from __future__ import absolute_import, division, print_function
from mock import MagicMock
import numpy as np
from numpy.testing import assert_allclose
from matplotlib.pyplot import cm
from ..composite_array import CompositeArray
class TestCompositeArray(object):
def setup_method(self, method):
self.a... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
9540e4321dc2f728b30a87c2029f118b4d5f9391 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/prompt_toolkit/output/conemu.py | c74e2a037823a2484edbd16e8977ffa785009087 | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 1,493 | py | from typing import Any, TextIO
from prompt_toolkit.data_structures import Size
from prompt_toolkit.renderer import Output
from .vt100 import Vt100_Output
from .win32 import Win32Output
__all__ = [
"ConEmuOutput",
]
class ConEmuOutput:
"""
ConEmu (Windows) output abstraction.
ConEmu is a Windows co... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
be8f0664dab21383d31ea2513b147caf6229a26f | 1d1c1de4cbaecb647a723221344f47e7704c9b6f | /upload/file_handler.py | 658018c697ac93567641a4a7a1769597e8ecb86b | [] | no_license | vprusso/waveproject | 2a1228b9f11d8b656c07519a2e874a1601601369 | b72d8915553929fe0e3eecd517a7f65d0d622746 | refs/heads/master | 2021-06-15T11:06:20.157860 | 2016-12-05T22:42:01 | 2016-12-05T22:42:01 | 73,842,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,353 | py | import csv
import collections
import os
from .models import Document, DocumentEntry, MonthlyExpenditure
from .utils import SanitizeInput, CurrencyHelper
def write_csv_file(path, csv_file):
fout = open(path, 'wb')
for chunk in csv_file.chunks():
fout.write(chunk)
fout.close()
def save_file_conte... | [
"vincentrusso1@gmail.com"
] | vincentrusso1@gmail.com |
71bc10c3ee710d1f537805297fb35fc28ac61000 | 3c6c0c35b5d1b26bbb8f07e90848a30a412e203f | /test173_3.py | 61400530cd973ee5790ffd60a43dae2e4e02ad0c | [] | no_license | MikhailRyskin/test1 | 3a4788ab229801c3210908dedf589eb3c9393788 | 78ef44d50249fe0db63bd9f6c8ddb5ee0a309214 | refs/heads/master | 2023-06-13T07:40:37.556943 | 2021-07-10T14:15:47 | 2021-07-10T14:15:47 | 346,758,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | import random
team_1 = [random.randint(50, 80) for _ in range(10)]
team_2 = [random.randint(30, 60) for _ in range(10)]
our_team = ['Погиб' if team_1[i] + team_2[i] > 100 else 'Выжил' for i in range(10)]
print('Урон первого отряда: ', team_1)
print('Урон второго отряда: ', team_2)
print('Состояние третьего отряда:', ... | [
"rymv@yandex.ru"
] | rymv@yandex.ru |
24a66fa605d58fe106e9eaef551d4f1ac1d2cd10 | 4626631c5e68a13ed4dde041212da39d344d74d9 | /examples/scripts/clear-alerts.py | c040de1a1849f852cb538495a4eb0ba4b8079608 | [
"MIT"
] | permissive | xod442/python-hpOneView | a1482677e3252dabf1e14f9349c119428331089f | b78fb81cba34992bb84ed3814aae04ce05ef913f | refs/heads/master | 2021-01-18T05:53:42.466348 | 2015-08-11T15:59:16 | 2015-08-11T15:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | #!/usr/bin/env python3
###
# (C) Copyright (2012-2015) Hewlett Packard Enterprise Development LP
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limit... | [
"troy@debdev.org"
] | troy@debdev.org |
0e44e38cdf5170ac441004d596be1f6bb458b75f | 2091dc754d0346a345d84dce32177a4d6aa2097b | /Payload_Type/Apollo/mythic/agent_functions/assembly_inject.py | 8428a3175a08723a697dcfd7d9eae405c9706178 | [
"BSD-3-Clause",
"MIT"
] | permissive | dycsy/Apollo | 132d5d5f98ae2951e6c58df796be1dfbc495c03f | 6ec815cbb87379b48c12d2108e6dd669ce5ce37e | refs/heads/master | 2023-04-21T07:30:38.551661 | 2021-04-22T19:53:13 | 2021-04-22T19:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | from CommandBase import *
import json
from uuid import uuid4
from os import path
from sRDI import ShellcodeRDI
from MythicFileRPC import *
class AssemblyInjectArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {
"pid": CommandParamet... | [
"djhohnstein@gmail.com"
] | djhohnstein@gmail.com |
d22335bad1dfe797d48ffc83e724c870a8b20d86 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/Rhino/Geometry/__init___parts/ExtrudeCornerType.py | 3aef1744b150326694e54571f7c4f9a737d59b82 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | class ExtrudeCornerType(Enum,IComparable,IFormattable,IConvertible):
"""
Corner types used for creating a tapered extrusion
enum ExtrudeCornerType,values: Chamfer (4),None (0),Round (2),Sharp (1),Smooth (3)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(y) <==> x==yx.__eq__(y) <==> x==y """
... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
478d5ffdfd3fc7379408c66075233d070c3d51e0 | 1f41b828fb652795482cdeaac1a877e2f19c252a | /maya_tools_backup/3dGroupTools/python/modeling/subTagging/view.py | 734ea99a9c5495e60cd1f7dc1c0d6773d847bf85 | [] | no_license | jonntd/mayadev-1 | e315efe582ea433dcf18d7f1e900920f5590b293 | f76aeecb592df766d05a4e10fa2c2496f0310ca4 | refs/heads/master | 2021-05-02T07:16:17.941007 | 2018-02-05T03:55:12 | 2018-02-05T03:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,081 | py | #encoding=utf-8
import maya.cmds as cmds
class SubdivisionTagging():
def __init__( self ):
self.windowName = 'SubdivisionTaggingWindow'
self.tagAttrName = 'smoothOn_mark'
def getSelectedMesh( self ):
meshs = []
selected = cmds.ls( sl = True )
for select in selected:
... | [
"kimsung9k@naver.com"
] | kimsung9k@naver.com |
9041bdac32ce8409d2303facd7d0f9ea74667b15 | 3d8e9d2ba283ebb6ed9442439539e2cd8112ceb2 | /snippets/urls.py | cc3c173d1ee7e331f6fb97e127ca5981708eaa68 | [] | no_license | kamal0072/Django-based-Api2 | 15a78faedd754a04f07ffc5dc94dff9942180784 | ce52bee27795e1d6df6bb456df4479b8994f8faf | refs/heads/master | 2023-06-02T01:59:11.918978 | 2021-06-14T18:09:20 | 2021-06-14T18:09:20 | 376,915,073 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from django.urls import path
from . import views
from rest_framework.urlpatterns import format_suffix_patterns
from snippets.views import SnippetViewSet, UserViewSet, api_root
from rest_framework import renderers
snippet_list = SnippetViewSet.as_view({
'get': 'list',
'post': 'create'
})
snippet_detail = Snippe... | [
"hasan.kamaal0072@gmail.com"
] | hasan.kamaal0072@gmail.com |
82c4f1ac4db277c46ae34d0b2290b084d066788a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03634/s202269731.py | 9d6796240df4ea7fdde9a0928d354736efbfd285 | [] | 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 | 616 | py | import heapq
n = int(input())
g = [[] for _ in range(n)]
for i in range(n-1):
a, b, c = map(int, input().split())
g[a-1].append((b-1, c))
g[b-1].append((a-1, c))
q, k = map(int, input().split())
dis = [float("inf")] * n
dis[k-1] = 0
pq = [(0, k-1)]
while pq:
d, node = heapq.heappop(pq)
if d > d... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c7722e7398c1e9e47e50cdab5aa3bb78a7f93fe9 | 13377cb2618d2f5c64bc224ccaf4cbf898d5a136 | /core/digitDetect.py | 4bcc43c0ad045c03d5a7181aaadb2c802d3fbba7 | [] | no_license | GachaSalt/Arknights-Drop-Recognition | 1af8607392e34d188e40efd2d9201f6389dc108b | 44440d9e44f3beb07993e7d73cef685ddf3e3229 | refs/heads/master | 2022-07-09T11:19:56.739770 | 2019-12-28T05:25:47 | 2019-12-28T05:25:47 | 205,408,184 | 19 | 2 | null | 2022-06-21T22:37:40 | 2019-08-30T15:24:01 | Jupyter Notebook | UTF-8 | Python | false | false | 2,568 | py | import cv2
import numpy as np
from .DATA import expDigitSample, lvDigitSample, stageDigitSample, itemDigitSample
from .DATA import sample_size
# from .fileHandle import *
from .ssim import Thumbnail
# expDigitSample = load_data(r'.\\DATA\\expDigitSample.dat')
# lvDigitSample = load_data(r'.\\DATA\\lvDigitSample.da... | [
"email@example.com"
] | email@example.com |
faeb371583a241c0902fb9f98104d0e4da9e36e0 | 519aa4942b6eb6663811dd2a050f498c8d3e0f95 | /Python 2.X/ZERO/CGI/Programs/Calendar Maker/htbin/z_html.py | cd8acd88569020bdf489f1cea20d481a11f1f856 | [] | no_license | jacobbridges/my-chaos | 2b5aab5dcac703b268f03efb07fc54e9d4984f29 | 45837fc39f99b5f7f69919ed2f6732e6b7bec936 | refs/heads/master | 2020-05-20T03:21:32.747460 | 2016-08-13T02:12:25 | 2016-08-13T02:12:25 | 29,456,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,205 | py | '''Support module for CGI applications.
This modules provides access to the HTML_Table and HTML_Month
classes which provide abstractions to the HTML code involved.'''
__version__ = 1.1
################################################################################
import calendar
import z_matrix
class HTML_Table:... | [
"him@jacobandkate143.com"
] | him@jacobandkate143.com |
a834a8d9c23a2ae067fe536f2ad84db042456538 | 8737c8e25279bd1df95e939244a6ee1bc6be33f7 | /webapp/python/isucon.py | a5a6c32fde47939cc981801ef646f79b7dcacce2 | [] | no_license | methane/isucon | e4ef846346a8ba718c676340936461da41616d87 | b9fa8b74805a479754e7ade65123a7a6c72a7903 | refs/heads/master | 2021-01-17T23:59:24.902081 | 2012-10-12T23:14:04 | 2012-10-12T23:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,410 | py | import os
import json
import pymysql
from pymysql.cursors import DictCursor
from threading import local
config = json.load(open('../config/hosts.json'))
ctx = local()
class ConnectionPool(local):
@property
def con(self):
if not hasattr(self, '_con'):
self._con = self._get_con()
r... | [
"inada-n@klab.com"
] | inada-n@klab.com |
19384f25bee5b7f981caf21727bfaba836cc9b6a | 57e35fea8d2059934ea927386da0a85306262344 | /@Groome_Danila_bot/app/handlers/errors.py | 952cfd142a89f899a183239030bc2fbfea30efdb | [] | no_license | Cicadadenis/ZZZ | b46de063566d2ffefc5d4aa270b0108eff40af2f | b972dbcdff78fd23b605816b10c13b9c5cfa2714 | refs/heads/main | 2023-07-29T14:35:11.881094 | 2021-09-13T16:40:10 | 2021-09-13T16:40:10 | 387,025,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | import logging
from aiogram import Dispatcher
from app.bot import config
async def errors_handler(update, exception):
"""
Exceptions handler. Catches all
exceptions within task factory tasks.
"""
logging.exception(exception)
logging.debug(update)
return True
def setup(dp: Dispatcher)... | [
"noreply@github.com"
] | Cicadadenis.noreply@github.com |
981e0d20bb6af93143a8b3eab6c7c73a56793a71 | 6fb81184a885e0fc75df8b73f378d8f5d8738a2e | /tests/test_script.py | 109c62ee78d11977b81914176b2e39369782c375 | [
"MIT"
] | permissive | jkehler/Flask-RQ2 | dd41e7b5b38a205a9aef57eed610b92508a16abe | abd5981c763c08f11be8b940b539f4bdf36571c8 | refs/heads/master | 2021-07-10T22:21:07.507708 | 2017-10-11T04:02:18 | 2017-10-11T04:02:18 | 106,503,322 | 0 | 0 | null | 2017-10-11T03:55:06 | 2017-10-11T03:55:05 | null | UTF-8 | Python | false | false | 3,493 | py | import logging
import sys
from flask import current_app
import pytest
from flask_rq2 import app as flask_rq2_app
from flask_rq2 import script as flask_rq2_script
from flask_rq2 import RQ
from flask_rq2.script import RQCommand, RQManager, _commands
def test_with_rq_commands(rq):
manager = RQManager(rq)
asser... | [
"jannis@leidel.info"
] | jannis@leidel.info |
3a72418624bb2562579564803c390abf99b1303b | 4cc285b0c585241ff4404087e6fbb901195639be | /NeuralNetworkNumbers/venv/Lib/site-packages/sklearn/tests/test_min_dependencies_readme.py | 2f005cb5b06048b84244adf40820491edaeae740 | [] | no_license | strazhg/NeuralNetworksPython | 815542f4ddbb86e918e657f783158f8c078de514 | 15038e44a5a6c342336c119cdd2abdeffd84b5b1 | refs/heads/main | 2023-04-16T18:51:29.602644 | 2021-04-27T14:46:55 | 2021-04-27T14:46:55 | 361,944,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:28f33f79edf396dab0b7995ee7d7b479b4297dbd933cc11b96bf2fab27b7e544
size 1477
| [
"golubstrazh@gmail.com"
] | golubstrazh@gmail.com |
26682b4c75d58703977d68452dd3d74556eef28a | 91ca710a3087207116f9c7e7b73802f73c1e7a97 | /Python_Challenge_2.py | 678daf6266070df73bcf585c63cb9ad36d7e472c | [] | no_license | LiquidHologram/Problem_2 | 577b34eb5513e3d96fa3f60d77195602f3f6f2fb | 1ecee0fed83e9ac0dbb7e42f42c0341099665c98 | refs/heads/master | 2021-01-01T06:38:43.584986 | 2013-03-11T03:38:54 | 2013-03-11T03:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | from string import maketrans
intab = "abcdefghijklmnopqrstuvwxyz"
outtab = "cdefghijklmnopqrstuvwxyzab"
transtab = maketrans(intab, outtab)
str = "g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pc... | [
"none"
] | none |
b00a450b410934e57d431a2cbb42481388a6a3eb | 0be81f5104d9b06348e2fb481b60af57dcb67cef | /Source/KqlPython/setup.py | 8f6b1df4ba1ac72c49a526a546f29e78d5a4da1e | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/KqlTools | 46373181e033ac7ee31846333c0f6dd2d6657140 | 890ab51c8c4032a94762a842c6f6e3214e4a5912 | refs/heads/master | 2023-06-30T03:42:44.939969 | 2023-03-11T01:28:08 | 2023-03-11T01:28:08 | 274,771,839 | 67 | 19 | NOASSERTION | 2022-10-21T15:29:30 | 2020-06-24T21:20:19 | C# | UTF-8 | Python | false | false | 1,440 | py | import os
import glob
from setuptools import setup, find_packages
import kqlpythondir
with open(os.path.join(kqlpythondir.directory, 'VERSION.txt'), encoding='utf-8') as f:
version = f.read()
with open(os.path.join(kqlpythondir.directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
setup(
n... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
a1f55a92288f94eb9bfbc27cfeba3f0411236c7d | 6f15f94ea6865d228856dadd57e4fafabac89db1 | /setup.py | 71d41bdba51b768a15e5278b5cbc3da063754079 | [] | no_license | DanielLSM/canton | 00afaefd45ab2681d1d65b0c0df701a07d2951c0 | a2734c0c2f24e2393513ea9b78d25ccb066b836e | refs/heads/master | 2021-01-19T12:51:40.344413 | 2017-05-13T09:15:15 | 2017-05-13T09:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,890 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name... | [
"ctmakro@gmail.com"
] | ctmakro@gmail.com |
e69afa84efd82f83eafbca1c0a19fdd81e046e33 | f1717664d7a54e3210b1b5b424bb5ab2576e8428 | /newspaper/users/views.py | bb3aebf9fcef810b436e62bf13e1ce8d8c2f553c | [] | no_license | mehedi432/newspaper | 0f906f53e9d9f0178add4e4b0a72a5f79523cda6 | d43efa2179f3ab88810947aee2b92fc769e59707 | refs/heads/main | 2023-08-27T20:01:34.226169 | 2021-11-01T12:04:29 | 2021-11-01T12:04:29 | 423,448,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from django.urls import reverse_lazy
from .forms import CustomUserCreationForm
from django.views.generic import CreateView
class SignupView(CreateView):
form_class = CustomUserCreationForm
success_url = reverse_lazy('login')
template_name = 'signup.html'
| [
"aamehedi93@gmail.com"
] | aamehedi93@gmail.com |
90fc58ea4ab4fa74a0e67517ed7de611dbee07e7 | c89f5856fe74cff49a9d96dde9ed0117109e3845 | /Web-scraping/Web.py | f48ac0612b551e8b99e87098b09aa0193bf438f3 | [] | no_license | sinoclover/python | b2b3f435d15840ec16a34c62d50308bdfb9d6c3e | 02f5347bc8219f1df52486077adf0017fe6d5211 | refs/heads/master | 2020-08-27T22:14:20.672846 | 2019-12-01T13:27:42 | 2019-12-01T13:27:42 | 158,791,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | # # 采集整个网站
# # 为了避免一个页面被采集多次,需要对链接进行去重
# from urllib.request import urlopen
# from urllib.error import HTTPError, URLError
# from bs4 import BeautifulSoup
# import re
#
# pages = set()
#
# def getLinks(pageUrl):
# global pages
# try:
# html = urlopen('http://baike.baidu.com' + pageUrl)
# except (HTT... | [
"zzxy123007@163.com"
] | zzxy123007@163.com |
36f0adaaa9888342af92a0b5b402094061685185 | fef98678398c84d76e4e3abed161af6f1b66097f | /partnersbankonline/spiders/partnersbankonline.py | 83da342ca796fb3cdb0dec17227b84f72b3b6c7b | [] | no_license | daniel-kanchev/partnersbankonline | 4ea52618e0d8eabdb54accd60b32a530a9f44464 | 21694df9013b9a3a84abdc2d3ea425f5f981253b | refs/heads/main | 2023-04-01T10:11:58.303585 | 2021-04-08T10:34:47 | 2021-04-08T10:34:47 | 355,863,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from partnersbankonline.items import Article
class partnersbankonlineSpider(scrapy.Spider):
name = 'partnersbankonline'
start_urls = ['https://www.partnersbankonline.com/blog/']
d... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
5931c0fe0c75584045f243763f8151c5095b1e6c | 61a5e9adfcd292dcf06fceda993c0fbeb0b469cc | /alg/mianshipython/1_1_3.py | f143171d89600d6592f720217e8d275793b70ed6 | [] | no_license | godspysonyou/everything | f76e0ade065601990ff5b449f8c5955ba3c07374 | 03c7ec9d9e5a802ffbc854a9f929ca770ae7add8 | refs/heads/master | 2020-03-20T23:34:50.812645 | 2019-04-21T13:16:58 | 2019-04-21T13:16:58 | 137,853,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | # 如何实现链表的逆序
# 方法三:插入法
class LNode:
def __init__(self, x):
self.data = x
self.next = None
def Reverse(head):
# 判断链表是否为空
if not head or not head.next:
return
cur = head.next.next
head.next.next = None
while cur:
next = cur.next
cur.next = head.next
... | [
"1344094556@qq.com"
] | 1344094556@qq.com |
f05e72895295159de85fe856a785e91d44bac7fb | 5a017fc861db92e3a2919f260d54f1301afbb3e5 | /MIDI Remote Scripts/MPK261/__init__.py | 19c1958dda064fcbf5db356f0144b2211d4c4a68 | [] | no_license | kera67/livepy_diff_ten | 8d8d0f3b76048f1fe5d4c0fbc02549dc922c7d5b | 12a0af9e9c57d0721af5036ce23af549df2c95f0 | refs/heads/master | 2023-07-14T18:26:33.591915 | 2020-11-19T07:50:28 | 2020-11-19T07:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | from __future__ import absolute_import, print_function, unicode_literals
from .MPK261 import MPK261
from _Framework.Capabilities import controller_id, inport, outport, CONTROLLER_ID_KEY, PORTS_KEY, NOTES_CC, SCRIPT, REMOTE
def get_capabilities():
return {CONTROLLER_ID_KEY: controller_id(vendor_id=2536, product_ids... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
dd52c71db7f7b4f795663e29ff119f8cea011454 | 538cee184d5ba586b2dfddd58e243febfbde81e6 | /examples/Example - SRM0 Neurons.py | 3d557938e7f4dd19b73dd93ffcc7c5a9ad969c3e | [
"MIT"
] | permissive | bblais/Plasticnet | 05ea7763cc7a188dfb88611cb12dfc4edd015955 | 5fc8a4fc715d4877bfa255feacd37b4c23201777 | refs/heads/master | 2023-07-10T06:15:06.286575 | 2023-06-21T10:38:11 | 2023-06-21T10:38:11 | 34,905,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,244 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from splikes import *
# In[13]:
from pylab import figure,legend,plot,linspace
# <img src="./images/epsp1.png">
# Input Rate: $\rho$
#
# Equation for Unsmoothed:
#
# \begin{eqnarray}
# u&\rightarrow& u+a\cdot w_i \mbox{ (input spike on input $i$)}\\
# \frac{du}{... | [
"bblais@gmail.com"
] | bblais@gmail.com |
28db36636e2b7c78c9df1ecc53aeaf467dd2e4be | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/union/anyURI-float/Schema+Instance/NISTXML-SV-IV-union-anyURI-float-enumeration-5-2.py | 009d6fd0c6e33d18c17fc88242dbc2ae4a3d9407 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 577 | py | from output.models.nist_data.union.any_uri_float.schema_instance.nistschema_sv_iv_union_any_uri_float_enumeration_5_xsd.nistschema_sv_iv_union_any_uri_float_enumeration_5 import NistschemaSvIvUnionAnyUriFloatEnumeration5
from output.models.nist_data.union.any_uri_float.schema_instance.nistschema_sv_iv_union_any_uri_flo... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
9241197168814818caa2f27aa1e2822f458d7259 | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/tests/unit/cells/test_cells_state_manager.py | 78ed2231f8a70eb86aa550ceba314c8a25797c56 | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 34,850 | py | begin_unit
comment|'# Copyright (c) 2013 Rackspace Hosting'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
c... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
d134d5655639e1fb2db6bbe1fb0c5191d61ecc3a | f1364645e43b60c05b746083981e5c7f169702ba | /strategy/phase_out/ml03.py | 094517388e99e28588f6cee44aa862c7867bcf29 | [] | no_license | geniustom/AI_Trading | bf41b946abe1f431a98078878d4b5f28a9a0d5c3 | 8c21d966053d64a224dc6b277ac9a33c576134ea | refs/heads/master | 2020-05-29T18:35:43.400029 | 2020-03-28T21:11:09 | 2020-03-28T21:11:09 | 189,305,491 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # coding=UTF-8
import lib.indicator as ind; reload(ind);
###############################################################################
def s1(self,PRICE,i,I):
if i==15:ind.GetIndicatorByType(I,"大台贏家")
if I.get("大台純贏家作為")[i-1]<-2 : self.EnterShort(PRICE)
if I.get("大台純贏家作為")[i-1]>2 : self.EnterLong(PRICE)
... | [
"Geniustom@gmail.com"
] | Geniustom@gmail.com |
27722507ab885b075a068f4b3b62c6e5d6e5004f | 73f1075c99338984795f4bd7bd7b9563ecc36d87 | /Queue_Stack/752.Open_the_Lock.py | 6206f9f6c151bfaca1c1aecc94a9b8ec596c8896 | [] | no_license | grg909/LCtrip | 314bd173f87ec98ff13234bdd148c76482db2df7 | 96836da905526b47f0cdee8c0bb4790c4cdd6c79 | refs/heads/master | 2020-09-12T13:38:52.486189 | 2020-08-28T14:22:50 | 2020-08-28T14:22:50 | 222,442,472 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | # -*- coding: UTF-8 -*-
# @Date : 2019/12/1
# @Author : WANG JINGE
# @Email : wang.j.au@m.titech.ac.jp
# @Language: python 3.7
"""
"""
from collections import deque
class Solution:
def openLock(self, deadends: List[str], target: str) -> int:
deadends = set(deadends) # in 操作在set中时间复杂度为O(1)
... | [
"grg909@foxmail.com"
] | grg909@foxmail.com |
fac3011e283433b33679740677265c838001650f | 775822912186176ced195cc224659f2b4f5994d3 | /whoville/cloudbreak/models/structured_notification_event.py | 455702372e7915ee73aad70a11df31a854d3b62c | [
"Apache-2.0"
] | permissive | Chaffelson/whoville | 7885d7d0994659dd1d1c02b4bcd87d48b161c5d0 | f71fda629c9fd50d0a482120165ea5abcc754522 | refs/heads/master | 2021-06-04T06:17:29.603774 | 2021-02-11T13:35:28 | 2021-02-11T13:35:28 | 93,987,343 | 31 | 32 | Apache-2.0 | 2019-10-01T04:59:13 | 2017-06-11T06:57:39 | Python | UTF-8 | Python | false | false | 6,958 | py | # coding: utf-8
"""
Cloudbreak API
Cloudbreak is a powerful left surf that breaks over a coral reef, a mile off southwest the island of Tavarua, Fiji. Cloudbreak is a cloud agnostic Hadoop as a Service API. Abstracts the provisioning and ease management and monitoring of on-demand clusters. SequenceIQ's Cloud... | [
"chaffelson@gmail.com"
] | chaffelson@gmail.com |
8670f20cd30b86b5b933a71379055cb7e6566132 | cd6d1e5f91bef10701ecb2ac4161e2982bd87e8d | /pwndbg/commands/telescope.py | 4801641857dede03f36232a4df95eddcbe461416 | [
"MIT"
] | permissive | 0xDEC0DE8/pwndbg | 3b9edea1ce435067a0d90a35b25b5ebe04f77e47 | e2cb1ab5da9dff2779ef285b0b06cc48655a1a2e | refs/heads/master | 2021-01-24T16:03:32.693237 | 2016-04-18T02:12:05 | 2016-04-18T02:12:05 | 56,667,804 | 1 | 0 | null | 2016-04-20T08:02:20 | 2016-04-20T08:02:20 | null | UTF-8 | Python | false | false | 2,479 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Prints out pointer chains starting at some address in memory.
Generally used to print out the stack or register values.
"""
import collections
import pwndbg.arch
import pwndbg.chain
import pwndbg.commands
import pwndbg.memory
import pwndbg.regs
import pwndbg.typeinfo
... | [
"riggle@google.com"
] | riggle@google.com |
c803bd1c8eef597005d492bccadc025979abe5d8 | aa1972e6978d5f983c48578bdf3b51e311cb4396 | /nitro-python-1.0/nssrc/com/citrix/netscaler/nitro/resource/config/network/interfacepair.py | 39fc75681392eb748d6d36f185842b26c53eb5fa | [
"Python-2.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | MayankTahil/nitro-ide | 3d7ddfd13ff6510d6709bdeaef37c187b9f22f38 | 50054929214a35a7bb19ed10c4905fffa37c3451 | refs/heads/master | 2020-12-03T02:27:03.672953 | 2017-07-05T18:09:09 | 2017-07-05T18:09:09 | 95,933,896 | 2 | 5 | null | 2017-07-05T16:51:29 | 2017-07-01T01:03:20 | HTML | UTF-8 | Python | false | false | 7,063 | py | #
# Copyright (c) 2008-2016 Citrix Systems, 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 l... | [
"Mayank@Mandelbrot.local"
] | Mayank@Mandelbrot.local |
a9263e67addfe5f9590da5d7d50a327ab031fa55 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/3610a2457f89362cc61255fbfa93df0d60b33677-<disconnect_all_containers>-fix.py | 85a2023c6feaa3eb9cd281e1cd09b7a6fb48cf89 | [] | 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 | 250 | py | def disconnect_all_containers(self):
containers = self.client.inspect_network(self.parameters.network_name)['Containers']
if (not containers):
return
for cont in containers.values():
self.disconnect_container(cont['Name']) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
218ccb1bd2dfefaa89c523909e0c5ed5c8b0b202 | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/10992/10992.py2.py | 9767d29a51c3321ee61d8ece21f23541a65754f8 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
352366fc0f661f720e8ecaa26e3e78d8c2fc7aaf | 020fbf1db497520abcb30cd3889cfe61c601723f | /practice/readmodclass2.py | c5296cc7b83d8fed132cf438e7d688040c05200a | [] | no_license | bluecrt/first-project | bc53a49ae23c3cc6beb0ede4d00d94e4ad568771 | 7f5f376adcaa0d48caf4540db6613f843d40e173 | refs/heads/master | 2023-06-21T19:16:46.644489 | 2021-07-22T13:13:15 | 2021-07-22T13:13:15 | 386,676,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from classcars import Cars
car = Cars('goden', 'big')
print('your car\'s color is {}, it\'s shape is {}, now you can drive'.format(car.color, car.shape)) | [
"email"
] | email |
e80ce76fa1f147bec7bd97a0d7622c9e7bc9093e | 674a48ab817fb841417d72de7197a84b2d2b71b7 | /HUARAZ/HU_saveCorrelations.py | 0a70a817c2a6b8fe4e2fed5f8aef7deb26f0c038 | [] | no_license | cornkle/proj_CEH | 0d1556bbb5992e663257841ada333f32e6da3e22 | 790ad1aa7e7a8c6593a21ee53b2c946b2f7a356b | refs/heads/master | 2023-09-01T01:26:58.669089 | 2023-08-23T14:22:47 | 2023-08-23T14:22:47 | 55,054,763 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 25,795 | py | # -*- coding: utf-8 -*-
import ipdb
import numpy as np
import xarray as xr
import matplotlib.pyplot as plt
import pandas as pd
import cartopy
import cartopy.crs as ccrs
from utils import constants as cnst
from eod import msg
from utils import u_darrays as uda
from scipy import stats
import warnings
import multiproces... | [
"cornelia.klein@gmx.de"
] | cornelia.klein@gmx.de |
eda5f6ff03acd99d8f0adfd9303c8116a7387bb6 | 91b638e9e684441fd9503717cf1d94065f65d484 | /helmet_assignment/modules/train/train_factory.py | 4565a2cd31fe1b84815b3af009dbd5869828f8b7 | [] | no_license | Vadbeg/helmet_assignment | 5604090b96aa8cfbc4566cfb1104ad1a1e863392 | becb8f46067fd91225c4e9c3b1d8f4f2127e1c6a | refs/heads/master | 2023-08-21T21:59:41.324270 | 2021-10-16T08:35:50 | 2021-10-16T08:35:50 | 410,277,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from __future__ import absolute_import, division, print_function
from .mot import MotTrainer
train_factory = {
'mot': MotTrainer,
}
| [
"vadbeg@tut.by"
] | vadbeg@tut.by |
dde09b5507bd89e26c2ac9f0541db801b6724778 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i06-shared/scripts/i06shared/keithley/keithley2461_scannables_class.py | 6e2fa959019b08ef069b2a931ea9af823b01fb1b | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,813 | py | '''
define scannables that interact with Keithley 2461 source meter using SCPI (Standard Commands for Programmable Instrument) commands
SCPI Command execution rules are as follows:
Commands execute in the order that they are presented in the command message.
An invalid command generates an event message and is not e... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
a06b25c4550d874a742e1ff7bc760b667a1fb232 | 1524720d6480ad0a51b6fd8ff709587455bf4c5d | /installer/nevow/inevow.py | 9031f5cd8bf4576f79fb3d4f3e8158f2ca38c194 | [] | no_license | calston/tums | 2bd6d3cac5232d2ccb7e9becfc649e302a310eab | b93e3e957ff1da5b020075574942913c8822d12a | refs/heads/master | 2020-07-12T03:46:43.639800 | 2018-05-12T10:54:54 | 2018-05-12T10:54:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,188 | py | # -*- test-case-name: nevow -*-
# Copyright (c) 2004-2008 Divmod.
# See LICENSE for details.
"""
Nevow interface definitions.
"""
from zope.interface import Interface, Attribute
class IQ(Interface):
"""Interface for querying. Adapters implement this for objects which may
appear in the stan DOM to allow intro... | [
"junwin@gmail.com"
] | junwin@gmail.com |
7aa3e1094b2eb5692034210ca85d643c8c3e407a | a5d5a1824db7a09b58b81fda0cbba61764e6ac0c | /wsdBabelfyNet.py | de40bc580c8fa5389850cb6f954b8ad84bedb9ab | [] | no_license | HencyChine/babelNetAPI | 25260ffa69d68332c2ae31184cecd783720655b1 | 180f9ef0910886b30605391aaee1b8ea4f967a15 | refs/heads/master | 2021-01-24T20:13:31.742512 | 2016-01-16T09:38:30 | 2016-01-16T09:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 25 16:46:57 2015
@author: spacegoing
"""
from DocUtils.concaTextData import readALTA2015Data
from queryBabelfy import getDocBnSets, getFilteredDocBnSets
from queryBabelNet import getUniqueSynsetIDInfo,\
uniqueSynIDDict2docIndexLangSimpleLemma
def queryBabelfySynsetID(doc... | [
"spacegoing@gmail.com"
] | spacegoing@gmail.com |
dd01f19d2c6fe788be554302eb214b8722e496d3 | cbda89443b351bb2047180dad4e300c13dc3df7f | /add_defects_newrot.py | d2a32669f2700082097d7627229b48b7d0a28fb3 | [] | no_license | sheridanfew/pythonpolarisation | 080f52979f98d26360a46412a10c8e3f51ee4549 | 178e2684e9a239a8e60af5f7b1eb414ac5f31e92 | refs/heads/master | 2021-07-10T01:07:40.978790 | 2021-03-11T16:56:37 | 2021-03-11T16:56:37 | 96,101,351 | 0 | 0 | null | 2017-07-03T13:37:06 | 2017-07-03T10:54:52 | null | UTF-8 | Python | false | false | 9,514 | py | import Basicelements.Rotation as rot
#Using Rodrigues rotation formula for rotation about vector http://math.stackexchange.com/questions/142821/matrix-for-rotation-around-a-vector
# ROT by alpha around a, gets ac face on ab, => want new crystal above in c => find max posn of atoms in bottom half crystal i... | [
"sheridan.few@gmail.com"
] | sheridan.few@gmail.com |
fbf182a5aebac14053d20f67c9dec2ea8d97eee7 | 59bd639757fd8afcfdba73298a69482fd1f88069 | /cifar10/2_Network_in_Network/2process.py | e2bbd8d506716b3ccf0e3ecf678cb9cd53a9e971 | [] | no_license | DeepReduce/DeepReduce | f1e14b985affba2796c80d9e795b36cfd4ed9a55 | 707c2b411d65ed77967a3d1ea1506a91cc9d4bfd | refs/heads/master | 2020-08-01T01:47:23.293453 | 2020-06-14T18:09:01 | 2020-06-14T18:09:01 | 210,813,368 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import os
import sys
from tqdm import tqdm
def readFile(filepath):
f = open(filepath)
content = f.read()
f.close()
return content.splitlines()
if __name__ == '__main__':
# threshold = str(sys.argv[1])
filename = str(sys.argv[1])
# path = os.getcwd() + '/Cov/activeneuron/' + threshold + 'a... | [
"DLR_ICLR20@163.com"
] | DLR_ICLR20@163.com |
4b1aa02eb3759b71cc4a3d06d5eefa76b29d2c84 | 22cbb7cffc3e5cf53fe87d2db216fdb88c8b7a8c | /stems/gis/utils.py | 6c1c1a57cfa434370e182fd86623d2e63432e8c0 | [
"BSD-3-Clause"
] | permissive | ceholden/stems | 838eb496978f7b68ae72988e0469c60e8730cb9c | 2e219eb76a44d6897881642635103b3353fc5539 | refs/heads/master | 2022-02-12T21:56:41.939073 | 2019-08-19T23:09:49 | 2019-08-19T23:09:49 | 164,480,487 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,550 | py | """ Assorted GIS utilities
"""
import logging
from osgeo import osr
from rasterio.crs import CRS
osr.UseExceptions()
def crs2osr(crs):
""" Return `osgeo.osr.SpatialReference` of a `rasterio.crs.CRS`
Parameters
----------
crs : rasterio.crs.CRS
Rasterio coordinate reference system
Retur... | [
"ceholden@gmail.com"
] | ceholden@gmail.com |
195e3bade6b6220496dfe8170e85b2cd8ce68897 | 18ad97292b34a679b8dea8a85090541c5bbf6174 | /alphabetanimals.py | 1a309b830abfa2c306308068fc05ba06e3c505c6 | [] | no_license | Jyotirm0y/kattis | b941044e39dc36d169450480fc33fd33bd2e0f8e | 2b9c1819ba29419bbea3db2e8ad7851155abbb3a | refs/heads/master | 2023-05-31T21:11:38.350044 | 2021-06-12T08:21:47 | 2021-06-12T08:21:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from collections import defaultdict
s = input()
n = int(input())
l = []
starts = defaultdict(set)
ends = defaultdict(set)
for i in range(n):
a = input()
l.append(a)
start, end = a[0], a[-1]
starts[start].add(i)
ends[end].add(i)
end = s[-1]
if end not in starts:
print('?')
else:
done = Fal... | [
"ainunnajib@gmail.com"
] | ainunnajib@gmail.com |
65e74997650a39fc859bc82f81453ed9a460af5a | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/audio/Tacotron2_for_PyTorch/main.py | 4ae9c129e3491812b68182363a46b47cf098f3f3 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,290 | py | # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
3f40f48b5251fff1748fef88ceb1aeecf048e98e | 6af9e2257647e1d06e6f004dd8394a9f3d49b1aa | /Python/my_environments/djangoPy3Env/bin/python-config | 7834ca873cf629389a61caa92c560328d323bf88 | [] | no_license | ronaldaguerrero/coding_dojo | 43b05507fb616e7499d2c46b1049530b30d4b781 | 06ac3daadb9510873836b3fffe4bc880b5bee457 | refs/heads/master | 2020-05-01T05:58:40.564306 | 2019-03-23T04:53:13 | 2019-03-23T04:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,391 | #!/Users/xh0tsaucex/Desktop/coding_dojo/Python/my_environments/djangoPy3Env/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid... | [
"ronald.a.guerrero@gmail.com"
] | ronald.a.guerrero@gmail.com | |
6b5a9e9289a441b65137b41916a12629715cd91d | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-network-security/samples/generated_samples/networksecurity_v1beta1_generated_network_security_list_authorization_policies_sync.py | 4c781f4207561a12c7f3c8cff7ff0104887d323a | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 2,027 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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"
] | googleapis.noreply@github.com |
fcb3f59e78d48b84256be1823eae354735602da0 | 3ab7e700203054e104e6c60295c0a8455bc388b1 | /i_entity_extractor/etl/wenshu/clean_wenshu.py | 740794b660e7e97bdf2b4364a2a0d12375ba731a | [] | no_license | youfeng243/crawler | e8114ab5ef68bb9fd7e4296452d63b53d3d4080a | 59eaabef94de67444f09cfe5b25d481034d10f29 | refs/heads/master | 2021-07-11T10:12:27.946819 | 2017-10-12T11:35:27 | 2017-10-12T11:35:27 | 106,583,181 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | # coding=utf8
import time
import traceback
import json
from i_entity_extractor.etl.base_etl import BaseEtl
from i_entity_extractor.extractors.judge_wenshu.judge_wenshu_extractor import JudgeWenshuExtractor
from i_entity_extractor.entity_extractor_route import EntityExtractorRoute
class Wenshu(BaseEtl):
def __init... | [
"you@163.com"
] | you@163.com |
6969fa9ad834ea991f7d2c94a5d60cba026c28de | 3eecaca9c842bffe8757917bcdb5a6911a7ed157 | /python_examples/datatype_ex1.py | 8a96d531cab000f7630d8613b520655eecc5ceb3 | [] | no_license | matamkiran/python2020 | 2c79cb16e526ea7242e976c79c5db61d97326ec7 | c86b96ed3a266245f14b26fc7e8c0c35e76d4946 | refs/heads/master | 2023-02-10T06:21:50.609567 | 2023-02-01T18:43:28 | 2023-02-01T18:43:28 | 244,181,848 | 5 | 1 | null | 2021-04-28T17:34:01 | 2020-03-01T16:18:05 | Python | UTF-8 | Python | false | false | 131 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Mar 1 11:31:44 2020
@author: 666292
"""
a="hello"
print(type(a))
print(a+10) | [
"noreply@github.com"
] | matamkiran.noreply@github.com |
ce3c070c24eb5d404aa75b57729a0bb2c12d2af1 | 52b53a03b38107f2c62bf4097b9603c428faeb17 | /mingtak/portlet/scriptbox/tests/test_portlet.py | eae602f04af73804c105036a5e2f2a3a2becd00f | [] | no_license | mingtak/mingtak.portlet.scriptbox | ebf2680f17383bedac47d9fb5f5284e00c330157 | aa105c39303f519ef549a2510519c0b9c3db653d | refs/heads/master | 2021-01-01T19:28:27.114993 | 2015-03-27T13:03:09 | 2015-03-27T13:03:09 | 32,986,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,158 | py | from zope.component import getUtility, getMultiAdapter
from plone.portlets.interfaces import IPortletType
from plone.portlets.interfaces import IPortletManager
from plone.portlets.interfaces import IPortletAssignment
from plone.portlets.interfaces import IPortletDataProvider
from plone.portlets.interfaces import IPort... | [
"andy@mingtak.com.tw"
] | andy@mingtak.com.tw |
8a327a97a4b87884798af8ffd29a87e5035858bb | e3fd35a8443aaf2f293ae03a5f6c819046a4dd21 | /leetcode-python/medium/_1641_count_sorted_vowel/test_solution.py | b52e872dbdeea6eaf006b9f0636a6319ac82773a | [] | no_license | hieutran106/leetcode-ht | 2223ea6bcd459c2cdbc33344c0ff69df7f8a3c7f | 8332eb20e613f82cda2e326218154c7803a32403 | refs/heads/main | 2023-08-09T02:52:41.360360 | 2023-07-27T10:12:28 | 2023-07-27T10:12:28 | 234,890,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | import unittest
from .solution import Solution
class MyTestCase(unittest.TestCase):
def test_case_1(self):
s = Solution()
actual = s.countVowelStrings(1)
self.assertEqual(actual, 5)
def test_case_2(self):
s = Solution()
actual = s.countVowelStrings(2)
self.asser... | [
"hieutran106@gmail.com"
] | hieutran106@gmail.com |
b72e7e5a131348264207ff7de8be597ae68d8009 | e6d4a87dcf98e93bab92faa03f1b16253b728ac9 | /algorithms/python/reachaNumber/reachaNumber.py | 9075d05dd1c0c4837b48b158680c41697784530c | [] | no_license | MichelleZ/leetcode | b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f | a390adeeb71e997b3c1a56c479825d4adda07ef9 | refs/heads/main | 2023-03-06T08:16:54.891699 | 2023-02-26T07:17:47 | 2023-02-26T07:17:47 | 326,904,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Source: https://leetcode.com/problems/reach-a-number/
# Author: Miao Zhang
# Date: 2021-03-07
class Solution:
def reachNumber(self, target: int) -> int:
target = abs(target)
sumval = 0
k = 0
while sumval < target:
k +=... | [
"zhangdaxiaomiao@163.com"
] | zhangdaxiaomiao@163.com |
724a57668fdfebef3b446a6a5aae3b8c659efdb2 | f5ffd566166948c4202eb1e66bef44cf55a70033 | /test/test_single_source_view.py | a5409db9fc845ed9165202ea15b1ab5f29a71395 | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
48a0e9927bd0933b73741dc42fec8437ed601ce8 | d700b9ad1e0b7225871b65ce0dafb27fb408c4bc | /students/k3343/practical_works/Nazarenko_Uliana/Pr_1/project_first_app/views.py | cea5bffc122bd6851cc0d5a90e2d289581c93437 | [
"MIT"
] | permissive | TonikX/ITMO_ICT_WebProgramming_2020 | a8c573ed467fdf99327777fb3f3bfeee5714667b | ba566c1b3ab04585665c69860b713741906935a0 | refs/heads/master | 2023-01-11T22:10:17.003838 | 2020-10-22T11:22:03 | 2020-10-22T11:22:03 | 248,549,610 | 10 | 71 | MIT | 2023-01-28T14:04:21 | 2020-03-19T16:18:55 | Python | UTF-8 | Python | false | false | 338 | py | from django.http import Http404
from django.shortcuts import render
from .models import Car_owner
def detail(request, Car_owner_id):
try:
p = Car_owner.objects.get(pk=Car_owner_id)
except Car_owner.DoesNotExist:
raise Http404("Car owner does not exist")
return render(request, 'owner.html', ... | [
"noreply@github.com"
] | TonikX.noreply@github.com |
71ae6c4ee53126de3dbbf698b8cc90d5edb3a6c5 | 91a2ecfaf5dc6c917ec2fda31f56291103f68ceb | /tests/data/test_preprocess.py | bfc9de96416567f7d9974cb413f0aa58a742d4f7 | [
"BSD-3-Clause"
] | permissive | MyrtleSoftware/myrtlespeech | 635d1d16d1bd60fb07a4d30edbf9acb61786c13f | 8522048fd37744ffa06827a0cbd202b839a15453 | refs/heads/master | 2021-07-16T14:55:00.479967 | 2020-03-20T14:33:15 | 2020-03-20T14:33:15 | 192,501,300 | 12 | 1 | NOASSERTION | 2020-03-20T14:33:17 | 2019-06-18T08:44:33 | Python | UTF-8 | Python | false | false | 3,114 | py | from typing import Dict
import hypothesis.strategies as st
import pytest
import torch
from hypothesis import given
from myrtlespeech.data.preprocess import AddSequenceLength
from myrtlespeech.data.preprocess import SpecAugment
from tests.utils.utils import tensors
# Fixtures and Strategies -------------------------... | [
"sam@samgd.com"
] | sam@samgd.com |
7a53a09278a9790ba83079630db2571f94f8a9fa | b252671086f81fdc4b0abb7ddc502c60b8585810 | /pdbremix/util.py | 8db5d05ac8a088873f50ce89a06fc7dbc51521c9 | [
"MIT"
] | permissive | tcardlab/pdbremix | 96936915123a551307223d5150d749808bc3294e | bc7afca41da08f6166e518976b1c6dc40e35d78e | refs/heads/master | 2020-05-18T14:28:14.607579 | 2019-05-01T21:26:22 | 2019-05-01T21:26:22 | 184,396,705 | 0 | 0 | MIT | 2019-05-01T09:46:55 | 2019-05-01T09:46:55 | null | UTF-8 | Python | false | false | 5,763 | py | # encoding: utf-8
__doc__ = """
Utility functions.
- directory handling
- pathname mangling
- running shell commands
- timer
- file checking
"""
import os
import stat
import tempfile
import copy
import re
import glob
import json
import subprocess
import time
import math
import pprint
import sys
def re_glob(dir_ta... | [
"apposite@gmail.com"
] | apposite@gmail.com |
e1bb31c692a6d9a3d3350b50e04ef4bbc35e3b46 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03069/s161415384.py | a0e703281bf318e53f83aa4bd48bd498a925271d | [] | 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 | 211 | py | n = int(input())
s = input()
wn = s.count('.')
bn = n - wn
ans = min(wn,bn)
lw = 0
lb = 0
for i in range(n):
if s[i]=='.':
lw += 1
else:
lb += 1
ans = min(ans, lb + (wn - lw))
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
362745ea8dbfbca945350ed9d1c42392b3ed5825 | dfd942e65c5d574cde590eee1b309d06269050c8 | /jsoncompare | 4b6e607e7c32e5c99c73a12db50d2bdf9dde3020 | [] | no_license | pfuntner/fun | 4ab552569b72806dad4b6b61f02270b63869c931 | f27fde6a55b88ad07d27c32f4465ff416bde57d1 | refs/heads/master | 2023-07-08T09:44:50.575213 | 2023-07-04T11:03:20 | 2023-07-04T11:03:20 | 168,697,624 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | #! /usr/bin/env python2
import copy
def test(expression):
print "{expression}: {value}".format(value=repr(eval(expression)), **locals())
x = [
1,
{
2.1: "foo",
2.2: None,
},
3.0,
]
y = [
1,
{
2.2: None,
2.1: "foo",
},
3.0,
]
... | [
"jpfuntne@cisco.com"
] | jpfuntne@cisco.com | |
145a416a170d64b9f49c25984aee455f123ac6fa | c01e3615698ee16575febf73d925445d52972939 | /src/JINTFP/logical/primitive/__init__.py | 211697e7b640a5ad7a66ec240c2c996ee03c8455 | [] | no_license | grasshopperTrainer/CADengine | 929fe81134219713a9881b10803c0e4598f19b8b | 1dc3987915f16fcbf8a34b1fef51953af56303c5 | refs/heads/master | 2023-04-21T15:49:25.345950 | 2021-05-12T13:03:32 | 2021-05-12T13:03:32 | 245,972,066 | 1 | 1 | null | 2021-05-12T12:52:22 | 2020-03-09T07:40:46 | Python | UTF-8 | Python | false | false | 183 | py | from .._logical_nodes import *
class Equal(LogicalNode):
in0_a = Input()
in1_b = Input()
out0_result = Output()
def calculate(self, a, b):
return (a == b,)
| [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
0e29f6f6accddccf5307aefc999e10a407c9414e | d623b8fe1b7e5d49d1c2623fc6ff0356bda50d5d | /homeassistant/components/braviatv/coordinator.py | b5d91263b34e51e0f5d148e30b242f79f8136f16 | [
"Apache-2.0"
] | permissive | piotr-kubiak/home-assistant | 02f1ab8195d9111c6d4c96a55715e67de6b103d9 | d32f3e359f1fabe2d79b0e07e375b3723b7cb07c | refs/heads/dev | 2023-03-03T11:08:25.871531 | 2022-08-26T19:41:41 | 2022-08-26T19:41:41 | 198,906,482 | 1 | 0 | Apache-2.0 | 2023-02-22T06:23:51 | 2019-07-25T22:00:44 | Python | UTF-8 | Python | false | false | 8,947 | py | """Update coordinator for Bravia TV integration."""
from __future__ import annotations
from collections.abc import Awaitable, Callable, Coroutine, Iterable
from datetime import timedelta
from functools import wraps
import logging
from typing import Any, Final, TypeVar
from pybravia import BraviaTV, BraviaTVError
from... | [
"noreply@github.com"
] | piotr-kubiak.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.