index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
8,008
Mihkorz/mortality.ai
refs/heads/master
/website/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-16 12:03 from __future__ import unicode_literals from django.db import migrations, models import django_countries.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateMo...
{"/Mortality/urls.py": ["/website/views.py"], "/website/views.py": ["/core/algorythm.py", "/website/models.py"], "/website/admin.py": ["/website/models.py"]}
8,009
Mihkorz/mortality.ai
refs/heads/master
/core/algorythm.py
import os import csv BASE = os.path.dirname(os.path.abspath(__file__)) kwargs = {"gender":1, #0 = female, 1 = male "country":"Germany", #country names as in 2 column of cntr.txt. For example France, Nigeria (case not sensitive) "age":23, #integer or float...
{"/Mortality/urls.py": ["/website/views.py"], "/website/views.py": ["/core/algorythm.py", "/website/models.py"], "/website/admin.py": ["/website/models.py"]}
8,010
Mihkorz/mortality.ai
refs/heads/master
/website/views.py
# -*- coding: utf-8 -*- import os import uuid import pandas as pd import numpy as np import subprocess import json from django.views.generic.base import TemplateView from django.views.generic.edit import FormView from django.conf import settings from django.shortcuts import redirect from django import forms from djang...
{"/Mortality/urls.py": ["/website/views.py"], "/website/views.py": ["/core/algorythm.py", "/website/models.py"], "/website/admin.py": ["/website/models.py"]}
8,011
Mihkorz/mortality.ai
refs/heads/master
/website/admin.py
from django.contrib import admin from django.db import models from pagedown.widgets import AdminPagedownWidget from .models import RunnedTest, Article class RunnedTestAdmin(admin.ModelAdmin): list_display = ('id', 'ip', 'datetime', 'metric', ...
{"/Mortality/urls.py": ["/website/views.py"], "/website/views.py": ["/core/algorythm.py", "/website/models.py"], "/website/admin.py": ["/website/models.py"]}
8,094
yorkurt/pygame_controllers
refs/heads/master
/joy.py
import math import pygame import helpers class Joystick_L: def __init__(self): pygame.joystick.init() numJoys = pygame.joystick.get_count() self.joyInitL = False self.x = 0 self.y = 0 self.rad = 0 self.throttle = 0 if (numJoys > 0): self...
{"/joy.py": ["/helpers.py"]}
8,095
yorkurt/pygame_controllers
refs/heads/master
/helpers.py
def limitToRange(a,b,c): if a < b: a = b if a > c: a = c return a
{"/joy.py": ["/helpers.py"]}
8,096
yorkurt/pygame_controllers
refs/heads/master
/main.py
import math import pygame import joy class Main: def __init__(self): self.SCREEN_WIDTH = 800 self.SCREEN_HEIGHT = 450 self.screen = pygame.display.set_mode((self.SCREEN_WIDTH,self.SCREEN_HEIGHT)) self.objects = [] self.mode = 1 pygame.font.init() self.font...
{"/joy.py": ["/helpers.py"]}
8,097
yorkurt/pygame_controllers
refs/heads/master
/talker.py
#!/usr/bin/env python import rospy from std_msgs.msg import String#, Float64MultiArray from controller.msg import FloatList, IntList #import main def talker(): #float64[4] axes = [main.leftX,main.leftY,main.rightX,main.rightY] pub_axes = rospy.Publisher('controls', FloatList, queue_size=10) pub_buttons = ...
{"/joy.py": ["/helpers.py"]}
8,116
giahy2507/convae
refs/heads/master
/submodular/main.py
__author__ = 'MichaelLe' import submodular import loadFile from numpy import * from numpy import * import numpy as np from tempfile import TemporaryFile clusters = load('cluster_my_format.npy') sum = 0 for cluster in clusters: if cluster != None: # cluster la 1 dictionary ...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,117
giahy2507/convae
refs/heads/master
/convaeclassification.py
__author__ = 'HyNguyen' import theano import theano.tensor as T import numpy as np from LayerClasses import MyConvLayer,FullConectedLayer,SoftmaxLayer from tensorflow.examples.tutorials.mnist import input_data from sys import stderr import cPickle import os from scipy.misc import imread, imsave if __name__ == "__main...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,118
giahy2507/convae
refs/heads/master
/mulNN.py
__author__ = 'HyNguyen' import theano import theano.tensor as T import numpy as np from LayerClasses import MyConvLayer,FullConectedLayer,SoftmaxLayer from tensorflow.examples.tutorials.mnist import input_data import cPickle import os import sys from lasagne.updates import adam from sys import stderr if __name__ == "...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,119
giahy2507/convae
refs/heads/master
/summary/summary.py
__author__ = 'MichaelLe' from mmr import mmrelevance from submodular import submodular import kmean_sum def do_summarize(V,n, P, L, alpha, galma, numberofWord, mode_str): modeList = {"sub_cosine":0, "sub_euclid":1,"mmr_cosine":2,"mmr_euclid":3,"kmean_simple":4, "mmr_kmean_cosine":5,"mmr_kmean_e...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,120
giahy2507/convae
refs/heads/master
/submodular/main2.py
__author__ = 'HyNguyen' import numpy as np import submodular def insideMatrix(a, V): n = len(V) for i in range(0, n): if a == V[i]: return True return False def read_cluster_hy_format(cluster_hy_format_file): clusters = np.load(cluster_hy_format_file) sum1 = 0 for cluster...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,121
giahy2507/convae
refs/heads/master
/submodular/test.py
__author__ = 'MichaelLe' import numpy as np S = [1, 2] L = np.array([]) L = np.append(L,2) L = np.append(L,40) L = np.append(L, 60) print L.shape
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,122
giahy2507/convae
refs/heads/master
/vector/main.py
__author__ = 'HyNguyen' import time import numpy as np if __name__ == "__main__": start = time.time() A = np.load("data_processed.npy") end = time.time() print "load data ",end - start
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,123
giahy2507/convae
refs/heads/master
/preparedata4convae.py
__author__ = 'HyNguyen' from vector.wordvectors import WordVectors import time import numpy as np from gensim.models import word2vec from nltk.corpus import brown from nltk.corpus import treebank import nltk import xml.etree.ElementTree as ET import os import matplotlib.pyplot as plt def statistic_freq(): wor...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,124
giahy2507/convae
refs/heads/master
/summaryobject.py
__author__ = 'HyNguyen' import os import codecs import numpy as np import codecs from vector.wordvectors import WordVectors from convae import ConvolutionAutoEncoder import xml.etree.ElementTree as ET import nltk class Cluster(object): def __init__(self, cluster_id ,list_documents, list_references): self....
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,125
giahy2507/convae
refs/heads/master
/mmr/mmrelevance.py
__author__ = 'MichaelLe' from vector import * import numpy as np from numpy import linalg from sklearn.cluster import KMeans import networkx as nt def build_sim_matrix(senList, mode): ######################## # senList: list of sentence to build sim_matrix # ****** note: each element in senList must be ...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,126
giahy2507/convae
refs/heads/master
/vector/wordvectors.py
__author__ = 'HyNguyen' import numpy as np import time from gensim.models import word2vec import pickle import copy import os class WordVectors(object): def __init__(self, embsize, embed_matrix, word_index): self.embsize = embsize self.embed_matrix = embed_matrix self.word_index = word_inde...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,127
giahy2507/convae
refs/heads/master
/mmr/__init__.py
__author__ = 'MichaelLe'
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,128
giahy2507/convae
refs/heads/master
/caesummarizer.py
__author__ = 'HyNguyen' import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) import numpy as np from summaryobject import * from summary import summary as smr from vector.wordvectors import WordVectors from convae import ConvolutionAutoEncoder import cPickle import os class CAE...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,129
giahy2507/convae
refs/heads/master
/preparedata4convaewmpi.py
__author__ = 'HyNguyen' from vector.wordvectors import WordVectors import time import numpy as np from nltk.corpus import brown from nltk.corpus import treebank import nltk import xml.etree.ElementTree as ET import os import sys from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_si...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,130
giahy2507/convae
refs/heads/master
/vector/extractwordvectors.py
__author__ = 'HyNguyen' from wordvectors import WordVectors import time import numpy as np from gensim.models import word2vec from nltk.corpus import brown from nltk.corpus import treebank import nltk import xml.etree.ElementTree as ET import os import logging logging.basicConfig(level=logging.INFO) logger = loggin...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,131
giahy2507/convae
refs/heads/master
/mmr/main.py
__author__ = 'MichaelLe' import numpy as np import vector as vec from numpy import linalg import mmrelevance as mmr a = np.array([10,4,10]) b = np.array([1,3,13]) c = [] c.append(a) c.append(b) len_sen = np.array([3,3]) print (linalg.norm(a)) print mmr.summaryMMR12(c, len_sen,0.3, 5, 1)
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,132
giahy2507/convae
refs/heads/master
/submodular/vector.py
__author__ = 'MichaelLe' from numpy import * from numpy import linalg as LA def converArr(s): lenS = ceil(len(s)/2.0) a = zeros((1,lenS )) i=0 for c in s: if (c != ' '): a[0,i] = c i = i+1 return a def dotProduct(a, b): n = size(a,0) sum ...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,133
giahy2507/convae
refs/heads/master
/submodular/loadFile.py
__author__ = 'MichaelLe' import string import numpy import vector def loadfile(filename): f = open(filename,'r') a = [] for line in f: s = (str(line)) s = s.replace('\n','') a.append(vector.converArr(s)) return a
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,134
giahy2507/convae
refs/heads/master
/main.py
__author__ = 'HyNguyen' import numpy as np import os import xml.etree.ElementTree as ET import nltk if __name__ == "__main__": # DUC data folder_path = "/Users/HyNguyen/Documents/Research/Data/DUC20042005/duc2004/DUC2004_Summarization_Documents/duc2004_testdata/tasks1and2/duc2004_tasks1and2_docs/docs" cl...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,135
giahy2507/convae
refs/heads/master
/LayerClasses.py
import numpy as np from theano.tensor.nnet import conv import theano import theano.tensor as T from theano.tensor.signal import downsample # from tensorflow.examples.tutorials.mnist import input_data from theano.tensor import shared_randomstreams class MyConvLayer(object): def __init__(self, rng, image_shape, fil...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,136
giahy2507/convae
refs/heads/master
/submodular/submodular.py
__author__ = 'MichaelLe' import numpy as np import vector import copy # with S, V is the list of all sentence def SimMatrix(senList, mode): numSen = np.size(senList,0) simM = np.ones((numSen + 1, numSen)) for i in range(numSen): for j in range(i,numSen,1): simM[i,j] = v...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,137
giahy2507/convae
refs/heads/master
/convae.py
__author__ = 'HyNguyen' import theano import theano.tensor as T import numpy as np from LayerClasses import MyConvLayer,FullConectedLayer import cPickle import os import sys from lasagne.updates import adam,rmsprop,adadelta def load_np_data(path, onehost = False): data = np.load(path) valid_size = int(data.s...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,138
giahy2507/convae
refs/heads/master
/summary/kmean_sum.py
__author__ = 'MichaelLe' import numpy as np import math from sklearn.cluster import KMeans def kmean_summary(V,len_sen_mat, max_word): ''' parameter: --------- V: List of vector sentence representation len_sen_mat: matrix of length of all sentences in V max_word: max of word in su...
{"/convaeclassification.py": ["/LayerClasses.py"], "/mulNN.py": ["/LayerClasses.py"], "/summary/summary.py": ["/mmr/__init__.py"], "/summaryobject.py": ["/vector/wordvectors.py", "/convae.py"], "/convae.py": ["/LayerClasses.py"]}
8,147
stats94/championship-bot
refs/heads/master
/config.py
api_key = **APIKEY** endpoint = 'https://api-football-v1.p.rapidapi.com' league_id = 565
{"/api_service.py": ["/config.py"], "/bot.py": ["/api_service.py", "/config.py"]}
8,148
stats94/championship-bot
refs/heads/master
/api_service.py
import requests; import config; class api_service: endpoint = config.endpoint api_key = config.api_key def get(self, url): response = requests.get(url, headers={'X-RapidAPI-Key': self.api_key}) ''' api element is just a wrapper. api: { results:...
{"/api_service.py": ["/config.py"], "/bot.py": ["/api_service.py", "/config.py"]}
8,149
stats94/championship-bot
refs/heads/master
/bot.py
from api_service import api_service import config class bot: api_service = api_service() league_id = config.league_id def build_table(self): # The standings array is wrapped in another array table_data = self.api_service.get_table(self.league_id)[0] headers = '|Pos|Team|Pl|W|D|L|F...
{"/api_service.py": ["/config.py"], "/bot.py": ["/api_service.py", "/config.py"]}
8,150
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/admin.py
from django.contrib import admin # Register your models here. from news.models import New class NewAdmin(admin.ModelAdmin): model = New list_display = ['id', 'title', 'created_at', 'is_enabled'] admin.site.register(New, NewAdmin)
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,151
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/accounts/migrations/0004_auto_20170520_2113.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-21 02:13 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_auto_20170520_2112'), ] operations = [ migrations.AlterModelOptions(...
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,152
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/paginations.py
from rest_framework.pagination import PageNumberPagination __author__ = 'lucaru9' class StandardResultsSetPagination(PageNumberPagination): page_size = 5
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,153
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-21 00:28 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='New', ...
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,154
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py
from django.db import models # Create your models here. class New(models.Model): created_at = models.DateTimeField(auto_now_add=True, verbose_name='Fecha de creación') updated_at = models.DateTimeField(auto_now=True) title = models.CharField(max_length=300, verbose_name='Título') sub_title = models.Ch...
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,155
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py
from .models import New __author__ = 'lucaru9' from rest_framework import serializers class ListNewSerializer(serializers.ModelSerializer): class Meta: model = New fields = ('created_at', 'updated_at', 'title', 'sub_title', 'body', 'image', 'is_enabled')
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,156
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py
__author__ = 'lucaru9' from django.conf.urls import url from .views import * urlpatterns = [ url(r'^news/$', ListNewsAPI.as_view()), ]
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,157
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py
from rest_framework.generics import ListAPIView from rest_framework.permissions import AllowAny from .models import New from .paginations import StandardResultsSetPagination from .serializers import ListNewSerializer class ListNewsAPI(ListAPIView): serializer_class = ListNewSerializer authentication_classes =...
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,158
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/migrations/0003_auto_20170520_1955.py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-21 00:55 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('news', '0002_auto_20170520_1950'), ] operations = [ migrations.AlterField( ...
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,159
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/accounts/models.py
from django.contrib.auth.models import PermissionsMixin, BaseUserManager, \ AbstractBaseUser from django.db import models class UserManager(BaseUserManager): def _create_user(self, email, password, is_staff, is_superuser, **extra_fields): user = self.model(email=email, is_active=T...
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,160
WilsonJulcaMejia/GrupoRPP
refs/heads/master
/Libreria de trabajo/AINNI/Implementacion/Back/rpp/accounts/urls.py
from django.core.urlresolvers import reverse, reverse_lazy from django.conf.urls import url from .views import * urlpatterns = [ ]
{"/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/serializers.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/models.py"], "/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/urls.py": ["/Libreria de trabajo/AINNI/Implementacion/Back/rpp/news/views.py"], "/Libreria de trabajo/AINNI/Implement...
8,161
boubakersalmi/projet6
refs/heads/master
/main.py
## debut du code partie principale intégrant la POO ## les fonctions appelés ci-dessous sont importées du fichier main.py ## cette partie du programme n'intègre pas de fonctionnalités graphique ## Dans un premier temps, nous importons les fonctions programmées dans main.py ## afin de les intégrer dans la classe Action...
{"/main.py": ["/setting.py"]}
8,162
boubakersalmi/projet6
refs/heads/master
/setting.py
## ce programme est réalisé sur python 3.7, certains points doivent être adaptés aux versions antérieures de pytho## ## ## DEBUT DU PROGRAMME ## Import des modules nécessaires à l'execution du programme import os import json import glob import ctypes import time import logging import sys import csv import socket ...
{"/main.py": ["/setting.py"]}
8,163
fanout/headline
refs/heads/master
/headlineapp/apps.py
from django.apps import AppConfig class HeadlineappConfig(AppConfig): name = 'headlineapp'
{"/headlineapp/views.py": ["/headlineapp/models.py"]}
8,164
fanout/headline
refs/heads/master
/headlineapp/urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.base, name='base'), path('<int:headline_id>/', views.item, name='item'), ]
{"/headlineapp/views.py": ["/headlineapp/models.py"]}
8,165
fanout/headline
refs/heads/master
/headlineapp/models.py
from django.db import models class Headline(models.Model): type = models.CharField(max_length=64) title = models.CharField(max_length=200) text = models.TextField() date = models.DateTimeField(auto_now=True) def to_data(self): out = {} out['id'] = str(self.id) out['type'] =...
{"/headlineapp/views.py": ["/headlineapp/models.py"]}
8,166
fanout/headline
refs/heads/master
/headlineapp/views.py
import json import calendar from django.http import HttpResponse, HttpResponseRedirect, \ HttpResponseNotModified, HttpResponseNotAllowed from django.shortcuts import get_object_or_404 from gripcontrol import HttpResponseFormat, HttpStreamFormat, \ WebSocketMessageFormat from django_grip import set_hold_longpol...
{"/headlineapp/views.py": ["/headlineapp/models.py"]}
8,168
sstollenwerk/roguelike_learn
refs/heads/main
/entity.py
from dataclasses import dataclass, asdict, replace from actions import EscapeAction, MovementAction from basic_types import Color @dataclass class Entity: x: int y: int string: str # len == 1 fg: Color def move(self, action: MovementAction): ##return replace(self, x=self.x + action.dx, ...
{"/entity.py": ["/basic_types.py"], "/tile_types.py": ["/basic_types.py"], "/engine.py": ["/entity.py"]}
8,169
sstollenwerk/roguelike_learn
refs/heads/main
/tile_types.py
import numpy as np # type: ignore from basic_types import Color, graphic_dt, tile_dt def new_tile( *, # Enforce the use of keywords, so that parameter order doesn't matter. walkable: bool, transparent: bool, dark: tuple[int, Color, Color], ) -> np.ndarray: """Helper function for defining indivi...
{"/entity.py": ["/basic_types.py"], "/tile_types.py": ["/basic_types.py"], "/engine.py": ["/entity.py"]}
8,170
sstollenwerk/roguelike_learn
refs/heads/main
/engine.py
from typing import Iterable, Any from dataclasses import dataclass, asdict from tcod.context import Context from tcod.console import Console from actions import EscapeAction, MovementAction from entity import Entity from input_handlers import EventHandler from game_map import GameMap class Engine: def __init__(...
{"/entity.py": ["/basic_types.py"], "/tile_types.py": ["/basic_types.py"], "/engine.py": ["/entity.py"]}
8,171
sstollenwerk/roguelike_learn
refs/heads/main
/basic_types.py
import numpy as np # type: ignore Color = tuple[int, int, int] # Tile graphics structured type compatible with Console.tiles_rgb. graphic_dt = np.dtype( [ ("ch", np.int32), # Unicode codepoint. ("fg", "3B"), # 3 unsigned bytes, for RGB colors. ("bg", "3B"), ] ) # Tile struct used...
{"/entity.py": ["/basic_types.py"], "/tile_types.py": ["/basic_types.py"], "/engine.py": ["/entity.py"]}
8,183
alexseitsinger/django-rest-framework-expandable
refs/heads/master
/src/rest_framework_expandable/serializers.py
from rest_framework.serializers import ModelSerializer, HyperlinkedModelSerializer from .mixins.expandable_model_serializer import ExpandableModelSerializerMixin class ExpandableHyperlinkedModelSerializer( ExpandableModelSerializerMixin, HyperlinkedModelSerializer ): pass class ExpandableModelSerializer(Exp...
{"/src/rest_framework_expandable/serializers.py": ["/src/rest_framework_expandable/mixins/expandable_model_serializer.py"], "/src/rest_framework_expandable/mixins/expandable_related_field.py": ["/src/rest_framework_expandable/mixins/expandable.py", "/src/rest_framework_expandable/utils.py"], "/src/rest_framework_expand...
8,184
alexseitsinger/django-rest-framework-expandable
refs/heads/master
/src/rest_framework_expandable/utils.py
import re from django.db.models import Manager from django.db.models.query import QuerySet def get_class_name(obj=None): # Get name of parent object. if obj is None: return "Unnamed" else: return obj.__class__.__name__ class HashableList(list): def __hash__(self): return id(s...
{"/src/rest_framework_expandable/serializers.py": ["/src/rest_framework_expandable/mixins/expandable_model_serializer.py"], "/src/rest_framework_expandable/mixins/expandable_related_field.py": ["/src/rest_framework_expandable/mixins/expandable.py", "/src/rest_framework_expandable/utils.py"], "/src/rest_framework_expand...
8,185
alexseitsinger/django-rest-framework-expandable
refs/heads/master
/src/rest_framework_expandable/mixins/expandable_related_field.py
from rest_framework.relations import ManyRelatedField from django.db.models import Manager from django.db.models.query import QuerySet from django.utils.module_loading import import_string from .expandable import ExpandableMixin from ..utils import ( get_object, get_class_name, get_path_parts, DictDiff...
{"/src/rest_framework_expandable/serializers.py": ["/src/rest_framework_expandable/mixins/expandable_model_serializer.py"], "/src/rest_framework_expandable/mixins/expandable_related_field.py": ["/src/rest_framework_expandable/mixins/expandable.py", "/src/rest_framework_expandable/utils.py"], "/src/rest_framework_expand...
8,186
alexseitsinger/django-rest-framework-expandable
refs/heads/master
/src/rest_framework_expandable/mixins/expandable.py
from ..utils import sort_field_paths class ExpandableMixin(object): model_name = None query_param = "expand" expanded_fields = None @property def request(self): """ Returns the current request context passed from DRF. """ context = getattr(self, "context", None) ...
{"/src/rest_framework_expandable/serializers.py": ["/src/rest_framework_expandable/mixins/expandable_model_serializer.py"], "/src/rest_framework_expandable/mixins/expandable_related_field.py": ["/src/rest_framework_expandable/mixins/expandable.py", "/src/rest_framework_expandable/utils.py"], "/src/rest_framework_expand...
8,187
alexseitsinger/django-rest-framework-expandable
refs/heads/master
/src/rest_framework_expandable/fields.py
from rest_framework.serializers import SlugRelatedField, HyperlinkedRelatedField from .mixins.expandable_related_field import ExpandableRelatedFieldMixin class ExpandableHyperlinkedRelatedField( ExpandableRelatedFieldMixin, HyperlinkedRelatedField, ): pass class ExpandableSlugRelatedField(ExpandableRela...
{"/src/rest_framework_expandable/serializers.py": ["/src/rest_framework_expandable/mixins/expandable_model_serializer.py"], "/src/rest_framework_expandable/mixins/expandable_related_field.py": ["/src/rest_framework_expandable/mixins/expandable.py", "/src/rest_framework_expandable/utils.py"], "/src/rest_framework_expand...
8,188
alexseitsinger/django-rest-framework-expandable
refs/heads/master
/src/rest_framework_expandable/mixins/expandable_model_serializer.py
from django.db.models import Manager from rest_framework.relations import ManyRelatedField from .expandable import ExpandableMixin from .expandable_related_field import ExpandableRelatedFieldMixin from rest_framework_helpers.mixins import RepresentationMixin class ExpandableModelSerializerMixin(RepresentationMixin, ...
{"/src/rest_framework_expandable/serializers.py": ["/src/rest_framework_expandable/mixins/expandable_model_serializer.py"], "/src/rest_framework_expandable/mixins/expandable_related_field.py": ["/src/rest_framework_expandable/mixins/expandable.py", "/src/rest_framework_expandable/utils.py"], "/src/rest_framework_expand...
8,199
samueltenka/LearnToHack-Compiler
refs/heads/master
/Parser.py
import EnsureVersion3 def is_number(string): return string and (string[0] in '0123456789.') def is_identifier(string): return string and (string[0] in 'abcdefghijklmnopqrstuvwxyz') class Parser: def __init__(self, program_text): self.tokenized = program_text.split() self.index = 0 self.vari...
{"/ParserTest.py": ["/Parser.py"], "/MachineTest.py": ["/Machine.py"]}
8,200
samueltenka/LearnToHack-Compiler
refs/heads/master
/ParserTest.py
from Parser import Parser program = '1 * ( 2 + 3 * 4 + 5 ) + 6 * 7' P = Parser(program) P.match_expression() P.write_constants_table() for mc in P.machine_code: print(mc)
{"/ParserTest.py": ["/Parser.py"], "/MachineTest.py": ["/Machine.py"]}
8,201
samueltenka/LearnToHack-Compiler
refs/heads/master
/Machine.py
#Michigan Hackers Presentation on Compilers import EnsureVersion3 ''' instructions: load A B R[B] <-- M[R[A]] store A B R[B] --> M[R[A]] copy A B R[B] <-- R[A] set A B B --> R[A] branchif0 A B PC <-- R[A] if R[B]==0 branchifneg A B PC <-- R[A] if R[B] < 0 jump A B PC <-- R...
{"/ParserTest.py": ["/Parser.py"], "/MachineTest.py": ["/Machine.py"]}
8,202
samueltenka/LearnToHack-Compiler
refs/heads/master
/MachineTest.py
import Machine def readfile(filename): with open(filename,'r') as f: return f.read() lines = readfile('MachineCode01.test').strip().split('\n') lines = [l.split('#')[0].strip() for l in lines] #remove line-comments such as this one print(lines) num_registers, num_addresses = lines[0].split() M = Machine.M...
{"/ParserTest.py": ["/Parser.py"], "/MachineTest.py": ["/Machine.py"]}
8,203
samueltenka/LearnToHack-Compiler
refs/heads/master
/PrettyPrint.py
def pretty_print(string, minlen=10): if type(string) in [type(0), type(0.0)] or ' ' not in string: string = str(round(float(string),4)) else: string = string[:3] + ';'.join(string.split(' ')[1:]) return string+' '*(minlen-len(string))
{"/ParserTest.py": ["/Parser.py"], "/MachineTest.py": ["/Machine.py"]}
8,204
samueltenka/LearnToHack-Compiler
refs/heads/master
/NumberedTextboxTest.py
''' Thanks to Robert@pytrash (see link below) http://tk.unpythonic.net/wiki/A_Text_Widget_with_Line_Numbers ''' import tkinter as tk import NumberedTextbox root = tk.Tk() def demo(noOfLines): pane = tk.PanedWindow(root, orient=tk.HORIZONTAL, opaqueresize=True) ed = NumberedTextbox.EditorClass(root) pane....
{"/ParserTest.py": ["/Parser.py"], "/MachineTest.py": ["/Machine.py"]}
8,217
phihhim/acu-sdk
refs/heads/main
/setup.py
import setuptools setuptools.setup( name="acunetix", version = "0.0.1", packages = ["acunetix"], )
{"/acunetix/model.py": ["/acunetix/api_call.py"], "/acunetix/acunetix.py": ["/acunetix/api_call.py", "/acunetix/model.py"]}
8,218
phihhim/acu-sdk
refs/heads/main
/acunetix/model.py
from .api_call import APICall class Target: def __init__(self, id, address, description="", criticality=10, continuous_mode=False, manual_intervention=None, type=None,verification=None, status=None, scans=[]): self.id = id self.address = address self.description = description ...
{"/acunetix/model.py": ["/acunetix/api_call.py"], "/acunetix/acunetix.py": ["/acunetix/api_call.py", "/acunetix/model.py"]}
8,219
phihhim/acu-sdk
refs/heads/main
/acunetix/api_call.py
import requests import json import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class APICall: def __init__(self, api, token): self.apibase = api self.apikey = token self.headers = { "X-Auth": self.apikey, "content-type": "application...
{"/acunetix/model.py": ["/acunetix/api_call.py"], "/acunetix/acunetix.py": ["/acunetix/api_call.py", "/acunetix/model.py"]}
8,220
phihhim/acu-sdk
refs/heads/main
/acunetix/acunetix.py
from .api_call import APICall from .model import Target, Scan, Result, Vulnerability, Location import re import json from pprint import pprint class Acunetix: def __init__(self, api: str, token: str): self.api = api self.token = token def __str__(self): return f'Acunetix: {self.api} tok...
{"/acunetix/model.py": ["/acunetix/api_call.py"], "/acunetix/acunetix.py": ["/acunetix/api_call.py", "/acunetix/model.py"]}
8,228
marty-Wallace/FibbonacciServer
refs/heads/master
/Fibonacci/fib_server.py
from socketserver import ThreadingMixIn, TCPServer, BaseRequestHandler class FibonacciThreadedTCPServer(ThreadingMixIn, TCPServer): """ FibonacciThreadedTCPServer used to serve concurrent TCP requests for a fibonacci number. The server holds the lookup table fib_dict shared by each instance of Fibonac...
{"/example_client.py": ["/Fibonacci/__init__.py"], "/example_server.py": ["/Fibonacci/__init__.py"], "/Fibonacci/__init__.py": ["/Fibonacci/fib_server.py", "/Fibonacci/fib_client.py"]}
8,229
marty-Wallace/FibbonacciServer
refs/heads/master
/Fibonacci/fib_client.py
import socket import sys import getopt from threading import Thread from random import randint class FibClient(object): """ Base Class for the AutoClient and HumanClient to extend from. Implements some of the shared methods/attributes """ def __init__(self, ip, port): self.ip = ip sel...
{"/example_client.py": ["/Fibonacci/__init__.py"], "/example_server.py": ["/Fibonacci/__init__.py"], "/Fibonacci/__init__.py": ["/Fibonacci/fib_server.py", "/Fibonacci/fib_client.py"]}
8,230
marty-Wallace/FibbonacciServer
refs/heads/master
/example_client.py
from Fibonacci import HumanClient, AutoClient ''' Example file showing how to use and how to test out the Fibonacci client ''' ip = 'localhost' port = int(input('Please enter the port number of the Fibonacci server: ')) test_auto = True if test_auto: client = AutoClient(ip, port) client.connect(num_threads=...
{"/example_client.py": ["/Fibonacci/__init__.py"], "/example_server.py": ["/Fibonacci/__init__.py"], "/Fibonacci/__init__.py": ["/Fibonacci/fib_server.py", "/Fibonacci/fib_client.py"]}
8,231
marty-Wallace/FibbonacciServer
refs/heads/master
/example_server.py
from Fibonacci import FibonacciThreadedTCPServer ''' Example file showing how to use the Fibonacci server ''' address = ('localhost', 0) server = FibonacciThreadedTCPServer(address) print(server.server_address) server.serve_forever()
{"/example_client.py": ["/Fibonacci/__init__.py"], "/example_server.py": ["/Fibonacci/__init__.py"], "/Fibonacci/__init__.py": ["/Fibonacci/fib_server.py", "/Fibonacci/fib_client.py"]}
8,232
marty-Wallace/FibbonacciServer
refs/heads/master
/Fibonacci/__init__.py
from .fib_server import * from .fib_client import * __all__ = [FibonacciThreadedTCPServer, AutoClient, HumanClient]
{"/example_client.py": ["/Fibonacci/__init__.py"], "/example_server.py": ["/Fibonacci/__init__.py"], "/Fibonacci/__init__.py": ["/Fibonacci/fib_server.py", "/Fibonacci/fib_client.py"]}
8,234
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0008_remove_book_owners.py
# Generated by Django 2.1.4 on 2018-12-25 13:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20181225_1256'), ] operations = [ migrations.RemoveField( model_name='book', name='owners', ), ...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,235
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0003_auto_20181224_1059.py
# Generated by Django 2.1.4 on 2018-12-24 07:59 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0002_book_users_like'), ] operations = [ migrations.AlterField( model_name='book', ...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,236
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0011_auto_20181227_1502.py
# Generated by Django 2.1.4 on 2018-12-27 12:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0010_remove_book_quantity'), ] operations = [ migrations.AddField(...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,237
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/models.py
from django.conf import settings from django.db import models from django.urls import reverse # Create your models here. class Author(models.Model): first_name = models.CharField(blank=False, null=False, max_length=100, verbose_name="Имя") patronymic = models.CharField(blank=True, max_length=50, verbose_name=...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,238
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0010_remove_book_quantity.py
# Generated by Django 2.1.4 on 2018-12-25 20:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0009_book_quantity'), ] operations = [ migrations.RemoveField( model_name='book', name='quantity', ), ]
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,239
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0007_auto_20181225_1256.py
# Generated by Django 2.1.4 on 2018-12-25 09:56 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0006_auto_20181225_1256'), ] operations = [ migrations.RenameField( model_name='book', old_name='quantity', ...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,240
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0004_auto_20181224_1100.py
# Generated by Django 2.1.4 on 2018-12-24 08:00 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0003_auto_20181224_1059'), ] operations = [ migrations.AlterField( model_name='book', ...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,241
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/account/models.py
from django.conf import settings from django.db import models from core.models import Book # Create your models here. class Profile(models.Model): user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE,verbose_name="Юзер") date_of_birth = models.DateFie...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,242
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/views.py
from account.models import Profile from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import get_object_or_404 from django.views.generic import ListView, DetailView, RedirectView, CreateView, UpdateView,DeleteView from django.urls import reverse_lazy from .forms import BookForm from .models...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,243
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/urls.py
from django.urls import path from . import views app_name = 'core' urlpatterns = [ path('', views.BooksView.as_view(), name='list'), path('<int:pk>/like', views.BookLikeToggle.as_view(), name='like-toggle'), path('api/<int:pk>/like', views.BookLikeAPIToggle.as_view(), name='like-api-toggle'), path('a...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,244
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/account/migrations/0003_auto_20181227_1502.py
# Generated by Django 2.1.4 on 2018-12-27 12:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('account', '0002_profile_my_books'), ] operations = [ migrations.AlterField...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,245
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/account/migrations/0002_profile_my_books.py
# Generated by Django 2.1.4 on 2018-12-25 10:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0007_auto_20181225_1256'), ('account', '0001_initial'), ] operations = [ migrations.AddField( model_name='profil...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,246
Alexxxtentancion/django-library-service
refs/heads/master
/BookShop/core/migrations/0006_auto_20181225_1256.py
# Generated by Django 2.1.4 on 2018-12-25 09:56 from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core', '0005_book_quantity'), ] operations = [ ...
{"/BookShop/core/views.py": ["/BookShop/core/models.py"]}
8,251
eekhait/1008_Project
refs/heads/master
/lrt_adj.py
import pandas as pd import csv import math import main_graph as m_graph lrtData = pd.read_csv('Punggol_LRT_Routing.csv', sep=',', header=None) def round_up(n, decimals=0): # this is to round up even is 0.1 above multiplier = 10 ** decimals return math.ceil(n * multiplier) / multiplier def bfs_route(gr...
{"/lrt_adj.py": ["/main_graph.py"], "/map.py": ["/main_graph.py", "/bus_adj.py", "/lrt_adj.py"], "/bus_adj.py": ["/main_graph.py"]}
8,252
eekhait/1008_Project
refs/heads/master
/main_graph.py
import pandas as pd # THIS PART CONCERNS WITH: # THE CSV FILES AND EXTRACTING DATA FROM THEM # --------------------------------- # # Indexes of the Complete_Punggol_Graph.csv file: # Columns: 0-Code, 1-Name, 2-Type, 3-Latitude, 4-Longitude, 5-Buses, 6-ConnectedWalks, 7-ConnectedDistances # Columns: 8-1197 to refer to...
{"/lrt_adj.py": ["/main_graph.py"], "/map.py": ["/main_graph.py", "/bus_adj.py", "/lrt_adj.py"], "/bus_adj.py": ["/main_graph.py"]}
8,253
eekhait/1008_Project
refs/heads/master
/oldfiles/DistanceTabulator.py
import pandas as pd from geopy.distance import geodesic # Take note: # Latitude is vertical (How 'north-south' a place is) # Longitude is horizontal (How 'east-west' a place is) distance_table = pd.read_csv("Punggol Coordinates.csv", header=None) # to mimic cell selection in pandas dataframe, for iteration # iloc[hor...
{"/lrt_adj.py": ["/main_graph.py"], "/map.py": ["/main_graph.py", "/bus_adj.py", "/lrt_adj.py"], "/bus_adj.py": ["/main_graph.py"]}
8,254
eekhait/1008_Project
refs/heads/master
/oldfiles/LRT_Algorithm.py
from collections import deque import csv class Graph: def __init__(self, lists): self.lists = lists def get_neighbours(self, i): return self.lists[i] import csv cove_lrt, meridian_lrt, coraledge_lrt, riviera_lrt, kadaloor_lrt, oasis_lrt, damai_lrt, punggol_lrt, samkee_lrt, tecklee_lr...
{"/lrt_adj.py": ["/main_graph.py"], "/map.py": ["/main_graph.py", "/bus_adj.py", "/lrt_adj.py"], "/bus_adj.py": ["/main_graph.py"]}
8,255
eekhait/1008_Project
refs/heads/master
/map.py
import folium import io import sys import main_graph as m_graph import bus_adj as bus_graph import lrt_adj as lrt_graph import pandas as pd from PyQt5 import QtWidgets, QtWebEngineWidgets import csv # ---------------------------------- # THIS PART CONCERNS WITH UI # EVERYTHING COMES TOGETHER HERE # -------------------...
{"/lrt_adj.py": ["/main_graph.py"], "/map.py": ["/main_graph.py", "/bus_adj.py", "/lrt_adj.py"], "/bus_adj.py": ["/main_graph.py"]}
8,256
eekhait/1008_Project
refs/heads/master
/bus_adj.py
import pandas as pd import main_graph as m_graph import csv import sys import math import numpy as np # Columns: 0-Code, ....... pending busData = pd.read_csv('Punggol_Bus_Routing.csv', sep=',', header=None) # Columns: 0-Code, ....... pending busData2 = pd.read_csv('Punggol_Bus_Routing_Type2.csv', sep=',',header=None...
{"/lrt_adj.py": ["/main_graph.py"], "/map.py": ["/main_graph.py", "/bus_adj.py", "/lrt_adj.py"], "/bus_adj.py": ["/main_graph.py"]}
8,266
owenvvv/Steam_helper
refs/heads/master
/steam-scraper/test.py
from scrapy.loader.processors import Compose, Join, MapCompose, TakeFirst import pandas as pd """ pipi = Compose(lambda x: x[0], str.upper) print(pipi(['iss', 'nus', 'mtech', 'ebac'])) pipi = MapCompose(lambda x: x[0], str.upper) print(pipi(['iss', 'nus', 'mtech', 'ebac'])) """ steam_id = pd.read_csv("D:\\NUS BA\\clas...
{"/main.py": ["/intention.py"], "/intention.py": ["/slotfiller.py", "/recommendegine.py"]}
8,267
owenvvv/Steam_helper
refs/heads/master
/recommendegine.py
import pickle as pk import pandas as pd import pandas as pd import numpy as np import nltk from nltk.corpus import stopwords from nltk.tokenize import word_tokenize from nltk import pos_tag from pytorch_pretrained_bert import BertTokenizer, BertModel, BertForMaskedLM from scipy.spatial.distance import cosine import tor...
{"/main.py": ["/intention.py"], "/intention.py": ["/slotfiller.py", "/recommendegine.py"]}
8,268
owenvvv/Steam_helper
refs/heads/master
/main.py
import json from flask import Flask, request,render_template from geventwebsocket.handler import WebSocketHandler from gevent.pywsgi import WSGIServer import intention helper_session = [] app = Flask(__name__) @app.route('/msg') def msg(): global helper_session # user_socker = request.environ.get('wsgi...
{"/main.py": ["/intention.py"], "/intention.py": ["/slotfiller.py", "/recommendegine.py"]}
8,269
owenvvv/Steam_helper
refs/heads/master
/slotfiller.py
import pycrfsuite import en_core_web_sm import nltk wnl = nltk.WordNetLemmatizer() nlp = en_core_web_sm.load() def input_prep(text): data_List = [] for sequence in text: wordList=[] posList=[] tagList = [] sentlist=[] text = sequence.strip().lower() tokens = nl...
{"/main.py": ["/intention.py"], "/intention.py": ["/slotfiller.py", "/recommendegine.py"]}
8,270
owenvvv/Steam_helper
refs/heads/master
/intention.py
import pandas as pd import pickle as pk import re import random from nltk.tokenize import word_tokenize, sent_tokenize import slotfiller as sf import nltk wnl = nltk.WordNetLemmatizer() from nltk.corpus import stopwords mystopwords = stopwords.words("english") import recommendegine model_filename = 'model/intent_SGD...
{"/main.py": ["/intention.py"], "/intention.py": ["/slotfiller.py", "/recommendegine.py"]}