index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
23,238
cellcounter/cellcounter
refs/heads/master
/cellcounter/statistics/middleware.py
from django.conf import settings from django.contrib.sessions import middleware class StatsSessionMiddleware(middleware.SessionMiddleware): def process_request(self, request): session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME) request.session = self.SessionStore(session_key) i...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,239
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/serializers.py
from rest_framework import serializers from .models import KeyMap, Keyboard from django.contrib.auth.models import User from django.urls import reverse class KeyMapSerializer(serializers.ModelSerializer): class Meta: model = KeyMap fields = ("cellid", "key") class KeyboardListItemSerializer(se...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,240
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/defaults.py
import datetime from pytz import utc from .models import Keyboard BUILTIN_DESKTOP_KEYBOARD_MAP = { "id": "builtin", "user": None, "label": "Default desktop", "created": datetime.datetime(2013, 10, 22, 12, 15, 5, 0, tzinfo=utc), "last_modified": datetime.datetime(2013, 10, 22, 12, 15, 13, 0, tzinf...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,241
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/management/commands/fix_database.py
import os import sys import psycopg2 from psycopg2.extras import DictCursor from django.core.management.base import BaseCommand from django.contrib.auth.models import User from cellcounter.cc_kapi.models import Keyboard, KeyMap from cellcounter.main.models import CellType, CellImage, License, CopyrightHolder class...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,242
cellcounter/cellcounter
refs/heads/master
/cellcounter/statistics/urls.py
from django.conf.urls import url from .views import ListCreateCountInstanceAPI urlpatterns = [ url("^$", ListCreateCountInstanceAPI.as_view(), name="create-count-instance"), ]
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,243
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/migrations/0002_initial_data.py
# -*- coding: utf-8 -*- from django.db import models, migrations CELLTYPES_INITIAL = [ { "readable_name": "Neutrophils", "machine_name": "neutrophils", "abbr_name": "neut", "visualisation_colour": "#4f6228", }, { "readable_name": "Metamyelocytes", "machine_...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,244
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/test_builtin_keyboards.py
import json from django.test import TestCase # from .factories import KeyboardLayoutsFactory from .marshalls import KeyboardLayoutsMarshall from .factories import UserFactory, KeyboardFactory, BuiltinKeyboardFactory from .models import Keyboard def DecodeDateTimeInUTC(d, fields=["created", "last_modified"]): ""...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,245
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/views.py
from django.http import HttpResponse from django.shortcuts import render from django.template import RequestContext from django.views.generic import TemplateView, ListView, DetailView from rest_framework.generics import ListAPIView from PIL import Image from .models import CellType, CellImage from .serializers import ...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,246
cellcounter/cellcounter
refs/heads/master
/cellcounter/statistics/views.py
from rest_framework import status from rest_framework.generics import ListCreateAPIView from rest_framework.permissions import BasePermission from rest_framework.renderers import JSONRenderer, BrowsableAPIRenderer from rest_framework.response import Response from rest_framework.throttling import AnonRateThrottle from r...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,247
cellcounter/cellcounter
refs/heads/master
/cellcounter/accounts/forms.py
from django import forms from django.conf import settings from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.contrib.auth.tokens import default_token_generator from django.core.mail import send_mail from django.urls import reverse from django.core.validators i...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,248
cellcounter/cellcounter
refs/heads/master
/cellcounter/accounts/utils.py
import re def read_signup_email(email): url_match = re.search(r"https?://[^/]*(/.*reset/\S*)", email.body) if url_match is None: return None, None return url_match.group(), url_match.groups()[0]
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,249
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/migrations/0002_v2api.py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-24 16:16 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion from django.core.exceptions import ObjectDoesNotExist from django.db import connection from ..defau...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,250
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/urls.py
from .views import KeyboardViewSet from rest_framework import routers from .routers import KeyboardAPIRouter router = KeyboardAPIRouter() router.register(r"", KeyboardViewSet, basename="keyboards") urlpatterns = router.urls
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,251
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/marshalls.py
from .models import Keyboard from .serializers import ( KeyboardSerializer, KeyboardListItemSerializer, BuiltinKeyboardSerializer, BuiltinKeyboardListItemSerializer, ) from .defaults import BUILTIN_KEYBOARDS from pydictobject import DictObject from abc import ABC, abstractmethod class KeyboardLayout...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,252
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/models.py
import os import mimetypes from io import StringIO from django.db import models from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from colorful.fields import RGBColorField from PIL import Image class CellType(models.Model): readable_name = models.CharField(m...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,253
cellcounter/cellcounter
refs/heads/master
/cellcounter/accounts/test_forms.py
from urllib.parse import urlparse import re from django.contrib.auth.tokens import default_token_generator from django.core import mail from django.urls import reverse from django.test import TestCase from django.test.client import RequestFactory from django.utils.http import urlsafe_base64_decode from cellcounter.cc...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,254
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/test_db_migration.py
from django.test import TransactionTestCase from django.db.migrations.executor import MigrationExecutor from django.db import connection, transaction from django.utils import timezone from django.contrib.auth.models import User from .factories import UserFactory, KeyboardFactory from .serializers import KeyboardListI...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,255
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/migrations/0005_unique_display_order.py
# Generated by Django 2.2.3 on 2019-07-11 15:48 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("main", "0004_display_order_data"), ] operations = [ migrations.AlterField( model_name="celltype", name="display_orde...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,256
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/tests.py
import json from django_webtest import WebTest from django.test import TestCase from django.urls import reverse from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from cellcounter.main.models import CellType from .defaults import MOCK_KEYBOARD, MOCK_KEYBOARD2, BAD_KEYBOAR...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,257
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/views.py
from rest_framework import generics from rest_framework.response import Response from rest_framework.permissions import IsAuthenticatedOrReadOnly, IsAuthenticated from rest_framework.exceptions import NotFound, ParseError, NotAuthenticated from rest_framework import status from .models import Keyboard, DefaultKeyboard...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,258
cellcounter/cellcounter
refs/heads/master
/cellcounter/urls.py
from django.conf import settings from django.conf.urls import include, url from django.conf.urls.static import static from django.contrib import admin from django.contrib.auth.views import LoginView, LogoutView from django.views.generic import TemplateView from cellcounter.main.views import ( NewCountTemplateView,...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,259
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/migrations/0003_add_display_order.py
# Generated by Django 2.2.3 on 2019-07-11 15:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("main", "0002_initial_data"), ] operations = [ migrations.AddField( model_name="celltype", name="display_order", ...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,260
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/admin.py
from django.contrib import admin from .models import CellImage, CellType, SimilarLookingGroup, License, CopyrightHolder class CellImageAdmin(admin.ModelAdmin): pass class SimilarLookingGroupAdmin(admin.ModelAdmin): pass class CellTypeAdmin(admin.ModelAdmin): pass class LicenseAdmin(admin.ModelAdmin...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,261
cellcounter/cellcounter
refs/heads/master
/cellcounter/statistics/models.py
from django.db import models from django.contrib.auth.models import User class CountInstance(models.Model): timestamp = models.DateTimeField(auto_now_add=True) session_id = models.CharField(max_length=32) ip_address = models.GenericIPAddressField() user = models.ForeignKey(User, null=True, default=Non...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,262
cellcounter/cellcounter
refs/heads/master
/cellcounter/accounts/views.py
from braces.views import LoginRequiredMixin from django.contrib import messages from django.contrib.auth import authenticate, login from django.contrib.auth.forms import PasswordChangeForm from django.contrib.auth.forms import SetPasswordForm from django.contrib.auth.models import User from django.contrib.auth.tokens i...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,263
cellcounter/cellcounter
refs/heads/master
/cellcounter/accounts/urls.py
from django.conf.urls import url from cellcounter.accounts import views urlpatterns = [ url("^new/$", views.RegistrationView.as_view(), name="register"), url("^(?P<pk>[0-9]+)/$", views.UserDetailView.as_view(), name="user-detail"), url("^(?P<pk>[0-9]+)/delete/$", views.UserDeleteView.as_view(), name="user...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,264
cellcounter/cellcounter
refs/heads/master
/cellcounter/cc_kapi/factories.py
import string from django.contrib.auth.models import User, AnonymousUser from cellcounter.main.models import CellType from .models import Keyboard, KeyMap, DefaultKeyboards from .defaults import ( BUILTIN_KEYBOARDS, BUILTIN_DESKTOP_KEYBOARD_MAP, BUILTIN_MOBILE_KEYBOARD_MAP, ) from .marshalls import Builtin...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,265
cellcounter/cellcounter
refs/heads/master
/cellcounter/accounts/test_utils.py
from django.test import TestCase from django.test.client import RequestFactory from cellcounter.cc_kapi.factories import UserFactory from .forms import PasswordResetForm from .utils import read_signup_email class Email: def __init__(self, **kwargs): self.__dict__.update(kwargs) class TestReadEmailUtil(...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,266
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/migrations/0004_display_order_data.py
# Generated by Django 2.2.3 on 2019-07-11 15:39 from django.db import migrations def set_display_order(apps, schema_editor): cell_order = [ "blasts", "promyelocytes", "myelocytes", "meta", "neutrophils", "monocytes", "basophils", "eosinophils", ...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,267
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/context_processors.py
from django.conf import settings def plausible_analytics(request): plausible_analytics_enabled = False plausible_analytics_server = "" plausible_analytics_domain_key = "" if ( hasattr(settings, "PLAUSIBLE_ANALYTICS_CONFIG") and settings.PLAUSIBLE_ANALYTICS_CONFIG["enabled"] ): ...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,268
cellcounter/cellcounter
refs/heads/master
/cellcounter/statistics/tests.py
from importlib import import_module from django.conf import settings from django.urls import reverse from django.contrib.auth.models import User from django.core.cache import cache from django.test import TestCase, RequestFactory from django.shortcuts import render from rest_framework import status from rest_framewor...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,269
cellcounter/cellcounter
refs/heads/master
/cellcounter/main/migrations/0001_initial.py
# -*- coding: utf-8 -*- from django.db import models, migrations from django.conf import settings import colorful.fields class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
{"/cellcounter/accounts/test_views.py": ["/cellcounter/cc_kapi/factories.py", "/cellcounter/accounts/forms.py", "/cellcounter/accounts/utils.py", "/cellcounter/accounts/views.py"], "/cellcounter/cc_kapi/routers.py": ["/cellcounter/cc_kapi/models.py"], "/cellcounter/cc_kapi/models.py": ["/cellcounter/main/models.py"], "...
23,336
bond/py-ise
refs/heads/master
/ise.py
import json import requests class ISEError(Exception): """Base class for ISE related Exceptions""" pass class ISEAuthError(ISEError): """Exception raised for authentication errors Attributes: message -- explaination of the error """ def __init__(self, message): self.message = message class ISENo...
{"/ise-util.py": ["/ise.py"]}
23,337
bond/py-ise
refs/heads/master
/ise-util.py
import argparse import getpass import sys # ise library import ise datatypes = ('netdevgrp','netdev') parser = argparse.ArgumentParser(description='Pull data from ISE') parser.add_argument('datatypes', metavar='datatype', nargs='+', help="{} (or 'all' for all supported data)".format(' / '.join(datatypes))) parser.ad...
{"/ise-util.py": ["/ise.py"]}
23,338
real-kk/findme-backend
refs/heads/main
/findme/diary/views.py
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from wordcloud import WordCloud from konlpy.tag import Mecab from collections import Counter import matplotlib.pyplot as plt from .serializers import DiarySerializer, DiaryListSerializer, WholeContent...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,339
real-kk/findme-backend
refs/heads/main
/findme/review/urls.py
from . import views from django.urls import path urlpatterns = [ path('', views.Review_upload.as_view(), name='review_upload'), path('counselors/<int:id>/', views.Review_get_by_counselor.as_view(), name='Review_get_by_counselor'), path('<int:id>/', views.Review_upload.as_view(), name='Review_upload'), ...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,340
real-kk/findme-backend
refs/heads/main
/findme/counsel/views.py
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from django.core.files.images import ImageFile from .models import Counsel, RegisterCounselDate from .serializer import CounselSerializer, CounselListSerializer,CounselCounselorSerializer, CounselDate...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,341
real-kk/findme-backend
refs/heads/main
/findme/voice/models.py
from django.db import models class Voice(models.Model): voice = models.FileField(upload_to="voice/", blank=True ,null=True) text = models.CharField(max_length=10000, null=True)
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,342
real-kk/findme-backend
refs/heads/main
/findme/task/models.py
from django.db import models from django.conf import settings def upload_image_to(instance, filename): import os filename_base, filename_ext = os.path.splitext(filename) return '%s%s' % (str(filename_base),filename_ext) class Task(models.Model): question = models.CharField(max_length=200, blank=True) ...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,343
real-kk/findme-backend
refs/heads/main
/findme/review/serializers.py
from rest_framework import serializers from .models import Review from rest_framework.serializers import ModelSerializer,ReadOnlyField from pytz import timezone class ReviewSerializer(serializers.ModelSerializer): class Meta: model = Review fields = '__all__' class ReviewListSerializer(serializer...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,344
real-kk/findme-backend
refs/heads/main
/findme/counsel/urls.py
from . import views from django.urls import path urlpatterns = [ path('', views.Counsel_application.as_view(), name='counsel_application'), path('<int:id>/', views.Counsel_application.as_view(), name='delete_counsel_application'), path('date/', views.CounselDate.as_view(), name='update_counsel_for_date'),...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,345
real-kk/findme-backend
refs/heads/main
/findme/review/models.py
from django.db import models from django.conf import settings class Review(models.Model): client = models.ForeignKey(settings.AUTH_USER_MODEL, related_name="+", on_delete=models.CASCADE, null=False) counselor = models.ForeignKey(settings.AUTH_USER_MODEL, related_name="+", on_delete=models.CASCADE, null=True) ...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,346
real-kk/findme-backend
refs/heads/main
/findme/diary/tests.py
import sys import io from PIL import Image sys.path.append("..") import json import tempfile from django.core.files.images import ImageFile from django.test import TestCase,Client from .models import Diary,DiaryWholeContent,LineGraph from django.db.models.fields.files import ImageField from users.models import User fr...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,347
real-kk/findme-backend
refs/heads/main
/findme/review/views.py
from django.shortcuts import render from .serializers import ReviewSerializer,ReviewListSerializer from rest_framework.views import APIView from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framewor...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,348
real-kk/findme-backend
refs/heads/main
/findme/users/tests.py
from django.test import TestCase, Client from .models import User from rest_framework.authtoken.models import Token from django.core.files.images import ImageFile import tempfile from PIL import Image import json from datetime import datetime import base64 class UserTest(TestCase): # test용 데이터 def setUp(self):...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,349
real-kk/findme-backend
refs/heads/main
/findme/task/tests.py
from django.test import TestCase import mock from django.core.files import File from django.core.files.uploadedfile import SimpleUploadedFile from django.test import TestCase,Client from users.models import User from .models import Task from .serializers import TaskSerializer,TaskQuestionSerializer from django.db.model...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,350
real-kk/findme-backend
refs/heads/main
/findme/counsel/models.py
from django.db import models from django.conf import settings def upload_image_to(instance, filename): import os filename_base, filename_ext = os.path.splitext(filename) return 'image/timetable/%s%s' % (filename_base,filename_ext ) class Counsel(models.Model): client = models.ForeignKey(settings.AUTH...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,351
real-kk/findme-backend
refs/heads/main
/findme/counsel/admin.py
from django.contrib import admin from counsel import models admin.site.register(models.Counsel) admin.site.register(models.RegisterCounselDate)
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,352
real-kk/findme-backend
refs/heads/main
/findme/task/urls.py
from . import views from django.urls import path urlpatterns = [ path('videos/<int:id>/<str:uuid>/', views.TaskUpload.as_view(), name='taskUpload'), path('', views.TaskDetail.as_view(), name='TaskDetail'), path('<int:id>/', views.TaskDetail.as_view(), name='TaskDetail'), path('questions/', views.AddTa...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,353
real-kk/findme-backend
refs/heads/main
/findme/task/admin.py
from django.contrib import admin from task import models admin.site.register(models.Task)
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,354
real-kk/findme-backend
refs/heads/main
/findme/review/tests.py
import sys sys.path.append("..") import json from django.db.models.fields.related import ForeignKey from django.test import TestCase,Client from .models import Review from users.models import User from rest_framework.authtoken.models import Token class ReviewModelTest(TestCase): @classmethod def setUpTestData(...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,355
real-kk/findme-backend
refs/heads/main
/findme/task/migrations/0001_initial.py
# Generated by Django 3.1.2 on 2020-11-17 18:21 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import task.models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MOD...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,356
real-kk/findme-backend
refs/heads/main
/findme/users/adapters.py
from allauth.account.adapter import DefaultAccountAdapter from django.contrib.sites.shortcuts import get_current_site from django.core.mail import EmailMessage from django.utils.encoding import force_bytes,force_text from django.utils.http import urlsafe_base64_decode,urlsafe_base64_encode from django.contrib.sites.sho...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,357
real-kk/findme-backend
refs/heads/main
/findme/task/serializers.py
from rest_framework import serializers from rest_framework.serializers import ModelSerializer,ReadOnlyField from .models import Task class TaskSerializer(serializers.ModelSerializer): video = serializers.FileField(use_url=True,allow_null=False) class Meta: model = Task fields = ['video'] class...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,358
real-kk/findme-backend
refs/heads/main
/findme/counsel/apps.py
from django.apps import AppConfig class CounselConfig(AppConfig): name = 'counsel'
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,359
real-kk/findme-backend
refs/heads/main
/findme/diary/serializers.py
from rest_framework import serializers from .models import Diary, DiaryWholeContent, LineGraph from rest_framework.serializers import ModelSerializer, ReadOnlyField import datetime from pytz import timezone class DiarySerializer(serializers.ModelSerializer): client_username = ReadOnlyField(source="client.username...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,360
real-kk/findme-backend
refs/heads/main
/findme/users/views.py
from django.shortcuts import render from .models import User from django.http import HttpResponse,JsonResponse from drf_yasg.utils import swagger_auto_schema from rest_framework.decorators import api_view from drf_yasg import openapi import json from django.core.serializers import serialize test_param = openapi.Paramet...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,361
real-kk/findme-backend
refs/heads/main
/findme/findme/urls.py
from django.contrib import admin from django.urls import path from django.conf.urls import include, url from allauth.account.views import confirm_email from django.conf import settings from django.conf.urls.static import static from drf_yasg.views import get_schema_view from rest_framework.permissions import AllowAny f...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,362
real-kk/findme-backend
refs/heads/main
/findme/diary/urls.py
from . import views from django.urls import path urlpatterns = [ path('diaries/', views.Text_extract_wordcloud.as_view(), name='text_extract_wordcloud'), path('diaries/<int:id>/', views.Text_extract_wordcloud.as_view(), name='text_extract_wordcloud'), path('whole_content/', views.Whole_content_to_wordclou...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,363
real-kk/findme-backend
refs/heads/main
/findme/diary/admin.py
from django.contrib import admin from diary import models admin.site.register(models.Diary) admin.site.register(models.DiaryWholeContent) admin.site.register(models.LineGraph)
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,364
real-kk/findme-backend
refs/heads/main
/findme/users/text.py
def message(domain, uidb64, token): return f"안녕하세요 FINDME 입니다.\n\n아래 링크를 클릭해서 회원 인증을 완료하세요 \n\n클릭 : {domain}/users/activate/{uidb64}/{token}"
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,365
real-kk/findme-backend
refs/heads/main
/findme/review/admin.py
from django.contrib import admin from review import models admin.site.register(models.Review)
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,366
real-kk/findme-backend
refs/heads/main
/findme/diary/models.py
from django.db import models from django.conf import settings class Diary(models.Model): client = models.ForeignKey(settings.AUTH_USER_MODEL, related_name="+", on_delete=models.CASCADE, null=True) title = models.CharField(max_length=100) create_date = models.DateTimeField( null=True) content = models....
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,367
real-kk/findme-backend
refs/heads/main
/findme/users/urls.py
from django.urls import path,include from users import views urlpatterns = [ path('email', views.EamilRedundantCheck), path('<int:id>/', views.UserInfo.as_view(),name="user_info"), path('selfinfos/', views.UserInfo.as_view(),name="user_info"), path('', views.getUserListsByUserType), path('type/', v...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,368
real-kk/findme-backend
refs/heads/main
/findme/task/views.py
from django.shortcuts import render,get_object_or_404 from rest_framework.views import APIView from rest_framework.response import Response from .serializers import * from django.core import serializers from rest_framework import status from rest_framework.authentication import TokenAuthentication from rest_framework....
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,369
real-kk/findme-backend
refs/heads/main
/findme/review/migrations/0002_auto_20201117_2212.py
# Generated by Django 3.1.2 on 2020-11-17 13:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('review', '0001_initial'), ] operations = [ migrations.AlterField( model_name='review', name='content', f...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,370
real-kk/findme-backend
refs/heads/main
/findme/users/models.py
from django.db import models from django.contrib.auth.models import AbstractUser from .managers import CustomUserManager from django.dispatch import receiver from django.db.models.signals import post_save from rest_framework.authtoken.models import Token class User(AbstractUser): first_name = None last_name =...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,371
real-kk/findme-backend
refs/heads/main
/findme/voice/views.py
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from .serializers import VoiceSerializer from .models import Voice import azure.cognitiveservices.speech as speechsdk import wave from .secret import voice_key import time import os from django.core.m...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,372
real-kk/findme-backend
refs/heads/main
/findme/counsel/tests.py
from django.test import TestCase,Client from users.models import User from .models import Counsel,RegisterCounselDate from .serializer import CounselSerializer,CounselListSerializer,CounselDateSerializer from django.db.models.fields.files import ImageField from rest_framework.authtoken.models import Token from django.d...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,373
real-kk/findme-backend
refs/heads/main
/findme/voice/urls.py
from django.urls import path, include from voice import views urlpatterns = [ path('', views.VoiceSTT.as_view(), name='VoiceSTT'), ]
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,374
real-kk/findme-backend
refs/heads/main
/findme/counsel/serializer.py
from rest_framework import serializers from rest_framework.serializers import ModelSerializer, ReadOnlyField from .models import Counsel, RegisterCounselDate class CounselSerializer(serializers.Serializer): id = ReadOnlyField() client_username = ReadOnlyField(source="client.username") counselor_username = R...
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,375
real-kk/findme-backend
refs/heads/main
/findme/voice/serializers.py
from rest_framework import serializers from rest_framework.serializers import ModelSerializer,ReadOnlyField from .models import Voice class VoiceSerializer(serializers.ModelSerializer): class Meta: model = Voice fields = ['voice']
{"/findme/diary/views.py": ["/findme/diary/serializers.py", "/findme/diary/models.py"], "/findme/counsel/views.py": ["/findme/counsel/models.py", "/findme/counsel/serializer.py"], "/findme/review/serializers.py": ["/findme/review/models.py"], "/findme/diary/tests.py": ["/findme/diary/models.py", "/findme/diary/serializ...
23,378
youngchingjui/Global-Personal-Financial-Management
refs/heads/master
/authentication.py
# authentication.py import bcrypt from database import Database import datetime def create_new_user(email, password): """ Attempts to create a new user. Checks for uniqueness on email column. If email already exists, INSERT statement will be ignored Args: email (string): Email address of user ...
{"/authentication.py": ["/database.py"], "/alipay_main.py": ["/alipay.py"], "/main.py": ["/database.py", "/authentication.py"]}
23,379
youngchingjui/Global-Personal-Financial-Management
refs/heads/master
/alipay_main.py
# main.py import alipay filename = "Raw/Alipay/20180419_20190419_ACCLOG.csv" # Get the data from the file data = alipay.extract_file(filename) # Save the converted file (now in UTF-8 format) to bucket alipay.save_to_bucket(data) # Get header data from file header_data = alipay.get_header_data(data) print("Our head...
{"/authentication.py": ["/database.py"], "/alipay_main.py": ["/alipay.py"], "/main.py": ["/database.py", "/authentication.py"]}
23,380
youngchingjui/Global-Personal-Financial-Management
refs/heads/master
/database.py
# database.py import os import pymysql import datetime import bcrypt class Database: """ Database object to connect to pfmdatabase on AWS """ def __init__(self): host = "pfm-rdbs-instance.cd5ryppsxnnf.ap-northeast-2.rds.amazonaws.com" port = 3306 dbname = 'pfmdatabase' user = ...
{"/authentication.py": ["/database.py"], "/alipay_main.py": ["/alipay.py"], "/main.py": ["/database.py", "/authentication.py"]}
23,381
youngchingjui/Global-Personal-Financial-Management
refs/heads/master
/main.py
# main.py from flask import Flask, request, jsonify, render_template, session, redirect, url_for from database import Database import authentication import bcrypt import os app = Flask(__name__) app.secret_key = os.urandom(24) @app.route('/', methods=['GET']) def main(): return render_template('index.html') # T...
{"/authentication.py": ["/database.py"], "/alipay_main.py": ["/alipay.py"], "/main.py": ["/database.py", "/authentication.py"]}
23,382
youngchingjui/Global-Personal-Financial-Management
refs/heads/master
/alipay.py
# alipay.py """ From terminal, try this command if all else doesn't work to decode Alipay file: iconv -f [ENCODER FROM] -t UTF-8 [FILENAME] file --mime [FILENAME] """ import codecs import os import chardet import cchardet import pandas as pd from datetime import datetime, timezone import pytz import pymysql import my...
{"/authentication.py": ["/database.py"], "/alipay_main.py": ["/alipay.py"], "/main.py": ["/database.py", "/authentication.py"]}
23,383
md-redwanul-haque/oop-in-python-
refs/heads/master
/class_obj_practice.py
class triangle: def __init__(self,base,height): self.base=base self.height=height def calculation(self): area= 0.5 * self.base * self.height print("Area = ",area) first= triangle(10,20) first.calculation() second= triangl...
{"/NewModule.py": ["/module2.py"]}
23,384
md-redwanul-haque/oop-in-python-
refs/heads/master
/method_overloading_practice.py
class shape: def __init__(self, base , height ): self.base = base self.height= height def area(self): print("hlw Md anik ") class triangle(shape): def area(self): super().area() # for show previous area method value = 0.5 * self.base * s...
{"/NewModule.py": ["/module2.py"]}
23,385
md-redwanul-haque/oop-in-python-
refs/heads/master
/NewModule.py
from module2 import triangle,rectangle triangle(2,3) rectangle(4,5)
{"/NewModule.py": ["/module2.py"]}
23,386
md-redwanul-haque/oop-in-python-
refs/heads/master
/type_of_inheritance.py
class A: def display1(self): print( "hellow class A") class B(A): def display2(self): print( "hellow class B") class c(B): def display3(self): super().display1() super().display2() print( "hellow class C") p= A() ...
{"/NewModule.py": ["/module2.py"]}
23,387
md-redwanul-haque/oop-in-python-
refs/heads/master
/Method_overloading.py
class samsung: def __init__(self): print("heii ki obstha ??") class Iphone(samsung): def __init__(self): super().__init__() print("hlw hlw hlw ") def new(self): print("hei hei hei ") A= Iphone() A.new() A.__init__
{"/NewModule.py": ["/module2.py"]}
23,388
md-redwanul-haque/oop-in-python-
refs/heads/master
/Abstract_class.py
from abc import ABC,abstractmethod class A(ABC): def area(self): print("hellow") @abstractmethod def new(self): pass class B: def shape(self): print("hei ") def new(self): print("hellow anik") #K=A() #you cant't crea...
{"/NewModule.py": ["/module2.py"]}
23,389
md-redwanul-haque/oop-in-python-
refs/heads/master
/new_oop.py
lines = ["this is the first line.","this is second line.","this is the third line."] with open ("test.txt","w") as fp: for line in lines: fp.write(line+"\n") with open("test.txt", "r") as fp: content= fp.read() print(content)
{"/NewModule.py": ["/module2.py"]}
23,390
md-redwanul-haque/oop-in-python-
refs/heads/master
/inheritance.py
class atm: def customer(self): print("hellow dear customer ") def manager(self): print("hellow dear manager ") def author(self): print("Hellow Author saheb") class user(atm): def permanent(self): print("hellow dear custo...
{"/NewModule.py": ["/module2.py"]}
23,391
md-redwanul-haque/oop-in-python-
refs/heads/master
/module2.py
def triangle(a,b): print(f"Area of triangle : {0.5*a*b}") def rectangle(c,d): print(f"Area of triangle : {c*d}")
{"/NewModule.py": ["/module2.py"]}
23,395
rodrigourban/llanerosales
refs/heads/master
/orders/forms.py
from django import forms from .models import OrderList, Order class OrderListForm(forms.ModelForm): class Meta: model = OrderList fields = ('title', 'description') class OrderForm(forms.ModelForm): class Meta: model = Order fields = '__all__'
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,396
rodrigourban/llanerosales
refs/heads/master
/history/views.py
from django.core.paginator import Paginator from django.contrib import messages from django.http import Http404 from django.shortcuts import ( render, redirect, get_list_or_404, get_object_or_404 ) from django.views.decorators.http import require_http_methods from .models import Sell from .forms import ...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,397
rodrigourban/llanerosales
refs/heads/master
/inventory/urls.py
from django.urls.conf import path from .views import ( article, create_item, delete_item, list_stock, create_stock ) app_name = 'inventory' urlpatterns = [ path('', article, name="index"), path('create_item', create_item, name="create-item"), path('delete_item/<int:pk>', delete_item, n...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,398
rodrigourban/llanerosales
refs/heads/master
/inventory/templatetags/inventory.py
from django import template from django.template.defaultfilters import stringfilter register = template.Library() @register.filter(name="get_url") @stringfilter def get_filtered_url(value, arg): if '?' in value: # Already has a queryset if '&order' in value: # Only one order for query...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,399
rodrigourban/llanerosales
refs/heads/master
/history/models.py
from django.db import models from django.contrib.auth import get_user_model from inventory.models import Stock User = get_user_model() class Sell(models.Model): created_at = models.DateField(auto_now_add=True) amount = models.IntegerField(default=0) sell_price = models.DecimalField( ...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,400
rodrigourban/llanerosales
refs/heads/master
/orders/urls.py
from django.urls.conf import path from .views import ( order_list, order_list_create ) app_name = 'orders' urlpatterns = [ path('', order_list, name="index"), path('create', order_list_create, name="create-orderlist"), # path('delete/<int:pk>', name="delete-orderlist"), # path('delete/order/<in...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,401
rodrigourban/llanerosales
refs/heads/master
/inventory/models.py
import os from functools import reduce from django.db import models from django.contrib.auth import get_user_model User = get_user_model() class Item(models.Model): name = models.CharField(max_length=200, unique=True) sku = models.CharField(max_length=200, unique=True) location = models.CharField(max_len...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,402
rodrigourban/llanerosales
refs/heads/master
/orders/models.py
from django.db import models from django.contrib.auth import get_user_model from inventory.models import Item User = get_user_model() class OrderList(models.Model): created_at = models.DateTimeField(auto_now_add=True) title = models.CharField(max_length=200) description = models.TextField() edited_at...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,403
rodrigourban/llanerosales
refs/heads/master
/inventory/views.py
from datetime import datetime import sys import operator from django.core.paginator import Paginator from django.contrib import messages from django.http import HttpResponse, Http404 from django.shortcuts import render, redirect, get_object_or_404 from django.views.decorators.http import require_http_methods from .form...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,404
rodrigourban/llanerosales
refs/heads/master
/inventory/forms.py
from django import forms from django.forms import ModelForm from .models import Item, Stock class ItemForm(ModelForm): initial_stock = forms.IntegerField() class Meta: model = Item fields = [ 'name', 'sku', 'location', 'sell_price', ...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,405
rodrigourban/llanerosales
refs/heads/master
/orders/views.py
from django.contrib import messages from django.core.paginator import Paginator from django.shortcuts import render from django.shortcuts import render, redirect, get_object_or_404 from django.views.decorators.http import require_http_methods from django.forms import modelformset_factory from .models import Order from ...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,406
rodrigourban/llanerosales
refs/heads/master
/history/migrations/0001_initial.py
# Generated by Django 2.1.5 on 2019-09-28 02:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('inventory', '0001_initial'), ] operations = [ migrations.CreateModel( name=...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,407
rodrigourban/llanerosales
refs/heads/master
/adminpanel/views.py
from django.shortcuts import render from django.core.paginator import Paginator from django.contrib import messages from django.http import HttpResponse, Http404 from django.shortcuts import render, redirect, get_object_or_404 from django.views.decorators.http import require_http_methods from django.contrib.auth.forms ...
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...
23,408
rodrigourban/llanerosales
refs/heads/master
/inventory/admin.py
from django.contrib import admin from .models import Item, Stock # Register your models here. admin.site.register(Item) admin.site.register(Stock)
{"/orders/forms.py": ["/orders/models.py"], "/history/views.py": ["/history/models.py", "/history/forms.py", "/inventory/models.py"], "/inventory/urls.py": ["/inventory/views.py"], "/history/models.py": ["/inventory/models.py"], "/orders/urls.py": ["/orders/views.py"], "/orders/models.py": ["/inventory/models.py"], "/i...