index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
67,752
luozhouyang/stupidtree
refs/heads/master
/stupidtree/core/node_test.py
# Copyright (c) 2018 luozhouyang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
{"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]}
67,753
luozhouyang/stupidtree
refs/heads/master
/stupidtree/examples/address/pcd_tree.py
# Copyright (c) 2018 luozhouyang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
{"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]}
67,754
luozhouyang/stupidtree
refs/heads/master
/stupidtree/examples/address/level_test.py
# Copyright (c) 2018 luozhouyang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
{"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]}
67,755
luozhouyang/stupidtree
refs/heads/master
/stupidtree/core/indexer_test.py
# Copyright (c) 2018 luozhouyang # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distrib...
{"/stupidtree/examples/address/pcd_tree_test.py": ["/stupidtree/examples/address/pcd_tree.py"]}
67,756
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/migrations/0005_auto_20210601_0943.py
# Generated by Django 3.2.3 on 2021-06-01 09:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee', '0004_auto_20210519_0944'), ] operations = [ migrations.AlterField( model_name='employee', name='aadharBa...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,757
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/views.py
from django.shortcuts import render from rest_framework import mixins from rest_framework import generics from django_filters.rest_framework import DjangoFilterBackend from django.shortcuts import get_list_or_404, get_object_or_404 from .models import Attendance from .serializers import AttendanceSerializer, FetchAtten...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,758
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0004_alter_attendance_daydate.py
# Generated by Django 3.2.3 on 2021-05-21 05:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0003_alter_attendance_daydate'), ] operations = [ migrations.AlterField( model_name='attendance', name...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,759
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0003_alter_attendance_daydate.py
# Generated by Django 3.2.3 on 2021-05-21 05:23 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0002_alter_attendance_status'), ] operations = [ migrations.AlterField( model_name='attendance', name=...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,760
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/urls.py
from django.urls import path # from .views import Register, EmployeeList, EmployeeDetail from .views import EmployeeDetails, EmployeeList urlpatterns = [ path('register/', EmployeeList.as_view(), name="register"), path('employeeList/<int:id>/', EmployeeDetails.as_view(), name="employeeList"), ] # urlpattern...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,761
shashikant1997k/wlAttendance_api
refs/heads/main
/user/migrations/0003_rename_token_user_accesstoken.py
# Generated by Django 3.2.3 on 2021-05-25 11:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('user', '0002_rename_passowrd_user_password'), ] operations = [ migrations.RenameField( model_name='user', old_name='token', ...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,762
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-05-17 06:02 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Employee', fields=[ ('id', models.BigAutoFi...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,763
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0019_alter_attendance_daydate.py
# Generated by Django 3.2.3 on 2021-05-24 10:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0018_alter_attendance_empid'), ] operations = [ migrations.AlterField( model_name='attendance', name='...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,764
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/migrations/0003_auto_20210519_0317.py
# Generated by Django 3.2.3 on 2021-05-19 03:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee', '0002_auto_20210517_1116'), ] operations = [ migrations.RenameField( model_name='employee', old_name='ima...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,765
shashikant1997k/wlAttendance_api
refs/heads/main
/user/serializers.py
from django.db.models import Q # for queries from rest_framework import serializers from rest_framework.validators import UniqueValidator from .models import User from django.core.exceptions import ValidationError from uuid import uuid4 from django.contrib.auth.hashers import make_password class UserSeriali...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,766
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0013_alter_attendance_empid.py
# Generated by Django 3.2.3 on 2021-05-24 08:11 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('employee', '0004_auto_20210519_0944'), ('attendance', '0012_alter_attendance_empid'), ] operations = [ ...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,767
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0008_auto_20210521_0847.py
# Generated by Django 3.2.3 on 2021-05-21 08:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0007_auto_20210521_0846'), ] operations = [ migrations.AlterField( model_name='attendance', name='timi...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,768
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/migrations/0002_auto_20210517_1116.py
# Generated by Django 3.2.3 on 2021-05-17 11:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee', '0001_initial'), ] operations = [ migrations.AddField( model_name='employee', name='isActive', ...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,769
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0007_auto_20210521_0846.py
# Generated by Django 3.2.3 on 2021-05-21 08:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0006_auto_20210521_0823'), ] operations = [ migrations.AlterField( model_name='attendance', name='timi...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,770
shashikant1997k/wlAttendance_api
refs/heads/main
/user/urls.py
from django.urls import path from .views import Register, Login, Logout urlpatterns = [ path('userLogin/', Login.as_view(), name="userLogin"), path('userRegister/', Register.as_view(), name="userRegister"), path('userLogout/', Logout.as_view(), name="userLogout"), ]
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,771
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/migrations/0004_auto_20210519_0944.py
# Generated by Django 3.2.3 on 2021-05-19 09:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee', '0003_auto_20210519_0317'), ] operations = [ migrations.AlterField( model_name='employee', name='aadharBa...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,772
shashikant1997k/wlAttendance_api
refs/heads/main
/user/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-05-25 10:37 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.BigAutoField(...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,773
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0002_alter_attendance_status.py
# Generated by Django 3.2.3 on 2021-05-20 05:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0001_initial'), ] operations = [ migrations.AlterField( model_name='attendance', name='status', ...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,774
shashikant1997k/wlAttendance_api
refs/heads/main
/user/models.py
from django.db import models class User(models.Model): username = models.CharField(max_length=100, unique=True) email = models.CharField(max_length=100, unique=True) password = models.CharField(max_length=50, default="") role = models.CharField(max_length=50, default="") ifLogged = models.BooleanF...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,775
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/migrations/0006_auto_20210602_0446.py
# Generated by Django 3.2.3 on 2021-06-02 04:46 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('employee', '0005_auto_20210601_0943'), ] operations = [ migrations.AlterField( model_name='employee', name='aadharBa...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,776
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/serializers.py
from django.db.models import Q # for queries from rest_framework import serializers from rest_framework.validators import UniqueValidator from .models import Employee class EmployeeRegisterSerializer(serializers.ModelSerializer): class Meta: model = Employee fields = ['id', 'empID', 'n...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,777
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/models.py
from django.db import models from employee.models import Employee class Attendance(models.Model): empID = models.ForeignKey( Employee, on_delete=models.SET_NULL, to_field='empID', db_constraint=False, null=True) daydate = models.DateField(auto_now_add=True) # daydate = models.DateField() timin...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,778
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/views.py
from django.shortcuts import render from rest_framework import mixins from rest_framework import generics from django_filters.rest_framework import DjangoFilterBackend from .models import Employee from .serializers import EmployeeRegisterSerializer from django.db import IntegrityError from rest_framework.response impor...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,779
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0011_alter_attendance_empid.py
# Generated by Django 3.2.3 on 2021-05-24 07:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0010_alter_attendance_empid'), ] operations = [ migrations.AlterField( model_name='attendance', name='...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,780
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/urls.py
from django.urls import path from .views import AttendanceInput, AttendanceList, FetchAttendance urlpatterns = [ path('attendanceInput/', AttendanceInput.as_view(), name="attendanceInput"), path('attendanceList/<int:id>/', AttendanceList.as_view(), name="attendanceList"), path('fetchAttendance/',...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,781
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/serializers.py
from django.db.models import Q # for queries from rest_framework import serializers from rest_framework.validators import UniqueValidator from .models import Attendance from employee.serializers import EmployeeRegisterSerializer class AttendanceSerializer(serializers.ModelSerializer): # timing_in = seria...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,782
shashikant1997k/wlAttendance_api
refs/heads/main
/employee/models.py
from django.db import models class Employee(models.Model): empID = models.CharField(max_length=20, unique=True) name = models.CharField(max_length=150, default="") aadharNumber = models.CharField(max_length=20, unique=True) # aadharFrontImage = models.TextField( # default="https://blog.qburst....
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,783
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/admin.py
from django.contrib import admin from .models import Attendance admin.site.register(Attendance)
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,784
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0022_alter_attendance_empid.py
# Generated by Django 3.2.3 on 2021-06-03 02:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('employee', '0006_auto_20210602_0446'), ('attendance', '0021_alter_attendance_empid'), ] operations = [ ...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,785
shashikant1997k/wlAttendance_api
refs/heads/main
/attendance/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-05-20 05:26 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Attendance', fields=[ ('id', models.BigAuto...
{"/attendance/views.py": ["/attendance/models.py", "/attendance/serializers.py"], "/employee/urls.py": ["/employee/views.py"], "/user/serializers.py": ["/user/models.py"], "/employee/serializers.py": ["/employee/models.py"], "/attendance/models.py": ["/employee/models.py"], "/employee/views.py": ["/employee/models.py",...
67,786
go925315/CNN
refs/heads/master
/AlexNet.py
import torch import torch.nn as nn import torch.nn.functional as F class AlexNet(nn.Module): def __init__(self): super(AlexNet, self).__init__() self.features = nn.Sequential( nn.Conv2d(3, 96, kernel_size=11, stride=4, padding=2), nn.ReLU(inplace=True), nn.MaxPoo...
{"/main.py": ["/GoogleNet.py"]}
67,787
go925315/CNN
refs/heads/master
/main.py
import os import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim import torchvision from torchvision import transforms import matplotlib.pyplot as plt import numpy as np import time # import AlexNet # import VGG import GoogleNet # os.environ["CUDA_VISIBLE_DEVICES"]="1" device =...
{"/main.py": ["/GoogleNet.py"]}
67,788
go925315/CNN
refs/heads/master
/ResNet.py
import torch import torch.nn as nn import torch.nn.functional as F import torchsummary class basicBlock(nn.Module): expansion = 1 def __init__(self, in_channels, out_channals, stride=1, downsampling=False): super(basicBlock, self).__init__() self.downsampling = downsampling ...
{"/main.py": ["/GoogleNet.py"]}
67,789
go925315/CNN
refs/heads/master
/VGG.py
import torch import torch.nn as nn cfg = { 'VGG11' : [64, 'M', 128, 'M', 256, 256 , 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG13': [64, 64, 'M', 128, 128, 'M', 256, 256, 'M', 512, 512, 'M', 512, 512, 'M'], 'VGG16': [64, 64, 'M', 128, 128, 'M', 256, 256, 256, 'M', 512, 512, 512, 'M', 512, 512, 512, 'M'], ...
{"/main.py": ["/GoogleNet.py"]}
67,790
go925315/CNN
refs/heads/master
/GoogleNet.py
import torch import torch.nn as nn import torch.nn.functional as F import torchsummary class basicConv2d(nn.Module): def __init__(self, in_channels, out_channals, **kwargs): super(basicConv2d, self).__init__() self.conv = nn.Conv2d(in_channels, out_channals, **kwargs) self.bn = nn.BatchNorm...
{"/main.py": ["/GoogleNet.py"]}
67,799
sreejithr/IntelligentMapMiner
refs/heads/master
/persistent_store.py
import copy # import json # import requests import redis class RedisStore: def store_coordinate(self, list_of_coordinates): r_server = redis.Redis("localhost") for coordinate in list_of_coordinates: r_server.sadd("coordinates", ','.join([str(each) for each in coordinate])) def sto...
{"/coordinate_finder.py": ["/mercator.py"]}
67,800
sreejithr/IntelligentMapMiner
refs/heads/master
/coordinate_finder.py
import requests import mercator from map_extract_tool.map_extract import OpenCVMapAnalyzer class GETException(Exception): def __init__(self, message): self.message = message super.__init__(self) def map_analyzer_pixel_to_map_pixel(center_pixel_x, center_pixel_y, pixel_coordinate, image_resolution): """ Conv...
{"/coordinate_finder.py": ["/mercator.py"]}
67,801
sreejithr/IntelligentMapMiner
refs/heads/master
/server.py
import os import json import copy import time from flask import (Flask, request, render_template) from persistent_store import RedisStore from coordinate_finder import (get_coordinates, add_pixel_to_latlng) WEB_SERVER = "http://127.0.0.1:5000/" app = Flask(__name__) app.config['WEB_SERVER'] = WEB_SERVER app.config...
{"/coordinate_finder.py": ["/mercator.py"]}
67,802
sreejithr/IntelligentMapMiner
refs/heads/master
/test_persistent_store.py
import unittest from persistent_store import PersistentStore DB_NAME = "addresses" SECONDARY_DB_NAME = "coordinates" class TestPersistentStore(unittest.TestCase): def setUp(self): self.data = [{'coordinate': ['18.56988', '73.93912'], 'address': None}, {'coordinate': ['18.46416', '73....
{"/coordinate_finder.py": ["/mercator.py"]}
67,803
sreejithr/IntelligentMapMiner
refs/heads/master
/mercator.py
import math TILE_SIZE = 256 pixelOrigin_x = TILE_SIZE/2.0 pixelOrigin_y = TILE_SIZE/2.0 pixelsPerLngDegree = TILE_SIZE/360.0 pixelsPerLngRadian = TILE_SIZE/(2*math.pi) def latlng_to_world_coordinate(lat, lng): w1 = pixelOrigin_x + lng * pixelsPerLngDegree siny = math.sin(math.radians(lat)) w2 =\ pixelOrigin_y...
{"/coordinate_finder.py": ["/mercator.py"]}
67,878
mugiwara-forks/hablemos-discordpy-bot
refs/heads/main
/cogs/convo_starter.py
from random import choice from .convo_db import random_question, tables, tables_values, tables_keys, tables_first_two_characters from .general import General as gen from discord.ext import commands from discord import Embed # Embed Message DEEPL_URL = "https://www.deepl.com/translator" # SUGGESTION_FORM = "https://doc...
{"/cogs/convo_starter.py": ["/cogs/convo_db.py", "/cogs/general.py"]}
67,879
mugiwara-forks/hablemos-discordpy-bot
refs/heads/main
/hablemos.py
import os from discord import Game, Embed, Color from discord.ext.commands import Bot, CommandNotFound, Cog from dotenv import load_dotenv load_dotenv('.env') PREFIX = "$" cog_extensions = ['cogs.convo_starter', 'cogs.general'] def embed_message(title, user, channel, guild, message): embed = Embed(color=Color.g...
{"/cogs/convo_starter.py": ["/cogs/convo_db.py", "/cogs/general.py"]}
67,880
mugiwara-forks/hablemos-discordpy-bot
refs/heads/main
/cogs/general.py
from discord.ext import commands from discord import Embed, Color, Forbidden SOURCE_URL = 'https://github.com/Jaleel-VS/hablemos-discordpy-bot#sources' REPO = 'https://github.com/Jaleel-VS/hablemos-discordpy-bot' DPY = 'https://discordpy.readthedocs.io/en/latest/' def green_embed(text): return Embed(description=...
{"/cogs/convo_starter.py": ["/cogs/convo_db.py", "/cogs/general.py"]}
67,881
mugiwara-forks/hablemos-discordpy-bot
refs/heads/main
/cogs/convo_db.py
import sqlite3 # Sqlite3 tables dictionary tables = {'general': 'generales', 'personal': 'personales', 'tv': 'televisión', 'movies': 'películas', 'books': 'libros', "music": 'música', 'tech': 'tecnología', 'sport': 'deportes', 'food': 'comida_cocina', 'travel': 'viajes', 'fashion': 'ropa', ...
{"/cogs/convo_starter.py": ["/cogs/convo_db.py", "/cogs/general.py"]}
67,882
ayush-2810/Milaap
refs/heads/master
/child/admin.py
from django.contrib import admin # Register your models here. from .models import esehi admin.site.register(esehi)
{"/child/views.py": ["/child/forms.py"]}
67,883
ayush-2810/Milaap
refs/heads/master
/child/views.py
import os import js2py import sqlite3 from django.template.loader import render_to_string import cv2 from django.contrib.auth.models import User import numpy as np from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from dj...
{"/child/views.py": ["/child/forms.py"]}
67,884
ayush-2810/Milaap
refs/heads/master
/child/forms.py
from django import forms from child.models import esehi from django.shortcuts import render,redirect from django.contrib.auth.models import User from django.contrib.auth.forms import UserCreationForm class addmemberform(forms.ModelForm): name=forms.CharField(widget=forms.TextInput( attrs={ 'class':'form-control', ...
{"/child/views.py": ["/child/forms.py"]}
67,885
ayush-2810/Milaap
refs/heads/master
/child/templatetags/extratags.py
from child.models import esehi from django import template register = template.Library() @register.filter(name='filter') def filter(t): return esehi.objects.filter(id=t).count() #@register.filter(name='add1') #def add1(): # return esehi.objects.all().count()
{"/child/views.py": ["/child/forms.py"]}
67,886
ayush-2810/Milaap
refs/heads/master
/detect.py
import requests headers = { "app_id": "4985f625", "app_key": "aa9e5d2ec3b00306b2d9588c3a25d68e" } data={ "image":"https://pbs.twimg.com/profile_images/1150960759838371841/UhAIoM9q_400x400.jpg", "subject_id":"Elizabeth", "gallery_name":"MyGallery" } url = "http://api.kairos.com/detect" # make request r = request...
{"/child/views.py": ["/child/forms.py"]}
67,887
ayush-2810/Milaap
refs/heads/master
/child/urls.py
from django.contrib import admin from django.urls import path,include from django.conf import settings from django.conf.urls import url from django.contrib.auth.views import ( LoginView, LogoutView ) from . import views from django.conf.urls.static import static urlpatterns=[ path('',views.home,name="home")...
{"/child/views.py": ["/child/forms.py"]}
67,892
tupm2208/alco_receiver
refs/heads/master
/alco_pb2_grpc.py
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import alco_pb2 as alco__pb2 class CaregiverResultStub(object): """The greeting service definition. """ def __init__(self, channel): """Co...
{"/alco_server.py": ["/alco_pb2_grpc.py"]}
67,893
tupm2208/alco_receiver
refs/heads/master
/alco_server.py
# Copyright 2020 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
{"/alco_server.py": ["/alco_pb2_grpc.py"]}
67,902
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_plots.py
import sys import os.path as o import os sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ".."))) # os.chdir('../') from wrapper_base import read_experiment_results from data_farming_base import DesignPoint, DataFarmingExperiment, DataFarmingMetaExperiment from csv import DictReader solver...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,903
evaz1121/simopt
refs/heads/master
/simopt/test/test_sscont_oracle.py
import unittest from rng.mrg32k3a import MRG32k3a from oracles.sscont import SSCont class TestSSContOracle(unittest.TestCase): def test_replicate(self): myoracle = SSCont() rng_list = [MRG32k3a(s_ss_sss_index=[0, ss, 0]) for ss in range(myoracle.n_rngs)] responses, gradients = myoracle...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,904
evaz1121/simopt
refs/heads/master
/simopt/data_farming_base.py
import numpy as np import os import csv import pickle from copy import deepcopy from directory import oracle_directory from rng.mrg32k3a import MRG32k3a from wrapper_base import Experiment class DesignPoint(object): """ Base class for design points represented as dictionaries of factors. Attributes ...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,905
evaz1121/simopt
refs/heads/master
/simopt/base.py
#!/usr/bin/env python """ Summary ------- Provide base classes for solvers, problems, and oracles. Listing ------- Solver : class Problem : class Oracle : class Solution : class """ import numpy as np from copy import deepcopy from rng.mrg32k3a import MRG32k3a class Solver(object): """ Base class to imple...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,906
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_run_wrapper.py
import numpy as np import sys import os.path as o sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ".."))) from rng.mrg32k3a import MRG32k3a from base import Solver, Problem, Oracle, Solution from wrapper_base import Experiment, read_experiment_results, MetaExperiment mymetaexperiment = Met...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,907
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_oracle.py
""" This script is intended to help with debugging an oracle. It imports an oracle, initializes an oracle object with given factors, sets up pseudorandom number generators, and runs one or more replications. """ import sys import os.path as o sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,908
evaz1121/simopt
refs/heads/master
/simopt/rng/__init__.py
from .mrg32k3a import MRG32k3a
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,909
evaz1121/simopt
refs/heads/master
/simopt/wrapper_base.py
#!/usr/bin/env python """ Summary ------- Provide base classes for experiments and meta experiments. Plus helper functions for reading/writing data and plotting. Listing ------- Curve : class mean_of_curves : function quantile_of_curves : function cdf_of_curves_crossing_times : function quantile_cross_jump : function ...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,910
evaz1121/simopt
refs/heads/master
/simopt/test/__init__.py
# from . import test_matmodops, test_mrg32k3a
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,911
evaz1121/simopt
refs/heads/master
/simopt/test/test_matmodops.py
import unittest from rng.matmodops import * A = [[1, 2, 3], [4, 5, 6], [7, 8, 9] ] Aneg = [[-1, -2, -3], [-4, -5, -6], [-7, -8, -9] ] b = [1, 2, 3] bneg = [-1, -2, -3] m = 3 class TestMatModOps(unittest.TestCase): def test_mat33_mat31_mult(self): self.assertEqual...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,912
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_df_wrapper.py
import sys import os.path as o import os sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ".."))) # os.chdir('../') # from oracles.mm1queue import MM1Queue from data_farming_base import DesignPoint, DataFarmingExperiment, DataFarmingMetaExperiment from csv import DictReader # factor_header...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,913
evaz1121/simopt
refs/heads/master
/simopt/rng/matmodops.py
#!/usr/bin/env python """ Summary ------- Useful matrix/modulus operations for mrg32k3a generator. Listing ------- mat33_mat31_mult mat33_mat33_mult mat31_mod mat33_mod mat33_mat33_mod mat33_power_mod """ def mat33_mat31_mult(A, b): """ Multiply a 3x3 matrix with a 3x1 matrix. Arguments --------- ...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,914
evaz1121/simopt
refs/heads/master
/simopt/directory.py
#!/usr/bin/env python """ Summary ------- Provide dictionary directories listing solvers, problems, and oracles. Listing ------- solver_directory : dictionary problem_directory : dictionary oracle_directory : dictionary """ # import solvers from solvers.astrodf import ASTRODF from solvers.randomsearch import RandomSea...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,915
evaz1121/simopt
refs/heads/master
/simopt/rng/mrg32k3a.py
#!/usr/bin/env python """ Summary ------- Provide a subclass of random.Random using mrg32k3a as the generator with stream/substream/subsubstream support. Listing ------- MRG32k3a : class advance_stream : method advance_substream : method advance_subsubstream : method reset_stream : method reset_substream : method rese...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,916
evaz1121/simopt
refs/heads/master
/simopt/test/test_mrg32k3a.py
import unittest from rng.mrg32k3a import * A1p127 = [[2427906178, 3580155704, 949770784], [226153695, 1230515664, 3580155704], [1988835001, 986791581, 1230515664] ] A2p127 = [[1464411153, 277697599, 1610723613], [32183930, 1464411153.0, 1022607788], [2824425944, 32...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,917
evaz1121/simopt
refs/heads/master
/simopt/timing.py
import cProfile import pstats import io #import run_experiments pr = cProfile.Profile() pr.enable() #exec(open("run_experiments.py").read()) exec(open("run_experiments.py").read()) pr.disable() s = io.StringIO() ps = pstats.Stats(pr, stream=s).sort_stats('tottime') ps.print_stats() with open('profile_results.txt',...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,918
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_problem.py
import numpy as np import sys import os.path as o sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ".."))) from rng.mrg32k3a import MRG32k3a from oracles.cntnv import CntNVMaxProfit # from oracles.mm1queue import MM1MinMeanSojournTime # from oracles.facilitysizing import FacilitySizingTotalC...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,919
evaz1121/simopt
refs/heads/master
/simopt/solvers/astrodf.py
""" Summary ------- ASTRODF Based on the sample average approximation, the solver makes the surrogate model within the trust region at each iteration k. The sample sizes are determined adaptively. Solve the subproblem and decide whether the algorithm take the candidate solution as next ieration center point or no...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,920
evaz1121/simopt
refs/heads/master
/simopt/timing_bootstrap.py
from wrapper_base import Experiment, read_experiment_results, post_normalize, plot_progress_curves # new_experiment = Experiment(solver_name="RNDSRCH", # problem_name="CNTNEWS-1") # # Run experiment with M = 100. # new_experiment.run(n_macroreps=100) # # Post replicate experiment with N = 1...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,921
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_solver_problem.py
import sys import os.path as o import os sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ".."))) # os.chdir('../') from wrapper_base import Experiment, read_experiment_results solver_name = "RNDSRCH" # random search solver problem_name = "CNTNEWS-1" myexperiment = Experiment(solver_name, p...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,922
evaz1121/simopt
refs/heads/master
/simopt/solvers/simannealing.py
""" Summary ------- Simulated Annealing in Noisy Environments (SANE). """ import numpy as np import scipy.stats as ss from base import Solver, Solution class SANE(Solver): """ Simulated Annealing in Noisy Environments (SANE) "Simulated Annealing in the Presence of Noise" Jurgen Branke, Stephan Meisel...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,923
evaz1121/simopt
refs/heads/master
/simopt/run_experiments.py
from wrapper_base import Experiment, plot_area_scatterplots, post_normalize, plot_progress_curves, plot_solvability_cdfs, read_experiment_results, plot_solvability_profiles from rng.mrg32k3a import MRG32k3a # 3 versions of random search rs_sample_sizes = [10, 50, 100] # Problem ranges: 5*5 = 25 problem instances dema...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,924
evaz1121/simopt
refs/heads/master
/simopt/demo/demo_multiple_solvers.py
import sys import os.path as o import os sys.path.append(o.abspath(o.join(o.dirname(sys.modules[__name__].__file__), ".."))) from wrapper_base import MetaExperiment mymetaexperiment = MetaExperiment(solver_names=["RNDSRCH", "ASTRODF"], problem_names=["CNTNEWS-1", "MM1-1"]) #, fixed_factors_filename="all_factors") pri...
{"/simopt/rng/__init__.py": ["/simopt/rng/mrg32k3a.py"], "/simopt/rng/mrg32k3a.py": ["/simopt/rng/matmodops.py"]}
67,931
welld7/db_quality
refs/heads/master
/db_test.py
#from random import randint import pytest from db_quality_main import * @pytest.fixture() def handle_connection(): conn = create_connection(database2) yield conn conn.close() @pytest.mark.sanity_db_exists @pytest.mark.db_exists def test_check_status_table_exists(handle_connection): conn = handle_conn...
{"/db_test.py": ["/db_quality_main.py"], "/generate_db.py": ["/db_quality_main.py"], "/sanity_test.py": ["/db_quality_main.py"]}
67,932
welld7/db_quality
refs/heads/master
/generate_db.py
from db_quality_main import * from string import ascii_lowercase #from pairing import pair, depair MIN = -1000000 MAX = 1000000 MAX_STR_LENGTH = 10 MAX_ID = 1000000 GENERATE_DAYS=10 ROWS_PER_DAY=3 # standard Cantor pairing function pairing_function = lambda a, b: ((a + b) * (a + b + 1) +b) / 2 def get_prev_day_raw...
{"/db_test.py": ["/db_quality_main.py"], "/generate_db.py": ["/db_quality_main.py"], "/sanity_test.py": ["/db_quality_main.py"]}
67,933
welld7/db_quality
refs/heads/master
/db_quality_main.py
import sqlite3 from random import randint, uniform, choice import datetime database = "pythonsqlite.db" database_tmp = "pythonsqlite_tmp.db" database2 = "pythonsqlite_backup_12.db" sql_create_main_table = """ CREATE TABLE IF NOT EXISTS check_object ( load_date date, ...
{"/db_test.py": ["/db_quality_main.py"], "/generate_db.py": ["/db_quality_main.py"], "/sanity_test.py": ["/db_quality_main.py"]}
67,934
welld7/db_quality
refs/heads/master
/sanity_test.py
#from random import randint import pytest from db_quality_main import * load_date1 = '2017-01-05' some_date2 = '2013-01-05' some_sting = "hi" @pytest.fixture() def handle_connection(): conn = create_connection(database_tmp) yield conn conn.close() @pytest.fixture() def handle_connection_and_drop(): ...
{"/db_test.py": ["/db_quality_main.py"], "/generate_db.py": ["/db_quality_main.py"], "/sanity_test.py": ["/db_quality_main.py"]}
67,969
alperencesur/itucsdb1943
refs/heads/master
/classes/veteriner.py
class Veteriner: def __init__ (self, vetid, address, district, serviceRate, priceRate, telephone, overallScore, vetName, voteNum, cityName): self.vetid = vetid self.address = address self.district = district self.serviceRate = serviceRate self.priceRate = priceRate se...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,970
alperencesur/itucsdb1943
refs/heads/master
/classes/Users.py
import psycopg2 as dbapi2 from flask import current_app from flask_login import UserMixin url = "postgres://rgkksygg:BO8pGAZa6BqFR84mF43EMNNljm3jRnM5@rogue.db.elephantsql.com:5432/rgkksygg" class Users(UserMixin): def __init__(self,id,name,surname,username,isVet,password,facebookLink,twitterLink,youtubeLink,insta...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,971
alperencesur/itucsdb1943
refs/heads/master
/classes/Database.py
# coding=utf-8 import os from classes.post import Post from classes.comment import Comment from classes.foundation import Foundation from classes.blog import Blog from classes.notices import Notice import psycopg2 as dbapi2 from classes.veteriner import Veteriner from classes.rate import * from classes.fo...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,972
alperencesur/itucsdb1943
refs/heads/master
/server.py
# coding=utf-8 import os import sys from datetime import datetime as dt from os.path import dirname, join, realpath import psycopg2 as dbapi2 from flask import (Blueprint, Flask, current_app, flash, redirect, render_template, request, session, url_for) from flask_login import (LoginManager,...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,973
alperencesur/itucsdb1943
refs/heads/master
/classes/Profile.py
class Profile(): def __init__(self,name,surname,username,isVet,facebookLink,twitterLink,youtubeLink,instagramLink,websiteLink,registerTime,photoURL): self.name = name self.surname = surname self.email = username self.isVet = isVet self.photoURL = photoURL ...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,974
alperencesur/itucsdb1943
refs/heads/master
/classes/Notification.py
class Notificition: def __init__(self,notificationID,userName,userSurname,postTitle,notificationType,notificationTime,isSeen,postType,description,content): self.notificitionID = notificationID self.userName = userName self.userSurname = userSurname self.postTitle = postTitle ...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,975
alperencesur/itucsdb1943
refs/heads/master
/classes/post.py
class Post: def __init__(self, postid, userid, postdate, photo, title, description=None, posttag=None): self.postid = postid self.userid = userid self.postdate = postdate self.photo = photo self.description = description self.title = title self.posttag = postt...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,976
alperencesur/itucsdb1943
refs/heads/master
/classes/__init__.py
import psycopg2 as dbapi2 CREATE_QUERIES = [ """ CREATE TABLE Users ( USERID SERIAL PRIMARY KEY, NAME VARCHAR(40) NOT NULL, SURNAME VARCHAR(40) NOT NULL, EMA...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,977
alperencesur/itucsdb1943
refs/heads/master
/classes/rate.py
class Rate: def __init__(self, rateid, userid, vetid, overallScore, priceRate, serviceRate, comment, title, date): self.rateid = rateid self.userid = userid self.vetid = vetid self.overallScore = overallScore self.priceRate = priceRate self.serviceRate = serviceRate ...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,978
alperencesur/itucsdb1943
refs/heads/master
/classes/blog.py
class Blog: def __init__(self, blogid, userid, blogtag, title, text, likeNum, dislikeNum, photo,postdate): self.blogid = blogid self.userid = userid self.blogtag = blogtag self.title = title self.text = text self.likeNum = likeNum self.dislikeNum = dislikeNum self.photo = photo self.postda...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,979
alperencesur/itucsdb1943
refs/heads/master
/views.py
from flask import Blueprint, render_template , redirect , current_app,url_for from flask import request,flash,session,abort from datetime import datetime as dt from flask_login import LoginManager,login_user,login_required,current_user from datetime import datetime now = datetime.now() from flask_login import logout_us...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,980
alperencesur/itucsdb1943
refs/heads/master
/classes/notices.py
class Notice: def __init__(self,noticeID,userID,name,surname,animalType,age,strain,gender,photoURL,isLost,description,contact,date,place): self.noticeID = noticeID self.name = name self.surname = surname self.userID = userID self.animalType = animalType self.age = age...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,981
alperencesur/itucsdb1943
refs/heads/master
/classes/comment.py
class Comment: def __init__(self, commentid, postid, userid, date, comment, posttype ): self.commentid = commentid self.postid = postid self.userid = userid self.date = date self.comment = comment self.posttype = posttype #patigram icin 0 olacak, bu objeyi baska kull...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,982
alperencesur/itucsdb1943
refs/heads/master
/classes/foundationcontact.py
class FoundationContact(): def __init__(self, foundid, facebook, twitter, instagram, youtube, website): self.foundid = foundid self.facebook = facebook self.twitter = twitter self.instagram = instagram self.youtube = youtube self.website = website
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,983
alperencesur/itucsdb1943
refs/heads/master
/classes/forms.py
from flask_wtf import FlaskForm from wtforms import FileField, SubmitField, FormField, PasswordField, StringField, TextAreaField, SelectField, RadioField, FloatField, IntegerField from wtforms.validators import DataRequired, NumberRange, Length, Regexp class LoginForm(FlaskForm): username = StringField("Username...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,984
alperencesur/itucsdb1943
refs/heads/master
/classes/foundation.py
class Foundation(): def __init__(self, foundid, photo, donationurl, about, foundname, address, facebook, twitter,instagram, website): self.foundid = foundid self.photo = photo self.donationurl = donationurl self.about = about self.foundname = foundname self.add...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...
67,985
alperencesur/itucsdb1943
refs/heads/master
/dbinit.py
import os import sys from flask_login import (LoginManager, current_user, login_required, login_user, logout_user) import sys from datetime import datetime as dt from os.path import dirname, join, realpath import psycopg2 as dbapi2 from flask import (Blueprint, Flask, current_app, flash, redir...
{"/classes/Database.py": ["/classes/post.py", "/classes/comment.py", "/classes/foundation.py", "/classes/blog.py", "/classes/notices.py", "/classes/veteriner.py", "/classes/rate.py", "/classes/foundationcontact.py", "/classes/Notification.py", "/classes/Profile.py"], "/server.py": ["/classes/comment.py", "/classes/Data...