text stringlengths 0 1.05M | meta dict |
|---|---|
from flask import redirect, session, abort, request, url_for
import cgi
import urllib
import logging
import datetime
from django.utils import simplejson as json
from google.appengine.api import urlfetch
import settings
from models import BetaUser
callback_url = 'https://mumble-ios.appspot.com/login/facebook/callba... | {
"repo_name": "mkrautz/mumble-iphoneos-betaweb",
"path": "facebook.py",
"copies": "1",
"size": "2314",
"license": "bsd-3-clause",
"hash": -591339664705174800,
"line_mean": 33.5373134328,
"line_max": 145,
"alpha_frac": 0.7329299914,
"autogenerated": false,
"ratio": 3.2454417952314167,
"config_te... |
from flask import redirect, session, abort, request, url_for
import cgi
import urllib
import oauth2 as oauth
import logging
import datetime
import settings
from models import BetaUser
callback_url = 'https://mumble-ios.appspot.com/login/twitter/callback'
# Initiate an OAuth 1.x authentication through Twitter
def lo... | {
"repo_name": "mkrautz/mumble-iphoneos-betaweb",
"path": "twitter.py",
"copies": "1",
"size": "2789",
"license": "bsd-3-clause",
"hash": -781414648773820900,
"line_mean": 35.2207792208,
"line_max": 145,
"alpha_frac": 0.7292936536,
"autogenerated": false,
"ratio": 3.265807962529274,
"config_test... |
from flask import redirect, session, g, url_for, request, flash, render_template, Blueprint
from talent_curator import app, _basedir
from talent_curator.database import db_session
from talent_curator.apps.google import oauth_client
from talent_curator.apps.profile import models
import os
import requests
REDIRECT_U... | {
"repo_name": "tquach/talent-curator",
"path": "talent_curator/apps/core/views.py",
"copies": "1",
"size": "2494",
"license": "bsd-3-clause",
"hash": 7536138106028025000,
"line_mean": 29.0481927711,
"line_max": 91,
"alpha_frac": 0.6732157177,
"autogenerated": false,
"ratio": 3.6144927536231886,
... |
from flask import redirect, session, request, g, flash, abort, url_for
import time
from PyChannel.helpers.command import require
from PyChannel.helpers.plugin import PluginHandler, ImmediateRedirect
from PyChannel.objects import Thread, Tripcode
from PyChannel.helpers.channel import get_opt
plug = PluginHandler()
#A... | {
"repo_name": "Joshkunz/PyChannel",
"path": "PyChannel/commands.py",
"copies": "1",
"size": "4223",
"license": "mit",
"hash": -5402074334068697000,
"line_mean": 34.487394958,
"line_max": 123,
"alpha_frac": 0.6440918778,
"autogenerated": false,
"ratio": 3.634251290877797,
"config_test": false,
... |
from flask import redirect, session, url_for, request
from functools import wraps
from app.models.userModel import User
from app.views.loginView import show_login
import random
import hashlib
def login_required(f):
@wraps(f)
def decorated_function(*args, **kwargs):
if 'logged_in' not in session:
... | {
"repo_name": "RDAP1337/jive-turkey",
"path": "app/controllers/securityController.py",
"copies": "1",
"size": "1192",
"license": "mit",
"hash": 8227715148347924000,
"line_mean": 22.86,
"line_max": 100,
"alpha_frac": 0.6661073826,
"autogenerated": false,
"ratio": 3.9866220735785953,
"config_test... |
from flask import redirect, url_for, current_app as app
from flask_restplus import Namespace, Resource
from flask_login import current_user, logout_user
from backend.util.response.error import ErrorResponse
from backend.controller import ErrorHandler
logoutNS = Namespace("User", description="User authentication with... | {
"repo_name": "willrp/willbuyer",
"path": "backend/controller/auth/logout.py",
"copies": "1",
"size": "1550",
"license": "mit",
"hash": -4589773821518478300,
"line_mean": 37.75,
"line_max": 89,
"alpha_frac": 0.5909677419,
"autogenerated": false,
"ratio": 4.798761609907121,
"config_test": false,... |
from flask import redirect, url_for, flash, current_app
from flask.ext.login import current_user
from flask.ext.admin.contrib import sqla
import flask_admin as admin
from flask_admin.contrib.sqla import ModelView
from flask_admin import expose
from flask_admin.base import MenuLink, Admin, BaseView, expose
from flask_ad... | {
"repo_name": "XiaochenCui/algorithm_submit",
"path": "app/admin/views.py",
"copies": "1",
"size": "3672",
"license": "mit",
"hash": -8228223844124069000,
"line_mean": 27.9416666667,
"line_max": 93,
"alpha_frac": 0.6304723502,
"autogenerated": false,
"ratio": 3.3676042677012608,
"config_test": ... |
from flask import redirect, url_for, flash
from flask_login import login_user, login_required, logout_user
from flask_restful import Resource, reqparse
from mongoengine.errors import NotUniqueError, ValidationError
from schema.User import User
userParser = reqparse.RequestParser()
userParser.add_argument('name', type... | {
"repo_name": "BtXin/VirtualIRLab",
"path": "api/userAPI.py",
"copies": "1",
"size": "1533",
"license": "mit",
"hash": -322318080170086700,
"line_mean": 30.9375,
"line_max": 104,
"alpha_frac": 0.6405740378,
"autogenerated": false,
"ratio": 4.0236220472440944,
"config_test": false,
"has_no_key... |
from flask import redirect, url_for, flash
def process(request, db):
desc = request.form['description']
location = request.form['location']
time = request.form['time']
date = request.form['date']
venue_name = request.form['venue-name']
venue_type = request.form['venue-type']
victims = ""
... | {
"repo_name": "julianohta/EHT2016",
"path": "parse_report.py",
"copies": "1",
"size": "3882",
"license": "mit",
"hash": 4213198166071428000,
"line_mean": 50.7733333333,
"line_max": 118,
"alpha_frac": 0.5455950541,
"autogenerated": false,
"ratio": 3.4112478031634446,
"config_test": false,
"has... |
from flask import redirect, url_for, flash, render_template
from slick.utils.session import login_required
from . import manager, forms
@login_required
def add():
form = forms.AddSshKeyForm()
if form.validate_on_submit():
fields = {}
for field in form:
if 'csrf_token' == field.n... | {
"repo_name": "underscorephil/slick",
"path": "slick/blueprints/sshkeys/views.py",
"copies": "4",
"size": "1539",
"license": "mit",
"hash": 9045636586529563000,
"line_mean": 20.375,
"line_max": 59,
"alpha_frac": 0.5633528265,
"autogenerated": false,
"ratio": 3.708433734939759,
"config_test": fa... |
from flask import redirect, url_for, flash, render_template, request, abort
from flask_login import login_user, logout_user, login_required, current_user
from datetime import datetime
from . import auth
from .forms import (LoginForm, RegisterForm, ChangePasswordForm,
ResetPasswordForm, SendVerificat... | {
"repo_name": "Widiot/simpleblog",
"path": "simple/auth/views.py",
"copies": "1",
"size": "8037",
"license": "mit",
"hash": 3542290668855566000,
"line_mean": 31.45,
"line_max": 86,
"alpha_frac": 0.6135313069,
"autogenerated": false,
"ratio": 2.929421419778416,
"config_test": false,
"has_no_ke... |
from flask import redirect, url_for, make_response, render_template, abort
from functools import wraps
from sqlalchemy.exc import OperationalError
from pywdbms.db.containers import BindContainer, DatabaseContainer
from pywdbms.utils.checks import check_connection
def require_database_connection(f):
@wraps(f)
... | {
"repo_name": "pikulak/pywdbms",
"path": "utils/decorators.py",
"copies": "1",
"size": "1383",
"license": "apache-2.0",
"hash": -5254305392210054000,
"line_mean": 38.5428571429,
"line_max": 81,
"alpha_frac": 0.5914678236,
"autogenerated": false,
"ratio": 4.564356435643564,
"config_test": false,... |
from flask import redirect, url_for
from .Base import BaseValidator
from shuttl import db
from shuttl import app
class OrganizationValidator(BaseValidator):
##Id of the directory. Because of the way inheritance is set up in sqlalchemy, this is a foriegnKey
id = db.Column(db.Integer, db.ForeignKey('base_valid... | {
"repo_name": "shuttl-io/shuttl",
"path": "shuttl/Models/Validators/OrganizationValidator.py",
"copies": "1",
"size": "1088",
"license": "mit",
"hash": -2258441137988776200,
"line_mean": 42.52,
"line_max": 125,
"alpha_frac": 0.6829044118,
"autogenerated": false,
"ratio": 4.266666666666667,
"con... |
from flask import redirect, url_for
from flask_wtf import Form
from wtforms import (BooleanField, HiddenField, SelectField, StringField, TextAreaField)
from wtforms.validators import DataRequired
from app.utils import get_redirect_target, is_safe_url
class RedirectForm(Form):
"""
Redirects the client to a ce... | {
"repo_name": "Encrylize/MyDictionary",
"path": "app/forms.py",
"copies": "1",
"size": "2319",
"license": "mit",
"hash": 7212923142857002000,
"line_mean": 29.5131578947,
"line_max": 110,
"alpha_frac": 0.6847779215,
"autogenerated": false,
"ratio": 3.890939597315436,
"config_test": false,
"has... |
from flask import redirect, url_for
from flask_wtf import Form
from wtforms import HiddenField
from app.utils.helpers import get_redirect_target, is_safe_url
class RedirectForm(Form):
""" Redirects the client to another page on submit. """
next = HiddenField()
def __init__(self, *args, **kwargs):
... | {
"repo_name": "Encrylize/flask-blogger",
"path": "app/utils/forms.py",
"copies": "1",
"size": "1257",
"license": "mit",
"hash": -7515214587900930000,
"line_mean": 29.6585365854,
"line_max": 89,
"alpha_frac": 0.6125696102,
"autogenerated": false,
"ratio": 4.176079734219269,
"config_test": false,... |
from flask import redirect, url_for
from sqlalchemy.orm.exc import NoResultFound
from functools import wraps
from . import db
from .models import (Setting,
SETTING_BLOG_NAME
)
def load_page_meta(title_prefix=None):
ds = Setting.load_settings([SETTING_BLOG_NAME])
if... | {
"repo_name": "Gateswong/GatesBlog",
"path": "blog/utils.py",
"copies": "1",
"size": "1218",
"license": "mit",
"hash": 4551241770848688600,
"line_mean": 21.1454545455,
"line_max": 79,
"alpha_frac": 0.6215106732,
"autogenerated": false,
"ratio": 3.635820895522388,
"config_test": false,
"has_no... |
from flask import redirect, url_for, request, g, render_template, request
from flask_login import LoginManager, login_user, logout_user, current_user
from app import db
import ldap, time
from urlparse import urlparse
from app import telomere
from app.model.user import User
login_manager = LoginManager()
login_manager... | {
"repo_name": "rabramley/telomere",
"path": "app/views/user.py",
"copies": "1",
"size": "1770",
"license": "mit",
"hash": -8383443559623710000,
"line_mean": 26.2307692308,
"line_max": 75,
"alpha_frac": 0.6463276836,
"autogenerated": false,
"ratio": 3.6196319018404908,
"config_test": false,
"h... |
from flask import redirect, url_for, request, render_template
from syzoj import oj, db
from syzoj.models import User, Article
from syzoj.controller import Paginate, Tools, Checker
from .common import not_have_permission, show_error
@oj.route("/user/<int:user_id>")
def user(user_id):
user = User.find_user(id=user_... | {
"repo_name": "cdcq/jzyzj",
"path": "syzoj/views/user.py",
"copies": "1",
"size": "3908",
"license": "mit",
"hash": 9034577142512765000,
"line_mean": 33.5840707965,
"line_max": 115,
"alpha_frac": 0.5816274309,
"autogenerated": false,
"ratio": 3.611829944547135,
"config_test": false,
"has_no_k... |
from flask import redirect, url_for, request, session
from flask_admin import Admin, AdminIndexView, expose
from flask_admin.contrib import sqla
from flask_login import current_user
from .auth import current_user_is_roadie
from .db import postgres
from .account.models import OAuth
from .members.models import User, Ema... | {
"repo_name": "jazzband/site",
"path": "jazzband/admin.py",
"copies": "1",
"size": "2678",
"license": "mit",
"hash": 6856657285042998000,
"line_mean": 27.1894736842,
"line_max": 75,
"alpha_frac": 0.6594473488,
"autogenerated": false,
"ratio": 3.6887052341597797,
"config_test": false,
"has_no_... |
from flask import redirect, url_for, session, request
from flask.ext.login import logout_user, login_user
from flask_googlelogin import USERINFO_EMAIL_SCOPE
from app import app, db, lm, googlelogin
from models import User, ROLE_USER
@app.route("/login")
def login():
return redirect(
googlelogin.login_url... | {
"repo_name": "atlefren/beercalc",
"path": "app/login.py",
"copies": "1",
"size": "1240",
"license": "mit",
"hash": 5410722505051561000,
"line_mean": 23.3137254902,
"line_max": 70,
"alpha_frac": 0.6467741935,
"autogenerated": false,
"ratio": 3.5127478753541075,
"config_test": false,
"has_no_k... |
from flask import redirect, url_for, session, request
from functools import wraps
from json import loads
import requests
from pyfsw import app, db
from pyfsw import Account, Library, Guild, GuildMembership, GuildRank
from pyfsw import PlayerItem
from pyfsw import CAPTCHA_SECRET_KEY, ADMIN_ACCOUNT_TYPE
def login_requi... | {
"repo_name": "diath/pyfsw",
"path": "pyfsw/helpers.py",
"copies": "1",
"size": "3090",
"license": "mit",
"hash": 4212840595229996500,
"line_mean": 21.7205882353,
"line_max": 104,
"alpha_frac": 0.701618123,
"autogenerated": false,
"ratio": 3.0264446620959844,
"config_test": false,
"has_no_key... |
from flask import render_template, abort, flash, redirect, url_for
from flask import request
from flask_login import login_required, current_user
from . import employees
from ..models import User, db, Loan, Borrower, Payment
from ..main.forms import EditProfileForm
from .forms import AddBorrower, EditProfileEmployeeFor... | {
"repo_name": "Kimanicodes/wananchi",
"path": "app/employees/views.py",
"copies": "1",
"size": "12588",
"license": "mit",
"hash": 8129504080091013000,
"line_mean": 37.6134969325,
"line_max": 85,
"alpha_frac": 0.6603114077,
"autogenerated": false,
"ratio": 3.4976382328424562,
"config_test": fals... |
from flask import render_template, abort, flash, redirect, url_for
from flask import request
from flask_login import login_required, current_user
from . import main
from ..models import User, Borrower
from forms import EditProfileForm, EditProfileAdminForm
from .. import db
@main.route('/')
def index():
return re... | {
"repo_name": "Kimanicodes/wananchi",
"path": "app/main/views.py",
"copies": "1",
"size": "3461",
"license": "mit",
"hash": -3182684621471789600,
"line_mean": 35.0520833333,
"line_max": 73,
"alpha_frac": 0.6613695464,
"autogenerated": false,
"ratio": 3.5316326530612243,
"config_test": false,
... |
from flask import render_template, abort, flash, redirect, url_for
from flask_login import login_required, current_user
from . import admin
from ..auth.auth_list import employee_list
from ..models import User, Employee, Loan, Borrower, Payment
from .forms import ApproveBorrower, AddEmployee, AssignUserToEmployee
from .... | {
"repo_name": "Kimanicodes/wananchi",
"path": "app/admin/views.py",
"copies": "1",
"size": "17808",
"license": "mit",
"hash": 2638514898511806000,
"line_mean": 39.5649202733,
"line_max": 92,
"alpha_frac": 0.6097259659,
"autogenerated": false,
"ratio": 3.6491803278688524,
"config_test": false,
... |
from flask import render_template, abort, flash, url_for, redirect, request
from flask.ext.login import login_required
from editor.app import app
from editor import models as m
from editor.models import db
from editor.models.document import Document
import datetime
# Forms
from flask.ext.wtf import Form
from wtforms ... | {
"repo_name": "ludwinas/editore",
"path": "editor/views.py",
"copies": "1",
"size": "2059",
"license": "mit",
"hash": 7326188751990858000,
"line_mean": 26.8243243243,
"line_max": 75,
"alpha_frac": 0.6823700826,
"autogenerated": false,
"ratio": 3.618629173989455,
"config_test": false,
"has_no_... |
from flask import render_template, abort
from flask_login import login_required
from jinja2 import TemplateNotFound
from kconfig import calendar, agileCalendar, deliveryBook
from . import delivery
__author__ = "Manuel Escriche <mev@tid.es>"
@delivery.route("/")
@delivery.route("/dashboard")
@login_required
def das... | {
"repo_name": "flopezag/fiware-backlog",
"path": "app/delivery/views.py",
"copies": "1",
"size": "1425",
"license": "apache-2.0",
"hash": -8627243775435031000,
"line_mean": 26.4038461538,
"line_max": 59,
"alpha_frac": 0.5789473684,
"autogenerated": false,
"ratio": 4.718543046357616,
"config_tes... |
from flask import render_template, abort, redirect, Blueprint
from flask_wtf import Form
from flask.ext.security.utils import encrypt_password
from wtforms import StringField, PasswordField
from wtforms.validators import DataRequired, Email, EqualTo
from .auth import user_datastore
setup = Blueprint("setup", __name__... | {
"repo_name": "Infinidat/lanister",
"path": "flask_app/setup.py",
"copies": "2",
"size": "1355",
"license": "bsd-3-clause",
"hash": 4620887653095233000,
"line_mean": 33.7435897436,
"line_max": 104,
"alpha_frac": 0.6959409594,
"autogenerated": false,
"ratio": 3.8825214899713467,
"config_test": f... |
from flask import render_template, abort, redirect, flash, url_for, request
from ..models import User, Role, Permission, Post
from . import main
from .forms import EditProfileForm, AdminEditProfileForm, PostForm
from flask_login import login_required, current_user
from app import db
@main.route('/', methods=['GET', '... | {
"repo_name": "LittleBirdLiu/Flask_WebDev",
"path": "APP/main/views.py",
"copies": "1",
"size": "3543",
"license": "mit",
"hash": -5328846008278517000,
"line_mean": 37.0967741935,
"line_max": 87,
"alpha_frac": 0.6638441998,
"autogenerated": false,
"ratio": 3.49064039408867,
"config_test": false... |
from flask import render_template, abort, request, flash, redirect, url_for
from markupsafe import Markup
from wtforms import StringField, IntegerField, SubmitField, TextAreaField
from wtforms.validators import NumberRange, DataRequired, IPAddress, Optional, Length, InputRequired
from uchan.filter.app_filters import f... | {
"repo_name": "Floens/uchan",
"path": "uchan/view/mod/mod_bans.py",
"copies": "1",
"size": "5124",
"license": "mit",
"hash": -4494925839812439600,
"line_mean": 38.4153846154,
"line_max": 113,
"alpha_frac": 0.6081186573,
"autogenerated": false,
"ratio": 3.6495726495726495,
"config_test": false,
... |
from flask import render_template, abort, request
from app.utils import json_response, parse_config
from app.bpbase import Blueprint
import models.node
import models.audit
from redistrib.connection import Connection
from hiredis.hiredis import ReplyError
bp = Blueprint('redis', __name__, url_prefix='/redis')
@bp.be... | {
"repo_name": "HunanTV/redis-ctl",
"path": "app/bps/redis.py",
"copies": "1",
"size": "2231",
"license": "mit",
"hash": 847142955312643200,
"line_mean": 27.974025974,
"line_max": 74,
"alpha_frac": 0.5912147019,
"autogenerated": false,
"ratio": 3.6100323624595467,
"config_test": false,
"has_no... |
from flask import render_template, abort, request, redirect, url_for, jsonify
from . import merchant
from ..decorators import merchant_required
from flask.ext.login import login_required, current_user
from ..models import (Listing, CartItem, Order, Vendor, Status, ItemTag,
Ratings, User, Bookmark,... | {
"repo_name": "hack4impact/reading-terminal-market",
"path": "app/merchant/views.py",
"copies": "1",
"size": "12077",
"license": "mit",
"hash": -4773492382251571000,
"line_mean": 31.5525606469,
"line_max": 83,
"alpha_frac": 0.6307029892,
"autogenerated": false,
"ratio": 3.5179143606175356,
"con... |
from flask import render_template, abort, request, url_for, flash, redirect
from random import choice
from datetime import datetime, date, timedelta
from twilio.twiml import Response
from sqlalchemy.exc import IntegrityError
from sqlalchemy.orm.exc import NoResultFound
from config import *
from config.main import *
fro... | {
"repo_name": "PeterTheOne/ueberwachungspaket.at",
"path": "ueberwachungspaket/views.py",
"copies": "1",
"size": "12332",
"license": "mit",
"hash": -5911563221256688000,
"line_mean": 34.4051724138,
"line_max": 195,
"alpha_frac": 0.6558720883,
"autogenerated": false,
"ratio": 3.4196502914238134,
... |
from flask import render_template, abort, url_for, request, redirect, session
from jinja2 import TemplateNotFound
from flask import Blueprint
from core import app, oid
import json
bp_user = Blueprint('bp_user', __name__, template_folder="templates")
@bp_user.route("/login")
@oid.loginhandler
def login():
"""
show ... | {
"repo_name": "haisum/flask-starting-template",
"path": "user/views.py",
"copies": "1",
"size": "1329",
"license": "mit",
"hash": -6465061861383422000,
"line_mean": 28.5555555556,
"line_max": 91,
"alpha_frac": 0.6982693755,
"autogenerated": false,
"ratio": 3.1270588235294117,
"config_test": fal... |
from flask import render_template, _app_ctx_stack, jsonify, request
from app import app, host, port, user, passwd, db
from app.helpers.database import con_db
import MySQLdb
import sys
import json
import numpy as np
from urllib2 import Request, urlopen, URLError
import urllib
#from eventlet.timeout import Timeout, wit... | {
"repo_name": "KeltyAllen/Amazon-Reviews-Project",
"path": "app/views.py",
"copies": "1",
"size": "15656",
"license": "mit",
"hash": -8270635603042635000,
"line_mean": 29.9407114625,
"line_max": 194,
"alpha_frac": 0.6218063362,
"autogenerated": false,
"ratio": 3.1564516129032256,
"config_test":... |
from flask import render_template as flask_render_template
from flask import request, abort
from flask_wtf import Form
def render_template(template, *args, **kwargs):
if request.method == 'GET' and request.args.get('form') and request.args.get('field'):
form = kwargs.get(request.args['form'])
fiel... | {
"repo_name": "wolfv/SilverFlask",
"path": "silverflask/core/core.py",
"copies": "1",
"size": "1121",
"license": "bsd-2-clause",
"hash": -8132939950979698000,
"line_mean": 43.88,
"line_max": 95,
"alpha_frac": 0.6066012489,
"autogenerated": false,
"ratio": 3.96113074204947,
"config_test": false,... |
from flask import render_template, Blueprint, flash
from app.forms import SettingsForm
from ..common import update_setting, get_setting
__author__ = 'Lesko'
# Documentation is like sex.
# When it's good, it's very good.
# When it's bad, it's better than nothing.
# When it lies to you, it may be a while before you real... | {
"repo_name": "LeskoIam/homeNET",
"path": "app/views/settings/settings.py",
"copies": "1",
"size": "2316",
"license": "mit",
"hash": -8943647180887790000,
"line_mean": 47.25,
"line_max": 85,
"alpha_frac": 0.6424870466,
"autogenerated": false,
"ratio": 3.7967213114754097,
"config_test": false,
... |
from flask import render_template, Blueprint, flash, redirect, jsonify
from app.models import LastEntry, Nodes, PingerData
from app.forms import AddEditNodeForm
from ..common import get_setting, time_since_epoch
from app import db
import sqlalchemy
__author__ = 'Lesko'
# Documentation is like sex.
# When it's good, it... | {
"repo_name": "LeskoIam/homeNET",
"path": "app/views/nodes/nodes.py",
"copies": "1",
"size": "9268",
"license": "mit",
"hash": 5587533122544795000,
"line_mean": 34.9224806202,
"line_max": 114,
"alpha_frac": 0.583081571,
"autogenerated": false,
"ratio": 3.6020209871745044,
"config_test": false,
... |
from flask import render_template, Blueprint, jsonify
from app.forms import BackPeriodForm
from ..common import read_temp_log, get_setting, get_files, time_since_epoch
from app.common import stats
import datetime
__author__ = 'Lesko'
# Documentation is like sex.
# When it's good, it's very good.
# When it's bad, it's ... | {
"repo_name": "LeskoIam/homeNET",
"path": "app/views/server/server.py",
"copies": "1",
"size": "7843",
"license": "mit",
"hash": 5150129097958760000,
"line_mean": 37.6354679803,
"line_max": 87,
"alpha_frac": 0.5129414765,
"autogenerated": false,
"ratio": 3.515463917525773,
"config_test": false,... |
from flask import render_template, Blueprint, jsonify
from app.models import LastEntry, Nodes, PingerData
from app import db
import requests
from collections import namedtuple
from BeautifulSoup import BeautifulSoup
from pprint import pprint
__author__ = 'Lesko'
# Documentation is like sex.
# When it's good, it's ve... | {
"repo_name": "LeskoIam/homeNET",
"path": "app/views/aggregator/aggregator.py",
"copies": "1",
"size": "6597",
"license": "mit",
"hash": 6294405094728575000,
"line_mean": 32.8307692308,
"line_max": 130,
"alpha_frac": 0.4897680764,
"autogenerated": false,
"ratio": 3.7103487064116987,
"config_tes... |
from flask import render_template, Blueprint, jsonify
from app.models import PingerData, Nodes, LastEntry
from app import db
from app.common.stats import histogram
from sqlalchemy import func
import datetime
__author__ = 'Lesko'
# Documentation is like sex.
# When it's good, it's very good.
# When it's bad, it's bett... | {
"repo_name": "LeskoIam/homeNET",
"path": "app/views/creatures/creatures.py",
"copies": "1",
"size": "2629",
"license": "mit",
"hash": -1419381065133255200,
"line_mean": 35.5138888889,
"line_max": 112,
"alpha_frac": 0.6135412704,
"autogenerated": false,
"ratio": 3.2986198243412796,
"config_test... |
from flask import render_template, Blueprint, jsonify, request, abort
from flask_login import login_required
from inventory_manager_app.extensions import db
from inventory_manager_app.stock.models import Stock, Customer, Vendor
from inventory_manager_app.stock.forms import StockForm, VendorForm, CustomerForm
stock = ... | {
"repo_name": "wbali/rwc-inventory-manager",
"path": "inventory_manager_app/stock/views.py",
"copies": "1",
"size": "6498",
"license": "mit",
"hash": 8117456605102596000,
"line_mean": 31.328358209,
"line_max": 81,
"alpha_frac": 0.6275777162,
"autogenerated": false,
"ratio": 3.8381571175428233,
... |
from flask import render_template, Blueprint
from common import get_app_list, get_query_list
from application.common.util import translate
from os.path import dirname, join
import json
exhibition_consumption = Blueprint('exhibition_consumption', __name__, template_folder='templates')
@exhibition_consumption.route('/... | {
"repo_name": "petchat/senz.dashboard.backend",
"path": "application/views/exhibition/consumption.py",
"copies": "1",
"size": "2737",
"license": "mit",
"hash": 1086391986030569700,
"line_mean": 49.6851851852,
"line_max": 105,
"alpha_frac": 0.6039459262,
"autogenerated": false,
"ratio": 3.35416666... |
from flask import render_template, Blueprint
from common import get_app_list, get_query_list
from application.common.util import translate
from os.path import dirname, join
import json
exhibition_index = Blueprint('exhibition_index', __name__, template_folder='templates')
@exhibition_index.route('/dashboard')
def sh... | {
"repo_name": "petchat/senz.dashboard.backend",
"path": "application/views/exhibition/index.py",
"copies": "1",
"size": "1836",
"license": "mit",
"hash": 5448398395704457000,
"line_mean": 47.3421052632,
"line_max": 111,
"alpha_frac": 0.6078431373,
"autogenerated": false,
"ratio": 3.34426229508196... |
from flask import render_template, Blueprint
from common import get_app_list, get_query_list
from application.common.util import translate
from os.path import dirname, join
import json
exhibition_marriage = Blueprint('exhibition_marriage', __name__, template_folder='templates')
@exhibition_marriage.route('/dashboard... | {
"repo_name": "petchat/senz.dashboard.backend",
"path": "application/views/exhibition/marriage.py",
"copies": "1",
"size": "2141",
"license": "mit",
"hash": 1166421120581787000,
"line_mean": 47.6590909091,
"line_max": 98,
"alpha_frac": 0.6221391873,
"autogenerated": false,
"ratio": 3.314241486068... |
from flask import render_template, Blueprint
from common import get_app_list, get_query_list
from application.common.util import translate
from os.path import dirname, join
import json
exhibition_profile = Blueprint('exhibition_profile', __name__, template_folder='templates')
@exhibition_profile.route('/dashboard/pr... | {
"repo_name": "petchat/senz.dashboard.backend",
"path": "application/views/exhibition/profile.py",
"copies": "1",
"size": "3429",
"license": "mit",
"hash": -2084583575601283600,
"line_mean": 54.3225806452,
"line_max": 112,
"alpha_frac": 0.5832604258,
"autogenerated": false,
"ratio": 3.48830111902... |
from flask import render_template, Blueprint
from flask_flatpages import pygments_style_defs
from blog.config.extensions import pages
main = Blueprint('main', __name__)
POST_DIR = 'posts'
@main.route('/')
@main.route('/posts/')
def posts():
"""
return a list of posts, starting with the most recent.
"""
... | {
"repo_name": "smelnicki/smelnicki.com",
"path": "blog/routes/main.py",
"copies": "1",
"size": "1284",
"license": "mit",
"hash": -3079632096950578000,
"line_mean": 26.9130434783,
"line_max": 76,
"alpha_frac": 0.6596573209,
"autogenerated": false,
"ratio": 3.556786703601108,
"config_test": false... |
from flask import render_template, Blueprint
from flask import request, abort
from flask import send_from_directory
from app import app, db
from app.models import *
from app.models.decodings import Decoding
from app.controllers.home import paginate
from app.initializers.settings import *
from sqlalchemy import *
ter... | {
"repo_name": "UCL-CS35/incdb-poc",
"path": "app/controllers/terms.py",
"copies": "1",
"size": "2112",
"license": "bsd-2-clause",
"hash": -2117762149510858200,
"line_mean": 27.5405405405,
"line_max": 68,
"alpha_frac": 0.6799242424,
"autogenerated": false,
"ratio": 3.6539792387543253,
"config_te... |
from flask import render_template, Blueprint
from flask import request, jsonify
from app import app, db
from app.models.decodings import Decoding
from app.initializers.settings import *
from sqlalchemy import *
import flask_sqlalchemy as sqlalchemy
from os.path import join
import simplejson as json
home_blueprint ... | {
"repo_name": "UCL-CS35/incdb-poc",
"path": "app/controllers/home.py",
"copies": "1",
"size": "2589",
"license": "bsd-2-clause",
"hash": -4190622268792958500,
"line_mean": 27.1413043478,
"line_max": 71,
"alpha_frac": 0.6778679027,
"autogenerated": false,
"ratio": 3.595833333333333,
"config_test... |
from flask import render_template, Blueprint
from flask import request, send_from_directory
from flask_user import roles_accepted
from app import app
from app.controllers import contribute
from app.models.decodings import *
from app.models.collections import *
from app.models.analysis import *
from app.initializers.se... | {
"repo_name": "UCL-CS35/incdb-poc",
"path": "app/controllers/admin.py",
"copies": "1",
"size": "3039",
"license": "bsd-2-clause",
"hash": -1660019569707966000,
"line_mean": 31.6774193548,
"line_max": 75,
"alpha_frac": 0.6370516617,
"autogenerated": false,
"ratio": 3.9934296977660972,
"config_te... |
from flask import render_template, Blueprint
from flask import send_from_directory, abort
from app import app
from app.models import *
from app.models.decodings import Decoding
from app.models.collections import Collection
from app.initializers.settings import *
from sqlalchemy import *
import os
components_bluepri... | {
"repo_name": "UCL-CS35/incdb-poc",
"path": "app/controllers/components.py",
"copies": "1",
"size": "2208",
"license": "bsd-2-clause",
"hash": 3846815546489547300,
"line_mean": 26.9493670886,
"line_max": 71,
"alpha_frac": 0.6798007246,
"autogenerated": false,
"ratio": 3.9499105545617175,
"confi... |
from flask import render_template, Blueprint
from flask_login import login_required
from data_tools.wrappers.users import get_users, get_user, get_mailto_all
from data_tools.template_models.entry_page import UserPageData
from data_tools.template_models.list_table import UserListTableData
from helpers import get_curren... | {
"repo_name": "BiRG/Omics-Dashboard",
"path": "omics/omics_dashboard/blueprints/browser/users.py",
"copies": "1",
"size": "1261",
"license": "mit",
"hash": -3508039213389757400,
"line_mean": 35.0285714286,
"line_max": 106,
"alpha_frac": 0.66851705,
"autogenerated": false,
"ratio": 3.7867867867867... |
from flask import render_template, Blueprint, redirect, jsonify
from flask import request
from flask import url_for
from Norman.auth.auth_utils import PatientUtil, ServiceUtil
from Norman.auth.forms import PatientLoginForm, PatientPasswordChooseForm
from Norman.settings import ErrorConfig
from Norman.utils import vali... | {
"repo_name": "Olamyy/Norman",
"path": "Norman/patient/views.py",
"copies": "1",
"size": "3067",
"license": "bsd-3-clause",
"hash": -6353791543779667000,
"line_mean": 45.4696969697,
"line_max": 124,
"alpha_frac": 0.6631887838,
"autogenerated": false,
"ratio": 3.9119897959183674,
"config_test": ... |
from flask import render_template, Blueprint, redirect
from flask import request
from flask import url_for
from Norman.auth.auth_utils import HospitalUtil, ServiceUtil, PatientUtil
from Norman.auth.forms import LoginForm, VerificationForm
from Norman.mailer import mails
from Norman.settings import ErrorConfig
from Nor... | {
"repo_name": "Olamyy/Norman",
"path": "Norman/dashboard/views.py",
"copies": "1",
"size": "10907",
"license": "bsd-3-clause",
"hash": 6810877217256655000,
"line_mean": 39.3962962963,
"line_max": 120,
"alpha_frac": 0.7226551756,
"autogenerated": false,
"ratio": 3.4935938500960924,
"config_test"... |
from flask import render_template, Blueprint, redirect, url_for, flash
from flask.ext.login import current_user, logout_user, login_user
from app.forms import Register, Login
from app.models import db, User
from datetime import datetime
auth = Blueprint('auth', __name__)
@auth.route('/login', methods=['GET', 'POST']... | {
"repo_name": "deerob4/flask-book-tracker",
"path": "app/controllers/auth.py",
"copies": "1",
"size": "1437",
"license": "mit",
"hash": 3185296550034607000,
"line_mean": 34.0731707317,
"line_max": 127,
"alpha_frac": 0.6562282533,
"autogenerated": false,
"ratio": 3.6379746835443036,
"config_test... |
from flask import render_template, Blueprint, redirect, url_for, request, session
from flask_login import current_user, login_user, logout_user
from core.config import *
from core.tables import *
from core.db import db
from core.forms import PasswordForm
from core.facebook_oauth import facebook
auth = Blueprint("au... | {
"repo_name": "Ignotus/bookclub",
"path": "routes/auth.py",
"copies": "1",
"size": "2271",
"license": "mit",
"hash": 1524124897069454300,
"line_mean": 31,
"line_max": 109,
"alpha_frac": 0.6314398943,
"autogenerated": false,
"ratio": 3.6688206785137316,
"config_test": false,
"has_no_keywords":... |
from flask import render_template, Blueprint, request
from common import get_app_list, get_query_list
from application.common.util import translate
from os.path import dirname, join
import json
exhibition_interest = Blueprint('exhibition_interest', __name__, template_folder='templates')
@exhibition_interest.route('/... | {
"repo_name": "petchat/senz.dashboard.backend",
"path": "application/views/exhibition/interest.py",
"copies": "1",
"size": "3592",
"license": "mit",
"hash": -8820387068147950000,
"line_mean": 46.8933333333,
"line_max": 100,
"alpha_frac": 0.5668151448,
"autogenerated": false,
"ratio": 3.5146771037... |
from flask import render_template, Blueprint, request
import json
from forms import ContactForm, CallForPapers, handle_captcha_requests
from model import ContactMail, CallforPapersMail
from config import CAPTCHA_KEY, MAPS_API_KEY
main = Blueprint('main', __name__)
@main.route('/')
def index():
return render_temp... | {
"repo_name": "alessandrocucci/PyRE",
"path": "app/main/controller.py",
"copies": "1",
"size": "2894",
"license": "mit",
"hash": 4636341488141271000,
"line_mean": 33.8674698795,
"line_max": 138,
"alpha_frac": 0.6299239806,
"autogenerated": false,
"ratio": 3.2886363636363636,
"config_test": fals... |
from flask import render_template, Blueprint, request, redirect, url_for, abort, jsonify, g, make_response, send_file
from flask_login import login_user, current_user, login_required, logout_user
from project import db, auth, auth_token, app, images
import uuid
import os
import zipfile
import json
import shutil
from we... | {
"repo_name": "allspeak/api.allspeak.eu",
"path": "web/project/training_api/views.py",
"copies": "1",
"size": "11877",
"license": "mit",
"hash": 4219297671641828400,
"line_mean": 40.3867595819,
"line_max": 171,
"alpha_frac": 0.6058769049,
"autogenerated": false,
"ratio": 3.871251629726206,
"con... |
from flask import render_template, Blueprint, request, redirect, url_for, flash, abort, jsonify
from sqlalchemy.exc import IntegrityError
from flask_login import login_user, current_user, login_required, logout_user
from threading import Thread
from itsdangerous import URLSafeTimedSerializer
from datetime import dateti... | {
"repo_name": "allspeak/api.allspeak.eu",
"path": "web/project/user_api/views.py",
"copies": "1",
"size": "1796",
"license": "mit",
"hash": 2765615097630058000,
"line_mean": 32.9056603774,
"line_max": 95,
"alpha_frac": 0.6759465479,
"autogenerated": false,
"ratio": 3.570576540755467,
"config_te... |
from flask import render_template, Blueprint, request, redirect, url_for
from flask_login import login_required, login_user
from werkzeug.exceptions import BadRequest
from server.main import methods
from server.login import LoginForm
from server.import_opml import create_db_from_opml
main = Blueprint("main", __name__... | {
"repo_name": "flacerdk/smoke-signal",
"path": "server/main/views.py",
"copies": "1",
"size": "3078",
"license": "mit",
"hash": -3100167454309100000,
"line_mean": 30.7319587629,
"line_max": 73,
"alpha_frac": 0.6150097466,
"autogenerated": false,
"ratio": 3.6730310262529833,
"config_test": false... |
from flask import render_template, Blueprint, request, redirect, url_for
from flask_login import login_required
from data_tools.wrappers.jobserver_control import get_jobs, get_job, start_job, prepare_job_params
from data_tools.wrappers.workflows import get_workflow
from data_tools.template_models.entry_page import Job... | {
"repo_name": "BiRG/Omics-Dashboard",
"path": "omics/omics_dashboard/blueprints/browser/jobs.py",
"copies": "1",
"size": "2412",
"license": "mit",
"hash": -7492914180169137000,
"line_mean": 43.6666666667,
"line_max": 109,
"alpha_frac": 0.6455223881,
"autogenerated": false,
"ratio": 3.954098360655... |
from flask import render_template, Blueprint, url_for, redirect
from sqlalchemy import func
from flask_login import login_required, current_user
#from main import app
#from models import db, User, Post, Tag, Comment, posts_tags
from flaskblog.models import db, User, Post, Tag, Comment, posts_tags, Role
from uuid impor... | {
"repo_name": "indicolite/flask-blog",
"path": "flaskblog/controllers/blog.py",
"copies": "1",
"size": "4859",
"license": "mit",
"hash": 8826245767264485000,
"line_mean": 29.753164557,
"line_max": 77,
"alpha_frac": 0.6182342046,
"autogenerated": false,
"ratio": 3.609955423476969,
"config_test":... |
from flask import render_template, current_app, abort
from flask_wtf import FlaskForm as Form
from wtforms import StringField, PasswordField, TextAreaField, FileField, validators
from notifications_utils.template import Template
from app.main import main
@main.route('/_styleguide')
def styleguide():
if not curre... | {
"repo_name": "gov-cjwaszczuk/notifications-admin",
"path": "app/main/views/styleguide.py",
"copies": "1",
"size": "1039",
"license": "mit",
"hash": 2184266424621797600,
"line_mean": 30.4242424242,
"line_max": 115,
"alpha_frac": 0.68756027,
"autogenerated": false,
"ratio": 4.115079365079365,
"c... |
from flask import render_template, current_app as app, url_for
from flask_mail import Message
from itsdangerous import URLSafeTimedSerializer
from sqlalchemy import UniqueConstraint
from feedrsub.database import db
from feedrsub.models.public_id_mixin import PublicIdMixin
from feedrsub.models.resource_mixin import Res... | {
"repo_name": "DBeath/flask-feedrsub",
"path": "feedrsub/models/email.py",
"copies": "1",
"size": "7667",
"license": "mit",
"hash": 6240612043176944000,
"line_mean": 30.8132780083,
"line_max": 105,
"alpha_frac": 0.582235555,
"autogenerated": false,
"ratio": 3.9911504424778763,
"config_test": fa... |
from flask import render_template, current_app, flash, redirect, url_for, send_from_directory
from . import main
from .forms import ContactForm
from ..email import send_email
@main.route('/<path:filename>')
def static_from_root(filename):
return send_from_directory(current_app.static_folder, filename)
@main.route... | {
"repo_name": "jordandietch/workforsushi",
"path": "app/main/views.py",
"copies": "1",
"size": "1407",
"license": "mit",
"hash": 7272611625999722000,
"line_mean": 32.5,
"line_max": 93,
"alpha_frac": 0.6886993603,
"autogenerated": false,
"ratio": 3.645077720207254,
"config_test": false,
"has_n... |
from flask import render_template, current_app
from appshell.templates import TemplateProxy
from markupsafe import Markup, escape
from itertools import chain
from appshell import current_appshell
t = TemplateProxy('appshell/leaflet_elements.html')
def merge_bounds(*lists):
coords = list(chain(*lists))
if not ... | {
"repo_name": "adh/appshell",
"path": "appshell/leaflet.py",
"copies": "1",
"size": "7408",
"license": "mit",
"hash": -8235871812715266000,
"line_mean": 29.1138211382,
"line_max": 186,
"alpha_frac": 0.5633099352,
"autogenerated": false,
"ratio": 3.7433046993431027,
"config_test": false,
"has_... |
from flask import render_template, current_app, redirect, url_for, request, flash, jsonify
from flask_login import current_user, login_user, logout_user, login_required
from app import db
from app.auth import auth
from app.auth.forms import (LoginForm, RegistrationForm, ChangePasswordForm,
... | {
"repo_name": "mapan1984/Hidden-Island",
"path": "app/auth/views.py",
"copies": "1",
"size": "7483",
"license": "mit",
"hash": -5718334241610664000,
"line_mean": 34.145,
"line_max": 103,
"alpha_frac": 0.6127471902,
"autogenerated": false,
"ratio": 3.3615494978479195,
"config_test": false,
"ha... |
from flask import render_template, current_app, request, \
flash, redirect, url_for, jsonify
from flask_security import roles_accepted, current_user
from sqlalchemy import func
import uuid
from . import agroup
from .forms import AssociateGroupForm
from pgscm import sqla
from pgscm.db import models
from pgscm.uti... | {
"repo_name": "hieulq/pgscm",
"path": "pgscm/associate_group/views.py",
"copies": "2",
"size": "7366",
"license": "apache-2.0",
"hash": -7438975063509959000,
"line_mean": 42.3294117647,
"line_max": 79,
"alpha_frac": 0.560412707,
"autogenerated": false,
"ratio": 3.762002042900919,
"config_test":... |
from flask import render_template, current_app, request, \
flash, redirect, url_for, jsonify
from flask_security import roles_accepted, current_user, \
utils as security_utils
import uuid
from . import admin
from .forms import UserForm
from .forms import data_required, match_pass
from pgscm import sqla, user_... | {
"repo_name": "HaManhDong/pgscm",
"path": "pgscm/admin/views.py",
"copies": "2",
"size": "13579",
"license": "apache-2.0",
"hash": -4071855704311871500,
"line_mean": 45.5034246575,
"line_max": 79,
"alpha_frac": 0.5194049635,
"autogenerated": false,
"ratio": 4.188463911165947,
"config_test": fal... |
from flask import render_template, current_app, request, redirect, url_for, \
flash
from flask.ext.login import login_user, logout_user, login_required
from ..models import User
from . import auth
from .forms import LoginForm
@auth.route('/login', methods=['GET', 'POST'])
def login():
if not current_app.confi... | {
"repo_name": "junqueira/balance",
"path": "finance/auth/routes.py",
"copies": "2",
"size": "1121",
"license": "mit",
"hash": 3141000787348914700,
"line_mean": 36.3666666667,
"line_max": 78,
"alpha_frac": 0.6636931311,
"autogenerated": false,
"ratio": 3.6161290322580646,
"config_test": false,
... |
from flask import render_template, current_app, request, redirect, url_for, \
flash
from flask_login import login_user, logout_user, login_required
from ..models import User
from . import auth
from .forms import LoginForm
@auth.route('/login', methods=['GET', 'POST'])
def login():
if not current_app.config['D... | {
"repo_name": "miguelgrinberg/flask-pycon2014",
"path": "app/auth/routes.py",
"copies": "1",
"size": "1111",
"license": "mit",
"hash": 2987124635267989000,
"line_mean": 36.0333333333,
"line_max": 78,
"alpha_frac": 0.6669666967,
"autogenerated": false,
"ratio": 3.6666666666666665,
"config_test":... |
from flask import render_template, current_app, request, redirect, url_for, \
flash, session
from flask import jsonify
from flask_login import login_user, logout_user, login_required, current_user
from . import auth
from forms import LoginForm
import jsonpickle
import bcrypt
from app import mongo
from app.models... | {
"repo_name": "benjaminhuanghuang/math_clone",
"path": "app/auth/routes.py",
"copies": "1",
"size": "2906",
"license": "mit",
"hash": 3720392247574012400,
"line_mean": 33.5952380952,
"line_max": 108,
"alpha_frac": 0.625946318,
"autogenerated": false,
"ratio": 3.859229747675963,
"config_test": f... |
from flask import render_template, current_app, request, url_for
import datetime
from . import matches
from .. import updates, db
from ..models import User, Match, Message, Photo
@matches.route('/')
def index():
# Update db
updates.update()
#page = request.args.get('page', 1, type=int)
#pagination = User.que... | {
"repo_name": "dankolbman/PennApps2015",
"path": "app/matches/routes.py",
"copies": "1",
"size": "1511",
"license": "mit",
"hash": 4482974329496704500,
"line_mean": 32.5777777778,
"line_max": 132,
"alpha_frac": 0.6863004633,
"autogenerated": false,
"ratio": 3.102669404517454,
"config_test": fal... |
from flask import render_template, current_app, send_from_directory, abort
from flask.ext.login import login_required, current_user
import os
from .blueprint import *
from ..models import *
@roster.route('/')
@roster.permission_required('view-roster')
@roster.menu('index', None)
def index():
return render_temp... | {
"repo_name": "team294/surfmanage",
"path": "surfmanage/roster/views/__init__.py",
"copies": "1",
"size": "1042",
"license": "bsd-3-clause",
"hash": -4028920606177427000,
"line_mean": 24.4146341463,
"line_max": 75,
"alpha_frac": 0.7005758157,
"autogenerated": false,
"ratio": 3.3079365079365077,
... |
from flask import render_template, flash, Blueprint
from app import db
from .models import Project
from sqlalchemy.exc import IntegrityError, InvalidRequestError
from sqlalchemy.orm.exc import UnmappedInstanceError
from .forms import EditProjectForm
from app.mod_adminpanel.views import register_adminpanel
from flask_lo... | {
"repo_name": "ziel980/website",
"path": "app/mod_projects/views.py",
"copies": "1",
"size": "3238",
"license": "mit",
"hash": -3760293206242290000,
"line_mean": 37.0941176471,
"line_max": 103,
"alpha_frac": 0.6636812847,
"autogenerated": false,
"ratio": 3.9975308641975307,
"config_test": false... |
from flask import render_template, flash, Blueprint, request, session, \
jsonify, redirect, url_for
from app.models import Account
from app.utils import timeout, serialize_sqla
from functools import wraps
login_blueprint = Blueprint('login', __name__, url_prefix='')
@login_blueprint.route('/login', methods=['GET... | {
"repo_name": "JelteF/bottor",
"path": "tracker/app/views/login.py",
"copies": "1",
"size": "2931",
"license": "mit",
"hash": 4591462502578552000,
"line_mean": 30.1808510638,
"line_max": 74,
"alpha_frac": 0.5793244626,
"autogenerated": false,
"ratio": 4.205164992826399,
"config_test": false,
... |
from flask import render_template, flash, g, redirect, url_for
from flask.ext.login import login_user, logout_user, current_user, login_required
from app import app, lm
from models import AuthUser, Department, User, Equipment
from forms import LoginForm, GetDepmntCard, AddUser, AddEquipment
@app.route('/', methods=['G... | {
"repo_name": "jonaubf/factorytech",
"path": "app/views.py",
"copies": "1",
"size": "2678",
"license": "apache-2.0",
"hash": 290416518816380350,
"line_mean": 30.880952381,
"line_max": 96,
"alpha_frac": 0.646377894,
"autogenerated": false,
"ratio": 3.5470198675496687,
"config_test": false,
"ha... |
from flask import render_template, flash, jsonify, redirect, Response,session, url_for, request, g
from shellshocker_server import app
from shellshocker.exploits import ShellShocker
from shellshocker.url import verify_url
@app.route('/', methods=['GET'])
def index():
return render_template('index.html')
@app.route(... | {
"repo_name": "yemartin/shellshocker",
"path": "shellshocker_server/views.py",
"copies": "1",
"size": "1453",
"license": "mit",
"hash": 6214925122161288000,
"line_mean": 37.2368421053,
"line_max": 98,
"alpha_frac": 0.7240192705,
"autogenerated": false,
"ratio": 3.4595238095238097,
"config_test"... |
from flask import render_template, flash
from cardsubmitter import app, models
from cardsubmitter.forms import CardSubmitForm, PaginationForm
from cardsubmitter.models import DuplicateCardException, Card, Author
@app.route('/')
@app.route("/index")
def index():
return render_template('index.html', title='index & ... | {
"repo_name": "tbunnyman/CardSubmitter",
"path": "cardsubmitter/views.py",
"copies": "1",
"size": "1503",
"license": "bsd-3-clause",
"hash": 1374482571899308300,
"line_mean": 34.7857142857,
"line_max": 85,
"alpha_frac": 0.5741849634,
"autogenerated": false,
"ratio": 3.9345549738219896,
"config_... |
from flask import render_template, flash
from flask.ext.mail import Message
from app import mail
from decorators import async
from config import ADMINS
@async
def send_async_email(msg):
mail.send(msg)
def send_email(subject, sender, recipients, text_body, html_body):
msg = Message(subject, sender = se... | {
"repo_name": "benchisell/photostream-bc",
"path": "app/emails.py",
"copies": "1",
"size": "1210",
"license": "bsd-3-clause",
"hash": -7015158271901718000,
"line_mean": 31.7297297297,
"line_max": 74,
"alpha_frac": 0.6520661157,
"autogenerated": false,
"ratio": 3.7577639751552794,
"config_test":... |
from flask import render_template, flash
from flask_appbuilder.models.sqla.interface import SQLAInterface
from flask_appbuilder import AppBuilder, expose, has_access, BaseView, ModelView, MultipleView, MasterDetailView, SimpleFormView
from flask_appbuilder.fieldwidgets import BS3TextFieldWidget
from flask_appbuilder.f... | {
"repo_name": "tongxindao/shiyanlou",
"path": "shiyanlou_cs870/project/ums/app/views.py",
"copies": "1",
"size": "4491",
"license": "apache-2.0",
"hash": 2130854600191029800,
"line_mean": 30.8396946565,
"line_max": 128,
"alpha_frac": 0.6938384081,
"autogenerated": false,
"ratio": 3.03125,
"conf... |
from flask import render_template, flash, redirect, g, url_for
from app import app
from app.forms import LoginForm, SearchForm
from app.models import FTSModel, RecommsModel
@app.route('/')
@app.route('/index')
def index():
message = 'Hello World'
title = "Let's search on Reddit"
list = g.recomms_list
... | {
"repo_name": "nleite/asyncmicroservices",
"path": "monolithic/app/views.py",
"copies": "2",
"size": "1721",
"license": "mit",
"hash": -6689401250381213000,
"line_mean": 25.4769230769,
"line_max": 118,
"alpha_frac": 0.6350958745,
"autogenerated": false,
"ratio": 3.4627766599597587,
"config_test... |
from flask import render_template, flash, redirect, g, url_for, request
from app import *
from models import *
from form import FlyForm, ITAForm, NonStopForm
##GLOBALS
HIDDEN_PAIRS_D = pkl.load(open('app/static/OrigDest_HiddenCity_Targets.pkl', 'rb'))
DEST_RANK_D = pkl.load(open('app/static/OrigDest_Ranking.pkl', 'rb'... | {
"repo_name": "BradAJ/zipflights",
"path": "web_app/app/views.py",
"copies": "1",
"size": "9229",
"license": "mit",
"hash": -2025304878506601700,
"line_mean": 37.1363636364,
"line_max": 107,
"alpha_frac": 0.5527142702,
"autogenerated": false,
"ratio": 3.507791714177119,
"config_test": false,
... |
from flask import render_template, flash, redirect, g, url_for, session
from flask.ext.login import current_user, login_required, logout_user
import sqlalchemy.orm.query
from datetime import datetime
from app import app, db, lm
from app.forms.login import LoginForm
from app.forms.search_form import SearchForm
from app... | {
"repo_name": "MarkGalloway/RIS",
"path": "app/views/search_view.py",
"copies": "1",
"size": "1163",
"license": "apache-2.0",
"hash": -5264685912021651000,
"line_mean": 34.2424242424,
"line_max": 79,
"alpha_frac": 0.6913155632,
"autogenerated": false,
"ratio": 3.680379746835443,
"config_test": ... |
from flask import render_template, flash, redirect, g, url_for, session
from flask.ext.login import current_user, login_required, logout_user
from app import app, db, lm
from app.forms.login import LoginForm
from app.models import User
from app.views.util.login import tryLogin, requires_roles
@app.route('/index')
@l... | {
"repo_name": "MarkGalloway/RIS",
"path": "app/views/views.py",
"copies": "1",
"size": "2401",
"license": "apache-2.0",
"hash": -1368191260366211300,
"line_mean": 23.01,
"line_max": 79,
"alpha_frac": 0.618908788,
"autogenerated": false,
"ratio": 3.551775147928994,
"config_test": true,
"has_no... |
from flask import render_template, flash, redirect, g, url_for, session, request
from flask.ext.login import login_user, logout_user, current_user, login_required
from app import app, lm, oid, db
from .forms import LoginForm, EditForm
from .models import User
from datetime import datetime
@app.before_request
def befor... | {
"repo_name": "ddayguerrero/blogme",
"path": "app/views.py",
"copies": "1",
"size": "3843",
"license": "mit",
"hash": 9042519030076749000,
"line_mean": 28.7906976744,
"line_max": 81,
"alpha_frac": 0.5961488421,
"autogenerated": false,
"ratio": 3.716634429400387,
"config_test": false,
"has_no_... |
from flask import render_template, flash, redirect, jsonify, Markup
from folsrv import app
import datetime
import glob
import os.path
from ast import literal_eval as ast_eval
@app.route("/")
@app.route('/index')
def index():
# for our index page read in files containing python lists of dicts
# for pa... | {
"repo_name": "tallus/folsrv",
"path": "folsrv/views.py",
"copies": "1",
"size": "2250",
"license": "mit",
"hash": -5296261513699530000,
"line_mean": 28.2207792208,
"line_max": 146,
"alpha_frac": 0.6342222222,
"autogenerated": false,
"ratio": 3.617363344051447,
"config_test": false,
"has_no_k... |
from flask import render_template, flash, redirect,jsonify
from app import app
from .forms import LoginForm,Scanner
from XSSModule import XSS_Module
from urlparse import urlparse
from sql import SQL_Module
from crawler import main
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'hacker'}
... | {
"repo_name": "vams1991/Security-Tool",
"path": "app/views.py",
"copies": "1",
"size": "1823",
"license": "bsd-3-clause",
"hash": 2593765250996398000,
"line_mean": 28.8852459016,
"line_max": 68,
"alpha_frac": 0.5222161273,
"autogenerated": false,
"ratio": 4.078299776286354,
"config_test": false... |
from flask import render_template, flash, redirect,jsonify
from app import app
from .forms import LoginForm,Scanner
from XSSModule import XSS_Module
from urlparse import urlparse
from SQLModule import SQL_Module
from crawler import main
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'hacker... | {
"repo_name": "varunjammula/VSVBP",
"path": "app/views.py",
"copies": "1",
"size": "2072",
"license": "bsd-3-clause",
"hash": 4736345340008740000,
"line_mean": 29.4705882353,
"line_max": 68,
"alpha_frac": 0.5053088803,
"autogenerated": false,
"ratio": 4.144,
"config_test": false,
"has_no_keyw... |
from flask import render_template, flash, redirect, jsonify, request
from flask.ext.login import login_user, logout_user, current_user, login_required, UserMixin
from app import app, login_manager
from forms import LoginForm, AddContactForm, AddUserForm
import pymongo
from pymongo import MongoClient
import datetime
imp... | {
"repo_name": "hasanmehmood/online-phone-directory",
"path": "app/views.py",
"copies": "1",
"size": "4070",
"license": "bsd-3-clause",
"hash": 7664886953547126000,
"line_mean": 29.3805970149,
"line_max": 97,
"alpha_frac": 0.614987715,
"autogenerated": false,
"ratio": 3.9022051773729625,
"config... |
from flask import render_template, flash, redirect
from app import app, db, models
from .forms import ReviewForm
from config import HALLS
@app.route('/')
@app.route('/index')
def index():
reviews = models.Review.query.all()[::-1]
return render_template('new_index.html',
reviews=rev... | {
"repo_name": "ccellis/WHACK2016",
"path": "app/views.py",
"copies": "1",
"size": "2682",
"license": "bsd-3-clause",
"hash": -7833580451093514000,
"line_mean": 36.2638888889,
"line_max": 94,
"alpha_frac": 0.5521998509,
"autogenerated": false,
"ratio": 3.8589928057553955,
"config_test": false,
... |
from flask import render_template,flash,redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = { 'nickname': 'Miguel' } # fake user
posts = [ # fake array of posts
{
'author': { 'nickname': 'John' },
'body': 'Beautiful d... | {
"repo_name": "qianzy96/flask-project",
"path": "app/views.py",
"copies": "1",
"size": "1053",
"license": "mit",
"hash": -715796324265685900,
"line_mean": 31.9375,
"line_max": 68,
"alpha_frac": 0.5232668566,
"autogenerated": false,
"ratio": 4.003802281368821,
"config_test": false,
"has_no_key... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
from flask.ext.wtf import Form
from wtforms import StringField, BooleanField
from wtforms.validators import DataRequired
from flask import Flask, jsonify, abort, make_response, request, url_for, g, render_template, sessi... | {
"repo_name": "jborczuk/VenmoLedger",
"path": "app/views.py",
"copies": "1",
"size": "2309",
"license": "bsd-3-clause",
"hash": 5890227159499761000,
"line_mean": 36.8524590164,
"line_max": 175,
"alpha_frac": 0.6076223473,
"autogenerated": false,
"ratio": 3.36098981077147,
"config_test": false,
... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Billy Wilson'}
posts = [
{
'author': {'nickname': 'John'},
'body': 'Beautiful day in Portland!'
},
... | {
"repo_name": "arantebillywilson/python-snippets",
"path": "microblog/app/views.py",
"copies": "2",
"size": "1072",
"license": "mit",
"hash": -8749407927212652000,
"line_mean": 23.9302325581,
"line_max": 113,
"alpha_frac": 0.5074626866,
"autogenerated": false,
"ratio": 3.9267399267399266,
"conf... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname':'J'}
# array of json objects
posts = [
{
'author': {'nickname': 'Fermi'},
'body': 'Dimensional analysis is... | {
"repo_name": "odelab/odes-plot",
"path": "Apps/flask-test/app/views.py",
"copies": "1",
"size": "1204",
"license": "mit",
"hash": 3440625380144884000,
"line_mean": 29.8717948718,
"line_max": 68,
"alpha_frac": 0.5091362126,
"autogenerated": false,
"ratio": 4.3,
"config_test": false,
"has_no_k... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Malatok Dark Lord of the Flayed'} # fake user
posts = [ # fake array of posts
{
'author': {'nickname': 'Demon Major Bel... | {
"repo_name": "jaglawson3/infernalBlog",
"path": "app/views.py",
"copies": "1",
"size": "1198",
"license": "bsd-3-clause",
"hash": -6060598893137559000,
"line_mean": 34.2352941176,
"line_max": 84,
"alpha_frac": 0.5250417362,
"autogenerated": false,
"ratio": 4.088737201365188,
"config_test": fal... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Miguel'} # fake user
posts = [ # fake array of posts
{
'author': {'nickname': 'John'},
'body': 'Beautif... | {
"repo_name": "HerrNiemandStash/The-Flask-Mega-Tutorial",
"path": "app/views.py",
"copies": "1",
"size": "1202",
"license": "mit",
"hash": -7198582875199894000,
"line_mean": 29.075,
"line_max": 73,
"alpha_frac": 0.4891846922,
"autogenerated": false,
"ratio": 4.232394366197183,
"config_test": fa... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Miguel'} # fake user
posts = [ # fake array of posts
{
'author': {'nickname': 'John'},
'body': 'Beautiful... | {
"repo_name": "vasco2ramos/python-starter-project",
"path": "app/views.py",
"copies": "1",
"size": "1106",
"license": "apache-2.0",
"hash": -9081520352121263000,
"line_mean": 30.6,
"line_max": 68,
"alpha_frac": 0.4981916817,
"autogenerated": false,
"ratio": 4.237547892720307,
"config_test": fal... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Bchan'} #fake user
posts = [ #fake array of posts
{
'author':{'nickname': 'John'},
'body': 'Beautiful day i... | {
"repo_name": "capinson/microblog",
"path": "app/views.py",
"copies": "1",
"size": "1067",
"license": "mit",
"hash": -7873098675068163000,
"line_mean": 28.6388888889,
"line_max": 65,
"alpha_frac": 0.5145267104,
"autogenerated": false,
"ratio": 4.135658914728682,
"config_test": false,
"has_no_... |
from flask import render_template, flash, redirect
from app import app
from .forms import LoginForm
@app.route('/')
@app.route('/index')
def index():
user = {'nickname': 'Miguel'}
posts = [
{
'author': {'nickname': 'John'},
'body': 'Beautiful day in Portland!'
},
... | {
"repo_name": "hoangminhitvn/flask",
"path": "app/views.py",
"copies": "8",
"size": "1071",
"license": "bsd-3-clause",
"hash": -7760018805332711000,
"line_mean": 28.75,
"line_max": 68,
"alpha_frac": 0.4920634921,
"autogenerated": false,
"ratio": 4.284,
"config_test": false,
"has_no_keywords":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.