index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
16,374
wordwarrior01/MultiFileReader
refs/heads/master
/modules/file_handler.py
# # Nimish Nayak # 10-06-2017 # # required libraries import logging import os from utils import Utils # File Hander # This module will handle all the file handling operations class FileHandler(): # initialize the instance variables def __init__(self, input_file, output_file=None): self.input_file =...
{"/main.py": ["/modules/utils.py"]}
16,375
wordwarrior01/MultiFileReader
refs/heads/master
/modules/xml_parser.py
# # Nimish Nayak # 10-06-2017 # # # XML Parser # # required libraries import logging import xml.dom.minidom from parser import Parser from utils import Utils class XmlParser(Parser): # initialize the instance variables def __init__(self, input_file): # call the base class constructor Parser.__ini...
{"/main.py": ["/modules/utils.py"]}
16,376
wordwarrior01/MultiFileReader
refs/heads/master
/modules/csv_parser.py
# # Nimish Nayak # 10-06-2017 # # # CSV Parser # # required libraries import logging import csv from parser import Parser from utils import Utils class CsvParser(Parser): # initialize the instance variables def __init__(self, input_file): # call the base class constructor Parser.__init__(se...
{"/main.py": ["/modules/utils.py"]}
16,377
wordwarrior01/MultiFileReader
refs/heads/master
/modules/xml_parser_test.py
# # Nimish Nayak # 10-06-2017 # # # Xml Parser - Class Tests # from xml_parser import XmlParser import os test_file = os.path.join(os.getcwd(),"Test.xml") def test_xml_parser_with_missing_values(): global test_file # value missing with open(test_file,"w")as f: f.write("""<?xml versi...
{"/main.py": ["/modules/utils.py"]}
16,378
wordwarrior01/MultiFileReader
refs/heads/master
/modules/parser.py
# # Nimish Nayak # 10-06-2017 # # # Parser - Base Class # # required libraries import logging from abc import ABCMeta, abstractmethod class Parser(): __metaclass__ = ABCMeta # initialize the instance variables def __init__(self, input_file): self.input_file = input_file self.data = [...
{"/main.py": ["/modules/utils.py"]}
16,412
ademaro/teahouse
refs/heads/master
/blog/models.py
# -*- coding: utf-8 -*- from django.db import models from pyadmin import verbose_name_cases, verbose_name_field_cases class Category(models.Model): name = models.CharField(verbose_name = verbose_name_field_cases(u'категория', sort = u'категории', add = u'категорию'), max_length=250, unique=True) def __unicod...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,413
ademaro/teahouse
refs/heads/master
/pytils/test/templatetags/helpers.py
# -*- coding: utf-8 -*- # pytils - russian-specific string utils # Copyright (C) 2006-2008 Yury Yurevich # # http://www.pyobject.ru/projects/pytils/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Founda...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,414
ademaro/teahouse
refs/heads/master
/urls.py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', '_tea.views.home', name='home'), # url(r'^_tea/', include('_tea.foo.urls')), url(r'^$...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,415
ademaro/teahouse
refs/heads/master
/pyadmin.py
# -*- coding: utf-8 -*- """ NEVER EVER WRITE CODE LIKE THIS! """ import traceback import sys import re from django.db import models from django.contrib import messages from django.contrib.admin import ModelAdmin from pytils.numeral import get_plural #import django.contrib.admin.util class verbose_name_field_cas...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,416
ademaro/teahouse
refs/heads/master
/pytils/test/templatetags/test_common.py
# -*- coding: utf-8 -*- # pytils - russian-specific string utils # Copyright (C) 2006-2008 Yury Yurevich # # http://www.pyobject.ru/projects/pytils/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Founda...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,417
ademaro/teahouse
refs/heads/master
/blog/views.py
# -*- coding: utf-8 -*- from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.http import Http404 from django.shortcuts import render_to_response from _tea.blog.models import Entry, Category from datetime import datetime def index(request): if not request.session.get('bred'): ...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,418
ademaro/teahouse
refs/heads/master
/pytils/test/templatetags/__init__.py
# -*- coding: utf-8 -*- # pytils - russian-specific string utils # Copyright (C) 2006-2008 Yury Yurevich # # http://www.pyobject.ru/projects/pytils/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Founda...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,419
ademaro/teahouse
refs/heads/master
/pytils/__init__.py
# -*- coding: utf-8 -*- # pytils - russian-specific string utils # Copyright (C) 2006-2008 Yury Yurevich # # http://www.pyobject.ru/projects/pytils/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Founda...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,420
ademaro/teahouse
refs/heads/master
/pytils/test/templatetags/test_translit.py
# -*- coding: utf-8 -*- # pytils - russian-specific string utils # Copyright (C) 2006-2008 Yury Yurevich # # http://www.pyobject.ru/projects/pytils/ # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Founda...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,421
ademaro/teahouse
refs/heads/master
/blog/admin.py
# -*- coding: utf-8 -*- from django.contrib import admin from blog.models import Category, Entry import settings media = settings.MEDIA_URL class CategoryAdmin(admin.ModelAdmin): list_display = ('name',) search_fields = ('name',) class EntryAdmin(admin.ModelAdmin): list_display = ('title', 'date_publicat...
{"/blog/models.py": ["/pyadmin.py"], "/pytils/test/templatetags/test_common.py": ["/pytils/__init__.py"], "/pytils/test/templatetags/test_translit.py": ["/pytils/test/templatetags/__init__.py"], "/blog/admin.py": ["/blog/models.py"]}
16,422
rasakereh/time-series-predictors
refs/heads/master
/src/MLShepard.py
import numpy as np import faiss from .utils import rolling_window class MLShepard: def __init__( self, future_scope=3, dimension=10, minor_days=3, trust_treshold=4, max_point_usage=5, avr_elemwise_dist=0.04, epsilon=1e-10 ): self.future_sc...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,423
rasakereh/time-series-predictors
refs/heads/master
/master.py
import numpy as np import pandas as pd from dfply import * from pprint import pprint from os import listdir from os.path import isfile, join from time import time import datetime import matplotlib.pyplot as plt from src.utils import rolling_window, NumpyEncoder from src.GBL import GBLM from src.MLShepard import MLShepa...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,424
rasakereh/time-series-predictors
refs/heads/master
/data/cryptos/prep.py
import pandas as pd from dfply import X, arrange def loadPriceIndex(dataFile): priceIndex = pd.read_csv(dataFile) priceIndex["Price"] = priceIndex.apply(lambda x: x.Price if isinstance(x.Price, float) else float(x.Price.replace(',', '')), axis=1) priceIndex["Date"] = priceIndex["Date"].astype("datetime64[...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,425
rasakereh/time-series-predictors
refs/heads/master
/src/OSVR.py
"""Implementation of Online Support Vector Regression (OSVR) as library for a class project in 16-831 Statistical Techniques in Robotics. Requires Python 3.5 Author: Adam Werries, awerries@cmu.edu, 12/2015. Adapted from MATLAB code available at http://onlinesvr.altervista.org/ Parameters defined in main() below. C ...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,426
rasakereh/time-series-predictors
refs/heads/master
/src/utils.py
import numpy as np import json def rolling_window(a, window): shape = a.shape[:-1] + (a.shape[-1] - window + 1, window) strides = a.strides + (a.strides[-1],) return np.lib.stride_tricks.as_strided(a, shape=shape, strides=strides) class NumpyEncoder(json.JSONEncoder): def default(self, obj): i...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,427
rasakereh/time-series-predictors
refs/heads/master
/src/WHLR.py
import numpy as np from sklearn.linear_model import LinearRegression as LR from sklearn.kernel_approximation import RBFSampler from .utils import rolling_window class WHLR: def __init__( self, future_scope=3, dimension=10, avr_elemwise_dist=0.04, learning_rate=1e-2 ): ...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,428
rasakereh/time-series-predictors
refs/heads/master
/src/OARIMA.py
import numpy as np import pmdarima as pm from math import sqrt from .utils import rolling_window class OARIMA: def __init__( self, dimension=10, lrate=1e-2, epsilon=1e-10, method='ogd' ): self.dimension = dimension self.lrate = lrate self.epsilon ...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,429
rasakereh/time-series-predictors
refs/heads/master
/src/RandConLSTM.py
import numpy as np import math import torch from torch import nn, optim # from torch.autograd import Variable from torch.nn.utils import clip_grad_norm from collections import OrderedDict import pandas as pd from .RCLSTM import rclstm from .RCLSTM.rclstm import RNN from .utils import rolling_window loss_fn = nn.MSE...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,430
rasakereh/time-series-predictors
refs/heads/master
/results/dumps.py
from os import listdir from os.path import join, isfile import json import numpy as np dataDir = '../dumps' dataFiles = {f: join(dataDir, f) for f in listdir(dataDir) if isfile(join(dataDir, f)) and f[-4:] == '.dmp'} # print(list(dataFiles.keys())) for f in dataFiles: dump = open(dataFiles[f], 'r') res = jso...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,431
rasakereh/time-series-predictors
refs/heads/master
/data/RTcryptos/AAA_delta.py
import pandas as pd from dfply import X, arrange, mutate, drop import numpy as np from os import listdir from os.path import isfile csvFiles = [f for f in listdir('.') if isfile(f) and f[-4:] == '.csv'] def loadPriceIndex(dataFile): priceIndex = pd.read_csv(dataFile) >> arrange(X.Date) dates = priceIndex['D...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,432
rasakereh/time-series-predictors
refs/heads/master
/src/MondrianForest.py
import numpy as np import math from .MF.mondrianforest import MondrianForest as MondrianForest_Main from .MF.mondrianforest_utils import precompute_minimal from .utils import rolling_window def prepareData(X, f, settings, single=False): data = { 'x_train': X, 'y_train': f, 'n_dim': X.shape[...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,433
rasakereh/time-series-predictors
refs/heads/master
/src/GBL.py
import numpy as np from .utils import rolling_window # parameters (except epsilon) offered by https://link.springer.com/article/10.1007/s00521-016-2314-8 class GBLM: def __init__( self, dimension=10, epsilon=5e-3, forgetting_rate=.59, p_learning_rate=.008, s_learning...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,434
rasakereh/time-series-predictors
refs/heads/master
/data/RTcryptos/AAA_prep.py
import pandas as pd from dfply import X, arrange, mutate, drop from os import listdir from os.path import isfile csvFiles = [f for f in listdir('.') if isfile(f) and f[-4:] == '.csv'] header = 'id|Price|volume|timestamp|buy\n' def loadPriceIndex(dataFile): original = open(dataFile, 'r') data = header + ori...
{"/src/MLShepard.py": ["/src/utils.py"], "/master.py": ["/src/utils.py", "/src/GBL.py", "/src/MLShepard.py", "/src/MondrianForest.py", "/src/OARIMA.py", "/src/OSVR.py", "/src/RandConLSTM.py", "/src/WHLR.py"], "/src/OSVR.py": ["/src/utils.py"], "/src/WHLR.py": ["/src/utils.py"], "/src/OARIMA.py": ["/src/utils.py"], "/sr...
16,611
Archieyoung/SVAN
refs/heads/master
/range_compare.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ import os import subprocess from bed_intersect import intersect_f from table_check import TableCheck def RangeCompare(bedtools, bedA, bedB, min_overlap, tmp_dir, prefix,db_id): # result sv dict, key: query sv id, value: db fie...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,612
Archieyoung/SVAN
refs/heads/master
/format_result.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ """ db fields "chrom","start","end","svtype","annot1","annot2","annot3"... format: "annot1;annot1","annot2,annot2";"annot3;annot3","chrom:start-end,svtype;..." if multiple result is founded in database, write all feature in one co...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,613
Archieyoung/SVAN
refs/heads/master
/table_check.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ def TableCheck(table): """ check if the table have consistent field number of each row return field number of the table """ with open(table,"r") as io: # skip comment lines check_momment_line = ...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,614
Archieyoung/SVAN
refs/heads/master
/svan.py
#!/usr/bin/env python3 """ author: archieyoung<yangqi2@grandomics.com> SVAN: A Struture Variation Annotation Tool """ import sys import os import subprocess import operator import argparse import logging from multiprocessing import Pool from glob import iglob import sv_vcf import pubdb_prepare from range_compare impo...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,615
Archieyoung/SVAN
refs/heads/master
/bed_intersect.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ class intersect_f(object): def __init__(self, fields, query_field_num): (self.query_chrom, self.query_start, self.query_end, self.query_svtype, self.query_svid) = fields[:5] (self.db_chrom, self....
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,616
Archieyoung/SVAN
refs/heads/master
/pubdb_prepare.py
#!/usr/bin/env python3 """ prepare SV database for annotation convert 1000genome, DGV, dbVar SV files into bed files """ import sys import gzip import logging import operator import os from glob import iglob from datetime import date from sv_vcf import SV # 1000genome class one_thousand_sv(object): def __init__...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,617
Archieyoung/SVAN
refs/heads/master
/sv_vcf.py
""" A Universal Stucture Variant VCF parsing module tested vcf: sniffles vcf, nanosv vcf, picky vcf shared INFO ID are: SVTYPE, END, SVLEN RE(reads evidence): sniffles, picky; nano SV: RT(2d,template,complement) BND shared format: N[ref:pos2[ BND format: N]chr6:25647927] STAT REF ALT Meaning s1 s t[p[ p...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,618
Archieyoung/SVAN
refs/heads/master
/traslocation_compare.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ import os import subprocess import sys from bed_intersect import intersect_f from table_check import TableCheck def TraCompare(bedtools, bedA, bedB, max_dist, tmp_dir, prefix, db_id): # result sv dict, key: query sv id, value:...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,619
Archieyoung/SVAN
refs/heads/master
/insertion_compare.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ import os import subprocess from bed_intersect import intersect_f from table_check import TableCheck def InsCompare(bedtools, bedA, bedB, max_dist, tmp_dir, prefix, db_id): # result sv dict, key: query sv id, value: db field...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,620
Archieyoung/SVAN
refs/heads/master
/local_database_prepare.py
""" Author: ArchieYoung <yangqi2@grandomics.com> Time: Thu Jul 5 09:24:07 CST 2018 """ import sys import argparse import os from multiprocessing import Pool from glob import iglob from sv_vcf import SV def vcf_to_db_bed(_args): vcf, min_support_reads, out_dir, sv_id_prefix = _args with open(vcf, "r") as...
{"/range_compare.py": ["/bed_intersect.py", "/table_check.py"], "/svan.py": ["/sv_vcf.py", "/pubdb_prepare.py", "/range_compare.py", "/insertion_compare.py", "/traslocation_compare.py"], "/pubdb_prepare.py": ["/sv_vcf.py"], "/traslocation_compare.py": ["/bed_intersect.py", "/table_check.py"], "/insertion_compare.py": [...
16,628
idlesign/deflacue
refs/heads/master
/setup.py
import io import os import re import sys from setuptools import setup PATH_BASE = os.path.dirname(__file__) def read_file(fpath): """Reads a file within package directories.""" with io.open(os.path.join(PATH_BASE, fpath)) as f: return f.read() def get_version(): """Returns version number, with...
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,629
idlesign/deflacue
refs/heads/master
/deflacue/cli.py
import argparse import logging from .deflacue import Deflacue, DeflacueError def main(): argparser = argparse.ArgumentParser('deflacue') argparser.add_argument( 'source_path', help='Absolute or relative source path with .cue file(s).') argparser.add_argument( '-r', help='Recursion flag ...
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,630
idlesign/deflacue
refs/heads/master
/deflacue/__init__.py
VERSION = (2, 0, 1)
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,631
idlesign/deflacue
refs/heads/master
/deflacue/parser.py
import logging from copy import deepcopy from pathlib import Path from typing import List, Optional, Tuple from .exceptions import ParserError LOGGER = logging.getLogger(__name__) def pos_to_frames(pos) -> int: """Converts position (mm:ss:ff) into frames. :param pos: """ minutes, seconds, frames =...
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,632
idlesign/deflacue
refs/heads/master
/deflacue/exceptions.py
class DeflacueError(Exception): """Exception type raised by deflacue.""" class ParserError(Exception): """Cue file parser error."""
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,633
idlesign/deflacue
refs/heads/master
/tests/test_basic.py
import logging from collections import deque from pathlib import Path import pytest from deflacue.deflacue import CueParser, Deflacue from deflacue.exceptions import ParserError class TestParser: def test_encoding(self, datafix_dir): fpath = datafix_dir / 'vys2.cue' with pytest.raises(ParserE...
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,634
idlesign/deflacue
refs/heads/master
/deflacue/deflacue.py
""" deflacue is a Cue Sheet parser and a wrapper for mighty SoX utility - http://sox.sourceforge.net/. SoX with appropriate plugins should be installed for deflacue to function. Ubuntu users may install the following SoX packages: `sox`, `libsox-fmt-all`. deflacue can function both as a Python module and in command l...
{"/deflacue/cli.py": ["/deflacue/deflacue.py"], "/deflacue/parser.py": ["/deflacue/exceptions.py"], "/tests/test_basic.py": ["/deflacue/deflacue.py", "/deflacue/exceptions.py"], "/deflacue/deflacue.py": ["/deflacue/exceptions.py", "/deflacue/parser.py"]}
16,639
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/stopwords.py
import csv def loadTagset(filename): loaded = [] tagset = [] with open(filename) as csvfile: lines = csv.reader(csvfile) loaded = list(lines) for tag in loaded: tagset.append(tag[0]) return tagset tagset = loadTagset("data\\tags.csv") if "LM" in tagset: print("yes")
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,640
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/py4jTest.py
from py4j.java_gateway import JavaGateway # gateway = JavaGateway() # # tagger = gateway.entry_point.getPost() # # # sentence = "high school. taga-punch, mag-shopping, pala-iyot pala iyot taga-bake taga bake nag i strike nag-i-strike" # print(tagger.tagPOS(sentence)) class POSTagger: def __init__(self): ...
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,641
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/spacytest.py
from spacy.lang.en import English nlp = English() samplesent = ["couldn't", "eating", "killed", "loving", "parties"] for word in samplesent: doc = nlp(word) word = doc[0].lemma_ print(word)
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,642
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/yandextranslatetest.py
import json, urllib.request # key = "trnsl.1.1.20180821T035101Z.7622bc974ead6403.f3016199d1f56c33e68de316b816750e09daae43" # # # def toUrlSafe(sentence): # return sentence.replace(" ", "+") # # def translateSentence(sentence): # sentence = toUrlSafe(sentence) # with urllib.request.urlopen("https://translat...
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,643
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/consolidate.py
import csv def loadDataset(filename): with open(filename) as csvfile: lines = csv.reader(csvfile) return list(lines) counti = 0 for i in range(6): consolidated = [] counti = i + 1 for j in range(37): countj = j+1 inputdirectory = "data\\validset_batch" + str(countj...
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,644
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/senticnettest.py
from senticnet.senticnet import SenticNet ##NOTE TO SELF YOU STILL HAVE TO FIX THE EXCEPTION HERE class SenticValuer: def getSentics(self, word): senticsAndItensity = [] sn = SenticNet('en') try: sentics = sn.sentics(word) polarity_intensity = sn.polarity_intense(wor...
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,645
saibunny/fil-shortstory-svm-thesis
refs/heads/master
/preprocess.py
#import for csv import csv #import for tagger from py4jTest import POSTagger #import for translator from yandextranslatetest import Translator #import for sentic value tagger from senticnettest import SenticValuer #import for english lemmatizer from spacy.lang.en import English #import for sorting from operator im...
{"/preprocess.py": ["/py4jTest.py", "/yandextranslatetest.py", "/senticnettest.py"]}
16,655
jnothman/pickleback
refs/heads/master
/test_pickleback.py
import pickle import subprocess def test_with_script(tmpdir): tmpdir.join('plot.py').write('import sys\n' 'import matplotlib.pyplot as plt\n' 'import matplotlib\n' 'matplotlib.use("Agg")\n' ...
{"/pickleback/__main__.py": ["/pickleback/__init__.py"]}
16,656
jnothman/pickleback
refs/heads/master
/pickleback/backend_pkl.py
from __future__ import (absolute_import, division, print_function, unicode_literals) import pickle from matplotlib.backend_bases import FigureManagerBase, FigureCanvasBase from matplotlib.figure import Figure ######################################################################## # # The fo...
{"/pickleback/__main__.py": ["/pickleback/__init__.py"]}
16,657
jnothman/pickleback
refs/heads/master
/pickleback/__main__.py
from __future__ import print_function import sys import runpy from pickleback import register def main(): if len(sys.argv) == 1: print('Usage: {prog} /path/to/python-script.py [script-args...]\n' 'Usage: {prog} -m path.to.module [script-args...]\n' '\n' 'Loads ma...
{"/pickleback/__main__.py": ["/pickleback/__init__.py"]}
16,658
jnothman/pickleback
refs/heads/master
/pickleback/__init__.py
def register(): from matplotlib.backend_bases import register_backend for ext in ['pkl', 'pickle']: register_backend(ext, 'pickleback.backend_pkl', 'Python pickle format, to be used with caution on a ' 'single matplotlib version')
{"/pickleback/__main__.py": ["/pickleback/__init__.py"]}
16,662
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v5old/firstapp/migrations/0006_suggestion_choice_field.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-04 08:41 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('firstapp', '0005_remove_suggestion_choice_field'), ] operations = [ ...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,663
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v5/firstapp/models.py
from django.db import models from django import forms from django.contrib.auth.models import User from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. CHOICES = (('LFG', 'Lfg',), ('LFM', 'Lfm',),('WTB', 'Wtb',), ('WTS', 'Wts',)) class suggestion(models....
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,664
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v3/firstapp/views.py
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.http import HttpResponse, JsonResponse from .models import * from .forms import * from django.contrib.auth.decorators import login_required from django.db import transaction from django.contrib.postgres.search i...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,665
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465/firstapp/views.py
from django.shortcuts import render, redirect from django.contrib.auth.models import User from django.http import HttpResponse, JsonResponse from .models import * from .forms import * from django.contrib.auth.decorators import login_required from django.db import transaction # from django.contrib.auth.forms im...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,666
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v5old/firstapp/forms.py
from django import forms from django.core.validators import validate_unicode_slug from firstapp.models import CHOICES from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth.models import User from .models import * class suggestion_form(forms.Form): suggestion = ...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,667
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465/firstapp/forms.py
from django import forms from django.core.validators import validate_unicode_slug from django.contrib.auth.forms import UserCreationForm, AuthenticationForm from django.contrib.auth.models import User from .models import * class suggestion_form(forms.Form): suggestion = forms.CharField(label='Suggestion',...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,668
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v5/firstapp/migrations/0005_remove_suggestion_choice_field.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-04 08:37 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('firstapp', '0004_auto_20171204_0035'), ] operations = [ migrations.Re...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,669
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v5/firstapp/urls.py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$',views.index, name='index'), url(r'page2$',views.page2, name='page2'), url(r'register/$',views.register, name='register'), url(r'suggestions/$',views.suggestions, name='suggestions'), url(r'^suggest/$',views.sug...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,670
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465v5old/firstapp/migrations/0007_remove_suggestion_choice_field.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-12-04 08:46 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('firstapp', '0006_suggestion_choice_field'), ] operations = [ migratio...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,671
ddalton002/ddalton002stuff
refs/heads/master
/venv/bin/django-admin.py
#!/home/ddalton86/ddalton002stuff/venv/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,672
ddalton002/ddalton002stuff
refs/heads/master
/CSCI465/firstapp/migrations/0003_auto_20171114_1718.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-11-15 01:18 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('firstapp', '0002_auto_20171114_1056'), ] operations = [ migra...
{"/CSCI465/firstapp/views.py": ["/CSCI465/firstapp/forms.py"]}
16,673
zackhy/statistical-machine-learning
refs/heads/master
/models/helper.py
# -*- coding: utf-8 -*- import numpy as np def sigmoid(n): return 1 / (1 + np.exp(-n)) def log_loss(probs, y_true): probs = np.array(probs) y_true = np.array(y_true) term_1 = np.dot(y_true, np.log(probs)) term_2 = np.dot(1 - y_true, np.log(1 - probs)) return - (1 / len(y_true)) * (term_1 +...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,674
zackhy/statistical-machine-learning
refs/heads/master
/test.py
import numpy as np from models.naive_bayes import BernoulliNB as MyBNB from models.naive_bayes import MultinomialNB as MyMNB from sklearn.naive_bayes import BernoulliNB from sklearn.naive_bayes import MultinomialNB X = np.random.randint(5, size=(6, 100)) y = np.array([1, 2, 3, 4, 4, 5]) my_clf = MyBNB().fit(X, y) my_...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,675
zackhy/statistical-machine-learning
refs/heads/master
/models/naive_bayes.py
# -*- coding: utf-8 -*- import numpy as np from models.base import Base from models.utils import input_check, target_check, fitted_check class BernoulliNB(Base): """Bernoulli Naive Bayes Classifier that implements the fit(X, y) and predict(T) methods""" def fit(self, X, y): """ Fit the Bernou...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,676
zackhy/statistical-machine-learning
refs/heads/master
/models/base.py
# -*- coding: utf-8 -*- import numpy as np from models.utils import input_check, target_check, fitted_check class Base(object): def __int__(self): pass def fit(self, X, y): return NotImplementedError def predict(self, T): return NotImplementedError @fitted_check def scor...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,677
zackhy/statistical-machine-learning
refs/heads/master
/models/logistic_regression.py
# -*- coding: utf-8 -*- import numpy as np from models.base import Base from models.helper import sigmoid, log_loss from models.utils import input_check, target_check, fitted_check class LogisticRegression(Base): """Implement a simple logistic regression""" def __init__(self, learning_rate, max_iter): ...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,678
zackhy/statistical-machine-learning
refs/heads/master
/models/utils.py
# -*- coding: utf-8 -*- import numpy as np def fitted_check(func): def wrapper(self, *args, **kw): if not hasattr(self, 'fitted'): raise AttributeError("This model instance is not fitted yet. Call 'fit' first.") return func(self, *args, **kw) return wrapper def input_check(X): ...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,679
zackhy/statistical-machine-learning
refs/heads/master
/models/metrics.py
# -*- coding: utf-8 -*- import numpy as np def confusion_matrix(y_true, y_pred): """ :param y_true: True targets. An array-like object. Shape = (n_samples, ) :param y_pred: Predicted values. An array-like object. Shape = (n_samples, ) :return: Consufison matrix. """ y_true = np.array(y_true) ...
{"/test.py": ["/models/naive_bayes.py"], "/models/naive_bayes.py": ["/models/base.py", "/models/utils.py"], "/models/base.py": ["/models/utils.py"], "/models/logistic_regression.py": ["/models/base.py", "/models/helper.py", "/models/utils.py"]}
16,685
aman229/vqa_tensorflow
refs/heads/master
/VQA.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import random_seed from collections import Counter from PIL import Image import numpy as np import itertools import zipfile import urllib import json import os import re class ...
{"/main.py": ["/model.py"], "/model.py": ["/VQA.py"]}
16,686
aman229/vqa_tensorflow
refs/heads/master
/main.py
from model import Model import argparse parser = argparse.ArgumentParser(description='') parser.add_argument('--epoch', dest='epoch', type=int, default=20, help='# of epoch') parser.add_argument('--batch_size', dest='batch_size', type=int, default=128, help='# images in batch') parser.add_argument('--lr', dest='lr', t...
{"/main.py": ["/model.py"], "/model.py": ["/VQA.py"]}
16,687
aman229/vqa_tensorflow
refs/heads/master
/model.py
from resnet_utils import resnet_arg_scope from resnet import resnet_v2_152 from VQA import VQADataSet import tensorflow as tf import time import os # TODO add summaries # TODO add validation class Model(object): """ TF implementation of "Show, Ask, Attend, and Answer: A Strong Baseline For Visual Question...
{"/main.py": ["/model.py"], "/model.py": ["/VQA.py"]}
16,707
davidengebretson/md2html
refs/heads/master
/setup.py
import ez_setup ez_setup.use_setuptools() from setuptools import setup from md2html import __VERSION__ setup(name='md2html', author='Gary Campbell', author_email='campg2003@gmail.com', version=__VERSION__, install_requires = ['markdown'], py_modules=['md2html'], entry_points = {'console_scripts': ['m...
{"/setup.py": ["/md2html.py"], "/setupexe.py": ["/md2html.py"]}
16,708
davidengebretson/md2html
refs/heads/master
/setupexe.py
from distutils.core import setup import py2exe from md2html import __VERSION__ setup(name='md2html', version=__VERSION__, author='Gary Campbell', author_email='campg2003@gmail.com', description='Convert Markdown to HTML', requires=['markdown(>=2.6.6)'], console=['md2html.py'], options={"py2exe":...
{"/setup.py": ["/md2html.py"], "/setupexe.py": ["/md2html.py"]}
16,709
davidengebretson/md2html
refs/heads/master
/md2html.py
# 5/23/16 md2html-- convert Markdown to HTML-- for the Audacity JAWS Script project. __VERSION__ = "1.0.7" import sys import os import os.path import argparse import re import io import ConfigParser import markdown import markdown.extensions # for py2exe import markdown.extensions.fenced_code from markdown.extensions.f...
{"/setup.py": ["/md2html.py"], "/setupexe.py": ["/md2html.py"]}
16,740
shanmuk184/SalesCrmbackend
refs/heads/master
/api/stores/base.py
import datetime class BaseStoreModel: def __init__(self): self._data_dict = {} class BaseProperties: CreatedAt = 'created_at' UpdatedAt = 'updated_at' _reverseMapping = {} class PropertyNames: pass class ReverseMapping: pass @property def datadict...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,741
shanmuk184/SalesCrmbackend
refs/heads/master
/api/models/Product.py
from tornado.gen import * from api.core.product import ProductHelper from api.stores.product import Product from api.models.base import BaseModel class ProductModel(BaseModel): def __init__(self, **kwargs): super().__init__(**kwargs) self._ph = ProductHelper(**kwargs) @coroutine def creat...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,742
shanmuk184/SalesCrmbackend
refs/heads/master
/api/models/group.py
from api.stores.group import * from api.stores.user import User, GroupMapping, UserStatus, LinkedAccount, LinkedAccountType from api.stores.employee import Employee, SupportedRoles, GroupStatus from tornado.gen import * from api.core.user import UserHelper from api.models.base import BaseModel from api.core.group impor...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,743
shanmuk184/SalesCrmbackend
refs/heads/master
/app.py
import tornado.ioloop import tornado.web from urls import urlpatterns from db.db import Database from config.config import Settings from tornado_swirl.swagger import Application, describe from tornado_swirl import api_routes from tornado.options import define, options settings = Settings() describe(title='UMS API', d...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,744
shanmuk184/SalesCrmbackend
refs/heads/master
/api/models/base.py
from api.core.user import UserHelper from api.core.group import GroupHelper from tornado.gen import coroutine, Return import bcrypt class BaseModel(object): def __init__(self, **kwargs): if not kwargs.get('db'): raise ValueError('db should be present') self._user = None if kwarg...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,745
shanmuk184/SalesCrmbackend
refs/heads/master
/api/stores/product.py
from api.stores.base import BaseStoreModel from bson import ObjectId class Product(BaseStoreModel): class PropertyNames: Name = 'name' ProductCode = 'pc' Type = 'type' SaleScheme = 'ss' PurchaseScheme = 'ps' CostPrice = 'cp' MRP = 'mrp' Id = '_id' ...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,746
shanmuk184/SalesCrmbackend
refs/heads/master
/api/stores/group.py
from .base import BaseStoreModel from enum import Enum from api.stores.product import Product from bson import ObjectId from datetime import datetime import uuid class CreateEmployeeRequestParams: Name = 'name' Designation='designation' Password = 'password' EmailId = 'email_id' Phone = 'phone' ...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,747
shanmuk184/SalesCrmbackend
refs/heads/master
/tests/test_user_store.py
from api.stores.user import User from tornado.testing import AsyncHTTPTestCase from app import MyApplication from tornado.testing import AsyncHTTPClient from tornado.httputil import HTTPServerRequest class TestServiceApp(AsyncHTTPTestCase): def get_app(self): application = MyApplication() return a...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,748
shanmuk184/SalesCrmbackend
refs/heads/master
/api/handlers/group.py
from tornado.gen import * from .baseHandler import BaseHandler, BaseApiHandler from api.models.group import GroupModel import json from tornado import web from bson.json_util import dumps from tornado_swirl.swagger import schema, restapi @restapi('/api/user/groups') class GroupsListHandler(BaseApiHandler): @web.aut...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,749
shanmuk184/SalesCrmbackend
refs/heads/master
/api/models/event.py
from tornado.gen import * from api.core.event import EventHelper from api.models.base import BaseModel class EventModel(BaseModel): def __init__(self, **kwargs): super().__init__(**kwargs) self._eh = EventHelper(**kwargs) @coroutine def create_event(self, eventDict): if not even...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,750
shanmuk184/SalesCrmbackend
refs/heads/master
/api/models/user.py
from tornado.gen import * import bcrypt import jwt import base64 from api.stores.user import User, LinkedAccount, LinkedAccountType, RegisterRequestParams, UserStatus, EmailValidationStatus, NewUserStatus from api.stores.group import Group, CreateEmployeeRequestParams from api.models.base import BaseModel import tornad...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,751
shanmuk184/SalesCrmbackend
refs/heads/master
/api/stores/user.py
from enum import Enum from .base import BaseStoreModel import re from bson import ObjectId import uuid import datetime from tornado_swirl.swagger import schema class SupportedRoles: Admin = 'ad' Member = 'me' class DisplayRoles: Employee = 'Employee' Owner = 'Owner' class UserStatus: Invited = 'in...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,752
shanmuk184/SalesCrmbackend
refs/heads/master
/api/handlers/user.py
from tornado import web from tornado.gen import * from .baseHandler import BaseHandler, BaseApiHandler import simplejson as json from api.models.user import UserModel from bson.json_util import dumps from tornado_swirl.swagger import schema, restapi @restapi('/api/register') class RegisterHandler(BaseHandler): @c...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,753
shanmuk184/SalesCrmbackend
refs/heads/master
/urls.py
from api.handlers.user import * from api.handlers.group import GroupsListHandler, GroupHandler, CreateEmloyeeHandler from api.handlers.product import ProductHandler from api.handlers.event import EventHandler urlpatterns = [ # Admin register handler (r"/api/register$", RegisterHandler), (r"/api/login$",Lo...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,754
shanmuk184/SalesCrmbackend
refs/heads/master
/api/core/group.py
from tornado.gen import * from api.stores.group import Group, MemberMapping from api.stores.user import SupportedRoles, StatusType from db.db import QueryConstants from db.db import Database class GroupHelper: def __init__(self,**kwargs): self._user = kwargs.get('user') database = Database(kwargs.g...
{"/api/models/Product.py": ["/api/stores/product.py", "/api/models/base.py"], "/api/models/group.py": ["/api/stores/group.py", "/api/stores/user.py", "/api/models/base.py", "/api/core/group.py"], "/app.py": ["/urls.py"], "/api/models/base.py": ["/api/core/group.py"], "/api/stores/product.py": ["/api/stores/base.py"], "...
16,758
NuevoIngenioMexicano/DevPlaces
refs/heads/master
/myApp/models.py
from __future__ import unicode_literals from django.db import models # Create your models here. class Categorias(models.Model): #Atributos nombre = models.CharField(max_length=25) descripcion = models.CharField(max_length=140) def __str__(self): return self.nombre class Publicacion(models.Model): #Conexiones...
{"/myApp/forms.py": ["/myApp/models.py"], "/myApp/views.py": ["/myApp/forms.py"]}
16,759
NuevoIngenioMexicano/DevPlaces
refs/heads/master
/myApp/forms.py
from __future__ import unicode_literals from django.forms import ModelForm from . import models from django.utils.translation import ugettext_lazy as _ from django import forms from .models import Publicacion class Crear(ModelForm): class Meta: model = models.Publicacion fields = ['lugar','descripcion','categ...
{"/myApp/forms.py": ["/myApp/models.py"], "/myApp/views.py": ["/myApp/forms.py"]}
16,760
NuevoIngenioMexicano/DevPlaces
refs/heads/master
/myApp/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2016-07-24 12:47 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Creat...
{"/myApp/forms.py": ["/myApp/models.py"], "/myApp/views.py": ["/myApp/forms.py"]}
16,761
NuevoIngenioMexicano/DevPlaces
refs/heads/master
/myApp/views.py
from django.shortcuts import render from . import models from django.views.generic import View from django.views.decorators.csrf import csrf_exempt from .forms import Crear #Create your views here. def crear(request): template_name = 'index2.html' todo = models.Publicacion.objects.all() context = { 'todo':todo ...
{"/myApp/forms.py": ["/myApp/models.py"], "/myApp/views.py": ["/myApp/forms.py"]}
16,762
red23495/random_util
refs/heads/master
/Python/Algebra/test/test_binary_exponentiation.py
import unittest from ..binary_exponentiation import mod_pow class BinaryExponentiationTest(unittest.TestCase): def test_calculates_power_properly(self): self.assertEqual(mod_pow(2, 2), 4) self.assertEqual(mod_pow(1, 10), 1) self.assertEqual(mod_pow(10, 5), 100000) def test_calcul...
{"/Python/Algebra/test/test_binary_exponentiation.py": ["/Python/Algebra/binary_exponentiation.py"]}