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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e97dec12b5a269ee009a038ff2b1bb48711aff7 | 5577a04c006e73b8a40f68055b2173ffe34ce83e | /htsint/database/fetchTimeExperiment.py | 52b01c5ccf358b0f3acfe468ea3b6ae2dc535dfc | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | changanla/htsint | 1617c56bd5f02ab01e0de80d3d06d2d75983a376 | a343aff9b833979b4f5d4ba6d16fc2b65d8ccfc1 | refs/heads/master | 2020-03-16T13:10:15.082839 | 2017-05-24T21:27:27 | 2017-05-24T21:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | #!/usr/bin/python
import sys,time
from sqlalchemy.sql import select
from htsint.database import db_connect,fetch_annotations,fetch_taxa_annotations
from htsint.database import Taxon,taxa_mapper,Gene,gene_mapper
session,engine = db_connect()
conn = engine.connect()
#timeStart = time.time()
#annotations = fetch_annot... | [
"adamricha@gmail.com"
] | adamricha@gmail.com |
58b7f2c696ee6df680f34658e112ba3ceb045e99 | 4503c155a0252eea7f4c80ec499999a8b52bc8b6 | /nntool/model/sequential.py | 8a9984b8e4fd3d8c6aec1d4526eff9e3e02fa3b0 | [
"MIT"
] | permissive | NLP-Deeplearning-Club/nntool | e76f7be29dd184be18a6fde509b89918a8692639 | 1bbf0a20c7526d423f351ba9a854902a669d3713 | refs/heads/master | 2020-12-03T01:42:44.316321 | 2017-07-12T16:08:30 | 2017-07-12T16:08:30 | 95,854,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | from nntool.abc.modelabc import ModelABC
import numpy as np
class Sequential(ModelABC):
"""序列模型,这个是keras中的概念,将模型理解为层的堆叠
"""
_layers = []
_trained = False
def add(self,layer:'layer'):
self._layers.append(layer)
@property
def trained(self):
"""是否已经训练过"""
return self.... | [
"hsz1273327@gmail.com"
] | hsz1273327@gmail.com |
96c271f4ba502360e86ae8b36745e783d53d418e | d3f30c67faf0b593565fc5fa526d6b96a8a9f65f | /tests/test_dates.py | 9c3a7b40745a472ca8520756a080d082d887c101 | [
"BSD-3-Clause"
] | permissive | has2k1/mizani | 4b3732b13380c6f2660f313877d95f63095781f3 | 90b0a54dd3a76528fae7997083d2ab8d31f82a58 | refs/heads/main | 2023-09-02T00:47:17.321472 | 2023-09-01T09:44:57 | 2023-09-01T13:45:36 | 62,319,878 | 41 | 15 | BSD-3-Clause | 2022-04-04T04:26:51 | 2016-06-30T15:02:41 | Python | UTF-8 | Python | false | false | 2,210 | py | from datetime import datetime
from zoneinfo import ZoneInfo
import pytest
from mizani._core.date_utils import (
align_limits,
ceil_mid_year,
ceil_second,
ceil_week,
floor_mid_year,
floor_second,
floor_week,
)
from mizani._core.dates import (
datetime_to_num,
get_tzinfo,
num_to_... | [
"has2k1@gmail.com"
] | has2k1@gmail.com |
4af1a97e3d67f049f346cc7b4760ac232eb1d942 | c62040636877dc3584bcf4d22988fc71739c8a78 | /lbworkflow/tests/test_process.py | 828d4ebd11d173132620237557b9f9d4b02ff56d | [
"MIT"
] | permissive | felixcheruiyot/django-lb-workflow | 82de680f37aa68707640022cb3b99435f54ea09e | 0fb4be2d39848374d60ec27c6ee1b72913e2f674 | refs/heads/master | 2022-04-12T19:11:41.673818 | 2020-04-09T12:03:53 | 2020-04-09T12:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,312 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from lbworkflow.views.helper import user_wf_info_as_dict
from .leave.models import Leave
from .test_base import BaseTests
User = get_user_model()
class HelperTests(BaseTests):
def test_user_wf_info_as_dict(self):
leave = se... | [
"zbirder@gmail.com"
] | zbirder@gmail.com |
48b56952ac3dc1fd3a8bd513d93bad85874010cd | 3927b135bd77100532e3dc82c405a2d377fc8517 | /vndk/tools/definition-tool/tests/test_vndk.py | 8938e68aa18145dd971748268f9c1f6e06f6e889 | [
"Apache-2.0"
] | permissive | eggfly/platform_development | b9367c9ecd775c766dd552bf0b417c29bc4cc1cc | 52c291d53c8f58cfe67cd3251db19b0d94b4a9c8 | refs/heads/master | 2020-05-20T22:54:41.470361 | 2017-03-10T02:06:38 | 2017-03-10T02:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | #!/usr/bin/env python3
from __future__ import print_function
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import unittest
from compat import StringIO
from vndk_definition_tool import ELF, ELFLinker, PT_SYSTEM, PT_VENDOR
SCRIPT_DIR = os.path.dirname(os.path.abspa... | [
"loganchien@google.com"
] | loganchien@google.com |
5a85f68337da49fec9d664ec55a0ccab7bb51369 | fdcb2cdee4d5b398eed4eefc830213234e3e83a5 | /00_DataCamp/07_Functions/error_handling/more_error_handling.py | 5d65abc9f7d11cc8d26ffaba9af4fec231b1c483 | [] | no_license | daftstar/learn_python | be1bbfd8d7ea6b9be8407a30ca47baa7075c0d4b | 4e8727154a24c7a1d05361a559a997c8d076480d | refs/heads/master | 2021-01-20T08:53:29.817701 | 2018-01-15T22:21:02 | 2018-01-15T22:21:02 | 90,194,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | # #####################################################
# ERROR HANDLING W/ TRY EXCEPT
# #####################################################
def shout_echo(word1, echo=1):
""" Concat echo copies of word1 and three exclamation
marks at end of sting """
# Initialize empty strings: echo_word, shout_words
... | [
"nikdaftary@gmail.com"
] | nikdaftary@gmail.com |
e1682205360b4928220bbc12cb3953be8221e9f8 | 14252ea933a08056363230c6df89223b996a0da2 | /app/enquiry/admin.py | 71f3c238e9b152b6658810ef408539597e9ec865 | [
"MIT"
] | permissive | S3Infosoft/mvr-insights | eeb02aa2e6767e6a23818d4e09f7be7ce29f80cb | ac73feff03c1592d5efd8e0b82f72dd4dbd3e921 | refs/heads/master | 2020-05-29T14:08:11.070784 | 2020-04-23T19:46:57 | 2020-04-23T19:46:57 | 189,184,619 | 0 | 1 | MIT | 2020-04-23T19:46:58 | 2019-05-29T08:35:56 | CSS | UTF-8 | Python | false | false | 918 | py | from . import models
from django.contrib import admin
@admin.register(models.OTA)
class OTAAdmin(admin.ModelAdmin):
list_display = "name", "registration", "contact_person", "contact_number",\
"contact_email",
search_fields = "name", "contact_person",
@admin.register(models.Partner)
class ... | [
"abhie.lp@gmail.com"
] | abhie.lp@gmail.com |
2037b65f41e66d5efd97fb4037f35830d3fbc814 | b1c578ce83d94848a1c2ec0bcb91ae791ef419cd | /src/ggrc/migrations/versions/20180319122658_679480cbd712_add_risk_propagation_roles.py | ed07384e4deaf9cf32f022902852e518f9698b63 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | zdqf/ggrc-core | 0d1575557af3c49980fe6dbad586d045ad73d5ad | 29dea12d189bc6be21006369efc0aae617bbab6f | refs/heads/master | 2020-03-27T19:29:00.536374 | 2018-08-28T15:29:56 | 2018-08-28T15:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # Copyright (C) 2018 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""
Add risk propagation roles
Create Date: 2018-03-19 12:26:58.016090
"""
# disable Invalid constant name pylint warning for mandatory Alembic variables.
# pylint: disable=invalid-name
from ggrc.migration... | [
"zidarsk8@gmail.com"
] | zidarsk8@gmail.com |
f2175851726ca0bd2de375f5dd60009f4fea1399 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping15/StrippingBuToKX3872.py | bc8fd68b57bf0cc15f042076cea12929f4e982a4 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,316 | py | # $Id: StrippingBu2KX3872.py,v 1.2 2010-08-26 13:16:50 nmangiaf Exp $
__author__ = ['Jeremy Dickens']
__date__ = '21/02/2011'
__version__ = '$Revision: 1.2 $'
'''
Implements 3 lines: B+ -> K+ X3872, B+ -> K+ Psi(2S) and a looser B+ -> K+ JPsi pi+ pi+
'''
## Note this is just for testing the stripping on 25/02/2011
... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
48c0fa3c02b94ef7d4860dcf8193efc152f59b9e | f28ef7c72a56a2a732bee3e42506c96bb69edee8 | /old_scripts/stocks_data.py | f9a03cddc88b57d6fb4ab645a0f58a8230321f1b | [] | no_license | webclinic017/backtrader_stocks_api | cb92311a1069199e61acc547ec69941ba861d4e6 | e489724e7a30bb915657244bf12e55ad2f484832 | refs/heads/main | 2023-03-26T05:40:53.584824 | 2021-03-10T07:53:35 | 2021-03-10T07:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,442 | py | from fastquant import get_stock_data, backtest
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from datetime import date, timedelta
#array: [open, high, low, close, volume]
class ticker_data():
def __init__(self, ticker, date_range='null'):
self.name = ticker.upper()
# forma... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
06ea7004e6548c99ae12598d02b6772fe46d7dec | 417ab6024a95e97b4d2236c67e28d00e6d1defc0 | /python/fetch/s58589/video.py | ed22519cf6a9c389fddd2e76eb4a290ff89c4b7b | [] | no_license | zeus911/myconf | 11139069948f7c46f760ca0a8f1bd84df5ec4275 | 6dc7a6761ab820d6e97a33a55a8963f7835dbf34 | refs/heads/master | 2020-04-18T02:16:09.560219 | 2019-01-22T18:15:08 | 2019-01-22T18:15:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,392 | py | #!/usr/bin python
# -*- coding: utf-8 -*-
from baseparse import *
from urlparse import urlparse
from common import common
from urllib import unquote
import time
from fetch.profile import *
class VideoParse(BaseParse):
def __init__(self):
pass
def run(self):
dbVPN = db.DbVPN()
ops = db_... | [
"liguoqing19861028@163.com"
] | liguoqing19861028@163.com |
d93af998f22f0599ae05964e40bf4946e07934db | dd4d1a61ec680a86d4b569490bf2a898ea0d7557 | /appengine/findit/model/test/wf_swarming_task_test.py | f6921dfc809d6a8bcf5b6cc3326292e6c1424897 | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-infra | f1a68914b47bcbe3cd8a424f43741dd74fedddf4 | 09064105713603f7bf75c772e8354800a1bfa256 | refs/heads/master | 2022-10-29T23:21:46.894543 | 2017-05-16T06:22:50 | 2017-05-16T06:22:50 | 91,423,078 | 1 | 1 | BSD-3-Clause | 2022-10-01T18:48:03 | 2017-05-16T06:23:34 | Python | UTF-8 | Python | false | false | 1,690 | py | # Copyright 2015 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.
import unittest
from model.wf_swarming_task import WfSwarmingTask
class WfSwarmingTaskTest(unittest.TestCase):
def testClassifiedTests(self):
task ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
46704702b85011345fc39dacbe1433db96bfee18 | 34932f68b9878081748d96f267bd7a8359c24ffc | /code/derivatives.py | 4acdd9ae7c4a81771d706b2786c1eb10623caf02 | [] | no_license | rossfadely/wfc3psf | 388160cd692d77e4db24668a924f12004099d572 | b0ac9fd1ed993f250cd1923d6a4ca16dd7f42a70 | refs/heads/master | 2020-06-04T08:54:15.044796 | 2014-12-15T20:40:38 | 2014-12-15T20:40:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,859 | py | import multiprocessing
import numpy as np
from patch_fitting import eval_nll, make_background, evaluate
from generation import render_psfs
def get_derivatives(data, dq, shifts, psf_model, old_nlls, fit_parms, masks,
parms):
"""
Calculate the derivatives of the objective (in patch_fitting)
... | [
"rossfadely@gmail.com"
] | rossfadely@gmail.com |
3766f9a5133652056ebd9b6b6bc0c4f68515983c | f2cb9b54e51e693e1a1f1c1b327b5b40038a8fbe | /src/bin/shipyard_airflow/tests/unit/plugins/test_deckhand_client_factory.py | 044f4cc7ae96a556bd1cc726789890d7c1abce2c | [
"Apache-2.0"
] | permissive | airshipit/shipyard | 869b0c6d331e5b2d1c15145aee73397184290900 | 81066ae98fe2afd3a9c8c5c8556e9438ac47d5a2 | refs/heads/master | 2023-08-31T11:46:13.662886 | 2023-07-01T06:42:55 | 2023-08-30T16:04:47 | 133,844,902 | 6 | 2 | Apache-2.0 | 2023-09-12T19:09:02 | 2018-05-17T17:07:36 | Python | UTF-8 | Python | false | false | 1,083 | py | # Copyright 2017 AT&T Intellectual Property. All other 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... | [
"bryan.strassner@gmail.com"
] | bryan.strassner@gmail.com |
e94bb0b4072bf172c48f8d8cb3bfe91985a8dd3e | b2de5660d81afdf6b1fba058faee6ece6a51e462 | /amplify/agent/managers/bridge.py | 76902e4239a982a79bdc60e47f872d32cb28807d | [
"BSD-2-Clause"
] | permissive | Ferrisbane/nginx-amplify-agent | 725d8a7da7fb66e0b41cddd8139d25a084570592 | ef769934341374d4b6ede5fcf5ebff34f6cba8de | refs/heads/master | 2021-01-22T00:03:49.686169 | 2016-07-20T17:50:30 | 2016-07-20T17:50:30 | 63,801,713 | 0 | 0 | null | 2016-07-20T17:41:25 | 2016-07-20T17:41:25 | null | UTF-8 | Python | false | false | 7,064 | py | # -*- coding: utf-8 -*-
import gc
import time
from collections import deque
from amplify.agent.common.context import context
from amplify.agent.common.util.backoff import exponential_delay
from amplify.agent.managers.abstract import AbstractManager
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc.... | [
"dedm@nginx.com"
] | dedm@nginx.com |
80261fed562aa68eeed3feabb91b51944742158c | 29705cfa764b8800a4f611044bb441ae2dbb517e | /ctpbee/indicator/back.py | 0149bc0d761712c1267a20af3ac2da0a1c6fc8f9 | [
"MIT"
] | permissive | ctpbee/ctpbee | 98c720a54999e9c4bb242848a9cd4363f96ea2e1 | 217b73da65931213c1af4733741014d05b3a8bac | refs/heads/master | 2023-03-16T12:47:01.260983 | 2023-03-13T05:49:51 | 2023-03-13T05:49:51 | 202,876,271 | 665 | 186 | MIT | 2023-09-12T12:33:29 | 2019-08-17T12:08:53 | Python | UTF-8 | Python | false | false | 236 | py | """
这里是向量化回测内容以及可视化
主要用于快速回测结果
todo: 通过编写函数对应的参数以及需要执行的函数 来计算出最后的回测结果
"""
class VectorBackTest:
raise NotImplemented
| [
"somewheve@gmail.com"
] | somewheve@gmail.com |
2a4c2e2000a7aff2f1657522ab2b84b85f99e5c7 | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/ConfigParser/ConfigParser_9.py | cd739d82a6b2776cc41204fb21e4a9bde96a1869 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
import ConfigParser
parser = ConfigParser.SafeConfigParser()
parser.add_section('bug_tracker')
parser.set('bug_tracker','uri','http://localhost:8080/bugs')
parser.set('bug_tracker','username','Jack')
parser.set('bug_tracker','password','123456')
for section in parser.sec... | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
e43252b1c78b9d16a9c21784ae22ba5cd362fffa | d475a6cf49c0b2d40895ff6d48ca9b0298643a87 | /pyleecan/Classes/ImportVectorField.py | 8dbc5501c4eb5fc5d7c8a98afbad66071632c118 | [
"Apache-2.0"
] | permissive | lyhehehe/pyleecan | 6c4a52b17a083fe29fdc8dcd989a3d20feb844d9 | 421e9a843bf30d796415c77dc934546adffd1cd7 | refs/heads/master | 2021-07-05T17:42:02.813128 | 2020-09-03T14:27:03 | 2020-09-03T14:27:03 | 176,678,325 | 2 | 0 | null | 2019-03-20T07:28:06 | 2019-03-20T07:28:06 | null | UTF-8 | Python | false | false | 7,283 | py | # -*- coding: utf-8 -*-
# File generated according to Generator/ClassesRef/Import/ImportVectorField.csv
# WARNING! All changes made in this file will be lost!
"""Method code available at https://github.com/Eomys/pyleecan/tree/master/pyleecan/Methods/Import/ImportVectorField
"""
from os import linesep
from logging impo... | [
"sebgue@gmx.net"
] | sebgue@gmx.net |
acd10b8f4a7a1c925fe17066c2dada6d620110a8 | f0b33d42741f3c470cc7f616c70a4b10a73fc012 | /scripts/ddd17_steer_export.py | 1af7dd96ef80d87062a2bd107b25ea8fa25b1c88 | [
"MIT"
] | permissive | duguyue100/ddd20-itsc20 | 1e51a7a76fe1f2759746814ae58f4e1e21c0c4e6 | 667bb5e702a06cfff30b20de669697f3271baf04 | refs/heads/master | 2021-09-17T06:34:17.545026 | 2018-06-28T16:35:39 | 2018-06-28T16:35:39 | 114,002,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,309 | py | """Steer export.
Author: Yuhuang Hu
Email : duguyue100@gmail.com
"""
from __future__ import print_function
import os
import os
from os.path import join, isfile, isdir
import cPickle as pickle
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import spiker
from spiker.data imp... | [
"duguyue100@gmail.com"
] | duguyue100@gmail.com |
bbe83a41e209fce4ac10e74b7b02891237b2d179 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok/woColorJ/Sob_k15_s001_EroM/pyr_Tcrop255_p60_j15/pyr_0s/L6/step10_a.py | a013a6de43fe29ab368aa4eb3c0e5c3ab7fab72d | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,998 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
362df6b63b69bd5d5fd4eb04726056f47d873113 | 122f9bf0d996c104f541453ab35c56f6ff3fc7cd | /z수업용문제/JunminLim/2331_반복수열.py | cfed0ed0d334dc85da62587de4d10ebc079ceff3 | [] | no_license | JannaKim/PS | 1302e9b6bc529d582ecc7d7fe4f249a52311ff30 | b9c3ce6a7a47afeaa0c62d952b5936d407da129b | refs/heads/master | 2023-08-10T17:49:00.925460 | 2021-09-13T02:21:34 | 2021-09-13T02:21:34 | 312,822,458 | 0 | 0 | null | 2021-04-23T15:31:11 | 2020-11-14T13:27:34 | Python | UTF-8 | Python | false | false | 281 | py |
n=input()
L=[]
P=[]
while n not in L:
L.append(n)
a = 0
for i in n:
a+=int(i)**2
n = str(a)
while n in L:
L.remove(n)
a = 0
for i in n:
a+=int(i)**2
n = str(a)
print(len(L))
'''
for i in range (len(L)):
dic[L[i], i]
''' | [
"baradamoh@gmail.com"
] | baradamoh@gmail.com |
ad4e66e29bd494bd629bac9884cd7367ed7601f6 | 69526d234c01b1d33b9fb569e55fe363d96beac0 | /api/routes/payments.py | 099b50144d23882f39259fcecf2873101b650077 | [] | no_license | jzamora5/orders_creator_backend | 53b0a773fb88d99354175835cebdfc93c8e7357e | d5dd51ba39a5f549cc55fd9835b6082edd91d0a6 | refs/heads/main | 2023-03-29T11:27:08.602656 | 2021-04-05T22:49:25 | 2021-04-05T22:49:25 | 348,373,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,726 | py | from api.models.order import Order
from api.models.user import User
from api.models.payment import Payment
from api.routes import app_routes
from flask import abort, jsonify, make_response, request
from flask_jwt_extended import jwt_required, get_jwt_identity
from app import storage
@app_routes.route('/order/<order_i... | [
"jzamora_5@yahoo.com"
] | jzamora_5@yahoo.com |
26f2f4fa282fac3064a8d18fa75e67c517c1a09c | a1c8731a8527872042bd46340d8d3e6d47596732 | /programming-laboratory-I/70b7/seguro.py | f49bcb6be7708680dab29dab7ae4ee5f91b095ce | [
"MIT"
] | permissive | MisaelAugusto/computer-science | bbf98195b0ee954a7ffaf58e78f4a47b15069314 | d21335a2dc824b54ffe828370f0e6717fd0c7c27 | refs/heads/master | 2022-12-04T08:21:16.052628 | 2020-08-31T13:00:04 | 2020-08-31T13:00:04 | 287,621,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | # coding: utf-8
# Aluno: Misael Augusto
# Matrícula: 117110525
# Problema: Cálculo de Seguro
def calcula_seguro(valor_veiculo, lista):
dados_cliente = []
verdadeiros = [10, 20, 20, 20, 10]
falsos = [20, 10, 10, 10, 20]
pontos = 0
if lista[0] <= 21:
pontos += 20
elif 22 <= lista[0] <= 30:
pontos += 15
elif 3... | [
"misael.costa@ccc.ufcg.edu.br"
] | misael.costa@ccc.ufcg.edu.br |
a5b28f5ed094fbac63ce8b975715abc9271525ea | 3b07655b0da227eec2db98ab9347c9e7bdbc3ffd | /scielomanager/journalmanager/migrations/0004_auto__add_articleslinkage__add_field_article_articles_linkage_are_pend.py | 17462aec38eb32090fcba388c22b5043891a505a | [
"BSD-2-Clause"
] | permissive | scieloorg/scielo-manager | a1b7cc199e5f7c4d4b34fd81d46e180028299d7d | 0945f377376de8ef0ada83c35b4e2312062cdf45 | refs/heads/beta | 2023-07-12T08:23:59.494597 | 2017-09-28T18:39:39 | 2017-09-28T18:39:39 | 1,778,118 | 9 | 5 | BSD-2-Clause | 2023-09-05T19:42:58 | 2011-05-20T19:41:53 | Python | UTF-8 | Python | false | false | 35,762 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'ArticlesLinkage'
db.create_table('journalmanager_articles... | [
"gustavo@gfonseca.net"
] | gustavo@gfonseca.net |
e258390aa13593f651e7ecf2780121ade1ffe47d | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/test/test_com_adobe_granite_acp_platform_platform_servlet_info.py | 488d29b6091afc227c8d8f0f40e8699ea4f50cdc | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 1,263 | py | # coding: utf-8
"""
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-... | [
"michael.bloch@shinesolutions.com"
] | michael.bloch@shinesolutions.com |
7379d9371c3922d86ed73492c5400df4bd96a4b1 | fb72d7eb880c7777e414587347d54a0446e962a3 | /pycis/wrappers/base_wrapper.py | ce076d12e21a7994866c5b8b5224567e4a2ce62d | [
"MIT"
] | permissive | marcwebbie/pycis | 4ad806aeb9f257f5178dcb19741666b0f4576721 | 4c123c5805dac2e302f863c6ed51c9e2e05a67c8 | refs/heads/master | 2016-09-06T01:10:11.301029 | 2013-12-28T09:39:36 | 2013-12-28T09:39:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | class BaseWrapper(object):
""" BaseWrapper gives the default interface for wrappers.
It also add utility functions to be shared by sub classes.
Sub classes should override:
self.site_url:
Wrapped site base url
get_streams(self, media):
Get a list of stream for given... | [
"marcwebbie@gmail.com"
] | marcwebbie@gmail.com |
6726e26d26e7add78314772b18f26038174e56e8 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_onewire/device.py | 8e2dcb3c176bb555d7382ad17baa965dce45f366 | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,270 | py | # The MIT License (MIT)
#
# Copyright (c) 2017 Carter Nelson for Adafruit Industries
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
b83295a8369b760b60f547080929ab85c25711bb | 34652a47355a8dbe9200db229a1bbc62619de364 | /BASE SCRIPTS/Logic/__init__.py | 8ea073819416baffd947870cfc2da404aedfb85c | [] | no_license | btrif/Python_dev_repo | df34ab7066eab662a5c11467d390e067ab5bf0f8 | b4c81010a1476721cabc2621b17d92fead9314b4 | refs/heads/master | 2020-04-02T13:34:11.655162 | 2019-11-10T11:08:23 | 2019-11-10T11:08:23 | 154,487,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | # Created by Bogdan Trif on 23-09-2018 , 10:07 PM. | [
"bogdan.evanzo@gmail.com"
] | bogdan.evanzo@gmail.com |
09ee19f59fcbf8de31c5285d7d5cfcf228701935 | de33ba7be349eed5e2a1fc3f2bd9fce5bfdb9f13 | /phenocube/lib/python3.8/site-packages/setuptools/__init__.py | 25b4679b185857fa015cb43acc5f8b34a0faf3b3 | [
"MIT"
] | permissive | SteveMHill/phenocube-py | 9bebf239e24af3f97e59b080560228605e6611c5 | cb262aef1c0925efd2e955170bacd2989da03769 | refs/heads/main | 2023-02-24T03:35:11.461869 | 2020-12-22T12:15:22 | 2020-12-22T12:15:22 | 334,703,261 | 0 | 0 | MIT | 2021-01-31T16:37:21 | 2021-01-31T16:36:47 | null | UTF-8 | Python | false | false | 7,430 | py | """Extensions to the 'distutils' for large or complex distributions"""
import os
import functools
import distutils.core
import distutils.filelist
import re
from distutils.errors import DistutilsOptionError
from distutils.util import convert_path
from fnmatch import fnmatchcase
from ._deprecation_warning import Setupt... | [
"steven.smhill@gmail.com"
] | steven.smhill@gmail.com |
82a16cd345d6ca544ea367fa613b86c7f22ffdc1 | afafaa82a058a3ac1d3721039a11e587278bc80b | /script/plot_condition_numbers.py | b1f2c2ccefdab57544cf7d8851cff68ddbec1b06 | [
"BSD-3-Clause"
] | permissive | tonymcdaniel/sfepy | 24ec0b84bd0ee94ac3935ce01a25db5e6574110a | b7a70547515c6b0faf642dcc127841b782a51200 | refs/heads/master | 2021-01-15T20:13:28.735206 | 2012-07-23T14:33:32 | 2012-07-23T15:17:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,961 | py | #!/usr/bin/env python
"""
Plot conditions numbers w.r.t. polynomial approximation order of reference
element matrices for various FE polynomial spaces (bases).
"""
from optparse import OptionParser
import time
import numpy as nm
import matplotlib.pyplot as plt
from sfepy import data_dir
from sfepy.base.base import out... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
5e73ef0d3118c4e024fe986a11cdce3910655b65 | 01b04d980b2746b4d4db1c2be1a263f77e2a7596 | /liangsongyou.blog/blog/views.py | 95f46d736ea14fb65f41de2b0e1d859dea64a6e2 | [] | no_license | liangsongyou/quarkblob | e9763efefe91f30b6da278ca6787564770cef4ec | 5d926ab40881a5f499734bfcbcb083d8bbb5e03e | refs/heads/master | 2022-11-26T17:30:47.276314 | 2018-11-28T09:47:54 | 2018-11-28T09:47:54 | 155,494,671 | 0 | 0 | null | 2022-11-22T03:07:32 | 2018-10-31T03:42:41 | Python | UTF-8 | Python | false | false | 1,505 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import permission_required
from blog.models import Post
from blog.forms import PostForm
def post(request, slug=None):
item = get_object_or_404(Post, slug=slug)
return render(request, 'blog/post.html', {'item... | [
"yuebei58@gmail.com"
] | yuebei58@gmail.com |
046c7fadc7a3e3cdc813caf214a79d19c739ddf2 | 1a66e07fbdd333e9feee3ae06f90e11cd5c3c79e | /qiskit/providers/honeywell/honeywelljob.py | 63ad4acef11e3f90f8c5ca5bcf2bbd37118c539e | [
"Apache-2.0"
] | permissive | stjordanis/qiskit-honeywell-provider | d385588ca2452ba0e10ddb6f68b03ca41064ed98 | d9c15a0edfb95ab1d715e98711748d2008a52040 | refs/heads/master | 2023-05-05T20:13:19.586574 | 2021-05-21T22:02:11 | 2021-05-21T22:02:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,857 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | [
"noreply@github.com"
] | stjordanis.noreply@github.com |
203d9a37000a582dcdc625710f4e7bbb0c159639 | 78f65f6c8be381773cc847c93da4b28eb4eeefae | /fastmri/models/__init__.py | d1d79c2627e2cc480fe53930fa89a0e984117d8d | [
"MIT"
] | permissive | soumickmj/fastMRI | af7bc3c654eda93905e19c24ab40dd255eb6c128 | 2056879fd9444c14599447af38ba0507f1222901 | refs/heads/master | 2022-11-29T22:32:26.152484 | 2022-03-09T20:50:02 | 2022-03-09T20:50:02 | 214,513,364 | 1 | 0 | MIT | 2022-11-08T08:29:57 | 2019-10-11T19:22:54 | Python | UTF-8 | Python | false | false | 270 | py | """
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
"""
from .unet import Unet
from .varnet import NormUnet, SensitivityModel, VarNet, VarNetBlock
| [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
b789dcc8c2c8b5c5cc7429535c32875a9f690efc | 8cfee59143ecd307fe7d7a27986c3346aa8ce60c | /AI/1. Machine Learning/163_mnist-tocsv.py | cf18d04e18f98b2720fada6f34a867fd43f3f5a4 | [] | no_license | kiminhan/Python | daafc1fde804f172ebfb1385ab9d6205c7a45970 | dc6af486aaf7d25dbe13bcee4e115207f37d4696 | refs/heads/master | 2020-03-08T19:18:10.173346 | 2018-09-06T06:11:40 | 2018-09-06T06:11:40 | 128,288,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,346 | py | import struct
def to_csv(name, maxdata):
# 레이블 파일과 이미지 파일 열기
lbl_f = open("./mnist_/"+name+"-labels-idx1-ubyte", "rb")
img_f = open("./mnist_/"+name+"-images-idx3-ubyte", "rb")
csv_f = open("./mnist_/"+name+".csv", "w", encoding="utf-8")
# 헤더 정보 읽기 --- (※1)
mag, lbl_count = struct.unpack(">II", ... | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
bc03d8274188df69eac85d025d78dbfa59a16efd | 42321745dbc33fcf01717534f5bf7581f2dc9b3a | /lab/jax/linear_algebra.py | 618778d388a9415d7318fdcb5ef3dd6f36ac76e4 | [
"MIT"
] | permissive | talayCh/lab | 0a34b99fd60bc65fdfd1ead602d94dfb6b96f846 | 4ce49b68782a1ef8390b14ee61f57eeaa13070cf | refs/heads/master | 2023-08-25T04:42:06.904800 | 2021-11-01T18:22:00 | 2021-11-01T18:22:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import logging
from typing import Union, Optional
import jax.numpy as jnp
import jax.scipy.linalg as jsla
from . import dispatch, B, Numeric
from .custom import jax_register
from ..custom import (
toeplitz_solve,
i_toeplitz_solve,
s_toeplitz_solve,
i_s_toeplitz_solve,
expm,
i_expm,
s_expm,... | [
"wessel.p.bruinsma@gmail.com"
] | wessel.p.bruinsma@gmail.com |
35da58bdb8be02fba0f38d7f0bb56498199a2c1a | b090cb9bc30ac595675d8aa253fde95aef2ce5ea | /trunk/test/NightlyRun/test304.py | 73f9108132ad2bddc032b4278bf438f74d72234c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | eyhl/issm | 5ae1500715c258d7988e2ef344c5c1fd15be55f7 | 1013e74c28ed663ebb8c9d398d9be0964d002667 | refs/heads/master | 2022-01-05T14:31:23.235538 | 2019-01-15T13:13:08 | 2019-01-15T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #Test Name: SquareSheetConstrainedStressSSA3d
from model import *
from socket import gethostname
from triangle import *
from setmask import *
from parameterize import *
from setflowequation import *
from solve import *
md=triangle(model(),'../Exp/Square.exp',180000.)
md=setmask(md,'','')
md=parameterize(md,'../Par/Sq... | [
"cummings.evan@gmail.com"
] | cummings.evan@gmail.com |
b8137ddbd4d31ee1e675044996c2784fc45b202a | 28c1c3afaf5e70c0530b864ead16fa8762ef1ca4 | /ch05_Array/list_size.py | 78660ba7e14c0f9ebf85b4bc2b7a1d1726f1190f | [] | no_license | luoshao23/Data_Structure_and_Algorithm_in_Python | 8059381c21580e3e4f1276089b9fe4f96de385f8 | 051754963ca2eb818b981ba72583314a043e5df4 | refs/heads/master | 2020-04-29T06:29:02.148886 | 2019-05-15T02:46:48 | 2019-05-15T02:46:48 | 175,917,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import sys
data = []
n = 27
for k in range(n):
a = len(data)
b = sys.getsizeof(data)
print('Length: {0:3d}; Size in bytes: {1:4d}'.format(a, b))
data.append(None)
| [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
816e04e5d69c642ba2a24942f2af7ce25030a1a5 | 8c9402d753e36d39e0bef431c503cf3557b7e777 | /Sarsa_lambda_learning/main.py | e198580483ff22b2a9cc4c9141037276d21998a9 | [] | no_license | HuichuanLI/play_with_deep_reinforcement_learning | 9477e925f6ade81f885fb3f3b526485f49423611 | df2368868ae9489aff1be4ef0c6de057f094ef56 | refs/heads/main | 2023-07-08T04:52:38.167831 | 2021-08-21T14:05:36 | 2021-08-21T14:05:36 | 395,042,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | # -*- coding:utf-8 -*-
# @Time : 2021/8/17 10:59 下午
# @Author : huichuan LI
# @File : main.py
# @Software: PyCharm
from maze import Maze
from Sara_Lambda import SarsaLambdaTable
def update():
for episode in range(100):
# initial observation
observation = env.reset()
# RL choose action ba... | [
"lhc14124908@163.com"
] | lhc14124908@163.com |
2c67af0e6a0e47698557d1c16075616c11e7da42 | 1ec59e88299c7af9df3854188736b706e89e01fa | /app/forms/public/profile_forms.py | 1f3f68864842f4660895d45a56b96a51956c26cd | [] | no_license | Chenger1/NutCompany_FlaskApp | 7484b04721766b42f9cc909d11c3e942bf3b3371 | c51129e04f2c9e35263d9e28810b4c2862932ef6 | refs/heads/master | 2023-08-06T09:08:27.532820 | 2021-09-23T19:52:25 | 2021-09-23T19:52:25 | 405,457,276 | 0 | 0 | null | 2021-09-12T10:55:47 | 2021-09-11T18:44:35 | HTML | UTF-8 | Python | false | false | 1,241 | py | from flask_wtf import FlaskForm
from wtforms import StringField, SelectField
from wtforms.validators import Email, Optional
from ..custom_field import CustomFileField
from app._db.choices import CountryChoice
class ClientPersonalInfoForm(FlaskForm):
fio = StringField('ФИО', validators=[Optional()])
email = ... | [
"exs2199@gmail.com"
] | exs2199@gmail.com |
cb1b09b13545f6e89fee158e5b5e37ee7d392d73 | 59366342805d7b7682a8c45fd5c11b910e791c21 | /L8包/package/pack1/py1.py | b0fd52ca063138c053548e40274a039e81ea139e | [] | no_license | wantwantwant/tutorial | dad006b5c9172b57c53f19d8229716f1dec5ccd1 | 8d400711ac48212e6992cfd187ee4bfb3642f637 | refs/heads/master | 2022-12-29T05:41:12.485718 | 2019-01-07T08:28:33 | 2019-01-07T08:28:33 | 171,679,026 | 2 | 0 | null | 2022-12-08T01:21:22 | 2019-02-20T13:33:42 | Python | UTF-8 | Python | false | false | 214 | py | def foo():
# 假设代表一些逻辑处理
print('foo')
def boo():
print('boo')
# 单脚本的时候,调用方法
foo()
boo()
print(__name__)
#
# if __name__ =='__main__':
# foo()
# boo()
| [
"778042395@qq.com"
] | 778042395@qq.com |
a99c2a5837c537a407dd87963f6047684fc42131 | 60b52f75e2b0712738d5ad2f9c2113e4d8016c1e | /Chapter01/Logistic regression model building/logistic.py | 9173bc687a2a76562df6ba94ab599b0b78764c5a | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Deep-Learning-with-TensorFlow | b63b40140882762841403467f9255612972f7ec7 | c81fdc1edf8f2275ea76a9900c92e7fae0ddf6ed | refs/heads/master | 2023-01-24T19:44:40.191675 | 2023-01-24T11:07:02 | 2023-01-24T11:07:02 | 100,028,897 | 96 | 77 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | import tensorflow as tf
import numpy as np
%autoindent
try:
from tqdm import tqdm
except ImportError:
def tqdm(x, *args, **kwargs):
return x
# Set random seed
np.random.seed(0)
# Load data
data = np.load('data_with_labels.npz')
train = data['arr_0']/255.
labels = data['arr_1']
# Look at some data
p... | [
"noreply@github.com"
] | PacktPublishing.noreply@github.com |
b77bc2acca6b6e0e86c89938bda7c5ab19c1574c | 7aebfaec6957ad67523f1d8851856af88fb997a6 | /catkin_ws/devel/lib/python2.7/dist-packages/xarm_msgs/srv/_GetAnalogIO.py | 6f4bb532c9a98d105e10d7d82b9913662901a07b | [] | no_license | k-makihara/ROS | 918e79e521999085ab628b6bf27ec28a51a8ab87 | 45b60e0488a5ff1e3d8f1ca09bfd191dbf8c0508 | refs/heads/master | 2023-01-28T06:00:55.943392 | 2020-11-26T05:27:16 | 2020-11-26T05:27:16 | 316,127,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,564 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from xarm_msgs/GetAnalogIORequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GetAnalogIORequest(genpy.Message):
_md5sum = "f1c58d245d5dbcbc33afe76f9fc1dff4"
... | [
"makihara@ms.esys.tsukuba.ac.jp"
] | makihara@ms.esys.tsukuba.ac.jp |
123d18a02f05d17059d952a8169d5b7d13b2133e | 61bd4a9dfd606b3c9efd52f23848b7329b18a909 | /Pythonscripts/run_predictions.py | 071dc31901d1c69daae74de43dde6e21c174c466 | [] | no_license | philmcc/aistocks | e9e85dc65e5439793cc5caa4d851a9149ff762a1 | 0706ce7d63db271ee807cc1f6dba8cd178223612 | refs/heads/master | 2021-01-10T05:36:33.736881 | 2016-09-06T13:53:03 | 2016-09-06T13:53:03 | 46,048,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import MySQLdb as mdb
from pyfann import libfann
from datetime import date
from network_functions import save_prediction
mydate = date.today()
con = None
con = mdb.connect('localhost', 'root',
'fil1202job', 'stock');
with con:
cur = con.cursor(mdb.cursors.DictCu... | [
"pmcclarence@iparadigms.com"
] | pmcclarence@iparadigms.com |
0f5ed518db714ea344380b6429275fec41ee5e98 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/test/webapps/graph_analysis_unittest.py | 8c279f8cf4de227a48180ac060fca8eb86fd07b9 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 4,714 | py | #!/usr/bin/env python3
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import csv
from file_reading import read_actions_file, read_enums_file, read_platform_supported_actions, read_unprocessed_coverage_tests_file
from test_anal... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
ce7933230d5bc50519059d8bf563e142cacd0f9d | 4f1218079f90a65befbf658679721886d71f4ee8 | /python/hackerrank/birthdaychocolate.py | ef225e1789e29cfa011f85c8ddf433ee3d17c0b9 | [] | no_license | Escaity/Library | 9f57767617422a7930caf48718d18f7ebef81547 | b34d8600e0a65845f1b3a16eb4b98fc7087a3160 | refs/heads/master | 2022-07-29T16:18:33.073738 | 2022-07-17T10:25:22 | 2022-07-17T10:25:22 | 238,588,249 | 0 | 0 | null | 2021-08-17T03:02:34 | 2020-02-06T02:04:08 | Python | UTF-8 | Python | false | false | 213 | py | def birthday(s, d, m):
n = len(s)
cnt = 0
for i in range(n - m + 1):
bar = 0
for j in range(i, i + m):
bar += s[j]
if bar == d:
cnt += 1
return cnt
| [
"esk2306@gmail.com"
] | esk2306@gmail.com |
e9e335201ab716e0b4e0c4dd41ecd24d930e054d | b7eb41b068614e04f38a969326f43d8f8119cb05 | /74_search_a_2d_matrix.py | ca546b4123fa5936447cab9c7edc0057dcffd1b4 | [] | no_license | YI-DING/daily-leetcode | ddfb6985bf5014886cba8d6219da243e0aa28d71 | a6d3898d900f2063302dc1ffc3dafd61eefa79b7 | refs/heads/master | 2020-05-19T06:07:21.557077 | 2019-07-19T16:31:46 | 2019-07-19T16:31:46 | 184,866,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | class Solution:
def searchMatrix(self, matrix: List[List[int]], target: int):
if not matrix or not matrix[0]:
return False
start, end = 0, len(matrix)-1
while start+1 < end:
mid = (start+end)//2
if matrix[mid][0] > target:
end = mid... | [
"yiding1@uchicago.edu"
] | yiding1@uchicago.edu |
f7a23f0389fe8115da3ae140207cef638d3ed979 | cb3634622480f918540ff3ff38c96990a1926fda | /PyProject/leetcode/history/symmetric-tree—2.py | 6a7f516c3065f6a3a5169f67922957b4efac8b15 | [] | no_license | jacksonyoudi/AlgorithmCode | cab2e13cd148354dd50a0487667d38c25bb1fd9b | 216299d43ee3d179c11d8ca0783ae16e2f6d7c88 | refs/heads/master | 2023-04-28T07:38:07.423138 | 2022-10-23T12:45:01 | 2022-10-23T12:45:01 | 248,993,623 | 3 | 0 | null | 2023-04-21T20:44:40 | 2020-03-21T14:32:15 | Go | UTF-8 | Python | false | false | 725 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def isSymmetric(self, root):
if root is None:
return True
else:
return self.isMirror(root.left, root.right... | [
"liangchangyoujackson@gmail.com"
] | liangchangyoujackson@gmail.com |
2fc6c3ca11a0533b9e305d1c97100d5ac134da5a | 7044043460c74a9c1c9d386bdeccb87289362f76 | /mysite/urls.py | 7794602ec06995938b9e62a0ce60bf93ca078cb7 | [] | no_license | KIMJONGIK/mysite | 6630682eca869b5122597baf2e2f59dd0b40869a | 84b908ea75602c7ca801eafb7dd975aadf70593b | refs/heads/master | 2022-12-09T14:33:38.741339 | 2020-09-16T11:48:53 | 2020-09-16T11:48:53 | 293,227,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,811 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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 ... | [
"kji089@naver.com"
] | kji089@naver.com |
d5676fa17de1d686869f532cf7410e0555426ced | a75e7f434271f1ce4bc9e89f6cc10126aa1947e7 | /test/__main__.py | b6661dcb01917492dc29fa3c377d63eb7fd7c385 | [] | no_license | smutel/pylib | 53f0918ef897d5df5e2ecb7a6b0179bdd3647843 | 463873a0f9ff2052f740be632dde746be6e3b19b | refs/heads/master | 2020-06-15T16:26:16.476496 | 2016-11-25T14:15:44 | 2016-11-25T14:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2015-11-14 12:21:54 +0000 (Sat, 14 Nov 2015)
#
# https://github.com/harisekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send m... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
8fc33e667b9cd3bc3e640188e68f4aa66390f63a | 6bd4d4845ac3569fb22ce46e6bdd0a8e83dd38b7 | /fastreid/data/build.py | da5b4b0137cd82c4dc9cc869976c914e7c475f7a | [] | no_license | wodole/fast-reid | a227219acf2606124655d63fa88c0cf3e22f4099 | 9cf222e093b0d37c67d2d95829fdf74097b7fce1 | refs/heads/master | 2022-04-15T15:10:07.045423 | 2020-04-08T13:04:09 | 2020-04-08T13:04:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,159 | py | # encoding: utf-8
"""
@author: l1aoxingyu
@contact: sherlockliao01@gmail.com
"""
import logging
import torch
from torch._six import container_abcs, string_classes, int_classes
from torch.utils.data import DataLoader
from . import samplers
from .common import CommDataset, data_prefetcher
from .datasets import DATASET... | [
"sherlockliao01@gmail.com"
] | sherlockliao01@gmail.com |
bc264dca1a83cbfdac6a1a6a8e809acd0f706f6c | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/BGP4-MIB.py | 82ca958d84278f8a01207e0ae3316c34872f82b6 | [
"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 | 25,509 | py | #
# PySNMP MIB module BGP4-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BGP4-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:35:09 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:1... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
bda08bb1e8392fe0495c5b0f7bc2ba3dc882b580 | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/android_ndk/toolchains/llvm/prebuilt/linux-x86_64/tools/scan-view/share/startfile.py | 673935909f823467ad1dd737788133966d2a00e3 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"NCSA",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-arm-llvm-sga",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 6,038 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Utility for opening a file using the default application in a cross-platform
manner. Modified from http://code.activestate.com/recipes/511443/.
"""
__version__ = '1.1x'
__all__ = ['open']
import os
import sys
import webbrowser
import subprocess
_controllers = {}
_ope... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
a269a7226604cf187ef5653174f1c4c263b1f6a7 | 92dd6a174bf90e96895127bb562e3f0a05d6e079 | /apply dfs and bfs/섬나라 아일랜드.py | d24817c5606aba77e667c87bdc35fa782e3a2e65 | [] | no_license | 123qpq/inflearn_python | caa4a86d051d76bf5612c57ae9578f1925abc5a9 | 5904cedabea9d5bc4afa3f1f76911dfccce754b5 | refs/heads/main | 2023-03-12T05:14:06.162651 | 2021-02-28T14:03:58 | 2021-02-28T14:03:58 | 338,735,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from collections import deque
n = int(input())
table = [list(map(int, input().split())) for _ in range(n)]
dx = [-1, -1, 0, 1, 1, 1, 0, -1]
dy = [0, 1, 1, 1, 0, -1, -1, -1]
q = deque()
cnt = 0
for i in range(n):
for j in range(n):
if table[i][j] == 1:
table[i][j] = 0
q.append((i, j)... | [
"45002168+123qpq@users.noreply.github.com"
] | 45002168+123qpq@users.noreply.github.com |
34017423ccd92177b7ccc9ac8445d31505fcfc05 | 20aadf6ec9fd64d1d6dffff56b05853e0ab26b1f | /problemset3/hangmanPart1.py | 98e635434a0aee5915adad9d46256d25316d340e | [] | no_license | feminas-k/MITx---6.00.1x | 9a8e81630be784e5aaa890d811674962c66d56eb | 1ddf24c25220f8b5f78d36e2a3342b6babb40669 | refs/heads/master | 2021-01-19T00:59:57.434511 | 2016-06-13T18:13:17 | 2016-06-13T18:13:17 | 61,058,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | def isWordGuessed(secretWord, lettersGuessed):
'''
secretWord: string, the word the user is guessing
lettersGuessed: list, what letters have been guessed so far
returns: boolean, True if all the letters of secretWord are in lettersGuessed;
False otherwise
'''
# FILL IN YOUR CODE HERE...
... | [
"femi1991@gmail.com"
] | femi1991@gmail.com |
f0ca2ca8e3d495e1b3a28c35d67234789796811b | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/antlr3/treewizard.py | f598edde386f82916f466737236f3becde4458a3 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 16,576 | py | # Lint as: python2, python3
""" @package antlr3.tree
@brief ANTLR3 runtime package, treewizard module
A utility module to create ASTs at runtime.
See <http://www.antlr.org/wiki/display/~admin/2007/07/02/Exploring+Concept+of+TreeWizard> for an overview. Note that the API of the Python implementation is slightly differe... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
e2305a194758b56976ba2b3d942a874de4f50a80 | bfe13b5458c5a3b8a212479ad8596934738a83d9 | /solar/solar_conv1d_1.py | b6c23eee1267e5d4790dbb3a0f5d9eff7cae0ab1 | [] | no_license | sswwd95/Project | f32968b6a640dffcfba53df943f0cf48e60d29df | fdcf8556b6203a407e5548cb4eda195fb597ad6e | refs/heads/master | 2023-04-21T23:03:24.282518 | 2021-02-15T00:55:16 | 2021-02-15T00:55:16 | 338,989,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,872 | py | import pandas as pd
import numpy as np
import os
import glob
import random
import tensorflow.keras.backend as K
import warnings
warnings.filterwarnings('ignore')
train = pd.read_csv('./solar/csv/train.csv')
sub = pd.read_csv('./solar/csv/sample_submission.csv')
# Hour - 시간
# Minute - 분
# DHI - 수평면 산란일사량(Diffuse Horiz... | [
"sswwd95@gmail.com"
] | sswwd95@gmail.com |
237ed5f539d9574b418d151c89a4c1c84834526c | 3adec884f06eabfe50d4ab3456123e04d02b02ff | /287. Find the Duplicate Number.py | df0582aa45ceb74b6bdc850e22299524e03b7121 | [] | no_license | windmzx/pyleetcode | c57ecb855c8e560dd32cf7cf14616be2f91ba50e | d0a1cb895e1604fcf70a73ea1c4b1e6b283e3400 | refs/heads/master | 2022-10-05T17:51:08.394112 | 2020-06-09T09:24:28 | 2020-06-09T09:24:28 | 250,222,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from typing import List
class Solution:
def findDuplicate(self, nums: List[int]) -> int:
left = 1
right = len(nums)
while left < right:
mid = (left+right)//2
count = 0
for i in nums:
if i <= mid:
count += 1
... | [
"2281927774@qq.com"
] | 2281927774@qq.com |
4c6b37c4b6d003a5c694b4bdd7795f7854e6f430 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/managedidentities/v1beta1/managedidentities-v1beta1-py/noxfile.py | 34dc58b5f6e2c0eefe1b194e280ee2a1542d9b95 | [
"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 | 3,595 | 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 |
4a8839c76e364ce097ae40ad6f248bb84cc4d8ef | 7bcb0b7f721c8fa31da7574f13ed0056127715b3 | /src/apps/base/models/dimensions/dimension_client.py | 666ebe39af5dc08ced900d20257b4276f2e8c9ce | [] | no_license | simonchapman1986/ripe | 09eb9452ea16730c105c452eefb6a6791c1b4a69 | c129da2249b5f75015f528e4056e9a2957b7d884 | refs/heads/master | 2022-07-22T05:15:38.485619 | 2016-01-15T12:53:43 | 2016-01-15T12:53:43 | 49,718,671 | 1 | 0 | null | 2022-07-07T22:50:50 | 2016-01-15T12:53:09 | Python | UTF-8 | Python | false | false | 1,358 | py | from django.db import models
from django_extensions.db.fields import UUIDField
from apps.base.models.dimensions.dimension import select_or_insert
from apps.flags.checks.client import client
class DimensionClient(models.Model):
"""
DimensionClient
Dim to filter down on clients within the reported data fac... | [
"simon-ch@moving-picture.com"
] | simon-ch@moving-picture.com |
7df42e2ac65b41410913aeea15f66a7ecc66569b | 772d1ab6a1814e4b6a408ee39865c664563541a6 | /lms_app/lms_dto/QuestionDto.py | 8b8efd36df53eb095889030e90c1f10efc0d854d | [] | no_license | omitogunjesufemi/lms | 7deed8bf54799034d6af2b379a0c56801f5645cc | 9c8bb88556a3f5598cf555623ef016a74ae3f5c7 | refs/heads/master | 2023-05-04T12:52:13.862572 | 2021-05-25T13:48:26 | 2021-05-25T13:48:26 | 330,643,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | class SetQuestionDto:
question_title: str
question_content: str
choice1: str
choice2: str
choice3: str
choice4: str
answer: str
assigned_mark: int
assessment_id: int
id: int
class UpdateQuestionDto:
question_title: str
question_content: str
choice1: str
choice2:... | [
"omitogunopeyemi@gmail.com"
] | omitogunopeyemi@gmail.com |
879f74a6b1320396aec7eeac890e80d9bc6010d2 | f474d500b7da4f4069e24fddcde97783a4f3664b | /vagrantEnv/lib/python3.5/encodings/shift_jis_2004.py | 0e58f25e4692aec46d75fe5c0684e974b5d6ebb5 | [
"Apache-2.0"
] | permissive | Thanh-Lai/chat-bot | 220a0fd6383181f0cdaf732b5c02f645bd960a28 | e3007fa6e034d3cccff4615a7eccf0e75bbc1708 | refs/heads/master | 2020-04-23T09:39:04.509356 | 2019-02-18T04:56:25 | 2019-02-18T04:56:25 | 171,075,880 | 0 | 0 | Apache-2.0 | 2019-02-18T04:56:26 | 2019-02-17T03:00:39 | Python | UTF-8 | Python | false | false | 46 | py | /usr/lib/python3.5/encodings/shift_jis_2004.py | [
"tlai1122@gmail.com"
] | tlai1122@gmail.com |
dfeae749b48534bb374a945d0bfda2df5bebe3d4 | 9ddfd30620c39fb73ac57e79eae0a001c45db45f | /addons/prt_mail_messages_draft/models/prt_mail_draft.py | 4e5815554dc290a8168928d341b09e81ec8f574e | [] | no_license | zamzamintl/silver | a89bacc1ba6a7a59de1a92e3f7c149df0468e185 | 8628e4419c4ee77928c04c1591311707acd2465e | refs/heads/master | 2023-01-06T20:29:25.372314 | 2020-10-29T21:02:41 | 2020-10-29T21:02:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,658 | py | from odoo import models, fields, api, _, tools
# import logging
# _logger = logging.getLogger(__name__)
# -- Select draft
def _select_draft(draft):
if draft:
return {
'name': _("New message"),
"views": [[False, "form"]],
'res_model': 'mail.compose.message',
... | [
"mohamed.abdelrahman@businessborderlines.com"
] | mohamed.abdelrahman@businessborderlines.com |
f0ccc3a5a140f298542c4fcf90576bdb112694b0 | e1fb0c63140a4cfebbe1c72fc2e5e76202e1b0f0 | /niftidataset/transforms.py | 32d4ac7829bdd7510a3daec502d659cded1be58a | [
"Apache-2.0"
] | permissive | s-mostafa-a/niftidataset | d11c1036d64fc5d25952fda5bfbd7a78d1507b0f | fa0175cf08753e6294d04e259b9b447a6dd3fa88 | refs/heads/master | 2022-11-15T18:36:10.118969 | 2020-07-11T09:53:50 | 2020-07-11T09:53:50 | 277,276,675 | 0 | 0 | NOASSERTION | 2020-07-05T10:16:05 | 2020-07-05T10:16:04 | null | UTF-8 | Python | false | false | 27,230 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
niftidataset.transforms
transformations to apply to images in dataset
Author: Jacob Reinhold (jacob.reinhold@jhu.edu)
Created on: Oct 24, 2018
"""
__all__ = ['RandomCrop2D',
'RandomCrop3D',
'RandomCrop',
'RandomSlice',
'To... | [
"jacob.reinhold@jhu.edu"
] | jacob.reinhold@jhu.edu |
689cfdb0bc848c8a3eae966b31ec04fd9e24f7f6 | 0bb27c2d2e1f7e44537515ae31f8e1713ece8407 | /5-6. 라이브러리/05-6-06.py | 697e30a7580686b3e8efcaa896a5ab8948a98951 | [] | no_license | calmahn/jump_to_python | f00d5aa11d1e2abe82f3698a403a288ed03acdb8 | 164ea4ef72f9a1ed4bc62f8580404d833ba4e442 | refs/heads/master | 2023-04-14T08:00:00.552291 | 2021-04-27T11:48:03 | 2021-04-27T11:48:03 | 345,359,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import tempfile
filename = tempfile.mkstemp()
print(filename)
f = tempfile.TemporaryFile()
f.close() | [
"acy824@naver.com"
] | acy824@naver.com |
edfb5453073a6d9575cdaf11a8e4117f7ae0ec0d | 5e05c6ec892d9a6bc33c0c0a9b6ce4c7135a83f4 | /cristianoronaldoyopmailcom_299/settings.py | d5a0c910720d8dd82153b4b4433f70e3d17e090e | [] | no_license | payush/cristianoronaldoyopmailcom-299 | 54eb5118840ea7ea68f077ffd7032a62a79880f3 | 52e5bb6ad599605b8cdf1088f9d7cdcf7c1a0265 | refs/heads/master | 2020-03-23T14:23:17.476546 | 2018-07-20T06:30:07 | 2018-07-20T06:30:07 | 141,672,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,157 | py | """
Django settings for cristianoronaldoyopmailcom_299 project.
Generated by 'django-admin startproject' using Django 1.11.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/s... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
ab2312766b10746a33edee87aae7a0185bc0508e | 70ce903a7b835e4e960abe405158513790d37426 | /django-bloggy/bloggy_project/blog/models.py | 6e45b65afb50888a69149b4da6bd875560586d7b | [] | no_license | lpatmo/book2-exercises | 29af718d74732a5bbe287ab60a67b0d84d4e0abd | 9524bc58997ff4eda10177abf70805f3691e247c | refs/heads/master | 2020-12-25T22:29:09.391501 | 2014-10-26T03:15:35 | 2014-10-26T03:15:35 | 25,755,186 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from django.db import models
from uuslug import uuslug
class Post(models.Model):
created_at = models.DateTimeField(auto_now_add=True)
title = models.CharField(max_length=100)
content = models.TextField()
tag = models.CharField(max_length=20, blank=True, null=True)
image = models.ImageField(upload... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
0f56d4ad2504d3fc8c7bc698669c0f95e8b2b0c0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02701/s368667639.py | 8111538afd640004a5f4d8e54edf3e76da2a6571 | [] | 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 | 43 | py | print(len(set(open(0).read().split())) - 1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
808afd2c166dd88286794b21c33a75891fcad75a | eb0bb5267035c0222da0c072c5dcd85b46099904 | /test/bug.986.t | 7d7e22538d6c69ad56a124722cd5c465bf5b6fda | [
"MIT"
] | permissive | bjornreppen/task | 6d96f578eec7b9cceeb4d728caeda87e7a446949 | a9eac8bb715ac8f51073c080ac439bf5c09493e8 | refs/heads/master | 2021-05-30T07:48:39.263967 | 2015-10-21T20:50:42 | 2015-10-21T20:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,329 | t | #!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
###############################################################################
#
# Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentatio... | [
"paul@beckingham.net"
] | paul@beckingham.net |
ae2eade74f9f078d1840f1f5df750227c8959659 | ce6e91fb9a5a9049d817d020ca0018b7f4008b9b | /runtests.py | ef35cd877b6d81a7ad6d506365c6d7dfbe0e8cb7 | [] | no_license | ccnmtl/django-pagetimer | b98536273b38c64f10d6832b7b74833099e68436 | 2844b3c702df2952deffdf6cd75c9e47e6f35284 | refs/heads/master | 2021-01-09T20:53:18.627185 | 2017-08-30T19:32:23 | 2017-08-30T19:32:23 | 58,394,973 | 0 | 0 | null | 2017-08-30T19:32:23 | 2016-05-09T17:25:37 | Python | UTF-8 | Python | false | false | 2,149 | py | """ run tests for pagetimer
$ virtualenv ve
$ ./ve/bin/pip install Django==1.8
$ ./ve/bin/pip install .
$ ./ve/bin/python runtests.py
"""
import django
from django.conf import settings
from django.core.management import call_command
def main():
# Dynamically configure the Django settings with the minimum neces... | [
"anders@columbia.edu"
] | anders@columbia.edu |
1f9f53be7d85b393f7c0638c796d8ddc9f14b72f | 77090c3eaf15342505edc228ea19769ab219e0f7 | /CNVbenchmarkeR/output/manta3-datasetall/results17316/runWorkflow.py | 8ecfbc9ac2eb16a453983e3a063bca3a9ffd2a6b | [
"MIT"
] | permissive | robinwijngaard/TFM_code | 046c983a8eee7630de50753cff1b15ca3f7b1bd5 | d18b3e0b100cfb5bdd9c47c91b01718cc9e96232 | refs/heads/main | 2023-06-20T02:55:52.071899 | 2021-07-13T13:18:09 | 2021-07-13T13:18:09 | 345,280,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,090 | py | #!/usr/bin/env python2
# Workflow run script auto-generated by command: '/home/robin/Documents/Project/manta/Install/bin/configManta.py --bam=/home/robin/Documents/Project/Samples/bam/all/17316.bam --referenceFasta=/home/robin/Documents/Project/Samples/hg38/hg38.fa --config=/home/robin/Documents/Project/TFM_code/CNVben... | [
"robinwijngaard@gmail.com"
] | robinwijngaard@gmail.com |
743cc0818768c373bc08f9acf81e567aacb3a69b | d528d21d32a2a7f299e8365d0a935b8718f9c07f | /cogs/utils/checks.py | 7f0962fe5b0e94c665e2849f9eb198a293c99c7d | [] | no_license | sizumita/Aegis | 53b3f3db4d88b8ffdbc0d44781f55251081a32fc | 2c9684695a32481583fd214fa63deaddea3d5ebc | refs/heads/master | 2020-09-11T00:05:48.629459 | 2020-06-23T14:04:41 | 2020-06-23T14:04:41 | 221,874,644 | 6 | 4 | null | 2019-12-10T10:58:34 | 2019-11-15T08:04:23 | Python | UTF-8 | Python | false | false | 2,758 | py | from .database import CommandPermission
from discord.ext.commands import check
import discord
async def check_command_permission(context):
"""
権限周りについて:
DMの場合確実に有効
CommandPermissionがなければそもそも有効化されていない
作成されていて、かつroles、users、permissionsが空であれば誰でも使える
:param context: commands.Context
... | [
"sumito@izumita.com"
] | sumito@izumita.com |
f837b00ff86d2477efe671f6b6412d0ad0150621 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/0/d1.py | 02a7c272c8bcf2a81b93b768bcfc238aa6155369 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
94ec5975940892096bc5b805de5af3e9c66312a3 | 6b8960551ee4be37c46f6c5f28257845fcb871ed | /task1.py | 2105ae960977b9acf3bde10337df6d46c5ad633f | [] | no_license | htrueman/db2_limited_test | 10e9e574fe52b2346c33f4485f8b1dec00c30ac8 | 489379a952ad5c1ecb5123e9e3d41ec28206dc01 | refs/heads/master | 2022-12-09T06:32:27.709446 | 2017-06-12T01:40:08 | 2017-06-12T01:40:08 | 93,772,542 | 0 | 0 | null | 2022-11-22T01:46:27 | 2017-06-08T16:56:17 | Python | UTF-8 | Python | false | false | 649 | py | test_num1 = 1
test_num2 = 10
test_num3 = 2
def handle_numbers(number1, number2, number3):
count_div_numbers = 0
div_numbers_list = []
for number in range(number1, number2 + 1):
if number % number3 == 0:
count_div_numbers += 1
div_numbers_list.append(str(number))
if div... | [
"vege1wgw@gmail.com"
] | vege1wgw@gmail.com |
fe01b307a0814fd473a553ad5bfd3a7ad7f22547 | 245a3f8cea6f232bf3142706c11188b51eb21774 | /python/hetu/onnx/onnx_opset/Where.py | 6da3b659d9f9858f398695ae791903a6f8c2c8b5 | [
"Apache-2.0"
] | permissive | initzhang/Hetu | 5bfcb07e62962fbc83def14148f8367fab02625a | 447111a358e4dc6df5db9c216bdb3590fff05f84 | refs/heads/main | 2023-06-20T18:37:21.760083 | 2021-07-27T04:37:48 | 2021-07-27T04:37:48 | 389,848,768 | 0 | 0 | Apache-2.0 | 2021-07-27T04:32:57 | 2021-07-27T04:32:57 | null | UTF-8 | Python | false | false | 610 | py | from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
from onnx import onnx_pb
from hetu.onnx import constants, util, graph
from hetu.onnx.handler import hetu_op
from hetu.onnx.onnx_opset import general
@hetu_op(["WhereOp"], onnx_op=["Where"... | [
"swordonline@foxmail.com"
] | swordonline@foxmail.com |
2ca77983524514c47a936a1f296297e5ba1c4456 | 7b1b4ed8bd4c887362b367625a833c28aa919dd8 | /wpaudit/providers/aliyun/resources/ram/policies.py | 09ac9427cfcba323da87129ef7e60ece906a9935 | [] | no_license | wperic/wpaudit | 6bbd557c803ce9bceb764c1451daeb5e440a3d9c | ed69c1eabcf85e80ed8fe5397d2d369fd3ff35d8 | refs/heads/main | 2023-07-16T21:36:57.528548 | 2021-09-03T10:35:43 | 2021-09-03T10:35:43 | 402,716,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,794 | py | from wpaudit.providers.aliyun.resources.base import AliyunResources
from wpaudit.providers.aliyun.facade.base import AliyunFacade
import json
class Policies(AliyunResources):
def __init__(self, facade: AliyunFacade):
super().__init__(facade)
async def fetch_all(self):
for raw_policy in await ... | [
"90035639+wperic@users.noreply.github.com"
] | 90035639+wperic@users.noreply.github.com |
9f350befb965c94227bb57cfedbbedd959044200 | 6567a6d0b648300cc5c3fa264a925602f61ab8c4 | /guvi5.py | e5e6aefb6421834b1423ab36aa25c4ca25a15943 | [] | no_license | AnanthiD/codekata | 6ee948ca2aea9a052a1b4604e4fc28fb91b18cda | 533e2d0b9b3ca14c37eac936a927d9933eb35374 | refs/heads/master | 2020-05-23T01:05:28.676110 | 2019-07-20T09:45:59 | 2019-07-20T09:45:59 | 186,580,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | a=input()
if(a.isalpha()):
print("Alphabet")
else:
print("no") | [
"noreply@github.com"
] | AnanthiD.noreply@github.com |
04d46f70d2543594d36fc9d340ad9c2da9f9cd7b | 7eb8bf846dc7021751019debf91925139203bed2 | /Django_Clases/tercer_proyecto/populate_modelos_aplicacion.py | 348b1e00929e50d9b01698e636df06708a4c9001 | [] | no_license | rpparada/python-and-django-full-stack-web-developer-bootcamp | 5c384dc1c19557097c893cf6149c1831984b1946 | 7b91f16cfb49d7de71901857b4e4c8f447db5e6f | refs/heads/master | 2021-09-08T22:40:44.737431 | 2018-03-12T15:12:06 | 2018-03-12T15:12:06 | 116,153,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE','tercer_proyecto.settings')
import django
django.setup()
import random
from modelos_aplicacion.models import Usuarios
from faker import Faker
generaFake = Faker()
def popular(N=10):
for entrada in range(N):
nombre_falso = generaFake.first_name()
... | [
"rpparada@gmail.com"
] | rpparada@gmail.com |
6bbe246fd9bd6d0eb23ccd5e2f43f5280487874c | d29c2dea4afbb21de0b1e508e501ee6711805451 | /__main__.py | e084aa8b11fab88e422d61a1e430451cb2602f83 | [
"MIT"
] | permissive | cdeitrick/workflows | ef69003cbd6030bc828815b7c898128327da129a | 8edd2a08078144a2445af3903eb13b71abb96538 | refs/heads/master | 2020-03-18T07:04:20.554986 | 2019-12-18T21:16:39 | 2019-12-18T21:16:39 | 134,430,686 | 0 | 0 | MIT | 2019-07-11T03:29:48 | 2018-05-22T14:50:28 | Python | UTF-8 | Python | false | false | 333 | py | from pipelines import main
import argparse
def create_parser()->argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument(
"which",
help = "assembly or variants.",
type = str,
choices = ['assembly', 'variants']
)
args = parser.parse_args()
return args
if __name__ == "__main__":
main.... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
6479a595ec5e5e6a86e7178104d6df7763bfa983 | 5f58a50d7c44d0cf612b9076df40da89302b5ba6 | /geeadd/batch_copy.py | ff05da1fea9836b073de8a843dc1faa2c53b45c2 | [
"Apache-2.0"
] | permissive | jkrizan/gee_asset_manager_addon | 386a2a5b96e31bdb5e40a08ad12545e11a376764 | 884793185ef5641f0b53349feb5f4c3be272fd28 | refs/heads/master | 2020-05-19T12:58:15.830923 | 2019-01-01T16:46:16 | 2019-01-01T16:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | from __future__ import print_function
import ee
import os
ee.Initialize()
def copy(collection_path,final_path):
assets_list = ee.data.getList(params={'id': collection_path})
assets_names = [os.path.basename(asset['id']) for asset in assets_list]
print('Copying a total of '+str(len(assets_names))+'.....')
... | [
"samapriya.roy@gmail.com"
] | samapriya.roy@gmail.com |
99d16f620ac24b74834e13c63e09b6196c038fb0 | 7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0 | /src/igem/neutronics/air/bare/borosilicate-glass-backfill/0wt/plot_all.in.one_cask.thickness_dose.rate_t4045_plug.py | c763b91a79e02074300d90606bbccfa7b9fb3d2b | [] | no_license | TheDoctorRAB/plot | dd3b5134c91c8fa7032fcc077c5427b26a80e49d | ed6746d511222c03e79f93548fe3ecd4286bf7b1 | refs/heads/master | 2021-07-11T10:21:19.347531 | 2020-07-16T17:13:15 | 2020-07-16T17:13:15 | 20,462,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,119 | py | ########################################################################
# R.A.Borrelli
# @TheDoctorRAB
# rev.11.March.2015
########################################################################
#
# Plot routine
# All in one file, with no separate control input, lib files
# Plot data is contained in a separate data f... | [
"borrelli@localhost.localdomain"
] | borrelli@localhost.localdomain |
83e185e53ee41e521bdd311be71ebf8b7318349e | 05b8143f004c6531a1d24a66888e2b02a41616cf | /mainApp/apis/cinemas_api.py | 905d41498de23e6efa289decd85035190b6c01d9 | [] | no_license | cangmingssir/flask_tpp | 1b0d8f40fd3298789beffca877874dd45d734987 | e6903a47aa2658a105f79c37a30ef5f44a4d1fab | refs/heads/master | 2020-03-19T12:04:37.056215 | 2018-06-17T08:07:48 | 2018-06-17T08:07:48 | 136,493,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | # coding:utf-8
from flask import request, session
from flask_restful import Resource, reqparse, fields, marshal_with
from mainApp import dao
from mainApp.models import Cinemas, User, Qx
from mainApp.settings import QX
def check_login(qx):
def check(fn):
def wrapper(*args,**kwargs):
token = re... | [
"mu_tongwu@163.com"
] | mu_tongwu@163.com |
140384afde407034a54ba2db872c23687b2803b5 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /exeY2wDuEW4rFeYvL_18.py | df232bc3446da8ba44e538db19a12468c1434bda | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 854 | py | """
Create an ordered 2D list (matrix). A matrix is ordered if its (0, 0) element
is 1, its (0, 1) element is 2, and so on. Your function needs to create an a ×
b matrix. `a` is the first argument and `b` is the second.
### Examples
ordered_matrix(5, 5) ➞ [
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ea2c22d2bcc968840f2546a7797fd481f4baee63 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-polardb/aliyunsdkpolardb/request/v20170801/ModifyAccountPasswordRequest.py | f043c7559542a8e3d3c3580f0a4b31e7c654201e | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,300 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
20a2640e2ad54b344e5be1bcbd8dfe4f8745ed6b | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/Chess-py/gui/gui_functions.py | ee41fde1220a24a6a79a27e9b11f9b5729a73a9c | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:920dea71adf194f81da15c63d5ab5246c6637ed6329661630abdf4d56b12f7a6
size 9635
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
5e5ce0df1b1faf85f26ec4a9c54d6ac980b61e5a | 542f898adea1b36d627d4bf437731022f242d2dd | /projects/TridentNet/tridentnet/trident_backbone.py | 7789bd219b01d452e876ad2ad7f811502719465c | [
"Apache-2.0"
] | permissive | facebookresearch/detectron2 | 24bf508e374a98a5e5d1bd4cc96556d5914215f4 | 80307d2d5e06f06a8a677cc2653f23a4c56402ac | refs/heads/main | 2023-08-30T17:00:01.293772 | 2023-08-25T22:10:24 | 2023-08-25T22:10:24 | 206,660,580 | 27,469 | 8,047 | Apache-2.0 | 2023-09-13T09:25:57 | 2019-09-05T21:30:20 | Python | UTF-8 | Python | false | false | 7,846 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import fvcore.nn.weight_init as weight_init
import torch
import torch.nn.functional as F
from detectron2.layers import Conv2d, FrozenBatchNorm2d, get_norm
from detectron2.modeling import BACKBONE_REGISTRY, ResNet, ResNetBlockBase
from detectron2.modeling.backbone.resn... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7f43ad6eb669411e466e915a50d1333fea97f289 | dd2f95416ec8107680fe72dc997eaff55fb79698 | /PixelDBTools/test/SiPixelLorentzAngleDBLoader_cfg.py | 61b6392c97fa0aedacc997546de0db95a1cb6505 | [] | no_license | odysei/DPGAnalysis-SiPixelTools | f433e75a642aea9dbc5574e86a8359826e83e556 | ac4fdc9fa3ad8a865acb64dc3bbefe66b1bdd45a | refs/heads/master | 2021-01-18T05:55:15.102609 | 2015-09-15T13:10:41 | 2015-09-15T13:10:41 | 42,519,902 | 0 | 0 | null | 2015-09-15T13:07:20 | 2015-09-15T13:07:19 | null | UTF-8 | Python | false | false | 9,799 | py | #
import FWCore.ParameterSet.Config as cms
process = cms.Process("SiPixelLorentzAngleLoader")
process.load("Configuration.Geometry.GeometryRecoDB_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
#process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
process.load("CalibTracker.Configura... | [
"danek.kotlinski@psi.ch"
] | danek.kotlinski@psi.ch |
1575b08a2c652e7cdf3d3da4db1c9005fb2a2b5b | 3da6b8a0c049a403374e787149d9523012a1f0fc | /Coder_Old/几个好玩有趣的Python入门实例/简单统计/main.py | 36fcf153c6ae58736a502713a8e34905eff3b104 | [] | no_license | AndersonHJB/PyCharm_Coder | d65250d943e84b523f022f65ef74b13e7c5bc348 | 32f2866f68cc3a391795247d6aba69a7156e6196 | refs/heads/master | 2022-07-25T11:43:58.057376 | 2021-08-03T02:50:01 | 2021-08-03T02:50:01 | 348,922,058 | 3 | 3 | null | 2021-09-05T02:20:10 | 2021-03-18T02:57:16 | Python | UTF-8 | Python | false | false | 1,270 | py | # 输入一组数据,计算均值,方差,中位数,绝对相对误差。
# -*- coding: utf-8 -*-
# 输入数据
def getNum():
nums = []
iNumStr = input('please input a sequence of numbers (enter to exit): ')
while iNumStr != '':
nums.append(eval(iNumStr))
iNumStr = input('please input a sequence of numbers (enter to exit): ')
return nums
# 平均数
def average(nu... | [
"1432803776@qq.com"
] | 1432803776@qq.com |
7045ae2111e975c1900c7f15ec0532dbbf283c3d | 9a076ee891aa04dd1522662838dda63ad554e835 | /manage.py | 6c345e52c5342bfb1e480ee19abe93787dd7e988 | [
"MIT"
] | permissive | Albert-Byrone/Pitches | fc018b3f46ea325456212154f27426c7d18ef435 | d9ae032ff0a00b135d03404477e07a8405247b5e | refs/heads/master | 2022-10-16T14:46:38.758963 | 2019-10-22T11:53:35 | 2019-10-22T11:53:35 | 216,051,524 | 0 | 1 | MIT | 2022-09-16T18:11:23 | 2019-10-18T15:12:54 | Python | UTF-8 | Python | false | false | 619 | py | from flask_script import Manager, Server
from flask_migrate import Migrate, MigrateCommand
from app import create_app,db
from app.models import User
app = create_app('production')
manager = Manager(app)
migrate = Migrate(app,db)
manager.add_command('db',MigrateCommand)
manager.add_command('server',Server(use_debugge... | [
"albertbyrone1677@gmail.com"
] | albertbyrone1677@gmail.com |
ef6b4848b893f17267f2b33abef55ff4aa3231af | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part2/batch/jm/parser_errors_2/260891264.py | b17d02424ce9eaaf1d928b9919113f11c3a2f91b | [
"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 | 1,244 | 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: 260891264
"""
"""
random actions, total chaos
"""
board = gamma_new(3, 2, 2, 6)
assert board is... | [
"jakub@molinski.dev"
] | jakub@molinski.dev |
1a8b3d4e9b1c958f9b0bce014b558636a21f1219 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GLES2/_errors.py | b6a0130446adb2d6251c43327f3ea1379148a033 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from OpenGL.error import _ErrorChecker
from OpenGL.platform import PLATFORM as _p
if _ErrorChecker:
_error_checker = _ErrorChecker(_p, _p.GLES2.glGetError)
else:
_error_checker = None
| [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
d9b540922457935fd30085acc529678202b8f414 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /tokens/FitzRNS3.py | cee58928d034cfd5b351f2321166d94af284c10a | [] | 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 | 855,918 | py | lis = [u'narr', u'survey', u'voyag', u'hi', u'majesti', u'ship', u'adventur', u'beagl', u'year', u'1826', u'1836', u'describ', u'examin', u'southern', u'shore', u'op', u'south', u'america', u'beagl', u'circumnavig', u'globe', u'appendix', u'ft', u'ajx', u'v0lumeia2', u'london', u'henri', u'colour', u'great', u'marlboro... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
22adac66fa6865c32e5f213be1abc3f4001823a7 | 0f58d1d2560d7b3a9c4567ff7431a041ebe8d1ac | /0x0A-python-inheritance/8-rectangle.py | 82cd7919083de7517b18001dd57682fc827dfd43 | [] | no_license | peluza/holbertonschool-higher_level_programming | da2c5fc398ab7669989041f3be53a157638641c2 | a39327938403413c178b943dbeefe02509957c9b | refs/heads/master | 2022-12-14T08:12:27.444152 | 2020-09-24T21:45:49 | 2020-09-24T21:45:49 | 259,433,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | #!/usr/bin/python3
"""8-rectangle
"""
BaseGeometry = __import__('7-base_geometry').BaseGeometry
class Rectangle(BaseGeometry):
"""Rectangle
Arguments:
BaseGeometry {class} -- the class is BAseGeometry
"""
def __init__(self, width, height):
"""__init__
Arguments:
... | [
"edisonisaza@gmail.com"
] | edisonisaza@gmail.com |
e98d82802b45dee7a575478de70e3ddfcbb5feba | af0a20320217f1e4140346ed60a585c74f16e205 | /20.3-html-entities.py | a9bc00d754636e462656b97e7a8600edf425709c | [] | no_license | JasonOnes/py-library-reviews | f749a0f0c6f5ebe820792da8a2bacf00cd6964d5 | 00620cb78f44a1e6f647ae006dc9a35909db0f3c | refs/heads/master | 2021-05-14T13:52:01.060933 | 2018-01-28T17:56:46 | 2018-01-28T17:56:46 | 115,957,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,846 | py | """Not quite sure how to demo this module as it is basically just four dicts"""
# html.entities
# .html5 => maps char refs to Unicode chars
# .entitydefs => maps XHTML 1.0 entity defs to replacement test in ISO Latin-1 (?)
# .name2codepoint => maps HTML enity names to Unicode c... | [
"jasonr.jones14@gmail.com"
] | jasonr.jones14@gmail.com |
e2c8348e317ff438a9f404126243a8fb3482855e | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /airflow/providers/cncf/kubernetes/utils/xcom_sidecar.py | a8c0ea4c1936fc29a359f1c5cef8e36444cbd5c0 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 2,215 | 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... | [
"noreply@github.com"
] | coutureai.noreply@github.com |
b6c6890770545affae43a687df491bc4228d1c6e | b030e97629ce909e60065fb061110d9b0818aee1 | /501-600/561.Array Partition I.py | abc497d0d0fffc3804b7017701ae8180a7ace8ab | [] | no_license | iscas-ljc/leetcode-easy | 40325395b0346569888ff8c065cacec243cbac98 | e38de011ce358c839851ccac23ca7af05a9d0b32 | refs/heads/master | 2021-01-20T09:27:07.650656 | 2017-11-22T03:07:47 | 2017-11-22T03:07:47 | 101,595,253 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | class Solution(object):
def arrayPairSum(self, nums):
nums.sort()
return sum(nums[::2])
#等价于return sum(sorted(nums)[::2])
#将数组从小到大排序,取下标为偶数的元素求和即为答案
| [
"861218470@qq.com"
] | 861218470@qq.com |
9f9440dbe47182b81654f1fac4c7832415b4ba21 | 29f7e80a31803eb196a623d0b75eb1cda47aea0d | /io_scene_bsp/__init__.py | e14db24d6b0879ce4f44de88b891b672937a0ccd | [
"MIT"
] | permissive | Rikoshet-234/io_scene_bsp | 3cd6eb15fd1cc1d663040567ea536ed8eb4ef956 | 68e2fa1210bebb212d1792f094634dd21b145e21 | refs/heads/master | 2020-04-29T05:34:02.733894 | 2019-03-14T21:25:19 | 2019-03-14T21:25:19 | 175,887,248 | 1 | 0 | MIT | 2019-03-15T20:32:36 | 2019-03-15T20:32:35 | null | UTF-8 | Python | false | false | 768 | py | bl_info = {
'name': 'Quake engine BSP format',
'author': 'Joshua Skelton',
'version': (1, 0, 1),
'blender': (2, 80, 0),
'location': 'File > Import-Export',
'description': 'Load a Quake engine BSP file.',
'warning': '',
'wiki_url': '',
'support': 'COMMUNITY',
'category': 'Import-E... | [
"joshua.skelton@gmail.com"
] | joshua.skelton@gmail.com |
5e9bd9c20b1c09d125229d517891f7c7ec492ce5 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_ottawas.py | 85b54ee2bfb7c07f0824dea4c14fd7d0f039fc54 | [
"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 | 222 | py |
#calss header
class _OTTAWAS():
def __init__(self,):
self.name = "OTTAWAS"
self.definitions = ottawa
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['ottawa']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
689bb311707516c8cc0bd57ffe6d6baa9255dab9 | ea24104edfb276f4db780638fcc8e6cf7f7dceb8 | /dpaste/tests/test_snippet.py | 118ef8773bf4690d18f9d094dd786be6693eae1a | [
"MIT"
] | permissive | jmoujaes/dpaste | 6e195dc7f3a53ae2850aa4615514876597b6564d | 27d608e5da4b045ea112823ec8d271add42fd89d | refs/heads/master | 2021-01-25T14:33:06.648359 | 2018-03-03T19:57:51 | 2018-03-03T19:57:51 | 123,708,048 | 0 | 0 | MIT | 2018-03-03T16:08:54 | 2018-03-03T16:08:54 | null | UTF-8 | Python | false | false | 16,562 | py | # -*- encoding: utf-8 -*-
from datetime import timedelta
from django.core import management
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.client import Client
from django.test.utils import override_settings
from ..forms import EXPIRE_DEFAULT
from ..highlight import LE... | [
"martin@mahner.org"
] | martin@mahner.org |
d9c680c635056f20fa50c26d1c4e8ca06a8cc1f6 | 09a645cdd074638ab34790680bcb1122e3f5f48d | /python/GafferAppleseedUI/AppleseedAttributesUI.py | 0a599834a1e4bb18444d8c89ca8b9f934d374628 | [
"BSD-3-Clause"
] | permissive | cedriclaunay/gaffer | 65f2940d23f7bdefca5dcef7dc79ed46745969e8 | 56eebfff39b1a93fff871e291808db38ac41dbae | refs/heads/master | 2021-01-22T02:48:29.334446 | 2015-01-26T17:16:15 | 2015-01-26T17:16:15 | 28,099,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | ##########################################################################
#
# Copyright (c) 2014, Esteban Tovagliari. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistribution... | [
"ramenhdr@gmail.com"
] | ramenhdr@gmail.com |
b99542f3a3322135a18969f2e1aa685b56bfa628 | 42c1dc42481ad4666c4ed87b42cee26d192116a5 | /paraiso/hotel/migrations/0021_auto_20170615_1507.py | ac13fffdd102edad3ca303c9df8f774a4c2e0fe7 | [] | no_license | williamkblera/paraiso | f65ea9750fd0bc0fcc2454017a70945a10d72353 | e786d2a2a41691b3870599c88859ca839d9299db | refs/heads/master | 2021-01-23T00:35:33.542190 | 2017-12-11T20:24:26 | 2017-12-11T20:24:26 | 92,826,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 601 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-15 19:07
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('hotel', '0020_auto_20170615_1500'),
... | [
"williamkblera@gmail.com"
] | williamkblera@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.