index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
45,956
rgienko/appealsMasterv2
refs/heads/master
/app/admin.py
from django.contrib import admin from .models import * # Register your models here. @admin.register(action_master) class action_master_admin(admin.ModelAdmin): list_display = ('id', 'note', 'description', 'lead_time', 'type') @admin.register(provider_master) class action_master_damin(admin.ModelAdmin): list_...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,957
rgienko/appealsMasterv2
refs/heads/master
/app/views.py
from django.shortcuts import render, redirect, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect from django.urls import reverse, reverse_lazy from django.contrib import messages from app.auth_helper import get_sign_in_url, get_token_from_code, store_token, store_user, remove_user_and_token, ...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,958
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0013_auto_20200428_1627.py
# Generated by Django 2.1.15 on 2020-04-28 21:27 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('app', '0012_auto_20200422_1536'), ] operations = [ migrations.CreateModel( name='f...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,959
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0010_auto_20200420_1603.py
# Generated by Django 2.1.15 on 2020-04-20 21:03 from django.db import migrations, models import tinymce.models class Migration(migrations.Migration): dependencies = [ ('app', '0009_auto_20200420_1524'), ] operations = [ migrations.AlterField( model_name='appeal_master', ...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,960
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0008_auto_20200415_1422.py
# Generated by Django 2.1.15 on 2020-04-15 19:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0007_auto_20200415_1109'), ] operations = [ migrations.AlterField( model_name='provider_master', name='case_...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,961
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0004_auto_20200413_1602.py
# Generated by Django 2.1.15 on 2020-04-13 21:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0003_auto_20200413_1539'), ] operations = [ migrations.RemoveField( model_name='case_ma...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,962
rgienko/appealsMasterv2
refs/heads/master
/app/filters.py
import django_filters class provider_name_filter(django_filters.FilterSet): class Meta: model = prov_name_master fields = ['is_client']
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,963
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0002_auto_20200410_1550.py
# Generated by Django 2.1.15 on 2020-04-10 20:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='prov_name_master', name='fye', ...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,964
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0007_auto_20200415_1109.py
# Generated by Django 2.1.15 on 2020-04-15 16:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0006_auto_20200414_1618'), ] operations = [ migrations.AlterField( model_name='critical_dates_master', name=...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,965
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0009_auto_20200420_1524.py
# Generated by Django 2.1.15 on 2020-04-20 20:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0008_auto_20200415_1422'), ] operations = [ migrations.AddField( model_name='appeal_master', name='is_ffy', ...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,966
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0001_initial.py
# Generated by Django 2.1.15 on 2020-04-10 20:11 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='action_master', ...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,967
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0014_auto_20200430_1443.py
# Generated by Django 2.1.15 on 2020-04-30 19:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0013_auto_20200428_1627'), ] operations = [ migrations.AlterField( model_name='file_storage', name='file_typ...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,968
rgienko/appealsMasterv2
refs/heads/master
/app/models.py
from django.db import models from django.urls import reverse import uuid from datetime import date # Create your models here. # FORIEGN KEY TABLES class action_master(models.Model): id = models.CharField(primary_key=True, max_length=25) note = models.TextField(blank=True, null=True) description = model...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,969
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0011_auto_20200421_1536.py
# Generated by Django 2.1.15 on 2020-04-21 20:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('app', '0010_auto_20200420_1603'), ] operations = [ migrations.AlterField( model_name='issue_ma...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,970
rgienko/appealsMasterv2
refs/heads/master
/app/urls.py
"""appealsMasterv2 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cla...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,971
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0003_auto_20200413_1539.py
# Generated by Django 2.1.15 on 2020-04-13 20:39 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0002_auto_20200410_1550'), ] operations = [ migrations.AddField( model_name='provider_master', name='fiscal_...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,972
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0005_auto_20200413_2217.py
# Generated by Django 2.1.15 on 2020-04-14 03:17 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('app', '0004_auto_20200413_1602'), ] operations = [ migrations.CreateModel( name='c...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,973
rgienko/appealsMasterv2
refs/heads/master
/app/migrations/0012_auto_20200422_1536.py
# Generated by Django 2.1.15 on 2020-04-22 20:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0011_auto_20200421_1536'), ] operations = [ migrations.AlterField( model_name='issue_master', name='category...
{"/app/forms.py": ["/app/models.py"], "/app/admin.py": ["/app/models.py"], "/app/views.py": ["/app/forms.py", "/app/models.py"], "/app/urls.py": ["/app/views.py"]}
45,979
langchristian96/student-registers
refs/heads/master
/Domain/GradeValidator.py
from Domain.Grades import * from Domain.Exceptions import * class gradeValidator: @staticmethod def validate(grade): if isinstance(grade,Grade)==False: raise StudentException("Can only validate grade objects") er="" if len(grade.getTeacher())==0: er+="Grade must h...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,980
langchristian96/student-registers
refs/heads/master
/Test/TestDisciplines.py
import unittest from Domain.Disciplines import * class TestDisciplines(unittest.TestCase): def setUp(self): self.discipline=Discipline('qwert') def testGetDiscipline(self): self.assertEqual(self.discipline.getDiscipline(), 'qwert') def testSetDiscipline(self): self...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,981
langchristian96/student-registers
refs/heads/master
/BaseFile/FileGradeBase.py
from Base.GradeBase import GradeBase from Domain.Grades import Grade class FileGradeBase(GradeBase): _fName="grades.txt" def __init__(self): GradeBase.__init__(self) self.__loadFromFile() def add(self,stud): GradeBase.add(self, stud) self.__storeToFile() def update(self, ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,982
langchristian96/student-registers
refs/heads/master
/Base/GradeBase.py
from Domain.Exceptions import StudentException from Domain.Grades import Grade class GradeBase: def __init__(self): ''' Creates an instance of the GradeBase. ''' self.__data=[] def __find(self,id): ''' Returns the index grade having the given id. In...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,983
langchristian96/student-registers
refs/heads/master
/AppCoordinator.py
from Domain.Students import * from Domain.Disciplines import * from Domain.Grades import * from Base.GradeBase import * from Base.DisciplineBase import * from Base.StudentBase import * from Controller.DisciplineController import * from Controller.StudentController import * from Controller.GradeController import * from ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,984
langchristian96/student-registers
refs/heads/master
/Controller/ChangeHistory.py
class AddOperation: def __init__(self,object): """ Creates an instance of AddOperation """ self.__object=object def getObject(self): """ Getter for object """ return self.__object class RemoveOperation: def __init__(self,object): ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,985
langchristian96/student-registers
refs/heads/master
/Test/TestGrades.py
import unittest from Domain.Grades import * class testGrades(unittest.TestCase): def setUp(self): self.c=Grade('FPcurs',9,'arthur',10) self.c2=Grade('FPcurs',10,'arthur',9) def testGet(self): self.assertEqual(self.c.getDiscipline(), 'FPcurs') self.assertEqual(self.c2.getDisciplin...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,986
langchristian96/student-registers
refs/heads/master
/Domain/StudentValidator.py
from Domain.Students import * from Domain.Exceptions import * class StudentValidator: @staticmethod def validate(student): if isinstance(student,Student)==False: raise StudentException("Can only validate Student objects") if len(student.getName())==0: raise StudentExcept...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,987
langchristian96/student-registers
refs/heads/master
/Test/TestStudentController.py
''' Created on 12 dec. 2015 @author: LenovoM ''' from Domain.Disciplines import * from Domain.Students import * from Base.StudentBase import * from Controller.StudentController import * from Controller.UndoController import * import unittest class Test(unittest.TestCase): def setUp(self): repo=StudentB...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,988
langchristian96/student-registers
refs/heads/master
/UI/UI.py
from Domain.Students import Student from Domain.Disciplines import Discipline from Domain.Grades import Grade from Domain.GradeValidator import * from Domain.StudentValidator import * from Domain.Exceptions import StudentException from Controller.DisciplineController import * from Controller.StatisticsControllers impor...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,989
langchristian96/student-registers
refs/heads/master
/Test/TestGradeBase.py
''' Created on 5 dec. 2015 @author: LenovoM ''' import unittest from Base.GradeBase import * from Domain.Grades import * class Test(unittest.TestCase): def setUp(self): self.gradebase=GradeBase() c1=Grade('Algebra',800,'arthur',9) self.gradebase.add(c1) c2=Grade('FPcurs',50,'qwe...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,990
langchristian96/student-registers
refs/heads/master
/BaseFile/FileStudentBase.py
from Base.StudentBase import * from Domain.Students import * class FileStudentBase(StudentBase): _fName="students.txt" def __init__(self): StudentBase.__init__(self) self.__loadFromFile() def add(self, stud): StudentBase.add(self, stud) self.__storeToFile() def remove(sel...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,991
langchristian96/student-registers
refs/heads/master
/Domain/Students.py
from Domain.Exceptions import StudentException class Student: def __init__(self,id,name): """ Creates a new instance of Student. """ if id<0: raise StudentException("ID must be positive") self.__id=id self.__name=name self.__average=0 def get...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,992
langchristian96/student-registers
refs/heads/master
/Domain/Grades.py
from Domain.Exceptions import StudentException class Grade: def __init__(self,discipline,id,teacher,grade): """ Creates a new instance of Grade. """ self.__discipline=discipline if id<0: raise StudentException("ID cannot be negative") if grade<0 or grade>...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,993
langchristian96/student-registers
refs/heads/master
/Base/StudentBase.py
from Domain.Exceptions import StudentException from Domain.Students import Student class StudentBase: def __init__(self): ''' Creates an instance of the StudentBase. ''' self.__data=[] def __find(self,id): ''' Returns the index student having the given id. ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,994
langchristian96/student-registers
refs/heads/master
/Test/testStudents.py
import unittest from Domain.Students import * class Test(unittest.TestCase): def setUp(self): self.s=Student(1,'mark') self.s2=Student(2,'ana') def testGet(self): self.assertEqual(self.s.getId(), 1) self.assertEqual(self.s2.getId(), 2) self.assertEqua...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,995
langchristian96/student-registers
refs/heads/master
/SortFilter.py
from Base.DisciplineBase import * from Base.GradeBase import * from Base.StudentBase import * def gnomeSort(data): ''' It is a sorting algorithm which is similar to insertion sort, except that moving an element to its proper place is accomplished by a series of swaps, as in bubble sort. It is...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,996
langchristian96/student-registers
refs/heads/master
/Base/StudGrade.py
''' Created on 21 dec. 2015 @author: LenovoM ''' class StudGrade: def __init__(self,name,discipline,grade,teacher): self.__name=name self.__discipline=discipline self.__grade=grade self.__teacher=teacher def getName(self): return self.__name def ge...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,997
langchristian96/student-registers
refs/heads/master
/Domain/Disciplines.py
class Discipline: def __init__(self,discipline): """ Creates a new instance of Discipline """ self.__discipline=discipline def getDiscipline(self): """ Getter for discipline """ return self.__discipline def setDiscipline(self,discipline): ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,998
langchristian96/student-registers
refs/heads/master
/Controller/GradeController.py
from __future__ import division from Base.GradeBase import * from Controller.ChangeHistory import * from Controller.UndoController import * from SortFilter import * class GradeController: def __init__(self,grdBase,undoController): ''' Creates a new instance of GradeController. ''' ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
45,999
langchristian96/student-registers
refs/heads/master
/Controller/DisciplineController.py
from Base.DisciplineBase import * class DisciplineController: def __init__(self,dscBase): """ Creates an instance of DisciplineController """ self.__base=dscBase def getAll(self): """ Returns the entire list of Disciplines """ return self.__base.g...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,000
langchristian96/student-registers
refs/heads/master
/Base/DisciplineBase.py
from Domain.Disciplines import Discipline class DisciplineBase: def __init__(self): """ Creates an instance of the DisciplineBase """ self.__data=[] def getAll(self): """ Returns all the DisciplineBase """ return self.__data def add(s...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,001
langchristian96/student-registers
refs/heads/master
/Test/TestGradeController.py
''' Created on 12 dec. 2015 @author: LenovoM ''' import unittest from Domain.Grades import * from Domain.Disciplines import * from Base.GradeBase import * from Controller.GradeController import * class Test(unittest.TestCase): def setUp(self): l=UndoController() grd=Grade('FP',1,'arthur',10) ...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,002
langchristian96/student-registers
refs/heads/master
/Test/TestStudentBase.py
''' Created on 5 dec. 2015 @author: LenovoM ''' import unittest from Base.StudentBase import * from Domain.Students import * class Test(unittest.TestCase): def setUp(self): self.studentbase=StudentBase() s1=Student(1,'Chris') self.studentbase.add(s1) s2=Student(2,'test') s...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,003
langchristian96/student-registers
refs/heads/master
/Controller/StudentController.py
from Base.StudentBase import * from Controller.ChangeHistory import * from Controller.UndoController import * class StudentController: def __init__(self,studBase,undoController): ''' Creates a new instance of StudentController. ''' self.__base=studBase self.__undoController...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,004
langchristian96/student-registers
refs/heads/master
/Controller/UndoController.py
class UndoController: def __init__(self): """ Creates an instance of UndoController """ self.__controllers=[] self.__index=-1 def recordUpdatedController(self,modifController): self.__controllers.append(modifController) self.__controllers...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,005
langchristian96/student-registers
refs/heads/master
/Controller/StatisticsControllers.py
import operator from SortFilter import * from Controller.StudentController import * from Controller.DisciplineController import * from Controller.GradeController import * from Base.StudGrade import * from Base.StudGrade import StudGrade class StatisticsController: def __init__(self,GradeCtrl,StudentCtrl,DisciplineC...
{"/Domain/GradeValidator.py": ["/Domain/Grades.py"], "/Test/TestDisciplines.py": ["/Domain/Disciplines.py"], "/BaseFile/FileGradeBase.py": ["/Base/GradeBase.py", "/Domain/Grades.py"], "/Base/GradeBase.py": ["/Domain/Grades.py"], "/AppCoordinator.py": ["/Domain/Students.py", "/Domain/Disciplines.py", "/Domain/Grades.py"...
46,008
t40986044/ros2bridge_suite
refs/heads/main
/rosbridge_server/launch/rosbridge_tcp.launch.py
from launch import LaunchDescription from launch.substitutions import EnvironmentVariable import os import launch_ros.actions import pathlib def generate_launch_description(): # parameters_file_path = str(pathlib.Path(__file__).parents[1]) # get current path and go one level up # parameters_file_path += '/conf...
{"/rosbridge_server/src/rosbridge_server/__init__.py": ["/rosbridge_server/src/rosbridge_server/udp_handler.py"]}
46,009
t40986044/ros2bridge_suite
refs/heads/main
/rosbridge_server/src/rosbridge_server/__init__.py
from .websocket_handler import RosbridgeWebSocket # noqa: F401 from .client_mananger import ClientManager # noqa: F401 # TODO(@jubeira): add imports again once the modules are ported to ROS2. from .tcp_handler import RosbridgeTcpSocket from .udp_handler import RosbridgeUdpSocket,RosbridgeUdpFactory
{"/rosbridge_server/src/rosbridge_server/__init__.py": ["/rosbridge_server/src/rosbridge_server/udp_handler.py"]}
46,010
t40986044/ros2bridge_suite
refs/heads/main
/rosbridge_library/src/rosbridge_library/__init__.py
from .capabilities import * from .internal import * from .util import *
{"/rosbridge_server/src/rosbridge_server/__init__.py": ["/rosbridge_server/src/rosbridge_server/udp_handler.py"]}
46,011
t40986044/ros2bridge_suite
refs/heads/main
/rosbridge_server/setup.py
import os from glob import glob from setuptools import setup, find_packages package_name = 'rosbridge_server' setup( name=package_name, version='0.0.0', packages=find_packages('src'), package_dir = {'':'src'}, data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + packag...
{"/rosbridge_server/src/rosbridge_server/__init__.py": ["/rosbridge_server/src/rosbridge_server/udp_handler.py"]}
46,012
t40986044/ros2bridge_suite
refs/heads/main
/rosbridge_server/src/rosbridge_server/udp_handler.py
# import rospy import rclpy from rosbridge_library.rosbridge_protocol import RosbridgeProtocol from rosbridge_library.util import bson from twisted.internet.protocol import DatagramProtocol class RosbridgeUdpFactory(DatagramProtocol): def startProtocol(self): self.socks = dict() def datagramReceived(s...
{"/rosbridge_server/src/rosbridge_server/__init__.py": ["/rosbridge_server/src/rosbridge_server/udp_handler.py"]}
46,025
ziwei7437/simple_classifier
refs/heads/master
/run_classification.py
import os import argparse import logging import torch from torch.optim import SGD import initialization from classifier import simple_classifier from runners import Runner, RunnerParameters def print_args(args): for k, v in vars(args).items(): print(" {}: {}".format(k, v)) def get_args(*in_args): ...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,026
ziwei7437/simple_classifier
refs/heads/master
/run_glue_test.py
import os import argparse import logging import pandas as pd import torch from torch.optim import SGD import initialization from classifier import simple_classifier, simple_classifier_individual from runners import Runner, RunnerParameters from run_classification import print_args, get_args def main(): logging....
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,027
ziwei7437/simple_classifier
refs/heads/master
/classifier.py
import torch import torch.nn as nn from torch.nn import CrossEntropyLoss class simple_classifier_individual(nn.Module): def __init__(self, n_classes, n_hidden=768, drop=0.1): super(simple_classifier_individual, self).__init__() self.drop = nn.Dropout(drop) self.n_classes = n_classes ...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,028
ziwei7437/simple_classifier
refs/heads/master
/run_classification_infersent.py
import logging import os import pandas as pd import torch from torch.optim import SGD import initialization from classifier import simple_classifier from run_classification import get_args, print_args from runners import InfersentRunner, RunnerParameters TRAIN_SET_NUM_MAP = { 'snli': 5, 'wnli': 1, 'rte'...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,029
ziwei7437/simple_classifier
refs/heads/master
/glue/format_config.py
import os inputs = ["MNLI", 'MRPC', 'Pure', 'QNLI', 'QQP', 'RTE', 'SNLI', 'WNLI'] for name in inputs: command = """ python format_for_glue.py \ -i ../../simple_classifier_output_individual/{} \ -o ../../simple_classifier_output_individual/{}/format """.format(name, name) os.system(command) fo...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,030
ziwei7437/simple_classifier
refs/heads/master
/initialization.py
import json import numpy as np import os import random import torch def init_cuda_from_args(args, logger): device = torch.device("cuda" if torch.cuda.is_available() and not args.no_cuda else "cpu") n_gpu = torch.cuda.device_count() logger.info("device: {} n_gpu: {}, distributed training: {}, 16-bits train...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,031
ziwei7437/simple_classifier
refs/heads/master
/config.py
import yaml import os f = open('config.yaml', 'r') config = yaml.load(f, Loader=yaml.FullLoader) f.close() # for type in config['type']: # for task in config['tasks']: # if task == 'mnli': # command = ''' # python run_glue_test.py \ # --mnli True \ # --data_...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,032
ziwei7437/simple_classifier
refs/heads/master
/runners.py
import torch from torch.utils.data import DataLoader, RandomSampler, SequentialSampler from tqdm.auto import tqdm, trange import numpy as np def get_dataloader(dataset, batch_size, train=True): sampler = RandomSampler(dataset) if train else SequentialSampler(dataset) dataloader = DataLoader(dataset, sampler=s...
{"/run_classification.py": ["/initialization.py", "/classifier.py", "/runners.py"], "/run_glue_test.py": ["/initialization.py", "/classifier.py", "/runners.py", "/run_classification.py"], "/run_classification_infersent.py": ["/initialization.py", "/classifier.py", "/run_classification.py", "/runners.py"], "/runners.py"...
46,036
SkullGG-Ui/telegram_trello
refs/heads/main
/main.py
import time from telethon import TelegramClient, events from trello_client import TrelloClient from settings import * from datetime import datetime, timedelta import logging logging.basicConfig(filename='logs.log',level=logging.DEBUG) logging.getLogger('telethon').setLevel(level=logging.WARNING) telegram_cli ...
{"/main.py": ["/trello_client.py"]}
46,037
SkullGG-Ui/telegram_trello
refs/heads/main
/trello_client.py
import requests class TrelloClient(): def __init__(self, trello_key, trello_token, trello_board_id, trello_list_id): self.trello_key = trello_key self.trello_token = trello_token self.trello_board_id = trello_board_id self.trello_list_id = trello_list_id def create_card(self, m...
{"/main.py": ["/trello_client.py"]}
46,038
FillipdotS/corona-traveler
refs/heads/master
/tourist/serializers.py
from rest_framework import serializers from .models import Country class CountrySerializer(serializers.ModelSerializer): class Meta: model = Country fields = ('code', 'name', 'allowed_from', 'restriction_level') class CountrySerializerBasic(serializers.ModelSerializer): class Meta: mod...
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,039
FillipdotS/corona-traveler
refs/heads/master
/tourist/models.py
from django.db import models from django.core.validators import MaxValueValidator, MinValueValidator # Create your models here. class Country(models.Model): code = models.CharField(max_length=2, primary_key=True) name = models.CharField(max_length=50) allowed_from = models.ManyToManyField( 'self', blank=True, ...
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,040
FillipdotS/corona-traveler
refs/heads/master
/tourist/urls.py
from django.urls import path from . import views urlpatterns = [ path('api/country/', views.CountryList.as_view() ), #path('api/country/<str:code>/', views.CountryRetrieve.as_view() ), path('api/country/<str:code>/allowed/', views.CountryAllowedRetrieve.as_view() ), path('feedback/', views.feedback_fo...
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,041
FillipdotS/corona-traveler
refs/heads/master
/tourist/admin.py
from django.contrib import admin from .models import Country, Feedback class CountryAdmin(admin.ModelAdmin): search_fields = ('name', 'code') list_display = ('code', 'name', 'restriction_level', 'eu_country') class FeedbackAdmin(admin.ModelAdmin): search_fields = ('email', 'subject', 'message', 'date_sent...
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,042
FillipdotS/corona-traveler
refs/heads/master
/tourist/views.py
from django.http import HttpResponse from django.shortcuts import render from django.db.models import Q from rest_framework import generics from .models import Country from .serializers import CountrySerializer, CountrySerializerBasic from .forms import FeedbackForm def index(request): return render(request, 'tour...
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,043
FillipdotS/corona-traveler
refs/heads/master
/coronatourist/settings_dev.py
ALLOWED_HOSTS=[] DEBUG=True
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,044
FillipdotS/corona-traveler
refs/heads/master
/tourist/forms.py
from django import forms from .models import Feedback class FeedbackForm(forms.ModelForm): class Meta: model = Feedback fields = ('email', 'subject', 'message') def __init__(self, *args, **kwargs): super(FeedbackForm, self).__init__(*args, **kwargs) self.fields['email'].re...
{"/tourist/serializers.py": ["/tourist/models.py"], "/tourist/admin.py": ["/tourist/models.py"], "/tourist/views.py": ["/tourist/models.py", "/tourist/serializers.py", "/tourist/forms.py"], "/tourist/forms.py": ["/tourist/models.py"]}
46,047
bohan919/topopt3D
refs/heads/master
/AMFilter3D.py
# TRANSLATED PYTHON FUNCTION FOR AMFilter.m by LANGELAAR import numpy as np import numpy.matlib import scipy.sparse as sps from copy import deepcopy def AMFilter(x, baseplate, *args): # Possible uses: # xi = AMfilter(x, baseplate) idem, with baseplate orientation specified # [xi, df1dx, df2dx,...] ...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,048
bohan919/topopt3D
refs/heads/master
/3dPlot.py
# METHOD TO CREATE THE 3D VOXEL PLOTS import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D # EXAMPLE ARRAY TO PLOT # a = np.load('xPrintNoAM.npy') # load the example output from top3D # aplot = a.transpose(2,0,1) # transpose from top3D or top3DAM 3D numpy array to plot in t...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,049
bohan919/topopt3D
refs/heads/master
/3dPresentation.py
import pyvista as pv import numpy as np xPrint = np.load('xPrint_40_20_10.npy') # load xPrintNoAM = np.load('xPrintNoAM.npy') # load # 3D PLOT # convert numpy array to what pyvista wants data = pv.wrap(xPrint) dataNoAM = pv.wrap(xPrintNoAM) # data.set_active_scalars("Spatial Cell Data") # create plot p = pv.Plotter()...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,050
bohan919/topopt3D
refs/heads/master
/condition_setting_fixedAR.py
# Used to set the input conditions (domain size,vf,load,BC) # Inputs: (weight_factor doesn’t work for primary results and is a ‘fake’ input). # fnno represents the number of point force. # stype represents the boundary condition type, # where 0 for cantilever beam, # 1 for simply suppo...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,051
bohan919/topopt3D
refs/heads/master
/top3DAM.py
# TOPOLOGY OPTIMISATION BASED ON top88.mat WITH LANGELAAR'S AMFILTER FOR 2D BY BOHAN PENG - IMPERIAL COLLEGE LONDON 2021 # AMFILTER CALL TYPE 1 - OBTAIN xPrint only # AMFILTER CALL TYPE 2 - OBTAIN xPrint and Sensitivities # heaviside - 0: density filter only # 1: density filter and heaviside filter # DISCLA...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,052
bohan919/topopt3D
refs/heads/master
/trilinear.py
import numpy as np def trilinear_density(self,coords): """ This method creates a trilinearly interpolated density map out of the corner density values provided by the user. :param coords: corner density values, in the form [d_000,d_001, ...] where values are in order xy...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,053
bohan919/topopt3D
refs/heads/master
/test.py
# import numpy as np # import numpy.matlib # import scipy.sparse as sps # from scipy.sparse.linalg import spsolve # import matplotlib.pyplot as plt # from mpl_toolkits.mplot3d import Axes3D # from matplotlib import colors # np.savetxt("output.csv", a_np_array, delimiter=",") # SAVE AND READ NUMPY ARRAYS # np.save('x...
{"/top3DAM.py": ["/AMFilter3D.py"], "/test.py": ["/top3DAM.py"]}
46,054
sk8wt/Voronoi-Video-Art
refs/heads/master
/application/web/models.py
from django.db import models class Video(models.Model): name = models.CharField(max_length=500) videofile = models.FileField( upload_to='videos/', null=True, verbose_name="") fps = models.IntegerField(null=True) error_rate = models.DecimalField( null=True, decimal_places=2, max_digits=...
{"/application/web/views.py": ["/application/web/models.py"]}
46,055
sk8wt/Voronoi-Video-Art
refs/heads/master
/application/web/views.py
from .models import Video from .forms import VideoForm from django.shortcuts import render from voronoi_backend.video_voronoi import video_to_voronoi import cv2 def home(request): cur_vid = Video.objects.last() form = VideoForm(request.POST or None, request.FILES or None) print(cur_vid) vid_file_path...
{"/application/web/views.py": ["/application/web/models.py"]}
46,056
sk8wt/Voronoi-Video-Art
refs/heads/master
/application/web/migrations/0002_auto_20191208_0453.py
# Generated by Django 2.1.5 on 2019-12-08 04:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0001_initial'), ] operations = [ migrations.AddField( model_name='video', name='error_rate', fiel...
{"/application/web/views.py": ["/application/web/models.py"]}
46,059
khast3x/koadic
refs/heads/master
/modules/implant/util/upload_file.py
import core.job import core.implant import uuid class UploadFileJob(core.job.Job): def report(self, handler, data): if handler.get_header('X-UploadFileJob', False): with open(self.options.get("LFILE"), "rb") as f: fdata = f.read() headers = {} headers['C...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,060
khast3x/koadic
refs/heads/master
/modules/implant/gather/windows_key.py
import core.implant class ExecCmdImplant(core.implant.Implant): pass
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,061
khast3x/koadic
refs/heads/master
/core/commands/creds.py
DESCRIPTION = "shows collected credentials" def autocomplete(shell, line, text, state): pass def help(shell): shell.print_plain("") shell.print_plain("Use %s to sort on a column name" % (shell.colors.colorize("creds --sort column", shell.colors.BOLD))) shell.print_plain("Use %s for full credential det...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,062
khast3x/koadic
refs/heads/master
/core/payload.py
import string import threading import uuid class Payload(object): PAYLOAD_ID = 0 PAYLOAD_ID_LOCK = threading.Lock() def __init__(self, name = "", data = ""): self.data = data self.name = name with Payload.PAYLOAD_ID_LOCK: self.id = Payload.PAYLOAD_ID Payloa...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,063
khast3x/koadic
refs/heads/master
/modules/stager/powershell.py
import os import sys import core.stager import random """ class PowerShellStager(core.stager.Stager): NAME = "PowerShell Stager" DESCRIPTION = "Listens for new sessions, using PowerShell for payloads" AUTHORS = ['RiskSense, Inc.'] def run(self): payloads = {} payloads["In Memory"] = s...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,064
khast3x/koadic
refs/heads/master
/core/options.py
class Option(object): def __init__(self, name, value, description, **kwargs): self.name = name self.description = description self.validate = None self.required = True self.advanced = False self.hidden = False self.alias = "" self.enum = [] se...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,065
khast3x/koadic
refs/heads/master
/modules/stager/vbscript.py
import os import sys import core.stager from core.payload import Payload import random """ class VBScriptStager(core.stager.Stager): NAME = "VBScript Stager" DESCRIPTION = "Listens for new sessions, using VBScript for payloads" AUTHORS = ['RiskSense, Inc.'] # the type of job payloads WORKLOAD = "...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,066
khast3x/koadic
refs/heads/master
/modules/implant/fun/voice.py
import core.job import core.implant import uuid class VoiceJob(core.job.Job): def done(self): self.display() def display(self): self.shell.print_plain(self.data) class VoiceImplant(core.implant.Implant): NAME = "Voice" DESCRIPTION = "Makes the computer speak a message." AUTHORS =...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,067
khast3x/koadic
refs/heads/master
/data/bin/decode_syskey.py
#!/usr/bin/python3 import sys syskey_data_file = sys.argv[1] tmp_syskey = "" syskey = "" with open(syskey_data_file, 'rb') as syskeyfile: file_contents = syskeyfile.read() i = 4220 while i < 28811: j = i + 15 while i < j: tmp_syskey += file_contents[i:i+1].decode() i += 2 i += 8176 ...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,068
khast3x/koadic
refs/heads/master
/modules/implant/pivot/exec_wmic.py
# wmic /node:~IP~ /user:~SMBDOMAIN~\~SMBUSER~ /password:~SMBPASS~ process call create "cmd /c ~CMD~" import core.implant class ExecCmdImplant(core.implant.Implant): pass
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,069
khast3x/koadic
refs/heads/master
/core/commands/exit.py
DESCRIPTION = "exits the program" def autocomplete(shell, line, text, state): return None def help(shell): pass def execute(shell, cmd): import sys sys.exit(0)
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,070
khast3x/koadic
refs/heads/master
/core/cred_parser.py
import collections import tabulate import traceback class CredParse(object): def __init__(self, job): self.job = job self.shell = job.shell self.session = job.session def new_cred(self): cred = {} cred["IP"] = "" cred["Domain"] = "" cred["Username"] = "...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,071
khast3x/koadic
refs/heads/master
/core/cidr.py
# Parts of this file are: # Copyright (c) 2007 Brandon Sterne # 2015 Updates by Rafe Colburn # Licensed under the MIT license. # http://brandon.sternefamily.net/files/mit-license.txt # CIDR Block Converter - 2007 def ip2bin(ip): b = "" inQuads = ip.split(".") outQuads = 4 for q in inQuads: if q...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,072
khast3x/koadic
refs/heads/master
/core/commands/listeners.py
DESCRIPTION = "shows info about stagers" def autocomplete(shell, line, text, state): pass def help(shell): pass def print_all_payloads(shell): if len(shell.stagers) == 0: shell.print_error("No payloads yet.") return shell.print_plain("") formats = "\t{0:<5}{1:<16}{2:<8}{3:<20}" ...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,073
khast3x/koadic
refs/heads/master
/modules/implant/inject/reflectdll_excel.py
import core.implant class ExcelReflectJob(core.job.Job): def done(self): self.display() def display(self): pass #self.shell.print_plain(str(self.errno)) class ExcelReflectImplant(core.implant.Implant): NAME = "Reflective DLL via Excel" DESCRIPTION = "Executes an arbitrary ref...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,074
khast3x/koadic
refs/heads/master
/core/linter.py
class Linter(object): def __init__(self): pass def prepend_stdlib(self, script): with open("data/stdlib.vbs", "rb") as f: stdlib = f.read().lower() return stdlib + script def minimize_glyph(self, script, glyph): orig_script = script script = script.repl...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,075
khast3x/koadic
refs/heads/master
/core/server.py
try: from SocketServer import ThreadingMixIn from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer except: # why is python3 so terrible for backward compatibility? from socketserver import ThreadingMixIn from http.server import BaseHTTPRequestHandler, HTTPServer import core.handler import c...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,076
khast3x/koadic
refs/heads/master
/core/commands/run.py
DESCRIPTION = "runs the current module" def autocomplete(shell, line, text, state): return None def help(shell): pass def execute(shell, cmd): try: env = shell.plugins[shell.state] env.run() except KeyboardInterrupt: return
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,077
khast3x/koadic
refs/heads/master
/core/loader.py
import os import sys import inspect import core.plugin def load_plugins(dir, instantiate = False, shell = None): plugins = {} for root, dirs, files in os.walk(dir): sys.path.append(root) # make forward slashes on windows module_root = root.replace(dir, "").replace("\\", "/") ...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,078
khast3x/koadic
refs/heads/master
/modules/implant/manage/enable_rdesktop.py
import core.job import core.implant import uuid class EnableRDesktopJob(core.job.Job): def done(self): self.display() def display(self): pass #self.shell.print_plain(str(self.errno)) class EnableRDesktopImplant(core.implant.Implant): NAME = "Enable Remote Desktop" DESCRIPTION...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,079
khast3x/koadic
refs/heads/master
/modules/implant/gather/hashdump_sam.py
import core.implant class HashDumpSAMImplant(core.implant.Implant): NAME = "SAM Hash Dump" DESCRIPTION = "Dumps the SAM hive off the target system." AUTHORS = ["zerosum0x0"] def load(self): self.options.register("LPATH", "/tmp/", "local file save path") self.options.register("RPATH", ...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,080
khast3x/koadic
refs/heads/master
/modules/implant/gather/clipboard.py
import core.job import core.implant import uuid class ClipboardJob(core.job.Job): def done(self): self.display() def display(self): self.shell.print_plain("Clipboard contents:") self.shell.print_plain(self.data) class ClipboardImplant(core.implant.Implant): NAME = "Scrape Clipboa...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...
46,081
khast3x/koadic
refs/heads/master
/core/commands/use.py
DESCRIPTION = "switch to a different module" def autocomplete(shell, line, text, state): # todo: make this show shorter paths at a time # should never go this big... if len(line.split()) > 2 and line.split()[0] != "set": return None options = [x + " " for x in shell.plugins if x.startswith(tex...
{"/modules/implant/util/upload_file.py": ["/core/implant.py"], "/modules/implant/gather/windows_key.py": ["/core/implant.py"], "/modules/stager/vbscript.py": ["/core/payload.py"], "/modules/implant/fun/voice.py": ["/core/implant.py"], "/modules/implant/pivot/exec_wmic.py": ["/core/implant.py"], "/modules/implant/inject...