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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
902bff8182253dc5452804b38313cae134a0b77a | e24cdd3433911fb9e7193de488811c80d5b97746 | /ByTags/Design/362. Design Hit Counter.py | b74743e6ef81c7fa6ee85683eb7f02fb3da89e51 | [] | no_license | lynkeib/LeetCode | 753f6a07270d956ca802632edfb0480029fe6f51 | 8a82905d40b882b20a9b6f862942f8f3e4bebcf0 | refs/heads/master | 2021-06-16T11:33:17.830068 | 2021-02-18T07:17:20 | 2021-02-18T07:17:20 | 165,439,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,156 | py | class HitCounter(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.counter = [[0, i + 1] for i in range(300)]
def hit(self, timestamp):
"""
Record a hit.
@param timestamp - The current timestamp (in seconds granularity).
... | [
"liuchengyin1234@126.com"
] | liuchengyin1234@126.com |
360daec8504d31ef81d10f54ec8ad22ae5f25ff8 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /u9rnDxsJRDdvRmFai_5.py | 46788572927af8035136536ea75c987317eff0b3 | [] | 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 | 39 | py |
import re
pattern = 'best\sb\w+'
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
038a2afe4dbd87146aadaa7a5e7d1b80e3d07b78 | 0306bea08e9aab18f34a799ce8a73e86921f90f7 | /medium/EvaluareReversePolishNotation.py | f4166dc5308c8152784f3331a6b0a9e6cfd0e66d | [] | no_license | GeorgianBadita/LeetCode | 78686fde88ef65b64f84fb7c2a22ba37ef21b8d9 | e3b0571182369c5308e0c29fb87106bb0b0d615a | refs/heads/master | 2022-10-21T00:23:26.479943 | 2022-10-14T20:27:27 | 2022-10-14T20:27:27 | 251,733,951 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # https://leetcode.com/explore/interview/card/top-interview-questions-medium/114/others/823/
from typing import List
class Solution:
def __init__(self) -> None:
self.__operators = "+-*/"
def apply_operator(self, op1, op, op2):
if op == '+':
return op1 + op2
if op == '-'... | [
"geo.badita@gmail.com"
] | geo.badita@gmail.com |
28140476e361402bc2865261bdff072d090b730d | b5cba88ce8c86740c8c3453134610fd5bafbb8c4 | /Leetcode/17. Letter Combinations of a Phone Number/solution.py | d023f235fd394de279c5c4e274ffb3348e3e229f | [] | no_license | EduardoSantos7/Algorithms4fun | 55fcf9d515ea3b70b93298ac96a58d2ae68dee11 | 6ff182ed596b6322322b087f29e6ad98baec3f97 | refs/heads/master | 2023-07-23T01:38:08.216313 | 2023-07-23T01:35:58 | 2023-07-23T01:35:58 | 227,448,848 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | class Solution:
def letterCombinations(self, digits: str) -> List[str]:
if not digits:
return []
letters = {
'2': ['a', 'b', 'c'],
'3': ['d', 'e', 'f'],
'4': ['g', 'h', 'i'],
'5': ['j', 'k', 'l'],
'6': ['m', 'n', 'o'],
... | [
"eduardoluissd@gmail.com"
] | eduardoluissd@gmail.com |
550581cdb8b24a81f41dad30bf26ba3cb86a88a4 | 505963904ce8fedd73caf562ffe993feb98e1043 | /home/urls.py | 113b829e90992f2b6b7a4471dee27cb26be8ce71 | [] | no_license | madmax330/Jobin | 05f0c3be31c1fce10d8df48047affd78c57c45ed | b06d04878ff9f4de1bf9d8cd64cd1c4322610d31 | refs/heads/Develop | 2020-12-08T22:22:44.283964 | 2018-05-30T07:23:27 | 2018-05-30T07:23:27 | 67,643,755 | 0 | 2 | null | 2018-05-30T07:12:30 | 2016-09-07T21:07:10 | JavaScript | UTF-8 | Python | false | false | 1,426 | py | from django.conf.urls import url
from . import views
app_name = 'home'
urlpatterns = [
url(r'^$', views.index_view, name='index'),
url(r'^login/student/$', views.login_student, name='student_login'),
url(r'^login/company/$', views.login_company, name='company_login'),
url(r'^send/contact/message/$',... | [
"madmax330@yahoo.com"
] | madmax330@yahoo.com |
8bd8704b983c3d96858f8d0d288946e59f30920a | 10bfea81cdde6710c6abd4a4ef48a99112d286f8 | /crm/models.py | 7505c38e26858acf86545000549f77849846fab2 | [] | no_license | egAhmed/Django_KMA_Apps | f6b3971a5d2d08f91d7e6d2d76208db1e2877f4e | 83a7491b8c5afe6f60ab78d9bdb826b783c80d08 | refs/heads/master | 2022-12-02T10:28:09.526611 | 2020-08-18T13:24:19 | 2020-08-18T13:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | from django.db import models
from django.urls import reverse
# from django.contrib.admin import widgets
# from datetime import datetime
# from django.utils import timezone
# from django.utils.timezone import now
# Create your models here.
class Registration(models.Model):
name = models.CharField(max_length=150)
... | [
"aboobida2002@gmail.com"
] | aboobida2002@gmail.com |
d1acfdd2bd0014aee0b1f83318cc3cd27a0d2093 | db0b0935c069a877a7e583cc6cbbe006f3ea271d | /Section2/053.py | bc374f36e5ecb74356822b407f3291a39fd70eda | [] | no_license | partrita/biopython | 9294033c8809441190ea861e484b7678dbb2909a | a488559820980bd054b67395756e01cffa738965 | refs/heads/master | 2020-05-05T13:28:12.465422 | 2019-04-08T06:03:49 | 2019-04-08T06:03:49 | 180,078,766 | 4 | 1 | null | 2019-04-08T05:51:39 | 2019-04-08T05:51:39 | null | UTF-8 | Python | false | false | 180 | py | #053.py
a = [3, 5, 2, 1, 4]
b = [8, 10, 7, 6, 9]
print("sorted(a)")
print(sorted(a, reverse=True))
print("a")
print(a)
print("")
b.sort(reverse=True)
print("b.sort()")
print(b)
| [
"partrita@gmail.com"
] | partrita@gmail.com |
861c5f70e7ecb76286b4a0b2647c81904eed9c51 | 44b2743ff70ce0631e9714ce78c44720fa63a9ad | /app/config/urls.py | 00d26fff98d1af869b8364b221e013f52296ccf8 | [
"MIT"
] | permissive | hoelsner/product-database | 1b1b4db8e968f5bc149605093e4639c48a9ae1ad | c649569fb82bc4b0a5e9ef9615fff8a364ce652f | refs/heads/master | 2023-07-24T21:39:01.870692 | 2023-07-09T17:03:56 | 2023-07-09T17:03:56 | 43,767,455 | 43 | 27 | MIT | 2023-04-16T19:17:25 | 2015-10-06T17:44:50 | Python | UTF-8 | Python | false | false | 683 | py | """
Product Database Config URL configuration (namespace "productdb_config")
"""
from django.conf.urls import url
from app.config import views
# namespace: productdb_config
urlpatterns = [
# user views
url(r'^change/$', views.change_configuration, name='change_settings'),
url(r'^status/$', views.status, na... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
171a3cc32d02abfa9872ea2167a3e1182d2aae6a | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/consumption/latest/__init__.py | f3e9e2805ca06f72ddd2b242d2c80d0413d13a4a | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,283 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
# Export this package's modules as members:
from ._enums import *
from .budget import *
from .budget_by_resource_group_name import *
from .get_budget i... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
a709e84115ad3c609b6e6e41d13916caa6b916ed | 6044b98e65c38233fb587b3fd40290a7be0b4c6d | /uni_ticket/migrations/0036_ticketreply_read.py | 592ee30f86fc243801323666f87cac4ffb684a03 | [
"Apache-2.0"
] | permissive | libremente/uniTicket | f5bef4ff85edb03a799b5e87a49050becd1822fa | 6f41f0ce9bd0f1238bffcde1c4e12a38266c781b | refs/heads/master | 2022-04-23T05:21:39.528135 | 2020-04-22T16:11:29 | 2020-04-22T16:11:29 | 257,953,451 | 0 | 0 | Apache-2.0 | 2020-04-22T16:11:01 | 2020-04-22T16:11:00 | null | UTF-8 | Python | false | false | 393 | py | # Generated by Django 2.2.3 on 2019-07-30 09:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('uni_ticket', '0035_auto_20190725_1632'),
]
operations = [
migrations.AddField(
model_name='ticketreply',
name='read'... | [
"francesco.filicetti@unical.it"
] | francesco.filicetti@unical.it |
02ece8aff15fad1464676b60c95f4ee8493c447c | 31a928cff4960236923b6bc3b68e34bb2f46f470 | /ctc-executioner/setup.py | 768b03ff56cb33d23f6cf759647c444e12ae35e2 | [
"BSD-3-Clause"
] | permissive | webclinic017/ml_monorepo | 707df2afd2f986eb0721d26430e6135c917817c6 | 945f0a83d6b94282c547bb6f4805f3381ad9c16a | refs/heads/master | 2021-10-19T21:02:53.322944 | 2019-02-19T20:58:51 | 2019-02-23T20:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from setuptools import setup
setup(name='gym_ctc_executioner',
packages=['gym_ctc_executioner'],
version='0.0.1',
install_requires=['gym']
)
setup(name='gym_ctc_marketmaker',
packages=['gym_ctc_marketmaker'],
version='0.0.1',
install_requires=['gym']
)
| [
"tmichael.yu@gmail.com"
] | tmichael.yu@gmail.com |
e1be4b994675e0158566681530cd9169bb10ece9 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil447.py | b50d0c38f7773bb40682486d38291f1927f81bbc | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | # qubit number=2
# total number=83
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
27bb58ea731197cadd74122bc2818fb29224ab4e | 90d9610ab5a878966868858b1b261cb6be5f6f97 | /test/parser_test/log_line_test.py | e817f891780930044bfe3b69da50f507a998eeec | [] | no_license | torbjoernk/pfasst_py | fd4c68cd63592feca8c811b9d994c66a470b541c | 9309734a41a17ff0e617a242d1c8ebfd75a89698 | refs/heads/master | 2021-01-10T01:55:54.256722 | 2015-11-04T13:07:22 | 2015-11-04T13:07:22 | 45,114,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,411 | py | # coding=utf-8
"""
.. moduleauthor:: Torbjörn Klatt <t.klatt@fz-juelich.de>
"""
import datetime
import unittest
from pfasst_py.parser.log_line import LogLine
class LogLineTest(unittest.TestCase):
def setUp(self):
self.msg_normal = "04.11.2015 13:51:15,37 [PFASST , INFO , MPI 0] PFASST Prediction st... | [
"t.klatt@fz-juelich.de"
] | t.klatt@fz-juelich.de |
5631ee24c00d9fdae2e324a445b848c7cf580bf8 | 6a898e59343d0b3ea4f9580f489ef76d888b2b7e | /ecommerce/migrations/0010_stock_first_quantity.py | 61dafb7c5d1ec221bb519674e006100650c3d362 | [] | no_license | oujri/ecommerce | 4b08b0316671e24206e810a38728d71c77fdc396 | 3fd8095dd2ed771a6951ed7fff08ca11ef0b94a1 | refs/heads/master | 2020-03-19T03:39:36.002373 | 2018-06-01T22:09:31 | 2018-06-01T22:09:31 | 135,749,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 2.0.4 on 2018-05-05 00:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecommerce', '0009_auto_20180505_0126'),
]
operations = [
migrations.AddField(
model_name='stock',
name='first_quanti... | [
"anass.urh@outlook.fr"
] | anass.urh@outlook.fr |
ce29c2926f8ae832ab67ad03400bf494c196277d | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/semantic_segmentation/PSPNet/mmcv_replace/version.py | b67226251d80062997136a3247b76992815b9730 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"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 | 833 | py | # Copyright (c) Open-MMLab. All rights reserved.
__version__ = '1.2.7'
def parse_version_info(version_str):
"""Parse a version string into a tuple.
Args:
version_str (str): The version string.
Returns:
tuple[int | str]: The version info, e.g., "1.3.0" is parsed into
(1, 3, 0... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
1da3ef21d2bb5e19ae2f2df7650686cf980d2119 | bfa81e9ebd6c394fb7ff27afd063bca6e5cf48c1 | /signal_example/apps.py | daa5ee116228405237999efc5ff5f8cee079ea3a | [
"MIT"
] | permissive | bluebamus/django_miscellaneous_book | b0dea3b856323304faca1d41edb8f70f2b8c6455 | 22e0851b3a07aeef94bb723b334f036ed5c17f72 | refs/heads/main | 2023-07-09T17:15:56.206762 | 2021-08-11T10:36:47 | 2021-08-11T10:36:49 | 382,425,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.apps import AppConfig
class SignalExampleConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'signal_example'
| [
"bluebamus@naver.com"
] | bluebamus@naver.com |
a5a08d451a68ff1a255c4cf0f9c08783a001317a | 926b3c52070f6e309567c8598248fd5c57095be9 | /src/onnx/onnx/test/shape_inference_test.py | bdb1048542e988f7a7bdbed1a6310da680325c1b | [
"Apache-2.0"
] | permissive | fengbingchun/PyTorch_Test | 410f7cd2303707b0141d433fb9d144a961e1f4c8 | df5c2169f0b699bcd6e74adb4cb0e57f7dcd9348 | refs/heads/master | 2023-05-23T16:42:29.711338 | 2023-03-25T11:31:43 | 2023-03-25T11:31:43 | 167,339,907 | 15 | 4 | null | 2023-03-25T11:31:45 | 2019-01-24T09:24:59 | C++ | UTF-8 | Python | false | false | 228,993 | py | # SPDX-License-Identifier: Apache-2.0
from __future__ import annotations
from onnx import checker, helper, numpy_helper, TensorProto, NodeProto, GraphProto, ValueInfoProto, ModelProto, ONNX_ML, SparseTensorProto, TypeProto
from onnx.defs import ONNX_DOMAIN, ONNX_ML_DOMAIN, AI_ONNX_PREVIEW_TRAINING_DOMAIN
from onnx.he... | [
"fengbingchun@163.com"
] | fengbingchun@163.com |
ee2c193886ab22514a4005b23ceb595186d0e4bc | c68ca71a3ac9f62063e866ad3fe31be9e265835f | /Pycharm Lab04/grammar.py | fddb105697c460343abfa84e8a7495296a7b1c14 | [] | no_license | Victor-Alexandru/Formal-Languages-and-Compiler-Design | 971453887c2a83da434f7d622867fd6fd0615592 | d36eaf96d200183165c3ebd3a2240e34fcf39e7d | refs/heads/master | 2020-08-08T04:54:25.659844 | 2020-01-13T13:57:05 | 2020-01-13T13:57:05 | 213,719,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,867 | py | import re
import tokenize
#
# A is defined as G = (N, E, P, S) where:
#
# N = set of non-terminals
# E = set of terminals
# P = set of productions
# S = starting symbol
class Grammar:
@staticmethod
def parseLine(line):
equalPos = line.index('=')
rhs = line[equalPos + 1:].strip('\n').strip(' '... | [
"victor21cuciureanu@gmail.com"
] | victor21cuciureanu@gmail.com |
43504cf4ff2a416c1a81d72cfea563b923656089 | 792cceb9b573fdfff969404ded00448549e4aee7 | /overextends/templatetags/overextends_tags.py | 590b9e38862dbb754b27974876a34a6e959eeb85 | [
"BSD-2-Clause"
] | permissive | stefanw/django-overextends | bdc604bbe84664a844f76d10818630d554925834 | be53aaab7d7f9260c58ab22bcba1cf782c6224f3 | refs/heads/master | 2020-12-30T19:11:22.963138 | 2012-09-01T04:39:32 | 2012-09-01T04:39:32 | 12,434,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,730 | py |
import os
from django import template
from django.template import Template, TemplateSyntaxError, TemplateDoesNotExist
from django.template.loader_tags import ExtendsNode
from django.template.loader import find_template_loader
register = template.Library()
class OverExtendsNode(ExtendsNode):
"""
Allows the... | [
"steve@jupo.org"
] | steve@jupo.org |
ef3750605dc1ceb4f6039d5fb4f9de3f419c88ba | 58119a43f98d2d6387af04521ea6e577a12c3aed | /core/admin.py | 66d903c333e89d7d2c21040e1fc567afddea8c5e | [] | no_license | raysandeep/handly-backend | 21178b9580c3592d98c4b80bac7cbdcf704d6dba | 512767881ad0f04fb7870b8fa31241817aab1fe2 | refs/heads/master | 2022-12-24T22:34:59.807195 | 2020-09-29T22:17:43 | 2020-09-29T22:17:43 | 267,828,315 | 0 | 0 | null | 2020-05-29T10:16:06 | 2020-05-29T10:16:04 | null | UTF-8 | Python | false | false | 302 | py | from django.contrib import admin
from .models import (
Collections,
OutputFiles,
HandwritingInputLogger,
InputFile
)
# Register your models here.
admin.site.register(Collections)
admin.site.register(OutputFiles)
admin.site.register(HandwritingInputLogger)
admin.site.register(InputFile) | [
"rayanuthalas@gmail.com"
] | rayanuthalas@gmail.com |
1682bd0197cf6a3cb8c7dbd041d629157afe7f2d | 317d199d36556ecf5da06c660cb5cb655a86ea09 | /Challenges/lisas_workbook/test_lisas_worbook.py | cc41dc87422cb6364030a186007bf9a595fbeac5 | [] | no_license | baubrun/Challenges-PY | e109126a64a20128202e03c2ed359c179f523dcd | e2ca45cbca264f5790ce303807e25810a5d8d977 | refs/heads/master | 2022-12-17T03:24:43.308680 | 2020-09-14T12:37:24 | 2020-09-14T12:37:24 | 262,485,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | import pytest
from lisas_workbook import workbook
@pytest.mark.parametrize("n, k, arr, result",
[
(5, 3, [4,2,6,1,10], 4)
]
)
def test_workbook(n, k, arr, result):
assert workbook(n, k, arr) == result | [
"baubelf@gmail.com"
] | baubelf@gmail.com |
5180516dba72562eedf269560a7aef3602e6f7d9 | 0bf93a74ce5676e978f3ee79a98a1be90b0e20a5 | /htdocs/plotting/auto/scripts/__init__.py | 4a38e1e34555f0e92f3c8388885cd10dac45522d | [
"MIT"
] | permissive | claudemp/iem | 3c926361c55fde3265157e15bc5119d64dbf2418 | 557deb8c46342aa9a18ac56cba59345c072cf225 | refs/heads/master | 2021-04-06T13:39:08.352676 | 2018-03-12T20:58:14 | 2018-03-12T20:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,127 | py | """
Examples of widget types
dict(type='date', name='date2', default='2012/03/15', label='Bogus2:',
min="1893/01/01"), # Comes back to python as yyyy-mm-dd
"""
# Association of plots
data = {'plots': [
{'label': 'Daily', 'options': [
{'id': "108", 'mw': True,
"label": "Accumulated Station De... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
4c7cc1da3d3db48d74d8801ee92a4e8e292c1dc1 | 538ca338d88598c1c671c502d03b94781fbebdff | /thriftworker/utils/imports.py | 09ebd16a067c8e7e23e570bf62ed703035ec4809 | [] | no_license | gdeetotdom/thriftworker | e12c94ac05eebe1b28f157415d3d6072ecf77876 | c9b7554845a7f76de2e2076568e2fb779cacdfff | refs/heads/master | 2021-01-10T19:22:53.608418 | 2013-11-11T08:18:59 | 2013-11-11T08:18:59 | 5,068,927 | 1 | 1 | null | 2013-11-11T08:19:00 | 2012-07-16T15:03:37 | C | UTF-8 | Python | false | false | 3,550 | py | from __future__ import absolute_import
import os
import sys
import imp
import importlib
from contextlib import contextmanager
import six
def symbol_by_name(name, aliases={}, imp=None, package=None,
sep='.', default=None, **kwargs):
"""Get symbol by qualified name.
The name should be the ... | [
"lipindd@gdeetotdom.ru"
] | lipindd@gdeetotdom.ru |
52e850e88c68b715b9fff51b8ed2477e68d341f2 | 79140b67cac1f5c8e3eb3ab3e7ad65a3a98866e8 | /test/dnacode.py | a712a7e8dceed824582a9d407ad1ef22a93bd53f | [] | no_license | dlovemore/bible | 63c1eceed4a919f7a6d2dfb76b6b084d05c49612 | 2594a2414a66c0abedd1278fef805415a8793f28 | refs/heads/master | 2021-01-03T07:17:45.527017 | 2020-05-16T17:54:18 | 2020-05-16T17:54:18 | 239,975,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,549 | py | # >>> from dna import *
# >>> (Genesis[1]-Genesis[4]).midv()
# Genesis 2:22 And the rib, which the LORD God had taken from man, made he a woman, and brought her unto the man.
# Genesis 2:23 And Adam said, This is now bone of my bones, and flesh of my flesh: she shall be called Woman, because she was taken out of Man.
#... | [
"davidlovemore@gmail.com"
] | davidlovemore@gmail.com |
d0dc44857bee01a251fbea954848bda531caf3e6 | 857da13a653162cc8c83a7d53a254e2caa97836d | /tensorpac/io.py | 2e92c2212e409ac58f510be095da81bbd48b6f8a | [
"BSD-3-Clause"
] | permissive | EtienneCmb/tensorpac | 18a5e844826b7f63796276ec435d9dc43c440e40 | ac9058fd375d423757943810f613d63785fab85f | refs/heads/master | 2023-05-22T16:54:09.656836 | 2023-02-08T09:42:45 | 2023-02-08T09:42:45 | 93,316,276 | 70 | 18 | BSD-3-Clause | 2023-03-08T22:12:03 | 2017-06-04T13:47:18 | Python | UTF-8 | Python | false | false | 5,546 | py | """Define tensorpac logger.
See :
https://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output
"""
import logging
import sys
import re
BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
RESET_SEQ = "\033[0m"
COLOR_SEQ = "\033[1;%dm"
BOLD_SEQ = "\033[1m"
COLORS = {
'DEBUG': GREEN,... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
13cfc887befe8ef7649877ee07af76ae36b68717 | 86da8c4d616a78afc7cd09711b0151e5f852a8b8 | /pythonprograms/practice/set.py | ff360377c4e4240ec2d4af0caab010bd53b6dd66 | [] | no_license | sharijamusthafa/luminarpython | d1d3274d23d93af2c5e4db7d2652e8cb46b133aa | 8ebd75ea5f734e5061a7138153a2c6b1cd43a738 | refs/heads/master | 2022-12-23T22:45:40.194242 | 2020-10-07T16:40:09 | 2020-10-07T16:40:09 | 290,109,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | st1={1,2,3,4,5}
st2={3,4,6,7,8}
st3=st1.difference(st2)
print(st3) | [
"sharijamusthafa@gmail.com"
] | sharijamusthafa@gmail.com |
0d3b33c17b727ca246bacc1905cedb882f75f976 | ddf2274de833cbaa3422a0b4e1a6c70e98f9188f | /tensorflow/python/training/checkpointable/data_structures.py | c46af68155b596199a38969471c19fc697c90cab | [
"Apache-2.0"
] | permissive | TanguyUrvoy/tensorflow | 98b4534a3ecc2ce0738fc864386c9594148f4755 | ad683f866b465fa753731be283515bb0a67ad078 | refs/heads/master | 2020-04-16T14:49:40.864312 | 2019-01-14T14:51:47 | 2019-01-14T14:57:33 | 165,680,898 | 1 | 0 | Apache-2.0 | 2019-01-14T15:02:37 | 2019-01-14T15:02:36 | null | UTF-8 | Python | false | false | 28,048 | py | """Checkpointable data structures."""
# Copyright 2018 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/LICE... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a5aaebd396700872fe251036dd8234a37d473ff0 | c2b777fdd5b92aa4cbd25594b1ea877d6b280fc7 | /Max_number_of_zeroes.py | 19b4743d441dd8a5da8e493cf03a6223269ea584 | [] | no_license | pasbahar/python-practice | 2baa09c474fa5744a11dabcc75507f03cd75c6a5 | 23bcd774becaa720588feb7ba3cf6ea04aafcf86 | refs/heads/master | 2020-12-04T05:50:40.382790 | 2020-02-27T17:25:23 | 2020-02-27T17:25:23 | 231,641,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | '''Given an array of N values. Print the number which has maximum number of zeroes. If there are no zeroes then print -1.
Note: If there are multiple numbers with same (max) number of zeroes then print the Maximum number among them.
Input:
The first line of input contains an integer T denoting the number of test case... | [
"pasbahar@gmail.com"
] | pasbahar@gmail.com |
231e25b593f6a5a2a5edfe24195d3197dd43078b | affdd053d94ec566c783eafabfc2483e77cf9fa8 | /performer/fast_self_attention/fast_self_attention.py | 41096dc71ddc7d9f6a2799990e6d747bd6196e94 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | bobisai/google-research | 6cbf0fea8f2c6bd09f9e9db44ca981b9bf234535 | 8ee84eaf7afca5ef42c381d86fac3ca44b5922d2 | refs/heads/master | 2022-12-28T05:57:37.631395 | 2020-10-14T19:15:45 | 2020-10-14T19:23:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,090 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
3f3511e74c158e797b7e8a76947e005431c1e9d0 | 4bed85e00fb4031d3f35051f645b224ec471d56a | /shadertoy/tests/__init__.py | 3382ad5c3787e64f9f27c303cc44f571f61d61ae | [] | no_license | defgsus/shadertoz | 04a8d56881eef5ccaca347993bb46d3b21f4016a | 77d419063d590b9a1b271d09203226a8a8527efa | refs/heads/master | 2020-04-12T00:44:35.049566 | 2019-06-23T20:20:35 | 2019-06-23T20:20:35 | 162,210,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from .test_shadertoy_crawler_api import *
| [
"s.berke@netzkolchose.de"
] | s.berke@netzkolchose.de |
72f8e492f29ea42a868c04f17d46f40e698fae2b | b0c8e0cafa4a8916faab3cce65756ae91426c43f | /study/Python/Week3/BOJ_4811_강의현.py | 19de46f493609fe6e4c68e9e3a1f45dc0ea0fe68 | [] | no_license | Rurril/IT-DA-3rd | b3e3ec3c2a5efbc75b76b84e9002c27a0ba4a1c4 | 9985e237cb1b90e9609656d534e0ed164723e281 | refs/heads/master | 2022-07-22T15:26:39.085369 | 2021-11-23T13:30:06 | 2021-11-23T13:30:06 | 288,980,334 | 3 | 29 | null | 2020-11-05T10:25:30 | 2020-08-20T10:49:17 | Java | UTF-8 | Python | false | false | 451 | py | #알약
import sys
def pill(W,H):
if dp[W][H]>0:
return dp[W][H]
if W==0:
return 1
if W>0 and H==0:
dp[W][H]+=pill(W-1,H+1)
elif W>0 and H>0:
dp[W][H]+=pill(W-1,H+1)
dp[W][H]+=pill(W,H-1)
return dp[W][H]
while True:
n=int(sys.stdin.readlin... | [
"riverkeh@naver.com"
] | riverkeh@naver.com |
f997ff5c8dc2cf41a469ffa1bd14cc67aa74d335 | 7c5fb33929116bb77b438de3ead93b3978b5af71 | /alf/examples/mbrl_pendulum.py | 068e609c739320a78caa5b8f2e8628c80e621db8 | [
"Apache-2.0"
] | permissive | HorizonRobotics/alf | d6dac891322a81ccb7e2a9749139627b1eda28cb | b00ff2fa5e660de31020338ba340263183fbeaa4 | refs/heads/pytorch | 2023-08-21T18:51:41.370566 | 2023-08-16T00:07:22 | 2023-08-16T00:07:22 | 178,459,453 | 288 | 57 | Apache-2.0 | 2023-09-14T20:40:20 | 2019-03-29T18:44:07 | Python | UTF-8 | Python | false | false | 1,653 | py | # Copyright (c) 2020 Horizon Robotics and ALF Contributors. 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... | [
"noreply@github.com"
] | HorizonRobotics.noreply@github.com |
7e580cd084da27021bf20c0df03fca7023304f10 | 768058e7f347231e06a28879922690c0b6870ed4 | /venv/lib/python3.7/site-packages/numba/core/errors.py | f7bd215c811424896b1da3733c44869197e78dd1 | [] | no_license | jciech/HeisenbergSpinChains | 58b4238281d8c158b11c6c22dd0da82025fd7284 | e43942bbd09f6675e7e2ff277f8930dc0518d08e | refs/heads/master | 2022-12-18T08:04:08.052966 | 2020-09-29T12:55:00 | 2020-09-29T12:55:00 | 258,476,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,528 | py | """
Numba-specific errors and warnings.
"""
import abc
import contextlib
import os
import sys
import warnings
import numba.core.config
import numpy as np
from collections import defaultdict
from numba.core.utils import add_metaclass, reraise, chain_exception
from functools import wraps
from abc import abstractmethod
... | [
"jan@multiply.ai"
] | jan@multiply.ai |
673f2d850b90b20a67a00755f8a9e59b28f7324f | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /sagemaker_write_2/human-task-ui_create.py | eebb4a0b6530ac76c1e2b8f1be0de382851e94ff | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/create-human-task-ui.html
if __name__ ... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
c78f086df8711a95739b5f59b62912beb82f0281 | 8574853abe4cfe95b5e03e0b41cf23d1ed865509 | /pyqtgraph/ui_mainWindow.py | b5cadc315fd621cf5e8b4cdbaa0e70b6d0df7e37 | [] | no_license | neutrons/GUI_Tools | 7ae8b90aad2cc1dc129d75618fc820c1c362dcda | 34932a86545b9d52b2fa63f01c7950aebde54d78 | refs/heads/master | 2021-01-17T04:48:06.202029 | 2016-11-09T18:31:57 | 2016-11-09T18:31:57 | 28,240,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_mainWindow.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8... | [
"bilheuxjm@ornl.gov"
] | bilheuxjm@ornl.gov |
c4c4ad976f5a937b2721e07f86ceec98b86e7c4c | d82d8bce58a64e579e8a5e5d9e3fbc2b5274ea0a | /code/compile_list.py | ad8e5e99242fcfbfab31f7d23f459ca752478fb6 | [] | no_license | annayqho/IcBL-master-list | 2f58ad8fa092296d0c999dcca8b7700cb8f41ef7 | c9d3884411fbdcb6f607ac76af72e5625a4266ba | refs/heads/master | 2021-07-19T19:22:06.205001 | 2020-05-14T23:50:26 | 2020-05-14T23:50:26 | 163,516,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,091 | py | """ Compile a list of Ic-BL SNe """
import numpy as np
import requests
from astropy.table import Table
from astropy.time import Time
from astropy.coordinates import SkyCoord,Distance
from astropy.cosmology import Planck15
from astropy.io import ascii
DATA_DIR = "/Users/annaho/Dropbox/Projects/Research/IcBL/data"
d... | [
"annayqho@gmail.com"
] | annayqho@gmail.com |
c36c23782d5de4c8d32ff18fa5c495be5c8bbb9e | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventhub/azure-mgmt-eventhub/generated_samples/private_link_resources_get.py | 09d9cb10ccc2b1df74331b0170522555e172219b | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,568 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
c3f9cd65dcb33f02e8541e83d77676f71f7713de | 764e24bf9e8a4d68b3f06eb0e0b9e6c9140e72ba | /Deportes/Evento/form.py | c244a680e74e5c3e074d3387faf9f55f1eb7b198 | [] | no_license | efnaranjo6/Deportes | 27200d30f1f86364ed2d37f76342f63b657a5788 | 71f22790a8d059516aa35ac325cc9b284979712e | refs/heads/master | 2021-03-28T00:09:42.513669 | 2020-04-27T16:45:41 | 2020-04-27T16:45:41 | 247,819,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | from django import forms
from Evento.models import Evento
class Eventoform(forms.ModelForm):
class Meta:
model = Evento
fields = ['nombre']
labels = {'nombre ': 'ingrese el nombre'
}
widget={'nombre' : forms.TextInput(),
}
def __init__(self,*ar... | [
"efnaranjo6@misena.edu.co"
] | efnaranjo6@misena.edu.co |
0fe25c0230c5cbc00c32eedb12b54bfabfb330ae | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /experimental/mt_media/drivers/directsound/__init__.py | 17aadeb2836801d257ee41453f288279e24e81a4 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,147 | py | #!/usr/bin/python
# $Id:$
import ctypes
import math
import sys
import threading
import time
import pyglet
_debug = pyglet.options['debug_media']
import mt_media
import lib_dsound as lib
from pyglet.window.win32 import _user32, _kernel32
class DirectSoundException(mt_media.MediaException):
pas... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
46b2e0d46c51fbbd820fc3acb913dca4423c3fe0 | 3d2fa23d6df4f7e830ec0845f0f07c237eeed303 | /tests/test_noise.py | 1a82ff8603fe537f7a1fe92e5775c3f632700f6d | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | hbrunie/GalSim | 4e2595c5a8d65df3022acb9667ef20e50b737c33 | 332334a3e7593095779b22c789d7ad0c184d5261 | refs/heads/master | 2021-02-14T03:05:02.131834 | 2020-02-11T21:27:04 | 2020-02-11T21:27:04 | 244,760,764 | 0 | 0 | NOASSERTION | 2020-03-03T23:09:33 | 2020-03-03T23:09:32 | null | UTF-8 | Python | false | false | 35,521 | py | # Copyright (c) 2012-2019 by the GalSim developers team on GitHub
# https://github.com/GalSim-developers
#
# This file is part of GalSim: The modular galaxy image simulation toolkit.
# https://github.com/GalSim-developers/GalSim
#
# GalSim is free software: redistribution and use in source and binary forms,
# with or w... | [
"michael@jarvis.net"
] | michael@jarvis.net |
17568aee9cbf26702497d31f6ef8bf6bdd3b0a1c | cf197880ad947b1706ae2ca19fa7010cc2dd12b8 | /Algorithms/Chapter2_Fundamentals2/04_Character_Art.py | b26daab9076f8155875eeae2d5c2f620deedb91e | [] | no_license | KevinMichaelCamp/Python-HardWay | 9b8adb5be31729da8f52c956b4d0638a79715013 | 25f21f4fb8934edb13649fea3d5d15033332a7eb | refs/heads/master | 2020-03-26T12:59:15.938322 | 2020-01-02T01:27:37 | 2020-01-02T01:27:37 | 144,917,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # From star art - do the same but allow for character to be passed in as argument
def drawLeftStars(num, char):
text = ""
text += char * num
text += " " * (75 - num)
return text
def drawRightStars(num, char):
text = ""
text += " " * (75 - num)
text += char * num
return text
def drawC... | [
"kevinmichaelcamp@gmail.com"
] | kevinmichaelcamp@gmail.com |
61a8c8e94ab7bb78ec496570096aab6ab53d2709 | 78ef0d7736075ee33ac4230f47c078bbf2b0e014 | /joboffers/tests/test_models.py | dd0be5b07a29f6f9da0a8f9e15f4c7823f5fd09b | [
"Apache-2.0"
] | permissive | PyAr/pyarweb | e22e9350bf107329e5a79c2368fb182958a134d2 | 5f88d1ea0cea9bd67547b70dc2c8bbaa3b8b9d03 | refs/heads/master | 2023-08-31T10:24:53.220031 | 2023-08-29T16:21:57 | 2023-08-29T16:21:57 | 17,032,696 | 64 | 108 | Apache-2.0 | 2023-09-07T04:02:53 | 2014-02-20T19:28:31 | Python | UTF-8 | Python | false | false | 17,539 | py | import factory
import pytest
from datetime import date
from unittest.mock import patch
from django.contrib.contenttypes.models import ContentType
from django.contrib.sessions.backends.db import SessionStore
from django.db.utils import IntegrityError
from django.shortcuts import reverse
from django.utils.text import s... | [
"noreply@github.com"
] | PyAr.noreply@github.com |
291b9974fed522b446ecddbc35e473c3b12704c1 | 498474967e1480acf5cc0f25756e1d748c677195 | /mmdetection3d/mmdet3d/datasets/pipelines/data_augment_utils.py | 23b6aada74f4a7d27894228be2a3813e21b073ab | [
"MIT",
"Apache-2.0"
] | permissive | hustvl/MapTR | adc37f78cbae9d8c909dd8648088a4930bf55377 | feb0664e64684d3207859279f047fa54a1a806f6 | refs/heads/main | 2023-08-25T17:44:47.672149 | 2023-08-14T13:31:17 | 2023-08-14T13:31:17 | 518,672,305 | 643 | 95 | MIT | 2023-09-14T03:30:23 | 2022-07-28T02:20:43 | Python | UTF-8 | Python | false | false | 17,021 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numba
import numpy as np
import warnings
from numba.errors import NumbaPerformanceWarning
from mmdet3d.core.bbox import box_np_ops
warnings.filterwarnings('ignore', category=NumbaPerformanceWarning)
@numba.njit
def _rotation_box2d_jit_(corners, angle, rot_mat_T... | [
"cnliao62@gmail.com"
] | cnliao62@gmail.com |
59f7e0dc619c13fdb4d809743f30f6d88e72df7c | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_08_01/aio/operations/_express_route_ports_locations_operations.py | 4f8fd8e9b5f9c43e377a4b1f5bd034b2cdb2c574 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 7,901 | 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"
] | catchsrinivas.noreply@github.com |
dca9a6c7ed4c4e8ab5c5da27e4c28c00529a590e | 0111fa900ae348d9f06a4976567c7f3ab8b82be3 | /python/arbolBin.py | fbb13627c7728861f95e3ab72b6201555ab997d2 | [] | no_license | apdaza/universidad-ejercicios | 4e790f84637f8753a166a5318d21217161cbe0bc | 64a02fd7b63e2cd899a91297f652e2351ccbce2f | refs/heads/master | 2021-09-11T04:59:17.252072 | 2021-09-04T13:56:04 | 2021-09-04T13:56:04 | 86,726,523 | 6 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | class Nodo():
def __init__(self,val,izq=None,der=None):
self.valor = val
self.izquierda = izq
self.derecha = der
def inorden(arbol):
if arbol == None:
return []
else:
return inorden(arbol.izquierda)+[arbol.valor]+inorden(arbol.derecha)
def preorden(arbol):
if ar... | [
"apdaza@gmail.com"
] | apdaza@gmail.com |
e329ad301e71e357fe4efbf573cac5c78ea6436d | 83c92bdbab514a9630d74d24f91cbd77ec7e33f6 | /{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/production.py | f8de424d0459cfbb0f1e441344801a9075bcb14b | [] | no_license | dnmellen/cookiecutter-simple-django-sqlite | 2874f890858aac2bac923d22b03c702c93a5ee0f | 51b5128b6335acc464b572fec34f5c75427d97d0 | refs/heads/master | 2021-01-23T23:51:56.699451 | 2013-09-26T10:34:46 | 2013-09-26T10:34:46 | 13,118,893 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from .base import *
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('{{cookiecutter.author_name}}', '{{cookiecutter.email}}'),
)
MANAGERS = ADMINS
| [
"marcofucci@gmail.com"
] | marcofucci@gmail.com |
900763796b0f0666b1b4561b359127ee4227b144 | 799f7938856a320423625c6a6a3881eacdd0e039 | /lldb/test/API/lang/cpp/class-template-type-parameter-pack/TestClassTemplateTypeParameterPack.py | 88beac18e891abbb7f08e342f38989c7c35f5851 | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | shabalind/llvm-project | 3b90d1d8f140efe1b4f32390f68218c02c95d474 | d06e94031bcdfa43512bf7b0cdfd4b4bad3ca4e1 | refs/heads/main | 2022-10-18T04:13:17.818838 | 2021-02-04T13:06:43 | 2021-02-04T14:23:33 | 237,532,515 | 0 | 0 | Apache-2.0 | 2020-01-31T23:17:24 | 2020-01-31T23:17:23 | null | UTF-8 | Python | false | false | 4,146 | py | import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestCaseClassTemplateTypeParameterPack(TestBase):
mydir = TestBase.compute_mydir(__file__)
@expectedFailureAll(oslist=["windows"]) # Fails to read memory from target.
@no_de... | [
"teemperor@gmail.com"
] | teemperor@gmail.com |
dc244dc98111c4d6ce264ef5fb440adca03a7d4b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/3413.py | 2e81c2d19b8f1f7dccafdf9a831f4d28676309e6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py |
import sys
def switcher(string , num):
final_string = ''
if len(string) < num:
return False
for element in string:
if element == '-' and num > 0:
final_string = final_string + '+'
elif element == '+' and num > 0:
final_string = final_strin... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4175299a25cd5fffb0727a205562d11d2d0d6c10 | 624456f907a9cb5f8dbc8577a7400994272bc8c4 | /reports/dashboard.py | 2354b8a60ea2e3d45b3ecff0506f988ea4eae46f | [
"MIT"
] | permissive | YangZhang-GitHub/myems-api | 27a70fb76cfd3004cd84de0e94be26317211b5f7 | fc3f8087061310d6ae0aa19e1ef077a2fe2ccddf | refs/heads/master | 2023-03-11T04:38:58.177163 | 2021-01-21T02:43:46 | 2021-01-21T02:43:46 | 329,171,534 | 0 | 0 | MIT | 2021-01-19T07:31:28 | 2021-01-13T02:32:43 | null | UTF-8 | Python | false | false | 58,330 | py | import falcon
import simplejson as json
import mysql.connector
import config
from datetime import datetime, timedelta, timezone
from core import utilities
from decimal import Decimal
class Reporting:
@staticmethod
def __init__():
pass
@staticmethod
def on_options(req, resp):
resp.stat... | [
"13621160019@163.com"
] | 13621160019@163.com |
bbb9ab49c765200446265a8b66843165bf662912 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/c8697a4864f95672c58598eff207548b0bcc63e5-<__init__>-bug.py | f1f08670f92375243709b5a78775622ba949683e | [] | 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 | 776 | py | def __init__(self, argument_spec):
self.spec = argument_spec
self.module = None
self.init_module()
self.interface = self.module.params['interface']
self.mode = self.module.params['mode']
self.state = self.module.params['state']
self.access_vlan = self.module.params['access_vlan']
self.na... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
fa8f1549524f0eccd088d762cb8dca59fd07e621 | 3e99db7d6c910bf9776561802fe60256e74a375b | /virtual/bin/pip3.6 | 0f29a919e0407b2f0d9ee5eff4eaeacae0191e8f | [
"MIT"
] | permissive | margaret254/Awwards | 979f7a196b1f52ab0d9c9d6145df1f70703f497b | 9af3de00c4200b86c92b16b141a4642fe8f02c87 | refs/heads/master | 2022-05-17T03:51:46.146152 | 2020-01-17T12:49:14 | 2020-01-17T12:49:14 | 233,032,878 | 0 | 1 | null | 2022-04-22T22:59:00 | 2020-01-10T11:26:53 | Python | UTF-8 | Python | false | false | 250 | 6 | #!/home/moringa/Documents/django/Awwards/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"maggiemwas91@gmail.com"
] | maggiemwas91@gmail.com |
5f24fc903847f0ff1332cc359731d9f2f9efbdcc | fdf1e1f4efc51bc024311d44a2fa4524f9b88bce | /girleffect/countries/migrations/0051_p1_changes.py | 2cce8514dd59a78260aa4e6259c718870d2d8fee | [] | no_license | girleffect/girleffect.org | 8327ffd6bbd1103033c92fbd4cbe5461aa1c7f03 | 55731b1c024f207211a161fd6d3ca796beea7a61 | refs/heads/master | 2023-04-07T21:40:43.910892 | 2022-06-14T11:50:21 | 2022-06-14T11:50:21 | 112,452,828 | 1 | 2 | null | 2023-04-01T12:05:55 | 2017-11-29T09:13:18 | Python | UTF-8 | Python | false | false | 16,084 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-01-18 12:13
from __future__ import unicode_literals
from django.db import migrations, models
import girleffect.utils.models
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields
import wagtail.wagtaildocs.blocks
import wagtail.wagtailembeds.blo... | [
"francesca.sargent@torchbox.com"
] | francesca.sargent@torchbox.com |
74d87371bae04314db7cc6408b89dcbd74ccc9ab | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-config/huaweicloudsdkconfig/v1/model/__init__.py | 6c754c93f34dbc7c3033769264f1ce7cc41e9af4 | [
"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 | 23,171 | py | # coding: utf-8
from __future__ import absolute_import
# import models into model package
from huaweicloudsdkconfig.v1.model.account_aggregation_source import AccountAggregationSource
from huaweicloudsdkconfig.v1.model.aggregate_compliance_detail_request import AggregateComplianceDetailRequest
from huaweicloudsdkconf... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
3eae3203390b548511b0f67aaa046b3793f0e674 | caace044baf7a6f2b0bda65ae361eed06bddfc3c | /dailyQuestion/2020/2020-05/05-30/python/solution_mono_stack.py | c291e66a6dccdffb17a62db905e6b0ac18ddf515 | [
"Apache-2.0"
] | permissive | russellgao/algorithm | fd6126e89c40d7d351c53bbd5fde690c9be899ef | ad5e724d20a8492b8eba03fc0f24e4ff5964b3ea | refs/heads/master | 2023-03-28T03:00:02.370660 | 2021-03-28T10:56:38 | 2021-03-28T10:56:38 | 259,038,372 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # 单调栈
def largestRectangleArea(heights: [int]) -> int:
n = len(heights)
left, right = [0] * n, [0] * n
mono_stack = []
for i in range(n):
while mono_stack and heights[mono_stack[-1]] >= heights[i]:
mono_stack.pop()
left[i] = mono_stack[-1] if mono_stack else -1
mono_s... | [
"gaoweizong@hd123.com"
] | gaoweizong@hd123.com |
d65b720c7fe482af48ba1cb8dacd00f00571ed21 | dfffc423a768475e680f954e3eea6c944df965d5 | /main.py | 72aba8f9dea35dccd8ba3daf532a91ab0b87e329 | [] | no_license | ssfdust/wechatheadless | 13948ea86cfd7cb71d6cdea74fc4931b4d111843 | 544a8a74c5adcabb35b0828b52de49df43f222e1 | refs/heads/master | 2023-05-10T05:29:29.290177 | 2021-06-01T02:57:34 | 2021-06-01T02:57:34 | 372,156,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | from selenium import webdriver
from pathlib import Path
from selenium.webdriver.firefox.options import Options
from time import sleep
from selenium.common.exceptions import NoSuchElementException
import os
url_prefix = os.environ.get("INJECTOR_URL_PREFIX", "https://127.0.0.1")
injectjs = f"""
var script = document.cr... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
1c81599ad7026475eacd7d54f0fd2ea3bc926b78 | 6d8a42478faa8eedb7efcc60aeeeb3d34beb0fab | /lottery/models.py | adaf021fcbdd7f4206fbfd81fd8b4c07efa1f61a | [] | no_license | zjleifeng/lottery | 7509c45d39e71f3e47c4ffed18723335888a3c96 | bb6e7ba9acff0659a82d431bee17a2c6f7c65731 | refs/heads/master | 2020-04-11T11:00:44.328193 | 2018-07-05T15:47:14 | 2018-07-05T15:47:14 | 77,206,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,407 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2016/12/8 12:35
# @Author : eric
# @Site :
# @File : models.py
# @Software: PyCharm
from django.db import models
# Create your models here.
class Person(models.Model):
name=models.CharField(max_length=50,verbose_name=u'姓名')
tel=models.BigInte... | [
"zj@duetin.com"
] | zj@duetin.com |
8b9d544b0d8141bf0019d1b34f8dda0b58913596 | 83686519904694228204a481aa949ded7b4f65f8 | /Python/python_stack/Django/JDsTruckTracker/apps/truck_tracker/urls.py | 3580bb4c4738300c450ae5a810b1e56a2aebd98a | [] | no_license | andres121985/DojoAssignments | 5621a9253ab5113a5038f62474582a59fec11a27 | 62f525e8574628c72e01df5725a2495bdeb5d3a9 | refs/heads/master | 2021-01-23T12:44:48.501795 | 2017-06-02T18:40:33 | 2017-06-02T18:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^trucks$', views.trucks),
url(r'^addtruck$', views.add_truck),
url(r'^add$', views.add),
url(r'^delete$', views.delete),
url(r'^logout$', views.logout),
url(r'^login$', views.login),
u... | [
"rd@rubenduran.net"
] | rd@rubenduran.net |
bea3b00a62b7195cd1722b1ab7beea5807b6cd01 | ea94fc6a5c16f3266a7a48b005b3f10fef92c845 | /src/maths/nodes/ListNode.py | 90819c6904b829984f52466b69ed61fda4235ed3 | [
"MIT"
] | permissive | Grahack/Turing | ea340ee3f3db33a27bdf4a053f34f4c9bec525c3 | fad060121d45b91f82af8952dd9f64e5d7bd9ed2 | refs/heads/master | 2020-03-17T00:49:45.176435 | 2018-05-11T20:07:11 | 2018-05-11T20:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # -*- coding: utf-8 -*-
import util.html
from util.math import proper_str
from .AstNode import *
class ListNode(AstNode):
"""Identifier node
value -- value (list of AstNode)"""
value = None
def __init__(self, value: List[AstNode]):
super().__init__(True)
self.value = value
def ... | [
"zippedfire@free.fr"
] | zippedfire@free.fr |
2269e3f344eb0175a3534a568e2586a9132d6e67 | 2db5bf5832ddb99e93bb949ace1fad1fde847319 | /beginLearn/AndrewNg/exercise/c2/L_layer_network.py | 64efd67d5e58e163209f4e2f658bd28b8d10c20c | [] | no_license | RoderickAdriance/PythonDemo | 2d92b9aa66fcd77b6f797e865df77fbc8c2bcd14 | 98b124fecd3a972d7bc46661c6a7de8787b8e761 | refs/heads/master | 2020-04-06T17:36:46.000133 | 2018-11-15T07:07:03 | 2018-11-15T07:07:03 | 157,666,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import time
import numpy as np
import h5py
import matplotlib.pyplot as plt
import scipy
from PIL import Image
from scipy import ndimage
from exercise.c6.dnn_app_utils_v2 import *
def L_layer_model(X, Y, layers_dims, learning_rate=0.0075, num_iterations=3000, print_cost=False):
"""
Implements a L-layer neu... | [
"1371553306@qq.com"
] | 1371553306@qq.com |
fe8925b066e6f71c81f76db9c4cfec33be3c51fa | f22778fb83b4723dd3dbc26834a8475c4b8c442c | /nana_utils.py | d10f46774c1b1861c6af2babc1c15319ef167d3d | [] | no_license | innovationgarage/deprecated-PortPollution-AISreduction-dask | 070b3011b505de74b2126b83fa93a7bb0eace84c | d66cfa96529f54a6f12faa39560beab10d7ef5a8 | refs/heads/master | 2020-04-01T15:10:53.598911 | 2018-10-25T07:38:47 | 2018-10-25T07:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | import dask.distributed, distributed.client, dask.bag, daskutils.io.msgpack, daskutils.base, os.path, uuid, msgpack, daskutils.sort
#client = dask.distributed.Client('ymslanda.innovationgarage.tech:8786')
data = [uuid.uuid4().hex for a in range(0, 100000)]
s = daskutils.sort.MergeSort("/tmp/")
res = s.sort(dask.bag.fr... | [
"egil.moller@freecode.no"
] | egil.moller@freecode.no |
339a75ee64661331f4a5fd9250006afbdd1e8c4c | 1c390cd4fd3605046914767485b49a929198b470 | /leetcode/partition-equal-subset-sum.py | 6cceb12902e683d1ba9985b592a5f627bf4f9821 | [] | no_license | wwwwodddd/Zukunft | f87fe736b53506f69ab18db674311dd60de04a43 | 03ffffee9a76e99f6e00bba6dbae91abc6994a34 | refs/heads/master | 2023-01-24T06:14:35.691292 | 2023-01-21T15:42:32 | 2023-01-21T15:42:32 | 163,685,977 | 7 | 8 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | class Solution:
def canPartition(self, a: List[int]) -> bool:
s = sum(a)
if s % 2:
return False
f = [0 for i in range(s + 1)]
f[0] = 1
for i in a:
for j in range(i, s + 1)[::-1]:
f[j] |= f[j - i]
return f[s // 2] == 1 | [
"wwwwodddd@gmail.com"
] | wwwwodddd@gmail.com |
1f76ebb4e0a1abe77d320a39f677e53be6742b30 | 5b4b1866571453f78db5b06a08ff0eda17b91b04 | /test/vanilla/Expected/AcceptanceTests/ModelFlattening/modelflattening/operations/__init__.py | 97acfd337b399a280c13c5ee50b4e2c3f81f01c1 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | koek67/autorest.azure-functions-python | ba345f1d194ca7431daab1210a0cd801d4946991 | b0896d8aec6b0fd6f0bcb12ea8e0489652dc2783 | refs/heads/main | 2022-12-20T13:27:56.405901 | 2020-09-30T08:23:11 | 2020-09-30T08:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | 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 ... | [
"varad.meru@gmail.com"
] | varad.meru@gmail.com |
ef7a98380f2dc3cb9f4e993171957dd70c6761f7 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/scatter3d/error_x/_value.py | db1f336f929396b215dbe5a268a8760d26d12b9a | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 434 | py | import _plotly_utils.basevalidators
class ValueValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self, plotly_name='value', parent_name='scatter3d.error_x', **kwargs
):
super(ValueValidator, self).__init__(
plotly_name=plotly_name,
parent_name=pare... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
e000f3f97c731836cb809f51e139ba47ba132579 | ddf002d1084d5c63842a6f42471f890a449966ee | /basics/Python/Recursion/recursion_factorial.py | 09684087ef55e781859db5daf3d5512e54a8269a | [] | no_license | RaghavJindal2000/Python | 0ab3f198cbc5559bdf46ac259c7136356f7f09aa | 8e5c646585cff28ba3ad9bd6c384bcb5537d671a | refs/heads/master | 2023-01-01T23:56:02.073029 | 2020-10-18T19:30:01 | 2020-10-18T19:30:01 | 263,262,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | def fact(n):
if(n<=0):
return 1
else:
return n*fact(n-1)
n=int(input("Enter the Number : "))
print("Factorial of ",n," is = ",fact(n))
input()
| [
"40332753+RaghavJindal2000@users.noreply.github.com"
] | 40332753+RaghavJindal2000@users.noreply.github.com |
f928f4e34606749623dbabda74342d7c8d15021e | 56fd2d92b8327cfb7d8f95b89c52e1700343b726 | /examples/notebooks/rebalance_etfs/strategy.py | d5636616438b0a536a14bc605986acb7f768e20f | [
"MIT"
] | permissive | stjordanis/Odin | fecb640ccf4f2e6eb139389d25cbe37da334cdb6 | e2e9d638c68947d24f1260d35a3527dd84c2523f | refs/heads/master | 2020-04-15T09:13:17.850126 | 2017-02-09T00:25:55 | 2017-02-09T00:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | import pandas as pd
from odin.strategy import AbstractStrategy
from odin.strategy.templates import BuyAndHoldStrategy
from odin.utilities.mixins.strategy_mixins import (
LongStrategyMixin,
TotalSellProportionMixin,
AlwaysBuyIndicatorMixin,
NeverSellIndicatorMixin,
DefaultPriorityMixin,
DefaultFe... | [
"jamesbrofos@gmail.com"
] | jamesbrofos@gmail.com |
8ad8780e0d55bc33de20a87a14f2635eba86d737 | dfcd2ab21b4b87b15a908cae58650eb8f4e34539 | /accounts/views.py | 542b21c365142be1d526953ce0c17e0b83451680 | [] | no_license | janak29292/esnayproductions | 29a73eb064165e80a4729cf4b26095cb6dfb09f1 | 762dfa02630668ed97f86760c3b20824cf89d6b2 | refs/heads/master | 2023-02-27T23:10:44.697353 | 2021-02-06T09:44:04 | 2021-02-06T09:44:04 | 325,578,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,932 | py | from django.http import Http404
from django.shortcuts import render
# Create your views here.
from accounts.models import Team, Portfolio, PortfolioCategory, Blog
def index(request, *args, **kwargs):
team_players = Team.objects.all()
portfolios = Portfolio.objects.filter(active=True)[:11]
cat... | [
"doon.29292@gmail.com"
] | doon.29292@gmail.com |
bef0ca1abde4a21dfb30146a13f94cc01fc77e1e | 1c40a5b1e7ffb7ffed2cfe831c1686aa4af82284 | /omm/analysis/aes/aes_excel_bio.py | f4ccead5ecbb61b5ce170fb185f60b30a91a0d48 | [] | no_license | rhodges/oregon-marinemap | 3c4bb3c13f15ec5f2efd405b0006c8a85d3b42b0 | 4a3797f507a48fd158be5f751fa0ca8c24a47cb7 | refs/heads/master | 2016-09-05T17:49:44.702600 | 2011-11-04T15:56:18 | 2011-11-04T15:56:18 | 32,354,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import xlwt
from analysis.excel.utils import major_heading_style
from analysis.excel.biology import bio_terrestrial_headers, bio_terrestrial_data, bio_intertidal_headers, bio_intertidal_data, bio_subtidal_headers, bio_subtidal_data
def populate_bio_sheet(ws, context):
bio_header(ws, context)
bio_terrestrial_he... | [
"sfletche@gmail.com"
] | sfletche@gmail.com |
1001396875ee79948e767bf2febdfa60c88bc214 | f8b36ef6debb317e7213346b11df932eb3b6af35 | /winner's code/2nd_code.py | 10725b67993d69c10ebc395d4d75d088bba13d60 | [] | no_license | YoungriKIM/lotte | ec767eb5eaa8f13f38115f1c30d25ed5bac7ef2b | e3ceda9918210ee418269d1586ec200ce9d9ca33 | refs/heads/main | 2023-03-30T15:44:00.387934 | 2021-03-29T13:16:44 | 2021-03-29T13:16:44 | 348,300,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # 롯데정보통신 Vision AI 경진대회 - Public LB 2nd place Solution
# https://dev-hunmin.tistory.com/entry/%EB%A1%AF%EB%8D%B0%EC%A0%95%EB%B3%B4%ED%86%B5%EC%8B%A0-Vision-AI-%EA%B2%BD%EC%A7%84%EB%8C%80%ED%9A%8C-Public-LB-2nd-place-Solution
# 깃허브
# https://github.com/hunmin-hub/LotteVisionAI | [
"lemontleo0311@gmail.com"
] | lemontleo0311@gmail.com |
e5c47acc73444f8227a478fe41b8fe625e1f7218 | 8a03b8459902d1bf0806f8d3387fb962bb57cf58 | /Testscripts/click_on_crcreports.py | 79a662d8d429268a4b00cb60ea7b5510f66d6cd5 | [] | no_license | chetandg123/cQube | f95a0e86b1e98cb418de209ad26ae2ba463cfcbc | a862a1cdf46faaaff5cad49d78c4e5f0454a6407 | refs/heads/master | 2022-07-18T12:43:06.839896 | 2020-05-22T13:23:52 | 2020-05-22T13:23:52 | 258,089,042 | 0 | 0 | null | 2020-05-08T16:28:26 | 2020-04-23T03:55:52 | HTML | UTF-8 | Python | false | false | 1,033 | py | import time
import unittest
from selenium import webdriver
from selenium.webdriver import ActionChains
from selenium.webdriver.support.select import Select
# script to click on crc reports
from Data.Paramters import Data
class CRC(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome(Data.... | [
"chetan.goudar@tibilsolutions.com"
] | chetan.goudar@tibilsolutions.com |
463fb4daf35270c14d78f343872184d855614ad0 | 6f562994c50361ceebe1e806653ff329ce2ea06c | /Code/mar_14/page2.py | e0e722b06740c8badb19c5b166e00c69b04025a5 | [] | no_license | ManishaHingne/PythonML | aaef74ca0cab84e7dca0e1e829768e737b4cc7af | 17623a0699d3f7719c73fbe8e9f0bef7b69e8aec | refs/heads/master | 2020-05-21T15:35:09.785203 | 2019-05-11T06:21:09 | 2019-05-11T06:21:09 | 186,094,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [20, 29, 21, 22, 21]
plt.plot(x, y)
plt.savefig('./images/chart1.png')
# plt.show()
| [
"you@example.com"
] | you@example.com |
c5962280fb2ab8ba6cb8738531e6d1ec77fdffce | 06b2eed882d8d7034fb7c57b648d5aa37d7f617b | /pycharmproject/django-rest/auth_ob/ob1/ob1/wsgi.py | c71ef1ec2bd6bbd96df7e830582e77a0b3fb725d | [] | no_license | 1974410167/python_projects | 558e2e7a4ea66b083ebd6d2f808b725e1bd153d6 | 81a97cbf41de12bdc3dbc46edf2931075ac4f758 | refs/heads/main | 2023-06-22T09:41:22.038620 | 2023-06-09T15:09:44 | 2023-06-09T15:09:44 | 355,036,534 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
WSGI config for ob1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTINGS_... | [
"1974410167@qq.com"
] | 1974410167@qq.com |
65848bc4fcbe36380c69d094d6413ad41f733a82 | c99c272181eb43df688cc6af10bfb17659014ab9 | /01_Python-Basics/Exercise2/venv/Scripts/easy_install-script.py | f0035179eada71584342a2c53231180b3c97981e | [] | no_license | LachezarKostov/SoftUni | ce89d11a4796c10c8975dc5c090edecac993cb03 | 47559e9f01f7aabd73d84aa175be37140e2d5621 | refs/heads/master | 2023-01-29T20:49:57.196136 | 2020-12-10T12:34:09 | 2020-12-10T12:34:09 | 283,491,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!C:\Users\dream\Desktop\Python\Exercise2\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\... | [
"68952160+LachezarKostov@users.noreply.github.com"
] | 68952160+LachezarKostov@users.noreply.github.com |
429e24ce3134c6a853d16b512de97706843ab40a | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/scrapy/utils/http.py | 6e20649f5181a54d6d1787f641e3ac42ad182e66 | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | """
Transitional module for moving to the w3lib library.
For new code, always import from w3lib.http instead of this module
"""
import warnings
from scrapy.exceptions import ScrapyDeprecationWarning
from scrapy.utils.decorators import deprecated
from w3lib.http import * # noqa: F401
warnings.warn("Mo... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
d24bb4ef7f0abf71c58f7e83c21133ec8c481125 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/lxxjin012/ndom.py | 3ddda13fca45dc51450355becc52d34ba11c8df0 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | def ndom_to_decimal (a):
x=str(a)
if len(str(a))==1:
digit1=int(str(a)[0])*1
number=digit
elif len(str(a))==2:
digit2=int(str(a)[0])*6
digit3=int(str(a)[1])*1
number=digit2+digit3
elif len(str(a))==3:
digit4=int(str(a)[0])*36
digit5=int(... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
1bbd9872d8797ac523e3882012ec1954661bbb15 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/synapse/v20210601preview/list_integration_runtime_auth_key.py | 6ba5abeaa2f156a92731038bf8807a01933558a9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,096 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
dea54118e83a7cbf3499e2efc569d2e35c8355b5 | 680bd46e8eae20e78a425f766432711a47235374 | /models/site_monitor_checkpoint.py | a48c4844c14f12ba8c06fcc5feafa3d14d250fd4 | [
"Apache-2.0"
] | permissive | ILMostro/lm-sdk-python | 9f45217d64c0fc49caf2f4b279a124c2efe3d24d | 40da5812ab4d50dd1c6c3c68f7ea13c4d8f4fb49 | refs/heads/master | 2022-02-01T16:51:12.810483 | 2019-07-16T17:54:11 | 2019-07-16T17:54:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,061 | py | # coding: utf-8
"""
LogicMonitor REST API
LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account... | [
"bamboo@build01.us-west-1.logicmonitor.net"
] | bamboo@build01.us-west-1.logicmonitor.net |
c751ad79e8fae529b101b6f67f960895117723a7 | 890c8b8e90e516a5a3880eca9b2d217662fe7d84 | /armulator/armv6/opcodes/arm_instruction_set/arm_data_processing_and_miscellaneous_instructions/arm_extra_load_store_instructions/ldrsb_literal_a1.py | 5b2ac9460c52668437168816a8f42ea9fd81d9d8 | [
"MIT"
] | permissive | doronz88/armulator | b864135996f876c7857b79a314d4aa06cc19c549 | 0294feac2785c8947e5943ac0c34f941ee4b5fff | refs/heads/master | 2022-11-05T08:14:42.405335 | 2020-06-18T23:53:17 | 2020-06-18T23:53:17 | 273,363,061 | 2 | 0 | null | 2020-06-18T23:51:03 | 2020-06-18T23:51:02 | null | UTF-8 | Python | false | false | 825 | py | from armulator.armv6.opcodes.abstract_opcodes.ldrsb_literal import LdrsbLiteral
from armulator.armv6.opcodes.opcode import Opcode
class LdrsbLiteralA1(LdrsbLiteral, Opcode):
def __init__(self, instruction, add, imm32, t):
Opcode.__init__(self, instruction)
LdrsbLiteral.__init__(self, add, imm32, t... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
eab2c83f1f6b77cae668f340fa4e8d50c06049c8 | 263fb97b6ab614f1e25533ba30b37ef94c0a2e81 | /parser/team08/Tytus_SQLPARSER_G8/Instrucciones/FunctionBinaryString/GetByte.py | e8dcc14bd94144d729a4212ee31d0bef1bb7f35c | [
"MIT"
] | permissive | ElbaAlvarez/tytus | f77e57df2338270b331172e270e2e44a94b68d2e | 795e660f3005d4fac5cb68af92b178ba1318e96e | refs/heads/main | 2023-02-12T08:55:32.347236 | 2020-12-24T14:00:06 | 2020-12-24T14:00:06 | 320,481,467 | 0 | 0 | MIT | 2020-12-11T05:57:41 | 2020-12-11T05:57:41 | null | UTF-8 | Python | false | false | 459 | py | from Instrucciones.TablaSimbolos.Instruccion import Instruccion
class GetByte(Instruccion):
def __init__(self, valor, tipo, linea, columna):
Instruccion.__init__(self,tipo,linea,columna)
self.valor = valor
def ejecutar(self, tabla, arbol):
super().ejecutar(tabla,arbol)
bytes(se... | [
"michikatrins@gmail.com"
] | michikatrins@gmail.com |
7cd9427d739426a4e43e28b4b98aceceb117c961 | 051c3ee44478265c4510530888335335ec9f7fdf | /ML_Applications/CNNs/Mutants/Mutants_generated_by_MutPy_(code)/mutants_resnet/mutants_resnet_model_VERML_basedOn_nas_fix4_deterministic/187.py | 3228e7750ebd955620d2f820d99d0a269bfc2ddf | [] | no_license | PinjiaHe/VerifyML | b581c016012c62d8439adfce0caef4f098b36d5e | 3bd7c49e45720c1cdfe0af4ac7dd35b201056e65 | refs/heads/master | 2020-03-25T19:40:39.996370 | 2018-01-30T08:58:58 | 2018-01-30T08:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,660 | py | """Contains definitions for the preactivation form of Residual Networks.
Residual networks (ResNets) were originally proposed in:
[1] Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Deep Residual Learning for Image Recognition. arXiv:1512.03385
The full preactivation 'v2' ResNet variant implemented in this modu... | [
"anurag.bms@gmail.com"
] | anurag.bms@gmail.com |
58b4e869b8fbf743ba16b0be22137d18b172cdf6 | 7d43ba52d958537905cfdde46cc194a97c45dc56 | /ProgrammingParadigms/OOP/SOLID/solid_workbook.py | 361c598c444742f3305a9a384d65f599a2f7e871 | [] | no_license | Koshmatova/workbook | 3e4d1f698a01f2be65c1abc83ee251ebc8a6bbcd | 902695e8e660689a1730c23790dbdc51737085c9 | refs/heads/master | 2023-05-01T02:30:46.868027 | 2021-05-10T03:49:08 | 2021-05-10T03:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | СТРУКТУРНАЯ ПАРАДИГМА
Дейкстра -> ЛЮБОЙ алг можно выразить через 3 способа выбора команд:
линейное exe
ветвление по усл
exe цикла при exe условия
#рекомендовал использовать only их
Никлаус Вирт -> Алгоритмы + Структуры данных = Программы
возможность записать подпрограмму в v ПРИНАДЛЕЖ даже asm
ИНКАПСУЛ... | [
"mkone112@gmail.com"
] | mkone112@gmail.com |
ee0a8b4383627724adac95c5b9fe794045bbd923 | 2c9db62ddaffd77c097b3da4990021270912ea40 | /백준/1966.py | 757df2ca0f3b4c3cc1fd65161b5b06dc6f61a950 | [] | no_license | nahyun119/algorithm | 9ae120fbe047819a74e06fc6879f55405bc9ea71 | 40e291305a4108266073d489e712787df1dbae4b | refs/heads/master | 2023-08-27T23:18:44.133748 | 2021-10-03T11:32:12 | 2021-10-03T11:32:12 | 326,661,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | import sys
import heapq # -> 기본적으로 min heap이므로 max heap을 구현하려면 우선순위에 -1을 곱한다.
from collections import deque
input = sys.stdin.readline
result = []
def solve():
global result
n, m = map(int, input().split())
documents = list(map(int, input().split()))
q = deque()
answer = []
for i in ran... | [
"nahyun858@gmail.com"
] | nahyun858@gmail.com |
615be1b30f756944ef2e0597b47f152d45a6918d | 11ca0c393c854fa7212e783a34269f9dae84e8c7 | /Python/785. 判断二分图.py | 0ac82063c14ffcf55dc1f21b8d60715c5a8a6092 | [] | no_license | VictoriqueCQ/LeetCode | dc84d81163eed26fa9dbc2114bba0b5c2ea881f4 | a77b3ead157f97f5d9599badb4d4c5da69de44ba | refs/heads/master | 2021-06-05T06:40:24.659909 | 2021-03-31T08:31:51 | 2021-03-31T08:31:51 | 97,978,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,622 | py | from typing import List
import collections
class Solution:
def isBipartite(self, graph: List[List[int]]) -> bool:
n = len(graph)
UNCOLORED, RED, GREEN = 0, 1, 2
color = [UNCOLORED] * n
for i in range(n):
if color[i] == UNCOLORED:
q = collections.deque([i]... | [
"1997Victorique0317"
] | 1997Victorique0317 |
b275f191e0be5fa4db2b3ccde251feb3d9006183 | 03e3138f99f275d15d41a5c5bfb212f85d64d02e | /source/res/scripts/client/gui/Scaleform/daapi/view/lobby/techtree/nodes.py | 714f0eb3b7e577318cfd0270afe2a825647bcf3e | [] | no_license | TrenSeP/WorldOfTanks-Decompiled | e428728e7901146d0b599d02c930d70532232a97 | 1faa748acec1b7e435b657fd054ecba23dd72778 | refs/heads/1.4.1 | 2020-04-27T08:07:49.813023 | 2019-03-05T17:37:06 | 2019-03-05T17:37:06 | 174,159,837 | 1 | 0 | null | 2019-03-06T14:33:33 | 2019-03-06T14:24:36 | Python | UTF-8 | Python | false | false | 8,811 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/techtree/nodes.py
from gui.Scaleform.daapi.view.lobby.techtree.settings import DEFAULT_UNLOCK_PROPS
from gui.shared.formatters import getItemUnlockPricesVO, getItemPricesVO, text_styles, getItemRentOrR... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
54455505d3762eae077685337d9117b9749a5e0a | a7a115b000cd40be9378174777da4f1b56b99de0 | /web_crawl_book/demo4.py | 18d7d8d1d1b889b512a3291e57c3fc15f15cb7d1 | [] | no_license | fireinrain/python_spider | 316f7cc230989223e6177c5ba2443eba9b54a52a | 364273278efa6629ec7d79f86c2ce54555ff7691 | refs/heads/master | 2022-06-26T20:38:56.462771 | 2017-06-27T00:53:42 | 2017-06-27T00:53:42 | 60,531,584 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | #! /usr/bin/python3
# _encoding:utf-8_
# Written by liuzhaoyang
# wcontact:liu575563079@gmail.com
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import random
import datetime
import lxml
# 获取页面中的所有内链的列表
def get_inter_links(bsobj,include_url):
inter_links = []
# 找出所有以/为开头的链接
fo... | [
"575563079@qq.com"
] | 575563079@qq.com |
70a043697ede733abf2b38349e5054591c900233 | 17c280ade4159d4d8d5a48d16ba3989470eb3f46 | /16/data/ExoDiBosonResonances/EDBRTreeMaker/test/114.py | 4c26aa3c6bf43f3f5d6ceb82aa1b8b60e31ea6b2 | [] | no_license | chengchen1993/run2_ntuple | 798ff18489ff5185dadf3d1456a4462e1dbff429 | c16c2b203c05a3eb77c769f63a0bcdf8b583708d | refs/heads/master | 2021-06-25T18:27:08.534795 | 2021-03-15T06:08:01 | 2021-03-15T06:08:01 | 212,079,804 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 27,623 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process( "TEST" )
#process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True))
process.options = cms.untracked.PSet(wantSummary = cms.untracked.bool(True),allowUnscheduled=cms.untracked.bool(True))
#,
# SkipEvent = cms.untracked.vstring('P... | [
"c.chen@cern.ch"
] | c.chen@cern.ch |
fb47ce858e2a7f7448b2da3fcc9ab0fc47525d9e | b72ef2946dafccebf621afbc904fdc55b4bfb5c0 | /mlens/parallel/learner.py | 00946d8f73095136450f79ddf4f7a84b57f70e8b | [
"MIT"
] | permissive | JoshuaC3/mlens | 6b4da909e2f60d7736c36eddd90a871f31e227e5 | f2ea2e8b403e3e46581de37cc94092529a4dc54d | refs/heads/master | 2021-08-06T20:04:32.146766 | 2017-11-06T23:08:24 | 2017-11-06T23:08:24 | 108,462,155 | 0 | 0 | null | 2017-10-26T20:28:33 | 2017-10-26T20:28:33 | null | UTF-8 | Python | false | false | 33,015 | py | """ML-Ensemble
:author: Sebastian Flennerhag
:copyright: 2017
:license: MIT
Computational graph nodes. Job generator classes spawning jobs and executing
estimation on cross-validation sub-graphs.
"""
# pylint: disable=too-few-public-methods
# pylint: disable=too-many-arguments
# pylint: disable=too-many-instance-attr... | [
"sebastianflennerhag@hotmail.com"
] | sebastianflennerhag@hotmail.com |
7f7037fa21290dcb8418f1c9c2eeb83c713b4296 | 40d404e424489bb48c3673dee6664de64dbab39c | /myWebsite/.venv/lib/python3.8/site-packages/zope/annotation/attribute.py | 5c009ce2b71fbbf979a61e014fc06a8c534ed00c | [] | no_license | alyasamba/me | 07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1 | 978053c867181bad8eb316a0920ba290a7b1ceae | refs/heads/main | 2023-01-28T09:57:46.616285 | 2020-12-02T02:31:25 | 2020-12-02T02:31:25 | 315,935,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,466 | py | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | [
"sopesherifabdoulah@gmail.com"
] | sopesherifabdoulah@gmail.com |
98a489879ec8c353e34f3c02e3732f79b32f4943 | 12a012ace19a14fc2c4ce2daec7a9df94cd5d925 | /[1차] 비밀지도.py | 00fedf556e4d6eaf4e149b313258d139fa9b2ee1 | [] | no_license | newfull5/Programmers | a0a25fd72c0a8a7932122cb72e65b28ecd29ff71 | b880a8043427f6aa7dc72caa3e46b1f6584a8962 | refs/heads/master | 2022-12-28T13:46:52.215347 | 2022-12-12T13:50:53 | 2022-12-12T13:50:53 | 211,209,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,852 | py | '''
def solution(n, arr1, arr2):
answer1 = []
answer2 = []
answer = []
for arr in arr1:
if len(bin(arr)[2:]) != n:
answer1.append((n - len(bin(arr)[2:]))*'0' + bin(arr)[2:])
else:
answer1.append(bin(arr)[2:])
for arr in arr2:
if len(bin(arr)[2:]) != ... | [
"noreply@github.com"
] | newfull5.noreply@github.com |
445f3536583b311826de4e39ab680a8d10b37ae2 | 800b5166148d4e3cd03825d7d20e2900fbc6c789 | /report_form/migrations/0040_poorpeopledataform_offpoor_year.py | a92d794dfc6987387dfa5eac23d67a0145623cc5 | [] | no_license | JiSuPiaoYi/dawufupin | 4ffc979a93502eb576776673c98aaeb16021827e | 57756a501436fabe9b27ebca2e80e60932da30dc | refs/heads/master | 2020-04-07T11:37:35.728108 | 2018-11-20T09:09:50 | 2018-11-20T09:09:50 | 158,334,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2018-09-24 11:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('report_form', '0039_auto_20180924_0918'),
]
operations = [
migrations.AddFi... | [
"360510132@qq.com"
] | 360510132@qq.com |
022f87a546a6119342777ea2100ad81a1be36b7d | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather2_W_fixGood_C_change/train/pyr_6s/L4/step10_a.py | baa0b1da65dac66b042bc462388e0182438ca561 | [] | 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 | 148,472 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
747fccee4d243a477338db4e3c8eb9374a0b38f5 | 53181572c4b22df4b569a9901bcd5347a3459499 | /tuit_200202/py200306/review_input.py | 15b13efd525e58aa765a21602912b88ef25afaaa | [] | no_license | edu-athensoft/ceit4101python_student | 80ef067b77421fce76d04f778d5c6de8b12f676c | 33cfa438c062d45e8d246b853e93d3c14b92ff2d | refs/heads/master | 2020-07-30T01:04:21.084384 | 2020-07-27T02:21:57 | 2020-07-27T02:21:57 | 210,027,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | """
input
"""
# input()
# input("Prompt:")
my_input = input("Prompt:")
print(type(my_input))
num1 = float(input("Enter a floating number:"))
num2 = int(input("Enter an integer"))
| [
"lada314@gmail.com"
] | lada314@gmail.com |
5f9451699991e4faaa4b152a2074561f28165aa0 | 9dfb3372a1e4516d970a6e9d0a9fd8360580eae7 | /game/grafics/idea.py | c5d531d74ba20540c8a4411ceb550c78e140ef81 | [] | no_license | clambering-goat/cameron_pyton | d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c | df0b0365b86e75cfcfc2c1fc21608f1536a3b79f | refs/heads/master | 2021-07-14T20:37:37.021401 | 2019-02-28T07:52:11 | 2019-02-28T07:52:11 | 137,251,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | import pygame
from math import sin,cos,radians,atan,degrees,atanh
pygame.init()
y_size,x_size=500,500
screen = pygame.display.set_mode((y_size,x_size))
done = False
point_to_point_at=pygame.mouse.get_pos()
def distamnce(x,y,x2,y2):
x_main=x-x2
y_main=y-y2
c=x_main**2+y_main**2
c=c*0.5
pri... | [
"camerondrain@gmail.com"
] | camerondrain@gmail.com |
3d34fee17bcd028dc25f7a73358b7e5542e3f493 | 556db265723b0cc30ad2917442ed6dad92fd9044 | /tensorflow/python/kernel_tests/unicode_decode_op_test.py | bd38dae393cea070fc65ca2cc23d1490037e8758 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | graphcore/tensorflow | c1669b489be0e045b3ec856b311b3139858de196 | 085b20a4b6287eff8c0b792425d52422ab8cbab3 | refs/heads/r2.6/sdk-release-3.2 | 2023-07-06T06:23:53.857743 | 2023-03-14T13:04:04 | 2023-03-14T13:48:43 | 162,717,602 | 84 | 17 | Apache-2.0 | 2023-03-25T01:13:37 | 2018-12-21T13:30:38 | C++ | UTF-8 | Python | false | false | 32,207 | py | # -*- coding: utf-8 -*-
# Copyright 2018 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
#
# Un... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d0dfa176c55af006ba3041061a0a878a1418a113 | 3eb877ab6d9aba74c63acfc7d9dfe83fe77195ba | /google-cloud-sdk/lib/surface/compute/target_https_proxies/update.py | f648093f60593faf8dd500347de7363742e32be1 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Gilolume/HeuApplication | cd65267e6171277fc50f31a582b6ff6634758209 | e48c68ba9bc4f952b7bd5a0ba47f4c810ed56812 | refs/heads/master | 2022-11-25T06:18:47.892562 | 2017-11-24T09:21:16 | 2017-11-24T09:21:16 | 104,208,662 | 0 | 1 | null | 2020-07-25T12:32:09 | 2017-09-20T11:47:10 | Python | UTF-8 | Python | false | false | 7,762 | py | # Copyright 2014 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 ag... | [
"jeremy.debelleix@gmail.com"
] | jeremy.debelleix@gmail.com |
805db6ad18e36c63ce129addd2b726f9f329426d | 3d7039903da398ae128e43c7d8c9662fda77fbdf | /database/Node.js/juejin_1053.py | 331d195a313bfca90a59f4dac1a740d540c748d9 | [] | no_license | ChenYongChang1/spider_study | a9aa22e6ed986193bf546bb567712876c7be5e15 | fe5fbc1a5562ff19c70351303997d3df3af690db | refs/heads/master | 2023-08-05T10:43:11.019178 | 2021-09-18T01:30:22 | 2021-09-18T01:30:22 | 406,727,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,367 | py | {"err_no": 0, "err_msg": "success", "data": [{"article_id": "6844903954002755592", "article_info": {"article_id": "6844903954002755592", "user_id": "1662117313518663", "category_id": "6809637767543259144", "tag_ids": [6809640361531539470], "visible_level": 0, "link_url": "https://juejin.im/post/6844903954002755592", "c... | [
"www.1759633997@qq.com"
] | www.1759633997@qq.com |
df3a234e51d43397b86be585b6914f5ef896cd45 | 832852c679816673f708860929a36a20ca8d3e32 | /Configurations/ggH_SF/Full2016_nAODv4/maxDNN/comb_2j_dymvaOptim.py | ddfa9667d553dc87552a9171f6eafc15ee4d708f | [] | no_license | UniMiBAnalyses/PlotsConfigurations | c4ec7376e2757b838930dfb2615e1dc99a64e542 | 578fe518cfc608169d3418bcb63a8342d3a24390 | refs/heads/master | 2023-08-31T17:57:45.396325 | 2022-09-01T10:13:14 | 2022-09-01T10:13:14 | 172,092,793 | 0 | 13 | null | 2023-04-27T10:26:52 | 2019-02-22T15:52:44 | Python | UTF-8 | Python | false | false | 2,545 | py | # Combinations to use
#comb = {}
optim={}
##optim['dymva0p82'] = ' && dymva_dnn_2j > 0.82 '
##optim['dymva0p83'] = ' && dymva_dnn_2j > 0.83 '
##optim['dymva0p84'] = ' && dymva_dnn_2j > 0.84 '
#optim['dymva0p845'] = ' && dymva_dnn_2j > 0.845 '
#optim['dymva0p85'] = ' && dymva_dnn_2j > 0.85 '
optim['dymva0p8... | [
"davide.di.croce@cern.ch"
] | davide.di.croce@cern.ch |
c0fb52baf7c201286ee69e150f2b660a27dd829d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/CISCO-BITS-CLOCK-CAPABILITY.py | 8a27e62b2849984358771dd4ae5e8c6fbbd7289a | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,206 | py | #
# PySNMP MIB module CISCO-BITS-CLOCK-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-BITS-CLOCK-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 11:51:22 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python versio... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
060fce54f0cf1197aa859bd4e882a86f97d1a248 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/20fab7f2-5cc5-11e4-af55-00155d01fe08.py | 65e06e5eb7d8192e2b4c7cd3f1cdffd123911b50 | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | #!/usr/bin/python
################################################################################
# 20fab7f2-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
90780ca6d62b27da11a6b61560c01714020dd63d | d1ed040025811cce2533a7e55737eadc00bd15a9 | /shop/widgets.py | 84e21750c6450f92f338c5ecc50bc5985e6503d3 | [] | no_license | Code-Institute-Submissions/guillermo | 0dfa6aecab3e325c5bd30356557b710da6851deb | c6def675ac78e88fd20c86f59498d9251cf302a7 | refs/heads/master | 2023-01-15T11:38:35.306745 | 2020-11-10T21:09:41 | 2020-11-10T21:09:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.forms.widgets import ClearableFileInput
from django.utils.translation import gettext_lazy as _
class CustomClearableFileInput(ClearableFileInput):
"""
Shows thumbnail of current image and checkbox to remove it.
"""
clear_checkbox_label = _("Remove")
initial_text = _("Current Image")
... | [
"brachetta@me.com"
] | brachetta@me.com |
a99e6f4b0b71c257b8c163c1c1cf93f0172adcd4 | 07570ec33eb49effd9ed6af73214bac1b607038f | /client/swagger_client/models/domain_list.py | 4c04cf18e0a3344618f96b8efcd04ad9b132fceb | [
"MIT"
] | permissive | kakwa/certascale | d9998a66ba6a239ba5b5e537f12dabdd5876996c | 0df8da0f518506500117152fd0e28ee3286949af | refs/heads/master | 2020-03-29T09:24:32.794060 | 2019-01-30T14:06:10 | 2019-01-30T14:06:10 | 149,756,729 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | # coding: utf-8
"""
certascale API
Certascale API documentation # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from swagger_client.models.domain import Domain # noqa: F401,E501
... | [
"carpentier.pf@gmail.com"
] | carpentier.pf@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.