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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af0935f71aa7ec410a3efca1dfe1563cbdb5e895 | acd1bec2b5f574aac9c91fa88cb2ad812c820066 | /Memorization Tool/task/table.py | dee73d297d70a4ac949778217a5f28dbdf5d3639 | [] | no_license | TogrulAga/Memorization-Tool | ec89006351947ea20fe6562024de750a2e1e0af9 | e1773ff8062ac4cff1018e06bf852f6315b414ab | refs/heads/master | 2023-07-05T21:14:18.522215 | 2021-08-08T10:17:47 | 2021-08-08T10:17:47 | 393,927,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
Base = declarative_base()
class FlashCard(Base):
__tablename__ = "flashcard"
id = Column(Integer, primary_key=True)
question = Column(String)
answer = Column(String)
box_number = Column(Intege... | [
"toghrul.aghakishiyev@ericsson.com"
] | toghrul.aghakishiyev@ericsson.com |
5b189b2f2f1e90e3245a51923b9761e2b2d19619 | 5ca2cca7762dcfcf9dd4b6a646fb8d39b9c2718f | /manager/migrations/0004_auto_20201213_2242.py | 4293fc64255a2037a96563320da320c050a0649d | [] | no_license | trilong0610/WebThoiTrang-Old | 372b99036f160b9eb9c503f7b1987177855f5d6a | ae04a43019916e87099edb614d0d155f139f0d09 | refs/heads/main | 2023-02-02T23:22:39.938038 | 2020-12-16T08:30:55 | 2020-12-16T08:30:55 | 321,085,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | # Generated by Django 3.1.3 on 2020-12-13 15:42
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0003_auto_20201213_2240'),
]
operations = [
migrations.AlterField(
model_name='purchaseproduct',
... | [
"trilong0610@gmail.com"
] | trilong0610@gmail.com |
b85551098ac4c2584a9d741b04153b773e5537fd | 9b0b0fbc5b5a9865108552eb8fe58a04f9cc0cc3 | /fabtools/icanhaz/python.py | 404644ba8740994e207506d9b4030fdc2e83c472 | [
"BSD-2-Clause"
] | permissive | thoas/fabtools | 8f77a24ed21f318e3bf7c8817a9b77a6def8ceb8 | 8cd63767384e589629e5f02e67bd498a8473b99c | refs/heads/master | 2021-01-18T06:36:29.737133 | 2011-09-05T15:55:36 | 2011-09-05T15:55:36 | 2,327,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | """
Idempotent API for managing python packages
"""
from fabtools.python import *
def package(pkg_name, virtualenv=None, use_sudo=False):
"""
I can haz python package
"""
if not is_installed(pkg_name):
install(pkg_name, virtualenv, use_sudo)
def packages(pkg_list, virtualenv=None, use_sudo=F... | [
"ronan.amicel@gmail.com"
] | ronan.amicel@gmail.com |
1b40a16b02b23dda2bf80039eea52b5c4399e387 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/configs/lvis/mask_rcnn_x101_64x4d_fpn_sample1e-3_mstrain_2x_lvis_v0.5.py | 34c195d94bfefb4f5edace4eeca67ed63fff2f2c | [
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 985 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
864cd0f813eea94b8cd02c8f890eb24dfdfa3cc8 | c6e744658cf9633f6571f349fff444d84634a754 | /umweltbank/spiders/umweltbank.py | f1324715bba82c34f32859f99a3a6acc7d91df01 | [] | no_license | daniel-kanchev/umweltbank | a76bd0f2d86e7cfac691a0dcc8064b4d0cfc358f | 17dbe445c85583d298249a084ec828b4ef607338 | refs/heads/main | 2023-03-19T18:12:03.420926 | 2021-03-15T12:54:35 | 2021-03-15T12:54:35 | 347,968,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | import scrapy
from scrapy.loader import ItemLoader
from itemloaders.processors import TakeFirst
from datetime import datetime
from umweltbank.items import Article
class UmweltbankSpider(scrapy.Spider):
name = 'umweltbank'
start_urls = ['https://bankundumwelt.de/']
def parse(self, response):
links... | [
"daniel.kanchev@adata.pro"
] | daniel.kanchev@adata.pro |
139bfda90e79fcdbf1bdb18feb466787fc6c150e | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/1-Python-Basics/20-list-method_20200413040951.py | f5bdbdbd3425864c68451d96e168feb776b6cffd | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | basket = [21, 12,33, 35, 99]
print(basket)
print(len(basket))
#33 gets pops because it is 2nd number in the array
print(basket.pop(2))
print(basket)
#extend
basket1 = [1000, 2000, 3000]
print(basket.extend(basket1))
print(basket)
#append - last to the list
print(basket.append(700))
print(basket)
#index
print(baske... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
e70be8b0d16cb7fe3b8690933269906f2d221d46 | 345529a5ae9ac4831e1a04066612c929a2a8ad7e | /ayush_crowdbotics_378/wsgi.py | 51606165e32cea776f0b3de315377a6dfb613e20 | [] | no_license | payush/ayush-crowdbotics-378 | 29f7552e5d91c21f530af982bc16477fb11df28a | aaec9093eec6408df059172033ed8b4bf3be3c97 | refs/heads/master | 2020-03-23T22:35:05.533833 | 2018-07-24T16:17:07 | 2018-07-24T16:17:07 | 142,183,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | """
WSGI config for ayush_crowdbotics_378 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefaul... | [
"ayushpuroheet@gmail.com"
] | ayushpuroheet@gmail.com |
c24714f252c9778e9b5426070d57d02130f12ed8 | 97124dfacdb78a9301aebf5a3a4ecad7a5d0116b | /bp/__init__.py | f953eecb7fa5f1feab26592a1ee4475b728301cb | [] | permissive | esayyari/improved-octo-waddle | 982a5bd156f76415bf5dba875309190acea77b9a | 7aca988734cc1107b2d991eb9379347a08a32792 | refs/heads/master | 2022-11-20T20:16:43.370024 | 2020-07-21T19:13:35 | 2020-07-21T19:13:35 | 281,470,015 | 0 | 0 | BSD-3-Clause | 2020-07-21T18:39:11 | 2020-07-21T18:07:52 | Jupyter Notebook | UTF-8 | Python | false | false | 580 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, BP development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# --------------------------------------------------------... | [
"mcdonadt@colorado.edu"
] | mcdonadt@colorado.edu |
2f4dc3f75c0f2edf8682570208ae32a207355e65 | 2a3157ccb5376ffb03b13df4721afa405fbfc95d | /bin/pasteurize | 5619d590f2c93e22517a17ce63712cdccccd7fec | [] | no_license | bopopescu/DemoDjango | 694501259322590d2959ef65cb6231ba1b1cf128 | b5ea252f0293ea63905a72045703b50815fbd673 | refs/heads/master | 2022-11-20T23:25:41.737807 | 2018-09-17T09:49:28 | 2018-09-17T09:49:28 | 282,543,262 | 0 | 0 | null | 2020-07-25T23:44:16 | 2020-07-25T23:44:16 | null | UTF-8 | Python | false | false | 249 | #!/home/jinesh/Documents/djangoproj/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from libpasteurize.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"malaviajinesh@gmail.com"
] | malaviajinesh@gmail.com | |
4be7a5039044527d2980a0bf1b7338f67739259d | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/5702d57eb4cb6ef6e7e8/snippet.py | 5ba8fa69b8f139f132805c7e897a493b1561e969 | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,624 | py | #!/usr/bin/env python2.7
import argparse
import os
import qrcode
import qrcode.image.pil
import sqlite3
import sys
import urllib
class AuthenticatorAccount(object):
def __init__(self, account_name, account_desc, secret):
self.account_name = account_name
self.account_desc = account_desc
se... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
2c96f4f13099c50837c449c11ffc54903872c64b | 49eb0d08311529b1d2375429a9cbb5582d77fd2d | /contrib/devtools/update-translations.py | 0c50a8d0119ff2f3649c919b59ee98af37c00308 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | mario1987/deimos | bcbaa7b4ed617a70c37047e6590264941b94a170 | 72cb8c33b5a6d4e09e4019602db7cea8c686d505 | refs/heads/master | 2020-03-19T23:11:08.313125 | 2018-06-11T23:06:30 | 2018-06-11T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,074 | py | #!/usr/bin/env python
# Copyright (c) 2014 Wladimir J. van der Laan
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Run this script from the root of the repository to update all translations from
transifex.
It will do the follo... | [
"support@lipcoins.org"
] | support@lipcoins.org |
e21b5f5350a57068a2fab6ad42da5cb8ff4b1390 | 928dcef8e8d682f3e4062b0cb3d49e6151383138 | /setup.py | acf65858f3b5704078624f20c38d4740c8f5a803 | [
"MIT"
] | permissive | giserh/hug | 3aa5724aadf5c06dd8c7b5f867ea40ea057e2e78 | a15bb9497d23398dc82c496352d91e32ff183f13 | refs/heads/master | 2021-01-18T08:41:32.402648 | 2015-09-15T02:12:21 | 2015-09-15T02:12:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,387 | py | #!/usr/bin/env python
import subprocess
import sys
try:
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
extra_kwargs = {'tests_require': ['pytest', 'mock']}
def finalize_options(self):
TestCommand.finalize_option... | [
"timothy.crosley@gmail.com"
] | timothy.crosley@gmail.com |
d013dd9eb4c44f3e18ece5550ce2a994787e3aaa | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/_schema/_deployment/online/resource_requirements_schema.py | 7f43d91fc60142f1307ebcac5a55c78d2d8f447f | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-python-cwi",
"LGPL-2.1-or-later",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
"HPND",... | 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 | 899 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
# pylint: disable=unused-argument
import logging
from typing import Any
from marshmallow import post_load
from azure.ai.ml._schema.core.... | [
"noreply@github.com"
] | Azure.noreply@github.com |
24e20f6e355cde10540c8b7eaacd974cbceb2334 | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/Common/python/factories/cmgDiPFCandidate_cfi.py | e5a22266d42400df25dda74197c0de4f68b1198c | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 415 | py | import FWCore.ParameterSet.Config as cms
from CMGTools.Common.factories.cmgDiObject_cfi import diObjectFactory
cmgDiPFCandidateFactory = diObjectFactory.clone(
leg1Collection = cms.InputTag("particleFlow"),
leg2Collection = cms.InputTag("particleFlow"),
)
cmgDiPFCandidate = cms.EDFilter(
"DiPFCandida... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
cffd3f09c260d4a20c639febd7d8c9d868a3c8bb | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_chart_layout03.py | 8edd7c7b233330d0dc5e1166cecf00a1a5e839f5 | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 1,650 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
c9f2b0fb720c3590de12e05c6c7e8e3c9323feb6 | a60e81b51935fb53c0900fecdadba55d86110afe | /LeetCode/python/76___________hard_Minimum Window Substring.py | 168c878e0eb107b71a2577dc7bb95e39d86f3841 | [] | no_license | FrankieZhen/Lookoop | fab6855f5660467f70dc5024d9aa38213ecf48a7 | 212f8b83d6ac22db1a777f980075d9e12ce521d2 | refs/heads/master | 2020-07-27T08:12:45.887814 | 2019-09-16T11:48:20 | 2019-09-16T11:48:20 | 209,021,915 | 1 | 0 | null | 2019-09-17T10:10:46 | 2019-09-17T10:10:46 | null | UTF-8 | Python | false | false | 1,422 | py | """
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
Example:
Input: S = "ADOBECODEBANC", T = "ABC"
Output: "BANC"
Note:
If there is no such window in S that covers all characters in T, return the empty string "".
If there is such window, yo... | [
"33798487+YangXiaoo@users.noreply.github.com"
] | 33798487+YangXiaoo@users.noreply.github.com |
4ca435cfa6ce25915bcf7f9dcbc0502161f91cb8 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/services/webhooks/async_client.py | 7521843b6472b19abef5590131241d04a5c45d22 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,477 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
bb80ed73e3d7d90ea18dfe174b196ba572578e48 | bf2d87cc14f983a6c563ebe1bd49c48a7474ddff | /2018年力扣高频算法面试题汇总/完全平方数 my_dp.py | ec40fb66f459e16640f69cbea7ef8735b0aac1de | [] | no_license | iamkissg/leetcode | 6bd1c87c67ffc6f5d231cac3224c928e22f62af3 | 99a3abf1774933af73a8405f9b59e5e64906bca4 | refs/heads/master | 2020-05-05T11:21:05.900296 | 2019-10-27T10:51:51 | 2019-10-27T10:51:51 | 179,986,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | from math import sqrt, floor
class Solution:
# 递归不可行, 因为包含一个 1, 在事先不知道四平方数定理的情况下, 最常的路径会导致栈被撑爆.
# def numSquares(self, n: int) -> int:
# if n in self.memo:
# return self.memo[n]
# result = min([self.numSquares(n-i**2) for i in range(1, floor(sqrt(n))+1)])+1
# self.memo[n] ... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
8d49ac34a3e825f622adeb42a001aa171bd8c13f | b9fd9ed02312be96e05ef23243c4dfac1392be08 | /tensorflow/contrib/py2tf/utils/multiple_dispatch_test.py | 8d89b6898a366fe90ee1d43a55d0a7f10690224b | [
"Apache-2.0"
] | permissive | RLeili/tensorflow | 9e5650b5d02771da94a345ceb97b4f3293638e1e | 42ee949d022d8665cf2e908e800f1ef1594c6abf | refs/heads/master | 2021-04-09T11:51:32.393739 | 2019-10-16T16:44:23 | 2019-10-16T16:44:23 | 125,318,700 | 0 | 0 | Apache-2.0 | 2018-03-15T05:50:05 | 2018-03-15T05:50:04 | null | UTF-8 | Python | false | false | 3,748 | 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8bff32a3731de4f870e8a5a3d26bb063abc9e9ad | 453956e3a66b417a0c6f999951c44e474a81af7e | /19.05.2021/exc0/tests.py | 968d0baef2c3e2d47c85b11f324d27e2ce8fe288 | [] | no_license | conradylx/Python_Course | aa7db9671a30034fe8cf65d22304e76ef2b4c4ab | b8f813c077a61bd3321638f90633529fbda756f0 | refs/heads/main | 2023-06-02T07:24:57.073365 | 2021-06-13T17:41:59 | 2021-06-13T17:41:59 | 337,829,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | import unittest
from exc0 import triangle, trapezoid
class FieldsTestCase(unittest.TestCase):
def setUp(self):
self.a = 2
self.b = 3
self.h = 5
def test_triangle_with_correct_result(self):
result = triangle(self.a, self.h)
self.assertEqual(result, 5)
def test_tri... | [
"50596942+conradylx@users.noreply.github.com"
] | 50596942+conradylx@users.noreply.github.com |
43b5830be6db5503e0c7a5b34a5a8d7940745656 | 22a5d684341cee8f1095c3fe193f01f40f8121db | /2021/Qualification/E. Cheating Detection/2021-q-e.py | 7b93ef36bb2a94a0202dad9af0142a53f0e34eaf | [] | no_license | andy1li/codejam | 161b1db6faab372a4c2c4ce5956942387c650bed | 3aa6ab1673064b8c80b5f56422bd496b372b30f3 | refs/heads/master | 2022-06-28T02:42:53.980149 | 2022-06-27T20:15:11 | 2022-06-27T20:15:11 | 53,395,936 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # 2021 Qualification Round - E. Cheating Detection
# https://codingcompetitions.withgoogle.com/codejam/round/000000000043580a/00000000006d12d7
import numpy as np
#------------------------------------------------------------------------------#
def solve(data):
difficulty = np.mean(data, axis=0)
correct_sprea... | [
"li.chenxing@gmail.com"
] | li.chenxing@gmail.com |
68d8523fe078e7be65b1c937304f635861598508 | 3740de0d6e43ea140fc09ab314e4c492603ba185 | /scripts/sources/S_EvaluationCornishFisherLogN.py | ab21f423595458d1481180db8baab78c58386dad | [
"MIT"
] | permissive | s0ap/arpmRes | 29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab | ddcc4de713b46e3e9dcb77cc08c502ce4df54f76 | refs/heads/master | 2022-02-16T05:01:22.118959 | 2019-08-20T16:45:02 | 2019-08-20T16:45:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.4'
# jupytext_version: 1.1.4
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # S_Ev... | [
"dario.popadic@yahoo.com"
] | dario.popadic@yahoo.com |
d8e9124430e8d00df512614fb61d1275470e6dff | b8fe1fbe36bff3f05cceecbe9811699ba1fb6765 | /python_processThreading/asynico_oo/coroutines_asyncio.py | 4b9d73a2e3374a9d178965c6d8ce5adda1366e3a | [] | no_license | xiaotiankeyi/PythonBase | c2edfeac9fe8d116a68725a784bcb183b1308af9 | 8f1377eb03135e8ee9c047f6e7762a0d69601ca1 | refs/heads/master | 2023-03-16T19:43:45.589440 | 2023-03-13T06:05:53 | 2023-03-13T06:05:53 | 219,412,971 | 0 | 0 | null | 2022-02-27T18:57:30 | 2019-11-04T03:51:29 | JavaScript | UTF-8 | Python | false | false | 727 | py | # 概念:asyncio是3.4以后的协程模块,是python实现并发重要的包,使用事件循环驱动实现并发,实现异步io
import asyncio
async def aunt():
for i in range(10):
print(f'{i}婶婶说,python是世界上最好的语言')
await asyncio.sleep(1) # 释放cpu避免阻塞
async def uncle():
for i in range(10):
print(f'{i}叔叔说,python是世界上最好的语言')
await asyncio.sleep(... | [
"laizhitian163@163.com"
] | laizhitian163@163.com |
29858121c108ccddea63d18579cac7770cfd723a | 31b3ac7cc2f0cf43a4979e53d43002a9c5fb2038 | /find the duplicate number.py | 9c5c5e678c6f0e93eadb36086de26bd63e1a9662 | [] | no_license | shreyansh-tyagi/leetcode-problem | ed31ada9608a1526efce6178b4fe3ee18da98902 | f8679a7b639f874a52cf9081b84e7c7abff1d100 | refs/heads/master | 2023-08-26T13:50:27.769753 | 2021-10-29T17:39:41 | 2021-10-29T17:39:41 | 378,711,844 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | '''
Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
There is only one repeated number in nums, return this repeated number.
You must solve the problem without modifying the array nums and uses only constant extra space.
Example 1:
Input: nums = [1,3,... | [
"sunnytyagi886@gmail.com"
] | sunnytyagi886@gmail.com |
9f4cfac14ac62d7112c411ced01e0372d6b107e1 | 37594c48dfb4c80b3c07a9dfb5a2eac8aa4b69f3 | /guitool/__PYQT__/QtCore.py | cde2345e15eae523efd9e94f5b138c454072c907 | [
"Apache-2.0"
] | permissive | SU-ECE-18-7/guitool | 45e0246feedeebb82950f166305f23dd308f5937 | 4d7e09e3318de92456912e84436d6ce8e1cf8e47 | refs/heads/master | 2021-06-01T09:51:56.452050 | 2016-06-24T02:28:20 | 2016-06-24T02:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from __future__ import absolute_import, division, print_function
# flake8:noqa
# Wrapper around PyQt4/5
from PyQt4.QtCore import *
| [
"crallj@rpi.edu"
] | crallj@rpi.edu |
8a42862ec234fb7a7fa0b4d5e8ff400e32f4f800 | dd87194dee537c2291cf0c0de809e2b1bf81b5b2 | /k8sclient/models/v1alpha1_certificate_signing_request_spec.py | a896c60a5b40a38a2b092ea2a8d5c370cc10488a | [
"Apache-2.0"
] | permissive | Arvinhub/client-python | 3ea52640ab02e4bf5677d0fd54fdb4503ecb7768 | d67df30f635231d68dc4c20b9b7e234c616c1e6a | refs/heads/master | 2023-08-31T03:25:57.823810 | 2016-11-02T22:44:36 | 2016-11-02T22:44:36 | 73,865,578 | 1 | 0 | Apache-2.0 | 2018-10-10T12:16:45 | 2016-11-15T23:47:17 | Python | UTF-8 | Python | false | false | 5,867 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: unversioned
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "Licens... | [
"mehdy@google.com"
] | mehdy@google.com |
2eae9fbaf32e79fe20d43bf241575f4ac6f685d9 | 5e67301779cc6f685018e4db6f2605a306d53be8 | /prognoz/migrations/0026_settlements_description.py | c11b2b4a7dd88b430f10512ad51aa6681f4d1b23 | [] | no_license | avpakh/recon | 905e93374ec73501b5002bf0ef823b00715d7da8 | 4a99c0c2d2644f5847ebdf9bdfd03217cd0269f3 | refs/heads/master | 2021-01-09T06:11:37.389010 | 2017-02-04T19:32:34 | 2017-02-04T19:32:34 | 80,936,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('prognoz', '0025_auto_20151110_0727'),
]
operations = [
migrations.AddField(
model_name='settlements',
... | [
"aliaksandr.pakhomau@gmail.com"
] | aliaksandr.pakhomau@gmail.com |
9fffd6c798905d34cf98c2c3c44ace889d640fe0 | 88fcb04d4bafb1745ae4b86807b96198d06d6709 | /bigml/constants.py | d68049527e070f3acc840db04fafe34c57d8c299 | [
"Apache-2.0"
] | permissive | gnib/python | dad9501460a866a9cfa23dfe581d89bd03ca1a5d | 185fd030706992766f54cc7ec5e914df57f5a29f | refs/heads/master | 2021-01-03T13:09:10.302254 | 2017-07-28T22:56:57 | 2017-07-28T22:56:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,711 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2015-2017 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
1b037fe0c41ff59b93d4a24f7f450057b1cf6e7a | 1ef164682fee7298732bce1037d91d895c108a02 | /testapp/urls.py | 9aede7bd9c0113635a94aeabd1f944180ca31580 | [] | no_license | qwertypool/Django-location-locator | 3ecf45a9bcc42fcbf587ee3ba9ff8637492c3460 | e162fe61715b4d954a25a8af9592b3d64a357818 | refs/heads/master | 2022-09-29T17:44:03.260904 | 2020-06-10T08:34:13 | 2020-06-10T08:34:13 | 271,224,122 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.location_generator,name="ipstack"),
] | [
"deepapandey364@gmail.com"
] | deepapandey364@gmail.com |
d9fc547ef77070538f454815fa5e74d3c62c1312 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03611/s329630070.py | 2da7de28a0f7899a21bdeddfa3f4520533bf8ad0 | [] | 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 | 462 | py | import sys
from collections import Counter
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007
def main():
N, *A = map(int, read().split())
counter = Counter()
for a in A:
counter[a - 1] += 1
co... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e9165487a666303d57c21ab719a94938efc5b12d | 63d37b990c194a68fbb8d2d288de5faae374ed26 | /main/migrations/0010_photo_isavatar.py | c396985b39a95cdfa776c6e3981996e77b117cce | [] | no_license | Dostoyewski/MH_Back | bf16cd83ff5103e65a5f3fe7d866a2b6dbe66624 | 6de68e1a14643a23e268f1c313224cf7bea89c75 | refs/heads/master | 2022-03-30T18:04:51.340938 | 2020-04-05T08:06:04 | 2020-04-05T08:06:04 | 251,396,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.2.1 on 2020-04-04 19:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_hero_stage'),
]
operations = [
migrations.AddField(
model_name='photo',
name='isAvatar',
fi... | [
"dostoyewski@yandex.ru"
] | dostoyewski@yandex.ru |
04cc8dff2a874e4be609a6ed7784fee98d47ec7d | ed850eb63494b61e84ff81e35eaf3ed6b96d1208 | /autobahn/autobahn/wamp/tests/test_uri_pattern.py | 1d1098b4949ace709dea7e65a6d283aa0b65a84c | [
"Apache-2.0"
] | permissive | Shareed2k/AutobahnPython | 4e501fce496b7cd54529d1c181ee9d6b7d6be438 | 530bab04ae420db566a636b4f73e6cd2210b0c90 | refs/heads/master | 2021-01-20T16:35:02.773818 | 2014-04-01T10:40:35 | 2014-04-01T10:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,049 | py | ###############################################################################
##
## Copyright (C) 2014 Tavendo GmbH
##
## 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:/... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
350249cd29157e132cd1e6549a7530a9fc74ae0f | da386754e12ed3e251d5fb9091d9416b9f97edc7 | /examples/large_deformation/active_fibres.py | c4e19db861b1c9544510221fd8f0f2e5268df656 | [
"BSD-3-Clause"
] | permissive | nasseralkmim/sfepy | 5b5642f084b62632c1ca48035e510f27728e25ab | 647f1754bcd4fd103cd19a03ed36cb10ebc8fd15 | refs/heads/master | 2020-04-06T04:57:21.589694 | 2016-08-03T12:38:31 | 2016-08-03T12:38:31 | 65,736,316 | 2 | 1 | null | 2016-08-15T13:58:01 | 2016-08-15T13:58:01 | null | UTF-8 | Python | false | false | 6,335 | py | # -*- coding: utf-8 -*-
r"""
Nearly incompressible hyperelastic material model with active fibres.
Large deformation is described using the total Lagrangian formulation.
Models of this kind can be used in biomechanics to model biological
tissues, e.g. muscles.
Find :math:`\ul{u}` such that:
.. math::
\intl{\Omeg... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
a6424fab008cf23584c46e17e822782a4c3d473f | bb824786f095fbf6e6cf627ef9c04afdb5152477 | /snippets/jinjaglobals.py | 94483a9b22739b8556c77c61ada4f9ce77f30ce1 | [] | no_license | Emilnurg/anas.ru | 19000063c7db98c15261056bb9590382db362d42 | 20cee1aee02da192c9c79a51bd0898c1dba0c98f | refs/heads/master | 2021-05-20T12:09:08.155749 | 2017-12-26T13:49:12 | 2017-12-26T13:49:12 | 252,287,670 | 0 | 0 | null | 2021-03-31T19:34:29 | 2020-04-01T21:10:48 | JavaScript | UTF-8 | Python | false | false | 10,649 | py | # -*- coding: utf-8 -*-
import os
import random
import re
import time
from django.conf import settings
from django.contrib.humanize.templatetags.humanize import intcomma as int_comma
from django.template.defaultfilters import floatformat as float_format
from django.utils import formats
from django.utils.dateformat imp... | [
"wizzzet@gmail.com"
] | wizzzet@gmail.com |
fba58c1d1d2a511970d286307437a86f18d54932 | 8a3f10cd8f178e8452b0f1ecf747bec40ee87b31 | /orders.py | 2d627de6e0a1a078793a69db21cc83a1d14f48eb | [] | no_license | Panda0229/flasky | 70887be89b182f458ed6f1434e2a93afac048899 | d6adb2dfe998a6836bc24443d23d3cb4ed8b8e58 | refs/heads/master | 2020-12-02T18:50:41.230430 | 2019-12-31T13:04:24 | 2019-12-31T13:04:24 | 231,085,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from flask import Blueprint
# 创建一个蓝图的对象,蓝图就是一个小模块的抽象的概念,等号左边是蓝图对,等号右边是为这个对象所起的名字,可以不同
app_orders = Blueprint("app_orders", __name__)
@app_orders.route("/get_orders")
def get_orders():
return "get orders page"
@app_orders.route("/post_orders")
def post_orders():
return "post orders page"
| [
"zhanghaining0229@163.com"
] | zhanghaining0229@163.com |
b73253fd7fdc82aacabc674fd9ab679a7a0f6a51 | 1daf07aa6e1a602d69ab2a786dca43d093803a04 | /module/module_using_sys.py | ecbb9b3638943e95bf22a6a2a0bf07396123cacf | [] | no_license | luteresa/python | 89491c90788ccfcd49f554cd8e8db8f9d0ab715f | 652dc34990f179094df64ef760fc03cc980556cd | refs/heads/master | 2020-12-02T16:15:20.813439 | 2017-07-26T08:52:07 | 2017-07-26T08:52:07 | 96,525,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import sys
import os
print('the command line arguments are:')
for i in sys.argv:
print(i)
print('\n\nThe PYTHONPATH is', sys.path,'\n')
print(os.getcwd())
for item in sys.path:
print(item)
from math import sqrt
print('Squre root of 16 is ',sqrt(16))
| [
"luteresa@163.com"
] | luteresa@163.com |
868cbe6be728a3cb624a86979fd0c364286f5f63 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayMerchantComplainReconciliationCloseModel.py | 0ef574bea5b34d603c969410707030ff70deb5cb | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,508 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayMerchantComplainReconciliationCloseModel(object):
def __init__(self):
self._merchant_id = None
self._merchant_type = None
@property
def merchant_id(self):
r... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
168476b32a6333cbb5bb67e465d815cd3a211e1e | 76c8a2593316a74078e5ebe3c280d393b058ff67 | /vai/commands/BreakLineCommand.py | f5ae1c5829502cfe19b2fd6aa2d35ee9be32a0ea | [] | no_license | gavd89/vai | b7f746c3ba31397e8d85f477af9b9b71d01795fb | afa3a31b74ee81f9be8ab2c06cd8bdaebae1baad | refs/heads/master | 2021-01-16T22:04:05.131998 | 2014-10-31T22:35:37 | 2014-10-31T22:35:37 | 26,130,434 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,830 | py | from .BufferCommand import BufferCommand
from .CommandResult import CommandResult
from .NewLineCommand import NewLineCommand
from .NewLineAfterCommand import NewLineAfterCommand
from ..models.TextDocument import LineMeta
class BreakLineCommand(BufferCommand):
def execute(self):
cursor = self._cursor
... | [
"stefano.borini@gmail.com"
] | stefano.borini@gmail.com |
d88e83ce61f5c1cfefddc7edc3506b16a9221549 | d8d0de926ac1a1de1abfca06aaed843d59f3674a | /python/easy/Solution_53.py | 3823a1f61d12b196772daf89164680284c13e3b6 | [] | no_license | nickest14/Leetcode-python | 75b4919d1ac45c6a7b008e6336db38a06e337bc7 | 435deadfe2b3936dd7848a384d2d9a364352268c | refs/heads/master | 2023-08-31T07:23:14.595745 | 2023-08-30T13:52:10 | 2023-08-30T13:52:10 | 188,695,066 | 0 | 0 | null | 2019-07-20T12:29:09 | 2019-05-26T14:43:12 | Python | UTF-8 | Python | false | false | 643 | py | # 53. Maximum Subarray
from typing import List
class Solution:
def maxSubArray(self, nums: List[int]) -> int:
ans = nums[0]
total = 0
for n in nums:
total += n
ans = max(ans, total)
if total < 0:
total = 0
return ans
# def m... | [
"nickest14@gmail.com"
] | nickest14@gmail.com |
d8f4e1dab4f396180784cd27edd3f97818f00ff4 | 275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc | /test/test_agreement.py | a23d4faa65adb95e44786545cc1594e00cee38cd | [] | no_license | cascadiarc/cyclos-python-client | 8029ce07174f2fe92350a92dda9a60976b2bb6c2 | a2e22a30e22944587293d51be2b8268bce808d70 | refs/heads/main | 2023-04-03T16:52:01.618444 | 2021-04-04T00:00:52 | 2021-04-04T00:00:52 | 354,419,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # coding: utf-8
"""
Cyclos 4.11.5 API
The REST API for Cyclos 4.11.5 # noqa: E501
OpenAPI spec version: 4.11.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.agreeme... | [
"dan@leftcoastfs.com"
] | dan@leftcoastfs.com |
33daa2f6e6384682405e79bf9780044ac51c8720 | d914604923dffab7a612b95f7e1b7ebcab0e9bb3 | /insta/migrations/0001_initial.py | 86409c50e4e9b1efd73aabc3b1f744ec7c895782 | [] | no_license | MaryMbugua/Insta | 8ca4adaa356d249a0d945cec653cf70fd2fe1589 | a238cda86616cbfc26e95611ad63b7a42011ffc0 | refs/heads/master | 2020-03-18T03:27:33.141311 | 2018-05-23T16:05:06 | 2018-05-23T16:05:06 | 134,241,994 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,618 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-05-23 06:31
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import tinymce.models
class Migration(migrations.Migration):
initial = True
dependencies ... | [
"marymbugua.nm@gmail.com"
] | marymbugua.nm@gmail.com |
d593edb29f5801f87b35e1ea86e83429d51735a0 | 215fd5c4f9893d9f38e4e48199ea16d7d6ef9430 | /9.Dynmaic_Programming/9.6_L91_Decode_Ways.py | 8f21ead3257f41860d9cc46e3d11e2e5d4e81dbb | [] | no_license | fztest/Classified | fd01622c097ca21b2e20285b06997ff0e9792dd1 | b046d94657c0d04f3803ca15437dfe9a6f6f3252 | refs/heads/master | 2020-03-25T06:34:07.885108 | 2017-05-04T17:22:36 | 2017-05-04T17:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | """
Description
______________
A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded message "12", it could be decoded as "AB... | [
"cdzengpeiyun@gmail.com"
] | cdzengpeiyun@gmail.com |
c9ee749e1278aca262b9a42c087dbe576822bd2e | bfaf89bdb222b5b1f31aa4ef2a6466ca0125e225 | /students/view/logs.py | 1ebabdab75d4327d83f3c4782c224b271a81e1d8 | [] | no_license | smolynets/studentsdb13 | ab70506571150745753f04923c1a62457368ee03 | a76f9afa62ac6176a2f4dcea0098b6dd3986c3fc | refs/heads/master | 2021-01-17T22:03:14.145146 | 2017-03-07T08:33:38 | 2017-03-07T08:33:38 | 84,186,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from ..models.monthjournal import logentry
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from datetime import datetime
from django.contrib import message... | [
"smolynets@gmail.com"
] | smolynets@gmail.com |
b363b9ba1433e55ffe49fdb19adb2c5bade1ef05 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/macieck9/c.py | 272d253ddc792afadcf3d720f6bab5d5693a2d4b | [] | 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 | 869 | py | def to_bin(n):
l = []
while n != 0:
l.append(n % 2)
n /= 2
l.reverse()
res = 0
for d in l:
res = 10 * res + d
return res
def to_dec(n, b):
l = str(n)
res = 0
for d in l:
res = b * res + int(d)
return res
def divisor(n):
for p in primes:
if n % p == 0:
return p
if p * p > n:
return -1
r... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
0901a8decebfd2e16adbeb8a5654d44c7e9cc093 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/예외처리_20200709152901.py | 0f0b02c3f92435483b13b818496c0572d693295e | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | try:
print("나누기 전용 계산기입니다.")
nums = []
nums.append(int(input("첫 번째 숫자를 입력하세요 : ")))
nums.append(int(input("두 번째 숫자를 입력하세요 : ")))
nums.append(int(nums[0] / nums[1]))
print("{0} / {1} = {2}".format(num1, num2, int(num1/num2)))
except ValueError:
print("에러! 잘못된 값을 입력하였습니다.")
except ZeroDivision... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
91cb47500489f1a197928970caee8353d4676186 | 347299b495e1417dd4748c86f7696fb849c79c4f | /analisis_proyectos/servicios/configurador.py | 5fd1e564e54d15c1808c25abe4961a5136ee9eb8 | [] | no_license | vvalotto/python_uner | 6a379cc7ab4cb6380c193863403409e5559e1cd6 | 8fbeb9fde0883427695b5065232ace452160034f | refs/heads/master | 2020-07-25T23:32:50.829101 | 2019-10-18T18:02:16 | 2019-10-18T18:02:16 | 208,457,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | """
Clase que inicializa y arma las instancias necesarias iniciales de la aplicaccion:
Contextos de datos
Respositorios
Gestores
"""
from analisis_proyectos.infraestructura.persistencia.contexto.contexto_database_sqlite import *
from analisis_proyectos.infraestructura.persistencia.repositorios.DB_repositorio_proyecto i... | [
"vvalotto@gmail.com"
] | vvalotto@gmail.com |
9a4060829fa3fbbf0940f5bfb96aa01245a3d0c5 | 1bccf7d57c7aa8d48b84fff187de4b6ff2599cb6 | /pandora_rqt_gui/scripts/pandora_rqt_gui.py | c324b72f85afebafedfbb68e996684964493b158 | [] | no_license | skohlbr/pandora_ros_pkgs | 733ed34edb5b6d46e59df4acb01288f28ef3b50f | eecaf082b47e52582c5f009eefbf46dd692aba4f | refs/heads/indigo-devel | 2021-01-21T18:06:14.967943 | 2015-11-04T15:08:03 | 2015-11-04T15:08:03 | 53,413,573 | 0 | 1 | null | 2016-03-08T13:19:40 | 2016-03-08T13:19:40 | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/env python
import sys
from rqt_gui.main import Main
main = Main()
sys.exit(main.main(sys.argv, standalone='pandora_rqt_gui'))
| [
"pandora@ee.auth.gr"
] | pandora@ee.auth.gr |
4fff3230f52f4f0a934e4f4430ae04de4a2e3c0a | 43b6bffc820d26dfd223728bed71241fb3d54983 | /abc/223/c.py | b26920383e241d8bef73911853f1633fb651f49a | [] | no_license | kiccho1101/atcoder | 3a163b6a38a62c578dad6d15ccb586d0fcd1e004 | c86cb8e08b881a0a01dc2ef538f0699f3951e897 | refs/heads/master | 2023-03-02T13:27:17.747402 | 2022-05-30T13:51:00 | 2022-05-30T13:51:00 | 223,152,693 | 1 | 0 | null | 2023-02-11T01:29:47 | 2019-11-21T10:52:49 | Python | UTF-8 | Python | false | false | 345 | py | N = int(input())
ab = [list(map(int, input().split())) for _ in range(N)]
secs = [a / b for a, b in ab]
middle = sum(secs) / 2
ans = 0
curr = 0
for i, (a, b) in enumerate(ab):
diff = middle - (curr + secs[i])
if diff > 0:
curr += secs[i]
ans += a
else:
ans += (middle - curr) * b
... | [
"yodai.a.kishimoto@rakuten.com"
] | yodai.a.kishimoto@rakuten.com |
c125b0cb7fc1c7088739d00ba172ced46b39efe7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02909/s936658151.py | b112400ac8521188a69b312edffaf79281fe8a75 | [] | 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 | 157 | py | S = input()
weather = ['Sunny', 'Cloudy','Rainy']
if S == weather[0]:
print(weather[1])
elif S == weather[1]:
print(weather[2])
else:
print(weather[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
274bceda1d0097d2ed46e0f61982776854ed733c | de5eafa17b8c1e3a8aedb2848e03282eae775334 | /augment/augment_intersect_Brent9060_v10.py | 6ade04d52ef7f70c94a83767fdf168eedfbac5a4 | [] | no_license | ekourkchi/HI | cba6601fbbb96231d457cc6a0a379c2fdb7a3e4d | 796ff5b9826d9d64e2a761e3ef587411df8edd80 | refs/heads/master | 2020-05-25T19:21:05.663026 | 2020-03-14T04:08:47 | 2020-03-14T04:08:47 | 187,949,260 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,866 | py | #!/usr/bin/python
# encoding=utf8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
import os
import subprocess
import math
import matplotlib.pyplot as plt
import numpy as np
import pylab as py
from astropy.table import Table, Column
import random
from scipy.optimize import curve_fit
from astropy.stats import sig... | [
"ekourkchi@gmail.com"
] | ekourkchi@gmail.com |
1e92b2d38e080ce7e20b2e929c60746d9140b4ed | a18db39e7c392d9529f2cc4889e188310706b14f | /amadon_django/apps/amadon_app/migrations/0001_initial.py | 10c9629f6f602333a30d5560925895a7900a50db | [] | no_license | LeoKnox/amadon | d9f9d6234a3ebba12576115a02ee8ae222addb89 | f522f2c2e7ba655f8f11fe1984d49b9db799fbd3 | refs/heads/master | 2020-04-11T05:45:05.352715 | 2018-12-12T23:46:15 | 2018-12-12T23:46:15 | 161,558,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-12-12 20:01
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Shop',
... | [
"noreply@github.com"
] | LeoKnox.noreply@github.com |
df112d0a858197f8660c215b773b0b219f73d5c7 | 0c9e35012baf61ee678bc719588b8cb2ccbe449e | /product/migrations/0228_auto_20180502_0957.py | 8a9605683776d8c9b4c9a98061df35772b9ed2bd | [] | no_license | rickyakilimali/approeco | 6f0f62d57b6e5361b5c5dd473038f2999bac1413 | fd96ca6d70dabf20668d2a582c67e5d409a4a097 | refs/heads/master | 2018-09-21T12:44:27.414394 | 2018-06-06T16:35:40 | 2018-06-06T16:35:40 | 113,836,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-05-02 09:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0227_auto_20180502_0954'),
]
operations = [
migrations.AlterFiel... | [
"ricky.akilimali@approeco.net"
] | ricky.akilimali@approeco.net |
6160f5c334c7db26952d00d3e77126d97da0f263 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/SevenTeV/RSGravitonToWW_kMpl01_M_2000_TuneZ2_7TeV_pythia6_cff.py | 44240dee8666db40ad085eb0bf7cb53b891f710d | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,223 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2Settings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythiaPylistVerbosity = cms.untracked.int32(0),
filterEfficiency = c... | [
"sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch"
] | sha1-45889d0b422ced4b08fb223eae59c585c331ccec@cern.ch |
a274df74a04971717b3273284e2577410940beae | cb4d2629eadfafb4ffbcea8087399acb4f35cf00 | /mycalendar/serializers.py | a44370c64247b8d713cd71a8eb00701e76792d99 | [] | no_license | rdahal35/django_fullcalendar | 576023fa348391082ee82b50e27772b9c11c7b47 | 35623f562642816b9f501ea1390a03d96c0d188a | refs/heads/master | 2022-12-13T12:32:33.098739 | 2018-08-13T10:28:35 | 2018-08-13T10:28:35 | 142,756,016 | 0 | 1 | null | 2022-12-08T02:19:24 | 2018-07-29T11:40:13 | JavaScript | UTF-8 | Python | false | false | 182 | py | from rest_framework import serializers
from .models import Event
class eventSerializer(serializers.ModelSerializer):
class Meta:
model = Event
fields = '__all__' | [
"rdahal35@gmail.com"
] | rdahal35@gmail.com |
a79bfdb21a8f6a40a5c9ace790f401e9e1725607 | 942ee5e8d54e8ebe9c5c841fbfdd1da652946944 | /1501-2000/1678.Goal Parser Interpretation.py | 4653442e30b404a724cb952adacb2f49bdd3b8e1 | [] | no_license | kaiwensun/leetcode | 0129c174457f32887fbca078fb448adce46dd89d | 6b607f4aae3a4603e61f2e2b7480fdfba1d9b947 | refs/heads/master | 2023-08-31T07:30:50.459062 | 2023-08-27T07:59:16 | 2023-08-27T07:59:16 | 57,526,914 | 69 | 9 | null | 2023-08-20T06:34:41 | 2016-05-01T05:37:29 | Python | UTF-8 | Python | false | false | 552 | py | class Solution(object):
def interpret(self, command):
"""
:type command: str
:rtype: str
"""
def tokenize(command):
i = 0
while i < len(command):
if command[i] == "G":
yield "G"
i += 1
... | [
"skw_kevin@126.com"
] | skw_kevin@126.com |
68bc3d1726f4472b4ef0697e1b642b17f383590c | 9b77f1e31d5901924431a2a3164312cc346bde4f | /ADI31/ADI31/urls.py | 1fb5748d61a307a6ab1b1cf6b5f99e50ac4cc372 | [] | no_license | Adi19471/Djnago_Code-Daily | c2184bf21db5c8d4b3c4098fbd593e4949375ae8 | 03b1b70d3e187fe85eb24e88b7ef3391b14aa98c | refs/heads/master | 2023-08-14T14:36:36.144243 | 2021-09-20T12:52:46 | 2021-09-20T12:52:46 | 375,690,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | """ADI31 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"akumatha@gmail.com"
] | akumatha@gmail.com |
1a7cb4284d1fd36b31dba154ea268d380e9ed4f4 | 0d1c1a216b01f6773e751691e9d3e10cc4f27d09 | /tensorflow/contrib/cudnn_rnn/python/kernel_tests/cudnn_rnn_ops_benchmark.py | 8d5ff341acd737162334c2f2a8f4c81db9db82d2 | [
"Apache-2.0"
] | permissive | abdo5520/tensorflow | 13c1496e7aa115bba06cda5fc9dc73ba9e4b1694 | 55b01593515817992821423fec19733bca91c918 | refs/heads/master | 2021-01-13T04:05:38.763884 | 2017-01-01T13:10:05 | 2017-01-01T13:10:05 | 77,894,045 | 0 | 1 | null | 2017-01-03T07:28:02 | 2017-01-03T07:28:02 | null | UTF-8 | Python | false | false | 6,958 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f1e42f777f4166260daa99290c2416e05ac6c882 | 4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8 | /demos/great-expectations/venv/lib/python3.8/site-packages/notebook/services/kernels/tests/test_kernels_api.py | 38a9dfb00c7393a15d2daeec1fa2ce9f94e46e1d | [] | no_license | franciscojavierarceo/Python | 29aaea28642dde151255c5b4a813158e975a073d | 02715ca6f19fd3c76cefa12de92deeae4ddf9684 | refs/heads/main | 2023-08-27T14:23:04.376095 | 2023-08-27T10:30:37 | 2023-08-27T10:30:37 | 33,146,755 | 7 | 9 | null | 2023-02-16T06:40:35 | 2015-03-30T20:38:00 | Jupyter Notebook | UTF-8 | Python | false | false | 9,675 | py | """Test the kernels service API."""
import json
import time
from requests import HTTPError
from traitlets.config import Config
from tornado.httpclient import HTTPRequest
from tornado.ioloop import IOLoop
from tornado.websocket import websocket_connect
from unittest import SkipTest
from jupyter_client.kernelspec imp... | [
"arceofrancisco@gmail.com"
] | arceofrancisco@gmail.com |
d8d3b761b789cce584a071b57e2e9664d41b9c7b | 7911da973079f325a515cd2ee66f7590a9f32e48 | /asci_char.py | 440a8d3234ddf3ac903b9fb83e313e80717b0991 | [] | no_license | Ponkiruthika112/Guvi | 5d2ff3dcf55d6c52c0f09a1e577d8b11632c7a92 | 319e5b4dab5654fabc25ef15c1d528f76d833c15 | refs/heads/master | 2020-04-21T06:05:03.581658 | 2018-08-02T05:53:48 | 2018-08-02T05:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | ip=input("Enter any character:")
print(ord(ip))
| [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
102be23096fba5b7196ac3e0c929f4ac9631cd95 | eb82022c0cfc7c8747661cff9624ad2099fa1c3f | /dev_bc/models/product_uom.py | 77461ba74a7add5a24d3a1415a7831e4131454f2 | [] | no_license | dadysuarsa/Odoo | 8d026a066c390cc8f72805d2672212e61260c1cb | c9becd0c192fa239520ad3e1a11d81f70832eddf | refs/heads/master | 2023-03-11T06:02:06.011575 | 2021-02-26T02:17:37 | 2021-02-26T02:17:37 | 276,346,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from odoo import models, fields, api, _
import openerp.addons.decimal_precision as dp
from odoo.exceptions import UserError
class productuom(models.Model):
_inherit = 'product.uom'
name_bc = fields.Char('Unit of bc') | [
"dads02_zetti@yahoo.com"
] | dads02_zetti@yahoo.com |
294939bed03799b74ad9da32b6d03e81286ce9ed | 8a83bb7acb9b62183fca817e1f196dd8075630a4 | /24_fourthFolder/18_lazy_propagation.py | 4435a51def47f2397589dc377acdb639e7fffb40 | [] | no_license | sandeepkumar8713/pythonapps | ff5ad3da854aa58e60f2c14d27359f8b838cac57 | 5dcb5ad4873124fed2ec3a717bfa379a4bbd197d | refs/heads/main | 2023-09-01T04:12:03.865755 | 2023-08-31T07:04:58 | 2023-08-31T07:04:58 | 234,762,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,404 | py | # https://www.geeksforgeeks.org/lazy-propagation-in-segment-tree/
# Question : Write a function which takes start and end index and return their range sum. We
# have used the same "Sum of given Range" problem to explain Lazy propagation. He then asked
# range update in best optimised way. I told him Lazy propagation. I... | [
"sandeepkumar8713@gmail.com"
] | sandeepkumar8713@gmail.com |
570f37233f49a95dccabcfab99c73b34aed7b8a1 | fe488ec29223d32d0d94295e838517b7e8cf9c7d | /ghidra/scripts/find_duplicate_functions.py | eefaf1e3448e6d38d520887ec12f49284de1acca | [
"MIT"
] | permissive | qeedquan/debug | 4ad1fd9c2f484190a0a64725653e47172e7595c6 | aadeb3351f832bbd7210f0512037c93e48153062 | refs/heads/master | 2023-05-10T17:06:50.463693 | 2023-05-01T01:33:39 | 2023-05-01T01:33:39 | 87,041,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | #@author
#@category _NEW_
#@keybinding
#@menupath
#@toolbar
class Func:
def __init__(self):
self.func = None
self.body = []
self.hash = ""
def getfuncs():
listing = currentProgram.getListing()
result = []
func = getFirstFunction()
while func is not None:
f = Fun... | [
"qeed.quan@gmail.com"
] | qeed.quan@gmail.com |
2c8eb5561dfa8bcd89c70ae82192ec5011775a7f | 1f190e0290513ede543c370b0428dff8079e32ed | /clusters/haswell/submit_dalton.py | 7010c4b656d761c5a57f7b5154d2253d5287f643 | [] | no_license | Computational-Chemistry-Research/personal_scripts | 535062bc402088d1fd0ccbabae906eb6e7a65e84 | 0b51032582a2ee55b06a150009bb898e2b976606 | refs/heads/master | 2023-02-03T10:02:18.612244 | 2020-12-25T15:20:37 | 2020-12-25T15:20:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | #!/usr/bin/env python
"""submit_dalton.py: A standalone script for submitting DALTON jobs to
Haswell's SLURM scheduler.
"""
def template_slurmfile_dalton(inpfile, ppn, time, extrafiles):
"""The template for a SLURM jobfile that calls DALTON."""
copy_string_template = 'cp "$SLURM_SUBMIT_DIR"/{} "$LOCAL"\n'
... | [
"eric.berquist@gmail.com"
] | eric.berquist@gmail.com |
a963122d803d9c95d2f4da26529d3c3263e17c97 | 8935286746ba7d98e69f28343498a20303b8fbef | /tests/problem_difference_operators/test_Dcd.py | 11d01a7860d1dd2af0fcf3104146558a36b2498c | [] | no_license | ASU-CompMethodsPhysics-PHY494/Activity_11_differential_operators | dceac220f1a68addc8a4b1720793a62bdf805038 | bec1e9064d24364fa6e7013b4719c3d48e9e3529 | refs/heads/main | 2023-03-12T15:45:59.381399 | 2021-03-04T10:09:50 | 2021-03-04T10:09:50 | 344,430,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | from ..base import _TestDxx
class TestDcd(_TestDxx):
name = "D_cd"
@staticmethod
def op(f, x, dx):
dx2 = dx/2
return (f(x + dx2) - f(x - dx2))/dx
| [
"orbeckst@gmail.com"
] | orbeckst@gmail.com |
ca62d5843d222ded6598b0f8b2af7ca737d437d6 | 12579725d1c1e51a436136f465a8a7e60a76248b | /apps/almacen/views.py | a054d12a7d23f2f3f1b6d09e0dc0930306a1e707 | [] | no_license | kiritodeveloper/optica | f4f43b9ead720e0708974736ba6a798e7980ccb8 | 6491c4b6b074a1e1f6d7a5b2d73f85e7ed11bedd | refs/heads/master | 2023-01-06T14:00:20.337601 | 2019-07-07T00:42:21 | 2019-07-07T00:42:21 | 176,391,884 | 3 | 0 | null | 2022-12-26T20:15:18 | 2019-03-19T00:33:16 | TSQL | UTF-8 | Python | false | false | 6,978 | py | # -*- encoding: utf-8 -*-
from django.shortcuts import render,redirect, HttpResponse
from django.views.generic import View, ListView, DeleteView
from apps.cliente.models import Cliente
from apps.facturacion.models import Venta
from apps.receta.models import Receta
from .models import Producto,Proveedor
from .forms impo... | [
"admin@example.com"
] | admin@example.com |
6cb58c3d103adce06bc3212805179da117d0586a | 87d0de6a06451d7aa561b72d908d06e68074f650 | /core/arxiv/submission/auth.py | 2bc77e6859adcdde806a42175c0522339435c9cd | [
"MIT"
] | permissive | arXiv/arxiv-submission-core | 3e79085ee408fd83b4dd4c0c1e8ccc53dd282230 | 6077ce4e0685d67ce7010800083a898857158112 | refs/heads/develop | 2022-01-21T02:11:56.384920 | 2020-07-31T18:16:17 | 2020-07-31T18:16:17 | 106,854,828 | 14 | 8 | MIT | 2022-01-06T22:29:31 | 2017-10-13T17:36:51 | Python | UTF-8 | Python | false | false | 1,330 | py |
from typing import List
import uuid
from datetime import datetime, timedelta
from pytz import UTC
from arxiv.users import auth, domain
from arxiv.base.globals import get_application_config
from .domain.agent import User, Agent, Client
def get_system_token(name: str, agent: Agent, scopes: List[str]) -> str:
sta... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
f9f5f1c810bd6768490f56eed7d994bb84fc244d | d5682d2ef13ad63c68d59d3d0706853a88035ff1 | /week4/netmiko_test.py | 7d33f05d13548fa2bd2280fdb6c9095940601267 | [
"Apache-2.0"
] | permissive | mikealford/ktbyers_automation | 66467f5352a3fbb111fc18f9c90b83cf97a75e79 | d8b30e7ddbe27b4bc62b74bfc051b6d1c099f7f9 | refs/heads/master | 2020-04-17T19:37:42.365653 | 2019-02-19T01:16:41 | 2019-02-19T01:16:41 | 166,872,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | from netmiko import ConnectHandler
from getpass import getpass
password = getpass()
switch1 = {
'device_type': 'cisco_ios',
'ip': '192.168.122.172',
'username': 'malford',
'password': password,
}
switch2 = {
'device_type': 'cisco_ios',
'ip': '192.168.122.173',
'username': 'malford'... | [
"mike.alford13@gmail.com"
] | mike.alford13@gmail.com |
debf5d538dd470447e69bf1ceafc4368d95d2702 | a276d03f34457c174d2e79fc4fdb17c90299e843 | /projects/buttons/lib/markdown/__version__.py | 65edeeddbe2024b9e9a9513b5ec0deaec794cfdb | [
"MIT"
] | permissive | lucidworks/streams | effba3bc55df10431fb505937180b30d72e248b8 | 89aaf02382494cf09041ca5dadb41dddb86cf9d8 | refs/heads/master | 2021-06-02T04:09:27.626504 | 2020-01-07T01:28:09 | 2020-01-07T01:28:09 | 106,742,467 | 8 | 6 | null | 2020-03-17T21:17:48 | 2017-10-12T20:34:28 | Python | UTF-8 | Python | false | false | 907 | py | #
# markdown/__version__.py
#
# version_info should conform to PEP 386
# (major, minor, micro, alpha/beta/rc/final, #)
# (1, 1, 2, 'alpha', 0) => "1.1.2.dev"
# (1, 2, 0, 'beta', 2) => "1.2b2"
version_info = (2, 4, 0, 'final', 0)
def _get_version():
" Returns a PEP 386-compliant version number from versi... | [
"kordless@gmail.com"
] | kordless@gmail.com |
a68ab708a3dd64fa6df53028e3ae4f92b71cde57 | 5d0edf31b17c5375faf6126c1a7be8e79bfe2ab8 | /buildout-cache/eggs/collective.siterss-0.4-py2.7.egg/collective/siterss/tests.py | 504d02d5c4f70d7c823545bd4735b78c9bb7ae7c | [] | no_license | renansfs/Plone_SP | 27cba32ebd9fc03dae3941ec23cf1bf0a7b6667a | 8a7bdbdb98c3f9fc1073c6061cd2d3a0ec80caf5 | refs/heads/master | 2021-01-15T15:32:43.138965 | 2016-08-24T15:30:19 | 2016-08-24T15:30:19 | 65,313,812 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import unittest
#from zope.testing import doctestunit
#from zope.component import testing
#from Testing import ZopeTestCase as ztc
from Products.Five import zcml
from Products.Five import fiveconfigure
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import PloneSite
ptc.setup... | [
"renansfs@gmail.com"
] | renansfs@gmail.com |
9da24d7be31634385f5297b6853fdebc8cd2a1a6 | 308765557d3a850175658fc2a6ec7332b91a85bc | /restapi/restapi/urls.py | 27696e1100556c7527bec61cfe4032595d1e9508 | [] | no_license | kagxin/recipes | 3358a79267a18ba499145e2de64f44c6e14ddaaf | 17a106478859cd8e82513456ecd03873e1fe9391 | refs/heads/master | 2021-05-06T08:13:14.851114 | 2018-07-21T11:50:48 | 2018-07-21T11:50:48 | 114,010,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """restapi URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"k506855660@163.com"
] | k506855660@163.com |
447a68a7c95e7246409e5e6a6d769ae3909d7314 | b03a7b92cef9cbee31918b0608ce58669b92df73 | /jd_home1.py | 014257d838a833709c28bf6bb2c6adc3e7d5d364 | [] | no_license | luobodage/- | 5cbc3f7900867cddb53bf347da57716cd7917481 | affbaa854a031819a74c944d3a95f4dc5d90d08f | refs/heads/master | 2022-12-30T23:49:31.205151 | 2020-10-25T09:02:01 | 2020-10-25T09:02:01 | 297,016,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | import requests
import UserAgent
import lxml.etree as le
import re
import os
def spider_home():
"""
获取物品的url以及标题价格
:return: 返回物品编码
"""
shop = input("请输入你要搜索的商品:")
global headers
headers = UserAgent.get_headers() # 随机获取一个headers
url = 'https://search.jd.com/Search?keyword={shop}&enc=ut... | [
"fuyu16032001@gmail.com"
] | fuyu16032001@gmail.com |
39c457d336d955950a124abbfb9682486e1bbab8 | 90115eeb4d60c1dc26deb1c124d42039d214195c | /ixl/management/commands/createchallenges.py | dacb82b399b6bd7265dc6ed66a89f577c65727cc | [] | no_license | waffle-iron/Newton | ce60a8ccc66bbc23aa764742b197add4cfb4d2d3 | f8f3df4127e88428db0cc73207ac51582db7cd42 | refs/heads/master | 2021-01-02T08:59:39.948797 | 2017-08-02T12:52:52 | 2017-08-02T12:52:52 | 99,116,161 | 0 | 0 | null | 2017-08-02T12:52:52 | 2017-08-02T12:52:51 | null | UTF-8 | Python | false | false | 7,674 | py | # commands/createchallenges.py
# Full path to your django project directory
your_djangoproject_home="/home/alex/newton/"
import django
import datetime
import sys,os
import requests
from variables import second_teachers as assigned_teachers
from variables import mastery_skills, cbaExercises
sys.path.append(your_djangop... | [
"alexrtrost@gmail.com"
] | alexrtrost@gmail.com |
9b27acf8e7217a6d9531f6f8b2b0b06fc5734d47 | 282d0a84b45b12359b96bbf0b1d7ca9ee0cb5d19 | /Malware1/venv/Lib/site-packages/numpy/ma/core.py | 2a76d165ece3eafac172eaa1d54d982e3d5957f7 | [] | no_license | sameerakhtar/CyberSecurity | 9cfe58df98495eac6e4e2708e34e70b7e4c055d3 | 594973df27b4e1a43f8faba0140ce7d6c6618f93 | refs/heads/master | 2022-12-11T11:53:40.875462 | 2020-09-07T23:13:22 | 2020-09-07T23:13:22 | 293,598,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | version https://git-lfs.github.com/spec/v1
oid sha256:5152f7d1fc4275d76c9cc94b3a0702c65f9c6bff88aa6eaec8df101e7733707e
size 256431
| [
"46763165+sameerakhtar@users.noreply.github.com"
] | 46763165+sameerakhtar@users.noreply.github.com |
fa1d83669f1cd8d74b20eed7dc51f9d3d01228d4 | 0009c76a25c89a0d61d3bc9e10071da58bdfaa5a | /py/ztools/lib/Title.py | 3357c3c94a5ba9f68af20cfed4050b70afee62ce | [
"MIT"
] | permissive | julesontheroad/NSC_BUILDER | 84054e70a80b572088b0806a47ceb398302451b5 | e9083e83383281bdd9e167d3141163dcc56b6710 | refs/heads/master | 2023-07-05T05:23:17.114363 | 2021-11-15T19:34:47 | 2021-11-15T19:34:47 | 149,040,416 | 1,249 | 143 | MIT | 2022-12-15T03:19:33 | 2018-09-16T22:18:01 | Python | UTF-8 | Python | false | false | 19,434 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
import re
import json
import Titles
import Print
from bs4 import BeautifulSoup
import requests
import time
import datetime
import calendar
import threading
import Nsps
import urllib.request
import Config
try:
from PIL import Image
except ImportError:
import Image... | [
"42461174+julesontheroad@users.noreply.github.com"
] | 42461174+julesontheroad@users.noreply.github.com |
984cdfba99e9f183944bffc8080c34e4f54c0e66 | 94ed2113af11ba8b716fb959c5ac0a32c5549c18 | /templates/plexus/{project.name}/actions/About.py | cd853ead8059cee02158904d7f5a4fd013c94cd8 | [
"BSD-3-Clause"
] | permissive | avalentino/pyre | 85ba21388514dc8c206d5136760e23b39aba1cae | 7e1f0287eb7eba1c6d1ef385e5160079283ac363 | refs/heads/main | 2023-03-23T04:58:02.903369 | 2021-03-09T17:37:11 | 2021-03-09T17:37:11 | 347,723,195 | 0 | 0 | NOASSERTION | 2021-03-14T18:43:34 | 2021-03-14T18:43:33 | null | UTF-8 | Python | false | false | 4,184 | py | # -*- coding: utf-8 -*-
#
# {project.authors}
# {project.affiliations}
# (c) {project.span} all rights reserved
#
# externals
import {project.name}
# declaration
class About({project.name}.command, family='{project.name}.actions.about'):
"""
Display information about this application
"""
# user co... | [
"michael.aivazis@orthologue.com"
] | michael.aivazis@orthologue.com |
f97683759d994ffa651b9fe04556b5fe7227fbec | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/90d8d0df916085db80d40220965daa4a3b7ba311-<test_qz_single>-bug.py | 2282f4798ce0ca3c2d1f5cf68bc695667672a3e3 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | def test_qz_single(self):
n = 5
A = random([n, n]).astype(float32)
B = random([n, n]).astype(float32)
(AA, BB, Q, Z) = qz(A, B)
assert_array_almost_equal(dot(dot(Q, AA), Z.T), A)
assert_array_almost_equal(dot(dot(Q, BB), Z.T), B)
assert_array_almost_equal(dot(Q, Q.T), eye(n))
assert_arra... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
923ba6a2cc6cf3ac0399432f8258fbbb7ef66708 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_01_01/aio/operations/_express_route_circuit_peerings_operations.py | 6b22064ab34016b86fc6d0c3e2c2f45fd16e18ff | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 21,703 | 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"
] | scbedd.noreply@github.com |
32d24dea52ce64fed1b3599ceacbc71988bc0232 | 1310ca784c1b0b9238f2407eb59d0704b8ae5a08 | /NextGen/circuitpython/adafruit-circuitpython-bundle-6.x-mpy-20201114/examples/requests_simpletest_cellular.py | 6727815ba8df84aa15bd0a164f457469bad79927 | [] | no_license | RyannDaGreat/LightWave | 6b89838bfd48dba010eb5229b84b206be4e8ccbb | d055b0c01b01b3795d9e6c28b6b70f969893ed97 | refs/heads/master | 2023-07-20T08:23:47.526629 | 2023-07-18T00:25:02 | 2023-07-18T00:25:02 | 123,113,725 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # pylint: disable=unused-import
import time
import board
import busio
import digitalio
from adafruit_fona.adafruit_fona import FONA
from adafruit_fona.fona_3g import FONA3G
import adafruit_fona.adafruit_fona_network as network
import adafruit_fona.adafruit_fona_socket as cellular_socket
import adafruit_requests as requ... | [
"sqrtryan@gmail.com"
] | sqrtryan@gmail.com |
31b20c33f85cf51e5f5a85fc2e154cd5e696c05c | 622a4baffb2c1e47aa9f1ac10eedeaf97e16c2a4 | /DataFreaksSchool/apps/school/admin.py | 0cb291f1c034da2523b31ef46444010cdfe6b23a | [] | no_license | Noeuclides/DataFreaks | 81bff087ee813bff4529245a27c09ea5ff6086d8 | 4739316223e31feffe5a020505727be983001be0 | refs/heads/master | 2023-04-27T18:06:49.788374 | 2020-02-05T00:50:36 | 2020-02-05T00:50:36 | 237,767,894 | 0 | 1 | null | 2023-04-21T20:47:07 | 2020-02-02T12:28:54 | Python | UTF-8 | Python | false | false | 269 | py | from django.contrib import admin
from .models import CustomUser, Student, Teacher, Course, Note
# Register your models here.
admin.site.register(CustomUser)
admin.site.register(Student)
admin.site.register(Teacher)
admin.site.register(Course)
admin.site.register(Note) | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
8c5a37c5f4bd04e4bdee20dfee9587c03cbae32c | 3e05276c6562bbca2c46daec0bf30d765bb6c8d5 | /jobseeker/forms.py | 7ce3e3e0bb7a3ade0d8400cacafb8924bcf73ddf | [] | no_license | mrpal39/portflioWebapp | 762571a74979ddcd4abf90c8ab8684dcd2afa6fa | 898023c0b528557d4ab5ece6c48707f5e61ea296 | refs/heads/master | 2023-08-07T06:17:28.081727 | 2021-10-05T16:30:27 | 2021-10-05T16:30:27 | 414,057,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py |
from crispy_forms.helper import FormHelper
from crispy_forms.layout import Submit
from django.db import models
from django.db.models import fields
from password_reset.forms import PasswordRecoveryForm, PasswordResetForm
from django import forms
from django.contrib.auth.forms import AuthenticationForm, UserCreationFor... | [
"rp9545416@gmail.com"
] | rp9545416@gmail.com |
b321ddea753491e4d4c5b8d334c61a4c303b5cd0 | 96148bf17555c028f5650d51f496f349c89e8c79 | /build/cob_driver/cob_utilities/catkin_generated/pkg.develspace.context.pc.py | a5e228897d169a8b0fdaa67c1507b846b574a730 | [] | no_license | kerekare/ros_hydra_libphidgetsupdated | 239daed94a95f60743c5659f1102183641761240 | e05e58417fb03a14d627bc80d09af3b2a0fcceab | refs/heads/master | 2016-09-05T23:35:43.792883 | 2014-03-25T16:32:01 | 2014-03-25T16:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/kerekare/workspace/care-o-bot/src/cob_driver/cob_utilities/common/include".split(';') if "/home/kerekare/workspace/care-o-bot/src/cob_driver/cob_utilities/common/include" != "" else []
PROJECT_CA... | [
"kerekare@i60sr2.(none)"
] | kerekare@i60sr2.(none) |
986b1f3251a5308712b090a8167d90ed2cdb9b59 | 1c6283303ceb883add8de4ee07c5ffcfc2e93fab | /Jinja2/lib/python3.7/site-packages/uhd_restpy/testplatform/sessions/ixnetwork/statistics/view/layer23trafficflowdetectivefilter/layer23trafficflowdetectivefilter.py | 55ef9c2492cdff0c2a063ba59e7c480e514620c1 | [] | no_license | pdobrinskiy/devcore | 0f5b3dfc2f3bf1e44abd716f008a01c443e14f18 | 580c7df6f5db8c118990cf01bc2b986285b9718b | refs/heads/main | 2023-07-29T20:28:49.035475 | 2021-09-14T10:02:16 | 2021-09-14T10:02:16 | 405,919,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,939 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 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, ... | [
"pdobrinskiy@yahoo.com"
] | pdobrinskiy@yahoo.com |
1519cd3690074f07ddfb744acb91bcd6f0e5a6a8 | 26e4bea46942b9afa5a00b9cde9a84f2cc58e3c9 | /pygame/Astar/pathfinding/Graph_old.py | bb30a06775a80a8af4ce9dfcaed88b9af6e2cc5d | [] | no_license | MeetLuck/works | 46da692138cb9741a913d84eff6822f107510dc7 | ab61175bb7e2ed5c5113bf150e0541ae18eb04c4 | refs/heads/master | 2020-04-12T05:40:25.143075 | 2017-08-21T17:01:06 | 2017-08-21T17:01:06 | 62,373,576 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,690 | py | from random import random
from colors import *
#bgcolor = lightgray
grid = [" * ",
" *** ",
" ",
"* ** ",
"* "]
def findNode(node,lst):
return node in lst
class Node:
def __init__(self):
self.adjacent = [] # UP,DOWN,LEFT,RIGHT(NWSE)
self.previous = Non... | [
"withpig1994@hanmail.net"
] | withpig1994@hanmail.net |
67473f9f435beec220fa067cf392d561ef7b110b | d8a766184f7d2e4379a9578b6bd01451f4434fd8 | /waynes_world/server.py | a8b013a456acdc8013c43b1f65b05507c9a6c9c7 | [] | no_license | YaoQ/zmq_examples | 1e9c386f3d8b51e04208bcededb8f64938a5200e | 631867073b79087c4bf94dff7ff3c57c113fc9a1 | refs/heads/master | 2020-11-30T13:03:08.111975 | 2011-06-03T21:16:59 | 2011-06-03T21:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py | #!/usr/bin/env python
import zmq
import time
ctx = zmq.Context()
# one socket
s1 = ctx.socket(zmq.PUB)
s1.bind("tcp://127.0.0.1:5566")
# another
s2 = ctx.socket(zmq.PUB)
s2.bind("ipc://*:5567")
while True:
print 'Camera 1?'
s1.send("Camera 1")
time.sleep(1)
print 'Camera 2?'
s2.send("Camera 2")... | [
"jd@j2labs.net"
] | jd@j2labs.net |
dce067bc85e5dd7a18bcdd69eac1544a142aeea7 | bc441bb06b8948288f110af63feda4e798f30225 | /micro_app_sdk/model/cmdb/import_result_pb2.py | 8d037a5e63e6e6059b267b9e37c5d661f6e72b1b | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,538 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: import_result.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protob... | [
"service@easyops.cn"
] | service@easyops.cn |
f5fd8782e0019eca47a63780daeffe1cc3d8151a | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/DescribeAccountStatRequest.py | 441a4ba9f7ebe95b0c92ae6eceecabc3eb80f86b | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 1,546 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
1dc9d34098975e3ff9b1f7711301a6527338634f | ed3fe7635eee9216e5a10ba6c2d13a79e1be7063 | /backend/mcgill_cc_22904/settings.py | e4d4ab42b8574080a66526ddcaf89cf696d230ce | [] | no_license | crowdbotics-apps/mcgill-cc-22904 | ce47ef45ccc84bedb11e869d6119c77dcc98eda7 | d24767a048d901d534f9006e2bcc8b3a0bde1495 | refs/heads/master | 2023-01-15T22:20:41.446718 | 2020-11-23T02:30:55 | 2020-11-23T02:30:55 | 315,179,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,017 | py | """
Django settings for mcgill_cc_22904 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/
"""
impo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
beab8a1339bc20303692c55f07feb5952073ef6f | 4e8ac215b672b333f19da87787c0d8768fee439e | /MIDI Remote Scripts/ableton/v2/control_surface/components/clip_slot.py | 59ee3f7c50483dd23ab00fb497f6df85cd15fa2f | [
"MIT"
] | permissive | aarkwright/ableton_devices | 593f47293c673aa56f6e0347ca6444b7fce2812a | fe5df3bbd64ccbc136bba722ba1e131a02969798 | refs/heads/master | 2020-07-02T08:11:21.137438 | 2019-08-09T13:48:06 | 2019-08-09T13:48:06 | 201,467,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,371 | py | # uncompyle6 version 3.3.5
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
# Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\components\clip_slot.py
# Compiled at: 201... | [
"apollo.arkwright@gmail.com"
] | apollo.arkwright@gmail.com |
dcf370a1bd6932ff3c4ff9bb217104dc2ff6961a | 2fc849ee16732463779d4445954941538828879a | /source/webapp/migrations/0001_initial.py | 04cf199a27d95189a00f4255ac850a68e5143e58 | [] | no_license | Aisuluu1405/python_group_3_homework_48_Aisulu_Dzhusupova | 83da037fc9200a1a213fdf0eb5b09ed2febae79a | d4272516816fb83ff4d8a1c64645a508aecf37ee | refs/heads/master | 2023-05-02T16:13:24.948710 | 2019-09-23T12:30:14 | 2019-09-23T12:30:14 | 210,325,979 | 0 | 0 | null | 2023-04-21T20:38:01 | 2019-09-23T10:19:38 | Python | UTF-8 | Python | false | false | 1,036 | py | # Generated by Django 2.2 on 2019-09-20 05:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(au... | [
"aisuluueco2009@yandex.ru"
] | aisuluueco2009@yandex.ru |
e432d89a1b17d0c1572e3c78718079a42a30ce0d | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/encoding/encodings/muxings/packed_audio/customdata/customdata_api.py | d4a1fef29ca90072435cc6650196696f08976147 | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 1,484 | py | # coding: utf-8
from __future__ import absolute_import
from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase
from bitmovin_api_sdk.common.poscheck import poscheck_except
from bitmovin_api_sdk.models.custom_data import CustomData
from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope
from ... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
f9552e5fb9ea367cd1fb32326b63cd871d695afb | 2b4668ba8ff74aa03d031786956c4d4802bfe02b | /util/samm_resolver.py | 5b5a982d47eede73c9a4c109120b5b22b97f4f1d | [
"BSD-3-Clause"
] | permissive | ioggstream/dsomm-orm | a8397ab6f73d46a0acfb8928ad7e835bef9b759a | 52c2040b1cb7263d568af548ab18acdcc3700292 | refs/heads/main | 2023-07-12T21:52:52.988267 | 2021-08-13T22:56:30 | 2021-08-13T22:56:30 | 360,102,120 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | #
# Parses yaml files contained in https://github.com/OWASP/samm/tree/master/Supporting%20Resources/v2.0/Datamodel/Datafiles
#
from pathlib import Path
import yaml
def read_yaml(f):
return yaml.safe_load(Path(f).read_text())
class SammResolver:
def __init__(self, basepath="."):
self.basepath = Path... | [
"robipolli@gmail.com"
] | robipolli@gmail.com |
dca2aacac1572c1ca6111998fa21040bca5af015 | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories_2to3/208513/kaggle-liberty-hazard-prediction-master/models/neighbors.py | 72c4ced2d31ec580b44e987575d068641d85f2de | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,990 | py | # import pandas as pd
# import numpy as np
# import pickle
# from sklearn import preprocessing
# from sklearn.cross_validation import train_test_split
# from sklearn.grid_search import RandomizedSearchCV
# from sklearn.neighbors import KNeighborsRegressor
# from sklearn.neighbors import KNeighborsClassifier
... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
a37cdc5d8eead8699cb0d2c774558b30f8df8ebc | a1a43879a2da109d9fe8d9a75f4fda73f0d7166b | /api/json/select_configs.py | 6bc4e323b127bc99231a8b7ccf6570f228d5d613 | [] | no_license | PaddlePaddle/benchmark | a3ed62841598d079529c7440367385fc883835aa | f0e0a303e9af29abb2e86e8918c102b152a37883 | refs/heads/master | 2023-09-01T13:11:09.892877 | 2023-08-21T09:32:49 | 2023-08-21T09:32:49 | 173,032,424 | 78 | 352 | null | 2023-09-14T05:13:08 | 2019-02-28T03:14:16 | Python | UTF-8 | Python | false | false | 19,416 | py | # Copyright (c) 2020 PaddlePaddle 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 app... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
24454c08c7717f816db15594fcbc51f9901da313 | c81377ee1e27d00f797fcf2ad68317ba42429ca5 | /LIZA_DAMIAN_CARLOS/PARA/bucle_para01.py | bf3b86c64c3c7a11735a0aed52813614fb771917 | [] | no_license | CARLOSC10/T07_LIZA.DAMIAN_ROJAS.CUBAS | 39c55f08a1178b611125979741a3538276fa5d40 | ad736fb83de76f6342f8d53b4b5acfe1ecc88b7f | refs/heads/master | 2020-09-16T14:24:40.571198 | 2019-12-19T23:41:21 | 2019-12-19T23:41:21 | 223,798,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | #REPETITIVAS "PARA" QUE MUESTRA LOS N PRIMEROS NUMEROS, N SE ESCRIBE POR TECLADO
import os
n=0
#ARGUMENTOS
n=int(os.sys.argv[1])
#INPUT VALIDA LOS DATOS
datos_incorectos=(n<0)
#WHILE
#MIESTRAS LOS DATOS SEAN INCORECTOS A LA CONDICION ENTRA EN WHILE
while(datos_incorectos==True):
n=int(input("DATOS INGRESADOS INV... | [
"clizad@unprg.edu.pe"
] | clizad@unprg.edu.pe |
fcba8acddc2b4aef40d9b982a26b8447898804b1 | 86fcd7e56f7409dc05fb1cc07496a38e39ef2607 | /vispy/testing/tests/test_testing.py | 8877a55354fc9b791914fe58aadeaef4537d012d | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain"
] | permissive | alexjc/vispy | a1622f7920df5f0ddd11acf56302896fabd5cb37 | 2e528cf3915c8274848d9f3662809485f3dbcf3f | refs/heads/master | 2021-01-15T08:57:01.427072 | 2014-12-08T20:02:11 | 2014-12-08T20:02:11 | 26,930,099 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2014, Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -------------------------------------------------------------------------... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
6b73a7ebd7255118b70d146fd4edfd385a9c5be8 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/I_to_M_Gk3_no_pad/pyramid_5side/bce_s001_tv_s0p1_L5/step10_a.py | 4c89cff43070f6c44cce8dc50a6ab3d7dbcdf9ed | [] | 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 | 135,209 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
760cb2fd39f86a9b39f87005d16dbdd0b0dc1846 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/water/java_level_reason/lot/president.py | 0dc9e9aba884377bf07220292becfd6d869e08ff | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
import http.client, urllib.parse
# **********************************************
# *** Update or verify the following values. ***
# **********************************************
# Replace the subscriptionKey string value with your valid subscription key.
host = 'api.microsofttranslator.com'... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
9b1be2255716dd81859aaf4f32c15e6443397f0a | a33a5d7d2a9b0b6030f39803553f2689f3d2c743 | /ml/vcwiz/training/trainer.py | 4024824cb15983e56849955a17f6b33eeebf0686 | [] | no_license | yasyf/vc | 6c1a4224d56049aff44f2ffa1c57922ccb7907ab | bd12d8b1248b008516b1547a693008428085de78 | refs/heads/master | 2023-01-10T08:39:34.285545 | 2019-07-29T10:20:31 | 2019-07-29T14:58:33 | 59,700,244 | 11 | 4 | null | 2023-01-09T20:04:34 | 2016-05-25T21:52:18 | Ruby | UTF-8 | Python | false | false | 1,826 | py | from abc import ABC, abstractmethod
import os, sys, tempfile
from google.cloud import storage
class Trainer(ABC):
def __init__(self):
self.model = None
self.output_path = None
self.upload_path = None
self.client = storage.Client(os.environ['GC_PROJECT_ID'])
self.bucket = self.client.bucket(os.e... | [
"yasyfm@gmail.com"
] | yasyfm@gmail.com |
98f34f3c1c4d17b6fb254028c9ec9441791c06b0 | 2bdee262d31ecb1e76f46096268dbd56cef6b100 | /Algorithms/tf2algos/ppo.py | 260f8d8b3e33d4bb3ac8b37fe11f677e6019b279 | [
"Apache-2.0"
] | permissive | hititan/RLs | 369addd20fb8fa38f33b03fb163afbaf686e10eb | 27cac450d5a8e1ac08f2a0573d87f7663c3d0468 | refs/heads/master | 2020-10-01T10:13:45.128686 | 2019-12-11T14:58:34 | 2019-12-11T14:58:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,768 | py | import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
import Nn
from utils.sth import sth
from utils.tf2_utils import show_graph, get_TensorSpecs, gaussian_clip_rsample, gaussian_likelihood_sum, gaussian_entropy
from Algorithms.tf2algos.base.on_policy import On_Policy
class PPO(On_Policy):
... | [
"271668153@qq.com"
] | 271668153@qq.com |
b679b28b5411bf945455ca4c62ff77c700dcf922 | 84b05857cbe74d190bdbee18d442d0c720b1b84d | /AlgoExpert_algorithms/Easy/FindThreeLargestNumbers/test_FindThreeLargestNumbersd.py | 1ab120e3c5754042ad18d7723c6535b5dafe7308 | [] | no_license | JakubKazimierski/PythonPortfolio | 1c8c7e7b0f1358fc42a2295b807d0afafd8e88a3 | 3aa62ad36c3b06b2a3b05f1f8e2a9e21d68b371f | refs/heads/master | 2023-06-01T01:16:22.897097 | 2023-05-15T01:05:22 | 2023-05-15T01:05:22 | 311,473,524 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | '''
Unittests for FindThreeLargestNumbers.py
January 2021 Jakub Kazimierski
'''
import unittest
import FindThreeLargestNumbers
class test_FindThreeLargestNumbers(unittest.TestCase):
'''
Class with unittests for FindThreeLargestNumbers.py
'''
# region Unittests
def test_ExpectedO... | [
"j.m.kazimierski@gmail.com"
] | j.m.kazimierski@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.