index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
89,691
egnartsms/sublime-autosplit
refs/heads/master
/impl/shared.py
import sublime from contextlib import contextmanager class Scope: arglist = 'meta.function-call.arguments' open_paren = 'punctuation.section.arguments.begin' close_paren = 'punctuation.section.arguments.end' comma = 'punctuation.separator.arguments' class Context: @contextmanager def workin...
{"/impl/tests.py": ["/impl/edit.py", "/impl/sublime_util.py", "/impl/common.py"], "/command.py": ["/impl/edit.py", "/impl/listener.py", "/impl/shared.py", "/impl/tests.py"], "/impl/listener.py": ["/impl/edit.py", "/impl/shared.py", "/impl/sublime_util.py"], "/impl/parse.py": ["/impl/shared.py", "/impl/sublime_util.py",...
89,692
egnartsms/sublime-autosplit
refs/heads/master
/command.py
import sublime_plugin from .impl import op from .impl.edit import * from .impl.listener import * from .impl.shared import cxt class AutosplitSplit(sublime_plugin.TextCommand): def run(self, edit): with cxt.working_on(self.view): op.erase_joinable_arrows() op.split_all_at(edit, [re...
{"/impl/tests.py": ["/impl/edit.py", "/impl/sublime_util.py", "/impl/common.py"], "/command.py": ["/impl/edit.py", "/impl/listener.py", "/impl/shared.py", "/impl/tests.py"], "/impl/listener.py": ["/impl/edit.py", "/impl/shared.py", "/impl/sublime_util.py"], "/impl/parse.py": ["/impl/shared.py", "/impl/sublime_util.py",...
89,693
egnartsms/sublime-autosplit
refs/heads/master
/impl/listener.py
import sublime_plugin from . import op from .edit import call_with_edit from .shared import cxt from .sublime_util import if_not_called_for from .sublime_util import line_too_long from .sublime_util import redo_empty __all__ = ['Listener'] class Listener(sublime_plugin.ViewEventListener): @classmethod def ...
{"/impl/tests.py": ["/impl/edit.py", "/impl/sublime_util.py", "/impl/common.py"], "/command.py": ["/impl/edit.py", "/impl/listener.py", "/impl/shared.py", "/impl/tests.py"], "/impl/listener.py": ["/impl/edit.py", "/impl/shared.py", "/impl/sublime_util.py"], "/impl/parse.py": ["/impl/shared.py", "/impl/sublime_util.py",...
89,694
egnartsms/sublime-autosplit
refs/heads/master
/impl/ds.py
class Arglist: def __init__(self, open, close, args): self.open = open # after opening paren self.close = close # before closing paren self.args = args @property def begin(self): return self.open - 1 @property def end(self): return self.close + 1 cla...
{"/impl/tests.py": ["/impl/edit.py", "/impl/sublime_util.py", "/impl/common.py"], "/command.py": ["/impl/edit.py", "/impl/listener.py", "/impl/shared.py", "/impl/tests.py"], "/impl/listener.py": ["/impl/edit.py", "/impl/shared.py", "/impl/sublime_util.py"], "/impl/parse.py": ["/impl/shared.py", "/impl/sublime_util.py",...
89,695
egnartsms/sublime-autosplit
refs/heads/master
/impl/parse.py
import sublime from collections import deque from itertools import chain from . import ds from .shared import Scope from .shared import cxt from .sublime_util import ws_begin_before from .sublime_util import ws_end_after from .common import method_for class Arglist: """Argument list as seen by the parser""" ...
{"/impl/tests.py": ["/impl/edit.py", "/impl/sublime_util.py", "/impl/common.py"], "/command.py": ["/impl/edit.py", "/impl/listener.py", "/impl/shared.py", "/impl/tests.py"], "/impl/listener.py": ["/impl/edit.py", "/impl/shared.py", "/impl/sublime_util.py"], "/impl/parse.py": ["/impl/shared.py", "/impl/sublime_util.py",...
89,696
egnartsms/sublime-autosplit
refs/heads/master
/impl/op.py
import sublime from functools import partial from itertools import starmap from sublime import Region from .common import method_for from .common import pairwise from .common import tracking_last from .ds import Arg from .ds import Arglist from .parse import parse_at from .shared import Scope from .shared import cxt ...
{"/impl/tests.py": ["/impl/edit.py", "/impl/sublime_util.py", "/impl/common.py"], "/command.py": ["/impl/edit.py", "/impl/listener.py", "/impl/shared.py", "/impl/tests.py"], "/impl/listener.py": ["/impl/edit.py", "/impl/shared.py", "/impl/sublime_util.py"], "/impl/parse.py": ["/impl/shared.py", "/impl/sublime_util.py",...
89,702
siihwanpark/AugMix
refs/heads/master
/main.py
import time import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.backends.cudnn as cudnn from torchvision import datasets from torchvision import transforms from WideResNet_pytorch.wideresnet import WideResNet from augment_and_mix import Au...
{"/main.py": ["/augment_and_mix.py"]}
89,703
siihwanpark/AugMix
refs/heads/master
/augment_and_mix.py
import random import torch import torch.nn.functional as F from torch.distributions.dirichlet import Dirichlet from torch.distributions.beta import Beta from torchvision import transforms from augmentations import augmentations class AugMixDataset(torch.utils.data.Dataset): """Dataset wrapper to perform AugMix ...
{"/main.py": ["/augment_and_mix.py"]}
89,711
Murray-LIANG/ospt
refs/heads/master
/ospt/commands/host_access.py
import logging from ospt import exceptions as ospt_ex from ospt import flow from ospt.commands import base LOG = logging.getLogger() class Attach(base.BaseCommand): """ Dell-EMC OpenStack Performance Test: Attach volumes. usage: ospt attach --tag <tag> --count <count> [--mapping <mapping>] options: --...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,712
Murray-LIANG/ospt
refs/heads/master
/ospt/exceptions.py
class OsptException(Exception): msg = '' def __init__(self, message, **kwargs): _msg = message if message else self.msg super(Exception, self).__init__(_msg.format(**kwargs)) class ConnectionError(OsptException): pass class TimeoutError(OsptException): pass class N...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,713
Murray-LIANG/ospt
refs/heads/master
/ospt/commands/servers.py
import logging from ospt import flow from ospt.commands import base LOG = logging.getLogger() class CreateServer(base.BaseCommand): """ Dell-EMC OpenStack Performance Test: Create servers. usage: ospt create-servers --tag <tag> --count <count> options: --tag <tag> A tag string used in the ...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,714
Murray-LIANG/ospt
refs/heads/master
/ospt/cli.py
""" Dell EMC OpenStack Performance Test. usage: ospt [-hV] [--os_auth_ip <auth_ip>] [--os_auth_version <auth_ver>] [--os_project <project>] [--storops_vnx <vnx>] [--storops_unity <unity>] [--username <username>] [--password <password>] [--pattern <pattern>] [--log <log_file>] ...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,715
Murray-LIANG/ospt
refs/heads/master
/ospt/utils.py
import functools import inspect import logging import time from contextlib import contextmanager from logging import handlers from ospt import exceptions as ospt_ex LOG = logging.getLogger() def setup_log(file_path=None, level=logging.INFO, to_stdout=True, max_bytes=104857600, max_file_co...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,716
Murray-LIANG/ospt
refs/heads/master
/ospt/commands/__init__.py
from ospt.commands import volumes, servers, host_access CMD = [volumes.CreateVolume, volumes.DeleteVolume, servers.CreateServer, servers.DeleteServer, host_access.Attach, host_access.Detach] CMD_DICT = {cmd.name: cmd for cmd in CMD}
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,717
Murray-LIANG/ospt
refs/heads/master
/ospt/control.py
import itertools import logging import math import storops from cinderclient import client as c_client from cinderclient import exceptions as cinder_ex from glanceclient import client as g_client from keystoneauth1 import loading from keystoneauth1 import session from novaclient import client as n_client fr...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,718
Murray-LIANG/ospt
refs/heads/master
/ospt/commands/volumes.py
import logging from ospt import flow from ospt.commands import base LOG = logging.getLogger() class CreateVolume(base.BaseCommand): """ Dell-EMC OpenStack Performance Test: Create volumes. usage: ospt create-volumes --tag <tag> --count <count> options: --tag <tag> A tag string used in the ...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,719
Murray-LIANG/ospt
refs/heads/master
/ospt/flow.py
import logging import time from multiprocessing import dummy as multithread from ospt import utils LOG = logging.getLogger() class Flow(object): def __init__(self, func, pattern=None): self.func = func self.pattern = pattern def map(self, data, threads_num=None): def ...
{"/ospt/commands/host_access.py": ["/ospt/commands/__init__.py"], "/ospt/commands/servers.py": ["/ospt/commands/__init__.py"], "/ospt/utils.py": ["/ospt/control.py"], "/ospt/commands/volumes.py": ["/ospt/commands/__init__.py"]}
89,720
ggqshr/ClassificationPic
refs/heads/master
/config.py
import warnings class ConfigObj(object): env = 'tt' vis_port = 8097 train_data_path = "./seedPic/totrain" test_data_path = "./seedPic/totest" load_model_path = None class_data_path = "./classdata" batch_size = 8 use_gpu = True num_worker = 4 print_freq = 20 max_epoch = 1...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,721
ggqshr/ClassificationPic
refs/heads/master
/main.py
import torch as t import torchvision.transforms as T from util import PairDataSet, Visualizer from allModels import AlexModel, BasicModule, ClassifyModel from config import obj from torch.utils.data import DataLoader from torchvision.datasets import ImageFolder from torch import nn from torch import optim from torchnet...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,722
ggqshr/ClassificationPic
refs/heads/master
/test.py
from torchvision.datasets import ImageFolder from torch.utils import data import torch as t from util import PairDataSet, Visualizer from allModels import AlexModel, ClassifyModel def test1(): vis = Visualizer(server="cal") dd = PairDataSet(r"./data/totrain") loader = data.DataLoader(dd, shuffle=True, bat...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,723
ggqshr/ClassificationPic
refs/heads/master
/genrateData.py
from PIL import Image from torchvision import transforms as T from torchvision.datasets import ImageFolder from torchvision.utils import save_image import os from tqdm import trange import random """ 使用方法 python 文件名 trans_pic --file_dir="path/to/img" --out_dir="/path/to/store" """ def trans_pic(file_dir, out_dir, m...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,724
ggqshr/ClassificationPic
refs/heads/master
/allModels/ClassIfyModel.py
import torch as t import torch.nn as nn from .basic_module import BasicModule from .AlexModel import AlexModel class ClassifyModel(BasicModule): def __init__(self, path="./checkpoints/squeezenet_###No###0407_135347.pth"): super().__init__() self.model_name = "ClassifyModel" self.feature = ...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,725
ggqshr/ClassificationPic
refs/heads/master
/allModels/__init__.py
from .AlexModel import AlexModel from .basic_module import BasicModule from .ClassIfyModel import ClassifyModel
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,726
ggqshr/ClassificationPic
refs/heads/master
/util/__init__.py
from .ProcessData import PairDataSet from .Vis import Visualizer
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,727
ggqshr/ClassificationPic
refs/heads/master
/allModels/AlexModel.py
from torchvision.models import alexnet, vgg16, squeezenet1_1 from .basic_module import BasicModule, Flattern from torch import nn import warnings import torch as t class AlexModel(BasicModule): def __init__(self, feature_d=128): super().__init__() self.model_name = "squeezenet" self.model ...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,728
ggqshr/ClassificationPic
refs/heads/master
/util/ProcessData.py
import torchvision.transforms as T import torch from PIL import Image from torchvision.datasets import ImageFolder from torch.utils import data import random import os normalize = T.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) class PairDataSet(data.Dataset): def __ini...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,729
ggqshr/ClassificationPic
refs/heads/master
/allModels/basic_module.py
import time import torch as t from torch import nn class BasicModule(nn.Module): def __int__(self): super().__init__() self.model_name = str(type(self)) def load(self, path): self.load_state_dict(t.load(path)) def save(self, accuracy, name=None): if name is None: ...
{"/main.py": ["/util/__init__.py", "/allModels/__init__.py", "/config.py"], "/test.py": ["/util/__init__.py", "/allModels/__init__.py"], "/allModels/ClassIfyModel.py": ["/allModels/basic_module.py", "/allModels/AlexModel.py"], "/allModels/__init__.py": ["/allModels/AlexModel.py", "/allModels/basic_module.py", "/allMode...
89,898
1mozolacal/Reporter
refs/heads/main
/reporter/reports/util.py
from . import models from . import constants def parse_tuple_enumeration(tuples, key): for pair in tuples: if pair[0] == key: return pair[1] return None # ==================CSV to Model Parsers (start)======================= def csv_to_model(model_name, csv_row): model = parse_tuple...
{"/reporter/reports/views.py": ["/reporter/reports/models.py", "/reporter/reports/constants.py"], "/reporter/reports/constants.py": ["/reporter/reports/models.py"], "/reporter/reports/admin.py": ["/reporter/reports/models.py"]}
89,899
1mozolacal/Reporter
refs/heads/main
/reporter/reports/tasks.py
from background_task import background import logging import time import io import os import csv import random from . import util logger = logging.getLogger(__name__) @background(schedule=2) def test_bg_task(): logger.info("The background task has been run") def upload_file_content(model_uploading, raw_file=N...
{"/reporter/reports/views.py": ["/reporter/reports/models.py", "/reporter/reports/constants.py"], "/reporter/reports/constants.py": ["/reporter/reports/models.py"], "/reporter/reports/admin.py": ["/reporter/reports/models.py"]}
89,900
1mozolacal/Reporter
refs/heads/main
/reporter/reports/views.py
from .models import Test from django.shortcuts import render from django.contrib import messages from background_task.models import Task from django.contrib.auth.decorators import login_required from django.core.files.storage import default_storage from django.core.files.base import ContentFile from django.conf import...
{"/reporter/reports/views.py": ["/reporter/reports/models.py", "/reporter/reports/constants.py"], "/reporter/reports/constants.py": ["/reporter/reports/models.py"], "/reporter/reports/admin.py": ["/reporter/reports/models.py"]}
89,901
1mozolacal/Reporter
refs/heads/main
/reporter/reports/constants.py
from .models import Test, TestNumbers, TestText, BASIC_PROPERTY_LABELS MODEL_ENUMERATION = [ ('Gen', Test), ('Num', TestNumbers), ('Text', TestText), ] BASIC_PROPERTY_LABELS = BASIC_PROPERTY_LABELS
{"/reporter/reports/views.py": ["/reporter/reports/models.py", "/reporter/reports/constants.py"], "/reporter/reports/constants.py": ["/reporter/reports/models.py"], "/reporter/reports/admin.py": ["/reporter/reports/models.py"]}
89,902
1mozolacal/Reporter
refs/heads/main
/reporter/reports/models.py
from django.db import models # Create your models here. BASIC_PROPERTY_LABELS = [ ('', 'UnSet Property'), ('A', 'An example'), ('C', 'Commerical'), ('FM', 'Farmers Market'), ('P', 'Parking'), ('E', 'Random prop'), ('ZZ', 'Another random Prop'), ] class Test(models.Model): name = mode...
{"/reporter/reports/views.py": ["/reporter/reports/models.py", "/reporter/reports/constants.py"], "/reporter/reports/constants.py": ["/reporter/reports/models.py"], "/reporter/reports/admin.py": ["/reporter/reports/models.py"]}
89,903
1mozolacal/Reporter
refs/heads/main
/reporter/reports/admin.py
from django.contrib import admin from .models import Test, TestNumbers, TestText # Register your models here. admin.site.register(Test) admin.site.register(TestNumbers) admin.site.register(TestText)
{"/reporter/reports/views.py": ["/reporter/reports/models.py", "/reporter/reports/constants.py"], "/reporter/reports/constants.py": ["/reporter/reports/models.py"], "/reporter/reports/admin.py": ["/reporter/reports/models.py"]}
89,904
techytushar/django-url-shortener
refs/heads/master
/src/my_site/shortner/utils.py
import random import string from django.conf import settings SHORTCODE_MIN = getattr(settings, "SHORTCODE_MIN", 6) # generate a new shortcode def shortcode_generator(): chars = string.ascii_letters+string.digits size = SHORTCODE_MIN return ''.join(random.choice(chars) for _ in range(size)) #importing the...
{"/src/my_site/shortner/forms.py": ["/src/my_site/shortner/validators.py"], "/src/my_site/shortner/models.py": ["/src/my_site/shortner/utils.py", "/src/my_site/shortner/validators.py"], "/src/my_site/shortner/views.py": ["/src/my_site/shortner/models.py", "/src/my_site/shortner/forms.py", "/src/my_site/shortner/validat...
89,905
techytushar/django-url-shortener
refs/heads/master
/src/my_site/shortner/forms.py
from django import forms from .validators import validate_url class SumbitUrlForm(forms.Form): url = forms.CharField(label='Submit Form', validators=[validate_url])
{"/src/my_site/shortner/forms.py": ["/src/my_site/shortner/validators.py"], "/src/my_site/shortner/models.py": ["/src/my_site/shortner/utils.py", "/src/my_site/shortner/validators.py"], "/src/my_site/shortner/views.py": ["/src/my_site/shortner/models.py", "/src/my_site/shortner/forms.py", "/src/my_site/shortner/validat...
89,906
techytushar/django-url-shortener
refs/heads/master
/src/my_site/shortner/validators.py
from django.core.validators import URLValidator from django.core.exceptions import ValidationError def validate_url(value): url_validator = URLValidator() value1_invalid = False value2_invalid = False new_value = "" try: url_validator(value) except: value1_invalid = True ...
{"/src/my_site/shortner/forms.py": ["/src/my_site/shortner/validators.py"], "/src/my_site/shortner/models.py": ["/src/my_site/shortner/utils.py", "/src/my_site/shortner/validators.py"], "/src/my_site/shortner/views.py": ["/src/my_site/shortner/models.py", "/src/my_site/shortner/forms.py", "/src/my_site/shortner/validat...
89,907
techytushar/django-url-shortener
refs/heads/master
/src/my_site/shortner/admin.py
from django.contrib import admin from shortner.models import KirrURL admin.site.register(KirrURL)
{"/src/my_site/shortner/forms.py": ["/src/my_site/shortner/validators.py"], "/src/my_site/shortner/models.py": ["/src/my_site/shortner/utils.py", "/src/my_site/shortner/validators.py"], "/src/my_site/shortner/views.py": ["/src/my_site/shortner/models.py", "/src/my_site/shortner/forms.py", "/src/my_site/shortner/validat...
89,908
techytushar/django-url-shortener
refs/heads/master
/src/my_site/shortner/models.py
from django.db import models from .utils import create_shortcode #import variables from settings from django.conf import settings from .validators import validate_url #making a model manager to override the default (used in shell) class KirrURLManager(models.Manager): def all(self, *args, **kwargs): qs = s...
{"/src/my_site/shortner/forms.py": ["/src/my_site/shortner/validators.py"], "/src/my_site/shortner/models.py": ["/src/my_site/shortner/utils.py", "/src/my_site/shortner/validators.py"], "/src/my_site/shortner/views.py": ["/src/my_site/shortner/models.py", "/src/my_site/shortner/forms.py", "/src/my_site/shortner/validat...
89,909
techytushar/django-url-shortener
refs/heads/master
/src/my_site/shortner/views.py
from django.shortcuts import render, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.views import View from .models import KirrURL from .forms import SumbitUrlForm from .validators import validate_url # Create your views here. def about(request): return HttpResponse("About ...
{"/src/my_site/shortner/forms.py": ["/src/my_site/shortner/validators.py"], "/src/my_site/shortner/models.py": ["/src/my_site/shortner/utils.py", "/src/my_site/shortner/validators.py"], "/src/my_site/shortner/views.py": ["/src/my_site/shortner/models.py", "/src/my_site/shortner/forms.py", "/src/my_site/shortner/validat...
89,911
gugu/django-declension
refs/heads/master
/django_declension/templatetags/declension.py
# -*- coding: utf-8 -*- from django import template from django_declension import declension register = template.Library() @register.filter(name='declension') def declension_filter(name, inflection): word = declension(name) inflected_word = getattr(word, inflection, name) return inflected_word
{"/django_declension/templatetags/declension.py": ["/django_declension/__init__.py"], "/django_declension/__init__.py": ["/django_declension/models.py"], "/django_declension/tests.py": ["/django_declension/__init__.py"], "/django_declension/admin.py": ["/django_declension/models.py"]}
89,912
gugu/django-declension
refs/heads/master
/django_declension/__init__.py
from .models import Word, DeclensionFail from lxml import etree from urllib import urlencode from urllib2 import urlopen from django.core.cache import cache def declension(name): try: declension = cache.get('declension|' + name.replace(' ','|')) if declension is None: if cache.get('decl...
{"/django_declension/templatetags/declension.py": ["/django_declension/__init__.py"], "/django_declension/__init__.py": ["/django_declension/models.py"], "/django_declension/tests.py": ["/django_declension/__init__.py"], "/django_declension/admin.py": ["/django_declension/models.py"]}
89,913
gugu/django-declension
refs/heads/master
/django_declension/tests.py
# -*- coding: utf-8 -*- """ This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase from django_declension import declension class DeclTest(TestCase): def tes...
{"/django_declension/templatetags/declension.py": ["/django_declension/__init__.py"], "/django_declension/__init__.py": ["/django_declension/models.py"], "/django_declension/tests.py": ["/django_declension/__init__.py"], "/django_declension/admin.py": ["/django_declension/models.py"]}
89,914
gugu/django-declension
refs/heads/master
/django_declension/admin.py
# -*- coding: utf-8 -*- from django.contrib import admin from django_declension.models import Word, DeclensionFail admin.site.register(Word) admin.site.register(DeclensionFail)
{"/django_declension/templatetags/declension.py": ["/django_declension/__init__.py"], "/django_declension/__init__.py": ["/django_declension/models.py"], "/django_declension/tests.py": ["/django_declension/__init__.py"], "/django_declension/admin.py": ["/django_declension/models.py"]}
89,915
gugu/django-declension
refs/heads/master
/django_declension/models.py
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ class Word(models.Model): nominative = models.CharField(_("Nominative"), max_length=255, unique = True) genitive = models.CharField(_("Genitive"), max_length=255) dative = models.CharField(_("Dativ...
{"/django_declension/templatetags/declension.py": ["/django_declension/__init__.py"], "/django_declension/__init__.py": ["/django_declension/models.py"], "/django_declension/tests.py": ["/django_declension/__init__.py"], "/django_declension/admin.py": ["/django_declension/models.py"]}
89,916
gugu/django-declension
refs/heads/master
/setup.py
import os from setuptools import setup setup( name = 'django-declension', version = '0.0.1', author = 'Andrii Kostenko', author_email = 'andrey@kostenko.name', packages = ['django_declension', 'django_declension.templatetags'] )
{"/django_declension/templatetags/declension.py": ["/django_declension/__init__.py"], "/django_declension/__init__.py": ["/django_declension/models.py"], "/django_declension/tests.py": ["/django_declension/__init__.py"], "/django_declension/admin.py": ["/django_declension/models.py"]}
89,927
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/startupmachmaking/views.py
from django.shortcuts import render from user.models import * def home(request): if request.POST: return render(request,'landingpage.html') else: return render(request,'landingpage.html')
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,928
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/user/models.py
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.db.models.deletion import CASCADE from django.db.models.enums import Choices from slugify import slugify # Create your models here. # from mongoengine import Document,fields class MyUserManager(BaseUserMan...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,929
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/user/views.py
from django.http.response import HttpResponse from django.shortcuts import render, redirect from .forms import SignupForm, LoginForm from django.contrib.auth import authenticate, login, logout from datetime import datetime from django.contrib import messages from .models import * from django.core.mail import send_mail ...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,930
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/user/admin.py
from django.contrib import admin from .models import User, Portfolio, Resume, Skill, Job, Education, Accomplishments, Company, Job_Opening, application from django.contrib.auth.admin import UserAdmin # Register your models here. class MyUserAdmin(UserAdmin): list_display = ('email', 'username', 'first_name', 'last_...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,931
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/dashboard/urls.py
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ path('applicant', views.applicantdashboard, name="applicantdashboard"), path('joblist', views.joblist, name="joblist"), pat...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,932
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/user/migrations/0001_initial.py
# Generated by Django 3.0.5 on 2021-05-07 05:07 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User'...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,933
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/dashboard/views.py
from django.shortcuts import render from user.models import * from django.http import HttpResponse from django.core.mail import send_mail from datetime import date def applicantdashboard(request): app_applied=application.objects.filter(user=request.user) return render(request,'applicantdashboard.html',{'ap...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,934
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/user/urls.py
from django.urls import path from .views import usrlogin, usrlogout, account, signup, profile,found_dash urlpatterns = [ path('', account, name="account"), path('login', usrlogin, name="login"), path('logout', usrlogout, name="logout"), path('signup', signup, name="signup"), path('profile', profile...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,935
StartUp-MatchMaking/startupmachmaking
refs/heads/master
/user/forms.py
from django import forms from django.contrib.auth.forms import UserCreationForm from django.db.models import fields from django.contrib.auth import authenticate from .models import User class SignupForm(UserCreationForm): email = forms.EmailField(help_text="A valid email id is required") class Meta: m...
{"/startupmachmaking/views.py": ["/user/models.py"], "/user/views.py": ["/user/forms.py", "/user/models.py"], "/user/admin.py": ["/user/models.py"], "/dashboard/views.py": ["/user/models.py"], "/user/urls.py": ["/user/views.py"], "/user/forms.py": ["/user/models.py"]}
89,941
Zavian/Mobafire-to-LoL
refs/heads/master
/worker.py
import config import beautifulsoupreader import os cat = beautifulsoupreader.categories items = beautifulsoupreader.items guideTitle = beautifulsoupreader.guideTitle #guideTitle = title = beautifulsoupreader.title champ = "" def sanitize(s): s = s.replace("\\", " ") s = s.replace("/", " ") s = s.replace(":", " "...
{"/worker.py": ["/config.py", "/beautifulsoupreader.py"], "/beautifulsoupreader.py": ["/config.py", "/utils.py"], "/htmlreader.py": ["/utils.py", "/config.py"], "/main.py": ["/config.py"]}
89,942
Zavian/Mobafire-to-LoL
refs/heads/master
/beautifulsoupreader.py
from bs4 import BeautifulSoup import config import urllib.request from urllib.request import urlopen import utils _DEBUG = True def indexOf(string, search): return string.index(search) def has_class_but_no_id(tag): return tag.has_attr('class') and not tag.has_attr('id') site = config.site connection = urlli...
{"/worker.py": ["/config.py", "/beautifulsoupreader.py"], "/beautifulsoupreader.py": ["/config.py", "/utils.py"], "/htmlreader.py": ["/utils.py", "/config.py"], "/main.py": ["/config.py"]}
89,943
Zavian/Mobafire-to-LoL
refs/heads/master
/utils.py
def printArrayDebug(array, name): print("Printing " + name) for x in array: print("\t", end="") print(x) print("End " + name) print() def printDictionaryDebug(dictionary, name): print("Printing " + name) for x in dictionary: print("\t" + x, end="\n\t") print(dictionary[x]) print() ...
{"/worker.py": ["/config.py", "/beautifulsoupreader.py"], "/beautifulsoupreader.py": ["/config.py", "/utils.py"], "/htmlreader.py": ["/utils.py", "/config.py"], "/main.py": ["/config.py"]}
89,944
Zavian/Mobafire-to-LoL
refs/heads/master
/htmlreader.py
# DEPRECATED OMG import utils import config #import main import urllib.request from html.parser import HTMLParser from urllib.request import urlopen _DEBUG = True catOffsets = [] iteOffsets = [] guideTitOffset = [] titOffset = [] datas = [] categories = [] itemIDs = [] itemNames = [] #if "url" in main.final: si...
{"/worker.py": ["/config.py", "/beautifulsoupreader.py"], "/beautifulsoupreader.py": ["/config.py", "/utils.py"], "/htmlreader.py": ["/utils.py", "/config.py"], "/main.py": ["/config.py"]}
89,945
Zavian/Mobafire-to-LoL
refs/heads/master
/main.py
import config command = input("Insert your command: ") final = {} # Cheat sheet for the commands: # INSTALL : Install every hero # INSTALL [hero] : Install hero # INSTALL [url] : Install mobafire url l = len("INSTALL") if command[0:l] == "INSTALL": args = command[l:] if args != "" or args != None: args = ar...
{"/worker.py": ["/config.py", "/beautifulsoupreader.py"], "/beautifulsoupreader.py": ["/config.py", "/utils.py"], "/htmlreader.py": ["/utils.py", "/config.py"], "/main.py": ["/config.py"]}
89,946
Zavian/Mobafire-to-LoL
refs/heads/master
/config.py
import os folder = "D:\Giochi\LoL\Config\Champions" folders = [] site = "http://www.mobafire.com/league-of-legends/build/victorious-vi-how-to-carry-soloqueue-updated-379601" for filename in os.listdir(folder): folders.append(filename) hdr = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.11 (KHTM...
{"/worker.py": ["/config.py", "/beautifulsoupreader.py"], "/beautifulsoupreader.py": ["/config.py", "/utils.py"], "/htmlreader.py": ["/utils.py", "/config.py"], "/main.py": ["/config.py"]}
89,948
gavriel200/RabbitMQController
refs/heads/master
/RabbitMQController.py
import pika import uuid class Rabbit: """ A class for an easy way to connect publish and consume messages using RabbitMQ. Methods ------- def __init__(self, host="localhost", port=5672, username="guest", password="guest"): Create a connection to Rabbitmq server. ...
{"/example/send_example.py": ["/RabbitMQController.py"], "/example/recv_example.py": ["/RabbitMQController.py"]}
89,949
gavriel200/RabbitMQController
refs/heads/master
/example/send_example.py
from RabbitMQController import Rabbit rabbit = Rabbit() rabbit.declare_exchange("test_exchange", "direct") rabbit.send_to_exchange("hello world", "test_exchange", "test") rabbit.close_connection()
{"/example/send_example.py": ["/RabbitMQController.py"], "/example/recv_example.py": ["/RabbitMQController.py"]}
89,950
gavriel200/RabbitMQController
refs/heads/master
/example/recv_example.py
from RabbitMQController import Rabbit def print_test_func(text): print(text) rabbit = Rabbit() queue_name = rabbit.declare_random_queue() rabbit.declare_exchange("test_exchange", "direct") rabbit.bind(queue_name, "test_exchange", "test") rabbit.receive(queue_name, print_test_func)
{"/example/send_example.py": ["/RabbitMQController.py"], "/example/recv_example.py": ["/RabbitMQController.py"]}
89,954
donnisu/multitext-server
refs/heads/master
/user_service.py
import logging import os from typing import List from tinydb import Query, TinyDB from tinydb.operations import set from password_service import PasswordService class UserService: """ Provides functionality to interact with user database, create new users, add/delete/index files, check perm...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,955
donnisu/multitext-server
refs/heads/master
/test_user_service.py
import os import shutil from pathlib import Path from user_service import UserService user_db = Path.cwd() / "test_user_db.json" user_catalog = Path.cwd() / "test_users_dir" def clean_env(): try: os.remove(user_db) shutil.rmtree(user_catalog, ignore_errors=True) except OSErro...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,956
donnisu/multitext-server
refs/heads/master
/test_password_service.py
from password_service import PasswordService def test_password_diff_hash(): good_pass = "123" good_pass_hash = PasswordService.hash_password(good_pass) strong_pass = "1234" strong_pass_hash = PasswordService.hash_password(strong_pass) assert good_pass_hash != strong_pass_hash def test...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,957
donnisu/multitext-server
refs/heads/master
/client_handler.py
import asyncio import json import logging from functools import lru_cache from websockets import ConnectionClosedError, WebSocketServerProtocol from file_service import FileService from user_service import UserService class ClientHandler: """ Handles all incoming requests from clients """ ...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,958
donnisu/multitext-server
refs/heads/master
/launch.py
#!/usr/bin/env python3 import argparse import asyncio import logging import socket from pathlib import Path import websockets from file_service import FileService from client_handler import ClientHandler from user_service import UserService logging.basicConfig(filename=".log", level=logging.DEBUG, ...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,959
donnisu/multitext-server
refs/heads/master
/password_service.py
import binascii import hashlib import os class PasswordService: """ Provides methods to hash a password and to verify if password hash corresponds to the provided password. """ @staticmethod def hash_password(password) -> str: """ Hash provided password. :...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,960
donnisu/multitext-server
refs/heads/master
/test_client_handler.py
import asyncio import json import unittest from asyncio import Future, coroutine from unittest import mock from unittest.mock import MagicMock, Mock import pytest from websockets import ConnectionClosedError from client_handler import ClientHandler from docengine import Doc from file_service import FileSe...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,961
donnisu/multitext-server
refs/heads/master
/file_service.py
import hashlib import logging from pathlib import Path from typing import List, Tuple from docengine import Doc class FileService: """ Performs all operations with files - loads, saves, applies patches """ def __init__(self, users_dir): self.users_dir = users_dir self.pa...
{"/user_service.py": ["/password_service.py"], "/test_user_service.py": ["/user_service.py"], "/test_password_service.py": ["/password_service.py"], "/client_handler.py": ["/file_service.py", "/user_service.py"], "/launch.py": ["/file_service.py", "/client_handler.py", "/user_service.py"], "/test_client_handler.py": ["...
89,967
flyskywen/WxBlog
refs/heads/master
/apps/api/views.py
from django.shortcuts import render # Create your views here. # -*- coding: utf-8 -*- from oauth.models import Ouser # from blog.models import Article, Tag, Category, Timeline from blog.models import Post, Tag, Category # from tool.models import ToolLink from .serializers import (UserSerializer, PostSerial...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,968
flyskywen/WxBlog
refs/heads/master
/apps/blog/migrations/0007_auto_20200727_1144.py
# Generated by Django 2.2 on 2020-07-27 11:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0006_auto_20200727_1124'), ] operations = [ migrations.AlterModelOptions( name='friendlink', options={'o...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,969
flyskywen/WxBlog
refs/heads/master
/apps/comments/handlers.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: handlers Author: dk date: 2020/7/21 ------------------------------------------------- Change Activity: 2020/7/21: ------------------------------------------------- Desc...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,970
flyskywen/WxBlog
refs/heads/master
/apps/blog/migrations/0002_auto_20200710_1642.py
# Generated by Django 2.2 on 2020-07-10 16:42 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='catego...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,971
flyskywen/WxBlog
refs/heads/master
/WxBlog/urls.py
"""MyBlog URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Clas...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,972
flyskywen/WxBlog
refs/heads/master
/WxBlog/common.py
""" Django settings for MyBlog project. Generated by 'django-admin startproject' using Django 2.1.1. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os imp...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,973
flyskywen/WxBlog
refs/heads/master
/apps/api/urls.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: urls Author: dk date: 2020/7/23 ------------------------------------------------- Change Activity: 2020/7/23: ------------------------------------------------- Descript...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,974
flyskywen/WxBlog
refs/heads/master
/WxBlog/settings.py
# 开发环境 from .local import *
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,975
flyskywen/WxBlog
refs/heads/master
/WxBlog/local.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: local Author: dk date: 2020/8/4 ------------------------------------------------- Change Activity: 2020/8/4: ------------------------------------------------- Description: ...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,976
flyskywen/WxBlog
refs/heads/master
/apps/api/permissions.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: permissions Author: dk date: 2020/7/23 ------------------------------------------------- Change Activity: 2020/7/23: ------------------------------------------------- D...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,977
flyskywen/WxBlog
refs/heads/master
/apps/comments/models.py
from django.db import models from blog.models import Post from oauth.models import Ouser import markdown # Create your models here. class Comment(models.Model): # author = models.ForeignKey(settings.AUTH_USER_MODEL, related_name='%(class)s_related', # verbose_name='评论人', on...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,978
flyskywen/WxBlog
refs/heads/master
/scripts/fake.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: Faker Author: dk date: 2020/1/10 ------------------------------------------------- Change Activity: 2020/1/10: ------------------------------------------------- Descrip...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,979
flyskywen/WxBlog
refs/heads/master
/apps/blog/migrations/0004_post_is_carousel.py
# Generated by Django 2.2 on 2020-07-14 11:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0003_auto_20200713_1726'), ] operations = [ migrations.AddField( model_name='post', name='is_car...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,980
flyskywen/WxBlog
refs/heads/master
/apps/api/serializers.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: serializers Author: dk date: 2020/7/23 ------------------------------------------------- Change Activity: 2020/7/23: ------------------------------------------------- D...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,981
flyskywen/WxBlog
refs/heads/master
/apps/oauth/urls.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: urls.py Author: dk date: 2020/7/15 ------------------------------------------------- Change Activity: 2020/7/15: ------------------------------------------------- Descr...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,982
flyskywen/WxBlog
refs/heads/master
/apps/blog/context_processors.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: context_processors Author: flyskywen date: 2020/7/27 ------------------------------------------------- Change Activity: 2020/7/27: -----------------------------------------...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,983
flyskywen/WxBlog
refs/heads/master
/apps/blog/migrations/0006_auto_20200727_1124.py
# Generated by Django 2.2 on 2020-07-27 11:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20200717_1753'), ] operations = [ migrations.CreateModel( name='FriendLink', fields=[ ...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,984
flyskywen/WxBlog
refs/heads/master
/apps/blog/urls.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: urls.py Description : Author : WX_PC Date: 2018-2018/9/26-9:12 Email: flyskywen@outlook.com ------------------------------------------------- Change Activity: ...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,985
flyskywen/WxBlog
refs/heads/master
/apps/comments/admin.py
from django.contrib import admin from .models import PostComment, Notification # from django.contrib import admin # from .models import Comment # Register your models here. # class CommentAdmin(admin.ModelAdmin): # list_display = ['name', 'email', 'url', 'text', 'created_time', 'post'] # list_display...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,986
flyskywen/WxBlog
refs/heads/master
/apps/blog/migrations/0005_auto_20200717_1753.py
# Generated by Django 2.2 on 2020-07-17 17:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0004_post_is_carousel'), ] operations = [ migrations.AlterField( model_name='post', name='excerp...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,987
flyskywen/WxBlog
refs/heads/master
/apps/oauth/forms.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: form Author: dk date: 2020/7/14 ------------------------------------------------- Change Activity: 2020/7/14: ------------------------------------------------- Descript...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,988
flyskywen/WxBlog
refs/heads/master
/apps/blog/views.py
#!/usr/bin/python # -*- coding: utf-8 -*- # 视图函数 import markdown from django.shortcuts import render, get_object_or_404 from .models import Post, Category, Tag, Timeline # from comments.forms import CommentForm from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger import re from django.v...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,989
flyskywen/WxBlog
refs/heads/master
/apps/blog/admin.py
from django.contrib import admin from .models import Post, Category, Tag, FriendLink, Timeline # Register your models here. # 定制 Post Admin 显示内容 # 定制 Admin 后台 # 在 admin post 列表页面,我们只看到了文章的标题,但是我们希望它显示更加详细的信息,这需要我们来定制 Admin 了,在 admin.py 添加如下代码: # 添加了创建时间,修改时间,和作者 # class PostAdmin(admin.ModelAdmin): # ...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,990
flyskywen/WxBlog
refs/heads/master
/apps/comments/views.py
from django.shortcuts import render, get_object_or_404, redirect from blog.models import Post from .models import PostComment, Notification from django.conf import settings from django.http import JsonResponse from django.views.decorators.http import require_POST from django.contrib.auth.decorators import login_r...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,991
flyskywen/WxBlog
refs/heads/master
/WxBlog/__init__.py
# 报错了,这是因为Django在连接MySQL数据库时默认使用的是MySqldb驱动, # 然而我们没有安装该驱动,因为它并不支持Python3,我们现在安装的是PyMySQL驱动 # import pymysql # # pymysql.install_as_MySQLdb() # 暂时用sqlite测试 # 而且django2.2不支持pymysql模块
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,992
flyskywen/WxBlog
refs/heads/master
/apps/comments/templatetags/comment_tags.py
# -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: comments_tags Author: dk date: 2020/7/15 ------------------------------------------------- Change Activity: 2020/7/15: ------------------------------------------------- ...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,993
flyskywen/WxBlog
refs/heads/master
/apps/blog/templatetags/blog_tags.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: blog_tags Description : Author : WX_PC Date: 2018-2018/9/27-10:44 Email: flyskywen@outlook.com --打印本页  关闭窗口 中国人民银行授权全国银行间同业拆借中心公布,2020年7月20日贷款市场报价利率(LPR)为...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,994
flyskywen/WxBlog
refs/heads/master
/apps/comments/urls.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ ------------------------------------------------- File Name: urls Description : Author : WX_PC Date: 2018-2018/9/27-14:38 Email: flyskywen@outlook.com ------------------------------------------------- Change Acti...
{"/apps/api/views.py": ["/apps/api/serializers.py"], "/apps/comments/handlers.py": ["/apps/comments/models.py"], "/apps/api/urls.py": ["/apps/api/views.py"], "/WxBlog/settings.py": ["/WxBlog/local.py"], "/WxBlog/local.py": ["/WxBlog/common.py"], "/apps/comments/admin.py": ["/apps/comments/models.py"], "/apps/comments/v...
89,996
EdnaCorzo/ecommerce
refs/heads/main
/db.py
import sqlite3 from sqlite3.dbapi2 import Error def conectar(): dbname= 'ecommerce.db' conn= sqlite3.connect(dbname) return conn def listaUsuarios(): conn= conectar() cursor= conn.execute("select * from Usuarios;") resultusu= list(cursor.fetchall()) conn.close() return res...
{"/app.py": ["/formas.py", "/db.py"]}