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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9aacee9839e83bb46a8632f33d242c6e83d61d0f | 34851e4fedf2fea3aa5b87a923951ee8887344e9 | /public_markets/mtgoxusd.py | 263a6b3a2d182aa8f67cf58429e23d858ca3556e | [] | no_license | kafitz/btc-arbitrage | cfb8a32bdea0312bb3a5a9bd70a36ebdf7f6d011 | 52d66bd47c2bccb9a75c06dda0ee4db9a7436ebb | refs/heads/master | 2021-01-23T18:11:11.211742 | 2013-03-25T18:16:13 | 2013-03-25T18:16:13 | 8,922,078 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | import urllib2
import json
import logging
from market import Market
class MtGoxUSD(Market):
def __init__(self):
super(MtGoxUSD, self).__init__("USD")
self.update_rate = 25
self.depth = {'asks': [{'price': 0, 'amount': 0}], 'bids': [{'price': 0, 'amount': 0}]}
self.fees = {'withdraw... | [
"kafitz22@gmail.com"
] | kafitz22@gmail.com |
143d0206f44fa4c890b54a07ee4d47f34df62417 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2480/61132/297802.py | aafef7adb71cc9e7582e75edfc9b101fdbffaf01 | [] | 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 | 201 | py | n = int(input())
for j in range(n):
n = int(input())
l=list(map(int,input().split()))
ou=[i for i in l if i%2==0]
ji=[i for i in l if i%2==1]
l=ou+ji
print(' '.join(map(str,l))) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9b52a7ec3dd9f0c75d39c618c4602f546414ad7d | 3bb70650b4b83e4653dcc18c8233c106c7a5611a | /id/id_alternative_sku.py | 2dad55de36cb237f35b3d992ef0c7b3f07fefbbc | [] | no_license | khanhlu2013/pos_connect_code | 48e736a6b1c5ca6a5c4ff39d842d8a93f66e67ef | fdf70de858c10b175832af31ecc0cf770d028396 | refs/heads/master | 2023-04-08T02:35:46.181265 | 2016-10-18T21:12:51 | 2016-10-18T21:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from store_product.cm import add_sku_cm
from store.models import Store
import csv
from store_product.models import Store_product
def exe():
store = Store.objects.get(name = "1")
# Dept_ID,Description,Tax_1,itemnum,Vendor,ItemName,CRV,Price,Cost
log_file = open('id/log','w')
with open('id/data_tie... | [
"khanhlu2013@gmail.com"
] | khanhlu2013@gmail.com |
b696bf108960ccf95beeeebecbcaf4cec73b0027 | 21e6fd368aee8acb80747141291a00f83fb67d1e | /python/WoT/SourcesRes/9.10/client/gui/scaleform/daapi/view/meta/orderspanelmeta.py | 28345f5a7c993d70ca9f28266a7d49218fd39677 | [] | no_license | Infernux/Projects | e7d1eab9b25471c543aa82985ec0bfcca2cfe05e | da7a9f71231b76dafbc4c7348065f1fc2dead854 | refs/heads/master | 2023-08-24T09:17:23.834855 | 2023-08-05T14:18:46 | 2023-08-05T14:18:46 | 23,395,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # 2015.01.14 22:24:29 CET
from gui.Scaleform.framework.entities.DAAPIModule import DAAPIModule
class OrdersPanelMeta(DAAPIModule):
def getOrderTooltipBody(self, orderID):
self._printOverrideError('getOrderTooltipBody')
def as_setOrdersS(self, orders):
if self._isDAAPIInited():
r... | [
"mrnux@nux.com"
] | mrnux@nux.com |
421bf8c5101b8f41ed4beb2851e8bfbf0944970d | f1344fb85607e6371dcf67b5c22addf535059b00 | /tests/test_chem.py | b50fb2500131bc7c5ddd902cead092c348e61d70 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | shunsunsun/aizynthfinder | d18bea55db48b6e29b61d167e5b5bafcc0e0b6db | 51864ef8a1dc3501d60d21ddb4d71d392f47b045 | refs/heads/master | 2023-04-10T07:28:11.204379 | 2021-04-21T12:10:42 | 2021-04-21T12:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,566 | py | import pytest
from rdkit import Chem
from aizynthfinder.chem import (
MoleculeException,
Molecule,
UniqueMolecule,
TreeMolecule,
Reaction,
RetroReaction,
FixedRetroReaction,
hash_reactions,
)
from aizynthfinder.analysis import ReactionTree
def test_no_input():
with pytest.raises(M... | [
"samuel.genheden@gmail.com"
] | samuel.genheden@gmail.com |
8b33a8437707eed3d6ac1b04b4a22df9b4cc0817 | e81fabdd6988c787524755fac73aa9d3631fc64c | /tests/test_ml/test_data_processing.py | 8b45f4693fd77c375a3635fd4881364c4d394f75 | [
"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 | 12,966 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from unittest import TestCase
from tests.utils import assert_equal_feature_processors, assert_equal_layers
from polyaxon_schemas.ml.processing.feature_processors import FeatureProcessorsConfig
from polyaxon_schemas.ml.processing... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
eac49f0f33ce16585fbe6ac3b5e14591b2ffe3ad | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/recoveryservices/azure-mgmt-recoveryservicessiterecovery/generated_samples/replication_storage_classification_mappings_create.py | 32a549ced3e25224514315c40f8d8c5b15eacc9f | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 2,391 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
363bfb9ab8cbacec7ca02882bf164376903e9d3e | 7145ead694a5ba163f5091d78a9f26bb6e068a57 | /test/dict_test.py | 72a3e6ddf190d74bcf37f85d2c361efe90388f73 | [] | no_license | A-Why-not-fork-repositories-Good-Luck/challenge-python-web-scrapper | 96b7c5cf4363f1770a4ffe8fd0d1e3f2dd1f497f | 7135ed3859312cac93c7a720bf0803d2caf20d67 | refs/heads/master | 2023-03-19T10:42:49.498237 | 2020-12-07T07:58:49 | 2020-12-07T07:58:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | a = {"abc" : 3}
print(a)
if 'abvc' in a.keys():
print("yes")
else:
print("no")
| [
"welovehun91@gmail.com"
] | welovehun91@gmail.com |
3a51299d3fa4af6359725a14de1199057a2b03ba | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/logic/get_integration_account_certificate.py | f073df0b1ba945373d949edf99f032f08b888723 | [
"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 | 7,409 | 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 |
fe7437f39d3db44ad84509fce89a3401906cb304 | 6a95112805b64322953429270a305d01fef3faea | /dist/weewx-4.3.0b1/bin/weewx/units.py | 8952fe1be06a52e14ccc121dc01effbf23cdd0cc | [
"GPL-3.0-only",
"GPL-1.0-or-later",
"Apache-2.0"
] | permissive | tomdotorg/docker-weewx | c6d59dc492a9e53f3bc898f7b9f593717092d72c | 7085654f455d39b06acc688738fde27e1f78ad1e | refs/heads/main | 2023-06-08T17:57:44.184399 | 2023-01-30T11:21:23 | 2023-01-30T11:21:23 | 54,113,384 | 21 | 16 | Apache-2.0 | 2022-10-19T23:46:26 | 2016-03-17T11:39:29 | Dockerfile | UTF-8 | Python | false | false | 62,715 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2009-2020 Tom Keffer <tkeffer@gmail.com>
#
# See the file LICENSE.txt for your full rights.
#
"""Data structures and functions for dealing with units."""
#
# The doctest examples work only under Python 3!!
#
from __future__ import absolute_import
from __future__ import... | [
"tom@tom.org"
] | tom@tom.org |
c580de3028644643df53287d3c4f6409af25e348 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1349.py | e66a74a8bd016e9594be81c98058a04234cf6dbc | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,517 | py | # qubit number=5
# total number=52
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f1a190e4c61ddd2654ce4c0e6dd723b4a3267b68 | bad3a97ea5a433e478d22520a1218f1e8c72e1e6 | /backend/course/migrations/0001_initial.py | beef4666431a56849a7d9f86a9329d0ba9f70167 | [] | no_license | crowdbotics-apps/ssuetstudentprofile-20975 | 697579ae458a4e5b3a8a36ca0032bab8d704cb7e | 1a2ae1fa4654d151c89686b87ce4244d6342b8ae | refs/heads/master | 2022-12-28T11:07:17.559631 | 2020-10-02T15:09:32 | 2020-10-02T15:09:32 | 300,649,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,323 | py | # Generated by Django 2.2.16 on 2020-10-02 15:03
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
8c5fba9858cd512478be08b187845631df8a8848 | 35fb8ef7f2b6673931b951c4e85a6f817238c528 | /LeetCode/61.py | 4190305a55cc7606f31a4f35cd276347ce631b66 | [] | no_license | cylinder-lee-cn/LeetCode | 0baa3cc663d54305100affa394391325abdc8766 | 62ccbdedf4e1fb9788acfeb2a5bfce70f86c68b6 | refs/heads/master | 2021-07-09T15:41:56.980481 | 2021-01-11T03:14:24 | 2021-01-11T03:14:24 | 219,885,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | """
61. 旋转链表
给定一个链表,旋转链表,将链表每个节点向右移动 k 个位置,其中 k 是非负数。
示例 1:
输入: 1->2->3->4->5->NULL, k = 2
输出: 4->5->1->2->3->NULL
解释:
向右旋转 1 步: 5->1->2->3->4->NULL
向右旋转 2 步: 4->5->1->2->3->NULL
示例 2:
输入: 0->1->2->NULL, k = 4
输出: 2->0->1->NULL
解释:
向右旋转 1 步: 2->0->1->NULL
向右旋转 2 步: 1->2->0->NULL
向右旋转 3 步: 0->1->2->... | [
"noreply@github.com"
] | cylinder-lee-cn.noreply@github.com |
6f227557b3ac0fab0c3f40162a3f1ffba9b0b478 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/plone.app.blocks-2.2.1-py2.7.egg/plone/app/blocks/testing.py | 62df4aed1ee881af4d63ad25c7f6d82713a4868a | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | # -*- coding: utf-8 -*-
from plone.app.testing import FunctionalTesting
from plone.app.testing import IntegrationTesting
from plone.app.testing import PLONE_FIXTURE
from plone.app.testing import PloneSandboxLayer
from plone.testing import Layer
from zope.configuration import xmlconfig
import pkg_resources
try:
pkg... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
f7e0127a4778fe27f24932b8bd80a77d05b0ea88 | 6c53a90b60ff6b45642b1043bc0813c1042bf89e | /modules/gipc/examples_in_docs/server_in_parent.py | 2005aaac2c3509626339d25accbaf974925f859d | [] | no_license | Ralph-Wang/MyPythonCookBook | 9a5779a947fa3ee44a9cd3b9a290457ae7e3a4b4 | 90b9814e87c8c93448e20f1bbeca4173fd0ca482 | refs/heads/master | 2021-06-07T00:52:54.365618 | 2018-04-10T07:38:51 | 2018-04-10T07:38:51 | 25,971,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import gevent
from gevent.server import StreamServer
from gevent import socket
import gipc
import time
PORT = 1337
N_CLIENTS = 10000
MSG = "HELLO\n"
def serve(sock, addr):
f = sock.makefile()
f.write(f.readline())
f.flush()
f.close()
def server():
St... | [
"ralph_ld@aliyun.com"
] | ralph_ld@aliyun.com |
012299a8d42ea5cce70b0f414151505806174ac3 | ab9d10f43173da753921415af0c07ef2dce3ed33 | /earlier-2020/pytorch/CUB_200.py | a17d403dfbeec0624417bb6f8fc93b99bf42b2cb | [
"Apache-2.0"
] | permissive | qianjinfighter/py_tutorials | e34f211735ab9827fc36b3e1cc72eba02fd6f4c2 | fed8e6c8d79f854a1cebcfd5c37297a163846208 | refs/heads/master | 2023-02-20T19:03:00.641107 | 2021-01-20T07:04:30 | 2021-01-20T07:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | from torch.utils.data import Dataset
from PIL import Image
import os
class CUB_200(Dataset):
def __init__(self, root, train=True, transform=None):
super(CUB_200, self).__init__()
self.root = root
self.train = train
self.transform = transform
self.classes_file = os.path.join... | [
"transcendentsky@gmail.com"
] | transcendentsky@gmail.com |
29ec088e55b641ba63ddac0ba17dcac641693416 | 6e0be09e5aa17df6a85d8b5053395160ffb04c01 | /setup.py | e9421cad77f8ae270b64b3efebe3beb2618f6b0e | [] | no_license | nuxeo-cps/products--CPSController | 3d5e3402be82000a5419c0cc71d71481ead7bcbc | b1b613b78c2f23f49a86cb29bb02baa3294b29b7 | refs/heads/main | 2023-01-18T16:26:01.002062 | 2005-04-05T21:49:21 | 2005-04-05T21:49:21 | 317,992,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | # (C) Copyright 2004-2005 Nuxeo SARL <http://nuxeo.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITH... | [
"devnull@localhost"
] | devnull@localhost |
f6f38f19e41c14c180335bd2fb890ce3528cb090 | 5ce46cad1c8f58ed86834ffdad1ebe99a0a7f533 | /cngi/vis/uvcontfit.py | c005efcf5129ccb6c9b7d90af0675958119e8dca | [
"Apache-2.0"
] | permissive | wxiongccnu1990/cngi_prototype | 6373a522db6e3ab8c189e764c6cf6e08a5e2827f | 7a7230485acc9f8f2be534a832522339153d521e | refs/heads/master | 2023-03-15T18:32:53.387416 | 2021-03-10T06:17:50 | 2021-03-10T06:17:50 | 288,822,433 | 0 | 0 | null | 2020-08-19T19:45:10 | 2020-08-19T19:45:09 | null | UTF-8 | Python | false | false | 4,594 | py | # Copyright 2019 AUI, Inc. Washington DC, USA
#
# 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 ... | [
"ryanraba@gmail.com"
] | ryanraba@gmail.com |
b70cfef0b0d9fb2b6080bb24900a4a006b2a93eb | 696e35ccdf167c3f6b1a7f5458406d3bb81987c9 | /build/fuchsia/test_runner.py | cd45024d87ca9e3cb4fbc695a23f68641bf144eb | [
"BSD-3-Clause"
] | permissive | mgh3326/iridium-browser | 064e91a5e37f4e8501ea971483bd1c76297261c3 | e7de6a434d2659f02e94917be364a904a442d2d0 | refs/heads/master | 2023-03-30T16:18:27.391772 | 2019-04-24T02:14:32 | 2019-04-24T02:14:32 | 183,128,065 | 0 | 0 | BSD-3-Clause | 2019-11-30T06:06:02 | 2019-04-24T02:04:51 | null | UTF-8 | Python | false | false | 5,134 | py | #!/usr/bin/env python
#
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Deploys and runs a test package on a Fuchsia target."""
import argparse
import json
import logging
import os
import socket
import... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
d8cc5dcd8cba15c69e333b4ffbeebe496340dc95 | f6db58013843424e737efa2e40d28dbf6ec121d5 | /RNAseq_pipeline/bin/featureCounts2matrix.py | 0dd2184b776f54e4277487e60a13b312a738c87d | [] | no_license | levinyi/GZ_Tcell_work | ef3d7ab2fa1eda7bfd09b09a83349536d6834c81 | 275198da3759e3bee6adde09ea68a598a6ca89a8 | refs/heads/master | 2023-04-06T07:29:59.201311 | 2023-03-24T07:14:27 | 2023-03-24T07:14:27 | 202,257,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | ''' these modules were used.'''
import os
import sys
import argparse
def addtwodimdict(thedict, key_a, key_b, val):
''' this is a function to add two dimetion dict '''
if key_a in thedict:
thedict[key_a].update({key_b: val})
else:
thedict.update({key_a: {key_b: val}})
return thedict
d... | [
"dushiyi319@163.com"
] | dushiyi319@163.com |
533c368c827e3d2454faf15b764366c4759543ed | a032bdacbbfce1cc64021efc9af6d004df8e3544 | /WholeBrainGLM/Model_Value_Gradient2/GLMconfig.py | ecd8d570ebb646feab3652a177909b3cee3e39b6 | [] | no_license | TDaltonC/Nypype_Workflows | e2873618faff036ca1f57d96fe4a9413c190ce71 | 99bb8942df529bd10299b42e7d780dd5fb6e4035 | refs/heads/master | 2016-09-06T00:47:34.003271 | 2015-08-14T23:21:15 | 2015-08-14T23:21:15 | 23,481,365 | 0 | 3 | null | 2015-03-24T06:49:28 | 2014-08-30T00:26:32 | Python | UTF-8 | Python | false | false | 3,104 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 26 14:06:38 2014
@author: Dalton
"""
"""
=========
Imports
=========
"""
import os # system functions
import nipype.interfaces.fsl as fsl # fsl
# These two lines enable debug mode
#from nipype import config
#config.enable_de... | [
"tdaltoncombs@gmail.com"
] | tdaltoncombs@gmail.com |
e333cdf8cee9b5fb82779167c234bae694d0412f | 15f0514701a78e12750f68ba09d68095172493ee | /Python3/556.py | 9d108b552e6d7a2c365f9d47a43300a5edf846a7 | [
"MIT"
] | permissive | strengthen/LeetCode | 5e38c8c9d3e8f27109b9124ae17ef8a4139a1518 | 3ffa6dcbeb787a6128641402081a4ff70093bb61 | refs/heads/master | 2022-12-04T21:35:17.872212 | 2022-11-30T06:23:24 | 2022-11-30T06:23:24 | 155,958,163 | 936 | 365 | MIT | 2021-11-15T04:02:45 | 2018-11-03T06:47:38 | null | UTF-8 | Python | false | false | 1,355 | py | __________________________________________________________________________________________________
sample 28 ms submission
class Solution:
def nextGreaterElement(self, n: int) -> int:
s = list(map(int, list(str(n))))
i = len(s)-1
while i-1 >=0 and s[i] <= s[i-1]:
i-=1
if ... | [
"strengthen@users.noreply.github.com"
] | strengthen@users.noreply.github.com |
8e5b37543009fd5aed698fc7479d72b036ed5e60 | 5ace97f6bf2aeb661b4c544e1cc183684afe8413 | /rosalind/iev.py | 02a149818cae9d5216d758433bff4a80e7959509 | [] | no_license | crazymerlyn/code | 1aada845b70486ef45408ff67bd722d910c58dd6 | 3deed9c8a1393c160866f33d5efc6dd3d1a4c469 | refs/heads/master | 2022-07-26T21:13:23.588366 | 2022-06-11T15:35:13 | 2022-06-11T15:35:13 | 97,077,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | ar = map(int, raw_input().split())
print 2 * sum(ar[:3]) + ar[3] * 1.5 + ar[4]
| [
"crazy.d.merlyn@gmail.com"
] | crazy.d.merlyn@gmail.com |
917c5ed64d63411aeaa1fbcd0ef4b9ffe26f25c6 | 2fb15911e6df763e99971458bb0b0a27eecfbc9d | /myweb/myapp/models.py | 42a35bed919643b1305d299cc91cc14298fcdcd0 | [] | no_license | yishishizi/web | 0269dab154125f3ecb0329053244997d12f34c24 | 769d12c57c49b09e4ea436775cdc065431a4c6f1 | refs/heads/master | 2023-07-11T13:56:31.434691 | 2021-08-07T07:32:18 | 2021-08-07T07:32:18 | 387,641,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | from django.db import models
# Create your models here.
class student(models.Model):
'''自定义Stu表对应的Model类'''
#定义属性:默认主键自增id字段可不写
id = models.AutoField(primary_key=True)
studentno = models.CharField(max_length=16)
score = models.FloatField()
# 定义默认输出格式
def __str__(self):
re... | [
"1151768033@qq.com"
] | 1151768033@qq.com |
a9d6573f607d159a2c5f12920b3ff8817b33c84f | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/api/usergroups.py | 44c0dc5a503620fa9c425f6877d50ae33c794562 | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 14,179 | py | from typing import TYPE_CHECKING
from mstrio.utils.error_handlers import ErrorHandler
if TYPE_CHECKING:
from requests_futures.sessions import FuturesSession
from mstrio.connection import Connection
@ErrorHandler(err_msg='Error getting user groups privileges for a group with ID {id}')
def get_privileges(
... | [
"noreply@github.com"
] | MicroStrategy.noreply@github.com |
0bcb2c7440438d3bac551639ae81f3b14ac66daf | 76d08b580d16008cfdec11103d3a2ef3c5444185 | /my_py_notes_万物皆对象/异步io/py3.5后的异步io.py | 5b783f14cddae4b2b4cd61599876a3998677a1ca | [] | no_license | lrygdh/python | c9794f75610a76a234105f11e93587336c4594c0 | a1bc3c384459f8a40c420c3d1a7e4233970c459c | refs/heads/master | 2020-03-25T07:53:30.141809 | 2018-08-04T11:02:13 | 2018-08-04T11:02:13 | 143,586,696 | 1 | 0 | null | 2018-08-05T05:41:45 | 2018-08-05T05:41:45 | null | UTF-8 | Python | false | false | 693 | py | # coding:utf-8
'''
@author = super_fazai
@File : py3.5后的异步io.py
@Time : 2018/3/23 10:00
@connect : superonesfazai@gmail.com
'''
"""
为了简化并更好地标识异步IO,从Python 3.5开始引入了新的语法async和await,可以让coroutine的代码更简洁易读
请注意,async和await是针对coroutine的新语法,要使用新的语法,只需要做两步简单的替换:
1. 把@asyncio.coroutine替换为async;
2. 把yield from替换为a... | [
"superonesfazai@gmail.com"
] | superonesfazai@gmail.com |
8ff0391032be72cb40e57a06fc804729d3d9525b | 7fd6a1d53687dc2c58a63d3b2dc6193dfdaa352e | /Functions/Assignments/Check Armstrong.py | 6cc850f546e3ad191f0f186cc9ec031fe654d6a4 | [] | no_license | renukamallade10/Python-problems | 244ee8f532699d36933464e6216932450bc94be3 | e6a46c3d3762d581a0e350663d1fc329b6b4b1d5 | refs/heads/master | 2023-03-15T12:41:18.990615 | 2020-03-15T06:26:16 | 2020-03-15T06:26:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 26 22:34:06 2020
@author: cheerag.verma
"""
def isArmstrong(n):
power = len(str(n))
sum = 0
rem = 0
while n>=1:
rem = n % 10
sum = sum + rem**power
n=n//10
return sum
n = int(input())
result = isArmstrong... | [
"chiragverma188@gmail.com"
] | chiragverma188@gmail.com |
05d964f15b11add30e3fcaa9031222fd4a0c6980 | 14a23bdab34355335b586d49e1c70e6d138cec4a | /2020/10/05-running-median.py | 7f0b87bf8b77e24140b1bf8020a0b9978b79dbba | [] | no_license | jonasmue/daily-problem | c0c929036839fbf7542d99c244bb222101c61d2a | 83ef805c2f72912088b72d285b3556dda2d66d47 | refs/heads/master | 2022-12-28T01:08:10.257409 | 2020-10-08T15:16:42 | 2020-10-08T15:16:42 | 287,352,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | def find_insertion_point(array, key):
if not len(array):
return 0
if key > array[-1]:
return len(array)
if key < array[0]:
return 0
lower, upper, middle = 0, len(array), len(array) // 2
while lower < upper:
mid_value = array[middle]
if mid_value == key:
... | [
"jonas.mueller@compitencies.com"
] | jonas.mueller@compitencies.com |
4d59b84e44cb20b8b6081a1b8c0f1507ad5a3e08 | 022dc3d6f2f7289f2f49719dcbf15a411aad263a | /CSVUtility/ImportCSV.py | b90b5da77f0ce7fc67bc6ec8c3bea2fdb0e1df8f | [] | no_license | laubreyual/aDB | 37d3f7d1d2bc781804904c3d780f48ac1243fecb | 551051dcdaf59aee5a845e8c6d90810c3f74e271 | refs/heads/master | 2022-03-09T14:44:14.446235 | 2019-11-28T13:16:32 | 2019-11-28T13:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,516 | py | import csv, ast, os
from pathlib import Path
from cerberus import Validator
v = Validator()
# GLOBAL VARIABLE
table_list = {}
# TABLE VARS
table_name = ""
table_cols_def = []
table_cols = []
# CSV VARS
csv_table_name = ""
csv_table_cols = []
csv_row_data = []
with open('table_struc.txt') as f: # STATIC FOR NOW
fo... | [
"="
] | = |
8e8971d0b95be9a4c308361b562359ce622b1e3a | fded1e6c9cdd64bd96f0bad1d2877a65a0202631 | /src/simulacra/utils/memoizers.py | 8d43e6d5101856643e9526b2fa424661fd4160fc | [
"MIT"
] | permissive | johnvonlzf/simulacra | 46100c33be6992b1f45d7272884689579c28bd37 | b89fd0abf59debf077a4ce4cc46d5e0c58f53b4d | refs/heads/master | 2022-01-23T23:04:08.191552 | 2018-10-14T15:53:23 | 2018-10-14T15:53:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | import functools
import logging
from typing import Optional, Union, NamedTuple, Callable, Iterable
import numpy as np
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
class cached_property:
"""
A property that is only computed once per instance and then replaces itself with an ordinary at... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
c2b5df1a5ebee4903ef18873af6212624db516eb | 9c54990d488e7128aa4d00433cfbaba46f95b11c | /sq_new.py | 8b87616e00f27dae91a8f7313b1633232f64bd4e | [] | no_license | Mahluto/python | 0959cde894e2a0db2320ed9f49dda20fecfef828 | 56ed51df42320edfa56d29aa99e045ba65805465 | refs/heads/master | 2021-01-10T17:03:59.736492 | 2016-03-31T16:02:24 | 2016-03-31T16:02:24 | 55,077,526 | 0 | 0 | null | null | null | null | WINDOWS-1251 | Python | false | false | 2,553 | py | # coding: cp1251
"""
Программа написана на Python версии 2.7.
Использована кодировка cp1251, а не utf-8, по пречине того, что
как было сказано выше использован Python версии 2.7, а не 3.х
и написана прогамма была на операционной системе windows 7.
"""
import sqlite3
import sys
from re import sub
from os import path,... | [
"someone@someplace.com"
] | someone@someplace.com |
30b7a06cd1b2d45b2dd2142fa71dac814e1d55d2 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/documentai/v1beta1/documentai-v1beta1-py/tests/unit/gapic/documentai_v1beta1/test_document_understanding_service.py | 9c734bc9f252fd942c8f7a88940dca4834882318 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,907 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
460eecd36d4598e3051230c7e857aa0434a12878 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/YoloV3_ID1790_for_PyTorch/mmdet/core/utils/dist_utils.py | 4eb3ce63c67fbdc6fa17a9e753e1a5be704d7fe2 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,920 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
04e81f25001fa4d43c0ca59b05e2563764806a41 | 40237e0b8f7e7cfb107118a778c34664ff4902e1 | /Lessons/source/search_test.py | be808776916da60c5be238824965c087d8b1ef74 | [
"MIT"
] | permissive | RGero215/CS-1.3-Core-Data-Structures | db8a1ae6726c1bba5cc3886d46c9aa8723abdc83 | 3c725c086aa189e05bd10612a5c8de4d25019df3 | refs/heads/master | 2020-05-05T08:33:56.405469 | 2019-05-17T23:31:43 | 2019-05-17T23:31:43 | 179,868,764 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | #!python
from search import linear_search, binary_search
import unittest
class SearchTest(unittest.TestCase):
def test_linear_search_with_items_in_list(self):
# linear search can find items regardless of list order
names = ['Winnie', 'Kojin', 'Brian', 'Nabil', 'Julia', 'Alex', 'Nick']
# l... | [
"rgero215@gmail.com"
] | rgero215@gmail.com |
b388885a3e1a83135b83870355d7273a84be313d | 8de489174f29468fa1f24cc70a9d5c49c3308c35 | /tests/implementation_language_guessing.py | 704ef6461897e3305ec7be42602724f311c56b75 | [
"MIT"
] | permissive | online-judge-tools/api-client | 63767b95efaf9c45086aa4fa0d99853a0f95261f | 8529981e570c231770ac2347270623d29c9b14f9 | refs/heads/master | 2023-07-31T20:28:46.116592 | 2022-08-14T07:29:57 | 2022-08-14T07:29:57 | 252,485,477 | 57 | 17 | MIT | 2022-10-23T03:56:08 | 2020-04-02T14:55:06 | Python | UTF-8 | Python | false | false | 20,140 | py | """This module has unit tests of onlinejudge._implementation.language_guessing module.
"""
import pathlib
import textwrap
import unittest
import onlinejudge._implementation.language_guessing as language_gussing
from onlinejudge.type import Language, LanguageId
# https://atcoder.jp/contests/language-test-ver1
languag... | [
"kimiyuki95@gmail.com"
] | kimiyuki95@gmail.com |
154b82c35839add847c041b1a4b1438430306663 | c9abbbfd1ccdbdf75c5b35b28c841b6fc8165ee6 | /AtCoder/practice/0608virtual/3or2.py | d61308f33789be87a7e7538c44e4b42c3d1985a2 | [] | no_license | kanade9/kyopro | 8d9b12a4da2353595836cf68066e2b425379990b | 3b5d998b99603c4473dc22e62252a2dd5ba143c2 | refs/heads/master | 2023-04-20T15:18:37.199790 | 2021-05-19T17:49:16 | 2021-05-19T17:49:16 | 175,988,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | n = int(input())
a = list(map(int, input().split()))
def prime_factorize_n2(n):
a = []
while n % 2 == 0:
a.append(2)
n //= 2
f = 3
while f * f <= n:
if n % f == 0:
a.append(f)
n //= f
else:
f += 2
if n != 1:
a.append(n)
... | [
"maronkazu94@gmail.com"
] | maronkazu94@gmail.com |
2f178b3a2f454eacc00928344077576118f66f4d | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/18-sender_receiver_6.py | 9df1c05ac9fb313a1d478b400a47eda6e8322a36 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,211 | py | from typing import FrozenSet
from collections import Iterable
from math import log, ceil
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msa... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
3bf540fa9f2089ee4c619d628c00daac7b0c0bbf | 79ed3f72555aad8548634f523f775f34cfe166e7 | /catch/datasets/edge_hill.py | cf10cf3de36f3b19998452cfd8f5b976b190f393 | [
"MIT"
] | permissive | John-Bioinfo/catch | a2ab188ed598767e7759f74227f24af2b284b379 | fe63b86bc41396c1da0b449ac440c6ae9e52b2c5 | refs/heads/master | 2020-03-18T09:29:10.315733 | 2018-04-17T18:36:47 | 2018-04-17T18:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | """Dataset with 'Edge Hill virus' sequences.
A dataset with 1 'Edge Hill virus' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
__author__ = 'Hayden Metsky <hayden@mit.edu>'
ds = GenomesDatasetSingleChrom(__name__, __... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
d4edd2f852135cddf0476d5791840279441aaa43 | ee6acbd5fcd0fcd16230e96a4a539de41a02c97e | /operators/kogito-operator/python/pulumi_pulumi_kubernetes_crds_operators_kogito_operator/app/v1beta1/KogitoBuild.py | d91f2df20c3ceb9d60d0ee8e62239b4dfb3b3337 | [
"Apache-2.0"
] | permissive | isabella232/pulumi-kubernetes-crds | 777e78137aaf6525a44b61a02dccf91bf0d87a14 | 372c4c0182f6b899af82d6edaad521aa14f22150 | refs/heads/master | 2023-03-15T04:29:16.039753 | 2020-12-30T19:35:54 | 2020-12-30T19:35:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,814 | py | # coding=utf-8
# *** WARNING: this file was generated by crd2pulumi. ***
# *** 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 . import outp... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
dc2ced6ebd425b3b49fe8865f2b2b0865e0d5ba7 | 5be5f49f289babb6d206174036ee96192bd340df | /dmsw/blog/migrations/0068_auto_20200720_1244.py | dd7c57f306a18cf5019281bd71b73f52a146ecc4 | [] | no_license | ogglin/DiscoverMoscow | 7ccd24481c31855b4d674bda213139a575fcb68c | 9634637107625b1e538a18533b25422d79869051 | refs/heads/master | 2022-12-04T11:12:26.131403 | 2020-09-01T10:19:11 | 2020-09-01T10:19:11 | 258,610,397 | 0 | 0 | null | 2020-05-27T12:05:32 | 2020-04-24T19:55:32 | Python | UTF-8 | Python | false | false | 852 | py | # Generated by Django 3.0.5 on 2020-07-20 09:44
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('blog', '0067_auto_20200714_1217'),
]
operations = [
migrations.AddField(
m... | [
"server.ares@gmail.com"
] | server.ares@gmail.com |
7031378d338db73ed6b6de0d2d76e176beb78699 | 9f75b9628cf4e7f69decd262c5ec1385c631a9bf | /src/bocm_audio/clear_archive.py | 5ca1772e8e5a22f81f14741ed96b50cf7def961e | [] | no_license | trackscorer/leadtel_2013 | 0a47830d32991ef04f8c3993090b428bcfd00c3f | 243b4bf95f8b1cfbac4b40baf3edb8b11fbd81e5 | refs/heads/master | 2020-04-26T02:11:47.818612 | 2016-04-13T05:20:10 | 2016-04-13T05:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | # -*- coding: utf-8 -*-
import sys,os
import traceback,threading,time,struct,os,os.path,shutil,distutils.dir_util,array,base64,zlib,struct,binascii
import datetime
import json,hashlib,base64
# set DJANGO_SETTINGS_MODULE=bocm_audio.settings
os.putenv("DJANGO_SETTINGS_MODULE","bocm_audio.settings")
from django.http i... | [
"24509826@qq.com"
] | 24509826@qq.com |
0c76daf26d8f8d4a7905381033b6c7a27f79623e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/timber/testcase/firstcases/testcase6_028.py | bef5c7687e9bbe6cb741c9a5ee1ab78e28cb4ee4 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,504 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
b27ea672ca7ef3a0eea3c579c1f942e3d9561ae2 | d260f1492f1d3cffb72bd4e8c67da7b0724fa5d5 | /tests/unit/cloud/test_azure.py | 6c0227bb371ca3c4c771a053bb854da9e1a7c380 | [
"Apache-2.0"
] | permissive | wyw64962771/fairing | 3be92ab22d596a360c6f8d70f678b3ada265e649 | 0cc639870ea3f773c5ae8a53c0ab16d4cda2ea6c | refs/heads/master | 2020-08-19T13:28:24.778189 | 2019-10-17T12:08:39 | 2019-10-17T12:08:39 | 215,924,578 | 1 | 0 | Apache-2.0 | 2019-10-18T02:23:58 | 2019-10-18T02:23:58 | null | UTF-8 | Python | false | false | 1,845 | py | import base64
import uuid
from unittest.mock import patch
from kubernetes import client
from azure.common.credentials import ServicePrincipalCredentials
from kubeflow.fairing.kubernetes.manager import KubeManager
from kubeflow.fairing.cloud.azure import get_azure_credentials
TEST_CLIENT_ID = str(uuid.uuid4())
TEST_C... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
fb22f39ab62ab468ff678cd7902e6fd163bf2b57 | 5585352909cb26420ec3f4b54df2253a2112c5c9 | /0830/largeGroupPositions.py | 669ee51784ec6c0d7cb2ae0da6b375fc3283d0ca | [] | no_license | minuso/leetcode | fd05472a782463b27575c9149081bcd38f03a7c5 | 56cafa52a6a3534efc2c32db4acf516b2a285a46 | refs/heads/master | 2020-04-25T17:18:56.299245 | 2019-06-16T16:19:09 | 2019-06-16T16:19:09 | 172,943,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | def largeGroupPositions(self, S: str) -> List[List[int]]:
res = []
cur_c, cur_start = '', 0
for i, c in enumerate(S + 'E'): # add an end character (non-lowercase)
if c != cur_c:
if i - cur_start >= 3:
res.append([cur_start, i-1])
cur_c, cur_start = c, i
re... | [
"minuscholar@gmail.com"
] | minuscholar@gmail.com |
22ecc7cd01d3eb945baec6a42d92d92ede4b0afd | 162489f7707c488f6feac3e2a93d3597d1c4e9d1 | /settings.py | abcae9e60f0399f88c9cd61929fa7530658112c7 | [] | no_license | npnkhoi/fehr-and-gaechter | d6b8eb53f6aaa1dfe461e3055008742e9b482371 | ce90ecec050bcd98300a8176bec2acdebb25dd7d | refs/heads/master | 2022-11-11T02:37:30.954308 | 2020-07-10T15:53:20 | 2020-07-10T15:53:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | import os
from os import environ
EXTENSION_APPS = ['pggfg']
# don't share this with anybody.
SECRET_KEY = 'ea_h#&kz!etxef1fikaehvncnk+#y13p##*x80-te1v)_%k#c4'
# e.g. EUR, CAD, GBP, CHF, CNY, JPY
REAL_WORLD_CURRENCY_CODE = 'USD'
USE_POINTS = True
# e.g. en, de, fr, it, ja, zh-hans
# see: https://docs.djangoproject.c... | [
"chapkovski@gmail.com"
] | chapkovski@gmail.com |
7b98de0332ad81c8a2c35382eb5b224f789f0a35 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_blitzing.py | 99b6f1a77bb4434d94c00dd3a6aa0e203905cba3 | [
"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 | 235 | py |
from xai.brain.wordbase.nouns._blitz import _BLITZ
#calss header
class _BLITZING(_BLITZ, ):
def __init__(self,):
_BLITZ.__init__(self)
self.name = "BLITZING"
self.specie = 'nouns'
self.basic = "blitz"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fafb83895dae4f29324273c43315ea948f1532c2 | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /dp/cloud/python/magma/db_service/migrations/versions/eb8b458ab3bf_.py | a59d2befb100ce83291da2d305274013b8452c0f | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 1,230 | py | """empty message
Revision ID: eb8b458ab3bf
Revises: 6234f59dd8e4
Create Date: 2022-02-16 18:43:51.510097
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = 'eb8b458ab3bf'
down_revision = '6234f59dd8e4'
branch_labels = None
depends_on = None
def upgrade():
"""... | [
"noreply@github.com"
] | magma.noreply@github.com |
08b3869970798eb52e385fb3f0d30d30b18af61c | 999ed80db247794159be1d752bc6f0fc272bd117 | /tests/common/plugins/allure_wrapper/allure_step_wrapper.py | 01fc256ecd2696fd3c75a4240f53aed05bd519eb | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | ramakristipati/sonic-mgmt | 7fee876412f0121da96d751f7d199690c73496f3 | a86f0e5b1742d01b8d8a28a537f79bf608955695 | refs/heads/master | 2023-08-31T07:55:38.446663 | 2023-08-31T06:34:53 | 2023-08-31T06:34:53 | 315,448,103 | 2 | 0 | NOASSERTION | 2020-11-23T21:44:07 | 2020-11-23T21:44:07 | null | UTF-8 | Python | false | false | 213 | py | import logging
from allure_commons._allure import step as raw_allure_step
logger = logging.getLogger(__name__)
def step(title):
logger.info("Allure step: {}".format(title))
return raw_allure_step(title)
| [
"noreply@github.com"
] | ramakristipati.noreply@github.com |
9061c8ce42b6459f7e87d83b9341f923b46f82f1 | dd363f8aafc7f931827a5e9227499ea78677893c | /backend/home/migrations/0001_load_initial_data.py | 72ece0442854b7b7c5ac48b56d13fa4be6794c68 | [] | no_license | crowdbotics-apps/shrill-dawn-27665 | 590d00bf39c5c90237e745b8bbbbf719aa4d0ca8 | 4bdfb623edf74e4f5946abd7cd405fa135fe550a | refs/heads/master | 2023-05-14T12:29:11.804542 | 2021-06-01T23:56:05 | 2021-06-01T23:56:05 | 372,989,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "shrill-dawn-27665.botics.co"
site_params = {
"name": "Shrill Dawn",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
75fa655979c39151228f750e985826887373d951 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/CancelAutoSnapshotPolicyRequest.py | 0ff5b538d7bd660a18964a2cc62213e908821c9c | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,449 | 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 |
8e8a26882d8d2d0f351a60d2649b24b358d2832d | 45a00518abed3ef4796655d8d2a0677f29961aa3 | /example 46/python_venv/lib/python3.8/site-packages/matplotlib/tests/test_contour.py | 41d4dc8501bd76a5a0a674db5f3b343c240c6aa3 | [] | no_license | ruiwu1990/CSCI_4710_6710 | 07b92e456d6cda3e63a5b5d078c1718110317555 | 6e32c89ef70fbe4b4a5db14682dc94b13bab6d9e | refs/heads/master | 2023-05-03T21:50:54.943702 | 2023-04-18T21:48:43 | 2023-04-18T21:48:43 | 174,882,138 | 9 | 17 | null | 2023-05-01T20:53:06 | 2019-03-10T21:18:01 | Python | UTF-8 | Python | false | false | 25,672 | py | import datetime
import platform
import re
import contourpy
import numpy as np
from numpy.testing import (
assert_array_almost_equal, assert_array_almost_equal_nulp)
import matplotlib as mpl
from matplotlib.testing.decorators import image_comparison
from matplotlib import pyplot as plt, rc_context, ticker
from matp... | [
"raywu1990@nevada.unr.edu"
] | raywu1990@nevada.unr.edu |
7aa765f15218efe7a603c7706164e3c41d6df2d1 | b0e2fbf24d8f597903c296d407fd26565d177f7d | /homework2/exercise_brick**.py | dd9f166340e15a1a8f47b10b6c81ee5d21c32ee1 | [] | no_license | suguby/promprog15_1 | 6c5155935ff34d71f383734323f212ab372b6fb9 | 7b4d92adf31ee8eefa5211cb98a572432b13d6f1 | refs/heads/master | 2021-01-02T22:57:18.540034 | 2015-10-15T20:50:04 | 2015-10-15T20:50:04 | 42,125,242 | 1 | 8 | null | 2015-09-22T17:02:31 | 2015-09-08T16:37:20 | Python | UTF-8 | Python | false | false | 573 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Заданы размеры А, В листа бумаги и x, y - размеры конверты
# Определить, поместится ли бумага в конверте
A, B = 8, 9
x, y = 10, 7
# x, y = 10, 17
if ...:
...
elif ...:
...
else:
...
# (**усложненное) Заданы размеры А, В прямоугольного отверстия и размеры... | [
"suguby@gmail.com"
] | suguby@gmail.com |
3131b8eaa498ae6655a38f0fa924c1cc7f65fa18 | a785bdfab7acc8a039daf8b736bea4c4ccfae629 | /aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/QuerySlotTemplateRequest.py | c484f14d59c2b68caa4cabf05874f998244df10e | [
"Apache-2.0"
] | permissive | ChenQQ96/aliyun-openapi-python-sdk | 9ebc569f40a374359d8471206397ef4adb7a56c7 | cfc9461599f6ca3ec9dc13fbfb0d03d96e4a1f93 | refs/heads/master | 2023-07-12T19:37:57.987281 | 2021-08-17T09:43:32 | 2021-08-17T09:43:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | 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 |
ff481f1c91ca8c4e0acfd6275a134691a9eeb66b | c3d34ba5b07637216435b0453ddeed06ad98466a | /src/models/alerts/views.py | 722550b521adb541abd9e7580c63fe25c85b96d0 | [] | no_license | MiscCoding/Flask_blueprint_project | 8f247377b78ec3ae0db3578a99982b94a2317eda | bd429c113625f39a6a685b46c39a90ea486bfc70 | refs/heads/master | 2020-03-22T12:40:40.315924 | 2018-09-02T14:38:07 | 2018-09-02T14:38:07 | 140,055,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from flask import Blueprint
__author__ = "inchan"
alert_blueprint = Blueprint('alerts', __name__)
@alert_blueprint.route('/new', methods=['POST'])
def create_alert():
pass
@alert_blueprint.route('/deactivate/<string:alert_id>')
def deactivate_alert(alert_id):
pass
@alert_blueprint.route('/alert/<string:ale... | [
"neogeo-s@hanmail.net"
] | neogeo-s@hanmail.net |
557dd9a3375ac8b4f6b2582624eff283a757db60 | 26176e7060424dd742d9959f5ffc0abe549de3c0 | /wsgi/myproject/api/migrations/0002_dnspodaccount.py | 87cc4a2f9498f233641412a3ee1b14f0ff58ead7 | [] | no_license | luodichen/monitor | 2f7a998ea698d16de0ba8e03b7327059e1f5bc4d | de0c049f469b9715d65a64c32e5826a3bb531e80 | refs/heads/master | 2020-06-06T03:19:31.869275 | 2015-09-29T21:15:26 | 2015-09-29T21:15:26 | 40,363,083 | 0 | 0 | null | 2015-08-09T11:47:48 | 2015-08-07T13:59:21 | Python | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='DNSPodAccount',
fields=[
... | [
"me@luodichen.com"
] | me@luodichen.com |
a5f38de998b857fe755835efe8277c43adc69b84 | 24a1da610a57d9558a7261ed9ca92b20d8689634 | /March/8Day/Flatten_Binary_Tree_to_Linked_List.py | 2d26ab6b0e1426d2551d3151772f1a56822f60f5 | [] | no_license | JadeKim042386/LeetCode | b5b70a8100a19d705150f276ee8e0dc11c5038b2 | 77234a14dc97bd0e023842cd57698b37d1460511 | refs/heads/master | 2023-06-09T20:16:36.352246 | 2021-07-06T09:25:15 | 2021-07-06T09:25:15 | 349,680,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def __init__(self):
self.tmp = None
def flatten(self, root: TreeNode) -> None:
if not root:
return
sel... | [
"jk042386@gmail.com"
] | jk042386@gmail.com |
f1fd342dda669c9c94838145cd204dcd2cb94cea | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_addressees.py | 75cfbb1caa88b2c7e49b7d837d7f5d6e0cd39f94 | [
"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 | 259 | py |
from xai.brain.wordbase.nouns._addressee import _ADDRESSEE
#calss header
class _ADDRESSEES(_ADDRESSEE, ):
def __init__(self,):
_ADDRESSEE.__init__(self)
self.name = "ADDRESSEES"
self.specie = 'nouns'
self.basic = "addressee"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
48d99cc358f2a7f1b8f69d15638bd53ea50e4bbf | 54ab0f79f5d68f4732ca7d205f72ecef99862303 | /torch/utils/weak.py | 77d8eca4420e41bee0e5d3bf966eae621629aad2 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csarofeen/pytorch | a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc | e8557ec5e064608577f81e51ccfe7c36c917cb0f | refs/heads/devel | 2023-04-30T02:42:13.558738 | 2023-03-14T00:50:01 | 2023-03-14T00:50:01 | 88,071,101 | 35 | 10 | NOASSERTION | 2023-06-21T17:37:30 | 2017-04-12T16:02:31 | C++ | UTF-8 | Python | false | false | 8,983 | py | import weakref
from weakref import ref
from _weakrefset import _IterationGuard # type: ignore[attr-defined]
from collections.abc import MutableMapping, Mapping
from typing import Dict
import collections.abc as _collections_abc
__all__ = ['WeakIdRef', 'WeakIdKeyDictionary', 'WeakTensorKeyDictionary']
# This file de... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
5da0367d38d553097f92bbba987a6e357e7f2cdb | 657c06da452b5e5caa94f49e5d98ff3fe8596092 | /source/LazyTextDataset.py | 0b3dd66ccaf541f661e740b6ab0148e992ea5de6 | [] | no_license | elangovana/pytorch-sample-loadlargedataset | 7315ea37366ab6fe5f49e992825b00082529da73 | 32453dc0a0cddbc3613f4592abe7763a71ed5b0a | refs/heads/master | 2020-03-22T10:57:22.616213 | 2018-07-06T10:34:48 | 2018-07-06T10:34:48 | 139,938,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import linecache
import logging
from torch.utils.data import Dataset
class LazyTextDataset(Dataset):
def __init__(self, filename):
self._filename = filename
self._logger = logging.getLogger(__name__)
self._logger.debug("Initialising for file {}".format(filename))
self._total_data ... | [
"aeg@amazon.com"
] | aeg@amazon.com |
8105e2ec74684919795ff4e082ee488e775259dd | ffbfb86db9dac89c1cc24e648b199a8d3db9850f | /python/duplicates/myFunctions.py | 83c4901539201709ee029ecbc6e4f64c31a2f568 | [] | no_license | attikis/programming | e7ecef5c2bf2af71a3e89e6156a4a934fb2ed724 | 4b6215021d6ca1effd0f18ecfe8afc67056b7098 | refs/heads/master | 2021-05-09T21:51:40.425627 | 2019-02-19T07:22:56 | 2019-02-19T07:22:56 | 118,735,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,886 | py | #!/usr/bin/env python
# Permissions : chmod +x fileName.py
# To launch : Strictly an input module to be used in other executable scripts
# Definition : My very first generic functions class, to be used for simple coding.
'''
Usage:
import python_myFunctions as myFs
Description:
In this python module I define som... | [
"attikis@cern.ch"
] | attikis@cern.ch |
99152a3868efff21b3b7a8ac7b9f57bad42c4562 | 8fb1d41797595550418ecfc0e7558f38254b4606 | /django/core/management/color.py | f16425f13182e0a4b8ec1d004b02b8667a49f38a | [
"MIT"
] | permissive | hunch/hunch-gift-app | 2aad70a9f18124bf0de02d7a125fa93c765da008 | 8c7cad24cc0d9900deb4175e6b768c64a3d7adcf | refs/heads/master | 2016-09-06T03:13:52.153974 | 2012-03-26T18:11:59 | 2012-03-26T18:11:59 | 1,191,221 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | """
Sets up the terminal color scheme.
"""
import os
import sys
from django.utils import termcolors
def supports_color():
"""
Returns True if the running system's terminal supports color, and False
otherwise.
"""
unsupported_platform = (sys.platform in ('win32', 'Pocket PC'))
#... | [
"gleitz@hunch.com"
] | gleitz@hunch.com |
cdcb8fc73964acd51c03c5fc4237628eb2b325f0 | d1bbb492d66ec6ab70545231dc52ae89a5612c5c | /examples/AutoscalingHTTPRequests.py | e8e4d1a3f1a5f4ba84568554ea91113d88a044cd | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | datadotworld/troposphere | 40d790d8e596a93346d415c5bc5b002dbbdfe7c8 | c1e10b18f47c4d693ca52cf1970055c30b8d4c04 | refs/heads/main | 2023-04-12T14:21:17.299043 | 2022-02-09T16:59:23 | 2022-02-09T16:59:23 | 61,240,075 | 0 | 0 | BSD-2-Clause | 2023-04-04T01:53:25 | 2016-06-15T20:50:26 | Python | UTF-8 | Python | false | false | 9,377 | py | import troposphere.ec2 as ec2
import troposphere.elasticloadbalancing as elb
from troposphere import (
Base64,
Join,
Parameter,
Ref,
Template,
autoscaling,
cloudformation,
)
from troposphere.autoscaling import (
AutoScalingGroup,
LaunchConfiguration,
ScalingPolicy,
Tag,
)
fro... | [
"mark@peek.org"
] | mark@peek.org |
358534e371708d87618b8984fd8e2677291f9d11 | 3ae62276c9aad8b9612d3073679b5cf3cb695e38 | /easyleetcode/leetcodes/Leetcode_098_Validate_Binary_Search_Tree.py | 9eeefd1c98b1e5657d5ebd2529cda13e7c903b90 | [
"Apache-2.0"
] | permissive | gongtian1234/easy_leetcode | bc0b33c3c4f61d58a6111d76707903efe0510cb4 | d2b8eb5d2cafc71ee1ca633ce489c1a52bcc39ce | refs/heads/master | 2022-11-16T17:48:33.596752 | 2020-07-13T02:55:03 | 2020-07-13T02:55:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py |
class Solution:
def isValidBST(self, root):
if root == None: return True
return self.valid(root, -(2 ** 32), 2 ** 32)
def valid(self, root, low, high):
if root == None: return True
if root.val <= low or root.val >= high: return False
# 左边 在 low : root.val之间
# 右边... | [
"425776024@qq.com"
] | 425776024@qq.com |
f7920bf4b07d29f42839c53f8aefeb9dc2a7d570 | 920d1bb0af9846e394833b5914fdf1267fa92837 | /tests/torch/quantization/test_algo_quantization.py | 53ce92a59fb9b4cb38c63c3e5ff6a5f5efe2c06e | [
"Apache-2.0"
] | permissive | macsz/nncf | f60104af19bfcc55e0b52a367c0c84cbf815a822 | a8af39627647ddbb89ef33cf42ff42e9c048b981 | refs/heads/develop | 2023-07-06T04:30:53.706121 | 2023-06-23T17:24:48 | 2023-06-23T17:24:48 | 335,070,470 | 0 | 0 | Apache-2.0 | 2023-05-05T19:39:42 | 2021-02-01T20:08:14 | Python | UTF-8 | Python | false | false | 37,861 | py | # Copyright (c) 2023 Intel Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writ... | [
"noreply@github.com"
] | macsz.noreply@github.com |
ebad2217b21f56ff7aa36e7fa311584c7ce9205e | defe7d7a1a8c6fe63ea305e2977bc6fc3c231684 | /cfme/tests/integration/test_aws_iam_auth_and_roles.py | 5bbb84e46ba72e2caff01a6f79500ed5eef73984 | [] | no_license | weissjeffm/cfme_tests | 9f95b1fdcedeecd2251ca0a68afb50c48d64c4ae | 423601d0edb9d21d81c061020cb5febe17b14ec4 | refs/heads/master | 2021-01-17T18:21:04.583748 | 2014-04-14T20:27:10 | 2014-04-14T20:27:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | import pytest
from cfme.login import force_login_user
from cfme.web_ui import menu
from utils.conf import credentials
from utils.testgen import auth_groups, generate
pytest_generate_tests = generate(auth_groups, auth_mode='aws_iam')
def test_group_roles(configure_aws_iam_auth_mode, group_name, group_data):
"""B... | [
"sean.myers@redhat.com"
] | sean.myers@redhat.com |
a0b6a68d2af1309f7dd1f3cbc68173a4c146978e | bcfa0dd4167bfa058aaca865137762ce56d5a9a7 | /tests/nocoverage/test_stress.py | 160b1880d03aabf11d20b5176993044b12370809 | [
"BSD-2-Clause"
] | permissive | wangkai2014/EasyProcess | c7885f21f1b4e1add0abb5770db9f2b49dc4690d | 81c2923339e09a86b6a2b8c12dc960f1bc67db9c | refs/heads/master | 2020-04-23T06:04:14.104128 | 2019-01-04T15:21:37 | 2019-01-04T15:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from easyprocess import EasyProcess
from easyprocess import EasyProcessError
from nose.tools import eq_
from nose.tools import timed
from nose.tools import assert_not_equal as neq_
# if run with coverage:
# Fatal Python error: deallocating None
@timed(1000)
def test_timeout(): # pragma: no cover
for x in... | [
"ponty@home"
] | ponty@home |
2b718310331e4ad4cff1ceda49189a62d2f82aea | 56b63ee537f872af0fc028016d1508b4c1dd5c60 | /school/migrations/0023_remove_cowmilkrates_test.py | 226bba2e2fac766f4ea7eb4565c19f0c5a238e6c | [] | no_license | jacknjillsolutionsrevanth/EMS1 | 01fc571120f765b0fbfe3aa654b15ff578d6e9b9 | db14d8e6c15669b5938aa9276c5e22006218814a | refs/heads/main | 2023-08-03T19:40:50.073133 | 2021-10-01T07:02:37 | 2021-10-01T07:02:37 | 410,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | # Generated by Django 3.0.4 on 2020-09-30 09:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('school', '0022_cowmilkrates_test'),
]
operations = [
migrations.RemoveField(
model_name='cowmilkrates',
name='test',
... | [
"jacknjillsolutions.revanth@gmail.com"
] | jacknjillsolutions.revanth@gmail.com |
b09a033195795503c5966664ddf90aafabcf623c | c9669c314c74b5d7f3098f75fe359b036f241eea | /src/transformers/models/gpt_neo/convert_gpt_neo_mesh_tf_to_pytorch.py | 1c630fb2d85884dae7d3fa4bd7cb59c255815f21 | [
"Apache-2.0"
] | permissive | stanford-crfm/transformers | c5439f53bc777a43a9adc02ecedb561facdb4b79 | 8575081fa36a0ff7c7f90a779f1e5ae7633dfbd8 | refs/heads/mistral-v1 | 2023-08-23T22:15:32.268675 | 2021-09-28T19:44:38 | 2021-09-28T19:44:38 | 337,241,186 | 5 | 1 | Apache-2.0 | 2021-09-15T04:18:36 | 2021-02-08T23:45:32 | Python | UTF-8 | Python | false | false | 2,555 | py | # coding=utf-8
# Copyright 2021 The Eleuther AI and HuggingFace Inc. team.
#
# 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 requir... | [
"noreply@github.com"
] | stanford-crfm.noreply@github.com |
aa56451137c8f3baa4f8e76ff65ce25befacb041 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/model_test.runfiles/com_google_fhir/external/pypi__tensorboard_1_12_1/tensorboard/plugins/custom_scalar/__init__.py | 2c43bea427fe9da80e6325773f6ec600f5a756bc | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 156 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorboard_1_12_1/tensorboard/plugins/custom_scalar/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
86f4a6b96468ab11c5d88649cbc8790a6a6935e6 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/CALA.py | 2cac704beaf83824d1d3057a7876cfe7cc3ae4ae | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://ir.calithera.com/news-releases'
heade... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
651a76c9d3836451fbc0fd976a30be0702bc65af | 1d88ed99e2f01b6b0faa7acf762543f41569380c | /top/urllib2.py | cb937b764ccafafd9b4168be2030f466a3ae629b | [] | no_license | loum/top | be0ae6951ed7d5834d14f96403d6cd1dc9d008a4 | 4d9aae6297793822b6de28b65f7639a4b2e6dcfa | refs/heads/master | 2016-09-10T10:38:41.312180 | 2014-06-05T05:44:48 | 2014-06-05T05:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,178 | py | """An extensible library for opening URLs using a variety of protocols
The simplest way to use this module is to call the urlopen function,
which accepts a string containing a URL or a Request object (described
below). It opens the URL and returns the results as file-like
object; the returned object has some extra me... | [
"lou.markovski@gmail.com"
] | lou.markovski@gmail.com |
3abae68430d0adb226aef2cad65bdc72682df2e5 | 23bf49325fae1eb4400bc1456c9a14cd5feb5ed4 | /code/standalone/supplementary_figures/hex_5_dash/script_hex_5_dash.py | b8e5d51429bc581bcb3e7874f9552fae2addc831 | [] | no_license | bartandrews/infinite_cylinder | 0221099e4bae9eb5b4e178fb7cadcee52b99f0b1 | 3277a5b33bd4c0cf8921adf48f6b9d7e919adb88 | refs/heads/master | 2023-07-13T23:27:26.407087 | 2021-08-26T16:03:14 | 2021-08-26T16:03:14 | 173,958,690 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | import numpy as np
import matplotlib.pyplot as plt
import sys
q = 199 # prime > 7
def matrix_eigenvalues(p, M):
k = [0, 0]
a = 1
c = np.sqrt(3) * a / 6
eta = 3 * k[0] * M * a / 2
alpha = float(p / q)
matrix = np.zeros(shape=(M, M), dtype=np.complex128)
def A(phi, m):
return -... | [
"bandrews@physik.uzh.ch"
] | bandrews@physik.uzh.ch |
eaecf3f075ef37f21c37d17a04c69e8813f370b2 | 904f80808061d498e9c8aeaccee5de172b5e97e6 | /kerasweb/ozone.py | 108996ff375acd09fd7de2803e2ddf46a04d3cab | [] | no_license | Orderlee/tjoeun | ad48691f439f47b5518f374ca3089c9d5f2e845e | e494b39ee4574076b52ab1cc2b93443ee0572bae | refs/heads/master | 2022-12-23T07:35:07.481383 | 2020-09-27T14:20:30 | 2020-09-27T14:20:30 | 298,336,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | from flask import Flask, render_template,request
from keras.models import load_model
import numpy as np
#MinMaxScaler를 불러오기 위한 패키지
import joblib
#플라스크 앱을 만들고
app=Flask(__name__)
#http://127.0.0.1로 --> main() 함수 실행
@app.route('/')
def main():
#templates/ozone/input.html 페이지가 출력됨
return render_temp... | [
"61268230+Orderlee@users.noreply.github.com"
] | 61268230+Orderlee@users.noreply.github.com |
f81891725f94d8e97d8005eb036983e53ca92f91 | d78ab6c966c3fb091e32243417684b69502b691b | /mailinglist/urls.py | af5630cc32bddd96364bcad373d129b4cc9ca07e | [] | no_license | Grayw0lf/mailape | fcc40ed42fb6fe263b54b3df5443208e0679d2c2 | 1321a4d52b2aaee411616b6ee8d3c7d9ae3a448f | refs/heads/master | 2020-04-14T06:43:32.855925 | 2018-12-31T19:53:33 | 2018-12-31T19:53:33 | 163,694,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | from django.urls import path
from mailinglist import views
app_name = 'mailinglist'
urlpatterns = [
path('', views.MailingListListView.as_view(), name='mailinglist_list'),
path('new/', views.CreateMailingListView.as_view(),
name='create_mailinglist'),
path('<uuid:pk>/delete/', views.DeleteMailing... | [
"akosheev@rambler.ru"
] | akosheev@rambler.ru |
ff01b301fb45c42ab3847aa5a4df9d4ac3ded03b | 464850ba426263b17084fc71363ca14b8278b15e | /inner_fun1.py | b680999d71bc497173260aed0cf10c03a00bbd39 | [] | no_license | eng-arvind/python | 8442c30ec10f979f913b354458b4f910539d8728 | 249f5f35f245a3f1742b10310de37ca6c6023af2 | refs/heads/master | 2020-12-23T06:40:16.911269 | 2020-02-02T18:42:01 | 2020-02-02T18:42:01 | 237,069,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | print("started")
def display(abc):
print("display started")
def inner(a,b):
print("inner started")
abc(a,b)
print("inner ended")
print("display ended")
return inner
def sample(a,b):
print("sample started")
print(a,b)
print("sample ended")
a=display(sample... | [
"noreply@github.com"
] | eng-arvind.noreply@github.com |
4e2344a08f7eb46185c0ff00ad30ffc75e7d2313 | 23f4584630c4b13fa54ebca8b1345a020605db10 | /test/dataset/test_graph.py | fe935ee9d8e00d06497597086eea83eaa845014f | [
"MIT"
] | permissive | chenxofhit/singlet | 2aebe1d2a3700d498b1772301611dcebd0ddb966 | c9264cf3451f816f9a256d4aa0b32c8b674638ae | refs/heads/master | 2020-06-04T08:45:47.050305 | 2019-05-01T20:46:02 | 2019-05-01T20:46:02 | 191,950,542 | 2 | 0 | null | 2019-06-14T13:45:50 | 2019-06-14T13:45:50 | null | UTF-8 | Python | false | false | 1,691 | py | # vim: fdm=indent
'''
author: Fabio Zanini
date: 31/01/19
content: Test graphs.
'''
import numpy as np
import pytest
try:
import lshknn
miss_lshknn = False
except ImportError:
miss_lshknn = True
@pytest.fixture(scope="module")
def ds():
from singlet.dataset import Dataset
return Da... | [
"fabio.zanini@fastmail.fm"
] | fabio.zanini@fastmail.fm |
f03de87b563a47a6d11b4fe8d712fe686ded159c | 0869d7edac80e8aebe951682a2cc311a083eade3 | /Python/tdw/FBOutput/DynamicEmptyObjects.py | 8ffd2b207c9252d51e847e88b9ea8909a72035fe | [
"BSD-2-Clause"
] | permissive | threedworld-mit/tdw | 7d5b4453832647733ff91ad7a7ce7ec2320454c1 | 9df96fba455b327bb360d8dd5886d8754046c690 | refs/heads/master | 2023-09-01T11:45:28.132298 | 2023-08-31T16:13:30 | 2023-08-31T16:13:30 | 245,492,977 | 427 | 75 | BSD-2-Clause | 2023-09-14T17:36:12 | 2020-03-06T18:42:09 | Python | UTF-8 | Python | false | false | 1,770 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FBOutput
import tdw.flatbuffers
class DynamicEmptyObjects(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsDynamicEmptyObjects(cls, buf, offset):
n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packer.uoffset... | [
"alters@mit.edu"
] | alters@mit.edu |
845fc76f5f24d80ac96481a59a259207f66deca5 | 00748cbc97dbabae4e7322a94758c36f9c8b6b83 | /apps/dasa/tests/test_functional.py | 343c3b04ce1c97dbff3d34d0ba0dbd957d3d47f0 | [] | no_license | sejarah-nusantara/site | 17620c51e63af25acc0d344c0b0de5359afb099e | bce434246ed161fce3400adb72cf6002ab46339a | refs/heads/master | 2021-01-25T13:06:58.040902 | 2019-09-08T09:24:06 | 2019-09-08T09:24:06 | 123,530,704 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | #
# http://jeanphix.me/2012/01/20/django-real-world-functional-testing/
# from django.test import LiveServerTestCase
#
# from selenium.webdriver.firefox.webdriver import WebDriver
#
# from selenium.webdriver.support.ui import WebDriverWait
#
#
# class BaseLiveTest(LiveServerTestCase):
# @classmethod
# def setUpC... | [
"github@gerbrandy.com"
] | github@gerbrandy.com |
c31695c4b638a2a56ec7ac9c6aec6924064a1c20 | 77386a2d58abcec88db12eea4e108c7041e36f7f | /graphfp/custom_funcs.py | 6fb80d6e2b2513a06886bc88f44ae06b5ab2572f | [
"MIT"
] | permissive | afcarl/graph-fingerprint | f76f8e5aa482a35b57d4e9b17f1748708b3056c7 | ff9dea8a4d1e7e90d17d36b14cce56e393b4d31a | refs/heads/master | 2020-03-18T10:03:42.056974 | 2018-02-19T15:00:58 | 2018-02-19T15:00:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,652 | py | import math
from random import sample
import autograd.numpy as np
import networkx as nx
def make_random_graph(nodes, n_edges, features_dict):
"""
Makes a randomly connected graph.
"""
G = nx.Graph()
for n in nodes:
G.add_node(n, features=features_dict[n])
for i in range(n_edges):
... | [
"ericmajinglong@gmail.com"
] | ericmajinglong@gmail.com |
15d4a7586122c47e024ad293faf9d0cc0415ea3c | c615ce02ca4d5c2b4d30f50ea14437d8a6ebdf5e | /config.py | eb4c07bd6009a7d0269a2b6feaf01f8ba31d9f07 | [] | no_license | Xuefeng-Zhu/tetris | a52805d928fc6a8ed568a447dd11db945cec1dd2 | a0f338b117ce9fd66050625b4cf44f45388d0b4f | refs/heads/master | 2021-01-19T07:03:13.752980 | 2016-06-04T19:00:55 | 2016-06-04T19:00:55 | 60,407,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | HEIGHT = 20
WIDTH = 20
ACTIONS = {
'a': 'move_left',
'd': 'move_right',
'n': 'move_down',
'w': 'rotate_counter_clockwise',
's': 'rotate_clockwise',
}
class OverlapError(Exception):
pass
| [
"xzhu15@illinois.edu"
] | xzhu15@illinois.edu |
4a5682733456c5918ca36a0783ce90acc0c14c35 | d8574d8ca5c571fd7ed3b67dac00c55df2ac6580 | /tools/forklift/python/forklift/arlcm/pointlist3d_t.py | 287cf848bca387023b3378f52235b796fea62d80 | [] | no_license | h2r/slu_core | 19de87e55e84dd4dada65b4d7b65857bdae740e8 | e30c0245177e8481397fd4987422e3d35d79ec08 | refs/heads/master | 2021-07-09T18:19:33.424551 | 2020-07-06T18:49:18 | 2020-07-06T18:49:18 | 143,929,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,130 | py | """LCM type definitions
This file automatically generated by lcm.
DO NOT MODIFY BY HAND!!!!
"""
import cStringIO as StringIO
import struct
import point3d_t
class pointlist3d_t(object):
__slots__ = ["utime", "npoints", "points"]
def __init__(self):
self.utime = 0
self.npoints = 0
self... | [
"stefie10@alum.mit.edu"
] | stefie10@alum.mit.edu |
3323a985e145c1906575077e8180165dcda92a5f | 255e7b37e9ce28bbafba5a3bcb046de97589f21c | /suqing/fuckal/python/dp/leetcode_123.py | 108970f77d8dfb897f88af9e1af767e407155802 | [] | no_license | dog2humen/ForTheCoffee | 697d2dc8366921aa18da2fa3311390061bab4b6f | 2f940aa9dd6ce35588de18db08bf35a2d04a54f4 | refs/heads/master | 2023-04-15T09:53:54.711659 | 2021-04-28T13:49:13 | 2021-04-28T13:49:13 | 276,009,709 | 2 | 2 | null | 2020-07-01T08:29:33 | 2020-06-30T05:50:01 | Python | UTF-8 | Python | false | false | 1,454 | py | # coding:utf8
from typing import List
class Solution:
def maxProfit(self, prices: List[int]) -> int:
'''
dp[i][j][k]
dp[i][0][k] = max(dp[i - 1][0][k], dp[i - 1][1][k] + prices[i])
dp[i][1][k] = max(dp[i - 1][0][k - 1] - prices[i], dp[i - 1][1][k])
k = 2
... | [
"116676671@qq.com"
] | 116676671@qq.com |
32d4850b89cc4d6aed9d6a5dc3291be73f91f23a | 3ea99519e25ec1bb605947a94b7a5ceb79b2870a | /modern_python/modernpython/lib/mypy/typeshed/stdlib/3.4/enum.pyi | b77d23cc570b18676d5960c388257e8e73bc65f5 | [] | no_license | tech-cow/spazzatura | 437c7502a0654a3d3db2fd1e96ce2e3e506243c0 | 45fc0932186d2ef0c5044745a23507a692cfcc26 | refs/heads/master | 2022-09-01T12:01:11.309768 | 2018-11-15T04:32:03 | 2018-11-15T04:32:03 | 130,414,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,560 | pyi | import sys
from typing import List, Any, TypeVar, Union, Iterator, TypeVar, Generic, Type, Sized, Mapping
from abc import ABCMeta
_T = TypeVar('_T')
_S = TypeVar('_S', bound=Type[Enum])
# Note: EnumMeta actually subclasses type directly, not ABCMeta.
# This is a temporary workaround to allow multiple creation... | [
"yuzhoujr@yuzhou-7480.internal.synopsys.com"
] | yuzhoujr@yuzhou-7480.internal.synopsys.com |
91aedb43a182b1ae0f43363903c211101c5bfabe | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/html_gen_20210204144903.py | a6681c7b5341fedd1faefcf0c3fc1c996ad4c1c2 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,909 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : html_gen.py
@Time : 2021/02/04 14:49:02
@Author : Jiajun Chen
@Version : 1.0
@Contact : 554001000@qq.com
@License : (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
'''
# here put the import lib
import pickle
from bs4 import BeautifulSoup
imp... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
0eb2c0d949537fd951d9a2d079de5b77ffb7eb30 | b05b89e1f6378905bbb62e2a2bf2d4f8e3187932 | /deepestNodeInTree.py | a1dc21e5d6855683102ce952e471161084c2eaec | [
"MIT"
] | permissive | anishmo99/Daily-Interview-Pro | c959cd336209132aebad67a409df685e654cfdfc | d8724e8feec558ab1882d22c9ca63b850b767753 | refs/heads/master | 2023-04-10T08:09:46.089227 | 2021-04-27T07:27:38 | 2021-04-27T07:27:38 | 269,157,996 | 1 | 1 | MIT | 2020-06-08T07:09:19 | 2020-06-03T17:57:21 | C++ | UTF-8 | Python | false | false | 1,042 | py | class Node(object):
def __init__(self, data):
self.data = data
self.left = None
self.right = None
# maxLevel : keeps track of maximum
# level seen so far.
# res : Value of deepest node so far.
# level : Level of root
def find(root, level, maxLevel, res):
if (root != None):
leve... | [
"ani10sh@gmail.com"
] | ani10sh@gmail.com |
04eb4065d1a1a483e80b25341358d76e4c554cee | 7b0e6119c623204eef4c09175b7e5442d3802c94 | /DJANGO/bin/aws-shell-mkindex | e52e3f2548b0d788e4c75f41b94cf26980cded7e | [] | no_license | Esawyer25/axoGene | eee9cdeee3b9fee05faab58b82d17319bc2221a7 | e112175353bfc4d3a35e022a5c2ad1f27bb359b7 | refs/heads/master | 2020-03-26T19:05:31.215163 | 2018-08-18T19:48:37 | 2018-08-18T19:48:37 | 145,248,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | #!/Users/eva/Documents/ada/capstone/capstone_project/DJANGO/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from awsshell.makeindex import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"esawyer25@gmail.com"
] | esawyer25@gmail.com | |
24770e5896f170d0e2f83b19282a22ce7feba7e9 | cbfaaeb2e84dc46bf1399001fc81d186c3735fbb | /multitenancy/admin/tenant.py | 20614d41153ba1fb8cd7a989118f7533e1c5f728 | [
"Apache-2.0"
] | permissive | cmalek/django-site-multitenancy | fb7de99feb2c8578ae7f7d3885be153da82c8582 | 1b943f63c0d6247529805e05dcced68ceffa2a69 | refs/heads/master | 2022-01-14T05:23:21.393988 | 2022-01-08T20:39:16 | 2022-01-08T20:39:16 | 188,897,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,384 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.contrib import admin, messages
from django.contrib.auth.models import Group
from django.utils.html import format_html
from ..forms import TenantSpecificModelForm
from ..models import (
Tenant,
TenantGroup,
)
from django.core.exceptions import Multiple... | [
"cmalek@caltech.edu"
] | cmalek@caltech.edu |
b7d82ebc75f854fc707a16bb2413d13b3c20e873 | 7312266874e50682cf909f4b77260c9a69f13999 | /python/packages/scipy-0.6.0/scipy/io/mmio.py | e0f05ce11d33463995992e137752ec2b0dfbfa8c | [] | no_license | mbentz80/jzigbeercp | e354695b90a72c7fe3c5c7ec7d197d9cbc18d7d9 | 1a49320df3db13d0a06fddb30cf748b07e5ba5f0 | refs/heads/master | 2021-01-02T22:44:16.088783 | 2008-08-27T23:05:47 | 2008-08-27T23:05:47 | 40,231 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,723 | py | ## Automatically adapted for scipy Oct 19, 2005 by convertcode.py
"""
Matrix Market I/O in Python.
"""
#
# Author: Pearu Peterson <pearu@cens.ioc.ee>
# Created: October, 2004
#
# References:
# http://math.nist.gov/MatrixMarket/
#
# TODO: support for sparse matrices, need spmatrix.tocoo().
import os
from numpy impo... | [
"mb434@cornell.edu"
] | mb434@cornell.edu |
55a04cf8edb77c2be1989b7a6d25399c757dee01 | f0eadce9fa0a2cc0dc4cbe2f534df8952bb97c66 | /test/test_transforms_tensor.py | fb07112bb83dd78d1d4da6cc1b91e37fd9075695 | [
"BSD-3-Clause"
] | permissive | Hsuxu/vision | e78ea6bfbc8aa50c56573b467939e86df0138d07 | 8d3fb3455d5e1acb0fed412ece913b73774fbca4 | refs/heads/master | 2022-12-02T05:35:54.121664 | 2021-12-20T12:06:53 | 2021-12-20T12:06:53 | 215,186,338 | 1 | 0 | BSD-3-Clause | 2019-10-15T02:18:27 | 2019-10-15T02:18:27 | null | UTF-8 | Python | false | false | 31,908 | py | import os
import numpy as np
import pytest
import torch
from common_utils import (
get_tmp_dir,
int_dtypes,
float_dtypes,
_create_data,
_create_data_batch,
_assert_equal_tensor_to_pil,
_assert_approx_equal_tensor_to_pil,
cpu_and_gpu,
assert_equal,
)
from torchvision import transform... | [
"noreply@github.com"
] | Hsuxu.noreply@github.com |
f1f13dfaf29c701b1f835fce8dfa5c0897fc9c00 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/gui/Scaleform/daapi/view/lobby/rally/vo_converters.py | e9b37394fb8ee0b3b24613109f9ab3aadb23645b | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,304 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/rally/vo_converters.py
import BigWorld
from constants import MAX_VEHICLE_LEVEL, MIN_VEHICLE_LEVEL
from constants import VEHICLE_CLASS_INDICES, VEHICLE_CLASSES, QUEUE_TYPE
from gui import makeHtmlString
from gui.Scaleform.settings import getBadgeIconPat... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
932688b1597efbf4d043d467612710a954c617d5 | f9b8222e94d03b702f97ad01a7b185a7f3390376 | /setup.py | e3fc46cb3743b909f0d36afc004278a7dec0998c | [
"Apache-2.0"
] | permissive | doytsujin/ulogger | 06019cad792a30a3342b1565c8177e48006d8754 | cb9b7eebf2001a8f5f655facfd7219dbbf1f25bb | refs/heads/master | 2022-08-01T20:24:41.290267 | 2020-05-21T16:12:17 | 2020-05-21T16:12:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2017 Spotify AB
#
# 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... | [
"lynn@spotify.com"
] | lynn@spotify.com |
4ca66e34f626c0596d65b203b0a13e926d556b2c | 077beb02d73045eb97261a1c5e7021bfe709e55c | /scripts/batch_create.py | d0fba13ce29bc5ccb48c1be77aeadfdba680ef93 | [
"MIT"
] | permissive | zcutlip/pyonepassword | a91d8491d807c2cede2c483a66872b7913ad3aac | 3ced5acf3667f1af73cad26ae0ef31e8c4b19585 | refs/heads/main | 2023-09-04T03:16:49.170698 | 2023-06-26T19:51:32 | 2023-06-26T19:51:32 | 201,505,055 | 48 | 13 | MIT | 2023-09-05T01:44:18 | 2019-08-09T16:29:56 | Python | UTF-8 | Python | false | false | 3,474 | py | #!/usr/bin/env python3
from argparse import ArgumentParser, Namespace
from typing import List, Optional
from pyonepassword import OP, logging
from pyonepassword.api.constants import LETTERS_DIGITS_SYMBOLS_20
from pyonepassword.api.object_types import (
OPItemField,
OPLoginItemTemplate,
OPNewPasswordField,
... | [
"uid000@gmail.com"
] | uid000@gmail.com |
96c6c33bd717ef31d2539ad1a8a0617933f975d8 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/62b87bc92512a242b567b6dd7bc2924adccb5d0f-<check_path>-fix.py | d6c0a1c89f51aad4ecaeeb33d8d7dd986781f84a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | def check_path(path, dir=False):
errors = []
type_name = ('directory' if dir else 'file')
(parent, file_name) = os.path.split(path)
(name, ext) = os.path.splitext(file_name)
if (name.upper() in ILLEGAL_NAMES):
errors.append(('Illegal %s name %s: %s' % (type_name, name.upper(), path)))
if... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
e8123278cc963021441ddf86237aacbadfc0eeaf | 5845ee6d82d9f691e846360fa267b9cca6829d99 | /math/0x01-plotting/100-gradient.py | 7b749557ab4dbc71e8e69ce6f1ffbd355093a5d9 | [] | no_license | jlassi1/holbertonschool-machine_learning | 6e8c11ebaf2fd57e101bd0b20b7d83358cc15374 | d45e18bcbe1898a1585e4b7b61f3a7af9f00e787 | refs/heads/main | 2023-07-02T20:25:52.216926 | 2021-08-11T14:19:49 | 2021-08-11T14:19:49 | 317,224,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(5)
x = np.random.randn(2000) * 10
y = np.random.randn(2000) * 10
z = np.random.rand(2000) + 40 - np.sqrt(np.square(x) + np.square(y))
plt.scatter(x, y, c=z)
plt.colorbar(label="elevation (m)")
plt.xlabel('x coordinate (m)')
plt... | [
"khawlajlassi1990@gmail.com"
] | khawlajlassi1990@gmail.com |
ceeb56fa571c13fa71b074a7f814721025080fcc | c92f43835821d8df2b93dfd781f890e56891f849 | /Python3/599. Minimum Index Sum of Two Lists.py | 589bfd4f19d629bfc74d0b69d11908bad77f611b | [] | no_license | iamdoublewei/Leetcode | f4ae87ed8c31537098790842a72cafa5747d8588 | e36f343aab109b051a9c3a96956c50b5580c7c15 | refs/heads/master | 2022-11-06T01:31:56.181800 | 2022-11-04T20:07:35 | 2022-11-04T20:07:35 | 71,944,123 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | '''
Suppose Andy and Doris want to choose a restaurant for dinner, and they both have a list of favorite restaurants represented by strings.
You need to help them find out their common interest with the least list index sum. If there is a choice tie between answers, output all of them with no order requirement. You co... | [
"iamdoublewei@gmail.com"
] | iamdoublewei@gmail.com |
ec9578deab27034e978060566ff4d16f44c23b15 | d23dab09b21553353ad85246ebafaea790f2afbd | /tests/python/pants_test/integration/pep561_integration_test.py | a221952ce5d6541559c54ad72c2740a792060e11 | [
"Apache-2.0"
] | permissive | asherf/pants | 00e8c64b7831f814bac3c4fa8c342d2237fef17d | c94d9e08f65e9baf3793dff0ec2c571d682f6b90 | refs/heads/master | 2023-05-28T14:45:35.325999 | 2023-01-18T15:16:07 | 2023-01-18T15:16:07 | 185,082,662 | 0 | 0 | Apache-2.0 | 2023-01-18T15:15:46 | 2019-05-05T21:09:43 | Python | UTF-8 | Python | false | false | 2,827 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import sys
from pathlib import Path
from textwrap import dedent
from pants.testutil.pants_integration_test import PantsResult, run_pants, setup_tmpdir
def typecheck_file(path: str, file... | [
"noreply@github.com"
] | asherf.noreply@github.com |
3d78edfdb75ab12af758221e461b3e6b78b5527d | 7e7e2c5d327a518a03b2307f7f3ece37517fa361 | /FifthWeek/Task27.py | c7e8cef0dcdd3bb1515888990af01317edd3df88 | [] | no_license | Midnight1Knight/HSE-course | 0fdd995f2e8bf98ecd5fc4ecbcd503e6ef2150ab | 9b79c359fc65d260e3d454de5464abd5c89be770 | refs/heads/master | 2022-09-24T14:36:29.472005 | 2020-06-04T17:11:37 | 2020-06-04T17:11:37 | 269,414,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | height = [int(i) for i in input().split()]
petya = int(input())
place = 0
for i in range(0, len(height)):
if place < len(height) and petya <= height[place]:
place += 1
else:
break
print(place + 1)
| [
"andrkar008@gmail.com"
] | andrkar008@gmail.com |
954f4e066229ee6dde13344af66510aa2d4c0df7 | 0d6fa5d8744267b7911c50ca95c733fe2b599a9b | /tests/unit/app/test_app.py | dbbfa1727a832aa9629f4358270caf39503ae17f | [] | no_license | MarcianoPazinatto/Convention-Administration-Project | 394bb04f0650362c15d30049a311c9534568d8b6 | 7587533f7a3b53146551fee9f6fec4e5a085cb84 | refs/heads/master | 2023-03-11T16:21:45.079902 | 2021-02-26T03:00:48 | 2021-02-26T03:00:48 | 342,087,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from werkzeug.exceptions import InternalServerError
from exceptions import NotFoundException
from app import create_app
_app = create_app()
@_app.route('/test-not-found-exception')
def route_not_found_exception():
raise NotFoundException()
@_app.route('/test-internal-server-error-exception')
def route_intern... | [
"marciano.et@hotmail.com"
] | marciano.et@hotmail.com |
b88a9808eaa27b3958dba0aad9d85d833f0f1613 | 30832a88a736b5eb3811dd409f38a8e622468587 | /model/model_config.py | 788447a93d31dfabfbfbe7ca52bfb2b43f316041 | [] | no_license | dhruvramani/data-driven-robotics | 95464a9d3db1d2ac365f88796943a7dcf10bb376 | 059ac21d516cffce291e2e8ac965c9da44969114 | refs/heads/main | 2022-12-30T10:38:22.157466 | 2020-10-23T06:53:43 | 2020-10-23T06:53:43 | 306,095,652 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,637 | py | import os
import sys
import argparse
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), '../'))
import utils
from global_config import *
def get_model_args():
parser = get_global_parser()
# NOTE: 'SURREAL' is a placeholder. The deg is set according to global_config.env -> see below. v
... | [
"dhruvramani98@gmail.com"
] | dhruvramani98@gmail.com |
5eb045c9d96beee11b87c0da7049a6ee03ec24ee | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/matplotlib/2017/4/sankey_rankine.py | d08265e4ddbc76c2cd2185224c0d277569d74916 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 3,897 | py | """
.. _api-sankey_rankine:
===================
Rankine power cycle
===================
Demonstrate the Sankey class with a practical example of a Rankine power
cycle.
"""
import matplotlib.pyplot as plt
from matplotlib.sankey import Sankey
fig = plt.figure(figsize=(8, 9))
ax = fig.add_subplot(1, 1, 1, xticks=[], ... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.