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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9625b08110ec98c0f1151eaf9b340266f63fcddd | 579e19a7b861e0549874b6e263c24aa418f3fdfc | /samples/QueryChangeNotification.py | 992136bbfffae0d1ea7199297095a6391b650545 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | 33bunny/python-cx_Oracle | 3f724df9a19ffd3f68e168fe7c57e4e057c8a780 | 26c3a4c2439642f9598bc9b1ca0d6ddf73890428 | refs/heads/master | 2021-05-07T15:17:18.873197 | 2017-11-06T20:41:59 | 2017-11-06T20:41:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,702 | py | #------------------------------------------------------------------------------
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
# Canada. Al... | [
"anthony.tuininga@oracle.com"
] | anthony.tuininga@oracle.com |
e0c4303817cf68a2e65123fc103a550fb575c7ba | feba51beeab37e9981e78b342fc368da39dee3bc | /example/env/lib/python2.7/site-packages/pycipher/columnartransposition.py | f8c4e2b58200ab976c89208ec92a1414d5e8b4be | [] | no_license | INoLiao/cryptography | 94e0a42bc6568ba682c653792d76ea11c3733011 | 11c127fd5188dab973c0c976bb9bb717bedadd17 | refs/heads/master | 2022-07-08T23:03:30.544756 | 2020-05-16T19:21:35 | 2020-05-16T19:21:35 | 264,510,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | '''
implements Columnar transposition cipher
Author: James Lyons
Created: 2012-04-28
'''
from pycipher.base import Cipher
####################################################################################
class ColTrans(Cipher):
"""The Columnar Transposition Cipher is a fractionating cipher, and has a ... | [
"ino.liao@gmail.com"
] | ino.liao@gmail.com |
66a91e069e433fe6749b553ace1b1cfe2a703151 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_restorable_dropped_databases_operations.py | c80d04d117ea91e660881b8a916c7bb7cfcefcdf | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 8,928 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
ee07d967c8331e6b6516e6c3d52e314c2bc8839a | 50190bff7c01e703da4c47f4c462a08a30778da2 | /inventoryTool/inventoryTool/wsgi.py | a1e29eb026a2dc24b1385c96ec04b8400f92e66d | [] | no_license | arnavd2001/inventory-tool | 51d9a6da5d9ab2033aed925b33e5a159b33da359 | f1a191915757084eb873ae186e42232223e2f0a5 | refs/heads/main | 2023-06-19T05:05:21.085055 | 2021-07-11T16:38:47 | 2021-07-11T16:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for inventoryTool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO... | [
"chirayurathi4@gmail.com"
] | chirayurathi4@gmail.com |
229cda51cb090287639fac9f73866fc0fc07e7f9 | 76742bf1c7dee6a01a0a41402fe734eeb0da3d74 | /tango_with_django_project/populate_rango.py | e7ae46306107f30b3103b2bbed482e688ef88477 | [] | no_license | Zacharilius/tangoProject | e5490c80af3caaabe2cf132a40387db2574713dc | 305fa20e344f8ad24514dff959be3e4e3632645e | refs/heads/master | 2021-01-22T23:26:51.921743 | 2015-03-17T17:52:22 | 2015-03-17T17:52:22 | 29,359,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_cat = add_cat('Python', 128, 64)
add_page(cat=python_cat,
title = "Official Python Tutorial",
url = "http://docs.python.or... | [
"zabensley@gmail.com"
] | zabensley@gmail.com |
6b953eabd9153431a406e11cb3110cd2fc9e0b4d | ee855f3e742778828809fd7097c892eb849a9b54 | /PythonServer/image.py | c4579d375763210ef2c3e3c9a4894409c2ad8460 | [] | no_license | seyahdoo/AndroMacro | dcd86fdb835c4f0644792f5bb50b2702a0552abd | 3e921f6749b6b38c9c974c0ccedc7eb58d5b4916 | refs/heads/master | 2020-03-27T08:52:59.393507 | 2018-08-27T13:09:02 | 2018-08-27T13:09:02 | 146,295,136 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py |
class Image:
pass
| [
"seyahdoo@gmail.com"
] | seyahdoo@gmail.com |
fb21e4714b35a21708dd10bbf7e8713cdec95421 | ae71e532468e861e3a9fcb90f613eddca267ace6 | /routes/class_reports.py | 72d6d93574c1858ca22af86f2c905041302f7431 | [
"CC-BY-4.0"
] | permissive | soon14/proms-4.0 | 0b4ed398125e529c13dc8f0d9b0c14e0348ae5c6 | 6c3a1fd62c9394761664e100fc1dde50fd79dc11 | refs/heads/master | 2020-09-23T20:33:56.716317 | 2019-06-09T04:01:29 | 2019-06-09T04:01:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | from .class_incoming import IncomingClass
import io
import uuid
from rdflib import Graph, Namespace, URIRef, Literal, RDF, XSD
from . import api_functions
import modules.rulesets.reports as report_rulesets
import settings
from modules.ldapi import LDAPI
from datetime import datetime
class IncomingReport(IncomingClass... | [
"m13001282105@163.com"
] | m13001282105@163.com |
2b2a5365ded67cf45fab0605f22b3c6a7c05d1f4 | 664d493346dea932d55ff010b480727b3e651e1d | /src/PA_OPS/wsgi.py | ea78c2bfa539e63236d5b172e0babb5149962049 | [] | no_license | rayxxh/PA_OPS | 474bc999b6140065f1ad128305172e204f49a942 | a79c307161a025be7f376b1534ee0c49f8070570 | refs/heads/master | 2020-12-31T05:10:25.723868 | 2016-05-12T05:11:32 | 2016-05-12T05:11:32 | 58,605,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for PA_OPS 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/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTIN... | [
"rayxxh@gmail.com"
] | rayxxh@gmail.com |
ce70f4e66df02d6569e8a818e29235dbe3be766b | d0e88ce8bb8a1c3da3337a85265eb9cfaa98fef6 | /example1.py | ac283ba640d3405be19c9cb407e3957568ecd9bd | [] | no_license | marina311/telegram_bot | 7bfa5211232f56582e1b3b4d4bfa5b642f16ab90 | e0f541ce968acaef5ee61fc23eb7a135251e9b74 | refs/heads/master | 2022-05-28T03:30:09.031747 | 2020-04-30T14:33:50 | 2020-04-30T14:33:50 | 259,322,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,242 | py | from auth_data import *
# Импортируем необходимые классы.
from telegram.ext import Updater, MessageHandler, Filters
from telegram.ext import CallbackContext, CommandHandler
# Определяем функцию-обработчик сообщений.
# У неё два параметра, сам бот и класс updater, принявший сообщение.
def echo(update, context):
# ... | [
"marina311@mail.ru"
] | marina311@mail.ru |
d1a221633b0d8677e3bc0c5214f80ebf68748799 | 40a15f3c6b975a0c93ac393d0ca92a12a5bed1ed | /OMP.py | d5ab6e17a061b5f67fe406043ddb446f19fc9d41 | [] | no_license | tengteng-Lin/matrixHomework | 6ec80c2c64cb447cb4110be62bbc169ebd97c12e | ed78600c59a0260274d952be57784b1acea0a7b8 | refs/heads/master | 2023-01-13T16:49:07.465468 | 2020-11-11T12:34:32 | 2020-11-11T12:34:32 | 311,965,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,183 | py | #coding:utf-8
import math,time
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus']=False
def cs_omp(y,A,K):
'''
:param y: 观测数据向量
:param A: 字典矩阵
:param K: 稀疏性指标
:return: 稀疏的信号向量x
'''
N = A.shape[1]
residual... | [
"nanyi_Gu@163.com"
] | nanyi_Gu@163.com |
0d4e60d885543dcabc06218fa4d8f5bd6c1b7c02 | cfc52686367034fe81a21152432d98b757d402b1 | /LevelOne/문자열 다루기 기본.py | e43d800869c061f43378e7782da020b443f132ec | [] | no_license | minm063/CodeTest | 4fadd513c90f58747bd9e1d93eb7b6d15abd2dd4 | 99406304f51cd15f5b156fd7f669b0e994c3f4ff | refs/heads/main | 2023-04-02T02:09:44.860628 | 2021-04-10T11:05:13 | 2021-04-10T11:05:13 | 302,225,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def solution(s):
if len(s)==4 or len(s)==6:
if s.isnumeric():
return True
else:
return False
else:
return False
| [
"noreply@github.com"
] | minm063.noreply@github.com |
b0872297a1e973e7d2596a15ea16d2b7785cd1ce | 7f3c27d6bf8fb138ecbfaef2f36787bb3b1e8566 | /photon_arrival_time_colls2.py | 4c101375b2e149fee684ecf683b6a1c3ffd5ddbd | [] | no_license | gitcheng/rayTraceNotebook | f2644ed70d35a69e21685ed705424b87ecde739e | 5c9bb4ac65870287e7a9cc15ff3c7bc763de90b5 | refs/heads/master | 2021-01-15T13:44:54.206320 | 2015-03-25T01:18:55 | 2015-03-25T01:18:55 | 24,906,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,500 | py | # -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <markdowncell>
# <h1>Photon arrival time</h1>
#
# * Use data produced by <b><code>scripts/time\_geom2\_hex\_*.py</code></b> and <b><code>scripts/time\_geom2\_rect\_*.py</code></b>
# * Geometry defined in <b><code>geometry_collection_2</code></b>
# <codecell>
%ma... | [
"ahsiang.c@gmail.com"
] | ahsiang.c@gmail.com |
d4d720aad96c5be06171cbbb998e28d8760d537a | e858cca58a19a4571ae239c3c00dfdf867e76622 | /better_drone_api/migrations/0005_stage_stage_id.py | 79d20466ee6bd1f60178ee9e83a61cbd3553c06d | [] | no_license | sudeep-sinha-hes/2021sp-better-drone-sudeep-sinha-hes | 2d6a9c881bb4f089b1c9b8807a8f8612bf9995f1 | 388dbc355eaf1ed5b26d3e183edcbede8c830fef | refs/heads/main | 2023-05-06T08:54:05.708881 | 2021-05-12T02:37:56 | 2021-05-12T02:37:56 | 366,570,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # Generated by Django 3.2.2 on 2021-05-10 19:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('better_drone_api', '0004_auto_20210510_1857'),
]
operations = [
migrations.AddField(
model_name='stage',
name='stage... | [
"ssinha@squarespace.com"
] | ssinha@squarespace.com |
bbea077e0cd49da8d560139dd7b739c639bbe3e1 | 0cca3fd224e21ebebdef7cfa68964351782c7758 | /recon.py | 080e13b20ca52c7cb80eeff15c25f2f3aeee60f1 | [
"MIT"
] | permissive | luckyster895/GoldenRecon | 36c049cc367bf0ebfcadfcb8aa49e63f4b125290 | 71255a8ecd86a1e6ea30524191100a424e72e676 | refs/heads/main | 2023-04-11T01:28:19.946709 | 2021-04-16T13:24:15 | 2021-04-16T13:24:15 | 344,731,331 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,480 | py | import os
import socket
import time
from colorama import Fore, Back, Style
def argument(arg):
switcher = {
1: "-A -sC -sV -vvv -oN Output/nmap", #Os scanning,Version detection,scripts,traceroute
2: "-O -V -oN Output/nmap", #OS Detection ,Version scanning
3: "-F --open -Pn -oN Output/nmap",... | [
"luckyster895@gmail.com"
] | luckyster895@gmail.com |
a146c05b1751eaa8b7ae1d30607ce534ccdb1961 | caa93d8a104624c0513ca606c50ba7fee38a60d4 | /tropycal_model_hack/main.py | e9a132b04493a24f46779e257e9baff9d16e58e7 | [] | no_license | ahuang11/tropycal_model_hack | c620f82c97e8fd1d325312a15162fd38c5e88975 | 59982338c4c623c573343305dee479d034d15960 | refs/heads/master | 2022-12-07T11:08:24.212818 | 2020-09-02T23:00:47 | 2020-09-02T23:00:47 | 290,321,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,628 | py | import os
import glob
import pickle
import argparse
import matplotlib
matplotlib.use('agg')
import pandas as pd
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
import tropycal.tracks as tracks
COLUMNS = ['basin', 'number', 'init', 'technum', 'tech', 'tau',
'lat', 'lon', 'vmax', 'mslp', 'level'... | [
"noreply@github.com"
] | ahuang11.noreply@github.com |
812dc013d453862dbb958e4a563834e0d7e6aba7 | 20827a41854aef2820401b2affb47ed77ce6406a | /sights/migrations/0004_auto__chg_field_variable_description__chg_field_variable_type.py | fb4b06481d7b4fdf8eb54f01041b760ad6120db6 | [] | no_license | Science-o-matic/MedJellyDataBackend | 7e12b00b1bd4b5207b5983709845a8549c1209ae | 0320ece65fc2441214b97505c19b069e5799b8cc | refs/heads/master | 2021-03-12T19:18:05.315267 | 2017-08-02T09:05:12 | 2017-08-02T09:05:12 | 10,324,052 | 0 | 0 | null | 2013-07-04T10:34:10 | 2013-05-27T23:03:31 | Python | UTF-8 | Python | false | false | 3,599 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Variable.description'
db.alter_column(u'sights_variable', 'description', self.gf('django.... | [
"antonio.barcia@gmail.com"
] | antonio.barcia@gmail.com |
40f6ac93d8d20662057715e8f2cbaa97ea5555a2 | 850d778687e3692ab2a38d4d2227391d92c21e6b | /atcoder.jp/code-formula-2014-qualb/code_formula_2014_qualB_c/Main.py | 64274ab66ae68c3b570b2c37dd74d7c974e4130a | [] | no_license | Valkyrja3607/AtCoder | 77e2e5e66c0e8e12bb902c35f679119c6576fad7 | 9218a50b1eb83e4498845d15d9dda41fab90ed73 | refs/heads/master | 2023-07-15T20:38:52.911301 | 2018-05-30T17:56:22 | 2018-05-30T17:56:22 | 294,980,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | a=input()
b=input()
n=len(a)
import collections
l1=collections.Counter(list(a))
l2=collections.Counter(list(b))
if l1!=l2:
print("NO")
exit()
cn=0
s1=[]
s2=[]
l=[]
for i,j in zip(a,b):
if i!=j:
s1.append(i)
s2.append(j)
cn+=1
else:
l.append(i)
c=collections.Counter(l)
l... | [
"purinjolly@gmail.com"
] | purinjolly@gmail.com |
3723fa7aa30aba310bf4f9d5e1019ce129b50a69 | 94ea78dc4ae7794c97652368a656e8e45e6a3fbb | /send_mail.py | f5969a4a1f8dcbec04083d856a4e82e34edd9c5d | [] | no_license | nestoralvaro/Utils | 22dc5874c4fbbfb600fa1899b9abbde1f60e493d | acb98c8aade5044cf7089b52622aaea6e2cc7997 | refs/heads/master | 2021-01-20T07:32:05.396671 | 2017-03-04T12:28:26 | 2017-03-04T12:28:26 | 83,889,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import smtplib
"""
description:
Utility for sending e-mails on python
You can choose between sending these e-mails using the local SMTP server, or
you can send the messages using GOOGLE mail SMTP server.
Caution: These e-mails may appear on the "SPAM" f... | [
"noreply@github.com"
] | nestoralvaro.noreply@github.com |
9535709abf88b3bbdab94e25bd9aad683cadde85 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ARC/ARC122/a.py | 9e9961e0f2d5cbd1eda85e6f6dbb01fe302c0653 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | n=int(input())
a=list(map(int,input().split()))
dp0=[0]
dp1=[0]
mod=10**9+7
x=0
y=1
for i in range(n):
p=a[i]
q=dp0[-1]
r=dp1[-1]
dp0.append(q+r+y*p)
dp1.append(q-x*p)
x,y=y,x+y
ans=(dp0[n]+dp1[n])%mod
print(ans)
| [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
9d3d87b1db818f478f4aa85b0c257eee39b0700b | c609730a43596a2d3303f072fc97d9cf681fac7b | /cagey/usedcar/main_haoche99.py | 386a9e6ee701ee754cd28189f895ff6701bf3b18 | [] | no_license | sinnettluo/ChenProject | 5403311c0c7b78c484145e16d692abff00d2a110 | 0e33ecf1683afb22f1deb4bd54294c41aed8a46b | refs/heads/master | 2023-03-22T23:48:08.430178 | 2020-09-02T15:05:02 | 2020-09-02T15:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from scrapy.cmdline import execute
import sys
import os
website = "haoche99"
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
execute(["scrapy", "crawl", website])
| [
"1316446041@qq.com"
] | 1316446041@qq.com |
94ba1675679dd2384eecbd19de11aa0839105e84 | 2b026a53f9554ed2ce19198b313fcc8db9b73abb | /abc124/b/solver.py | 3237c31fb9ae090e456ac6631e6a3f81fa8d78b0 | [] | no_license | shinobe179/atcoder | 528b97c2e9a9cea6cccbf1de6d055bdd8e250191 | debd24ec73936ac9592b96f723a1cd73bb93067a | refs/heads/master | 2020-05-16T05:19:09.096587 | 2019-05-06T13:08:12 | 2019-05-06T13:08:12 | 182,812,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | #!/home/shino/.anyenv/envs/pyenv/shims/python
import sys
N = int(input())
H_list = [ i for i in map(int, input().split()) ]
ans = 1
for i in range(1, N):
for j in range(N):
if j >= i:
break
if H_list[i] < H_list[j]:
break
if j == i-1:
ans += 1
print(ans... | [
"befs.anne@gmail.com"
] | befs.anne@gmail.com |
0384c48739c535d5420ddbfa9c2b1913e77b9422 | 0642c068d96ae43bbb800283d1aba3bd663740b1 | /download/urls.py | e915a1ba491a6a6cc1cd09a6bb7c6f6dc1a45e80 | [] | no_license | weien8899/CyanScikit | 6724f2f7d3a810a1265edd9ac3a8201c1695d264 | 59a083d9a81c557e5ec7d10d50192f43ff936231 | refs/heads/master | 2020-03-17T17:00:57.825089 | 2017-07-16T15:26:04 | 2017-07-16T15:26:04 | 133,771,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | from django.conf.urls import patterns,include, url
from django.contrib import admin
urlpatterns = patterns(
'download.views',
url(r'^admin/', include(admin.site.urls)),
url(r'^download/$', 'download'),
url(r'^onecateDown/(\w+)/$', 'onecateDown'),
url(r'^more/$', 'more'),
)
| [
"Thinkgamer@163.com"
] | Thinkgamer@163.com |
1568aa1de7c81345ca53eb818fa78232de792b4b | 748b55e0c02949ddb62c6f52b10be2ed7d9c871c | /Recursion/11729.Hanoi-tower/윤선영.py | 2297282929024207735dd9669b58f8a29e2a1758 | [] | no_license | seojisoosoo/Algorithm | 5305dd2ee5c819e639204fbe250a55dc979af006 | d4a9b3d6c7a87e3e2913aced0cdaa94f20832a45 | refs/heads/main | 2023-08-28T18:28:08.181742 | 2021-10-17T15:38:54 | 2021-10-17T15:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def hanoi(N,start,dest,via):
if N == 1:
move.append([start,dest])
else :
hanoi(N-1,start,via,dest)
move.append([start,dest])
hanoi(N-1,via,dest,start)
N = int(input())
move = []
hanoi(N,1,3,2)
print(len(move))
for i in range(len(move)):
print(move[i][0],move[i][1]) | [
"64634970+yunseonyeong@users.noreply.github.com"
] | 64634970+yunseonyeong@users.noreply.github.com |
d2cf4326eedaf1275ff01e755c7a246a728335ff | 832bbbb47e337b5872ea2012bb922c198fdf76c7 | /python2/a-parser-python2/__init__.py | 973869c869f3cc886f5abec57849330fc50c26b1 | [
"MIT"
] | permissive | a-parser/api-python | 0d4ac01c37e1ea67a66dfc814cba2ec72a317ac3 | b4f247de692ac9bf008f19573157b5fad4741a64 | refs/heads/master | 2022-11-04T23:39:43.985356 | 2020-06-25T08:37:04 | 2020-06-25T08:37:04 | 274,657,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,449 | py | # AParser Python v2 API
import urllib2, json, time, sys
class AParser:
def __init__(self, uri, password):
self.password = password
self.uri = uri
def doRequest(self, action, data = None, options = {}):
params = { 'password': self.password, 'action': action }
if data:
... | [
"bykovvvladlen@gmail.com"
] | bykovvvladlen@gmail.com |
1ada52b90f298f06b7a57e15ded114cdbd381a91 | 2b9e57bd48c4b55d118a0e9f395faad507a782f0 | /modules/geometry.py | 86249494df29080d34a1fd2c8a055b8d4110296b | [] | no_license | Wei-Tso/Python-Tutorial_From-YouTube | 97f6bc60a7b48176eeb431f84ac1feae06d4ebf2 | 51381111e9a38b0b0003197bcee978bdb6d570ac | refs/heads/main | 2023-01-02T15:22:28.498845 | 2020-11-04T17:53:30 | 2020-11-04T17:53:30 | 310,073,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | # 在 geometry 模組中定義幾何運算功能
# 計算兩點間的距離
def distance(x1, y1, x2, y2):
return ((x2-x1)**2 + (y2-y1)**2)**0.5
# 計算兩點線段的斜率
def slope(x1, y1, x2, y2):
return (y2-y1) / (x2-x1)
# 計算平均值
def average(*numbers):
sum = 0
for n in numbers:
sum = sum + n
return (sum / len(numbers))
# 加法
def add(*numbers):
sum = 0
for n in... | [
"kobe87020@gmail.com"
] | kobe87020@gmail.com |
d89692a51b4763f9f8a3060e3dbea201c0530805 | 3344516cfaade0f0d2223c84127aefb91a8a8071 | /python_intermedio/assert_statement.py | a945ee9cdb30fc096fc54582fd69b79bf3b0cdc3 | [] | no_license | maurogome/platzi | 91ff14519dcfe48a26bfb34d2031e4e6146e131e | 56e51cef4b2ec82e8c52d3c384202a42c480817c | refs/heads/master | 2023-04-09T23:48:02.730877 | 2021-04-25T16:36:28 | 2021-04-25T16:36:28 | 268,672,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def divisors(num):
divisors = []
for i in range(1, num + 1):
if num % i == 0:
divisors.append(i)
return divisors
def run():
num = input("Ingrese un número:")
assert num.strip("-").isnumeric(), "Debes ingresar un numero"
assert int(num) > 0, "El numero debe ser ... | [
"mauriciogom@gmail.com"
] | mauriciogom@gmail.com |
953361aa2a76f53cdaddda8221489ba1aab88156 | 9b6f36f544af5a2c1c042b18dda920c78fd11331 | /omsBackend/apps/zbmanager/serializers.py | dcfe3133e33a0c61dbd9aaed1ab434d86e103d18 | [] | no_license | Nikita-stels/MyOms | a946f08b4ba7abfa8392e98c579320b501a7ca2a | fdaf9d5a2a29b5386c1a86fcf89a2c0d5527687a | refs/heads/master | 2022-09-17T20:40:45.228067 | 2020-01-08T14:41:04 | 2020-01-08T14:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# author: huashaw
from rest_framework import serializers
class ZbHostSerializer(serializers.Serializer):
hostid = serializers.IntegerField()
host = serializers.CharField()
status = serializers.CharField()
groups = serializers.JSONField()
parentTemplates = serializers.JSONF... | [
"1069195546@qq.com"
] | 1069195546@qq.com |
61bb6c852fb15c15661258077e3474237b638133 | ed0dad18bc44bb98bcf784d2ccebd8311cf46203 | /src/data/__init__.py | 10b176f60fc5a8277110a15c1097a9c5c1322b1e | [
"MIT"
] | permissive | dankiy/mm-ml-2021 | 08ceafcf19c24e3b5fcf8952fb6b996a0f96b576 | cd49a1be79d4cbdbb3a7b207162d15fc850f34fb | refs/heads/main | 2023-09-02T11:44:13.170662 | 2021-10-09T12:13:52 | 2021-10-09T12:13:52 | 415,299,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from .scale import minmax, standard
from .split import train_test, cross_val
__all__ = [
"minmax",
"standard",
"train_test",
"cross_val",
]
| [
"iorsadg@gmail.com"
] | iorsadg@gmail.com |
f34ee70b9a52f64e76c7679f05e1caf15fab05e3 | 3750311368d32d3431a6c7e14b8566fb7ad59470 | /backend/src/api/create_store.py | 56e4817140a2b52bf761dd0ef0f6771945eb46db | [] | no_license | queststudio/momma-dog | 5a9a584c9e96d344a70881fa2014c42f5316efb8 | e75951042b50833485667b2b257503ad31a6c3ad | refs/heads/master | 2022-12-11T19:27:15.964172 | 2019-07-07T15:42:16 | 2019-07-07T15:47:49 | 121,881,640 | 1 | 0 | null | 2022-12-07T19:40:40 | 2018-02-17T18:37:08 | Python | UTF-8 | Python | false | false | 459 | py | from src.relays.set_state import set_state
from src.relays.render import render_state
from src.game.store import Store, init_state
from src.game.middlewares import restart_middleware_creator
from src.relays.restart import restart_creator
restart = restart_creator(set_state)
restart_middleware = restart_middleware_cre... | [
"d.f.goryunov@gmail.com"
] | d.f.goryunov@gmail.com |
abf248406904ecb544c5ae9b1d87e4652132b972 | b747c83829b650eb45b0d5522970bf71bc8ebe8a | /circuitpy/main.py | 71e57e9b28d1a8f2405d9591935202558cacc381 | [] | no_license | mcscope/liteup | 53048632f85577df953d9dcdb1a517e04dcf95d7 | ff6875319ecec0df02ec2c362e39fbaa77d77e9a | refs/heads/master | 2022-05-05T05:53:35.339022 | 2022-03-16T08:26:28 | 2022-03-16T08:26:28 | 93,298,507 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,290 | py | """
Liteup 'port' of 2 schemes (perlin and sorts) to Adafruit Gemma
Written in a hackathon at pycon 2018 as a badge decoration
"""
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keycode import Keycode
from digitalio import DigitalInOut, Direction, Pull
from analogio import AnalogIn, AnalogOut
import neopi... | [
"mcscope@gmail.com"
] | mcscope@gmail.com |
0d5757a1a9ed5bcbb7dbb9f0d6480b75d12b5efe | 4d1f1e188a4db8e909430b55bddf0d8113a28fcf | /reinforcement_learning/0x00-q_learning/2-epsilon_greedy.py | 5b5895e3aafe8d93a6fc7131ffb272cf3044f4a9 | [] | no_license | paurbano/holbertonschool-machine_learning | b0184a71733a1f51633ba7c7f4d3a82b8d50e94f | ff1af62484620b599cc3813068770db03b37036d | refs/heads/master | 2023-07-02T16:20:13.668083 | 2023-06-18T06:25:26 | 2023-06-18T06:25:26 | 279,967,511 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/env python3
'''Epsilon Greedy
https://github.com/simoninithomas/Deep_reinforcement_learning_Course/blob/
master/Q%20learning/FrozenLake/Q%20Learning%20with%20FrozenLake.ipynb
'''
import numpy as np
def epsilon_greedy(Q, state, epsilon):
'''uses epsilon-greedy to determine the next action:
Args:
... | [
"paurbano@gmail.com"
] | paurbano@gmail.com |
835d78cc36290fc2fe0ecf0ca6a00d9de1712ccf | e4a8a8066f656761f85905e24486903b4094d3d0 | /DB_site/apps.py | 50263391bbfcc608bc29a88a5727e906b3fd2e14 | [] | no_license | wikibady/DB_lol | 3acfebd7330853557ea5ecf9b9c7f33a584bb1d9 | 43654e0fbd345788086ec0e8ad575460c1a9b355 | refs/heads/master | 2021-01-18T10:47:32.158147 | 2016-05-17T13:42:26 | 2016-05-17T13:42:26 | 59,025,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class DbSiteConfig(AppConfig):
name = 'DB_site'
| [
"hysuperliu@wikibady.com"
] | hysuperliu@wikibady.com |
449197d603b056a7cfaf92ea38f6cbdabaf57f67 | 300fe198f4145cd10dfcd31884dc4b1aa165d097 | /experiments/test_grid_yspace.py | 327db982f4e4d5c60dbe499456267c3459f35495 | [
"BSD-3-Clause"
] | permissive | WrongWhp/mantis | 126170a9033191b970cc4e4697d4353527d25c2f | 2cf149b5bfa4f7c6dbf5aa47f1010785e886bd2c | refs/heads/master | 2020-06-14T22:00:01.472150 | 2018-10-22T17:55:45 | 2018-10-22T17:55:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | import matplotlib.colors as mpl_colors
import matplotlib.gridspec as gridspec
import matplotlib.pyplot as plt
import numpy as np
import os
import seaborn.apionly as sns
from mantis import sdp_km_burer_monteiro, copositive_burer_monteiro
from experiments.utils import plot_matrix, plot_data_embedded
plt.rc('text', usete... | [
"Lulita75"
] | Lulita75 |
0d8ed6f82e39bf255cdbdaf41569b7e5d76e34ca | 888f98aa6cd5c706582296b2edea5f331836a3aa | /accounts/urls.py | 8e48b97fb7b90371bf373a53068844e3bffefc83 | [] | no_license | Hibatouallah/djangoSite | 662220634da04fbd4cee0623d393df5adeb2a24a | c6f10b1a4c1334b58ee6cdc8665d844be07ffbdc | refs/heads/master | 2022-11-08T12:06:43.232710 | 2020-06-28T20:50:31 | 2020-06-28T20:50:31 | 275,660,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 362 | py |
from django.urls import path
from . import views
from django.contrib.auth.views import LoginView , LogoutView
urlpatterns = [
path('',views.indexView,name="home"),
path('login/',LoginView.as_view(),name="login_url"),
path('register/',views.registerView,name="register_url"),
path('logout/',LogoutView.a... | [
"boulsane.1996@gmail.com"
] | boulsane.1996@gmail.com |
7ce859d1aeafe754e3298ab2f867f74b8b2f75b0 | 3aa343d79d0d6286a511c8745b698471792c47e6 | /tutorial/urls.py | 4c9c09a196ddffe46b555cd6e1baa20eb7e8c286 | [] | no_license | akcezzz/Tutorial | a80e24f3e1ab7b28821599841008c76f511ad09a | bcae2c5d6661a1f4ae79db8316f08a7219a798ee | refs/heads/master | 2020-05-23T09:00:46.534817 | 2019-05-14T21:49:41 | 2019-05-14T21:49:41 | 186,698,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,107 | py | """tutorial URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"axil-pacha@hotmail.com"
] | axil-pacha@hotmail.com |
d3550d7689399933bc52ca671f322510fc34bf23 | d94c5849e6308901f9af8a4edf8c8369d46576d1 | /BOJ/14499_주사위 굴리기.py | 22ad001dcfef81e9fc7a3e7aee0a5e29963d830e | [] | no_license | AhnDogeon/algorithm_study | b4c961b934b5e27afccdf2713a2ccb0174d9a698 | b8de39fff92cc98281ba7e94df82bcc9b1503243 | refs/heads/master | 2022-06-05T11:33:27.392131 | 2022-05-23T06:37:50 | 2022-05-23T06:37:50 | 188,783,176 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,095 | py | import sys
from copy import deepcopy
sys.stdin = open('14499_주사위 굴리기.txt', 'r')
N, M, x, y, K = map(int, input().split())
board = []
for _ in range(N):
board_list = list(map(int, input().split()))
board.append(board_list)
move = list(map(int, input().split()))
# print(move)
#
# print('===========디버깅========... | [
"qltiqlti@gmail.com"
] | qltiqlti@gmail.com |
e585a401b1aefd44adfc94300e388978d4eab3a1 | 4fcd8f40868d8a3831487a9ea74cceda462c5bfe | /transferit/callbacks.py | fcfbadb8410a47b22dc38304b890129a43a82590 | [
"MIT"
] | permissive | sorenlind/transferit | 822de4a73eecbd66a58f60c27cb6909e0abc0d13 | c77ecb23a2fb6f571cba66155b0b99e4f359fa68 | refs/heads/master | 2023-04-13T23:50:02.634960 | 2021-04-28T20:09:06 | 2021-04-28T20:09:06 | 361,758,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | """Custom callbacks used during training."""
from tensorflow.keras.callbacks import Callback
import matplotlib.pyplot as plt
class PlotLosses(Callback):
"""Simple callback for plotting losses to a file."""
def __init__(self, output_folder, model_name):
self.output_folder = output_folder
self... | [
"soren@gutsandglory.dk"
] | soren@gutsandglory.dk |
000dfc6172faa1e4cc544650996beca345692cf0 | e28b5950500edac1ec78841ba3232a352c01a5c8 | /models/map.py | dedd8757421d51de371611fa4adc288a363f098f | [] | no_license | jmarcelos/mathspace | 48c82d592dcff240fc9befc2fa6de2c58275cd43 | 37720ec287c77f0fe06aa989292ed73d5bfe26a4 | refs/heads/master | 2021-07-22T08:10:34.523126 | 2017-10-31T12:10:40 | 2017-10-31T12:10:40 | 108,726,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | from math import sqrt
class Map:
MAX_COST = float('inf')
def __init__(self, str_map):
self._validation(str_map)
paths = str_map.split()
size_matrix = sqrt(len(paths))
self.grid = []
line = []
for index, path in enumerate(paths):
if inde... | [
"jmarcelos@gmail.com"
] | jmarcelos@gmail.com |
f1d3ed05dd0a8188d896cde41bfb30bf2177629c | 14a19a5dfbe5519529c097cf9606cd325549d1b3 | /metadataapp/views.py | 06c429f825f87f1b29aa747ab12d4b28781764f3 | [] | no_license | factvsankit/bbtApp | ea9d7b2c72f22b67c6e0f5dd4f0a7321d6c2d834 | 0fc5aa209bc454629f0eaf4a635b0624313bd5de | refs/heads/master | 2021-07-24T10:40:24.861572 | 2017-11-04T04:51:43 | 2017-11-04T04:51:43 | 109,467,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,375 | py | import json, os
import math
from django.http import HttpResponse, JsonResponse
from content_page.models import ContentPage, ContentIndexPage
from metadataapp.models import Plant, Event, Fruit, CropPricing
from .constants import NEPALI_MONTH_INDEX, NO_DAYS_IN_MONTH, EVENT_URL
YEAR = 2073
BASE_TECHNIQUES_URL = "http:... | [
"mta.ankit@gmail.com"
] | mta.ankit@gmail.com |
0eed1e43e88e22d5e74f9010387e7ad031989714 | 472baa2414822520f7cb8d491d4bf5608f765ad8 | /zqxt4396/tools/views.py | 3d5f7f76bda31af965d9c812557cadea6c386f1e | [] | no_license | Umi101108/django-projects | cdcf0c9bb8bd272e04a4b7a702f09adb16c28404 | 50edfdc3511e1de5b4a5a3e92fe9ddad932b5396 | refs/heads/master | 2021-01-12T08:20:48.113696 | 2017-06-11T14:45:20 | 2017-06-11T14:45:20 | 76,545,822 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from django.http import HttpResponse
from django.shortcuts import render
def index(request):
return render(request, 'index.html')
def add(request):
a = request.GET['a']
b = request.GET['b']
a = int(a)
b = int(b)
return HttpResponse(str(a+b))
| [
"408465808@qq.com"
] | 408465808@qq.com |
6434ee69271aa8ef76600a1a8e6d60014f9b18f6 | ba1a1e90406230eeb0a86ef22a3a94a7b227b7b8 | /taskmanager/tcp_protocol/message_templates.py | b8b520e92459b14aa099bebaebb9efa8afc3f62b | [
"MIT"
] | permissive | spanickroon/Task-Management-Tools | 6e47ac05a1ff9ddf21a988cf6fc63670bf921d63 | ab8ddba79830fe46bf8e0280832f94ece97a3edb | refs/heads/master | 2022-06-10T18:51:15.235038 | 2020-05-05T23:47:18 | 2020-05-05T23:47:18 | 259,631,581 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | START_APP = '!START!'
STOP_APP = '!STOP!'
SEND_MSG = '!SENDMSG!'
UPD_RPOCESS = '!UPD!'
CONNECT = '!CONNECT!'
| [
"nikitakoznev@gmail.com"
] | nikitakoznev@gmail.com |
374054f4b1cc28d43773f1c286075531a60030a4 | ca2ed68bcd084913cf592f4e856484be01e2bce0 | /week028--get-in-line/charles.mcmillan/solution.py | 19d3c4759ec5878ea634557b18907660590b8334 | [] | no_license | viewthespace/code-challenge | ddcab182abbda3d1fd383bb742972dcdcaeb2758 | 3ceec2ceb1c8b688a5f1a232992cb8155325fc1a | refs/heads/master | 2021-03-30T15:54:48.321310 | 2019-03-20T02:53:38 | 2019-03-20T02:53:38 | 42,602,268 | 0 | 1 | null | 2019-03-05T01:38:45 | 2015-09-16T17:20:44 | OCaml | UTF-8 | Python | false | false | 2,509 | py | ##
## Time Complexity: O(n^2)
## Space Complexity: O(n^2)
##
import toml
import ast
import math
toml_dict = toml.load('../testcases.toml')
class Line:
def __init__(self, slope, intercept):
self.slope = slope
self.intercept = intercept
def __str__(self):
return f"{self.slope}x + {self.intercept}"
... | [
"charlesmcm@viewthespace.com"
] | charlesmcm@viewthespace.com |
6b3ee56fb7f4552bfebdfa4efb793cedd84f4731 | 8512ec0b778cf4efaa960ef88aad4da9e4013a9d | /pip_benchmark_python/utilities/Formatter.py | 561df3c88f38d2db10db99ddfbf665ad67bd96ab | [
"MIT"
] | permissive | pip-benchmark/pip-benchmark-python | b375bd16f0102e698a0a45edbc92fc02735220ab | d75672e940af12e2f9818607e2188490e989d8c5 | refs/heads/master | 2020-05-27T03:22:07.706723 | 2020-05-08T19:31:18 | 2020-05-08T19:31:18 | 82,516,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,668 | py | # -*- coding: utf-8 -*-
import datetime
from pip_services3_commons.convert import StringConverter
class Formatter:
@staticmethod
def pad_left(value, lenght, pad_symbol):
output = ''
output += pad_symbol
output += value
output += pad_symbol
while len(output) < lenght ... | [
"anastasf/2gmail.com"
] | anastasf/2gmail.com |
124439bf89b3356762e1f31a4567ac04ce455496 | 90e77dfba83cb6f60b0712dce16d131a7b0fd002 | /projects/Project3/analyse/tools.py | 5e8edf4f1dcba818e5782bf49018266d93349e1f | [] | no_license | halvarsu/FYS3150 | 98649d65773d9694cc0728fe69d99beb66ecf486 | dd52b83aa696b43341418ebf6ad116b8dd347299 | refs/heads/master | 2022-03-08T04:51:33.386081 | 2019-11-22T15:39:40 | 2019-11-22T15:39:40 | 104,348,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import os, sys
def blockPrint():
sys.stdout = open(os.devnull, 'w')
def enablePrint():
sys.stdout = sys.__stdout__
def printDisable(*args):
enablePrint()
print(args)
blockPrint()
| [
"halvard.sutterud@gmail.com"
] | halvard.sutterud@gmail.com |
bcc938c96292fc6885f94488a3965fd6128af6ed | 5e14b8e24a1a3255b67006bafde2f809cf3e7f5c | /profiles/schema.py | 6129c5dbd075ce407932858596e1eabdecad3c7e | [] | no_license | marcoacierno/Pasteit-Backend | c2f5c9c2792deb01ea85732a98b963a8c2c16717 | 0088dfd69e631a8b6656cf4deeb568c1324cabbe | refs/heads/master | 2021-01-15T15:04:33.886036 | 2016-06-06T08:17:15 | 2016-06-06T08:17:15 | 58,814,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import graphene
from django.contrib.auth import get_user_model
from graphene import relay, with_context
from graphene.contrib.django import DjangoNode
class UserNode(DjangoNode):
pastes = relay.ConnectionField('PasteNode')
node = relay.NodeField()
def resolve_pastes(self, args, info):
return s... | [
"marcoacierno96@gmail.com"
] | marcoacierno96@gmail.com |
d0b8a76d43390187dc5aa8db4012da5d8af32d3d | 2ada8b8020a7a7169f087b8aa2e49ff52831a561 | /steps/common.py | 432230fac5a997dec7f9bbd28c21af0b6ef6cdaa | [] | no_license | marlonrochaeng/webAutomationBDD | a767a8d26f865afcada69c0df4cad1f7b79b9ce4 | 53b20134aaf9fc90ac25bb69083712d27a101e93 | refs/heads/master | 2020-08-21T17:55:24.326911 | 2020-04-15T01:47:30 | 2020-04-15T01:47:30 | 216,212,818 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | from behave import given, when, then
from framework.webapp import WebBrowser
@given(u'I open the "{url}" url')
def step_impl_load_website(context, url):
wb = WebBrowser(context)
wb.go_to_page(url) | [
"marlon.alencar.rocha@everis.com"
] | marlon.alencar.rocha@everis.com |
5a430ef971af1b67af314b64ae6eac1b2d348931 | 28f726ae55c94ad559aba289f5e3f8f51c966a4d | /导出数据.py | c0fbbae723b55cecabffaaba977e678da8dae968 | [] | no_license | bruce994/python_training | 546ed4f27ef8da7a9f94f7b8f4db9100ffeae137 | 12ba20f8ef662ef2e8cc3018ed1254c33e75375b | refs/heads/master | 2021-01-10T12:54:28.306911 | 2019-09-18T03:15:16 | 2019-09-18T03:15:16 | 43,752,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | #!/usr/bin/env python
#-*- coding:utf-8-*-
import socket
import thread
import time,os,shutil,platform,datetime,sys,re
import MySQLdb
import sqlite3
conn = MySQLdb.connect(host='localhost',user='root',passwd='123456',db='test',charset='utf8', init_command='SET NAMES UTF8')
cursor = conn.cursor()
cur... | [
"noreply@github.com"
] | bruce994.noreply@github.com |
a5680836916c2ce43cd2b4b36b019cde8f18cee4 | 1adf769cf9234f9b6c619f808d2723b99451d679 | /rusentrel/classic/mi/pcnn.py | 825d23c100525d15bf520d848194da8230315155 | [
"MIT"
] | permissive | DAVMARROS/attitude-extraction-with-attention-and-ds | 4e85fa154ead0cd9499aaedf5d752ac565f37b92 | fb8e9d0d9488363738a88c4c447c7a8cb3e2ec1d | refs/heads/master | 2023-02-09T04:56:24.090380 | 2020-12-30T10:09:34 | 2020-12-30T10:09:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,447 | py | #!/usr/bin/python
import sys
sys.path.append('../../../')
from io_utils import RuSentRelBasedExperimentsIOUtils
from arekit.contrib.experiments.callback import CustomCallback
from arekit.contrib.networks.multi.configurations.max_pooling import MaxPoolingOverSentencesConfig
from arekit.contrib.networks.multi.architect... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
7733b0f0ac3a81dfe676c533d7b32dbf6a711e97 | 8e5ebf2c0296294cc2d5850e4dbd6282601aaa26 | /backenddj/urls.py | d775e1ba446dfba1374458515861c35b6683d984 | [] | no_license | udaravimukthi/Django-learn | 0e628c46978a8d2cba0105e577d36906a8dcd508 | 6801b3621b5ed0dd3ca3750f9ef14f027e05a308 | refs/heads/main | 2023-01-30T08:44:47.509775 | 2020-12-08T17:17:19 | 2020-12-08T17:17:19 | 306,814,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | """backenddj URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"uvlakshan@gmail.com"
] | uvlakshan@gmail.com |
231d481e63ca5e223979d6b4a158a15ed9294642 | 0e74ba41a89742cc81c6ffaab685ee7f991fd0dc | /gettingFileList/getFileListTtB.py | 36d448060c3422231d6f199b8056b3dc85179822 | [] | no_license | bigalex95/androidMalwareDetectionSystem | 661059acbb40ad56fb6ca99943c9a02a87e1362c | 542373ca7dc700fa4a569deb34d3d87ca80d4ecd | refs/heads/master | 2021-07-16T21:54:03.263225 | 2020-07-25T22:08:12 | 2020-07-25T22:08:12 | 192,614,718 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import glob
#path where your source files
BENIGN_PATH_TEST = '../Benign/Test/'
#opening and putting to list array all sources file names
class_benign_test = glob.glob(BENIGN_PATH_TEST + '*.txt')
#writing all source file names to fileList.txt
with open('file_list_test_Benign.txt', 'w') as f:
for item in class_ben... | [
"amanbayeva95@gmail.com"
] | amanbayeva95@gmail.com |
8a2e8a556542b2c6270c5ebb0463bb7eda92fe92 | e02366473ccd3ddbddd96e1fecd2f460bf07db95 | /lambdas.py | 703fd3139332731f05659d137a00f4ca418268cd | [
"MIT"
] | permissive | davidlares/python-overview | 03413e4b27107d71cc1ced122ba104a83c99e48c | 523a4fd59ecc356b95f091adbe609448f85e8aa5 | refs/heads/master | 2021-09-14T17:34:15.468977 | 2018-05-16T19:09:57 | 2018-05-16T19:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | # asignar una funcion a una variable
def grados(grados):
return grados * 1.8 + 32
function_variable = grados
resultado = function_variable(32)
print(resultado)
# lambdas o funciones anonimas
mifunc = lambda grados=0 : grados * 1.8 + 32 # todas las lambdas retornan un valor
resultado = mifunc(32)
print(resultado)
| [
"david.e.lares@gmail.com"
] | david.e.lares@gmail.com |
ae9f47dcd6973ca4c8e603f1503be4d5ca8b26ce | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_role_members_add.py | ed565058c42a11f8a5eb9894159405db3ff757a7 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"github@rootalley.com"
] | github@rootalley.com |
bf8e5d90cbc8364cd686f902be7a8ff4071e570c | 3ada098871f017f316209f0ff7751c5ac784121a | /queue/multicast/main.py | 654a82c5a59cd6f29bafbd62a650d9cd9c62072b | [
"Apache-2.0"
] | permissive | kubemq-io/python-sdk-cookbook | 1824d2da06fdf6f7d778c8ed465866a2d125266e | 0c843ec77e8923a79a0853c83915f7ee240c5ddb | refs/heads/master | 2023-07-13T06:27:36.167221 | 2021-08-21T11:29:17 | 2021-08-21T11:29:17 | 352,559,888 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,224 | py | from kubemq.queue.message_queue import MessageQueue
from kubemq.queue.message import Message
def create_queue_message(meta_data, body, policy=None):
message = Message()
message.metadata = meta_data
message.body = body
message.tags = [
('key', 'value'),
('key2', 'value2'),
]
me... | [
"eitam.ring@kubemq.io"
] | eitam.ring@kubemq.io |
cad08c6af20f321507af6bc050e428731b67a33f | 7dc240e587213e4b420676c60aa1b24905b1b2e4 | /src/app/tests/mailchimp/conftest.py | d5af1f4a3624389007aae35e1b133692b303f6ce | [
"MIT"
] | permissive | denokenya/education-backend | 834d22280717f15f93407108846e2eea767421c8 | 3b43ba0cc54c6a2fc2f1716170393f943323a29b | refs/heads/master | 2023-08-27T09:07:48.257108 | 2021-11-03T00:19:04 | 2021-11-03T00:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import pytest
import requests_mock
from app.integrations.mailchimp import AppMailchimp, MailchimpMember
pytestmark = [pytest.mark.django_db]
@pytest.fixture(autouse=True)
def _set_mailchimp_credentials(settings):
settings.MAILCHIMP_API_KEY = 'key-us05'
settings.MAILCHIMP_CONTACT_LIST_ID = '123cba'
@pytest... | [
"noreply@github.com"
] | denokenya.noreply@github.com |
3e1303281faa8390bc75072c73e0d996ebfdb03e | 8d9b85f92a934c57306f13d6bdddfe2c0c04c101 | /Lessons/rand_tmp.py | ecb43bf0a21835931e8c1505361c3d54ec0d0ce0 | [] | no_license | estherica/wonderland | 640dcbce9343753ecde9f87b03fdebdc7950c49a | 458e77f7e20b8852bc18fd97add4f62558d175c7 | refs/heads/master | 2022-12-07T16:19:54.727623 | 2020-08-25T14:13:19 | 2020-08-25T14:13:19 | 284,969,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from random import randint
print("Random numbers game\n")
num1=(randint(1,37))
num2=(randint(1,37))
print("1st number: " + str(num1) + "\n2nd number: " + str(num2) + "\n")
if (num1==num2):
print("You won 100$! \n")
else:
print("Maybe next time...")
print("\nBye-bye!") | [
"belleshamharoth@gmail.com"
] | belleshamharoth@gmail.com |
09a5dcf778c742d075bd8decf005f393a6b3b6e6 | e6d1bbac91b97ee7a9d028c3aafa5d85a0ee593c | /Python04Month/chapter/chapter3/demo/code/3-1_abnormal_check.py | bd08daf230d7e50525b8458610580eb8e1138662 | [] | no_license | LiuJingGitLJ/PythonSuanFa_2 | 82159043523d6fe69beef7f86421cd4be2242919 | 0afba93c4c29231bc6c2aaf6e4663beee2b5cbbb | refs/heads/master | 2021-09-20T13:49:08.521080 | 2018-08-10T06:13:22 | 2018-08-10T06:13:22 | 124,337,675 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #-*- coding: utf-8 -*-
import pandas as pd
catering_sale = '../data/catering_sale.xls' #餐饮数据
data = pd.read_excel(catering_sale, index_col = u'日期') #读取数据,指定“日期”列为索引列
print(data)
import matplotlib.pyplot as plt #导入图像库
plt.rcParams['font.sans-serif'] = ['SimHei'] #用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] =... | [
"15201078137@163.com"
] | 15201078137@163.com |
330d07b94732fbde6570ab71a73dd30c8eebd34c | 2b9a7ada172dd7adbed7921e6787bf4d43891b36 | /sb05/package.py | 73d97e13365e4b004b6ae6c1c712f4743f3b6c8f | [] | no_license | Vinhnguyen19922/glvis | ba566d3f6117ee005ad1ce89f884631bccf40644 | 1db0c6e57c2b2a4677ab3765525f4f22b7345771 | refs/heads/master | 2020-09-05T04:45:22.064164 | 2016-10-08T07:53:16 | 2016-10-08T07:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from PyQt5 import QtCore
from PyQt5.QtWidgets import (QGridLayout, QWidget)
from sn.qt import *
from sn.gl import *
class SB05(GLWidget):
def __init__(self, parent, width=200, height=200):
super().__init__(parent)
self._width = width; self._height = height
def initializeGL(self, path):
... | [
"wakita@is.titech.ac.jp"
] | wakita@is.titech.ac.jp |
9cbccdf6741a644e2d43e78594b58ded66dc35c4 | af992da82e277bf3982b003a0fb8b6f65d4311b4 | /dataAnalysis/fit_task.py | cc9226d71dd6fbcd41bb6154583bc0eb3d2e0c11 | [
"MIT"
] | permissive | emailhy/lab5 | 5529c7c388111f16215262f7e45a3ba7201b767c | c0f499bf396d228290ce6d06fc90567e81cb638c | refs/heads/master | 2021-05-10T07:37:35.532945 | 2017-10-09T04:17:56 | 2017-10-09T04:17:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,088 | py | from dataAnalysis.prmodel import FormulationDataModel
from math import ceil, floor
import numpy as np
import json
from app import celery
from redis import Redis
from datetime import datetime
r = Redis(host='127.0.0.1')
@celery.task
def fit_model_task(f_id, training_uuid, logging_uuid, epochs=100):
fdm = Formulat... | [
"qinzishi@gmail.com"
] | qinzishi@gmail.com |
5643935e9ef0b3663b510e3177bffe98981c5630 | 650bd88bf5da6b4105d84d0ef97434a4f4512790 | /nn_meter/prediction/predictors/kernel_predictor.py | c6ed0b812841e50f50bc65ba2960b1b525302987 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | JiahangXu/nn-Meter | 3a0303c08f59ca91673047fe6dcd5cb052ebc4d3 | c11b8223ecf8b5ba881528071a8ae18df80584ba | refs/heads/main | 2023-08-25T14:57:05.299811 | 2021-10-12T10:15:36 | 2021-10-12T10:15:36 | 393,234,662 | 0 | 0 | MIT | 2021-08-06T03:20:11 | 2021-08-06T03:20:10 | null | UTF-8 | Python | false | false | 13,250 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from sklearn.ensemble import RandomForestRegressor
def get_model(hardware, kernel):
model = None
if kernel == "convbnrelu":
if hardware == "cpu":
model = RandomForestRegressor(
max_depth=70,
... | [
"lzhani@microsoft.com"
] | lzhani@microsoft.com |
fc75c39c188f5c86376de80a21d363b87e28047e | a3e2201173a475c78c2b89456b916c919657ed25 | /core_contracts/rebalancing/utils/checks.py | af0638719f4a9748f3285a7ce9ac84ffdbf6a9d4 | [
"MIT"
] | permissive | subba72/balanced-contracts | a302994044dab909f9d5ef84bbee593e6e9695c7 | cd185fa831de18b4d9c634689a3c6e7b559bbabe | refs/heads/main | 2023-08-15T12:15:47.967642 | 2021-08-06T04:09:19 | 2021-08-06T04:09:19 | 396,687,527 | 0 | 0 | MIT | 2021-08-16T08:04:25 | 2021-08-16T08:04:24 | null | UTF-8 | Python | false | false | 1,361 | py | from iconservice import *
# ================================================
# Exceptions
# ================================================
class SenderNotScoreOwnerError(Exception):
pass
class SenderNotAuthorized(Exception):
pass
class SenderNotGovernance(Exception):
pass
class SenderNotRebalance... | [
"adhikarisuyog49@gmail.com"
] | adhikarisuyog49@gmail.com |
a29b5c5fd84534f37e17dd2410016807deff86f6 | 9c404f18c27297e5c6fe6dde50097765478e09bf | /src/blog/migrations/0007_contact.py | 48d4ef5c22e50203a8a429c09560e19633698873 | [] | no_license | rishav4101/Click_Galaxy | 6001619e25d41504cd7f27cc40a1dfd064bfd52c | 404482ce760f8422837438fbddc046575d41b351 | refs/heads/master | 2021-03-09T23:00:21.274638 | 2020-03-17T16:49:20 | 2020-03-17T16:49:20 | 246,389,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # Generated by Django 3.0.4 on 2020-03-10 14:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_delete_feedback'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('... | [
"rajkumarrishav4101@gmail.com"
] | rajkumarrishav4101@gmail.com |
b5ce7163b13168c36c12bcfe8d7bc802301482c5 | 935e9d6d806f507eb541a88de731b2b16b0cc6c9 | /Pages/TeamPage.py | fc8b3995c2d004271bce5de45eab28c4b6dd717d | [] | no_license | Anandqualwebs/AgileSportz | 27ff864115907c7b80466ad0ece955add6054642 | e59dbb26970f3d486507b8c968068fb3b1ae7069 | refs/heads/master | 2020-07-30T20:13:50.390846 | 2019-09-23T11:56:48 | 2019-09-23T11:56:48 | 210,344,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,967 | py | import sys
import os
sys.path.append(os.path.dirname(sys.path[0]+"\Locators"))
from Locators.Locators import locators
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.webdriver.support.se... | [
"envio login s.shukla@enviosystems.com"
] | envio login s.shukla@enviosystems.com |
c822aa27e0f3c129883fbe4282712e9357a385d1 | 0e1abae708fa0d0afc312bcfdc15b4d587d487e1 | /flask_library_app/models/book.py | 5546a38a4e11d46451bd9e0c0c7b12deb60a45b5 | [] | no_license | davidiakobidze/flask_library | 2ea156545401a5ba78441bcd5c3c28dd4b831446 | 92a1a15fe1fcb40513e665018dfce9ee6dae8dcd | refs/heads/master | 2023-05-11T16:02:15.743752 | 2019-06-05T11:25:00 | 2019-06-05T11:25:00 | 178,378,117 | 0 | 0 | null | 2023-05-01T20:57:26 | 2019-03-29T09:47:41 | Python | UTF-8 | Python | false | false | 1,319 | py | from flask_library_app.db import db
from flask_library_app.lib.exceptions import HandleException
book_authors = db.Table(
'books_authors',
db.Column('author_id', db.Integer, db.ForeignKey('authors.author_id')),
db.Column('book_id', db.Integer, db.ForeignKey('books.book_id'))
)
class BookModel(db.Model):
... | [
"davidiakobidze1@gmail.com"
] | davidiakobidze1@gmail.com |
b6a4a9e47571cdc8e1f355c4ff97f2f25ce41edb | ee7e42417d9d1e76b0e84e44dc6eb037adc3ebad | /.history/pet/api_20190703151654.py | 3b027aed09213348242bbcfd996055000b31003a | [] | no_license | web3-qa/pets-api | 4632127ee84a299f207d95754f409fc1e4c0013d | ee4a04e7291740ac8eb6147c305b41d27d5be29c | refs/heads/master | 2023-05-12T09:09:47.509063 | 2019-07-18T15:07:13 | 2019-07-18T15:07:13 | 197,611,701 | 0 | 0 | null | 2023-05-01T19:42:17 | 2019-07-18T15:19:59 | Python | UTF-8 | Python | false | false | 7 | py | from fl | [
"dcolmer@statestreet.com"
] | dcolmer@statestreet.com |
2809b47d249d56790cb08fb8a0c7d5f1fbdd146e | d53baf0a3aaa10521cfc28a7be8f2c498bc9e741 | /examples/CaffeModels/load-vgg16.py | 96780e85eac94a3b1709a479d22cf2e3faa232fd | [
"Apache-2.0"
] | permissive | qianlinjun/tensorpack | 8f6e99ba17095334de1163d6412e740642343752 | 7f505225cd41aaeee3a0b0688fe67afc0af8fb30 | refs/heads/master | 2020-03-29T22:38:22.269889 | 2018-09-25T07:20:48 | 2018-09-25T07:20:48 | 150,432,021 | 1 | 0 | Apache-2.0 | 2018-09-26T13:35:19 | 2018-09-26T13:35:18 | null | UTF-8 | Python | false | false | 3,493 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: load-vgg16.py
from __future__ import print_function
import cv2
import tensorflow as tf
import numpy as np
import os
import six
import argparse
from tensorpack import *
from tensorpack.dataflow.dataset import ILSVRCMeta
enable_argscope_for_module(tf.layers)
def ... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
2f9a0e5eb894f82c3246cbe316a3aaec12605ea4 | 49c715a71da32472e078be32c46ffe2c7315d253 | /TestREST_Framework/env/bin/pip2 | b6279f9dd630da82762490a0d1b35818b84ddd83 | [] | no_license | janicheen/KontrollrommetBETA | aaddc92a3b58ecb2bbed5e0e79f7d3b461fe79e4 | 00a78e5ca8079beb327ceacd7fb4a02a9011ca06 | refs/heads/master | 2020-06-24T13:57:57.848532 | 2017-07-07T23:47:47 | 2017-07-07T23:47:47 | 96,937,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/Users/Janic/Kontrollrommet/TestREST_Framework/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"janic@online.no"
] | janic@online.no | |
2392a6dd5a8bc0cc84ab0904642c9fb7c3252d87 | a38b90349f7e2bae1400d2db4cfc9200d369d7ba | /blog/migrations/0001_initial.py | 1f3616c21f11d71129d5f6ea46c20112985d6f94 | [] | no_license | merymeru/my-first-blog | 01d79f45a71344edfb2caba2f5c777ca9f0f6ff4 | 95ddfbd07513de9f8b1ea90aca83a58b6a937e67 | refs/heads/master | 2020-03-27T06:26:20.929721 | 2018-08-26T20:37:20 | 2018-08-26T20:37:20 | 146,105,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 2.0.8 on 2018-08-25 14:28
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"merymeru@gmail.com"
] | merymeru@gmail.com |
5b3165a574457eeb1f369cd70b0259bd520aec67 | 8e2404c7bcfd28329bed789839192b2c4e85ea1b | /LeetCode/Linked_List_Cycle_II.py | ca97be57324afaacc01727943d36debb9971ccae | [] | no_license | Pabitra-26/Problem-Solved | 408bd51bbffc69f8c5e1def92797c2e6f027f91d | c27de1dd6c4ad14444fa5ee911a16186c200a7f9 | refs/heads/master | 2023-07-30T16:51:28.062349 | 2021-09-27T06:06:54 | 2021-09-27T06:06:54 | 269,935,039 | 2 | 0 | null | 2021-09-27T06:06:55 | 2020-06-06T09:39:33 | Python | UTF-8 | Python | false | false | 886 | py | # Problem name: Linked List Cycle II
# Description: Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
# To represent a cycle in the given linked list, we use an integer pos which represents the position (0-indexed) in the linked list where tail connects to.
# If pos is -... | [
"noreply@github.com"
] | Pabitra-26.noreply@github.com |
f7d01c0eda3577f57ae5c0e2137ea657057871cc | 7c64785c00de294f1456a3d167727e0885af0f59 | /setup.py | 12d4c9d70662766fff071ed4bd294fb7978eeaaa | [
"Apache-2.0"
] | permissive | yh-luo/prosdk-addons-python | b5bc311d98b1c095bcf86c19d1f3c4228f27bd22 | 9335cf9a17da7673892c2b849f0884b89e8cdabf | refs/heads/master | 2020-03-19T14:49:10.745441 | 2018-06-08T16:16:18 | 2018-06-08T16:16:18 | 136,640,731 | 0 | 0 | null | 2018-06-08T16:09:54 | 2018-06-08T16:09:54 | null | UTF-8 | Python | false | false | 1,634 | py | # Always prefer setuptools over distutils
from setuptools import setup, find_packages
# To use a consistent encoding
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
# Get the long description from the README file
with open(path.join(here, 'README.md'), encoding='utf-8') as f:
... | [
"pontus.nyman@tobii.com"
] | pontus.nyman@tobii.com |
adb77a3ed74b681351ac695e90d5e55ea1b00919 | 1798ab9a1116022e8517f77f840f93b7f3668198 | /euler056.py | d8d3f8b78c4ce727c0e93114fa55915f563cbba5 | [] | no_license | iynaix/eulerproject | c79e9b37b77fe5e14e1ed23e1fc24121cb757512 | 4d1ba226e2a6d4261ce2cf0d64ebd4b0e538e0b0 | refs/heads/master | 2021-01-19T14:30:17.960934 | 2014-09-29T01:28:39 | 2014-09-29T01:28:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from utils import digits
def euler56():
ret = 0
for a in range(1, 100):
for b in range(1, 100):
ret = max(ret, sum(digits(a ** b)))
return ret
| [
"iynaix@gmail.com"
] | iynaix@gmail.com |
48035def9dc27ef8655ec0557839d1a7558ed009 | 08bfc8a1f8e44adc624d1f1c6250a3d9635f99de | /SDKs/Qt/5.12.3_python_37/msvc2017_64/PySide/PySide2/scripts/uic.py | 1471f24152ba72980656c2caa300f5e965452b38 | [] | no_license | Personwithhat/CE_SDKs | cd998a2181fcbc9e3de8c58c7cc7b2156ca21d02 | 7afbd2f7767c9c5e95912a1af42b37c24d57f0d4 | refs/heads/master | 2020-04-09T22:14:56.917176 | 2019-07-04T00:19:11 | 2019-07-04T00:19:11 | 160,623,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7342dc46431b086d9ffeed1ae7e528d3b0e53a3dc1ccd79003825db7ec8dad8e
size 2880
| [
"personwithhats2@Gmail.com"
] | personwithhats2@Gmail.com |
ac8fff68a489144a8de93d5312a8f51903d2b38c | dc5fd106270d1e81f9eefcc542695c4bb1f8c691 | /customers/migrations/0010_auto_20160411_0245.py | 643d4c1d61597f5db2eafdb5acd5ed8c4a6139eb | [] | no_license | iblogc/backend | 3bd134701cc2a6dbcf4438026693814524f07cc2 | e7a5f85eaa57765cf91a62f022ea64b61ce56ffd | refs/heads/master | 2021-01-21T08:57:36.300994 | 2016-09-21T05:34:35 | 2016-09-21T05:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-11 02:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('customers', '0009_accountkey'),
]
operations = [
... | [
"14841787@qq.com"
] | 14841787@qq.com |
754231c8d6e0ac524b966bfe25b565c8c101d363 | 79859d498c9fbb568f2eae19399a23558c3c6fd1 | /information/views/__init__.py | af1c64d210d93f1b5620c675925cedab6deefd12 | [] | no_license | Kiharaten/VirtualClassRoom | 7d04a57308587735e189d1d1c338b99fca6a3cbe | 170ecb3dbdd54a67496d0d95a8730804570c1a8b | refs/heads/master | 2023-03-13T19:57:24.925622 | 2021-02-19T03:41:50 | 2021-02-19T03:41:50 | 299,920,280 | 0 | 0 | null | 2021-02-19T03:41:51 | 2020-09-30T13:00:54 | Python | UTF-8 | Python | false | false | 367 | py | from django.shortcuts import get_object_or_404, render
context = {
'fixed': {
'sitename': '遠隔授業システム',
'title': '- サイト情報 -',
},
}
# Create your views here.
def index(request):
return render(request, 'information/top.html', context)
def help(request):
return render(request, 'information... | [
"kiharaten1129@gmail.com"
] | kiharaten1129@gmail.com |
3e7df88f0417ba13618a0e02619b628a14db66c2 | f6a9634d65a24731f6c1ef39aaa8e59d974d79b1 | /python/exercises/flowcontrols_conditions.py | 40c8aeda2a920d4caecfe7e5accc6d8f3ee40c40 | [] | no_license | emersonmellado/devopsbc | 653a98526396c88da9cf0e9584d4a4048a9f173c | a99d84fd6569480e6ebf1d95da3844ae2dfafc26 | refs/heads/master | 2022-11-30T09:12:56.915799 | 2020-08-13T04:30:26 | 2020-08-13T04:30:26 | 266,922,507 | 1 | 0 | null | 2022-07-22T07:35:45 | 2020-05-26T02:09:37 | Python | UTF-8 | Python | false | false | 559 | py | """
Syntax:
if CONDITION:
# Condition is True
else:
# Condition is False
Usage: Condition is replaced with an expression
True path: you write logic for the true case
False path: you write logic for the false case
"""
value = input("Give me a number: ")
if isinstance(value, int):
print("All good, keep goin... | [
"emersonmellado@gmail.com"
] | emersonmellado@gmail.com |
890e60f80c689b4b20df4c533f1250dfabacfa0e | f466c7d8dc1034df6dfd150b0468fe2fe45f8565 | /xls2pdf/xls2pdf.spec | 2edd20d4b1b8385715dfd8eeb6765e0d661b8c71 | [] | no_license | MarlboroLeo/utils | ebce4ca300ce4c5fe85c4a03930f12363e08627c | 7bc717cf46d8f39807dd9c294535bb16ece17f0d | refs/heads/master | 2021-06-21T01:39:11.147692 | 2021-03-25T15:51:35 | 2021-03-25T15:51:35 | 194,812,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['xls2pdf.py'],
pathex=['D:\\Leau\\code\\xls2doc'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redir... | [
"mu_zhennan@126.com"
] | mu_zhennan@126.com |
16d79b54d69df57c653a5cc4fbe3d3bba8ccedce | 5f2d270bd8acddc6262a3be4e569e96e83bbf70f | /examples/h2o-classifier/train.py | 5ac44b25a4ab7a3db38a530dd61a4fc30b11f431 | [] | no_license | bchalamayya/promote-python | f42ee55f884b18da298749e01790de20aa5a4b84 | 906bf4b3ee80d5280129be048b2cd1ab83f9f8d2 | refs/heads/master | 2020-04-14T17:57:48.365691 | 2018-11-20T20:59:04 | 2018-11-20T20:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import h2o
from h2o.estimators import H2ORandomForestEstimator
import os
h2o.init()
data = h2o.import_file('iris.csv')
training_columns = ['C1', 'C2', 'C3', 'C4']
response_column = 'C5'
train, test = data.split_frame(ratios=[0.8])
model = H2ORandomForestEstimator(ntrees=50, max_depth=20, nfolds=10)
model.train(x=... | [
"colin.ristig@gmail.com"
] | colin.ristig@gmail.com |
bc8c5f17ce1d0ec1610763eeda69ec813f6f4a2f | 4dbc1e4a7115b834bbf239fd5254adf293b61516 | /vfmflathub/__init__.py | 973ac4103d9eea129e43384235b067edb27a0f4f | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | sharkwouter/vaporos-flatpak-manager | 32d398ec0b66494471d0c63eea088504efa65dd1 | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | refs/heads/master | 2020-07-06T05:34:16.634849 | 2019-10-11T18:23:06 | 2019-10-11T18:23:06 | 202,908,134 | 2 | 0 | MIT | 2019-09-10T14:58:50 | 2019-08-17T16:51:10 | Python | UTF-8 | Python | false | false | 194 | py | from vfmflathub.api import get_applications
from vfmflathub.application import Application
from vfmflathub.flatpak import add_flathub, get_installed_applications, install, uninstall, update_all
| [
"wwijsman@live.nl"
] | wwijsman@live.nl |
f4c6ce59efd1e1f03e2d9705d803ef33a713b166 | e1b0308dc4ba9e412d12e945c31f7f46f524daa4 | /project/image64/models.py | 947999279a351494ff5d2ca946b6ea023600b019 | [] | no_license | loressl/djangorestframework_image_base64 | 8d05d11af8c5802afe287be433714012dfa174e9 | a9078664cc5a3fe5044b65c00497f05fec811ab7 | refs/heads/master | 2022-11-17T16:57:33.727584 | 2020-07-13T22:51:00 | 2020-07-13T22:51:00 | 279,215,223 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.db import models
# Create your models here.
class Image_Base64(models.Model):
image= models.TextField()
def __str__(self):
return self.image
| [
"loryssl@hotmail.com"
] | loryssl@hotmail.com |
a11c6f9099d8b70366f5afa7c539fef9e9c2c750 | 32e97c6f83142d6fc365749a42356e689ea2fa70 | /mk/com/dragan/nupic/result_generators/AbstractResultGenerator.py | 94e470c3b50269e2745870f4e50a4d438e3c7bcd | [] | no_license | inside-dragan/magisterska | 7168f9f8864c2d214cb764abc79d42983c4c0d9b | 334408bc4a89371f8c63880a9865ea2f37054d50 | refs/heads/master | 2016-09-06T06:54:30.052230 | 2013-05-21T21:41:37 | 2013-05-21T21:41:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | '''
Created on Jun 7, 2012
@author: dzaharie
'''
from mk.dragan.config.Params import Params
from mk.dragan.config.ResultContainer import ResultContainer
from mk.dragan.utils.CsvUtils import writeData
from mk.dragan.utils.DatabaseUtils import dbgetlist, dbsetlist
import logging
import os
import shutil
import traceback
... | [
"dragan.zahariev@inside-solutions.ch"
] | dragan.zahariev@inside-solutions.ch |
100f6258f50963233c3177c141a8c294e712e957 | 4a5931556117ceb4cb1a770928a68454658c7bd0 | /Katakana/tests.py | 72105cac7bb31df68b5a4135660bf6a9a336ad1b | [] | no_license | zooyl/JapaneseMemo | 8ce21683eae305667e11b61acd7aeeba8867044a | 9e808bc39be3e9d3c1986eb4c8d8cd7819668a8c | refs/heads/master | 2022-12-15T11:39:40.448575 | 2021-08-11T11:23:38 | 2021-08-11T11:23:38 | 175,037,873 | 0 | 0 | null | 2022-12-08T04:59:08 | 2019-03-11T16:12:41 | Python | UTF-8 | Python | false | false | 5,587 | py | from django.test import TestCase
import django
from django.test import Client
from django.urls import reverse
from django.contrib.auth.models import User, Permission
# app imports
from Hiragana.models import Stats
# Create your tests here.
class PresetsTests(django.test.TestCase):
fixtures = ['Katakana.json', '... | [
"natoniewski.m@gmail.com"
] | natoniewski.m@gmail.com |
e859ec2e54f53f7b9c6871255c5541097f1f8cc2 | 3f23eec5418587e6608af6b1b57a33e88046e750 | /7-gce/config.py | 6228544da2063b36407607663af6c53105b65d50 | [] | no_license | OlexiyVovnyuk/bookshelf | 5830327acb456cbf1947863936520b834aa611db | e53916ae45c9ea7e871a79812fcf5466d25dce9d | refs/heads/main | 2023-04-03T16:55:08.283035 | 2021-04-05T07:37:35 | 2021-04-05T07:37:35 | 354,753,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,494 | py | # Copyright 2015 Google 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, ... | [
"noreply@github.com"
] | OlexiyVovnyuk.noreply@github.com |
aa0d2e6554684c54501f6f150d32cf14d1cc827e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/40/usersdata/136/21959/submittedfiles/funcoes.py | efca9f8ab430ae8fca7e83512158b118f168e4d3 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | #ARQUIVO COM SUAS FUNCOES
from __future__ import division
def calcula_valor_absoluto(x):
if x < 0:
x = x*(-1)
return x
def calcula_pi(m):
expr = 0
i = 1
x = 2
while i<=m:
if 1<=m<=2000: #para m maior ou igual a 1 e menor ou igual a 2000
if i%2==0: #se i for par
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fca8833ff2ffcf10a7e5395e8b705cd0a33fad29 | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/building/DistributedAnimDoor.py | 37bb7065eba4aa04a774aaff39c4ee732815e3bb | [] | 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 | 7,294 | py | from pandac.PandaModules import NodePath, VBase3
from direct.directnotify import DirectNotifyGlobal
from direct.interval.IntervalGlobal import Parallel, Sequence, Wait, HprInterval, LerpHprInterval, SoundInterval
from toontown.building import DistributedDoor
from toontown.building import DoorTypes
if __debug__:
imp... | [
"47166977+peppythegod@users.noreply.github.com"
] | 47166977+peppythegod@users.noreply.github.com |
aa718ed8354abdea50f56b54e171775a136dd57a | dd116fe1e94191749ab7a9b00be25bfd88641d82 | /cairis/cairis/SearchDialog.py | c128364ca182e31bbb94073ecd249cd1315fc760 | [
"Apache-2.0"
] | permissive | RobinQuetin/CAIRIS-web | fbad99327707ea3b995bdfb4841a83695989e011 | 4a6822db654fecb05a09689c8ba59a4b1255c0fc | HEAD | 2018-12-28T10:53:00.595152 | 2015-06-20T16:53:39 | 2015-06-20T16:53:39 | 33,935,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
13728d7d3e4fd069f326f6493d706e6f0df8f729 | dbef97b46cbef9d2a2f9f89f5a4fec7f49875857 | /extract_short.py | 299e8198d35ab78fda0ab4665aebda2303e75829 | [] | no_license | ayu1992/MachineLearning | e1a3626bb60bed98866ea228e27f9310bb2d3102 | f885064160f9f01e1c48edb742f770d264fc645f | refs/heads/master | 2020-06-05T13:58:41.392529 | 2015-03-30T06:09:58 | 2015-03-30T06:09:58 | 33,105,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | with open("/Volumes/YUCHI/ML_anan/movies.txt.txt.txt", "r") as f:
with open("summary_rating.csv", "w") as of:
arr = ["", "", "", ""]
for i, line in enumerate(f):
if i % 100000 == 0:
print i
if line.startswith("product/productId"):
arr[0] = line.split()[1]
elif line.startswith... | [
"yuxx0535@umn.edu"
] | yuxx0535@umn.edu |
2c2c8cb78bcf9652ef11f20e9933579b3cc83471 | 40425604bbd709a80e273e02d62b5925d493fdc0 | /servidor/tests/testsServidor.py | bc06fe590e7e5cb264caeb93cb316140b4f45554 | [] | no_license | mafvidal/UdriveTPTaller2 | b93daa9a44b37048f953f640805b7c67e98d59c6 | 1a1bc28fb7bc2e2e58d36263d99d41fc1ea73f27 | HEAD | 2016-09-06T16:43:35.822346 | 2015-11-24T02:41:00 | 2015-11-24T02:41:00 | 42,020,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,573 | py | #! /usr/bin/python
import requests
import unittest
class TestServidor(unittest.TestCase):
def test_01registrarUsuarioCorrectamente(self):
#No le envio los metadatos del usuario, para simplificar el tests
registrarUsuarioJson = {'Clave': 'MiClave','Cuota': 100500}
#Registro el usuario
salida = requests.post... | [
"mafvidal@gmail.com"
] | mafvidal@gmail.com |
eb8ac1065478d710684981c40c7244e68a8d4b27 | 8469dff9fcfae4ea79af33bf5663c0870e4cea77 | /socket/socket_local/sock_client.py | ab90946c8d20c1a30009df68c49091b2016f1228 | [] | no_license | mrliuminlong/note | 130de6f038fe6c7a7d6991beab4bf965bee8424f | f9b34e79b4d1a467e362a65350422c7fc870d205 | refs/heads/master | 2020-04-19T16:18:01.736696 | 2019-02-13T10:39:39 | 2019-02-13T10:39:39 | 168,300,257 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | #本地套接字
from socket import *
sockfd = socket(AF_UNIX, SOCK_STREAM)
#两端需要使用相同的套接字文件
sockfd.connect("./sock")
while True:
msg = input(">>")
if not msg:
break
sockfd.send(msg.encode())
sockfd.close()
# os.remove(file)删除一个文件
# os os.path.exists()判断一个文件是否存在 | [
"liuminlong2010@sina.cn"
] | liuminlong2010@sina.cn |
2a4891fc504a6b60e310d8e66dfe03173c3f98d5 | 6a2a6408be018ba2772a2888c8b3a7ee6838ddeb | /weechat/python/wee_slack.py | 820f99f2061d275436bb6a7bf7d249a53139de9d | [] | no_license | gicmo/dot-files | c5b4598ffa399936f7d149039e558a89f5de7239 | 6ca9343cad5612e3c6daa61a7c80aa8bbfa01e28 | refs/heads/master | 2023-04-06T07:48:14.453990 | 2023-03-27T14:20:27 | 2023-03-27T14:20:27 | 41,631,064 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 149,634 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from collections import OrderedDict
from functools import wraps
from itertools import islice
import textwrap
import time
import json
import pickle
import sha
import os
import re
import urllib
import sys
import traceback
import collections
import ssl
imp... | [
"christian@kellner.me"
] | christian@kellner.me |
1def8bfa91528ad23d33f5f84710747a8dc3cf57 | c0f86b926fc82baa633862896096c149dd9913cf | /Python/Numpy/Mean-Var-and-Std/Python2/solution.py | 74b8d96a55af697e4421abd696b485c3a4ebf3f7 | [] | 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 | 195 | py | import numpy
n, m = map(int, raw_input().split())
a = numpy.array([raw_input().split() for _ in xrange(n)], int)
print numpy.mean(a, axis=1)
print numpy.var(a, axis=0)
print numpy.std(a, None)
| [
"noreply@github.com"
] | qxzsilver1.noreply@github.com |
7b3e108a66ca87302ccf56e8cdf18d7fb50ce119 | 472f15abd5b889e96e554272e371208c63d044d2 | /blog/urls.py | 2556a4365076550a279151aab7999c127012f975 | [] | no_license | BjoernBerlin/my-first-blog | 499cafdc3c06d998fbbb5c3ad6d72033a1941cd6 | 5cae465941e1764041ed7c0125bccea2037b3725 | refs/heads/master | 2016-09-01T06:06:38.448887 | 2015-10-10T11:22:09 | 2015-10-10T11:22:09 | 43,352,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | from django.conf.urls import url
from .import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>[0-9]+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>[0-9]+)/edit/$', views.post_edit, name='post... | [
"bjoern@lengers.de"
] | bjoern@lengers.de |
54905961f5da67d188acd3d289b59b48346852ab | ebac75f37d7afb53d63d82e173a1f9708e477961 | /rango/utilities.py | 78b927f273b5da82c6702e60af841a48a253534b | [] | no_license | mscienski/rango | adcef6f232aded43be3de0ea505666533ec92d53 | cdc8167f972ea0eb57169921f0159292c904ac19 | refs/heads/master | 2020-06-02T04:06:55.064207 | 2020-03-03T18:55:13 | 2020-03-03T18:55:13 | 21,962,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | __author__ = 'idfl'
def urlencoding(param):
param = param.__str__()
if '_' in param:
return param.replace('_', ' ')
elif ' ' in param:
return param.replace(' ', '_')
else:
return param | [
"michal.scienski@idfl.com"
] | michal.scienski@idfl.com |
fa196682cdbaa35f05d090a579a50930f5be698b | 1af44bdb5f59f5a58ead1094daea44f8d49e015c | /recursion.py | 3d9e66a67a862ee1b0c3a0fe2094d334c86496ce | [] | no_license | KrishnaRekapalli/out-think | 865bf2dba27ac220db084de9c0e5fbe7fc9db2e6 | 94fd32c04e8b4a5755c88dc180a3dc293392c62f | refs/heads/master | 2021-01-10T16:52:30.175292 | 2017-05-29T17:41:20 | 2017-05-29T17:41:20 | 53,183,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | def get_fib(position):
# Write your code here.
if position==0:
return 0
elif position==1:
return 1
else:
fib = [0 for i in range(position+1)]
fib[0] = 0
fib[1] = 1
for j in range(2,position+1):
fib[j] = fib[j-1]+fib[j-2]
r... | [
"noreply@github.com"
] | KrishnaRekapalli.noreply@github.com |
ac25d0db95dee1117ae6fe4b899083d273595bed | df41dbe7691f1b954057b8aa787c988ffcc6692a | /test.py | 94eeb3df1c071bfaf6ec15838838fe0a649e571c | [] | no_license | mago960806/RemoteCheck | 02e55622c1cd2ce1defb70fa64f40c54cd3eff0b | a46d279fa8bca30c29c12d28a445ca5814f76338 | refs/heads/master | 2020-04-01T22:31:00.400213 | 2019-05-09T02:02:10 | 2019-05-09T02:02:10 | 153,712,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from remotecheck import map_with_multi_thread_output_json
host_list = [
[
'192.168.1.1',
'22',
'root',
'admin123'
],
[
'192.168.1.2',
'10022',
'weblogic',
'admin123'
]
]
result = map_with_multi_thread_output_json(host_list)
print(result)... | [
"mago960806@hotmail.com"
] | mago960806@hotmail.com |
f4627a9f0b0e5a3bc6856616a26598590fe7c8db | f9a96f02fb59ebb320d48ae7d266a1ba1bb2f7cc | /ex31.py | 9267bf4cd0e0abe51b98857e138015a5aaec168e | [] | no_license | virtualet/LPTHW | eb54eca5471c179652b1466e604419601a3a082c | e31b703e835640fc9f04ad99b027bcf6d6c1a746 | refs/heads/master | 2021-01-13T01:53:50.027232 | 2014-10-06T22:03:27 | 2014-10-06T22:03:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | __author__ = 'echoecho'
print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input("> ")
if door == "1":
print "There's a giant bear here eating a cheese cake. What do you do?"
print "1. Take the cake"
print "2. Scream at the bear"
bear = raw_input("> ")
... | [
"echoecho@gmail.com"
] | echoecho@gmail.com |
98447ab158842379f6445b580543c5b19f094a29 | e6c65e2e354336a4bea5b6a4ccbccd3682915fe2 | /out-bin/py/google/fhir/models/run_locally.runfiles/com_google_fhir/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/keras/engine/training_arrays.py | 5de18f2e9cb1d7dd00b968bd7ddef3a828ccaf01 | [
"Apache-2.0"
] | permissive | rasalt/fhir-datalab | c30ab773d84983dd04a37e9d0ddec8bf2824b8a4 | 3e329fc8b4226d3e3a4a7c23c306a86e7a9ea0de | refs/heads/master | 2021-10-09T05:51:04.593416 | 2018-12-21T18:11:03 | 2018-12-22T05:38:32 | 162,744,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/0ddaa3627472ad9d1367a008236ce2f5/external/pypi__tensorflow_1_12_0/tensorflow-1.12.0.data/purelib/tensorflow/python/keras/engine/training_arrays.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
86e58c0836f1d5180acbfb2d7d40c1b45183e6e5 | e3f92d9157c5af78aa2ea0a4ea05027a04014b4c | /sampler.py | 18b33f76121e6094887932758f31531682ed5ca8 | [] | no_license | gdesjardins/smlpt | 10c7900ef62f02ca5fcb23313a7ace3f1bf9656c | facf90d522d056f150dfc8874ebf16e0a299fc5c | refs/heads/master | 2021-01-17T11:58:50.311901 | 2014-01-22T22:37:08 | 2014-01-22T22:37:08 | 16,154,636 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,165 | py | import theano
import theano.tensor as T
import numpy
class BlockGibbsSampler(object):
def __init__(self, block_updates, n_steps=1):
"""
:param block_updates: dictionary whose keys are conditionally independent (theano
shared) variables, and whose values are the update expression to use for... | [
"guillaume.desjardins@gmail.com"
] | guillaume.desjardins@gmail.com |
50ddae41737c1856fdea70885af523908cdebab0 | d83fa072a084642ebaa40317dda61f7a2f660284 | /cleancoderscom/gateways/codecast_gateway.py | 89edbc42cf18f413af36449ce9f5bf8e0749df70 | [] | no_license | xstrengthofonex/CleanCodeCaseStudy | 479ca1f0c028f3f481635b23bf44363fd50dec18 | 312aeef9f2127033f2b9e0b4a2c41baf4e6cc01e | refs/heads/master | 2021-01-02T22:55:50.471384 | 2017-08-06T14:36:17 | 2017-08-06T14:36:17 | 99,425,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | from abc import ABCMeta, abstractmethod
from typing import List, Optional
from cleancoderscom.entities.codecast import Codecast
class CodecastGateway(metaclass=ABCMeta):
@abstractmethod
def find_all_codecasts_ordered_by_date(self) -> List[Codecast]:
pass
@abstractmethod
def find_codecast_by_title(self, title)... | [
"xstrengthofonex@gmail.com"
] | xstrengthofonex@gmail.com |
333ed64669224b879c5b0bc36d873a73ef3b7b12 | ecb8f796de591ed38a7a176f54182b074a59768d | /recusion_hanoi_four_pillar_tower.py | ed50cfd0cf376662273157fb7073e0c7ab5e1cfc | [] | no_license | maxianren/algorithm_python | 89d0ebc7e475875b97c5b25da2dc7c2118245af8 | 7218348831af059db69aa02637b85b9d9a799b6b | refs/heads/master | 2023-05-25T09:01:36.798743 | 2021-06-03T12:17:45 | 2021-06-03T12:17:45 | 313,368,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | '''
The issue of the Hanoi Tower originated from an ancient Indian legend.
For the original Hanoi Tower game, there are only three pillars available for players to operate.
As a result, the original legend requires more than 1.8*10^19 steps to solve the problem.
The number of required steps can be greatly reduced by a... | [
"maxianren@gmail.com"
] | maxianren@gmail.com |
acd9a985926faad6a4fcbdf4d441313cd62cd668 | b0741867b842fe177205c2fd714cabd34652ced4 | /crawling/mmtaobao/sexpic.py | dd4edbee55c824bc1e1e6a92158773afc91f5084 | [] | no_license | zdYng/python | 6737ea43b041f57e0d23598cfa2e5e23d5bd11ff | fd074f5700ec9733958e8640eb63af83aac3001f | refs/heads/master | 2021-07-22T13:50:24.745405 | 2020-04-02T02:15:29 | 2020-04-02T02:15:29 | 93,690,795 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | # -*- coding: utf-8 -*-
import requests
import urllib2,re
import os
from mmtaobao.cons import headers
from lxml import etree
from parsel import Selector
import datetime
html =requests.get("http://cl.j4q.pw/htm_data/2/1709/2664044.html")
html.encoding = 'utf-8'
# req = urllib2.Request('http://cl.j4q.pw/htm_data/2/1709... | [
"qianzhongdao@163.com"
] | qianzhongdao@163.com |
ff42b0afb739c60d4ad201d92376e6272401eeb7 | 03a878e126a4645e2ae0d814f7005a9d7eebf6e4 | /backend/schedules/migrations/0033_auto_20200919_1356.py | 7ff43226fbbe650af5d723a604b2aed508eadf21 | [] | no_license | nickfff-dev/GeneSys | d8a471734fe6afba8a968004a204a20bc1d6fcdc | e4972f735234bbf69e77b3cbfd9279e32558ede7 | refs/heads/master | 2023-04-06T05:53:32.842913 | 2021-04-02T14:08:12 | 2021-04-02T14:08:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | # Generated by Django 3.0.5 on 2020-09-19 05:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('schedules', '0032_clinicschedulepatient_appointment_type'),
]
operations = [
migrations.RemoveField(
model_name='clinicschedulepatient',... | [
"abdulmaula.nacan@gmail.com"
] | abdulmaula.nacan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.