blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a0ba64b046817c1d4b87a37d70ac854c54c543fe | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_192/ch160_2020_06_19_20_23_54_764349.py | e8c31d19b6bb9456664ada3169ee602ac3e1ff52 | [] | 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 | 218 | py | import math
x = 0
for x in range(0, 90):
python = math.sin(x)
bhaskara = (4*x*(180 - x))/(40500 - x*(180 - x))
modulo = bhaskara - python
if python != bhaskara:
print(max(abs(modulo))
| [
"you@example.com"
] | you@example.com |
d43eb90092c329955661b847f2018aa00ba189bc | 883a1d6cb2bcd15ab46567f6fed363ea08401340 | /project0001api/profile/urls.py | 4835934555331006b6affe2f36e4b09cc4c8dbe4 | [
"MIT"
] | permissive | Hir0v0/SNS-API | a08ebaf99dc8fd43a8e1eda99f27dbf56c5145eb | 7616494ccb59bd94e0999bb40ee576557d2cc4f2 | refs/heads/main | 2023-02-24T17:53:30.253471 | 2021-01-08T11:41:28 | 2021-01-08T11:41:28 | 327,885,932 | 0 | 0 | MIT | 2021-01-08T11:41:30 | 2021-01-08T11:37:55 | Python | UTF-8 | Python | false | false | 129 | py | from django.urls import path
from . import views
app_name="profile"
urlpatterns = [
path('', views.ProfileView.as_view()),
] | [
"charopevez@gmail.com"
] | charopevez@gmail.com |
f02d95a17097355407275c3eebcb4950b7794ea0 | 6395987515664fd475fc91398bae06f2d7c1465c | /assign/14-class object/class object5.py | 5b7f3cb72a836eed377ac3d7b357838a3307345e | [] | no_license | amanmishra98/python-programs | 984e1f503d04983802aec14ef7f3b2968cdebb60 | e8e90e8ae38b0b4058fa978d5bced943ac995e91 | refs/heads/master | 2020-04-23T07:00:20.740648 | 2020-03-20T08:14:47 | 2020-03-20T08:14:47 | 170,993,284 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #2.WAPS to define a class Employee with instance variable empid,empname,salary.
#define constructor to initialize member variable.define fun to shhow data.
class Employee:
def __init__(self):
empid=int(input("enter emplloyee id\n"))
empname=input("enter employee name\n")
salary=int(in... | [
"noreply@github.com"
] | amanmishra98.noreply@github.com |
ce01006fc28f38174aeae02dffe49f0214c5ae14 | 9554891e5e91fa9d7f75df0f28ae1d220c552478 | /tests/settings.py | 0bfc93f139030f93750f7d8315cca6601c124b85 | [
"MIT"
] | permissive | kmmbvnr/django-polymodels | 2e79cd72c68935a7e83953e0864ced1cb4a530c5 | 7a9b64b1851fea23a64d3d9421a69911e1669a49 | refs/heads/master | 2022-06-21T04:27:15.836175 | 2020-05-07T03:12:18 | 2020-05-07T10:36:06 | 261,932,926 | 1 | 0 | MIT | 2020-05-07T02:44:49 | 2020-05-07T02:44:48 | null | UTF-8 | Python | false | false | 245 | py | from __future__ import unicode_literals
SECRET_KEY = 'not-anymore'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
},
}
INSTALLED_APPS = [
'django.contrib.contenttypes',
'polymodels',
'tests',
]
| [
"charette.s@gmail.com"
] | charette.s@gmail.com |
2958f0f909860b6534a0178f12383d7da22b1669 | 4bd4bacecee33cada173e427b5ecb1d758bafaad | /src/scalarizr/externals/chef/auth.py | ceb60cae41ffdfa7437210aa80b15e234cc31fef | [] | no_license | kenorb-contrib/scalarizr | 3f2492b20910c42f6ab38749545fdbb79969473f | 3cc8b64d5a1b39c4cf36f5057f1a6a84a9a74c83 | refs/heads/master | 2022-11-26T10:00:58.706301 | 2017-11-02T16:41:34 | 2017-11-02T16:41:34 | 108,550,233 | 0 | 2 | null | 2020-07-24T11:05:36 | 2017-10-27T13:33:46 | Python | UTF-8 | Python | false | false | 2,435 | py | from __future__ import with_statement
import base64
import datetime
import hashlib
import re
def _ruby_b64encode(value):
"""The Ruby function Base64.encode64 automatically breaks things up
into 60-character chunks.
"""
b64 = base64.b64encode(value)
for i in xrange(0, len(b64), 60):
yield b6... | [
"kenorb@users.noreply.github.com"
] | kenorb@users.noreply.github.com |
bb7ba31c6870e08fd7fc4b51b79227f4c6111083 | 66e1c9f6598a47916d532c0a6d06b29a1a18796f | /libLGTV_serial.py | 0b83b9e001f8d62e93537b000fc9798a76f58cc6 | [] | no_license | Paulo-Branco/libLGTV_serial | cde7770a52d355f864840eab523c828b480c8f1b | 1d327854e5170413b0782693e5f749377a060fb3 | refs/heads/master | 2021-04-15T05:57:01.748561 | 2018-03-26T23:00:56 | 2018-03-26T23:20:04 | 126,894,417 | 0 | 0 | null | 2018-03-26T21:52:27 | 2018-03-26T21:52:25 | null | UTF-8 | Python | false | false | 11,035 | py | # -*- coding: utf-8 -*-
import re
import serial
import os
import time
import tempfile
from filelock import FileLock
# from pprint import pprint
actual_codes = {}
common_codes = {
'aspect43' : b"kc 00 01",
'aspect169' : b"kc 00 02",
'aspectstatus' : b"kc 00 ff",
'pow... | [
"pauloricardocb@gmail.com"
] | pauloricardocb@gmail.com |
a3406a2a4f8cfa622e3e1140e51ff930c9882ce6 | a5d4c312df89e8c62b6717ce82c3f8c85c02b799 | /ben_coomes_hw2.py | 43d5ea944fb3a184028985c88b68cc760a659253 | [] | no_license | benCoomes/cycledgram | 8d4c0ff081af63783d60d7b0724ade11c5632ade | 0fcb21ad12da29c7e7820fd4e981f26d749a8f43 | refs/heads/master | 2021-01-19T21:59:13.167117 | 2016-04-19T17:51:07 | 2016-04-19T17:51:07 | 53,806,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,958 | py | import fileinput
#### Register.py ####
class Reg(object):
def __init__(self, num, isBusy=False):
self.num = num
self.isBusy = isBusy
def __str__(self):
return "r%d" % self.num
class RegisterSet(object):
def __init__(self, regCount):
self.regCount = regCount
self... | [
"bcoomes@g.clemson.edu"
] | bcoomes@g.clemson.edu |
f519dd7ba24d14d8045d97653c1567470bc4a3e1 | 7439933b3a41ccd2dccb5c65fbe5dcd048dcccd5 | /ursina_test/cheers.py | 3da8be03c0d6ccaf8293fde3c3d7d6fe3f0df082 | [] | no_license | carlsonmark/ursina_test | 8b67f2fc922fb9e608179aaa2ffbadf21fa0b847 | e1b992b103fa81bcef29c1271ddc557e858c0212 | refs/heads/master | 2022-07-13T13:17:44.146288 | 2020-05-16T23:27:06 | 2020-05-16T23:27:06 | 261,594,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,659 | py | import json
from pathlib import Path
from shutil import copy2
from ursina import *
from typing import Dict, Any, Optional, List
# Where cheer data is stored
cheer_data_filename = 'cheer.json'
# All of the "cheers"
cheers = []
def _cheers_textures() -> List[str]:
globbed = Path('textures/cheers').glob('*')
te... | [
"carlsonmark@gmail.com"
] | carlsonmark@gmail.com |
4b6593f23436dfb27afd3d7fb6288cef6f61058e | 002a4ef4ff4867fab3d4ee1593c54e54617b0728 | /lib/deform_psroi_pooling/ps_roi.py | 3e8c444c03ac03690545b62f1369a088fa942d09 | [] | no_license | jdd803/OCR | ed1f7d603886807619325b040473c0a2bf1235cf | 90cf24d1f7deffae95ea502479cb00f071dbbeb5 | refs/heads/master | 2020-05-04T14:21:04.975383 | 2019-04-08T13:02:39 | 2019-04-08T13:02:39 | 179,193,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,659 | py | import tensorflow as tf
import numpy as np
def tf_flatten(inputs):
"""Flatten tensor"""
return tf.reshape(inputs, [-1])
def tf_repeat(inputs, repeats, axis=0):
assert len(inputs.get_shape()) == 1
a = tf.expand_dims(inputs, -1)
a = tf.tile(a, [1, repeats])
a = tf_flatten(a)
return a
def n... | [
"MingdongJu@163.com"
] | MingdongJu@163.com |
3b917e2dc41a7b3904aaba73dfd6da76170247de | e3add5b68d6a9d607bb03602be7bb65f7aa751e1 | /bin/ldap3/operation/modifyDn.py | 400f56992180df2746e8077c0802fd50ca1a8cf3 | [] | no_license | M-u-S/TA-LDAP | ac41379ce18b2153e0a269944ea443bfb81b7a61 | e2c79d4fcff716836138d89f4468b40503213d9b | refs/heads/master | 2021-01-06T23:35:00.269684 | 2020-02-19T02:30:28 | 2020-02-19T02:30:28 | 241,514,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,313 | py | """
"""
# Created on 2013.05.31
#
# Author: Giovanni Cannata
#
# Copyright 2013, 2014, 2015, 2016, 2017 Giovanni Cannata
#
# This file is part of ldap3.
#
# ldap3 is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Fo... | [
"michael.uschmann@gkc.co.nz"
] | michael.uschmann@gkc.co.nz |
7252b484dfdf32010667b6f1203dd62e8102ecfa | e7013e7bec4941a2ea762a843e16dc3d5dce0145 | /task2/simple_test.py | 7c182b1dbc87d8455ab6f5055295c01442bbb93e | [] | no_license | Siyan-Wang/exp_task2 | 9ad9e77ab96ad974e4eee02a4d988eb8b2fe710c | 19feb1bddda558e68e231a824b3596e0fe533597 | refs/heads/master | 2022-04-25T20:26:10.886921 | 2020-04-14T14:56:53 | 2020-04-14T14:56:53 | 119,312,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import numpy as np
import pytest
import io
def test_built_in_functiton():
#test using built-in function
np.testing.assert_allclose(2.0/8.0,0.25,rtol=1e-5)
def test_array():
#test using numpy.array
np.testing.assert_allclose(np.divide(2.0,8.0),0.25,rtol=1e-5)
def test_input_size():
f=open... | [
"sw2936@columbia.edu"
] | sw2936@columbia.edu |
3921885438264c0a9638d2a6932b6f694cd538d2 | 2b60e31d61762c0175ff375a8ebbc29ee9857c5f | /env/lib/python3.7/heapq.py | fc72e5d20ba9d0972329920f45c782ee2969df22 | [] | no_license | iamsushanth/babynames | 255e933bfe51c8571af2aed10f7ec14c5cd53f97 | 49ec0ba0bda61d7ec3a9645fb19f71f8c618d87a | refs/heads/master | 2021-07-10T19:20:23.218651 | 2020-02-03T18:25:08 | 2020-02-03T18:25:08 | 238,031,841 | 0 | 0 | null | 2021-03-20T02:48:35 | 2020-02-03T18:22:13 | Jupyter Notebook | UTF-8 | Python | false | false | 56 | py | /Users/iamsushanth/opt/miniconda3/lib/python3.7/heapq.py | [
"sushanth.uk@gmail.com"
] | sushanth.uk@gmail.com |
621ddd31b9732ba50ce92e1aff9829dfe5d71467 | 34bfbbbeb4157bca8eafa40e4fc46aa2b42d212e | /guide_core/scripts/core_controller.py | 40375c1027a74484a6cf31b0360fd912e33d83fb | [] | no_license | tony92151/ros_DQN_guide_dog | 82eefe1f8e578b48736e362320c2f12627cc8f2a | 5f164bdb16a4bf416b7a2ffab48410bc0cbef379 | refs/heads/master | 2020-04-16T23:27:01.710864 | 2019-11-29T13:28:24 | 2019-11-29T13:28:24 | 166,012,084 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,175 | py | #!/usr/bin/python
#reference http://wiki.ros.org/roslaunch/API%20Usage
import roslaunch
import rospy
import rospkg
#get pkg dir & get to param
rospack = rospkg.RosPack()
dirpath_ar = rospack.get_path('lemon_minibot_detect')
dirpath_core = rospack.get_path('lemon_minibot_core')
dirpath_rviz = rospack.get_path('minib... | [
"tony92151@yahoo.com.tw"
] | tony92151@yahoo.com.tw |
ad6dad21628cc635db005d138eccf7792e89f1ee | 9f459e7183590313e8b7be35c40e3b3311efeca0 | /projects/DensePose/densepose/data/build.py | eeb231de0fce675b5cc92b7d78f32fe56a67a912 | [
"Apache-2.0"
] | permissive | TalhaUsuf/RetinaNet_W9_form | 95e129f2611d240eb4f524640ffdc7384a27fca3 | 2a66bba1de96bebd679775b841d95ac7dcfcbbbe | refs/heads/master | 2023-08-14T02:04:11.668370 | 2021-09-15T15:53:01 | 2021-09-15T15:53:01 | 405,922,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,753 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import itertools
import logging
import numpy as np
from collections import UserDict, defaultdict
from dataclasses import dataclass
from typing import Any, Callable, Collection, Dict, Iterable, List, Optional, Sequence, Tuple
import torch
from torch.utils.data.dataset ... | [
"talha.yousuf@stech.ai"
] | talha.yousuf@stech.ai |
6027836b1b5d3cb8b842b1a1b77f5c9777269896 | 2cc29c65c1c9e8ff6999f67ee01009ac1ee4fb43 | /Lesson3/Task-3_3.py | 2507a8b3f84203079da4a773bdb15e68573936f7 | [] | no_license | ekspertas/Python_Algoritms | 2620820a723bdf972e00520d9792594a11d34904 | 49f9193bf5a67a5b61fca9f266e6ad9cffa0af1a | refs/heads/main | 2023-04-29T19:13:56.440489 | 2021-05-18T14:31:14 | 2021-05-18T14:31:14 | 360,904,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | """
В массиве случайных целых чисел поменять местами минимальный и максимальный элементы.
"""
import random
SIZE = 10
MIN_ITEM = -100
MAX_ITEM = 100
array = [random.randint(MIN_ITEM, MAX_ITEM) for _ in range(SIZE)]
print('Массив случайных чисел:\n', array)
min_el = array[0]
max_el = array[0]
max_el_inx = 0
min_... | [
"ekspertasd@gmail.com"
] | ekspertasd@gmail.com |
33a33cfd3f32dd9321b486aeb4d948593d5c76b2 | b15178f2ec828894c3b2d31b3ff6164be37ab875 | /setup.py | a511bad7d960a83c9af9d54df61c11eb837181ee | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | biomodels/BIOMD0000000007 | 08e9de5d8d6745cde85d337c385e0f41f53906d3 | 1c03559e6e807621fa757386ea03dfae2c0ca312 | refs/heads/master | 2021-01-25T06:05:51.198922 | 2014-10-16T05:13:44 | 2014-10-16T05:13:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | from setuptools import setup, find_packages
setup(name='BIOMD0000000007',
version=20140916,
description='BIOMD0000000007 from BioModels',
url='http://www.ebi.ac.uk/biomodels-main/BIOMD0000000007',
maintainer='Stanley Gu',
maintainer_url='stanleygu@gmail.com',
packages=find_packages(... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
0b21b4b1295f5b13869a1b1ac8f2ecc8a5e67b11 | 61a82db8fec18699385d1f765925bc0cabda9059 | /py/lista_sklepow.py | b876b0c828d95039fd02e90156a03e8e2471a02d | [] | no_license | Gordwick/transport_company_db_project | 9a7afa045d01a69adc2d5f21a2758a1323a44691 | 1eb70eaf389f9277bc94201aff0121d9ff30bae1 | refs/heads/master | 2021-02-13T15:40:39.165517 | 2020-03-03T18:28:58 | 2020-03-03T18:28:58 | 244,710,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | #!/usr/bin/env python
import cgi
import cgitb
import codecs
import psycopg2
from config import config
cgitb.enable()
form = cgi.FieldStorage()
def lista_sklepow():
""" lista sklepow z opcjami select html """
conn = None
try:
#laczenie z baza danych
params = config()
conn = psycopg2... | [
"sitkosebastian97@gmail.com"
] | sitkosebastian97@gmail.com |
994aaf530c445b31b300665fa6c47320e70099c0 | 032ce9681437fcbfe538a54e69a385b1252c10c2 | /usuarios/usuario (1).py | e8cdc2fe374f69d3378a2f73267b8bd34553707e | [] | no_license | pmalbani22/20-Proyecto-Python | c8945f2e11556b66263e2d6af40a419fab46a9dd | 5e6dda6cb8d24dcc0df273243237d60f477b04f3 | refs/heads/master | 2023-06-16T20:14:11.802130 | 2021-07-19T02:09:05 | 2021-07-19T02:09:05 | 387,312,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,062 | py | import datetime
import hashlib
# llamo al módulo conexion y le pongo un alias conexion
import usuarios.conexion as conexion
# Guardo en la variable connect el método conectar()
connect = conexion.conectar()
# Creo dos variables y guardo los valores que vienen del módulo conexion
database = connect[0]
cursor = connect[... | [
"69486559+pmalbani22@users.noreply.github.com"
] | 69486559+pmalbani22@users.noreply.github.com |
babc7901205f8acb01cd72c9fe245666b9304558 | c3b49af4a5bfda091f8c59c809003ae5a217eed2 | /oldScripts/doMergingFromList.py | f5bc1e436c80c0b657bf7bf053622fac1b4cf6c8 | [] | no_license | cmsdaq/merger | a902e9fcaae1815948e02ba4c07ee0c1812e4732 | 76c3ee07a78ba5d8975a9d3863f08fb5fe3eb125 | refs/heads/master | 2020-04-06T03:48:13.033219 | 2018-11-29T11:01:56 | 2018-11-29T11:01:56 | 17,595,433 | 0 | 2 | null | 2017-01-26T13:00:18 | 2014-03-10T14:25:39 | Python | UTF-8 | Python | false | false | 9,170 | py | #!/usr/bin/env python
import os, time, sys, getopt
import shutil
import json
import glob
import multiprocessing
import datetime
import fileinput
import socket
# program to merge (cat) files given a list
"""
Do actual merging
"""
def mergeFiles(outputMergedFolder, outMergedFile, inputDataFolder, files, inputJsonFile):... | [
"ceballos@cern.ch"
] | ceballos@cern.ch |
670a85cfaf02e0415b66738b9d92ee70cff91bb2 | 6f1deafab85d360c822f079d04611d3120f9504e | /single_cell/config/generate_pipeline_config.py | 3a6e99a4f265e078b34a116046ff61c5da478dc4 | [] | no_license | arfathpasha/single_cell_pipeline | e9927ee6cd5d29d62e8d3b3129437da52224d37e | 42574e52ffaf75f56bd8b22b54033b31c9cf6ff3 | refs/heads/master | 2020-04-02T17:52:59.149922 | 2018-11-21T19:27:21 | 2018-11-21T19:27:21 | 154,676,569 | 0 | 0 | null | 2018-10-25T13:32:06 | 2018-10-25T13:32:06 | null | UTF-8 | Python | false | false | 1,170 | py | import os
import warnings
import pipeline_config
from single_cell.utils import helpers
def generate_pipeline_config_in_temp(args):
if args['which'] in ['clean_sentinels', 'generate_config']:
return args
if args.get("config_file", None):
return args
config_yaml = "config.yaml"
tmpdir... | [
"dgrewal@momac30.bccrc.ca"
] | dgrewal@momac30.bccrc.ca |
c7ce371055e0e28656f0d0b0eeaae05a92a47485 | f5e43fa92d3bb3b242cff3e4adf807bc0e9fa747 | /venv/Lib/site-packages/ffmpy3.py | c9732252ab03f7bcbcaa761408215246ad550e09 | [] | no_license | Neytrinoo/ordis | 6567f160307f4616b0543e7bd00f20a6587bf125 | 64d8951de032530614fe446cc23c889bf56e8c6f | refs/heads/master | 2020-04-23T16:17:56.842008 | 2019-05-07T15:18:09 | 2019-05-07T15:18:09 | 171,293,959 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,597 | py | import errno
import shlex
import asyncio
import subprocess
__version__ = '0.2.3'
__license__ = 'MIT'
"""
ffmpy3
ffmpy3 is a fork of the `ffmpy <https://github.com/Ch00k/ffmpy>`_ project and subject to the terms of the MIT license.
"""
class FFmpeg(object):
"""Wrapper for various `FFmpeg <https://www.ffmpeg.org... | [
"neytrino070902@yandex.ru"
] | neytrino070902@yandex.ru |
2a69eb33a3e58deaffbcbc4c7aeaea38e732e355 | 86993cd1168115e7e9b2a7f60253f7c02a5330a7 | /project_euler/p025.py | 9193f228d06807cdc845e935d6933c54ed66b6f8 | [
"MIT"
] | permissive | yhlam/project-euler | 4ec3ebf4719605e390d5ff7f68b0e7a5e08efcc1 | 503c90c039380eee9e6935676d0cdc3588804018 | refs/heads/master | 2020-04-08T08:03:24.240902 | 2014-04-05T15:09:02 | 2014-04-05T15:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | """1000-digit Fibonacci number
The Fibonacci sequence is defined by the recurrence relation:
Fn = Fn-1 + Fn-2, where F1 = 1 and F2 = 1.
Hence the first 12 terms will be:
F1 = 1
F2 = 1
F3 = 2
F4 = 3
F5 = 5
F6 = 8
F7 = 13
F8 = 21
F9 = 34
F10 = 55
F11 = 89
F12 = 144
... | [
"lamyuenhei@gmail.com"
] | lamyuenhei@gmail.com |
0eee35d85860baeff05901fcea1b5fff96bad305 | f7ddf11d729824188c92b1a90d8d376f435eadb9 | /Menu.py | a0f08702d73f5479379146d839d9f2c2a6fbddef | [] | no_license | ChiuHsiung/TkinterTest | d7de99575851b183e120f1e0258cd0f9c3013636 | 28622ae555db8f437ad43650d518fc15f8302d56 | refs/heads/master | 2021-05-31T05:39:50.251045 | 2016-02-23T11:30:31 | 2016-02-23T11:30:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,066 | py | # -*- coding : UTF-8 -*-
__author__ = 'admin'
from tkinter import *
def new_file():
print("Open new file")
def open_file():
print("Open existing file")
def stub_action():
print("Menu select")
def makeCommandMenu():
CmdBtn = Menubutton(mBar, text='Button Commands', underline=0)
C... | [
"zhuangqiuxiong@icloud.com"
] | zhuangqiuxiong@icloud.com |
e6e3bcd4498af24df0ecab7eb76eec6eb245bcc2 | 1cf3ddf43bd2e13a3b6eadf4beea702101bc3f67 | /tela-azul.py | 30967dab30f9dbffd99720d47623cb2640d463fa | [] | no_license | Matthew2812/Eletro-Hack | d385c0686cb6bf3f3a2e0d1f603763dc3394b418 | e81e07a045add665798368402e59d7893124b8f7 | refs/heads/master | 2020-04-05T13:30:27.233374 | 2018-11-20T20:46:32 | 2018-11-20T20:46:32 | 156,905,627 | 0 | 0 | null | 2018-11-09T22:52:47 | 2018-11-09T18:59:45 | Python | UTF-8 | Python | false | false | 346 | py | import pygame,time,os, sys
pygame.init()
tela_azul = pygame.image.load(os.path.join('Imagens','tela-azul.jpg'))
tela_azul = pygame.transform.smoothscale(tela_azul,(1366,768))
screen = pygame.display.set_mode((0,0), pygame.FULLSCREEN)
screen.blit(tela_azul,(0,0))
pygame.display.flip()
time.sleep(5)
p... | [
"noreply@github.com"
] | Matthew2812.noreply@github.com |
4c0de3be67bd8370f7c6e7b1379788a5fcabcd0f | 1195255c33d6f590807bbe52490b7686f9731a73 | /menu.py | 113dcf32aec0d30f6403d0634a575d7412ebd717 | [] | no_license | antonioalme20/conversor_bits | 6b2dc70971a3cd822f5ff0ae9591aea5b10b4b18 | 8769dba98e7ccb5874dc1fe3cd9f2addb9bbf493 | refs/heads/master | 2020-09-02T09:26:42.473967 | 2019-11-25T21:26:28 | 2019-11-25T21:26:28 | 219,190,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | #****EN ESTE ARCHIVO RECOJO LAS FUNCIONES PARA EJECUTAR LOS MENUS DE DESPLAZAMIENTO*****
#Menu Principal
def menu1():
print("\n1)Bit->...\n2)Byte->...\n3)Kilobyte->...\n4)Megabyte->...\n5)Gigabyte->...\n6)Terabyte->...\n7)Petabyte->...")
#Menu de Bits
def menu_bits():
print("\n1)Bit->Byte\n2)Bit->Kilobyte\n3)Bit->... | [
"noreply@github.com"
] | antonioalme20.noreply@github.com |
8860ffa3c141389a4e72108c4df8d5b3dc15d333 | 378f84d623d0c0ffb40fd0ed6d6d6a9aea112671 | /microblogSC/settings_example.py | 2c771edf009de1deb0954e07a1b7d869807fb932 | [] | no_license | camilleganzin/microblog | db02d0614b6ff4b66c456e71224eabaafb030cd5 | c5d06b1fce5e6a5e6a34ba5af918ddddcd39f5a7 | refs/heads/master | 2021-01-22T22:28:23.733855 | 2017-11-04T16:13:58 | 2017-11-04T16:13:58 | 92,778,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py | """
Django settings for microblogSC project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"camilleganzin@gmail.com"
] | camilleganzin@gmail.com |
0e16d44ab43d0f6d037b3d5da22cc580bb562e28 | 2cbd1a7fc113b51e463f15556788463b40351db1 | /day16.py | 93c70ef76989a16ad2c9cd4d029ad7c4af8f1988 | [] | no_license | Gyaha/AOC2015 | 8ca286b65860c10b76eace994988ecfdae29c939 | 5ccd3a2a67254cc7ad30904b0c4d0eb7292c1462 | refs/heads/main | 2023-07-04T11:59:07.205938 | 2021-07-27T20:15:05 | 2021-07-27T20:15:05 | 384,755,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | def read_rules(s: str) -> list:
rules = []
for l in s.splitlines():
ll = l.split()
rules.append([int(ll[1][:-1]), {
ll[2][:-1]:int(ll[3][:-1]),
ll[4][:-1]:int(ll[5][:-1]),
ll[6][:-1]:int(ll[7])}])
return rules
keys = {"children": 3,
"cats": 7,
... | [
"gyaha@users.noreply.github.com"
] | gyaha@users.noreply.github.com |
07f43fea0722634c5025b721083c1c83f189d56b | 48c1b26b00f01c745ff2b979da019e21d52e3710 | /Week 4/solution.py | 0c4aa7b5ad45fe17400f08679cba4b27121e9fdb | [
"MIT"
] | permissive | popey0/2020-Tutorials | 1dd413e2a6473dd76c451f6f85b2402b6c250d13 | e97f248fb5f30304fd36ca5b29445c8fa7b63b15 | refs/heads/master | 2022-12-31T06:30:41.401423 | 2020-10-21T00:52:17 | 2020-10-21T00:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # -*- coding: utf-8 -*-
"""
Week 4 ICT Session
"""
import numpy as np
from scipy import fft # Import the module, NOT the function
import matplotlib.pyplot as plt
from matplotlib.ticker import FuncFormatter, MultipleLocator
def mapping(x, xp, fp):
"""One dimensional linear mapping"""
xmin, xmax = xp
fmin... | [
"alexandermuirhead@hotmail.com"
] | alexandermuirhead@hotmail.com |
b6f4dc379cf9bd32506bd7ba21385484479be112 | 5e710f6379fe656cf366a5bfd069adc46e54801c | /Novice/07-03/kelompok/olshop/migrations/0007_remove_penjualan1m_saldo_awal.py | 902a033c6efdf2422e7d4ded3fbfed43ccebc17f | [] | no_license | atko45/Praxis-Academy | c45e067a3a54648106f969e1433e3c4f60e22a10 | 05c2069b698d0a7d5e0e0e5c6d3e97ed74d2eef7 | refs/heads/master | 2023-01-03T14:11:18.076966 | 2020-11-04T04:03:52 | 2020-11-04T04:03:52 | 292,163,250 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | # Generated by Django 2.2 on 2020-09-30 03:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('olshop', '0006_auto_20200929_1700'),
]
operations = [
migrations.RemoveField(
model_name='penjualan1m',
name='saldo_awal',
... | [
"okta.brahvila45@gmail.com"
] | okta.brahvila45@gmail.com |
d797f5f38448e40d8ac1b2f35f26c2494a906e41 | 44e6cac3ee0e23b69541ebca85680a543276b47c | /absence/models.py | dcbd977b82c18f10d1d1c27aa47394dfb1e95eb3 | [] | no_license | it21546/attendancesystemdos | 5b8b1a50dd18ae2226e6fb87a1f3c7091347acd0 | 8c7fee44c7c90a8feff2057dac53ecace862b63a | refs/heads/master | 2023-08-15T03:55:34.641898 | 2021-10-14T10:04:08 | 2021-10-14T10:04:08 | 406,307,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
POSTUND_CHOICES = [
("Προπτυχιακό", "Προπτυχιακό"),
("Μεταπτυχιακό", "Μεταπτυχιακό"),
]
DEPARTMENT_CHOICES = [
("Πληροφορικής και Τηλεματικής",... | [
"it21546@hua.gr"
] | it21546@hua.gr |
d827e99e9bfe24739b29b9efd7b67641f05c3576 | ff3e0d75fda9a1a94fd8ba7618c0aab499b8393d | /musicians/migrations/0004_auto_20200813_0055.py | 255088a50889f0134f21340a8b9558fc20ab73a7 | [
"MIT"
] | permissive | victorsemenov1980/DjangoFullStack | bbe2897c20633b3eba8db807442eb0921668e6f1 | 655a3a9980057913c1aeeb1cd54683ccf12ad901 | refs/heads/master | 2023-04-05T23:34:13.836215 | 2021-04-22T18:08:51 | 2021-04-22T18:08:51 | 289,705,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | # Generated by Django 3.1 on 2020-08-13 00:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('musicians', '0003_info'),
]
operations = [
migrations.RemoveField(
model_name='service',
name='Featured',
),
... | [
"vs1378009@icloud.com"
] | vs1378009@icloud.com |
d13566a33b190ce7d3ce241b992ad4b6da0d2c42 | ef57b38bcfeb6e1e63497fc84632ae509578d6c2 | /dv-var.py | f75b0bdfbb96a24784da41ead102988f4638fc32 | [] | no_license | league/Radio-Transient-Search | d31fcccf3b2e192e91563cb9050087b91c6f1815 | 0c2883f0b335db8f0785fa004234167edaba8d8f | refs/heads/master | 2021-07-13T08:03:23.639950 | 2021-03-20T02:39:33 | 2021-03-20T02:39:33 | 100,059,536 | 1 | 0 | null | 2017-08-11T18:19:30 | 2017-08-11T18:19:30 | null | UTF-8 | Python | false | false | 15,112 | py | import disper
import sys
import numpy as np
import glob
import os
import time
import sys
import humanize
from datetime import datetime, timedelta
from mpi4py import MPI
from mpisetup import totalrank, rank, log, comm
def DMs(DMstart,DMend,dDM):
"""
Calculate the number of DMs searched between DMstart and DMend... | [
"league@contrapunctus.net"
] | league@contrapunctus.net |
8c506c55fcae581ec67d2c09b843a380a00d0741 | d81d615c2e6ef0d9d4244c3e6cce96ddcad7230b | /task2/optimization.py | b5b90436df152e4fb18db570a8358c683cbb44e7 | [] | no_license | Sorrow321/prac_ml_msu | 857aa1d4714c86c2c4ad7014077ee6afc940d234 | 390bcea9baa66766a381f7a61ddecdb6258973b7 | refs/heads/master | 2020-12-14T06:03:09.738249 | 2020-01-18T01:35:35 | 2020-01-18T01:35:35 | 234,665,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,019 | py | import numpy as np
import time
import scipy
from oracles import BinaryLogistic
from scipy.special import expit
class GDClassifier:
"""
Реализация метода градиентного спуска для произвольного
оракула, соответствующего спецификации оракулов из модуля oracles.py
"""
def __init__(sel... | [
"noreply@github.com"
] | Sorrow321.noreply@github.com |
608639397198677dd8f08304ee0a78ad5fe88050 | b961403c4d63b0a2f6471a2226d46a53756f8a2c | /walk/app.py | 19293622dc1dc2be3021446c3f1fcff49911f21b | [] | no_license | yeony-syny/sparta8 | 6072c0d0806439aca773f22eb5f8323c07ac1817 | e3262c2dd4c358cbec558821fd0d320bd386762a | refs/heads/master | 2022-10-30T17:48:51.646464 | 2020-06-20T08:04:51 | 2020-06-20T08:04:51 | 264,628,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
path = "C:/Users/bumky/Desktop/develop/chromedriver"
driver = webdriver.Chrome(path)
driver.get("http://www.facebook.org") | [
"synoout@gmail.com"
] | synoout@gmail.com |
5ee9b76c8b45fb89102e0d6b56f0078da0fd77d7 | f3091f0b1c841729bff285d01f52a1db06b71513 | /tests/daemon/test_walletd.py | 171036f2abb251dd121cc66f0fada3ff79064991 | [
"MIT"
] | permissive | Taffsigg/QRL | 285174df0dcb9f704611ed28bb60a9b3cf235fd6 | 130044cb5015ad21db49a3b6867f1327a071b680 | refs/heads/master | 2020-11-25T12:38:51.000437 | 2019-11-07T16:19:59 | 2019-11-07T16:19:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58,067 | py | # coding=utf-8
# Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php.
from unittest import TestCase
from mock import Mock
from pyqrllib.pyqrllib import bin2hstr, hstr2bin
from qrl.daemon.walletd import WalletD
from qrl.generated import ... | [
"kaushal.forex@gmail.com"
] | kaushal.forex@gmail.com |
0ab52593e61a8c030d9e303a4c84011ce9f94f21 | 75e24fc71cf0833bb6040fa5037a0523c67d4581 | /nlplingo/active_learning/metrics.py | 5c880ba632dbf6cfbae101db65920c9732147a90 | [
"Apache-2.0"
] | permissive | BBN-E/nlplingo | 53d5ff2aa17d03a1c6db8afc8ed2b0cf683b1c55 | 32ff17b1320937faa3d3ebe727032f4b3e7a353d | refs/heads/main | 2022-12-19T19:28:11.666850 | 2020-10-09T01:16:32 | 2020-10-09T01:16:32 | 302,090,268 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | import numpy as np
def best_vs_second_best(predictions):
"""Computes best vs second best metric
:type predictions: numpy.nparray
:rtype: numpy.nparray
"""
pred_sorted_arg = np.argsort(-predictions, axis=1)
best_vs_second_best_score = 1 - abs(
predictions[range(predictions.shape... | [
"hqiu@bbn.com"
] | hqiu@bbn.com |
ef93815b785e5d1137f4ca132da2fb68ee16ca95 | 738fde3d5f8b38b0a087fffdb62db7007cad170c | /Metodos.py | 56febda60ff5755fbf8b0df6a7a7a040ed489d1c | [] | no_license | rubenAlbuquerque/Gestao-de-Dados-Clinicos | b8b4636937d61cc3ce4fe4ac5d9d47f6ab9a6292 | d899423a420d9952b7a669e9fb85a88da7b8ce08 | refs/heads/master | 2020-08-05T07:49:40.639355 | 2019-10-02T22:35:00 | 2019-10-02T22:35:00 | 212,452,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,860 | py |
def verificar_sequencia(seq):
for i in range(len(seq)):
if seq[i] not in ["A","T","C","G"]:
return False
return True
class Pessoa:
def __init__(self):
self.contatos = []
def novo_cliente(self, dicionario, dados):
nome = input("Insira o nome do Cliente:")
... | [
"noreply@github.com"
] | rubenAlbuquerque.noreply@github.com |
e0335552143c00779abca57ca8f089e94c29776d | 1ccc9ae90f86d6c57eb0c9348b908d652d7f46be | /manage.py | 896a20a43039899698c3918c7245208086aae5f0 | [] | no_license | rizwans-cuelogic/flask-blog | 03294f1c0df47368c23e0104a5960801b5c7c0d9 | 3c38125ed6146f5af6ced9f6fafca2e554e850e2 | refs/heads/master | 2021-08-19T22:07:33.821682 | 2017-11-27T14:51:04 | 2017-11-27T14:51:04 | 110,678,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from app import app,db
migrate =Migrate(app,db)
manager = Manager(app)
manager.add_command('db',MigrateCommand)
if __name__=='__main__':
manager.run() | [
"rizwan.shaikh@cuelogic.com"
] | rizwan.shaikh@cuelogic.com |
859f1690e91ca3f518f15255794a51adc1e3c7c7 | e457ec8103562439d153403ad9106d42664976af | /set4/Code7.py | 48aecd35c48cc462aa9a2eed2e3b7c058d3f057b | [] | no_license | ishaniMadhuwanthi/Python-Codes | 548a5206bdcd50013abc91b3a0560f442bc910a7 | 8959b85bfa80a38f6111945e815499e39590233f | refs/heads/master | 2022-08-12T03:59:05.770534 | 2022-07-26T04:55:18 | 2022-07-26T04:55:18 | 226,508,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | py | # Calculate mutiplication of two random float numbers
import random
num1 = random.random()
print("First Random float is ", num1)
num2 = random.uniform(9.5, 99.5)
print("Second Random float is ", num1)
num3 = num1 * num2
print("Multiplication is ", num3) | [
"noreply@github.com"
] | ishaniMadhuwanthi.noreply@github.com |
a2ae33df39f4c18bf1122e51783c1b3641f8a71b | 0a004fc3fe8e36fd7ce0ed2cc7e8140982315e03 | /unsupervised_learning/0x00-dimensionality_reduction/0-pca.py | 96f2f628a740e86a328e4e2a17f3fdae39d1650a | [] | no_license | pafuentess/holbertonschool-machine_learning | 266ed4f05e106e194cdafe39544e48904f6538f4 | 3bffd1391b3fc790f0137d0afbe90eb8e2f7d713 | refs/heads/master | 2023-03-26T15:12:14.721409 | 2021-03-20T20:28:15 | 2021-03-20T20:28:15 | 279,388,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | #!/usr/bin/env python3
""" doc """
import numpy as np
def pca(X, var=0.95):
""" doc """
U, sigma, V = np.linalg.svd(X)
a_sum = np.cumsum(sigma)
dim = [i for i in range(len(sigma)) if((a_sum[i]) / a_sum[-1]) >= var]
ndim = dim[0] + 1
return V.T[:, :ndim]
| [
"pafuentess@unal.edu.co"
] | pafuentess@unal.edu.co |
6c13a2bb9c012badbf065b7117c98cf2344d8b14 | f7f834e68ce816011ae30be0883deef090fbeeed | /camp/Z_Template_2018/Day 5 - Space Invaders/space_invaders.py | be8cc7bd451a55706eed78c51f0099e5ac7b5db7 | [] | no_license | Rosebotics/PythonGameDesign2019 | 97b568cf999dea8642e254a22e528539946118e3 | 2f03476df940257adc2928f0c985c01daa5166f4 | refs/heads/master | 2020-06-04T04:42:35.656392 | 2019-06-22T16:21:57 | 2019-06-22T16:21:57 | 191,875,778 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,301 | py | import pygame, sys, random, time
from pygame.locals import *
class Missile:
def __init__(self, screen, x):
# TODO: Save the screen into a field
# TODO: Save the x into a field
# TODO: Set the y to 591 as a field (which is just above the fighter)
# TODO: Set a field called exploded ... | [
"fisherds@rose-hulman.edu"
] | fisherds@rose-hulman.edu |
3b30c30a366cc29bba2b5cedcd49a312819055e8 | db0c012043f9eabe13ee3e7d830b061ce6c4aa24 | /rvn_rpc.py | 90fac21575b17d0d7fb9cbf28b5de1cda0a01dc1 | [] | no_license | jeroz1/raven-trader-pro | 80ebd433ef452b430f725441f8da772cae115680 | 44a1b1c6162a83f472d4b0425b34e73b4b55ac6b | refs/heads/main | 2023-05-03T00:40:36.054661 | 2021-05-16T18:58:04 | 2021-05-16T18:58:04 | 367,949,711 | 0 | 0 | null | 2021-05-16T17:50:17 | 2021-05-16T17:50:16 | null | UTF-8 | Python | false | false | 2,390 | py | from jsonrpcclient.requests import Request
from requests import post, get
from decimal import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5 import uic
import sys, getopt, argparse, json, time, getpass, os.path
from util import *
from config import *
def ... | [
"ben.d.abraham@gmail.com"
] | ben.d.abraham@gmail.com |
7c7ec50d29b03c3642ab2ceba8b96c4be5487afb | 669e9241b02bdaa303fbc2fd4023b90d4d179a59 | /Basketball Scoreboard/challenge1.py | 72070c13f348ee839784ae72678555d7d2e7e973 | [] | no_license | benjaminpotter/HatchProjects | 0854cf46ae7c3781468116a5d63b703dd54ae68c | 7f6a948d3474c755d071751b725c059e6c7f3553 | refs/heads/master | 2022-01-28T16:58:03.449073 | 2019-08-16T13:47:30 | 2019-08-16T13:47:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | def setup():
size(400, 400)
threePoint = 0
fieldGoal = 0
freeThrow = 0
def drawScoreboard():
global threePoint, fieldGoal, freeThrow
background(0, 0, 0)
noFill()
stroke(255, 0, 0)
rect(30, 337, 110, 34)
rect(155, 337, 110, 34)
rect(278, 337, 116, 34)
fill(255)
textSize(22)
... | [
"reactiveneon@gmail.com"
] | reactiveneon@gmail.com |
f2da7757695997c51c9de4f489b7d3c00f52f014 | a6a7ade8086f7137bc30001fb3a882dcda4d84d5 | /121. Best Time to Buy and Sell Stock 2.py | 517c1559084c900dfba259feca8a1d94d8821493 | [] | no_license | kartikb7/LeetCode | 389ea67409beb2a3bbd990d89e9d96b150b6ad0d | 62ea0c940a5b36ca58b3e8a5a5a39be97088269f | refs/heads/master | 2020-11-25T03:09:03.988856 | 2020-07-10T17:00:47 | 2020-07-10T17:00:47 | 228,472,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | class Solution:
def maxProfit(self, prices: List[int]) -> int:
max_P = 0
low = 999999
for price in prices:
if price > low:
profit = price - low
if profit > max_P:
max_P = profit
else:
low = price
... | [
"kartikbansal007@gmail.com"
] | kartikbansal007@gmail.com |
42d8299937567087b6cb064aff12ef0812305445 | e0a3050ba6c87f3f180505cc1d8e1b2bd69d0f62 | /Notes/Lecture 5 - Tuples and Lists/oddTuples.py | 3271e891eeef34657fb413e1c87931611bfc6c5b | [] | no_license | P450/MIT-6.0001x | 7ddab872de5da67551bcc9f3c59227cf9e0ed317 | 8985289a047dcc42bce96d9b8a4535bf71032b51 | refs/heads/master | 2020-03-28T16:32:45.044744 | 2018-09-13T23:05:50 | 2018-09-13T23:05:50 | 148,706,202 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Nov 10 15:28:57 2017
@author: Jae You
Write a procedure called oddTuples, which takes a tuple as input, and returns
a new tuple as output, where every other element of the input tuple is copied,
starting with the first one. So if test is the tuple ('I', 'am', 'a', 'test', '... | [
"27456372+P450@users.noreply.github.com"
] | 27456372+P450@users.noreply.github.com |
8d0a04ca9094ab279081e20ae900e1d10d2bfe8a | 34fffaa3bc670abb8700da0c521bafcfdce15ea4 | /float_func/steps.py | f839de125bf95533641fab71c70669ab74cc8345 | [] | no_license | julialhk/leds-seq-creator | ac111bac63dc131719816e09df907bcd251e1515 | 35d588c74f826628708ffcb2f159e346e31b5e27 | refs/heads/master | 2020-11-24T14:34:33.593417 | 2019-12-22T16:27:01 | 2019-12-22T16:27:01 | 228,195,512 | 0 | 0 | null | 2019-12-15T14:14:34 | 2019-12-15T14:14:33 | null | UTF-8 | Python | false | false | 559 | py |
class StepsFloatFunc:
def __init__(self, num_of_steps, value_diff, initial_value):
self.num_of_steps = num_of_steps
self.value_diff = value_diff
self.initial_value = initial_value
@classmethod
def from_timing(cls, timing, diff = 0.25, initial_value = 0.0):
return cls(timin... | [
"amirgiraffe@gmail.com"
] | amirgiraffe@gmail.com |
d2d896e33f071613f54f7316003d94779c5ad272 | 201238828ce40894d0523d6a25f6b5516ac0cd1d | /lab3/test.py | c273afacdef3a9ad40a0b2e2225c2a1471abecbc | [] | no_license | Kaskere/zuters-lab | 992d4510ff8d39fe10f6203660d33d16f04f569a | e75a7f5d9dab7f9f94c204703f548d0911f02428 | refs/heads/master | 2022-03-07T11:26:55.457878 | 2013-04-08T21:39:19 | 2013-04-08T21:39:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,385 | py | import os
import numpy
def test():
import lab3
lab_root = os.path.dirname(__file__)
numpy.set_printoptions(precision=3, suppress=True)
print "--------------------------------------------------------------------------------"
print "----------------------------------LAB3-----------------------------... | [
"emils.solmanis@gmail.com"
] | emils.solmanis@gmail.com |
08b01af01392cb5b5e0ab0605c707494fea4e10e | 05c9f1af21a698e09f7ec37a075624250e907262 | /samples/cloud_loadbalancers/session_persistence.py | 65361528513dff78dabf813b885ccaf5a90b79a5 | [
"Apache-2.0"
] | permissive | pycontribs/pyrax | 5f5a1d6816f5a831b1ae4b74ffaf438a1c0269a6 | 2397136b75e6fcc906ee406e9c1bc7aaef94387a | refs/heads/master | 2023-08-28T16:43:21.037208 | 2022-09-21T15:14:38 | 2022-09-21T15:14:38 | 5,975,139 | 10 | 27 | Apache-2.0 | 2021-07-12T21:23:11 | 2012-09-27T01:05:57 | Python | UTF-8 | Python | false | false | 1,492 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c)2012 Rackspace US, 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.ap... | [
"ed@leafe.com"
] | ed@leafe.com |
e16744594394b55d918f30bbdab8881dc469c519 | b359bff916008fac8581175ff3848e4fbed45179 | /frequency.py | 5399d1e73bd489952dce333a5ab2bb8cf1622ec8 | [] | no_license | hongcho7/Python-Snippets | ace08dbf029bd3fc7db81c90f383a7f24faca65c | ea7e8e486fd13ceea2a583e996d2289f77ef01b7 | refs/heads/main | 2023-06-04T19:44:22.676268 | 2021-06-22T14:57:45 | 2021-06-22T14:57:45 | 378,991,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # finding frequency of each element in a list
from collections import Counter
my_list = ['a','a','b','b','c','d','d','d','d','d']
count = Counter(my_list)
print(count)
# Counter({
'd':5,
'b':3,
'a':2,
'c': 1})
print(count['b'])
# 3
pirnt(count.most_common(1))
[('d', 5)]
| [
"alex0114@naver.com"
] | alex0114@naver.com |
54428d50317cd7680a740ae8e5227d8a8980beea | 9f9076ef4e6c41b327d78bc6dc0d5bbc0d194a57 | /OOPs In Python/Operator Overloading.py | 16a2376459c8e44452f11863d6ca87150503907d | [] | no_license | bnitish101/Python-Practice | d6ca0103438159c389d2e605c357275998b344dc | b864d54e47396cfdcf87270146309c3cd6a918c8 | refs/heads/master | 2021-02-15T20:34:44.904051 | 2020-04-05T19:33:15 | 2020-04-05T19:33:15 | 244,200,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | class Student:
def __init__(self, m1, m2):
self.m1 = m1
self.m2 = m2
def __add__(self, other):
m1 = self.m1 + other.m1
m2 = self.m2 + other.m2
s3 = Student(m1, m2)
return s3
def __gt__(self, other):
r1 = self.m1 + self.m2
r2 = other.m1 + othe... | [
"35606236+bnitish101@users.noreply.github.com"
] | 35606236+bnitish101@users.noreply.github.com |
38f215aeb9d06b4cd61b0ff7ebf69ff0eac92ac6 | 228dd278c875b9539908afffefcfe5b130a28a62 | /v2/src/code/verification/measure_service/measure_verify.py | 4ee6c5907c23cf9f2d2318a7f5dfc98dd2d27642 | [] | no_license | sheriefvt/MARS-services | 57d9ca81f1f606ca8a8938e75b41fb806a36f8b9 | a5f6b6140b0c8a30cd083a41a465f0bc999017a1 | refs/heads/master | 2021-04-30T12:50:53.156082 | 2018-02-13T02:06:11 | 2018-02-13T02:06:11 | 121,283,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | import filecmp,requests,time
import ConfigParser,io
print 'Start verification testing for network measure service'
with open ('mars.config', "r") as myfile:
data=myfile.read()
config = ConfigParser.RawConfigParser(allow_no_value=True)
config.readfp(io.BytesIO(data))
server = config.get("MARS_config... | [
"sherif@cos.io"
] | sherif@cos.io |
61da79106d0b6d352e14ce5514b9aec1b7a2251c | 1201c529057e3e69072d2fbc3ceb59be54dcc2ff | /Assignment_6.5.py | a0f5e96dfcdbbee42799e433fe419aeda6b86c5c | [] | no_license | TheChandaChen/github-upload | d02b54f190bd8cdb5adc4f14abecb3429e29a0e5 | d5a463ce2cc47d1a27870afc528b6f61d2b97ce1 | refs/heads/master | 2022-11-12T02:45:36.221822 | 2020-06-28T03:58:38 | 2020-06-28T03:58:38 | 275,484,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | text = "X-DSPAM-Confidence: 0.8475";
cpos = text.find(':')
numtext = len(text)
num = text[cpos+1 : numtext]
numfinal = num.strip()
finalfloat = float(numfinal)
print(numfinal)
| [
"TheChandaChen@gmail.com"
] | TheChandaChen@gmail.com |
73463d8bd35a06a80126bfb0fd095daeac78fe2a | a13fa33ed25f8556722eaa543d4db55350282764 | /database/database.py | 5d49827330d15ca4bb1c88c5ef62ef319d3897e8 | [] | no_license | Vytautasragaisis07/database_one_to_one | 7b7407fb96d423ef817faaa3a43bfb1ae3c29a0c | bfd08e78f6cb32a40e49309044eb770c13f62813 | refs/heads/master | 2020-11-24T23:18:22.196318 | 2019-12-16T12:39:35 | 2019-12-16T12:39:35 | 228,383,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,949 | py | import sqlite3
from customers.customer import customer
from customers.transaction import transaction
def open_connection():
connection = sqlite3.connect("customers.db")
cursor = connection.cursor()
return connection, cursor
def close_connection(connection, cursor):
cursor.close()
connection.clos... | [
"moksleivis@KITM.local"
] | moksleivis@KITM.local |
e87991ceb39fddf4a9b31d6375b7faf965e740ce | 881f9d77497bfe7d079fce75f313e2f81ea845fe | /stockweb/Lib/site-packages/streamlit/elements/text.py | 72d1a59a905eb260e2d10ffa913f06ebf31a7948 | [] | no_license | CollatMK/stockwebapp | 5674b56434bfe081edb2db9a047a890535aeaf1d | 294828c40ee45fc1a0694e39c5b79acfa3335a92 | refs/heads/master | 2023-06-07T01:54:08.760408 | 2021-06-18T05:10:07 | 2021-06-18T05:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | # Copyright 2018-2020 Streamlit Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"yyc95317@outlook.com"
] | yyc95317@outlook.com |
fae959446735dbc58472cf7a01d309d96b121fec | 0779982f27f2bc1b5481c96449e59cf64dd2cdc3 | /DSRevision/Anagrams.py | 78d4656163e1639593633bcab639d0650df6953b | [] | no_license | meghaggarwal/Data-Structures-Algorithms | 2c06839a8f492120080898cef29b9ceb12caf008 | 368009eb7c38ae0e29a70fa360ee84841d1273b3 | refs/heads/master | 2023-03-09T23:51:55.838135 | 2021-02-24T09:40:25 | 2021-02-24T09:40:25 | 265,654,231 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | Given two strings s1 and s2, check whether s1 and s2 are anagrams or not.
i/p - abcd adcb
o/p yes
app - XOR
- hashing
- sort ( O(nlogn)) | [
"meghaa.2703@gmail.com"
] | meghaa.2703@gmail.com |
93d6b00bdbbb4ab3e4740d1dab84fae78dfa36fd | 0bf6b634267f02c04c6fb4ab276b26498cde8ca4 | /venv/bin/django-admin | 1d2f555d8d22bb879427dbf4aa6bb2d7af98a7d5 | [] | no_license | danielmcv/Paynom | dde328fbdf818b35b1004372304d40f3663b10a5 | 5b489ab8b66bd8d0693af0ad0ad69df05a6993d0 | refs/heads/master | 2021-01-10T12:47:57.607374 | 2015-10-04T16:55:24 | 2015-10-04T16:55:24 | 43,643,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | #!/home/daniel/Documents/Paynom/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"daneil625@outlook.com"
] | daneil625@outlook.com | |
58543a9fb220ac7f1e3df6aa78a0e6d2c948efa0 | 9f675f1d305385bbe81eb337b1126624f26fcca0 | /hey.py | 9f5969bdefdb8027944b1e8c4587e36d60fb1caf | [] | no_license | Kelta-King/QR_Code_Scanner_Python | ca058e748a03d6de6190531a9aef9f20226368e1 | 9ecc91894ba14890da651ee264b465a4fd61276d | refs/heads/main | 2023-08-28T10:27:34.435586 | 2021-10-25T12:36:57 | 2021-10-25T12:36:57 | 419,175,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | print("Yoman") | [
"kushangshah@Kushangs-MacBook-Pro.local"
] | kushangshah@Kushangs-MacBook-Pro.local |
f7bbe2a81a48f0b05b5f743828f9bd981e81ca9f | 572e171127f3e25a2a919ac5e3cf1cdb18746ead | /billingdashboard/dashboards/project/invoices/tables.py | f1859ec36bf3db587ee80551eeb9e29de4fd9095 | [] | no_license | sreenathmenon/mbtest | d01a1b15d2b0d7795b8976028591af5e762fc95e | 9b78c9b851c8e3b65dcf0f7450330fdbdac89a7c | refs/heads/master | 2021-05-16T04:26:31.039756 | 2017-10-06T16:32:33 | 2017-10-06T16:32:33 | 106,026,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | #
# Copyright 2017 NephoScale
#
from django.utils.translation import ugettext_lazy as _
from horizon import tables
class UserInvoiceListingTable(tables.DataTable):
id = tables.Column('id', verbose_name=_('ID'))
inv_code = tables.Column('inv_code', verbose_name=_('Code'), \
link="horizon:pr... | [
"sreenath.mm@poornam.com"
] | sreenath.mm@poornam.com |
67e621ecfca50542026a0bc3eba12f59122ad3b5 | efd3564def48ae6e5fff6068da21fc61f88486ee | /iam/models.py | fe44011c6227b49f36f6ae826fa39489099e4904 | [
"MIT"
] | permissive | druuu/IAM-Manager | 0c4e4f75879d44f4519e3c4655778f532e4455cb | 5ed542ed52ff6e18ea70122510fc9d5e6998159d | refs/heads/master | 2021-01-16T19:18:10.412258 | 2016-05-12T10:02:14 | 2016-05-12T10:02:14 | 58,738,368 | 0 | 0 | null | 2016-05-13T12:29:36 | 2016-05-13T12:29:36 | null | UTF-8 | Python | false | false | 115 | py | from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
| [
"ashwin@micropyramid.com"
] | ashwin@micropyramid.com |
615ec213d76bfcbfaceae7f75787b8ba491393cd | 9806e10f82b0bfbf39fa7661461298062174e23d | /wsgi.py | 19d4ebcab5e427631151d52e4e3a8ae93ba7583d | [] | no_license | rongshengqin/loveweb | 2e64efe09d71a56521ff569413c6516f093db108 | 09331c6794c084fe02f4ff1c5e8417edb7fea5b2 | refs/heads/master | 2021-07-16T14:12:26.802548 | 2017-10-16T12:34:35 | 2017-10-16T12:34:35 | 107,124,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | #!/usr/bin/python
import os
from flask_app import app as application
#
# Below for testing only
#
if __name__ == '__main__':
from wsgiref.simple_server import make_server
httpd = make_server('localhost', 8051, application)
# Wait for a single request, serve it and quit.
httpd.handle_request()
| [
"basicqrs@163.com"
] | basicqrs@163.com |
7ff4f342c296f14581f59bf952c57db0709b0254 | 0cc4eb3cb54f8394c127ace62d3108fdb5230c85 | /.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/third_party/2and3/Crypto/PublicKey/__init__.pyi | 26410a457f1a06184022094247938b2894f9cbe2 | [] | no_license | jacobmerson/spack-develop-env | 5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8 | 5fca20ca343b1a76f05fc635c87f94ed25417d94 | refs/heads/master | 2022-07-04T02:22:50.264727 | 2020-05-06T05:13:50 | 2020-05-06T05:13:50 | 261,657,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | pyi | /lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/third_party/2and3/Crypto/PublicKey/__init__.pyi | [
"mersoj@rpi.edu"
] | mersoj@rpi.edu |
b7534815b8c7ad1a7cabc452db9d215c18d77d0b | 6fff01f73a579426442dd404c2f60b02228a1c2c | /0314/위장.py | 93193f624dab6832f0182d7226529ced2b9273f2 | [] | no_license | ohhhhmy/OhGongCo | 2e841e0b93d9ff467b1ba49c93f53ef4735e3188 | 61be96ca66b241db380798e7d942c943dd49fa33 | refs/heads/main | 2023-04-27T20:16:45.840964 | 2021-05-13T12:40:48 | 2021-05-13T12:40:48 | 345,608,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | def solution(c):
from functools import reduce
dic = {}
for wear in c:
stuff = wear[1]
if stuff not in dic:
dic[stuff] = 1
else:
dic[stuff] += 1
count = [i + 1 for i in dic.values()]
answer = reduce(lambda x, y : x * y, count)
return answer ... | [
"dmsdh316@naver.com"
] | dmsdh316@naver.com |
570cc838272c8d6af88062cc6f7e249fd0b36979 | ea57ef44636ce151b3ef5322466cdfcb02482515 | /pendulum/constants.py | abc6ec06eacd7553dcf6ee58a8d094672a79966c | [
"MIT"
] | permissive | Sn3akyP3t3/pendulum | acb3dc5067576c4569a08b1d8a8ecfce918b4724 | 7ce170bdc64199d74e09e347402983f1bb015f63 | refs/heads/master | 2020-03-22T01:15:01.160870 | 2018-07-01T15:49:09 | 2018-07-01T15:49:09 | 139,292,657 | 0 | 0 | MIT | 2018-07-01T01:46:00 | 2018-07-01T01:46:00 | null | UTF-8 | Python | false | false | 2,836 | py | # The day constants
SUNDAY = 0
MONDAY = 1
TUESDAY = 2
WEDNESDAY = 3
THURSDAY = 4
FRIDAY = 5
SATURDAY = 6
# Number of X in Y.
YEARS_PER_CENTURY = 100
YEARS_PER_DECADE = 10
MONTHS_PER_YEAR = 12
WEEKS_PER_YEAR = 52
DAYS_PER_WEEK = 7
HOURS_PER_DAY = 24
MINUTES_PER_HOUR = 60
SECONDS_PER_MINUTE = 60
SECONDS_PER_HOUR = MINUT... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
1829819e1f2f2797abdc8b88dd33133975b014e7 | 762faf17ae39ac7121c9ebc8964265052f2f724f | /summativeAPIproject.py | 7332d94eaa18ace5b42bfb75df45716a990d8318 | [] | no_license | arodrrigues/Y10Design-PythonAR | d00921c239010d511e9dd9e703e50183a71db3f1 | 4701bea0c5ef47269c2d390356d2b6f529edda9f | refs/heads/master | 2020-07-23T14:21:07.248989 | 2020-05-30T13:46:25 | 2020-05-30T13:46:25 | 207,589,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,345 | py | # Eli Preston
# Upper Canada College
# This program displays the stock closing prices of APPLE from 2014 to 2019 in a bar graph using Chart js.
import requests
import json
import pprint
def writeHTML(data, closingPrices, dates):
myfile = open("copy.html","w")
myfile.write("""
<!DOCTYPE html>
<h... | [
"andrew.rodrigues@GCCYJTB8J1WK.local"
] | andrew.rodrigues@GCCYJTB8J1WK.local |
ad2c09304c77568abc578168dc811c48b5904970 | 439f2d5a345b1714391b333848b7266a0ea2059d | /mediacrush/processing/invocation.py | ed15a6a29f19fc2222484dd8c222b4d452e020d3 | [
"MIT"
] | permissive | SuperTux88/MediaCrush | a7c9c9097af1a2f1822cf59bc9fa80affadff256 | 79ae752462febbc031f7a179371970846ccf46a7 | refs/heads/c4c | 2021-01-17T16:16:13.312596 | 2016-09-19T16:45:50 | 2016-09-19T16:45:50 | 51,722,135 | 1 | 2 | null | 2016-06-16T02:47:26 | 2016-02-15T00:58:53 | JavaScript | UTF-8 | Python | false | false | 1,097 | py | from mediacrush.config import _cfgi
import os
import threading
import subprocess
class Invocation(object):
crashed = False
exited = False
stdout = None
process = None
args = []
def __init__(self, command):
self.command = command
def __call__(self, *args, **kw):
self.args ... | [
"jose.manuel.diez@gmail.com"
] | jose.manuel.diez@gmail.com |
f0d3c7b7002e07ed6121cc88556e16022241444a | 9444ba23799124a73570df4359673887be390649 | /neutron/api/rpc/agentnotifiers/metering_rpc_agent_api.py | dfecbaff8ef5dabd0fca1a9c58d1849bc518bcb3 | [
"Apache-2.0"
] | permissive | snabbco/neutron | fe400b57591c0f9c835494b80425d67e00668340 | a657c06d10f2171149c6b1863df36522bdc11cd7 | refs/heads/master | 2021-01-17T11:12:53.555048 | 2014-05-27T09:05:00 | 2014-05-27T09:05:00 | 20,214,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | # Copyright (C) 2013 eNovance SAS <licensing@enovance.com>
#
# Author: Sylvain Afchain <sylvain.afchain@enovance.com>
#
# 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.apach... | [
"sylvain.afchain@enovance.com"
] | sylvain.afchain@enovance.com |
b158359e453a4747612cafc96d190ba0bf906382 | b3436d9bd89f38e1e540cb5d9e2770126292f63d | /apps/users_app/migrations/0001_initial.py | c9aac3e9a50780a12d336963b180483bd86cb1ef | [] | no_license | stereotypestudio/python_belt | bc46189698aff3876fd082082aed19e0da5e3cdb | 176813adf6a6b55ed54c7e4e9e2886c2f13a1b86 | refs/heads/master | 2020-03-21T08:28:57.540146 | 2018-06-26T21:56:07 | 2018-06-26T21:56:07 | 138,346,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | # Generated by Django 2.0.6 on 2018-06-21 17:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
fields=[
('id', models.AutoField(aut... | [
"chris@stereotype.studio"
] | chris@stereotype.studio |
1e1d7ca3bfe15837aaed003514b62088a040f6d2 | 868ac4e558cf5fe945e8b557564f34f79b3ad01e | /purity_fb/purity_fb_1dot11/models/snmp_agent_response.py | 3eb0a329ee36e940b618e7040ff1ee601a4825ff | [
"Apache-2.0"
] | permissive | mabdelhafez/purity_fb_python_client | f4253ce8497fb3cff648e0a0cd1e567f48129fa7 | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | refs/heads/master | 2022-04-20T09:24:22.031408 | 2020-04-20T22:11:32 | 2020-04-20T22:15:44 | 257,372,596 | 0 | 0 | NOASSERTION | 2020-04-20T18:40:24 | 2020-04-20T18:40:23 | null | UTF-8 | Python | false | false | 4,171 | py | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.11 Python SDK
Pure Storage FlashBlade REST 1.11 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.11
Contact... | [
"mabdelhafez@purestorage.com"
] | mabdelhafez@purestorage.com |
eed318c659a03a362eea57886adeb8f9edd97292 | a682419ca9862ff33b18a30a7599ad64f892e24d | /modules/selenium/webdriver/chrome/service.py | c8d810b5dfe0c7d3d90b4b9bc95b4527e2f234ba | [] | no_license | lasanjin/corona-swe | 1dd3449a973fa9ece0fc39b125235ea0b31a7069 | ad21a7e717d666fa679aa5896e24138dcddfead4 | refs/heads/master | 2021-05-18T17:28:09.292155 | 2020-06-08T21:42:53 | 2020-06-08T21:42:53 | 251,337,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | # Licensed to the Software Freedom Conservancy (SFC) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The SFC licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"sanjinslavnic@gmail.com"
] | sanjinslavnic@gmail.com |
e40b4d81eb1aa444efa9cde6f36a97adeaf6647e | 2ffd74028fedf428eb8715481bd9d35a74f10a67 | /mqtt.py | c6da79512dafefd45df999813c3d44aa6233a5e3 | [] | no_license | msgarbossa/micropython-motion | 2274be15b41be31869811edaa2f90c9b505e4d54 | b300e7920b5b88a355559a077ab03c6ecae0abae | refs/heads/master | 2023-09-01T13:52:55.429910 | 2021-10-20T07:41:09 | 2021-10-20T07:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,563 | py | #!/usr/bin/env python
#
# Copyright (c) 2019, Pycom Limited.
#
# This software is licensed under the GNU GPL version 3 or any
# later version, with permitted additional terms. For more information
# see the Pycom Licence v1.0 document supplied with this file, or
# available at https://www.pycom.io/opensource/licensing
... | [
"mikeysky@gmail.com"
] | mikeysky@gmail.com |
f213cfeb3a3b12d830a7ed6f016c30b084eb2a83 | ae58484571f1b59597f3117290165e1d9567b66f | /ciscoise/session.py | a448591ddff9be3b0092df3c2f125eac56fdfa2c | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | ironbow/ise-guest-migrator | 2a447611433889bfda83f2d37ff0a924dc158a0f | 9174256cc6cbe527efa4e791c6cbeae915a6d1da | refs/heads/main | 2023-01-13T18:00:57.698591 | 2020-11-05T20:44:45 | 2020-11-05T20:44:45 | 310,044,624 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,803 | py | import requests
import urllib3
from urllib.parse import urlunsplit, urlsplit, urlparse, urlunparse
import logging
from datetime import datetime
import base64
from .exception import *
import json
urllib3.disable_warnings(category=urllib3.exceptions.InsecureRequestWarning)
class ISESession:
def __init__(self, host... | [
"rn.wolfe@gmail.com"
] | rn.wolfe@gmail.com |
5f19b9e9eef1e03ce82f8dfb3727ba1dd24319a9 | 9272342e3534b55df42b602d66d3911d68917a30 | /config/config.py | 66a01fe6861d9ffc2b57bc11ab211841c9351f73 | [] | no_license | andwenj/api_test | 1bbf67e2745df04db676e0aa0765090d03f2b7f8 | 353f25511787323fbd9f3d061806d71c69276f3b | refs/heads/master | 2020-08-28T13:37:03.515573 | 2019-10-26T13:44:54 | 2019-10-26T13:44:54 | 217,714,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | import logging
import os
import time
from optparse import OptionParser
today = time.strftime('%Y%m%d',time.localtime())
now = time.strftime('%Y%m%d_%H%M%S',time.localtime())
#项目路径
prj_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) #当前文件的绝对路径的上一级,__file__指当前文件
#print(prj_path)
data_path = os.pa... | [
"andwenj@163.com"
] | andwenj@163.com |
20af6159a4e989bb6fb819cb1c6e743c8371ff32 | 38da8ba7915335eb39c59cab24d79f22b2b3b7a3 | /preProcess.py | d580e702413cda1f13d872b24495e8996effa22e | [] | no_license | rafiparvez/ReceiptRecognizer | 25869f2036f95e7c62f29cfa887b85e19dcbfef2 | bbb9c103194c84081aa0dab2ba7311d62a414573 | refs/heads/master | 2021-01-19T20:48:38.000082 | 2017-07-12T14:00:57 | 2017-07-12T14:00:57 | 88,557,419 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,525 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 14 20:40:40 2017
@author: rafip
"""
import cv2
import numpy as np
from cv2 import boundingRect, countNonZero, cvtColor, drawContours, findContours, getStructuringElement, morphologyEx, rectangle, threshold
def resize(image, width=None, height=None):
'''
retur... | [
"Parvez Rafi"
] | Parvez Rafi |
63d81133a9343fd0e2eae01d936b968703860d0c | e0c257a6846ffac4303a733ba2420cfc1dc7526b | /src/167. 两数之和 II - 输入有序数组.py | e5f89c0b4a7d19ff1deee1bba5619eb77d01c83e | [] | no_license | Hanlen520/Leetcode-4 | 1d21112e23d8a782e0bfe82d3b1cc216fc1ef350 | 389e004052ba2c0951ffd66af97ac368f7de84d4 | refs/heads/master | 2022-03-31T21:48:49.675426 | 2020-01-06T17:21:45 | 2020-01-06T17:21:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | """
给定一个已按照升序排列 的有序数组,找到两个数使得它们相加之和等于目标数。
函数应该返回这两个下标值 index1 和 index2,其中 index1 必须小于 index2。
说明:
返回的下标值(index1 和 index2)不是从零开始的。
你可以假设每个输入只对应唯一的答案,而且你不可以重复使用相同的元素。
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/two-sum-ii-input-array-is-sorted
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
"""
# 不要陷入定式思维,这道题就不用二分法了,直接用双指... | [
"bjwu@zju.edu.cn"
] | bjwu@zju.edu.cn |
1f7b6def21e40adfe79bd98cba4af1591bc4eb81 | e9c497e382d3e499c6391efd4c9a56707e928145 | /mfti/robot-tasks-master/task_13.py | f001f7ca00c1d4293d6615b5e321db4969526051 | [] | no_license | pavelpianov/python_learning | b1520314b9d4c285f1a6c7624103fc52bdaa669e | b2f772d1a39dcb0890b831a47b94440417741388 | refs/heads/master | 2023-08-05T15:28:08.898758 | 2021-09-18T10:44:53 | 2021-09-18T10:44:53 | 268,367,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_8_10():
while True:
if not wall_is_above():
move_up()
fill_cell()
move_down()
if not wall_is_beneath():
move_down()
fill_cell()
move_up()
if wall_is_on_the_right():
break
move_right()
if __name__ == '__main__':
run_tasks()
| [
"x14303@gmail.com"
] | x14303@gmail.com |
4bbe3e0c935cc8f119518f4af3c33d8bc99c5ace | ff1daac1ebac7a2cb03d717a189fe1edf3f4e4c2 | /Lecture 16. PsychoPy 5- Getting Responses/posner-master/resaveData.py | b2cb2d91992dfb1f8260f6e003284eefa93486f4 | [
"MIT"
] | permissive | hejibo/Python-for-Psychologist | bf17c50c49cced2f6933ab3337d6a0c52eb508ed | 0ef5a2a618b30b87ecb390757c456681957b313c | refs/heads/master | 2021-01-12T17:06:19.364305 | 2016-12-07T21:54:18 | 2016-12-07T21:54:18 | 71,505,777 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | """This is not a particularly useful example of saving out
csv files from a set of psydat files
"""
from os import path
from psychopy import misc, gui
#select some files to use
filenames = gui.fileOpenDlg(allowed="*.psydat")
#loop through the files
for thisFilename in filenames:
#get a new name
fileNoExt, fil... | [
"hejibo12"
] | hejibo12 |
1f92b497581e4a6ccd8b4449b7ac74696b9d2aa2 | 0fd6478325937f0f7ff6d6000e95789d43609c74 | /Sensors/klasseknop.py | f364d24a0edc0cf0d7d7109451593c95e900b107 | [] | no_license | StijnVandendriessche1/testProject3 | 88069b83571f02c5a16993bb7de8585475012f6b | b0e20d63c71ef980716b54901f041dacf6fd3954 | refs/heads/master | 2022-10-27T04:45:10.519424 | 2020-06-16T17:01:12 | 2020-06-16T17:01:12 | 272,765,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
class Button:
def __init__(self, pin, bouncetime=200):
self.pin = pin
self.bouncetime = bouncetime
GPIO.setmode(GPIO.BCM)
GPIO.setup(pin, GPIO.IN, GPIO.PUD_UP)
@property
def pressed(self):
return not GPIO.input(self.p... | [
"stijnvandendriessche@live.be"
] | stijnvandendriessche@live.be |
f58aa90421646a81d8717aae9a15bf1b420faea3 | de8b648307048bc876e83dbee1e52d506410f91e | /cloudferrylib/scheduler/base/end_task.py | 8bb911eed419eaa20de92a4ee09aa0c3e429a4ac | [
"Apache-2.0"
] | permissive | roman-verchikov/CloudFerry | 2ee4277800bd0a444553dd78b17270a0b4051111 | 2fddb39d92991b23c056dcd1731147a32b0c5190 | refs/heads/master | 2021-01-20T15:36:47.523757 | 2015-09-13T20:35:37 | 2015-09-13T20:35:37 | 31,447,965 | 0 | 0 | null | 2015-02-28T02:22:09 | 2015-02-28T02:22:08 | null | UTF-8 | Python | false | false | 782 | py | # Copyright (c) 2014 Mirantis Inc.
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, so... | [
"dsozinov@mirantis.com"
] | dsozinov@mirantis.com |
ae8bcbd91e18849dee40f6016e0e7a7dfea122e1 | be977244110a9c9cadb6c782bc4ba60590b3fd33 | /etl.py | cf1a94544b937cddbc10bf4d4d1843d1cbd51804 | [] | no_license | ra2w/saas_benchmarking | 3f0a90fe5f1337209d9df18b9150a04b0ecf5309 | c433c86827375ac264ecdafb4b8e635f548870e5 | refs/heads/main | 2023-03-19T10:57:01.559713 | 2021-03-09T22:08:10 | 2021-03-09T22:08:10 | 340,752,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,621 | py | import datetime
import numpy as np
import pandas as pd
import streamlit as st
global cols
cols = ['date',
'arr__m',
'subscription', 'services',
'total_revenue', 'current_quarter_revenue_growth', 'growth_persistance', 'cost_of_revenue', 'gross_profit',
'gross_margin', 'research_&_develo... | [
"rar204@gmail.com"
] | rar204@gmail.com |
02d4546366ff27ec3f6a6505edd0f005e0734383 | 24eaa6d8e3bffdf2d91b5b8222754c94866be6ba | /asteroids.py | 0042de77aaa92c125d737865e6c9b0b7b97ab48a | [] | no_license | KosPavel/tkinter-asteroid-game | b999425d92e6f001403ca119d62de66c8fe8f215 | 73febf4b8b22acdcbc2e29fe95ef378b1ec45012 | refs/heads/master | 2020-03-27T05:37:29.018118 | 2018-09-22T15:44:58 | 2018-09-22T15:44:58 | 146,035,804 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | import math
import random
import time
import settings
class Asteroids():
def __init__(self, root):
self.MIN_SIZE = settings.min_size
self.MAX_SIZE = settings.max_size
self.MIN_SPEED = settings.min_speed
self.MAX_SPEED = settings.max_speed
self.MAX_ASTEROIDS = settings.max_... | [
"kos.pav007@yandex.ru"
] | kos.pav007@yandex.ru |
8eb0f921dc96106e3a1a6627b000ea2b25e818ce | 6bd28b019557ff86e6848af0d0e14bf6feb630c9 | /tpe6.py | f82e20129dc5396e5ee9c5595db5c9ac7b9563e8 | [] | no_license | dejalar/MOPE_lab6 | b34b62394cdb10539fa36e7c60c011c9b73c02f7 | 743c74b9441f6279bd050e8429e45c700475cca0 | refs/heads/main | 2023-05-02T12:01:40.558807 | 2021-05-22T15:30:48 | 2021-05-22T15:30:48 | 365,840,334 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,496 | py | import math
import random
from _decimal import Decimal
from itertools import compress
from scipy.stats import f, t
import numpy
from functools import reduce
import matplotlib.pyplot as plot
def aboba():
def regression_equation(x1, x2, x3, coeffs, importance=[True] * 11):
factors_array = [1, x1, x2, x3, x1... | [
"noreply@github.com"
] | dejalar.noreply@github.com |
fea971baa87aa9357bfde53b3915b5e65cd81b2d | 0f2f57a52f35acee03ba288fe5466104e8fc2d8f | /newsite/authentication/apis/serializers.py | fdf1c6832b2f0773cccb5dc189507bd29f8a3050 | [] | no_license | PratyushAdhi/NewsSite | 3c8bc19d156f4e434f351047f25cee08d9ef38ee | de7f0771116a7185256c58edcf4fdb424f253926 | refs/heads/master | 2023-01-19T11:17:33.201771 | 2020-11-05T17:57:43 | 2020-11-05T17:57:43 | 299,095,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,393 | py | from rest_framework import serializers
from rest_framework.relations import HyperlinkedRelatedField
from rest_framework.serializers import HyperlinkedModelSerializer
from rest_framework.exceptions import AuthenticationFailed
from django.contrib import auth
from django.contrib.auth.tokens import PasswordResetTokenGenera... | [
"pratyushadhikary@hotmail.com"
] | pratyushadhikary@hotmail.com |
5e8638f119913473ddfe3759bb970454693db209 | fe35240eec60ec1288b8b52ff5d0735573ac1650 | /app.py | 4f5c7bebf0112f0ea61ea1009bc4f7560bf59810 | [] | no_license | tvliveapp/server | a679fd68397d0c7a9a64c2ddee1e9e797f9efaf8 | efdbc6fc4f07c42421bb8cab9d9d443881c349cc | refs/heads/master | 2022-11-23T23:38:48.248451 | 2020-02-11T12:32:43 | 2020-02-11T12:32:43 | 276,706,032 | 0 | 0 | null | 2020-07-02T17:20:47 | 2020-07-02T17:20:47 | null | UTF-8 | Python | false | false | 2,597 | py | #!/usr/bin/python
try:
from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer
except:
from http.server import BaseHTTPRequestHandler,HTTPServer
from os import curdir, sep
try:
from urlparse import urlparse
from urlparse import urlparse, parse_qs
except:
from urllib.parse import urlparse, parse_qs... | [
"noreply@github.com"
] | tvliveapp.noreply@github.com |
52890da7dbeb50e2962006085b369e2b130e3485 | f5ffd566166948c4202eb1e66bef44cf55a70033 | /test/test_array_of_role_no_i_ds.py | ce70095d1ed2d0425958c0329fc4b10467e24d33 | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
0686e32a82548111de0af645b2185393ee7e0d2f | cdbd21cbd4e63ba09c584afa84d8076eba71bf22 | /bin/pip3 | f3a55f041643e4eaf7fbd0a221c0cbac52e933e2 | [] | no_license | kmohab71/sorting-techniques-Python- | 030573a1ca04501f1aafafc05b3ca87153b44d9f | 91bd98b957f5cc929c4e12639b690d7ddad6c8ea | refs/heads/master | 2020-03-12T07:33:15.845341 | 2018-04-21T20:21:25 | 2018-04-21T20:21:25 | 130,508,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | #!/Users/khaledmohab/PycharmProjects/heap_lab/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"noreply@github.com"
] | kmohab71.noreply@github.com | |
293ff497bc9c02162313472b028ec2ddb6e186bc | dd7dc458691dcff1b2493c927acd62695c2187c4 | /lib/python2.7/site-packages/envisage/ui/workbench/workbench_plugin.py | 224c2068f00fc03f60552f917b2f9ce3c91fd991 | [] | no_license | stephenosullivan/science | 16e0c7fb441af29810cad630e6187961ad57398e | 164e82df0655337ac4966273d9cc489d002d8987 | refs/heads/master | 2021-03-27T09:52:05.330679 | 2015-07-25T04:51:25 | 2015-07-25T04:51:25 | 39,672,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,048 | py | """ The Envisage workbench plugin. """
# Enthought library imports.
from envisage.api import ExtensionPoint, Plugin, ServiceOffer
from traits.api import Callable, List
# This module's package.
PKG = '.'.join(__name__.split('.')[:-1])
class WorkbenchPlugin(Plugin):
""" The Envisage workbench plugin.
The w... | [
"osullisg@gmail.com"
] | osullisg@gmail.com |
ec8a01cbff8acf166dab0e78c9e78998b27dfe0f | cdea5224f020551fa355859fcc2fb897452ea0a9 | /utils/get_config_params.py | 1551d30218b7511648dc02dc4c15d9400f338508 | [
"Apache-2.0"
] | permissive | Delerik/canvas_drawer | 87855d3a489cf926131930fd335c997e8e045da8 | 93849d5f5086b5c90f36152ca42667208a526ed9 | refs/heads/main | 2022-12-27T03:51:02.094042 | 2020-10-12T00:26:44 | 2020-10-12T00:26:44 | 303,217,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | from configparser import ConfigParser
from .project_utils import get_root_project_path
def config(section: object) -> object:
filename = get_root_project_path()+'/configuration/params.ini'
parser = ConfigParser()
parser.read(filename)
config_params = {}
if parser.has_section(section):
param... | [
"julian.cisneros@appgate.com"
] | julian.cisneros@appgate.com |
3ced9c0df05456c26131ad411b619344290879f9 | ce7694243f5cc8485627f828ef8b1fdd2868f1ff | /students/drovdahl/lesson06/mailroom_4.py | 2af00633d4d72da9dcaa35e8217bc11ae99c75d8 | [] | no_license | UWPCE-PythonCert-ClassRepos/Sp2018-Accelerated | 81c1759ab3313aa2f2ddff84f6f49d08e4b3fe29 | 9eb74ab8dbf1f9075afc1037be32c218eb55a811 | refs/heads/master | 2021-04-15T14:07:37.943693 | 2018-05-23T21:48:34 | 2018-05-23T21:48:34 | 126,766,533 | 0 | 21 | null | 2018-05-27T03:21:19 | 2018-03-26T03:08:31 | Python | UTF-8 | Python | false | false | 7,035 | py | #! /usr/local/bin/python3
'''
simple mail program for non profit
'''
import sys
import os
import pathlib
import datetime
donors = [('Iron Man', [100000, 50000, 1000]),
('Thor', [50, 25, 100]),
('Hulk', [500]),
('Captain America', [30, 40]),
('Nick Fury', [100000, 545, 1000]),... | [
"rdrovdahl@Ryans-MacBook-Pro.local"
] | rdrovdahl@Ryans-MacBook-Pro.local |
b5c47ad20845fee240868b9493629d647740c66c | f8d129c6a135b0df2ebb63a51f0a0319a0f51110 | /sandbox/language-translation-demo/utils.py | 0fa14ff4f68c22fb9b3b85c776c01a4b56ff4197 | [] | no_license | andressamarcal/Deep-Learning-Nanodegree | a82d377756089c6a931a7f156a4576cb4afbd07a | a3f1857d29fe65c1ce47cb07119582aad277918f | refs/heads/master | 2020-05-24T01:13:51.311174 | 2017-08-01T15:29:56 | 2017-08-01T15:29:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # -*- coding: utf-8 -*-
import lxml
import lxml.etree
import requests
class PermanentSMSError(Exception):
"""
Permanent SMS Error
"""
class TransientSMSError(Exception):
"""
Transient SMS Error
"""
class AlpaSMSClient(object):
perm_error = ('403', '408', '414')
"""
403 - Inva... | [
"rafa.reis.novello@gmail.com"
] | rafa.reis.novello@gmail.com |
28d959137d64d0820dbdfa75e9a7fb1599ddf172 | 9aa6a9b601c7e42276b24c04cd23e7ef47a1a796 | /5.py | 6ad2364409906fcad99cce5f055015ef530d15d1 | [] | no_license | davidombosco/EP1 | 536272637a574fc312aa7fca4cc5352cb8bbc115 | 50f604805da416b5ae254e5c7d4ae8a1bcf5ccb7 | refs/heads/master | 2020-03-12T18:16:51.869303 | 2018-04-26T19:46:15 | 2018-04-26T19:46:15 | 130,756,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,061 | py | # -*- coding: utf-8 -*-
# Parte 1: CRIAR ESTOQUES
#estoque = {loja{produto:{quantidade: ,valor: }}}
import json
with open ("dados5.json", "r") as dadosabertos:
dadosprontos=dadosabertos.read()
estoque=json.loads(dadosprontos)
#############################################################################... | [
"noreply@github.com"
] | davidombosco.noreply@github.com |
8c2a06a3a2a23f85178b92df7725bf9d9963c94a | 880ac811c71a70ab311d8b6ec044b6c70c061bb7 | /8.py | a22e83247b8229d7a061f8527ba353788e6261d2 | [] | no_license | RaczeQ/AdventOfCode2018 | e9e6315fb8ef25be866e681ce35f0a12721a2c4d | 2a2629228a03d0caf3f687d27d684485faee320d | refs/heads/master | 2020-04-08T23:56:27.656881 | 2018-12-08T10:04:09 | 2018-12-08T10:04:09 | 159,846,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | from utils import read_input, save_result
from _8.logic import one, two
FILE_NAME = '_8/input.txt'
RESULT_ONE = '_8/one.txt'
RESULT_TWO = '_8/two.txt'
if __name__ == '__main__':
result_one = one(read_input(FILE_NAME))
save_result(RESULT_ONE, result_one)
result_two = two(read_input(FILE_NAME))
save_res... | [
"kar@dsr.com.pl"
] | kar@dsr.com.pl |
a3b8634442e8642b73086964ccbe59c019b77874 | 128812e2b89d06f8da5cf654aaaa9e78a875ced7 | /model/discriminator.py | 65478b539e3d7c68428ab526b5e24bdf90bcc3e0 | [] | no_license | Chenge321/3D-Face-model-reconstruction-combine-with-cycle-GAN | 929fff69d18da08d087bfd39de75f8692ccb2c1d | accf0a85f73c21d41034c0abbb01ddf66d277e31 | refs/heads/master | 2023-02-08T14:48:03.096533 | 2021-01-03T03:24:11 | 2021-01-03T03:24:11 | 318,552,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import torch.nn as nn
import torchvision.models as models
class Discriminator(nn.Module):
def __init__(self):
super(Discriminator, self).__init__()
#in_channels = args.n_colors
resnet = models.resnet18(pretrained=True)
self.resnet = nn.Sequential(resnet.conv1,
... | [
"noreply@github.com"
] | Chenge321.noreply@github.com |
974a21e90468d97356ad39f4202efe6840d95a64 | a31fafd1110f31a2ba8f3bd6c6ead0b71245f795 | /boolop/tree/tree.py | 98eb402dcd8be2fa85ed7bb66e44a024a3b9eae1 | [] | no_license | shengtanmao/Boolean-Operations | 0f56d13642e9732be89d9b0c4b3e04b05d25bc5e | 1ff0e8a4f101516e1b7608e10c4f1c0eb453e0f5 | refs/heads/master | 2022-12-14T00:16:30.398804 | 2020-09-14T14:55:12 | 2020-09-14T14:55:12 | 181,906,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,492 | py | from .node import Node
from ..basic.segment import Segment
class Tree:
def __init__(self,node):
self.root=node
#input: value
#output: node containing the value
def find(self,val):
if self.root==None:
raise NameError("empty tree")
node=self.__findHelp... | [
"maoshengtan2011@gmail.com"
] | maoshengtan2011@gmail.com |
3cab7754e8b3fccdf95c33f381aace4fd8b901aa | 24d8ef05ae0ee86f3be4511dd8d52ba021d4edc3 | /MaximumSumCircularSubarray.py | 7d2a5c47d22b7791dbded2f4985af859d5330eb9 | [] | no_license | Sree-vathsan/leetcode | ce57d03adcb3bdec910037ff7027bb9f67a4a0f4 | 8ccc9011a0021d423ea63ceae3384481fd814a1a | refs/heads/master | 2021-04-15T02:14:17.658092 | 2020-06-22T13:03:25 | 2020-06-22T13:03:25 | 249,286,122 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,814 | py | """
Given a circular array C of integers represented by A, find the maximum possible sum of a non-empty subarray of C.
Here, a circular array means the end of the array connects to the beginning of the array. (Formally, C[i] = A[i] when 0 <= i < A.length, and C[i+A.length] = C[i] when i >= 0.)
Also, a subarray may o... | [
"noreply@github.com"
] | Sree-vathsan.noreply@github.com |
5aa3773961b4396a82398e8848fb3685a0f7c180 | b3ebed1d1d2d0b51498a98ba187f8693ed8e049f | /COMP9318-Project/helper.py | 49b7390b63132d849a6fee84fb70e1a794c8fa5a | [] | no_license | lindsay-unsw/Data-Mining-and-Warehouse | 17e68fbedc883a253e52e8b76a13697a08f26222 | 59b408ed9ebc463e35ebbe372ae6e31c74ed1d6c | refs/heads/master | 2022-02-20T16:08:22.773056 | 2019-08-15T08:44:46 | 2019-08-15T08:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,196 | py | from sklearn import svm
## Please do not change these functions...
class countcalls(object):
__instances = {}
def __init__(self, f):
self.__f = f
self.__numcalls = 0
countcalls.__instances[f] = self
def __call__(self, *args, **kwargs):
self.__numcalls += 1
return sel... | [
"z5143329@student.unsw.edu.au"
] | z5143329@student.unsw.edu.au |
fa6733cb185c67c67b988073f556300b9b2f3a8e | 8f71437a5ec334d869e01b78adeed7d67a9184c5 | /0x07-python-test_driven_development/3-say_my_name.py | ffb297a31e737e8397dfdc7a61c74c9687bd64f9 | [] | no_license | KFredlund/holbertonschool-higher_level_programming | 6c16cb909ed1993a2dbe26aa5f207b43a01dfee0 | 18b2489084e7b4377e1d1db539561f7683526eb6 | refs/heads/master | 2020-09-29T01:06:05.394859 | 2020-03-29T17:37:42 | 2020-03-29T17:37:42 | 226,909,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | #!/usr/bin/python3
def say_my_name(first_name, last_name=""):
"""Function that prints 'My name is <first name> <last name>'
Args:
first_name: first string
last_name: second string
Returns:
first and last name
Raises:
TypeError: if args are not strings
Doctest Examples... | [
"katihomes@gmail.com"
] | katihomes@gmail.com |
bea63d8479eaaba6baada75d8a5eca0a2fbdf7ac | 41e3f749d61dda95febed9ee9fec82dc4dcfc6fe | /binancechain/exceptions.py | cb9ed6ef0907fcc5ec115d5444c39dea7dcce670 | [
"MIT"
] | permissive | lmacken/binance-chain-python | e798d1d6910f11889963ee31d89f336e7a078021 | 483e51394ebc9f9998f5248910ac7b7dff7198f9 | refs/heads/develop | 2020-05-10T00:02:19.730956 | 2019-05-01T01:51:50 | 2019-05-01T01:51:50 | 181,519,156 | 23 | 10 | MIT | 2019-05-01T04:14:40 | 2019-04-15T15:50:50 | Python | UTF-8 | Python | false | false | 395 | py | # Copyright 2019, Luke Macken, Kim Bui, and the binance-chain-python contributors
# SPDX-License-Identifier: MIT
import aiohttp
from typing import Optional
class BinanceChainException(Exception):
def __init__(self, response: Optional[aiohttp.ClientResponse] = None):
self.response = response
def __r... | [
"lmacken@users.noreply.github.com"
] | lmacken@users.noreply.github.com |
e15921c3602f09639e1a75b780376560ca94e509 | 0dc816af0b9feecc4ba672eca979654caa0c91bc | /main/ordinance/views.py | a7404d9f30bb4aefab716237a5b288cab1a41885 | [] | no_license | Stelmaszv/remote-learning | b57589ed5bde8387c0d114951b13ad37ebf80f68 | ae567c473e50826edb98a4b434e63cc446be0852 | refs/heads/master | 2022-11-25T17:08:15.658486 | 2020-08-07T14:43:59 | 2020-08-07T14:43:59 | 256,490,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,921 | py | from core.baseview import baseCreate,baseListView,baseShowView,baseUpdateView;
from core.decorators import login_required,login_manager,login_educator
from authorization.forms import educator,manager
from .forms import Lesson as LessonForm,TasksSolution,TasksSetRote,AccountForm,DashbordForm
from .models import Lesson,T... | [
"stelmaszv@gmail.com"
] | stelmaszv@gmail.com |
0a42a8da2771438df95b9dddc11c2092dd852fdd | eb7c814bf3356d4a5653eac09ae8f2a353ea2cf9 | /houzz_el/__manifest__.py | 2e5dc6bcba408531cf2e77ba1cd8dd1772da0856 | [] | no_license | qq18436558/el_addons | bde3ef5770228ffc74dd921ebf6061738c013250 | d5813f00fa9941b4677ced133262a5498a9c85a4 | refs/heads/master | 2023-03-17T07:45:59.814606 | 2019-03-14T09:41:39 | 2019-03-14T09:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- encoding: utf-8 -*-
{
'name': 'Houzz Eileen',
'description': 'Houzz API.',
'author': 'Joe Han',
'depends': ['sale'],
'application': True,
'data': [
'views/houzz_view.xml',
'views/sale_view.xml',
'views/sale_order_tree.xml',
'wizard/houzz_order_import_view.x... | [
"hanbiji@163.com"
] | hanbiji@163.com |
b7d924c237780a6793f9e6f29098b5740d905094 | 3943408748d4f94f243dd634b3aeb7d674ddd88c | /Day 6.py | 3bca383d779f64a952d1c0cb689a0287bf396261 | [] | no_license | parv1512/EDUYEAR-PYTHON-20 | 0bf4ebd784d099786f8305b3b24c5e45eb93c689 | b9afeff6f695d984859302f0eb11527073927930 | refs/heads/main | 2023-04-19T18:20:17.611315 | 2021-05-18T14:54:18 | 2021-05-18T14:54:18 | 360,242,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # part - 1 [Give all the index values of vowels.]
first_str = "Python-Programming"
temp = []
for vowels in range(len(first_str)):
if first_str[vowels] in "aeiou":
temp.append(vowels)
print(temp)
# part - 2 [Reverse the words of a string]
string = 'hello world happy birthday'
split_string = stri... | [
"noreply@github.com"
] | parv1512.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.