index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
42,932
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/models/deep/feed_forward/exporter.py
import os import tensorflow as tf from keras.models import Model as KerasModel from keras import backend as K from keras.layers import Input from .layers import define_layers def export(): inputs = Input(shape=(10, 128), name="embeddings") outputs = define_layers(inputs) model = KerasModel(inputs=input...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,933
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/audioset/vggish/exporter.py
import os import tensorflow as tf from mgr.infrastructure.audioset.vggish.model import vggish_slim from mgr.infrastructure.audioset.vggish.model import vggish_params flags = tf.app.flags flags.DEFINE_string( 'wav_file', None, 'Path to a wav file. Should contain signed 16-bit PCM samples. ' 'If none is...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,934
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/audioset/ontology.py
import os import csv import json dirname = os.path.dirname(os.path.abspath(__file__)) labels_file_path = os.path.join(dirname, 'class_labels_indices.csv') ontology_file_path = os.path.join(dirname, 'ontology.json') def read_classlabels_file(): with open(labels_file_path, newline='') as csvfile: labels_r...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,935
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/models/naive_bayes/naivebayes.py
import joblib import numpy as np from typing import List from dataclasses import dataclass from mgr.usecases.interfaces import Model from mgr.domain.entities import Prediction, AudioSegment from mgr.infrastructure.audioset.ontology import MUSIC_GENRE_CLASSES from mgr.infrastructure.audioset.vggish.loader import Embeddi...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,936
jramcast/mgr-service
refs/heads/master
/app.py
import os import sys import logging from mgr.infrastructure.server.flask import Server from mgr.usecases.classify import ClassifyUseCase from mgr.infrastructure.models.naive_bayes.naivebayes import NaiveBayesModel from mgr.infrastructure.models.deep.feed_forward import FeedForwardNetworkModel from mgr.infrastructure.m...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,937
jramcast/mgr-service
refs/heads/master
/tests/unit/domain/entities_test.py
from mgr.domain.entities import AudioClip, AudioSegment def test_audio_returns_the_right_number_of_segments(): length_seconds = 65 clip = AudioClip("test.wav", length_seconds) assert len(clip.segments) == 7 def test_audio_returns_correct_segments(): length_seconds = 65 clip = AudioClip("test....
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,938
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/models/deep/feed_forward/layers.py
from keras.layers import (Activation, BatchNormalization, Dense, Dropout, Flatten) from mgr.infrastructure.audioset.ontology import MUSIC_GENRE_CLASSES num_units = 768 drop_rate = 0.5 def define_layers(input): # The input layer flattens the 10 seconds as a single dimension of 1280 ...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,939
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/audioset/vggish/loader.py
import json from typing import List import requests import numpy as np from mgr.domain.entities import AudioSegment from mgr.usecases.interfaces import FeaturesCache from .model.vggish_postprocess import Postprocessor from .model.vggish_input import wavfile_to_examples class EmbeddingsLoader: """ Loads ext...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,940
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/models/deep/lstm/__init__.py
from ..tensorflow import TensorFlowServingModelClient class LSTMRecurrentNeuralNetwork(TensorFlowServingModelClient): """ Client to consume the LSTM model deployed with Tensorflow Serving """ pass
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,941
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/models/deep/tensorflow.py
import json from typing import List import requests import numpy as np from mgr.usecases.interfaces import Model, AudioSegment, Prediction from mgr.infrastructure.audioset.vggish.loader import EmbeddingsLoader from mgr.infrastructure.audioset.ontology import MUSIC_GENRE_CLASSES class TensorFlowServingModelClient(Mo...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,942
jramcast/mgr-service
refs/heads/master
/mgr/usecases/interfaces.py
import abc from typing import List, TypeVar, Generic from ..domain.entities import AudioClip, Prediction, AudioSegment class Model(abc.ABC): @property def name(self): return self.__class__.__name__ @abc.abstractclassmethod def preprocess(self, segments: List[AudioSegment]): raise Not...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,943
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/youtube.py
import os import logging import subprocess as sp from dataclasses import dataclass from typing import List import pafy from ..usecases.interfaces import AudioLoader, Cache from ..domain.entities import AudioClip, AudioSegment @dataclass class VideoInfo: """ Necessary info to download audio files """ ...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,944
jramcast/mgr-service
refs/heads/master
/tests/unit/usecases/classify_test.py
from mgr.usecases.interfaces import Model from mgr.usecases.classify import ClassifyUseCase from mgr.usecases.interfaces import AudioLoader from mgr.domain.entities import (Prediction, AudioClip, AudioSegment) def test_predict_returns_predictions(): models = [FakeModel()] usecase = ClassifyUseCase(models, Fak...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,945
jramcast/mgr-service
refs/heads/master
/mgr/infrastructure/models/svm/svm.py
import joblib import numpy as np from typing import List from mgr.usecases.interfaces import Model from mgr.domain.entities import Prediction, AudioSegment from mgr.infrastructure.audioset.ontology import MUSIC_GENRE_CLASSES from mgr.infrastructure.audioset.vggish.loader import EmbeddingsLoader class SVMModel(Model):...
{"/mgr/infrastructure/models/deep/feed_forward/__init__.py": ["/mgr/infrastructure/models/deep/tensorflow.py"], "/mgr/usecases/classify.py": ["/mgr/usecases/interfaces.py", "/mgr/domain/entities.py"], "/mgr/infrastructure/audioset/vggish/cache/memory.py": ["/mgr/usecases/interfaces.py"], "/mgr/infrastructure/models/dee...
42,951
pawncouncil/belt
refs/heads/master
/apps/beltApp/models.py
from __future__ import unicode_literals from django.db import models from datetime import datetime import re, bcrypt EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') # This is all the validation class UserManager(models.Manager): def register(self, postData): errors = {} ...
{"/apps/beltApp/views.py": ["/apps/beltApp/models.py"]}
42,952
pawncouncil/belt
refs/heads/master
/apps/beltApp/views.py
from django.shortcuts import render, HttpResponse, redirect from django.contrib import messages from .models import * def index(request): return render(request, 'beltApp/index.html') def register(request): status = User.objects.register(request.POST) if status['valid']==False: for key, value in s...
{"/apps/beltApp/views.py": ["/apps/beltApp/models.py"]}
42,983
Cmilla9/solo-project
refs/heads/main
/search/views.py
from django.shortcuts import render from django.db.models import Q from food_truck_hub_app.models import BusinessUser # def searchfood(request): # if request.method == 'POST': # query= request.GET.get('q') # print('in other app') # submitbutton= request.GET.get('submit') # if query...
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
42,984
Cmilla9/solo-project
refs/heads/main
/food_truck_hub_app/apps.py
from django.apps import AppConfig class FoodTruckHubAppConfig(AppConfig): name = 'food_truck_hub_app'
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
42,985
Cmilla9/solo-project
refs/heads/main
/food_truck_hub_app/views.py
from django.shortcuts import render, redirect from .models import User, UserManager, BusinessUser, BusinessUserManager from django.contrib import messages # from django.db.models import Q import bcrypt def index(request): if request.method == "GET": businessusers = BusinessUser.objects.all() contex...
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
42,986
Cmilla9/solo-project
refs/heads/main
/food_truck_hub_app/migrations/0002_businessuser_current_location.py
# Generated by Django 2.2 on 2021-03-21 15:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('food_truck_hub_app', '0001_initial'), ] operations = [ migrations.AddField( model_name='businessuser', name='current_l...
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
42,987
Cmilla9/solo-project
refs/heads/main
/food_truck_hub_app/urls.py
from django.urls import path from . import views urlpatterns = [ path('', views.index), path('register', views.register), path('login', views.sign_in), path('register_business', views.register_business), path('logout', views.logout), path('search', views.searchfood), path('business_profile/...
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
42,988
Cmilla9/solo-project
refs/heads/main
/search/urls.py
from django.conf.urls import url from django.contrib import admin from .views import searchfood urlpatterns = [ url(r'^$', searchfood, name='searchfood'), ]
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
42,989
Cmilla9/solo-project
refs/heads/main
/food_truck_hub_app/models.py
from django.db import models import re # Create your models here. EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') class UserManager(models.Manager): def validate(self, postData): errors = {} if len(postData['first_name']) < 3: errors['first_name'] = "First Na...
{"/search/views.py": ["/food_truck_hub_app/models.py"], "/food_truck_hub_app/views.py": ["/food_truck_hub_app/models.py"], "/search/urls.py": ["/search/views.py"]}
43,001
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0006_auto_20210313_1644.py
# Generated by Django 3.1.7 on 2021-03-13 11:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0005_auto_20210313_1635'), ] operations = [ migrations.AddField( model_name='testimonial', name='designation'...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,002
akarsh-23/wissen
refs/heads/main
/wissen/registrations/admin.py
from django.contrib import admin from .models import * # Register your models here. class RegistrationAdmin(admin.ModelAdmin): list_display = ['event','name','email','phone','registrationNo','college','course'] admin.site.register(Registration, RegistrationAdmin)
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,003
akarsh-23/wissen
refs/heads/main
/wissen/registrations/utils.py
def createCertificate(request): pass
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,004
akarsh-23/wissen
refs/heads/main
/wissen/org/models.py
from django.db import models class Contact(models.Model): name = models.CharField(max_length=30) email = models.EmailField(max_length=254) phone = models.CharField(max_length=10) subject = models.CharField(max_length=50) message = models.TextField(max_length=500) class Subscriber(models.Model): ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,005
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0005_auto_20210313_1635.py
# Generated by Django 3.1.7 on 2021-03-13 11:05 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0004_event'), ] operations = [ migrations.CreateModel( name='Testimonial', fields=[ ('id', mo...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,006
akarsh-23/wissen
refs/heads/main
/wissen/org/admin.py
from django.contrib import admin from .models import Contact, Subscriber, Team, Event, Testimonial # Register your models here. admin.site.register(Contact) admin.site.register(Subscriber) admin.site.register(Team) admin.site.register(Event) admin.site.register(Testimonial)
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,007
akarsh-23/wissen
refs/heads/main
/wissen/registrations/forms.py
from django.forms import ModelForm from .models import * from django import forms class RegistrationForm(ModelForm): class Meta: model = Registration fields = ['event','name', 'email', 'phone', 'registrationNo', 'college', 'course'] widgets = { 'event': forms.TextInput(attrs={'cl...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,008
akarsh-23/wissen
refs/heads/main
/wissen/org/views.py
from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import redirect, render from django.views.decorators.csrf import csrf_exempt from .forms import (ContactForm, EventForm, SubscriberForm, TeamForm, TestimonialForm) from .models import E...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,009
akarsh-23/wissen
refs/heads/main
/wissen/registrations/migrations/0001_initial.py
# Generated by Django 3.2.3 on 2021-05-22 08:09 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Event', fields=[ ('event', models.CharField...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,010
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0014_auto_20210523_2245.py
# Generated by Django 3.2.3 on 2021-05-23 17:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0013_auto_20210522_2051'), ] operations = [ migrations.AlterField( model_name='contact', name='message', ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,011
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0008_delete_payment.py
# Generated by Django 3.1.7 on 2021-03-18 10:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('org', '0007_content_payment'), ] operations = [ migrations.DeleteModel( name='Payment', ), ]
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,012
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0015_alter_event_name.py
# Generated by Django 3.2.3 on 2021-05-23 17:24 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0014_auto_20210523_2245'), ] operations = [ migrations.AlterField( model_name='event', name='name', ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,013
akarsh-23/wissen
refs/heads/main
/wissen/registrations/models.py
from django.db import models # Create your models here. class Registration(models.Model): event = models.CharField(max_length=50) name = models.CharField(max_length=50) email = models.EmailField(primary_key=True) phone = models.BigIntegerField() registrationNo = models.BigIntegerField(blank=True) ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,014
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0007_content_payment.py
# Generated by Django 3.1.7 on 2021-03-18 10:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0006_auto_20210313_1644'), ] operations = [ migrations.CreateModel( name='Content', fields=[ ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,015
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0009_auto_20210320_0019.py
# Generated by Django 3.1.7 on 2021-03-19 18:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0008_delete_payment'), ] operations = [ migrations.DeleteModel( name='Content', ), migrations.AlterField(...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,016
akarsh-23/wissen
refs/heads/main
/wissen/org/upload.py
import datetime,os from pathlib import Path def upload(file, folder): date_time = datetime.datetime.now() base_dir = Path(__file__).resolve().parent.parent location = 'wissen\\static\\assets\\img\\uploaded\\' + folder + date_time final_location = os.join(base_dir, location) with open(final_location...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,017
akarsh-23/wissen
refs/heads/main
/wissen/org/forms.py
from django.forms import ModelForm from .models import Contact, Subscriber, Team, Event, Testimonial from django import forms class ContactForm(ModelForm): class Meta: model = Contact fields = ['name', 'email', 'phone', 'subject', 'message'] widgets = { 'name': forms.TextInput(at...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,018
akarsh-23/wissen
refs/heads/main
/wissen/registrations/views.py
from django.shortcuts import redirect, render from django.conf import settings from .forms import * from org import models from .utils import * def home(request): try: if request.method == "GET" and request.GET.get('Event'): event = models.Event.objects.get(name=request.GET.get('Event')) ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,019
akarsh-23/wissen
refs/heads/main
/wissen/registrations/migrations/0003_auto_20210522_1349.py
# Generated by Django 3.2.3 on 2021-05-22 08:19 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('registrations', '0002_rename_event_events'), ] operations = [ migrations.RenameModel( old_name='Events', new_name='Event', ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,020
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0010_auto_20210522_1339.py
# Generated by Django 3.2.3 on 2021-05-22 08:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0009_auto_20210320_0019'), ] operations = [ migrations.RemoveField( model_name='event', name='id', ),...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,021
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0013_auto_20210522_2051.py
# Generated by Django 3.2.3 on 2021-05-22 15:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0012_event_status'), ] operations = [ migrations.RemoveField( model_name='event', name='id', ), ...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,022
akarsh-23/wissen
refs/heads/main
/wissen/org/urls.py
from django.contrib import admin from django.urls import path from django.conf import settings from django.conf.urls.static import static from .views import * urlpatterns = [ path('', home, name='home'), path('Home/', home, name='home'), path('form/contact', contactFormView, name='ContactForm'), path(...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,023
akarsh-23/wissen
refs/heads/main
/wissen/org/migrations/0011_auto_20210522_1342.py
# Generated by Django 3.2.3 on 2021-05-22 08:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('org', '0010_auto_20210522_1339'), ] operations = [ migrations.AddField( model_name='event', name='id', f...
{"/wissen/registrations/admin.py": ["/wissen/registrations/models.py"], "/wissen/org/admin.py": ["/wissen/org/models.py"], "/wissen/registrations/forms.py": ["/wissen/registrations/models.py"], "/wissen/org/views.py": ["/wissen/org/forms.py", "/wissen/org/models.py"], "/wissen/org/forms.py": ["/wissen/org/models.py"], ...
43,025
darkfox140/python_test_trening
refs/heads/main
/bdd/contact_steps.py
from pytest_bdd import given, when, then from model.contact import NewContact import random @given('a contact list', target_fixture="contact_list") def contact_list(db): return db.get_contact_list() @given('a contact with <last_name>, <first_name> and <address1>', target_fixture="new_contact") def new_contact(l...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,026
darkfox140/python_test_trening
refs/heads/main
/fixture/contact.py
from selenium.webdriver.support.ui import Select from selenium.webdriver.common.by import By from model.contact import NewContact import re class ContactHelper: def __init__(self, app): self.app = app def open_add_new(self): browser = self.app.browser browser.find_element(By.LINK_TEX...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,027
darkfox140/python_test_trening
refs/heads/main
/test/test_delete_contact.py
from model.contact import NewContact import random def test_delete_some_contact(app, db, check_ui): if app.contact.count() == 0: app.contact.create_new_contact(NewContact(first_name="Victor", middle_name="Ivan", last_name="Petrov", nick_name="Fox140", tittle="...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,028
darkfox140/python_test_trening
refs/heads/main
/fixture/group.py
from selenium.webdriver.common.by import By from model.group import Group class GroupHelper: def __init__(self, app): self.app = app def open_groups_page(self): browser = self.app.browser if not (browser.current_url.endswith("/group.php") and len(browser.find_elements(By.NAME, "new")...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,029
darkfox140/python_test_trening
refs/heads/main
/model/contact.py
from sys import maxsize class NewContact: def __init__(self, first_name=None, middle_name=None, last_name=None, nick_name=None, tittle=None, company=None, address1=None, home_phone=None, mobile_phone=None, work_phone=None, fax=None, email1=None, email2=None, email3=None, homepage...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,030
darkfox140/python_test_trening
refs/heads/main
/test/test_add_some_contact_to_group.py
from model.contact import NewContact from model.group import Group import random def test_add_contact_to_group(app, orm): if len(app.contact.get_contact_list()) == 0: app.contact.create_new_contact(NewContact(first_name="Red21", last_name="Gena")) if len(app.group.get_group_list()) == 0: app.g...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,031
darkfox140/python_test_trening
refs/heads/main
/test/test_modification_group.py
from model.group import Group import random def test_modification_group_name(app, db, check_ui): if app.group.count() == 0: app.group.create_group(Group(name="test name")) old_groups = db.get_group_list() group = random.choice(old_groups) mod_group = Group(name="Клуб") app.group.modificati...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,032
darkfox140/python_test_trening
refs/heads/main
/test/test_delete_contact_from_group.py
from model.contact import NewContact from model.group import Group import random def test_delete_contact_from_group(app, orm): if len(app.contact.get_contact_list()) == 0: app.contact.create_new_contact(NewContact(first_name="Red21", last_name="Gena")) if len(app.group.get_group_list()) == 0: ...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,033
darkfox140/python_test_trening
refs/heads/main
/fixture/db.py
import pymysql.cursors from model.group import Group from model.contact import NewContact class DbFixture: def __init__(self, host, name, user, password): self.host = host self.name = name self.user = user self.password = password self.connection = pymysql.connect(host=hos...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,034
darkfox140/python_test_trening
refs/heads/main
/generator/contact.py
from model.contact import NewContact import random import string import os.path import jsonpickle import getopt import sys try: opts, args = getopt.getopt(sys.argv[1:], "n:f:", ["number for contacts", "file"]) except getopt.GetoptError as err: getopt.usage() sys.exit(2) n = 3 f = "data/contacts.json" fo...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,035
darkfox140/python_test_trening
refs/heads/main
/test/test_add_new_contact.py
from model.contact import NewContact def test_add_new_contact(app, db, json_contacts): contact = json_contacts old_contact = db.get_contact_list() app.contact.create_new_contact(contact) new_contact = db.get_contact_list() old_contact.append(contact) assert sorted(old_contact, key=NewContact.i...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,036
darkfox140/python_test_trening
refs/heads/main
/bdd/group_scenarios.py
from pytest_bdd import scenario from .group_steps import * @scenario('groups.feature', 'Add new group') def test_add_new_group(): pass @scenario('groups.feature', 'Delete a gruop') def test_delete_group(): pass
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,037
darkfox140/python_test_trening
refs/heads/main
/test/test_phones.py
from model.contact import NewContact import re def test_phones_on_home_page(app): if app.contact.count() == 0: app.contact.create_new_contact(NewContact(first_name="Victor", middle_name="Ivan", last_name="Petrov", nick_name="Fox140", tittle="test", company="te...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,038
darkfox140/python_test_trening
refs/heads/main
/data/contacts.py
from model.contact import NewContact contact_data = [ NewContact(first_name="Victor", middle_name="Ivan", last_name="Petrov", nick_name="Fox140", tittle="test", company="testcompany", address1="Moscow", home_phone="8(495)2154536", mobile_phone="+79168956384", work_phone="8-499-957613...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,039
darkfox140/python_test_trening
refs/heads/main
/test/test_info_contact.py
from model.contact import NewContact from random import randrange import re '''def test_checking_contact_information_on_home_page(app): if app.contact.count() == 0: app.contact.create_new_contact(NewContact(first_name="Victor", middle_name="Ivan", last_name="Petrov", ...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,040
darkfox140/python_test_trening
refs/heads/main
/test/test_modification_contact.py
from model.contact import NewContact import random def test_modification_first_contact_address1(app, db, check_ui): if app.contact.count() == 0: app.contact.create_new_contact(NewContact(first_name="Victor", middle_name="Ivan", last_name="Petrov", nick_name="F...
{"/bdd/contact_steps.py": ["/model/contact.py"], "/fixture/contact.py": ["/model/contact.py"], "/test/test_delete_contact.py": ["/model/contact.py"], "/test/test_add_some_contact_to_group.py": ["/model/contact.py"], "/test/test_delete_contact_from_group.py": ["/model/contact.py"], "/fixture/db.py": ["/model/contact.py"...
43,041
abhisek11/nimbus.ai
refs/heads/master
/sentimeter/sentimeter.py
from secrets import Oauth_Secrets import tweepy from textblob import TextBlob import pandas as pd def primary(input_hashtag): secrets = Oauth_Secrets() #secrets imported from secrets.py auth = tweepy.OAuthHandler(secrets.consumer_key, secrets.consumer_secret) auth.set_access_token(secrets.access_to...
{"/sentimeter/sentimeter.py": ["/secrets.py"]}
43,042
abhisek11/nimbus.ai
refs/heads/master
/secrets.py
#this file contains sensitive information like django secret key #edit this according to your requirement class Django_Secrets: def __init__(self): self.key = '' class Oauth_Secrets: def __init__(self): self.consumer_key = "AMskkMrTiil0Re1iKuJcQHseH" self.consumer_secret = "fZ0nOB4Iqq...
{"/sentimeter/sentimeter.py": ["/secrets.py"]}
43,043
abhisek11/nimbus.ai
refs/heads/master
/sentimeter/views.py
from django.shortcuts import render from django.template import loader from django.http import HttpResponse from .forms import userinput from sentimeter import sentimeter # import HTML def index(request): user_input = userinput() return render(request, "index.html", {'input_hastag': user_input}) def analyse(...
{"/sentimeter/sentimeter.py": ["/secrets.py"]}
43,044
IR3b00t/Facial_Recognition
refs/heads/master
/src/sendMail.py
import smtplib import json import os from email.mime.text import MIMEText as text from src.log import * BASE_DIR = os.path.dirname(os.path.abspath(__file__)) ''' Function to send mail message = the message you want to send subject = the subject of your message config is loaded from a JSON. (will change in futur) ''' ...
{"/src/sendMail.py": ["/src/log.py"], "/main.py": ["/src/sendMail.py", "/src/log.py"]}
43,045
IR3b00t/Facial_Recognition
refs/heads/master
/main.py
import os import pickle import sys import time import datetime from threading import Thread import cv2 import imutils import numpy as np from src.sendMail import * from src.log import * class Detection(Thread): def __init__(self): Thread.__init__(self) self.state = True ''' CAS...
{"/src/sendMail.py": ["/src/log.py"], "/main.py": ["/src/sendMail.py", "/src/log.py"]}
43,046
IR3b00t/Facial_Recognition
refs/heads/master
/src/face-train.py
import os import cv2 from PIL import Image import numpy as np import pickle BASE_DIR = os.path.dirname(os.path.abspath(__file__)) IMAGE_DIR = os.path.join(BASE_DIR, "images") FACE_CASCADE = cv2.CascadeClassifier( cv2.data.haarcascades + 'haarcascade_frontalface_alt2.xml') RECOGNIZER = cv2.face.LBPHFaceRecognizer_...
{"/src/sendMail.py": ["/src/log.py"], "/main.py": ["/src/sendMail.py", "/src/log.py"]}
43,047
IR3b00t/Facial_Recognition
refs/heads/master
/src/log.py
import logging from logging.handlers import RotatingFileHandler import os from os import path BASE_DIR = os.path.dirname(os.path.abspath(__file__)) LOG_DIR = "/output/log/" ''' This function is to check if the file already exist in the directory config. If exist, we do nothing else we create the file. logName = the n...
{"/src/sendMail.py": ["/src/log.py"], "/main.py": ["/src/sendMail.py", "/src/log.py"]}
43,049
ashwin1609/iAttend-Facial-Recognition-App
refs/heads/main
/register.py
import sys from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QLineEdit from PyQt5.QtWidgets import QPushButton from PyQt5.QtMultimedia import * from PyQt5.QtMultimediaWidgets import * from PyQt5.QtWidgets import * import os # Register Page class RegisterWindow(QMainWindow): def...
{"/login.py": ["/main.py"], "/home.py": ["/register.py", "/login.py"]}
43,050
ashwin1609/iAttend-Facial-Recognition-App
refs/heads/main
/main.py
import numpy as np import cv2 import face_recognition import os from datetime import date import datetime, time images = [] known_names = [] encodings = [] names_list = [] def face_recog(img): if not img.any(): placeholder_img = cv2.imread('img/placeholder.jpg') font = cv2.FONT_HERSHEY_SIMPLEX ...
{"/login.py": ["/main.py"], "/home.py": ["/register.py", "/login.py"]}
43,051
ashwin1609/iAttend-Facial-Recognition-App
refs/heads/main
/login.py
import sys import time import cv2 import numpy as np from PyQt5.QtCore import Qt from PyQt5.QtGui import QFont from PyQt5.QtWidgets import QLineEdit from PyQt5.QtWidgets import QPushButton from PyQt5.QtMultimedia import * from PyQt5.QtMultimediaWidgets import * from PyQt5.QtWidgets import * from PyQt5 import QtGui, Q...
{"/login.py": ["/main.py"], "/home.py": ["/register.py", "/login.py"]}
43,052
ashwin1609/iAttend-Facial-Recognition-App
refs/heads/main
/home.py
import time from PyQt5 import QtWidgets, QtCore from PyQt5.QtCore import pyqtSlot, QObject, pyqtSignal from PyQt5.QtGui import QPixmap from PyQt5.QtWidgets import QPushButton from PyQt5.QtWidgets import * from register import RegisterWindow from login import LoginWindow def goToRegister(stacked_widget, registerPage):...
{"/login.py": ["/main.py"], "/home.py": ["/register.py", "/login.py"]}
43,053
ashwin1609/iAttend-Facial-Recognition-App
refs/heads/main
/test.py
import numpy as np import cv2 import face_recognition #image path path = 'images\messi.jpg' img1 = cv2.imread(path) path2 = r'D:\Projects\Group\iAttend\images\123.png' test_img1 = cv2.imread(path2) #returns an array of bounding box of the test face face_Location = face_recognition.face_locations(test_img1)[0] ...
{"/login.py": ["/main.py"], "/home.py": ["/register.py", "/login.py"]}
43,072
sxTrp/mirco
refs/heads/master
/tasks/dms_worker.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-24 上午10:38 # @Author : ShaoXin # @Summary : # @Software: PyCharm from time import sleep from celery import Celery from tools.logger import code_log tags_task = Celery('tags') tags_task.config_from_object('config.celery_config') @tags_task.task def d...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,073
sxTrp/mirco
refs/heads/master
/config/celery_config.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-24 上午10:42 # @Author : ShaoXin # @Summary : # @Software: PyCharm from config.zk_config import master_name, celery_broker, broker_password CELERY_TIMEZONE = 'Asia/Shanghai' BROKER_TRANSPORT_OPTIONS = {'master_name': master_name} BROKER_URL = celery_broke...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,074
sxTrp/mirco
refs/heads/master
/tools/logger.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-8-8 上午10:49 # @Author : ShaoXin # @Summary : 日志工具 # @Software: PyCharm import os from logging import config, getLogger from config.pj_config import BASEDIR, LOG_PATH os.environ.setdefault('log_path', LOG_PATH) config.fileConfig(os.path.join(BASEDIR, 'con...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,075
sxTrp/mirco
refs/heads/master
/config/zk_config.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-24 上午10:01 # @Author : ShaoXin # @Summary : 加载zk配置文件 # @Software: PyCharm import json from config.pj_config import ZK_HOSTS, PROJECT_NAME, ENV from kazoo.client import KazooClient class ZkConnectException(Exception): pass try: zk = KazooClie...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,076
sxTrp/mirco
refs/heads/master
/consumer/dms_consumer.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-24 上午10:17 # @Author : ShaoXin # @Summary : # @Software: PyCharm import json from tools.logger import code_log from tools.redis_cli import redis_cli from redis.exceptions import TimeoutError from tasks.dms_worker import dms_work while 1: try: ...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,077
sxTrp/mirco
refs/heads/master
/config/pj_config.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-24 上午10:02 # @Author : ShaoXin # @Summary : 项目配置文件 # @Software: PyCharm import os BASEDIR = os.path.dirname(os.path.abspath(os.path.dirname(__file__))) PROJECT_NAME = BASEDIR.split(os.path.sep)[-1] ENV = os.environ.get('{project_name}_ENV'.format(pro...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,078
sxTrp/mirco
refs/heads/master
/tools/redis_cli.py
import json from redis.sentinel import Sentinel redis_cli_conf = { "host-port": "10.10.1.82-26379,10.10.1.81-26379,10.10.1.80-26379", "pw": "bycx321!", "db": "27", "expire_time": 43200 } class RedisException(Exception): pass class Cache(object): def __init__(self, conf): self.conf ...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,079
sxTrp/mirco
refs/heads/master
/consumer/tmp_pd_one.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-21 下午2:55 # @Author : ShaoXin # @Summary : # @Software: PyCharm from tools.redis_cli import redis_cli for i in range(10): redis_cli.rpush(i)
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,080
sxTrp/mirco
refs/heads/master
/tools/common.py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 18-12-27 下午1:20 # @Author : ShaoXin # @Summary : # @Software: PyCharm import threading class KThread(threading.Thread): def __init__(self, *args, **kwargs): threading.Thread.__init__(self, *args, **kwargs) self.killed = False def st...
{"/tasks/dms_worker.py": ["/tools/logger.py"], "/config/celery_config.py": ["/config/zk_config.py"], "/tools/logger.py": ["/config/pj_config.py"], "/config/zk_config.py": ["/config/pj_config.py"], "/consumer/dms_consumer.py": ["/tools/logger.py", "/tools/redis_cli.py", "/tasks/dms_worker.py"], "/consumer/tmp_pd_one.py"...
43,173
dianavintila/ACID
refs/heads/master
/acid_detectors/utils.py
import fnmatch import ntpath import sys import os sys.path.append("androguard-acid/") sys.path.append("../androguard-acid/") import androguard.core.bytecodes.dvm as dvm __author__ = "jorgeblasco and Liam O'Reilly" def should_analyze(class_name,include_support=None): if include_support: return True el...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,174
dianavintila/ACID
refs/heads/master
/acid_detectors/shared_preferences.py
from logging import Logger import logging from acid_detectors.utils import track_string_value, get_instruction_offset, get_path_of_method, should_analyze, track_int_value class SharedPreferencesAnalysis(object): def __init__(self,package,preference_file, operation): self.package = package self.pr...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,175
dianavintila/ACID
refs/heads/master
/generate_facts.py
#!/usr/bin/env python from acid_detectors.implicit_intents import get_implicit_intents, get_dynamic_receivers, get_static_receivers from acid_detectors.shared_preferences import get_shared_preferences_writes, get_shared_preferences_reads from acid_detectors.utils import escape_quotes, get_all_files_in_dir import argpa...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,176
dianavintila/ACID
refs/heads/master
/generate_prolog.py
#!/usr/bin/env python from acid_detectors.utils import get_all_directrories_in_dir import argparse import logging import os __author__ = "jorgeblasco and Liam O'Reilly" VERSION_NUMBER = "1.1" def append_file_to_file(opened_output_file, input_filename): with open(input_filename, 'r') as input_file: for ...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,177
dianavintila/ACID
refs/heads/master
/tests/test_sharedpreferences.py
from logging import Logger, DEBUG import logging import sys sys.path.append("../") from acid_detectors.shared_preferences import get_shared_preferences_reads, get_shared_preferences_writes sys.path.append("../androguard-acid/") from androguard.core.analysis.analysis import VMAnalysis from androguard.core.analysis.gana...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,178
dianavintila/ACID
refs/heads/master
/acid_detectors/__init__.py
__author__ = 'jorgeblasco'
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,179
dianavintila/ACID
refs/heads/master
/tests/test_intents.py
from logging import Logger, DEBUG import logging import sys sys.path.append("../") from acid_detectors.implicit_intents import get_implicit_intents, get_dynamic_receivers, get_static_receivers sys.path.append("../androguard-acid/") from androguard.misc import AnalyzeAPK __author__ = 'jorgeblasco' sender_file="apks...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,180
dianavintila/ACID
refs/heads/master
/acid_detectors/implicit_intents.py
from acid_detectors.utils import get_instruction_offset, track_method_call_action, should_analyze, track_string_value, \ get_path_of_method, is_path_of_method_in_package __author__ = 'jorgeblasco' class IntentAnalysis(object): def __init__(self, action="NotTraceable"): if action == "": ac...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,181
dianavintila/ACID
refs/heads/master
/detect_collusion.py
#!/usr/bin/env python import acid_detectors.collusion as collusion import argparse import logging import os from sets import Set __author__ = "jorgeblasco and Liam O'Reilly" VERSION_NUMBER = "1.1" COLLUSION_KINDS = ['colluding_info', 'colluding_money1', 'colluding_money2', 'colluding_service', 'colluding_camera', 'c...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,182
dianavintila/ACID
refs/heads/master
/acid_detectors/collusion.py
import logging from sets import Set from acid_detectors.utils import get_all_files_in_dir, swipl_path __author__ = 'jorgeblasco' import re import os.path import ast from subprocess import check_output #swipl -q -t 'findall(P,colluding_info(A,B,P),Ps),writeln(Ps),true' -s imps_detector.pl channel_numbering_suffix = ...
{"/generate_facts.py": ["/acid_detectors/implicit_intents.py", "/acid_detectors/shared_preferences.py", "/acid_detectors/utils.py"], "/generate_prolog.py": ["/acid_detectors/utils.py"], "/detect_collusion.py": ["/acid_detectors/collusion.py"]}
43,189
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/health/migrations/0006_crowdsource_location.py
# Generated by Django 2.2.5 on 2020-01-22 04:24 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('health', '0005_auto_20200121_1942'), ] operations = [ migrations.AddField( model_name='crowdsource'...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}
43,190
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/health/urls.py
from django.contrib import admin from django.urls import path, include from . import views urlpatterns = [ path('dashboard/',views.dashboard), path('symptoms/',views.disease), path('notification/', views.notifications), path('dashboard/edit',views.edit_profile,name="edit"), path('map/',views.maps) ...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}
43,191
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/health/migrations/0004_auto_20200121_1925.py
# Generated by Django 2.2.5 on 2020-01-21 13:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('health', '0003_auto_20200121_1920'), ] operations = [ migrations.AlterField( model_name='crowdsource', name='Gender'...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}
43,192
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/chat/consumers.py
import asyncio import json from django.contrib.auth import get_user_model from channels.consumer import AsyncConsumer from channels.db import database_sync_to_async class ChatConsumer(AsyncConsumer): def websocket_connect(self, event): print("connected: ", event) def websocket_receive(self, event): ...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}
43,193
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/account/views.py
from django.contrib.auth import authenticate, login from django.contrib.auth.forms import AuthenticationForm from django.shortcuts import render, redirect from .forms import LoginForm, UserExtendedForm, UserForm from django.http import HttpResponse # Create your views here. def register(request): if request.metho...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}
43,194
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/health/views.py
from django.shortcuts import render, redirect from django.http import HttpResponse import requests from django.contrib.auth.models import User from account.models import ExtendedUserModel from account.forms import EditForm # Create your views here. from account.models import ExtendedUserModel def home(request): ...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}
43,195
fsociety6/SmartAurangabadHack
refs/heads/master
/CCWebsite/health/migrations/0003_auto_20200121_1920.py
# Generated by Django 2.2.5 on 2020-01-21 13:50 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('health', '0002_crowdsource'), ] operations = [ migrations.AddField( model_name='crowdsource', ...
{"/CCWebsite/account/views.py": ["/CCWebsite/account/forms.py"], "/CCWebsite/account/forms.py": ["/CCWebsite/account/models.py"], "/CCWebsite/account/admin.py": ["/CCWebsite/account/models.py"], "/CCWebsite/health/admin.py": ["/CCWebsite/health/models.py"]}