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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0fbc5efe97124e98fc31e9a8ac8fb8c69185eb8f | 98420fdd66b8dce46ef88cd34fcace36777fa232 | /obsolete/py/logreg/nonlinear_cg.py | d638ea1131e453f55add6479b98188360c900d80 | [] | no_license | Daiver/jff | f972fe7464f78ba6008a036b697ea3f04b7010a4 | 33d6a781af8d7f6ae60c25e10051977af2fef1b9 | refs/heads/master | 2023-04-07T06:33:41.487938 | 2022-05-03T10:07:32 | 2022-05-03T10:07:32 | 12,180,634 | 1 | 1 | null | 2023-04-03T19:25:00 | 2013-08-17T15:03:14 | C++ | UTF-8 | Python | false | false | 2,049 | py | import numpy as np
import linesearch
def nonLinCG(func, grad, initialX, nIter):
x = initialX
r0 = -grad(x)
d0 = r0
gradLen = r0.shape[0]
curSteps = 0
for iter in xrange(nIter):
curSteps += 1
#alpha = linesearch.quadLineSearchIter(
#5, 0.00001, 0.0001, x, d0, grad... | [
"ra22341@ya.ru"
] | ra22341@ya.ru |
d66c873a607287eb0a30c82aefc37211defedc4d | ed54290846b5c7f9556aacca09675550f0af4c48 | /salt/salt/modules/ps.py | bc62b11abac02673a674029c114937e483096fb8 | [
"Apache-2.0"
] | permissive | smallyear/linuxLearn | 87226ccd8745cd36955c7e40cafd741d47a04a6f | 342e5020bf24b5fac732c4275a512087b47e578d | refs/heads/master | 2022-03-20T06:02:25.329126 | 2019-08-01T08:39:59 | 2019-08-01T08:39:59 | 103,765,131 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,306 | py | # -*- coding: utf-8 -*-
'''
A salt interface to psutil, a system and process library.
See http://code.google.com/p/psutil.
:depends: - psutil Python module, version 0.3.0 or later
- python-utmp package (optional)
'''
# Import python libs
from __future__ import absolute_import
import time
import datetime... | [
"5931263123@163.com"
] | 5931263123@163.com |
d4a36982621b4e47fd2f469d8c9e3939a3c7ea5e | 03c48a78ce3bda31bbeb1d0e85af6d56d252bddc | /bin/logic/BO/__init__.py | 0343e2023c8c2148acea53be8bb0ff3c00a512b1 | [] | no_license | windyStreet/python_data_statistics | bf7e0a3b24157550ff8d5d346597d7ee932a0ac7 | 5623f9f5ad9062039233c0f2b8e29848fcc15bac | refs/heads/master | 2021-01-20T02:37:20.806518 | 2017-06-09T10:27:41 | 2017-06-09T10:27:41 | 89,428,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | BASE_statistic_res = "statistic_res"
BASE_statistical_item = "statistical_item"
| [
"yq904276384@foxmail.com"
] | yq904276384@foxmail.com |
c49a3366869f240a88591a16171f85912531ef19 | b99b32fb0b4597bee94809ebd3b2ddae43064bee | /landmark_detection/menpofit/clm/__init__.py | 4fec6db002ccf5d5441b4403563a053bda94ebe0 | [] | no_license | HongwenZhang/ECT-FaceAlignment | c0129dc2aa20bc2bdba03a9ed1cabebcd5e5d848 | e94b446db73fca5ba751d6d9a81d42633208f228 | refs/heads/master | 2023-01-29T14:25:19.502350 | 2020-12-13T09:18:55 | 2020-12-13T09:18:55 | 111,511,579 | 31 | 19 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from .base import CLM
from .fitter import GradientDescentCLMFitter
from .algorithm import ActiveShapeModel, RegularisedLandmarkMeanShift
from .expert import (CorrelationFilterExpertEnsemble, FcnFilterExpertEnsemble,
IncrementalCorrelationFilterThinWrapper)
| [
"hongwen.zhang@cripac.ia.ac.cn"
] | hongwen.zhang@cripac.ia.ac.cn |
60d9e0d451482ce4ec684636a7e97aae7388e9ee | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/bgp/learnedroute.py | dd34ddef0142c7ceacb986d045cee05335610b46 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,841 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# 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,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
f3fcf8f91f0fd949a8c11936eec2e76ad1cdc0d7 | 26605ec8a8bdd64a45af7d444d097d9e2f832dc9 | /electrum_xazab/plugins/scan_over_gap/qt.py | 89ab97ee24ca59217792e82b0f14916d89401274 | [
"MIT"
] | permissive | nunumichael/electrum-xazab | b67f821fd4a19e924d8ad902f076223df9b7511f | f128c765f451b418a418f9cd8b8e24fd8f66df74 | refs/heads/master | 2023-05-05T05:30:03.935745 | 2021-05-26T19:12:47 | 2021-05-26T19:12:47 | 370,091,240 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,408 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import asyncio
from functools import partial
from PyQt5.Qt import Qt
from PyQt5.QtCore import QObject, pyqtSignal
from PyQt5.QtWidgets import (QGridLayout, QLabel, QSpinBox, QPushButton,
QTreeWidget, QTreeWidgetItem, QHeaderView,
... | [
"71531505+xazab@users.noreply.github.com"
] | 71531505+xazab@users.noreply.github.com |
9775bb5f936d4af199cf7fc5aa3c8750d2ef5547 | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421180237.py | 392c16248e60017f46b8d9db2c0cf22366f97902 | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,455 | py | # Jiaxi Zhang
# George McAlear
# If you run into an "[NSApplication _setup] unrecognized selector" problem on macOS,
# try uncommenting the following snippet
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import cozmo
import numpy as np
from numpy.linal... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
10c49e36a3733040248f87d8388adf44086acf6d | 1e508a8d3a491acfb7a58d7917bad6a1cd08aab1 | /ocdskingfisher/cli/commands/run.py | 2780206131c9aa7b6f200f2225379beaf5bbc8d9 | [
"BSD-3-Clause"
] | permissive | spendnetwork/kingfisher-scrape | fcbbd8fa5278bbc40b5517b70632de73b6831634 | 053910b278eed9b3e79ca2f05a04086300b8bc21 | refs/heads/master | 2020-05-20T17:13:35.846004 | 2019-11-19T06:51:19 | 2019-11-19T06:51:19 | 185,683,174 | 0 | 0 | BSD-3-Clause | 2019-05-08T21:42:05 | 2019-05-08T21:42:05 | null | UTF-8 | Python | false | false | 3,855 | py | import ocdskingfisher.cli.commands.base
import ocdskingfisher.sources_util
class RunCLICommand(ocdskingfisher.cli.commands.base.CLICommand):
command = 'run'
def __init__(self, config=None):
self.config = config
self.sources = ocdskingfisher.sources_util.gather_sources()
def configure_sub... | [
"james.baster@opendataservices.coop"
] | james.baster@opendataservices.coop |
a881e9229b13b365c7d06bed9b0336d131436f71 | 8b1aa2e61f1b41b8f75a0e94aa5f53fc801dc357 | /Python/maximum-distance-in-arrays.py | 4a24c82f43ddecd8279b927fc09b57c4b8d9a723 | [
"MIT"
] | permissive | aditya-AI/LeetCode | 539cae41f8b494ed39bec0a10c561f17c40dad38 | 0fe4a3c3a1d31230c9b5c931ff1e33584f1ccd4e | refs/heads/master | 2021-01-02T08:24:36.970321 | 2017-07-31T13:56:23 | 2017-07-31T13:56:23 | 99,005,326 | 5 | 1 | null | 2017-08-01T13:38:32 | 2017-08-01T13:38:31 | null | UTF-8 | Python | false | false | 1,328 | py | # Time: O(n)
# Space: O(1)
# Given m arrays, and each array is sorted in ascending order.
# Now you can pick up two integers from two different arrays (each array picks one)
# and calculate the distance.
# We define the distance between two integers a and b to be their absolute difference |a-b|.
# Your task is to fin... | [
"kamyu104@gmail.com"
] | kamyu104@gmail.com |
c335767482abc80f60cd1001ca1f8ca1c2cc765f | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/gen/view_models/views/lobby/premacc/piggybank_base_model.py | 6c977d428f53ef168370fd9f52f075809bda33f8 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 1,633 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/gen/view_models/views/lobby/premacc/piggybank_base_model.py
from frameworks.wulf import ViewModel
class PiggybankBaseModel(ViewModel):
__slots__ = ()
def __init__(self, properties=6, commands=0):
super(Pig... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
8558428dc9866e41b404653a6c5542655b4bfcfc | 159d4ae61f4ca91d94e29e769697ff46d11ae4a4 | /venv/lib/python3.9/site-packages/prompt_toolkit/key_binding/vi_state.py | 10593a82e6288ad9a157bba04e72661e880d3e25 | [
"MIT"
] | permissive | davidycliao/bisCrawler | 729db002afe10ae405306b9eed45b782e68eace8 | f42281f35b866b52e5860b6a062790ae8147a4a4 | refs/heads/main | 2023-05-24T00:41:50.224279 | 2023-01-22T23:17:51 | 2023-01-22T23:17:51 | 411,470,732 | 8 | 0 | MIT | 2023-02-09T16:28:24 | 2021-09-28T23:48:13 | Python | UTF-8 | Python | false | false | 3,360 | py | from enum import Enum
from typing import TYPE_CHECKING, Callable, Dict, Optional
from prompt_toolkit.clipboard import ClipboardData
if TYPE_CHECKING:
from .key_bindings.vi import TextObject
from .key_processor import KeyPressEvent
__all__ = [
"InputMode",
"CharacterFind",
"ViState",
]
class Inp... | [
"davidycliao@gmail.com"
] | davidycliao@gmail.com |
7000e234acfa2ecca481572aa5c2302dd89b9646 | b0f0473f10df2fdb0018165785cc23c34b0c99e7 | /Tools/Python/selenium-2.37.2/py/selenium/webdriver/remote/webelement.py | 95eb21084afb5a54e95d77960ba9362dada62c05 | [] | no_license | wimton/Meter-peach | d9294a56ec0c1fb2d1a2a4acec1c2bf47b0932df | af0302d1789a852746a3c900c6129ed9c15fb0f4 | refs/heads/master | 2023-04-25T22:54:31.696184 | 2021-05-19T13:14:55 | 2021-05-19T13:14:55 | 355,202,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,265 | py | # Copyright 2008-2013 Software freedom conservancy
#
# 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 ... | [
"wimton@yahoo.com"
] | wimton@yahoo.com |
f045587943372d8a259207ccd82edaa468953613 | 8a25ada37271acd5ea96d4a4e4e57f81bec221ac | /home/pi/GrovePi/Software/Python/others/temboo/Library/Box/Files/DownloadFile.py | 76b407e839ac439a4c20ae70900db1f6240c8bd1 | [
"MIT",
"Apache-2.0"
] | permissive | lupyuen/RaspberryPiImage | 65cebead6a480c772ed7f0c4d0d4e08572860f08 | 664e8a74b4628d710feab5582ef59b344b9ffddd | refs/heads/master | 2021-01-20T02:12:27.897902 | 2016-11-17T17:32:30 | 2016-11-17T17:32:30 | 42,438,362 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,494 | py | # -*- coding: utf-8 -*-
###############################################################################
#
# DownloadFile
# Retrieves the contents of a specified file.
#
# Python versions 2.6, 2.7, 3.x
#
# Copyright 2014, Temboo Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use ... | [
"lupyuen@gmail.com"
] | lupyuen@gmail.com |
790e7eb171f917eca8b75daf5bb8c255e365a672 | d8c3bd4bac8e19d71e87f721c2a4702e384eb685 | /tests/handlers/test_emailaddr.py | a2ae6e8d9d62b91df932b1fabd54cd86e0802efe | [
"MIT"
] | permissive | remcoboerma/Authl | 8f2b2cba0e5159ec0b469415d9d4a6f7150555b7 | 1e1f4e0500be25b61426c50c3192367cf0effc7a | refs/heads/main | 2023-08-28T02:14:00.063297 | 2021-10-14T20:20:08 | 2021-10-14T20:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,400 | py | """ Tests for email login """
# pylint:disable=missing-docstring
import logging
from authl import disposition, tokens
from authl.handlers import email_addr
from . import parse_args
LOGGER = logging.getLogger(__name__)
def test_basics():
handler = email_addr.EmailAddress(None, None, tokens.DictStore())
ass... | [
"fluffy@beesbuzz.biz"
] | fluffy@beesbuzz.biz |
84a54d88f7d38d8c85b43397ef42d1dd097a06d5 | ce0f8956c4c308c67bd700d31fe8d5a17b16ac08 | /Python3/src/15 Threading and Concurrency/MultiProcessing/05-sharing-state-using-pipes.py | b1e3550193886be92e3125e26cf78b7aef3064e4 | [] | no_license | seddon-software/python3 | 795ae8d22a172eea074b71d6cd49d79e388d8cc6 | d5e6db1509a25c1a3040d5ae82d757539a2ff730 | refs/heads/master | 2021-07-10T15:48:31.893757 | 2020-07-16T20:29:22 | 2020-07-16T20:29:22 | 175,872,757 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | ############################################################
#
# sharing state between processes
#
############################################################
import multiprocessing as mp
N = 20
def fn(connection, results, N):
for n in range(N):
results.append(n*n)
connection.send(results)
if __... | [
"seddon-software@keme.co.uk"
] | seddon-software@keme.co.uk |
893fab1cf48b44a1a717f23ed3e257b60fdaec80 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /McZF4JRhPus5DtRA4_8.py | 5cf5c4df707900be969ed7763295e7061f6a9041 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | """
Transcribe the given DNA strand into corresponding mRNA - a type of RNA, that
will be formed from it after transcription. DNA has the bases A, T, G and C,
while RNA converts to U, A, C and G respectively.
### Examples
dna_to_rna("ATTAGCGCGATATACGCGTAC") ➞ "UAAUCGCGCUAUAUGCGCAUG"
dna_to_rna("CGATAT... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b10689338c8fe9bae2a8bab3464158b39483a4e6 | f0181afd2eea9b086ce9487fb8d7fd949282140a | /ncbi/product_protein_seq.py | 5202a7a52dbb2c185fac59cd4b6857e3623f29ca | [
"MIT"
] | permissive | linsalrob/EdwardsLab | 4a571676859c8b7238e733a0d3ad98ceb2e83c63 | 3c466acc07f1a56b575860ad26c92f900b272a53 | refs/heads/master | 2023-08-20T17:13:35.466103 | 2023-08-17T09:17:36 | 2023-08-17T09:17:36 | 25,702,093 | 36 | 25 | MIT | 2020-09-23T12:44:44 | 2014-10-24T18:27:16 | Python | UTF-8 | Python | false | false | 1,140 | py | """
Extract the locus information, gene product, and translation from a genbank file
"""
import os
import sys
import argparse
from Bio import SeqIO
if __name__ == '__main__':
parser = argparse.ArgumentParser(description="Extract the locus information, gene product, and translation from a genbank file")
parse... | [
"raedwards@gmail.com"
] | raedwards@gmail.com |
7cfb52ce8dde90c5c4dfd516b5e220b99066792d | 63bacb52d016cf7a237dacd79ba2861842c49ca9 | /zuora_client/models/credit_memo_unapply_invoice_item_request_type.py | 9f2fe81059b5e3942742a9926bab5a9211ac28b2 | [] | no_license | arundharumar-optimizely/zuora-client-python | ee9667956b32b64b456920ad6246e02528fe6645 | a529a01364e41844c91f39df300c85c8d332912a | refs/heads/master | 2020-07-05T23:09:20.081816 | 2019-07-30T21:46:47 | 2019-07-30T21:46:47 | 202,811,594 | 0 | 0 | null | 2019-08-16T23:26:52 | 2019-08-16T23:26:52 | null | UTF-8 | Python | false | false | 47,165 | py | # coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST A... | [
"brian.lucas@optimizely.com"
] | brian.lucas@optimizely.com |
ac0f42eac7171b440802678af175d2cde73c0016 | 328afd873e3e4fe213c0fb4ce6621cb1a450f33d | /W3School/SearchandSorting/4.py | 725a50b72b117040dbec1999d45747df6ffd7017 | [] | no_license | TorpidCoder/Python | 810371d1bf33c137c025344b8d736044bea0e9f5 | 9c46e1de1a2926e872eee570e6d49f07dd533956 | refs/heads/master | 2021-07-04T08:21:43.950665 | 2020-08-19T18:14:09 | 2020-08-19T18:14:09 | 148,430,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | def bubble(arr):
for i in range(0,len(arr)):
for j in range(0,len(arr)-i-1):
if(arr[j]>arr[j+1]):
arr[j],arr[j+1] = arr[j+1],arr[j]
return arr
arr = [14,46,43,27,57,41,45,21,70]
print(bubble(arr))
| [
"sahilexemplary@gmail.com"
] | sahilexemplary@gmail.com |
5dda6f74cdb6d17620d1222030e998748d74087e | 3b2ead608d71da663af69f8260d9b05312a10571 | /Lesson_3/lesson3_6.py | eb119d846411f5370e7efa10885444adf3aa5d1e | [] | no_license | ddobik/Introduction-Python | 938f5c7dff0d51d0fe33c4ee1484747b27203805 | 1025e2c320671908595f6fccc16990756af9b6c4 | refs/heads/main | 2023-07-20T17:34:09.910739 | 2021-08-19T14:38:37 | 2021-08-19T14:38:37 | 376,647,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | x1 = int(input('Enter x1:'))
y1 = int(input('Enter y1:'))
x2 = int(input('Enter x2:'))
y2 = int(input('Enter y2:'))
if abs(x1 - x2) == 1 and abs(y1 - y2) == 2:
print('Yes')
elif abs(x1 - x2) == 2 and abs(y1 - y2) == 1:
print('Yes')
else:
print('No')
| [
"you@example.com"
] | you@example.com |
2047adcb0b6e70a58b42333cf77af87aa957ccad | ec4707af55a84914b9304d2a7ec2d89e79219b03 | /backend/home/migrations/0001_load_initial_data.py | c02063f882fbc83fcc8371b54075d30fa27d1502 | [] | no_license | crowdbotics-apps/billsengine-31836 | a8565f4ae4611d07d3254c48fc699b35ed2bb21c | f67d69303f16f3612b32f66f139e93d3a382effb | refs/heads/master | 2023-08-31T22:45:55.425225 | 2021-11-05T09:24:59 | 2021-11-05T09:24:59 | 424,891,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "billsengine-31836.botics.co"
site_params = {
"name": "billsengine",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_or_... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b7de0ef299592d09e5807e075a0b09fca0ee41f7 | e342c4daf69dcacc34431e731e69b7171fc85bf1 | /core/views.py | 5c367a033eb5f645a23e3791a52ea8beaa34b238 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | nixoz/babybuddy | 5b2b4939af8ec4e8314ee297a1f653d121f1143d | 7b6c9fb3f342b1f5fbabd0b4360ee95925b67047 | refs/heads/master | 2021-07-24T05:33:54.038678 | 2017-11-02T10:39:32 | 2017-11-02T10:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,349 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.urls import reverse
from django.views.generic.base import RedirectView
from django.views.generic.detail import DetailView
from django.views.generic.edit import CreateView, UpdateVi... | [
"chris@chrxs.net"
] | chris@chrxs.net |
b5fec5082d173d47411898924befc9beb396fd8c | 49d8827695d1fa9076467fd1ec2e26afcf56e2dc | /comparser.py | ddf4df8146946d26150c96b895fa8c93ac27fd9b | [] | no_license | mhearne-usgs/comcatloader | 8eb8c2214915b13403b35f5b6a991ce9fb67090c | 35f00d33356f72484ffc5be1bdd7a9c2e7a3c090 | refs/heads/master | 2020-04-01T16:46:47.101082 | 2016-02-05T15:54:06 | 2016-02-05T15:54:06 | 9,404,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,113 | py | #!/usr/bin/env python
#stdlib imports
import sys
import os.path
import datetime
import optparse
import importlib
from xml.dom import minidom
#local imports
import comquakeml
TIMEFMT = '%Y-%m-%d %H:%M:%S'
DEFAULT_START = datetime.datetime(1000,1,1)
DEFAULT_END = datetime.datetime(3000,1,1)
def getEventTime(xmlfile):... | [
"mhearne@usgs.gov"
] | mhearne@usgs.gov |
c10eb3fcc7871f0054c20e215d8aadf633ad154e | 7a10bf8748c7ce9c24c5461c21b5ebf420f18109 | /ml_training/PythonCode/P7_Descriptive+Statistics+in+Python.py | 0b7d4e91d52fa214f3d26c9a09981be833cfffa8 | [] | no_license | VishalChak/machine_learning | aced4b4bf65bbbd08c966a2f028f217a918186d5 | c6e29abe0509a43713f35ebf53da29cd1f0314c1 | refs/heads/master | 2021-06-15T07:13:56.583097 | 2019-10-05T06:01:58 | 2019-10-05T06:01:58 | 133,164,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 968 | py |
# coding: utf-8
# View first 20 rows
import pandas
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.data"
names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']
data = pandas.read_csv(url, names=names)
peek = data.head()
print(pee... | [
"vishalbabu.in@gmail.com"
] | vishalbabu.in@gmail.com |
1a0250d644e2af667ae09c2e86f0e6739e15ac4e | a637b5db5cc2ead56d9da84ca4e2d2282b393a5c | /config/settings/common.py | 25ad754154d24f00b373fd82ed9b6cf72fd6abcf | [
"MIT"
] | permissive | noisy/SpisTresci | 7d136214877f1ac5592560ca85781a1acdfe0bd9 | 7f871f74a0576d91b62c151ea526af11b3acda2c | refs/heads/master | 2021-01-18T01:20:47.933982 | 2016-04-24T13:02:16 | 2016-04-24T13:02:16 | 56,930,392 | 1 | 0 | null | 2016-06-08T19:11:27 | 2016-04-23T16:55:42 | Python | UTF-8 | Python | false | false | 8,938 | py | # -*- coding: utf-8 -*-
"""
Django settings for SpisTresci project.
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/
"""
from __future__ import absolute_import, unicode_... | [
"noisy.pl@gmail.com"
] | noisy.pl@gmail.com |
42542463b033ad43ac9316b25e1bad450db6a910 | 8f70ad12af7eba07efa52eb29b8f99ed3900dbb9 | /AGTGA data/AGTGA/LifeHack/LifeHack 1/TestSuite/TestSuite/TestCase01.py | 19b97f56691b365278a3ad089a95877fcf12e31f | [] | no_license | Georgesarkis/AGTGARowData | 768952dc03dc342bcbe0902bf2fb1720853d0e14 | e1faa7dc820b051a73b0844eac545e597a97da16 | refs/heads/master | 2022-10-01T17:06:04.758751 | 2020-06-05T07:25:41 | 2020-06-05T07:25:41 | 267,772,437 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import time
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from TestSuite.TestSuiteHelper import ElementFinder
port = 'http://localhost:4723/wd/hub'
driver = webdriver.Remote(command_executor=port, desired_capabilities={'automationName' : 'UiAutomator2','deviceName':... | [
"32592901+Georgesarkis@users.noreply.github.com"
] | 32592901+Georgesarkis@users.noreply.github.com |
de0e31075c2459156e28261e945074f0a71f18d5 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_39866.py | 6b0f02744bf0d3584e6abef5175582abde3a3540 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,846 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
8890d1e85684f3a78ab85eba661048c7c7206fa6 | 93bf4bbafe0524335ea1216f7f2941348c2cd1bd | /tensorflow/python/ops/math_ops_test.py | 9d126f7542dcf71295f7cf32c8eb18a10d536bde | [
"Apache-2.0"
] | permissive | sachinpro/sachinpro.github.io | c4951734b09588cad58711a76fe657f110163c11 | c3bbd8d89818f5d8bb7296c851ed5e52c19728e3 | refs/heads/master | 2022-12-23T10:00:13.902459 | 2016-06-27T13:18:27 | 2016-06-27T13:25:58 | 25,289,839 | 1 | 1 | Apache-2.0 | 2022-12-15T00:45:03 | 2014-10-16T06:44:30 | C++ | UTF-8 | Python | false | false | 3,159 | py | # Copyright 2015 Google Inc. 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 applicable law or a... | [
"x0234443@ti.com"
] | x0234443@ti.com |
83be1591ac8d48a88e57e32741e7a9ba266abfec | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/Sob_Wxy/Sob_k05_s001_EroM_Mae_s001/pyr_Tcrop256_p20_j15/pyr_3s/L6/step10_b2_post.py | cd3a09eb1c8607d3719fbaee93dd56be09354fb6 | [] | 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 | 8,742 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
6fa776e5d7257a1496f3e5754db3d168fdb937b0 | d8076e1d19882e4816bcbd7f2b71039007462624 | /Fe_plot_sub.py | 6f436b80946a9b901bce9a849e19272ec985c30d | [] | no_license | kfinn6561/Light_Echoes | e87186c257228f1d191db7dbe7b74e8ddab35e22 | 15f5ed00e26606a68f0544659745c421bb985abb | refs/heads/main | 2023-04-03T16:35:14.992398 | 2021-03-23T10:20:09 | 2021-03-23T10:20:09 | 350,667,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,146 | py | import numpy as np
from scipy.io.idl import readsav
import matplotlib.pylab as pl
import pylabsetup
import sys
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import readcol
import time
import glob
from matplotlib.backends.backend_pdf import PdfPages
import pickle as pkl
from colour_tools import kell... | [
"kieran.finn@hotmail.com"
] | kieran.finn@hotmail.com |
f6d33989a70a78864ba865f803548086bdc9e55a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04029/s916243192.py | 75b46b03d432155a39cdbb1c9c8a2ca16bbff062 | [] | 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 | 52 | py | x=[i for i in range(1,int(input())+1)]
print(sum(x)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e966f611456988fe1af4938564b6c442113b17dc | 13f148c314b638c7ca810b5d09bdfd79248283de | /manage.py | 329e9d1514df82a6f71165998d08b60e8faeca1e | [] | no_license | akx/drf_unique_together_testcase | bb6888ce2a718f186d3063daccf947e143de7e79 | 132ef026a6a547fce9723ea2cef4606a1172c721 | refs/heads/master | 2020-03-08T15:06:17.559107 | 2018-04-05T12:25:24 | 2018-04-05T12:25:24 | 128,202,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "drf_unique_together_testcase.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"akx@iki.fi"
] | akx@iki.fi |
30a212edab958dd3871d929e5cc8050d3814812b | c0cffe5f31070ac163e3963b8616da10d131e355 | /env/lib/python3.6/site-packages/virtualenv.py | fd7974de812848425d79847966ced39177ab7269 | [
"Apache-2.0"
] | permissive | SanaAwan5/smart_contracts7 | 1bc9a0bf2a700e527436d1f6cee8e0251c0e651b | 40a487cb3843e86ab5e4cb50b1aafa2095f648cd | refs/heads/master | 2021-08-31T21:50:35.086907 | 2019-06-25T05:22:19 | 2019-06-25T05:22:19 | 193,639,676 | 0 | 1 | Apache-2.0 | 2021-08-11T03:42:07 | 2019-06-25T05:22:07 | Python | UTF-8 | Python | false | false | 103,703 | py | #!/usr/bin/env python
"""Create a "virtual" Python installation"""
# fmt: off
import os # isort:skip
import sys # isort:skip
# If we are running in a new interpreter to create a virtualenv,
# we do NOT want paths from our existing location interfering with anything,
# So we remove this file's directory from sys.pat... | [
"sanaawan@ittc.ku.edu"
] | sanaawan@ittc.ku.edu |
a9c0c46edad6ba923dfb0354bc47459129d856c1 | 6a7563ad479e2c3d497d62e91f418d245ec658df | /scratch/indexoper.py | 0650e8b9aa3b7800c20f1bb25cf51fcdc44417d2 | [] | no_license | rosoba/rosoba | 979901ab4858c1559e7ae9c214fb60ca71eec9b5 | b26ae5b6b0f9b7027f306af7da9d1aff1c3e2a46 | refs/heads/master | 2021-01-19T18:36:04.107879 | 2016-01-20T09:48:48 | 2016-01-20T09:48:48 | 4,391,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | '''
Created on Nov 25, 2013
@author: rch
'''
import numpy as np
L = np.array([[0, 1],
[1, 2],
[2, 3]], dtype='i')
X = np.array([[0, 0, 0],
[1, 0, 0],
[1, 1, 0],
[0, 1, 0]], dtype='f')
u_i, u_j = X[L.T]
print u_j
| [
"rostislav.chudoba@rwth-aachen.de"
] | rostislav.chudoba@rwth-aachen.de |
053ad40b16939d38bd80d77c8b759c34b030b3ee | 4ab16447a03a85c3fdc4a016f6fa481756eeeb70 | /src/python/test/yolov3debugloss.py | 279d4b8c3f09e71aedfc600ee8acaf5578b620e9 | [] | no_license | phildue/cnn_gate_detection | 3cd4ae9efde53dbef1aa41b9f7ba5e2875dc80a7 | 9f872b18595e8cd8389d0d1733ee745c017deb3b | refs/heads/master | 2021-03-27T19:34:04.169369 | 2018-12-19T09:32:43 | 2018-12-19T09:32:43 | 112,591,501 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,141 | py | import pprint as pp
from pathlib import Path
import numpy as np
from keras.callbacks import EarlyStopping, ModelCheckpoint, TensorBoard, TerminateOnNaN, ReduceLROnPlateau, CSVLogger, \
History
from keras.optimizers import Adam
from modelzoo.GateNetDecoder import GateNetDecoder
from modelzoo.GateNetEncoder import E... | [
"phild@protonmail.com"
] | phild@protonmail.com |
4a17b85bb8379fc9ce9ca619292237c86f7c8a04 | 75e518cb1c38cbf8bc55b5e5bb186bcf4412f240 | /migrations/versions/852cea8a2a22_initial_migration.py | 181aa2c80e51866462ceae6d38c2dafa9ee2b0a6 | [
"MIT"
] | permissive | adriankiprono/pitches_project | 984e8381b78c711bf20f84380fa83c26a1392f1b | a3102a7b1d618ad35b981414049c3ead0b5ecc3c | refs/heads/master | 2022-10-07T17:11:54.302322 | 2019-12-04T11:12:18 | 2019-12-04T11:12:18 | 223,401,174 | 0 | 0 | MIT | 2022-09-16T18:13:55 | 2019-11-22T12:44:29 | Python | UTF-8 | Python | false | false | 1,141 | py | """Initial Migration
Revision ID: 852cea8a2a22
Revises: a7cab0911f2f
Create Date: 2019-11-28 11:12:51.171433
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '852cea8a2a22'
down_revision = 'a7cab0911f2f'
branch_labels = None
depends_on = None
def upgrade():
... | [
"tuimuradrian6@gmail.com"
] | tuimuradrian6@gmail.com |
6ec735f143588e6adf5da9dd01457a246fb174ae | ea42ec421c74c273ef1e614dff447076ddd4f69a | /Week_04/126.Word-ladder-II.py | 4565ffe65c268efe85726068a328c969c18c9e36 | [] | no_license | youwithouto/algorithm021 | 5278262f0909914c7e6d6eb58d709fc173b29991 | 81e526385eb3464cbe173ea145badd4be20879af | refs/heads/main | 2023-03-01T08:07:07.526371 | 2021-02-06T04:31:30 | 2021-02-06T04:31:30 | 316,673,717 | 0 | 0 | null | 2020-11-28T06:40:55 | 2020-11-28T06:40:54 | null | UTF-8 | Python | false | false | 939 | py | import collections
class Solution:
def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]:
wordSet = set(wordList)
result = []
layer = {}
layer[beginWord] = [[beginWord]]
while layer:
newLayer = collections.defaultdict(list)... | [
"youwithouto.z@gmail.com"
] | youwithouto.z@gmail.com |
d279b1982813b325d1db6a5a7844f00fbfd6d590 | e5202e0f36c15b8898920a461a866168fa059947 | /lblnew/n2o/conc_3.2e-07/band07_wn_1215_1380/nv_1000/dv_0.001/ng_4/g_ascending_k_descending/refPTs_P_1_T_250__P_500_T_250/ng_refs_2__2/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2.22e-20/atmpro_saw/wgt_k_1/wgt_0.6_0.5__0.6_0.9/wgt_flux_1/w_diffuse_1.8_1.66__1.6_1.8/option_compute_ktable_0/... | e0566588dd0043ba9876e68e86cdd4000b75a9d9 | [] | no_license | qAp/analysis_-_new_kdist_param | 653c9873751646f6fa9481544e98ed6065a16155 | 272dc3667030cdb18664108d0bd78fee03736144 | refs/heads/master | 2021-06-11T04:21:35.105924 | 2019-08-04T13:13:07 | 2019-08-04T13:13:07 | 136,108,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | DIR_FORTRAN = '/chia_cluster/home/jackyu/radiation/crd/LW/examples/separate_g_groups/study__lblnew_g1_threshold/n2o/conc_3.2e-07/band07_wn_1215_1380/nv_1000/dv_0.001/ng_4/g_ascending_k_descending/refPTs_P_1_T_250__P_500_T_250/ng_refs_2__2/ng_adju_0__0/getabsth_auto__auto/absth_dlogN_uniform__dlogN_uniform/klin_2.22e-20... | [
"llacque@gmail.com"
] | llacque@gmail.com |
40fc6c47643f9ed3130fe6e82adeaa39f9a4b23e | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/aaa_config/aaa/authentication/__init__.py | d5aa7c18701ef49ed13f411a6214d847e3494fbd | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,026 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
857884fcc3acbb7df2a7c6f6a680064ffe58729c | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/tutorial/control/summary.py | 92927577d2393d79f61a34f87903c70e13ad1416 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 3,249 | py | # 2015.11.10 21:30:56 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/tutorial/control/summary.py
from tutorial.control.functional import FunctionalVarSet
from tutorial.logger import LOG_ERROR, LOG_DEBUG
class _Flag(object):
def __init__(self, name, active, store = True):
super(_Flag, self... | [
"info@webium.sk"
] | info@webium.sk |
abec78e2a72aa4027585259773b61dd1fb5a4f12 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_148/ch88_2020_05_18_19_59_52_666753.py | e0172651bedd8c38edc188d258b10ee5ae48067b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | class Retangulo:
def __init__(self, x_coord, y_coord):
self.x = x_coord
self.y = y_coord
def calcula_perimetro(self):
a = self.x
b = self.y
return 2*(a+b)
def calcula_area(self):
c = self.x
d = self.y
return c*d
| [
"you@example.com"
] | you@example.com |
184f4705dd6a5a6cdcc98bd061041cf0dd48e763 | 6390cb7020af3efadfc55bf374316b39164c72e3 | /part2/2_4_7_exptced_conditions.py | 5044b10932ff08bc199440db7ea7177d8000278d | [] | no_license | andrewnnov/stepik_qa | 37fb0808eb30eb807fd951efa0716589ce8a42fa | 689dd383793aeb20e88ce89ff56ff6db263615bd | refs/heads/main | 2023-06-19T00:22:09.292291 | 2021-07-18T19:34:46 | 2021-07-18T19:34:46 | 383,043,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from selenium import webdriver
import time
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
try:
link = "http://suninjuly.github.io/wait2.html"
browser = webdriver.Chrome("C:\Projects\stepik_q... | [
"andrewnnov@yandex.ru"
] | andrewnnov@yandex.ru |
ad2368024d7faf371220f45fba13ace22d01cb63 | c1847b5eced044ee1c03c9cd32bf336f38d6b17c | /apptools/apptools-ios-tests/apptools/target_platforms.py | beb6bb6c94a3e7beb4a333dfa7443c75af97151d | [
"BSD-3-Clause"
] | permissive | JianfengXu/crosswalk-test-suite | 60810f342adc009bbe249bc38e2153b1f44b5d68 | 6fb6ef9d89235743ee8b867fd2541c5bdf388786 | refs/heads/master | 2021-01-17T04:51:47.366368 | 2015-08-31T02:07:47 | 2015-08-31T02:07:47 | 17,897,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,087 | py | #!/usr/bin/env python
#
# Copyright (c) 2015 Intel Corporation.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of works must retain the original copyright notice, this
# list of conditions and t... | [
"yunx.liu@intel.com"
] | yunx.liu@intel.com |
8920296ee5cb27a4b0e22e713224727923678238 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-vpc/huaweicloudsdkvpc/v3/model/disassociate_subnet_firewall_request_body.py | 06e2bb56a2ca9a526a1f1210ffb3bc9cc8974413 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,355 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DisassociateSubnetFirewallRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): T... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b6c0a97616dabb5cfc7b0ef8dc9ffc6d4a2d0bf3 | 7b971c4465797ef3561c69d7dd819fcd5d2a3736 | /sbmgraphs.py | bd07584ba679e7c73b667477b4ac368082fdc166 | [] | no_license | rkdarst/pcd | 978d898a3ab1a1fd8fbb48e644234d66fe7ab95f | 54dda49ce8a248446b236a42b9d313ce410cf58b | refs/heads/master | 2021-01-23T12:38:09.042817 | 2016-11-01T18:02:25 | 2016-11-01T18:02:25 | 22,289,583 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 17,660 | py | # Richard Darst, July 2012
import collections
import math
import random
from scipy.stats import binom
import networkx
from pcd import nxutil
from pcd import cmty
product = lambda l: reduce(lambda x,y: x*y, l, 1)
# Detectability-related functions.
from math import sqrt
def k_out_limit(kin, q): return kin - .5*( sq... | [
"rkd@zgib.net"
] | rkd@zgib.net |
ce287987914d60a0d28cb2e7d614601a01354d20 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/infra/clusterstats.py | 01d0a31abeaa6466ae3fe00309e81bc56ba09230 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,692 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
84e79321c4786a570167323987d2d13e7654deb4 | 2e6f4690a2a9448a1eb027c14a637ab449b94c4f | /qa/rpc-tests/bipdersig.py | 1bb4ac97183bc298a20535bae3f3bb1c86222804 | [
"MIT"
] | permissive | mirzaei-ce/core-mashhadbit | 11d60f09f80c8056f5e063eb65783f8699f5ede8 | 1d9d45336cbbda7ffd700d3f1c3dd9e8b4ce2745 | refs/heads/master | 2021-07-18T11:43:26.440889 | 2017-10-26T14:31:07 | 2017-10-26T14:31:07 | 108,422,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,136 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test the BIP66 changeover logic
#
from test_framework.test_framework import MashhadbitTestFramework
... | [
"mirzaei@ce.sharif.edu"
] | mirzaei@ce.sharif.edu |
4c367a95ab9afb62865daaf75a0e5314c4705ec7 | 374dea7d7d1a424d91f369cc75b11b16e1a489cd | /XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/bPN_2o1RXRZaK7Vxgp3oTysbcxQmJr9XStOWBh0VWNo=/binascii.cpython-37m-x86_64-linux-gnu.pyi | 352cce23207d526d4b293041c52677dec98d99b8 | [] | no_license | tkoon107/text-generation-LSTM-neural-net | ed0e6a0fb906f4b4fd649eadfe36c254144be016 | 6b98ee355a30da128462bfac531509539d6533ae | refs/heads/master | 2020-05-27T16:46:44.128875 | 2019-06-10T18:26:54 | 2019-06-10T18:26:54 | 188,708,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,774 | pyi | import builtins as _mod_builtins
class Error(_mod_builtins.ValueError):
__class__ = Error
__dict__ = {}
def __init__(self, *args, **kwargs):
pass
@classmethod
def __init_subclass__(cls):
'This method is called when a class is subclassed.\n\nThe default implementation does nothi... | [
"trevorlang@langdatascience.org"
] | trevorlang@langdatascience.org |
23f64bddd7650d60c54a5d74d312571372533641 | d7620b35a248cf1cabc98f721026a781164c89f5 | /OpenCV-basic/ch03/arithmetic.py | 2f220e3aab44a851cb6efc0940d6ac10c11964da | [] | no_license | Seonghyeony/Project-OpenCV | e53ed1e72b113a29cc5890a89a4e7f4078dfa198 | a07fdc4bfa4cbf5b851a6ec20f0873d09cecbd54 | refs/heads/main | 2023-02-17T22:38:35.537226 | 2021-01-19T13:09:29 | 2021-01-19T13:09:29 | 326,711,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | import sys
import numpy as np
import cv2
from matplotlib import pyplot as plt
src1 = cv2.imread('lenna256.bmp', cv2.IMREAD_GRAYSCALE)
src2 = cv2.imread('square.bmp', cv2.IMREAD_GRAYSCALE)
if src1 is None or src2 is None:
print('Image load failed!')
sys.exit()
dst1 = cv2.add(src1, src2, dtype=cv2.CV_8U) # 덧셈... | [
"sunghyun7949@naver.com"
] | sunghyun7949@naver.com |
6d9d0475e47cb4ffbe3bffda932aeaad4e9568e9 | 4419d7b3479ea5ae7a76d6153fd21f8cec78a406 | /virtual/lib/python3.6/site-packages/werkzeug/local.py | 6ef633222fb20be7463b4808df68d34256b1adfa | [
"MIT"
] | permissive | monicaoyugi/News-Updates | 276f2e5b2e7ec1d1bc21786160f6df32d5f0d8c2 | 2652b28153f36284447952fdef4c63496af90418 | refs/heads/master | 2020-12-26T08:36:37.365993 | 2020-02-07T13:03:51 | 2020-02-07T13:03:51 | 237,449,423 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,458 | py | # -*- coding: utf-8 -*-
"""
werkzeug.local
~~~~~~~~~~~~~~
This module implements context-local objects.
:copyright: 2007 Pallets
:README.md: BSD-3-Clause
"""
import copy
from functools import update_wrapper
from ._compat import implements_bool
from ._compat import PY2
from .wsgi import ClosingIte... | [
"monicaoyugi@gmail.com"
] | monicaoyugi@gmail.com |
dadd0fa88fd200adad18bac6e84b65a9d05615d6 | 802105debf55010216717f1a2536057cec2f147c | /convo/migrations/0005_convo_user.py | b262f16574328cd460c80a81fdf8dda56e3acfc7 | [] | no_license | Ibrokola/speakout | ba4bbff627fcd0a82cf206b45d4a2938931ede0e | a800e17edbd69be2c45fec7fe75a83ed1b92d8c5 | refs/heads/master | 2021-01-19T16:59:42.743235 | 2017-05-06T04:37:26 | 2017-05-06T04:37:26 | 88,296,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-04-15 10:56
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"babskolawole@gmail.com"
] | babskolawole@gmail.com |
5607094dc8545aa042719562e0b5822af083ab9f | ac33111a551d13c13f96abd64898ce216959ada0 | /study/sorting/6-02 위에서아래로.py | fa7f9e4debd4637dbca63642ba35a3245ee2076f | [] | no_license | apple2062/algorithm | b48833e2ebcfe08623f328309780ab5e59749c79 | 9bdd08f513bc2f7600b7b263738e3eb09e86f77c | refs/heads/master | 2023-04-15T05:09:06.401237 | 2021-04-29T03:30:55 | 2021-04-29T03:30:55 | 289,252,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # 6-2 위에서 아래로
# 크기에 상관없이 나열되어 있다.
# 큰 숫 부터 작은 수 순서로 정렬 . 내림차순 정렬 프로그램 만들기
n = int(input())
matrix = []
for i in range(n):
matrix.append(int(input()))
matrix.sort(reverse=True)
for i in matrix:
print(i,end = ' ')
| [
"apple2062@naver.com"
] | apple2062@naver.com |
cec893095fc572f735a747b84cbe0d4f91bce9c7 | 9275454ce938751179ef08ecc21b5dd22a1a0ef0 | /src/brasil/gov/barra/tests/test_helper.py | 1dcf8e1fb446a3a1350cc5cde01b87c10d6d0263 | [] | no_license | Uelson/brasil.gov.barra | a949e49f3c7fd6e52dd657946946ef5d574bb849 | 649fbb6a36a541fb129bb234a307bff6a7e9c0f0 | refs/heads/master | 2020-05-20T19:31:16.899824 | 2015-02-26T21:44:03 | 2015-02-26T21:44:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | # -*- coding: utf-8 -*-
from brasil.gov.barra.interfaces import IBarraInstalada
from brasil.gov.barra.testing import INTEGRATION_TESTING
from plone import api
from zope.interface import alsoProvides
import unittest2 as unittest
class HelperViewTest(unittest.TestCase):
""" Caso de teste da Browser View BarraHelpe... | [
"erico@simplesconsultoria.com.br"
] | erico@simplesconsultoria.com.br |
e0491c010038ee0b638174e74c8ad306a26cd3a4 | 3f84ff1f506287bf0bb3b0840947e3ef23f22c87 | /10day/8-工厂模式5.py | dbbcbe331d30c8a777a92ad609bc957cecc5b3e6 | [] | no_license | 2099454967/wbx | 34b61c0fc98a227562ea7822f2fa56c5d01d3654 | 316e7ac7351b532cb134aec0740e045261015920 | refs/heads/master | 2020-03-18T06:09:58.544919 | 2018-05-28T13:01:19 | 2018-05-28T13:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | #商店的基类(抽象类) 规定好商店要干的事情
#预订
#创建
class Store(object):
def createFactory(self,type):
pass
def order(self,type):
return self.createFactory(type)
class BmwStore(Store):
def createFactory(self,type):
return BmwFactory().selectCar(type)
class BCStore(Store):
def createFactory(self,type):
return BCFactory().s... | [
"2099454967@qq.com"
] | 2099454967@qq.com |
dfebf83a65eca890a8e83df26a06b48a5168ba05 | 45a148dc8e4f2c469d7cca660fb2aca179473f2e | /package_control/clients/bitbucket_client.py | 40965da955056d79ec27e171e623ab2c85cd055e | [
"MIT"
] | permissive | tools-alexuser01/package_control | cbaa8d9c1e9d83f82f4195bcf7fd9c79f71e7de7 | 338ed4077b720c3904a8823984fa694097d8c8a8 | refs/heads/master | 2021-05-01T13:42:29.002863 | 2015-06-08T17:21:39 | 2015-06-08T17:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,069 | py | import re
from ..versions import version_sort, version_process
from .json_api_client import JSONApiClient
try:
from urllib import quote
except (ImportError):
from urllib.parse import quote
# A predefined list of readme filenames to look for
_readme_filenames = [
'readme',
'readme.txt',
'readme.m... | [
"will@wbond.net"
] | will@wbond.net |
98bd0ae106c9273c71d3380733ab51da4788afe1 | 8ff8ce3486db6cc9554aef203e7b25c09232c1db | /src/dsr_shelx/networkx/linalg/algebraicconnectivity.py | 9a7fe8cd1d040a91b9829b56a2ba07d7fc61bfeb | [] | no_license | dkratzert/DSR | 4eff1abec06ab9636d17168ee6273e4b3a27ccf6 | 87e5be534ab5e74b3bdf70904a13577b595a8f80 | refs/heads/master | 2023-07-08T13:41:10.404051 | 2023-06-23T19:06:31 | 2023-06-23T19:06:31 | 16,441,015 | 7 | 1 | null | 2022-11-13T12:16:37 | 2014-02-01T19:38:00 | Python | UTF-8 | Python | false | false | 18,281 | py | """
Algebraic connectivity and Fiedler vectors of undirected graphs.
"""
from functools import partial
import networkx as nx
from networkx.utils import (
not_implemented_for,
np_random_state,
reverse_cuthill_mckee_ordering,
)
__all__ = ["algebraic_connectivity", "fiedler_vector", "spectral_ordering"]
cl... | [
"dkratzert@gmx.de"
] | dkratzert@gmx.de |
2c671f1c4a133aca1fab7ed9e5ecaf37b23c15ad | ba7052d8cf27317d7ebd22911e44aec860464307 | /durable_rules_tools/magic.py | 9d67ab8b328bcf9a84bdf2ac2c57607849a25aea | [
"MIT"
] | permissive | innovationOUtside/durable_rules_magic | 841a005ecae417910dbc7800270483e1eed11945 | 3d2fd4386ce2ea8ab83e6e84a39822dc56e21f9a | refs/heads/master | 2023-01-10T16:49:16.784258 | 2020-11-02T18:26:15 | 2020-11-02T18:26:15 | 263,738,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,549 | py | from IPython.core.magic import magics_class, line_cell_magic, Magics
from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring
import warnings
from .rules_utils import quick_assert_fact, quick_retract_fact, quick_post_event, _delete_state
# TO DO - things are passed in from the magic as str... | [
"tony.hirst@gmail.com"
] | tony.hirst@gmail.com |
923c45fbfb8927418171bd74da9c695b7b579f88 | ba7640cffff3085f045d69f37735de0f759e66c3 | /running/HTMLTestRunner.py | db252aa5a296ce7ed1d9fbf5720cde93a7b4abba | [
"Apache-2.0"
] | permissive | luoqingfu/reudom | f5e88292a7e8cdbb372340795bc5ec5c85a26931 | 3c52ff4aa2cd772260bbf3575f2844d76bc2f16a | refs/heads/master | 2020-12-07T13:23:29.972584 | 2019-12-24T14:57:05 | 2019-12-24T14:57:05 | 232,730,930 | 1 | 0 | Apache-2.0 | 2020-01-09T05:38:10 | 2020-01-09T05:38:09 | null | UTF-8 | Python | false | false | 45,699 | py | """
A TestRunner for use with the Python unit testing framework. It
generates a HTML report to show the result at a glance.
The simplest way to use this is to invoke its main method. E.g.
import unittest
import HTMLTestRunner
... define your tests ...
if __name__ == '__main__':
HTMLTestRunner.ma... | [
"2652612315@qq.com"
] | 2652612315@qq.com |
3e1c302e7759ae163c083e1f83582e237a26a36c | fb365b414076ae14b65c05a6ebb271eb6a35c81d | /cron.py | 84c871029f124f562a8abce7b71e3dc975c3eecf | [
"MIT"
] | permissive | kklmn/ArdquariumPi | 425691ad618968ca3fc89e744918962396fcbaef | 1c84e6d548c22f72f6b93ca36900677cccbdfc00 | refs/heads/master | 2022-04-03T07:13:50.224233 | 2022-02-14T17:52:56 | 2022-02-14T17:52:56 | 236,858,425 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,611 | py | # -*- coding: utf-8 -*-
import subprocess
from datetime import datetime
from croniter import croniter
cronTable = None
cronTest = \
"""
20 7 * * 1-5 /usr/bin/python3 /home/pi/ArdquariumPi/gpioswitch.py --name light on
45 8 * * 1-5 /usr/bin/python3 /home/pi/ArdquariumPi/gpioswitch.py --name light off
30 9 * * 6,7 /usr... | [
"konstantin.klementiev@gmail.com"
] | konstantin.klementiev@gmail.com |
7566f2795f158d397f3272917fa55e7841f35ed2 | 5cb7b9fe09b1dd20c0664d0c86c375ffe353903c | /static/js/pypyjs/pypy-nojit.js-0.3.1/lib/modules/test/test_codecmaps_jp.py | 0bf43b676bf4c3ae4a0b5f92f7f4ba4ac350e2fa | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | shiblon/pytour | 6d0ee4a679cf7e6ffd8ac6326b8bb0d9071a7c73 | 71a181ec16fd38b0af62f55e28a50e91790733b9 | refs/heads/master | 2021-01-17T10:09:18.822575 | 2020-09-23T20:05:58 | 2020-09-23T20:05:58 | 23,226,350 | 2 | 3 | Apache-2.0 | 2020-02-17T22:36:02 | 2014-08-22T13:33:27 | Python | UTF-8 | Python | false | false | 1,968 | py | #
# test_codecmaps_jp.py
# Codec mapping tests for Japanese encodings
#
from test import test_support
from test import test_multibytecodec_support
import unittest
class TestCP932Map(test_multibytecodec_support.TestBase_Mapping,
unittest.TestCase):
encoding = 'cp932'
mapfileurl = 'http://w... | [
"shiblon@gmail.com"
] | shiblon@gmail.com |
7e26cfc606b96da3ab0fc2c6f0a1faa342eb23f8 | 640411253fcf4dfc71b70ec923b0864ccd58b837 | /dev/commit_analysis.py | 61ad7fc514e8611e478ed6f1c0fc3bf0d6d2c330 | [] | no_license | williamsdoug/GitAnalysis | cb6dce95e7a92b0d1d2cf2db3c94aec6ef3be3bf | da91b541d2531a41cc1f4e02537b7803b84b20d3 | refs/heads/master | 2016-09-06T15:50:50.345898 | 2015-07-02T13:28:51 | 2015-07-02T13:28:51 | 23,364,094 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,661 | py | #
# commit_analysis.py - Code for statistical analysis of commit data
#
# Author: Doug Williams - Copyright 2014, 2015
#
# Currently configured for OpenStack, tested with Nova.
#
# Last updated 5/28/2015
#
# History:
# - 9/2/14: Initial version (initially contained in NovaSampleData).
# Updated normalize_b... | [
"ddwilli@gmail.com"
] | ddwilli@gmail.com |
4800755881cc1cf2bdf95087c49ee5aefac0d3c2 | 9f8a746b4bd8b64affa1e7eab1be5cad40030be1 | /train.py | 8036dc193a3e83bac1dc57bfc8a7b8326a75b332 | [
"Apache-2.0"
] | permissive | jianchi2001/PaddlePaddle-DeepSpeech | 5437b0050fbd21193ed741b61d7d1bd4f4279771 | 7b89e63dfa1dfa1deb1e9f43c521196e8a278fd5 | refs/heads/master | 2023-06-21T12:33:19.967696 | 2021-08-03T03:34:45 | 2021-08-03T03:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,244 | py | import argparse
import functools
import io
from datetime import datetime
from model_utils.model import DeepSpeech2Model
from data_utils.data import DataGenerator
from utils.utility import add_arguments, print_arguments, get_data_len
import paddle.fluid as fluid
parser = argparse.ArgumentParser(description=__doc__)
ad... | [
"yeyupiaoling@foxmail.com"
] | yeyupiaoling@foxmail.com |
eb74a08ec12587a4a54535a70cd11c74cd3333a5 | adce0de4c11887519b8e471f1cbca4e18b46d906 | /h0rton/trainval_data/xy_data.py | 818db3539d211824513348099f2810ba4c5356e5 | [
"MIT"
] | permissive | jiwoncpark/h0rton | 30ca4a3c9943099ecd393e4b936b48cad7d81943 | 2541885d70d090fdb777339cfb77a3a9f3e7996d | refs/heads/master | 2021-06-25T23:08:26.902632 | 2021-01-12T01:57:47 | 2021-01-12T01:57:47 | 199,093,811 | 7 | 1 | null | 2020-03-19T16:02:01 | 2019-07-26T23:56:49 | Jupyter Notebook | UTF-8 | Python | false | false | 6,280 | py | import os
import glob
import numpy as np
import pandas as pd
import torch
from torch.utils.data import Dataset
import torchvision.transforms as transforms
from baobab import BaobabConfig
from baobab.data_augmentation.noise_torch import NoiseModelTorch
from baobab.sim_utils import add_g1g2_columns
from .data_utils impor... | [
"jiwon.christine.park@gmail.com"
] | jiwon.christine.park@gmail.com |
fb6de41cf67712e420b26a3593eda05e4a28a4d8 | 872cd13f25621825db0c598268ecd21b49cc2c79 | /Lesson_1/1.py | 425998ea943a1b948516d69748b927e98b243a0d | [] | no_license | ss2576/client_server_applications_Python | c4e9ebe195d23c8ca73211894aa50a74014013d5 | 9b599e37e5dae5af3dca06e197916944f12129d5 | refs/heads/master | 2022-12-15T10:40:22.935880 | 2020-08-12T11:02:21 | 2020-08-12T11:02:21 | 271,764,749 | 0 | 0 | null | 2020-06-12T10:05:00 | 2020-06-12T09:52:03 | Python | UTF-8 | Python | false | false | 935 | py | # Каждое из слов «разработка», «сокет», «декоратор» представить в строковом формате и проверить тип и
# содержание соответствующих переменных. Затем с помощью онлайн-конвертера преобразовать строковые
# представление в формат Unicode и также проверить тип и содержимое переменных.
str_1 = ('разработка', 'сокет', 'декор... | [
"ss2576@mail.ru"
] | ss2576@mail.ru |
9b37ee2c5421948426b43dcf868f39111b570567 | 7a88fc18f30d5dd3ac935877d4d9268a56c296be | /di_website/general/migrations/0040_auto_20200701_1953.py | 8ca4d4a90548fbce21bf8203daa79f82f3e1c673 | [] | no_license | devinit/DIwebsite-redesign | 745a480b7ba0feffa34dc664548ee4c5a7b4d470 | 9ec46823c67cdd4f35be255896bf30d8f6362666 | refs/heads/develop | 2023-08-30T04:06:20.951203 | 2023-08-07T12:06:07 | 2023-08-07T12:06:07 | 184,287,370 | 1 | 0 | null | 2023-08-28T14:34:57 | 2019-04-30T15:29:25 | HTML | UTF-8 | Python | false | false | 9,919 | py | # Generated by Django 2.2.13 on 2020-07-01 19:53
import di_website.publications.blocks
from django.db import migrations
import wagtail.blocks
import wagtail.fields
import wagtail.documents.blocks
import wagtail.embeds.blocks
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
... | [
"edwinm_p@yahoo.com"
] | edwinm_p@yahoo.com |
dc25137d0a69d6994977f134b52c3ddc0d55d6e1 | ab70e56071778f9f6f003181bf98c2d26b63550f | /tests/hwsim/test_mbo.py | e94e8ced827325469953d44624a08edeb63a4538 | [
"BSD-3-Clause"
] | permissive | vanhoefm/hostap-wpa3 | b944020f36187b2fba1119a149c0b7cc2855cf2b | 72e297507b896702e6635540f5b241ec5e02ed06 | refs/heads/master | 2022-07-25T13:00:21.309225 | 2022-07-16T22:58:29 | 2022-07-16T22:58:29 | 158,976,638 | 37 | 22 | null | null | null | null | UTF-8 | Python | false | false | 26,815 | py | # MBO tests
# Copyright (c) 2016, Intel Deutschland GmbH
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
from remotehost import remote_compatible
import logging
logger = logging.getLogger()
import hostapd
import os
import time
import hostapd
from tshark import ... | [
"j@w1.fi"
] | j@w1.fi |
4a425c2ee8e6a31e7a911470acb6b0c203fddbcd | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2_neat/16_0_2_benidoc_pancakes.py | 53e0469eb2d421c779c30d9d18d071dc28934963 | [] | 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 | 596 | py | #! python
def flips(pancakes):
flippies = 0
noHappies = 1
onaSadRun = 0
for p in pancakes:
if noHappies:
if p == '+':
noHappies = 0
else:
flippies = 1
else:
if not onaSadRun and p == '-':
onaSadRun = 1
flippies += 2
elif onaSadRun and p == '+':
onaSadRun = 0
re... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
a314794ab7fe0af0d04c2017a07d685c7f74494a | 99a43cdb360b28f9d8d8cc8fc27d8c2f45271c77 | /app01/migrations/0022_auto_20190104_0518.py | 38e6f457dc7d1161df0a045ef203909b61bca2b6 | [] | no_license | xiaoyaolaotou/MyBook | a542e8702ab46ae1904c3d2efa702cbf642033c0 | d83f07f968005bd34246c684c1bd34405ff07d32 | refs/heads/master | 2020-04-11T10:30:40.995240 | 2019-01-08T08:44:40 | 2019-01-08T08:44:40 | 161,717,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | # Generated by Django 2.0 on 2019-01-04 05:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0021_auto_20190104_0517'),
]
operations = [
migrations.AlterField(
model_name='publisher',
name='name',
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9681ceab10d026f8bee29dd19183cd0116573685 | a5fbad3bb19a9ac0755804b65898071b78f2de86 | /tcfl/target_ext_capture.py | f20864356f94103948aada59987b04ab90f831ed | [
"Apache-2.0"
] | permissive | irvcov/tcf | b4a7fd091cd37bd5a91f8270d934b1057199ca3d | 841390a93557dcfd27968bb61a031ad10afa1488 | refs/heads/master | 2021-04-22T04:21:47.525516 | 2020-03-24T16:50:42 | 2020-03-24T16:51:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,396 | py | #! /usr/bin/python2
#
# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
"""
Capture snapshots or streams of target data, such as screenshots, audio, video, network, etc
--------------------------------------------------------------------------------------------
The capture interface allo... | [
"inaky.perez-gonzalez@intel.com"
] | inaky.perez-gonzalez@intel.com |
3cd6c9e6f486380fddb2727858f3c076c0daab00 | a50e73d880fcea987cd2ddd4cc059a67cd7e22e0 | /day10/动物类.py | 36ea7a714675ad9221349a620697165bfee88247 | [] | no_license | Icecarry/learn | 31bed60d5b61201d30bfbaaf520e4e0146e10863 | 2af301b92c9143def9b4c278024d6d2d6e21f0b9 | refs/heads/master | 2021-04-06T07:45:11.938995 | 2018-03-13T06:40:54 | 2018-03-13T06:40:54 | 124,759,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | """
创建一个动物类,
并通过__init__方法接受参数(name),
使用私有属性name保存参数值,并打印"init被调用".
在动物类中定义一个__del__()方法,
使其在删除的时候自动被调用,
并打印"del被调用".
使用动物类,实例化一个dog对象取名"八公"
"""
# 创建动物类
class Animal(object):
# 初始化属性
def __init__(self, name):
self.__name = name
print('init被调用')
# 删除时调用
def __del__(self):
pr... | [
"tyj1035@outlook.com"
] | tyj1035@outlook.com |
bbbeea5b0fff0c61265c637a5569434f4de37523 | 28f1baacde04c3ea85bb246ce1a8c66259dca90b | /dbe/dbe/settings.py | e5bc9e70e996f0c3758484da169d47be68111b58 | [] | no_license | gzpgg3x/lightbirddjango1.5bombquiz | 49c8d79fda28f4d2d4410c710d01c279c488fe77 | 795e41c07adbfa26b85883e2876a9aae8fb188e9 | refs/heads/master | 2020-04-28T09:44:45.019885 | 2013-05-27T04:48:54 | 2013-05-27T04:48:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,455 | py | # Django settings for dbe project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': ... | [
"gzpgg3x@yahoo.com"
] | gzpgg3x@yahoo.com |
59338675cda54b8d1b11e05c18c14bf83cf83a1e | ccc64bff8996022501a63fcf8e6519b3d7748072 | /AppsTrack/PreSummerCourseWork/apps-1/strcmd.py | 4a64ecf2a592da4e73cff9d95462bea31b05cb5e | [] | no_license | Crash0v3rrid3/summer2019_cmrcet_RishabhJain | d737badf246884bae4957ecf9fc560e715ed05ce | d4696779792f5272aba8734d48d66e4834486179 | refs/heads/master | 2022-02-07T06:55:43.385091 | 2019-06-28T17:04:42 | 2019-06-28T17:04:42 | 193,256,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import click, string
@click.group(help='\tSupports some string commands from command line')
@click.option(
'-rd/-nrd',
'--removedigits/--noremovedigits',
help='remove digits from input'
)
@click.pass_context
def parseArguments(ctx, removedigits):
ctx.obj = {'removedigits': removedigits}
@parseArgument... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f4ff0b1d4bc7c6c1496d64feb28ef5d573d8ff9d | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/findit/handlers/test/check_duplicate_failures_test.py | cd26ff2eeb0a421b68616578deedfe29422921a2 | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 17,751 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import mock
import webapp2
from testing_utils import testing
from handlers import check_duplicate_failures
from model.wf_analysis import WfAnalysis
from mo... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
0ccabf18433b4f86eb63f70d6e291486bad92bf3 | a40950330ea44c2721f35aeeab8f3a0a11846b68 | /Pyglet/事件/事件封装.py | 5b5f1c5743c4d3f3aac33466c5c1d6fe08a701be | [] | no_license | huang443765159/kai | 7726bcad4e204629edb453aeabcc97242af7132b | 0d66ae4da5a6973e24e1e512fd0df32335e710c5 | refs/heads/master | 2023-03-06T23:13:59.600011 | 2023-03-04T06:14:12 | 2023-03-04T06:14:12 | 233,500,005 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | import pyglet
from pyglet.window import *
window = pyglet.window.Window()
@window.event
def on_draw():
window.clear()
class EventHandler:
def on_key_press(self, symbol, modifiers):
print(1)
def on_mouse_press(self, x, y, button, modifiers):
print(2)
handlers = EventHandler()
def ... | [
"443765159@qq.com"
] | 443765159@qq.com |
1b9fc3545cbfae81a4edb58579bec8353b6ff29b | fd7b34b6f4261b0e81961594f38338e8e2c1a4cc | /src/command_modules/azure-cli-storage/azure/cli/command_modules/storage/operations/account.py | 07341d2d996d694d0e04c63507e27498a931c2b8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | WangYeJian/azure-cli-test | 3158da9f5dfb4321e3dfef3eed8cd213abb78dc7 | decdaa80a2d99a1a5753ed6f620d3cea5947bada | refs/heads/master | 2023-01-13T05:51:48.247079 | 2019-06-27T01:35:24 | 2019-06-27T01:35:24 | 194,001,154 | 0 | 0 | MIT | 2022-12-27T15:34:45 | 2019-06-27T01:25:56 | Python | UTF-8 | Python | false | false | 10,626 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"ericw2@wicresoft.com"
] | ericw2@wicresoft.com |
4d6976e404683468d5ca3b4bea60273a31380a4f | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /iuenzEsAejQ4ZPqzJ_6.py | 017fc227ab57f18cb890f8be6b2c32882dbb160d | [] | 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 | 334 | py |
def mystery_func(num):
numbers = []
sum_numbers = 1
while sum_numbers <= num:
numbers.append(2)
sum_numbers = sum_numbers * 2
sum_numbers = sum_numbers / 2
numbers = numbers[1:]
numbers.append(int(num - sum_numbers))
result = ""
for i in numbers:
result = result + str(i)
return... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4246ce658b25bc27f0f1f9b6bf6aafbedc9c5dd6 | 446e9abcb0c35cc281d88912c613c8b0a28367a5 | /pyxel/__init__.py | 2080402f52b26a78ddca0729406b2081daee8557 | [
"MIT"
] | permissive | aokiyoi/pyxel | c6dc965ac291f0c71b25633758c0120361a65d59 | edf16a7fa13820d2abca66b40df651cd1b5634db | refs/heads/master | 2020-03-27T15:29:35.647651 | 2018-08-29T14:33:11 | 2018-08-29T14:33:11 | 146,721,606 | 1 | 0 | MIT | 2018-08-30T08:44:11 | 2018-08-30T08:44:10 | null | UTF-8 | Python | false | false | 848 | py | from .constants import (DEFAULT_BORDER_COLOR, DEFAULT_BORDER_WIDTH,
DEFAULT_CAPTION, DEFAULT_FPS, DEFAULT_PALETTE,
DEFAULT_SCALE, VERSION)
def init(width,
height,
*,
caption=DEFAULT_CAPTION,
scale=DEFAULT_SCALE,
palette=DEFAU... | [
"takashi.kitao@gmail.com"
] | takashi.kitao@gmail.com |
f365440375846580f36bbd921622a63de47dbc89 | 7116df00bd936cf468f67d1bec4e2ded98a21347 | /Hangman/task/hangman/hangman.py | 5a912d9f30c680669cb4fb167237a1ccb7143c4e | [] | no_license | Helen-Sk-2020/JetBr_Hangman | 7c5dcc425d9d723f770de0d14c361e5932bc0e84 | fc7b1982ca72b819bcf2134a6956eca8e5c4d90f | refs/heads/master | 2023-08-12T15:17:06.994912 | 2021-09-26T08:22:01 | 2021-09-26T08:22:01 | 410,493,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | import random
print("H A N G M A N")
menu = input('Type "play" to play the game, "exit" to quit:')
while True:
if menu == "exit":
break
elif menu == "play":
words = ['python', 'java', 'kotlin', 'javascript']
predefined_word = list(random.choice(words))
hidden_word = '-' * len(pr... | [
"88376047+Helen-Sk-2020@users.noreply.github.com"
] | 88376047+Helen-Sk-2020@users.noreply.github.com |
73948b75c56292584cfb5bc479b82c9793bc2f3c | 5bf46c7dc88eb7df1bcd4bb9c03b3e765bb13e88 | /Demos/ShapedBitmapButton/ShapedBitmapButton_OnTopOfAnother.py | 711cae25d46ad1af34137918722250af1436224c | [] | no_license | Metallicow/MCOW | 0a56dd9a79bdd9771655a82e23291cd8cefb9c48 | cbb185d96f8a208eb8fab6e8768ecc0f092c839c | refs/heads/master | 2021-01-20T06:28:57.796785 | 2019-12-31T03:51:03 | 2019-12-31T03:51:03 | 89,883,880 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,510 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#-Imports-----------------------------------------------------------------------
#--Python Imports.
import os
import sys
import random
#--wxPython Imports.
# import wxversion
# wxversion.select('2.8')
# wxversion.select('3.0.3-msw-phoenix')
import wx
try: # Locally
... | [
"metaliobovinus@gmail.com"
] | metaliobovinus@gmail.com |
be18e7315b8e7fea587df7db3b808536c1fd9603 | caed98915a93639e0a56b8296c16e96c7d9a15ab | /Array and Strings/Product of Array Except Self.py | aa91753d41fe7378b0066bb7318b06daf4015445 | [] | no_license | PiyushChandra17/365-Days-Of-LeetCode | 0647787ec7e8f1baf10b6bfc687bba06f635838c | 7e9e9d146423ca2c5b1c6a3831f21dd85fa376d5 | refs/heads/main | 2023-02-13T10:41:36.110303 | 2021-01-17T11:58:51 | 2021-01-17T11:58:51 | 319,974,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | class Solution:
def productExceptSelf(self, nums: List[int]) -> List[int]:
arr = [1]*len(nums)
pi = pj = 1
for i in range(len(nums)):
j = -1-i
arr[i] *= pi
arr[j] *= pj
pi *= nums[i]
pj *= nums[j]
return arr | [
"noreply@github.com"
] | PiyushChandra17.noreply@github.com |
b479900d85db2a6283ed36965d7e3affa11db2d3 | 4e094127dda44d757df8d1a901e847c1d3e2abba | /server/core/management/commands/export_schema.py | 397230cc0fe391c57e531099fbb06b5c0e1d3889 | [] | no_license | vied12/bias-tracker | 24946c512f04b33973a1019a26ee8444bdcd4450 | 425037b1418edb7da4dd785562e01852781e8d9f | refs/heads/master | 2023-02-08T07:45:40.401805 | 2021-04-29T14:30:52 | 2021-04-29T14:30:52 | 119,360,580 | 18 | 1 | null | 2023-01-25T09:24:14 | 2018-01-29T09:22:47 | JavaScript | UTF-8 | Python | false | false | 697 | py | from django.core.management.base import BaseCommand
from graphql_schema import Query
import graphene
import json
class Command(BaseCommand):
help = 'Reload metadata'
def handle(self, *args, **options):
schema = graphene.Schema(Query)
result = schema.execute('''
{
_... | [
"edou4rd@gmail.com"
] | edou4rd@gmail.com |
3a4ae859485d377f77bbb040a5db99b8783b6cf5 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2443/60647/283688.py | b4cc62b63b9bd5aa4c35fa853e576b3a82c5b2c0 | [] | 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 | 387 | py | list=input()
list1=[]
for i in list:
list1.append(str(i))
def bubble_sort(nums):
for i in range(len(nums) - 1):
for j in range(len(nums) - i - 1):
if nums[j][0] < nums[j + 1][0]:
nums[j], nums[j + 1] = nums[j + 1], nums[j]
return nums
list1=bubble_sort(list1)
str="".join... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
80f840e99d724cd34ca2ebea60746438fe6373d3 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2018v7/configuration_fit_v4.5_2018_VBFdipole.py | 54bed77860578f1376934218acbf91eace6b6b4c | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 1,195 | py | # example of configuration file
treeName= 'Events'
tag = 'fit_v4.5_2018_VBFdipole'
direc = "conf_fit_v4.5"
# used by mkShape to define output directory for root files
outputDir = 'rootFile_'+tag
# file with TTree aliases
aliasesFile = direc+'/aliases.py'
# file with list of variables
variablesFile = direc+'/varia... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
4c9c2f84c4ae598e451443f8db7cdfb69f9450bc | 626e0fe0435d85ae9e644ff04c14adc49e0c8647 | /tributary/tests/streaming/echo.py | aae946e5e1cfc9d7ec6e66e215e8c2b7ae27684c | [
"Apache-2.0"
] | permissive | timkpaine/tributary | c0e9370f01daa82a3fbccdf56cf71b94f21d0c28 | 4ebdd8f5990636f1c2f301f3623a8eed6a40e26f | refs/heads/main | 2023-06-08T10:30:29.580330 | 2023-05-23T20:01:16 | 2023-05-23T20:01:16 | 510,095,380 | 19 | 1 | Apache-2.0 | 2022-07-03T17:48:11 | 2022-07-03T17:48:10 | null | UTF-8 | Python | false | false | 317 | py | import json as JSON
import sys
import os.path
sys.path.insert(
0, os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
)
if __name__ == "__main__":
import tributary.streaming as ts
def _json(val):
return JSON.dumps(val)
ts.run(ts.Console(json=True).apply(_json).print())
| [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
a52aecdba8e971e8d721b289c8b48c93c61bdaa2 | c06d18ac5b87b3b82fc486454c422b119d6c1ee9 | /src/demo/short_text/base_on_ml.py | 3fc038f1b47677afa036d641fd34a1b5735f9122 | [] | no_license | tangermi/nlp | b3a4c9612e6049463bf12bc9abb7aff06a084ace | aa36b8b20e8c91807be73a252ff7799789514302 | refs/heads/master | 2022-12-09T12:33:15.009413 | 2020-04-03T04:03:24 | 2020-04-03T04:03:24 | 252,056,010 | 0 | 0 | null | 2022-12-08T07:26:55 | 2020-04-01T02:55:05 | Jupyter Notebook | UTF-8 | Python | false | false | 937 | py | import random
sentences = [('时间 问你 我们 群殴', '1'), ('大家 文献 二次 去啊', '0')]
segs= ['物品', '你的', '我的', '开心']
category = '0'
sentences.append((" ".join(segs), category))# 打标签
random.shuffle(sentences)
print(sentences)
from sklearn.feature_extraction.text import CountVectorizer
vec = CountVectorizer(
analyzer='word', # to... | [
"n10057862@qut.edu.au"
] | n10057862@qut.edu.au |
896d3a1e99ae566ad3376d5b7253f51ddb35c161 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03354/s914537720.py | 0dc717e8981f0e9cd5a36af2d138fde2991d7ea4 | [] | 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 | 612 | py | N,M = map(int,input().split())
par = [i for i in range(N+1)]
# 木の根を求める
def root(x):
if par[x] == x:
return x
else:
par[x] = root(par[x])
return par[x]
# xとyが同じ集合に属するか否か
def bool_same(x,y):
return root(x) == root(y)
# xとyの属する集合を併合
def unite(x,y):
x = root(x)
y = root(y)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed4b468c2257e10ce898f47f5e0f4a204235e753 | 3bdb9a5bc9b75c13ae99750f8fbf9d92a03f905a | /ankiety/views.py | 6b7d8e6298ee93e0e3f12adb532c90af4401df99 | [] | no_license | lo1cgsan/absolwent_org | b9f3857c7d512f9c02e33519ffcd2b6ad43096de | 37f6527d677b13abaf389fdd2b60c2bd33547a68 | refs/heads/master | 2022-10-04T07:11:22.541701 | 2019-04-16T17:16:08 | 2019-04-16T17:16:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | from django.shortcuts import render
from django.views.generic import ListView, DetailView
from ankiety.models import Pytanie, Odpowiedz
from django.shortcuts import get_object_or_404, redirect
from django.urls import reverse
from django.contrib.auth.decorators import login_required
from django.utils.decorators import m... | [
"lo1cgsan@gmail.com"
] | lo1cgsan@gmail.com |
e3d4d52ac5ab25631bcf8829cd5a152424e503c4 | daa053212901b51273bb1f8a6ca3eddac2b5cbaf | /main/apps/projects/migrations/0006_project_files.py | 9912703e9d47877b399ea8ef55d33fc16ca3e497 | [] | no_license | truhlik/directit | 11fb45d482d454b55888f38afe0f64ce533788ad | eb10654b64cbe4232811594b936f8e3d0381754e | refs/heads/main | 2023-08-30T10:03:45.376159 | 2021-10-06T19:02:15 | 2021-10-06T19:02:15 | 414,334,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # Generated by Django 3.0 on 2020-06-09 10:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('files', '0001_initial'),
('projects', '0005_project_consultant'),
]
operations = [
migrations.AddField(
model_name='projec... | [
"lubos@endevel.cz"
] | lubos@endevel.cz |
9d7835a75496bad26ec9fb26a9051fcbb7470ace | f92385943346eccca8cc4d7caca66d2d5455caa2 | /2020.7/百度-RGB括号.py | 1ba51b832d7734d324b231f2de559d81c6661c0e | [] | no_license | IamWilliamWang/Leetcode-practice | 83861c5f8672a716141dc6ec9f61f21dc5041535 | c13c0380a3ae9fef201ae53d7004b9f4224f1620 | refs/heads/master | 2023-04-01T12:15:19.335312 | 2020-10-15T14:49:36 | 2020-10-15T14:49:36 | 281,846,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,346 | py | from itertools import product
from test_script import speedtest, deprecated
from collections import defaultdict
from functools import lru_cache
import numpy as np
def main(_string=None):
if _string is None:
_string = input()
strlen = len(_string)
leftIndexList = [0] * strlen # 记录左括号的位置
match... | [
"iamjerichoholic@hotmail.com"
] | iamjerichoholic@hotmail.com |
45e57209d8ee31112c54e04ee4a86688813fdf70 | 5acc77c4d594c1750a9b7477499ee25b4c307bca | /ehpi_action_recognition/paper_reproduction_code/evaluations/lstm/test_its_journal_2019.py | d33c4f0cc31943aaa298a35c28cecd64171894e4 | [
"MIT"
] | permissive | noboevbo/ehpi_action_recognition | bc15a3c260c79b85a82844a2779c9b1ec9cf42fd | 3b77eeb5103f0f11c8d4be993ec79dddad7e661c | refs/heads/master | 2021-12-29T05:24:31.891044 | 2021-12-19T16:23:36 | 2021-12-19T16:23:36 | 180,351,212 | 113 | 23 | null | 2019-04-23T11:24:27 | 2019-04-09T11:22:45 | Python | UTF-8 | Python | false | false | 4,367 | py | import os
import numpy as np
from nobos_commons.data_structures.constants.dataset_part import DatasetPart
from nobos_commons.data_structures.dimension import ImageSize
from nobos_commons.utils.file_helper import get_create_path
from nobos_torch_lib.datasets.action_recognition_datasets.ehpi_dataset import NormalizeEhpi... | [
"Dennis.Ludl@reutlingen-university.de"
] | Dennis.Ludl@reutlingen-university.de |
7d1739054ec60843497475cf92f9a577adcaed06 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /tests/test_02_dxf_graphics/test_242_random_transform.py | 99195c39184972a1ea4c6d000ee377238a381ed9 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 10,978 | py | # Copyright (c) 2020, Manfred Moitzi
# License: MIT License
from typing import TYPE_CHECKING
import pytest
import random
import math
from ezdxf.entities import Circle, Arc, Ellipse, Insert
from ezdxf.math import Matrix44, Vec3, linspace, X_AXIS, Y_AXIS, Z_AXIS
import ezdxf
if TYPE_CHECKING:
from ezdxf.eztypes impo... | [
"me@mozman.at"
] | me@mozman.at |
be65023c8a0ce8f41a32a0bcfb746bae3966244d | 526bf18a8695862067c817f432ab197ceb645f39 | /scrappers/bfs/leafly/leafly.py | 83e4f3c83d6395e3ff58f83ebdb6291aecef4be3 | [] | no_license | sintimaski/bfs-be | a7fd623911a2220face49a0ef84574f3fd7a09a8 | 964a9c7e9cc876aaf8b0723d6b3f26bd378c3721 | refs/heads/master | 2023-08-02T09:00:44.855055 | 2021-09-22T13:07:01 | 2021-09-22T13:07:01 | 339,531,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | import json
import cloudscraper
import random
from core.db_connector import db
from core.models import Business
from core.proxies import proxies
class LeaflyScrapper:
def __init__(self):
self.source = "leafly"
self.project = "encycloweedia"
def start_scrapping(self):
... | [
"dimadrebezov@gmail.com"
] | dimadrebezov@gmail.com |
63435c029b1067a7237f109e533698e5d3667d12 | 6d7507b0695c5f704f1367604370f52a1cd60fe6 | /testfarm/test_program/app/honor/teacher/home/vanclass/test_cases/test014_vanclass_paper_list_and_tab.py | 9da7c040e8b157fd8f0d28b92f4672b80efd0bdc | [] | no_license | sj542484/test | f88b1f0524e853b24759de1bc8019a643bf11dcc | 908bef52867e3944b76898cfcc018fa403202815 | refs/heads/master | 2022-04-09T17:18:40.847936 | 2020-03-25T07:30:55 | 2020-03-25T07:30:55 | 194,576,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,958 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# @Author : SUN FEIFEI
import re
import sys
import unittest
from app.honor.teacher.login.object_page.login_page import TloginPage
from app.honor.teacher.home.dynamic_info.object_page.paper_detail_page import PaperReportPage
from app.honor.teacher.home.vanclass.object_page... | [
"18330245071@163.com"
] | 18330245071@163.com |
5cd8e4ddca0ba3aac72d705023c9812f11cba524 | 4ae7a930ca6aa629aa57df7764665358ee70ffac | /examples/ml/mlflow/california_with_mlflow.py | a369a793c618a79f2b6e6a6938d768be66c989a7 | [
"MIT"
] | permissive | carefree0910/carefree-learn | 0ecc7046ef0ab44a642ff0a72a181c4cb5037571 | 554bf15c5ce6e3b4ee6a219f348d416e71d3972f | refs/heads/dev | 2023-08-23T07:09:56.712338 | 2023-08-23T02:49:10 | 2023-08-23T02:49:10 | 273,041,593 | 451 | 38 | MIT | 2021-01-05T10:49:46 | 2020-06-17T17:44:17 | Python | UTF-8 | Python | false | false | 1,104 | py | # type: ignore
# This example requires the `mlflow` package
import cflearn
from cflearn.data.ml import california_dataset
from cflearn.misc.toolkit import check_is_ci
from cflearn.misc.toolkit import seed_everything
seed_everything(123)
x, y = california_dataset()
y = (y - y.mean()) / y.std()
config = cflearn.MLC... | [
"syameimaru.saki@gmail.com"
] | syameimaru.saki@gmail.com |
9ab5d72809b7086e7bd4c7e64e900d1b1d153617 | c9952dcac5658940508ddc139344a7243a591c87 | /tests/lab03/test_ch03_t02_get_current_date_time.py | e7483fb0ce4619ff230b0400ed999739b99f4e6e | [] | no_license | wongcyrus/ite3101_introduction_to_programming | 5da1c15212528423b3df91997327fe148abef4de | 7cd76d0861d5355db5a6e2e171735bee2e78f829 | refs/heads/master | 2023-08-31T17:27:06.193049 | 2023-08-21T08:30:26 | 2023-08-21T08:30:26 | 136,574,036 | 3 | 2 | null | 2023-08-21T08:30:28 | 2018-06-08T06:06:49 | Python | UTF-8 | Python | false | false | 516 | py | import unittest
from tests.unit_test_helper.console_test_helper import *
class TestOutput(unittest.TestCase):
def test(self):
temp_globals, temp_locals, content, output = execfile("lab03/ch03_t02_get_current_date_time.py")
print(temp_locals)
self.assertIsNotNone(temp_locals['datetime'])
... | [
"cywong@vtc.edu.hk"
] | cywong@vtc.edu.hk |
66f4264f5c8550c4b2a2691d5eaffb11f8d201ff | 98e1716c1c3d071b2fedef0ac029eb410f55762c | /part12-introduction-to-Databases/No12-Ordering-in-Descending-Order-by-a-Single-Column.py | daee5158e0690eff17495df10d745b269a7fd994 | [] | no_license | iamashu/Data-Camp-exercise-PythonTrack | 564531bcf1dff119949cbb75e1fd63d89cb2779f | c72a4e806494f0e263ced9594597dc8882c2131c | refs/heads/master | 2020-07-22T00:23:12.024386 | 2019-04-12T09:24:42 | 2019-04-12T09:24:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #Ordering in Descending Order by a Single Column
'''
You can also use .order_by() to sort from highest to lowest by wrapping a column in the desc() function. Although you haven't seen this function in action, it generalizes what you have already learned.
Pass desc() (for "descending") inside an .order_by() with the na... | [
"beiran@hotmail.com"
] | beiran@hotmail.com |
0ecbb7faa59bee8223728ff8922def5f28cd51c7 | db69a3e20ec69bd8a08ed14ec6193a08e543965d | /mars/deploy/kubedl/client.py | 79d596dd3ecc1650e83dd03a67f28d9b1d2f6165 | [
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | Fernadoo/mars | dbf62cd6f3ff82e3c399f1c06c6da1681b462856 | f8e93edeecbe184b018cd1d0d948b3a2ba74bee6 | refs/heads/master | 2023-08-12T12:48:33.726883 | 2021-09-29T14:29:18 | 2021-09-29T14:29:18 | 377,359,795 | 0 | 1 | Apache-2.0 | 2021-09-29T14:29:19 | 2021-06-16T03:29:08 | Python | UTF-8 | Python | false | false | 11,392 | py | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"noreply@github.com"
] | Fernadoo.noreply@github.com |
c626a31052ba0bf40912b3c89ebde89a31bf2a7e | a64089402e4c265319f69b126ec89512105d0e78 | /chainer/distributions/exponential.py | 5f4274fa49b83e12e32a3b5a920007ea5636bdab | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lehy/chainer | 86c46e36e9a9414349137a87f56afc6ebb735f46 | 007f86fdc68d9963a01f9d9230e004071a1fcfb2 | refs/heads/master | 2020-04-03T21:53:59.915980 | 2018-10-31T16:09:12 | 2018-10-31T16:22:20 | 155,586,089 | 0 | 0 | MIT | 2018-10-31T16:05:37 | 2018-10-31T16:05:36 | null | UTF-8 | Python | false | false | 2,414 | py | import chainer
from chainer.backends import cuda
from chainer import distribution
from chainer.functions.array import where
from chainer.functions.math import exponential
from chainer.functions.math import exponential_m1
from chainer.functions.math import logarithm_1p
class Exponential(distribution.Distribution):
... | [
"yoshikawa@preferred.jp"
] | yoshikawa@preferred.jp |
9a1205ffcd8780e7f8160ba2f5fa17e38a4537c4 | c91d029b59f4e6090a523bf571b3094e09852258 | /src/servico/migrations/0026_numerodocumento_status.py | a98891ce1975c237645961287f635c3604f36fd9 | [
"MIT"
] | permissive | anselmobd/fo2 | d51b63ebae2541b00af79448ede76b02638c41f0 | 8e7f8f3d9a296c7da39d0faf38a266e9c6c162ab | refs/heads/master | 2023-08-31T19:59:33.964813 | 2023-08-31T19:50:53 | 2023-08-31T19:50:53 | 92,856,677 | 1 | 0 | MIT | 2023-04-21T21:50:46 | 2017-05-30T17:04:27 | Python | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2021-04-21 18:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('servico', '0025_eventodestatus_status_pre_pos'),
]
... | [
"anselmo.blanco.dominguez+github@gmail.com"
] | anselmo.blanco.dominguez+github@gmail.com |
c681389bc526c21ef3d1837e9d67227023d2f7ee | af3e249753fbf04ce10a01e4dbeab549cb4ae34d | /oscar/core/ajax.py | 988307bb76a4b1b63a798bccf15c325dabfbcdb1 | [] | no_license | rwozniak72/sklep_oscar_test | 79588b57470c9245324cc5396aa472192953aeda | fb410dc542e6cb4deaf870b3e7d5d22ca794dc29 | refs/heads/master | 2020-08-12T04:55:25.084998 | 2019-10-16T21:14:08 | 2019-10-16T21:14:08 | 214,692,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from django.contrib import messages
class FlashMessages(object):
"""
Intermediate container for flash messages.
This is useful as, at the time of creating the message, we don't know
whether the response is an AJAX response or not.
"""
def __init__(self):
self.msgs = {}
... | [
"rwozniak.esselte@gmail.com"
] | rwozniak.esselte@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.