index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
59,315
MareShae/BattleSnake
refs/heads/main
/NeuralEvolution.py
""" General Information: It starts out with the simple Input & Output Layers. Random mutations occur for the given genome and they are tested with the fitness function. The best out of the mutations get to further develop/mutate their genes and progress. All Neurons can mutate. Given a Neuron & its Links it can: ...
{"/Agent.py": ["/tAssist.py", "/VEnv.py"], "/server.py": ["/tAssist.py", "/VEnv.py", "/Agent.py"], "/VEnv.py": ["/tAssist.py"], "/tAssist.py": ["/NeuralFunctions.py", "/NeuralEvolution.py"], "/NeuralEvolution.py": ["/NeuralFunctions.py"]}
59,316
MareShae/BattleSnake
refs/heads/main
/NeuralFunctions.py
import numpy import random from math import exp from copy import deepcopy # STATIC FUNCTIONS def Round(val): return int(round(val)) def RoundList(image): reImage = [] for val in image: reImage.append(Round(val)) return reImage def Decimal(value, decimalPoints=5): value = format(value, '...
{"/Agent.py": ["/tAssist.py", "/VEnv.py"], "/server.py": ["/tAssist.py", "/VEnv.py", "/Agent.py"], "/VEnv.py": ["/tAssist.py"], "/tAssist.py": ["/NeuralFunctions.py", "/NeuralEvolution.py"], "/NeuralEvolution.py": ["/NeuralFunctions.py"]}
59,317
Baichenjia/DRAW_RNN_ImageGeneration
refs/heads/master
/test.py
import tensorflow as tf tf.enable_eager_execution() import matplotlib.pyplot as plt import numpy as np from DRAW import Draw # 引入模型 model = Draw() cs,_,_,_,_ = model.predict(tf.convert_to_tensor(np.random.random((100, 28*28)).astype(np.float32))) assert cs[0].shape == (100, 28*28) # load_weights print("----------\...
{"/test.py": ["/DRAW.py"]}
59,318
Baichenjia/DRAW_RNN_ImageGeneration
refs/heads/master
/DRAW.py
# -*- coding: utf-8 -*- import tensorflow as tf tf.enable_eager_execution() import tensorflow.contrib.eager as tfe import numpy as np import os ## MODEL PARAMETERS img_size = 28*28 # the canvas size enc_size = 256 # number of hidden units / output size in LSTM dec_size = 256 read_size = 2*img_s...
{"/test.py": ["/DRAW.py"]}
59,320
theo-pannethier/Cs_Dev_Space_Invader
refs/heads/master
/principal.py
""" Programme gerant la partie graphique. ToDo: -faire le bouton qui relance la partie ~ -alien special -vie vaisseau -score Theo Pannethier / Jeffrey Simon 17/01/2021 """ import tkinter as tk from random import randint score=10 score= str(score) from tkinter import Tk,Button,Frame,PhotoImage,Canva...
{"/tire.py": ["/vaisseau.py", "/ilot.py"], "/alien.py": ["/vaisseau.py"], "/programeGlobal.py": ["/vaisseau.py", "/ilot.py", "/alien.py", "/tire.py"]}
59,321
theo-pannethier/Cs_Dev_Space_Invader
refs/heads/master
/vaisseau.py
# -*- coding: utf-8 -*- """ Programme contenant la classe vaisseau celle-ci permet le deplacemnt, le tire, et la destruction du vaissseau ToDo: -vie du vaisseau Theo Pannethier / Jeffrey Simon 17/01/2021 """ import tkinter as tk class vaisseau2(tk.Tk): """classe gerant le vaisseau et sa dynamique""" ...
{"/tire.py": ["/vaisseau.py", "/ilot.py"], "/alien.py": ["/vaisseau.py"], "/programeGlobal.py": ["/vaisseau.py", "/ilot.py", "/alien.py", "/tire.py"]}
59,322
theo-pannethier/Cs_Dev_Space_Invader
refs/heads/master
/tire.py
# -*- coding: utf-8 -*- """ Programme contenant la classe tirer et ainsi permettant le deplacement du missile, ainsi que ses effets sur son environement (destruction des ilots ou du vaisseau et autodestruction en cas de sorti du canva ) ToDo: -regler le probleme du 'kernel died' probablement lié aux performances ...
{"/tire.py": ["/vaisseau.py", "/ilot.py"], "/alien.py": ["/vaisseau.py"], "/programeGlobal.py": ["/vaisseau.py", "/ilot.py", "/alien.py", "/tire.py"]}
59,323
theo-pannethier/Cs_Dev_Space_Invader
refs/heads/master
/ilot.py
# -*- coding: utf-8 -*- """ Programme contenant la classe ilot et ainsi permettant la creationet la gestion de la vie des ilots ToDo: Theo Pannethier / Jeffrey Simon 17/01/2021 """ import tkinter as tk class ilot(tk.Tk): """classe permettant l'apparition de bloc""" def __init__(self,canva): ...
{"/tire.py": ["/vaisseau.py", "/ilot.py"], "/alien.py": ["/vaisseau.py"], "/programeGlobal.py": ["/vaisseau.py", "/ilot.py", "/alien.py", "/tire.py"]}
59,324
theo-pannethier/Cs_Dev_Space_Invader
refs/heads/master
/alien.py
# -*- coding: utf-8 -*- """ Programme contenant la classe alien et ainsi permettant le tire sans deplacement du missile, le deplacement des aliens, et leur destruction ToDo: Theo Pannethier / Jeffrey Simon 17/01/2021 """ import tkinter as tk from vaisseau import vaisseau2 class Alien(tk.Tk): """classe ...
{"/tire.py": ["/vaisseau.py", "/ilot.py"], "/alien.py": ["/vaisseau.py"], "/programeGlobal.py": ["/vaisseau.py", "/ilot.py", "/alien.py", "/tire.py"]}
59,325
theo-pannethier/Cs_Dev_Space_Invader
refs/heads/master
/programeGlobal.py
# -*- coding: utf-8 -*- """ Programme gerant la partie graphique ainsi que le lancement du programme. Ne marche qu'en partie peut etre à cause d'un probleme de preformance. ToDo: -regler le probleme 'kernel died' Theo Pannethier / Jeffrey Simon 17/01/2021 """ filin = open("information.txt", "r") filin from vais...
{"/tire.py": ["/vaisseau.py", "/ilot.py"], "/alien.py": ["/vaisseau.py"], "/programeGlobal.py": ["/vaisseau.py", "/ilot.py", "/alien.py", "/tire.py"]}
59,334
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/vdjango/blog/posts/admin.py
from django.contrib import admin from .models import Post class PostAdmin(admin.ModelAdmin): list_display = ('id', 'titulo_post', 'autor_post', 'data_post', 'categoria_post', 'publicado_post') list_editable = ('publicado_post',) list_display_links = ('id', 'titulo_post',) summernot...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,335
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/agenda/accounts/views.py
from django.shortcuts import render, redirect from django.contrib import messages, auth from django.core.validators import validate_email from django.contrib.auth.models import User # para verificar se existe no sistema um usuario ja cadastrado from django.contrib.auth.decorators import login_required from .models imp...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,336
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/agenda/contatos/models.py
from django.db import models from django.utils import timezone # colocar o comando no terminal(dentro do pycharm ou do projeto) # para que as alterações feitas no banco de dados sejam migradas # = python manage.py makemigrations class Categoria(models.Model): nome = models.CharField(max_length=255) def _...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,337
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/agenda/accounts/models.py
from django.db import models from contatos.models import Contato from django import forms class FormContato(forms.ModelForm): class Meta: model = Contato # qual modelo esse formulario esta representando exclude = () # se irao ter campos que nao devem aparecer no template renderizado
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,338
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/agenda/contatos/views.py
from django.shortcuts import render, get_object_or_404, redirect from django.http import Http404 from .models import Contato from django.core.paginator import Paginator from django.db.models import Q, Value from django.db.models.functions import Concat from django.contrib import messages def index(request): conta...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,339
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/BlogDjango/posts/views.py
from django.shortcuts import render, redirect, get_object_or_404 from django.views.generic.list import ListView from django.views.generic.edit import UpdateView from .models import Post from django.db.models import Q, Count, Case, When from categoria.models import Categoria from comentarios.forms import FormComentario,...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,340
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/vdjango/blog/posts/templatetags/afilters.py
from django import template register = template.Library() @register.filter() def plural_comentarios(num_coment): try: num_coment = int(num_coment) if num_coment == 0: return f'Nenhum comentario' elif num_coment == 1: return f'{num_coment} comentario' else: ...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,341
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/agenda/contatos/admin.py
from django.contrib import admin from .models import Categoria, Contato class ContatoAdmin(admin.ModelAdmin): list_display = ('id', 'nome', 'sobrenome', 'telefone', 'email', 'data_criacao', 'categoria', 'mostrar') list_display_links = ('id', 'nome', 'sobrenome') list_per_page = 5 search_fields = ('nom...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,342
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/BlogDjango/posts/urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.PostIndex.as_view(), name='index'), path('categoria/<str:categoria>', views.PostCategoria.as_view(), name='post_categoria'), path('busca/', views.PostBusca.as_view(), name='post_busca'), path('post/<int:pk>', views.PostDeta...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,343
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/vdjango/blog/comentarios/forms.py
from django.forms import ModelForm from .models import Comentario class FormComentario(ModelForm): def clean(self): data = self.cleaned_data nome = data.get('nome_comentario') email = data.get('email_comentario') comentario = data.get('comentario') if len(nome) < 5: ...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,344
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/vdjango/blog/posts/migrations/0002_auto_20201221_1710.py
# Generated by Django 3.1.4 on 2020-12-21 20:10 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('categoria', '0001_initial'), migrations.swappable_depe...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,345
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/vdjango/blog/comentarios/models.py
from django.db import models from posts.models import Post from django.contrib.auth.models import User from django.utils import timezone class Comentario(models.Model): nome_comentario = models.CharField(max_length=155, verbose_name='Nome') email_comentario = models.EmailField(verbose_name='E-mail') comen...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,346
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/vdjango/blog/comentarios/admin.py
from django.contrib import admin from .models import Comentario class ComentariosAdmin(admin.ModelAdmin): list_display = ('id', 'nome_comentario', 'email_comentario', 'post_comentario', 'data_comentario', 'publicado_comentario') list_editable = ('publicado_comentario',) list_display_li...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,347
AdrianaViabL/PycharmProjectsDjango
refs/heads/main
/BlogDjango/posts/models.py
from django.db import models from categoria.models import Categoria from django.contrib.auth.models import User from django.utils import timezone from PIL import Image from django.conf import settings import os class Post(models.Model): titulo_post = models.CharField(max_length=255, verbose_name='Títilo') aut...
{"/agenda/accounts/views.py": ["/agenda/accounts/models.py"], "/agenda/contatos/views.py": ["/agenda/contatos/models.py"], "/BlogDjango/posts/views.py": ["/BlogDjango/posts/models.py"], "/agenda/contatos/admin.py": ["/agenda/contatos/models.py"], "/vdjango/blog/comentarios/forms.py": ["/vdjango/blog/comentarios/models....
59,352
maakolk/Majo
refs/heads/master
/rotaryEncoderGrayCode/helper/test_slicer.py
from rotaryEncoder.helper.slicer import Slices from unittest import TestCase class TestSlices(TestCase): def test_nextSector(self): sl = Slices(3, 180, 360); hasNext = True results = [] while hasNext: result = (sl.nextInterval()) hasNext = result[2] ...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,353
maakolk/Majo
refs/heads/master
/Voltmeter/AnalogVoltmeter.py
import math import random import serial # import Serial Library import numpy # Import numpy from drawnow import * from matplotlib.animation import FuncAnimation BAUD = 9600 # 9600 or 500000 # https://stackoverflow.com/questions/5285912/how-can-i-create-a-frontend-for-matplotlib REFRESH_MS = 500 X_LIMIT_MS = 10000 X...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,354
maakolk/Majo
refs/heads/master
/polarCoordinates/polarCoordinatesSimulateData.py
import math import random import patch as patch import serial # import Serial Library import numpy # Import numpy import matplotlib.pyplot as plt # import matplotlib library from drawnow import * from matplotlib.animation import FuncAnimation X_LIMIT = 100 class ArduinoConnection: arduinoConnection = None ...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,355
maakolk/Majo
refs/heads/master
/rotaryEncoder/helper/slicer.py
class Slices: def __init__(self, slicescount, begin, end): self.remainingSlicesCount = slicescount self.begin = begin self.end = begin self.remainder = end - begin def nextInterval(self): self.begin = self.end delta = self.remainder / self.remainingSlicesCount ...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,356
maakolk/Majo
refs/heads/master
/polarCoordinates/polarCoordinates.py
""" https://matplotlib.org/examples/pylab_examples/polar_demo.html Demo of a line plot on a polar axis. """ import numpy as np import matplotlib.pyplot as plt # r = np.arange(0, 2, 0.01) # theta = 2 * np.pi * r alpha = 30.0 alphaRad = 2 * np.pi * alpha / 360. r = [0.0001, 2.0] theta = [alphaRad, alphaRad] ax = plt...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,357
maakolk/Majo
refs/heads/master
/rotaryEncoderGrayCode/GrayCode.py
BIN_FORMAT = '05b' for i in range(0, 2 ** 5): j = i ^ (i >> 1) print(i, format(i, BIN_FORMAT), format(j, BIN_FORMAT)) for k in range(0, 5): print((j >> k) & 1) for k in range(4, -1, -1): print(k, '>>>>>>>>>>>>>>>>>>>>>>>>>>') for i in range(0, 2 ** 5): print((((i ^ (i >> 1)) >> k) &...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,358
maakolk/Majo
refs/heads/master
/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py
import matplotlib.pyplot as plt from matplotlib.collections import PatchCollection from matplotlib.patches import Wedge from rotaryEncoder.helper.slicer import Slices SEPARATOR_WIDTH = 0.0001 class RingTraveller: def __init__(self, n, begin, end): self.n = n self.tp = None self.rp = Slice...
{"/rotaryEncoderGrayCode/helper/test_slicer.py": ["/rotaryEncoder/helper/slicer.py"], "/rotaryEncoderGrayCode/RotaryEncoderDiscFactory.py": ["/rotaryEncoder/helper/slicer.py"]}
59,362
Jay54520/data-aggregrate-demo
refs/heads/master
/settings.py
# -*- coding: utf-8 -*- MONGO_URI = 'mongodb://localhost:27017/' PAY_DB = 'pay' TEST_PAY_DB = 'test_pay' ORDER_COLL = 'order' AGGREGATE_COLL = 'aggregate' LOCAL_TZ = 'Asia/Shanghai' DATE_TYPE_MINUTELY = 'minutely' DATE_TYPE_HOURLY = 'hourly' DATE_TYPE_DAILY = 'daily' DATE_TYPE_WEEKLY = 'weekly' DATE_TYPE_MONTHLY = '...
{"/tests/test_aggregate_data.py": ["/settings.py", "/tasks.py", "/tests/conftest.py"], "/tasks.py": ["/settings.py", "/utils.py"], "/utils.py": ["/settings.py"], "/tests/test_create_order.py": ["/settings.py", "/tasks.py"], "/tests/conftest.py": ["/settings.py"]}
59,363
Jay54520/data-aggregrate-demo
refs/heads/master
/tests/test_aggregate_data.py
# -*- coding: utf-8 -*- import datetime import time import pytz from dateutil.relativedelta import relativedelta import settings from tasks import create_order, aggregate from tests.conftest import order_coll, aggregate_coll class TestAggregateData: def setup_class(self): self.order_coll = next(order_c...
{"/tests/test_aggregate_data.py": ["/settings.py", "/tasks.py", "/tests/conftest.py"], "/tasks.py": ["/settings.py", "/utils.py"], "/utils.py": ["/settings.py"], "/tests/test_create_order.py": ["/settings.py", "/tasks.py"], "/tests/conftest.py": ["/settings.py"]}
59,364
Jay54520/data-aggregrate-demo
refs/heads/master
/tasks.py
# -*- coding: utf-8 -*- import datetime import pytz from celery import Celery from dateutil.relativedelta import relativedelta import settings from utils import get_collections app = Celery( 'tasks', broker="redis://127.0.0.1:6379/1", backend="redis://127.0.0.1:6379/0", ) app.conf.task_serializer = 'pick...
{"/tests/test_aggregate_data.py": ["/settings.py", "/tasks.py", "/tests/conftest.py"], "/tasks.py": ["/settings.py", "/utils.py"], "/utils.py": ["/settings.py"], "/tests/test_create_order.py": ["/settings.py", "/tasks.py"], "/tests/conftest.py": ["/settings.py"]}
59,365
Jay54520/data-aggregrate-demo
refs/heads/master
/utils.py
# -*- coding: utf-8 -*- from pymongo import MongoClient import settings def get_collections(use_test_db=False): """ 获取数据表 :param use_test_db: 是否使用测试数据库 :return: {'collection_name': collection} """ if use_test_db: order_coll = MongoClient(settings.MONGO_URI)[settings.TEST_PAY_DB][sett...
{"/tests/test_aggregate_data.py": ["/settings.py", "/tasks.py", "/tests/conftest.py"], "/tasks.py": ["/settings.py", "/utils.py"], "/utils.py": ["/settings.py"], "/tests/test_create_order.py": ["/settings.py", "/tasks.py"], "/tests/conftest.py": ["/settings.py"]}
59,366
Jay54520/data-aggregrate-demo
refs/heads/master
/tests/test_create_order.py
# -*- coding: utf-8 -*- import datetime import settings from tasks import create_order class TestCreateOrder: def test_create_order(cls, order_coll): create_order(order_coll) orders = list(order_coll.find()) assert len(orders) == 1 assert orders[0][settings.PRICE] == 1 def t...
{"/tests/test_aggregate_data.py": ["/settings.py", "/tasks.py", "/tests/conftest.py"], "/tasks.py": ["/settings.py", "/utils.py"], "/utils.py": ["/settings.py"], "/tests/test_create_order.py": ["/settings.py", "/tasks.py"], "/tests/conftest.py": ["/settings.py"]}
59,367
Jay54520/data-aggregrate-demo
refs/heads/master
/tests/conftest.py
# -*- coding: utf-8 -*- import pytest from pymongo import MongoClient import settings @pytest.fixture def order_coll(): yield MongoClient(settings.MONGO_URI)[settings.TEST_PAY_DB][settings.ORDER_COLL] MongoClient(settings.MONGO_URI).drop_database(settings.TEST_PAY_DB) @pytest.fixture def aggregate_coll(): ...
{"/tests/test_aggregate_data.py": ["/settings.py", "/tasks.py", "/tests/conftest.py"], "/tasks.py": ["/settings.py", "/utils.py"], "/utils.py": ["/settings.py"], "/tests/test_create_order.py": ["/settings.py", "/tasks.py"], "/tests/conftest.py": ["/settings.py"]}
59,368
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py
# openstack_dashboard.local.dashboards.project_nci.vlconfig.forms # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,369
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/identity_nci/projects/panel.py
../../../../dashboards/identity/projects/panel.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,370
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_60_admin_add_hvlist.py
PANEL_DASHBOARD = 'admin' PANEL_GROUP = 'admin' PANEL = 'hvlist' ADD_PANEL = 'openstack_dashboard.local.dashboards.admin_nci.hvlist.panel.Hvlist'
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,371
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_59_project_add_panel_vlconfig.py
PANEL_DASHBOARD = 'project' PANEL_GROUP = 'virtlab' PANEL = 'vlconfig' ADD_PANEL = 'openstack_dashboard.local.dashboards.project_nci.vlconfig.panel.VLConfig'
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,372
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/identity_nci/projects/urls.py
# openstack_dashboard.local.dashboards.identity_nci.projects.urls # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,373
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/access_and_security/panel.py
../../../../dashboards/project/access_and_security/panel.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,374
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_61_admin_add_pupha.py
PANEL_DASHBOARD = 'admin' PANEL_GROUP = 'admin' PANEL = 'pupha' ADD_PANEL = 'openstack_dashboard.local.dashboards.admin_nci.pupha.panel.ProjectUsagePerHostAggregate'
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,375
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_10_project.py
DASHBOARD = 'project' # Add our modified project dashboard to the "INSTALLED_APPS" path. # Django doco says that the final component of each path has to be unique, # however it doesn't seem to bother Horizon. But just to be on the safe # side we've named the module "project_nci", although the slug will # still be "pr...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,376
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_20_admin.py
../../enabled/_20_admin.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,377
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/containers/urls.py
# openstack_dashboard.local.dashboards.project_nci.containers.urls # # Copyright (c) 2014, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy o...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,378
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/containers/panel.py
../../../../dashboards/project/containers/panel.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,379
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/nci/customisation.py
# openstack_dashboard.local.nci.customisation # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,380
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/containers/views.py
# openstack_dashboard.local.dashboards.project_nci.containers.views # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,381
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/identity_nci/users/views.py
# openstack_dashboard.local.dashboards.identity_nci.users.views # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of t...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,382
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/instances/panel.py
../../../../dashboards/project/instances/panel.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,383
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/admin_nci/pupha/tables.py
# openstack_dashboard.local.dashboards.admin_nci.pupha.tables # # Copyright (c) 2016, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,384
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py
# openstack_dashboard.local.dashboards.admin_nci.pupha.tabs # # Copyright (c) 2016, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the L...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,385
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/instances/workflows/create_instance.py
# openstack_dashboard.local.dashboards.project_nci.instances.workflows.create_instance # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,386
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/nci/crypto.py
# openstack_dashboard.local.nci.crypto # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,387
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/project_nci/vlconfig/views.py
# openstack_dashboard.local.dashboards.project_nci.vlconfig.views # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,388
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_40_router.py
../../enabled/_40_router.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,389
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/admin_nci/pupha/constants.py
# openstack_dashboard.local.dashboards.admin_nci.pupha.constants # # Copyright (c) 2016, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,390
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/admin_nci/pupha/views.py
# openstack_dashboard.local.dashboards.admin_nci.pupha.views # # Copyright (c) 2016, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,391
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_30_settings.py
../../enabled/_30_settings.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,392
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/identity_nci/projects/workflows.py
# openstack_dashboard.local.dashboards.identity_nci.projects.workflows # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a co...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,393
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/identity_nci/users/panel.py
../../../../dashboards/identity/users/panel.py
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,394
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/nci/utils.py
# openstack_dashboard.local.nci.utils # # Copyright (c) 2014, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,395
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/dashboards/admin_nci/hvlist/views.py
# openstack_dashboard.local.dashboards.admin_nci.hvlist.views # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,396
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_25_identity.py
DASHBOARD = 'identity' # See also: _10_project.py ADD_INSTALLED_APPS = [ 'openstack_dashboard.local.dashboards.identity_nci', 'openstack_dashboard.dashboards.identity', ]
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,397
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/nci/constants.py
# openstack_dashboard.local.nci.constants # # Copyright (c) 2015, NCI, Australian National University. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # ...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,398
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/enabled/_50_project_add_panelgrp_vl.py
PANEL_GROUP_DASHBOARD = 'project' PANEL_GROUP = 'virtlab' PANEL_GROUP_NAME = 'Virtual Lab'
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,399
NCI-Cloud/horizon
refs/heads/nci/kilo
/openstack_dashboard/local/nci/settings_defaults.py
# Defaults for the NCI Partner Cloud dashboard. These can be overridden in # the "local_settings.py" file. SESSION_TIMEOUT = 86400 # Protect CSRF/session cookies from cross-site scripting. CSRF_COOKIE_HTTPONLY = True SESSION_COOKIE_HTTPONLY = True # Hook for replacing built-in dashboard panels. HORIZON_CONFIG["cust...
{"/openstack_dashboard/local/dashboards/project_nci/vlconfig/forms.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/project_nci/containers/views.py": ["/openstack_dashboard/local/nci/constants.py"], "/openstack_dashboard/local/dashboards/admin_nci/pupha/tabs.py": ["/openstack...
59,402
squirl/squirl
refs/heads/master
/squirl/migrations/0009_auto_20150905_1622.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import squirl.models class Migration(migrations.Migration): dependencies = [ ('squirl', '0008_auto_20150904_2245'), ] operations = [ migrations.RemoveField( model_name='l...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,403
squirl/squirl
refs/heads/master
/squirl/groupForms.py
from django import forms from django.db import models from .models import Group, Squirl, SubGroupNotification, ParentEventNotice class JoinGroupRequestForm(forms.Form): user = forms.CharField(widget= forms.HiddenInput()) group = forms.CharField(widget =forms.HiddenInput()) FORM_CHOICES=( (0, 'View L...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,404
squirl/squirl
refs/heads/master
/squirl/forms.py
from django import forms from django.db import models from django.forms import ModelForm from django.contrib.auth.models import User from django.core.validators import RegexValidator from .models import Location, Group, Squirl, Relation, Connection, Interest, Event, Address, State from django.forms import MultiWidget ...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,405
squirl/squirl
refs/heads/master
/squirl/methods.py
from .models import Group from .models import Event, Notice, Address, Zipcode from .models import UserEventPlan, FriendNotification, Squirl, Interest from datetime import datetime, timedelta from django.forms.formsets import formset_factory from .forms import FriendNotificationForm, InterestsForm from django.utils.html...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,406
squirl/squirl
refs/heads/master
/squirl/utils.py
from django.db import models from django.contrib.auth.models import User from django.utils.translation import ugettext_lazy as _ from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic from django.core.exceptions import FieldError def object_relation_mixin_factory( ...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,407
squirl/squirl
refs/heads/master
/squirl/admin.py
from django.contrib import admin # Register your models here. from .models import Squirl,Interest,Event, Group, Location, UserEventPlan, UserEvent, Member, Relation, Connection, EventNotification, Notice from .models import FriendNotification, JoinGroupNotification, State, Zipcode, Address,ParentEventNotice, Ancestor...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,408
squirl/squirl
refs/heads/master
/squirl/ajax.py
from django.template.loader import render_to_string from dajaxice.decorators import dajaxice_register try: from django.utils import simplejson as json except: import simplejson as json from dajaxice.decorators import dajaxice_register from .views import get_upcomingEventsPaginationPage @dajaxice_register def s...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,409
squirl/squirl
refs/heads/master
/squirl/views.py
from django.shortcuts import render from django.http import HttpResponse from .models import Event, UserEventPlan, UserEvent, Squirl, GroupEvent, Member, Notice, EventNotification, Connection, Interest, AncestorGroupEvent from .models import Group, Location, Relation, FriendNotification, ParentEventNotice from django...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,410
squirl/squirl
refs/heads/master
/squirl/migrations/0001_initial.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.Create...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,411
squirl/squirl
refs/heads/master
/squirl/models.py
from django.db import models from django.contrib.auth.models import User from django.contrib.gis.db import models class AncestorGroupEvent(models.Model): notified_groups= models.ManyToManyField('Group') event = models.ForeignKey('GroupEvent') class ParentEventNotice(models.Model): group = models.Forei...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,412
squirl/squirl
refs/heads/master
/squirl/eventMethods.py
from .models import Event, EventNotification, UserEventPlan, Notice, Event, GroupEvent, UserEvent from django.utils.html import conditional_escape as esc from django.forms.formsets import formset_factory from .methods import get_notice from .groupMethods import has_edit_privileges_for_group from .forms import EventNoti...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,413
squirl/squirl
refs/heads/master
/squirl/friendMethods.py
from .models import FriendNotification, Connection, Relation from .methods import get_squirl def get_friend_notification(to_squirl, from_squirl): try: notice = FriendNotification.objects.get(user =from_squirl, notice__user=to_squirl) return notice except FriendNotification.DoesNotExist: ...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,414
squirl/squirl
refs/heads/master
/squirl/groupMethods.py
from .models import Group, Squirl, Member, JoinGroupNotification, GroupNotice from django.forms.formsets import formset_factory from .groupForms import JoinGroupRequestForm, CreateSubGroupRequestForm, SubGroupNotificationForm, ParentEventNoticeForm from .methods import get_squirl from .models import SubGroupNotificatio...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,415
squirl/squirl
refs/heads/master
/squirl/migrations/0003_auto_20150904_2015.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('squirl', '0002_auto_20150827_2052'), ] operations = [ migrations.CreateModel( name='AncestorGroupEvent', ...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,416
squirl/squirl
refs/heads/master
/squirl/ajaxViews.py
from django.shortcuts import render from django.http import HttpResponse from .views import squirl_login from .groupForms import CreateSubGroupRequestForm from .methods import get_squirl from .groupMethods import create_subgroup_request, validate_create_subgroup_request_form from .models import SubGroupNotification, Ev...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,417
squirl/squirl
refs/heads/master
/squirl/migrations/0002_auto_20150827_2052.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('squirl', '0001_initial'), ] operations = [ migrations.AlterField( model_name='event', name='main_loc...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,418
squirl/squirl
refs/heads/master
/squirl/urls.py
from django.conf.urls import url from . import views from . import ajaxViews urlpatterns = [ url(r'^$', views.index, name = 'index'), url(r'^login/$', views.squirl_login, name = 'squirl_login'), url(r'^addEvent/$', views.add_event, name = 'addEvent'), url(r'^signOut/$', views.squirl_logout, name='squir...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,419
squirl/squirl
refs/heads/master
/squirl/migrations/0008_auto_20150904_2245.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('squirl', '0007_auto_20150904_2036'), ] operations = [ migrations.RemoveField( model_name='parenteventnotice', ...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,420
squirl/squirl
refs/heads/master
/squirl/migrations/0004_auto_20150904_2016.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('squirl', '0003_auto_20150904_2015'), ] operations = [ migrations.AlterField( model_name='event', nam...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,421
squirl/squirl
refs/heads/master
/utils/templatetags/utility_tags.py
import urllib from django import template from django.utils.encoding import force_str from django.contrib.auth.models import User from squirl.models import SubGroupNotification, Event, GroupEvent, UserEvent register = template.Library() @register.simple_tag(takes_context=True) def append_to_query(context, **kwargs): ...
{"/squirl/migrations/0009_auto_20150905_1622.py": ["/squirl/models.py"], "/squirl/groupForms.py": ["/squirl/models.py"], "/squirl/forms.py": ["/squirl/models.py"], "/squirl/methods.py": ["/squirl/models.py", "/squirl/forms.py"], "/squirl/admin.py": ["/squirl/models.py"], "/squirl/ajax.py": ["/squirl/views.py"], "/squir...
59,425
Zorking/debug_examples
refs/heads/master
/qwerty/views.py
from django.shortcuts import render from rest_framework import serializers from rest_framework import views # Create your views here. from rest_framework.generics import ListAPIView from rest_framework.response import Response from qwerty.models import Order, Films class Example3Serializer(serializers.Serializer):...
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,426
Zorking/debug_examples
refs/heads/master
/example2_2.py
import example2 x = 1 def g(): print(example2.f())
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,427
Zorking/debug_examples
refs/heads/master
/qwerty/models.py
from django.db import models # Create your models here. class Customer(models.Model): name = models.CharField(max_length=255) class Order(models.Model): name = models.CharField(max_length=255) cost = models.CharField(max_length=255) ... customer = models.ForeignKey(Customer, on_delete=models.CA...
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,428
Zorking/debug_examples
refs/heads/master
/example2.py
import example2_2 def f(): return example2_2.x print(f())
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,429
Zorking/debug_examples
refs/heads/master
/example1.py
def is_odd(x: int) -> bool: return bool(x % 2) numbers = [n for n in range(10)] for i in range(len(numbers)): if is_odd(numbers[i]): del numbers[i] print(numbers)
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,430
Zorking/debug_examples
refs/heads/master
/qwerty/migrations/0002_auto_20200421_2131.py
# Generated by Django 2.2.9 on 2020-04-21 21:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('qwerty', '0001_initial'), ] operations = [ migrations.AlterField( model_name='films', name='birthYear', ...
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,431
Zorking/debug_examples
refs/heads/master
/example1_2.py
def is_odd(x: int) -> bool: return bool(x % 2) numbers = [n for n in range(10)] numbers[:] = [n for n in numbers if not is_odd(n)] print(numbers)
{"/qwerty/views.py": ["/qwerty/models.py"], "/example2_2.py": ["/example2.py"], "/example2.py": ["/example2_2.py"]}
59,433
fpwanderley/InfoMe-Backend
refs/heads/master
/infome/admin.py
from django.contrib import admin from infome.models import Call, Tag # Register your models here. class CallAdmin(admin.ModelAdmin): fields = ('description', 'status') list_display = ('description', 'status') class Meta: model = Call class TagAdmin(admin.ModelAdmin): fields = ('description...
{"/infome/admin.py": ["/infome/models.py"], "/test_db.py": ["/infome/models.py"], "/infome/hand/serializers.py": ["/infome/models.py"], "/infome/call/serializers.py": ["/infome/models.py"], "/infome/call/endpoints.py": ["/infome/models.py", "/infome/call/serializers.py"], "/infome/hand/endpoints.py": ["/infome/models.p...
59,434
fpwanderley/InfoMe-Backend
refs/heads/master
/test_db.py
# -*- coding: utf-8 -*- import random from infome.models import * CALL_DESCRIPTIONS = [ u'Preciso de um Eletricista', u'Preciso de um Encanador', u'Preciso de um bolo', u'Preciso de uma dedada', u'Preciso de um Tecnico em Informatica', ] print ('Creating Test DB.') for description in CALL_DESCR...
{"/infome/admin.py": ["/infome/models.py"], "/test_db.py": ["/infome/models.py"], "/infome/hand/serializers.py": ["/infome/models.py"], "/infome/call/serializers.py": ["/infome/models.py"], "/infome/call/endpoints.py": ["/infome/models.py", "/infome/call/serializers.py"], "/infome/hand/endpoints.py": ["/infome/models.p...
59,435
fpwanderley/InfoMe-Backend
refs/heads/master
/infome/hand/serializers.py
# -*- coding: utf-8 -*- from rest_framework import serializers from infome.models import Hand class HandSerializer(serializers.ModelSerializer): call = serializers.PrimaryKeyRelatedField(many=True, read_only=True) class Meta: model = Hand fields = ('id', 'call')
{"/infome/admin.py": ["/infome/models.py"], "/test_db.py": ["/infome/models.py"], "/infome/hand/serializers.py": ["/infome/models.py"], "/infome/call/serializers.py": ["/infome/models.py"], "/infome/call/endpoints.py": ["/infome/models.py", "/infome/call/serializers.py"], "/infome/hand/endpoints.py": ["/infome/models.p...
59,436
fpwanderley/InfoMe-Backend
refs/heads/master
/infome/migrations/0001_initial.py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-11-09 00:26 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.Crea...
{"/infome/admin.py": ["/infome/models.py"], "/test_db.py": ["/infome/models.py"], "/infome/hand/serializers.py": ["/infome/models.py"], "/infome/call/serializers.py": ["/infome/models.py"], "/infome/call/endpoints.py": ["/infome/models.py", "/infome/call/serializers.py"], "/infome/hand/endpoints.py": ["/infome/models.p...