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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
258340149c613722be8d1cfed6c2f43bf4840d6b | 69eb034a1d086d1b2ce1f1083df2b2fd74b9f5cc | /train_model_rmre.py | 7396f5c35cbd7cd3cf08f2c365cdd892b4978ffc | [] | no_license | webdxq/genarate_blessing | 2c0f6afc55f4c507750911802a80fe299a4690d6 | a08a09071edf687dcb512713daea1daf00450383 | refs/heads/master | 2020-03-29T01:38:33.419803 | 2018-09-19T06:10:26 | 2018-09-19T06:10:26 | 145,077,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,938 | py | #!/usr/bin/python3
#-*- coding: UTF-8 -*-
import collections
import numpy as np
import tensorflow as tf
import os
import sys
import chardet
import re
import json
import time
from datetime import datetime
reload(sys)
sys.setdefaultencoding('utf8')
# os.environ['CUDA_VISIBLE_DEVICES']='1'
#--------... | [
"407383787@qq.com"
] | 407383787@qq.com |
8562913d19df6e29366246a74cfb3818c2b42ba8 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/pygame/pygameweb/pygameweb/config.py | 93d8fc8e758f4623cd6c55d2070b53f047f96a2d | [
"BSD-2-Clause"
] | permissive | 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:3ead591f9a215ef79ce67657f0809e549584a72ef37757eb3272ca4fbba1ab78
size 2948
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
fefc253d22ba5bb0ef9b94bef1230f18761a0a2b | afa456bb3792e433d84684260cdce1dbc6302cde | /authors/apps/tests/test_validation.py | d124f479a99ca4cf8c7e3e77f3b359a31f4e9213 | [
"BSD-3-Clause"
] | permissive | andela/ah-backend-poseidon | 23ac16e9fcdce49f78df04126f9f486b8c39ebd4 | d2b561e83ed1e9a585853f4a4e2e37805e86c35c | refs/heads/develop | 2022-12-09T07:38:04.843476 | 2019-07-19T13:44:13 | 2019-07-19T13:44:13 | 158,799,017 | 1 | 4 | BSD-3-Clause | 2022-12-08T01:19:16 | 2018-11-23T07:55:00 | Python | UTF-8 | Python | false | false | 3,979 | py | from .base import BaseTestCase
from rest_framework import status
from authors.apps.authentication.models import User
from . import (new_user, data2, invalid_email, invalid_password,
short_password, dup_username, user_login)
class AccountTests(BaseTestCase):
"""handles user registration tests"""
... | [
"ephraim.malinga@gmail.com"
] | ephraim.malinga@gmail.com |
d31cbc5e81c667f85f43dbf60c55f2703673fc8c | 5e66a11717a4760646c0e02bf9ffff2f82f66d18 | /chemistry/qchem_make_opt_input_from_opt.py | ca09c35ad793d6cf3c29ac90a3ae9a121f288104 | [] | no_license | berquist/personal_scripts | 4517678fa57e524e9765dc71f05594e34bdd9c72 | d6c40ba6e5a607d26ffabf809cfdfdf3ce29bfb3 | refs/heads/master | 2023-07-21T08:44:36.401893 | 2023-07-07T19:55:55 | 2023-07-07T19:55:55 | 37,238,106 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | #!/usr/bin/env python
"""qchem_make_opt_input_from_opt.py: Make an input file for a Q-Chem
geometry optimization based on the last possible geometry from a
Q-Chem geometry optimization; this effectively 'restarts' the geometry
with a new filename.
The script assumes the output file being read from is called
'*opt(\d*... | [
"eric.berquist@gmail.com"
] | eric.berquist@gmail.com |
73a435e8064d91919dec34b8cd6bebc8580cccd6 | 47b4d76e9c87e6c45bab38e348ae12a60a60f94c | /Mutation_Modules/ASP_ABU.py | daf6d4fc6047cc403fb95ef273d03a28cd399101 | [] | no_license | PietroAronica/Parasol.py | 9bc17fd8e177e432bbc5ce4e7ee2d721341b2707 | 238abcdc2caee7bbfea6cfcdda1ca705766db204 | refs/heads/master | 2021-01-10T23:57:40.225140 | 2020-10-14T02:21:15 | 2020-10-14T02:21:15 | 70,791,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,941 | py | # ASP to ABU Mutation
import Frcmod_creator
import PDBHandler
import Leapy
from parmed.tools.actions import *
from parmed.amber.readparm import *
def parmed_command(vxi='VXI', lipid='No'):
bc = {}
with open('Param_files/AminoAcid/ASP.param', 'r') as b:
data = b.readlines()[1:]
for lin... | [
"pietro.ga.aronica@gmail.com"
] | pietro.ga.aronica@gmail.com |
baf6d43bb76cf966f9aafce6ee12d8dd8e818f72 | a74cabbe1b11fc8ef575ea86f2543cd95db78ec9 | /python_program/q783_Minimum_Distance_Between_BST_Nodes.py | 4e4fe499e62126c9b084fde6bd89e951b18accbf | [] | no_license | tszandy/leetcode | 87e3ccf291b2879637d2d8238935a455b401a78a | f1f4361541dcffbb291285663c8820d7ffb37d2f | refs/heads/master | 2023-04-06T15:34:04.847875 | 2023-03-26T12:22:42 | 2023-03-26T12:22:42 | 204,069,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | from typing import List
from collections import Counter,defaultdict
from math import *
from functools import reduce,lru_cache,total_ordering
import numpy as np
from heapq import *
from bisect import bisect_left,bisect_right
from itertools import count
import queue
# Definition for a binary tree node.
# class TreeNode:... | [
"444980834@qq.com"
] | 444980834@qq.com |
2c4815d72b5155adfdf7058fe4a14ff7f245285f | 6497bc5638453877744c900f7accef0203f36e89 | /leedcode1_twosum.py | e4bfcfdfe9201a15782286e8a9d575f229c34ec0 | [] | no_license | budaLi/leetcode-python- | 82e9affb3317f63a82d89d7e82650de3c804a5ac | 4221172b46d286ab6bf4c74f4d015ee9ef3bda8d | refs/heads/master | 2022-01-30T00:55:26.209864 | 2022-01-05T01:01:47 | 2022-01-05T01:01:47 | 148,323,318 | 46 | 23 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | #-*-coding:utf8-*-
#author : Lenovo
#date: 2018/7/23
class Solution(object):
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
d = {}# d is a dictionary to map the value of nums and the index in nums
size = 0
... | [
"31475416+152056208@users.noreply.github.com"
] | 31475416+152056208@users.noreply.github.com |
a736d5a5660159fb0615d48680b0d70ffdac597c | a2080cbcf9694ad03690769cfc64d85a57f1d9d5 | /src/graphql/language/printer.py | 842f251878846b17bd2c7f9e94bba434648fd747 | [
"MIT"
] | permissive | wuyuanyi135/graphql-core | 84196a47aec0f9508db3f8aadb8951b9fc9b9fe0 | 169ae7bced0f515603e97f1def925f3d062e5009 | refs/heads/main | 2023-04-13T11:38:10.815573 | 2021-05-02T05:17:29 | 2021-05-02T05:21:58 | 363,327,364 | 1 | 0 | MIT | 2021-05-01T05:05:29 | 2021-05-01T05:05:28 | null | UTF-8 | Python | false | false | 13,157 | py | from functools import wraps
from json import dumps
from typing import Any, Callable, Collection, Optional
from ..language.ast import Node, OperationType
from .visitor import visit, Visitor
from .block_string import print_block_string
__all__ = ["print_ast"]
Strings = Collection[str]
class PrintedNode:
"""A un... | [
"cito@online.de"
] | cito@online.de |
d76e46afa9347a3212afc1f391dab391766e7696 | a36501f44a09ca03dd1167e1d7965f782e159097 | /app/extensions/mongobeat/models.py | 27451e0eefe1a01350156a088481e408b9a33cd9 | [
"Apache-2.0"
] | permissive | ssfdust/full-stack-flask-smorest | 9429a2cdcaa3ff3538875cc74cff802765678d4b | 4f866b2264e224389c99bbbdb4521f4b0799b2a3 | refs/heads/master | 2023-08-05T08:48:03.474042 | 2023-05-07T01:08:20 | 2023-05-07T01:08:20 | 205,528,296 | 39 | 10 | Apache-2.0 | 2023-08-31T00:18:42 | 2019-08-31T10:12:25 | Python | UTF-8 | Python | false | false | 7,149 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
f3287e42a48321132242a2d84b76e9deee52f5db | 7834e7a48399b156401ea62c0c6d2de80ad421f5 | /pysparkling/fileio/codec/codec.py | c057cfaa4b9cab5df56f5d5f9ac4badb66914438 | [
"MIT"
] | permissive | vojnovski/pysparkling | b9758942aba0d068f6c51797c8fb491cf59c3401 | 21b36464371f121dc7963dac09d300e7235f587e | refs/heads/master | 2020-04-08T18:33:55.707209 | 2016-07-27T15:12:59 | 2016-07-27T15:12:59 | 62,555,929 | 0 | 0 | null | 2016-07-04T11:06:18 | 2016-07-04T11:06:18 | null | UTF-8 | Python | false | false | 222 | py | import logging
log = logging.getLogger(__name__)
class Codec(object):
def __init__(self):
pass
def compress(self, stream):
return stream
def decompress(self, stream):
return stream
| [
"me@svenkreiss.com"
] | me@svenkreiss.com |
354cd069b9195ce2cabedf5b537fbef6f1713e6b | 8c7b03f24517e86f6159e4d74c8528bfbcbf31af | /test/python_api/lldbutil/frame/TestFrameUtils.py | 04d398bc5fa1b95d457aa1aaae5bd15ded01ab94 | [
"NCSA"
] | permissive | markpeek/lldb | f849567fbd7791be10aacd41be44ee15f1a4fdc4 | 58c8d5af715a3da6cbb7e0efc6905e9d07410038 | refs/heads/master | 2021-01-15T17:01:57.014568 | 2011-12-24T01:08:58 | 2011-12-24T01:08:58 | 3,042,888 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | """
Test utility functions for the frame object.
"""
import os
import unittest2
import lldb
from lldbtest import *
class FrameUtilsTestCase(TestBase):
mydir = os.path.join("python_api", "lldbutil", "frame")
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Find the line... | [
"mark@peek.org"
] | mark@peek.org |
44ca2e8649630c0f338c6636d11ae3d772d89710 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03418/s842655187.py | e812523bc9e5891268bd0c4350311e175da8ddc3 | [] | 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 | 161 | py | N,K=map(int,input().split())
a=0
for i in range(K+1,N+1):
t=N//i
n=N-t*i
a+=t*(i-K)
if K:
a+=max(0,n-K+1)
else:
a+=n
print(a) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1c3d4834bbc46156f17c4081635c11a08d327dd1 | 710e96b1435bc43cc260512df75af5dd3b2afd13 | /code/1044.py | 6b217c61734025d6ab42ff1303588769ee0ced7d | [
"MIT"
] | permissive | minssoj/Learning_Algorithm_Up | 94ca8166c9a5d87917cf033ad8415871684241c4 | 45ec4e2eb4c07c9ec907a74dbd31370e1645c50b | refs/heads/main | 2023-01-08T20:52:32.983756 | 2020-11-05T17:49:45 | 2020-11-05T17:49:45 | 301,926,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | # [기초-산술연산] 정수 1개 입력받아 1 더해 출력하기(설명)
# minso.jeong@daum.net
'''
문제링크 : https://www.codeup.kr/problem.php?id=1044
'''
n = int(input())
print(n + 1) | [
"minso.jeong@daum.net"
] | minso.jeong@daum.net |
0afbaee6a3d11e935314a77c986fca4852eeb54e | d326cd8d4ca98e89b32e6a6bf6ecb26310cebdc1 | /rosalind/bioinformatics/stronghold/tran/main.py | 131ebf08d6ecc2fe6278e7b4127c11468845a825 | [] | no_license | dswisher/rosalind | d6af5195cdbe03adb5a19ed60fcbf8c05beac784 | 4519740350e47202f7a45ce70e434f7ee15c6afc | refs/heads/master | 2021-08-09T02:58:17.131164 | 2017-11-12T01:26:26 | 2017-11-12T01:26:26 | 100,122,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py |
import sys
from rosalind.common import util
from rosalind.bioinformatics.common import fasta
def compute_ratio(seq1, seq2):
transitions = set(['AG', 'GA', 'CT', 'TC'])
transversions = set(['AC', 'CA', 'GT', 'TG', 'AT', 'TA', 'CG', 'GC'])
numTransitions = 0
numTransversions = 0
for i in xrange(len... | [
"big.swish@gmail.com"
] | big.swish@gmail.com |
2150af8db3f4f64b86685075d6ed96e3845861c3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_chauffeur.py | 97f43e805d5aba06eb05a5fd2bd9c150fd38b7be | [
"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 | 354 | py |
#calss header
class _CHAUFFEUR():
def __init__(self,):
self.name = "CHAUFFEUR"
self.definitions = [u'someone whose job is to drive a car for a rich or important person: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], o... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7b1dfacee784f7b05375188302ab051e0b005603 | ad28a59209239be285d1127a87bc08893fb62cb9 | /python/aad/test_concept_drift_classifier.py | 76ebbe63d04d5f1a6934a18ec97cdc667445b71c | [
"MIT"
] | permissive | Karl-Wu/ad_examples | 9e6f894c2414640b23ccdeb39db9e9b8352ef077 | 6fb0a2a72db51d82645e377945327eb9e1ecf8b8 | refs/heads/master | 2020-03-26T19:33:45.128414 | 2018-08-17T21:42:15 | 2018-08-17T21:42:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,961 | py | from aad.data_stream import *
from common.gen_samples import read_anomaly_dataset
from aad.anomaly_dataset_support import *
from aad.classifier_trees import RandomForestAadWrapper
"""
Check data drift with a Random Forest classifier.
NOTE: The classifier is trained only once in this example with the
first windo... | [
"smd.shubhomoydas@gmail.com"
] | smd.shubhomoydas@gmail.com |
ff22a34e9a956fa4c76ccb221f9d964d39375203 | 6cd3de9d6aa0c52602010aa857966d5dc4d57442 | /mlprodict/onnxrt/ops_cpu/op_lp_normalization.py | b8f5b8b7274ac89c8fb4bd972bdfda60a72b2e4c | [
"MIT"
] | permissive | xadupre/mlprodict | 2307ca96eafeeafff08d5322184399bb5dc1c37e | f82c8a26a60104948c67849b1c4af95ca812c153 | refs/heads/master | 2022-12-10T18:50:36.953032 | 2020-09-03T08:53:58 | 2020-09-03T08:53:58 | 292,824,744 | 1 | 0 | NOASSERTION | 2020-09-04T10:56:45 | 2020-09-04T10:56:44 | null | UTF-8 | Python | false | false | 837 | py | # -*- encoding: utf-8 -*-
# pylint: disable=E0203,E1101,C0111
"""
@file
@brief Runtime operator.
"""
import numpy
from ._op import OpRunUnaryNum
class LpNormalization(OpRunUnaryNum):
atts = {'axis': -1, 'p': 2}
def __init__(self, onnx_node, desc=None, **options):
OpRunUnaryNum.__init__(self, onnx_no... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
64ced12d14e6ef07689ff4230e0e91e5529ae4b7 | 44849991f507933ebc7ed4e8e37819a529be539e | /steps/step09.py | f4696c0a213f1cce610937e96f56827da22d84d5 | [
"MIT"
] | permissive | NukeA/deep-learning-from-scratch-3 | 4ff60e8ac5b157a05079fc3b8a2ea69acec9ece5 | e48a7b8788827a16cc9f81adc135a3a14989bea5 | refs/heads/master | 2022-11-02T00:58:56.621011 | 2020-06-16T04:36:23 | 2020-06-16T04:36:23 | 273,873,741 | 1 | 0 | MIT | 2020-06-21T09:34:25 | 2020-06-21T09:34:24 | null | UTF-8 | Python | false | false | 1,780 | py | import numpy as np
class Variable:
def __init__(self, data):
if data is not None:
if not isinstance(data, np.ndarray):
raise TypeError('{} is not supported'.format(type(data)))
self.data = data
self.grad = None
self.creator = None
def set_creator(s... | [
"koki0702@gmail.com"
] | koki0702@gmail.com |
b62ee27024d05328ebb4cf87044e452d5be84b1a | 34088b8e82bc64a10678a08c03db2732d52f0c1a | /Pinbot/app/dash/migrations/0018_auto__add_field_resumedailyreportdata_resume_down_proportion.py | ba80829f546552507a844e0a3e81dcce76bb676a | [] | no_license | winghou/myFirstProfile | 757d82f5391f3672e48db4aa5774e26a48a5ecc7 | 8fc5d16de7b6449cba058f4d2459bbb0c8438f77 | refs/heads/master | 2020-05-31T13:42:28.554703 | 2016-03-23T11:30:13 | 2016-03-23T11:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,426 | 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 field 'ResumeDailyReportData.resume_down_proportion'
db.add_colu... | [
"Newfarming@NewfarmingdeMacBook-Pro.local"
] | Newfarming@NewfarmingdeMacBook-Pro.local |
10eaeac02a5dcc162ac6889c1a4182414870249d | 4f49c1de4683bd00f5b831a0c7fd2b431b627be5 | /object_properties_panel.py | 36028619ed216e14b535d3acd7be96cd2d144287 | [] | no_license | PyrokinesisStudio/BlenderArchitectureAppTemplate | 6ce1c4896b7eee423c24558f10bc32bf3a2bdaac | 6b18bdca380d658288cd605c2e794473f57a04b0 | refs/heads/master | 2020-03-18T17:13:01.424253 | 2017-12-22T07:42:59 | 2017-12-22T07:42:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,162 | py | import bpy
import math
from bpy.app.translations import pgettext_iface as iface_ #for decimate modifier
from . import unit, utils
enum_object_tabs = [('INFO'," ","Show the Main Information"),
('DISPLAY',"","Show Options for how the Object is Displayed"),
('MATERIAL',"","Show the... | [
"dev.andrewpeel@gmail.com"
] | dev.andrewpeel@gmail.com |
5dd63b2b9df8c5af5403c212e5f8fa25f11a8055 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/learn/python/learn/learn_io/generator_io.py | 784781d7368490a10d5dbc9cd5842f4bed98eda3 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,499 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
bbbb760b22d3a07d2b3d10445c267f72ed9fcfbd | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/IEM_conditions/IEM_condition.py | 244e5b35232d3da6732fe524c6e5c3d6790c863a | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,024 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 18:24:32 2019
@author: David Bestue
"""
## Import functions prom the previous path
import sys
import os
previous_path = os.path.abspath(os.path.join(os.getcwd(), os.pardir))
sys.path.insert(1, previous_path)
from model_functions import *
from fake_data_generator imp... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
ba41f7aef79a7bcb7d8f12a8308d4d45eacd1ce8 | 6f4e925bf4538d104f1e3e9754d4297c5504ab80 | /python/recall/app/domain/__init__.py | 55879d938b278a1a92324ce2cb752388ae90ff9d | [
"MIT"
] | permissive | kingreatwill/openself | 7f02282da3e0b1f328c3627d83ba2b5ed4563dc8 | 8517d24e665b39371835ecd2ed0cd3509a5d9d62 | refs/heads/master | 2023-01-23T13:15:49.491402 | 2020-11-19T02:39:52 | 2020-11-19T02:39:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import models
class Domain:
def __init__(self, model: models.db.Document):
self.model = model
# 列表;
def list(self, size=10, index=1, **kwargs):
size = int(size)
index = int(index)
return self.model.objects(**kwargs).skip((index - 1) * size).limit(size)
# 明细;
def g... | [
"kingreatwill@qq.com"
] | kingreatwill@qq.com |
0894ab4443b0c20e40c07b66f35c003920e6f84e | 39735aac6631d2992b47ad7645930266322a4774 | /tensorflow_probability/python/distributions/distribution_test.py | d25be8d069320024879b7b4b5336383f16bf12b7 | [
"Apache-2.0"
] | permissive | Abdelpakey/probability | b96dff53fab9d9405f39d224fa77ff13f871c5db | b43d491fade784ae216a026823d2d27d7317264f | refs/heads/master | 2020-04-01T05:26:28.718050 | 2019-02-15T15:47:16 | 2019-02-15T15:47:16 | 152,903,143 | 0 | 0 | null | 2018-10-13T18:39:10 | 2018-10-13T18:39:31 | null | UTF-8 | Python | false | false | 13,317 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
f8d8ee4061dbff936f37094f60a8e6e5b2dbd040 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/noisy/startQiskit_noisy241.py | d59a29805cadc73e57d6ef26c5940d08ffc753ef | [
"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 | 3,185 | py | # qubit number=2
# total number=11
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5a0c7f2232c9b5b9b6aebd0299f3b756198fbcab | a1488a281e582373b7270d85059f08330c0b685d | /dueros/directive/Display/tag/NewTag.py | 86f19cc6e51950cde6ea45a11b1821aef4bfab0f | [
"Apache-2.0"
] | permissive | xuchengzhi/bot-sdk-python | 473fb8e7df629a6168983e26de74546bbca32768 | 966d103d55f9f1220c00d806ac13d0754015a31c | refs/heads/master | 2020-12-06T17:00:55.587643 | 2019-10-18T02:54:45 | 2019-10-18T02:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | #!/usr/bin/env python3
# -*- encoding=utf-8 -*-
# description:
# author:jack
# create_time: 2018/9/17
"""
desc:pass
"""
from dueros.directive.Display.tag.TagTypeEnum import TagTypeEnum
from dueros.directive.Display.tag.BaseTag import BaseTag
class NewTag(BaseTag):
def __init__(self):
super(NewTag,... | [
"wangninghb@gmail.com"
] | wangninghb@gmail.com |
71de969b7a916bf5eab2c78a574d3186cf9d290b | 365186abceefc51e811706ad325a2f53a63a25f8 | /tests/scripts/comparisonPlots.py | e0fbf4cda1982e9d1ea7945d69f32ca47e3b51b7 | [
"MIT"
] | permissive | tboudreaux/pytopsscrape | a857bdca8558bf86f7afd5f8f3e6d2e5ca90fa64 | c9f95e6a6419debb0b6a22f22d1574a8bbf73bd0 | refs/heads/master | 2023-04-06T17:48:08.812425 | 2023-04-04T00:01:13 | 2023-04-04T00:01:13 | 532,559,997 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import matplotlib.pyplot as plt
from pyTOPSScrape.parse import load_opal
import os
import datetime
def make_comparision_plot():
TargetPath = "./GS98Target.opac"
TestPath = "./GS98TestResult.opac"
OPALPath = "./GS98OPAL.opac"
targetTime = datetime.datetime.fromtimestamp(os.path.getmtime(TargetPath))
... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6c7175ef0bf5c454553094b3f009ebac86114775 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/violin/_metasrc.py | 466d497ebca4399340d12c5b16b62c2cd713264a | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 392 | py | import _plotly_utils.basevalidators
class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(self, plotly_name="metasrc", parent_name="violin", **kwargs):
super(MetasrcValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
ed... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
c3e40fb6c21a8b78a1912a6dddd65973f62ce9b6 | a82dfb61b17fa66b9c75fe871401cff77aa77f56 | /libmcell/definition/doc.py | 48cdb0ffba9e2e4089d530fbc690a17b0601d563 | [
"MIT"
] | permissive | mcellteam/mcell | 49ca84048a091de8933adccc083d31b7bcb1529e | 3920aec22c55013b78f7d6483b81f70a0d564d22 | refs/heads/master | 2022-12-23T15:01:51.931150 | 2021-09-29T16:49:14 | 2021-09-29T16:49:14 | 10,253,341 | 29 | 12 | NOASSERTION | 2021-07-08T01:56:40 | 2013-05-23T20:59:54 | C++ | UTF-8 | Python | false | false | 7,463 | py | """
Copyright (C) 2021 by
The Salk Institute for Biological Studies
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
"""
import sys
import os
import yaml
from constants import *
from gen import indent_and_fix_rst_chars, yaml... | [
"ahusar@salk.edu"
] | ahusar@salk.edu |
23458d70bd4f9ae696d8d81fa5c01f56971f7da7 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /training/c25_flask/examples/world_api/original/tools.py | 1dc1684dc799c4417844116947e284621a8d0bee | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,890 | py | import pymysql
from flask import request, jsonify, render_template, make_response, abort
def xmlify(template, value):
text = render_template(template, value=value)
response = make_response(text)
response.headers['Content-Type'] = 'application/xml'
return response
def prepare_response(template, info... | [
"user.nuage@gmail.com"
] | user.nuage@gmail.com |
d37148f04674bda7b996896bf1686b7c6b7db8c4 | a8b0599af76b5393039431f876be00d628a1fe43 | /backend/kangas/server/__init__.py | 4f348efc3c7c9d70831cec668eae3966b7210d79 | [
"Apache-2.0"
] | permissive | comet-ml/kangas | c951f648d890dca5a66cbab405d3437be2f3e9e3 | df0c1a495032cc4f1c367c74fcb0ef6e5a2063be | refs/heads/main | 2023-06-12T23:38:43.068259 | 2023-06-05T18:38:34 | 2023-06-05T19:28:33 | 550,324,241 | 944 | 41 | Apache-2.0 | 2023-06-05T19:28:35 | 2022-10-12T15:10:04 | Jupyter Notebook | UTF-8 | Python | false | false | 2,379 | py | # -*- coding: utf-8 -*-
######################################################
# _____ _____ _ _ #
# (____ \ _ | ___) (_) | | #
# _ \ \ ____| |_ ____| | ___ ___ _ _ | | #
# | | | )/ _ | _)/ _ | |(_ / __) |/ || | #
# | |__/ ( ( | | |... | [
"doug.blank@gmail.com"
] | doug.blank@gmail.com |
1e1ae4854016d822cbf704f310b243729c7e3e4a | 21acc25dd3969318dd8476e364fe2fb4eabfe4f4 | /podcastninja/migrations/0005_auto_20150423_1005.py | 5c94549f4db338ebc255bd4a0a32cb7727b5426a | [] | no_license | monty5811/podcastninja | 72dc98375974b1714a8457b09126981a76166b9a | 94a55536270f3e1c4e4f2160e0a24e79c9f40b7f | refs/heads/master | 2020-05-17T01:24:57.312486 | 2015-05-25T15:18:03 | 2015-05-25T15:18:03 | 35,883,288 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('podcastninja', '0004_podcastitem_s3_url'),
]
operations = [
migrations.AlterField(
... | [
"montgomery.dean97@gmail.com"
] | montgomery.dean97@gmail.com |
dc9bc77e75ec86cb2ad265207209d03d37bf69a4 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /leetcode-cn/1929.0_Concatenation_of_Array.py | d8ab060fd5948df008b621e9dca0f8d6bf0d9362 | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | '''
执行用时:36 ms, 在所有 Python3 提交中击败了38.78% 的用户
内存消耗:15.1 MB, 在所有 Python3 提交中击败了51.26% 的用户
'''
class Solution:
def getConcatenation(self, nums: List[int]) -> List[int]:
return nums + nums
'''
执行用时:36 ms, 在所有 Python3 提交中击败了38.78% 的用户
内存消耗:15.1 MB, 在所有 Python3 提交中击败了47.15% 的用户
'''
class Solution:
def getCo... | [
"838255715@qq.com"
] | 838255715@qq.com |
3668163b33ba19dd7eff00d702f7712c5fd93349 | 8a41a7f9340cfa784cb36d35dca1ecb1630e4097 | /Programming/Python/Databases/mongodb_practice/mongodb_with_docker_container_class_based.py | 2b5256a980b7d9de036f2423af2cae13cf65bfc6 | [] | no_license | anishst/Learn | 02e6b6cce43cf21621d328ef0fc25168267a9a3d | a1aed8b78b19acdb23e20be57b67fb242e0aefc5 | refs/heads/master | 2022-05-13T10:17:40.293640 | 2022-03-30T12:44:21 | 2022-03-30T12:44:21 | 173,595,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,266 | py | # UNDER DEV NOT FULLY WORKING
import uuid
import pymongo
class Database(object):
URI = "mongodb://192.168.1.50:27017"
DATABASE = None
@staticmethod
def initialize():
client = pymongo.MongoClient(Database.URI)
Database.DATABASE = client['items_test']
@staticmethod
def insert(... | [
"anishst@hotmail.com"
] | anishst@hotmail.com |
c389303e3146bc35ff821cb1d46e512bb30de237 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AnttechMorseMarketingSrtaConsultModel.py | ed15c1198c9962d4b975315a6f97b110b2a9d905 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 3,452 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AnttechMorseMarketingSrtaConsultModel(object):
def __init__(self):
self._anonymous_mobile_sha_256_list = None
self._blind_mobile_sha_256 = None
self._extend_params = None
... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
c89f1e925348210ada55438f3e47f2b3572cbe03 | 0412893529999de784ab9cb914f385ba788a3684 | /test/test_ack_collector_down.py | af6a6ac2ccc5999ccfadc2c84f1e1ec9cacdf9c9 | [
"Apache-2.0"
] | permissive | JeremyTangCD/lm-sdk-python | 0326bf034c16b022b760600dc18fe7aaad42fa26 | 2a15e055e5a3f72d2f2e4fb43bdbed203c5a9983 | refs/heads/master | 2020-04-15T15:39:59.276224 | 2019-01-09T09:55:36 | 2019-01-09T09:55:36 | 164,803,314 | 0 | 0 | Apache-2.0 | 2019-01-09T09:58:55 | 2019-01-09T06:33:40 | Python | UTF-8 | Python | false | false | 1,154 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"jeremy.tang@logicmonitor.com"
] | jeremy.tang@logicmonitor.com |
3c2ddbefb534733402dab2315f80ebe6a3f1e70b | 4f4ecdacdd57fddfec039439589472382875c539 | /arelle/ModelRenderingObject.py | b01745af7d306800437c03ceca950e84d7240f08 | [
"Apache-2.0"
] | permissive | irjudson/Arelle | 0fadce7cf36d41115b1e833c9e30fb717c120613 | d03be32dce33c34c3388e54afbe837bf83a4ff48 | refs/heads/master | 2020-05-29T11:39:16.391796 | 2013-11-07T23:00:14 | 2013-11-07T23:00:14 | 1,867,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,169 | py | '''
Created on Mar 7, 2011
@author: Mark V Systems Limited
(c) Copyright 2011 Mark V Systems Limited, All rights reserved.
'''
import inspect, os
from arelle import XmlUtil, XbrlConst, XPathParser, Locale, XPathContext
from arelle.ModelDtsObject import ModelResource
from arelle.ModelInstanceObject import ModelDimensio... | [
"fischer@markv.com"
] | fischer@markv.com |
8860fd14e571f6895267fbdf6e37de2a1b996050 | dfab6798ece135946aebb08f93f162c37dd51791 | /timber/luban.timber/__init__.py | a1439a83d3cd277a7cb77b0454e6d6e5598f66c6 | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
87477ba53d15435cb55aa99b65ce10afdee5a360 | e52501eb4db862d90ae5541bd512a50df30e0726 | /Chapter 2+3 Intro + Variables + Strings/Chapter3-7 ShrinkingGuestList.py | 47c9f766034b09d285472e34a1f448ce0ac89821 | [] | no_license | ericnwin/Python-Crash-Course-Lessons | b2b12c221f545c961a47f2343b2aa3dac901927b | 7b755c0b4ce65528f4880b3583aca3be9547b33b | refs/heads/master | 2022-12-19T10:55:35.987330 | 2020-09-13T23:23:54 | 2020-09-13T23:23:54 | 295,255,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,190 | py | # You just found out that your new dinner table won’t
# arrive in time for the dinner, and you have space for only two guests.
# • Start with your program from Exercise 3-6. Add a new line that prints a
# message saying that you can invite only two people for dinner.
# • Use pop() to remove guests from your list one at... | [
"noreply@github.com"
] | ericnwin.noreply@github.com |
644f53da5330e99d42a57e2457baa4815d3cc52f | d0a54a3faa1891b647f8c621521cd26c13bd2926 | /backend/mytts.py | b5bd2373d11ec245d0b144f5f903e259d2fd903f | [
"MIT"
] | permissive | ishine/PTTS-WebAPP | 166318593d3247c88d458c9d4fe39dca27ef408f | dcc07a79d8dd695ca15e4dd5a69811b3ddd91709 | refs/heads/main | 2023-04-02T06:03:41.237351 | 2021-04-14T02:37:16 | 2021-04-14T02:37:16 | 357,388,655 | 0 | 0 | MIT | 2021-04-14T02:37:17 | 2021-04-13T01:31:11 | null | UTF-8 | Python | false | false | 2,595 | py | #!/usr/bin/env python
import os.path as osp
import librosa
import torch
from .hparams import HParam
from .transform import StandardNorm, TextProcessor
from .models import MelGenerator, ParallelText2Mel
from .synthesizer import Synthesizer
try:
from .manager import GPUManager
except ImportError as err:
print(e... | [
"atomicoo95@gmail.com"
] | atomicoo95@gmail.com |
b2fcc624e79ef9ef10c62818cb0c7d2d93c0d250 | 080bbe77da955b3917435c25fc63b90b0f3c724e | /botorch/utils/multi_objective/box_decomposition.py | e566f0c69e493acd4370a0a28582374334f572aa | [
"MIT"
] | permissive | irinaespejo/botorch | 3d15d962ff0f5bb34fbd11b2eb7549db755af705 | e4dcf603fdaf83f0e5f8b9b392f943c89dfff7eb | refs/heads/master | 2023-07-11T18:02:11.853790 | 2021-08-19T15:57:21 | 2021-08-19T15:58:12 | 316,017,084 | 0 | 0 | MIT | 2020-11-25T18:02:11 | 2020-11-25T18:02:09 | null | UTF-8 | Python | false | false | 744 | py | #!/usr/bin/env python3
# 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.
r"""
DEPRECATED - Box decomposition algorithms.
Use the botorch.utils.multi_objective.box_decompositions instead.
"""
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a8569f82ed1a73ffbd59f8b49866754ec53e411d | 9dfb3372a1e4516d970a6e9d0a9fd8360580eae7 | /python pySerial/maping_data.py | feb9a76200b26899373a1eeba25711e6b4835877 | [] | no_license | clambering-goat/cameron_pyton | d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c | df0b0365b86e75cfcfc2c1fc21608f1536a3b79f | refs/heads/master | 2021-07-14T20:37:37.021401 | 2019-02-28T07:52:11 | 2019-02-28T07:52:11 | 137,251,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import serial
y_points=[]
with serial.Serial('COM4', 9600, timeout=1) as ser:
for q in range(20000):
line =ser.readline()
x=line.decode("utf-8")
#print(x)
y_points.append(int(x))
import matplotlib.pyplot as plt
x_points=[]
for q in range(len(y_points)):
x_points.append(q)... | [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
664fef8dbbee5f880d4f0a0866edc6ccd5676737 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/Full_v6Production/template_seed/templates_jhchoi/MassPoints2018/List_MX.py | ca93c1c06e444ba9cee292c6bdab834fd117111f | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 396 | py | List_MX=[
115 ,
120 ,
124 ,
125 ,
126 ,
130 ,
135 ,
140 ,
145 ,
150 ,
155 ,
160 ,
165 ,
170 ,
175 ,
180 ,
190 ,
200 ,
210 ,
230 ,
250 ,
270 ,
300 ,
350 ,
400 ,
450 ,
500 ,
550 ,
600 ,
650 ,
700 ,
750 ,
800 ,
900 ,
1000 ,
1500 ,
2000 ,
2500 ,
3000 ,
4000 ,
5000 ,
]
if __name__ == '__main__':
#print('( '+" ".join(str... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
145a90c675971039d677b9e3411c7b6f30d2cde6 | 59be93c710d9e1750d2767f1c98f347ed3dc635c | /elements/when.py | 308f8c8d7c8fbbc825abfaf9cd8a8914f92fd203 | [
"MIT"
] | permissive | artemZholus/elements | 802d14eb574be0c3f18a50fdbc87ee262fbcd01a | 21b4f27e854d91a65619e8fc81b3916386c5ef66 | refs/heads/main | 2023-07-10T05:21:28.947510 | 2021-08-18T18:02:05 | 2021-08-18T18:02:05 | 397,594,638 | 0 | 0 | MIT | 2021-08-18T12:35:49 | 2021-08-18T12:35:49 | null | UTF-8 | Python | false | false | 711 | py | class Every:
def __init__(self, every):
self._every = every
self._last = None
def __call__(self, step):
step = int(step)
if not self._every:
return False
if self._last is None:
self._last = step
return True
if step >= self._last + self._every:
self._last += self._ev... | [
"mail@danijar.com"
] | mail@danijar.com |
9155110a9ae58bc903e5e05dc9dfed7c7bdc4cea | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-1645.py | 4a5e725248f8e0b1a645420a84fb9273621ed52e | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,292 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
c07aa82c886d791ed37e80ecf66b26fe3ba26449 | f59860bb4d04007cf03258753aefcbf58e760db0 | /music/migrations/0005_song_datetime.py | a64764e5215f82e94025a21d14a4720153be91ab | [] | no_license | Arefeh902/station_49 | fc306d7668d64c68df7dba35adbdc25d5600544a | 3076e4ab616759f5aa0a973525c0436b603f942f | refs/heads/master | 2023-07-01T10:25:39.820956 | 2021-08-10T18:47:28 | 2021-08-10T18:47:28 | 391,368,241 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.9 on 2021-08-07 08:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0004_auto_20210807_0806'),
]
operations = [
migrations.AddField(
model_name='song',
name='datetime',
... | [
"alimahdiyar77@gmail.com"
] | alimahdiyar77@gmail.com |
b563563bd985a3f9d737ea973f8314bd6fb8f40d | 9d2b33eb85fca3a81ccb7272422c41a08467a8c4 | /pdm/formats/requirements.py | 37c230c8eab420dab9e877204074086b6fe605a6 | [
"MIT"
] | permissive | skyoo2003/pdm | 9b9d20079f325c087855c7a37a4270d36fa71131 | 95a758ee259dff02f00f0a3eab79fa23e5d2aa97 | refs/heads/master | 2022-12-12T18:01:36.331560 | 2020-09-04T01:16:41 | 2020-09-04T01:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,729 | py | import hashlib
import urllib.parse
from pip._internal.req.req_file import parse_requirements
from pdm.models.markers import Marker
from pdm.models.requirements import parse_requirement
from pdm.utils import get_finder
def _requirement_to_str_lowercase_name(requirement):
"""Formats a packaging.requirements.Requi... | [
"mianghong@gmail.com"
] | mianghong@gmail.com |
bef3b9ad03bdc33f7171cc9b588f198ce873e861 | 62922a76e40003f3d3a7d02282853f9a2b76c6fc | /cv2/ch22/test1.py | 1172f8de48d2bc9bfba7168431a2727b16325054 | [] | no_license | cchangcs/ai_learning_record | a7d0d9c7fcdc1e97d8869aa7e63b535f8cf62df2 | 235a90ff5fe0205334376a927d462b8ae64e4e70 | refs/heads/master | 2020-04-01T16:59:31.203223 | 2018-11-21T11:12:34 | 2018-11-21T11:12:34 | 153,408,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # encoding:utf-8
'''
斑点检测SimpleBlodDetector()
斑点检测:默认检测黑色点,如果要检测白色的点需要设置bycolor为true,并且color数值为255
斑点通常是指与周围有着颜色和灰度差别的区域,在实际的图中,往往存在着大量这样的斑点,如一棵树是一个斑点,一块草地是一个斑点。
由于斑点代表的是一个区域,相比单纯的角点,它的稳定性更好,抗噪声能力更强,所以它在图像配准上扮演着重要的角色。
同时有时图像中的斑点也是我们关心的区域,比如在医学与生物领域,我们需要从一些X光照片或细胞显微照片中提取一些具有特殊意义的斑点的位置或数量
'''
import cv2
import numpy as n... | [
"752340690@qq.com"
] | 752340690@qq.com |
b1d84ff6d8719c6d1cb346458bafaa88df886d86 | 0facb323be8a76bb4c168641309972fa77cbecf2 | /Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/HMVar10_Full_ALL_var/MassPoints/structure_M1500.py | 006d035cd83abd3e70ffc306361571ee477e383b | [] | no_license | bhoh/SNuAnalytics | ef0a1ba9fa0d682834672a831739dfcfa1e7486b | 34d1fc062e212da152faa83be50561600819df0e | refs/heads/master | 2023-07-06T03:23:45.343449 | 2023-06-26T12:18:28 | 2023-06-26T12:18:28 | 242,880,298 | 0 | 1 | null | 2020-02-25T01:17:50 | 2020-02-25T01:17:49 | null | UTF-8 | Python | false | false | 1,725 | py | #['WW', 'ggHWWlnuqq_M1500', 'DY', 'DATA', 'WZ', 'ggHWWlnuqq_M125', 'ZZZ', 'ggHWWlnuqq_M900', 'vbfHWWlnuqq_M500', 'Wjets1j', 'QCD_MU', 'WZZ', 'vbfHWWlnuqq_M900', 'QCD_bcToE', 'Wjets2j', 'QCD_EM', 'ggHWWlnuqq_M500', 'ZZ', 'WWW', 'vbfHWWlnuqq_M1500', 'vbfHWWlnuqq_M125', 'WWZ', 'Wjets0j', 'top']
QCD_MU=['QCD_Pt-15to20_MuE... | [
"soarnsoar@gmail.com"
] | soarnsoar@gmail.com |
622882398cd5c1e5077722f60c7aa9e77ef203af | 0ad8fc76aebe7ce22abe771fbeadf227e5b471cb | /app/productdb/tasks.py | 8cb6cd358ef178da1d7cd5290af4ab4a8389c040 | [
"MIT"
] | permissive | ppavlu/product-database | 354c6a1a3e9ebfdc931f2aacf8751ed0f149401c | 09610c09600c63eb91106c0b5a2fa995b134dbf4 | refs/heads/master | 2021-01-17T22:51:43.247027 | 2015-10-11T11:37:12 | 2015-10-11T11:37:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | from django_project.celery import app as app
from app.productdb.models import Settings
import app.productdb.crawler.cisco_eox_api_crawler as cisco_eox_api_crawler
import logging
logger = logging.getLogger(__name__)
@app.task(serializer='json', name="synchronize_with_cisco_eox_api")
def execute_task_to_synchronize_c... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
e7c933c7739f81bba762a05bd13220dda275b7ae | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/IN_Sob_k5_EroMore/Sob_k35_s001_EroM/pyr_Tcrop255_p60_j15/pyr_5s/L7/step09_5side_L7.py | 94ce9cec1f7924ce4d28ef2ca3b168732be84876 | [] | 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 | 399,932 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
89c2127cdb13c6c6248abfba21d3cdb0eba90d73 | 3b9fdd117bfcfa86b1e354b2c193727e7567cb76 | /proxyuser17/proxyuser17/apps/myapp/models.py | 9a06f4b7a626979e8ea1971891cbd06fbebd22c1 | [
"BSD-3-Clause"
] | permissive | marcofucci/django-ticket-24506 | 84beb913b2db2993034e199c3a63c2cde60fa9aa | 88a36d792e77fb70c12224ea6a02774015ddbc84 | refs/heads/master | 2021-01-21T11:37:23.621884 | 2015-03-22T12:55:25 | 2015-03-22T12:55:25 | 32,672,309 | 0 | 1 | null | 2015-03-22T12:55:25 | 2015-03-22T11:11:24 | Python | UTF-8 | Python | false | false | 314 | py | from django.db import models
class FKUserModel(models.Model):
user = models.ForeignKey('core.User')
def __unicode__(self):
return u'%s' % self.user
class OneToOneUserModel(models.Model):
user = models.OneToOneField('core.User')
def __unicode__(self):
return u'%s' % self.user
| [
"marcofucci@gmail.com"
] | marcofucci@gmail.com |
c3ca98e5d8c7a2b7a60bee0667267c57f753f0a6 | 6bf97e57103b9ddd639a91a0c371f86b3bce60d8 | /pure_ee/earth_engine_start.py | 48154028788ff39dfead3649a9176c9cbc69a261 | [
"Apache-2.0"
] | permissive | geosconsulting/gee_wapor | 655372722eed9e1c00ef7880870bd85c7953d64a | c3c451fcb21664172a74647fe5d9e56f312aa1df | refs/heads/master | 2021-01-13T05:01:37.233979 | 2017-03-01T14:09:08 | 2017-03-01T14:09:08 | 81,427,303 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jan 3 04:59:03 2017
@author: fabio
"""
# Import the Earth Engine Python Package
import ee
# Initialize the Earth Engine object, using the authentication credentials.
ee.Initialize()
# Print the information for an image asset.
image = ee.Image('srtm90_v4')
print(image.getI... | [
"geos-consulting@fastwebnet.it"
] | geos-consulting@fastwebnet.it |
b2516c9040789df5a0e98f754aab40508283b38c | c834c1b7ef5d0039a706f174ed3f7b0ab82fa2e5 | /optOnMysql/data2mysql.py | 5903606b3171c597649676ce4e1d13f00e79309e | [] | no_license | yangze01/Laws-Search-Project | 126ffc5ec1ad1c2e9d95c2490104e8e37e766ad4 | d1fff57a9298aa0d883a1b988aa98804d0ab00c1 | refs/heads/master | 2021-08-14T15:26:27.455518 | 2017-11-16T03:59:58 | 2017-11-16T03:59:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | #coding=utf8
import sys
import time
reload(sys)
sys.setdefaultencoding('utf8')
from optOnMysql.DocumentsOnMysql import *
from optOnMysql.DocumentUnit import *
import json
BasePath = sys.path[0]
def is_valid_date(str):
'''判断是否是一个有效的日期字符串'''
try:
time.strptime(str, "%Y-%m-%d")
return True
except:
return... | [
"858848101@qq.com"
] | 858848101@qq.com |
9ea362e7e23645d74ada3c82eae8bd8ed6962067 | 6f6b7e1a9837fb581cc5fed92b66b4ad12ea30f5 | /19-05-161_STOCK_profit_AIC_BIC_L500_github/4plot_profit_nh6.py | 4d358b74123f153c55f5113d35716f99896e3ac4 | [
"MIT"
] | permissive | danhtaihoang/stock | f7b4f4989ff0c2b267766761d402adc599fc893d | 9c3a3e467839dda095a0152055e347254abaf271 | refs/heads/master | 2020-06-10T01:35:59.136032 | 2019-06-24T17:13:35 | 2019-06-24T17:13:35 | 193,546,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import numpy as np
import matplotlib.pyplot as plt
#=========================================================================================
# average:
p1 = np.loadtxt('profit_cost_nhmax6.dat')
p2 = np.loadtxt('profit_AIC_nhmax6.dat')
p3 = np.loadtxt('profit_BIC_nhmax6.dat')
tmax = np.shape(p1)[0]
t = np.arange(0,tm... | [
"hoangdanhtai@gmail.com"
] | hoangdanhtai@gmail.com |
5fe9b2191e2862a97b4b0500d3c4777c88eab68c | 56e96acad654d7480d17d5cae7402a2bc6cbaa76 | /share/py_module/dataset.py | fc4a162fa0c59a4f2c53f521c749910a52a91ef4 | [] | no_license | LitingLin/VehicleDC | 641b1e25c22cac2ffb1dcba519b1af5ac7d9f2c8 | 2ac0b8ad708f033b59c0bc924ca7ec169e86b063 | refs/heads/master | 2020-05-17T19:30:00.556691 | 2019-07-12T16:21:12 | 2019-07-12T16:21:12 | 183,916,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,885 | py | # coding: utf-8
import os
import re
import numpy as np
import torch
from torch.utils import data
from torchvision import transforms as T
from PIL import Image
color_attrs = ['Black', 'Blue', 'Brown',
'Gray', 'Green', 'Pink',
'Red', 'White', 'Yellow']
direction_at... | [
"linliting06@live.com"
] | linliting06@live.com |
6321392e8ea506f89ad8138de98709a7d3aeef3a | e5f1befb7c7ca0072747b33086fc6569a6befd01 | /old/flaskold/json/008.py | f4caad8db1b8d37bfc3909c746dc3bac66210760 | [] | no_license | nepomnyashchii/TestGit | ae08d8bb1b7d2ab9389a309fd1dc9e24729b019c | c7abf4ab08ee3c2f3ea1fb09a1938bff7a3e0e5c | refs/heads/master | 2020-04-28T23:41:51.053547 | 2020-01-24T12:22:40 | 2020-01-24T12:22:40 | 175,666,093 | 0 | 1 | null | 2019-03-15T13:44:03 | 2019-03-14T17:08:58 | null | UTF-8 | Python | false | false | 147 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "test"
if __name__ =="__main__":
app.run(debug=True)
| [
"nepomnyashchii@gmail.com"
] | nepomnyashchii@gmail.com |
50e9870739673efcfa7b101e2a5fab4d46cee95a | e0b7fb64e57823d24ad6b8ca4e130c657ba437a4 | /analysis/yields/plot.py | 1c98b8833d00a74347fe5b76ba3b506ff8435f4a | [] | no_license | cfangmeier/FTAnalysis | 66644189f02ddf43dadb8e029e4709950572e7cf | 6612f40b67689d6d946866710ad2e0256b790821 | refs/heads/master | 2021-09-11T00:16:35.222837 | 2018-01-09T22:26:50 | 2018-01-09T22:26:50 | 106,859,187 | 0 | 0 | null | 2017-10-13T18:23:23 | 2017-10-13T18:23:23 | null | UTF-8 | Python | false | false | 24,136 | py | import os
import sys
import ROOT as r
import sys
sys.path.insert(0,'../../')
from common.Software.dataMCplotMaker.dataMCplotMaker import dataMCplot
from analysis.limits.runLimits import get_lims
from analysis.limits.singleBinLimits import get_singlebin_limits
from analysis.limits.makeScan import make_scan
from analysis... | [
"amin.nj@gmail.com"
] | amin.nj@gmail.com |
f4a850cce56f0f8cf0a4527768d60ba75d2eb5df | e06ff08424324ac5d6c567ae9cd6954290ff9bd4 | /Yudi TANG/axe/KNN/KNN_dating.py | ba4684b05e29ddc86468b5905cf90baf69208d11 | [
"Apache-2.0"
] | permissive | JKChang2015/Machine_Learning | b1bdfcf9ea43a98fc7efd5c0624bbaf5d9dbf495 | f8b46bf23e4d1972de6bd652dd4286e9322ed62f | refs/heads/master | 2021-06-06T19:18:16.596549 | 2020-05-03T22:28:18 | 2020-05-03T22:28:18 | 119,390,891 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,671 | py | # KNN_dating
# Created by JKChang
# 29/01/2020, 10:20
# Tag:
# Description: dating people recommendation
# Feature: 1. Number of frequent flyer miles earned per year
# 2. Percentage of time spent playing video games
# 3. Liters of ice cream consumed per week
# classifies:1. doesn't like
# ... | [
"jkchang2015@gmail.com"
] | jkchang2015@gmail.com |
f8d2154649e59afa419b79b4777684cdda82eb5c | 56b4d00870af18752b4414495b08e2ec3adf3ae4 | /src/clims/api/endpoints/process_assignments.py | c5fd2f83c03d0928f0637275f0b82856ee822b26 | [
"BSD-2-Clause"
] | permissive | commonlims/commonlims | 26c3f937eaa18e6935c5d3fcec823053ab7fefd9 | 36a02ed244c7b59ee1f2523e64e4749e404ab0f7 | refs/heads/develop | 2021-07-01T17:20:46.586630 | 2021-02-02T08:53:22 | 2021-02-02T08:53:22 | 185,200,241 | 4 | 1 | NOASSERTION | 2021-02-02T08:53:23 | 2019-05-06T13:16:37 | Python | UTF-8 | Python | false | false | 1,028 | py | from __future__ import absolute_import
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from sentry.api.base import Endpoint, SessionAuthentication
class ProcessAssignmentsEndpoint(Endpoint):
authentication_classes = (SessionAuthentication, )
permission_cla... | [
"costeinar@gmail.com"
] | costeinar@gmail.com |
1186de1cba914cdcc904a0e0a09520080aa16289 | 46492cc7429c83fe362b0ed566fc54982e52c46e | /pitches/main/forms.py | bb9c5b6a6c3f20f413c47970a696323c03307838 | [
"MIT"
] | permissive | jakhax/pitches | 15c8d87825c879b56cd931d26d398e736636134f | e56358d00089bd46addd54192220bcca0478e0da | refs/heads/master | 2020-03-18T00:36:09.254870 | 2018-05-20T14:48:14 | 2018-05-20T14:48:14 | 134,102,974 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,399 | py | from flask import current_app, session
from flask_babel import lazy_gettext
from flask_wtf import FlaskForm
from wtforms import StringField, TextAreaField, BooleanField, SelectField, SubmitField, IntegerField
from wtforms import ValidationError
from wtforms.validators import DataRequired, InputRequired, Length, Email, ... | [
"jackogina60@gmail.com"
] | jackogina60@gmail.com |
eef750f84f81a27c35f5f451faf9e9a1b93c1cc4 | 4c117ea3617a576ddd07d8ea8aaab1a925fc402f | /bin/individualization/VennPlot.py | 18f444e66a82a4f9f64427b83e18f591f031b0f6 | [] | no_license | 452990729/Rep-seq | 7be6058ba3284bea81282f2db7fd3bd7895173ba | e217b115791e0aba064b2426e4502a5c1b032a94 | refs/heads/master | 2021-12-11T14:27:46.912144 | 2019-06-04T03:49:40 | 2019-06-04T03:49:40 | 190,124,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | #!/usr/bin/env python
import os
import sys
import re
import matplotlib
matplotlib.use('Agg')
import venn
from matplotlib import pyplot as plt
def HandleFq(file_in):
base = '_'.join(re.split('_', os.path.basename(file_in))[:2])
list_tmp = []
m = 0
with open(file_in, 'r') as in1:
for line in in... | [
"452990729@qq.com"
] | 452990729@qq.com |
23206587aae4835dbc893edeaad63d67170d75c3 | 23e877d2e65cdc49cf9a456845470f97194674bc | /src/main/resources/http/http_request.py | e9a3e1cdc87380b5ff871b18466c069841a84cdd | [
"MIT"
] | permissive | xebialabs-community/xld-github-dynamic-dictionaries-plugin | 77da6a4fea1ca2b96207d77b0396011e088ac850 | 67c3a596f4a7f58f9d0a939bb57091d1f82c51ee | refs/heads/master | 2021-07-13T17:15:15.222551 | 2020-11-02T12:49:14 | 2020-11-02T12:49:14 | 68,606,897 | 2 | 2 | MIT | 2021-03-26T22:14:23 | 2016-09-19T13:09:01 | Python | UTF-8 | Python | false | false | 9,826 | py | #
# Copyright 2020 XEBIALABS
#
# 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 the rights to use, copy, modify, merge, publish, distribute, subli... | [
"bmoussaud@xebialabs.com"
] | bmoussaud@xebialabs.com |
c423950c678b966d72c428c4dadd7d1045308bbb | c536c764aab4170c64f3f8b78bd91593dcb161a3 | /vigenereb62.py | 037292215097560084e9451db9c5655b7c2fb996 | [] | no_license | numberly/vigenere-b62 | 63bbc95c1f9390e9623a5882a9c2a14d110851b4 | 3dea3394ee557ba2e589af014cbc4454ebbbc874 | refs/heads/master | 2023-02-16T02:13:31.254670 | 2021-01-11T15:24:58 | 2021-01-11T15:24:58 | 328,698,862 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | def iter_reverse_digits(number, base):
while number != 0:
digit = number % base
yield digit
number -= digit
number //= base
def encode(alphabets, seed, size=6):
if len(alphabets) < size:
raise ValueError("There should be an alphabet per character you want")
secret =... | [
"julien@thebault.co"
] | julien@thebault.co |
705c2db27a5d0906938b557caab4e18133150a24 | 19ac1d0131a14ba218fd2c55d585170222eb9400 | /social_login/wsgi.py | 9523f947cda705e24cea5e1c828e7fb9ee17044c | [] | no_license | oereo/social-login | 4ed27658c585dd0a24484e628e053070fe012518 | 41e67b889354189c986da45bcf03c20c1f1063e3 | refs/heads/master | 2023-01-15T22:38:06.667909 | 2020-11-22T12:12:08 | 2020-11-22T12:12:08 | 303,985,281 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for social_login project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"dlstpgns0406@gmail.com"
] | dlstpgns0406@gmail.com |
1bff440e67a7189665b42fe0833a0c9b007950e7 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_defenders.py | bb7548df4efbbe4fec4aeb39f3eec118e52a2ba7 | [
"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 | 252 | py |
from xai.brain.wordbase.nouns._defender import _DEFENDER
#calss header
class _DEFENDERS(_DEFENDER, ):
def __init__(self,):
_DEFENDER.__init__(self)
self.name = "DEFENDERS"
self.specie = 'nouns'
self.basic = "defender"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8339c4b6670fe18b61771e18903739838373f58c | 01ce2eec1fbad3fb2d98085ebfa9f27c7efb4152 | /itertools/itertools-combinations.py | b32166fe2a76aece52bb636b0b8705a63f17c3ce | [
"MIT"
] | permissive | anishLearnsToCode/hackerrank-python | 4cfeaf85e33f05342df887896fa60dae5cc600a5 | 7d707c07af051e7b00471ebe547effd7e1d6d9d9 | refs/heads/master | 2023-01-01T23:39:01.143328 | 2020-11-01T07:31:15 | 2020-11-01T07:31:15 | 265,767,347 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # https://www.hackerrank.com/challenges/itertools-combinations/problem
import itertools
line = input().split()
word = sorted(line[0])
k = int(line[1])
for i in range(1, k + 1):
for j in itertools.combinations(word, i):
print(''.join(j))
| [
"anish_bt2k16@dtu.ac.in"
] | anish_bt2k16@dtu.ac.in |
e4603076015ad9b338c87de21b02807faa509853 | 91948d5be26636f1f2b941cb933701ea626a695b | /amazon_longest_substring_with_no_repeat.py | 30208e55e14fb6ba9b3eabe03ddda30851bc6a3b | [
"MIT"
] | permissive | loghmanb/daily-coding-problem | 4ae7dd201fde5ee1601e0acae9e9fc468dcd75c9 | b2055dded4276611e0e7f1eb088e0027f603aa7b | refs/heads/master | 2023-08-14T05:53:12.678760 | 2023-08-05T18:12:38 | 2023-08-05T18:12:38 | 212,894,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | '''
Longest Substring Without Repeat
Asked in: Amazon
https://www.interviewbit.com/problems/longest-substring-without-repeat/
Given a string,
find the length of the longest substring without repeating characters.
Example:
The longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3... | [
"loghmanb@gmail.com"
] | loghmanb@gmail.com |
5722c5bd79ba59802f5e4174de590823f9b31f54 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631989306621952_1/Python/Hotshot8325/Q2.py | c61b1a46284a8ff8a0e7daff7477923bbd7b7f0f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | #CodeJam pancake problem
import csv
import string
#import data from test file in the form [[[],[]],[[],[]].... with [[],[]] being one test case
with open('a-large.in') as csvfile:
testCase = csv.reader(csvfile, delimiter = ' ', quotechar='|')
rowNum = 0
inputText = []
#swapCount = []
... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
566302b568f0103bd3c6c2d54e6988ac6dd06f4b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /JD9vSKZGrxQhLbA9r_11.py | 8153c6d8cc99992256ea1d82f8771cd6328f44f3 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py |
def pile_of_cubes(m):
if m >= 10252519345963644753026: return None
x = m**0.5
if (x%1==0):
c = 1
while (x != c and x > 0):
x = x - c
c = c + 1
if (x == c):
return c
return None
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
05f1c23936d977e70fdef1e44fc27ab9f069cadf | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/encodings/gbk.py | 4b4a46dcbfdea9c2f98724c76a52405e54febf9c | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,136 | py | # 2016.11.19 19:58:56 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/encodings/gbk.py
import _codecs_cn, codecs
import _multibytecodec as mbc
codec = _codecs_cn.getcodec('gbk')
class Codec(codecs.Codec):
encode = codec.encode
decode = codec.decode
class IncrementalEncoder(mbc.MultibyteIn... | [
"info@webium.sk"
] | info@webium.sk |
cd75f26df497e0e47746786f0197f8dc9b218f06 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/FCU_Return_Air_Temperature_Sensor.py | d4ac39c9698a57051d03037b2f79dc41b5511c4b | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Return_Air_Temperature_Sensor import Return_Air_Temperature_Sensor
class FCU_Return_Air_Temperature_Sensor(Retur... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
1158acb79cf822c0ded1ea29f10b77727305c073 | cd142a4e15d3576546fcb44841417039f0b8fb00 | /build/double/catkin_generated/pkg.installspace.context.pc.py | 9b014836f2e3e476722b6c40aa901294660dad37 | [] | no_license | mgou123/rplidar | 4389819eb1998d404d1066c7b4a983972d236ce7 | 608c1f6da2d3e5a8bac06e8d55d8569af828a40b | refs/heads/master | 2022-11-10T05:51:56.403293 | 2020-06-29T04:16:14 | 2020-06-29T04:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "double"
PR... | [
"492798337@qq.com"
] | 492798337@qq.com |
237743cb29e83580cbade37977253888764a05b4 | f4f54015298eedfbbdfcaaf5e2a9603112f803a5 | /sachin/gocept.filestore-0.3/gocept.filestore-0.3/src/gocept/filestore/tests.py | 39487c46c2cf44f18a2df60610d46b4e1e9848c4 | [] | no_license | raviramawat8/Old_Python_Codes | f61e19bff46856fda230a096aa789c7e54bd97ca | f940aed0611b0636e1a1b6826fa009ceb2473c2b | refs/heads/master | 2020-03-22T22:54:50.964816 | 2018-06-16T01:39:43 | 2018-06-16T01:39:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | # Copyright (c) 2007 gocept gmbh & co. kg
# See also LICENSE.txt
# $Id: tests.py 5111 2007-08-30 11:27:23Z zagy $
import unittest
from zope.testing import doctest
def test_suite():
suite = unittest.TestSuite()
suite.addTest(doctest.DocFileSuite(
'README.txt',
optionflags=doctest.ELLIPSIS))
... | [
"sachinyadav3496@gmail.com"
] | sachinyadav3496@gmail.com |
1eb7d4b356ecdfbafd7359821f946512d7724998 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/generated_clients/apis/artifactregistry/v1beta2/resources.py | 1c5440583e39b379a1c8a68cde0b2d6841f35146 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,295 | py | # -*- coding: utf-8 -*- #
# Copyright 2023 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
9805ffe4daef50c8bdfe737999913fe9357c8479 | e4da82e4beb9b1af7694fd5b49824a1c53ee59ff | /AutoWorkup/SEMTools/registration/averagebraingenerator.py | b206faa7d7b842adead8675771f35338e6d91db4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | ipekoguz/BRAINSTools | c8732a9206525adb5779eb0c2ed97f448e2df47f | dc32fa0820a0d0b3bd882fa744e79194c9c137bc | refs/heads/master | 2021-01-18T08:37:03.883250 | 2013-05-14T21:08:33 | 2013-05-14T21:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | # -*- coding: utf8 -*-
"""Autogenerated file - DO NOT EDIT
If you spot a bug, please report it on the mailing list and/or change the generator."""
from nipype.interfaces.base import CommandLine, CommandLineInputSpec, SEMLikeCommandLine, TraitedSpec, File, Directory, traits, isdefined, InputMultiPath, OutputMultiPath
... | [
"hans-johnson@uiowa.edu"
] | hans-johnson@uiowa.edu |
4ff8a625e52e7a2fc0f40fd40fdb70a36086c6e2 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/sunData/SType/ST_facets/ST_facets00201m/ST_facets00201m9_p.py | 6b09bb1b8dd9512268b76bbd79e2c658e0d3fc7d | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 139 | py | from output.models.sun_data.stype.st_facets.st_facets00201m.st_facets00201m9_xsd.st_facets00201m9 import Test
obj = Test(
value=10
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
8927c9bfdeb3e5161e03c5bbfb20291758317781 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2367/60791/254956.py | 3891197249694bfc95edf61b7fdb4f59e0c7209d | [] | 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 | 127 | py | k = int(input())
n = '1'
if(k%2==0 or k%5==0):
print(-1)
else:
while(int(n)%k != 0):
n += '1'
print(len(n)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e6dfd9cb391b1dc09795b1911c78d7980a0ff1ee | b7f45072d056b80ed49e6bcde91877d8576e970d | /ImageJ/py/Wayne-blob-example.py | 610a35e6e5ddb80455ce608015ed6b1efdfc7ff2 | [] | no_license | jrminter/tips | 128a18ee55655a13085c174d532c77bcea412754 | f48f8b202f8bf9e36cb6d487a23208371c79718e | refs/heads/master | 2022-06-14T08:46:28.972743 | 2022-05-30T19:29:28 | 2022-05-30T19:29:28 | 11,463,325 | 5 | 8 | null | 2019-12-18T16:24:02 | 2013-07-17T00:16:43 | Jupyter Notebook | UTF-8 | Python | false | false | 321 | py | from org.python.core import codecs
codecs.setDefaultEncoding('utf-8')
import os
from ij import IJ, WindowManager
IJ.run("Close All")
img = IJ.openImage("http://wsr.imagej.net/images/blobs.gif")
IJ.setAutoThreshold(img, "Default")
IJ.run(img, "Analyze Particles...", " show=[Bare Outlines] include in_situ")
img.show()... | [
"jrminter@gmail.com"
] | jrminter@gmail.com |
014cbf61158fb280b11d2f149b026f48d5234c0e | 2e2a54e30f8c8018fe0d163a5fd4b0d854ef165d | /src/gluonts/torch/model/deep_npts/_network.py | c29d1935c3d32e884ec124b33fde866e0b55aa92 | [
"Apache-2.0"
] | permissive | kashif/gluon-ts | b742021ca0292ca2885b3b079150f24cdf3e6dec | a818f69dc049c1c1d57e09d2ccb8b5f7a0cff656 | refs/heads/master | 2023-09-05T00:00:22.861992 | 2023-08-09T15:47:28 | 2023-08-09T15:47:28 | 222,552,468 | 5 | 0 | null | 2019-11-18T21:56:52 | 2019-11-18T21:56:52 | null | UTF-8 | Python | false | false | 14,377 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | kashif.noreply@github.com |
fd8cfb47b2d8e17dae6ea7bb6a37a38a95978a58 | ef5f8a1d7b098391b5e5fce57edc83870204fe69 | /albert_model/clue_classifier_utils_char_no_space.py | b1755d70cbfbb75c08b321f41ecb2ab40f4d9ea6 | [
"Apache-2.0"
] | permissive | guome/subchar-transformers | 9829ded6c312adabf481c11ea25a2eaa069a1aaa | 54c3bfb5c197946fa5a8b6ed5524b81284259613 | refs/heads/master | 2022-07-04T16:21:12.589815 | 2020-05-13T12:49:54 | 2020-05-13T12:49:54 | 263,630,138 | 1 | 0 | null | 2020-05-13T12:57:25 | 2020-05-13T12:57:24 | null | UTF-8 | Python | false | false | 21,002 | py | # -*- coding: utf-8 -*-
# @Author: bo.shi
# @Date: 2019-12-01 22:28:41
# @Last Modified by: bo.shi
# @Last Modified time: 2019-12-02 18:36:50
# coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in complia... | [
"michael_wzhu91@163.com"
] | michael_wzhu91@163.com |
59accba5a656d5b413c7c3ad528bee9b9a83ad95 | 9025c27655e2f150d01e64ce0826df8166ac6813 | /core/urls.py | a1c84250501f6e331d1daaab5d0a66f5b2db6bbf | [] | no_license | kairat3/bella-plain | 02dd219f6bf087c99772490a32d61cd242a18f28 | 1950fd46dc53b800461f6077af3044bdfcf8300c | refs/heads/master | 2023-07-13T05:06:17.575811 | 2021-08-19T14:05:29 | 2021-08-19T14:05:29 | 393,064,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from product.views import ProductApiView
from rest_framework import permissions
from drf_yasg.views import get_schema_view
f... | [
"jvckmiller@gmail.com"
] | jvckmiller@gmail.com |
50363bbf710a2b67812e488531ed086fe0b32138 | d40fbefbd5db39f1c3fb97f17ed54cb7b6f230e0 | /datadog_checks_dev/datadog_checks/dev/tooling/config.py | 7d63ecb7890e8d4df068f1419c36389ea8bb11bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | slightilusion/integrations-core | 47a170d791e809f3a69c34e2426436a6c944c322 | 8f89e7ba35e6d27c9c1b36b9784b7454d845ba01 | refs/heads/master | 2020-05-20T18:34:41.716618 | 2019-05-08T21:51:17 | 2019-05-08T21:51:17 | 185,708,851 | 2 | 0 | BSD-3-Clause | 2019-05-09T02:05:19 | 2019-05-09T02:05:18 | null | UTF-8 | Python | false | false | 3,143 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from collections import OrderedDict, deque
from copy import deepcopy
import toml
from appdirs import user_data_dir
from atomicwrites import atomic_write
from six import string_types
from ..compat impor... | [
"noreply@github.com"
] | slightilusion.noreply@github.com |
beb223699fadcff443ec1b36fb64cecf67b2359c | b5d0a6254b54c0a778181a67bcda14cc6663e871 | /0-notes/job-search/Cracking the Coding Interview/C10SortingSearching/questions/10.5-question.py | 5ec618baaa19cdb2c7b27b33ac1bfb9f081b82c6 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | Web-Dev-Collaborative/Lambda-Final-Backup | 113e719a76a144b86d06f3a412afe4b02689cad7 | e9ab84928faa8364bacd863009ae9aec01ff9d1e | refs/heads/master | 2023-06-07T15:34:00.682815 | 2021-04-17T01:53:14 | 2021-04-17T01:53:14 | 358,899,122 | 0 | 0 | MIT | 2023-05-30T04:03:16 | 2021-04-17T14:24:53 | JavaScript | UTF-8 | Python | false | false | 318 | py | # Sparse Search
# Given a sorted array of strings that is interspersed with empty strings,
# write a method to find the location of a given string.
# EXAMPLE: INPUT: ball, {"at", "", "", "", "ball", "", "", "car", "", "", "dad", "", ""}
# OUTPUT: 4
# time complexity: O()
# space complexity: O()
| [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
a2dd70fc69879a4648eb45dac4bea8dae1233790 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/application/effect.py | 40b158532e97911174a83a5334610da7b7a1310a | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,649 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.apphandler import AppHandler
from platinumegg.app.cabaret.util.api import BackendApi
import settings
from platinumegg.app.cabaret.util.url_maker import UrlMaker
from platinumegg.lib.pljson import Json
import settings_sub
from urlparse import urlparse
import url... | [
"shangye@mail.com"
] | shangye@mail.com |
a8a1af44b4ff29b22520121f30295c8ebe1d693f | 554ec84f23825452f7692f91f742bdc81fa50e84 | /chatbot_27549/urls.py | 7d1264887b9b6eb6dad7fc662d8571cc66eddd66 | [] | no_license | crowdbotics-apps/chatbot-27549 | a7806af210b6e7ccdfb3db3dbaaac9e9dcb5a5af | 0e615cbb191a8d91e2874e7329b059193a8ad625 | refs/heads/master | 2023-05-26T13:30:53.116812 | 2021-05-29T07:24:50 | 2021-05-29T07:24:50 | 371,908,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | """chatbot_27549 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f8b918dbc080c727941fe32353727591500f3f2d | 5c61851a03dd1ac98d03c2e98f27487f188ff00f | /{{cookiecutter.repo_name}}/manage.py | 13bffdcfd10dc0e98343059f47512923a6698335 | [
"BSD-3-Clause"
] | permissive | tony/cookiecutter-flask-pythonic | e7208a8fc9ccbde10e541f8e657dbf4da7b388b3 | d1274ec5d5b72cab128e593ed78de88c29bd54b5 | refs/heads/master | 2023-05-29T20:49:21.927268 | 2021-10-05T12:39:04 | 2021-10-05T12:39:04 | 35,064,692 | 39 | 4 | null | 2023-05-01T21:06:54 | 2015-05-04T22:52:20 | Python | UTF-8 | Python | false | false | 1,203 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from flask_script import Manager
from {{ cookiecutter.repo_name }} import {{ cookiecutter.repo_name | capitalize }}
"""If not using Flask-Script::
app = {{ cookiecutter.repo_name | capitalize }}.from_cli(sys.argv[1:])
Does the trick for retrieving an applic... | [
"tony@git-pull.com"
] | tony@git-pull.com |
e6acc1a14b714638e4d8eb6b3210b8ad4b35a3c2 | 37069009dd428ce59819ffea2fcffc07dda6e712 | /django_analyze/migrations/0068_auto__add_field_genotype_max_memory_usage.py | 550ac7b81c79b27de932d2c0ecb1788805c93c03 | [] | no_license | chrisspen/django-analyze | 829f560d7c5f2fb1c19fc07bc77cb1a83238e696 | 421ee35235f76ff8657f7befe5212acd7ccf3989 | refs/heads/master | 2020-04-28T15:42:51.773823 | 2015-04-18T14:50:02 | 2015-04-18T14:50:02 | 14,995,029 | 2 | 2 | null | 2014-07-07T12:39:22 | 2013-12-06T22:26:29 | Python | UTF-8 | Python | false | false | 18,209 | 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 field 'Genotype.max_memory_usage'
db.add_column(u'django_analyze... | [
"chris@coronis"
] | chris@coronis |
af5d3531a0c3b27b202c1ef66223d898bd77ec13 | 008aada8c0e718e0220eabc5b54732a1e1b07f97 | /sergeant/connector/_connector.py | ee1985d5cf05a1683d5b4b588c6a582648b9599b | [
"MIT"
] | permissive | gabriel-yahav/sergeant | 59259a92c4c072e317d82022f19b440b21d2c294 | 0de9bfb4fdca62f061d6588c6839c4491c5d4f9b | refs/heads/master | 2022-09-30T04:38:48.414842 | 2020-05-26T10:28:50 | 2020-05-26T10:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | import typing
class Lock:
def acquire(
self,
timeout: typing.Optional[float] = None,
check_interval: float = 1.0,
ttl: int = 60,
) -> bool:
raise NotImplementedError()
def release(
self,
) -> bool:
raise NotImplementedError()
def is_locked(... | [
"gal@intsights.com"
] | gal@intsights.com |
b12892a96f4b48796a35f6700c11b1ce1875c2cf | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /test/python/circuit/library/test_phase_estimation.py | 8bf3d15d9ea0a395cd1d2ede7c122fdb666605b4 | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 5,238 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# 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 derivat... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
aa3069e85491124d364115e57d1a97e1ff6dbda7 | e2589896ad0e629d933f1e9e03f9963eb922664a | /backend/cool_dust_27675/wsgi.py | 297564f38beadc76f1ea37eeabd22b393dcbc0c4 | [] | no_license | crowdbotics-apps/cool-dust-27675 | 89b947ddd6c87d70febeb2af15ffab3706b6cc13 | f2fa1d6f4206955173a2ebf1b0f824ee5d184d1a | refs/heads/master | 2023-05-08T10:46:07.382608 | 2021-06-02T06:44:22 | 2021-06-02T06:44:22 | 373,066,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for cool_dust_27675 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b94eb3cd9714f1550d11a2faa1808f08db720be0 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/storage/delete.py | b0dd92d45fc1d77f4de21763de0131975f546827 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 5,897 | py | # -*- coding: utf-8 -*- #
# Copyright 2013 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
74d689c8c85d5d2561a6abc2a06ba077a7496e0e | 0fa82ccc0b93944c4cbb8255834b019cf16d128d | /Az/temp.py | caf3bc211fbf8fccda75e10e1fee9d32caddc4ec | [] | no_license | Akashdeepsingh1/project | 6ad477088a3cae2d7eea818a7bd50a2495ce3ba8 | bdebc6271b39d7260f6ab5bca37ab4036400258f | refs/heads/master | 2022-12-13T23:09:35.782820 | 2020-08-27T14:22:37 | 2020-08-27T14:22:37 | 279,722,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | def mincostTickets (days, costs):
dp = [0] * 366
for i in range (1,max (days)+1):
if i in days:
dp[i] = min (dp[i - 1] + costs[0], dp[i - 7] + costs[1], dp[i - 30] + costs[2])
else:
dp[i] = dp[i-1]
return dp[:max (days) + 1][-1]
def mincostTickets2( days, costs):
... | [
"Akashdeep_S@Dell.com"
] | Akashdeep_S@Dell.com |
114910137765ee9246494ef8b775990951da0d1f | b321ca6310cd84bd8603fa9685365bb2a4acc945 | /公司真题/拼多多/phone_number.py | 144534cc23631ee5da9b7f732598e83ae9e6c492 | [] | no_license | baixiaoyanvision/python-algorithm | 71b2fdf7d6b57be8a2960c44160f2a7459e153ae | 6cbb61213af8264e083af1994522929fb7711616 | refs/heads/master | 2020-08-27T03:41:08.332322 | 2019-10-02T13:28:49 | 2019-10-02T13:28:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py |
# line1 = input()
# line2 = input()
line1 = '6 5'
line2 = '787585'
N, K = [int(i) for i in line1.split()]
line2 = [int(i) for i in line2]
result = []
line2_set = set(line2)
min_money = 99999999
for val in line2_set:
sub_vals = [abs(val - number) for number in line2]
sort_sub_vals = sorted( list(range(l... | [
"18310523922@163.com"
] | 18310523922@163.com |
8b97fb6b8a7718a7b273586c5c11230785335bf5 | 51d348426c6e5fa79f2e77baf59bdbf8357d9f12 | /week10/Инфоматрикс/d.массивы/1.py | 39e914161d08fae03f9bd90984ada04bfe926359 | [] | no_license | Zhansayaas/webdev | c01325b13abf92cef13138d7ffc123cf9bc4f81a | dd054d0bcafc498eccc5f4626ab45fd8b46b3a3f | refs/heads/main | 2023-04-10T23:33:30.469465 | 2021-04-17T10:21:53 | 2021-04-17T10:21:53 | 322,049,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | n=int(input())
a=input().split()
for i in range(0,n,2):
print(a[i],end=' ') | [
"noreply@github.com"
] | Zhansayaas.noreply@github.com |
c0d29ea3e56d0a9a1129476105c243a8a2566772 | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/周六练习-practice on saturday/独立完成/OOP-fanb-1_student_manager_system.py | 370a4186757ac84e2f949eca27cb01e393c5348c | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,533 | py | #学生信息管理系统:
# 数据模型类:StudentModel
# 数据:编号 id,姓名 name,年龄 age,成绩 score
class StudentModel:
def __init__(self,name,age,score,id = 0):
self.name = name
self.age = age
self.score = score
self.id = id
# 逻辑控制类:StudentManagerController
# 数据:学生列表 __stu_list
# (#私有属性,提供只读)
# 行为:获取列表 stu... | [
"13572093824@163.com"
] | 13572093824@163.com |
edbc5843172b296c275bf4d38092d8dabd6213fe | bd3b1eaedfd0aab45880c100b86bc4714149f5cd | /student/dyp1/11.py | c6e63aa6b223b8b5cdbb13353fe5872beeeea0a7 | [] | no_license | ophwsjtu18/ohw19f | a008cd7b171cd89fa116718e2a5a5eabc9f7a93e | 96dedf53a056fbb4d07c2e2d37d502171a6554a6 | refs/heads/master | 2020-08-08T12:59:38.875197 | 2020-04-01T10:38:14 | 2020-04-01T10:38:14 | 213,835,959 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import numpy as np
import cv2
capture = cv2.VideoCapture(0)
face_cascade = cv2.CascadeClassifier('C:\\Users\\DING-DING\\AppData\\Local\\Programs\\Python\\Python36\\Lib\\site-packages\\cv2\\data\\haarcascade_frontalface_default.xml')
eye_cascade = cv2.CascadeClassifier('C:\\Users\\DING-DING\\AppData\\Local\\Programs... | [
"noreply@github.com"
] | ophwsjtu18.noreply@github.com |
34fc9717d6ba5477e1aa8e8cc9c71b46b8ee7fd2 | 2f2feae3dee5847edbf95c1eeb14e656490dae35 | /2022/day_13_distress_signal_1.py | e89f9fb5f20ecbd78b7b38f8d58eca40028031af | [] | no_license | olga3n/adventofcode | 32597e9044e11384452410b7a7dda339faf75f32 | 490a385fb8f1c45d22deb27bf21891e193fe58a2 | refs/heads/master | 2023-01-07T09:19:04.090030 | 2022-12-25T13:31:22 | 2022-12-25T13:31:22 | 163,669,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,209 | py | #!/usr/bin/env python3
import sys
import json
from typing import Iterable, List, Any, Tuple, Optional
def is_right_order(left: List[Any], right: List[Any]) -> Optional[bool]:
iter_left = iter(left)
iter_right = iter(right)
while True:
item_left = next(iter_left, None)
item_right = next(i... | [
"olga3n@gmail.com"
] | olga3n@gmail.com |
9c7357576d312b577fde01d5955822e944b46c7b | d0f11aa36b8c594a09aa06ff15080d508e2f294c | /leecode/1-500/401-500/472-连接词.py | 4edb1540db15225aeb711ca0bd0954fa23641a7b | [] | no_license | saycmily/vtk-and-python | 153c1fe9953fce685903f938e174d3719eada0f5 | 5045d7c44a5af5c16df5a3b72c157e9a2928a563 | refs/heads/master | 2023-01-28T14:02:59.970115 | 2021-04-28T09:03:32 | 2021-04-28T09:03:32 | 161,468,316 | 1 | 1 | null | 2023-01-12T05:59:39 | 2018-12-12T10:00:08 | Python | UTF-8 | Python | false | false | 1,016 | py | class Solution:
def findAllConcatenatedWordsInADict(self, words):
def search(word, pre_dict):
if len(word)==0:
return True
cur_dict = pre_dict
for i,c in enumerate(word):
cur_dict = cur_dict.get(c,None)
if not cur_dict:
... | [
"1786386686@qq.com"
] | 1786386686@qq.com |
713b479653ed7764eabad8e061233c7fc1086f24 | 0c2ca3b3c7f307c29f45957e87ed940c23571fae | /fhirclient/models/bodysite_tests.py | a3aaa3593967b5390640ec04095fcc47317b4e4a | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | myungchoi/client-py-1.0.3 | 49c3d15b8dfb845e7cbc933084ed5fcc37e7c4ed | 08e4e5828fb461c105907fd454b19dfc8463aad8 | refs/heads/master | 2021-06-25T04:36:26.952685 | 2021-02-11T16:27:26 | 2021-02-11T16:27:26 | 209,669,881 | 0 | 0 | NOASSERTION | 2021-03-20T01:45:42 | 2019-09-20T00:11:10 | Python | UTF-8 | Python | false | false | 2,663 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 on 2016-03-23.
# 2016, SMART Health IT.
import os
import io
import unittest
import json
from . import bodysite
from .fhirdate import FHIRDate
class BodySiteTests(unittest.TestCase):
def instantiate_from(self, filename):
d... | [
"myungchoi@gmail.com"
] | myungchoi@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.