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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e53ef3a51a14ccc8104cc867ed554b8adb9aed95 | aad164e4efe1d55cc189c35956bfd435b14a0f52 | /eve-8.21.494548/carbon/client/script/graphics/resourceConstructors/caustics.py | 0b31954b427fc0133d1ad9e77edc5c4412a39c19 | [] | no_license | Pluckyduck/eve | 61cc41fe8fd4dca4fbdcc4761a37bcfeb27ed84f | 9a277707ab1f162c6bd9618faf722c0be3ea93ad | refs/heads/master | 2020-12-28T23:35:29.992875 | 2013-05-06T14:24:33 | 2013-05-06T14:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,938 | py | #Embedded file name: c:/depot/games/branches/release/EVE-TRANQUILITY/carbon/client/script/graphics/resourceConstructors/caustics.py
import blue
import trinity
import bluepy
import re
import decometaclass
class CausticsRenderJob(object):
__cid__ = 'trinity.TriRenderJob'
__metaclass__ = decometaclass.BlueWrapped... | [
"ferox2552@gmail.com"
] | ferox2552@gmail.com |
a6b2d8ca57fdd5b6c2a3e5d15ae0a7de5aaa87d7 | e67c27642a4b83b3560dc4bba7de7752278caa07 | /example-seaexplorer/process_deploymentRealTime.py | 390d934c8e720fa964bf4ca7e1f927624cb6a240 | [] | no_license | c-burmaster/pyglider | 3749661bfa367642bdd8cb453e8f14428785de46 | 76131e8419c30852150173a9994a88595cef52aa | refs/heads/master | 2020-07-25T14:42:26.752105 | 2020-04-06T20:44:39 | 2020-04-06T20:44:39 | 208,326,724 | 0 | 0 | null | 2019-09-13T18:48:07 | 2019-09-13T18:48:07 | null | UTF-8 | Python | false | false | 1,545 | py | import logging
import os
import pyglider.seaexplorer as seaexplorer
import pyglider.ncprocess as ncprocess
import pyglider.plotting as pgplot
logging.basicConfig(level='INFO')
sourcedir = '~alseamar/Documents/SEA035/000012/000012/C-Csv/*'
rawdir = './realtime_raw/'
rawncdir = './realtime_rawnc/'
deploymentyaml =... | [
"jklymak@gmail.com"
] | jklymak@gmail.com |
5c05c9569d485e314860849c7d2e6b419d5ec0fe | afa71330ff1b6b4d114993b39fea5f8e4b8fc210 | /ensauction/abis.py | 4334abe77636bbc1de06ea1eb341751a5cd0d3db | [
"MIT"
] | permissive | carver/ensauction.py | e556827e0c613d01ea94743e1527f279b1e92464 | 4f30d64ea7c470a53d133e7c8e43d8228b62732c | refs/heads/master | 2018-12-20T18:28:07.237482 | 2018-09-17T22:15:14 | 2018-09-17T22:15:14 | 110,906,856 | 4 | 0 | MIT | 2018-09-17T20:49:09 | 2017-11-16T01:25:53 | Python | UTF-8 | Python | false | false | 12,327 | py | AUCTION_REGISTRAR = [
{
"constant": False,
"inputs": [
{
"name": "_hash",
"type": "bytes32"
}
],
"name": "releaseDeed",
"outputs": [],
"payable": False,
"type": "function"
},
{
"constant": True,
"inputs": [
{
"name": "_hash",
"t... | [
"ut96caarrs@snkmail.com"
] | ut96caarrs@snkmail.com |
217d85c42a5b1d3880ab3cbf52e36a73d6d5e6c9 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayFinancialnetAuthEcsignErrorQueryResponse.py | 1e5c32e52d696f398ce156d029df7850935ce29a | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,115 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.ErrorLog import ErrorLog
class AlipayFinancialnetAuthEcsignErrorQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayFinancialnetAuthEcsignErro... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
ac9a73f49e91af26961dc6a2016f1f3a3e02557b | 68bad4b3d92872bb5b77b4ee503e588d20511a27 | /python/scripts_inhibition/old_script/effect_beta_conn_index3.py | 71c90589942dfe29b6b59fb06f211f42ddc7e0b9 | [] | no_license | mickelindahl/bgmodel | 647be626a7311a8f08f3dfc897c6dd4466fc0a92 | 78e6f2b73bbcbecd0dba25caf99f835313c914ee | refs/heads/master | 2023-08-29T13:57:04.122115 | 2022-02-11T14:28:23 | 2022-02-11T14:28:23 | 17,148,386 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | '''
Created on Nov 13, 2014
@author: mikael
'''
from scripts_inhibition import effect_conns
from effect_conns import gs_builder_conn
d=kw={'n_rows':8,
'n_cols':2,
'w':int(72/2.54*18),
'h':int(72/2.54*18)/3,
'fontsize':7,
'title_fontsize':7,
'gs_builder':gs_builder_co... | [
"mickelindahl@gmail.com"
] | mickelindahl@gmail.com |
41371ec303f8bfca6e951551f8bc57780ee8392d | 540bf8de2145644fa3549e507871d53352201df8 | /Chapter_8/Lopez_TIY8.9.py | 0f9c69bf23451d0fa200b8967c79b820adbb2d29 | [] | no_license | lope512q09/Python | 68d798d4c3135ac187b78db28b73047b2efdbde9 | 7fdb97da36fd3f7145bfb3c8a43518685b5f6d6d | refs/heads/master | 2020-08-23T10:44:07.915389 | 2020-01-22T15:36:23 | 2020-01-22T15:36:23 | 216,598,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | message_list = ["Hi!", "How are you?", "I'm good, and you?", "The same!"]
def show_messages(messages):
for message in messages:
print(f"{message}\n")
show_messages(message_list)
| [
"dillonduff1@frontier.com"
] | dillonduff1@frontier.com |
c5a559474d66a4a49796a3aa35b921528e07527b | dee29293af049cac224f0c94a7eaf439e8766085 | /bluezutils.py | 8c9f7f962272215923940598f7e84d9b713cd26f | [] | no_license | lubusax/2005_dbus | 9721d88c42081138fac1b55814f5fc1bbb9eec09 | 0647a951448fe8bb297ba2988ef35ec7117e389f | refs/heads/master | 2022-12-01T23:33:52.162681 | 2020-08-10T19:41:02 | 2020-08-10T19:41:02 | 263,895,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,649 | py | import dbus
SERVICE_NAME = "org.bluez"
ADAPTER_INTERFACE = SERVICE_NAME + ".Adapter1"
DEVICE_INTERFACE = SERVICE_NAME + ".Device1"
def get_managed_objects():
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object("org.bluez", "/"),
"org.freedesktop.DBus.ObjectManager")
return manager.GetManagedObjects(... | [
"lu.bu.sax@gmail.com"
] | lu.bu.sax@gmail.com |
3ebb7a68bca91cfa6d41a0fe4b1d036325352a14 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit2215.py | 5f520456f8eb7cadea2dc6cd635e3fff07eb5941 | [
"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 | 3,852 | py | # qubit number=4
# total number=28
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
1e225faa5c2c7bc6323a87b9640d07cc541acb30 | 51fd2216d5182a1b3655e7cb1b197862424054f6 | /insta_api/config/urls.py | 8258104c833242de67443431202090483e1a9431 | [] | no_license | seungjinhan/django_clone_instagram | 3217829fabe893190e7d6cc37b64b7d3c881f441 | f0ea8649d426c167e2ccd2fa3b15e5d3b7867d7b | refs/heads/master | 2022-12-26T05:39:16.320763 | 2020-10-05T13:40:39 | 2020-10-05T13:40:39 | 291,262,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"hanblues@gmail.com"
] | hanblues@gmail.com |
062718780f0e402218a9160bf8cafdd20d5a1da6 | 1749147fb24b13803d3437e0ae94250d67d618bd | /keras/keras33_tensorboard.py | a9043cf01d608a05cfe76b9a3fafa8b1681e955d | [] | no_license | MJK0211/bit_seoul | 65dcccb9336d9565bf9b3bc210b1e9c1c8bd840e | 44d78ce3e03f0a9cf44afafc95879e4e92d27d54 | refs/heads/master | 2023-02-06T00:45:52.999272 | 2020-12-26T07:47:30 | 2020-12-26T07:47:30 | 311,308,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,076 | py | import numpy as np
#1. 데이터
dataset = np.array(range(1,11))
size = 5
def split_x(seq, size):
aaa = []
for i in range(len(seq) - size + 1):
subset = seq[i : (i+size)]
aaa.append([item for item in subset])
# print(type(aaa))
return np.array(aaa)
datasets = split_x(dataset, size)
x =... | [
"kimminjong0211@gmail.com"
] | kimminjong0211@gmail.com |
49582bc92163da9907c82cade99055d72e45a69b | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_format08.py | 058d4a13f4a4112c40ccca93ab04951eaf939c95 | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,440 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
e768c417c324d6053a1501c6620777767efd6bbf | 5483ac2ccf7ac0d951b31dab2a86fe564c397408 | /appos.py | f801bf21a4cacfc9c718c9eab3adaad81a3221a0 | [] | no_license | Ram-Aditya/Music-Recommender | 9d4a7ee8379e98756e2082a95bbb1d5e4318e806 | 1fdeb5ed208be7908f09a1a5576a30218505a979 | refs/heads/master | 2020-05-07T14:20:13.772004 | 2019-10-25T16:12:57 | 2019-10-25T16:12:57 | 180,589,469 | 0 | 2 | null | 2019-10-27T12:58:23 | 2019-04-10T13:37:25 | Python | UTF-8 | Python | false | false | 1,308 | py | appos = {
"ain't":"it is not like",
"aren't" : "are not",
"can't" : "cannot",
"couldn't" : "could not",
"didn't" : "did not",
"doesn't" : "does not",
"don't" : "do not",
"hadn't" : "had not",
"hasn't" : "has not",
"haven't" : "have not",
"he'd" : "he would",
"he'll" : "he will",
"he's" : "he is",
"i'd" : "I would",
"i'... | [
"ramaditya.danbrown@gmail.com"
] | ramaditya.danbrown@gmail.com |
a56d370607d4b4332ef539db433c38161c4a2bcb | 8972658ca2c64703e8281db89d7a6ac47cbabbf7 | /backend/linkanywhere/apps/base/behaviors.py | d3c96ffeda67dc40478d7c26a088712f96c2161d | [
"MIT"
] | permissive | denisorehovsky/linkanywhere | 15721824719cc8a959cdddb4178cfe754eb4862d | e21d6725fbe0e74a7301e40f9d9bdbac17c68e68 | refs/heads/master | 2022-07-21T16:16:17.412930 | 2017-08-24T06:32:37 | 2017-08-24T06:32:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | from django.db import models
from django.utils import timezone
from django.utils.translation import ugettext as _
from behaviors.querysets import PublishedQuerySet
from .constants import DRAFT, PUBLISHED, PUBLICATION_STATUS_CHOICES
class Published(models.Model):
publication_status = models.CharField(
_(... | [
"denis.orehovsky@gmail.com"
] | denis.orehovsky@gmail.com |
20bf26f6d4991ace9ec7a0a74530718eaf4fd7c0 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r10p1/Gen/DecFiles/options/20072002.py | a5d0a92707cd731867593ec97455a57a39004f3e | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r10p1/Gen/DecFiles/options/20072002.py generated: Wed, 25 Jan 2017 15:25:32
#
# Event Type: 20072002
#
# ASCII decay Descriptor: pp => [<Xc>]cc ...
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/DiMuon_for_tau23mu.py" )
from Configurables import Genera... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
80ee0b807b6645849b86857892b8f89176016c50 | 98b63e3dc79c75048163512c3d1b71d4b6987493 | /tensorflow/python/kernel_tests/linalg/sparse/csr_sparse_matrix_sparse_mat_mul_grad_test.py | 07d1e6a2a061f98ad65a92e1259fed8bc646e0ac | [
"Apache-2.0"
] | permissive | galeone/tensorflow | 11a4e4a3f42f4f61a65b432c429ace00401c9cc4 | 1b6f13331f4d8e7fccc66bfeb0b066e77a2b7206 | refs/heads/master | 2022-11-13T11:56:56.143276 | 2020-11-10T14:35:01 | 2020-11-10T14:35:01 | 310,642,488 | 21 | 12 | Apache-2.0 | 2020-11-06T16:01:03 | 2020-11-06T16:01:02 | null | UTF-8 | Python | false | false | 5,236 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
acec0e95d1ab761a24af1b9dc5a5772237ac0c6a | 28c517d75c71dcdefa3dfaa0dff6d5998f885e53 | /testing/regrid/testDiag.py | 6722eaa555a1b1ca4ba13982a9b03f7b2e8220ae | [] | no_license | AZed/uvcdat | 5863eba99f230c23336cc4e0772e0d406b24a919 | 58e745bbed25c7b80584fa25a29dd8239d917cd9 | refs/heads/master | 2021-01-18T10:36:45.792190 | 2013-01-25T22:29:10 | 2013-01-25T22:29:10 | 8,485,065 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,890 | py | """
$Id: testDiag.py 2389 2012-07-26 15:51:43Z dkindig $
Test diagnostics
"""
import re
import numpy
import cdms2
import regrid2
import unittest
import ESMP
from regrid2 import esmf
from matplotlib import pylab
from mpi4py import MPI
import types
from math import pi
import sys
class Test(unittest.TestCase):
d... | [
"aashish.chaudhary@kitware.com"
] | aashish.chaudhary@kitware.com |
b1b4c6f3cdff8fb9c2d1c39ee1f4d1670dd9d919 | 25bcf095a803470b4be9bba394569cb218b997ed | /book/算法和数据操作-回溯法-矩阵中的路径.py | 02aeb344a4c555b22f17c04134e17a8e2968819c | [] | no_license | lcqbit11/algorithms | c8a3da6d3a9d387d54639c0a08d14ca6b9118bb3 | ca4dacda39dc12d53ed8d4448b3356a3f2936603 | refs/heads/master | 2023-06-22T06:36:22.106780 | 2023-06-11T07:10:40 | 2023-06-11T07:10:40 | 245,633,883 | 0 | 0 | null | 2023-06-11T07:10:41 | 2020-03-07T13:02:24 | Python | UTF-8 | Python | false | false | 1,403 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
def matrix_path(matrix, s):
"""
:param matrix: List[List[int]]
:param s: str
:return: bool
"""
def new_matrix(m, row, col):
matrix = [[0] * len(m[0]) for k in range(len(m))]
for i in range(len(m)):
for j in range(len(m[0]... | [
"lichangqing03@meituan.com"
] | lichangqing03@meituan.com |
eca5c374b5e021bedadf8e451f0537bea855034d | 7f24023d365e013ec0924844c1a872edfb0c75b4 | /tests/trac/test-trac-0091.py | 22249454c7a9b898e8f2d4b3e96a19e52251d7dc | [
"Python-2.0",
"MIT",
"Apache-2.0"
] | permissive | pabigot/pyxb | cd42c024607572c6363682d389e9296caf3f2857 | 5ee5ba54c9f702dc9c9efc2731ee547ecd4dae4a | refs/heads/next | 2023-05-11T03:23:19.599756 | 2023-04-29T20:38:15 | 2023-04-29T20:45:13 | 20,547,850 | 130 | 63 | Apache-2.0 | 2021-08-19T16:52:18 | 2014-06-06T01:49:03 | Python | UTF-8 | Python | false | false | 4,794 | py | # -*- coding: utf-8 -*-
import logging
if __name__ == '__main__':
logging.basicConfig()
_log = logging.getLogger(__name__)
import pyxb.binding.generate
import pyxb.binding.datatypes as xs
import pyxb.binding.basis
import pyxb.utils.domutils
import os.path
xsd='''<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xm... | [
"pab@pabigot.com"
] | pab@pabigot.com |
82a11268ed01c2cbfc7d9a0e833ebc4444f24e80 | 7ffa7b3be3ef25db511d0f9db673fa4ff2350daf | /src/Sample43.py | 744edd556499d9dfe4437b8197b871bc69d6b9db | [] | no_license | jacoloves/start_Python | 33c9ee8baa5650a66d496a207269b2228a1640d4 | 1ced11d131b612d78a69ae261d4e06889313afcf | refs/heads/master | 2022-11-24T02:06:40.582895 | 2020-02-15T13:57:13 | 2020-02-15T13:57:13 | 133,673,161 | 0 | 0 | null | 2022-11-22T02:19:43 | 2018-05-16T13:52:03 | Python | UTF-8 | Python | false | false | 102 | py | class A:
"""docstring for A"""
def __init__(self):
self.__value = 1
a = A()
print(a._A__value)
| [
"5511068t@gmail.com"
] | 5511068t@gmail.com |
f95738894ed4e42648865c0d36d329579bf719eb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/132/usersdata/239/41382/submittedfiles/al14.py | 5754055aa4ef2a253321a042cdc75ce2db4c6048 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | # -*- coding: utf-8 -*-
n=int(input("Digite o número de pessoas: "))
i=0
termo=n
while termo>0:
idade=int(input("Digite a idade das pessoas: "))
i=i+idade
termo=termo-1
media=(i/n)
print("%.2f"%media)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4ff05fb289e34cc72623f03733a105c7aa80dbf4 | 38d6a6ac271fca4d5fff422541bc59df10e66ef5 | /landlab/_info.py | 0a320b3bd55222275db2d17e22a791571245c485 | [
"MIT"
] | permissive | AndresQuichimbo/landlab | 767d3c42eaa4e6477865594666dd49eb3eb684bb | 39fee962ec962a389ae4522a55a17f53a0d37a6e | refs/heads/master | 2020-04-01T21:31:11.422998 | 2020-02-06T23:12:26 | 2020-02-06T23:12:26 | 240,261,264 | 0 | 0 | MIT | 2020-02-13T13:00:25 | 2020-02-13T13:00:24 | null | UTF-8 | Python | false | false | 584 | py | name = "landlab"
cite_as = [
"""@article{hobley2017creative,
title={Creative computing with Landlab: an open-source toolkit
for building, coupling, and exploring two-dimensional
numerical models of Earth-surface dynamics},
author={Hobley, Daniel EJ and Adams, Jordan M and Nudurupati,
... | [
"mcflugen@gmail.com"
] | mcflugen@gmail.com |
ee0b438af7cec5ea6648945f35afe8bbfd233040 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/415/usersdata/296/86500/submittedfiles/exe11.py | 3e55da52506b436ee00c29807dd6008b54ef4d53 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | # -*- coding: utf-8 -*-
n = int(input("Digite um número: "))
soma = 0
while n > 0:
if 10000000 <= n <= 90000000:
resto = n%10000000
n = (n - resto)/10000000
soma = soma + resto
print(soma)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c22bc6d09d1dba9ee889fd0d138c6d55c329be08 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/BuildLinks1.10/test_input/CJ_16_1/16_1_2_Erisky_solve_B.py | 414d395289b8df01c731ab2d840c390f59fd2a13 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 826 | py | import math
# raw_input() reads a string with a line of input, stripping the '\n' (newline) at the end.
# This is all you need for most Google Code Jam problems.
total = int(raw_input()) # read a line with a single integer
for i in xrange(1, total + 1):
N = int(raw_input())
output = {}
for j in range(2*N-... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
54b141b59dad195d7bb823334914e9748de22edc | 18f8abb90efece37949f5b5758c7752b1602fb12 | /py/django_tools/django-exceptional/test/example/settings.py | 91dbfbd0d5b7de0bc9be14860552db1f2cde198f | [
"Unlicense"
] | permissive | marceltoben/evandrix.github.com | caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516 | abc3fbfb34f791f84e9a9d4dc522966421778ab2 | refs/heads/master | 2021-08-02T06:18:12.953567 | 2011-08-23T16:49:33 | 2011-08-23T16:49:33 | 2,267,457 | 3 | 5 | null | 2021-07-28T11:39:25 | 2011-08-25T11:18:56 | C | UTF-8 | Python | false | false | 2,603 | py | # Django settings for example project.
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))), 'src'))
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Zachary Voase', 'z@zachary... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
612bc2e1e4649e4a7d9af7a4aabbdcc5d0eac099 | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /src/datadog_api_client/v2/model/opsgenie_service_response_attributes.py | 5d6473bfa2a5e8c186c521947868485560bb1cad | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 1,920 | py | # Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2019-Present Datadog, Inc.
from __future__ import annotations
from typing import Union, TYPE_CHECKING
from datado... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
3e40c665d4a08a20bf0af0dfd2e3714d906f4c00 | 8ab61e98b8b4efa7378ad50ee12ea5ec81b8c310 | /thredo/requests.py | 6891e62a04fde54970e922350c53ce1b8bc23643 | [
"MIT"
] | permissive | RalphWalters/thredo | 5a791d0848067e2b028c3040874476d582509543 | ea109c693036764dd192527f9b6bba18d3b18042 | refs/heads/master | 2020-04-05T05:18:56.942365 | 2018-11-08T23:25:54 | 2018-11-08T23:25:54 | 156,589,958 | 1 | 0 | MIT | 2018-11-07T18:21:27 | 2018-11-07T18:21:27 | null | UTF-8 | Python | false | false | 2,746 | py | # requests.py
#
# Session adapter that allows requests to use thredo socket objects.
# This is a bit of plumbing, but it's a clean interface that doesn't
# require any monkeypatching or other low-level magic
__all__ = ['get_session']
# -- Thredo
from . import socket
# -- Requests/third party
import requests
from req... | [
"dave@dabeaz.com"
] | dave@dabeaz.com |
7cbb1ee16366420627e8f8f83747002cf7163930 | f30b91db647dca1f77fffa4b7e26b6c6a68abbc6 | /8_kyu/Who is going to pay for the wall/test_who_is_paying.py | 3d95d5e8ac506893d12e7e9d460f4df00a45d1e8 | [] | no_license | estraviz/codewars | 73caf95519eaac6f34962b8ade543bf4417df5b7 | 5f8685e883cb78381c528a0988f2b5cad6c129c2 | refs/heads/master | 2023-05-13T07:57:43.165290 | 2023-05-08T21:50:39 | 2023-05-08T21:50:39 | 159,744,593 | 10 | 55 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from who_is_paying import who_is_paying
def test_who_is_paying():
assert who_is_paying("Mexico") == ["Mexico", "Me"]
assert who_is_paying("Melania") == ["Melania", "Me"]
assert who_is_paying("Melissa") == ["Melissa", "Me"]
assert who_is_paying("Me") == ["Me"]
assert who_is_paying("") == [""]
a... | [
"javier.estraviz@gmail.com"
] | javier.estraviz@gmail.com |
94d0d82808b7bba21ce96fec06a1c65195e30c94 | 6343f30acc402f655dc5c89baeb2e0be69d0d561 | /manage.py | 85c69964a47c933ab9731577553efc751e8f6c9d | [] | no_license | manchos/rd90-rest | 724ab162a1041a9e0c90617be0f900fec2f3e542 | a86c49e427d96366fa61fb4e09e6e9bd252d1e3d | refs/heads/master | 2021-01-20T21:35:26.130896 | 2017-08-29T14:46:36 | 2017-08-29T14:46:36 | 101,772,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rd90rest.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"vladm.ru@gmail.com"
] | vladm.ru@gmail.com |
7e6b93f712239743b62500083227e02253458129 | 92993cff825da80a8ff601572a0c52b0b7d3cbde | /algorithms/Svm/ADMM/L2/ADMM_L2_m43.py | abb30b1ac1a4beb3a53b43d81d55a8428c66bbb9 | [] | no_license | yingzhuoy/MRs-of-linear-models | 06e8b1f84b08c6aa77553813824cf35c1806c5a7 | c3df8299e039a12613f2022b370b8c3e9c2dd822 | refs/heads/master | 2023-04-07T23:09:37.736952 | 2021-04-04T05:33:37 | 2021-04-04T05:33:37 | 265,124,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | import numpy as np
from numpy import linalg
#import cvxopt
#from cvxopt import matrix,solvers
from algorithms.clf import Clf
"""
Preconditioned Conjugate Gradient Method
"""
def precond(M, r):
q = M * r
return q
def inner_prod(A, B):
A = np.matrix(A)
B = np.matrix(B)
return np.dot(A.reshape(-1,1)... | [
"yingzhuoy@qq.com"
] | yingzhuoy@qq.com |
e7e2dee5d2d5cf21363e6875097b7870703e164a | fa60618b9f68aee452b278c6efb6300e50d90dbc | /py_demo/默尼森数.py | 3ef57dd22c062c2bb03ddc9a5ffa9c3545cb59a4 | [] | no_license | ALICE5/Python | 668feaaf87e88df0d14252c0fcbc8c5b479cb7c8 | 6b2037bd3e6fa5689f355a128739343779d28fe5 | refs/heads/master | 2021-01-01T16:26:57.170646 | 2017-09-18T09:31:30 | 2017-09-18T09:31:30 | 97,832,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # Judge a number is a prime or not
import math
def isPrime(x):
if x==1:
return False
k = int(math.sqrt(x))
for j in range(2, k+1):
if x % j == 0:
return False
return True
# Generate the num Prime
def prime(num):
if num == 1:
return 2
k = 1
i = 1
while... | [
"alice4u@bjtu.edu.cn"
] | alice4u@bjtu.edu.cn |
044b87731f9adbeed2e6e296cf4226b7b2b50499 | 51804f7ed108b355e979f9e67018a4f8b2a46df6 | /py-scripts/tsqx.py | 8124bc4f79892006a8dfff5e56f135e22ecde59e | [
"BSL-1.0"
] | permissive | vEnhance/dotfiles | 5b36652c9f6ce0b368d7833f43018ba94f1dc8f1 | 47045aaf7054bc8efe657d1e9e070e6b27652c64 | refs/heads/main | 2023-08-31T16:01:14.814010 | 2023-08-30T21:52:40 | 2023-08-30T21:52:40 | 47,777,946 | 119 | 174 | BSL-1.0 | 2023-07-20T11:53:06 | 2015-12-10T17:46:56 | Python | UTF-8 | Python | false | false | 14,069 | py | # st#########
## TSQX ##
##########
# original TSQX by CJ Quines: https://github.com/cjquines/tsqx
# original TSQ by evan chen
import re
import sys
from io import TextIOWrapper
from typing import Any, Generator, TextIO, TypedDict
def generate_points(kind, n) -> list[str]:
if kind == "triangle":
return [... | [
"evan@evanchen.cc"
] | evan@evanchen.cc |
2b2a6d1bc2ac3e00c7327b4266870bcecb87ea3b | 6d36b40aa5a2fdfd068731b7ee657ec25279bdec | /uncluster/cluster_distributions/gnedin.py | 9821ec84c3c8a1c3e62379f581f647ecf90cdfd8 | [
"MIT"
] | permissive | adrn/uncluster | 5efee493c4319e4e0d07615fb6da6dbdcb172301 | 0e487f7cc17426bbd03ff1f02000bc3437075ab3 | refs/heads/master | 2021-04-30T18:30:48.693052 | 2017-02-21T14:08:54 | 2017-02-21T14:08:54 | 63,977,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Third-party
import astropy.units as u
import numpy as np
from scipy.special import gammainc
from scipy.interpolate import InterpolatedUnivariateSpline
from scipy.misc import derivative
from ..config import M_min, M_max
_... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
ea703a24032f314d7e01b11a64fa900fc1c2c605 | b7683c108e68ee2d28573edf55923eb34cc2f5ee | /5_Video_Analysis/3_Background_substraction/3_GMG.py | e72711d3c0643816ef3b230ff18d92f712be427c | [] | no_license | aCuissot/openVC_win_py_tutorial | cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01 | 7186b629747cb16f2bf42a03d2339d3dc3ea77bd | refs/heads/master | 2020-05-18T12:17:04.619047 | 2019-07-10T13:45:00 | 2019-07-10T13:45:00 | 184,403,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | import numpy as np
import cv2 as cv
cap = cv.VideoCapture('../../Data/in/vtest.avi')
kernel = cv.getStructuringElement(cv.MORPH_ELLIPSE, (3, 3))
fgbg = cv.bgsegm.createBackgroundSubtractorGMG()
while True:
ret, frame = cap.read()
fgmask = fgbg.apply(frame)
fgmask = cv.morphologyEx(fgmask, cv.MORPH_OPEN, ke... | [
"harrypotter9752@gmail.com"
] | harrypotter9752@gmail.com |
c74b74d06dfb216f30a2b9bb4f52d9be55005706 | 429211c01057abcd51e5120d566c7daa0a8e2f33 | /1804/二/day4/class4.py | adce94b9a462cd19775068f56485909388f5f106 | [] | no_license | LDZ-RGZN/b1804 | 2788c922a6d1a6dc11267920a90336d1df93a453 | c57f8b7cf14686036cae3c30a30f07514622b5ca | refs/heads/master | 2021-07-19T12:54:07.031858 | 2018-10-12T02:48:39 | 2018-10-12T02:48:39 | 133,500,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import time
class cat:
def __init__(self,lun_zi,color):
self.lunzi = lun_zi
self.color = color
def pao(self):
print ('一辆%d个轮子的%s色%s汽车正在公里上飞驰'%(self.lunzi,self.color,self.name))
def jiao(self):
print ('这辆%s汽车正在冲着前面的那辆%s汽车鸣笛'%(self.name,self.name2))
def zw(self):
... | [
"2654213432@qq.com"
] | 2654213432@qq.com |
a06b0f3b510d0fcfa322e082ae0570ff938b9e68 | e393cb9a1a67a5c944e7a5cf72a7f230caa4f1a7 | /estimation_matlab.py | 1f6702e2e95443588c03beaa937fc09db6982a91 | [] | no_license | AndreyGorbatov1/Jacobian-Estimation | 5f6ec4251235af3bc05ea52aa8c3efd7d3947fb8 | caec92965a7a9837ac777c9ca082468433c14cba | refs/heads/master | 2023-03-10T18:19:27.478542 | 2018-08-30T13:02:00 | 2018-08-30T13:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,953 | py | from keras.layers import Input, Dense, Dropout, BatchNormalization, PReLU, LeakyReLU
from keras.models import Model, Sequential
from keras import optimizers
from keras import regularizers
import numpy
from scipy.io import loadmat
import tensorflow as tf
from sklearn.preprocessing import normalize, scale
from sklearn.me... | [
"alexander_liao@outlook.com"
] | alexander_liao@outlook.com |
aa37b24dc0979c643a0174561ca08482a852901f | f8d2521a88e465eed01adc3981c7a173d5c2554b | /round/round0326-0350/round0335/c1.py | 0851e5dcae97aadd46d36170be48457946510b85 | [] | no_license | clarinet758/codeforces | b2a8a349bba40e7761a8ce50dd5ff9a57477b60d | d79870c47bdb109547891a0d076dd173d6d647cf | refs/heads/main | 2021-12-15T05:46:51.000160 | 2021-12-01T12:01:33 | 2021-12-01T12:01:33 | 41,968,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import time
import sys
import io
import re
import math
import itertools
import collections
import bisect
#sys.stdin=file('input.txt')
#sys.stdout=file('output.txt','w')
#10**9+7
mod=1000000007
#mod=1777777777
pi=3.141592653589
IS=float('inf')
xy=[(1,0),(-1,0),(0,1),(0,-1)]
... | [
"clarinet758@gmail.com"
] | clarinet758@gmail.com |
28a3bfc7da27cf64ba42e18b5e5435e5e8ca427d | bd9d82f616f8658d8431bedaed524647f0f2d7a5 | /commands/delete_empty_dirs_fm.py | d0a52082cf2bf783c1e5d20a8dccb62bdb85588d | [] | no_license | alclass/PyMirrorFileSystemsByHash | d4331523e9948c119f98c248ca3daf3a71eb8f0b | d59d35dfef5107183309fde825ab082fbb4dc465 | refs/heads/master | 2023-02-20T15:38:24.432268 | 2023-02-17T20:58:39 | 2023-02-17T20:58:39 | 49,807,870 | 0 | 0 | null | 2021-12-12T21:31:28 | 2016-01-17T07:40:28 | Python | UTF-8 | Python | false | false | 1,232 | py | #!/usr/bin/env python3
"""
delete_empty_dirs_fm.py
Deletes / removes empty directory in the target dirtree.
Usage:
$delete_empty_dirs_fm.py <prunepath>
Example:
$delete_empty_dirs_fm.py "/Science/Physics/Einsteinian Relativity"
Explanation:
The above (hypothetical) example will remove all empty directories in... | [
"livrosetc@yahoo.com.br"
] | livrosetc@yahoo.com.br |
5d77d8ac4fa0e33cef967a4ca48b0dde1c4f790f | b3729186993105603a77016d6a911932fec06630 | /recruiters/admin.py | eaa3ca4b800202fd737efd8323b6ab526769977c | [] | no_license | MichalDrosio/grades | 05425498bbee3873ebe7128f96227491861b1395 | a6fa146ef1ac06f23f423eaf2de43c23f0faf754 | refs/heads/main | 2022-12-30T06:31:04.100722 | 2020-10-16T13:22:10 | 2020-10-16T13:22:10 | 302,673,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from django.contrib import admin
from recruiters.models import Recruiter
# Register your models here.
@admin.register(Recruiter)
class RecruiterAdmin(admin.ModelAdmin):
list_display = ['first_name', 'last_name'] | [
"drosio.michal@gmail.com"
] | drosio.michal@gmail.com |
ddeb531997001b9fb93293cd39b1753ce9651b68 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03829/s592787585.py | ebd0d0601946a683251cf998983ed53be8aa1d91 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | #!/usr/bin/env python3
import sys
INF = float("inf")
def solve(N: int, A: int, B: int, X: "List[int]"):
tot = 0
for i in range(N-1):
sub = X[i+1]-X[i]
if sub*A < B:
tot += sub*A
else:
tot += B
print(tot)
return
def main():
def iterate_tokens():
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f374c7cef3de091b5e831f7f98e75da674e18e19 | 003ffcf8144565404636f3d74590a8d6b10a90a4 | /236-lowest-common-ancestor-of-a-binary-tree/236-lowest-common-ancestor-of-a-binary-tree.py | 60b7ab8908ab9f3753694aa14207fbaaac761668 | [] | no_license | congve1/leetcode | fb31edf93049e21210d73f7b3e7b9b82057e1d7a | ce1e802b5052da2cdb919d6d7e39eed860e0b61b | refs/heads/master | 2020-05-13T19:19:58.835432 | 2019-05-06T00:44:07 | 2019-05-06T00:44:07 | 181,652,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def lowestCommonAncestor(self, root, p, q):
"""
:type root: TreeNode
:type ... | [
"congve1@live.com"
] | congve1@live.com |
54c8b17645a160598c0851c1e30eb074dbff22f8 | 1398346d986f4b3b79a557854ec9293690a20cc7 | /Tools/BuildSlaveSupport/ews-app/ews/urls.py | 2010c72b63e80288c93f9af2c823b33a8e6abc3d | [] | no_license | feltnerm/webkit | 49607fc29ccb2082654f6a5eb97e4f51c78527d5 | f50e47081541dcf3f69bcfc36d55867441aa3325 | refs/heads/master | 2023-03-18T08:41:03.727396 | 2020-02-10T21:14:39 | 2020-02-10T21:14:39 | 239,619,580 | 1 | 0 | null | 2020-02-10T21:43:21 | 2020-02-10T21:43:20 | null | UTF-8 | Python | false | false | 2,056 | py | # Copyright (C) 2018-2019 Apple 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:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and ... | [
"aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc"
] | aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc |
3815b2c20d699b436ba4bc74ed8c267903c0ac7b | ddcf878cca43d49f73fd673279a97e82ced521e8 | /examples/phylesystem/ott_status_report.py | 0fd8436424d6ce7f141fc38e84a759947ba49e8f | [
"BSD-2-Clause",
"Python-2.0"
] | permissive | OpenTreeOfLife/peyotl | ca5fcbc4f1754c3da7a25c93d89cfeaaad17057f | b50f7217966c18195c9b52be42454513ffa3e7f3 | refs/heads/master | 2023-08-03T14:35:46.793662 | 2023-07-26T20:30:08 | 2023-07-26T20:30:08 | 16,637,087 | 6 | 4 | BSD-2-Clause | 2023-07-24T20:02:30 | 2014-02-08T05:52:12 | Jupyter Notebook | UTF-8 | Python | false | false | 2,568 | py | #!/usr/bin/env python
"""Trying to make a report that corresponds to
https://github.com/OpenTreeOfLife/germinator/wiki/Overview-of-repository-statistics
"""
import time
start_clock = time.time()
from peyotl.phylesystem.phylesystem_umbrella import Phylesystem
from peyotl.nexson_syntax import get_nexml_el
from peyot... | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
7849d81916ebfbd27f3cf13b5e2beedef0e36485 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /homeassistant/components/uptime/const.py | bbce80214747bdfbdf17642a0a22328308f9e3e1 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 206 | py | """Constants for the Uptime integration."""
from typing import Final
from homeassistant.const import Platform
DOMAIN: Final = "uptime"
PLATFORMS: Final = [Platform.SENSOR]
DEFAULT_NAME: Final = "Uptime"
| [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
65b07c011b7740295f45d257c0828bc529be2270 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2281/60722/273569.py | 6d9e698fb32bc6a21a6cd03a7a25481fe3bf9c89 | [] | 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 | 385 | py | T=int(input())
for m in range(T):
N=int(input())
string=input().split(" ")
result=[]
for i in range(N):
string[i]=int(string[i])
for i in range(N):
index=1
for j in range(i+1,N):
if string[j]>string[i]:
index=0
if index==1:
resu... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
2d7e12cad2ba51810b0b9cfc38c0785b64b5c48d | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/battle_control/battle_session.py | 3e27372a59b36128587e02e581e111189cb2d27d | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 15,613 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/battle_control/battle_session.py
import weakref
from collections import namedtuple
import BigWorld
import Event
import BattleReplay
from PlayerEvents import g_playerEvents
from adisp import async
from debug_utils import LOG_DEBU... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
86f0dcff18cacb525ba4a9744c6204c57e8a82bf | caf192dbc1ca90fee18bb4ce170d37eb14870ec5 | /Chapter-5/8. Caesar cipher improved.py | e8e8417f0af034fccd1069c3f4c9c7d4851dc931 | [] | no_license | Dfredude/PythonZelle | 858b00f5eacce841173c64b3cecd978dedbeb145 | 1923fe84df604968eebc5269f23b7c0f167d55f0 | refs/heads/main | 2023-08-30T21:45:57.070344 | 2021-10-17T01:32:57 | 2021-10-17T01:32:57 | 359,041,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | def main():
#Get plaintext(p_text) and key(x) from the user
p_text = str(input("Enter the message you'd like encrypted:\n"))
key = int(input("What's the key?: "))
p_text = p_text.upper()
#Create string of letters
table = "abcdefghijklmnopqrstuvwxyz"
full_table = table * 6
#Check if there are s... | [
"dominguezlucio@outlook.com"
] | dominguezlucio@outlook.com |
32fc774be7ccea0bc9dd9d2bc3b6d739fdf9d0e1 | 2ff83d7af0bcbc5822593d826b0c3276346d1276 | /transformers_local_rep/src/transformers/models/xlm/configuration_xlm.py | 3ef91c99803ead154f7a5b1ca700f4ae9e22099b | [] | no_license | mauricerupp/PolitBERT | 43af66f5562bb5c5cf965aa99bb065d1c22f4fae | a8c4eb517eb38cb51101fc87780ed1de182560c8 | refs/heads/master | 2023-06-17T03:13:43.070682 | 2021-07-15T15:15:30 | 2021-07-15T15:15:30 | 386,334,080 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,933 | py | # coding=utf-8
# Copyright 2019-present, Facebook, Inc and the HuggingFace Inc. team.
#
# 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... | [
"maurice.rupp@gmail.com"
] | maurice.rupp@gmail.com |
84db13e8ee0d75e7c968eabc624c915b95174b9a | ba054fa1ec409011444e9c6b963309745e150d6f | /ave_SR/prueba_carga/loadStateData.py | ea4caae0a5653c6b78ca817bb8466e5022a68528 | [] | no_license | berndhahnebach/XCmodels | a6500fdde253dea10ef2bb64b7ebc3dbfc2577c2 | 4acdd7747abd7cd71f5ef580f65e93359560e5a9 | refs/heads/master | 2020-04-02T23:36:36.385054 | 2018-10-20T16:49:21 | 2018-10-20T16:49:21 | 154,873,006 | 0 | 0 | null | 2018-10-26T17:52:36 | 2018-10-26T17:52:35 | null | UTF-8 | Python | false | false | 7,436 | py | # -*- coding: utf-8 -*-
'''In this script we define default data of load cases to be used (or changed)
while displaying loads or results associated to single load cases
'''
from postprocess.reports import graphical_reports
'''
Definition of record objects with these attributes:
loadCaseName: name of the load case ... | [
"ana.Ortega.Ort@gmail.com"
] | ana.Ortega.Ort@gmail.com |
bedc758c9a51a568cc9c7b658fc0ecc6f2e0d95f | 9a257043e72660ba8ba64bafbd626c7cd2638fad | /demos/demo3.py | 0445986140b7e45ee5705195ce62abfbcb846da7 | [
"MIT"
] | permissive | desecho/django-tqdm | 1b38a4955b8205ca18a215eea9ea4ba969c0baaa | 053d2a259a503a574fa29960d66568feba85d25e | refs/heads/master | 2023-08-07T18:40:52.643836 | 2022-11-01T05:08:47 | 2022-11-03T04:12:35 | 88,812,309 | 15 | 0 | MIT | 2023-09-01T04:02:46 | 2017-04-20T02:33:56 | Python | UTF-8 | Python | false | false | 294 | py | """Demo 3 - Vanilla tqdm with default settings for comparison."""
import sys
from time import sleep
from tqdm import tqdm
t = tqdm(total=50)
for x in range(50):
sleep(0.02)
t.update(1)
if x == 25:
t.write("info")
if x == 40:
t.write("error", file=sys.stderr)
| [
"desecho@gmail.com"
] | desecho@gmail.com |
975f5ad103c66ee683287f7f8c490cd1822a58f7 | cb1fb3bf87b3f7006b564a0f2acd2d68e5d5ffaa | /pyram/gsf/run.py | aa7a2ce83652d1e311fa6636ac4285f33e5b39e0 | [
"GPL-3.0-only",
"MIT"
] | permissive | Hoseung/pyRamAn | 2778f8b12ca966e7586ebf077a964aecd1654223 | f9386fa5a9f045f98590039988d3cd50bc488dc2 | refs/heads/master | 2021-06-22T18:35:06.478492 | 2021-06-05T03:26:31 | 2021-06-05T03:26:31 | 227,741,934 | 1 | 1 | MIT | 2020-03-04T12:39:06 | 2019-12-13T02:49:30 | Jupyter Notebook | UTF-8 | Python | false | false | 1,146 | py | import sys, os, numexpr
import gsf
print('This script calls gsf given a valid simulation output file, snaphot_file (required input)')
print('gsf.py is a collection of functions that cover the computation of the gravitational potential,')
print('a wrapper for the Gaussian Mixture Models of scikit-learn and various plot... | [
"hopung@gmail.com"
] | hopung@gmail.com |
9670b3eacf994b8b048b41b1e35eb381b467e6fe | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/194.py | 52851c11321931979d7349e69ceeae6308d70d7a | [] | 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 | 692 | py | file_in = open('B-large.in', 'r')
file_out = open('b.out', 'w')
T = int(file_in.readline())
for t in range(1, T+1):
n = list(file_in.readline().strip())
n = [int(i) for i in n]
i = 1
k = None
while(i < len(n)):
if(n[i] < n[i-1]):
k = i
n[i-1] -= 1
break
i += 1
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
af84c590c0b37d96166d6afa222258397d069324 | d9232bb31eb01eb97014bb5c769e0dd210512769 | /python2/classes/person.py | 49b723a7627db3a17556b313fcce5f1e07d523cc | [
"MIT"
] | permissive | hygull/pyrandocs | c5d0defff6a9465678f713deed384a097bbe0e02 | 31cd2a4fc23b91c692e104f533ce3c4d21698ff5 | refs/heads/master | 2020-04-20T10:44:59.921958 | 2019-02-10T10:34:13 | 2019-02-10T10:34:13 | 168,797,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | from datetime import date
class Person(object):
"""
Person
======
- A class to represent a person class
"""
def __init__(self, fullname, username, dob, email, profession, address):
super(Person, self).__init__()
self.fullname = fullname
self.username = username
... | [
"rishikesh0014051992@gmail.com"
] | rishikesh0014051992@gmail.com |
a80ac9bcd6682244b0f36d5f03d259cfe6d63e1c | 3e06c2e64c14c3e3486cd3604268f12510fdeb56 | /chatbot/actions/actions.py | a89ec89ba87288f0c31ed895a8ea90df9b8a36f2 | [
"Apache-2.0"
] | permissive | exactpro/nostradamus | 42296e9d4762ac6d7364a665dd5cd74117caacc8 | 80df847a012374ad2b702cc9f9c9cb46c1153ee7 | refs/heads/master | 2022-09-29T08:49:14.505795 | 2021-12-21T12:43:01 | 2021-12-21T12:43:01 | 162,601,150 | 32 | 8 | Apache-2.0 | 2022-09-13T23:04:20 | 2018-12-20T15:58:05 | TypeScript | UTF-8 | Python | false | false | 5,976 | py | from typing import Dict, Text, Any, List, Union, Optional
from json import loads, JSONDecodeError
from rasa_sdk.events import EventType, SlotSet
from rasa_sdk.forms import FormAction, REQUESTED_SLOT, Form
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.events import AllSlotsReset
from .responses impo... | [
"litvinov.ivan44@gmail.com"
] | litvinov.ivan44@gmail.com |
cca0f267aec18ee02e6b05d3dabf877f009d2934 | a5dee3e5dd839bf24c04e34f1774ff9d7b1fff43 | /venvs/tensorflow/lib/python3.6/fnmatch.py | 1bfc742e482849966c5f34e74b2dfcbac5ffc174 | [
"MIT"
] | permissive | hsnodgrass/Chatbot | 17876e7e176355a1d4793b7817e0a5e527233531 | 7b8336a3365c50c3e156cb51d762578633d4dac2 | refs/heads/master | 2022-10-19T03:57:10.273171 | 2017-07-16T17:37:14 | 2017-07-16T17:37:14 | 95,172,310 | 0 | 1 | MIT | 2022-10-09T04:59:02 | 2017-06-23T01:45:05 | Python | UTF-8 | Python | false | false | 31 | py | /usr/lib64/python3.6/fnmatch.py | [
"hsnodgrass3@gmail.com"
] | hsnodgrass3@gmail.com |
761a7acc9b2a233cc75164049125415fb69cae73 | 4c5608f20fa2580774d734d94198dd10648e4339 | /test/vpp_ipip_tun_interface.py | 6e5ade6eb3df3d311f1a783d8d2216bccaf237fb | [
"Apache-2.0"
] | permissive | mojtaba-eshghie/VPP-In-Situ-IOAM | 3d1c3d01752a7934d2f060326674280e0bd93413 | efebd91195eb1b0d98a4a1f5efd962ae79c77be6 | refs/heads/master | 2022-12-10T13:37:04.644952 | 2020-05-29T11:42:36 | 2020-05-29T11:42:36 | 194,249,816 | 2 | 0 | Apache-2.0 | 2022-12-08T05:17:31 | 2019-06-28T09:50:05 | C | UTF-8 | Python | false | false | 1,159 | py | from vpp_tunnel_interface import VppTunnelInterface
from ipaddress import ip_address
class VppIpIpTunInterface(VppTunnelInterface):
"""
VPP IP-IP Tunnel interface
"""
def __init__(self, test, parent_if, src, dst):
super(VppIpIpTunInterface, self).__init__(test, parent_if)
self.src = s... | [
"mojtaba.eshghi@ut.ac.ir"
] | mojtaba.eshghi@ut.ac.ir |
44346aeefb47e47c8a5bb430be1212dd468b75c0 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /WLKF79mxKnhjtrFRB_15.py | ec801d798caa324b8d8c58381efa49d628ae96e0 | [] | 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 | 192 | py |
def is_good_match(lst):
if len(lst) % 2 == 1:
return "bad match"
else:
arr = []
i = 0
while i < len(lst):
arr.append(lst[i] + lst[i+1])
i += 2
return arr
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4f3cbcad439bda75a73b98cde610a99c85c288c2 | 833b43575815ce6c5fa8cbac2628cb774331eda7 | /chap11_p208_code3.py | 058f6b30f32ce9b2502ec1382e81358e712a6821 | [] | no_license | ai-times/infinitybook_python | d9529dfe7d486bf5c713d52b530915a23cbf1812 | 1c011c31994d07fe959bba9b519c4365f5f40e7f | refs/heads/main | 2023-03-01T12:18:20.695888 | 2021-02-14T04:22:40 | 2021-02-14T04:22:40 | 338,578,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | n = 100
while n<= 150 :
print("Count ", n)
n += 5
print("종료합니다.")
| [
"wskim092@gmail.com"
] | wskim092@gmail.com |
b7df96df10ecc11c9aba8c67da97b71ad4c027a4 | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleHub/hub_all_func/all_module/all_spinalnet_res50_gemstone.py | 067d964d381f6ca7b6630d4f597a3c9537170d28 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 559 | py | """spinalnet_res50_gemstone"""
import os
import paddle
import paddlehub as hub
import cv2
if paddle.is_compiled_with_cuda():
paddle.set_device("gpu")
use_gpu = True
else:
paddle.set_device("cpu")
use_gpu = False
def test_spinalnet_res50_gemstone_predict():
"""spinalnet_res50_gemstone predict"""
... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
6971b11f655b673532cf1a066881ac27f4e2a1b9 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/eliben_deep-learning-samples/deep-learning-samples-master/ud730/assign5_cbow.py | d84f68e0e772e796b8949a82b3fde5dd5521b697 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 7,497 | py | from __future__ import print_function
import itertools
import math
import numpy as np
import os
import random
import tensorflow as tf
from six.moves import cPickle as pickle
from timer import Timer
from word_utils import read_data, build_dataset, report_words_distance
def generate_batch_cbow(data, batch_size, contex... | [
"659338505@qq.com"
] | 659338505@qq.com |
357382c47b4901fd489af666983de3e30ee3f162 | f00e077c1acbed3a99d73fcc0880f9eb40b396fb | /examples/menus.py | d83b87b31b75032ef36cf99a4d07d28fd9cf35d3 | [] | no_license | rasql/cocos2d-tutorial | 089f6ddc1d2c26f2786fb78a97e1690c4ead57ff | 92bad88d51c37b30a74b32d35dac07b24a8073d6 | refs/heads/master | 2020-04-28T13:10:27.444561 | 2019-04-17T07:11:36 | 2019-04-17T07:11:36 | 175,299,934 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | """
Raphael Holzer
16. 02. 2019
Displaying a main menu and an options menu.
"""
import cocos
import sys
from cocos.layer import *
from cocos.menu import *
from cocos.scene import *
import pyglet
pyglet.resource.path = ['../animals']
pyglet.resource.reindex()
class OptionsMenu(Menu):
def __init__(self):
... | [
"raphael.holzer@citycable.ch"
] | raphael.holzer@citycable.ch |
3134ee871bcf3dc40961cafeb278a697a4097357 | 9da79ead6d0dda0b4959c3e7f59c603c085b1f8d | /tests/conftest.py | 8e5d0ee28807793d1d9ea9ad37dc0a42e256095f | [
"MIT"
] | permissive | fariddarabi/fastapi-chameleon | 34e99385e0b66b72e30af5c2ba16d4d65e0fb3f4 | 8012037480b402d5881760c4c9f01b6c7969c086 | refs/heads/main | 2023-08-26T08:56:00.294057 | 2021-11-14T06:27:25 | 2021-11-14T06:27:25 | 427,679,374 | 0 | 0 | MIT | 2021-11-14T06:43:05 | 2021-11-13T13:56:17 | null | UTF-8 | Python | false | false | 380 | py | import pytest
from pathlib import Path
import fastapi_chameleon as fc
@pytest.fixture
def test_templates_path(pytestconfig):
return Path(pytestconfig.rootdir, "tests", "templates")
@pytest.fixture
def setup_global_template(test_templates_path):
fc.global_init(str(test_templates_path))
yield
# Clear ... | [
"antonio.feregrino@gmail.com"
] | antonio.feregrino@gmail.com |
2080b5395f84f98f67296c859811a86d994f1c2c | dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7 | /Character/23.Mayuri/Mayuri_SSS_Re.py | 2c73df441ab8236d477c19d7b2c0c843f3fb5a24 | [] | no_license | Lastation/RenewalAniChaos | d12a8423f4b83cb019495c59ed059451e67e0483 | c3edb29af58925de55c11110ccaf927d2b5d1b39 | refs/heads/master | 2023-08-24T11:28:35.614844 | 2023-08-22T21:23:14 | 2023-08-22T21:23:14 | 246,617,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,999 | py | import Function as f;
const s = StringBuffer();
function main(cp)
{
if (f.delay[cp] == 0)
{
if (f.count[cp] == 0)
{
if (f.loop[cp] == 0)
{
f.SquareShape(cp, 1, "Target", 50, 50);
f.SquareShape(cp, 1, " Creep. Dunkelheit", 50, 50);
... | [
"ghtjd000129@naver.com"
] | ghtjd000129@naver.com |
0885548cdf5bbe0cf59c4dd0eec8952cdf0b8ec4 | 0ec8af8988245d864c63d923e5524403090cd7e0 | /mitm/gifshow/addons.py | 16b3430b8b46d322369d126b417009aed7b866dc | [] | no_license | radtek/Spider | d26b685cb5e41c67c6a7ce0d632072f3cac5f061 | 5a419e8ec77915804d3e659631f09b19aa90a088 | refs/heads/master | 2022-10-30T13:13:29.736256 | 2020-06-11T03:34:58 | 2020-06-11T03:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import json
import mitmproxy.http
from mitmproxy import ctx
class Download:
def response(self, flow: mitmproxy.http.HTTPFlow):
if flow.request.host != 'api.gifshow.com' or flow.request.method != 'POST':
return
url = flow.request.url
data = flow.response.content.decode()
... | [
"1733776802@qq.com"
] | 1733776802@qq.com |
88419024324527e193a5c6b09a90736869273d4a | db8f0b2db2fe8c9b5d2cc2e33f669028da7830a8 | /multidimensional_lists/snake_moves.py | dea7167f02c1d7548342216f18fc2746f3691145 | [] | no_license | yordan-marinov/advanced_python | 9694184eed31a9769fa1b552b087fb7b7736af84 | 63ad860f356978c13f208f18502a39a8f23cd18b | refs/heads/master | 2023-03-29T18:04:08.252558 | 2021-03-26T13:39:39 | 2021-03-26T13:39:39 | 309,930,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | def snake_moves() -> str:
matrix = []
rows, cols = [int(i) for i in input().split()]
string = list(input())
for row_index in range(rows):
row = ""
for col_index in range(cols):
letter = string.pop(0)
row += letter
string.append(letter)
if ro... | [
"jordanmarinov8@gmail.com"
] | jordanmarinov8@gmail.com |
9bf8cc9f91390481c2e2641bfc85865a946ef9be | bd4535b2ff5fc80234eed709f46da53b9ab260cf | /Packs/CheckPointSandBlast/Integrations/CheckPointSandBlast/CheckPointSandBlast.py | e7f58fa7c428c9ae9e08839e114ec6ed0070aa67 | [
"MIT"
] | permissive | vibhuabharadwaj/content | 0641284c862668b577e82e32e2daecdb9fabb39a | 518da763814fefce538379560282ff8c2ce661b9 | refs/heads/master | 2023-03-07T21:36:31.768989 | 2022-09-28T15:50:46 | 2022-09-28T15:50:46 | 202,795,410 | 1 | 0 | MIT | 2023-03-06T17:25:01 | 2019-08-16T20:30:23 | Python | UTF-8 | Python | false | false | 34,925 | py | """
Check Point Threat Emulation (SandBlast) API Integration for Cortex XSOAR (aka Demisto).
"""
from typing import Dict, Any, List
import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
''' GLOBAL/PARAMS '''
DEFAULT_INTERVAL = 60
DEFAULT_TIMEOUT = 600
MD5_SIZE = 32
SHA1... | [
"noreply@github.com"
] | vibhuabharadwaj.noreply@github.com |
c01708c178cb7f4fb3e079d15cf5fe767d065105 | a4653fb6c5a7a9e6db0457480e9e860c5304b2b8 | /list/add_data.py | cd7bcc9d527b542225e807d86bed20426b453b10 | [] | no_license | pratik-iiitkalyani/Python | c315ca1f3a2446ccb871b74026edae97daec3773 | 082ae6d833f151054567d737de543898ebfe1d87 | refs/heads/master | 2020-08-07T05:59:21.930089 | 2020-01-04T17:05:27 | 2020-01-04T17:05:27 | 213,324,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # insert method(pos, element) - add data at any position in the list
fruits = ["mango","grapes"]
fruits.insert(1,"orange")
print(fruits)
# join two list
fruits1 =[1,3]
c = fruits1+fruits # fruits1 element come first
print(c)
#extend method
fruits.extend(fruits1) # data of fruits1 added in fruits
print(fruits)
... | [
"ts-pratik.kumar@rakuten.com"
] | ts-pratik.kumar@rakuten.com |
49f9e83cf5c3c542e747db4cd758556b228b23d9 | 4f9952b7c587c7facb0903d52f6ea4b98786e16d | /Proyecto.py | 3e3a92c082cf6f9c0f6d928080961e76734a2c99 | [] | no_license | sugar-activities/4786-activity | 39a8bed48a81c727d7e3e58cec6fed12ee5d5936 | 602ca2794da4575df63b124a56534c26dd01d7c7 | refs/heads/master | 2021-01-19T23:15:30.980502 | 2017-04-21T05:11:53 | 2017-04-21T05:11:53 | 88,939,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,580 | py | #!/usr/bin/python
import pygame
import sys, gtk
import pygame.locals
from pygame.constants import *
from pygame.mixer import music
from Cursor import CURSOR
#pygame.init()
x=1200
y=900
ocultar = 1
class interfaz():
def __init__(self):
self.Portada = pygame.image.load("im... | [
"ignacio@sugarlabs.org"
] | ignacio@sugarlabs.org |
3047f01521ecf352af10c869568fa355aa6ab390 | 693d93174f43a81d8a65041553282a8872e3a6ff | /contrib/devtools/test-security-check.py | 269ffb5b075cedd5e4fa6e25ff81602fa3c44195 | [
"MIT"
] | permissive | eleccoin/eleccoin | c075719d5ee676fc2bb9a21f3711d75d673655bd | 963f6d4a069e40ab2e46217e5d49bc94adda2c5c | refs/heads/master | 2022-11-13T02:38:36.662655 | 2022-10-30T08:56:57 | 2022-10-30T08:56:57 | 238,475,897 | 3 | 7 | MIT | 2022-01-10T07:29:19 | 2020-02-05T14:56:34 | C++ | UTF-8 | Python | false | false | 10,020 | py | #!/usr/bin/env python3
# Copyright (c) 2020-2022 The Eleccoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Test script for security-check.py
'''
import lief #type:ignore
import os
import subprocess
from typin... | [
"unify@eleccoin.org"
] | unify@eleccoin.org |
76b439eb64e7052b75da1d1be31c934fb3855f54 | 71d608a5e6cc30bef2004a4008d62143de07f50c | /plots/Techinical_indicators_for_Goldman_Sachs_last_400_days.py | dd9cb186948e5a5eedbad60bf8c3673ba5bb96d3 | [] | no_license | webclinic017/quant-3 | f4fc462b3964717e2435e09dd0be35548066a967 | 98b31d92b89da10a409947b4bea653ceb4319af6 | refs/heads/master | 2022-01-27T21:06:39.345394 | 2019-07-21T10:35:12 | 2019-07-21T10:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | import matplotlib.pyplot as plt
from Data import Data, get_technical_indicators
def plot_technical_indicators(dataset,
last_days):
ticker = dataset.columns.values[1]
plt.figure(figsize=(16, 10), dpi=100)
shape_0 = dataset.shape[0]
xmacd_ = shape_0 - last_days
dataset... | [
"syyun@snu.ac.kr"
] | syyun@snu.ac.kr |
6ee1904358d0968c67a404a23c8686c263e0b35c | 4007632edd395d243bca022418848a2ff54409c8 | /学习/atest6.py | 54471b4561bb9f98d4319de5c82e87a0702bb3bf | [] | no_license | 549982170/python_learning | d80a9403cbe2eb8304aba50ff373b2b67df095e2 | 2c3f73718e0a6d9d4923a2e0f22ff2d4230357e9 | refs/heads/master | 2021-06-22T04:32:06.286691 | 2020-12-10T03:29:56 | 2020-12-10T03:29:56 | 101,596,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # coding:utf-8
# !/user/bin/python
import requests
import json
headers = {'Authorization': "Token 03f7409574a55e98cd33b7cc44bcbe968fd0988f"}
host = "http://127.0.0.1:8000/"
url = "v5/discovery/search/service/"
# url = "v1/generator/test/mytest/"
url = host + url
data = {"keyword": "ss"}
re = requests.post... | [
"549982170@qq.com"
] | 549982170@qq.com |
d5526e5e11970b9cf7389f8167209a965ef78e49 | 7bc54bae28eec4b735c05ac7bc40b1a8711bb381 | /src/misc/show_checkpoint_vars.py | d869d35e1eb9f214c813932df22cedf891373257 | [] | no_license | clover3/Chair | 755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e | a2102ebf826a58efbc479181f1ebb5de21d1e49f | refs/heads/master | 2023-07-20T17:29:42.414170 | 2023-07-18T21:12:46 | 2023-07-18T21:12:46 | 157,024,916 | 0 | 0 | null | 2023-02-16T05:20:37 | 2018-11-10T21:55:29 | Python | UTF-8 | Python | false | false | 642 | py | from collections import OrderedDict
import tensorflow as tf
def load_checkpoint_vars(checkpoint_path):
ckpt_reader = tf.train.load_checkpoint(checkpoint_path)
d = OrderedDict()
for x in tf.train.list_variables(checkpoint_path):
(name, var) = (x[0], x[1])
d[name] = ckpt_reader.get_tensor(... | [
"lesterny@gmail.com"
] | lesterny@gmail.com |
e9a860e399fac3764ecab8ebb8b31901390468c7 | 491c7a6b2eeaccf9e8421c0b1ec5a2d9d77407e2 | /ceres/consensus/all_coins_default_constants/chaingreen_default_constants.py | 7fde41f6c0352db6f6c46ba63b01b94d2a6a068e | [
"Apache-2.0"
] | permissive | zhenglcc/ceres-combineharvester | 25609627a4a16b3e3067c2e4296de82a65f3b2bd | 47b685a63fb5f38ac9e2eceb9724a562feb06ee9 | refs/heads/main | 2023-08-25T04:49:31.531840 | 2021-10-30T09:06:08 | 2021-10-30T09:06:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | from ceres.util.ints import uint64
from ceres.consensus.constants import ConsensusConstants
testnet_kwargs = {
"SLOT_BLOCKS_TARGET": 32,
"MIN_BLOCKS_PER_CHALLENGE_BLOCK": 16, # Must be less than half of SLOT_BLOCKS_TARGET
"MAX_SUB_SLOT_BLOCKS": 128, # Must be less than half of SUB_EPOCH_BLOCKS
"NUM_S... | [
"hulatang_eric@163.com"
] | hulatang_eric@163.com |
ec35ca8c45e83ee2346b6490fe0798b8a2c19343 | 177464b6a6199b72d5f9342423fd507630e7ef8c | /setup.py | 857b0b44d0307a6e4622d21dbb085cd8f1d2f053 | [
"BSD-2-Clause"
] | permissive | yyr93520/sne | 19f58f40840d18665fbdaff552396c0ce9ccd180 | caaa2cce9b623f5ffc411ece4c9176872a672793 | refs/heads/master | 2021-08-23T14:48:42.730451 | 2017-12-05T08:52:05 | 2017-12-05T08:52:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
setup(
name='learning sparse network embedding for identity user retrieval',
... | [
"wangyongqing.casia@gmail.com"
] | wangyongqing.casia@gmail.com |
1418f12136d730e578a93b5499f6ad816057a019 | 5ce1c0ab1b6147428fc30bcd1698e4d0e53b688e | /829.py | 4fe73b828e6983e64730ae6da4385af8d2cf971f | [] | no_license | junyang10734/leetcode-python | 035b12df3f7d9fc33553140d1eb0692750b44f0a | eff322f04d22ffbc4f9b10e77f97c28aac5c7004 | refs/heads/master | 2023-07-22T11:16:38.740863 | 2023-07-14T00:22:00 | 2023-07-14T00:22:00 | 189,197,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # 829. Consecutive Numbers Sum
# Math
# https://leetcode.com/problems/consecutive-numbers-sum/solution/
# runtime: O(N**0.5)
class Solution:
def consecutiveNumbersSum(self, N: int) -> int:
count = 0
upper = ceil((2 * N + 0.25) ** 0.5 - 0.5) + 1
for k in range(1, upper):
if (N -... | [
"48000364+junyang10734@users.noreply.github.com"
] | 48000364+junyang10734@users.noreply.github.com |
1ddcfa2db57a2e28a25671ce5333c37ca126c22a | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/sparsemax/python/ops/__init__.py | 393d43d4cfa0fb8d855ebba91c4effe94a98abaa | [
"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 | 192 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/contrib/sparsemax/python/ops/__init__.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
c14a556a8fc7a81e031a648406e986ae7db52409 | 9e5bf5e7d0bdfa4ff2aca65ac306ed801d146608 | /python-06-stdlib-review/chapter-03-Algorithms/3.2-itertools/py_01_itertools.py | ed3063a35bb616b55116f551571022cacd42e8f5 | [] | no_license | AuroraBoreas/python_advanced_tricks | 90b07967789960beec381de676459c1e84b95860 | ba0940e25eda52345a27cf9ddffed9d18fa2a031 | refs/heads/master | 2022-11-27T19:09:45.666017 | 2020-08-11T17:33:11 | 2020-08-11T17:33:11 | 275,083,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | """
P163-P176, itertools: iterator functions
! What?
! Why?
! How?
itertools
|-- merging and splitting iterators "分合"
|-- converting inputs "转"
|-- producing new valeus "生"
|-- filtering "滤"
|-- grouping data "群"
|-- combining inputs ... | [
"noreply@github.com"
] | AuroraBoreas.noreply@github.com |
4c50d3114769805bd5144afdece91f515c6f551f | b83ac23819fd7ba998563f2ad870405bdd07cc2b | /gym_idsgame/__init__.py | 31ebf59e36a8fcf1596d6ed9c09c6d07bb97e533 | [
"MIT"
] | permissive | Limmen/gym-idsgame | 699abd2894bce15108f1606f5fb71f612dd7ba03 | d10830fef55308d383c98b41b34688a7fceae357 | refs/heads/master | 2023-09-01T17:32:16.768138 | 2023-08-22T12:00:53 | 2023-08-22T12:00:53 | 247,794,752 | 49 | 12 | MIT | 2021-04-21T07:50:06 | 2020-03-16T19:00:27 | Python | UTF-8 | Python | false | false | 66,874 | py | """
Register OpenAI Envs
"""
from gymnasium.envs.registration import register
# -------- Version 0 ------------
# [AttackerEnv] 1 layer, 1 server per layer, 10 attack-defense-values, random defender
# [Initial State] Defense: 2, Attack:0, Num vulnerabilities: 1, Det: 2, Vulnerability value: 0
# [Rewards] Sparse
# [Ve... | [
"kimham@kth.se"
] | kimham@kth.se |
402f8b11f4f79126a7238680b4d8b3c9291b6525 | 2d930aadf19b2ad6ea49725099d2f37475cd57f8 | /test/functional/signrawtransactions.py | 01b71fc8133e8036171530c690526d90558605d1 | [
"MIT"
] | permissive | stratton-oakcoin/oakcoin | ea83774c9f6ea64adb8832770e6219ffb31edef6 | fe53193a50bd3674211448f1dcc39c6f9f042bb2 | refs/heads/master | 2021-01-20T13:22:05.877005 | 2017-05-07T10:09:57 | 2017-05-07T10:09:57 | 90,477,972 | 1 | 2 | null | 2017-05-07T10:09:57 | 2017-05-06T16:58:05 | C++ | UTF-8 | Python | false | false | 5,919 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The Oakcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test transaction signing using the signrawtransaction RPC."""
from test_framework.test_framework impor... | [
"s.matthew.english@gmail.com"
] | s.matthew.english@gmail.com |
678efd8416616f304423b9610caa21b3b0aa6bb3 | b70f99aee135ea27a03951e75524ede3be18d316 | /test/tob_pyner/fill_fields/bin/fill/customer_bin.py | f3be56157b686a98e42d5ab2d0c2ff980456bc57 | [] | no_license | zlbl/AutoTestPytestN | 968e11b205d824eca0fcb73a166f21208ce405d5 | a86f71a4ad50796f5031cdb40c4d5a808f421383 | refs/heads/master | 2020-11-28T19:27:21.056844 | 2019-12-24T08:25:45 | 2019-12-24T08:25:45 | 229,902,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | from datetime import datetime
from test.tob_pyner.fill_fields.bin.fill.update_cust_info_sql import *
from test.tob_pyner.fill_fields.util.MySqlHelper import select_insert, update
def generate_customer():
"""生成客户id"""
# ALTER TABLE pyner_customer AUTO_INCREMENT = 1000000001;
select_insert(generateSQL)
... | [
"zhanwei@treefinance.com.cn"
] | zhanwei@treefinance.com.cn |
78f5536e736c9e86de6b0ca888abfd4a50ce2276 | 22a243d9535602e2f56b4e8d78f743b6240afc94 | /image_captioning/coco_caption/pycocoevalcap/bleu/bleu.py | 1c3a2c5a4780bbba09e046123fced9affa79d062 | [
"MIT",
"BSD-2-Clause-Views"
] | permissive | RitaRamo/memory-augmented-nn | 05bc969fa28225e95b38d6f1d5f0fa09a94b30db | 0553df245a6976ad1c15075a65df93591e2c2632 | refs/heads/main | 2023-03-08T13:59:52.530224 | 2021-02-22T19:03:25 | 2021-02-22T19:03:25 | 309,144,074 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | #!/usr/bin/env python
#
# File Name : bleu.py
#
# Description : Wrapper for BLEU scorer.
#
# Creation Date : 06-01-2015
# Last Modified : Thu 19 Mar 2015 09:13:28 PM PDT
# Authors : Hao Fang <hfang@uw.edu> and Tsung-Yi Lin <tl483@cornell.edu>
from bleu_scorer import BleuScorer
class Bleu:
def __init__(self, n=4)... | [
"rita.mparada.ramos@gmail.com"
] | rita.mparada.ramos@gmail.com |
67b81c79caf9d6e7e0ca40ffe64b68a22a98c497 | 529694a395c88a1c0c097f80456a0eb01144131f | /tensorpac/spectral.py | 994abb93382c017eed859bd9f28e43ec0298d8f4 | [
"BSD-3-Clause"
] | permissive | cjayb/tensorpac | 0d83c4dcec2b40c75c119f243070faacb3b220bf | e4ee18ca3faa8ad9f3cdd4f5233be224f12523af | refs/heads/master | 2023-01-27T12:49:32.841580 | 2020-12-08T14:44:35 | 2020-12-08T14:44:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,860 | py | """Extract spectral informations from data."""
import numpy as np
from joblib import Parallel, delayed
from scipy.signal import hilbert, filtfilt
from scipy import fftpack
from tensorpac.config import CONFIG
def hilbertm(x):
"""Faster Hilbert fix.
x must have a shape of (..., n_pts)
"""
n_pts = x.sh... | [
"e.combrisson@gmail.com"
] | e.combrisson@gmail.com |
f79f65f0b11e74e90409fdb59e7626a53d9164e7 | a0643c775515499dd9492464384b05e82da608a8 | /test_interface/CEM/marketingManagement/marketingManagement/nodeDefineRecord_test.py | 64d559fe436d1d8ca8fff826bd8e7489a6ea7554 | [] | no_license | EmmySmith/autoInterfaceTest | e4935e5fbe85324502f1c8b9ba33ede51cfee81b | 56d31476994bfc276cc53ab32c9b27b8d2447e0b | refs/heads/master | 2023-05-28T05:27:22.615719 | 2020-05-09T03:40:04 | 2020-05-09T03:40:04 | 262,480,416 | 0 | 0 | null | 2023-05-22T22:44:16 | 2020-05-09T03:26:26 | HTML | UTF-8 | Python | false | false | 1,120 | py | #!/usr/bin/python
# coding=utf-8
import requests
import unittest
import json,time,random
from common.public import *
from mysqlHandle.common_mysql import *
class ICEM_Interface(unittest.TestCase):
@classmethod
def setUpClass(self):
self.headers = headers
self.host = host
self.path = "/... | [
"renming@jiekecloud.com"
] | renming@jiekecloud.com |
d93b2b2d13b8c15e3517aaffa07d6e531fbcc33b | 39689ee725bc7183d5d59fb34f7d2ffe5fd6ad36 | /ABC_B/ABC152B.py | 35c5db735fa5cc883c21d5980d6836368cc1fc04 | [] | no_license | yu5shi8/AtCoder | b6eb920a9046bdfa98012dd3fc65f75f16214ffe | f9ca69001ece8379e3a70c993c44b540f8be2217 | refs/heads/master | 2021-06-15T17:58:07.027699 | 2021-03-20T14:04:03 | 2021-03-20T14:04:03 | 177,757,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | # -*- coding: utf-8 -*-
# B - Comparing Strings
# https://atcoder.jp/contests/abc152/tasks/abc152_b
a, b = map(int, input().split())
if a <= b:
print(str(a) * b)
else:
print(str(b) * a)
# 23:32 - 23:36(AC)
| [
"royal_unicorn411@hotmail.co.jp"
] | royal_unicorn411@hotmail.co.jp |
b654a1eafce5e94c9b993cdbd1877fa3a05eafcb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03805/s743667282.py | 877dfca86e7d05d94725d8483f03ad1b21f93854 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | from collections import deque
def dfs(G, visited, s, n, ans):
# すべての頂点を訪れた場合の処理
if all(visited) :
ans += 1
return ans
# 次の頂点の探索
for i in G[s] :
if visited[i] == False :
visited[i] = True
ans = dfs(G, visited, i, n, ans)
visited[i] = False
return ans
# グラフGの入力
n,m = map(int,inpu... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
66c9edb88fbf7c5955f202577b420c7e013304bd | 8d3adc6867d80a75ac12984f52c78938221404a4 | /Bio/_utils.py | 77144e9015a72b4147ce67e6833712d851ccd8c7 | [
"LicenseRef-scancode-biopython"
] | permissive | chapmanb/biopython | 407b17f44f599d71818c5e16bd86a44cf323e062 | cade0aec7ecff7d052c42040f5cae8036e297941 | refs/heads/master | 2020-12-29T03:07:42.778627 | 2013-07-09T09:36:26 | 2013-07-09T09:36:26 | 412,030 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | # Copyright 2010 by Eric Talevich. All rights reserved.
# Copyright 2012 by Wibowo Arindrarto. All rights reserved.
# This code is part of the Biopython distribution and governed by its
# license. Please see the LICENSE file that should have been included
# as part of this package.
"""Common utility functions for var... | [
"p.j.a.cock@googlemail.com"
] | p.j.a.cock@googlemail.com |
ccd23976c670e92724953d4e4f62a84424828fb2 | 0bce7412d58675d6cc410fa7a81c294ede72154e | /Python3/0287. Find the Duplicate Number.py | 6fdd5f3ec43b8bdf3b456532302c0ad8a9ed6823 | [] | no_license | yang4978/LeetCode | 9ddf010b0f1dda32cddc7e94c3f987509dea3214 | 6387d05b619d403414bad273fc3a7a2c58668db7 | refs/heads/master | 2022-01-15T04:21:54.739812 | 2021-12-28T12:28:28 | 2021-12-28T12:28:28 | 182,653,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | class Solution:
def findDuplicate(self, nums: List[int]) -> int:
left = 1
right = len(nums)-1
while left<right:
mid = left + (right-left)//2
temp = 0
for i in nums:
temp += (i<=mid)
if temp<=mid:
left = mid + 1
... | [
"noreply@github.com"
] | yang4978.noreply@github.com |
b3621c42eac9b9c4eb104fc6c10c7e9dd8bc2186 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/142d_2.py | aaf992c2ab19b95ac0e17785ef21ba969269e9b6 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | A, B = map(int, input().split())
def primeCount(N):
R = int(N**(0.5)) + 1 # 素数の範囲
primes = {} # 素数のリスト
n = N
for num in range(2, R):
primes[num] = 0
while n % num == 0:
n //= num
primes[num] += 1
if n > 1 :
primes[n] = 1
return { key : val for k... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
d1702a2e70f5ca443f6715b7cd628f3999e8f553 | db4cbb94ac337e670bc6d66c93244d37a6ca3aae | /configuration/mm45_rc28_wpz_M_mm41_cityscapes_aug_cluster_yang.py | 5c5f57d4fc672882c565ac33875d4f1757c4fe21 | [] | no_license | gy20073/CIL_modular | 1d14dbde21690c42162a6686926cb23a0148a929 | da35bfec7d40708e4f76d08f54e04587bef1dd8b | refs/heads/master | 2021-06-12T05:26:35.212861 | 2019-10-12T05:34:50 | 2019-10-12T05:34:50 | 137,950,075 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 9,149 | py | import glob
import os
from imgaug import augmenters as iaa
#
# This is a config file, with three parts: Input, Training, Output, which are then joined in Main
#
class configMain:
def __init__(self):
# this is used for data balancing. Labels are balanced first, and then for each label group
# th... | [
"gy20073@gmail.com"
] | gy20073@gmail.com |
731ff8381159eac4f3c4c5622d279515b577b095 | 74565d83bccccfae0d57d0e947f12db2bcae2999 | /phi/tests/test_nodsl.py | a9258eb9895c9db82cb8352393e4fd3274fe940a | [
"MIT"
] | permissive | iCodeIN/phi | 2fe9eaaf21615381e1b1815853adeb76a79fb696 | 87fd7100a76f823232f4fd8360498b4b80675265 | refs/heads/master | 2023-03-21T07:50:28.218564 | 2018-08-13T14:14:07 | 2018-08-13T14:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from phi.dsl import Expression
P = Expression()
class TestNoDSL(object):
def test_seq(self):
f = P.Seq(
P + 2,
P * 2
)
assert 10 == f(3)
def test_branch(self):
f = P.List(
P + 2,
P * 2
)
assert [5, 6] == f(3)... | [
"cgarcia.e88@gmail.com"
] | cgarcia.e88@gmail.com |
df097ee6147b01ee82e411a12f00ca1fdff8c780 | 773e6eefd35d3fe8f86faed6f8de0470e9da722f | /tests/wire/test_msg_mempool.py | d8d4a0ef565bc4c7b0fc63cfe915eb85e3ed4c35 | [] | no_license | imnisen/pybtcd | 5a9e13b0461e41958e3d1c948100e20c92459d43 | b89ec2063348805755d9f2c474a1494f0fb6ef46 | refs/heads/master | 2020-03-28T03:11:01.877408 | 2019-11-05T07:07:26 | 2019-11-05T07:07:26 | 147,625,874 | 2 | 2 | null | 2019-11-05T07:07:27 | 2018-09-06T06:09:40 | Python | UTF-8 | Python | false | false | 2,180 | py | import unittest
import io
from wire.msg_mempool import *
class TestMsgMemPool(unittest.TestCase):
def setUp(self):
pver = ProtocolVersion
oldPver = BIP0035Version - 1
msgMemPool = MsgMemPool()
msgMemPoolEncoded = bytes([])
self.tests = [
# Latest protocol vers... | [
"imnisen@gmail.com"
] | imnisen@gmail.com |
71ce5358015438612bd7c9b6178dddfd3a3af130 | 5dfb9ca5e0c8cb4cb7a7a92d6f6a34b34a841869 | /LeetCodeSolutions/python/211_Add_and_Search_Word_Data_structure_design.py | 6fdd8ce15c0c90bf5632e2ebbd8b40ec1c9fee03 | [
"MIT"
] | permissive | ChuanleiGuo/AlgorithmsPlayground | 2f71d29e697a656562e3d2a2de783d964dc6a325 | 90b6287b742c8bfd3797540c408d679be2821a40 | refs/heads/master | 2021-01-11T18:30:43.218959 | 2018-11-19T02:20:31 | 2018-11-19T02:20:31 | 79,550,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | class WordDictionary(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.root = {}
def addWord(self, word):
"""
Adds a word into the data structure.
:type word: str
:rtype: void
"""
node = self.root
... | [
"chuanleiguo@gmail.com"
] | chuanleiguo@gmail.com |
0de233d96169369c052b67111582e5676b2b3aed | 8adec48dfaee1cdfd6c7f4d2fb3038aa1c17bda6 | /WProf/src/tools/valgrind/.svn/text-base/chrome_tests.py.svn-base | 21a6793f8cee1ff440b310d5a38a4c56461367de | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | kusoof/wprof | ef507cfa92b3fd0f664d0eefef7fc7d6cd69481e | 8511e9d4339d3d6fad5e14ad7fff73dfbd96beb8 | refs/heads/master | 2021-01-11T00:52:51.152225 | 2016-12-10T23:51:14 | 2016-12-10T23:51:14 | 70,486,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,261 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
''' Runs various chrome tests through valgrind_test.py.'''
import glob
import logging
import optparse
import os
import stat
import... | [
"kusoof@kookaburra.(none)"
] | kusoof@kookaburra.(none) | |
a714dbeb5f32820c71f3d0aa1e6daf2db3de0648 | 8ceade7e485606cd2d2ea09a996f1e71c1b76f76 | /ejerciciosMejorados/p5.py | 92e2b94263a31a9ef3c24c00365f32c3cff6ed6a | [] | no_license | jesustr20/test | bdc9a0ffd313e5aad9e63b5df5e87abc2a7d9419 | 7439f1466995356a709066208fa1a9de21b2266b | refs/heads/master | 2023-01-05T17:58:48.601151 | 2020-11-01T19:24:35 | 2020-11-01T19:24:35 | 306,782,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | #Pregunta 5:
# Escribir una funcion sum() y una función multip() que sumen y multipliquen respectivamente
# todos los números de una lista.
# Por ejemplo: sum([1,2,3,4]) debería devolver 10 y multip([1,2,3,4]) debería devolver 24.
#Funcion que genera una lista de un rango
def listas(rango):
#Genera la lista a p... | [
"jesus.tr61@gmail.com"
] | jesus.tr61@gmail.com |
82ac29168e8c9346fdf4b324d9848eba099f32d1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_306/ch1_2020_03_04_11_09_36_448958.py | f4249a12eb77b3373a476a9acfe0e6261e82074b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | def calcula_valor_devido(vI, nT, j):
vF = vI*(1+j)**nT
return vF | [
"you@example.com"
] | you@example.com |
9b29f05b1777653afa4489a9428e2fa3ad119fb4 | 8447b5f83be675c5de085d8824783ec0739690b0 | /mmdet/ops/roi_align/roi_align.py | 875e63d5b6432b257a7ea81289220762413d2c1b | [] | no_license | jie311/mmdetection_lite | bca7070ad88a04e4f6650292642f98f24f7ebeba | 1c151a7c44759d022fea1d85fb036a5b39409449 | refs/heads/master | 2022-04-19T06:18:42.282754 | 2020-04-13T07:41:10 | 2020-04-13T07:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,068 | py | from torch import nn
from torch.autograd import Function
from torch.autograd.function import once_differentiable
from torch.nn.modules.utils import _pair
from . import roi_align_cuda
class RoIAlignFunction(Function):
@staticmethod
def forward(ctx,
features,
rois,
... | [
"760997646@qq.com"
] | 760997646@qq.com |
e6d28bb201f92f5cbd6c7cc8c1a7695415e2e239 | 8c162bcf0576316d1ce070e4a70f257a01c7ce4c | /piwheels/logger/__init__.py | 4f9f281a79e3aaa815449c41cebba5d020ffb514 | [
"BSD-3-Clause"
] | permissive | Lauszus/piwheels | 8e4a73b0a76715b45ab3586998c78fa3beb26b9f | e51b979f11c1d7a199c9f461312f959f23b5b979 | refs/heads/master | 2020-03-23T16:14:27.888940 | 2018-05-13T17:08:45 | 2018-05-13T17:08:45 | 141,799,946 | 0 | 0 | null | 2018-07-21T09:44:31 | 2018-07-21T09:44:31 | null | UTF-8 | Python | false | false | 7,857 | py | #!/usr/bin/env python
# The piwheels project
# Copyright (c) 2017 Ben Nuttall <https://github.com/bennuttall>
# Copyright (c) 2017 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#... | [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
d15144bfccfa3fec3d6c39d294d7d9f9379b012b | 3481023b43028c5ee9520a8be0978e914bdcb548 | /manga_py/base_classes/params.py | 5d90a0761f6bf49a2ebe1be019ec60ff77f0738c | [
"MIT"
] | permissive | manga-py/manga-py | 18f6818d8efc96c3e69efee7dff3f3d6c773e32a | 0db97123acab1f2fb99e808b0ba54db08977e5c8 | refs/heads/stable_1.x | 2023-08-20T03:04:06.373108 | 2023-04-16T08:28:15 | 2023-04-16T08:28:15 | 98,638,892 | 444 | 56 | MIT | 2023-07-27T13:21:40 | 2017-07-28T10:27:43 | Python | UTF-8 | Python | false | false | 1,394 | py | from logging import error
from urllib.parse import urlparse
class ProviderParams:
@property
def content(self):
content = self._storage.get('main_content', None)
if content is None:
content = self.get_content()
return content
@property
def manga_name(self) -> str:
... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
c0729505d6bf9a498b456982548aa120de9d51a6 | 4cef47ddd432f2ab814a03fd89112b1dc8b5ab27 | /flow/message.py | 4c6579ea3c4a1e94e634e4ac2e1ed647ac980500 | [
"MIT"
] | permissive | h00shi/flow | 279d621cda72a8d2392c2dbe7735ce2ab6b39380 | ef45bdd4181d385b1b01042e9ce0b48e4cdc2318 | refs/heads/master | 2020-09-24T06:50:01.605337 | 2017-07-05T17:53:50 | 2017-07-05T17:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # -*- coding: utf-8 -*-
#
'''
Allows using DOLFIN's indented block messages with 'with', i.e.,
with Message('hello world'):
# do something
'''
from dolfin import begin, end
class Message(object):
def __init__(self, string):
self.string = string
return
def __enter__(self):
... | [
"nico.schloemer@gmail.com"
] | nico.schloemer@gmail.com |
d127705f9dd239922fbb76363c5cc3ca519736c3 | 85c82274a3888fa61795bb0600ab96eaf7665b6a | /meet1/F_max3Angka.py | fa0a3546b66bbd03e24bf5cd643fb372eb6d9263 | [] | no_license | refeed/StrukturDataA | 8e5a214569f41b19c05842d003ede5941800482a | 4d3b77bbd28158f1f1e64a49b8e90da731859407 | refs/heads/master | 2023-06-03T08:22:12.442536 | 2021-07-01T03:24:29 | 2021-07-01T03:24:29 | 360,478,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | '''
Max 3 angka
Batas Run-time: 1 detik / test-case
Batas Memori: 32 MB
DESKRIPSI SOAL
Buatlah program yang menerima 3 buah input nilai, outputkan nilai paling besar
diantara ketiga input tersebut.
PETUNJUK MASUKAN
Input terdiri atas 3 angka dalam 1 baris
PETUNJUK KELUARAN
Outputkan angka terbesar dari 3 angka yan... | [
"rafidteam@gmail.com"
] | rafidteam@gmail.com |
1611a857f00cc4e23f65789639b9f6eef36aefe9 | 304f6ea579c2bda6f2a0a0d93c0ffcf332082450 | /since_JungleWeek06/정확한 순위.py | 0d5fb00f7b7be52e32e728b87a77981421fde412 | [] | no_license | Jeongseo21/algorithm | 941ae18bb17f6d9a0f3190d40f5f0ae212ffe0f6 | 0fbda0e320ca6616dfe21680601521549ed019e4 | refs/heads/master | 2023-04-17T21:37:25.607255 | 2021-04-25T13:51:02 | 2021-04-25T13:51:02 | 276,335,142 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import sys
# import numpy
# sys.stdin = open("input.txt", "r")
input = sys.stdin.readline
INF = int(1e9)
N, M = map(int, input().split())
graph = [[INF for _ in range(N+1)] for _ in range(N+1)]
#graph = numpy.array(graph)
for i in range(1, N+1):
for j in range(1, N+1):
if i == j:
graph[i][j] =... | [
"jeongseo21@gmail.com"
] | jeongseo21@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.