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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7afc50c1da48cd01f9c50af2eed00f56db8a8458 | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /edgelm/fairseq/distributed/legacy_distributed_data_parallel.py | 8cf3d563110f72df122da48c49017d1e7db108b7 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 6,269 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
A modified version of the legacy DistributedDataParallel module that uses c10d
communication primitives. This version is simpler th... | [
"tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net"
] | tage@sandbox12.t0ekrjpotp2uhbmhwy0wiwkeya.xx.internal.cloudapp.net |
ac897c0765c2aee9ae2d7dfde2a55ba03765a1fc | 1cd9fb9466b0225575575091545cd9188fec539c | /tensorflow_probability/python/bijectors/scale_matvec_linear_operator_test.py | 744218382cf3d41c0908d666a06edfd722fb97b9 | [
"Apache-2.0"
] | permissive | ibozkurt79/probability | 16f4fa9b773486a5f21617be3a4163079ac3aa61 | 2522dec61de0584a9d51850ccc2b7a13857b562c | refs/heads/master | 2020-08-31T12:45:34.262934 | 2019-10-30T23:43:15 | 2019-10-30T23:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | # Copyright 2019 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1be5499dffc9f6d4ad1316799b7464d2642a367a | b5cba88ce8c86740c8c3453134610fd5bafbb8c4 | /AlgoExpert/Bubbe Sort/solution.py | 8642a59c5e3e35a80935578d27657fecac8cfb25 | [] | no_license | EduardoSantos7/Algorithms4fun | 55fcf9d515ea3b70b93298ac96a58d2ae68dee11 | 6ff182ed596b6322322b087f29e6ad98baec3f97 | refs/heads/master | 2023-07-23T01:38:08.216313 | 2023-07-23T01:35:58 | 2023-07-23T01:35:58 | 227,448,848 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | def bubbleSort(array):
changes = True
while changes:
changes = False
for i in range(len(array) - 1):
if array[i] > array[i + 1]:
# Swap
array[i], array[i + 1] = array[i + 1], array[i]
changes = True
return array
| [
"eduardoluissd@gmail.com"
] | eduardoluissd@gmail.com |
90c394e54924b532c0b7708376fb3f945a4f8cc3 | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/227_c.py | 97b5d5b68392fb6c408d3dc829234ea4fb26e84c | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,334 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
import sys
input = sys.stdin.readline
from pprint import pprint
import math
INF = 1 << 63
def do():
ans = 0
n = int(input())
bmax ... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
c3a0f97899cd35467ff490371b51852ed921d4e3 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/third_party/google/cloud/pubsublite/internal/wire/subscriber_impl.py | 3212e1b44631a7093bbf7f0ace085276722220f7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 7,725 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
131211e237def403529ea819bf404bccf12b7d6b | 88163c266bcc76bad22d2583fc381ee339749eed | /object_detector/descriptor.py | 8373da00141162999c8dfe44bbb22dcf8cd9a54c | [
"MIT"
] | permissive | penny4860/object-detector | bc91834848ad016c4c529ca93204e6ac7eac9e5a | 958dd218b0d0fbd895ae9c3dba0385d38329906c | refs/heads/master | 2020-05-29T15:41:54.437091 | 2016-09-15T14:56:43 | 2016-09-15T14:56:43 | 65,605,446 | 13 | 5 | null | 2016-09-15T14:56:44 | 2016-08-13T07:35:45 | Python | UTF-8 | Python | false | false | 1,510 | py | #-*- coding: utf-8 -*-
import abc
import numpy as np
from skimage import feature
class Descriptor(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def __init__(self, params):
pass
@abc.abstractmethod
def describe(self, images):
pass
class HOG... | [
"penny4860@gmail.com"
] | penny4860@gmail.com |
bc8c26c0136cd18a6b8999dd494c78ad5c3a5e32 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/mayavi/enthought/mayavi/filters/poly_data_filter_base.py | c4b0f9c29d4967d10279c9b3d644cde329585fef | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | # Author: Gael Varoquaux <gael _dot_ varoquaux _at_ normalesup _dot_ org>
# Copyright (c) 2008, Enthought, Inc.
# License: BSD Style.
# Local imports
from enthought.mayavi.filters.filter_base import FilterBase
from enthought.mayavi.components.common import convert_to_poly_data
######################################... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
ac9b376830ea60abd034e34c9dc29eed0aea6804 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/129/usersdata/199/44484/submittedfiles/al7.py | 9fe7decc1f4fd19e0e12ce93cbdb9090ec95d4fe | [] | 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 | 202 | py | # -*- coding: utf-8 -*-
n = int(input('Digite o valor: '))
cont==0
for i in range(1,n,1):
if n%i ==0:
print(i)
cont=cont+i
if cont==n:
print('Perfeito')
else:
print('Não Perfeito')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
672bfe49306670eac0cc611a2df1fa5c0f5f1608 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/73/usersdata/262/39993/submittedfiles/triangulo.py | 14c3af1f5a3c694b4e7922d30ca3a754dacbe3b6 | [] | 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 | 491 | py | # -*- coding: utf-8 -*-
import math
a=int(input('Digite a:'))
b=int(input('Digite b:'))
c=int(input('Digite c:'))
a>=b>=c>0
if a<b+c:
print('S')
else:
print('N')
if a<b+c:
if(a**2)==(b**2)+(c**2):
print('Re')
if(a**2)>(b**2)+(c**2):
print('Ob')
if(a**2)<(b*... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
ab4adb5453c34b1cf5bd079447edb2d399ca3ddb | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/word-count/3bfeec83c53d47eeae75992d018cfaba.py | 6cbda65c7fade2df52be6e453f703315bee5565d | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/env python3
import collections
def word_count(in_string):
counter = collections.Counter(in_string.split())
return dict(counter)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
969853a8fea3eed360065527969920b76fa4be31 | 78456214246b3fca7636d9f91d15f1c25ae00f77 | /flowmeter/config/core/cache.py | c05c1a52243b1a3f9f81e5389424e55a1b13d038 | [] | no_license | Zhuuhn/flowmeter | 4404bbead2c7e7804364623b612a89ec80a69fb9 | 9ea4f497fb2a4de64f7b2d8c453066df7ec8a483 | refs/heads/master | 2022-08-22T01:01:45.687526 | 2020-05-27T10:02:21 | 2020-05-27T10:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | # coding=utf-8
import json
from flowmeter.common.common import deserialize_obj, serialize_obj
from django_redis import get_redis_connection
| [
"1347704262@qq.com"
] | 1347704262@qq.com |
3aee92e305b6cf03bec7c6a32c7c722b13f2b4c4 | 17926b196d9db43816453d16f3da84de6664f2fd | /438_Find_All_Anagrams_in_a_String.py | 718debb8d5664abf07130e29b5e7a8d1f011a912 | [] | no_license | luchang59/leetcode | 66690a3c9b28a5201a7be8cd0134142b48418adb | feab001b9291f6e57c44eeb0b625fdaa145d19b4 | refs/heads/master | 2020-05-28T06:57:20.667138 | 2019-09-20T18:18:11 | 2019-09-20T18:18:11 | 188,914,681 | 0 | 0 | null | 2019-05-27T22:17:44 | 2019-05-27T22:08:54 | null | UTF-8 | Python | false | false | 953 | py | import collections
class Solution:
def findAnagrams(self, s, t):
# time complexity O(n)
result = []
if len(t) > len(s): return result
counter = collections.Counter(t) # map, for one char, it appears how many times
count = len(counter) # h... | [
"luchang1991@gmail.com"
] | luchang1991@gmail.com |
5788cf1b878ee73a21317672ba3e44f62bc49070 | 5d5e924eec544e08d0c18343590d1d10cd5704a1 | /array-strings_stacks/jewelsInStones.py | a79a7e75eb6f1c017bae8506a5a9192083cfca4e | [] | no_license | cosmicRover/algoGrind | 9681a88e8500381cff5426371ff322194aed202d | 9e53ce83e36b88a164e1c11570b55781396b4d7d | refs/heads/master | 2021-08-16T18:05:48.661748 | 2021-06-18T20:49:25 | 2021-06-18T20:49:25 | 189,326,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | class Solution:
def numJewelsInStones(self, J: str, S: str) -> int:
count = 0
for x in S:
if x in J:
count += 1
return count
| [
"jpaul3250@gmail.com"
] | jpaul3250@gmail.com |
f9218db6d37ac883ea82dc44545df42af0800bc4 | 24ff51c56c069f2de5c089b09ab7e16db5fda68e | /tests/test_ac1009/test_viewport_tableentry.py | d270b97576c071aa8a5752b1cc2cec93712b085b | [
"MIT"
] | permissive | csachs/ezdxf | cb5519d9292d4396865e8d4476ef3ec90e2a938c | 8810f93a94b5689ecdf34708b79ff52a684111c8 | refs/heads/master | 2021-04-29T12:59:39.476678 | 2018-01-28T07:29:07 | 2018-01-28T07:29:07 | 121,737,776 | 0 | 0 | null | 2018-02-16T10:17:12 | 2018-02-16T10:17:12 | null | UTF-8 | Python | false | false | 380 | py | # Created: 16.03.2011, 2018 rewritten for pytest
# Copyright (C) 2011-2018, Manfred Moitzi
# License: MIT License
from __future__ import unicode_literals
import pytest
from ezdxf.legacy.tableentries import Viewport
@pytest.fixture
def vport():
return Viewport.new('FFFF', dxfattribs={
'name': 'VP1',
})... | [
"mozman@gmx.at"
] | mozman@gmx.at |
8995a118c250bafd54fd0d91dff304aa54e420db | 63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09 | /python/ray/tune/examples/pb2_example.py | 29e08d50bc6ba3d0140755bc77d42022e5c9bb01 | [
"Apache-2.0",
"MIT"
] | permissive | ray-project/maze-raylit | 79f0a5af9fe4bdc13a2d5b3919da867ed5439aab | a03cd14a50d87d58effea1d749391af530d7609c | refs/heads/master | 2023-01-23T04:23:35.178501 | 2020-12-04T22:34:14 | 2020-12-04T22:34:14 | 318,274,659 | 5 | 0 | Apache-2.0 | 2020-12-04T22:34:15 | 2020-12-03T17:47:58 | Python | UTF-8 | Python | false | false | 1,218 | py | #!/usr/bin/env python
import argparse
import ray
from ray import tune
from ray.tune.schedulers.pb2 import PB2
from ray.tune.examples.pbt_function import pbt_function
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
"--smoke-test", action="store_true", help="Finish qu... | [
"noreply@github.com"
] | ray-project.noreply@github.com |
bac99b924aaaace7795872605e3902270c403341 | f0dce7b15b55647b709300d335ddcca523ee61f7 | /394_Decode_String.py | 87f2566c1733be955835c699af7607021c5dbf90 | [] | no_license | breezekiller789/LeetCode | ecc4883f616d21e7b72d85c9f93293a8daf3dc74 | 51090f28eaab17e823981eddc9119abe174ceb4e | refs/heads/master | 2023-06-03T20:54:29.222478 | 2021-06-18T14:33:05 | 2021-06-18T14:33:05 | 347,049,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# https://leetcode.com/problems/decode-string/
# ===========Code===========
s = "3[a]2[bc]"
# s = "3[a2[c]]"
# s = "2[abc]3[cd]ef"
# s = "abc3[cd]xyz"
# s = "3[a2[b3[c4[d]]]]"
countStack = []
resultStack = []
resultString = ""
idx = 0
length = len(s)
while idx < length... | [
"breezekiller789@csie.io"
] | breezekiller789@csie.io |
1a4598253a9582dda3994aff3a41646785019a14 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.12.26/6/1569573241.py | 76992d72a041ffc75e5b8ae66e19ec6a0ac6e738 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | import functools
import typing
import string
import random
import pytest
# Lösung Teil 1.
def list_filter(x:int ,xs:list) -> list:
result = []
for i in xs:
if x >= i:
result.append(i)
return result
######################################################################
# Lösung Teil 2. (... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
73b415bf1889330f20d582f5d9161d9e169fbf48 | 4a13a708918781d04b0cc08e63735f568189e88d | /gsdivision/migrations/0003_auto_20180206_1554.py | d0d39327a48814a6eecaa5a54506eabb6a732c1a | [] | no_license | susahe/slgis | 17cc865d2ff69624c45c3931471390c7f3647d57 | 75163c6739a9a7f67fa0b300c2f51fe4db7675fd | refs/heads/master | 2021-05-08T23:16:43.955586 | 2018-02-08T18:56:59 | 2018-02-08T18:56:59 | 119,253,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | # Generated by Django 2.0.1 on 2018-02-06 15:54
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gsdivision', '0002_auto_20180206_1546'),
]
operations = [
migrations.CreateModel(
name='District',
f... | [
"sumudu.susahe@gmail.com"
] | sumudu.susahe@gmail.com |
6070cec96e374636548fe090b60b3ccf3d2ed952 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/recoveryservices/v20230115/__init__.py | a19a2190070a83c386d11a296cccb28caf04835f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 328 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from .get_recovery_point_access_token import *
from ._inputs import *
from . import ... | [
"github@mikhail.io"
] | github@mikhail.io |
0341c2326ae39642a8460e8135ceff8b5088bdee | 4f3da146eaa70fa688a2ae0fc81ada2ac93bfc40 | /scripts/cell/triggerStrategies/ImprisonStrategy.py | 83dfbf6cdf76a7c6c9408bc8bfda2d4ba9d0a029 | [] | no_license | godxkey/huanhuoserver_uFrame_kbe | 7abc8a14339aa1530925c30cfb1edc511b275532 | 2b72f987269286cd20df629e1279ad76a949b494 | refs/heads/master | 2023-03-17T06:31:36.869628 | 2017-10-05T16:42:39 | 2017-10-05T16:42:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | # -*- coding: utf-8 -*-
import KBEngine, time
from KBEDebug import *
from triggerStrategies.TriggerStrategy import TriggerStrategy
class ImprisonStrategy(TriggerStrategy):
"""
禁锢策略
"""
def __init__(self):
TriggerStrategy.__init__(self)
def initializeStrategy(self, strategyData):
s... | [
"969041327@qq.com"
] | 969041327@qq.com |
f2aeede210380c2a649a791e98e4d6a598b95a0e | df42b0d05038a2940606591d548637bc51d6573d | /mounth02/day13/demo03.py | 8cffd1a3a55ce618b89a31b1ca3fddaa8db81846 | [] | no_license | ThreePointFive/aid1907_0814 | 440113f5ae2df28e53a088bd3ea420d5558214b4 | 99eea9aafdf8211278425c33aba2e64d5eb2500b | refs/heads/master | 2022-12-03T19:31:21.085608 | 2019-11-09T06:25:33 | 2019-11-09T06:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | class Person:
def __init__(self,name):
self.name = name
def go_to(self,position,type):
'''
:param position:地名
:param type: 去的方法
:return:
'''
print('去:'+position)
'''这样做的话会违背设计的开闭原则'''
if isinstance(type,Car):
type.run()
... | [
"760373741@qq.com"
] | 760373741@qq.com |
8b8591154f7c5e550fa6a8d95e1c2bdc0c2abf50 | 3c7167eb1b3bf9953e315223a1ef2b85ed632059 | /demoweek2/apps/main/migrations/0001_initial.py | bafd9d1c517268126c68e1ae1cd781561391c870 | [] | no_license | py2-may-2018/instructor_minh | 8010f39c0a0db79ebe5c2db7166ebc71e210af5d | cf84a27d62a3c7398ffb5711d5a02fd36178d6ec | refs/heads/master | 2020-03-17T08:25:00.342400 | 2018-05-15T01:53:30 | 2018-05-15T01:53:30 | 133,437,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-13 02:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"nguyenhminhp@gmail.com"
] | nguyenhminhp@gmail.com |
64751ceab3db028671d5ee17ceb667ebca72a3cb | 6dfaae4fcc1cc03ffbb7938b3f6e3ff44954906b | /calc.py | c001a3cd1f16dbf5b7dd88cd06a192ffcd9cf704 | [] | no_license | swordwielder/gambitanalysis | 0ee7e127ac535e200372eb985dc5768e625cba2e | 889cc36e23a61c4dc30732e2c76a5deee5f511ff | refs/heads/main | 2023-03-10T01:28:50.614455 | 2021-02-21T17:34:37 | 2021-02-21T17:34:37 | 333,100,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,502 | py | import xlrd
from pandas_ods_reader import read_ods
path = "./allgames.ods"
# load a sheet based on its index (1 based)
sheet_idx = 1
df = read_ods(path, sheet_idx)
losses = ['Florida State 1.04', 'Florida 1.04', 'Los Angeles Rams 1.03', 'Manchester City 1.05', 'Pittsburgh Steelers 1.05',
'Milwaukee Bucks 1.06', 'Day... | [
"qchen125@gmail.com"
] | qchen125@gmail.com |
c117f190d15bde50cf93d1fb70c2fc407224e339 | 37e5a8c6cea09f134a0386a65dbc5e24eafdd21a | /mrp_stock_request/controllers/controllers.py | 2b764da783e78373d9a95172b9035d81c3e7df41 | [] | no_license | halltech-ci/14 | f17bf16d40aa63513de53022d0a1cf7adc5b637d | 41058b7b450f3c00fdec19c513fddd3523fc0b18 | refs/heads/stage | 2023-02-03T00:19:12.616999 | 2020-12-05T13:40:34 | 2020-12-05T13:40:34 | 310,787,543 | 0 | 0 | null | 2020-12-02T12:29:58 | 2020-11-07T07:02:35 | Python | UTF-8 | Python | false | false | 851 | py | # -*- coding: utf-8 -*-
# from odoo import http
# class MrpStockRequest(http.Controller):
# @http.route('/mrp_stock_request/mrp_stock_request/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/mrp_stock_request/mrp_stock_request/objects/', auth='public')
# def ... | [
"maurice.atche@halltech-africa.com"
] | maurice.atche@halltech-africa.com |
294178f638f39f504fc6675fd36f8ac51fb360a9 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/dn5/M-41.py | 87276d073294a90e9c1172a6ca9c207b760f224c | [] | 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,924 | py | def unikati(s):
novi = []
for del_seznama in s:
if del_seznama in novi:
None
else:
novi.append(del_seznama)
return novi
def avtor(tvit):
return tvit.split( )[0][:-1]
def vsi_avtorji(tviti):
avtorji =[]
for tvit in tviti:
avtorji.append(avtor(tvit))... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
1c061e41263622c815ec710c5f7fe98f67364e50 | ad760bcfb4cd7d09dd036cdd37e388600875d070 | /estruturas-de-dados/07-pilhas-aplicacao-pratica/Pilhas - Balanceamento de caractere - Matheus_Sena_Vasconcelos.py | 0292081d3710dd0df5de6c3b84014dd387348be4 | [] | no_license | senavs/university-repository | aa843ca5eb6f64b7c1be2f0f4257e625cf13e48e | 4d6ee59d860186b16ab734115808a6cea7f121a4 | refs/heads/master | 2023-08-05T02:37:04.567552 | 2021-09-10T18:33:40 | 2021-09-10T18:33:40 | 242,010,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,841 | py | class Balanco(object):
CHAR_ABERTO = ['(', '[', '{']
CHAR_FECHADO = [')', ']', '}']
CHARS = {')': '(', ']': '[', '}': '{'}
def __init__(self, frase):
self.frase = frase
self.apenas_chave = str()
self.se_balanciado = self.balanciar_frase(self.frase)
def bal... | [
"sena.matheus14@gmail.com"
] | sena.matheus14@gmail.com |
f7f08f57daf0836f50e9a489de64607b6e23a543 | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/性别年龄_20190618091733.py | 8bddde91870174238d7f73b6a0782e6c276d3edc | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR-all')#txt目录提取
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_str = re.findall(r'(^.+?... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
3b080f77e85eff9eacaa79e2c49f0b97a981519e | cce8469586694aeea759a577c77bbac0652bec6f | /tests/test_roi_pooler.py | ec6929c75c51992a19b1d03cd7dc5b3f795552ac | [
"Apache-2.0"
] | permissive | veraposeidon/detectron2 | 9a4553289111bf6a83ecd3361eab836fb5ea076b | df2f2ab213e5c089ebc65b84786f766ba2b2b5d5 | refs/heads/master | 2020-09-26T09:05:06.044612 | 2019-12-30T09:38:29 | 2019-12-30T09:38:29 | 226,223,447 | 3 | 0 | Apache-2.0 | 2019-12-22T13:16:50 | 2019-12-06T01:47:30 | Jupyter Notebook | UTF-8 | Python | false | false | 3,024 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import logging
import unittest
import torch
from detectron2.modeling.poolers import ROIPooler
from detectron2.structures import Boxes, RotatedBoxes
logger = logging.getLogger(__name__)
class TestROIPooler(unittest.TestCase):
def ... | [
"veraposeidon@gmail.com"
] | veraposeidon@gmail.com |
a5463dccdf1be0da80c4eb991c912755af834ae4 | 7cbbaa74a1cc90620e0ffc5d17e3d74bdb5510c9 | /tests/module_2/test_fibonacci_last.py | fbfb0fc41d82cc4fe467c4a641ee16da6d500f61 | [] | no_license | lancelote/stepik_algorithms_1 | caa38815812c138e53f8f1703a0389a4bd2eb5f4 | 335e8048269d1bbd3386c8a3f3c97d0fdd2c689f | refs/heads/master | 2023-06-19T17:43:32.489636 | 2021-07-04T14:25:11 | 2021-07-04T14:25:11 | 46,418,336 | 0 | 0 | null | 2020-05-22T18:29:25 | 2015-11-18T12:48:51 | Jupyter Notebook | UTF-8 | Python | false | false | 281 | py | import pytest
from src.module_2.fibonacci_last import fib_digit
@pytest.mark.parametrize(
"n,expected",
[
(317457, 2),
(1, 1),
(2, 1),
(3, 2),
(10, 5),
],
)
def test_fib_digit(n, expected):
assert fib_digit(n) == expected
| [
"lancelote.du.lac@gmail.com"
] | lancelote.du.lac@gmail.com |
3a6affa75e28be524df565d21877fd5575e49559 | 0386591b51fdbf5759faef6afb8729b64a3f1589 | /giscube/migrations/0008_userasset.py | a04412ae121000cb7d4a6039f86ca5029b06cb3d | [
"BSD-3-Clause"
] | permissive | giscube/giscube-admin | 1e155402e094eb4db1f7ca260a8d1402e27a31df | 4ce285a6301f59a8e48ecf78d58ef83c3827b5e0 | refs/heads/main | 2023-07-11T17:23:56.531443 | 2023-02-06T15:12:31 | 2023-02-06T15:12:31 | 94,087,469 | 7 | 1 | BSD-3-Clause | 2023-07-07T13:22:09 | 2017-06-12T11:12:56 | Python | UTF-8 | Python | false | false | 1,097 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-02-18 08:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import giscube.models
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(... | [
"abusquets@gmail.com"
] | abusquets@gmail.com |
01df85d6692708c10c3ef92858862cbe36ee1826 | bc6492a9a30ac7228caad91643d58653b49ab9e3 | /axiom/sets/forall_et/forall_et/imply/equality.py | 8f7f9387474a0c9e66aecad6fc1632065c395504 | [] | no_license | cosmosZhou/sagemath | 2c54ea04868882340c7ef981b7f499fb205095c9 | 0608b946174e86182c6d35d126cd89d819d1d0b8 | refs/heads/master | 2023-01-06T07:31:37.546716 | 2020-11-12T06:39:22 | 2020-11-12T06:39:22 | 311,177,322 | 1 | 0 | null | 2020-11-12T06:09:11 | 2020-11-08T23:42:40 | Python | UTF-8 | Python | false | false | 2,431 | py | from axiom.utility import plausible
from sympy.core.symbol import dtype
from sympy.sets.contains import Contains
from sympy.core.relational import Equality
from sympy import Symbol
from sympy.functions.elementary.complexes import Abs
from sympy.concrete.expr_with_limits import ForAll
from axiom import sets
from sympy.c... | [
"zhoulizhi@patsnap.com"
] | zhoulizhi@patsnap.com |
c83da653b3330418ec9f406cb680e6458cff1262 | e38f7b5d46fd8a65c15e49488fc075e5c62943c9 | /pychron/canvas/tasks/canvas_plugin.py | b090c9afacbb09c6a5b9a480fbd10ff0c0871e9b | [] | no_license | INGPAN/pychron | 3e13f9d15667e62c347f5b40af366096ee41c051 | 8592f9fc722f037a61b0b783d587633e22f11f2f | refs/heads/master | 2021-08-15T00:50:21.392117 | 2015-01-19T20:07:41 | 2015-01-19T20:07:41 | 111,054,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | #===============================================================================
# Copyright 2013 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/license... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
6c80758e73252908b7b91fefce03c1d953f408bc | 0b2e54f19875e51519950c06c6110a8144d85cb4 | /session4/removeWhitespaces.py | 595a245f5168f3ef44ba948fc4af62532c09b6fb | [] | no_license | hemangbehl/Data-Structures-Algorithms_practice | b1f5d5995d4e02de2d3807e18ac0639b900d35af | e125ebd42dd4083701b13a319c368f4a622ca669 | refs/heads/master | 2020-08-06T09:03:42.253388 | 2020-07-10T23:55:39 | 2020-07-10T23:55:39 | 212,916,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | def removespace(arr):
if len(arr) == 0: return ""
w = -1
for c in range( len(arr) ):
if arr[c] == " " and w == -1:
w = c
elif arr[c] != " " and w != -1:
arr[c], arr[w] = arr[w], arr[c]
w += 1
if w == -1: return arr
else: return arr[:w]
p... | [
"44247931+hemangbehl@users.noreply.github.com"
] | 44247931+hemangbehl@users.noreply.github.com |
a193209a4e55cda5be8b22e2eb845561917fb822 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/nipype/interfaces/tests/test_auto_DataSink.py | da2685445128d9ec44591cd83c34c6b4064ea60f | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 1,070 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..io import DataSink
def test_DataSink_inputs():
input_map = dict(
_outputs=dict(usedefault=True, ),
base_directory=dict(),
bucket=dict(),
container=dict(),
creds_path=dict(),... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
a1ed9c030a7fcfa76d9ca7d09c4367784c712c3e | e849a2d6e523b1e45f90a19ee9d1353e17ac899e | /org-code/1-01.py | 2fb58c6ac857bbad147c1c917f72d2596f596cc0 | [] | no_license | tnakaicode/PhotoeElectric | 7f4733276dd2f4e97adcf1471cce953ceb03f08d | 7ebaeb18e0531a7701ddf350dc9aee6ac3154f99 | refs/heads/master | 2022-04-27T05:23:38.238166 | 2022-03-31T04:42:34 | 2022-03-31T04:42:34 | 221,597,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | import scipy as sp
import matplotlib as mpl
import matplotlib.pyplot as plt
from scipy import pi,sin,cos,tan,arcsin,linspace
from matplotlib.pyplot import plot,show,xlabel,ylabel,title,legend,grid,axis,tight_layout
n1 = 1 # 媒質1の屈折率
n2 = 1.5 # 媒質2の屈折率
t1Deg = linspace(0, 90, 90) # 入射角 t1 の配列の生成
t1... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
fc1ebb43094e523ee08e1f0c4bdb08a08680e04b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03241/s594850744.py | a4de56050bb714de70a70182062fd3952be8aca5 | [] | 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 | 622 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 9)
MOD = 10 ** 9 + 7
N, M = map(int, input().split())
# nの約数をO(root(n))で全列挙、
# sortするなら O(root(n) * root(n)log(root(n))) --> O(n * log(n))
def make_divisors(n):
import math
divisors = []
for i in range(1, int(math.sqrt(n)) + 1):
if... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
47b389842b296b821af13d993cc291b03da555a1 | 3a05bb0d4a598d18e9c90c0a35bd44556fcd94d3 | /ask-sdk-model/ask_sdk_model/interfaces/alexa/presentation/apl/component_visible_on_screen_media_tag.py | d2328db5a3e39247f1606b3d755a235b474e2f81 | [
"Apache-2.0"
] | permissive | alexa/alexa-apis-for-python | 2e21330c7e35b76e4f360aa72a9e789906f3bca1 | 751e6dbbb829ceb34dd7405eb77235c06b19c612 | refs/heads/master | 2023-08-28T12:50:05.522913 | 2023-08-21T16:04:58 | 2023-08-21T16:04:58 | 145,045,841 | 119 | 34 | Apache-2.0 | 2022-07-19T16:40:29 | 2018-08-16T22:40:28 | Python | UTF-8 | Python | false | false | 7,346 | py | # coding: utf-8
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "lice... | [
"ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com"
] | ask-pyth@dev-dsk-ask-sdk-python-2b-85d79f62.us-west-2.amazon.com |
46ac8ac28abc31b1a24369bc0f98bfc988deda52 | cf184b08d0c1dedfa9577ef5f599cdbf977571a5 | /samesame_but_different.py | f4b524d63009d65c1a4c9e53e54f2174bad23e12 | [] | no_license | alvations/USAAR-WMT2015 | a83d55c8e9ef87b72162f3d597f008d049a24bca | 2cd31ce6327c065ab8731866dc126639d539f3aa | refs/heads/master | 2023-07-08T04:46:54.454266 | 2015-05-20T00:40:45 | 2015-05-20T00:40:45 | 34,349,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | # -*- coding: utf-8 -*-
import os, sys, time, itertools, io
from collections import Counter
from nltk.corpus import stopwords
def sents(infile):
""" Lazy corpus reader that yields line. """
with io.open(infile, 'r', encoding='utf8') as fin:
for i, line in enumerate(fin):
yield line.strip... | [
"alvations@gmail.com"
] | alvations@gmail.com |
dc748bbccf25a3932f12ed38d8d51da39f2b1e33 | 4b9940944446daaaeaaf1b778f5f0150daebb0a0 | /src/utils/general_utils.py | 52573e8d7b5e7e2e7661c80971a8d6c14c35669a | [
"MIT"
] | permissive | sjakati98/CodeSearchNet | 95d4e0ec627cafcf8c018dc9841aa4d0020ae7bd | 5ec30b2a8aaa586cc5c9bcc08d165ee8bf6a88c1 | refs/heads/master | 2020-08-22T14:19:09.876668 | 2019-12-19T21:07:05 | 2019-12-19T21:07:05 | 216,413,502 | 3 | 0 | MIT | 2019-12-19T21:07:07 | 2019-10-20T19:10:55 | Jupyter Notebook | UTF-8 | Python | false | false | 461 | py | from typing import List, Any
import pickle
import pandas as pd
def save_file_pickle(fname: str, obj: Any) -> None:
with open(fname, 'wb') as f:
pickle.dump(obj, f)
def load_file_pickle(fname: str) -> None:
with open(fname, 'rb') as f:
obj = pickle.load(f)
return obj
def chunkify(df... | [
"hamel.husain@gmail.com"
] | hamel.husain@gmail.com |
f971a123ac7908ef023333bdfca22c7b1014f44b | 384d0be5ac54b306b945cf38c10d9b0a44c975ea | /stack/glance/glance/store/http.py | 1fbb1455c213df8b6d64c23afb2c6fa80d4cc1f0 | [
"Apache-2.0"
] | permissive | ashokcse/openstack-bill | 05ae313637b3cfecba946d2a9b32e8c7609fc721 | 1a3d7575d4b341f64fa1764ed47e47a7504a9bcc | refs/heads/master | 2021-01-18T14:05:24.696165 | 2012-09-12T11:29:20 | 2012-09-12T11:29:20 | 5,424,267 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,378 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 OpenStack, LLC
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/... | [
"ashokcse@live.com"
] | ashokcse@live.com |
07cb012989c8a525e5d4f76a92617e60f87bef8d | 803a076edaa9618ae277bfaaeba5d60b0cd398be | /이코테/CH04 구현/왕실의 나이트.py | 9f1cd0b63e5fca352160df9313fa35b8ecb87b04 | [] | no_license | jungyr24/algo-rhythm | 172d5f27a7f0e52dcaf8027dc48d1e44a2b95516 | 51546dfecdcbf3746c5e4ac2b4b7a5ff386ced82 | refs/heads/master | 2023-08-14T15:57:39.261273 | 2021-10-08T04:38:26 | 2021-10-08T04:38:26 | 381,612,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | p = input()
cnt = 0
x, y = int(ord(p[0])) - int(ord('a')) + 1, int(p[1])
dx = [1, 1, -1, -1, 2, 2, -2, -2]
dy = [2, -2, 2, -2, 1, -1, 1, -1]
for i in range(8):
nx = x + dx[i]
ny = y + dy[i]
if nx > 0 and nx < 8 and ny > 0 and ny < 8:
cnt += 1
print(cnt)
| [
"jungyr24@hanmail.net"
] | jungyr24@hanmail.net |
875d9f585135a8b1c31d43236a1b6d09234943f7 | 81deaa0a9ad1fa37637796764ed466573dad11b1 | /test/test_enum_class.py | 6ff07d9e288e93d065e1e3e45f3105224fe64a99 | [] | no_license | wing328/test-python | 9d6ff79c97000e6fbb301e3be6f4786a8ba457f1 | 9c9ed4316a62640d7008035527b403a438493227 | refs/heads/master | 2021-07-19T03:02:40.938583 | 2021-02-23T13:05:56 | 2021-02-23T13:05:56 | 61,308,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
import sys
impor... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
3829c1dc3436719e4daeec398e616053399226d4 | 21e177a4d828f4e0a003e9424c4952dbc0b47d29 | /lints/lint_ext_key_usage_cert_sign_without_ca.py | c88b2283b6116b75e88ead61d9e37d75bf2fa563 | [] | no_license | 846468230/Plint | 1071277a55144bb3185347a58dd9787562fc0538 | c7e7ca27e5d04bbaa4e7ad71d8e86ec5c9388987 | refs/heads/master | 2020-05-15T12:11:22.358000 | 2019-04-19T11:46:05 | 2019-04-19T11:46:05 | 182,255,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | from lints import base
from cryptography import x509
from cryptography.x509.oid import ExtensionOID
from util.time import Time
from util import ca
from urllib.parse import urlparse
'''
RFC 5280: 4.2.1.9
The cA boolean indicates whether the certified public key may be used
to verify certificate signatures. If the cA... | [
"846468230@qq.com"
] | 846468230@qq.com |
e9b3beefc96b82069d9e224aab5a6387a2c7ab66 | 2e43312838314bd8527e80bf6122d9e5d844d279 | /home/management/commands/load_initial_data.py | 24cc377d122d454ff534ec0d23d58ae620c7d827 | [] | no_license | crowdbotics-apps/invite-git-2224 | 433db595b4e25da41b096fdee10a5aaefde15d9e | 8b3ef97747615b4f98f3b20499a8258b319bdee6 | refs/heads/master | 2022-12-10T00:55:53.941305 | 2019-04-12T17:34:14 | 2019-04-12T17:34:14 | 181,054,961 | 0 | 0 | null | 2022-12-08T05:02:02 | 2019-04-12T17:32:37 | Python | UTF-8 | Python | false | false | 723 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">invite git</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotics slack a... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a6add5d48cc6111dba7241d61b7bbd0cfd87dcc6 | bb3863b06f27f8ce17b460f59319af744ff93fda | /kobuki_testsuite/src/kobuki_testsuite/motion_rotate.py | ad9bbd1e466eb2abb8c516f30c45615cb2cd6b6d | [
"BSD-3-Clause"
] | permissive | zklapow/kobuki | 34d666a70dd3553c9ab625c6a2730aa4003bc5b4 | f10038d0bceff60226a4c23daed8a8f2476be52c | refs/heads/master | 2021-01-15T22:09:18.123492 | 2012-12-28T06:10:30 | 2012-12-28T06:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,447 | py | #!/usr/bin/env python
#
# License: BSD
# https://raw.github.com/yujinrobot/kobuki/master/kobuki_testsuite/LICENSE
#
##############################################################################
# Imports
##############################################################################
import roslib; roslib.loa... | [
"d.stonier@gmail.com"
] | d.stonier@gmail.com |
09dae21bf4d4b9285ad3136c8426ef796c99a040 | 947e71b34d21f3c9f5c0a197d91a880f346afa6c | /ambari-server/src/main/resources/common-services/LOGSEARCH/0.5.0/package/scripts/logfeeder.py | db647ff736b5bfbd24a4ccaa129a0ced076e1b7e | [
"Apache-2.0",
"MIT",
"GPL-1.0-or-later",
"GPL-2.0-or-later",
"OFL-1.1",
"MS-PL",
"AFL-2.1",
"GPL-2.0-only",
"Python-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | liuwenru/Apache-Ambari-ZH | 4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0 | 7879810067f1981209b658ceb675ac76e951b07b | refs/heads/master | 2023-01-14T14:43:06.639598 | 2020-07-28T12:06:25 | 2020-07-28T12:06:25 | 223,551,095 | 38 | 44 | Apache-2.0 | 2023-01-02T21:55:10 | 2019-11-23T07:43:49 | Java | UTF-8 | Python | false | false | 2,331 | py | """
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this ... | [
"ijarvis@sina.com"
] | ijarvis@sina.com |
bf7250ffe5633c3e39d310ea971044d50197e705 | 7cef73c3e359247716d0d1e0b94376bea81cff34 | /src/my_lib/common/early_stopping.py | 3db9196f14329f1c9455e98ce1e68eb26169fdcd | [
"MIT"
] | permissive | akirasosa/BCAI_kaggle_CHAMPS | 258415834f72c156ff448a5fef5dabcc8c151fe0 | 40de9f2360a1709561f0157c9abcc4dd989aaf8c | refs/heads/master | 2020-07-26T16:04:19.237209 | 2019-09-23T03:02:35 | 2019-09-23T03:02:35 | 208,698,383 | 0 | 0 | MIT | 2019-09-16T03:04:14 | 2019-09-16T03:04:14 | null | UTF-8 | Python | false | false | 1,181 | py | import numpy as np
class EarlyStopping(object):
def __init__(self, mode='min', min_delta=0, patience=10):
self.mode = mode
self.min_delta = min_delta
self.patience = patience
self.best = None
self.num_bad_epochs = 0
self.is_better = None
self._init_is_better... | [
"akirasosa@gmail.com"
] | akirasosa@gmail.com |
d427e8dc2a400253164b5e62143dd6af469e3d1e | 5c5b34f6f598a43ddfbd473228737a27c26d1d8e | /97. 交错字符串.py | 0c0e6902c0ddfc14ce1f9904ccbbaa1598114c23 | [] | no_license | lovehhf/LeetCode | 34a1bc140b10dc83a32ef9a70f9c73176948a9c4 | 5d3574ccd282d0146c83c286ae28d8baaabd4910 | refs/heads/master | 2021-11-04T04:52:34.518621 | 2021-10-26T15:34:47 | 2021-10-26T15:34:47 | 173,673,492 | 0 | 0 | null | 2020-03-03T14:54:09 | 2019-03-04T04:26:15 | Python | UTF-8 | Python | false | false | 1,534 | py | # -*- coding:utf-8 -*
"""
给定三个字符串 s1, s2, s3, 验证 s3 是否是由 s1 和 s2 交错组成的。
示例 1:
输入: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbcbcac"
输出: true
示例 2:
输入: s1 = "aabcc", s2 = "dbbca", s3 = "aadbbbaccc"
输出: false
"""
class Solution:
def isInterleave(self, s1: str, s2: str, s3: str) -> bool:
"""
f[i][j]... | [
"853885165@qq.com"
] | 853885165@qq.com |
ff8db83e7495d620a5d063937794ea0fc4d65de2 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/climbingStairs_20200709191131.py | 1de7d564f067b116c0d1455256d3d580b470ab9a | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | def climbing(n):
'''
Problem:
Climbing stairs
You are climbing a stair case.It takes n steps to reach the top
Each time you can either climb 1 or 2 steps
In how many distinct ways can you climb to the the top
1.Define the objective function
f(i) --> nu of distinct ways to reach the ... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
29853bfd39fcea743d5b7cb38712e9bc6b199d94 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Biweekly Contests/51-100/biweek 84/2365. Task Scheduler II/Task Scheduler II.py | 73b215414f8a74121855988491b2e726ad9af739 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Task Scheduler II.py
@time: 2022/08/17
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import collections
class Solution:
def taskSche... | [
"905317742@qq.com"
] | 905317742@qq.com |
d210065fa69dccc344ebfb49107396041bd3b8b1 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/devices/get_private_endpoint_connection.py | 54141aa5812ec3c02478bd6791f8364648b0aee3 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,699 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
043d3ecb326a282c18790501d672513ade7d15d6 | 0b9ede408c7b07a8134c6f7759e1b02fc215c1fc | /river_mwclient/wiki_client.py | b3782b963b2ae1f71a18ffb1fa6192018248aa4d | [] | no_license | chasehult/river_mwclient | e7240dfd972441d5918d28fb556888ab07656255 | 0342548d2dc998ef80916366e639908ada029d2b | refs/heads/master | 2023-03-21T22:14:34.961475 | 2020-06-28T11:47:58 | 2020-06-28T11:47:58 | 275,679,261 | 0 | 0 | null | 2020-06-28T22:30:30 | 2020-06-28T22:30:30 | null | UTF-8 | Python | false | false | 3,953 | py | import datetime
from .auth_credentials import AuthCredentials
from .session_manager import session_manager
from .site import Site
from .wiki_content_error import WikiContentError
from .wiki_script_error import WikiScriptError
class WikiClient(object):
"""
Various utilities that extend mwclient and could be u... | [
"18037011+RheingoldRiver@users.noreply.github.com"
] | 18037011+RheingoldRiver@users.noreply.github.com |
cc507a7dd32fd8659a9d8c75137a3d406baabb8d | e121ceeeeea5dbacbd3ea36f8d5f226ea43faa89 | /shop_catalog/shop_catalog/settings.py | a9a31ecbc9286a6636917ce8eb8593cc6b092caa | [] | no_license | Ranc58/training_django_shop | dae7b264f849502da0e54f2d70c715335a8d52f9 | 260b7c1be1c120652a791ff355afdd64c06602b0 | refs/heads/master | 2021-05-16T01:34:08.820340 | 2017-10-16T13:50:08 | 2017-10-16T13:50:08 | 107,131,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,307 | py | """
Django settings for shop_catalog project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"rancvova@gmail.com"
] | rancvova@gmail.com |
26c4952d5204ce07598a732f720e2c37bc19c9c8 | 0319cf358118101879a723910213a8cf8d4d1a0d | /tensorlayer/core/activations.py | b4c07d84a450114cde54a2552231f583635d02f4 | [
"BSD-2-Clause"
] | permissive | ORG-MARS/dragon | d1e42afe1a5e0ba6191fab2c2518af14571c7911 | 6bfe3e73ecb9d95030d12df2efed046551a396e1 | refs/heads/master | 2023-02-28T05:45:12.172455 | 2021-02-04T16:06:31 | 2021-02-04T16:06:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
# Copyright (c) 2016-2018, The TensorLayer contributors.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
#... | [
"ting.pan@seetatech.com"
] | ting.pan@seetatech.com |
b96db8991270269e02d19cd06052eac61aeac241 | f6003f9f25dcc182e9fbce7a96d0dabb9341744c | /Exercícios/Lista 5 - Seção 8 - Funções em Python/Questão 66 - Faça uma função que recebe um caractere e o imprime maiusculo.py | 8d343a86fc2baa0375c000fed8ba01677fc3ec93 | [] | no_license | henriquecl/Aprendendo_Python | 60a87959714f82894e996c06b0a1b767838c38fc | 672029855431795defafd7e20e8da319bf34e502 | refs/heads/master | 2023-06-08T10:48:13.667893 | 2021-06-22T00:55:14 | 2021-06-22T00:55:14 | 261,029,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | """
Faça uma função que recebe um caractere e o imprime maiusculo
"""
def maiusculo(carac):
return carac.title()
print(maiusculo('a'))
| [
"64755074+henriquecl@users.noreply.github.com"
] | 64755074+henriquecl@users.noreply.github.com |
512aea396ce148b8a2b3ced64d6b2cd8ed5f7aec | f85ce2baf753d65e8666bbda062acbdb0ccdb5ad | /leetcode/venv/lib/python2.7/site-packages/pyutil/django/kani/management.py | fe26563c0bdc74d0635a4c4838c48317f586c881 | [] | no_license | KqSMea8/PycharmProjects | 2a9d3fa59d08c77daf63be427da27695d4dea471 | c592d879fd79da4e0816a4f909e5725e385b6160 | refs/heads/master | 2020-04-14T11:54:56.435247 | 2019-01-02T10:15:36 | 2019-01-02T10:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,839 | py | # coding=utf8
"""
Creates permissions for all installed apps that need permissions.
"""
from __future__ import unicode_literals
import getpass
from django.core.management.base import CommandError
from django.db import DEFAULT_DB_ALIAS
from pyutil.django.kani.utils import get_kani_django_conf
from pyutil.kani.utils imp... | [
"zhangyifeng@bytedance.com"
] | zhangyifeng@bytedance.com |
d124ffc3103cfb9e6213e8d241c738a186250b10 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03687/s081618960.py | d77478a1b9c37d35565d46ec868f1afc5ce833bb | [] | 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 | 335 | py | s = input()
m = 10**9 + 1
# i,i+1のどちらかから選んで文字列にする
for alpha in set(s):
temp = alpha + s + alpha
M = 0
now = 0
for i, key in enumerate(temp):
if key == alpha:
if M < i - now - 1:
M = i - now - 1
now = i
if m > M:
m = M
print(m) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cf73879949d4f98237495cd720145424928cb2a0 | 1d9138d777744fa2d9d6e3b629a43041f2358d06 | /past/abc/100to199/172/C.py | a17a799fac96ea88d3931f9600e4c1858ccb87b2 | [] | no_license | Yuyats/AtCoderAnswers | f1956b790ee64a4d0b3b48b98791a91679a30244 | fac7e3eb74a888e77ba7a6b6a15d836c589baa3e | refs/heads/master | 2021-06-24T16:19:45.848524 | 2021-06-13T03:51:07 | 2021-06-13T03:51:07 | 198,857,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,193 | py | import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, functools
import numpy
inf = 10 ** 20
eps = 1.0 / 10**10
mod = 10**9+7
dd = [(-1, 0), (0, 1), (1, 0), (0, -1)]
ddn = [(-1, 0), (-1, 1), (0, 1), (1, 1), (1, 0), (1, -1), (0, -1), (-1, -1)]
def LI(): return [int(x)... | [
"unitednum@gmail.com"
] | unitednum@gmail.com |
6abfc7b74e2d6e4fe4ac84f25a8cee1094538d79 | b2ba670818623f8ab18162382f7394baed97b7cb | /test-data/AndroidSlicer/scale/DD/3.py | eaf705ecec2057600ce4447248ccf7a64764b8bf | [
"MIT"
] | permissive | hsumyatwin/ESDroid-artifact | 012c26c40537a79b255da033e7b36d78086b743a | bff082c4daeeed62ceda3d715c07643203a0b44b | refs/heads/main | 2023-04-11T19:17:33.711133 | 2022-09-30T13:40:23 | 2022-09-30T13:40:23 | 303,378,286 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | #start monkey test seedNo 0
import os;
from subprocess import Popen
from subprocess import PIPE
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
from com.android.monkeyrunner.MonkeyDevice import takeSnapshot
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyru... | [
"hsumyatwin@gmail.com"
] | hsumyatwin@gmail.com |
1c1b198ea0b36244ef8301861d935dee7f147dba | 1dde27fc069b17ba5c55c4cb4e3c348a9e6435ef | /patchy/helper/labeling_test.py | fb1ef12393e92799a057bb5fbebd37fce4a97798 | [
"MIT"
] | permissive | peternara/graph-based-image-classification-gcn | 09b62ece0ee06a61ec648c8ef18ebdd4a68d1a2c | 60e93b47691e960b7f06f7a5dc11191efe881178 | refs/heads/master | 2020-08-13T09:09:06.335496 | 2019-10-14T03:55:02 | 2019-10-14T03:55:02 | 214,943,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | import tensorflow as tf
from .labeling import scanline, betweenness_centrality, canonize
class LabelingTest(tf.test.TestCase):
def test_scanline(self):
adjacency = tf.constant([
[0, 1, 1, 1],
[1, 0, 1, 1],
[1, 1, 0, 1],
[1, 1, 1, 0],
])
ex... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
7092d00b155e9d6a29f6f7779dcefb6ed5486e7f | 3d30aa4f3a7a3ab8a0a2b75bf3e437834be8c354 | /Victor/dq2.victor.cms/lib/dq2/victor/config.py | 98a3844237b34d5494e6506179f63415c8d3a0e0 | [] | no_license | mmeoni/DDM | c3baa1f97fe9d1ff0272819bee81a7424cf028db | faba3a414009a362471a8f1eae8f9c11e884c8fd | refs/heads/master | 2021-01-22T07:19:06.698307 | 2016-08-12T07:50:37 | 2016-08-12T07:50:37 | 36,882,324 | 1 | 0 | null | 2015-06-04T16:28:47 | 2015-06-04T16:28:47 | null | UTF-8 | Python | false | false | 5,835 | py | """
Accounting Interface
@copyright: European Organization for Nuclear Research (CERN)
@author: Miguel Branco U{miguel.branco@cern.ch<mailto:miguel.branco@cern.ch>}, CERN, 2007-2009
@author: Andrii Thykonov U{andrii.tykhonov@ijs.si<mailto:andrii.tykhonov@ijs.si>}, CERN, 2010-2011
@license: Licensed under the Apache Li... | [
"domenico.giordano@cern.ch"
] | domenico.giordano@cern.ch |
54dc8b21346c5212b033b820cd62cadbe0e8b1b7 | e982c42888da91e957aef4a67e339135918d25ec | /lib/log.py | 45d20d2328f0a5f7b8a2483812de8b79c50e115e | [] | no_license | nikhil9856/kisan | c88f890d88e96dd718bd9cfaef41f3d40eb7b72d | 556e57427a2b9a91fcc4a44ca25706c49e790d73 | refs/heads/master | 2020-03-15T01:59:09.825264 | 2018-05-03T18:08:02 | 2018-05-03T18:08:02 | 131,904,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | import os
import logging
import logging.config
from config import LOG_DIR, LOG_FILE, ERROR_LOG_FILE, APP_NAME, DB_FILE
def setup_logging(config):
if not os.path.exists(config.HOME):
os.makedirs(config.HOME)
log_dir = os.path.join(config.HOME, LOG_DIR)
if not os.path.exists(log_dir):
... | [
"kumar.nikhil110@gmail.com"
] | kumar.nikhil110@gmail.com |
2d75c3d661edb7d5f60b62cac67191656b683932 | a2f6e449e6ec6bf54dda5e4bef82ba75e7af262c | /venv/Lib/site-packages/pandas/tests/io/excel/test_odswriter.py | 1586f7758d7002d7e46432f8468da4858e483da7 | [] | no_license | mylonabusiness28/Final-Year-Project- | e4b79ccce6c19a371cac63c7a4ff431d6e26e38f | 68455795be7902b4032ee1f145258232212cc639 | refs/heads/main | 2023-07-08T21:43:49.300370 | 2021-06-05T12:34:16 | 2021-06-05T12:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:fc490d2bfb7ec94a2293a075db607430660b3a260978cdbc1fc6f4d17415d824
size 423
| [
"chuksajeh1@gmail.com"
] | chuksajeh1@gmail.com |
cd369ec9609721852c8f67dcc842852def6324d2 | b65c1ac669ce3544b9fd21c6f84df7260dd5439e | /vi/search.py | 137bdb167e50ac89483728660f123eb2bd6920ab | [
"MIT"
] | permissive | werkzeugh-private/Vintageous | 735b5e8060ac632f42211d70a99271df685f0c18 | d5662872bcf1e7439875fe1c5133010db2ace8fd | refs/heads/master | 2021-01-21T09:43:28.057498 | 2013-07-25T22:05:25 | 2013-07-25T22:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,441 | py | import sublime
def find_in_range(view, term, start, end, flags=0):
found = view.find(term, start, flags)
if found and found.b <= end:
return found
def find_wrapping(view, term, start, end, flags=0, times=1):
current_sel = view.sel()[0]
# Search wrapping around the end of the buffe... | [
"guillermo.lopez@outlook.com"
] | guillermo.lopez@outlook.com |
b1049d4c5f8d9a1b04e539b345f6b6435948db4e | c8d7c4ba5e949b0af2f5aa234c3ae594b1a49950 | /Python接口自动化/auto_test_old/common/scripts/temp_file/V1IncomeRmaObj.py | 17c455f8aa4964ea11b59d2ae11aaa12a040537b | [] | no_license | chase001/chase_learning | 00b7396a6775fb6e2fd80950f8acf3f1737b162e | c5ee2473e49923c781212eb3f9f50341c0bc80c8 | refs/heads/master | 2022-12-12T00:08:08.407671 | 2020-03-06T14:17:39 | 2020-03-06T14:17:39 | 221,268,073 | 0 | 0 | null | 2022-12-08T05:26:49 | 2019-11-12T16:56:34 | Python | UTF-8 | Python | false | false | 1,545 | py |
class V1IncomeRma(BaseFinance):
"""api controller obj"""
def __init__(self, **kwargs):
super(V1IncomeRma, self).__init__()
self.info = "逆向订单财务收入接口"
self.uri = "/v1/income/rma"
self.method = "post"
self.body = self.Body(**kwargs)
self.resp = self.Resp()
clas... | [
"chenyuliang@globalegrow.com"
] | chenyuliang@globalegrow.com |
482950ff0865b7f10ca22504f495b29a03cb85d7 | 5465ed0ea2401a8e70d4bbc0ce1e78ca26813c54 | /Python/python3-cookbook/ch4 迭代器与生成器/4.12 不同集合上元素的迭代/4.12 不同集合上元素的迭代.py | 36467133dcfa13aed6efb43e3b1ae691ff3d686a | [] | no_license | josephchenhk/learn | 36c49ceb7c8cf8f944ad401b2c7adabf688981a1 | b216bb17570e272555e9da475e4c85eb18139c2a | refs/heads/master | 2023-09-01T04:22:00.984837 | 2023-08-20T01:00:01 | 2023-08-20T01:00:01 | 178,778,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
# @Time : 11/4/2020 9:39 PM
# @Author : Joseph Chen
# @Email : josephchenhk@gmail.com
# @FileName: 4.12 不同集合上元素的迭代.py
# @Software: PyCharm
"""
4.12 不同集合上元素的迭代
chain
"""
from itertools import chain
a = [1, 2, 3, 4]
b = ('x', 'y', 'z')
"""
不要求a和b类型一致,只要是迭代器都可以
比 `for x in a+b:` 高效
"""
f... | [
"josephchenhk@gmail.com"
] | josephchenhk@gmail.com |
991d9de2f75e8d0e9f96f5a24848b23aaabad439 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/long/Schema+Instance/NISTXML-SV-IV-list-long-length-1-4.py | ae42605fe6a44dc60acfcdec1c2f354d0817481c | [
"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 | 371 | py | from output.models.nist_data.list_pkg.long.schema_instance.nistschema_sv_iv_list_long_length_1_xsd.nistschema_sv_iv_list_long_length_1 import NistschemaSvIvListLongLength1
obj = NistschemaSvIvListLongLength1(
value=[
941547122423783532,
976323713875212435,
942318455375356827,
91423... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
a2fda72f26d7211bf71d61639216a79ee70ca983 | cd4f31c7fbb744a62bfddc32fd626374a6e9ee79 | /consumer/migrations/0040_auto_20210318_0708.py | 00a705df76d12a689ba4f6eb3dd718427122e462 | [] | no_license | adnankattekaden/Blahblahblah | 3c901c69fb4d859f90c6bf15a15b50b3dba759b2 | 484f3fef176c5cb8ce625d00c3e4f24f7caf4eac | refs/heads/main | 2023-04-14T12:47:35.177547 | 2021-04-23T11:12:26 | 2021-04-23T11:12:26 | 346,970,613 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # Generated by Django 2.2.12 on 2021-03-18 07:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('consumer', '0039_auto_20210318_0707'),
]
operations = [
migrations.AlterField(
model_name='pla... | [
"adnankattekaden2020@gmail.com"
] | adnankattekaden2020@gmail.com |
71645d3c7dea4b9c6735a9aeb6cf424201cca90e | c092ecbed78c493c3e47a98f6d434db015f3840f | /adventure/week3/team4/test_adventure.py | 69363281de4d7353d605f2095dd23677369f237a | [
"MIT"
] | permissive | ntoll/code-dojo | 64c28f643d59420c619baeab9c1062129e403ad2 | 83c8f1a702b238c516afb958c5427e93a1bd33c3 | refs/heads/master | 2020-06-04T13:01:49.792066 | 2010-07-02T13:31:35 | 2010-07-02T13:31:35 | 295,169 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | import adventure
import item
from nose.tools import *
def test_one_room ():
room = """
:Room
This is a room
""".splitlines ()
rooms, first_location, items, item_location = adventure.load_universe (room)
assert rooms.keys () == ['Room']
assert first_location.name == "Room"
def test_one_rooms_exits ():
roo... | [
"ntoll@ntoll.org"
] | ntoll@ntoll.org |
9344fd6be06b5cbfb781ddfce832e2db7c89d6ce | fd24b876efde3fa3d9ac2092d5f9f5fb0880e31b | /vulcanize/assembler.py | ed3b2ed5b1b0f7dcded37b0e6cd9d865d932005d | [] | no_license | bslatkin/pyvulcanize | 05697eb082557e66edae4e8e60e529c3dd491daa | 42656488a384904e62adbe58aa533aefb6eddf55 | refs/heads/master | 2022-07-15T15:01:59.017599 | 2014-12-16T09:24:38 | 2014-12-16T09:24:38 | 27,829,714 | 3 | 1 | null | 2022-07-06T20:08:51 | 2014-12-10T16:55:52 | Python | UTF-8 | Python | false | false | 7,034 | py | #!/usr/bin/env python2.7
#
# Copyright 2014 Brett Slatkin
#
# 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 ... | [
"brett@haxor.com"
] | brett@haxor.com |
95eb1cbac1e8f615bd12276e52fc91ca3f9449a7 | 7cd6950ab3034cb0cf403ee1b8410bf475360a8d | /cwl_tutorials/common_workflow_language_user_guide/venv/bin/venv/bin/python-config | 3070046d42cc1e68b7577c966e6c801400913a98 | [] | no_license | mr-c/george_murray | ef6d5f77a4f4c0b64cbc64534ce23d7546a3cee0 | 612c68c6b27ed2d8097f1309820ccdbb05530176 | refs/heads/master | 2022-09-20T11:12:58.582547 | 2019-08-15T19:32:34 | 2019-08-15T19:32:34 | 268,844,811 | 0 | 0 | null | 2020-06-02T15:55:27 | 2020-06-02T15:55:26 | null | UTF-8 | Python | false | false | 2,436 | #!/Users/George1/Documents/academic/github/george_murray/cwl_tutorials/common_workflow_language_user_guide/venv/bin/venv/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_... | [
"george.c.murray@maine.edu"
] | george.c.murray@maine.edu | |
4d33f64cf9be68762ac35b4effd7bfe0e99504fe | 1d8f742d3fc1f1617e313f4a018f45d0062903f3 | /tests.py | 8028b8e9d5547bb4a1e263c4378da1a3a8ebc43a | [] | no_license | ChristineKarimi/Project-euler | 4355e898bb2e0e0d3e8d68fee0600ade92b67506 | 06af88e39697a3cc6230fe34b548a3d120d5fc75 | refs/heads/master | 2020-03-11T08:02:24.001617 | 2018-04-20T05:48:15 | 2018-04-20T05:48:15 | 129,860,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #
import unittest
import smallest
class TestSmallest(unittest.TestCase):
def tearDown(self):
smallest.start_point = 1
def test_range_generator(self):
input = 20
range_length=len(smallest.range_generator(input))
self.assertTrue(range_length==20)
def test_start_point_exi... | [
"karimikim3@gmail.com"
] | karimikim3@gmail.com |
264efd320a226696db3c6d65f09a685c46ed521c | 7911da973079f325a515cd2ee66f7590a9f32e48 | /guvi/python/play105.py | 46f6dfb16c680effaa2412a944e748ff14ff6b72 | [] | no_license | Ponkiruthika112/Guvi | 5d2ff3dcf55d6c52c0f09a1e577d8b11632c7a92 | 319e5b4dab5654fabc25ef15c1d528f76d833c15 | refs/heads/master | 2020-04-21T06:05:03.581658 | 2018-08-02T05:53:48 | 2018-08-02T05:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | n=int(input())
a=[]
ans=0
for x in range(n):
a.append(int(input()))
b=a
for x in sorted(a):
for y in range(len(a)):
if x==b[y]:
print(y+1)
| [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
a8fe7e1a3f13ebb81113f69032ce0101b1aefe26 | 89afca1e0abb486f57e18e50c3972ebefab18aa9 | /twit/twit/users/admin.py | 6928880b6b52b72db26a6720360a8b61f100aa95 | [
"MIT"
] | permissive | hckcksrl/twitter_clone | e124952ca38d5c894ab7d2b945250834b425ba84 | 36d18f1f2af25ab33ef1e8781f23b55143263db1 | refs/heads/master | 2021-11-19T02:44:55.542429 | 2018-07-09T08:18:18 | 2018-07-09T08:18:18 | 139,840,234 | 0 | 0 | null | 2021-09-08T00:02:14 | 2018-07-05T11:33:49 | Python | UTF-8 | Python | false | false | 534 | py | from django.contrib import admin
from django.contrib.auth import admin as auth_admin
from django.contrib.auth import get_user_model
from twit.users.forms import UserChangeForm, UserCreationForm
User = get_user_model()
@admin.register(User)
class UserAdmin(auth_admin.UserAdmin):
form = UserChangeForm
add_fo... | [
"hckcksrl@hckcksrlui-MacBook-Pro.local"
] | hckcksrl@hckcksrlui-MacBook-Pro.local |
689e6ff6cec4b194c2b220f01f0e0a02a2627b46 | 1078c8a8c38d6a4d28718de9ab4afe6a6ae55072 | /machine_learning/air/forms.py | 16e870832ab1ff16e65073f1b91b0fc31e544a8e | [] | no_license | srksuman/Flight-Price-Prediction | 5297b2772a70c0ae15213bb9de5ab5264c6ca65f | cf6859f4c9b209248819580a8d4d6afb8d809b27 | refs/heads/master | 2023-06-18T12:18:01.551345 | 2021-07-11T20:58:49 | 2021-07-11T20:58:49 | 384,121,070 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | from django import forms
import datetime
class ArilinesForm(forms.Form):
airlines_choice =[
('IndiGo','IndiGo' ),
('Air India','Air India'),
('Jet Airways','Jet Airways'),
('SpiceJet','SpiceJet'),
('Multiple carriers','Multiple carriers'),
('GoAir','GoAir' ),
... | [
"sumanrajkhanal@gmail.com"
] | sumanrajkhanal@gmail.com |
0ac32bd7ece53665bc669e612ea335e13d09d7fc | e582d60b7996faf7b87c6d857613e63581d415b9 | /elliot/evaluation/metrics/fairness/BiasDisparity/BiasDisparityBS.py | 6452cfeed3f3c59a14516020812102aea938c291 | [] | no_license | Abdel57Grota/Reenvisioning-the-comparison-between-Neural-Collaborative-Filtering-and-Matrix-Factorization | d6e51c32094550789673846acdf9891557b790c1 | 2a2b0148e881cf8ba45c48ad9d42f52421585284 | refs/heads/main | 2023-09-03T09:47:41.894117 | 2021-11-09T09:17:35 | 2021-11-09T09:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,630 | py | """
This is the implementation of the Bias Disparity - Bias Source metric.
It proceeds from a user-wise computation, and average the values over the users.
"""
__version__ = '0.1'
__author__ = 'Vito Walter Anelli, Claudio Pomo'
__email__ = 'vitowalter.anelli@poliba.it, claudio.pomo@poliba.it'
import numpy as np
impor... | [
"claudio.pomo@poliba.it"
] | claudio.pomo@poliba.it |
4cb1d7bd1b890d0dc25479f6d2e1d9af67cdb74c | 736206fc1d21b43a10e899cb3f37db45c3450b11 | /setup2.py | 38ca54877a5eb4b128a26fd3f8649babea699ddd | [] | no_license | AFlyingCar/Python-Compiler | 3f92057f8172e0191eb888044a08db5f31468f5a | e12ee512c5c07d48d0ef824a4c1dbc9e9158c5a5 | refs/heads/master | 2020-05-04T09:40:30.992527 | 2014-03-05T01:07:20 | 2014-03-05T01:07:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,138 | py | #Tyler Robbins
#2/20/14
#Python Script Packager
#This program will package python scripts into *.ppr files.
#*.ppr file structure:
#*.ppr
#src
#source code in *.pyc (bytecode) files
#bin
#python libraries as *.pyd files
#run.py
#Executees bytecode in ./src
import dis
import shutil
impo... | [
"tyler@familyrobbins.com"
] | tyler@familyrobbins.com |
18276765b15df68daabbb14795fe23c449f92df2 | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/traits/tests/tuple_test_mixin.py | 05f05fcb97865adb1be591571e21047a60ebbff5 | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 2,855 | py | # -----------------------------------------------------------------------------
#
# Copyright (c) 2014, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in enthought/LICENSE.txt and may be redistributed only
# under the conditions d... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
df0696b34c70bc33228b5f33852c71f0908cd359 | 5dcfc117073f4abf0fbc805fe3f0d515dbcd45d5 | /sources/Loazei Rashi/parse_shas.py | 5c0c2a97f2b1b1592e8cde26eec8991302c315e5 | [] | no_license | batmanwgd/Sefaria-Data | 95f3b2f7fcf09459bacd4deb303a6b9125eb4fb7 | d32081d3a1c73ed7b768dcd427c7233630361c4c | refs/heads/master | 2022-12-15T00:35:31.972203 | 2020-09-09T04:39:39 | 2020-09-09T04:39:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,896 | py | import django
django.setup()
from sefaria.model import *
from data_utilities.dibur_hamatchil_matcher import *
from research.mesorat_hashas_sefaria.mesorat_hashas import ParallelMatcher
from fuzzywuzzy import fuzz
import bleach
from collections import Counter
class Laaz:
def __init__(self, serial, ref, hebrew_word,... | [
"steve@sefaria.org"
] | steve@sefaria.org |
0aaf7d42e9e8e68526c5844a51120367ffe2072f | cc1c27511b3bce693556446e5bb1000ae3330291 | /HousePagesApp/views.py | 02c51ddacbaa72371367ae81f7e1ca38fe4e747e | [
"Apache-2.0"
] | permissive | cs-fullstack-master/django-review1-ic | 21ed833960b424b106a591228a6d75b923190444 | b86e9f8df704ba2aac1884cf4cd0dfa0255b105c | refs/heads/master | 2020-04-25T10:33:48.014380 | 2019-02-26T20:51:17 | 2019-02-26T20:51:17 | 172,713,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,552 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from .models import House
# Create your views here.
def index(request):
allHouses = House.objects.all()
context = {
"allHouses": allHouses
}
return render(request, 'HousePagesApp/index.html', context... | [
"kenn+git@code-crew.org"
] | kenn+git@code-crew.org |
50d17ded96c41e93ccf969f9b2fd691fda859676 | c5758c1f4c880f4530df1a5ffb4c30ee2da445ee | /pytracking/vot_ep/sk_multiscale_finetune/vot_wrapper_sk_multiscale_finetune_ep0030.py | d34e0ce3c7f0a4cf67aa5c6069774ed39c3b8fca | [] | no_license | bfjei2825401/d3s | 6d662fc301181a0e3ad831b0db6111e3cf8f4097 | 32140a3c67252f0e98cbfbf6ad6d2a79267c221b | refs/heads/master | 2023-02-27T09:57:25.692878 | 2021-01-27T14:20:57 | 2021-01-27T14:20:57 | 297,217,521 | 0 | 0 | null | 2020-09-21T03:23:09 | 2020-09-21T03:23:09 | null | UTF-8 | Python | false | false | 2,490 | py | import pytracking.vot as vot
import sys
import cv2
import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = "0"
from pytracking.tracker.segm_sk_multiscale import SegmSKMultiscale
from pytracking.parameter.segm_sk_multiscale import finetune_params_ep as vot_params
def rect_to_poly... | [
"752958525@qq.com"
] | 752958525@qq.com |
12d7fb25d4b25a25eb85817eb4d02723bf7f22b1 | 8bada384f8e2c9110ece09816017b8033ddb7054 | /scruffy/env.py | 826493b44e233c011714ef1f834741307797d43a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | l1kw1d/scruffy | 6f5e72c345f98bc6f0452d43df731daa22fffc59 | af747383dc5b637a32f611a63aa34f2fe7e5f268 | refs/heads/master | 2021-01-16T00:08:57.882441 | 2016-04-02T12:30:42 | 2016-04-02T12:30:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | import os
import yaml
import itertools
import errno
import logging
import logging.config
from .file import Directory
from .plugin import PluginManager
from .config import ConfigNode, Config, ConfigEnv, ConfigApplicator
class Environment(object):
"""
An environment in which to run a program
"""
def __... | [
"snare@ho.ax"
] | snare@ho.ax |
97a085071fa8405f68fd9b54c58f254f9f4abe19 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_quantizer/tensorflow-onnx/tf2onnx/tflite/TransposeConvOptions.py | 3a08cf0892c24b992ad49c28b9e6613398ddfe75 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | Python | false | false | 2,816 | py | # SPDX-License-Identifier: Apache-2.0
# automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class TransposeConvOptions(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf,... | [
"do-not-reply@gitenterprise.xilinx.com"
] | do-not-reply@gitenterprise.xilinx.com |
7e277e6f5eedad8e84053b9d537555ba621e4ddc | a0f53b34ca09d7695117c5e52340322c7fe49916 | /examples/feature/norm_feature.py | d197ed7ca328d8fda52b0ec7c5d18ed256203905 | [
"MIT"
] | permissive | PAOPAO6/Time-series-prediction | e01f3fbe46d2e7aaa8efa05b005a263c1d36e51d | ec6fbd99e9f575074b3211feadd1710387be7b15 | refs/heads/master | 2023-01-01T20:26:51.976565 | 2020-10-12T14:54:39 | 2020-10-12T14:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py |
import os
import joblib
import pandas as pd
from sklearn.preprocessing import StandardScaler
from sklearn.preprocessing import MinMaxScaler
class FeatureNorm(object):
def __init__(self, type='minmax'):
self.type = type
def __call__(self, x, mode='train', model_dir='../models', name='scaler'):
... | [
"tanlongxing888@163.com"
] | tanlongxing888@163.com |
d110729bb2a59f6be90fbe0311bf4b4339e27375 | 00bc6bd538cf37bb8cfc9d963e814a72e3645e40 | /Python/biopsy/protein_bridges/graph_as_svg.py | b695e3a7003220cf945bf37e58540886a9cf91f3 | [
"MIT"
] | permissive | JohnReid/biopsy | 0ff46367dc94131c36ed2c08bafebd41b3e602bb | 1eeb714ba5b53f2ecf776d865d32e2078cbc0338 | refs/heads/master | 2021-01-23T07:15:43.953548 | 2015-04-22T19:14:03 | 2015-04-22T19:14:03 | 14,086,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | #
# Copyright John Reid 2007
#
def graph_as_svg(
g,
basename,
*neato_properties
):
import os
dot_filename = '%s.dot' % basename
svg_filename = '%s.svg' % basename
g.write_graphviz( dot_filename )
property_args = " ".join( neato_properties )
cmd = 'neato %s -Tsvg -o %s %s... | [
"johnbaronreid@netscape.net"
] | johnbaronreid@netscape.net |
6dfb14c1eeff481455b7d478002e6fac771de3ac | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/skimage/util/tests/test_apply_parallel.py | 45fa148fa00fc72918fe66e8d5ad2780bf9437d8 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:4a6b759cd7eb897ec6fbba3e96029a4a2c69a3cb4bd701951881a6ae92f52d14
size 3414
| [
"Nqk180998!"
] | Nqk180998! |
2cd7a89d969f48381fa20bae55f45dc192d20fa1 | d6d20681f41102df3feb2b438ef80569bd73730f | /.history/Uge5-pandas/handinExercises_20200307180240.py | 9ce02db05b59962bd986ba056dec30f8b8508af6 | [] | no_license | MukHansen/pythonAfleveringer | d0ad2629da5ba2b6011c9e92212949e385443789 | 4107c3c378f757733961812dd124efc99623ff2e | refs/heads/master | 2020-12-22T13:27:19.135138 | 2020-05-22T11:35:52 | 2020-05-22T11:35:52 | 236,796,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,662 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
dataA = pd.read_csv('https://api.statbank.dk/v1/data/FOLK1A/CSV?delimiter=Semicolon&Tid=2008K1%2C2020K1&CIVILSTAND=G%2CF', delimiter=';')
dataB1 = pd.read_csv('https://api.statbank.dk/v1/data/FOLK1A/CSV?delimiter=Semicolon&OMR%C3%85DE=*&CIVILSTAND=... | [
"cph-mh752@cphbusiness.dk"
] | cph-mh752@cphbusiness.dk |
f679b6089cfc06b1f8c06055fbe8bc6e9edaaee9 | 81522e7dd1389e6e0ddbd827c1985bb22a6b590d | /speakers/migrations/0003_auto_20180519_1123.py | 47245dbe379760e9601a43c59367959efe8e17cd | [] | no_license | BadRushdeep/ECellWeb2k18 | 406a9e7ae64f971f642b3d18c1acf4236d6a6ef4 | 81cdb9c8421ab187806be8f969045707294e7b34 | refs/heads/master | 2020-03-22T14:23:33.736513 | 2018-07-07T15:44:04 | 2018-07-07T15:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.0.4 on 2018-05-19 11:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('speakers', '0002_auto_20180519_0917'),
]
operations = [
migrations.AlterField(
model_name='speaker',
name='profile_p... | [
"pupalerushikesh@gmail.com"
] | pupalerushikesh@gmail.com |
587f00a55a49709e901ddb693666a9c1db0b00eb | 1fbe4dcd2316499420ffd66903eb0fb5b675c316 | /responses/NYCS8Y-58S/1_sum_of_integers_in_a_string.py | 7f721c1f4986a21bd7d4e9afd60de6c0f15282e1 | [] | no_license | danrasband/coding-experiment-reviews | 0f137b57bfbb76a47790f0ab08d876cb6a548091 | 3b0cb59012c284d2e7040d5e96e0d6a91265d655 | refs/heads/master | 2020-05-01T03:41:43.304696 | 2019-06-08T14:58:37 | 2019-06-08T14:58:37 | 177,251,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(S):
S_array = S.split(',')
total = 0
for i in S_array:
total = total + int(i)
return total | [
"danrasband@gmail.com"
] | danrasband@gmail.com |
42ffb800e09c62469ab653954cfcd5368c317a57 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/330/usersdata/279/93546/submittedfiles/lista1.py | 6efd5ebdc031922269a3b2ad503fd2f18c00a858 | [] | 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 | 210 | py | # -*- coding: utf-8 -*-
n=int(input('Digite o valor de n '))
lista=[]
for i in range (0,n,1) :
lista[i]=float(input('digite o %d numero' % (i+1)))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fec08df0d4d7ec8d5ef4b8062bb143a40235edab | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /supervised_learning/0x01-multiclass_classification/1-one_hot_decode.py | 3cba1142c3d38303740064a3f0b3396587f5422a | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | #!/usr/bin/env python3
""" This method converts a one-hot matrix into a vector of labels """
import numpy as np
def one_hot_decode(one_hot):
"""
This method converts a one-hot matrix into a vector of labels
"""
if not isinstance(one_hot, np.ndarray):
return None
copy = one_hot.T
deco... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
3713b067119d7bee33775480cc13d6f549386d0f | 19f45daa4bf39f74ce2faf0e4883ebb3169b01de | /finlib/data/cache.py | 6b517a1996cccc74b49d282810a30f9d59c3e514 | [] | no_license | gouthambs/FinLib | 6b07bdb397c773ebf5230ab69ac092e9288567cd | 199f0f44f39e12c53c0895870bdf410484c5de09 | refs/heads/master | 2021-01-17T13:21:13.940533 | 2015-03-12T04:44:14 | 2015-03-12T04:44:14 | 26,677,556 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,085 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 29 04:27:05 2014
@author: Gouthaman Balaraman
"""
class ShelveCache(object):
def __init__(self,**kwargs):
self._is_open = False
self.open_cache(**kwargs)
def has_key(self, key):
self._cache.has_key(key)
... | [
"gouthambs@gmail.com"
] | gouthambs@gmail.com |
4ac4873a45927732afa41f1d0c26c2a8b159746e | b9e5aebb49734ad47825130529bd64e59f690ecf | /chapter_6/favorite_numbers.py | 6bec7c99b36dcacf32455fa7fda2f698c0fb331f | [] | no_license | mikegirenko/python-learning | dab0f67d990d95035f93720986c84aaf422f7a9f | db9e3f0e3897caf703169d1f14b15a9aa1901161 | refs/heads/master | 2021-07-09T08:03:40.535653 | 2020-08-05T00:13:41 | 2020-08-05T00:13:41 | 169,983,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | favorite_numbers = {
'jen': 1,
'peter': 22,
'sam': 9,
'danny': 67,
'sal': 0
}
print("Jen's favorite number is " + str(favorite_numbers['jen']))
print("Peter's favorite number is " + str(favorite_numbers['peter']))
print("Sam's favorite number is " + str(favorite_numbers['sam']))
print("Danny's favor... | [
"mike.girenko@cybergrx.com"
] | mike.girenko@cybergrx.com |
2922b18cf27eb12a5a2d1afdbe7ca8900d17597b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02412/s777394199.py | 946b2968bbf07176ac559b2bcbc4b72f0abc82c4 | [] | 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 | 349 | py | while True:
i = 0
n,x = map(int,raw_input().split())
if n == x == 0:
break
for a in range(1,n+1):
for b in range(1,a+1):
for c in range(1,b+1):
if not a == b == c and not a == b and not a == c and not b == c:
if a+b+c == x:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fb29d48496c0a3acecab77025c20e7586ab4580b | de955e37ba0d6d13695ba562efc20d3a7ece4025 | /asciinema_director/__main__.py | 81aabbdf8cd507b478c0e03b27b4a925bcbe5bcc | [] | no_license | stonecharioteer/asciinema-director | 1868bd983ab5b2c6a1c48533df89d539f90cfc06 | 4790494375bd7578ecf97c89a8a867f1e84df116 | refs/heads/master | 2020-07-10T04:56:54.161419 | 2019-08-24T16:31:59 | 2019-08-24T16:31:59 | 204,172,504 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""__main__ file to enable use like `python -m asciinema_director`"""
from asciinema_director.cli import cli
if __name__ == "__main__":
cli()
| [
"ktvkvinaykeerthi@gmail.com"
] | ktvkvinaykeerthi@gmail.com |
86491515677b07be982bc2a9221e74d26100858b | b59fe015c45178a49f4407c22d16b6a6aab2c769 | /functions/getDeviceInfo.py | e73e5a4b74fd6f85611c4e8cbbcfb47f050452ac | [] | no_license | Hanlen520/AndroidPyScripts | c46585189337f19416fb6e1f37cfaca08502f499 | 4add0701aabee89babd0d3ff21d0763d58a71f15 | refs/heads/master | 2020-04-02T13:18:47.102438 | 2018-04-11T15:28:06 | 2018-04-11T15:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py | # coding=utf-8
import threading
import re
import json
from utils import androiddebug
class DeviceInfo(threading.Thread):
def __init__(self):
super(DeviceInfo, self).__init__()
def get_cpuModel(self):
print "CPU型号:", androiddebug.shell("cat /proc/cpuinfo|findstr Hardware").stdout.readline().st... | [
"jayzhen_testing@163.com"
] | jayzhen_testing@163.com |
5c26c5c7bd197706fea737c1f6b1693e681a9417 | c03c4cf64f6d829c3dd22c56fecd3a0089c363dd | /next/apps/PoolBasedBinaryClassification/Info.py | 3a03888680b1874127f53dc118300be00336fd8a | [
"Apache-2.0"
] | permissive | kgjamieson/NEXT-psych | 51f0649b39778a30febdf1faef913d33e539821f | 2fcd8df29d274c86276bb5a039f7e61f201ebf61 | refs/heads/master | 2016-09-15T08:50:19.540157 | 2016-04-25T20:22:25 | 2016-04-25T20:22:25 | 39,162,742 | 4 | 2 | null | 2015-10-01T02:11:36 | 2015-07-15T21:43:30 | JavaScript | UTF-8 | Python | false | false | 1,773 | py |
import next.apps.InfoPrototype as InfoPrototype
def get_about():
"""
Returns description of app
"""
about_str = (
"""PoolBasedClassification""")
return about_str
def get_info_object():
info = InfoPrototype.get_info_object(get_implemented_algs)
args = info['values']['initExp']['val... | [
"kevin.g.jamieson@gmail.com"
] | kevin.g.jamieson@gmail.com |
85626431ed04dfce61f03da3df6fa9b19b6b32f9 | 4111c9d14daacf19826c6021b25f990cb005d607 | /evodynamic/cells/cells.py | 4495e44ba7cc90f215da54e7a1e51c81b3e775b2 | [
"Apache-2.0"
] | permissive | shahrokhx/EvoDynamic | 6b348c6ade1157d38c41da6b11676907ae2bcf69 | c69419e49632ca0fecc6e8a1a53ea00e457b0dbe | refs/heads/master | 2022-12-13T09:20:44.114494 | 2020-04-27T18:57:57 | 2020-04-27T18:57:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | """ Cells """
import tensorflow as tf
import numpy as np
from functools import reduce
from operator import mul
from typing import Tuple, Optional
class Cells(object):
"""
Class for Cells
"""
def __init__(self, amount: int, virtual_shape: Optional[Tuple[int]] = None):
self.amount = amount
self.virtual_... | [
"sidneypontesf@gmail.com"
] | sidneypontesf@gmail.com |
1d5b09e53d70affba4dd120626a09ab899188a46 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/costmanagement/v20180801preview/report_by_resource_group_name.py | 82f97db5e29675757eba174a1145959749324672 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 6,365 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
279da7efb1c9b553fa329f19dc0127e6f6b6800e | 777cf9cb9a79a2510e4379ba08260714da00657f | /experiments/cremi/postproc_compare/summarize_scores_MC.py | 8a33bafb2dd0505e814e2cf23a8a1f5c734b046b | [] | no_license | abailoni/segmfriends | dbea3fd96d62a0f27687b9d87a93c07d656b58e4 | d3919b48e45363735c696266f8890a9f5537ef1a | refs/heads/master | 2022-04-30T19:43:45.771209 | 2022-03-25T10:13:06 | 2022-03-25T10:13:06 | 159,837,614 | 1 | 3 | null | 2021-04-29T14:56:17 | 2018-11-30T14:50:29 | Python | UTF-8 | Python | false | false | 6,034 | py | import os
from copy import deepcopy
# TODO: get rid of paths
from pathutils import get_trendytukan_drive_dir
from segmfriends.utils.config_utils import assign_color_to_table_value, return_recursive_key_in_dict
import json
import numpy as np
from segmfriends.utils.various import yaml2dict
from segmfriends.utils.config... | [
"bailoni.alberto@gmail.com"
] | bailoni.alberto@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.