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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ec5e950344c99edf148ff71438bb35e99b3b29f | 65329299fca8dcf2e204132624d9b0f8f8f39af7 | /napalm_yang/models/openconfig/network_instances/network_instance/policy_forwarding/policies/policy/rules/rule/state/__init__.py | b7f28188826e26155aff4389cbaa827bfc94ebf9 | [
"Apache-2.0"
] | permissive | darylturner/napalm-yang | bf30420e22d8926efdc0705165ed0441545cdacf | b14946b884ad2019b896ee151285900c89653f44 | refs/heads/master | 2021-05-14T12:17:37.424659 | 2017-11-17T07:32:49 | 2017-11-17T07:32:49 | 116,404,171 | 0 | 0 | null | 2018-01-05T16:21:37 | 2018-01-05T16:21:36 | null | UTF-8 | Python | false | false | 22,120 | py |
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from decimal import Decimal
from bitarray import bitar... | [
"dbarrosop@dravetech.com"
] | dbarrosop@dravetech.com |
828a8ba97f1d9fbaddeb6a95c03d6331147ab776 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2494/60586/313709.py | dece5e2fbe54f2c6b73a7876421950dab76b7928 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | x=input()
if x=="[1,3,2,3,1]":
print(2)
elif x=="[2,4,3,5,1]":
print(3)
else:
print(x) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
970d1f55ec7af00a76cc77d234fbbdb727238328 | 43ae032297b492fbdf2df478588d2367f59d0b6b | /4 - Classes-inheritance-oops/8-classes-inheritance-multiple-classes.py | 14e655efe6e7abee7b0671b4f7bac92126fa490d | [] | no_license | thippeswamydm/python | 59fa4dbb2899894de5481cb1dd4716040733c378 | db03b49eb531e75b9f738cf77399a9813d16166b | refs/heads/master | 2020-07-05T06:57:18.575099 | 2019-10-23T04:30:27 | 2019-10-23T04:30:27 | 202,562,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Describes multiple inheritance of class from multiple classes
# Declaration of first parent
class Parent:
# Will not be accessible in the child class
__test = None
def __init__(self, val):
self.val = val
def printValFoo(self):
print(self.val)
# Will not be accessible in the child ... | [
"ganeshsurfs@gmail.com"
] | ganeshsurfs@gmail.com |
a583b094e10e271c7a87b12272c61dc1263274db | 350ade9361645f87d96589a0c90c76d8a951832b | /search.py | 103e3e43619fb4d0f0232b3c8f8036cdd866439b | [] | no_license | dongzeyuan/Practise | becf7c7ca15928213aa22ae15bd8b3f1f9b7dc8b | ecef4466d30c5c9e88e766b4f3df6db24959b9d3 | refs/heads/master | 2021-09-21T02:06:24.629708 | 2018-08-19T08:50:02 | 2018-08-19T08:50:02 | 119,028,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,776 | py | import wx
class ExamplePanel(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
# 创建一些sizer
mainSizer = wx.BoxSizer(wx.VERTICAL)
grid = wx.GridBagSizer(vgap=5, hgap=5) # 虚拟网格sizer,此处指定了行和列之间的间隙
hSizer = wx.BoxSizer(wx.HORIZONTAL)
self.quote = ... | [
"dongfujing88@gmail.com"
] | dongfujing88@gmail.com |
47aa7a1143dc899b2cb361cfd3a2c6ae4a5ca4db | 0ae8d4aa8171d46e3dab71adaa26127c01360b87 | /зарплата.py | e71ae2fa37007842dd5dd794928936ab2e769104 | [] | no_license | dasherinuk/classwork | f004f7587157171cdb1c65b1eb13a721feb6c00b | 8b2efc055409576c59da878d293d8df6fd9ffb8e | refs/heads/master | 2023-06-04T16:08:53.299460 | 2021-06-19T09:18:20 | 2021-06-19T09:18:20 | 297,706,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | array=[]
for i in range(3):
pay=int(input("Enter the pay"))
array.append(pay)
print(max(array)-min(array))
| [
"dasherpegusus@gmail.com"
] | dasherpegusus@gmail.com |
db221693696bd678140b5b4dffd264e3e5f29f9b | e3fe6ea7a67f19f35d3edc4e82a900f988a710d1 | /ML/regression/optimizer.py | b643b44b5a2f13b5ddebd8f647bb964b5519cff8 | [] | no_license | fooSynaptic/NLP_utils | 8258b857458d2021b4ead31680b06edaed031fcd | 9a02d3caf9f97b1fc777ffeefba87be7a44fe262 | refs/heads/master | 2022-08-29T03:45:01.977332 | 2022-07-28T15:09:12 | 2022-07-28T15:09:12 | 163,344,219 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # encoding=utf-8
# /usr/bin/python3
import numpy as np
"""vanilla linear regression with gradient descent"""
class linReg():
def __init__(self, num_inputs):
self.w = np.random.rand(num_inputs, )
self.b = np.random.rand(1, )
def squared_loss(self, y_hat, y):
squared_err = (y_hat - y.r... | [
"hujiaxin@ajmide.com"
] | hujiaxin@ajmide.com |
3a2edbe823a9eacb1fb0a386ff55ac1a2d103a78 | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/unittest/test/test_result.py | 84c64afbe56d6189144f44facf68bad105d3b19e | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 15,163 | py | # 2016.11.19 20:01:20 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/unittest/test/test_result.py
import sys
import textwrap
from StringIO import StringIO
from test import test_support
import traceback
import unittest
class Test_TestResult(unittest.TestCase):
def test_init(self):
resu... | [
"info@webium.sk"
] | info@webium.sk |
b020a784c22606793e17979f0014927a8ba9d5d7 | 0046667f824bc219fa369ee715c8a223cb729a74 | /hmm.py | 418583b938fc5a775459560d3fc5c2a280cca8e9 | [] | no_license | justttry/statisticallearning | 54933d7ee1ecad032ca3c0750812da8f07bf0dba | fef4d32ace845713b3701b1884056f6de3ce198d | refs/heads/master | 2021-01-17T04:54:59.989171 | 2017-02-27T08:30:38 | 2017-02-27T08:30:38 | 83,036,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,633 | py | #encoding:UTF-8
import unittest
from numpy import *
#----------------------------------------------------------------------
def calcForwardP(a, t, O, A, B):
"""
计算前向概率
Parameter:
t:t时刻
O:观测变量矩阵
a:t时的前向概率向量
A:状态转移概率矩阵
B:观测概率分布矩阵
Return:
a:t+1时的前向概率向量
"""
return multiply(... | [
"kerzhao@163.com"
] | kerzhao@163.com |
8a9bb8495e53836929e9fd749a53a604f9cec9a4 | 43fac2df4893f5b5448dd64f3c9e59ddebca7efe | /andromap/polytools.py | d8d3e5933a73f9d6a0e4bb11d12400f27bf2b6e7 | [
"BSD-3-Clause"
] | permissive | jonathansick/andromap | 8a159eb7a85ab5ea7602cdff1755ba411ef38d97 | b8905a39e0a45c7d803e45ce9a78c64ecac00bee | refs/heads/master | 2021-01-18T23:01:36.996791 | 2017-01-27T05:32:06 | 2017-01-27T05:32:06 | 14,810,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Tools for working with polygons through shapely
2013-12-11 - Created by Jonathan Sick
"""
from shapely.geometry import Polygon, MultiPolygon
from shapely.ops import cascaded_union
import numpy as np
def close_vertices(polygon):
"""Make the last vertex the same as the ... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
3a5c2d05027ad0b4d276f391d8f18fc7563905d0 | ba0731b2dbc4c1529eaaa79811ec15754c19b4cd | /extractors/refextract/extract/routes.py | da9b4cb042c0fb5305c062073e04e91f29db71c1 | [
"MIT"
] | permissive | arXiv/arxiv-references | 35f87084cf91947c572faf1a86f119b308fada66 | a755aeaa864ff807ff16ae2c3960f9fee54d8dd8 | refs/heads/master | 2022-12-21T02:34:57.166298 | 2018-05-04T20:30:48 | 2018-05-04T20:30:48 | 94,906,433 | 8 | 6 | MIT | 2022-12-08T02:06:20 | 2017-06-20T15:26:25 | Python | UTF-8 | Python | false | false | 2,709 | py | """HTTP routes for refextract API."""
import os
from refextract import extract_references_from_file
from flask.json import jsonify
from flask import Blueprint, request, current_app
from werkzeug.utils import secure_filename
from werkzeug.datastructures import FileStorage
import logging
HTTP_200_OK = 200
HTTP_400_BAD_... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
ca14cfcc4f0020bf14072b28b13b5efd0c0a1140 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/real-life/test_sof_example.py | 67de4d5643861c429a1c60920db8424086e6352e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | import pandas as pd
import numpy as np
import pyaf.ForecastEngine as autof
import datetime
#get_ipython().magic('matplotlib inline')
trainfile = "data/sof_example.csv";
df = pd.read_csv(trainfile, sep=r',', engine='python', skiprows=0);
df['Date'] = df['Date'].apply(lambda x : datetime.datetime.strptime(x, "%m/%d/%Y"... | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
a1eb66dbe95cb27bee4d6db88aae787c660163b8 | 5b49b2f8934e21445757a36174d924bb713ad810 | /elvers/rules/rcorrector/rcorrector-wrapper.py | d38953bd8abd25a4ea0521807acf6cc1283d78a0 | [
"BSD-3-Clause"
] | permissive | maligang/elvers | bf982442d08411a7081f186c7b76ac09035b0466 | b2dab8092351f6db13c437c89004b897fb8a40d7 | refs/heads/master | 2022-12-11T12:45:06.905102 | 2020-08-05T17:09:50 | 2020-08-05T17:09:50 | 290,427,388 | 0 | 0 | NOASSERTION | 2020-08-26T07:30:10 | 2020-08-26T07:30:09 | null | UTF-8 | Python | false | false | 2,509 | py | __author__ = "N .Tessa Pierce"
__copyright__ = "Copyright 2019, N. Tessa Pierce"
__email__ = "ntpierce@gmail.com"
__license__ = "MIT"
from os import path
from snakemake.shell import shell
extra = snakemake.params.get("extra", "")
log = snakemake.log_fmt_shell(stdout=True, stderr=True)
outdir = path.dirname(snakemake.... | [
"ntpierce@gmail.com"
] | ntpierce@gmail.com |
1181b639354080f4efa652e95729190cdfb5fc52 | 0ead11cb6ff33e71903b49de3b8a0b0a273c4ece | /python/smqtk/representation/descriptor_element/_io.py | 3ea08361516ddbde7d31bbd476d304d15b742f3b | [] | no_license | Erotemic/SMQTK | b1ad8838516c88ce464ce9069c22a5b79e6097e7 | 0153a7bab694b84620e4a6ca9127d8cc8de52952 | refs/heads/master | 2021-04-27T09:09:48.244303 | 2018-02-06T20:43:11 | 2018-02-06T20:43:11 | 122,508,206 | 0 | 0 | null | 2018-02-22T16:59:35 | 2018-02-22T16:59:35 | null | UTF-8 | Python | false | false | 12,044 | py | import logging
import multiprocessing
import multiprocessing.queues
import Queue
import sys
import threading
import time
import numpy
from smqtk.utils import SmqtkObject
__author__ = 'paul.tunison@kitware.com'
__all__ = [
'elements_to_matrix',
]
def elements_to_matrix(descr_elements, mat=None, procs=None, b... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
0540f3bb95f151504c0503e6e8179fec0de7207e | f98f4aaeca3ac841905e0cd8547bbf41944fe690 | /编程语言/Python/Python编程从入门到实践/第一部分_基础知识/第10章_文件和异常/10_6.py | 3835fd1a20ce17bffe0d169f134703a891d57347 | [] | no_license | zhb339/book-learning | 64f433b1ee1f66f3120828352df3b533be4cf9de | 5273fc8d11b2d602484dbe95e55f1e931858382f | refs/heads/master | 2020-03-29T10:48:22.771146 | 2018-11-07T13:46:53 | 2018-11-07T13:46:53 | 149,823,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | while True:
try:
num1 = int(input("Enter first num: "))
num2 = int(input("Enter second num: "))
total = num1 + num2
print("The sum of two numbers is " + str(total) + ".")
except:
print("Please enter number!")
| [
"551788157@qq.com"
] | 551788157@qq.com |
3b5578ebf36b5c8a298cfc1216db7a3e9a6c4497 | 76d9bf90f046979866f88811a1a182e6c1ae9bc9 | /allennlp_semparse/common/sql/text2sql_utils.py | eeabed9539f122af9a279b998b62ff39ef3d953e | [
"Apache-2.0"
] | permissive | Tmr/allennlp-semparse | aba92040db36fe85d968c8fbffe21a24a0057a96 | 751c25f5f59c4d7973f03dc05210f9f94752f1b5 | refs/heads/master | 2023-04-28T15:08:11.653793 | 2022-04-07T18:01:33 | 2022-04-07T18:01:33 | 230,105,752 | 0 | 0 | Apache-2.0 | 2019-12-25T13:18:39 | 2019-12-25T13:18:38 | null | UTF-8 | Python | false | false | 10,377 | py | """
Utility functions for reading the standardised text2sql datasets presented in
`"Improving Text to SQL Evaluation Methodology" <https://arxiv.org/abs/1806.09029>`_
"""
from typing import List, Dict, NamedTuple, Iterable, Tuple, Set
from collections import defaultdict
from allennlp.common import JsonDict
class Sql... | [
"mattg@allenai.org"
] | mattg@allenai.org |
2beb8e21a0723043fb3bf99c43435fcea367c31d | 1be37064cf303b79cf83ab1d5d120a8db6dbeaa4 | /fastparquet/thrift_structures.py | 280b8583627af5b1b4c31b246d18bc52192c32fd | [
"Apache-2.0"
] | permissive | mrocklin/fastparquet | 02e0252609b8825b2ad89c0b21b3a6e20bc34f94 | b0171ba3a7894f4860c1ce761ad47f451fc4cbc8 | refs/heads/master | 2020-12-24T08:54:09.977491 | 2016-11-08T17:14:38 | 2016-11-08T17:14:38 | 73,311,617 | 2 | 0 | null | 2016-11-09T18:46:52 | 2016-11-09T18:46:51 | null | UTF-8 | Python | false | false | 207 | py | import os
import thriftpy
THRIFT_FILE = os.path.join(os.path.dirname(__file__), "parquet.thrift")
parquet_thrift = thriftpy.load(THRIFT_FILE, module_name="parquet_thrift") # pylint: disable=invalid-name
| [
"martin.durant@utoronto.ca"
] | martin.durant@utoronto.ca |
e763f92c41f17a6f2fdbc603b1a4ce8c2d338382 | 9a5438bdb8e84d0167ddea5458a7f729fdd54121 | /metadata/tests/test_models/test_meta/test_attribute.py | 5d8ef2b6856c0df33ffb8ea2141cb61013e7a8aa | [] | no_license | Grusinator/MetaDataApi | 740fd2be4cb97b670f827a071a0ac8c50f79f8ff | 081f881c735466ed1dbbd68646b821299c5168f8 | refs/heads/master | 2023-07-25T23:58:22.179717 | 2020-03-15T09:36:05 | 2020-03-15T09:36:05 | 149,087,967 | 5 | 1 | null | 2023-07-25T15:39:12 | 2018-09-17T07:45:09 | CSS | UTF-8 | Python | false | false | 1,856 | py | import unittest
from datetime import datetime
import django
from django.test import TransactionTestCase
class TestAttribute(TransactionTestCase):
@classmethod
def setUpClass(cls):
super(TestAttribute, cls).setUpClass()
django.setup()
@unittest.skip
def test_datatype_to_data_object(s... | [
"grusinator@gmail.com"
] | grusinator@gmail.com |
be4958352ebe1cd5a7ed7e0e5a5a17eb690f7a54 | 9e26e9b8e1e0f7bbf116fdf5c92b4e3006d385ef | /user/views.py | a70640e853d683e97575775ec1e3f0e5b67f3000 | [] | no_license | talhajubair100/e-commerce | fd77877b877a91a447e9b17ab58a4d59cc1456df | e7620b0971489ce558a97dd8d9988562663fe560 | refs/heads/main | 2023-02-15T08:57:29.308811 | 2021-01-06T18:25:35 | 2021-01-06T18:25:35 | 317,015,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,539 | py | from django.contrib.auth.forms import PasswordChangeForm
from .forms import UserUpdateForm, ProfileUpdateForm
from django.shortcuts import redirect, render
from django.http.response import HttpResponse, HttpResponseRedirect
from product.models import Category, Comment
from django.contrib.auth import authenticate, logi... | [
"talhajubair100.bd@gmail.com"
] | talhajubair100.bd@gmail.com |
8a809d0d0ffedb0a224620d12bc9ab3749e4ff9e | 5f7c40860e584cb86e140d0819397a75f93e28ea | /motorcycles.py | 3f2b9124a2a2adecfbcef98ba88d8e0607f78df7 | [] | no_license | bailijiang/Python_exercise | cb149db1bc770fc684bf461ebae1b6dd53bf10a5 | 744a2a3b44036495ae28ec87fea98c04d008b099 | refs/heads/master | 2021-09-02T03:30:21.512752 | 2017-12-29T23:39:05 | 2017-12-29T23:39:05 | 114,254,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | __author__ = 'Bryan'
motorcycles = ['honda', 'yamaha', 'suzuki']
print(motorcycles)
motorcycles[0] = 'ducati'
print(motorcycles)
motorcycles.append('ducati')
print(motorcycles)
motorcycles.insert(1, 'BRZ')
print(motorcycles)
del motorcycles[0]
print(motorcycles)
poped_motocycles = motorcycles.pop()
print(poped_mo... | [
"bailijiang@hotmail.com"
] | bailijiang@hotmail.com |
fe5700984481c97ee479bdc3980dd0df676e42cf | 9658ec133fd777d349487d7f06df74e4c99f5613 | /src/microplot/explorer/examples/demo_mono_bitmap.py | 1606e08cf9d539ddfa43668d0769153d2c67744e | [
"MIT"
] | permissive | Palmbear/microplot | 6a6d0fc0be7318d95974c8541b2db2cf4390b6e8 | 9cb07c1f1a231b81f4517417c8a3a0fff6aeb3b1 | refs/heads/master | 2023-07-01T22:59:50.577556 | 2021-03-19T15:42:14 | 2021-03-19T15:42:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | import math
from plotter import Plotter
from plots import LinePlot
def run():
sines = list(math.sin(math.radians(x))
for x in range(0, 361, 5))
plot = LinePlot([sines],'MicroPlot line')
plotter = Plotter()
plot.plot(plotter)
plotter.write_mono_bitmap('demo-mono.bmp')
| [
"romilly.cocking@gmail.com"
] | romilly.cocking@gmail.com |
660d07bde49e51d20f8d3401e32430d4edd6b1ee | 0f36de8254443fd6bf0ae5fe0c1dc1a3bda619d2 | /devel/.private/differential_robot_185104iaib/lib/python2.7/dist-packages/differential_robot_185104iaib/msg/_counter_message.py | 34df98f8e6c0f454f8f33569e3add0f1ab2278c6 | [] | no_license | alekal1/ros | 88c5d2a1b013e36b4acecfc5f131ce0113088bc6 | e17174b023f60aab8982195a6427e569b01ab9d0 | refs/heads/master | 2023-01-24T03:39:57.639016 | 2020-11-21T20:01:26 | 2020-11-21T20:01:26 | 296,635,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from differential_robot_185104iaib/counter_message.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class counter_message(genpy.Message):
_md5sum = "9acad0... | [
"sasha.aleksandov@gmail.com"
] | sasha.aleksandov@gmail.com |
516036f8a0bc3f47d5d771b46101d15d00bbf14f | 22295cda10cf11472fee987093e0b245f6f96ef3 | /nick/twophoton/imag003_depth_report_signals.py | 40243b4470c47a81c063c4888295fcf8c03f4476 | [] | no_license | sjara/jaratest | aecb9e3bcc1ff91db35e7cd551c0f4f3da0b690a | 09bf2c76bd5bf45191a2c37c14171ae1e8902c4b | refs/heads/master | 2023-08-11T09:55:17.684814 | 2023-08-03T22:03:31 | 2023-08-03T22:03:31 | 63,100,718 | 2 | 5 | null | 2023-04-11T18:14:08 | 2016-07-11T20:43:04 | Python | UTF-8 | Python | false | false | 1,259 | py | import os
import numpy as np
from scipy import io
from jaratoolbox import loadbehavior
from jaratoolbox import extraplots
from matplotlib import pyplot as plt
from skimage.external import tifffile
dataDir = '/home/nick/data/2pdata/imag003/'
# sessionsToPlot = [0, 1, 2, 3, 4, 5, 6, 8, 10, 13, 14, 15, 17, 18, 19]
sessi... | [
"nickponvert@gmail.com"
] | nickponvert@gmail.com |
269bf66d37d33754342bddb0248ac1f47af381c5 | 0246c0ded95e8cfb1139159c267f6c024ca83f7a | /5kyu_rgb_to_hex_conversion.py | 1296ce04e6bd1bdea4d07c74e38cbcc1fec3c027 | [] | no_license | cromox1/KodPerang_kata | e40a4f2c3f4eba029caabc3312236aac1bea43bd | 242effc71fef40c0c9a7dc46653845a20da5f239 | refs/heads/main | 2023-01-21T00:18:00.232300 | 2020-11-26T12:13:17 | 2020-11-26T12:13:17 | 312,572,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,449 | py | def rgb(r, g, b):
int_to_hex = lambda number: "%0.2X" % number if (0 <= number <= 255) else '00' if number < 0 else 'FF'
return int_to_hex(r) + int_to_hex(g) + int_to_hex(b)
# def int_to_hex(num):
# if num <= 0:
# num = 0
# elif num >= 255:
# num = 255
# return "%0.2X" % num
class ... | [
"xixa01@yahoo.co.uk"
] | xixa01@yahoo.co.uk |
38236755eccebc4e6beb4ad2d215acf36bb72eaa | d7386e4c2e9a1c9c8543239702c9f36f98ec7431 | /Scrapy/test01/test01/settings.py | c6bc7a4f85f533c2b18cb940074b15d02a2998b5 | [] | no_license | SalingerMa/Spider | 6f36fee328d592fa56625c49b40df60074acb227 | de1137585dcd44a47cfd10f8aabec53663f7cba1 | refs/heads/master | 2021-07-11T11:47:07.960418 | 2021-06-23T16:03:42 | 2021-06-23T16:03:42 | 163,784,688 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,072 | py | # -*- coding: utf-8 -*-
# Scrapy settings for test01 project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topics... | [
"ma_huimeng@163.com"
] | ma_huimeng@163.com |
d57bb865836da6b50b08d1e0795f50aef737cded | 74f0c966d09786f447ad60bf837ea342cb405874 | /neutron/db/sqlalchemyutils.py | b720554d8bfe626a674b13cc47b1c6054d97fa9f | [
"Apache-2.0"
] | permissive | mrwukang/neutron | ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e | ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506 | refs/heads/master | 2020-04-11T18:24:09.601969 | 2019-01-02T15:42:05 | 2019-01-02T15:42:05 | 161,997,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,493 | py | # Copyright 2011 OpenStack Foundation.
# 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 req... | [
"wukangmr@163.com"
] | wukangmr@163.com |
fa882c3cca9a31dfa9f0468d57cc0eba36f3d1b4 | a9f4434d3b410886ffc10aa5aede3634692152b6 | /0218/ex_if4.py | 7c7e8186913a879087edcca4ecb26393f4434e91 | [] | no_license | parka01/python_ex | d3690dcd8753864c335bf7782553719a072bd01d | a5811487516eb9ef86d5ae93e9060cac267b87ce | refs/heads/main | 2023-03-13T08:35:03.837790 | 2021-02-26T03:40:41 | 2021-02-26T03:40:41 | 339,892,972 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | age=int(input('나이를 입력하세요: '))
if age>=65:
print('지하철 경로 우대 승차권 발급')
else:
print('일반 승차권 발급')
print('자동 발매기를 이용해주셔서 감사합니다.') | [
"68191916+parka01@users.noreply.github.com"
] | 68191916+parka01@users.noreply.github.com |
facce1dd0ae0e979ec432e8a3d4697e93750f24b | 312ab41033c2cb043d617d3e633c166503fd280c | /Informatikk/Bachelor/H2017/ITGK/Eksamensøving/Øving 6/Mynter.py | 473758343370ecab300a3a1f0300f96a8752c55d | [] | no_license | skanin/NTNU | cb9b833d9de0d504965979584370b8f353435cd1 | e4023856f69060f8d3d09ff4990e29f7a75d98b1 | refs/heads/master | 2022-01-30T14:31:22.947512 | 2022-01-20T14:11:14 | 2022-01-20T14:11:14 | 113,476,017 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | def count_coins(coins):
summen = 0
for coin in coins:
summen += coin
return summen
def num_coins(numbers):
coins = []
temp = []
for num in numbers:
if num > 10:
enere = num % 10
tiere = num // 10
if tiere % 2 == 0:
tjue = tie... | [
"sander.b.lindberg@gmail.com"
] | sander.b.lindberg@gmail.com |
5816095d02686182c4cc3f9e02f65d91965b2fe6 | e6f1137903b9658e5e3c1ee51201a931894303b9 | /util/melt/layers/__init__.py | 4324748862ecebf1960d5f5dae2b09531e22e1a5 | [] | no_license | fword/hasky | 8ed69ef85bb34823d9ade27bb3b19aac02872440 | d3c680ffa04f7487b931a5575977798157b42b7e | refs/heads/master | 2021-01-23T01:18:49.275631 | 2017-03-18T13:01:27 | 2017-03-18T13:01:27 | 85,898,744 | 1 | 1 | null | 2017-03-23T02:39:06 | 2017-03-23T02:39:06 | null | UTF-8 | Python | false | false | 667 | py | #!/usr/bin/env python
# ==============================================================================
# \file __init__.py
# \author chenghuige
# \date 2016-08-16 16:36:38.289129
# \Description
# ==============================================================================
from... | [
"29109317@qq.com"
] | 29109317@qq.com |
12773f151707596988078c66d295a28579590999 | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /eet/Distant_Barcodes.py | 9c536919456a6b4b5ac94f5b3db75a3e8443f3df | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | """
In a warehouse, there is a row of barcodes, where the ith barcode is barcodes[i].
Rearrange the barcodes so that no two adjacent barcodes are equal. You may return any answer, and it is guaranteed an answer exists.
Example 1:
Input: barcodes = [1,1,1,2,2,2]
Output: [2,1,2,1,2,1]
Example 2:
Input: barcodes = [... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
5f6c2cc23bfa6be883b2211c1cbe82dfdc70fee1 | 7b437e095068fb3f615203e24b3af5c212162c0d | /enaml/qt/qt_menu.py | eed0ca7ad1bdec1ef6ddb3227edc9944a2341163 | [
"BSD-3-Clause"
] | permissive | ContinuumIO/enaml | d8200f97946e5139323d22fba32c05231c2b342a | 15c20b035a73187e8e66fa20a43c3a4372d008bd | refs/heads/master | 2023-06-26T16:16:56.291781 | 2013-03-26T21:13:52 | 2013-03-26T21:13:52 | 9,047,832 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,532 | py | #------------------------------------------------------------------------------
# Copyright (c) 2013, Nucleic Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------------------------------... | [
"sccolbert@gmail.com"
] | sccolbert@gmail.com |
75c0f023556c19ce152dd2ed15092cba945a4cb9 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_enchant.py | 30a2682435ccb97a29ce664927597299802bbdb4 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py |
#calss header
class _ENCHANT():
def __init__(self,):
self.name = "ENCHANT"
self.definitions = [u'to attract or please someone very much: ', u'to have a magical effect on someone or something']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def ru... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8b4ecf37197f1bf3a416459742b7d0638c031bea | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-airec/aliyunsdkairec/request/v20181012/ListScenesRequest.py | e28838ca25f5a9c7bf5a3172116db39b3d94cbdb | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,647 | 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 |
dd825169a7e52a6ad884d02fdd6500cf7257a189 | 3ea99519e25ec1bb605947a94b7a5ceb79b2870a | /modern_python/modernpython/lib/mypy/typeshed/stdlib/3.4/tracemalloc.pyi | 462b03ca1c46a82c921e5591f87aaf07cc326d2c | [] | no_license | tech-cow/spazzatura | 437c7502a0654a3d3db2fd1e96ce2e3e506243c0 | 45fc0932186d2ef0c5044745a23507a692cfcc26 | refs/heads/master | 2022-09-01T12:01:11.309768 | 2018-11-15T04:32:03 | 2018-11-15T04:32:03 | 130,414,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | pyi | # Stubs for tracemalloc (Python 3.4+)
import sys
from typing import Any, List, Optional, Sequence, Tuple, Union
def clear_traces() -> None: ...
def get_object_traceback(obj: object) -> Optional[Traceback]: ...
def get_traceback_limit() -> int: ...
def get_traced_memory() -> Tuple[int, int]: ...
def get_trace... | [
"yuzhoujr@yuzhou-7480.internal.synopsys.com"
] | yuzhoujr@yuzhou-7480.internal.synopsys.com |
69d1f1d6c3c6c4c911b19d88c4953d469307148f | 1e0ae1f039668a65e480065d671235fc0fff9b52 | /s11day2/backend/b2.py | bb0b3891a46e924deb3ce5866e6a53261cb4ac70 | [] | no_license | aixocm/svndata | a4da91c3c9e1d376abfd46e7cecc3c5c2e340e83 | ee205301f3a1ce11acef98bba927877cb7c4fb0b | refs/heads/master | 2021-01-21T04:39:41.607117 | 2016-07-01T01:48:36 | 2016-07-01T01:48:36 | 47,066,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,613 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
#date:2016-1-11
import time
import hashlib
import pickle
import ConfigParser
import day
info = {}
def regiest():
global info
while True:
username = raw_input('please input your username:')
passwd = raw_input('please input your password:')
if n... | [
"1755897532@qq.com"
] | 1755897532@qq.com |
8436d7f1670a2ef115032f4ab329e743426fbc8a | f08d137b7821d79672c91e5f06967ffa1f90e278 | /.history/Python/Main_py_20211020222353.py | b9f2db00c2e594197b452733fbbbb1d47c75cb3b | [] | no_license | anhviet-key/hello-cac-ban | a39ffb1731a77dd171523ea145f5d8b62fccde7c | 18411b51add7e3277d42869f8a50c67111337983 | refs/heads/main | 2023-08-23T09:02:01.074958 | 2021-10-27T07:48:47 | 2021-10-27T07:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from Sub_py import num2
print("Hello, Word")
num2()
| [
"92666546+anhviet-key@users.noreply.github.com"
] | 92666546+anhviet-key@users.noreply.github.com |
ded09e44634a6c69a66cad4017e63a15258b6b35 | 67d4025c8b006a4342ce78bf4831d50432a4ed7a | /flow controls/current.py | b858a670d03af0b448bdb3d27cb8ffeb47d14c81 | [] | no_license | Anju-PT/pythonfilesproject | fd21484e98dc6c27fd9fd00feea0ede76ca8db17 | fee8351a1610921700ee15ea88c6f765fe3d21cd | refs/heads/master | 2023-04-29T18:13:46.490301 | 2021-05-19T08:06:51 | 2021-05-19T08:06:51 | 368,791,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | #year
#month
#date
#birth year
#month
#date
#print year
cyear=int(input("enter current year"))
cmonth=int(input("enter current month"))
cdate=int(input("enter current date"))
byear=int(input("enter birth year"))
bmonth=int(input("enter birth month"))
bdate=int(input("enter birth date"))
dyear=cyear-byear
dmonth=cmonth-... | [
"anjuthankachen2012@gmail.com"
] | anjuthankachen2012@gmail.com |
dc151184a7be117c9ba30d0fd60a18f811bcf66d | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/candidate_sampling_ops.py | 7731e73922876cf6de3e9aa25344c6f7d4f4dcf1 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/ops/candidate_sampling_ops.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
abb2c0c6e5d8bcdcb3ecb44cf721b9ea22719323 | 641fa8341d8c436ad24945bcbf8e7d7d1dd7dbb2 | /third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/layout_package/bot_test_expectations.py | 2c41cd2a18d5e92fc59baa5618929090f74565d0 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft"
] | permissive | massnetwork/mass-browser | 7de0dfc541cbac00ffa7308541394bac1e945b76 | 67526da9358734698c067b7775be491423884339 | refs/heads/master | 2022-12-07T09:01:31.027715 | 2017-01-19T14:29:18 | 2017-01-19T14:29:18 | 73,799,690 | 4 | 4 | BSD-3-Clause | 2022-11-26T11:53:23 | 2016-11-15T09:49:29 | null | UTF-8 | Python | false | false | 14,619 | py | # Copyright (C) 2013 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com |
c2f220b3b5f0bf91bfad97fd447ebc7840a3f497 | f04fb8bb48e38f14a25f1efec4d30be20d62388c | /牛客Top200/41最长无重复子数组.py | 925b34c978b77ae75f52c81087d78fbe3d6366fb | [] | no_license | SimmonsChen/LeetCode | d8ef5a8e29f770da1e97d295d7123780dd37e914 | 690b685048c8e89d26047b6bc48b5f9af7d59cbb | refs/heads/master | 2023-09-03T01:16:52.828520 | 2021-11-19T06:37:19 | 2021-11-19T06:37:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | class Solution:
# 用队列:当前数字在队列中,则一直出队直到当前元素不在队中,然后将当前元素入队。
# 每入队一个元素都要计算当前队长度,返回值即是队列长度的最大值。
def maxLength(self, arr):
n = len(arr)
if n < 2: return n
queue = []
ans = 0
for number in arr:
while number in queue:
queue.pop(0)
queu... | [
"15097686925@163.com"
] | 15097686925@163.com |
ac60c8f095376835613db058072b466b085377e0 | e5ebf8d209c2720fa2cb123541a90d30a0e6c364 | /Web_Program/venv/Scripts/pip3-script.py | f12831ab8c696f096993b5f0c1f66522c71baf1e | [
"Apache-2.0"
] | permissive | Incipe-win/Games | f235482d98fbfb8f98c120e11604973c6115bb79 | 902e6c7631fa75b57cfabf0e8be8f8d8486ec432 | refs/heads/main | 2022-12-25T17:31:21.968194 | 2020-10-09T13:42:53 | 2020-10-09T13:42:53 | 302,651,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!F:\Repositories\C_Cplusplus\Games\Web_Program\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sy... | [
"whc_9_13@163.com"
] | whc_9_13@163.com |
df1e1b2efa5dc475ee5b76e61cad469f2164c2bf | 052a89753a7917b7fa0ccdf5718d5250a1379d2c | /bin/explode.py | 792bb4609f5f71183a72a0d26597362977ad7e7b | [] | no_license | bopopescu/aws.example.com | 25e2efda3bd9ae2a257c34904ccb53043fe20b55 | 97254868688c3c3a991843fcacc973c93b366700 | refs/heads/master | 2022-11-22T07:06:30.386034 | 2016-10-25T15:22:14 | 2016-10-25T15:22:14 | 282,553,417 | 0 | 0 | null | 2020-07-26T01:22:26 | 2020-07-26T01:22:25 | null | UTF-8 | Python | false | false | 2,499 | py | #!/Users/deanarmada/Desktop/projects/python-projects/aws.example.com/bin/python
#
# The Python Imaging Library
# $Id$
#
# split an animation into a number of frame files
#
from __future__ import print_function
from PIL import Image
import os
import sys
class Interval(object):
def __init__(self, interval="0"):
... | [
"deanarmada@gmail.com"
] | deanarmada@gmail.com |
36d1293350f5b67bf202eb4d0c02875b0fb70e92 | 63f6ce221f6ac10f33761b6e57cf47725fd3d1cb | /08_Inteligencia_Artificial/01_Mineracao_de_Emocoes_em_Textos/base.py | d5d26c33f96c0e78d5a32f8964b53b1eae32c865 | [] | no_license | iamferreirajp/python-notebook | 7dcc4305fec2a133a28b5449d77d486dcaca2f5f | c9056024bc7a7715db3607ec00f886a7b9eaf0c0 | refs/heads/master | 2020-05-03T09:54:43.612078 | 2019-03-24T07:07:21 | 2019-03-24T07:07:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,330 | py | base = [
('eu sou admirada por muitos','alegria'),
('me sinto completamente amado','alegria'),
('amar e maravilhoso','alegria'),
('estou me sentindo muito animado novamente','alegria'),
('eu estou muito bem hoje','alegria'),
('que belo dia para dirigir um carro novo','alegria'),
('o dia está... | [
"victorhad@gmail.com"
] | victorhad@gmail.com |
1d985001aa8cb066283ba9bf7d051e057fa13f97 | a204895c89b15eab24d68b5340da440419966bcc | /rea/apps.py | 086161dfe20fc8b3cf22684419423465d07f66bf | [
"MIT"
] | permissive | Ecotrust/regional-equity-atlas | c98855be70aa35cebff48d94d89e2cbd2077cfe2 | 66911330ea29ac6ed2ba5b172e9171f22d995756 | refs/heads/master | 2020-03-23T06:18:13.817698 | 2018-07-31T20:08:02 | 2018-07-31T20:08:02 | 141,202,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | from django.apps import AppConfig
class ReaConfig(AppConfig):
name = 'rea'
| [
"ryan.d.hodges@gmail.com"
] | ryan.d.hodges@gmail.com |
8064cfc5c46bbf7fac14576f49088c5a516c311e | bc441bb06b8948288f110af63feda4e798f30225 | /patch_manager_sdk/model/collector_center/job_v2_pb2.py | 3368edc9a9c54ad07768d21bca07f442ac5ce755 | [
"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 | 18,224 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: job_v2.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.protobuf impo... | [
"service@easyops.cn"
] | service@easyops.cn |
63ab6446bacc30dd89798f16300dc8f1a0ff5314 | bffd457e17dc250c81d7bd9e25c20a483f1a1ed5 | /pandatools/results/ResultMerge_vehicle.py | a79cdd8a1a92074001b014b03305d8cb1a2fdca4 | [] | no_license | Harzva/gigavision | 3121f183b8cfc66f9c89f4afe1bd0bdf1c1fe104 | 1fb1ad9b9d5aac6c18dc83184a52c484964be7fb | refs/heads/master | 2023-02-20T10:34:21.735085 | 2021-01-24T10:07:30 | 2021-01-24T10:07:30 | 332,416,570 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 31,144 | py | # --------------------------------------------------------
# Result merge modules for PANDA
# Written by Wang Xueyang (wangxuey19@mails.tsinghua.edu.cn), Version 20200321
# Inspired from DOTA dataset devkit (https://github.com/CAPTAIN-WHU/DOTA_devkit)
# --------------------------------------------------------
fro... | [
"562282219@qq.com"
] | 562282219@qq.com |
73cb855b2bd5a9631ecd288feca60ceac271a3a9 | 291ab4b5b1b99d0d59ce2fb65efef04b84fd78bd | /tmp_testdir/postgresDB/test5b_manual_dbtable_insert_date_time.py | ca1b04857efca706986da6e210cb68cdea5f6927 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cromox1/Trading212 | 15b5ea55d86e7063228f72dd92525e1fca693338 | 68f9b91098bc9184e16e9823a5e07e6b31e59602 | refs/heads/main | 2023-04-17T23:03:07.078229 | 2021-05-05T23:02:54 | 2021-05-05T23:02:54 | 320,100,427 | 0 | 2 | null | 2021-04-13T07:03:41 | 2020-12-09T22:58:06 | Python | UTF-8 | Python | false | false | 2,736 | py | import psycopg2
import datetime
def connect_db(host, user, pswd):
conn = psycopg2.connect(host=host, user=user, password=pswd)
cur = conn.cursor()
return cur, conn
def connect_db_commit_close(cur, conn):
conn.commit()
cur.close()
conn.close()
def create_table_if_noexist(dbtable):
sqlcomma... | [
"xixa01@yahoo.co.uk"
] | xixa01@yahoo.co.uk |
6238e82437788028beba37bd4dc6074632053960 | bccfab4d853f7417401a084be95de293e66ccd2a | /mySpider/spiders/Museum72.py | 7cda6f18480e54909d7211b01dccc6d7a37022cd | [] | no_license | CS1803-SE/The-First-Subsystem | a8af03ce04a9de72a6b78ece6411bac4c02ae170 | 4829ffd6a83133479c385d6afc3101339d279ed6 | refs/heads/main | 2023-05-06T02:32:08.751139 | 2021-05-24T06:09:37 | 2021-05-24T06:09:37 | 363,400,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | #lay
from ..items import *
class Museum72(scrapy.Spider):
name = "Museum72"
allowed_domains = ['nbmuseum.cn']
start_urls = ['http://nbmuseum.cn/col/col41/index.html']
custom_settings = {
'ITEM_PIPELINES': {
'mySpider.pipelines.MuseumPipeLine': 300,
},
'DOWNLOADER_M... | [
"1300978939@qq.com"
] | 1300978939@qq.com |
03d6b9442657118869f4d81fda133e26f127d88b | 645cd832def2330ea923d69fcc82cf5b7719415b | /python/smqtk/algorithms/relevancy_index/__init__.py | 36a407c72a844017a2550d0d6d0e1b72ee4d9c2c | [] | no_license | mrG7/SMQTK | 3103b6c59e347930a330e3284b288cb7af20f3b6 | 19917babd63767726b1bc21a184a5006366b59af | refs/heads/master | 2021-01-20T11:35:21.861708 | 2015-10-02T21:50:44 | 2015-10-02T21:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import abc
import logging
from smqtk.algorithms import SmqtkAlgorithm
__author__ = "paul.tunison@kitware.com"
class RelevancyIndex (SmqtkAlgorithm):
"""
Abstract class for IQR index implementations.
Similar to a traditional nearest-neighbors algorithm, An IQR index provides
a specialized nearest-n... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
3ee0b16a3fa268a4f70f364d9ab5bc3b4fed2794 | 6630694f401f6f475dd81bb01ff9368db844ccff | /configs/repvgg/repvgg-B2_8xb32_in1k.py | b9a7d4ca5570518f0c4d0b81951e0e97c46606f9 | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 106 | py | _base_ = './repvgg-A0_8xb32_in1k.py'
model = dict(backbone=dict(arch='B2'), head=dict(in_channels=2560))
| [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
e1bfa27cf691a0b6ee3d8d8a074da682433cef02 | f20931826a557f0d884f8b46de259840c29b7428 | /meiduo_mall/meiduo_mall/utils/authenticate.py | 2079f8c659a70dbebbb5291a0c6b7c9cbcc4867e | [] | no_license | zy723/meiduo_project | 38ccecc2fa1d61f2eb848ebc572dd43d45a534c8 | f50a8105c63554b57419cb3494c3d323bb343f9c | refs/heads/master | 2022-12-15T02:34:42.578549 | 2020-05-20T16:56:27 | 2020-05-20T16:56:27 | 248,264,846 | 0 | 0 | null | 2022-12-12T20:28:41 | 2020-03-18T15:08:40 | TSQL | UTF-8 | Python | false | false | 2,024 | py | """
增加支持管理员用户登录账号
JWT扩展的登录视图,在收到用户名与密码时,也是调用Django的认证系统中提供的authenticate()来检查用户名与密码是否正确。
我们可以通过修改Django认证系统的认证后端(主要是authenticate方法)来支持登录账号既可以是用户名也可以是手机号。
修改Django认证系统的认证后端需要继承django.contrib.auth.backends.ModelBackend,并重写authenticate方法。
authenticate(self, request, username=None, password=None, **kwargs)方法的参数说明:
reque... | [
"zy723@vip.qq.com"
] | zy723@vip.qq.com |
9e819a87ebc1032db2785b8533da9e1f29cd9fe5 | f62e4c46fb0f98879fb63977fa29631b02e3928c | /16 задание/РекурсФункцСТекст_005.py | 555d533ac95655abf5e3a748654d72868d9b32bc | [] | no_license | SeveralCamper/USE-2020-2021 | c34f4d7a2c3e0f51529141781f523b63242a835d | ac1122649f2fd431a91af5dda5662492e2565109 | refs/heads/master | 2023-09-03T13:36:05.822568 | 2021-10-27T12:54:10 | 2021-10-27T12:54:10 | 392,303,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Задание 16 № 9163
# Ниже на пяти языках программирования записан рекурсивный алгоритм F.
# Чему равна сумма всех чисел, напечатанных на экране при выполнении вызова F(1)?
count = 0
def F(n):
global count
count += n
print(n)
if n < 4:
F(n + 1)
F(n + 3)
print(F(1), count)
# Ответ: 25 | [
"mikha.alkhimovich@mail.ru"
] | mikha.alkhimovich@mail.ru |
ea8178226894384605a4056cb9263a40ae392b4f | eecd9cb2117aee5f8a41a38e07697524c5908003 | /concourse/client/api.py | 6364f9311bca6d38d5e26f4f165613ef1eb30a26 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | adracus/cc-utils | 426608fb2c7184e5f68c9073da9e7f1535e025ce | dcd1ff544d8b18a391188903789d1cac929f50f9 | refs/heads/master | 2020-04-25T23:30:25.454654 | 2019-02-27T14:31:19 | 2019-02-27T14:31:19 | 173,148,221 | 0 | 0 | Apache-2.0 | 2019-02-28T16:36:09 | 2019-02-28T16:36:09 | null | UTF-8 | Python | false | false | 8,926 | py | # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed
# under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"christian.cwienk@sap.com"
] | christian.cwienk@sap.com |
270526ead40fed7395ab36a2f0e5538850c9fcd5 | 43575c1324dc0760958a110d7f056bce88422a03 | /listing/arrayqueue.py | fe91f1bc669035d14da292523bec642ed81d0941 | [] | no_license | nicolas4d/Data-Structures-and-Algorithms-Using-Python | 1ffd74d26f09de2057bdc53998a56e56ed77c1de | a879ce6fd4033867783ee487d57d459b029eb5f8 | refs/heads/master | 2020-09-24T12:48:30.726766 | 2019-12-31T03:15:44 | 2019-12-31T03:15:44 | 225,761,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # Implementation of the Queue ADT using a circular array.
from array import Array
class Queue :
# Creates an empty queue.
def __init__( self, maxSize ) :
self._count = 0
self._front = 0
self._back = maxSize - 1
self._qArray = Array( maxSize )
# Returns True if the queue is ... | [
"nicolas4d@foxmail.com"
] | nicolas4d@foxmail.com |
ac5953399a647183382fd235afa3078fcf3f2cf8 | 7c9f28e371e8dfa9290c05a48a9d924484b4b18c | /1.py | e742ff9920b98902a4a6413dc4ff9b62916929d0 | [] | no_license | Pavithralakshmi/corekata | 1f9d963da44a6fdcdedaf2e39452545f6cc52e9b | 06d1c7bba25681ce12e2ab93ce461228afb6b984 | refs/heads/master | 2021-04-30T01:53:37.414318 | 2018-10-11T17:58:39 | 2018-10-11T17:58:39 | 121,491,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | s1=input("eter anything")
s2=input("enter somthing")
print(s2)
| [
"noreply@github.com"
] | Pavithralakshmi.noreply@github.com |
ed2bd9596b3c087bafd28769728ffae53934a728 | e12e1e738d06dbbcdb7f3d051614e7aa493f795d | /mysite/config/settings.py | 41635b0505022517d3d2ca9886160f51f35e9721 | [] | no_license | suhjohn/ec2-deploy-mysite | 34c13e1ae3ff33ca14a6223ee8036432ea98d460 | fb3c33cb64ecfa673f16da0385942f76bde748a1 | refs/heads/master | 2021-07-19T17:57:53.701059 | 2017-10-27T05:33:27 | 2017-10-27T05:33:27 | 108,366,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
c663cfef1a695d5be22587d9ff42d87025c79fdc | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/destination_display_variant_ref.py | 3255e0537fdd4c971133e232146768cd1aa74573 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 332 | py | from dataclasses import dataclass
from .destination_display_variant_ref_structure import DestinationDisplayVariantRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class DestinationDisplayVariantRef(DestinationDisplayVariantRefStructure):
class Meta:
namespace = "http://www.netex.or... | [
"chris@komposta.net"
] | chris@komposta.net |
3a2ad1e33b7dc2a198f28492c836efb94a98b834 | 3562fa51db47b1b1e97785191f0c04644d47c283 | /python/plat3/2152.py | 62489943de0aeb7ac35dc6bf78cf5e4aa950e1b3 | [] | no_license | seono/algorithm | c74181d564525e3a0214824c4a619c51cd52a042 | 78a252b29290eaa1ea076d76cd83e5dbbb7d8d89 | refs/heads/master | 2021-07-13T07:13:41.523888 | 2021-04-24T14:05:00 | 2021-04-24T14:05:00 | 244,609,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import sys
from collections import deque
sys.setrecursionlimit(100000)
input = sys.stdin.readline
N, M, S, T = map(int,input().split())
adj = [[] for _ in range(N+1)]
for i in range(M):
s,t = map(int,input().split())
adj[s].append(t)
cnt,SN = 0,0
dfsn = [0]*(N+1)
scc_arr = []
scc_num = [0]*(N+1)
finished = [Fa... | [
"tjsh0111@gmail.com"
] | tjsh0111@gmail.com |
a32df99969cc2b00821ca9dfd9e146584b61aad7 | ed63b9b615c0f1484746e87b54a0c0b233ddf5c2 | /tests/test_parser.py | 90b755aedee63b62e364f59f3cb3c53381aaf2e0 | [
"MIT"
] | permissive | timofurrer/embedeval | ae02026da6cd5601b16afe1cbb543552cbf461ac | 08a69c950c9a0ac59a8a0ca728af2627c7bcc43a | refs/heads/master | 2020-07-29T10:41:56.322842 | 2020-01-20T10:32:46 | 2020-01-20T10:32:51 | 209,766,108 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | """
embedeval
~~~~~~~~~
NLP Embedding Evaluation Tool
:copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import textwrap
import uuid
import numpy as np
import pytest
from embedeval.parsers.word2vec_gensim import load_embedding as gensim_load_embedding
from embe... | [
"tuxtimo@gmail.com"
] | tuxtimo@gmail.com |
1e7fd967ad595fb9792cb574c9219de21724fb93 | ac652ff7636d4c3336918d0f96aa8ea1bba3ab28 | /fastvid/posts/serializers/postmodel.py | c0152d21e28e0e4c646800e2244e7b172f680400 | [] | no_license | pn101/fastvid | eebff58e9dd6b967a52361713ed34462e0713d88 | 9f57c577c558906e3fd5c3ab44f112588ae84ed2 | refs/heads/develop | 2021-01-20T18:58:34.398325 | 2016-07-05T09:29:49 | 2016-07-05T09:29:49 | 61,545,668 | 0 | 0 | null | 2016-06-20T13:14:42 | 2016-06-20T12:22:08 | null | UTF-8 | Python | false | false | 412 | py | from rest_framework import serializers
from posts.models import Post
class PostModelSerializer(serializers.ModelSerializer):
username = serializers.CharField(source='user.username')
class Meta:
model = Post
fields = [
'pk',
'username',
'title',
... | [
"philipnam101@gmail.com"
] | philipnam101@gmail.com |
b4819e1ec3e683284917e6a9291f28ae1220f9c7 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DELL-NETWORKING-TC.py | a5184bbe6b70262343039230a6f6eb6c4efb5c16 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | 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 | 18,834 | py | #
# PySNMP MIB module DELL-NETWORKING-TC (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DELL-NETWORKING-TC
# Produced by pysmi-0.3.4 at Wed May 1 12:37:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
6f47ad10c4d8add20d063805aae912c0a742a686 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bd_-11162/sdB_bd_-11162_lc.py | b076fadab2c00cc4cf60f263d06b3a4df11907ba | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[13.062792,-10.662778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_bd_-11162/sdB_bd_-11162_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ ==... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
1e3299112d0d4a422e71d7d55d2a4869b4e74dc6 | 917e376668f325c0452fe05fcf3f6348a6ac4336 | /tests/xla_interpreter_test.py | d3b758aa0cb0e09d3959f3ad74c8e0192d75cc0a | [
"Apache-2.0"
] | permissive | wusixer/jax | 5f8d78a89679db74d0d62806725cc820246d4b4e | 66de981e1dfbe04a41b2c003f171fea7bb92585f | refs/heads/main | 2023-06-15T09:10:45.599555 | 2021-07-06T01:58:11 | 2021-07-06T01:58:11 | 383,305,925 | 0 | 0 | NOASSERTION | 2021-07-06T01:32:55 | 2021-07-06T01:32:55 | null | UTF-8 | Python | false | false | 1,252 | py | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
acce8e1a21ccf28ffadc38b8002f50cdbcf6987b | afdda9b5185826747814dd82fdf74f809cfa62ef | /Python/tdw/librarian.py | ce2301ec287ecfd7eebbf45a81bb85c00ca3ed8d | [
"BSD-2-Clause"
] | permissive | lijin929/tdw | e011b831c650a383a22e7e16d934c7940416fcd0 | 957cff2b400fbd24e31bbae886c307ecb7a74cdb | refs/heads/master | 2023-08-14T22:35:29.172322 | 2021-09-14T13:52:30 | 2021-09-14T13:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,269 | py | import json
from typing import List, Dict, TypeVar, Union, Generic, Optional, Tuple
import pkg_resources
from pathlib import Path
import platform
from secrets import token_hex
class _Record:
"""
Abstract class for a metadata record.
"""
_PLATFORM = platform.system()
def __init__(s... | [
"alters@mit.edu"
] | alters@mit.edu |
c35af357be8ae118dde3133aaaff753973cb786b | f756eedd0fd4cee9b369978d1e20287dd579e4da | /InmoovScript/services/7_Inmoov.py | ac1ef25dc0796c3cb41c2579757db642007edf0a | [] | no_license | linuxrodo/inmoov | cf02421443d6976f153a64c898e2c209e32cc246 | fe8391d6d59ccdf6bdf5b382872fdf4bf77f4b09 | refs/heads/master | 2021-01-21T09:06:52.835689 | 2017-02-23T04:07:38 | 2017-02-23T04:07:38 | 82,861,443 | 0 | 0 | null | 2017-02-22T23:05:24 | 2017-02-22T23:05:24 | null | UTF-8 | Python | false | false | 934 | py | # ##############################################################################
# INMOOV SERVICE
# ##############################################################################
# ##############################################################################
# MRL SERVICE CALL
# #############################... | [
"moz4r@free.fr"
] | moz4r@free.fr |
5d7a771e779f0b24d4bc1ae2bf01ac98e9d0c325 | 9423dd5312d6c05f61ec902a26ff627c6ef58f97 | /Python/functions/get_middle_point.py | 6d5bb3a5c5f3d271d454c9c6da74dc57df5a617c | [] | no_license | NehvedovichVlad/small_tasks | 01c093b07d521da59c559591559d61e81829df0f | 1c4085e3a2f0a4530c82f57b98f0f83b18e68567 | refs/heads/main | 2023-03-17T15:49:04.480092 | 2021-03-11T20:29:05 | 2021-03-11T20:29:05 | 308,935,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | """"
Середина отрезка
Напишите функцию get_middle_point(x1, y1, x2, y2),
которая принимает в качестве аргументов координаты концов отрезка
(x_1; \, y_1)(x 1;y1) и (x_2; \, y_2)(x2;y2)
и возвращает координаты точки являющейся серединой данного отрезка.
"""
# -----------------------------------------------------------... | [
"vladislavnehvedovich@gmail.com"
] | vladislavnehvedovich@gmail.com |
cec69182b84e9aa6bff4f48d54f59182d811ddf5 | de847b2e9a5236887fb6a164fedc0e0c86b84e6c | /pythonturorial/workshopprograms/userinput.py | 0b0ce93aae289361bd5e6a95386c281114c27be5 | [] | no_license | raghuprasadks/pythonmicrosoftexam | 9a6bcafcdbc5bb6727278f421bb1a31dc5b7427b | 68dacab8aa98d0ff39f1f36c3ce8e666be3760a0 | refs/heads/master | 2020-09-15T02:51:06.809959 | 2020-02-12T01:18:42 | 2020-02-12T01:18:42 | 223,330,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | name = input("Enter your name")
print(type(name))
print('your name is ',name)
age = int(input("enter your age"))
print('your age is ',age)
nextyear = age +1
print('your age after one year',nextyear)
amount = float(input("Enter the payment made for purchase of fruits"))
print('float conversion',amount)
print("Enter ... | [
"prasadraghuks@gmail.com"
] | prasadraghuks@gmail.com |
8e9aecb12e6e5e2f8c0bc687ca323a81ccf17b40 | 4935e2ef7994222178f950319f9f8d3e2adfa543 | /summer/2018_07_26/4sum-ii.py | 93f49d2327c742fa53619df9e5a30f374a233dd2 | [] | no_license | shaheming/leecode | e853b59469b97ca97a5b4ecd80497b3dac3fb10f | a8b59573dc201438ebd5a5ab64e9ac61255a4abd | refs/heads/master | 2021-07-03T03:57:22.718410 | 2019-04-06T18:19:53 | 2019-04-06T18:19:53 | 140,241,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #这个问题本来是一个 O(N^4) 但是通过拆解可以拆解为两个 O(2*N^2) 的问题
class Solution:
def fourSumCount(self, A, B, C, D):
"""
:type A: List[int]
:type B: List[int]
:type C: List[int]
:type D: List[int]
:rtype: int
"""
count = 0
dicA, dicB, dicC, dicD = {}, {}, {}, {}
... | [
"shmsand@gmail.com"
] | shmsand@gmail.com |
61acdb8d432dd34f001d2c0e97dfee241beada2b | 0bcc7dba1f5f1738f9b11a259e63edcb39795a41 | /INFO1110/Lab6/sorter.py | c8f145941317de52a6354f0f760cb64eeb835ec3 | [] | no_license | mlumsden001/University-Notes | 3704b0a0e49a24d965aa24658a607a89c1dfa7da | e0040192204360e3bd3df7087738913c7763a331 | refs/heads/master | 2021-08-15T20:19:18.527082 | 2021-03-22T05:41:11 | 2021-03-22T05:41:11 | 246,731,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | import sys
def sort(sys.argv[1]):
| [
"mlum7853@uni.sydney.edu.au"
] | mlum7853@uni.sydney.edu.au |
4d7505d380777b2beba7bed17181483a5992b5c4 | da9b9f75a693d17102be45b88efc212ca6da4085 | /sdk/appconfiguration/azure-appconfiguration/setup.py | cbab0ebedf6658d7f5da30366ae1070a9eca46c9 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | elraikhm/azure-sdk-for-python | e1f57b2b4d8cc196fb04eb83d81022f50ff63db7 | dcb6fdd18b0d8e0f1d7b34fdf82b27a90ee8eafc | refs/heads/master | 2021-06-21T22:01:37.063647 | 2021-05-21T23:43:56 | 2021-05-21T23:43:56 | 216,855,069 | 0 | 0 | MIT | 2019-10-22T16:05:03 | 2019-10-22T16:05:02 | null | UTF-8 | Python | false | false | 3,251 | py | #!/usr/bin/env python
#-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#----------------------------------------------------------------... | [
"noreply@github.com"
] | elraikhm.noreply@github.com |
32c207f3631eab9b520c22cef2980be18016e080 | 8b7d98c5077d1607568460ce5ae8da801b11293a | /accounts/forms.py | f47b51e9149eed83879485476cefed208ceca865 | [] | no_license | Th0rn-dev/kiteupru | de0e93fd791522433e2ab34efac1e86a0cb0f613 | df240ff50f51b390f7e27ca35841c6482642d97d | refs/heads/master | 2023-05-04T13:44:05.561708 | 2021-05-30T19:01:59 | 2021-05-30T19:45:47 | 372,293,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | from django import forms
from .models import Profile
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = ('avatar',) | [
"11_ka@rambler.ru"
] | 11_ka@rambler.ru |
21190bb8e62dd782eafae6f70363d5471f54ebd4 | 39b35326534d6efa8a60344ef59eac3d8cea562f | /crudpj/crudpj/wsgi.py | b639603353b77ea9655595ff087206ea6ebb8995 | [] | no_license | Hyo-gyeong/Django_review | 8635e8311111cab56066c6b87429c7f57c5e42c3 | 8b59d717c0c8c4404230c8eaa42e6074cacdd712 | refs/heads/master | 2021-01-03T08:32:06.706689 | 2020-08-31T04:55:59 | 2020-08-31T04:55:59 | 240,000,924 | 0 | 0 | null | 2020-08-17T19:21:30 | 2020-02-12T11:53:19 | Python | UTF-8 | Python | false | false | 405 | py | """
WSGI config for crudpj 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('... | [
"cdkrcd8@gmail.com"
] | cdkrcd8@gmail.com |
4a404290eef8c70049ea154977a634238d6797a0 | a72f39b82966cd6e2a3673851433ce7db550429a | /imix/data/loaders/visual_dialog_dataset.py | 1ff1aed7483afe4283ef3a5267e1db67c5410fa9 | [
"Apache-2.0"
] | permissive | linxi1158/iMIX | 85841d6b95e1d99ed421a1ac3667658e49cae6fc | af87a17275f02c94932bb2e29f132a84db812002 | refs/heads/master | 2023-06-09T23:37:46.534031 | 2021-06-30T12:09:42 | 2021-06-30T12:09:42 | 381,608,650 | 0 | 0 | Apache-2.0 | 2021-06-30T07:08:40 | 2021-06-30T07:08:39 | null | UTF-8 | Python | false | false | 10,038 | py | from torch.utils.data import Dataset
from imix.data.reader.visual_dialog_reader import VisDiaReader
from imix.data.infocomp.visual_dialog_infocpler import VisDiaInfoCpler
from imix.data.builder import DATASETS
import torch
import json
from transformers.tokenization_bert import BertTokenizer
from imix.data.reader.featu... | [
"hsslab.inspur@gmail.com"
] | hsslab.inspur@gmail.com |
69902164ea9b3ea1f9ce378a4254075c62c0dac7 | bc0938b96b86d1396cb6b403742a9f8dbdb28e4c | /aliyun-python-sdk-alidns/aliyunsdkalidns/request/v20150109/DescribeDomainStatisticsRequest.py | 067b160a177535f3387786359d536dd3e134c0fa | [
"Apache-2.0"
] | permissive | jia-jerry/aliyun-openapi-python-sdk | fb14d825eb0770b874bc123746c2e45efaf64a6d | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | refs/heads/master | 2022-11-16T05:20:03.515145 | 2020-07-10T08:45:41 | 2020-07-10T09:06:32 | 278,590,780 | 0 | 0 | NOASSERTION | 2020-07-10T09:15:19 | 2020-07-10T09:15:19 | null | UTF-8 | Python | false | false | 1,896 | 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 |
3d6106b6e7e3d37af803f11255cad2346a387720 | 434a76f2a39b6152e18f25c092e2d3e272bcaa7d | /api/views/blockchains/resources.py | b30b53e5a6ba756d1d935653476963c9e299f4e2 | [
"Apache-2.0"
] | permissive | DaCeige/machinaris | fce98168d0ec288b47c37662079cbb928975badc | 2d3837c8af00bb41162f8be1cbf6eaf1cb6c6fdb | refs/heads/main | 2023-08-24T13:10:22.511119 | 2021-10-07T18:55:25 | 2021-10-07T18:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | import datetime as dt
from flask.views import MethodView
from api import app
from api.extensions.api import Blueprint, SQLCursorPage
from common.extensions.database import db
from common.models import Blockchain
from .schemas import BlockchainSchema, BlockchainQueryArgsSchema
blp = Blueprint(
'Blockchains',
... | [
"guydavis.ca@gmail.com"
] | guydavis.ca@gmail.com |
a4179dd3d6f20a183b344f05c1d32a059c61e4a6 | c3eabffad6813a285ea1aa554ff05ef3e798bfa7 | /bubbleshoot/utils.py | d1690f1bba79a87551017310240add1a42ba2277 | [] | no_license | ranjian0/mini-games | 8a96eef730cffccd548cd70dee3349ad31502ba3 | 34bb48456ed6e3fc0d82a4c936e01c48bf0e8f47 | refs/heads/master | 2020-03-19T00:09:24.914583 | 2020-01-08T15:32:46 | 2020-01-08T15:32:46 | 135,455,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,516 | py | import os
import math, random
import pygame as pg
from pygame.sprite import *
# from player import Player
# from enemy import EnemySpawner
TRANSPARENT = (0, 0, 0, 0)
def random_pos(target, dist):
pad = 100
max_ = pg.display.get_surface().get_size()
pos = [random.randint(0, n - pad) for n in max_]
... | [
"karanjaichungwa@gmail.com"
] | karanjaichungwa@gmail.com |
eb072ee218d2a1895d7da00df4591fd81018b7c7 | 584db1be8b6bdedaa56d186692ad72da5ee07164 | /patron/tests/unit/virt/xenapi/test_driver.py | f8674f0cec1082ea4a77834f9a8001aa2c43c8e8 | [
"Apache-2.0"
] | permissive | casbin/openstack-patron | 66006f57725cf1c3d735cd5529d3459fd77384c8 | b41b1262f3a52c8cc9f6b6bdf87be5a1abcf6d25 | refs/heads/master | 2023-05-31T05:23:37.721768 | 2015-12-31T12:18:17 | 2015-12-31T12:18:17 | 382,054,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,308 | py | # Copyright (c) 2013 Rackspace Hosting
#
# 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... | [
"hsluoyz@qq.com"
] | hsluoyz@qq.com |
0c31c2c12ba0cee2fca07eaa29b494befb80343a | 1626e16760c9c5b5dc9bd7c345871c716d5ffd99 | /Problems/0001_0099/0037_Sudoku_Solver/Project_Python3/Solution1.py | 55219e728189a2d7038f6a589b53cbfbcce69186 | [] | no_license | NobuyukiInoue/LeetCode | 94ddb19e63cb8d0775cdc13f311fe90c87a1d718 | 3f0ffd519404165fd1a735441b212c801fd1ad1e | refs/heads/master | 2023-09-01T07:38:50.939942 | 2023-08-23T09:51:17 | 2023-08-23T09:51:17 | 158,100,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | class Solution:
# def solveSudoku(self, board: List[List[str]]) -> None:
def solveSudoku(self, board):
"""
Do not return anything, modify board in-place instead.
"""
from collections import defaultdict
nums = [str(i) for i in range(1, 10)]
rows, cols, cells, empty ... | [
"spring555@gmail.com"
] | spring555@gmail.com |
9e147454ebbe583aae958e4c95cc4a87cd3a44ab | 5f9695616cce1c03013ae9a5e823ad686bf33b6e | /tests/test_unet2.py | 8d5f6867f0a173f479a72b89d2328f66e9994c1f | [
"MIT"
] | permissive | caiyunapp/leibniz | c9567685cafbc618d22487e408a27ba21cc8633e | 40bb6f088c5325701ca53506d7a66eb0a9ef4fef | refs/heads/master | 2023-04-16T18:31:27.194818 | 2021-09-13T15:54:57 | 2021-09-13T15:54:57 | 208,940,378 | 16 | 5 | null | null | null | null | UTF-8 | Python | false | false | 11,603 | py | # -*- coding: utf-8 -*-
import unittest
import torch as th
from leibniz.nn.net import resunet2
from leibniz.nn.layer.hyperbolic import HyperBasic
from leibniz.nn.layer.hyperbolic import HyperBottleneck
from leibniz.nn.layer.senet import SEBasicBlock, SEBottleneck
from leibniz.nn.layer.hyperbolic2 import HyperBasic as... | [
"mingli.yuan@gmail.com"
] | mingli.yuan@gmail.com |
dc1572244f1304493d64d667155fcbbc94bf2c68 | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pythonNet/day2/server_udp.py | 1d475122c9fb66755a8bb12c1c143cd7db4d6ed6 | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python3
from socket import *
# 创建套接字对象
sockfd = socket(AF_INET, SOCK_DGRAM)
# 绑定地址
IP = '0.0.0.0'
PORT = 8888
ADDR = (IP, PORT)
sockfd.bind(ADDR)
while True:
# 接受数据(与tcp不同)
data, addr = sockfd.recvfrom(1024)
message = "已收到来自%s的数据:%s" % (addr, data.decode())
print(message)
# 发送数据
... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
1818810ee229cd68db13a66efefecbe5872edcc2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/216.py | d0006fc021592ec292be67dc3cf4606ceec3d5d5 | [] | 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 | 3,591 | py | import string
class GraphNode(object):
def __init__(self, x_pos, y_pos):
self.x_pos = x_pos
self.y_pos = y_pos
self.flows_to = None
self.flows_from = []
self.label = None
def set_flows_to(self, other):
assert self.flows_to != other
self.f... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
661caf7b460c7daa1b1dcd64f2926900fa1374e5 | 2286b880df34e1bfabe79b3605de287040404560 | /02-02/todolist/task/urls.py | 97bdb244e32e547aaa634f5ef9fd3c9aa9311fa6 | [] | no_license | iklimah27/praxis-academy-2 | e5d8b08807980d6fd8ff6ab73caa6ea18083c7f8 | 925853b520c9a8d7a87d8980d7fedfa604d3b4c8 | refs/heads/master | 2022-12-25T01:54:45.572190 | 2020-10-15T07:22:06 | 2020-10-15T07:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from django.contrib import admin
from django.urls import path
from django.shortcuts import render
from . import views
urlpatterns = [
path('', views.index),
path('<id>/', views.detail),
path('<id>/delete/', views.delete),
]
| [
"hatami391998@gmail.com"
] | hatami391998@gmail.com |
1fe2656260edd35919c9745fc47bafc67970c346 | c9c5463996bf9e2adcd4918857382121b0a5aa56 | /leetcode/堆/重构字符串.py | 0147b66b14e19194532f2ddae5788e111bc1a915 | [] | no_license | Da1anna/Data-Structed-and-Algorithm_python | fdf370c355248081990c57c1c8eb5e05c4781e2b | cce067ef4374128924018b00c5ea77d2e869a834 | refs/heads/master | 2022-12-27T13:24:36.084657 | 2020-10-13T02:39:39 | 2020-10-13T02:39:39 | 174,938,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | '''
给定一个字符串S,检查是否能重新排布其中的字母,使得两相邻的字符不同。
若可行,输出任意可行的结果。若不可行,返回空字符串。
示例 1:
输入: S = "aab"
输出: "aba"
示例 2:
输入: S = "aaab"
输出: ""
注意:
S 只包含小写字母并且长度在[1, 500]区间内。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/reorganize-string
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
'''
思路1:双指针交换法,遍历数组,当遇到一个字母与它之前一个不同时,从当前位置开始寻找一个... | [
"1318176575@qq.com"
] | 1318176575@qq.com |
58f225e91c9707ccec4037ee3789c38ff19785e9 | 799a0af9c05deabe5d5250a10e480ec15ae0216e | /Xpath_test/xpath_test_10.py | 3c4e2e550651ef49c998f95a34ee15717ae8ac84 | [
"MIT"
] | permissive | waws520waws/waws_spider | 9b2be28834c08166463fe265e0f5c37a874369c8 | c6a5988121f32619a5c5134c09fdfd556c696fe7 | refs/heads/master | 2021-03-20T06:01:22.041937 | 2020-03-28T02:49:16 | 2020-03-28T02:49:16 | 247,183,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | from lxml import etree
"""
contains的使用:应用于一个标签的属性有多个值的情况,如果我们还是用之前的相等的模式,是匹配不到值的
"""
text = '''
<li class="li li-first"><a href="link.html">first item</a></li>
'''
html = etree.HTML(text)
result = html.xpath('//li[contains(@class, "li")]/a/text()')
print(result) | [
"16601203140@163.com"
] | 16601203140@163.com |
f7c6dff56a5dbfbd57c51b742a1f32e141403c38 | da2583af7a14f04aed029a79a79224547de4c1f2 | /rl/policy/gp_linear_mean.py | ba4a963f759f350f923730c7a4ecbcfa39d55142 | [] | no_license | yun-long/rl_prototype | 4b0af8b817ad1c8bc30a46d7fa2e8f5cd37f7ea1 | 0a86a097d58ce299da90ea346e074f20fe167a5d | refs/heads/master | 2020-04-23T15:37:49.498870 | 2019-02-18T11:28:21 | 2019-02-18T11:28:21 | 171,271,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,545 | py | """
Gaussin policy, linear mean, constant variance
Reference: Jan Peters, A Survey on policy search for robotics
"""
import numpy as np
import time
from rl.policy.base import GaussianPolicy
class GPLinearMean(GaussianPolicy):
def __init__(self, env, featurizer):
#
self.env = env
#
... | [
"yun-long.song@outlook.com"
] | yun-long.song@outlook.com |
24007ef5ef566f228a7667133ecccce9e2ca71b6 | 9be143a314f58bad3ca607e8c322415e6d05a30f | /venv/Scripts/pip3-script.py | 5c0139f6223e17f6c9f55c676299039aed715457 | [] | no_license | zibb03/Face-Emotion-Recognition | baec3b7d57636642641e52afd73f1ef5436a51d6 | fd5b04fc34fc8cfa9415ae7ab5fa85316c3be6d4 | refs/heads/main | 2023-06-18T15:49:40.905788 | 2021-07-19T15:05:00 | 2021-07-19T15:05:00 | 355,542,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | #!C:\Users\user\PycharmProjects\OpenCV\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]... | [
"64014435+zibb03@users.noreply.github.com"
] | 64014435+zibb03@users.noreply.github.com |
2949ad30d2c1f779dd0f7906f17943d31c121fb1 | eac22714038e840028cc5abb72bc750004626ebb | /mct_camera_tools/nodes/image_proc_master.py | 3316d09e4957ac3d0f6500030feeee1cccdedf4f | [
"Apache-2.0"
] | permissive | iorodeo/mct | 79b19f6dab9f6567452df7274d67245bf64b1801 | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | refs/heads/master | 2022-11-11T18:03:18.178182 | 2014-08-20T19:21:27 | 2014-08-20T19:21:27 | 273,790,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,780 | py | #!/usr/bin/env python
from __future__ import print_function
import roslib
roslib.load_manifest('mct_camera_tools')
import rospy
import os
import os.path
import tempfile
import subprocess
from mct_xml_tools import launch
# Services
from mct_msg_and_srv.srv import CommandString
from mct_msg_and_srv.srv import Command... | [
"will@iorodeo.com"
] | will@iorodeo.com |
dd5617275d2a87e52a380d2ccfcdf4777e0566ba | 45e376ae66b78b17788b1d3575b334b2cb1d0b1c | /checkov/common/graph/checks_infra/debug.py | 26b247b24b08837b95bd15668c25aedf4d45d7c6 | [
"Apache-2.0"
] | permissive | bridgecrewio/checkov | aeb8febed2ed90e61d5755f8f9d80b125362644d | e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d | refs/heads/main | 2023-08-31T06:57:21.990147 | 2023-08-30T23:01:47 | 2023-08-30T23:01:47 | 224,386,599 | 5,929 | 1,056 | Apache-2.0 | 2023-09-14T20:10:23 | 2019-11-27T08:55:14 | Python | UTF-8 | Python | false | false | 6,589 | py | from __future__ import annotations
import json
import logging
from collections.abc import Iterable
from typing import Any, TYPE_CHECKING
import yaml
from termcolor import colored
from checkov.common.graph.graph_builder import CustomAttributes
from checkov.common.resource_code_logger_filter import add_resource_code_f... | [
"noreply@github.com"
] | bridgecrewio.noreply@github.com |
b9c56ac1d31b2218826dbd63b673f4c3cff2e16a | a2f78983557c1ead7b2a7c3e720d4719099878b9 | /python/ray/experimental/sgd/tf/tf_runner.py | 384136ba79630ef2660e8ee46da3cf60f3455ccf | [
"Apache-2.0",
"MIT"
] | permissive | Senmumu/ray | 3fc914a0a5d9da8fcaa3411bc04be7fba3ce6bbd | 130b8f21da4fb5383b079493faaea5d81065b772 | refs/heads/master | 2020-07-18T12:08:51.862689 | 2019-09-03T22:36:25 | 2019-09-03T22:36:25 | 206,242,928 | 1 | 0 | Apache-2.0 | 2019-09-04T05:59:44 | 2019-09-04T05:59:44 | null | UTF-8 | Python | false | false | 5,250 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import logging
import json
import os
import numpy as np
import ray
import ray.services
from ray.experimental.sgd import utils
logger = logging.getLogger(__name__)
def _try_import_strategy():
"""Late imp... | [
"rliaw@berkeley.edu"
] | rliaw@berkeley.edu |
6e3f6c3449d7f93848d1116b344a0dcabece60f2 | 6cf86e6122b3c65853231481ff73d40a25374eb1 | /Input().py | 068cf37daec039fb7b1eb52c376b116f2b161ace | [] | no_license | npc203/hackerrank-one-liners | d9480ce71cde342458689250963d1f69f3a38093 | a7eb66c8d1bfa3508cae28ff6160db2728df3b5b | refs/heads/main | 2023-07-17T12:03:03.757519 | 2021-08-20T12:30:18 | 2021-08-20T12:30:48 | 375,340,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | (lambda x,b : print(eval(input()) == b))(*map(int,input().split())) | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
114b4c677ac9ad89733f6b700813000b37a0f4b4 | 7f7fc72cf2f2f06ef7eb5d852d0bd2caf3f2daf9 | /sirepo/runner.py | 6b4f1b20aa57674dc9faee958a025c976818c02e | [
"Apache-2.0"
] | permissive | kalebswartz7/sirepo | 4bcd41113ba93a3f7bcfa47df27e79805e1e4f50 | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | refs/heads/master | 2020-03-19T08:31:41.409642 | 2018-07-20T19:32:48 | 2018-07-20T19:32:48 | 136,211,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,268 | py | # -*- coding: utf-8 -*-
u"""Run jobs
:copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
decouple so can start any type of job
add is_background_import to simulation_db
select docker for that if configured and not background
need to have hard ... | [
"github@q33.us"
] | github@q33.us |
b1fc4028b00d66db57ef3d4fca7602a0b3de1815 | 8eb0f65096f9a9fe90a88c85dcdcaf12f9a8a512 | /apps/maintenance_mode/middleware.py | cd0e09b3e8aba28e3af198050f46e5958f5de4a4 | [
"MIT"
] | permissive | WhitespaceCrew/django-htk | 57c8cc9ec30b4cd9511b717978758c47144de76f | 6a7b87a3d0a2e4cb51f6b8059708a26fa8e613df | refs/heads/master | 2020-12-31T01:10:14.900413 | 2016-02-03T19:24:27 | 2016-02-03T19:25:02 | 45,211,442 | 0 | 0 | null | 2015-10-29T21:23:54 | 2015-10-29T21:23:54 | null | UTF-8 | Python | false | false | 873 | py | from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from htk.apps.maintenance_mode.utils import is_maintenance_mode
from htk.utils import htk_setting
class MaintenanceModeMiddleware(object):
"""Checks whether HTK_MAINTENANCE_MODE is set
If so, redirects to the HTK_MAINTENANCE_M... | [
"jontsai@jonathantsai.com"
] | jontsai@jonathantsai.com |
b6b7520917496dbd41f7f57d11d8d68f84434ff7 | ee179dd9e9b24046508b11a60612da3758c7e122 | /lib/python2.7/site-packages/nltk/stem/api.py | c6032423e84a9a5b8a1985afcf341e4084970792 | [] | no_license | buhtigexa/Nerit | fcd6cb08a0935e5b80392ae2acf68ba52ee8a899 | d55629f6289c1fa6efe60802a78b79932ff248a2 | refs/heads/master | 2021-01-21T13:11:51.105930 | 2015-05-01T23:56:02 | 2015-05-01T23:56:02 | 34,728,820 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # Natural Language Toolkit: Stemmer Interface
#
# Copyright (C) 2001-2014 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
class StemmerI(object):
"""... | [
"mrodriguez@alumnos.exa.unicen.edu.ar"
] | mrodriguez@alumnos.exa.unicen.edu.ar |
37cd36176891ea926eef36e5b677f6b4352ae940 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-as/huaweicloudsdkas/v1/model/pause_scaling_group_request.py | c88cd3d690fe6f2fc4753b1834d1bd3b10a9f9f9 | [
"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 | 4,079 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PauseScalingGroupRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
42ee0b0d809863a628c4d9a10375863e7328db4a | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex46.py | b8f578eefedb0af0bc3a15588f48718e85d76ec0 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
ans = {(nums[i],): nums[:i] + nums[i+1:] for i in range(len(nums))}
for _ in range(len(nums)-1):
for permute in list(ans):
remaining = ans[permute]
for i in range(len(remaining)):
... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
37434a2d02bf51c411162c56fe9eda123ad980d9 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /advance_cash_flow_statements/wizard/account_account.py | 8ab4d6059149ffc32c123a592816f6a73772185a | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 3,562 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
79180c09bcb81b56e6d9d1043b6380e55871d2a0 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task1/BD_135_703_2371_KhgNwL4.py | 39a4a494197832cb4b20798bc47cbace9f61a4d5 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,134 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
import requests
def func(rdd):
sorted_rdd1 = rdd.sortBy(lambda x: (-x[1],x[0]))
sorted_rdd=sorted_rdd1.filter(lambda y: y[0] !='')
s_list=... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
71ff48d27a98e522cb1183c1508f3fd16ee598fa | 521a5abf021aff0e5bec6e4723efb2d95bc1c528 | /dva/urls.py | f5d1f059a314c2edc9fa63fd0894759abd496b16 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | CVML/DeepVideoAnalytics | be3ed41968a140328e25c22f2cb2be431a2b172d | d0969b503ed68dc9ee26279c341e1540bfefd4f6 | refs/heads/master | 2021-07-17T22:19:20.787228 | 2017-10-22T07:55:04 | 2017-10-22T07:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """dva URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
c5383493a1f9677eb1111b85946e9ad9e14fe2b8 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_nonlinear_software/10-19_35.py | 6ae8d393dc099f7aac05202aa5a431adcbaf9881 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,238 | py | from typing import FrozenSet, Tuple
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
e9ab407ab62a078acf59f7b0df91d74002198a3b | 76800454958c36c26d828ee989f181990813955f | /tutorial/HungyiLee/rnn/preprocess.py | 327adbf18ae8258660063e2fe4c3dfa221fd5d67 | [] | no_license | JuneXia/proml | 374b27b1d1c2d983aae4fed3141a2864a7196a1b | fbe86564013e7556c30d98c702c1ba6251f21851 | refs/heads/master | 2022-12-27T23:38:16.838639 | 2020-10-11T10:05:32 | 2020-10-11T10:05:32 | 267,207,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | # preprocess.py
# 這個 block 用來做 data 的預處理
import torch
from torch import nn
from gensim.models import Word2Vec
class Preprocess():
def __init__(self, sentences, sen_len, w2v_path="./w2v.model"):
self.w2v_path = w2v_path
self.sentences = sentences
self.sen_len = sen_len
self.idx2word ... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
9649970d62f951be36ba3cde0f8017e23aa5c6c1 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Locust/Test/wsh_loadtest.py | 53219d5e5215e6e3cee8591f2b5756445323a944 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from locust import HttpLocust, TaskSet, task
import json
counter = 0
class UserBehavior(TaskSet):
#global counter
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
self.login()
def login(self):
res = self.client.post("/login/login-ajax... | [
"hyteer@qq.com"
] | hyteer@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.