index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
63,940
gr8scott88/FFLStats4
refs/heads/master
/Main.py
import configparser from datetime import datetime import math from data_vis.LeagueVisGen import * from models.League import League config = configparser.ConfigParser() config.read('config.ini') start_week = config['Season']['StartWeek'] dt = datetime.strptime(start_week, '%m/%d/%y') td = datetime.today() elapsed = ...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,941
gr8scott88/FFLStats4
refs/heads/master
/data_vis/LeagueVisGen.py
from models.League import League import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import time import os from matplotlib.cm import get_cmap from models import DATACONTRACT import numpy as np from loguru import logger color_wheel = "Accent" cmap = get_cmap(color_wheel) colors = cmap.colors sns....
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,942
gr8scott88/FFLStats4
refs/heads/master
/archive/Helper.py
from bs4 import BeautifulSoup import requests class UniqueID: def __init__(self, league_id, league_name, team_id, team_name, team_order, week_id, time_id=0): self.league_id = league_id self.team_id = team_id self.week = week_id self.time = time_id self.team_name = team_name...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,943
gr8scott88/FFLStats4
refs/heads/master
/models/DATACONTRACT.py
LEAGUE_ID = 'LeagueID' UNIQUE_ID = 'UniqueID' LEAGUE_NAME = 'LeagueName' TEAM_ID = 'TeamID' TEAM_NAME = 'TeamName' REAL_SCORE = 'RealScore' PROJ_SCORE = 'ProjScore' WEEK = 'Week' SLOT = 'Slot' ACTIVEPOS = 'ActivePos' PCTSTART = 'PctStart' PLAYERNAME = 'PlayerName' TEAMRANKING = 'Ranking' RESULT = 'Result' TOTALWINS = '...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,944
gr8scott88/FFLStats4
refs/heads/master
/models/League.py
import pandas as pd from models import DATACONTRACT from web_parsing.LeaguePageParser import LeaguePageParser from web_parsing.MatchPageParser import MatchParser from web_parsing.TeamPageParser import TeamParser from web_parsing.PlayerParser import PlayerParser from web_parsing.DraftParser import DraftParser import dat...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,945
gr8scott88/FFLStats4
refs/heads/master
/ScratchFile.py
from models import League from models import DATACONTRACT from utility.YahooWebHelper import YahooWebHelper from web_parsing.MatchPageParser import MatchParser from web_parsing.TeamPageParser import TeamParser from web_parsing.PlayerParser import PlayerParser from data_handlers.PandasHandler import PandasDataHandler im...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,946
gr8scott88/FFLStats4
refs/heads/master
/archive/TestFile.py
from models import League from utility import DataManager nfc_id = 729457 nfc_data = DataManager.DataManager() NFC = League.League(nfc_id, nfc_data) NFC.load_all_data_points(9) nfc_data.export_complete_team_frame(nfc_id) afc_id = 910981 afc_data = DataManager.DataManager() AFC = League.League(afc_id, afc_data) AFC.lo...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,947
gr8scott88/FFLStats4
refs/heads/master
/archive/GLOBALS.py
import os ROOTDIR = r'C:\Dev\Python\Projects\FFLStats4' try: ROOTDIR = os.path.dirname(os.path.realpath(__file__)) except Exception as e: print('Script not being run dynamically') URLROOT = r'https://football.fantasysports.yahoo.com/f1/' MAXTIMESLICES = 20
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,948
gr8scott88/FFLStats4
refs/heads/master
/archive/data_access/DataLoader.py
import os filepath_root = r'/data_archive' url_root = r'https://football.fantasysports.yahoo.com/f1/' class DataLoader: def __init__(self, league_id, no_teams): self.no_teams = no_teams self.league_id = league_id def load_data_to_date(self, week): for w in range(week): se...
{"/data_vis/LeagueVisualizer.py": ["/models/League.py"], "/web_parsing/TeamPageParser.py": ["/utility/YahooWebHelper.py"], "/archive/data_analysis/data_analyzer.py": ["/models/League.py"], "/archive/Scratch2.py": ["/web_parsing/DraftParser.py", "/utility/YahooWebHelper.py"], "/archive/fantasy_league_management/LeagueMa...
63,949
Petro-Y/python-web-project
refs/heads/master
/web.py
#!cmd /k py -3 from flask import Flask, request, redirect, render_template, session from flask_socketio import SocketIO, emit from zipfile import ZipFile from werkzeug import secure_filename import os from db import * import proj from proj import project_by_name, project_data from settings import secret_...
{"/web.py": ["/db.py", "/proj.py", "/settings.py"], "/db.py": ["/settings.py"], "/tasktools.py": ["/vfs.py"], "/proj.py": ["/vfs.py", "/db.py", "/tasktools.py", "/settings.py"]}
63,950
Petro-Y/python-web-project
refs/heads/master
/settings.py
import os path = os.path.abspath(__file__) rootdir = os.path.dirname(path)+'/' #rootdir='./' db_name=rootdir+'project.db' usersdir=rootdir+'users/' buildsdir=rootdir+'builds/' upload_folder=rootdir+'uploads/' passhashsecret='3f61a0a041fe98decc152b1d5f94ea63' secret_key='8ffc1cececb0a97ae8d6045dbf75fd49' enable_reset...
{"/web.py": ["/db.py", "/proj.py", "/settings.py"], "/db.py": ["/settings.py"], "/tasktools.py": ["/vfs.py"], "/proj.py": ["/vfs.py", "/db.py", "/tasktools.py", "/settings.py"]}
63,951
Petro-Y/python-web-project
refs/heads/master
/db.py
#!py -3 -i from sqlite3 import connect from hashlib import md5 import os #from proj import project_by_name from settings import db_name, passhashsecret def create_db(): try: os.unlink(db_name) except: pass conn=connect(db_name) cur=conn.cursor() cur.executescript(''' create tab...
{"/web.py": ["/db.py", "/proj.py", "/settings.py"], "/db.py": ["/settings.py"], "/tasktools.py": ["/vfs.py"], "/proj.py": ["/vfs.py", "/db.py", "/tasktools.py", "/settings.py"]}
63,952
Petro-Y/python-web-project
refs/heads/master
/vfs.py
#!py -3 -i import re import os import os.path class VFS: ''' abstract base class for virtual file systems (implemented on real disk file system, memory storage, database etc.''' def translate_path(self, path): #add final / .... #replace /DIR/../ => /, /./ => /, //=>/ ..... ...
{"/web.py": ["/db.py", "/proj.py", "/settings.py"], "/db.py": ["/settings.py"], "/tasktools.py": ["/vfs.py"], "/proj.py": ["/vfs.py", "/db.py", "/tasktools.py", "/settings.py"]}
63,953
Petro-Y/python-web-project
refs/heads/master
/tasktools.py
#!cmd /k py -3 from vfs import DictVFS import re class Project(DictVFS): #SubdirVFS with additional information..... def __init__(self, *args, **kwargs): self.__dict__.update(kwargs) super().__init__(*args, **kwargs) def find_fragments(project, base=None, only_file=None): ...
{"/web.py": ["/db.py", "/proj.py", "/settings.py"], "/db.py": ["/settings.py"], "/tasktools.py": ["/vfs.py"], "/proj.py": ["/vfs.py", "/db.py", "/tasktools.py", "/settings.py"]}
63,954
Petro-Y/python-web-project
refs/heads/master
/proj.py
#!py -3 -i # project factory implementation import vfs import db import tasktools from settings import usersdir, buildsdir from uuid import uuid4 def project_by_name(user, project=None): if project==None: return project_by_name(*user.split('/', 1)) #go to users root dir, create project_v...
{"/web.py": ["/db.py", "/proj.py", "/settings.py"], "/db.py": ["/settings.py"], "/tasktools.py": ["/vfs.py"], "/proj.py": ["/vfs.py", "/db.py", "/tasktools.py", "/settings.py"]}
63,956
mrosata/python-yurp
refs/heads/master
/database_setup.py
from datetime import datetime from sqlalchemy import Column, ForeignKey, Integer, String, DateTime, Date from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy import create_engine Base = declarative_base() class Entry(Base): __tablename__ = 'entries' ...
{"/idata.py": ["/database_setup.py"], "/main.py": ["/database_setup.py", "/attachments.py", "/parsed_entry.py"]}
63,957
mrosata/python-yurp
refs/heads/master
/idata.py
#!/usr/bin/env python __author__ = 'michaael' __package__ = '' from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from database_setup import Entry, Day, Attachment, Base # Setup database and session so it can be used in console engine = create_engine('sqlite:///yurp.application.db') Base.me...
{"/idata.py": ["/database_setup.py"], "/main.py": ["/database_setup.py", "/attachments.py", "/parsed_entry.py"]}
63,958
mrosata/python-yurp
refs/heads/master
/parsed_entry.py
#!/usr/bin/env python __author__ = 'Michael Rosata mrosata1984@gmail.com' __package__ = '' from flask import Markup from database_setup import Label, Attachment class Parsed_Entry: def __init__(self, db_entry, query): self.db_entry = db_entry self.query = query self.id = db_entry.id ...
{"/idata.py": ["/database_setup.py"], "/main.py": ["/database_setup.py", "/attachments.py", "/parsed_entry.py"]}
63,959
mrosata/python-yurp
refs/heads/master
/main.py
import os import pprint from datetime import datetime from flask import Flask, render_template, url_for, request,\ redirect, flash, send_from_directory, send_file from sqlalchemy import create_engine, update from sqlalchemy.orm import sessionmaker from database_setup import Entry, Label, Day, Attachment, CategoryL...
{"/idata.py": ["/database_setup.py"], "/main.py": ["/database_setup.py", "/attachments.py", "/parsed_entry.py"]}
63,960
mrosata/python-yurp
refs/heads/master
/attachments.py
#!/usr/bin/env python __author__ = 'Michael Rosata mrosata1984@gmail.com' __package__ = '' import os import random import string import pprint from datetime import datetime from werkzeug.utils import secure_filename as werkzeug_secure_filename ALLOWED_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'gif']) FILENAME_MAXLENGT...
{"/idata.py": ["/database_setup.py"], "/main.py": ["/database_setup.py", "/attachments.py", "/parsed_entry.py"]}
63,961
lupries/TAGN2
refs/heads/master
/train.py
import time import torch from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter from torchvision.utils import make_grid import numpy as np import matplotlib.pyplot as plt def train_model(model, criterion, dataloader, optimizer, metrics, num_epochs=1): since = time.time() writer = SummaryWriter() ...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,962
lupries/TAGN2
refs/heads/master
/datasets/__init__.py
from .dataloader import SegDataset, create_dataloader
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,963
lupries/TAGN2
refs/heads/master
/models/attention/attention.py
import torch import torch.nn as nn class SelfAttention(nn.Module): """ Self Attention Module as described in the AGNN Framework of Zero-Shot Video Object Segmentation via Attentive Graph Neural Networks """ def __init__(self, input_channels): super(SelfAttention, self).__init__() ...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,964
lupries/TAGN2
refs/heads/master
/scripts/utils/utils.py
import yaml import glob import os import numpy as np import torch import cv2 from TAGN2.datasets.dataloader_AGNN import create_dataloader from TAGN2.datasets.dataloader import Resize, ToTensor, Normalize from torchvision import transforms from tqdm import tqdm from torch.utils.tensorboard import SummaryWriter import co...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,965
lupries/TAGN2
refs/heads/master
/models/graphnet/AttentiveGraphNeuralNetwork.py
import torch import torch.nn as nn from torch_geometric.nn import MessagePassing from torch_geometric.utils import add_self_loops, degree import numpy as np from ..convgru import ConvGRU, ConvGRUCell from ..attention import SelfAttention, InterAttention, GAP class AGNN(MessagePassing): """ Graph Neural Networ...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,966
lupries/TAGN2
refs/heads/master
/models/TAGNN.py
import torch.nn as nn from torch.nn import functional as F from torchvision import models import torch from torchvision import transforms from .graphnet import AGNN from .graphnet import create_fully_connected class TAGNN(nn.Module): def __init__(self, loops, num_nodes): super(TAGNN, self).__init__() ...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,967
lupries/TAGN2
refs/heads/master
/datasets/dataloader_AGNN.py
import glob import yaml import os from torch.utils.data import Dataset, DataLoader, SequentialSampler import cv2 import torch from torchvision import transforms, utils import numpy as np from .dataloader import SegDataset class SegDataset_AGNN(SegDataset): def __len__(self): return int(len(self.image_names)/se...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,968
lupries/TAGN2
refs/heads/master
/datasets/dataloader.py
import glob import yaml import os from torch.utils.data import Dataset, DataLoader, SequentialSampler import cv2 import torch from torchvision import transforms, utils import numpy as np class SegDataset(Dataset): """Segmentation Dataset""" def __init__(self, root_dir, imageFolder, maskFolder, transform=None,...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,969
lupries/TAGN2
refs/heads/master
/datasets/utils.py
import yaml def sequence_names(root='davis-2017/data/'): sequence_file = open(root+'db_info.yaml','r') sequences = yaml.load(sequence_file)['sequences'] seq_names = [seq['name'] for seq in sequences if seq['year'] == 2016] return seq_names def get_sequences(root='davis-2017/data/'): sequence_file = open(ro...
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,970
lupries/TAGN2
refs/heads/master
/models/__init__.py
from .TAGNN import TAGNN, TAGNN_batch
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,971
lupries/TAGN2
refs/heads/master
/models/graphnet/__init__.py
from .AttentiveGraphNeuralNetwork import AGNN, create_fully_connected
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,972
lupries/TAGN2
refs/heads/master
/models/attention/__init__.py
from .attention import SelfAttention, InterAttention, GAP
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
63,973
lupries/TAGN2
refs/heads/master
/models/convgru/__init__.py
from .convgru import ConvGRU, ConvGRUCell
{"/datasets/__init__.py": ["/datasets/dataloader.py"], "/models/graphnet/AttentiveGraphNeuralNetwork.py": ["/models/convgru/__init__.py", "/models/attention/__init__.py"], "/models/TAGNN.py": ["/models/graphnet/__init__.py"], "/datasets/dataloader_AGNN.py": ["/datasets/dataloader.py"], "/models/__init__.py": ["/models/...
64,023
Kaifat1/test2
refs/heads/master
/migrations/versions/962ddbc3429d_.py
"""empty message Revision ID: 962ddbc3429d Revises: None Create Date: 2016-04-27 21:26:57.380238 """ # revision identifiers, used by Alembic. revision = '962ddbc3429d' down_revision = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ###...
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,024
Kaifat1/test2
refs/heads/master
/config.py
import os WTF_CSRF_ENABLED = True SECRET_KEY = 'qwerty' SQLALCHEMY_DATABASE_URL = 'mysql://misha:qwerty@localhost/mydb' SQLALCHEMY_TRACK_MODIFICATIONS = True
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,025
Kaifat1/test2
refs/heads/master
/run.py
from app import manager, app manager.run()
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,026
Kaifat1/test2
refs/heads/master
/app/forms.py
from flask_wtf import Form from wtforms import StringField, BooleanField, PasswordField, SubmitField from wtforms.validators import DataRequired, Email class LoginForm(Form): login = StringField('Логин', validators=[DataRequired(), Email()]) password = PasswordField('Пароль', validators=[DataRequired()]) r...
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,027
Kaifat1/test2
refs/heads/master
/app/views.py
from flask import render_template, flash, redirect, abort, session, url_for, request, g from flask_login import login_user, logout_user, current_user, login_required from app import app, db, lm from .forms import LoginForm from .models import Sotrudnik @app.route('/') @app.route ('/index') def index(): user = {'ni...
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,028
Kaifat1/test2
refs/heads/master
/app/models.py
from app import db from . import lm from werkzeug.security import generate_password_hash, check_password_hash from hashlib import md5 @lm.user_loader def load_user(sotrudnik_id): return Sotrudnik.query.get(int(sotrudnik_id)) class Sotrudnik(db.Model): __tablename__ = 'sotrudniki' id = db.Column(db.Integer...
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,029
Kaifat1/test2
refs/heads/master
/migrations/versions/64c19cc5124c_.py
"""empty message Revision ID: 64c19cc5124c Revises: 962ddbc3429d Create Date: 2016-04-29 23:24:13.396602 """ # revision identifiers, used by Alembic. revision = '64c19cc5124c' down_revision = '962ddbc3429d' from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - ...
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,030
Kaifat1/test2
refs/heads/master
/app/__init__.py
from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_script import Manager, Shell from flask_migrate import Migrate, MigrateCommand from flask_bootstrap import Bootstrap import os from flask_login import LoginManager #from config import basedir app = Flask(__name__) app.config.from_object('config...
{"/run.py": ["/app/__init__.py"], "/app/views.py": ["/app/__init__.py", "/app/forms.py", "/app/models.py"], "/app/models.py": ["/app/__init__.py"]}
64,031
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/dirtree.py
# sample app showing how to use TreeOps # # this is a simple file lister, like 'ls -lR', demonstrating # that it takes no special code to implement all the standard # tree options (-r, -R, -x, -i, -h) # # frankm@hiwaay.net # # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_dist...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,032
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/textify.py
# Obsoleted by scripts in disthelper/scripts # ADD # auto-guess indentation on .py files # other files require -w arg to 'tabify' # # make it work under python 2.0+ #====================================================================== # # textify.py - Perform various text transformations on a # set o...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,033
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/plattext.py
# # Convert a tree of files into platform-specific text format, # with filename matching. # # # frankm@hiwaay.net # # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_disthelper # now the real code begins ... from disthelper.treeops.treeops import * from disthelper.treeops.file...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,034
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/test/test_tabify.py
# test tabify.py and untabify.py # # raises exception on error import sys, os def test_untabify( txt_tabbed, txt_untabbed ): open('a.txt','wb').write(txt_tabbed) os.system('%s %s -w 4 a.txt' % (sys.executable, '../untabtree.py')) buf = open('a.txt','rb').read() if buf != txt_untabbed: raise...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,035
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/rmfind.py
# # Recursively remove specific files. # # This is a portable replacement for simple uses of rm `find ..`. # # Example: # POSIX: # rm `find src -name "*.pyc"` # # rmfind: # python rmfind.py -R "*.pyc" src # -or- # python rmfind.py -x pyc src # # Use -h for help. # # # frankm@h...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,036
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/test/test_tabs_2.py
import sys, os def test_untabify( txt_tabbed, txt_untabbed ): open('a.txt','wb').write(txt_tabbed) os.system('%s %s -w 4 a.txt' % (sys.executable, '../untabtree.py')) buf = open('a.txt','rb').read() if buf != txt_untabbed: raise Exception("untabify FAILED") else: print("untabify: ...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,037
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/util/cmdline.py
# # BasicOptParser - minimal, portable, optparse substitute. # # Works with Python 1.5.2 and up. # # written by frankm@hiwaay.net # # public API __all__ = ['BasicOptParser'] # Unfortunately, gnu_getopt is only available on Python 2.2+, # so have to stick with basic getopt (otherwise, you'd confuse # users since optio...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,038
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/grab_disthelper.py
import sys # Enable scripts to run in place without disthelper installed # Note that I ALWAYS want to find the copy that is in the # directory above me. The user might have installed disthelper # in site-packages, and it could be out of date. import os # get my directory p = os.path.split(sys.argv[0])[0] if len(p): ...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,039
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/test/test_textfmt.py
# test plattext.py and porttext.py # # raises exception on error lines_1 = ['aaa','bbb','ccc','ddd','eee'] import sys, os def test_plattext( txt_port, txt_plat ): open('a.txt','wb').write(txt_port) os.system('%s %s a.txt' % (sys.executable, '../plattext.py')) buf = open('a.txt','rb').read() if bu...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,040
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/__init__.py
# this exists so that other packages can use grab_disthelper if needed
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,041
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/setuplib.py
# # I found myself writing the same little functions over # and over in setup.py files, so I've collected them here. # # (See also disthelper.misc for more generally useful functions.) # # frankm@hiwaay.net # from distutils.core import setup, Extension import os, re from disthelper.misc import * from glob import glob ...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,042
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/test-tabber.py
# # Test program for tabber.py # # Note, it is very important NOT to tabify/untabify/reformat # the input files (t*.txt) -- the test code expects them # to have either tabs or spaces, and changing them will # give false failures. # # # frankm@hiwaay.net # from difflib import Differ, unified_diff import string import...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,043
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/difftree.py
# diff two directories, using TreeOps # # Should give the same output as "diff -r", although the # ordering of files might be different. # # frankm@hiwaay.net # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_disthelper # now the real code begins ... from disthelper.treeop...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,044
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/make_mingw_pylibs.py
# # In order to use mingw (or cygwin with 'gcc -mno-cygwin') # to create native win32 extension modules, you must create # import libraries for the Python DLLs that gcc can use. # # This script automates the procedure found at: # http://sebsauvage.net/python/mingw.html # # [excluding the parts about modifying dist...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,045
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/cyg4win32.py
# this is cyg4win32.py from gnosis.disthelper # # Do NOT edit/delete the first line of this file!! (it is used # as a sanity check to prevent accidentally overwriting files) # # This is a lightly modified version of the Mingw32CCompiler. # # It is meant for using cygwin's 'gcc -mno-cygwin' to compile # Python extensio...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,046
MEERQAT/Gnosis_Utils
refs/heads/master
/setup.py
# # Installing Gnosis_Utils: # # python setup.py install # # Or, if you have multiple versions of Python installed, # you can install for all of them at once using: # # python setup.py install_all # # Other commands available (for maintainers): # # # build but don't install # python setup.py build # # # creat...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,047
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/util/__init__.py
# ancient WinZips can't handle 0-length files
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,048
MEERQAT/Gnosis_Utils
refs/heads/master
/gnosis/xml/pickle/test/test_fail_raise_1.py
# used for sanity checking the test harness # "fail" a test with an explicity raise, oldstyle raise Exception("AAA")
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,049
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/treeops/__init__.py
# make some things available at the toplevel from .treeops import TreeOps, TreeOptParser
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,050
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/misc.py
# # More handy functions I found myself reinventing every # time I made a setup.py # # This should be compatible back to Python 1.5.2. # # frankm@hiwaay.net # import os, string from stat import * import shutil # public interface __all__ = ['mtime','find_in_path','find_exe_in_path','unlink','make_tempdir', ...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,051
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/find_python.py
#--------------------------------------------------------------- # find_python.py # # Routines for enumerating the Pythons available on a # machine, and finding a Python matching certain criteria. # # Can be used as a module or standalone script. # # frankm@hiwaay.net #--------------------------------------------------...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,052
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/dll_to_mingw.py
# # In order to use mingw (or cygwin with 'gcc -mno-cygwin') # to create native win32 extension modules, you must create # import libraries for the Python DLLs that gcc can use. # # This script automates the procedure found at: # http://sebsauvage.net/python/mingw.html # # [excluding the parts about modifying dist...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,053
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/untabtree.py
# # Untabify an entire tree, with filename matching. # # frankm@hiwaay.net # # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_disthelper # now the real code begins ... from disthelper.treeops.treeops import * from disthelper.treeops.fileops import * from disthelper.treeops.li...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,054
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/treeops/fileops.py
# # A FileTransform takes an input filename, does some # processing on it, and writes the processed file # to the original filename. # # frankm@hiwaay.net # from disthelper.misc import make_tempdir, unlink from disthelper.treeops.treeops import * import os from shutil import copy2 class FileTransform: def __init...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,055
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/indentcheck.py
# # Detect indentation style of Python code # # frankm@hiwaay.net # __all__ = ['guess_indentation','has_tab_space_mixing'] # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_disthelper from tokenize import tokenize, INDENT, ERRORTOKEN class IndentDetector: """ Detect th...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,056
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/treeops/lineops.py
# # a lineop takes a single line of text and performs # a transformation on it, returning the new text. # # frankm@hiwaay.net # # public interface __all__ = ['to_platform_text','to_portable_text', 'tabify_line', 'untabify_line', 'copy_line'] import os, re # a null transform for convenience def copy_line(...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,057
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/frankcc.py
# # Obsolete # # # frankm@hiwaay.net # from distutils.unixccompiler import UnixCCompiler class FrankCompiler(UnixCCompiler): compiler_type = 'frankcc' def preprocess(self, source, output_file=None, macros=None, include_dirs=None, extra_preargs=None, extra_postargs=None):...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,058
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/comptree.py
# Sample app showing how to use TreeOps # # This byte-compiles all matched files. # # frankm@hiwaay.net # # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_disthelper # now the real code begins ... from disthelper.treeops.treeops import * import os from stat import * from time...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,059
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/treeops/treeops.py
# # TreeOps encompasses common code for working with # directory trees - walking the tree, matching the # filenames vs. a set of regexes, etc. # # To do something useful, derive a class from TreeOps and # override the private API (process_one_file, process_one_dir, etc.) # # Note this module should be compatible to Py...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,060
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/iall.py
# # shortcut script to install Gnosis for all Python versions # installed on the local machine # # Two ways to run: # # 1. If sitting in toplevel dir (above gnosis/), will build # and install Gnosis from gnosis/ for all python versions, # first removing any existing Gnosis installation. # # 2. If sitting...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,061
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/test/mega_tabber_test.py
# # run an untab/tab/untab cycle over a copy of the entire # gnosis & disthelper trees and diff the results # import os,shutil,sys from stat import * if not os.path.isfile('setup.py'): raise Exception("You must run this from the toplevel") if os.path.isdir('ttt'): raise Exception("ttt already exists - baili...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,062
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/attic/example-setup.py
# # Obsolete # # # frankm@hiwaay.net # from distutils.core import setup, Extension import os, sys, re from stat import * from glob import glob import distutils.ccompiler from disthelper.misc import * PYVER = "%d.%d" % (sys.version_info[0],sys.version_info[1]) def find_swig(): # first check for SWIG tagged with t...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,063
MEERQAT/Gnosis_Utils
refs/heads/master
/disthelper/scripts/tabtree.py
# # Tabify an entire directory tree, with filename matching. # # frankm@hiwaay.net # # make sure I can import disthelper import sys sys.path.insert(0,'.') from . import grab_disthelper # now the real code begins ... from disthelper.treeops.treeops import * from disthelper.treeops.fileops import * from disthelper.tr...
{"/disthelper/scripts/dirtree.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py"], "/disthelper/attic/textify.py": ["/disthelper/treeops/lineops.py"], "/disthelper/scripts/plattext.py": ["/disthelper/scripts/__init__.py", "/disthelper/treeops/treeops.py", "/disthelper/treeops/fileops.py", "/disth...
64,133
MhYao2014/MNIST
refs/heads/master
/SGD_Train.py
import numpy as np import datetime from Train import Train_hyperparam from NN import NN from data_process import load_train_labels from data_process import load_train_images def one_hot_transformer(labels_numpy): y_truth = np.zeros([60000,10]) for row, position in enumerate(labels_numpy.astype(np.int)): ...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,134
MhYao2014/MNIST
refs/heads/master
/FNN.py
import numpy as np from data_process import load_train_labels from data_process import load_train_images class FNN_hyperparam(): def __init__(self): pass model_hyperparam = { 'vari_dim': 784, 'layer1_dim': 128, 'layer2_dim': 64, 'layer3_dim': 30, 'layer4_dim':...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,135
MhYao2014/MNIST
refs/heads/master
/NN.py
import numpy as np from FNN import FNN from Neuron import Neuron class NN(FNN): def __init__(self): self.net = self.build_net() def build_net(self): h_input = Neuron(name='h_input', variable_dim=self.model_hyperparam['vari_dim'], hidden_dim=sel...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,136
MhYao2014/MNIST
refs/heads/master
/temp.py
import numpy as np a = np.array([ [3,4], [1,-1], [7,3] ]) print() musk = np.zeros(a[0].shape) print(a*musk) one_sample = lambda row: np.diag(row) - np.matmul(row.reshape(-1,1),row.reshape(1,-1)) Print = lambda row: print (row) b = np.array([ [[1,1], [0,1]], [[3,4], [5,1]], [[1,2],...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,137
MhYao2014/MNIST
refs/heads/master
/Train.py
import datetime import numpy as np from data_process import load_train_labels from data_process import load_train_images from FNN import FNN class Train_hyperparam(): def __int__(self): pass train_hyperparam = { 'step_size': 0.3, 'stop_criterion': 7, 'max_iteration': 1000000...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,138
MhYao2014/MNIST
refs/heads/master
/CNN.py
import numpy as np from NN import NN class CNN(NN): def __init__(self): pass
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,139
MhYao2014/MNIST
refs/heads/master
/data_process.py
import numpy as np import struct def decode_idx3_ubyte(idx3_ubyte_file): ''' Turn the binary file of training data into numpy array :param idx3_ubyte_file: The path to training data of ubyte format :return images: The training data of numpy array format ''' bin_data = open(file=idx3_ubyte_file, mo...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,140
MhYao2014/MNIST
refs/heads/master
/Neuron.py
import numpy as np class Neuron(object): def __init__(self, name, variable_dim, hidden_dim, acti_function): self.name = name self.acti_function = acti_function self.model_param, self.param_grad = self.initialize(variable_dim, hidden_dim) self.middle_result = {} self.function...
{"/SGD_Train.py": ["/Train.py", "/NN.py", "/data_process.py"], "/FNN.py": ["/data_process.py"], "/NN.py": ["/FNN.py", "/Neuron.py"], "/Train.py": ["/data_process.py", "/FNN.py"], "/CNN.py": ["/NN.py"]}
64,141
khatangatao/khatangatao
refs/heads/master
/blog/tests/test_models.py
from django.test import TestCase from django.contrib.auth import get_user_model from ..models import Entry, Comment class EntryModelTest(TestCase): def test_entry_create(self): pass def test_string_representation(self): entry = Entry(title="My entry title") self.assertEqual(str(entry),...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,142
khatangatao/khatangatao
refs/heads/master
/khatangatao/routing.py
from channels.routing import route channel_routing = [ ]
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,143
khatangatao/khatangatao
refs/heads/master
/client/cli_client.py
import sys import requests # try: # servername = 'http://' + sys.argv[1:] # except: # servername = 'http://khatangatao.com' # # print(servername) target = 'http://khatangatao.com/api/entry/' headers = {"Authorization": "Bearer 56a4f78b7f4a6990d3ae6c223a73249b8765c0c1"} r = requests.get(target, headers=header...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,144
khatangatao/khatangatao
refs/heads/master
/blog/tests/test_views.py
from django.test import TestCase from django.contrib.auth import get_user_model from blog.models import Entry, Comment from django_webtest import WebTest class HomePageTests(TestCase): """Test whether our blog entries show up on the homepage""" def setUp(self): self.user = get_user_model().objects.cr...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,145
khatangatao/khatangatao
refs/heads/master
/khatangatao/urls.py
from django.conf.urls import include, url from django.contrib import admin from django.views.generic.base import TemplateView # static files from django.conf import settings from django.conf.urls.static import static import blog.urls from blog import views urlpatterns = [ url(r'^$', views.HomeView.as_view(), na...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,146
khatangatao/khatangatao
refs/heads/master
/client/gui_client.py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Implement a GUI for viewing and updating blog """ from tkinter import * from tkinter.messagebox import showerror, showinfo import threading import logging fieldnames = ('title', 'author', 'body', 'created_at', 'modified_at') def makeWidgets(): global entries ...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,147
khatangatao/khatangatao
refs/heads/master
/blog/tests/test_forms.py
from django.test import TestCase from django.contrib.auth import get_user_model from django_webtest import WebTest from ..forms import CommentForm from ..models import Entry, Comment class CommentFormTest(WebTest): def setUp(self): user = get_user_model().objects.create_user('zoidberg') self.ent...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,148
khatangatao/khatangatao
refs/heads/master
/blog/forms.py
from django import forms from .models import Comment class CommentForm(forms.ModelForm): def __init__(self, *args, **kwargs): self.entry = kwargs.pop('entry') # the blog entry instance super().__init__(*args, **kwargs) def save(self): comment = super().save(commit=False) co...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,149
khatangatao/khatangatao
refs/heads/master
/blog/views.py
from django.shortcuts import render from django.views.generic import ListView from django.views.generic import CreateView from django.contrib.auth.models import User from .forms import CommentForm from .models import Entry class HomeView(ListView): template_name = 'home.html' queryset = Entry.objects.order_b...
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,150
khatangatao/khatangatao
refs/heads/master
/blog/api/urls.py
from django.conf.urls import include, url from ..views import EntryApi from rest_framework import routers router = routers.DefaultRouter() router.register('entry', EntryApi, base_name='entry') urlpatterns = [ # API url(r'^', include(router.urls)), ]
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,151
khatangatao/khatangatao
refs/heads/master
/blog/models.py
from django.db import models from django.core.urlresolvers import reverse class Entry(models.Model): title = models.CharField(max_length=500) author = models.ForeignKey('auth.User') body = models.TextField() created_at = models.DateTimeField(auto_now_add=True, editable=False) modified_at = models....
{"/blog/tests/test_models.py": ["/blog/models.py"], "/blog/tests/test_views.py": ["/blog/models.py"], "/blog/tests/test_forms.py": ["/blog/forms.py", "/blog/models.py"], "/blog/forms.py": ["/blog/models.py"], "/blog/views.py": ["/blog/forms.py", "/blog/models.py"], "/blog/api/urls.py": ["/blog/views.py"]}
64,168
fbdp1202/analysisIITP
refs/heads/master
/method.py
# method.py def getScore(numVlnTest, numNonVlnTest, numHitVln, numHitNonVln): return (numHitVln+numHitNonVln/10.)/float(numVlnTest+numNonVlnTest/10) def getHitnum(prams, thres, score): A = prams['HitOneVlnOne'] B = prams['HitOneNonVln'] C = thres D = prams['totalNumTest'] - thres result = (sco...
{"/analyzer.py": ["/method.py", "/canvas.py"], "/main.py": ["/model.py", "/canvas.py", "/analyzer.py"], "/model.py": ["/method.py"]}
64,169
fbdp1202/analysisIITP
refs/heads/master
/canvas.py
# canvas.py import matplotlib.pyplot as plt def drawPlot(x, y, shape, pltNum, pltTitle, pltlabel, pltXlabel, pltYlabel, color): plt.figure(pltNum) plt.title(label=pltTitle, loc='center', pad=10.) plt.plot(x, y, shape, color=color, label=pltlabel) plt.xlabel(pltXlabel) plt.ylabel(pltYlabel) plt...
{"/analyzer.py": ["/method.py", "/canvas.py"], "/main.py": ["/model.py", "/canvas.py", "/analyzer.py"], "/model.py": ["/method.py"]}
64,170
fbdp1202/analysisIITP
refs/heads/master
/analyzer.py
# analyzer.py import numpy as np import math from scipy.interpolate import interp1d from method import * import canvas def drawKmeans(data, prams): x = [] y = [] for factor, score in data['Kmeans']: x.append(factor) y.append(getLoss(factor, score, data, prams)) f1 = interp1d(x, y, k...
{"/analyzer.py": ["/method.py", "/canvas.py"], "/main.py": ["/model.py", "/canvas.py", "/analyzer.py"], "/model.py": ["/method.py"]}
64,171
fbdp1202/analysisIITP
refs/heads/master
/main.py
import model import canvas import analyzer if __name__=="__main__": excelFileName = 'scores.xlsx' data, prams = model.makeDataSet(excelFileName) analyzer.analysisKmeans(data, prams) analyzer.analysisHitNum(data, prams) canvas.showPlot()
{"/analyzer.py": ["/method.py", "/canvas.py"], "/main.py": ["/model.py", "/canvas.py", "/analyzer.py"], "/model.py": ["/method.py"]}
64,172
fbdp1202/analysisIITP
refs/heads/master
/model.py
# model.py from openpyxl import load_workbook from openpyxl import Workbook import method def makeDataRow(data, row): if not row[0] in data: data[row[0]] = [] data[row[0]].append(row[1:3]) def load_excel_data(data, fileName): load_wb = load_workbook(fileName, data_only=True) load_ws = load_w...
{"/analyzer.py": ["/method.py", "/canvas.py"], "/main.py": ["/model.py", "/canvas.py", "/analyzer.py"], "/model.py": ["/method.py"]}
64,185
SUPEngineer/webAuto
refs/heads/master
/testing/test_TouchAction.py
import time from selenium import webdriver from selenium.webdriver import TouchActions from selenium.webdriver.common.by import By class TestTouchAction: def setup(self): # 初始化webdriver时要加上这个option参数 # chromedriver都会默认把W3C协议设置为true # 而TouchAction这种鼠标操作本质是不符合W3C标准协议的操作 option = web...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...
64,186
SUPEngineer/webAuto
refs/heads/master
/testing/test_file.py
# @Time : 2021/2/24 19:46 # @Author : qiulingfeng # @File : test_file.py from time import sleep from selenium.webdriver.common.by import By from testing.base import Base class TestFile(Base): def test_file(self): self.driver.get("https://image.baidu.com/") self.driver.find_element(By.XPATH, "//...
{"/testing/test_file.py": ["/testing/base.py"], "/testing/test_js.py": ["/testing/base.py"], "/testing/test_alert.py": ["/testing/base.py"], "/testing/test_frame.py": ["/testing/base.py"], "/testing/addStuff/page/main_page.py": ["/testing/addStuff/page/address_page.py"], "/testing/addStuff/testCase/test_addStuff.py": [...