index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
11,623
santander-syngenta/rc
refs/heads/master
/blog/views.py
from django.shortcuts import render, redirect from django.http import HttpResponse from rest_framework.renderers import TemplateHTMLRenderer from rest_framework.views import APIView from rest_framework.response import Response from django.shortcuts import get_object_or_404 from rest_framework.parsers import MultiPartPa...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,624
santander-syngenta/rc
refs/heads/master
/blog/migrations/0003_delete_methods.py
# Generated by Django 3.0.8 on 2020-10-13 20:15 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0002_methods'), ] operations = [ migrations.DeleteModel( name='Methods', ), ]
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,625
santander-syngenta/rc
refs/heads/master
/api/migrations/0011_content_file2.py
# Generated by Django 3.1 on 2020-12-31 13:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0010_auto_20201210_0809'), ] operations = [ migrations.AddField( model_name='content', name='file2', ...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,626
santander-syngenta/rc
refs/heads/master
/api/migrations/0003_auto_20201006_1457.py
# Generated by Django 3.0.8 on 2020-10-06 18:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20201005_1329'), ] operations = [ migrations.AddField( model_name='form', name='date', ...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,627
santander-syngenta/rc
refs/heads/master
/blog/migrations/0005_announcement_text2.py
# Generated by Django 3.1 on 2020-12-15 17:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0004_announcement'), ] operations = [ migrations.AddField( model_name='announcement', name='text2', ...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,628
santander-syngenta/rc
refs/heads/master
/api/migrations/0001_initial.py
# Generated by Django 3.0.8 on 2020-10-05 16:21 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Form', fields=[ ('id', models.AutoField(aut...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,629
santander-syngenta/rc
refs/heads/master
/api/serializers.py
from rest_framework import serializers from .models import * class FormSerializer(serializers.ModelSerializer): serializers.DateField(format='%b %d, %Y', input_formats=['%b %d, %Y']) class Meta: model = Form fields = '__all__' class TagSerializer(serializers.ModelSerializer): class Meta: model = FormTags ...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,630
santander-syngenta/rc
refs/heads/master
/blog/migrations/0006_auto_20210105_1209.py
# Generated by Django 3.1 on 2021-01-05 20:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0005_announcement_text2'), ] operations = [ migrations.RenameField( model_name='announcement', old_name='text2', ...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,631
santander-syngenta/rc
refs/heads/master
/api/urls.py
from django.urls import path, include, re_path from . import views from django.views.generic.base import TemplateView urlpatterns = [ path('', views.apiOverview, name='api-overview'), path('tag-list/', views.tagList, name='tag-list'), path('tag-detail/<str:pk>/', views.tagDetail, name='tag-detail'), path('tag-cre...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,632
santander-syngenta/rc
refs/heads/master
/blog/models.py
from django.db import models # Create your models here. class Question(models.Model): txt = models.TextField() asked = models.DateTimeField(auto_now_add = True) class Answer(models.Model): question = models.ForeignKey(Question, on_delete = models.CASCADE) answer = models.TextField() answered = models.DateTimeF...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,633
santander-syngenta/rc
refs/heads/master
/api/views.py
from django.shortcuts import render, redirect from django.http import JsonResponse from django.contrib.auth.models import User from rest_framework.decorators import api_view, authentication_classes, parser_classes, renderer_classes from rest_framework.authentication import SessionAuthentication, BasicAuthentication, T...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,634
santander-syngenta/rc
refs/heads/master
/blog/migrations/0004_announcement.py
# Generated by Django 3.1 on 2020-12-10 16:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0003_delete_methods'), ] operations = [ migrations.CreateModel( name='Announcement', fields=[ ...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,635
santander-syngenta/rc
refs/heads/master
/api/migrations/0002_auto_20201005_1329.py
# Generated by Django 3.0.8 on 2020-10-05 17:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( name='FormTags', fields=[ ('id', mod...
{"/api/admin.py": ["/api/models.py"], "/api/forms.py": ["/api/models.py"], "/blog/views.py": ["/blog/models.py", "/api/models.py", "/api/serializers.py"], "/api/serializers.py": ["/api/models.py"], "/api/views.py": ["/api/serializers.py", "/api/models.py", "/api/forms.py"]}
11,640
melizalab/gammatone
refs/heads/master
/gammatone/plot.py
# -*- coding: utf-8 -*- # -*- mode: python -*- """ Plotting utilities related to gammatone analysis, primarily for use with ``matplotlib``. See COPYING for copyright and licensing information. """ from __future__ import division import argparse import os.path import matplotlib.pyplot import matplotlib.ticker import ...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,641
melizalab/gammatone
refs/heads/master
/tests/test_erb_space.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING import numpy as np import scipy.io from pkg_resources import resource_stream import gamm...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,642
melizalab/gammatone
refs/heads/master
/tests/test_fft_weights.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING from __future__ import division import numpy as np import scipy.io from pkg_resources imp...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,643
melizalab/gammatone
refs/heads/master
/tests/__init__.py
# Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING # Designate as module
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,644
melizalab/gammatone
refs/heads/master
/gammatone/gtgram.py
# -*- coding: utf-8 -*- # -*- mode: python -*- """ This module contains functions for rendering "spectrograms" which use gammatone filterbanks instead of Fourier transforms. See COPYING for copyright and licensing information. """ import numpy as np from .filters import make_erb_filters, centre_freqs, erb_filterbank ...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,645
melizalab/gammatone
refs/heads/master
/gammatone/fftweight.py
# -*- coding: utf-8 -*- # -*- mode: python -*- """ This module contains functions for calculating weights to approximate a gammatone filterbank-like "spectrogram" from a Fourier transform. See COPYING for copyright and licensing information. """ from __future__ import division import numpy as np import gammatone.filt...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,646
melizalab/gammatone
refs/heads/master
/tests/test_cfs.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING from mock import patch import gammatone.filters EXPECTED_PARAMS = ( ((0, 0, 0), (0,...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,647
melizalab/gammatone
refs/heads/master
/tests/test_specgram.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING from mock import patch import numpy as np import scipy.io from pkg_resources import resour...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,648
melizalab/gammatone
refs/heads/master
/tests/test_gammatone_filters.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING import numpy as np import scipy.io from pkg_resources import resource_stream import gamm...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,649
melizalab/gammatone
refs/heads/master
/gammatone/__init__.py
# -*- coding: utf-8 -*- # -*- mode: python -*- """gammatone filterbank toolkit Copyright (C) 2013 Jason Heeris, <jason.heeris@gmail.com> Copyright (C) 2022 Dan Meliza, Jonah Weissmann, Tyler Robbins <dan@meliza.org> """ __version__ = "0.1.1"
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,650
melizalab/gammatone
refs/heads/master
/tests/test_gammatonegram.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING from mock import patch import numpy as np import scipy.io from pkg_resources import resour...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,651
melizalab/gammatone
refs/heads/master
/tests/test_filterbank.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING import numpy as np import scipy.io from pkg_resources import resource_stream import gamm...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,652
melizalab/gammatone
refs/heads/master
/tests/test_fft_gtgram.py
#!/usr/bin/env python3 # Copyright 2014 Jason Heeris, jason.heeris@gmail.com # # This file is part of the gammatone toolkit, and is licensed under the 3-clause # BSD license: https://github.com/detly/gammatone/blob/master/COPYING from mock import patch import numpy as np import scipy.io from pkg_resources import resour...
{"/gammatone/plot.py": ["/gammatone/gtgram.py", "/gammatone/fftweight.py"], "/tests/test_fft_weights.py": ["/gammatone/fftweight.py"], "/gammatone/fftweight.py": ["/gammatone/gtgram.py"], "/tests/test_specgram.py": ["/gammatone/fftweight.py"], "/tests/test_gammatonegram.py": ["/gammatone/gtgram.py"], "/tests/test_fft_g...
11,657
Jerommaas/Thunderstruck
refs/heads/master
/Tools/terrain_generator/pandaWorld.py
import sys import inspect # Panda from panda3d.core import * from direct.showbase.ShowBase import ShowBase # local import main from data_object import * from camera import Camera P3D_WIN_WIDTH = 720 P3D_WIN_HEIGHT = 560 # # This class manages all objects in the scene, loads/saves, etc. # import json def str...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,658
Jerommaas/Thunderstruck
refs/heads/master
/Tests/victor_client_server/NetworkObject.py
''' Class containing all functions for sharing an object state between client and server, in either direction This class has no knowledge of weither it is client or server side, nor in which direction the info is flowing ''' import json class NetworkObject(object): MAX_NETWORK_OBJECTS_COUNT = 1000 o...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,659
Jerommaas/Thunderstruck
refs/heads/master
/Tools/terrain_generator/gui.py
# # This class contains the user interface. # It also contains code to handle the panda frame # import os import sys import main from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * class tab_file(QWidget): ''' Handles loading, saving(, exporting?) of the scene ''' ...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,660
Jerommaas/Thunderstruck
refs/heads/master
/Controls/Keyboard.py
from direct.showbase.DirectObject import DirectObject class Arrows(DirectObject): def __init__(self,ControlManager): self.CM = ControlManager self.LeftPressed = 0 self.RightPressed = 0 self.KeyBindings() def KeyBindings(self): self.accept('arrow_left',self.Left_press) ...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,661
Jerommaas/Thunderstruck
refs/heads/master
/Tests/victor_client_server/client.py
''' Client test class ''' from sys import path from os import getcwd import time path.append(getcwd() + "\\..\\..\\Tools\\game_config\\") # TODO(victor): check if indeed windows from config import Config from panda3d.core import QueuedConnectionManager from panda3d.core import QueuedConnectionListener from panda3d...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,662
Jerommaas/Thunderstruck
refs/heads/master
/Tools/EulerAngles.py
import numpy as np import math # Calculates Rotation Matrix given euler angles def RotMatDeg(z,y,x): return RotMat(np.deg2rad(z),np.deg2rad(y),np.deg2rad(x)) def RotMat(ang_z, ang_y, ang_x) : R_x = np.array([[1, 0, 0 ], [0, math.cos(ang_x), -math....
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,663
Jerommaas/Thunderstruck
refs/heads/master
/Tests/victor_client_server/server.py
''' Server test class ''' from sys import path from os import getcwd import time path.append(getcwd() + "\\..\\..\\Tools\\game_config\\") # TODO(victor): check if indeed windows from config import Config from panda3d.core import QueuedConnectionManager from panda3d.core import QueuedConnectionListener from panda3d.c...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,664
Jerommaas/Thunderstruck
refs/heads/master
/Tests/victor_client_server/test.py
''' Test using client and server start up server, than 2 clients let them both send and receive some stuff ''' from sys import path from os import getcwd import time path.append(getcwd() + "\\..\\..\\Tools\\game_config\\") from config import Config from client import Client from server import Server from panda3...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,665
Jerommaas/Thunderstruck
refs/heads/master
/Entities/Objects/Trucks.py
import numpy as np from Tools import * modelfolder = "Entities/Objects/Models/" class Basic: eggname = modelfolder+"Truck01/truck_01.egg" #eggname = modelfolder+"Environment/pine_tree_01.egg" # Static Class Properties turnradius = 15 #[m] sideacc = 10 #[m/s2] acceleration when steering max ...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,666
Jerommaas/Thunderstruck
refs/heads/master
/Entities/__init__.py
__all__ = ['Terrain','skyDome','Clock','Camera']
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,667
Jerommaas/Thunderstruck
refs/heads/master
/Controls/__init__.py
__all__ = ['Manager'] # Keyboard, Controller and xinput are imported in Manager
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,668
Jerommaas/Thunderstruck
refs/heads/master
/Entities/Camera.py
import numpy as np from direct.task import Task class Camera: Dist2Truck = 35 #[m] Azimuth = 8 #[deg] position of camera wrt truck def __init__(self,World): # Stiekem bestaat er al een world.camera object self.World = World # Reference to the controlled truck! # Of cours...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,669
Jerommaas/Thunderstruck
refs/heads/master
/Tests/victor_client_server/testNetworkObject.py
# python packages from sys import path from os import getcwd import time import json # client / server from panda3d.core import QueuedConnectionManager from panda3d.core import QueuedConnectionListener from panda3d.core import QueuedConnectionReader from panda3d.core import ConnectionWriter # other panda stuff from ...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,670
Jerommaas/Thunderstruck
refs/heads/master
/Entities/Terrain.py
from panda3d.core import GeoMipTerrain, Texture, TextureStage,SamplerState from direct.task import Task import sys import os class Terrain: folder = os.path.dirname(os.path.abspath(__file__)) subfolder = "/Maps/" file = "simple.jpg" filepath = folder+subfolder+file def __init__(self): fn = ...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,671
Jerommaas/Thunderstruck
refs/heads/master
/Entities/Clock.py
from direct.task import Task FPS = 30 class Clock(): def __init__(self,World): self.World = World self.dt = 1./FPS self.dtcounter = 0 # List of objects that have an Update(dt) function that needs to be called self.UpdateList = [] # The task for our simulati...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,672
Jerommaas/Thunderstruck
refs/heads/master
/Tools/terrain_generator/data_object.py
import main import json class data_object(object): def __init__(self, json_data): # check data self.first_field = 5 self.second_field = 6 self.load(json_data) def load( self , json_data ): self.__dict__.update(json_data) # by default, add all fields to dict de...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,673
Jerommaas/Thunderstruck
refs/heads/master
/Controls/Manager.py
from direct.showbase.DirectObject import DirectObject from direct.task import Task import sys from . import Keyboard from . import Controller #from . import xinput from operator import attrgetter class ControlManager(DirectObject): def __init__(self,World): self.accept('escape', sys.exit) # Refere...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,674
Jerommaas/Thunderstruck
refs/heads/master
/Tools/game_config/config.py
''' Read config file, provide an interface for easily reading the data usage: config = Config("some_file.json") client_port = config["client"]["port"] ''' import os import json class Config(object): def __init__( self, file="config_file.json" ): # Read file here = os.path.dirname(os.path.abspat...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,675
Jerommaas/Thunderstruck
refs/heads/master
/Entities/Objects/__init__.py
__all__ = ['Trucks']
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,676
Jerommaas/Thunderstruck
refs/heads/master
/Controls/Controller.py
from direct.task import Task class X360(): deadzone = 0.4 def __init__(self, ControlManager,Controller): self.CM = ControlManager self.Controller = Controller self.Controller._last_state = self.Controller.get_state() self.KeyBindings() def CheckController(ta...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,677
Jerommaas/Thunderstruck
refs/heads/master
/Tools/__init__.py
__all__ = ['EulerAngles']
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,678
Jerommaas/Thunderstruck
refs/heads/master
/main.py
from direct.showbase.ShowBase import ShowBase # Als je nieuwe modules hebt voor bij *, voeg de verwijzing # toe in __init__.py van de module! from Controls import * from Entities import * from Entities.Objects import * import sys print(sys.version) class Thunderstruck_server(): def __init__(self): pass ...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,679
Jerommaas/Thunderstruck
refs/heads/master
/Entities/skyDome.py
from panda3d.core import Texture, TextureStage, DirectionalLight, AmbientLight, TexGenAttrib, VBase4 from panda3d.core import ColorBlendAttrib, LPoint3, LVector4 from direct.filter.CommonFilters import CommonFilters from panda3d.core import PandaNode, NodePath import sys import os class skyDome: def __init__(self)...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,680
Jerommaas/Thunderstruck
refs/heads/master
/Tools/terrain_generator/main.py
import sys # Panda from panda3d.core import * loadPrcFileData("", "window-type none") from direct.showbase.DirectObject import DirectObject from panda3d.core import WindowProperties # QT from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * # local import gui from pandaWorld impor...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,681
Jerommaas/Thunderstruck
refs/heads/master
/Tools/terrain_generator/camera.py
import time import numpy as np from direct.task import Task import main # # Camera # class Camera(object): def __init__(self, world): self.world = world self.world.accept( "w", self.move_y, [1] ) self.world.accept( "s", self.move_y, [-1]) self.world.accept( "a", self.move_x, [...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,682
Jerommaas/Thunderstruck
refs/heads/master
/Tools/terrain_generator/picker.py
# # this class contains the picker node, which handles everything related to selecting 3d objects # # class picker(object): def __init__(self, mouse, render, camera): self.mouse = mouse self.render = render self.camera = camera # see: # http://www.panda3d.org/manual/index...
{"/Tools/terrain_generator/pandaWorld.py": ["/main.py"], "/Tools/terrain_generator/gui.py": ["/main.py"], "/Entities/Objects/Trucks.py": ["/Tools/__init__.py"], "/Tools/terrain_generator/data_object.py": ["/main.py"], "/Controls/Manager.py": ["/Controls/__init__.py"], "/main.py": ["/Controls/__init__.py", "/Entities/__...
11,730
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/VierOpEenRij.py
""" Vier op een rij - Client""" import pygame from PodSixNet.Connection import ConnectionListener, connection from time import sleep class VierOpEenRijGame(ConnectionListener): def Network_close(self, data): exit() def Network_connected(self, data): print("Connected to the server.") ...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,731
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/testing material/vieropeenrijClient.py
# connect to the server - optionally pass hostname and port like: ("mccormick.cx", 31425) from PodSixNet.Connection import ConnectionListener class MyNetworkListener(ConnectionListener): def Network(self, data): print('network data:', data) def Network_connected(self, data): print("connected to the server"...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,732
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/testing material/vieropeenrijServer.py
from time import sleep from PodSixNet.Server import Server from PodSixNet.Channel import Channel class ClientChannel(Channel): def Network(self, data): self.gameid = data["gameid"] print(data) def Network_placeBox(self, data): # deconsolidate all of the data from the dictionary ...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,733
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/start.py
""" This python script starts screen_joinorhost.py (object) """ # import screen_joinorhost.py import screen_joinorhost # make object to initialize the window for joining or hosting a server start = screen_joinorhost.joinorhost() # keep updating object while not start.closedWindow: start.update()
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,734
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/vieropeenrijserver.py
""" Vier op een rij - Server""" from time import sleep from PodSixNet.Server import Server from PodSixNet.Channel import Channel class ClientChannel(Channel): def Network(self, data): print(data) def Network_place(self, data): # deconsolidate all of the data from the dictionary playerT...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,735
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/screen_hostserver.py
""" Form with tkinter: hosting the server """ # import modules from tkinter import * from tkinter import ttk from time import sleep class screenServer(): def __init__(self, socket, maxPlayers): self.closedWindow = False # create window self.root = Tk() self.root.title("Vier op een r...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,736
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/testing material/bootscreen.py
""" Form with tkinter: nickname, server selection """ # import tkinter / ttk for GUI from tkinter import * from tkinter import ttk # import regex to search for IP adress import re import pygame from VierOpEenRij import * gstart=False # checking IP adress def checkIp(*args): isIp = ip.get() print(isIp + " : " ...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,737
michaelpbAD/Dual-Net-Gaming-with-Python
refs/heads/master
/screen_joinorhost.py
""" Form with tkinter: join host or host server """ # import modules from tkinter import * from tkinter import messagebox from tkinter import ttk import re class joinorhost(): def __init__(self): self.closedWindow = False self.hostS = None self.playVierOpEenRij = None # ============...
{"/start.py": ["/screen_joinorhost.py"], "/screen_hostserver.py": ["/vieropeenrijserver.py"], "/testing material/bootscreen.py": ["/VierOpEenRij.py"], "/screen_joinorhost.py": ["/VierOpEenRij.py", "/screen_hostserver.py"]}
11,738
NicolasDutronc/FlappyBirdRL
refs/heads/master
/test.py
import gym import gym_ple import torch.optim as optim import torch.nn as nn from agents.dqn import DQNAgent from models.cnn import CNNModel, DuelingCNNModel from environment import Environment lr = 0.00001 momentum = 0.95 num_episodes = 1000000000 batch_size = 32 env = Environment('FlappyBird-v0') model = DuelingC...
{"/test.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/test_play.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/agents/dqn.py": ["/experience_replay.py"]}
11,739
NicolasDutronc/FlappyBirdRL
refs/heads/master
/test_play.py
import gym import gym_ple from agents.dqn import DQNAgent from models.cnn import DuelingCNNModel from environment import Environment import torch env = Environment('FlappyBird-v0') model = DuelingCNNModel(env.action_space()) agent = DQNAgent(environment=env, model=model) agent.play()
{"/test.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/test_play.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/agents/dqn.py": ["/experience_replay.py"]}
11,740
NicolasDutronc/FlappyBirdRL
refs/heads/master
/environment.py
import gym import gym_ple import cv2 import numpy as np class Environment: def __init__(self, game, image_shape=(84, 84)): self.game = gym.make(game) self.image_shape = image_shape def reset(self): return self.preprocess(self.game.reset()) def preprocess(self, image): im...
{"/test.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/test_play.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/agents/dqn.py": ["/experience_replay.py"]}
11,741
NicolasDutronc/FlappyBirdRL
refs/heads/master
/models/cnn.py
import torch import torch.nn as nn import torch.nn.functional as F class CNNModel(nn.Module): def __init__(self, action_space): super(CNNModel, self).__init__() self.conv1 = nn.Conv2d(in_channels=4, out_channels=32, kernel_size=8, stride=4) # 20 self.bn1 = nn.BatchNorm2d(num_features=32) ...
{"/test.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/test_play.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/agents/dqn.py": ["/experience_replay.py"]}
11,742
NicolasDutronc/FlappyBirdRL
refs/heads/master
/experience_replay.py
import numpy as np import random from collections import deque, namedtuple Transition = namedtuple('Transition', ['obs', 'action', 'reward', 'next_obs', 'done']) class Experience_buffer: def __init__(self, buffer_size=10000): self.buffer = deque() self.buffer_size = buffer_size def __len__(...
{"/test.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/test_play.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/agents/dqn.py": ["/experience_replay.py"]}
11,743
NicolasDutronc/FlappyBirdRL
refs/heads/master
/agents/dqn.py
import copy import numpy as np import math from collections import deque from experience_replay import Experience_buffer import torch from torch.autograd import Variable class DQNAgent: def __init__( self, environment, model=None, optimizer=None, loss=None, mode...
{"/test.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/test_play.py": ["/agents/dqn.py", "/models/cnn.py", "/environment.py"], "/agents/dqn.py": ["/experience_replay.py"]}
11,744
jakirkham/anaconda-project
refs/heads/master
/anaconda_project/internal/test/test_default_conda_manager.py
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright © 2016, Continuum Analytics, Inc. All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. # -------------------------------------------------------------------...
{"/anaconda_project/internal/test/test_default_conda_manager.py": ["/anaconda_project/internal/default_conda_manager.py"]}
11,745
jakirkham/anaconda-project
refs/heads/master
/anaconda_project/internal/default_conda_manager.py
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Copyright © 2016, Continuum Analytics, Inc. All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. # -------------------------------------------------------------------...
{"/anaconda_project/internal/test/test_default_conda_manager.py": ["/anaconda_project/internal/default_conda_manager.py"]}
11,848
weaverba137/comparator
refs/heads/main
/comparator/test/__init__.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ comparator.test =============== Used to initialize the unit test framework. """
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,849
weaverba137/comparator
refs/heads/main
/comparator/__init__.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst. # -*- coding: utf-8 -*- """ comparator ========== Obtain filesystem metadata necessary for comparing the same data set at different locations. """ __version__ = '0.2.0.dev17'
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,850
weaverba137/comparator
refs/heads/main
/comparator/test/test_top_level.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst # -*- coding: utf-8 -*- """ comparator.test.test_top_level ============================== Test top-level comparator functions. """ import re from .. import __version__ as theVersion def test_version_string(): """Ensure the version conforms to PEP386...
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,851
weaverba137/comparator
refs/heads/main
/comparator/checksum.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst. # -*- coding: utf-8 -*- """ comparator.checksum =================== Obtain checksum files from an authoritative source. """
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,852
weaverba137/comparator
refs/heads/main
/setup.py
#!/usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE.rst # NOTE: The configuration for the package, including the name, version, and # other information are set in the setup.cfg file. import sys from setuptools import setup # First provide helpful messages if contributors try and run leg...
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,853
weaverba137/comparator
refs/heads/main
/comparator/db.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst. # -*- coding: utf-8 -*- """ comparator.db ============= Contains SQLAlchemy classes. """ import os from sqlalchemy import (ForeignKey, Column, Integer, String, Float, DateTime, Boolean) from sqlalchemy.ext.declarative import decla...
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,854
weaverba137/comparator
refs/heads/main
/comparator/find.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst. # -*- coding: utf-8 -*- """ comparator.find =============== Utilities for scanning a filesystem. """ import os from .db import Session, Directory, File def walk(top): """Simplified directory tree generator. Adapted from :func:`os.walk`, the yi...
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,855
weaverba137/comparator
refs/heads/main
/comparator/initialize.py
# Licensed under a 3-clause BSD style license - see LICENSE.rst. # -*- coding: utf-8 -*- """ comparator.initialize ===================== Obtain filesystem metadata necessary for comparing the same data set at different locations. """ import os from sqlalchemy import create_engine, func from sqlalchemy.orm.exc import N...
{"/comparator/test/test_top_level.py": ["/comparator/__init__.py"], "/comparator/find.py": ["/comparator/db.py"], "/comparator/initialize.py": ["/comparator/db.py", "/comparator/find.py"]}
11,860
Wentao795/face_torch
refs/heads/master
/train_softmax.py
from config import config from model.model import MobileFaceNet,Am_softmax,Arcface,Softmax from torch.nn import DataParallel from dataset.dataloder import Train_DATA import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from symbols.utils import Metric import os from torch.autograd ...
{"/train_softmax.py": ["/config.py", "/model/model.py", "/dataset/dataloder.py"], "/dataset/path.py": ["/config.py"]}
11,861
Wentao795/face_torch
refs/heads/master
/dataset/dataloder.py
from PIL import Image from torchvision import transforms as T class Train_DATA(object): def __init__(self,root): imgs = [] file = open(root,'r') for i in file.readlines(): temp = i.replace('\n','').split('\t') imgs.append(temp) self.imgs = imgs self.tr...
{"/train_softmax.py": ["/config.py", "/model/model.py", "/dataset/dataloder.py"], "/dataset/path.py": ["/config.py"]}
11,862
Wentao795/face_torch
refs/heads/master
/dataset/path.py
from config import config import os def main(): srcfloder = config.train_path outFile = open(config.train_path.split('/')[-1],'w') childFolders = os.listdir(srcfloder) num = 0 for childfloder in childFolders: secondfile = srcfloder + '/' + childfloder allFiles = os.listdir(secondfile...
{"/train_softmax.py": ["/config.py", "/model/model.py", "/dataset/dataloder.py"], "/dataset/path.py": ["/config.py"]}
11,863
Wentao795/face_torch
refs/heads/master
/model/model.py
from torch.nn import Linear,Conv2d,BatchNorm1d,BatchNorm2d,PReLU,ReLU,Sigmoid,Dropout2d,Dropout,AvgPool2d,MaxPool2d,AdaptiveAvgPool2d,Sequential,Module,Parameter import torch.nn.functional as F import torch import math import pdb from collections import namedtuple class Flatten(Module): def forward(self,input): ...
{"/train_softmax.py": ["/config.py", "/model/model.py", "/dataset/dataloder.py"], "/dataset/path.py": ["/config.py"]}
11,864
Wentao795/face_torch
refs/heads/master
/config.py
import os class Defaultconfig(object): train_path = '' train_data = './dataset/'+train_path.split('/')[-1] embedding_size = 128 loss_type = 0 # 0 softmaxe 1 arcface 3 am_softmax num_classe = 180000 margin_s = 64 margin_m = 0.5 gpu_id = [0,1,2,3] lr = 0.1 momentum = 0.9 weight...
{"/train_softmax.py": ["/config.py", "/model/model.py", "/dataset/dataloder.py"], "/dataset/path.py": ["/config.py"]}
11,902
gok03/slack_clone
refs/heads/master
/core/views.py
from core.models import Comments, User from core.forms import * from django.shortcuts import render, render_to_response from django.http import HttpResponse, HttpResponseServerError, HttpResponseRedirect from django.views.decorators.csrf import csrf_exempt, csrf_protect from django.contrib.sessions.models import Sessio...
{"/core/views.py": ["/core/models.py"]}
11,903
gok03/slack_clone
refs/heads/master
/core/models.py
from django.db import models from django.contrib.auth.models import User # Create your models here. class Comments(models.Model): user = models.ForeignKey(User) text = models.CharField(max_length=255) channel = models.CharField(max_length=50)
{"/core/views.py": ["/core/models.py"]}
11,999
tjacek/hsne
refs/heads/master
/hsne.py
import os,time import utils,knn,markov,tsne,plot import numpy as np from scipy import sparse from knn import NNGraph from sklearn.datasets import fetch_mldata #def make_dataset(dataset_name="MNIST original",out_path="mnist_d/imgs"): # dataset=utils.downsample_dataset(dataset_name) # utils.save_as_img(dataset,out...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,000
tjacek/hsne
refs/heads/master
/utils.py
import numpy as np import cv2 import pickle,os,re #from sets import Set from scipy.sparse import dok_matrix import sklearn.datasets.base from sklearn.datasets import fetch_mldata def downsample_dataset(dataset_name,factor=10): dataset=fetch_mldata(dataset_name) examples=[ example_i for i,exampl...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,001
tjacek/hsne
refs/heads/master
/knn.py
from sklearn.datasets import fetch_mldata from sklearn.neighbors import LSHForest,NearestNeighbors import time import markov,utils class NNGraph(object): def __init__(self,names,distances,target): self.names=names self.distances=distances self.target=target def __len__(self): r...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,002
tjacek/hsne
refs/heads/master
/tsne.py
from sklearn.datasets import fetch_mldata import time import knn,markov from knn import NNGraph import utils from sklearn.manifold import TSNE import numpy as np import plot def compute_t(landmarks,sparse_pairs,W): infl_matrix=make_influence_matrix(landmarks,sparse_pairs) t_comp=time.time() T=markov.get_...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,003
tjacek/hsne
refs/heads/master
/reconstruct.py
import numpy as np import tsne,utils,plot from sklearn.datasets import fetch_mldata def reconstruct(matrix_path,embd_path,out_path): embd =utils.read_object(embd_path) infl=utils.read_object(matrix_path) n_points=infl.shape[0] n_embd=embd.shape[0] def recon_helper(i): print(i) embd...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,004
tjacek/hsne
refs/heads/master
/preproc.py
import time import numpy as np from sklearn.decomposition import PCA from sklearn.datasets import fetch_mldata from sklearn.datasets.base import Bunch import knn def pca_preproc(dataset_name="MNIST original"): dataset=fetch_mldata(dataset_name) n_dim=dataset.data.shape[1] transform=PCA(n_components=n_dim) ...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,005
tjacek/hsne
refs/heads/master
/markov.py
import numpy as np import knn,utils #from sets import Set import random class EffMarkovChain(object): def __init__(self, trans,states): self.trans=trans self.states=states self.n_states=trans.shape[0] self.k=trans.shape[1] def get_states(self): return range(self.n_state...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,006
tjacek/hsne
refs/heads/master
/plot.py
import matplotlib.pyplot as plt from matplotlib import offsetbox import numpy as np def plot_embedding(X,cats,landmarks,title=None): # print(landmarks) n_points=X.shape[0] fraction=get_fraction(n_points) print("Fraction %d" % fraction) y = [cats[l] for l in landmarks] print("Unique ...
{"/hsne.py": ["/utils.py", "/knn.py", "/markov.py", "/tsne.py", "/plot.py"], "/knn.py": ["/markov.py", "/utils.py"], "/tsne.py": ["/knn.py", "/markov.py", "/utils.py", "/plot.py"], "/reconstruct.py": ["/tsne.py", "/utils.py", "/plot.py"], "/preproc.py": ["/knn.py"], "/markov.py": ["/knn.py", "/utils.py"]}
12,008
Thomasjkeel/nerc-climate-modelling-practical
refs/heads/main
/experiments.py
import os import pandas as pd import numpy as np from scripts import model from scripts.model import KRAK_VALS, KRAKATOA_YEAR import matplotlib.pyplot as plt import seaborn as sns import matplotlib.patches as mpatches ## GLOBALS FORCING_SENSITIVITY = 1 COLORS = ['#f7564a', '#e6ac1c', '#5963f0'] sns.set_context('pap...
{"/experiments.py": ["/scripts/model.py"]}
12,009
Thomasjkeel/nerc-climate-modelling-practical
refs/heads/main
/scripts/model.py
import numpy as np import pandas as pd import os import lmfit global KRAK_VALS, KRAKATOA_YEAR KRAK_VALS = {} KRAKATOA_YEAR = 1883 # set constants data_dir = 'data' ERF_data = pd.read_csv(os.path.join(data_dir, 'SSPs/','ERF_ssp585_1750-2500.csv')) ERF_data = ERF_data.set_index('year') ERF = np.array(ERF_data.loc[1850:...
{"/experiments.py": ["/scripts/model.py"]}
12,021
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/__init__.py
from order_management.catalogue.catalogue import CATALOGUE
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...
12,022
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/order/test_order.py
import unittest from order_management.order.order import Order from order_management import CATALOGUE class Test_Order_Creation(unittest.TestCase): def test_order_creation_1(self): order1 = Order() self.assertEqual(order1.order_id, 0) order2 = Order() self.assertEqual(order2.order...
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...
12,023
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/order/order.py
''' Author: Aniketh Deshpande Order Class - Maintains order related information Fields - Customer - GST Number - Order Items - Order Value - Tax - Delivery Status ''' import logging from order_management.config import GST_NUMBER_LENGHT from ord...
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...
12,024
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/config.py
# lenght of gst number field GST_NUMBER_LENGHT = 3
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...
12,025
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/order_item/order_item.py
''' Author: Aniketh Deshpande Order Item - Maintains information regarding the order items Fields - Item Name - Qty - Rate - Amount ''' import logging from order_management import CATALOGUE class OrderItem: _order_item_ids = [0] def __init__(self, order...
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...
12,026
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/catalogue/catalogue.py
''' Author: Aniketh Deshpande ''' ''' Catalogue: key: Item; value: Cost; ''' CATALOGUE = { "Book": 200, "Pen": 10 }
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...
12,027
AnikethSDeshpande/Order-Management
refs/heads/main
/order_management/order_item/test_order_item.py
import unittest from order_management.order.order import Order from order_management.order_item.order_item import OrderItem from order_management.catalogue.catalogue import CATALOGUE class Test_OrderItem(unittest.TestCase): def test_order_item_amount(self): order = Order() order_id = order.or...
{"/order_management/__init__.py": ["/order_management/catalogue/catalogue.py"], "/order_management/order/test_order.py": ["/order_management/order/order.py", "/order_management/__init__.py"], "/order_management/order/order.py": ["/order_management/config.py", "/order_management/order_item/order_item.py"], "/order_manag...