index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
94,275
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/PyQtPlot/Widgets/DockPlanningHelperWidget/DockPlanningHelperWidget.py
# DockPlanningHelperWidget.py # Generated from c:\Users\pho\repos\pyPhoPlaceCellAnalysis\src\pyphoplacecellanalysis\GUI\PyQtPlot\Widgets\DockPlanningHelperWidget\DockPlanningHelperWidget.ui automatically by PhoPyQtClassGenerator VSCode Extension import pyphoplacecellanalysis.External.pyqtgraph as pg from pyphoplacecell...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,276
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Batch/runBatch.py
import sys import os import pkg_resources # for Slurm templating from jinja2 import Environment, FileSystemLoader # for Slurm templating import logging import socket # for getting hostname in `build_batch_processing_session_task_identifier` from datetime import datetime, timedelta import pathlib from pathlib import Pat...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,277
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/Analysis/Decoder/reconstruction.py
from copy import deepcopy from pathlib import Path from attrs import define, field, Factory # for DecodedFilterEpochsResult # import pathlib import numpy as np import pandas as pd # from scipy.stats import multivariate_normal from scipy.special import factorial, logsumexp # import neuropy from neuropy.utils.dynamic_c...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,278
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/Qt/ZoomAndNavigationSidebarControls/Spike3DRasterLeftSidebarControlBarBase.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'c:\Users\pho\repos\pyPhoPlaceCellAnalysis\src\pyphoplacecellanalysis\GUI\Qt\ZoomAndNavigationSidebarControls\Spike3DRasterLeftSidebarControlBarBase.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to th...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,279
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Pipeline/Stages/DisplayFunctions/FiringStatisticsDisplayFunctions.py
import numpy as np import pandas as pd from pyphocorehelpers.mixins.member_enumerating import AllFunctionEnumeratingMixin from pyphoplacecellanalysis.General.Pipeline.Stages.DisplayFunctions.DisplayFunctionRegistryHolder import DisplayFunctionRegistryHolder import pyphoplacecellanalysis.External.pyqtgraph as pg clas...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,280
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/PyQtPlot/Widgets/GraphicsObjects/CustomLinearRegionItem.py
from typing import Callable from pyphoplacecellanalysis.External.pyqtgraph.Qt import QtCore, QtGui from pyphoplacecellanalysis.External.pyqtgraph.graphicsItems.LinearRegionItem import LinearRegionItem # from pyphoplacecellanalysis.External.pyqtgraph.graphicsItems.GraphicsObject import GraphicsObject from pyphoplacecell...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,281
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Pipeline/Stages/Computation.py
from collections import OrderedDict import sys from datetime import datetime, timedelta import typing from typing import Optional from warnings import warn import numpy as np import pandas as pd from pathlib import Path from enum import Enum # for EvaluationActions from datetime import datetime # NeuroPy (Diba Lab Pyt...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,282
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Mixins/CrossComputationComparisonHelpers.py
# CrossComputationComparisonHelpers from typing import Dict, List, Optional, Tuple import numpy as np from functools import reduce # _find_any_context_neurons from attrs import define, field, Factory from neuropy.utils.dynamic_container import DynamicContainer, override_dict, overriding_dict_with, get_dict_subset from...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,283
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/Pho2D/matplotlib/visualize_heatmap.py
""" title: visualize_heatmap.py date: 2023-03-22 15:11:25 tags: python, matplotlib, heatmap, visualization """ import numpy as np import matplotlib.pyplot as plt from pyphocorehelpers.function_helpers import function_attributes @function_attributes(short_name='visualize_heatmap', tags=['display','matplotlib','heatmap'...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,284
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/Pho2D/PyQtPlots/TimeSynchronizedPlotters/TimeSynchronizedOccupancyPlotter.py
import numpy as np import pandas as pd from qtpy import QtCore, QtWidgets # from neuropy.analyses.time_dependent_placefields import PfND_TimeDependent import pyphoplacecellanalysis.External.pyqtgraph as pg # from pyphoplacecellanalysis.External.pyqtgraph.Qt import QtCore, QtGui from pyphocorehelpers.DataStructure.gen...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,285
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/PyQtPlot/Flowchart/CustomNodes/DisplayNodes/UnsharpMaskNode.py
from pyphoplacecellanalysis.External.pyqtgraph.flowchart import Flowchart, Node import pyphoplacecellanalysis.External.pyqtgraph.flowchart.library as fclib from pyphoplacecellanalysis.External.pyqtgraph.flowchart.library.common import CtrlNode from pyphoplacecellanalysis.External.pyqtgraph.Qt import QtGui, QtCore impor...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,286
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Model/LiveWindowedData.py
# LiveWindowedData.py from pyphoplacecellanalysis.External.pyqtgraph.Qt import QtCore import numpy as np import pandas as pd from pyphocorehelpers.print_helpers import SimplePrintable, PrettyPrintable from pyphoplacecellanalysis.General.Model.Datasources.Datasources import DataframeDatasource from pyphoplacecellanalys...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,287
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Model/ComputationResults.py
# NeuroPy (Diba Lab Python Repo) Loading # import importlib from dataclasses import dataclass import sys import typing from typing import Optional, Dict, Any from attrs import define, field, Factory, asdict # used for `ComputedResult` import numpy as np from neuropy import core from neuropy.core.session.dataSession i...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,288
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/PyVista/InteractivePlotter/InteractivePlaceCellDataExplorer.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: pho """ import numpy as np import pyvista as pv from qtpy import QtCore, QtGui # for Slot # Signal from pyphocorehelpers.gui.Qt.GlobalConnectionManager import GlobalConnectionManager, GlobalConnectionManagerAccessingMixin from pyphocorehelpers.gui.PyVista...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,289
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/Qt/Menus/SpecificMenus/DockedWidgets_MenuProvider.py
from qtpy import QtCore, QtGui, QtWidgets from pyphoplacecellanalysis.Resources import GuiResources, ActionIcons from pyphocorehelpers.gui.PhoUIContainer import PhoUIContainer from pyphoplacecellanalysis.GUI.Qt.Menus.PhoMenuHelper import PhoMenuHelper from pyphoplacecellanalysis.GUI.Qt.Menus.BaseMenuProviderMixin impo...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,290
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/External/breeze_style_sheets/example/lcd.py
#!/usr/bin/env python # # The MIT License (MIT) # # Copyright (c) <2022-Present> <Alex Huszagh> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the 'Software'), to deal # in the Software without restriction, including without limita...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,291
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/PyQtPlot/Examples/pyqtplot_SimplePlot.py
import pyphoplacecellanalysis.External.pyqtgraph as pg from pyphoplacecellanalysis.External.pyqtgraph.Qt import QtCore, QtGui, QtWidgets import numpy as np def plot_simple_graph(y=np.random.normal(size=100)): app = pg.mkQApp("Plotting Example") #mw = QtGui.QMainWindow() #mw.resize(800,800) win = p...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,292
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Batch/BatchFilesystemFinders.py
from pathlib import Path import pathlib import numpy as np import pandas as pd from attrs import define, field from pyphocorehelpers.Filesystem.path_helpers import find_first_extant_path from pyphocorehelpers.function_helpers import function_attributes from pyphocorehelpers.Filesystem.path_helpers import set_posix_wi...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,293
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/Qt/Menus/BaseMenuProviderMixin.py
from qtpy import QtCore, QtGui, QtWidgets from pyphoplacecellanalysis.Resources import GuiResources, ActionIcons # from pyphocorehelpers.gui.PhoUIContainer import PhoUIContainer from pyphoplacecellanalysis.GUI.Qt.Menus.PhoMenuHelper import PhoMenuHelper def initialize_global_menu_ui_variables_if_needed(a_main_window...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,294
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/GUI/PyVista/InteractivePlotter/InteractivePlaceCellTuningCurvesDataExplorer.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: pho """ from collections import OrderedDict from copy import deepcopy from warnings import warn import numpy as np import pandas as pd import pyvista as pv from pyvistaqt import BackgroundPlotter from matplotlib.colors import ListedColormap, to_hex from sci...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,295
CommanderPho/pyPhoPlaceCellAnalysis
refs/heads/master
/src/pyphoplacecellanalysis/General/Pipeline/Stages/Filtering.py
from pyphocorehelpers.DataStructure.dynamic_parameters import DynamicParameters # to replace simple PlacefieldComputationParameters from pyphoplacecellanalysis.PhoPositionalData.analysis.interactive_placeCell_config import build_configs # TODO: should be replaced by a better and internal config # ===================...
{"/src/pyphoplacecellanalysis/Pho3D/__init__.py": ["/src/pyphoplacecellanalysis/Pho3D/points.py", "/src/pyphoplacecellanalysis/Pho3D/spikes.py"]}
94,315
weiaicunzai/Tensorflow-practice
refs/heads/master
/test.py
#test.py #!/usr/bin/env python3 """ test neuron network performace print top1 and top5 err on test dataset of a model author baiyu """ import argparse from matplotlib import pyplot as plt import torch import torchvision.transforms as transforms from torch.utils.data import DataLoader, random_split from conf impo...
{"/test.py": ["/utils.py", "/dataset.py"], "/train.py": ["/utils.py", "/dataset.py"]}
94,316
weiaicunzai/Tensorflow-practice
refs/heads/master
/legacy/dataset.py
""" train and test dataset author baiyu """ import os import sys import pickle import random import glob import string from collections import namedtuple import numpy as np import torch from torch.utils.data import Dataset, DataLoader import torchvision.transforms.functional as TF import lmdb import cv2 Records = n...
{"/test.py": ["/utils.py", "/dataset.py"], "/train.py": ["/utils.py", "/dataset.py"]}
94,317
weiaicunzai/Tensorflow-practice
refs/heads/master
/train.py
import argparse import os import time import re import torch import torch.nn as nn import torch.optim as optim from torch.utils.tensorboard import SummaryWriter from torch.utils.data import random_split import numpy as np from torchvision import transforms from utils import WarmUpLR, network import utils from utils i...
{"/test.py": ["/utils.py", "/dataset.py"], "/train.py": ["/utils.py", "/dataset.py"]}
94,318
weiaicunzai/Tensorflow-practice
refs/heads/master
/utils.py
""" helper function author baiyu """ import os import sys import re import datetime import random import numpy import cv2 import torch from torch.optim.lr_scheduler import _LRScheduler from torch.utils.data import DataLoader import torchvision import torchvision.transforms as transforms import torchvision.transforms...
{"/test.py": ["/utils.py", "/dataset.py"], "/train.py": ["/utils.py", "/dataset.py"]}
94,319
weiaicunzai/Tensorflow-practice
refs/heads/master
/dataset.py
""" train and test dataset author baiyu """ import os import sys import pickle import random import glob import string from collections import namedtuple import numpy as np import torch from torch.utils.data import Dataset, DataLoader import torchvision.transforms.functional as TF import lmdb import cv2 Records = n...
{"/test.py": ["/utils.py", "/dataset.py"], "/train.py": ["/utils.py", "/dataset.py"]}
94,320
weiaicunzai/Tensorflow-practice
refs/heads/master
/conf/global_settings.py
""" configurations for this project author baiyu """ import os from datetime import datetime #CIFAR100 dataset path (python version) #CIFAR100_PATH = '/nfs/private/cifar100/cifar-100-python' #mean and std of cifar100 dataset #CIFAR100_TRAIN_MEAN = (0.5070751592371323, 0.48654887331495095, 0.4409178433670343) #CIFAR1...
{"/test.py": ["/utils.py", "/dataset.py"], "/train.py": ["/utils.py", "/dataset.py"]}
94,326
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/model.py
import torch import torch.nn as nn import torch.nn.functional as F from utils import init_layers class Actor (nn.Module): """ Defines the neural network architecture that will be used by the actor """ def __init__(self, state_size, action_size, hidden_neurons,...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,327
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/replay_buffer.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import random from collections import deque, namedtuple #Device type (use cuda if gpu is available else cpu) device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") class ReplayBuffer(): """ Replay Buf...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,328
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/noise_generator.py
import numpy as np class OUNoise(): """ Ornstein-Uhlenbeck process for temporally correlated noise generation credit: Adopted from https://github.com/vitchyr/rlkit/blob/master/rlkit/exploration_strategies/ou_strategy.py """ def __init__(self, action_size, action...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,329
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/maddpg.py
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import numpy as np from agent import Agent from noise_generator import OUNoise from replay_buffer import ReplayBuffer class MADDPG(nn.Module): def __init__(self, state_size, action_size, num_agents...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,330
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/config_file.py
class Config(): BUFFER_SIZE = int(1e6) # replay buffer size BATCH_SIZE = 512 # minibatch size UPDATE_EVERY = 1 # how often to update the network NUM_UPDATES = 2 # Number of passes NUM_NEURONS_LAYER1 = 512 # Number of neurons in layer 1 NUM_NEURO...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,331
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/agent.py
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from model import Actor, Critic from utils import init_layers from config_file import Config BUFFER_SIZE = Config.BUFFER_SIZE # replay buffer size BATCH_SIZE = Config.BATCH_SIZE # minibatch ...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,332
AB2212/Udacity-DeepRL-Project-Collaboration-and-Competition
refs/heads/master
/utils.py
import numpy as np import matplotlib.pyplot as plt def init_layers(layer): """ Function to calculate the initialization values for the weights of the network, based on the DDPG paper https://arxiv.org/abs/1509.02971 """ fan_in = layer.weight.data.size()[0] lim = 1. / np.s...
{"/model.py": ["/utils.py"], "/maddpg.py": ["/agent.py", "/noise_generator.py", "/replay_buffer.py"], "/agent.py": ["/model.py", "/utils.py", "/config_file.py"]}
94,347
SlashScreen/pyraytrace
refs/heads/master
/raytracer.py
#raytrace.py ###INCLUDES### from PIL import Image from vectors import Point, Vector from rayclasses import * ###VARIABLES### #define window, create image. img is the output window = {"w":200,"h":100} img = Image.new("RGB",(window["w"],window["h"])) raw = img.load() #define vectors needed lowerLeftCorner = Vector(...
{"/raytracer.py": ["/rayclasses.py"]}
94,348
SlashScreen/pyraytrace
refs/heads/master
/rayclasses.py
#rayclasses.py ###INCLUDES### from functools import reduce import math import numpy as np import random ###FUNCTIONS### def color(ray,hittable): #Main render function: grabs color according to vector. # go through Hittable list for b in hittable: h,rec = b.hit(ray) if h > 0: targ...
{"/raytracer.py": ["/rayclasses.py"]}
94,357
Dozy0/mobile
refs/heads/master
/core/views.py
from django.db.models import Sum from django.shortcuts import render, redirect from django.contrib.auth import update_session_auth_hash from django.contrib.auth.forms import PasswordChangeForm from django.contrib import messages from django.contrib.auth.decorators import login_required from transactions.models import...
{"/notification/url.py": ["/notification/views.py"], "/notification/views.py": ["/notification/models.py"]}
94,358
Dozy0/mobile
refs/heads/master
/accounts/urls.py
from django.conf.urls import url from accounts import views from .views import ( login_view, register_view, logout_view, ) from django.contrib.auth.views import password_reset, password_reset_done urlpatterns = [ url(r'^login/$', login_view, name='login'), url(r'^register/$', register_view, name...
{"/notification/url.py": ["/notification/views.py"], "/notification/views.py": ["/notification/models.py"]}
94,359
Dozy0/mobile
refs/heads/master
/notification/url.py
from django.conf.urls import url from notification.views import show_notification,delete_notification from. import views # from django.conf.urls import path # urlpatterns=[ # url(r'^show/$',show_notification, name='show_notification'), # url(r'^delete/$',delete_notification,name='delete_notification'...
{"/notification/url.py": ["/notification/views.py"], "/notification/views.py": ["/notification/models.py"]}
94,360
Dozy0/mobile
refs/heads/master
/notification/models.py
from django.db import models from accounts.models import User from django.db.models.signals import post_save from django.dispatch import receiver # Create your models here. class Notification(models.Model): title = models.CharField(max_length=256) message =models.TextField() viewed = models.BooleanField(d...
{"/notification/url.py": ["/notification/views.py"], "/notification/views.py": ["/notification/models.py"]}
94,361
Dozy0/mobile
refs/heads/master
/accounts/admin.py
from django.contrib import admin from .models import User, AccountDetails, UserAddress,ping admin.site.register(User) admin.site.register(AccountDetails) admin.site.register(UserAddress) admin.site.register(ping)
{"/notification/url.py": ["/notification/views.py"], "/notification/views.py": ["/notification/models.py"]}
94,362
Dozy0/mobile
refs/heads/master
/notification/views.py
from django.http import Http404 from django.shortcuts import render from django.shortcuts import get_object_or_404, render from notification.models import Notification # Create your views here. def show_notification(request, notification_id): n = get_object_or_404(Notification, pk=notification_id) return r...
{"/notification/url.py": ["/notification/views.py"], "/notification/views.py": ["/notification/models.py"]}
94,363
VincentHahaha/Python-Learning
refs/heads/master
/Practice3-2.py
# 從官網資訊學習使用系統內建的模組 random 產生 1~100 間的亂數 import random # n = random.randint(1,100) # 呈現 1~100 10x10 亂數矩陣 x=random.sample(range(1,101),k=100) a=1 while a<=100: if a%10==0: print(x[a-1]) a+=1 else: print(x[a-1],end="\t") a+=1
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,364
VincentHahaha/Python-Learning
refs/heads/master
/python-Demo.py
import urllib.request as request import ssl import bs4 # import sys # sys.setrecursionlimit(1000000) def getData(src): context=ssl._create_unverified_context() req=request.Request(src, headers={ "User-Agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,365
VincentHahaha/Python-Learning
refs/heads/master
/Prac3/multiple.py
def list(n1,n2) : for w in range(n1,n2+1) : for n in range(n1,n2): if n*w <10 : print(n,"x",w,"= ",n*w,end=" ") else: print(n,"x",w,"=",n*w,end=" ") if w==1 and n2==9 : print(9,"x",w,"= ",9*w) ...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,366
VincentHahaha/Python-Learning
refs/heads/master
/Practice2-1.py
# 四則運算 while True : print('\n這是小學生計算機, 運算式請輸入 "+,-,*,/" \n') print("輸入格式 : 3 * 5 (全部輸入完請按 Enter ) \n") try: n1,op,n2=input().split() except ValueError: print("\n忘記空格了齁! 重來 OK ?!\n") continue n1=int(n1) n2=int(n2) print("= ",end="") if op ...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,367
VincentHahaha/Python-Learning
refs/heads/master
/Practice2-4.py
# 質數偵測 print("\n我要來幫你檢查是不是質數了, you know.") n=int(input("請輸入一個正整數 : ")) print("\n",n,"的因數有 : ",end="") const=0 for x in range(1,n+1) : if n%x ==0 : print(x,",",end=" ") const+=1 if const >=3 : print("\n\n除了 1 和",n,"以外還有其他因數") print("\n所以",n,"不是質數 ~") else: print("\n\n唉呦, 看來",n,"是質...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,368
VincentHahaha/Python-Learning
refs/heads/master
/Practice2-3.py
# 輸出九九乘法表 print("Ladies & Gentleman !") print("來看我一次變出九九乘法表囉!") print("倒數五秒~\n") import threading import time def fun_timer(): print("秒") global timer timer = threading.Timer(1, fun_timer) timer.start() print("秒") timer = threading.Timer(1, fun_timer) timer.start() time.sleep(5) timer.cancel(...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,369
VincentHahaha/Python-Learning
refs/heads/master
/Practice4-1.py
# 1. 使用台北公開資料的 [台北市台北旅遊網-景點資料] # 2. 使用者可以用捷運站名稱蒐尋景點 # 3. 將對應到的景點資訊儲存在檔案中 import urllib.request as request import json with request.urlopen("http://data.taipei/opendata/datalist/apiAccess?scope=resourceAquire&rid=36847f3f-deff-4183-a5bb-800737591de5") as response: data=json.load(response) while True: key=inpu...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,370
VincentHahaha/Python-Learning
refs/heads/master
/Practice2-2.py
# 使用者輸入一個正整數,算整數平方根 while True: print("\n我要來算平方根, you know.") n=int(input("請輸入一個正整數 : ")) x=1 while x**2 <= n: if x**2 == n: print("\n",n,"的平方根 = " ,x) break else : x+=1 if x**2>n : print("\nSorry 我只有國中智商...") print("輸入...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,371
VincentHahaha/Python-Learning
refs/heads/master
/Practice3-1.py
# 程式包裝 # 1. 把 99 乘法表包裝成函式,可做 n1xn2 乘法 # 2. 把四則運算機包裝成函式 # 3. 將以上函式包裝在自己的模組和封包中,並且在主程式成功使用 import Prac3.multiple as m import Prac3.calculate as c while True: print("\n1. 四則運算機\n2. n1 x n2 乘法表 \n") choice=input("輸入 1 或 2 選擇你要執行的項目 : ") if choice=="1" : while True : print('\n這...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,372
VincentHahaha/Python-Learning
refs/heads/master
/Prac3/calculate.py
def Cal(n1,n2,op) : if op =="+": print(n1+n2) elif op =="-": print(n1-n2) elif op =="*": print(n1*n2) elif op =="/": print(n1/n2) else : print("What the hell ?") print("\n")
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,373
VincentHahaha/Python-Learning
refs/heads/master
/Practice1.py
loop=1 while loop>0 : print("\n快輸入五個數字 !! (每輸入一個記得Enter)\n") # n1=int(input("來第一個 : ")) # n2=int(input("來第二個 : ")) # n3=int(input("來第三個 : ")) # n4=int(input("來第四個 : ")) # n5=int(input("來第五個 : ")) n1=input("來第一個 : ") n2=input("來第二個 : ") n3=input("來第三個 : ") n4=input("來第四...
{"/Practice3-1.py": ["/Prac3/multiple.py", "/Prac3/calculate.py"]}
94,392
abrazinskas/NLP2-project-3
refs/heads/master
/runs/latentgatevae.py
import tensorflow as tf import numpy as np from pprint import pprint import pickle from utils import smart_reader, bitext_reader from utils import iterate_minibatches, prepare_data from vocabulary import OrderedCounter, Vocabulary from models.latengatevae import LatentGateVAE from trainers.vaetrainer import VAETrainer...
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,393
abrazinskas/NLP2-project-3
refs/heads/master
/support.py
import numpy as np def create_history(target): # create history history = np.zeros(target.shape) # print(target.shape) history[:, 1:] = target[:, :-1] return history
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,394
abrazinskas/NLP2-project-3
refs/heads/master
/runs/eval.py
import tensorflow as tf from models.neuralibm1_context import NeuralIBM1ContextModel from vocabulary import OrderedCounter, Vocabulary from utils import smart_reader, bitext_reader import pickle # the paths to our training and validation data, English side train_e_path = 'data/training/hansards.36.2.e.gz' train_f_path...
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,395
abrazinskas/NLP2-project-3
refs/heads/master
/notebooks/plots/plots.py
import matplotlib.pyplot as plt epochs = range(1, 6) # accuracy # training = [0.20, 0.20, 0.20, 0.20, 0.20] # validation = [0.18, 0.18, 0.18, 0.18, 0.18] # # plt.plot(epochs, training, 'r', label="training") # plt.plot(epochs, validation, 'b', label="validation") # plt.xlabel("Epochs") # plt.ylabel("Accuracy") # plt....
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,396
abrazinskas/NLP2-project-3
refs/heads/master
/models/neuralibm1_collocations.py
import numpy as np import tensorflow as tf from aer import read_naacl_alignments, AERSufficientStatistics from utils import iterate_minibatches, prepare_data from support import create_history # for TF 1.1 import tensorflow try: from tensorflow.contrib.keras.initializers import glorot_uniform except: # for TF 1....
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,397
abrazinskas/NLP2-project-3
refs/heads/master
/models/latengatevae.py
import numpy as np import tensorflow as tf from aer import read_naacl_alignments, AERSufficientStatistics from utils import iterate_minibatches, prepare_data # for TF 1.1 import tensorflow try: from tensorflow.contrib.keras.initializers import glorot_uniform except: # for TF 1.0 from tensorflow.contrib.layers imp...
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,398
abrazinskas/NLP2-project-3
refs/heads/master
/runs/collocations.py
import tensorflow as tf import pickle from utils import smart_reader, bitext_reader from vocabulary import Vocabulary from models.neuralibm1_collocations import NeuralIBM1CollocationsModel from trainers.neuralibm1trainer_context import NeuralIBM1ContextTrainer # the paths to our training and validation data, English ...
{"/runs/latentgatevae.py": ["/models/latengatevae.py"], "/models/neuralibm1_collocations.py": ["/support.py"], "/runs/collocations.py": ["/models/neuralibm1_collocations.py"]}
94,409
tobby2002/Hyperactive
refs/heads/master
/examples/example_mlp.py
from sklearn.datasets import load_breast_cancer from sklearn.model_selection import train_test_split from hyperactive import ParticleSwarmOptimizer breast_cancer_data = load_breast_cancer() X = breast_cancer_data.data y = breast_cancer_data.target X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,410
tobby2002/Hyperactive
refs/heads/master
/tests/test_sklearn.py
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License from sklearn.datasets import load_iris data = load_iris() X = data.data y = data.target search_config = { "sklearn.tree.DecisionTreeClassifier": { "criterion": ["gini", "entropy"], "max_depth": range(1, 21), "mi...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,411
tobby2002/Hyperactive
refs/heads/master
/tests/test_keras_mlp.py
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License from sklearn.datasets import load_iris data = load_iris() X = data.data y = data.target search_config = { "keras.compile.0": {"loss": ["binary_crossentropy"], "optimizer": ["adam"]}, "keras.fit.0": {"epochs": [1], "batch_size": [30...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,412
tobby2002/Hyperactive
refs/heads/master
/hyperactive/model/__init__.py
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License from .model_sklearn import ScikitLearnModel from .model_xgboost import XGBoostModel from .model_light_gbm import LightGbmModel from .model_keras import KerasModel __all__ = ["ScikitLearnModel", "XGBoostModel", "LightGbmModel", "KerasModel...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,413
tobby2002/Hyperactive
refs/heads/master
/tests/test_classes.py
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License search_config = { "sklearn.tree.DecisionTreeClassifier": { "criterion": ["gini", "entropy"], "max_depth": range(1, 21), "min_samples_split": range(2, 21), "min_samples_leaf": range(1, 21), } } def t...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,414
tobby2002/Hyperactive
refs/heads/master
/examples/example_xgboost.py
import numpy as np from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from hyperactive import SimulatedAnnealingOptimizer iris_data = load_iris() X = iris_data.data y = iris_data.target X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33) # this defines...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,415
tobby2002/Hyperactive
refs/heads/master
/examples/example_memory.py
from sklearn.datasets import load_iris from hyperactive import RandomSearchOptimizer iris_data = load_iris() X = iris_data.data y = iris_data.target # this defines the model and hyperparameter search space search_config = { "sklearn.ensemble.RandomForestClassifier": { "n_estimators": range(10, 200, 10), ...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,416
tobby2002/Hyperactive
refs/heads/master
/hyperactive/chimaera/__init__.py
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License from .chimaera import Chimaera __all__ = ["Chimaera"]
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,417
tobby2002/Hyperactive
refs/heads/master
/examples/example_multiprocessing.py
import numpy as np from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split from hyperactive import RandomSearchOptimizer iris_data = load_iris() X = iris_data.data y = iris_data.target X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.33) # this defines the m...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,418
tobby2002/Hyperactive
refs/heads/master
/examples/example_basic.py
from sklearn.datasets import load_iris from hyperactive import RandomSearchOptimizer iris_data = load_iris() X = iris_data.data y = iris_data.target search_config = { "sklearn.ensemble.RandomForestClassifier": {"n_estimators": range(10, 100, 10)} } Optimizer = RandomSearchOptimizer(search_config, n_iter=10, ver...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,419
tobby2002/Hyperactive
refs/heads/master
/hyperactive/model/model_sklearn.py
# Author: Simon Blanke # Email: simon.blanke@yahoo.com # License: MIT License from sklearn.model_selection import cross_val_score from sklearn.metrics import make_scorer from .model import Model class ScikitLearnModel(Model): def __init__(self, _config_, search_config_key): super().__init__(_config_) ...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,420
tobby2002/Hyperactive
refs/heads/master
/tests/_test_keras_cnn.py
from keras.datasets import cifar10 from keras.utils import to_categorical (X_train, y_train), (X_test, y_test) = cifar10.load_data() X = X_train[0:1000] y = y_train[0:1000] y = to_categorical(y) y_test = to_categorical(y_test) search_config = { "keras.compile.0": {"loss": ["categorical_crossentropy"], "optimize...
{"/hyperactive/model/__init__.py": ["/hyperactive/model/model_sklearn.py"]}
94,421
reedessick/gpr_isotropy
refs/heads/master
/gpr_isotropy/sample.py
__doc__ = "a module that houses sampling logic for gpr_isotropy" __author__ = "reed.essick@ligo.org" #------------------------------------------------- import sys import h5py import emcee import healpy as hp import numpy as np from scipy.stats import gamma ### used to initialize RoModels ### non-standard libraries...
{"/gpr_isotropy/posterior.py": ["/gpr_isotropy/utils.py"], "/gpr_isotropy/prior.py": ["/gpr_isotropy/utils.py"]}
94,422
reedessick/gpr_isotropy
refs/heads/master
/gpr_isotropy/posterior.py
__doc__ = "a module housing posterior functions used in our inference of anisotropies" __author__ = "reed.essick@ligo.org" #------------------------------------------------- import healpy as hp import numpy as np ### non-standard libraries from gpr_isotropy import likelihood from gpr_isotropy.utils import DEFAULT_NU...
{"/gpr_isotropy/posterior.py": ["/gpr_isotropy/utils.py"], "/gpr_isotropy/prior.py": ["/gpr_isotropy/utils.py"]}
94,423
reedessick/gpr_isotropy
refs/heads/master
/gpr_isotropy/utils.py
__doc__ = "a module to house basic utilities (mostly I/O related) for the library" __author__ = "reed.essick@ligo.org" #------------------------------------------------- import numpy as np import healpy as hp #------------------------------------------------- TWOPI = 2*np.pi LOG2PI = np.log(TWOPI) DEFAULT_NSIDE = ...
{"/gpr_isotropy/posterior.py": ["/gpr_isotropy/utils.py"], "/gpr_isotropy/prior.py": ["/gpr_isotropy/utils.py"]}
94,424
reedessick/gpr_isotropy
refs/heads/master
/gpr_isotropy/configparser.py
__doc__ = "a module that houses config-parsing logic. Essentially, constructs objects based on specs in an INI" __author__ = "reed.essick@ligo.org" #------------------------------------------------- from ConfigParser import ConfigParser ### non-standard libraries from gpr_isotropy import sample from gpr_isotropy imp...
{"/gpr_isotropy/posterior.py": ["/gpr_isotropy/utils.py"], "/gpr_isotropy/prior.py": ["/gpr_isotropy/utils.py"]}
94,425
reedessick/gpr_isotropy
refs/heads/master
/gpr_isotropy/likelihood.py
__doc__ = "a module housing the likelihood functions used in our inference of anisotropies" __author__ = "reed.essick@ligo.org" #------------------------------------------------- import healpy as hp import numpy as np #------------------------------------------------- class Likelihood(object): """ general c...
{"/gpr_isotropy/posterior.py": ["/gpr_isotropy/utils.py"], "/gpr_isotropy/prior.py": ["/gpr_isotropy/utils.py"]}
94,426
reedessick/gpr_isotropy
refs/heads/master
/gpr_isotropy/prior.py
__doc__ = "a module that houses the priors for our inferences" __author__ = "reed.essick@ligo.org" #------------------------------------------------- import numpy as np import healpy as hp ### non-standard libraries from gpr_isotropy.utils import (TWOPI, LOG2PI) #------------------------------------------------- c...
{"/gpr_isotropy/posterior.py": ["/gpr_isotropy/utils.py"], "/gpr_isotropy/prior.py": ["/gpr_isotropy/utils.py"]}
94,436
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0007_auto_20200511_1102.py
# Generated by Django 3.1 on 2020-05-11 09:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('comunaute', '0006_commande_panier'), ] operations = [ migrations.RemoveField( model_name='panier'...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,437
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0002_auto_20200511_0057.py
# Generated by Django 3.1 on 2020-05-10 22:57 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('comunaute', '0001_initial'), ] operations = [ migrations.RenameModel( old_name='Genre', ...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,438
Arthur-Laurent/Python
refs/heads/master
/comunaute/admin.py
from django.contrib import admin from .models import Categorie, Utilisateur,Produit,NatureDemande admin.site.register(Categorie) admin.site.register(Utilisateur) admin.site.register(Produit) admin.site.register(NatureDemande)
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,439
Arthur-Laurent/Python
refs/heads/master
/comunaute/urls.py
from django.urls import path from django.conf.urls import url from . import views from django.views.generic import ListView from .models import * urlpatterns = [ url("Accueil", views.Accueil,name="accueil"), url("Inscription",views.inscription,name="inscription"), url("Connexion",views.connexion,name="con...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,440
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0004_produit_image.py
# Generated by Django 3.1 on 2020-05-11 06:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comunaute', '0003_auto_20200511_0259'), ] operations = [ migrations.AddField( model_name='produit', name='image', ...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,441
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0012_utilisateur_adresseip.py
# Generated by Django 3.1 on 2020-05-22 11:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comunaute', '0011_commande_enattente'), ] operations = [ migrations.AddField( model_name='utilisateur', name='adressei...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,442
Arthur-Laurent/Python
refs/heads/master
/comunaute/models.py
from django.db import models from django.contrib.auth.models import UserManager, User from django.utils import timezone from address.models import AddressField import random import string class Utilisateur(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) telephone = models.CharField...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,443
Arthur-Laurent/Python
refs/heads/master
/comunaute/apps.py
from django.apps import AppConfig class ComunauteConfig(AppConfig): name = 'comunaute'
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,444
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0011_commande_enattente.py
# Generated by Django 3.1 on 2020-05-21 20:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comunaute', '0010_auto_20200521_1750'), ] operations = [ migrations.AddField( model_name='commande', name='enattente',...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,445
Arthur-Laurent/Python
refs/heads/master
/comunaute/views.py
from django.shortcuts import render from .models import * from django.views.generic import TemplateView from django.views.generic.detail import DetailView from django.contrib.auth.models import User, UserManager from address.forms import AddressField from django.shortcuts import redirect, get_object_or_404, render from...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,446
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0009_auto_20200521_1421.py
# Generated by Django 3.1 on 2020-05-21 12:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comunaute', '0008_commande_complete'), ] operations = [ migrations.AlterField( model_name='commande', name='complete',...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,447
Arthur-Laurent/Python
refs/heads/master
/comunaute/forms.py
from django import forms from .models import * from django.forms import ModelForm from address.forms import AddressField from django.contrib.auth.models import User class ConnexionForm(forms.Form): username = forms.CharField(label="Nom d'utilisateur", max_length=30) password = forms.CharField(label="Mot de pa...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,448
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0003_auto_20200511_0259.py
# Generated by Django 3.1 on 2020-05-11 00:59 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comunaute', '0002_auto_20200511_0057'), ] operations = [ migrations.CreateModel( name='NatureDemande', fields=[ ...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,449
Arthur-Laurent/Python
refs/heads/master
/comunaute/migrations/0008_commande_complete.py
# Generated by Django 3.1 on 2020-05-21 12:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('comunaute', '0007_auto_20200511_1102'), ] operations = [ migrations.AddField( model_name='commande', name='complete', ...
{"/comunaute/admin.py": ["/comunaute/models.py"], "/comunaute/urls.py": ["/comunaute/models.py"], "/comunaute/views.py": ["/comunaute/models.py", "/comunaute/forms.py"], "/comunaute/forms.py": ["/comunaute/models.py"]}
94,462
davidko/LinkbotPythonDemo
refs/heads/master
/led_demo.template.py
import linkbot my_linkbot = linkbot.Linkbot('$SERIAL_ID') my_linkbot.set_led_color($R, $G, $B)
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,463
davidko/LinkbotPythonDemo
refs/heads/master
/util.py
import string import tempfile import subprocess import threading import os def run_template_file(template_filename, mapping, callback=None): with open(template_filename, 'r') as f: s = string.Template(f.read()) exec_data = s.subsitute(mapping) with tempfile.NamedTemporaryFile(delete=False) as f...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,464
davidko/LinkbotPythonDemo
refs/heads/master
/led_demo.py
#!/usr/bin/env python3 import sys import util from PyQt4 import QtCore, QtGui from led_dialog import Ui_Dialog class LedDemo(QtGui.QDialog): demo_finished_signal = QtCore.pyqtSignal() def __init__(self, robot_id): super().__init__() self.ui = Ui_Dialog() self.ui.setupUi(self) ...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,465
davidko/LinkbotPythonDemo
refs/heads/master
/buzzer_dialog.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'buzzer_dialog.ui' # # Created: Thu Oct 1 17:48:30 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except ...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,466
davidko/LinkbotPythonDemo
refs/heads/master
/led_dialog.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'led_dialog.ui' # # Created: Thu Oct 1 15:29:48 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Att...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,467
davidko/LinkbotPythonDemo
refs/heads/master
/move_dialog.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'move_dialog.ui' # # Created: Sat Oct 3 08:37:42 2015 # by: PyQt4 UI code generator 4.9.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Att...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,468
davidko/LinkbotPythonDemo
refs/heads/master
/mainwindow.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'mainwindow.ui' # # Created: Thu Oct 1 16:54:27 2015 # by: PyQt4 UI code generator 4.10.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Att...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}
94,469
davidko/LinkbotPythonDemo
refs/heads/master
/move_demo.template.py
import linkbot import math my_linkbot = linkbot.Linkbot('$SERIAL_ID') distance = $distance # Distance to travel diameter = $diameter radius = diameter/2 # Radius of the wheel speed = $speed # How fast to travel (in/sec) radians = distance/radius degrees = radians * 180 / math.pi radians_per_second = speed/ra...
{"/led_demo.py": ["/util.py", "/led_dialog.py"], "/buzzer_demo.py": ["/util.py", "/buzzer_dialog.py"], "/main.py": ["/util.py", "/mainwindow.py", "/led_demo.py", "/buzzer_demo.py"]}