text
stringlengths
0
1.05M
meta
dict
from flask import render_template, flash, redirect, url_for, request from flask.ext.login import current_user, login_required from .. import db from ..models import Pic from . import files from datetime import datetime from .forms import FileForm import os @files.route('/upload', methods=['GET', 'POST']) @login_requ...
{ "repo_name": "Evelca1N/TreeHole", "path": "app/files/routes.py", "copies": "1", "size": "2554", "license": "mit", "hash": 1962983084962796500, "line_mean": 32.6052631579, "line_max": 76, "alpha_frac": 0.6006264683, "autogenerated": false, "ratio": 3.387267904509284, "config_test": false, "ha...
from flask import render_template, flash, redirect, url_for, request from flask.ext.login import current_user, login_user, logout_user, login_required from datetime import date from app import app, bcrypt, db, lm from .forms import EditForm, DeleteForm, LoginForm, WorkoutForm from .models import Athlete, Workout, User ...
{ "repo_name": "ericgarig/runner_tracker", "path": "app/views.py", "copies": "1", "size": "8194", "license": "mit", "hash": 8771518271213230000, "line_mean": 33.5738396624, "line_max": 108, "alpha_frac": 0.6187454235, "autogenerated": false, "ratio": 3.374794069192751, "config_test": false, "h...
from flask import render_template, flash, redirect, url_for, request from flask.ext.login import login_required, login_user, logout_user from sqlalchemy import func from app import app, db, login_manager from app.models import User FLASH_ERROR = 'danger' FLASH_SUCCESS = 'success' # Set user loader @login_manager.use...
{ "repo_name": "synchr/black-hole", "path": "app/routes.py", "copies": "1", "size": "2857", "license": "mit", "hash": 7569107720016200000, "line_mean": 27.57, "line_max": 87, "alpha_frac": 0.6608330417, "autogenerated": false, "ratio": 3.6441326530612246, "config_test": false, "has_no_keywords...
from flask import render_template, flash, redirect, url_for, request from flask.ext.login import login_required from .. import db from ..models import Client, Contact, Magazine from . import clients from .forms import EditClient, EditContact @clients.route('/') @login_required def all_clients(): clients = Client....
{ "repo_name": "ryanmattc/CDManager", "path": "app/clients/views.py", "copies": "1", "size": "6041", "license": "apache-2.0", "hash": 1065896703442659200, "line_mean": 28.763546798, "line_max": 89, "alpha_frac": 0.6042046019, "autogenerated": false, "ratio": 3.9125647668393784, "config_test": fa...
from flask import render_template, flash, redirect, url_for, request from flask_login import current_user, login_user, logout_user, login_required from werkzeug.urls import url_parse from datetime import datetime from app import app, db from app.forms import LoginForm, RegistrationForm, EditProfileForm, PostForm, Reset...
{ "repo_name": "lyuboychuk/microblog", "path": "app/routes.py", "copies": "1", "size": "6787", "license": "apache-2.0", "hash": 8505015491899074000, "line_mean": 41.41875, "line_max": 122, "alpha_frac": 0.6737881244, "autogenerated": false, "ratio": 3.60053050397878, "config_test": false, "has...
from flask import render_template, flash, redirect, url_for, request from flask_login import current_user from app import app, db from app.models.forms import SearchBook, NewBookForm from app.models.tables import Book, UserBook # Função que recebe um gerador e aplica o or no valores do gerador. def or_(gen): # Pega ...
{ "repo_name": "juliarizza/bookfree", "path": "app/controllers/books.py", "copies": "1", "size": "4907", "license": "mit", "hash": 1248092381025298400, "line_mean": 35.2, "line_max": 230, "alpha_frac": 0.5917740945, "autogenerated": false, "ratio": 3.3222297756628145, "config_test": false, "ha...
from flask import render_template, flash, redirect, url_for, request from flask_login import login_required, current_user from ..models import User, Sensors, Sensor_data from . import chart from pytz import timezone # import pygal from pyecharts import Line import os from ..main.forms import SelectMultipleSensorForm t...
{ "repo_name": "Harold2017/myfirstflasky", "path": "app/chart/views.py", "copies": "1", "size": "2433", "license": "mit", "hash": -8184428437974089000, "line_mean": 36.4307692308, "line_max": 119, "alpha_frac": 0.5869297164, "autogenerated": false, "ratio": 3.8194662480376764, "config_test": fal...
from flask import render_template, flash, redirect, url_for, request from flask_login import logout_user, login_required, current_user, login_user from .. import db from . import auth from ..models import User from .form import LoginForm, RegistrationForm from ..email import send_email @auth.route('/login', methods...
{ "repo_name": "michaelgichia/Twezana", "path": "app/auth/views.py", "copies": "1", "size": "2776", "license": "mit", "hash": 3769196630514977000, "line_mean": 34.6025641026, "line_max": 100, "alpha_frac": 0.689481268, "autogenerated": false, "ratio": 3.67682119205298, "config_test": false, "h...
from flask import render_template, flash, redirect, url_for, request from . import main from ..models import User, Role, Post, Permission from flask.ext.login import login_required, current_user, current_app from .forms import EditProfileForm, EditProfileAdminForm, PostForm from .. import db from ..decorators import ad...
{ "repo_name": "zarinfar/Social-Network", "path": "app/main/views.py", "copies": "1", "size": "3044", "license": "mit", "hash": 629715324311801900, "line_mean": 40.698630137, "line_max": 145, "alpha_frac": 0.6918528252, "autogenerated": false, "ratio": 3.4988505747126437, "config_test": false, ...
from flask import render_template, flash, redirect, url_for, request from webapp import app, db from webapp.forms import SignUpForm from webapp.models import Monkey, Friendship, BestFriend from config import PER_PAGE @app.route('/', methods=['GET', 'POST']) def home(): form = SignUpForm() if form.validate_on_...
{ "repo_name": "Sajjadhosn/web-app-monkey", "path": "webapp/views.py", "copies": "1", "size": "11465", "license": "mit", "hash": 1199040235126735600, "line_mean": 38.6712802768, "line_max": 79, "alpha_frac": 0.5406018317, "autogenerated": false, "ratio": 4.011546536039188, "config_test": false, ...
from flask import render_template, flash, redirect, url_for, request, Response from datetime import datetime from app import app, db from .models import User, Event, UserEventsLink import random from random import randint import json from sqlalchemy import desc from datetime import timedelta from flask import make_r...
{ "repo_name": "cataliniordache/Human-Computer-Interaction-Project", "path": "RestfulServices/app/controllers.py", "copies": "1", "size": "13938", "license": "apache-2.0", "hash": -3493886983051233000, "line_mean": 34.3756345178, "line_max": 133, "alpha_frac": 0.5824365045, "autogenerated": false, ...
from flask import render_template, flash, redirect, url_for, request from mongoengine import * from app import app from app.models import Tweet from app.forms import SearchFrom import config @app.route("/index", methods=['GET', 'POST']) @app.route("/", methods=['GET', 'POST']) def index(): """ :re...
{ "repo_name": "aidanknowles/TweetVibe", "path": "app/views.py", "copies": "1", "size": "11102", "license": "mit", "hash": 403145443855090900, "line_mean": 36.6898954704, "line_max": 166, "alpha_frac": 0.5703476851, "autogenerated": false, "ratio": 4.3418068048494325, "config_test": false, "ha...
from flask import render_template, flash, redirect, url_for, request, session from flask.ext.login import login_user, logout_user, login_required,\ current_user from . import auth from ..models import User from .forms import LoginForm from .. import oid, db from datetime import datetime ROLE_USER = 2 @auth.befor...
{ "repo_name": "happyraul/tv", "path": "app/auth/views.py", "copies": "1", "size": "2070", "license": "apache-2.0", "hash": -6058276090499074000, "line_mean": 31.8571428571, "line_max": 77, "alpha_frac": 0.6376811594, "autogenerated": false, "ratio": 3.6062717770034842, "config_test": false, "...
from flask import render_template, flash, redirect, url_for from app import app, db from .models import StockExchange, Company, Index #, Industry, CapMarket from .grapher import graphData from config import POST_PER_PAGE from config import SCTR_AVERAGE from datetime import date import time from dateutil.relativ...
{ "repo_name": "ASpelling/mw-trading", "path": "app/views.py", "copies": "1", "size": "3988", "license": "apache-2.0", "hash": -1058968583724571100, "line_mean": 33.9279279279, "line_max": 248, "alpha_frac": 0.6564694082, "autogenerated": false, "ratio": 3.3825275657336724, "config_test": false,...
from flask import render_template, flash, redirect, url_for, send_from_directory from readhub import app from readhub import db from forms import RegistrationForm, LoginForm, BookAddForm from models import User from flask.ext.login import LoginManager, login_user, logout_user, login_required login_manager = LoginManag...
{ "repo_name": "readhub/readhub", "path": "readhub/server.py", "copies": "1", "size": "2625", "license": "mit", "hash": -678863421674919300, "line_mean": 26.9255319149, "line_max": 95, "alpha_frac": 0.636952381, "autogenerated": false, "ratio": 3.426892950391645, "config_test": false, "has_no_...
from flask import render_template, flash, redirect, url_for, session, Markup, request, g from app import app from .forms import InputForm print("Top of Views") @app.route('/', methods=['GET', 'POST']) @app.route('/index', methods=['GET', 'POST']) def index(): print("Top of index") form = InputForm() if form....
{ "repo_name": "KCLegalHackers/CodingForLawyers", "path": "ProjectFiles/flask_court_form_maker-master/app/views.py", "copies": "1", "size": "1390", "license": "mit", "hash": -4847804666231279000, "line_mean": 24.2727272727, "line_max": 88, "alpha_frac": 0.6035971223, "autogenerated": false, "ratio...
from flask import render_template, flash, redirect, url_for, session, request from app import app, con, mdb from .forms import LoginForm # from .forms import SignupForm import hashlib @app.route('/') @app.route('/index') def index(): if not session.get('logged_in', False): return redirect('/login') us...
{ "repo_name": "saurabhpatil8989/doctorsfor.me", "path": "app/backup/_views.py", "copies": "2", "size": "4138", "license": "apache-2.0", "hash": -9021009809210485000, "line_mean": 34.0677966102, "line_max": 241, "alpha_frac": 0.5473658772, "autogenerated": false, "ratio": 3.896421845574388, "con...
from flask import render_template, flash, request, g, redirect, url_for, send_from_directory, abort, send_file, session from flask import Response from flask_login import login_user, logout_user, login_required, current_user from flask_graphql import GraphQLView from sqlalchemy.orm.exc import NoResultFound, MultipleRe...
{ "repo_name": "dedeco/simapp", "path": "web/frontend/views.py", "copies": "1", "size": "24261", "license": "mit", "hash": -1514693556144078800, "line_mean": 25.808839779, "line_max": 164, "alpha_frac": 0.6712419109, "autogenerated": false, "ratio": 2.9564952473799657, "config_test": false, "h...
from flask import render_template, flash, request, jsonify from flask.ext.login import login_required, current_user from datetime import datetime from . import main from .. import mongo @main.route('/') @login_required def index(): return render_template('index.html', current_user=current_user) @main....
{ "repo_name": "likit/lab-instrument-booking-app", "path": "webapp/app/main/views.py", "copies": "1", "size": "1460", "license": "apache-2.0", "hash": -4123197289950611500, "line_mean": 32.1818181818, "line_max": 77, "alpha_frac": 0.6054794521, "autogenerated": false, "ratio": 3.686868686868687, ...
from flask import (render_template, flash, request, url_for, redirect, session, g) from functools import wraps import gc from app.models import User from app import app, db from app.forms import RegistrationForm, LoginForm def login_required(f): @wraps(f) def wrap(*args, **kwargs): ...
{ "repo_name": "spizeck/aircraftlogs", "path": "app/views.py", "copies": "1", "size": "3250", "license": "mit", "hash": 867255539427260500, "line_mean": 26.3193277311, "line_max": 80, "alpha_frac": 0.5523076923, "autogenerated": false, "ratio": 4.119138149556401, "config_test": false, "has_no_...
from flask import render_template, flash, request, redirect, url_for, abort, jsonify from app import app, host, port, user, passwd, db from .forms import SearchForm from datetime import datetime import pandas as pd import pandas.io.sql as psql import numpy as np import pymysql import operator import networkx as nw impo...
{ "repo_name": "aimran/git-discover", "path": "app/views.py", "copies": "1", "size": "2730", "license": "mit", "hash": -7645401547942182000, "line_mean": 27.1443298969, "line_max": 84, "alpha_frac": 0.6681318681, "autogenerated": false, "ratio": 3.442622950819672, "config_test": false, "has_no...
from flask import render_template, flash, request, redirect, url_for, abort from flask.ext.login import login_user, logout_user, login_required, \ current_user from . import app, db from .forms import RegistrationForm, LoginForm, EditProfileForm, \ ChangePass...
{ "repo_name": "timzdevz/fm-flask-app", "path": "app/views.py", "copies": "1", "size": "4516", "license": "mit", "hash": 2652011571031157000, "line_mean": 30.4892086331, "line_max": 79, "alpha_frac": 0.624003543, "autogenerated": false, "ratio": 3.77907949790795, "config_test": false, "has_no_...
from flask import render_template, flash, request, redirect, url_for from flask_login import login_required, current_user from ..models import User_files from .. import db from . import cri from werkzeug.utils import secure_filename from pyecharts import Line import os from flask_wtf import FlaskForm from wtforms impo...
{ "repo_name": "Harold2017/myfirstflasky", "path": "app/cri/views.py", "copies": "1", "size": "18502", "license": "mit", "hash": 507112010878310100, "line_mean": 36.6056910569, "line_max": 117, "alpha_frac": 0.5546967895, "autogenerated": false, "ratio": 2.954647077610987, "config_test": false, ...
from flask import render_template, flash, request, redirect, url_for from flask_login import login_required from kernel import agileCalendar from kernel.DataBoard import Data from kernel.NM_Aggregates import WorkBacklog, DevBacklog, RiskBacklog from kconfig import coordinationBookByName from . import coordination __a...
{ "repo_name": "flopezag/fiware-backlog", "path": "app/coordination/views.py", "copies": "1", "size": "6105", "license": "apache-2.0", "hash": -2742460285727581000, "line_mean": 36.6851851852, "line_max": 91, "alpha_frac": 0.6226044226, "autogenerated": false, "ratio": 4.266247379454927, "config...
from flask import render_template, flash, request, send_from_directory from app import app from flask import request from wtforms import Form, validators, TextField, SelectField, TextAreaField, SelectMultipleField, SubmitField from wtforms.fields.html5 import DateField from wtforms_components import DateIntervalField, ...
{ "repo_name": "nmaiese/wikilytics", "path": "app/views.py", "copies": "1", "size": "3049", "license": "apache-2.0", "hash": 5526789254340988000, "line_mean": 36.6419753086, "line_max": 182, "alpha_frac": 0.6310265661, "autogenerated": false, "ratio": 3.7411042944785278, "config_test": false, ...
from flask import render_template, flash, request, session, redirect, g, abort from routes import app class User(object): def __init__(self, username): # load matches = app.db.execute('SELECT * FROM APP_USER WHERE Username=%s', username) self.name, self.id, self.description, self.latitude, self....
{ "repo_name": "kazagistar/fungitrack", "path": "auth.py", "copies": "1", "size": "2991", "license": "mit", "hash": -8384211587160395000, "line_mean": 31.8681318681, "line_max": 116, "alpha_frac": 0.6328986961, "autogenerated": false, "ratio": 3.988, "config_test": false, "has_no_keywords": fa...
from flask import render_template, flash, request, url_for, redirect, session, abort, g from app import app, db, login_manager ## LOGIN imports ## from flask_login import login_user, logout_user, current_user, login_required from .models import User from .forms import RegistrationForm # Exceptions # from sqlalchemy ...
{ "repo_name": "EddyCodeIt/SPA_Project_2016_Data_Rep-Quering", "path": "app/views.py", "copies": "1", "size": "6100", "license": "apache-2.0", "hash": -1835574796638615800, "line_mean": 33.0782122905, "line_max": 126, "alpha_frac": 0.6980327869, "autogenerated": false, "ratio": 3.6158861885002964,...
from flask import render_template, flash, session, redirect, \ url_for, abort from .forms import LoginForm, ResetForm, PasswordEditForm from .decorators import login_required from project.models import User from project.blueprints import auth_app @auth_app.route('/login', methods=['GET', 'POST']) def login(): ...
{ "repo_name": "uaprom-summer-2015/Meowth", "path": "project/auth/views.py", "copies": "1", "size": "2489", "license": "bsd-3-clause", "hash": -4922622394890022000, "line_mean": 27.8860759494, "line_max": 74, "alpha_frac": 0.620508326, "autogenerated": false, "ratio": 2.97911227154047, "config_t...
from flask import render_template, flash, url_for, redirect from flask_login import current_user, login_required from . import gallery from ..models import Image, User, Battle, Permission from .. import db from .forms import ChallengeForm @gallery.route("/") def show(): images = Image.query.limit(12) return r...
{ "repo_name": "Qumeric/instabattle", "path": "app/gallery/views.py", "copies": "1", "size": "1497", "license": "mit", "hash": 7603636027041026000, "line_mean": 36.425, "line_max": 77, "alpha_frac": 0.5898463594, "autogenerated": false, "ratio": 4.146814404432133, "config_test": false, "has_no...
from flask import render_template, flash, url_for, redirect, request, g, jsonify from flask.ext.login import login_user, logout_user, current_user, login_required from flask.ext.socketio import emit, disconnect, join_room, leave_room from Lister import app, db, lm, socketio from forms import LoginForm, SignupForm, List...
{ "repo_name": "f-enye/Lister", "path": "Lister/views.py", "copies": "1", "size": "10318", "license": "mit", "hash": -5674808756401604000, "line_mean": 30.0813253012, "line_max": 107, "alpha_frac": 0.6942236868, "autogenerated": false, "ratio": 3.131411229135053, "config_test": false, "has_no_...
from flask import render_template, flash, url_for, redirect, send_from_directory, jsonify, request from app import app, tmdb, lib from app.forms import SearchForm, TVSettingsForm, MovieSettingsForm, QualityForm, SettingsForm from app.models import Movie, TV, TVSeason, TVEpisode, TVEpisodeFile, MovieFile, Settings, Log ...
{ "repo_name": "Zo0x/hedhes", "path": "app/viewers/movies.py", "copies": "1", "size": "5117", "license": "mit", "hash": -8152109208735423000, "line_mean": 37.4736842105, "line_max": 117, "alpha_frac": 0.6298612468, "autogenerated": false, "ratio": 3.4090606262491674, "config_test": false, "has...
from flask import render_template, flash, url_for, redirect, send_from_directory, jsonify, request from wtforms import StringField from . import app, tmdb, lib from .forms import SearchForm, TVSettingsForm, MovieSettingsForm, QualityForm, SettingsForm from .models import Movie, TV, TVSeason, TVEpisode, TVEpisodeFile, ...
{ "repo_name": "Zo0x/hedhes", "path": "app/views.py", "copies": "1", "size": "1669", "license": "mit", "hash": 7489002168503195000, "line_mean": 38.7380952381, "line_max": 120, "alpha_frac": 0.6566806471, "autogenerated": false, "ratio": 3.845622119815668, "config_test": false, "has_no_keyword...
from flask import render_template, flash, url_for, redirect, session, request, g from app import app from models import Post, User from decorators import login_required from forms import PostForm, EditForm from google.appengine.api import users from google.appengine.ext import db @app.before_request def before_reque...
{ "repo_name": "benchisell/curate_flask_appengine", "path": "app/views.py", "copies": "1", "size": "2178", "license": "apache-2.0", "hash": -7371659919492301000, "line_mean": 32.5076923077, "line_max": 82, "alpha_frac": 0.6037649219, "autogenerated": false, "ratio": 3.6059602649006623, "config_t...
from flask import render_template, flash, url_for, request, redirect, session import datetime import random import sys from . import app, facebook, models, db, FACEBOOK_APP_ID, FACEBOOK_APP_SECRET @app.route('/', methods=['GET', 'POST']) @app.route('/home', methods=['GET', 'POST']) def index(): return render_tem...
{ "repo_name": "luizdepra/sketch_n_hit", "path": "app/requests.py", "copies": "1", "size": "11628", "license": "mit", "hash": -2436053267303452700, "line_mean": 33.5044510386, "line_max": 114, "alpha_frac": 0.4967320261, "autogenerated": false, "ratio": 4.319465081723625, "config_test": false, ...
from flask import render_template, Flask from flask_socketio import SocketIO, emit import json import uuid app = Flask(__name__) socketio = SocketIO(app) _requests = [] @app.route('/requests') def getRequests(): requests = [] for i, val in enumerate(_requests): req = val req["id"] = i + 1 ...
{ "repo_name": "yanigisawa/dance-jukebox", "path": "src/jukebox.py", "copies": "1", "size": "1191", "license": "mit", "hash": 5491683888635590000, "line_mean": 22.3529411765, "line_max": 62, "alpha_frac": 0.617968094, "autogenerated": false, "ratio": 3.4224137931034484, "config_test": false, "...
from flask import render_template,Flask, request,flash, redirect, url_for,session import serial import string from app import app, db from app.models import * import datetime import os,time from itertools import cycle import RPi.GPIO as GPIO from gpiozero import Buzzer GPIO.setmode(GPIO.BOARD) but1=15 but2=16 but3=22 ...
{ "repo_name": "akhilesh-k/Intelligent-Alarm", "path": "Flask Implementation/app/views.py", "copies": "3", "size": "1878", "license": "mit", "hash": -3539300708196437000, "line_mean": 20.1011235955, "line_max": 82, "alpha_frac": 0.6714589989, "autogenerated": false, "ratio": 2.5447154471544717, ...
from flask import (render_template, Flask, request, flash, session, redirect, url_for, g) from app import app, forms, models, db, lm, bcrypt from random import randint from sqlalchemy import func import pandas as pd from flask.ext.login import (LoginManager, login_required, login_user, logout_user, current_user) impo...
{ "repo_name": "anniejw6/numb3rs_randomizer", "path": "app/views.py", "copies": "1", "size": "4158", "license": "mit", "hash": 4077815832180595700, "line_mean": 23.4647058824, "line_max": 70, "alpha_frac": 0.6892736893, "autogenerated": false, "ratio": 3.1053024645257654, "config_test": false, ...
from flask import (render_template, Flask, request, flash, session, redirect, url_for, g) from app import app, forms, models, db, lm, bcrypt from random import randint import random from sqlalchemy import func import pandas as pd from flask.ext.login import (LoginManager, login_required, login_user, logout_user, curr...
{ "repo_name": "anniejw6/drink_random", "path": "app/views.py", "copies": "1", "size": "6285", "license": "mit", "hash": 2470065111816122400, "line_mean": 26.0948275862, "line_max": 110, "alpha_frac": 0.6746221161, "autogenerated": false, "ratio": 2.893646408839779, "config_test": false, "has_...
from flask import render_template, Flask, request, redirect, flash from app import app from .forms import RequestForm import requests from twilio.rest import TwilioRestClient import twilio.twiml import urllib import math import sys import urllib2 ''' @author Arjun Jain @author Chris Bernt @author Greg Lyons @author We...
{ "repo_name": "jarjun/EmergencyTextToVoiceCall", "path": "app/views.py", "copies": "1", "size": "4780", "license": "mit", "hash": 6723882218916054000, "line_mean": 29.0628930818, "line_max": 126, "alpha_frac": 0.6276150628, "autogenerated": false, "ratio": 3.238482384823848, "config_test": fals...
from flask import render_template, Flask, request, redirect, flash from app import app import requests from twilio.rest import TwilioRestClient import twilio.twiml import os import time leagueAPI = os.environ['LEAGUE_API'] @app.route("/", methods=['GET', 'POST']) def main(): try: toGet = request.values.ge...
{ "repo_name": "jarjun/SummonerSMS", "path": "app/views.py", "copies": "1", "size": "3114", "license": "mit", "hash": -617486497761060200, "line_mean": 30.15, "line_max": 256, "alpha_frac": 0.5446371227, "autogenerated": false, "ratio": 3.3664864864864863, "config_test": false, "has_no_keyword...
from flask import render_template, Flask, request, redirect, url_for, current_app from app import app from urllib2 import urlopen from bs4 import BeautifulSoup from google.appengine.ext import db from flaskext import wtf from flaskext.wtf import Form, TextField, TextAreaField, SubmitField, validators, ValidationError f...
{ "repo_name": "alwayssayyes/incrediblesy", "path": "app/viewss.py", "copies": "1", "size": "1673", "license": "apache-2.0", "hash": 866611496563552300, "line_mean": 27.8448275862, "line_max": 97, "alpha_frac": 0.6610878661, "autogenerated": false, "ratio": 3.5595744680851062, "config_test": fal...
from flask import render_template, Flask, request, redirect, url_for, current_app from app import app import urllib2 from bs4 import BeautifulSoup from flaskext import wtf from flaskext.wtf import Form, TextField, TextAreaField, \ SubmitField, validators, ValidationError, IntegerField from google.appengine.ext impo...
{ "repo_name": "kho0810/likelion_Web", "path": "app/views.py", "copies": "1", "size": "5752", "license": "apache-2.0", "hash": 600843768341572900, "line_mean": 27.9045226131, "line_max": 101, "alpha_frac": 0.5900556328, "autogenerated": false, "ratio": 3.619886721208307, "config_test": false, ...
#from flask import render_template, Flask, url_for, request, redirect #from app import app import os #from werkzeug import secure_filename import mechanize import time #import platform # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with...
{ "repo_name": "gozhen/MEME-out-to-logo", "path": "s_gen_enologo_logo.py", "copies": "1", "size": "2463", "license": "mpl-2.0", "hash": 7383836813596158000, "line_mean": 13.0742857143, "line_max": 72, "alpha_frac": 0.5915550142, "autogenerated": false, "ratio": 3.4544179523141656, "config_test":...
from flask import (render_template, g, abort) from flask.ext.login import current_user, login_required from app import app from models import Brew, Malt, Hop, Yeast, Style import simplejson ''' @lm.user_loader def load_user(id): return User.query.get(int(id)) ''' @app.before_request def before_request(): g.u...
{ "repo_name": "atlefren/beercalc", "path": "app/views.py", "copies": "1", "size": "2230", "license": "mit", "hash": -2410533934790585000, "line_mean": 22.9784946237, "line_max": 75, "alpha_frac": 0.6434977578, "autogenerated": false, "ratio": 3.017591339648173, "config_test": false, "has_no_k...
from flask import render_template, g, abort from webassets.loaders import PythonLoader from flask.ext.assets import Environment, Bundle from flask.ext.login import current_user from flask.ext.login import login_required from functools import wraps from models import Pol, Observation from login_setup import setup_login...
{ "repo_name": "atlefren/polliste", "path": "polliste/views.py", "copies": "1", "size": "1576", "license": "mit", "hash": 7739282753205872000, "line_mean": 25.7288135593, "line_max": 78, "alpha_frac": 0.644035533, "autogenerated": false, "ratio": 3.825242718446602, "config_test": false, "has_n...
from flask import render_template, g, flash, redirect, url_for, request from flask_peewee.utils import object_list from werkzeug.datastructures import FileStorage from werkzeug.utils import secure_filename from peewee import fn, JOIN from apps.forms.others import TugasForm from apps.models import KumpulTugas, Tugas, M...
{ "repo_name": "ap13p/elearn", "path": "apps/views/dosen/__init__.py", "copies": "1", "size": "3490", "license": "bsd-3-clause", "hash": -6981690618543686000, "line_mean": 33.9, "line_max": 75, "alpha_frac": 0.6255014327, "autogenerated": false, "ratio": 2.942664418212479, "config_test": false, ...
from flask import render_template, g, request, redirect from topmodel import plots from topmodel.hmetrics import auc from web import app import matplotlib.pyplot as plt @app.route("/") def home(): model_paths = sorted(g.model_data_manager.models.keys()) return render_template("index.html", model_paths=model...
{ "repo_name": "Jay-Oh-eN/topmodel", "path": "web/views/pages.py", "copies": "1", "size": "2302", "license": "mit", "hash": 4272233964058764300, "line_mean": 31.4225352113, "line_max": 89, "alpha_frac": 0.6589921807, "autogenerated": false, "ratio": 3.4154302670623147, "config_test": false, "h...
from flask import render_template, g, request, redirect from topmodel.model_data import ModelDataManager from topmodel import plots from topmodel.hmetrics import auc from topmodel.model_data import ModelData from web import app import matplotlib.pyplot as plt @app.route("/") def home(): model_data_manager = Mod...
{ "repo_name": "geohot/topmodel", "path": "web/views/pages.py", "copies": "1", "size": "2309", "license": "mit", "hash": 677891831613649700, "line_mean": 31.0694444444, "line_max": 83, "alpha_frac": 0.6643568644, "autogenerated": false, "ratio": 3.405604719764012, "config_test": false, "has_no...
from flask import render_template, g, request, url_for, jsonify, redirect from flask_login import current_user, login_required import flask_menu as menu from sqlalchemy import desc, asc from app import app, lm from app.user.models import User, UserJoin from app.contest.models import Contest from app.submission.models ...
{ "repo_name": "vigov5/oshougatsu2015", "path": "app/common/views.py", "copies": "1", "size": "4542", "license": "mit", "hash": -715884647923253400, "line_mean": 33.679389313, "line_max": 237, "alpha_frac": 0.6162483487, "autogenerated": false, "ratio": 3.4435178165276725, "config_test": true, ...
from flask import render_template, g, session, request, url_for, \ make_response from flask.ext.login import current_user from mojibake.app import app, babel, login_manager from mojibake.settings import LANGUAGES from mojibake.models import User, Tag, Category, Post import datetime # Adapted from http://flask.p...
{ "repo_name": "ardinor/mojibake", "path": "mojibake/views/__init__.py", "copies": "1", "size": "2801", "license": "mit", "hash": -466238536055973440, "line_mean": 30.4719101124, "line_max": 93, "alpha_frac": 0.6597643699, "autogenerated": false, "ratio": 3.4452644526445266, "config_test": false...
from flask import render_template, g, url_for, redirect, request, flash, Markup, send_from_directory from werkzeug import secure_filename from flask_login import login_user, logout_user, login_required, current_user from blog import app, db, loginmanager, forms from models import User, Comment, Article, Category, Uploa...
{ "repo_name": "pulmro/pulmro-blog", "path": "blog/views.py", "copies": "1", "size": "8615", "license": "apache-2.0", "hash": 1916469942593603300, "line_mean": 38.7004608295, "line_max": 120, "alpha_frac": 0.6610562972, "autogenerated": false, "ratio": 3.673773987206823, "config_test": false, ...
from flask import render_template, g, url_for, redirect, request, Response from sqlalchemy import and_ from scrimmage import app, db from scrimmage.models import User, Team, TeamJoinRequest, GameRequest, GameRequestStatus, Game, Announcement, Tournament from scrimmage.decorators import login_required, team_required, ...
{ "repo_name": "mitpokerbots/scrimmage", "path": "scrimmage/user/index.py", "copies": "1", "size": "5468", "license": "mit", "hash": 8787212292110931000, "line_mean": 38.3381294964, "line_max": 144, "alpha_frac": 0.7068397952, "autogenerated": false, "ratio": 3.4047322540473224, "config_test": f...
from flask import render_template, jsonify, Blueprint, redirect, url_for, request from sqlalchemy.sql.expression import union_all from CTFd.models import db, Teams, Solves, Awards, Challenges from CTFd import utils scoreboard = Blueprint('scoreboard', __name__) def get_standings(admin=False, count=None): score...
{ "repo_name": "liam-middlebrook/CTFd", "path": "CTFd/scoreboard.py", "copies": "2", "size": "4529", "license": "apache-2.0", "hash": -2625075213233955300, "line_mean": 33.8384615385, "line_max": 105, "alpha_frac": 0.6113932435, "autogenerated": false, "ratio": 3.462538226299694, "config_test": ...
from flask import render_template, jsonify, Blueprint, redirect, url_for, request from sqlalchemy.sql.expression import union_all from CTFd.utils import unix_time, authed, get_config, hide_scores from CTFd.models import db, Teams, Solves, Awards, Challenges scoreboard = Blueprint('scoreboard', __name__) def get_sta...
{ "repo_name": "mschwager/CTFd", "path": "CTFd/scoreboard.py", "copies": "1", "size": "3947", "license": "apache-2.0", "hash": -9170895786373971000, "line_mean": 41.4408602151, "line_max": 158, "alpha_frac": 0.6126171776, "autogenerated": false, "ratio": 3.492920353982301, "config_test": false, ...
from flask import render_template, jsonify, Blueprint, redirect, url_for, request, session from sqlalchemy.sql.expression import union_all from CTFd.utils import unix_time, authed, get_config from CTFd.models import db, Students, Solves, Awards, Challenges, Teams scoreboard = Blueprint('scoreboard', __name__) def g...
{ "repo_name": "jaboyles/CFTD_Senior_Project", "path": "CTFd/scoreboard.py", "copies": "1", "size": "4460", "license": "apache-2.0", "hash": 1054461866144708700, "line_mean": 45.4583333333, "line_max": 155, "alpha_frac": 0.6215246637, "autogenerated": false, "ratio": 3.3968012185833967, "config_...
from flask import render_template, jsonify, current_app, abort from project.blueprints import feed_app from project.lib.feed import get_visible_vacancies_list, get_vacancy4json from project.models import Vacancy, Category, City from project.feed.forms import apply_form_factory from project.lib.mail import send_mail_fro...
{ "repo_name": "uaprom-summer-2015/Meowth", "path": "project/feed/views.py", "copies": "2", "size": "2048", "license": "bsd-3-clause", "hash": -3035890870442917000, "line_mean": 28.2571428571, "line_max": 73, "alpha_frac": 0.6494140625, "autogenerated": false, "ratio": 3.250793650793651, "config...
from flask import render_template, jsonify, flash, redirect, url_for from mongoengine import DoesNotExist from flask_modular_auth import current_authenticated_entity from mass_flask_core.models import Sample, Report, ScheduledAnalysis, AnalysisSystem, AnalysisRequest from mass_flask_core.utils import PaginationFunctio...
{ "repo_name": "mass-project/mass_server", "path": "mass_flask_webui/views/sample.py", "copies": "1", "size": "5017", "license": "mit", "hash": -4424855296914642000, "line_mean": 40.1229508197, "line_max": 138, "alpha_frac": 0.6226828782, "autogenerated": false, "ratio": 4.149710504549215, "conf...
from flask import render_template, jsonify, flash, url_for, redirect, request from flask import json as json2 from . import main from .. import db from ..models import Store from ..models import Dish from ..models import Order, User from .forms import TimePickerForm, StateUpdateForm from flask.ext.login import current_...
{ "repo_name": "stevenxzhou/cafeteria_ol", "path": "app/main/views.py", "copies": "1", "size": "1956", "license": "mit", "hash": -7637676041784474000, "line_mean": 41.5217391304, "line_max": 181, "alpha_frac": 0.6906952965, "autogenerated": false, "ratio": 3.4497354497354498, "config_test": fals...
from flask import render_template, jsonify, flash, url_for, redirect, request from . import manage from .. import db from ..models import Store, Dish, Order, User from .forms import StateUpdateForm from flask.ext.login import current_user, login_required from datetime import datetime @manage.route('/update-orders', me...
{ "repo_name": "stevenxzhou/cafeteria_ol", "path": "app/manage/views.py", "copies": "1", "size": "1049", "license": "mit", "hash": 3723159776168783400, "line_mean": 30.8181818182, "line_max": 77, "alpha_frac": 0.6510962822, "autogenerated": false, "ratio": 3.680701754385965, "config_test": false...
from flask import render_template, jsonify, g from dartsense.webapp import app from dartsense.webapp import helpers from dartsense.competition import Competition from dartsense.competition import CompetitionList from dartsense.organisation import Organisation from dartsense.organisation import OrganisationList from da...
{ "repo_name": "basbloemsaat/dartsense", "path": "lib/dartsense/webapp/views/list.py", "copies": "1", "size": "2374", "license": "mit", "hash": -9082988907204936000, "line_mean": 28.675, "line_max": 111, "alpha_frac": 0.7455770851, "autogenerated": false, "ratio": 3.410919540229885, "config_test...
from flask import render_template, jsonify from app import app from app.models import User, List, Task # Todo Views @app.route('/') @app.route('/todo') def index(): return render_template('index.html', name='YOUR NAME HERE') @app.route('/todo/login') # Example URL: http://www.todo.com def login(): # let's see...
{ "repo_name": "florapdx/pyladies_webapp101", "path": "app/views.py", "copies": "1", "size": "1271", "license": "mit", "hash": -289726120192997900, "line_mean": 29.2857142857, "line_max": 84, "alpha_frac": 0.6687647522, "autogenerated": false, "ratio": 3.0118483412322274, "config_test": false, ...
from flask import render_template, jsonify from app import app from utils import stats from utils.tree_render import TreeRender def _tree_render(index): resp_data = {'index': index, 'tree': 'tree index %s not found' % (index)} tree_data = stats.get_data('Runner:best_tree') tree_render = TreeRender(tree_data[ind...
{ "repo_name": "dougsc/gp", "path": "viewer/app/views.py", "copies": "1", "size": "1725", "license": "apache-2.0", "hash": 7008523918007699000, "line_mean": 26.380952381, "line_max": 75, "alpha_frac": 0.5976811594, "autogenerated": false, "ratio": 3.1944444444444446, "config_test": false, "has...
from flask import render_template, jsonify from .app import app, rq, mail from rq import get_current_job from rq.exceptions import NoSuchJobError from integrations import base_crm, briteverify import flanker.addresslib.address from flask_mail import Message import logging from datetime import datetime log = logging.g...
{ "repo_name": "spacedogXYZ/email-validator", "path": "app/jobs.py", "copies": "1", "size": "7049", "license": "mit", "hash": 8523429988761136000, "line_mean": 34.245, "line_max": 116, "alpha_frac": 0.6512980565, "autogenerated": false, "ratio": 3.8, "config_test": true, "has_no_keywords": fal...
from flask import render_template, jsonify, request, current_app, url_for, abort from flask.ext.login import login_required, current_user from . import api from .. import db from flask.ext.login import login_user, logout_user, login_required, \ current_user from ..models import User, Species, Population, Taxonomy, ...
{ "repo_name": "Spandex-at-Exeter/demography_database", "path": "app/api_1_0/users.py", "copies": "1", "size": "9541", "license": "mit", "hash": -3996361086457590300, "line_mean": 42.1764705882, "line_max": 601, "alpha_frac": 0.5799182476, "autogenerated": false, "ratio": 4.116048317515099, "con...
from flask import render_template, jsonify, request, json from maraschino.noneditable import server_api_address from maraschino.models import Setting from maraschino.database import db_session from maraschino.tools import requires_auth, get_setting, get_setting_value, natural_sort, format_seconds from maraschino import...
{ "repo_name": "N3MIS15/maraschino-webcam", "path": "modules/library.py", "copies": "3", "size": "39359", "license": "mit", "hash": 3166479542430254600, "line_mean": 33.465849387, "line_max": 138, "alpha_frac": 0.5009019538, "autogenerated": false, "ratio": 3.97044285281953, "config_test": false...
from flask import render_template, jsonify, request, json from maraschino.noneditable import server_api_address, safe_server_address from maraschino.models import Setting from maraschino.database import db_session from maraschino.tools import requires_auth, get_setting, get_setting_value, natural_sort, format_seconds f...
{ "repo_name": "robweber/maraschino", "path": "modules/library.py", "copies": "1", "size": "40638", "license": "mit", "hash": -2169893182096000500, "line_mean": 33.7333333333, "line_max": 139, "alpha_frac": 0.5032235838, "autogenerated": false, "ratio": 3.9558064830137254, "config_test": false, ...
from flask import render_template, jsonify, request from app import app, queue from .musicControl import * @app.route('/nowPlaying') @app.route('/') def home(): display = { 'id': '0001', 'artwork': '/static/images/home.jpg', 'title': 'song title', 'artist': 'artist', 'album': 'album' } songs = q...
{ "repo_name": "edfungus/Music-Server", "path": "app/app/views.py", "copies": "1", "size": "2910", "license": "apache-2.0", "hash": 6557826368173754000, "line_mean": 29.6315789474, "line_max": 155, "alpha_frac": 0.6986254296, "autogenerated": false, "ratio": 3.1872946330777654, "config_test": fa...
from flask import render_template, jsonify, request from jsonrpclib import jsonrpc import base64 import urllib from maraschino import app, logger from maraschino.tools import * def nzbget_http(): if get_setting_value('nzbget_https') == '1': return 'https://' else: return 'http://' def nzbge...
{ "repo_name": "awagnon/maraschino", "path": "modules/nzbget.py", "copies": "8", "size": "3148", "license": "mit", "hash": -8678427301492750000, "line_mean": 25.905982906, "line_max": 73, "alpha_frac": 0.6092757306, "autogenerated": false, "ratio": 3.23535457348407, "config_test": false, "has_...
from flask import render_template, jsonify, request from markupsafe import Markup from appshell import current_appshell from appshell.markup import (element, link_button, button, xmltag, form_button, glyphicon) from appshell.urls import res_url, url_or_url_for from appshell.templates import...
{ "repo_name": "adh/appshell", "path": "appshell/tables.py", "copies": "1", "size": "26268", "license": "mit", "hash": 8023826925338648000, "line_mean": 32.9818887451, "line_max": 124, "alpha_frac": 0.4973732298, "autogenerated": false, "ratio": 4.3325086590796635, "config_test": false, "has_n...
from flask import render_template, jsonify, request from markupsafe import Markup from appshell.markup import element, link_button, button, xmltag from appshell.urls import res_url, url_or_url_for, url_for from appshell.templates import widgets, dropdowns, modals from appshell.locals import current_appshell from hashli...
{ "repo_name": "adh/appshell", "path": "appshell/widgets.py", "copies": "1", "size": "3559", "license": "mit", "hash": -3067778937483250000, "line_mean": 31.9537037037, "line_max": 76, "alpha_frac": 0.5192469795, "autogenerated": false, "ratio": 3.994388327721661, "config_test": false, "has_no...
from flask import render_template, jsonify, request from markupsafe import Markup from appshell.templates import TemplateProxy default_colorset = [ "#4D4D4D", "#5DA5DA", "#FAA43A", "#60BD68", "#F17CB0", "#B2912F", "#B276B2", "#DECF3F", "#F15854" ] t = TemplateProxy('appshell/chart...
{ "repo_name": "adh/appshell", "path": "appshell/charts.py", "copies": "1", "size": "3009", "license": "mit", "hash": -1561835227097532400, "line_mean": 24.2857142857, "line_max": 75, "alpha_frac": 0.4769026255, "autogenerated": false, "ratio": 3.985430463576159, "config_test": false, "has_no_...
from flask import render_template, jsonify, request from urlparse import urljoin from werkzeug.contrib.atom import AtomFeed from app import app from models import Show, Episode, ArtistTag, CityTag, CountryTag def make_external(url): return urljoin(request.url_root, url) @app.route('/') def index(): return re...
{ "repo_name": "frequencyasia/api", "path": "app/views.py", "copies": "1", "size": "4102", "license": "mit", "hash": 6577098455514124000, "line_mean": 31.0546875, "line_max": 102, "alpha_frac": 0.6060458313, "autogenerated": false, "ratio": 3.47921967769296, "config_test": false, "has_no_keywo...
from flask import render_template, jsonify, request import json, traceback from MonQL.Connections import app, connections, test_connection, tree_json def jsonabort(e): traceback.print_exc() error = '%s: %s' % (e.__class__.__name__, str(e)) return jsonify(error = error), 400 def jsonifyany(ob): if isin...
{ "repo_name": "samuelcolvin/MonQL", "path": "MonQL/controllers.py", "copies": "1", "size": "1801", "license": "mit", "hash": -8702528676184425000, "line_mean": 25.8955223881, "line_max": 74, "alpha_frac": 0.6490838423, "autogenerated": false, "ratio": 3.335185185185185, "config_test": false, ...
from flask import render_template, jsonify, request from ironworks.tools import convert_bytes from ironworks import app, logger from feedparser import feedparser from ironworks.models.newznabSite import NewznabSite from ironworks.models.setting import Setting from ironworks.database import db_session from xmltodict im...
{ "repo_name": "Sir-Henry-Curtis/Ironworks", "path": "modules/search.py", "copies": "1", "size": "5773", "license": "mit", "hash": -3993542866899609000, "line_mean": 27.865, "line_max": 112, "alpha_frac": 0.5892949939, "autogenerated": false, "ratio": 3.448626045400239, "config_test": false, "...
from flask import render_template, jsonify, request from ironworks.tools import convert_bytes from ironworks import serverTools from ironworks import feedparser from modules_lib.plugin_models.newznabSite import NewznabSite from modules_lib.plugin_models.setting import Setting # from ironworks.database import db_sessio...
{ "repo_name": "hephaestus9/Ironworks", "path": "modules/plugins/search.py", "copies": "1", "size": "5870", "license": "mit", "hash": 938062670848416300, "line_mean": 27.7745098039, "line_max": 112, "alpha_frac": 0.5906303237, "autogenerated": false, "ratio": 3.446858485026424, "config_test": fa...
from flask import render_template, jsonify, request from maraschino.tools import requires_auth, get_setting_value, convert_bytes from maraschino import app, logger from feedparser import feedparser from maraschino.models import NewznabSite from maraschino.database import db_session from xmltodict import xmltodict impo...
{ "repo_name": "N3MIS15/maraschino-webcam", "path": "modules/search.py", "copies": "1", "size": "5819", "license": "mit", "hash": -6399628668165840000, "line_mean": 27.5245098039, "line_max": 112, "alpha_frac": 0.5904794638, "autogenerated": false, "ratio": 3.433038348082596, "config_test": fals...
from flask import render_template, jsonify, request from maraschino.tools import requires_auth, get_setting_value, convert_bytes from maraschino import app, logger from maraschino.models import NewznabSite from maraschino.database import db_session from xmltodict import xmltodict import urllib # Newznab Category Lis...
{ "repo_name": "gugahoi/maraschino", "path": "modules/search.py", "copies": "1", "size": "6152", "license": "mit", "hash": 7865604441183960000, "line_mean": 27.4814814815, "line_max": 134, "alpha_frac": 0.5785110533, "autogenerated": false, "ratio": 3.442641298265249, "config_test": false, "ha...
from flask import render_template, jsonify, request, redirect, url_for, flash from flask.ext.uploads import DEFAULTS, UploadSet, configure_uploads from app import app, thumbnail, models, db from flask.ext.login import login_required, current_user import random import sys, os import uuid uploads = UploadSet('uploads', ...
{ "repo_name": "Kbman99/NetSecShare", "path": "app/views/main.py", "copies": "1", "size": "3137", "license": "mit", "hash": -2693036833782370300, "line_mean": 37.2682926829, "line_max": 112, "alpha_frac": 0.6276697482, "autogenerated": false, "ratio": 3.7256532066508314, "config_test": false, ...
from flask import render_template, jsonify, request, url_for from app import app from app.oozie.console import OozieConsole USE_PROXY = 1 USE_YCA_CERT = 1 @app.route('/') @app.route('/index') def index(): return render_template("index.html") @app.route('/grid/<cluster>/<jobid>/') def get_job_info(cluster, jobid)...
{ "repo_name": "anbu78/python-oozie-console", "path": "app/views.py", "copies": "1", "size": "1600", "license": "apache-2.0", "hash": 6072627178740944000, "line_mean": 28.6296296296, "line_max": 81, "alpha_frac": 0.658125, "autogenerated": false, "ratio": 3.041825095057034, "config_test": false,...
from flask import render_template, jsonify, Response from twython import Twython import json from nonoshiri import app from secret import CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_SECRET @app.route('/') def index(): return render_template('index.html') @app.route('/api/q/<query>.json') def query(query)...
{ "repo_name": "ardinor/nonoshiri", "path": "nonoshiri/views.py", "copies": "1", "size": "1388", "license": "mit", "hash": -4057313996853835000, "line_mean": 38.6571428571, "line_max": 77, "alpha_frac": 0.5850144092, "autogenerated": false, "ratio": 3.7311827956989245, "config_test": false, "h...
from flask import render_template, jsonify, send_file from jinja2.filters import FILTERS from maraschino import app, logger, RUNDIR, WEBROOT from maraschino.tools import requires_auth, get_setting_value from maraschino.models import PlexServer from plexLib import Server, Client import StringIO def error(e, module='pl...
{ "repo_name": "runjmc/maraschino", "path": "modules/plex.py", "copies": "2", "size": "7253", "license": "mit", "hash": -3030925513555554000, "line_mean": 25.9628252788, "line_max": 115, "alpha_frac": 0.574107266, "autogenerated": false, "ratio": 3.6779918864097363, "config_test": false, "has_...
from flask import render_template, jsonify, url_for, abort, request, redirect, current_app from flask_wtf import Form from flask_user import current_user from silverflask import db from silverflask.models import User from silverflask.fields import GridField from silverflask.core import Controller from silverflask.cont...
{ "repo_name": "wolfv/SilverFlask", "path": "silverflask/controllers/security_controller.py", "copies": "1", "size": "1824", "license": "bsd-2-clause", "hash": -8016599650646478000, "line_mean": 30.4655172414, "line_max": 90, "alpha_frac": 0.5921052632, "autogenerated": false, "ratio": 3.872611464...
from flask import render_template, make_response, flash, redirect, session, url_for, request, g from flask_login import login_user, logout_user, current_user, login_required from authomatic.adapters import WerkzeugAdapter from authomatic import Authomatic from datetime import datetime from sqlalchemy import asc, desc, ...
{ "repo_name": "daranguiz/barbell-io", "path": "app/views.py", "copies": "1", "size": "14909", "license": "mit", "hash": -2311595081348714500, "line_mean": 34.9253012048, "line_max": 100, "alpha_frac": 0.5720034878, "autogenerated": false, "ratio": 3.5942622950819674, "config_test": false, "ha...
from flask import render_template, make_response from flask.ext.recaptcha import ReCaptcha from uuid import uuid4, UUID from application import create_app, add_to_queue, socketio, activate_cat_toy __author__ = 'Jonathan Horvath' app = create_app() reCaptcha = ReCaptcha(app) @app.route('/') def index(): return r...
{ "repo_name": "bytedreamer/LollypopCatToy", "path": "LollypopCatToy.py", "copies": "1", "size": "1034", "license": "mit", "hash": -3112355345357394400, "line_mean": 23.0465116279, "line_max": 76, "alpha_frac": 0.667311412, "autogenerated": false, "ratio": 3.2825396825396824, "config_test": fals...
from flask import render_template, make_response from opencontracts.core import app from opencontracts.db import aggregate from opencontracts.formatters import country_name_formatter, format_number class Column(object): def __init__(self, type_, name, title): self.type = type_ self.name = name ...
{ "repo_name": "pudo-attic/opencontracts.eu", "path": "opencontracts/web.py", "copies": "1", "size": "2900", "license": "mit", "hash": -8018344512536267000, "line_mean": 31.9545454545, "line_max": 86, "alpha_frac": 0.6172413793, "autogenerated": false, "ratio": 3.8615179760319576, "config_test":...
from flask import render_template, make_response, request, flash, redirect, url_for from flask_restful import Resource from blog_management import site_feedback from utilities import utils class Feedback(Resource): def __init__(self): self.header = {'Content-Type': 'text/html'} if utils.is_safe_...
{ "repo_name": "e-gills/running-log", "path": "website/resources/feedback.py", "copies": "2", "size": "1039", "license": "mit", "hash": 8003100706007392000, "line_mean": 31.46875, "line_max": 83, "alpha_frac": 0.6361886429, "autogenerated": false, "ratio": 4.172690763052209, "config_test": false...
from flask import render_template, make_response, request from flask_restful import Resource import re from minblog2 import app from minblog2.core import api from minblog2.core import dbManager @app.route('/') @app.route('/create') @app.route('/detail/<path:id>') @app.route('/edit/<path:id>') def route_to_main(id=No...
{ "repo_name": "waisuan/minblog_af", "path": "minblog2/controllers.py", "copies": "1", "size": "3020", "license": "mit", "hash": 8746922764683729000, "line_mean": 38.7368421053, "line_max": 142, "alpha_frac": 0.6440397351, "autogenerated": false, "ratio": 3.775, "config_test": false, "has_no_k...
from flask import render_template, make_response, request, redirect, url_for, Response, g, jsonify from datetime import datetime from operator import attrgetter import json from . import app, db from .model import * @app.before_request def before_request(): """Ensures that user is authenticated and fills some glo...
{ "repo_name": "jplitza/kino", "path": "kino/controller.py", "copies": "1", "size": "5284", "license": "mit", "hash": 9070815388826939000, "line_mean": 35.951048951, "line_max": 106, "alpha_frac": 0.6048448145, "autogenerated": false, "ratio": 3.7395612172682235, "config_test": false, "has_no_...
from flask import render_template, make_response, request, Response from flask.ext.login import current_user import io import datetime import csv from matplotlib.figure import Figure import matplotlib.dates as mdates from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas from ..menu import MenuBlu...
{ "repo_name": "team294/surfmanage", "path": "surfmanage/hours/views.py", "copies": "1", "size": "10189", "license": "bsd-3-clause", "hash": -257957026906873100, "line_mean": 33.4222972973, "line_max": 86, "alpha_frac": 0.5826872117, "autogenerated": false, "ratio": 3.5775983146067416, "config_t...
from flask import render_template, make_response, request, session, flash, redirect, url_for from flask_restful import Resource from blog_management.User import User, UserException from utilities import utils class Login(Resource): def __init__(self): self.header = {'Content-Type': 'text/html'} ...
{ "repo_name": "e-gills/running-log", "path": "website/resources/user_login.py", "copies": "2", "size": "2011", "license": "mit", "hash": 6753108560135313000, "line_mean": 32.5166666667, "line_max": 92, "alpha_frac": 0.6086524117, "autogenerated": false, "ratio": 4.112474437627812, "config_test"...
from flask import render_template, make_response, request, session from flask_restful import Resource from activity_logs import activities ACTIVITY_PLACEHOLDER = "Please Pick an Activity" class AddActivity(Resource): def __init__(self): self.header = {'Content-Type': 'text/html'} self.activitie...
{ "repo_name": "e-gills/running-log", "path": "website/resources/add_activity.py", "copies": "2", "size": "4339", "license": "mit", "hash": 1995046564870276000, "line_mean": 51.2771084337, "line_max": 117, "alpha_frac": 0.6291772298, "autogenerated": false, "ratio": 4.253921568627451, "config_te...
from flask import render_template, Markup, flash from app.model import Database, DataSetter, HasString import hashlib class Login: # Login Calling Base Method def auth_login(email, pwd, dashboard): rfid = Login.check_data(email, pwd) if rfid is not 'false': return DataSetter.setCookie(...
{ "repo_name": "hemanth42/synapseCRM", "path": "app/lib/login.py", "copies": "1", "size": "1976", "license": "mit", "hash": 2568167191648707600, "line_mean": 37.7450980392, "line_max": 141, "alpha_frac": 0.5399797571, "autogenerated": false, "ratio": 4.391111111111111, "config_test": false, "h...
from flask import render_template, Markup def component(tp, **kwargs): return Markup(render_template('components/%s.html' % tp, **kwargs)) def g_icon(icon, color=None): return component('icon', icon=icon, color=color) def g_label(text, size=2, offset=0, id=None, cls=None, data=None, lcl=None): if lcl ...
{ "repo_name": "HunanTV/redis-ctl", "path": "app/render_utils.py", "copies": "1", "size": "2488", "license": "mit", "hash": -1828330399769520000, "line_mean": 37.875, "line_max": 94, "alpha_frac": 0.5892282958, "autogenerated": false, "ratio": 3.295364238410596, "config_test": false, "has_no_k...
from flask import render_template, Markup, request from MyCapytain.common.reference import URN from MyCapytain.common.constants import Mimetypes, RDF_NAMESPACES from capitains_nautilus.apis.base import AdditionalAPIPrototype from capitains_nautilus.errors import NautilusError, CtsMissingParameter, CtsInvalidURN cla...
{ "repo_name": "Capitains/Nautilus", "path": "capitains_nautilus/apis/cts.py", "copies": "1", "size": "9304", "license": "mpl-2.0", "hash": 3942074416678920700, "line_mean": 37.7666666667, "line_max": 131, "alpha_frac": 0.562661221, "autogenerated": false, "ratio": 3.8977796397151234, "config_te...
from flask import render_template, Module, make_response from sqlalchemy import func from sqlalchemy.sql.expression import select from cadorsfeed.models import ReportCategory, CadorsReport, category_map from cadorsfeed.views.util import render_list, prepare_response category = Module(__name__) @category.route('/ca...
{ "repo_name": "kurtraschke/cadors-parse", "path": "src/cadorsfeed/views/category.py", "copies": "1", "size": "1425", "license": "mit", "hash": 3089158218732233700, "line_mean": 35.5384615385, "line_max": 91, "alpha_frac": 0.658245614, "autogenerated": false, "ratio": 4.05982905982906, "config_t...
from flask import (render_template, current_app, Blueprint, redirect, url_for, request, flash, session) from flask.ext.login import login_user, logout_user from flask.ext.principal import...
{ "repo_name": "nikitabrazhnik/flask2", "path": "Module 3/Chapter08/chapter_8/webapp/controllers/main.py", "copies": "15", "size": "4805", "license": "mit", "hash": 5746751292326358000, "line_mean": 25.9943820225, "line_max": 79, "alpha_frac": 0.6049947971, "autogenerated": false, "ratio": 3.88439...
from flask import render_template from app import app, db #------------------------------------------------------------------------------- @app.route('/') @app.route('/index') def index(): return render_template('index.html', title='Disk Detective SED Home') #----------------------------------------------------...
{ "repo_name": "justincely/disk_detective_site", "path": "app/views.py", "copies": "1", "size": "1747", "license": "bsd-3-clause", "hash": 6394097270021641000, "line_mean": 31.9622641509, "line_max": 95, "alpha_frac": 0.3571837436, "autogenerated": false, "ratio": 5.746710526315789, "config_test...
from flask import render_template from app import app, host, port, user, passwd, db from app.helpers.database import con_db, query_db from app.helpers.filters import format_currency import jinja2 from flask import request, url_for # To create a database connection, add the following # within your view functions: # co...
{ "repo_name": "MonicaHsu/truvaluation", "path": "app/views_old.py", "copies": "1", "size": "1645", "license": "mit", "hash": 2819678343138818000, "line_mean": 24.703125, "line_max": 63, "alpha_frac": 0.6607902736, "autogenerated": false, "ratio": 3.3847736625514404, "config_test": false, "has...
from flask import render_template from app import app, host, port, user, passwd, db from app.helpers.database import con_db, query_db from app.helpers.filters import * import jinja2 from flask import request, url_for # To create a database connection, add the following # within your view functions: # con = con_db(hos...
{ "repo_name": "MonicaHsu/truvaluation", "path": "app/views.py", "copies": "1", "size": "5346", "license": "mit", "hash": 7928445269705761000, "line_mean": 36.125, "line_max": 72, "alpha_frac": 0.5991395436, "autogenerated": false, "ratio": 3.2498480243161096, "config_test": false, "has_no_key...
from flask import render_template from app import app from flask import flash,redirect,session from .forms import LoginForm from flask import request from wtforms import Form, BooleanField, TextField, PasswordField, validators from subprocess import call import time import pdb import MySQLdb import requests from bs4 im...
{ "repo_name": "dhruvsrivastava/OJ", "path": "app/views.py", "copies": "1", "size": "16133", "license": "bsd-3-clause", "hash": -4113137803843828000, "line_mean": 29.04283054, "line_max": 186, "alpha_frac": 0.6061488874, "autogenerated": false, "ratio": 3.401433691756272, "config_test": true, ...