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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04f43e8ab0e9d295b14bcbfa4554fa94ce8df0f8 | e4c49a302d522b4230bfdb443c4a292fe5b678d2 | /ex38.py | 20c6e65889da9557926b2ddcd110adb3160812ac | [] | no_license | yangdm2015/learn_python_the_hard_way | d9de2f548d65601859469cf0bb76ed96136ce06b | 7f945b2389cb564e53bfc0968d4a285a345fbbb1 | refs/heads/master | 2021-01-10T01:22:41.136884 | 2016-02-20T10:32:01 | 2016-02-20T10:32:01 | 52,142,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | ten_things = "Apples Oranges Crows Telephone Light Sugar"
stuff = ten_things.split(' ')
print 'Here is stuff: ',stuff
print ' # '.join(stuff) | [
"yangshan503@126.com"
] | yangshan503@126.com |
09bc7adcc515d18792fa05913a8a68f4bad709ad | 9f45343e8aa34745c4b35819daa624568abf92c7 | /api/constants.py | 502da57d64c00353185808743a1f885214f931d4 | [] | no_license | prabhakar1998/restaurant_selection | d50fc120ee2fdec759dfc12373e719bbec240a65 | e63fe089dd7c5f2ba99c6e558ae9eb9824079da9 | refs/heads/main | 2023-05-16T22:01:12.812360 | 2021-06-14T21:03:51 | 2021-06-14T21:10:11 | 374,348,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | MAX_CONSECUTIVE_WINNINGS = 2
| [
"findmebhanujha@gmail.com"
] | findmebhanujha@gmail.com |
4f8cec0f654a36809e0c484a3e7513429f6ff74e | 0d3b16041f49156b45a820c111af33f6b7f5ae90 | /goodsave/models.py | 6b4ff643c89cc38256ecdb644ab471b0cff2be29 | [] | no_license | chuanzhangcyh/StrangeMarket | 0b504c032023a15955d8e383f136b1daa0d64bb6 | bd8e0bc9199b3420d6fa8973e28e6401bf1a38f8 | refs/heads/master | 2023-02-24T21:28:59.205924 | 2021-02-02T13:39:01 | 2021-02-02T13:39:01 | 335,293,333 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.db import models
# Create your models here.
class GoodSave(models.Model):
open_id = models.CharField(max_length=32)
good_id = models.IntegerField()
create_time = models.DateTimeField(auto_now_add=True) # 创建时间
last_modified = models.DateTimeField(auto_now=True) # 最新修改时间 | [
"1015223012@qq.com"
] | 1015223012@qq.com |
885943d426f74accbe87f137a32b7bb6732b1be4 | 3609e9566118cf82de78ce567379d9f39e0f7954 | /twitterbot.py | f0db33d52006e9c01fbd6f226b11d2f4c32882cf | [] | no_license | DeveloperHarris/PythonMLPractice | d00c8dfe11f91633bcc13ed5d52489f0a7474c94 | c5f7dc9b660326674fa5d205f61c9acac86c7e12 | refs/heads/master | 2020-06-10T03:32:06.891415 | 2017-02-19T18:55:51 | 2017-02-19T18:55:51 | 76,099,506 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | import tweepy
from textblob import TextBlob
#authorization info
consumer_key =
consumer_secret =
access_token =
access_token_secret =
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
#search public tweets containing this... | [
"harris.rothaermel@gmail.com"
] | harris.rothaermel@gmail.com |
90c1ea5703f6a090fdf56e2802b2a403cf913366 | 22209fb76ba21a2c381e6bacbeb21d9fa0d92edb | /Mundo01/Python/aula08-017.py | 980663c33340d7cd9f98812c8d171d5deda73a94 | [
"MIT"
] | permissive | molonti/CursoemVideo---Python | cfba0bd1824f547b24cf216811b1447160a47bd5 | 4f6a7af648f7f619d11e95fa3dc7a33b28fcfa11 | refs/heads/master | 2021-05-21T08:09:52.031493 | 2020-04-03T02:22:05 | 2020-04-03T02:22:05 | 252,613,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from math import sqrt
ca = int(input('Cateto 1:'))
co = int(input('Cateto 2:'))
h1 = (ca**2)+(co**2)
h2 = sqrt(h1)
print(f'A sua hipotenusa é {h2:.3}') | [
"molonti@gmail.com"
] | molonti@gmail.com |
fc526b517115f5105dc49480a99ef5a9b3c56011 | 09dc598de26b6007735c22aa64bbd977054340b9 | /t_server.py | 0772e4666edc1908fc0c49e19e797c30b615edb1 | [] | no_license | 327101303/Sproxy | 117a758eda3b6266ad93832d50937fc711d97814 | 80477273a13b822e3d6f781f91d0ceb54da5d392 | refs/heads/master | 2020-03-17T05:54:13.898627 | 2018-05-15T09:06:02 | 2018-05-15T09:06:02 | 133,333,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,189 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from tornado.tcpserver import TCPServer
from tornado.iostream import StreamClosedError
from tornado import gen
import tornado
from tornado import iostream
from tornado import ioloop
import sys
import socket
import select
# import SocketServer
import struct
import string
... | [
"zhangj@ethicall.cn"
] | zhangj@ethicall.cn |
284e563253c0a06dc1a2fbf3e70f0bba6c14e2d0 | a6de5e180451b976164c31acbb51262286cdd205 | /30_days/day7.py | ea3d566be717a06eddf9b5cb8b9dafcfecb4d4ef | [] | no_license | bkemmer/misc | 78d5b7f41acef04b97e073a36af47cd46cf5c015 | 901fdce697d41cfead4041fddcaec5df4e56793c | refs/heads/master | 2021-01-12T08:02:44.358151 | 2017-02-09T17:20:01 | 2017-02-09T17:20:01 | 77,110,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #!/bin/python3
import sys
n = int(input().strip())
arr = [int(arr_temp) for arr_temp in input().strip().split(' ')]
arr_rev = []
for i in range(len(arr)-1,-1,-1):
arr_rev.append(str(arr[i]))
print(' '.join(arr_rev))
| [
"brunokemmer@gmail.com"
] | brunokemmer@gmail.com |
14734f5417042d0dc018df21e7c2288618e2f787 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/FSAF_for_Pytorch/mmdetection/configs/hrnet/faster_rcnn_hrnetv2p_w40_1x_coco.py | c9a800942198281199446b535833fa0b50caaf0e | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,005 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
64d8f64c4f1d385fec3613bf4389a70ab9054e31 | 74e7276c55008f9f392dbfe77ccb43604c048ba5 | /19/demo19.5.py | 2e8131ba0a89e9d5b975137f87035ca1e2aa96d0 | [
"MIT"
] | permissive | BillZong/CorePythonProgrammingDemos | 6cfd7ba129890fa2766961203429c5c20eb48f0b | c97b6f2c1533a3eeaf35d2de39902b95e969a411 | refs/heads/master | 2021-09-15T20:28:52.154021 | 2018-06-10T15:12:47 | 2018-06-10T15:12:47 | 108,109,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,505 | py | #!/usr/bin/env python
# encoding: UTF-8
"""Demo 19.5 for chapter 19."""
# 运用 PFA 的路灯指示牌 GUI 程序(pfaGUI2.py)
# 按照指示类型创建适当前景、背景色的路灯指示牌。使用 PFA 帮助“模板化”常用 GUI 参数。
from functools import partial as pto
from Tkinter import Tk, Button, X
from tkMessageBox import showinfo, showwarning, showerror
WARN = 'Warn'
CRIT = 'Crit'
RE... | [
"billzong2012@gmail.com"
] | billzong2012@gmail.com |
9665365f693e62b8dc7d91943fa26603e997e3c2 | 67956397866409c3ac2ba1c1c33579b04cb97288 | /ML/ch05/runner.py | 650df08a79e21a69264e7ca79b7bbbb79245d554 | [] | no_license | whogopu/ml_nlp_practice | df50cc70100fb77093294e1c5f24a12ba15a24d0 | 9e76ee21f52d88e418c7cb27b9491e874c8f2ba6 | refs/heads/master | 2022-11-20T18:40:24.961872 | 2020-07-03T03:51:51 | 2020-07-03T03:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import LogisticRegression as LR
import numpy as np
dataArr,labelMat=LR.loadDataSet()
# With gradient ascent
weights = LR.gradAscent(dataArr,labelMat)
LR.plotBestFit(weights.getA())
"""
output:
matrix([[ 4.12414349],
[ 0.48007329],
[-0.6168482 ]])
"""
# with stocGradAscent0
weights = LR.stocGradAs... | [
"gopal151295@gmail.com"
] | gopal151295@gmail.com |
345b1b6277d570c99be35b32428422b5a8b249f4 | 85c30319fa7a54414fedae612e287b91ce9f10df | /modulo4_ciencia/bloco_36/dia_1/exercicio_conteudo_5_binary_search.py | 9e877ca8187775517b87952870a5d9a8062a9c18 | [] | no_license | Gustaft86/trybe-exercises | 9892c1ef968c0dd44dd88ad9dbd01123731b96f0 | 5dc2abaa6f6dfd3f3a7b6e305dde6bd090568913 | refs/heads/master | 2023-08-22T19:05:03.570511 | 2021-10-08T22:40:25 | 2021-10-08T22:40:25 | 301,892,171 | 1 | 0 | null | 2021-10-08T22:40:26 | 2020-10-07T00:58:31 | JavaScript | UTF-8 | Python | false | false | 618 | py | # A estrutura deve estar ordenada para que a busca binária funcione
data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
def binary_search_iterative(array, element):
mid = 0
start = 0
end = len(array)
step = 0
while start <= end:
print(
"Subarray in step {}: {}".format(step, str(array[start... | [
"gustavo.fthirion@gmail.com"
] | gustavo.fthirion@gmail.com |
a17a74f63e86ff17cb03d40cb8998710a86dc813 | d993249601f3e8cad3db483873bb1bcd84551cbd | /2019_Mid/Problem_5.py | 9221109dc18908719d11d11d2d97f2f4889f7838 | [] | no_license | HyeonJun97/Python_study | b1721a89af5a9474f3f755ac615eaf7fb67ff876 | dced6dbd5ba44e03f182e39a89323ffbf776a24c | refs/heads/main | 2023-01-19T19:16:09.035135 | 2020-11-19T07:25:43 | 2020-11-19T07:25:43 | 314,167,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | x1,y1= eval(input("첫 번째 점에 대한 x1과 y1을 입력하세요: "))
x2,y2=eval(input("두 번째 점에 대한 x2과 y2을 입력하세요: "))
if x2-x1 ==0:
print("직선의 방정식은 x=",x1)
else:
m=(y2-y1)/(x2-x1)
q=y1-m*x1
print("직선의 방정식은 y=",m,"x+",q)
| [
"noreply@github.com"
] | HyeonJun97.noreply@github.com |
50c8632820c206a0b794122efddaa32dde2a34c4 | 2e9184ce66c7be722a48bf0201679b7dba27baac | /make-ppa | f1992c3b2a1eeb978d48a7fde1a141194f6589d6 | [] | no_license | SonjaCambria/scripts | 3e02f2f72a78e55bf7e281c5aa738dc946e89eac | f2f5444298a2bcee19e193d4d1a0dc4574a7102e | refs/heads/master | 2021-01-18T12:58:42.568481 | 2015-09-22T11:34:09 | 2015-09-22T11:34:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,973 | #!/usr/bin/python
# Creates source packages and uploads them to Launchpad.
#
# Put this script somewhere, then run it from a git repository containing
# sources for a debian package. Resulting packages will be created in a
# subdirectory next to the make-ppa script.
import sys
import os
import subprocess
import re
im... | [
"dain@yubico.com"
] | dain@yubico.com | |
c315b763972e237f11d2cfd87020eda5b905c3b3 | 6e8de6b748e1c43c2730c5888c09816c97a8aa6c | /amib/lab6/main.py | 0c266cd4cd5b5017f5e6da7fab2b1174f5cd4d42 | [] | no_license | maxadamski/wiwiwi | 3f35e9c91430a69a8ad50c6b20efef2fb3cfbb9b | c0545dca29dc37f6e9b65920d8c36174e4b23793 | refs/heads/master | 2023-04-13T10:09:07.440602 | 2023-04-03T20:28:10 | 2023-04-03T20:28:10 | 115,282,771 | 38 | 18 | null | null | null | null | UTF-8 | Python | false | false | 11,785 | py | import argparse
import os
import sys
import numpy as np
from time import time
from deap import creator, base, tools, algorithms, gp
from FramsticksLib import FramsticksLib
import frams
# Note: this may be less efficient than running the evolution directly in Framsticks, so if performance is key, compare both ... | [
"maxadamski98@gmail.com"
] | maxadamski98@gmail.com |
facae761933b2e6e7de763c41d592c3ecbfde2cb | 5f7d6e95b6603cdae58212ed9747b48ad2466d7f | /blog_tutorial/blog/models.py | 9291583caea1330a39a98dde921065ae232d07ad | [] | no_license | Davidy92/my-first-blog | 364c6770258e6b2e5bbe43a294b1fba9b141b584 | f502ee2a298e26e4788c58221cc2d78989977abe | refs/heads/master | 2020-11-27T05:42:38.970891 | 2019-12-22T13:43:31 | 2019-12-22T13:43:31 | 229,325,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | '''
mauto models.AutoField()
mbigint models.BigIntegerField()
mbool models.BooleanField()
mchar models.CharField()
mcoseint models.CommaSeparatedIntegerField()
mdate models.DateField()
mdatetime models.DateTimeField()
mdecimal models.DecimalField()
memail models.EmailField()
mfile models.FileField()
mfilepath... | [
"davidyeritsyan@hotmail.com"
] | davidyeritsyan@hotmail.com |
4dd251ea035235792579097d8424f1d000a713e1 | 46b09f7fb990ce5e1c2830d94e7c2628c2d77d93 | /tests/test_checkers.py | 8e2fe9b4b4b5c9c2af52afa67b182b3cd5117058 | [
"MIT"
] | permissive | lpenz/omnilint | 68b23115c2a5599fffb26eef64db0f40c759641a | 359c5edab904afce19af674691f95645c897c7c7 | refs/heads/main | 2022-11-28T16:44:17.128396 | 2022-11-13T12:57:43 | 2022-11-13T13:27:26 | 81,490,304 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,291 | py | # Copyright (C) 2017 Leandro Lisboa Penz <lpenz@lpenz.org>
# This file is subject to the terms and conditions defined in
# file 'LICENSE', which is part of this source code package.
"""Test checkers"""
import unittest
import omnilint_test_common as common
class TestCheckers(unittest.TestCase):
def test_json(sel... | [
"lpenz@lpenz.org"
] | lpenz@lpenz.org |
05fea1c0bf8f06609868500456114262e1799e79 | 546c1b854b621898946bddc2c696ea631b442c4a | /create_friendship.py | e29e89e0b7f0b0ec8d03bafa66ba4516f1ef7503 | [
"MIT"
] | permissive | agus-sideral/ln-title-generator | 6ecfd08759fec682dfd1c3cb964a9f88c62809c0 | dc7e6896c8d7f83e4b7a3b6c03a10a41464021ef | refs/heads/main | 2023-02-13T04:53:28.773009 | 2021-01-15T17:40:57 | 2021-01-15T17:40:57 | 328,797,407 | 0 | 0 | MIT | 2021-01-14T19:16:51 | 2021-01-11T21:36:22 | Python | UTF-8 | Python | false | false | 666 | py | import tweepy
from dotenv import load_dotenv
load_dotenv()
import os
import twitter
# Connect to Twitter
api = twitter.api()
# Create Friendship uwu (Follow followers)
for follower in tweepy.Cursor(api.followers).items():
if not follower.following and not follower.protected:
api.create_friendship(follower.i... | [
"rabunovels@gmail.com"
] | rabunovels@gmail.com |
2581774072c275bd1ba496c458dc014602629bc4 | f30471b2acf537b4cce3a473296c21d38a8ca3cd | /db.py | 36100be1128296e238b5a383be903d76115eaeeb | [] | no_license | AyahRamahi/cms | 62f3cb0964fa455cef25ec048eb651d9ab460192 | e4c47841f89d000a5251d3019b9b77beb6621dc9 | refs/heads/master | 2023-03-22T13:13:11.329320 | 2020-11-18T22:37:26 | 2020-11-18T22:37:26 | 266,096,725 | 1 | 0 | null | 2021-03-20T04:03:12 | 2020-05-22T11:44:24 | CSS | UTF-8 | Python | false | false | 9,248 | py | import pymongo
import datetime
import bson
from werkzeug.security import generate_password_hash
uri = 'mongodb+srv://admin:admin@cms-nano-lab-a2j1a.mongodb.net/test?retryWrites=true&w=majority'
client = pymongo.MongoClient(uri,maxPoolSize=50, connect=False)
############################################################... | [
"ayah_alramahi@yahoo.com"
] | ayah_alramahi@yahoo.com |
ef66ebc708185c1e459e914ea78f6c1e4dfc9942 | 7438407671d41035fc1896564a7e16e59ba8113d | /ecommerce/settings.py | efa3101984764637215227de619a6c6f6dd00ace | [] | no_license | angela80/tracker | 92643498cbd8d5f30b1056d0f3b9da7841675b3b | 102159a716376698504bb9b0146126ca7c2d33c9 | refs/heads/master | 2020-05-01T05:36:09.544480 | 2019-03-23T15:36:39 | 2019-03-23T15:36:39 | 177,306,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | """
Django settings for ecommerce project.
Generated by 'django-admin startproject' using Django 1.11.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"angeedowling@yahoo.com"
] | angeedowling@yahoo.com |
ba0ca8ac8c75d36e057ce99c43e6a42672d5a477 | f33f90b60f6c454a72e0632cb1ed172ddb40b8d4 | /PyNAU7802/__init__.py | ecd61cd95292c11ae2c5f371b248c68d05228b24 | [
"MIT"
] | permissive | bunderhi/PyNAU7802 | 654354bc8ec22bd203f40d61eb68c68b3d8089ef | 38d3a965ce55d0c983d30814ac854190e2e321f8 | refs/heads/main | 2023-06-18T11:17:23.007154 | 2021-07-10T00:54:01 | 2021-07-10T00:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29 | py | from .NAU7802 import NAU7802
| [
"50412835+BrunoB81HK@users.noreply.github.com"
] | 50412835+BrunoB81HK@users.noreply.github.com |
8ce7541b66b59d98adda5d5aa0c34a877708c105 | 633a4d6e492d9b71ab0a091e5d83f0c6eebd6420 | /baya/tests/views.py | 697169322ff7ec57d2ed9f8da33cecdf3dcd0299 | [
"MIT",
"CC-BY-3.0"
] | permissive | counsyl/baya | d626d3930afa9dd0d21343cf220bcb9f1416af79 | 846a56a0eb6fc869715681b6ffe92301aa4397c8 | refs/heads/master | 2022-11-23T09:32:15.084945 | 2022-02-23T18:32:22 | 2022-02-23T18:32:22 | 51,116,568 | 4 | 6 | MIT | 2022-11-18T05:19:34 | 2016-02-05T00:45:34 | Python | UTF-8 | Python | false | false | 447 | py | from django.http import HttpResponse
from baya import requires
from baya import RolesNode as g
A = g('a')
AA = g('aa')
AAA = g('aaa')
B = g('b')
@requires((AA | B), get=AAA, post=A)
def my_view(request):
return HttpResponse("my_view response")
def my_undecorated_view(request):
return HttpResponse("my_unde... | [
"sbuss@counsyl.com"
] | sbuss@counsyl.com |
4d13ce8598c7756715d0365ee8af1feadd152ca1 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-dcdn/aliyunsdkdcdn/request/v20180115/DescribeDcdnUserDomainsRequest.py | a6ceff3b0d63a8ffec37cd92c60921b739b263ec | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
1a571f39b973c0a7be26b6972ee2da790280f410 | 401398261624f41a0f44196880f50b95b315ea83 | /lib/plot/summary.py | 9a32230671f07cc22d938edcfc1aba960767b253 | [] | no_license | knollejo/BeamImagingAnalysis | 2a3b2d17e091d3d7fde1ff4518cf65799c830828 | 8eed4783e17226fd026e74e7a95c77ae88b63162 | refs/heads/master | 2022-05-30T05:34:47.787552 | 2020-04-28T14:37:49 | 2020-04-28T14:37:49 | 109,983,941 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | """Provides classes for creating summary plots.
SummaryPlot: Plot summary for different models and bcids.
CorrectionSummary: Plot summary of corrections for different models and bcids.
ChiSquareSummary: Plot summary of chisquares for different models and bcids.
"""
from array import array
from ROOT import TGraphErro... | [
"joscha.knolle@cern.ch"
] | joscha.knolle@cern.ch |
8d0c8cc9cc01e3d228f1890675c4f7e08176b7b2 | 806ebdf404c4ee78c36dc78faf344bf7dcf66d63 | /starbucks_analysis_app/__init__.py | 5367a6f8aa30fd678a17e535c5d53a033e4229e9 | [
"Apache-2.0"
] | permissive | matthewgela/udacity-starbucks-ui | b59a6cd56ac3498b3d89daac0d5ecca71f60c157 | d828da17e4de35eefbe58ab56dd1e2704157bf23 | refs/heads/main | 2023-05-05T09:41:08.084220 | 2021-06-04T16:44:07 | 2021-06-04T16:44:07 | 336,858,504 | 0 | 0 | Apache-2.0 | 2021-06-02T23:03:13 | 2021-02-07T18:24:24 | Python | UTF-8 | Python | false | false | 90 | py | from flask import Flask
app = Flask(__name__)
from starbucks_analysis_app import routes
| [
"matthewgela@matts-mbp-2020.home"
] | matthewgela@matts-mbp-2020.home |
6fd5046d2b672d4f207fae03da8e14b2c84b56ac | ffe97db1226d24a2591bb34ce89c83964f11e5b1 | /mariadb/app.py | 9ddbefe57f034b29b05c832d2416dd72644ca7c6 | [] | no_license | sweetfruit77/kgitbank-python | 60fec0aa5616227cf1f03d7a41ff043d44763fe4 | e8213c93e583b55f21bc9404fc0014855a7928f5 | refs/heads/master | 2020-05-04T05:29:35.963902 | 2019-04-06T01:29:20 | 2019-04-06T01:29:20 | 178,985,997 | 0 | 0 | null | 2019-04-06T01:29:21 | 2019-04-02T02:47:22 | Jupyter Notebook | UTF-8 | Python | false | false | 570 | py | from flask import Flask, render_template, redirect,url_for,request
import DBConn
app = Flask(__name__)
@app.route('/login', methods= ['GET','POST'])
def login():
if request.method == 'GET':
return render_template('login.html')
else:
uid = request.form.get('username')
upw = request.form.... | [
"shimseonjo@gmail.com"
] | shimseonjo@gmail.com |
e15796201cccdb83580cf1217070eadd0c82a6d6 | 189bd8fb013506fb53c0422615f3231369feaa7b | /client/models.py | e5a2c771163fd5de8ffe5e2e0eef468027924558 | [] | no_license | aholodoff/living-and-dead | 19443031867b9c04d17ac7f658d7c7392cb53b24 | 209de1ff1667a3962bfa7383f38b72401d6c7ff7 | refs/heads/master | 2021-07-14T03:45:49.189180 | 2017-10-15T19:06:46 | 2017-10-15T19:06:46 | 104,656,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,909 | py | from django.db import models
from django.conf import settings
from django.contrib.auth.models import Group
# РЕГИОНЫ СТРАНЫ
class Region(models.Model):
""" Регион (область, край) """
name = models.CharField(
'Наименование республики/края/области/округа', max_length=80)
def __str__(self):
r... | [
"frost4lex@gmail.com"
] | frost4lex@gmail.com |
d66744191baeac33e55cdf0ea841e436dba3bb7c | e58c656f59f9d8c9f2b5893c6892d1651e028bed | /code_examples/chapter3/find_workers.py | ac5e6a344f737f6c6066cce2110af26688ca8a40 | [
"MIT"
] | permissive | palao/RobustPython | c6f50ed6071b41daa78e933cacc70587308034a3 | dafb95d801dff2c8ff7856ba46d3c052d54e0033 | refs/heads/master | 2023-06-13T05:28:13.156239 | 2021-07-05T23:45:01 | 2021-07-05T23:45:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | import datetime
import random
from typing import List
class WorkerDatabase:
def get_all_workers(self) -> list[str]:
return []
def get_emergency_workers():
return []
def is_available(name: str):
return True
worker_database = WorkerDatabase()
OWNER = 'Pat'
def schedule(worker, open_time):
pas... | [
"patviafore@gmail.com"
] | patviafore@gmail.com |
e2bcd08d485deb596bd260afb3ac629d3a8e9f43 | 5e9ac9c02e1b1b4da7242f10489e849b6141faee | /Python-Programming/Tree/Connect-Same-Level-Siblings.py | ac513e5228574839fc2ca1db3f2d1556c798ad94 | [] | no_license | tuananh8497/technical-interview-prep | e4db316b69c314e25d4784db3922f687e060fdc4 | 8264606adf3da59612d5e4438fbfbfed19b7c93e | refs/heads/master | 2022-12-14T16:51:19.807203 | 2020-09-09T23:24:56 | 2020-09-09T23:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | def connect_next_level(head):
current = head
next_level_head = None
prev = None # keep track of the previously connected nodes
while current != None:
# If the current node has both the left and right child, connect them with each other and with the previously connected nodes
if current.... | [
"le_j6@denison.edu"
] | le_j6@denison.edu |
91d12b3fef71147938beea4f78739d3ed32ac7de | 28c1be1f01ef60151c4236a53bafd0d41763249f | /rango/migrations/0001_initial.py | 97180f752ce6d5acef5de9a3e36a20f92a2d643b | [] | no_license | michellemhey/django-tutorial | 65a533e78c4044bbe04d98fc14701e28c0e1ceb5 | 71b7f44402de596234ac5772f25f340f5eccd01d | refs/heads/master | 2020-03-23T20:48:31.642867 | 2018-07-24T18:33:16 | 2018-07-24T18:33:16 | 142,063,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-07-24 16:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Cre... | [
"michellehey@Michelles-MacBook-Pro.local"
] | michellehey@Michelles-MacBook-Pro.local |
b95a64c2cbd52bc20efcee22d1ed0e8e6a3f7fdd | 44eb4b7c9cb8891cb3544936c7bbf8536eb2714c | /src/912_heapSort.py | c9bd6f8857cb035cb5a18df97e56f559cb46de74 | [] | no_license | xf97/myLeetCodeSolutions | 7a330089e14c6d44a0de0de8b034f2a759c17348 | 5de6aa3977117e59ef69307894e163351b1d88fa | refs/heads/master | 2023-08-18T09:27:09.900780 | 2021-10-18T04:44:36 | 2021-10-18T04:44:36 | 291,883,909 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,641 | py | class Solution:
def sortArray(self, nums: List[int]) -> List[int]:
#干翻腾讯!
#今天手写堆排序
#四个步骤
#主函数调用堆排序
#堆排序里,先初始化堆,再从后向前逐个构造堆
#初始化堆方法,从后向前,从当前i到最后元素构造堆
#构造堆方法,先交换当前最后元素和堆首元素,然后从0到当前元素构造堆
#如何构造堆,从root到尾,在左元素在堆中时,判断下一个要跟根元素比较的元素,然后看是否要和根元素的交换,如果要交换就交换后更改根几点,... | [
"noreply@github.com"
] | xf97.noreply@github.com |
b34a563e353764930fecdd0e6a533e634df2f1bd | 251603f611d9661fcd7b6efa0a4f9b0f6f033b50 | /stock-test_1.0.py | d41fbc07c06947f736f6d19f4eabad5ec0839749 | [] | no_license | Alle-Projekte/Python--stock_information | ec671a7010b47baa8974558f3197ad1e0b9458b9 | 698a59461a3cac47b521fa7c263c95e4df7cb20f | refs/heads/master | 2022-11-07T18:05:35.504074 | 2020-06-28T04:21:22 | 2020-06-28T04:21:22 | 268,558,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,385 | py | '''
The goal of this program is to extract a list of stock symbols from
an Excel file, get it's information from Yahoo Finance, and store
it in a new Excel file. BTW idiot, this is the 1st-file. Learn how to
document next time -_-, and come up with better names for these god damned
variables. Some of them make no ... | [
"facts82@yahoo.com"
] | facts82@yahoo.com |
0323b8f4d610f2595f5e7520f90ac1a246c98bc1 | f10abd5892380587f6e649c9cf49c2331361410e | /kaggle_competitions/molecular_activity/src/utils.py | db5882b4915c168bf9f22419c948862ced435716 | [] | no_license | Pthinker/DataProjects | 3ff2dc7c048e77781a0240dd2a9827f91f689cc6 | d9a565b5e43a36f6c14f102b014c85980c1cd110 | refs/heads/master | 2020-12-24T17:17:42.301945 | 2018-02-06T18:56:01 | 2018-02-06T18:56:01 | 9,349,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 937 | py | #!/usr/bin/env python
import numpy as np
import config
def read_train(fpath):
fh = open(fpath)
header = fh.readline().strip()
arr = header.split(",")
descriptors = arr[2:]
molecules = []
act = []
matrix = []
for line in fh:
line = line.strip()
arr = line.split(",")
... | [
"davidzhang.seu@gmail.com"
] | davidzhang.seu@gmail.com |
0c9dc0dd6c141afb46104b5b979626f540012553 | 220a4579178017aa984ee41a01ecdf1d17cae2e0 | /poker/scraper/backup/ui_table_setup.py | e6d576ace8f367c2b4a3b757f6006bed4f73f246 | [] | no_license | jinyiabc/Poker | 6f4bc2bbb0fcb2092a5b4935732db5be7243274e | 86401e6eebff5431992b506eccd94cb6b5497dce | refs/heads/master | 2021-08-20T05:09:14.495827 | 2021-06-09T01:35:26 | 2021-06-09T01:35:26 | 170,704,274 | 0 | 0 | null | 2019-02-14T14:29:13 | 2019-02-14T14:29:13 | null | UTF-8 | Python | false | false | 77,217 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_table_setup.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 im... | [
"jinyiabc@gmail.com"
] | jinyiabc@gmail.com |
de80fb420fc2beab227568af7d0bd7c23d052d4e | b80f33578744f5a168044aa6fe6def79f4a4271f | /cnn-activation2.py | 5be8b79c5a51fb4bdbf09f5234dc6dceece71e14 | [] | no_license | KVonY/Yikai-11747-HW1 | 69cab72eaac21f35292edb294dfd555b26c2eaf1 | 8a732731cb57d49d3e2dc20ffefa58e258543e7c | refs/heads/master | 2020-04-23T09:50:27.710437 | 2019-02-17T05:01:36 | 2019-02-17T05:01:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,187 | py | from collections import defaultdict
import time
import random
import torch
import numpy as np
import io
class CNNclass(torch.nn.Module):
def __init__(self, nwords, emb_size, num_filters, window_size, ntags, weight_matrix):
super(CNNclass, self).__init__()
""" layers """
# self.embedding =... | [
"ZaloeVan@fengyikaideMacBook-Pro.local"
] | ZaloeVan@fengyikaideMacBook-Pro.local |
77db28cb2c03ee4b05ac6fea38a0a9f15bf844ea | 492e28a444c19e851a695eb99f682becf0231fdd | /Deployment/test2/test2/urls.py | ef6413dc0707a5808604b05466185763848db8e7 | [
"MIT"
] | permissive | meddhafer97/Telecommunication-project | 39cab81efce1b8362cf499a8602b523642ec68e3 | 30a732f817c6573b596806470e54f0e2e9cd0c59 | refs/heads/master | 2023-08-05T22:02:38.546553 | 2021-09-24T13:45:01 | 2021-09-24T13:45:01 | 403,689,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | """test2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"79045282+meddhafer97@users.noreply.github.com"
] | 79045282+meddhafer97@users.noreply.github.com |
0cd9e581d7624e32f3b77d8b0b3cfdb11476d7af | aeac59dd8036bf185999d04f1a737e13ae191665 | /confusion_matrics.py | 1450cb1affa04e067f65e19d28db9ab309acd834 | [] | no_license | MohamedAmineOuali/Facial-Emotion-Recognition | 1b66e6dd314b24f20aba9c74c1035e9f02fc66ed | ffa6f5189d503b2d7da658aee5926c00f6811827 | refs/heads/master | 2020-03-22T10:26:43.598930 | 2018-07-05T21:38:32 | 2018-07-05T21:38:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py | import numpy as np
import matplotlib.pyplot as plt
import os
from data.load_data import load_val_data, load_training_data
from models.simple_cnn_model import SimpleCnnModel
from models.vgg_models import Vgg16Model
model=SimpleCnnModel(False,sequence=True,stateful=True)
dataPath="weights/simple_cnn_based/sequence... | [
"M.Amine.wali@gmail.com"
] | M.Amine.wali@gmail.com |
dcc5f2c0e93f1fb9799f6546eb4f6dcabab8b319 | 1a5da758ab873850b8bf499f075af28ebb8803ed | /nvim/rplugin/python3/denite/source/neoyank.py | a16c4637ff665273893202cdd6575653dceadcfc | [
"MIT"
] | permissive | orokasan/dotfiles | 2e81d2912df8f3581b42e8a12d64a3b0bbabeed0 | deb3e652987678c03b4bccad531c16b8ed848682 | refs/heads/master | 2023-04-08T09:02:38.957604 | 2023-03-23T09:48:30 | 2023-03-23T09:48:30 | 173,042,953 | 6 | 0 | null | 2020-03-07T10:43:10 | 2019-02-28T04:49:38 | Vim script | UTF-8 | Python | false | false | 847 | py | # ============================================================================
# FILE: neoyank.py
# AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
# License: MIT license
# ============================================================================
from .base import Base
import re
class Source(Base):
def... | [
"fuu989@gmail.com"
] | fuu989@gmail.com |
0f6de30274e02c69ccbdbea3b6adf7ffb5b5c177 | 86367f34851c3c88a41894a99bc67b97c082c734 | /src/root/nested/MakeParallelNetwork.py | e2399a8b1cae971f08f570e1ab25b6740aae752c | [] | no_license | klyap/StreamPy-UI | d1d6a40a113e399471fddce8f94bb3737021a906 | f41be5d4a98534b4434fde05d1543c547136994f | refs/heads/master | 2020-04-09T21:25:11.970675 | 2015-12-04T06:14:17 | 2015-12-04T06:14:17 | 41,704,201 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,679 | py | from Stream import Stream
from Stream import _no_value, _multivalue
from Agent import Agent
#from OperatorsTest import stream_agent
#from MakeNetworkNew import make_network, network_data_structures
from OperatorsTestParallel import stream_agent
from MakeNetworkParallel import make_network, network_data_structures
fro... | [
"kl.yap@hotmail.com"
] | kl.yap@hotmail.com |
93f27067b99b2ce7b9bd942570d3e16f18af2a23 | a382716034b91d86ac7c8a548a63d236d6da8032 | /hat/vector_control/migrations/0028_auto_20190628_1342.py | 69e7538031083c08b287d73a41b2abda708d0631 | [
"MIT"
] | permissive | lpontis/iaso | 336221335fe33ca9e07e40feb676f57bbdc749ca | 4d3a9d3faa6b3ed3a2e08c728cc4f03e5a0bbcb6 | refs/heads/main | 2023-08-12T20:34:10.823260 | 2021-10-04T07:34:50 | 2021-10-04T07:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # Generated by Django 2.0 on 2019-06-28 13:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("vector_control", "0027_auto_20190628_1129")]
operations = [
migrations.AlterField(
model_name="apiimport",
name="import_type",
... | [
"tech@bluesquarehub.com"
] | tech@bluesquarehub.com |
89a0ab975274ecd7bf88d0a14565525dbbc67930 | 8ebbd4f3fb5301e97a8dce308e8a80b882108384 | /graphs/bfs/level_order_traversal_ii.py | 63fe86794b2d095ce39d5fa0eba617461138e94f | [] | no_license | GlassWall/leetcode | 6cde12382fabe28faa69b46b132ffde6e61a7a90 | 67297847ecc903bc519cdee0d7f8fb44524612f9 | refs/heads/master | 2022-11-25T05:45:58.586880 | 2020-08-05T14:57:16 | 2020-08-05T14:57:16 | 283,156,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def levelOrderBottom(self, root: TreeNode) -> List[List[int]]:
if root == None:
... | [
"karthikravirsb@gmail.com"
] | karthikravirsb@gmail.com |
16acc72525b2877d1c19433043ba5271cca5eb14 | 30fd9ecf6225fc4262f3932cc9cb9e63dc61aff2 | /tempCodeRunnerFile.py | 0792349a2e6e2dd8f7935fa253092c849cb15d4b | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maks-p/dsc-1-07-07-object-oriented-shopping-cart-lab-nyc-ds-career-031119 | 8032164958b77c604fef0b6bb1a1dba5ed1f98e2 | 41d4e7f8a15bc2e55081e44d071ea53b9a9fc98e | refs/heads/master | 2020-04-29T04:59:17.895983 | 2019-03-16T17:28:33 | 2019-03-16T17:28:33 | 175,866,098 | 0 | 0 | null | 2019-03-15T17:41:40 | 2019-03-15T17:41:39 | null | UTF-8 | Python | false | false | 113 | py | def median_item_price(self):
# sorted_items = sorted(self.items)
# if len(sorted_items) % 2 == 0: | [
"mpazuniak@gmail.com"
] | mpazuniak@gmail.com |
37ca1c69a64c4b1c4e76037148a8135167a0c93a | 7988457eb7021288ec89f7090cff7d27925f3f1f | /accounts/urls.py | 40aefcb9a904c7acd726ce7639f5d0b89ef9dfc1 | [] | no_license | DelroyBrown28/nueui-blog-template | cf292f3f2d3a2138a1260ca2b6c89af2b384002d | 226f978ec0821d9c5d86311d03ed572d5bfb480e | refs/heads/main | 2023-06-28T03:24:15.974189 | 2021-08-05T20:23:36 | 2021-08-05T20:23:36 | 393,127,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | from django.urls import path
from . import views
from django.contrib.auth import views as auth_views
from .forms import UserLoginForm, PwdResetForm, PwdResetConfirmForm, PwdChangeForm
app_name = 'accounts'
urlpatterns = [
path('password_change/', auth_views.PasswordChangeView.as_view(
template_name="regis... | [
"delroybrown.db@gmail.com"
] | delroybrown.db@gmail.com |
e731b850003ce572dd84f80bac91daefa4dddaa4 | bb091b112ea1a5d9c081ff06d485510dce0f865b | /app/config/secure.py | b4d2b6c71074dac4d6da9f1d8caf4ad021129aa5 | [
"MIT"
] | permissive | wuqiufeng/TopSolid-cms-flask | ad09b80b4b1764b6981765966c7be11e1d103933 | c90c8b246be98355e05bf8b046388803dfd9266c | refs/heads/master | 2020-11-26T19:57:07.526002 | 2019-12-31T09:08:11 | 2019-12-31T09:08:11 | 229,193,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py |
# 安全性配置
from app.config.setting import BaseConfig
class DevelopmentSecure(BaseConfig):
"""
开发环境安全性配置
"""
SQLALCHEMY_DATABASE_URI = 'mysql+cymysql://root:ace123@127.0.0.1:3306/lin-cms'
SQLALCHEMY_ECHO = False
SECRET_KEY = '\x88W\xf09\x91\x07\x98\x89\x87\x96\xa0A\xc68\xf9\xecJJU\x17\xc5V\xbe\... | [
"rootfuhongzhu@163.com"
] | rootfuhongzhu@163.com |
bb389fcb42c582660b2afe6a9d80c2f28e77bb65 | ccd0aa895fe2f59a6053718ef78ecbe5f641f863 | /ex1.py | 6986148dc338babd96911befeb637a13be5222d8 | [
"MIT"
] | permissive | sriharivaleti/learn-python3-thw-code | 447550c0909cc2fc454d335accaf0262d4e9faeb | d373a9d944196ae0cf7df23d2f1f681b56f8e40c | refs/heads/master | 2022-11-09T21:28:32.082237 | 2020-07-04T10:34:17 | 2020-07-04T10:34:17 | 277,088,037 | 0 | 0 | MIT | 2020-07-04T10:28:39 | 2020-07-04T10:28:38 | null | UTF-8 | Python | false | false | 191 | py | print("Hello World!")
print("Hello Again")
print("I like typing this.")
print("This is fun.")
print('Yay! Printing.')
print("I'd much rather you 'not'.")
print('I "said" do not touch this.')
| [
"zed.shaw+github@gmail.com"
] | zed.shaw+github@gmail.com |
5c2268fe17969ab984f92eb53f373906b88b1c3a | 7a482133553ff2416794ec99992b0a649d0e3bb1 | /21Hour/21.py | e97135fa2112ef2091ce7900549ff3d0b62df50c | [] | no_license | aeron7/tessa | a3868242092cfa4f5265ce12e2ad7a208748e7da | 981af88479cb3b25abca35987e9206e7b07ce429 | refs/heads/main | 2023-06-11T21:09:05.074819 | 2021-07-09T14:30:22 | 2021-07-09T14:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,326 | py |
from multiprocessing import Pool
from pprint import pprint
from jugaad_trader import Zerodha
import pandas as pd
import pytz
from datetime import datetime, timedelta
import csv
import requests
print("Om Namahshivaya:")
kite = Zerodha()
# Set access token loads the stored session.
# Name chosen to keep it compatibl... | [
"noreply@github.com"
] | aeron7.noreply@github.com |
934deec4b292e6fa10a2c0c9b75f4b0d1ecbfcaa | b4ca99fdb2e7f5da8eb559adf647a0bc69e2d7c5 | /StandardSpider/SpiderRulesMap/Panasonic/CCT2016110400000005.py | 50eb7cadfff9fdfa4eca07e2cd273175415ce8d7 | [] | no_license | RoyalClown/MyPython | 4f6b68e0f5f883c187cf8253df0c5feeab3de8fd | baf13612d8d36e519ce54825c4b664597789128a | refs/heads/master | 2021-01-11T13:29:30.332280 | 2017-05-31T02:56:07 | 2017-05-31T02:56:07 | 81,513,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | """
@description: 此单号与松下导电性聚合物钽固体电解电容器 (POSCAP)对应
@author: RoyalClown
"""
from DataAnalyse.dbDataGet.Util_data import DataProcessing
from DataAnalyse.file_download.img_download import ImgDownload
from DataAnalyse.file_download.pdf_download import PdfDownload
from Lib.DBConnection.OracleConnection impor... | [
"421581115@qq.com"
] | 421581115@qq.com |
103e6b6eeaaadf0b180cac71a97824dd983c6e08 | c76779dd4682cdf252623a193d735a8893e872f2 | /gs72/student/views.py | ddc28608005e88530c26ec017dfa43a3b0c337b9 | [] | no_license | sailendrachettri/learning-django | fef240aa19303d876f760a5641d9d15b2716b61b | 3c413628f0f4a3a560fa5c56a5228260c50e0230 | refs/heads/main | 2023-03-28T22:18:24.620614 | 2021-04-10T11:04:40 | 2021-04-10T11:04:40 | 355,099,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | from django.shortcuts import render
def setsession(request):
request.session['name'] = 'Sonam'
request.session.set_expiry(10) #Expire in 10 seconds
return render(request, 'student/setsession.html')
def getsession(request):
name = request.session['name']
# print(request.session.get_session_cookie_a... | [
"sailendra9083@gmail.com"
] | sailendra9083@gmail.com |
95472e497ca618aca3dd60dc0316048909aed9c6 | 7f2207627b2808b76bbb10b870f0567b2ead64b6 | /agconnect/agro/weather.py | 293536ba73b575a25bba2805a9eecf38088a94b7 | [] | no_license | wcookie/AgConnect | 0c412265ceb8a07fd674453cca0595f5186c05cc | 700a8e2e48c3fdfee310080d79ab40fc1c25d156 | refs/heads/master | 2021-01-10T01:37:40.094792 | 2016-02-21T15:24:19 | 2016-02-21T15:24:19 | 52,139,590 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | import requests
WEATHER_SOURCE_KEY = "152730b019699f58c11e"
def try_weather(lat, longi):
base_url = "https://api.weathersource.com/v1/" + WEATHER_SOURCE_KEY
| [
"wyattcook2018@u.northwestern.edu"
] | wyattcook2018@u.northwestern.edu |
c82aba47a0e215c5028b4413f8a55519ba6d0ddd | c5e6122d8d739afe50e334883cd0a3b3363ff9a7 | /supervisor/dbus/network/connection.py | 2a273cb31abd26555369aa464f393ac3c6e613a5 | [
"Apache-2.0"
] | permissive | tastenmo/supervisor | f9ca7b4684f8c08154bff27afcf8e1f14af672b0 | ef5b6a5f4c94302fb8df4e01416219ac4e4b98b8 | refs/heads/main | 2023-09-05T00:06:42.050829 | 2021-10-19T09:26:58 | 2021-10-19T09:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | """Connection object for Network Manager."""
from ipaddress import ip_address, ip_interface
from typing import Optional
from ...const import ATTR_ADDRESS, ATTR_PREFIX
from ...utils.dbus import DBus
from ..const import (
DBUS_ATTR_ADDRESS_DATA,
DBUS_ATTR_CONNECTION,
DBUS_ATTR_GATEWAY,
DBUS_ATTR_ID,
... | [
"noreply@github.com"
] | tastenmo.noreply@github.com |
30172d10d393b33cdae969d91e33f9c65cd100bc | 11181fec04389375bad720a409fc2bcfd6cd35f9 | /ex5.py | 8befc99c373181f1b0fefa55699cdf7aae61ee1d | [] | no_license | DanielGorski/Learn-Python-The-Hard-Way | 8a1aa0724624da4c8fc775a49d296ffa9662926c | 13f7f0df4def9153d2d52f90cf82e45e875fe2f8 | refs/heads/master | 2020-04-24T20:59:24.105840 | 2019-02-23T20:53:47 | 2019-02-23T20:53:47 | 172,262,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #Example 5 from Learn Python the Hard Way 2018-7-13
name = 'Zed A. Shaw'
age = 35 # not a lie
height = 74 # inches
weight = 180 # lbs
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print(f"Let's talk about {name}.")
print(f"He's {height} inches tall.")
print(f"He's {weight} pounds heavy.")
print("Actually he's not too ... | [
"DanGorski7@gmail.com"
] | DanGorski7@gmail.com |
fc588cfd5fd8bd56c711bb4fdb2931229a2a9ca4 | 4dc56e3a980f8a60b7c3f8e938d648905aa3fcba | /code/pyqgis/gui/save_attributes_dialog.py | b54f1d05919d5ec4f120c2455f9650cc1be19edd | [] | no_license | spatialthoughts/courses | e7de4985da57d199a97b895c931f1ed774872302 | be887ed1a74407131e42287d9411412ba0619a15 | refs/heads/master | 2023-08-29T21:05:49.873828 | 2023-08-24T11:52:56 | 2023-08-24T11:52:56 | 217,205,928 | 36 | 19 | null | 2023-09-02T13:01:34 | 2019-10-24T03:45:23 | Jupyter Notebook | UTF-8 | Python | false | false | 365 | py | import os
from PyQt5 import uic
from PyQt5 import QtWidgets
FORM_CLASS, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'save_attributes_dialog.ui'))
class SaveAttributesDialog(QtWidgets.QDialog, FORM_CLASS):
def __init__(self, parent=None):
super(SaveAttributesDialog, self)._... | [
"ujaval@spatialthoughts.com"
] | ujaval@spatialthoughts.com |
b84415b00df0635282f30b96086af8660c67b489 | ef6229d281edecbea3faad37830cb1d452d03e5b | /ucsmsdk/mometa/sw/SwSubGroup.py | c426f0abffac3af41808abc46ce47362dc52dc61 | [
"Apache-2.0"
] | permissive | anoop1984/python_sdk | 0809be78de32350acc40701d6207631322851010 | c4a226bad5e10ad233eda62bc8f6d66a5a82b651 | refs/heads/master | 2020-12-31T00:18:57.415950 | 2016-04-26T17:39:38 | 2016-04-26T17:39:38 | 57,148,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,956 | py | """This module contains the general information for SwSubGroup ManagedObject."""
import sys, os
from ...ucsmo import ManagedObject
from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta
from ...ucsmeta import VersionMeta
class SwSubGroupConsts():
LIC_STATE_LICENSE_EXPIRED = "license-expired"
LIC_STATE... | [
"test@cisco.com"
] | test@cisco.com |
6cfad16c21f58f2d65891d650566167822810235 | 9d6ba09c8c85259525e032627cfb4e16ed0883a9 | /fonts/DejaVuSansMono_20.py | 7fbae4ef383bbffc938a72f782baf84c3b9a0f17 | [
"MIT"
] | permissive | ironss/micropython-lib | b24744c44cb04d7f759da572a94aafe71333ad3d | 61719636dad9aaa581c8e39e71ccc515e75c2d43 | refs/heads/master | 2020-06-29T16:42:53.383626 | 2019-10-29T13:03:04 | 2019-10-29T13:03:04 | 200,569,031 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 16,330 | py | # Code generated by font-to-py.py.
# Font: DejaVuSansMono.ttf
version = '0.26'
def height():
return 20
def max_width():
return 11
def hmap():
return False
def reverse():
return False
def monospaced():
return False
def min_ch():
return 32
def max_ch():
return 126
_font =\
b'\x0b\x00\x... | [
"ironss@users.noreply.github.com"
] | ironss@users.noreply.github.com |
4887499dd7d6ba58377157d5fbabd448f931cd46 | 078bc261847e155d3f8cca2dcc0d2f363eedc84d | /server/server/create_db.py | 46ec34febb45cdb70b659d610c642c09690e68b1 | [] | no_license | SinyTim/PriceChecker | 96bbbe9154c959375c8b6d08f4958c27c348e936 | 4720e35b2a87b6c236631d77d8a1b3ab31bf47a8 | refs/heads/master | 2022-04-01T04:25:50.737771 | 2020-02-04T21:00:36 | 2020-02-04T21:00:36 | 194,554,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | from app import db
from app import Product
from app import Store
from app import User
if __name__ == '__main__':
db.create_all()
store0 = Store(address='г. Минск 0000')
store1 = Store(address='г. Минск 0001')
user0 = User(name='Тимур')
user1 = User(name='Слава')
products = [
Produ... | [
"sinytim@mail.ru"
] | sinytim@mail.ru |
08bfd5060f4a0c9c22d5426ff027ee50bc243201 | b15919c8f9ae25a46e116ed4c01157baffefbd02 | /setup.py | ff6e4f50621d86f01b0c36bedcfb9145319e32ae | [
"CC0-1.0"
] | permissive | Rested/django-tabular-export | 556919279546b3da00cac983b2bd7b9be5d57e17 | bf3f3612a52d456e868b2df1871fc523f31317e9 | refs/heads/master | 2021-01-02T09:13:51.143993 | 2017-08-03T00:03:44 | 2017-08-03T00:03:44 | 99,171,042 | 0 | 0 | null | 2017-08-02T23:53:19 | 2017-08-02T23:53:18 | null | UTF-8 | Python | false | false | 1,258 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import absolute_import, division, print_function
import os
import re
import sys
from setuptools import setup
readme = open('README.rst').read()
setup(
name='django-tabular-export',
version='1.0.2',
description="""Simple spreadsheet exports from Dja... | [
"cadams@loc.gov"
] | cadams@loc.gov |
7e352db04f5190ac30729e62f8c9a86f397adb88 | b94fd62e07517f2ce957944b68bf2d5b45d44b03 | /src/model.py | be157646d833ea369188822ce3b855ad32acb37e | [
"MIT"
] | permissive | luzpaz/floor-planner | 405ae92482347218ae88270bb4bfcef12e3f747c | 971334bb7054232035411419910bc860d5da9206 | refs/heads/main | 2023-02-21T15:51:38.510887 | 2021-01-14T20:36:16 | 2021-01-14T20:36:16 | 322,641,479 | 1 | 1 | MIT | 2020-12-18T16:03:58 | 2020-12-18T16:03:58 | null | UTF-8 | Python | false | false | 16,918 | py | import math, sdl2, sys, threading
from actions import AddAction, DeleteAction
from collections import deque
from entities import Line, Window, Door, UserText, RectangularEntity
from entity_types import EntityType, ModelMutex
from threading import Lock
from tools import Tools
class Model:
"""Contains the applicati... | [
"fby1@pitt.edu"
] | fby1@pitt.edu |
01f3f17a63579224f4d0ef5150061e175bb6dd44 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /dbpedia/models/drama.py | 872325e9ffb7b36418df93e3025bd0a2a48432c2 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,267 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from dbpedia.configuration import Configuration
class Drama(object):
... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
6c9e791386589630f38aa7ffd33c9322cf2502d6 | 709f7fafb1e6f9be16513de005b11766b4b62b85 | /hw6/solve.py | dd93010c5d919da1f24a1e2795d737ca2ee70b4b | [] | no_license | k123321141/ctf | d785d0b2c3b4860f1db37c8dd70d1ef487373166 | 12f6289a1301566b596c77efd5b36170a7bc8b5a | refs/heads/master | 2021-10-23T05:15:00.089299 | 2019-03-15T02:26:50 | 2019-03-15T02:26:50 | 105,388,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #!/usr/bin/env python
'''
ais3_crackme has been developed by Tyler Nighswander (tylerni7) for ais3.
It is an easy crackme challenge. It checks the command line argument.
'''
import angr
import claripy
def main():
project = angr.Project("./eggReverse2")
#create an initial state with a symbolic bit vector ... | [
"kk123321141@gamil.com"
] | kk123321141@gamil.com |
758432203fb57a0647f9fde6d47d73957a24fbd2 | 096be1cd22299ba0f3cddb474f965a6e72710c87 | /dajaxexamples/urls.py | cad298d6f73a0546122c05a42faeef07731eadc5 | [] | no_license | DarioGT/DAjax | 3f0a43e21ce8d4f9692e09cc5a67e8c1851fcc7f | f90efd6dd9b727aadec124af244884385e176b8e | refs/heads/master | 2020-05-07T14:36:32.085962 | 2011-08-20T03:43:12 | 2011-08-20T03:43:12 | 2,232,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | from django.conf.urls.defaults import *
from django.conf import settings
from dajaxice.core import dajaxice_autodiscover
dajaxice_autodiscover()
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',)
urlpatterns += patterns('',
... | [
"dariogomezt@gmail.com"
] | dariogomezt@gmail.com |
c75fc1c0d2e46c634eca757db0ac01e73c5b9a7c | 4c016963d77c9dbe53941d6d2cd493008d2b5909 | /homework/hw5/hw5.py | 65350a646052d313e0dcdf892bb808266a139011 | [] | no_license | diemacre/machine_learning_projects | b98c17f090a140efa0fb2676393f9047372cfdd6 | c52188a42af8f3015833dd491829b0993b580c29 | refs/heads/master | 2020-04-13T06:18:15.977300 | 2019-05-19T23:35:05 | 2019-05-19T23:35:05 | 163,016,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | ve#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Nov 16 17:44:06 2018
@author: diego
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas
import sklearn.metrics as metrics
import scipy
import sklearn.svm as svm
import statsmodels.api as sm
import statsmodels.stats.weightstats as s... | [
"dmartinc2009@gmail.com"
] | dmartinc2009@gmail.com |
e951c143495204bff5313da8af9c3748f160624c | 0529c424f9cc9558524bed12d40322b7727cb383 | /code/draw_ruler.py | beb3874112795c16b857eb42f69ab55d07a06d6c | [] | no_license | leovam/algpy | 00f2a595f8e07029df6b8d8e3d7f66c49b3d2c7f | c6311d1f629edec3584761f57b5c4013d19f0208 | refs/heads/master | 2020-04-25T19:26:40.241177 | 2019-05-30T01:49:41 | 2019-05-30T01:49:41 | 173,020,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | def draw_line(tick_length, tick_label=''):
"""Draw one line with given tick length (followed by optional label)"""
line = '-' * tick_length
if tick_label:
line += ' ' + tick_label
print line
def draw_interval(center_length):
"""Draw tick interval based upon a central tick length"""
if c... | [
"leovam171@gmail.com"
] | leovam171@gmail.com |
bd155feeb7bcbb41b267ab9de609286408bc6b1e | 127fa3dd454434b4c7526afe161177af2e10226e | /剑指offer/字符流中第一个不重复的字符.py | 74cdc18011e3ffac030cf214191a1b06bda50b9b | [] | no_license | lunar-r/sword-to-offer-python | 966c46a8ddcff8ce5c95697638c988d83da3beab | fab4c341486e872fb2926d1b6d50499d55e76a4a | refs/heads/master | 2023-04-18T18:57:12.126441 | 2020-11-29T09:51:23 | 2020-11-29T09:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # -*- coding: utf-8 -*-
"""
File Name: 字符流中第一个不重复的字符
Description :
Author : simon
date: 19-3-20
"""
# -*- coding:utf-8 -*-
class Solution:
# 返回对应char
def __init__(self):
self.dic = {}
self.queue = []
def FirstAppearingOnce(self):
# write code here
... | [
"2711772037@qq.com"
] | 2711772037@qq.com |
a98eec40823238def86e6b7e39a535c126f77352 | 1fe08ef06ba163ce41bc665b2d9868774a222bdd | /Lab-12.5.py | 824b5c007160b1f13f4b40111d90a236b16331c3 | [] | no_license | ShaneRandell/LAB12 | 9a7fd436074ce86dd0750e82eff7b7746e5a02eb | 99cf482d49c98894b6bf11905916742d8e55c657 | refs/heads/main | 2023-04-01T13:04:09.937016 | 2021-04-05T18:47:42 | 2021-04-05T18:47:42 | 354,922,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import cv2 as cv
import numpy as np
img = cv.imread('lines.jpg')
gray = cv.cvtColor(img, cv.COLOR_BGR2GRAY)
edges = cv.Canny(gray, 50, 120)
minLineLength = 20
maxLineGap = 5
lines = cv.HoughLinesP(edges, 1, np.pi/180.0, 20, minLineLength, maxLineGap)
No_lines,a,b = np.shape(lines)
print(No_lines)
for index in range(No... | [
"noreply@github.com"
] | ShaneRandell.noreply@github.com |
63776206d1c774a7744c1ab535eaaa36fc8365bb | ddf3332875770229c3f02f878f4f5b205eb3722c | /meerkat/writers/abstract.py | a688aae4559c95af3eb717cbe996163413349530 | [
"Apache-2.0"
] | permissive | abidlabs/meerkat | 8c330cfe9085d36ef970f98cb272261f1c6c3476 | a5f40ac8738845a1b3f7981f02c9d515722a9e66 | refs/heads/main | 2023-06-29T05:43:21.951603 | 2021-06-28T17:41:08 | 2021-06-28T17:41:08 | 392,415,449 | 0 | 1 | Apache-2.0 | 2021-08-03T18:24:22 | 2021-08-03T18:24:21 | null | UTF-8 | Python | false | false | 777 | py | import abc
class AbstractWriter(abc.ABC):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def __repr__(self):
return f"{self.__class__.__name__}"
def __str__(self):
return f"{self.__class__.__name__}"
@abc.abstractmethod
def open(self, *args, **kwa... | [
"noreply@github.com"
] | abidlabs.noreply@github.com |
940b8ad58f623c59bcfc92f10be21cc0192216b7 | 778974c722faa2151ce359b368567d569dca6b03 | /utils/awrams/utils/remote.py | abe124c876685f6e9060cfa02eedc3da9885d005 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-generic-cla"
] | permissive | muguangyuze/awra_cms-1 | aff8a1d8f48eab147b623c3c828763f969cbfe58 | c4c1ca7c55161b051141e7207c121203bed90c68 | refs/heads/master | 2020-04-03T14:25:27.690913 | 2018-04-09T23:33:55 | 2018-04-09T23:33:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,674 | py | import paramiko
import os
from getpass import getpass
import re
import copy
class Interactor:
def __init__(self,ssh_client):
self.client = ssh_client
def __call__(self,command):
stdin, stdout, stderr = self.client.exec_command(command)
err = [k.strip() for k in stderr.readlines... | [
"david.shipman@bom.gov.au"
] | david.shipman@bom.gov.au |
0c43353b180feaf31b0f238a00b26c793c3b5632 | e828d4fcaf9eec2bfc4c51980428068e797f5929 | /ABC/abc144/a/main.py | 9641140c7796bc7fc9e4a307dec636fdc66f846f | [] | no_license | sfus/try-AtCoder | c53694b9bcba5be1ef6f3a47a6b3c0b727becc16 | 1d5a3c7648b5b309b1fa05826b4f7e608d6629fa | refs/heads/master | 2022-11-21T19:36:15.056633 | 2020-07-22T16:08:11 | 2020-07-25T02:20:45 | 198,068,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | #!/usr/bin/env python
a, b = input().split()
if len(a) == 1 and len(b) == 1:
print(int(a) * int(b))
else:
print('-1')
| [
"sfus.dev@gmail.com"
] | sfus.dev@gmail.com |
4316c9cf00ec0e66cefb7d75872a232fb2b7d7b9 | 9a5e5536ecacbce585617ac991361484e086105e | /ps/swea/0319/tester.py | c6ebc69bce6fae59ec7cd348f24e6e3a162002bf | [] | no_license | kingssafy/til | 8bc938f9fc2525e2efb6025a587ec03536f8bf2a | 50ecf62465dfa7db57711b1a6130cbaaed90af30 | refs/heads/master | 2020-04-16T10:03:50.568961 | 2019-04-23T11:55:34 | 2019-04-23T11:55:34 | 165,488,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | import sys
sys.stdin = open("code_input.txt")
code = {
"0001101": 0,
"0011001": 1,
"0010011": 2,
"0111101": 3,
"0100011": 4,
"0110001": 5,
"0101111": 6,
"0111011": 7,
"0110111": 8,
"0... | [
"inmak@INMAKs-MacBook-Air-2.local"
] | inmak@INMAKs-MacBook-Air-2.local |
a502c8a11e80b706364583bb727874910781f564 | 3645e5fed01bee5945b0ab0ec6380826db5b4a2f | /infinitescrolling/infinitescrolling/infinitescrolling/spiders/ScrollScraper.py | 8e74646a2c0b4187b3020854c67193b002941ca0 | [] | no_license | aespois/scrapyfundamentals | d3162cc19d1f9a45c7d6706458308b6349eb7b7a | 2f30aaec29a3a4dc389b8ca5e9c5a04467cf2e36 | refs/heads/master | 2021-06-09T04:59:47.262858 | 2016-12-05T16:49:47 | 2016-12-05T16:49:47 | 202,208,492 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import json
from scrapy import Request, Spider
from infinitescrolling.items import QuoteItem
class ScrollScraper(Spider):
name = "scrollingscraper"
quote_url = "http://quotes.toscrape.com/api/quotes?page="
start_urls = [quote_url + "1"]
def parse(self, response):
quote_item = QuoteItem()
... | [
"attila@scrapingauthority.com"
] | attila@scrapingauthority.com |
cb70c83ee58695be816e6ca2a7018f4ceafc932b | ee195f726d717a8866966914fbe1199b6a5c83e7 | /ptree/management/commands/create_experiments.py | f141f34e469ef564f3ff4c9a65d81b4828af7652 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | rnehmer/django-ptree | 57cc670672b981b36b2d3a2dfa6683c0b3c84059 | afb513138be24432c0283fb6b331349db1de77b8 | refs/heads/master | 2021-01-22T16:56:49.825345 | 2013-12-02T07:48:25 | 2013-12-02T07:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,501 | py | import ptree.common
from django.utils.importlib import import_module
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from ptree.sequence_of_experiments.models import SequenceOfExperiments
class Command(BaseCommand):
help = "pTree: Create a sequence of experiments.... | [
"c.wickens@gmail.com"
] | c.wickens@gmail.com |
44e7dbeaea4968e3a57b662359309cb6fff1c5ba | 38b19d85d492b25f550f381f13df0217bce5a154 | /pset7/mario/more/mario.py | 59fd9eaf4e18082b97f2bc11ff774d075166f872 | [] | no_license | OolongTea0/CS50 | 8b1948b6a599c6399beac09546dda12121f15647 | d11ffefe3356f48107c579ef967506efd8723977 | refs/heads/master | 2020-08-10T06:12:21.249846 | 2019-10-10T21:07:25 | 2019-10-10T21:07:25 | 214,279,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from cs50 import get_int
x = 0
while x < 1 or x > 8:
x = get_int("Height: ")
for i in range(x):
#Makes beginning spaces
for j in range(x-(i+1)):
print(" ", end="")
#Creates first pyramid
for j in range(i+1):
print("#", end="")
#Makes the space in the middle
print(" ", en... | [
"you@example.com"
] | you@example.com |
05b4df401f64144d9147a616b5ff5ac94d0b0eac | 3f91729694722e686950dcc1b9b8bfeb0de9e6c9 | /13.py | 3f4c91cfabfe99d029a68e01227fe6177476f208 | [] | no_license | Howardman2/Hello-World | 21e1be32de397ec2f1f24621435ebbc5e63f77ba | 827831fe887ad402045ba6944791b6475bec4e12 | refs/heads/main | 2023-08-14T06:19:16.256266 | 2021-09-16T04:19:36 | 2021-09-16T04:19:36 | 407,016,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | print('Welcome to TRUE or FALSE')
print ('Please answer with yes or no')
Truth = input('Mr Gallo is the best: ')
if Truth !='yes':
print('wrong')
if Truth =='yes':
print('Correct!')
Falth = input('Coding is dumb: ')
if Falth =='yes':
print('WRONG')
if Falth !='yes':
print('Correct!')
Truce... | [
"noreply@github.com"
] | Howardman2.noreply@github.com |
d952d17243c044a9fb65819c255151b9165338ea | 3afda5855f23a2931b386692340829161625a88b | /assignments/week14/Day05/Q4.py | 04f3e8f01a172c3189f78d1d7dd96c1484d69dfc | [] | no_license | mastan-vali-au28/My-Code | 8ed8617806c1e5e8944d56e81fd6481e2875935a | 0ee6f43d1289c9fbf0ce4e4c29b44de38a036111 | refs/heads/main | 2023-07-07T18:52:10.013933 | 2021-08-13T13:18:48 | 2021-08-13T13:18:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | """
Q-4) Remove Duplicates from Sorted List (3.75 marks)
https://leetcode.com/problems/remove-duplicates-from-sorted-list/
(Easy)
Given the head of a sorted linked list, delete all duplicates such that each
element appears only once. Return the linked list sorted as well.
Example 1:
Input: head = [1,1,2]
Output: [1,2]
... | [
"roopamjoshi63@gmail.com"
] | roopamjoshi63@gmail.com |
b562d629e6105bf261dd7b3377d268efe1f0cb04 | 721ba9724a60997b4b4761b3a3c8931ae3a949a9 | /ipfs_video_index/database.py | 60f4b31e5a614ac44b1992affcc519e45394799f | [] | no_license | bneijt/ipfs-video-index | f058416e45ff2f8e9877e81fd88200281bf0bafb | 555c5d25fe95456dd4e5aa9ca0b04aa8736633e2 | refs/heads/main | 2023-07-26T02:24:40.108876 | 2021-08-21T20:22:54 | 2021-08-21T20:22:54 | 395,742,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import sqlite3
from dqp.queue import Project
def open(project: Project) -> sqlite3.Connection:
database_folder = project.state_folder("db")
return sqlite3.connect(database_folder.child("index.db"))
def create_schema(db) -> None:
# db.execute(
# "create table if not exists digest_sha1(digest tex... | [
"bram@neijt.nl"
] | bram@neijt.nl |
7a2ee23165915ec526ae1ff7686151ec37f514ba | d2f93e46dbb76c77387b71ca3f74c811bbbda40d | /python/435.py | 7408b89bd1850603dafbd4eb05749b72ae0dd58a | [] | no_license | jsanhuo/LeetCode | 10f587b92579c5690f016d38ad283b2ec5c9bf80 | 5d1ffe6234ac5c4ec34333c3bbd23a02184e18f2 | refs/heads/main | 2022-07-13T00:03:14.703108 | 2022-07-05T04:48:23 | 2022-07-05T04:48:23 | 150,763,782 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | #time:6120ms;memory:17.9MB
class Solution:
def eraseOverlapIntervals(self, intervals: List[List[int]]) -> int:
if not intervals:
return 0
intervals.sort()
n = len(intervals)
f = [1]
for i in range(1, n):
f.append(max((f[j] for j in range(i) i... | [
"1483104508@qq.com"
] | 1483104508@qq.com |
39552add32829ee18f94dfec22ba9a0c53d45774 | 78675b8be1223892f94b9138bb28f2de3d14cc73 | /defcon/blacksheep/core/dialog/findingcategory.py | 07a9e2a1a8bdee0ec05cedcbb158aade78936c08 | [] | no_license | anitha2012/evandrix.github.com | fb1aebae5616eb95b8ed026004b2e87d87942c9e | 062a274f1f5d2b578193642bb5da742e6a9ba555 | refs/heads/master | 2021-01-24T17:18:48.163247 | 2012-03-19T02:58:59 | 2012-03-19T02:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | #!/usr/bin/env python
"""
BlackSheep -- Penetration testing framework
by Romain Gaucher <r@rgaucher.info> - http://rgaucher.info
Copyright (c) 2008-2010 Romain Gaucher <r@rgaucher.info>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License... | [
"evandrix@gmail.com"
] | evandrix@gmail.com |
20cdb823c6baaf795d153aa1eb3036e981329dc3 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_209/441.py | 2cd2a8af66ca17a00cd200e90fd5cd85cfeeec63 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | from math import pi
from typing import List, NamedTuple, Dict, IO, Tuple
from pathlib import Path
class Pancake(object):
radius: float
height: float
def __init__(self, radius, height):
self.radius = radius
self.height = height
@property
def lateral_surface(self) -> float:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
4e94afdcc0766552cf05d34691bf5b5eb6b461b8 | 4e4c27eb76970148210ea1ad2c7b896ff48ed88e | /PPlay/tiledtmxloader/helperspygame.py | ee93b4256cb08350ba2a603b9054276a5040bac5 | [] | no_license | matheus-erthal/a-fuga-do-dce | 27d4b4c91c85a87350e1ee5f092669c283ce5082 | 6f196e99cbed586877dd93c9364ae2e4d2e60476 | refs/heads/master | 2020-12-21T09:52:16.909268 | 2020-01-26T23:41:33 | 2020-01-26T23:41:33 | 236,392,424 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41,619 | py | # -*- coding: utf-8 -*-
"""
TileMap loader for python for Tiled, a generic tile map editor
from http://mapeditor.org/ .
It loads the \*.tmx files produced by Tiled.
This is the code that helps using the tmx files using pygame. In this
module there is a pygame specific loader and renderer.
"""
# Versio... | [
"matheusamancio@id.uff.br"
] | matheusamancio@id.uff.br |
77f0dd58da5e0eddc9f8369bdb0307b5df704ce7 | 7c787d84548b41ffb89c389fbaf5c62a055ab3cc | /dvid_to_neuprint/generate_SynapseSet_to_SynapseSet.py | b0ffd5a9e23e3961c75f375e74f1a38853bc91f9 | [
"BSD-3-Clause"
] | permissive | Rachmanimir/neuPrint | bfe59dddfc7343a7e8ea0053d781650a41a92348 | be02fc15b8f0e5fb19087fa70a614e6d739ec98d | refs/heads/master | 2023-03-30T07:06:44.299852 | 2020-12-17T13:48:32 | 2020-12-17T13:49:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | #!/bin/env
# python generate_SynapseSet_to_SynapseSet.py Sorted_All_Neuprint_Synapse_Connections_6f2cb.csv > Neuprint_SynapseSet_to_SynapseSet_6f2cb.csv
# ------------------------- imports -------------------------
import json
import sys
import os
import io
import time
import numpy as np
from tqdm import trange
from n... | [
"umayaml@umayaml-lm5.hhmi.org"
] | umayaml@umayaml-lm5.hhmi.org |
650cba3189b9484bb2e97f5fd53feb6ac412a035 | 81a4f3d1590e9819daad1a3fd8c495bf0b4b83d4 | /ex11.py | 0c915a073161b164ffcbdf6d93992d3ede25b34c | [] | no_license | zhenghaoyang/PythonCode | 3095bab963184871f220666f32f442599e7ef5e3 | 7eb54de019bfa1cbf07b0e027a63e27b3819bda8 | refs/heads/master | 2021-04-15T12:13:14.309026 | 2018-04-08T09:41:23 | 2018-04-08T09:41:23 | 126,296,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | # --coding: utf-8 --
print "How old are you?",
age = raw_input()
print "How tall are you?",
height = raw_input()
print "How much do you weigh?",
weight = raw_input()
print "Which book do you like most?",
book = raw_input("input:")
type(book)
#单引号需要被转义,从而防止它被识别为字符串的结尾。
#How old are you? 11'11"
#How tall are you? 11... | [
"532425107@qq.com"
] | 532425107@qq.com |
348a5ec1394a57134114eaf45d1db281e11f2089 | 65cc0da41bbe5ab78530775aa95f7d3732c3193d | /protos/gen/python/protos/public/uac/Organization_pb2.py | 6136ad83b3579ea77617ea8ce4d72932a77fac8c | [
"Apache-2.0"
] | permissive | NaiboWang/modeldb | 0bc9bf0fc2c0605c982532af1251d81dc2e9bd53 | 43faa8266f7134404fe5cb21954a477ed5963300 | refs/heads/master | 2023-03-27T21:20:49.150239 | 2021-04-01T10:42:19 | 2021-04-01T10:42:19 | 345,637,902 | 0 | 0 | Apache-2.0 | 2021-04-01T10:42:19 | 2021-03-08T11:48:41 | null | UTF-8 | Python | false | true | 41,804 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: uac/Organization.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as ... | [
"noreply@github.com"
] | NaiboWang.noreply@github.com |
ccf7fd5776954f3438b3e7293e5bb7bca2b7282e | d1d067bad6b65e2be1b5488d5abd17c0e9cd1756 | /perdiem/accounts/forms.py | 20c24d3c8095715aeabec489decb0b29cd15f5bd | [] | no_license | localastronaut/perdiem-django | 7b84cf34b83a49cc4695b735321f52eb2be01260 | c273dc6fda5533c52710cde0f196886369b36c9d | refs/heads/master | 2021-06-13T14:31:54.089816 | 2016-05-24T06:13:10 | 2016-05-24T06:13:10 | 59,598,476 | 0 | 0 | null | 2016-05-24T18:31:19 | 2016-05-24T18:31:18 | null | UTF-8 | Python | false | false | 3,694 | py | """
:Created: 5 April 2015
:Author: Lucas Connors
"""
from django import forms
from django.conf import settings
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
from django.core import validators
from accounts.models import UserAvatar
class RegisterAccountForm(User... | [
"lucas.revolutiontech@gmail.com"
] | lucas.revolutiontech@gmail.com |
42d4b344f2de8a111e67e56a51287107102826fb | 001e9919220e498046af29831df057fdfac62a1b | /BOJ/py/4095.py | c6fdb7794521c93ae2e46f1cff6a284fa4cbbd0d | [] | no_license | jaehaaheaj/PS | 5b4f72c9d56a6e8fcbee59d20a49594a03ed15d8 | 6a8655f1d32407951e738e3de8960706637bac39 | refs/heads/main | 2023-06-14T05:39:27.960154 | 2021-07-06T09:43:41 | 2021-07-06T09:43:41 | 378,353,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | # tag: DP
while 1:
a,b=map(int,input().split())
if a==0:break
l=[[*map(int,input().split())]for _ in range(a)]
m=max([i[0] for i in l]+l[0])
for i in range(1,a):
for j in range(1,b):
l[i][j]*=min(l[i-1][j],l[i][j-1],l[i-1][j-1])+1
m=max(l[i][j],m)
print(m)
# rela... | [
"jaehaaheaj@gmail.com"
] | jaehaaheaj@gmail.com |
6bdc776a7e698bf3b035915ee1f7b6dbda4a67e8 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/sickness/symptom.py | 52006bc352ee9d3ed06718c4bacdc35442f84d57 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,162 | py | from sims4.localization import TunableLocalizedStringFactory
from sims4.resources import Types
from sims4.tuning.instances import HashedTunedInstanceMetaclass
from sims4.tuning.tunable import HasTunableReference, TunableReference, TunableSet
from sims4.tuning.tunable_base import GroupNames
import services
class Sympt... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
31a172f1ae913af6bcb4718877641f6db91db7d3 | 686781cbf18d2a34a3bb9c902c29f96402fbe032 | /classes/types of variables.py | 17febd50b16538a0e65a1cd2c9474361dd3835f7 | [] | no_license | arvind-mocha/Python-Basics | 962c4088361aee89b53f47f4d8e925b12722e0ee | 6f079543b4cf69c18ed65e5b618851d24f36e716 | refs/heads/main | 2023-05-10T13:55:53.459362 | 2021-06-17T12:35:13 | 2021-06-17T12:35:13 | 343,633,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | #there are bsically wo types of variables
class cars:
wheels=4 #class variables they are shared by each object they are also called static variable
def __init__(self):
self.mil=10 #object/instance variables they are also shared by ach objct
obj=cars()
obj1=cars()
obj.wheel=200 #obj cant re... | [
"arvindarvind2210@.com"
] | arvindarvind2210@.com |
20b8873fcc50f9d04d84b748f25dc8536b9e4ac6 | 342b3a308c50b9cea752c4dd1efa0b11c42e3f14 | /remove_green.py | dd8689a12bc830c147d42c7458bd30e71c7ac155 | [] | no_license | eggplants/mice-cable-remover | 7133a9de7335c588bd4ef8bafcf666a310697af0 | dd3795c3af230ce925a14eafd8d395e30e016571 | refs/heads/main | 2023-07-15T03:33:23.859098 | 2021-08-31T06:56:48 | 2021-08-31T06:56:48 | 385,130,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | #!/usr/bin/env python
from glob import glob
from typing import Tuple
import cv2
import numpy as np
datas = glob('data/*') + glob('../data_with_cable/*')
for i, n in enumerate(datas):
print(i, ":", n)
s = input("enter number: ")
cap = cv2.VideoCapture(datas[int(s)])
def make_hsv_range(low: Tupl... | [
"w10776e8w@yahoo.co.jp"
] | w10776e8w@yahoo.co.jp |
543cc8985e89061a52b22fd93b9d4694a0b4d2bc | 33058c8d32939c215ecbab9995fd68284d08f014 | /starwarsdemo/settings/dev.py | 6a973cd139d3d955fc5c2aa3d0b409e7d1ae6e79 | [
"MIT"
] | permissive | stwdmwars/starwarsbckintegration | a5f8638422d17c9c5c82d267fe45fc8c394a522b | 5ca91716a3fc1ebd02e7d7c86fc666f4f46d7f2b | refs/heads/master | 2022-12-10T19:17:51.464996 | 2019-10-09T04:55:48 | 2019-10-09T04:55:48 | 213,822,847 | 0 | 0 | MIT | 2022-12-08T06:45:18 | 2019-10-09T04:45:20 | Python | UTF-8 | Python | false | false | 188 | py | # pylint: disable=missing-docstring
# pylint: disable=unused-wildcard-import
# pylint: disable=wildcard-import
from starwarsdemo.settings.base import *
DEBUG = True
ALLOWED_HOSTS = ['*']
| [
"parvinder@mediccreations.com"
] | parvinder@mediccreations.com |
bfa6920ade78bcf81d6e424648d0adf7b69ba0bd | e89c6ecd408fab32a53299ba5f07f475d53dea68 | /Lab7/lab7-q2.py | b807dbba1f8cd042fd7e46b9d356f93bdd84505a | [] | no_license | angelazb/CSCA20F19 | 3847fb9869aa4353df9475ded1257fb5e8839206 | f13fb040aeb92303921dcd181eb79b3f0dc501b6 | refs/heads/master | 2020-09-11T08:36:20.481406 | 2019-11-15T23:08:37 | 2019-11-15T23:08:37 | 222,007,549 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | # Enter the input number
number = input("Enter a number: ")
# Convert the item into an integer
number = int(number)
# Create a new list
my_list = []
# Repeat until number = 0
while number > 0:
# Add number to the list
my_list.append(number)
# Change number -1
number -= 1
# Print the list
print(my_list) | [
"angelazb@Angelas-MacBook-Pro.local"
] | angelazb@Angelas-MacBook-Pro.local |
b9de752ee9bdc24bd6431bf1cc4d1211806e0174 | eded2d739d5a1e0c9e20a6cccd58f3d91e863ddb | /visualize.py | fd9051fe0618d2ac1236d6f2b55ddc024a08ef09 | [
"MIT"
] | permissive | Abhinav43/LaMP | aa3f090c91f8dc4aa0f9f52dd8f2a929711ae8c2 | a277c1ff39409bcd61b236698a2355eaf4fea366 | refs/heads/master | 2020-05-17T11:29:15.356064 | 2019-04-10T21:00:29 | 2019-04-10T21:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32,975 | py | import argparse
import math
import time
# from pdb import set_trace as stop
from tqdm import tqdm
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
from torch.autograd import Variable
import models.Constants as Constants
from models.Models import Transformer
from models.Opti... | [
"jacklanchantin@gmail.com"
] | jacklanchantin@gmail.com |
2ebf1866f674c31898499d21661717a82ac7cfb2 | 44c7a640538d14235d197ac6115a92f1b02f8e4d | /volunteer_web/volunteer_web/wsgi.py | 7080d88857e54ed16fe03391da68c3d2717e76f9 | [] | no_license | LucyYYW/volunteer | a916712ba7a6eb393276e5f5226f92b7f57db266 | c2256559234b436fe396d8ccca7e4ab2baeb1b6e | refs/heads/master | 2021-08-23T04:03:35.912647 | 2017-12-03T05:11:11 | 2017-12-03T05:11:11 | 109,551,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | """
WSGI config for volunteer_web 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"frankpengyuan@gmail.com"
] | frankpengyuan@gmail.com |
4d393f36f862945d3419726d34170ab00450523e | 3570b26c21488f633ea3356bf40edb9c399c7d08 | /mysite/settings.py | 9e7d7b0aafb3ef1963d9dde07511a2f7029626e9 | [] | no_license | VolchyokVladislav/djpr3 | a49d5177ce7577ce354e1c0ba8daa22f4dea2495 | b25f24cb983007b0d069824c96909460a939c3a5 | refs/heads/master | 2021-08-14T05:27:40.291933 | 2017-11-14T17:04:43 | 2017-11-14T17:04:43 | 110,272,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"volchyokvlad@tut.by"
] | volchyokvlad@tut.by |
68374d9fe2f5c1f61ae2cfdac1547bcd21120714 | 8a7ffae96734a50744a4adad2980a1335e0f3acc | /fitness/migrations/0001_initial.py | 620055d06aecef5bc9eae7304a3f487def5867d2 | [] | no_license | yashsinghbishen/Sarvesh_project | 4b84900f83322129a75ccfeacbc6797198638f05 | 4f3e6cb148a7cd5cfb15d9d9f75c18d9a150bd85 | refs/heads/master | 2023-08-11T21:00:02.707366 | 2020-04-09T16:02:56 | 2020-04-09T16:02:56 | 250,279,010 | 1 | 0 | null | 2021-09-22T18:47:07 | 2020-03-26T14:20:30 | HTML | UTF-8 | Python | false | false | 3,142 | py | # Generated by Django 3.0.4 on 2020-03-15 08:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BodyPart',
fields=[
... | [
"yashsinghbishen@gmail.com"
] | yashsinghbishen@gmail.com |
b452f5f7d06d655b2ca4c9ca4c5156cd3f023229 | bbec931b6dec14c351452c31bdbff9197e6caee2 | /src/models/detail_predict.py | 16717e693b452504b5faf41e1b033cbdc5da5070 | [] | no_license | cassiomedeiros/face-recognition-pca | 2ab83c9512849f9f609beb246a864f6445bd1298 | b3fec6582e7d6d8417e880a6731d5557c24b94eb | refs/heads/main | 2023-01-16T04:36:35.514923 | 2020-11-25T03:58:17 | 2020-11-25T03:58:17 | 315,482,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,468 | py | import numpy as np
import matplotlib.pyplot as plt
class DetailPredict():
def __init__(self,
predict_label: int,
predicted_image: np.array,
original_label: int,
original_image: np.array,
confidence: float,
... | [
"kssiomedeiros@live.com"
] | kssiomedeiros@live.com |
d4e462a1702b757706b9bacaa9ff5de9da0d4f4e | 68f4c7fad89ec1ec7d11fcb2371d1253fa7ddf8f | /Exercicio 3 - Listas.py | 5b542f318f72e2663b6959a28dc3bb3ef8c657ed | [] | no_license | otaviohenrique1/python-projetos | f204e6bb9ded3e412de3acedd2b2dd4b38ef1ebc | 40e71c8aed862187110fc7cad255f7cd5f9b69f5 | refs/heads/master | 2021-02-19T09:01:34.274369 | 2020-03-06T00:56:04 | 2020-03-06T00:56:04 | 245,298,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,313 | py | #Exemplo de lista
x = ['1','2','3','4','5','6']
y = [1,2,3,4,5,6]
c = ['a','b','c','d','e','f','g']
j = [15,25,35,45,55,65]
k = [100,215,33,48,45,164]
#Imprime lista
print (x)
print (y)
# Varrendo a lista
for a in j:
print (j)
# Trocar o último elemento
x[-1] = '9'
# Incluir item
x.append('10')
# Re... | [
"noreply@github.com"
] | otaviohenrique1.noreply@github.com |
b74c0a7f4c3244164cddaffb4b61145a15f9aa9b | 08f7c200e6737326bb2a69c06c8dddd03240b1d7 | /house_turtle.py | e88d576c878e293ca3c7c7927b654e26c26fdf68 | [] | no_license | Yogeshpandey01/Python_GUI | ff3a378505fda1f20285ada6c13cf309ff83dc35 | 0e58e99d6bcd96e82ddf41d7c8113e35962811b5 | refs/heads/master | 2020-12-22T08:14:56.387279 | 2020-05-04T10:15:36 | 2020-05-04T10:15:36 | 236,722,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import turtle
import math
#set background color
screen = turtle.Screen()
screen.bgcolor("skyblue")
#creat out turtle
george = turtle.Turtle()
george.color("pink")
george.shape("turtle")
george.speed(2)
#define a function to draw and fill a rectangle
def drawRectangle(t,width ,height, color):
t.fillcolor("red")
... | [
"59746038+Yogeshpandey01@users.noreply.github.com"
] | 59746038+Yogeshpandey01@users.noreply.github.com |
ce305113ff2d36d87b9ac6a540fa3e96f94b8bd4 | 3f719f9f3efbf6d08195001c8b5cc768e541cdc5 | /model/models.py | 5a97e658857c89efa0417d21f9202ccf70161b06 | [] | no_license | ask95/CS395T-DeepLearning-Fall17 | c138509d9d9d7ed65ab04a9d7a7fed003a101085 | d07314ed47c8e7c2124e3f3b70ad8051b775cc5c | refs/heads/master | 2021-07-13T01:22:27.718325 | 2017-10-09T23:14:12 | 2017-10-09T23:14:12 | 103,861,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
input_shape = (171, 186, 1)
num_classes = 109
def get_model1():
model = Sequential()
model.add(Conv2D(32, kernel_size=(3, 3),
activation='relu',
... | [
"picsou@login1.maverick.tacc.utexas.edu"
] | picsou@login1.maverick.tacc.utexas.edu |
7503e989dac759ff91b5aeb29d5011778c7eebb4 | bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4 | /sage/src/sage/modules/free_module_integer.py | e852b907c656890d00520c300bab78d4d1102dac | [] | no_license | bopopescu/geosci | 28792bda1ec1f06e23ba8dcb313769b98f793dad | 0d9eacbf74e2acffefde93e39f8bcbec745cdaba | refs/heads/master | 2021-09-22T17:47:20.194233 | 2018-09-12T22:19:36 | 2018-09-12T22:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,901 | py | # -*- coding: utf-8 -*-
"""
Discrete Subgroups of `\\ZZ^n`.
AUTHORS:
- Martin Albrecht (2014-03): initial version
- Jan Pöschko (2012-08): some code in this module was taken from Jan Pöschko's
2012 GSoC project
TESTS::
sage: from sage.modules.free_module_integer import IntegerLattice
sage: L = IntegerLat... | [
"valber@HPC"
] | valber@HPC |
95a585c5b4d9c5b6708275b6961fe7d8177a942a | c1aa8134217bcdd0eeb1bbccebdf3c02666aef17 | /conduit/utils.py | 77648fd6c1b6adfd27f0d710e40c9352911fab8d | [
"MIT"
] | permissive | mohamed-aziz/realworld-flask | c8d8378b6c3a2fbe4cf3d79c5e5031e19f735c15 | 9b0cfb6d057ceab18f33a3203548c54e1caf02cc | refs/heads/master | 2021-01-20T09:30:02.588900 | 2017-05-16T21:22:04 | 2017-05-21T19:59:08 | 90,258,841 | 1 | 1 | null | 2017-05-07T17:01:57 | 2017-05-04T12:07:38 | Python | UTF-8 | Python | false | false | 1,212 | py | # -*- coding: utf-8 -*-
"""Helper utilities and decorators."""
from flask import flash, _request_ctx_stack
from functools import wraps
from flask_jwt import _jwt
import jwt
def jwt_optional(realm=None):
def wrapper(fn):
@wraps(fn)
def decorator(*args, **kwargs):
token = _jwt.request_ca... | [
"medazizknani@gmail.com"
] | medazizknani@gmail.com |
37bff83c1ae906bb1ecd9a05bef289f0b551e84b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_118/ch46_2020_03_26_18_29_25_823814.py | 5f5c8a66f4540efd1b37403adaa0978dbe9b3f3d | [] | 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 | 161 | py | def numero_no_indice(n):
n=[]
n=str(input('diga uma lista: '))
i=0
while i<=len(n) and i==n[i]:
i+=1
print (numero_no_indice(n)) | [
"you@example.com"
] | you@example.com |
e25c7ba018bbd800ad2a501962985c475c85e543 | 97e9ed64842ebdb7d6ea4083009436514b5cecfb | /CONTACT/models.py | 6812f90a0af68967b140704ef512860dd7041538 | [] | no_license | ErDeepakSingh/FoodSanta | eca52b816f2978d04daf7ca48f8be87f3b71facf | 82b3794d466aa5678d28b7398e162f16425e41e9 | refs/heads/master | 2020-07-11T05:07:30.191761 | 2019-08-26T10:37:47 | 2019-08-26T10:37:47 | 204,452,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from django.db import models
# from ACCOUNTS.models import User
class Contact_Post(models.Model):
name=models.CharField(max_length=150)
mobile_no=models.CharField(max_length=150)
email=models.EmailField(max_length=150)
message=models.TextField(max_length=500)
# recieved = models.DateTimeField(auto_... | [
"deepakthakur755@gmail.com"
] | deepakthakur755@gmail.com |
a0db2ab09deeba431374218941ddfe688d3288bd | c73d0e70a156c080dd798f06a56407c2f0697fba | /zemwrapper.py | 6555e9ab370a1263315c5364cc9b8dfe3137738f | [] | no_license | sparkica/zem-api-wrapper | 67c383a992210fb666e8320a7f74ebba9cebbb87 | 1de823eb706084c39c410e0569d92f0f387fe387 | refs/heads/master | 2020-04-25T18:06:24.379351 | 2013-05-17T08:53:42 | 2013-05-17T08:53:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,461 | py | #!/usr/bin/env python
"""wrapper.py: Simple NIF Wrapper for Zemanta API. You need Zemanta API key."""
import urllib
import hashlib
import simplejson as json
from rdflib import BNode, Graph, Literal, Namespace, RDF, URIRef
from rdflib import plugin
from rdflib import RDF, RDFS, XSD
from rdflib.serializer import Seri... | [
"mateja.verlic@gmail.com"
] | mateja.verlic@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.