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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ecfd4ade7a4eb7a0332e62085aa20d4d147faea | 0550c08cee19be891fde34fa109b5a4ad9f07e3a | /countingdnanucleotides/countingdnanucleotides.py | f3f714d93042c72c14090a87793d10895a8e4cca | [] | no_license | bendavidsteel/rosalind-solutions | 92653c49d8ef938306ac1289ccb4e4cfe4b8d3ae | 0749f2662efcac62383a8476ce13fcdd039928b1 | refs/heads/master | 2020-03-28T04:17:00.959446 | 2018-09-06T21:32:06 | 2018-09-06T21:32:06 | 147,705,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | a = 0
c = 0
g = 0
t = 0
i = 0
with open('rosalind_dna.txt') as stringfile:
s = [x.strip('\n') for x in stringfile.readlines()][0]
for i in range(len(s)):
if s[i] == 'A':
a += 1
elif s[i] == 'C':
c += 1
elif s[i] == 'G':
g += 1
elif s[i] == 'T':
t += 1
output =... | [
"bendavidsteel@gmail.com"
] | bendavidsteel@gmail.com |
7d2d02d8ebc5d63a3b86766ce7a466835da3c7fb | 16caebb320bb10499d3712bf0bdc07539a4d0007 | /objc/_SleepHealth.py | b5472aa777bd2319957d026862d02d97921f506b | [] | no_license | swosnick/Apple-Frameworks-Python | 876d30f308a7ac1471b98a9da2fabd22f30c0fa5 | 751510137e9fa35cc806543db4e4415861d4f252 | refs/heads/master | 2022-12-08T07:08:40.154553 | 2020-09-04T17:36:24 | 2020-09-04T17:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | '''
Classes from the 'SleepHealth' framework.
'''
try:
from rubicon.objc import ObjCClass
except ValueError:
def ObjCClass(name):
return None
def _Class(name):
try:
return ObjCClass(name)
except NameError:
return None
HKSHSleepDaySummary = _Class('HKSHSleepDaySummary')
H... | [
"adrilabbelol@gmail.com"
] | adrilabbelol@gmail.com |
da4dcc87474cb0400f18d2293569fa8d6e209747 | 1a9852fe468f18e1ac3042c09286ccda000a4135 | /Specialist Certificate in Data Analytics Essentials/DataCamp/06-Writing_Functions_in_Python/e11_a_read-only_open_context_manager.py | 956cc65e4b032f0ee852b2821b8fb559599e271b | [] | no_license | sarmabhamidipati/UCD | 452b2f1e166c1079ec06d78e473730e141f706b2 | 101ca3152207e2fe67cca118923896551d5fee1c | refs/heads/master | 2023-08-14T15:41:24.312859 | 2021-09-22T17:33:01 | 2021-09-22T17:33:01 | 386,592,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """
A read-only open() context manager
Yield control from open_read_only() to the context block, ensuring that the read_only_file object
gets assigned to my_file.
Use read_only_file's .close() method to ensure that you don't leave open files lying around.
"""
from contextlib import contextmanager
import ti... | [
"b_vvs@yahoo.com"
] | b_vvs@yahoo.com |
d3770de2ae95f5979154c27ae9ccd77472d0e4d2 | 0a6f284b1a7c8b16911ebf33076abc38778c752f | /app/run.py | 37911045108a9bf98a86cd405ae50114df2a13ca | [
"Apache-2.0"
] | permissive | branky/blockd3 | 2298b3eafd1b9c50b0374dd1456c0fcdf2068fab | 27e78fd89f44af95ad65b1203c02156db64333d0 | refs/heads/master | 2020-12-25T09:00:35.047437 | 2012-11-19T06:08:49 | 2012-11-19T06:08:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import logging
from ghost import GhostTestCase, Ghost
from app import make_app
app = make_app("test")
PORT = 5000
base_url = "http://localhost:%s/dist/" % PORT
class Blockd3GhostTest(GhostTestCase):
port = PORT
display = False
log_level = lo... | [
"nick.bollweg@gmail.com"
] | nick.bollweg@gmail.com |
4037da61e9d0b78c4af2e78d472c172f4b190b68 | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/mpl_toolkits/axes_grid1/inset_locator.py | 49576ff9f37100ac6d33812731d5634d57e34693 | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,733 | py | """
A collection of functions and objects for creating or placing inset axes.
"""
from matplotlib import _api, docstring
from matplotlib.offsetbox import AnchoredOffsetbox
from matplotlib.patches import Patch, Rectangle
from matplotlib.path import Path
from matplotlib.transforms import Bbox, BboxTransformTo
f... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
28c05a44ba70abe18d6362f2f5149765c73adee1 | 4a4a24bf9521ef659d16fb08403242a77a9b9d77 | /aos_l10n_id/models/localization.py | 697c48b804e8e16763168c1459d8a44355bd4266 | [] | no_license | hassanfadl/Odoo12-1 | 601c4969c9d483590e8481e92ecaf4dddaac3847 | bb057424138f99d0a645d185fbd26648385fbdf7 | refs/heads/main | 2023-07-31T22:59:19.597624 | 2021-10-01T06:35:58 | 2021-10-01T06:35:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,822 | py | ##############################################################################
#
# Copyright (C) 2011 ADSOFT OpenERP Partner Indonesia
#
# 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 Foundatio... | [
"noreply@github.com"
] | hassanfadl.noreply@github.com |
8728e365e7d7eb7024f6524d63406cd1993322f7 | 4b1d977acfde9354685157e02459c016c041421d | /tests/test_molecules.py | 88a58a7272d50cddca1b5caf2d88a8175dd2b880 | [] | no_license | fujiisoup/pyspectra | f6c50d929e992ab6064ef978a4de0c0647ff3d4b | 152bf37dee7e9eeabf42d24496566022d00d31ec | refs/heads/master | 2023-07-25T08:23:13.637233 | 2023-07-05T16:32:30 | 2023-07-05T16:32:30 | 246,492,492 | 3 | 0 | null | 2023-07-05T16:32:32 | 2020-03-11T06:28:08 | Python | UTF-8 | Python | false | false | 2,363 | py | import numpy as np
from pyspectra import molecules, units, refractive_index, data
def test_level():
# fulcher
constants = data.diatomic_molecules("H2").sel(state="X 1Σg 1sσ2")
for key in constants:
print(key, constants[key].item())
upper = molecules.level("H2", "d 3Πu 3pπ", 0, 1)
lower = ... | [
"fujiisoup@gmail.com"
] | fujiisoup@gmail.com |
2bdc663042e1e1aefc99f900694814b55def8c35 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-arms/aliyunsdkarms/request/v20190808/SearchEventsRequest.py | 3fae22f10c2789e7944a1a6c990d8133f134697a | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,864 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9b1a9ff5d3d3ad9d0086cc8d179cdb717f6b6bde | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/yadayada_acd_cli/acd_cli-master/acdcli/utils/conf.py | 9ebf249680620acffb9a172fb3c9591bb51f646c | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 584 | py | import configparser
import logging
import os
logger = logging.getLogger(__name__)
def get_conf(path, filename, default_conf: configparser.ConfigParser) \
-> configparser.ConfigParser:
conf = configparser.ConfigParser()
conf.read_dict(default_conf)
conffn = os.path.join(path, filename)
try:
... | [
"659338505@qq.com"
] | 659338505@qq.com |
24c1f145fb8771680cd3bc3dafa1f4db36c625b3 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/dbgac/rsfromepg.py | 857baf4940ff69594982fe829e028d01e3e1d557 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,594 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
4b52b6b9730607564cb4bb97e081a34ed237d59b | 871dddb5c8059d96b767a323b0f87d3fbb62e786 | /test/unit/vint/ast/plugin/scope_plugin/test_scope_detector.py | 9b57c816b88abb523c7f5ccfecb0d56e9ce5d76b | [
"MIT"
] | permissive | msabramo/vint | 6ef12ed61d54d0d2b2a9d1da1ce90c0e2c734ab2 | f13569f2a62ff13ff8ad913e7d6fb2c57953af20 | refs/heads/master | 2023-08-24T01:20:14.699485 | 2014-12-31T18:28:59 | 2014-12-31T18:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,134 | py | import pytest
from vint.ast.node_type import NodeType
from vint.ast.plugin.scope_plugin.scope_detector import ScopeDetector, ScopeVisibility as Vis
from vint.ast.plugin.scope_plugin.identifier_classifier import (
IDENTIFIER_ATTRIBUTE,
IDENTIFIER_ATTRIBUTE_DYNAMIC_FLAG,
IDENTIFIER_ATTRIBUTE_DEFINITION_FLAG,
... | [
"yuki.kokubun@mixi.co.jp"
] | yuki.kokubun@mixi.co.jp |
cf8cd812164f4022a58ebe2f98f32461359c3c54 | 830acb926cc5cf5a12f2045c8497d6f4aa1c2ef2 | /Hangman/Problems/Markdown heading/task.py | 0dade62780dd97612ca478a683d4cbd91f967a34 | [] | no_license | BuyankinM/JetBrainsAcademyProjects | ca2223875ea4aab3ee7fceedc8e293bdb6e1fdcf | d5f9fcde4298af714960b2755f762141de796694 | refs/heads/main | 2023-02-26T05:47:26.070972 | 2021-02-03T22:10:53 | 2021-02-03T22:10:53 | 335,762,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | def heading(sym, num=1):
num = max(num, 1)
num = min(num, 6)
return f"{'#' * num} {sym}" | [
"mbuyankin@gmail.com"
] | mbuyankin@gmail.com |
f09e09b066b83eb93839703b12f7fe62adf4b05a | 8be3fbe41873b5682eed4da3aab93be657a893bc | /nested_admin/tests/three_deep/tests.py | a25c53f636b475f837708e24585fcaee22e597d2 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | theKomix/django-nested-admin | 0b5f10b88928dc3167a720cf9a36f2ffe428cba7 | 2bfed729ba17bc69e4fe98d4a672b6b34186ae0f | refs/heads/master | 2020-03-30T12:03:51.430420 | 2018-12-26T05:24:04 | 2018-12-26T05:24:04 | 151,206,354 | 0 | 1 | NOASSERTION | 2018-12-07T15:11:31 | 2018-10-02T05:49:00 | Python | UTF-8 | Python | false | false | 4,893 | py | from nested_admin.tests.base import BaseNestedAdminTestCase
from .models import TopLevel, LevelOne, LevelTwo, LevelThree
class TestDeepNesting(BaseNestedAdminTestCase):
root_model = TopLevel
nested_models = (LevelOne, LevelTwo, LevelThree)
@classmethod
def setUpClass(cls):
super(TestDeepNest... | [
"fdintino@theatlantic.com"
] | fdintino@theatlantic.com |
cb3b6dee35a6278db9f968b94e96589d790b669c | 699a43917ce75b2026a450f67d85731a0f719e01 | /comonprefix/venv/Scripts/pip3.7-script.py | e913bfc5f695c5d68e2ba38d50ad1f005852ef42 | [] | no_license | wusanshou2017/Leetcode | 96ab81ae38d6e04739c071acfc0a5f46a1c9620b | c4b85ca0e23700b84e4a8a3a426ab634dba0fa88 | refs/heads/master | 2021-11-16T01:18:27.886085 | 2021-10-14T09:54:47 | 2021-10-14T09:54:47 | 107,402,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | #!E:\lc\comonprefix\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.7'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"252652905@qq.com"
] | 252652905@qq.com |
20acc266a70d5447f23a333ff82231fd7cc9eac7 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/version_type_enumeration.py | 0e80ef2e2f270f90f4bcec2a491a896e7d6de716 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 155 | py | from enum import Enum
__NAMESPACE__ = "http://www.netex.org.uk/netex"
class VersionTypeEnumeration(Enum):
POINT = "point"
BASELINE = "baseline"
| [
"chris@komposta.net"
] | chris@komposta.net |
336c4ceef935ca67574f23848288f7334f4204ed | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/ZYXEL-RIP-MIB.py | a6c50ee23acbafeec25fe60539a149260b145846 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 4,835 | py | #
# PySNMP MIB module ZYXEL-RIP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-RIP-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:51:35 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
7b4bb588bf1cf9c6d114bd85d3027e99acdfd100 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-emr/aliyunsdkemr/request/v20160408/CreateClusterTemplateRequest.py | bc26ad850899542168d338eb9f7452070bb222f1 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 14,454 | 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 u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ec9afabfdd6a3fb5b54dcd3df3f3f3a0b67ae01e | a76790fa5f4eb96a8b731f891ca1aa4c16d21256 | /azext_iot/dps/providers/discovery.py | 433c7fe8409c6128ccc6fbaf4f22840408eae3da | [
"MIT"
] | permissive | digimaun/azure-iot-cli-extension | 414fb1c7c22b0f0d0891cd30c28d13366b9f7207 | 9999c536bbf67251d863d365c190866e1d5cc1ad | refs/heads/dev | 2023-06-24T09:42:51.069627 | 2022-12-14T23:29:58 | 2022-12-14T23:29:58 | 579,177,610 | 1 | 0 | NOASSERTION | 2022-12-16T21:25:31 | 2022-12-16T21:25:31 | null | UTF-8 | Python | false | false | 3,899 | py | # coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# -----------------------------------------------------... | [
"noreply@github.com"
] | digimaun.noreply@github.com |
b2e416b830f8a762c57a51d0493a629a1344ef3f | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /dockerized-gists/7c04cc141bd3fc5f0ce1/snippet.py | 4a77c7cc3e4f198f1906ec927652c704233af5b1 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 2,740 | py | def _download(host, creds, fp):
chunk_size = 512 * 1024
headers = {
'Content-Type': 'application/octet-stream'
}
filename = os.path.basename(fp)
uri = 'https://%s/mgmt/cm/autodeploy/software-image-downloads/%s' % (host, filename)
requests.packages.urllib3.disable_warnings()
with op... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
7fab1106e8d7ce276f3cfbbdf00034e458456586 | 37568c3e0e8ad4f342adb53c02d08283d553bc95 | /pyservos/protocol2.py | 547ee49f382cc5b533b9db6a5a670b55d190910b | [
"MIT"
] | permissive | MultipedRobotics/pyservos | c39bb3da3e57890fa68432b6f500b0a742cb896b | 26691ab8dd541dbbe4660c73b025ebe6b085e2fc | refs/heads/master | 2023-03-25T13:29:47.343650 | 2021-03-25T01:04:36 | 2021-03-25T01:04:36 | 121,900,021 | 6 | 4 | MIT | 2021-03-25T01:04:37 | 2018-02-17T23:02:25 | Python | UTF-8 | Python | false | false | 11,888 | py | from enum import IntFlag
from pyservos.utils import angle2int, le
from pyservos.common import ResetLevels
# ResetLevels = IntFlag('ResetLevels', 'all allButID allButIDDR')
crc_table = [
0x0000, 0x8005, 0x800F, 0x000A, 0x801B, 0x001E, 0x0014, 0x8011,
0x8033, 0x0036, 0x003C, 0x8039, 0x0028, 0x802D, 0x8027, 0x00... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
d0650ff6942b772d3ceb8e2f766ec26f000c88c9 | 0d15e76677f3bf97d21978e73292f0d5c535ebac | /spacy/en/language_data.py | 3c9db8fe2386b2f759130f0b5b16bdb093197839 | [
"MIT"
] | permissive | ExplodingCabbage/spaCy | 62c1adf7a588827f32c16bc990d70f1cfe2b56c2 | 001abe2b9d6690fcd7e7b96242bb1b9cee0f5784 | refs/heads/master | 2020-07-02T22:14:02.890909 | 2016-11-20T02:45:51 | 2016-11-20T02:45:51 | 74,277,675 | 1 | 0 | null | 2016-11-20T13:58:26 | 2016-11-20T13:58:24 | null | UTF-8 | Python | false | false | 63,126 | py | # encoding: utf8
from __future__ import unicode_literals
# improved list from Stone, Denis, Kwantes (2010)
STOP_WORDS = set("""
a about above across after afterwards again against all almost alone
along already also although always am among amongst amoungst amount
an and another any anyhow anyone anything anyway an... | [
"honnibal+gh@gmail.com"
] | honnibal+gh@gmail.com |
fdfe941f2d276a821a9342bce3e3e89214a7ecfe | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v7/resources/types/video.py | da5d5c3d0b355e480d86c2f921f4d36b37f58b30 | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 1,756 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
4728768877333c9060e01d5d66cd0b2dc8cd58e2 | 74f04d78486d4986e4f0ef8c3bc480ba00caae4a | /articles/models.py | c9ee25d3e4b0b92deaea58fc10f1b49de02c4ee6 | [] | no_license | kimjy392/reboot-django | e24dd90182ee5d317bf13872ae169ac738a71c6c | 4280c7bffacd759a1b785ae576e9e89a0c2269d8 | refs/heads/master | 2022-12-10T12:18:38.422146 | 2019-10-28T01:12:41 | 2019-10-28T01:12:41 | 207,240,898 | 0 | 10 | null | 2022-12-08T06:13:37 | 2019-09-09T06:36:38 | Python | UTF-8 | Python | false | false | 594 | py | from django.db import models
# Create your models here.
class Reporter(models.Model):
name = models.CharField(max_length=20)
class Article(models.Model):
title = models.CharField(max_length=50)
content = models.TextField()
image = models.ImageField()
created_at = models.DateTimeField(auto_now_add... | [
"kimjy392@gmail.com"
] | kimjy392@gmail.com |
2f14e4dbbb349aed3998968c565c70758358ae4e | 23f73a7a0c0ced134f6c18bb9c200617ce31f1d5 | /src/fauxmo/handlers/hass.py | 6b72bc98a0323f0764aee236d59e2be04d96d90a | [
"MIT"
] | permissive | clach04/fauxmo | f586d0024648f3da6d2ff38b8fe06fdb345bcfbd | 06a0b8ff20f4811de9ac08663e0d76f8fdd83764 | refs/heads/master | 2021-11-27T19:13:36.583893 | 2016-07-22T13:02:39 | 2016-07-22T13:02:39 | 66,683,609 | 2 | 0 | null | 2016-08-26T22:42:52 | 2016-08-26T22:42:52 | null | UTF-8 | Python | false | false | 2,671 | py | # -*- coding: utf-8 -*-
import homeassistant.remote
from homeassistant.const import (SERVICE_TURN_ON, SERVICE_TURN_OFF,
SERVICE_MOVE_UP, SERVICE_MOVE_DOWN)
class HassAPIHandler:
"""Handler for Home Assistant (hass) Python API.
Allows users to specify Home Assistant services i... | [
"nate@n8henrie.com"
] | nate@n8henrie.com |
0554e077b0db3b39fc887e6b4986a336cc20fc9a | 6a7d8b67aad59c51dafdfb8bcffd53864a3d65b0 | /LintCode/inorderSuccessorBST.py | 4967d1c45481e78e4f3fb69538a9e2576d98cf12 | [] | no_license | dicao425/algorithmExercise | 8bba36c1a08a232678e5085d24bac1dbee7e5364 | 36cb33af758b1d01da35982481a8bbfbee5c2810 | refs/heads/master | 2021-10-07T08:56:18.030583 | 2018-12-04T05:59:17 | 2018-12-04T05:59:17 | 103,611,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | #!/usr/bin/python
import sys
"""
Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
"""
class Solution:
"""
@param: root: The root of the BST.
@param: p: You need find the successor node of p.
@... | [
"di.cao425@gmail.com"
] | di.cao425@gmail.com |
2261cf66860e5e03da76218a1e66eb199a78667d | fc66f771e95ee36cd502d3cf7220794e6f263226 | /src/utils/at.py | ca3ac83c786efd55252a4fe7853b8b4d9a002805 | [
"MIT"
] | permissive | yuanniufei/IncetOps | 2bcb7851514f3db6bc409746d245da08032ecc06 | e21185a4931a10996a187e63f4487b4402544c69 | refs/heads/master | 2020-03-25T20:50:02.339329 | 2018-08-09T07:35:02 | 2018-08-09T07:35:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,639 | py | # -*- coding: utf-8 -*-
"""
IncetOps.utils.at
~~~~~~~~~~~~~~
AES加密的实现模式CBC。
CBC使用密码和salt(起扰乱作用)按固定算法(md5)产生key和iv。然后用key和iv(初始向量,加密第一块明文)加密(明文)和解密(密文)。
:copyright: (c) 2018 by staugur.
:license: MIT, see LICENSE for more details.
"""
from Crypto.Cipher import AES
from binascii im... | [
"staugur@vip.qq.com"
] | staugur@vip.qq.com |
4e107f975e9b205c04868eafff741a552f4302c0 | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/gos_20200614060821.py | 3db5babdabe6fb83a5ab594602a18e4fa77fbc59 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,896 | py | # # Імпорт фажливих бібліотек
# from BeautifulSoup import BeautifulSoup
# import urllib2
# import re
# # Створення функції пошуку силок
# def getLinks(url):
# # отримання та присвоєння контенту сторінки в змінну
# html_page = urllib2.urlopen(url)
# # Перетворення контенту в обєкт бібліотеки BeautifulSoup
#... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
225cc84d1b8df33afa6b99407f6dad6ab6b09f7f | 1d007e58c7739f36bdb85cb9aa13b3f4584cdfb9 | /day1/day1/urls.py | 28f2a39c7c890b2c071f918d1dcef7609bddfad4 | [] | no_license | rahuladream/Django-Challenge | 65410f053c06f2556628b449b817244dac32e1ac | 0b81a6b69b743799f3d8562d6ec784950980716c | refs/heads/master | 2020-06-14T14:19:54.370195 | 2019-07-03T13:02:07 | 2019-07-03T13:02:07 | 195,024,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | """day1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"rahul.singh4800@gmail.com"
] | rahul.singh4800@gmail.com |
1f638f6038f33df2aa4f2e79d8b32c4280c955fd | 3db8bc4c7297895c687be374a206b63d5d329e5e | /Python3/019_Remove_Nth_Node_From_End_of_List.py | 0d1d00b05fb6965d0c5f5762555d56236207eb67 | [
"MIT"
] | permissive | Jian-jobs/Leetcode-Python3 | dd06d3238b69ae1419754810dec68705d3344a41 | f2d3bb6ecb7d5d0bca4deaed26162fbe0813a73e | refs/heads/master | 2020-05-15T00:59:28.160898 | 2018-11-16T04:44:32 | 2018-11-16T04:44:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #!usr/bin/env python3
# -*- coding:utf-8 -*-
'''
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try ... | [
"gzr2008@vip.qq.com"
] | gzr2008@vip.qq.com |
eed66ce765aa9eae0228a51ffc68c16ad9405ae4 | 1816378da612c7db376934b033e4fd64951338b6 | /gui/jails/migrations/0007_add_model_JailTemplate.py | dc21d06fbe871543b3648239738a169c72011b35 | [] | no_license | quater/freenas-9.2-xen | 46517a7a23546764347d3c91108c70a8bd648ec6 | 96e580055fa97575f0a0cb23a72495860467bcfb | refs/heads/master | 2021-01-16T22:21:38.781962 | 2014-02-07T05:59:13 | 2014-02-07T05:59:13 | 16,609,785 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,422 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
from freenasUI.jails.utils import get_jails_index
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'JailTemplate'
db.create_table(u'jails_jail... | [
"john@ixsystems.com"
] | john@ixsystems.com |
e2cb2c8e89a8b49e48345e5c5ac0b7f4d4038e0c | d913bac9fa42473aa8cee68c8ad8b4eba5484b89 | /Scripts/features/VoidTender_POS.py | 6f88141ad64358009955cec6efcfc5ed742ca805 | [] | no_license | priyatam0509/Automation-Testing | 07e7c18b4522976f0ade2b72bd46cffd55c5634e | d24805456e5a0126c036c1688a5d112bdcf4467a | refs/heads/main | 2023-02-26T19:07:41.761905 | 2021-01-30T10:13:34 | 2021-01-30T10:13:34 | 334,376,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,424 | py | """
File name: VoidTender_POS.py
Tags:
Description:
Author: Gene Todd
Date created: 2020-04-16 09:40:28
Date last modified:
Python Version: 3.7
"""
import logging, time
from app import Navi, mws, pos, system
from app.framework.tc_helpers import setup, test, teardown, tc_fail
class VoidTe... | [
"piyushpriya34@gmail.com"
] | piyushpriya34@gmail.com |
714f10f1cdf810ee577d228a32f31af48c09c4ca | 93e55f080779f16f47a7382a3fb0b29a4189e074 | /convertor/huawei/te/lang/cce/te_compute/conv3d_compute.py | 41cc76d90ec5f7cf33e700dfbfa39e91468a5d7b | [] | 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 | 29,385 | py | """
Copyright (C) 2020. 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 program is distributed in the hope that it will be ... | [
"jizr@connect.hku.hk"
] | jizr@connect.hku.hk |
de3a0c28cc1023aa05a34f5fd437c0431ba35fee | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/42142e465a234cfaa158392bdda680b9.py | 2e0e27725c2144af3babc0a50be01d1f5932c483 | [] | 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 | 353 | py | def is_leap_year(year):
if year % 4 == 0:
if year % 100 == 0:
if year % 400 == 0:
return True
return False
return True
return False
"""
on every year that is evenly divisible by 4
except every year that is evenly divisible by 100
unless the year is ... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b5e435d58d0527b0a10b2c3d2ddb08609b44daa9 | da9c4a9a92d49d2fb2983a54e0f64c2a1ce8aa19 | /symphony/cli/pysymphony/graphql/input/add_image.py | 8a71be0cda0a9d98d166adf96a4a1fc7a8c266e2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | rohan-prasad/magma | 347c370347724488215a0783504788eac41d8ec7 | 2c1f36d2fd04eae90366cc8b314eaab656d7f8ad | refs/heads/master | 2022-10-14T14:08:14.067593 | 2020-06-11T23:52:03 | 2020-06-11T23:54:27 | 271,671,835 | 0 | 0 | NOASSERTION | 2020-06-12T00:20:23 | 2020-06-12T00:17:39 | null | UTF-8 | Python | false | false | 748 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from dataclasses import dataclass
from datetime import datetime
from functools import partial
from gql.gql.datetime_utils import DATETIME_FIELD
from numbers import Number
from typing import Any, Callable, List, Mapping, Optional
from dataclasses_j... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ce7bfaf85f5e55097d06bc2990ecc1757aabd37a | 673f9b85708affe260b892a4eb3b1f6a0bd39d44 | /Botnets/Phases/Phase 2/Algorithms/Algorithms after PDG-2/PDG-2-Fase-2-ENV/lib/python3.6/site-packages/setuptools/sandbox.py | e46dfc8d25e8accf6fb08c13b878da1550e4738f | [
"MIT"
] | permissive | i2tResearch/Ciberseguridad_web | feee3fe299029bef96b158d173ce2d28ef1418e4 | e6cccba69335816442c515d65d9aedea9e7dc58b | refs/heads/master | 2023-07-06T00:43:51.126684 | 2023-06-26T00:53:53 | 2023-06-26T00:53:53 | 94,152,032 | 14 | 0 | MIT | 2023-09-04T02:53:29 | 2017-06-13T00:21:00 | Jupyter Notebook | UTF-8 | Python | false | false | 14,284 | py | import os
import sys
import tempfile
import operator
import functools
import itertools
import re
import contextlib
import pickle
import textwrap
from setuptools.extern import six
from setuptools.extern.six.moves import builtins, map
import pkg_resources.py31compat
from distutils.errors import DistutilsError
from pkg_... | [
"ulcamilo@gmail.com"
] | ulcamilo@gmail.com |
7c68e9555011e76ecb807ab9b5340bbc994a8aca | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_pkg_firewall_policy_vpndstnode.py | cc4c839796dde50386c6787ae3951a868ea8cab2 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 7,919 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2020 Fortinet, 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 ... | [
"sifang@cisco.com"
] | sifang@cisco.com |
02ab6ce4b0a5e3cc8f4857f83855687843f7324c | 29f65ef4059ba04c20558f3be36c06fe3879a8e6 | /c1/func.py | a173c0eafdf8e495d94cfb2dc8c14bfc80c1e2be | [] | no_license | kobe24shou/pythonwebdev | d9c912bd9304802069bc41345b054b065a173272 | c7c6c5af69e7d8783e5c8b15f75e9ca61ed6a03f | refs/heads/master | 2020-03-17T23:01:41.787573 | 2018-06-06T14:11:21 | 2018-06-06T14:11:21 | 134,028,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
def sum(x, y):
return x + y
def total(x, y, z):
sum_of_two = sum(x, y)
sum_of_three = sum(sum_of_two, z)
return sum_of_two, sum_of_three
# 定义了没有参数和返回值 的 main()函数
def main():
print("return of sum:", sum(4, 6))
x, y = total(1, 7, 10)
print("r... | [
"aishou24@gmail.com"
] | aishou24@gmail.com |
cc2f066e03ede1f54ac46b07dad2bb6621a03d10 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch149_2020_04_13_19_29_39_088791.py | 5364f78261dc18794532675b8b2199879ae98f9f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | salario_bruto = int(input('Seu salário bruto: '))
n_dependentes=int(input('Quantos dependentes: ' ))
def faixa(sal):
if sal <= 1045:
return 0.075
elif sal <= 2089.6:
return 0.09
elif sal <= 3134.4:
return 0.12
else:
return 0.14
if salario_bruto <= 6101.06:
b=sal... | [
"you@example.com"
] | you@example.com |
643d38c0512e082e8c9a7018af157e92220e51da | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/fabric/rsnodetechsupp.py | 700fdc371962997c14a296087490fee59112e394 | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 8,389 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
b5be03bae05e2c31bc7c6b3158b111ca8d5fc886 | 791ce6452fb555f953ed3adb1966b59abc7c2dbb | /arxiv_net/dashboard/assets/style.py | c359a7598a7dde951f38e4ceb3c9d495568f0370 | [] | no_license | mirandrom/arxiv-net | d63b76006d7cde62a4ba4e623ffa3971436455f5 | 86bdc7a878c8d1d4a0135ddd2785cb59ca638937 | refs/heads/master | 2023-03-21T13:37:30.567726 | 2019-12-05T23:25:24 | 2019-12-05T23:25:24 | 222,019,331 | 2 | 0 | null | 2021-03-20T02:10:29 | 2019-11-15T23:26:34 | Python | UTF-8 | Python | false | false | 1,468 | py | card_style = {
"box-shadow": "0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12), 0 2px 4px -1px rgba(0,0,0,0.3)"
}
BLUES = ["rgb(210, 218, 255)", "rgb(86, 117, 255)", "rgb(8, 31, 139)",
"rgb(105, 125, 215)", "rgb(84, 107, 208)",
"rgb(210, 210, 210)", "rgb(102, 103, 107)", "rgb(19, 23, 37... | [
"arialinvlad@gmail.com"
] | arialinvlad@gmail.com |
2aa7d7541d47bf6cbc5349b3cb975f5eb6b55412 | 29145db13229d311269f317bf2819af6cba7d356 | /may easy/maxVal.py | 91313d4b8983c93bfc3cfa232fbdb5c36ee8edff | [] | no_license | rocket3989/hackerEarth2019 | 802d1ca6fd03e80657cbe07a3f123e087679af4d | 42c0a7005e52c3762496220136cc5c1ee93571bb | refs/heads/master | 2021-07-05T01:32:42.203964 | 2020-12-22T03:40:20 | 2020-12-22T03:40:20 | 211,607,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py |
fib = [1, 1]
while True:
fib.append(fib[-1] + fib[-2])
if fib[-1] > 10 ** 18:
break
N = int(input())
for val in fib:
if val <= N:
continue
print(val)
break | [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
969d2be266219f2b062ad7111a43f44275354f4d | 13b2f7ca4bbad32b0ce7d547399e6097580ae097 | /bfs+dfs/1260_DFS와 BFS.py | f69616d0dba433892b0d30f2d1628280ae3b9b5c | [] | no_license | hksoftcorn/review | dadbd3a4ee7961282bfefd697a97f6ccf78dbe83 | 474aef3747c135c54322ff28261d2a6812a3d9a0 | refs/heads/master | 2023-06-17T05:41:50.178831 | 2021-07-11T23:30:27 | 2021-07-11T23:30:27 | 385,072,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | def dfs(v):
visited[v] = 1
for w in sorted(G[v]):
if not visited[w]:
dfs_path.append(w)
dfs(w)
def bfs(v):
visit = [0] * (N+1)
visit[v] = 1
Q = [v]
while Q:
current = Q.pop(0)
for w in sorted(G[current]):
if not visit[w]:
... | [
"hksoftcorn.dev@gmail.com"
] | hksoftcorn.dev@gmail.com |
1b03a8531d7533b57236f251b0c713bced9b5f50 | f2befaae3840bafd181cc712108e3b64caf2696f | /app/portal/horizon/openstack_dashboard/dashboards/admin/routers/tests.py | 557966985c38691b0549627c5fe8ece11b815e77 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | F5Networks/f5-adcaas-openstack | 17d5c408d421dcfe542002e1f850b2d9f29f1663 | 02bd8a606215c0fa08b926bac1b092b5e8b278df | refs/heads/master | 2023-08-28T12:09:54.972191 | 2022-08-12T02:03:43 | 2022-08-12T02:03:43 | 164,592,273 | 4 | 23 | Apache-2.0 | 2022-08-12T02:03:44 | 2019-01-08T07:40:35 | Python | UTF-8 | Python | false | false | 10,869 | py | # Copyright 2012, Nachi Ueno, NTT MCL, 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 applic... | [
"a.zong@f5.com"
] | a.zong@f5.com |
8e1117685899d2bf068c219a6f66312448e008ff | 9131dd03ff2880fca2a5883572784f8e51046e41 | /env/lib/python3.6/site-packages/clicksend_client/models/delivery_issue.py | 84f1503041f46cfe49989d1ade2142787157ff54 | [] | no_license | aviadm24/coronaap | fe10619ae42a8c839cd0a2c2c522187c5f21fbc7 | 5608c2d77cb3441b48ba51da04c06a187fb09488 | refs/heads/master | 2022-12-09T21:35:17.179422 | 2021-01-28T08:21:49 | 2021-01-28T08:21:49 | 249,938,200 | 0 | 0 | null | 2021-09-22T18:47:51 | 2020-03-25T09:36:10 | JavaScript | UTF-8 | Python | false | false | 7,502 | py | # coding: utf-8
"""
ClickSend v3 API
This is an official SDK for [ClickSend](https://clicksend.com) Below you will find a current list of the available methods for clicksend. *NOTE: You will need to create a free account to use the API. You can register [here](https://dashboard.clicksend.com/#/signup/step1... | [
"aviadm24@gmail.com"
] | aviadm24@gmail.com |
712ebb3e8e9c6daab9c2cd3b469cecab96797c6e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_godfather.py | 813d71c96e7c700883fb63b1932814bc31f99141 | [
"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 | 364 | py |
#calss header
class _GODFATHER():
def __init__(self,):
self.name = "GODFATHER"
self.definitions = [u'a male godparent', u'the leader of a criminal group, especially a mafia family']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, ob... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c064647cd1304d7aff89c6683cd29e2b315cfa1e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2863/60673/273869.py | 625083ae06703fe4379f18234384daf60c110ffb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # 围墙高h 第i个人高a[i] 平常走路宽度为1 弯腰2
n, h = input().split(" ")
a = input().split(" ")
n = int(n)
h = int(n)
for i in range(n):
a[i] = int(a[i])
walkNum = 0
bendNum = 0
for i in range(n):
if (a[i] <= h):
walkNum += 1
else:
bendNum += 1
print(walkNum + bendNum * 2)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
00256e1c2a75d6e2643d1a889bf9b296376e09eb | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Dsz/PyScripts/Lib/dsz/mca/file/cmd/put/type_Params.py | 7be73ef22b4325cbd9bcac9c3611c066cc82f983 | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: type_Params.py
from types import *
import array
PARAMS_CREATE_FLAG_PERMANENT = 1
class CreateParams:
def __init__(self):
self.__dict__[... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
13915155f7c20e488e358ce9a8fc7c78b8049d80 | 299fe2ca879e509798e95c00b7ba33914031f4a7 | /eruditio/shared_apps/django_userhistory/userhistory.py | 10aad86e7ff44123a9ea653ae8ca81813915a013 | [
"MIT"
] | permissive | genghisu/eruditio | dcf2390c98d5d1a7c1044a9221bf319cb7d1f0f6 | 5f8f3b682ac28fd3f464e7a993c3988c1a49eb02 | refs/heads/master | 2021-01-10T11:15:28.230527 | 2010-04-23T21:13:01 | 2010-04-23T21:13:01 | 50,865,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | from django_userhistory.models import UserTrackedContent
class UserHistoryRegistry(object):
"""
Registry for UserHistory handlers. Necessary so that only one
receiver is registered for each UserTrackedContent object.
"""
def __init__(self):
self._registry = {}
self._handlers = {}
... | [
"genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb"
] | genghisu@6a795458-236b-11df-a5e4-cb4ff25536bb |
cf7594d16439bef485cf4bb9c072a01bf8bafede | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/LineStyleColorModifier_Curvature_3D.py | 92d99c6cbf2195f90c35af6beed12322fa7454ae | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 50 | py | LineStyleColorModifier_Curvature_3D.type = None
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
e589e9b8d3a9feebdb918b5bc6c69646e2a2bba0 | 911d3ffa7f6687b7b2d5609f4d7bb1f907f1703a | /Conditional Statements - More Exercises/06. Pets.py | d518cc7b89d6286ab3fc57f9402ad4d4aa37db01 | [] | no_license | ivan-yosifov88/python_basics | 923e5ba5dcdc5f2288f012eeb544176d1eb964e9 | ee02f1b7566e49566f15c4285d92b04f8fa6a986 | refs/heads/master | 2023-03-05T21:49:24.191904 | 2021-02-24T12:36:03 | 2021-02-24T12:36:03 | 341,581,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from math import floor, ceil
number_of_days = int(input())
left_food = int(input())
dog_food = float(input())
cat_food = float(input())
turtle_food = float(input())
kilogram_food_eaten = number_of_days * (dog_food + cat_food + turtle_food / 1000)
difference = abs(left_food - kilogram_food_eaten)
if left_food >= kilogra... | [
"ivan.yosifov88gmail.com"
] | ivan.yosifov88gmail.com |
3f35f2a8b17f35df510599c29d815a6b083efd36 | ff5892487c262ce845a9996a282d3a2fdb1a3b15 | /URI_1254.py | 17a978a92191caec16353d8fd8ca9417daec8b41 | [] | no_license | dankoga/URIOnlineJudge--Python-3.9 | d424a47671f106d665a4e255382fc0ec3059096a | f1c99521caeff59be0843af5f63a74013b63f7f0 | refs/heads/master | 2023-07-15T08:32:11.040426 | 2021-09-03T13:27:17 | 2021-09-03T13:27:17 | 393,991,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | import re
while True:
try:
tag = input().lower()
except EOFError:
break
tag_replacement = input()
text = input()
text_replaced = []
index_begin = 0
index_end = 0
regex = re.compile(tag, re.IGNORECASE)
while index_end < len(text):
while index_end < len(text) ... | [
"dankoga2@gmail.com"
] | dankoga2@gmail.com |
7870f65dc0b7e24d9079a084ded746c988bdb9bb | 1bd3076902117867ec048210905195ba2aaaaa6b | /exercise/leetcode/python_src/by2017_Sep/Leet279.py | d70c3fe111c535970d12a2902656ed8da5306c9a | [] | no_license | SS4G/AlgorithmTraining | d75987929f1f86cd5735bc146e86b76c7747a1ab | 7a1c3aba65f338f6e11afd2864dabd2b26142b6c | refs/heads/master | 2021-01-17T20:54:31.120884 | 2020-06-03T15:04:10 | 2020-06-03T15:04:10 | 84,150,587 | 2 | 0 | null | 2017-10-19T11:50:38 | 2017-03-07T03:33:04 | Python | UTF-8 | Python | false | false | 809 | py | class Solution(object):
"""
my first dp code
"""
def __init__(self):
self.dpstate = [0, 1, 2, 3, ] + ([-1, ] * 10000)
def numSquares(self, n):
"""
:type n: int
:rtype: int
"""
res = self.dpRecursive(n, self.dpstate)
return res
def dpRecur... | [
"ziheng_song@126.com"
] | ziheng_song@126.com |
2eae42fa8e4b1dc07aa735f7b8fc312778f409cd | 4b4df51041551c9a855468ddf1d5004a988f59a2 | /leetcode_python/Array/rotate-function.py | 3d952365fd1c669f093f899be1b8236df3d9be1b | [] | no_license | yennanliu/CS_basics | 99b7ad3ef6817f04881d6a1993ec634f81525596 | 035ef08434fa1ca781a6fb2f9eed3538b7d20c02 | refs/heads/master | 2023-09-03T13:42:26.611712 | 2023-09-03T12:46:08 | 2023-09-03T12:46:08 | 66,194,791 | 64 | 40 | null | 2022-08-20T09:44:48 | 2016-08-21T11:11:35 | Python | UTF-8 | Python | false | false | 4,546 | py | """
396. Rotate Function
Medium
You are given an integer array nums of length n.
Assume arrk to be an array obtained by rotating nums by k positions clock-wise. We define the rotation function F on nums as follow:
F(k) = 0 * arrk[0] + 1 * arrk[1] + ... + (n - 1) * arrk[n - 1].
Return the maximum value of F(0), F(1)... | [
"f339339@gmail.com"
] | f339339@gmail.com |
e6ac0a4377f1efeaa6ced9a1f60ff1064ee4f9d5 | 48894ae68f0234e263d325470178d67ab313c73e | /sa/apps/mrt/views.py | 2436dec1eafdb325d310c8be9f817091229bae4b | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 4,323 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## sa.mrt application
##----------------------------------------------------------------------
## Copyright (C) 2007-2011 The NOC Project
## See LICENSE for details
##--------------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
398e431632ab1e171a30c473667a6229cbf94728 | 76b983258793d294b81791ebe72591bfebf78625 | /lib/ia32/optable.py | 314689b3d1c369c472d481e50573e58dabea9a73 | [
"BSD-2-Clause"
] | permissive | lotusexpeditor/syringe | 18ac9cb800a7fefb7d67e31936db6a84e47df9eb | 34a8386b90f534f9a856d0a436bba04dbf5100bd | refs/heads/master | 2023-02-08T10:08:20.295797 | 2020-12-27T00:06:09 | 2020-12-27T00:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | from ._optable import OperandLookupTable
from . import typesize
def Lookup(opcode):
'''Lookup specified opcode in the lookup table'''
res = ord(opcode[0])
if res == 0x0f:
res = ord(opcode[1])
return OperandLookupTable[res+0x100]
return OperandLookupTable[res]
def HasModrm(lookup):
... | [
"arizvisa@gmail.com"
] | arizvisa@gmail.com |
43cd83767fb5b114eb726ddf99e8ae561d91adf5 | aa0270b351402e421631ebc8b51e528448302fab | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_06_02_preview/aio/operations/_maintenance_configurations_operations.py | e03f2a6cb9fe01b22e856323445e0d162f7c457d | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 19,860 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
418128e933eadf203bb45c157fb1159c2f0fd3fc | 04c21e01c7dd002d0d66f26f17294bbe25ab30c1 | /src/core/serializers/authentication/reset_password.py | 0e0b5a6f90c5a3f1927d314da4b45df747402d19 | [] | no_license | unbrokenguy/Q-n-A-rest-api | 29d1a7614d761bf68f38bbbbbd731c3692afccf7 | dd483993e304d6660c8c8f7518bf7414efd8ec28 | refs/heads/master | 2023-06-03T20:19:52.606677 | 2021-06-18T09:35:27 | 2021-06-18T09:35:27 | 376,749,787 | 0 | 0 | null | 2021-06-18T09:35:27 | 2021-06-14T08:08:44 | Python | UTF-8 | Python | false | false | 394 | py | from rest_framework import serializers
from core.models import User
class ResetPasswordSerializer(serializers.ModelSerializer):
"""
Reset password serializer check if new password is strong enough if not raises ValidationError.
"""
class Meta:
model = User
fields = ["password"]
... | [
"khazievbulatphanzilovich@gmail.com"
] | khazievbulatphanzilovich@gmail.com |
7718f80d703242913200b6318bd12354622ff8e1 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-loganalytics/azure/mgmt/loganalytics/operations/__init__.py | b9ace78ff9b74043c8e8e5253b7611a5e4bd9da3 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 952 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
c3a88a91df0ca6dd325fb81f7f3f25b014e2a78d | 44b455e1d02445954382ef1d40be41b7798700a1 | /async_request/tornado_request.py | de8b957897f97dcc138d423b81f977d6163bbeb8 | [] | no_license | anstones/Mylib | 58a9f49a784f9dce7ab2053020f5ac754f3203ee | c21a28d9a34cf8c71ad290d61034365fb86bdc86 | refs/heads/master | 2020-08-19T12:51:40.647523 | 2019-11-18T14:19:29 | 2019-11-18T14:19:29 | 215,921,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,589 | py | # coding: utf-8
import json as _json
import urllib.parse
import mimetypes
from functools import partial
from tornado.httpclient import AsyncHTTPClient
from tornado.httpclient import HTTPRequest, HTTPResponse
from tornado import gen
from lib.exceptions import CallServiceException
from lib.utilities import get_unique_id... | [
"stone3790@163.com"
] | stone3790@163.com |
234f603a62fbcfc25412c15d4df79e54e6129073 | 60f95eff7c43f788af2420813c371152c1e2e5eb | /hulk/broker/oanda/common/constants.py | b37ffd670df513efa144a0da60298fba8d27b29e | [
"BSD-3-Clause"
] | permissive | webclinic017/hulk | 1667c508acb061a8120dc415978a72e83dc38f54 | de326ca1554dc743e225cef4e4b1e2fd4f5090c6 | refs/heads/master | 2022-03-22T20:07:23.276317 | 2019-12-02T01:10:43 | 2019-12-02T01:11:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from ....base.models import AccountType
OANDA_ENVIRONMENTS = {
"streaming": {
AccountType.REAL: "stream-fxtrade.oanda.com",
AccountType.DEMO: "stream-fxpractice.oanda.com",
},
"api": {
AccountType.REAL: "api-fxtrade.oanda.com",
AccountType.DEMO: "api-fxpractice.oanda.com",... | [
"dev@luotao.net"
] | dev@luotao.net |
cc53f060d460eb0ef9a0249b2bb6c1c52008ea64 | bf8d344b17e2ff9b7e38ad9597d5ce0e3d4da062 | /ppdet/optimizer/optimizer.py | 2d0714078eec14dadd57f5689ae6a41039562202 | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleDetection | e7e0f40bef75a4e0b6dcbacfafa7eb1969e44961 | bd83b98342b0a6bc8d8dcd5936233aeda1e32167 | refs/heads/release/2.6 | 2023-08-31T07:04:15.357051 | 2023-08-18T02:24:45 | 2023-08-18T02:24:45 | 217,475,193 | 12,523 | 3,096 | Apache-2.0 | 2023-09-10T10:05:56 | 2019-10-25T07:21:14 | Python | UTF-8 | Python | false | false | 12,296 | py | # Copyright (c) 2019 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
4e86e0e6ff825aaff5a9add1e218622ecce984ed | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/batch/jm/parser_errors_2/185179947.py | 546d93745ac3129f50e6b4ee8ebd53a7475e4971 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 916 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 185179947
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 2, 2, 2)
assert board is... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
ba97b518db15458fb817d0b872d2356510abc92f | df8438656cc2b15001a03d02949abec9a374cb6f | /test/normalizer_issue_files/E72.py | c39cacc09c68bb48fdc7e3972843eaa5190fa3fb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | gandhis1/parso | 65fcc7540eb2664691b1ed12203faa617995c4ce | 7b166db0b5b0b46a3b8b2f1ea5c9dcf57bc36197 | refs/heads/master | 2021-01-25T04:36:15.558393 | 2017-06-05T23:20:12 | 2017-06-05T23:20:12 | 93,455,487 | 0 | 0 | null | 2017-06-05T23:18:20 | 2017-06-05T23:18:20 | null | UTF-8 | Python | false | false | 1,089 | py | #: E721
if type(res) == type(42):
pass
#: E721
if type(res) != type(""):
pass
import types
if res == types.IntType:
pass
import types
#: E721:3
if type(res) is not types.ListType:
pass
#: E721:7 E721:35
assert type(res) == type(False) or type(res) == type(None)
#: E721:7
assert type(res) == ty... | [
"davidhalter88@gmail.com"
] | davidhalter88@gmail.com |
f960787efb67b91348af709a474548bd3c83a751 | 99f145ac3a1b9192e54c114379f16bf992781251 | /venv/lib/python2.7/site-packages/pandas/tests/plotting/test_series.py | 6878ca0e1bc0618a0b53b0b7d150206acc962c7e | [
"MIT"
] | permissive | dushyantRathore/Cricket-API | 0a7df84f9760090e8a24dc61689e63e123c33d1f | d28bc5e6c613052793117e3dbd9035e4540901bb | refs/heads/master | 2021-03-24T10:18:58.362716 | 2020-07-08T17:52:38 | 2020-07-08T17:52:38 | 79,565,447 | 3 | 1 | MIT | 2018-10-01T19:16:47 | 2017-01-20T14:24:08 | Python | UTF-8 | Python | false | false | 30,920 | py | #!/usr/bin/env python
# coding: utf-8
import nose
import itertools
from datetime import datetime
import pandas as pd
from pandas import Series, DataFrame, date_range
from pandas.compat import range, lrange
import pandas.util.testing as tm
from pandas.util.testing import slow
import numpy as np
from numpy.random imp... | [
"dushyant.bgs@gmail.com"
] | dushyant.bgs@gmail.com |
6a18f0ae5be54533a66e3eca6087ba0b206673dc | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/saddle-points/3a5b8c06b75443c1ba4f3e45cd0ac791.py | bc8cf755d9ace6afd58ad1d6751c8c089df1218d | [] | 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 | 496 | py | def saddle_points(mat):
spoints = set()
if mat:
rowLen = len(mat[0])
for row in mat:
if len(row) != rowLen:
raise ValueError("Irregular matrix. All rows must be the same length.")
for i, row in enumerate(mat):
for j in range(rowLen):
... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
8a2c478a7c55bd6e17bdb6130aaa087cc8b4487b | 46035631e6d76ddea73603fcf139290f5cb4a991 | /aws-python/__main__.py | dfb3e5a12cc77cf4fba6391e7fa0f6e30b3084db | [
"Apache-2.0"
] | permissive | pulumi/templates | c6150fd66d5ba85a312d9ee3102ed456abebda8b | 7c18d24ed7a4e0f5e00801bc133bb19dae630ee3 | refs/heads/master | 2023-08-21T12:46:56.389767 | 2023-08-04T20:36:26 | 2023-08-04T20:36:26 | 124,577,647 | 66 | 52 | Apache-2.0 | 2023-09-13T00:07:57 | 2018-03-09T18:21:12 | Go | UTF-8 | Python | false | false | 219 | py | """An AWS Python Pulumi program"""
import pulumi
from pulumi_aws import s3
# Create an AWS resource (S3 Bucket)
bucket = s3.Bucket('my-bucket')
# Export the name of the bucket
pulumi.export('bucket_name', bucket.id)
| [
"noreply@github.com"
] | pulumi.noreply@github.com |
c4e918875ec7a2958629ca6a8d541407018065d7 | 01b1a86160eca8c948c80ef506da00ecebe1b933 | /gerapy_auto_extractor/helpers.py | be5a131196cf20284049814772a471f03e95f487 | [
"Apache-2.0"
] | permissive | downdawn/GerapyAutoExtractor | 0b23d10761576a2ebe6b81332dc1ba914fe3e78d | e7085264244aede0207de2641302f79bba42edf5 | refs/heads/master | 2023-06-24T08:54:05.772440 | 2021-07-24T18:29:07 | 2021-07-24T18:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from gerapy_auto_extractor.utils.helper import jsonify, content
| [
"cqc@cuiqingcai.com"
] | cqc@cuiqingcai.com |
e4910e73c04302fba1ca073f461f43827a177146 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03067/s724811425.py | b3ebbb168ee4d506128efbef3cb4cafbd8f7d694 | [] | 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 | 66 | py | a,b,c=map(int,input().split())
print(["No","Yes"][a>c>b or a<c<b]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2aca85423c446bc02c5316174601aea98f11d8bb | 1aa61c09db8e37bb6e9e3f8144c6f82a61af8f31 | /mergify_engine/github_types.py | c1f33fc79a421fdb4dde3945c53e93c6c2a12b80 | [
"Apache-2.0"
] | permissive | HarshCasper/mergify-engine | 15460e813eadaaebeeb5942dd07c9dbc8bd18c5b | 02d0a682c14db1c3fefeef4895645161cbb40f4f | refs/heads/master | 2023-02-25T10:51:59.853549 | 2021-01-25T07:17:25 | 2021-01-25T07:17:25 | 332,657,373 | 0 | 0 | Apache-2.0 | 2021-01-25T07:17:26 | 2021-01-25T06:55:32 | Python | UTF-8 | Python | false | false | 10,038 | py | # -*- encoding: utf-8 -*-
#
# Copyright © 2020 Mergify SAS
#
# 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 applicabl... | [
"37929162+mergify[bot]@users.noreply.github.com"
] | 37929162+mergify[bot]@users.noreply.github.com |
684fc7ef464c7a993ed509a48263880dc368f563 | 8d79fc03f6e5a6df41e824c8573d3ea4646146bf | /IB_Tree_PathSum_if_Exists.py | e0c2d820da30e788bdd1a62a83ce8e103a92d034 | [] | no_license | Cbkhare/Codes | 3bea294dd0f2ec99e7e0ef0b7ff976cbe1765b7f | 5b535795cdd742b7810ea163e0868b022736647d | refs/heads/master | 2021-10-24T03:26:54.983073 | 2019-03-21T14:33:41 | 2019-03-21T14:33:41 | 111,226,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | class Solution:
# @param A : root node of tree
# @param B : integer
# @return an integer
def hasPathSum(self, A, B):
if not A: return 0
def validate(node, some):
#print (node.val, some)
if node.left == node.right == None:
if node.val==some:
... | [
"Chitrabasukhare89@gmail.com"
] | Chitrabasukhare89@gmail.com |
6fae06163498067858f995086c69e2c86473bfc5 | 9876a02fb4f6c38271e41995296c6da4d2ec84af | /wagtail_review/templatetags/wagtailreview_tags.py | 0f6c7e5ea88157336aa4fe725a39f1f39153a035 | [
"BSD-3-Clause"
] | permissive | jacobtoppm/wagtail-review | 423c19cecfa17ddeb22de6bb2a34baad0cd10fdb | 23b81d7e5699ecb843a99da1aa207775a8b85bd6 | refs/heads/master | 2020-12-27T18:26:42.182847 | 2019-05-20T11:29:16 | 2019-05-20T11:29:16 | 238,005,148 | 0 | 0 | BSD-3-Clause | 2020-03-13T10:44:00 | 2020-02-03T16:05:08 | null | UTF-8 | Python | false | false | 1,172 | py | from django import template
from wagtail_review.forms import ResponseForm
register = template.Library()
@register.inclusion_tag('wagtail_review/annotate.html', takes_context=True)
def wagtailreview(context):
request = context['request']
review_mode = getattr(request, 'wagtailreview_mode', None)
reviewer... | [
"matt@west.co.tt"
] | matt@west.co.tt |
18a16704f66dd1d340db3c65e8ea06fa3b6b70cd | 59f64b5cf799e31c97b11828dba4787afb8f3f17 | /hail/python/hail/ggplot/aes.py | 5497f28d4d22e7863d89af491b89520fe20e5f4b | [
"MIT"
] | permissive | hail-is/hail | 2089e6f3b38548f13fa5c2a8ab67f5cfdd67b4f1 | 07a483ae0f46c66f3ed6fd265b48f48c06298f98 | refs/heads/main | 2023-09-01T15:03:01.450365 | 2023-09-01T02:46:35 | 2023-09-01T02:46:35 | 45,069,467 | 913 | 262 | MIT | 2023-09-14T21:53:32 | 2015-10-27T20:55:42 | Python | UTF-8 | Python | false | false | 1,112 | py | from collections.abc import Mapping
from hail.expr import Expression
from hail import literal
class Aesthetic(Mapping):
def __init__(self, properties):
self.properties = properties
def __getitem__(self, item):
return self.properties[item]
def __len__(self):
return len(self.prope... | [
"noreply@github.com"
] | hail-is.noreply@github.com |
cffd05aad6e7ec0a8b97f7e2970e5b764364375f | 2ac0e1ca51c473bba04bb08ea3be2015063a6a13 | /galmeko/hospital/models.py | 99b33f90648b820ca4d8c879fc1956e7d0906004 | [] | no_license | guarav00009/Gaurav-Pandey-Latest | 2012aafe643e1fcc915626422e352d1e4411905a | aa38a47a46bc434f5ec608fde5eec0f0f58259b9 | refs/heads/master | 2020-12-22T10:03:17.325527 | 2020-01-28T13:53:52 | 2020-01-28T13:53:52 | 236,746,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | from django.db import models
from django.utils.translation import gettext_lazy as _
from django.conf import settings
from django.utils.html import format_html
from django.template.response import TemplateResponse
User = settings.AUTH_USER_MODEL
# Create your models here.
class Hospital(models.Model):
user = models... | [
"gauravp@clavax.com"
] | gauravp@clavax.com |
6644f5d39c16c8085f33054bbbdde0e525062265 | 3c2323929499a4d81adada6f60ee64bde1e86cb2 | /Simple_Backpropagation_Program/pytorch/views.py | ad9420f44e05bb17b3ef53f819f0390a0c1d09d5 | [] | no_license | GeonwooVincentKim/Backpropagation_Pytorch_Django | 8ba22bb065aca35fed114420b749bb9f0a383688 | 41df659956e5e4e8126b272bd4f5053cdeb30663 | refs/heads/master | 2022-11-22T06:44:27.901139 | 2020-07-16T14:01:06 | 2020-07-16T14:01:06 | 273,230,382 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'index.html', {})
def sub(request):
# if request.method == 'POST':
# """
# Write down some code which is related to
# the number that you input.
# """
# """
# ... | [
"kdsnop@gmail.com"
] | kdsnop@gmail.com |
07db860fc6de84b931e4b270036c770e99f84c94 | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/chat/consumers_20210427011737.py | 8bc854916d684ee4e430ad24a1f2c472b16dc6f0 | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | import json
from channels.generic.websocket import WebsocketConsumer
| [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
68e429904fe72245794c1b21b63e11df67f9ce97 | cb13037cdbd3e0ab6108670108e9497cc1e2a5a7 | /0.leetcode/0.基本的算法/4.排序/1.冒泡排序Bubblesort.py | 87ddbad13767a3782c1a06daaf71a3b8bf67122c | [] | no_license | GMwang550146647/network | 390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce | 576de9b993f7763789d25a995702b40c9bc6fa57 | refs/heads/master | 2023-06-15T04:42:54.306077 | 2021-07-12T06:06:02 | 2021-07-12T06:06:02 | 315,488,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | '''
1.冒泡排序:
把最大的数一个一个地丢到最前面(期间对比的时候,见到比自己小的就交换相邻两个)
优点:
在非顺序链表都可以用
'''
def bubbleSort(arr):
for i in range(len(arr)-1,0,-1):
for j in range(1,i+1):
if arr[j-1]>arr[j]:
arr[j],arr[j-1]=arr[j-1],arr[j]
return arr
def bubbleSortModified(arr):
for i in range(len(arr)-1,0,-1)... | [
"gmwang_global@qq.com"
] | gmwang_global@qq.com |
349ea6ce098e264d8c03d7b91b59e71dad2c0350 | d15eb2285895469a452867f76b033d0d64a4af5c | /Old_scripts_delete_20220804/Scripts/measurements/vna_autler_townes.py | 7d51bf373377dba1857bae3f809c5d6dc426d33d | [] | no_license | MRitter95/Kollar-Lab | 45ac62ed7805ad9faeeb33b54be50f39950f3b2c | c905725c43af6a49fe5bb2a994d5180f2ba469c2 | refs/heads/master | 2023-08-19T03:38:43.761313 | 2023-08-10T17:49:00 | 2023-08-10T17:49:00 | 236,054,959 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Nov 8 18:31:45 2020
@author: Kollarlab
"""
import time
import os
import numpy as np
import matplotlib.pyplot as plt
import userfuncs
import plotting_tools as plots
def get_default_settings():
settings = {}
#Save location
settings['scanname'] = 'scanname... | [
"maritter@umd.edu"
] | maritter@umd.edu |
1b70f2c79a348180971c5ae664a3ee3a8482424a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03378/s251701721.py | 49de078c7467f51e9581f9eab691c6a075c1561c | [] | 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 | 187 | py | n,m,s = [int(x) for x in input().split()]
a = [int(x) for x in input().split()]
low = 0
high = 0
for i in range(m):
if a[i] < s:
low += 1
else:
high += 1
print(min(low,high)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
333c75b551e4d62e7e80906e1b5ab7e2af0653cc | bd28f8a8dbcf7f2b4be3bcc0c0e656009191d379 | /predict_nn/ranlp/rsr_dev/mi/ian.py | 58b47a880118a587446b42c4ca6f575d9f0355ea | [
"MIT"
] | permissive | nicolay-r/attitudes-extraction-ds | e2e5f9218408514ca1f3eff5edf88771e2f368ee | 49a82843e6adbca35321aaaa08d05532e953a0fc | refs/heads/master | 2022-08-30T04:51:14.133899 | 2020-05-28T11:06:01 | 2020-05-28T11:06:01 | 197,908,649 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | #!/usr/bin/python
import sys
sys.path.append('../../../../')
from predict_nn.ranlp.rsr_dev.config import TEST_ON_EPOCHS, MI_CONTEXTS_PER_OPINION
from networks.ranlp.io_rsr_dev import RaNLPConfTaskRuSentRelWithDevIO
from networks.mimlre.base import MIMLRE
from networks.context.architectures.ian import IAN
from networks... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
37fcce29634843a7c5c79899d2c6871a27f98257 | 3fb718b33d486d638402e5f5bb4eb028332bd54e | /Objects and Classes/Zoo.py | c657af3653914ff55c24c427eacb63f1fabf3133 | [] | no_license | lion963/SoftUni-Python-Fundamentals- | 1c0aced0d770d0f5d0a4977543e945576425aff1 | 25fca7f88513d9e9b9ceb2741d9cb3b3c067b97b | refs/heads/master | 2023-01-24T16:21:46.517847 | 2020-12-14T13:50:06 | 2020-12-14T13:50:06 | 297,916,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | class Zoo:
__animals = 0
def __init__(self, name):
self.name = name
self.mammals = []
self.fishes = []
self.birds = []
def add_animal(self, species, name):
if species == 'mammal':
self.mammals.append(name)
elif species == 'fish':
self... | [
"lion963@mail.bg"
] | lion963@mail.bg |
a1e6752c97c13384efca970a958b0761d12d34cd | d2189145e7be2c836017bea0d09a473bf1bc5a63 | /Reposiciones/reposicionesIsraelFP/reposicion31Ago18IsraelFP/fibonacciISraelFP.py | 692bd0eafb663ca194cd985e7f9b1080a1142875 | [] | no_license | emilianoNM/Tecnicas3 | 12d10ce8d78803c8d2cd6a721786a68f7ee2809d | 6ad7f0427ab9e23643a28ac16889bca8791421d0 | refs/heads/master | 2020-03-25T18:06:34.126165 | 2018-11-24T04:42:14 | 2018-11-24T04:42:14 | 144,013,045 | 3 | 5 | null | 2018-09-14T10:47:26 | 2018-08-08T12:49:57 | Python | UTF-8 | Python | false | false | 306 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sat Sep 15 16:04:05 2018
@author: israel
"""
def fib(f):
if f == 1: return 1
if f == 2: return 1
return fib(f-1)+fib(f-2)
print "\t..:Fibonacci:.."
f=input("Cantidad de no. a hacer en Fibonacci: ")
print "> No. Fibonacci: ",fib(f)
| [
"noreply@github.com"
] | emilianoNM.noreply@github.com |
40547c88ef4733a7b77c0d92fa0344e3439c408f | 98efe1aee73bd9fbec640132e6fb2e54ff444904 | /loldib/getratings/models/NA/na_aatrox/__init__.py | edb18cb382f17b02c1036fa9cc09ee67a24a63ab | [
"Apache-2.0"
] | permissive | koliupy/loldib | be4a1702c26546d6ae1b4a14943a416f73171718 | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | refs/heads/master | 2021-07-04T03:34:43.615423 | 2017-09-21T15:44:10 | 2017-09-21T15:44:10 | 104,359,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from .na_aatrox_top import *
from .na_aatrox_jng import *
from .na_aatrox_mid import *
from .na_aatrox_bot import *
from .na_aatrox_sup import *
| [
"noreply@github.com"
] | koliupy.noreply@github.com |
390b65607f271bdd88f9fab4359365ad28e4f992 | d92235bce35d7bf1b028ae417c6ceb8891b6c8b4 | /dk_mnist_mlp_weightnorm.py | 10c935941f332df7936c404f15dd57a9d282b466 | [] | no_license | capybaralet/BayesianHypernet | 63faadc83aa95ec80e5d7805ec300c151734f93a | 4d7bdc749b2fb9cf74e45c5b21ccc590b6f781e7 | refs/heads/master | 2020-12-30T15:30:54.687925 | 2017-05-15T21:38:15 | 2017-05-15T21:38:15 | 91,155,018 | 3 | 0 | null | 2017-05-13T06:41:49 | 2017-05-13T06:41:49 | null | UTF-8 | Python | false | false | 5,345 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 12 17:46:38 2017
@author: Chin-Wei
"""
from modules import LinearFlowLayer, IndexLayer, PermuteLayer
from modules import CoupledDenseLayer, stochasticDenseLayer2
from utils import log_normal, log_stdnormal
from ops import load_mnist
import theano
import theano.tensor as ... | [
"davidscottkrueger@gmail.com"
] | davidscottkrueger@gmail.com |
775a119a67245fdb0d9299d512d4b793d1281268 | 0f931d9e5b74f52a57499364d858819873bdf469 | /15.py | ea1afc8f020b5301aa75fbcffe5bfc0a28df61c1 | [] | no_license | estuprofe/AdventOfCode2019 | 43f4d6f96d580a1732d7932ea863613af270fe56 | 54450df616feef810fbd410ccc9d1b0670195e49 | refs/heads/master | 2022-04-03T11:35:30.553698 | 2019-12-22T03:21:33 | 2019-12-22T03:21:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | import fileinput
import heapq
import intcode
left, right, opposite = [2, 3, 1, 0], [3, 2, 0, 1], [1, 0, 3, 2]
dxs, dys = [0, 0, -1, 1], [-1, 1, 0, 0]
def traverse(program):
buf = []
gen = intcode.run(program, buf)
send = lambda d: buf.append(d + 1) or next(gen)
test = lambda d: send(d) and send(opposi... | [
"fogleman@gmail.com"
] | fogleman@gmail.com |
f1883475c18fada917ce742224d4c5223a023126 | 659a7a65c877f2eb0adbb6001a1f85f063d01acd | /mscreen/autodocktools_prepare_py3k/AutoDockTools/autoanalyze4Commands.py | 1c6e7002d9350becb7fe81829ce939e0463cab13 | [
"MIT"
] | permissive | e-mayo/mscreen | da59771be250ebe341feb102e0cbf41aab70de43 | a50f0b2f7104007c730baa51b4ec65c891008c47 | refs/heads/main | 2023-06-21T17:47:06.519307 | 2021-08-09T16:06:29 | 2021-08-09T16:06:29 | 345,008,321 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,348 | py | #############################################################################
#
# Author: Ruth HUEY, Michel F. SANNER
#
# Copyright: M. Sanner TSRI 2000
#
#############################################################################
# $Header: /opt/cvs/python/packages/share1.5/AutoDockTools/autoanalyze4Commands.py,v ... | [
"eduardomayoyanes@gmail.com"
] | eduardomayoyanes@gmail.com |
ef907923a1970b33a70abe7364cdcf42e701a3d2 | 3cea6c6664d9489b4cfb33ea8580f8189b5839ff | /torchex/nn/modules/padding.py | ca8bc82e42fac577d1304747aa66ed99bb511ce6 | [
"MIT"
] | permissive | tarokiritani/torchex | 81c24457337bdbf6ad103dd9ded5488b69b468bd | 5e9d8f7f08a3931c2271e108d73226b1ee6b3efa | refs/heads/master | 2020-04-12T17:55:02.960878 | 2018-12-14T09:37:46 | 2018-12-14T09:37:46 | 162,661,997 | 0 | 0 | null | 2018-12-21T03:40:19 | 2018-12-21T03:40:19 | null | UTF-8 | Python | false | false | 2,265 | py | import torch
import torch.nn as nn
class PeriodicPad2d(nn.Module):
"""
:params torch.Tensor input: Input(B, C, W, H)
# https://github.com/ZichaoLong/aTEAM/blob/master/nn/functional/utils.py
"""
def __init__(self,
pad_left: int=0, pad_right: int=0,
pad_top: i... | [
"kbu94982@gmail.com"
] | kbu94982@gmail.com |
f303c4c5c52b859986065ba36976c2cd24f5fa30 | 4e8e9ed2a8fb69ed8b46066a8d967e4c107013a4 | /main/control/comment.py | 74b22b2e72d524f3e59cb31990a4cf5d1b395682 | [
"MIT"
] | permissive | welovecoding/vote4code | a57b3d155096d362dca47587ad2985b4201ef036 | be265d553af35dc6c5322ecb3f7d5b3cf7691b75 | refs/heads/master | 2021-08-11T22:46:40.884030 | 2019-11-15T16:15:05 | 2019-11-15T16:15:05 | 90,191,931 | 14 | 0 | MIT | 2021-08-10T22:50:49 | 2017-05-03T20:46:02 | Python | UTF-8 | Python | false | false | 5,801 | py | # coding: utf-8
from google.appengine.ext import ndb
import flask
import flask_wtf
import wtforms
import auth
import config
import model
import util
from main import app
###############################################################################
# Update
########################################################... | [
"lipiridis@gmail.com"
] | lipiridis@gmail.com |
224115799dcddd421f082f520cd9f670ef3cd9cc | e81fabdd6988c787524755fac73aa9d3631fc64c | /tests/test_ops/test_early_stopping.py | 286560c5fd38fb4cc2edbac48b85b01eeecdd9e7 | [
"MIT"
] | permissive | granularai/polyaxon-schemas | 0aa06f15b7353ceb6d31f1e5cf63c269ab0e2ce4 | 017ae74701f21f12f0b25e75379681ea5d8baa9e | refs/heads/master | 2022-08-30T00:05:40.888476 | 2020-05-19T17:22:46 | 2020-05-19T17:22:46 | 265,312,701 | 0 | 0 | MIT | 2020-05-19T17:16:38 | 2020-05-19T17:16:37 | null | UTF-8 | Python | false | false | 1,874 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from unittest import TestCase
from tests.utils import assert_equal_dict
from polyaxon_schemas.ops.group.early_stopping_policies import EarlyStoppingConfig
from polyaxon_schemas.ops.group.metrics import Optimization
class TestE... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
9ff9b1b4f5e88031f1b4c71bf900b366103e5a6f | b67efb7ac1832f2a70aa570f8025c69498a8cd71 | /pgoapi/protos/POGOProtos/Data/Logs/FortSearchLogEntry_pb2.py | 7469fad7bf20a643ec48fffd8c8889493a9bf5e5 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | PogoHop/pgoapi-hsvr | f1513d7548075a7defd21f1018bd59afcb79d78f | b5761159e0240bbb81ef6c257fe2eb1bc1ce2d47 | refs/heads/master | 2021-01-12T11:17:55.334203 | 2016-11-05T12:48:38 | 2016-11-05T12:48:38 | 72,892,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,709 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: POGOProtos/Data/Logs/FortSearchLogEntry.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goog... | [
"hoptional@gmail.com"
] | hoptional@gmail.com |
67dcd3ec7cdb0cc71d9f3b762d542f02506fbeb3 | 49ba5356bdc5df7dd9803b56fe507c5164a90716 | /surface-area-of-3d-shapes/solution.py | a1de598aa85c92a605d01dfaf2403263d9ecf1e5 | [] | no_license | uxlsl/leetcode_practice | d80ad481c9d8ee71cce0f3c66e98446ced149635 | d8ed762d1005975f0de4f07760c9671195621c88 | refs/heads/master | 2021-04-25T18:12:28.136504 | 2020-03-11T07:54:15 | 2020-03-11T07:54:15 | 121,472,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | # leetcode
# https://leetcode-cn.com/problems/surface-area-of-3d-shapes/
# 解法:
# 求六个方向的表面积
class Solution(object):
def surfaceArea(self, grid):
"""
:type grid: List[List[int]]
:rtype: int
"""
N = len(grid)
area = 0
# xy 正反面
for i in range(N):
... | [
"songlin.lin@yunfangdata.com"
] | songlin.lin@yunfangdata.com |
ce978302f88b0065282a8fb57be6ec347d9e2012 | 2fabea234735beefc980b77b213fcb0dfb394980 | /tensorflow_probability/python/distributions/deprecated_linalg_test.py | e30bf6de1138043acd8d2544bd85b4b5b72eabca | [
"Apache-2.0"
] | permissive | tarrou/probability | 0eee452b525a6e6b3c7c98d467468e47f07e861b | d4d80a1c04ad0b3e98758ebc3f7f82887274384d | refs/heads/master | 2020-08-08T11:16:42.441268 | 2019-12-06T17:35:17 | 2019-12-06T17:35:17 | 213,819,828 | 0 | 0 | Apache-2.0 | 2019-10-09T04:20:19 | 2019-10-09T04:20:19 | null | UTF-8 | Python | false | false | 2,518 | 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 |
8c0d012d8d04a4973b14979e0731ec72a32bbdde | 0728a2e165808cfe5651693a6e7f47804bfb085f | /ry/trunk-ry/rynok/controllers/category.py | 2c8663f5cbf391dbaad2d949ff7d5a5f07a4cd0e | [] | no_license | testTemtProj/OLD_PROJECT | 5b026e072017f5135159b0940370fda860241d39 | 9e5b165f4e8acf9003536e05dcefd33a5ae46890 | refs/heads/master | 2020-05-18T15:30:24.543319 | 2013-07-23T15:17:32 | 2013-07-23T15:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,907 | py | #coding: utf-8
""" Category Controller
"""
import logging
import rynok.lib.helpers as h
import json
from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
from webhelpers.html.builder import HTML
from rynok.lib.base import BaseController, render
from ... | [
"Kyzmenko_Pavel@mail.ru"
] | Kyzmenko_Pavel@mail.ru |
2bd112ac93dcd356a16b4eefafb8a2aa5b1fe728 | 4d30d39cbcb0d2428d710a47c0ca7ef8bcec447d | /core/dbs/__init__.py | c95c6e94c224de6b64cb1e2e67ddf572f055abd2 | [
"BSD-3-Clause"
] | permissive | baifengbai/CornerNet-Lite-Pytorch | 7a8c5bbe49343e67ae100001c18df5542b375b4e | 7c52f93720d6276a6e073c06fb6cec6b8580da56 | refs/heads/master | 2020-09-22T15:25:13.050615 | 2019-12-01T16:44:28 | 2019-12-01T16:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | from .coco import COCO
from .dagm import DAGM
# 数据库名字
datasets = {
"COCO": COCO,
"DAGM": DAGM,
}
| [
"274762204@qq.com"
] | 274762204@qq.com |
4905389b265f26eae8f3ad56e407e10420eb28aa | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/eclect.py | 7be45d81379ad886d250abb271881bb833c02954 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 80 | py | ii = [('NewmJLP.py', 2), ('BachARE.py', 1), ('SoutRD.py', 1), ('WestJIT.py', 3)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
36686ecf3ef8dddacb386186f976e7db325b7da8 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/122/6123/submittedfiles/triangulo.py | 3ae57cd9af2aa0c78741ee0de80b08dafd3b0c19 | [] | 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 | 369 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
#ENTRADA
a=input('digite o valor do lado a:')
b=input('digite o valor do lado b:')
c=input('digite o valor do lado c:')
if a<(b+c):
print('S')
if (a**2)==(b**2)+(c**2):
print('Re')
elif (a**2)>(b**2)+(c**2):
print('Ob')
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c2bb2d65b3870a887e0ddb17c2f03d3f97dbddcc | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TriggerCommon/TriggerMenu/scripts/moveDisabledChains.py | 3cf550466499b6bb7c7896c7e66d13a32585c169 | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,373 | py | #!/bin/env python
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
"""
This script reads the rulebook and swaps items between Physics and MC if they are disabled or not.
TrigMenuRulebook needs to be checked out and installed.
Currently it needs to be run from the script folder.
One argumen... | [
"graemes.cern@gmail.com"
] | graemes.cern@gmail.com |
9cc28d9f4c07c4648dc57207f4e8201627ae8aed | 1b9075ffea7d4b846d42981b41be44238c371202 | /2008/devel/programming/libs/libdbf/actions.py | 242da707fa8723753f2298926612cdf827675c4e | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
... | [
"MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2"
] | MeW@a748b760-f2fe-475f-8849-a8a11d7a3cd2 |
cdbe41c2ec761eb560f3450e4eafcb73d802900a | cecd61903943d9f25f37605a344b1683ee958b11 | /what_is_food/config/desktop.py | 06f7e215806a55310c988083ea653bb469f998b8 | [
"MIT"
] | permissive | ashish-greycube/what_is_food | 1f31ce461f97f8d4dccbbd078eb2190a4f785caa | 6c4a327a721accf86667cc87c0b2976dcd09abe6 | refs/heads/master | 2022-12-15T06:07:07.137326 | 2020-08-27T04:05:21 | 2020-08-27T04:05:21 | 273,717,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "What Is Food",
"color": "yellow",
"icon": "octicon octicon-device-mobile",
"type": "module",
"label": _("What Is Food")
}
]
| [
"mr.ashish.shah@gmail.com"
] | mr.ashish.shah@gmail.com |
e0c0f5874c310c08d6aae5b8963709dc2a7f55f7 | 061c36c4b33dd0c47d9d62c2057559d4c5973681 | /validate_csv.py | 2e7d2f78cb711aa32b69265e49916552cf28ae42 | [
"MIT"
] | permissive | ashkankamyab/DevOps-Python-tools | 0847f9e1b74d7864d17b0a9833beeef1f149e5a5 | dc4b1ce2b2fbee3797b66501ba3918a900a79769 | refs/heads/master | 2022-10-09T15:23:31.108086 | 2022-09-01T14:32:56 | 2022-09-01T14:32:56 | 189,855,037 | 1 | 0 | NOASSERTION | 2019-06-02T14:15:18 | 2019-06-02T14:15:18 | null | UTF-8 | Python | false | false | 10,977 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2015-12-22 23:25:25 +0000 (Tue, 22 Dec 2015)
#
# https://github.com/HariSekhon/DevOps-Python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and opt... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
40bf69fc32a19fddc23cf0e29fdc8fc40c238709 | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /nlp/dialogue_generation/cpm/pytorch/iluvatar/cpm/config/layers/self_multihead_attn.py | 55be679404c3ac3d70ad62e15e3d9ac7aa90f005 | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 3,926 | py | import math
import torch
from torch import nn
from torch.nn import Parameter
import torch.nn.functional as F
from layers.self_multihead_attn_func import self_attn_func
from layers.fast_self_multihead_attn_func import fast_self_attn_func
from apex.normalization.fused_layer_norm import FusedLayerNorm
class SelfMultih... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.