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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
580fb9cf83366a3ce45285424a18dcfde250e1af | aac1b8efaeccc544d229aa52093a36802250b4cf | /pre/python/lib/python2.7/dist-packages/pycryptopp/test/test_aes.py | 591b17182d7e1102b20a406e3e567cf4524d0558 | [] | no_license | ag1455/OpenPLi-PC | 4f63bbd389ff9604ab7aaf72d10ee6552b794c87 | 256401ac313df2e45c516af1a4d5398f54703b9c | refs/heads/master | 2023-08-22T18:20:07.491386 | 2023-08-14T17:29:59 | 2023-08-14T17:29:59 | 233,239,212 | 27 | 22 | null | 2020-12-28T22:09:26 | 2020-01-11T13:50:25 | Python | UTF-8 | Python | false | false | 4,035 | py | import random, re
import unittest
from binascii import a2b_hex, b2a_hex
global VERBOSE
VERBOSE=False
from pycryptopp.cipher import aes
from pkg_resources import resource_string, resource_listdir
from base64 import b32encode
def ab(x): # debuggery
if len(x) >= 3:
return "%s:%s" % (len(x), b32encode(x[-... | [
"a.g.prosat@gmail.com"
] | a.g.prosat@gmail.com |
859ee93071118b44b4e6abb43eded1e0fed08b4e | 725c502a281d710ac9c19954635222026fce51dd | /tf_blas_matmul/__init__.py | bf1a1a6e066186b772e22da79e5d5f8702772411 | [] | no_license | hholst80/tf_sgemm | 2db32c05dcb2160f05152dc2eb95d739b8f723d5 | 5c7ad1bdeeea4267a4617274431916ecda062293 | refs/heads/master | 2021-01-11T06:17:55.589878 | 2016-11-15T10:52:53 | 2016-11-15T10:52:53 | 69,968,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,542 | py | import os
import tensorflow as tf
library_path = os.path.join(os.path.dirname(__file__), 'blas_matmul.so')
openblas_library = tf.load_op_library(library_path)
blas_matmul = openblas_library.blas_matmul
@tf.RegisterGradient("BLASMatmul")
def _blas_matmul_grad(op, grad):
"""The gradients for `blas_matmul`.
Arg... | [
"henrik.holst@frostbite.com"
] | henrik.holst@frostbite.com |
d4395efbfa0c8b7ad871ba150f86d056b7a2f4cc | 2494ff34517bc6d631190dd22e51c50f5c9e5a21 | /bamboo/wrappers/__init__.py | 6311a7fba13bfcaf3cf32b6351b8a6f5bd3070ed | [] | no_license | ConorFWild/pandda | fd6afb7d441fc93e6bf666f5d7f93d80d7a85fed | f57e825695ec0d0362e24a7cda26347bb24a9ebd | refs/heads/master | 2020-12-14T02:32:40.208438 | 2020-08-06T08:26:02 | 2020-08-06T08:26:02 | 234,607,199 | 3 | 2 | null | 2020-02-18T15:24:52 | 2020-01-17T18:04:33 | Python | UTF-8 | Python | false | false | 3,320 | py | # Lists/Constants
# =================== #
# Refiner Settings #
# =================== #
refiners = ['refmac','phenix.refine']
allowed_refiner_args = []
# =================== #
# Ligand Generation #
# =================== #
ligand_builders = ['elbow','grade','writedict']
#ligand_builders = ['elbow','grade','prodr... | [
"conor.wild@sky.com"
] | conor.wild@sky.com |
c8f1000132811d20346e69bce65d9be2ef161a22 | bec623f2fab5bafc95eb5bd95e7527e06f6eeafe | /django-gc-shared/registration/pipeline.py | 491019ee4d95215691572046669959deaac71a17 | [] | no_license | riyanhax/a-demo | d714735a8b59eceeb9cd59f788a008bfb4861790 | 302324dccc135f55d92fb705c58314c55fed22aa | refs/heads/master | 2022-01-21T07:24:56.468973 | 2017-10-12T13:48:55 | 2017-10-12T13:48:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # -*- coding: utf-8 -*-
from django.shortcuts import redirect
from django.utils.translation import get_language
from social.pipeline.partial import partial
def set_lost_otp(backend, user, response, *args, **kwargs):
if get_language() == 'ru':
profile = user.profile
profile.lost_otp = True
... | [
"ibalyko@ubuntu-server-16-04"
] | ibalyko@ubuntu-server-16-04 |
bfa93a590738884f20c43166ddd99eb21eb1a373 | cc5c754a9a621ba8e84c7de50f11d5bffa29704c | /src/extensions/RAW COMMANDS/RawDeleteCommand.py | 485a74a457c9613e56b91e812d073d2f61d0d213 | [
"BSD-3-Clause"
] | permissive | thebeswick/python-redfish-utility | e63b78f158e7702d265a1199adf99093cbde3e1f | 4e084d47152aeaede576b32252a38b7dc4525dcb | refs/heads/master | 2020-05-02T11:04:42.075692 | 2018-08-03T18:11:03 | 2018-08-03T18:11:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,048 | py | """ RawDelete Command for RDMC """
import sys
import json
from optparse import OptionParser
from rdmc_base_classes import RdmcCommandBase, RdmcOptionParser
from rdmc_helper import ReturnCodes, InvalidCommandLineError, \
InvalidCommandLineErrorOPTS, UI
class RawDeleteCommand(RdmcCommandB... | [
"rexysmydog@gmail.com"
] | rexysmydog@gmail.com |
5c79baedf1f8a8ab4338e0d35c592bcbace06b7e | 5bcee9248d0bdebb134c61b4d0a3f3113337a569 | /lesson_1603/03_dictionaties_editing.py | 18fda64d43b20168d97d198f825e4465d562c71c | [] | no_license | 100ballovby/6V_Lesson | c2edbc652ea2ebec07eeed60060c16ae4b4792e4 | 4b6dfda323a628558bd63bd5569960004fc335dd | refs/heads/master | 2023-05-08T07:49:14.569854 | 2021-05-25T06:40:53 | 2021-05-25T06:40:53 | 330,888,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 617 | py | contacts_book = {
'mom': {
'phone': [
'+375291234567',
'+375441234567'
],
'email': 'mom@example.com',
'birth_date': '28.01.1990',
},
'father': '+375331234567',
'granny': '+375251234567',
}
# добавление в словарь новой пары
contacts_book['brother']... | [
"greatraksin@icloud.com"
] | greatraksin@icloud.com |
e2511aea3fc990ac85091192008ba12f67ebfb4e | 14f085fe9db8179dd44c18f00c1184881dcfe21a | /testing/noise_res.py | 19000a1c291cbbe53a7ea17b7b0fca33ffe8ba68 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-permissive",
"Python-2.0",
"BSL-1.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | devsim/devsim | 7ba495952239d4e9c0170c0a5a89905aa9eb3e1e | 3d979d6a98685b2e51c15eebd20afdc1e643fc3a | refs/heads/main | 2023-08-31T10:40:41.346966 | 2023-08-30T16:42:56 | 2023-08-30T16:42:56 | 8,838,727 | 158 | 69 | Apache-2.0 | 2023-07-15T03:21:34 | 2013-03-17T18:01:17 | C++ | UTF-8 | Python | false | false | 1,723 | py | # Copyright 2013 DEVSIM LLC
#
# SPDX-License-Identifier: Apache-2.0
# solid state resistor ssac
import devsim
import res1
import test_common
devsim.circuit_element(name="V1", n1="topbias", n2=0, acreal=1.0)
test_common.CreateNoiseMesh(res1.device, res1.region)
devsim.set_parameter(name="botbias", value=0.0)
res1.run_... | [
"juan@tcad.com"
] | juan@tcad.com |
10a2d45648edb4f07a8fb141dc16ccc2cb74c926 | fb65b7c000642dca68c93ee85a87795b3f30fe21 | /Core_Python/Relational (2).py | bef3b90a5b9729cd990187a9c36912a0bdc68083 | [] | no_license | toncysara17/luminarpythonprograms | f41b446251feba641e117d87ce235dc556086f8f | 17bc37c3f83c0e9792aaa8bccd901371a6413f14 | refs/heads/master | 2023-04-17T18:51:31.493118 | 2021-04-20T05:25:02 | 2021-04-20T05:25:02 | 358,550,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | #Operators
#Arithmetic operators
#+,-,*,/,**,//,%
num1=int(input("Enter first number"))
num2=int(input("Enter second number"))
num3=num1+num2
print(num3)
print(int(num1)+int(num2)) | [
"toncysara12@gmail.com"
] | toncysara12@gmail.com |
f35caf26817963e76a4a503c55f38dc2198fcf59 | b347bc4b850dee4a8a9a171b563a3f31230ce1c7 | /sktime/transformations/tests/test_hpfilter.py | 7cd0424c11a9a7c662acdd5f544ba3d1efbc1594 | [
"BSD-3-Clause"
] | permissive | sktime/sktime | 5963962df338c5931a2f9f1794d1203c50ddc27e | 70b2bfaaa597eb31bc3a1032366dcc0e1f4c8a9f | refs/heads/main | 2023-08-22T18:20:08.022950 | 2023-08-22T15:24:39 | 2023-08-22T15:24:39 | 156,401,841 | 1,117 | 268 | BSD-3-Clause | 2023-09-14T20:44:21 | 2018-11-06T15:08:24 | Python | UTF-8 | Python | false | false | 1,075 | py | """Tests for HPfilter wrapper annotation estimator."""
__author__ = ["ken-maeda"]
import pandas as pd
import pytest
from numpy import array_equal
from sktime.utils.validation._dependencies import _check_soft_dependencies
@pytest.mark.skipif(
not _check_soft_dependencies("statsmodels.api", severity="none"),
... | [
"noreply@github.com"
] | sktime.noreply@github.com |
aaec8ede31615eeca2a001869de70eeb8972e267 | 16d159d6d3fe69d513717caad3e2c21320f93224 | /AtCoder/AGC/agc019/agc019a.py | ca25d1beb73fec61a3bce24e36ac58ccbf6cd859 | [] | no_license | tsushiy/competitive-programming-submissions | d4f068a5157c0de0f1822367e0ca66dd978e43f9 | 9011d855d9252134179cc9cc8f328f6e0ca32407 | refs/heads/master | 2023-04-11T08:34:01.015316 | 2021-04-11T15:16:17 | 2021-04-11T15:17:35 | 175,807,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | q, h, s, d = list(map(int, input().split()))
n = int(input())
t1 = min(4*q, 2*h, s)
t2 = min(2*t1, d)
ans = t2*(n//2)
if n%2==1:
ans += t1
print(ans) | [
"28962399+tsushiy@users.noreply.github.com"
] | 28962399+tsushiy@users.noreply.github.com |
323e9838c962109263483882562c57b65fb992ed | 45f0e67d9213d17465f35697b786d15629ddbdb1 | /Server/project/apply/migrations/0009_case_address.py | 8a162ed853d906a2820b306410ec4acc49dff52d | [] | no_license | NightKirie/SafeHome | c827b3432ac0ebdf8185a44537628fd38dcbb931 | 4a60225eddb5dce0cb2ec1c94b2e72613fb65674 | refs/heads/master | 2023-01-12T21:59:45.697824 | 2019-08-29T18:06:16 | 2019-08-29T18:06:16 | 184,235,542 | 1 | 0 | null | 2023-01-03T20:51:29 | 2019-04-30T09:44:42 | JavaScript | UTF-8 | Python | false | false | 396 | py | # Generated by Django 2.2 on 2019-05-10 12:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apply', '0008_auto_20190509_2320'),
]
operations = [
migrations.AddField(
model_name='case',
name='address',
... | [
"sky712345678@hotmail.com"
] | sky712345678@hotmail.com |
2f420ce4058aa9ff3e49df72fe30b2166cd6eeeb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03128/s255938254.py | 1ac1b82c6e5eb6532b5fe1c1c764dd5d82d8eb8e | [] | 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 | 2,164 | py | l = [[0,0],[1,2],[2,5],[3,5],[4,4],[5,5],[6,6],[7,3],[8,7],[9,6]]
n,m = map(int,input().split())
a = list(map(int,input().split()))
l0 = []
for i in range(m):
l0.append(l[a[i]])
l0.sort(key=lambda x:x[0],reverse=True)
l0.sort(key=lambda x:x[1])
p,q = l0[0]
count = n - (n//q)*q
c = 1
ans = 0
for i in range(n//q):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
42402448d72326d8ca6009a903ecd8efb66a7129 | 9127a5582694a055e7c64ae65ae97a11728ff82f | /cunt/util/generator_tools.py | 05613daf0c025f0148ba74cde9fcabdd74ec0ccf | [
"Apache-2.0"
] | permissive | nahvan/cunt-blockchain | 0f881df58f3ca5fe554b52a025437053df6f1037 | 447084a809ec0339bcd24f7141f39ee0e8dddffa | refs/heads/main | 2023-06-24T16:47:31.099801 | 2021-07-29T21:17:02 | 2021-07-29T21:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | from typing import List, Tuple
from chiabip158 import PyBIP158
from cunt.types.blockchain_format.coin import Coin
from cunt.types.blockchain_format.sized_bytes import bytes32
from cunt.types.full_block import FullBlock
from cunt.types.header_block import HeaderBlock
from cunt.types.name_puzzle_condition import NPC
fro... | [
"svginsomnia@gmail.com"
] | svginsomnia@gmail.com |
3c00892b1b7854d0db2dc443e37a8e7f7c1acdb8 | c0f86b926fc82baa633862896096c149dd9913cf | /30-Days-of-Code/Day-5-Loops/Pypy2/solution.py | 66c056df9d074e8e03d7d49bffd3b1a60ad68f5a | [] | no_license | qxzsilver1/HackerRank | 8df74dd0cd4a9dedd778cdecea395f4234eda767 | bcb1b74711a625d8ad329a3f9fdd9f49b1bebc54 | refs/heads/master | 2021-09-09T15:45:35.681284 | 2021-09-07T00:11:16 | 2021-09-07T00:11:16 | 75,671,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | N = int(raw_input().strip())
for i in range(1,11):
print("%d x %d = %d" % (N, i, N * i))
| [
"noreply@github.com"
] | qxzsilver1.noreply@github.com |
c76a84a6b621a196a8dc741ec96ea002bfc49bdf | 6f3cf8c3af7e194982ab07bbd15217d799a53381 | /Python_DataScience_ToolBox(2)/iteratorLoadingInChunks5.py | 04c8be29d19987989e81831e9032aa3c05a98e79 | [] | no_license | AnjaliSharma1234/Datacamp---Python-Track | 2ec9c61dbcda69f33bdf097d585b6e838a34f2e1 | 2e7fbaa6a9c2507e94689612dfa9650c5810f3cc | refs/heads/master | 2020-12-20T18:32:28.459549 | 2020-03-05T07:23:59 | 2020-03-05T07:23:59 | 236,170,988 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # Define plot_pop()
def plot_pop(filename, country_code):
# Initialize reader object: urb_pop_reader
urb_pop_reader = pd.read_csv(filename, chunksize=1000)
# Initialize empty DataFrame: data
data = pd.DataFrame()
# Iterate over each DataFrame chunk
for df_urb_pop in urb_pop_reader:
... | [
"noreply@github.com"
] | AnjaliSharma1234.noreply@github.com |
7e163194bc21303d491e0fe9e94645ec5edde9f6 | d6d9daa2ca84ba886bffa1fb51a21af471512085 | /project-examples/circleci-example/circleci-python-artifactory/setup.py | a51f786b635f4b9f64cfab95a0f690d7f5ad553b | [] | no_license | gyzong1/pipeline-example | 68c999bf869f23b1e2f96b53a2c038fb8eb6b37f | 52bdc95d7f3a87a45a51ed5b05f0fc653f910966 | refs/heads/master | 2023-02-23T13:02:44.726984 | 2023-02-21T02:43:56 | 2023-02-21T02:43:56 | 188,638,956 | 10 | 14 | null | 2022-07-01T22:18:05 | 2019-05-26T04:15:09 | Groovy | UTF-8 | Python | false | false | 443 | py | try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
description="An example of how to create and publish to pypi.org",
author="Jainish Shah",
author_email="jainishs@jfrog.com",
url="https://gcartifactory-us.jfrog.info/artifactory/api/pypi/circleci-pypi... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7272cc4db2200f149558c6741ba04eca490db515 | 131caeecc070839555b95382fe9c6ea77a618dce | /.history/Classiles/light_switch_20210614213123.py | 51cfe3ca5423f06b6ee626fec602621d059f371c | [
"Unlicense"
] | permissive | minefarmer/Coding101-OOP | f128e34c95f5362b3d9a53bbac3d862c3f256263 | d5655977559e3bd1acf6a4f185a6121cc3b05ce4 | refs/heads/main | 2023-05-22T18:42:37.769345 | 2021-06-18T00:28:06 | 2021-06-18T00:28:06 | 376,620,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | """[Practice: Light Switch]
Variable name class name
("instance")
ice = Ice)
Constructor
class ice:
def __init__(self):
body
"""
class Light:
def toggle(self):
print("Toggle on and off")
self.on = not self.on
def __init__(self):
self... | [
"pgoldfarm@yahoo.com"
] | pgoldfarm@yahoo.com |
aa98bf3416852e721028943d6ea79fce6ff1198b | a14060d854f830b1c690039e8fb4b32418e7bc9f | /src/utils/train/training_utils.py | 5885938e77707f880d8da482e0285130b6697045 | [
"MIT"
] | permissive | nimabte/StudyMaskedLMForQG | c8be171a0261cb24a5d6e16020d752fd0ddd3241 | 2c033994a7ed142b244619625b817552c6175bd0 | refs/heads/main | 2023-01-15T20:04:20.809317 | 2020-11-25T11:40:14 | 2020-11-25T11:42:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from typing import List
from typing import Dict
from typing import NamedTuple
# from typing import Optional
def build_generated_text(refs: List[str], hyps: List[str]) -> str:
ret = ""
linesep = " \n" # Tensorboard text uses format of markdown
for i, (ref, hyp) in enumerate(zip(refs, hyps)):
ret ... | [
"chris4540@gmail.com"
] | chris4540@gmail.com |
d4f894c8155a61cb3c10da7188a752a7714494de | 564c23adcbd05aae2e4528a5aba29f15ccbd3575 | /information_manager/migrations/0029_auto_20210329_1213.py | 3c30f7b959d6615da9ccd309053177b6cd0b8321 | [] | no_license | NaniB0ots/VasGen_bot | 937b63592d0f9226f572c0d615e9c6e43b56c23d | ae953c6ad58e6ba6656db998ad67a76806dc2fc7 | refs/heads/main | 2023-04-13T16:46:19.212935 | 2021-04-27T04:02:32 | 2021-04-27T04:02:32 | 341,086,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | # Generated by Django 3.1.7 on 2021-03-29 04:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('information_manager', '0028_auto_20210328_1732'),
]
operations = [
migrations.AlterField(
model_name='event',
name='... | [
"alexleskov2000@gmail.com"
] | alexleskov2000@gmail.com |
a9bd8520a3982f9f0cad09a4975753e836fcaf04 | 807a36dfc8efca23192c71ecbb38f5363dc7ca4c | /lib/endpoints/test/apiserving_test.py | 56cf226ff3d000d574bfd5d50729f67d6d914902 | [
"Apache-2.0"
] | permissive | uetopia/metagame | 385b6f11a6f40744f2fcc20934f53bb8e4a447f3 | 37e0136ab61a99a8cd25ef264c2d5f8f024e8f6f | refs/heads/master | 2023-03-10T17:17:46.269150 | 2023-02-26T15:16:15 | 2023-02-26T15:16:15 | 151,280,244 | 2 | 1 | Apache-2.0 | 2022-05-25T01:43:37 | 2018-10-02T15:43:42 | Python | UTF-8 | Python | false | false | 11,509 | py | #!/usr/bin/python2.4
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | [
"ed@uetopia.com"
] | ed@uetopia.com |
36837492117db0d4766019ab4e7a200154b7cd1e | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Quantization/trend_MovingMedian/cycle_12/ar_12/test_artificial_128_Quantization_MovingMedian_12_12_100.py | 9b00719dfd47dd132d9f6d3c3830e9b3d9f37b87 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 278 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 100, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
efed79d55cc76eaacbe9e4322b8fb37521ec65c4 | f7e5f77292c2bf595ae034e0a67bf8e01a6e82b1 | /p25/Solution.py | 35e78b154a8e94f1857fc6d7b2a9c082d4e53f52 | [] | no_license | carwestsam/leetCode | af0d64d8d52597c88441b811ce6609a056ef290e | 8075fbb40987d5e6af8d30941a19fa48a3320f56 | refs/heads/master | 2021-01-20T22:28:59.652051 | 2019-03-22T01:11:30 | 2019-03-22T01:11:30 | 60,820,215 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def reverseKGroup(self, head, k):
"""
:type head: ListNode
:type k: int
:rtype: ListNode
"""
if head is None:
... | [
"carwestsam@gmail.com"
] | carwestsam@gmail.com |
e912cedb81da41c61ba0eec7779d26466e4edc76 | ed52d4e72dbc745555ddc878833c9379ea65744f | /setup.py | 878619beb6d4c510472fa172d7844bf384477e2a | [] | no_license | cotect/covid-local-py | dbb022d84b78f08507d6820e5bb021824d591daf | 52e647d961bbb36b279541cd52db35f8ea2220ef | refs/heads/master | 2022-08-02T08:05:21.026342 | 2020-05-25T02:23:30 | 2020-05-25T02:23:30 | 265,729,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | # coding: utf-8
"""
COVID-19 Local API
API to get local help information about COVID-19 (hotlines, websites, test sites, health departments) # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
from setuptools import setup, find_packages # noqa:... | [
"johannes.rieke@gmail.com"
] | johannes.rieke@gmail.com |
13208704e43525a6c6308327b328f43ce50c4f93 | 3856dbedcf846f9845290e9b2efa4d18e300623d | /test/test_map_api.py | 5e49589ad808dd1c99732d2905c45c938e728213 | [] | no_license | Valandur/webapi-client-python | 5b314da41803f5b55a5c6cce62d2384b86d0fa37 | 8502726bf3facb17c6fa681faf0f600207eb61ae | refs/heads/master | 2022-02-04T21:45:37.686703 | 2019-07-23T12:11:47 | 2019-07-23T12:11:47 | 113,748,693 | 2 | 0 | null | 2019-01-09T16:07:31 | 2017-12-10T12:38:14 | Python | UTF-8 | Python | false | false | 3,074 | py | # coding: utf-8
"""
Web-API
Access Sponge powered Minecraft servers through a WebAPI # Introduction This is the documentation of the various API routes offered by the WebAPI plugin. This documentation assumes that you are familiar with the basic concepts of Web API's, such as `GET`, `PUT`, `POST` and `DELET... | [
"inithilian@gmail.com"
] | inithilian@gmail.com |
50175308b80735ee3c00990f0a4039d0930e5664 | 3a5fbe5aefd426e024c57d5c692000de3f62aba2 | /ion/services/mi/drivers/uw_trhph/test/expect.py | b24ead32572045c015cef57cbd35453d944beea4 | [] | no_license | seman/coi-services | b0fa38f6a238d261baeff90b2bd363987511fbe9 | 395b6fc8fc93ff760e336d8192210ca5a5f5302e | refs/heads/master | 2020-12-25T01:44:32.201485 | 2012-05-09T22:33:02 | 2012-05-09T22:33:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,368 | py | #!/usr/bin/env python
__author__ = 'Carlos Rueda'
__license__ = 'Apache 2.0'
"""
A simple program exercising the pexpect library to communicate with the TRHPH
instrument.
NOTE:
- works fine with immediate pexpect.spawn.interact
- but there're sync issues with pexpect in general
Try this program with the TRHPH sim... | [
"carueda@mbari.org"
] | carueda@mbari.org |
bfd5babdab53061debeef0a578b40e61bba911b3 | edf125be37a40caeb14c7fe32bd9f7511cf0ce9b | /09-manipulating-dataFrames-with-pandas/3-rearranging-and-reshaping-data/using_other_aggregations_in_pivot_tables.py | e56dc900c31bae1efec32a1c7558f4746cd18200 | [] | no_license | vedpbharti/Datacamp | 1d3d2ca0722a3a19733e91fa054f64e0c3b7114a | b6d019efebe1b46765f19212ba2d8ebb9d90de57 | refs/heads/master | 2020-04-05T05:47:28.528088 | 2019-02-10T22:34:00 | 2019-02-10T22:34:00 | 156,610,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | '''Using other aggregations in pivot tables
You can also use aggregation functions within a pivot table by specifying the aggfunc parameter. In this exercise, you will practice using the 'count' and len aggregation functions - which produce the same result - on the users DataFrame.
Instructions
100 XP
Define a DataFra... | [
"ved.bhartig@gmail.com"
] | ved.bhartig@gmail.com |
b9216642722ee23184114a1e728f0ce2a84782b6 | a512b8893b0d2de827d6292e810f3a98b41e132c | /Week7/Day5/Solutions/Python/prog3.py | 8328113dea1f1f450b5a9868d5f4c7e4b79431ab | [] | no_license | Audarya07/Daily-Flash-Codes | d771079fd0d470e2d3e05679f17f32fb64b4f426 | cf96ca2b1676b038e243fac67be778381492ffeb | refs/heads/master | 2022-11-06T15:37:47.180729 | 2020-06-25T16:20:55 | 2020-06-25T16:20:55 | 274,960,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | num = int(input())
s = set()
while num:
rem = num%10
num//=10
s.add(rem)
print("Second minimum digit is = ",list(s)[1])
| [
"audiuttarwar2000@gmail.com"
] | audiuttarwar2000@gmail.com |
d722bff6ae6812d28170b3786c5f96becc0d0ea5 | 845cc51db0e909e7b7434ef2dd530c5565dd71e4 | /lumen/tests/sample_dashboard/views.py | 4b4b894dcd0e8583a3a10621f8a58f7a1578f92c | [] | no_license | TrendingTechnology/lumen | 568e302218d7f6ff6e4b8545057ff6eed144fbcc | e6e9496dc585d73986d92771cc34464277e182cc | refs/heads/master | 2023-06-15T19:25:45.196664 | 2021-07-20T18:23:08 | 2021-07-20T18:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | from lumen.views import View
class TestView(View):
view_type = 'test'
def get_panel(self):
return "TestView"
| [
"noreply@github.com"
] | TrendingTechnology.noreply@github.com |
6805dd0c0f0a9e30441903efc136b7ca2b4ee636 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-3842.py | 41a58ca4058d86b56c32fddff4e40ab5716ad81b | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,742 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
e4c8c8e1b80c4ad4aab44448f9ff5d179892c20f | 1c742fcfec2e2694f49d4b675d972df5f20aef81 | /magnet_dht/crawler.py | 62f8e9b23e0cda2daaf92db429aeb3efb4fbd044 | [
"MIT"
] | permissive | or2me/magnet-dht | c3322c4c3454cc965676bc8d7b14ae22b4772eaf | e544e782b6b3c03a2343c84d0d12e26064d9eb9a | refs/heads/master | 2020-03-22T14:30:37.970544 | 2018-07-07T10:37:35 | 2018-07-07T10:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,639 | py | #! usr/bin/python
# encoding=utf8
import socket
import codecs
import time
from threading import Thread
from collections import deque
from multiprocessing import Process, cpu_count
import bencoder
from .utils import get_logger, get_nodes_info, get_rand_id, get_neighbor
from .database import RedisClient
# 服务器 tracker... | [
"chenjiandongx@qq.com"
] | chenjiandongx@qq.com |
3a96002adcf2cdbb1aad808f7a9eb4de52eff86d | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/hood/BRHoodDataAI.py | d4df636b11c75cd198a083d2c3c2f9ca6bbd987b | [] | no_license | peppythegod/ToontownOnline | dce0351cfa1ad8c476e035aa3947fdf53de916a6 | 2e5a106f3027714d301f284721382cb956cd87a0 | refs/heads/master | 2020-04-20T05:05:22.934339 | 2020-01-02T18:05:28 | 2020-01-02T18:05:28 | 168,646,608 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | from direct.directnotify import DirectNotifyGlobal
import HoodDataAI
from toontown.toonbase import ToontownGlobals
from toontown.safezone import DistributedTrolleyAI
from toontown.safezone import BRTreasurePlannerAI
from toontown.classicchars import DistributedPlutoAI
from toontown.toon import DistributedNPCFishermanAI... | [
"47166977+peppythegod@users.noreply.github.com"
] | 47166977+peppythegod@users.noreply.github.com |
562ddcf407acebdf2e3cbe6fa8790763260125b0 | 5467066c0dedf994d9ec07fced78ac1d894b330c | /Semester_Exception/check_cluster_per_block_csv_download.py | 745ab66372e0630691e8ed3e632741544d7978ee | [] | no_license | chetandg123/cQubeTesting-1.5 | 1f6291773d616270f5b135a983286cdd174258cb | 1f02ec1ed4a7a7f11804c7c5d93bc24771962173 | refs/heads/master | 2022-12-29T03:45:56.536068 | 2020-10-16T12:15:29 | 2020-10-16T12:15:29 | 301,320,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | import os
import time
from selenium.webdriver.support.select import Select
from filenames import file_extention
from get_dir import pwd
from reuse_func import GetData
class ClusterPerBlockCsvDownload():
def __init__(self, driver):
self.driver = driver
self.filename =''
def check_csv_downloa... | [
"chetan.goudar@tibilsolutions.com"
] | chetan.goudar@tibilsolutions.com |
29260aa0f2214a768849599628b0860a73c7b5bb | 7d0e353ad9b67d087606af653afd27274e0fea2d | /train_r_func.py | 2a3436eaa2dad20be5216a459b97608df8d4783e | [] | no_license | hyzcn/ICRA2019-Activity-Localize | 37d4047c3210a034a80a14d8037a43a424a12068 | b6a768e0c65895649ea7ce1ee7d4699c0e61d8cf | refs/heads/master | 2020-05-16T10:01:52.649833 | 2019-02-28T17:18:35 | 2019-02-28T17:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,492 | py | import sys
import argparse
from pathlib import Path
import random
from six.moves import xrange
import better_exceptions
import tensorflow as tf
import numpy as np
from tqdm import tqdm
from functools import partial
from nets.rwd_model import OrderBasedRewardFunc, _reacher_arch
from inputs.rwd_dataset import AlignedRea... | [
"hi.wonjoon@gmail.com"
] | hi.wonjoon@gmail.com |
8aade851d4bc49db46ce1ea01cae8b441dd24b01 | 5023f3f6f493a6cf3a6e4acf7ee742fdecc2a558 | /ScopeFoundryHW/attocube_ecc100/attocube_home_axis_measurement.py | 2a09051e7c353a0822a88c82076ea5b25a78a9b1 | [
"BSD-3-Clause"
] | permissive | erictang000/stackbot | 1a0de1a30c0b17a67808cbb7f084149f0c744070 | e9a20930d790c995163192b29394a266af54a3d0 | refs/heads/master | 2022-04-10T06:48:25.785204 | 2020-03-18T23:08:57 | 2020-03-18T23:08:57 | 248,362,086 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,324 | py | from ScopeFoundry import Measurement
import time
class AttoCubeHomeAxisMeasurement(Measurement):
name = 'attocube_home_axis'
def setup(self):
self.settings.New('hw_name', dtype=str, initial='attocube_xyz_stage')
self.settings.New('axis_name', dtype=str, initial='x')
... | [
"esbarnard@lbl.gov"
] | esbarnard@lbl.gov |
0a2d290038351fdd5d996e0fd06462db9ac503cc | 3d0bb8d94a69237bf3c6ba6b2ccfdd0bc9cc162c | /addons/pppd/kill | b75da3265c315a77eab9a4f8d64904e52895ba74 | [] | no_license | ha8sh/IBSng | 69727a7c5476ecb8efa45b7393ffe51de37a8a10 | 596aa468f8264ab0129431e3ede6cc1282b1ebbd | refs/heads/main | 2023-08-25T18:21:28.081153 | 2021-10-02T05:03:52 | 2021-10-02T05:03:52 | 412,687,955 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | #!/usr/bin/python -O
"""
sys.argv[1]: ras ip
sys.argv[2]: ras port
"""
import sys
import os
port=sys.argv[2]
os.system("/usr/local/IBSng/addons/pppd/ppp-off ppp%s 2>&1"%port)
| [
"hassanshaikhi@gmail.com"
] | hassanshaikhi@gmail.com | |
49c9df98bbb6ea91131eafc657b27d4986cb092b | 4caa087dcb95a6a7dbe8cc49fde383e9f2aa4426 | /configs/mot/bytetrack/bytetrack_yolox_x_crowdhuman_mot20-private.py | 7fa0a7294697e1a6864e76f9491c1002acd148f7 | [
"Apache-2.0"
] | permissive | open-mmlab/mmtracking | 1e55c69cc1a264b3c9546c19332a38e9621430ed | e79491ec8f0b8c86fda947fbaaa824c66ab2a991 | refs/heads/master | 2023-09-01T15:41:04.322684 | 2023-04-25T13:25:18 | 2023-04-25T13:25:18 | 291,213,368 | 3,263 | 604 | Apache-2.0 | 2023-08-26T04:05:00 | 2020-08-29T06:16:56 | Python | UTF-8 | Python | false | false | 2,546 | py | _base_ = ['./bytetrack_yolox_x_crowdhuman_mot17-private-half.py']
img_scale = (896, 1600)
model = dict(
detector=dict(input_size=img_scale, random_size_range=(20, 36)),
tracker=dict(
weight_iou_with_det_scores=False,
match_iou_thrs=dict(high=0.3),
))
train_pipeline = [
dict(type='Mosa... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
375a758dde2098e7e8d07632615af6c1f39fc72c | 0c15310c93117c916211b214bf5e87bdb05e768b | /hyperion/model/tests/test_helpers.py | 30869a3e6ead06a0068ab0508c94f8110695c1ba | [
"BSD-2-Clause"
] | permissive | hyperion-rt/hyperion | 553efc0bd2c279409f65381d769546770b728236 | 743e085dd03ac8f92796773e55a69fd5b50700c1 | refs/heads/main | 2023-08-30T20:57:38.751726 | 2023-08-25T20:41:29 | 2023-08-25T20:41:29 | 1,442,240 | 41 | 19 | BSD-2-Clause | 2023-08-25T20:41:31 | 2011-03-05T04:43:44 | Python | UTF-8 | Python | false | false | 4,063 | py | from __future__ import print_function, division
import os
import tempfile
import h5py
import numpy as np
from numpy.testing import assert_array_almost_equal_nulp
from ...dust import IsotropicDust
from .. import Model
from ...util.functions import random_id
def get_test_dust(set_emissivities=True):
dust = Isotr... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
ec086c12e831d2a9b6440d9eef38cb8ced2968cd | 76e62ddbfdfba19c80b37e855a4df67672ef0808 | /PINp/2015/Sheiko_R_V/task_4_30.py | 63c9567055c8a87405e19d4f051650d01a0d9e7c | [
"Apache-2.0"
] | permissive | stasvorosh/pythonintask | 9d30f3cd492e89783b7221402375c1ebe4690baa | 8169ed26510022fe0d589f4013f11749131957df | refs/heads/master | 2021-01-17T16:49:32.778063 | 2016-10-10T14:08:04 | 2016-10-10T14:08:04 | 52,255,539 | 6 | 0 | null | 2016-02-22T07:33:16 | 2016-02-22T07:33:15 | null | UTF-8 | Python | false | false | 2,289 | py | # Задача 4. Вариант 30.
'''
Напишите программу, которая выводит имя, под которым скрывается
Вильгельм Аполлинарий Костровицкий. Дополнительно необходимо вывести
область интересов указанной личности, место рождения, годы рождения и
смерти (если человек умер), вычислить возраст на данный момент (или
момент смерти). Для ... | [
"stasyan.v@gmail.com"
] | stasyan.v@gmail.com |
fcd804fe94d2df649426748ccfee13e9ad79a90d | 1fa3588cb95a5841e6940fb52a1dd8ab1441ec91 | /restkit/tools/file_watch.py | a3afcc55299926e104ba2f44bcdba6db219b16f9 | [
"MIT"
] | permissive | ppolxda/restkit | 23337c76c26fc417a5649296310a3ec92ed9c1ad | eeb6177ccd75f8ba7b2faa252116f1e745d0f91b | refs/heads/master | 2020-11-27T16:10:02.912409 | 2019-12-25T07:24:24 | 2019-12-25T07:24:24 | 229,524,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,874 | py | # -*- coding: utf-8 -*-
"""
@create: 2019-09-24 18:22:05.
@author: name
@desc: file_watch
"""
import os
import re
import six
import csv
import glob
import json
import codecs
import asyncio
import datetime
import shutil
from contextlib import contextmanager
def string2date(val, to_date=True):
"""string2date."""
... | [
"ppol850564@gmail.com"
] | ppol850564@gmail.com |
1bd1afb3c44d3be6bb312447b7574f6ad2161b74 | 67339298d164558a0aeedf5acd466114316189a2 | /Desktop/machineLearning-master/wordbreak2.py | 850ca6c20b5ec8d184bd33d22a41c49914ba6c75 | [] | no_license | liwzhi/Zillow-house-prediction | 333ee521c893e9c19a4b94ac28d1cd4c5134419e | 04349947e7dbf1b401dc92060260b17d94b8ab43 | refs/heads/master | 2021-01-10T08:10:45.140204 | 2017-12-06T07:27:34 | 2017-12-06T07:27:34 | 48,142,232 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 26 23:32:12 2015
@author: weizhi
"""
class Solution(object):
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: Set[str]
:rtype: List[str]
"""
result = []
if not s:
return result
... | [
"liwzhi@gmail.com"
] | liwzhi@gmail.com |
0da5c5445cfe3d71ac97a3b671c87a9204e55323 | 2bcc421ee345b00cf805c543b37d18b5d019dc04 | /adafruit-circuitpython-bundle-6.x-mpy-20201126/examples/nunchuk_mouse.py | b5bfcf00dae3a37529429c3b895e0f3d0f530b1f | [] | no_license | saewoonam/sc-current-source-titano | 5a1ad46889c1b09c168424901fd71cb4eab5c61b | 1c136aa8b61268d9ac0b5a682b30ece70ab87663 | refs/heads/main | 2023-03-02T22:12:26.685537 | 2021-02-09T03:28:01 | 2021-02-09T03:28:01 | 317,299,900 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | import board
import adafruit_nunchuk
from adafruit_hid.mouse import Mouse
THRESHOLD = 10
m = Mouse()
nc = adafruit_nunchuk.Nunchuk(board.I2C())
while True:
x, y = nc.joystick
x = (x - 128) // 2
y = (128 - y) // 2
if abs(x) > THRESHOLD:
m.move(x, 0, 0)
if abs(y) > THRESHOLD:... | [
"nams@nist.gov"
] | nams@nist.gov |
5a27586406332e7cdbd75de08befbbf9919a7dc3 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/forecast/testcase/firstcases/testcase4_004.py | 557937f096287c4ab32dd78d9efcd098f5ea7401 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,746 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
9d756fba9bbe92d17718c490e5df2b51628e741d | 73241b5ca11db04720f3fec347d306a70ec1d4be | /customer/views.py | 6c2ee0e6d60bfb7153282ee8e58143d930af2fbe | [
"MIT"
] | permissive | ssteinerx/nova | 4a1a24d7033d295f36ed0325272a15b835c06f4d | 5db5c66db0ad1c30aa717929084deada685bac37 | refs/heads/master | 2021-01-18T10:27:05.880544 | 2012-02-10T18:49:27 | 2012-02-10T18:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,284 | py | import datetime
import time
from decimal import *
from django.db.models import Q
from django.http import Http404
from django.views.generic import list_detail
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response, get_object_or_404
from django.core.urlresolvers import reverse
from... | [
"bob.haugen@gmail.com"
] | bob.haugen@gmail.com |
eeb24e7baf6b1bf84fd9429a41833aaaa45fa691 | 0d6a0b3e761a8d54e76c4e1ca2459c1f7920704e | /python/dazl/_gen/com/digitalasset/ledger/api/v1/completion_pb2.py | 04d5a6ea222149498aff8ac19e6d9df463eddd34 | [
"Apache-2.0"
] | permissive | lucianojoublanc-da/dazl-client | a5ad82d20bdad14d25522193d3ffd59604cb439b | c4e2d7453f014142f90d6d1881da750b9bc3b832 | refs/heads/master | 2020-07-12T17:22:20.851671 | 2019-09-06T10:06:38 | 2019-09-06T10:06:38 | 204,872,189 | 0 | 0 | null | 2019-08-28T09:20:50 | 2019-08-28T07:20:50 | null | UTF-8 | Python | false | false | 4,610 | py | # Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: com/digitalasset/ledger/api/v1/completion.proto
import sys
_b=sys.version_info[0]<3 and (l... | [
"davin.tanabe@digitalasset.com"
] | davin.tanabe@digitalasset.com |
1d17b13ace406e7e6a97f9b3a8d92c650d47a9b3 | cac090af84fae158a9e4c62a384578ba30b93c15 | /final_project/splat/migrations/0006_auto_20201230_1456.py | 3793ccd95b346e6921c5f39ad16aabb76a3758a1 | [] | no_license | micnem/developers_institute | ed316a3754dd48ed54741387430ff1dd436ae1d9 | aea6154a896407336c665d4ad531f124078bc001 | refs/heads/main | 2023-02-06T00:53:41.078983 | 2020-12-31T14:04:07 | 2020-12-31T14:04:07 | 305,331,313 | 0 | 0 | null | 2020-10-22T11:18:21 | 2020-10-19T09:29:00 | CSS | UTF-8 | Python | false | false | 507 | py | # Generated by Django 3.1.3 on 2020-12-30 14:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('splat', '0005_auto_20201230_1329'),
]
operations = [
migrations.RemoveField(
model_name='artist',
name='images',
... | [
"michael.nemni@gmail.com"
] | michael.nemni@gmail.com |
f1fa58594fc73743eb05e68dec4465ebaa070e74 | 71966430aa240977780682b8c54f62d57a453389 | /eng/bin/wheel | 9017719b030fb7cbd53c9aef4a52b70b8ca64fef | [] | no_license | caffwin/SQL-Project-Tracker | 4b78c3dc4389159c6f898a495d841c4c3bfd5596 | bbea04aa9a8a7af8bc2202791f1b65166031809b | refs/heads/master | 2020-03-29T20:42:24.398216 | 2018-09-25T20:34:21 | 2018-09-25T20:34:21 | 150,326,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | #!/home/engineer/src/project-tracker-py/eng/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com | |
13dce980508fede2bd05df573068a346d4bd79a3 | bbe7d6d59ef6d7364ff06377df9658367a19c425 | /building/SuitInterior.py | 778a1feb33f69df21cb7fc8e84571450dc77feb5 | [
"Apache-2.0"
] | permissive | DedMemez/ODS-August-2017 | 1b45c912ad52ba81419c1596644d8db2a879bd9b | 5d6214732e3245f63bfa250e3e9c881cc2dc28ad | refs/heads/master | 2021-01-22T18:37:51.626942 | 2017-08-19T02:04:51 | 2017-08-19T02:04:51 | 100,762,513 | 0 | 8 | null | null | null | null | UTF-8 | Python | false | false | 7,376 | py | # Fuck you Disyer. Stealing my fucking paypal. GET FUCKED: toontown.building.SuitInterior
from panda3d.core import ModelPool, Texture, TexturePool
from toontown.toonbase.ToonBaseGlobal import *
from direct.directnotify import DirectNotifyGlobal
from toontown.hood import Place
from direct.showbase import DirectObje... | [
"noreply@github.com"
] | DedMemez.noreply@github.com |
bfeb61b0ad8c1b9f489b58c49ecf1dccb773b722 | 6c08de2f1f1cba22c2d10f0976f63a5cdd6d7ac0 | /manage.py | 77968a2070d28e43b7bab7111dec55a99fa2b138 | [] | no_license | shivagangula/CricketEleven | 558a810bd0950e4524078d55889c2729d3de1c39 | 2d28ab97284cdfba5565baa4796b909d6b954808 | refs/heads/master | 2022-12-13T00:01:08.872453 | 2019-05-17T16:17:38 | 2019-05-17T16:17:38 | 178,355,482 | 0 | 0 | null | 2022-12-08T04:55:43 | 2019-03-29T07:32:52 | HTML | UTF-8 | Python | false | false | 549 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'cricket11_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Dj... | [
"you@example.com"
] | you@example.com |
ab71e06922486f36a170c6bc563b12e283de2603 | 74e53273dc5aa71293a385512b3d239971099738 | /Data_structures_and_Algorithms/strings/group_anagrams.py | 6ae8e6b9766ff6f72855f55c5c9fcf395e5bd5cf | [] | no_license | BJV-git/Data_structures_and_Algorithms | 3b240bf699e7091453f3a1459b06da1af050c415 | 393c504b2bb17b19e76f6d9d9cce948b4c12dbb2 | refs/heads/master | 2020-04-23T22:32:22.525542 | 2019-02-19T16:09:51 | 2019-02-19T16:09:51 | 171,504,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # just use the letters in each word
def groupanagrams(strs):
map={}
for w in sorted(strs):
key = tuple(sorted(w))
map[key]=map.get(key,[])+[w]
return map.values() | [
"noreply@github.com"
] | BJV-git.noreply@github.com |
517bc5060127453bcdd7c4d2c817fa127709d860 | aab5143d8ee3ba15c9367b146287b7d5a6a41052 | /oj | 16c0b530d872ce704045bae0d779c7085b46b48d | [
"MIT"
] | permissive | kfaRabi/online-judge-tools | fc1e5796446a3f1b729507e018203aeff3193e3f | 79de8d37e1aa78a7c4c82c6a666f1f1602caf545 | refs/heads/master | 2020-04-23T19:49:57.394790 | 2019-02-25T20:43:43 | 2019-02-26T09:15:27 | 171,419,052 | 0 | 0 | MIT | 2019-02-19T06:34:26 | 2019-02-19T06:34:23 | Python | UTF-8 | Python | false | false | 162 | #!/usr/bin/env python3
import sys
import onlinejudge.implementation.main
if __name__ == '__main__':
onlinejudge.implementation.main.main(args=sys.argv[1:])
| [
"kimiyuki95@gmail.com"
] | kimiyuki95@gmail.com | |
017dfd9f0518a90578b4d8f9f5b7fa33fe509dc3 | 3de8d8854170714a891c7eb7b214f7727268e73a | /utils/merge/setup.py | 759482f9fca03e9c1a0fd588c371de536e6ea280 | [] | no_license | YLyeliang/stitch | f50525672d4cc9fa974bf89258fbe4b02645d1c1 | a0163c583a8fc9d92ce837211113c414df6a97b2 | refs/heads/master | 2020-06-21T15:38:04.429980 | 2019-08-16T06:01:39 | 2019-08-16T06:01:39 | 197,492,442 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from setuptools import setup
from Cython.Build import cythonize
setup(name='merge',ext_modules=cythonize('src/merge.pyx')) | [
"k87974@163.com"
] | k87974@163.com |
6273cf58061abe8ccefb4bc899eea327ec0e99f0 | 7f54637e347e5773dfbfded7b46b58b50544cfe5 | /6-2/todo/chainxy/spiders/juicepr.py | 2bd697cca2749d377b5d2fd7452d8a3aca011772 | [] | no_license | simba999/all-scrapy | 5cc26fd92b1d03366b74d4fff58c4a0641c85609 | d48aeb3c00fa2474153fbc8d131cf58402976e1d | refs/heads/master | 2021-01-25T14:24:04.715550 | 2018-03-03T13:43:13 | 2018-03-03T13:43:13 | 123,695,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | import scrapy
import json
import os
from scrapy.spiders import Spider
from scrapy.http import FormRequest
from scrapy.http import Request
from chainxy.items import ChainItem
from lxml import etree
from selenium import webdriver
from lxml import html
import usaddress
import unicodedata
class juicepr(scrapy.Spider):
na... | [
"oliverking8985@yahoo.com"
] | oliverking8985@yahoo.com |
cab2eb1cc0d4c16ad6f834b6f9d14b82a4d4afb1 | 8b0c10d1fe05f23ae079823421bdacb3b16e01c8 | /25_75/A2_pod100/traffic_matrix_11/A2_11.py | a9462dafd14291126ea4cecd493f22cc57d63dba | [] | no_license | LiYan1988/kthjocn_results | 68beedc9fe83198bdf0dbd22f5d694d7aaf61580 | a9e2300d687359cbd80a25061e97c2ee8d062fed | refs/heads/master | 2021-01-13T11:17:10.293501 | 2016-12-24T02:53:07 | 2016-12-24T02:53:07 | 77,261,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
from sdm import *
from gurobipy import *
np.random.seed(2010)
num_cores=3
num_slots=80
i = 11
time_limit_routing... | [
"yanli.bupt@gmail.com"
] | yanli.bupt@gmail.com |
395189f56df54ab98d3b6075404a5cf81a5155b8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03958/s957969672.py | 0e3be012114decbcac16c0e60a1593a77273a09d | [] | 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 | 1,035 | py | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, tan, asin, acos, atan, radians, degrees, log2, gcd
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2204bf8386908ab73cb1bc132cfbe44c14d6a93b | e590449a05b20712d777fc5f0fa52097678c089b | /python-client/test/test_repositories_stash_appscode_com_api.py | 11151fa160776576c5fc94dd825295bf283457b7 | [
"Apache-2.0"
] | permissive | Hardeep18/kube-openapi-generator | 2563d72d9f95196f8ef795896c08e8e21cd1a08e | 6607d1e208965e3a09a0ee6d1f2de7e462939150 | refs/heads/master | 2020-04-11T03:30:18.786896 | 2018-05-05T20:57:51 | 2018-05-05T20:57:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # coding: utf-8
"""
stash-server
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unit... | [
"tamal@appscode.com"
] | tamal@appscode.com |
4dff9be06ed82713e8a5425558a1459a8364cdb4 | b3a55844de9ff46972448b56ccadc1e3088adae1 | /poptimizer/data/domain/__init__.py | bce82b1242ab05fd1d1a11cb6731a73c3a68779e | [
"Unlicense"
] | permissive | tjlee/poptimizer | 480a155e2f4ffd5d6eda27323c5baa682d7f9f00 | 3a67544fd4c1bce39d67523799b76c9adfd03969 | refs/heads/master | 2023-08-15T10:16:11.161702 | 2021-10-15T15:35:38 | 2021-10-15T15:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | """Описание доменной модели сбора данных в виде таблиц."""
| [
"wlmike@gmail.com"
] | wlmike@gmail.com |
db3e40e6de7894ff1df64643826bb9a77afafb82 | a998c1cf6da46bb7a9f9396b48720b67100d317e | /CSV_files/users_update.py | 68fd61c71eaf814723f4142d3209c57dbe0b782c | [] | no_license | mhiloca/PythonBootcamp | dd121a454d4884b6c6abe2e72b2f141e3941e490 | e263c08ec4ce15706b95497d7391229296bdc027 | refs/heads/master | 2020-09-22T16:19:14.476845 | 2019-12-02T02:58:05 | 2019-12-02T02:58:05 | 225,270,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from csv import reader, writer
def update_users(old_name, old_last, new_name, new_last):
with open('users.csv') as file:
csv_reader = reader(file)
users = list(csv_reader)
c = 0
for user in users:
if [old_name, old_last] == user:
user[0], user[1] = new_name, new_last
... | [
"mhiloca@gmail.com"
] | mhiloca@gmail.com |
c19b986c917ae479847ed4edfcfa1f2000241389 | d6819ad545546e03b90d23788d720ab8ffad25d7 | /catkin_ws/devel/.private/pkg_iot_ros_bridge/lib/python2.7/dist-packages/pkg_iot_ros_bridge/msg/_msgIotRosGoal.py | 90254692127bb8431d04eebbd97987833dcd2bfd | [] | no_license | i-tick/EYANTRA-2020-21-VARGI-BOT | e4acb901143cdbfa2e8819a017989fab69109415 | b634157b56f78ada54793e43717ca00389e0ce1a | refs/heads/main | 2023-05-08T08:28:31.737912 | 2021-06-05T14:14:30 | 2021-06-05T14:14:30 | 374,123,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,342 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from pkg_iot_ros_bridge/msgIotRosGoal.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class msgIotRosGoal(genpy.Message):
_md5sum = "e9cbc8cd1a46fb612c667... | [
"aitikdandapat@gmail.com"
] | aitikdandapat@gmail.com |
5e397db594baddbeadce47b6d294696430ff42d8 | 115b5356242176b8873ae7e43cd313e41cbd0ee6 | /quadro/testjump.py | d55e28cf93946824315339a3fb2610a6ffd618b4 | [] | no_license | squeakus/bitsandbytes | b71ec737431bc46b7d93969a7b84bc4514fd365b | 218687d84db42c13bfd9296c476e54cf3d0b43d2 | refs/heads/master | 2023-08-26T19:37:15.190367 | 2023-07-18T21:41:58 | 2023-07-18T21:42:14 | 80,018,346 | 2 | 4 | null | 2022-06-22T04:08:35 | 2017-01-25T13:46:28 | C | UTF-8 | Python | false | false | 714 | py | import logging
import time
import cflib.crtp
from cfclient.utils.logconfigreader import LogConfig
from cfclient.utils.logconfigreader import LogVariable
from cflib.crazyflie import Crazyflie
def main():
#show available links
cflib.crtp.init_drivers()
available = cflib.crtp.scan_interfaces()
for i in ... | [
"jonathanbyrn@gmail.com"
] | jonathanbyrn@gmail.com |
16be45cd5ebae1b0574a757ce655dc5e4a8ac12d | 54d2887e3c910f68366bd0aab3c692d54245e22a | /abc/abc_042_125/abc075/d.py | f830b08b00cb300642cff618c58ba3fccec63b52 | [] | no_license | Kevinrobot34/atcoder | 7aec367fd2c6b589e9d583dae7b3c7520ce9fa12 | 482ea508f098f81e4f19522fe518dd22c781aca9 | refs/heads/master | 2022-07-10T23:44:45.290022 | 2022-06-29T11:30:26 | 2022-06-29T11:30:26 | 158,081,477 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import sys
from bisect import bisect_left
input = sys.stdin.readline
n, k = map(int, input().split())
p = [list(map(int, input().split())) for _ in range(n)]
x = [p[i][0] for i in range(n)]
x.sort()
y = [p[i][1] for i in range(n)]
y.sort()
coord = [[0] * n for i in range(n)]
for i in range(n):
x_idx = bisect_lef... | [
"kevinrobot34@yahoo.co.jp"
] | kevinrobot34@yahoo.co.jp |
644c89e3636dc5fb567aca6739c4ebaf930d5370 | c4c81058dd9fa111f706a5db7ee80064873271ba | /DQM/TrackingMonitorClient/dqmScaleToClient_cfi.py | cda2497cda3a655ea67a53bdc655d8dcba089b95 | [] | no_license | fwyzard/cmssw-cfipython | e142c3a3e707c599dae491333ec48522de3f2f34 | cae55b22a46433b55ea6ff5b36aecc043792d16c | refs/heads/master | 2021-07-25T21:04:42.950199 | 2017-10-24T06:29:00 | 2017-10-24T06:29:00 | 109,701,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | import FWCore.ParameterSet.Config as cms
dqmScaleToClient = cms.EDProducer('DQMScaleToClient',
outputme = cms.PSet(
folder = cms.string(''),
name = cms.string(''),
factor = cms.double(1)
),
inputme = cms.PSet(
folder = cms.string(''),
name = cms.string('')
)
)
| [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
18b1098bd75791d18be50378119620e5da089f8f | 8e6546515c8094f2df7fca4be343b57a1716257a | /neupy/algorithms/gd/momentum.py | e891b96df15766e7f5624fa21be251110f5f044e | [
"MIT"
] | permissive | FGDBTKD/neupy | b51e5870ef75df8aa3dcfb6753648a235f39e50b | 1f5e1ae9364e8c7816df79678a4648c689d2a5d1 | refs/heads/master | 2020-03-31T13:32:57.099935 | 2018-10-29T15:52:19 | 2018-10-29T15:52:19 | 152,260,277 | 0 | 0 | MIT | 2018-10-29T15:52:20 | 2018-10-09T13:56:16 | Python | UTF-8 | Python | false | false | 1,858 | py | import theano
import theano.tensor as T
import numpy as np
from neupy.utils import asfloat
from neupy.core.properties import ProperFractionProperty, Property
from .base import MinibatchGradientDescent
__all__ = ('Momentum',)
class Momentum(MinibatchGradientDescent):
"""
Momentum algorithm.
Parameters
... | [
"mail@itdxer.com"
] | mail@itdxer.com |
cbaa38515df50e4e903605a6fde7eff77f29afc1 | 747755833862b8e9d0f58ebc62879d6ef47c23c8 | /python-tensorflow-master/tensorflow_mofan/__init_visualization.py | 723eca09eaa925c577832e29f1671408ecf5503e | [] | no_license | tangsong41/stu_py | 98a06730dbca6e158cf81c18d98fe1317c1ae512 | d41507cd8dd9e8a54084872dfa15c36da443c02b | refs/heads/master | 2022-12-11T23:53:57.530946 | 2019-01-15T18:29:19 | 2019-01-15T18:29:19 | 163,953,100 | 3 | 0 | null | 2022-12-07T23:24:01 | 2019-01-03T09:41:29 | Jupyter Notebook | UTF-8 | Python | false | false | 3,006 | py | # coding: utf-8
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
'''
generally , we use linear function instead of custom function
define four parameters in function add_layer:
- inputs: the value to be input
- size: the size of the value
- out_size: the siz... | [
"369223985@qq.com"
] | 369223985@qq.com |
5a113719cb2327741700bbb15d4cfa8ae6481114 | cfa36e275224a91bc7b09ab9dba03bddaf15612f | /tests/test_protocol.py | b4ce3c1fff18bbf498dc02ff47e91db84e42bc1d | [
"Apache-2.0"
] | permissive | BayanGroup/sockjs | f243e67f3875344c86f54f69de22e7730aab6d9d | 2e34fc7966d1a38ebcad608d58bc84f4b13d98be | refs/heads/master | 2021-01-17T22:26:33.001317 | 2015-08-07T19:20:39 | 2015-08-07T19:20:39 | 42,516,399 | 1 | 0 | null | 2015-09-15T11:54:17 | 2015-09-15T11:54:17 | null | UTF-8 | Python | false | false | 1,077 | py | import json
import unittest
from sockjs import protocol
class TestProtocol(unittest.TestCase):
def test_encode(self):
self.assertEqual(protocol.dumps({}), json.dumps({}))
self.assertEqual(
protocol.dumps(['test']), json.dumps(['test']))
self.assertEqual(
protocol.d... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
5de3d173f973a89eaec60ba97bb890204f0d414d | 054bc8696bdd429e2b3ba706feb72c0fb604047f | /python/PLOT/BoxPlot/BoxPlot.py | 7222a008d1d2b5372d56bcbf57a38eebafd17d42 | [] | no_license | wavefancy/WallaceBroad | 076ea9257cec8a3e1c8f53151ccfc7c5c0d7200f | fbd00e6f60e54140ed5b4e470a8bdd5edeffae21 | refs/heads/master | 2022-02-22T04:56:49.943595 | 2022-02-05T12:15:23 | 2022-02-05T12:15:23 | 116,978,485 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 14,751 | py | #!/usr/bin/env python3
"""
Plot category data as box plot using plotly library.
@Author: wavefancy@gmail.com
Usage:
BoxPlot.py -y ytitle -o outname [-x xtitle ] [--yerr ycol] [--yr yrange] [--hl hline] [--xls int] [--ylfs int] [--rm int] [--lm int] [--rx int] [--ry int] [--ms msize] [--over] [--b... | [
"wavefancy@gmail.com"
] | wavefancy@gmail.com |
ad052ab67934fee2bca272c627047860ebaeb758 | 95b6f547270557a99c435b785b907896f62e87d1 | /dataset_splitter.py | 7f0af7a6e0570726c1277c7d0137de502d7c5edc | [] | no_license | phizaz/seeding-strategy-ssl | 6b3b58c9b1f556f8cd42fea5e3dc20e623462a08 | 85655ce3297130b273d5f86075ee6bdf1f12be0a | refs/heads/master | 2021-01-10T06:18:26.618009 | 2016-04-02T14:50:08 | 2016-04-02T14:50:08 | 49,761,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | from dataset import *
import numpy as np
from os.path import join
from random import shuffle
'''
split dataset into train and test part
'''
datasets = [
get_iris(),
get_yeast(),
get_letter(),
get_banknote(),
get_eeg(),
get_magic(),
get_spam(),
get_auslan(1),
get_drd(),
get_imag... | [
"the.akita.ta@gmail.com"
] | the.akita.ta@gmail.com |
b12169af09dee66a42cecb8e82e16bee93dc779d | 47ce816b6c56827a4342c63893ed5e2021cebb0c | /day18/q71.py | 3a23a366cf5678d5fb227955dfbc6a45ded18419 | [] | no_license | mecozma/100DaysOfCode-challenge | ed12d543cd5fc7cff08aa5ef28cd962eeb37b05c | ed78a540055973de8df55a910dfdf06b410764ed | refs/heads/main | 2023-04-24T16:43:58.558483 | 2021-05-10T18:13:06 | 2021-05-10T18:13:06 | 321,094,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | import random
ramdom_number = random.choice([i for i in range(10, 151) if i % 35 == 0])
print(ramdom_number)
| [
"mecozma@gmail.com"
] | mecozma@gmail.com |
7d3ac9f47adfa7f9b46477ecdae29af1c4a92f84 | 6dadd4ff3028931fdbc3104f5ce3e660d028ddd3 | /exercicio_py/ex0004_conta_quantidade_caractere/main_v0.py | 8fafc8fcc3492babd70680c2060440bde49d3af2 | [
"MIT"
] | permissive | danielle8farias-zz/hello-world-python3 | dda24fe4c125f762d6512589b288f633f00c94d2 | 1de1ed0bfad51ca582ddd57311f1d1c7d21dc744 | refs/heads/master | 2023-08-10T11:26:58.975017 | 2021-05-31T20:23:49 | 2021-05-31T20:23:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | ########
# autora: danielle8farias@gmail.com
# repositório: https://github.com/danielle8farias
# Descrição: Usuário informa nome e sobrenome.
# O programa retorna quantas letras o nome completo possui (excluindo espaços)
# e quantas letras o primeiro nome possui.
########
nome_completo = input('Digite seu nome com... | [
"danielle8farias@gmail.com"
] | danielle8farias@gmail.com |
8c94bdfca6ebe93cd39319b73316b25eca4cbc08 | 54865e2881d79dab08215aa640c7a3216d121531 | /app/recipe/views.py | 72153942077b98c8146f22d4d9e20994e2b72703 | [
"MIT"
] | permissive | tyronedamasceno/recipe-app-api | d328f22788ec1e5c5e5a4f6955237a7f94af2444 | 5440845cdaacb1bd150e5968d5897ed83c58a80e | refs/heads/master | 2020-04-15T23:41:55.935868 | 2019-01-26T14:09:25 | 2019-01-26T14:09:25 | 165,114,806 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,570 | py | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework import viewsets, mixins, status
from rest_framework.authentication import TokenAuthentication
from rest_framework.permissions import IsAuthenticated
from core.models import Tag, Ingredient, Recipe
from recipe... | [
"tyronedamasceno@gmail.com"
] | tyronedamasceno@gmail.com |
f1dbf02d602fa430af9e54a9f33dca1ceedc68a0 | 48eeb03decf7fa135368c5a5570186c31f5c85db | /dbmanage/archer/sql/inception.py | b2deb3637fe86f7afffe537335e682c2f28d9b11 | [
"Apache-2.0"
] | permissive | zhonghua001/sbdb | d5bb86cb5e4075a8f4dbf0d37c3fa72dd3a05a00 | 40d02767ad58e850bb1df48f87e280424779d30f | refs/heads/master | 2021-01-24T03:52:58.751571 | 2018-02-26T03:51:12 | 2018-02-26T03:51:12 | 122,909,859 | 1 | 1 | Apache-2.0 | 2020-07-22T02:38:13 | 2018-02-26T03:50:57 | JavaScript | UTF-8 | Python | false | false | 12,841 | py | # -*- coding: utf-8 -*-
import re
import json
import MySQLdb
from django.conf import settings
from .models import master_config, workflow
from .aes_decryptor import Prpcrypt
from dbmanage.myapp.models import Db_name
from dbmanage.myapp.include.encrypt import prpcrypt
class InceptionDao(object):
def __init__(self)... | [
"123"
] | 123 |
1db971ec39708916b7e4e8585d01bdf17ea28e8b | ff3f4b3117847f70fe68741288f28576fe2cc5e3 | /baekjoon/2108_통계학.py | 41259a9a151e733ae9d1af6ee5df057516ac52be | [] | no_license | manuck/myAlgo | 087bbe99672c40762759e9202fe371c394736fb1 | c673687d23a2d5cc06b6a6d5fb1bc0cb2e2b7bd9 | refs/heads/master | 2021-07-01T00:13:27.590848 | 2020-12-17T18:10:16 | 2020-12-17T18:10:16 | 203,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | import sys
sys.stdin = open('2108_input.txt')
'''
수를 처리하는 것은 통계학에서 상당히 중요한 일이다.
통계학에서 N개의 수를 대표하는 기본 통계값에는 다음과 같은 것들이 있다. 단, N은 홀수라고 가정하자.
산술평균 : N개의 수들의 합을 N으로 나눈 값
중앙값 : N개의 수들을 증가하는 순서로 나열했을 경우 그 중앙에 위치하는 값
최빈값 : N개의 수들 중 가장 많이 나타나는 값
범위 : N개의 수들 중 최댓값과 최솟값의 차이
N개의 수가 주어졌을 때, 네 가지 기본 통계값을 구하는 프로그램을 작성하시오.
첫째 줄에는... | [
"snc9000@naver.com"
] | snc9000@naver.com |
e3ad600d64d9f11e0dddc613502d108ad9f1cb39 | ab98aaf1b40a5f2a7ab3c4937f7918421e24ea08 | /awacs/elemental_appliances_software.py | 8647a1fce61e3ceec22a2e13834588773c25ddb7 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bruvio/awacs | 6e7b7f2b5feddf792d983fc187a6460c7125ed1f | 9b9140a645219a4a9f606f97f19893d69bdc8494 | refs/heads/master | 2023-02-23T11:41:24.862343 | 2021-02-01T05:23:11 | 2021-02-01T05:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | # Copyright (c) 2012-2013, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
from aws import Action as BaseAction
from aws import BaseARN
service_name = 'AWS Elemental Appliances and Software'
prefix = 'elemental-appliances-software'
class Action(BaseAction):
def __init__(s... | [
"mark@peek.org"
] | mark@peek.org |
7b56077e08025eaf3c1ada2140008009c564b981 | 6e0ed7c9050e3485361503df50c68f7fe6248cf5 | /docs/examples/makefile-like/.rkd/makefile.py | 9fd5113585cd29396ef8ec614e61de0df9bf4873 | [
"Apache-2.0"
] | permissive | miklobit/riotkit-do | ab416763493a25a2ac114ee96291a6b1c36d73b5 | 2eea575ca976237d0948d03267494bdfd44d5412 | refs/heads/master | 2023-03-22T14:11:00.844561 | 2021-01-26T21:34:20 | 2021-01-26T21:34:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py |
from rkd.api.syntax import TaskAliasDeclaration as Task
#
# Example of Makefile-like syntax
#
IMPORTS = []
TASKS = [
Task(':find-images', [
':sh', '-c', 'find ../../ -name \'*.png\''
]),
Task(':build', [':sh', '-c', ''' set -x;
cd ../../../
chmod +x setup.py
./setup... | [
"blackandred@users.noreply.github.com"
] | blackandred@users.noreply.github.com |
aa011ddc59eaa5e6137d848fc6fc6001d1a27567 | 4809471274d6e136ac66d1998de5acb185d1164e | /pypureclient/flasharray/FA_2_5/models/remote_protection_group_get_response.py | aa658242598ae0dc1920ce4763e951f41ede5354 | [
"BSD-2-Clause"
] | permissive | astrojuanlu/py-pure-client | 053fef697ad03b37ba7ae21a0bbb466abf978827 | 6fa605079950765c316eb21c3924e8329d5e3e8a | refs/heads/master | 2023-06-05T20:23:36.946023 | 2021-06-28T23:44:24 | 2021-06-28T23:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... | [
"hubert.chan@purestorage.com"
] | hubert.chan@purestorage.com |
50b64b8a0332d239ddc639588a2c0cee6213e455 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p00005/s736724264.py | 3aea7d294727acc1e866ffc9ed3503b97c4b9330 | [] | 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 | 556 | py | # -*-coding:utf-8
import fileinput
def main():
for line in fileinput.input():
tokens = list(map(int, line.strip().split()))
a, b = tokens[0], tokens[1]
if a < b:
a, b = b, a
ansGCD = GreatestCommonDivisor(a, b)
ansLCM = LeastCommonMultiple(a, b)
print... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
98f2574188c97977230eb3d3dd7d121db08508b5 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/securityandcompliance/private_endpoint_connections_for_mip_policy_sync.py | 5dd557ec9861c7e4e2556f7e4cc374c8222d7c18 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,973 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
0818ace26931c5c44898be3762d0a6f68ec947cd | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/zwave_js/siren.py | 6de6b0f4e45bb439739bd152259f8cfc0d7b95c1 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 3,453 | py | """Support for Z-Wave controls using the siren platform."""
from __future__ import annotations
from typing import Any
from zwave_js_server.client import Client as ZwaveClient
from zwave_js_server.const.command_class.sound_switch import ToneID
from zwave_js_server.model.driver import Driver
from homeassistant.compone... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
3011e9b8df6cda7cabc5d1d5e0b63046a95f63fb | 828e58fff5f3779b6fddbc029f332345adb97c4f | /yoohalal/apps/search/search_indexes.py | 34b0d9ad4c0bcd5ff7273932d028bb75a9486370 | [] | no_license | sofyandamha/Django-Oscar-Marketplace-yoohalal | 5c33ac77834dcbc199d5f39971b0f527e9627167 | 8bc1f11b1fe301f1dc5f9f9edfd6c24402effeb3 | refs/heads/master | 2020-03-27T20:52:37.031477 | 2018-09-02T16:03:43 | 2018-09-02T16:03:43 | 147,099,611 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | from haystack import indexes
from oscar.apps.search.search_indexes import ProductIndex
class ProductIndex(ProductIndex):
status = indexes.CharField(model_attr="status", null=True)
def index_queryset(self, using=None):
return super(ProductIndex, self).index_queryset().filter(status='publish')
def read_queryset... | [
"sofyandamha@gmail.com"
] | sofyandamha@gmail.com |
a4726177c4fda059027f4c6d3cb38741de63ca8e | 1a59a9076c1e9f1eb98e24ff41a4c1c95e2b353e | /xcp2k/classes/_iteration_info3.py | 79331030ff7b10a2cb849bdff4fb8af4fcab0f1a | [] | no_license | Roolthasiva/xcp2k | 66b2f30ebeae1a946b81f71d22f97ea4076e11dc | fc3b5885503c6f6dc549efeb4f89f61c8b6b8242 | refs/heads/master | 2022-12-23T06:03:14.033521 | 2020-10-07T08:01:48 | 2020-10-07T08:01:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from xcp2k.inputsection import InputSection
from xcp2k.classes._each204 import _each204
class _iteration_info3(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Add_last = None
self.Common_iteration_levels = None
self.Filenam... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
237ef58a307d8b9762f9b801a66f3e7bcbc4904a | 95ef9a85565cf489d11b3c11a61c67837bc19948 | /sample.py | 0e2bbba023be91c3f6375059ac2d2a592793ef88 | [] | no_license | yshiga/bnn | 8940abb29b8039e4c2dc8d5f2d84d037158e61f6 | a58c4974a186a9b9aac58672dea9ee01c9238bba | refs/heads/master | 2020-03-24T00:17:16.081212 | 2018-07-28T12:22:50 | 2018-07-28T12:22:50 | 142,283,789 | 0 | 0 | null | 2018-07-25T10:17:20 | 2018-07-25T10:17:19 | null | UTF-8 | Python | false | false | 1,706 | py | #!/usr/bin/env python3
import argparse
import os
import random
import sys
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('--copy', action='store_true', help='whether to move (dft) or copy file')
parser.add_argument('-n', '--n', type=int, default=10, help='... | [
"matthew.kelcey@gmail.com"
] | matthew.kelcey@gmail.com |
67c003c0e76d5c4d3de85d6e55d81ba11833fb85 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/model_test.runfiles/pypi__tensorboard_1_12_1/tensorboard/_vendor/html5lib/filters/_base.py | ea18b2656a9480277674f5e2a25f0f38196a3f86 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 156 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorboard_1_12_1/tensorboard/_vendor/html5lib/filters/_base.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
ba7a7d002524ab8b1ec3921892c2dd7b6facdaac | c194b4139d8546b4ffe64cbef0151d1597b3b5ad | /sample.py | 3f1788c62834d5e167ebcbfc393a7817b999c3be | [] | no_license | sco1-archive/astroneer-helpers | f6ebfb28750bd2e9db1fcb7e63a71362cea813c4 | e3f289568f3aa9134328da69a080b8f70ad2c5a8 | refs/heads/master | 2022-03-29T16:21:30.649753 | 2019-12-17T17:03:31 | 2019-12-17T17:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from bom import build_table
ELA_ROVER = {
"FLOODLIGHT": 2,
"DRILL_STRENGTH_2": 2,
"MEDIUM_CANISTER": 2,
"MEDIUM_STORAGE": 1,
"MEDIUM_STORAGE_SILO": 6,
"PAVER": 1,
"ROVER_SEAT": 1,
"RTG": 1,
"CRANE": 1,
"LARGE_STORAGE": 2,
"LARGE_ROVER": 2,
}
print(build_table(ELA_ROVER)) | [
"sco1.git@gmail.com"
] | sco1.git@gmail.com |
326e21f43b1852e3e38cb9ded973e993869fb117 | 1435fbd464173836c20127041de90cba0d80c98d | /redash/query_runner/url.py | fbf3d427673fcd722ffa89c6c641115cd6a96d21 | [
"BSD-2-Clause"
] | permissive | pkuyangchao/redash | 871b88eaea74c6cc31c50a9f82fd6d3aaf8508ca | 1640b1e927a4d10ce9ae5c24b2d015734c696b08 | refs/heads/master | 2023-02-06T09:58:45.547843 | 2020-03-26T16:36:00 | 2020-03-26T16:36:00 | 249,176,715 | 0 | 0 | null | 2023-02-02T02:19:24 | 2020-03-22T12:17:44 | Python | UTF-8 | Python | false | false | 1,119 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from redash.query_runner import BaseHTTPQueryRunner, register
from redash.utils import deprecated
@deprecated()
class Url(BaseHTTPQueryRunner):
requires_url = False
def test_connection(self):
pass
def run_query(self, query, user):
base_url = ... | [
"hexiaomeng@foxmail.com"
] | hexiaomeng@foxmail.com |
954f40f23e0032f8f62395edcf90b33261eb6e81 | 12a42054b156383ebbe3ccc5de4150633c66da5d | /problems/max-chunks-to-make-sorted-ii/solution.py | e5481ef24f9483ef4c3b752c42899702c87529e2 | [] | no_license | cfoust/leetcode-problems | 93c33029f74f32c64caf8294292226d199d6e272 | f5ad7866906d0a2cf2250e5972ce910bf35ce526 | refs/heads/master | 2020-03-16T23:05:45.123781 | 2018-05-11T16:41:09 | 2018-05-11T16:41:09 | 133,064,772 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | class Solution:
def maxChunksToSorted(self, arr):
"""
:type arr: List[int]
:rtype: int
"""
| [
"cfoust@sqweebloid.com"
] | cfoust@sqweebloid.com |
7a5157c6ffcbcdd2f6c49bbb4524b697412dbece | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/templates/TextField/TextField/wsgi.py | f34adf8d812cd7ceee14636e6a6356adaf2e54bd | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for TextField 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
fe71c3aa34ab8c9836bd0ffc6ddacf779dc554d0 | d367c3927c815b7fbde46d409dcaf37d83d17f38 | /method_CNN_string_gen/a_images.py | 9a97fae6c437ff1cc437e02b629cd5e1466df8a6 | [] | no_license | zoulala/CaptchaRec | f328bd550acc00dc56f24b797c905152bb2d146f | b9e17c2359a22ad0b4720640ecdc8f538ba3a2bf | refs/heads/master | 2020-04-27T17:04:24.130862 | 2019-04-09T06:13:20 | 2019-04-09T06:13:20 | 174,504,166 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,849 | py | # coding: utf-8
"""
captcha.image
~~~~~~~~~~~~~
Generate Image CAPTCHAs, just the normal image CAPTCHAs you are using.
"""
import os
import random
from PIL import Image
from PIL import ImageFilter
from PIL.ImageDraw import Draw
from PIL.ImageFont import truetype
try:
from cStringIO import StringIO as ... | [
"zoulingwei@cyou-inc.com"
] | zoulingwei@cyou-inc.com |
5f95383aff5fba49b25b1300e33dcd4685f4c2e2 | f5f781ef988d4fa2868c923597a132018eb14041 | /build/ROBOTIS-Framework/robotis_framework_common/catkin_generated/pkg.installspace.context.pc.py | 774a80b6fd0a466601c31453399ffb90018407e6 | [] | no_license | greenechang/christmann_ws_2019fira | 701374a30059ee63faf62cfc8dae8ea783f6c078 | a1ba2846fe1326e54366627d8812fa1bf90c70e1 | refs/heads/master | 2022-11-15T20:55:15.891128 | 2020-07-15T09:52:17 | 2020-07-15T09:52:17 | 279,816,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/robotis/christmann_ws/install/include".split(';') if "/home/robotis/christmann_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;robotis_device".replace(';', ' ')
PKG_CONFIG_LIBR... | [
"60875012h@ntnu.edu.tw"
] | 60875012h@ntnu.edu.tw |
12f41adfae7618d774ae8e35f55be137f6152d50 | 1d4350e44c0bfba02dc6bf0d4cd37aafa4320f3c | /script_5.py | 216ee15674ce6456ebb73df6fa5973cb35e7be45 | [] | no_license | swadhikar/lovepythoncode | 842f6ed1a2b2927bc75d0c7b1f13f5bb9cba7a03 | 4bfe7380076f69a08e0b530f81806fc35dffc46e | refs/heads/master | 2020-06-16T10:31:42.107710 | 2019-08-03T09:39:41 | 2019-08-03T09:39:41 | 195,541,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | """
Explanation:
The for-else loop which is usually a for-break-else loop is more handy
when you want to traverse through a list and check for a conditional using
if statement without using a separate flag variable. In most other
programming languages, a flag variable is essential to check for a
condition and another ... | [
"cswadhikar@gmail.com"
] | cswadhikar@gmail.com |
5aacfcd3e696d7b2a3d88e09ebad57dbbf8c18d9 | c4feb6227cc68e96c7454ee7682a91f6f6afd164 | /math/0x01-plotting/0-line.py | 7e407ada5897cc82b36d5c7fef3a101b1a411a8a | [] | no_license | Karenahv/holbertonschool-machine_learning | 4b7ae5ad4cd1f06f8bae87a509d11b5c8069f8c9 | 884db3d605c2d0eee968f03ce7f525f2a557f261 | refs/heads/master | 2022-12-24T16:17:34.753055 | 2020-09-30T02:09:08 | 2020-09-30T02:09:08 | 255,319,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | #!/usr/bin/env python3
import numpy as np
import matplotlib.pyplot as plt
y = np.arange(0, 11) ** 3
plt.plot(y, color='red')
plt.xlim(0, 10)
plt.show()
| [
"you@example.com"
] | you@example.com |
641bd056843f6ca0a0a20681424eb4f1686de5e7 | b3753950357f2f2061d7f887210abbe6f85da448 | /obqa/allennlp_custom/modules/similarity_functions/weighted_sum_repr_combination.py | c6afaaddfa043cf2cfa619e6e87f243ea0abdfa5 | [
"Apache-2.0"
] | permissive | dirkgr/OpenBookQA | 774d37f10a6e6761d70e5feba6d349ae899a8844 | dece3a0ac90d515eac4c8c046b3695b9b9f30124 | refs/heads/master | 2020-04-01T03:16:44.689705 | 2018-10-29T17:35:56 | 2018-10-29T17:35:56 | 152,816,002 | 0 | 0 | Apache-2.0 | 2018-10-29T17:35:57 | 2018-10-12T23:04:43 | Python | UTF-8 | Python | false | false | 3,876 | py | import torch
from allennlp.common import Registrable, Params
from allennlp.modules import SimilarityFunction
from allennlp.nn import Activation
from typing import List
@SimilarityFunction.register("weighted_sum")
class WeightedSumReprCombination(SimilarityFunction):
"""
This function gets a weighted sum of two... | [
"tbmihailov@gmail.com"
] | tbmihailov@gmail.com |
4ab5ba4ebfa53a2d33be4d157d57393a97f90b92 | f22a3b8428891c2e88e2fc8009d7448eeffc638c | /Unidade6/divisor/divisor.py | bb7928bcc3f4099d06fff328f6094a7043ba5c66 | [] | no_license | sheilapaiva/LabProg1 | eefc8f29cbfb80aaf3a5b880c5a38e3ed91a5f72 | de09c46a6060856372be571928063b03f37b0b4e | refs/heads/master | 2021-07-08T09:56:38.009561 | 2020-10-23T16:37:34 | 2020-10-23T16:37:34 | 198,676,900 | 0 | 2 | null | 2020-10-23T16:37:35 | 2019-07-24T17:00:40 | Python | UTF-8 | Python | false | false | 236 | py | #coding: utf-8
#Aluna: Sheila Maria Mendes Paiva
#Matrícula: 118210186
#Unidade: 6 Questão: Divisor
def divisor(num, lista):
indice = -1
for i in range(len(lista)):
if lista[i] % num == 0:
indice = i
break
return indice
| [
"sheila.paiva@ccc.ufcg.edu.br"
] | sheila.paiva@ccc.ufcg.edu.br |
1056cf05708b81487845d8438ae459141956dfce | f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2 | /2015/AST1/vezbovni/Anika/ojler.py | 5b5dbf10c13c700987fb28709f159c2ae8074c1f | [] | no_license | ispastlibrary/Titan | a4a7e4bb56544d28b884a336db488488e81402e0 | f60e5c6dc43876415b36ad76ab0322a1f709b14d | refs/heads/master | 2021-01-17T19:23:32.839966 | 2016-06-03T13:47:44 | 2016-06-03T13:47:44 | 60,350,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import numpy as np
import matplotlib.pyplot as plt
dx=0.3
x=np.arange(0, np.pi*4, dx)
y=np.zeros(len(x))
y[0]=0
for i in range(1, len(x)):
y[i]=y[i-1]+(-1*np.cos(x[i])*dx)
plt.plot(x, y, '-r')
plt.plot(x, -np.sin(x), '-b')
plt.show()
| [
"ispast.library@gmail.com"
] | ispast.library@gmail.com |
bd7b8f5dd9face81b08d0012cf95633a26a6dfb0 | 35128269ea183688b53f8f3cf55db4a02809e331 | /rplugin/python3/deoplete/filters/converter_truncate_abbr.py | ce30c08cb8647da634badf2c73ccd80544433fe5 | [
"MIT"
] | permissive | davidgaleano/deoplete.nvim | d6d988d0caf46d2c7c4957d521871362d685b2f5 | 5428bf386325fa7e1faf204fd0395d12bc0d92fa | refs/heads/master | 2021-01-22T00:03:57.640516 | 2016-04-20T22:36:34 | 2016-04-20T22:36:34 | 56,757,080 | 0 | 0 | null | 2016-04-21T08:39:25 | 2016-04-21T08:39:25 | null | UTF-8 | Python | false | false | 948 | py | # ============================================================================
# FILE: converter_truncate_abbr.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
# ============================================================================
from .base import Base
from deoplete.util impor... | [
"Shougo.Matsu@gmail.com"
] | Shougo.Matsu@gmail.com |
78c385acf5e2a68f579255efe6e445d9ae1b14d3 | 5a7a3447d434a458a7bb63f2aa11b64c284d5492 | /autoUpdate/ess.py | 92478ee285c62152d7f017f249e7baf6234679e4 | [] | no_license | woshimayi/mypython | 35792e12036a7a05f12d3ef7006637b2b03f0e2e | 7f1eb38e8585bf6d2f21d3ad0f64dace61425875 | refs/heads/master | 2023-09-01T08:59:12.301836 | 2023-08-30T05:30:54 | 2023-08-30T05:30:54 | 130,017,052 | 4 | 0 | null | 2018-12-02T16:18:14 | 2018-04-18T06:50:36 | HTML | UTF-8 | Python | false | false | 7,119 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 14 10:29:44 2016
@author: zhang
"""
import os
import sys
import time
#from fabric.api import *
#from fabric.context_managers import *
#from fabric.contrib.files import *
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from glob import glob
... | [
"woshidamayi@Gmail.com"
] | woshidamayi@Gmail.com |
3f7c499644a3e0dc30a6d6050b99476b010f206b | 7c2702d19a975b5f431cf86adbe6a75d0b0aa6fa | /annotate_sibeliaz_blocks.py | 9eaf4a1b1ddffbc7fa8c66aa52f6a1a6c3c5a091 | [
"MIT"
] | permissive | brendane/miscellaneous_bioinfo_scripts | 5b2e15a8a7e7eb2b3db17de9e871c41ecea68cb3 | 91ca3282823495299e4c68aa79bdc1c0225a6d7b | refs/heads/master | 2020-03-25T00:50:30.658106 | 2020-01-13T21:04:02 | 2020-01-13T21:04:02 | 143,208,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,850 | py | #!/usr/bin/env python3
"""
Given a tab-delimited file constructed by bedtools from SibeliaZ
gff output and annotations, create a table of LCB presence/absence
and annotation.
Input file columns:
strain.contig, _, _, start in contig, end in contig, _, strand, _,
LCB name, gff entry for gene (9 c... | [
"epste051@umn.edu"
] | epste051@umn.edu |
85d26b434fcc47c418c8841adb0c1ca58fd6a759 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/avs/get_placement_policy.py | a86dd38301082d572ac356c3efdba90b931ec280 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,805 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
479199cc9964be628c0fa2e5510d93a55bf50446 | 32333eb7bc197225f025941703cd124d47cd945e | /api-django/API-Back end/APIDjango/apiLojas/api/migrations/0001_initial.py | 7e17f9a05611da82f2aea494731804c11f6850aa | [] | no_license | ezequielbrilhantedev/django-store | c5cc10172981e75716fb7b17a87c17bb5d2014f9 | 6a7cfb883b1a157e79d72cf2ff6549e68236b8cb | refs/heads/master | 2020-06-13T12:36:32.489852 | 2019-07-01T11:09:01 | 2019-07-01T11:09:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | # Generated by Django 2.2.2 on 2019-06-29 12:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Estabelecimento',
fields=[
('id', models.Au... | [
"ezequielrb7@gmail.com"
] | ezequielrb7@gmail.com |
3caf8297cad7651c3ab9019f0a7d998dd334f844 | 63255cf9da84b5dd6aa4454dd50385d50c43aac9 | /tencent/linkedlist/detectCycle.py | a33b5b655e110896ea9b8d53ab5337af2be716d3 | [
"MIT"
] | permissive | summer-vacation/AlgoExec | d37054e937b7e3cc4c0f76019cf996acb0fb5a34 | 55c6c3e7890b596b709b50cafa415b9594c03edd | refs/heads/master | 2021-07-09T12:18:51.532581 | 2020-12-20T13:46:43 | 2020-12-20T13:46:43 | 223,929,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py | # -*- coding: utf-8 -*-
"""
File Name: detectCycle
Author : jing
Date: 2020/3/19
https://leetcode-cn.com/explore/interview/card/tencent/222/linked-list/917/
返回入环的节点的index
"""
from tencent.linkedlist.ListNode import ListNode
class Solution:
def detectCycle(self, head: ListNode)... | [
"280806137@qq.com"
] | 280806137@qq.com |
8cc248888f0bff36234ad0bdf0ce0e39a2464636 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch19_2020_03_23_19_40_42_360518.py | b55193cfcd63741c224f36dc9da17fb1293381e6 | [] | 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 | 162 | py | def classifica_triangulo(a,b,c):
if a==b==c :
return 'equilatero'
elif a!==b!==c :
return 'escaleno'
else :
return 'isosceles' | [
"you@example.com"
] | you@example.com |
dd69d4d692f039c33533dcf536782830e24a2108 | 82f37154146f56bb23922ef6ba0e8b0934b7ad66 | /lesson_11/tkinter_oop/font_demo.py | b8e8d5ce6b9718adf2bd620fd9caaf7ecdf1ebe1 | [] | no_license | dm-fedorov/python3_intro | 453e6d54df8cc7012fad6f00bc4fd3b802f6ec7d | e5ea9fbe686a28557f4b5cf5962c391c52c5c492 | refs/heads/master | 2021-06-24T23:43:02.275953 | 2020-11-08T16:53:05 | 2020-11-08T16:53:05 | 161,996,673 | 13 | 22 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | # Эта программа наносит текст на элемент Canvas.
import tkinter
import tkinter.font
class MyGUI:
def __init__(self):
# Создать главное окно.
self.main_window = tkinter.Tk()
# Создать элемент Canvas.
self.canvas = tkinter.Canvas(self.main_window, width=200,
... | [
"dmitriy.fedoroff@gmail.com"
] | dmitriy.fedoroff@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.