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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39ce81a1f1b3370aee317de8eb639e17925a2def | 7bc529b7c074f14fd2f726d285f6453f2be4f07e | /PycharmProjects/class_system/venv/Scripts/easy_install-script.py | f1db90ceb86cd60139a8f10c95c258a77c4ff62a | [] | no_license | bopopescu/test-for-life | 52bc2bcb05c9f12c34311c5d8c7d69fac769fc20 | c65a13e16dcdcd1f9d91659b32a8b82794f40985 | refs/heads/master | 2022-11-17T17:45:47.382185 | 2020-04-01T08:31:47 | 2020-04-01T08:53:13 | 281,324,697 | 0 | 0 | null | 2020-07-21T07:17:22 | 2020-07-21T07:17:22 | null | UTF-8 | Python | false | false | 454 | py | #!C:\Users\dell\PycharmProjects\class_system\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw... | [
"3176832432@qq.com"
] | 3176832432@qq.com |
87b4a130e349615dfb7bd957a728f59fc58ffd83 | 653eaef652627b155569b5fe9ab9bb3607fc1e78 | /alg/compartmental_gp/ModelSelection-R0.py | 4660c7e7d821149cfa546f0062dc596eff8f6e7e | [
"MIT",
"BSD-3-Clause"
] | permissive | IlyaTrofimov/mlforhealthlabpub | 11ab86a83bd2ffd2574364a956b322b0c62406ae | 190cbad2faae9e559ffe7a68143df7f747d70adc | refs/heads/main | 2023-04-16T03:58:38.423288 | 2021-04-21T10:22:43 | 2021-04-21T10:22:43 | 358,528,623 | 0 | 0 | NOASSERTION | 2021-04-16T08:25:26 | 2021-04-16T08:25:25 | null | UTF-8 | Python | false | false | 4,802 | py | #!/usr/bin/env python
# coding: utf-8
import pickle
import matplotlib.pyplot as plt
import numpy as np
import pandas as pds
from pyro.ops.stats import quantile
import scipy.stats
import data_loader
import pyro_model.helper
# ## loading data
countries = [
'United Kingdom',
'Italy',
'Germany',
'Spa... | [
"e.s.saveliev@gmail.com"
] | e.s.saveliev@gmail.com |
456a7f4e05576c0361231e1c2ab4676819d15196 | 07cdb5dca64527b3172b3b59d0b5de266dcaf3a8 | /job_runner_worker/enqueuer.py | e17481448fd1ece24beb9e974873340d47266d76 | [] | no_license | alexcouper/job-runner-worker | 3d462fa8f7c6f588a0da90c9f580736af3e3fab0 | 71166bb9d2fd2572e728857131ebffff5f14cf42 | refs/heads/master | 2021-01-18T10:19:07.443862 | 2013-02-11T12:16:32 | 2013-02-11T12:16:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,601 | py | import json
import logging
import random
import time
from datetime import datetime, timedelta
import zmq.green as zmq
from gevent.queue import Empty
from pytz import utc
from job_runner_worker.config import config
from job_runner_worker.models import KillRequest, Run, Worker
logger = logging.getLogger(__name__)
d... | [
"info@brocaar.com"
] | info@brocaar.com |
b8bc34380ab97947d8f82b337c9f47466f14d6e5 | 6923f79f1eaaba0ab28b25337ba6cb56be97d32d | /Introduction_to_numerical_programming_using_Python_and_CPP_Beu/Ch03/Python/P03-Plot0.py | acdc3bf8895ffae30f8fccc6eb2e5aa5a7edaa87 | [] | no_license | burakbayramli/books | 9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0 | 5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95 | refs/heads/master | 2023-08-17T05:31:08.885134 | 2023-08-14T10:05:37 | 2023-08-14T10:05:37 | 72,460,321 | 223 | 174 | null | 2022-10-24T12:15:06 | 2016-10-31T17:24:00 | Jupyter Notebook | UTF-8 | Python | false | false | 963 | py | # Plot a function of one variable
from math import *
from graphlib0 import *
def Func(x): # function to be plotted
return pow(x,3) * exp(-x)
# main
xmin = -0.8; xmax = 7.8 # limits of the plotting interval
n = 50 ... | [
"me@yomama.com"
] | me@yomama.com |
cf0adb8a879d762e37cafe79d7e0551973e1c478 | 0b8cb0ca7870320457132061a1aa964c1481ad49 | /geeksforgeeks/reverse-alternate-levels-binary-tree.py | b947ecf5b9a27c10128b6dbdd89c3e0bbb86cf0e | [] | no_license | hoshinotsuki/DataStructures_Algorithms | c60f8fbd83c29c4cb2a5911386664241cf1fc9ee | fa5085345f8c9da7a3c947d2c8e015169d96c166 | refs/heads/master | 2023-03-16T05:49:40.253244 | 2019-05-12T07:11:33 | 2019-05-12T07:11:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
def inorder_print(root):
if root is None:
return
inorder_print(root.left)
print(root.value)
inorder_print(root.right)
def preorder_print(root):
if root is None:
... | [
"watanabe0621@gmail.com"
] | watanabe0621@gmail.com |
9db9b8f1e3a1f3156864d5eca707290639edf7ec | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2094/60788/256591.py | 7e0afe278f2732b0f090d8db9c2d812e6bfeb3b7 | [] | 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 | 156 | py | import re
num_re = re.compile(r'^[-+]?([0-9]+\.?[0-9]*|\.[0-9]+)([eE][-+]?[0-9]+)?$')
def f(s):
return bool(num_re.match(s))
print(f(input().strip()))
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
94035f21f1d008b8f39cea99a2a598592461df71 | 6112ff74b2a5f602ec2e8323829eb6092f02c56e | /notes.py | 8c2fed70ff3d17569038a1d713efd2a1db09eebb | [
"MIT"
] | permissive | natj/notebook | 84b50a4de8656af46cfc325b8fca684073dc92bf | 5eb3774dde7781e0cbfe9cf301b9625eb5108658 | refs/heads/master | 2021-05-07T04:23:10.910790 | 2019-11-24T08:06:50 | 2019-11-24T08:06:50 | 111,324,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,751 | py | import hashlib
import datetime
import regexes
class Note:
name = ""
title = ""
body = ""
date = ""
# def __init__(self):
def setName(self, name):
self.name = name
def setTitle(self, title):
self.title = title
def setBody(self, body):
body = body.rstrip()
... | [
"nattila.joonas@gmail.com"
] | nattila.joonas@gmail.com |
13db3216e4fdf5ed14791700f50691e3d5ce76b4 | c153118983a83bede2b43cd7d4f14213eb5b597e | /FQA/utils/jiebaSegment.py | 12123b6c630795d6fd28a13096f6e9e7c3881daf | [] | no_license | jessie0624/NLPProjects | 86377f72cf739d5e41697fd6112555b302f24cc0 | 71daf6bbe20300b943d409b4000f4bba6073a84b | refs/heads/main | 2023-01-19T06:02:27.750891 | 2020-11-22T04:18:12 | 2020-11-22T04:18:12 | 303,234,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | import os, sys
import jieba
import codecs
sys.path.append("..")
import config
class Seg(object):
stopword_filepath = config.stop_words_path
def __init__(self):
self.stopwords = set()
self.read_in_stopword()
def load_userdict(self,file_name):
jieba.load_userdict(file_name)
def... | [
"jessie_lijie@126.com"
] | jessie_lijie@126.com |
81f32ee23b2126fdd946c66bd9aedca49466f78a | aad51c9bee18cd75ec60c95df23a97013a5ba601 | /test_colab_selenium.py | 202f996e11fcd1af42e07a34369af9e0133b5d1d | [] | no_license | greysian777/colab-12hrs | 66fcbdf2fe9012a578743cea8fa9e713cac8cac5 | c14b0700a540e50ae1ff6c83911bce8d4c495c11 | refs/heads/master | 2022-08-02T17:25:28.306818 | 2020-05-23T07:25:55 | 2020-05-23T07:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from pathlib import Path
import time
import logging
import random
logging.basicConfig(
format='%(asctime)s - %(levelname)s - %(message)s',
datefmt='%m/%d/%Y %H:%M:%S',
level=logging.INFO)
logger = logging.getLogger(__name__... | [
"svmihar@gmail.com"
] | svmihar@gmail.com |
a49a6ba95a088be95166e25ae39887722cfd44c0 | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/interviewbit/heaps_and_maps/lru_cache/lru_cache.py | b68e4548039637708100ece4e3a0dd9527e0da57 | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | WINDOWS-1258 | Python | false | false | 7,620 | py | #encoding: utf-8
'''
https://www.interviewbit.com/problems/lru-cache/
LRU Cache
Design and implement a data structure for LRU (Least Recently Used) cache. It should support the following operations: get and set.
get(key) -
Get the value (will always be positive) of the key if the key exists in the cache, otherwise ... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
471480649a8d4bfbc594f739fef463d5f34b1ed4 | b90053c31785e695ba858d750d8515f497c83c89 | /hyperopt/rand.py | 50f675fac0b88cc99b6e25382da6d1bd2d33899c | [] | no_license | npinto/hyperopt | 0df5ca621e7ed47b69c798a599ade56298ab770a | 2249ec648ede0a0fffc80383da8f085b0f3d2a18 | refs/heads/master | 2021-01-17T23:08:21.223904 | 2012-07-30T17:52:13 | 2012-07-30T17:52:13 | 3,286,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | """
Random search - presented as hyperopt.fmin_random
"""
from .base import miscs_update_idxs_vals
import pyll
import hyperopt
def suggest(new_ids, domain, trials, seed=123):
rval = []
for new_id in new_ids:
# -- sample new specs, idxs, vals
idxs, vals = pyll.rec_eval(domain.s_idxs_vals,
... | [
"james.bergstra@gmail.com"
] | james.bergstra@gmail.com |
83d0f76e1f8b91249014274a09b604558b131212 | 6b4f38370ce1126a7f74e13c2012ab238a01df93 | /azure-mgmt-network/azure/mgmt/network/v2017_03_01/operations/route_tables_operations.py | 1ad9a70c69d4ef3e1b1beaea2344f9dd8125e6fb | [
"MIT"
] | permissive | action/azure-sdk-for-python | 52d8a278bfb2fbc9c7e11297e3bd21c604f906b1 | f06553e45451f065c87ee9ed503ac4be81e64a71 | refs/heads/master | 2020-12-03T02:13:52.566291 | 2017-06-30T18:42:49 | 2017-06-30T18:42:49 | 95,917,797 | 1 | 0 | null | 2017-06-30T19:25:58 | 2017-06-30T19:25:58 | null | UTF-8 | Python | false | false | 18,005 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
03e3d60fc503e1fffeceef64ae5a8539a4730ca9 | 872f24199d847f05ddb4d8f7ac69eaed9336a0d5 | /gcwrap/python/scripts/recipes/ephemerides/JPLephem_reader2.py | 27df92c490e1e250671a9399cc8ea45e74d19315 | [] | no_license | schiebel/casa | 8004f7d63ca037b4579af8a8bbfb4fa08e87ced4 | e2ced7349036d8fc13d0a65aad9a77b76bfe55d1 | refs/heads/master | 2016-09-05T16:20:59.022063 | 2015-08-26T18:46:26 | 2015-08-26T18:46:26 | 41,441,084 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,483 | py | """
Updated version to support the current JPL-Horizons query results as of 2013 June.
(when S-T-O is requested the current query result returns phi, PAB-LON, PAB-LAT along
with S-T-O value).
casapy functions for converting ASCII ephemerides from JPL-Horizons into
CASA tables and installing them where casapy can fin... | [
"darrell@schiebel.us"
] | darrell@schiebel.us |
be75de062938ae461aee4a45a827f3d669428556 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6040/362006040.py | fec08b0c4c9a5dde5cbd5e30e4b23d0499d0ea31 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,085 | py | from bots.botsconfig import *
from records006040 import recorddefs
syntax = {
'version': '00604',
'functionalgroup': 'OC',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'CUR', MIN: 1, MAX: 1},
{ID: 'REF', MIN: 1, MAX: 9},
{ID: 'N1', MIN: 1, MAX: 1},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
db1c238c2307a78ed848ead6fa4abbb78a1beb11 | f62fd455e593a7ad203a5c268e23129473d968b6 | /zaqar-4.0.0/zaqar/transport/wsgi/v1_0/metadata.py | 0fb7d1465b9545e50e3b95de27416384c4442c1c | [
"Apache-2.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 3,659 | py | # Copyright (c) 2013 Rackspace, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
0cf4cc42f36207bd3ddb02f5b8cd8c97c84e0060 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/gui/HUD2/features/Consumables/ConsumableController.py | bb4ce6df1e0f3d0e5e03d33020690780f72bfb3b | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | # Embedded file name: scripts/client/gui/HUD2/features/Consumables/ConsumableController.py
import functools
import InputMapping
from gui.HUD2.core.DataPrims import DataController
from gui.HUD2.hudFeatures import Feature
class ConsumableController(DataController):
def __init__(self, features):
self._player... | [
"55k@outlook.com"
] | 55k@outlook.com |
9d82a1a0b220e3c400344bd86cf2981dc3585041 | 282769509af68245596dc73de42f552cfd73cd21 | /autoindex/main.py | 9d22a8d7d27f05ebffd5f1489867adfa15f4fe96 | [] | no_license | brutasse-archive/autoindex | 1130173d22c1d996a7cb38fcd59b51d07c0b8068 | cc5cfc414325aff133c684257e8c2bfdc9aaa672 | refs/heads/master | 2021-01-19T14:34:18.472167 | 2012-07-17T21:31:27 | 2012-07-17T21:31:27 | 5,048,409 | 15 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | import args
import logging
import os
import urlparse
import sys
from . import watcher, indexer, mirror
from .utils import error
ACTIONS = ['mirror', 'watch', 'index']
SILENCE_LOGGERS = [
"requests.packages.urllib3.connectionpool",
]
def show_help():
print """Usage: %s -d directory [-i indexserver] action
A... | [
"buburno@gmail.com"
] | buburno@gmail.com |
4f1d9e5082bfd413f7f1b53a445cbbd19c5c846d | e9c0bb90f07144e26e54b78abc9d102b7affc9f8 | /billreminder/api/__init__.py | a223c4f70060a46701c2149570b3e9c407efed70 | [] | no_license | linxaddict/billreminder | fe8b3aee275172518f1e4757e4a89350f2bd2517 | 7c8f52b8d3bdc55199b4f6417d960facf5c6857e | refs/heads/master | 2021-01-11T17:19:07.965038 | 2017-03-29T19:57:29 | 2017-03-29T19:57:29 | 79,741,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from flask import Blueprint
__author__ = 'Marcin Przepiórkowski'
__email__ = 'mprzepiorkowski@gmail.com'
blueprint = Blueprint('api_v1', __name__)
| [
"mprzepiorkowski@gmail.com"
] | mprzepiorkowski@gmail.com |
120ec93d51cfc4e8448a9189d142718369fce9bf | 693630d7f698814342774095da79e3894269a733 | /pythonreview/파이썬날개달기/10.py | 301f990fe1ed66f3257aefd41d21cfe5f298c0aa | [] | no_license | PARKINHYO/data-science-example | 686f243f9b82eccf99a315046ce53498af077f17 | 69984f0ca93f3e24845642475c58735a7d09435c | refs/heads/master | 2022-12-24T02:25:22.658436 | 2020-09-20T08:23:12 | 2020-09-20T08:23:12 | 286,511,928 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | import os
os.chdir("E:\IHPark\DataScience")
os.system("dir")
| [
"inhyopark122@gmail.com"
] | inhyopark122@gmail.com |
af570ddc6fe24590b9604b88f1694b8389032cda | 48e96dfd7797856dd7c848838b072e9f74f141bd | /Python数据分析从入门到精通/MR/Code/05/13/demo.py | a6a1d945b09980b045eb8f50aad1e9fc2e269818 | [] | no_license | JoneLn/project2_pandas | cd3bb2fd8ff0a0f116e9b5c5f14530c754e460be | 5d1f1e5e3056915a329dcc34e2e3ca4b2fd08173 | refs/heads/master | 2023-08-25T04:09:08.040842 | 2021-10-13T13:32:12 | 2021-10-13T13:32:12 | 415,538,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import matplotlib.pyplot as plt
x=[1,2,3,4,5,6]
height=[10,20,30,40,50,60]
plt.bar(x,height)
| [
"419916368@qq.com"
] | 419916368@qq.com |
72a121a76295373b4a46d60a9f2f0629d7eab90e | 24ebb68eb7b60f04ec0cf5e0cf775e3e3e619edd | /sol/admin.py | 28cc038f85a2fa8af966c5af4f44ffdaec728e53 | [] | no_license | MATT143/SbpSol | 554f5bf9dd3367562d727a1f76904acc0c51319b | 2d7c03918fbf80945e87bbef44eeb6eef4ef6620 | refs/heads/master | 2022-04-20T10:31:01.985988 | 2020-04-18T04:08:21 | 2020-04-18T04:08:21 | 256,666,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from django.contrib import admin
from .models import com_order_mapper
# Register your models here.
admin.site.register(com_order_mapper) | [
"mnahak@cisco.com"
] | mnahak@cisco.com |
cc109d1b6b56306fed846dbaaeb6e23d27f144ba | f3b233e5053e28fa95c549017bd75a30456eb50c | /p38a_input/L2BB/2BB-2V_MD_NVT_rerun/set_5.py | de3fd1f8c5f88932193bf72c729fd3dad69dcb4b | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import os
dir = '/mnt/scratch/songlin3/run/p38a/L2BB/MD_NVT_rerun/ti_one-step/2BB_2V/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_5.in'
temp_pbs = filesdir + 'temp_5.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in l... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
c30e2545895d8d3c43eea2542f4304ff7c58e870 | 2954ce7184455bddb4e47c9a46d198fcc4b9bbce | /毕业之后/toridasumatome.py | b0d807a2ed45ea34f5826fee620611ad2e2f2639 | [] | no_license | shuyuqing/- | c9668a402cb652085c95a9414daafc1c847d3dbf | bec903bc3426e12e301633fe950961ea1e247c67 | refs/heads/master | 2022-07-05T16:59:23.547338 | 2021-09-19T08:23:49 | 2021-09-19T08:23:49 | 182,628,661 | 4 | 0 | null | 2022-06-21T22:47:03 | 2019-04-22T05:28:13 | Python | UTF-8 | Python | false | false | 806 | py | #把目录里面的文件全部都拿出来,统一放到一个文件夹下面
import os;
from shutil import copyfile
Path=r"C:\Users\a7825\Desktop\server"
def getAllFiles(path):
flist = []
for root, dirs, fs in os.walk(path):
for f in fs:
f_fullpath = os.path.join(root, f)
# f_relativepath = f_fullpath[len(path):]... | [
"noreply@github.com"
] | shuyuqing.noreply@github.com |
aac763396330449c885823113debd42a31907920 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03555/s693023461.py | b00979f611d13793c4acef0027245cd1c28bfa33 | [] | 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 | 106 | py | a,b = [input() for i in range(2)]
if a[::-1] == b and b[::-1] == a:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b65401a2a93ec86b3e85352d6b6482ef79997f3b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2652486_0/Python/daybreakcx/C.py | fc9b493a717e4853e24efb466de8dae51bfaf30b | [] | 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 | 1,155 | py | #!/usr/bin/python2
import math;
if __name__ == "__main__":
T = (int)(raw_input());
s = raw_input().split();
R = (int)(s[0]);
N = (int)(s[1]);
M = (int)(s[2]);
K = (int)(s[3]);
su = [];
for i in range(5**3):
su.append({});
for i in range(2, M + 1):
for j in range(2, M + 1):
for k in range(2, M + 1):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
5e6b59bdfb0a0e8077e93c709d4ff25600917e6b | dc0d7e49eafe40f1c41f631621a6ccdefdcbbf7c | /press/helpers/package.py | 82452aae44d609bd24d24828189f8a9c09da511a | [] | no_license | jr0d/press | b2314b319da5b44d23110036064775796246c5c1 | 477b78700b644b2d333f4d9289f319a52fc54100 | refs/heads/master | 2021-06-15T20:44:18.061919 | 2019-04-24T17:01:37 | 2019-04-24T17:01:37 | 80,559,927 | 7 | 3 | null | 2021-03-25T21:49:09 | 2017-01-31T20:38:44 | Python | UTF-8 | Python | false | false | 394 | py | import os
import pkg_resources
def get_package_version(package):
try:
dist = pkg_resources.get_distribution(package)
except pkg_resources.DistributionNotFound:
return None
return dist.version
def get_press_version():
return get_package_version('press')
def get_press_location():
... | [
"jared.rodriguez@rackspace.com"
] | jared.rodriguez@rackspace.com |
5fd66b1f6f8c2282a4603fca785d42c2ce9e6ccf | 96e6c98ecdb6fc5fb1a7212e48b68a18b98b5116 | /aiosmb/commons/serverinfo.py | a75c76c889fefb2f6783ef7eb970861dd6d22a02 | [] | no_license | raystyle/aiosmb | e4b5f1033cb52744f6485f4b921e7ac08cf77ae1 | 56e0e4d03fdcda626d3005ff80c65ec2d1239060 | refs/heads/master | 2020-06-07T16:33:00.913731 | 2019-06-12T22:34:08 | 2019-06-12T22:34:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,515 | py |
from aiosmb.ntlm.structures.avpair import AVPAIRType
from aiosmb.dtyp.structures.filetime import FILETIME
class NTLMServerInfo:
def __init__(self):
self.domainname = None
self.computername = None
self.dnscomputername = None
self.dnsdomainname = None
self.local_time = None
self.dnsforestname = None
self... | [
"info@skelsec.com"
] | info@skelsec.com |
b03cc4f5c9c1199ff4210717a984aa6830a972b7 | 10717fe6f68c4ee9bcf27ee62e89581f4a030b8e | /extractor/funimation.py | ce1ee9d43d5e0b8fba42a813e94d85c62dd402e2 | [] | no_license | HagerHosny199/Testing_Project | ff7f9a54b7a213c9d9ade0c5192845c2a29adc8b | 9bc170263e239cc24ccfb2aa33b9913ff799ffe9 | refs/heads/master | 2020-05-17T20:57:01.750640 | 2019-05-08T22:13:06 | 2019-05-08T22:13:06 | 183,954,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,674 | py | # coding: utf-8
from __future__ import unicode_literals
import random
import string
from .common import InfoExtractor
from compat import compat_HTTPError
from utils import (
determine_ext,
int_or_none,
js_to_json,
ExtractorError,
urlencode_postdata
)
class FunimationIE(InfoExtractor):
_VALID... | [
"hagarhosny19@gmail.com"
] | hagarhosny19@gmail.com |
cba903f7e47a262c65c23df2865acf9204600d6e | 21b0b4c27193898207751c91b8b2ed168a1b1638 | /py/py_0022_names_scores.py | d4155cdbd69ffa5c00eb79c3bfee74b5999dbc1a | [
"MIT"
] | permissive | lcsm29/project-euler | 67560a4e66968f1671a3d7ecf2dda6c956893dca | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | refs/heads/main | 2023-07-04T11:45:24.374841 | 2021-08-07T08:20:41 | 2021-08-07T08:20:41 | 371,808,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | # Solution of;
# Project Euler Problem 22: Names scores
# https://projecteuler.net/problem=22
#
# Using names.txt, a 46K text file containing over five-thousand first names,
# begin by sorting it into alphabetical order. Then working out the
# alphabetical value for each name, multiply this value by its alphabetical ... | [
"lcsm29@outlook.com"
] | lcsm29@outlook.com |
c3fc1102d39052701862f36df2becbe8bebc1cd6 | ff8bcffe1ad8079004b66cdd47e3ba6f7fe52616 | /superlists/manage.py | 0e0d9a30ac2271770e4fce1849976c988b1f85a3 | [] | no_license | nezaj/tdd-with-python | 1cb34d4f524e384540358e1ba19ad329d84a84cb | 1aec8b0ed672bc85dea5157cc4d8aadae4ac0d8e | refs/heads/master | 2016-09-10T22:42:17.503466 | 2014-11-14T23:03:05 | 2014-11-14T23:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | #!/usr/bin/env python3
import os
import sys
from settings import app_config
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", app_config)
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"joeaverbukh@gmail.com"
] | joeaverbukh@gmail.com |
cbff601ab46b34759d6bd239213f1295f7f8d03f | 4ae3b27a1d782ae43bc786c841cafb3ace212d55 | /Py_op/example_log/b_glob_log.py | de83db5c330d2591918f7c981bc9b70f2b3bac95 | [] | no_license | bopopescu/Py_projects | c9084efa5aa02fd9ff6ed8ac5c7872fedcf53e32 | a2fe4f198e3ca4026cf2e3e429ac09707d5a19de | refs/heads/master | 2022-09-29T20:50:57.354678 | 2020-04-28T05:23:14 | 2020-04-28T05:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,276 | py | import glob
import os
import sys
import concurrent.futures
import timeit
"""
def make_image_thumbnail(filename):
# The thumbnail will be named "<original_filename>_thumbnail.jpg"
base_filename, file_extension = os.path.splitext(filename)
return filename
# Loop through all jpeg files in the folder and mak... | [
"sunusd@yahoo.com"
] | sunusd@yahoo.com |
b2cc2810d9cf823489655820774974623d4204da | 4cdca429543733ce7e1e7b192e407c2d84a4d731 | /sea_controller/ppo/agents/archive.py | 67389b650c0b7ead60a19717832ac40b3d29fe28 | [] | no_license | landonclark97/ME699_RMC | 208c01652d4cafa7e453c85ce6c1f713235323dd | 43bfef229545fa050b822ecd153cc0a0bf250a4d | refs/heads/main | 2023-04-23T03:07:08.738177 | 2021-05-04T22:01:19 | 2021-05-04T22:01:19 | 339,121,714 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,465 | py | """
Archive of Procedures Not Used in Final Implementation
Written by Patrick Coady (pat-coady.github.io)
"""
import numpy as np
import tensorflow as tf
class ConstantScaler(object):
""" Dumb scaler, scale and offset set at initialization """
def __init__(self, obs_dim, scale=1.0, offset=0.0):
self.s... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
ece25bb1aae38b23a21fffc9b33ece1a47647610 | 6b98594c029605806418d187672f476fde5792b7 | /rllab/core/serializable.py | 2505c6ab9c2179e97b5497f8d830bb5863d2aad6 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | russellmendonca/GMPS | 3f65eb250bff008da9beea6b9d1f04aca2d46c6a | 638087160c48f9f016dc74b0904f8ba2503ea285 | refs/heads/master | 2023-01-22T07:53:21.504243 | 2019-10-26T11:23:42 | 2019-10-26T11:23:42 | 178,866,391 | 18 | 8 | NOASSERTION | 2023-01-19T06:42:27 | 2019-04-01T13:12:40 | Python | UTF-8 | Python | false | false | 1,435 | py | import inspect
class Serializable(object):
def __init__(self, *args, **kwargs):
self.__args = args
self.__kwargs = kwargs
def quick_init(self, locals_):
if getattr(self, "_serializable_initialized", False):
return
spec = inspect.getargspec(self.__init__)
#... | [
"russellm@berkeley.edu"
] | russellm@berkeley.edu |
389ae3f4ee1b0a20461b194c2e7d174236f1a9c1 | 753f729f33a1b00a0a7f5c78d217cc4c609aee6f | /n44/app/migrations/0001_initial.py | 6fc4491c07ec439375e0d57cbfdecf68d7027023 | [] | no_license | nayan-gujju/DRF-Code | 874114a861042d558112f1a8ec95daf1356d5493 | 6fb3fdd5dde352e7b6e3a7363da0e7a3057b1ede | refs/heads/master | 2023-08-06T12:42:23.551603 | 2021-10-06T11:34:54 | 2021-10-06T11:34:54 | 404,650,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | # Generated by Django 3.2.6 on 2021-10-05 06:37
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.BigAutoFie... | [
"nayangujarati007@gmail.com"
] | nayangujarati007@gmail.com |
d3ae5cfdef823fb94719c274fa350d2e195544e9 | 5c4b4bb19d98170c20593d1613d6d19e59313bad | /jobs/migrations/0003_remove_formation_center_formation.py | c5abe4e142e0ee5c54e7b3ec36512ed4c0911294 | [] | no_license | Ruldane/djangoportfolio | f339288b5265993448eb0131e2dc51699b956343 | 29a10e909dfdceeb2b338a4a3ae3a9ccf1b31c70 | refs/heads/master | 2023-05-04T07:18:34.047799 | 2019-07-09T07:17:32 | 2019-07-09T07:17:32 | 194,525,404 | 0 | 0 | null | 2023-04-21T20:33:19 | 2019-06-30T14:29:21 | JavaScript | UTF-8 | Python | false | false | 338 | py | # Generated by Django 2.2.2 on 2019-07-01 14:20
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('jobs', '0002_auto_20190701_0929'),
]
operations = [
migrations.RemoveField(
model_name='formation',
name='center_formation',... | [
"l.nizzoli@gmail.com"
] | l.nizzoli@gmail.com |
adc0c4cb6c1af4c2d0837138078a82b12d3cf846 | 08ca7028e0488c420fff8c831e9d4fd3e32ee292 | /attacks/__init__.py | 8bcd9f808ed8b58a81490ea2249c9d2a32060f68 | [] | no_license | yogeshbalaji/Adversarial-training | 0ee53fdbef2742788cbbc73ca592738347076fe2 | 3593c836f39c1313545fcc71e5ba8afa6f427326 | refs/heads/master | 2020-07-15T03:00:26.425582 | 2019-09-04T19:59:51 | 2019-09-04T19:59:51 | 205,464,494 | 12 | 4 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | from .pgd import PGDAttacker | [
"yogesh22@ramawks95.umiacs.umd.edu"
] | yogesh22@ramawks95.umiacs.umd.edu |
3449f79d6aacc3a8171e4c6114d0a3787558e126 | 408099135939ccdb7fc52f110792ce651fb6b00a | /test/integration/test_safe_str.py | 33553b62f76336367f32089eddd383ba0c431b46 | [
"BSD-3-Clause"
] | permissive | thomasrockhu/bfg9000 | 757271db484ddcd06e8b391c3b8818882857f66e | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | refs/heads/master | 2022-11-29T00:07:15.914649 | 2020-07-24T21:12:38 | 2020-07-24T21:12:38 | 282,257,111 | 0 | 0 | BSD-3-Clause | 2020-07-24T15:37:41 | 2020-07-24T15:37:40 | null | UTF-8 | Python | false | false | 757 | py | import os.path
import re
from . import *
class TestSafeStr(IntegrationTest):
def __init__(self, *args, **kwargs):
super().__init__('safe_str', *args, **kwargs)
def test_foo(self):
f = re.escape(os.path.normpath(os.path.join(
test_data_dir, 'safe_str', 'foo.txt'
)))
... | [
"itsjimporter@gmail.com"
] | itsjimporter@gmail.com |
3bd008f64528001d01faec7a3b472224f4ba7860 | 0a691220c5e2c2a9b99d20b2ac62baa1a1f95ca3 | /djangoimposter/blog/migrations/0008_remove_newslettersignup_posts.py | 10a5ff08419047e1068d7a73612c2742ab678690 | [] | no_license | beasyx0/djangoimposter | a1fc945e09148a8cf2ae41d3f96f4c4565a5b94d | b7e06dfe972306179d42b6595e64a461979d32b1 | refs/heads/main | 2023-02-27T10:49:48.087627 | 2021-02-08T18:54:27 | 2021-02-08T18:54:27 | 334,469,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | # Generated by Django 3.0.11 on 2020-11-26 01:48
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0007_newslettersignup_posts'),
]
operations = [
migrations.RemoveField(
model_name='newslettersignup',
name='posts'... | [
"b_easyx@protonmail.com"
] | b_easyx@protonmail.com |
066839e96acfce157df95fa049f0f67467660b92 | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/test/test_limit_order_reject_transaction.py | 885822ef43b4f506079cdb563b724d4e81e6d98a | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
68435be95d769e029853b2f74d217a894b9240e1 | b00873d36e44128ce30623da0ee3b556e4e3d7e7 | /solutions/solution460.py | 1d8d54d21de25921a3e7605d259659cf37177b17 | [
"MIT"
] | permissive | Satily/leetcode_python_solution | b4aadfd1998877b5086b5423c670750bb422b2c8 | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | refs/heads/master | 2021-07-18T07:53:10.387182 | 2021-07-17T06:30:09 | 2021-07-17T06:30:09 | 155,074,789 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | class DoubleLinkListNode:
def __init__(self, value, previous=None, next=None):
self.value = value
self.previous = previous
self.next = next
class DoubleLinkList:
def __init__(self):
self.head = DoubleLinkListNode(None)
self.tail = DoubleLinkListNode(None)
self.h... | [
"houjiaxu@xiaomi.com"
] | houjiaxu@xiaomi.com |
3b0d60489920e22c20d10bbe1db8dd1b84418245 | a1119965e2e3bdc40126fd92f4b4b8ee7016dfca | /trunk/repy/tests/ut_repytests_empty-testrequiredresources.py | b5e7524ee0255d62a11de445f495af80e6e2d85d | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SeattleTestbed/attic | 0e33211ddf39efdbcf5573d4fc7fa5201aa7310d | f618a962ce2fd3c4838564e8c62c10924f5df45f | refs/heads/master | 2021-06-10T23:10:47.792847 | 2017-05-15T12:05:43 | 2017-05-15T12:05:43 | 20,154,061 | 0 | 1 | null | 2014-10-16T17:21:06 | 2014-05-25T12:34:00 | Python | UTF-8 | Python | false | false | 52 | py | #pragma error
#pragma repy restrictions.empty
pass
| [
"USER@DOMAIN"
] | USER@DOMAIN |
8cf5581cbf1e59a44ddd2822450b268a05f55c4a | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_xiae_qual.py | adf8463a529680787535a7934c89ca6cfe4f813e | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 4,208 | py | from time import sleep
def a (fname):
fin = open(fname + ".in")
lines = fin.readlines()
T = int(lines[0])
fout = open(fname + ".out", "w")
for t in range(1, T+1):
line = lines[t]
N = int(line)
fout.write("Case #" + str(t) + ": " + sheep(N) + "\n")
def sheep(N):
if N == ... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
1452cf4aa652911b776e92964b67bc0db5ef93c9 | 8cc44eb6cc0fd2e74ce80246ad50e9d510591345 | /q104.py | fa0104621751c2e2c6e7c9babc2422c48b924729 | [] | no_license | gitttttt/lc | 8b6521af300c6903f593b209783560b6b880d8ae | fa1a63cb192666fc6aa5c7c72130993818ea58d0 | refs/heads/master | 2020-05-30T07:12:56.955633 | 2016-12-14T03:16:42 | 2016-12-14T03:16:42 | 68,888,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py |
def maxDepth(root):
return depth(root)
def depth(p):
if p is None:
return 0
else:
return 1 + max(depth(p.left), depth(p.right)) | [
"zhangyifan@neotel.com.cn"
] | zhangyifan@neotel.com.cn |
7b0a2c9636ac9aadd83d2daf106b7cd7bd840f0a | 173ba16165358bdb735ffc275bc9d6c2590df239 | /rootfs/opt/store/componentstore/server.py | 9ed0ed5e1f62a41ba15a5770d724d1d63ca8793a | [
"MIT"
] | permissive | timmo001/custom-component-store | 44c40b687ebb7fca860dbaf6ee69a9f5c35b45d4 | c384e3db99085223cd09c6d95e134882e4810efa | refs/heads/master | 2020-04-18T12:23:27.832985 | 2019-01-24T16:58:23 | 2019-01-24T16:58:23 | 167,531,672 | 1 | 0 | null | 2019-01-25T10:43:09 | 2019-01-25T10:43:09 | null | UTF-8 | Python | false | false | 6,664 | py | """Custom Components componentstore."""
import os
import componentstore.functions.data as data
import componentstore.functions.manager as manager
from aiohttp import web
PATH = '/config'
REASON = None
REDIS_HOST = None
REDIS_PORT = None
NO_CACHE = False
async def error_view(request): # pylint: disable=W0613
"... | [
"joasoe@gmail.com"
] | joasoe@gmail.com |
b5fc68f98779b68dfd10ec49981fc1e010a89da0 | 999e1806302dbc2cd15664dadcd826f701484e33 | /python/send_test/send_test.py | 4ed4c8ca3c9b5e71f8ac04c6112982e8faea96e2 | [] | no_license | gdiazh/gsmA6 | 1086b75857135b810e822ed28281cd4050dfefcb | b21e5ce34a5862fb7ac211ac5266eb016c332118 | refs/heads/master | 2021-01-22T02:24:38.863297 | 2017-06-09T22:46:43 | 2017-06-09T22:46:43 | 92,358,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,856 | py | #!/usr/bin/python
__author__ = 'gdiaz'
import serial
import syslog
import time
from threading import Timer
#The following line is for serial over GPIO
port = '/dev/ttyACM0'
class GSM(object):
def __init__(self, serial, debug = False):
self.gsm = serial
self.sms = "gms test"
self.config =... | [
"g.hernan.diaz@gmail.com"
] | g.hernan.diaz@gmail.com |
a0a2146a30dad6e1f54fd0d71dd4dcacf54ccb1b | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/2997py/a.py | aada5f1e5103ceb13d3105a2b27342fdf07e1344 | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | l=sorted(map(int,input().split()))
a,b=l[1]-l[0],l[2]-l[1]
if a>b:print((l[1]+l[0])//2)
elif a<b:print((l[2]+l[1])//2)
else:print(l[2]+a)
| [
"dwj1996@naver.com"
] | dwj1996@naver.com |
64231fcd94ba73210d9850308b49dbe60f0018eb | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/compute/azure-mgmt-avs/generated_samples/workload_networks_list_dns_zones.py | 58293e5eda627766a3a6b37e3d2f8b382cabd137 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,572 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
b6309c087d80ab58f92700a063c928d82024d4cf | 9b01f7d430f7ee87217618cfa4567f42635e8923 | /22-06-2017/cloudformation/nginx-demo-1/ansible/.env/bin/cq | 0447234638fdac9ed0daa9425fd3da9c7b199de7 | [] | no_license | awsusergroupsantiago/demos | ccb045545d2a407a39d865cf19800d2b6d284b8f | e7f0dc8d9a4e8f2547c33a5a294fd76bf3ac9c9c | refs/heads/master | 2022-04-30T23:43:30.646556 | 2020-08-08T01:35:40 | 2020-08-08T01:35:40 | 95,129,959 | 2 | 0 | null | 2022-03-29T21:54:09 | 2017-06-22T15:29:25 | Python | UTF-8 | Python | false | false | 3,139 | #!/Users/groupon/Desktop/meetups/AWSUserGroup/22-06-2017/cloudformation/nginx-demo/ansible/.env/bin/python
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software")... | [
"eduardo.miranda.becerra3@gmail.com"
] | eduardo.miranda.becerra3@gmail.com | |
f65f8080650a094b4947977b4b43b37a56e3a82e | 353fb13f4e8a0d45cd0586f26258276731dcdd3a | /src/octras/algorithm.py | 722156a44307e69285d7f3cd988007a607c12ecf | [] | no_license | sebhoerl/octras | b4b450d41e109978119ac74601716e2429b9e79f | 65cbc8530ef65ab210bcc97fe756a12982593dc3 | refs/heads/develop | 2023-08-01T05:37:38.358657 | 2021-07-28T14:15:24 | 2021-07-28T14:15:24 | 326,031,485 | 0 | 2 | null | 2021-07-28T14:15:25 | 2021-01-01T18:12:33 | Python | UTF-8 | Python | false | false | 259 | py | from octras import Evaluator
class Algorithm:
#def set_state(self, state):
# raise NotImplementedError()
#def get_state():
# raise NotImplementedError()
def advance(self, evaluator: Evaluator):
raise NotImplementedError()
| [
"hoerl.sebastian@gmail.com"
] | hoerl.sebastian@gmail.com |
31636f18fe8ab92996ea388d7c22b23f5b10a8df | 5508368df9df1036755aeaa8574bdadcc25359f8 | /AmadoFinance/migrations/0064_auto_20190123_1538.py | 41fd6a6b8c26b19b034b34623f6f52583a6deae7 | [] | no_license | HanSol1994/Amado | 4627a6165009733059e8e87f545244f69d492b91 | 9fbc37250b9974bbf3a3c3a2571a748a300b2d29 | refs/heads/master | 2022-01-23T23:59:30.666584 | 2019-07-23T08:12:19 | 2019-07-23T08:12:19 | 198,373,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | # Generated by Django 2.1.2 on 2019-01-23 12:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AmadoFinance', '0063_auto_20190123_1537'),
]
operations = [
migrations.AlterField(
model_name='recedeimage',
name='c... | [
"haansol@gmail.com"
] | haansol@gmail.com |
9bb099363a94879ff08830e4559b20747ed7f145 | 7162c7fa1433f8bacc666e611241b32232ef3792 | /src/interrogate/__init__.py | 86ad91c9accf6cd0276684aaafa9a042b96137ee | [
"CC-BY-3.0",
"MIT"
] | permissive | econchick/interrogate | ff4e04e9a4a677a8dd694599e39705f80a5c3ad9 | 1e74611fc5296b0572b6bb11b480d43242c4ec49 | refs/heads/master | 2023-04-11T11:54:42.297583 | 2022-07-29T16:12:10 | 2022-07-29T16:12:10 | 258,385,030 | 497 | 49 | MIT | 2023-09-10T13:43:00 | 2020-04-24T02:33:25 | Python | UTF-8 | Python | false | false | 296 | py | # Copyright 2020-2021 Lynn Root
"""Explain yourself! Interrogate a codebase for docstring coverage."""
__author__ = "Lynn Root"
__version__ = "1.5.0"
__email__ = "lynn@lynnroot.com"
__description__ = "Interrogate a codebase for docstring coverage."
__uri__ = "https://interrogate.readthedocs.io"
| [
"lynn@lynnroot.com"
] | lynn@lynnroot.com |
185385a3a2663b75e3e3fb9d6299d507e525378f | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/sHr.py | 09849523d77aabe1e774a35e964cf808f558c353 | [] | 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 | 486 | 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 |
a836afdc0be9f0a4459696cab7d89d6df18bbfb3 | af04fe1272f31105e1c85d0eb2c8a80bb031b07d | /docs/conf.py | b01e805dc558647268360804e42423069a010da3 | [
"MIT"
] | permissive | baverman/dsq | 109eae427b49a0bdda6a08876607f69bdda0dd62 | d275a8820b3128dc05afc75ea78b9db61618bd60 | refs/heads/master | 2023-03-24T18:06:59.431405 | 2023-03-08T16:04:17 | 2023-03-08T16:07:33 | 61,524,313 | 23 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,703 | py | # -*- coding: utf-8 -*-
#
# DSQ documentation build configuration file, created by
# sphinx-quickstart on Sat Jul 9 18:21:58 2016.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... | [
"bobrov@vl.ru"
] | bobrov@vl.ru |
dd3d90043cc6a29286eed3aea2b6a123c267f7b2 | f51c6d0cebb27c377ce9830deec4b727b9b2ee90 | /AI/04_Plot/Sierpinski_Chaos.py | ee836df99875677b3d364b17ac50293452a7e536 | [] | no_license | dbbudd/Python-Experiments | 1c3c1322583aaaf2016a2f2f3061e6d034c5d1c8 | b6d294bf11a5c92b8578d16aa2f63cc27fc47b07 | refs/heads/master | 2020-04-17T02:21:36.693593 | 2019-01-17T00:18:34 | 2019-01-17T00:18:34 | 166,130,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | #!/usr/bin/env python
%matplotlib inline #!
import random
import numpy as np
import time
import pylab as pl #!
from IPython import display #!
import numpy as np
pylab.rcParams['figure.figsize'] = (10.0, 8.0)
def Sierpinski_Chaos(gp=None, n=None):
"""This Choase game shows how randomness can lead to structure:
... | [
"dbbudd@gmail.com"
] | dbbudd@gmail.com |
c9abcad5cdb6ef69352cbd95248ec7e04972791e | d326cd8d4ca98e89b32e6a6bf6ecb26310cebdc1 | /BioinformaticsTextbookTrack/chap1/ba1a/ba1a.py | 4b37b97fac93445af48b0caa55dc70dc62ed1ea7 | [] | 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 | 334 | py |
import sys
if len(sys.argv) < 2:
print "You must specify the name of the file to load!"
sys.exit(1)
with open(sys.argv[1], "r") as file:
seq = file.readline().strip()
pat = file.readline().strip()
count = 0
plen = len(pat)
for i in xrange(len(seq)):
if seq[i:i + plen] == pat:
count += 1
... | [
"big.swish@gmail.com"
] | big.swish@gmail.com |
80182646821ae0f60e43f4992203a3818bfd7fd0 | 69e318f2b60175108bc74ee669bfe16287a71cb6 | /plugins/modules/fortios_system_nat64.py | 318c93739e92ef52baf4b2d3ae78d48c5914f341 | [] | no_license | chillancezen/ansible-galaxy-fortios-collection | 5268a5fd97fb4594772349b8d89cb818ec54b3bd | 66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3 | refs/heads/master | 2022-04-09T19:20:59.073193 | 2020-03-26T07:17:09 | 2020-03-26T07:17:09 | 250,185,374 | 0 | 0 | null | 2020-03-26T07:06:16 | 2020-03-26T07:06:16 | null | UTF-8 | Python | false | false | 11,662 | py | #!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lic... | [
"fshen01@fortinet.com"
] | fshen01@fortinet.com |
20243f291eaf9650f369ab3ad68e3f4032d02e33 | 0ba804704961a64781266af01d946432881d2b36 | /TDDTest/lists/migrations/0002_item_text.py | fedb70043dfdb2410ae7f281706cdf8f6d94945e | [] | no_license | aimiliya/spider | 6a57056da8f10498933c4383d4a63d92928e7398 | 86b39439aa50db15743cfa053a16b9c358694bdd | refs/heads/master | 2020-04-07T19:47:24.685812 | 2018-11-14T13:28:25 | 2018-11-14T13:28:25 | 158,662,720 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # Generated by Django 2.1.2 on 2018-11-14 07:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lists', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='item',
name='text',
field=mod... | [
"951416267@qq.com"
] | 951416267@qq.com |
d65940db9f881edfd9ca3bda5bfa15a82458d624 | a5d418868bdc1d81719cd111f2787f2c5137518c | /Django/myshop/myshop/settings.py | 8f554185f4f2edeec5784b269018af5b5b4bd069 | [] | no_license | sohn0356-git/TIL | aa0e89b2d163a342fc99e93b0552b73bf1db9e4a | 9c7447326caed4d25044a0ab559744ffc469924c | refs/heads/master | 2023-07-15T23:33:19.650261 | 2021-08-24T11:04:12 | 2021-08-24T11:04:12 | 327,533,782 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,797 | py | """
Django settings for myshop project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
fro... | [
"sohn0356@gmail.com"
] | sohn0356@gmail.com |
cb9b5dc4f0168d8f2df193838c989f3a0f42d2f5 | 376b0e12d2a6f89b04f88b55c778d33aca397225 | /schemas/node_types.py | 5f0c4e9aeb3df78cb05532e36e944eea9624ac5d | [] | no_license | junhoyeo/Partial-SNN | 4fd00d78e4d55bba28b96091754ee518a5d1450b | ba93c67617ced22cab156194a1feda2f17b83a40 | refs/heads/master | 2020-11-29T22:31:23.473774 | 2019-12-26T19:18:40 | 2019-12-26T19:18:40 | 230,231,025 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | class NodeTypes:
def __init__(self):
self.INPUT = 0
self.HIDDEN = 1
self.OUTPUT = 2
def get_repr(self, type_id: int):
return ['INPUT', 'HIDDEN', 'OUTPUT'][type_id]
node_types = NodeTypes()
| [
"32605822+JunhoYeo@users.noreply.github.com"
] | 32605822+JunhoYeo@users.noreply.github.com |
c0659028d4ace55fd4c78abd86052a13c0bc6824 | 149b97574e4cfd57d48295fa94b6dacf205a77f4 | /bin/csscombine | e6697d8b6f272c6f3ef025959d7f3cd4fe42f388 | [] | no_license | wraithan/zamboni-lib | e347b2ee1ab2f37e6a30cbcc522e26f2611f3691 | 2a5013afb39a7970d60f161d570dad92238c67bd | refs/heads/master | 2021-01-18T19:46:52.837975 | 2012-09-27T23:59:42 | 2012-09-27T23:59:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | #!/Users/jeff/.dotfiles/.virtualenvs/newz/bin/python2.6
# EASY-INSTALL-ENTRY-SCRIPT: 'cssutils==0.9.7b3','console_scripts','csscombine'
__requires__ = 'cssutils==0.9.7b3'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('cssutils==0.9.7b3', 'console_scripts', 'csscombine')()
)
| [
"jbalogh@mozilla.com"
] | jbalogh@mozilla.com | |
e32501e632de4af625fe75cc3246a166456f0446 | ab4491a86039d873fb3a3e2d7567f700fc920074 | /r_2_project/r_2_project/settings.py | 5ccc09ad296862851e68288a40ea89c19a19b08d | [] | no_license | cs-fullstack-2019-spring/django-review2-templates-cw-Joshtg1104 | d89c640a129a6c961d9158532ff8fdca61099bc4 | 606df2721967576ec8d5cc91c3630d6b4dd8c761 | refs/heads/master | 2020-04-25T12:15:34.416541 | 2019-03-01T23:39:07 | 2019-03-01T23:39:07 | 172,772,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | """
Django settings for r_2_project project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
... | [
"joshtg1104@gmail.com"
] | joshtg1104@gmail.com |
5268fe9cb03c5cfbc5cfdb88100e2c8a97791bba | a28a3665af439ad3d9f401d180856b0489341ffd | /variable_poisson_test.py | 1d9a236ce78306a6a9a0229d82431066cd1fe08a | [] | no_license | Jegp/spike_conv_nets | c75f8bfc8f977ed94e4bc8d6d37cd02ac65b5961 | c11b469b6d7896d787c77dca789be26f3d3d98b4 | refs/heads/master | 2023-06-24T03:20:16.378273 | 2021-07-16T17:20:43 | 2021-07-16T17:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | import spynnaker8 as sim
import numpy as np
import matplotlib.pyplot as plt
sim.setup(timestep=1.)
np.random.seed(13)
n_neurons = 10
n_changes = 5
duration = 100.0 # ms
rate = 100.0 # hz
rates = np.zeros((n_neurons, n_changes))
n_per_change = n_neurons // n_changes
for i in range(n_changes):
s = i * n_per_chang... | [
"chanokin@gmail.com"
] | chanokin@gmail.com |
4719103af69a4c3cf9138cad6914a95b7cbcab47 | 78be2d943509d2aac34e9de3cb85c6ed95706333 | /ras_backstage/decorators/jwt_decorators.py | b67727f53365ae8a863a49c50c260c62b113edc8 | [] | no_license | uk-gov-mirror/ONSdigital.ras-backstage | 70a1016bc57eba3302c6e53c99be159d7df7bf2d | a173984dddb466210df500046f4e7b11ec4bb679 | refs/heads/master | 2021-09-15T21:47:09.274789 | 2018-06-08T09:33:11 | 2018-06-08T09:33:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | from functools import wraps
import logging
from structlog import wrap_logger
from ras_backstage.exception.exceptions import NoJWTError
logger = wrap_logger(logging.getLogger(__name__))
def get_jwt(request):
def extract_session(original_function):
@wraps(original_function)
def extract_session_w... | [
"noreply@github.com"
] | uk-gov-mirror.noreply@github.com |
ce456148ab5569f96da64f5b2b27e3ae1eaa97e8 | 7c0136323c67478932784a46c6fe15483bef50a3 | /gwcs/tags/selectortags.py | e0c73e78a6b0ad3c49106db8d198880d161e1ad5 | [] | no_license | bsipocz/gwcs | e770aef150e722bfcd7eaec5bffc5fbe50f216af | bbc305e88174a11b3d197b82023a72ec99774ae3 | refs/heads/master | 2022-10-10T19:01:00.342140 | 2015-10-08T13:31:29 | 2015-10-08T13:31:29 | 45,719,996 | 0 | 0 | null | 2015-11-07T02:55:54 | 2015-11-07T02:55:54 | null | UTF-8 | Python | false | false | 5,120 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# -*- coding: utf-8 -*-
from __future__ import absolute_import, division, unicode_literals, print_function
import numpy as np
from numpy.testing import assert_array_equal
from astropy.modeling import models
from astropy.utils import OrderedDict
from astr... | [
"nadia.dencheva@gmail.com"
] | nadia.dencheva@gmail.com |
5ddb4f8411e34f2e6c5ffb388b0ec08b54d25d7a | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-8717.py | 43415ac2bdfce7b4bd017c8cbf3206a172d020d1 | [] | 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 | 31,758 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
7668efd69f8bf91a8ac6079a8bb02e84d2b62e28 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Hebr.HEB/Sun-ExtA_16/pdf_to_json_test_Hebr.HEB_Sun-ExtA_16.py | cce0ed95727e1941254c68573ed061d48457f1e6 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Hebr.HEB/Sun-ExtA_16/udhr_Hebr.HEB_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
db1921d3478d2e8cde389c8155bd8a9d47b41177 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_8/hrdtim002/question1.py | 807ac77ab8cac575e7d4a6c43d33adaec2f0a04a | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | """program to check for palindromes using recursion
Tim Hardie
9 May 2014"""
def check_palin (str_input):
if len (str_input) > 1:
if str_input[0] == str_input[-1]:
check_palin (str_input[1:-1])
else:
print ("Not a palindrome!")
elif len (str_input) == 1:
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
0888a3ef7d95ba3b84f923da1f6ed33432834430 | 05f8bb5289d3056ad7e4e20f05cfc98294838a1c | /qnarre/models/old/transfo-xl/model.py | 08e129f0be7235c8daa324296ca57101ad64970b | [
"MIT"
] | permissive | quantapix/qnarre | 72fc18d605dfa5db8a056016a7e5cbb2b19ad2da | a37ccb61338ce3d733c0f0ec1c9d40000b93132d | refs/heads/main | 2023-08-30T23:25:16.401972 | 2023-08-29T00:43:52 | 2023-08-29T00:43:52 | 178,420,195 | 2 | 0 | Apache-2.0 | 2021-09-27T21:56:01 | 2019-03-29T14:26:31 | Python | UTF-8 | Python | false | false | 28,134 | py | import torch
from torch import nn
from torch.nn import functional as F
from ... import core as qc
CUDA_MAJOR = int(torch.version.cuda.split(".")[0])
CUDA_MINOR = int(torch.version.cuda.split(".")[1])
class Positional(qc.Module):
pass
class Positionwise(qc.Module):
pass
class Attention(qc.Module):
h... | [
"quantapix@gmail.com"
] | quantapix@gmail.com |
40076b43779f6aebbd369738ef11e6d0f116568c | fa44abffdfe00e5a44fffe6610dce25a325ee93e | /instagram_clone/images/serializers.py | dd542db9b1a7c9869aac9e439faf07891b3b29bf | [
"MIT"
] | permissive | devjinius/IG_clone | e539e44318cdf9baf5137057a0c671e8748c36bf | 6a525524ec357d5617b09e013b449df2ec9336ad | refs/heads/master | 2020-03-21T08:55:23.803771 | 2018-12-07T13:55:25 | 2018-12-07T13:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | # python object를 json으로 변형해주는 것이 serializers
from rest_framework import serializers
from . import models
from instagram_clone.users import models as user_model
from taggit_serializer.serializers import (TagListSerializerField, TaggitSerializer)
class SmallImageSerializer(serializers.ModelSerializer):
class Meta:... | [
"eugenekang94@gmail.com"
] | eugenekang94@gmail.com |
b6002e9a8d96c9b8c7a56c6f452db01d338576f2 | 8ac38a6a88702da5d1f5597e73575dcb4587a8cd | /tsmtool/__main__.py | 96967c5f4f12b20adb16a7ecdd8ef7ad383d81b5 | [
"MIT"
] | permissive | rstms/tsmtool | c7446e7aad7842d09cd397c0b207a5df27340d6b | 97ce28e398185d983a96dc2787274946bfab5553 | refs/heads/master | 2022-12-25T19:14:59.954568 | 2022-03-28T13:27:00 | 2022-03-28T13:27:00 | 203,674,425 | 0 | 0 | MIT | 2022-12-08T14:08:59 | 2019-08-21T22:39:44 | Python | UTF-8 | Python | false | false | 75 | py | # tsmtool main module
import sys
from tsmtool import cli
sys.exit(cli())
| [
"mkrueger@rstms.net"
] | mkrueger@rstms.net |
a2f5ddf82acb526d60313946ea9d4bc85ad0e77e | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/tensorflow/contrib/kfac/python/ops/optimizer.py | f01c5a832212f88d80529672b652ca04d45c0f0e | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 33,302 | py | # Copyright 2017 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 applica... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
48c9e3c5942973b2fbc895ea878a1b2edfe51d77 | d9b41609de019c5d01ee12f4be77910d4ea0c1aa | /neurodsp/tests/test_sim_periodic.py | 52aac2a11f420c304e83a22a3381bf32e7a332c2 | [
"Apache-2.0"
] | permissive | josepfont65/neurodsp | ec2dcefd605baab62ee42f0589671467b0b331c9 | a7c5b72665eed6368e29bf4f15443a28a2e18732 | refs/heads/master | 2020-12-04T14:53:10.230006 | 2019-12-19T18:10:18 | 2019-12-19T18:10:18 | 231,808,080 | 1 | 0 | Apache-2.0 | 2020-01-04T18:15:34 | 2020-01-04T18:15:33 | null | UTF-8 | Python | false | false | 762 | py | """Test periodic simulation functions."""
from neurodsp.tests.utils import check_sim_output
from neurodsp.tests.settings import FS, N_SECONDS, FREQ1
from neurodsp.sim.periodic import *
from neurodsp.sim.periodic import _make_is_osc
#####################################################################################... | [
"tdonoghue@ucsd.edu"
] | tdonoghue@ucsd.edu |
218783806824b811097f1acc503aa2df030df34e | 1bb42bac177fb4e979faa441363c27cb636a43aa | /personalization_benchmark/cross_device/algorithms/hypcluster_utils_test.py | c627d6cf6ce4600243368b8bc34835a25dadd783 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | google-research/federated | a6040e80fa0fbf533e0d665c66a9bc549d208b3d | 329e60fa56b87f691303638ceb9dfa1fc5083953 | refs/heads/master | 2023-08-28T13:10:10.885505 | 2023-08-22T23:06:08 | 2023-08-22T23:06:40 | 295,559,343 | 595 | 187 | Apache-2.0 | 2022-05-12T08:42:53 | 2020-09-14T23:09:07 | Python | UTF-8 | Python | false | false | 11,745 | py | # Copyright 2022, Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8de5f962dcb452320096dc21a032ba26b2db1a16 | 368be25e37bafa8cc795f7c9f34e4585e017091f | /.history/app_fav_books/views_20201115150328.py | 3fc74d4417b8348ea09c322a0e561a86bd596edf | [] | no_license | steven-halla/fav_books_proj | ebcfbfda0e7f3cdc49d592c86c633b1d331da513 | 512005deb84ac906c9f24d4ab0939bd0db096716 | refs/heads/master | 2023-03-30T09:37:38.016063 | 2021-04-02T20:27:22 | 2021-04-02T20:27:22 | 354,125,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,171 | py | from django.shortcuts import render, redirect
from .models import *
from django.contrib import messages
# contains user signup + login form
def view_index(request):
return render(request, "index.html")
# user signup form will post to a url (/register) which maps to this function
def register_new_user(request):
... | [
"69405488+steven-halla@users.noreply.github.com"
] | 69405488+steven-halla@users.noreply.github.com |
f33616691b4813fa64178cd163d3784ab0f63d80 | f788498e9707fde500c3a6c8ddbe880fe78cc390 | /main.py | 6977e76c3a7634fafb0319419a7b4f93d88a42d2 | [] | no_license | codigofacilito/deployfastapi | c41d3778e09cc9ce5342e195ada04ff0115c4cd3 | 078e4f6f44e8e71ec375e1b19fa278eebf59e669 | refs/heads/master | 2023-06-25T15:04:12.421396 | 2021-07-16T00:58:31 | 2021-07-16T00:58:31 | 386,465,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from fastapi import FastAPI
app = FastAPI()
@app.get("/ping")
async def root():
return {"message": "pong"} | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
fe774970749bfe5c171952c529eb9429f330e2d3 | 685fa2cb16ff8bce96b603dee8117ed3e9a1adcb | /keras-gradient-tape/gradient_tape_example.py | b740ec82a1cbb9d6cc6e523a6e2e19689565d22d | [] | no_license | albertofernandezvillan/pyimagesearch | 352ec1ec678cb628524c476fdcc86c22238a1a2f | 8c87e6c5d218e42a8864778c032c0fd20261bcdd | refs/heads/master | 2023-02-27T22:02:25.581660 | 2021-02-08T15:15:15 | 2021-02-08T15:15:15 | 338,087,397 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,820 | py | # -----------------------------
# USAGE
# -----------------------------
# python gradient_tape_example.py
# -----------------------------
# IMPORTS
# -----------------------------
# Import the necessary packages
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import BatchNormalization
f... | [
"silva.mfpedro@gmail.com"
] | silva.mfpedro@gmail.com |
9d7cafe758f1a997535dba4b4514fb681bd3dd1e | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_14925.py | 1d413e8b67c3b093a7f6344e9fe3399791ddb594 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # Importing JSON into CodeIgniter
$result is the json string for example
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
d30004da33c7f1178e968db895dfb299855397aa | a39ed5db6c75c9ae1f5e05118794c64102dc5f7a | /2021/15_2/solution_test.py | 747664ac87c240e1768aa50e9a615c2466bfabda | [
"MIT"
] | permissive | budavariam/advent_of_code | b656d5caf5d05113b82357754eb225e61e89ac0d | 635be485ec691f9c0cdeb83f944de190f51c1ba3 | refs/heads/master | 2022-12-25T18:12:00.981365 | 2022-12-20T08:20:51 | 2022-12-20T08:20:51 | 114,570,426 | 1 | 1 | MIT | 2022-12-09T09:29:06 | 2017-12-17T21:36:00 | Python | UTF-8 | Python | false | false | 426 | py | """ Advent of code 2021 day 15 / 2 """
import unittest
from solution import solution
class MyTest(unittest.TestCase):
"""Unist tests for actual day"""
def test_basic(self):
""" Test from the task """
self.assertEqual(solution("""1163751742
1381373672
2136511328
3694931569
7463417111
13191281... | [
"budavariam@gmail.com"
] | budavariam@gmail.com |
ebf932cbad6a641b6ab098118e7e492b307a4f14 | 6d2a37dd3540c00b0fd426a77f75c70078a48fa1 | /backend/young_block_26282/settings.py | 54d3efb27abcb8ca0f9508b4b37715912b8692d0 | [] | no_license | crowdbotics-apps/young-block-26282 | 7ecab4c744252898e683d024ed6efeded7b306aa | 9e309db25d89505ab9ca590e01640076c6898e89 | refs/heads/master | 2023-04-18T19:30:00.395260 | 2021-05-06T21:00:38 | 2021-05-06T21:00:38 | 365,036,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | """
Django settings for young_block_26282 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a9e82798443b853ac00c1ea8d220208411f9df71 | 30dfa9cea355bcfa7b2eb8210aa8326cbf9dcb97 | /code/pysubs/old_progs/rot_matrix_mini.py | b02d984e9f6b2f96a59215aa7f3993ec105aaa2d | [] | no_license | craiglagegit/Bullet_Cluster | e96e9088f2cf90db54ad1e756cdd28c7a2609b4a | 685555c137d726a86ad02a968e1442ab0c6123f0 | refs/heads/master | 2021-04-29T18:56:08.548631 | 2018-02-16T15:42:39 | 2018-02-16T15:42:39 | 121,702,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | #!/usr/bin/env python
#Author: Craig Lage, NYU;
#Date: 9-Sep-11
#This program looks at a matrix of rotation angles on a databse with an IP of 4 kpc
import lageconfig # system specific path information
import sys
sys.path.append(lageconfig.bulletpath)
import pysubs_mhd_new as pysubs
from pylab import *
#*********... | [
"cslage@ucdavis.edu"
] | cslage@ucdavis.edu |
65942f14d80a42dcc872cdf06b41d8caabfbd5ee | c3ff891e0e23c5f9488508d30349259cc6b64b4d | /python练习/网络编程练习/线程/03-线程的执行顺序.py | 7f9ef178bb1cef9263c6c5ce775b3b287d6fd41d | [] | no_license | JacksonMike/python_exercise | 2af2b8913ec8aded8a17a98aaa0fc9c6ccd7ba53 | 7698f8ce260439abb3cbdf478586fa1888791a61 | refs/heads/master | 2020-07-14T18:16:39.265372 | 2019-08-30T11:56:29 | 2019-08-30T11:56:29 | 205,370,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | import threading
import time
class MyThread(threading.Thread):
def run(self):
for i in range(3):
time.sleep(1)
msg = self.name + "@" + str(i)
print(msg)
def main():
for i in range(5):
t = MyThread()
t.start()
if __name__ == '__main__':
main()
# 线程执... | [
"2101706902@qq.com"
] | 2101706902@qq.com |
d25fe561a1c263f515caf6af80bc45959e671caf | 1bde114a847c629701e3acd004be5788594e0ef1 | /Examples/Py4Prog/a_package/module1.py | 6ac4738d64a2335d646745cd0bee18977b778abc | [] | no_license | BruceEckel/ThinkingInPython | 0b234cad088ee144bb8511e1e7db9fd5bba78877 | 76a1310deaa51e02e9f83ab74520b8269aac6fff | refs/heads/master | 2022-02-21T23:01:40.544505 | 2022-02-08T22:26:52 | 2022-02-08T22:26:52 | 97,673,620 | 106 | 33 | null | 2022-02-08T22:26:53 | 2017-07-19T04:43:50 | Python | UTF-8 | Python | false | false | 96 | py | # Py4Prog/a_package/module1.py
def function1():
return "function1 in module1 in a_package"
| [
"mindviewinc@gmail.com"
] | mindviewinc@gmail.com |
19272508e23d6510681cf94702628ad535eae7e4 | 4581a822e8b41b0d8497a41745a45270f2336fb3 | /palettes/grey_60.py | 7993c773e76cb18cf874c47a144bae957bcf129b | [] | no_license | jw-git-examples/formatting-conflicts-limestone | 415564ba269c2f953a54e02532f9ffde7db9d9e9 | 068240820eafa1f7aaf16c40273366dd25953dd7 | refs/heads/master | 2021-05-16T21:34:32.634146 | 2020-03-27T17:15:38 | 2020-03-27T17:31:03 | 250,478,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | import common_color_config
# average JetBrains, VScode and Sublime bg lightness; moderate contrast
name = "Monochrome grey 60"
background = (15, 0, 0)
foreground = (75, 0, 0)
shades = common_color_config.shades_lightness
| [
"jan.warchol@gmail.com"
] | jan.warchol@gmail.com |
fc791e81ad12dd63c10cdac9b0efc0ac8b0dd4ad | bc4656f6f74911f114626538294e0e275105c703 | /tests/elftosb/test_elftosb_trustzone.py | bf3c4b9348c394655269166b2e2d3b44324beb3a | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AdrianCano-01/spsdk | d8679ae58fc67c6369bceff4b31db658d9ad6bc4 | 4a31fb091f95fb035bc66241ee4e02dabb580072 | refs/heads/master | 2023-03-15T00:37:07.419191 | 2021-03-05T16:33:50 | 2021-03-05T16:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2020 NXP
#
# SPDX-License-Identifier: BSD-3-Clause
"""Test Trustzone part of elftosb app."""
import os
import filecmp
from click.testing import CliRunner
from spsdk.apps import elftosb
from spsdk.utils.misc import use_working_directory
def test_elftosb_tr... | [
"maria.wisniewska@nxp.com"
] | maria.wisniewska@nxp.com |
e4e27e4a4ec4e460ba6e1dc6fd8077e080271b4b | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/k_n.py | 81ed0afa4504ee27b0c149edef11e8fd9973482d | [] | 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 | 486 | 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 |
a6cb9dc023f493c0851a89646cbed15ce944c1a3 | 5a1eff241b9e9c2504fcc6762899d90993dcec3a | /aliyun/service/aliVpc.py | d429c550918de73afa006336452843c07f6fcbb9 | [] | no_license | P79N6A/AutoCmdb | 58cfabae9c5955427a51c291056b1a6c1a224801 | d0afe1ec1f7122b4ddc7d5dcb70627190e0a10e0 | refs/heads/master | 2020-04-13T04:42:54.346089 | 2018-12-24T08:27:34 | 2018-12-24T08:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,993 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: jerry
@contact: wangqiyuan@blhcn.com
@file: aliVpc.py
@time: 2018/11/27 10:27
@desc:
'''
import json
import os
import wrapt
from aliyunsdkcore import client
from aliyunsdkvpc.request.v20160428 import DescribeVpcsRequest,DescribeVpcAttributeRequest,DescribeVRoutersReq... | [
"1209394579@qq.com"
] | 1209394579@qq.com |
75dd18a9f659149830a1213c1aa2f69044258dc9 | 0c962a1d78075996ffc0cc271760a3ebe1713b17 | /migakuDictionaryPlus/pynput/_util/win32.py | e650d72e7cca8818ef1e62cb26e84ae8bf4c4554 | [] | no_license | dmgerman/anki-addons | 835669a0bebc757e93ebffa3657f7192b4515897 | 69c3114687cc0f37b76af2b44b09c40dad58e17e | refs/heads/main | 2023-09-04T16:24:34.756996 | 2021-10-11T18:16:45 | 2021-10-11T18:16:45 | 415,765,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,142 | py | # coding=utf-8
# pynput
# Copyright (C) 2015-2018 Moses Palmér
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later ve... | [
"dmg@turingmachine.org"
] | dmg@turingmachine.org |
e54974114972f64e33090d37d36a14c304e0645d | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /ddff/CookGHP.py | 9c6da47f09229a5ea198135c01eecfa53d174311 | [] | 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 | 1,075,061 | py | vect = [0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0, 0.0... | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
7f669845c9630c1488d723f1b3b4f8048ef225c0 | 24f2deae78a3f5fa8b5b3a53baff5637e0ea80ff | /sinoera/dizhi/shen1.py | 18752133a50d5ba9b805e03e92251ebc9e77f26e | [
"Apache-2.0"
] | permissive | sinotradition/sinoera | 02b979a7dbca81594eed8862fa86671856b91e2e | 1e93482c0a56a8917bc7ceebeef5b63b24ca3651 | refs/heads/master | 2021-01-10T03:20:20.231752 | 2015-12-14T15:13:42 | 2015-12-14T15:13:42 | 47,981,945 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | #!/usr/bin/python
#coding=utf-8
'''
@author: sheng
@contact: sinotradition@gmail.com
@copyright: License according to the project license.
'''
NAME='shen1'
SPELL='shēn'
CN='申'
SEQ='9'
if __name__=='__main__':
pass
| [
"smlh.sheng@gmail.com"
] | smlh.sheng@gmail.com |
aa294b37f93e998bccca23b52be56528fc121b23 | 0466a5dc950f4e89d8696329b89aa50246c7e7e3 | /test/scipy.csd_test.py | 81608a35e0096f0ff436ba9c461743f60e82817b | [] | no_license | HansInM36/ppcode | 00bc94e6177b8110681127514517f277d7a7b07a | e5fe9de8ddf2991f2fe95bde38045ee02bbcfe10 | refs/heads/master | 2023-07-19T03:42:38.667878 | 2021-09-30T22:59:48 | 2021-09-30T22:59:48 | 313,005,222 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | import sys
sys.path.append('/scratch/ppcode/sowfa/src')
sys.path.append('/scratch/ppcode')
import numpy as np
import scipy.signal
import funcs
import matplotlib.pyplot as plt
N = int(1800)
x = np.random.rand(N)
# noise
alpha = 1
w = np.random.rand(N) * alpha
y = 0*x + 2 + w
fs = 0.5
nperseg_ = 128
freq, Pxx = sc... | [
"xni001@gfi3104118.klientdrift.uib.no"
] | xni001@gfi3104118.klientdrift.uib.no |
5b471db36bd8d290e580839e915b9b819f742552 | 6ba377d55d0442ca13cc3e577bfe698c7f51bf54 | /NewType/Eddid_CRM/Commons/Modify_xls.py | 99e77bdb756f2eb556d1fba4b52b031c524f35d9 | [] | no_license | sevencrime/NewType | 92fc2f3efe6386334b973b190f42b61db5a58194 | 125add626e485323d17745bbe629aaabd523fa62 | refs/heads/master | 2021-07-14T02:08:12.329876 | 2019-07-16T02:25:45 | 2019-07-16T02:25:45 | 170,979,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2019-02-19 17:41:50
# @Author : Onedi (Onedi@qq.com)
# @Link : ${link}
# @Version : $Id$
from openpyxl import load_workbook
from xlutils.copy import copy
import os
import random
class Modifyxls():
def __init__(self, file_url):
self.path = fil... | [
"onedi@qq.com"
] | onedi@qq.com |
c2cc8a6c3e699641b2edecee5969456d7e6b7af4 | 9c1c714e1b2f0b8e2c16b55e5f9693a123953f20 | /Data_Structures/Graph/Old/traversal.py | 06cb9f51bb5bc9b72412b14ef01ea04147242dd4 | [] | no_license | ekeilty17/Personal-Projects-In-Python | a20f3af44a07b2193b447d022384783f7a0f512a | f8787407cbf9df2a0aa690fb396d933add1520e8 | refs/heads/main | 2023-04-24T10:23:50.074366 | 2021-05-15T21:51:20 | 2021-05-15T21:51:20 | 367,668,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,481 | py | class queue:
def __init__(self):
self.store = []
#had to rename the queue functions
def push(self, val):
self.store += [val]
#so that it works generally
def pop(self):
if self.store == []:
return False
r = self.store[0]
self.store = self.store[1:... | [
"epkeilty@hotmail.com"
] | epkeilty@hotmail.com |
8eb2319a38d264c5e042c431bd3dc55f5ff351d7 | 597c4f48332251552a602122bb3d325bc43a9d7f | /etc/lecture/basic/04_짝수_홀수_분리.py | eb46edb53b22a78efa763765aaa89d7e44752810 | [] | no_license | Kyeongrok/python_algorithm | 46de1909befc7b17766a57090a7036886361fd06 | f0cdc221d7908f26572ae67b5c95b12ade007ccd | refs/heads/master | 2023-07-11T03:23:05.782478 | 2023-06-22T06:32:31 | 2023-06-22T06:32:31 | 147,303,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | list = [3, 8, 9, 5, 4, 2]
odds = []
evens = []
for item in list:
if(item % 2 == 1):
odds.append(item)
else:
evens.append(item)
print("odds:", odds)
print("evens:", evens)
| [
"kyeongrok.kim@okiconcession.com"
] | kyeongrok.kim@okiconcession.com |
b52a6d334b834d5ace7fac96f8e438bb9291e5dd | 4dade4f29881e99d8602144744e09ed870bd1034 | /Python/other/comb_subst.py | 5fa89bb08c76630fa6b512ac12ad6a846451c9c7 | [] | no_license | alexbaryzhikov/codebase-archive | 9795347c19a82c098983c6d0fe4959c3162ca868 | c78c189002a26296a552f30078578cc0cf72e426 | refs/heads/master | 2023-02-19T21:54:21.310865 | 2021-01-11T15:47:50 | 2021-01-11T15:47:50 | 106,846,461 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | s = '*//*/'
subst = {'*':['у', 'при'], '/':['под', 'на']}
for i in range(2**len(s)):
res = []
for l in s:
res.append(subst[l][i&1])
i >>= 1
print('(в е ({} А ({} К Р))) ({} ({} (к П А) Т) ({} Е Т)) !'.format(*res))
| [
"aleksiarts@gmail.com"
] | aleksiarts@gmail.com |
513b380ec66ddb8b8b42ff7f9aa214c12c9d44d1 | 414239752b2bfc4cb3a947474f2662af7588b6eb | / protobufeditor/Tests/MarathonTests/TestCases/Compare/Cmp2Layoutst16.py | b5d14bc14002f6b3fbad04bc160b4097f5017e30 | [] | no_license | dtracers/protobufeditor | 8c7f9671c3b3a7d1cd3094321d030f6e6afcc7e8 | b65d06bce93165eebf9798c533e2447a5992d384 | refs/heads/master | 2020-12-24T19:28:22.486207 | 2016-04-19T23:41:57 | 2016-04-19T23:41:57 | 56,340,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | useFixture(default)
def test():
from Modules import commonBits
java_recorded_version = '1.6.0_0'
if window('Protocol Buffer Editor'):
select_menu('Utilities>>Compare Menu')
click('*2')
select('FileChooser', commonBits.sampleDir() + 'protoStoreSales3_Compare2.bin')
click('Right')
select('Tabbed... | [
"bm_tas@yahoo.com.au"
] | bm_tas@yahoo.com.au |
0f3f2a9c607f24ff9189d94f2e4bae6806bf49ef | c0c25fff5f5d900e256cff9bf43fade47043ab2f | /cart/migrations/0001_initial.py | 425cf8efe8fc147abc40ecf592ec2227d54aeb7e | [] | no_license | souleymanediallo/shoppy | fe6bed8467f4d4889659721ed7fa680f71737354 | 412b541bb6871da18fbd69e5ff26ff04cc2eb461 | refs/heads/master | 2020-07-28T05:22:23.723541 | 2019-09-19T13:31:05 | 2019-09-19T13:31:05 | 209,321,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | # Generated by Django 2.2.5 on 2019-09-19 11:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Cart... | [
"souleymanedialloo@yahoo.fr"
] | souleymanedialloo@yahoo.fr |
2fcbfe067e5fed8f7fa898937c3e8959c749b6dd | 3ff660941132bcaed5bfe309861843bd6657ee37 | /LinkedList/Detect Loop.py | 91810296a4d47fc50720253094bd946cf1664a5d | [] | no_license | mrunalhirve12/Interviews2 | 04295cebe1946de1f310857d7fbded11a02f8eb1 | c48bd0a4e1112804da8bdf2d7e43ab0f2ef00469 | refs/heads/master | 2023-03-26T14:35:06.029701 | 2021-03-25T21:31:46 | 2021-03-25T21:31:46 | 351,593,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def push(self, data):
new_node = Node(data)
new_node.next = self.head
self.head = new_node
def detectLoop(self):
slow_... | [
"mrunalhirve@gmail.com"
] | mrunalhirve@gmail.com |
137b0162e9bbacef3d7f832e1e51873a2d849f2e | 398009b075a10c0653bdf1c3013240b2de656e0d | /podcasts/admin.py | 58b9e7bf3a809a6213c840faef4ba857f3ff0e55 | [
"Apache-2.0"
] | permissive | AliHabes/pinecast | c930040c04bafca4ccbaa2be82e20600a8fdd9e8 | 1eae5bfc2ef6d466ccbe170fd829cbff98332833 | refs/heads/master | 2021-01-18T17:54:26.443918 | 2017-03-29T16:51:47 | 2017-03-29T16:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,923 | py | from django.contrib import admin
from .models import Podcast, PodcastEpisode, PodcastCategory
from dashboard.models import Collaborator
class PodcastCategoryInline(admin.TabularInline):
model = PodcastCategory
fk_name = 'podcast'
readonly_fields = ('category', )
extra = 0
def get_fields(self, re... | [
"me@mattbasta.com"
] | me@mattbasta.com |
016ae86aad6c6e19a54493723d905b567cc55a6d | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/numpy/vectorize_lambda.py | de6b5bc8ccf9ce4c16560706be315d3171913214 | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 231 | py | import numpy as np
animals = np.array(['Cow', 'Elephant', 'Snake', 'Camel', 'Praying Mantis'])
print(animals)
longer_than_5 = np.vectorize(lambda x: len(x) > 5)
long_animals_bool = longer_than_5(animals)
print(long_animals_bool)
| [
"gabor@szabgab.com"
] | gabor@szabgab.com |
a4b941dcb569a9b94005bc22f6f70fd782f009cb | 47e964290f45472898859fc997a9d6806518f507 | /catkin_ws/devel/lib/python2.7/dist-packages/apriltags2_ros/msg/_AprilTagDetection.py | c581b9ca9e3fdf6cf985de44a9a776f360d16be7 | [] | no_license | jianhengLiu/ROS | 3623fefc80ac29d7037f40886861b6f2eb30ea40 | 53961dc736bcbf39553deef97da030deb40538a0 | refs/heads/master | 2020-06-11T10:11:31.540705 | 2020-01-12T11:05:39 | 2020-01-12T11:05:39 | 193,918,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | /home/chris/catkin_ws/devel/.private/apriltags2_ros/lib/python2.7/dist-packages/apriltags2_ros/msg/_AprilTagDetection.py | [
"943678231@qq.com"
] | 943678231@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.